1 |
- System.register(["./index-legacy-e0181e36-1720699367816.js"],(function(e,t){"use strict";var n,o,r,i,u,c;return{setters:[e=>{n=e.bV,o=e.cj,r=e.c5,i=e.T,u=e.aZ,c=e.bU}],execute:function(){function t(e){return"function"==typeof e?e():u(e)}e({a:function(e,n=200,o=!1,i=!0,u=!1){return a(function(...e){let n,o,i,u,c,a,l=0,f=!0,m=s;r(e[0])||"object"!=typeof e[0]?[i,u=!0,c=!0,a=!1]=e:({delay:i,trailing:u=!0,leading:c=!0,rejectOnCancel:a=!1}=e[0]);const d=()=>{n&&(clearTimeout(n),n=void 0,m(),m=s)},p=e=>{const r=t(i),s=Date.now()-l,p=()=>o=e();return d(),r<=0?(l=Date.now(),p()):(s>r&&(c||!f)?(l=Date.now(),p()):u&&(o=new Promise(((e,t)=>{m=a?t:e,n=setTimeout((()=>{l=Date.now(),f=!0,e(p()),d()}),Math.max(0,r-s))}))),c||n||(n=setTimeout((()=>f=!0),r)),f=!1,o)};return p}(n,o,i,u),e)},b:function(e){return!!n()&&(o(e),!0)},c:t,t:function(e,t){(function(e){return e||c()})(t)&&i(e,t)},u:function(e,n=200,o={}){return a(function(e,n={}){let o,r,i=s;const u=e=>{clearTimeout(e),i(),i=s},c=c=>{const s=t(e),a=t(n.maxWait);return o&&u(o),s<=0||void 0!==a&&a<=0?(r&&(u(r),r=null),Promise.resolve(c())):new Promise(((e,t)=>{i=n.rejectOnCancel?t:e,a&&!r&&(r=setTimeout((()=>{o&&u(o),r=null,e(c())}),a)),o=setTimeout((()=>{r&&u(r),r=null,e(c())}),s)}))};return c}(n,o),e)}}),e("i","undefined"!=typeof window&&"undefined"!=typeof document),"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope);const s=()=>{};function a(e,t){return function(...n){return new Promise(((o,r)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})).then(o).catch(r)}))}}}}}));
|