@vueuse-legacy-de216c25.js 13 KB

12
  1. !function(){function n(n){return function(n){if(Array.isArray(n))return i(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||r(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,i,o,u,a=[],l=!0,c=!1;try{if(o=(t=t.call(n)).next,0===e){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=o.call(t)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(n){c=!0,i=n}finally{try{if(!l&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(c)throw i}}return a}}(n,e)||r(n,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 t(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=r(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var i=0,o=function(){};return{s:o,n:function(){return i>=n.length?{done:!0}:{done:!1,value:n[i++]}},e:function(n){throw n},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,a=!0,l=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return a=n.done,n},e:function(n){l=!0,u=n},f:function(){try{a||null==t.return||t.return()}finally{if(l)throw u}}}}function r(n,e){if(n){if("string"==typeof n)return i(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(n,e):void 0}}function i(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}System.register(["./@vue-legacy-55b7f08a.js"],(function(r,i){"use strict";var o,u,a,l,c,f,v,d,s,y,p,m;return{setters:[function(n){o=n.s,u=n.w,a=n.r,l=n.g,c=n.b,f=n.e,v=n.f,d=n.u,s=n.h,y=n.i,p=n.n,m=n.j}],execute:function(){r({a:_,b:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.window,t=void 0===e?M:e,r=n.initialWidth,i=void 0===r?1/0:r,o=n.initialHeight,u=void 0===o?1/0:o,a=n.listenOrientation,l=void 0===a||a,c=n.includeScrollbar,v=void 0===c||c,d=f(i),s=f(u),y=function(){t&&(v?(d.value=t.innerWidth,s.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};y(),k(y),_("resize",y,{passive:!0}),l&&_("orientationchange",y,{passive:!0});return{width:d,height:s}},c:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.reset,r=void 0===t||t,i=e.windowResize,o=void 0===i||i,u=e.windowScroll,a=void 0===u||u,l=e.immediate,c=void 0===l||l,d=f(0),s=f(0),y=f(0),p=f(0),m=f(0),h=f(0),b=f(0),g=f(0);function w(){var e=B(n);if(e){var t=e.getBoundingClientRect();d.value=t.height,s.value=t.bottom,y.value=t.left,p.value=t.right,m.value=t.top,h.value=t.width,b.value=t.x,g.value=t.y}else r&&(d.value=0,s.value=0,y.value=0,p.value=0,m.value=0,h.value=0,b.value=0,g.value=0)}J(n,w),v((function(){return B(n)}),(function(n){return!n&&w()})),a&&_("scroll",w,{capture:!0,passive:!0});o&&_("resize",w,{passive:!0});return k((function(){c&&w()})),{height:d,bottom:s,left:y,right:p,top:m,width:h,x:b,y:g,update:w}},d:J,e:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return D(function(n){var e,t,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=0,a=!0,l=C,c=function(){e&&(clearTimeout(e),e=void 0,l(),l=C)},f=function(f){var v=Q(n),d=Date.now()-u,s=function(){return t=f()};return c(),v<=0?(u=Date.now(),s()):(d>v&&(i||!a)?(u=Date.now(),s()):r&&(t=new Promise((function(n,t){l=o?t:n,e=setTimeout((function(){u=Date.now(),a=!0,n(s()),c()}),Math.max(0,v-d))}))),i||e||(e=setTimeout((function(){return a=!0}),v)),a=!1,t)};return f}(e,t,r,i),n)},f:function(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.window,o=void 0===i?M:i,u=r.initialValue,a=void 0===u?"":u,l=f(a),c=m((function(){var n;return B(t)||(null==(n=null==o?void 0:o.document)?void 0:n.documentElement)}));return v([c,function(){return Q(n)}],(function(n){var t,r=e(n,2),i=r[0],u=r[1];if(i&&o){var c=null==(t=o.getComputedStyle(i).getPropertyValue(u))?void 0:t.trim();l.value=c||a}}),{immediate:!0}),v(l,(function(e){var t;(null==(t=c.value)?void 0:t.style)&&c.value.style.setProperty(Q(n),e)})),l},g:function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.immediate,i=void 0===r||r,o=f(!1),u=null;function l(){u&&(clearTimeout(u),u=null)}function c(){o.value=!1,l()}function v(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];l(),o.value=!0,u=setTimeout((function(){o.value=!1,u=null,n.apply(void 0,r)}),Q(e))}i&&(o.value=!0,P&&v());return R(c),{isPending:a(o),start:v,stop:c}},j:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.document,t=void 0===e?W:e;if(!t)return f("visible");var r=f(t.visibilityState);return _(t,"visibilitychange",(function(){r.value=t.visibilityState})),r},k:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.window,t=void 0===e?M:e;if(!t)return f(!1);var r=f(t.document.hasFocus());return _(t,"blur",(function(){r.value=!1})),_(t,"focus",(function(){r.value=!0})),r},l:function(n,e){var t,r=o();return u((function(){r.value=n()}),A(j({},e),{flush:null!=(t=null==e?void 0:e.flush)?t:"sync"})),a(r)},m:function(n,e,t){var r,i,o,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=u.clone,l=void 0!==a&&a,c=u.passive,d=void 0!==c&&c,y=u.eventName,p=u.deep,h=void 0!==p&&p,b=u.defaultValue,g=s(),w=t||(null==g?void 0:g.emit)||(null==(r=null==g?void 0:g.$emit)?void 0:r.bind(g))||(null==(o=null==(i=null==g?void 0:g.proxy)?void 0:i.$emit)?void 0:o.bind(null==g?void 0:g.proxy)),O=y;e||(e="modelValue");O=y||O||"update:".concat(e.toString());var I=function(n){return l?T(l)?l(n):(e=n,JSON.parse(JSON.stringify(e))):n;var e},S=function(){return E(n[e])?I(n[e]):b};if(d){var j=S(),A=f(j);return v((function(){return n[e]}),(function(n){return A.value=I(n)})),v(A,(function(t){(t!==n[e]||h)&&w(O,t)}),{deep:h}),A}return m({get:function(){return S()},set:function(n){w(O,n)}})},n:function(n,e){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r,o=i.window,u=void 0===o?M:o,a=nn(i,["window"]),l=H((function(){return u&&"MutationObserver"in u})),c=function(){t&&(t.disconnect(),t=void 0)},f=v((function(){return B(n)}),(function(n){c(),l.value&&u&&n&&(t=new MutationObserver(e)).observe(n,a)}),{immediate:!0}),d=function(){c(),f()};return R(d),{isSupported:l,stop:d}},o:function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.window,i=void 0===r?M:r,o=t.ignore,u=void 0===o?[]:o,a=t.capture,l=void 0===a||a,c=t.detectIframe,f=void 0!==c&&c;if(!i)return;N&&!z&&(z=!0,Array.from(i.document.body.children).forEach((function(n){return n.addEventListener("click",C)})));var v=!0,d=function(n){return u.some((function(e){if("string"==typeof e)return Array.from(i.document.querySelectorAll(e)).some((function(e){return e===n.target||n.composedPath().includes(e)}));var t=B(e);return t&&(n.target===t||n.composedPath().includes(t))}))},s=[_(i,"click",(function(t){var r=B(n);r&&r!==t.target&&!t.composedPath().includes(r)&&(0===t.detail&&(v=!d(t)),v?e(t):v=!0)}),{passive:!0,capture:l}),_(i,"pointerdown",(function(e){var t=B(n);t&&(v=!e.composedPath().includes(t)&&!d(e))}),{passive:!0}),f&&_(i,"blur",(function(t){var r,o=B(n);"IFRAME"!==(null==(r=i.document.activeElement)?void 0:r.tagName)||(null==o?void 0:o.contains(i.document.activeElement))||e(t)}))].filter(Boolean);return function(){return s.forEach((function(n){return n()}))}},r:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=f(n.value),i=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return D(function(n){var e,t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=C,o=function(n){clearTimeout(n),i(),i=C},u=function(u){var a=Q(n),l=Q(r.maxWait);return e&&o(e),a<=0||void 0!==l&&l<=0?(t&&(o(t),t=null),Promise.resolve(u())):new Promise((function(n,c){i=r.rejectOnCancel?c:n,l&&!t&&(t=setTimeout((function(){e&&o(e),t=null,n(u())}),l)),e=setTimeout((function(){t&&o(t),t=null,n(u())}),a)}))};return u}(e,t),n)}((function(){r.value=n.value}),e,t);return v(n,(function(){return i()})),r},t:R,u:B});var i,h=Object.defineProperty,b=Object.defineProperties,g=Object.getOwnPropertyDescriptors,w=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,S=function(n,e,t){return e in n?h(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t},j=function(n,e){for(var r in e||(e={}))O.call(e,r)&&S(n,r,e[r]);if(w){var i,o=t(w(e));try{for(o.s();!(i=o.n()).done;){r=i.value;I.call(e,r)&&S(n,r,e[r])}}catch(u){o.e(u)}finally{o.f()}}return n},A=function(n,e){return b(n,g(e))};var P=r("i","undefined"!=typeof window),E=function(n){return void 0!==n},T=function(n){return"function"==typeof n},x=function(n){return"string"==typeof n},C=function(){},N=r("h",P&&(null==(i=null==window?void 0:window.navigator)?void 0:i.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent));function Q(n){return"function"==typeof n?n():d(n)}function D(n,e){return function(){for(var t=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return new Promise((function(r,o){Promise.resolve(n((function(){return e.apply(t,i)}),{fn:e,thisArg:t,args:i})).then(r).catch(o)}))}}function R(n){return!!l()&&(c(n),!0)}function k(n){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];s()?y(n):e?n():p(n)}function B(n){var e,t=Q(n);return null!=(e=null==t?void 0:t.$el)?e:t}var M=P?window:void 0,W=P?window.document:void 0;function _(){for(var t,r,i,o,u=arguments.length,a=new Array(u),l=0;l<u;l++)a[l]=arguments[l];if(x(a[0])||Array.isArray(a[0])?(r=a[0],i=a[1],o=a[2],t=M):(t=a[0],r=a[1],i=a[2],o=a[3]),!t)return C;Array.isArray(r)||(r=[r]),Array.isArray(i)||(i=[i]);var c=[],f=function(){c.forEach((function(n){return n()})),c.length=0},d=v((function(){return[B(t),Q(o)]}),(function(t){var o=e(t,2),u=o[0],a=o[1];f(),u&&c.push.apply(c,n(r.flatMap((function(n){return i.map((function(e){return function(n,e,t,r){return n.addEventListener(e,t,r),function(){return n.removeEventListener(e,t,r)}}(u,n,e,a)}))}))))}),{immediate:!0,flush:"post"}),s=function(){d(),f()};return R(s),s}var z=!1;function H(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=f(),r=function(){return t.value=Boolean(n())};return r(),k(r,e),t}var L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},F="__vueuse_ssr_handlers__";L[F]=L[F]||{};var V=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,G=function(n,e){var r={};for(var i in n)$.call(n,i)&&e.indexOf(i)<0&&(r[i]=n[i]);if(null!=n&&V){var o,u=t(V(n));try{for(u.s();!(o=u.n()).done;){i=o.value;e.indexOf(i)<0&&U.call(n,i)&&(r[i]=n[i])}}catch(a){u.e(a)}finally{u.f()}}return r};function J(n,e){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.window,o=void 0===i?M:i,u=G(r,["window"]),a=H((function(){return o&&"ResizeObserver"in o})),l=function(){t&&(t.disconnect(),t=void 0)},c=v((function(){return B(n)}),(function(n){l(),a.value&&o&&n&&(t=new ResizeObserver(e)).observe(n,u)}),{immediate:!0,flush:"post"}),f=function(){l(),c()};return R(f),{isSupported:a,stop:f}}var q,K,X=Object.getOwnPropertySymbols,Y=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,nn=function(n,e){var r={};for(var i in n)Y.call(n,i)&&e.indexOf(i)<0&&(r[i]=n[i]);if(null!=n&&X){var o,u=t(X(n));try{for(u.s();!(o=u.n()).done;){i=o.value;e.indexOf(i)<0&&Z.call(n,i)&&(r[i]=n[i])}}catch(a){u.e(a)}finally{u.f()}}return r};(K=q||(q={})).UP="UP",K.RIGHT="RIGHT",K.DOWN="DOWN",K.LEFT="LEFT",K.NONE="NONE";var en=Object.defineProperty,tn=Object.getOwnPropertySymbols,rn=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,un=function(n,e,t){return e in n?en(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t};!function(n,e){for(var r in e||(e={}))rn.call(e,r)&&un(n,r,e[r]);if(tn){var i,o=t(tn(e));try{for(o.s();!(i=o.n()).done;){r=i.value;on.call(e,r)&&un(n,r,e[r])}}catch(u){o.e(u)}finally{o.f()}}}({linear:function(n){return n}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]})}}}))}();