var Tabby = (function (exports) { 'use strict'; var zd=Object.create;var Hn=Object.defineProperty;var Hd=Object.getOwnPropertyDescriptor;var Wd=Object.getOwnPropertyNames;var Gd=Object.getPrototypeOf,Vd=Object.prototype.hasOwnProperty;var Jd=(t,e,r)=>e in t?Hn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var nn=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var tr=(t,e)=>()=>(t&&(e=t(t=0)),e);var ee=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Yd=(t,e)=>{for(var r in e)Hn(t,r,{get:e[r],enumerable:!0});},Kd=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Wd(e))!Vd.call(t,i)&&i!==r&&Hn(t,i,{get:()=>e[i],enumerable:!(n=Hd(e,i))||n.enumerable});return t};var rr=(t,e,r)=>(r=t!=null?zd(Gd(t)):{},Kd(e||!t||!t.__esModule?Hn(r,"default",{value:t,enumerable:!0}):r,t));var xe=(t,e,r)=>(Jd(t,typeof e!="symbol"?e+"":e,r),r),po=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var v=(t,e,r)=>(po(t,e,"read from private field"),r?r.call(t):e.get(t)),se=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r);},re=(t,e,r,n)=>(po(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),Wn=(t,e,r,n)=>({set _(i){re(t,e,i,r);},get _(){return v(t,e,n)}}),ne=(t,e,r)=>(po(t,e,"access private method"),r);var D,p=tr(()=>{D=globalThis;});var h=tr(()=>{});var d=tr(()=>{});var N={};Yd(N,{_debugEnd:()=>mu,_debugProcess:()=>yu,_events:()=>Pu,_eventsCount:()=>Uu,_exiting:()=>Ka,_fatalExceptions:()=>cu,_getActiveHandles:()=>eu,_getActiveRequests:()=>Za,_kill:()=>ru,_linkedBinding:()=>Ja,_maxListeners:()=>_u,_preload_modules:()=>Ou,_rawDebug:()=>Ga,_startProfilerIdleNotifier:()=>gu,_stopProfilerIdleNotifier:()=>wu,_tickCallback:()=>du,abort:()=>Au,addListener:()=>Fu,allowedNodeEnvironmentFlags:()=>uu,arch:()=>Ua,argv:()=>Na,argv0:()=>Tu,assert:()=>lu,binding:()=>Ma,chdir:()=>Ha,config:()=>Xa,cpuUsage:()=>Jn,cwd:()=>za,debugPort:()=>Iu,default:()=>zu,dlopen:()=>Qa,domain:()=>Ya,emit:()=>qu,emitWarning:()=>ja,env:()=>La,execArgv:()=>Da,execPath:()=>Bu,exit:()=>su,features:()=>fu,hasUncaughtExceptionCaptureCallback:()=>hu,hrtime:()=>Vn,kill:()=>ou,listeners:()=>$u,memoryUsage:()=>iu,moduleLoadList:()=>Va,nextTick:()=>Ca,off:()=>Nu,on:()=>Ct,once:()=>Lu,openStdin:()=>au,pid:()=>Su,platform:()=>Fa,ppid:()=>xu,prependListener:()=>ju,prependOnceListener:()=>Mu,reallyExit:()=>tu,release:()=>Wa,removeAllListeners:()=>ku,removeListener:()=>Du,resourceUsage:()=>nu,setSourceMapsEnabled:()=>Ru,setUncaughtExceptionCaptureCallback:()=>pu,stderr:()=>vu,stdin:()=>Eu,stdout:()=>bu,title:()=>Pa,umask:()=>$a,uptime:()=>Cu,version:()=>ka,versions:()=>qa});function mo(t){throw new Error("Node.js process "+t+" is not supported by JSPM core outside of Node.js")}function Xd(){!Er||!nr||(Er=!1,nr.length?Rt=nr.concat(Rt):Gn=-1,Rt.length&&Ra());}function Ra(){if(!Er){var t=setTimeout(Xd,0);Er=!0;for(var e=Rt.length;e;){for(nr=Rt,Rt=[];++Gn1)for(var r=1;r{p();h();d();m();y();Rt=[],Er=!1,Gn=-1;_a.prototype.run=function(){this.fun.apply(null,this.array);};Pa="browser",Ua="x64",Fa="browser",La={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Na=["/usr/bin/node"],Da=[],ka="v16.8.0",qa={},ja=function(t,e){console.warn((e?e+": ":"")+t);},Ma=function(t){mo("binding");},$a=function(t){return 0},za=function(){return "/"},Ha=function(t){},Wa={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};Ga=ze,Va=[];Ya={},Ka=!1,Xa={};tu=ze,ru=ze,Jn=function(){return {}},nu=Jn,iu=Jn,ou=ze,su=ze,au=ze,uu={};fu={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},cu=ze,pu=ze;du=ze,yu=ze,mu=ze,gu=ze,wu=ze,bu=void 0,vu=void 0,Eu=void 0,Au=ze,Su=2,xu=1,Bu="/bin/usr/node",Iu=9229,Tu="node",Ou=[],Ru=ze,qt={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};qt.now===void 0&&(ho=Date.now(),qt.timing&&qt.timing.navigationStart&&(ho=qt.timing.navigationStart),qt.now=()=>Date.now()-ho);yo=1e9;Vn.bigint=function(t){var e=Vn(t);return typeof BigInt>"u"?e[0]*yo+e[1]:BigInt(e[0]*yo)+BigInt(e[1])};_u=10,Pu={},Uu=0;Fu=Ct,Lu=Ct,Nu=Ct,Du=Ct,ku=Ct,qu=ze,ju=Ct,Mu=Ct;zu={version:ka,versions:qa,arch:Ua,platform:Fa,release:Wa,_rawDebug:Ga,moduleLoadList:Va,binding:Ma,_linkedBinding:Ja,_events:Pu,_eventsCount:Uu,_maxListeners:_u,on:Ct,addListener:Fu,once:Lu,off:Nu,removeListener:Du,removeAllListeners:ku,emit:qu,prependListener:ju,prependOnceListener:Mu,listeners:$u,domain:Ya,_exiting:Ka,config:Xa,dlopen:Qa,uptime:Cu,_getActiveRequests:Za,_getActiveHandles:eu,reallyExit:tu,_kill:ru,cpuUsage:Jn,resourceUsage:nu,memoryUsage:iu,kill:ou,exit:su,openStdin:au,allowedNodeEnvironmentFlags:uu,assert:lu,features:fu,_fatalExceptions:cu,setUncaughtExceptionCaptureCallback:pu,hasUncaughtExceptionCaptureCallback:hu,emitWarning:ja,nextTick:Ca,_tickCallback:du,_debugProcess:yu,_debugEnd:mu,_startProfilerIdleNotifier:gu,_stopProfilerIdleNotifier:wu,stdout:bu,stdin:Eu,stderr:vu,abort:Au,umask:$a,chdir:Ha,cwd:za,env:La,title:Pa,argv:Na,execArgv:Da,pid:Su,ppid:xu,execPath:Bu,debugPort:Iu,hrtime:Vn,argv0:Tu,_preload_modules:Ou,setSourceMapsEnabled:Ru};});var y=tr(()=>{Hu();});function Qd(){if(Wu)return on;Wu=!0,on.byteLength=f,on.toByteArray=g,on.fromByteArray=U;for(var t=[],e=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var R=C.indexOf("=");R===-1&&(R=S);var W=R===S?0:4-R%4;return [R,W]}function f(C){var S=s(C),R=S[0],W=S[1];return (R+W)*3/4-W}function w(C,S,R){return (S+R)*3/4-R}function g(C){var S,R=s(C),W=R[0],$=R[1],G=new r(w(C,W,$)),X=0,O=$>0?W-4:W,F;for(F=0;F>16&255,G[X++]=S>>8&255,G[X++]=S&255;return $===2&&(S=e[C.charCodeAt(F)]<<2|e[C.charCodeAt(F+1)]>>4,G[X++]=S&255),$===1&&(S=e[C.charCodeAt(F)]<<10|e[C.charCodeAt(F+1)]<<4|e[C.charCodeAt(F+2)]>>2,G[X++]=S>>8&255,G[X++]=S&255),G}function I(C){return t[C>>18&63]+t[C>>12&63]+t[C>>6&63]+t[C&63]}function T(C,S,R){for(var W,$=[],G=S;GO?O:X+G));return W===1?(S=C[R-1],$.push(t[S>>2]+t[S<<4&63]+"==")):W===2&&(S=(C[R-2]<<8)+C[R-1],$.push(t[S>>10]+t[S>>4&63]+t[S<<2&63]+"=")),$.join("")}return on}function Zd(){if(Gu)return Yn;Gu=!0;return Yn.read=function(t,e,r,n,i){var o,s,f=i*8-n-1,w=(1<>1,I=-7,T=r?i-1:0,U=r?-1:1,C=t[e+T];for(T+=U,o=C&(1<<-I)-1,C>>=-I,I+=f;I>0;o=o*256+t[e+T],T+=U,I-=8);for(s=o&(1<<-I)-1,o>>=-I,I+=n;I>0;s=s*256+t[e+T],T+=U,I-=8);if(o===0)o=1-g;else {if(o===w)return s?NaN:(C?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-g;}return (C?-1:1)*s*Math.pow(2,o-n)},Yn.write=function(t,e,r,n,i,o){var s,f,w,g=o*8-i-1,I=(1<>1,U=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=n?0:o-1,S=n?1:-1,R=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(f=isNaN(e)?1:0,s=I):(s=Math.floor(Math.log(e)/Math.LN2),e*(w=Math.pow(2,-s))<1&&(s--,w*=2),s+T>=1?e+=U/w:e+=U*Math.pow(2,1-T),e*w>=2&&(s++,w/=2),s+T>=I?(f=0,s=I):s+T>=1?(f=(e*w-1)*Math.pow(2,i),s=s+T):(f=e*Math.pow(2,T-1)*Math.pow(2,i),s=0));i>=8;t[r+C]=f&255,C+=S,f/=256,i-=8);for(s=s<0;t[r+C]=s&255,C+=S,s/=256,g-=8);t[r+C-S]|=R*128;},Yn}function ey(){if(Vu)return ir;Vu=!0;let t=Qd(),e=Zd(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ir.Buffer=s,ir.SlowBuffer=$,ir.INSPECT_MAX_BYTES=50;let n=2147483647;ir.kMaxLength=n,s.TYPED_ARRAY_SUPPORT=i(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let l=new Uint8Array(1),a={foo:function(){return 42}};return Object.setPrototypeOf(a,Uint8Array.prototype),Object.setPrototypeOf(l,a),l.foo()===42}catch{return !1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(l){if(l>n)throw new RangeError('The value "'+l+'" is invalid for option "size"');let a=new Uint8Array(l);return Object.setPrototypeOf(a,s.prototype),a}function s(l,a,u){if(typeof l=="number"){if(typeof a=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return I(l)}return f(l,a,u)}s.poolSize=8192;function f(l,a,u){if(typeof l=="string")return T(l,a);if(ArrayBuffer.isView(l))return C(l);if(l==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l);if(ke(l,ArrayBuffer)||l&&ke(l.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ke(l,SharedArrayBuffer)||l&&ke(l.buffer,SharedArrayBuffer)))return S(l,a,u);if(typeof l=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let b=l.valueOf&&l.valueOf();if(b!=null&&b!==l)return s.from(b,a,u);let _=R(l);if(_)return _;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof l[Symbol.toPrimitive]=="function")return s.from(l[Symbol.toPrimitive]("string"),a,u);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l)}s.from=function(l,a,u){return f(l,a,u)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function w(l){if(typeof l!="number")throw new TypeError('"size" argument must be of type number');if(l<0)throw new RangeError('The value "'+l+'" is invalid for option "size"')}function g(l,a,u){return w(l),l<=0?o(l):a!==void 0?typeof u=="string"?o(l).fill(a,u):o(l).fill(a):o(l)}s.alloc=function(l,a,u){return g(l,a,u)};function I(l){return w(l),o(l<0?0:W(l)|0)}s.allocUnsafe=function(l){return I(l)},s.allocUnsafeSlow=function(l){return I(l)};function T(l,a){if((typeof a!="string"||a==="")&&(a="utf8"),!s.isEncoding(a))throw new TypeError("Unknown encoding: "+a);let u=G(l,a)|0,b=o(u),_=b.write(l,a);return _!==u&&(b=b.slice(0,_)),b}function U(l){let a=l.length<0?0:W(l.length)|0,u=o(a);for(let b=0;b=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return l|0}function $(l){return +l!=l&&(l=0),s.alloc(+l)}s.isBuffer=function(a){return a!=null&&a._isBuffer===!0&&a!==s.prototype},s.compare=function(a,u){if(ke(a,Uint8Array)&&(a=s.from(a,a.offset,a.byteLength)),ke(u,Uint8Array)&&(u=s.from(u,u.offset,u.byteLength)),!s.isBuffer(a)||!s.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a===u)return 0;let b=a.length,_=u.length;for(let M=0,J=Math.min(b,_);M_.length?(s.isBuffer(J)||(J=s.from(J)),J.copy(_,M)):Uint8Array.prototype.set.call(_,J,M);else if(s.isBuffer(J))J.copy(_,M);else throw new TypeError('"list" argument must be an Array of Buffers');M+=J.length;}return _};function G(l,a){if(s.isBuffer(l))return l.length;if(ArrayBuffer.isView(l)||ke(l,ArrayBuffer))return l.byteLength;if(typeof l!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof l);let u=l.length,b=arguments.length>2&&arguments[2]===!0;if(!b&&u===0)return 0;let _=!1;for(;;)switch(a){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return Ve(l).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u*2;case"hex":return u>>>1;case"base64":return Re(l).length;default:if(_)return b?-1:Ve(l).length;a=(""+a).toLowerCase(),_=!0;}}s.byteLength=G;function X(l,a,u){let b=!1;if((a===void 0||a<0)&&(a=0),a>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0,a>>>=0,u<=a))return "";for(l||(l="utf8");;)switch(l){case"hex":return ye(this,a,u);case"utf8":case"utf-8":return oe(this,a,u);case"ascii":return Te(this,a,u);case"latin1":case"binary":return ve(this,a,u);case"base64":return ie(this,a,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return at(this,a,u);default:if(b)throw new TypeError("Unknown encoding: "+l);l=(l+"").toLowerCase(),b=!0;}}s.prototype._isBuffer=!0;function O(l,a,u){let b=l[a];l[a]=l[u],l[u]=b;}s.prototype.swap16=function(){let a=this.length;if(a%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let u=0;uu&&(a+=" ... "),""},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(a,u,b,_,M){if(ke(a,Uint8Array)&&(a=s.from(a,a.offset,a.byteLength)),!s.isBuffer(a))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof a);if(u===void 0&&(u=0),b===void 0&&(b=a?a.length:0),_===void 0&&(_=0),M===void 0&&(M=this.length),u<0||b>a.length||_<0||M>this.length)throw new RangeError("out of range index");if(_>=M&&u>=b)return 0;if(_>=M)return -1;if(u>=b)return 1;if(u>>>=0,b>>>=0,_>>>=0,M>>>=0,this===a)return 0;let J=M-_,fe=b-u,Be=Math.min(J,fe),Ae=this.slice(_,M),Ie=a.slice(u,b);for(let me=0;me2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,vr(u)&&(u=_?0:l.length-1),u<0&&(u=l.length+u),u>=l.length){if(_)return -1;u=l.length-1;}else if(u<0)if(_)u=0;else return -1;if(typeof a=="string"&&(a=s.from(a,b)),s.isBuffer(a))return a.length===0?-1:A(l,a,u,b,_);if(typeof a=="number")return a=a&255,typeof Uint8Array.prototype.indexOf=="function"?_?Uint8Array.prototype.indexOf.call(l,a,u):Uint8Array.prototype.lastIndexOf.call(l,a,u):A(l,[a],u,b,_);throw new TypeError("val must be string, number or Buffer")}function A(l,a,u,b,_){let M=1,J=l.length,fe=a.length;if(b!==void 0&&(b=String(b).toLowerCase(),b==="ucs2"||b==="ucs-2"||b==="utf16le"||b==="utf-16le")){if(l.length<2||a.length<2)return -1;M=2,J/=2,fe/=2,u/=2;}function Be(Ie,me){return M===1?Ie[me]:Ie.readUInt16BE(me*M)}let Ae;if(_){let Ie=-1;for(Ae=u;AeJ&&(u=J-fe),Ae=u;Ae>=0;Ae--){let Ie=!0;for(let me=0;me_&&(b=_)):b=_;let M=a.length;b>M/2&&(b=M/2);let J;for(J=0;J>>0,isFinite(b)?(b=b>>>0,_===void 0&&(_="utf8")):(_=b,b=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let M=this.length-u;if((b===void 0||b>M)&&(b=M),a.length>0&&(b<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");_||(_="utf8");let J=!1;for(;;)switch(_){case"hex":return B(this,a,u,b);case"utf8":case"utf-8":return E(this,a,u,b);case"ascii":case"latin1":case"binary":return L(this,a,u,b);case"base64":return z(this,a,u,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,a,u,b);default:if(J)throw new TypeError("Unknown encoding: "+_);_=(""+_).toLowerCase(),J=!0;}},s.prototype.toJSON=function(){return {type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ie(l,a,u){return a===0&&u===l.length?t.fromByteArray(l):t.fromByteArray(l.slice(a,u))}function oe(l,a,u){u=Math.min(l.length,u);let b=[],_=a;for(;_239?4:M>223?3:M>191?2:1;if(_+fe<=u){let Be,Ae,Ie,me;switch(fe){case 1:M<128&&(J=M);break;case 2:Be=l[_+1],(Be&192)===128&&(me=(M&31)<<6|Be&63,me>127&&(J=me));break;case 3:Be=l[_+1],Ae=l[_+2],(Be&192)===128&&(Ae&192)===128&&(me=(M&15)<<12|(Be&63)<<6|Ae&63,me>2047&&(me<55296||me>57343)&&(J=me));break;case 4:Be=l[_+1],Ae=l[_+2],Ie=l[_+3],(Be&192)===128&&(Ae&192)===128&&(Ie&192)===128&&(me=(M&15)<<18|(Be&63)<<12|(Ae&63)<<6|Ie&63,me>65535&&me<1114112&&(J=me));}}J===null?(J=65533,fe=1):J>65535&&(J-=65536,b.push(J>>>10&1023|55296),J=56320|J&1023),b.push(J),_+=fe;}return he(b)}let te=4096;function he(l){let a=l.length;if(a<=te)return String.fromCharCode.apply(String,l);let u="",b=0;for(;bb)&&(u=b);let _="";for(let M=a;Mb&&(a=b),u<0?(u+=b,u<0&&(u=0)):u>b&&(u=b),uu)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(a,u,b){a=a>>>0,u=u>>>0,b||Oe(a,u,this.length);let _=this[a],M=1,J=0;for(;++J>>0,u=u>>>0,b||Oe(a,u,this.length);let _=this[a+--u],M=1;for(;u>0&&(M*=256);)_+=this[a+--u]*M;return _},s.prototype.readUint8=s.prototype.readUInt8=function(a,u){return a=a>>>0,u||Oe(a,1,this.length),this[a]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(a,u){return a=a>>>0,u||Oe(a,2,this.length),this[a]|this[a+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(a,u){return a=a>>>0,u||Oe(a,2,this.length),this[a]<<8|this[a+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(a,u){return a=a>>>0,u||Oe(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+this[a+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(a,u){return a=a>>>0,u||Oe(a,4,this.length),this[a]*16777216+(this[a+1]<<16|this[a+2]<<8|this[a+3])},s.prototype.readBigUInt64LE=kt(function(a){a=a>>>0,Q(a,"offset");let u=this[a],b=this[a+7];(u===void 0||b===void 0)&&le(a,this.length-8);let _=u+this[++a]*2**8+this[++a]*2**16+this[++a]*2**24,M=this[++a]+this[++a]*2**8+this[++a]*2**16+b*2**24;return BigInt(_)+(BigInt(M)<>>0,Q(a,"offset");let u=this[a],b=this[a+7];(u===void 0||b===void 0)&&le(a,this.length-8);let _=u*2**24+this[++a]*2**16+this[++a]*2**8+this[++a],M=this[++a]*2**24+this[++a]*2**16+this[++a]*2**8+b;return (BigInt(_)<>>0,u=u>>>0,b||Oe(a,u,this.length);let _=this[a],M=1,J=0;for(;++J=M&&(_-=Math.pow(2,8*u)),_},s.prototype.readIntBE=function(a,u,b){a=a>>>0,u=u>>>0,b||Oe(a,u,this.length);let _=u,M=1,J=this[a+--_];for(;_>0&&(M*=256);)J+=this[a+--_]*M;return M*=128,J>=M&&(J-=Math.pow(2,8*u)),J},s.prototype.readInt8=function(a,u){return a=a>>>0,u||Oe(a,1,this.length),this[a]&128?(255-this[a]+1)*-1:this[a]},s.prototype.readInt16LE=function(a,u){a=a>>>0,u||Oe(a,2,this.length);let b=this[a]|this[a+1]<<8;return b&32768?b|4294901760:b},s.prototype.readInt16BE=function(a,u){a=a>>>0,u||Oe(a,2,this.length);let b=this[a+1]|this[a]<<8;return b&32768?b|4294901760:b},s.prototype.readInt32LE=function(a,u){return a=a>>>0,u||Oe(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},s.prototype.readInt32BE=function(a,u){return a=a>>>0,u||Oe(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},s.prototype.readBigInt64LE=kt(function(a){a=a>>>0,Q(a,"offset");let u=this[a],b=this[a+7];(u===void 0||b===void 0)&&le(a,this.length-8);let _=this[a+4]+this[a+5]*2**8+this[a+6]*2**16+(b<<24);return (BigInt(_)<>>0,Q(a,"offset");let u=this[a],b=this[a+7];(u===void 0||b===void 0)&&le(a,this.length-8);let _=(u<<24)+this[++a]*2**16+this[++a]*2**8+this[++a];return (BigInt(_)<>>0,u||Oe(a,4,this.length),e.read(this,a,!0,23,4)},s.prototype.readFloatBE=function(a,u){return a=a>>>0,u||Oe(a,4,this.length),e.read(this,a,!1,23,4)},s.prototype.readDoubleLE=function(a,u){return a=a>>>0,u||Oe(a,8,this.length),e.read(this,a,!0,52,8)},s.prototype.readDoubleBE=function(a,u){return a=a>>>0,u||Oe(a,8,this.length),e.read(this,a,!1,52,8)};function _e(l,a,u,b,_,M){if(!s.isBuffer(l))throw new TypeError('"buffer" argument must be a Buffer instance');if(a>_||al.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(a,u,b,_){if(a=+a,u=u>>>0,b=b>>>0,!_){let fe=Math.pow(2,8*b)-1;_e(this,a,u,b,fe,0);}let M=1,J=0;for(this[u]=a&255;++J>>0,b=b>>>0,!_){let fe=Math.pow(2,8*b)-1;_e(this,a,u,b,fe,0);}let M=b-1,J=1;for(this[u+M]=a&255;--M>=0&&(J*=256);)this[u+M]=a/J&255;return u+b},s.prototype.writeUint8=s.prototype.writeUInt8=function(a,u,b){return a=+a,u=u>>>0,b||_e(this,a,u,1,255,0),this[u]=a&255,u+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(a,u,b){return a=+a,u=u>>>0,b||_e(this,a,u,2,65535,0),this[u]=a&255,this[u+1]=a>>>8,u+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(a,u,b){return a=+a,u=u>>>0,b||_e(this,a,u,2,65535,0),this[u]=a>>>8,this[u+1]=a&255,u+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(a,u,b){return a=+a,u=u>>>0,b||_e(this,a,u,4,4294967295,0),this[u+3]=a>>>24,this[u+2]=a>>>16,this[u+1]=a>>>8,this[u]=a&255,u+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(a,u,b){return a=+a,u=u>>>0,b||_e(this,a,u,4,4294967295,0),this[u]=a>>>24,this[u+1]=a>>>16,this[u+2]=a>>>8,this[u+3]=a&255,u+4};function tn(l,a,u,b,_){Y(a,b,_,l,u,7);let M=Number(a&BigInt(4294967295));l[u++]=M,M=M>>8,l[u++]=M,M=M>>8,l[u++]=M,M=M>>8,l[u++]=M;let J=Number(a>>BigInt(32)&BigInt(4294967295));return l[u++]=J,J=J>>8,l[u++]=J,J=J>>8,l[u++]=J,J=J>>8,l[u++]=J,u}function wr(l,a,u,b,_){Y(a,b,_,l,u,7);let M=Number(a&BigInt(4294967295));l[u+7]=M,M=M>>8,l[u+6]=M,M=M>>8,l[u+5]=M,M=M>>8,l[u+4]=M;let J=Number(a>>BigInt(32)&BigInt(4294967295));return l[u+3]=J,J=J>>8,l[u+2]=J,J=J>>8,l[u+1]=J,J=J>>8,l[u]=J,u+8}s.prototype.writeBigUInt64LE=kt(function(a,u=0){return tn(this,a,u,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=kt(function(a,u=0){return wr(this,a,u,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(a,u,b,_){if(a=+a,u=u>>>0,!_){let Be=Math.pow(2,8*b-1);_e(this,a,u,b,Be-1,-Be);}let M=0,J=1,fe=0;for(this[u]=a&255;++M>0)-fe&255;return u+b},s.prototype.writeIntBE=function(a,u,b,_){if(a=+a,u=u>>>0,!_){let Be=Math.pow(2,8*b-1);_e(this,a,u,b,Be-1,-Be);}let M=b-1,J=1,fe=0;for(this[u+M]=a&255;--M>=0&&(J*=256);)a<0&&fe===0&&this[u+M+1]!==0&&(fe=1),this[u+M]=(a/J>>0)-fe&255;return u+b},s.prototype.writeInt8=function(a,u,b){return a=+a,u=u>>>0,b||_e(this,a,u,1,127,-128),a<0&&(a=255+a+1),this[u]=a&255,u+1},s.prototype.writeInt16LE=function(a,u,b){return a=+a,u=u>>>0,b||_e(this,a,u,2,32767,-32768),this[u]=a&255,this[u+1]=a>>>8,u+2},s.prototype.writeInt16BE=function(a,u,b){return a=+a,u=u>>>0,b||_e(this,a,u,2,32767,-32768),this[u]=a>>>8,this[u+1]=a&255,u+2},s.prototype.writeInt32LE=function(a,u,b){return a=+a,u=u>>>0,b||_e(this,a,u,4,2147483647,-2147483648),this[u]=a&255,this[u+1]=a>>>8,this[u+2]=a>>>16,this[u+3]=a>>>24,u+4},s.prototype.writeInt32BE=function(a,u,b){return a=+a,u=u>>>0,b||_e(this,a,u,4,2147483647,-2147483648),a<0&&(a=4294967295+a+1),this[u]=a>>>24,this[u+1]=a>>>16,this[u+2]=a>>>8,this[u+3]=a&255,u+4},s.prototype.writeBigInt64LE=kt(function(a,u=0){return tn(this,a,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=kt(function(a,u=0){return wr(this,a,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function br(l,a,u,b,_,M){if(u+b>l.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function rn(l,a,u,b,_){return a=+a,u=u>>>0,_||br(l,a,u,4),e.write(l,a,u,b,23,4),u+4}s.prototype.writeFloatLE=function(a,u,b){return rn(this,a,u,!0,b)},s.prototype.writeFloatBE=function(a,u,b){return rn(this,a,u,!1,b)};function Z(l,a,u,b,_){return a=+a,u=u>>>0,_||br(l,a,u,8),e.write(l,a,u,b,52,8),u+8}s.prototype.writeDoubleLE=function(a,u,b){return Z(this,a,u,!0,b)},s.prototype.writeDoubleBE=function(a,u,b){return Z(this,a,u,!1,b)},s.prototype.copy=function(a,u,b,_){if(!s.isBuffer(a))throw new TypeError("argument should be a Buffer");if(b||(b=0),!_&&_!==0&&(_=this.length),u>=a.length&&(u=a.length),u||(u=0),_>0&&_=this.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("sourceEnd out of bounds");_>this.length&&(_=this.length),a.length-u<_-b&&(_=a.length-u+b);let M=_-b;return this===a&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(u,b,_):Uint8Array.prototype.set.call(a,this.subarray(b,_),u),M},s.prototype.fill=function(a,u,b,_){if(typeof a=="string"){if(typeof u=="string"?(_=u,u=0,b=this.length):typeof b=="string"&&(_=b,b=this.length),_!==void 0&&typeof _!="string")throw new TypeError("encoding must be a string");if(typeof _=="string"&&!s.isEncoding(_))throw new TypeError("Unknown encoding: "+_);if(a.length===1){let J=a.charCodeAt(0);(_==="utf8"&&J<128||_==="latin1")&&(a=J);}}else typeof a=="number"?a=a&255:typeof a=="boolean"&&(a=Number(a));if(u<0||this.length>>0,b=b===void 0?this.length:b>>>0,a||(a=0);let M;if(typeof a=="number")for(M=u;M2**32?_=P(String(u)):typeof u=="bigint"&&(_=String(u),(u>BigInt(2)**BigInt(32)||u<-(BigInt(2)**BigInt(32)))&&(_=P(_)),_+="n"),b+=` It must be ${a}. Received ${_}`,b},RangeError);function P(l){let a="",u=l.length,b=l[0]==="-"?1:0;for(;u>=b+4;u-=3)a=`_${l.slice(u-3,u)}${a}`;return `${l.slice(0,u)}${a}`}function K(l,a,u){Q(a,"offset"),(l[a]===void 0||l[a+u]===void 0)&&le(a,l.length-(u+1));}function Y(l,a,u,b,_,M){if(l>u||l3?a===0||a===BigInt(0)?fe=`>= 0${J} and < 2${J} ** ${(M+1)*8}${J}`:fe=`>= -(2${J} ** ${(M+1)*8-1}${J}) and < 2 ** ${(M+1)*8-1}${J}`:fe=`>= ${a}${J} and <= ${u}${J}`,new c.ERR_OUT_OF_RANGE("value",fe,l)}K(b,_,M);}function Q(l,a){if(typeof l!="number")throw new c.ERR_INVALID_ARG_TYPE(a,"number",l)}function le(l,a,u){throw Math.floor(l)!==l?(Q(l,u),new c.ERR_OUT_OF_RANGE(u||"offset","an integer",l)):a<0?new c.ERR_BUFFER_OUT_OF_BOUNDS:new c.ERR_OUT_OF_RANGE(u||"offset",`>= ${u?1:0} and <= ${a}`,l)}let Ee=/[^+/0-9A-Za-z-_]/g;function Ce(l){if(l=l.split("=")[0],l=l.trim().replace(Ee,""),l.length<2)return "";for(;l.length%4!==0;)l=l+"=";return l}function Ve(l,a){a=a||1/0;let u,b=l.length,_=null,M=[];for(let J=0;J55295&&u<57344){if(!_){if(u>56319){(a-=3)>-1&&M.push(239,191,189);continue}else if(J+1===b){(a-=3)>-1&&M.push(239,191,189);continue}_=u;continue}if(u<56320){(a-=3)>-1&&M.push(239,191,189),_=u;continue}u=(_-55296<<10|u-56320)+65536;}else _&&(a-=3)>-1&&M.push(239,191,189);if(_=null,u<128){if((a-=1)<0)break;M.push(u);}else if(u<2048){if((a-=2)<0)break;M.push(u>>6|192,u&63|128);}else if(u<65536){if((a-=3)<0)break;M.push(u>>12|224,u>>6&63|128,u&63|128);}else if(u<1114112){if((a-=4)<0)break;M.push(u>>18|240,u>>12&63|128,u>>6&63|128,u&63|128);}else throw new Error("Invalid code point")}return M}function Me(l){let a=[];for(let u=0;u>8,_=u%256,M.push(_),M.push(b);return M}function Re(l){return t.toByteArray(Ce(l))}function we(l,a,u,b){let _;for(_=0;_=a.length||_>=l.length);++_)a[_+u]=l[_];return _}function ke(l,a){return l instanceof a||l!=null&&l.constructor!=null&&l.constructor.name!=null&&l.constructor.name===a.name}function vr(l){return l!==l}let Md=function(){let l="0123456789abcdef",a=new Array(256);for(let u=0;u<16;++u){let b=u*16;for(let _=0;_<16;++_)a[b+_]=l[u]+l[_];}return a}();function kt(l){return typeof BigInt>"u"?$d:l}function $d(){throw new Error("BigInt not supported")}return ir}var on,Wu,Yn,Gu,ir,Vu,or,k,Ju=tr(()=>{p();h();d();m();y();on={},Wu=!1;Yn={},Gu=!1;ir={},Vu=!1;or=ey();k=or.Buffer;});var m=tr(()=>{Ju();});var vo=ee((Tv,ul)=>{p();h();d();m();y();var al=Object.prototype.toString;ul.exports=function(e){var r=al.call(e),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&al.call(e.callee)==="[object Function]"),n};});var gl=ee((Uv,ml)=>{p();h();d();m();y();var yl;Object.keys||(sn=Object.prototype.hasOwnProperty,Eo=Object.prototype.toString,ll=vo(),Ao=Object.prototype.propertyIsEnumerable,fl=!Ao.call({toString:null},"toString"),cl=Ao.call(function(){},"prototype"),an=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Zn=function(t){var e=t.constructor;return e&&e.prototype===t},pl={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},hl=function(){if(typeof window>"u")return !1;for(var t in window)try{if(!pl["$"+t]&&sn.call(window,t)&&window[t]!==null&&typeof window[t]=="object")try{Zn(window[t]);}catch{return !0}}catch{return !0}return !1}(),dl=function(t){if(typeof window>"u"||!hl)return Zn(t);try{return Zn(t)}catch{return !1}},yl=function(e){var r=e!==null&&typeof e=="object",n=Eo.call(e)==="[object Function]",i=ll(e),o=r&&Eo.call(e)==="[object String]",s=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var f=cl&&n;if(o&&e.length>0&&!sn.call(e,0))for(var w=0;w0)for(var g=0;g{p();h();d();m();y();var oy=Array.prototype.slice,sy=vo(),wl=Object.keys,ei=wl?function(e){return wl(e)}:gl(),bl=Object.keys;ei.shim=function(){if(Object.keys){var e=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);e||(Object.keys=function(n){return sy(n)?bl(oy.call(n)):bl(n)});}else Object.keys=ei;return Object.keys||ei};vl.exports=ei;});var un=ee((Wv,El)=>{p();h();d();m();y();El.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return !1;if(typeof Symbol.iterator=="symbol")return !0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return !1;var i=42;e[r]=i;for(r in e)return !1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return !1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return !1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,r);if(s.value!==i||s.enumerable!==!0)return !1}return !0};});var ri=ee((Xv,Sl)=>{p();h();d();m();y();var Al=typeof Symbol<"u"&&Symbol,ay=un();Sl.exports=function(){return typeof Al!="function"||typeof Symbol!="function"||typeof Al("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ay()};});var Il=ee((nE,Bl)=>{p();h();d();m();y();var xl={foo:{}},uy=Object;Bl.exports=function(){return {__proto__:xl}.foo===xl.foo&&!({__proto__:null}instanceof uy)};});var Ol=ee((lE,Tl)=>{p();h();d();m();y();var ly="Function.prototype.bind called on incompatible ",So=Array.prototype.slice,fy=Object.prototype.toString,cy="[object Function]";Tl.exports=function(e){var r=this;if(typeof r!="function"||fy.call(r)!==cy)throw new TypeError(ly+r);for(var n=So.call(arguments,1),i,o=function(){if(this instanceof i){var I=r.apply(this,n.concat(So.call(arguments)));return Object(I)===I?I:this}else return r.apply(e,n.concat(So.call(arguments)))},s=Math.max(0,r.length-n.length),f=[],w=0;w{p();h();d();m();y();var py=Ol();Rl.exports=Function.prototype.bind||py;});var xo=ee((EE,Cl)=>{p();h();d();m();y();var hy=ni();Cl.exports=hy.call(Function.call,Object.prototype.hasOwnProperty);});var ut=ee((TE,Ll)=>{p();h();d();m();y();var ce,Ir=SyntaxError,Fl=Function,Br=TypeError,Bo=function(t){try{return Fl('"use strict"; return ('+t+").constructor;")()}catch{}},sr=Object.getOwnPropertyDescriptor;var Io=function(){throw new Br},dy=sr?function(){try{return Io}catch{try{return sr(arguments,"callee").get}catch{return Io}}}():Io,Sr=ri()(),yy=Il()(),Le=Object.getPrototypeOf||(yy?function(t){return t.__proto__}:null),xr={},my=typeof Uint8Array>"u"||!Le?ce:Le(Uint8Array),ar={"%AggregateError%":typeof AggregateError>"u"?ce:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ce:ArrayBuffer,"%ArrayIteratorPrototype%":Sr&&Le?Le([][Symbol.iterator]()):ce,"%AsyncFromSyncIteratorPrototype%":ce,"%AsyncFunction%":xr,"%AsyncGenerator%":xr,"%AsyncGeneratorFunction%":xr,"%AsyncIteratorPrototype%":xr,"%Atomics%":typeof Atomics>"u"?ce:Atomics,"%BigInt%":typeof BigInt>"u"?ce:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ce:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ce:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ce:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ce:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ce:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ce:FinalizationRegistry,"%Function%":Fl,"%GeneratorFunction%":xr,"%Int8Array%":typeof Int8Array>"u"?ce:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ce:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ce:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Sr&&Le?Le(Le([][Symbol.iterator]())):ce,"%JSON%":typeof JSON=="object"?JSON:ce,"%Map%":typeof Map>"u"?ce:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Sr||!Le?ce:Le(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ce:Promise,"%Proxy%":typeof Proxy>"u"?ce:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ce:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ce:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Sr||!Le?ce:Le(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ce:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Sr&&Le?Le(""[Symbol.iterator]()):ce,"%Symbol%":Sr?Symbol:ce,"%SyntaxError%":Ir,"%ThrowTypeError%":dy,"%TypedArray%":my,"%TypeError%":Br,"%Uint8Array%":typeof Uint8Array>"u"?ce:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ce:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ce:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ce:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ce:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ce:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ce:WeakSet};var gy=function t(e){var r;if(e==="%AsyncFunction%")r=Bo("async function () {}");else if(e==="%GeneratorFunction%")r=Bo("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Bo("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype);}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&Le&&(r=Le(i.prototype));}return ar[e]=r,r},Pl={"%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"]},ln=ni(),ii=xo(),wy=ln.call(Function.call,Array.prototype.concat),by=ln.call(Function.apply,Array.prototype.splice),Ul=ln.call(Function.call,String.prototype.replace),oi=ln.call(Function.call,String.prototype.slice),vy=ln.call(Function.call,RegExp.prototype.exec),Ey=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ay=/\\(\\)?/g,Sy=function(e){var r=oi(e,0,1),n=oi(e,-1);if(r==="%"&&n!=="%")throw new Ir("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ir("invalid intrinsic syntax, expected opening `%`");var i=[];return Ul(e,Ey,function(o,s,f,w){i[i.length]=f?Ul(w,Ay,"$1"):s||o;}),i},xy=function(e,r){var n=e,i;if(ii(Pl,n)&&(i=Pl[n],n="%"+i[0]+"%"),ii(ar,n)){var o=ar[n];if(o===xr&&(o=gy(n)),typeof o>"u"&&!r)throw new Br("intrinsic "+e+" exists, but is not available. Please file an issue!");return {alias:i,name:n,value:o}}throw new Ir("intrinsic "+e+" does not exist!")};Ll.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new Br("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Br('"allowMissing" argument must be a boolean');if(vy(/^%?[^%]*%?$/,e)===null)throw new Ir("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Sy(e),i=n.length>0?n[0]:"",o=xy("%"+i+"%",r),s=o.name,f=o.value,w=!1,g=o.alias;g&&(i=g[0],by(n,wy([0,1],g)));for(var I=1,T=!0;I=n.length){var R=sr(f,U);T=!!R,T&&"get"in R&&!("originalValue"in R.get)?f=R.get:f=f[U];}else T=ii(f,U),f=f[U];T&&!w&&(ar[s]=f);}}return f};});var Dl=ee((UE,Nl)=>{p();h();d();m();y();var By=ut(),To=By("%Object.defineProperty%",!0),Oo=function(){if(To)try{return To({},"a",{value:1}),!0}catch{return !1}return !1};Oo.hasArrayLengthDefineBug=function(){if(!Oo())return null;try{return To([],"length",{value:1}).length!==1}catch{return !0}};Nl.exports=Oo;});var jt=ee((qE,Ml)=>{p();h();d();m();y();var Iy=ti(),Ty=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Oy=Object.prototype.toString,Ry=Array.prototype.concat,kl=Object.defineProperty,Cy=function(t){return typeof t=="function"&&Oy.call(t)==="[object Function]"},_y=Dl()(),ql=kl&&_y,Py=function(t,e,r,n){if(e in t){if(n===!0){if(t[e]===r)return}else if(!Cy(n)||!n())return}ql?kl(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r;},jl=function(t,e){var r=arguments.length>2?arguments[2]:{},n=Iy(e);Ty&&(n=Ry.call(n,Object.getOwnPropertySymbols(e)));for(var i=0;i{p();h();d();m();y();var Ro=ni(),Tr=ut(),Hl=Tr("%Function.prototype.apply%"),Wl=Tr("%Function.prototype.call%"),Gl=Tr("%Reflect.apply%",!0)||Ro.call(Wl,Hl),$l=Tr("%Object.getOwnPropertyDescriptor%",!0),ur=Tr("%Object.defineProperty%",!0),Uy=Tr("%Math.max%");if(ur)try{ur({},"a",{value:1});}catch{ur=null;}si.exports=function(e){var r=Gl(Ro,Wl,arguments);if($l&&ur){var n=$l(r,"length");n.configurable&&ur(r,"length",{value:1+Uy(0,e.length-(arguments.length-1))});}return r};var zl=function(){return Gl(Ro,Hl,arguments)};ur?ur(si.exports,"apply",{value:zl}):si.exports.apply=zl;});var Ke=ee((XE,Yl)=>{p();h();d();m();y();var Vl=ut(),Jl=Or(),Fy=Jl(Vl("String.prototype.indexOf"));Yl.exports=function(e,r){var n=Vl(e,!!r);return typeof n=="function"&&Fy(e,".prototype.")>-1?Jl(n):n};});var Co=ee((n2,ef)=>{p();h();d();m();y();var Ly=ti(),Ql=un()(),Zl=Ke(),Kl=Object,Ny=Zl("Array.prototype.push"),Xl=Zl("Object.prototype.propertyIsEnumerable"),Dy=Ql?Object.getOwnPropertySymbols:null;ef.exports=function(e,r){if(e==null)throw new TypeError("target must be an object");var n=Kl(e);if(arguments.length===1)return n;for(var i=1;i{p();h();d();m();y();var _o=Co(),ky=function(){if(!Object.assign)return !1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},n=0;n{p();h();d();m();y();var jy=jt(),My=Po();rf.exports=function(){var e=My();return jy(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e};});var uf=ee((E2,af)=>{p();h();d();m();y();var $y=jt(),zy=Or(),Hy=Co(),of=Po(),Wy=nf(),Gy=zy.apply(of()),sf=function(e,r){return Gy(Object,arguments)};$y(sf,{getPolyfill:of,implementation:Hy,shim:Wy});af.exports=sf;});var ff=ee((T2,lf)=>{p();h();d();m();y();var cn=function(){return typeof function(){}.name=="string"},fn=Object.getOwnPropertyDescriptor;cn.functionsHaveConfigurableNames=function(){if(!cn()||!fn)return !1;var e=fn(function(){},"name");return !!e&&!!e.configurable};var Vy=Function.prototype.bind;cn.boundFunctionsHaveNames=function(){return cn()&&typeof Vy=="function"&&function(){}.bind().name!==""};lf.exports=cn;});var Fo=ee((U2,Uo)=>{p();h();d();m();y();var Jy=ff().functionsHaveConfigurableNames(),Yy=Object,Ky=TypeError;Uo.exports=function(){if(this!=null&&this!==Yy(this))throw new Ky("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e};Jy&&Object.defineProperty&&Object.defineProperty(Uo.exports,"name",{value:"get flags"});});var Lo=ee((q2,cf)=>{p();h();d();m();y();var Xy=Fo(),Qy=jt().supportsDescriptors,Zy=Object.getOwnPropertyDescriptor;cf.exports=function(){if(Qy&&/a/mig.flags==="gim"){var e=Zy(RegExp.prototype,"flags");if(e&&typeof e.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var r="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){r+="d";}}),Object.defineProperty(n,"sticky",{get:function(){r+="y";}}),r==="dy")return e.get}}return Xy};});var df=ee((W2,hf)=>{p();h();d();m();y();var em=jt().supportsDescriptors,tm=Lo(),rm=Object.getOwnPropertyDescriptor,nm=Object.defineProperty,im=TypeError,pf=Object.getPrototypeOf,om=/a/;hf.exports=function(){if(!em||!pf)throw new im("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=tm(),r=pf(om),n=rm(r,"flags");return (!n||n.get!==e)&&nm(r,"flags",{configurable:!0,enumerable:!1,get:e}),e};});var wf=ee((X2,gf)=>{p();h();d();m();y();var sm=jt(),am=Or(),um=Fo(),yf=Lo(),lm=df(),mf=am(yf());sm(mf,{getPolyfill:yf,implementation:um,shim:lm});gf.exports=mf;});var _t=ee((nA,bf)=>{p();h();d();m();y();var fm=un();bf.exports=function(){return fm()&&!!Symbol.toStringTag};});var Do=ee((lA,Ef)=>{p();h();d();m();y();var cm=_t()(),pm=Ke(),No=pm("Object.prototype.toString"),ai=function(e){return cm&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:No(e)==="[object Arguments]"},vf=function(e){return ai(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&No(e)!=="[object Array]"&&No(e.callee)==="[object Function]"},hm=function(){return ai(arguments)}();ai.isLegacyArguments=vf;Ef.exports=hm?ai:vf;});var Af=ee(()=>{p();h();d();m();y();});var $f=ee((AA,Mf)=>{p();h();d();m();y();var Vo=typeof Map=="function"&&Map.prototype,ko=Object.getOwnPropertyDescriptor&&Vo?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,li=Vo&&ko&&typeof ko.get=="function"?ko.get:null,Sf=Vo&&Map.prototype.forEach,Jo=typeof Set=="function"&&Set.prototype,qo=Object.getOwnPropertyDescriptor&&Jo?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,fi=Jo&&qo&&typeof qo.get=="function"?qo.get:null,xf=Jo&&Set.prototype.forEach,dm=typeof WeakMap=="function"&&WeakMap.prototype,hn=dm?WeakMap.prototype.has:null,ym=typeof WeakSet=="function"&&WeakSet.prototype,dn=ym?WeakSet.prototype.has:null,mm=typeof WeakRef=="function"&&WeakRef.prototype,Bf=mm?WeakRef.prototype.deref:null,gm=Boolean.prototype.valueOf,wm=Object.prototype.toString,bm=Function.prototype.toString,vm=String.prototype.match,Yo=String.prototype.slice,$t=String.prototype.replace,Em=String.prototype.toUpperCase,If=String.prototype.toLowerCase,Lf=RegExp.prototype.test,Tf=Array.prototype.concat,gt=Array.prototype.join,Am=Array.prototype.slice,Of=Math.floor,$o=typeof BigInt=="function"?BigInt.prototype.valueOf:null,jo=Object.getOwnPropertySymbols,zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",He=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Rr||"symbol")?Symbol.toStringTag:null,Nf=Object.prototype.propertyIsEnumerable,Rf=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Cf(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Lf.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Of(-t):Of(t);if(n!==t){var i=String(n),o=Yo.call(e,i.length+1);return $t.call(i,r,"$&_")+"."+$t.call($t.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $t.call(e,r,"$&_")}var Ho=Af(),_f=Ho.custom,Pf=kf(_f)?_f:null;Mf.exports=function t(e,r,n,i){var o=r||{};if(Mt(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Mt(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Mt(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Mt(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Mt(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=o.numericSeparator;if(typeof e>"u")return "undefined";if(e===null)return "null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return jf(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var w=String(e);return f?Cf(e,w):w}if(typeof e=="bigint"){var g=String(e)+"n";return f?Cf(e,g):g}var I=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=I&&I>0&&typeof e=="object")return Wo(e)?"[Array]":"[Object]";var T=jm(o,n);if(typeof i>"u")i=[];else if(qf(i,e)>=0)return "[Circular]";function U(oe,te,he){if(te&&(i=Am.call(i),i.push(te)),he){var Te={depth:o.depth};return Mt(o,"quoteStyle")&&(Te.quoteStyle=o.quoteStyle),t(oe,Te,n+1,i)}return t(oe,o,n+1,i)}if(typeof e=="function"&&!Uf(e)){var C=_m(e),S=ui(e,U);return "[Function"+(C?": "+C:" (anonymous)")+"]"+(S.length>0?" { "+gt.call(S,", ")+" }":"")}if(kf(e)){var R=Rr?$t.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):zo.call(e);return typeof e=="object"&&!Rr?pn(R):R}if(Dm(e)){for(var W="<"+If.call(String(e.nodeName)),$=e.attributes||[],G=0;G<$.length;G++)W+=" "+$[G].name+"="+Df(Sm($[G].value),"double",o);return W+=">",e.childNodes&&e.childNodes.length&&(W+="..."),W+="",W}if(Wo(e)){if(e.length===0)return "[]";var X=ui(e,U);return T&&!qm(X)?"["+Go(X,T)+"]":"[ "+gt.call(X,", ")+" ]"}if(Bm(e)){var O=ui(e,U);return !("cause"in Error.prototype)&&"cause"in e&&!Nf.call(e,"cause")?"{ ["+String(e)+"] "+gt.call(Tf.call("[cause]: "+U(e.cause),O),", ")+" }":O.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+gt.call(O,", ")+" }"}if(typeof e=="object"&&s){if(Pf&&typeof e[Pf]=="function"&&Ho)return Ho(e,{depth:I-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Pm(e)){var F=[];return Sf&&Sf.call(e,function(oe,te){F.push(U(te,e,!0)+" => "+U(oe,e));}),Ff("Map",li.call(e),F,T)}if(Lm(e)){var A=[];return xf&&xf.call(e,function(oe){A.push(U(oe,e));}),Ff("Set",fi.call(e),A,T)}if(Um(e))return Mo("WeakMap");if(Nm(e))return Mo("WeakSet");if(Fm(e))return Mo("WeakRef");if(Tm(e))return pn(U(Number(e)));if(Rm(e))return pn(U($o.call(e)));if(Om(e))return pn(gm.call(e));if(Im(e))return pn(U(String(e)));if(!xm(e)&&!Uf(e)){var B=ui(e,U),E=Rf?Rf(e)===Object.prototype:e instanceof Object||e.constructor===Object,L=e instanceof Object?"":"null prototype",z=!E&&He&&Object(e)===e&&He in e?Yo.call(zt(e),8,-1):L?"Object":"",ae=E||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",ie=ae+(z||L?"["+gt.call(Tf.call([],z||[],L||[]),": ")+"] ":"");return B.length===0?ie+"{}":T?ie+"{"+Go(B,T)+"}":ie+"{ "+gt.call(B,", ")+" }"}return String(e)};function Df(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function Sm(t){return $t.call(String(t),/"/g,""")}function Wo(t){return zt(t)==="[object Array]"&&(!He||!(typeof t=="object"&&He in t))}function xm(t){return zt(t)==="[object Date]"&&(!He||!(typeof t=="object"&&He in t))}function Uf(t){return zt(t)==="[object RegExp]"&&(!He||!(typeof t=="object"&&He in t))}function Bm(t){return zt(t)==="[object Error]"&&(!He||!(typeof t=="object"&&He in t))}function Im(t){return zt(t)==="[object String]"&&(!He||!(typeof t=="object"&&He in t))}function Tm(t){return zt(t)==="[object Number]"&&(!He||!(typeof t=="object"&&He in t))}function Om(t){return zt(t)==="[object Boolean]"&&(!He||!(typeof t=="object"&&He in t))}function kf(t){if(Rr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return !0;if(!t||typeof t!="object"||!zo)return !1;try{return zo.call(t),!0}catch{}return !1}function Rm(t){if(!t||typeof t!="object"||!$o)return !1;try{return $o.call(t),!0}catch{}return !1}var Cm=Object.prototype.hasOwnProperty||function(t){return t in this};function Mt(t,e){return Cm.call(t,e)}function zt(t){return wm.call(t)}function _m(t){if(t.name)return t.name;var e=vm.call(bm.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function qf(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return jf(Yo.call(t,0,e.maxStringLength),e)+n}var i=$t.call($t.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,km);return Df(i,"single",e)}function km(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+Em.call(e.toString(16))}function pn(t){return "Object("+t+")"}function Mo(t){return t+" { ? }"}function Ff(t,e,r,n){var i=n?Go(r,n):gt.call(r,", ");return t+" ("+e+") {"+i+"}"}function qm(t){for(var e=0;e=0)return !1;return !0}function jm(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=gt.call(Array(t.indent+1)," ");else return null;return {base:r,prev:gt.call(Array(e+1),r)}}function Go(t,e){if(t.length===0)return "";var r=` `+e.prev+e.base;return r+gt.call(t,","+r)+` `+e.prev}function ui(t,e){var r=Wo(t),n=[];if(r){n.length=t.length;for(var i=0;i{p();h();d();m();y();var Ko=ut(),Cr=Ke(),Mm=$f(),$m=Ko("%TypeError%"),ci=Ko("%WeakMap%",!0),pi=Ko("%Map%",!0),zm=Cr("WeakMap.prototype.get",!0),Hm=Cr("WeakMap.prototype.set",!0),Wm=Cr("WeakMap.prototype.has",!0),Gm=Cr("Map.prototype.get",!0),Vm=Cr("Map.prototype.set",!0),Jm=Cr("Map.prototype.has",!0),Xo=function(t,e){for(var r=t,n;(n=r.next)!==null;r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n},Ym=function(t,e){var r=Xo(t,e);return r&&r.value},Km=function(t,e,r){var n=Xo(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r};},Xm=function(t,e){return !!Xo(t,e)};zf.exports=function(){var e,r,n,i={assert:function(o){if(!i.has(o))throw new $m("Side channel does not contain "+Mm(o))},get:function(o){if(ci&&o&&(typeof o=="object"||typeof o=="function")){if(e)return zm(e,o)}else if(pi){if(r)return Gm(r,o)}else if(n)return Ym(n,o)},has:function(o){if(ci&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Wm(e,o)}else if(pi){if(r)return Jm(r,o)}else if(n)return Xm(n,o);return !1},set:function(o,s){ci&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new ci),Hm(e,o,s)):pi?(r||(r=new pi),Vm(r,o,s)):(n||(n={key:{},next:null}),Km(n,o,s));}};return i};});var Wf=ee((FA,Hf)=>{p();h();d();m();y();var Qm=ut(),Zm=xo(),yn=Qo()(),Pt=Qm("%TypeError%"),Zo={assert:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new Pt("`O` is not an object");if(typeof e!="string")throw new Pt("`slot` must be a string");if(yn.assert(t),!Zo.has(t,e))throw new Pt("`"+e+"` is not present on `O`")},get:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new Pt("`O` is not an object");if(typeof e!="string")throw new Pt("`slot` must be a string");var r=yn.get(t);return r&&r["$"+e]},has:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new Pt("`O` is not an object");if(typeof e!="string")throw new Pt("`slot` must be a string");var r=yn.get(t);return !!r&&Zm(r,"$"+e)},set:function(t,e,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Pt("`O` is not an object");if(typeof e!="string")throw new Pt("`slot` must be a string");var n=yn.get(t);n||(n={},yn.set(t,n)),n["$"+e]=r;}};Object.freeze&&Object.freeze(Zo);Hf.exports=Zo;});var Jf=ee((jA,Vf)=>{p();h();d();m();y();var mn=Wf(),eg=SyntaxError,Gf=typeof StopIteration=="object"?StopIteration:null;Vf.exports=function(e){if(!Gf)throw new eg("this environment lacks StopIteration");mn.set(e,"[[Done]]",!1);var r={next:function(){var i=mn.get(this,"[[Iterator]]"),o=mn.get(i,"[[Done]]");try{return {done:o,value:o?void 0:i.next()}}catch(s){if(mn.set(i,"[[Done]]",!0),s!==Gf)throw s;return {done:!0,value:void 0}}}};return mn.set(r,"[[Iterator]]",e),r};});var es=ee((GA,Yf)=>{p();h();d();m();y();var tg={}.toString;Yf.exports=Array.isArray||function(t){return tg.call(t)=="[object Array]"};});var ts=ee((QA,Kf)=>{p();h();d();m();y();var rg=String.prototype.valueOf,ng=function(e){try{return rg.call(e),!0}catch{return !1}},ig=Object.prototype.toString,og="[object String]",sg=_t()();Kf.exports=function(e){return typeof e=="string"?!0:typeof e!="object"?!1:sg?ng(e):ig.call(e)===og};});var ns=ee((iS,Zf)=>{p();h();d();m();y();var rs=typeof Map=="function"&&Map.prototype?Map:null,ag=typeof Set=="function"&&Set.prototype?Set:null,hi;rs||(hi=function(e){return !1});var Qf=rs?Map.prototype.has:null,Xf=ag?Set.prototype.has:null;!hi&&!Qf&&(hi=function(e){return !1});Zf.exports=hi||function(e){if(!e||typeof e!="object")return !1;try{if(Qf.call(e),Xf)try{Xf.call(e);}catch{return !0}return e instanceof rs}catch{}return !1};});var os=ee((fS,rc)=>{p();h();d();m();y();var ug=typeof Map=="function"&&Map.prototype?Map:null,is=typeof Set=="function"&&Set.prototype?Set:null,di;is||(di=function(e){return !1});var ec=ug?Map.prototype.has:null,tc=is?Set.prototype.has:null;!di&&!tc&&(di=function(e){return !1});rc.exports=di||function(e){if(!e||typeof e!="object")return !1;try{if(tc.call(e),ec)try{ec.call(e);}catch{return !0}return e instanceof is}catch{}return !1};});var dc=ee((mS,gi)=>{p();h();d();m();y();var nc=Do(),ic=Jf();ri()()||un()()?(yi=Symbol.iterator,gi.exports=function(e){if(e!=null&&typeof e[yi]<"u")return e[yi]();if(nc(e))return Array.prototype[yi].call(e)}):(oc=es(),sc=ts(),ss=ut(),ac=ss("%Map%",!0),uc=ss("%Set%",!0),it=Ke(),as=it("Array.prototype.push"),us=it("String.prototype.charCodeAt"),lc=it("String.prototype.slice"),fc=function(e,r){var n=e.length;if(r+1>=n)return r+1;var i=us(e,r);if(i<55296||i>56319)return r+1;var o=us(e,r+1);return o<56320||o>57343?r+1:r+2},mi=function(e){var r=0;return {next:function(){var i=r>=e.length,o;return i||(o=e[r],r+=1),{done:i,value:o}}}},ls=function(e,r){if(oc(e)||nc(e))return mi(e);if(sc(e)){var n=0;return {next:function(){var o=fc(e,n),s=lc(e,n,o);return n=o,{done:o>e.length,value:s}}}}if(r&&typeof e["_es6-shim iterator_"]<"u")return e["_es6-shim iterator_"]()},!ac&&!uc?gi.exports=function(e){if(e!=null)return ls(e,!0)}:(cc=ns(),pc=os(),fs=it("Map.prototype.forEach",!0),cs=it("Set.prototype.forEach",!0),(typeof N>"u"||!N.versions||!N.versions.node)&&(ps=it("Map.prototype.iterator",!0),hs=it("Set.prototype.iterator",!0)),ds=it("Map.prototype.@@iterator",!0)||it("Map.prototype._es6-shim iterator_",!0),ys=it("Set.prototype.@@iterator",!0)||it("Set.prototype._es6-shim iterator_",!0),hc=function(e){if(cc(e)){if(ps)return ic(ps(e));if(ds)return ds(e);if(fs){var r=[];return fs(e,function(i,o){as(r,[o,i]);}),mi(r)}}if(pc(e)){if(hs)return ic(hs(e));if(ys)return ys(e);if(cs){var n=[];return cs(e,function(i){as(n,i);}),mi(n)}}},gi.exports=function(e){return hc(e)||ls(e)}));var yi,oc,sc,ss,ac,uc,it,as,us,lc,fc,mi,ls,cc,pc,fs,cs,ps,hs,ds,ys,hc;});var ms=ee((AS,mc)=>{p();h();d();m();y();var yc=function(t){return t!==t};mc.exports=function(e,r){return e===0&&r===0?1/e===1/r:!!(e===r||yc(e)&&yc(r))};});var gs=ee((OS,gc)=>{p();h();d();m();y();var lg=ms();gc.exports=function(){return typeof Object.is=="function"?Object.is:lg};});var bc=ee((FS,wc)=>{p();h();d();m();y();var fg=gs(),cg=jt();wc.exports=function(){var e=fg();return cg(Object,{is:e},{is:function(){return Object.is!==e}}),e};});var Sc=ee((jS,Ac)=>{p();h();d();m();y();var pg=jt(),hg=Or(),dg=ms(),vc=gs(),yg=bc(),Ec=hg(vc(),Object);pg(Ec,{getPolyfill:vc,implementation:dg,shim:yg});Ac.exports=Ec;});var Tc=ee((GS,Ic)=>{p();h();d();m();y();var Bc=Function.prototype.toString,_r=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,bs,wi;if(typeof _r=="function"&&typeof Object.defineProperty=="function")try{bs=Object.defineProperty({},"length",{get:function(){throw wi}}),wi={},_r(function(){throw 42},null,bs);}catch(t){t!==wi&&(_r=null);}else _r=null;var mg=/^\s*class\b/,vs=function(e){try{var r=Bc.call(e);return mg.test(r)}catch{return !1}},ws=function(e){try{return vs(e)?!1:(Bc.call(e),!0)}catch{return !1}},bi=Object.prototype.toString,gg="[object Object]",wg="[object Function]",bg="[object GeneratorFunction]",vg="[object HTMLAllCollection]",Eg="[object HTML document.all class]",Ag="[object HTMLCollection]",Sg=typeof Symbol=="function"&&!!Symbol.toStringTag,xg=!(0 in[,]),Es=function(){return !1};typeof document=="object"&&(xc=document.all,bi.call(xc)===bi.call(document.all)&&(Es=function(e){if((xg||!e)&&(typeof e>"u"||typeof e=="object"))try{var r=bi.call(e);return (r===vg||r===Eg||r===Ag||r===gg)&&e("")==null}catch{}return !1}));var xc;Ic.exports=_r?function(e){if(Es(e))return !0;if(!e||typeof e!="function"&&typeof e!="object")return !1;try{_r(e,null,bs);}catch(r){if(r!==wi)return !1}return !vs(e)&&ws(e)}:function(e){if(Es(e))return !0;if(!e||typeof e!="function"&&typeof e!="object")return !1;if(Sg)return ws(e);if(vs(e))return !1;var r=bi.call(e);return r!==wg&&r!==bg&&!/^\[object HTML/.test(r)?!1:ws(e)};});var As=ee((QS,Rc)=>{p();h();d();m();y();var Bg=Tc(),Ig=Object.prototype.toString,Oc=Object.prototype.hasOwnProperty,Tg=function(e,r,n){for(var i=0,o=e.length;i=3&&(i=n),Ig.call(e)==="[object Array]"?Tg(e,r,i):typeof e=="string"?Og(e,r,i):Rg(e,r,i);};Rc.exports=Cg;});var xs=ee((ix,Cc)=>{p();h();d();m();y();var Ss=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],_g=typeof globalThis>"u"?D:globalThis;Cc.exports=function(){for(var e=[],r=0;r{p();h();d();m();y();var Pg=ut(),vi=Pg("%Object.getOwnPropertyDescriptor%",!0);if(vi)try{vi([],"length");}catch{vi=null;}_c.exports=vi;});var Os=ee((mx,Nc)=>{p();h();d();m();y();var Pc=As(),Ug=xs(),Ts=Ke(),Fg=Ts("Object.prototype.toString"),Uc=_t()(),Ei=Bs(),Lg=typeof globalThis>"u"?D:globalThis,Fc=Ug(),Ng=Ts("Array.prototype.indexOf",!0)||function(e,r){for(var n=0;n-1}return Ei?kg(e):!1};});var Rs=ee((Ax,$c)=>{p();h();d();m();y();var qg=Or(),jg=Ke(),Mc=ut(),Mg=Os(),Dc=Mc("ArrayBuffer",!0),kc=Mc("Float32Array",!0),Ai=jg("ArrayBuffer.prototype.byteLength",!0),qc=Dc&&!Ai&&new Dc().slice,jc=qc&&qg(qc);$c.exports=Ai||jc?function(e){if(!e||typeof e!="object")return !1;try{return Ai?Ai(e):jc(e,0),!0}catch{return !1}}:kc?function(e){try{return new kc(e).buffer===e&&!Mg(e)}catch(r){return typeof e=="object"&&r.name==="RangeError"}}:function(e){return !1};});var Hc=ee((Ox,zc)=>{p();h();d();m();y();var $g=Date.prototype.getDay,zg=function(e){try{return $g.call(e),!0}catch{return !1}},Hg=Object.prototype.toString,Wg="[object Date]",Gg=_t()();zc.exports=function(e){return typeof e!="object"||e===null?!1:Gg?zg(e):Hg.call(e)===Wg};});var Yc=ee((Fx,Jc)=>{p();h();d();m();y();var Cs=Ke(),Wc=_t()(),Gc,Vc,_s,Ps;Wc&&(Gc=Cs("Object.prototype.hasOwnProperty"),Vc=Cs("RegExp.prototype.exec"),_s={},Si=function(){throw _s},Ps={toString:Si,valueOf:Si},typeof Symbol.toPrimitive=="symbol"&&(Ps[Symbol.toPrimitive]=Si));var Si,Vg=Cs("Object.prototype.toString"),Jg=Object.getOwnPropertyDescriptor,Yg="[object RegExp]";Jc.exports=Wc?function(e){if(!e||typeof e!="object")return !1;var r=Jg(e,"lastIndex"),n=r&&Gc(r,"value");if(!n)return !1;try{Vc(e,Ps);}catch(i){return i===_s}}:function(e){return !e||typeof e!="object"&&typeof e!="function"?!1:Vg(e)===Yg};});var Qc=ee((jx,Xc)=>{p();h();d();m();y();var Kg=Ke(),Kc=Kg("SharedArrayBuffer.prototype.byteLength",!0);Xc.exports=Kc?function(e){if(!e||typeof e!="object")return !1;try{return Kc(e),!0}catch{return !1}}:function(e){return !1};});var ep=ee((Gx,Zc)=>{p();h();d();m();y();var Xg=Number.prototype.toString,Qg=function(e){try{return Xg.call(e),!0}catch{return !1}},Zg=Object.prototype.toString,e0="[object Number]",t0=_t()();Zc.exports=function(e){return typeof e=="number"?!0:typeof e!="object"?!1:t0?Qg(e):Zg.call(e)===e0};});var np=ee((Qx,rp)=>{p();h();d();m();y();var tp=Ke(),r0=tp("Boolean.prototype.toString"),n0=tp("Object.prototype.toString"),i0=function(e){try{return r0(e),!0}catch{return !1}},o0="[object Boolean]",s0=_t()();rp.exports=function(e){return typeof e=="boolean"?!0:e===null||typeof e!="object"?!1:s0&&Symbol.toStringTag in e?i0(e):n0(e)===o0};});var ap=ee((iB,Us)=>{p();h();d();m();y();var a0=Object.prototype.toString,u0=ri()();u0?(ip=Symbol.prototype.toString,op=/^Symbol\(.*\)$/,sp=function(e){return typeof e.valueOf()!="symbol"?!1:op.test(ip.call(e))},Us.exports=function(e){if(typeof e=="symbol")return !0;if(a0.call(e)!=="[object Symbol]")return !1;try{return sp(e)}catch{return !1}}):Us.exports=function(e){return !1};var ip,op,sp;});var fp=ee((fB,lp)=>{p();h();d();m();y();var up=typeof BigInt<"u"&&BigInt;lp.exports=function(){return typeof up=="function"&&typeof BigInt=="function"&&typeof up(42)=="bigint"&&typeof BigInt(42)=="bigint"};});var hp=ee((mB,Fs)=>{p();h();d();m();y();var l0=fp()();l0?(cp=BigInt.prototype.valueOf,pp=function(e){try{return cp.call(e),!0}catch{}return !1},Fs.exports=function(e){return e===null||typeof e>"u"||typeof e=="boolean"||typeof e=="string"||typeof e=="number"||typeof e=="symbol"||typeof e=="function"?!1:typeof e=="bigint"?!0:pp(e)}):Fs.exports=function(e){return !1};var cp,pp;});var yp=ee((AB,dp)=>{p();h();d();m();y();var f0=ts(),c0=ep(),p0=np(),h0=ap(),d0=hp();dp.exports=function(e){if(e==null||typeof e!="object"&&typeof e!="function")return null;if(f0(e))return "String";if(c0(e))return "Number";if(p0(e))return "Boolean";if(h0(e))return "Symbol";if(d0(e))return "BigInt"};});var wp=ee((OB,gp)=>{p();h();d();m();y();var xi=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,mp=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Bi;xi||(Bi=function(e){return !1});var Ns=xi?xi.prototype.has:null,Ls=mp?mp.prototype.has:null;!Bi&&!Ns&&(Bi=function(e){return !1});gp.exports=Bi||function(e){if(!e||typeof e!="object")return !1;try{if(Ns.call(e,Ns),Ls)try{Ls.call(e,Ls);}catch{return !0}return e instanceof xi}catch{}return !1};});var vp=ee((FB,ks)=>{p();h();d();m();y();var y0=ut(),bp=Ke(),m0=y0("%WeakSet%",!0),Ds=bp("WeakSet.prototype.has",!0);Ds?(Ii=bp("WeakMap.prototype.has",!0),ks.exports=function(e){if(!e||typeof e!="object")return !1;try{if(Ds(e,Ds),Ii)try{Ii(e,Ii);}catch{return !0}return e instanceof m0}catch{}return !1}):ks.exports=function(e){return !1};var Ii;});var Ap=ee((jB,Ep)=>{p();h();d();m();y();var g0=ns(),w0=os(),b0=wp(),v0=vp();Ep.exports=function(e){if(e&&typeof e=="object"){if(g0(e))return "Map";if(w0(e))return "Set";if(b0(e))return "WeakMap";if(v0(e))return "WeakSet"}return !1};});var Rp=ee((GB,Op)=>{p();h();d();m();y();var xp=As(),E0=xs(),Bp=Ke(),qs=Bs(),A0=Bp("Object.prototype.toString"),Ip=_t()(),Sp=typeof globalThis>"u"?D:globalThis,S0=E0(),x0=Bp("String.prototype.slice"),Tp={},js=Object.getPrototypeOf;Ip&&qs&&js&&xp(S0,function(t){if(typeof Sp[t]=="function"){var e=new Sp[t];if(Symbol.toStringTag in e){var r=js(e),n=qs(r,Symbol.toStringTag);if(!n){var i=js(r);n=qs(i,Symbol.toStringTag);}Tp[t]=n.get;}}});var B0=function(e){var r=!1;return xp(Tp,function(n,i){if(!r)try{var o=n.call(e);o===i&&(r=o);}catch{}}),r},I0=Os();Op.exports=function(e){return I0(e)?!Ip||!(Symbol.toStringTag in e)?x0(A0(e),8,-1):B0(e):!1};});var Pp=ee((QB,_p)=>{p();h();d();m();y();var T0=Ke(),Cp=T0("ArrayBuffer.prototype.byteLength",!0),O0=Rs();_p.exports=function(e){return O0(e)?Cp?Cp(e):e.byteLength:NaN};});var zs=ee((iI,rh)=>{p();h();d();m();y();var Zp=uf(),wt=Ke(),Up=wf(),R0=ut(),Pr=dc(),C0=Qo(),Fp=Sc(),Lp=Do(),Np=es(),Dp=Rs(),kp=Hc(),qp=Yc(),jp=Qc(),Mp=ti(),$p=yp(),zp=Ap(),Hp=Rp(),Wp=Pp(),Gp=wt("SharedArrayBuffer.prototype.byteLength",!0),Vp=wt("Date.prototype.getTime"),Ms=Object.getPrototypeOf,Jp=wt("Object.prototype.toString"),Oi=R0("%Set%",!0),$s=wt("Map.prototype.has",!0),Ri=wt("Map.prototype.get",!0),Yp=wt("Map.prototype.size",!0),Ci=wt("Set.prototype.add",!0),eh=wt("Set.prototype.delete",!0),_i=wt("Set.prototype.has",!0),Ti=wt("Set.prototype.size",!0);function Kp(t,e,r,n){for(var i=Pr(t),o;(o=i.next())&&!o.done;)if(lt(e,o.value,r,n))return eh(t,o.value),!0;return !1}function th(t){if(typeof t>"u")return null;if(typeof t!="object")return typeof t=="symbol"?!1:typeof t=="string"||typeof t=="number"?+t==+t:!0}function _0(t,e,r,n,i,o){var s=th(r);if(s!=null)return s;var f=Ri(e,s),w=Zp({},i,{strict:!1});return typeof f>"u"&&!$s(e,s)||!lt(n,f,w,o)?!1:!$s(t,s)&<(n,f,w,o)}function P0(t,e,r){var n=th(r);return n??(_i(e,n)&&!_i(t,n))}function Xp(t,e,r,n,i,o){for(var s=Pr(t),f,w;(f=s.next())&&!f.done;)if(w=f.value,lt(r,w,i,o)&<(n,Ri(e,w),i,o))return eh(t,w),!0;return !1}function lt(t,e,r,n){var i=r||{};if(i.strict?Fp(t,e):t===e)return !0;var o=$p(t),s=$p(e);if(o!==s)return !1;if(!t||!e||typeof t!="object"&&typeof e!="object")return i.strict?Fp(t,e):t==e;var f=n.has(t),w=n.has(e),g;if(f&&w){if(n.get(t)===n.get(e))return !0}else g={};return f||n.set(t,g),w||n.set(e,g),L0(t,e,i,n)}function Qp(t){return !t||typeof t!="object"||typeof t.length!="number"||typeof t.copy!="function"||typeof t.slice!="function"||t.length>0&&typeof t[0]!="number"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))}function U0(t,e,r,n){if(Ti(t)!==Ti(e))return !1;for(var i=Pr(t),o=Pr(e),s,f,w;(s=i.next())&&!s.done;)if(s.value&&typeof s.value=="object")w||(w=new Oi),Ci(w,s.value);else if(!_i(e,s.value)){if(r.strict||!P0(t,e,s.value))return !1;w||(w=new Oi),Ci(w,s.value);}if(w){for(;(f=o.next())&&!f.done;)if(f.value&&typeof f.value=="object"){if(!Kp(w,f.value,r.strict,n))return !1}else if(!r.strict&&!_i(t,f.value)&&!Kp(w,f.value,r.strict,n))return !1;return Ti(w)===0}return !0}function F0(t,e,r,n){if(Yp(t)!==Yp(e))return !1;for(var i=Pr(t),o=Pr(e),s,f,w,g,I,T;(s=i.next())&&!s.done;)if(g=s.value[0],I=s.value[1],g&&typeof g=="object")w||(w=new Oi),Ci(w,g);else if(T=Ri(e,g),typeof T>"u"&&!$s(e,g)||!lt(I,T,r,n)){if(r.strict||!_0(t,e,g,I,r,n))return !1;w||(w=new Oi),Ci(w,g);}if(w){for(;(f=o.next())&&!f.done;)if(g=f.value[0],T=f.value[1],g&&typeof g=="object"){if(!Xp(w,t,g,T,r,n))return !1}else if(!r.strict&&(!t.has(g)||!lt(Ri(t,g),T,r,n))&&!Xp(w,t,g,T,Zp({},r,{strict:!1}),n))return !1;return Ti(w)===0}return !0}function L0(t,e,r,n){var i,o;if(typeof t!=typeof e||t==null||e==null||Jp(t)!==Jp(e)||Lp(t)!==Lp(e))return !1;var s=Np(t),f=Np(e);if(s!==f)return !1;var w=t instanceof Error,g=e instanceof Error;if(w!==g||(w||g)&&(t.name!==e.name||t.message!==e.message))return !1;var I=qp(t),T=qp(e);if(I!==T||(I||T)&&(t.source!==e.source||Up(t)!==Up(e)))return !1;var U=kp(t),C=kp(e);if(U!==C||(U||C)&&Vp(t)!==Vp(e)||r.strict&&Ms&&Ms(t)!==Ms(e))return !1;var S=Hp(t),R=Hp(e);if((S||R)&&S!==R)return !1;var W=Qp(t),$=Qp(e);if(W!==$)return !1;if(W||$){if(t.length!==e.length)return !1;for(i=0;i=0;i--)if(A[i]!=B[i])return !1;for(i=A.length-1;i>=0;i--)if(o=A[i],!lt(t[o],e[o],r,n))return !1;var E=zp(t),L=zp(e);return E!==L?!1:E==="Set"||L==="Set"?U0(t,e,r,n):E==="Map"?F0(t,e,r,n):!0}rh.exports=function(e,r,n){return lt(e,r,n,C0())};});var sh=ee((fI,oh)=>{p();h();d();m();y();var N0=function(e){return D0(e)&&!k0(e)};function D0(t){return !!t&&typeof t=="object"}function k0(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||M0(t)}var q0=typeof Symbol=="function"&&Symbol.for,j0=q0?Symbol.for("react.element"):60103;function M0(t){return t.$$typeof===j0}function $0(t){return Array.isArray(t)?[]:{}}function gn(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Ur($0(t),t,e):t}function z0(t,e,r){return t.concat(e).map(function(n){return gn(n,r)})}function H0(t,e){if(!e.customMerge)return Ur;var r=e.customMerge(t);return typeof r=="function"?r:Ur}function W0(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function nh(t){return Object.keys(t).concat(W0(t))}function ih(t,e){try{return e in t}catch{return !1}}function G0(t,e){return ih(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function V0(t,e,r){var n={};return r.isMergeableObject(t)&&nh(t).forEach(function(i){n[i]=gn(t[i],r);}),nh(e).forEach(function(i){G0(t,i)||(ih(t,i)&&r.isMergeableObject(e[i])?n[i]=H0(i,r)(t[i],e[i],r):n[i]=gn(e[i],r));}),n}function Ur(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||z0,r.isMergeableObject=r.isMergeableObject||N0,r.cloneUnlessOtherwiseSpecified=gn;var n=Array.isArray(e),i=Array.isArray(t),o=n===i;return o?n?r.arrayMerge(t,e,r):V0(t,e,r):gn(e,r)}Ur.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,i){return Ur(n,i,r)},{})};var J0=Ur;oh.exports=J0;});var Mh=ee((cC,jh)=>{p();h();d();m();y();jh.exports=typeof self=="object"?self.FormData:window.FormData;});var Wh=ee((E_,Hh)=>{p();h();d();m();y();function s1(t){try{return JSON.stringify(t)}catch{return '"[Circular]"'}}Hh.exports=a1;function a1(t,e,r){var n=r&&r.stringify||s1,i=1;if(typeof t=="object"&&t!==null){var o=e.length+i;if(o===1)return t;var s=new Array(o);s[0]=n(t);for(var f=1;f-1?T:0,t.charCodeAt(C+1)){case 100:case 102:if(I>=w||e[I]==null)break;T=w||e[I]==null)break;T=w||e[I]===void 0)break;T",T=C+2,C++;break}g+=n(e[I]),T=C+2,C++;break;case 115:if(I>=w)break;T{p();h();d();m();y();var Gh=Wh();Kh.exports=cr;var Fn=w1().console||{},u1={mapHttpRequest:Xi,mapHttpResponse:Xi,wrapRequestSerializer:ca,wrapResponseSerializer:ca,wrapErrorSerializer:ca,req:Xi,res:Xi,err:Vh,errWithCause:Vh};function l1(t,e){return Array.isArray(t)?t.filter(function(n){return n!=="!stdSerializers.err"}):t===!0?Object.keys(e):!1}function cr(t){t=t||{},t.browser=t.browser||{};let e=t.browser.transmit;if(e&&typeof e.send!="function")throw Error("pino: transmit option must have a send function");let r=t.browser.write||Fn;t.browser.write&&(t.browser.asObject=!0);let n=t.serializers||{},i=l1(t.browser.serialize,n),o=t.browser.serialize;Array.isArray(t.browser.serialize)&&t.browser.serialize.indexOf("!stdSerializers.err")>-1&&(o=!1);let s=Object.keys(t.customLevels||{}),f=["error","fatal","warn","info","debug","trace"].concat(s);typeof r=="function"&&f.forEach(function(R){r[R]=r;}),(t.enabled===!1||t.browser.disabled)&&(t.level="silent");let w=t.level||"info",g=Object.create(r);g.log||(g.log=Ln),Object.defineProperty(g,"levelVal",{get:T}),Object.defineProperty(g,"level",{get:U,set:C});let I={transmit:e,serialize:i,asObject:t.browser.asObject,levels:f,timestamp:y1(t)};g.levels=f1(t),g.level=w,g.setMaxListeners=g.getMaxListeners=g.emit=g.addListener=g.on=g.prependListener=g.once=g.prependOnceListener=g.removeListener=g.removeAllListeners=g.listeners=g.listenerCount=g.eventNames=g.write=g.flush=Ln,g.serializers=n,g._serialize=i,g._stdErrSerialize=o,g.child=S,e&&(g._logEvent=pa());function T(){return this.level==="silent"?1/0:this.levels.values[this.level]}function U(){return this._level}function C(R){if(R!=="silent"&&!this.levels.values[R])throw Error("unknown level "+R);this._level=R,fr(I,g,"error","log"),fr(I,g,"fatal","error"),fr(I,g,"warn","error"),fr(I,g,"info","log"),fr(I,g,"debug","log"),fr(I,g,"trace","log"),s.forEach(function(W){fr(I,g,W,"log");});}function S(R,W){if(!R)throw new Error("missing bindings for child Pino");W=W||{},i&&R.serializers&&(W.serializers=R.serializers);let $=W.serializers;if(i&&$){var G=Object.assign({},n,$),X=t.browser.serialize===!0?Object.keys(G):i;delete R.serializers,Qi([R],X,G,this._stdErrSerialize);}function O(F){this._childLevel=(F._childLevel|0)+1,this.error=$r(F,R,"error"),this.fatal=$r(F,R,"fatal"),this.warn=$r(F,R,"warn"),this.info=$r(F,R,"info"),this.debug=$r(F,R,"debug"),this.trace=$r(F,R,"trace"),G&&(this.serializers=G,this._serialize=X),e&&(this._logEvent=pa([].concat(F._logEvent.bindings,R)));}return O.prototype=this,new O(this)}return g}function f1(t){let e=t.customLevels||{},r=Object.assign({},cr.levels.values,e),n=Object.assign({},cr.levels.labels,c1(e));return {values:r,labels:n}}function c1(t){let e={};return Object.keys(t).forEach(function(r){e[t[r]]=r;}),e}cr.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};cr.stdSerializers=u1;cr.stdTimeFunctions=Object.assign({},{nullTime:Jh,epochTime:Yh,unixTime:m1,isoTime:g1});function fr(t,e,r,n){let i=Object.getPrototypeOf(e);e[r]=e.levelVal>e.levels.values[r]?Ln:i[r]?i[r]:Fn[r]||Fn[n]||Ln,p1(t,e,r);}function p1(t,e,r){!t.transmit&&e[r]===Ln||(e[r]=function(n){return function(){let o=t.timestamp(),s=new Array(arguments.length),f=Object.getPrototypeOf&&Object.getPrototypeOf(this)===Fn?Fn:this;for(var w=0;w-1&&o in r&&(t[i][o]=r[o](t[i][o]));}function $r(t,e,r){return function(){let n=new Array(1+arguments.length);n[0]=e;for(var i=1;i{p();h();d();m();y();(function(t){var e;typeof od=="object"?sd.exports=t():typeof define=="function"&&define.amd?define(t):(typeof window<"u"?e=window:typeof D<"u"?e=D:typeof self<"u"&&(e=self),e.objectHash=t());})(function(){return function t(e,r,n){function i(f,w){if(!r[f]){if(!e[f]){var g=typeof nn=="function"&&nn;if(!w&&g)return g(f,!0);if(o)return o(f,!0);throw new Error("Cannot find module '"+f+"'")}w=r[f]={exports:{}},e[f][0].call(w.exports,function(I){var T=e[f][1][I];return i(T||I)},w,w.exports,t,e,r,n);}return r[f].exports}for(var o=typeof nn=="function"&&nn,s=0;s>16),oe((65280&E)>>8),oe(255&E);return L==2?oe(255&(E=F(A.charAt(B))<<2|F(A.charAt(B+1))>>4)):L==1&&(oe((E=F(A.charAt(B))<<10|F(A.charAt(B+1))<<4|F(A.charAt(B+2))>>2)>>8&255),oe(255&E)),z},U.fromByteArray=function(A){var B,E,L,z,ae=A.length%3,ie="";function oe(te){return "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(te)}for(B=0,L=A.length-ae;B>18&63)+oe(z>>12&63)+oe(z>>6&63)+oe(63&z);switch(ae){case 1:ie=(ie+=oe((E=A[A.length-1])>>2))+oe(E<<4&63)+"==";break;case 2:ie=(ie=(ie+=oe((E=(A[A.length-2]<<8)+A[A.length-1])>>10))+oe(E>>4&63))+oe(E<<2&63)+"=";}return ie};})(r===void 0?this.base64js={}:r);}).call(this,t("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib");},{buffer:3,lYpoI2:11}],3:[function(t,e,r){(function(n,i,S,s,f,w,g,I,T){var U=t("base64-js"),C=t("ieee754");function S(c,x,P){if(!(this instanceof S))return new S(c,x,P);var K,Y,Q,le,Ee=typeof c;if(x==="base64"&&Ee=="string")for(c=(le=c).trim?le.trim():le.replace(/^\s+|\s+$/g,"");c.length%4!=0;)c+="=";if(Ee=="number")K=Te(c);else if(Ee=="string")K=S.byteLength(c,x);else {if(Ee!="object")throw new Error("First argument needs to be a number, array or string.");K=Te(c.length);}if(S._useTypedArrays?Y=S._augment(new Uint8Array(K)):((Y=this).length=K,Y._isBuffer=!0),S._useTypedArrays&&typeof c.byteLength=="number")Y._set(c);else if(ve(le=c)||S.isBuffer(le)||le&&typeof le=="object"&&typeof le.length=="number")for(Q=0;Q>8,le=le%256,Ee.push(le),Ee.push(Q);return Ee}(x),c,P,K)}function $(c,x,P){var K="";P=Math.min(c.length,P);for(var Y=x;Y>>0)):(x+1>>0),Y}function O(c,x,P,K){if(K||(Z(typeof P=="boolean","missing or invalid endian"),Z(x!=null,"missing offset"),Z(x+1>>8*(K?Q:1-Q);}function L(c,x,P,K,Y){if(Y||(Z(x!=null,"missing value"),Z(typeof K=="boolean","missing or invalid endian"),Z(P!=null,"missing offset"),Z(P+3>>8*(K?Q:3-Q)&255;}function z(c,x,P,K,Y){Y||(Z(x!=null,"missing value"),Z(typeof K=="boolean","missing or invalid endian"),Z(P!=null,"missing offset"),Z(P+1this.length&&(K=this.length);var Y=(K=c.length-x=this.length))return this[c]},S.prototype.readUInt16LE=function(c,x){return G(this,c,!0,x)},S.prototype.readUInt16BE=function(c,x){return G(this,c,!1,x)},S.prototype.readUInt32LE=function(c,x){return X(this,c,!0,x)},S.prototype.readUInt32BE=function(c,x){return X(this,c,!1,x)},S.prototype.readInt8=function(c,x){if(x||(Z(c!=null,"missing offset"),Z(c=this.length))return 128&this[c]?-1*(255-this[c]+1):this[c]},S.prototype.readInt16LE=function(c,x){return O(this,c,!0,x)},S.prototype.readInt16BE=function(c,x){return O(this,c,!1,x)},S.prototype.readInt32LE=function(c,x){return F(this,c,!0,x)},S.prototype.readInt32BE=function(c,x){return F(this,c,!1,x)},S.prototype.readFloatLE=function(c,x){return A(this,c,!0,x)},S.prototype.readFloatBE=function(c,x){return A(this,c,!1,x)},S.prototype.readDoubleLE=function(c,x){return B(this,c,!0,x)},S.prototype.readDoubleBE=function(c,x){return B(this,c,!1,x)},S.prototype.writeUInt8=function(c,x,P){P||(Z(c!=null,"missing value"),Z(x!=null,"missing offset"),Z(x=this.length||(this[x]=c);},S.prototype.writeUInt16LE=function(c,x,P){E(this,c,x,!0,P);},S.prototype.writeUInt16BE=function(c,x,P){E(this,c,x,!1,P);},S.prototype.writeUInt32LE=function(c,x,P){L(this,c,x,!0,P);},S.prototype.writeUInt32BE=function(c,x,P){L(this,c,x,!1,P);},S.prototype.writeInt8=function(c,x,P){P||(Z(c!=null,"missing value"),Z(x!=null,"missing offset"),Z(x=this.length||(0<=c?this.writeUInt8(c,x,P):this.writeUInt8(255+c+1,x,P));},S.prototype.writeInt16LE=function(c,x,P){z(this,c,x,!0,P);},S.prototype.writeInt16BE=function(c,x,P){z(this,c,x,!1,P);},S.prototype.writeInt32LE=function(c,x,P){ae(this,c,x,!0,P);},S.prototype.writeInt32BE=function(c,x,P){ae(this,c,x,!1,P);},S.prototype.writeFloatLE=function(c,x,P){ie(this,c,x,!0,P);},S.prototype.writeFloatBE=function(c,x,P){ie(this,c,x,!1,P);},S.prototype.writeDoubleLE=function(c,x,P){oe(this,c,x,!0,P);},S.prototype.writeDoubleBE=function(c,x,P){oe(this,c,x,!1,P);},S.prototype.fill=function(c,x,P){if(x=x||0,P=P||this.length,Z(typeof(c=typeof(c=c||0)=="string"?c.charCodeAt(0):c)=="number"&&!isNaN(c),"value is not a number"),Z(x<=P,"end < start"),P!==x&&this.length!==0){Z(0<=x&&x"},S.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(S._useTypedArrays)return new S(this).buffer;for(var c=new Uint8Array(this.length),x=0,P=c.length;x=x.length||Y>=c.length);Y++)x[Y+P]=c[Y];return Y}function tn(c){try{return decodeURIComponent(c)}catch{return String.fromCharCode(65533)}}function wr(c,x){Z(typeof c=="number","cannot write a non-number as a number"),Z(0<=c,"specified a negative value for writing an unsigned value"),Z(c<=x,"value is larger than maximum value for type"),Z(Math.floor(c)===c,"value has a fractional component");}function br(c,x,P){Z(typeof c=="number","cannot write a non-number as a number"),Z(c<=x,"value larger than maximum allowed value"),Z(P<=c,"value smaller than minimum allowed value"),Z(Math.floor(c)===c,"value has a fractional component");}function rn(c,x,P){Z(typeof c=="number","cannot write a non-number as a number"),Z(c<=x,"value larger than maximum allowed value"),Z(P<=c,"value smaller than minimum allowed value");}function Z(c,x){if(!c)throw new Error(x||"Failed assertion")}S._augment=function(c){return c._isBuffer=!0,c._get=c.get,c._set=c.set,c.get=te.get,c.set=te.set,c.write=te.write,c.toString=te.toString,c.toLocaleString=te.toString,c.toJSON=te.toJSON,c.copy=te.copy,c.slice=te.slice,c.readUInt8=te.readUInt8,c.readUInt16LE=te.readUInt16LE,c.readUInt16BE=te.readUInt16BE,c.readUInt32LE=te.readUInt32LE,c.readUInt32BE=te.readUInt32BE,c.readInt8=te.readInt8,c.readInt16LE=te.readInt16LE,c.readInt16BE=te.readInt16BE,c.readInt32LE=te.readInt32LE,c.readInt32BE=te.readInt32BE,c.readFloatLE=te.readFloatLE,c.readFloatBE=te.readFloatBE,c.readDoubleLE=te.readDoubleLE,c.readDoubleBE=te.readDoubleBE,c.writeUInt8=te.writeUInt8,c.writeUInt16LE=te.writeUInt16LE,c.writeUInt16BE=te.writeUInt16BE,c.writeUInt32LE=te.writeUInt32LE,c.writeUInt32BE=te.writeUInt32BE,c.writeInt8=te.writeInt8,c.writeInt16LE=te.writeInt16LE,c.writeInt16BE=te.writeInt16BE,c.writeInt32LE=te.writeInt32LE,c.writeInt32BE=te.writeInt32BE,c.writeFloatLE=te.writeFloatLE,c.writeFloatBE=te.writeFloatBE,c.writeDoubleLE=te.writeDoubleLE,c.writeDoubleBE=te.writeDoubleBE,c.fill=te.fill,c.inspect=te.inspect,c.toArrayBuffer=te.toArrayBuffer,c};}).call(this,t("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer");},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(t,e,r){(function(n,i,U,s,f,w,g,I,T){var U=t("buffer").Buffer,C=4,S=new U(C);S.fill(0),e.exports={hash:function(R,W,$,G){for(var X=W(function(E,L){E.length%C!=0&&(z=E.length+(C-E.length%C),E=U.concat([E,S],z));for(var z,ae=[],ie=L?E.readInt32BE:E.readInt32LE,oe=0;oe$?he=te(he):he.length<$&&(he=U.concat([he,G],$));for(var ve=new U($),ye=new U($),at=0;at<$;at++)ve[at]=54^he[at],ye[at]=92^he[at];return Te=te(U.concat([ve,Te])),te(U.concat([ye,Te]))}(z,L,oe):z(oe);return ae=null,ie?oe.toString(ie):oe}}}function O(){var E=[].slice.call(arguments).join(" ");throw new Error([E,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(` `))}G.fill(0),r.createHash=function(E){return X(E)},r.createHmac=X,r.randomBytes=function(E,L){if(!L||!L.call)return new U(R(E));try{L.call(this,void 0,new U(R(E)));}catch(z){L(z);}};var F,A=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],B=function(E){r[E]=function(){O("sorry,",E,"is not implemented yet");};};for(F in A)B(A[F]);}).call(this,t("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify");},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(t,e,r){(function(n,i,o,s,f,w,g,I,T){var U=t("./helpers");function C(O,F){O[F>>5]|=128<>>9<<4)]=F;for(var A=1732584193,B=-271733879,E=-1732584194,L=271733878,z=0;z>>32-E,A)}function R(O,F,A,B,E,L,z){return S(F&A|~F&B,O,F,E,L,z)}function W(O,F,A,B,E,L,z){return S(F&B|A&~B,O,F,E,L,z)}function $(O,F,A,B,E,L,z){return S(F^A^B,O,F,E,L,z)}function G(O,F,A,B,E,L,z){return S(A^(F|~B),O,F,E,L,z)}function X(O,F){var A=(65535&O)+(65535&F);return (O>>16)+(F>>16)+(A>>16)<<16|65535&A}e.exports=function(O){return U.hash(O,C,16)};}).call(this,t("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify");},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(t,e,r){(function(n,i,o,s,f,w,g,I,T){e.exports=function(C){for(var S,R=new Array(C),W=0;W>>((3&W)<<3)&255;return R};}).call(this,t("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify");},{buffer:3,lYpoI2:11}],8:[function(t,e,r){(function(n,i,o,s,f,w,g,I,T){var U=t("./helpers");function C(W,$){W[$>>5]|=128<<24-$%32,W[15+($+64>>9<<4)]=$;for(var G,X,O,F=Array(80),A=1732584193,B=-271733879,E=-1732584194,L=271733878,z=-1009589776,ae=0;ae>16)+($>>16)+(G>>16)<<16|65535&G}function R(W,$){return W<<$|W>>>32-$}e.exports=function(W){return U.hash(W,C,20,!0)};}).call(this,t("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify");},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(t,e,r){(function(n,i,o,s,f,w,g,I,T){function U($,G){var X=(65535&$)+(65535&G);return ($>>16)+(G>>16)+(X>>16)<<16|65535&X}function C($,G){var X,O=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),F=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),A=new Array(64);$[G>>5]|=128<<24-G%32,$[15+(G+64>>9<<4)]=G;for(var B,E,L=0;L<$.length;L+=16){for(var z=F[0],ae=F[1],ie=F[2],oe=F[3],te=F[4],he=F[5],Te=F[6],ve=F[7],ye=0;ye<64;ye++)A[ye]=ye<16?$[ye+L]:U(U(U((E=A[ye-2],R(E,17)^R(E,19)^W(E,10)),A[ye-7]),(E=A[ye-15],R(E,7)^R(E,18)^W(E,3))),A[ye-16]),X=U(U(U(U(ve,R(E=te,6)^R(E,11)^R(E,25)),te&he^~te&Te),O[ye]),A[ye]),B=U(R(B=z,2)^R(B,13)^R(B,22),z&ae^z&ie^ae&ie),ve=Te,Te=he,he=te,te=U(oe,X),oe=ie,ie=ae,ae=z,z=U(X,B);F[0]=U(z,F[0]),F[1]=U(ae,F[1]),F[2]=U(ie,F[2]),F[3]=U(oe,F[3]),F[4]=U(te,F[4]),F[5]=U(he,F[5]),F[6]=U(Te,F[6]),F[7]=U(ve,F[7]);}return F}var S=t("./helpers"),R=function($,G){return $>>>G|$<<32-G},W=function($,G){return $>>>G};e.exports=function($){return S.hash($,C,32,!0)};}).call(this,t("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify");},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(t,e,r){(function(n,i,o,s,f,w,g,I,T){r.read=function(U,C,S,R,L){var $,G,X=8*L-R-1,O=(1<>1,A=-7,B=S?L-1:0,E=S?-1:1,L=U[C+B];for(B+=E,$=L&(1<<-A)-1,L>>=-A,A+=X;0>=-A,A+=R;0>1,B=W===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=R?0:z-1,L=R?1:-1,z=C<0||C===0&&1/C<0?1:0;for(C=Math.abs(C),isNaN(C)||C===1/0?(X=isNaN(C)?1:0,G=F):(G=Math.floor(Math.log(C)/Math.LN2),C*(R=Math.pow(2,-G))<1&&(G--,R*=2),2<=(C+=1<=G+A?B/R:B*Math.pow(2,1-A))*R&&(G++,R/=2),F<=G+A?(X=0,G=F):1<=G+A?(X=(C*R-1)*Math.pow(2,W),G+=A):(X=C*Math.pow(2,A-1)*Math.pow(2,W),G=0));8<=W;U[S+E]=255&X,E+=L,X/=256,W-=8);for(G=G<{p();h();d();m();y();ud.exports={STRING:2,BOOLEAN:4,BYTES:4,NUMBER:8,Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8};});var pd=ee(so=>{p();h();d();m();y();so.byteLength=A1;so.toByteArray=x1;so.fromByteArray=T1;var Tt=[],st=[],E1=typeof Uint8Array<"u"?Uint8Array:Array,ba="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(mr=0,fd=ba.length;mr0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return [r,n]}function A1(t){var e=cd(t),r=e[0],n=e[1];return (r+n)*3/4-n}function S1(t,e,r){return (e+r)*3/4-r}function x1(t){var e,r=cd(t),n=r[0],i=r[1],o=new E1(S1(t,n,i)),s=0,f=i>0?n-4:n,w;for(w=0;w>16&255,o[s++]=e>>8&255,o[s++]=e&255;return i===2&&(e=st[t.charCodeAt(w)]<<2|st[t.charCodeAt(w+1)]>>4,o[s++]=e&255),i===1&&(e=st[t.charCodeAt(w)]<<10|st[t.charCodeAt(w+1)]<<4|st[t.charCodeAt(w+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function B1(t){return Tt[t>>18&63]+Tt[t>>12&63]+Tt[t>>6&63]+Tt[t&63]}function I1(t,e,r){for(var n,i=[],o=e;of?f:s+o));return n===1?(e=t[r-1],i.push(Tt[e>>2]+Tt[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(Tt[e>>10]+Tt[e>>4&63]+Tt[e<<2&63]+"=")),i.join("")}});var hd=ee(va=>{p();h();d();m();y();va.read=function(t,e,r,n,i){var o,s,f=i*8-n-1,w=(1<>1,I=-7,T=r?i-1:0,U=r?-1:1,C=t[e+T];for(T+=U,o=C&(1<<-I)-1,C>>=-I,I+=f;I>0;o=o*256+t[e+T],T+=U,I-=8);for(s=o&(1<<-I)-1,o>>=-I,I+=n;I>0;s=s*256+t[e+T],T+=U,I-=8);if(o===0)o=1-g;else {if(o===w)return s?NaN:(C?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-g;}return (C?-1:1)*s*Math.pow(2,o-n)};va.write=function(t,e,r,n,i,o){var s,f,w,g=o*8-i-1,I=(1<>1,U=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=n?0:o-1,S=n?1:-1,R=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(f=isNaN(e)?1:0,s=I):(s=Math.floor(Math.log(e)/Math.LN2),e*(w=Math.pow(2,-s))<1&&(s--,w*=2),s+T>=1?e+=U/w:e+=U*Math.pow(2,1-T),e*w>=2&&(s++,w/=2),s+T>=I?(f=0,s=I):s+T>=1?(f=(e*w-1)*Math.pow(2,i),s=s+T):(f=e*Math.pow(2,T-1)*Math.pow(2,i),s=0));i>=8;t[r+C]=f&255,C+=S,f/=256,i-=8);for(s=s<0;t[r+C]=s&255,C+=S,s/=256,g-=8);t[r+C-S]|=R*128;};});var Cd=ee(en=>{p();h();d();m();y();var Ea=pd(),Qr=hd(),dd=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;en.Buffer=V;en.SlowBuffer=U1;en.INSPECT_MAX_BYTES=50;var ao=2147483647;en.kMaxLength=ao;V.TYPED_ARRAY_SUPPORT=O1();!V.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function O1(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return !1}}Object.defineProperty(V.prototype,"parent",{enumerable:!0,get:function(){if(V.isBuffer(this))return this.buffer}});Object.defineProperty(V.prototype,"offset",{enumerable:!0,get:function(){if(V.isBuffer(this))return this.byteOffset}});function Dt(t){if(t>ao)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,V.prototype),e}function V(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Ba(t)}return wd(t,e,r)}V.poolSize=8192;function wd(t,e,r){if(typeof t=="string")return C1(t,e);if(ArrayBuffer.isView(t))return _1(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Ot(t,ArrayBuffer)||t&&Ot(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ot(t,SharedArrayBuffer)||t&&Ot(t.buffer,SharedArrayBuffer)))return Sa(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return V.from(n,e,r);let i=P1(t);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return V.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}V.from=function(t,e,r){return wd(t,e,r)};Object.setPrototypeOf(V.prototype,Uint8Array.prototype);Object.setPrototypeOf(V,Uint8Array);function bd(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function R1(t,e,r){return bd(t),t<=0?Dt(t):e!==void 0?typeof r=="string"?Dt(t).fill(e,r):Dt(t).fill(e):Dt(t)}V.alloc=function(t,e,r){return R1(t,e,r)};function Ba(t){return bd(t),Dt(t<0?0:Ia(t)|0)}V.allocUnsafe=function(t){return Ba(t)};V.allocUnsafeSlow=function(t){return Ba(t)};function C1(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!V.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=vd(t,e)|0,n=Dt(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Aa(t){let e=t.length<0?0:Ia(t.length)|0,r=Dt(e);for(let n=0;n=ao)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ao.toString(16)+" bytes");return t|0}function U1(t){return +t!=t&&(t=0),V.alloc(+t)}V.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==V.prototype};V.compare=function(e,r){if(Ot(e,Uint8Array)&&(e=V.from(e,e.offset,e.byteLength)),Ot(r,Uint8Array)&&(r=V.from(r,r.offset,r.byteLength)),!V.isBuffer(e)||!V.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let n=e.length,i=r.length;for(let o=0,s=Math.min(n,i);oi.length?(V.isBuffer(s)||(s=V.from(s)),s.copy(i,o)):Uint8Array.prototype.set.call(i,s,o);else if(V.isBuffer(s))s.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=s.length;}return i};function vd(t,e){if(V.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Ot(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return xa(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Rd(t).length;default:if(i)return n?-1:xa(t).length;e=(""+e).toLowerCase(),i=!0;}}V.byteLength=vd;function F1(t,e,r){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return "";for(t||(t="utf8");;)switch(t){case"hex":return H1(this,e,r);case"utf8":case"utf-8":return Ad(this,e,r);case"ascii":return $1(this,e,r);case"latin1":case"binary":return z1(this,e,r);case"base64":return j1(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W1(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0;}}V.prototype._isBuffer=!0;function gr(t,e,r){let n=t[e];t[e]=t[r],t[r]=n;}V.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(e+=" ... "),""};dd&&(V.prototype[dd]=V.prototype.inspect);V.prototype.compare=function(e,r,n,i,o){if(Ot(e,Uint8Array)&&(e=V.from(e,e.offset,e.byteLength)),!V.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return -1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;let s=o-i,f=n-r,w=Math.min(s,f),g=this.slice(i,o),I=e.slice(r,n);for(let T=0;T2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Oa(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return -1;r=t.length-1;}else if(r<0)if(i)r=0;else return -1;if(typeof e=="string"&&(e=V.from(e,n)),V.isBuffer(e))return e.length===0?-1:yd(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):yd(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function yd(t,e,r,n,i){let o=1,s=t.length,f=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return -1;o=2,s/=2,f/=2,r/=2;}function w(I,T){return o===1?I[T]:I.readUInt16BE(T*o)}let g;if(i){let I=-1;for(g=r;gs&&(r=s-f),g=r;g>=0;g--){let I=!0;for(let T=0;Ti&&(n=i)):n=i;let o=e.length;n>o/2&&(n=o/2);let s;for(s=0;s>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let s=!1;for(;;)switch(i){case"hex":return L1(this,e,r,n);case"utf8":case"utf-8":return N1(this,e,r,n);case"ascii":case"latin1":case"binary":return D1(this,e,r,n);case"base64":return k1(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q1(this,e,r,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0;}};V.prototype.toJSON=function(){return {type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j1(t,e,r){return e===0&&r===t.length?Ea.fromByteArray(t):Ea.fromByteArray(t.slice(e,r))}function Ad(t,e,r){r=Math.min(t.length,r);let n=[],i=e;for(;i239?4:o>223?3:o>191?2:1;if(i+f<=r){let w,g,I,T;switch(f){case 1:o<128&&(s=o);break;case 2:w=t[i+1],(w&192)===128&&(T=(o&31)<<6|w&63,T>127&&(s=T));break;case 3:w=t[i+1],g=t[i+2],(w&192)===128&&(g&192)===128&&(T=(o&15)<<12|(w&63)<<6|g&63,T>2047&&(T<55296||T>57343)&&(s=T));break;case 4:w=t[i+1],g=t[i+2],I=t[i+3],(w&192)===128&&(g&192)===128&&(I&192)===128&&(T=(o&15)<<18|(w&63)<<12|(g&63)<<6|I&63,T>65535&&T<1114112&&(s=T));}}s===null?(s=65533,f=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=f;}return M1(n)}var md=4096;function M1(t){let e=t.length;if(e<=md)return String.fromCharCode.apply(String,t);let r="",n=0;for(;nn)&&(r=n);let i="";for(let o=e;on&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),rr)throw new RangeError("Trying to access beyond buffer length")}V.prototype.readUintLE=V.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||De(e,r,this.length);let i=this[e],o=1,s=0;for(;++s>>0,r=r>>>0,n||De(e,r,this.length);let i=this[e+--r],o=1;for(;r>0&&(o*=256);)i+=this[e+--r]*o;return i};V.prototype.readUint8=V.prototype.readUInt8=function(e,r){return e=e>>>0,r||De(e,1,this.length),this[e]};V.prototype.readUint16LE=V.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||De(e,2,this.length),this[e]|this[e+1]<<8};V.prototype.readUint16BE=V.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||De(e,2,this.length),this[e]<<8|this[e+1]};V.prototype.readUint32LE=V.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||De(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};V.prototype.readUint32BE=V.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||De(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};V.prototype.readBigUInt64LE=er(function(e){e=e>>>0,Zr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&zn(e,this.length-8);let i=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,o=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(i)+(BigInt(o)<>>0,Zr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&zn(e,this.length-8);let i=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],o=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return (BigInt(i)<>>0,r=r>>>0,n||De(e,r,this.length);let i=this[e],o=1,s=0;for(;++s=o&&(i-=Math.pow(2,8*r)),i};V.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||De(e,r,this.length);let i=r,o=1,s=this[e+--i];for(;i>0&&(o*=256);)s+=this[e+--i]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*r)),s};V.prototype.readInt8=function(e,r){return e=e>>>0,r||De(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};V.prototype.readInt16LE=function(e,r){e=e>>>0,r||De(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};V.prototype.readInt16BE=function(e,r){e=e>>>0,r||De(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};V.prototype.readInt32LE=function(e,r){return e=e>>>0,r||De(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};V.prototype.readInt32BE=function(e,r){return e=e>>>0,r||De(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};V.prototype.readBigInt64LE=er(function(e){e=e>>>0,Zr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&zn(e,this.length-8);let i=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return (BigInt(i)<>>0,Zr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&zn(e,this.length-8);let i=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return (BigInt(i)<>>0,r||De(e,4,this.length),Qr.read(this,e,!0,23,4)};V.prototype.readFloatBE=function(e,r){return e=e>>>0,r||De(e,4,this.length),Qr.read(this,e,!1,23,4)};V.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||De(e,8,this.length),Qr.read(this,e,!0,52,8)};V.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||De(e,8,this.length),Qr.read(this,e,!1,52,8)};function Qe(t,e,r,n,i,o){if(!V.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}V.prototype.writeUintLE=V.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){let f=Math.pow(2,8*n)-1;Qe(this,e,r,n,f,0);}let o=1,s=0;for(this[r]=e&255;++s>>0,n=n>>>0,!i){let f=Math.pow(2,8*n)-1;Qe(this,e,r,n,f,0);}let o=n-1,s=1;for(this[r+o]=e&255;--o>=0&&(s*=256);)this[r+o]=e/s&255;return r+n};V.prototype.writeUint8=V.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||Qe(this,e,r,1,255,0),this[r]=e&255,r+1};V.prototype.writeUint16LE=V.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||Qe(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};V.prototype.writeUint16BE=V.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||Qe(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};V.prototype.writeUint32LE=V.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||Qe(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};V.prototype.writeUint32BE=V.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||Qe(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Sd(t,e,r,n,i){Od(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r++]=o,o=o>>8,t[r++]=o,o=o>>8,t[r++]=o,o=o>>8,t[r++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,r}function xd(t,e,r,n,i){Od(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r+7]=o,o=o>>8,t[r+6]=o,o=o>>8,t[r+5]=o,o=o>>8,t[r+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s=s>>8,t[r+2]=s,s=s>>8,t[r+1]=s,s=s>>8,t[r]=s,r+8}V.prototype.writeBigUInt64LE=er(function(e,r=0){return Sd(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});V.prototype.writeBigUInt64BE=er(function(e,r=0){return xd(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});V.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){let w=Math.pow(2,8*n-1);Qe(this,e,r,n,w-1,-w);}let o=0,s=1,f=0;for(this[r]=e&255;++o>0)-f&255;return r+n};V.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){let w=Math.pow(2,8*n-1);Qe(this,e,r,n,w-1,-w);}let o=n-1,s=1,f=0;for(this[r+o]=e&255;--o>=0&&(s*=256);)e<0&&f===0&&this[r+o+1]!==0&&(f=1),this[r+o]=(e/s>>0)-f&255;return r+n};V.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||Qe(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};V.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||Qe(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};V.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||Qe(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};V.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||Qe(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};V.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||Qe(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};V.prototype.writeBigInt64LE=er(function(e,r=0){return Sd(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});V.prototype.writeBigInt64BE=er(function(e,r=0){return xd(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Bd(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Id(t,e,r,n,i){return e=+e,r=r>>>0,i||Bd(t,e,r,4),Qr.write(t,e,r,n,23,4),r+4}V.prototype.writeFloatLE=function(e,r,n){return Id(this,e,r,!0,n)};V.prototype.writeFloatBE=function(e,r,n){return Id(this,e,r,!1,n)};function Td(t,e,r,n,i){return e=+e,r=r>>>0,i||Bd(t,e,r,8),Qr.write(t,e,r,n,52,8),r+8}V.prototype.writeDoubleLE=function(e,r,n){return Td(this,e,r,!0,n)};V.prototype.writeDoubleBE=function(e,r,n){return Td(this,e,r,!1,n)};V.prototype.copy=function(e,r,n,i){if(!V.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let o;if(typeof e=="number")for(o=r;o2**32?i=gd(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=gd(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n},RangeError);function gd(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return `${t.slice(0,r)}${e}`}function G1(t,e,r){Zr(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&zn(e,t.length-(r+1));}function Od(t,e,r,n,i,o){if(t>r||t3?e===0||e===BigInt(0)?f=`>= 0${s} and < 2${s} ** ${(o+1)*8}${s}`:f=`>= -(2${s} ** ${(o+1)*8-1}${s}) and < 2 ** ${(o+1)*8-1}${s}`:f=`>= ${e}${s} and <= ${r}${s}`,new Xr.ERR_OUT_OF_RANGE("value",f,t)}G1(n,i,o);}function Zr(t,e){if(typeof t!="number")throw new Xr.ERR_INVALID_ARG_TYPE(e,"number",t)}function zn(t,e,r){throw Math.floor(t)!==t?(Zr(t,r),new Xr.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new Xr.ERR_BUFFER_OUT_OF_BOUNDS:new Xr.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}var V1=/[^+/0-9A-Za-z-_]/g;function J1(t){if(t=t.split("=")[0],t=t.trim().replace(V1,""),t.length<2)return "";for(;t.length%4!==0;)t=t+"=";return t}function xa(t,e){e=e||1/0;let r,n=t.length,i=null,o=[];for(let s=0;s55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536;}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r);}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128);}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128);}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128);}else throw new Error("Invalid code point")}return o}function Y1(t){let e=[];for(let r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function Rd(t){return Ea.toByteArray(J1(t))}function uo(t,e,r,n){let i;for(i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function Ot(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function Oa(t){return t!==t}var X1=function(){let t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i];}return e}();function er(t){return typeof BigInt>"u"?Q1:t}function Q1(){throw new Error("BigInt not supported")}});var Ud=ee((HP,Pd)=>{p();h();d();m();y();var nt=ld(),_d=Cd().Buffer;function Z1(t){return 12+4*Math.ceil(t.length/4)}function eb(){return !(typeof window<"u"&&typeof document<"u")}function tb(t){let e=0,r=-1;try{let n=t;if(t instanceof Map?n=Object.fromEntries(t):t instanceof Set&&(n=Array.from(t)),t instanceof Int8Array)return t.length*nt.Int8Array;if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)return t.length*nt.Uint8Array;if(t instanceof Int16Array)return t.length*nt.Int16Array;if(t instanceof Uint16Array)return t.length*nt.Uint16Array;if(t instanceof Int32Array)return t.length*nt.Int32Array;if(t instanceof Uint32Array)return t.length*nt.Uint32Array;if(t instanceof Float32Array)return t.length*nt.Float32Array;if(t instanceof Float64Array)return t.length*nt.Float64Array;let i=JSON.stringify(n);e=new _d.from(i).byteLength;}catch(n){return console.error("Error detected, return "+r,n),r}return e}function rb(t){let e=[],r=[t],n=0;for(;r.length;){let i=r.pop();if(typeof i=="boolean")n+=nt.BYTES;else if(typeof i=="string")eb()?n+=Z1(i):n+=i.length*nt.STRING;else if(typeof i=="number")n+=nt.NUMBER;else if(typeof i=="symbol")Symbol.keyFor&&Symbol.keyFor(t)?n+=Symbol.keyFor(t).length*nt.STRING:n+=(t.toString().length-8)*nt.STRING;else if(typeof i=="bigint")n+=_d.from(i.toString()).byteLength;else if(typeof i=="function")n+=i.toString().length;else if(typeof i=="object"&&e.indexOf(i)===-1){e.push(i);for(let o in i)r.push(i[o]);}}return n}Pd.exports=function(t){let e=0;return t!==null&&typeof t=="object"?e=tb(t):e=rb(t),e};});p();h();d();m();y();p();h();d();m();y();p();h();d();m();y();p();h();d();m();y();var rl,nl,Ar=typeof Reflect=="object"?Reflect:null,Yu=Ar&&typeof Ar.apply=="function"?Ar.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};nl=Ar&&typeof Ar.ownKeys=="function"?Ar.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var Ku=Number.isNaN||function(t){return t!=t};function de(){de.init.call(this);}rl=de,de.EventEmitter=de,de.prototype._events=void 0,de.prototype._eventsCount=0,de.prototype._maxListeners=void 0;var Xu=10;function Kn(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function il(t){return t._maxListeners===void 0?de.defaultMaxListeners:t._maxListeners}function Qu(t,e,r,n){var i,o,s,f;if(Kn(r),(o=t._events)===void 0?(o=t._events=Object.create(null),t._eventsCount=0):(o.newListener!==void 0&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),s=o[e]),s===void 0)s=o[e]=r,++t._eventsCount;else if(typeof s=="function"?s=o[e]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=il(t))>0&&s.length>i&&!s.warned){s.warned=!0;var w=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");w.name="MaxListenersExceededWarning",w.emitter=t,w.type=e,w.count=s.length,f=w,console&&console.warn&&console.warn(f);}return t}function ty(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Zu(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=ty.bind(n);return i.listener=r,n.wrapFn=i,i}function el(t,e,r){var n=t._events;if(n===void 0)return [];var i=n[e];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?function(o){for(var s=new Array(o.length),f=0;f0&&(o=e[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var f=i[t];if(f===void 0)return !1;if(typeof f=="function")Yu(f,this,e);else {var w=f.length,g=ol(f,w);for(r=0;r=0;o--)if(r[o]===e||r[o].listener===e){s=r[o].listener,i=o;break}if(i<0)return this;i===0?r.shift():function(f,w){for(;w+1=0;n--)this.removeListener(t,e[n]);return this},de.prototype.listeners=function(t){return el(this,t,!0)},de.prototype.rawListeners=function(t){return el(this,t,!1)},de.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):tl.call(t,e)},de.prototype.listenerCount=tl,de.prototype.eventNames=function(){return this._eventsCount>0?nl(this._events):[]};var Ze=rl;Ze.once=function(t,e){return new Promise((r,n)=>{function i(...s){o!==void 0&&t.removeListener("error",o),r(s);}let o;e!=="error"&&(o=s=>{t.removeListener(name,i),n(s);},t.once("error",o)),t.once(e,i);})};Ze.on=function(t,e){let r=[],n=[],i=null,o=!1,s={async next(){let g=r.shift();if(g)return createIterResult(g,!1);if(i){let I=Promise.reject(i);return i=null,I}return o?createIterResult(void 0,!0):new Promise((I,T)=>n.push({resolve:I,reject:T}))},async return(){t.removeListener(e,f),t.removeListener("error",w),o=!0;for(let g of n)g.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(g){i=g,t.removeListener(e,f),t.removeListener("error",w);},[Symbol.asyncIterator](){return this}};return t.on(e,f),t.on("error",w),s;function f(...g){let I=n.shift();I?I.resolve(createIterResult(g,!1)):r.push(g);}function w(g){o=!0;let I=n.shift();I?I.reject(g):i=g,s.return();}};var{EventEmitter:Xn,defaultMaxListeners:Lb,init:Nb,listenerCount:Db,on:kb,once:qb}=Ze;p();h();d();m();y();p();h();d();m();y();var Qn,ry=new Uint8Array(16);function go(){if(!Qn&&(Qn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Qn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Qn(ry)}p();h();d();m();y();var qe=[];for(let t=0;t<256;++t)qe.push((t+256).toString(16).slice(1));function sl(t,e=0){return (qe[t[e+0]]+qe[t[e+1]]+qe[t[e+2]]+qe[t[e+3]]+"-"+qe[t[e+4]]+qe[t[e+5]]+"-"+qe[t[e+6]]+qe[t[e+7]]+"-"+qe[t[e+8]]+qe[t[e+9]]+"-"+qe[t[e+10]]+qe[t[e+11]]+qe[t[e+12]]+qe[t[e+13]]+qe[t[e+14]]+qe[t[e+15]]).toLowerCase()}p();h();d();m();y();p();h();d();m();y();var ny=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),wo={randomUUID:ny};function iy(t,e,r){if(wo.randomUUID&&!e&&!t)return wo.randomUUID();t=t||{};let n=t.random||(t.rng||go)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(let i=0;i<16;++i)e[r+i]=n[i];return e}return sl(n)}var bo=iy;var qd=rr(zs()),jd=rr(sh());p();h();d();m();y();p();h();d();m();y();p();h();d();m();y();p();h();d();m();y();var wn=class{constructor(e){this.config=e;}};p();h();d();m();y();p();h();d();m();y();p();h();d();m();y();p();h();d();m();y();p();h();d();m();y();function bn(t,e){return function(){return t.apply(e,arguments)}}var{toString:Y0}=Object.prototype,{getPrototypeOf:Gs}=Object,Ui=(t=>e=>{let r=Y0.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),bt=t=>(t=t.toLowerCase(),e=>Ui(e)===t),Fi=t=>e=>typeof e===t,{isArray:Fr}=Array,vn=Fi("undefined");function K0(t){return t!==null&&!vn(t)&&t.constructor!==null&&!vn(t.constructor)&&ot(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var lh=bt("ArrayBuffer");function X0(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&lh(t.buffer),e}var Q0=Fi("string"),ot=Fi("function"),fh=Fi("number"),Li=t=>t!==null&&typeof t=="object",Z0=t=>t===!0||t===!1,Pi=t=>{if(Ui(t)!=="object")return !1;let e=Gs(t);return (e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},ew=bt("Date"),tw=bt("File"),rw=bt("Blob"),nw=bt("FileList"),iw=t=>Li(t)&&ot(t.pipe),ow=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||ot(t.append)&&((e=Ui(t))==="formdata"||e==="object"&&ot(t.toString)&&t.toString()==="[object FormData]"))},sw=bt("URLSearchParams"),aw=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function En(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),Fr(t))for(n=0,i=t.length;n0;)if(i=r[n],e===i.toLowerCase())return i;return null}var ph=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:D)(),hh=t=>!vn(t)&&t!==ph;function Ws(){let{caseless:t}=hh(this)&&this||{},e={},r=(n,i)=>{let o=t&&ch(e,i)||i;Pi(e[o])&&Pi(n)?e[o]=Ws(e[o],n):Pi(n)?e[o]=Ws({},n):Fr(n)?e[o]=n.slice():e[o]=n;};for(let n=0,i=arguments.length;n(En(e,(i,o)=>{r&&ot(i)?t[o]=bn(i,r):t[o]=i;},{allOwnKeys:n}),t),lw=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),fw=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r);},cw=(t,e,r,n)=>{let i,o,s,f={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)s=i[o],(!n||n(s,t,e))&&!f[s]&&(e[s]=t[s],f[s]=!0);t=r!==!1&&Gs(t);}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},pw=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;let n=t.indexOf(e,r);return n!==-1&&n===r},hw=t=>{if(!t)return null;if(Fr(t))return t;let e=t.length;if(!fh(e))return null;let r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},dw=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Gs(Uint8Array)),yw=(t,e)=>{let n=(t&&t[Symbol.iterator]).call(t),i;for(;(i=n.next())&&!i.done;){let o=i.value;e.call(t,o[0],o[1]);}},mw=(t,e)=>{let r,n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},gw=bt("HTMLFormElement"),ww=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),ah=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),bw=bt("RegExp"),dh=(t,e)=>{let r=Object.getOwnPropertyDescriptors(t),n={};En(r,(i,o)=>{e(i,o,t)!==!1&&(n[o]=i);}),Object.defineProperties(t,n);},vw=t=>{dh(t,(e,r)=>{if(ot(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return !1;let n=t[r];if(ot(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")});}});},Ew=(t,e)=>{let r={},n=i=>{i.forEach(o=>{r[o]=!0;});};return Fr(t)?n(t):n(String(t).split(e)),r},Aw=()=>{},Sw=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Hs="abcdefghijklmnopqrstuvwxyz",uh="0123456789",yh={DIGIT:uh,ALPHA:Hs,ALPHA_DIGIT:Hs+Hs.toUpperCase()+uh},xw=(t=16,e=yh.ALPHA_DIGIT)=>{let r="",{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};function Bw(t){return !!(t&&ot(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}var Iw=t=>{let e=new Array(10),r=(n,i)=>{if(Li(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[i]=n;let o=Fr(n)?[]:{};return En(n,(s,f)=>{let w=r(s,i+1);!vn(w)&&(o[f]=w);}),e[i]=void 0,o}}return n};return r(t,0)},Tw=bt("AsyncFunction"),Ow=t=>t&&(Li(t)||ot(t))&&ot(t.then)&&ot(t.catch),H={isArray:Fr,isArrayBuffer:lh,isBuffer:K0,isFormData:ow,isArrayBufferView:X0,isString:Q0,isNumber:fh,isBoolean:Z0,isObject:Li,isPlainObject:Pi,isUndefined:vn,isDate:ew,isFile:tw,isBlob:rw,isRegExp:bw,isFunction:ot,isStream:iw,isURLSearchParams:sw,isTypedArray:dw,isFileList:nw,forEach:En,merge:Ws,extend:uw,trim:aw,stripBOM:lw,inherits:fw,toFlatObject:cw,kindOf:Ui,kindOfTest:bt,endsWith:pw,toArray:hw,forEachEntry:yw,matchAll:mw,isHTMLForm:gw,hasOwnProperty:ah,hasOwnProp:ah,reduceDescriptors:dh,freezeMethods:vw,toObjectSet:Ew,toCamelCase:ww,noop:Aw,toFiniteNumber:Sw,findKey:ch,global:ph,isContextDefined:hh,ALPHABET:yh,generateString:xw,isSpecCompliantForm:Bw,toJSONObject:Iw,isAsyncFn:Tw,isThenable:Ow};p();h();d();m();y();p();h();d();m();y();p();h();d();m();y();p();h();d();m();y();p();h();d();m();y();function Lr(t,e,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i);}H.inherits(Lr,Error,{toJSON:function(){return {message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:H.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var mh=Lr.prototype,gh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{gh[t]={value:t};});Object.defineProperties(Lr,gh);Object.defineProperty(mh,"isAxiosError",{value:!0});Lr.from=(t,e,r,n,i,o)=>{let s=Object.create(mh);return H.toFlatObject(t,s,function(w){return w!==Error.prototype},f=>f!=="isAxiosError"),Lr.call(s,t.message,e,r,n,i),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};var pe=Lr;p();h();d();m();y();var Ni=null;function Vs(t){return H.isPlainObject(t)||H.isArray(t)}function bh(t){return H.endsWith(t,"[]")?t.slice(0,-2):t}function wh(t,e,r){return t?t.concat(e).map(function(i,o){return i=bh(i),!r&&o?"["+i+"]":i}).join(r?".":""):e}function Rw(t){return H.isArray(t)&&!t.some(Vs)}var Cw=H.toFlatObject(H,{},null,function(e){return /^is[A-Z]/.test(e)});function _w(t,e,r){if(!H.isObject(t))throw new TypeError("target must be an object");e=e||new(FormData),r=H.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(R,W){return !H.isUndefined(W[R])});let n=r.metaTokens,i=r.visitor||I,o=r.dots,s=r.indexes,w=(r.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(e);if(!H.isFunction(i))throw new TypeError("visitor must be a function");function g(S){if(S===null)return "";if(H.isDate(S))return S.toISOString();if(!w&&H.isBlob(S))throw new pe("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(S)||H.isTypedArray(S)?w&&typeof Blob=="function"?new Blob([S]):k.from(S):S}function I(S,R,W){let $=S;if(S&&!W&&typeof S=="object"){if(H.endsWith(R,"{}"))R=n?R:R.slice(0,-2),S=JSON.stringify(S);else if(H.isArray(S)&&Rw(S)||(H.isFileList(S)||H.endsWith(R,"[]"))&&($=H.toArray(S)))return R=bh(R),$.forEach(function(X,O){!(H.isUndefined(X)||X===null)&&e.append(s===!0?wh([R],O,o):s===null?R:R+"[]",g(X));}),!1}return Vs(S)?!0:(e.append(wh(W,R,o),g(S)),!1)}let T=[],U=Object.assign(Cw,{defaultVisitor:I,convertValue:g,isVisitable:Vs});function C(S,R){if(!H.isUndefined(S)){if(T.indexOf(S)!==-1)throw Error("Circular reference detected in "+R.join("."));T.push(S),H.forEach(S,function($,G){(!(H.isUndefined($)||$===null)&&i.call(e,$,H.isString(G)?G.trim():G,R,U))===!0&&C($,R?R.concat(G):[G]);}),T.pop();}}if(!H.isObject(t))throw new TypeError("data must be an object");return C(t),e}var Ht=_w;function vh(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Eh(t,e){this._pairs=[],t&&Ht(t,this,e);}var Ah=Eh.prototype;Ah.append=function(e,r){this._pairs.push([e,r]);};Ah.toString=function(e){let r=e?function(n){return e.call(this,n,vh)}:vh;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};var Di=Eh;function Pw(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function An(t,e,r){if(!e)return t;let n=r&&r.encode||Pw,i=r&&r.serialize,o;if(i?o=i(e,r):o=H.isURLSearchParams(e)?e.toString():new Di(e,r).toString(n),o){let s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o;}return t}p();h();d();m();y();var Js=class{constructor(){this.handlers=[];}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null);}clear(){this.handlers&&(this.handlers=[]);}forEach(e){H.forEach(this.handlers,function(n){n!==null&&e(n);});}},Ys=Js;p();h();d();m();y();p();h();d();m();y();p();h();d();m();y();p();h();d();m();y();var ki={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};p();h();d();m();y();p();h();d();m();y();p();h();d();m();y();p();h();d();m();y();var Sh=typeof URLSearchParams<"u"?URLSearchParams:Di;p();h();d();m();y();var xh=typeof FormData<"u"?FormData:null;p();h();d();m();y();var Bh=typeof Blob<"u"?Blob:null;var Uw=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Fw=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),We={isBrowser:!0,classes:{URLSearchParams:Sh,FormData:xh,Blob:Bh},isStandardBrowserEnv:Uw,isStandardBrowserWebWorkerEnv:Fw,protocols:["http","https","file","blob","url","data"]};function Ks(t,e){return Ht(t,new We.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return We.isNode&&H.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}p();h();d();m();y();function Lw(t){return H.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Nw(t){let e={},r=Object.keys(t),n,i=r.length,o;for(n=0;n=r.length;return s=!s&&H.isArray(i)?i.length:s,w?(H.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!f):((!i[s]||!H.isObject(i[s]))&&(i[s]=[]),e(r,n,i[s],o)&&H.isArray(i[s])&&(i[s]=Nw(i[s])),!f)}if(H.isFormData(t)&&H.isFunction(t.entries)){let r={};return H.forEachEntry(t,(n,i)=>{e(Lw(n),i,r,0);}),r}return null}var qi=Dw;var kw={"Content-Type":void 0};function qw(t,e,r){if(H.isString(t))try{return (e||JSON.parse)(t),H.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return (r||JSON.stringify)(t)}var ji={transitional:ki,adapter:["xhr","http"],transformRequest:[function(e,r){let n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=H.isObject(e);if(o&&H.isHTMLForm(e)&&(e=new FormData(e)),H.isFormData(e))return i&&i?JSON.stringify(qi(e)):e;if(H.isArrayBuffer(e)||H.isBuffer(e)||H.isStream(e)||H.isFile(e)||H.isBlob(e))return e;if(H.isArrayBufferView(e))return e.buffer;if(H.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let f;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Ks(e,this.formSerializer).toString();if((f=H.isFileList(e))||n.indexOf("multipart/form-data")>-1){let w=this.env&&this.env.FormData;return Ht(f?{"files[]":e}:e,w&&new w,this.formSerializer)}}return o||i?(r.setContentType("application/json",!1),qw(e)):e}],transformResponse:[function(e){let r=this.transitional||ji.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(e&&H.isString(e)&&(n&&!this.responseType||i)){let s=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(f){if(s)throw f.name==="SyntaxError"?pe.from(f,pe.ERR_BAD_RESPONSE,this,null,this.response):f}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:We.classes.FormData,Blob:We.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};H.forEach(["delete","get","head"],function(e){ji.headers[e]={};});H.forEach(["post","put","patch"],function(e){ji.headers[e]=H.merge(kw);});var Nr=ji;p();h();d();m();y();p();h();d();m();y();var jw=H.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ih=t=>{let e={},r,n,i;return t&&t.split(` `).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||e[r]&&jw[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n);}),e};var Th=Symbol("internals");function Sn(t){return t&&String(t).trim().toLowerCase()}function Mi(t){return t===!1||t==null?t:H.isArray(t)?t.map(Mi):String(t)}function Mw(t){let e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}var $w=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Xs(t,e,r,n,i){if(H.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!H.isString(e)){if(H.isString(n))return e.indexOf(n)!==-1;if(H.isRegExp(n))return n.test(e)}}function zw(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function Hw(t,e){let r=H.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(i,o,s){return this[n].call(this,e,i,o,s)},configurable:!0});});}var Dr=class{constructor(e){e&&this.set(e);}set(e,r,n){let i=this;function o(f,w,g){let I=Sn(w);if(!I)throw new Error("header name must be a non-empty string");let T=H.findKey(i,I);(!T||i[T]===void 0||g===!0||g===void 0&&i[T]!==!1)&&(i[T||w]=Mi(f));}let s=(f,w)=>H.forEach(f,(g,I)=>o(g,I,w));return H.isPlainObject(e)||e instanceof this.constructor?s(e,r):H.isString(e)&&(e=e.trim())&&!$w(e)?s(Ih(e),r):e!=null&&o(r,e,n),this}get(e,r){if(e=Sn(e),e){let n=H.findKey(this,e);if(n){let i=this[n];if(!r)return i;if(r===!0)return Mw(i);if(H.isFunction(r))return r.call(this,i,n);if(H.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Sn(e),e){let n=H.findKey(this,e);return !!(n&&this[n]!==void 0&&(!r||Xs(this,this[n],n,r)))}return !1}delete(e,r){let n=this,i=!1;function o(s){if(s=Sn(s),s){let f=H.findKey(n,s);f&&(!r||Xs(n,n[f],f,r))&&(delete n[f],i=!0);}}return H.isArray(e)?e.forEach(o):o(e),i}clear(e){let r=Object.keys(this),n=r.length,i=!1;for(;n--;){let o=r[n];(!e||Xs(this,this[o],o,e,!0))&&(delete this[o],i=!0);}return i}normalize(e){let r=this,n={};return H.forEach(this,(i,o)=>{let s=H.findKey(n,o);if(s){r[s]=Mi(i),delete r[o];return}let f=e?zw(o):String(o).trim();f!==o&&delete r[o],r[f]=Mi(i),n[f]=!0;}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let r=Object.create(null);return H.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&H.isArray(n)?n.join(", "):n);}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(` `)}get[Symbol.toStringTag](){return "AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){let n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){let n=(this[Th]=this[Th]={accessors:{}}).accessors,i=this.prototype;function o(s){let f=Sn(s);n[f]||(Hw(i,s),n[f]=!0);}return H.isArray(e)?e.forEach(o):o(e),this}};Dr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);H.freezeMethods(Dr.prototype);H.freezeMethods(Dr);var Je=Dr;function xn(t,e){let r=this||Nr,n=e||r,i=Je.from(n.headers),o=n.data;return H.forEach(t,function(f){o=f.call(r,o,i.normalize(),e?e.status:void 0);}),i.normalize(),o}p();h();d();m();y();function Bn(t){return !!(t&&t.__CANCEL__)}p();h();d();m();y();function Oh(t,e,r){pe.call(this,t??"canceled",pe.ERR_CANCELED,e,r),this.name="CanceledError";}H.inherits(Oh,pe,{__CANCEL__:!0});var Wt=Oh;p();h();d();m();y();p();h();d();m();y();p();h();d();m();y();function Qs(t,e,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new pe("Request failed with status code "+r.status,[pe.ERR_BAD_REQUEST,pe.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r));}p();h();d();m();y();var Rh=We.isStandardBrowserEnv?function(){return {write:function(r,n,i,o,s,f){let w=[];w.push(r+"="+encodeURIComponent(n)),H.isNumber(i)&&w.push("expires="+new Date(i).toGMTString()),H.isString(o)&&w.push("path="+o),H.isString(s)&&w.push("domain="+s),f===!0&&w.push("secure"),document.cookie=w.join("; ");},read:function(r){let n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5);}}}():function(){return {write:function(){},read:function(){return null},remove:function(){}}}();p();h();d();m();y();p();h();d();m();y();function Zs(t){return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}p();h();d();m();y();function ea(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function In(t,e){return t&&!Zs(e)?ea(t,e):e}p();h();d();m();y();var Ch=We.isStandardBrowserEnv?function(){let e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(o){let s=o;return e&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(s){let f=H.isString(s)?i(s):s;return f.protocol===n.protocol&&f.host===n.host}}():function(){return function(){return !0}}();p();h();d();m();y();function ta(t){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}p();h();d();m();y();function Ww(t,e){t=t||10;let r=new Array(t),n=new Array(t),i=0,o=0,s;return e=e!==void 0?e:1e3,function(w){let g=Date.now(),I=n[o];s||(s=g),r[i]=w,n[i]=g;let T=o,U=0;for(;T!==i;)U+=r[T++],T=T%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),g-s{let o=i.loaded,s=i.lengthComputable?i.total:void 0,f=o-r,w=n(f),g=o<=s;r=o;let I={loaded:o,total:s,progress:s?o/s:void 0,bytes:f,rate:w||void 0,estimated:w&&s&&g?(s-o)/w:void 0,event:i};I[e?"download":"upload"]=!0,t(I);}}var Gw=typeof XMLHttpRequest<"u",Uh=Gw&&function(t){return new Promise(function(r,n){let i=t.data,o=Je.from(t.headers).normalize(),s=t.responseType,f;function w(){t.cancelToken&&t.cancelToken.unsubscribe(f),t.signal&&t.signal.removeEventListener("abort",f);}H.isFormData(i)&&(We.isStandardBrowserEnv||We.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let g=new XMLHttpRequest;if(t.auth){let C=t.auth.username||"",S=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(C+":"+S));}let I=In(t.baseURL,t.url);g.open(t.method.toUpperCase(),An(I,t.params,t.paramsSerializer),!0),g.timeout=t.timeout;function T(){if(!g)return;let C=Je.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),R={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:C,config:t,request:g};Qs(function($){r($),w();},function($){n($),w();},R),g=null;}if("onloadend"in g?g.onloadend=T:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(T);},g.onabort=function(){g&&(n(new pe("Request aborted",pe.ECONNABORTED,t,g)),g=null);},g.onerror=function(){n(new pe("Network Error",pe.ERR_NETWORK,t,g)),g=null;},g.ontimeout=function(){let S=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",R=t.transitional||ki;t.timeoutErrorMessage&&(S=t.timeoutErrorMessage),n(new pe(S,R.clarifyTimeoutError?pe.ETIMEDOUT:pe.ECONNABORTED,t,g)),g=null;},We.isStandardBrowserEnv){let C=(t.withCredentials||Ch(I))&&t.xsrfCookieName&&Rh.read(t.xsrfCookieName);C&&o.set(t.xsrfHeaderName,C);}i===void 0&&o.setContentType(null),"setRequestHeader"in g&&H.forEach(o.toJSON(),function(S,R){g.setRequestHeader(R,S);}),H.isUndefined(t.withCredentials)||(g.withCredentials=!!t.withCredentials),s&&s!=="json"&&(g.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&g.addEventListener("progress",Ph(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&g.upload&&g.upload.addEventListener("progress",Ph(t.onUploadProgress)),(t.cancelToken||t.signal)&&(f=C=>{g&&(n(!C||C.type?new Wt(null,t,g):C),g.abort(),g=null);},t.cancelToken&&t.cancelToken.subscribe(f),t.signal&&(t.signal.aborted?f():t.signal.addEventListener("abort",f)));let U=ta(I);if(U&&We.protocols.indexOf(U)===-1){n(new pe("Unsupported protocol "+U+":",pe.ERR_BAD_REQUEST,t));return}g.send(i||null);})};var $i={http:Ni,xhr:Uh};H.forEach($i,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e});}catch{}Object.defineProperty(t,"adapterName",{value:e});}});var Fh={getAdapter:t=>{t=H.isArray(t)?t:[t];let{length:e}=t,r,n;for(let i=0;it instanceof Je?t.toJSON():t;function Ut(t,e){e=e||{};let r={};function n(g,I,T){return H.isPlainObject(g)&&H.isPlainObject(I)?H.merge.call({caseless:T},g,I):H.isPlainObject(I)?H.merge({},I):H.isArray(I)?I.slice():I}function i(g,I,T){if(H.isUndefined(I)){if(!H.isUndefined(g))return n(void 0,g,T)}else return n(g,I,T)}function o(g,I){if(!H.isUndefined(I))return n(void 0,I)}function s(g,I){if(H.isUndefined(I)){if(!H.isUndefined(g))return n(void 0,g)}else return n(void 0,I)}function f(g,I,T){if(T in e)return n(g,I);if(T in t)return n(void 0,g)}let w={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:f,headers:(g,I)=>i(Lh(g),Lh(I),!0)};return H.forEach(Object.keys(Object.assign({},t,e)),function(I){let T=w[I]||i,U=T(t[I],e[I],I);H.isUndefined(U)&&T!==f||(r[I]=U);}),r}p();h();d();m();y();p();h();d();m();y();var Hi="1.4.0";var na={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{na[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t};});var Nh={};na.transitional=function(e,r,n){function i(o,s){return "[Axios v"+Hi+"] Transitional option '"+o+"'"+s+(n?". "+n:"")}return (o,s,f)=>{if(e===!1)throw new pe(i(s," has been removed"+(r?" in "+r:"")),pe.ERR_DEPRECATED);return r&&!Nh[s]&&(Nh[s]=!0,console.warn(i(s," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,s,f):!0}};function Vw(t,e,r){if(typeof t!="object")throw new pe("options must be an object",pe.ERR_BAD_OPTION_VALUE);let n=Object.keys(t),i=n.length;for(;i-- >0;){let o=n[i],s=e[o];if(s){let f=t[o],w=f===void 0||s(f,o,t);if(w!==!0)throw new pe("option "+o+" must be "+w,pe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new pe("Unknown option "+o,pe.ERR_BAD_OPTION)}}var Wi={assertOptions:Vw,validators:na};var Gt=Wi.validators,kr=class{constructor(e){this.defaults=e,this.interceptors={request:new Ys,response:new Ys};}request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Ut(this.defaults,r);let{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&Wi.assertOptions(n,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean)},!1),i!=null&&(H.isFunction(i)?r.paramsSerializer={serialize:i}:Wi.assertOptions(i,{encode:Gt.function,serialize:Gt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s;s=o&&H.merge(o.common,o[r.method]),s&&H.forEach(["delete","get","head","post","put","patch","common"],S=>{delete o[S];}),r.headers=Je.concat(s,o);let f=[],w=!0;this.interceptors.request.forEach(function(R){typeof R.runWhen=="function"&&R.runWhen(r)===!1||(w=w&&R.synchronous,f.unshift(R.fulfilled,R.rejected));});let g=[];this.interceptors.response.forEach(function(R){g.push(R.fulfilled,R.rejected);});let I,T=0,U;if(!w){let S=[zi.bind(this),void 0];for(S.unshift.apply(S,f),S.push.apply(S,g),U=S.length,I=Promise.resolve(r);T{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null;}),this.promise.then=i=>{let o,s=new Promise(f=>{n.subscribe(f),o=f;}).then(i);return s.cancel=function(){n.unsubscribe(o);},s},e(function(o,s,f){n.reason||(n.reason=new Wt(o,s,f),r(n.reason));});}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e];}unsubscribe(e){if(!this._listeners)return;let r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1);}static source(){let e;return {token:new On(function(i){e=i;}),cancel:e}}},Dh=On;p();h();d();m();y();function ia(t){return function(r){return t.apply(null,r)}}p();h();d();m();y();function oa(t){return H.isObject(t)&&t.isAxiosError===!0}p();h();d();m();y();var sa={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(sa).forEach(([t,e])=>{sa[e]=t;});var kh=sa;function qh(t){let e=new Tn(t),r=bn(Tn.prototype.request,e);return H.extend(r,Tn.prototype,e,{allOwnKeys:!0}),H.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return qh(Ut(t,i))},r}var Pe=qh(Nr);Pe.Axios=Tn;Pe.CanceledError=Wt;Pe.CancelToken=Dh;Pe.isCancel=Bn;Pe.VERSION=Hi;Pe.toFormData=Ht;Pe.AxiosError=pe;Pe.Cancel=Pe.CanceledError;Pe.all=function(e){return Promise.all(e)};Pe.spread=ia;Pe.isAxiosError=oa;Pe.mergeConfig=Ut;Pe.AxiosHeaders=Je;Pe.formToJSON=t=>qi(H.isHTMLForm(t)?new FormData(t):t);Pe.HttpStatusCode=kh;Pe.default=Pe;var Rn=Pe;var ua=rr(Mh());p();h();d();m();y();var Vt=class extends Error{constructor(r,n,i){super(i);this.name="ApiError",this.url=n.url,this.status=n.status,this.statusText=n.statusText,this.body=n.body,this.request=r;}};p();h();d();m();y();var Gi=class extends Error{constructor(e){super(e),this.name="CancelError";}get isCancelled(){return !0}},vt,Et,ft,Jt,lr,Cn,qr,ct=class{constructor(e){se(this,vt,void 0);se(this,Et,void 0);se(this,ft,void 0);se(this,Jt,void 0);se(this,lr,void 0);se(this,Cn,void 0);se(this,qr,void 0);re(this,vt,!1),re(this,Et,!1),re(this,ft,!1),re(this,Jt,[]),re(this,lr,new Promise((r,n)=>{re(this,Cn,r),re(this,qr,n);let i=f=>{var w;v(this,vt)||v(this,Et)||v(this,ft)||(re(this,vt,!0),(w=v(this,Cn))==null||w.call(this,f));},o=f=>{var w;v(this,vt)||v(this,Et)||v(this,ft)||(re(this,Et,!0),(w=v(this,qr))==null||w.call(this,f));},s=f=>{v(this,vt)||v(this,Et)||v(this,ft)||v(this,Jt).push(f);};return Object.defineProperty(s,"isResolved",{get:()=>v(this,vt)}),Object.defineProperty(s,"isRejected",{get:()=>v(this,Et)}),Object.defineProperty(s,"isCancelled",{get:()=>v(this,ft)}),e(i,o,s)}));}get[Symbol.toStringTag](){return "Cancellable Promise"}then(e,r){return v(this,lr).then(e,r)}catch(e){return v(this,lr).catch(e)}finally(e){return v(this,lr).finally(e)}cancel(){var e;if(!(v(this,vt)||v(this,Et)||v(this,ft))){if(re(this,ft,!0),v(this,Jt).length)try{for(let r of v(this,Jt))r();}catch(r){console.warn("Cancellation threw an error",r);return}v(this,Jt).length=0,(e=v(this,qr))==null||e.call(this,new Gi("Request aborted"));}}get isCancelled(){return v(this,ft)}};vt=new WeakMap,Et=new WeakMap,ft=new WeakMap,Jt=new WeakMap,lr=new WeakMap,Cn=new WeakMap,qr=new WeakMap;var la=t=>t!=null,Ji=t=>typeof t=="string",aa=t=>Ji(t)&&t!=="",$h=t=>typeof t=="object"&&typeof t.type=="string"&&typeof t.stream=="function"&&typeof t.arrayBuffer=="function"&&typeof t.constructor=="function"&&typeof t.constructor.name=="string"&&/^(Blob|File)$/.test(t.constructor.name)&&/^(Blob|File)$/.test(t[Symbol.toStringTag]),Jw=t=>t instanceof ua.default,Yw=t=>t>=200&&t<300,Kw=t=>{try{return btoa(t)}catch{return k.from(t).toString("base64")}},Xw=t=>{let e=[],r=(i,o)=>{e.push(`${encodeURIComponent(i)}=${encodeURIComponent(String(o))}`);},n=(i,o)=>{la(o)&&(Array.isArray(o)?o.forEach(s=>{n(i,s);}):typeof o=="object"?Object.entries(o).forEach(([s,f])=>{n(`${i}[${s}]`,f);}):r(i,o));};return Object.entries(t).forEach(([i,o])=>{n(i,o);}),e.length>0?`?${e.join("&")}`:""},Qw=(t,e)=>{let r=t.ENCODE_PATH||encodeURI,n=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(o,s)=>e.path?.hasOwnProperty(s)?r(String(e.path[s])):o),i=`${t.BASE}${n}`;return e.query?`${i}${Xw(e.query)}`:i},Zw=t=>{if(t.formData){let e=new ua.default,r=(n,i)=>{Ji(i)||$h(i)?e.append(n,i):e.append(n,JSON.stringify(i));};return Object.entries(t.formData).filter(([n,i])=>la(i)).forEach(([n,i])=>{Array.isArray(i)?i.forEach(o=>r(n,o)):r(n,i);}),e}},Vi=async(t,e)=>typeof e=="function"?e(t):e,e1=async(t,e,r)=>{let n=await Vi(e,t.TOKEN),i=await Vi(e,t.USERNAME),o=await Vi(e,t.PASSWORD),s=await Vi(e,t.HEADERS),f=typeof r?.getHeaders=="function"&&r?.getHeaders()||{},w=Object.entries({Accept:"application/json",...s,...e.headers,...f}).filter(([g,I])=>la(I)).reduce((g,[I,T])=>({...g,[I]:String(T)}),{});if(aa(n)&&(w.Authorization=`Bearer ${n}`),aa(i)&&aa(o)){let g=Kw(`${i}:${o}`);w.Authorization=`Basic ${g}`;}return e.body&&(e.mediaType?w["Content-Type"]=e.mediaType:$h(e.body)?w["Content-Type"]=e.body.type||"application/octet-stream":Ji(e.body)?w["Content-Type"]="text/plain":Jw(e.body)||(w["Content-Type"]="application/json")),w},t1=t=>{if(t.body)return t.body},r1=async(t,e,r,n,i,o,s)=>{let f=Rn.CancelToken.source(),w={url:r,headers:o,data:n??i,method:e.method,withCredentials:t.WITH_CREDENTIALS,cancelToken:f.token};s(()=>f.cancel("The user aborted a request."));try{return await Rn.request(w)}catch(g){let I=g;if(I.response)return I.response;throw g}},n1=(t,e)=>{if(e){let r=t.headers[e];if(Ji(r))return r}},i1=t=>{if(t.status!==204)return t.data},o1=(t,e)=>{let n={400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable",...t.errors}[e.status];if(n)throw new Vt(t,e,n);if(!e.ok)throw new Vt(t,e,"Generic Error")},zh=(t,e)=>new ct(async(r,n,i)=>{try{let o=Qw(t,e),s=Zw(e),f=t1(e),w=await e1(t,e,s);if(!i.isCancelled){let g=await r1(t,e,o,f,s,w,i),I=i1(g),T=n1(g,e.responseHeader),U={url:o,ok:Yw(g.status),status:g.status,statusText:g.statusText,body:T??I};o1(e,U),r(U.body);}}catch(o){n(o);}});var jr=class extends wn{constructor(e){super(e);}request(e){return zh(this.config,e)}};p();h();d();m();y();var _n=class{constructor(e){this.httpRequest=e;}completion(e){return this.httpRequest.request({method:"POST",url:"/v1/completions",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}event(e){return this.httpRequest.request({method:"POST",url:"/v1/events",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}health(){return this.httpRequest.request({method:"POST",url:"/v1/health"})}};var Mr=class{constructor(e,r=jr){this.request=new r({BASE:e?.BASE??"https://tabbyml.app.tabbyml.com/tabby",VERSION:e?.VERSION??"0.1.0",WITH_CREDENTIALS:e?.WITH_CREDENTIALS??!1,CREDENTIALS:e?.CREDENTIALS??"include",TOKEN:e?.TOKEN,USERNAME:e?.USERNAME,PASSWORD:e?.PASSWORD,HEADERS:e?.HEADERS,ENCODE_PATH:e?.ENCODE_PATH}),this.v1=new _n(this.request);}};p();h();d();m();y();p();h();d();m();y();function Yt(t){return t.match(/.*(?:$|\r?\n)/g).filter(Boolean)}function fa(t){return t.match(/\w+|\W+/g).filter(Boolean)}function Yi(t){return t.trim().length===0}function Ki(t,e){return new ct((r,n,i)=>{t.then(o=>{r(o);}).catch(o=>{n(o);}),i(()=>{e();});})}p();h();d();m();y();p();h();d();m();y();p();h();d();m();y();p();h();d();m();y();var Pn=class{constructor(e){this.httpRequest=e;}deviceToken(){return this.httpRequest.request({method:"POST",url:"/device-token"})}deviceTokenAccept(e){return this.httpRequest.request({method:"POST",url:"/device-token/accept",query:e})}};var Un=class{constructor(e,r=jr){this.request=new r({BASE:e?.BASE??"https://tabbyml.app.tabbyml.com/tabby",VERSION:e?.VERSION??"0.0.0",WITH_CREDENTIALS:e?.WITH_CREDENTIALS??!1,CREDENTIALS:e?.CREDENTIALS??"include",TOKEN:e?.TOKEN,USERNAME:e?.USERNAME,PASSWORD:e?.PASSWORD,HEADERS:e?.HEADERS,ENCODE_PATH:e?.ENCODE_PATH}),this.api=new Pn(this.request);}};p();h();d();m();y();p();h();d();m();y();p();h();d();m();y();p();h();d();m();y();var ha=rr(Xh()),At=(0, ha.default)(),Zi=[At];At.onChild=t=>{Zi.push(t);};var zr=class extends Xn{constructor(r){super();this.logger=At.child({component:"Auth"});this.dataStore=null;this.pollingTokenTimer=null;this.refreshTokenTimer=null;this.authApi=null;this.jwt=null;this.endpoint=r.endpoint,this.dataStore=r.dataStore||null;let n=this.endpoint.replace(/\/tabby\/?$/,"/api");this.authApi=new Un({BASE:n});}static async create(r){let n=new zr(r);return await n.load(),n}get token(){return this.jwt}async load(){if(this.dataStore)try{await this.dataStore.load();let r=this.dataStore.data.auth?.[this.endpoint]?.jwt;typeof r=="string"&&this.jwt!==r&&(this.logger.debug({storedJwt:r},"Load jwt from data store."),this.jwt=r,this.scheduleRefreshToken());}catch(r){this.logger.debug({error:r},"Error when loading auth");}}async save(){if(this.dataStore)try{if(this.jwt){if(this.dataStore.data.auth?.[this.endpoint]?.jwt===this.jwt)return;this.dataStore.data.auth={...this.dataStore.data.auth,[this.endpoint]:{jwt:this.jwt}};}else {if(typeof this.dataStore.data.auth?.[this.endpoint]>"u")return;delete this.dataStore.data.auth[this.endpoint];}await this.dataStore.save(),this.logger.debug("Save changes to data store.");}catch(r){this.logger.error({error:r},"Error when saving auth");}}async reset(){this.jwt&&(this.jwt=null,await this.save()),this.refreshTokenTimer&&(clearTimeout(this.refreshTokenTimer),this.refreshTokenTimer=null),this.pollingTokenTimer&&(clearInterval(this.pollingTokenTimer),this.pollingTokenTimer=null);}async requestToken(){try{await this.reset();let r=await this.authApi.api.deviceToken();this.logger.debug({deviceToken:r},"Request device token response");let n=new URL(zr.authPageUrl);return n.searchParams.append("code",r.data.code),this.schedulePollingToken(r.data.code),n.toString()}catch(r){throw this.logger.error({error:r},"Error when requesting token"),r}}async schedulePollingToken(r){this.pollingTokenTimer=setInterval(async()=>{try{let n=await this.authApi.api.deviceTokenAccept({code:r});this.logger.debug({response:n},"Poll jwt response"),this.jwt=n.data.jwt,await this.save(),this.scheduleRefreshToken(),super.emit("updated",this.jwt),clearInterval(this.pollingTokenTimer),this.pollingTokenTimer=null;}catch(n){n instanceof Vt&&[401,403,405].indexOf(n.status)!==-1?this.logger.debug({error:n},"Expected error when polling jwt"):this.logger.error({error:n},"Error when polling jwt");}},zr.pollTokenInterval);}scheduleRefreshToken(){if(this.refreshTokenTimer&&(clearTimeout(this.refreshTokenTimer),this.refreshTokenTimer=null),!this.jwt)return null;let r=Date.now()/1e3+60*60*24*7,n=Math.max(0,r*1e3-Date.now()-zr.refreshTokenInterval);this.refreshTokenTimer=setTimeout(async()=>{this.logger.debug({expireAt:r},"Refresh token");},n);}},pr=zr;pr.authPageUrl="https://app.tabbyml.com/account/device-token",pr.pollTokenInterval=5e3,pr.refreshTokenInterval=1e3*60*60*24*3;p();h();d();m();y();var Zh={server:{endpoint:"http://localhost:8080"},logs:{level:"silent"},anonymousUsageTracking:{disable:!1}};p();h();d();m();y();p();h();d();m();y();var Nn=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,td=new Set,da=typeof N=="object"&&N?N:{},rd=(t,e,r,n)=>{typeof da.emitWarning=="function"?da.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`);},no=globalThis.AbortController,ed=globalThis.AbortSignal;if(typeof no>"u"){ed=class{constructor(){xe(this,"onabort");xe(this,"_onabort",[]);xe(this,"reason");xe(this,"aborted",!1);}addEventListener(n,i){this._onabort.push(i);}},no=class{constructor(){xe(this,"signal",new ed);e();}abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let i of this.signal._onabort)i(n);this.signal.onabort?.(n);}}};let t=da.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,rd("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e));};}var v1=t=>!td.has(t),Kt=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),nd=t=>Kt(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Wr:null:null,Wr=class extends Array{constructor(e){super(e),this.fill(0);}},Gr,Hr=class{constructor(e,r){xe(this,"heap");xe(this,"length");if(!v(Hr,Gr))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0;}static create(e){let r=nd(e);if(!r)return [];re(Hr,Gr,!0);let n=new Hr(e,r);return re(Hr,Gr,!1),n}push(e){this.heap[this.length++]=e;}pop(){return this.heap[--this.length]}},eo=Hr;Gr=new WeakMap,se(eo,Gr,!1);var pt,et,St,ht,Vr,Ue,dt,Fe,be,ue,Ye,tt,Ge,Ne,yt,je,Ft,Lt,mt,xt,Zt,Xe,kn,ya,hr,Nt,qn,rt,oo,id,dr,Jr,jn,Bt,Xt,It,Qt,Mn,ma,Yr,to,Kr,ro,ge,Se,$n,ga,yr,Dn,wa=class{constructor(e){se(this,kn);se(this,oo);se(this,Bt);se(this,It);se(this,Mn);se(this,Yr);se(this,Kr);se(this,ge);se(this,$n);se(this,yr);se(this,pt,void 0);se(this,et,void 0);se(this,St,void 0);se(this,ht,void 0);se(this,Vr,void 0);xe(this,"ttl");xe(this,"ttlResolution");xe(this,"ttlAutopurge");xe(this,"updateAgeOnGet");xe(this,"updateAgeOnHas");xe(this,"allowStale");xe(this,"noDisposeOnSet");xe(this,"noUpdateTTL");xe(this,"maxEntrySize");xe(this,"sizeCalculation");xe(this,"noDeleteOnFetchRejection");xe(this,"noDeleteOnStaleGet");xe(this,"allowStaleOnFetchAbort");xe(this,"allowStaleOnFetchRejection");xe(this,"ignoreFetchAbort");se(this,Ue,void 0);se(this,dt,void 0);se(this,Fe,void 0);se(this,be,void 0);se(this,ue,void 0);se(this,Ye,void 0);se(this,tt,void 0);se(this,Ge,void 0);se(this,Ne,void 0);se(this,yt,void 0);se(this,je,void 0);se(this,Ft,void 0);se(this,Lt,void 0);se(this,mt,void 0);se(this,xt,void 0);se(this,Zt,void 0);se(this,Xe,void 0);se(this,hr,()=>{});se(this,Nt,()=>{});se(this,qn,()=>{});se(this,rt,()=>!1);se(this,dr,e=>{});se(this,Jr,(e,r,n)=>{});se(this,jn,(e,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:o,updateAgeOnGet:s,updateAgeOnHas:f,allowStale:w,dispose:g,disposeAfter:I,noDisposeOnSet:T,noUpdateTTL:U,maxSize:C=0,maxEntrySize:S=0,sizeCalculation:R,fetchMethod:W,noDeleteOnFetchRejection:$,noDeleteOnStaleGet:G,allowStaleOnFetchRejection:X,allowStaleOnFetchAbort:O,ignoreFetchAbort:F}=e;if(r!==0&&!Kt(r))throw new TypeError("max option must be a nonnegative integer");let A=r?nd(r):Array;if(!A)throw new Error("invalid max value: "+r);if(re(this,pt,r),re(this,et,C),this.maxEntrySize=S||v(this,et),this.sizeCalculation=R,this.sizeCalculation){if(!v(this,et)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(W!==void 0&&typeof W!="function")throw new TypeError("fetchMethod must be a function if specified");if(re(this,Vr,W),re(this,Zt,!!W),re(this,Fe,new Map),re(this,be,new Array(r).fill(void 0)),re(this,ue,new Array(r).fill(void 0)),re(this,Ye,new A(r)),re(this,tt,new A(r)),re(this,Ge,0),re(this,Ne,0),re(this,yt,eo.create(r)),re(this,Ue,0),re(this,dt,0),typeof g=="function"&&re(this,St,g),typeof I=="function"?(re(this,ht,I),re(this,je,[])):(re(this,ht,void 0),re(this,je,void 0)),re(this,xt,!!v(this,St)),re(this,Xe,!!v(this,ht)),this.noDisposeOnSet=!!T,this.noUpdateTTL=!!U,this.noDeleteOnFetchRejection=!!$,this.allowStaleOnFetchRejection=!!X,this.allowStaleOnFetchAbort=!!O,this.ignoreFetchAbort=!!F,this.maxEntrySize!==0){if(v(this,et)!==0&&!Kt(v(this,et)))throw new TypeError("maxSize must be a positive integer if specified");if(!Kt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");ne(this,oo,id).call(this);}if(this.allowStale=!!w,this.noDeleteOnStaleGet=!!G,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!f,this.ttlResolution=Kt(i)||i===0?i:1,this.ttlAutopurge=!!o,this.ttl=n||0,this.ttl){if(!Kt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");ne(this,kn,ya).call(this);}if(v(this,pt)===0&&this.ttl===0&&v(this,et)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!v(this,pt)&&!v(this,et)){let B="LRU_CACHE_UNBOUNDED";v1(B)&&(td.add(B),rd("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",B,wa));}}static unsafeExposeInternals(e){return {starts:v(e,Lt),ttls:v(e,mt),sizes:v(e,Ft),keyMap:v(e,Fe),keyList:v(e,be),valList:v(e,ue),next:v(e,Ye),prev:v(e,tt),get head(){return v(e,Ge)},get tail(){return v(e,Ne)},free:v(e,yt),isBackgroundFetch:r=>{var n;return ne(n=e,ge,Se).call(n,r)},backgroundFetch:(r,n,i,o)=>{var s;return ne(s=e,Kr,ro).call(s,r,n,i,o)},moveToTail:r=>{var n;return ne(n=e,yr,Dn).call(n,r)},indexes:r=>{var n;return ne(n=e,Bt,Xt).call(n,r)},rindexes:r=>{var n;return ne(n=e,It,Qt).call(n,r)},isStale:r=>{var n;return v(n=e,rt).call(n,r)}}}get max(){return v(this,pt)}get maxSize(){return v(this,et)}get calculatedSize(){return v(this,dt)}get size(){return v(this,Ue)}get fetchMethod(){return v(this,Vr)}get dispose(){return v(this,St)}get disposeAfter(){return v(this,ht)}getRemainingTTL(e){return v(this,Fe).has(e)?1/0:0}*entries(){for(let e of ne(this,Bt,Xt).call(this))v(this,ue)[e]!==void 0&&v(this,be)[e]!==void 0&&!ne(this,ge,Se).call(this,v(this,ue)[e])&&(yield [v(this,be)[e],v(this,ue)[e]]);}*rentries(){for(let e of ne(this,It,Qt).call(this))v(this,ue)[e]!==void 0&&v(this,be)[e]!==void 0&&!ne(this,ge,Se).call(this,v(this,ue)[e])&&(yield [v(this,be)[e],v(this,ue)[e]]);}*keys(){for(let e of ne(this,Bt,Xt).call(this)){let r=v(this,be)[e];r!==void 0&&!ne(this,ge,Se).call(this,v(this,ue)[e])&&(yield r);}}*rkeys(){for(let e of ne(this,It,Qt).call(this)){let r=v(this,be)[e];r!==void 0&&!ne(this,ge,Se).call(this,v(this,ue)[e])&&(yield r);}}*values(){for(let e of ne(this,Bt,Xt).call(this))v(this,ue)[e]!==void 0&&!ne(this,ge,Se).call(this,v(this,ue)[e])&&(yield v(this,ue)[e]);}*rvalues(){for(let e of ne(this,It,Qt).call(this))v(this,ue)[e]!==void 0&&!ne(this,ge,Se).call(this,v(this,ue)[e])&&(yield v(this,ue)[e]);}[Symbol.iterator](){return this.entries()}find(e,r={}){for(let n of ne(this,Bt,Xt).call(this)){let i=v(this,ue)[n],o=ne(this,ge,Se).call(this,i)?i.__staleWhileFetching:i;if(o!==void 0&&e(o,v(this,be)[n],this))return this.get(v(this,be)[n],r)}}forEach(e,r=this){for(let n of ne(this,Bt,Xt).call(this)){let i=v(this,ue)[n],o=ne(this,ge,Se).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&e.call(r,o,v(this,be)[n],this);}}rforEach(e,r=this){for(let n of ne(this,It,Qt).call(this)){let i=v(this,ue)[n],o=ne(this,ge,Se).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&e.call(r,o,v(this,be)[n],this);}}purgeStale(){let e=!1;for(let r of ne(this,It,Qt).call(this,{allowStale:!0}))v(this,rt).call(this,r)&&(this.delete(v(this,be)[r]),e=!0);return e}dump(){let e=[];for(let r of ne(this,Bt,Xt).call(this,{allowStale:!0})){let n=v(this,be)[r],i=v(this,ue)[r],o=ne(this,ge,Se).call(this,i)?i.__staleWhileFetching:i;if(o===void 0||n===void 0)continue;let s={value:o};if(v(this,mt)&&v(this,Lt)){s.ttl=v(this,mt)[r];let f=Nn.now()-v(this,Lt)[r];s.start=Math.floor(Date.now()-f);}v(this,Ft)&&(s.size=v(this,Ft)[r]),e.unshift([n,s]);}return e}load(e){this.clear();for(let[r,n]of e){if(n.start){let i=Date.now()-n.start;n.start=Nn.now()-i;}this.set(r,n.value,n);}}set(e,r,n={}){var U,C;if(r===void 0)return this.delete(e),this;let{ttl:i=this.ttl,start:o,noDisposeOnSet:s=this.noDisposeOnSet,sizeCalculation:f=this.sizeCalculation,status:w}=n,{noUpdateTTL:g=this.noUpdateTTL}=n,I=v(this,jn).call(this,e,r,n.size||0,f);if(this.maxEntrySize&&I>this.maxEntrySize)return w&&(w.set="miss",w.maxEntrySizeExceeded=!0),this.delete(e),this;let T=v(this,Ue)===0?void 0:v(this,Fe).get(e);if(T===void 0)T=v(this,Ue)===0?v(this,Ne):v(this,yt).length!==0?v(this,yt).pop():v(this,Ue)===v(this,pt)?ne(this,Yr,to).call(this,!1):v(this,Ue),v(this,be)[T]=e,v(this,ue)[T]=r,v(this,Fe).set(e,T),v(this,Ye)[v(this,Ne)]=T,v(this,tt)[T]=v(this,Ne),re(this,Ne,T),Wn(this,Ue)._++,v(this,Jr).call(this,T,I,w),w&&(w.set="add"),g=!1;else {ne(this,yr,Dn).call(this,T);let S=v(this,ue)[T];if(r!==S){if(v(this,Zt)&&ne(this,ge,Se).call(this,S)?S.__abortController.abort(new Error("replaced")):s||(v(this,xt)&&((U=v(this,St))==null||U.call(this,S,e,"set")),v(this,Xe)&&v(this,je)?.push([S,e,"set"])),v(this,dr).call(this,T),v(this,Jr).call(this,T,I,w),v(this,ue)[T]=r,w){w.set="replace";let R=S&&ne(this,ge,Se).call(this,S)?S.__staleWhileFetching:S;R!==void 0&&(w.oldValue=R);}}else w&&(w.set="update");}if(i!==0&&!v(this,mt)&&ne(this,kn,ya).call(this),v(this,mt)&&(g||v(this,qn).call(this,T,i,o),w&&v(this,Nt).call(this,w,T)),!s&&v(this,Xe)&&v(this,je)){let S=v(this,je),R;for(;R=S?.shift();)(C=v(this,ht))==null||C.call(this,...R);}return this}pop(){var e;try{for(;v(this,Ue);){let r=v(this,ue)[v(this,Ge)];if(ne(this,Yr,to).call(this,!0),ne(this,ge,Se).call(this,r)){if(r.__staleWhileFetching)return r.__staleWhileFetching}else if(r!==void 0)return r}}finally{if(v(this,Xe)&&v(this,je)){let r=v(this,je),n;for(;n=r?.shift();)(e=v(this,ht))==null||e.call(this,...n);}}}has(e,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,o=v(this,Fe).get(e);if(o!==void 0){let s=v(this,ue)[o];if(ne(this,ge,Se).call(this,s)&&s.__staleWhileFetching===void 0)return !1;if(v(this,rt).call(this,o))i&&(i.has="stale",v(this,Nt).call(this,i,o));else return n&&v(this,hr).call(this,o),i&&(i.has="hit",v(this,Nt).call(this,i,o)),!0}else i&&(i.has="miss");return !1}peek(e,r={}){let{allowStale:n=this.allowStale}=r,i=v(this,Fe).get(e);if(i!==void 0&&(n||!v(this,rt).call(this,i))){let o=v(this,ue)[i];return ne(this,ge,Se).call(this,o)?o.__staleWhileFetching:o}}async fetch(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:f=this.noDisposeOnSet,size:w=0,sizeCalculation:g=this.sizeCalculation,noUpdateTTL:I=this.noUpdateTTL,noDeleteOnFetchRejection:T=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:U=this.allowStaleOnFetchRejection,ignoreFetchAbort:C=this.ignoreFetchAbort,allowStaleOnFetchAbort:S=this.allowStaleOnFetchAbort,context:R,forceRefresh:W=!1,status:$,signal:G}=r;if(!v(this,Zt))return $&&($.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:o,status:$});let X={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:o,ttl:s,noDisposeOnSet:f,size:w,sizeCalculation:g,noUpdateTTL:I,noDeleteOnFetchRejection:T,allowStaleOnFetchRejection:U,allowStaleOnFetchAbort:S,ignoreFetchAbort:C,status:$,signal:G},O=v(this,Fe).get(e);if(O===void 0){$&&($.fetch="miss");let F=ne(this,Kr,ro).call(this,e,O,X,R);return F.__returned=F}else {let F=v(this,ue)[O];if(ne(this,ge,Se).call(this,F)){let z=n&&F.__staleWhileFetching!==void 0;return $&&($.fetch="inflight",z&&($.returnedStale=!0)),z?F.__staleWhileFetching:F.__returned=F}let A=v(this,rt).call(this,O);if(!W&&!A)return $&&($.fetch="hit"),ne(this,yr,Dn).call(this,O),i&&v(this,hr).call(this,O),$&&v(this,Nt).call(this,$,O),F;let B=ne(this,Kr,ro).call(this,e,O,X,R),L=B.__staleWhileFetching!==void 0&&n;return $&&($.fetch=A?"stale":"refresh",L&&A&&($.returnedStale=!0)),L?B.__staleWhileFetching:B.__returned=B}}get(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:s}=r,f=v(this,Fe).get(e);if(f!==void 0){let w=v(this,ue)[f],g=ne(this,ge,Se).call(this,w);return s&&v(this,Nt).call(this,s,f),v(this,rt).call(this,f)?(s&&(s.get="stale"),g?(s&&n&&w.__staleWhileFetching!==void 0&&(s.returnedStale=!0),n?w.__staleWhileFetching:void 0):(o||this.delete(e),s&&n&&(s.returnedStale=!0),n?w:void 0)):(s&&(s.get="hit"),g?w.__staleWhileFetching:(ne(this,yr,Dn).call(this,f),i&&v(this,hr).call(this,f),w))}else s&&(s.get="miss");}delete(e){var n,i;let r=!1;if(v(this,Ue)!==0){let o=v(this,Fe).get(e);if(o!==void 0)if(r=!0,v(this,Ue)===1)this.clear();else {v(this,dr).call(this,o);let s=v(this,ue)[o];ne(this,ge,Se).call(this,s)?s.__abortController.abort(new Error("deleted")):(v(this,xt)||v(this,Xe))&&(v(this,xt)&&((n=v(this,St))==null||n.call(this,s,e,"delete")),v(this,Xe)&&v(this,je)?.push([s,e,"delete"])),v(this,Fe).delete(e),v(this,be)[o]=void 0,v(this,ue)[o]=void 0,o===v(this,Ne)?re(this,Ne,v(this,tt)[o]):o===v(this,Ge)?re(this,Ge,v(this,Ye)[o]):(v(this,Ye)[v(this,tt)[o]]=v(this,Ye)[o],v(this,tt)[v(this,Ye)[o]]=v(this,tt)[o]),Wn(this,Ue)._--,v(this,yt).push(o);}}if(v(this,Xe)&&v(this,je)?.length){let o=v(this,je),s;for(;s=o?.shift();)(i=v(this,ht))==null||i.call(this,...s);}return r}clear(){var e,r;for(let n of ne(this,It,Qt).call(this,{allowStale:!0})){let i=v(this,ue)[n];if(ne(this,ge,Se).call(this,i))i.__abortController.abort(new Error("deleted"));else {let o=v(this,be)[n];v(this,xt)&&((e=v(this,St))==null||e.call(this,i,o,"delete")),v(this,Xe)&&v(this,je)?.push([i,o,"delete"]);}}if(v(this,Fe).clear(),v(this,ue).fill(void 0),v(this,be).fill(void 0),v(this,mt)&&v(this,Lt)&&(v(this,mt).fill(0),v(this,Lt).fill(0)),v(this,Ft)&&v(this,Ft).fill(0),re(this,Ge,0),re(this,Ne,0),v(this,yt).length=0,re(this,dt,0),re(this,Ue,0),v(this,Xe)&&v(this,je)){let n=v(this,je),i;for(;i=n?.shift();)(r=v(this,ht))==null||r.call(this,...i);}}},io=wa;pt=new WeakMap,et=new WeakMap,St=new WeakMap,ht=new WeakMap,Vr=new WeakMap,Ue=new WeakMap,dt=new WeakMap,Fe=new WeakMap,be=new WeakMap,ue=new WeakMap,Ye=new WeakMap,tt=new WeakMap,Ge=new WeakMap,Ne=new WeakMap,yt=new WeakMap,je=new WeakMap,Ft=new WeakMap,Lt=new WeakMap,mt=new WeakMap,xt=new WeakMap,Zt=new WeakMap,Xe=new WeakMap,kn=new WeakSet,ya=function(){let e=new Wr(v(this,pt)),r=new Wr(v(this,pt));re(this,mt,e),re(this,Lt,r),re(this,qn,(o,s,f=Nn.now())=>{if(r[o]=s!==0?f:0,e[o]=s,s!==0&&this.ttlAutopurge){let w=setTimeout(()=>{v(this,rt).call(this,o)&&this.delete(v(this,be)[o]);},s+1);w.unref&&w.unref();}}),re(this,hr,o=>{r[o]=e[o]!==0?Nn.now():0;}),re(this,Nt,(o,s)=>{if(e[s]){let f=e[s],w=r[s];o.ttl=f,o.start=w,o.now=n||i();let g=o.now-w;o.remainingTTL=f-g;}});let n=0,i=()=>{let o=Nn.now();if(this.ttlResolution>0){n=o;let s=setTimeout(()=>n=0,this.ttlResolution);s.unref&&s.unref();}return o};this.getRemainingTTL=o=>{let s=v(this,Fe).get(o);if(s===void 0)return 0;let f=e[s],w=r[s];if(f===0||w===0)return 1/0;let g=(n||i())-w;return f-g},re(this,rt,o=>e[o]!==0&&r[o]!==0&&(n||i())-r[o]>e[o]);},hr=new WeakMap,Nt=new WeakMap,qn=new WeakMap,rt=new WeakMap,oo=new WeakSet,id=function(){let e=new Wr(v(this,pt));re(this,dt,0),re(this,Ft,e),re(this,dr,r=>{re(this,dt,v(this,dt)-e[r]),e[r]=0;}),re(this,jn,(r,n,i,o)=>{if(ne(this,ge,Se).call(this,n))return 0;if(!Kt(i))if(o){if(typeof o!="function")throw new TypeError("sizeCalculation must be a function");if(i=o(n,r),!Kt(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i}),re(this,Jr,(r,n,i)=>{if(e[r]=n,v(this,et)){let o=v(this,et)-e[r];for(;v(this,dt)>o;)ne(this,Yr,to).call(this,!0);}re(this,dt,v(this,dt)+e[r]),i&&(i.entrySize=n,i.totalCalculatedSize=v(this,dt));});},dr=new WeakMap,Jr=new WeakMap,jn=new WeakMap,Bt=new WeakSet,Xt=function*({allowStale:e=this.allowStale}={}){if(v(this,Ue))for(let r=v(this,Ne);!(!ne(this,Mn,ma).call(this,r)||((e||!v(this,rt).call(this,r))&&(yield r),r===v(this,Ge)));)r=v(this,tt)[r];},It=new WeakSet,Qt=function*({allowStale:e=this.allowStale}={}){if(v(this,Ue))for(let r=v(this,Ge);!(!ne(this,Mn,ma).call(this,r)||((e||!v(this,rt).call(this,r))&&(yield r),r===v(this,Ne)));)r=v(this,Ye)[r];},Mn=new WeakSet,ma=function(e){return e!==void 0&&v(this,Fe).get(v(this,be)[e])===e},Yr=new WeakSet,to=function(e){var o;let r=v(this,Ge),n=v(this,be)[r],i=v(this,ue)[r];return v(this,Zt)&&ne(this,ge,Se).call(this,i)?i.__abortController.abort(new Error("evicted")):(v(this,xt)||v(this,Xe))&&(v(this,xt)&&((o=v(this,St))==null||o.call(this,i,n,"evict")),v(this,Xe)&&v(this,je)?.push([i,n,"evict"])),v(this,dr).call(this,r),e&&(v(this,be)[r]=void 0,v(this,ue)[r]=void 0,v(this,yt).push(r)),v(this,Ue)===1?(re(this,Ge,re(this,Ne,0)),v(this,yt).length=0):re(this,Ge,v(this,Ye)[r]),v(this,Fe).delete(n),Wn(this,Ue)._--,r},Kr=new WeakSet,ro=function(e,r,n,i){let o=r===void 0?void 0:v(this,ue)[r];if(ne(this,ge,Se).call(this,o))return o;let s=new no,{signal:f}=n;f?.addEventListener("abort",()=>s.abort(f.reason),{signal:s.signal});let w={signal:s.signal,options:n,context:i},g=(R,W=!1)=>{let{aborted:$}=s.signal,G=n.ignoreFetchAbort&&R!==void 0;if(n.status&&($&&!W?(n.status.fetchAborted=!0,n.status.fetchError=s.signal.reason,G&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),$&&!G&&!W)return T(s.signal.reason);let X=C;return v(this,ue)[r]===C&&(R===void 0?X.__staleWhileFetching?v(this,ue)[r]=X.__staleWhileFetching:this.delete(e):(n.status&&(n.status.fetchUpdated=!0),this.set(e,R,w.options))),R},I=R=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=R),T(R)),T=R=>{let{aborted:W}=s.signal,$=W&&n.allowStaleOnFetchAbort,G=$||n.allowStaleOnFetchRejection,X=G||n.noDeleteOnFetchRejection,O=C;if(v(this,ue)[r]===C&&(!X||O.__staleWhileFetching===void 0?this.delete(e):$||(v(this,ue)[r]=O.__staleWhileFetching)),G)return n.status&&O.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),O.__staleWhileFetching;if(O.__returned===O)throw R},U=(R,W)=>{var G;let $=(G=v(this,Vr))==null?void 0:G.call(this,e,o,w);$&&$ instanceof Promise&&$.then(X=>R(X),W),s.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(R(),n.allowStaleOnFetchAbort&&(R=X=>g(X,!0)));});};n.status&&(n.status.fetchDispatched=!0);let C=new Promise(U).then(g,I),S=Object.assign(C,{__abortController:s,__staleWhileFetching:o,__returned:void 0});return r===void 0?(this.set(e,S,{...w.options,status:void 0}),r=v(this,Fe).get(e)):v(this,ue)[r]=S,S},ge=new WeakSet,Se=function(e){if(!v(this,Zt))return !1;let r=e;return !!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof no},$n=new WeakSet,ga=function(e,r){v(this,tt)[r]=e,v(this,Ye)[e]=r;},yr=new WeakSet,Dn=function(e){e!==v(this,Ne)&&(e===v(this,Ge)?re(this,Ge,v(this,Ye)[e]):ne(this,$n,ga).call(this,v(this,tt)[e],v(this,Ye)[e]),ne(this,$n,ga).call(this,v(this,Ne),e),re(this,Ne,e));};var Fd=rr(ad()),Ld=rr(Ud());var lo=class{constructor(){this.logger=At.child({component:"CompletionCache"});this.options={maxSize:1*1024*1024,partiallyAcceptedCacheGeneration:{enabled:!0,perCharacter:{lines:1,words:10,max:30},perWord:{lines:1,max:20},perLine:{max:3}}};this.cache=new io({maxSize:this.options.maxSize,sizeCalculation:Ld.default});}has(e){return this.cache.has(this.hash(e))}set(e,r){for(let n of this.createCacheEntries(e,r))this.logger.debug({entry:n},"Setting cache entry"),this.cache.set(this.hash(n.key),n.value);this.logger.debug({size:this.cache.calculatedSize},"Cache size");}get(e){return this.cache.get(this.hash(e))}hash(e){return (0, Fd.default)(e)}createCacheEntries(e,r){let n=[{key:e,value:r}];if(this.options.partiallyAcceptedCacheGeneration.enabled){let i=r.choices.map(o=>this.calculatePartiallyAcceptedPositions(o.text).map(s=>({prefix:o.text.slice(0,s),suffix:o.text.slice(s),choiceIndex:o.index}))).flat().reduce((o,s)=>(o[s.prefix]=o[s.prefix]||[],o[s.prefix].push({suffix:s.suffix,choiceIndex:s.choiceIndex}),o),{});for(let o in i){let s={...e,text:e.text.slice(0,e.position)+o+e.text.slice(e.position),position:e.position+o.length},f={...r,choices:i[o].map(w=>({index:w.choiceIndex,text:w.suffix}))};n.push({key:s,value:f});}}return n}calculatePartiallyAcceptedPositions(e){let r=[],n=this.options.partiallyAcceptedCacheGeneration,i=Yt(e),o=0,s=0;for(;oT.indexOf(g)===I).sort((g,I)=>g-I)}};p();h();d();m();y();var Dd=rr(zs());var nb=At.child({component:"Postprocess"}),ib=t=>e=>{let r=t.text.slice(t.position),n=Yt(r),i=Yt(e);for(let o=Math.max(0,i.length-n.length);oYi(t)?null:t,Nd=t=>async e=>(e.choices=(await Promise.all(e.choices.map(async r=>(r.text=await t(r.text),r)))).filter(Boolean),e);async function kd(t,e){return new Promise(r=>r(e)).then(Nd(ib(t))).then(Nd(ob))}var co=class extends Xn{constructor(){super();this.logger=At.child({component:"TabbyAgent"});this.config=Zh;this.status="notInitialized";this.dataStore=null;this.completionCache=new lo;this.tryingConnectTimer=null;this.tryingConnectTimer=setInterval(async()=>{this.status==="disconnected"&&(this.logger.debug("Trying to connect..."),await this.healthCheck());},co.tryConnectInterval);}static async create(r){let n=new co;return n.dataStore=r?.dataStore,await n.applyConfig(),n}async applyConfig(){Zi.forEach(r=>r.level=this.config.logs.level),this.config.server.endpoint!==this.auth?.endpoint&&(this.auth=await pr.create({endpoint:this.config.server.endpoint,dataStore:this.dataStore}),this.auth.on("updated",this.onAuthUpdated.bind(this))),this.api=new Mr({BASE:this.config.server.endpoint,TOKEN:this.auth.token});}async onAuthUpdated(){this.api=new Mr({BASE:this.config.server.endpoint,TOKEN:this.auth.token}),await this.healthCheck();}changeStatus(r){if(this.status!=r){this.status=r;let n={event:"statusChanged",status:r};this.logger.debug({event:n},"Status changed"),super.emit("statusChanged",n);}}callApi(r,n){this.logger.debug({api:r.name,request:n},"API request");let i=r.call(this.api.v1,n);return Ki(i.then(o=>(this.logger.debug({api:r.name,response:o},"API response"),this.changeStatus("ready"),o)).catch(o=>{throw o.isCancelled?this.logger.debug({api:r.name,error:o},"API request canceled"):o.name==="ApiError"&&[401,403,405].indexOf(o.status)!==-1?(this.logger.debug({api:r.name,error:o},"API unauthorized"),this.changeStatus("unauthorized")):o.name==="ApiError"?(this.logger.error({api:r.name,error:o},"API error"),this.changeStatus("disconnected")):(this.logger.error({api:r.name,error:o},"API request failed with unknown error"),this.changeStatus("disconnected")),o}),()=>{i.cancel();})}async healthCheck(){return this.callApi(this.api.v1.health,{}).catch(()=>{})}createSegments(r){let i=r.text.slice(0,r.position),o=Yt(i),s=r.text.slice(r.position),f=Yt(s);return {prefix:o.slice(Math.max(o.length-20,0)).join(""),suffix:f.slice(0,20).join("")}}async initialize(r){return r.client&&Zi.forEach(n=>n.setBindings&&n.setBindings({client:r.client})),r.config&&await this.updateConfig(r.config),this.logger.debug({options:r},"Initialized"),this.status!=="notInitialized"}async updateConfig(r){let n=(0, jd.default)(this.config,r);if(!(0, qd.default)(this.config,n)){this.config=n,await this.applyConfig();let i={event:"configUpdated",config:this.config};this.logger.debug({event:i},"Config updated"),super.emit("configUpdated",i);}return await this.healthCheck(),this.status!=="notInitialized"}getConfig(){return this.config}getStatus(){return this.status}startAuth(){return Ki(this.healthCheck().then(()=>this.status==="unauthorized"?this.auth.requestToken():null),()=>{this.status==="unauthorized"&&this.auth.reset();})}getCompletions(r){if(this.status==="notInitialized")throw new Error("Agent is not initialized");if(this.completionCache.has(r))return this.logger.debug({request:r},"Completion cache hit"),new ct(o=>{o(this.completionCache.get(r));});let n=this.createSegments(r);if(Yi(n.prefix))return this.logger.debug("Segment prefix is blank, returning empty completion response"),new ct(o=>{o({id:"agent-"+bo(),choices:[]});});let i=this.callApi(this.api.v1.completion,{language:r.language,segments:n});return Ki(i.then(o=>kd(r,o)).then(o=>(this.completionCache.set(r,o),o)),()=>{i.cancel();})}postEvent(r){if(this.status==="notInitialized")throw new Error("Agent is not initialized");return this.callApi(this.api.v1.event,r)}},fo=co;fo.tryConnectInterval=1e3*30;p();h();d();m();y();var sb=["statusChanged","configUpdated"];/*! Bundled license information: @jspm/core/nodelibs/browser/buffer.js: (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh *) ieee754/index.js: (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh *) buffer/index.js: (*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT *) */ exports.CancelablePromise = ct; exports.TabbyAgent = fo; exports.agentEventNames = sb; return exports; })({}); //# sourceMappingURL=out.js.map //# sourceMappingURL=index.global.js.map