1 |
- System.register(["./index-legacy-26bc1086.js"],(function(e,r){"use strict";var t,n,o,i,a,u,l,c,s;return{setters:[e=>{t=e.r,n=e.bv,o=e.bw,i=e.bx,a=e.by,u=e.w,l=e.e,c=e.au,s=e.y}],execute:function(){function r(e){return!!n()&&(o(e),!0)}function f(e){return"function"==typeof e?e():i(e)}e({a:function({window:e=j}={}){if(!e)return{x:t(0),y:t(0)};const r=t(e.scrollX),n=t(e.scrollY);return g(e,"scroll",(()=>{r.value=e.scrollX,n.value=e.scrollY}),{capture:!1,passive:!0}),{x:r,y:n}},b:function(e=1e3,n={}){const{controls:o=!1,immediate:i=!0,callback:l}=n,c=t(0),s=()=>c.value+=1,p=()=>{c.value=0},y=function(e,n=1e3,o={}){const{immediate:i=!0,immediateCallback:l=!1}=o;let c=null;const s=t(!1);function p(){c&&(clearInterval(c),c=null)}function y(){s.value=!1,p()}function d(){const r=f(n);r<=0||(s.value=!0,l&&e(),p(),c=setInterval(e,r))}return i&&v&&d(),(a(n)||"function"==typeof n)&&r(u(n,(()=>{s.value&&v&&d()}))),r(y),{isActive:s,pause:y,resume:d}}(l?()=>{s(),l(c.value)}:s,e,{immediate:i});return o?O({counter:c,reset:p},y):c},c:function(e,n,o={}){const i=o,{window:a=j}=i,f=P(i,["window"]);let v;const p=function(e){const r=function(){const e=t(!1);return c()&&s((()=>{e.value=!0})),e}();return l((()=>(r.value,Boolean(e()))))}((()=>a&&"ResizeObserver"in a)),y=()=>{v&&(v.disconnect(),v=void 0)},d=l((()=>Array.isArray(e)?e.map((e=>A(e))):[A(e)])),b=u(d,(e=>{if(y(),p.value&&a){v=new ResizeObserver(n);for(const r of e)r&&v.observe(r,f)}}),{immediate:!0,flush:"post",deep:!0}),m=()=>{y(),b()};return r(m),{isSupported:p,stop:m}},u:g});const v="undefined"!=typeof window,p=()=>{};var y=Object.defineProperty,d=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,w=(e,r,t)=>r in e?y(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,O=(e,r)=>{for(var t in r||(r={}))b.call(r,t)&&w(e,t,r[t]);if(d)for(var t of d(r))m.call(r,t)&&w(e,t,r[t]);return e};function A(e){var r;const t=f(e);return null!=(r=null==t?void 0:t.$el)?r:t}const j=v?window:void 0;function g(...e){let t,n,o,i;if("string"==typeof e[0]||Array.isArray(e[0])?([n,o,i]=e,t=j):[t,n,o,i]=e,!t)return p;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],l=()=>{a.forEach((e=>e())),a.length=0},c=u((()=>[A(t),f(i)]),(([e,r])=>{l(),e&&a.push(...n.flatMap((t=>o.map((n=>((e,r,t,n)=>(e.addEventListener(r,t,n),()=>e.removeEventListener(r,t,n)))(e,t,n,r))))))}),{immediate:!0,flush:"post"}),s=()=>{c(),l()};return r(s),s}var h=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,P=(e,r)=>{var t={};for(var n in e)x.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&h)for(var n of h(e))r.indexOf(n)<0&&E.call(e,n)&&(t[n]=e[n]);return t}}}}));
|