UNPKG

@chillicream/nitro-embedded

Version:
6 lines 3.08 MB
function VV(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var l3={exports:{}},Sn=l3.exports={},Sa,ya;function DD(){throw new Error("setTimeout has not been defined")}function kD(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Sa=setTimeout:Sa=DD}catch{Sa=DD}try{typeof clearTimeout=="function"?ya=clearTimeout:ya=kD}catch{ya=kD}})();function d3(o){if(Sa===setTimeout)return setTimeout(o,0);if((Sa===DD||!Sa)&&setTimeout)return Sa=setTimeout,setTimeout(o,0);try{return Sa(o,0)}catch{try{return Sa.call(null,o,0)}catch{return Sa.call(this,o,0)}}}function HV(o){if(ya===clearTimeout)return clearTimeout(o);if((ya===kD||!ya)&&clearTimeout)return ya=clearTimeout,clearTimeout(o);try{return ya(o)}catch{try{return ya.call(null,o)}catch{return ya.call(this,o)}}}var Gl=[],pf=!1,Zh,wC=-1;function zV(){!pf||!Zh||(pf=!1,Zh.length?Gl=Zh.concat(Gl):wC=-1,Gl.length&&c3())}function c3(){if(!pf){var o=d3(zV);pf=!0;for(var e=Gl.length;e;){for(Zh=Gl,Gl=[];++wC<e;)Zh&&Zh[wC].run();wC=-1,e=Gl.length}Zh=null,pf=!1,HV(o)}}Sn.nextTick=function(o){var e=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];Gl.push(new h3(o,e)),Gl.length===1&&!pf&&d3(c3)};function h3(o,e){this.fun=o,this.array=e}h3.prototype.run=function(){this.fun.apply(null,this.array)};Sn.title="browser";Sn.browser=!0;Sn.env={};Sn.argv=[];Sn.version="";Sn.versions={};function _d(){}Sn.on=_d;Sn.addListener=_d;Sn.once=_d;Sn.off=_d;Sn.removeListener=_d;Sn.removeAllListeners=_d;Sn.emit=_d;Sn.prependListener=_d;Sn.prependOnceListener=_d;Sn.listeners=function(o){return[]};Sn.binding=function(o){throw new Error("process.binding is not supported")};Sn.cwd=function(){return"/"};Sn.chdir=function(o){throw new Error("process.chdir is not supported")};Sn.umask=function(){return 0};var UV=l3.exports;const Hg=VV(UV),$V="modulepreload",KV=function(o,e){return new URL(o,e).href},hA={},u3=function(e,t,i){let n=Promise.resolve();if(t&&t.length>0){let d=function(c){return Promise.all(c.map(h=>Promise.resolve(h).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};const r=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");n=d(t.map(c=>{if(c=KV(c,i),c in hA)return;hA[c]=!0;const h=c.endsWith(".css"),u=h?'[rel="stylesheet"]':"";if(!!i)for(let m=r.length-1;m>=0;m--){const _=r[m];if(_.href===c&&(!h||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${u}`))return;const f=document.createElement("link");if(f.rel=h?"stylesheet":$V,h||(f.as="script"),f.crossOrigin="",f.href=c,l&&f.setAttribute("nonce",l),document.head.appendChild(f),h)return new Promise((m,_)=>{f.addEventListener("load",m),f.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(r){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=r,window.dispatchEvent(a),!a.defaultPrevented)throw r}return n.then(r=>{for(const a of r||[])a.status==="rejected"&&s(a.reason);return e().catch(s)})};var PT={},dS={};dS.byteLength=GV;dS.toByteArray=YV;dS.fromByteArray=JV;var Ta=[],sr=[],jV=typeof Uint8Array<"u"?Uint8Array:Array,SL="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var pg=0,qV=SL.length;pg<qV;++pg)Ta[pg]=SL[pg],sr[SL.charCodeAt(pg)]=pg;sr[45]=62;sr[95]=63;function g3(o){var e=o.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=o.indexOf("=");t===-1&&(t=e);var i=t===e?0:4-t%4;return[t,i]}function GV(o){var e=g3(o),t=e[0],i=e[1];return(t+i)*3/4-i}function ZV(o,e,t){return(e+t)*3/4-t}function YV(o){var e,t=g3(o),i=t[0],n=t[1],s=new jV(ZV(o,i,n)),r=0,a=n>0?i-4:i,l;for(l=0;l<a;l+=4)e=sr[o.charCodeAt(l)]<<18|sr[o.charCodeAt(l+1)]<<12|sr[o.charCodeAt(l+2)]<<6|sr[o.charCodeAt(l+3)],s[r++]=e>>16&255,s[r++]=e>>8&255,s[r++]=e&255;return n===2&&(e=sr[o.charCodeAt(l)]<<2|sr[o.charCodeAt(l+1)]>>4,s[r++]=e&255),n===1&&(e=sr[o.charCodeAt(l)]<<10|sr[o.charCodeAt(l+1)]<<4|sr[o.charCodeAt(l+2)]>>2,s[r++]=e>>8&255,s[r++]=e&255),s}function XV(o){return Ta[o>>18&63]+Ta[o>>12&63]+Ta[o>>6&63]+Ta[o&63]}function QV(o,e,t){for(var i,n=[],s=e;s<t;s+=3)i=(o[s]<<16&16711680)+(o[s+1]<<8&65280)+(o[s+2]&255),n.push(XV(i));return n.join("")}function JV(o){for(var e,t=o.length,i=t%3,n=[],s=16383,r=0,a=t-i;r<a;r+=s)n.push(QV(o,r,r+s>a?a:r+s));return i===1?(e=o[t-1],n.push(Ta[e>>2]+Ta[e<<4&63]+"==")):i===2&&(e=(o[t-2]<<8)+o[t-1],n.push(Ta[e>>10]+Ta[e>>4&63]+Ta[e<<2&63]+"=")),n.join("")}var OT={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */OT.read=function(o,e,t,i,n){var s,r,a=n*8-i-1,l=(1<<a)-1,d=l>>1,c=-7,h=t?n-1:0,u=t?-1:1,g=o[e+h];for(h+=u,s=g&(1<<-c)-1,g>>=-c,c+=a;c>0;s=s*256+o[e+h],h+=u,c-=8);for(r=s&(1<<-c)-1,s>>=-c,c+=i;c>0;r=r*256+o[e+h],h+=u,c-=8);if(s===0)s=1-d;else{if(s===l)return r?NaN:(g?-1:1)*(1/0);r=r+Math.pow(2,i),s=s-d}return(g?-1:1)*r*Math.pow(2,s-i)};OT.write=function(o,e,t,i,n,s){var r,a,l,d=s*8-n-1,c=(1<<d)-1,h=c>>1,u=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=i?0:s-1,f=i?1:-1,m=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,r=c):(r=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-r))<1&&(r--,l*=2),r+h>=1?e+=u/l:e+=u*Math.pow(2,1-h),e*l>=2&&(r++,l/=2),r+h>=c?(a=0,r=c):r+h>=1?(a=(e*l-1)*Math.pow(2,n),r=r+h):(a=e*Math.pow(2,h-1)*Math.pow(2,n),r=0));n>=8;o[t+g]=a&255,g+=f,a/=256,n-=8);for(r=r<<n|a,d+=n;d>0;o[t+g]=r&255,g+=f,r/=256,d-=8);o[t+g-f]|=m*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */(function(o){const e=dS,t=OT,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;o.Buffer=c,o.SlowBuffer=y,o.INSPECT_MAX_BYTES=50;const n=2147483647;o.kMaxLength=n;const{Uint8Array:s,ArrayBuffer:r,SharedArrayBuffer:a}=globalThis;c.TYPED_ARRAY_SUPPORT=l(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function l(){try{const E=new s(1),S={foo:function(){return 42}};return Object.setPrototypeOf(S,s.prototype),Object.setPrototypeOf(E,S),E.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function d(E){if(E>n)throw new RangeError('The value "'+E+'" is invalid for option "size"');const S=new s(E);return Object.setPrototypeOf(S,c.prototype),S}function c(E,S,L){if(typeof E=="number"){if(typeof S=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(E)}return h(E,S,L)}c.poolSize=8192;function h(E,S,L){if(typeof E=="string")return m(E,S);if(r.isView(E))return v(E);if(E==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E);if($(E,r)||E&&$(E.buffer,r)||typeof a<"u"&&($(E,a)||E&&$(E.buffer,a)))return b(E,S,L);if(typeof E=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const F=E.valueOf&&E.valueOf();if(F!=null&&F!==E)return c.from(F,S,L);const j=C(E);if(j)return j;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof E[Symbol.toPrimitive]=="function")return c.from(E[Symbol.toPrimitive]("string"),S,L);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E)}c.from=function(E,S,L){return h(E,S,L)},Object.setPrototypeOf(c.prototype,s.prototype),Object.setPrototypeOf(c,s);function u(E){if(typeof E!="number")throw new TypeError('"size" argument must be of type number');if(E<0)throw new RangeError('The value "'+E+'" is invalid for option "size"')}function g(E,S,L){return u(E),E<=0?d(E):S!==void 0?typeof L=="string"?d(E).fill(S,L):d(E).fill(S):d(E)}c.alloc=function(E,S,L){return g(E,S,L)};function f(E){return u(E),d(E<0?0:w(E)|0)}c.allocUnsafe=function(E){return f(E)},c.allocUnsafeSlow=function(E){return f(E)};function m(E,S){if((typeof S!="string"||S==="")&&(S="utf8"),!c.isEncoding(S))throw new TypeError("Unknown encoding: "+S);const L=I(E,S)|0;let F=d(L);const j=F.write(E,S);return j!==L&&(F=F.slice(0,j)),F}function _(E){const S=E.length<0?0:w(E.length)|0,L=d(S);for(let F=0;F<S;F+=1)L[F]=E[F]&255;return L}function v(E){if($(E,s)){const S=new s(E);return b(S.buffer,S.byteOffset,S.byteLength)}return _(E)}function b(E,S,L){if(S<0||E.byteLength<S)throw new RangeError('"offset" is outside of buffer bounds');if(E.byteLength<S+(L||0))throw new RangeError('"length" is outside of buffer bounds');let F;return S===void 0&&L===void 0?F=new s(E):L===void 0?F=new s(E,S):F=new s(E,S,L),Object.setPrototypeOf(F,c.prototype),F}function C(E){if(c.isBuffer(E)){const S=w(E.length)|0,L=d(S);return L.length===0||E.copy(L,0,0,S),L}if(E.length!==void 0)return typeof E.length!="number"||z(E.length)?d(0):_(E);if(E.type==="Buffer"&&Array.isArray(E.data))return _(E.data)}function w(E){if(E>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return E|0}function y(E){return+E!=E&&(E=0),c.alloc(+E)}c.isBuffer=function(S){return S!=null&&S._isBuffer===!0&&S!==c.prototype},c.compare=function(S,L){if($(S,s)&&(S=c.from(S,S.offset,S.byteLength)),$(L,s)&&(L=c.from(L,L.offset,L.byteLength)),!c.isBuffer(S)||!c.isBuffer(L))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(S===L)return 0;let F=S.length,j=L.length;for(let Z=0,ce=Math.min(F,j);Z<ce;++Z)if(S[Z]!==L[Z]){F=S[Z],j=L[Z];break}return F<j?-1:j<F?1:0},c.isEncoding=function(S){switch(String(S).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(S,L){if(!Array.isArray(S))throw new TypeError('"list" argument must be an Array of Buffers');if(S.length===0)return c.alloc(0);let F;if(L===void 0)for(L=0,F=0;F<S.length;++F)L+=S[F].length;const j=c.allocUnsafe(L);let Z=0;for(F=0;F<S.length;++F){let ce=S[F];if($(ce,s))Z+ce.length>j.length?(c.isBuffer(ce)||(ce=c.from(ce)),ce.copy(j,Z)):s.prototype.set.call(j,ce,Z);else if(c.isBuffer(ce))ce.copy(j,Z);else throw new TypeError('"list" argument must be an Array of Buffers');Z+=ce.length}return j};function I(E,S){if(c.isBuffer(E))return E.length;if(r.isView(E)||$(E,r))return E.byteLength;if(typeof E!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof E);const L=E.length,F=arguments.length>2&&arguments[2]===!0;if(!F&&L===0)return 0;let j=!1;for(;;)switch(S){case"ascii":case"latin1":case"binary":return L;case"utf8":case"utf-8":return oe(E).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L*2;case"hex":return L>>>1;case"base64":return A(E).length;default:if(j)return F?-1:oe(E).length;S=(""+S).toLowerCase(),j=!0}}c.byteLength=I;function D(E,S,L){let F=!1;if((S===void 0||S<0)&&(S=0),S>this.length||((L===void 0||L>this.length)&&(L=this.length),L<=0)||(L>>>=0,S>>>=0,L<=S))return"";for(E||(E="utf8");;)switch(E){case"hex":return Ne(this,S,L);case"utf8":case"utf-8":return Le(this,S,L);case"ascii":return Fe(this,S,L);case"latin1":case"binary":return He(this,S,L);case"base64":return _e(this,S,L);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ve(this,S,L);default:if(F)throw new TypeError("Unknown encoding: "+E);E=(E+"").toLowerCase(),F=!0}}c.prototype._isBuffer=!0;function T(E,S,L){const F=E[S];E[S]=E[L],E[L]=F}c.prototype.swap16=function(){const S=this.length;if(S%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let L=0;L<S;L+=2)T(this,L,L+1);return this},c.prototype.swap32=function(){const S=this.length;if(S%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let L=0;L<S;L+=4)T(this,L,L+3),T(this,L+1,L+2);return this},c.prototype.swap64=function(){const S=this.length;if(S%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let L=0;L<S;L+=8)T(this,L,L+7),T(this,L+1,L+6),T(this,L+2,L+5),T(this,L+3,L+4);return this},c.prototype.toString=function(){const S=this.length;return S===0?"":arguments.length===0?Le(this,0,S):D.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(S){if(!c.isBuffer(S))throw new TypeError("Argument must be a Buffer");return this===S?!0:c.compare(this,S)===0},c.prototype.inspect=function(){let S="";const L=o.INSPECT_MAX_BYTES;return S=this.toString("hex",0,L).replace(/(.{2})/g,"$1 ").trim(),this.length>L&&(S+=" ... "),"<Buffer "+S+">"},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(S,L,F,j,Z){if($(S,s)&&(S=c.from(S,S.offset,S.byteLength)),!c.isBuffer(S))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof S);if(L===void 0&&(L=0),F===void 0&&(F=S?S.length:0),j===void 0&&(j=0),Z===void 0&&(Z=this.length),L<0||F>S.length||j<0||Z>this.length)throw new RangeError("out of range index");if(j>=Z&&L>=F)return 0;if(j>=Z)return-1;if(L>=F)return 1;if(L>>>=0,F>>>=0,j>>>=0,Z>>>=0,this===S)return 0;let ce=Z-j,je=F-L;const Ht=Math.min(ce,je),Ke=this.slice(j,Z),vt=S.slice(L,F);for(let zt=0;zt<Ht;++zt)if(Ke[zt]!==vt[zt]){ce=Ke[zt],je=vt[zt];break}return ce<je?-1:je<ce?1:0};function P(E,S,L,F,j){if(E.length===0)return-1;if(typeof L=="string"?(F=L,L=0):L>2147483647?L=2147483647:L<-2147483648&&(L=-2147483648),L=+L,z(L)&&(L=j?0:E.length-1),L<0&&(L=E.length+L),L>=E.length){if(j)return-1;L=E.length-1}else if(L<0)if(j)L=0;else return-1;if(typeof S=="string"&&(S=c.from(S,F)),c.isBuffer(S))return S.length===0?-1:H(E,S,L,F,j);if(typeof S=="number")return S=S&255,typeof s.prototype.indexOf=="function"?j?s.prototype.indexOf.call(E,S,L):s.prototype.lastIndexOf.call(E,S,L):H(E,[S],L,F,j);throw new TypeError("val must be string, number or Buffer")}function H(E,S,L,F,j){let Z=1,ce=E.length,je=S.length;if(F!==void 0&&(F=String(F).toLowerCase(),F==="ucs2"||F==="ucs-2"||F==="utf16le"||F==="utf-16le")){if(E.length<2||S.length<2)return-1;Z=2,ce/=2,je/=2,L/=2}function Ht(vt,zt){return Z===1?vt[zt]:vt.readUInt16BE(zt*Z)}let Ke;if(j){let vt=-1;for(Ke=L;Ke<ce;Ke++)if(Ht(E,Ke)===Ht(S,vt===-1?0:Ke-vt)){if(vt===-1&&(vt=Ke),Ke-vt+1===je)return vt*Z}else vt!==-1&&(Ke-=Ke-vt),vt=-1}else for(L+je>ce&&(L=ce-je),Ke=L;Ke>=0;Ke--){let vt=!0;for(let zt=0;zt<je;zt++)if(Ht(E,Ke+zt)!==Ht(S,zt)){vt=!1;break}if(vt)return Ke}return-1}c.prototype.includes=function(S,L,F){return this.indexOf(S,L,F)!==-1},c.prototype.indexOf=function(S,L,F){return P(this,S,L,F,!0)},c.prototype.lastIndexOf=function(S,L,F){return P(this,S,L,F,!1)};function Y(E,S,L,F){L=Number(L)||0;const j=E.length-L;F?(F=Number(F),F>j&&(F=j)):F=j;const Z=S.length;F>Z/2&&(F=Z/2);let ce;for(ce=0;ce<F;++ce){const je=parseInt(S.substr(ce*2,2),16);if(z(je))return ce;E[L+ce]=je}return ce}function B(E,S,L,F){return O(oe(S,E.length-L),E,L,F)}function U(E,S,L,F){return O(J(S),E,L,F)}function G(E,S,L,F){return O(A(S),E,L,F)}function ne(E,S,L,F){return O(X(S,E.length-L),E,L,F)}c.prototype.write=function(S,L,F,j){if(L===void 0)j="utf8",F=this.length,L=0;else if(F===void 0&&typeof L=="string")j=L,F=this.length,L=0;else if(isFinite(L))L=L>>>0,isFinite(F)?(F=F>>>0,j===void 0&&(j="utf8")):(j=F,F=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Z=this.length-L;if((F===void 0||F>Z)&&(F=Z),S.length>0&&(F<0||L<0)||L>this.length)throw new RangeError("Attempt to write outside buffer bounds");j||(j="utf8");let ce=!1;for(;;)switch(j){case"hex":return Y(this,S,L,F);case"utf8":case"utf-8":return B(this,S,L,F);case"ascii":case"latin1":case"binary":return U(this,S,L,F);case"base64":return G(this,S,L,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne(this,S,L,F);default:if(ce)throw new TypeError("Unknown encoding: "+j);j=(""+j).toLowerCase(),ce=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function _e(E,S,L){return S===0&&L===E.length?e.fromByteArray(E):e.fromByteArray(E.slice(S,L))}function Le(E,S,L){L=Math.min(E.length,L);const F=[];let j=S;for(;j<L;){const Z=E[j];let ce=null,je=Z>239?4:Z>223?3:Z>191?2:1;if(j+je<=L){let Ht,Ke,vt,zt;switch(je){case 1:Z<128&&(ce=Z);break;case 2:Ht=E[j+1],(Ht&192)===128&&(zt=(Z&31)<<6|Ht&63,zt>127&&(ce=zt));break;case 3:Ht=E[j+1],Ke=E[j+2],(Ht&192)===128&&(Ke&192)===128&&(zt=(Z&15)<<12|(Ht&63)<<6|Ke&63,zt>2047&&(zt<55296||zt>57343)&&(ce=zt));break;case 4:Ht=E[j+1],Ke=E[j+2],vt=E[j+3],(Ht&192)===128&&(Ke&192)===128&&(vt&192)===128&&(zt=(Z&15)<<18|(Ht&63)<<12|(Ke&63)<<6|vt&63,zt>65535&&zt<1114112&&(ce=zt))}}ce===null?(ce=65533,je=1):ce>65535&&(ce-=65536,F.push(ce>>>10&1023|55296),ce=56320|ce&1023),F.push(ce),j+=je}return ye(F)}const De=4096;function ye(E){const S=E.length;if(S<=De)return String.fromCharCode.apply(String,E);let L="",F=0;for(;F<S;)L+=String.fromCharCode.apply(String,E.slice(F,F+=De));return L}function Fe(E,S,L){let F="";L=Math.min(E.length,L);for(let j=S;j<L;++j)F+=String.fromCharCode(E[j]&127);return F}function He(E,S,L){let F="";L=Math.min(E.length,L);for(let j=S;j<L;++j)F+=String.fromCharCode(E[j]);return F}function Ne(E,S,L){const F=E.length;(!S||S<0)&&(S=0),(!L||L<0||L>F)&&(L=F);let j="";for(let Z=S;Z<L;++Z)j+=re[E[Z]];return j}function ve(E,S,L){const F=E.slice(S,L);let j="";for(let Z=0;Z<F.length-1;Z+=2)j+=String.fromCharCode(F[Z]+F[Z+1]*256);return j}c.prototype.slice=function(S,L){const F=this.length;S=~~S,L=L===void 0?F:~~L,S<0?(S+=F,S<0&&(S=0)):S>F&&(S=F),L<0?(L+=F,L<0&&(L=0)):L>F&&(L=F),L<S&&(L=S);const j=this.subarray(S,L);return Object.setPrototypeOf(j,c.prototype),j};function kt(E,S,L){if(E%1!==0||E<0)throw new RangeError("offset is not uint");if(E+S>L)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(S,L,F){S=S>>>0,L=L>>>0,F||kt(S,L,this.length);let j=this[S],Z=1,ce=0;for(;++ce<L&&(Z*=256);)j+=this[S+ce]*Z;return j},c.prototype.readUintBE=c.prototype.readUIntBE=function(S,L,F){S=S>>>0,L=L>>>0,F||kt(S,L,this.length);let j=this[S+--L],Z=1;for(;L>0&&(Z*=256);)j+=this[S+--L]*Z;return j},c.prototype.readUint8=c.prototype.readUInt8=function(S,L){return S=S>>>0,L||kt(S,1,this.length),this[S]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(S,L){return S=S>>>0,L||kt(S,2,this.length),this[S]|this[S+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(S,L){return S=S>>>0,L||kt(S,2,this.length),this[S]<<8|this[S+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(S,L){return S=S>>>0,L||kt(S,4,this.length),(this[S]|this[S+1]<<8|this[S+2]<<16)+this[S+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(S,L){return S=S>>>0,L||kt(S,4,this.length),this[S]*16777216+(this[S+1]<<16|this[S+2]<<8|this[S+3])},c.prototype.readBigUInt64LE=me(function(S){S=S>>>0,Ln(S,"offset");const L=this[S],F=this[S+7];(L===void 0||F===void 0)&&ha(S,this.length-8);const j=L+this[++S]*2**8+this[++S]*2**16+this[++S]*2**24,Z=this[++S]+this[++S]*2**8+this[++S]*2**16+F*2**24;return BigInt(j)+(BigInt(Z)<<BigInt(32))}),c.prototype.readBigUInt64BE=me(function(S){S=S>>>0,Ln(S,"offset");const L=this[S],F=this[S+7];(L===void 0||F===void 0)&&ha(S,this.length-8);const j=L*2**24+this[++S]*2**16+this[++S]*2**8+this[++S],Z=this[++S]*2**24+this[++S]*2**16+this[++S]*2**8+F;return(BigInt(j)<<BigInt(32))+BigInt(Z)}),c.prototype.readIntLE=function(S,L,F){S=S>>>0,L=L>>>0,F||kt(S,L,this.length);let j=this[S],Z=1,ce=0;for(;++ce<L&&(Z*=256);)j+=this[S+ce]*Z;return Z*=128,j>=Z&&(j-=Math.pow(2,8*L)),j},c.prototype.readIntBE=function(S,L,F){S=S>>>0,L=L>>>0,F||kt(S,L,this.length);let j=L,Z=1,ce=this[S+--j];for(;j>0&&(Z*=256);)ce+=this[S+--j]*Z;return Z*=128,ce>=Z&&(ce-=Math.pow(2,8*L)),ce},c.prototype.readInt8=function(S,L){return S=S>>>0,L||kt(S,1,this.length),this[S]&128?(255-this[S]+1)*-1:this[S]},c.prototype.readInt16LE=function(S,L){S=S>>>0,L||kt(S,2,this.length);const F=this[S]|this[S+1]<<8;return F&32768?F|4294901760:F},c.prototype.readInt16BE=function(S,L){S=S>>>0,L||kt(S,2,this.length);const F=this[S+1]|this[S]<<8;return F&32768?F|4294901760:F},c.prototype.readInt32LE=function(S,L){return S=S>>>0,L||kt(S,4,this.length),this[S]|this[S+1]<<8|this[S+2]<<16|this[S+3]<<24},c.prototype.readInt32BE=function(S,L){return S=S>>>0,L||kt(S,4,this.length),this[S]<<24|this[S+1]<<16|this[S+2]<<8|this[S+3]},c.prototype.readBigInt64LE=me(function(S){S=S>>>0,Ln(S,"offset");const L=this[S],F=this[S+7];(L===void 0||F===void 0)&&ha(S,this.length-8);const j=this[S+4]+this[S+5]*2**8+this[S+6]*2**16+(F<<24);return(BigInt(j)<<BigInt(32))+BigInt(L+this[++S]*2**8+this[++S]*2**16+this[++S]*2**24)}),c.prototype.readBigInt64BE=me(function(S){S=S>>>0,Ln(S,"offset");const L=this[S],F=this[S+7];(L===void 0||F===void 0)&&ha(S,this.length-8);const j=(L<<24)+this[++S]*2**16+this[++S]*2**8+this[++S];return(BigInt(j)<<BigInt(32))+BigInt(this[++S]*2**24+this[++S]*2**16+this[++S]*2**8+F)}),c.prototype.readFloatLE=function(S,L){return S=S>>>0,L||kt(S,4,this.length),t.read(this,S,!0,23,4)},c.prototype.readFloatBE=function(S,L){return S=S>>>0,L||kt(S,4,this.length),t.read(this,S,!1,23,4)},c.prototype.readDoubleLE=function(S,L){return S=S>>>0,L||kt(S,8,this.length),t.read(this,S,!0,52,8)},c.prototype.readDoubleBE=function(S,L){return S=S>>>0,L||kt(S,8,this.length),t.read(this,S,!1,52,8)};function Vt(E,S,L,F,j,Z){if(!c.isBuffer(E))throw new TypeError('"buffer" argument must be a Buffer instance');if(S>j||S<Z)throw new RangeError('"value" argument is out of bounds');if(L+F>E.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(S,L,F,j){if(S=+S,L=L>>>0,F=F>>>0,!j){const je=Math.pow(2,8*F)-1;Vt(this,S,L,F,je,0)}let Z=1,ce=0;for(this[L]=S&255;++ce<F&&(Z*=256);)this[L+ce]=S/Z&255;return L+F},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(S,L,F,j){if(S=+S,L=L>>>0,F=F>>>0,!j){const je=Math.pow(2,8*F)-1;Vt(this,S,L,F,je,0)}let Z=F-1,ce=1;for(this[L+Z]=S&255;--Z>=0&&(ce*=256);)this[L+Z]=S/ce&255;return L+F},c.prototype.writeUint8=c.prototype.writeUInt8=function(S,L,F){return S=+S,L=L>>>0,F||Vt(this,S,L,1,255,0),this[L]=S&255,L+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(S,L,F){return S=+S,L=L>>>0,F||Vt(this,S,L,2,65535,0),this[L]=S&255,this[L+1]=S>>>8,L+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(S,L,F){return S=+S,L=L>>>0,F||Vt(this,S,L,2,65535,0),this[L]=S>>>8,this[L+1]=S&255,L+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(S,L,F){return S=+S,L=L>>>0,F||Vt(this,S,L,4,4294967295,0),this[L+3]=S>>>24,this[L+2]=S>>>16,this[L+1]=S>>>8,this[L]=S&255,L+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(S,L,F){return S=+S,L=L>>>0,F||Vt(this,S,L,4,4294967295,0),this[L]=S>>>24,this[L+1]=S>>>16,this[L+2]=S>>>8,this[L+3]=S&255,L+4};function ki(E,S,L,F,j){Hi(S,F,j,E,L,7);let Z=Number(S&BigInt(4294967295));E[L++]=Z,Z=Z>>8,E[L++]=Z,Z=Z>>8,E[L++]=Z,Z=Z>>8,E[L++]=Z;let ce=Number(S>>BigInt(32)&BigInt(4294967295));return E[L++]=ce,ce=ce>>8,E[L++]=ce,ce=ce>>8,E[L++]=ce,ce=ce>>8,E[L++]=ce,L}function _t(E,S,L,F,j){Hi(S,F,j,E,L,7);let Z=Number(S&BigInt(4294967295));E[L+7]=Z,Z=Z>>8,E[L+6]=Z,Z=Z>>8,E[L+5]=Z,Z=Z>>8,E[L+4]=Z;let ce=Number(S>>BigInt(32)&BigInt(4294967295));return E[L+3]=ce,ce=ce>>8,E[L+2]=ce,ce=ce>>8,E[L+1]=ce,ce=ce>>8,E[L]=ce,L+8}c.prototype.writeBigUInt64LE=me(function(S,L=0){return ki(this,S,L,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=me(function(S,L=0){return _t(this,S,L,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(S,L,F,j){if(S=+S,L=L>>>0,!j){const Ht=Math.pow(2,8*F-1);Vt(this,S,L,F,Ht-1,-Ht)}let Z=0,ce=1,je=0;for(this[L]=S&255;++Z<F&&(ce*=256);)S<0&&je===0&&this[L+Z-1]!==0&&(je=1),this[L+Z]=(S/ce>>0)-je&255;return L+F},c.prototype.writeIntBE=function(S,L,F,j){if(S=+S,L=L>>>0,!j){const Ht=Math.pow(2,8*F-1);Vt(this,S,L,F,Ht-1,-Ht)}let Z=F-1,ce=1,je=0;for(this[L+Z]=S&255;--Z>=0&&(ce*=256);)S<0&&je===0&&this[L+Z+1]!==0&&(je=1),this[L+Z]=(S/ce>>0)-je&255;return L+F},c.prototype.writeInt8=function(S,L,F){return S=+S,L=L>>>0,F||Vt(this,S,L,1,127,-128),S<0&&(S=255+S+1),this[L]=S&255,L+1},c.prototype.writeInt16LE=function(S,L,F){return S=+S,L=L>>>0,F||Vt(this,S,L,2,32767,-32768),this[L]=S&255,this[L+1]=S>>>8,L+2},c.prototype.writeInt16BE=function(S,L,F){return S=+S,L=L>>>0,F||Vt(this,S,L,2,32767,-32768),this[L]=S>>>8,this[L+1]=S&255,L+2},c.prototype.writeInt32LE=function(S,L,F){return S=+S,L=L>>>0,F||Vt(this,S,L,4,2147483647,-2147483648),this[L]=S&255,this[L+1]=S>>>8,this[L+2]=S>>>16,this[L+3]=S>>>24,L+4},c.prototype.writeInt32BE=function(S,L,F){return S=+S,L=L>>>0,F||Vt(this,S,L,4,2147483647,-2147483648),S<0&&(S=4294967295+S+1),this[L]=S>>>24,this[L+1]=S>>>16,this[L+2]=S>>>8,this[L+3]=S&255,L+4},c.prototype.writeBigInt64LE=me(function(S,L=0){return ki(this,S,L,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=me(function(S,L=0){return _t(this,S,L,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Pi(E,S,L,F,j,Z){if(L+F>E.length)throw new RangeError("Index out of range");if(L<0)throw new RangeError("Index out of range")}function Is(E,S,L,F,j){return S=+S,L=L>>>0,j||Pi(E,S,L,4),t.write(E,S,L,F,23,4),L+4}c.prototype.writeFloatLE=function(S,L,F){return Is(this,S,L,!0,F)},c.prototype.writeFloatBE=function(S,L,F){return Is(this,S,L,!1,F)};function Yi(E,S,L,F,j){return S=+S,L=L>>>0,j||Pi(E,S,L,8),t.write(E,S,L,F,52,8),L+8}c.prototype.writeDoubleLE=function(S,L,F){return Yi(this,S,L,!0,F)},c.prototype.writeDoubleBE=function(S,L,F){return Yi(this,S,L,!1,F)},c.prototype.copy=function(S,L,F,j){if(!c.isBuffer(S))throw new TypeError("argument should be a Buffer");if(F||(F=0),!j&&j!==0&&(j=this.length),L>=S.length&&(L=S.length),L||(L=0),j>0&&j<F&&(j=F),j===F||S.length===0||this.length===0)return 0;if(L<0)throw new RangeError("targetStart out of bounds");if(F<0||F>=this.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("sourceEnd out of bounds");j>this.length&&(j=this.length),S.length-L<j-F&&(j=S.length-L+F);const Z=j-F;return this===S&&typeof s.prototype.copyWithin=="function"?this.copyWithin(L,F,j):s.prototype.set.call(S,this.subarray(F,j),L),Z},c.prototype.fill=function(S,L,F,j){if(typeof S=="string"){if(typeof L=="string"?(j=L,L=0,F=this.length):typeof F=="string"&&(j=F,F=this.length),j!==void 0&&typeof j!="string")throw new TypeError("encoding must be a string");if(typeof j=="string"&&!c.isEncoding(j))throw new TypeError("Unknown encoding: "+j);if(S.length===1){const ce=S.charCodeAt(0);(j==="utf8"&&ce<128||j==="latin1")&&(S=ce)}}else typeof S=="number"?S=S&255:typeof S=="boolean"&&(S=Number(S));if(L<0||this.length<L||this.length<F)throw new RangeError("Out of range index");if(F<=L)return this;L=L>>>0,F=F===void 0?this.length:F>>>0,S||(S=0);let Z;if(typeof S=="number")for(Z=L;Z<F;++Z)this[Z]=S;else{const ce=c.isBuffer(S)?S:c.from(S,j),je=ce.length;if(je===0)throw new TypeError('The value "'+S+'" is invalid for argument "value"');for(Z=0;Z<F-L;++Z)this[Z+L]=ce[Z%je]}return this};const Ve={};function yn(E,S,L){Ve[E]=class extends L{constructor(){super(),Object.defineProperty(this,"message",{value:S.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${E}]`,this.stack,delete this.name}get code(){return E}set code(j){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:j,writable:!0})}toString(){return`${this.name} [${E}]: ${this.message}`}}}yn("ERR_BUFFER_OUT_OF_BOUNDS",function(E){return E?`${E} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),yn("ERR_INVALID_ARG_TYPE",function(E,S){return`The "${E}" argument must be of type number. Received type ${typeof S}`},TypeError),yn("ERR_OUT_OF_RANGE",function(E,S,L){let F=`The value of "${E}" is out of range.`,j=L;return Number.isInteger(L)&&Math.abs(L)>2**32?j=Js(String(L)):typeof L=="bigint"&&(j=String(L),(L>BigInt(2)**BigInt(32)||L<-(BigInt(2)**BigInt(32)))&&(j=Js(j)),j+="n"),F+=` It must be ${S}. Received ${j}`,F},RangeError);function Js(E){let S="",L=E.length;const F=E[0]==="-"?1:0;for(;L>=F+4;L-=3)S=`_${E.slice(L-3,L)}${S}`;return`${E.slice(0,L)}${S}`}function Io(E,S,L){Ln(S,"offset"),(E[S]===void 0||E[S+L]===void 0)&&ha(S,E.length-(L+1))}function Hi(E,S,L,F,j,Z){if(E>L||E<S){const ce=typeof S=="bigint"?"n":"";let je;throw S===0||S===BigInt(0)?je=`>= 0${ce} and < 2${ce} ** ${(Z+1)*8}${ce}`:je=`>= -(2${ce} ** ${(Z+1)*8-1}${ce}) and < 2 ** ${(Z+1)*8-1}${ce}`,new Ve.ERR_OUT_OF_RANGE("value",je,E)}Io(F,j,Z)}function Ln(E,S){if(typeof E!="number")throw new Ve.ERR_INVALID_ARG_TYPE(S,"number",E)}function ha(E,S,L){throw Math.floor(E)!==E?(Ln(E,L),new Ve.ERR_OUT_OF_RANGE("offset","an integer",E)):S<0?new Ve.ERR_BUFFER_OUT_OF_BOUNDS:new Ve.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${S}`,E)}const gg=/[^+/0-9A-Za-z-_]/g;function tm(E){if(E=E.split("=")[0],E=E.trim().replace(gg,""),E.length<2)return"";for(;E.length%4!==0;)E=E+"=";return E}function oe(E,S){S=S||1/0;let L;const F=E.length;let j=null;const Z=[];for(let ce=0;ce<F;++ce){if(L=E.charCodeAt(ce),L>55295&&L<57344){if(!j){if(L>56319){(S-=3)>-1&&Z.push(239,191,189);continue}else if(ce+1===F){(S-=3)>-1&&Z.push(239,191,189);continue}j=L;continue}if(L<56320){(S-=3)>-1&&Z.push(239,191,189),j=L;continue}L=(j-55296<<10|L-56320)+65536}else j&&(S-=3)>-1&&Z.push(239,191,189);if(j=null,L<128){if((S-=1)<0)break;Z.push(L)}else if(L<2048){if((S-=2)<0)break;Z.push(L>>6|192,L&63|128)}else if(L<65536){if((S-=3)<0)break;Z.push(L>>12|224,L>>6&63|128,L&63|128)}else if(L<1114112){if((S-=4)<0)break;Z.push(L>>18|240,L>>12&63|128,L>>6&63|128,L&63|128)}else throw new Error("Invalid code point")}return Z}function J(E){const S=[];for(let L=0;L<E.length;++L)S.push(E.charCodeAt(L)&255);return S}function X(E,S){let L,F,j;const Z=[];for(let ce=0;ce<E.length&&!((S-=2)<0);++ce)L=E.charCodeAt(ce),F=L>>8,j=L%256,Z.push(j),Z.push(F);return Z}function A(E){return e.toByteArray(tm(E))}function O(E,S,L,F){let j;for(j=0;j<F&&!(j+L>=S.length||j>=E.length);++j)S[j+L]=E[j];return j}function $(E,S){return E instanceof S||E!=null&&E.constructor!=null&&E.constructor.name!=null&&E.constructor.name===S.name}function z(E){return E!==E}const re=function(){const E="0123456789abcdef",S=new Array(256);for(let L=0;L<16;++L){const F=L*16;for(let j=0;j<16;++j)S[F+j]=E[L]+E[j]}return S}();function me(E){return typeof BigInt>"u"?Te:E}function Te(){throw new Error("BigInt not supported")}})(PT);const ID=PT.Buffer,Sve=PT.Buffer;function Eo(o,e=0){return o[o.length-(1+e)]}function eH(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function _i(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;i<n;i++)if(!t(o[i],e[i]))return!1;return!0}function tH(o,e){const t=o.length-1;e<t&&(o[e]=o[t]),o.pop()}function M_(o,e,t){return iH(o.length,i=>t(o[i],e))}function iH(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function ED(o,e,t){if(o=o|0,o>=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o<n.length?ED(o,n,t):o<n.length+r.length?r[0]:ED(o-(n.length+r.length),s,t)}function uA(o,e){const t=[];let i;for(const n of o.slice(0).sort(e))!i||e(i[0],n)!==0?(i=[n],t.push(i)):i.push(n);return t}function*f3(o,e){let t,i;for(const n of o)i!==void 0&&e(i,n)?t.push(n):(t&&(yield t),t=[n]),i=n;t&&(yield t)}function p3(o,e){for(let t=0;t<=o.length;t++)e(t===0?void 0:o[t-1],t===o.length?void 0:o[t])}function nH(o,e){for(let t=0;t<o.length;t++)e(t===0?void 0:o[t-1],o[t],t+1===o.length?void 0:o[t+1])}function Qr(o){return o.filter(e=>!!e)}function gA(o){let e=0;for(let t=0;t<o.length;t++)o[t]&&(o[e]=o[t],e+=1);o.length=e}function m3(o){return!Array.isArray(o)||o.length===0}function Bn(o){return Array.isArray(o)&&o.length>0}function Ic(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function FT(o,e){return o.length>0?o[0]:e}function es(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;n<e;n++)i.push(n);else for(let n=t;n>e;n--)i.push(n);return i}function cS(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function yL(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function Jv(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function ND(o,e){for(const t of e)o.push(t)}function BT(o){return Array.isArray(o)?o:[o]}function sH(o,e,t){const i=_3(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r<s;r++)o[r+i]=t[r]}function fA(o,e,t,i){const n=_3(o,e);let s=o.splice(n,t);return s===void 0&&(s=[]),sH(o,n,i),s}function _3(o,e){return e<0?Math.max(e+o.length,0):Math.min(e,o.length)}var R_;(function(o){function e(s){return s<0}o.isLessThan=e;function t(s){return s<=0}o.isLessThanOrEqual=t;function i(s){return s>0}o.isGreaterThan=i;function n(s){return s===0}o.isNeitherLessOrGreaterThan=n,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(R_||(R_={}));function Bo(o,e){return(t,i)=>e(o(t),o(i))}function oH(...o){return(e,t)=>{for(const i of o){const n=i(e,t);if(!R_.isNeitherLessOrGreaterThan(n))return n}return R_.neitherLessOrGreaterThan}}const nd=(o,e)=>o-e,rH=(o,e)=>nd(o?1:0,e?1:0);function v3(o){return(e,t)=>-o(e,t)}class ud{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class Qa{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new Qa(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new Qa(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||R_.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}}Qa.empty=new Qa(o=>{});function ds(o){return typeof o=="string"}function os(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function aH(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function Ec(o){return typeof o=="number"&&!isNaN(o)}function pA(o){return!!o&&typeof o[Symbol.iterator]=="function"}function b3(o){return o===!0||o===!1}function Fs(o){return typeof o>"u"}function A_(o){return!ho(o)}function ho(o){return Fs(o)||o===null}function Tt(o,e){if(!o)throw new Error("Unexpected type")}function Zd(o){if(ho(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function P_(o){return typeof o=="function"}function lH(o,e){const t=Math.min(o.length,e.length);for(let i=0;i<t;i++)dH(o[i],e[i])}function dH(o,e){if(ds(e)){if(typeof o!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(P_(e)){try{if(o instanceof e)return}catch{}if(!ho(o)&&o.constructor===e||e.length===1&&e.call(void 0,o)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function Bl(o){if(!o||typeof o!="object"||o instanceof RegExp)return o;const e=Array.isArray(o)?[]:{};return Object.entries(o).forEach(([t,i])=>{e[t]=i&&typeof i=="object"?Bl(i):i}),e}function cH(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(C3.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!aH(n)&&e.push(n)}}return o}const C3=Object.prototype.hasOwnProperty;function w3(o,e){return TD(o,e,new Set)}function TD(o,e,t){if(ho(o))return o;const i=e(o);if(typeof i<"u")return i;if(Array.isArray(o)){const n=[];for(const s of o)n.push(TD(s,e,t));return n}if(os(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)C3.call(o,s)&&(n[s]=TD(o[s],e,t));return t.delete(o),n}return o}function hS(o,e,t=!0){return os(o)?(os(e)&&Object.keys(e).forEach(i=>{i in o?t&&(os(o[i])&&os(e[i])?hS(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function Co(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;t<o.length;t++)if(!Co(o[t],e[t]))return!1}else{const n=[];for(i in o)n.push(i);n.sort();const s=[];for(i in e)s.push(i);if(s.sort(),!Co(n,s))return!1;for(t=0;t<n.length;t++)if(!Co(o[n[t]],e[n[t]]))return!1}return!0}function hH(o){let e=[];for(;Object.prototype!==o;)e=e.concat(Object.getOwnPropertyNames(o)),o=Object.getPrototypeOf(o);return e}function WT(o){const e=[];for(const t of hH(o))typeof o[t]=="function"&&e.push(t);return e}function uH(o,e){const t=n=>function(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}let gH=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function S3(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),gH&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function p(o,e,...t){return S3(e,t)}function fH(o,e,...t){const i=S3(e,t);return{value:i,original:i}}var LL;const zg="en";let a1=!1,l1=!1,SC=!1,y3=!1,VT=!1,HT=!1,L3=!1,eb,yC=zg,mA=zg,pH,Er;const sd=globalThis;let ts;typeof sd.vscode<"u"&&typeof sd.vscode.process<"u"?ts=sd.vscode.process:typeof Hg<"u"&&(ts=Hg);const mH=typeof((LL=ts?.versions)===null||LL===void 0?void 0:LL.electron)=="string",_H=mH&&ts?.type==="renderer";if(typeof navigator=="object"&&!_H)Er=navigator.userAgent,a1=Er.indexOf("Windows")>=0,l1=Er.indexOf("Macintosh")>=0,HT=(Er.indexOf("Macintosh")>=0||Er.indexOf("iPad")>=0||Er.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,SC=Er.indexOf("Linux")>=0,L3=Er?.indexOf("Mobi")>=0,VT=!0,p({},"_"),eb=zg,yC=eb,mA=navigator.language;else if(typeof ts=="object"){a1=ts.platform==="win32",l1=ts.platform==="darwin",SC=ts.platform==="linux",SC&&ts.env.SNAP&&ts.env.SNAP_REVISION,ts.env.CI||ts.env.BUILD_ARTIFACTSTAGINGDIRECTORY,eb=zg,yC=zg;const o=ts.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];eb=e.locale,mA=e.osLocale,yC=t||zg,pH=e._translationsConfigFile}catch{}y3=!0}else console.error("Unable to resolve platform.");const Vn=a1,ut=l1,Qn=SC,ol=y3,th=VT,vH=VT&&typeof sd.importScripts=="function",bH=vH?sd.origin:void 0,rl=HT,CH=L3,al=Er,wH=yC,SH=typeof sd.postMessage=="function"&&!sd.importScripts,x3=(()=>{if(SH){const o=[];sd.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i<n;i++){const s=o[i];if(s.id===t.data.vscodeScheduleAsyncWork){o.splice(i,1),s.callback();return}}});let e=0;return t=>{const i=++e;o.push({id:i,callback:t}),sd.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),mo=l1||HT?2:a1?1:3;let _A=!0,vA=!1;function D3(){if(!vA){vA=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,_A=new Uint16Array(o.buffer)[0]===513}return _A}const k3=!!(al&&al.indexOf("Chrome")>=0),yH=!!(al&&al.indexOf("Firefox")>=0),LH=!!(!k3&&al&&al.indexOf("Safari")>=0),xH=!!(al&&al.indexOf("Edg/")>=0);al&&al.indexOf("Android")>=0;const On={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var rt;(function(o){function e(b){return b&&typeof b=="object"&&typeof b[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(b){yield b}o.single=n;function s(b){return e(b)?b:n(b)}o.wrap=s;function r(b){return b||t}o.from=r;function*a(b){for(let C=b.length-1;C>=0;C--)yield b[C]}o.reverse=a;function l(b){return!b||b[Symbol.iterator]().next().done===!0}o.isEmpty=l;function d(b){return b[Symbol.iterator]().next().value}o.first=d;function c(b,C){for(const w of b)if(C(w))return!0;return!1}o.some=c;function h(b,C){for(const w of b)if(C(w))return w}o.find=h;function*u(b,C){for(const w of b)C(w)&&(yield w)}o.filter=u;function*g(b,C){let w=0;for(const y of b)yield C(y,w++)}o.map=g;function*f(...b){for(const C of b)yield*C}o.concat=f;function m(b,C,w){let y=w;for(const I of b)y=C(y,I);return y}o.reduce=m;function*_(b,C,w=b.length){for(C<0&&(C+=b.length),w<0?w+=b.length:w>b.length&&(w=b.length);C<w;C++)yield b[C]}o.slice=_;function v(b,C=Number.POSITIVE_INFINITY){const w=[];if(C===0)return[w,b];const y=b[Symbol.iterator]();for(let I=0;I<C;I++){const D=y.next();if(D.done)return[w,o.empty()];w.push(D.value)}return[w,{[Symbol.iterator](){return y}}]}o.consume=v})(rt||(rt={}));let Ui=class MD{constructor(e){this.element=e,this.next=MD.Undefined,this.prev=MD.Undefined}};Ui.Undefined=new Ui(void 0);class rs{constructor(){this._first=Ui.Undefined,this._last=Ui.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Ui.Undefined}clear(){let e=this._first;for(;e!==Ui.Undefined;){const t=e.next;e.prev=Ui.Undefined,e.next=Ui.Undefined,e=t}this._first=Ui.Undefined,this._last=Ui.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new Ui(e);if(this._first===Ui.Undefined)this._first=i,this._last=i;else if(t){const s=this._last;this._last=i,i.prev=s,s.next=i}else{const s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==Ui.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Ui.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Ui.Undefined&&e.next!==Ui.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Ui.Undefined&&e.next===Ui.Undefined?(this._first=Ui.Undefined,this._last=Ui.Undefined):e.next===Ui.Undefined?(this._last=this._last.prev,this._last.next=Ui.Undefined):e.prev===Ui.Undefined&&(this._first=this._first.next,this._first.prev=Ui.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Ui.Undefined;)yield e.element,e=e.next}}const I3="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function DH(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of I3)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const zT=DH();function UT(o){let e=zT;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const E3=new rs;E3.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function O_(o,e,t,i,n){if(e=UT(e),n||(n=rt.first(E3)),t.length>n.maxLen){let d=o-n.maxLen/2;return d<0?d=0:i+=d,t=t.substring(d,o+n.maxLen/2),O_(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let d=1;!(Date.now()-s>=n.timeBudget);d++){const c=r-n.windowSize*d;e.lastIndex=Math.max(0,c);const h=kH(e,t,r,a);if(!h&&l||(l=h,c<=0))break;a=c}if(l){const d={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,d}return null}function kH(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}const Md=8;class N3{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class T3{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class ri{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return uS(e,t)}compute(e,t,i){return i}}class Jm{constructor(e,t){this.newValue=e,this.didChange=t}}function uS(o,e){if(typeof o!="object"||typeof e!="object"||!o||!e)return new Jm(e,o!==e);if(Array.isArray(o)||Array.isArray(e)){const i=Array.isArray(o)&&Array.isArray(e)&&_i(o,e);return new Jm(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=uS(o[i],e[i]);n.didChange&&(o[i]=n.newValue,t=!0)}return new Jm(o,t)}class dv{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return uS(e,t)}validate(e){return this.defaultValue}}class Tp{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return uS(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function Ie(o,e){return typeof o>"u"?e:o==="false"?!1:!!o}class pt extends Tp{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return Ie(e,this.defaultValue)}}function Nh(o,e,t,i){if(typeof o>"u")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class At extends Tp{static clampedInt(e,t,i,n){return Nh(e,t,i,n)}constructor(e,t,i,n,s,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}validate(e){return At.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function IH(o,e,t,i){if(typeof o>"u")return e;const n=ar.float(o,e);return ar.clamp(n,t,i)}class ar extends Tp{static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}validate(e){return this.validationFn(ar.float(e,this.defaultValue))}}class Rs extends Tp{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return Rs.string(e,this.defaultValue)}}function yi(o,e,t,i){return typeof o!="string"?e:i&&o in i?i[o]:t.indexOf(o)===-1?e:o}class ai extends Tp{constructor(e,t,i,n,s=void 0){typeof s<"u"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return yi(e,this.defaultValue,this._allowedValues)}}class tb extends ri{constructor(e,t,i,n,s,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function EH(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class NH extends ri{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","Optimize for usage with a Screen Reader."),p("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:p("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class TH extends ri{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:Ie(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Ie(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function MH(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var mn;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(mn||(mn={}));function RH(o){switch(o){case"line":return mn.Line;case"block":return mn.Block;case"underline":return mn.Underline;case"line-thin":return mn.LineThin;case"block-outline":return mn.BlockOutline;case"underline-thin":return mn.UnderlineThin}}class AH extends dv{constructor(){super(140)}compute(e,t,i){const n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(73)==="default"?n.push("mouse-default"):t.get(73)==="copy"&&n.push("mouse-copy"),t.get(110)&&n.push("showUnused"),t.get(138)&&n.push("showDeprecated"),n.join(" ")}}class PH extends pt{constructor(){super(37,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){r