!function(){function o(o,e){return function(o){if(Array.isArray(o))return o}(o)||function(o,n){var e=null==o?null:"undefined"!=typeof Symbol&&o[Symbol.iterator]||o["@@iterator"];if(null==e)return;var t,r,a=[],i=!0,u=!1;try{for(e=e.call(o);!(i=(t=e.next()).done)&&(a.push(t.value),!n||a.length!==n);i=!0);}catch(p){u=!0,r=p}finally{try{i||null==e.return||e.return()}finally{if(u)throw r}}return a}(o,e)||function(o,e){if(!o)return;if("string"==typeof o)return n(o,e);var t=Object.prototype.toString.call(o).slice(8,-1);"Object"===t&&o.constructor&&(t=o.constructor.name);if("Map"===t||"Set"===t)return Array.from(o);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(o,e)}(o,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(o,n){(null==n||n>o.length)&&(n=o.length);for(var e=0,t=new Array(n);e0?"10":"01",e=i(o.target,m.value),t=e.scrollHeight,r=e.offsetHeight,a=e.scrollTop,u="11";0===a?u=r>=t?"00":"01":a+r>=t&&(u="10"),"11"===u||!A.isVertical()||parseInt(u,2)&parseInt(n,2)||j(o,!0)},B=function(){document.addEventListener("touchstart",A.start),document.addEventListener("touchmove",O,{passive:!1}),F||document.body.classList.add(M),F++},P=function(){F&&(document.removeEventListener("touchstart",A.start),document.removeEventListener("touchmove",O),--F||document.body.classList.remove(M))},_=function(){return S()&&P()},e((function(){return S()&&B()})),t(_),r(_),a(S,(function(o){o?B():P()})),h("popstate",(function(){o.closeOnPopstate&&($(),s=!1)})),g((function(){o.show&&Y()})),w((function(){s&&(L("update:show",!0),s=!1)})),t((function(){o.show&&o.teleport&&($(),s=!0)})),x(T,(function(){return o.show})),function(){return o.teleport?l(k,{to:o.teleport},{default:function(){return[oo(),uo()]}}):l(z,null,[oo(),uo()])}}});n("P",_(oo))}}}))}();