@fern-api/ruby-dynamic-snippets 1.0.0-rc77 → 1.0.0-rc78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Lt=Object.defineProperty;var ei=(l,t,e)=>t in l?Lt(l,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):l[t]=e;var Te=(l,t)=>()=>(l&&(t=l(l=0)),t);var Ct=(l,t)=>{for(var e in t)Lt(l,e,{get:t[e],enumerable:!0})};var y=(l,t,e)=>ei(l,typeof t!="symbol"?t+"":t,e);var c=Te(()=>{"use strict"});var b={};Ct(b,{_debugEnd:()=>vr,_debugProcess:()=>br,_events:()=>$r,_eventsCount:()=>Dr,_exiting:()=>tr,_fatalExceptions:()=>yr,_getActiveHandles:()=>or,_getActiveRequests:()=>ir,_kill:()=>ar,_linkedBinding:()=>Zt,_maxListeners:()=>Mr,_preload_modules:()=>Fr,_rawDebug:()=>Xt,_startProfilerIdleNotifier:()=>Ar,_stopProfilerIdleNotifier:()=>Tr,_tickCallback:()=>wr,abort:()=>Rr,addListener:()=>Or,allowedNodeEnvironmentFlags:()=>dr,arch:()=>$t,argv:()=>_t,argv0:()=>Cr,assert:()=>mr,binding:()=>Gt,browser:()=>Jt,chdir:()=>Ht,config:()=>rr,cpuUsage:()=>ze,cwd:()=>zt,debugPort:()=>Lr,default:()=>Hr,dlopen:()=>nr,domain:()=>er,emit:()=>Wr,emitWarning:()=>Wt,env:()=>Ot,execArgv:()=>jt,execPath:()=>Nr,exit:()=>fr,features:()=>hr,hasUncaughtExceptionCaptureCallback:()=>xr,hrtime:()=>Ke,kill:()=>pr,listeners:()=>zr,memoryUsage:()=>lr,moduleLoadList:()=>Qt,nextTick:()=>Pt,off:()=>jr,on:()=>te,once:()=>_r,openStdin:()=>cr,pid:()=>Br,platform:()=>Dt,ppid:()=>Sr,prependListener:()=>Gr,prependOnceListener:()=>Kr,reallyExit:()=>sr,release:()=>Yt,removeAllListeners:()=>qr,removeListener:()=>Vr,resourceUsage:()=>ur,setSourceMapsEnabled:()=>Pr,setUncaughtExceptionCaptureCallback:()=>gr,stderr:()=>Ir,stdin:()=>kr,stdout:()=>Er,title:()=>Mt,umask:()=>Kt,uptime:()=>Ur,version:()=>Vt,versions:()=>qt});function ct(l){throw new Error("Node.js process "+l+" is not supported by JSPM core outside of Node.js")}function ti(){!Ee||!fe||(Ee=!1,fe.length?ee=fe.concat(ee):Ge=-1,ee.length&&Ft())}function Ft(){if(!Ee){var l=setTimeout(ti,0);Ee=!0;for(var t=ee.length;t;){for(fe=ee,ee=[];++Ge<t;)fe&&fe[Ge].run();Ge=-1,t=ee.length}fe=null,Ee=!1,clearTimeout(l)}}function Pt(l){var t=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)t[e-1]=arguments[e];ee.push(new Ut(l,t)),ee.length===1&&!Ee&&setTimeout(Ft,0)}function Ut(l,t){this.fun=l,this.array=t}function V(){}function Zt(l){ct("_linkedBinding")}function nr(l){ct("dlopen")}function ir(){return[]}function or(){return[]}function mr(l,t){if(!l)throw new Error(t||"assertion error")}function xr(){return!1}function Ur(){return pe.now()/1e3}function Ke(l){var t=Math.floor((Date.now()-pe.now())*.001),e=pe.now()*.001,i=Math.floor(e)+t,s=Math.floor(e%1*1e9);return l&&(i=i-l[0],s=s-l[1],s<0&&(i--,s+=ft)),[i,s]}function te(){return Hr}function zr(l){return[]}var ee,Ee,fe,Ge,Mt,$t,Dt,Ot,_t,jt,Vt,qt,Wt,Gt,Kt,zt,Ht,Yt,Jt,Xt,Qt,er,tr,rr,sr,ar,ze,ur,lr,pr,fr,cr,dr,hr,yr,gr,wr,br,vr,Ar,Tr,Er,Ir,kr,Rr,Br,Sr,Nr,Lr,Cr,Fr,Pr,pe,pt,ft,Mr,$r,Dr,Or,_r,jr,Vr,qr,Wr,Gr,Kr,Hr,Yr=Te(()=>{"use strict";c();m();d();ee=[],Ee=!1,Ge=-1;Ut.prototype.run=function(){this.fun.apply(null,this.array)};Mt="browser",$t="x64",Dt="browser",Ot={PATH:"/usr/bin",LANG:typeof navigator<"u"?navigator.language+".UTF-8":void 0,PWD:"/",HOME:"/home",TMP:"/tmp"},_t=["/usr/bin/node"],jt=[],Vt="v16.8.0",qt={},Wt=function(l,t){console.warn((t?t+": ":"")+l)},Gt=function(l){ct("binding")},Kt=function(l){return 0},zt=function(){return"/"},Ht=function(l){},Yt={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};Jt=!0,Xt=V,Qt=[];er={},tr=!1,rr={};sr=V,ar=V,ze=function(){return{}},ur=ze,lr=ze,pr=V,fr=V,cr=V,dr={};hr={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},yr=V,gr=V;wr=V,br=V,vr=V,Ar=V,Tr=V,Er=void 0,Ir=void 0,kr=void 0,Rr=V,Br=2,Sr=1,Nr="/bin/usr/node",Lr=9229,Cr="node",Fr=[],Pr=V,pe={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};pe.now===void 0&&(pt=Date.now(),pe.timing&&pe.timing.navigationStart&&(pt=pe.timing.navigationStart),pe.now=()=>Date.now()-pt);ft=1e9;Ke.bigint=function(l){var t=Ke(l);return typeof BigInt>"u"?t[0]*ft+t[1]:BigInt(t[0]*ft)+BigInt(t[1])};Mr=10,$r={},Dr=0;Or=te,_r=te,jr=te,Vr=te,qr=te,Wr=V,Gr=te,Kr=te;Hr={version:Vt,versions:qt,arch:$t,platform:Dt,browser:Jt,release:Yt,_rawDebug:Xt,moduleLoadList:Qt,binding:Gt,_linkedBinding:Zt,_events:$r,_eventsCount:Dr,_maxListeners:Mr,on:te,addListener:Or,once:_r,off:jr,removeListener:Vr,removeAllListeners:qr,emit:Wr,prependListener:Gr,prependOnceListener:Kr,listeners:zr,domain:er,_exiting:tr,config:rr,dlopen:nr,uptime:Ur,_getActiveRequests:ir,_getActiveHandles:or,reallyExit:sr,_kill:ar,cpuUsage:ze,resourceUsage:ur,memoryUsage:lr,kill:pr,exit:fr,openStdin:cr,allowedNodeEnvironmentFlags:dr,assert:mr,features:hr,_fatalExceptions:yr,setUncaughtExceptionCaptureCallback:gr,hasUncaughtExceptionCaptureCallback:xr,emitWarning:Wt,nextTick:Pt,_tickCallback:wr,_debugProcess:br,_debugEnd:vr,_startProfilerIdleNotifier:Ar,_stopProfilerIdleNotifier:Tr,stdout:Er,stdin:kr,stderr:Ir,abort:Rr,umask:Kt,chdir:Ht,cwd:zt,env:Ot,title:Mt,argv:_t,execArgv:jt,pid:Br,ppid:Sr,execPath:Nr,debugPort:Lr,hrtime:Ke,argv0:Cr,_preload_modules:Fr,setSourceMapsEnabled:Pr}});var d=Te(()=>{"use strict";Yr()});function ri(){if(Jr)return Re;Jr=!0,Re.byteLength=T,Re.toByteArray=k,Re.fromByteArray=D;for(var l=[],t=[],e=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,f=i.length;s<f;++s)l[s]=i[s],t[i.charCodeAt(s)]=s;t[45]=62,t[95]=63;function u(E){var I=E.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var F=E.indexOf("=");F===-1&&(F=I);var _=F===I?0:4-F%4;return[F,_]}function T(E){var I=u(E),F=I[0],_=I[1];return(F+_)*3/4-_}function w(E,I,F){return(I+F)*3/4-F}function k(E){var I,F=u(E),_=F[0],G=F[1],O=new e(w(E,_,G)),K=0,H=G>0?_-4:_,q;for(q=0;q<H;q+=4)I=t[E.charCodeAt(q)]<<18|t[E.charCodeAt(q+1)]<<12|t[E.charCodeAt(q+2)]<<6|t[E.charCodeAt(q+3)],O[K++]=I>>16&255,O[K++]=I>>8&255,O[K++]=I&255;return G===2&&(I=t[E.charCodeAt(q)]<<2|t[E.charCodeAt(q+1)]>>4,O[K++]=I&255),G===1&&(I=t[E.charCodeAt(q)]<<10|t[E.charCodeAt(q+1)]<<4|t[E.charCodeAt(q+2)]>>2,O[K++]=I>>8&255,O[K++]=I&255),O}function R(E){return l[E>>18&63]+l[E>>12&63]+l[E>>6&63]+l[E&63]}function C(E,I,F){for(var _,G=[],O=I;O<F;O+=3)_=(E[O]<<16&16711680)+(E[O+1]<<8&65280)+(E[O+2]&255),G.push(R(_));return G.join("")}function D(E){for(var I,F=E.length,_=F%3,G=[],O=16383,K=0,H=F-_;K<H;K+=O)G.push(C(E,K,K+O>H?H:K+O));return _===1?(I=E[F-1],G.push(l[I>>2]+l[I<<4&63]+"==")):_===2&&(I=(E[F-2]<<8)+E[F-1],G.push(l[I>>10]+l[I>>4&63]+l[I<<2&63]+"=")),G.join("")}return Re}function ni(){if(Xr)return He;Xr=!0;return He.read=function(l,t,e,i,s){var f,u,T=s*8-i-1,w=(1<<T)-1,k=w>>1,R=-7,C=e?s-1:0,D=e?-1:1,E=l[t+C];for(C+=D,f=E&(1<<-R)-1,E>>=-R,R+=T;R>0;f=f*256+l[t+C],C+=D,R-=8);for(u=f&(1<<-R)-1,f>>=-R,R+=i;R>0;u=u*256+l[t+C],C+=D,R-=8);if(f===0)f=1-k;else{if(f===w)return u?NaN:(E?-1:1)*(1/0);u=u+Math.pow(2,i),f=f-k}return(E?-1:1)*u*Math.pow(2,f-i)},He.write=function(l,t,e,i,s,f){var u,T,w,k=f*8-s-1,R=(1<<k)-1,C=R>>1,D=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=i?0:f-1,I=i?1:-1,F=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(T=isNaN(t)?1:0,u=R):(u=Math.floor(Math.log(t)/Math.LN2),t*(w=Math.pow(2,-u))<1&&(u--,w*=2),u+C>=1?t+=D/w:t+=D*Math.pow(2,1-C),t*w>=2&&(u++,w/=2),u+C>=R?(T=0,u=R):u+C>=1?(T=(t*w-1)*Math.pow(2,s),u=u+C):(T=t*Math.pow(2,C-1)*Math.pow(2,s),u=0));s>=8;l[e+E]=T&255,E+=I,T/=256,s-=8);for(u=u<<s|T,k+=s;k>0;l[e+E]=u&255,E+=I,u/=256,k-=8);l[e+E-I]|=F*128},He}function Zr(){if(Qr)return ce;Qr=!0;let l=ri(),t=ni(),e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ce.Buffer=u,ce.SlowBuffer=G,ce.INSPECT_MAX_BYTES=50;let i=2147483647;ce.kMaxLength=i,u.TYPED_ARRAY_SUPPORT=s(),!u.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 s(){try{let o=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(o,r),o.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function f(o){if(o>i)throw new RangeError('The value "'+o+'" is invalid for option "size"');let r=new Uint8Array(o);return Object.setPrototypeOf(r,u.prototype),r}function u(o,r,n){if(typeof o=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return R(o)}return T(o,r,n)}u.poolSize=8192;function T(o,r,n){if(typeof o=="string")return C(o,r);if(ArrayBuffer.isView(o))return E(o);if(o==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o);if(Q(o,ArrayBuffer)||o&&Q(o.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Q(o,SharedArrayBuffer)||o&&Q(o.buffer,SharedArrayBuffer)))return I(o,r,n);if(typeof o=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=o.valueOf&&o.valueOf();if(a!=null&&a!==o)return u.from(a,r,n);let p=F(o);if(p)return p;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof o[Symbol.toPrimitive]=="function")return u.from(o[Symbol.toPrimitive]("string"),r,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o)}u.from=function(o,r,n){return T(o,r,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function w(o){if(typeof o!="number")throw new TypeError('"size" argument must be of type number');if(o<0)throw new RangeError('The value "'+o+'" is invalid for option "size"')}function k(o,r,n){return w(o),o<=0?f(o):r!==void 0?typeof n=="string"?f(o).fill(r,n):f(o).fill(r):f(o)}u.alloc=function(o,r,n){return k(o,r,n)};function R(o){return w(o),f(o<0?0:_(o)|0)}u.allocUnsafe=function(o){return R(o)},u.allocUnsafeSlow=function(o){return R(o)};function C(o,r){if((typeof r!="string"||r==="")&&(r="utf8"),!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let n=O(o,r)|0,a=f(n),p=a.write(o,r);return p!==n&&(a=a.slice(0,p)),a}function D(o){let r=o.length<0?0:_(o.length)|0,n=f(r);for(let a=0;a<r;a+=1)n[a]=o[a]&255;return n}function E(o){if(Q(o,Uint8Array)){let r=new Uint8Array(o);return I(r.buffer,r.byteOffset,r.byteLength)}return D(o)}function I(o,r,n){if(r<0||o.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(o.byteLength<r+(n||0))throw new RangeError('"length" is outside of buffer bounds');let a;return r===void 0&&n===void 0?a=new Uint8Array(o):n===void 0?a=new Uint8Array(o,r):a=new Uint8Array(o,r,n),Object.setPrototypeOf(a,u.prototype),a}function F(o){if(u.isBuffer(o)){let r=_(o.length)|0,n=f(r);return n.length===0||o.copy(n,0,0,r),n}if(o.length!==void 0)return typeof o.length!="number"||lt(o.length)?f(0):D(o);if(o.type==="Buffer"&&Array.isArray(o.data))return D(o.data)}function _(o){if(o>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return o|0}function G(o){return+o!=o&&(o=0),u.alloc(+o)}u.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==u.prototype},u.compare=function(r,n){if(Q(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),Q(n,Uint8Array)&&(n=u.from(n,n.offset,n.byteLength)),!u.isBuffer(r)||!u.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===n)return 0;let a=r.length,p=n.length;for(let h=0,g=Math.min(a,p);h<g;++h)if(r[h]!==n[h]){a=r[h],p=n[h];break}return a<p?-1:p<a?1:0},u.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(r,n){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return u.alloc(0);let a;if(n===void 0)for(n=0,a=0;a<r.length;++a)n+=r[a].length;let p=u.allocUnsafe(n),h=0;for(a=0;a<r.length;++a){let g=r[a];if(Q(g,Uint8Array))h+g.length>p.length?(u.isBuffer(g)||(g=u.from(g)),g.copy(p,h)):Uint8Array.prototype.set.call(p,g,h);else if(u.isBuffer(g))g.copy(p,h);else throw new TypeError('"list" argument must be an Array of Buffers');h+=g.length}return p};function O(o,r){if(u.isBuffer(o))return o.length;if(ArrayBuffer.isView(o)||Q(o,ArrayBuffer))return o.byteLength;if(typeof o!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof o);let n=o.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&n===0)return 0;let p=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return ut(o).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Nt(o).length;default:if(p)return a?-1:ut(o).length;r=(""+r).toLowerCase(),p=!0}}u.byteLength=O;function K(o,r,n){let a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,r>>>=0,n<=r))return"";for(o||(o="utf8");;)switch(o){case"hex":return Gn(this,r,n);case"utf8":case"utf-8":return vt(this,r,n);case"ascii":return qn(this,r,n);case"latin1":case"binary":return Wn(this,r,n);case"base64":return jn(this,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kn(this,r,n);default:if(a)throw new TypeError("Unknown encoding: "+o);o=(o+"").toLowerCase(),a=!0}}u.prototype._isBuffer=!0;function H(o,r,n){let a=o[r];o[r]=o[n],o[n]=a}u.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let n=0;n<r;n+=2)H(this,n,n+1);return this},u.prototype.swap32=function(){let r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let n=0;n<r;n+=4)H(this,n,n+3),H(this,n+1,n+2);return this},u.prototype.swap64=function(){let r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let n=0;n<r;n+=8)H(this,n,n+7),H(this,n+1,n+6),H(this,n+2,n+5),H(this,n+3,n+4);return this},u.prototype.toString=function(){let r=this.length;return r===0?"":arguments.length===0?vt(this,0,r):K.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(r){if(!u.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:u.compare(this,r)===0},u.prototype.inspect=function(){let r="",n=ce.INSPECT_MAX_BYTES;return r=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(r+=" ... "),"<Buffer "+r+">"},e&&(u.prototype[e]=u.prototype.inspect),u.prototype.compare=function(r,n,a,p,h){if(Q(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(n===void 0&&(n=0),a===void 0&&(a=r?r.length:0),p===void 0&&(p=0),h===void 0&&(h=this.length),n<0||a>r.length||p<0||h>this.length)throw new RangeError("out of range index");if(p>=h&&n>=a)return 0;if(p>=h)return-1;if(n>=a)return 1;if(n>>>=0,a>>>=0,p>>>=0,h>>>=0,this===r)return 0;let g=h-p,B=a-n,M=Math.min(g,B),U=this.slice(p,h),$=r.slice(n,a);for(let P=0;P<M;++P)if(U[P]!==$[P]){g=U[P],B=$[P];break}return g<B?-1:B<g?1:0};function q(o,r,n,a,p){if(o.length===0)return-1;if(typeof n=="string"?(a=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,lt(n)&&(n=p?0:o.length-1),n<0&&(n=o.length+n),n>=o.length){if(p)return-1;n=o.length-1}else if(n<0)if(p)n=0;else return-1;if(typeof r=="string"&&(r=u.from(r,a)),u.isBuffer(r))return r.length===0?-1:bt(o,r,n,a,p);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?p?Uint8Array.prototype.indexOf.call(o,r,n):Uint8Array.prototype.lastIndexOf.call(o,r,n):bt(o,[r],n,a,p);throw new TypeError("val must be string, number or Buffer")}function bt(o,r,n,a,p){let h=1,g=o.length,B=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(o.length<2||r.length<2)return-1;h=2,g/=2,B/=2,n/=2}function M($,P){return h===1?$[P]:$.readUInt16BE(P*h)}let U;if(p){let $=-1;for(U=n;U<g;U++)if(M(o,U)===M(r,$===-1?0:U-$)){if($===-1&&($=U),U-$+1===B)return $*h}else $!==-1&&(U-=U-$),$=-1}else for(n+B>g&&(n=g-B),U=n;U>=0;U--){let $=!0;for(let P=0;P<B;P++)if(M(o,U+P)!==M(r,P)){$=!1;break}if($)return U}return-1}u.prototype.includes=function(r,n,a){return this.indexOf(r,n,a)!==-1},u.prototype.indexOf=function(r,n,a){return q(this,r,n,a,!0)},u.prototype.lastIndexOf=function(r,n,a){return q(this,r,n,a,!1)};function Mn(o,r,n,a){n=Number(n)||0;let p=o.length-n;a?(a=Number(a),a>p&&(a=p)):a=p;let h=r.length;a>h/2&&(a=h/2);let g;for(g=0;g<a;++g){let B=parseInt(r.substr(g*2,2),16);if(lt(B))return g;o[n+g]=B}return g}function $n(o,r,n,a){return We(ut(r,o.length-n),o,n,a)}function Dn(o,r,n,a){return We(Jn(r),o,n,a)}function On(o,r,n,a){return We(Nt(r),o,n,a)}function _n(o,r,n,a){return We(Xn(r,o.length-n),o,n,a)}u.prototype.write=function(r,n,a,p){if(n===void 0)p="utf8",a=this.length,n=0;else if(a===void 0&&typeof n=="string")p=n,a=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(a)?(a=a>>>0,p===void 0&&(p="utf8")):(p=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let h=this.length-n;if((a===void 0||a>h)&&(a=h),r.length>0&&(a<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");p||(p="utf8");let g=!1;for(;;)switch(p){case"hex":return Mn(this,r,n,a);case"utf8":case"utf-8":return $n(this,r,n,a);case"ascii":case"latin1":case"binary":return Dn(this,r,n,a);case"base64":return On(this,r,n,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _n(this,r,n,a);default:if(g)throw new TypeError("Unknown encoding: "+p);p=(""+p).toLowerCase(),g=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function jn(o,r,n){return r===0&&n===o.length?l.fromByteArray(o):l.fromByteArray(o.slice(r,n))}function vt(o,r,n){n=Math.min(o.length,n);let a=[],p=r;for(;p<n;){let h=o[p],g=null,B=h>239?4:h>223?3:h>191?2:1;if(p+B<=n){let M,U,$,P;switch(B){case 1:h<128&&(g=h);break;case 2:M=o[p+1],(M&192)===128&&(P=(h&31)<<6|M&63,P>127&&(g=P));break;case 3:M=o[p+1],U=o[p+2],(M&192)===128&&(U&192)===128&&(P=(h&15)<<12|(M&63)<<6|U&63,P>2047&&(P<55296||P>57343)&&(g=P));break;case 4:M=o[p+1],U=o[p+2],$=o[p+3],(M&192)===128&&(U&192)===128&&($&192)===128&&(P=(h&15)<<18|(M&63)<<12|(U&63)<<6|$&63,P>65535&&P<1114112&&(g=P))}}g===null?(g=65533,B=1):g>65535&&(g-=65536,a.push(g>>>10&1023|55296),g=56320|g&1023),a.push(g),p+=B}return Vn(a)}let At=4096;function Vn(o){let r=o.length;if(r<=At)return String.fromCharCode.apply(String,o);let n="",a=0;for(;a<r;)n+=String.fromCharCode.apply(String,o.slice(a,a+=At));return n}function qn(o,r,n){let a="";n=Math.min(o.length,n);for(let p=r;p<n;++p)a+=String.fromCharCode(o[p]&127);return a}function Wn(o,r,n){let a="";n=Math.min(o.length,n);for(let p=r;p<n;++p)a+=String.fromCharCode(o[p]);return a}function Gn(o,r,n){let a=o.length;(!r||r<0)&&(r=0),(!n||n<0||n>a)&&(n=a);let p="";for(let h=r;h<n;++h)p+=Qn[o[h]];return p}function Kn(o,r,n){let a=o.slice(r,n),p="";for(let h=0;h<a.length-1;h+=2)p+=String.fromCharCode(a[h]+a[h+1]*256);return p}u.prototype.slice=function(r,n){let a=this.length;r=~~r,n=n===void 0?a:~~n,r<0?(r+=a,r<0&&(r=0)):r>a&&(r=a),n<0?(n+=a,n<0&&(n=0)):n>a&&(n=a),n<r&&(n=r);let p=this.subarray(r,n);return Object.setPrototypeOf(p,u.prototype),p};function j(o,r,n){if(o%1!==0||o<0)throw new RangeError("offset is not uint");if(o+r>n)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(r,n,a){r=r>>>0,n=n>>>0,a||j(r,n,this.length);let p=this[r],h=1,g=0;for(;++g<n&&(h*=256);)p+=this[r+g]*h;return p},u.prototype.readUintBE=u.prototype.readUIntBE=function(r,n,a){r=r>>>0,n=n>>>0,a||j(r,n,this.length);let p=this[r+--n],h=1;for(;n>0&&(h*=256);)p+=this[r+--n]*h;return p},u.prototype.readUint8=u.prototype.readUInt8=function(r,n){return r=r>>>0,n||j(r,1,this.length),this[r]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(r,n){return r=r>>>0,n||j(r,2,this.length),this[r]|this[r+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(r,n){return r=r>>>0,n||j(r,2,this.length),this[r]<<8|this[r+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(r,n){return r=r>>>0,n||j(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(r,n){return r=r>>>0,n||j(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},u.prototype.readBigUInt64LE=le(function(r){r=r>>>0,Ae(r,"offset");let n=this[r],a=this[r+7];(n===void 0||a===void 0)&&ke(r,this.length-8);let p=n+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,h=this[++r]+this[++r]*2**8+this[++r]*2**16+a*2**24;return BigInt(p)+(BigInt(h)<<BigInt(32))}),u.prototype.readBigUInt64BE=le(function(r){r=r>>>0,Ae(r,"offset");let n=this[r],a=this[r+7];(n===void 0||a===void 0)&&ke(r,this.length-8);let p=n*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],h=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a;return(BigInt(p)<<BigInt(32))+BigInt(h)}),u.prototype.readIntLE=function(r,n,a){r=r>>>0,n=n>>>0,a||j(r,n,this.length);let p=this[r],h=1,g=0;for(;++g<n&&(h*=256);)p+=this[r+g]*h;return h*=128,p>=h&&(p-=Math.pow(2,8*n)),p},u.prototype.readIntBE=function(r,n,a){r=r>>>0,n=n>>>0,a||j(r,n,this.length);let p=n,h=1,g=this[r+--p];for(;p>0&&(h*=256);)g+=this[r+--p]*h;return h*=128,g>=h&&(g-=Math.pow(2,8*n)),g},u.prototype.readInt8=function(r,n){return r=r>>>0,n||j(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},u.prototype.readInt16LE=function(r,n){r=r>>>0,n||j(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a},u.prototype.readInt16BE=function(r,n){r=r>>>0,n||j(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a},u.prototype.readInt32LE=function(r,n){return r=r>>>0,n||j(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},u.prototype.readInt32BE=function(r,n){return r=r>>>0,n||j(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},u.prototype.readBigInt64LE=le(function(r){r=r>>>0,Ae(r,"offset");let n=this[r],a=this[r+7];(n===void 0||a===void 0)&&ke(r,this.length-8);let p=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(p)<<BigInt(32))+BigInt(n+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)}),u.prototype.readBigInt64BE=le(function(r){r=r>>>0,Ae(r,"offset");let n=this[r],a=this[r+7];(n===void 0||a===void 0)&&ke(r,this.length-8);let p=(n<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(p)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a)}),u.prototype.readFloatLE=function(r,n){return r=r>>>0,n||j(r,4,this.length),t.read(this,r,!0,23,4)},u.prototype.readFloatBE=function(r,n){return r=r>>>0,n||j(r,4,this.length),t.read(this,r,!1,23,4)},u.prototype.readDoubleLE=function(r,n){return r=r>>>0,n||j(r,8,this.length),t.read(this,r,!0,52,8)},u.prototype.readDoubleBE=function(r,n){return r=r>>>0,n||j(r,8,this.length),t.read(this,r,!1,52,8)};function z(o,r,n,a,p,h){if(!u.isBuffer(o))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>p||r<h)throw new RangeError('"value" argument is out of bounds');if(n+a>o.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(r,n,a,p){if(r=+r,n=n>>>0,a=a>>>0,!p){let B=Math.pow(2,8*a)-1;z(this,r,n,a,B,0)}let h=1,g=0;for(this[n]=r&255;++g<a&&(h*=256);)this[n+g]=r/h&255;return n+a},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(r,n,a,p){if(r=+r,n=n>>>0,a=a>>>0,!p){let B=Math.pow(2,8*a)-1;z(this,r,n,a,B,0)}let h=a-1,g=1;for(this[n+h]=r&255;--h>=0&&(g*=256);)this[n+h]=r/g&255;return n+a},u.prototype.writeUint8=u.prototype.writeUInt8=function(r,n,a){return r=+r,n=n>>>0,a||z(this,r,n,1,255,0),this[n]=r&255,n+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(r,n,a){return r=+r,n=n>>>0,a||z(this,r,n,2,65535,0),this[n]=r&255,this[n+1]=r>>>8,n+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(r,n,a){return r=+r,n=n>>>0,a||z(this,r,n,2,65535,0),this[n]=r>>>8,this[n+1]=r&255,n+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(r,n,a){return r=+r,n=n>>>0,a||z(this,r,n,4,4294967295,0),this[n+3]=r>>>24,this[n+2]=r>>>16,this[n+1]=r>>>8,this[n]=r&255,n+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(r,n,a){return r=+r,n=n>>>0,a||z(this,r,n,4,4294967295,0),this[n]=r>>>24,this[n+1]=r>>>16,this[n+2]=r>>>8,this[n+3]=r&255,n+4};function Tt(o,r,n,a,p){St(r,a,p,o,n,7);let h=Number(r&BigInt(4294967295));o[n++]=h,h=h>>8,o[n++]=h,h=h>>8,o[n++]=h,h=h>>8,o[n++]=h;let g=Number(r>>BigInt(32)&BigInt(4294967295));return o[n++]=g,g=g>>8,o[n++]=g,g=g>>8,o[n++]=g,g=g>>8,o[n++]=g,n}function Et(o,r,n,a,p){St(r,a,p,o,n,7);let h=Number(r&BigInt(4294967295));o[n+7]=h,h=h>>8,o[n+6]=h,h=h>>8,o[n+5]=h,h=h>>8,o[n+4]=h;let g=Number(r>>BigInt(32)&BigInt(4294967295));return o[n+3]=g,g=g>>8,o[n+2]=g,g=g>>8,o[n+1]=g,g=g>>8,o[n]=g,n+8}u.prototype.writeBigUInt64LE=le(function(r,n=0){return Tt(this,r,n,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=le(function(r,n=0){return Et(this,r,n,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(r,n,a,p){if(r=+r,n=n>>>0,!p){let M=Math.pow(2,8*a-1);z(this,r,n,a,M-1,-M)}let h=0,g=1,B=0;for(this[n]=r&255;++h<a&&(g*=256);)r<0&&B===0&&this[n+h-1]!==0&&(B=1),this[n+h]=(r/g>>0)-B&255;return n+a},u.prototype.writeIntBE=function(r,n,a,p){if(r=+r,n=n>>>0,!p){let M=Math.pow(2,8*a-1);z(this,r,n,a,M-1,-M)}let h=a-1,g=1,B=0;for(this[n+h]=r&255;--h>=0&&(g*=256);)r<0&&B===0&&this[n+h+1]!==0&&(B=1),this[n+h]=(r/g>>0)-B&255;return n+a},u.prototype.writeInt8=function(r,n,a){return r=+r,n=n>>>0,a||z(this,r,n,1,127,-128),r<0&&(r=255+r+1),this[n]=r&255,n+1},u.prototype.writeInt16LE=function(r,n,a){return r=+r,n=n>>>0,a||z(this,r,n,2,32767,-32768),this[n]=r&255,this[n+1]=r>>>8,n+2},u.prototype.writeInt16BE=function(r,n,a){return r=+r,n=n>>>0,a||z(this,r,n,2,32767,-32768),this[n]=r>>>8,this[n+1]=r&255,n+2},u.prototype.writeInt32LE=function(r,n,a){return r=+r,n=n>>>0,a||z(this,r,n,4,2147483647,-2147483648),this[n]=r&255,this[n+1]=r>>>8,this[n+2]=r>>>16,this[n+3]=r>>>24,n+4},u.prototype.writeInt32BE=function(r,n,a){return r=+r,n=n>>>0,a||z(this,r,n,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[n]=r>>>24,this[n+1]=r>>>16,this[n+2]=r>>>8,this[n+3]=r&255,n+4},u.prototype.writeBigInt64LE=le(function(r,n=0){return Tt(this,r,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=le(function(r,n=0){return Et(this,r,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function It(o,r,n,a,p,h){if(n+a>o.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function kt(o,r,n,a,p){return r=+r,n=n>>>0,p||It(o,r,n,4),t.write(o,r,n,a,23,4),n+4}u.prototype.writeFloatLE=function(r,n,a){return kt(this,r,n,!0,a)},u.prototype.writeFloatBE=function(r,n,a){return kt(this,r,n,!1,a)};function Rt(o,r,n,a,p){return r=+r,n=n>>>0,p||It(o,r,n,8),t.write(o,r,n,a,52,8),n+8}u.prototype.writeDoubleLE=function(r,n,a){return Rt(this,r,n,!0,a)},u.prototype.writeDoubleBE=function(r,n,a){return Rt(this,r,n,!1,a)},u.prototype.copy=function(r,n,a,p){if(!u.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!p&&p!==0&&(p=this.length),n>=r.length&&(n=r.length),n||(n=0),p>0&&p<a&&(p=a),p===a||r.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(a<0||a>=this.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("sourceEnd out of bounds");p>this.length&&(p=this.length),r.length-n<p-a&&(p=r.length-n+a);let h=p-a;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(n,a,p):Uint8Array.prototype.set.call(r,this.subarray(a,p),n),h},u.prototype.fill=function(r,n,a,p){if(typeof r=="string"){if(typeof n=="string"?(p=n,n=0,a=this.length):typeof a=="string"&&(p=a,a=this.length),p!==void 0&&typeof p!="string")throw new TypeError("encoding must be a string");if(typeof p=="string"&&!u.isEncoding(p))throw new TypeError("Unknown encoding: "+p);if(r.length===1){let g=r.charCodeAt(0);(p==="utf8"&&g<128||p==="latin1")&&(r=g)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(n<0||this.length<n||this.length<a)throw new RangeError("Out of range index");if(a<=n)return this;n=n>>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let h;if(typeof r=="number")for(h=n;h<a;++h)this[h]=r;else{let g=u.isBuffer(r)?r:u.from(r,p),B=g.length;if(B===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(h=0;h<a-n;++h)this[h+n]=g[h%B]}return this};let ve={};function at(o,r,n){ve[o]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${o}]`,this.stack,delete this.name}get code(){return o}set code(p){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:p,writable:!0})}toString(){return`${this.name} [${o}]: ${this.message}`}}}at("ERR_BUFFER_OUT_OF_BOUNDS",function(o){return o?`${o} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),at("ERR_INVALID_ARG_TYPE",function(o,r){return`The "${o}" argument must be of type number. Received type ${typeof r}`},TypeError),at("ERR_OUT_OF_RANGE",function(o,r,n){let a=`The value of "${o}" is out of range.`,p=n;return Number.isInteger(n)&&Math.abs(n)>2**32?p=Bt(String(n)):typeof n=="bigint"&&(p=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(p=Bt(p)),p+="n"),a+=` It must be ${r}. Received ${p}`,a},RangeError);function Bt(o){let r="",n=o.length,a=o[0]==="-"?1:0;for(;n>=a+4;n-=3)r=`_${o.slice(n-3,n)}${r}`;return`${o.slice(0,n)}${r}`}function zn(o,r,n){Ae(r,"offset"),(o[r]===void 0||o[r+n]===void 0)&&ke(r,o.length-(n+1))}function St(o,r,n,a,p,h){if(o>n||o<r){let g=typeof r=="bigint"?"n":"",B;throw r===0||r===BigInt(0)?B=`>= 0${g} and < 2${g} ** ${(h+1)*8}${g}`:B=`>= -(2${g} ** ${(h+1)*8-1}${g}) and < 2 ** ${(h+1)*8-1}${g}`,new ve.ERR_OUT_OF_RANGE("value",B,o)}zn(a,p,h)}function Ae(o,r){if(typeof o!="number")throw new ve.ERR_INVALID_ARG_TYPE(r,"number",o)}function ke(o,r,n){throw Math.floor(o)!==o?(Ae(o,n),new ve.ERR_OUT_OF_RANGE("offset","an integer",o)):r<0?new ve.ERR_BUFFER_OUT_OF_BOUNDS:new ve.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${r}`,o)}let Hn=/[^+/0-9A-Za-z-_]/g;function Yn(o){if(o=o.split("=")[0],o=o.trim().replace(Hn,""),o.length<2)return"";for(;o.length%4!==0;)o=o+"=";return o}function ut(o,r){r=r||1/0;let n,a=o.length,p=null,h=[];for(let g=0;g<a;++g){if(n=o.charCodeAt(g),n>55295&&n<57344){if(!p){if(n>56319){(r-=3)>-1&&h.push(239,191,189);continue}else if(g+1===a){(r-=3)>-1&&h.push(239,191,189);continue}p=n;continue}if(n<56320){(r-=3)>-1&&h.push(239,191,189),p=n;continue}n=(p-55296<<10|n-56320)+65536}else p&&(r-=3)>-1&&h.push(239,191,189);if(p=null,n<128){if((r-=1)<0)break;h.push(n)}else if(n<2048){if((r-=2)<0)break;h.push(n>>6|192,n&63|128)}else if(n<65536){if((r-=3)<0)break;h.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((r-=4)<0)break;h.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return h}function Jn(o){let r=[];for(let n=0;n<o.length;++n)r.push(o.charCodeAt(n)&255);return r}function Xn(o,r){let n,a,p,h=[];for(let g=0;g<o.length&&!((r-=2)<0);++g)n=o.charCodeAt(g),a=n>>8,p=n%256,h.push(p),h.push(a);return h}function Nt(o){return l.toByteArray(Yn(o))}function We(o,r,n,a){let p;for(p=0;p<a&&!(p+n>=r.length||p>=o.length);++p)r[p+n]=o[p];return p}function Q(o,r){return o instanceof r||o!=null&&o.constructor!=null&&o.constructor.name!=null&&o.constructor.name===r.name}function lt(o){return o!==o}let Qn=(function(){let o="0123456789abcdef",r=new Array(256);for(let n=0;n<16;++n){let a=n*16;for(let p=0;p<16;++p)r[a+p]=o[n]+o[p]}return r})();function le(o){return typeof BigInt>"u"?Zn:o}function Zn(){throw new Error("BigInt not supported")}return ce}var Re,Jr,He,Xr,ce,Qr,en=Te(()=>{"use strict";c();m();d();Re={},Jr=!1;He={},Xr=!1;ce={},Qr=!1});var de,v,Mo,$o,tn=Te(()=>{"use strict";c();m();d();en();de=Zr();de.Buffer;de.SlowBuffer;de.INSPECT_MAX_BYTES;de.kMaxLength;v=de.Buffer,Mo=de.INSPECT_MAX_BYTES,$o=de.kMaxLength});var m=Te(()=>{"use strict";tn()});c();m();d();c();m();d();c();m();d();c();m();d();function L(l){throw new Error("Unexpected value: "+JSON.stringify(l))}c();m();d();c();m();d();c();m();d();c();m();d();c();m();d();c();m();d();var ii=typeof global=="object"&&global&&global.Object===Object&&global,rn=ii;var oi=typeof self=="object"&&self&&self.Object===Object&&self,si=rn||oi||Function("return this")(),nn=si;var ai=nn.Symbol,re=ai;c();m();d();var on=Object.prototype,ui=on.hasOwnProperty,li=on.toString,Be=re?re.toStringTag:void 0;function pi(l){var t=ui.call(l,Be),e=l[Be];try{l[Be]=void 0;var i=!0}catch{}var s=li.call(l);return i&&(t?l[Be]=e:delete l[Be]),s}var sn=pi;c();m();d();var fi=Object.prototype,ci=fi.toString;function di(l){return ci.call(l)}var an=di;var mi="[object Null]",hi="[object Undefined]",un=re?re.toStringTag:void 0;function yi(l){return l==null?l===void 0?hi:mi:un&&un in Object(l)?sn(l):an(l)}var ln=yi;c();m();d();function gi(l){return l!=null&&typeof l=="object"}var pn=gi;var xi="[object Symbol]";function wi(l){return typeof l=="symbol"||pn(l)&&ln(l)==xi}var fn=wi;c();m();d();c();m();d();function bi(l,t){for(var e=-1,i=l==null?0:l.length,s=Array(i);++e<i;)s[e]=t(l[e],e,l);return s}var cn=bi;c();m();d();var vi=Array.isArray,dn=vi;var Ai=1/0,mn=re?re.prototype:void 0,hn=mn?mn.toString:void 0;function yn(l){if(typeof l=="string")return l;if(dn(l))return cn(l,yn)+"";if(fn(l))return hn?hn.call(l):"";var t=l+"";return t=="0"&&1/l==-Ai?"-0":t}var gn=yn;c();m();d();function Ti(l){return l==null?"":gn(l)}var xn=Ti;c();m();d();c();m();d();c();m();d();c();m();d();function Ei(l,t,e){var i=-1,s=l.length;t<0&&(t=-t>s?0:s+t),e=e>s?s:e,e<0&&(e+=s),s=t>e?0:e-t>>>0,t>>>=0;for(var f=Array(s);++i<s;)f[i]=l[i+t];return f}var wn=Ei;function Ii(l,t,e){var i=l.length;return e=e===void 0?i:e,!t&&e>=i?l:wn(l,t,e)}var bn=Ii;c();m();d();var ki="\\ud800-\\udfff",Ri="\\u0300-\\u036f",Bi="\\ufe20-\\ufe2f",Si="\\u20d0-\\u20ff",Ni=Ri+Bi+Si,Li="\\ufe0e\\ufe0f",Ci="\\u200d",Fi=RegExp("["+Ci+ki+Ni+Li+"]");function Pi(l){return Fi.test(l)}var Ye=Pi;c();m();d();c();m();d();function Ui(l){return l.split("")}var vn=Ui;c();m();d();var An="\\ud800-\\udfff",Mi="\\u0300-\\u036f",$i="\\ufe20-\\ufe2f",Di="\\u20d0-\\u20ff",Oi=Mi+$i+Di,_i="\\ufe0e\\ufe0f",ji="["+An+"]",dt="["+Oi+"]",mt="\\ud83c[\\udffb-\\udfff]",Vi="(?:"+dt+"|"+mt+")",Tn="[^"+An+"]",En="(?:\\ud83c[\\udde6-\\uddff]){2}",In="[\\ud800-\\udbff][\\udc00-\\udfff]",qi="\\u200d",kn=Vi+"?",Rn="["+_i+"]?",Wi="(?:"+qi+"(?:"+[Tn,En,In].join("|")+")"+Rn+kn+")*",Gi=Rn+kn+Wi,Ki="(?:"+[Tn+dt+"?",dt,En,In,ji].join("|")+")",zi=RegExp(mt+"(?="+mt+")|"+Ki+Gi,"g");function Hi(l){return l.match(zi)||[]}var Bn=Hi;function Yi(l){return Ye(l)?Bn(l):vn(l)}var Sn=Yi;function Ji(l){return function(t){t=xn(t);var e=Ye(t)?Sn(t):void 0,i=e?e[0]:t.charAt(0),s=e?bn(e,1).join(""):t.slice(1);return i[l]()+s}}var Nn=Ji;var Xi=Nn("toUpperCase"),ht=Xi;c();m();d();function Se(l){return Object.keys(l)}c();m();d();c();m();d();c();m();d();var Ne=b.env.FERN_STACK_TRACK?.toLowerCase()??"",Z=Ne!==""&&Ne!=="0"&&Ne!=="false",yt=["single","multiline","box"].includes(Ne)?Ne:"single";Z&&(Error.stackTraceLimit=50);var Qi=new Set(["SdkGeneratorCLI","runCli","LoggerImpl","Array.forEach"]),Zi=new Set(["stacktrace"]);function Xe({maxFrames:l=50,skip:t=0,filterPaths:e=[],filterFunctions:i=[],stopOn:s=[],filterNode:f=!0,filterJs:u=!0,formatFilename:T=w=>w}={}){if(!Z)return[];i=[...i,...Qi],e=[...e,...Zi],s=[...s,"runInteractiveTask"];let w=!1;return(new Error().stack??"").split(`
|
|
1
|
+
var Lt=Object.defineProperty;var ei=(l,t,e)=>t in l?Lt(l,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):l[t]=e;var Te=(l,t)=>()=>(l&&(t=l(l=0)),t);var Ct=(l,t)=>{for(var e in t)Lt(l,e,{get:t[e],enumerable:!0})};var y=(l,t,e)=>ei(l,typeof t!="symbol"?t+"":t,e);var c=Te(()=>{"use strict"});var b={};Ct(b,{_debugEnd:()=>vr,_debugProcess:()=>br,_events:()=>$r,_eventsCount:()=>Dr,_exiting:()=>tr,_fatalExceptions:()=>yr,_getActiveHandles:()=>or,_getActiveRequests:()=>ir,_kill:()=>ar,_linkedBinding:()=>Zt,_maxListeners:()=>Mr,_preload_modules:()=>Fr,_rawDebug:()=>Xt,_startProfilerIdleNotifier:()=>Ar,_stopProfilerIdleNotifier:()=>Tr,_tickCallback:()=>wr,abort:()=>Rr,addListener:()=>Or,allowedNodeEnvironmentFlags:()=>dr,arch:()=>$t,argv:()=>_t,argv0:()=>Cr,assert:()=>mr,binding:()=>Gt,browser:()=>Jt,chdir:()=>Ht,config:()=>rr,cpuUsage:()=>ze,cwd:()=>zt,debugPort:()=>Lr,default:()=>Hr,dlopen:()=>nr,domain:()=>er,emit:()=>Wr,emitWarning:()=>Wt,env:()=>Ot,execArgv:()=>jt,execPath:()=>Nr,exit:()=>fr,features:()=>hr,hasUncaughtExceptionCaptureCallback:()=>xr,hrtime:()=>Ke,kill:()=>pr,listeners:()=>zr,memoryUsage:()=>lr,moduleLoadList:()=>Qt,nextTick:()=>Pt,off:()=>jr,on:()=>te,once:()=>_r,openStdin:()=>cr,pid:()=>Br,platform:()=>Dt,ppid:()=>Sr,prependListener:()=>Gr,prependOnceListener:()=>Kr,reallyExit:()=>sr,release:()=>Yt,removeAllListeners:()=>qr,removeListener:()=>Vr,resourceUsage:()=>ur,setSourceMapsEnabled:()=>Pr,setUncaughtExceptionCaptureCallback:()=>gr,stderr:()=>Ir,stdin:()=>kr,stdout:()=>Er,title:()=>Mt,umask:()=>Kt,uptime:()=>Ur,version:()=>Vt,versions:()=>qt});function ct(l){throw new Error("Node.js process "+l+" is not supported by JSPM core outside of Node.js")}function ti(){!Ee||!fe||(Ee=!1,fe.length?ee=fe.concat(ee):Ge=-1,ee.length&&Ft())}function Ft(){if(!Ee){var l=setTimeout(ti,0);Ee=!0;for(var t=ee.length;t;){for(fe=ee,ee=[];++Ge<t;)fe&&fe[Ge].run();Ge=-1,t=ee.length}fe=null,Ee=!1,clearTimeout(l)}}function Pt(l){var t=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)t[e-1]=arguments[e];ee.push(new Ut(l,t)),ee.length===1&&!Ee&&setTimeout(Ft,0)}function Ut(l,t){this.fun=l,this.array=t}function V(){}function Zt(l){ct("_linkedBinding")}function nr(l){ct("dlopen")}function ir(){return[]}function or(){return[]}function mr(l,t){if(!l)throw new Error(t||"assertion error")}function xr(){return!1}function Ur(){return pe.now()/1e3}function Ke(l){var t=Math.floor((Date.now()-pe.now())*.001),e=pe.now()*.001,i=Math.floor(e)+t,s=Math.floor(e%1*1e9);return l&&(i=i-l[0],s=s-l[1],s<0&&(i--,s+=ft)),[i,s]}function te(){return Hr}function zr(l){return[]}var ee,Ee,fe,Ge,Mt,$t,Dt,Ot,_t,jt,Vt,qt,Wt,Gt,Kt,zt,Ht,Yt,Jt,Xt,Qt,er,tr,rr,sr,ar,ze,ur,lr,pr,fr,cr,dr,hr,yr,gr,wr,br,vr,Ar,Tr,Er,Ir,kr,Rr,Br,Sr,Nr,Lr,Cr,Fr,Pr,pe,pt,ft,Mr,$r,Dr,Or,_r,jr,Vr,qr,Wr,Gr,Kr,Hr,Yr=Te(()=>{"use strict";c();m();d();ee=[],Ee=!1,Ge=-1;Ut.prototype.run=function(){this.fun.apply(null,this.array)};Mt="browser",$t="x64",Dt="browser",Ot={PATH:"/usr/bin",LANG:typeof navigator<"u"?navigator.language+".UTF-8":void 0,PWD:"/",HOME:"/home",TMP:"/tmp"},_t=["/usr/bin/node"],jt=[],Vt="v16.8.0",qt={},Wt=function(l,t){console.warn((t?t+": ":"")+l)},Gt=function(l){ct("binding")},Kt=function(l){return 0},zt=function(){return"/"},Ht=function(l){},Yt={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};Jt=!0,Xt=V,Qt=[];er={},tr=!1,rr={};sr=V,ar=V,ze=function(){return{}},ur=ze,lr=ze,pr=V,fr=V,cr=V,dr={};hr={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},yr=V,gr=V;wr=V,br=V,vr=V,Ar=V,Tr=V,Er=void 0,Ir=void 0,kr=void 0,Rr=V,Br=2,Sr=1,Nr="/bin/usr/node",Lr=9229,Cr="node",Fr=[],Pr=V,pe={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};pe.now===void 0&&(pt=Date.now(),pe.timing&&pe.timing.navigationStart&&(pt=pe.timing.navigationStart),pe.now=()=>Date.now()-pt);ft=1e9;Ke.bigint=function(l){var t=Ke(l);return typeof BigInt>"u"?t[0]*ft+t[1]:BigInt(t[0]*ft)+BigInt(t[1])};Mr=10,$r={},Dr=0;Or=te,_r=te,jr=te,Vr=te,qr=te,Wr=V,Gr=te,Kr=te;Hr={version:Vt,versions:qt,arch:$t,platform:Dt,browser:Jt,release:Yt,_rawDebug:Xt,moduleLoadList:Qt,binding:Gt,_linkedBinding:Zt,_events:$r,_eventsCount:Dr,_maxListeners:Mr,on:te,addListener:Or,once:_r,off:jr,removeListener:Vr,removeAllListeners:qr,emit:Wr,prependListener:Gr,prependOnceListener:Kr,listeners:zr,domain:er,_exiting:tr,config:rr,dlopen:nr,uptime:Ur,_getActiveRequests:ir,_getActiveHandles:or,reallyExit:sr,_kill:ar,cpuUsage:ze,resourceUsage:ur,memoryUsage:lr,kill:pr,exit:fr,openStdin:cr,allowedNodeEnvironmentFlags:dr,assert:mr,features:hr,_fatalExceptions:yr,setUncaughtExceptionCaptureCallback:gr,hasUncaughtExceptionCaptureCallback:xr,emitWarning:Wt,nextTick:Pt,_tickCallback:wr,_debugProcess:br,_debugEnd:vr,_startProfilerIdleNotifier:Ar,_stopProfilerIdleNotifier:Tr,stdout:Er,stdin:kr,stderr:Ir,abort:Rr,umask:Kt,chdir:Ht,cwd:zt,env:Ot,title:Mt,argv:_t,execArgv:jt,pid:Br,ppid:Sr,execPath:Nr,debugPort:Lr,hrtime:Ke,argv0:Cr,_preload_modules:Fr,setSourceMapsEnabled:Pr}});var d=Te(()=>{"use strict";Yr()});function ri(){if(Jr)return Re;Jr=!0,Re.byteLength=T,Re.toByteArray=k,Re.fromByteArray=D;for(var l=[],t=[],e=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,f=i.length;s<f;++s)l[s]=i[s],t[i.charCodeAt(s)]=s;t[45]=62,t[95]=63;function u(E){var I=E.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var F=E.indexOf("=");F===-1&&(F=I);var _=F===I?0:4-F%4;return[F,_]}function T(E){var I=u(E),F=I[0],_=I[1];return(F+_)*3/4-_}function w(E,I,F){return(I+F)*3/4-F}function k(E){var I,F=u(E),_=F[0],G=F[1],O=new e(w(E,_,G)),K=0,H=G>0?_-4:_,q;for(q=0;q<H;q+=4)I=t[E.charCodeAt(q)]<<18|t[E.charCodeAt(q+1)]<<12|t[E.charCodeAt(q+2)]<<6|t[E.charCodeAt(q+3)],O[K++]=I>>16&255,O[K++]=I>>8&255,O[K++]=I&255;return G===2&&(I=t[E.charCodeAt(q)]<<2|t[E.charCodeAt(q+1)]>>4,O[K++]=I&255),G===1&&(I=t[E.charCodeAt(q)]<<10|t[E.charCodeAt(q+1)]<<4|t[E.charCodeAt(q+2)]>>2,O[K++]=I>>8&255,O[K++]=I&255),O}function R(E){return l[E>>18&63]+l[E>>12&63]+l[E>>6&63]+l[E&63]}function C(E,I,F){for(var _,G=[],O=I;O<F;O+=3)_=(E[O]<<16&16711680)+(E[O+1]<<8&65280)+(E[O+2]&255),G.push(R(_));return G.join("")}function D(E){for(var I,F=E.length,_=F%3,G=[],O=16383,K=0,H=F-_;K<H;K+=O)G.push(C(E,K,K+O>H?H:K+O));return _===1?(I=E[F-1],G.push(l[I>>2]+l[I<<4&63]+"==")):_===2&&(I=(E[F-2]<<8)+E[F-1],G.push(l[I>>10]+l[I>>4&63]+l[I<<2&63]+"=")),G.join("")}return Re}function ni(){if(Xr)return He;Xr=!0;return He.read=function(l,t,e,i,s){var f,u,T=s*8-i-1,w=(1<<T)-1,k=w>>1,R=-7,C=e?s-1:0,D=e?-1:1,E=l[t+C];for(C+=D,f=E&(1<<-R)-1,E>>=-R,R+=T;R>0;f=f*256+l[t+C],C+=D,R-=8);for(u=f&(1<<-R)-1,f>>=-R,R+=i;R>0;u=u*256+l[t+C],C+=D,R-=8);if(f===0)f=1-k;else{if(f===w)return u?NaN:(E?-1:1)*(1/0);u=u+Math.pow(2,i),f=f-k}return(E?-1:1)*u*Math.pow(2,f-i)},He.write=function(l,t,e,i,s,f){var u,T,w,k=f*8-s-1,R=(1<<k)-1,C=R>>1,D=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=i?0:f-1,I=i?1:-1,F=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(T=isNaN(t)?1:0,u=R):(u=Math.floor(Math.log(t)/Math.LN2),t*(w=Math.pow(2,-u))<1&&(u--,w*=2),u+C>=1?t+=D/w:t+=D*Math.pow(2,1-C),t*w>=2&&(u++,w/=2),u+C>=R?(T=0,u=R):u+C>=1?(T=(t*w-1)*Math.pow(2,s),u=u+C):(T=t*Math.pow(2,C-1)*Math.pow(2,s),u=0));s>=8;l[e+E]=T&255,E+=I,T/=256,s-=8);for(u=u<<s|T,k+=s;k>0;l[e+E]=u&255,E+=I,u/=256,k-=8);l[e+E-I]|=F*128},He}function Zr(){if(Qr)return ce;Qr=!0;let l=ri(),t=ni(),e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ce.Buffer=u,ce.SlowBuffer=G,ce.INSPECT_MAX_BYTES=50;let i=2147483647;ce.kMaxLength=i,u.TYPED_ARRAY_SUPPORT=s(),!u.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 s(){try{let o=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(o,r),o.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function f(o){if(o>i)throw new RangeError('The value "'+o+'" is invalid for option "size"');let r=new Uint8Array(o);return Object.setPrototypeOf(r,u.prototype),r}function u(o,r,n){if(typeof o=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return R(o)}return T(o,r,n)}u.poolSize=8192;function T(o,r,n){if(typeof o=="string")return C(o,r);if(ArrayBuffer.isView(o))return E(o);if(o==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o);if(Q(o,ArrayBuffer)||o&&Q(o.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Q(o,SharedArrayBuffer)||o&&Q(o.buffer,SharedArrayBuffer)))return I(o,r,n);if(typeof o=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=o.valueOf&&o.valueOf();if(a!=null&&a!==o)return u.from(a,r,n);let p=F(o);if(p)return p;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof o[Symbol.toPrimitive]=="function")return u.from(o[Symbol.toPrimitive]("string"),r,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o)}u.from=function(o,r,n){return T(o,r,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function w(o){if(typeof o!="number")throw new TypeError('"size" argument must be of type number');if(o<0)throw new RangeError('The value "'+o+'" is invalid for option "size"')}function k(o,r,n){return w(o),o<=0?f(o):r!==void 0?typeof n=="string"?f(o).fill(r,n):f(o).fill(r):f(o)}u.alloc=function(o,r,n){return k(o,r,n)};function R(o){return w(o),f(o<0?0:_(o)|0)}u.allocUnsafe=function(o){return R(o)},u.allocUnsafeSlow=function(o){return R(o)};function C(o,r){if((typeof r!="string"||r==="")&&(r="utf8"),!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let n=O(o,r)|0,a=f(n),p=a.write(o,r);return p!==n&&(a=a.slice(0,p)),a}function D(o){let r=o.length<0?0:_(o.length)|0,n=f(r);for(let a=0;a<r;a+=1)n[a]=o[a]&255;return n}function E(o){if(Q(o,Uint8Array)){let r=new Uint8Array(o);return I(r.buffer,r.byteOffset,r.byteLength)}return D(o)}function I(o,r,n){if(r<0||o.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(o.byteLength<r+(n||0))throw new RangeError('"length" is outside of buffer bounds');let a;return r===void 0&&n===void 0?a=new Uint8Array(o):n===void 0?a=new Uint8Array(o,r):a=new Uint8Array(o,r,n),Object.setPrototypeOf(a,u.prototype),a}function F(o){if(u.isBuffer(o)){let r=_(o.length)|0,n=f(r);return n.length===0||o.copy(n,0,0,r),n}if(o.length!==void 0)return typeof o.length!="number"||lt(o.length)?f(0):D(o);if(o.type==="Buffer"&&Array.isArray(o.data))return D(o.data)}function _(o){if(o>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return o|0}function G(o){return+o!=o&&(o=0),u.alloc(+o)}u.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==u.prototype},u.compare=function(r,n){if(Q(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),Q(n,Uint8Array)&&(n=u.from(n,n.offset,n.byteLength)),!u.isBuffer(r)||!u.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===n)return 0;let a=r.length,p=n.length;for(let h=0,g=Math.min(a,p);h<g;++h)if(r[h]!==n[h]){a=r[h],p=n[h];break}return a<p?-1:p<a?1:0},u.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(r,n){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return u.alloc(0);let a;if(n===void 0)for(n=0,a=0;a<r.length;++a)n+=r[a].length;let p=u.allocUnsafe(n),h=0;for(a=0;a<r.length;++a){let g=r[a];if(Q(g,Uint8Array))h+g.length>p.length?(u.isBuffer(g)||(g=u.from(g)),g.copy(p,h)):Uint8Array.prototype.set.call(p,g,h);else if(u.isBuffer(g))g.copy(p,h);else throw new TypeError('"list" argument must be an Array of Buffers');h+=g.length}return p};function O(o,r){if(u.isBuffer(o))return o.length;if(ArrayBuffer.isView(o)||Q(o,ArrayBuffer))return o.byteLength;if(typeof o!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof o);let n=o.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&n===0)return 0;let p=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return ut(o).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Nt(o).length;default:if(p)return a?-1:ut(o).length;r=(""+r).toLowerCase(),p=!0}}u.byteLength=O;function K(o,r,n){let a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,r>>>=0,n<=r))return"";for(o||(o="utf8");;)switch(o){case"hex":return Gn(this,r,n);case"utf8":case"utf-8":return vt(this,r,n);case"ascii":return qn(this,r,n);case"latin1":case"binary":return Wn(this,r,n);case"base64":return jn(this,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kn(this,r,n);default:if(a)throw new TypeError("Unknown encoding: "+o);o=(o+"").toLowerCase(),a=!0}}u.prototype._isBuffer=!0;function H(o,r,n){let a=o[r];o[r]=o[n],o[n]=a}u.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let n=0;n<r;n+=2)H(this,n,n+1);return this},u.prototype.swap32=function(){let r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let n=0;n<r;n+=4)H(this,n,n+3),H(this,n+1,n+2);return this},u.prototype.swap64=function(){let r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let n=0;n<r;n+=8)H(this,n,n+7),H(this,n+1,n+6),H(this,n+2,n+5),H(this,n+3,n+4);return this},u.prototype.toString=function(){let r=this.length;return r===0?"":arguments.length===0?vt(this,0,r):K.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(r){if(!u.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:u.compare(this,r)===0},u.prototype.inspect=function(){let r="",n=ce.INSPECT_MAX_BYTES;return r=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(r+=" ... "),"<Buffer "+r+">"},e&&(u.prototype[e]=u.prototype.inspect),u.prototype.compare=function(r,n,a,p,h){if(Q(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(n===void 0&&(n=0),a===void 0&&(a=r?r.length:0),p===void 0&&(p=0),h===void 0&&(h=this.length),n<0||a>r.length||p<0||h>this.length)throw new RangeError("out of range index");if(p>=h&&n>=a)return 0;if(p>=h)return-1;if(n>=a)return 1;if(n>>>=0,a>>>=0,p>>>=0,h>>>=0,this===r)return 0;let g=h-p,B=a-n,M=Math.min(g,B),U=this.slice(p,h),$=r.slice(n,a);for(let P=0;P<M;++P)if(U[P]!==$[P]){g=U[P],B=$[P];break}return g<B?-1:B<g?1:0};function q(o,r,n,a,p){if(o.length===0)return-1;if(typeof n=="string"?(a=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,lt(n)&&(n=p?0:o.length-1),n<0&&(n=o.length+n),n>=o.length){if(p)return-1;n=o.length-1}else if(n<0)if(p)n=0;else return-1;if(typeof r=="string"&&(r=u.from(r,a)),u.isBuffer(r))return r.length===0?-1:bt(o,r,n,a,p);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?p?Uint8Array.prototype.indexOf.call(o,r,n):Uint8Array.prototype.lastIndexOf.call(o,r,n):bt(o,[r],n,a,p);throw new TypeError("val must be string, number or Buffer")}function bt(o,r,n,a,p){let h=1,g=o.length,B=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(o.length<2||r.length<2)return-1;h=2,g/=2,B/=2,n/=2}function M($,P){return h===1?$[P]:$.readUInt16BE(P*h)}let U;if(p){let $=-1;for(U=n;U<g;U++)if(M(o,U)===M(r,$===-1?0:U-$)){if($===-1&&($=U),U-$+1===B)return $*h}else $!==-1&&(U-=U-$),$=-1}else for(n+B>g&&(n=g-B),U=n;U>=0;U--){let $=!0;for(let P=0;P<B;P++)if(M(o,U+P)!==M(r,P)){$=!1;break}if($)return U}return-1}u.prototype.includes=function(r,n,a){return this.indexOf(r,n,a)!==-1},u.prototype.indexOf=function(r,n,a){return q(this,r,n,a,!0)},u.prototype.lastIndexOf=function(r,n,a){return q(this,r,n,a,!1)};function Mn(o,r,n,a){n=Number(n)||0;let p=o.length-n;a?(a=Number(a),a>p&&(a=p)):a=p;let h=r.length;a>h/2&&(a=h/2);let g;for(g=0;g<a;++g){let B=parseInt(r.substr(g*2,2),16);if(lt(B))return g;o[n+g]=B}return g}function $n(o,r,n,a){return We(ut(r,o.length-n),o,n,a)}function Dn(o,r,n,a){return We(Jn(r),o,n,a)}function On(o,r,n,a){return We(Nt(r),o,n,a)}function _n(o,r,n,a){return We(Xn(r,o.length-n),o,n,a)}u.prototype.write=function(r,n,a,p){if(n===void 0)p="utf8",a=this.length,n=0;else if(a===void 0&&typeof n=="string")p=n,a=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(a)?(a=a>>>0,p===void 0&&(p="utf8")):(p=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let h=this.length-n;if((a===void 0||a>h)&&(a=h),r.length>0&&(a<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");p||(p="utf8");let g=!1;for(;;)switch(p){case"hex":return Mn(this,r,n,a);case"utf8":case"utf-8":return $n(this,r,n,a);case"ascii":case"latin1":case"binary":return Dn(this,r,n,a);case"base64":return On(this,r,n,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _n(this,r,n,a);default:if(g)throw new TypeError("Unknown encoding: "+p);p=(""+p).toLowerCase(),g=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function jn(o,r,n){return r===0&&n===o.length?l.fromByteArray(o):l.fromByteArray(o.slice(r,n))}function vt(o,r,n){n=Math.min(o.length,n);let a=[],p=r;for(;p<n;){let h=o[p],g=null,B=h>239?4:h>223?3:h>191?2:1;if(p+B<=n){let M,U,$,P;switch(B){case 1:h<128&&(g=h);break;case 2:M=o[p+1],(M&192)===128&&(P=(h&31)<<6|M&63,P>127&&(g=P));break;case 3:M=o[p+1],U=o[p+2],(M&192)===128&&(U&192)===128&&(P=(h&15)<<12|(M&63)<<6|U&63,P>2047&&(P<55296||P>57343)&&(g=P));break;case 4:M=o[p+1],U=o[p+2],$=o[p+3],(M&192)===128&&(U&192)===128&&($&192)===128&&(P=(h&15)<<18|(M&63)<<12|(U&63)<<6|$&63,P>65535&&P<1114112&&(g=P))}}g===null?(g=65533,B=1):g>65535&&(g-=65536,a.push(g>>>10&1023|55296),g=56320|g&1023),a.push(g),p+=B}return Vn(a)}let At=4096;function Vn(o){let r=o.length;if(r<=At)return String.fromCharCode.apply(String,o);let n="",a=0;for(;a<r;)n+=String.fromCharCode.apply(String,o.slice(a,a+=At));return n}function qn(o,r,n){let a="";n=Math.min(o.length,n);for(let p=r;p<n;++p)a+=String.fromCharCode(o[p]&127);return a}function Wn(o,r,n){let a="";n=Math.min(o.length,n);for(let p=r;p<n;++p)a+=String.fromCharCode(o[p]);return a}function Gn(o,r,n){let a=o.length;(!r||r<0)&&(r=0),(!n||n<0||n>a)&&(n=a);let p="";for(let h=r;h<n;++h)p+=Qn[o[h]];return p}function Kn(o,r,n){let a=o.slice(r,n),p="";for(let h=0;h<a.length-1;h+=2)p+=String.fromCharCode(a[h]+a[h+1]*256);return p}u.prototype.slice=function(r,n){let a=this.length;r=~~r,n=n===void 0?a:~~n,r<0?(r+=a,r<0&&(r=0)):r>a&&(r=a),n<0?(n+=a,n<0&&(n=0)):n>a&&(n=a),n<r&&(n=r);let p=this.subarray(r,n);return Object.setPrototypeOf(p,u.prototype),p};function j(o,r,n){if(o%1!==0||o<0)throw new RangeError("offset is not uint");if(o+r>n)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(r,n,a){r=r>>>0,n=n>>>0,a||j(r,n,this.length);let p=this[r],h=1,g=0;for(;++g<n&&(h*=256);)p+=this[r+g]*h;return p},u.prototype.readUintBE=u.prototype.readUIntBE=function(r,n,a){r=r>>>0,n=n>>>0,a||j(r,n,this.length);let p=this[r+--n],h=1;for(;n>0&&(h*=256);)p+=this[r+--n]*h;return p},u.prototype.readUint8=u.prototype.readUInt8=function(r,n){return r=r>>>0,n||j(r,1,this.length),this[r]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(r,n){return r=r>>>0,n||j(r,2,this.length),this[r]|this[r+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(r,n){return r=r>>>0,n||j(r,2,this.length),this[r]<<8|this[r+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(r,n){return r=r>>>0,n||j(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(r,n){return r=r>>>0,n||j(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},u.prototype.readBigUInt64LE=le(function(r){r=r>>>0,Ae(r,"offset");let n=this[r],a=this[r+7];(n===void 0||a===void 0)&&ke(r,this.length-8);let p=n+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,h=this[++r]+this[++r]*2**8+this[++r]*2**16+a*2**24;return BigInt(p)+(BigInt(h)<<BigInt(32))}),u.prototype.readBigUInt64BE=le(function(r){r=r>>>0,Ae(r,"offset");let n=this[r],a=this[r+7];(n===void 0||a===void 0)&&ke(r,this.length-8);let p=n*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],h=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a;return(BigInt(p)<<BigInt(32))+BigInt(h)}),u.prototype.readIntLE=function(r,n,a){r=r>>>0,n=n>>>0,a||j(r,n,this.length);let p=this[r],h=1,g=0;for(;++g<n&&(h*=256);)p+=this[r+g]*h;return h*=128,p>=h&&(p-=Math.pow(2,8*n)),p},u.prototype.readIntBE=function(r,n,a){r=r>>>0,n=n>>>0,a||j(r,n,this.length);let p=n,h=1,g=this[r+--p];for(;p>0&&(h*=256);)g+=this[r+--p]*h;return h*=128,g>=h&&(g-=Math.pow(2,8*n)),g},u.prototype.readInt8=function(r,n){return r=r>>>0,n||j(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},u.prototype.readInt16LE=function(r,n){r=r>>>0,n||j(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a},u.prototype.readInt16BE=function(r,n){r=r>>>0,n||j(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a},u.prototype.readInt32LE=function(r,n){return r=r>>>0,n||j(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},u.prototype.readInt32BE=function(r,n){return r=r>>>0,n||j(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},u.prototype.readBigInt64LE=le(function(r){r=r>>>0,Ae(r,"offset");let n=this[r],a=this[r+7];(n===void 0||a===void 0)&&ke(r,this.length-8);let p=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(p)<<BigInt(32))+BigInt(n+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)}),u.prototype.readBigInt64BE=le(function(r){r=r>>>0,Ae(r,"offset");let n=this[r],a=this[r+7];(n===void 0||a===void 0)&&ke(r,this.length-8);let p=(n<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(p)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a)}),u.prototype.readFloatLE=function(r,n){return r=r>>>0,n||j(r,4,this.length),t.read(this,r,!0,23,4)},u.prototype.readFloatBE=function(r,n){return r=r>>>0,n||j(r,4,this.length),t.read(this,r,!1,23,4)},u.prototype.readDoubleLE=function(r,n){return r=r>>>0,n||j(r,8,this.length),t.read(this,r,!0,52,8)},u.prototype.readDoubleBE=function(r,n){return r=r>>>0,n||j(r,8,this.length),t.read(this,r,!1,52,8)};function z(o,r,n,a,p,h){if(!u.isBuffer(o))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>p||r<h)throw new RangeError('"value" argument is out of bounds');if(n+a>o.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(r,n,a,p){if(r=+r,n=n>>>0,a=a>>>0,!p){let B=Math.pow(2,8*a)-1;z(this,r,n,a,B,0)}let h=1,g=0;for(this[n]=r&255;++g<a&&(h*=256);)this[n+g]=r/h&255;return n+a},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(r,n,a,p){if(r=+r,n=n>>>0,a=a>>>0,!p){let B=Math.pow(2,8*a)-1;z(this,r,n,a,B,0)}let h=a-1,g=1;for(this[n+h]=r&255;--h>=0&&(g*=256);)this[n+h]=r/g&255;return n+a},u.prototype.writeUint8=u.prototype.writeUInt8=function(r,n,a){return r=+r,n=n>>>0,a||z(this,r,n,1,255,0),this[n]=r&255,n+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(r,n,a){return r=+r,n=n>>>0,a||z(this,r,n,2,65535,0),this[n]=r&255,this[n+1]=r>>>8,n+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(r,n,a){return r=+r,n=n>>>0,a||z(this,r,n,2,65535,0),this[n]=r>>>8,this[n+1]=r&255,n+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(r,n,a){return r=+r,n=n>>>0,a||z(this,r,n,4,4294967295,0),this[n+3]=r>>>24,this[n+2]=r>>>16,this[n+1]=r>>>8,this[n]=r&255,n+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(r,n,a){return r=+r,n=n>>>0,a||z(this,r,n,4,4294967295,0),this[n]=r>>>24,this[n+1]=r>>>16,this[n+2]=r>>>8,this[n+3]=r&255,n+4};function Tt(o,r,n,a,p){St(r,a,p,o,n,7);let h=Number(r&BigInt(4294967295));o[n++]=h,h=h>>8,o[n++]=h,h=h>>8,o[n++]=h,h=h>>8,o[n++]=h;let g=Number(r>>BigInt(32)&BigInt(4294967295));return o[n++]=g,g=g>>8,o[n++]=g,g=g>>8,o[n++]=g,g=g>>8,o[n++]=g,n}function Et(o,r,n,a,p){St(r,a,p,o,n,7);let h=Number(r&BigInt(4294967295));o[n+7]=h,h=h>>8,o[n+6]=h,h=h>>8,o[n+5]=h,h=h>>8,o[n+4]=h;let g=Number(r>>BigInt(32)&BigInt(4294967295));return o[n+3]=g,g=g>>8,o[n+2]=g,g=g>>8,o[n+1]=g,g=g>>8,o[n]=g,n+8}u.prototype.writeBigUInt64LE=le(function(r,n=0){return Tt(this,r,n,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=le(function(r,n=0){return Et(this,r,n,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(r,n,a,p){if(r=+r,n=n>>>0,!p){let M=Math.pow(2,8*a-1);z(this,r,n,a,M-1,-M)}let h=0,g=1,B=0;for(this[n]=r&255;++h<a&&(g*=256);)r<0&&B===0&&this[n+h-1]!==0&&(B=1),this[n+h]=(r/g>>0)-B&255;return n+a},u.prototype.writeIntBE=function(r,n,a,p){if(r=+r,n=n>>>0,!p){let M=Math.pow(2,8*a-1);z(this,r,n,a,M-1,-M)}let h=a-1,g=1,B=0;for(this[n+h]=r&255;--h>=0&&(g*=256);)r<0&&B===0&&this[n+h+1]!==0&&(B=1),this[n+h]=(r/g>>0)-B&255;return n+a},u.prototype.writeInt8=function(r,n,a){return r=+r,n=n>>>0,a||z(this,r,n,1,127,-128),r<0&&(r=255+r+1),this[n]=r&255,n+1},u.prototype.writeInt16LE=function(r,n,a){return r=+r,n=n>>>0,a||z(this,r,n,2,32767,-32768),this[n]=r&255,this[n+1]=r>>>8,n+2},u.prototype.writeInt16BE=function(r,n,a){return r=+r,n=n>>>0,a||z(this,r,n,2,32767,-32768),this[n]=r>>>8,this[n+1]=r&255,n+2},u.prototype.writeInt32LE=function(r,n,a){return r=+r,n=n>>>0,a||z(this,r,n,4,2147483647,-2147483648),this[n]=r&255,this[n+1]=r>>>8,this[n+2]=r>>>16,this[n+3]=r>>>24,n+4},u.prototype.writeInt32BE=function(r,n,a){return r=+r,n=n>>>0,a||z(this,r,n,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[n]=r>>>24,this[n+1]=r>>>16,this[n+2]=r>>>8,this[n+3]=r&255,n+4},u.prototype.writeBigInt64LE=le(function(r,n=0){return Tt(this,r,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=le(function(r,n=0){return Et(this,r,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function It(o,r,n,a,p,h){if(n+a>o.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function kt(o,r,n,a,p){return r=+r,n=n>>>0,p||It(o,r,n,4),t.write(o,r,n,a,23,4),n+4}u.prototype.writeFloatLE=function(r,n,a){return kt(this,r,n,!0,a)},u.prototype.writeFloatBE=function(r,n,a){return kt(this,r,n,!1,a)};function Rt(o,r,n,a,p){return r=+r,n=n>>>0,p||It(o,r,n,8),t.write(o,r,n,a,52,8),n+8}u.prototype.writeDoubleLE=function(r,n,a){return Rt(this,r,n,!0,a)},u.prototype.writeDoubleBE=function(r,n,a){return Rt(this,r,n,!1,a)},u.prototype.copy=function(r,n,a,p){if(!u.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!p&&p!==0&&(p=this.length),n>=r.length&&(n=r.length),n||(n=0),p>0&&p<a&&(p=a),p===a||r.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(a<0||a>=this.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("sourceEnd out of bounds");p>this.length&&(p=this.length),r.length-n<p-a&&(p=r.length-n+a);let h=p-a;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(n,a,p):Uint8Array.prototype.set.call(r,this.subarray(a,p),n),h},u.prototype.fill=function(r,n,a,p){if(typeof r=="string"){if(typeof n=="string"?(p=n,n=0,a=this.length):typeof a=="string"&&(p=a,a=this.length),p!==void 0&&typeof p!="string")throw new TypeError("encoding must be a string");if(typeof p=="string"&&!u.isEncoding(p))throw new TypeError("Unknown encoding: "+p);if(r.length===1){let g=r.charCodeAt(0);(p==="utf8"&&g<128||p==="latin1")&&(r=g)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(n<0||this.length<n||this.length<a)throw new RangeError("Out of range index");if(a<=n)return this;n=n>>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let h;if(typeof r=="number")for(h=n;h<a;++h)this[h]=r;else{let g=u.isBuffer(r)?r:u.from(r,p),B=g.length;if(B===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(h=0;h<a-n;++h)this[h+n]=g[h%B]}return this};let ve={};function at(o,r,n){ve[o]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${o}]`,this.stack,delete this.name}get code(){return o}set code(p){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:p,writable:!0})}toString(){return`${this.name} [${o}]: ${this.message}`}}}at("ERR_BUFFER_OUT_OF_BOUNDS",function(o){return o?`${o} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),at("ERR_INVALID_ARG_TYPE",function(o,r){return`The "${o}" argument must be of type number. Received type ${typeof r}`},TypeError),at("ERR_OUT_OF_RANGE",function(o,r,n){let a=`The value of "${o}" is out of range.`,p=n;return Number.isInteger(n)&&Math.abs(n)>2**32?p=Bt(String(n)):typeof n=="bigint"&&(p=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(p=Bt(p)),p+="n"),a+=` It must be ${r}. Received ${p}`,a},RangeError);function Bt(o){let r="",n=o.length,a=o[0]==="-"?1:0;for(;n>=a+4;n-=3)r=`_${o.slice(n-3,n)}${r}`;return`${o.slice(0,n)}${r}`}function zn(o,r,n){Ae(r,"offset"),(o[r]===void 0||o[r+n]===void 0)&&ke(r,o.length-(n+1))}function St(o,r,n,a,p,h){if(o>n||o<r){let g=typeof r=="bigint"?"n":"",B;throw r===0||r===BigInt(0)?B=`>= 0${g} and < 2${g} ** ${(h+1)*8}${g}`:B=`>= -(2${g} ** ${(h+1)*8-1}${g}) and < 2 ** ${(h+1)*8-1}${g}`,new ve.ERR_OUT_OF_RANGE("value",B,o)}zn(a,p,h)}function Ae(o,r){if(typeof o!="number")throw new ve.ERR_INVALID_ARG_TYPE(r,"number",o)}function ke(o,r,n){throw Math.floor(o)!==o?(Ae(o,n),new ve.ERR_OUT_OF_RANGE("offset","an integer",o)):r<0?new ve.ERR_BUFFER_OUT_OF_BOUNDS:new ve.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${r}`,o)}let Hn=/[^+/0-9A-Za-z-_]/g;function Yn(o){if(o=o.split("=")[0],o=o.trim().replace(Hn,""),o.length<2)return"";for(;o.length%4!==0;)o=o+"=";return o}function ut(o,r){r=r||1/0;let n,a=o.length,p=null,h=[];for(let g=0;g<a;++g){if(n=o.charCodeAt(g),n>55295&&n<57344){if(!p){if(n>56319){(r-=3)>-1&&h.push(239,191,189);continue}else if(g+1===a){(r-=3)>-1&&h.push(239,191,189);continue}p=n;continue}if(n<56320){(r-=3)>-1&&h.push(239,191,189),p=n;continue}n=(p-55296<<10|n-56320)+65536}else p&&(r-=3)>-1&&h.push(239,191,189);if(p=null,n<128){if((r-=1)<0)break;h.push(n)}else if(n<2048){if((r-=2)<0)break;h.push(n>>6|192,n&63|128)}else if(n<65536){if((r-=3)<0)break;h.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((r-=4)<0)break;h.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return h}function Jn(o){let r=[];for(let n=0;n<o.length;++n)r.push(o.charCodeAt(n)&255);return r}function Xn(o,r){let n,a,p,h=[];for(let g=0;g<o.length&&!((r-=2)<0);++g)n=o.charCodeAt(g),a=n>>8,p=n%256,h.push(p),h.push(a);return h}function Nt(o){return l.toByteArray(Yn(o))}function We(o,r,n,a){let p;for(p=0;p<a&&!(p+n>=r.length||p>=o.length);++p)r[p+n]=o[p];return p}function Q(o,r){return o instanceof r||o!=null&&o.constructor!=null&&o.constructor.name!=null&&o.constructor.name===r.name}function lt(o){return o!==o}let Qn=(function(){let o="0123456789abcdef",r=new Array(256);for(let n=0;n<16;++n){let a=n*16;for(let p=0;p<16;++p)r[a+p]=o[n]+o[p]}return r})();function le(o){return typeof BigInt>"u"?Zn:o}function Zn(){throw new Error("BigInt not supported")}return ce}var Re,Jr,He,Xr,ce,Qr,en=Te(()=>{"use strict";c();m();d();Re={},Jr=!1;He={},Xr=!1;ce={},Qr=!1});var de,v,Mo,$o,tn=Te(()=>{"use strict";c();m();d();en();de=Zr();de.Buffer;de.SlowBuffer;de.INSPECT_MAX_BYTES;de.kMaxLength;v=de.Buffer,Mo=de.INSPECT_MAX_BYTES,$o=de.kMaxLength});var m=Te(()=>{"use strict";tn()});c();m();d();c();m();d();c();m();d();c();m();d();c();m();d();c();m();d();c();m();d();c();m();d();c();m();d();var ii=typeof global=="object"&&global&&global.Object===Object&&global,rn=ii;var oi=typeof self=="object"&&self&&self.Object===Object&&self,si=rn||oi||Function("return this")(),nn=si;var ai=nn.Symbol,re=ai;c();m();d();var on=Object.prototype,ui=on.hasOwnProperty,li=on.toString,Be=re?re.toStringTag:void 0;function pi(l){var t=ui.call(l,Be),e=l[Be];try{l[Be]=void 0;var i=!0}catch{}var s=li.call(l);return i&&(t?l[Be]=e:delete l[Be]),s}var sn=pi;c();m();d();var fi=Object.prototype,ci=fi.toString;function di(l){return ci.call(l)}var an=di;var mi="[object Null]",hi="[object Undefined]",un=re?re.toStringTag:void 0;function yi(l){return l==null?l===void 0?hi:mi:un&&un in Object(l)?sn(l):an(l)}var ln=yi;c();m();d();function gi(l){return l!=null&&typeof l=="object"}var pn=gi;var xi="[object Symbol]";function wi(l){return typeof l=="symbol"||pn(l)&&ln(l)==xi}var fn=wi;c();m();d();c();m();d();function bi(l,t){for(var e=-1,i=l==null?0:l.length,s=Array(i);++e<i;)s[e]=t(l[e],e,l);return s}var cn=bi;c();m();d();var vi=Array.isArray,dn=vi;var Ai=1/0,mn=re?re.prototype:void 0,hn=mn?mn.toString:void 0;function yn(l){if(typeof l=="string")return l;if(dn(l))return cn(l,yn)+"";if(fn(l))return hn?hn.call(l):"";var t=l+"";return t=="0"&&1/l==-Ai?"-0":t}var gn=yn;c();m();d();function Ti(l){return l==null?"":gn(l)}var xn=Ti;c();m();d();c();m();d();c();m();d();c();m();d();function Ei(l,t,e){var i=-1,s=l.length;t<0&&(t=-t>s?0:s+t),e=e>s?s:e,e<0&&(e+=s),s=t>e?0:e-t>>>0,t>>>=0;for(var f=Array(s);++i<s;)f[i]=l[i+t];return f}var wn=Ei;function Ii(l,t,e){var i=l.length;return e=e===void 0?i:e,!t&&e>=i?l:wn(l,t,e)}var bn=Ii;c();m();d();var ki="\\ud800-\\udfff",Ri="\\u0300-\\u036f",Bi="\\ufe20-\\ufe2f",Si="\\u20d0-\\u20ff",Ni=Ri+Bi+Si,Li="\\ufe0e\\ufe0f",Ci="\\u200d",Fi=RegExp("["+Ci+ki+Ni+Li+"]");function Pi(l){return Fi.test(l)}var Ye=Pi;c();m();d();c();m();d();function Ui(l){return l.split("")}var vn=Ui;c();m();d();var An="\\ud800-\\udfff",Mi="\\u0300-\\u036f",$i="\\ufe20-\\ufe2f",Di="\\u20d0-\\u20ff",Oi=Mi+$i+Di,_i="\\ufe0e\\ufe0f",ji="["+An+"]",dt="["+Oi+"]",mt="\\ud83c[\\udffb-\\udfff]",Vi="(?:"+dt+"|"+mt+")",Tn="[^"+An+"]",En="(?:\\ud83c[\\udde6-\\uddff]){2}",In="[\\ud800-\\udbff][\\udc00-\\udfff]",qi="\\u200d",kn=Vi+"?",Rn="["+_i+"]?",Wi="(?:"+qi+"(?:"+[Tn,En,In].join("|")+")"+Rn+kn+")*",Gi=Rn+kn+Wi,Ki="(?:"+[Tn+dt+"?",dt,En,In,ji].join("|")+")",zi=RegExp(mt+"(?="+mt+")|"+Ki+Gi,"g");function Hi(l){return l.match(zi)||[]}var Bn=Hi;function Yi(l){return Ye(l)?Bn(l):vn(l)}var Sn=Yi;function Ji(l){return function(t){t=xn(t);var e=Ye(t)?Sn(t):void 0,i=e?e[0]:t.charAt(0),s=e?bn(e,1).join(""):t.slice(1);return i[l]()+s}}var Nn=Ji;var Xi=Nn("toUpperCase"),ht=Xi;c();m();d();function L(l){throw new Error("Unexpected value: "+JSON.stringify(l))}c();m();d();function Se(l){return Object.keys(l)}c();m();d();c();m();d();c();m();d();var Ne=b.env.FERN_STACK_TRACK?.toLowerCase()??"",Z=Ne!==""&&Ne!=="0"&&Ne!=="false",yt=["single","multiline","box"].includes(Ne)?Ne:"single";Z&&(Error.stackTraceLimit=50);var Qi=new Set(["SdkGeneratorCLI","runCli","LoggerImpl","Array.forEach"]),Zi=new Set(["stacktrace"]);function Xe({maxFrames:l=50,skip:t=0,filterPaths:e=[],filterFunctions:i=[],stopOn:s=[],filterNode:f=!0,filterJs:u=!0,formatFilename:T=w=>w}={}){if(!Z)return[];i=[...i,...Qi],e=[...e,...Zi],s=[...s,"runInteractiveTask"];let w=!1;return(new Error().stack??"").split(`
|
|
2
2
|
`).map(k=>{let R=k.match(/at\s+(.*)\s+\((.*):(\d+):(\d+)\)/);if(R&&R.length===5){let[,C,D,E,I]=R;if(!C||!D||!E||!I)return;if(w||s.some(F=>C?.includes(F))){w=!0;return}switch(C){case"Object.<anonymous>":C="";break;case"Object.object":case"Object.alias":case"Object.union":case"Object.enum":case"Object.undiscriminatedUnion":C=`${C.substring(C.indexOf(".")+1)}()=> { ... }`;break}return{fn:C,path:T(D),position:`${E}:${I}`}}}).filter(k=>k&&!i.some(R=>k.fn.includes(R))&&!(f&&k.path?.startsWith("node:"))&&!(u&&k.path?.endsWith(".js"))&&!e.some(R=>k.path.includes(R))).slice(t,t+l)}var Je=class{constructor({maxFrames:t=50,skip:e=0,filterPaths:i=[],filterFunctions:s=[],stopOn:f=[],filterNode:u=!0,filterJs:T=!0,multiline:w=!1,formatFilename:k=R=>R}={}){y(this,"maxFrames");y(this,"skip");y(this,"filterPaths");y(this,"filterFunctions");y(this,"stopOn");y(this,"filterNode");y(this,"filterJs");y(this,"multiline");y(this,"formatFilename");y(this,"tracking",new WeakMap);this.maxFrames=t,this.skip=e,this.filterPaths=i,this.filterFunctions=s,this.stopOn=f,this.filterNode=u,this.filterJs=T,this.multiline=w,this.formatFilename=k}tag(t){let e=this.tracking.get(t)||new Set;Xe({maxFrames:this.maxFrames,skip:this.skip,filterPaths:this.filterPaths,filterFunctions:this.filterFunctions,stopOn:this.stopOn,filterNode:this.filterNode,filterJs:this.filterJs,formatFilename:this.formatFilename}).forEach(i=>e.add(i)),this.tracking.set(t,e)}trace(t){if(!Z)return"";let e=this.tracking.get(t);return e?[...e].map(i=>`${this.multiline?`
|
|
3
3
|
`:""}${i.fn} - ${i.path}:${i.position}`).join(""):""}frames(t){let e=this.tracking.get(t);return e?[...e]:[]}free(t){this.tracking.delete(t)}clear(){this.tracking=new WeakMap}},gt;function Ln({maxFrames:l=50,skip:t=0,filterPaths:e=[],filterFunctions:i=[],stopOn:s=[],filterNode:f=!0,filterJs:u=!0,multiline:T=!1,formatFilename:w=k=>k}={}){Z&&(gt??(gt=new Je({maxFrames:l,skip:t,filterPaths:e,filterFunctions:i,stopOn:s,filterNode:f,filterJs:u,multiline:T,formatFilename:w})))}function Cn(l){gt?.tag(l)}function xt(l){return gt?.frames(l)??[]}var me=class{constructor(){Cn(this)}};c();m();d();var Qe=class{formatMultiple(t){return Promise.all(t.map(e=>this.format(e)))}formatMultipleSync(t){return t.map(e=>this.formatSync(e))}},Le=class extends Qe{async format(t){return t}formatSync(t){return t}};c();m();d();c();m();d();c();m();d();var J=class extends me{constructor(e){super();y(this,"value");this.value=e}write(e){typeof this.value=="string"?e.write(this.value):typeof this.value=="function"?this.value(e):this.value.write(e)}};var eo=4;Ln({skip:0,maxFrames:15,filterFunctions:["Abstract"]});var Ce=class{constructor(){y(this,"lineBuffer",[]);y(this,"indentLevel",0);y(this,"hasWrittenAnything",!1);y(this,"lastCharacterIsSemicolon",!1);y(this,"lastCharacterIsNewline",!1);y(this,"nodeStackFrames",[])}get buffer(){return Z&&this.nodeStackFrames.length>0&&this.writeInternal(`
|
|
4
4
|
`),this.lineBuffer.join(`
|