UNPKG

diesel-core

Version:

Web framework built on Web Standards

103 lines 122 kB
var jZ=Object.create;var{getPrototypeOf:IZ,defineProperty:s0,getOwnPropertyNames:V1,getOwnPropertyDescriptor:CZ}=Object,G1=Object.prototype.hasOwnProperty;var NZ=(f,J,Z)=>{Z=f!=null?jZ(IZ(f)):{};let z=J||!f||!f.__esModule?s0(Z,"default",{value:f,enumerable:!0}):Z;for(let Q of V1(f))if(!G1.call(z,Q))s0(z,Q,{get:()=>f[Q],enumerable:!0});return z},B1=new WeakMap,a0=(f)=>{var J=B1.get(f),Z;if(J)return J;if(J=s0({},"__esModule",{value:!0}),f&&typeof f==="object"||typeof f==="function")V1(f).map((z)=>!G1.call(J,z)&&s0(J,z,{get:()=>f[z],enumerable:!(Z=CZ(f,z))||Z.enumerable}));return B1.set(f,J),J},W0=(f,J)=>()=>(J||f((J={exports:{}}).exports,J),J.exports);var F1=(f,J)=>{for(var Z in J)s0(f,Z,{get:J[Z],enumerable:!0,configurable:!0,set:(z)=>J[Z]=()=>z})};var K1=(f,J)=>()=>(f&&(J=f(f=0)),J);var N1={};F1(N1,{types:()=>gZ,promisify:()=>q1,log:()=>M1,isUndefined:()=>u0,isSymbol:()=>uZ,isString:()=>Uf,isRegExp:()=>Yf,isPrimitive:()=>yZ,isObject:()=>y0,isNumber:()=>L1,isNullOrUndefined:()=>kZ,isNull:()=>Xf,isFunction:()=>$f,isError:()=>Wf,isDate:()=>bf,isBuffer:()=>cZ,isBoolean:()=>xf,isArray:()=>D1,inspect:()=>_0,inherits:()=>T1,format:()=>vf,deprecate:()=>EZ,default:()=>nZ,debuglog:()=>PZ,callbackifyOnRejected:()=>gf,callbackify:()=>j1,_extend:()=>hf,TextEncoder:()=>I1,TextDecoder:()=>C1});function vf(f,...J){if(!Uf(f)){var Z=[f];for(var z=0;z<J.length;z++)Z.push(_0(J[z]));return Z.join(" ")}var z=0,Q=J.length,Y=String(f).replace(RZ,function(X){if(X==="%%")return"%";if(z>=Q)return X;switch(X){case"%s":return String(J[z++]);case"%d":return Number(J[z++]);case"%j":try{return JSON.stringify(J[z++])}catch(H){return"[Circular]"}default:return X}});for(var $=J[z];z<Q;$=J[++z])if(Xf($)||!y0($))Y+=" "+$;else Y+=" "+_0($);return Y}function EZ(f,J){if(typeof process>"u"||process?.noDeprecation===!0)return f;var Z=!1;function z(...Q){if(!Z){if(process.throwDeprecation)throw Error(J);else if(process.traceDeprecation)console.trace(J);else console.error(J);Z=!0}return f.apply(this,...Q)}return z}function SZ(f,J){var Z=_0.styles[J];if(Z)return"\x1B["+_0.colors[Z][0]+"m"+f+"\x1B["+_0.colors[Z][1]+"m";else return f}function bZ(f,J){return f}function vZ(f){var J={};return f.forEach(function(Z,z){J[Z]=!0}),J}function Hf(f,J,Z){if(f.customInspect&&J&&$f(J.inspect)&&J.inspect!==_0&&!(J.constructor&&J.constructor.prototype===J)){var z=J.inspect(Z,f);if(!Uf(z))z=Hf(f,z,Z);return z}var Q=xZ(f,J);if(Q)return Q;var Y=Object.keys(J),$=vZ(Y);if(f.showHidden)Y=Object.getOwnPropertyNames(J);if(Wf(J)&&(Y.indexOf("message")>=0||Y.indexOf("description")>=0))return Ef(J);if(Y.length===0){if($f(J)){var X=J.name?": "+J.name:"";return f.stylize("[Function"+X+"]","special")}if(Yf(J))return f.stylize(RegExp.prototype.toString.call(J),"regexp");if(bf(J))return f.stylize(Date.prototype.toString.call(J),"date");if(Wf(J))return Ef(J)}var H="",V=!1,G=["{","}"];if(D1(J))V=!0,G=["[","]"];if($f(J)){var D=J.name?": "+J.name:"";H=" [Function"+D+"]"}if(Yf(J))H=" "+RegExp.prototype.toString.call(J);if(bf(J))H=" "+Date.prototype.toUTCString.call(J);if(Wf(J))H=" "+Ef(J);if(Y.length===0&&(!V||J.length==0))return G[0]+H+G[1];if(Z<0)if(Yf(J))return f.stylize(RegExp.prototype.toString.call(J),"regexp");else return f.stylize("[Object]","special");f.seen.push(J);var K;if(V)K=_Z(f,J,Z,$,Y);else K=Y.map(function(I){return Sf(f,J,Z,$,I,V)});return f.seen.pop(),hZ(K,H,G)}function xZ(f,J){if(u0(J))return f.stylize("undefined","undefined");if(Uf(J)){var Z="'"+JSON.stringify(J).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return f.stylize(Z,"string")}if(L1(J))return f.stylize(""+J,"number");if(xf(J))return f.stylize(""+J,"boolean");if(Xf(J))return f.stylize("null","null")}function Ef(f){return"["+Error.prototype.toString.call(f)+"]"}function _Z(f,J,Z,z,Q){var Y=[];for(var $=0,X=J.length;$<X;++$)if(A1(J,String($)))Y.push(Sf(f,J,Z,z,String($),!0));else Y.push("");return Q.forEach(function(H){if(!H.match(/^\d+$/))Y.push(Sf(f,J,Z,z,H,!0))}),Y}function Sf(f,J,Z,z,Q,Y){var $,X,H;if(H=Object.getOwnPropertyDescriptor(J,Q)||{value:J[Q]},H.get)if(H.set)X=f.stylize("[Getter/Setter]","special");else X=f.stylize("[Getter]","special");else if(H.set)X=f.stylize("[Setter]","special");if(!A1(z,Q))$="["+Q+"]";if(!X)if(f.seen.indexOf(H.value)<0){if(Xf(Z))X=Hf(f,H.value,null);else X=Hf(f,H.value,Z-1);if(X.indexOf(`
`)>-1)if(Y)X=X.split(`
`).map(function(V){return"  "+V}).join(`
`).slice(2);else X=`
`+X.split(`
`).map(function(V){return"   "+V}).join(`
`)}else X=f.stylize("[Circular]","special");if(u0($)){if(Y&&Q.match(/^\d+$/))return X;if($=JSON.stringify(""+Q),$.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/))$=$.slice(1,-1),$=f.stylize($,"name");else $=$.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),$=f.stylize($,"string")}return $+": "+X}function hZ(f,J,Z){var z=0,Q=f.reduce(function(Y,$){if(z++,$.indexOf(`
`)>=0)z++;return Y+$.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(Q>60)return Z[0]+(J===""?"":J+`
 `)+" "+f.join(`,
  `)+" "+Z[1];return Z[0]+J+" "+f.join(", ")+" "+Z[1]}function D1(f){return Array.isArray(f)}function xf(f){return typeof f==="boolean"}function Xf(f){return f===null}function kZ(f){return f==null}function L1(f){return typeof f==="number"}function Uf(f){return typeof f==="string"}function uZ(f){return typeof f==="symbol"}function u0(f){return f===void 0}function Yf(f){return y0(f)&&_f(f)==="[object RegExp]"}function y0(f){return typeof f==="object"&&f!==null}function bf(f){return y0(f)&&_f(f)==="[object Date]"}function Wf(f){return y0(f)&&(_f(f)==="[object Error]"||f instanceof Error)}function $f(f){return typeof f==="function"}function yZ(f){return f===null||typeof f==="boolean"||typeof f==="number"||typeof f==="string"||typeof f==="symbol"||typeof f>"u"}function cZ(f){return f instanceof Buffer}function _f(f){return Object.prototype.toString.call(f)}function Pf(f){return f<10?"0"+f.toString(10):f.toString(10)}function mZ(){var f=new Date,J=[Pf(f.getHours()),Pf(f.getMinutes()),Pf(f.getSeconds())].join(":");return[f.getDate(),dZ[f.getMonth()],J].join(" ")}function M1(...f){console.log("%s - %s",mZ(),vf.apply(null,f))}function T1(f,J){if(J)f.super_=J,f.prototype=Object.create(J.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}})}function hf(f,J){if(!J||!y0(J))return f;var Z=Object.keys(J),z=Z.length;while(z--)f[Z[z]]=J[Z[z]];return f}function A1(f,J){return Object.prototype.hasOwnProperty.call(f,J)}function gf(f,J){if(!f){var Z=Error("Promise was rejected with a falsy value");Z.reason=f,f=Z}return J(f)}function j1(f){if(typeof f!=="function")throw TypeError('The "original" argument must be of type Function');function J(...Z){var z=Z.pop();if(typeof z!=="function")throw TypeError("The last argument must be of type Function");var Q=this,Y=function(...$){return z.apply(Q,...$)};f.apply(this,Z).then(function($){process.nextTick(Y.bind(null,null,$))},function($){process.nextTick(gf.bind(null,$,Y))})}return Object.setPrototypeOf(J,Object.getPrototypeOf(f)),Object.defineProperties(J,Object.getOwnPropertyDescriptors(f)),J}var RZ,PZ,_0,gZ=()=>{},dZ,q1,I1,C1,nZ;var R1=K1(()=>{RZ=/%[sdj%]/g;PZ=((f={},J={},Z)=>((Z=typeof process<"u"&&!1)&&(Z=Z.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase()),J=new RegExp("^"+Z+"$","i"),(z)=>{if(z=z.toUpperCase(),!f[z])if(J.test(z))f[z]=function(...Q){console.error("%s: %s",z,pid,vf.apply(null,...Q))};else f[z]=function(){};return f[z]}))(),_0=((f)=>(f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},f.custom=Symbol.for("nodejs.util.inspect.custom"),f))(function(f,J,...Z){var z={seen:[],stylize:bZ};if(Z.length>=1)z.depth=Z[0];if(Z.length>=2)z.colors=Z[1];if(xf(J))z.showHidden=J;else if(J)hf(z,J);if(u0(z.showHidden))z.showHidden=!1;if(u0(z.depth))z.depth=2;if(u0(z.colors))z.colors=!1;if(z.colors)z.stylize=SZ;return Hf(z,f,z.depth)});dZ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];q1=((f)=>(f.custom=Symbol.for("nodejs.util.promisify.custom"),f))(function(f){if(typeof f!=="function")throw TypeError('The "original" argument must be of type Function');if(kCustomPromisifiedSymbol&&f[kCustomPromisifiedSymbol]){var J=f[kCustomPromisifiedSymbol];if(typeof J!=="function")throw TypeError('The "nodejs.util.promisify.custom" argument must be of type Function');return Object.defineProperty(J,kCustomPromisifiedSymbol,{value:J,enumerable:!1,writable:!1,configurable:!0}),J}function J(...Z){var z,Q,Y=new Promise(function($,X){z=$,Q=X});Z.push(function($,X){if($)Q($);else z(X)});try{f.apply(this,Z)}catch($){Q($)}return Y}if(Object.setPrototypeOf(J,Object.getPrototypeOf(f)),kCustomPromisifiedSymbol)Object.defineProperty(J,kCustomPromisifiedSymbol,{value:J,enumerable:!1,writable:!1,configurable:!0});return Object.defineProperties(J,Object.getOwnPropertyDescriptors(f))});({TextEncoder:I1,TextDecoder:C1}=globalThis),nZ={TextEncoder:I1,TextDecoder:C1,promisify:q1,log:M1,inherits:T1,_extend:hf,callbackifyOnRejected:gf,callbackify:j1}});var Jf={};F1(Jf,{throws:()=>Y9,strictEqual:()=>Q9,strict:()=>z9,rejects:()=>Z9,ok:()=>J9,notStrictEqual:()=>f9,notEqual:()=>e8,notDeepStrictEqual:()=>t8,notDeepEqual:()=>a8,match:()=>s8,ifError:()=>r8,fail:()=>o8,equal:()=>p8,doesNotThrow:()=>i8,doesNotReject:()=>l8,doesNotMatch:()=>n8,default:()=>W9,deepStrictEqual:()=>m8,deepEqual:()=>d8,CallTracker:()=>c8,AssertionError:()=>y8});var lZ,iZ,E1,pZ,oZ,rZ=(f,J,Z)=>{Z=f!=null?lZ(iZ(f)):{};let z=J||!f||!f.__esModule?E1(Z,"default",{value:f,enumerable:!0}):Z;for(let Q of pZ(f))if(!oZ.call(z,Q))E1(z,Q,{get:()=>f[Q],enumerable:!0});return z},x=(f,J)=>()=>(J||f((J={exports:{}}).exports,J),J.exports),uf,wf,yf,sZ,aZ,tZ,eZ,P1,e0,f8,J8,Z8,z8,Q8,Y8,W8,$8,H8,X8,c0,Of,U8,S1,b1,w8,ff,cf,df,O8,v1,mf,B8,nf,x1,lf,d0,V8,G8,F8,K8,D8,L8,M8,T8,A8,_1,h1,q8,j8,Bf,g1,I8,C8,N8,R8,E8,t0,k1,P8,u1,S8,y1,b8,v8,c1,pf,x8,Vf,_8,h8,d1,m1,g8,k8,u8,kf,n1,y8,c8,d8,m8,n8,l8,i8,p8,o8,r8,s8,a8,t8,e8,f9,J9,Z9,z9,Q9,Y9,W9;var Zf=K1(()=>{lZ=Object.create,{getPrototypeOf:iZ,defineProperty:E1,getOwnPropertyNames:pZ}=Object,oZ=Object.prototype.hasOwnProperty,uf=x((f,J)=>{J.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var Z={},z=Symbol("test"),Q=Object(z);if(typeof z==="string")return!1;if(Object.prototype.toString.call(z)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(Q)!=="[object Symbol]")return!1;var Y=42;Z[z]=Y;for(var $ in Z)return!1;if(typeof Object.keys==="function"&&Object.keys(Z).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(Z).length!==0)return!1;var X=Object.getOwnPropertySymbols(Z);if(X.length!==1||X[0]!==z)return!1;if(!Object.prototype.propertyIsEnumerable.call(Z,z))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var H=Object.getOwnPropertyDescriptor(Z,z);if(H.value!==Y||H.enumerable!==!0)return!1}return!0}}),wf=x((f,J)=>{var Z=uf();J.exports=function(){return Z()&&!!Symbol.toStringTag}}),yf=x((f,J)=>{J.exports=Object}),sZ=x((f,J)=>{J.exports=Error}),aZ=x((f,J)=>{J.exports=EvalError}),tZ=x((f,J)=>{J.exports=RangeError}),eZ=x((f,J)=>{J.exports=ReferenceError}),P1=x((f,J)=>{J.exports=SyntaxError}),e0=x((f,J)=>{J.exports=TypeError}),f8=x((f,J)=>{J.exports=URIError}),J8=x((f,J)=>{J.exports=Math.abs}),Z8=x((f,J)=>{J.exports=Math.floor}),z8=x((f,J)=>{J.exports=Math.max}),Q8=x((f,J)=>{J.exports=Math.min}),Y8=x((f,J)=>{J.exports=Math.pow}),W8=x((f,J)=>{J.exports=Math.round}),$8=x((f,J)=>{J.exports=Number.isNaN||function(Z){return Z!==Z}}),H8=x((f,J)=>{var Z=$8();J.exports=function(z){if(Z(z)||z===0)return z;return z<0?-1:1}}),X8=x((f,J)=>{J.exports=Object.getOwnPropertyDescriptor}),c0=x((f,J)=>{var Z=X8();if(Z)try{Z([],"length")}catch(z){Z=null}J.exports=Z}),Of=x((f,J)=>{var Z=Object.defineProperty||!1;if(Z)try{Z({},"a",{value:1})}catch(z){Z=!1}J.exports=Z}),U8=x((f,J)=>{var Z=typeof Symbol<"u"&&Symbol,z=uf();J.exports=function(){if(typeof Z!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof Z("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return z()}}),S1=x((f,J)=>{J.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),b1=x((f,J)=>{var Z=yf();J.exports=Z.getPrototypeOf||null}),w8=x((f,J)=>{var Z="Function.prototype.bind called on incompatible ",z=Object.prototype.toString,Q=Math.max,Y="[object Function]",$=function(V,G){var D=[];for(var K=0;K<V.length;K+=1)D[K]=V[K];for(var I=0;I<G.length;I+=1)D[I+V.length]=G[I];return D},X=function(V,G){var D=[];for(var K=G||0,I=0;K<V.length;K+=1,I+=1)D[I]=V[K];return D},H=function(V,G){var D="";for(var K=0;K<V.length;K+=1)if(D+=V[K],K+1<V.length)D+=G;return D};J.exports=function(V){var G=this;if(typeof G!=="function"||z.apply(G)!==Y)throw TypeError(Z+G);var D=X(arguments,1),K,I=function(){if(this instanceof K){var k=G.apply(this,$(D,arguments));if(Object(k)===k)return k;return this}return G.apply(V,$(D,arguments))},E=Q(0,G.length-D.length),v=[];for(var g=0;g<E;g++)v[g]="$"+g;if(K=Function("binder","return function ("+H(v,",")+"){ return binder.apply(this,arguments); }")(I),G.prototype){var b=function(){};b.prototype=G.prototype,K.prototype=new b,b.prototype=null}return K}}),ff=x((f,J)=>{var Z=w8();J.exports=Function.prototype.bind||Z}),cf=x((f,J)=>{J.exports=Function.prototype.call}),df=x((f,J)=>{J.exports=Function.prototype.apply}),O8=x((f,J)=>{J.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),v1=x((f,J)=>{var Z=ff(),z=df(),Q=cf(),Y=O8();J.exports=Y||Z.call(Q,z)}),mf=x((f,J)=>{var Z=ff(),z=e0(),Q=cf(),Y=v1();J.exports=function($){if($.length<1||typeof $[0]!=="function")throw new z("a function is required");return Y(Z,Q,$)}}),B8=x((f,J)=>{var Z=mf(),z=c0(),Q;try{Q=[].__proto__===Array.prototype}catch(H){if(!H||typeof H!=="object"||!("code"in H)||H.code!=="ERR_PROTO_ACCESS")throw H}var Y=!!Q&&z&&z(Object.prototype,"__proto__"),$=Object,X=$.getPrototypeOf;J.exports=Y&&typeof Y.get==="function"?Z([Y.get]):typeof X==="function"?function(H){return X(H==null?H:$(H))}:!1}),nf=x((f,J)=>{var Z=S1(),z=b1(),Q=B8();J.exports=Z?function(Y){return Z(Y)}:z?function(Y){if(!Y||typeof Y!=="object"&&typeof Y!=="function")throw TypeError("getProto: not an object");return z(Y)}:Q?function(Y){return Q(Y)}:null}),x1=x((f,J)=>{var Z=Function.prototype.call,z=Object.prototype.hasOwnProperty,Q=ff();J.exports=Q.call(Z,z)}),lf=x((f,J)=>{var Z,z=yf(),Q=sZ(),Y=aZ(),$=tZ(),X=eZ(),H=P1(),V=e0(),G=f8(),D=J8(),K=Z8(),I=z8(),E=Q8(),v=Y8(),g=W8(),b=H8(),k=Function,h=function(O){try{return k('"use strict"; return ('+O+").constructor;")()}catch(T){}},R=c0(),s=Of(),e=function(){throw new V},j=R?function(){try{return arguments.callee,e}catch(O){try{return R(arguments,"callee").get}catch(T){return e}}}():e,A=U8()(),C=nf(),d=b1(),r=S1(),n=df(),J0=cf(),l={},U0=typeof Uint8Array>"u"||!C?Z:C(Uint8Array),H0={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Z:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Z:ArrayBuffer,"%ArrayIteratorPrototype%":A&&C?C([][Symbol.iterator]()):Z,"%AsyncFromSyncIteratorPrototype%":Z,"%AsyncFunction%":l,"%AsyncGenerator%":l,"%AsyncGeneratorFunction%":l,"%AsyncIteratorPrototype%":l,"%Atomics%":typeof Atomics>"u"?Z:Atomics,"%BigInt%":typeof BigInt>"u"?Z:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Z:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Z:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Z:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Q,"%eval%":eval,"%EvalError%":Y,"%Float16Array%":typeof Float16Array>"u"?Z:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Z:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Z:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Z:FinalizationRegistry,"%Function%":k,"%GeneratorFunction%":l,"%Int8Array%":typeof Int8Array>"u"?Z:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Z:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Z:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&C?C(C([][Symbol.iterator]())):Z,"%JSON%":typeof JSON==="object"?JSON:Z,"%Map%":typeof Map>"u"?Z:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!C?Z:C(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":z,"%Object.getOwnPropertyDescriptor%":R,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Z:Promise,"%Proxy%":typeof Proxy>"u"?Z:Proxy,"%RangeError%":$,"%ReferenceError%":X,"%Reflect%":typeof Reflect>"u"?Z:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Z:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!C?Z:C(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Z:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&C?C(""[Symbol.iterator]()):Z,"%Symbol%":A?Symbol:Z,"%SyntaxError%":H,"%ThrowTypeError%":j,"%TypedArray%":U0,"%TypeError%":V,"%Uint8Array%":typeof Uint8Array>"u"?Z:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Z:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Z:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Z:Uint32Array,"%URIError%":G,"%WeakMap%":typeof WeakMap>"u"?Z:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Z:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Z:WeakSet,"%Function.prototype.call%":J0,"%Function.prototype.apply%":n,"%Object.defineProperty%":s,"%Object.getPrototypeOf%":d,"%Math.abs%":D,"%Math.floor%":K,"%Math.max%":I,"%Math.min%":E,"%Math.pow%":v,"%Math.round%":g,"%Math.sign%":b,"%Reflect.getPrototypeOf%":r};if(C)try{null.error}catch(O){V0=C(C(O)),H0["%Error.prototype%"]=V0}var V0,$0=function O(T){var P;if(T==="%AsyncFunction%")P=h("async function () {}");else if(T==="%GeneratorFunction%")P=h("function* () {}");else if(T==="%AsyncGeneratorFunction%")P=h("async function* () {}");else if(T==="%AsyncGenerator%"){var S=O("%AsyncGeneratorFunction%");if(S)P=S.prototype}else if(T==="%AsyncIteratorPrototype%"){var o=O("%AsyncGenerator%");if(o&&C)P=C(o.prototype)}return H0[T]=P,P},q0={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w0=ff(),W=x1(),U=w0.call(J0,Array.prototype.concat),L=w0.call(n,Array.prototype.splice),N=w0.call(J0,String.prototype.replace),y=w0.call(J0,String.prototype.slice),c=w0.call(J0,RegExp.prototype.exec),m=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,u=/\\(\\)?/g,F=function(O){var T=y(O,0,1),P=y(O,-1);if(T==="%"&&P!=="%")throw new H("invalid intrinsic syntax, expected closing `%`");else if(P==="%"&&T!=="%")throw new H("invalid intrinsic syntax, expected opening `%`");var S=[];return N(O,m,function(o,t,Z0,G0){S[S.length]=Z0?N(G0,u,"$1"):t||o}),S},w=function(O,T){var P=O,S;if(W(q0,P))S=q0[P],P="%"+S[0]+"%";if(W(H0,P)){var o=H0[P];if(o===l)o=$0(P);if(typeof o>"u"&&!T)throw new V("intrinsic "+O+" exists, but is not available. Please file an issue!");return{alias:S,name:P,value:o}}throw new H("intrinsic "+O+" does not exist!")};J.exports=function(O,T){if(typeof O!=="string"||O.length===0)throw new V("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof T!=="boolean")throw new V('"allowMissing" argument must be a boolean');if(c(/^%?[^%]*%?$/,O)===null)throw new H("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var P=F(O),S=P.length>0?P[0]:"",o=w("%"+S+"%",T),t=o.name,Z0=o.value,G0=!1,q=o.alias;if(q)S=q[0],L(P,U([0,1],q));for(var B0=1,R0=!0;B0<P.length;B0+=1){var M0=P[B0],F0=y(M0,0,1),j0=y(M0,-1);if((F0==='"'||F0==="'"||F0==="`"||(j0==='"'||j0==="'"||j0==="`"))&&F0!==j0)throw new H("property names with quotes must have matching quotes");if(M0==="constructor"||!R0)G0=!0;if(S+="."+M0,t="%"+S+"%",W(H0,t))Z0=H0[t];else if(Z0!=null){if(!(M0 in Z0)){if(!T)throw new V("base intrinsic for "+O+" exists, but the property is not available.");return}if(R&&B0+1>=P.length){var A0=R(Z0,M0);if(R0=!!A0,R0&&"get"in A0&&!("originalValue"in A0.get))Z0=A0.get;else Z0=Z0[M0]}else R0=W(Z0,M0),Z0=Z0[M0];if(R0&&!G0)H0[t]=Z0}}return Z0}}),d0=x((f,J)=>{var Z=lf(),z=mf(),Q=z([Z("%String.prototype.indexOf%")]);J.exports=function(Y,$){var X=Z(Y,!!$);if(typeof X==="function"&&Q(Y,".prototype.")>-1)return z([X]);return X}}),V8=x((f,J)=>{var Z=wf()(),z=d0(),Q=z("Object.prototype.toString"),Y=function(H){if(Z&&H&&typeof H==="object"&&Symbol.toStringTag in H)return!1;return Q(H)==="[object Arguments]"},$=function(H){if(Y(H))return!0;return H!==null&&typeof H==="object"&&"length"in H&&typeof H.length==="number"&&H.length>=0&&Q(H)!=="[object Array]"&&"callee"in H&&Q(H.callee)==="[object Function]"},X=function(){return Y(arguments)}();Y.isLegacyArguments=$,J.exports=X?Y:$}),G8=x((f,J)=>{var Z=d0(),z=wf()(),Q=x1(),Y=c0(),$;if(z){if(X=Z("RegExp.prototype.exec"),H={},V=function(){throw H},G={toString:V,valueOf:V},typeof Symbol.toPrimitive==="symbol")G[Symbol.toPrimitive]=V;$=function(I){if(!I||typeof I!=="object")return!1;var E=Y(I,"lastIndex"),v=E&&Q(E,"value");if(!v)return!1;try{X(I,G)}catch(g){return g===H}}}else D=Z("Object.prototype.toString"),K="[object RegExp]",$=function(I){if(!I||typeof I!=="object"&&typeof I!=="function")return!1;return D(I)===K};var X,H,V,G,D,K;J.exports=$}),F8=x((f,J)=>{var Z=d0(),z=G8(),Q=Z("RegExp.prototype.exec"),Y=e0();J.exports=function($){if(!z($))throw new Y("`regex` must be a RegExp");return function(X){return Q($,X)!==null}}}),K8=x((f,J)=>{var Z=function*(){}.constructor;J.exports=()=>Z}),D8=x((f,J)=>{var Z=d0(),z=F8(),Q=z(/^\s*(?:function)?\*/),Y=wf()(),$=nf(),X=Z("Object.prototype.toString"),H=Z("Function.prototype.toString"),V=K8();J.exports=function(G){if(typeof G!=="function")return!1;if(Q(H(G)))return!0;if(!Y){var D=X(G);return D==="[object GeneratorFunction]"}if(!$)return!1;var K=V();return K&&$(G)===K.prototype}}),L8=x((f,J)=>{var Z=Function.prototype.toString,z=typeof Reflect==="object"&&Reflect!==null&&Reflect.apply,Q,Y;if(typeof z==="function"&&typeof Object.defineProperty==="function")try{Q=Object.defineProperty({},"length",{get:function(){throw Y}}),Y={},z(function(){throw 42},null,Q)}catch(R){if(R!==Y)z=null}else z=null;var $=/^\s*class\b/,X=function(R){try{var s=Z.call(R);return $.test(s)}catch(e){return!1}},H=function(R){try{if(X(R))return!1;return Z.call(R),!0}catch(s){return!1}},V=Object.prototype.toString,G="[object Object]",D="[object Function]",K="[object GeneratorFunction]",I="[object HTMLAllCollection]",E="[object HTML document.all class]",v="[object HTMLCollection]",g=typeof Symbol==="function"&&!!Symbol.toStringTag,b=!(0 in[,]),k=function(){return!1};if(typeof document==="object"){if(h=document.all,V.call(h)===V.call(document.all))k=function(R){if((b||!R)&&(typeof R>"u"||typeof R==="object"))try{var s=V.call(R);return(s===I||s===E||s===v||s===G)&&R("")==null}catch(e){}return!1}}var h;J.exports=z?function(R){if(k(R))return!0;if(!R)return!1;if(typeof R!=="function"&&typeof R!=="object")return!1;try{z(R,null,Q)}catch(s){if(s!==Y)return!1}return!X(R)&&H(R)}:function(R){if(k(R))return!0;if(!R)return!1;if(typeof R!=="function"&&typeof R!=="object")return!1;if(g)return H(R);if(X(R))return!1;var s=V.call(R);if(s!==D&&s!==K&&!/^\[object HTML/.test(s))return!1;return H(R)}}),M8=x((f,J)=>{var Z=L8(),z=Object.prototype.toString,Q=Object.prototype.hasOwnProperty,Y=function(V,G,D){for(var K=0,I=V.length;K<I;K++)if(Q.call(V,K))if(D==null)G(V[K],K,V);else G.call(D,V[K],K,V)},$=function(V,G,D){for(var K=0,I=V.length;K<I;K++)if(D==null)G(V.charAt(K),K,V);else G.call(D,V.charAt(K),K,V)},X=function(V,G,D){for(var K in V)if(Q.call(V,K))if(D==null)G(V[K],K,V);else G.call(D,V[K],K,V)};function H(V){return z.call(V)==="[object Array]"}J.exports=function(V,G,D){if(!Z(G))throw TypeError("iterator must be a function");var K;if(arguments.length>=3)K=D;if(H(V))Y(V,G,K);else if(typeof V==="string")$(V,G,K);else X(V,G,K)}}),T8=x((f,J)=>{J.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),A8=x((f,J)=>{var Z=T8(),z=typeof globalThis>"u"?globalThis:globalThis;J.exports=function(){var Q=[];for(var Y=0;Y<Z.length;Y++)if(typeof z[Z[Y]]==="function")Q[Q.length]=Z[Y];return Q}}),_1=x((f,J)=>{var Z=Of(),z=P1(),Q=e0(),Y=c0();J.exports=function($,X,H){if(!$||typeof $!=="object"&&typeof $!=="function")throw new Q("`obj` must be an object or a function`");if(typeof X!=="string"&&typeof X!=="symbol")throw new Q("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null)throw new Q("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null)throw new Q("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null)throw new Q("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=="boolean")throw new Q("`loose`, if provided, must be a boolean");var V=arguments.length>3?arguments[3]:null,G=arguments.length>4?arguments[4]:null,D=arguments.length>5?arguments[5]:null,K=arguments.length>6?arguments[6]:!1,I=!!Y&&Y($,X);if(Z)Z($,X,{configurable:D===null&&I?I.configurable:!D,enumerable:V===null&&I?I.enumerable:!V,value:H,writable:G===null&&I?I.writable:!G});else if(K||!V&&!G&&!D)$[X]=H;else throw new z("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),h1=x((f,J)=>{var Z=Of(),z=function(){return!!Z};z.hasArrayLengthDefineBug=function(){if(!Z)return null;try{return Z([],"length",{value:1}).length!==1}catch(Q){return!0}},J.exports=z}),q8=x((f,J)=>{var Z=lf(),z=_1(),Q=h1()(),Y=c0(),$=e0(),X=Z("%Math.floor%");J.exports=function(H,V){if(typeof H!=="function")throw new $("`fn` is not a function");if(typeof V!=="number"||V<0||V>4294967295||X(V)!==V)throw new $("`length` must be a positive 32-bit integer");var G=arguments.length>2&&!!arguments[2],D=!0,K=!0;if("length"in H&&Y){var I=Y(H,"length");if(I&&!I.configurable)D=!1;if(I&&!I.writable)K=!1}if(D||K||!G)if(Q)z(H,"length",V,!0,!0);else z(H,"length",V);return H}}),j8=x((f,J)=>{var Z=ff(),z=df(),Q=v1();J.exports=function(){return Q(Z,z,arguments)}}),Bf=x((f,J)=>{var Z=q8(),z=Of(),Q=mf(),Y=j8();if(J.exports=function($){var X=Q(arguments),H=$.length-(arguments.length-1);return Z(X,1+(H>0?H:0),!0)},z)z(J.exports,"apply",{value:Y});else J.exports.apply=Y}),g1=x((f,J)=>{var Z=M8(),z=A8(),Q=Bf(),Y=d0(),$=c0(),X=nf(),H=Y("Object.prototype.toString"),V=wf()(),G=typeof globalThis>"u"?globalThis:globalThis,D=z(),K=Y("String.prototype.slice"),I=Y("Array.prototype.indexOf",!0)||function(b,k){for(var h=0;h<b.length;h+=1)if(b[h]===k)return h;return-1},E={__proto__:null};if(V&&$&&X)Z(D,function(b){var k=new G[b];if(Symbol.toStringTag in k&&X){var h=X(k),R=$(h,Symbol.toStringTag);if(!R&&h){var s=X(h);R=$(s,Symbol.toStringTag)}E["$"+b]=Q(R.get)}});else Z(D,function(b){var k=new G[b],h=k.slice||k.set;if(h)E["$"+b]=Q(h)});var v=function(b){var k=!1;return Z(E,function(h,R){if(!k)try{if("$"+h(b)===R)k=K(R,1)}catch(s){}}),k},g=function(b){var k=!1;return Z(E,function(h,R){if(!k)try{h(b),k=K(R,1)}catch(s){}}),k};J.exports=function(b){if(!b||typeof b!=="object")return!1;if(!V){var k=K(H(b),8,-1);if(I(D,k)>-1)return k;if(k!=="Object")return!1;return g(b)}if(!$)return null;return v(b)}}),I8=x((f,J)=>{var Z=g1();J.exports=function(z){return!!Z(z)}}),C8=x((f)=>{var J=V8(),Z=D8(),z=g1(),Q=I8();function Y(q){return q.call.bind(q)}var $=typeof BigInt<"u",X=typeof Symbol<"u",H=Y(Object.prototype.toString),V=Y(Number.prototype.valueOf),G=Y(String.prototype.valueOf),D=Y(Boolean.prototype.valueOf);if($)K=Y(BigInt.prototype.valueOf);var K;if(X)I=Y(Symbol.prototype.valueOf);var I;function E(q,B0){if(typeof q!=="object")return!1;try{return B0(q),!0}catch(R0){return!1}}f.isArgumentsObject=J,f.isGeneratorFunction=Z,f.isTypedArray=Q;function v(q){return typeof Promise<"u"&&q instanceof Promise||q!==null&&typeof q==="object"&&typeof q.then==="function"&&typeof q.catch==="function"}f.isPromise=v;function g(q){if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)return ArrayBuffer.isView(q);return Q(q)||L(q)}f.isArrayBufferView=g;function b(q){return z(q)==="Uint8Array"}f.isUint8Array=b;function k(q){return z(q)==="Uint8ClampedArray"}f.isUint8ClampedArray=k;function h(q){return z(q)==="Uint16Array"}f.isUint16Array=h;function R(q){return z(q)==="Uint32Array"}f.isUint32Array=R;function s(q){return z(q)==="Int8Array"}f.isInt8Array=s;function e(q){return z(q)==="Int16Array"}f.isInt16Array=e;function j(q){return z(q)==="Int32Array"}f.isInt32Array=j;function A(q){return z(q)==="Float32Array"}f.isFloat32Array=A;function C(q){return z(q)==="Float64Array"}f.isFloat64Array=C;function d(q){return z(q)==="BigInt64Array"}f.isBigInt64Array=d;function r(q){return z(q)==="BigUint64Array"}f.isBigUint64Array=r;function n(q){return H(q)==="[object Map]"}n.working=typeof Map<"u"&&n(new Map);function J0(q){if(typeof Map>"u")return!1;return n.working?n(q):q instanceof Map}f.isMap=J0;function l(q){return H(q)==="[object Set]"}l.working=typeof Set<"u"&&l(new Set);function U0(q){if(typeof Set>"u")return!1;return l.working?l(q):q instanceof Set}f.isSet=U0;function H0(q){return H(q)==="[object WeakMap]"}H0.working=typeof WeakMap<"u"&&H0(new WeakMap);function V0(q){if(typeof WeakMap>"u")return!1;return H0.working?H0(q):q instanceof WeakMap}f.isWeakMap=V0;function $0(q){return H(q)==="[object WeakSet]"}$0.working=typeof WeakSet<"u"&&$0(new WeakSet);function q0(q){return $0(q)}f.isWeakSet=q0;function w0(q){return H(q)==="[object ArrayBuffer]"}w0.working=typeof ArrayBuffer<"u"&&w0(new ArrayBuffer);function W(q){if(typeof ArrayBuffer>"u")return!1;return w0.working?w0(q):q instanceof ArrayBuffer}f.isArrayBuffer=W;function U(q){return H(q)==="[object DataView]"}U.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&U(new DataView(new ArrayBuffer(1),0,1));function L(q){if(typeof DataView>"u")return!1;return U.working?U(q):q instanceof DataView}f.isDataView=L;var N=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function y(q){return H(q)==="[object SharedArrayBuffer]"}function c(q){if(typeof N>"u")return!1;if(typeof y.working>"u")y.working=y(new N);return y.working?y(q):q instanceof N}f.isSharedArrayBuffer=c;function m(q){return H(q)==="[object AsyncFunction]"}f.isAsyncFunction=m;function u(q){return H(q)==="[object Map Iterator]"}f.isMapIterator=u;function F(q){return H(q)==="[object Set Iterator]"}f.isSetIterator=F;function w(q){return H(q)==="[object Generator]"}f.isGeneratorObject=w;function O(q){return H(q)==="[object WebAssembly.Module]"}f.isWebAssemblyCompiledModule=O;function T(q){return E(q,V)}f.isNumberObject=T;function P(q){return E(q,G)}f.isStringObject=P;function S(q){return E(q,D)}f.isBooleanObject=S;function o(q){return $&&E(q,K)}f.isBigIntObject=o;function t(q){return X&&E(q,I)}f.isSymbolObject=t;function Z0(q){return T(q)||P(q)||S(q)||o(q)||t(q)}f.isBoxedPrimitive=Z0;function G0(q){return typeof Uint8Array<"u"&&(W(q)||c(q))}f.isAnyArrayBuffer=G0,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(q){Object.defineProperty(f,q,{enumerable:!1,value:function(){throw Error(q+" is not supported in userland")}})})}),N8=x((f,J)=>{J.exports=function(Z){return Z instanceof Buffer}}),R8=x((f,J)=>{if(typeof Object.create==="function")J.exports=function(Z,z){if(z)Z.super_=z,Z.prototype=Object.create(z.prototype,{constructor:{value:Z,enumerable:!1,writable:!0,configurable:!0}})};else J.exports=function(Z,z){if(z){Z.super_=z;var Q=function(){};Q.prototype=z.prototype,Z.prototype=new Q,Z.prototype.constructor=Z}}}),E8=x((f,J)=>{try{if(Z=(R1(),a0(N1)),typeof Z.inherits!=="function")throw"";J.exports=Z.inherits}catch(z){J.exports=R8()}var Z}),t0=x((f)=>{var J=Object.getOwnPropertyDescriptors||function(W){var U=Object.keys(W),L={};for(var N=0;N<U.length;N++)L[U[N]]=Object.getOwnPropertyDescriptor(W,U[N]);return L},Z=/%[sdj%]/g;f.format=function(W){if(!R(W)){var U=[];for(var L=0;L<arguments.length;L++)U.push(Y(arguments[L]));return U.join(" ")}var L=1,N=arguments,y=N.length,c=String(W).replace(Z,function(u){if(u==="%%")return"%";if(L>=y)return u;switch(u){case"%s":return String(N[L++]);case"%d":return Number(N[L++]);case"%j":try{return JSON.stringify(N[L++])}catch(F){return"[Circular]"}default:return u}});for(var m=N[L];L<y;m=N[++L])if(b(m)||!A(m))c+=" "+m;else c+=" "+Y(m);return c},f.deprecate=function(W,U){if(typeof process<"u"&&process.noDeprecation===!0)return W;if(typeof process>"u")return function(){return f.deprecate(W,U).apply(this,arguments)};var L=!1;function N(){if(!L){if(process.throwDeprecation)throw Error(U);else if(process.traceDeprecation)console.trace(U);else console.error(U);L=!0}return W.apply(this,arguments)}return N};var z={},Q=/^$/;f.debuglog=function(W){if(W=W.toUpperCase(),!z[W])if(Q.test(W)){var U=process.pid;z[W]=function(){var L=f.format.apply(f,arguments);console.error("%s %d: %s",W,U,L)}}else z[W]=function(){};return z[W]};function Y(W,U){var L={seen:[],stylize:X};if(arguments.length>=3)L.depth=arguments[2];if(arguments.length>=4)L.colors=arguments[3];if(g(U))L.showHidden=U;else if(U)f._extend(L,U);if(e(L.showHidden))L.showHidden=!1;if(e(L.depth))L.depth=2;if(e(L.colors))L.colors=!1;if(e(L.customInspect))L.customInspect=!0;if(L.colors)L.stylize=$;return V(L,W,L.depth)}f.inspect=Y,Y.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Y.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function $(W,U){var L=Y.styles[U];if(L)return"\x1B["+Y.colors[L][0]+"m"+W+"\x1B["+Y.colors[L][1]+"m";else return W}function X(W,U){return W}function H(W){var U={};return W.forEach(function(L,N){U[L]=!0}),U}function V(W,U,L){if(W.customInspect&&U&&r(U.inspect)&&U.inspect!==f.inspect&&!(U.constructor&&U.constructor.prototype===U)){var N=U.inspect(L,W);if(!R(N))N=V(W,N,L);return N}var y=G(W,U);if(y)return y;var c=Object.keys(U),m=H(c);if(W.showHidden)c=Object.getOwnPropertyNames(U);if(d(U)&&(c.indexOf("message")>=0||c.indexOf("description")>=0))return D(U);if(c.length===0){if(r(U)){var u=U.name?": "+U.name:"";return W.stylize("[Function"+u+"]","special")}if(j(U))return W.stylize(RegExp.prototype.toString.call(U),"regexp");if(C(U))return W.stylize(Date.prototype.toString.call(U),"date");if(d(U))return D(U)}var F="",w=!1,O=["{","}"];if(v(U))w=!0,O=["[","]"];if(r(U)){var T=U.name?": "+U.name:"";F=" [Function"+T+"]"}if(j(U))F=" "+RegExp.prototype.toString.call(U);if(C(U))F=" "+Date.prototype.toUTCString.call(U);if(d(U))F=" "+D(U);if(c.length===0&&(!w||U.length==0))return O[0]+F+O[1];if(L<0)if(j(U))return W.stylize(RegExp.prototype.toString.call(U),"regexp");else return W.stylize("[Object]","special");W.seen.push(U);var P;if(w)P=K(W,U,L,m,c);else P=c.map(function(S){return I(W,U,L,m,S,w)});return W.seen.pop(),E(P,F,O)}function G(W,U){if(e(U))return W.stylize("undefined","undefined");if(R(U)){var L="'"+JSON.stringify(U).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return W.stylize(L,"string")}if(h(U))return W.stylize(""+U,"number");if(g(U))return W.stylize(""+U,"boolean");if(b(U))return W.stylize("null","null")}function D(W){return"["+Error.prototype.toString.call(W)+"]"}function K(W,U,L,N,y){var c=[];for(var m=0,u=U.length;m<u;++m)if(V0(U,String(m)))c.push(I(W,U,L,N,String(m),!0));else c.push("");return y.forEach(function(F){if(!F.match(/^\d+$/))c.push(I(W,U,L,N,F,!0))}),c}function I(W,U,L,N,y,c){var m,u,F;if(F=Object.getOwnPropertyDescriptor(U,y)||{value:U[y]},F.get)if(F.set)u=W.stylize("[Getter/Setter]","special");else u=W.stylize("[Getter]","special");else if(F.set)u=W.stylize("[Setter]","special");if(!V0(N,y))m="["+y+"]";if(!u)if(W.seen.indexOf(F.value)<0){if(b(L))u=V(W,F.value,null);else u=V(W,F.value,L-1);if(u.indexOf(`
`)>-1)if(c)u=u.split(`
`).map(function(w){return"  "+w}).join(`
`).slice(2);else u=`
`+u.split(`
`).map(function(w){return"   "+w}).join(`
`)}else u=W.stylize("[Circular]","special");if(e(m)){if(c&&y.match(/^\d+$/))return u;if(m=JSON.stringify(""+y),m.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/))m=m.slice(1,-1),m=W.stylize(m,"name");else m=m.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),m=W.stylize(m,"string")}return m+": "+u}function E(W,U,L){var N=0,y=W.reduce(function(c,m){if(N++,m.indexOf(`
`)>=0)N++;return c+m.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(y>60)return L[0]+(U===""?"":U+`
 `)+" "+W.join(`,
  `)+" "+L[1];return L[0]+U+" "+W.join(", ")+" "+L[1]}f.types=C8();function v(W){return Array.isArray(W)}f.isArray=v;function g(W){return typeof W==="boolean"}f.isBoolean=g;function b(W){return W===null}f.isNull=b;function k(W){return W==null}f.isNullOrUndefined=k;function h(W){return typeof W==="number"}f.isNumber=h;function R(W){return typeof W==="string"}f.isString=R;function s(W){return typeof W==="symbol"}f.isSymbol=s;function e(W){return W===void 0}f.isUndefined=e;function j(W){return A(W)&&J0(W)==="[object RegExp]"}f.isRegExp=j,f.types.isRegExp=j;function A(W){return typeof W==="object"&&W!==null}f.isObject=A;function C(W){return A(W)&&J0(W)==="[object Date]"}f.isDate=C,f.types.isDate=C;function d(W){return A(W)&&(J0(W)==="[object Error]"||W instanceof Error)}f.isError=d,f.types.isNativeError=d;function r(W){return typeof W==="function"}f.isFunction=r;function n(W){return W===null||typeof W==="boolean"||typeof W==="number"||typeof W==="string"||typeof W==="symbol"||typeof W>"u"}f.isPrimitive=n,f.isBuffer=N8();function J0(W){return Object.prototype.toString.call(W)}function l(W){return W<10?"0"+W.toString(10):W.toString(10)}var U0=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function H0(){var W=new Date,U=[l(W.getHours()),l(W.getMinutes()),l(W.getSeconds())].join(":");return[W.getDate(),U0[W.getMonth()],U].join(" ")}f.log=function(){console.log("%s - %s",H0(),f.format.apply(f,arguments))},f.inherits=E8(),f._extend=function(W,U){if(!U||!A(U))return W;var L=Object.keys(U),N=L.length;while(N--)W[L[N]]=U[L[N]];return W};function V0(W,U){return Object.prototype.hasOwnProperty.call(W,U)}var $0=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;f.promisify=function(W){if(typeof W!=="function")throw TypeError('The "original" argument must be of type Function');if($0&&W[$0]){var U=W[$0];if(typeof U!=="function")throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(U,$0,{value:U,enumerable:!1,writable:!1,configurable:!0}),U}function U(){var L,N,y=new Promise(function(u,F){L=u,N=F}),c=[];for(var m=0;m<arguments.length;m++)c.push(arguments[m]);c.push(function(u,F){if(u)N(u);else L(F)});try{W.apply(this,c)}catch(u){N(u)}return y}if(Object.setPrototypeOf(U,Object.getPrototypeOf(W)),$0)Object.defineProperty(U,$0,{value:U,enumerable:!1,writable:!1,configurable:!0});return Object.defineProperties(U,J(W))},f.promisify.custom=$0;function q0(W,U){if(!W){var L=Error("Promise was rejected with a falsy value");L.reason=W,W=L}return U(W)}function w0(W){if(typeof W!=="function")throw TypeError('The "original" argument must be of type Function');function U(){var L=[];for(var N=0;N<arguments.length;N++)L.push(arguments[N]);var y=L.pop();if(typeof y!=="function")throw TypeError("The last argument must be of type Function");var c=this,m=function(){return y.apply(c,arguments)};W.apply(this,L).then(function(u){process.nextTick(m.bind(null,null,u))},function(u){process.nextTick(q0.bind(null,u,m))})}return Object.setPrototypeOf(U,Object.getPrototypeOf(W)),Object.defineProperties(U,J(W)),U}f.callbackify=w0}),k1=x((f,J)=>{function Z(j){return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},Z(j)}function z(j,A){for(var C=0;C<A.length;C++){var d=A[C];if(d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d)d.writable=!0;Object.defineProperty(j,Y(d.key),d)}}function Q(j,A,C){if(A)z(j.prototype,A);if(C)z(j,C);return Object.defineProperty(j,"prototype",{writable:!1}),j}function Y(j){var A=$(j,"string");return Z(A)==="symbol"?A:String(A)}function $(j,A){if(Z(j)!=="object"||j===null)return j;var C=j[Symbol.toPrimitive];if(C!==void 0){var d=C.call(j,A||"default");if(Z(d)!=="object")return d;throw TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(j)}function X(j,A){if(!(j instanceof A))throw TypeError("Cannot call a class as a function")}function H(j,A){if(typeof A!=="function"&&A!==null)throw TypeError("Super expression must either be null or a function");if(j.prototype=Object.create(A&&A.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),Object.defineProperty(j,"prototype",{writable:!1}),A)V(j,A)}function V(j,A){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,d){return C.__proto__=d,C},V(j,A)}function G(j){var A=I();return function(){var C=E(j),d;if(A){var r=E(this).constructor;d=Reflect.construct(C,arguments,r)}else d=C.apply(this,arguments);return D(this,d)}}function D(j,A){if(A&&(Z(A)==="object"||typeof A==="function"))return A;else if(A!==void 0)throw TypeError("Derived constructors may only return object or undefined");return K(j)}function K(j){if(j===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function I(){if(typeof Reflect>"u"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy==="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(j){return!1}}function E(j){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(A){return A.__proto__||Object.getPrototypeOf(A)},E(j)}var v={},g,b;function k(j,A,C){if(!C)C=Error;function d(n,J0,l){if(typeof A==="string")return A;else return A(n,J0,l)}var r=function(n){H(l,n);var J0=G(l);function l(U0,H0,V0){var $0;return X(this,l),$0=J0.call(this,d(U0,H0,V0)),$0.code=j,$0}return Q(l)}(C);v[j]=r}function h(j,A){if(Array.isArray(j)){var C=j.length;if(j=j.map(function(d){return String(d)}),C>2)return"one of ".concat(A," ").concat(j.slice(0,C-1).join(", "),", or ")+j[C-1];else if(C===2)return"one of ".concat(A," ").concat(j[0]," or ").concat(j[1]);else return"of ".concat(A," ").concat(j[0])}else return"of ".concat(A," ").concat(String(j))}function R(j,A,C){return j.substr(!C||C<0?0:+C,A.length)===A}function s(j,A,C){if(C===void 0||C>j.length)C=j.length;return j.substring(C-A.length,C)===A}function e(j,A,C){if(typeof C!=="number")C=0;if(C+A.length>j.length)return!1;else return j.indexOf(A,C)!==-1}k("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),k("ERR_INVALID_ARG_TYPE",function(j,A,C){if(g===void 0)g=kf();g(typeof j==="string","'name' must be a string");var d;if(typeof A==="string"&&R(A,"not "))d="must not be",A=A.replace(/^not /,"");else d="must be";var r;if(s(j," argument"))r="The ".concat(j," ").concat(d," ").concat(h(A,"type"));else{var n=e(j,".")?"property":"argument";r='The "'.concat(j,'" ').concat(n," ").concat(d," ").concat(h(A,"type"))}return r+=". Received type ".concat(Z(C)),r},TypeError),k("ERR_INVALID_ARG_VALUE",function(j,A){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";if(b===void 0)b=t0();var d=b.inspect(A);if(d.length>128)d="".concat(d.slice(0,128),"...");return"The argument '".concat(j,"' ").concat(C,". Received ").concat(d)},TypeError,RangeError),k("ERR_INVALID_RETURN_VALUE",function(j,A,C){var d;if(C&&C.constructor&&C.constructor.name)d="instance of ".concat(C.constructor.name);else d="type ".concat(Z(C));return"Expected ".concat(j,' to be returned from the "').concat(A,'"')+" function but got ".concat(d,".")},TypeError),k("ERR_MISSING_ARGS",function(){for(var j=arguments.length,A=Array(j),C=0;C<j;C++)A[C]=arguments[C];if(g===void 0)g=kf();g(A.length>0,"At least one arg needs to be specified");var d="The ",r=A.length;switch(A=A.map(function(n){return'"'.concat(n,'"')}),r){case 1:d+="".concat(A[0]," argument");break;case 2:d+="".concat(A[0]," and ").concat(A[1]," arguments");break;default:d+=A.slice(0,r-1).join(", "),d+=", and ".concat(A[r-1]," arguments");break}return"".concat(d," must be specified")},TypeError),f.codes=v}),P8=x((f,J)=>{function Z(W,U){var L=Object.keys(W);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(W);U&&(N=N.filter(function(y){return Object.getOwnPropertyDescriptor(W,y).enumerable})),L.push.apply(L,N)}return L}function z(W){for(var U=1;U<arguments.length;U++){var L=arguments[U]!=null?arguments[U]:{};U%2?Z(Object(L),!0).forEach(function(N){Q(W,N,L[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(L)):Z(Object(L)).forEach(function(N){Object.defineProperty(W,N,Object.getOwnPropertyDescriptor(L,N))})}return W}function Q(W,U,L){if(U=H(U),U in W)Object.defineProperty(W,U,{value:L,enumerable:!0,configurable:!0,writable:!0});else W[U]=L;return W}function Y(W,U){if(!(W instanceof U))throw TypeError("Cannot call a class as a function")}function $(W,U){for(var L=0;L<U.length;L++){var N=U[L];if(N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N)N.writable=!0;Object.defineProperty(W,H(N.key),N)}}function X(W,U,L){if(U)$(W.prototype,U);if(L)$(W,L);return Object.defineProperty(W,"prototype",{writable:!1}),W}function H(W){var U=V(W,"string");return R(U)==="symbol"?U:String(U)}function V(W,U){if(R(W)!=="object"||W===null)return W;var L=W[Symbol.toPrimitive];if(L!==void 0){var N=L.call(W,U||"default");if(R(N)!=="object")return N;throw TypeError("@@toPrimitive must return a primitive value.")}return(U==="string"?String:Number)(W)}function G(W,U){if(typeof U!=="function"&&U!==null)throw TypeError("Super expression must either be null or a function");if(W.prototype=Object.create(U&&U.prototype,{constructor:{value:W,writable:!0,configurable:!0}}),Object.defineProperty(W,"prototype",{writable:!1}),U)k(W,U)}function D(W){var U=g();return function(){var L=h(W),N;if(U){var y=h(this).constructor;N=Reflect.construct(L,arguments,y)}else N=L.apply(this,arguments);return K(this,N)}}function K(W,U){if(U&&(R(U)==="object"||typeof U==="function"))return U;else if(U!==void 0)throw TypeError("Derived constructors may only return object or undefined");return I(W)}function I(W){if(W===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return W}function E(W){var U=typeof Map==="function"?new Map:void 0;return E=function(L){if(L===null||!b(L))return L;if(typeof L!=="function")throw TypeError("Super expression must either be null or a function");if(typeof U<"u"){if(U.has(L))return U.get(L);U.set(L,N)}function N(){return v(L,arguments,h(this).constructor)}return N.prototype=Object.create(L.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),k(N,L)},E(W)}function v(W,U,L){if(g())v=Reflect.construct.bind();else v=function(N,y,c){var m=[null];m.push.apply(m,y);var u=Function.bind.apply(N,m),F=new u;if(c)k(F,c.prototype);return F};return v.apply(null,arguments)}function g(){if(typeof Reflect>"u"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy==="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(W){return!1}}function b(W){return Function.toString.call(W).indexOf("[native code]")!==-1}function k(W,U){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,N){return L.__proto__=N,L},k(W,U)}function h(W){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(U){return U.__proto__||Object.getPrototypeOf(U)},h(W)}function R(W){return R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},R(W)}var s=t0(),e=s.inspect,j=k1(),A=j.codes.ERR_INVALID_ARG_TYPE;function C(W,U,L){if(L===void 0||L>W.length)L=W.length;return W.substring(L-U.length,L)===U}function d(W,U){if(U=Math.floor(U),W.length==0||U==0)return"";var L=W.length*U;U=Math.floor(Math.log(U)/Math.log(2));while(U)W+=W,U--;return W+=W.substring(0,L-W.length),W}var r="",n="",J0="",l="",U0={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},H0=10;function V0(W){var U=Object.keys(W),L=Object.create(Object.getPrototypeOf(W));return U.forEach(function(N){L[N]=W[N]}),Object.defineProperty(L,"message",{value:W.message}),L}function $0(W){return e(W,{compact:!1,customInspect:!1,depth:1000,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function q0(W,U,L){var N="",y="",c=0,m="",u=!1,F=$0(W),w=F.split(`
`),O=$0(U).split(`
`),T=0,P="";if(L==="strictEqual"&&R(W)==="object"&&R(U)==="object"&&W!==null&&U!==null)L="strictEqualObject";if(w.length===1&&O.length===1&&w[0]!==O[0]){var S=w[0].length+O[0].length;if(S<=H0){if((R(W)!=="object"||W===null)&&(R(U)!=="object"||U===null)&&(W!==0||U!==0))return"".concat(U0[L],`

`)+"".concat(w[0]," !== ").concat(O[0],`
`)}else if(L!=="strictEqualObject"){var o=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(S<o){while(w[0][T]===O[0][T])T++;if(T>2)P=`
  `.concat(d(" ",T),"^"),T=0}}}var t=w[w.length-1],Z0=O[O.length-1];while(t===Z0){if(T++<2)m=`
  `.concat(t).concat(m);else N=t;if(w.pop(),O.pop(),w.length===0||O.length===0)break;t=w[w.length-1],Z0=O[O.length-1]}var G0=Math.max(w.length,O.length);if(G0===0){var q=F.split(`
`);if(q.length>30){q[26]="".concat(r,"...").concat(l);while(q.length>27)q.pop()}return"".concat(U0.notIdentical,`

`).concat(q.join(`
`),`
`)}if(T>3)m=`
`.concat(r,"...").concat(l).concat(m),u=!0;if(N!=="")m=`
  `.concat(N).concat(m),N="";var B0=0,R0=U0[L]+`
`.concat(n,"+ actual").concat(l," ").concat(J0,"- expected").concat(l),M0=" ".concat(r,"...").concat(l," Lines skipped");for(T=0;T<G0;T++){var F0=T-c;if(w.length<T+1){if(F0>1&&T>2){if(F0>4)y+=`
`.concat(r,"...").concat(l),u=!0;else if(F0>3)y+=`
  `.concat(O[T-2]),B0++;y+=`
  `.concat(O[T-1]),B0++}c=T,N+=`
`.concat(J0,"-").concat(l," ").concat(O[T]),B0++}else if(O.length<T+1){if(F0>1&&T>2){if(F0>4)y+=`
`.concat(r,"...").concat(l),u=!0;else if(F0>3)y+=`
  `.concat(w[T-2]),B0++;y+=`
  `.concat(w[T-1]),B0++}c=T,y+=`
`.concat(n,"+").concat(l," ").concat(w[T]),B0++}else{var j0=O[T],A0=w[T],i0=A0!==j0&&(!C(A0,",")||A0.slice(0,-1)!==j0);if(i0&&C(j0,",")&&j0.slice(0,-1)===A0)i0=!1,A0+=",";if(i0){if(F0>1&&T>2){if(F0>4)y+=`
`.concat(r,"...").concat(l),u=!0;else if(F0>3)y+=`
  `.concat(w[T-2]),B0++;y+=`
  `.concat(w[T-1]),B0++}c=T,y+=`
`.concat(n,"+").concat(l," ").concat(A0),N+=`
`.concat(J0,"-").concat(l," ").concat(j0),B0+=2}else if(y+=N,N="",F0===1||T===0)y+=`
  `.concat(A0),B0++}if(B0>20&&T<G0-2)return"".concat(R0).concat(M0,`
`).concat(y,`
`).concat(r,"...").concat(l).concat(N,`
`)+"".concat(r,"...").concat(l)}return"".concat(R0).concat(u?M0:"",`
`).concat(y).concat(N).concat(m).concat(P)}var w0=function(W,U){G(N,W);var L=D(N);function N(y){var c;if(Y(this,N),R(y)!=="object"||y===null)throw new A("options","Object",y);var{message:m,operator:u,stackStartFn:F,actual:w,expected:O}=y,T=Error.stackTraceLimit;if(Error.stackTraceLimit=0,m!=null)c=L.call(this,String(m));else{if(process.stderr&&process.stderr.isTTY)if(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1)r="\x1B[34m",n="\x1B[32m",l="\x1B[39m",J0="\x1B[31m";else r="",n="",l="",J0="";if(R(w)==="object"&&w!==null&&R(O)==="object"&&O!==null&&"stack"in w&&w instanceof Error&&"stack"in O&&O instanceof Error)w=V0(w),O=V0(O);if(u==="deepStrictEqual"||u==="strictEqual")c=L.call(this,q0(w,O,u));else if(u==="notDeepStrictEqual"||u==="notStrictEqual"){var P=U0[u],S=$0(w).split(`
`);if(u==="notStrictEqual"&&R(w)==="object"&&w!==null)P=U0.notStrictEqualObject;if(S.length>30){S[26]="".concat(r,"...").concat(l);while(S.length>27)S.pop()}if(S.length===1)c=L.call(this,"".concat(P," ").concat(S[0]));else c=L.call(this,"".concat(P,`

`).concat(S.join(`
`),`
`))}else{var o=$0(w),t="",Z0=U0[u];if(u==="notDeepEqual"||u==="notEqual"){if(o="".concat(U0[u],`

`).concat(o),o.length>1024)o="".concat(o.slice(0,1021),"...")}else{if(t="".concat($0(O)),o.length>512)o="".concat(o.slice(0,509),"...");if(t.length>512)t="".concat(t.slice(0,509),"...");if(u==="deepEqual"||u==="equal")o="".concat(Z0,`

`).concat(o,`

should equal

`);else t=" ".concat(u," ").concat(t)}c=L.call(this,"".concat(o).concat(t))}}if(Error.stackTraceLimit=T,c.generatedMessage=!m,Object.defineProperty(I(c),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),c.code="ERR_ASSERTION",c.actual=w,c.expected=O,c.operator=u,Error.captureStackTrace)Error.captureStackTrace(I(c),F);return c.stack,c.name="AssertionError",K(c)}return X(N,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:U,value:function(y,c){return e(this,z(z({},c),{},{customInspect:!1,depth:0}))}}]),N}(E(Error),e.custom);J.exports=w0}),u1=x((f,J)=>{var Z=Object.prototype.toString;J.exports=function(z){var Q=Z.call(z),Y=Q==="[object Arguments]";if(!Y)Y=Q!=="[object Array]"&&z!==null&&typeof z==="object"&&typeof z.length==="number"&&z.length>=0&&Z.call(z.callee)==="[object Function]";return Y}}),S8=x((f,J)=>{var Z;if(!Object.keys)z=Object.prototype.hasOwnProperty,Q=Object.prototype.toString,Y=u1(),$=Object.prototype.propertyIsEnumerable,X=!$.call({toString:null},"toString"),H=$.call(function(){},"prototype"),V=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],G=function(E){var v=E.constructor;return v&&v.prototype===E},D={$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},K=function(){if(typeof window>"u")return!1;for(var E in window)try{if(!D["$"+E]&&z.call(window,E)&&window[E]!==null&&typeof window[E]==="object")try{G(window[E])}catch(v){return!0}}catch(v){return!0}return!1}(),I=function(E){if(typeof window>"u"||!K)return G(E);try{return G(E)}catch(v){return!1}},Z=function(E){var v=E!==null&&typeof E==="object",g=Q.call(E)==="[object Function]",b=Y(E),k=v&&Q.call(E)==="[object String]",h=[];if(!v&&!g&&!b)throw TypeError("Object.keys called on a non-object");var R=H&&g;if(k&&E.length>0&&!z.call(E,0))for(var s=0;s<E.length;++s)h.push(String(s));if(b&&E.length>0)for(var e=0;e<E.length;++e)h.push(String(e));else for(var j in E)if(!(R&&j==="prototype")&&z.call(E,j))h.push(String(j));if(X){var A=I(E);for(var C=0;C<V.length;++C)if(!(A&&V[C]==="constructor")&&z.call(E,V[C]))h.push(V[C])}return h};var z,Q,Y,$,X,H,V,G,D,K,I;J.exports=Z}),y1=x((f,J)=>{var Z=Array.prototype.slice,z=u1(),Q=Object.keys,Y=Q?function(X){return Q(X)}:S8(),$=Object.keys;Y.shim=function(){if(Object.keys){var X=function(){var H=Object.keys(arguments);return H&&H.length===arguments.length}(1,2);if(!X)Object.keys=function(H){if(z(H))return $(Z.call(H));return $(H)}}else Object.keys=Y;return Object.keys||Y},J.exports=Y}),b8=x((f,J)=>{var Z=y1(),z=uf()(),Q=d0(),Y=yf(),$=Q("Array.prototype.push"),X=Q("Object.prototype.propertyIsEnumerable"),H=z?Y.getOwnPropertySymbols:null;J.exports=function(V,G){if(V==null)throw TypeError("target must be an object");var D=Y(V);if(arguments.length===1)return D;for(var K=1;K<arguments.length;++K){var I=Y(arguments[K]),E=Z(I),v=z&&(Y.getOwnPropertySymbols||H);if(v){var g=v(I);for(var b=0;b<g.length;++b){var k=g[b];if(X(I,k))$(E,k)}}for(var h=0;h<E.length;++h){var R=E[h];if(X(I,R)){var s=I[R];D[R]=s}}}return D}}),v8=x((f,J)=>{var Z=b8(),z=function(){if(!Object.assign)return!1;var Y="abcdefghijklmnopqrst",$=Y.split(""),X={};for(var H=0;H<$.length;++H)X[$[H]]=$[H];var V=Object.assign({},X),G="";for(var D in V)G+=D;return Y!==G},Q=function(){if(!Object.assign||!Object.preventExtensions)return!1;var Y=Object.preventExtensions({1:2});try{Object.assign(Y,"xy")}catch($){return Y[1]==="y"}return!1};J.exports=function(){if(!Object.assign)return Z;if(z())return Z;if(Q())return Z;return Object.assign}}),c1=x((f,J)=>{var Z=function(z){return z!==z};J.exports=function(z,Q){if(z===0&&Q===0)return 1/z===1/Q;if(z===Q)return!0;if(Z(z)&&Z(Q))return!0;return!1}}),pf=x((f,J)=>{var Z=c1();J.exports=function(){return typeof Object.is==="function"?Object.is:Z}}),x8=x((f,J)=>{var Z=lf(),z=Bf(),Q=z(Z("String.prototype.indexOf"));J.exports=function(Y,$){var X=Z(Y,!!$);if(typeof X==="function"&&Q(Y,".prototype.")>-1)return z(X);return X}}),Vf=x((f,J)=>{var Z=y1(),z=typeof Symbol==="function"&&typeof Symbol("foo")==="symbol",Q=Object.prototype.toString,Y=Array.prototype.concat,$=_1(),X=function(D){return typeof D==="function"&&Q.call(D)==="[object Function]"},H=h1()(),V=function(D,K,I,E){if(K in D){if(E===!0){if(D[K]===I)return}else if(!X(E)||!E())return}if(H)$(D,K,I,!0);else $(D,K,I)},G=function(D,K){var I=arguments.length>2?arguments[2]:{},E=Z(K);if(z)E=Y.call(E,Object.getOwnPropertySymbols(K));for(var v=0;v<E.length;v+=1)V(D,E[v],K[E[v]],I[E[v]])};G.supportsDescriptors=!!H,J.exports=G}),_8=x((f,J)=>{var Z=pf(),z=Vf();J.exports=function(){var Q=Z();return z(Object,{is:Q},{is:function(){return Object.is!==Q}}),Q}}),h8=x((f,J)=>{var Z=Vf(),z=Bf(),Q=c1(),Y=pf(),$=_8(),X=z(Y(),Object);Z(X,{getPolyfill:Y,implementation:Q,shim:$}),J.exports=X}),d1=x((f,J)=>{J.exports=function(Z){return Z!==Z}}),m1=x((f,J)=>{var Z=d1();J.exports=function(){if(Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a"))return Number.isNaN;return Z}}),g8=x((f,J)=>{var Z=Vf(),z=m1();J.exports=function(){var Q=z();return Z(Number,{isNaN:Q},{isNaN:function(){return Number.isNaN!==Q}}),Q}}),k8=x((f,J)=>{var Z=Bf(),z=Vf(),Q=d1(),Y=m1(),$=g8(),X=Z(Y(),Number);z(X,{getPolyfill:Y,implementation:Q,shim:$}),J.exports=X}),u8=x((f,J)=>{function Z(B,M){return X(B)||$(B,M)||Q(B,M)||z()}function z(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(B,M){if(!B)return;if(typeof B==="string")return Y(B,M);var _=Object.prototype.toString.call(B).slice(8,-1);if(_==="Object"&&B.constructor)_=B.constructor.name;if(_==="Map"||_==="Set")return Array.from(B);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return Y(B,M)}function Y(B,M){if(M==null||M>B.length)M=B.length;for(var _=0,i=Array(M);_<M;_++)i[_]=B[_];return i}function $(B,M){var _=B==null?null:typeof Symbol<"u"&&B[Symbol.iterator]||B["@@iterator"];if(_!=null){var i,p,f0,a,z0=[],Q0=!0,K0=!1;try{if(f0=(_=_.call(B)).next,M===0){if(Object(_)!==_)return;Q0=!1}else for(;!(Q0=(i=f0.call(_)).done)&&(z0.push(i.value),z0.length!==M);Q0=!0);}catch(T0){K0=!0,p=T0}finally{try{if(!Q0&&_.return!=null&&(a=_.return(),Object(a)!==a))return}finally{if(K0)throw p}}return z0}}function X(B){if(Array.isArray(B))return B}function H(B){return H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},H(B)}var V=/a/g.flags!==void 0,G=function(B){var M=[];return B.forEach(function(_){return M.push(_)}),M},D=function(B){var M=[];return B.forEach(function(_,i){return M.push([i,_])}),M},K=Object.is?Object.is:h8(),I=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},E=Number.isNaN?Number.isNaN:k8();function v(B){return B.call.bind(B)}var g=v(Object.prototype.hasOwnProperty),b=v(Object.prototype.propertyIsEnumerable),k=v(Object.prototype.toString),h=t0().types,R=h.isAnyArrayBuffer,s=h.isArrayBufferView,e=h.isDate,j=h.isMap,A=h.isRegExp,C=h.isSet,d=h.isNativeError,r=h.isBoxedPrimitive,n=h.isNumberObject,J0=h.isStringObject,l=h.isBooleanObject,U0=h.isBigIntObject,H0=h.isSymbolObject,V0=h.isFloat32Array,$0=h.isFloat64Array;function q0(B){if(B.length===0||B.length>10)return!0;for(var M=0;M<B.length;M++){var _=B.charCodeAt(M);if(_<48||_>57)return!0}return B.length===10&&B>=Math.pow(2,32)}function w0(B){return Object.keys(B).filter(q0).concat(I(B).filter(Object.prototype.propertyIsEnumerable.bind(B)))}/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */function W(B,M){if(B===M)return 0;var _=B.length,i=M.length;for(var p=0,f0=Math.min(_,i);p<f0;++p)if(B[p]!==M[p]){_=B[p],i=M[p];break}if(_<i)return-1;if(i<_)return 1;return 0}var U=void 0,L=!0,N=!1,y=0,c=1,m=2,u=3;function F(B,M){return V?B.source===M.source&&B.flags===M.flags:RegExp.prototype.toString.call(B)===RegExp.prototype.toString.call(M)}function w(B,M){if(B.byteLength!==M.byteLength)return!1;for(var _=0;_<B.byteLength;_++)if(B[_]!==M[_])return!1;return!0}function O(B,M){if(B.byteLength!==M.byteLength)return!1;return W(new Uint8Array(B.buffer,B.byteOffset,B.byteLength),new Uint8Array(M.buffer,M.byteOffset,M.byteLength))===0}function T(B,M){return B.byteLength===M.byteLength&&W(new Uint8Array(B),new Uint8Array(M))===0}function P(B,M){if(n(B))return n(M)&&K(Number.prototype.valueOf.call(B),Number.prototype.valueOf.call(M));if(J0(B))return J0(M)&&String.prototype.valueOf.call(B)===String.prototype.valueOf.call(M);if(l(B))return l(M)&&Boolean.prototype.valueOf.call(B)===Boolean.prototype.valueOf.call(M);if(U0(B))return U0(M)&&BigInt.prototype.valueOf.call(B)===BigInt.prototype.valueOf.call(M);return H0(M)&&Symbol.prototype.valueOf.call(B)===Symbol.prototype.valueOf.call(M)}function S(B,M,_,i){if(B===M){if(B!==0)return!0;return _?K(B,M):!0}if(_){if(H(B)!=="object")return typeof B==="number"&&E(B)&&E(M);if(H(M)!=="object"||B===null||M===null)return!1;if(Object.getPrototypeOf(B)!==Object.getPrototypeOf(M))return!1}else{if(B===null||H(B)!=="object"){if(M===null||H(M)!=="object")return B==M;return!1}if(M===null||H(M)!=="object")return!1}var p=k(B),f0=k(M);if(p!==f0)return!1;if(Array.isArray(B)){if(B.length!==M.length)return!1;var a=w0(B,U),z0=w0(M,U);if(a.length!==z0.length)return!1;return t(B,M,_,i,c,a)}if(p==="[object Object]"){if(!j(B)&&j(M)||!C(B)&&C(M))return!1}if(e(B)){if(!e(M)||Date.prototype.getTime.call(B)!==Date.prototype.getTime.call(M))return!1}else if(A(B)){if(!A(M)||!F(B,M))return!1}else if(d(B)||B instanceof Error){if(B.message!==M.message||B.name!==M.name)return!1}else if(s(B)){if(!_&&(V0(B)||$0(B))){if(!w(B,M))return!1}else if(!O(B,M))return!1;var Q0=w0(B,U),K0=w0(M,U);if(Q0.length!==K0.length)return!1;return t(B,M,_,i,y,Q0)}else if(C(B)){if(!C(M)||B.size!==M.size)return!1;return t(B,M,_,i,m)}else if(j(B)){if(!j(M)||B.size!==M.size)return!1;return t(B,M,_,i,u)}else if(R(B)){if(!T(B,M))return!1}else if(r(B)&&!P(B,M))return!1;return t(B,M,_,i,y)}function o(B,M){return M.filter(function(_){return b(B,_)})}function t(B,M,_,i,p,f0){if(arguments.length===5){f0=Object.keys(B);var a=Object.keys(M);if(f0.length!==a.length)return!1}var z0=0;for(;z0<f0.length;z0++)if(!g(M,f0[z0]))return!1;if(_&&arguments.length===5){var Q0=I(B);if(Q0.length!==0){var K0=0;for(z0=0;z0<Q0.length;z0++){var T0=Q0[z0];if(b(B,T0)){if(!b(M,T0))return!1;f0.push(T0),K0++}else if(b(M,T0))return!1}var p0=I(M);if(Q0.length!==p0.length&&o(M,p0).length!==K0)return!1}else{var k0=I(M);if(k0.length!==0&&o(M,k0).length!==0)return!1}}if(f0.length===0&&(p===y||p===c&&B.length===0||B.size===0))return!0;if(i===void 0)i={val1:new Map,val2:new Map,position:0};else{var o0=i.val1.get(B);if(o0!==void 0){var S0=i.val2.get(M);if(S0!==void 0)return o0===S0}i.position++}i.val1.set(B,i.position),i.val2.set(M,i.position);var r0=j0(B,M,_,f0,i,p);return i.val1.delete(B),i.val2.delete(M),r0}function Z0(B,M,_,i){var p=G(B);for(var f0=0;f0<p.length;f0++){var a=p[f0];if(S(M,a,_,i))return B.delete(a),!0}return!1}function G0(B){switch(H(B)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":B=+B;case"number":if(E(B))return!1}return!0}function q(B,M,_){var i=G0(_);if(i!=null)return i;return M.has(i)&&!B.has(i)}function B0(B,M,_,i,p){var f0=G0(_);if(f0!=null)return f0;var a=M.get(f0);if(a===void 0&&!M.has(f0)||!S(i,a,!1,p))return!1;return!B.has(f0)&&S(i,a,!1,p)}function R0(B,M,_,i){var p=null,f0=G(B);for(var a=0;a<f0.length;a++){var z0=f0[a];if(H(z0)==="object"&&z0!==null){if(p===null)p=new Set;p.add(z0)}else if(!M.has(z0)){if(_)return!1;if(!q(B,M,z0))return!1;if(p===null)p=new Set;p.add(z0)}}if(p!==null){var Q0=G(M);for(var K0=0;K0<Q0.length;K0++){var T0=Q0[K0];if(H(T0)==="object"&&T0!==null){if(!Z0(p,T0,_,i))return!1}else if(!_&&!B.has(T0)&&!Z0(p,T0,_,i))return!1}return p.size===0}return!0}function M0(B,M,_,i,p,f0){var a=G(B);for(var z0=0;z0<a.length;z0++){var Q0=a[z0];if(S(_,Q0,p,f0)&&S(i,M.get(Q0),p,f0))return B.delete(Q0),!0}return!1}function F0(B,M,_,i){var p=null,f0=D(B);for(var a=0;a<f0.length;a++){var z0=Z(f0[a],2),Q0=z0[0],K0=z0[1];if(H(Q0)==="object"&&Q0!==null){if(p===null)p=new Set;p.add(Q0)}else{var T0=M.get(Q0);if(T0===void 0&&!M.has(Q0)||!S(K0,T0,_,i)){if(_)return!1;if(!B0(B,M,Q0,K0,i))return!1;if(p===null)p=new Set;p.add(Q0)}}}if(p!==null){var p0=D(M);for(var k0=0;k0<p0.length;k0++){var o0=Z(p0[k0],2),S0=o0[0],r0=o0[1];if(H(S0)==="object"&&S0!==null){if(!M0(p,B,S0,r0,_,i))return!1}else if(!_&&(!B.has(S0)||!S(B.get(S0),r0,!1,i))&&!M0(p,B,S0,r0,!1,i))return!1}return p.size===0}return!0}function j0(B,M,_,i,p,f0){var a=0;if(f0===m){if(!R0(B,M,_,p))return!1}else if(f0===u){if(!F0(B,M,_,p))return!1}else if(f0===c)for(;a<B.length;a++)if(g(B,a)){if(!g(M,a)||!S(B[a],M[a],_,p))return!1}else if(g(M,a))return!1;else{var z0=Object.keys(B);for(;a<z0.length;a++){var Q0=z0[a];if(!g(M,Q0)||!S(B[Q0],M[Q0],_,p))return!1}if(z0.length!==Object.keys(M).length)return!1;return!0}for(a=0;a<i.length;a++){var K0=i[a];if(!S(B[K0],M[K0],_,p))return!1}return!0}function A0(B,M){return S(B,M,N)}function i0(B,M){return S(B,M,L)}J.exports={isDeepEqual:A0,isDeepStrictEqual:i0}}),kf=x((f,J)=>{function Z(F){return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},Z(F)}function z(F,w){for(var O=0;O<w.length;O++){var T=w[O];if(T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T)T.writable=!0;Object.defineProperty(F,Y(T.key),T)}}function Q(F,w,O){if(w)z(F.prototype,w);if(O)z(F,O);return Object.defineProperty(F,"prototype",{writable:!1}),F}function Y(F){var w=$(F,"string");return Z(w)==="symbol"?w:String(w)}function $(F,w){if(Z(F)!=="object"||F===null)return F;var O=F[Symbol.toPrimitive];if(O!==void 0){var T=O.call(F,w||"default");if(Z(T)!=="object")return T;throw TypeError("@@toPrimitive must return a primitive value.")}return(w==="string"?String:Number)(F)}function X(F,w){if(!(F instanceof w))throw TypeError("Cannot call a class as a function")}var H=k1(),V=H.codes,G=V.ERR_AMBIGUOUS_ARGUMENT,D=V.ERR_INVALID_ARG_TYPE,K=V.ERR_INVALID_ARG_VALUE,I=V.ERR_INVALID_RETURN_VALUE,E=V.ERR_MISSING_ARGS,v=P8(),g=t0(),b=g.inspect,k=t0().types,h=k.isPromise,R=k.isRegExp,s=v8()(),e=pf()(),j=x8()("RegExp.prototype.test"),A,C;function d(){var F=u8();A=F.isDeepEqual,C=F.isDeepStrictEqual}var r=!1,n=J.exports=V0,J0={};function l(F){if(F.message instanceof Error)throw F.message;throw new v(F)}function U0(F,w,O,T,P){var S=arguments.length,o;if(S===0)o="Failed";else if(S===1)O=F,F=void 0;else{if(r===!1){r=!0;var t=process.emitWarning?process.emitWarning:console.warn.bind(console);t("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}if(S===2)T="!="}if(O instanceof Error)throw O;var Z0={actual:F,expected:w,operator:T===void 0?"fail":T,stackStartFn:P||U0};if(O!==void 0)Z0.message=O;var G0=new v(Z0);if(o)G0.message=o,G0.generatedMessage=!0;throw G0}n.fail=U0,n.AssertionError=v;function H0(F,w,O,T){if(!O){var P=!1;if(w===0)P=!0,T="No value argument passed to `assert.ok()`";else if(T instanceof Error)throw T;var S=new v({actual:O,expected:!0,message:T,operator:"==",stackStartFn:F});throw S.generatedMessage=P,S}}function V0(){for(var F=arguments.length,w=Array(F),O=0;O<F;O++)w[O]=arguments[O];H0.apply(void 0,[V0,w.length].concat(w))}n.ok=V0,n.equal=function F(w,O,T){if(arguments.length<2)throw new E("actual","expected");if(w!=O)l({actual:w,expected:O,message:T,operator:"==",stackStartFn:F})},n.notEqual=function F(w,O,T){if(arguments.length<2)throw new E("actual","expected");if(w==O)l({actual:w,expected:O,message:T,operator:"!=",stackStartFn:F})},n.deepEqual=function F(w,O,T){if(arguments.length<2)throw new E("actual","expected");if(A===void 0)d();if(!A(w,O))l({actual:w,expected:O,message:T,operator:"deepEqual",stackStartFn:F})},n.notDeepEqual=function F(w,O,T){if(arguments.length<2)throw new E("actual","expected");if(A===void 0)d();if(A(w,O))l({actual:w,expected:O,message:T,operator:"notDeepEqual",stackStartFn:F})},n.deepStrictEqual=function F(w,O,T){if(arguments.length<2)throw new E("actual","expected");if(A===void 0)d();if(!C(w,O))l({actual:w,expected:O,message:T,operator:"deepStrictEqual",stackStartFn:F})},n.notDeepStrictEqual=$0;function $0(F,w,O){if(arguments.length<2)throw new E("actual","expected");if(A===void 0)d();if(C(F,w))l({actual:F,expected:w,message:O,operator:"notDeepStrictEqual",stackStartFn:$0})}n.strictEqual=function F(w,O,T){if(arguments.length<2)throw new E("actual","expected");if(!e(w,O))l({actual:w,expected:O,message:T,operator:"strictEqual",stackStartFn:F})},n.notStrictEqual=function F(w,O,T){if(arguments.length<2)throw new E("actual","expected");if(e(w,O))l({actual:w,expected:O,message:T,operator:"notStrictEqual",stackStartFn:F})};var q0=Q(function F(w,O,T){var P=this;X(this,F),O.forEach(function(S){if(S in w)if(T!==void 0&&typeof T[S]==="string"&&R(w[S])&&j(w[S],T[S]))P[S]=T[S];else P[S]=w[S]})});function w0(F,w,O,T,P,S){if(!(O in F)||!C(F[O],w[O])){if(!T){var o=new q0(F,P),t=new q0(w,P,F),Z0=new v({actual:o,expected:t,operator:"deepStrictEqual",stackStartFn:S});throw Z0.actual=F,Z0.expected=w,Z0.operator=S.name,Z0}l({actual:F,expected:w,message:T,operator:S.name,stackStartFn:S})}}function W(F,w,O,T){if(typeof w!=="function"){if(R(w))return j(w,F);if(arguments.length===2)throw new D("expected",["Function","RegExp"],w);if(Z(F)!=="object"||F===null){var P=new v({actual:F,expected:w,message:O,operator:"deepStrictEqual",stackStartFn:T});throw P.operator=T.name,P}var S=Object.keys(w);if(w instanceof Error)S.push("name","message");else if(S.length===0)throw new K("error",w,"may not be an empty object");if(A===void 0)d();return S.forEach(function(o){if(typeof F[o]==="string"&&R(w[o])&&j(w[o],F[o]))return;w0(F,w,o,O,S,T)}),!0}if(w.prototype!==void 0&&F instanceof w)return!0;if(Error.isPrototypeOf(w))return!1;return w.call({},F)===!0}function U(F){if(typeof F!=="function")throw new D("fn","Function",F);try{F()}catch(w){return w}return J0}function L(F){return h(F)||F!==null&&Z(F)==="object"&&typeof F.then==="function"&&typeof F.catch==="function"}function N(F){return Promise.resolve().then(function(){var w;if(typeof F==="function"){if(w=F(),!L(w))throw new I("instance of Promise","promiseFn",w)}else if(L(F))w=F;else throw new D("promiseFn",["Function","Promise"],F);return Promise.resolve().then(function(){return w}).then(function(){return J0}).catch(function(O){return O})})}function y(F,w,O,T){if(typeof O==="string"){if(arguments.length===4)throw new D("error",["Object","Error","Function","RegExp"],O);if(Z(w)==="object"&&w!==null){if(w.message===O)throw new G("error/message",'The error message "'.concat(w.message,'" is identical to the message.'))}else if(w===O)throw new G("error/message",'The error "'.concat(w,'" is identical to the message.'));T=O,O=void 0}else if(O!=null&&Z(O)!=="object"&&typeof O!=="function")throw new D("error",["Object","Error","Function","RegExp"],O);if(w===J0){var P="";if(O&&O.name)P+=" (".concat(O.name,")");P+=T?": ".concat(T):".";var S=F.name==="rejects"?"rejection":"exception";l({actual:void 0,expected:O,operator:F.name,message:"Missing expected ".concat(S).concat(P),stackStartFn:F})}if(O&&!W(w,O,T,F))throw w}function c(F,w,O,T){if(w===J0)return;if(typeof O==="string")T=O,O=void 0;if(!O||W(w,O)){var P=T?": ".concat(T):".",S=F.name==="doesNotReject"?"rejection":"exception";l({actual:w,expected:O,operator:F.name,message:"Got unwanted ".concat(S).concat(P,`
`)+'Actual message: "'.concat(w&&w.message,'"'),stackStartFn:F})}throw w}n.throws=function F(w){for(var O=arguments.length,T=Array(O>1?O-1:0),P=1;P<O;P++)T[P-1]=arguments[P];y.apply(void 0,[F,U(w)].concat(T))},n.rejects=function F(w){for(var O=arguments.length,T=Array(O>1?O-1:0),P=1;P<O;P++)T[P-1]=arguments[P];return N(w).then(function(S){return y.apply(void 0,[F,S].concat(T))})},n.doesNotThrow=function F(w){for(var O=arguments.length,T=Array(O>1?O-1:0),P=1;P<O;P++)T[P-1]=arguments[P];c.apply(void 0,[F,U(w)].concat(T))},n.doesNotReject=function F(w){for(var O=arguments.length,T=Array(O>1?O-1:0),P=1;P<O;P++)T[P-1]=arguments[P];return N(w).then(function(S){return c.apply(void 0,[F,S].concat(T))})},n.ifError=function F(w){if(w!==null&&w!==void 0){var O="ifError got unwanted exception: ";if(Z(w)==="object"&&typeof w.message==="string")if(w.message.length===0&&w.constructor)O+=w.constructor.name;else O+=w.message;else O+=b(w);var T=new v({actual:w,expected:null,operator:"ifError",message:O,stackStartFn:F}),P=w.stack;if(typeof P==="string"){var S=P.split(`
`);S.shift();var o=T.stack.split(`
`);for(var t=0;t<S.length;t++){var Z0=o.indexOf(S[t]);if(Z0!==-1){o=o.slice(0,Z0);break}}T.stack="".concat(o.join(`
`),`
`).concat(S.join(`
`))}throw T}};function m(F,w,O,T,P){if(!R(w))throw new D("regexp","RegExp",w);var S=P==="match";if(typeof F!=="string"||j(w,F)!==S){if(O instanceof Error)throw O;var o=!O;O=O||(typeof F!=="string"?'The "string" argument must be of type string. Received type '+"".concat(Z(F)," (").concat(b(F),")"):(S?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(b(w),`. Input:

`).concat(b(F),`
`));var t=new v({actual:F,expected:w,message:O,operator:P,stackStartFn:T});throw t.generatedMessage=o,t}}n.match=function F(w,O,T){m(w,O,T,F,"match")},n.doesNotMatch=function F(w,O,T){m(w,O,T,F,"doesNotMatch")};function u(){for(var F=arguments.length,w=Array(F),O=0;O<F;O++)w[O]=arguments[O];H0.apply(void 0,[u,w.length].concat(w))}n.strict=s(u,n,{equal:n.strictEqual,deepEqual:n.deepStrictEqual,notEqual:n.notStrictEqual,notDeepEqual:n.notDeepStrictEqual}),n.strict.strict=n.strict}),n1=rZ(kf(),1),{AssertionError:y8,CallTracker:c8,deepEqual:d8,deepStrictEqual:m8,doesNotMatch:n8,doesNotReject:l8,doesNotThrow:i8,equal:p8,fail:o8,ifError:r8,match:s8,notDeepEqual:a8,notDeepStrictEqual:t8,notEqual:e8,notStrictEqual:f9,ok:J9,rejects:Z9,strict:z9,strictEqual:Q9,throws:Y9}=n1,W9=n1});var o1=W0((Gz,p1)=>{var l1=12,$9=0,of=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function H9(f){var J=f.indexOf("%");if(J===-1)return f;var Z=f.length,z="",Q=0,Y=0,$=J,X=l1;while(J>-1&&J<Z){var H=i1(f[J+1],4),V=i1(f[J+2],0),G=H|V,D=of[G];if(X=of[256+X+D],Y=Y<<6|G&of[364+D],X===l1)z+=f.slice(Q,$),z+=Y<=65535?String.fromCharCode(Y):String.fromCharCode(55232+(Y>>10),56320+(Y&1023)),Y=0,Q=J+3,J=$=f.indexOf("%",Q);else if(X===$9)return null;else{if(J+=3,J<Z&&f.charCodeAt(J)===37)continue;return null}}return z+f.slice(Q)}var X9={"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function i1(f,J){var Z=X9[f];return Z===void 0?255:Z<<J}p1.exports=H9});var e1=W0((Fz,t1)=>{var r1=o1(),s1=/\+/g,a1=function(){};a1.prototype=Object.create(null);function U9(f){let J=new a1;if(typeof f!=="string")return J;let Z=f.length,z="",Q="",Y=-1,$=-1,X=!1,H=!1,V=!1,G=!1,D=!1,K=0;for(let I=0;I<Z+1;I++)if(K=I!==Z?f.charCodeAt(I):38,K===38){if(D=$>Y,!D)$=I;if(z=f.slice(Y+1,$),D||z.length>0){if(V)z=z.replace(s1," ");if(X)z=r1(z)||z;if(D){if(Q=f.slice($+1,I),G)Q=Q.replace(s1," ");if(H)Q=r1(Q)||Q}let E=J[z];if(E===void 0)J[z]=Q;else if(E.pop)E.push(Q);else J[z]=[E,Q]}Q="",Y=I,$=I,X=!1,H=!1,V=!1,G=!1}else if(K===61)if($<=Y)$=I;else H=!0;else if(K===43)if($>Y)G=!0;else V=!0;else if(K===37)if($>Y)H=!0;else X=!0;return J}t1.exports=U9});var JJ=W0((Kz,fJ)=>{var E0=Array.from({length:256},(f,J)=>"%"+((J<16?"0":"")+J.toString(16)).toUpperCase()),w9=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function O9(f){let J=f.length;if(J===0)return"";let Z="",z=0,Q=0;f:for(;Q<J;Q++){let Y=f.charCodeAt(Q);while(Y<128){if(w9[Y]!==1){if(z<Q)Z+=f.slice(z,Q);z=Q+1,Z+=E0[Y]}if(++Q===J)break f;Y=f.charCodeAt(Q)}if(z<Q)Z+=f.slice(z,Q);if(Y<2048){z=Q+1,Z+=E0[192|Y>>6]+E0[128|Y&63];continue}if(Y<55296||Y>=57344){z=Q+1,Z+=E0[224|Y>>12]+E0[128|Y>>6&63]+E0[128|Y&63];continue}if(++Q,Q>=J)throw Error("URI malformed");let $=f.charCodeAt(Q)&1023;z=Q+1,Y=65536+((Y&1023)<<10|$),Z+=E0[240|Y>>18]+E0[128|Y>>12&63]+E0[128|Y>>6&63]+E0[128|Y&63]}if(z===0)return f;if(z<J)return Z+f.slice(z);return Z}fJ.exports={encodeString:O9}});var QJ=W0((Dz,zJ)=>{var{encodeString:rf}=JJ();function ZJ(f){let J=typeof f;if(J==="string")return rf(f);else if(J==="bigint")return f.toString();else if(J==="boolean")return f?"true":"false";else if(J==="number"&&Number.isFinite(f))return f<1000000000000000000000?""+f:rf(""+f);return""}function B9(f){let J="";if(f===null||typeof f!=="object")return J;let Z="&",z=Object.keys(f),Q=z.length,Y=0;for(let $=0;$<Q;$++){let X=z[$],H=f[X],V=rf(X)+"=";if($)J+=Z;if(Array.isArray(H)){Y=H.length;for(let G=0;G<Y;G++){if(G)J+=Z;J+=V,J+=ZJ(H[G])}}else J+=V,J+=ZJ(H)}return J}zJ.exports=B9});var HJ=W0((Lz,zf)=>{var YJ=e1(),WJ=QJ(),$J={parse:YJ,stringify:WJ};zf.exports=$J;zf.exports.default=$J;zf.exports.parse=YJ;zf.exports.stringify=WJ});var UJ=W0((XJ)=>{Object.defineProperty(XJ,"__esModule",{value:!0})});var OJ=W0((wJ)=>{Object.defineProperty(wJ,"__esModule",{value:!0});wJ.types=void 0;var V9;(function(f){f[f.ROOT=0]="ROOT",f[f.GROUP=1]="GROUP",f[f.POSITION=2]="POSITION",f[f.SET=3]="SET",f[f.RANGE=4]="RANGE",f[f.REPETITION=5]="REPETITION",f[f.REFERENCE=6]="REFERENCE",f[f.CHAR=7]="CHAR"})(V9=wJ.types||(wJ.types={}))});var VJ=W0((BJ)=>{Object.defineProperty(BJ,"__esModule",{value:!0})});var v0=W0((b0)=>{var G9=b0&&b0.__createBinding||(Object.create?function(f,J,Z,z){if(z===void 0)z=Z;Object.defineProperty(f,z,{enumerable:!0,get:function(){return J[Z]}})}:function(f,J,Z,z){if(z===void 0)z=Z;f[z]=J[Z]}),af=b0&&b0.__exportStar||function(f,J){for(var Z in f)if(Z!=="default"&&!Object.prototype.hasOwnProperty.call(J,Z))G9(J,f,Z)};Object.defineProperty(b0,"__esModule",{value:!0});af(UJ(),b0);af(OJ(),b0);af(VJ(),b0)});var Gf=W0((DJ)=>{Object.defineProperty(DJ,"__esModule",{value:!0});DJ.anyChar=DJ.notWhitespace=DJ.whitespace=DJ.notInts=DJ.ints=DJ.notWords=DJ.words=void 0;var Y0=v0(),GJ=()=>[{type:Y0.types.RANGE,from:48,to:57}],FJ=()=>[{type:Y0.types.CHAR,value:95},{type:Y0.types.RANGE,from:97,to:122},{type:Y0.types.RANGE,from:65,to:90},{type:Y0.types.RANGE,from:48,to:57}],KJ=()=>[{type:Y0.types.CHAR,value:9},{type:Y0.types.CHAR,value:10},{type:Y0.types.CHAR,value:11},{type:Y0.types.CHAR,value:12},{type:Y0.types.CHAR,value:13},{type:Y0.types.CHAR,value:32},{type:Y0.types.CHAR,value:160},{type:Y0.types.CHAR,value:5760},{type:Y0.types.RANGE,from:8192,to:8202},{type:Y0.types.CHAR,value:8232},{type:Y0.types.CHAR,value:8233},{type:Y0.types.CHAR,value:8239},{type:Y0.types.CHAR,value:8287},{type:Y0.types.CHAR,value:12288},{type:Y0.types.CHAR,value:65279}],F9=()=>[{type:Y0.types.CHAR,value:10},{type:Y0.types.CHAR,value:13},{type:Y0.types.CHAR,value:8232},{type:Y0.types.CHAR,value:8233}];DJ.words=()=>({type:Y0.types.SET,set:FJ(),not:!1});DJ.notWords=()=>({type:Y0.types.SET,set:FJ(),not:!0});DJ.ints=()=>({type:Y0.types.SET,set:GJ(),not:!1});DJ.notInts=()=>({type:Y0.types.SET,set:GJ(),not:!0});DJ.whitespace=()=>({type:Y0.types.SET,set:KJ(),not:!1});DJ.notWhitespace=()=>({type:Y0.types.SET,set:KJ(),not:!0});DJ.anyChar=()=>({type:Y0.types.SET,set:F9(),not:!0})});var TJ=W0((I0)=>{var q9=I0&&I0.__createBinding||(Object.create?function(f,J,Z,z){if(z===void 0)z=Z;Object.defineProperty(f,z,{enumerable:!0,get:function(){return J[Z]}})}:function(f,J,Z,z){if(z===void 0)z=Z;f[z]=J[Z]}),j9=I0&&I0.__setModuleDefault||(Object.create?function(f,J){Object.defineProperty(f,"default",{enumerable:!0,value:J})}:function(f,J){f.default=J}),I9=I0&&I0.__importStar||function(f){if(f&&f.__esModule)return f;var J={};if(f!=null){for(var Z in f)if(Z!=="default"&&Object.prototype.hasOwnProperty.call(f,Z))q9(J,f,Z)}return j9(J,f),J};Object.defineProperty(I0,"__esModule",{value:!0});I0.tokenizeClass=I0.strToChars=void 0;var MJ=v0(),m0=I9(Gf()),C9="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?";I0.strToChars=(f)=>{let J=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g;return f.replace(J,(Z,z,Q,Y,$,X,H)=>{if(Q)return Z;let V=z?8:Y?parseInt(Y,16):$?parseInt($,16):X?C9.indexOf(X):{0:0,t:9,n:10,v:11,f:12,r:13}[H],G=String.fromCharCode(V);return/[[\]{}^$.|?*+()]/.test(G)?`\\${G}`:G})};I0.tokenizeClass=(f,J)=>{var Z,z,Q,Y,$,X,H;let V=[],G,D,K=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(((?:\\)])|(((?:\\)?([^\]])))))|(\])|(?:\\)?([^])/g;while((G=K.exec(f))!==null){let I=(H=(X=($=(Y=(Q=(z=(Z=G[1]&&m0.words())!==null&&Z!==void 0?Z:G[2]&&m0.ints())!==null&&z!==void 0?z:G[3]&&m0.whitespace())!==null&&Q!==void 0?Q:G[4]&&m0.notWords())!==null&&Y!==void 0?Y:G[5]&&m0.notInts())!==null&&$!==void 0?$:G[6]&&m0.notWhitespace())!==null&&X!==void 0?X:G[7]&&{type:MJ.types.RANGE,from:(G[8]||G[9]).charCodeAt(0),to:(D=G[10]).charCodeAt(D.length-1)})!==null&&H!==void 0?H:(D=G[16])&&{type:MJ.types.CHAR,value:D.charCodeAt(0)};if(I)V.push(I);else return[V,K.lastIndex]}throw SyntaxError(`Invalid regular expression: /${J}/: Unterminated character class`)}});var tf=W0((P0)=>{var N9=P0&&P0.__createBinding||(Object.create?function(f,J,Z,z){if(z===void 0)z=Z;Object.defineProperty(f,z,{enumerable:!0,get:function(){return J[Z]}})}:function(f,J,Z,z){if(z===void 0)z=Z;f[z]=J[Z]}),R9=P0&&P0.__setModuleDefault||(Object.create?function(f,J){Object.defineProperty(f,"default",{enumerable:!0,value:J})}:function(f,J){f.default=J}),jJ=P0&&P0.__importStar||function(f){if(f&&f.__esModule)return f;var J={};if(f!=null){for(var Z in f)if(Z!=="default"&&Object.prototype.hasOwnProperty.call(f,Z))N9(J,f,Z)}return R9(J,f),J};Object.defineProperty(P0,"__esModule",{value:!0});P0.tokenizer=void 0;var AJ=jJ(TJ()),D0=v0(),h0=jJ(Gf()),E9=/^[a-zA-Z_$]$/i,P9=/^[a-zA-Z0-9_$]$/i,qJ=/\d/;P0.tokenizer=(f)=>{let J=0,Z,z={type:D0.types.ROOT,stack:[]},Q=z,Y=z.stack,$=[],X=[],H=0,V=(D)=>{throw SyntaxError(`Invalid regular expression: /${f}/: Nothing to repeat at column ${D-1}`)},G=AJ.strToChars(f);while(J<G.length)switch(Z=G[J++]){case"\\":if(J===G.length)throw SyntaxError(`Invalid regular expression: /${f}/: \\ at end of pattern`);switch(Z=G[J++]){case"b":Y.push({type:D0.types.POSITION,value:"b"});break;case"B":Y.push({type:D0.types.POSITION,value:"B"});break;case"w":Y.push(h0.words());break;case"W":Y.push(h0.notWords());break;case"d":Y.push(h0.ints());break;case"D":Y.push(h0.notInts());break;case"s":Y.push(h0.whitespace());break;case"S":Y.push(h0.notWhitespace());break;default:if(qJ.test(Z)){let D=Z;while(J<G.length&&qJ.test(G[J]))D+=G[J++];let K=parseInt(D,10),I={type:D0.types.REFERENCE,value:K};Y.push(I),X.push({reference:I,stack:Y,index:Y.length-1})}else Y.push({type:D0.types.CHAR,value:Z.charCodeAt(0)})}break;case"^":Y.push({type:D0.types.POSITION,value:"^"});break;case"$":Y.push({type:D0.types.POSITION,value:"$"});break;case"[":{let D;if(G[J]==="^")D=!0,J++;else D=!1;let K=AJ.tokenizeClass(G.slice(J),f);J+=K[1],Y.push({type:D0.types.SET,set:K[0],not:D});break}case".":Y.push(h0.anyChar());break;case"(":{let D={type:D0.types.GROUP,stack:[],remember:!0};if(G[J]==="?")if(Z=G[J+1],J+=2,Z==="=")D.followedBy=!0,D.remember=!1;else if(Z==="!")D.notFollowedBy=!0,D.remember=!1;else if(Z==="<"){let K="";if(E9.test(G[J]))K+=G[J],J++;else throw SyntaxError(`Invalid regular expression: /${f}/: Invalid capture group name, character '${G[J]}' after '<' at column ${J+1}`);while(J<G.length&&P9.test(G[J]))K+=G[J],J++;if(!K)throw SyntaxError(`Invalid regular expression: /${f}/: Invalid capture group name, character '${G[J]}' after '<' at column ${J+1}`);if(G[J]!==">")throw SyntaxError(`Invalid regular expression: /${f}/: Unclosed capture group name, expected '>', found '${G[J]}' at column ${J+1}`);D.name=K,J++}else if(Z===":")D.remember=!1;else throw SyntaxError(`Invalid regular expression: /${f}/: Invalid group, character '${Z}' after '?' at column ${J-1}`);else H+=1;Y.push(D),$.push(Q),Q=D,Y=D.stack;break}case")":if($.length===0)throw SyntaxError(`Invalid regular expression: /${f}/: Unmatched ) at column ${J-1}`);Q=$.pop(),Y=Q.options?Q.options[Q.options.length-1]:Q.stack;break;case"|":{if(!Q.options)Q.options=[Q.stack],delete Q.stack;let D=[];Q.options.push(D),Y=D;break}case"{":{let D=/^(\d+)(,(\d+)?)?\}/.exec(G.slice(J)),K,I;if(D!==null){if(Y.length===0)V(J);K=parseInt(D[1],10),I=D[2]?D[3]?parseInt(D[3],10):1/0:K,J+=D[0].length,Y.push({type:D0.types.REPETITION,min:K,max:I,value:Y.pop()})}else Y.push({type:D0.types.CHAR,value:123});break}case"?":if(Y.length===0)V(J);Y.push({type:D0.types.REPETITION,min:0,max:1,value:Y.pop()});break;case"+":if(Y.length===0)V(J);Y.push({type:D0.types.REPETITION,min:1,max:1/0,value:Y.pop()});break;case"*":if(Y.length===0)V(J);Y.push({type:D0.types.REPETITION,min:0,max:1/0,value:Y.pop()});break;default:Y.push({type:D0.types.CHAR,value:Z.charCodeAt(0)})}if($.length!==0)throw SyntaxError(`Invalid regular expression: /${f}/: Unterminated group`);return S9(X,H),z};function S9(f,J){for(let Z of f.reverse())if(J<Z.reference.value){Z.reference.type=D0.types.CHAR;let z=Z.reference.value.toString();if(Z.reference.value=parseInt(z,8),!/^[0-7]+$/.test(z)){let Q=0;while(z[Q]!=="8"&&z[Q]!=="9")Q+=1;if(Q===0)Z.reference.value=z.charCodeAt(0),Q+=1;else Z.reference.value=parseInt(z.slice(0,Q),8);if(z.length>Q){let Y=Z.stack.splice(Z.index+1);for(let $ of z.slice(Q))Z.stack.push({type:D0.types.CHAR,value:$.charCodeAt(0)});Z.stack.push(...Y)}}}}});var CJ=W0((L0)=>{var b9=L0&&L0.__createBinding||(Object.create?function(f,J,Z,z){if(z===void 0)z=Z;Object.defineProperty(f,z,{enumerable:!0,get:function(){return J[Z]}})}:function(f,J,Z,z){if(z===void 0)z=Z;f[z]=J[Z]}),v9=L0&&L0.__setModuleDefault||(Object.create?function(f,J){Object.defineProperty(f,"default",{enumerable:!0,value:J})}:function(f,J){f.default=J}),x9=L0&&L0.__importStar||function(f){if(f&&f.__esModule)return f;var J={};if(f!=null){for(var Z in f)if(Z!=="default"&&Object.prototype.hasOwnProperty.call(f,Z))b9(J,f,Z)}return v9(J,f),J};Object.defineProperty(L0,"__esModule",{value:!0});L0.NOTANYCHAR=L0.WHITESPACE=L0.WORDS=L0.INTS=void 0;var Ff=x9(Gf()),IJ=v0();function Kf(f){let J={},Z=0;for(let z of f){if(z.type===IJ.types.CHAR)J[z.value]=!0;if(z.type===IJ.types.RANGE)J[`${z.from}-${z.to}`]=!0;Z+=1}return{lookup:()=>Object.assign({},J),len:Z}}L0.INTS=Kf(Ff.ints().set);L0.WORDS=Kf(Ff.words().set);L0.WHITESPACE=Kf(Ff.whitespace().set);L0.NOTANYCHAR=Kf(Ff.anyChar().set)});var RJ=W0((C0)=>{var _9=C0&&C0.__createBinding||(Object.create?function(f,J,Z,z){if(z===void 0)z=Z;Object.defineProperty(f,z,{enumerable:!0,get:function(){return J[Z]}})}:function(f,J,Z,z){if(z===void 0)z=Z;f[z]=J[Z]}),h9=C0&&C0.__setModuleDefault||(Object.create?function(f,J){Object.defineProperty(f,"default",{enumerable:!0,value:J})}:function(f,J){f.default=J}),g9=C0&&C0.__importStar||function(f){if(f&&f.__esModule)return f;var J={};if(f!=null){for(var Z in f)if(Z!=="default"&&Object.prototype.hasOwnProperty.call(f,Z))_9(J,f,Z)}return h9(J,f),J};Object.defineProperty(C0,"__esModule",{value:!0});C0.writeSetTokens=C0.setChar=void 0;var Tf=v0(),Df=g9(CJ());function Mf(f){return f===94?"\\^":f===92?"\\\\":f===93?"\\]":f===45?"\\-":String.fromCharCode(f)}C0.setChar=Mf;function Lf(f,{lookup:J,len:Z}){if(Z!==f.length)return!1;let z=J();for(let Q of f){if(Q.type===Tf.types.SET)return!1;let Y=Q.type===Tf.types.CHAR?Q.value:`${Q.from}-${Q.to}`;if(z[Y])z[Y]=!1;else return!1}return!0}function NJ(f,J=!1){if(Lf(f.set,Df.INTS))return f.not?"\\D":"\\d";if(Lf(f.set,Df.WORDS))return f.not?"\\W":"\\w";if(f.not&&Lf(f.set,Df.NOTANYCHAR))return".";if(Lf(f.set,Df.WHITESPACE))return f.not?"\\S":"\\s";let Z="";for(let Q=0;Q<f.set.length;Q++){let Y=f.set[Q];Z+=k9(Y)}let z=`${f.not?"^":""}${Z}`;return J?z:`[${z}]`}C0.writeSetTokens=NJ;function k9(f){if(f.type===Tf.types.CHAR)return Mf(f.value);else if(f.type===Tf.types.RANGE)return`${Mf(f.from)}-${Mf(f.to)}`;return NJ(f,!0)}});var f1=W0((SJ)=>{Object.defineProperty(SJ,"__esModule",{value:!0});SJ.reconstruct=void 0;var x0=v0(),ef=RJ(),EJ=(f)=>f.map(SJ.reconstruct).join(""),PJ=(f)=>{if("options"in f)return f.options.map(EJ).join("|");else if("stack"in f)return EJ(f.stack);else throw Error("options or stack must be Root or Group token")};SJ.reconstruct=(f)=>{switch(f.type){case x0.types.ROOT:return PJ(f);case x0.types.CHAR:{let J=String.fromCharCode(f.value);return(/[[\\{}$^.|?*+()]/.test(J)?"\\":"")+J}case x0.types.POSITION:if(f.value==="^"||f.value==="$")return f.value;else return`\\${f.value}`;case x0.types.REFERENCE:return`\\${f.value}`;case x0.types.SET:return ef.writeSetTokens(f);case x0.types.GROUP:return`(${f.name?`?<${f.name}>`:f.remember?"":f.followedBy?"?=":f.notFollowedBy?"?!":"?:"}${PJ(f)})`;case x0.types.REPETITION:{let{min:J,max:Z}=f,z;if(J===0&&Z===1)z="?";else if(J===1&&Z===1/0)z="+";else if(J===0&&Z===1/0)z="*";else if(Z===1/0)z=`{${J},}`;else if(J===Z)z=`{${J}}`;else z=`{${J},${Z}}`;return`${SJ.reconstruct(f.value)}${z}`}case x0.types.RANGE:return`${ef.setChar(f.from)}-${ef.setChar(f.to)}`;default:throw Error(`Invalid token type ${f}`)}}});var xJ=W0((N0,qf)=>{var u9=N0&&N0.__createBinding||(Object.create?function(f,J,Z,z){if(z===void 0)z=Z;Object.defineProperty(f,z,{enumerable:!0,get:function(){return J[Z]}})}:function(f,J,Z,z){if(z===void 0)z=Z;f[z]=J[Z]}),J1=N0&&N0.__exportStar||function(f,J){for(var Z in f)if(Z!=="default"&&!Object.prototype.hasOwnProperty.call(J,Z))u9(J,f,Z)};Object.defineProperty(N0,"__esModule",{value:!0});N0.types=void 0;var bJ=v0();Object.defineProperty(N0,"types",{enumerable:!0,get:function(){return bJ.types}});J1(tf(),N0);J1(f1(),N0);var vJ=tf(),y9=f1();J1(v0(),N0);N0.default=vJ.tokenizer;qf.exports=vJ.tokenizer;qf.exports.types=bJ.types;qf.exports.reconstruct=y9.reconstruct});var hJ=W0((Pz,jf)=>{var _J=xJ(),c9=_J.types;function Z1(f,J){if(!J)J={};let Z=J.limit===void 0?25:J.limit;if(d9(f))f=f.source;else if(typeof f!=="string")f=String(f);try{f=_J(f)}catch{return!1}let z=0;return function Q(Y,$){let X,H,V;if(Y.type===c9.REPETITION){if($++,z++,$>1)return!1;if(z>Z)return!1}if(Y.options){for(X=0,V=Y.options.length;X<V;X++)if(H=Q({stack:Y.options[X]},$),!H)return!1}let G=Y.stack||Y.value?.stack;if(!G)return!0;for(X=0;X<G.length;X++)if(H=Q(G[X],$),!H)return!1;return!0}(f,0)}function d9(f){return{}.toString.call(f)==="[object RegExp]"}jf.exports=Z1;jf.exports.default=Z1;jf.exports.safeRegex=Z1});var z1=W0((Sz,gJ)=>{gJ.exports=function f(J,Z){if(J===Z)return!0;if(J&&Z&&typeof J=="object"&&typeof Z=="object"){if(J.constructor!==Z.constructor)return!1;var z,Q,Y;if(Array.isArray(J)){if(z=J.length,z!=Z.length)return!1;for(Q=z;Q--!==0;)if(!f(J[Q],Z[Q]))return!1;return!0}if(J.constructor===RegExp)return J.source===Z.source&&J.flags===Z.flags;if(J.valueOf!==Object.prototype.valueOf)return J.valueOf()===Z.valueOf();if(J.toString!==Object.prototype.toString)return J.toString()===Z.toString();if(Y=Object.keys(J),z=Y.length,z!==Object.keys(Z).length)return!1;for(Q=z;Q--!==0;)if(!Object.prototype.hasOwnProperty.call(Z,Y[Q]))return!1;for(Q=z;Q--!==0;){var $=Y[Q];if(!f(J[$],Z[$]))return!1}return!0}return J!==J&&Z!==Z}});var If=W0((bz,kJ)=>{kJ.exports={name:"__fmw_internal_strategy_merged_tree_http_method__",storage:function(){let f=new Map;return{get:(J)=>{return f.get(J)||null},set:(J,Z)=>{f.set(J,Z)}}},deriveConstraint:(f)=>f.method,mustMatchWhenDerived:!0}});var lJ=W0((vz,nJ)=>{var uJ=z1(),yJ=If(),cJ=Symbol("treeData");function dJ(f,J=""){let Z="",z=Object.keys(f);for(let Q=0;Q<z.length;Q++){let Y=z[Q],$=f[Y],X=Q===z.length-1,H=X?"└── ":"├── ",V=X?"    ":"│   ",D=($[cJ]||"").replaceAll(`
`,`
`+J+V);Z+=J+H+Y+D+`
`,Z+=dJ($,J+V)}return Z}function m9(f){let J=f.name||"";return J=J.replace("bound","").trim(),J=(J||"anonymous")+"()",J}function mJ(f){if(Array.isArray(f))return f.map((J)=>mJ(J));if(typeof f==="symbol")return f.toString();if(typeof f==="function")return m9(f);return f}function n9(f,J){if(!J.includeMeta)return{};let Z=J.buildPrettyMeta(f),z={},Q=J.includeMeta;if(!Array.isArray(Q))Q=Reflect.ownKeys(Z);for(let Y of Q){if(!Object.prototype.hasOwnProperty.call(Z,Y))continue;let $=Y.toString(),X=Z[Y];if(X!==void 0&&X!==null){let H=JSON.stringify(mJ(X));z[$]=H}}return z}function l9(f){let J="";for(let[Z,z]of Object.entries(f))J+=`
• (${Z}) ${z}`;return J}function i9(f){let J={...f.opts.constraints},Z=J[yJ.name];return delete J[yJ.name],{...f,method:Z,opts:{constraints:J}}}function p9(f){let J=` (${f.method})`,Z=f.opts.constraints||{};if(Object.keys(Z).length!==0)J+=" "+JSON.stringify(Z);return J+=l9(f.metaData),J}function o9(f){return f.reduce((J,Z)=>{for(let z of J)if(uJ(Z.opts.constraints,z.opts.constraints)&&uJ(Z.metaData,z.metaData))return z.method+=", "+Z.method,J;return J.push(Z),J},[])}function r9(f,J,Z){let z=f.routes;if(Z.method===void 0)z=z.map(i9);if(z=z.map((Q)=>{return Q.metaData=n9(Q,Z),Q}),Z.method===void 0)z=o9(z);return z.map(p9).join(`
${J}`)}function Cf(f,J,Z,z){if(f.isLeafNode||z.commonPrefix!==!1){if(Z=Z||"(empty root node)",J=J[Z]={},f.isLeafNode)J[cJ]=r9(f,Z,z);Z=""}if(f.staticChildren)for(let Q of Object.values(f.staticChildren))Cf(Q,J,Z+Q.prefix,z);if(f.parametricChildren)for(let Q of Object.values(f.parametricChildren)){let Y=Array.from(Q.nodePaths).join("|");Cf(Q,J,Z+Y,z)}if(f.wildcardChild)Cf(f.wildcardChild,J,"*",z)}function s9(f,J){let Z={};return Cf(f,Z,f.prefix,J),dJ(Z)}nJ.exports={prettyPrintTree:s9}});var oJ=W0((xz,pJ)=>{var iJ=function(){};iJ.prototype=Object.create(null);pJ.exports={NullObject:iJ}});var aJ=W0((_z,sJ)=>{var{NullObject:a9}=oJ(),t9=If();class rJ{constructor(){this.unconstrainedHandler=null,this.constraints=[],this.handlers=[],this.constrainedHandlerStores=null}getMatchingHandler(f){if(f===void 0)return this.unconstrainedHandler;return this._getHandlerMatchingConstraints(f)}addHandler(f,J){let Z=J.params,z=J.opts.constraints||{},Q={params:Z,constraints:z,handler:J.handler,store:J.store||null,_createParamsObject:this._compileCreateParamsObject(Z)},Y=Object.keys(z);if(Y.length===0)this.unconstrainedHandler=Q;for(let X of Y)if(!this.constraints.includes(X))if(X==="version")this.constraints.unshift(X);else this.constraints.push(X);let $=Y.includes(t9.name);if(!$&&this.handlers.length>=31)throw Error("find-my-way supports a maximum of 31 route handlers per node when there are constraints, limit reached");if(this.handlers.push(Q),this.handlers.sort((X,H)=>Object.keys(X.constraints).length-Object.keys(H.constraints).length),!$)this._compileGetHandlerMatchingConstraints(f,z)}_compileCreateParamsObject(f){let J=[];J.push("const fn = function _createParamsObject (paramsArray) {"),J.push("const params = new NullObject()");for(let Z=0;Z<f.length;Z++)J.push(`params['${f[Z]}'] = paramsArray[${Z}]`);return J.push("return params"),J.push("}"),J.push("return fn"),Function("NullObject",J.join(`
`))(a9)}_getHandlerMatchingConstraints(){return null}_buildConstraintStore(f,J){for(let Z=0;Z<this.handlers.length;Z++){let Q=this.handlers[Z].constraints[J];if(Q!==void 0){let Y=f.get(Q)||0;Y|=1<<Z,f.set(Q,Y)}}}_constrainedIndexBitmask(f){let J=0;for(let Z=0;Z<this.handlers.length;Z++)if(this.handlers[Z].constraints[f]!==void 0)J|=1<<Z;return~J}_compileGetHandlerMatchingConstraints(f){this.constrainedHandlerStores={};for(let Z of this.constraints){let z=f.newStoreForConstraint(Z);this.constrainedHandlerStores[Z]=z,this._buildConstraintStore(z,Z)}let J=[];J.push(`
    let candidates = ${(1<<this.handlers.length)-1}
    let mask, matches
    `);for(let Z of this.constraints){J.push(`
      mask = ${this._constrainedIndexBitmask(Z)}
      value = derivedConstraints.${Z}
      `);let Q=f.strategies[Z].mustMatchWhenDerived?"matches":"(matches | mask)";J.push(`
      if (value === undefined) {
        candidates &= mask
      } else {
        matches = this.constrainedHandlerStores.${Z}.get(value) || 0
        candidates &= ${Q}
      }
      if (candidates === 0) return null;
      `)}for(let Z in f.strategies)if(f.strategies[Z].mustMatchWhenDerived&&!this.constraints.includes(Z))J.push(`if (derivedConstraints.${Z} !== undefined) return null`);J.push("return this.handlers[Math.floor(Math.log2(candidates))]"),this._getHandlerMatchingConstraints=Function("derivedConstraints",J.join(`
`))}}sJ.exports=rJ});var eJ=W0((hz,tJ)=>{var e9=aJ(),Nf={STATIC:0,PARAMETRIC:1,WILDCARD:2};class Q1{constructor(){this.isLeafNode=!1,this.routes=null,this.handlerStorage=null}addRoute(f,J){if(this.routes===null)this.routes=[];if(this.handlerStorage===null)this.handlerStorage=new e9;this.isLeafNode=!0,this.routes.push(f),this.handlerStorage.addHandler(J,f)}}class Y1 extends Q1{constructor(){super();this.staticChildren={}}findStaticMatchingChild(f,J){let Z=this.staticChildren[f.charAt(J)];if(Z===void 0||!Z.matchPrefix(f,J))return null;return Z}getStaticChild(f,J=0){if(f.length===J)return this;let Z=this.findStaticMatchingChild(f,J);if(Z)return Z.getStaticChild(f,J+Z.prefix.length);return null}createStaticChild(f){if(f.length===0)return this;let J=this.staticChildren[f.charAt(0)];if(J){let z=1;for(;z<J.prefix.length;z++)if(f.charCodeAt(z)!==J.prefix.charCodeAt(z)){J=J.split(this,z);break}return J.createStaticChild(f.slice(z))}let Z=f.charAt(0);return this.staticChildren[Z]=new Rf(f),this.staticChildren[Z]}}class Rf extends Y1{constructor(f){super();this.prefix=f,this.wildcardChild=null,this.parametricChildren=[],this.kind=Nf.STATIC,this._compilePrefixMatch()}getParametricChild(f){let J=f&&f.source,Z=this.parametricChildren.find((z)=>{return(z.regex&&z.regex.source)===J});if(Z)return Z;return null}createParametricChild(f,J,Z){let z=this.getParametricChild(f);if(z)return z.nodePaths.add(Z),z;return z=new W1(f,J,Z),this.parametricChildren.push(z),this.parametricChildren.sort((Q,Y)=>{if(!Q.isRegex)return 1;if(!Y.isRegex)return-1;if(Q.staticSuffix===null)return 1;if(Y.staticSuffix===null)return-1;if(Y.staticSuffix.endsWith(Q.staticSuffix))return 1;if(Q.staticSuffix.endsWith(Y.staticSuffix))return-1;return 0}),z}getWildcardChild(){return this.wildcardChild}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new $1,this.wildcardChild}split(f,J){let Z=this.prefix.slice(0,J),z=this.prefix.slice(J);this.prefix=z,this._compilePrefixMatch();let Q=new Rf(Z);return Q.staticChildren[z.charAt(0)]=this,f.staticChildren[Z.charAt(0)]=Q,Q}getNextNode(f,J,Z,z){let Q=this.findStaticMatchingChild(f,J),Y=0;if(Q===null){if(this.parametricChildren.length===0)return this.wildcardChild;Q=this.parametricChildren[0],Y=1}if(this.wildcardChild!==null)Z.push({paramsCount:z,brotherPathIndex:J,brotherNode:this.wildcardChild});for(let $=this.parametricChildren.length-1;$>=Y;$--)Z.push({paramsCount:z,brotherPathIndex:J,brotherNode:this.parametricChildren[$]});return Q}_compilePrefixMatch(){if(this.prefix.length===1){this.matchPrefix=()=>!0;return}let f=[];for(let J=1;J<this.prefix.length;J++){let Z=this.prefix.charCodeAt(J);f.push(`path.charCodeAt(i + ${J}) === ${Z}`)}this.matchPrefix=Function("path","i",`return ${f.join(" && ")}`)}}class W1 extends Y1{constructor(f,J,Z){super();this.isRegex=!!f,this.regex=f||null,this.staticSuffix=J||null,this.kind=Nf.PARAMETRIC,this.nodePaths=new Set([Z])}getNextNode(f,J){return this.findStaticMatchingChild(f,J)}}class $1 extends Q1{constructor(){super();this.kind=Nf.WILDCARD}getNextNode(){return null}}tJ.exports={StaticNode:Rf,ParametricNode:W1,WildcardNode:$1,NODE_TYPES:Nf}});var JZ=W0((gz,fZ)=>{var fz=(Zf(),a0(Jf));function Qf(){if(!(this instanceof Qf))return new Qf;this.store=new Map,this.maxMajor=0,this.maxMinors={},this.maxPatches={}}Qf.prototype.set=function(f,J){if(typeof f!=="string")throw TypeError("Version should be a string");let[Z,z,Q]=f.split(".",3);if(isNaN(Z))throw TypeError("Major version must be a numeric value");if(Z=Number(Z),z=Number(z)||0,Q=Number(Q)||0,Z>=this.maxMajor)this.maxMajor=Z,this.store.set("x",J),this.store.set("*",J),this.store.set("x.x",J),this.store.set("x.x.x",J);if(z>=(this.maxMinors[Z]||0))this.maxMinors[Z]=z,this.store.set(`${Z}.x`,J),this.store.set(`${Z}.x.x`,J);if(Q>=(this.maxPatches[`${Z}.${z}`]||0))this.maxPatches[`${Z}.${z}`]=Q,this.store.set(`${Z}.${z}.x`,J);return this.store.set(`${Z}.${z}.${Q}`,J),this};Qf.prototype.get=function(f){return this.store.get(f)};fZ.exports={name:"version",mustMatchWhenDerived:!0,storage:Qf,validate(f){fz(typeof f==="string","Version should be a string")}}});var zZ=W0((kz,ZZ)=>{var Jz=(Zf(),a0(Jf));function Zz(){let f=new Map,J=[];return{get:(Z)=>{let z=f.get(Z);if(z)return z;for(let Q of J)if(Q.host.test(Z))return Q.value},set:(Z,z)=>{if(Z instanceof RegExp)J.push({host:Z,value:z});else f.set(Z,z)}}}ZZ.exports={name:"host",mustMatchWhenDerived:!1,storage:Zz,validate(f){Jz(typeof f==="string"||Object.prototype.toString.call(f)==="[object RegExp]","Host should be a string or a RegExp")}}});var WZ=W0((uz,YZ)=>{var zz=JZ(),Qz=zZ(),H1=(Zf(),a0(Jf));class QZ{constructor(f){if(this.strategies={version:zz,host:Qz},this.strategiesInUse=new Set,this.asyncStrategiesInUse=new Set,f)for(let J of Object.values(f))this.addConstraintStrategy(J)}isStrategyUsed(f){return this.strategiesInUse.has(f)||this.asyncStrategiesInUse.has(f)}hasConstraintStrategy(f){let J=this.strategies[f];if(J!==void 0)return J.isCustom||this.isStrategyUsed(f);return!1}addConstraintStrategy(f){if(H1(typeof f.name==="string"&&f.name!=="","strategy.name is required."),H1(f.storage&&typeof f.storage==="function","strategy.storage function is required."),H1(f.deriveConstraint&&typeof f.deriveConstraint==="function","strategy.deriveConstraint function is required."),this.strategies[f.name]&&this.strategies[f.name].isCustom)throw Error(`There already exists a custom constraint with the name ${f.name}.`);if(this.isStrategyUsed(f.name))throw Error(`There already exists a route with ${f.name} constraint.`);if(f.isCustom=!0,f.isAsync=f.deriveConstraint.length===3,this.strategies[f.name]=f,f.mustMatchWhenDerived)this.noteUsage({[f.name]:f})}deriveConstraints(f,J,Z){let z=this.deriveSyncConstraints(f,J);if(Z===void 0)return z;this.deriveAsyncConstraints(z,f,J,Z)}deriveSyncConstraints(f,J){return}noteUsage(f){if(f){let J=this.strategiesInUse.size;for(let Z in f)if(this.strategies[Z].isAsync)this.asyncStrategiesInUse.add(Z);else this.strategiesInUse.add(Z);if(J!==this.strategiesInUse.size)this._buildDeriveConstraints()}}newStoreForConstraint(f){if(!this.strategies[f])throw Error(`No strategy registered for constraint key ${f}`);return this.strategies[f].storage()}validateConstraints(f){for(let J in f){let Z=f[J];if(typeof Z>"u")throw Error("Can't pass an undefined constraint value, must pass null or no key at all");let z=this.strategies[J];if(!z)throw Error(`No strategy registered for constraint key ${J}`);if(z.validate)z.validate(Z)}}deriveAsyncConstraints(f,J,Z,z){let Q=this.asyncStrategiesInUse.size;if(Q===0){z(null,f);return}f=f||{};for(let Y of this.asyncStrategiesInUse)this.strategies[Y].deriveConstraint(J,Z,(X,H)=>{if(X!==null){z(X);return}if(f[Y]=H,--Q===0)z(null,f)})}_buildDeriveConstraints(){if(this.strategiesInUse.size===0)return;let f=["return {"];for(let J of this.strategiesInUse){let Z=this.strategies[J];if(!Z.isCustom)if(J==="version")f.push("   version: req.headers['accept-version'],");else f.push("   host: req.headers.host || req.headers[':authority'],");else f.push(`  ${Z.name}: this.strategies.${J}.deriveConstraint(req, ctx),`)}f.push("}"),this.deriveSyncConstraints=Function("req","ctx",f.join(`
`)).bind(this)}}YZ.exports=QZ});var HZ=W0((yz,$Z)=>{var Yz=["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"];$Z.exports=Yz});var wZ=W0((cz,UZ)=>{function XZ(f,J){if(f===50){if(J===53)return"%";if(J===51)return"#";if(J===52)return"$";if(J===54)return"&";if(J===66)return"+";if(J===98)return"+";if(J===67)return",";if(J===99)return",";if(J===70)return"/";if(J===102)return"/";return null}if(f===51){if(J===65)return":";if(J===97)return":";if(J===66)return";";if(J===98)return";";if(J===68)return"=";if(J===100)return"=";if(J===70)return"?";if(J===102)return"?";return null}if(f===52&&J===48)return"@";return null}function Wz(f,J){let Z=!1,z=!1,Q="";for(let $=1;$<f.length;$++){let X=f.charCodeAt($);if(X===37){let H=f.charCodeAt($+1),V=f.charCodeAt($+2);if(XZ(H,V)===null)Z=!0;else{if(z=!0,H===50&&V===53)Z=!0,f=f.slice(0,$+1)+"25"+f.slice($+1),$+=2;$+=2}}else if(X===63||X===35||X===59&&J){Q=f.slice($+1),f=f.slice(0,$);break}}return{path:Z?decodeURI(f):f,querystring:Q,shouldDecodeParam:z}}function $z(f){let J=f.indexOf("%");if(J===-1)return f;let Z="",z=J;for(let Q=J;Q<f.length;Q++)if(f.charCodeAt(Q)===37){let Y=f.charCodeAt(Q+1),$=f.charCodeAt(Q+2),X=XZ(Y,$);Z+=f.slice(z,Q)+X,z=Q+3}return f.slice(0,J)+Z+f.slice(z)}UZ.exports={safeDecodeURI:Wz,safeDecodeURIComponent:$z}});var AZ=W0((dz,TZ)=>{var O0=(Zf(),a0(Jf)),Hz=HJ(),l0=hJ(),U1=z1(),{prettyPrintTree:Xz}=lJ(),{StaticNode:OZ,NODE_TYPES:BZ}=eJ(),Uz=WZ(),n0=HZ(),X1=If(),{safeDecodeURI:wz,safeDecodeURIComponent:VZ}=wZ(),GZ=/^https?:\/\/.*?\//,g0=/(\/:[^/()]*?)\?(\/?)/,FZ=/[.*+?^${}()|[\]\\]/g,KZ=/\/\/+/g;if(!l0(GZ))throw Error("the FULL_PATH_REGEXP is not safe, update this module");if(!l0(g0))throw Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");if(!l0(FZ))throw Error("the ESCAPE_REGEXP is not safe, update this module");if(!l0(KZ))throw Error("the REMOVE_DUPLICATE_SLASHES_REGEXP is not safe, update this module");function X0(f){if(!(this instanceof X0))return new X0(f);if(f=f||{},this._opts=f,f.defaultRoute)O0(typeof f.defaultRoute==="function","The default route must be a function"),this.defaultRoute=f.defaultRoute;else this.defaultRoute=null;if(f.onBadUrl)O0(typeof f.onBadUrl==="function","The bad url handler must be a function"),this.onBadUrl=f.onBadUrl;else this.onBadUrl=null;if(f.buildPrettyMeta)O0(typeof f.buildPrettyMeta==="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=f.buildPrettyMeta;else this.buildPrettyMeta=Oz;if(f.querystringParser)O0(typeof f.querystringParser==="function","querystringParser must be a function"),this.querystringParser=f.querystringParser;else this.querystringParser=(J)=>J.length===0?{}:Hz.parse(J);this.caseSensitive=f.caseSensitive===void 0?!0:f.caseSensitive,this.ignoreTrailingSlash=f.ignoreTrailingSlash||!1,this.ignoreDuplicateSlashes=f.ignoreDuplicateSlashes||!1,this.maxParamLength=f.maxParamLength||100,this.allowUnsafeRegex=f.allowUnsafeRegex||!1,this.constrainer=new Uz(f.constraints),this.useSemicolonDelimiter=f.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}X0.prototype.on=function(J,Z,z,Q,Y){if(typeof z==="function"){if(Q!==void 0)Y=Q;Q=z,z={}}O0(typeof Z==="string","Path should be a string"),O0(Z.length>0,"The path could not be empty"),O0(Z[0]==="/"||Z[0]==="*","The first character of a path should be `/` or `*`"),O0(typeof Q==="function","Handler should be a function");let $=Z.match(g0);if($){O0(Z.length===$.index+$[0].length,"Optional Parameter needs to be the last parameter of the path");let V=Z.replace(g0,"$1$2"),G=Z.replace(g0,"$2")||"/";this.on(J,V,z,Q,Y),this.on(J,G,z,Q,Y);return}let X=Z;if(this.ignoreDuplicateSlashes)Z=w1(Z);if(this.ignoreTrailingSlash)Z=O1(Z);let H=Array.isArray(J)?J:[J];for(let V of H)O0(typeof V==="string","Method should be a string"),O0(n0.includes(V),`Method '${V}' is not an http method.`),this._on(V,Z,z,Q,Y,X)};X0.prototype._on=function(J,Z,z,Q,Y){let $={};if(z.constraints!==void 0){if(O0(typeof z.constraints==="object"&&z.constraints!==null,"Constraints should be an object"),Object.keys(z.constraints).length!==0)$=z.constraints}if(this.constrainer.validateConstraints($),this.constrainer.noteUsage($),this.trees[J]===void 0)this.trees[J]=new OZ("/");let X=Z;if(X==="*"&&this.trees[J].prefix.length!==0){let K=this.trees[J];this.trees[J]=new OZ(""),this.trees[J].staticChildren["/"]=K}let H=this.trees[J],V=H.prefix.length,G=[];for(let K=0;K<=X.length;K++){if(X.charCodeAt(K)===58&&X.charCodeAt(K+1)===58){K++;continue}let I=X.charCodeAt(K)===58&&X.charCodeAt(K+1)!==58,E=X.charCodeAt(K)===42;if(I||E||K===X.length&&K!==V){let v=X.slice(V,K);if(!this.caseSensitive)v=v.toLowerCase();v=v.replaceAll("::",":"),v=v.replaceAll("%","%25"),H=H.createStaticChild(v)}if(I){let v=!1,g=!0,b="",k=[],h=K+1;for(let R=h;;R++){let s=X.charCodeAt(R),e=s===40,j=s===45||s===46,A=s===47||R===X.length;if(e||j||A){let C=X.slice(h,R);if(G.push(C),v=v||e||j,e){let n=MZ(X,R),J0=X.slice(R,n+1);if(!this.allowUnsafeRegex)O0(l0(new RegExp(J0)),`The regex '${J0}' is not safe!`);k.push(LZ(J0)),R=n+1,g=!0}else k.push(g?"(.*?)":`(${b}|(?:(?!${b}).)*)`),g=!1;let d=R;for(;R<X.length;R++){let n=X.charCodeAt(R);if(n===47)break;if(n===58)if(X.charCodeAt(R+1)===58)R++;else break}let r=X.slice(d,R);if(r)r=r.replaceAll("::",":"),r=r.replaceAll("%","%25"),k.push(b=DZ(r));if(h=R+1,A||X.charCodeAt(R)===47||R===X.length){let n=v?"()"+r:r,J0=X.slice(K,R);X=X.slice(0,K+1)+n+X.slice(R),K+=n.length;let l=v?new RegExp("^"+k.join("")+"$"):null;H=H.createParametricChild(l,r||null,J0),V=K+1;break}}}}else if(E){if(G.push("*"),H=H.createWildcardChild(),V=K+1,K!==X.length-1)throw Error("Wildcard must be the last character in the route")}}if(!this.caseSensitive)X=X.toLowerCase();if(X==="*")X="/*";for(let K of this.routes){let I=K.opts.constraints||{};if(K.method===J&&K.pattern===X&&U1(I,$))throw Error(`Method '${J}' already declared for route '${X}' with constraints '${JSON.stringify($)}'`)}let D={method:J,path:Z,pattern:X,params:G,opts:z,handler:Q,store:Y};this.routes.push(D),H.addRoute(D,this.constrainer)};X0.prototype.hasRoute=function(J,Z,z){return this.findRoute(J,Z,z)!==null};X0.prototype.findRoute=function(J,Z,z={}){if(this.trees[J]===void 0)return null;let Q=Z,Y=this.trees[J],$=Y.prefix.length,X=[];for(let H=0;H<=Q.length;H++){if(Q.charCodeAt(H)===58&&Q.charCodeAt(H+1)===58){H++;continue}let V=Q.charCodeAt(H)===58&&Q.charCodeAt(H+1)!==58,G=Q.charCodeAt(H)===42;if(V||G||H===Q.length&&H!==$){let D=Q.slice($,H);if(!this.caseSensitive)D=D.toLowerCase();if(D=D.replaceAll("::",":"),D=D.replaceAll("%","%25"),Y=Y.getStaticChild(D),Y===null)return null}if(V){let D=!1,K=!0,I="",E=[],v=H+1;for(let g=v;;g++){let b=Q.charCodeAt(g),k=b===40,h=b===45||b===46,R=b===47||g===Q.length;if(k||h||R){let s=Q.slice(v,g);if(X.push(s),D=D||k||h,k){let A=MZ(Q,g),C=Q.slice(g,A+1);if(!this.allowUnsafeRegex)O0(l0(new RegExp(C)),`The regex '${C}' is not safe!`);E.push(LZ(C)),g=A+1,K=!1}else E.push(K?"(.*?)":`(${I}|(?:(?!${I}).)*)`),K=!1;let e=g;for(;g<Q.length;g++){let A=Q.charCodeAt(g);if(A===47)break;if(A===58)if(Q.charCodeAt(g+1)===58)g++;else break}let j=Q.slice(e,g);if(j)j=j.replaceAll("::",":"),j=j.replaceAll("%","%25"),E.push(I=DZ(j));if(v=g+1,R||Q.charCodeAt(g)===47||g===Q.length){let A=D?"()"+j:j,C=Q.slice(H,g);Q=Q.slice(0,H+1)+A+Q.slice(g),H+=A.length;let d=D?new RegExp("^"+E.join("")+"$"):null;if(Y=Y.getParametricChild(d,j||null,C),Y===null)return null;$=H+1;break}}}}else if(G){if(X.push("*"),Y=Y.getWildcardChild(),$=H+1,H!==Q.length-1)throw Error("Wildcard must be the last character in the route")}}if(!this.caseSensitive)Q=Q.toLowerCase();for(let H of this.routes){let V=H.opts.constraints||{};if(H.method===J&&H.pattern===Q&&U1(V,z))return{handler:H.handler,store:H.store,params:H.params}}return null};X0.prototype.hasConstraintStrategy=function(f){return this.constrainer.hasConstraintStrategy(f)};X0.prototype.addConstraintStrategy=function(f){this.constrainer.addConstraintStrategy(f),this._rebuild(this.routes)};X0.prototype.reset=function(){this.trees={},this.routes=[]};X0.prototype.off=function(J,Z,z){O0(typeof Z==="string","Path should be a string"),O0(Z.length>0,"The path could not be empty"),O0(Z[0]==="/"||Z[0]==="*","The first character of a path should be `/` or `*`"),O0(typeof z>"u"||typeof z==="object"&&!Array.isArray(z)&&z!==null,"Constraints should be an object or undefined.");let Q=Z.match(g0);if(Q){O0(Z.length===Q.index+Q[0].length,"Optional Parameter needs to be the last parameter of the path");let $=Z.replace(g0,"$1$2"),X=Z.replace(g0,"$2");this.off(J,$,z),this.off(J,X,z);return}if(this.ignoreDuplicateSlashes)Z=w1(Z);if(this.ignoreTrailingSlash)Z=O1(Z);let Y=Array.isArray(J)?J:[J];for(let $ of Y)this._off($,Z,z)};X0.prototype._off=function(J,Z,z){O0(typeof J==="string","Method should be a string"),O0(n0.includes(J),`Method '${J}' is not an http method.`);function Q(H){return J!==H.method||Z!==H.path}function Y(H){return Q(H)||!U1(z,H.opts.constraints||{})}let $=z?Y:Q,X=this.routes.filter($);this._rebuild(X)};X0.prototype.lookup=function(J,Z,z,Q){if(typeof z==="function")Q=z,z=void 0;if(Q===void 0){let Y=this.constrainer.deriveConstraints(J,z),$=this.find(J.method,J.url,Y);return this.callHandler($,J,Z,z)}this.constrainer.deriveConstraints(J,z,(Y,$)=>{if(Y!==null){Q(Y);return}try{let X=this.find(J.method,J.url,$),H=this.callHandler(X,J,Z,z);Q(null,H)}catch(X){Q(X)}})};X0.prototype.callHandler=function(J,Z,z,Q){if(J===null)return this._defaultRoute(Z,z,Q);return Q===void 0?J.handler(Z,z,J.params,J.store,J.searchParams):J.handler.call(Q,Z,z,J.params,J.store,J.searchParams)};X0.prototype.find=function(J,Z,z){let Q=this.trees[J];if(Q===void 0)return null;if(Z.charCodeAt(0)!==47)Z=Z.replace(GZ,"/");if(this.ignoreDuplicateSlashes)Z=w1(Z);let Y,$,X;try{Y=wz(Z,this.useSemicolonDelimiter),Z=Y.path,$=Y.querystring,X=Y.shouldDecodeParam}catch(E){return this._onBadUrl(Z)}if(this.ignoreTrailingSlash)Z=O1(Z);let H=Z;if(this.caseSensitive===!1)Z=Z.toLowerCase();let V=this.maxParamLength,G=Q.prefix.length,D=[],K=Z.length,I=[];while(!0){if(G===K&&Q.isLeafNode){let b=Q.handlerStorage.getMatchingHandler(z);if(b!==null)return{handler:b.handler,store:b.store,params:b._createParamsObject(D),searchParams:this.querystringParser($)}}let E=Q.getNextNode(Z,G,I,D.length);if(E===null){if(I.length===0)return null;let b=I.pop();G=b.brotherPathIndex,D.splice(b.paramsCount),E=b.brotherNode}if(Q=E,Q.kind===BZ.STATIC){G+=Q.prefix.length;continue}if(Q.kind===BZ.WILDCARD){let b=H.slice(G);if(X)b=VZ(b);D.push(b),G=K;continue}let v=H.indexOf("/",G);if(v===-1)v=K;let g=H.slice(G,v);if(X)g=VZ(g);if(Q.isRegex){let b=Q.regex.exec(g);if(b===null)continue;for(let k=1;k<b.length;k++){let h=b[k];if(h.length>V)return null;D.push(h)}}else{if(g.length>V)return null;D.push(g)}G=v}};X0.prototype._rebuild=function(f){this.reset();for(let J of f){let{method:Z,path:z,opts:Q,handler:Y,store:$}=J;this._on(Z,z,Q,Y,$)}};X0.prototype._defaultRoute=function(f,J,Z){if(this.defaultRoute!==null)return Z===void 0?this.defaultRoute(f,J):this.defaultRoute.call(Z,f,J);else J.statusCode=404,J.end()};X0.prototype._onBadUrl=function(f){if(this.onBadUrl===null)return null;let J=this.onBadUrl;return{handler:(Z,z,Q)=>J(f,Z,z),params:{},store:null}};X0.prototype.prettyPrint=function(f={}){let J=f.method;f.buildPrettyMeta=this.buildPrettyMeta.bind(this);let Z=null;if(J===void 0){let{version:z,host:Q,...Y}=this.constrainer.strategies;Y[X1.name]=X1;let $=new X0({...this._opts,constraints:Y}),X=this.routes.map((H)=>{let V={...H.opts.constraints,[X1.name]:H.method};return{...H,method:"MERGED",opts:{constraints:V}}});$._rebuild(X),Z=$.trees.MERGED}else Z=this.trees[J];if(Z==null)return"(empty tree)";return Xz(Z,f)};for(let f in n0){if(!n0.hasOwnProperty(f))continue;let J=n0[f],Z=J.toLowerCase();X0.prototype[Z]=function(z,Q,Y){return this.on(J,z,Q,Y)}}X0.prototype.all=function(f,J,Z){this.on(n0,f,J,Z)};TZ.exports=X0;function DZ(f){return f.replace(FZ,"\\$&")}function w1(f){return f.indexOf("//")!==-1?f.replace(KZ,"/"):f}function O1(f){if(f.length>1&&f.charCodeAt(f.length-1)===47)return f.slice(0,-1);return f}function LZ(f){if(f.charCodeAt(1)===94)f=f.slice(0,1)+f.slice(2);if(f.charCodeAt(f.length-2)===36)f=f.slice(0,f.length-2)+f.slice(f.length-1);return f}function MZ(f,J){let Z=1;while(J<f.length){if(J++,f.charCodeAt(J)===92){J++;continue}if(f.charCodeAt(J)===41)Z--;else if(f.charCodeAt(J)===40)Z++;if(!Z)return J}throw TypeError('Invalid regexp expression in "'+f+'"')}function Oz(f){if(!f)return{};if(!f.store)return{};return Object.assign({},f.store)}});var qZ=NZ(AZ(),1);class Bz{router=qZ.default({});add(f,J,Z){this.router.on(f,J,Z)}addMiddleware(f,...J){}find(f,J){let Z=this.router.find(f,J);if(Z)return{handler:[Z.handler],params:Z.params};return null}}export{Bz as FindMyWayRouter};