UNPKG

storybook-addon-mock-date

Version:
17 lines 58.1 kB
var Ji=Object.create;var mt=Object.defineProperty;var Qi=Object.getOwnPropertyDescriptor;var Ki=Object.getOwnPropertyNames;var Yi=Object.getPrototypeOf,Zi=Object.prototype.hasOwnProperty;var $e=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,t)=>(typeof require<"u"?require:r)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var l=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Xi=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of Ki(r))!Zi.call(e,s)&&s!==t&&mt(e,s,{get:()=>r[s],enumerable:!(i=Qi(r,s))||i.enumerable});return e};var _i=(e,r,t)=>(t=e!=null?Ji(Yi(e)):{},Xi(mt(t,"default",{value:e,enumerable:true}),e));var ht=l((_u,gt)=>{var Le;typeof global<"u"?Le=global:typeof window<"u"?Le=window:Le=self;gt.exports=Le;});var bt=l((ef,vt)=>{var Pr;try{(({})).__proto__,Pr=!1;}catch{Pr=true;}vt.exports=Pr;});var re=l((rf,At)=>{var ea=Function.call,ra=bt(),wt=["size","caller","callee","arguments"];ra&&wt.push("__proto__");At.exports=function(r){return Object.getOwnPropertyNames(r).reduce(function(t,i){return wt.includes(i)||typeof r[i]!="function"||(t[i]=ea.bind(r[i])),t},Object.create(null))};});var Pe=l((tf,St)=>{var ta=re();St.exports=ta(Array.prototype);});var Ot=l((nf,Pt)=>{var na=Pe().every;function oa(e,r){return e[r.id]===void 0&&(e[r.id]=0),e[r.id]<r.callCount}function ia(e,r,t,i){var s=true;return t!==i.length-1&&(s=r.calledBefore(i[t+1])),oa(e,r)&&s?(e[r.id]+=1,true):false}function aa(e){var r={},t=arguments.length>1?arguments:e;return na(t,ia.bind(null,r))}Pt.exports=aa;});var It=l((of,Tt)=>{function sa(e){return e.constructor&&e.constructor.name||null}Tt.exports=sa;});var jt=l(Oe=>{Oe.wrap=function(e,r){var t=function(){return Oe.printWarning(r),e.apply(this,arguments)};return e.prototype&&(t.prototype=e.prototype),t};Oe.defaultMsg=function(e,r){return `${e}.${r} is deprecated and will be removed from the public API in a future version of ${e}.`};Oe.printWarning=function(e){typeof process=="object"&&process.emitWarning?process.emitWarning(e):console.info?console.info(e):console.log(e);};});var xt=l((sf,Et)=>{Et.exports=function(r,t){var i=true;try{r.forEach(function(){if(!t.apply(this,arguments))throw new Error});}catch{i=false;}return i};});var Ft=l((uf,qt)=>{qt.exports=function(r){if(!r)return "";try{return r.displayName||r.name||(String(r).match(/function ([^\s(]+)/)||[])[1]}catch{return ""}};});var kt=l((ff,Mt)=>{var ua=Pe().sort,fa=Pe().slice;function ca(e,r){var t=e.getCall(0),i=r.getCall(0),s=t&&t.callId||-1,u=i&&i.callId||-1;return s<u?-1:1}function la(e){return ua(fa(e),ca)}Mt.exports=la;});var Ct=l((cf,Dt)=>{var pa=re();Dt.exports=pa(Function.prototype);});var Nt=l((lf,Bt)=>{var ya=re();Bt.exports=ya(Map.prototype);});var $t=l((pf,Rt)=>{var da=re();Rt.exports=da(Object.prototype);});var Ut=l((yf,Lt)=>{var ma=re();Lt.exports=ma(Set.prototype);});var Gt=l((df,Wt)=>{var ga=re();Wt.exports=ga(String.prototype);});var Ht=l((mf,zt)=>{zt.exports={array:Pe(),function:Ct(),map:Nt(),object:$t(),set:Ut(),string:Gt()};});var Vt=l((Or,Tr)=>{(function(e,r){typeof Or=="object"&&typeof Tr<"u"?Tr.exports=r():typeof define=="function"&&define.amd?define(r):e.typeDetect=r();})(Or,function(){var e=typeof Promise=="function",r=typeof self=="object"?self:global,t=typeof Symbol<"u",i=typeof Map<"u",s=typeof Set<"u",u=typeof WeakMap<"u",p=typeof WeakSet<"u",y=typeof DataView<"u",h=t&&typeof Symbol.iterator<"u",j=t&&typeof Symbol.toStringTag<"u",M=s&&typeof Set.prototype.entries=="function",F=i&&typeof Map.prototype.entries=="function",x=M&&Object.getPrototypeOf(new Set().entries()),G=F&&Object.getPrototypeOf(new Map().entries()),z=h&&typeof Array.prototype[Symbol.iterator]=="function",Q=z&&Object.getPrototypeOf([][Symbol.iterator]()),Z=h&&typeof String.prototype[Symbol.iterator]=="function",we=Z&&Object.getPrototypeOf(""[Symbol.iterator]()),X=8,Be=-1;function gr(q){var Ne=typeof q;if(Ne!=="object")return Ne;if(q===null)return "null";if(q===r)return "global";if(Array.isArray(q)&&(j===false||!(Symbol.toStringTag in q)))return "Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&q===window.location)return "Location";if(typeof window.document=="object"&&q===window.document)return "Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&q===window.navigator.mimeTypes)return "MimeTypeArray";if(typeof window.navigator.plugins=="object"&&q===window.navigator.plugins)return "PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&q instanceof window.HTMLElement){if(q.tagName==="BLOCKQUOTE")return "HTMLQuoteElement";if(q.tagName==="TD")return "HTMLTableDataCellElement";if(q.tagName==="TH")return "HTMLTableHeaderCellElement"}}var ae=j&&q[Symbol.toStringTag];if(typeof ae=="string")return ae;var C=Object.getPrototypeOf(q);return C===RegExp.prototype?"RegExp":C===Date.prototype?"Date":e&&C===Promise.prototype?"Promise":s&&C===Set.prototype?"Set":i&&C===Map.prototype?"Map":p&&C===WeakSet.prototype?"WeakSet":u&&C===WeakMap.prototype?"WeakMap":y&&C===DataView.prototype?"DataView":i&&C===G?"Map Iterator":s&&C===x?"Set Iterator":z&&C===Q?"Array Iterator":Z&&C===we?"String Iterator":C===null?"Object":Object.prototype.toString.call(q).slice(X,Be)}return gr});});var Qt=l((gf,Jt)=>{var ha=Vt();Jt.exports=function(r){return ha(r).toLowerCase()};});var Yt=l((hf,Kt)=>{function va(e){return e&&e.toString?e.toString():String(e)}Kt.exports=va;});var Xt=l((vf,Zt)=>{Zt.exports={global:ht(),calledInOrder:Ot(),className:It(),deprecated:jt(),every:xt(),functionName:Ft(),orderByFirstCall:kt(),prototypes:Ht(),typeOf:Qt(),valueToString:Yt()};});var Ir=l((bf,_t)=>{_t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return  false;if(typeof Symbol.iterator=="symbol")return  true;var r={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return  false;var s=42;r[t]=s;for(var u in r)return  false;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return  false;var p=Object.getOwnPropertySymbols(r);if(p.length!==1||p[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return  false;if(typeof Object.getOwnPropertyDescriptor=="function"){var y=Object.getOwnPropertyDescriptor(r,t);if(y.value!==s||y.enumerable!==true)return  false}return  true};});var Te=l((wf,en)=>{var ba=Ir();en.exports=function(){return ba()&&!!Symbol.toStringTag};});var jr=l((Af,rn)=>{rn.exports=Object;});var nn=l((Sf,tn)=>{tn.exports=Error;});var an=l((Pf,on)=>{on.exports=EvalError;});var un=l((Of,sn)=>{sn.exports=RangeError;});var cn=l((Tf,fn)=>{fn.exports=ReferenceError;});var Er=l((If,ln)=>{ln.exports=SyntaxError;});var ue=l((jf,pn)=>{pn.exports=TypeError;});var dn=l((Ef,yn)=>{yn.exports=URIError;});var gn=l((xf,mn)=>{mn.exports=Math.abs;});var vn=l((qf,hn)=>{hn.exports=Math.floor;});var wn=l((Ff,bn)=>{bn.exports=Math.max;});var Sn=l((Mf,An)=>{An.exports=Math.min;});var On=l((kf,Pn)=>{Pn.exports=Math.pow;});var In=l((Df,Tn)=>{Tn.exports=Math.round;});var En=l((Cf,jn)=>{jn.exports=Number.isNaN||function(r){return r!==r};});var qn=l((Bf,xn)=>{var wa=En();xn.exports=function(r){return wa(r)||r===0?r:r<0?-1:1};});var Mn=l((Nf,Fn)=>{Fn.exports=Object.getOwnPropertyDescriptor;});var te=l((Rf,kn)=>{var Ue=Mn();if(Ue)try{Ue([],"length");}catch{Ue=null;}kn.exports=Ue;});var Ie=l(($f,Dn)=>{var We=Object.defineProperty||false;if(We)try{We({},"a",{value:1});}catch{We=false;}Dn.exports=We;});var Nn=l((Lf,Bn)=>{var Cn=typeof Symbol<"u"&&Symbol,Aa=Ir();Bn.exports=function(){return typeof Cn!="function"||typeof Symbol!="function"||typeof Cn("foo")!="symbol"||typeof Symbol("bar")!="symbol"?false:Aa()};});var xr=l((Uf,Rn)=>{Rn.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null;});var qr=l((Wf,$n)=>{var Sa=jr();$n.exports=Sa.getPrototypeOf||null;});var Wn=l((Gf,Un)=>{var Pa="Function.prototype.bind called on incompatible ",Oa=Object.prototype.toString,Ta=Math.max,Ia="[object Function]",Ln=function(r,t){for(var i=[],s=0;s<r.length;s+=1)i[s]=r[s];for(var u=0;u<t.length;u+=1)i[u+r.length]=t[u];return i},ja=function(r,t){for(var i=[],s=t,u=0;s<r.length;s+=1,u+=1)i[u]=r[s];return i},Ea=function(e,r){for(var t="",i=0;i<e.length;i+=1)t+=e[i],i+1<e.length&&(t+=r);return t};Un.exports=function(r){var t=this;if(typeof t!="function"||Oa.apply(t)!==Ia)throw new TypeError(Pa+t);for(var i=ja(arguments,1),s,u=function(){if(this instanceof s){var M=t.apply(this,Ln(i,arguments));return Object(M)===M?M:this}return t.apply(r,Ln(i,arguments))},p=Ta(0,t.length-i.length),y=[],h=0;h<p;h++)y[h]="$"+h;if(s=Function("binder","return function ("+Ea(y,",")+"){ return binder.apply(this,arguments); }")(u),t.prototype){var j=function(){};j.prototype=t.prototype,s.prototype=new j,j.prototype=null;}return s};});var fe=l((zf,Gn)=>{var xa=Wn();Gn.exports=Function.prototype.bind||xa;});var Ge=l((Hf,zn)=>{zn.exports=Function.prototype.call;});var ze=l((Vf,Hn)=>{Hn.exports=Function.prototype.apply;});var Jn=l((Jf,Vn)=>{Vn.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply;});var Fr=l((Qf,Qn)=>{var qa=fe(),Fa=ze(),Ma=Ge(),ka=Jn();Qn.exports=ka||qa.call(Ma,Fa);});var He=l((Kf,Kn)=>{var Da=fe(),Ca=ue(),Ba=Ge(),Na=Fr();Kn.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new Ca("a function is required");return Na(Da,Ba,r)};});var ro=l((Yf,eo)=>{var Ra=He(),Yn=te(),Xn;try{Xn=[].__proto__===Array.prototype;}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Mr=!!Xn&&Yn&&Yn(Object.prototype,"__proto__"),_n=Object,Zn=_n.getPrototypeOf;eo.exports=Mr&&typeof Mr.get=="function"?Ra([Mr.get]):typeof Zn=="function"?function(r){return Zn(r==null?r:_n(r))}:false;});var Ve=l((Zf,io)=>{var to=xr(),no=qr(),oo=ro();io.exports=to?function(r){return to(r)}:no?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return no(r)}:oo?function(r){return oo(r)}:null;});var kr=l((Xf,ao)=>{var $a=Function.prototype.call,La=Object.prototype.hasOwnProperty,Ua=fe();ao.exports=Ua.call($a,La);});var Br=l((_f,po)=>{var S,Wa=jr(),Ga=nn(),za=an(),Ha=un(),Va=cn(),ye=Er(),pe=ue(),Ja=dn(),Qa=gn(),Ka=vn(),Ya=wn(),Za=Sn(),Xa=On(),_a=In(),es=qn(),co=Function,Dr=function(e){try{return co('"use strict"; return ('+e+").constructor;")()}catch{}},je=te(),rs=Ie(),Cr=function(){throw new pe},ts=je?function(){try{return arguments.callee,Cr}catch{try{return je(arguments,"callee").get}catch{return Cr}}}():Cr,ce=Nn()(),D=Ve(),ns=qr(),os=xr(),lo=ze(),Ee=Ge(),le={},is=typeof Uint8Array>"u"||!D?S:D(Uint8Array),ne={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?S:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?S:ArrayBuffer,"%ArrayIteratorPrototype%":ce&&D?D([][Symbol.iterator]()):S,"%AsyncFromSyncIteratorPrototype%":S,"%AsyncFunction%":le,"%AsyncGenerator%":le,"%AsyncGeneratorFunction%":le,"%AsyncIteratorPrototype%":le,"%Atomics%":typeof Atomics>"u"?S:Atomics,"%BigInt%":typeof BigInt>"u"?S:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?S:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?S:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?S:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Ga,"%eval%":eval,"%EvalError%":za,"%Float16Array%":typeof Float16Array>"u"?S:Float16Array,"%Float32Array%":typeof Float32Array>"u"?S:Float32Array,"%Float64Array%":typeof Float64Array>"u"?S:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?S:FinalizationRegistry,"%Function%":co,"%GeneratorFunction%":le,"%Int8Array%":typeof Int8Array>"u"?S:Int8Array,"%Int16Array%":typeof Int16Array>"u"?S:Int16Array,"%Int32Array%":typeof Int32Array>"u"?S:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ce&&D?D(D([][Symbol.iterator]())):S,"%JSON%":typeof JSON=="object"?JSON:S,"%Map%":typeof Map>"u"?S:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ce||!D?S:D(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Wa,"%Object.getOwnPropertyDescriptor%":je,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?S:Promise,"%Proxy%":typeof Proxy>"u"?S:Proxy,"%RangeError%":Ha,"%ReferenceError%":Va,"%Reflect%":typeof Reflect>"u"?S:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?S:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ce||!D?S:D(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?S:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ce&&D?D(""[Symbol.iterator]()):S,"%Symbol%":ce?Symbol:S,"%SyntaxError%":ye,"%ThrowTypeError%":ts,"%TypedArray%":is,"%TypeError%":pe,"%Uint8Array%":typeof Uint8Array>"u"?S:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?S:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?S:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?S:Uint32Array,"%URIError%":Ja,"%WeakMap%":typeof WeakMap>"u"?S:WeakMap,"%WeakRef%":typeof WeakRef>"u"?S:WeakRef,"%WeakSet%":typeof WeakSet>"u"?S:WeakSet,"%Function.prototype.call%":Ee,"%Function.prototype.apply%":lo,"%Object.defineProperty%":rs,"%Object.getPrototypeOf%":ns,"%Math.abs%":Qa,"%Math.floor%":Ka,"%Math.max%":Ya,"%Math.min%":Za,"%Math.pow%":Xa,"%Math.round%":_a,"%Math.sign%":es,"%Reflect.getPrototypeOf%":os};if(D)try{null.error;}catch(e){so=D(D(e)),ne["%Error.prototype%"]=so;}var so,as=function e(r){var t;if(r==="%AsyncFunction%")t=Dr("async function () {}");else if(r==="%GeneratorFunction%")t=Dr("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=Dr("async function* () {}");else if(r==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(t=i.prototype);}else if(r==="%AsyncIteratorPrototype%"){var s=e("%AsyncGenerator%");s&&D&&(t=D(s.prototype));}return ne[r]=t,t},uo={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},xe=fe(),Je=kr(),ss=xe.call(Ee,Array.prototype.concat),us=xe.call(lo,Array.prototype.splice),fo=xe.call(Ee,String.prototype.replace),Qe=xe.call(Ee,String.prototype.slice),fs=xe.call(Ee,RegExp.prototype.exec),cs=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ls=/\\(\\)?/g,ps=function(r){var t=Qe(r,0,1),i=Qe(r,-1);if(t==="%"&&i!=="%")throw new ye("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&t!=="%")throw new ye("invalid intrinsic syntax, expected opening `%`");var s=[];return fo(r,cs,function(u,p,y,h){s[s.length]=y?fo(h,ls,"$1"):p||u;}),s},ys=function(r,t){var i=r,s;if(Je(uo,i)&&(s=uo[i],i="%"+s[0]+"%"),Je(ne,i)){var u=ne[i];if(u===le&&(u=as(i)),typeof u>"u"&&!t)throw new pe("intrinsic "+r+" exists, but is not available. Please file an issue!");return {alias:s,name:i,value:u}}throw new ye("intrinsic "+r+" does not exist!")};po.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new pe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new pe('"allowMissing" argument must be a boolean');if(fs(/^%?[^%]*%?$/,r)===null)throw new ye("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=ps(r),s=i.length>0?i[0]:"",u=ys("%"+s+"%",t),p=u.name,y=u.value,h=false,j=u.alias;j&&(s=j[0],us(i,ss([0,1],j)));for(var M=1,F=true;M<i.length;M+=1){var x=i[M],G=Qe(x,0,1),z=Qe(x,-1);if((G==='"'||G==="'"||G==="`"||z==='"'||z==="'"||z==="`")&&G!==z)throw new ye("property names with quotes must have matching quotes");if((x==="constructor"||!F)&&(h=true),s+="."+x,p="%"+s+"%",Je(ne,p))y=ne[p];else if(y!=null){if(!(x in y)){if(!t)throw new pe("base intrinsic for "+r+" exists, but the property is not available.");return}if(je&&M+1>=i.length){var Q=je(y,x);F=!!Q,F&&"get"in Q&&!("originalValue"in Q.get)?y=Q.get:y=y[x];}else F=Je(y,x),y=y[x];F&&!h&&(ne[p]=y);}}return y};});var de=l((ec,go)=>{var yo=Br(),mo=He(),ds=mo([yo("%String.prototype.indexOf%")]);go.exports=function(r,t){var i=yo(r,!!t);return typeof i=="function"&&ds(r,".prototype.")>-1?mo([i]):i};});var bo=l((rc,vo)=>{var ms=Te()(),gs=de(),Nr=gs("Object.prototype.toString"),Ke=function(r){return ms&&r&&typeof r=="object"&&Symbol.toStringTag in r?false:Nr(r)==="[object Arguments]"},ho=function(r){return Ke(r)?true:r!==null&&typeof r=="object"&&"length"in r&&typeof r.length=="number"&&r.length>=0&&Nr(r)!=="[object Array]"&&"callee"in r&&Nr(r.callee)==="[object Function]"},hs=function(){return Ke(arguments)}();Ke.isLegacyArguments=ho;vo.exports=hs?Ke:ho;});var To=l((tc,Oo)=>{var wo=de(),vs=Te()(),bs=kr(),ws=te(),Lr;vs?(Ao=wo("RegExp.prototype.exec"),Rr={},Ye=function(){throw Rr},$r={toString:Ye,valueOf:Ye},typeof Symbol.toPrimitive=="symbol"&&($r[Symbol.toPrimitive]=Ye),Lr=function(r){if(!r||typeof r!="object")return  false;var t=ws(r,"lastIndex"),i=t&&bs(t,"value");if(!i)return  false;try{Ao(r,$r);}catch(s){return s===Rr}}):(So=wo("Object.prototype.toString"),Po="[object RegExp]",Lr=function(r){return !r||typeof r!="object"&&typeof r!="function"?false:So(r)===Po});var Ao,Rr,Ye,$r,So,Po;Oo.exports=Lr;});var jo=l((nc,Io)=>{var As=de(),Ss=To(),Ps=As("RegExp.prototype.exec"),Os=ue();Io.exports=function(r){if(!Ss(r))throw new Os("`regex` must be a RegExp");return function(i){return Ps(r,i)!==null}};});var Fo=l((oc,qo)=>{var Eo=de(),Ts=jo(),Is=Ts(/^\s*(?:function)?\*/),xo=Te()(),Ur=Ve(),js=Eo("Object.prototype.toString"),Es=Eo("Function.prototype.toString"),xs=function(){if(!xo)return  false;try{return Function("return function*() {}")()}catch{}},Wr;qo.exports=function(r){if(typeof r!="function")return  false;if(Is(Es(r)))return  true;if(!xo){var t=js(r);return t==="[object GeneratorFunction]"}if(!Ur)return  false;if(typeof Wr>"u"){var i=xs();Wr=i?Ur(i):false;}return Ur(r)===Wr};});var Co=l((ic,Do)=>{var ko=Function.prototype.toString,me=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,zr,Ze;if(typeof me=="function"&&typeof Object.defineProperty=="function")try{zr=Object.defineProperty({},"length",{get:function(){throw Ze}}),Ze={},me(function(){throw 42},null,zr);}catch(e){e!==Ze&&(me=null);}else me=null;var qs=/^\s*class\b/,Hr=function(r){try{var t=ko.call(r);return qs.test(t)}catch{return  false}},Gr=function(r){try{return Hr(r)?!1:(ko.call(r),!0)}catch{return  false}},Xe=Object.prototype.toString,Fs="[object Object]",Ms="[object Function]",ks="[object GeneratorFunction]",Ds="[object HTMLAllCollection]",Cs="[object HTML document.all class]",Bs="[object HTMLCollection]",Ns=typeof Symbol=="function"&&!!Symbol.toStringTag,Rs=!(0 in[,]),Vr=function(){return  false};typeof document=="object"&&(Mo=document.all,Xe.call(Mo)===Xe.call(document.all)&&(Vr=function(r){if((Rs||!r)&&(typeof r>"u"||typeof r=="object"))try{var t=Xe.call(r);return (t===Ds||t===Cs||t===Bs||t===Fs)&&r("")==null}catch{}return  false}));var Mo;Do.exports=me?function(r){if(Vr(r))return  true;if(!r||typeof r!="function"&&typeof r!="object")return  false;try{me(r,null,zr);}catch(t){if(t!==Ze)return  false}return !Hr(r)&&Gr(r)}:function(r){if(Vr(r))return  true;if(!r||typeof r!="function"&&typeof r!="object")return  false;if(Ns)return Gr(r);if(Hr(r))return  false;var t=Xe.call(r);return t!==Ms&&t!==ks&&!/^\[object HTML/.test(t)?false:Gr(r)};});var Ro=l((ac,No)=>{var $s=Co(),Ls=Object.prototype.toString,Bo=Object.prototype.hasOwnProperty,Us=function(r,t,i){for(var s=0,u=r.length;s<u;s++)Bo.call(r,s)&&(i==null?t(r[s],s,r):t.call(i,r[s],s,r));},Ws=function(r,t,i){for(var s=0,u=r.length;s<u;s++)i==null?t(r.charAt(s),s,r):t.call(i,r.charAt(s),s,r);},Gs=function(r,t,i){for(var s in r)Bo.call(r,s)&&(i==null?t(r[s],s,r):t.call(i,r[s],s,r));};function zs(e){return Ls.call(e)==="[object Array]"}No.exports=function(r,t,i){if(!$s(t))throw new TypeError("iterator must be a function");var s;arguments.length>=3&&(s=i),zs(r)?Us(r,t,s):typeof r=="string"?Ws(r,t,s):Gs(r,t,s);};});var Lo=l((sc,$o)=>{$o.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"];});var Wo=l((uc,Uo)=>{var Jr=Lo(),Hs=typeof globalThis>"u"?global:globalThis;Uo.exports=function(){for(var r=[],t=0;t<Jr.length;t++)typeof Hs[Jr[t]]=="function"&&(r[r.length]=Jr[t]);return r};});var Vo=l((fc,Ho)=>{var Go=Ie(),Vs=Er(),ge=ue(),zo=te();Ho.exports=function(r,t,i){if(!r||typeof r!="object"&&typeof r!="function")throw new ge("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new ge("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ge("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ge("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ge("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ge("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,y=arguments.length>6?arguments[6]:false,h=!!zo&&zo(r,t);if(Go)Go(r,t,{configurable:p===null&&h?h.configurable:!p,enumerable:s===null&&h?h.enumerable:!s,value:i,writable:u===null&&h?h.writable:!u});else if(y||!s&&!u&&!p)r[t]=i;else throw new Vs("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")};});var Ko=l((cc,Qo)=>{var Qr=Ie(),Jo=function(){return !!Qr};Jo.hasArrayLengthDefineBug=function(){if(!Qr)return null;try{return Qr([],"length",{value:1}).length!==1}catch{return  true}};Qo.exports=Jo;});var ei=l((lc,_o)=>{var Js=Br(),Yo=Vo(),Qs=Ko()(),Zo=te(),Xo=ue(),Ks=Js("%Math.floor%");_o.exports=function(r,t){if(typeof r!="function")throw new Xo("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||Ks(t)!==t)throw new Xo("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],s=true,u=true;if("length"in r&&Zo){var p=Zo(r,"length");p&&!p.configurable&&(s=false),p&&!p.writable&&(u=false);}return (s||u||!i)&&(Qs?Yo(r,"length",t,true,true):Yo(r,"length",t)),r};});var ti=l((pc,ri)=>{var Ys=fe(),Zs=ze(),Xs=Fr();ri.exports=function(){return Xs(Ys,Zs,arguments)};});var ii=l((yc,_e)=>{var _s=ei(),ni=Ie(),eu=He(),oi=ti();_e.exports=function(r){var t=eu(arguments),i=r.length-(arguments.length-1);return _s(t,1+(i>0?i:0),true)};ni?ni(_e.exports,"apply",{value:oi}):_e.exports.apply=oi;});var Xr=l((dc,fi)=>{var tr=Ro(),ru=Wo(),ai=ii(),Yr=de(),rr=te(),er=Ve(),tu=Yr("Object.prototype.toString"),ui=Te()(),si=typeof globalThis>"u"?global:globalThis,Kr=ru(),Zr=Yr("String.prototype.slice"),nu=Yr("Array.prototype.indexOf",true)||function(r,t){for(var i=0;i<r.length;i+=1)if(r[i]===t)return i;return  -1},nr={__proto__:null};ui&&rr&&er?tr(Kr,function(e){var r=new si[e];if(Symbol.toStringTag in r&&er){var t=er(r),i=rr(t,Symbol.toStringTag);if(!i&&t){var s=er(t);i=rr(s,Symbol.toStringTag);}nr["$"+e]=ai(i.get);}}):tr(Kr,function(e){var r=new si[e],t=r.slice||r.set;t&&(nr["$"+e]=ai(t));});var ou=function(r){var t=false;return tr(nr,function(i,s){if(!t)try{"$"+i(r)===s&&(t=Zr(s,1));}catch{}}),t},iu=function(r){var t=false;return tr(nr,function(i,s){if(!t)try{i(r),t=Zr(s,1);}catch{}}),t};fi.exports=function(r){if(!r||typeof r!="object")return  false;if(!ui){var t=Zr(tu(r),8,-1);return nu(Kr,t)>-1?t:t!=="Object"?false:iu(r)}return rr?ou(r):null};});var li=l((mc,ci)=>{var au=Xr();ci.exports=function(r){return !!au(r)};});var Ti=l(P=>{var su=bo(),uu=Fo(),W=Xr(),pi=li();function he(e){return e.call.bind(e)}var yi=typeof BigInt<"u",di=typeof Symbol<"u",R=he(Object.prototype.toString),fu=he(Number.prototype.valueOf),cu=he(String.prototype.valueOf),lu=he(Boolean.prototype.valueOf);yi&&(mi=he(BigInt.prototype.valueOf));var mi;di&&(gi=he(Symbol.prototype.valueOf));var gi;function Fe(e,r){if(typeof e!="object")return  false;try{return r(e),!0}catch{return  false}}P.isArgumentsObject=su;P.isGeneratorFunction=uu;P.isTypedArray=pi;function pu(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}P.isPromise=pu;function yu(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(e):pi(e)||vi(e)}P.isArrayBufferView=yu;function du(e){return W(e)==="Uint8Array"}P.isUint8Array=du;function mu(e){return W(e)==="Uint8ClampedArray"}P.isUint8ClampedArray=mu;function gu(e){return W(e)==="Uint16Array"}P.isUint16Array=gu;function hu(e){return W(e)==="Uint32Array"}P.isUint32Array=hu;function vu(e){return W(e)==="Int8Array"}P.isInt8Array=vu;function bu(e){return W(e)==="Int16Array"}P.isInt16Array=bu;function wu(e){return W(e)==="Int32Array"}P.isInt32Array=wu;function Au(e){return W(e)==="Float32Array"}P.isFloat32Array=Au;function Su(e){return W(e)==="Float64Array"}P.isFloat64Array=Su;function Pu(e){return W(e)==="BigInt64Array"}P.isBigInt64Array=Pu;function Ou(e){return W(e)==="BigUint64Array"}P.isBigUint64Array=Ou;function or(e){return R(e)==="[object Map]"}or.working=typeof Map<"u"&&or(new Map);function Tu(e){return typeof Map>"u"?false:or.working?or(e):e instanceof Map}P.isMap=Tu;function ir(e){return R(e)==="[object Set]"}ir.working=typeof Set<"u"&&ir(new Set);function Iu(e){return typeof Set>"u"?false:ir.working?ir(e):e instanceof Set}P.isSet=Iu;function ar(e){return R(e)==="[object WeakMap]"}ar.working=typeof WeakMap<"u"&&ar(new WeakMap);function ju(e){return typeof WeakMap>"u"?false:ar.working?ar(e):e instanceof WeakMap}P.isWeakMap=ju;function et(e){return R(e)==="[object WeakSet]"}et.working=typeof WeakSet<"u"&&et(new WeakSet);function Eu(e){return et(e)}P.isWeakSet=Eu;function sr(e){return R(e)==="[object ArrayBuffer]"}sr.working=typeof ArrayBuffer<"u"&&sr(new ArrayBuffer);function hi(e){return typeof ArrayBuffer>"u"?false:sr.working?sr(e):e instanceof ArrayBuffer}P.isArrayBuffer=hi;function ur(e){return R(e)==="[object DataView]"}ur.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&ur(new DataView(new ArrayBuffer(1),0,1));function vi(e){return typeof DataView>"u"?false:ur.working?ur(e):e instanceof DataView}P.isDataView=vi;var _r=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function qe(e){return R(e)==="[object SharedArrayBuffer]"}function bi(e){return typeof _r>"u"?false:(typeof qe.working>"u"&&(qe.working=qe(new _r)),qe.working?qe(e):e instanceof _r)}P.isSharedArrayBuffer=bi;function xu(e){return R(e)==="[object AsyncFunction]"}P.isAsyncFunction=xu;function qu(e){return R(e)==="[object Map Iterator]"}P.isMapIterator=qu;function Fu(e){return R(e)==="[object Set Iterator]"}P.isSetIterator=Fu;function Mu(e){return R(e)==="[object Generator]"}P.isGeneratorObject=Mu;function ku(e){return R(e)==="[object WebAssembly.Module]"}P.isWebAssemblyCompiledModule=ku;function wi(e){return Fe(e,fu)}P.isNumberObject=wi;function Ai(e){return Fe(e,cu)}P.isStringObject=Ai;function Si(e){return Fe(e,lu)}P.isBooleanObject=Si;function Pi(e){return yi&&Fe(e,mi)}P.isBigIntObject=Pi;function Oi(e){return di&&Fe(e,gi)}P.isSymbolObject=Oi;function Du(e){return wi(e)||Ai(e)||Si(e)||Pi(e)||Oi(e)}P.isBoxedPrimitive=Du;function Cu(e){return typeof Uint8Array<"u"&&(hi(e)||bi(e))}P.isAnyArrayBuffer=Cu;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(P,e,{enumerable:false,value:function(){throw new Error(e+" is not supported in userland")}});});});var ji=l((hc,Ii)=>{Ii.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"};});var Ei=l((vc,rt)=>{typeof Object.create=="function"?rt.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}}));}:rt.exports=function(r,t){if(t){r.super_=t;var i=function(){};i.prototype=t.prototype,r.prototype=new i,r.prototype.constructor=r;}};});var Di=l(O=>{var xi=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),i={},s=0;s<t.length;s++)i[t[s]]=Object.getOwnPropertyDescriptor(r,t[s]);return i},Bu=/%[sdj%]/g;O.format=function(e){if(!mr(e)){for(var r=[],t=0;t<arguments.length;t++)r.push(Y(arguments[t]));return r.join(" ")}for(var t=1,i=arguments,s=i.length,u=String(e).replace(Bu,function(y){if(y==="%%")return "%";if(t>=s)return y;switch(y){case "%s":return String(i[t++]);case "%d":return Number(i[t++]);case "%j":try{return JSON.stringify(i[t++])}catch{return "[Circular]"}default:return y}}),p=i[t];t<s;p=i[++t])dr(p)||!ve(p)?u+=" "+p:u+=" "+Y(p);return u};O.deprecate=function(e,r){if(typeof process<"u"&&process.noDeprecation===true)return e;if(typeof process>"u")return function(){return O.deprecate(e,r).apply(this,arguments)};var t=false;function i(){if(!t){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),t=true;}return e.apply(this,arguments)}return i};var fr={},qi=/^$/;process.env.NODE_DEBUG&&(cr=process.env.NODE_DEBUG,cr=cr.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),qi=new RegExp("^"+cr+"$","i"));var cr;O.debuglog=function(e){if(e=e.toUpperCase(),!fr[e])if(qi.test(e)){var r=process.pid;fr[e]=function(){var t=O.format.apply(O,arguments);console.error("%s %d: %s",e,r,t);};}else fr[e]=function(){};return fr[e]};function Y(e,r){var t={seen:[],stylize:Ru};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),it(r)?t.showHidden=r:r&&O._extend(t,r),ie(t.showHidden)&&(t.showHidden=false),ie(t.depth)&&(t.depth=2),ie(t.colors)&&(t.colors=false),ie(t.customInspect)&&(t.customInspect=true),t.colors&&(t.stylize=Nu),pr(t,e,t.depth)}O.inspect=Y;Y.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Y.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Nu(e,r){var t=Y.styles[r];return t?"\x1B["+Y.colors[t][0]+"m"+e+"\x1B["+Y.colors[t][1]+"m":e}function Ru(e,r){return e}function $u(e){var r={};return e.forEach(function(t,i){r[t]=true;}),r}function pr(e,r,t){if(e.customInspect&&r&&lr(r.inspect)&&r.inspect!==O.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i=r.inspect(t,e);return mr(i)||(i=pr(e,i,t)),i}var s=Lu(e,r);if(s)return s;var u=Object.keys(r),p=$u(u);if(e.showHidden&&(u=Object.getOwnPropertyNames(r)),ke(r)&&(u.indexOf("message")>=0||u.indexOf("description")>=0))return tt(r);if(u.length===0){if(lr(r)){var y=r.name?": "+r.name:"";return e.stylize("[Function"+y+"]","special")}if(Me(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(yr(r))return e.stylize(Date.prototype.toString.call(r),"date");if(ke(r))return tt(r)}var h="",j=false,M=["{","}"];if(Fi(r)&&(j=true,M=["[","]"]),lr(r)){var F=r.name?": "+r.name:"";h=" [Function"+F+"]";}if(Me(r)&&(h=" "+RegExp.prototype.toString.call(r)),yr(r)&&(h=" "+Date.prototype.toUTCString.call(r)),ke(r)&&(h=" "+tt(r)),u.length===0&&(!j||r.length==0))return M[0]+h+M[1];if(t<0)return Me(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var x;return j?x=Uu(e,r,t,p,u):x=u.map(function(G){return ot(e,r,t,p,G,j)}),e.seen.pop(),Wu(x,h,M)}function Lu(e,r){if(ie(r))return e.stylize("undefined","undefined");if(mr(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(Mi(r))return e.stylize(""+r,"number");if(it(r))return e.stylize(""+r,"boolean");if(dr(r))return e.stylize("null","null")}function tt(e){return "["+Error.prototype.toString.call(e)+"]"}function Uu(e,r,t,i,s){for(var u=[],p=0,y=r.length;p<y;++p)ki(r,String(p))?u.push(ot(e,r,t,i,String(p),true)):u.push("");return s.forEach(function(h){h.match(/^\d+$/)||u.push(ot(e,r,t,i,h,true));}),u}function ot(e,r,t,i,s,u){var p,y,h;if(h=Object.getOwnPropertyDescriptor(r,s)||{value:r[s]},h.get?h.set?y=e.stylize("[Getter/Setter]","special"):y=e.stylize("[Getter]","special"):h.set&&(y=e.stylize("[Setter]","special")),ki(i,s)||(p="["+s+"]"),y||(e.seen.indexOf(h.value)<0?(dr(t)?y=pr(e,h.value,null):y=pr(e,h.value,t-1),y.indexOf(`
`)>-1&&(u?y=y.split(`
`).map(function(j){return "  "+j}).join(`
`).slice(2):y=`
`+y.split(`
`).map(function(j){return "   "+j}).join(`
`))):y=e.stylize("[Circular]","special")),ie(p)){if(u&&s.match(/^\d+$/))return y;p=JSON.stringify(""+s),p.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(p=p.slice(1,-1),p=e.stylize(p,"name")):(p=p.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),p=e.stylize(p,"string"));}return p+": "+y}function Wu(e,r,t){var i=0,s=e.reduce(function(u,p){return i++,p.indexOf(`
`)>=0&&i++,u+p.replace(/\u001b\[\d\d?m/g,"").length+1},0);return s>60?t[0]+(r===""?"":r+`
 `)+" "+e.join(`,
  `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}O.types=Ti();function Fi(e){return Array.isArray(e)}O.isArray=Fi;function it(e){return typeof e=="boolean"}O.isBoolean=it;function dr(e){return e===null}O.isNull=dr;function Gu(e){return e==null}O.isNullOrUndefined=Gu;function Mi(e){return typeof e=="number"}O.isNumber=Mi;function mr(e){return typeof e=="string"}O.isString=mr;function zu(e){return typeof e=="symbol"}O.isSymbol=zu;function ie(e){return e===void 0}O.isUndefined=ie;function Me(e){return ve(e)&&at(e)==="[object RegExp]"}O.isRegExp=Me;O.types.isRegExp=Me;function ve(e){return typeof e=="object"&&e!==null}O.isObject=ve;function yr(e){return ve(e)&&at(e)==="[object Date]"}O.isDate=yr;O.types.isDate=yr;function ke(e){return ve(e)&&(at(e)==="[object Error]"||e instanceof Error)}O.isError=ke;O.types.isNativeError=ke;function lr(e){return typeof e=="function"}O.isFunction=lr;function Hu(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}O.isPrimitive=Hu;O.isBuffer=ji();function at(e){return Object.prototype.toString.call(e)}function nt(e){return e<10?"0"+e.toString(10):e.toString(10)}var Vu=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ju(){var e=new Date,r=[nt(e.getHours()),nt(e.getMinutes()),nt(e.getSeconds())].join(":");return [e.getDate(),Vu[e.getMonth()],r].join(" ")}O.log=function(){console.log("%s - %s",Ju(),O.format.apply(O,arguments));};O.inherits=Ei();O._extend=function(e,r){if(!r||!ve(r))return e;for(var t=Object.keys(r),i=t.length;i--;)e[t[i]]=r[t[i]];return e};function ki(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var oe=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;O.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(oe&&r[oe]){var t=r[oe];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,oe,{value:t,enumerable:false,writable:false,configurable:true}),t}function t(){for(var i,s,u=new Promise(function(h,j){i=h,s=j;}),p=[],y=0;y<arguments.length;y++)p.push(arguments[y]);p.push(function(h,j){h?s(h):i(j);});try{r.apply(this,p);}catch(h){s(h);}return u}return Object.setPrototypeOf(t,Object.getPrototypeOf(r)),oe&&Object.defineProperty(t,oe,{value:t,enumerable:false,writable:false,configurable:true}),Object.defineProperties(t,xi(r))};O.promisify.custom=oe;function Qu(e,r){if(!e){var t=new Error("Promise was rejected with a falsy value");t.reason=e,e=t;}return r(e)}function Ku(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function r(){for(var t=[],i=0;i<arguments.length;i++)t.push(arguments[i]);var s=t.pop();if(typeof s!="function")throw new TypeError("The last argument must be of type Function");var u=this,p=function(){return s.apply(u,arguments)};e.apply(this,t).then(function(y){process.nextTick(p.bind(null,null,y));},function(y){process.nextTick(Qu.bind(null,y,p));});}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,xi(e)),r}O.callbackify=Ku;});var Bi=l((De,Ci)=>{var st=Xt().global,be,J;if(typeof $e=="function"&&typeof Ci=="object"){try{be=$e("timers");}catch{}try{J=$e("timers/promises");}catch{}}function ut(e){let r=Math.pow(2,31)-1,t=1e12,i=function(){},s=function(){return []},u={},p,y=false;e.setTimeout&&(u.setTimeout=true,p=e.setTimeout(i,0),y=typeof p=="object"),u.clearTimeout=!!e.clearTimeout,u.setInterval=!!e.setInterval,u.clearInterval=!!e.clearInterval,u.hrtime=e.process&&typeof e.process.hrtime=="function",u.hrtimeBigint=u.hrtime&&typeof e.process.hrtime.bigint=="function",u.nextTick=e.process&&typeof e.process.nextTick=="function";let h=e.process&&Di().promisify;u.performance=e.performance&&typeof e.performance.now=="function";let j=e.Performance&&(typeof e.Performance).match(/^(function|object)$/),M=e.performance&&e.performance.constructor&&e.performance.constructor.prototype;u.queueMicrotask=e.hasOwnProperty("queueMicrotask"),u.requestAnimationFrame=e.requestAnimationFrame&&typeof e.requestAnimationFrame=="function",u.cancelAnimationFrame=e.cancelAnimationFrame&&typeof e.cancelAnimationFrame=="function",u.requestIdleCallback=e.requestIdleCallback&&typeof e.requestIdleCallback=="function",u.cancelIdleCallbackPresent=e.cancelIdleCallback&&typeof e.cancelIdleCallback=="function",u.setImmediate=e.setImmediate&&typeof e.setImmediate=="function",u.clearImmediate=e.clearImmediate&&typeof e.clearImmediate=="function",u.Intl=e.Intl&&typeof e.Intl=="object",e.clearTimeout&&e.clearTimeout(p);let F=e.Date,x=u.Intl?Object.defineProperties(Object.create(null),Object.getOwnPropertyDescriptors(e.Intl)):void 0,G=t;if(F===void 0)throw new Error("The global scope doesn't have a `Date` object (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)");u.Date=true;class z{constructor(a,f,d,n){this.name=a,this.entryType=f,this.startTime=d,this.duration=n;}toJSON(){return JSON.stringify({...this})}}function Q(o){return Number.isFinite?Number.isFinite(o):isFinite(o)}let Z=false;function we(o,a){o.loopLimit&&a===o.loopLimit-1&&(Z=true);}function X(){Z=false;}function Be(o){if(!o)return 0;let a=o.split(":"),f=a.length,d=f,n=0,v;if(f>3||!/^(\d\d:){0,2}\d\d?$/.test(o))throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");for(;d--;){if(v=parseInt(a[d],10),v>=60)throw new Error(`Invalid time ${o}`);n+=v*Math.pow(60,f-d-1);}return n*1e3}function gr(o){let f=o*1e6%1e6,d=f<0?f+1e6:f;return Math.floor(d)}function q(o){if(!o)return 0;if(typeof o.getTime=="function")return o.getTime();if(typeof o=="number")return o;throw new TypeError("now should be milliseconds since UNIX epoch")}function Ne(o,a,f){return f&&f.callAt>=o&&f.callAt<=a}function ae(o,a){let f=new Error(`Aborting after running ${o.loopLimit} timers, assuming an infinite loop!`);if(!a.error)return f;let d=/target\.*[<|(|[].*?[>|\]|)]\s*/,n=new RegExp(String(Object.keys(o).join("|")));y&&(n=new RegExp(`\\s+at (Object\\.)?(?:${Object.keys(o).join("|")})\\s+`));let v=-1;a.error.stack.split(`
`).some(function(w,A){return w.match(d)?(v=A,true):w.match(n)?(v=A,false):v>=0});let T=`${f}
${a.type||"Microtask"} - ${a.func.name||"anonymous"}
${a.error.stack.split(`
`).slice(v+1).join(`
`)}`;try{Object.defineProperty(f,"stack",{value:T});}catch{}return f}function C(){class o extends F{constructor(d,n,v,T,w,A,g){arguments.length===0?super(o.clock.now):super(...arguments),Object.defineProperty(this,"constructor",{value:F,enumerable:false});}static[Symbol.hasInstance](d){return d instanceof F}}return o.isFake=true,F.now&&(o.now=function(){return o.clock.now}),F.toSource&&(o.toSource=function(){return F.toSource()}),o.toString=function(){return F.toString()},new Proxy(o,{apply(){if(this instanceof o)throw new TypeError("A Proxy should only capture `new` calls with the `construct` handler. This is not supposed to be possible, so check the logic.");return new F(o.clock.now).toString()}})}function $i(){let o={};return Object.getOwnPropertyNames(x).forEach(a=>o[a]=x[a]),o.DateTimeFormat=function(...a){let f=new x.DateTimeFormat(...a),d={};return ["formatRange","formatRangeToParts","resolvedOptions"].forEach(n=>{d[n]=f[n].bind(f);}),["format","formatToParts"].forEach(n=>{d[n]=function(v){return f[n](v||o.clock.now)};}),d},o.DateTimeFormat.prototype=Object.create(x.DateTimeFormat.prototype),o.DateTimeFormat.supportedLocalesOf=x.DateTimeFormat.supportedLocalesOf,o}function Li(o,a){o.jobs||(o.jobs=[]),o.jobs.push(a);}function H(o){if(o.jobs){for(let a=0;a<o.jobs.length;a++){let f=o.jobs[a];if(f.func.apply(null,f.args),we(o,a),o.loopLimit&&a>o.loopLimit)throw ae(o,f)}X(),o.jobs=[];}}function _(o,a){if(a.func===void 0)throw new Error("Callback must be provided to timer calls");if(y&&typeof a.func!="function")throw new TypeError(`[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${a.func} of type ${typeof a.func}`);if(Z&&(a.error=new Error),a.type=a.immediate?"Immediate":"Timeout",a.hasOwnProperty("delay")&&(typeof a.delay!="number"&&(a.delay=parseInt(a.delay,10)),Q(a.delay)||(a.delay=0),a.delay=a.delay>r?1:a.delay,a.delay=Math.max(0,a.delay)),a.hasOwnProperty("interval")&&(a.type="Interval",a.interval=a.interval>r?1:a.interval),a.hasOwnProperty("animation")&&(a.type="AnimationFrame",a.animation=true),a.hasOwnProperty("idleCallback")&&(a.type="IdleCallback",a.idleCallback=true),o.timers||(o.timers={}),a.id=G++,a.createdAt=o.now,a.callAt=o.now+(parseInt(a.delay)||(o.duringTick?1:0)),o.timers[a.id]=a,y){let f={refed:true,ref:function(){return this.refed=true,f},unref:function(){return this.refed=false,f},hasRef:function(){return this.refed},refresh:function(){return a.callAt=o.now+(parseInt(a.delay)||(o.duringTick?1:0)),o.timers[a.id]=a,f},[Symbol.toPrimitive]:function(){return a.id}};return f}return a.id}function hr(o,a){if(o.callAt<a.callAt)return  -1;if(o.callAt>a.callAt)return 1;if(o.immediate&&!a.immediate)return  -1;if(!o.immediate&&a.immediate)return 1;if(o.createdAt<a.createdAt)return  -1;if(o.createdAt>a.createdAt)return 1;if(o.id<a.id)return  -1;if(o.id>a.id)return 1}function vr(o,a,f){let d=o.timers,n=null,v,T;for(v in d)d.hasOwnProperty(v)&&(T=Ne(a,f,d[v]),T&&(!n||hr(n,d[v])===1)&&(n=d[v]));return n}function Re(o){let a=o.timers,f=null,d;for(d in a)a.hasOwnProperty(d)&&(!f||hr(f,a[d])===1)&&(f=a[d]);return f}function ct(o){let a=o.timers,f=null,d;for(d in a)a.hasOwnProperty(d)&&(!f||hr(f,a[d])===-1)&&(f=a[d]);return f}function br(o,a){if(typeof a.interval=="number"?o.timers[a.id].callAt+=a.interval:delete o.timers[a.id],typeof a.func=="function")a.func.apply(null,a.args);else {let f=eval;(function(){f(a.func);})();}}function lt(o){return o==="IdleCallback"||o==="AnimationFrame"?`cancel${o}`:`clear${o}`}function Ui(o){return o==="IdleCallback"||o==="AnimationFrame"?`request${o}`:`set${o}`}function Wi(){let o=0;return function(a){!o++&&console.warn(a);}}let Gi=Wi();function Ae(o,a,f){if(!a)return;o.timers||(o.timers={});let d=Number(a);if(Number.isNaN(d)||d<t){let n=lt(f);if(o.shouldClearNativeTimers===true){let v=o[`_${n}`];return typeof v=="function"?v(a):void 0}Gi(`FakeTimers: ${n} was invoked to clear a native timer instead of one created by this library.
To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);}if(o.timers.hasOwnProperty(d)){let n=o.timers[d];if(n.type===f||n.type==="Timeout"&&f==="Interval"||n.type==="Interval"&&f==="Timeout")delete o.timers[d];else {let v=lt(f),T=Ui(n.type);throw new Error(`Cannot clear timer: timer created with ${T}() but cleared with ${v}()`)}}}function zi(o,a){let f,d,n,v="_hrtime",T="_nextTick";for(d=0,n=o.methods.length;d<n;d++){if(f=o.methods[d],f==="hrtime"&&e.process)e.process.hrtime=o[v];else if(f==="nextTick"&&e.process)e.process.nextTick=o[T];else if(f==="performance"){let w=Object.getOwnPropertyDescriptor(o,`_${f}`);w&&w.get&&!w.set?Object.defineProperty(e,f,w):w.configurable&&(e[f]=o[`_${f}`]);}else if(e[f]&&e[f].hadOwnProperty)e[f]=o[`_${f}`];else try{delete e[f];}catch{}if(o.timersModuleMethods!==void 0)for(let w=0;w<o.timersModuleMethods.length;w++){let A=o.timersModuleMethods[w];be[A.methodName]=A.original;}if(o.timersPromisesModuleMethods!==void 0)for(let w=0;w<o.timersPromisesModuleMethods.length;w++){let A=o.timersPromisesModuleMethods[w];J[A.methodName]=A.original;}}a.shouldAdvanceTime===true&&e.clearInterval(o.attachedInterval),o.methods=[];for(let[w,A]of o.abortListenerMap.entries())A.removeEventListener("abort",w),o.abortListenerMap.delete(w);return o.timers?Object.keys(o.timers).map(function(A){return o.timers[A]}):[]}function wr(o,a,f){if(f[a].hadOwnProperty=Object.prototype.hasOwnProperty.call(o,a),f[`_${a}`]=o[a],a==="Date")o[a]=f[a];else if(a==="Intl")o[a]=f[a];else if(a==="performance"){let d=Object.getOwnPropertyDescriptor(o,a);if(d&&d.get&&!d.set){Object.defineProperty(f,`_${a}`,d);let n=Object.getOwnPropertyDescriptor(f,a);Object.defineProperty(o,a,n);}else o[a]=f[a];}else o[a]=function(){return f[a].apply(f,arguments)},Object.defineProperties(o[a],Object.getOwnPropertyDescriptors(f[a]));o[a].clock=f;}function Hi(o,a){o.tick(a);}let B={setTimeout:e.setTimeout,clearTimeout:e.clearTimeout,setInterval:e.setInterval,clearInterval:e.clearInterval,Date:e.Date};u.setImmediate&&(B.setImmediate=e.setImmediate),u.clearImmediate&&(B.clearImmediate=e.clearImmediate),u.hrtime&&(B.hrtime=e.process.hrtime),u.nextTick&&(B.nextTick=e.process.nextTick),u.performance&&(B.performance=e.performance),u.requestAnimationFrame&&(B.requestAnimationFrame=e.requestAnimationFrame),u.queueMicrotask&&(B.queueMicrotask=e.queueMicrotask),u.cancelAnimationFrame&&(B.cancelAnimationFrame=e.cancelAnimationFrame),u.requestIdleCallback&&(B.requestIdleCallback=e.requestIdleCallback),u.cancelIdleCallback&&(B.cancelIdleCallback=e.cancelIdleCallback),u.Intl&&(B.Intl=x);let se=e.setImmediate||e.setTimeout;function pt(o,a){o=Math.floor(q(o)),a=a||1e3;let f=0,d=[0,0],n={now:o,Date:C(),loopLimit:a};n.Date.clock=n;function v(){return 16-(n.now-o)%16}function T(g){let c=n.now-d[0]-o,m=Math.floor(c/1e3),b=(c-m*1e3)*1e6+f-d[1];if(Array.isArray(g)){if(g[1]>1e9)throw new TypeError("Number of nanoseconds can't exceed a billion");let I=g[0],E=b-g[1],V=m-I;return E<0&&(E+=1e9,V-=1),[V,E]}return [m,b]}function w(){let g=T();return g[0]*1e3+g[1]/1e6}u.hrtimeBigint&&(T.bigint=function(){let g=T();return BigInt(g[0])*BigInt(1e9)+BigInt(g[1])}),u.Intl&&(n.Intl=$i(),n.Intl.clock=n),n.requestIdleCallback=function(c,m){let b=0;n.countTimers()>0&&(b=50);let I=_(n,{func:c,args:Array.prototype.slice.call(arguments,2),delay:typeof m>"u"?b:Math.min(m,b),idleCallback:true});return Number(I)},n.cancelIdleCallback=function(c){return Ae(n,c,"IdleCallback")},n.setTimeout=function(c,m){return _(n,{func:c,args:Array.prototype.slice.call(arguments,2),delay:m})},typeof e.Promise<"u"&&h&&(n.setTimeout[h.custom]=function(c,m){return new e.Promise(function(I){_(n,{func:I,args:[m],delay:c});})}),n.clearTimeout=function(c){return Ae(n,c,"Timeout")},n.nextTick=function(c){return Li(n,{func:c,args:Array.prototype.slice.call(arguments,1),error:Z?new Error:null})},n.queueMicrotask=function(c){return n.nextTick(c)},n.setInterval=function(c,m){return m=parseInt(m,10),_(n,{func:c,args:Array.prototype.slice.call(arguments,2),delay:m,interval:m})},n.clearInterval=function(c){return Ae(n,c,"Interval")},u.setImmediate&&(n.setImmediate=function(c){return _(n,{func:c,args:Array.prototype.slice.call(arguments,1),immediate:true})},typeof e.Promise<"u"&&h&&(n.setImmediate[h.custom]=function(c){return new e.Promise(function(b){_(n,{func:b,args:[c],immediate:true});})}),n.clearImmediate=function(c){return Ae(n,c,"Immediate")}),n.countTimers=function(){return Object.keys(n.timers||{}).length+(n.jobs||[]).length},n.requestAnimationFrame=function(c){let m=_(n,{func:c,delay:v(),get args(){return [w()]},animation:true});return Number(m)},n.cancelAnimationFrame=function(c){return Ae(n,c,"AnimationFrame")},n.runMicrotasks=function(){H(n);};function A(g,c,m,b){let I=typeof g=="number"?g:Be(g),E=Math.floor(I),V=gr(I),$=f+V,k=n.now+E;if(I<0)throw new TypeError("Negative ticks are not supported");$>=1e6&&(k+=1,$-=1e6),f=$;let L=n.now,ee=n.now,U,K,N,yt,Ar,Sr;n.duringTick=true,N=n.now,H(n),N!==n.now&&(L+=n.now-N,k+=n.now-N);function dt(){for(U=vr(n,L,k);U&&L<=k;){if(n.timers[U.id]){L=U.callAt,n.now=U.callAt,N=n.now;try{H(n),br(n,U);}catch(Se){K=K||Se;}if(c){se(yt);return}Ar();}Sr();}if(N=n.now,H(n),N!==n.now&&(L+=n.now-N,k+=n.now-N),n.duringTick=false,U=vr(n,L,k),U)try{n.tick(k-n.now);}catch(Se){K=K||Se;}else n.now=k,f=$;if(K)throw K;if(c)m(n.now);else return n.now}return yt=c&&function(){try{Ar(),Sr(),dt();}catch(Se){b(Se);}},Ar=function(){N!==n.now&&(L+=n.now-N,k+=n.now-N,ee+=n.now-N);},Sr=function(){U=vr(n,ee,k),ee=L;},dt()}return n.tick=function(c){return A(c,false)},typeof e.Promise<"u"&&(n.tickAsync=function(c){return new e.Promise(function(m,b){se(function(){try{A(c,!0,m,b);}catch(I){b(I);}});})}),n.next=function(){H(n);let c=Re(n);if(!c)return n.now;n.duringTick=true;try{return n.now=c.callAt,br(n,c),H(n),n.now}finally{n.duringTick=false;}},typeof e.Promise<"u"&&(n.nextAsync=function(){return new e.Promise(function(c,m){se(function(){try{let b=Re(n);if(!b){c(n.now);return}let I;n.duringTick=!0,n.now=b.callAt;try{br(n,b);}catch(E){I=E;}n.duringTick=!1,se(function(){I?m(I):c(n.now);});}catch(b){m(b);}});})}),n.runAll=function(){let c,m;for(H(n),m=0;m<n.loopLimit;m++){if(!n.timers||(c=Object.keys(n.timers).length,c===0))return X(),n.now;n.next(),we(n,m);}let b=Re(n);throw ae(n,b)},n.runToFrame=function(){return n.tick(v())},typeof e.Promise<"u"&&(n.runAllAsync=function(){return new e.Promise(function(c,m){let b=0;function I(){se(function(){try{H(n);let E;if(b<n.loopLimit){if(!n.timers){X(),c(n.now);return}if(E=Object.keys(n.timers).length,E===0){X(),c(n.now);return}n.next(),b++,I(),we(n,b);return}let V=Re(n);m(ae(n,V));}catch(E){m(E);}});}I();})}),n.runToLast=function(){let c=ct(n);return c?n.tick(c.callAt-n.now):(H(n),n.now)},typeof e.Promise<"u"&&(n.runToLastAsync=function(){return new e.Promise(function(c,m){se(function(){try{let b=ct(n);b||(H(n),c(n.now)),c(n.tickAsync(b.callAt-n.now));}catch(b){m(b);}});})}),n.reset=function(){f=0,n.timers={},n.jobs=[],n.now=o;},n.setSystemTime=function(c){let m=q(c),b=m-n.now,I,E;d[0]=d[0]+b,d[1]=d[1]+f,n.now=m,f=0;for(I in n.timers)n.timers.hasOwnProperty(I)&&(E=n.timers[I],E.createdAt+=b,E.callAt+=b);},n.jump=function(c){let m=typeof c=="number"?c:Be(c),b=Math.floor(m);for(let I of Object.values(n.timers))n.now+b>I.callAt&&(I.callAt=n.now+b);n.tick(b);},u.performance&&(n.performance=Object.create(null),n.performance.now=w),u.hrtime&&(n.hrtime=T),n}function Vi(o){if(arguments.length>1||o instanceof Date||Array.isArray(o)||typeof o=="number")throw new TypeError(`FakeTimers.install called with ${String(o)} install requires an object parameter`);if(e.Date.isFake===true)throw new TypeError("Can't install fake timers twice on the same global object.");if(o=typeof o<"u"?o:{},o.shouldAdvanceTime=o.shouldAdvanceTime||false,o.advanceTimeDelta=o.advanceTimeDelta||20,o.shouldClearNativeTimers=o.shouldClearNativeTimers||false,o.target)throw new TypeError("config.target is no longer supported. Use `withGlobal(target)` instead.");function a(v){if(!o.ignoreMissingTimers)throw new ReferenceError(`non-existent timers and/or objects cannot be faked: '${v}'`)}let f,d,n=pt(o.now,o.loopLimit);if(n.shouldClearNativeTimers=o.shouldClearNativeTimers,n.uninstall=function(){return zi(n,o)},n.abortListenerMap=new Map,n.methods=o.toFake||[],n.methods.length===0&&(n.methods=Object.keys(B)),o.shouldAdvanceTime===true){let v=Hi.bind(null,n,o.advanceTimeDelta),T=e.setInterval(v,o.advanceTimeDelta);n.attachedInterval=T;}if(n.methods.includes("performance")){let v=(()=>{if(M)return e.performance.constructor.prototype;if(j)return e.Performance.prototype})();if(v)Object.getOwnPropertyNames(v).forEach(function(T){T!=="now"&&(n.performance[T]=T.indexOf("getEntries")===0?s:i);}),n.performance.mark=T=>new z(T,"mark",0,0),n.performance.measure=T=>new z(T,"measure",0,100),n.performance.timeOrigin=q(o.now);else if((o.toFake||[]).includes("performance"))return a("performance")}for(e===st&&be&&(n.timersModuleMethods=[]),e===st&&J&&(n.timersPromisesModuleMethods=[]),f=0,d=n.methods.length;f<d;f++){let v=n.methods[f];if(!u[v]){a(v);continue}if(v==="hrtime"?e.process&&typeof e.process.hrtime=="function"&&wr(e.process,v,n):v==="nextTick"?e.process&&typeof e.process.nextTick=="function"&&wr(e.process,v,n):wr(e,v,n),n.timersModuleMethods!==void 0&&be[v]){let T=be[v];n.timersModuleMethods.push({methodName:v,original:T}),be[v]=e[v];}n.timersPromisesModuleMethods!==void 0&&(v==="setTimeout"?(n.timersPromisesModuleMethods.push({methodName:"setTimeout",original:J.setTimeout}),J.setTimeout=(T,w,A={})=>new Promise((g,c)=>{let m=()=>{A.signal.removeEventListener("abort",m),n.abortListenerMap.delete(m),n.clearTimeout(b),c(A.signal.reason);},b=n.setTimeout(()=>{A.signal&&(A.signal.removeEventListener("abort",m),n.abortListenerMap.delete(m)),g(w);},T);A.signal&&(A.signal.aborted?m():(A.signal.addEventListener("abort",m),n.abortListenerMap.set(m,A.signal)));})):v==="setImmediate"?(n.timersPromisesModuleMethods.push({methodName:"setImmediate",original:J.setImmediate}),J.setImmediate=(T,w={})=>new Promise((A,g)=>{let c=()=>{w.signal.removeEventListener("abort",c),n.abortListenerMap.delete(c),n.clearImmediate(m),g(w.signal.reason);},m=n.setImmediate(()=>{w.signal&&(w.signal.removeEventListener("abort",c),n.abortListenerMap.delete(c)),A(T);});w.signal&&(w.signal.aborted?c():(w.signal.addEventListener("abort",c),n.abortListenerMap.set(c,w.signal)));})):v==="setInterval"&&(n.timersPromisesModuleMethods.push({methodName:"setInterval",original:J.setInterval}),J.setInterval=(T,w,A={})=>({[Symbol.asyncIterator]:()=>{let g=()=>{let k,L,ee=new Promise((U,K)=>{k=U,L=K;});return ee.resolve=k,ee.reject=L,ee},c=false,m=false,b,I=0,E=[],V=n.setInterval(()=>{E.length>0?E.shift().resolve():I++;},T),$=()=>{A.signal.removeEventListener("abort",$),n.abortListenerMap.delete($),n.clearInterval(V),c=true;for(let k of E)k.resolve();};return A.signal&&(A.signal.aborted?c=true:(A.signal.addEventListener("abort",$),n.abortListenerMap.set($,A.signal))),{next:async()=>{if(A.signal?.aborted&&!m)throw m=true,A.signal.reason;if(c)return {done:true,value:void 0};if(I>0)return I--,{done:false,value:w};let k=g();if(E.push(k),await k,b&&E.length===0&&b.resolve(),A.signal?.aborted&&!m)throw m=true,A.signal.reason;return c?{done:true,value:void 0}:{done:false,value:w}},return:async()=>c?{done:true,value:void 0}:(E.length>0&&(b=g(),await b),n.clearInterval(V),c=true,A.signal&&(A.signal.removeEventListener("abort",$),n.abortListenerMap.delete($)),{done:true,value:void 0})}}})));}return n}return {timers:B,createClock:pt,install:Vi,withGlobal:ut}}var ft=ut(st);De.timers=ft.timers;De.createClock=ft.createClock;De.install=ft.install;De.withGlobal=ut;});var Ni=_i(Bi()),Yu=new Date,Ce,Ri=(e,r)=>{let t=r.parameters.mockingDate;return t?(Ce?Ce.setSystemTime(t):Ce=Ni.default.install({toFake:["Date"],...t&&{now:t}}),e(r)):(Ce&&Ce.setSystemTime(Yu),e(r))};var Zu={decorators:[Ri]},Pc=Zu;export{Pc as default};//# sourceMappingURL=preview.js.map
//# sourceMappingURL=preview.js.map