@live-codes/browser-compilers 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/autoprefixer/autoprefixer.js +14 -14
- package/dist/cssnano/cssnano.js +32 -32
- package/dist/lightningcss/lightningcss.js +1 -1
- package/dist/lightningcss/lightningcss_node.wasm +0 -0
- package/dist/postcss/postcss.js +10 -10
- package/dist/postcss-modules/postcss-modules.js +15 -15
- package/dist/postcss-preset-env/postcss-preset-env.js +15 -15
- package/dist/prettier/parser-pug.js +36 -36
- package/dist/pug/pug.min.js +38 -38
- package/dist/purgecss/purgecss.js +38 -38
- package/dist/tailwindcss/monaco-tailwindcss.js +131 -0
- package/dist/tailwindcss/monaco-tailwindcss.worker.js +551 -0
- package/dist/tokencss/tokencss.js +17 -17
- package/package.json +3 -2
- package/scripts/vendors.js +14 -0
- package/vendor_modules/imports/lightningcss.js +7 -2
- package/vendor_modules/imports/monaco-tailwindcss.js +1 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var pluginPug=(()=>{var Dp=Object.create;var si=Object.defineProperty;var vp=Object.getOwnPropertyDescriptor;var bp=Object.getOwnPropertyNames;var Ep=Object.getPrototypeOf,xp=Object.prototype.hasOwnProperty;var Tt=(e,t)=>()=>(e&&(t=e(e=0)),t);var je=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),rn=(e,t)=>{for(var i in t)si(e,i,{get:t[i],enumerable:!0})},Ms=(e,t,i,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of bp(t))!xp.call(e,s)&&s!==i&&si(e,s,{get:()=>t[s],enumerable:!(n=vp(t,s))||n.enumerable});return e};var wp=(e,t,i)=>(i=e!=null?Dp(Ep(e)):{},Ms(t||!e||!e.__esModule?si(i,"default",{value:e,enumerable:!0}):i,e)),Vs=e=>Ms(si({},"__esModule",{value:!0}),e);var J=Tt(()=>{});var De={};rn(De,{_debugEnd:()=>Ia,_debugProcess:()=>_a,_events:()=>za,_eventsCount:()=>Ha,_exiting:()=>ca,_fatalExceptions:()=>ka,_getActiveHandles:()=>da,_getActiveRequests:()=>fa,_kill:()=>ma,_linkedBinding:()=>ua,_maxListeners:()=>Ga,_preload_modules:()=>Va,_rawDebug:()=>aa,_startProfilerIdleNotifier:()=>Pa,_stopProfilerIdleNotifier:()=>Ba,_tickCallback:()=>Sa,abort:()=>La,addListener:()=>Qa,allowedNodeEnvironmentFlags:()=>xa,arch:()=>Hs,argv:()=>Js,argv0:()=>Ma,assert:()=>wa,binding:()=>ta,chdir:()=>na,config:()=>pa,cpuUsage:()=>ui,cwd:()=>ia,debugPort:()=>$a,default:()=>io,dlopen:()=>ha,domain:()=>la,emit:()=>Za,emitWarning:()=>ea,env:()=>Ks,execArgv:()=>Ys,execPath:()=>Ua,exit:()=>ba,features:()=>Fa,hasUncaughtExceptionCaptureCallback:()=>Aa,hrtime:()=>oi,kill:()=>va,listeners:()=>ro,memoryUsage:()=>Da,moduleLoadList:()=>oa,nextTick:()=>Ws,off:()=>Ja,on:()=>Dt,once:()=>Ka,openStdin:()=>Ea,pid:()=>Ra,platform:()=>Qs,ppid:()=>ja,prependListener:()=>eo,prependOnceListener:()=>to,reallyExit:()=>ga,release:()=>sa,removeAllListeners:()=>Xa,removeListener:()=>Ya,resourceUsage:()=>ya,setSourceMapsEnabled:()=>qa,setUncaughtExceptionCaptureCallback:()=>Ca,stderr:()=>Oa,stdin:()=>Na,stdout:()=>Ta,title:()=>zs,umask:()=>ra,uptime:()=>Wa,version:()=>Xs,versions:()=>Zs});function an(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function Fp(){!pr||!$t||(pr=!1,$t.length?yt=$t.concat(yt):ai=-1,yt.length&&qs())}function qs(){if(!pr){var e=setTimeout(Fp,0);pr=!0;for(var t=yt.length;t;){for($t=yt,yt=[];++ai<t;)$t&&$t[ai].run();ai=-1,t=yt.length}$t=null,pr=!1,clearTimeout(e)}}function Ws(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];yt.push(new Gs(e,t)),yt.length===1&&!pr&&setTimeout(qs,0)}function Gs(e,t){this.fun=e,this.array=t}function Ve(){}function ua(e){an("_linkedBinding")}function ha(e){an("dlopen")}function fa(){return[]}function da(){return[]}function wa(e,t){if(!e)throw new Error(t||"assertion error")}function Aa(){return!1}function Wa(){return Ot.now()/1e3}function oi(e){var t=Math.floor((Date.now()-Ot.now())*.001),i=Ot.now()*.001,n=Math.floor(i)+t,s=Math.floor(i%1*1e9);return e&&(n=n-e[0],s=s-e[1],s<0&&(n--,s+=sn)),[n,s]}function Dt(){return io}function ro(e){return[]}var yt,pr,$t,ai,zs,Hs,Qs,Ks,Js,Ys,Xs,Zs,ea,ta,ra,ia,na,sa,aa,oa,la,ca,pa,ga,ma,ui,ya,Da,va,ba,Ea,xa,Fa,ka,Ca,Sa,_a,Ia,Pa,Ba,Ta,Oa,Na,La,Ra,ja,Ua,$a,Ma,Va,qa,Ot,nn,sn,Ga,za,Ha,Qa,Ka,Ja,Ya,Xa,Za,eo,to,io,no=Tt(()=>{J();X();Y();yt=[],pr=!1,ai=-1;Gs.prototype.run=function(){this.fun.apply(null,this.array)};zs="browser",Hs="x64",Qs="browser",Ks={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Js=["/usr/bin/node"],Ys=[],Xs="v16.8.0",Zs={},ea=function(e,t){console.warn((t?t+": ":"")+e)},ta=function(e){an("binding")},ra=function(e){return 0},ia=function(){return"/"},na=function(e){},sa={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};aa=Ve,oa=[];la={},ca=!1,pa={};ga=Ve,ma=Ve,ui=function(){return{}},ya=ui,Da=ui,va=Ve,ba=Ve,Ea=Ve,xa={};Fa={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},ka=Ve,Ca=Ve;Sa=Ve,_a=Ve,Ia=Ve,Pa=Ve,Ba=Ve,Ta=void 0,Oa=void 0,Na=void 0,La=Ve,Ra=2,ja=1,Ua="/bin/usr/node",$a=9229,Ma="node",Va=[],qa=Ve,Ot={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};Ot.now===void 0&&(nn=Date.now(),Ot.timing&&Ot.timing.navigationStart&&(nn=Ot.timing.navigationStart),Ot.now=()=>Date.now()-nn);sn=1e9;oi.bigint=function(e){var t=oi(e);return typeof BigInt>"u"?t[0]*sn+t[1]:BigInt(t[0]*sn)+BigInt(t[1])};Ga=10,za={},Ha=0;Qa=Dt,Ka=Dt,Ja=Dt,Ya=Dt,Xa=Dt,Za=Ve,eo=Dt,to=Dt;io={version:Xs,versions:Zs,arch:Hs,platform:Qs,release:sa,_rawDebug:aa,moduleLoadList:oa,binding:ta,_linkedBinding:ua,_events:za,_eventsCount:Ha,_maxListeners:Ga,on:Dt,addListener:Qa,once:Ka,off:Ja,removeListener:Ya,removeAllListeners:Xa,emit:Za,prependListener:eo,prependOnceListener:to,listeners:ro,domain:la,_exiting:ca,config:pa,dlopen:ha,uptime:Wa,_getActiveRequests:fa,_getActiveHandles:da,reallyExit:ga,_kill:ma,cpuUsage:ui,resourceUsage:ya,memoryUsage:Da,kill:va,exit:ba,openStdin:Ea,allowedNodeEnvironmentFlags:xa,assert:wa,features:Fa,_fatalExceptions:ka,setUncaughtExceptionCaptureCallback:Ca,hasUncaughtExceptionCaptureCallback:Aa,emitWarning:ea,nextTick:Ws,_tickCallback:Sa,_debugProcess:_a,_debugEnd:Ia,_startProfilerIdleNotifier:Pa,_stopProfilerIdleNotifier:Ba,stdout:Ta,stdin:Na,stderr:Oa,abort:La,umask:ra,chdir:na,cwd:ia,env:Ks,title:zs,argv:Js,execArgv:Ys,pid:Ra,ppid:ja,execPath:Ua,debugPort:$a,hrtime:oi,argv0:Ma,_preload_modules:Va,setSourceMapsEnabled:qa}});var Y=Tt(()=>{no()});function kp(){if(so)return _r;so=!0,_r.byteLength=p,_r.toByteArray=D,_r.fromByteArray=E;for(var e=[],t=[],i=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,o=n.length;s<o;++s)e[s]=n[s],t[n.charCodeAt(s)]=s;t[45]=62,t[95]=63;function u(x){var v=x.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var k=x.indexOf("=");k===-1&&(k=v);var I=k===v?0:4-k%4;return[k,I]}function p(x){var v=u(x),k=v[0],I=v[1];return(k+I)*3/4-I}function m(x,v,k){return(v+k)*3/4-k}function D(x){var v,k=u(x),I=k[0],P=k[1],L=new i(m(x,I,P)),O=0,f=P>0?I-4:I,V;for(V=0;V<f;V+=4)v=t[x.charCodeAt(V)]<<18|t[x.charCodeAt(V+1)]<<12|t[x.charCodeAt(V+2)]<<6|t[x.charCodeAt(V+3)],L[O++]=v>>16&255,L[O++]=v>>8&255,L[O++]=v&255;return P===2&&(v=t[x.charCodeAt(V)]<<2|t[x.charCodeAt(V+1)]>>4,L[O++]=v&255),P===1&&(v=t[x.charCodeAt(V)]<<10|t[x.charCodeAt(V+1)]<<4|t[x.charCodeAt(V+2)]>>2,L[O++]=v>>8&255,L[O++]=v&255),L}function y(x){return e[x>>18&63]+e[x>>12&63]+e[x>>6&63]+e[x&63]}function F(x,v,k){for(var I,P=[],L=v;L<k;L+=3)I=(x[L]<<16&16711680)+(x[L+1]<<8&65280)+(x[L+2]&255),P.push(y(I));return P.join("")}function E(x){for(var v,k=x.length,I=k%3,P=[],L=16383,O=0,f=k-I;O<f;O+=L)P.push(F(x,O,O+L>f?f:O+L));return I===1?(v=x[k-1],P.push(e[v>>2]+e[v<<4&63]+"==")):I===2&&(v=(x[k-2]<<8)+x[k-1],P.push(e[v>>10]+e[v>>4&63]+e[v<<2&63]+"=")),P.join("")}return _r}function Cp(){if(ao)return li;ao=!0;return li.read=function(e,t,i,n,s){var o,u,p=s*8-n-1,m=(1<<p)-1,D=m>>1,y=-7,F=i?s-1:0,E=i?-1:1,x=e[t+F];for(F+=E,o=x&(1<<-y)-1,x>>=-y,y+=p;y>0;o=o*256+e[t+F],F+=E,y-=8);for(u=o&(1<<-y)-1,o>>=-y,y+=n;y>0;u=u*256+e[t+F],F+=E,y-=8);if(o===0)o=1-D;else{if(o===m)return u?NaN:(x?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-D}return(x?-1:1)*u*Math.pow(2,o-n)},li.write=function(e,t,i,n,s,o){var u,p,m,D=o*8-s-1,y=(1<<D)-1,F=y>>1,E=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:o-1,v=n?1:-1,k=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(p=isNaN(t)?1:0,u=y):(u=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-u))<1&&(u--,m*=2),u+F>=1?t+=E/m:t+=E*Math.pow(2,1-F),t*m>=2&&(u++,m/=2),u+F>=y?(p=0,u=y):u+F>=1?(p=(t*m-1)*Math.pow(2,s),u=u+F):(p=t*Math.pow(2,F-1)*Math.pow(2,s),u=0));s>=8;e[i+x]=p&255,x+=v,p/=256,s-=8);for(u=u<<s|p,D+=s;D>0;e[i+x]=u&255,x+=v,u/=256,D-=8);e[i+x-v]|=k*128},li}function Ap(){if(oo)return Mt;oo=!0;let e=kp(),t=Cp(),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Mt.Buffer=u,Mt.SlowBuffer=P,Mt.INSPECT_MAX_BYTES=50;let n=2147483647;Mt.kMaxLength=n,u.TYPED_ARRAY_SUPPORT=s(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{let d=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(d,l),d.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function o(d){if(d>n)throw new RangeError('The value "'+d+'" is invalid for option "size"');let l=new Uint8Array(d);return Object.setPrototypeOf(l,u.prototype),l}function u(d,l,c){if(typeof d=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(d)}return p(d,l,c)}u.poolSize=8192;function p(d,l,c){if(typeof d=="string")return F(d,l);if(ArrayBuffer.isView(d))return x(d);if(d==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof d);if(Xe(d,ArrayBuffer)||d&&Xe(d.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Xe(d,SharedArrayBuffer)||d&&Xe(d.buffer,SharedArrayBuffer)))return v(d,l,c);if(typeof d=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let b=d.valueOf&&d.valueOf();if(b!=null&&b!==d)return u.from(b,l,c);let C=k(d);if(C)return C;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof d[Symbol.toPrimitive]=="function")return u.from(d[Symbol.toPrimitive]("string"),l,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof d)}u.from=function(d,l,c){return p(d,l,c)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function m(d){if(typeof d!="number")throw new TypeError('"size" argument must be of type number');if(d<0)throw new RangeError('The value "'+d+'" is invalid for option "size"')}function D(d,l,c){return m(d),d<=0?o(d):l!==void 0?typeof c=="string"?o(d).fill(l,c):o(d).fill(l):o(d)}u.alloc=function(d,l,c){return D(d,l,c)};function y(d){return m(d),o(d<0?0:I(d)|0)}u.allocUnsafe=function(d){return y(d)},u.allocUnsafeSlow=function(d){return y(d)};function F(d,l){if((typeof l!="string"||l==="")&&(l="utf8"),!u.isEncoding(l))throw new TypeError("Unknown encoding: "+l);let c=L(d,l)|0,b=o(c),C=b.write(d,l);return C!==c&&(b=b.slice(0,C)),b}function E(d){let l=d.length<0?0:I(d.length)|0,c=o(l);for(let b=0;b<l;b+=1)c[b]=d[b]&255;return c}function x(d){if(Xe(d,Uint8Array)){let l=new Uint8Array(d);return v(l.buffer,l.byteOffset,l.byteLength)}return E(d)}function v(d,l,c){if(l<0||d.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(d.byteLength<l+(c||0))throw new RangeError('"length" is outside of buffer bounds');let b;return l===void 0&&c===void 0?b=new Uint8Array(d):c===void 0?b=new Uint8Array(d,l):b=new Uint8Array(d,l,c),Object.setPrototypeOf(b,u.prototype),b}function k(d){if(u.isBuffer(d)){let l=I(d.length)|0,c=o(l);return c.length===0||d.copy(c,0,0,l),c}if(d.length!==void 0)return typeof d.length!="number"||Bt(d.length)?o(0):E(d);if(d.type==="Buffer"&&Array.isArray(d.data))return E(d.data)}function I(d){if(d>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return d|0}function P(d){return+d!=d&&(d=0),u.alloc(+d)}u.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==u.prototype},u.compare=function(l,c){if(Xe(l,Uint8Array)&&(l=u.from(l,l.offset,l.byteLength)),Xe(c,Uint8Array)&&(c=u.from(c,c.offset,c.byteLength)),!u.isBuffer(l)||!u.isBuffer(c))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===c)return 0;let b=l.length,C=c.length;for(let A=0,R=Math.min(b,C);A<R;++A)if(l[A]!==c[A]){b=l[A],C=c[A];break}return b<C?-1:C<b?1:0},u.isEncoding=function(l){switch(String(l).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(l,c){if(!Array.isArray(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return u.alloc(0);let b;if(c===void 0)for(c=0,b=0;b<l.length;++b)c+=l[b].length;let C=u.allocUnsafe(c),A=0;for(b=0;b<l.length;++b){let R=l[b];if(Xe(R,Uint8Array))A+R.length>C.length?(u.isBuffer(R)||(R=u.from(R)),R.copy(C,A)):Uint8Array.prototype.set.call(C,R,A);else if(u.isBuffer(R))R.copy(C,A);else throw new TypeError('"list" argument must be an Array of Buffers');A+=R.length}return C};function L(d,l){if(u.isBuffer(d))return d.length;if(ArrayBuffer.isView(d)||Xe(d,ArrayBuffer))return d.byteLength;if(typeof d!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof d);let c=d.length,b=arguments.length>2&&arguments[2]===!0;if(!b&&c===0)return 0;let C=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return or(d).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return lt(d).length;default:if(C)return b?-1:or(d).length;l=(""+l).toLowerCase(),C=!0}}u.byteLength=L;function O(d,l,c){let b=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,l>>>=0,c<=l))return"";for(d||(d="utf8");;)switch(d){case"hex":return S(this,l,c);case"utf8":case"utf-8":return se(this,l,c);case"ascii":return Q(this,l,c);case"latin1":case"binary":return B(this,l,c);case"base64":return re(this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,l,c);default:if(b)throw new TypeError("Unknown encoding: "+d);d=(d+"").toLowerCase(),b=!0}}u.prototype._isBuffer=!0;function f(d,l,c){let b=d[l];d[l]=d[c],d[c]=b}u.prototype.swap16=function(){let l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let c=0;c<l;c+=2)f(this,c,c+1);return this},u.prototype.swap32=function(){let l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let c=0;c<l;c+=4)f(this,c,c+3),f(this,c+1,c+2);return this},u.prototype.swap64=function(){let l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let c=0;c<l;c+=8)f(this,c,c+7),f(this,c+1,c+6),f(this,c+2,c+5),f(this,c+3,c+4);return this},u.prototype.toString=function(){let l=this.length;return l===0?"":arguments.length===0?se(this,0,l):O.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(l){if(!u.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:u.compare(this,l)===0},u.prototype.inspect=function(){let l="",c=Mt.INSPECT_MAX_BYTES;return l=this.toString("hex",0,c).replace(/(.{2})/g,"$1 ").trim(),this.length>c&&(l+=" ... "),"<Buffer "+l+">"},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(l,c,b,C,A){if(Xe(l,Uint8Array)&&(l=u.from(l,l.offset,l.byteLength)),!u.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(c===void 0&&(c=0),b===void 0&&(b=l?l.length:0),C===void 0&&(C=0),A===void 0&&(A=this.length),c<0||b>l.length||C<0||A>this.length)throw new RangeError("out of range index");if(C>=A&&c>=b)return 0;if(C>=A)return-1;if(c>=b)return 1;if(c>>>=0,b>>>=0,C>>>=0,A>>>=0,this===l)return 0;let R=A-C,ue=b-c,me=Math.min(R,ue),be=this.slice(C,A),ve=l.slice(c,b);for(let ge=0;ge<me;++ge)if(be[ge]!==ve[ge]){R=be[ge],ue=ve[ge];break}return R<ue?-1:ue<R?1:0};function V(d,l,c,b,C){if(d.length===0)return-1;if(typeof c=="string"?(b=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,Bt(c)&&(c=C?0:d.length-1),c<0&&(c=d.length+c),c>=d.length){if(C)return-1;c=d.length-1}else if(c<0)if(C)c=0;else return-1;if(typeof l=="string"&&(l=u.from(l,b)),u.isBuffer(l))return l.length===0?-1:te(d,l,c,b,C);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?C?Uint8Array.prototype.indexOf.call(d,l,c):Uint8Array.prototype.lastIndexOf.call(d,l,c):te(d,[l],c,b,C);throw new TypeError("val must be string, number or Buffer")}function te(d,l,c,b,C){let A=1,R=d.length,ue=l.length;if(b!==void 0&&(b=String(b).toLowerCase(),b==="ucs2"||b==="ucs-2"||b==="utf16le"||b==="utf-16le")){if(d.length<2||l.length<2)return-1;A=2,R/=2,ue/=2,c/=2}function me(ve,ge){return A===1?ve[ge]:ve.readUInt16BE(ge*A)}let be;if(C){let ve=-1;for(be=c;be<R;be++)if(me(d,be)===me(l,ve===-1?0:be-ve)){if(ve===-1&&(ve=be),be-ve+1===ue)return ve*A}else ve!==-1&&(be-=be-ve),ve=-1}else for(c+ue>R&&(c=R-ue),be=c;be>=0;be--){let ve=!0;for(let ge=0;ge<ue;ge++)if(me(d,be+ge)!==me(l,ge)){ve=!1;break}if(ve)return be}return-1}u.prototype.includes=function(l,c,b){return this.indexOf(l,c,b)!==-1},u.prototype.indexOf=function(l,c,b){return V(this,l,c,b,!0)},u.prototype.lastIndexOf=function(l,c,b){return V(this,l,c,b,!1)};function $(d,l,c,b){c=Number(c)||0;let C=d.length-c;b?(b=Number(b),b>C&&(b=C)):b=C;let A=l.length;b>A/2&&(b=A/2);let R;for(R=0;R<b;++R){let ue=parseInt(l.substr(R*2,2),16);if(Bt(ue))return R;d[c+R]=ue}return R}function M(d,l,c,b){return Pe(or(l,d.length-c),d,c,b)}function G(d,l,c,b){return Pe(Zr(l),d,c,b)}function ne(d,l,c,b){return Pe(lt(l),d,c,b)}function Z(d,l,c,b){return Pe(Fe(l,d.length-c),d,c,b)}u.prototype.write=function(l,c,b,C){if(c===void 0)C="utf8",b=this.length,c=0;else if(b===void 0&&typeof c=="string")C=c,b=this.length,c=0;else if(isFinite(c))c=c>>>0,isFinite(b)?(b=b>>>0,C===void 0&&(C="utf8")):(C=b,b=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let A=this.length-c;if((b===void 0||b>A)&&(b=A),l.length>0&&(b<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");C||(C="utf8");let R=!1;for(;;)switch(C){case"hex":return $(this,l,c,b);case"utf8":case"utf-8":return M(this,l,c,b);case"ascii":case"latin1":case"binary":return G(this,l,c,b);case"base64":return ne(this,l,c,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,l,c,b);default:if(R)throw new TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),R=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function re(d,l,c){return l===0&&c===d.length?e.fromByteArray(d):e.fromByteArray(d.slice(l,c))}function se(d,l,c){c=Math.min(d.length,c);let b=[],C=l;for(;C<c;){let A=d[C],R=null,ue=A>239?4:A>223?3:A>191?2:1;if(C+ue<=c){let me,be,ve,ge;switch(ue){case 1:A<128&&(R=A);break;case 2:me=d[C+1],(me&192)===128&&(ge=(A&31)<<6|me&63,ge>127&&(R=ge));break;case 3:me=d[C+1],be=d[C+2],(me&192)===128&&(be&192)===128&&(ge=(A&15)<<12|(me&63)<<6|be&63,ge>2047&&(ge<55296||ge>57343)&&(R=ge));break;case 4:me=d[C+1],be=d[C+2],ve=d[C+3],(me&192)===128&&(be&192)===128&&(ve&192)===128&&(ge=(A&15)<<18|(me&63)<<12|(be&63)<<6|ve&63,ge>65535&&ge<1114112&&(R=ge))}}R===null?(R=65533,ue=1):R>65535&&(R-=65536,b.push(R>>>10&1023|55296),R=56320|R&1023),b.push(R),C+=ue}return fe(b)}let ie=4096;function fe(d){let l=d.length;if(l<=ie)return String.fromCharCode.apply(String,d);let c="",b=0;for(;b<l;)c+=String.fromCharCode.apply(String,d.slice(b,b+=ie));return c}function Q(d,l,c){let b="";c=Math.min(d.length,c);for(let C=l;C<c;++C)b+=String.fromCharCode(d[C]&127);return b}function B(d,l,c){let b="";c=Math.min(d.length,c);for(let C=l;C<c;++C)b+=String.fromCharCode(d[C]);return b}function S(d,l,c){let b=d.length;(!l||l<0)&&(l=0),(!c||c<0||c>b)&&(c=b);let C="";for(let A=l;A<c;++A)C+=oe[d[A]];return C}function j(d,l,c){let b=d.slice(l,c),C="";for(let A=0;A<b.length-1;A+=2)C+=String.fromCharCode(b[A]+b[A+1]*256);return C}u.prototype.slice=function(l,c){let b=this.length;l=~~l,c=c===void 0?b:~~c,l<0?(l+=b,l<0&&(l=0)):l>b&&(l=b),c<0?(c+=b,c<0&&(c=0)):c>b&&(c=b),c<l&&(c=l);let C=this.subarray(l,c);return Object.setPrototypeOf(C,u.prototype),C};function U(d,l,c){if(d%1!==0||d<0)throw new RangeError("offset is not uint");if(d+l>c)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(l,c,b){l=l>>>0,c=c>>>0,b||U(l,c,this.length);let C=this[l],A=1,R=0;for(;++R<c&&(A*=256);)C+=this[l+R]*A;return C},u.prototype.readUintBE=u.prototype.readUIntBE=function(l,c,b){l=l>>>0,c=c>>>0,b||U(l,c,this.length);let C=this[l+--c],A=1;for(;c>0&&(A*=256);)C+=this[l+--c]*A;return C},u.prototype.readUint8=u.prototype.readUInt8=function(l,c){return l=l>>>0,c||U(l,1,this.length),this[l]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(l,c){return l=l>>>0,c||U(l,2,this.length),this[l]|this[l+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(l,c){return l=l>>>0,c||U(l,2,this.length),this[l]<<8|this[l+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(l,c){return l=l>>>0,c||U(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(l,c){return l=l>>>0,c||U(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},u.prototype.readBigUInt64LE=Ze(function(l){l=l>>>0,Re(l,"offset");let c=this[l],b=this[l+7];(c===void 0||b===void 0)&&Be(l,this.length-8);let C=c+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,A=this[++l]+this[++l]*2**8+this[++l]*2**16+b*2**24;return BigInt(C)+(BigInt(A)<<BigInt(32))}),u.prototype.readBigUInt64BE=Ze(function(l){l=l>>>0,Re(l,"offset");let c=this[l],b=this[l+7];(c===void 0||b===void 0)&&Be(l,this.length-8);let C=c*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],A=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+b;return(BigInt(C)<<BigInt(32))+BigInt(A)}),u.prototype.readIntLE=function(l,c,b){l=l>>>0,c=c>>>0,b||U(l,c,this.length);let C=this[l],A=1,R=0;for(;++R<c&&(A*=256);)C+=this[l+R]*A;return A*=128,C>=A&&(C-=Math.pow(2,8*c)),C},u.prototype.readIntBE=function(l,c,b){l=l>>>0,c=c>>>0,b||U(l,c,this.length);let C=c,A=1,R=this[l+--C];for(;C>0&&(A*=256);)R+=this[l+--C]*A;return A*=128,R>=A&&(R-=Math.pow(2,8*c)),R},u.prototype.readInt8=function(l,c){return l=l>>>0,c||U(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},u.prototype.readInt16LE=function(l,c){l=l>>>0,c||U(l,2,this.length);let b=this[l]|this[l+1]<<8;return b&32768?b|4294901760:b},u.prototype.readInt16BE=function(l,c){l=l>>>0,c||U(l,2,this.length);let b=this[l+1]|this[l]<<8;return b&32768?b|4294901760:b},u.prototype.readInt32LE=function(l,c){return l=l>>>0,c||U(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},u.prototype.readInt32BE=function(l,c){return l=l>>>0,c||U(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},u.prototype.readBigInt64LE=Ze(function(l){l=l>>>0,Re(l,"offset");let c=this[l],b=this[l+7];(c===void 0||b===void 0)&&Be(l,this.length-8);let C=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(b<<24);return(BigInt(C)<<BigInt(32))+BigInt(c+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24)}),u.prototype.readBigInt64BE=Ze(function(l){l=l>>>0,Re(l,"offset");let c=this[l],b=this[l+7];(c===void 0||b===void 0)&&Be(l,this.length-8);let C=(c<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(C)<<BigInt(32))+BigInt(this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+b)}),u.prototype.readFloatLE=function(l,c){return l=l>>>0,c||U(l,4,this.length),t.read(this,l,!0,23,4)},u.prototype.readFloatBE=function(l,c){return l=l>>>0,c||U(l,4,this.length),t.read(this,l,!1,23,4)},u.prototype.readDoubleLE=function(l,c){return l=l>>>0,c||U(l,8,this.length),t.read(this,l,!0,52,8)},u.prototype.readDoubleBE=function(l,c){return l=l>>>0,c||U(l,8,this.length),t.read(this,l,!1,52,8)};function q(d,l,c,b,C,A){if(!u.isBuffer(d))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>C||l<A)throw new RangeError('"value" argument is out of bounds');if(c+b>d.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(l,c,b,C){if(l=+l,c=c>>>0,b=b>>>0,!C){let ue=Math.pow(2,8*b)-1;q(this,l,c,b,ue,0)}let A=1,R=0;for(this[c]=l&255;++R<b&&(A*=256);)this[c+R]=l/A&255;return c+b},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(l,c,b,C){if(l=+l,c=c>>>0,b=b>>>0,!C){let ue=Math.pow(2,8*b)-1;q(this,l,c,b,ue,0)}let A=b-1,R=1;for(this[c+A]=l&255;--A>=0&&(R*=256);)this[c+A]=l/R&255;return c+b},u.prototype.writeUint8=u.prototype.writeUInt8=function(l,c,b){return l=+l,c=c>>>0,b||q(this,l,c,1,255,0),this[c]=l&255,c+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(l,c,b){return l=+l,c=c>>>0,b||q(this,l,c,2,65535,0),this[c]=l&255,this[c+1]=l>>>8,c+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(l,c,b){return l=+l,c=c>>>0,b||q(this,l,c,2,65535,0),this[c]=l>>>8,this[c+1]=l&255,c+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(l,c,b){return l=+l,c=c>>>0,b||q(this,l,c,4,4294967295,0),this[c+3]=l>>>24,this[c+2]=l>>>16,this[c+1]=l>>>8,this[c]=l&255,c+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(l,c,b){return l=+l,c=c>>>0,b||q(this,l,c,4,4294967295,0),this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255,c+4};function z(d,l,c,b,C){ut(l,b,C,d,c,7);let A=Number(l&BigInt(4294967295));d[c++]=A,A=A>>8,d[c++]=A,A=A>>8,d[c++]=A,A=A>>8,d[c++]=A;let R=Number(l>>BigInt(32)&BigInt(4294967295));return d[c++]=R,R=R>>8,d[c++]=R,R=R>>8,d[c++]=R,R=R>>8,d[c++]=R,c}function de(d,l,c,b,C){ut(l,b,C,d,c,7);let A=Number(l&BigInt(4294967295));d[c+7]=A,A=A>>8,d[c+6]=A,A=A>>8,d[c+5]=A,A=A>>8,d[c+4]=A;let R=Number(l>>BigInt(32)&BigInt(4294967295));return d[c+3]=R,R=R>>8,d[c+2]=R,R=R>>8,d[c+1]=R,R=R>>8,d[c]=R,c+8}u.prototype.writeBigUInt64LE=Ze(function(l,c=0){return z(this,l,c,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=Ze(function(l,c=0){return de(this,l,c,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(l,c,b,C){if(l=+l,c=c>>>0,!C){let me=Math.pow(2,8*b-1);q(this,l,c,b,me-1,-me)}let A=0,R=1,ue=0;for(this[c]=l&255;++A<b&&(R*=256);)l<0&&ue===0&&this[c+A-1]!==0&&(ue=1),this[c+A]=(l/R>>0)-ue&255;return c+b},u.prototype.writeIntBE=function(l,c,b,C){if(l=+l,c=c>>>0,!C){let me=Math.pow(2,8*b-1);q(this,l,c,b,me-1,-me)}let A=b-1,R=1,ue=0;for(this[c+A]=l&255;--A>=0&&(R*=256);)l<0&&ue===0&&this[c+A+1]!==0&&(ue=1),this[c+A]=(l/R>>0)-ue&255;return c+b},u.prototype.writeInt8=function(l,c,b){return l=+l,c=c>>>0,b||q(this,l,c,1,127,-128),l<0&&(l=255+l+1),this[c]=l&255,c+1},u.prototype.writeInt16LE=function(l,c,b){return l=+l,c=c>>>0,b||q(this,l,c,2,32767,-32768),this[c]=l&255,this[c+1]=l>>>8,c+2},u.prototype.writeInt16BE=function(l,c,b){return l=+l,c=c>>>0,b||q(this,l,c,2,32767,-32768),this[c]=l>>>8,this[c+1]=l&255,c+2},u.prototype.writeInt32LE=function(l,c,b){return l=+l,c=c>>>0,b||q(this,l,c,4,2147483647,-2147483648),this[c]=l&255,this[c+1]=l>>>8,this[c+2]=l>>>16,this[c+3]=l>>>24,c+4},u.prototype.writeInt32BE=function(l,c,b){return l=+l,c=c>>>0,b||q(this,l,c,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255,c+4},u.prototype.writeBigInt64LE=Ze(function(l,c=0){return z(this,l,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=Ze(function(l,c=0){return de(this,l,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ce(d,l,c,b,C,A){if(c+b>d.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function ye(d,l,c,b,C){return l=+l,c=c>>>0,C||Ce(d,l,c,4),t.write(d,l,c,b,23,4),c+4}u.prototype.writeFloatLE=function(l,c,b){return ye(this,l,c,!0,b)},u.prototype.writeFloatBE=function(l,c,b){return ye(this,l,c,!1,b)};function st(d,l,c,b,C){return l=+l,c=c>>>0,C||Ce(d,l,c,8),t.write(d,l,c,b,52,8),c+8}u.prototype.writeDoubleLE=function(l,c,b){return st(this,l,c,!0,b)},u.prototype.writeDoubleBE=function(l,c,b){return st(this,l,c,!1,b)},u.prototype.copy=function(l,c,b,C){if(!u.isBuffer(l))throw new TypeError("argument should be a Buffer");if(b||(b=0),!C&&C!==0&&(C=this.length),c>=l.length&&(c=l.length),c||(c=0),C>0&&C<b&&(C=b),C===b||l.length===0||this.length===0)return 0;if(c<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=this.length)throw new RangeError("Index out of range");if(C<0)throw new RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),l.length-c<C-b&&(C=l.length-c+b);let A=C-b;return this===l&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(c,b,C):Uint8Array.prototype.set.call(l,this.subarray(b,C),c),A},u.prototype.fill=function(l,c,b,C){if(typeof l=="string"){if(typeof c=="string"?(C=c,c=0,b=this.length):typeof b=="string"&&(C=b,b=this.length),C!==void 0&&typeof C!="string")throw new TypeError("encoding must be a string");if(typeof C=="string"&&!u.isEncoding(C))throw new TypeError("Unknown encoding: "+C);if(l.length===1){let R=l.charCodeAt(0);(C==="utf8"&&R<128||C==="latin1")&&(l=R)}}else typeof l=="number"?l=l&255:typeof l=="boolean"&&(l=Number(l));if(c<0||this.length<c||this.length<b)throw new RangeError("Out of range index");if(b<=c)return this;c=c>>>0,b=b===void 0?this.length:b>>>0,l||(l=0);let A;if(typeof l=="number")for(A=c;A<b;++A)this[A]=l;else{let R=u.isBuffer(l)?l:u.from(l,C),ue=R.length;if(ue===0)throw new TypeError('The value "'+l+'" is invalid for argument "value"');for(A=0;A<b-c;++A)this[A+c]=R[A%ue]}return this};let $e={};function Le(d,l,c){$e[d]=class extends c{constructor(){super(),Object.defineProperty(this,"message",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${d}]`,this.stack,delete this.name}get code(){return d}set code(C){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:C,writable:!0})}toString(){return`${this.name} [${d}]: ${this.message}`}}}Le("ERR_BUFFER_OUT_OF_BOUNDS",function(d){return d?`${d} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Le("ERR_INVALID_ARG_TYPE",function(d,l){return`The "${d}" argument must be of type number. Received type ${typeof l}`},TypeError),Le("ERR_OUT_OF_RANGE",function(d,l,c){let b=`The value of "${d}" is out of range.`,C=c;return Number.isInteger(c)&&Math.abs(c)>2**32?C=at(String(c)):typeof c=="bigint"&&(C=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(C=at(C)),C+="n"),b+=` It must be ${l}. Received ${C}`,b},RangeError);function at(d){let l="",c=d.length,b=d[0]==="-"?1:0;for(;c>=b+4;c-=3)l=`_${d.slice(c-3,c)}${l}`;return`${d.slice(0,c)}${l}`}function Ye(d,l,c){Re(l,"offset"),(d[l]===void 0||d[l+c]===void 0)&&Be(l,d.length-(c+1))}function ut(d,l,c,b,C,A){if(d>c||d<l){let R=typeof l=="bigint"?"n":"",ue;throw A>3?l===0||l===BigInt(0)?ue=`>= 0${R} and < 2${R} ** ${(A+1)*8}${R}`:ue=`>= -(2${R} ** ${(A+1)*8-1}${R}) and < 2 ** ${(A+1)*8-1}${R}`:ue=`>= ${l}${R} and <= ${c}${R}`,new $e.ERR_OUT_OF_RANGE("value",ue,d)}Ye(b,C,A)}function Re(d,l){if(typeof d!="number")throw new $e.ERR_INVALID_ARG_TYPE(l,"number",d)}function Be(d,l,c){throw Math.floor(d)!==d?(Re(d,c),new $e.ERR_OUT_OF_RANGE(c||"offset","an integer",d)):l<0?new $e.ERR_BUFFER_OUT_OF_BOUNDS:new $e.ERR_OUT_OF_RANGE(c||"offset",`>= ${c?1:0} and <= ${l}`,d)}let He=/[^+/0-9A-Za-z-_]/g;function Xr(d){if(d=d.split("=")[0],d=d.trim().replace(He,""),d.length<2)return"";for(;d.length%4!==0;)d=d+"=";return d}function or(d,l){l=l||1/0;let c,b=d.length,C=null,A=[];for(let R=0;R<b;++R){if(c=d.charCodeAt(R),c>55295&&c<57344){if(!C){if(c>56319){(l-=3)>-1&&A.push(239,191,189);continue}else if(R+1===b){(l-=3)>-1&&A.push(239,191,189);continue}C=c;continue}if(c<56320){(l-=3)>-1&&A.push(239,191,189),C=c;continue}c=(C-55296<<10|c-56320)+65536}else C&&(l-=3)>-1&&A.push(239,191,189);if(C=null,c<128){if((l-=1)<0)break;A.push(c)}else if(c<2048){if((l-=2)<0)break;A.push(c>>6|192,c&63|128)}else if(c<65536){if((l-=3)<0)break;A.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((l-=4)<0)break;A.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return A}function Zr(d){let l=[];for(let c=0;c<d.length;++c)l.push(d.charCodeAt(c)&255);return l}function Fe(d,l){let c,b,C,A=[];for(let R=0;R<d.length&&!((l-=2)<0);++R)c=d.charCodeAt(R),b=c>>8,C=c%256,A.push(C),A.push(b);return A}function lt(d){return e.toByteArray(Xr(d))}function Pe(d,l,c,b){let C;for(C=0;C<b&&!(C+c>=l.length||C>=d.length);++C)l[C+c]=d[C];return C}function Xe(d,l){return d instanceof l||d!=null&&d.constructor!=null&&d.constructor.name!=null&&d.constructor.name===l.name}function Bt(d){return d!==d}let oe=function(){let d="0123456789abcdef",l=new Array(256);for(let c=0;c<16;++c){let b=c*16;for(let C=0;C<16;++C)l[b+C]=d[c]+d[C]}return l}();function Ze(d){return typeof BigInt>"u"?Zi:d}function Zi(){throw new Error("BigInt not supported")}return Mt}var _r,so,li,ao,Mt,oo,Vt,xe,Ay,Sy,uo=Tt(()=>{J();X();Y();_r={},so=!1;li={},ao=!1;Mt={},oo=!1;Vt=Ap();Vt.Buffer;Vt.SlowBuffer;Vt.INSPECT_MAX_BYTES;Vt.kMaxLength;xe=Vt.Buffer,Ay=Vt.INSPECT_MAX_BYTES,Sy=Vt.kMaxLength});var X=Tt(()=>{uo()});function on(){throw new Error("setTimeout has not been defined")}function un(){throw new Error("clearTimeout has not been defined")}function po(e){if(bt===setTimeout)return setTimeout(e,0);if((bt===on||!bt)&&setTimeout)return bt=setTimeout,setTimeout(e,0);try{return bt(e,0)}catch{try{return bt.call(null,e,0)}catch{return bt.call(this||fr,e,0)}}}function Sp(){hr&&qt&&(hr=!1,qt.length?xt=qt.concat(xt):ci=-1,xt.length&&ho())}function ho(){if(!hr){var e=po(Sp);hr=!0;for(var t=xt.length;t;){for(qt=xt,xt=[];++ci<t;)qt&&qt[ci].run();ci=-1,t=xt.length}qt=null,hr=!1,function(i){if(Et===clearTimeout)return clearTimeout(i);if((Et===un||!Et)&&clearTimeout)return Et=clearTimeout,clearTimeout(i);try{Et(i)}catch{try{return Et.call(null,i)}catch{return Et.call(this||fr,i)}}}(e)}}function lo(e,t){(this||fr).fun=e,(this||fr).array=t}function vt(){}var co,bt,Et,fr,Ie,qt,xt,hr,ci,we,Ir=Tt(()=>{J();X();Y();fr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,Ie=co={};(function(){try{bt=typeof setTimeout=="function"?setTimeout:on}catch{bt=on}try{Et=typeof clearTimeout=="function"?clearTimeout:un}catch{Et=un}})();xt=[],hr=!1,ci=-1;Ie.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];xt.push(new lo(e,t)),xt.length!==1||hr||po(ho)},lo.prototype.run=function(){(this||fr).fun.apply(null,(this||fr).array)},Ie.title="browser",Ie.browser=!0,Ie.env={},Ie.argv=[],Ie.version="",Ie.versions={},Ie.on=vt,Ie.addListener=vt,Ie.once=vt,Ie.off=vt,Ie.removeListener=vt,Ie.removeAllListeners=vt,Ie.emit=vt,Ie.prependListener=vt,Ie.prependOnceListener=vt,Ie.listeners=function(e){return[]},Ie.binding=function(e){throw new Error("process.binding is not supported")},Ie.cwd=function(){return"/"},Ie.chdir=function(e){throw new Error("process.chdir is not supported")},Ie.umask=function(){return 0};we=co;we.addListener;we.argv;we.binding;we.browser;we.chdir;we.cwd;we.emit;we.env;we.listeners;we.nextTick;we.off;we.on;we.once;we.prependListener;we.prependOnceListener;we.removeAllListeners;we.removeListener;we.title;we.umask;we.version;we.versions});function zt(e){return e.call.bind(e)}function Or(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch{return!1}}function go(e){return We&&Qe?tt(e)!==void 0:Io(e)||Po(e)||Bo(e)||To(e)||Oo(e)||No(e)||Lo(e)||Ro(e)||jo(e)||Uo(e)||$o(e)}function Io(e){return We&&Qe?tt(e)==="Uint8Array":Ae(e)==="[object Uint8Array]"||jp(e)&&e.buffer!==void 0}function Po(e){return We&&Qe?tt(e)==="Uint8ClampedArray":Ae(e)==="[object Uint8ClampedArray]"}function Bo(e){return We&&Qe?tt(e)==="Uint16Array":Ae(e)==="[object Uint16Array]"}function To(e){return We&&Qe?tt(e)==="Uint32Array":Ae(e)==="[object Uint32Array]"}function Oo(e){return We&&Qe?tt(e)==="Int8Array":Ae(e)==="[object Int8Array]"}function No(e){return We&&Qe?tt(e)==="Int16Array":Ae(e)==="[object Int16Array]"}function Lo(e){return We&&Qe?tt(e)==="Int32Array":Ae(e)==="[object Int32Array]"}function Ro(e){return We&&Qe?tt(e)==="Float32Array":Ae(e)==="[object Float32Array]"}function jo(e){return We&&Qe?tt(e)==="Float64Array":Ae(e)==="[object Float64Array]"}function Uo(e){return We&&Qe?tt(e)==="BigInt64Array":Ae(e)==="[object BigInt64Array]"}function $o(e){return We&&Qe?tt(e)==="BigUint64Array":Ae(e)==="[object BigUint64Array]"}function pi(e){return Ae(e)==="[object Map]"}function hi(e){return Ae(e)==="[object Set]"}function fi(e){return Ae(e)==="[object WeakMap]"}function ln(e){return Ae(e)==="[object WeakSet]"}function yi(e){return Ae(e)==="[object ArrayBuffer]"}function mo(e){return typeof ArrayBuffer<"u"&&(yi.working?yi(e):e instanceof ArrayBuffer)}function Di(e){return Ae(e)==="[object DataView]"}function yo(e){return typeof DataView<"u"&&(Di.working?Di(e):e instanceof DataView)}function vi(e){return Ae(e)==="[object SharedArrayBuffer]"}function Do(e){return typeof SharedArrayBuffer<"u"&&(vi.working?vi(e):e instanceof SharedArrayBuffer)}function vo(e){return Or(e,qp)}function bo(e){return Or(e,Wp)}function Eo(e){return Or(e,Gp)}function xo(e){return _o&&Or(e,zp)}function wo(e){return dn&&Or(e,Hp)}function Nt(e,t){var i={seen:[],stylize:Jp};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),gn(t)?i.showHidden=t:t&&N._extend(i,t),Gt(i.showHidden)&&(i.showHidden=!1),Gt(i.depth)&&(i.depth=2),Gt(i.colors)&&(i.colors=!1),Gt(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=Kp),bi(i,e,i.depth)}function Kp(e,t){var i=Nt.styles[t];return i?"\x1B["+Nt.colors[i][0]+"m"+e+"\x1B["+Nt.colors[i][1]+"m":e}function Jp(e,t){return e}function bi(e,t,i){if(e.customInspect&&t&&mi(t.inspect)&&t.inspect!==N.inspect&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(i,e);return Ei(n)||(n=bi(e,n,i)),n}var s=function(E,x){if(Gt(x))return E.stylize("undefined","undefined");if(Ei(x)){var v="'"+JSON.stringify(x).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return E.stylize(v,"string")}if(qo(x))return E.stylize(""+x,"number");if(gn(x))return E.stylize(""+x,"boolean");if(Fi(x))return E.stylize("null","null")}(e,t);if(s)return s;var o=Object.keys(t),u=function(E){var x={};return E.forEach(function(v,k){x[v]=!0}),x}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Tr(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return cn(t);if(o.length===0){if(mi(t)){var p=t.name?": "+t.name:"";return e.stylize("[Function"+p+"]","special")}if(Br(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(xi(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Tr(t))return cn(t)}var m,D="",y=!1,F=["{","}"];return Vo(t)&&(y=!0,F=["[","]"]),mi(t)&&(D=" [Function"+(t.name?": "+t.name:"")+"]"),Br(t)&&(D=" "+RegExp.prototype.toString.call(t)),xi(t)&&(D=" "+Date.prototype.toUTCString.call(t)),Tr(t)&&(D=" "+cn(t)),o.length!==0||y&&t.length!=0?i<0?Br(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),m=y?function(E,x,v,k,I){for(var P=[],L=0,O=x.length;L<O;++L)Wo(x,String(L))?P.push(pn(E,x,v,k,String(L),!0)):P.push("");return I.forEach(function(f){f.match(/^\d+$/)||P.push(pn(E,x,v,k,f,!0))}),P}(e,t,i,u,o):o.map(function(E){return pn(e,t,i,u,E,y)}),e.seen.pop(),function(E,x,v){var k=0;return E.reduce(function(I,P){return k++,P.indexOf(`
|
|
1
|
+
var pluginPug=(()=>{var Dp=Object.create;var si=Object.defineProperty;var vp=Object.getOwnPropertyDescriptor;var bp=Object.getOwnPropertyNames;var Ep=Object.getPrototypeOf,xp=Object.prototype.hasOwnProperty;var Tt=(e,t)=>()=>(e&&(t=e(e=0)),t);var je=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),rn=(e,t)=>{for(var i in t)si(e,i,{get:t[i],enumerable:!0})},$s=(e,t,i,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of bp(t))!xp.call(e,s)&&s!==i&&si(e,s,{get:()=>t[s],enumerable:!(n=vp(t,s))||n.enumerable});return e};var wp=(e,t,i)=>(i=e!=null?Dp(Ep(e)):{},$s(t||!e||!e.__esModule?si(i,"default",{value:e,enumerable:!0}):i,e)),Ms=e=>$s(si({},"__esModule",{value:!0}),e);var J=Tt(()=>{});var De={};rn(De,{_debugEnd:()=>_a,_debugProcess:()=>Sa,_events:()=>Ga,_eventsCount:()=>za,_exiting:()=>la,_fatalExceptions:()=>Fa,_getActiveHandles:()=>fa,_getActiveRequests:()=>ha,_kill:()=>ga,_linkedBinding:()=>oa,_maxListeners:()=>Wa,_preload_modules:()=>Ma,_rawDebug:()=>sa,_startProfilerIdleNotifier:()=>Ia,_stopProfilerIdleNotifier:()=>Pa,_tickCallback:()=>Aa,abort:()=>Na,addListener:()=>Ha,allowedNodeEnvironmentFlags:()=>Ea,arch:()=>zs,argv:()=>Ks,argv0:()=>$a,assert:()=>xa,binding:()=>ea,chdir:()=>ia,config:()=>ca,cpuUsage:()=>ui,cwd:()=>ra,debugPort:()=>Ua,default:()=>ro,dlopen:()=>pa,domain:()=>ua,emit:()=>Xa,emitWarning:()=>Zs,env:()=>Qs,execArgv:()=>Js,execPath:()=>ja,exit:()=>va,features:()=>wa,hasUncaughtExceptionCaptureCallback:()=>Ca,hrtime:()=>oi,kill:()=>Da,listeners:()=>to,memoryUsage:()=>ya,moduleLoadList:()=>aa,nextTick:()=>qs,off:()=>Ka,on:()=>Dt,once:()=>Qa,openStdin:()=>ba,pid:()=>La,platform:()=>Hs,ppid:()=>Ra,prependListener:()=>Za,prependOnceListener:()=>eo,reallyExit:()=>da,release:()=>na,removeAllListeners:()=>Ya,removeListener:()=>Ja,resourceUsage:()=>ma,setSourceMapsEnabled:()=>Va,setUncaughtExceptionCaptureCallback:()=>ka,stderr:()=>Ta,stdin:()=>Oa,stdout:()=>Ba,title:()=>Gs,umask:()=>ta,uptime:()=>qa,version:()=>Ys,versions:()=>Xs});function an(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function Fp(){!pr||!$t||(pr=!1,$t.length?yt=$t.concat(yt):ai=-1,yt.length&&Vs())}function Vs(){if(!pr){var e=setTimeout(Fp,0);pr=!0;for(var t=yt.length;t;){for($t=yt,yt=[];++ai<t;)$t&&$t[ai].run();ai=-1,t=yt.length}$t=null,pr=!1,clearTimeout(e)}}function qs(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];yt.push(new Ws(e,t)),yt.length===1&&!pr&&setTimeout(Vs,0)}function Ws(e,t){this.fun=e,this.array=t}function Ve(){}function oa(e){an("_linkedBinding")}function pa(e){an("dlopen")}function ha(){return[]}function fa(){return[]}function xa(e,t){if(!e)throw new Error(t||"assertion error")}function Ca(){return!1}function qa(){return Ot.now()/1e3}function oi(e){var t=Math.floor((Date.now()-Ot.now())*.001),i=Ot.now()*.001,n=Math.floor(i)+t,s=Math.floor(i%1*1e9);return e&&(n=n-e[0],s=s-e[1],s<0&&(n--,s+=sn)),[n,s]}function Dt(){return ro}function to(e){return[]}var yt,pr,$t,ai,Gs,zs,Hs,Qs,Ks,Js,Ys,Xs,Zs,ea,ta,ra,ia,na,sa,aa,ua,la,ca,da,ga,ui,ma,ya,Da,va,ba,Ea,wa,Fa,ka,Aa,Sa,_a,Ia,Pa,Ba,Ta,Oa,Na,La,Ra,ja,Ua,$a,Ma,Va,Ot,nn,sn,Wa,Ga,za,Ha,Qa,Ka,Ja,Ya,Xa,Za,eo,ro,io=Tt(()=>{J();X();Y();yt=[],pr=!1,ai=-1;Ws.prototype.run=function(){this.fun.apply(null,this.array)};Gs="browser",zs="x64",Hs="browser",Qs={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Ks=["/usr/bin/node"],Js=[],Ys="v16.8.0",Xs={},Zs=function(e,t){console.warn((t?t+": ":"")+e)},ea=function(e){an("binding")},ta=function(e){return 0},ra=function(){return"/"},ia=function(e){},na={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};sa=Ve,aa=[];ua={},la=!1,ca={};da=Ve,ga=Ve,ui=function(){return{}},ma=ui,ya=ui,Da=Ve,va=Ve,ba=Ve,Ea={};wa={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Fa=Ve,ka=Ve;Aa=Ve,Sa=Ve,_a=Ve,Ia=Ve,Pa=Ve,Ba=void 0,Ta=void 0,Oa=void 0,Na=Ve,La=2,Ra=1,ja="/bin/usr/node",Ua=9229,$a="node",Ma=[],Va=Ve,Ot={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};Ot.now===void 0&&(nn=Date.now(),Ot.timing&&Ot.timing.navigationStart&&(nn=Ot.timing.navigationStart),Ot.now=()=>Date.now()-nn);sn=1e9;oi.bigint=function(e){var t=oi(e);return typeof BigInt>"u"?t[0]*sn+t[1]:BigInt(t[0]*sn)+BigInt(t[1])};Wa=10,Ga={},za=0;Ha=Dt,Qa=Dt,Ka=Dt,Ja=Dt,Ya=Dt,Xa=Ve,Za=Dt,eo=Dt;ro={version:Ys,versions:Xs,arch:zs,platform:Hs,release:na,_rawDebug:sa,moduleLoadList:aa,binding:ea,_linkedBinding:oa,_events:Ga,_eventsCount:za,_maxListeners:Wa,on:Dt,addListener:Ha,once:Qa,off:Ka,removeListener:Ja,removeAllListeners:Ya,emit:Xa,prependListener:Za,prependOnceListener:eo,listeners:to,domain:ua,_exiting:la,config:ca,dlopen:pa,uptime:qa,_getActiveRequests:ha,_getActiveHandles:fa,reallyExit:da,_kill:ga,cpuUsage:ui,resourceUsage:ma,memoryUsage:ya,kill:Da,exit:va,openStdin:ba,allowedNodeEnvironmentFlags:Ea,assert:xa,features:wa,_fatalExceptions:Fa,setUncaughtExceptionCaptureCallback:ka,hasUncaughtExceptionCaptureCallback:Ca,emitWarning:Zs,nextTick:qs,_tickCallback:Aa,_debugProcess:Sa,_debugEnd:_a,_startProfilerIdleNotifier:Ia,_stopProfilerIdleNotifier:Pa,stdout:Ba,stdin:Oa,stderr:Ta,abort:Na,umask:ta,chdir:ia,cwd:ra,env:Qs,title:Gs,argv:Ks,execArgv:Js,pid:La,ppid:Ra,execPath:ja,debugPort:Ua,hrtime:oi,argv0:$a,_preload_modules:Ma,setSourceMapsEnabled:Va}});var Y=Tt(()=>{io()});function kp(){if(no)return _r;no=!0,_r.byteLength=p,_r.toByteArray=D,_r.fromByteArray=E;for(var e=[],t=[],i=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,o=n.length;s<o;++s)e[s]=n[s],t[n.charCodeAt(s)]=s;t[45]=62,t[95]=63;function u(x){var v=x.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var k=x.indexOf("=");k===-1&&(k=v);var I=k===v?0:4-k%4;return[k,I]}function p(x){var v=u(x),k=v[0],I=v[1];return(k+I)*3/4-I}function m(x,v,k){return(v+k)*3/4-k}function D(x){var v,k=u(x),I=k[0],P=k[1],L=new i(m(x,I,P)),O=0,f=P>0?I-4:I,V;for(V=0;V<f;V+=4)v=t[x.charCodeAt(V)]<<18|t[x.charCodeAt(V+1)]<<12|t[x.charCodeAt(V+2)]<<6|t[x.charCodeAt(V+3)],L[O++]=v>>16&255,L[O++]=v>>8&255,L[O++]=v&255;return P===2&&(v=t[x.charCodeAt(V)]<<2|t[x.charCodeAt(V+1)]>>4,L[O++]=v&255),P===1&&(v=t[x.charCodeAt(V)]<<10|t[x.charCodeAt(V+1)]<<4|t[x.charCodeAt(V+2)]>>2,L[O++]=v>>8&255,L[O++]=v&255),L}function y(x){return e[x>>18&63]+e[x>>12&63]+e[x>>6&63]+e[x&63]}function F(x,v,k){for(var I,P=[],L=v;L<k;L+=3)I=(x[L]<<16&16711680)+(x[L+1]<<8&65280)+(x[L+2]&255),P.push(y(I));return P.join("")}function E(x){for(var v,k=x.length,I=k%3,P=[],L=16383,O=0,f=k-I;O<f;O+=L)P.push(F(x,O,O+L>f?f:O+L));return I===1?(v=x[k-1],P.push(e[v>>2]+e[v<<4&63]+"==")):I===2&&(v=(x[k-2]<<8)+x[k-1],P.push(e[v>>10]+e[v>>4&63]+e[v<<2&63]+"=")),P.join("")}return _r}function Cp(){if(so)return li;so=!0;return li.read=function(e,t,i,n,s){var o,u,p=s*8-n-1,m=(1<<p)-1,D=m>>1,y=-7,F=i?s-1:0,E=i?-1:1,x=e[t+F];for(F+=E,o=x&(1<<-y)-1,x>>=-y,y+=p;y>0;o=o*256+e[t+F],F+=E,y-=8);for(u=o&(1<<-y)-1,o>>=-y,y+=n;y>0;u=u*256+e[t+F],F+=E,y-=8);if(o===0)o=1-D;else{if(o===m)return u?NaN:(x?-1:1)*(1/0);u=u+Math.pow(2,n),o=o-D}return(x?-1:1)*u*Math.pow(2,o-n)},li.write=function(e,t,i,n,s,o){var u,p,m,D=o*8-s-1,y=(1<<D)-1,F=y>>1,E=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:o-1,v=n?1:-1,k=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(p=isNaN(t)?1:0,u=y):(u=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-u))<1&&(u--,m*=2),u+F>=1?t+=E/m:t+=E*Math.pow(2,1-F),t*m>=2&&(u++,m/=2),u+F>=y?(p=0,u=y):u+F>=1?(p=(t*m-1)*Math.pow(2,s),u=u+F):(p=t*Math.pow(2,F-1)*Math.pow(2,s),u=0));s>=8;e[i+x]=p&255,x+=v,p/=256,s-=8);for(u=u<<s|p,D+=s;D>0;e[i+x]=u&255,x+=v,u/=256,D-=8);e[i+x-v]|=k*128},li}function Ap(){if(ao)return Mt;ao=!0;let e=kp(),t=Cp(),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Mt.Buffer=u,Mt.SlowBuffer=P,Mt.INSPECT_MAX_BYTES=50;let n=2147483647;Mt.kMaxLength=n,u.TYPED_ARRAY_SUPPORT=s(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{let d=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(d,l),d.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function o(d){if(d>n)throw new RangeError('The value "'+d+'" is invalid for option "size"');let l=new Uint8Array(d);return Object.setPrototypeOf(l,u.prototype),l}function u(d,l,c){if(typeof d=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(d)}return p(d,l,c)}u.poolSize=8192;function p(d,l,c){if(typeof d=="string")return F(d,l);if(ArrayBuffer.isView(d))return x(d);if(d==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof d);if(Xe(d,ArrayBuffer)||d&&Xe(d.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Xe(d,SharedArrayBuffer)||d&&Xe(d.buffer,SharedArrayBuffer)))return v(d,l,c);if(typeof d=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let b=d.valueOf&&d.valueOf();if(b!=null&&b!==d)return u.from(b,l,c);let C=k(d);if(C)return C;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof d[Symbol.toPrimitive]=="function")return u.from(d[Symbol.toPrimitive]("string"),l,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof d)}u.from=function(d,l,c){return p(d,l,c)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function m(d){if(typeof d!="number")throw new TypeError('"size" argument must be of type number');if(d<0)throw new RangeError('The value "'+d+'" is invalid for option "size"')}function D(d,l,c){return m(d),d<=0?o(d):l!==void 0?typeof c=="string"?o(d).fill(l,c):o(d).fill(l):o(d)}u.alloc=function(d,l,c){return D(d,l,c)};function y(d){return m(d),o(d<0?0:I(d)|0)}u.allocUnsafe=function(d){return y(d)},u.allocUnsafeSlow=function(d){return y(d)};function F(d,l){if((typeof l!="string"||l==="")&&(l="utf8"),!u.isEncoding(l))throw new TypeError("Unknown encoding: "+l);let c=L(d,l)|0,b=o(c),C=b.write(d,l);return C!==c&&(b=b.slice(0,C)),b}function E(d){let l=d.length<0?0:I(d.length)|0,c=o(l);for(let b=0;b<l;b+=1)c[b]=d[b]&255;return c}function x(d){if(Xe(d,Uint8Array)){let l=new Uint8Array(d);return v(l.buffer,l.byteOffset,l.byteLength)}return E(d)}function v(d,l,c){if(l<0||d.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(d.byteLength<l+(c||0))throw new RangeError('"length" is outside of buffer bounds');let b;return l===void 0&&c===void 0?b=new Uint8Array(d):c===void 0?b=new Uint8Array(d,l):b=new Uint8Array(d,l,c),Object.setPrototypeOf(b,u.prototype),b}function k(d){if(u.isBuffer(d)){let l=I(d.length)|0,c=o(l);return c.length===0||d.copy(c,0,0,l),c}if(d.length!==void 0)return typeof d.length!="number"||Bt(d.length)?o(0):E(d);if(d.type==="Buffer"&&Array.isArray(d.data))return E(d.data)}function I(d){if(d>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return d|0}function P(d){return+d!=d&&(d=0),u.alloc(+d)}u.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==u.prototype},u.compare=function(l,c){if(Xe(l,Uint8Array)&&(l=u.from(l,l.offset,l.byteLength)),Xe(c,Uint8Array)&&(c=u.from(c,c.offset,c.byteLength)),!u.isBuffer(l)||!u.isBuffer(c))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===c)return 0;let b=l.length,C=c.length;for(let A=0,R=Math.min(b,C);A<R;++A)if(l[A]!==c[A]){b=l[A],C=c[A];break}return b<C?-1:C<b?1:0},u.isEncoding=function(l){switch(String(l).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(l,c){if(!Array.isArray(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return u.alloc(0);let b;if(c===void 0)for(c=0,b=0;b<l.length;++b)c+=l[b].length;let C=u.allocUnsafe(c),A=0;for(b=0;b<l.length;++b){let R=l[b];if(Xe(R,Uint8Array))A+R.length>C.length?(u.isBuffer(R)||(R=u.from(R)),R.copy(C,A)):Uint8Array.prototype.set.call(C,R,A);else if(u.isBuffer(R))R.copy(C,A);else throw new TypeError('"list" argument must be an Array of Buffers');A+=R.length}return C};function L(d,l){if(u.isBuffer(d))return d.length;if(ArrayBuffer.isView(d)||Xe(d,ArrayBuffer))return d.byteLength;if(typeof d!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof d);let c=d.length,b=arguments.length>2&&arguments[2]===!0;if(!b&&c===0)return 0;let C=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return or(d).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return lt(d).length;default:if(C)return b?-1:or(d).length;l=(""+l).toLowerCase(),C=!0}}u.byteLength=L;function O(d,l,c){let b=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,l>>>=0,c<=l))return"";for(d||(d="utf8");;)switch(d){case"hex":return S(this,l,c);case"utf8":case"utf-8":return se(this,l,c);case"ascii":return Q(this,l,c);case"latin1":case"binary":return B(this,l,c);case"base64":return re(this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,l,c);default:if(b)throw new TypeError("Unknown encoding: "+d);d=(d+"").toLowerCase(),b=!0}}u.prototype._isBuffer=!0;function f(d,l,c){let b=d[l];d[l]=d[c],d[c]=b}u.prototype.swap16=function(){let l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let c=0;c<l;c+=2)f(this,c,c+1);return this},u.prototype.swap32=function(){let l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let c=0;c<l;c+=4)f(this,c,c+3),f(this,c+1,c+2);return this},u.prototype.swap64=function(){let l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let c=0;c<l;c+=8)f(this,c,c+7),f(this,c+1,c+6),f(this,c+2,c+5),f(this,c+3,c+4);return this},u.prototype.toString=function(){let l=this.length;return l===0?"":arguments.length===0?se(this,0,l):O.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(l){if(!u.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:u.compare(this,l)===0},u.prototype.inspect=function(){let l="",c=Mt.INSPECT_MAX_BYTES;return l=this.toString("hex",0,c).replace(/(.{2})/g,"$1 ").trim(),this.length>c&&(l+=" ... "),"<Buffer "+l+">"},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(l,c,b,C,A){if(Xe(l,Uint8Array)&&(l=u.from(l,l.offset,l.byteLength)),!u.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(c===void 0&&(c=0),b===void 0&&(b=l?l.length:0),C===void 0&&(C=0),A===void 0&&(A=this.length),c<0||b>l.length||C<0||A>this.length)throw new RangeError("out of range index");if(C>=A&&c>=b)return 0;if(C>=A)return-1;if(c>=b)return 1;if(c>>>=0,b>>>=0,C>>>=0,A>>>=0,this===l)return 0;let R=A-C,ue=b-c,me=Math.min(R,ue),be=this.slice(C,A),ve=l.slice(c,b);for(let ge=0;ge<me;++ge)if(be[ge]!==ve[ge]){R=be[ge],ue=ve[ge];break}return R<ue?-1:ue<R?1:0};function V(d,l,c,b,C){if(d.length===0)return-1;if(typeof c=="string"?(b=c,c=0):c>2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,Bt(c)&&(c=C?0:d.length-1),c<0&&(c=d.length+c),c>=d.length){if(C)return-1;c=d.length-1}else if(c<0)if(C)c=0;else return-1;if(typeof l=="string"&&(l=u.from(l,b)),u.isBuffer(l))return l.length===0?-1:te(d,l,c,b,C);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?C?Uint8Array.prototype.indexOf.call(d,l,c):Uint8Array.prototype.lastIndexOf.call(d,l,c):te(d,[l],c,b,C);throw new TypeError("val must be string, number or Buffer")}function te(d,l,c,b,C){let A=1,R=d.length,ue=l.length;if(b!==void 0&&(b=String(b).toLowerCase(),b==="ucs2"||b==="ucs-2"||b==="utf16le"||b==="utf-16le")){if(d.length<2||l.length<2)return-1;A=2,R/=2,ue/=2,c/=2}function me(ve,ge){return A===1?ve[ge]:ve.readUInt16BE(ge*A)}let be;if(C){let ve=-1;for(be=c;be<R;be++)if(me(d,be)===me(l,ve===-1?0:be-ve)){if(ve===-1&&(ve=be),be-ve+1===ue)return ve*A}else ve!==-1&&(be-=be-ve),ve=-1}else for(c+ue>R&&(c=R-ue),be=c;be>=0;be--){let ve=!0;for(let ge=0;ge<ue;ge++)if(me(d,be+ge)!==me(l,ge)){ve=!1;break}if(ve)return be}return-1}u.prototype.includes=function(l,c,b){return this.indexOf(l,c,b)!==-1},u.prototype.indexOf=function(l,c,b){return V(this,l,c,b,!0)},u.prototype.lastIndexOf=function(l,c,b){return V(this,l,c,b,!1)};function $(d,l,c,b){c=Number(c)||0;let C=d.length-c;b?(b=Number(b),b>C&&(b=C)):b=C;let A=l.length;b>A/2&&(b=A/2);let R;for(R=0;R<b;++R){let ue=parseInt(l.substr(R*2,2),16);if(Bt(ue))return R;d[c+R]=ue}return R}function M(d,l,c,b){return Pe(or(l,d.length-c),d,c,b)}function G(d,l,c,b){return Pe(Zr(l),d,c,b)}function ne(d,l,c,b){return Pe(lt(l),d,c,b)}function Z(d,l,c,b){return Pe(Fe(l,d.length-c),d,c,b)}u.prototype.write=function(l,c,b,C){if(c===void 0)C="utf8",b=this.length,c=0;else if(b===void 0&&typeof c=="string")C=c,b=this.length,c=0;else if(isFinite(c))c=c>>>0,isFinite(b)?(b=b>>>0,C===void 0&&(C="utf8")):(C=b,b=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let A=this.length-c;if((b===void 0||b>A)&&(b=A),l.length>0&&(b<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");C||(C="utf8");let R=!1;for(;;)switch(C){case"hex":return $(this,l,c,b);case"utf8":case"utf-8":return M(this,l,c,b);case"ascii":case"latin1":case"binary":return G(this,l,c,b);case"base64":return ne(this,l,c,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,l,c,b);default:if(R)throw new TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),R=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function re(d,l,c){return l===0&&c===d.length?e.fromByteArray(d):e.fromByteArray(d.slice(l,c))}function se(d,l,c){c=Math.min(d.length,c);let b=[],C=l;for(;C<c;){let A=d[C],R=null,ue=A>239?4:A>223?3:A>191?2:1;if(C+ue<=c){let me,be,ve,ge;switch(ue){case 1:A<128&&(R=A);break;case 2:me=d[C+1],(me&192)===128&&(ge=(A&31)<<6|me&63,ge>127&&(R=ge));break;case 3:me=d[C+1],be=d[C+2],(me&192)===128&&(be&192)===128&&(ge=(A&15)<<12|(me&63)<<6|be&63,ge>2047&&(ge<55296||ge>57343)&&(R=ge));break;case 4:me=d[C+1],be=d[C+2],ve=d[C+3],(me&192)===128&&(be&192)===128&&(ve&192)===128&&(ge=(A&15)<<18|(me&63)<<12|(be&63)<<6|ve&63,ge>65535&&ge<1114112&&(R=ge))}}R===null?(R=65533,ue=1):R>65535&&(R-=65536,b.push(R>>>10&1023|55296),R=56320|R&1023),b.push(R),C+=ue}return fe(b)}let ie=4096;function fe(d){let l=d.length;if(l<=ie)return String.fromCharCode.apply(String,d);let c="",b=0;for(;b<l;)c+=String.fromCharCode.apply(String,d.slice(b,b+=ie));return c}function Q(d,l,c){let b="";c=Math.min(d.length,c);for(let C=l;C<c;++C)b+=String.fromCharCode(d[C]&127);return b}function B(d,l,c){let b="";c=Math.min(d.length,c);for(let C=l;C<c;++C)b+=String.fromCharCode(d[C]);return b}function S(d,l,c){let b=d.length;(!l||l<0)&&(l=0),(!c||c<0||c>b)&&(c=b);let C="";for(let A=l;A<c;++A)C+=oe[d[A]];return C}function j(d,l,c){let b=d.slice(l,c),C="";for(let A=0;A<b.length-1;A+=2)C+=String.fromCharCode(b[A]+b[A+1]*256);return C}u.prototype.slice=function(l,c){let b=this.length;l=~~l,c=c===void 0?b:~~c,l<0?(l+=b,l<0&&(l=0)):l>b&&(l=b),c<0?(c+=b,c<0&&(c=0)):c>b&&(c=b),c<l&&(c=l);let C=this.subarray(l,c);return Object.setPrototypeOf(C,u.prototype),C};function U(d,l,c){if(d%1!==0||d<0)throw new RangeError("offset is not uint");if(d+l>c)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(l,c,b){l=l>>>0,c=c>>>0,b||U(l,c,this.length);let C=this[l],A=1,R=0;for(;++R<c&&(A*=256);)C+=this[l+R]*A;return C},u.prototype.readUintBE=u.prototype.readUIntBE=function(l,c,b){l=l>>>0,c=c>>>0,b||U(l,c,this.length);let C=this[l+--c],A=1;for(;c>0&&(A*=256);)C+=this[l+--c]*A;return C},u.prototype.readUint8=u.prototype.readUInt8=function(l,c){return l=l>>>0,c||U(l,1,this.length),this[l]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(l,c){return l=l>>>0,c||U(l,2,this.length),this[l]|this[l+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(l,c){return l=l>>>0,c||U(l,2,this.length),this[l]<<8|this[l+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(l,c){return l=l>>>0,c||U(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(l,c){return l=l>>>0,c||U(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},u.prototype.readBigUInt64LE=Ze(function(l){l=l>>>0,Re(l,"offset");let c=this[l],b=this[l+7];(c===void 0||b===void 0)&&Be(l,this.length-8);let C=c+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,A=this[++l]+this[++l]*2**8+this[++l]*2**16+b*2**24;return BigInt(C)+(BigInt(A)<<BigInt(32))}),u.prototype.readBigUInt64BE=Ze(function(l){l=l>>>0,Re(l,"offset");let c=this[l],b=this[l+7];(c===void 0||b===void 0)&&Be(l,this.length-8);let C=c*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],A=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+b;return(BigInt(C)<<BigInt(32))+BigInt(A)}),u.prototype.readIntLE=function(l,c,b){l=l>>>0,c=c>>>0,b||U(l,c,this.length);let C=this[l],A=1,R=0;for(;++R<c&&(A*=256);)C+=this[l+R]*A;return A*=128,C>=A&&(C-=Math.pow(2,8*c)),C},u.prototype.readIntBE=function(l,c,b){l=l>>>0,c=c>>>0,b||U(l,c,this.length);let C=c,A=1,R=this[l+--C];for(;C>0&&(A*=256);)R+=this[l+--C]*A;return A*=128,R>=A&&(R-=Math.pow(2,8*c)),R},u.prototype.readInt8=function(l,c){return l=l>>>0,c||U(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},u.prototype.readInt16LE=function(l,c){l=l>>>0,c||U(l,2,this.length);let b=this[l]|this[l+1]<<8;return b&32768?b|4294901760:b},u.prototype.readInt16BE=function(l,c){l=l>>>0,c||U(l,2,this.length);let b=this[l+1]|this[l]<<8;return b&32768?b|4294901760:b},u.prototype.readInt32LE=function(l,c){return l=l>>>0,c||U(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},u.prototype.readInt32BE=function(l,c){return l=l>>>0,c||U(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},u.prototype.readBigInt64LE=Ze(function(l){l=l>>>0,Re(l,"offset");let c=this[l],b=this[l+7];(c===void 0||b===void 0)&&Be(l,this.length-8);let C=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(b<<24);return(BigInt(C)<<BigInt(32))+BigInt(c+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24)}),u.prototype.readBigInt64BE=Ze(function(l){l=l>>>0,Re(l,"offset");let c=this[l],b=this[l+7];(c===void 0||b===void 0)&&Be(l,this.length-8);let C=(c<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(C)<<BigInt(32))+BigInt(this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+b)}),u.prototype.readFloatLE=function(l,c){return l=l>>>0,c||U(l,4,this.length),t.read(this,l,!0,23,4)},u.prototype.readFloatBE=function(l,c){return l=l>>>0,c||U(l,4,this.length),t.read(this,l,!1,23,4)},u.prototype.readDoubleLE=function(l,c){return l=l>>>0,c||U(l,8,this.length),t.read(this,l,!0,52,8)},u.prototype.readDoubleBE=function(l,c){return l=l>>>0,c||U(l,8,this.length),t.read(this,l,!1,52,8)};function q(d,l,c,b,C,A){if(!u.isBuffer(d))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>C||l<A)throw new RangeError('"value" argument is out of bounds');if(c+b>d.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(l,c,b,C){if(l=+l,c=c>>>0,b=b>>>0,!C){let ue=Math.pow(2,8*b)-1;q(this,l,c,b,ue,0)}let A=1,R=0;for(this[c]=l&255;++R<b&&(A*=256);)this[c+R]=l/A&255;return c+b},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(l,c,b,C){if(l=+l,c=c>>>0,b=b>>>0,!C){let ue=Math.pow(2,8*b)-1;q(this,l,c,b,ue,0)}let A=b-1,R=1;for(this[c+A]=l&255;--A>=0&&(R*=256);)this[c+A]=l/R&255;return c+b},u.prototype.writeUint8=u.prototype.writeUInt8=function(l,c,b){return l=+l,c=c>>>0,b||q(this,l,c,1,255,0),this[c]=l&255,c+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(l,c,b){return l=+l,c=c>>>0,b||q(this,l,c,2,65535,0),this[c]=l&255,this[c+1]=l>>>8,c+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(l,c,b){return l=+l,c=c>>>0,b||q(this,l,c,2,65535,0),this[c]=l>>>8,this[c+1]=l&255,c+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(l,c,b){return l=+l,c=c>>>0,b||q(this,l,c,4,4294967295,0),this[c+3]=l>>>24,this[c+2]=l>>>16,this[c+1]=l>>>8,this[c]=l&255,c+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(l,c,b){return l=+l,c=c>>>0,b||q(this,l,c,4,4294967295,0),this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255,c+4};function z(d,l,c,b,C){ut(l,b,C,d,c,7);let A=Number(l&BigInt(4294967295));d[c++]=A,A=A>>8,d[c++]=A,A=A>>8,d[c++]=A,A=A>>8,d[c++]=A;let R=Number(l>>BigInt(32)&BigInt(4294967295));return d[c++]=R,R=R>>8,d[c++]=R,R=R>>8,d[c++]=R,R=R>>8,d[c++]=R,c}function de(d,l,c,b,C){ut(l,b,C,d,c,7);let A=Number(l&BigInt(4294967295));d[c+7]=A,A=A>>8,d[c+6]=A,A=A>>8,d[c+5]=A,A=A>>8,d[c+4]=A;let R=Number(l>>BigInt(32)&BigInt(4294967295));return d[c+3]=R,R=R>>8,d[c+2]=R,R=R>>8,d[c+1]=R,R=R>>8,d[c]=R,c+8}u.prototype.writeBigUInt64LE=Ze(function(l,c=0){return z(this,l,c,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=Ze(function(l,c=0){return de(this,l,c,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(l,c,b,C){if(l=+l,c=c>>>0,!C){let me=Math.pow(2,8*b-1);q(this,l,c,b,me-1,-me)}let A=0,R=1,ue=0;for(this[c]=l&255;++A<b&&(R*=256);)l<0&&ue===0&&this[c+A-1]!==0&&(ue=1),this[c+A]=(l/R>>0)-ue&255;return c+b},u.prototype.writeIntBE=function(l,c,b,C){if(l=+l,c=c>>>0,!C){let me=Math.pow(2,8*b-1);q(this,l,c,b,me-1,-me)}let A=b-1,R=1,ue=0;for(this[c+A]=l&255;--A>=0&&(R*=256);)l<0&&ue===0&&this[c+A+1]!==0&&(ue=1),this[c+A]=(l/R>>0)-ue&255;return c+b},u.prototype.writeInt8=function(l,c,b){return l=+l,c=c>>>0,b||q(this,l,c,1,127,-128),l<0&&(l=255+l+1),this[c]=l&255,c+1},u.prototype.writeInt16LE=function(l,c,b){return l=+l,c=c>>>0,b||q(this,l,c,2,32767,-32768),this[c]=l&255,this[c+1]=l>>>8,c+2},u.prototype.writeInt16BE=function(l,c,b){return l=+l,c=c>>>0,b||q(this,l,c,2,32767,-32768),this[c]=l>>>8,this[c+1]=l&255,c+2},u.prototype.writeInt32LE=function(l,c,b){return l=+l,c=c>>>0,b||q(this,l,c,4,2147483647,-2147483648),this[c]=l&255,this[c+1]=l>>>8,this[c+2]=l>>>16,this[c+3]=l>>>24,c+4},u.prototype.writeInt32BE=function(l,c,b){return l=+l,c=c>>>0,b||q(this,l,c,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255,c+4},u.prototype.writeBigInt64LE=Ze(function(l,c=0){return z(this,l,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=Ze(function(l,c=0){return de(this,l,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ce(d,l,c,b,C,A){if(c+b>d.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function ye(d,l,c,b,C){return l=+l,c=c>>>0,C||Ce(d,l,c,4),t.write(d,l,c,b,23,4),c+4}u.prototype.writeFloatLE=function(l,c,b){return ye(this,l,c,!0,b)},u.prototype.writeFloatBE=function(l,c,b){return ye(this,l,c,!1,b)};function st(d,l,c,b,C){return l=+l,c=c>>>0,C||Ce(d,l,c,8),t.write(d,l,c,b,52,8),c+8}u.prototype.writeDoubleLE=function(l,c,b){return st(this,l,c,!0,b)},u.prototype.writeDoubleBE=function(l,c,b){return st(this,l,c,!1,b)},u.prototype.copy=function(l,c,b,C){if(!u.isBuffer(l))throw new TypeError("argument should be a Buffer");if(b||(b=0),!C&&C!==0&&(C=this.length),c>=l.length&&(c=l.length),c||(c=0),C>0&&C<b&&(C=b),C===b||l.length===0||this.length===0)return 0;if(c<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=this.length)throw new RangeError("Index out of range");if(C<0)throw new RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),l.length-c<C-b&&(C=l.length-c+b);let A=C-b;return this===l&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(c,b,C):Uint8Array.prototype.set.call(l,this.subarray(b,C),c),A},u.prototype.fill=function(l,c,b,C){if(typeof l=="string"){if(typeof c=="string"?(C=c,c=0,b=this.length):typeof b=="string"&&(C=b,b=this.length),C!==void 0&&typeof C!="string")throw new TypeError("encoding must be a string");if(typeof C=="string"&&!u.isEncoding(C))throw new TypeError("Unknown encoding: "+C);if(l.length===1){let R=l.charCodeAt(0);(C==="utf8"&&R<128||C==="latin1")&&(l=R)}}else typeof l=="number"?l=l&255:typeof l=="boolean"&&(l=Number(l));if(c<0||this.length<c||this.length<b)throw new RangeError("Out of range index");if(b<=c)return this;c=c>>>0,b=b===void 0?this.length:b>>>0,l||(l=0);let A;if(typeof l=="number")for(A=c;A<b;++A)this[A]=l;else{let R=u.isBuffer(l)?l:u.from(l,C),ue=R.length;if(ue===0)throw new TypeError('The value "'+l+'" is invalid for argument "value"');for(A=0;A<b-c;++A)this[A+c]=R[A%ue]}return this};let $e={};function Le(d,l,c){$e[d]=class extends c{constructor(){super(),Object.defineProperty(this,"message",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${d}]`,this.stack,delete this.name}get code(){return d}set code(C){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:C,writable:!0})}toString(){return`${this.name} [${d}]: ${this.message}`}}}Le("ERR_BUFFER_OUT_OF_BOUNDS",function(d){return d?`${d} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Le("ERR_INVALID_ARG_TYPE",function(d,l){return`The "${d}" argument must be of type number. Received type ${typeof l}`},TypeError),Le("ERR_OUT_OF_RANGE",function(d,l,c){let b=`The value of "${d}" is out of range.`,C=c;return Number.isInteger(c)&&Math.abs(c)>2**32?C=at(String(c)):typeof c=="bigint"&&(C=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(C=at(C)),C+="n"),b+=` It must be ${l}. Received ${C}`,b},RangeError);function at(d){let l="",c=d.length,b=d[0]==="-"?1:0;for(;c>=b+4;c-=3)l=`_${d.slice(c-3,c)}${l}`;return`${d.slice(0,c)}${l}`}function Ye(d,l,c){Re(l,"offset"),(d[l]===void 0||d[l+c]===void 0)&&Be(l,d.length-(c+1))}function ut(d,l,c,b,C,A){if(d>c||d<l){let R=typeof l=="bigint"?"n":"",ue;throw A>3?l===0||l===BigInt(0)?ue=`>= 0${R} and < 2${R} ** ${(A+1)*8}${R}`:ue=`>= -(2${R} ** ${(A+1)*8-1}${R}) and < 2 ** ${(A+1)*8-1}${R}`:ue=`>= ${l}${R} and <= ${c}${R}`,new $e.ERR_OUT_OF_RANGE("value",ue,d)}Ye(b,C,A)}function Re(d,l){if(typeof d!="number")throw new $e.ERR_INVALID_ARG_TYPE(l,"number",d)}function Be(d,l,c){throw Math.floor(d)!==d?(Re(d,c),new $e.ERR_OUT_OF_RANGE(c||"offset","an integer",d)):l<0?new $e.ERR_BUFFER_OUT_OF_BOUNDS:new $e.ERR_OUT_OF_RANGE(c||"offset",`>= ${c?1:0} and <= ${l}`,d)}let He=/[^+/0-9A-Za-z-_]/g;function Xr(d){if(d=d.split("=")[0],d=d.trim().replace(He,""),d.length<2)return"";for(;d.length%4!==0;)d=d+"=";return d}function or(d,l){l=l||1/0;let c,b=d.length,C=null,A=[];for(let R=0;R<b;++R){if(c=d.charCodeAt(R),c>55295&&c<57344){if(!C){if(c>56319){(l-=3)>-1&&A.push(239,191,189);continue}else if(R+1===b){(l-=3)>-1&&A.push(239,191,189);continue}C=c;continue}if(c<56320){(l-=3)>-1&&A.push(239,191,189),C=c;continue}c=(C-55296<<10|c-56320)+65536}else C&&(l-=3)>-1&&A.push(239,191,189);if(C=null,c<128){if((l-=1)<0)break;A.push(c)}else if(c<2048){if((l-=2)<0)break;A.push(c>>6|192,c&63|128)}else if(c<65536){if((l-=3)<0)break;A.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((l-=4)<0)break;A.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return A}function Zr(d){let l=[];for(let c=0;c<d.length;++c)l.push(d.charCodeAt(c)&255);return l}function Fe(d,l){let c,b,C,A=[];for(let R=0;R<d.length&&!((l-=2)<0);++R)c=d.charCodeAt(R),b=c>>8,C=c%256,A.push(C),A.push(b);return A}function lt(d){return e.toByteArray(Xr(d))}function Pe(d,l,c,b){let C;for(C=0;C<b&&!(C+c>=l.length||C>=d.length);++C)l[C+c]=d[C];return C}function Xe(d,l){return d instanceof l||d!=null&&d.constructor!=null&&d.constructor.name!=null&&d.constructor.name===l.name}function Bt(d){return d!==d}let oe=function(){let d="0123456789abcdef",l=new Array(256);for(let c=0;c<16;++c){let b=c*16;for(let C=0;C<16;++C)l[b+C]=d[c]+d[C]}return l}();function Ze(d){return typeof BigInt>"u"?Zi:d}function Zi(){throw new Error("BigInt not supported")}return Mt}var _r,no,li,so,Mt,ao,Vt,xe,Iy,Py,oo=Tt(()=>{J();X();Y();_r={},no=!1;li={},so=!1;Mt={},ao=!1;Vt=Ap();Vt.Buffer;Vt.SlowBuffer;Vt.INSPECT_MAX_BYTES;Vt.kMaxLength;xe=Vt.Buffer,Iy=Vt.INSPECT_MAX_BYTES,Py=Vt.kMaxLength});var X=Tt(()=>{oo()});function on(){throw new Error("setTimeout has not been defined")}function un(){throw new Error("clearTimeout has not been defined")}function co(e){if(bt===setTimeout)return setTimeout(e,0);if((bt===on||!bt)&&setTimeout)return bt=setTimeout,setTimeout(e,0);try{return bt(e,0)}catch{try{return bt.call(null,e,0)}catch{return bt.call(this||fr,e,0)}}}function Sp(){hr&&qt&&(hr=!1,qt.length?xt=qt.concat(xt):ci=-1,xt.length&&po())}function po(){if(!hr){var e=co(Sp);hr=!0;for(var t=xt.length;t;){for(qt=xt,xt=[];++ci<t;)qt&&qt[ci].run();ci=-1,t=xt.length}qt=null,hr=!1,function(i){if(Et===clearTimeout)return clearTimeout(i);if((Et===un||!Et)&&clearTimeout)return Et=clearTimeout,clearTimeout(i);try{Et(i)}catch{try{return Et.call(null,i)}catch{return Et.call(this||fr,i)}}}(e)}}function uo(e,t){(this||fr).fun=e,(this||fr).array=t}function vt(){}var lo,bt,Et,fr,Ie,qt,xt,hr,ci,we,Ir=Tt(()=>{J();X();Y();fr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,Ie=lo={};(function(){try{bt=typeof setTimeout=="function"?setTimeout:on}catch{bt=on}try{Et=typeof clearTimeout=="function"?clearTimeout:un}catch{Et=un}})();xt=[],hr=!1,ci=-1;Ie.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];xt.push(new uo(e,t)),xt.length!==1||hr||co(po)},uo.prototype.run=function(){(this||fr).fun.apply(null,(this||fr).array)},Ie.title="browser",Ie.browser=!0,Ie.env={},Ie.argv=[],Ie.version="",Ie.versions={},Ie.on=vt,Ie.addListener=vt,Ie.once=vt,Ie.off=vt,Ie.removeListener=vt,Ie.removeAllListeners=vt,Ie.emit=vt,Ie.prependListener=vt,Ie.prependOnceListener=vt,Ie.listeners=function(e){return[]},Ie.binding=function(e){throw new Error("process.binding is not supported")},Ie.cwd=function(){return"/"},Ie.chdir=function(e){throw new Error("process.chdir is not supported")},Ie.umask=function(){return 0};we=lo;we.addListener;we.argv;we.binding;we.browser;we.chdir;we.cwd;we.emit;we.env;we.listeners;we.nextTick;we.off;we.on;we.once;we.prependListener;we.prependOnceListener;we.removeAllListeners;we.removeListener;we.title;we.umask;we.version;we.versions});function zt(e){return e.call.bind(e)}function Or(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch{return!1}}function fo(e){return We&&Qe?tt(e)!==void 0:_o(e)||Io(e)||Po(e)||Bo(e)||To(e)||Oo(e)||No(e)||Lo(e)||Ro(e)||jo(e)||Uo(e)}function _o(e){return We&&Qe?tt(e)==="Uint8Array":Ae(e)==="[object Uint8Array]"||jp(e)&&e.buffer!==void 0}function Io(e){return We&&Qe?tt(e)==="Uint8ClampedArray":Ae(e)==="[object Uint8ClampedArray]"}function Po(e){return We&&Qe?tt(e)==="Uint16Array":Ae(e)==="[object Uint16Array]"}function Bo(e){return We&&Qe?tt(e)==="Uint32Array":Ae(e)==="[object Uint32Array]"}function To(e){return We&&Qe?tt(e)==="Int8Array":Ae(e)==="[object Int8Array]"}function Oo(e){return We&&Qe?tt(e)==="Int16Array":Ae(e)==="[object Int16Array]"}function No(e){return We&&Qe?tt(e)==="Int32Array":Ae(e)==="[object Int32Array]"}function Lo(e){return We&&Qe?tt(e)==="Float32Array":Ae(e)==="[object Float32Array]"}function Ro(e){return We&&Qe?tt(e)==="Float64Array":Ae(e)==="[object Float64Array]"}function jo(e){return We&&Qe?tt(e)==="BigInt64Array":Ae(e)==="[object BigInt64Array]"}function Uo(e){return We&&Qe?tt(e)==="BigUint64Array":Ae(e)==="[object BigUint64Array]"}function pi(e){return Ae(e)==="[object Map]"}function hi(e){return Ae(e)==="[object Set]"}function fi(e){return Ae(e)==="[object WeakMap]"}function ln(e){return Ae(e)==="[object WeakSet]"}function yi(e){return Ae(e)==="[object ArrayBuffer]"}function go(e){return typeof ArrayBuffer<"u"&&(yi.working?yi(e):e instanceof ArrayBuffer)}function Di(e){return Ae(e)==="[object DataView]"}function mo(e){return typeof DataView<"u"&&(Di.working?Di(e):e instanceof DataView)}function vi(e){return Ae(e)==="[object SharedArrayBuffer]"}function yo(e){return typeof SharedArrayBuffer<"u"&&(vi.working?vi(e):e instanceof SharedArrayBuffer)}function Do(e){return Or(e,qp)}function vo(e){return Or(e,Wp)}function bo(e){return Or(e,Gp)}function Eo(e){return So&&Or(e,zp)}function xo(e){return dn&&Or(e,Hp)}function Nt(e,t){var i={seen:[],stylize:Jp};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),gn(t)?i.showHidden=t:t&&N._extend(i,t),Gt(i.showHidden)&&(i.showHidden=!1),Gt(i.depth)&&(i.depth=2),Gt(i.colors)&&(i.colors=!1),Gt(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=Kp),bi(i,e,i.depth)}function Kp(e,t){var i=Nt.styles[t];return i?"\x1B["+Nt.colors[i][0]+"m"+e+"\x1B["+Nt.colors[i][1]+"m":e}function Jp(e,t){return e}function bi(e,t,i){if(e.customInspect&&t&&mi(t.inspect)&&t.inspect!==N.inspect&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(i,e);return Ei(n)||(n=bi(e,n,i)),n}var s=function(E,x){if(Gt(x))return E.stylize("undefined","undefined");if(Ei(x)){var v="'"+JSON.stringify(x).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return E.stylize(v,"string")}if(Vo(x))return E.stylize(""+x,"number");if(gn(x))return E.stylize(""+x,"boolean");if(Fi(x))return E.stylize("null","null")}(e,t);if(s)return s;var o=Object.keys(t),u=function(E){var x={};return E.forEach(function(v,k){x[v]=!0}),x}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Tr(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return cn(t);if(o.length===0){if(mi(t)){var p=t.name?": "+t.name:"";return e.stylize("[Function"+p+"]","special")}if(Br(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(xi(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Tr(t))return cn(t)}var m,D="",y=!1,F=["{","}"];return Mo(t)&&(y=!0,F=["[","]"]),mi(t)&&(D=" [Function"+(t.name?": "+t.name:"")+"]"),Br(t)&&(D=" "+RegExp.prototype.toString.call(t)),xi(t)&&(D=" "+Date.prototype.toUTCString.call(t)),Tr(t)&&(D=" "+cn(t)),o.length!==0||y&&t.length!=0?i<0?Br(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),m=y?function(E,x,v,k,I){for(var P=[],L=0,O=x.length;L<O;++L)qo(x,String(L))?P.push(pn(E,x,v,k,String(L),!0)):P.push("");return I.forEach(function(f){f.match(/^\d+$/)||P.push(pn(E,x,v,k,f,!0))}),P}(e,t,i,u,o):o.map(function(E){return pn(e,t,i,u,E,y)}),e.seen.pop(),function(E,x,v){var k=0;return E.reduce(function(I,P){return k++,P.indexOf(`
|
|
2
2
|
`)>=0&&k++,I+P.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?v[0]+(x===""?"":x+`
|
|
3
3
|
`)+" "+E.join(`,
|
|
4
|
-
`)+" "+v[1]:v[0]+x+" "+E.join(", ")+" "+v[1]}(m,D,F)):F[0]+D+F[1]}function cn(e){return"["+Error.prototype.toString.call(e)+"]"}function pn(e,t,i,n,s,o){var u,p,m;if((m=Object.getOwnPropertyDescriptor(t,s)||{value:t[s]}).get?p=m.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):m.set&&(p=e.stylize("[Setter]","special")),
|
|
4
|
+
`)+" "+v[1]:v[0]+x+" "+E.join(", ")+" "+v[1]}(m,D,F)):F[0]+D+F[1]}function cn(e){return"["+Error.prototype.toString.call(e)+"]"}function pn(e,t,i,n,s,o){var u,p,m;if((m=Object.getOwnPropertyDescriptor(t,s)||{value:t[s]}).get?p=m.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):m.set&&(p=e.stylize("[Setter]","special")),qo(n,s)||(u="["+s+"]"),p||(e.seen.indexOf(m.value)<0?(p=Fi(i)?bi(e,m.value,null):bi(e,m.value,i-1)).indexOf(`
|
|
5
5
|
`)>-1&&(p=o?p.split(`
|
|
6
6
|
`).map(function(D){return" "+D}).join(`
|
|
7
7
|
`).substr(2):`
|
|
8
8
|
`+p.split(`
|
|
9
9
|
`).map(function(D){return" "+D}).join(`
|
|
10
|
-
`)):p=e.stylize("[Circular]","special")),Gt(u)){if(o&&s.match(/^\d+$/))return p;(u=JSON.stringify(""+s)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=e.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=e.stylize(u,"string"))}return u+": "+p}function Vo(e){return Array.isArray(e)}function gn(e){return typeof e=="boolean"}function Fi(e){return e===null}function qo(e){return typeof e=="number"}function Ei(e){return typeof e=="string"}function Gt(e){return e===void 0}function Br(e){return dr(e)&&mn(e)==="[object RegExp]"}function dr(e){return typeof e=="object"&&e!==null}function xi(e){return dr(e)&&mn(e)==="[object Date]"}function Tr(e){return dr(e)&&(mn(e)==="[object Error]"||e instanceof Error)}function mi(e){return typeof e=="function"}function mn(e){return Object.prototype.toString.call(e)}function hn(e){return e<10?"0"+e.toString(10):e.toString(10)}function Xp(){var e=new Date,t=[hn(e.getHours()),hn(e.getMinutes()),hn(e.getSeconds())].join(":");return[e.getDate(),Yp[e.getMonth()],t].join(" ")}function Wo(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Zp(e,t){if(!e){var i=new Error("Promise was rejected with a falsy value");i.reason=e,e=i}return t(e)}var _p,fn,wi,ko,Ip,Pp,Bp,Tp,Op,Co,Ao,fo,Np,Lp,Rp,So,le,jp,Up,$p,_o,dn,Qe,We,Mp,Ae,qp,Wp,Gp,Pr,N,ct,Fo,Qp,di,Mo,gi,Yp,Wt,Nr=Tt(()=>{J();X();Y();Ir();_p=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",fn=Object.prototype.toString,wi=function(e){return!(_p&&e&&typeof e=="object"&&Symbol.toStringTag in e)&&fn.call(e)==="[object Arguments]"},ko=function(e){return!!wi(e)||e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&fn.call(e)!=="[object Array]"&&fn.call(e.callee)==="[object Function]"},Ip=function(){return wi(arguments)}();wi.isLegacyArguments=ko;Pp=Ip?wi:ko,Bp=Object.prototype.toString,Tp=Function.prototype.toString,Op=/^\s*(?:function)?\*/,Co=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Ao=Object.getPrototypeOf,fo=function(){if(!Co)return!1;try{return Function("return function*() {}")()}catch{}}(),Np=fo?Ao(fo):{},Lp=function(e){return typeof e=="function"&&(!!Op.test(Tp.call(e))||(Co?Ao(e)===Np:Bp.call(e)==="[object GeneratorFunction]"))},Rp=typeof Object.create=="function"?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}},So=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},le={},jp=So,Up=Pp,$p=Lp;_o=typeof BigInt<"u",dn=typeof Symbol<"u",Qe=dn&&Symbol.toStringTag!==void 0,We=typeof Uint8Array<"u",Mp=typeof ArrayBuffer<"u";if(We&&Qe)var Vp=Object.getPrototypeOf(Uint8Array.prototype),tt=zt(Object.getOwnPropertyDescriptor(Vp,Symbol.toStringTag).get);Ae=zt(Object.prototype.toString),qp=zt(Number.prototype.valueOf),Wp=zt(String.prototype.valueOf),Gp=zt(Boolean.prototype.valueOf);if(_o)var zp=zt(BigInt.prototype.valueOf);if(dn)var Hp=zt(Symbol.prototype.valueOf);le.isArgumentsObject=Up,le.isGeneratorFunction=$p,le.isPromise=function(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"},le.isArrayBufferView=function(e){return Mp&&ArrayBuffer.isView?ArrayBuffer.isView(e):go(e)||yo(e)},le.isTypedArray=go,le.isUint8Array=Io,le.isUint8ClampedArray=Po,le.isUint16Array=Bo,le.isUint32Array=To,le.isInt8Array=Oo,le.isInt16Array=No,le.isInt32Array=Lo,le.isFloat32Array=Ro,le.isFloat64Array=jo,le.isBigInt64Array=Uo,le.isBigUint64Array=$o,pi.working=typeof Map<"u"&&pi(new Map),le.isMap=function(e){return typeof Map<"u"&&(pi.working?pi(e):e instanceof Map)},hi.working=typeof Set<"u"&&hi(new Set),le.isSet=function(e){return typeof Set<"u"&&(hi.working?hi(e):e instanceof Set)},fi.working=typeof WeakMap<"u"&&fi(new WeakMap),le.isWeakMap=function(e){return typeof WeakMap<"u"&&(fi.working?fi(e):e instanceof WeakMap)},ln.working=typeof WeakSet<"u"&&ln(new WeakSet),le.isWeakSet=function(e){return ln(e)},yi.working=typeof ArrayBuffer<"u"&&yi(new ArrayBuffer),le.isArrayBuffer=mo,Di.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Di(new DataView(new ArrayBuffer(1),0,1)),le.isDataView=yo,vi.working=typeof SharedArrayBuffer<"u"&&vi(new SharedArrayBuffer),le.isSharedArrayBuffer=Do,le.isAsyncFunction=function(e){return Ae(e)==="[object AsyncFunction]"},le.isMapIterator=function(e){return Ae(e)==="[object Map Iterator]"},le.isSetIterator=function(e){return Ae(e)==="[object Set Iterator]"},le.isGeneratorObject=function(e){return Ae(e)==="[object Generator]"},le.isWebAssemblyCompiledModule=function(e){return Ae(e)==="[object WebAssembly.Module]"},le.isNumberObject=vo,le.isStringObject=bo,le.isBooleanObject=Eo,le.isBigIntObject=xo,le.isSymbolObject=wo,le.isBoxedPrimitive=function(e){return vo(e)||bo(e)||Eo(e)||xo(e)||wo(e)},le.isAnyArrayBuffer=function(e){return We&&(mo(e)||Do(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(le,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})});Pr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,N={},ct=we,Fo=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),i={},n=0;n<t.length;n++)i[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return i},Qp=/%[sdj%]/g;N.format=function(e){if(!Ei(e)){for(var t=[],i=0;i<arguments.length;i++)t.push(Nt(arguments[i]));return t.join(" ")}i=1;for(var n=arguments,s=n.length,o=String(e).replace(Qp,function(p){if(p==="%%")return"%";if(i>=s)return p;switch(p){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}default:return p}}),u=n[i];i<s;u=n[++i])Fi(u)||!dr(u)?o+=" "+u:o+=" "+Nt(u);return o},N.deprecate=function(e,t){if(ct!==void 0&&ct.noDeprecation===!0)return e;if(ct===void 0)return function(){return N.deprecate(e,t).apply(this||Pr,arguments)};var i=!1;return function(){if(!i){if(ct.throwDeprecation)throw new Error(t);ct.traceDeprecation?console.trace(t):console.error(t),i=!0}return e.apply(this||Pr,arguments)}};di={},Mo=/^$/;ct.env.NODE_DEBUG&&(gi=ct.env.NODE_DEBUG,gi=gi.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Mo=new RegExp("^"+gi+"$","i"));N.debuglog=function(e){if(e=e.toUpperCase(),!di[e])if(Mo.test(e)){var t=ct.pid;di[e]=function(){var i=N.format.apply(N,arguments);console.error("%s %d: %s",e,t,i)}}else di[e]=function(){};return di[e]},N.inspect=Nt,Nt.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]},Nt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},N.types=le,N.isArray=Vo,N.isBoolean=gn,N.isNull=Fi,N.isNullOrUndefined=function(e){return e==null},N.isNumber=qo,N.isString=Ei,N.isSymbol=function(e){return typeof e=="symbol"},N.isUndefined=Gt,N.isRegExp=Br,N.types.isRegExp=Br,N.isObject=dr,N.isDate=xi,N.types.isDate=xi,N.isError=Tr,N.types.isNativeError=Tr,N.isFunction=mi,N.isPrimitive=function(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||e===void 0},N.isBuffer=So;Yp=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];N.log=function(){console.log("%s - %s",Xp(),N.format.apply(N,arguments))},N.inherits=Rp,N._extend=function(e,t){if(!t||!dr(t))return e;for(var i=Object.keys(t),n=i.length;n--;)e[i[n]]=t[i[n]];return e};Wt=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;N.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(Wt&&e[Wt]){var t;if(typeof(t=e[Wt])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,Wt,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var i,n,s=new Promise(function(p,m){i=p,n=m}),o=[],u=0;u<arguments.length;u++)o.push(arguments[u]);o.push(function(p,m){p?n(p):i(m)});try{e.apply(this||Pr,o)}catch(p){n(p)}return s}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Wt&&Object.defineProperty(t,Wt,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,Fo(e))},N.promisify.custom=Wt,N.callbackify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function t(){for(var i=[],n=0;n<arguments.length;n++)i.push(arguments[n]);var s=i.pop();if(typeof s!="function")throw new TypeError("The last argument must be of type Function");var o=this||Pr,u=function(){return s.apply(o,arguments)};e.apply(this||Pr,i).then(function(p){ct.nextTick(u.bind(null,null,p))},function(p){ct.nextTick(Zp.bind(null,p,u))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,Fo(e)),t}});var Ru={};rn(Ru,{AssertionError:()=>Yh,deepEqual:()=>Xh,deepStrictEqual:()=>Zh,default:()=>ee,doesNotReject:()=>ef,doesNotThrow:()=>tf,equal:()=>rf,fail:()=>nf,ifError:()=>sf,notDeepEqual:()=>af,notDeepStrictEqual:()=>of,notEqual:()=>uf,notStrictEqual:()=>lf,ok:()=>cf,rejects:()=>pf,strict:()=>hf,strictEqual:()=>ff,throws:()=>df});function Go(e,t){if(e==null)throw new TypeError("Cannot convert first argument to object");for(var i=Object(e),n=1;n<arguments.length;n++){var s=arguments[n];if(s!=null)for(var o=Object.keys(Object(s)),u=0,p=o.length;u<p;u++){var m=o[u],D=Object.getOwnPropertyDescriptor(s,m);D!==void 0&&D.enumerable&&(i[m]=s[m])}}return i}function Nu(){if(nu)return wn;function e(D){return(e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y})(D)}function t(D,y){return!y||e(y)!=="object"&&typeof y!="function"?function(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}(D):y}function i(D){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)})(D)}function n(D,y){return(n=Object.setPrototypeOf||function(F,E){return F.__proto__=E,F})(D,y)}nu=!0;var s,o,u={};function p(D,y,F){F||(F=Error);var E=function(x){function v(k,I,P){var L;return function(O,f){if(!(O instanceof f))throw new TypeError("Cannot call a class as a function")}(this,v),(L=t(this,i(v).call(this,function(O,f,V){return typeof y=="string"?y:y(O,f,V)}(k,I,P)))).code=D,L}return function(k,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(I&&I.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),I&&n(k,I)}(v,x),v}(F);u[D]=E}function m(D,y){if(Array.isArray(D)){var F=D.length;return D=D.map(function(E){return String(E)}),F>2?"one of ".concat(y," ").concat(D.slice(0,F-1).join(", "),", or ")+D[F-1]:F===2?"one of ".concat(y," ").concat(D[0]," or ").concat(D[1]):"of ".concat(y," ").concat(D[0])}return"of ".concat(y," ").concat(String(D))}return p("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),p("ERR_INVALID_ARG_TYPE",function(D,y,F){var E,x,v;if(s===void 0&&(s=_n()),s(typeof D=="string","'name' must be a string"),typeof y=="string"&&(x="not ",y.substr(0,x.length)===x)?(E="must not be",y=y.replace(/^not /,"")):E="must be",function(I,P,L){return(L===void 0||L>I.length)&&(L=I.length),I.substring(L-P.length,L)===P}(D," argument"))v="The ".concat(D," ").concat(E," ").concat(m(y,"type"));else{var k=function(I,P,L){return typeof L!="number"&&(L=0),!(L+P.length>I.length)&&I.indexOf(P,L)!==-1}(D,".")?"property":"argument";v='The "'.concat(D,'" ').concat(k," ").concat(E," ").concat(m(y,"type"))}return v+=". Received type ".concat(e(F))},TypeError),p("ERR_INVALID_ARG_VALUE",function(D,y){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";o===void 0&&(o=N);var E=o.inspect(y);return E.length>128&&(E="".concat(E.slice(0,128),"...")),"The argument '".concat(D,"' ").concat(F,". Received ").concat(E)},TypeError),p("ERR_INVALID_RETURN_VALUE",function(D,y,F){var E;return E=F&&F.constructor&&F.constructor.name?"instance of ".concat(F.constructor.name):"type ".concat(e(F)),"Expected ".concat(D,' to be returned from the "').concat(y,'"')+" function but got ".concat(E,".")},TypeError),p("ERR_MISSING_ARGS",function(){for(var D=arguments.length,y=new Array(D),F=0;F<D;F++)y[F]=arguments[F];s===void 0&&(s=_n()),s(y.length>0,"At least one arg needs to be specified");var E="The ",x=y.length;switch(y=y.map(function(v){return'"'.concat(v,'"')}),x){case 1:E+="".concat(y[0]," argument");break;case 2:E+="".concat(y[0]," and ").concat(y[1]," arguments");break;default:E+=y.slice(0,x-1).join(", "),E+=", and ".concat(y[x-1]," arguments")}return"".concat(E," must be specified")},TypeError),wn.codes=u,wn}function jh(){if(au)return su;au=!0;var e=we;function t($,M,G){return M in $?Object.defineProperty($,M,{value:G,enumerable:!0,configurable:!0,writable:!0}):$[M]=G,$}function i($,M){for(var G=0;G<M.length;G++){var ne=M[G];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty($,ne.key,ne)}}function n($,M){return!M||y(M)!=="object"&&typeof M!="function"?s($):M}function s($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function o($){var M=typeof Map=="function"?new Map:void 0;return(o=function(G){if(G===null||(ne=G,Function.toString.call(ne).indexOf("[native code]")===-1))return G;var ne;if(typeof G!="function")throw new TypeError("Super expression must either be null or a function");if(M!==void 0){if(M.has(G))return M.get(G);M.set(G,Z)}function Z(){return p(G,arguments,D(this).constructor)}return Z.prototype=Object.create(G.prototype,{constructor:{value:Z,enumerable:!1,writable:!0,configurable:!0}}),m(Z,G)})($)}function u(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function p($,M,G){return(p=u()?Reflect.construct:function(ne,Z,re){var se=[null];se.push.apply(se,Z);var ie=new(Function.bind.apply(ne,se));return re&&m(ie,re.prototype),ie}).apply(null,arguments)}function m($,M){return(m=Object.setPrototypeOf||function(G,ne){return G.__proto__=ne,G})($,M)}function D($){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(M){return M.__proto__||Object.getPrototypeOf(M)})($)}function y($){return(y=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})($)}var F=N.inspect,E=Nu().codes.ERR_INVALID_ARG_TYPE;function x($,M,G){return(G===void 0||G>$.length)&&(G=$.length),$.substring(G-M.length,G)===M}var v="",k="",I="",P="",L={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:"};function O($){var M=Object.keys($),G=Object.create(Object.getPrototypeOf($));return M.forEach(function(ne){G[ne]=$[ne]}),Object.defineProperty(G,"message",{value:$.message}),G}function f($){return F($,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function V($,M,G){var ne="",Z="",re=0,se="",ie=!1,fe=f($),Q=fe.split(`
|
|
10
|
+
`)):p=e.stylize("[Circular]","special")),Gt(u)){if(o&&s.match(/^\d+$/))return p;(u=JSON.stringify(""+s)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=e.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=e.stylize(u,"string"))}return u+": "+p}function Mo(e){return Array.isArray(e)}function gn(e){return typeof e=="boolean"}function Fi(e){return e===null}function Vo(e){return typeof e=="number"}function Ei(e){return typeof e=="string"}function Gt(e){return e===void 0}function Br(e){return dr(e)&&mn(e)==="[object RegExp]"}function dr(e){return typeof e=="object"&&e!==null}function xi(e){return dr(e)&&mn(e)==="[object Date]"}function Tr(e){return dr(e)&&(mn(e)==="[object Error]"||e instanceof Error)}function mi(e){return typeof e=="function"}function mn(e){return Object.prototype.toString.call(e)}function hn(e){return e<10?"0"+e.toString(10):e.toString(10)}function Xp(){var e=new Date,t=[hn(e.getHours()),hn(e.getMinutes()),hn(e.getSeconds())].join(":");return[e.getDate(),Yp[e.getMonth()],t].join(" ")}function qo(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Zp(e,t){if(!e){var i=new Error("Promise was rejected with a falsy value");i.reason=e,e=i}return t(e)}var _p,fn,wi,Fo,Ip,Pp,Bp,Tp,Op,ko,Co,ho,Np,Lp,Rp,Ao,le,jp,Up,$p,So,dn,Qe,We,Mp,Ae,qp,Wp,Gp,Pr,N,ct,wo,Qp,di,$o,gi,Yp,Wt,Nr=Tt(()=>{J();X();Y();Ir();_p=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",fn=Object.prototype.toString,wi=function(e){return!(_p&&e&&typeof e=="object"&&Symbol.toStringTag in e)&&fn.call(e)==="[object Arguments]"},Fo=function(e){return!!wi(e)||e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&fn.call(e)!=="[object Array]"&&fn.call(e.callee)==="[object Function]"},Ip=function(){return wi(arguments)}();wi.isLegacyArguments=Fo;Pp=Ip?wi:Fo,Bp=Object.prototype.toString,Tp=Function.prototype.toString,Op=/^\s*(?:function)?\*/,ko=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Co=Object.getPrototypeOf,ho=function(){if(!ko)return!1;try{return Function("return function*() {}")()}catch{}}(),Np=ho?Co(ho):{},Lp=function(e){return typeof e=="function"&&(!!Op.test(Tp.call(e))||(ko?Co(e)===Np:Bp.call(e)==="[object GeneratorFunction]"))},Rp=typeof Object.create=="function"?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}},Ao=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},le={},jp=Ao,Up=Pp,$p=Lp;So=typeof BigInt<"u",dn=typeof Symbol<"u",Qe=dn&&Symbol.toStringTag!==void 0,We=typeof Uint8Array<"u",Mp=typeof ArrayBuffer<"u";if(We&&Qe)var Vp=Object.getPrototypeOf(Uint8Array.prototype),tt=zt(Object.getOwnPropertyDescriptor(Vp,Symbol.toStringTag).get);Ae=zt(Object.prototype.toString),qp=zt(Number.prototype.valueOf),Wp=zt(String.prototype.valueOf),Gp=zt(Boolean.prototype.valueOf);if(So)var zp=zt(BigInt.prototype.valueOf);if(dn)var Hp=zt(Symbol.prototype.valueOf);le.isArgumentsObject=Up,le.isGeneratorFunction=$p,le.isPromise=function(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"},le.isArrayBufferView=function(e){return Mp&&ArrayBuffer.isView?ArrayBuffer.isView(e):fo(e)||mo(e)},le.isTypedArray=fo,le.isUint8Array=_o,le.isUint8ClampedArray=Io,le.isUint16Array=Po,le.isUint32Array=Bo,le.isInt8Array=To,le.isInt16Array=Oo,le.isInt32Array=No,le.isFloat32Array=Lo,le.isFloat64Array=Ro,le.isBigInt64Array=jo,le.isBigUint64Array=Uo,pi.working=typeof Map<"u"&&pi(new Map),le.isMap=function(e){return typeof Map<"u"&&(pi.working?pi(e):e instanceof Map)},hi.working=typeof Set<"u"&&hi(new Set),le.isSet=function(e){return typeof Set<"u"&&(hi.working?hi(e):e instanceof Set)},fi.working=typeof WeakMap<"u"&&fi(new WeakMap),le.isWeakMap=function(e){return typeof WeakMap<"u"&&(fi.working?fi(e):e instanceof WeakMap)},ln.working=typeof WeakSet<"u"&&ln(new WeakSet),le.isWeakSet=function(e){return ln(e)},yi.working=typeof ArrayBuffer<"u"&&yi(new ArrayBuffer),le.isArrayBuffer=go,Di.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Di(new DataView(new ArrayBuffer(1),0,1)),le.isDataView=mo,vi.working=typeof SharedArrayBuffer<"u"&&vi(new SharedArrayBuffer),le.isSharedArrayBuffer=yo,le.isAsyncFunction=function(e){return Ae(e)==="[object AsyncFunction]"},le.isMapIterator=function(e){return Ae(e)==="[object Map Iterator]"},le.isSetIterator=function(e){return Ae(e)==="[object Set Iterator]"},le.isGeneratorObject=function(e){return Ae(e)==="[object Generator]"},le.isWebAssemblyCompiledModule=function(e){return Ae(e)==="[object WebAssembly.Module]"},le.isNumberObject=Do,le.isStringObject=vo,le.isBooleanObject=bo,le.isBigIntObject=Eo,le.isSymbolObject=xo,le.isBoxedPrimitive=function(e){return Do(e)||vo(e)||bo(e)||Eo(e)||xo(e)},le.isAnyArrayBuffer=function(e){return We&&(go(e)||yo(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(le,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})});Pr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,N={},ct=we,wo=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),i={},n=0;n<t.length;n++)i[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return i},Qp=/%[sdj%]/g;N.format=function(e){if(!Ei(e)){for(var t=[],i=0;i<arguments.length;i++)t.push(Nt(arguments[i]));return t.join(" ")}i=1;for(var n=arguments,s=n.length,o=String(e).replace(Qp,function(p){if(p==="%%")return"%";if(i>=s)return p;switch(p){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}default:return p}}),u=n[i];i<s;u=n[++i])Fi(u)||!dr(u)?o+=" "+u:o+=" "+Nt(u);return o},N.deprecate=function(e,t){if(ct!==void 0&&ct.noDeprecation===!0)return e;if(ct===void 0)return function(){return N.deprecate(e,t).apply(this||Pr,arguments)};var i=!1;return function(){if(!i){if(ct.throwDeprecation)throw new Error(t);ct.traceDeprecation?console.trace(t):console.error(t),i=!0}return e.apply(this||Pr,arguments)}};di={},$o=/^$/;ct.env.NODE_DEBUG&&(gi=ct.env.NODE_DEBUG,gi=gi.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),$o=new RegExp("^"+gi+"$","i"));N.debuglog=function(e){if(e=e.toUpperCase(),!di[e])if($o.test(e)){var t=ct.pid;di[e]=function(){var i=N.format.apply(N,arguments);console.error("%s %d: %s",e,t,i)}}else di[e]=function(){};return di[e]},N.inspect=Nt,Nt.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]},Nt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},N.types=le,N.isArray=Mo,N.isBoolean=gn,N.isNull=Fi,N.isNullOrUndefined=function(e){return e==null},N.isNumber=Vo,N.isString=Ei,N.isSymbol=function(e){return typeof e=="symbol"},N.isUndefined=Gt,N.isRegExp=Br,N.types.isRegExp=Br,N.isObject=dr,N.isDate=xi,N.types.isDate=xi,N.isError=Tr,N.types.isNativeError=Tr,N.isFunction=mi,N.isPrimitive=function(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||e===void 0},N.isBuffer=Ao;Yp=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];N.log=function(){console.log("%s - %s",Xp(),N.format.apply(N,arguments))},N.inherits=Rp,N._extend=function(e,t){if(!t||!dr(t))return e;for(var i=Object.keys(t),n=i.length;n--;)e[i[n]]=t[i[n]];return e};Wt=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;N.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(Wt&&e[Wt]){var t;if(typeof(t=e[Wt])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,Wt,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var i,n,s=new Promise(function(p,m){i=p,n=m}),o=[],u=0;u<arguments.length;u++)o.push(arguments[u]);o.push(function(p,m){p?n(p):i(m)});try{e.apply(this||Pr,o)}catch(p){n(p)}return s}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Wt&&Object.defineProperty(t,Wt,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,wo(e))},N.promisify.custom=Wt,N.callbackify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function t(){for(var i=[],n=0;n<arguments.length;n++)i.push(arguments[n]);var s=i.pop();if(typeof s!="function")throw new TypeError("The last argument must be of type Function");var o=this||Pr,u=function(){return s.apply(o,arguments)};e.apply(this||Pr,i).then(function(p){ct.nextTick(u.bind(null,null,p))},function(p){ct.nextTick(Zp.bind(null,p,u))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,wo(e)),t}});var Lu={};rn(Lu,{AssertionError:()=>Yh,deepEqual:()=>Xh,deepStrictEqual:()=>Zh,default:()=>ee,doesNotReject:()=>ef,doesNotThrow:()=>tf,equal:()=>rf,fail:()=>nf,ifError:()=>sf,notDeepEqual:()=>af,notDeepStrictEqual:()=>of,notEqual:()=>uf,notStrictEqual:()=>lf,ok:()=>cf,rejects:()=>pf,strict:()=>hf,strictEqual:()=>ff,throws:()=>df});function Wo(e,t){if(e==null)throw new TypeError("Cannot convert first argument to object");for(var i=Object(e),n=1;n<arguments.length;n++){var s=arguments[n];if(s!=null)for(var o=Object.keys(Object(s)),u=0,p=o.length;u<p;u++){var m=o[u],D=Object.getOwnPropertyDescriptor(s,m);D!==void 0&&D.enumerable&&(i[m]=s[m])}}return i}function Ou(){if(iu)return wn;function e(D){return(e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y})(D)}function t(D,y){return!y||e(y)!=="object"&&typeof y!="function"?function(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}(D):y}function i(D){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)})(D)}function n(D,y){return(n=Object.setPrototypeOf||function(F,E){return F.__proto__=E,F})(D,y)}iu=!0;var s,o,u={};function p(D,y,F){F||(F=Error);var E=function(x){function v(k,I,P){var L;return function(O,f){if(!(O instanceof f))throw new TypeError("Cannot call a class as a function")}(this,v),(L=t(this,i(v).call(this,function(O,f,V){return typeof y=="string"?y:y(O,f,V)}(k,I,P)))).code=D,L}return function(k,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(I&&I.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),I&&n(k,I)}(v,x),v}(F);u[D]=E}function m(D,y){if(Array.isArray(D)){var F=D.length;return D=D.map(function(E){return String(E)}),F>2?"one of ".concat(y," ").concat(D.slice(0,F-1).join(", "),", or ")+D[F-1]:F===2?"one of ".concat(y," ").concat(D[0]," or ").concat(D[1]):"of ".concat(y," ").concat(D[0])}return"of ".concat(y," ").concat(String(D))}return p("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),p("ERR_INVALID_ARG_TYPE",function(D,y,F){var E,x,v;if(s===void 0&&(s=_n()),s(typeof D=="string","'name' must be a string"),typeof y=="string"&&(x="not ",y.substr(0,x.length)===x)?(E="must not be",y=y.replace(/^not /,"")):E="must be",function(I,P,L){return(L===void 0||L>I.length)&&(L=I.length),I.substring(L-P.length,L)===P}(D," argument"))v="The ".concat(D," ").concat(E," ").concat(m(y,"type"));else{var k=function(I,P,L){return typeof L!="number"&&(L=0),!(L+P.length>I.length)&&I.indexOf(P,L)!==-1}(D,".")?"property":"argument";v='The "'.concat(D,'" ').concat(k," ").concat(E," ").concat(m(y,"type"))}return v+=". Received type ".concat(e(F))},TypeError),p("ERR_INVALID_ARG_VALUE",function(D,y){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";o===void 0&&(o=N);var E=o.inspect(y);return E.length>128&&(E="".concat(E.slice(0,128),"...")),"The argument '".concat(D,"' ").concat(F,". Received ").concat(E)},TypeError),p("ERR_INVALID_RETURN_VALUE",function(D,y,F){var E;return E=F&&F.constructor&&F.constructor.name?"instance of ".concat(F.constructor.name):"type ".concat(e(F)),"Expected ".concat(D,' to be returned from the "').concat(y,'"')+" function but got ".concat(E,".")},TypeError),p("ERR_MISSING_ARGS",function(){for(var D=arguments.length,y=new Array(D),F=0;F<D;F++)y[F]=arguments[F];s===void 0&&(s=_n()),s(y.length>0,"At least one arg needs to be specified");var E="The ",x=y.length;switch(y=y.map(function(v){return'"'.concat(v,'"')}),x){case 1:E+="".concat(y[0]," argument");break;case 2:E+="".concat(y[0]," and ").concat(y[1]," arguments");break;default:E+=y.slice(0,x-1).join(", "),E+=", and ".concat(y[x-1]," arguments")}return"".concat(E," must be specified")},TypeError),wn.codes=u,wn}function jh(){if(su)return nu;su=!0;var e=we;function t($,M,G){return M in $?Object.defineProperty($,M,{value:G,enumerable:!0,configurable:!0,writable:!0}):$[M]=G,$}function i($,M){for(var G=0;G<M.length;G++){var ne=M[G];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty($,ne.key,ne)}}function n($,M){return!M||y(M)!=="object"&&typeof M!="function"?s($):M}function s($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function o($){var M=typeof Map=="function"?new Map:void 0;return(o=function(G){if(G===null||(ne=G,Function.toString.call(ne).indexOf("[native code]")===-1))return G;var ne;if(typeof G!="function")throw new TypeError("Super expression must either be null or a function");if(M!==void 0){if(M.has(G))return M.get(G);M.set(G,Z)}function Z(){return p(G,arguments,D(this).constructor)}return Z.prototype=Object.create(G.prototype,{constructor:{value:Z,enumerable:!1,writable:!0,configurable:!0}}),m(Z,G)})($)}function u(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function p($,M,G){return(p=u()?Reflect.construct:function(ne,Z,re){var se=[null];se.push.apply(se,Z);var ie=new(Function.bind.apply(ne,se));return re&&m(ie,re.prototype),ie}).apply(null,arguments)}function m($,M){return(m=Object.setPrototypeOf||function(G,ne){return G.__proto__=ne,G})($,M)}function D($){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(M){return M.__proto__||Object.getPrototypeOf(M)})($)}function y($){return(y=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})($)}var F=N.inspect,E=Ou().codes.ERR_INVALID_ARG_TYPE;function x($,M,G){return(G===void 0||G>$.length)&&(G=$.length),$.substring(G-M.length,G)===M}var v="",k="",I="",P="",L={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:"};function O($){var M=Object.keys($),G=Object.create(Object.getPrototypeOf($));return M.forEach(function(ne){G[ne]=$[ne]}),Object.defineProperty(G,"message",{value:$.message}),G}function f($){return F($,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function V($,M,G){var ne="",Z="",re=0,se="",ie=!1,fe=f($),Q=fe.split(`
|
|
11
11
|
`),B=f(M).split(`
|
|
12
12
|
`),S=0,j="";if(G==="strictEqual"&&y($)==="object"&&y(M)==="object"&&$!==null&&M!==null&&(G="strictEqualObject"),Q.length===1&&B.length===1&&Q[0]!==B[0]){var U=Q[0].length+B[0].length;if(U<=10){if(!(y($)==="object"&&$!==null||y(M)==="object"&&M!==null||$===0&&M===0))return"".concat(L[G],`
|
|
13
13
|
|
|
@@ -53,18 +53,18 @@ var pluginPug=(()=>{var Dp=Object.create;var si=Object.defineProperty;var vp=Obj
|
|
|
53
53
|
|
|
54
54
|
should equal
|
|
55
55
|
|
|
56
|
-
`):z=" ".concat(ie," ").concat(z)),re=n(this,D(M).call(this,"".concat(q).concat(z)))}return Error.stackTraceLimit=S,re.generatedMessage=!se,Object.defineProperty(s(re),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),re.code="ERR_ASSERTION",re.actual=Q,re.expected=B,re.operator=ie,Error.captureStackTrace&&Error.captureStackTrace(s(re),fe),re.stack,re.name="AssertionError",n(re)}var G,ne;return function(Z,re){if(typeof re!="function"&&re!==null)throw new TypeError("Super expression must either be null or a function");Z.prototype=Object.create(re&&re.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),re&&m(Z,re)}(M,$),G=M,(ne=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:F.custom,value:function(Z,re){return F(this,function(se){for(var ie=1;ie<arguments.length;ie++){var fe=arguments[ie]!=null?arguments[ie]:{},Q=Object.keys(fe);typeof Object.getOwnPropertySymbols=="function"&&(Q=Q.concat(Object.getOwnPropertySymbols(fe).filter(function(B){return Object.getOwnPropertyDescriptor(fe,B).enumerable}))),Q.forEach(function(B){t(se,B,fe[B])})}return se}({},re,{customInspect:!1,depth:0}))}}])&&i(G.prototype,ne),M}(o(Error));return su=te}function ou(e,t){return function(i){if(Array.isArray(i))return i}(e)||function(i,n){var s=[],o=!0,u=!1,p=void 0;try{for(var m,D=i[Symbol.iterator]();!(o=(m=D.next()).done)&&(s.push(m.value),!n||s.length!==n);o=!0);}catch(y){u=!0,p=y}finally{try{o||D.return==null||D.return()}finally{if(u)throw p}}return s}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ot(e){return(ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Bn(e){return e.call.bind(e)}function Hh(e){if(e.length===0||e.length>10)return!0;for(var t=0;t<e.length;t++){var i=e.charCodeAt(t);if(i<48||i>57)return!0}return e.length===10&&e>=Math.pow(2,32)}function Si(e){return Object.keys(e).filter(Hh).concat(Ii(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function yu(e,t){if(e===t)return 0;for(var i=e.length,n=t.length,s=0,o=Math.min(i,n);s<o;++s)if(e[s]!==t[s]){i=e[s],n=t[s];break}return i<n?-1:n<i?1:0}function rt(e,t,i,n){if(e===t)return e!==0||!i||lu(e,t);if(i){if(ot(e)!=="object")return typeof e=="number"&&Sn(e)&&Sn(t);if(ot(t)!=="object"||e===null||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(e===null||ot(e)!=="object")return(t===null||ot(t)!=="object")&&e==t;if(t===null||ot(t)!=="object")return!1}var s,o,u,p,m=cu(e);if(m!==cu(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var D=Si(e),y=Si(t);return D.length===y.length&&jr(e,t,i,n,1,D)}if(m==="[object Object]"&&(!Ci(e)&&Ci(t)||!Ai(e)&&Ai(t)))return!1;if(pu(e)){if(!pu(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(hu(e)){if(!hu(t)||(u=e,p=t,!(Uh?u.source===p.source&&u.flags===p.flags:RegExp.prototype.toString.call(u)===RegExp.prototype.toString.call(p))))return!1}else if(Vh(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(Mh(e)){if(i||!Gh(e)&&!zh(e)){if(!function(x,v){return x.byteLength===v.byteLength&&yu(new Uint8Array(x.buffer,x.byteOffset,x.byteLength),new Uint8Array(v.buffer,v.byteOffset,v.byteLength))===0}(e,t))return!1}else if(!function(x,v){if(x.byteLength!==v.byteLength)return!1;for(var k=0;k<x.byteLength;k++)if(x[k]!==v[k])return!1;return!0}(e,t))return!1;var F=Si(e),E=Si(t);return F.length===E.length&&jr(e,t,i,n,0,F)}if(Ai(e))return!(!Ai(t)||e.size!==t.size)&&jr(e,t,i,n,2);if(Ci(e))return!(!Ci(t)||e.size!==t.size)&&jr(e,t,i,n,3);if($h(e)){if(o=t,(s=e).byteLength!==o.byteLength||yu(new Uint8Array(s),new Uint8Array(o))!==0)return!1}else if(qh(e)&&!function(x,v){return fu(x)?fu(v)&&lu(Number.prototype.valueOf.call(x),Number.prototype.valueOf.call(v)):du(x)?du(v)&&String.prototype.valueOf.call(x)===String.prototype.valueOf.call(v):gu(x)?gu(v)&&Boolean.prototype.valueOf.call(x)===Boolean.prototype.valueOf.call(v):mu(x)?mu(v)&&BigInt.prototype.valueOf.call(x)===BigInt.prototype.valueOf.call(v):Wh(v)&&Symbol.prototype.valueOf.call(x)===Symbol.prototype.valueOf.call(v)}(e,t))return!1}return jr(e,t,i,n,0)}function Du(e,t){return t.filter(function(i){return Pi(e,i)})}function jr(e,t,i,n,s,o){if(arguments.length===5){o=Object.keys(e);var u=Object.keys(t);if(o.length!==u.length)return!1}for(var p=0;p<o.length;p++)if(!Ur(t,o[p]))return!1;if(i&&arguments.length===5){var m=Ii(e);if(m.length!==0){var D=0;for(p=0;p<m.length;p++){var y=m[p];if(Pi(e,y)){if(!Pi(t,y))return!1;o.push(y),D++}else if(Pi(t,y))return!1}var F=Ii(t);if(m.length!==F.length&&Du(t,F).length!==D)return!1}else{var E=Ii(t);if(E.length!==0&&Du(t,E).length!==0)return!1}}if(o.length===0&&(s===0||s===1&&e.length===0||e.size===0))return!0;if(n===void 0)n={val1:new Map,val2:new Map,position:0};else{var x=n.val1.get(e);if(x!==void 0){var v=n.val2.get(t);if(v!==void 0)return x===v}n.position++}n.val1.set(e,n.position),n.val2.set(t,n.position);var k=Jh(e,t,i,o,n,s);return n.val1.delete(e),n.val2.delete(t),k}function vu(e,t,i,n){for(var s=Bi(e),o=0;o<s.length;o++){var u=s[o];if(rt(t,u,i,n))return e.delete(u),!0}return!1}function Lu(e){switch(ot(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(Sn(e))return!1}return!0}function Qh(e,t,i){var n=Lu(i);return n??(t.has(n)&&!e.has(n))}function Kh(e,t,i,n,s){var o=Lu(i);if(o!=null)return o;var u=t.get(o);return!(u===void 0&&!t.has(o)||!rt(n,u,!1,s))&&!e.has(o)&&rt(n,u,!1,s)}function bu(e,t,i,n,s,o){for(var u=Bi(e),p=0;p<u.length;p++){var m=u[p];if(rt(i,m,s,o)&&rt(n,t.get(m),s,o))return e.delete(m),!0}return!1}function Jh(e,t,i,n,s,o){var u=0;if(o===2){if(!function(y,F,E,x){for(var v=null,k=Bi(y),I=0;I<k.length;I++){var P=k[I];if(ot(P)==="object"&&P!==null)v===null&&(v=new Set),v.add(P);else if(!F.has(P)){if(E||!Qh(y,F,P))return!1;v===null&&(v=new Set),v.add(P)}}if(v!==null){for(var L=Bi(F),O=0;O<L.length;O++){var f=L[O];if(ot(f)==="object"&&f!==null){if(!vu(v,f,E,x))return!1}else if(!E&&!y.has(f)&&!vu(v,f,E,x))return!1}return v.size===0}return!0}(e,t,i,s))return!1}else if(o===3){if(!function(y,F,E,x){for(var v=null,k=uu(y),I=0;I<k.length;I++){var P=ou(k[I],2),L=P[0],O=P[1];if(ot(L)==="object"&&L!==null)v===null&&(v=new Set),v.add(L);else{var f=F.get(L);if(f===void 0&&!F.has(L)||!rt(O,f,E,x)){if(E||!Kh(y,F,L,O,x))return!1;v===null&&(v=new Set),v.add(L)}}}if(v!==null){for(var V=uu(F),te=0;te<V.length;te++){var $=ou(V[te],2),M=(L=$[0],$[1]);if(ot(L)==="object"&&L!==null){if(!bu(v,y,L,M,E,x))return!1}else if(!(E||y.has(L)&&rt(y.get(L),M,!1,x)||bu(v,y,L,M,!1,x)))return!1}return v.size===0}return!0}(e,t,i,s))return!1}else if(o===1)for(;u<e.length;u++){if(!Ur(e,u)){if(Ur(t,u))return!1;for(var p=Object.keys(e);u<p.length;u++){var m=p[u];if(!Ur(t,m)||!rt(e[m],t[m],i,s))return!1}return p.length===Object.keys(t).length}if(!Ur(t,u)||!rt(e[u],t[u],i,s))return!1}for(u=0;u<n.length;u++){var D=n[u];if(!rt(e[D],t[D],i,s))return!1}return!0}function _n(){if(xu)return Fn;xu=!0;var e=we;function t(B){return(t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S})(B)}var i,n,s=Nu().codes,o=s.ERR_AMBIGUOUS_ARGUMENT,u=s.ERR_INVALID_ARG_TYPE,p=s.ERR_INVALID_ARG_VALUE,m=s.ERR_INVALID_RETURN_VALUE,D=s.ERR_MISSING_ARGS,y=jh(),F=N.inspect,E=N.types,x=E.isPromise,v=E.isRegExp,k=Object.assign?Object.assign:eh.assign,I=Object.is?Object.is:Bu;function P(){i=Eu.isDeepEqual,n=Eu.isDeepStrictEqual}var L=!1,O=Fn=$,f={};function V(B){throw B.message instanceof Error?B.message:new y(B)}function te(B,S,j,U){if(!j){var q=!1;if(S===0)q=!0,U="No value argument passed to `assert.ok()`";else if(U instanceof Error)throw U;var z=new y({actual:j,expected:!0,message:U,operator:"==",stackStartFn:B});throw z.generatedMessage=q,z}}function $(){for(var B=arguments.length,S=new Array(B),j=0;j<B;j++)S[j]=arguments[j];te.apply(void 0,[$,S.length].concat(S))}O.fail=function B(S,j,U,q,z){var de,Ce=arguments.length;if(Ce===0)de="Failed";else if(Ce===1)U=S,S=void 0;else{if(L===!1){L=!0;var ye=e.emitWarning?e.emitWarning:console.warn.bind(console);ye("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}Ce===2&&(q="!=")}if(U instanceof Error)throw U;var st={actual:S,expected:j,operator:q===void 0?"fail":q,stackStartFn:z||B};U!==void 0&&(st.message=U);var $e=new y(st);throw de&&($e.message=de,$e.generatedMessage=!0),$e},O.AssertionError=y,O.ok=$,O.equal=function B(S,j,U){if(arguments.length<2)throw new D("actual","expected");S!=j&&V({actual:S,expected:j,message:U,operator:"==",stackStartFn:B})},O.notEqual=function B(S,j,U){if(arguments.length<2)throw new D("actual","expected");S==j&&V({actual:S,expected:j,message:U,operator:"!=",stackStartFn:B})},O.deepEqual=function B(S,j,U){if(arguments.length<2)throw new D("actual","expected");i===void 0&&P(),i(S,j)||V({actual:S,expected:j,message:U,operator:"deepEqual",stackStartFn:B})},O.notDeepEqual=function B(S,j,U){if(arguments.length<2)throw new D("actual","expected");i===void 0&&P(),i(S,j)&&V({actual:S,expected:j,message:U,operator:"notDeepEqual",stackStartFn:B})},O.deepStrictEqual=function B(S,j,U){if(arguments.length<2)throw new D("actual","expected");i===void 0&&P(),n(S,j)||V({actual:S,expected:j,message:U,operator:"deepStrictEqual",stackStartFn:B})},O.notDeepStrictEqual=function B(S,j,U){if(arguments.length<2)throw new D("actual","expected");i===void 0&&P(),n(S,j)&&V({actual:S,expected:j,message:U,operator:"notDeepStrictEqual",stackStartFn:B})},O.strictEqual=function B(S,j,U){if(arguments.length<2)throw new D("actual","expected");I(S,j)||V({actual:S,expected:j,message:U,operator:"strictEqual",stackStartFn:B})},O.notStrictEqual=function B(S,j,U){if(arguments.length<2)throw new D("actual","expected");I(S,j)&&V({actual:S,expected:j,message:U,operator:"notStrictEqual",stackStartFn:B})};var M=function B(S,j,U){var q=this;(function(z,de){if(!(z instanceof de))throw new TypeError("Cannot call a class as a function")})(this,B),j.forEach(function(z){z in S&&(U!==void 0&&typeof U[z]=="string"&&v(S[z])&&S[z].test(U[z])?q[z]=U[z]:q[z]=S[z])})};function G(B,S,j,U,q,z){if(!(j in B)||!n(B[j],S[j])){if(!U){var de=new M(B,q),Ce=new M(S,q,B),ye=new y({actual:de,expected:Ce,operator:"deepStrictEqual",stackStartFn:z});throw ye.actual=B,ye.expected=S,ye.operator=z.name,ye}V({actual:B,expected:S,message:U,operator:z.name,stackStartFn:z})}}function ne(B,S,j,U){if(typeof S!="function"){if(v(S))return S.test(B);if(arguments.length===2)throw new u("expected",["Function","RegExp"],S);if(t(B)!=="object"||B===null){var q=new y({actual:B,expected:S,message:j,operator:"deepStrictEqual",stackStartFn:U});throw q.operator=U.name,q}var z=Object.keys(S);if(S instanceof Error)z.push("name","message");else if(z.length===0)throw new p("error",S,"may not be an empty object");return i===void 0&&P(),z.forEach(function(de){typeof B[de]=="string"&&v(S[de])&&S[de].test(B[de])||G(B,S,de,j,z,U)}),!0}return S.prototype!==void 0&&B instanceof S||!Error.isPrototypeOf(S)&&S.call({},B)===!0}function Z(B){if(typeof B!="function")throw new u("fn","Function",B);try{B()}catch(S){return S}return f}function re(B){return x(B)||B!==null&&t(B)==="object"&&typeof B.then=="function"&&typeof B.catch=="function"}function se(B){return Promise.resolve().then(function(){var S;if(typeof B=="function"){if(!re(S=B()))throw new m("instance of Promise","promiseFn",S)}else{if(!re(B))throw new u("promiseFn",["Function","Promise"],B);S=B}return Promise.resolve().then(function(){return S}).then(function(){return f}).catch(function(j){return j})})}function ie(B,S,j,U){if(typeof j=="string"){if(arguments.length===4)throw new u("error",["Object","Error","Function","RegExp"],j);if(t(S)==="object"&&S!==null){if(S.message===j)throw new o("error/message",'The error message "'.concat(S.message,'" is identical to the message.'))}else if(S===j)throw new o("error/message",'The error "'.concat(S,'" is identical to the message.'));U=j,j=void 0}else if(j!=null&&t(j)!=="object"&&typeof j!="function")throw new u("error",["Object","Error","Function","RegExp"],j);if(S===f){var q="";j&&j.name&&(q+=" (".concat(j.name,")")),q+=U?": ".concat(U):".";var z=B.name==="rejects"?"rejection":"exception";V({actual:void 0,expected:j,operator:B.name,message:"Missing expected ".concat(z).concat(q),stackStartFn:B})}if(j&&!ne(S,j,U,B))throw S}function fe(B,S,j,U){if(S!==f){if(typeof j=="string"&&(U=j,j=void 0),!j||ne(S,j)){var q=U?": ".concat(U):".",z=B.name==="doesNotReject"?"rejection":"exception";V({actual:S,expected:j,operator:B.name,message:"Got unwanted ".concat(z).concat(q,`
|
|
56
|
+
`):z=" ".concat(ie," ").concat(z)),re=n(this,D(M).call(this,"".concat(q).concat(z)))}return Error.stackTraceLimit=S,re.generatedMessage=!se,Object.defineProperty(s(re),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),re.code="ERR_ASSERTION",re.actual=Q,re.expected=B,re.operator=ie,Error.captureStackTrace&&Error.captureStackTrace(s(re),fe),re.stack,re.name="AssertionError",n(re)}var G,ne;return function(Z,re){if(typeof re!="function"&&re!==null)throw new TypeError("Super expression must either be null or a function");Z.prototype=Object.create(re&&re.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),re&&m(Z,re)}(M,$),G=M,(ne=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:F.custom,value:function(Z,re){return F(this,function(se){for(var ie=1;ie<arguments.length;ie++){var fe=arguments[ie]!=null?arguments[ie]:{},Q=Object.keys(fe);typeof Object.getOwnPropertySymbols=="function"&&(Q=Q.concat(Object.getOwnPropertySymbols(fe).filter(function(B){return Object.getOwnPropertyDescriptor(fe,B).enumerable}))),Q.forEach(function(B){t(se,B,fe[B])})}return se}({},re,{customInspect:!1,depth:0}))}}])&&i(G.prototype,ne),M}(o(Error));return nu=te}function au(e,t){return function(i){if(Array.isArray(i))return i}(e)||function(i,n){var s=[],o=!0,u=!1,p=void 0;try{for(var m,D=i[Symbol.iterator]();!(o=(m=D.next()).done)&&(s.push(m.value),!n||s.length!==n);o=!0);}catch(y){u=!0,p=y}finally{try{o||D.return==null||D.return()}finally{if(u)throw p}}return s}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ot(e){return(ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Bn(e){return e.call.bind(e)}function Hh(e){if(e.length===0||e.length>10)return!0;for(var t=0;t<e.length;t++){var i=e.charCodeAt(t);if(i<48||i>57)return!0}return e.length===10&&e>=Math.pow(2,32)}function Si(e){return Object.keys(e).filter(Hh).concat(Ii(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function mu(e,t){if(e===t)return 0;for(var i=e.length,n=t.length,s=0,o=Math.min(i,n);s<o;++s)if(e[s]!==t[s]){i=e[s],n=t[s];break}return i<n?-1:n<i?1:0}function rt(e,t,i,n){if(e===t)return e!==0||!i||uu(e,t);if(i){if(ot(e)!=="object")return typeof e=="number"&&Sn(e)&&Sn(t);if(ot(t)!=="object"||e===null||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(e===null||ot(e)!=="object")return(t===null||ot(t)!=="object")&&e==t;if(t===null||ot(t)!=="object")return!1}var s,o,u,p,m=lu(e);if(m!==lu(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var D=Si(e),y=Si(t);return D.length===y.length&&jr(e,t,i,n,1,D)}if(m==="[object Object]"&&(!Ci(e)&&Ci(t)||!Ai(e)&&Ai(t)))return!1;if(cu(e)){if(!cu(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(pu(e)){if(!pu(t)||(u=e,p=t,!(Uh?u.source===p.source&&u.flags===p.flags:RegExp.prototype.toString.call(u)===RegExp.prototype.toString.call(p))))return!1}else if(Vh(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(Mh(e)){if(i||!Gh(e)&&!zh(e)){if(!function(x,v){return x.byteLength===v.byteLength&&mu(new Uint8Array(x.buffer,x.byteOffset,x.byteLength),new Uint8Array(v.buffer,v.byteOffset,v.byteLength))===0}(e,t))return!1}else if(!function(x,v){if(x.byteLength!==v.byteLength)return!1;for(var k=0;k<x.byteLength;k++)if(x[k]!==v[k])return!1;return!0}(e,t))return!1;var F=Si(e),E=Si(t);return F.length===E.length&&jr(e,t,i,n,0,F)}if(Ai(e))return!(!Ai(t)||e.size!==t.size)&&jr(e,t,i,n,2);if(Ci(e))return!(!Ci(t)||e.size!==t.size)&&jr(e,t,i,n,3);if($h(e)){if(o=t,(s=e).byteLength!==o.byteLength||mu(new Uint8Array(s),new Uint8Array(o))!==0)return!1}else if(qh(e)&&!function(x,v){return hu(x)?hu(v)&&uu(Number.prototype.valueOf.call(x),Number.prototype.valueOf.call(v)):fu(x)?fu(v)&&String.prototype.valueOf.call(x)===String.prototype.valueOf.call(v):du(x)?du(v)&&Boolean.prototype.valueOf.call(x)===Boolean.prototype.valueOf.call(v):gu(x)?gu(v)&&BigInt.prototype.valueOf.call(x)===BigInt.prototype.valueOf.call(v):Wh(v)&&Symbol.prototype.valueOf.call(x)===Symbol.prototype.valueOf.call(v)}(e,t))return!1}return jr(e,t,i,n,0)}function yu(e,t){return t.filter(function(i){return Pi(e,i)})}function jr(e,t,i,n,s,o){if(arguments.length===5){o=Object.keys(e);var u=Object.keys(t);if(o.length!==u.length)return!1}for(var p=0;p<o.length;p++)if(!Ur(t,o[p]))return!1;if(i&&arguments.length===5){var m=Ii(e);if(m.length!==0){var D=0;for(p=0;p<m.length;p++){var y=m[p];if(Pi(e,y)){if(!Pi(t,y))return!1;o.push(y),D++}else if(Pi(t,y))return!1}var F=Ii(t);if(m.length!==F.length&&yu(t,F).length!==D)return!1}else{var E=Ii(t);if(E.length!==0&&yu(t,E).length!==0)return!1}}if(o.length===0&&(s===0||s===1&&e.length===0||e.size===0))return!0;if(n===void 0)n={val1:new Map,val2:new Map,position:0};else{var x=n.val1.get(e);if(x!==void 0){var v=n.val2.get(t);if(v!==void 0)return x===v}n.position++}n.val1.set(e,n.position),n.val2.set(t,n.position);var k=Jh(e,t,i,o,n,s);return n.val1.delete(e),n.val2.delete(t),k}function Du(e,t,i,n){for(var s=Bi(e),o=0;o<s.length;o++){var u=s[o];if(rt(t,u,i,n))return e.delete(u),!0}return!1}function Nu(e){switch(ot(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(Sn(e))return!1}return!0}function Qh(e,t,i){var n=Nu(i);return n??(t.has(n)&&!e.has(n))}function Kh(e,t,i,n,s){var o=Nu(i);if(o!=null)return o;var u=t.get(o);return!(u===void 0&&!t.has(o)||!rt(n,u,!1,s))&&!e.has(o)&&rt(n,u,!1,s)}function vu(e,t,i,n,s,o){for(var u=Bi(e),p=0;p<u.length;p++){var m=u[p];if(rt(i,m,s,o)&&rt(n,t.get(m),s,o))return e.delete(m),!0}return!1}function Jh(e,t,i,n,s,o){var u=0;if(o===2){if(!function(y,F,E,x){for(var v=null,k=Bi(y),I=0;I<k.length;I++){var P=k[I];if(ot(P)==="object"&&P!==null)v===null&&(v=new Set),v.add(P);else if(!F.has(P)){if(E||!Qh(y,F,P))return!1;v===null&&(v=new Set),v.add(P)}}if(v!==null){for(var L=Bi(F),O=0;O<L.length;O++){var f=L[O];if(ot(f)==="object"&&f!==null){if(!Du(v,f,E,x))return!1}else if(!E&&!y.has(f)&&!Du(v,f,E,x))return!1}return v.size===0}return!0}(e,t,i,s))return!1}else if(o===3){if(!function(y,F,E,x){for(var v=null,k=ou(y),I=0;I<k.length;I++){var P=au(k[I],2),L=P[0],O=P[1];if(ot(L)==="object"&&L!==null)v===null&&(v=new Set),v.add(L);else{var f=F.get(L);if(f===void 0&&!F.has(L)||!rt(O,f,E,x)){if(E||!Kh(y,F,L,O,x))return!1;v===null&&(v=new Set),v.add(L)}}}if(v!==null){for(var V=ou(F),te=0;te<V.length;te++){var $=au(V[te],2),M=(L=$[0],$[1]);if(ot(L)==="object"&&L!==null){if(!vu(v,y,L,M,E,x))return!1}else if(!(E||y.has(L)&&rt(y.get(L),M,!1,x)||vu(v,y,L,M,!1,x)))return!1}return v.size===0}return!0}(e,t,i,s))return!1}else if(o===1)for(;u<e.length;u++){if(!Ur(e,u)){if(Ur(t,u))return!1;for(var p=Object.keys(e);u<p.length;u++){var m=p[u];if(!Ur(t,m)||!rt(e[m],t[m],i,s))return!1}return p.length===Object.keys(t).length}if(!Ur(t,u)||!rt(e[u],t[u],i,s))return!1}for(u=0;u<n.length;u++){var D=n[u];if(!rt(e[D],t[D],i,s))return!1}return!0}function _n(){if(Eu)return Fn;Eu=!0;var e=we;function t(B){return(t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S})(B)}var i,n,s=Ou().codes,o=s.ERR_AMBIGUOUS_ARGUMENT,u=s.ERR_INVALID_ARG_TYPE,p=s.ERR_INVALID_ARG_VALUE,m=s.ERR_INVALID_RETURN_VALUE,D=s.ERR_MISSING_ARGS,y=jh(),F=N.inspect,E=N.types,x=E.isPromise,v=E.isRegExp,k=Object.assign?Object.assign:eh.assign,I=Object.is?Object.is:Pu;function P(){i=bu.isDeepEqual,n=bu.isDeepStrictEqual}var L=!1,O=Fn=$,f={};function V(B){throw B.message instanceof Error?B.message:new y(B)}function te(B,S,j,U){if(!j){var q=!1;if(S===0)q=!0,U="No value argument passed to `assert.ok()`";else if(U instanceof Error)throw U;var z=new y({actual:j,expected:!0,message:U,operator:"==",stackStartFn:B});throw z.generatedMessage=q,z}}function $(){for(var B=arguments.length,S=new Array(B),j=0;j<B;j++)S[j]=arguments[j];te.apply(void 0,[$,S.length].concat(S))}O.fail=function B(S,j,U,q,z){var de,Ce=arguments.length;if(Ce===0)de="Failed";else if(Ce===1)U=S,S=void 0;else{if(L===!1){L=!0;var ye=e.emitWarning?e.emitWarning:console.warn.bind(console);ye("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}Ce===2&&(q="!=")}if(U instanceof Error)throw U;var st={actual:S,expected:j,operator:q===void 0?"fail":q,stackStartFn:z||B};U!==void 0&&(st.message=U);var $e=new y(st);throw de&&($e.message=de,$e.generatedMessage=!0),$e},O.AssertionError=y,O.ok=$,O.equal=function B(S,j,U){if(arguments.length<2)throw new D("actual","expected");S!=j&&V({actual:S,expected:j,message:U,operator:"==",stackStartFn:B})},O.notEqual=function B(S,j,U){if(arguments.length<2)throw new D("actual","expected");S==j&&V({actual:S,expected:j,message:U,operator:"!=",stackStartFn:B})},O.deepEqual=function B(S,j,U){if(arguments.length<2)throw new D("actual","expected");i===void 0&&P(),i(S,j)||V({actual:S,expected:j,message:U,operator:"deepEqual",stackStartFn:B})},O.notDeepEqual=function B(S,j,U){if(arguments.length<2)throw new D("actual","expected");i===void 0&&P(),i(S,j)&&V({actual:S,expected:j,message:U,operator:"notDeepEqual",stackStartFn:B})},O.deepStrictEqual=function B(S,j,U){if(arguments.length<2)throw new D("actual","expected");i===void 0&&P(),n(S,j)||V({actual:S,expected:j,message:U,operator:"deepStrictEqual",stackStartFn:B})},O.notDeepStrictEqual=function B(S,j,U){if(arguments.length<2)throw new D("actual","expected");i===void 0&&P(),n(S,j)&&V({actual:S,expected:j,message:U,operator:"notDeepStrictEqual",stackStartFn:B})},O.strictEqual=function B(S,j,U){if(arguments.length<2)throw new D("actual","expected");I(S,j)||V({actual:S,expected:j,message:U,operator:"strictEqual",stackStartFn:B})},O.notStrictEqual=function B(S,j,U){if(arguments.length<2)throw new D("actual","expected");I(S,j)&&V({actual:S,expected:j,message:U,operator:"notStrictEqual",stackStartFn:B})};var M=function B(S,j,U){var q=this;(function(z,de){if(!(z instanceof de))throw new TypeError("Cannot call a class as a function")})(this,B),j.forEach(function(z){z in S&&(U!==void 0&&typeof U[z]=="string"&&v(S[z])&&S[z].test(U[z])?q[z]=U[z]:q[z]=S[z])})};function G(B,S,j,U,q,z){if(!(j in B)||!n(B[j],S[j])){if(!U){var de=new M(B,q),Ce=new M(S,q,B),ye=new y({actual:de,expected:Ce,operator:"deepStrictEqual",stackStartFn:z});throw ye.actual=B,ye.expected=S,ye.operator=z.name,ye}V({actual:B,expected:S,message:U,operator:z.name,stackStartFn:z})}}function ne(B,S,j,U){if(typeof S!="function"){if(v(S))return S.test(B);if(arguments.length===2)throw new u("expected",["Function","RegExp"],S);if(t(B)!=="object"||B===null){var q=new y({actual:B,expected:S,message:j,operator:"deepStrictEqual",stackStartFn:U});throw q.operator=U.name,q}var z=Object.keys(S);if(S instanceof Error)z.push("name","message");else if(z.length===0)throw new p("error",S,"may not be an empty object");return i===void 0&&P(),z.forEach(function(de){typeof B[de]=="string"&&v(S[de])&&S[de].test(B[de])||G(B,S,de,j,z,U)}),!0}return S.prototype!==void 0&&B instanceof S||!Error.isPrototypeOf(S)&&S.call({},B)===!0}function Z(B){if(typeof B!="function")throw new u("fn","Function",B);try{B()}catch(S){return S}return f}function re(B){return x(B)||B!==null&&t(B)==="object"&&typeof B.then=="function"&&typeof B.catch=="function"}function se(B){return Promise.resolve().then(function(){var S;if(typeof B=="function"){if(!re(S=B()))throw new m("instance of Promise","promiseFn",S)}else{if(!re(B))throw new u("promiseFn",["Function","Promise"],B);S=B}return Promise.resolve().then(function(){return S}).then(function(){return f}).catch(function(j){return j})})}function ie(B,S,j,U){if(typeof j=="string"){if(arguments.length===4)throw new u("error",["Object","Error","Function","RegExp"],j);if(t(S)==="object"&&S!==null){if(S.message===j)throw new o("error/message",'The error message "'.concat(S.message,'" is identical to the message.'))}else if(S===j)throw new o("error/message",'The error "'.concat(S,'" is identical to the message.'));U=j,j=void 0}else if(j!=null&&t(j)!=="object"&&typeof j!="function")throw new u("error",["Object","Error","Function","RegExp"],j);if(S===f){var q="";j&&j.name&&(q+=" (".concat(j.name,")")),q+=U?": ".concat(U):".";var z=B.name==="rejects"?"rejection":"exception";V({actual:void 0,expected:j,operator:B.name,message:"Missing expected ".concat(z).concat(q),stackStartFn:B})}if(j&&!ne(S,j,U,B))throw S}function fe(B,S,j,U){if(S!==f){if(typeof j=="string"&&(U=j,j=void 0),!j||ne(S,j)){var q=U?": ".concat(U):".",z=B.name==="doesNotReject"?"rejection":"exception";V({actual:S,expected:j,operator:B.name,message:"Got unwanted ".concat(z).concat(q,`
|
|
57
57
|
`)+'Actual message: "'.concat(S&&S.message,'"'),stackStartFn:B})}throw S}}function Q(){for(var B=arguments.length,S=new Array(B),j=0;j<B;j++)S[j]=arguments[j];te.apply(void 0,[Q,S.length].concat(S))}return O.throws=function B(S){for(var j=arguments.length,U=new Array(j>1?j-1:0),q=1;q<j;q++)U[q-1]=arguments[q];ie.apply(void 0,[B,Z(S)].concat(U))},O.rejects=function B(S){for(var j=arguments.length,U=new Array(j>1?j-1:0),q=1;q<j;q++)U[q-1]=arguments[q];return se(S).then(function(z){return ie.apply(void 0,[B,z].concat(U))})},O.doesNotThrow=function B(S){for(var j=arguments.length,U=new Array(j>1?j-1:0),q=1;q<j;q++)U[q-1]=arguments[q];fe.apply(void 0,[B,Z(S)].concat(U))},O.doesNotReject=function B(S){for(var j=arguments.length,U=new Array(j>1?j-1:0),q=1;q<j;q++)U[q-1]=arguments[q];return se(S).then(function(z){return fe.apply(void 0,[B,z].concat(U))})},O.ifError=function B(S){if(S!=null){var j="ifError got unwanted exception: ";t(S)==="object"&&typeof S.message=="string"?S.message.length===0&&S.constructor?j+=S.constructor.name:j+=S.message:j+=F(S);var U=new y({actual:S,expected:null,operator:"ifError",message:j,stackStartFn:B}),q=S.stack;if(typeof q=="string"){var z=q.split(`
|
|
58
58
|
`);z.shift();for(var de=U.stack.split(`
|
|
59
59
|
`),Ce=0;Ce<z.length;Ce++){var ye=de.indexOf(z[Ce]);if(ye!==-1){de=de.slice(0,ye);break}}U.stack="".concat(de.join(`
|
|
60
60
|
`),`
|
|
61
61
|
`).concat(z.join(`
|
|
62
|
-
`))}throw U}},O.strict=k(Q,O,{equal:O.strictEqual,deepEqual:O.deepStrictEqual,notEqual:O.notStrictEqual,notDeepEqual:O.notDeepStrictEqual}),O.strict.strict=O.strict,Fn}var eh,wu,zo,Fu,Lr,yn,Ho,Dn,Qo,Ko,Rr,ki,Jo,Yo,th,rh,ih,Xo,_i,Zo,nh,sh,ah,oh,uh,kn,ku,lh,Cu,Ti,ch,eu,ph,hh,fh,vn,dh,gh,Au,$r,Kt,bn,mh,Ht,Qt,En,xn,tu,yh,Dh,vh,bh,Eh,Su,ru,_u,xh,wh,Fh,Cn,An,iu,kh,Ch,Ah,Sh,_h,Iu,Ih,Pu,Bu,In,Pn,Ph,Bh,Th,Oh,Nh,Tu,Lh,Ou,Rh,wn,nu,su,au,Uh,Bi,uu,lu,Ii,Sn,Ur,Pi,cu,qe,$h,Mh,pu,Ci,hu,Ai,Vh,qh,fu,du,gu,mu,Wh,Gh,zh,Eu,Fn,xu,ee,Yh,Xh,Zh,ef,tf,rf,nf,sf,af,of,uf,lf,cf,pf,hf,ff,df,ju=Tt(()=>{J();X();Y();Nr();Ir();eh={assign:Go,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:Go})}},zo=Object.prototype.toString,Fu=function(e){var t=zo.call(e),i=t==="[object Arguments]";return i||(i=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&zo.call(e.callee)==="[object Function]"),i};Object.keys||(Lr=Object.prototype.hasOwnProperty,yn=Object.prototype.toString,Ho=Fu,Dn=Object.prototype.propertyIsEnumerable,Qo=!Dn.call({toString:null},"toString"),Ko=Dn.call(function(){},"prototype"),Rr=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],ki=function(e){var t=e.constructor;return t&&t.prototype===e},Jo={$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},Yo=function(){if(typeof window>"u")return!1;for(var e in window)try{if(!Jo["$"+e]&&Lr.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{ki(window[e])}catch{return!0}}catch{return!0}return!1}(),wu=function(e){var t=e!==null&&typeof e=="object",i=yn.call(e)==="[object Function]",n=Ho(e),s=t&&yn.call(e)==="[object String]",o=[];if(!t&&!i&&!n)throw new TypeError("Object.keys called on a non-object");var u=Ko&&i;if(s&&e.length>0&&!Lr.call(e,0))for(var p=0;p<e.length;++p)o.push(String(p));if(n&&e.length>0)for(var m=0;m<e.length;++m)o.push(String(m));else for(var D in e)u&&D==="prototype"||!Lr.call(e,D)||o.push(String(D));if(Qo)for(var y=function(E){if(typeof window>"u"||!Yo)return ki(E);try{return ki(E)}catch{return!1}}(e),F=0;F<Rr.length;++F)y&&Rr[F]==="constructor"||!Lr.call(e,Rr[F])||o.push(Rr[F]);return o});th=wu,rh=Array.prototype.slice,ih=Fu,Xo=Object.keys,_i=Xo?function(e){return Xo(e)}:th,Zo=Object.keys;_i.shim=function(){return Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return ih(e)?Zo(rh.call(e)):Zo(e)}):Object.keys=_i,Object.keys||_i};nh=_i,sh=nh,ah=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",oh=Object.prototype.toString,uh=Array.prototype.concat,kn=Object.defineProperty,ku=kn&&function(){var e={};try{for(var t in kn(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch{return!1}}(),lh=function(e,t,i,n){var s;(!(t in e)||typeof(s=n)=="function"&&oh.call(s)==="[object Function]"&&n())&&(ku?kn(e,t,{configurable:!0,enumerable:!1,value:i,writable:!0}):e[t]=i)},Cu=function(e,t){var i=arguments.length>2?arguments[2]:{},n=sh(t);ah&&(n=uh.call(n,Object.getOwnPropertySymbols(t)));for(var s=0;s<n.length;s+=1)lh(e,n[s],t[n[s]],i[n[s]])};Cu.supportsDescriptors=!!ku;Ti=Cu,ch=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;for(t in e[t]=42,e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var n=Object.getOwnPropertySymbols(e);if(n.length!==1||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,t);if(s.value!==42||s.enumerable!==!0)return!1}return!0},eu=(typeof globalThis<"u"?globalThis:typeof self<"u"?self:window).Symbol,ph=ch,hh=function(){return typeof eu=="function"&&typeof Symbol=="function"&&typeof eu("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&ph()},fh="Function.prototype.bind called on incompatible ",vn=Array.prototype.slice,dh=Object.prototype.toString,gh=function(e){var t=this;if(typeof t!="function"||dh.call(t)!=="[object Function]")throw new TypeError(fh+t);for(var i,n=vn.call(arguments,1),s=function(){if(this instanceof i){var D=t.apply(this,n.concat(vn.call(arguments)));return Object(D)===D?D:this}return t.apply(e,n.concat(vn.call(arguments)))},o=Math.max(0,t.length-n.length),u=[],p=0;p<o;p++)u.push("$"+p);if(i=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var m=function(){};m.prototype=t.prototype,i.prototype=new m,m.prototype=null}return i},Au=Function.prototype.bind||gh,$r=TypeError,Kt=Object.getOwnPropertyDescriptor;if(Kt)try{Kt({},"")}catch{Kt=null}bn=function(){throw new $r},mh=Kt?function(){try{return arguments.callee,bn}catch{try{return Kt(arguments,"callee").get}catch{return bn}}}():bn,Ht=hh(),Qt=Object.getPrototypeOf||function(e){return e.__proto__},En=typeof Uint8Array>"u"?void 0:Qt(Uint8Array),xn={"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?void 0:ArrayBuffer,"%ArrayBufferPrototype%":typeof ArrayBuffer>"u"?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":Ht?Qt([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":void 0,"%Atomics%":typeof Atomics>"u"?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":typeof DataView>"u"?void 0:DataView,"%DataViewPrototype%":typeof DataView>"u"?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":typeof Float32Array>"u"?void 0:Float32Array,"%Float32ArrayPrototype%":typeof Float32Array>"u"?void 0:Float32Array.prototype,"%Float64Array%":typeof Float64Array>"u"?void 0:Float64Array,"%Float64ArrayPrototype%":typeof Float64Array>"u"?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":typeof Int8Array>"u"?void 0:Int8Array,"%Int8ArrayPrototype%":typeof Int8Array>"u"?void 0:Int8Array.prototype,"%Int16Array%":typeof Int16Array>"u"?void 0:Int16Array,"%Int16ArrayPrototype%":typeof Int16Array>"u"?void 0:Int8Array.prototype,"%Int32Array%":typeof Int32Array>"u"?void 0:Int32Array,"%Int32ArrayPrototype%":typeof Int32Array>"u"?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ht?Qt(Qt([][Symbol.iterator]())):void 0,"%JSON%":typeof JSON=="object"?JSON:void 0,"%JSONParse%":typeof JSON=="object"?JSON.parse:void 0,"%Map%":typeof Map>"u"?void 0:Map,"%MapIteratorPrototype%":typeof Map<"u"&&Ht?Qt(new Map()[Symbol.iterator]()):void 0,"%MapPrototype%":typeof Map>"u"?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?void 0:Promise,"%PromisePrototype%":typeof Promise>"u"?void 0:Promise.prototype,"%PromiseProto_then%":typeof Promise>"u"?void 0:Promise.prototype.then,"%Promise_all%":typeof Promise>"u"?void 0:Promise.all,"%Promise_reject%":typeof Promise>"u"?void 0:Promise.reject,"%Promise_resolve%":typeof Promise>"u"?void 0:Promise.resolve,"%Proxy%":typeof Proxy>"u"?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":typeof Reflect>"u"?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":typeof Set>"u"?void 0:Set,"%SetIteratorPrototype%":typeof Set<"u"&&Ht?Qt(new Set()[Symbol.iterator]()):void 0,"%SetPrototype%":typeof Set>"u"?void 0:Set.prototype,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":typeof SharedArrayBuffer>"u"?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":Ht?Qt(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":Ht?Symbol:void 0,"%SymbolPrototype%":Ht?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":mh,"%TypedArray%":En,"%TypedArrayPrototype%":En?En.prototype:void 0,"%TypeError%":$r,"%TypeErrorPrototype%":$r.prototype,"%Uint8Array%":typeof Uint8Array>"u"?void 0:Uint8Array,"%Uint8ArrayPrototype%":typeof Uint8Array>"u"?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":typeof Uint16Array>"u"?void 0:Uint16Array,"%Uint16ArrayPrototype%":typeof Uint16Array>"u"?void 0:Uint16Array.prototype,"%Uint32Array%":typeof Uint32Array>"u"?void 0:Uint32Array,"%Uint32ArrayPrototype%":typeof Uint32Array>"u"?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":typeof WeakMap>"u"?void 0:WeakMap,"%WeakMapPrototype%":typeof WeakMap>"u"?void 0:WeakMap.prototype,"%WeakSet%":typeof WeakSet>"u"?void 0:WeakSet,"%WeakSetPrototype%":typeof WeakSet>"u"?void 0:WeakSet.prototype},tu=Au.call(Function.call,String.prototype.replace),yh=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Dh=/\\(\\)?/g,vh=function(e){var t=[];return tu(e,yh,function(i,n,s,o){t[t.length]=s?tu(o,Dh,"$1"):n||i}),t},bh=function(e,t){if(!(e in xn))throw new SyntaxError("intrinsic "+e+" does not exist!");if(xn[e]===void 0&&!t)throw new $r("intrinsic "+e+" exists, but is not available. Please file an issue!");return xn[e]},Eh=function(e,t){if(typeof e!="string"||e.length===0)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new TypeError('"allowMissing" argument must be a boolean');for(var i=vh(e),n=bh("%"+(i.length>0?i[0]:"")+"%",t),s=1;s<i.length;s+=1)if(n!=null)if(Kt&&s+1>=i.length){var o=Kt(n,i[s]);if(!t&&!(i[s]in n))throw new $r("base intrinsic for "+e+" exists, but the property is not available.");n=o?o.get||o.value:n[i[s]]}else n=n[i[s]];return n},ru=Au,_u=Eh("%Function%"),xh=_u.apply,wh=_u.call;(Su=function(){return ru.apply(wh,arguments)}).apply=function(){return ru.apply(xh,arguments)};Fh=Su,iu=function(e){return e!=e},kh=(Cn=function(e,t){return e===0&&t===0?1/e==1/t:e===t||!(!iu(e)||!iu(t))},Cn),Ch=(An=function(){return typeof Object.is=="function"?Object.is:kh},An),Ah=Ti,Sh=Ti,_h=Cn,Iu=An,Ih=function(){var e=Ch();return Ah(Object,{is:e},{is:function(){return Object.is!==e}}),e},Pu=Fh(Iu(),Object);Sh(Pu,{getPolyfill:Iu,implementation:_h,shim:Ih});Bu=Pu;In=function(e){return e!=e};Ph=In,Bh=(Pn=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:Ph},Ti),Th=Pn,Oh=Ti,Nh=In,Tu=Pn,Lh=function(){var e=Th();return Bh(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e},Ou=Tu();Oh(Ou,{getPolyfill:Tu,implementation:Nh,shim:Lh});Rh=Ou,wn={},nu=!1;su={},au=!1;Uh=/a/g.flags!==void 0,Bi=function(e){var t=[];return e.forEach(function(i){return t.push(i)}),t},uu=function(e){var t=[];return e.forEach(function(i,n){return t.push([n,i])}),t},lu=Object.is?Object.is:Bu,Ii=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},Sn=Number.isNaN?Number.isNaN:Rh;Ur=Bn(Object.prototype.hasOwnProperty),Pi=Bn(Object.prototype.propertyIsEnumerable),cu=Bn(Object.prototype.toString),qe=N.types,$h=qe.isAnyArrayBuffer,Mh=qe.isArrayBufferView,pu=qe.isDate,Ci=qe.isMap,hu=qe.isRegExp,Ai=qe.isSet,Vh=qe.isNativeError,qh=qe.isBoxedPrimitive,fu=qe.isNumberObject,du=qe.isStringObject,gu=qe.isBooleanObject,mu=qe.isBigIntObject,Wh=qe.isSymbolObject,Gh=qe.isFloat32Array,zh=qe.isFloat64Array;Eu={isDeepEqual:function(e,t){return rt(e,t,!1)},isDeepStrictEqual:function(e,t){return rt(e,t,!0)}},Fn={},xu=!1;ee=_n();ee.AssertionError;ee.deepEqual;ee.deepStrictEqual;ee.doesNotReject;ee.doesNotThrow;ee.equal;ee.fail;ee.ifError;ee.notDeepEqual;ee.notDeepStrictEqual;ee.notEqual;ee.notStrictEqual;ee.ok;ee.rejects;ee.strict;ee.strictEqual;ee.throws;ee.AssertionError;ee.deepEqual;ee.deepStrictEqual;ee.doesNotReject;ee.doesNotThrow;ee.equal;ee.fail;ee.ifError;ee.notDeepEqual;ee.notDeepStrictEqual;ee.notEqual;ee.notStrictEqual;ee.ok;ee.rejects;ee.strict;ee.strictEqual;ee.throws;Yh=ee.AssertionError,Xh=ee.deepEqual,Zh=ee.deepStrictEqual,ef=ee.doesNotReject,tf=ee.doesNotThrow,rf=ee.equal,nf=ee.fail,sf=ee.ifError,af=ee.notDeepEqual,of=ee.notDeepStrictEqual,uf=ee.notEqual,lf=ee.notStrictEqual,cf=ee.ok,pf=ee.rejects,hf=ee.strict,ff=ee.strictEqual,df=ee.throws});var $u=je((Oi,Uu)=>{J();X();Y();(function(e,t){typeof Oi=="object"&&typeof Uu<"u"?t(Oi):typeof define=="function"&&define.amd?define(["exports"],t):(e=e||self,t(e.acorn={}))})(Oi,function(e){"use strict";var t={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},i="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",n={5:i,"5module":i+" export import",6:i+" const class extends export import super"},s=/^in(stanceof)?$/,o="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",u="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF\u1AC0\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",p=new RegExp("["+o+"]"),m=new RegExp("["+o+u+"]");o=u=null;var D=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],y=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function F(r,a){for(var h=65536,g=0;g<a.length;g+=2){if(h+=a[g],h>r)return!1;if(h+=a[g+1],h>=r)return!0}}function E(r,a){return r<65?r===36:r<91?!0:r<97?r===95:r<123?!0:r<=65535?r>=170&&p.test(String.fromCharCode(r)):a===!1?!1:F(r,D)}function x(r,a){return r<48?r===36:r<58?!0:r<65?!1:r<91?!0:r<97?r===95:r<123?!0:r<=65535?r>=170&&m.test(String.fromCharCode(r)):a===!1?!1:F(r,D)||F(r,y)}var v=function(a,h){h===void 0&&(h={}),this.label=a,this.keyword=h.keyword,this.beforeExpr=!!h.beforeExpr,this.startsExpr=!!h.startsExpr,this.isLoop=!!h.isLoop,this.isAssign=!!h.isAssign,this.prefix=!!h.prefix,this.postfix=!!h.postfix,this.binop=h.binop||null,this.updateContext=null};function k(r,a){return new v(r,{beforeExpr:!0,binop:a})}var I={beforeExpr:!0},P={startsExpr:!0},L={};function O(r,a){return a===void 0&&(a={}),a.keyword=r,L[r]=new v(r,a)}var f={num:new v("num",P),regexp:new v("regexp",P),string:new v("string",P),name:new v("name",P),eof:new v("eof"),bracketL:new v("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new v("]"),braceL:new v("{",{beforeExpr:!0,startsExpr:!0}),braceR:new v("}"),parenL:new v("(",{beforeExpr:!0,startsExpr:!0}),parenR:new v(")"),comma:new v(",",I),semi:new v(";",I),colon:new v(":",I),dot:new v("."),question:new v("?",I),questionDot:new v("?."),arrow:new v("=>",I),template:new v("template"),invalidTemplate:new v("invalidTemplate"),ellipsis:new v("...",I),backQuote:new v("`",P),dollarBraceL:new v("${",{beforeExpr:!0,startsExpr:!0}),eq:new v("=",{beforeExpr:!0,isAssign:!0}),assign:new v("_=",{beforeExpr:!0,isAssign:!0}),incDec:new v("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new v("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:k("||",1),logicalAND:k("&&",2),bitwiseOR:k("|",3),bitwiseXOR:k("^",4),bitwiseAND:k("&",5),equality:k("==/!=/===/!==",6),relational:k("</>/<=/>=",7),bitShift:k("<</>>/>>>",8),plusMin:new v("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:k("%",10),star:k("*",10),slash:k("/",10),starstar:new v("**",{beforeExpr:!0}),coalesce:k("??",1),_break:O("break"),_case:O("case",I),_catch:O("catch"),_continue:O("continue"),_debugger:O("debugger"),_default:O("default",I),_do:O("do",{isLoop:!0,beforeExpr:!0}),_else:O("else",I),_finally:O("finally"),_for:O("for",{isLoop:!0}),_function:O("function",P),_if:O("if"),_return:O("return",I),_switch:O("switch"),_throw:O("throw",I),_try:O("try"),_var:O("var"),_const:O("const"),_while:O("while",{isLoop:!0}),_with:O("with"),_new:O("new",{beforeExpr:!0,startsExpr:!0}),_this:O("this",P),_super:O("super",P),_class:O("class",P),_extends:O("extends",I),_export:O("export"),_import:O("import",P),_null:O("null",P),_true:O("true",P),_false:O("false",P),_in:O("in",{beforeExpr:!0,binop:7}),_instanceof:O("instanceof",{beforeExpr:!0,binop:7}),_typeof:O("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:O("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:O("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},V=/\r\n?|\n|\u2028|\u2029/,te=new RegExp(V.source,"g");function $(r,a){return r===10||r===13||!a&&(r===8232||r===8233)}var M=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,G=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ne=Object.prototype,Z=ne.hasOwnProperty,re=ne.toString;function se(r,a){return Z.call(r,a)}var ie=Array.isArray||function(r){return re.call(r)==="[object Array]"};function fe(r){return new RegExp("^(?:"+r.replace(/ /g,"|")+")$")}var Q=function(a,h){this.line=a,this.column=h};Q.prototype.offset=function(a){return new Q(this.line,this.column+a)};var B=function(a,h,g){this.start=h,this.end=g,a.sourceFile!==null&&(this.source=a.sourceFile)};function S(r,a){for(var h=1,g=0;;){te.lastIndex=g;var w=te.exec(r);if(w&&w.index<a)++h,g=w.index+w[0].length;else return new Q(h,a-g)}}var j={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function U(r){var a={};for(var h in j)a[h]=r&&se(r,h)?r[h]:j[h];if(a.ecmaVersion>=2015&&(a.ecmaVersion-=2009),a.allowReserved==null&&(a.allowReserved=a.ecmaVersion<5),ie(a.onToken)){var g=a.onToken;a.onToken=function(w){return g.push(w)}}return ie(a.onComment)&&(a.onComment=q(a,a.onComment)),a}function q(r,a){return function(h,g,w,_,T,W){var H={type:h?"Block":"Line",value:g,start:w,end:_};r.locations&&(H.loc=new B(this,T,W)),r.ranges&&(H.range=[w,_]),a.push(H)}}var z=1,de=2,Ce=z|de,ye=4,st=8,$e=16,Le=32,at=64,Ye=128;function ut(r,a){return de|(r?ye:0)|(a?st:0)}var Re=0,Be=1,He=2,Xr=3,or=4,Zr=5,Fe=function(a,h,g){this.options=a=U(a),this.sourceFile=a.sourceFile,this.keywords=fe(n[a.ecmaVersion>=6?6:a.sourceType==="module"?"5module":5]);var w="";if(a.allowReserved!==!0){for(var _=a.ecmaVersion;!(w=t[_]);_--);a.sourceType==="module"&&(w+=" await")}this.reservedWords=fe(w);var T=(w?w+" ":"")+t.strict;this.reservedWordsStrict=fe(T),this.reservedWordsStrictBind=fe(T+" "+t.strictBind),this.input=String(h),this.containsEsc=!1,g?(this.pos=g,this.lineStart=this.input.lastIndexOf(`
|
|
62
|
+
`))}throw U}},O.strict=k(Q,O,{equal:O.strictEqual,deepEqual:O.deepStrictEqual,notEqual:O.notStrictEqual,notDeepEqual:O.notDeepStrictEqual}),O.strict.strict=O.strict,Fn}var eh,xu,Go,wu,Lr,yn,zo,Dn,Ho,Qo,Rr,ki,Ko,Jo,th,rh,ih,Yo,_i,Xo,nh,sh,ah,oh,uh,kn,Fu,lh,ku,Ti,ch,Zo,ph,hh,fh,vn,dh,gh,Cu,$r,Kt,bn,mh,Ht,Qt,En,xn,eu,yh,Dh,vh,bh,Eh,Au,tu,Su,xh,wh,Fh,Cn,An,ru,kh,Ch,Ah,Sh,_h,_u,Ih,Iu,Pu,In,Pn,Ph,Bh,Th,Oh,Nh,Bu,Lh,Tu,Rh,wn,iu,nu,su,Uh,Bi,ou,uu,Ii,Sn,Ur,Pi,lu,qe,$h,Mh,cu,Ci,pu,Ai,Vh,qh,hu,fu,du,gu,Wh,Gh,zh,bu,Fn,Eu,ee,Yh,Xh,Zh,ef,tf,rf,nf,sf,af,of,uf,lf,cf,pf,hf,ff,df,Ru=Tt(()=>{J();X();Y();Nr();Ir();eh={assign:Wo,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:Wo})}},Go=Object.prototype.toString,wu=function(e){var t=Go.call(e),i=t==="[object Arguments]";return i||(i=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Go.call(e.callee)==="[object Function]"),i};Object.keys||(Lr=Object.prototype.hasOwnProperty,yn=Object.prototype.toString,zo=wu,Dn=Object.prototype.propertyIsEnumerable,Ho=!Dn.call({toString:null},"toString"),Qo=Dn.call(function(){},"prototype"),Rr=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],ki=function(e){var t=e.constructor;return t&&t.prototype===e},Ko={$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},Jo=function(){if(typeof window>"u")return!1;for(var e in window)try{if(!Ko["$"+e]&&Lr.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{ki(window[e])}catch{return!0}}catch{return!0}return!1}(),xu=function(e){var t=e!==null&&typeof e=="object",i=yn.call(e)==="[object Function]",n=zo(e),s=t&&yn.call(e)==="[object String]",o=[];if(!t&&!i&&!n)throw new TypeError("Object.keys called on a non-object");var u=Qo&&i;if(s&&e.length>0&&!Lr.call(e,0))for(var p=0;p<e.length;++p)o.push(String(p));if(n&&e.length>0)for(var m=0;m<e.length;++m)o.push(String(m));else for(var D in e)u&&D==="prototype"||!Lr.call(e,D)||o.push(String(D));if(Ho)for(var y=function(E){if(typeof window>"u"||!Jo)return ki(E);try{return ki(E)}catch{return!1}}(e),F=0;F<Rr.length;++F)y&&Rr[F]==="constructor"||!Lr.call(e,Rr[F])||o.push(Rr[F]);return o});th=xu,rh=Array.prototype.slice,ih=wu,Yo=Object.keys,_i=Yo?function(e){return Yo(e)}:th,Xo=Object.keys;_i.shim=function(){return Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return ih(e)?Xo(rh.call(e)):Xo(e)}):Object.keys=_i,Object.keys||_i};nh=_i,sh=nh,ah=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",oh=Object.prototype.toString,uh=Array.prototype.concat,kn=Object.defineProperty,Fu=kn&&function(){var e={};try{for(var t in kn(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch{return!1}}(),lh=function(e,t,i,n){var s;(!(t in e)||typeof(s=n)=="function"&&oh.call(s)==="[object Function]"&&n())&&(Fu?kn(e,t,{configurable:!0,enumerable:!1,value:i,writable:!0}):e[t]=i)},ku=function(e,t){var i=arguments.length>2?arguments[2]:{},n=sh(t);ah&&(n=uh.call(n,Object.getOwnPropertySymbols(t)));for(var s=0;s<n.length;s+=1)lh(e,n[s],t[n[s]],i[n[s]])};ku.supportsDescriptors=!!Fu;Ti=ku,ch=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;for(t in e[t]=42,e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var n=Object.getOwnPropertySymbols(e);if(n.length!==1||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,t);if(s.value!==42||s.enumerable!==!0)return!1}return!0},Zo=(typeof globalThis<"u"?globalThis:typeof self<"u"?self:window).Symbol,ph=ch,hh=function(){return typeof Zo=="function"&&typeof Symbol=="function"&&typeof Zo("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&ph()},fh="Function.prototype.bind called on incompatible ",vn=Array.prototype.slice,dh=Object.prototype.toString,gh=function(e){var t=this;if(typeof t!="function"||dh.call(t)!=="[object Function]")throw new TypeError(fh+t);for(var i,n=vn.call(arguments,1),s=function(){if(this instanceof i){var D=t.apply(this,n.concat(vn.call(arguments)));return Object(D)===D?D:this}return t.apply(e,n.concat(vn.call(arguments)))},o=Math.max(0,t.length-n.length),u=[],p=0;p<o;p++)u.push("$"+p);if(i=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var m=function(){};m.prototype=t.prototype,i.prototype=new m,m.prototype=null}return i},Cu=Function.prototype.bind||gh,$r=TypeError,Kt=Object.getOwnPropertyDescriptor;if(Kt)try{Kt({},"")}catch{Kt=null}bn=function(){throw new $r},mh=Kt?function(){try{return arguments.callee,bn}catch{try{return Kt(arguments,"callee").get}catch{return bn}}}():bn,Ht=hh(),Qt=Object.getPrototypeOf||function(e){return e.__proto__},En=typeof Uint8Array>"u"?void 0:Qt(Uint8Array),xn={"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?void 0:ArrayBuffer,"%ArrayBufferPrototype%":typeof ArrayBuffer>"u"?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":Ht?Qt([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":void 0,"%Atomics%":typeof Atomics>"u"?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":typeof DataView>"u"?void 0:DataView,"%DataViewPrototype%":typeof DataView>"u"?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":typeof Float32Array>"u"?void 0:Float32Array,"%Float32ArrayPrototype%":typeof Float32Array>"u"?void 0:Float32Array.prototype,"%Float64Array%":typeof Float64Array>"u"?void 0:Float64Array,"%Float64ArrayPrototype%":typeof Float64Array>"u"?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":typeof Int8Array>"u"?void 0:Int8Array,"%Int8ArrayPrototype%":typeof Int8Array>"u"?void 0:Int8Array.prototype,"%Int16Array%":typeof Int16Array>"u"?void 0:Int16Array,"%Int16ArrayPrototype%":typeof Int16Array>"u"?void 0:Int8Array.prototype,"%Int32Array%":typeof Int32Array>"u"?void 0:Int32Array,"%Int32ArrayPrototype%":typeof Int32Array>"u"?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ht?Qt(Qt([][Symbol.iterator]())):void 0,"%JSON%":typeof JSON=="object"?JSON:void 0,"%JSONParse%":typeof JSON=="object"?JSON.parse:void 0,"%Map%":typeof Map>"u"?void 0:Map,"%MapIteratorPrototype%":typeof Map<"u"&&Ht?Qt(new Map()[Symbol.iterator]()):void 0,"%MapPrototype%":typeof Map>"u"?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?void 0:Promise,"%PromisePrototype%":typeof Promise>"u"?void 0:Promise.prototype,"%PromiseProto_then%":typeof Promise>"u"?void 0:Promise.prototype.then,"%Promise_all%":typeof Promise>"u"?void 0:Promise.all,"%Promise_reject%":typeof Promise>"u"?void 0:Promise.reject,"%Promise_resolve%":typeof Promise>"u"?void 0:Promise.resolve,"%Proxy%":typeof Proxy>"u"?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":typeof Reflect>"u"?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":typeof Set>"u"?void 0:Set,"%SetIteratorPrototype%":typeof Set<"u"&&Ht?Qt(new Set()[Symbol.iterator]()):void 0,"%SetPrototype%":typeof Set>"u"?void 0:Set.prototype,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":typeof SharedArrayBuffer>"u"?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":Ht?Qt(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":Ht?Symbol:void 0,"%SymbolPrototype%":Ht?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":mh,"%TypedArray%":En,"%TypedArrayPrototype%":En?En.prototype:void 0,"%TypeError%":$r,"%TypeErrorPrototype%":$r.prototype,"%Uint8Array%":typeof Uint8Array>"u"?void 0:Uint8Array,"%Uint8ArrayPrototype%":typeof Uint8Array>"u"?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":typeof Uint16Array>"u"?void 0:Uint16Array,"%Uint16ArrayPrototype%":typeof Uint16Array>"u"?void 0:Uint16Array.prototype,"%Uint32Array%":typeof Uint32Array>"u"?void 0:Uint32Array,"%Uint32ArrayPrototype%":typeof Uint32Array>"u"?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":typeof WeakMap>"u"?void 0:WeakMap,"%WeakMapPrototype%":typeof WeakMap>"u"?void 0:WeakMap.prototype,"%WeakSet%":typeof WeakSet>"u"?void 0:WeakSet,"%WeakSetPrototype%":typeof WeakSet>"u"?void 0:WeakSet.prototype},eu=Cu.call(Function.call,String.prototype.replace),yh=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Dh=/\\(\\)?/g,vh=function(e){var t=[];return eu(e,yh,function(i,n,s,o){t[t.length]=s?eu(o,Dh,"$1"):n||i}),t},bh=function(e,t){if(!(e in xn))throw new SyntaxError("intrinsic "+e+" does not exist!");if(xn[e]===void 0&&!t)throw new $r("intrinsic "+e+" exists, but is not available. Please file an issue!");return xn[e]},Eh=function(e,t){if(typeof e!="string"||e.length===0)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new TypeError('"allowMissing" argument must be a boolean');for(var i=vh(e),n=bh("%"+(i.length>0?i[0]:"")+"%",t),s=1;s<i.length;s+=1)if(n!=null)if(Kt&&s+1>=i.length){var o=Kt(n,i[s]);if(!t&&!(i[s]in n))throw new $r("base intrinsic for "+e+" exists, but the property is not available.");n=o?o.get||o.value:n[i[s]]}else n=n[i[s]];return n},tu=Cu,Su=Eh("%Function%"),xh=Su.apply,wh=Su.call;(Au=function(){return tu.apply(wh,arguments)}).apply=function(){return tu.apply(xh,arguments)};Fh=Au,ru=function(e){return e!=e},kh=(Cn=function(e,t){return e===0&&t===0?1/e==1/t:e===t||!(!ru(e)||!ru(t))},Cn),Ch=(An=function(){return typeof Object.is=="function"?Object.is:kh},An),Ah=Ti,Sh=Ti,_h=Cn,_u=An,Ih=function(){var e=Ch();return Ah(Object,{is:e},{is:function(){return Object.is!==e}}),e},Iu=Fh(_u(),Object);Sh(Iu,{getPolyfill:_u,implementation:_h,shim:Ih});Pu=Iu;In=function(e){return e!=e};Ph=In,Bh=(Pn=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:Ph},Ti),Th=Pn,Oh=Ti,Nh=In,Bu=Pn,Lh=function(){var e=Th();return Bh(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e},Tu=Bu();Oh(Tu,{getPolyfill:Bu,implementation:Nh,shim:Lh});Rh=Tu,wn={},iu=!1;nu={},su=!1;Uh=/a/g.flags!==void 0,Bi=function(e){var t=[];return e.forEach(function(i){return t.push(i)}),t},ou=function(e){var t=[];return e.forEach(function(i,n){return t.push([n,i])}),t},uu=Object.is?Object.is:Pu,Ii=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},Sn=Number.isNaN?Number.isNaN:Rh;Ur=Bn(Object.prototype.hasOwnProperty),Pi=Bn(Object.prototype.propertyIsEnumerable),lu=Bn(Object.prototype.toString),qe=N.types,$h=qe.isAnyArrayBuffer,Mh=qe.isArrayBufferView,cu=qe.isDate,Ci=qe.isMap,pu=qe.isRegExp,Ai=qe.isSet,Vh=qe.isNativeError,qh=qe.isBoxedPrimitive,hu=qe.isNumberObject,fu=qe.isStringObject,du=qe.isBooleanObject,gu=qe.isBigIntObject,Wh=qe.isSymbolObject,Gh=qe.isFloat32Array,zh=qe.isFloat64Array;bu={isDeepEqual:function(e,t){return rt(e,t,!1)},isDeepStrictEqual:function(e,t){return rt(e,t,!0)}},Fn={},Eu=!1;ee=_n();ee.AssertionError;ee.deepEqual;ee.deepStrictEqual;ee.doesNotReject;ee.doesNotThrow;ee.equal;ee.fail;ee.ifError;ee.notDeepEqual;ee.notDeepStrictEqual;ee.notEqual;ee.notStrictEqual;ee.ok;ee.rejects;ee.strict;ee.strictEqual;ee.throws;ee.AssertionError;ee.deepEqual;ee.deepStrictEqual;ee.doesNotReject;ee.doesNotThrow;ee.equal;ee.fail;ee.ifError;ee.notDeepEqual;ee.notDeepStrictEqual;ee.notEqual;ee.notStrictEqual;ee.ok;ee.rejects;ee.strict;ee.strictEqual;ee.throws;Yh=ee.AssertionError,Xh=ee.deepEqual,Zh=ee.deepStrictEqual,ef=ee.doesNotReject,tf=ee.doesNotThrow,rf=ee.equal,nf=ee.fail,sf=ee.ifError,af=ee.notDeepEqual,of=ee.notDeepStrictEqual,uf=ee.notEqual,lf=ee.notStrictEqual,cf=ee.ok,pf=ee.rejects,hf=ee.strict,ff=ee.strictEqual,df=ee.throws});var Uu=je((Oi,ju)=>{J();X();Y();(function(e,t){typeof Oi=="object"&&typeof ju<"u"?t(Oi):typeof define=="function"&&define.amd?define(["exports"],t):(e=e||self,t(e.acorn={}))})(Oi,function(e){"use strict";var t={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},i="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",n={5:i,"5module":i+" export import",6:i+" const class extends export import super"},s=/^in(stanceof)?$/,o="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",u="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF\u1AC0\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",p=new RegExp("["+o+"]"),m=new RegExp("["+o+u+"]");o=u=null;var D=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],y=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function F(r,a){for(var h=65536,g=0;g<a.length;g+=2){if(h+=a[g],h>r)return!1;if(h+=a[g+1],h>=r)return!0}}function E(r,a){return r<65?r===36:r<91?!0:r<97?r===95:r<123?!0:r<=65535?r>=170&&p.test(String.fromCharCode(r)):a===!1?!1:F(r,D)}function x(r,a){return r<48?r===36:r<58?!0:r<65?!1:r<91?!0:r<97?r===95:r<123?!0:r<=65535?r>=170&&m.test(String.fromCharCode(r)):a===!1?!1:F(r,D)||F(r,y)}var v=function(a,h){h===void 0&&(h={}),this.label=a,this.keyword=h.keyword,this.beforeExpr=!!h.beforeExpr,this.startsExpr=!!h.startsExpr,this.isLoop=!!h.isLoop,this.isAssign=!!h.isAssign,this.prefix=!!h.prefix,this.postfix=!!h.postfix,this.binop=h.binop||null,this.updateContext=null};function k(r,a){return new v(r,{beforeExpr:!0,binop:a})}var I={beforeExpr:!0},P={startsExpr:!0},L={};function O(r,a){return a===void 0&&(a={}),a.keyword=r,L[r]=new v(r,a)}var f={num:new v("num",P),regexp:new v("regexp",P),string:new v("string",P),name:new v("name",P),eof:new v("eof"),bracketL:new v("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new v("]"),braceL:new v("{",{beforeExpr:!0,startsExpr:!0}),braceR:new v("}"),parenL:new v("(",{beforeExpr:!0,startsExpr:!0}),parenR:new v(")"),comma:new v(",",I),semi:new v(";",I),colon:new v(":",I),dot:new v("."),question:new v("?",I),questionDot:new v("?."),arrow:new v("=>",I),template:new v("template"),invalidTemplate:new v("invalidTemplate"),ellipsis:new v("...",I),backQuote:new v("`",P),dollarBraceL:new v("${",{beforeExpr:!0,startsExpr:!0}),eq:new v("=",{beforeExpr:!0,isAssign:!0}),assign:new v("_=",{beforeExpr:!0,isAssign:!0}),incDec:new v("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new v("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:k("||",1),logicalAND:k("&&",2),bitwiseOR:k("|",3),bitwiseXOR:k("^",4),bitwiseAND:k("&",5),equality:k("==/!=/===/!==",6),relational:k("</>/<=/>=",7),bitShift:k("<</>>/>>>",8),plusMin:new v("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:k("%",10),star:k("*",10),slash:k("/",10),starstar:new v("**",{beforeExpr:!0}),coalesce:k("??",1),_break:O("break"),_case:O("case",I),_catch:O("catch"),_continue:O("continue"),_debugger:O("debugger"),_default:O("default",I),_do:O("do",{isLoop:!0,beforeExpr:!0}),_else:O("else",I),_finally:O("finally"),_for:O("for",{isLoop:!0}),_function:O("function",P),_if:O("if"),_return:O("return",I),_switch:O("switch"),_throw:O("throw",I),_try:O("try"),_var:O("var"),_const:O("const"),_while:O("while",{isLoop:!0}),_with:O("with"),_new:O("new",{beforeExpr:!0,startsExpr:!0}),_this:O("this",P),_super:O("super",P),_class:O("class",P),_extends:O("extends",I),_export:O("export"),_import:O("import",P),_null:O("null",P),_true:O("true",P),_false:O("false",P),_in:O("in",{beforeExpr:!0,binop:7}),_instanceof:O("instanceof",{beforeExpr:!0,binop:7}),_typeof:O("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:O("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:O("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},V=/\r\n?|\n|\u2028|\u2029/,te=new RegExp(V.source,"g");function $(r,a){return r===10||r===13||!a&&(r===8232||r===8233)}var M=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,G=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ne=Object.prototype,Z=ne.hasOwnProperty,re=ne.toString;function se(r,a){return Z.call(r,a)}var ie=Array.isArray||function(r){return re.call(r)==="[object Array]"};function fe(r){return new RegExp("^(?:"+r.replace(/ /g,"|")+")$")}var Q=function(a,h){this.line=a,this.column=h};Q.prototype.offset=function(a){return new Q(this.line,this.column+a)};var B=function(a,h,g){this.start=h,this.end=g,a.sourceFile!==null&&(this.source=a.sourceFile)};function S(r,a){for(var h=1,g=0;;){te.lastIndex=g;var w=te.exec(r);if(w&&w.index<a)++h,g=w.index+w[0].length;else return new Q(h,a-g)}}var j={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function U(r){var a={};for(var h in j)a[h]=r&&se(r,h)?r[h]:j[h];if(a.ecmaVersion>=2015&&(a.ecmaVersion-=2009),a.allowReserved==null&&(a.allowReserved=a.ecmaVersion<5),ie(a.onToken)){var g=a.onToken;a.onToken=function(w){return g.push(w)}}return ie(a.onComment)&&(a.onComment=q(a,a.onComment)),a}function q(r,a){return function(h,g,w,_,T,W){var H={type:h?"Block":"Line",value:g,start:w,end:_};r.locations&&(H.loc=new B(this,T,W)),r.ranges&&(H.range=[w,_]),a.push(H)}}var z=1,de=2,Ce=z|de,ye=4,st=8,$e=16,Le=32,at=64,Ye=128;function ut(r,a){return de|(r?ye:0)|(a?st:0)}var Re=0,Be=1,He=2,Xr=3,or=4,Zr=5,Fe=function(a,h,g){this.options=a=U(a),this.sourceFile=a.sourceFile,this.keywords=fe(n[a.ecmaVersion>=6?6:a.sourceType==="module"?"5module":5]);var w="";if(a.allowReserved!==!0){for(var _=a.ecmaVersion;!(w=t[_]);_--);a.sourceType==="module"&&(w+=" await")}this.reservedWords=fe(w);var T=(w?w+" ":"")+t.strict;this.reservedWordsStrict=fe(T),this.reservedWordsStrictBind=fe(T+" "+t.strictBind),this.input=String(h),this.containsEsc=!1,g?(this.pos=g,this.lineStart=this.input.lastIndexOf(`
|
|
63
63
|
`,g-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(V).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=f.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=a.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&a.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(z),this.regexpState=null},lt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};Fe.prototype.parse=function(){var a=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(a)},lt.inFunction.get=function(){return(this.currentVarScope().flags&de)>0},lt.inGenerator.get=function(){return(this.currentVarScope().flags&st)>0},lt.inAsync.get=function(){return(this.currentVarScope().flags&ye)>0},lt.allowSuper.get=function(){return(this.currentThisScope().flags&at)>0},lt.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Ye)>0},lt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Fe.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&de)>0},Fe.extend=function(){for(var a=[],h=arguments.length;h--;)a[h]=arguments[h];for(var g=this,w=0;w<a.length;w++)g=a[w](g);return g},Fe.parse=function(a,h){return new this(h,a).parse()},Fe.parseExpressionAt=function(a,h,g){var w=new this(g,a,h);return w.nextToken(),w.parseExpression()},Fe.tokenizer=function(a,h){return new this(h,a)},Object.defineProperties(Fe.prototype,lt);var Pe=Fe.prototype,Xe=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Pe.strictDirective=function(r){for(;;){G.lastIndex=r,r+=G.exec(this.input)[0].length;var a=Xe.exec(this.input.slice(r));if(!a)return!1;if((a[1]||a[2])==="use strict"){G.lastIndex=r+a[0].length;var h=G.exec(this.input),g=h.index+h[0].length,w=this.input.charAt(g);return w===";"||w==="}"||V.test(h[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(w)||w==="!"&&this.input.charAt(g+1)==="=")}r+=a[0].length,G.lastIndex=r,r+=G.exec(this.input)[0].length,this.input[r]===";"&&r++}},Pe.eat=function(r){return this.type===r?(this.next(),!0):!1},Pe.isContextual=function(r){return this.type===f.name&&this.value===r&&!this.containsEsc},Pe.eatContextual=function(r){return this.isContextual(r)?(this.next(),!0):!1},Pe.expectContextual=function(r){this.eatContextual(r)||this.unexpected()},Pe.canInsertSemicolon=function(){return this.type===f.eof||this.type===f.braceR||V.test(this.input.slice(this.lastTokEnd,this.start))},Pe.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Pe.semicolon=function(){!this.eat(f.semi)&&!this.insertSemicolon()&&this.unexpected()},Pe.afterTrailingComma=function(r,a){if(this.type===r)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),a||this.next(),!0},Pe.expect=function(r){this.eat(r)||this.unexpected()},Pe.unexpected=function(r){this.raise(r??this.start,"Unexpected token")};function Bt(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}Pe.checkPatternErrors=function(r,a){if(r){r.trailingComma>-1&&this.raiseRecoverable(r.trailingComma,"Comma is not permitted after the rest element");var h=a?r.parenthesizedAssign:r.parenthesizedBind;h>-1&&this.raiseRecoverable(h,"Parenthesized pattern")}},Pe.checkExpressionErrors=function(r,a){if(!r)return!1;var h=r.shorthandAssign,g=r.doubleProto;if(!a)return h>=0||g>=0;h>=0&&this.raise(h,"Shorthand property assignments are valid only in destructuring patterns"),g>=0&&this.raiseRecoverable(g,"Redefinition of __proto__ property")},Pe.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Pe.isSimpleAssignTarget=function(r){return r.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(r.expression):r.type==="Identifier"||r.type==="MemberExpression"};var oe=Fe.prototype;oe.parseTopLevel=function(r){var a={};for(r.body||(r.body=[]);this.type!==f.eof;){var h=this.parseStatement(null,!0,a);r.body.push(h)}if(this.inModule)for(var g=0,w=Object.keys(this.undefinedExports);g<w.length;g+=1){var _=w[g];this.raiseRecoverable(this.undefinedExports[_].start,"Export '"+_+"' is not defined")}return this.adaptDirectivePrologue(r.body),this.next(),r.sourceType=this.options.sourceType,this.finishNode(r,"Program")};var Ze={kind:"loop"},Zi={kind:"switch"};oe.isLet=function(r){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;G.lastIndex=this.pos;var a=G.exec(this.input),h=this.pos+a[0].length,g=this.input.charCodeAt(h);if(g===91)return!0;if(r)return!1;if(g===123)return!0;if(E(g,!0)){for(var w=h+1;x(this.input.charCodeAt(w),!0);)++w;var _=this.input.slice(h,w);if(!s.test(_))return!0}return!1},oe.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;G.lastIndex=this.pos;var r=G.exec(this.input),a=this.pos+r[0].length;return!V.test(this.input.slice(this.pos,a))&&this.input.slice(a,a+8)==="function"&&(a+8===this.input.length||!x(this.input.charAt(a+8)))},oe.parseStatement=function(r,a,h){var g=this.type,w=this.startNode(),_;switch(this.isLet(r)&&(g=f._var,_="let"),g){case f._break:case f._continue:return this.parseBreakContinueStatement(w,g.keyword);case f._debugger:return this.parseDebuggerStatement(w);case f._do:return this.parseDoStatement(w);case f._for:return this.parseForStatement(w);case f._function:return r&&(this.strict||r!=="if"&&r!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(w,!1,!r);case f._class:return r&&this.unexpected(),this.parseClass(w,!0);case f._if:return this.parseIfStatement(w);case f._return:return this.parseReturnStatement(w);case f._switch:return this.parseSwitchStatement(w);case f._throw:return this.parseThrowStatement(w);case f._try:return this.parseTryStatement(w);case f._const:case f._var:return _=_||this.value,r&&_!=="var"&&this.unexpected(),this.parseVarStatement(w,_);case f._while:return this.parseWhileStatement(w);case f._with:return this.parseWithStatement(w);case f.braceL:return this.parseBlock(!0,w);case f.semi:return this.parseEmptyStatement(w);case f._export:case f._import:if(this.options.ecmaVersion>10&&g===f._import){G.lastIndex=this.pos;var T=G.exec(this.input),W=this.pos+T[0].length,H=this.input.charCodeAt(W);if(H===40||H===46)return this.parseExpressionStatement(w,this.parseExpression())}return this.options.allowImportExportEverywhere||(a||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),g===f._import?this.parseImport(w):this.parseExport(w,h);default:if(this.isAsyncFunction())return r&&this.unexpected(),this.next(),this.parseFunctionStatement(w,!0,!r);var he=this.value,Ee=this.parseExpression();return g===f.name&&Ee.type==="Identifier"&&this.eat(f.colon)?this.parseLabeledStatement(w,he,Ee,r):this.parseExpressionStatement(w,Ee)}},oe.parseBreakContinueStatement=function(r,a){var h=a==="break";this.next(),this.eat(f.semi)||this.insertSemicolon()?r.label=null:this.type!==f.name?this.unexpected():(r.label=this.parseIdent(),this.semicolon());for(var g=0;g<this.labels.length;++g){var w=this.labels[g];if((r.label==null||w.name===r.label.name)&&(w.kind!=null&&(h||w.kind==="loop")||r.label&&h))break}return g===this.labels.length&&this.raise(r.start,"Unsyntactic "+a),this.finishNode(r,h?"BreakStatement":"ContinueStatement")},oe.parseDebuggerStatement=function(r){return this.next(),this.semicolon(),this.finishNode(r,"DebuggerStatement")},oe.parseDoStatement=function(r){return this.next(),this.labels.push(Ze),r.body=this.parseStatement("do"),this.labels.pop(),this.expect(f._while),r.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(f.semi):this.semicolon(),this.finishNode(r,"DoWhileStatement")},oe.parseForStatement=function(r){this.next();var a=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ze),this.enterScope(0),this.expect(f.parenL),this.type===f.semi)return a>-1&&this.unexpected(a),this.parseFor(r,null);var h=this.isLet();if(this.type===f._var||this.type===f._const||h){var g=this.startNode(),w=h?"let":this.value;return this.next(),this.parseVar(g,!0,w),this.finishNode(g,"VariableDeclaration"),(this.type===f._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&g.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===f._in?a>-1&&this.unexpected(a):r.await=a>-1),this.parseForIn(r,g)):(a>-1&&this.unexpected(a),this.parseFor(r,g))}var _=new Bt,T=this.parseExpression(!0,_);return this.type===f._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===f._in?a>-1&&this.unexpected(a):r.await=a>-1),this.toAssignable(T,!1,_),this.checkLVal(T),this.parseForIn(r,T)):(this.checkExpressionErrors(_,!0),a>-1&&this.unexpected(a),this.parseFor(r,T))},oe.parseFunctionStatement=function(r,a,h){return this.next(),this.parseFunction(r,l|(h?0:c),!1,a)},oe.parseIfStatement=function(r){return this.next(),r.test=this.parseParenExpression(),r.consequent=this.parseStatement("if"),r.alternate=this.eat(f._else)?this.parseStatement("if"):null,this.finishNode(r,"IfStatement")},oe.parseReturnStatement=function(r){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(f.semi)||this.insertSemicolon()?r.argument=null:(r.argument=this.parseExpression(),this.semicolon()),this.finishNode(r,"ReturnStatement")},oe.parseSwitchStatement=function(r){this.next(),r.discriminant=this.parseParenExpression(),r.cases=[],this.expect(f.braceL),this.labels.push(Zi),this.enterScope(0);for(var a,h=!1;this.type!==f.braceR;)if(this.type===f._case||this.type===f._default){var g=this.type===f._case;a&&this.finishNode(a,"SwitchCase"),r.cases.push(a=this.startNode()),a.consequent=[],this.next(),g?a.test=this.parseExpression():(h&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),h=!0,a.test=null),this.expect(f.colon)}else a||this.unexpected(),a.consequent.push(this.parseStatement(null));return this.exitScope(),a&&this.finishNode(a,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(r,"SwitchStatement")},oe.parseThrowStatement=function(r){return this.next(),V.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),r.argument=this.parseExpression(),this.semicolon(),this.finishNode(r,"ThrowStatement")};var d=[];oe.parseTryStatement=function(r){if(this.next(),r.block=this.parseBlock(),r.handler=null,this.type===f._catch){var a=this.startNode();if(this.next(),this.eat(f.parenL)){a.param=this.parseBindingAtom();var h=a.param.type==="Identifier";this.enterScope(h?Le:0),this.checkLVal(a.param,h?or:He),this.expect(f.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),a.param=null,this.enterScope(0);a.body=this.parseBlock(!1),this.exitScope(),r.handler=this.finishNode(a,"CatchClause")}return r.finalizer=this.eat(f._finally)?this.parseBlock():null,!r.handler&&!r.finalizer&&this.raise(r.start,"Missing catch or finally clause"),this.finishNode(r,"TryStatement")},oe.parseVarStatement=function(r,a){return this.next(),this.parseVar(r,!1,a),this.semicolon(),this.finishNode(r,"VariableDeclaration")},oe.parseWhileStatement=function(r){return this.next(),r.test=this.parseParenExpression(),this.labels.push(Ze),r.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(r,"WhileStatement")},oe.parseWithStatement=function(r){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),r.object=this.parseParenExpression(),r.body=this.parseStatement("with"),this.finishNode(r,"WithStatement")},oe.parseEmptyStatement=function(r){return this.next(),this.finishNode(r,"EmptyStatement")},oe.parseLabeledStatement=function(r,a,h,g){for(var w=0,_=this.labels;w<_.length;w+=1){var T=_[w];T.name===a&&this.raise(h.start,"Label '"+a+"' is already declared")}for(var W=this.type.isLoop?"loop":this.type===f._switch?"switch":null,H=this.labels.length-1;H>=0;H--){var he=this.labels[H];if(he.statementStart===r.start)he.statementStart=this.start,he.kind=W;else break}return this.labels.push({name:a,kind:W,statementStart:this.start}),r.body=this.parseStatement(g?g.indexOf("label")===-1?g+"label":g:"label"),this.labels.pop(),r.label=h,this.finishNode(r,"LabeledStatement")},oe.parseExpressionStatement=function(r,a){return r.expression=a,this.semicolon(),this.finishNode(r,"ExpressionStatement")},oe.parseBlock=function(r,a,h){for(r===void 0&&(r=!0),a===void 0&&(a=this.startNode()),a.body=[],this.expect(f.braceL),r&&this.enterScope(0);this.type!==f.braceR;){var g=this.parseStatement(null);a.body.push(g)}return h&&(this.strict=!1),this.next(),r&&this.exitScope(),this.finishNode(a,"BlockStatement")},oe.parseFor=function(r,a){return r.init=a,this.expect(f.semi),r.test=this.type===f.semi?null:this.parseExpression(),this.expect(f.semi),r.update=this.type===f.parenR?null:this.parseExpression(),this.expect(f.parenR),r.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(r,"ForStatement")},oe.parseForIn=function(r,a){var h=this.type===f._in;return this.next(),a.type==="VariableDeclaration"&&a.declarations[0].init!=null&&(!h||this.options.ecmaVersion<8||this.strict||a.kind!=="var"||a.declarations[0].id.type!=="Identifier")?this.raise(a.start,(h?"for-in":"for-of")+" loop variable declaration may not have an initializer"):a.type==="AssignmentPattern"&&this.raise(a.start,"Invalid left-hand side in for-loop"),r.left=a,r.right=h?this.parseExpression():this.parseMaybeAssign(),this.expect(f.parenR),r.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(r,h?"ForInStatement":"ForOfStatement")},oe.parseVar=function(r,a,h){for(r.declarations=[],r.kind=h;;){var g=this.startNode();if(this.parseVarId(g,h),this.eat(f.eq)?g.init=this.parseMaybeAssign(a):h==="const"&&!(this.type===f._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():g.id.type!=="Identifier"&&!(a&&(this.type===f._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):g.init=null,r.declarations.push(this.finishNode(g,"VariableDeclarator")),!this.eat(f.comma))break}return r},oe.parseVarId=function(r,a){r.id=this.parseBindingAtom(),this.checkLVal(r.id,a==="var"?Be:He,!1)};var l=1,c=2,b=4;oe.parseFunction=function(r,a,h,g){this.initFunction(r),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!g)&&(this.type===f.star&&a&c&&this.unexpected(),r.generator=this.eat(f.star)),this.options.ecmaVersion>=8&&(r.async=!!g),a&l&&(r.id=a&b&&this.type!==f.name?null:this.parseIdent(),r.id&&!(a&c)&&this.checkLVal(r.id,this.strict||r.generator||r.async?this.treatFunctionsAsVar?Be:He:Xr));var w=this.yieldPos,_=this.awaitPos,T=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ut(r.async,r.generator)),a&l||(r.id=this.type===f.name?this.parseIdent():null),this.parseFunctionParams(r),this.parseFunctionBody(r,h,!1),this.yieldPos=w,this.awaitPos=_,this.awaitIdentPos=T,this.finishNode(r,a&l?"FunctionDeclaration":"FunctionExpression")},oe.parseFunctionParams=function(r){this.expect(f.parenL),r.params=this.parseBindingList(f.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},oe.parseClass=function(r,a){this.next();var h=this.strict;this.strict=!0,this.parseClassId(r,a),this.parseClassSuper(r);var g=this.startNode(),w=!1;for(g.body=[],this.expect(f.braceL);this.type!==f.braceR;){var _=this.parseClassElement(r.superClass!==null);_&&(g.body.push(_),_.type==="MethodDefinition"&&_.kind==="constructor"&&(w&&this.raise(_.start,"Duplicate constructor in the same class"),w=!0))}return this.strict=h,this.next(),r.body=this.finishNode(g,"ClassBody"),this.finishNode(r,a?"ClassDeclaration":"ClassExpression")},oe.parseClassElement=function(r){var a=this;if(this.eat(f.semi))return null;var h=this.startNode(),g=function(H,he){he===void 0&&(he=!1);var Ee=a.start,Me=a.startLoc;return a.eatContextual(H)?a.type!==f.parenL&&(!he||!a.canInsertSemicolon())?!0:(h.key&&a.unexpected(),h.computed=!1,h.key=a.startNodeAt(Ee,Me),h.key.name=H,a.finishNode(h.key,"Identifier"),!1):!1};h.kind="method",h.static=g("static");var w=this.eat(f.star),_=!1;w||(this.options.ecmaVersion>=8&&g("async",!0)?(_=!0,w=this.options.ecmaVersion>=9&&this.eat(f.star)):g("get")?h.kind="get":g("set")&&(h.kind="set")),h.key||this.parsePropertyName(h);var T=h.key,W=!1;return!h.computed&&!h.static&&(T.type==="Identifier"&&T.name==="constructor"||T.type==="Literal"&&T.value==="constructor")?(h.kind!=="method"&&this.raise(T.start,"Constructor can't have get/set modifier"),w&&this.raise(T.start,"Constructor can't be a generator"),_&&this.raise(T.start,"Constructor can't be an async method"),h.kind="constructor",W=r):h.static&&T.type==="Identifier"&&T.name==="prototype"&&this.raise(T.start,"Classes may not have a static property named prototype"),this.parseClassMethod(h,w,_,W),h.kind==="get"&&h.value.params.length!==0&&this.raiseRecoverable(h.value.start,"getter should have no params"),h.kind==="set"&&h.value.params.length!==1&&this.raiseRecoverable(h.value.start,"setter should have exactly one param"),h.kind==="set"&&h.value.params[0].type==="RestElement"&&this.raiseRecoverable(h.value.params[0].start,"Setter cannot use rest params"),h},oe.parseClassMethod=function(r,a,h,g){return r.value=this.parseMethod(a,h,g),this.finishNode(r,"MethodDefinition")},oe.parseClassId=function(r,a){this.type===f.name?(r.id=this.parseIdent(),a&&this.checkLVal(r.id,He,!1)):(a===!0&&this.unexpected(),r.id=null)},oe.parseClassSuper=function(r){r.superClass=this.eat(f._extends)?this.parseExprSubscripts():null},oe.parseExport=function(r,a){if(this.next(),this.eat(f.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(r.exported=this.parseIdent(!0),this.checkExport(a,r.exported.name,this.lastTokStart)):r.exported=null),this.expectContextual("from"),this.type!==f.string&&this.unexpected(),r.source=this.parseExprAtom(),this.semicolon(),this.finishNode(r,"ExportAllDeclaration");if(this.eat(f._default)){this.checkExport(a,"default",this.lastTokStart);var h;if(this.type===f._function||(h=this.isAsyncFunction())){var g=this.startNode();this.next(),h&&this.next(),r.declaration=this.parseFunction(g,l|b,!1,h)}else if(this.type===f._class){var w=this.startNode();r.declaration=this.parseClass(w,"nullableID")}else r.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(r,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())r.declaration=this.parseStatement(null),r.declaration.type==="VariableDeclaration"?this.checkVariableExport(a,r.declaration.declarations):this.checkExport(a,r.declaration.id.name,r.declaration.id.start),r.specifiers=[],r.source=null;else{if(r.declaration=null,r.specifiers=this.parseExportSpecifiers(a),this.eatContextual("from"))this.type!==f.string&&this.unexpected(),r.source=this.parseExprAtom();else{for(var _=0,T=r.specifiers;_<T.length;_+=1){var W=T[_];this.checkUnreserved(W.local),this.checkLocalExport(W.local)}r.source=null}this.semicolon()}return this.finishNode(r,"ExportNamedDeclaration")},oe.checkExport=function(r,a,h){r&&(se(r,a)&&this.raiseRecoverable(h,"Duplicate export '"+a+"'"),r[a]=!0)},oe.checkPatternExport=function(r,a){var h=a.type;if(h==="Identifier")this.checkExport(r,a.name,a.start);else if(h==="ObjectPattern")for(var g=0,w=a.properties;g<w.length;g+=1){var _=w[g];this.checkPatternExport(r,_)}else if(h==="ArrayPattern")for(var T=0,W=a.elements;T<W.length;T+=1){var H=W[T];H&&this.checkPatternExport(r,H)}else h==="Property"?this.checkPatternExport(r,a.value):h==="AssignmentPattern"?this.checkPatternExport(r,a.left):h==="RestElement"?this.checkPatternExport(r,a.argument):h==="ParenthesizedExpression"&&this.checkPatternExport(r,a.expression)},oe.checkVariableExport=function(r,a){if(r)for(var h=0,g=a;h<g.length;h+=1){var w=g[h];this.checkPatternExport(r,w.id)}},oe.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},oe.parseExportSpecifiers=function(r){var a=[],h=!0;for(this.expect(f.braceL);!this.eat(f.braceR);){if(h)h=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;var g=this.startNode();g.local=this.parseIdent(!0),g.exported=this.eatContextual("as")?this.parseIdent(!0):g.local,this.checkExport(r,g.exported.name,g.exported.start),a.push(this.finishNode(g,"ExportSpecifier"))}return a},oe.parseImport=function(r){return this.next(),this.type===f.string?(r.specifiers=d,r.source=this.parseExprAtom()):(r.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),r.source=this.type===f.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(r,"ImportDeclaration")},oe.parseImportSpecifiers=function(){var r=[],a=!0;if(this.type===f.name){var h=this.startNode();if(h.local=this.parseIdent(),this.checkLVal(h.local,He),r.push(this.finishNode(h,"ImportDefaultSpecifier")),!this.eat(f.comma))return r}if(this.type===f.star){var g=this.startNode();return this.next(),this.expectContextual("as"),g.local=this.parseIdent(),this.checkLVal(g.local,He),r.push(this.finishNode(g,"ImportNamespaceSpecifier")),r}for(this.expect(f.braceL);!this.eat(f.braceR);){if(a)a=!1;else if(this.expect(f.comma),this.afterTrailingComma(f.braceR))break;var w=this.startNode();w.imported=this.parseIdent(!0),this.eatContextual("as")?w.local=this.parseIdent():(this.checkUnreserved(w.imported),w.local=w.imported),this.checkLVal(w.local,He),r.push(this.finishNode(w,"ImportSpecifier"))}return r},oe.adaptDirectivePrologue=function(r){for(var a=0;a<r.length&&this.isDirectiveCandidate(r[a]);++a)r[a].directive=r[a].expression.raw.slice(1,-1)},oe.isDirectiveCandidate=function(r){return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&(this.input[r.start]==='"'||this.input[r.start]==="'")};var C=Fe.prototype;C.toAssignable=function(r,a,h){if(this.options.ecmaVersion>=6&&r)switch(r.type){case"Identifier":this.inAsync&&r.name==="await"&&this.raise(r.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":r.type="ObjectPattern",h&&this.checkPatternErrors(h,!0);for(var g=0,w=r.properties;g<w.length;g+=1){var _=w[g];this.toAssignable(_,a),_.type==="RestElement"&&(_.argument.type==="ArrayPattern"||_.argument.type==="ObjectPattern")&&this.raise(_.argument.start,"Unexpected token")}break;case"Property":r.kind!=="init"&&this.raise(r.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(r.value,a);break;case"ArrayExpression":r.type="ArrayPattern",h&&this.checkPatternErrors(h,!0),this.toAssignableList(r.elements,a);break;case"SpreadElement":r.type="RestElement",this.toAssignable(r.argument,a),r.argument.type==="AssignmentPattern"&&this.raise(r.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":r.operator!=="="&&this.raise(r.left.end,"Only '=' operator can be used for specifying default value."),r.type="AssignmentPattern",delete r.operator,this.toAssignable(r.left,a);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(r.expression,a,h);break;case"ChainExpression":this.raiseRecoverable(r.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!a)break;default:this.raise(r.start,"Assigning to rvalue")}else h&&this.checkPatternErrors(h,!0);return r},C.toAssignableList=function(r,a){for(var h=r.length,g=0;g<h;g++){var w=r[g];w&&this.toAssignable(w,a)}if(h){var _=r[h-1];this.options.ecmaVersion===6&&a&&_&&_.type==="RestElement"&&_.argument.type!=="Identifier"&&this.unexpected(_.argument.start)}return r},C.parseSpread=function(r){var a=this.startNode();return this.next(),a.argument=this.parseMaybeAssign(!1,r),this.finishNode(a,"SpreadElement")},C.parseRestBinding=function(){var r=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==f.name&&this.unexpected(),r.argument=this.parseBindingAtom(),this.finishNode(r,"RestElement")},C.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case f.bracketL:var r=this.startNode();return this.next(),r.elements=this.parseBindingList(f.bracketR,!0,!0),this.finishNode(r,"ArrayPattern");case f.braceL:return this.parseObj(!0)}return this.parseIdent()},C.parseBindingList=function(r,a,h){for(var g=[],w=!0;!this.eat(r);)if(w?w=!1:this.expect(f.comma),a&&this.type===f.comma)g.push(null);else{if(h&&this.afterTrailingComma(r))break;if(this.type===f.ellipsis){var _=this.parseRestBinding();this.parseBindingListItem(_),g.push(_),this.type===f.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(r);break}else{var T=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(T),g.push(T)}}return g},C.parseBindingListItem=function(r){return r},C.parseMaybeDefault=function(r,a,h){if(h=h||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(f.eq))return h;var g=this.startNodeAt(r,a);return g.left=h,g.right=this.parseMaybeAssign(),this.finishNode(g,"AssignmentPattern")},C.checkLVal=function(r,a,h){switch(a===void 0&&(a=Re),r.type){case"Identifier":a===He&&r.name==="let"&&this.raiseRecoverable(r.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(r.name)&&this.raiseRecoverable(r.start,(a?"Binding ":"Assigning to ")+r.name+" in strict mode"),h&&(se(h,r.name)&&this.raiseRecoverable(r.start,"Argument name clash"),h[r.name]=!0),a!==Re&&a!==Zr&&this.declareName(r.name,a,r.start);break;case"ChainExpression":this.raiseRecoverable(r.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":a&&this.raiseRecoverable(r.start,"Binding member expression");break;case"ObjectPattern":for(var g=0,w=r.properties;g<w.length;g+=1){var _=w[g];this.checkLVal(_,a,h)}break;case"Property":this.checkLVal(r.value,a,h);break;case"ArrayPattern":for(var T=0,W=r.elements;T<W.length;T+=1){var H=W[T];H&&this.checkLVal(H,a,h)}break;case"AssignmentPattern":this.checkLVal(r.left,a,h);break;case"RestElement":this.checkLVal(r.argument,a,h);break;case"ParenthesizedExpression":this.checkLVal(r.expression,a,h);break;default:this.raise(r.start,(a?"Binding":"Assigning to")+" rvalue")}};var A=Fe.prototype;A.checkPropClash=function(r,a,h){if(!(this.options.ecmaVersion>=9&&r.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(r.computed||r.method||r.shorthand))){var g=r.key,w;switch(g.type){case"Identifier":w=g.name;break;case"Literal":w=String(g.value);break;default:return}var _=r.kind;if(this.options.ecmaVersion>=6){w==="__proto__"&&_==="init"&&(a.proto&&(h?h.doubleProto<0&&(h.doubleProto=g.start):this.raiseRecoverable(g.start,"Redefinition of __proto__ property")),a.proto=!0);return}w="$"+w;var T=a[w];if(T){var W;_==="init"?W=this.strict&&T.init||T.get||T.set:W=T.init||T[_],W&&this.raiseRecoverable(g.start,"Redefinition of property")}else T=a[w]={init:!1,get:!1,set:!1};T[_]=!0}},A.parseExpression=function(r,a){var h=this.start,g=this.startLoc,w=this.parseMaybeAssign(r,a);if(this.type===f.comma){var _=this.startNodeAt(h,g);for(_.expressions=[w];this.eat(f.comma);)_.expressions.push(this.parseMaybeAssign(r,a));return this.finishNode(_,"SequenceExpression")}return w},A.parseMaybeAssign=function(r,a,h){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(r);this.exprAllowed=!1}var g=!1,w=-1,_=-1;a?(w=a.parenthesizedAssign,_=a.trailingComma,a.parenthesizedAssign=a.trailingComma=-1):(a=new Bt,g=!0);var T=this.start,W=this.startLoc;(this.type===f.parenL||this.type===f.name)&&(this.potentialArrowAt=this.start);var H=this.parseMaybeConditional(r,a);if(h&&(H=h.call(this,H,T,W)),this.type.isAssign){var he=this.startNodeAt(T,W);return he.operator=this.value,he.left=this.type===f.eq?this.toAssignable(H,!1,a):H,g||(a.parenthesizedAssign=a.trailingComma=a.doubleProto=-1),a.shorthandAssign>=he.left.start&&(a.shorthandAssign=-1),this.checkLVal(H),this.next(),he.right=this.parseMaybeAssign(r),this.finishNode(he,"AssignmentExpression")}else g&&this.checkExpressionErrors(a,!0);return w>-1&&(a.parenthesizedAssign=w),_>-1&&(a.trailingComma=_),H},A.parseMaybeConditional=function(r,a){var h=this.start,g=this.startLoc,w=this.parseExprOps(r,a);if(this.checkExpressionErrors(a))return w;if(this.eat(f.question)){var _=this.startNodeAt(h,g);return _.test=w,_.consequent=this.parseMaybeAssign(),this.expect(f.colon),_.alternate=this.parseMaybeAssign(r),this.finishNode(_,"ConditionalExpression")}return w},A.parseExprOps=function(r,a){var h=this.start,g=this.startLoc,w=this.parseMaybeUnary(a,!1);return this.checkExpressionErrors(a)||w.start===h&&w.type==="ArrowFunctionExpression"?w:this.parseExprOp(w,h,g,-1,r)},A.parseExprOp=function(r,a,h,g,w){var _=this.type.binop;if(_!=null&&(!w||this.type!==f._in)&&_>g){var T=this.type===f.logicalOR||this.type===f.logicalAND,W=this.type===f.coalesce;W&&(_=f.logicalAND.binop);var H=this.value;this.next();var he=this.start,Ee=this.startLoc,Me=this.parseExprOp(this.parseMaybeUnary(null,!1),he,Ee,_,w),Ut=this.buildBinary(a,h,r,Me,H,T||W);return(T&&this.type===f.coalesce||W&&(this.type===f.logicalOR||this.type===f.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(Ut,a,h,g,w)}return r},A.buildBinary=function(r,a,h,g,w,_){var T=this.startNodeAt(r,a);return T.left=h,T.operator=w,T.right=g,this.finishNode(T,_?"LogicalExpression":"BinaryExpression")},A.parseMaybeUnary=function(r,a){var h=this.start,g=this.startLoc,w;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))w=this.parseAwait(),a=!0;else if(this.type.prefix){var _=this.startNode(),T=this.type===f.incDec;_.operator=this.value,_.prefix=!0,this.next(),_.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(r,!0),T?this.checkLVal(_.argument):this.strict&&_.operator==="delete"&&_.argument.type==="Identifier"?this.raiseRecoverable(_.start,"Deleting local variable in strict mode"):a=!0,w=this.finishNode(_,T?"UpdateExpression":"UnaryExpression")}else{if(w=this.parseExprSubscripts(r),this.checkExpressionErrors(r))return w;for(;this.type.postfix&&!this.canInsertSemicolon();){var W=this.startNodeAt(h,g);W.operator=this.value,W.prefix=!1,W.argument=w,this.checkLVal(w),this.next(),w=this.finishNode(W,"UpdateExpression")}}return!a&&this.eat(f.starstar)?this.buildBinary(h,g,w,this.parseMaybeUnary(null,!1),"**",!1):w},A.parseExprSubscripts=function(r){var a=this.start,h=this.startLoc,g=this.parseExprAtom(r);if(g.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return g;var w=this.parseSubscripts(g,a,h);return r&&w.type==="MemberExpression"&&(r.parenthesizedAssign>=w.start&&(r.parenthesizedAssign=-1),r.parenthesizedBind>=w.start&&(r.parenthesizedBind=-1)),w},A.parseSubscripts=function(r,a,h,g){for(var w=this.options.ecmaVersion>=8&&r.type==="Identifier"&&r.name==="async"&&this.lastTokEnd===r.end&&!this.canInsertSemicolon()&&r.end-r.start===5&&this.potentialArrowAt===r.start,_=!1;;){var T=this.parseSubscript(r,a,h,g,w,_);if(T.optional&&(_=!0),T===r||T.type==="ArrowFunctionExpression"){if(_){var W=this.startNodeAt(a,h);W.expression=T,T=this.finishNode(W,"ChainExpression")}return T}r=T}},A.parseSubscript=function(r,a,h,g,w,_){var T=this.options.ecmaVersion>=11,W=T&&this.eat(f.questionDot);g&&W&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var H=this.eat(f.bracketL);if(H||W&&this.type!==f.parenL&&this.type!==f.backQuote||this.eat(f.dot)){var he=this.startNodeAt(a,h);he.object=r,he.property=H?this.parseExpression():this.parseIdent(this.options.allowReserved!=="never"),he.computed=!!H,H&&this.expect(f.bracketR),T&&(he.optional=W),r=this.finishNode(he,"MemberExpression")}else if(!g&&this.eat(f.parenL)){var Ee=new Bt,Me=this.yieldPos,Ut=this.awaitPos,ur=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var ni=this.parseExprList(f.parenR,this.options.ecmaVersion>=8,!1,Ee);if(w&&!W&&!this.canInsertSemicolon()&&this.eat(f.arrow))return this.checkPatternErrors(Ee,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Me,this.awaitPos=Ut,this.awaitIdentPos=ur,this.parseArrowExpression(this.startNodeAt(a,h),ni,!0);this.checkExpressionErrors(Ee,!0),this.yieldPos=Me||this.yieldPos,this.awaitPos=Ut||this.awaitPos,this.awaitIdentPos=ur||this.awaitIdentPos;var lr=this.startNodeAt(a,h);lr.callee=r,lr.arguments=ni,T&&(lr.optional=W),r=this.finishNode(lr,"CallExpression")}else if(this.type===f.backQuote){(W||_)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var cr=this.startNodeAt(a,h);cr.tag=r,cr.quasi=this.parseTemplate({isTagged:!0}),r=this.finishNode(cr,"TaggedTemplateExpression")}return r},A.parseExprAtom=function(r){this.type===f.slash&&this.readRegexp();var a,h=this.potentialArrowAt===this.start;switch(this.type){case f._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),a=this.startNode(),this.next(),this.type===f.parenL&&!this.allowDirectSuper&&this.raise(a.start,"super() call outside constructor of a subclass"),this.type!==f.dot&&this.type!==f.bracketL&&this.type!==f.parenL&&this.unexpected(),this.finishNode(a,"Super");case f._this:return a=this.startNode(),this.next(),this.finishNode(a,"ThisExpression");case f.name:var g=this.start,w=this.startLoc,_=this.containsEsc,T=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!_&&T.name==="async"&&!this.canInsertSemicolon()&&this.eat(f._function))return this.parseFunction(this.startNodeAt(g,w),0,!1,!0);if(h&&!this.canInsertSemicolon()){if(this.eat(f.arrow))return this.parseArrowExpression(this.startNodeAt(g,w),[T],!1);if(this.options.ecmaVersion>=8&&T.name==="async"&&this.type===f.name&&!_)return T=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(f.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(g,w),[T],!0)}return T;case f.regexp:var W=this.value;return a=this.parseLiteral(W.value),a.regex={pattern:W.pattern,flags:W.flags},a;case f.num:case f.string:return this.parseLiteral(this.value);case f._null:case f._true:case f._false:return a=this.startNode(),a.value=this.type===f._null?null:this.type===f._true,a.raw=this.type.keyword,this.next(),this.finishNode(a,"Literal");case f.parenL:var H=this.start,he=this.parseParenAndDistinguishExpression(h);return r&&(r.parenthesizedAssign<0&&!this.isSimpleAssignTarget(he)&&(r.parenthesizedAssign=H),r.parenthesizedBind<0&&(r.parenthesizedBind=H)),he;case f.bracketL:return a=this.startNode(),this.next(),a.elements=this.parseExprList(f.bracketR,!0,!0,r),this.finishNode(a,"ArrayExpression");case f.braceL:return this.parseObj(!1,r);case f._function:return a=this.startNode(),this.next(),this.parseFunction(a,0);case f._class:return this.parseClass(this.startNode(),!1);case f._new:return this.parseNew();case f.backQuote:return this.parseTemplate();case f._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},A.parseExprImport=function(){var r=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var a=this.parseIdent(!0);switch(this.type){case f.parenL:return this.parseDynamicImport(r);case f.dot:return r.meta=a,this.parseImportMeta(r);default:this.unexpected()}},A.parseDynamicImport=function(r){if(this.next(),r.source=this.parseMaybeAssign(),!this.eat(f.parenR)){var a=this.start;this.eat(f.comma)&&this.eat(f.parenR)?this.raiseRecoverable(a,"Trailing comma is not allowed in import()"):this.unexpected(a)}return this.finishNode(r,"ImportExpression")},A.parseImportMeta=function(r){this.next();var a=this.containsEsc;return r.property=this.parseIdent(!0),r.property.name!=="meta"&&this.raiseRecoverable(r.property.start,"The only valid meta property for import is 'import.meta'"),a&&this.raiseRecoverable(r.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&this.raiseRecoverable(r.start,"Cannot use 'import.meta' outside a module"),this.finishNode(r,"MetaProperty")},A.parseLiteral=function(r){var a=this.startNode();return a.value=r,a.raw=this.input.slice(this.start,this.end),a.raw.charCodeAt(a.raw.length-1)===110&&(a.bigint=a.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(a,"Literal")},A.parseParenExpression=function(){this.expect(f.parenL);var r=this.parseExpression();return this.expect(f.parenR),r},A.parseParenAndDistinguishExpression=function(r){var a=this.start,h=this.startLoc,g,w=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var _=this.start,T=this.startLoc,W=[],H=!0,he=!1,Ee=new Bt,Me=this.yieldPos,Ut=this.awaitPos,ur;for(this.yieldPos=0,this.awaitPos=0;this.type!==f.parenR;)if(H?H=!1:this.expect(f.comma),w&&this.afterTrailingComma(f.parenR,!0)){he=!0;break}else if(this.type===f.ellipsis){ur=this.start,W.push(this.parseParenItem(this.parseRestBinding())),this.type===f.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else W.push(this.parseMaybeAssign(!1,Ee,this.parseParenItem));var ni=this.start,lr=this.startLoc;if(this.expect(f.parenR),r&&!this.canInsertSemicolon()&&this.eat(f.arrow))return this.checkPatternErrors(Ee,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Me,this.awaitPos=Ut,this.parseParenArrowList(a,h,W);(!W.length||he)&&this.unexpected(this.lastTokStart),ur&&this.unexpected(ur),this.checkExpressionErrors(Ee,!0),this.yieldPos=Me||this.yieldPos,this.awaitPos=Ut||this.awaitPos,W.length>1?(g=this.startNodeAt(_,T),g.expressions=W,this.finishNodeAt(g,"SequenceExpression",ni,lr)):g=W[0]}else g=this.parseParenExpression();if(this.options.preserveParens){var cr=this.startNodeAt(a,h);return cr.expression=g,this.finishNode(cr,"ParenthesizedExpression")}else return g},A.parseParenItem=function(r){return r},A.parseParenArrowList=function(r,a,h){return this.parseArrowExpression(this.startNodeAt(r,a),h)};var R=[];A.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var r=this.startNode(),a=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(f.dot)){r.meta=a;var h=this.containsEsc;return r.property=this.parseIdent(!0),r.property.name!=="target"&&this.raiseRecoverable(r.property.start,"The only valid meta property for new is 'new.target'"),h&&this.raiseRecoverable(r.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(r.start,"'new.target' can only be used in functions"),this.finishNode(r,"MetaProperty")}var g=this.start,w=this.startLoc,_=this.type===f._import;return r.callee=this.parseSubscripts(this.parseExprAtom(),g,w,!0),_&&r.callee.type==="ImportExpression"&&this.raise(g,"Cannot use new with import()"),this.eat(f.parenL)?r.arguments=this.parseExprList(f.parenR,this.options.ecmaVersion>=8,!1):r.arguments=R,this.finishNode(r,"NewExpression")},A.parseTemplateElement=function(r){var a=r.isTagged,h=this.startNode();return this.type===f.invalidTemplate?(a||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),h.value={raw:this.value,cooked:null}):h.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
64
|
-
`),cooked:this.value},this.next(),h.tail=this.type===f.backQuote,this.finishNode(h,"TemplateElement")},A.parseTemplate=function(r){r===void 0&&(r={});var a=r.isTagged;a===void 0&&(a=!1);var h=this.startNode();this.next(),h.expressions=[];var g=this.parseTemplateElement({isTagged:a});for(h.quasis=[g];!g.tail;)this.type===f.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(f.dollarBraceL),h.expressions.push(this.parseExpression()),this.expect(f.braceR),h.quasis.push(g=this.parseTemplateElement({isTagged:a}));return this.next(),this.finishNode(h,"TemplateLiteral")},A.isAsyncProp=function(r){return!r.computed&&r.key.type==="Identifier"&&r.key.name==="async"&&(this.type===f.name||this.type===f.num||this.type===f.string||this.type===f.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===f.star)&&!V.test(this.input.slice(this.lastTokEnd,this.start))},A.parseObj=function(r,a){var h=this.startNode(),g=!0,w={};for(h.properties=[],this.next();!this.eat(f.braceR);){if(g)g=!1;else if(this.expect(f.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(f.braceR))break;var _=this.parseProperty(r,a);r||this.checkPropClash(_,w,a),h.properties.push(_)}return this.finishNode(h,r?"ObjectPattern":"ObjectExpression")},A.parseProperty=function(r,a){var h=this.startNode(),g,w,_,T;if(this.options.ecmaVersion>=9&&this.eat(f.ellipsis))return r?(h.argument=this.parseIdent(!1),this.type===f.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(h,"RestElement")):(this.type===f.parenL&&a&&(a.parenthesizedAssign<0&&(a.parenthesizedAssign=this.start),a.parenthesizedBind<0&&(a.parenthesizedBind=this.start)),h.argument=this.parseMaybeAssign(!1,a),this.type===f.comma&&a&&a.trailingComma<0&&(a.trailingComma=this.start),this.finishNode(h,"SpreadElement"));this.options.ecmaVersion>=6&&(h.method=!1,h.shorthand=!1,(r||a)&&(_=this.start,T=this.startLoc),r||(g=this.eat(f.star)));var W=this.containsEsc;return this.parsePropertyName(h),!r&&!W&&this.options.ecmaVersion>=8&&!g&&this.isAsyncProp(h)?(w=!0,g=this.options.ecmaVersion>=9&&this.eat(f.star),this.parsePropertyName(h,a)):w=!1,this.parsePropertyValue(h,r,g,w,_,T,a,W),this.finishNode(h,"Property")},A.parsePropertyValue=function(r,a,h,g,w,_,T,W){if((h||g)&&this.type===f.colon&&this.unexpected(),this.eat(f.colon))r.value=a?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,T),r.kind="init";else if(this.options.ecmaVersion>=6&&this.type===f.parenL)a&&this.unexpected(),r.kind="init",r.method=!0,r.value=this.parseMethod(h,g);else if(!a&&!W&&this.options.ecmaVersion>=5&&!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.type!==f.comma&&this.type!==f.braceR&&this.type!==f.eq){(h||g)&&this.unexpected(),r.kind=r.key.name,this.parsePropertyName(r),r.value=this.parseMethod(!1);var H=r.kind==="get"?0:1;if(r.value.params.length!==H){var he=r.value.start;r.kind==="get"?this.raiseRecoverable(he,"getter should have no params"):this.raiseRecoverable(he,"setter should have exactly one param")}else r.kind==="set"&&r.value.params[0].type==="RestElement"&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!r.computed&&r.key.type==="Identifier"?((h||g)&&this.unexpected(),this.checkUnreserved(r.key),r.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=w),r.kind="init",a?r.value=this.parseMaybeDefault(w,_,r.key):this.type===f.eq&&T?(T.shorthandAssign<0&&(T.shorthandAssign=this.start),r.value=this.parseMaybeDefault(w,_,r.key)):r.value=r.key,r.shorthand=!0):this.unexpected()},A.parsePropertyName=function(r){if(this.options.ecmaVersion>=6){if(this.eat(f.bracketL))return r.computed=!0,r.key=this.parseMaybeAssign(),this.expect(f.bracketR),r.key;r.computed=!1}return r.key=this.type===f.num||this.type===f.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},A.initFunction=function(r){r.id=null,this.options.ecmaVersion>=6&&(r.generator=r.expression=!1),this.options.ecmaVersion>=8&&(r.async=!1)},A.parseMethod=function(r,a,h){var g=this.startNode(),w=this.yieldPos,_=this.awaitPos,T=this.awaitIdentPos;return this.initFunction(g),this.options.ecmaVersion>=6&&(g.generator=r),this.options.ecmaVersion>=8&&(g.async=!!a),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ut(a,g.generator)|at|(h?Ye:0)),this.expect(f.parenL),g.params=this.parseBindingList(f.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(g,!1,!0),this.yieldPos=w,this.awaitPos=_,this.awaitIdentPos=T,this.finishNode(g,"FunctionExpression")},A.parseArrowExpression=function(r,a,h){var g=this.yieldPos,w=this.awaitPos,_=this.awaitIdentPos;return this.enterScope(ut(h,!1)|$e),this.initFunction(r),this.options.ecmaVersion>=8&&(r.async=!!h),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,r.params=this.toAssignableList(a,!0),this.parseFunctionBody(r,!0,!1),this.yieldPos=g,this.awaitPos=w,this.awaitIdentPos=_,this.finishNode(r,"ArrowFunctionExpression")},A.parseFunctionBody=function(r,a,h){var g=a&&this.type!==f.braceL,w=this.strict,_=!1;if(g)r.body=this.parseMaybeAssign(),r.expression=!0,this.checkParams(r,!1);else{var T=this.options.ecmaVersion>=7&&!this.isSimpleParamList(r.params);(!w||T)&&(_=this.strictDirective(this.end),_&&T&&this.raiseRecoverable(r.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var W=this.labels;this.labels=[],_&&(this.strict=!0),this.checkParams(r,!w&&!_&&!a&&!h&&this.isSimpleParamList(r.params)),this.strict&&r.id&&this.checkLVal(r.id,Zr),r.body=this.parseBlock(!1,void 0,_&&!w),r.expression=!1,this.adaptDirectivePrologue(r.body.body),this.labels=W}this.exitScope()},A.isSimpleParamList=function(r){for(var a=0,h=r;a<h.length;a+=1){var g=h[a];if(g.type!=="Identifier")return!1}return!0},A.checkParams=function(r,a){for(var h={},g=0,w=r.params;g<w.length;g+=1){var _=w[g];this.checkLVal(_,Be,a?null:h)}},A.parseExprList=function(r,a,h,g){for(var w=[],_=!0;!this.eat(r);){if(_)_=!1;else if(this.expect(f.comma),a&&this.afterTrailingComma(r))break;var T=void 0;h&&this.type===f.comma?T=null:this.type===f.ellipsis?(T=this.parseSpread(g),g&&this.type===f.comma&&g.trailingComma<0&&(g.trailingComma=this.start)):T=this.parseMaybeAssign(!1,g),w.push(T)}return w},A.checkUnreserved=function(r){var a=r.start,h=r.end,g=r.name;if(this.inGenerator&&g==="yield"&&this.raiseRecoverable(a,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&g==="await"&&this.raiseRecoverable(a,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(g)&&this.raise(a,"Unexpected keyword '"+g+"'"),!(this.options.ecmaVersion<6&&this.input.slice(a,h).indexOf("\\")!==-1)){var w=this.strict?this.reservedWordsStrict:this.reservedWords;w.test(g)&&(!this.inAsync&&g==="await"&&this.raiseRecoverable(a,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(a,"The keyword '"+g+"' is reserved"))}},A.parseIdent=function(r,a){var h=this.startNode();return this.type===f.name?h.name=this.value:this.type.keyword?(h.name=this.type.keyword,(h.name==="class"||h.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!r),this.finishNode(h,"Identifier"),r||(this.checkUnreserved(h),h.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=h.start)),h},A.parseYield=function(r){this.yieldPos||(this.yieldPos=this.start);var a=this.startNode();return this.next(),this.type===f.semi||this.canInsertSemicolon()||this.type!==f.star&&!this.type.startsExpr?(a.delegate=!1,a.argument=null):(a.delegate=this.eat(f.star),a.argument=this.parseMaybeAssign(r)),this.finishNode(a,"YieldExpression")},A.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var r=this.startNode();return this.next(),r.argument=this.parseMaybeUnary(null,!1),this.finishNode(r,"AwaitExpression")};var ue=Fe.prototype;ue.raise=function(r,a){var h=S(this.input,r);a+=" ("+h.line+":"+h.column+")";var g=new SyntaxError(a);throw g.pos=r,g.loc=h,g.raisedAt=this.pos,g},ue.raiseRecoverable=ue.raise,ue.curPosition=function(){if(this.options.locations)return new Q(this.curLine,this.pos-this.lineStart)};var me=Fe.prototype,be=function(a){this.flags=a,this.var=[],this.lexical=[],this.functions=[]};me.enterScope=function(r){this.scopeStack.push(new be(r))},me.exitScope=function(){this.scopeStack.pop()},me.treatFunctionsAsVarInScope=function(r){return r.flags&de||!this.inModule&&r.flags&z},me.declareName=function(r,a,h){var g=!1;if(a===He){var w=this.currentScope();g=w.lexical.indexOf(r)>-1||w.functions.indexOf(r)>-1||w.var.indexOf(r)>-1,w.lexical.push(r),this.inModule&&w.flags&z&&delete this.undefinedExports[r]}else if(a===or){var _=this.currentScope();_.lexical.push(r)}else if(a===Xr){var T=this.currentScope();this.treatFunctionsAsVar?g=T.lexical.indexOf(r)>-1:g=T.lexical.indexOf(r)>-1||T.var.indexOf(r)>-1,T.functions.push(r)}else for(var W=this.scopeStack.length-1;W>=0;--W){var H=this.scopeStack[W];if(H.lexical.indexOf(r)>-1&&!(H.flags&Le&&H.lexical[0]===r)||!this.treatFunctionsAsVarInScope(H)&&H.functions.indexOf(r)>-1){g=!0;break}if(H.var.push(r),this.inModule&&H.flags&z&&delete this.undefinedExports[r],H.flags&Ce)break}g&&this.raiseRecoverable(h,"Identifier '"+r+"' has already been declared")},me.checkLocalExport=function(r){this.scopeStack[0].lexical.indexOf(r.name)===-1&&this.scopeStack[0].var.indexOf(r.name)===-1&&(this.undefinedExports[r.name]=r)},me.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},me.currentVarScope=function(){for(var r=this.scopeStack.length-1;;r--){var a=this.scopeStack[r];if(a.flags&Ce)return a}},me.currentThisScope=function(){for(var r=this.scopeStack.length-1;;r--){var a=this.scopeStack[r];if(a.flags&Ce&&!(a.flags&$e))return a}};var ve=function(a,h,g){this.type="",this.start=h,this.end=0,a.options.locations&&(this.loc=new B(a,g)),a.options.directSourceFile&&(this.sourceFile=a.options.directSourceFile),a.options.ranges&&(this.range=[h,0])},ge=Fe.prototype;ge.startNode=function(){return new ve(this,this.start,this.startLoc)},ge.startNodeAt=function(r,a){return new ve(this,r,a)};function ks(r,a,h,g){return r.type=a,r.end=h,this.options.locations&&(r.loc.end=g),this.options.ranges&&(r.range[1]=h),r}ge.finishNode=function(r,a){return ks.call(this,r,a,this.lastTokEnd,this.lastTokEndLoc)},ge.finishNodeAt=function(r,a,h,g){return ks.call(this,r,a,h,g)};var et=function(a,h,g,w,_){this.token=a,this.isExpr=!!h,this.preserveSpace=!!g,this.override=w,this.generator=!!_},_e={b_stat:new et("{",!1),b_expr:new et("{",!0),b_tmpl:new et("${",!1),p_stat:new et("(",!1),p_expr:new et("(",!0),q_tmpl:new et("`",!0,!0,function(r){return r.tryReadTemplateToken()}),f_stat:new et("function",!1),f_expr:new et("function",!0),f_expr_gen:new et("function",!0,!1,null,!0),f_gen:new et("function",!1,!1,null,!0)},ei=Fe.prototype;ei.initialContext=function(){return[_e.b_stat]},ei.braceIsBlock=function(r){var a=this.curContext();return a===_e.f_expr||a===_e.f_stat?!0:r===f.colon&&(a===_e.b_stat||a===_e.b_expr)?!a.isExpr:r===f._return||r===f.name&&this.exprAllowed?V.test(this.input.slice(this.lastTokEnd,this.start)):r===f._else||r===f.semi||r===f.eof||r===f.parenR||r===f.arrow?!0:r===f.braceL?a===_e.b_stat:r===f._var||r===f._const||r===f.name?!1:!this.exprAllowed},ei.inGeneratorContext=function(){for(var r=this.context.length-1;r>=1;r--){var a=this.context[r];if(a.token==="function")return a.generator}return!1},ei.updateContext=function(r){var a,h=this.type;h.keyword&&r===f.dot?this.exprAllowed=!1:(a=h.updateContext)?a.call(this,r):this.exprAllowed=h.beforeExpr},f.parenR.updateContext=f.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var r=this.context.pop();r===_e.b_stat&&this.curContext().token==="function"&&(r=this.context.pop()),this.exprAllowed=!r.isExpr},f.braceL.updateContext=function(r){this.context.push(this.braceIsBlock(r)?_e.b_stat:_e.b_expr),this.exprAllowed=!0},f.dollarBraceL.updateContext=function(){this.context.push(_e.b_tmpl),this.exprAllowed=!0},f.parenL.updateContext=function(r){var a=r===f._if||r===f._for||r===f._with||r===f._while;this.context.push(a?_e.p_stat:_e.p_expr),this.exprAllowed=!0},f.incDec.updateContext=function(){},f._function.updateContext=f._class.updateContext=function(r){r.beforeExpr&&r!==f.semi&&r!==f._else&&!(r===f._return&&V.test(this.input.slice(this.lastTokEnd,this.start)))&&!((r===f.colon||r===f.braceL)&&this.curContext()===_e.b_stat)?this.context.push(_e.f_expr):this.context.push(_e.f_stat),this.exprAllowed=!1},f.backQuote.updateContext=function(){this.curContext()===_e.q_tmpl?this.context.pop():this.context.push(_e.q_tmpl),this.exprAllowed=!1},f.star.updateContext=function(r){if(r===f._function){var a=this.context.length-1;this.context[a]===_e.f_expr?this.context[a]=_e.f_expr_gen:this.context[a]=_e.f_gen}this.exprAllowed=!0},f.name.updateContext=function(r){var a=!1;this.options.ecmaVersion>=6&&r!==f.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(a=!0),this.exprAllowed=a};var Cs="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",As=Cs+" Extended_Pictographic",sp=As,ap={9:Cs,10:As,11:sp},Ss="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",_s="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Is=_s+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",op=Is+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",up={9:_s,10:Is,11:op},Ps={};function en(r){var a=Ps[r]={binary:fe(ap[r]+" "+Ss),nonBinary:{General_Category:fe(Ss),Script:fe(up[r])}};a.nonBinary.Script_Extensions=a.nonBinary.Script,a.nonBinary.gc=a.nonBinary.General_Category,a.nonBinary.sc=a.nonBinary.Script,a.nonBinary.scx=a.nonBinary.Script_Extensions}en(9),en(10),en(11);var K=Fe.prototype,mt=function(a){this.parser=a,this.validFlags="gim"+(a.options.ecmaVersion>=6?"uy":"")+(a.options.ecmaVersion>=9?"s":""),this.unicodeProperties=Ps[a.options.ecmaVersion>=11?11:a.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};mt.prototype.reset=function(a,h,g){var w=g.indexOf("u")!==-1;this.start=a|0,this.source=h+"",this.flags=g,this.switchU=w&&this.parser.options.ecmaVersion>=6,this.switchN=w&&this.parser.options.ecmaVersion>=9},mt.prototype.raise=function(a){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+a)},mt.prototype.at=function(a,h){h===void 0&&(h=!1);var g=this.source,w=g.length;if(a>=w)return-1;var _=g.charCodeAt(a);if(!(h||this.switchU)||_<=55295||_>=57344||a+1>=w)return _;var T=g.charCodeAt(a+1);return T>=56320&&T<=57343?(_<<10)+T-56613888:_},mt.prototype.nextIndex=function(a,h){h===void 0&&(h=!1);var g=this.source,w=g.length;if(a>=w)return w;var _=g.charCodeAt(a),T;return!(h||this.switchU)||_<=55295||_>=57344||a+1>=w||(T=g.charCodeAt(a+1))<56320||T>57343?a+1:a+2},mt.prototype.current=function(a){return a===void 0&&(a=!1),this.at(this.pos,a)},mt.prototype.lookahead=function(a){return a===void 0&&(a=!1),this.at(this.nextIndex(this.pos,a),a)},mt.prototype.advance=function(a){a===void 0&&(a=!1),this.pos=this.nextIndex(this.pos,a)},mt.prototype.eat=function(a,h){return h===void 0&&(h=!1),this.current(h)===a?(this.advance(h),!0):!1};function ti(r){return r<=65535?String.fromCharCode(r):(r-=65536,String.fromCharCode((r>>10)+55296,(r&1023)+56320))}K.validateRegExpFlags=function(r){for(var a=r.validFlags,h=r.flags,g=0;g<h.length;g++){var w=h.charAt(g);a.indexOf(w)===-1&&this.raise(r.start,"Invalid regular expression flag"),h.indexOf(w,g+1)>-1&&this.raise(r.start,"Duplicate regular expression flag")}},K.validateRegExpPattern=function(r){this.regexp_pattern(r),!r.switchN&&this.options.ecmaVersion>=9&&r.groupNames.length>0&&(r.switchN=!0,this.regexp_pattern(r))},K.regexp_pattern=function(r){r.pos=0,r.lastIntValue=0,r.lastStringValue="",r.lastAssertionIsQuantifiable=!1,r.numCapturingParens=0,r.maxBackReference=0,r.groupNames.length=0,r.backReferenceNames.length=0,this.regexp_disjunction(r),r.pos!==r.source.length&&(r.eat(41)&&r.raise("Unmatched ')'"),(r.eat(93)||r.eat(125))&&r.raise("Lone quantifier brackets")),r.maxBackReference>r.numCapturingParens&&r.raise("Invalid escape");for(var a=0,h=r.backReferenceNames;a<h.length;a+=1){var g=h[a];r.groupNames.indexOf(g)===-1&&r.raise("Invalid named capture referenced")}},K.regexp_disjunction=function(r){for(this.regexp_alternative(r);r.eat(124);)this.regexp_alternative(r);this.regexp_eatQuantifier(r,!0)&&r.raise("Nothing to repeat"),r.eat(123)&&r.raise("Lone quantifier brackets")},K.regexp_alternative=function(r){for(;r.pos<r.source.length&&this.regexp_eatTerm(r););},K.regexp_eatTerm=function(r){return this.regexp_eatAssertion(r)?(r.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(r)&&r.switchU&&r.raise("Invalid quantifier"),!0):(r.switchU?this.regexp_eatAtom(r):this.regexp_eatExtendedAtom(r))?(this.regexp_eatQuantifier(r),!0):!1},K.regexp_eatAssertion=function(r){var a=r.pos;if(r.lastAssertionIsQuantifiable=!1,r.eat(94)||r.eat(36))return!0;if(r.eat(92)){if(r.eat(66)||r.eat(98))return!0;r.pos=a}if(r.eat(40)&&r.eat(63)){var h=!1;if(this.options.ecmaVersion>=9&&(h=r.eat(60)),r.eat(61)||r.eat(33))return this.regexp_disjunction(r),r.eat(41)||r.raise("Unterminated group"),r.lastAssertionIsQuantifiable=!h,!0}return r.pos=a,!1},K.regexp_eatQuantifier=function(r,a){return a===void 0&&(a=!1),this.regexp_eatQuantifierPrefix(r,a)?(r.eat(63),!0):!1},K.regexp_eatQuantifierPrefix=function(r,a){return r.eat(42)||r.eat(43)||r.eat(63)||this.regexp_eatBracedQuantifier(r,a)},K.regexp_eatBracedQuantifier=function(r,a){var h=r.pos;if(r.eat(123)){var g=0,w=-1;if(this.regexp_eatDecimalDigits(r)&&(g=r.lastIntValue,r.eat(44)&&this.regexp_eatDecimalDigits(r)&&(w=r.lastIntValue),r.eat(125)))return w!==-1&&w<g&&!a&&r.raise("numbers out of order in {} quantifier"),!0;r.switchU&&!a&&r.raise("Incomplete quantifier"),r.pos=h}return!1},K.regexp_eatAtom=function(r){return this.regexp_eatPatternCharacters(r)||r.eat(46)||this.regexp_eatReverseSolidusAtomEscape(r)||this.regexp_eatCharacterClass(r)||this.regexp_eatUncapturingGroup(r)||this.regexp_eatCapturingGroup(r)},K.regexp_eatReverseSolidusAtomEscape=function(r){var a=r.pos;if(r.eat(92)){if(this.regexp_eatAtomEscape(r))return!0;r.pos=a}return!1},K.regexp_eatUncapturingGroup=function(r){var a=r.pos;if(r.eat(40)){if(r.eat(63)&&r.eat(58)){if(this.regexp_disjunction(r),r.eat(41))return!0;r.raise("Unterminated group")}r.pos=a}return!1},K.regexp_eatCapturingGroup=function(r){if(r.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(r):r.current()===63&&r.raise("Invalid group"),this.regexp_disjunction(r),r.eat(41))return r.numCapturingParens+=1,!0;r.raise("Unterminated group")}return!1},K.regexp_eatExtendedAtom=function(r){return r.eat(46)||this.regexp_eatReverseSolidusAtomEscape(r)||this.regexp_eatCharacterClass(r)||this.regexp_eatUncapturingGroup(r)||this.regexp_eatCapturingGroup(r)||this.regexp_eatInvalidBracedQuantifier(r)||this.regexp_eatExtendedPatternCharacter(r)},K.regexp_eatInvalidBracedQuantifier=function(r){return this.regexp_eatBracedQuantifier(r,!0)&&r.raise("Nothing to repeat"),!1},K.regexp_eatSyntaxCharacter=function(r){var a=r.current();return Bs(a)?(r.lastIntValue=a,r.advance(),!0):!1};function Bs(r){return r===36||r>=40&&r<=43||r===46||r===63||r>=91&&r<=94||r>=123&&r<=125}K.regexp_eatPatternCharacters=function(r){for(var a=r.pos,h=0;(h=r.current())!==-1&&!Bs(h);)r.advance();return r.pos!==a},K.regexp_eatExtendedPatternCharacter=function(r){var a=r.current();return a!==-1&&a!==36&&!(a>=40&&a<=43)&&a!==46&&a!==63&&a!==91&&a!==94&&a!==124?(r.advance(),!0):!1},K.regexp_groupSpecifier=function(r){if(r.eat(63)){if(this.regexp_eatGroupName(r)){r.groupNames.indexOf(r.lastStringValue)!==-1&&r.raise("Duplicate capture group name"),r.groupNames.push(r.lastStringValue);return}r.raise("Invalid group")}},K.regexp_eatGroupName=function(r){if(r.lastStringValue="",r.eat(60)){if(this.regexp_eatRegExpIdentifierName(r)&&r.eat(62))return!0;r.raise("Invalid capture group name")}return!1},K.regexp_eatRegExpIdentifierName=function(r){if(r.lastStringValue="",this.regexp_eatRegExpIdentifierStart(r)){for(r.lastStringValue+=ti(r.lastIntValue);this.regexp_eatRegExpIdentifierPart(r);)r.lastStringValue+=ti(r.lastIntValue);return!0}return!1},K.regexp_eatRegExpIdentifierStart=function(r){var a=r.pos,h=this.options.ecmaVersion>=11,g=r.current(h);return r.advance(h),g===92&&this.regexp_eatRegExpUnicodeEscapeSequence(r,h)&&(g=r.lastIntValue),lp(g)?(r.lastIntValue=g,!0):(r.pos=a,!1)};function lp(r){return E(r,!0)||r===36||r===95}K.regexp_eatRegExpIdentifierPart=function(r){var a=r.pos,h=this.options.ecmaVersion>=11,g=r.current(h);return r.advance(h),g===92&&this.regexp_eatRegExpUnicodeEscapeSequence(r,h)&&(g=r.lastIntValue),cp(g)?(r.lastIntValue=g,!0):(r.pos=a,!1)};function cp(r){return x(r,!0)||r===36||r===95||r===8204||r===8205}K.regexp_eatAtomEscape=function(r){return this.regexp_eatBackReference(r)||this.regexp_eatCharacterClassEscape(r)||this.regexp_eatCharacterEscape(r)||r.switchN&&this.regexp_eatKGroupName(r)?!0:(r.switchU&&(r.current()===99&&r.raise("Invalid unicode escape"),r.raise("Invalid escape")),!1)},K.regexp_eatBackReference=function(r){var a=r.pos;if(this.regexp_eatDecimalEscape(r)){var h=r.lastIntValue;if(r.switchU)return h>r.maxBackReference&&(r.maxBackReference=h),!0;if(h<=r.numCapturingParens)return!0;r.pos=a}return!1},K.regexp_eatKGroupName=function(r){if(r.eat(107)){if(this.regexp_eatGroupName(r))return r.backReferenceNames.push(r.lastStringValue),!0;r.raise("Invalid named reference")}return!1},K.regexp_eatCharacterEscape=function(r){return this.regexp_eatControlEscape(r)||this.regexp_eatCControlLetter(r)||this.regexp_eatZero(r)||this.regexp_eatHexEscapeSequence(r)||this.regexp_eatRegExpUnicodeEscapeSequence(r,!1)||!r.switchU&&this.regexp_eatLegacyOctalEscapeSequence(r)||this.regexp_eatIdentityEscape(r)},K.regexp_eatCControlLetter=function(r){var a=r.pos;if(r.eat(99)){if(this.regexp_eatControlLetter(r))return!0;r.pos=a}return!1},K.regexp_eatZero=function(r){return r.current()===48&&!ri(r.lookahead())?(r.lastIntValue=0,r.advance(),!0):!1},K.regexp_eatControlEscape=function(r){var a=r.current();return a===116?(r.lastIntValue=9,r.advance(),!0):a===110?(r.lastIntValue=10,r.advance(),!0):a===118?(r.lastIntValue=11,r.advance(),!0):a===102?(r.lastIntValue=12,r.advance(),!0):a===114?(r.lastIntValue=13,r.advance(),!0):!1},K.regexp_eatControlLetter=function(r){var a=r.current();return Ts(a)?(r.lastIntValue=a%32,r.advance(),!0):!1};function Ts(r){return r>=65&&r<=90||r>=97&&r<=122}K.regexp_eatRegExpUnicodeEscapeSequence=function(r,a){a===void 0&&(a=!1);var h=r.pos,g=a||r.switchU;if(r.eat(117)){if(this.regexp_eatFixedHexDigits(r,4)){var w=r.lastIntValue;if(g&&w>=55296&&w<=56319){var _=r.pos;if(r.eat(92)&&r.eat(117)&&this.regexp_eatFixedHexDigits(r,4)){var T=r.lastIntValue;if(T>=56320&&T<=57343)return r.lastIntValue=(w-55296)*1024+(T-56320)+65536,!0}r.pos=_,r.lastIntValue=w}return!0}if(g&&r.eat(123)&&this.regexp_eatHexDigits(r)&&r.eat(125)&&pp(r.lastIntValue))return!0;g&&r.raise("Invalid unicode escape"),r.pos=h}return!1};function pp(r){return r>=0&&r<=1114111}K.regexp_eatIdentityEscape=function(r){if(r.switchU)return this.regexp_eatSyntaxCharacter(r)?!0:r.eat(47)?(r.lastIntValue=47,!0):!1;var a=r.current();return a!==99&&(!r.switchN||a!==107)?(r.lastIntValue=a,r.advance(),!0):!1},K.regexp_eatDecimalEscape=function(r){r.lastIntValue=0;var a=r.current();if(a>=49&&a<=57){do r.lastIntValue=10*r.lastIntValue+(a-48),r.advance();while((a=r.current())>=48&&a<=57);return!0}return!1},K.regexp_eatCharacterClassEscape=function(r){var a=r.current();if(hp(a))return r.lastIntValue=-1,r.advance(),!0;if(r.switchU&&this.options.ecmaVersion>=9&&(a===80||a===112)){if(r.lastIntValue=-1,r.advance(),r.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(r)&&r.eat(125))return!0;r.raise("Invalid property name")}return!1};function hp(r){return r===100||r===68||r===115||r===83||r===119||r===87}K.regexp_eatUnicodePropertyValueExpression=function(r){var a=r.pos;if(this.regexp_eatUnicodePropertyName(r)&&r.eat(61)){var h=r.lastStringValue;if(this.regexp_eatUnicodePropertyValue(r)){var g=r.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(r,h,g),!0}}if(r.pos=a,this.regexp_eatLoneUnicodePropertyNameOrValue(r)){var w=r.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(r,w),!0}return!1},K.regexp_validateUnicodePropertyNameAndValue=function(r,a,h){se(r.unicodeProperties.nonBinary,a)||r.raise("Invalid property name"),r.unicodeProperties.nonBinary[a].test(h)||r.raise("Invalid property value")},K.regexp_validateUnicodePropertyNameOrValue=function(r,a){r.unicodeProperties.binary.test(a)||r.raise("Invalid property name")},K.regexp_eatUnicodePropertyName=function(r){var a=0;for(r.lastStringValue="";Os(a=r.current());)r.lastStringValue+=ti(a),r.advance();return r.lastStringValue!==""};function Os(r){return Ts(r)||r===95}K.regexp_eatUnicodePropertyValue=function(r){var a=0;for(r.lastStringValue="";fp(a=r.current());)r.lastStringValue+=ti(a),r.advance();return r.lastStringValue!==""};function fp(r){return Os(r)||ri(r)}K.regexp_eatLoneUnicodePropertyNameOrValue=function(r){return this.regexp_eatUnicodePropertyValue(r)},K.regexp_eatCharacterClass=function(r){if(r.eat(91)){if(r.eat(94),this.regexp_classRanges(r),r.eat(93))return!0;r.raise("Unterminated character class")}return!1},K.regexp_classRanges=function(r){for(;this.regexp_eatClassAtom(r);){var a=r.lastIntValue;if(r.eat(45)&&this.regexp_eatClassAtom(r)){var h=r.lastIntValue;r.switchU&&(a===-1||h===-1)&&r.raise("Invalid character class"),a!==-1&&h!==-1&&a>h&&r.raise("Range out of order in character class")}}},K.regexp_eatClassAtom=function(r){var a=r.pos;if(r.eat(92)){if(this.regexp_eatClassEscape(r))return!0;if(r.switchU){var h=r.current();(h===99||Rs(h))&&r.raise("Invalid class escape"),r.raise("Invalid escape")}r.pos=a}var g=r.current();return g!==93?(r.lastIntValue=g,r.advance(),!0):!1},K.regexp_eatClassEscape=function(r){var a=r.pos;if(r.eat(98))return r.lastIntValue=8,!0;if(r.switchU&&r.eat(45))return r.lastIntValue=45,!0;if(!r.switchU&&r.eat(99)){if(this.regexp_eatClassControlLetter(r))return!0;r.pos=a}return this.regexp_eatCharacterClassEscape(r)||this.regexp_eatCharacterEscape(r)},K.regexp_eatClassControlLetter=function(r){var a=r.current();return ri(a)||a===95?(r.lastIntValue=a%32,r.advance(),!0):!1},K.regexp_eatHexEscapeSequence=function(r){var a=r.pos;if(r.eat(120)){if(this.regexp_eatFixedHexDigits(r,2))return!0;r.switchU&&r.raise("Invalid escape"),r.pos=a}return!1},K.regexp_eatDecimalDigits=function(r){var a=r.pos,h=0;for(r.lastIntValue=0;ri(h=r.current());)r.lastIntValue=10*r.lastIntValue+(h-48),r.advance();return r.pos!==a};function ri(r){return r>=48&&r<=57}K.regexp_eatHexDigits=function(r){var a=r.pos,h=0;for(r.lastIntValue=0;Ns(h=r.current());)r.lastIntValue=16*r.lastIntValue+Ls(h),r.advance();return r.pos!==a};function Ns(r){return r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102}function Ls(r){return r>=65&&r<=70?10+(r-65):r>=97&&r<=102?10+(r-97):r-48}K.regexp_eatLegacyOctalEscapeSequence=function(r){if(this.regexp_eatOctalDigit(r)){var a=r.lastIntValue;if(this.regexp_eatOctalDigit(r)){var h=r.lastIntValue;a<=3&&this.regexp_eatOctalDigit(r)?r.lastIntValue=a*64+h*8+r.lastIntValue:r.lastIntValue=a*8+h}else r.lastIntValue=a;return!0}return!1},K.regexp_eatOctalDigit=function(r){var a=r.current();return Rs(a)?(r.lastIntValue=a-48,r.advance(),!0):(r.lastIntValue=0,!1)};function Rs(r){return r>=48&&r<=55}K.regexp_eatFixedHexDigits=function(r,a){var h=r.pos;r.lastIntValue=0;for(var g=0;g<a;++g){var w=r.current();if(!Ns(w))return r.pos=h,!1;r.lastIntValue=16*r.lastIntValue+Ls(w),r.advance()}return!0};var ii=function(a){this.type=a.type,this.value=a.value,this.start=a.start,this.end=a.end,a.options.locations&&(this.loc=new B(a,a.startLoc,a.endLoc)),a.options.ranges&&(this.range=[a.start,a.end])},ce=Fe.prototype;ce.next=function(r){!r&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new ii(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ce.getToken=function(){return this.next(),new ii(this)},typeof Symbol<"u"&&(ce[Symbol.iterator]=function(){var r=this;return{next:function(){var a=r.getToken();return{done:a.type===f.eof,value:a}}}}),ce.curContext=function(){return this.context[this.context.length-1]},ce.nextToken=function(){var r=this.curContext();if((!r||!r.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(f.eof);if(r.override)return r.override(this);this.readToken(this.fullCharCodeAtPos())},ce.readToken=function(r){return E(r,this.options.ecmaVersion>=6)||r===92?this.readWord():this.getTokenFromCode(r)},ce.fullCharCodeAtPos=function(){var r=this.input.charCodeAt(this.pos);if(r<=55295||r>=57344)return r;var a=this.input.charCodeAt(this.pos+1);return(r<<10)+a-56613888},ce.skipBlockComment=function(){var r=this.options.onComment&&this.curPosition(),a=this.pos,h=this.input.indexOf("*/",this.pos+=2);if(h===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=h+2,this.options.locations){te.lastIndex=a;for(var g;(g=te.exec(this.input))&&g.index<this.pos;)++this.curLine,this.lineStart=g.index+g[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(a+2,h),a,this.pos,r,this.curPosition())},ce.skipLineComment=function(r){for(var a=this.pos,h=this.options.onComment&&this.curPosition(),g=this.input.charCodeAt(this.pos+=r);this.pos<this.input.length&&!$(g);)g=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(a+r,this.pos),a,this.pos,h,this.curPosition())},ce.skipSpace=function(){e:for(;this.pos<this.input.length;){var r=this.input.charCodeAt(this.pos);switch(r){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(r>8&&r<14||r>=5760&&M.test(String.fromCharCode(r)))++this.pos;else break e}}},ce.finishToken=function(r,a){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var h=this.type;this.type=r,this.value=a,this.updateContext(h)},ce.readToken_dot=function(){var r=this.input.charCodeAt(this.pos+1);if(r>=48&&r<=57)return this.readNumber(!0);var a=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&r===46&&a===46?(this.pos+=3,this.finishToken(f.ellipsis)):(++this.pos,this.finishToken(f.dot))},ce.readToken_slash=function(){var r=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):r===61?this.finishOp(f.assign,2):this.finishOp(f.slash,1)},ce.readToken_mult_modulo_exp=function(r){var a=this.input.charCodeAt(this.pos+1),h=1,g=r===42?f.star:f.modulo;return this.options.ecmaVersion>=7&&r===42&&a===42&&(++h,g=f.starstar,a=this.input.charCodeAt(this.pos+2)),a===61?this.finishOp(f.assign,h+1):this.finishOp(g,h)},ce.readToken_pipe_amp=function(r){var a=this.input.charCodeAt(this.pos+1);if(a===r){if(this.options.ecmaVersion>=12){var h=this.input.charCodeAt(this.pos+2);if(h===61)return this.finishOp(f.assign,3)}return this.finishOp(r===124?f.logicalOR:f.logicalAND,2)}return a===61?this.finishOp(f.assign,2):this.finishOp(r===124?f.bitwiseOR:f.bitwiseAND,1)},ce.readToken_caret=function(){var r=this.input.charCodeAt(this.pos+1);return r===61?this.finishOp(f.assign,2):this.finishOp(f.bitwiseXOR,1)},ce.readToken_plus_min=function(r){var a=this.input.charCodeAt(this.pos+1);return a===r?a===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||V.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(f.incDec,2):a===61?this.finishOp(f.assign,2):this.finishOp(f.plusMin,1)},ce.readToken_lt_gt=function(r){var a=this.input.charCodeAt(this.pos+1),h=1;return a===r?(h=r===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+h)===61?this.finishOp(f.assign,h+1):this.finishOp(f.bitShift,h)):a===33&&r===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(a===61&&(h=2),this.finishOp(f.relational,h))},ce.readToken_eq_excl=function(r){var a=this.input.charCodeAt(this.pos+1);return a===61?this.finishOp(f.equality,this.input.charCodeAt(this.pos+2)===61?3:2):r===61&&a===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(f.arrow)):this.finishOp(r===61?f.eq:f.prefix,1)},ce.readToken_question=function(){var r=this.options.ecmaVersion;if(r>=11){var a=this.input.charCodeAt(this.pos+1);if(a===46){var h=this.input.charCodeAt(this.pos+2);if(h<48||h>57)return this.finishOp(f.questionDot,2)}if(a===63){if(r>=12){var g=this.input.charCodeAt(this.pos+2);if(g===61)return this.finishOp(f.assign,3)}return this.finishOp(f.coalesce,2)}}return this.finishOp(f.question,1)},ce.getTokenFromCode=function(r){switch(r){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(f.parenL);case 41:return++this.pos,this.finishToken(f.parenR);case 59:return++this.pos,this.finishToken(f.semi);case 44:return++this.pos,this.finishToken(f.comma);case 91:return++this.pos,this.finishToken(f.bracketL);case 93:return++this.pos,this.finishToken(f.bracketR);case 123:return++this.pos,this.finishToken(f.braceL);case 125:return++this.pos,this.finishToken(f.braceR);case 58:return++this.pos,this.finishToken(f.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(f.backQuote);case 48:var a=this.input.charCodeAt(this.pos+1);if(a===120||a===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(a===111||a===79)return this.readRadixNumber(8);if(a===98||a===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(r);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(r);case 124:case 38:return this.readToken_pipe_amp(r);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(r);case 60:case 62:return this.readToken_lt_gt(r);case 61:case 33:return this.readToken_eq_excl(r);case 63:return this.readToken_question();case 126:return this.finishOp(f.prefix,1)}this.raise(this.pos,"Unexpected character '"+tn(r)+"'")},ce.finishOp=function(r,a){var h=this.input.slice(this.pos,this.pos+a);return this.pos+=a,this.finishToken(r,h)},ce.readRegexp=function(){for(var r,a,h=this.pos;;){this.pos>=this.input.length&&this.raise(h,"Unterminated regular expression");var g=this.input.charAt(this.pos);if(V.test(g)&&this.raise(h,"Unterminated regular expression"),r)r=!1;else{if(g==="[")a=!0;else if(g==="]"&&a)a=!1;else if(g==="/"&&!a)break;r=g==="\\"}++this.pos}var w=this.input.slice(h,this.pos);++this.pos;var _=this.pos,T=this.readWord1();this.containsEsc&&this.unexpected(_);var W=this.regexpState||(this.regexpState=new mt(this));W.reset(h,w,T),this.validateRegExpFlags(W),this.validateRegExpPattern(W);var H=null;try{H=new RegExp(w,T)}catch{}return this.finishToken(f.regexp,{pattern:w,flags:T,value:H})},ce.readInt=function(r,a,h){for(var g=this.options.ecmaVersion>=12&&a===void 0,w=h&&this.input.charCodeAt(this.pos)===48,_=this.pos,T=0,W=0,H=0,he=a??1/0;H<he;++H,++this.pos){var Ee=this.input.charCodeAt(this.pos),Me=void 0;if(g&&Ee===95){w&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),W===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),H===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),W=Ee;continue}if(Ee>=97?Me=Ee-97+10:Ee>=65?Me=Ee-65+10:Ee>=48&&Ee<=57?Me=Ee-48:Me=1/0,Me>=r)break;W=Ee,T=T*r+Me}return g&&W===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===_||a!=null&&this.pos-_!==a?null:T};function dp(r,a){return a?parseInt(r,8):parseFloat(r.replace(/_/g,""))}function js(r){return typeof BigInt!="function"?null:BigInt(r.replace(/_/g,""))}ce.readRadixNumber=function(r){var a=this.pos;this.pos+=2;var h=this.readInt(r);return h==null&&this.raise(this.start+2,"Expected number in radix "+r),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(h=js(this.input.slice(a,this.pos)),++this.pos):E(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(f.num,h)},ce.readNumber=function(r){var a=this.pos;!r&&this.readInt(10,void 0,!0)===null&&this.raise(a,"Invalid number");var h=this.pos-a>=2&&this.input.charCodeAt(a)===48;h&&this.strict&&this.raise(a,"Invalid number");var g=this.input.charCodeAt(this.pos);if(!h&&!r&&this.options.ecmaVersion>=11&&g===110){var w=js(this.input.slice(a,this.pos));return++this.pos,E(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(f.num,w)}h&&/[89]/.test(this.input.slice(a,this.pos))&&(h=!1),g===46&&!h&&(++this.pos,this.readInt(10),g=this.input.charCodeAt(this.pos)),(g===69||g===101)&&!h&&(g=this.input.charCodeAt(++this.pos),(g===43||g===45)&&++this.pos,this.readInt(10)===null&&this.raise(a,"Invalid number")),E(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var _=dp(this.input.slice(a,this.pos),h);return this.finishToken(f.num,_)},ce.readCodePoint=function(){var r=this.input.charCodeAt(this.pos),a;if(r===123){this.options.ecmaVersion<6&&this.unexpected();var h=++this.pos;a=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,a>1114111&&this.invalidStringToken(h,"Code point out of bounds")}else a=this.readHexChar(4);return a};function tn(r){return r<=65535?String.fromCharCode(r):(r-=65536,String.fromCharCode((r>>10)+55296,(r&1023)+56320))}ce.readString=function(r){for(var a="",h=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var g=this.input.charCodeAt(this.pos);if(g===r)break;g===92?(a+=this.input.slice(h,this.pos),a+=this.readEscapedChar(!1),h=this.pos):($(g,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return a+=this.input.slice(h,this.pos++),this.finishToken(f.string,a)};var Us={};ce.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(r){if(r===Us)this.readInvalidTemplateToken();else throw r}this.inTemplateElement=!1},ce.invalidStringToken=function(r,a){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Us;this.raise(r,a)},ce.readTmplToken=function(){for(var r="",a=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var h=this.input.charCodeAt(this.pos);if(h===96||h===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===f.template||this.type===f.invalidTemplate)?h===36?(this.pos+=2,this.finishToken(f.dollarBraceL)):(++this.pos,this.finishToken(f.backQuote)):(r+=this.input.slice(a,this.pos),this.finishToken(f.template,r));if(h===92)r+=this.input.slice(a,this.pos),r+=this.readEscapedChar(!0),a=this.pos;else if($(h)){switch(r+=this.input.slice(a,this.pos),++this.pos,h){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:r+=`
|
|
64
|
+
`),cooked:this.value},this.next(),h.tail=this.type===f.backQuote,this.finishNode(h,"TemplateElement")},A.parseTemplate=function(r){r===void 0&&(r={});var a=r.isTagged;a===void 0&&(a=!1);var h=this.startNode();this.next(),h.expressions=[];var g=this.parseTemplateElement({isTagged:a});for(h.quasis=[g];!g.tail;)this.type===f.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(f.dollarBraceL),h.expressions.push(this.parseExpression()),this.expect(f.braceR),h.quasis.push(g=this.parseTemplateElement({isTagged:a}));return this.next(),this.finishNode(h,"TemplateLiteral")},A.isAsyncProp=function(r){return!r.computed&&r.key.type==="Identifier"&&r.key.name==="async"&&(this.type===f.name||this.type===f.num||this.type===f.string||this.type===f.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===f.star)&&!V.test(this.input.slice(this.lastTokEnd,this.start))},A.parseObj=function(r,a){var h=this.startNode(),g=!0,w={};for(h.properties=[],this.next();!this.eat(f.braceR);){if(g)g=!1;else if(this.expect(f.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(f.braceR))break;var _=this.parseProperty(r,a);r||this.checkPropClash(_,w,a),h.properties.push(_)}return this.finishNode(h,r?"ObjectPattern":"ObjectExpression")},A.parseProperty=function(r,a){var h=this.startNode(),g,w,_,T;if(this.options.ecmaVersion>=9&&this.eat(f.ellipsis))return r?(h.argument=this.parseIdent(!1),this.type===f.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(h,"RestElement")):(this.type===f.parenL&&a&&(a.parenthesizedAssign<0&&(a.parenthesizedAssign=this.start),a.parenthesizedBind<0&&(a.parenthesizedBind=this.start)),h.argument=this.parseMaybeAssign(!1,a),this.type===f.comma&&a&&a.trailingComma<0&&(a.trailingComma=this.start),this.finishNode(h,"SpreadElement"));this.options.ecmaVersion>=6&&(h.method=!1,h.shorthand=!1,(r||a)&&(_=this.start,T=this.startLoc),r||(g=this.eat(f.star)));var W=this.containsEsc;return this.parsePropertyName(h),!r&&!W&&this.options.ecmaVersion>=8&&!g&&this.isAsyncProp(h)?(w=!0,g=this.options.ecmaVersion>=9&&this.eat(f.star),this.parsePropertyName(h,a)):w=!1,this.parsePropertyValue(h,r,g,w,_,T,a,W),this.finishNode(h,"Property")},A.parsePropertyValue=function(r,a,h,g,w,_,T,W){if((h||g)&&this.type===f.colon&&this.unexpected(),this.eat(f.colon))r.value=a?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,T),r.kind="init";else if(this.options.ecmaVersion>=6&&this.type===f.parenL)a&&this.unexpected(),r.kind="init",r.method=!0,r.value=this.parseMethod(h,g);else if(!a&&!W&&this.options.ecmaVersion>=5&&!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.type!==f.comma&&this.type!==f.braceR&&this.type!==f.eq){(h||g)&&this.unexpected(),r.kind=r.key.name,this.parsePropertyName(r),r.value=this.parseMethod(!1);var H=r.kind==="get"?0:1;if(r.value.params.length!==H){var he=r.value.start;r.kind==="get"?this.raiseRecoverable(he,"getter should have no params"):this.raiseRecoverable(he,"setter should have exactly one param")}else r.kind==="set"&&r.value.params[0].type==="RestElement"&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!r.computed&&r.key.type==="Identifier"?((h||g)&&this.unexpected(),this.checkUnreserved(r.key),r.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=w),r.kind="init",a?r.value=this.parseMaybeDefault(w,_,r.key):this.type===f.eq&&T?(T.shorthandAssign<0&&(T.shorthandAssign=this.start),r.value=this.parseMaybeDefault(w,_,r.key)):r.value=r.key,r.shorthand=!0):this.unexpected()},A.parsePropertyName=function(r){if(this.options.ecmaVersion>=6){if(this.eat(f.bracketL))return r.computed=!0,r.key=this.parseMaybeAssign(),this.expect(f.bracketR),r.key;r.computed=!1}return r.key=this.type===f.num||this.type===f.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},A.initFunction=function(r){r.id=null,this.options.ecmaVersion>=6&&(r.generator=r.expression=!1),this.options.ecmaVersion>=8&&(r.async=!1)},A.parseMethod=function(r,a,h){var g=this.startNode(),w=this.yieldPos,_=this.awaitPos,T=this.awaitIdentPos;return this.initFunction(g),this.options.ecmaVersion>=6&&(g.generator=r),this.options.ecmaVersion>=8&&(g.async=!!a),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ut(a,g.generator)|at|(h?Ye:0)),this.expect(f.parenL),g.params=this.parseBindingList(f.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(g,!1,!0),this.yieldPos=w,this.awaitPos=_,this.awaitIdentPos=T,this.finishNode(g,"FunctionExpression")},A.parseArrowExpression=function(r,a,h){var g=this.yieldPos,w=this.awaitPos,_=this.awaitIdentPos;return this.enterScope(ut(h,!1)|$e),this.initFunction(r),this.options.ecmaVersion>=8&&(r.async=!!h),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,r.params=this.toAssignableList(a,!0),this.parseFunctionBody(r,!0,!1),this.yieldPos=g,this.awaitPos=w,this.awaitIdentPos=_,this.finishNode(r,"ArrowFunctionExpression")},A.parseFunctionBody=function(r,a,h){var g=a&&this.type!==f.braceL,w=this.strict,_=!1;if(g)r.body=this.parseMaybeAssign(),r.expression=!0,this.checkParams(r,!1);else{var T=this.options.ecmaVersion>=7&&!this.isSimpleParamList(r.params);(!w||T)&&(_=this.strictDirective(this.end),_&&T&&this.raiseRecoverable(r.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var W=this.labels;this.labels=[],_&&(this.strict=!0),this.checkParams(r,!w&&!_&&!a&&!h&&this.isSimpleParamList(r.params)),this.strict&&r.id&&this.checkLVal(r.id,Zr),r.body=this.parseBlock(!1,void 0,_&&!w),r.expression=!1,this.adaptDirectivePrologue(r.body.body),this.labels=W}this.exitScope()},A.isSimpleParamList=function(r){for(var a=0,h=r;a<h.length;a+=1){var g=h[a];if(g.type!=="Identifier")return!1}return!0},A.checkParams=function(r,a){for(var h={},g=0,w=r.params;g<w.length;g+=1){var _=w[g];this.checkLVal(_,Be,a?null:h)}},A.parseExprList=function(r,a,h,g){for(var w=[],_=!0;!this.eat(r);){if(_)_=!1;else if(this.expect(f.comma),a&&this.afterTrailingComma(r))break;var T=void 0;h&&this.type===f.comma?T=null:this.type===f.ellipsis?(T=this.parseSpread(g),g&&this.type===f.comma&&g.trailingComma<0&&(g.trailingComma=this.start)):T=this.parseMaybeAssign(!1,g),w.push(T)}return w},A.checkUnreserved=function(r){var a=r.start,h=r.end,g=r.name;if(this.inGenerator&&g==="yield"&&this.raiseRecoverable(a,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&g==="await"&&this.raiseRecoverable(a,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(g)&&this.raise(a,"Unexpected keyword '"+g+"'"),!(this.options.ecmaVersion<6&&this.input.slice(a,h).indexOf("\\")!==-1)){var w=this.strict?this.reservedWordsStrict:this.reservedWords;w.test(g)&&(!this.inAsync&&g==="await"&&this.raiseRecoverable(a,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(a,"The keyword '"+g+"' is reserved"))}},A.parseIdent=function(r,a){var h=this.startNode();return this.type===f.name?h.name=this.value:this.type.keyword?(h.name=this.type.keyword,(h.name==="class"||h.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!r),this.finishNode(h,"Identifier"),r||(this.checkUnreserved(h),h.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=h.start)),h},A.parseYield=function(r){this.yieldPos||(this.yieldPos=this.start);var a=this.startNode();return this.next(),this.type===f.semi||this.canInsertSemicolon()||this.type!==f.star&&!this.type.startsExpr?(a.delegate=!1,a.argument=null):(a.delegate=this.eat(f.star),a.argument=this.parseMaybeAssign(r)),this.finishNode(a,"YieldExpression")},A.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var r=this.startNode();return this.next(),r.argument=this.parseMaybeUnary(null,!1),this.finishNode(r,"AwaitExpression")};var ue=Fe.prototype;ue.raise=function(r,a){var h=S(this.input,r);a+=" ("+h.line+":"+h.column+")";var g=new SyntaxError(a);throw g.pos=r,g.loc=h,g.raisedAt=this.pos,g},ue.raiseRecoverable=ue.raise,ue.curPosition=function(){if(this.options.locations)return new Q(this.curLine,this.pos-this.lineStart)};var me=Fe.prototype,be=function(a){this.flags=a,this.var=[],this.lexical=[],this.functions=[]};me.enterScope=function(r){this.scopeStack.push(new be(r))},me.exitScope=function(){this.scopeStack.pop()},me.treatFunctionsAsVarInScope=function(r){return r.flags&de||!this.inModule&&r.flags&z},me.declareName=function(r,a,h){var g=!1;if(a===He){var w=this.currentScope();g=w.lexical.indexOf(r)>-1||w.functions.indexOf(r)>-1||w.var.indexOf(r)>-1,w.lexical.push(r),this.inModule&&w.flags&z&&delete this.undefinedExports[r]}else if(a===or){var _=this.currentScope();_.lexical.push(r)}else if(a===Xr){var T=this.currentScope();this.treatFunctionsAsVar?g=T.lexical.indexOf(r)>-1:g=T.lexical.indexOf(r)>-1||T.var.indexOf(r)>-1,T.functions.push(r)}else for(var W=this.scopeStack.length-1;W>=0;--W){var H=this.scopeStack[W];if(H.lexical.indexOf(r)>-1&&!(H.flags&Le&&H.lexical[0]===r)||!this.treatFunctionsAsVarInScope(H)&&H.functions.indexOf(r)>-1){g=!0;break}if(H.var.push(r),this.inModule&&H.flags&z&&delete this.undefinedExports[r],H.flags&Ce)break}g&&this.raiseRecoverable(h,"Identifier '"+r+"' has already been declared")},me.checkLocalExport=function(r){this.scopeStack[0].lexical.indexOf(r.name)===-1&&this.scopeStack[0].var.indexOf(r.name)===-1&&(this.undefinedExports[r.name]=r)},me.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},me.currentVarScope=function(){for(var r=this.scopeStack.length-1;;r--){var a=this.scopeStack[r];if(a.flags&Ce)return a}},me.currentThisScope=function(){for(var r=this.scopeStack.length-1;;r--){var a=this.scopeStack[r];if(a.flags&Ce&&!(a.flags&$e))return a}};var ve=function(a,h,g){this.type="",this.start=h,this.end=0,a.options.locations&&(this.loc=new B(a,g)),a.options.directSourceFile&&(this.sourceFile=a.options.directSourceFile),a.options.ranges&&(this.range=[h,0])},ge=Fe.prototype;ge.startNode=function(){return new ve(this,this.start,this.startLoc)},ge.startNodeAt=function(r,a){return new ve(this,r,a)};function Fs(r,a,h,g){return r.type=a,r.end=h,this.options.locations&&(r.loc.end=g),this.options.ranges&&(r.range[1]=h),r}ge.finishNode=function(r,a){return Fs.call(this,r,a,this.lastTokEnd,this.lastTokEndLoc)},ge.finishNodeAt=function(r,a,h,g){return Fs.call(this,r,a,h,g)};var et=function(a,h,g,w,_){this.token=a,this.isExpr=!!h,this.preserveSpace=!!g,this.override=w,this.generator=!!_},_e={b_stat:new et("{",!1),b_expr:new et("{",!0),b_tmpl:new et("${",!1),p_stat:new et("(",!1),p_expr:new et("(",!0),q_tmpl:new et("`",!0,!0,function(r){return r.tryReadTemplateToken()}),f_stat:new et("function",!1),f_expr:new et("function",!0),f_expr_gen:new et("function",!0,!1,null,!0),f_gen:new et("function",!1,!1,null,!0)},ei=Fe.prototype;ei.initialContext=function(){return[_e.b_stat]},ei.braceIsBlock=function(r){var a=this.curContext();return a===_e.f_expr||a===_e.f_stat?!0:r===f.colon&&(a===_e.b_stat||a===_e.b_expr)?!a.isExpr:r===f._return||r===f.name&&this.exprAllowed?V.test(this.input.slice(this.lastTokEnd,this.start)):r===f._else||r===f.semi||r===f.eof||r===f.parenR||r===f.arrow?!0:r===f.braceL?a===_e.b_stat:r===f._var||r===f._const||r===f.name?!1:!this.exprAllowed},ei.inGeneratorContext=function(){for(var r=this.context.length-1;r>=1;r--){var a=this.context[r];if(a.token==="function")return a.generator}return!1},ei.updateContext=function(r){var a,h=this.type;h.keyword&&r===f.dot?this.exprAllowed=!1:(a=h.updateContext)?a.call(this,r):this.exprAllowed=h.beforeExpr},f.parenR.updateContext=f.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var r=this.context.pop();r===_e.b_stat&&this.curContext().token==="function"&&(r=this.context.pop()),this.exprAllowed=!r.isExpr},f.braceL.updateContext=function(r){this.context.push(this.braceIsBlock(r)?_e.b_stat:_e.b_expr),this.exprAllowed=!0},f.dollarBraceL.updateContext=function(){this.context.push(_e.b_tmpl),this.exprAllowed=!0},f.parenL.updateContext=function(r){var a=r===f._if||r===f._for||r===f._with||r===f._while;this.context.push(a?_e.p_stat:_e.p_expr),this.exprAllowed=!0},f.incDec.updateContext=function(){},f._function.updateContext=f._class.updateContext=function(r){r.beforeExpr&&r!==f.semi&&r!==f._else&&!(r===f._return&&V.test(this.input.slice(this.lastTokEnd,this.start)))&&!((r===f.colon||r===f.braceL)&&this.curContext()===_e.b_stat)?this.context.push(_e.f_expr):this.context.push(_e.f_stat),this.exprAllowed=!1},f.backQuote.updateContext=function(){this.curContext()===_e.q_tmpl?this.context.pop():this.context.push(_e.q_tmpl),this.exprAllowed=!1},f.star.updateContext=function(r){if(r===f._function){var a=this.context.length-1;this.context[a]===_e.f_expr?this.context[a]=_e.f_expr_gen:this.context[a]=_e.f_gen}this.exprAllowed=!0},f.name.updateContext=function(r){var a=!1;this.options.ecmaVersion>=6&&r!==f.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(a=!0),this.exprAllowed=a};var ks="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Cs=ks+" Extended_Pictographic",sp=Cs,ap={9:ks,10:Cs,11:sp},As="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Ss="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",_s=Ss+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",op=_s+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",up={9:Ss,10:_s,11:op},Is={};function en(r){var a=Is[r]={binary:fe(ap[r]+" "+As),nonBinary:{General_Category:fe(As),Script:fe(up[r])}};a.nonBinary.Script_Extensions=a.nonBinary.Script,a.nonBinary.gc=a.nonBinary.General_Category,a.nonBinary.sc=a.nonBinary.Script,a.nonBinary.scx=a.nonBinary.Script_Extensions}en(9),en(10),en(11);var K=Fe.prototype,mt=function(a){this.parser=a,this.validFlags="gim"+(a.options.ecmaVersion>=6?"uy":"")+(a.options.ecmaVersion>=9?"s":""),this.unicodeProperties=Is[a.options.ecmaVersion>=11?11:a.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};mt.prototype.reset=function(a,h,g){var w=g.indexOf("u")!==-1;this.start=a|0,this.source=h+"",this.flags=g,this.switchU=w&&this.parser.options.ecmaVersion>=6,this.switchN=w&&this.parser.options.ecmaVersion>=9},mt.prototype.raise=function(a){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+a)},mt.prototype.at=function(a,h){h===void 0&&(h=!1);var g=this.source,w=g.length;if(a>=w)return-1;var _=g.charCodeAt(a);if(!(h||this.switchU)||_<=55295||_>=57344||a+1>=w)return _;var T=g.charCodeAt(a+1);return T>=56320&&T<=57343?(_<<10)+T-56613888:_},mt.prototype.nextIndex=function(a,h){h===void 0&&(h=!1);var g=this.source,w=g.length;if(a>=w)return w;var _=g.charCodeAt(a),T;return!(h||this.switchU)||_<=55295||_>=57344||a+1>=w||(T=g.charCodeAt(a+1))<56320||T>57343?a+1:a+2},mt.prototype.current=function(a){return a===void 0&&(a=!1),this.at(this.pos,a)},mt.prototype.lookahead=function(a){return a===void 0&&(a=!1),this.at(this.nextIndex(this.pos,a),a)},mt.prototype.advance=function(a){a===void 0&&(a=!1),this.pos=this.nextIndex(this.pos,a)},mt.prototype.eat=function(a,h){return h===void 0&&(h=!1),this.current(h)===a?(this.advance(h),!0):!1};function ti(r){return r<=65535?String.fromCharCode(r):(r-=65536,String.fromCharCode((r>>10)+55296,(r&1023)+56320))}K.validateRegExpFlags=function(r){for(var a=r.validFlags,h=r.flags,g=0;g<h.length;g++){var w=h.charAt(g);a.indexOf(w)===-1&&this.raise(r.start,"Invalid regular expression flag"),h.indexOf(w,g+1)>-1&&this.raise(r.start,"Duplicate regular expression flag")}},K.validateRegExpPattern=function(r){this.regexp_pattern(r),!r.switchN&&this.options.ecmaVersion>=9&&r.groupNames.length>0&&(r.switchN=!0,this.regexp_pattern(r))},K.regexp_pattern=function(r){r.pos=0,r.lastIntValue=0,r.lastStringValue="",r.lastAssertionIsQuantifiable=!1,r.numCapturingParens=0,r.maxBackReference=0,r.groupNames.length=0,r.backReferenceNames.length=0,this.regexp_disjunction(r),r.pos!==r.source.length&&(r.eat(41)&&r.raise("Unmatched ')'"),(r.eat(93)||r.eat(125))&&r.raise("Lone quantifier brackets")),r.maxBackReference>r.numCapturingParens&&r.raise("Invalid escape");for(var a=0,h=r.backReferenceNames;a<h.length;a+=1){var g=h[a];r.groupNames.indexOf(g)===-1&&r.raise("Invalid named capture referenced")}},K.regexp_disjunction=function(r){for(this.regexp_alternative(r);r.eat(124);)this.regexp_alternative(r);this.regexp_eatQuantifier(r,!0)&&r.raise("Nothing to repeat"),r.eat(123)&&r.raise("Lone quantifier brackets")},K.regexp_alternative=function(r){for(;r.pos<r.source.length&&this.regexp_eatTerm(r););},K.regexp_eatTerm=function(r){return this.regexp_eatAssertion(r)?(r.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(r)&&r.switchU&&r.raise("Invalid quantifier"),!0):(r.switchU?this.regexp_eatAtom(r):this.regexp_eatExtendedAtom(r))?(this.regexp_eatQuantifier(r),!0):!1},K.regexp_eatAssertion=function(r){var a=r.pos;if(r.lastAssertionIsQuantifiable=!1,r.eat(94)||r.eat(36))return!0;if(r.eat(92)){if(r.eat(66)||r.eat(98))return!0;r.pos=a}if(r.eat(40)&&r.eat(63)){var h=!1;if(this.options.ecmaVersion>=9&&(h=r.eat(60)),r.eat(61)||r.eat(33))return this.regexp_disjunction(r),r.eat(41)||r.raise("Unterminated group"),r.lastAssertionIsQuantifiable=!h,!0}return r.pos=a,!1},K.regexp_eatQuantifier=function(r,a){return a===void 0&&(a=!1),this.regexp_eatQuantifierPrefix(r,a)?(r.eat(63),!0):!1},K.regexp_eatQuantifierPrefix=function(r,a){return r.eat(42)||r.eat(43)||r.eat(63)||this.regexp_eatBracedQuantifier(r,a)},K.regexp_eatBracedQuantifier=function(r,a){var h=r.pos;if(r.eat(123)){var g=0,w=-1;if(this.regexp_eatDecimalDigits(r)&&(g=r.lastIntValue,r.eat(44)&&this.regexp_eatDecimalDigits(r)&&(w=r.lastIntValue),r.eat(125)))return w!==-1&&w<g&&!a&&r.raise("numbers out of order in {} quantifier"),!0;r.switchU&&!a&&r.raise("Incomplete quantifier"),r.pos=h}return!1},K.regexp_eatAtom=function(r){return this.regexp_eatPatternCharacters(r)||r.eat(46)||this.regexp_eatReverseSolidusAtomEscape(r)||this.regexp_eatCharacterClass(r)||this.regexp_eatUncapturingGroup(r)||this.regexp_eatCapturingGroup(r)},K.regexp_eatReverseSolidusAtomEscape=function(r){var a=r.pos;if(r.eat(92)){if(this.regexp_eatAtomEscape(r))return!0;r.pos=a}return!1},K.regexp_eatUncapturingGroup=function(r){var a=r.pos;if(r.eat(40)){if(r.eat(63)&&r.eat(58)){if(this.regexp_disjunction(r),r.eat(41))return!0;r.raise("Unterminated group")}r.pos=a}return!1},K.regexp_eatCapturingGroup=function(r){if(r.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(r):r.current()===63&&r.raise("Invalid group"),this.regexp_disjunction(r),r.eat(41))return r.numCapturingParens+=1,!0;r.raise("Unterminated group")}return!1},K.regexp_eatExtendedAtom=function(r){return r.eat(46)||this.regexp_eatReverseSolidusAtomEscape(r)||this.regexp_eatCharacterClass(r)||this.regexp_eatUncapturingGroup(r)||this.regexp_eatCapturingGroup(r)||this.regexp_eatInvalidBracedQuantifier(r)||this.regexp_eatExtendedPatternCharacter(r)},K.regexp_eatInvalidBracedQuantifier=function(r){return this.regexp_eatBracedQuantifier(r,!0)&&r.raise("Nothing to repeat"),!1},K.regexp_eatSyntaxCharacter=function(r){var a=r.current();return Ps(a)?(r.lastIntValue=a,r.advance(),!0):!1};function Ps(r){return r===36||r>=40&&r<=43||r===46||r===63||r>=91&&r<=94||r>=123&&r<=125}K.regexp_eatPatternCharacters=function(r){for(var a=r.pos,h=0;(h=r.current())!==-1&&!Ps(h);)r.advance();return r.pos!==a},K.regexp_eatExtendedPatternCharacter=function(r){var a=r.current();return a!==-1&&a!==36&&!(a>=40&&a<=43)&&a!==46&&a!==63&&a!==91&&a!==94&&a!==124?(r.advance(),!0):!1},K.regexp_groupSpecifier=function(r){if(r.eat(63)){if(this.regexp_eatGroupName(r)){r.groupNames.indexOf(r.lastStringValue)!==-1&&r.raise("Duplicate capture group name"),r.groupNames.push(r.lastStringValue);return}r.raise("Invalid group")}},K.regexp_eatGroupName=function(r){if(r.lastStringValue="",r.eat(60)){if(this.regexp_eatRegExpIdentifierName(r)&&r.eat(62))return!0;r.raise("Invalid capture group name")}return!1},K.regexp_eatRegExpIdentifierName=function(r){if(r.lastStringValue="",this.regexp_eatRegExpIdentifierStart(r)){for(r.lastStringValue+=ti(r.lastIntValue);this.regexp_eatRegExpIdentifierPart(r);)r.lastStringValue+=ti(r.lastIntValue);return!0}return!1},K.regexp_eatRegExpIdentifierStart=function(r){var a=r.pos,h=this.options.ecmaVersion>=11,g=r.current(h);return r.advance(h),g===92&&this.regexp_eatRegExpUnicodeEscapeSequence(r,h)&&(g=r.lastIntValue),lp(g)?(r.lastIntValue=g,!0):(r.pos=a,!1)};function lp(r){return E(r,!0)||r===36||r===95}K.regexp_eatRegExpIdentifierPart=function(r){var a=r.pos,h=this.options.ecmaVersion>=11,g=r.current(h);return r.advance(h),g===92&&this.regexp_eatRegExpUnicodeEscapeSequence(r,h)&&(g=r.lastIntValue),cp(g)?(r.lastIntValue=g,!0):(r.pos=a,!1)};function cp(r){return x(r,!0)||r===36||r===95||r===8204||r===8205}K.regexp_eatAtomEscape=function(r){return this.regexp_eatBackReference(r)||this.regexp_eatCharacterClassEscape(r)||this.regexp_eatCharacterEscape(r)||r.switchN&&this.regexp_eatKGroupName(r)?!0:(r.switchU&&(r.current()===99&&r.raise("Invalid unicode escape"),r.raise("Invalid escape")),!1)},K.regexp_eatBackReference=function(r){var a=r.pos;if(this.regexp_eatDecimalEscape(r)){var h=r.lastIntValue;if(r.switchU)return h>r.maxBackReference&&(r.maxBackReference=h),!0;if(h<=r.numCapturingParens)return!0;r.pos=a}return!1},K.regexp_eatKGroupName=function(r){if(r.eat(107)){if(this.regexp_eatGroupName(r))return r.backReferenceNames.push(r.lastStringValue),!0;r.raise("Invalid named reference")}return!1},K.regexp_eatCharacterEscape=function(r){return this.regexp_eatControlEscape(r)||this.regexp_eatCControlLetter(r)||this.regexp_eatZero(r)||this.regexp_eatHexEscapeSequence(r)||this.regexp_eatRegExpUnicodeEscapeSequence(r,!1)||!r.switchU&&this.regexp_eatLegacyOctalEscapeSequence(r)||this.regexp_eatIdentityEscape(r)},K.regexp_eatCControlLetter=function(r){var a=r.pos;if(r.eat(99)){if(this.regexp_eatControlLetter(r))return!0;r.pos=a}return!1},K.regexp_eatZero=function(r){return r.current()===48&&!ri(r.lookahead())?(r.lastIntValue=0,r.advance(),!0):!1},K.regexp_eatControlEscape=function(r){var a=r.current();return a===116?(r.lastIntValue=9,r.advance(),!0):a===110?(r.lastIntValue=10,r.advance(),!0):a===118?(r.lastIntValue=11,r.advance(),!0):a===102?(r.lastIntValue=12,r.advance(),!0):a===114?(r.lastIntValue=13,r.advance(),!0):!1},K.regexp_eatControlLetter=function(r){var a=r.current();return Bs(a)?(r.lastIntValue=a%32,r.advance(),!0):!1};function Bs(r){return r>=65&&r<=90||r>=97&&r<=122}K.regexp_eatRegExpUnicodeEscapeSequence=function(r,a){a===void 0&&(a=!1);var h=r.pos,g=a||r.switchU;if(r.eat(117)){if(this.regexp_eatFixedHexDigits(r,4)){var w=r.lastIntValue;if(g&&w>=55296&&w<=56319){var _=r.pos;if(r.eat(92)&&r.eat(117)&&this.regexp_eatFixedHexDigits(r,4)){var T=r.lastIntValue;if(T>=56320&&T<=57343)return r.lastIntValue=(w-55296)*1024+(T-56320)+65536,!0}r.pos=_,r.lastIntValue=w}return!0}if(g&&r.eat(123)&&this.regexp_eatHexDigits(r)&&r.eat(125)&&pp(r.lastIntValue))return!0;g&&r.raise("Invalid unicode escape"),r.pos=h}return!1};function pp(r){return r>=0&&r<=1114111}K.regexp_eatIdentityEscape=function(r){if(r.switchU)return this.regexp_eatSyntaxCharacter(r)?!0:r.eat(47)?(r.lastIntValue=47,!0):!1;var a=r.current();return a!==99&&(!r.switchN||a!==107)?(r.lastIntValue=a,r.advance(),!0):!1},K.regexp_eatDecimalEscape=function(r){r.lastIntValue=0;var a=r.current();if(a>=49&&a<=57){do r.lastIntValue=10*r.lastIntValue+(a-48),r.advance();while((a=r.current())>=48&&a<=57);return!0}return!1},K.regexp_eatCharacterClassEscape=function(r){var a=r.current();if(hp(a))return r.lastIntValue=-1,r.advance(),!0;if(r.switchU&&this.options.ecmaVersion>=9&&(a===80||a===112)){if(r.lastIntValue=-1,r.advance(),r.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(r)&&r.eat(125))return!0;r.raise("Invalid property name")}return!1};function hp(r){return r===100||r===68||r===115||r===83||r===119||r===87}K.regexp_eatUnicodePropertyValueExpression=function(r){var a=r.pos;if(this.regexp_eatUnicodePropertyName(r)&&r.eat(61)){var h=r.lastStringValue;if(this.regexp_eatUnicodePropertyValue(r)){var g=r.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(r,h,g),!0}}if(r.pos=a,this.regexp_eatLoneUnicodePropertyNameOrValue(r)){var w=r.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(r,w),!0}return!1},K.regexp_validateUnicodePropertyNameAndValue=function(r,a,h){se(r.unicodeProperties.nonBinary,a)||r.raise("Invalid property name"),r.unicodeProperties.nonBinary[a].test(h)||r.raise("Invalid property value")},K.regexp_validateUnicodePropertyNameOrValue=function(r,a){r.unicodeProperties.binary.test(a)||r.raise("Invalid property name")},K.regexp_eatUnicodePropertyName=function(r){var a=0;for(r.lastStringValue="";Ts(a=r.current());)r.lastStringValue+=ti(a),r.advance();return r.lastStringValue!==""};function Ts(r){return Bs(r)||r===95}K.regexp_eatUnicodePropertyValue=function(r){var a=0;for(r.lastStringValue="";fp(a=r.current());)r.lastStringValue+=ti(a),r.advance();return r.lastStringValue!==""};function fp(r){return Ts(r)||ri(r)}K.regexp_eatLoneUnicodePropertyNameOrValue=function(r){return this.regexp_eatUnicodePropertyValue(r)},K.regexp_eatCharacterClass=function(r){if(r.eat(91)){if(r.eat(94),this.regexp_classRanges(r),r.eat(93))return!0;r.raise("Unterminated character class")}return!1},K.regexp_classRanges=function(r){for(;this.regexp_eatClassAtom(r);){var a=r.lastIntValue;if(r.eat(45)&&this.regexp_eatClassAtom(r)){var h=r.lastIntValue;r.switchU&&(a===-1||h===-1)&&r.raise("Invalid character class"),a!==-1&&h!==-1&&a>h&&r.raise("Range out of order in character class")}}},K.regexp_eatClassAtom=function(r){var a=r.pos;if(r.eat(92)){if(this.regexp_eatClassEscape(r))return!0;if(r.switchU){var h=r.current();(h===99||Ls(h))&&r.raise("Invalid class escape"),r.raise("Invalid escape")}r.pos=a}var g=r.current();return g!==93?(r.lastIntValue=g,r.advance(),!0):!1},K.regexp_eatClassEscape=function(r){var a=r.pos;if(r.eat(98))return r.lastIntValue=8,!0;if(r.switchU&&r.eat(45))return r.lastIntValue=45,!0;if(!r.switchU&&r.eat(99)){if(this.regexp_eatClassControlLetter(r))return!0;r.pos=a}return this.regexp_eatCharacterClassEscape(r)||this.regexp_eatCharacterEscape(r)},K.regexp_eatClassControlLetter=function(r){var a=r.current();return ri(a)||a===95?(r.lastIntValue=a%32,r.advance(),!0):!1},K.regexp_eatHexEscapeSequence=function(r){var a=r.pos;if(r.eat(120)){if(this.regexp_eatFixedHexDigits(r,2))return!0;r.switchU&&r.raise("Invalid escape"),r.pos=a}return!1},K.regexp_eatDecimalDigits=function(r){var a=r.pos,h=0;for(r.lastIntValue=0;ri(h=r.current());)r.lastIntValue=10*r.lastIntValue+(h-48),r.advance();return r.pos!==a};function ri(r){return r>=48&&r<=57}K.regexp_eatHexDigits=function(r){var a=r.pos,h=0;for(r.lastIntValue=0;Os(h=r.current());)r.lastIntValue=16*r.lastIntValue+Ns(h),r.advance();return r.pos!==a};function Os(r){return r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102}function Ns(r){return r>=65&&r<=70?10+(r-65):r>=97&&r<=102?10+(r-97):r-48}K.regexp_eatLegacyOctalEscapeSequence=function(r){if(this.regexp_eatOctalDigit(r)){var a=r.lastIntValue;if(this.regexp_eatOctalDigit(r)){var h=r.lastIntValue;a<=3&&this.regexp_eatOctalDigit(r)?r.lastIntValue=a*64+h*8+r.lastIntValue:r.lastIntValue=a*8+h}else r.lastIntValue=a;return!0}return!1},K.regexp_eatOctalDigit=function(r){var a=r.current();return Ls(a)?(r.lastIntValue=a-48,r.advance(),!0):(r.lastIntValue=0,!1)};function Ls(r){return r>=48&&r<=55}K.regexp_eatFixedHexDigits=function(r,a){var h=r.pos;r.lastIntValue=0;for(var g=0;g<a;++g){var w=r.current();if(!Os(w))return r.pos=h,!1;r.lastIntValue=16*r.lastIntValue+Ns(w),r.advance()}return!0};var ii=function(a){this.type=a.type,this.value=a.value,this.start=a.start,this.end=a.end,a.options.locations&&(this.loc=new B(a,a.startLoc,a.endLoc)),a.options.ranges&&(this.range=[a.start,a.end])},ce=Fe.prototype;ce.next=function(r){!r&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new ii(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ce.getToken=function(){return this.next(),new ii(this)},typeof Symbol<"u"&&(ce[Symbol.iterator]=function(){var r=this;return{next:function(){var a=r.getToken();return{done:a.type===f.eof,value:a}}}}),ce.curContext=function(){return this.context[this.context.length-1]},ce.nextToken=function(){var r=this.curContext();if((!r||!r.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(f.eof);if(r.override)return r.override(this);this.readToken(this.fullCharCodeAtPos())},ce.readToken=function(r){return E(r,this.options.ecmaVersion>=6)||r===92?this.readWord():this.getTokenFromCode(r)},ce.fullCharCodeAtPos=function(){var r=this.input.charCodeAt(this.pos);if(r<=55295||r>=57344)return r;var a=this.input.charCodeAt(this.pos+1);return(r<<10)+a-56613888},ce.skipBlockComment=function(){var r=this.options.onComment&&this.curPosition(),a=this.pos,h=this.input.indexOf("*/",this.pos+=2);if(h===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=h+2,this.options.locations){te.lastIndex=a;for(var g;(g=te.exec(this.input))&&g.index<this.pos;)++this.curLine,this.lineStart=g.index+g[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(a+2,h),a,this.pos,r,this.curPosition())},ce.skipLineComment=function(r){for(var a=this.pos,h=this.options.onComment&&this.curPosition(),g=this.input.charCodeAt(this.pos+=r);this.pos<this.input.length&&!$(g);)g=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(a+r,this.pos),a,this.pos,h,this.curPosition())},ce.skipSpace=function(){e:for(;this.pos<this.input.length;){var r=this.input.charCodeAt(this.pos);switch(r){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(r>8&&r<14||r>=5760&&M.test(String.fromCharCode(r)))++this.pos;else break e}}},ce.finishToken=function(r,a){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var h=this.type;this.type=r,this.value=a,this.updateContext(h)},ce.readToken_dot=function(){var r=this.input.charCodeAt(this.pos+1);if(r>=48&&r<=57)return this.readNumber(!0);var a=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&r===46&&a===46?(this.pos+=3,this.finishToken(f.ellipsis)):(++this.pos,this.finishToken(f.dot))},ce.readToken_slash=function(){var r=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):r===61?this.finishOp(f.assign,2):this.finishOp(f.slash,1)},ce.readToken_mult_modulo_exp=function(r){var a=this.input.charCodeAt(this.pos+1),h=1,g=r===42?f.star:f.modulo;return this.options.ecmaVersion>=7&&r===42&&a===42&&(++h,g=f.starstar,a=this.input.charCodeAt(this.pos+2)),a===61?this.finishOp(f.assign,h+1):this.finishOp(g,h)},ce.readToken_pipe_amp=function(r){var a=this.input.charCodeAt(this.pos+1);if(a===r){if(this.options.ecmaVersion>=12){var h=this.input.charCodeAt(this.pos+2);if(h===61)return this.finishOp(f.assign,3)}return this.finishOp(r===124?f.logicalOR:f.logicalAND,2)}return a===61?this.finishOp(f.assign,2):this.finishOp(r===124?f.bitwiseOR:f.bitwiseAND,1)},ce.readToken_caret=function(){var r=this.input.charCodeAt(this.pos+1);return r===61?this.finishOp(f.assign,2):this.finishOp(f.bitwiseXOR,1)},ce.readToken_plus_min=function(r){var a=this.input.charCodeAt(this.pos+1);return a===r?a===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||V.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(f.incDec,2):a===61?this.finishOp(f.assign,2):this.finishOp(f.plusMin,1)},ce.readToken_lt_gt=function(r){var a=this.input.charCodeAt(this.pos+1),h=1;return a===r?(h=r===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+h)===61?this.finishOp(f.assign,h+1):this.finishOp(f.bitShift,h)):a===33&&r===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(a===61&&(h=2),this.finishOp(f.relational,h))},ce.readToken_eq_excl=function(r){var a=this.input.charCodeAt(this.pos+1);return a===61?this.finishOp(f.equality,this.input.charCodeAt(this.pos+2)===61?3:2):r===61&&a===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(f.arrow)):this.finishOp(r===61?f.eq:f.prefix,1)},ce.readToken_question=function(){var r=this.options.ecmaVersion;if(r>=11){var a=this.input.charCodeAt(this.pos+1);if(a===46){var h=this.input.charCodeAt(this.pos+2);if(h<48||h>57)return this.finishOp(f.questionDot,2)}if(a===63){if(r>=12){var g=this.input.charCodeAt(this.pos+2);if(g===61)return this.finishOp(f.assign,3)}return this.finishOp(f.coalesce,2)}}return this.finishOp(f.question,1)},ce.getTokenFromCode=function(r){switch(r){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(f.parenL);case 41:return++this.pos,this.finishToken(f.parenR);case 59:return++this.pos,this.finishToken(f.semi);case 44:return++this.pos,this.finishToken(f.comma);case 91:return++this.pos,this.finishToken(f.bracketL);case 93:return++this.pos,this.finishToken(f.bracketR);case 123:return++this.pos,this.finishToken(f.braceL);case 125:return++this.pos,this.finishToken(f.braceR);case 58:return++this.pos,this.finishToken(f.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(f.backQuote);case 48:var a=this.input.charCodeAt(this.pos+1);if(a===120||a===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(a===111||a===79)return this.readRadixNumber(8);if(a===98||a===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(r);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(r);case 124:case 38:return this.readToken_pipe_amp(r);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(r);case 60:case 62:return this.readToken_lt_gt(r);case 61:case 33:return this.readToken_eq_excl(r);case 63:return this.readToken_question();case 126:return this.finishOp(f.prefix,1)}this.raise(this.pos,"Unexpected character '"+tn(r)+"'")},ce.finishOp=function(r,a){var h=this.input.slice(this.pos,this.pos+a);return this.pos+=a,this.finishToken(r,h)},ce.readRegexp=function(){for(var r,a,h=this.pos;;){this.pos>=this.input.length&&this.raise(h,"Unterminated regular expression");var g=this.input.charAt(this.pos);if(V.test(g)&&this.raise(h,"Unterminated regular expression"),r)r=!1;else{if(g==="[")a=!0;else if(g==="]"&&a)a=!1;else if(g==="/"&&!a)break;r=g==="\\"}++this.pos}var w=this.input.slice(h,this.pos);++this.pos;var _=this.pos,T=this.readWord1();this.containsEsc&&this.unexpected(_);var W=this.regexpState||(this.regexpState=new mt(this));W.reset(h,w,T),this.validateRegExpFlags(W),this.validateRegExpPattern(W);var H=null;try{H=new RegExp(w,T)}catch{}return this.finishToken(f.regexp,{pattern:w,flags:T,value:H})},ce.readInt=function(r,a,h){for(var g=this.options.ecmaVersion>=12&&a===void 0,w=h&&this.input.charCodeAt(this.pos)===48,_=this.pos,T=0,W=0,H=0,he=a??1/0;H<he;++H,++this.pos){var Ee=this.input.charCodeAt(this.pos),Me=void 0;if(g&&Ee===95){w&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),W===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),H===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),W=Ee;continue}if(Ee>=97?Me=Ee-97+10:Ee>=65?Me=Ee-65+10:Ee>=48&&Ee<=57?Me=Ee-48:Me=1/0,Me>=r)break;W=Ee,T=T*r+Me}return g&&W===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===_||a!=null&&this.pos-_!==a?null:T};function dp(r,a){return a?parseInt(r,8):parseFloat(r.replace(/_/g,""))}function Rs(r){return typeof BigInt!="function"?null:BigInt(r.replace(/_/g,""))}ce.readRadixNumber=function(r){var a=this.pos;this.pos+=2;var h=this.readInt(r);return h==null&&this.raise(this.start+2,"Expected number in radix "+r),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(h=Rs(this.input.slice(a,this.pos)),++this.pos):E(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(f.num,h)},ce.readNumber=function(r){var a=this.pos;!r&&this.readInt(10,void 0,!0)===null&&this.raise(a,"Invalid number");var h=this.pos-a>=2&&this.input.charCodeAt(a)===48;h&&this.strict&&this.raise(a,"Invalid number");var g=this.input.charCodeAt(this.pos);if(!h&&!r&&this.options.ecmaVersion>=11&&g===110){var w=Rs(this.input.slice(a,this.pos));return++this.pos,E(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(f.num,w)}h&&/[89]/.test(this.input.slice(a,this.pos))&&(h=!1),g===46&&!h&&(++this.pos,this.readInt(10),g=this.input.charCodeAt(this.pos)),(g===69||g===101)&&!h&&(g=this.input.charCodeAt(++this.pos),(g===43||g===45)&&++this.pos,this.readInt(10)===null&&this.raise(a,"Invalid number")),E(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var _=dp(this.input.slice(a,this.pos),h);return this.finishToken(f.num,_)},ce.readCodePoint=function(){var r=this.input.charCodeAt(this.pos),a;if(r===123){this.options.ecmaVersion<6&&this.unexpected();var h=++this.pos;a=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,a>1114111&&this.invalidStringToken(h,"Code point out of bounds")}else a=this.readHexChar(4);return a};function tn(r){return r<=65535?String.fromCharCode(r):(r-=65536,String.fromCharCode((r>>10)+55296,(r&1023)+56320))}ce.readString=function(r){for(var a="",h=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var g=this.input.charCodeAt(this.pos);if(g===r)break;g===92?(a+=this.input.slice(h,this.pos),a+=this.readEscapedChar(!1),h=this.pos):($(g,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return a+=this.input.slice(h,this.pos++),this.finishToken(f.string,a)};var js={};ce.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(r){if(r===js)this.readInvalidTemplateToken();else throw r}this.inTemplateElement=!1},ce.invalidStringToken=function(r,a){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw js;this.raise(r,a)},ce.readTmplToken=function(){for(var r="",a=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var h=this.input.charCodeAt(this.pos);if(h===96||h===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===f.template||this.type===f.invalidTemplate)?h===36?(this.pos+=2,this.finishToken(f.dollarBraceL)):(++this.pos,this.finishToken(f.backQuote)):(r+=this.input.slice(a,this.pos),this.finishToken(f.template,r));if(h===92)r+=this.input.slice(a,this.pos),r+=this.readEscapedChar(!0),a=this.pos;else if($(h)){switch(r+=this.input.slice(a,this.pos),++this.pos,h){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:r+=`
|
|
65
65
|
`;break;default:r+=String.fromCharCode(h);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),a=this.pos}else++this.pos}},ce.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(f.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},ce.readEscapedChar=function(r){var a=this.input.charCodeAt(++this.pos);switch(++this.pos,a){case 110:return`
|
|
66
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return tn(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(r){var h=this.pos-1;return this.invalidStringToken(h,"Invalid escape sequence in template string"),null}default:if(a>=48&&a<=55){var g=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],w=parseInt(g,8);return w>255&&(g=g.slice(0,-1),w=parseInt(g,8)),this.pos+=g.length-1,a=this.input.charCodeAt(this.pos),(g!=="0"||a===56||a===57)&&(this.strict||r)&&this.invalidStringToken(this.pos-1-g.length,r?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(w)}return $(a)?"":String.fromCharCode(a)}},ce.readHexChar=function(r){var a=this.pos,h=this.readInt(16,r);return h===null&&this.invalidStringToken(a,"Bad character escape sequence"),h},ce.readWord1=function(){this.containsEsc=!1;for(var r="",a=!0,h=this.pos,g=this.options.ecmaVersion>=6;this.pos<this.input.length;){var w=this.fullCharCodeAtPos();if(x(w,g))this.pos+=w<=65535?1:2;else if(w===92){this.containsEsc=!0,r+=this.input.slice(h,this.pos);var _=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var T=this.readCodePoint();(a?E:x)(T,g)||this.invalidStringToken(_,"Invalid Unicode escape"),r+=tn(T),h=this.pos}else break;a=!1}return r+this.input.slice(h,this.pos)},ce.readWord=function(){var r=this.readWord1(),a=f.name;return this.keywords.test(r)&&(a=L[r]),this.finishToken(a,r)};var $s="7.4.1";Fe.acorn={Parser:Fe,version:$s,defaultOptions:j,Position:Q,SourceLocation:B,getLineInfo:S,Node:ve,TokenType:v,tokTypes:f,keywordTypes:L,TokContext:et,tokContexts:_e,isIdentifierChar:x,isIdentifierStart:E,Token:ii,isNewLine:$,lineBreak:V,lineBreakG:te,nonASCIIwhitespace:M};function gp(r,a){return Fe.parse(r,a)}function mp(r,a,h){return Fe.parseExpressionAt(r,a,h)}function yp(r,a){return Fe.tokenizer(r,a)}e.Node=ve,e.Parser=Fe,e.Position=Q,e.SourceLocation=B,e.TokContext=et,e.Token=ii,e.TokenType=v,e.defaultOptions=j,e.getLineInfo=S,e.isIdentifierChar=x,e.isIdentifierStart=E,e.isNewLine=$,e.keywordTypes=L,e.lineBreak=V,e.lineBreakG=te,e.nonASCIIwhitespace=M,e.parse=gp,e.parseExpressionAt=mp,e.tokContexts=_e,e.tokTypes=f,e.tokenizer=yp,e.version=$s,Object.defineProperty(e,"__esModule",{value:!0})})});var qu=je((Xy,Vu)=>{"use strict";J();X();Y();var Mu=Object.getOwnPropertySymbols,gf=Object.prototype.hasOwnProperty,mf=Object.prototype.propertyIsEnumerable;function yf(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Df(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;var n=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(n.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(o){s[o]=o}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}Vu.exports=Df()?Object.assign:function(e,t){for(var i,n=yf(e),s,o=1;o<arguments.length;o++){i=Object(arguments[o]);for(var u in i)gf.call(i,u)&&(n[u]=i[u]);if(Mu){s=Mu(i);for(var p=0;p<s.length;p++)mf.call(i,s[p])&&(n[s[p]]=i[s[p]])}}return n}});var zu=je((rD,Gu)=>{"use strict";J();X();Y();var Wu=$u(),vf=qu();Gu.exports=Ef;var bf={throw:!1,strict:!1,lineComment:!1};function Ef(e,t){t=vf({},bf,t);try{var i=new Wu.Parser(t,e,0);t.strict&&(i.strict=!0),t.lineComment||(i.skipLineComment=function(n){this.raise(this.pos,"Line comments not allowed in an expression")}),i.nextToken(),i.parseExpression(),i.type!==Wu.tokTypes.eof&&i.unexpected()}catch(n){if(!t.throw)return!1;throw n}return!0}});var Tn=je((aD,Hu)=>{"use strict";J();X();Y();Hu.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},i=Symbol("test"),n=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var s=42;t[i]=s;for(i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==i||!Object.prototype.propertyIsEnumerable.call(t,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,i);if(u.value!==s||u.enumerable!==!0)return!1}return!0}});var Ju=je((cD,Ku)=>{"use strict";J();X();Y();var Qu=typeof Symbol<"u"&&Symbol,xf=Tn();Ku.exports=function(){return typeof Qu!="function"||typeof Symbol!="function"||typeof Qu("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:xf()}});var Zu=je((dD,Xu)=>{"use strict";J();X();Y();var Yu={foo:{}},wf=Object;Xu.exports=function(){return{__proto__:Yu}.foo===Yu.foo&&!({__proto__:null}instanceof wf)}});var tl=je((DD,el)=>{"use strict";J();X();Y();var Ff="Function.prototype.bind called on incompatible ",On=Array.prototype.slice,kf=Object.prototype.toString,Cf="[object Function]";el.exports=function(t){var i=this;if(typeof i!="function"||kf.call(i)!==Cf)throw new TypeError(Ff+i);for(var n=On.call(arguments,1),s,o=function(){if(this instanceof s){var y=i.apply(this,n.concat(On.call(arguments)));return Object(y)===y?y:this}else return i.apply(t,n.concat(On.call(arguments)))},u=Math.max(0,i.length-n.length),p=[],m=0;m<u;m++)p.push("$"+m);if(s=Function("binder","return function ("+p.join(",")+"){ return binder.apply(this,arguments); }")(o),i.prototype){var D=function(){};D.prototype=i.prototype,s.prototype=new D,D.prototype=null}return s}});var Ni=je((xD,rl)=>{"use strict";J();X();Y();var Af=tl();rl.exports=Function.prototype.bind||Af});var nl=je((CD,il)=>{"use strict";J();X();Y();var Sf=Ni();il.exports=Sf.call(Function.call,Object.prototype.hasOwnProperty)});var Rn=je((ID,ll)=>{"use strict";J();X();Y();var pe,Dr=SyntaxError,ul=Function,yr=TypeError,Nn=function(e){try{return ul('"use strict"; return ('+e+").constructor;")()}catch{}},Jt=Object.getOwnPropertyDescriptor;if(Jt)try{Jt({},"")}catch{Jt=null}var Ln=function(){throw new yr},_f=Jt?function(){try{return arguments.callee,Ln}catch{try{return Jt(arguments,"callee").get}catch{return Ln}}}():Ln,gr=Ju()(),If=Zu()(),Te=Object.getPrototypeOf||(If?function(e){return e.__proto__}:null),mr={},Pf=typeof Uint8Array>"u"||!Te?pe:Te(Uint8Array),Yt={"%AggregateError%":typeof AggregateError>"u"?pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pe:ArrayBuffer,"%ArrayIteratorPrototype%":gr&&Te?Te([][Symbol.iterator]()):pe,"%AsyncFromSyncIteratorPrototype%":pe,"%AsyncFunction%":mr,"%AsyncGenerator%":mr,"%AsyncGeneratorFunction%":mr,"%AsyncIteratorPrototype%":mr,"%Atomics%":typeof Atomics>"u"?pe:Atomics,"%BigInt%":typeof BigInt>"u"?pe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?pe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?pe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?pe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?pe:FinalizationRegistry,"%Function%":ul,"%GeneratorFunction%":mr,"%Int8Array%":typeof Int8Array>"u"?pe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":gr&&Te?Te(Te([][Symbol.iterator]())):pe,"%JSON%":typeof JSON=="object"?JSON:pe,"%Map%":typeof Map>"u"?pe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!gr||!Te?pe:Te(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pe:Promise,"%Proxy%":typeof Proxy>"u"?pe:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!gr||!Te?pe:Te(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":gr&&Te?Te(""[Symbol.iterator]()):pe,"%Symbol%":gr?Symbol:pe,"%SyntaxError%":Dr,"%ThrowTypeError%":_f,"%TypedArray%":Pf,"%TypeError%":yr,"%Uint8Array%":typeof Uint8Array>"u"?pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?pe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?pe:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?pe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pe:WeakSet};if(Te)try{null.error}catch(e){sl=Te(Te(e)),Yt["%Error.prototype%"]=sl}var sl,Bf=function e(t){var i;if(t==="%AsyncFunction%")i=Nn("async function () {}");else if(t==="%GeneratorFunction%")i=Nn("function* () {}");else if(t==="%AsyncGeneratorFunction%")i=Nn("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(i=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var s=e("%AsyncGenerator%");s&&Te&&(i=Te(s.prototype))}return Yt[t]=i,i},al={"%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"]},Mr=Ni(),Li=nl(),Tf=Mr.call(Function.call,Array.prototype.concat),Of=Mr.call(Function.apply,Array.prototype.splice),ol=Mr.call(Function.call,String.prototype.replace),Ri=Mr.call(Function.call,String.prototype.slice),Nf=Mr.call(Function.call,RegExp.prototype.exec),Lf=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Rf=/\\(\\)?/g,jf=function(t){var i=Ri(t,0,1),n=Ri(t,-1);if(i==="%"&&n!=="%")throw new Dr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&i!=="%")throw new Dr("invalid intrinsic syntax, expected opening `%`");var s=[];return ol(t,Lf,function(o,u,p,m){s[s.length]=p?ol(m,Rf,"$1"):u||o}),s},Uf=function(t,i){var n=t,s;if(Li(al,n)&&(s=al[n],n="%"+s[0]+"%"),Li(Yt,n)){var o=Yt[n];if(o===mr&&(o=Bf(n)),typeof o>"u"&&!i)throw new yr("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:s,name:n,value:o}}throw new Dr("intrinsic "+t+" does not exist!")};ll.exports=function(t,i){if(typeof t!="string"||t.length===0)throw new yr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof i!="boolean")throw new yr('"allowMissing" argument must be a boolean');if(Nf(/^%?[^%]*%?$/,t)===null)throw new Dr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=jf(t),s=n.length>0?n[0]:"",o=Uf("%"+s+"%",i),u=o.name,p=o.value,m=!1,D=o.alias;D&&(s=D[0],Of(n,Tf([0,1],D)));for(var y=1,F=!0;y<n.length;y+=1){var E=n[y],x=Ri(E,0,1),v=Ri(E,-1);if((x==='"'||x==="'"||x==="`"||v==='"'||v==="'"||v==="`")&&x!==v)throw new Dr("property names with quotes must have matching quotes");if((E==="constructor"||!F)&&(m=!0),s+="."+E,u="%"+s+"%",Li(Yt,u))p=Yt[u];else if(p!=null){if(!(E in p)){if(!i)throw new yr("base intrinsic for "+t+" exists, but the property is not available.");return}if(Jt&&y+1>=n.length){var k=Jt(p,E);F=!!k,F&&"get"in k&&!("originalValue"in k.get)?p=k.get:p=p[E]}else F=Li(p,E),p=p[E];F&&!m&&(Yt[u]=p)}}return p}});var gl=je((OD,ji)=>{"use strict";J();X();Y();var jn=Ni(),vr=Rn(),hl=vr("%Function.prototype.apply%"),fl=vr("%Function.prototype.call%"),dl=vr("%Reflect.apply%",!0)||jn.call(fl,hl),cl=vr("%Object.getOwnPropertyDescriptor%",!0),Xt=vr("%Object.defineProperty%",!0),$f=vr("%Math.max%");if(Xt)try{Xt({},"a",{value:1})}catch{Xt=null}ji.exports=function(t){var i=dl(jn,fl,arguments);if(cl&&Xt){var n=cl(i,"length");n.configurable&&Xt(i,"length",{value:1+$f(0,t.length-(arguments.length-1))})}return i};var pl=function(){return dl(jn,hl,arguments)};Xt?Xt(ji.exports,"apply",{value:pl}):ji.exports.apply=pl});var vl=je((jD,Dl)=>{"use strict";J();X();Y();var ml=Rn(),yl=gl(),Mf=yl(ml("String.prototype.indexOf"));Dl.exports=function(t,i){var n=ml(t,!!i);return typeof n=="function"&&Mf(t,".prototype.")>-1?yl(n):n}});var El=je((VD,bl)=>{"use strict";J();X();Y();var Vf=Tn();bl.exports=function(){return Vf()&&!!Symbol.toStringTag}});var Cl=je((zD,kl)=>{"use strict";J();X();Y();var Un=vl(),xl=El()(),wl,Fl,$n,Mn;xl&&(wl=Un("Object.prototype.hasOwnProperty"),Fl=Un("RegExp.prototype.exec"),$n={},Ui=function(){throw $n},Mn={toString:Ui,valueOf:Ui},typeof Symbol.toPrimitive=="symbol"&&(Mn[Symbol.toPrimitive]=Ui));var Ui,qf=Un("Object.prototype.toString"),Wf=Object.getOwnPropertyDescriptor,Gf="[object RegExp]";kl.exports=xl?function(t){if(!t||typeof t!="object")return!1;var i=Wf(t,"lastIndex"),n=i&&wl(i,"value");if(!n)return!1;try{Fl(t,Mn)}catch(s){return s===$n}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:qf(t)===Gf}});var Pl=je((Ke,Il)=>{"use strict";J();X();Y();var zf=Cl();Ke=Il.exports=Al;var Oe=Ke.TOKEN_TYPES={LINE_COMMENT:"//",BLOCK_COMMENT:"/**/",SINGLE_QUOTE:"'",DOUBLE_QUOTE:'"',TEMPLATE_QUOTE:"`",REGEXP:"//g"},Vn=Ke.BRACKETS={"(":")","{":"}","[":"]"},Hf={")":"(","}":"{","]":"["};Ke.parse=Al;function Al(e,t,i){i=i||{},t=t||Ke.defaultState();for(var n=i.start||0,s=i.end||e.length,o=n;o<s;){try{qn(e[o],t)}catch(u){throw u.index=o,u}o++}return t}Ke.parseUntil=Qf;function Qf(e,t,i){i=i||{};for(var n=i.start||0,s=n,o=Ke.defaultState();s<e.length;){if((i.ignoreNesting||!o.isNesting(i))&&Kf(e,t,s)){var u=s;return{start:n,end:u,src:e.substring(n,u)}}try{qn(e[s],o)}catch(m){throw m.index=s,m}s++}var p=new Error("The end of the string was reached with no closing bracket found.");throw p.code="CHARACTER_PARSER:END_OF_STRING_REACHED",p.index=s,p}Ke.parseChar=qn;function qn(e,t){if(e.length!==1){var i=new Error("Character must be a string of length 1");throw i.name="InvalidArgumentError",i.code="CHARACTER_PARSER:CHAR_LENGTH_NOT_ONE",i}t=t||Ke.defaultState(),t.src+=e;var n=t.isComment(),s=t.history?t.history[0]:"";switch(t.regexpStart&&((e==="/"||e=="*")&&t.stack.pop(),t.regexpStart=!1),t.current()){case Oe.LINE_COMMENT:e===`
|
|
67
|
-
`&&t.stack.pop();break;case Oe.BLOCK_COMMENT:t.lastChar==="*"&&e==="/"&&t.stack.pop();break;case Oe.SINGLE_QUOTE:e==="'"&&!t.escaped?t.stack.pop():e==="\\"&&!t.escaped?t.escaped=!0:t.escaped=!1;break;case Oe.DOUBLE_QUOTE:e==='"'&&!t.escaped?t.stack.pop():e==="\\"&&!t.escaped?t.escaped=!0:t.escaped=!1;break;case Oe.TEMPLATE_QUOTE:e==="`"&&!t.escaped?(t.stack.pop(),t.hasDollar=!1):e==="\\"&&!t.escaped?(t.escaped=!0,t.hasDollar=!1):e==="$"&&!t.escaped?t.hasDollar=!0:e==="{"&&t.hasDollar?t.stack.push(
|
|
66
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return tn(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(r){var h=this.pos-1;return this.invalidStringToken(h,"Invalid escape sequence in template string"),null}default:if(a>=48&&a<=55){var g=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],w=parseInt(g,8);return w>255&&(g=g.slice(0,-1),w=parseInt(g,8)),this.pos+=g.length-1,a=this.input.charCodeAt(this.pos),(g!=="0"||a===56||a===57)&&(this.strict||r)&&this.invalidStringToken(this.pos-1-g.length,r?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(w)}return $(a)?"":String.fromCharCode(a)}},ce.readHexChar=function(r){var a=this.pos,h=this.readInt(16,r);return h===null&&this.invalidStringToken(a,"Bad character escape sequence"),h},ce.readWord1=function(){this.containsEsc=!1;for(var r="",a=!0,h=this.pos,g=this.options.ecmaVersion>=6;this.pos<this.input.length;){var w=this.fullCharCodeAtPos();if(x(w,g))this.pos+=w<=65535?1:2;else if(w===92){this.containsEsc=!0,r+=this.input.slice(h,this.pos);var _=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var T=this.readCodePoint();(a?E:x)(T,g)||this.invalidStringToken(_,"Invalid Unicode escape"),r+=tn(T),h=this.pos}else break;a=!1}return r+this.input.slice(h,this.pos)},ce.readWord=function(){var r=this.readWord1(),a=f.name;return this.keywords.test(r)&&(a=L[r]),this.finishToken(a,r)};var Us="7.4.1";Fe.acorn={Parser:Fe,version:Us,defaultOptions:j,Position:Q,SourceLocation:B,getLineInfo:S,Node:ve,TokenType:v,tokTypes:f,keywordTypes:L,TokContext:et,tokContexts:_e,isIdentifierChar:x,isIdentifierStart:E,Token:ii,isNewLine:$,lineBreak:V,lineBreakG:te,nonASCIIwhitespace:M};function gp(r,a){return Fe.parse(r,a)}function mp(r,a,h){return Fe.parseExpressionAt(r,a,h)}function yp(r,a){return Fe.tokenizer(r,a)}e.Node=ve,e.Parser=Fe,e.Position=Q,e.SourceLocation=B,e.TokContext=et,e.Token=ii,e.TokenType=v,e.defaultOptions=j,e.getLineInfo=S,e.isIdentifierChar=x,e.isIdentifierStart=E,e.isNewLine=$,e.keywordTypes=L,e.lineBreak=V,e.lineBreakG=te,e.nonASCIIwhitespace=M,e.parse=gp,e.parseExpressionAt=mp,e.tokContexts=_e,e.tokTypes=f,e.tokenizer=yp,e.version=Us,Object.defineProperty(e,"__esModule",{value:!0})})});var Vu=je((tD,Mu)=>{"use strict";J();X();Y();var $u=Object.getOwnPropertySymbols,gf=Object.prototype.hasOwnProperty,mf=Object.prototype.propertyIsEnumerable;function yf(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Df(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;var n=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(n.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(o){s[o]=o}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}Mu.exports=Df()?Object.assign:function(e,t){for(var i,n=yf(e),s,o=1;o<arguments.length;o++){i=Object(arguments[o]);for(var u in i)gf.call(i,u)&&(n[u]=i[u]);if($u){s=$u(i);for(var p=0;p<s.length;p++)mf.call(i,s[p])&&(n[s[p]]=i[s[p]])}}return n}});var Gu=je((sD,Wu)=>{"use strict";J();X();Y();var qu=Uu(),vf=Vu();Wu.exports=Ef;var bf={throw:!1,strict:!1,lineComment:!1};function Ef(e,t){t=vf({},bf,t);try{var i=new qu.Parser(t,e,0);t.strict&&(i.strict=!0),t.lineComment||(i.skipLineComment=function(n){this.raise(this.pos,"Line comments not allowed in an expression")}),i.nextToken(),i.parseExpression(),i.type!==qu.tokTypes.eof&&i.unexpected()}catch(n){if(!t.throw)return!1;throw n}return!0}});var Tn=je((lD,zu)=>{"use strict";J();X();Y();zu.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},i=Symbol("test"),n=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var s=42;t[i]=s;for(i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==i||!Object.prototype.propertyIsEnumerable.call(t,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,i);if(u.value!==s||u.enumerable!==!0)return!1}return!0}});var Ku=je((fD,Qu)=>{"use strict";J();X();Y();var Hu=typeof Symbol<"u"&&Symbol,xf=Tn();Qu.exports=function(){return typeof Hu!="function"||typeof Symbol!="function"||typeof Hu("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:xf()}});var Xu=je((yD,Yu)=>{"use strict";J();X();Y();var Ju={foo:{}},wf=Object;Yu.exports=function(){return{__proto__:Ju}.foo===Ju.foo&&!({__proto__:null}instanceof wf)}});var tl=je((ED,el)=>{"use strict";J();X();Y();var Ff="Function.prototype.bind called on incompatible ",kf=Object.prototype.toString,Cf=Math.max,Af="[object Function]",Zu=function(t,i){for(var n=[],s=0;s<t.length;s+=1)n[s]=t[s];for(var o=0;o<i.length;o+=1)n[o+t.length]=i[o];return n},Sf=function(t,i){for(var n=[],s=i||0,o=0;s<t.length;s+=1,o+=1)n[o]=t[s];return n},_f=function(e,t){for(var i="",n=0;n<e.length;n+=1)i+=e[n],n+1<e.length&&(i+=t);return i};el.exports=function(t){var i=this;if(typeof i!="function"||kf.apply(i)!==Af)throw new TypeError(Ff+i);for(var n=Sf(arguments,1),s,o=function(){if(this instanceof s){var y=i.apply(this,Zu(n,arguments));return Object(y)===y?y:this}return i.apply(t,Zu(n,arguments))},u=Cf(0,i.length-n.length),p=[],m=0;m<u;m++)p[m]="$"+m;if(s=Function("binder","return function ("+_f(p,",")+"){ return binder.apply(this,arguments); }")(o),i.prototype){var D=function(){};D.prototype=i.prototype,s.prototype=new D,D.prototype=null}return s}});var Ni=je((kD,rl)=>{"use strict";J();X();Y();var If=tl();rl.exports=Function.prototype.bind||If});var nl=je((_D,il)=>{"use strict";J();X();Y();var Pf=Ni();il.exports=Pf.call(Function.call,Object.prototype.hasOwnProperty)});var Ln=je((TD,ll)=>{"use strict";J();X();Y();var pe,Dr=SyntaxError,ul=Function,yr=TypeError,On=function(e){try{return ul('"use strict"; return ('+e+").constructor;")()}catch{}},Jt=Object.getOwnPropertyDescriptor;if(Jt)try{Jt({},"")}catch{Jt=null}var Nn=function(){throw new yr},Bf=Jt?function(){try{return arguments.callee,Nn}catch{try{return Jt(arguments,"callee").get}catch{return Nn}}}():Nn,gr=Ku()(),Tf=Xu()(),Te=Object.getPrototypeOf||(Tf?function(e){return e.__proto__}:null),mr={},Of=typeof Uint8Array>"u"||!Te?pe:Te(Uint8Array),Yt={"%AggregateError%":typeof AggregateError>"u"?pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pe:ArrayBuffer,"%ArrayIteratorPrototype%":gr&&Te?Te([][Symbol.iterator]()):pe,"%AsyncFromSyncIteratorPrototype%":pe,"%AsyncFunction%":mr,"%AsyncGenerator%":mr,"%AsyncGeneratorFunction%":mr,"%AsyncIteratorPrototype%":mr,"%Atomics%":typeof Atomics>"u"?pe:Atomics,"%BigInt%":typeof BigInt>"u"?pe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?pe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?pe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?pe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?pe:FinalizationRegistry,"%Function%":ul,"%GeneratorFunction%":mr,"%Int8Array%":typeof Int8Array>"u"?pe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":gr&&Te?Te(Te([][Symbol.iterator]())):pe,"%JSON%":typeof JSON=="object"?JSON:pe,"%Map%":typeof Map>"u"?pe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!gr||!Te?pe:Te(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pe:Promise,"%Proxy%":typeof Proxy>"u"?pe:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!gr||!Te?pe:Te(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":gr&&Te?Te(""[Symbol.iterator]()):pe,"%Symbol%":gr?Symbol:pe,"%SyntaxError%":Dr,"%ThrowTypeError%":Bf,"%TypedArray%":Of,"%TypeError%":yr,"%Uint8Array%":typeof Uint8Array>"u"?pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?pe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?pe:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?pe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pe:WeakSet};if(Te)try{null.error}catch(e){sl=Te(Te(e)),Yt["%Error.prototype%"]=sl}var sl,Nf=function e(t){var i;if(t==="%AsyncFunction%")i=On("async function () {}");else if(t==="%GeneratorFunction%")i=On("function* () {}");else if(t==="%AsyncGeneratorFunction%")i=On("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(i=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var s=e("%AsyncGenerator%");s&&Te&&(i=Te(s.prototype))}return Yt[t]=i,i},al={"%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"]},Mr=Ni(),Li=nl(),Lf=Mr.call(Function.call,Array.prototype.concat),Rf=Mr.call(Function.apply,Array.prototype.splice),ol=Mr.call(Function.call,String.prototype.replace),Ri=Mr.call(Function.call,String.prototype.slice),jf=Mr.call(Function.call,RegExp.prototype.exec),Uf=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$f=/\\(\\)?/g,Mf=function(t){var i=Ri(t,0,1),n=Ri(t,-1);if(i==="%"&&n!=="%")throw new Dr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&i!=="%")throw new Dr("invalid intrinsic syntax, expected opening `%`");var s=[];return ol(t,Uf,function(o,u,p,m){s[s.length]=p?ol(m,$f,"$1"):u||o}),s},Vf=function(t,i){var n=t,s;if(Li(al,n)&&(s=al[n],n="%"+s[0]+"%"),Li(Yt,n)){var o=Yt[n];if(o===mr&&(o=Nf(n)),typeof o>"u"&&!i)throw new yr("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:s,name:n,value:o}}throw new Dr("intrinsic "+t+" does not exist!")};ll.exports=function(t,i){if(typeof t!="string"||t.length===0)throw new yr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof i!="boolean")throw new yr('"allowMissing" argument must be a boolean');if(jf(/^%?[^%]*%?$/,t)===null)throw new Dr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Mf(t),s=n.length>0?n[0]:"",o=Vf("%"+s+"%",i),u=o.name,p=o.value,m=!1,D=o.alias;D&&(s=D[0],Rf(n,Lf([0,1],D)));for(var y=1,F=!0;y<n.length;y+=1){var E=n[y],x=Ri(E,0,1),v=Ri(E,-1);if((x==='"'||x==="'"||x==="`"||v==='"'||v==="'"||v==="`")&&x!==v)throw new Dr("property names with quotes must have matching quotes");if((E==="constructor"||!F)&&(m=!0),s+="."+E,u="%"+s+"%",Li(Yt,u))p=Yt[u];else if(p!=null){if(!(E in p)){if(!i)throw new yr("base intrinsic for "+t+" exists, but the property is not available.");return}if(Jt&&y+1>=n.length){var k=Jt(p,E);F=!!k,F&&"get"in k&&!("originalValue"in k.get)?p=k.get:p=p[E]}else F=Li(p,E),p=p[E];F&&!m&&(Yt[u]=p)}}return p}});var gl=je((RD,ji)=>{"use strict";J();X();Y();var Rn=Ni(),vr=Ln(),hl=vr("%Function.prototype.apply%"),fl=vr("%Function.prototype.call%"),dl=vr("%Reflect.apply%",!0)||Rn.call(fl,hl),cl=vr("%Object.getOwnPropertyDescriptor%",!0),Xt=vr("%Object.defineProperty%",!0),qf=vr("%Math.max%");if(Xt)try{Xt({},"a",{value:1})}catch{Xt=null}ji.exports=function(t){var i=dl(Rn,fl,arguments);if(cl&&Xt){var n=cl(i,"length");n.configurable&&Xt(i,"length",{value:1+qf(0,t.length-(arguments.length-1))})}return i};var pl=function(){return dl(Rn,hl,arguments)};Xt?Xt(ji.exports,"apply",{value:pl}):ji.exports.apply=pl});var vl=je((MD,Dl)=>{"use strict";J();X();Y();var ml=Ln(),yl=gl(),Wf=yl(ml("String.prototype.indexOf"));Dl.exports=function(t,i){var n=ml(t,!!i);return typeof n=="function"&&Wf(t,".prototype.")>-1?yl(n):n}});var El=je((GD,bl)=>{"use strict";J();X();Y();var Gf=Tn();bl.exports=function(){return Gf()&&!!Symbol.toStringTag}});var Cl=je((KD,kl)=>{"use strict";J();X();Y();var jn=vl(),xl=El()(),wl,Fl,Un,$n;xl&&(wl=jn("Object.prototype.hasOwnProperty"),Fl=jn("RegExp.prototype.exec"),Un={},Ui=function(){throw Un},$n={toString:Ui,valueOf:Ui},typeof Symbol.toPrimitive=="symbol"&&($n[Symbol.toPrimitive]=Ui));var Ui,zf=jn("Object.prototype.toString"),Hf=Object.getOwnPropertyDescriptor,Qf="[object RegExp]";kl.exports=xl?function(t){if(!t||typeof t!="object")return!1;var i=Hf(t,"lastIndex"),n=i&&wl(i,"value");if(!n)return!1;try{Fl(t,$n)}catch(s){return s===Un}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:zf(t)===Qf}});var Pl=je((Ke,Il)=>{"use strict";J();X();Y();var Kf=Cl();Ke=Il.exports=Al;var Oe=Ke.TOKEN_TYPES={LINE_COMMENT:"//",BLOCK_COMMENT:"/**/",SINGLE_QUOTE:"'",DOUBLE_QUOTE:'"',TEMPLATE_QUOTE:"`",REGEXP:"//g"},Mn=Ke.BRACKETS={"(":")","{":"}","[":"]"},Jf={")":"(","}":"{","]":"["};Ke.parse=Al;function Al(e,t,i){i=i||{},t=t||Ke.defaultState();for(var n=i.start||0,s=i.end||e.length,o=n;o<s;){try{Vn(e[o],t)}catch(u){throw u.index=o,u}o++}return t}Ke.parseUntil=Yf;function Yf(e,t,i){i=i||{};for(var n=i.start||0,s=n,o=Ke.defaultState();s<e.length;){if((i.ignoreNesting||!o.isNesting(i))&&Xf(e,t,s)){var u=s;return{start:n,end:u,src:e.substring(n,u)}}try{Vn(e[s],o)}catch(m){throw m.index=s,m}s++}var p=new Error("The end of the string was reached with no closing bracket found.");throw p.code="CHARACTER_PARSER:END_OF_STRING_REACHED",p.index=s,p}Ke.parseChar=Vn;function Vn(e,t){if(e.length!==1){var i=new Error("Character must be a string of length 1");throw i.name="InvalidArgumentError",i.code="CHARACTER_PARSER:CHAR_LENGTH_NOT_ONE",i}t=t||Ke.defaultState(),t.src+=e;var n=t.isComment(),s=t.history?t.history[0]:"";switch(t.regexpStart&&((e==="/"||e=="*")&&t.stack.pop(),t.regexpStart=!1),t.current()){case Oe.LINE_COMMENT:e===`
|
|
67
|
+
`&&t.stack.pop();break;case Oe.BLOCK_COMMENT:t.lastChar==="*"&&e==="/"&&t.stack.pop();break;case Oe.SINGLE_QUOTE:e==="'"&&!t.escaped?t.stack.pop():e==="\\"&&!t.escaped?t.escaped=!0:t.escaped=!1;break;case Oe.DOUBLE_QUOTE:e==='"'&&!t.escaped?t.stack.pop():e==="\\"&&!t.escaped?t.escaped=!0:t.escaped=!1;break;case Oe.TEMPLATE_QUOTE:e==="`"&&!t.escaped?(t.stack.pop(),t.hasDollar=!1):e==="\\"&&!t.escaped?(t.escaped=!0,t.hasDollar=!1):e==="$"&&!t.escaped?t.hasDollar=!0:e==="{"&&t.hasDollar?t.stack.push(Mn[e]):(t.escaped=!1,t.hasDollar=!1);break;case Oe.REGEXP:e==="/"&&!t.escaped?t.stack.pop():e==="\\"&&!t.escaped?t.escaped=!0:t.escaped=!1;break;default:if(e in Mn)t.stack.push(Mn[e]);else if(e in Jf){if(t.current()!==e){var i=new SyntaxError("Mismatched Bracket: "+e);throw i.code="CHARACTER_PARSER:MISMATCHED_BRACKET",i}t.stack.pop()}else s==="/"&&e==="/"?(t.history=t.history.substr(1),t.stack.push(Oe.LINE_COMMENT)):s==="/"&&e==="*"?(t.history=t.history.substr(1),t.stack.push(Oe.BLOCK_COMMENT)):e==="/"&&Zf(t.history)?(t.stack.push(Oe.REGEXP),t.regexpStart=!0):e==="'"?t.stack.push(Oe.SINGLE_QUOTE):e==='"'?t.stack.push(Oe.DOUBLE_QUOTE):e==="`"&&t.stack.push(Oe.TEMPLATE_QUOTE);break}return!t.isComment()&&!n&&(t.history=e+t.history),t.lastChar=e,t}Ke.defaultState=function(){return new Vr};function Vr(){this.stack=[],this.regexpStart=!1,this.escaped=!1,this.hasDollar=!1,this.src="",this.history="",this.lastChar=""}Vr.prototype.current=function(){return this.stack[this.stack.length-1]};Vr.prototype.isString=function(){return this.current()===Oe.SINGLE_QUOTE||this.current()===Oe.DOUBLE_QUOTE||this.current()===Oe.TEMPLATE_QUOTE};Vr.prototype.isComment=function(){return this.current()===Oe.LINE_COMMENT||this.current()===Oe.BLOCK_COMMENT};Vr.prototype.isNesting=function(e){return e&&e.ignoreLineComment&&this.stack.length===1&&this.stack[0]===Oe.LINE_COMMENT?!1:!!this.stack.length};function Xf(e,t,i){return Kf(t)?t.test(e.substr(i||0)):e.substr(i||0,t.length)===t}Ke.isPunctuator=Sl;function Sl(e){if(!e)return!0;var t=e.charCodeAt(0);switch(t){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:case 37:case 38:case 42:case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 33:case 61:return!0;default:return!1}}Ke.isKeyword=_l;function _l(e){return e==="if"||e==="in"||e==="do"||e==="var"||e==="for"||e==="new"||e==="try"||e==="let"||e==="this"||e==="else"||e==="case"||e==="void"||e==="with"||e==="enum"||e==="while"||e==="break"||e==="catch"||e==="throw"||e==="const"||e==="yield"||e==="class"||e==="super"||e==="return"||e==="typeof"||e==="delete"||e==="switch"||e==="export"||e==="import"||e==="default"||e==="finally"||e==="extends"||e==="function"||e==="continue"||e==="debugger"||e==="package"||e==="private"||e==="interface"||e==="instanceof"||e==="implements"||e==="protected"||e==="public"||e==="static"}function Zf(e){return e=e.replace(/^\s*/,""),e[0]===")"?!1:!!(e[0]==="}"||Sl(e[0])||/^\w+\b/.test(e)&&_l(/^\w+\b/.exec(e)[0].split("").reverse().join("")))}});var Bl=je((Wn,Gn)=>{"use strict";J();X();Y();Object.defineProperty(Wn,"__esModule",{value:!0});function qn(e,t,i){var n=i.line,s=i.column,o=i.filename,u=i.src,p,m=n+(s?":"+s:"");if(u&&n>=1&&n<=u.split(`
|
|
68
68
|
`).length){var D=u.split(`
|
|
69
69
|
`),y=Math.max(n-3,0),F=Math.min(D.length,n+3),E=D.slice(y,F).map(function(v,k){var I=k+y+1,P=(I==n?" > ":" ")+I+"| ",L=P+v;return I===n&&s>0&&(L+=`
|
|
70
70
|
`,L+=Array(P.length+s).join("-")+"^"),L}).join(`
|
|
@@ -73,8 +73,8 @@ should equal
|
|
|
73
73
|
|
|
74
74
|
`+t}else p=(o||"Pug")+":"+m+`
|
|
75
75
|
|
|
76
|
-
`+t;var x=new Error(p);return x.code="PUG:"+e,x.msg=t,x.line=n,x.column=s,x.filename=o,x.src=u,x.toJSON=function(){return{code:this.code,msg:this.msg,line:this.line,column:this.column,filename:this.filename}},x}
|
|
77
|
-
`),this.originalInput=this.input,this.filename=t.filename,this.interpolated=t.interpolated||!1,this.lineno=t.startingLine||1,this.colno=t.startingColumn||1,this.plugins=t.plugins||[],this.indentStack=[0],this.indentRe=null,this.interpolationAllowed=!0,this.whitespaceRe=/[ \n\t]/,this.tokens=[],this.ended=!1}$i.prototype={constructor:$i,error:function(e,t){var i=
|
|
76
|
+
`+t;var x=new Error(p);return x.code="PUG:"+e,x.msg=t,x.line=n,x.column=s,x.filename=o,x.src=u,x.toJSON=function(){return{code:this.code,msg:this.msg,line:this.line,column:this.column,filename:this.filename}},x}Wn.default=qn;Gn.exports=qn;Gn.exports.default=qn});var Tl=je((s1,zn)=>{"use strict";J();X();Y();var ed=(Ru(),Ms(Lu)),td=Gu(),pt=Pl(),rd=Bl();zn.exports=id;zn.exports.Lexer=$i;function id(e,t){var i=new $i(e,t);return JSON.parse(JSON.stringify(i.getTokens()))}function $i(e,t){if(t=t||{},typeof e!="string")throw new Error('Expected source code to be a string but got "'+typeof e+'"');if(typeof t!="object")throw new Error('Expected "options" to be an object but got "'+typeof t+'"');e=e.replace(/^\uFEFF/,""),this.input=e.replace(/\r\n|\r/g,`
|
|
77
|
+
`),this.originalInput=this.input,this.filename=t.filename,this.interpolated=t.interpolated||!1,this.lineno=t.startingLine||1,this.colno=t.startingColumn||1,this.plugins=t.plugins||[],this.indentStack=[0],this.indentRe=null,this.interpolationAllowed=!0,this.whitespaceRe=/[ \n\t]/,this.tokens=[],this.ended=!1}$i.prototype={constructor:$i,error:function(e,t){var i=rd(e,t,{line:this.lineno,column:this.colno,filename:this.filename,src:this.originalInput});throw i},assert:function(e,t){e||this.error("ASSERT_FAILED",t)},isExpression:function(e){return td(e,{throw:!0})},assertExpression:function(e,t){try{return this.callLexerFunction("isExpression",e),!0}catch(n){if(t)return!1;if(!n.loc)throw n;this.incrementLine(n.loc.line-1),this.incrementColumn(n.loc.column);var i="Syntax Error: "+n.message.replace(/ \([0-9]+:[0-9]+\)$/,"");this.error("SYNTAX_ERROR",i)}},assertNestingCorrect:function(e){var t=pt(e);t.isNesting()&&this.error("INCORRECT_NESTING","Nesting must match on expression `"+e+"`")},tok:function(e,t){var i={type:e,loc:{start:{line:this.lineno,column:this.colno},filename:this.filename}};return t!==void 0&&(i.val=t),i},tokEnd:function(e){return e.loc.end={line:this.lineno,column:this.colno},e},incrementLine:function(e){this.lineno+=e,e&&(this.colno=1)},incrementColumn:function(e){this.colno+=e},consume:function(e){this.input=this.input.substr(e)},scan:function(e,t){var i;if(i=e.exec(this.input)){var n=i[0].length,s=i[1],o=n-(s?s.length:0),u=this.tok(t,s);return this.consume(n),this.incrementColumn(o),u}},scanEndOfLine:function(e,t){var i;if(i=e.exec(this.input)){var n=0,s,o;(s=/^([ ]+)([^ ]*)/.exec(i[0]))&&(n=s[1].length,this.incrementColumn(n));var u=this.input.substr(i[0].length);if(u[0]===":")return this.input=u,o=this.tok(t,i[1]),this.incrementColumn(i[0].length-n),o;if(/^[ \t]*(\n|$)/.test(u))return this.input=u.substr(/^[ \t]*/.exec(u)[0].length),o=this.tok(t,i[1]),this.incrementColumn(i[0].length-n),o}},bracketExpression:function(e){e=e||0;var t=this.input[e];ed(t==="("||t==="{"||t==="[",'The start character should be "(", "{" or "["');var i=pt.BRACKETS[t],n;try{n=pt.parseUntil(this.input,i,{start:e+1})}catch(m){if(m.index!==void 0){for(var s=m.index,o=this.input.substr(e).indexOf(`
|
|
78
78
|
`),u=o+e,p=0;s>u&&o!==-1;)this.incrementLine(1),s-=u+1,p+=u+1,o=u=this.input.substr(p).indexOf(`
|
|
79
79
|
`);this.incrementColumn(s)}throw m.code==="CHARACTER_PARSER:END_OF_STRING_REACHED"?this.error("NO_END_BRACKET","The end of the string reached with no closing bracket "+i+" found."):m.code==="CHARACTER_PARSER:MISMATCHED_BRACKET"&&this.error("BRACKET_MISMATCH",m.message),m}return n},scanIndentation:function(){var e,t;return this.indentRe?e=this.indentRe.exec(this.input):(t=/^\n(\t*) */,e=t.exec(this.input),e&&!e[1].length&&(t=/^\n( *)/,e=t.exec(this.input)),e&&e[1].length&&(this.indentRe=t)),e},eos:function(){if(!this.input.length){this.interpolated&&this.error("NO_END_BRACKET","End of line was reached with no closing bracket for interpolation.");for(var e=0;this.indentStack[e];e++)this.tokens.push(this.tokEnd(this.tok("outdent")));return this.tokens.push(this.tokEnd(this.tok("eos"))),this.ended=!0,!0}},blank:function(){var e;if(e=/^\n[ \t]*\n/.exec(this.input))return this.consume(e[0].length-1),this.incrementLine(1),!0},comment:function(){var e;if(e=/^\/\/(-)?([^\n]*)/.exec(this.input)){this.consume(e[0].length);var t=this.tok("comment",e[2]);return t.buffer=e[1]!="-",this.interpolationAllowed=t.buffer,this.tokens.push(t),this.incrementColumn(e[0].length),this.tokEnd(t),this.callLexerFunction("pipelessText"),!0}},interpolation:function(){if(/^#\{/.test(this.input)){var e=this.bracketExpression(1);this.consume(e.end+1);var t=this.tok("interpolation",e.src);this.tokens.push(t),this.incrementColumn(2),this.assertExpression(e.src);var i=e.src.split(`
|
|
80
80
|
`),n=i.length-1;return this.incrementLine(n),this.incrementColumn(i[n].length+1),this.tokEnd(t),!0}},tag:function(){var e;if(e=/^(\w(?:[-:\w]*\w)?)/.exec(this.input)){var t,i=e[1],n=e[0].length;return this.consume(n),t=this.tok("tag",i),this.tokens.push(t),this.incrementColumn(n),this.tokEnd(t),!0}},filter:function(e){var t=this.scan(/^:([\w\-]+)/,"filter"),i=e&&e.inInclude;if(t)return this.tokens.push(t),this.incrementColumn(t.val.length),this.tokEnd(t),this.callLexerFunction("attrs"),i||(this.interpolationAllowed=!1,this.callLexerFunction("pipelessText")),!0},doctype:function(){var e=this.scanEndOfLine(/^doctype *([^\n]*)/,"doctype");if(e)return this.tokens.push(this.tokEnd(e)),!0},id:function(){var e=this.scan(/^#([\w-]+)/,"id");if(e)return this.tokens.push(e),this.incrementColumn(e.val.length),this.tokEnd(e),!0;/^#/.test(this.input)&&this.error("INVALID_ID",'"'+/.[^ \t\(\#\.\:]*/.exec(this.input.substr(1))[0]+'" is not a valid ID.')},className:function(){var e=this.scan(/^\.([_a-z0-9\-]*[_a-z][_a-z0-9\-]*)/i,"class");if(e)return this.tokens.push(e),this.incrementColumn(e.val.length),this.tokEnd(e),!0;/^\.[_a-z0-9\-]+/i.test(this.input)&&this.error("INVALID_CLASS_NAME","Class names must contain at least one letter or underscore."),/^\./.test(this.input)&&this.error("INVALID_CLASS_NAME",'"'+/.[^ \t\(\#\.\:]*/.exec(this.input.substr(1))[0]+'" is not a valid class name. Class names can only contain "_", "-", a-z and 0-9, and must contain at least one of "_", or a-z')},endInterpolation:function(){if(this.interpolated&&this.input[0]==="]")return this.input=this.input.substr(1),this.ended=!0,!0},addText:function(e,t,i,n){var s;if(t+i!==""){i=i||"",n=n||0;var o=this.interpolated?t.indexOf("]"):-1,u=this.interpolationAllowed?t.indexOf("#["):-1,p=this.interpolationAllowed?t.indexOf("\\#["):-1,m=/(\\)?([#!]){((?:.|\n)*)$/.exec(t),D=this.interpolationAllowed&&m?m.index:1/0;if(o===-1&&(o=1/0),u===-1&&(u=1/0),p===-1&&(p=1/0),p!==1/0&&p<o&&p<u&&p<D)return i=i+t.substring(0,p)+"#[",this.addText(e,t.substring(p+3),i,n+1);if(u!==1/0&&u<o&&u<p&&u<D){s=this.tok(e,i+t.substring(0,u)),this.incrementColumn(i.length+u+n),this.tokens.push(this.tokEnd(s)),s=this.tok("start-pug-interpolation"),this.incrementColumn(2),this.tokens.push(this.tokEnd(s));var y=new this.constructor(t.substr(u+2),{filename:this.filename,interpolated:!0,startingLine:this.lineno,startingColumn:this.colno,plugins:this.plugins}),F;try{F=y.getTokens()}catch(k){throw k.code&&/^PUG:/.test(k.code)&&(this.colno=k.column,this.error(k.code.substr(4),k.msg)),k}this.colno=y.colno,this.tokens=this.tokens.concat(F),s=this.tok("end-pug-interpolation"),this.incrementColumn(1),this.tokens.push(this.tokEnd(s)),this.addText(e,y.input);return}if(o!==1/0&&o<u&&o<p&&o<D){i+t.substring(0,o)&&this.addText(e,t.substring(0,o),i),this.ended=!0,this.input=t.substr(t.indexOf("]")+1)+this.input;return}if(D!==1/0){if(m[1])return i=i+t.substring(0,D)+m[2]+"{",this.addText(e,t.substring(D+3),i,n+1);var E=t.substr(0,D);(i||E)&&(E=i+E,s=this.tok(e,E),this.incrementColumn(E.length+n),this.tokens.push(this.tokEnd(s)));var x=m[3],v;s=this.tok("interpolated-code"),this.incrementColumn(2);try{v=pt.parseUntil(x,"}")}catch(k){if(k.index!==void 0&&this.incrementColumn(k.index),k.code==="CHARACTER_PARSER:END_OF_STRING_REACHED")this.error("NO_END_BRACKET","End of line was reached with no closing bracket for interpolation.");else if(k.code==="CHARACTER_PARSER:MISMATCHED_BRACKET")this.error("BRACKET_MISMATCH",k.message);else throw k}s.mustEscape=m[2]==="#",s.buffer=!0,s.val=v.src,this.assertExpression(v.src),v.end+1<x.length?(x=x.substr(v.end+1),this.incrementColumn(v.end+1),this.tokens.push(this.tokEnd(s)),this.addText(e,x)):(this.incrementColumn(x.length),this.tokens.push(this.tokEnd(s)));return}t=i+t,s=this.tok(e,t),this.incrementColumn(t.length+n),this.tokens.push(this.tokEnd(s))}},text:function(){var e=this.scan(/^(?:\| ?| )([^\n]+)/,"text")||this.scan(/^( )/,"text")||this.scan(/^\|( ?)/,"text");if(e)return this.addText("text",e.val),!0},textHtml:function(){var e=this.scan(/^(<[^\n]*)/,"text-html");if(e)return this.addText("text-html",e.val),!0},dot:function(){var e;if(e=this.scanEndOfLine(/^\./,"dot"))return this.tokens.push(this.tokEnd(e)),this.callLexerFunction("pipelessText"),!0},extends:function(){var e=this.scan(/^extends?(?= |$|\n)/,"extends");if(e)return this.tokens.push(this.tokEnd(e)),this.callLexerFunction("path")||this.error("NO_EXTENDS_PATH","missing path for extends"),!0;this.scan(/^extends?\b/)&&this.error("MALFORMED_EXTENDS","malformed extends")},prepend:function(){var e;if(e=/^(?:block +)?prepend +([^\n]+)/.exec(this.input)){var t=e[1].trim(),i="";if(t.indexOf("//")!==-1&&(i="//"+t.split("//").slice(1).join("//"),t=t.split("//")[0].trim()),!t)return;for(var n=this.tok("block",t),s=e[0].length-i.length;this.whitespaceRe.test(this.input.charAt(s-1));)s--;return this.incrementColumn(s),n.mode="prepend",this.tokens.push(this.tokEnd(n)),this.consume(e[0].length-i.length),this.incrementColumn(e[0].length-i.length-s),!0}},append:function(){var e;if(e=/^(?:block +)?append +([^\n]+)/.exec(this.input)){var t=e[1].trim(),i="";if(t.indexOf("//")!==-1&&(i="//"+t.split("//").slice(1).join("//"),t=t.split("//")[0].trim()),!t)return;for(var n=this.tok("block",t),s=e[0].length-i.length;this.whitespaceRe.test(this.input.charAt(s-1));)s--;return this.incrementColumn(s),n.mode="append",this.tokens.push(this.tokEnd(n)),this.consume(e[0].length-i.length),this.incrementColumn(e[0].length-i.length-s),!0}},block:function(){var e;if(e=/^block +([^\n]+)/.exec(this.input)){var t=e[1].trim(),i="";if(t.indexOf("//")!==-1&&(i="//"+t.split("//").slice(1).join("//"),t=t.split("//")[0].trim()),!t)return;for(var n=this.tok("block",t),s=e[0].length-i.length;this.whitespaceRe.test(this.input.charAt(s-1));)s--;return this.incrementColumn(s),n.mode="replace",this.tokens.push(this.tokEnd(n)),this.consume(e[0].length-i.length),this.incrementColumn(e[0].length-i.length-s),!0}},mixinBlock:function(){var e;if(e=this.scanEndOfLine(/^block/,"mixin-block"))return this.tokens.push(this.tokEnd(e)),!0},yield:function(){var e=this.scanEndOfLine(/^yield/,"yield");if(e)return this.tokens.push(this.tokEnd(e)),!0},include:function(){var e=this.scan(/^include(?=:| |$|\n)/,"include");if(e){for(this.tokens.push(this.tokEnd(e));this.callLexerFunction("filter",{inInclude:!0}););return this.callLexerFunction("path")||(/^[^ \n]+/.test(this.input)?this.fail():this.error("NO_INCLUDE_PATH","missing path for include")),!0}this.scan(/^include\b/)&&this.error("MALFORMED_INCLUDE","malformed include")},path:function(){var e=this.scanEndOfLine(/^ ([^\n]+)/,"path");if(e&&(e.val=e.val.trim()))return this.tokens.push(this.tokEnd(e)),!0},case:function(){var e=this.scanEndOfLine(/^case +([^\n]+)/,"case");if(e)return this.incrementColumn(-e.val.length),this.assertExpression(e.val),this.incrementColumn(e.val.length),this.tokens.push(this.tokEnd(e)),!0;this.scan(/^case\b/)&&this.error("NO_CASE_EXPRESSION","missing expression for case")},when:function(){var e=this.scanEndOfLine(/^when +([^:\n]+)/,"when");if(e){for(var t=pt(e.val);t.isNesting()||t.isString();){var i=/:([^:\n]+)/.exec(this.input);if(!i)break;e.val+=i[0],this.consume(i[0].length),this.incrementColumn(i[0].length),t=pt(e.val)}return this.incrementColumn(-e.val.length),this.assertExpression(e.val),this.incrementColumn(e.val.length),this.tokens.push(this.tokEnd(e)),!0}this.scan(/^when\b/)&&this.error("NO_WHEN_EXPRESSION","missing expression for when")},default:function(){var e=this.scanEndOfLine(/^default/,"default");if(e)return this.tokens.push(this.tokEnd(e)),!0;this.scan(/^default\b/)&&this.error("DEFAULT_WITH_EXPRESSION","default should not have an expression")},call:function(){var e,t,i;if(t=/^\+(\s*)(([-\w]+)|(#\{))/.exec(this.input)){if(t[3])i=t[0].length,this.consume(i),e=this.tok("call",t[3]);else{var n=this.bracketExpression(2+t[1].length);i=n.end+1,this.consume(i),this.assertExpression(n.src),e=this.tok("call","#{"+n.src+"}")}if(this.incrementColumn(i),e.args=null,t=/^ *\(/.exec(this.input)){var s=this.bracketExpression(t[0].length-1);if(!/^\s*[-\w]+ *=/.test(s.src)){this.incrementColumn(1),this.consume(s.end+1),e.args=s.src,this.assertExpression("["+e.args+"]");for(var o=0;o<=e.args.length;o++)e.args[o]===`
|
|
@@ -87,40 +87,40 @@ should equal
|
|
|
87
87
|
`?(D++,m=1):m++}return this.assertExpression(i),this.lineno=D,this.colno=m,{val:i,mustEscape:u,remainingSource:e.substr(s)}},attrs:function(){var e;if(this.input.charAt(0)=="("){e=this.tok("start-attributes");var t=this.bracketExpression().end,i=this.input.substr(1,t-1);for(this.incrementColumn(1),this.tokens.push(this.tokEnd(e)),this.assertNestingCorrect(i),this.consume(t+1);i;)i=this.attribute(i);return e=this.tok("end-attributes"),this.incrementColumn(1),this.tokens.push(this.tokEnd(e)),!0}},attributesBlock:function(){if(/^&attributes\b/.test(this.input)){var e=11;this.consume(e);var t=this.tok("&attributes");this.incrementColumn(e);var i=this.bracketExpression();return e=i.end+1,this.consume(e),t.val=i.src,this.incrementColumn(e),this.tokens.push(this.tokEnd(t)),!0}},indent:function(){var e=this.scanIndentation(),t;if(e){var i=e[1].length;if(this.incrementLine(1),this.consume(i+1),(this.input[0]==" "||this.input[0]==" ")&&this.error("INVALID_INDENTATION","Invalid indentation, you can use tabs or spaces but not both"),this.input[0]==`
|
|
88
88
|
`)return this.interpolationAllowed=!0,this.tokEnd(this.tok("newline"));if(i<this.indentStack[0]){for(var n=0;this.indentStack[0]>i;)this.indentStack[1]<i&&this.error("INCONSISTENT_INDENTATION","Inconsistent indentation. Expecting either "+this.indentStack[1]+" or "+this.indentStack[0]+" spaces/tabs."),n++,this.indentStack.shift();for(;n--;)this.colno=1,t=this.tok("outdent"),this.colno=this.indentStack[0]+1,this.tokens.push(this.tokEnd(t))}else i&&i!=this.indentStack[0]?(t=this.tok("indent",i),this.colno=1+i,this.tokens.push(this.tokEnd(t)),this.indentStack.unshift(i)):(t=this.tok("newline"),this.colno=1+Math.min(this.indentStack[0]||0,i),this.tokens.push(this.tokEnd(t)));return this.interpolationAllowed=!0,!0}},pipelessText:function e(t){for(;this.callLexerFunction("blank"););var i=this.scanIndentation();if(t=t||i&&i[1].length,t>this.indentStack[0]){this.tokens.push(this.tokEnd(this.tok("start-pipeless-text")));var n=[],s=[],o,u=0;do{var p=this.input.substr(u+1).indexOf(`
|
|
89
89
|
`);p==-1&&(p=this.input.length-u-1);var m=this.input.substr(u+1,p),D=this.indentRe.exec(`
|
|
90
|
-
`+m),y=D&&D[1].length;if(o=y>=t,s.push(o),o=o||!m.trim(),o)u+=m.length+1,n.push(m.substr(t));else if(y>this.indentStack[0])return this.tokens.pop(),e.call(this,D[1].length)}while(this.input.length-u&&o);for(this.consume(u);this.input.length===0&&n[n.length-1]==="";)n.pop();return n.forEach(function(F,E){var x;this.incrementLine(1),E!==0&&(x=this.tok("newline")),s[E]&&this.incrementColumn(t),x&&this.tokens.push(this.tokEnd(x)),this.addText("text",F)}.bind(this)),this.tokens.push(this.tokEnd(this.tok("end-pipeless-text"))),!0}},slash:function(){var e=this.scan(/^\//,"slash");if(e)return this.tokens.push(this.tokEnd(e)),!0},colon:function(){var e=this.scan(/^: +/,":");if(e)return this.tokens.push(this.tokEnd(e)),!0},fail:function(){this.error("UNEXPECTED_TEXT",'unexpected text "'+this.input.substr(0,5)+'"')},callLexerFunction:function(e){for(var t=[],i=1;i<arguments.length;i++)t.push(arguments[i]);for(var n=[this].concat(t),i=0;i<this.plugins.length;i++){var s=this.plugins[i];if(s[e]&&s[e].apply(s,n))return!0}return this[e].apply(this,t)},advance:function(){return this.callLexerFunction("blank")||this.callLexerFunction("eos")||this.callLexerFunction("endInterpolation")||this.callLexerFunction("yield")||this.callLexerFunction("doctype")||this.callLexerFunction("interpolation")||this.callLexerFunction("case")||this.callLexerFunction("when")||this.callLexerFunction("default")||this.callLexerFunction("extends")||this.callLexerFunction("append")||this.callLexerFunction("prepend")||this.callLexerFunction("block")||this.callLexerFunction("mixinBlock")||this.callLexerFunction("include")||this.callLexerFunction("mixin")||this.callLexerFunction("call")||this.callLexerFunction("conditional")||this.callLexerFunction("eachOf")||this.callLexerFunction("each")||this.callLexerFunction("while")||this.callLexerFunction("tag")||this.callLexerFunction("filter")||this.callLexerFunction("blockCode")||this.callLexerFunction("code")||this.callLexerFunction("id")||this.callLexerFunction("dot")||this.callLexerFunction("className")||this.callLexerFunction("attrs")||this.callLexerFunction("attributesBlock")||this.callLexerFunction("indent")||this.callLexerFunction("text")||this.callLexerFunction("textHtml")||this.callLexerFunction("comment")||this.callLexerFunction("slash")||this.callLexerFunction("colon")||this.fail()},getTokens:function(){for(;!this.ended;)this.callLexerFunction("advance");return this.tokens}}});var vy={};rn(vy,{LogLevel:()=>tp,Logger:()=>Fs,createLogger:()=>rp,defaultOptions:()=>Dy,languages:()=>dy,logger:()=>ae,options:()=>yy,parsers:()=>gy,plugin:()=>Sr,printers:()=>my});J();X();Y();var ep=wp(Tl(),1);J();X();Y();J();X();Y();Nr();Ir();N._extend;N.callbackify;N.debuglog;N.deprecate;N.format;N.inherits;N.inspect;N.isArray;N.isBoolean;N.isBuffer;N.isDate;N.isError;N.isFunction;N.isNull;N.isNullOrUndefined;N.isNumber;N.isObject;N.isPrimitive;N.isRegExp;N.isString;N.isSymbol;N.isUndefined;N.log;N.promisify;var u1=N._extend,l1=N.callbackify,c1=N.debuglog,p1=N.deprecate,h1=N.format,f1=N.inherits,d1=N.inspect,g1=N.isArray,m1=N.isBoolean,y1=N.isBuffer,D1=N.isDate,v1=N.isError,b1=N.isFunction,E1=N.isNull,x1=N.isNullOrUndefined,w1=N.isNumber,F1=N.isObject,k1=N.isPrimitive,C1=N.isRegExp,A1=N.isString,S1=N.isSymbol,_1=N.isUndefined,I1=N.log,P1=N.promisify,B1=N.types,T1=self.TextEncoder,O1=self.TextDecoder;Nr();Nr();Ir();var V1=N._extend,q1=N.callbackify,W1=N.debuglog,G1=N.deprecate,z1=N.format,H1=N.inherits,Q1=N.inspect,K1=N.isArray,J1=N.isBoolean,Y1=N.isBuffer,X1=N.isDate,Z1=N.isError,ev=N.isFunction,tv=N.isNull,rv=N.isNullOrUndefined,iv=N.isNumber,nv=N.isObject,sv=N.isPrimitive,av=N.isRegExp,ov=N.isString,uv=N.isSymbol,lv=N.isUndefined,cv=N.log,pv=N.promisify,Ol=N.types,hv=N.TextEncoder=globalThis.TextEncoder,fv=N.TextDecoder=globalThis.TextDecoder;J();X();Y();var td=Object.create,Gi=Object.defineProperty,rd=Object.getOwnPropertyDescriptor,id=Object.getOwnPropertyNames,nd=Object.getPrototypeOf,sd=Object.prototype.hasOwnProperty,ac=e=>{throw TypeError(e)},ad=(e,t)=>()=>(e&&(t=e(e=0)),t),zr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),zi=(e,t)=>{for(var i in t)Gi(e,i,{get:t[i],enumerable:!0})},oc=(e,t,i,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of id(t))!sd.call(e,s)&&s!==i&&Gi(e,s,{get:()=>t[s],enumerable:!(n=rd(t,s))||n.enumerable});return e},Hr=(e,t,i)=>(i=e!=null?td(nd(e)):{},oc(t||!e||!e.__esModule?Gi(i,"default",{value:e,enumerable:!0}):i,e)),od=e=>oc(Gi({},"__esModule",{value:!0}),e),ud=(e,t,i)=>t.has(e)||ac("Cannot "+i),ld=(e,t,i)=>t.has(e)?ac("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),qr=(e,t,i)=>(ud(e,t,"access private method"),i),cd=zr(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){}t.prototype={diff:function(n,s){var o,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=u.callback;typeof u=="function"&&(p=u,u={}),this.options=u;var m=this;function D(te){return p?(setTimeout(function(){p(void 0,te)},0),!0):te}n=this.castInput(n),s=this.castInput(s),n=this.removeEmpty(this.tokenize(n)),s=this.removeEmpty(this.tokenize(s));var y=s.length,F=n.length,E=1,x=y+F;u.maxEditLength&&(x=Math.min(x,u.maxEditLength));var v=(o=u.timeout)!==null&&o!==void 0?o:1/0,k=Date.now()+v,I=[{oldPos:-1,lastComponent:void 0}],P=this.extractCommon(I[0],s,n,0);if(I[0].oldPos+1>=F&&P+1>=y)return D([{value:this.join(s),count:s.length}]);var L=-1/0,O=1/0;function f(){for(var te=Math.max(L,-E);te<=Math.min(O,E);te+=2){var $=void 0,M=I[te-1],G=I[te+1];M&&(I[te-1]=void 0);var ne=!1;if(G){var Z=G.oldPos-te;ne=G&&0<=Z&&Z<y}var re=M&&M.oldPos+1<F;if(!ne&&!re){I[te]=void 0;continue}if(!re||ne&&M.oldPos+1<G.oldPos?$=m.addToPath(G,!0,void 0,0):$=m.addToPath(M,void 0,!0,1),P=m.extractCommon($,s,n,te),$.oldPos+1>=F&&P+1>=y)return D(i(m,$.lastComponent,s,n,m.useLongestToken));I[te]=$,$.oldPos+1>=F&&(O=Math.min(O,te-1)),P+1>=y&&(L=Math.max(L,te+1))}E++}if(p)(function te(){setTimeout(function(){if(E>x||Date.now()>k)return p();f()||te()},0)})();else for(;E<=x&&Date.now()<=k;){var V=f();if(V)return V}},addToPath:function(n,s,o,u){var p=n.lastComponent;return p&&p.added===s&&p.removed===o?{oldPos:n.oldPos+u,lastComponent:{count:p.count+1,added:s,removed:o,previousComponent:p.previousComponent}}:{oldPos:n.oldPos+u,lastComponent:{count:1,added:s,removed:o,previousComponent:p}}},extractCommon:function(n,s,o,u){for(var p=s.length,m=o.length,D=n.oldPos,y=D-u,F=0;y+1<p&&D+1<m&&this.equals(s[y+1],o[D+1]);)y++,D++,F++;return F&&(n.lastComponent={count:F,previousComponent:n.lastComponent}),n.oldPos=D,y},equals:function(n,s){return this.options.comparator?this.options.comparator(n,s):n===s||this.options.ignoreCase&&n.toLowerCase()===s.toLowerCase()},removeEmpty:function(n){for(var s=[],o=0;o<n.length;o++)n[o]&&s.push(n[o]);return s},castInput:function(n){return n},tokenize:function(n){return n.split("")},join:function(n){return n.join("")}};function i(n,s,o,u,p){for(var m=[],D;s;)m.push(s),D=s.previousComponent,delete s.previousComponent,s=D;m.reverse();for(var y=0,F=m.length,E=0,x=0;y<F;y++){var v=m[y];if(v.removed){if(v.value=n.join(u.slice(x,x+v.count)),x+=v.count,y&&m[y-1].added){var k=m[y-1];m[y-1]=m[y],m[y]=k}}else{if(!v.added&&p){var I=o.slice(E,E+v.count);I=I.map(function(L,O){var f=u[x+O];return f.length>L.length?f:L}),v.value=n.join(I)}else v.value=n.join(o.slice(E,E+v.count));E+=v.count,v.added||(x+=v.count)}}var P=m[F-1];return F>1&&typeof P.value=="string"&&(P.added||P.removed)&&n.equals("",P.value)&&(m[F-2].value+=P.value,m.pop()),m}}),pd=zr(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.diffArrays=s,e.arrayDiff=void 0;var t=i(cd());function i(o){return o&&o.__esModule?o:{default:o}}var n=new t.default;e.arrayDiff=n,n.tokenize=function(o){return o.slice()},n.join=n.removeEmpty=function(o){return o};function s(o,u,p){return n.diff(o,u,p)}}),us=zr((e,t)=>{"use strict";var i=new Proxy(String,{get:()=>i});t.exports=i}),uc={};zi(uc,{default:()=>cc,shouldHighlight:()=>lc});var lc,cc,hd=ad(()=>{lc=()=>!1,cc=String}),fd=zr((e,t)=>{var i=String,n=function(){return{isColorSupported:!1,reset:i,bold:i,dim:i,italic:i,underline:i,inverse:i,hidden:i,strikethrough:i,black:i,red:i,green:i,yellow:i,blue:i,magenta:i,cyan:i,white:i,gray:i,bgBlack:i,bgRed:i,bgGreen:i,bgYellow:i,bgBlue:i,bgMagenta:i,bgCyan:i,bgWhite:i}};t.exports=n(),t.exports.createColors=n}),dd=zr(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=x,e.default=v;var t=(hd(),od(uc)),i=s(fd(),!0);function n(k){if(typeof WeakMap!="function")return null;var I=new WeakMap,P=new WeakMap;return(n=function(L){return L?P:I})(k)}function s(k,I){if(!I&&k&&k.__esModule)return k;if(k===null||typeof k!="object"&&typeof k!="function")return{default:k};var P=n(I);if(P&&P.has(k))return P.get(k);var L={__proto__:null},O=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in k)if(f!=="default"&&{}.hasOwnProperty.call(k,f)){var V=O?Object.getOwnPropertyDescriptor(k,f):null;V&&(V.get||V.set)?Object.defineProperty(L,f,V):L[f]=k[f]}return L.default=k,P&&P.set(k,L),L}var o=i.default,u=(k,I)=>P=>k(I(P)),p;function m(k){if(k){var I;return(I=p)!=null||(p=(0,i.createColors)(!0)),p}return o}var D=!1;function y(k){return{gutter:k.gray,marker:u(k.red,k.bold),message:u(k.red,k.bold)}}var F=/\r\n|[\n\r\u2028\u2029]/;function E(k,I,P){let L=Object.assign({column:0,line:-1},k.start),O=Object.assign({},L,k.end),{linesAbove:f=2,linesBelow:V=3}=P||{},te=L.line,$=L.column,M=O.line,G=O.column,ne=Math.max(te-(f+1),0),Z=Math.min(I.length,M+V);te===-1&&(ne=0),M===-1&&(Z=I.length);let re=M-te,se={};if(re)for(let ie=0;ie<=re;ie++){let fe=ie+te;if(!$)se[fe]=!0;else if(ie===0){let Q=I[fe-1].length;se[fe]=[$,Q-$+1]}else if(ie===re)se[fe]=[0,G];else{let Q=I[fe-ie].length;se[fe]=[0,Q]}}else $===G?$?se[te]=[$,0]:se[te]=!0:se[te]=[$,G-$];return{start:ne,end:Z,markerLines:se}}function x(k,I,P={}){let L=(P.highlightCode||P.forceColor)&&(0,t.shouldHighlight)(P),O=m(P.forceColor),f=y(O),V=(se,ie)=>L?se(ie):ie,te=k.split(F),{start:$,end:M,markerLines:G}=E(I,te,P),ne=I.start&&typeof I.start.column=="number",Z=String(M).length,re=(L?(0,t.default)(k,P):k).split(F,M).slice($,M).map((se,ie)=>{let fe=$+1+ie,Q=` ${` ${fe}`.slice(-Z)} |`,B=G[fe],S=!G[fe+1];if(B){let j="";if(Array.isArray(B)){let U=se.slice(0,Math.max(B[0]-1,0)).replace(/[^\t]/g," "),q=B[1]||1;j=[`
|
|
90
|
+
`+m),y=D&&D[1].length;if(o=y>=t,s.push(o),o=o||!m.trim(),o)u+=m.length+1,n.push(m.substr(t));else if(y>this.indentStack[0])return this.tokens.pop(),e.call(this,D[1].length)}while(this.input.length-u&&o);for(this.consume(u);this.input.length===0&&n[n.length-1]==="";)n.pop();return n.forEach(function(F,E){var x;this.incrementLine(1),E!==0&&(x=this.tok("newline")),s[E]&&this.incrementColumn(t),x&&this.tokens.push(this.tokEnd(x)),this.addText("text",F)}.bind(this)),this.tokens.push(this.tokEnd(this.tok("end-pipeless-text"))),!0}},slash:function(){var e=this.scan(/^\//,"slash");if(e)return this.tokens.push(this.tokEnd(e)),!0},colon:function(){var e=this.scan(/^: +/,":");if(e)return this.tokens.push(this.tokEnd(e)),!0},fail:function(){this.error("UNEXPECTED_TEXT",'unexpected text "'+this.input.substr(0,5)+'"')},callLexerFunction:function(e){for(var t=[],i=1;i<arguments.length;i++)t.push(arguments[i]);for(var n=[this].concat(t),i=0;i<this.plugins.length;i++){var s=this.plugins[i];if(s[e]&&s[e].apply(s,n))return!0}return this[e].apply(this,t)},advance:function(){return this.callLexerFunction("blank")||this.callLexerFunction("eos")||this.callLexerFunction("endInterpolation")||this.callLexerFunction("yield")||this.callLexerFunction("doctype")||this.callLexerFunction("interpolation")||this.callLexerFunction("case")||this.callLexerFunction("when")||this.callLexerFunction("default")||this.callLexerFunction("extends")||this.callLexerFunction("append")||this.callLexerFunction("prepend")||this.callLexerFunction("block")||this.callLexerFunction("mixinBlock")||this.callLexerFunction("include")||this.callLexerFunction("mixin")||this.callLexerFunction("call")||this.callLexerFunction("conditional")||this.callLexerFunction("eachOf")||this.callLexerFunction("each")||this.callLexerFunction("while")||this.callLexerFunction("tag")||this.callLexerFunction("filter")||this.callLexerFunction("blockCode")||this.callLexerFunction("code")||this.callLexerFunction("id")||this.callLexerFunction("dot")||this.callLexerFunction("className")||this.callLexerFunction("attrs")||this.callLexerFunction("attributesBlock")||this.callLexerFunction("indent")||this.callLexerFunction("text")||this.callLexerFunction("textHtml")||this.callLexerFunction("comment")||this.callLexerFunction("slash")||this.callLexerFunction("colon")||this.fail()},getTokens:function(){for(;!this.ended;)this.callLexerFunction("advance");return this.tokens}}});var xy={};rn(xy,{LogLevel:()=>tp,Logger:()=>ws,createLogger:()=>rp,defaultOptions:()=>Ey,languages:()=>yy,logger:()=>ae,options:()=>by,parsers:()=>Dy,plugin:()=>Sr,printers:()=>vy});J();X();Y();var ep=wp(Tl(),1);J();X();Y();J();X();Y();Nr();Ir();N._extend;N.callbackify;N.debuglog;N.deprecate;N.format;N.inherits;N.inspect;N.isArray;N.isBoolean;N.isBuffer;N.isDate;N.isError;N.isFunction;N.isNull;N.isNullOrUndefined;N.isNumber;N.isObject;N.isPrimitive;N.isRegExp;N.isString;N.isSymbol;N.isUndefined;N.log;N.promisify;var p1=N._extend,h1=N.callbackify,f1=N.debuglog,d1=N.deprecate,g1=N.format,m1=N.inherits,y1=N.inspect,D1=N.isArray,v1=N.isBoolean,b1=N.isBuffer,E1=N.isDate,x1=N.isError,w1=N.isFunction,F1=N.isNull,k1=N.isNullOrUndefined,C1=N.isNumber,A1=N.isObject,S1=N.isPrimitive,_1=N.isRegExp,I1=N.isString,P1=N.isSymbol,B1=N.isUndefined,T1=N.log,O1=N.promisify,N1=N.types,L1=self.TextEncoder,R1=self.TextDecoder;Nr();Nr();Ir();var G1=N._extend,z1=N.callbackify,H1=N.debuglog,Q1=N.deprecate,K1=N.format,J1=N.inherits,Y1=N.inspect,X1=N.isArray,Z1=N.isBoolean,ev=N.isBuffer,tv=N.isDate,rv=N.isError,iv=N.isFunction,nv=N.isNull,sv=N.isNullOrUndefined,av=N.isNumber,ov=N.isObject,uv=N.isPrimitive,lv=N.isRegExp,cv=N.isString,pv=N.isSymbol,hv=N.isUndefined,fv=N.log,dv=N.promisify,Ol=N.types,gv=N.TextEncoder=globalThis.TextEncoder,mv=N.TextDecoder=globalThis.TextDecoder;J();X();Y();var nd=Object.create,Gi=Object.defineProperty,sd=Object.getOwnPropertyDescriptor,ad=Object.getOwnPropertyNames,od=Object.getPrototypeOf,ud=Object.prototype.hasOwnProperty,ac=e=>{throw TypeError(e)},ld=(e,t)=>()=>(e&&(t=e(e=0)),t),zr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),zi=(e,t)=>{for(var i in t)Gi(e,i,{get:t[i],enumerable:!0})},oc=(e,t,i,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ad(t))!ud.call(e,s)&&s!==i&&Gi(e,s,{get:()=>t[s],enumerable:!(n=sd(t,s))||n.enumerable});return e},Hr=(e,t,i)=>(i=e!=null?nd(od(e)):{},oc(t||!e||!e.__esModule?Gi(i,"default",{value:e,enumerable:!0}):i,e)),cd=e=>oc(Gi({},"__esModule",{value:!0}),e),pd=(e,t,i)=>t.has(e)||ac("Cannot "+i),hd=(e,t,i)=>t.has(e)?ac("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),qr=(e,t,i)=>(pd(e,t,"access private method"),i),fd=zr(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){}t.prototype={diff:function(n,s){var o,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=u.callback;typeof u=="function"&&(p=u,u={}),this.options=u;var m=this;function D(te){return p?(setTimeout(function(){p(void 0,te)},0),!0):te}n=this.castInput(n),s=this.castInput(s),n=this.removeEmpty(this.tokenize(n)),s=this.removeEmpty(this.tokenize(s));var y=s.length,F=n.length,E=1,x=y+F;u.maxEditLength&&(x=Math.min(x,u.maxEditLength));var v=(o=u.timeout)!==null&&o!==void 0?o:1/0,k=Date.now()+v,I=[{oldPos:-1,lastComponent:void 0}],P=this.extractCommon(I[0],s,n,0);if(I[0].oldPos+1>=F&&P+1>=y)return D([{value:this.join(s),count:s.length}]);var L=-1/0,O=1/0;function f(){for(var te=Math.max(L,-E);te<=Math.min(O,E);te+=2){var $=void 0,M=I[te-1],G=I[te+1];M&&(I[te-1]=void 0);var ne=!1;if(G){var Z=G.oldPos-te;ne=G&&0<=Z&&Z<y}var re=M&&M.oldPos+1<F;if(!ne&&!re){I[te]=void 0;continue}if(!re||ne&&M.oldPos+1<G.oldPos?$=m.addToPath(G,!0,void 0,0):$=m.addToPath(M,void 0,!0,1),P=m.extractCommon($,s,n,te),$.oldPos+1>=F&&P+1>=y)return D(i(m,$.lastComponent,s,n,m.useLongestToken));I[te]=$,$.oldPos+1>=F&&(O=Math.min(O,te-1)),P+1>=y&&(L=Math.max(L,te+1))}E++}if(p)(function te(){setTimeout(function(){if(E>x||Date.now()>k)return p();f()||te()},0)})();else for(;E<=x&&Date.now()<=k;){var V=f();if(V)return V}},addToPath:function(n,s,o,u){var p=n.lastComponent;return p&&p.added===s&&p.removed===o?{oldPos:n.oldPos+u,lastComponent:{count:p.count+1,added:s,removed:o,previousComponent:p.previousComponent}}:{oldPos:n.oldPos+u,lastComponent:{count:1,added:s,removed:o,previousComponent:p}}},extractCommon:function(n,s,o,u){for(var p=s.length,m=o.length,D=n.oldPos,y=D-u,F=0;y+1<p&&D+1<m&&this.equals(s[y+1],o[D+1]);)y++,D++,F++;return F&&(n.lastComponent={count:F,previousComponent:n.lastComponent}),n.oldPos=D,y},equals:function(n,s){return this.options.comparator?this.options.comparator(n,s):n===s||this.options.ignoreCase&&n.toLowerCase()===s.toLowerCase()},removeEmpty:function(n){for(var s=[],o=0;o<n.length;o++)n[o]&&s.push(n[o]);return s},castInput:function(n){return n},tokenize:function(n){return n.split("")},join:function(n){return n.join("")}};function i(n,s,o,u,p){for(var m=[],D;s;)m.push(s),D=s.previousComponent,delete s.previousComponent,s=D;m.reverse();for(var y=0,F=m.length,E=0,x=0;y<F;y++){var v=m[y];if(v.removed){if(v.value=n.join(u.slice(x,x+v.count)),x+=v.count,y&&m[y-1].added){var k=m[y-1];m[y-1]=m[y],m[y]=k}}else{if(!v.added&&p){var I=o.slice(E,E+v.count);I=I.map(function(L,O){var f=u[x+O];return f.length>L.length?f:L}),v.value=n.join(I)}else v.value=n.join(o.slice(E,E+v.count));E+=v.count,v.added||(x+=v.count)}}var P=m[F-1];return F>1&&typeof P.value=="string"&&(P.added||P.removed)&&n.equals("",P.value)&&(m[F-2].value+=P.value,m.pop()),m}}),dd=zr(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.diffArrays=s,e.arrayDiff=void 0;var t=i(fd());function i(o){return o&&o.__esModule?o:{default:o}}var n=new t.default;e.arrayDiff=n,n.tokenize=function(o){return o.slice()},n.join=n.removeEmpty=function(o){return o};function s(o,u,p){return n.diff(o,u,p)}}),os=zr((e,t)=>{"use strict";var i=new Proxy(String,{get:()=>i});t.exports=i}),uc={};zi(uc,{default:()=>cc,shouldHighlight:()=>lc});var lc,cc,gd=ld(()=>{lc=()=>!1,cc=String}),md=zr((e,t)=>{var i=String,n=function(){return{isColorSupported:!1,reset:i,bold:i,dim:i,italic:i,underline:i,inverse:i,hidden:i,strikethrough:i,black:i,red:i,green:i,yellow:i,blue:i,magenta:i,cyan:i,white:i,gray:i,bgBlack:i,bgRed:i,bgGreen:i,bgYellow:i,bgBlue:i,bgMagenta:i,bgCyan:i,bgWhite:i}};t.exports=n(),t.exports.createColors=n}),yd=zr(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=x,e.default=v;var t=(gd(),cd(uc)),i=s(md(),!0);function n(k){if(typeof WeakMap!="function")return null;var I=new WeakMap,P=new WeakMap;return(n=function(L){return L?P:I})(k)}function s(k,I){if(!I&&k&&k.__esModule)return k;if(k===null||typeof k!="object"&&typeof k!="function")return{default:k};var P=n(I);if(P&&P.has(k))return P.get(k);var L={__proto__:null},O=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in k)if(f!=="default"&&{}.hasOwnProperty.call(k,f)){var V=O?Object.getOwnPropertyDescriptor(k,f):null;V&&(V.get||V.set)?Object.defineProperty(L,f,V):L[f]=k[f]}return L.default=k,P&&P.set(k,L),L}var o=i.default,u=(k,I)=>P=>k(I(P)),p;function m(k){if(k){var I;return(I=p)!=null||(p=(0,i.createColors)(!0)),p}return o}var D=!1;function y(k){return{gutter:k.gray,marker:u(k.red,k.bold),message:u(k.red,k.bold)}}var F=/\r\n|[\n\r\u2028\u2029]/;function E(k,I,P){let L=Object.assign({column:0,line:-1},k.start),O=Object.assign({},L,k.end),{linesAbove:f=2,linesBelow:V=3}=P||{},te=L.line,$=L.column,M=O.line,G=O.column,ne=Math.max(te-(f+1),0),Z=Math.min(I.length,M+V);te===-1&&(ne=0),M===-1&&(Z=I.length);let re=M-te,se={};if(re)for(let ie=0;ie<=re;ie++){let fe=ie+te;if(!$)se[fe]=!0;else if(ie===0){let Q=I[fe-1].length;se[fe]=[$,Q-$+1]}else if(ie===re)se[fe]=[0,G];else{let Q=I[fe-ie].length;se[fe]=[0,Q]}}else $===G?$?se[te]=[$,0]:se[te]=!0:se[te]=[$,G-$];return{start:ne,end:Z,markerLines:se}}function x(k,I,P={}){let L=(P.highlightCode||P.forceColor)&&(0,t.shouldHighlight)(P),O=m(P.forceColor),f=y(O),V=(se,ie)=>L?se(ie):ie,te=k.split(F),{start:$,end:M,markerLines:G}=E(I,te,P),ne=I.start&&typeof I.start.column=="number",Z=String(M).length,re=(L?(0,t.default)(k,P):k).split(F,M).slice($,M).map((se,ie)=>{let fe=$+1+ie,Q=` ${` ${fe}`.slice(-Z)} |`,B=G[fe],S=!G[fe+1];if(B){let j="";if(Array.isArray(B)){let U=se.slice(0,Math.max(B[0]-1,0)).replace(/[^\t]/g," "),q=B[1]||1;j=[`
|
|
91
91
|
`,V(f.gutter,Q.replace(/\d/g," "))," ",U,V(f.marker,"^").repeat(q)].join(""),S&&P.message&&(j+=" "+V(f.message,P.message))}return[V(f.marker,">"),V(f.gutter,Q),se.length>0?` ${se}`:"",j].join("")}else return` ${V(f.gutter,Q)}${se.length>0?` ${se}`:""}`}).join(`
|
|
92
92
|
`);return P.message&&!ne&&(re=`${" ".repeat(Z+1)}${P.message}
|
|
93
|
-
${re}`),L?O.reset(re):re}function v(k,I,P,L={}){if(!D){D=!0;let O="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let f=new Error(O);f.name="DeprecationWarning",console.warn(new Error(O))}}return P=Math.max(P,0),x(k,{start:{column:P,line:I}},L)}}),
|
|
94
|
-
`?"crlf":"cr":"lf"}function
|
|
93
|
+
${re}`),L?O.reset(re):re}function v(k,I,P,L={}){if(!D){D=!0;let O="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let f=new Error(O);f.name="DeprecationWarning",console.warn(new Error(O))}}return P=Math.max(P,0),x(k,{start:{column:P,line:I}},L)}}),Dd={};zi(Dd,{__debug:()=>dm,check:()=>hm,doc:()=>Kc,format:()=>nt,formatWithCursor:()=>Yc,getSupportInfo:()=>fm,util:()=>Jc,version:()=>Vg});var vd=(e,t,i,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(i,n):i.global?t.replace(i,n):t.split(i).join(n)},Hi=vd,bd=Hr(dd(),1);function Ed(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===`
|
|
94
|
+
`?"crlf":"cr":"lf"}function us(e){switch(e){case"cr":return"\r";case"crlf":return`\r
|
|
95
95
|
`;default:return`
|
|
96
96
|
`}}function pc(e,t){let i;switch(t){case`
|
|
97
97
|
`:i=/\n/g;break;case"\r":i=/\r/g;break;case`\r
|
|
98
|
-
`:i=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(i);return n?n.length:0}function
|
|
99
|
-
`)}var nr="string",Ft="array",sr="cursor",kt="indent",Ct="align",At="trim",ze="group",dt="fill",Je="if-break",St="indent-if-break",_t="line-suffix",It="line-suffix-boundary",Ue="line",gt="label",it="break-parent",hc=new Set([sr,kt,Ct,At,ze,dt,Je,St,_t,It,Ue,gt,it]);function
|
|
100
|
-
Expected it to be 'string' or 'object'.`;if(ar(e))throw new Error("doc is valid.");let i=Object.prototype.toString.call(e);if(i!=="[object Object]")return`Unexpected doc '${i}'.`;let n=
|
|
101
|
-
Expected it to be ${n}.`}var wd=class extends Error{name="InvalidDocError";constructor(e){super(xd(e)),this.doc=e}},Fr=wd,Nl={};function Fd(e,t,i,n){let s=[e];for(;s.length>0;){let o=s.pop();if(o===Nl){i(s.pop());continue}i&&s.push(o,Nl);let u=ar(o);if(!u)throw new Fr(o);if(t?.(o)!==!1)switch(u){case Ft:case dt:{let p=u===Ft?o:o.parts;for(let m=p.length,D=m-1;D>=0;--D)s.push(p[D]);break}case Je:s.push(o.flatContents,o.breakContents);break;case ze:if(n&&o.expandedStates)for(let p=o.expandedStates.length,m=p-1;m>=0;--m)s.push(o.expandedStates[m]);else s.push(o.contents);break;case Ct:case kt:case St:case gt:case _t:s.push(o.contents);break;case nr:case sr:case At:case It:case Ue:case it:break;default:throw new Fr(o)}}}var cs=Fd,fc=()=>{},ft=fc,ps=fc;function Wi(e){return ft(e),{type:kt,contents:e}}function kr(e,t){return ft(t),{type:Ct,contents:t,n:e}}function dc(e,t={}){return ft(e),ps(t.expandedStates,!0),{type:ze,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function kd(e){return kr(Number.NEGATIVE_INFINITY,e)}function Cd(e){return kr({type:"root"},e)}function Ad(e){return kr(-1,e)}function Sd(e,t){return dc(e[0],{...t,expandedStates:e})}function gc(e){return ps(e),{type:dt,parts:e}}function _d(e,t="",i={}){return ft(e),t!==""&&ft(t),{type:Je,breakContents:e,flatContents:t,groupId:i.groupId}}function Id(e,t){return ft(e),{type:St,contents:e,groupId:t.groupId,negate:t.negate}}function es(e){return ft(e),{type:_t,contents:e}}var Pd={type:It},Qi={type:it},Bd={type:At},hs={type:Ue,hard:!0},mc={type:Ue,hard:!0,literal:!0},yc={type:Ue},Td={type:Ue,soft:!0},rr=[hs,Qi],Dc=[mc,Qi],ts={type:sr};function vc(e,t){ft(e),ps(t);let i=[];for(let n=0;n<t.length;n++)n!==0&&i.push(e),i.push(t[n]);return i}function bc(e,t,i){ft(e);let n=e;if(t>0){for(let s=0;s<Math.floor(t/i);++s)n=Wi(n);n=kr(t%i,n),n=kr(Number.NEGATIVE_INFINITY,n)}return n}function Od(e,t){return ft(t),e?{type:gt,label:e,contents:t}:t}function wt(e){var t;if(!e)return"";if(Array.isArray(e)){let i=[];for(let n of e)if(Array.isArray(n))i.push(...wt(n));else{let s=wt(n);s!==""&&i.push(s)}return i}return e.type===Je?{...e,breakContents:wt(e.breakContents),flatContents:wt(e.flatContents)}:e.type===ze?{...e,contents:wt(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(wt)}:e.type===dt?{type:"fill",parts:e.parts.map(wt)}:e.contents?{...e,contents:wt(e.contents)}:e}function Nd(e){let t=Object.create(null),i=new Set;return n(wt(e));function n(o,u,p){var m,D;if(typeof o=="string")return JSON.stringify(o);if(Array.isArray(o)){let y=o.map(n).filter(Boolean);return y.length===1?y[0]:`[${y.join(", ")}]`}if(o.type===Ue){let y=((m=p?.[u+1])==null?void 0:m.type)===it;return o.literal?y?"literalline":"literallineWithoutBreakParent":o.hard?y?"hardline":"hardlineWithoutBreakParent":o.soft?"softline":"line"}if(o.type===it)return((D=p?.[u-1])==null?void 0:D.type)===Ue&&p[u-1].hard?void 0:"breakParent";if(o.type===At)return"trim";if(o.type===kt)return"indent("+n(o.contents)+")";if(o.type===Ct)return o.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(o.contents)+")":o.n<0?"dedent("+n(o.contents)+")":o.n.type==="root"?"markAsRoot("+n(o.contents)+")":"align("+JSON.stringify(o.n)+", "+n(o.contents)+")";if(o.type===Je)return"ifBreak("+n(o.breakContents)+(o.flatContents?", "+n(o.flatContents):"")+(o.groupId?(o.flatContents?"":', ""')+`, { groupId: ${s(o.groupId)} }`:"")+")";if(o.type===St){let y=[];o.negate&&y.push("negate: true"),o.groupId&&y.push(`groupId: ${s(o.groupId)}`);let F=y.length>0?`, { ${y.join(", ")} }`:"";return`indentIfBreak(${n(o.contents)}${F})`}if(o.type===ze){let y=[];o.break&&o.break!=="propagated"&&y.push("shouldBreak: true"),o.id&&y.push(`id: ${s(o.id)}`);let F=y.length>0?`, { ${y.join(", ")} }`:"";return o.expandedStates?`conditionalGroup([${o.expandedStates.map(E=>n(E)).join(",")}]${F})`:`group(${n(o.contents)}${F})`}if(o.type===dt)return`fill([${o.parts.map(y=>n(y)).join(", ")}])`;if(o.type===_t)return"lineSuffix("+n(o.contents)+")";if(o.type===It)return"lineSuffixBoundary";if(o.type===gt)return`label(${JSON.stringify(o.label)}, ${n(o.contents)})`;throw new Error("Unknown doc type "+o.type)}function s(o){if(typeof o!="symbol")return JSON.stringify(String(o));if(o in t)return t[o];let u=o.description||"symbol";for(let p=0;;p++){let m=u+(p>0?` #${p}`:"");if(!i.has(m))return i.add(m),t[o]=`Symbol.for(${JSON.stringify(m)})`}}}var Ld=(e,t,i)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[i<0?t.length+i:i]:t.at(i)},Ne=Ld,Rd=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function jd(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Ud(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var $d=e=>!(jd(e)||Ud(e)),Md=/[^\x20-\x7F]/;function Vd(e){if(!e)return 0;if(!Md.test(e))return e.length;e=e.replace(Rd()," ");let t=0;for(let i of e){let n=i.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=$d(n)?1:2)}return t}var fs=Vd;function Ki(e,t){if(typeof e=="string")return t(e);let i=new Map;return n(e);function n(o){if(i.has(o))return i.get(o);let u=s(o);return i.set(o,u),u}function s(o){switch(ar(o)){case Ft:return t(o.map(n));case dt:return t({...o,parts:o.parts.map(n)});case Je:return t({...o,breakContents:n(o.breakContents),flatContents:n(o.flatContents)});case ze:{let{expandedStates:u,contents:p}=o;return u?(u=u.map(n),p=u[0]):p=n(p),t({...o,contents:p,expandedStates:u})}case Ct:case kt:case St:case gt:case _t:return t({...o,contents:n(o.contents)});case nr:case sr:case At:case It:case Ue:case it:return t(o);default:throw new Fr(o)}}}function ds(e,t,i){let n=i,s=!1;function o(u){if(s)return!1;let p=t(u);p!==void 0&&(s=!0,n=p)}return cs(e,o),n}function qd(e){if(e.type===ze&&e.break||e.type===Ue&&e.hard||e.type===it)return!0}function Wd(e){return ds(e,qd,!1)}function Ll(e){if(e.length>0){let t=Ne(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Gd(e){let t=new Set,i=[];function n(o){if(o.type===it&&Ll(i),o.type===ze){if(i.push(o),t.has(o))return!1;t.add(o)}}function s(o){o.type===ze&&i.pop().break&&Ll(i)}cs(e,n,s,!0)}function zd(e){return e.type===Ue&&!e.hard?e.soft?"":" ":e.type===Je?e.flatContents:e}function Hd(e){return Ki(e,zd)}function Rl(e){for(e=[...e];e.length>=2&&Ne(!1,e,-2).type===Ue&&Ne(!1,e,-1).type===it;)e.length-=2;if(e.length>0){let t=Wr(Ne(!1,e,-1));e[e.length-1]=t}return e}function Wr(e){switch(ar(e)){case kt:case St:case ze:case _t:case gt:{let t=Wr(e.contents);return{...e,contents:t}}case Je:return{...e,breakContents:Wr(e.breakContents),flatContents:Wr(e.flatContents)};case dt:return{...e,parts:Rl(e.parts)};case Ft:return Rl(e);case nr:return e.replace(/[\n\r]*$/,"");case Ct:case sr:case At:case It:case Ue:case it:break;default:throw new Fr(e)}return e}function Ec(e){return Wr(Kd(e))}function Qd(e){switch(ar(e)){case dt:if(e.parts.every(t=>t===""))return"";break;case ze:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===ze&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Ct:case kt:case St:case _t:if(!e.contents)return"";break;case Je:if(!e.flatContents&&!e.breakContents)return"";break;case Ft:{let t=[];for(let i of e){if(!i)continue;let[n,...s]=Array.isArray(i)?i:[i];typeof n=="string"&&typeof Ne(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...s)}return t.length===0?"":t.length===1?t[0]:t}case nr:case sr:case At:case It:case Ue:case gt:case it:break;default:throw new Fr(e)}return e}function Kd(e){return Ki(e,t=>Qd(t))}function Jd(e,t=Dc){return Ki(e,i=>typeof i=="string"?vc(t,i.split(`
|
|
102
|
-
`)):i)}function
|
|
98
|
+
`:i=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(i);return n?n.length:0}function xd(e){return Hi(!1,e,/\r\n?/g,`
|
|
99
|
+
`)}var nr="string",Ft="array",sr="cursor",kt="indent",Ct="align",At="trim",ze="group",dt="fill",Je="if-break",St="indent-if-break",_t="line-suffix",It="line-suffix-boundary",Ue="line",gt="label",it="break-parent",hc=new Set([sr,kt,Ct,At,ze,dt,Je,St,_t,It,Ue,gt,it]);function wd(e){if(typeof e=="string")return nr;if(Array.isArray(e))return Ft;if(!e)return;let{type:t}=e;if(hc.has(t))return t}var ar=wd,Fd=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function kd(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
100
|
+
Expected it to be 'string' or 'object'.`;if(ar(e))throw new Error("doc is valid.");let i=Object.prototype.toString.call(e);if(i!=="[object Object]")return`Unexpected doc '${i}'.`;let n=Fd([...hc].map(s=>`'${s}'`));return`Unexpected doc.type '${e.type}'.
|
|
101
|
+
Expected it to be ${n}.`}var Cd=class extends Error{name="InvalidDocError";constructor(e){super(kd(e)),this.doc=e}},Fr=Cd,Nl={};function Ad(e,t,i,n){let s=[e];for(;s.length>0;){let o=s.pop();if(o===Nl){i(s.pop());continue}i&&s.push(o,Nl);let u=ar(o);if(!u)throw new Fr(o);if(t?.(o)!==!1)switch(u){case Ft:case dt:{let p=u===Ft?o:o.parts;for(let m=p.length,D=m-1;D>=0;--D)s.push(p[D]);break}case Je:s.push(o.flatContents,o.breakContents);break;case ze:if(n&&o.expandedStates)for(let p=o.expandedStates.length,m=p-1;m>=0;--m)s.push(o.expandedStates[m]);else s.push(o.contents);break;case Ct:case kt:case St:case gt:case _t:s.push(o.contents);break;case nr:case sr:case At:case It:case Ue:case it:break;default:throw new Fr(o)}}}var ls=Ad,fc=()=>{},ft=fc,cs=fc;function Wi(e){return ft(e),{type:kt,contents:e}}function kr(e,t){return ft(t),{type:Ct,contents:t,n:e}}function dc(e,t={}){return ft(e),cs(t.expandedStates,!0),{type:ze,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Sd(e){return kr(Number.NEGATIVE_INFINITY,e)}function _d(e){return kr({type:"root"},e)}function Id(e){return kr(-1,e)}function Pd(e,t){return dc(e[0],{...t,expandedStates:e})}function gc(e){return cs(e),{type:dt,parts:e}}function Bd(e,t="",i={}){return ft(e),t!==""&&ft(t),{type:Je,breakContents:e,flatContents:t,groupId:i.groupId}}function Td(e,t){return ft(e),{type:St,contents:e,groupId:t.groupId,negate:t.negate}}function Zn(e){return ft(e),{type:_t,contents:e}}var Od={type:It},Qi={type:it},Nd={type:At},ps={type:Ue,hard:!0},mc={type:Ue,hard:!0,literal:!0},yc={type:Ue},Ld={type:Ue,soft:!0},rr=[ps,Qi],Dc=[mc,Qi],es={type:sr};function vc(e,t){ft(e),cs(t);let i=[];for(let n=0;n<t.length;n++)n!==0&&i.push(e),i.push(t[n]);return i}function bc(e,t,i){ft(e);let n=e;if(t>0){for(let s=0;s<Math.floor(t/i);++s)n=Wi(n);n=kr(t%i,n),n=kr(Number.NEGATIVE_INFINITY,n)}return n}function Rd(e,t){return ft(t),e?{type:gt,label:e,contents:t}:t}function wt(e){var t;if(!e)return"";if(Array.isArray(e)){let i=[];for(let n of e)if(Array.isArray(n))i.push(...wt(n));else{let s=wt(n);s!==""&&i.push(s)}return i}return e.type===Je?{...e,breakContents:wt(e.breakContents),flatContents:wt(e.flatContents)}:e.type===ze?{...e,contents:wt(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(wt)}:e.type===dt?{type:"fill",parts:e.parts.map(wt)}:e.contents?{...e,contents:wt(e.contents)}:e}function jd(e){let t=Object.create(null),i=new Set;return n(wt(e));function n(o,u,p){var m,D;if(typeof o=="string")return JSON.stringify(o);if(Array.isArray(o)){let y=o.map(n).filter(Boolean);return y.length===1?y[0]:`[${y.join(", ")}]`}if(o.type===Ue){let y=((m=p?.[u+1])==null?void 0:m.type)===it;return o.literal?y?"literalline":"literallineWithoutBreakParent":o.hard?y?"hardline":"hardlineWithoutBreakParent":o.soft?"softline":"line"}if(o.type===it)return((D=p?.[u-1])==null?void 0:D.type)===Ue&&p[u-1].hard?void 0:"breakParent";if(o.type===At)return"trim";if(o.type===kt)return"indent("+n(o.contents)+")";if(o.type===Ct)return o.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(o.contents)+")":o.n<0?"dedent("+n(o.contents)+")":o.n.type==="root"?"markAsRoot("+n(o.contents)+")":"align("+JSON.stringify(o.n)+", "+n(o.contents)+")";if(o.type===Je)return"ifBreak("+n(o.breakContents)+(o.flatContents?", "+n(o.flatContents):"")+(o.groupId?(o.flatContents?"":', ""')+`, { groupId: ${s(o.groupId)} }`:"")+")";if(o.type===St){let y=[];o.negate&&y.push("negate: true"),o.groupId&&y.push(`groupId: ${s(o.groupId)}`);let F=y.length>0?`, { ${y.join(", ")} }`:"";return`indentIfBreak(${n(o.contents)}${F})`}if(o.type===ze){let y=[];o.break&&o.break!=="propagated"&&y.push("shouldBreak: true"),o.id&&y.push(`id: ${s(o.id)}`);let F=y.length>0?`, { ${y.join(", ")} }`:"";return o.expandedStates?`conditionalGroup([${o.expandedStates.map(E=>n(E)).join(",")}]${F})`:`group(${n(o.contents)}${F})`}if(o.type===dt)return`fill([${o.parts.map(y=>n(y)).join(", ")}])`;if(o.type===_t)return"lineSuffix("+n(o.contents)+")";if(o.type===It)return"lineSuffixBoundary";if(o.type===gt)return`label(${JSON.stringify(o.label)}, ${n(o.contents)})`;throw new Error("Unknown doc type "+o.type)}function s(o){if(typeof o!="symbol")return JSON.stringify(String(o));if(o in t)return t[o];let u=o.description||"symbol";for(let p=0;;p++){let m=u+(p>0?` #${p}`:"");if(!i.has(m))return i.add(m),t[o]=`Symbol.for(${JSON.stringify(m)})`}}}var Ud=(e,t,i)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[i<0?t.length+i:i]:t.at(i)},Ne=Ud,$d=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Md(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Vd(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var qd=e=>!(Md(e)||Vd(e)),Wd=/[^\x20-\x7F]/;function Gd(e){if(!e)return 0;if(!Wd.test(e))return e.length;e=e.replace($d()," ");let t=0;for(let i of e){let n=i.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=qd(n)?1:2)}return t}var hs=Gd;function Ki(e,t){if(typeof e=="string")return t(e);let i=new Map;return n(e);function n(o){if(i.has(o))return i.get(o);let u=s(o);return i.set(o,u),u}function s(o){switch(ar(o)){case Ft:return t(o.map(n));case dt:return t({...o,parts:o.parts.map(n)});case Je:return t({...o,breakContents:n(o.breakContents),flatContents:n(o.flatContents)});case ze:{let{expandedStates:u,contents:p}=o;return u?(u=u.map(n),p=u[0]):p=n(p),t({...o,contents:p,expandedStates:u})}case Ct:case kt:case St:case gt:case _t:return t({...o,contents:n(o.contents)});case nr:case sr:case At:case It:case Ue:case it:return t(o);default:throw new Fr(o)}}}function fs(e,t,i){let n=i,s=!1;function o(u){if(s)return!1;let p=t(u);p!==void 0&&(s=!0,n=p)}return ls(e,o),n}function zd(e){if(e.type===ze&&e.break||e.type===Ue&&e.hard||e.type===it)return!0}function Hd(e){return fs(e,zd,!1)}function Ll(e){if(e.length>0){let t=Ne(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Qd(e){let t=new Set,i=[];function n(o){if(o.type===it&&Ll(i),o.type===ze){if(i.push(o),t.has(o))return!1;t.add(o)}}function s(o){o.type===ze&&i.pop().break&&Ll(i)}ls(e,n,s,!0)}function Kd(e){return e.type===Ue&&!e.hard?e.soft?"":" ":e.type===Je?e.flatContents:e}function Jd(e){return Ki(e,Kd)}function Rl(e){for(e=[...e];e.length>=2&&Ne(!1,e,-2).type===Ue&&Ne(!1,e,-1).type===it;)e.length-=2;if(e.length>0){let t=Wr(Ne(!1,e,-1));e[e.length-1]=t}return e}function Wr(e){switch(ar(e)){case kt:case St:case ze:case _t:case gt:{let t=Wr(e.contents);return{...e,contents:t}}case Je:return{...e,breakContents:Wr(e.breakContents),flatContents:Wr(e.flatContents)};case dt:return{...e,parts:Rl(e.parts)};case Ft:return Rl(e);case nr:return e.replace(/[\n\r]*$/,"");case Ct:case sr:case At:case It:case Ue:case it:break;default:throw new Fr(e)}return e}function Ec(e){return Wr(Xd(e))}function Yd(e){switch(ar(e)){case dt:if(e.parts.every(t=>t===""))return"";break;case ze:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===ze&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Ct:case kt:case St:case _t:if(!e.contents)return"";break;case Je:if(!e.flatContents&&!e.breakContents)return"";break;case Ft:{let t=[];for(let i of e){if(!i)continue;let[n,...s]=Array.isArray(i)?i:[i];typeof n=="string"&&typeof Ne(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...s)}return t.length===0?"":t.length===1?t[0]:t}case nr:case sr:case At:case It:case Ue:case gt:case it:break;default:throw new Fr(e)}return e}function Xd(e){return Ki(e,t=>Yd(t))}function Zd(e,t=Dc){return Ki(e,i=>typeof i=="string"?vc(t,i.split(`
|
|
102
|
+
`)):i)}function e0(e){if(e.type===Ue)return!0}function t0(e){return fs(e,e0,!1)}function xc(e,t){return e.type===gt?{...e,contents:t(e.contents)}:t(e)}var Ge=Symbol("MODE_BREAK"),ht=Symbol("MODE_FLAT"),Gr=Symbol("cursor");function wc(){return{value:"",length:0,queue:[]}}function r0(e,t){return ts(e,{type:"indent"},t)}function i0(e,t,i){return t===Number.NEGATIVE_INFINITY?e.root||wc():t<0?ts(e,{type:"dedent"},i):t?t.type==="root"?{...e,root:e}:ts(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},i):e}function ts(e,t,i){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],s="",o=0,u=0,p=0;for(let v of n)switch(v.type){case"indent":y(),i.useTabs?m(1):D(i.tabWidth);break;case"stringAlign":y(),s+=v.n,o+=v.n.length;break;case"numberAlign":u+=1,p+=v.n;break;default:throw new Error(`Unexpected type '${v.type}'`)}return E(),{...e,value:s,length:o,queue:n};function m(v){s+=" ".repeat(v),o+=i.tabWidth*v}function D(v){s+=" ".repeat(v),o+=v}function y(){i.useTabs?F():E()}function F(){u>0&&m(u),x()}function E(){p>0&&D(p),x()}function x(){u=0,p=0}}function rs(e){let t=0,i=0,n=e.length;e:for(;n--;){let s=e[n];if(s===Gr){i++;continue}for(let o=s.length-1;o>=0;o--){let u=s[o];if(u===" "||u===" ")t++;else{e[n]=s.slice(0,o+1);break e}}}if(t>0||i>0)for(e.length=n+1;i-- >0;)e.push(Gr);return t}function Mi(e,t,i,n,s,o){if(i===Number.POSITIVE_INFINITY)return!0;let u=t.length,p=[e],m=[];for(;i>=0;){if(p.length===0){if(u===0)return!0;p.push(t[--u]);continue}let{mode:D,doc:y}=p.pop(),F=ar(y);switch(F){case nr:m.push(y),i-=hs(y);break;case Ft:case dt:{let E=F===Ft?y:y.parts;for(let x=E.length-1;x>=0;x--)p.push({mode:D,doc:E[x]});break}case kt:case Ct:case St:case gt:p.push({mode:D,doc:y.contents});break;case At:i+=rs(m);break;case ze:{if(o&&y.break)return!1;let E=y.break?Ge:D,x=y.expandedStates&&E===Ge?Ne(!1,y.expandedStates,-1):y.contents;p.push({mode:E,doc:x});break}case Je:{let E=(y.groupId?s[y.groupId]||ht:D)===Ge?y.breakContents:y.flatContents;E&&p.push({mode:D,doc:E});break}case Ue:if(D===Ge||y.hard)return!0;y.soft||(m.push(" "),i--);break;case _t:n=!0;break;case It:if(n)return!1;break}}return!1}function Ji(e,t){let i={},n=t.printWidth,s=us(t.endOfLine),o=0,u=[{ind:wc(),mode:Ge,doc:e}],p=[],m=!1,D=[],y=0;for(Qd(e);u.length>0;){let{ind:E,mode:x,doc:v}=u.pop();switch(ar(v)){case nr:{let k=s!==`
|
|
103
103
|
`?Hi(!1,v,`
|
|
104
|
-
`,s):v;p.push(k),u.length>0&&(o+=
|
|
104
|
+
`,s):v;p.push(k),u.length>0&&(o+=hs(k));break}case Ft:for(let k=v.length-1;k>=0;k--)u.push({ind:E,mode:x,doc:v[k]});break;case sr:if(y>=2)throw new Error("There are too many 'cursor' in doc.");p.push(Gr),y++;break;case kt:u.push({ind:r0(E,t),mode:x,doc:v.contents});break;case Ct:u.push({ind:i0(E,v.n,t),mode:x,doc:v.contents});break;case At:o-=rs(p);break;case ze:switch(x){case ht:if(!m){u.push({ind:E,mode:v.break?Ge:ht,doc:v.contents});break}case Ge:{m=!1;let k={ind:E,mode:ht,doc:v.contents},I=n-o,P=D.length>0;if(!v.break&&Mi(k,u,I,P,i))u.push(k);else if(v.expandedStates){let L=Ne(!1,v.expandedStates,-1);if(v.break){u.push({ind:E,mode:Ge,doc:L});break}else for(let O=1;O<v.expandedStates.length+1;O++)if(O>=v.expandedStates.length){u.push({ind:E,mode:Ge,doc:L});break}else{let f=v.expandedStates[O],V={ind:E,mode:ht,doc:f};if(Mi(V,u,I,P,i)){u.push(V);break}}}else u.push({ind:E,mode:Ge,doc:v.contents});break}}v.id&&(i[v.id]=Ne(!1,u,-1).mode);break;case dt:{let k=n-o,{parts:I}=v;if(I.length===0)break;let[P,L]=I,O={ind:E,mode:ht,doc:P},f={ind:E,mode:Ge,doc:P},V=Mi(O,[],k,D.length>0,i,!0);if(I.length===1){V?u.push(O):u.push(f);break}let te={ind:E,mode:ht,doc:L},$={ind:E,mode:Ge,doc:L};if(I.length===2){V?u.push(te,O):u.push($,f);break}I.splice(0,2);let M={ind:E,mode:x,doc:gc(I)},G=I[0];Mi({ind:E,mode:ht,doc:[P,L,G]},[],k,D.length>0,i,!0)?u.push(M,te,O):V?u.push(M,$,O):u.push(M,$,f);break}case Je:case St:{let k=v.groupId?i[v.groupId]:x;if(k===Ge){let I=v.type===Je?v.breakContents:v.negate?v.contents:Wi(v.contents);I&&u.push({ind:E,mode:x,doc:I})}if(k===ht){let I=v.type===Je?v.flatContents:v.negate?Wi(v.contents):v.contents;I&&u.push({ind:E,mode:x,doc:I})}break}case _t:D.push({ind:E,mode:x,doc:v.contents});break;case It:D.length>0&&u.push({ind:E,mode:x,doc:ps});break;case Ue:switch(x){case ht:if(v.hard)m=!0;else{v.soft||(p.push(" "),o+=1);break}case Ge:if(D.length>0){u.push({ind:E,mode:x,doc:v},...D.reverse()),D.length=0;break}v.literal?E.root?(p.push(s,E.root.value),o=E.root.length):(p.push(s),o=0):(o-=rs(p),p.push(s+E.value),o=E.length);break}break;case gt:u.push({ind:E,mode:x,doc:v.contents});break;case it:break;default:throw new Fr(v)}u.length===0&&D.length>0&&(u.push(...D.reverse()),D.length=0)}let F=p.indexOf(Gr);if(F!==-1){let E=p.indexOf(Gr,F+1),x=p.slice(0,F).join(""),v=p.slice(F+1,E).join(""),k=p.slice(E+1).join("");return{formatted:x+v+k,cursorNodeStart:x.length,cursorNodeText:v}}return{formatted:p.join("")}}function n0(e,t,i=0){let n=0;for(let s=i;s<e.length;++s)e[s]===" "?n=n+t-n%t:n++;return n}var ds=n0,Zt,is,Vi,s0=class{constructor(e){hd(this,Zt),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return Ne(!1,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:Ne(!1,this.stack,-2)}get node(){return Ne(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=Ne(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...qr(this,Zt,Vi).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?Ne(!1,e,-2):null}getValue(){return Ne(!1,this.stack,-1)}getNode(e=0){let t=qr(this,Zt,is).call(this,e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:i}=this,{length:n}=i,s=Ne(!1,i,-1);for(let o of t)s=s[o],i.push(o,s);try{return e(this)}finally{i.length=n}}callParent(e,t=0){let i=qr(this,Zt,is).call(this,t+1),n=this.stack.splice(i+1);try{return e(this)}finally{this.stack.push(...n)}}each(e,...t){let{stack:i}=this,{length:n}=i,s=Ne(!1,i,-1);for(let o of t)s=s[o],i.push(o,s);try{for(let o=0;o<s.length;++o)i.push(o,s[o]),e(this,o,s),i.length-=2}finally{i.length=n}}map(e,...t){let i=[];return this.each((n,s,o)=>{i[s]=e(n,s,o)},...t),i}match(...e){let t=this.stack.length-1,i=null,n=this.stack[t--];for(let s of e){if(n===void 0)return!1;let o=null;if(typeof i=="number"&&(o=i,i=this.stack[t--],n=this.stack[t--]),s&&!s(n,i,o))return!1;i=this.stack[t--],n=this.stack[t--]}return!0}findAncestor(e){for(let t of qr(this,Zt,Vi).call(this))if(e(t))return t}hasAncestor(e){for(let t of qr(this,Zt,Vi).call(this))if(e(t))return!0;return!1}};Zt=new WeakSet,is=function(e){let{stack:t}=this;for(let i=t.length-1;i>=0;i-=2)if(!Array.isArray(t[i])&&--e<0)return i;return-1},Vi=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let i=e[t];Array.isArray(i)||(yield i)}};var a0=s0,Fc=new Proxy(()=>{},{get:()=>Fc}),ns=Fc;function o0(e){return e!==null&&typeof e=="object"}var u0=o0;function*kc(e,t){let{getVisitorKeys:i,filter:n=()=>!0}=t,s=o=>u0(o)&&n(o);for(let o of i(e)){let u=e[o];if(Array.isArray(u))for(let p of u)s(p)&&(yield p);else s(u)&&(yield u)}}function*l0(e,t){let i=[e];for(let n=0;n<i.length;n++){let s=i[n];for(let o of kc(s,t))yield o,i.push(o)}}function Qr(e){return(t,i,n)=>{let s=!!(n!=null&&n.backwards);if(i===!1)return!1;let{length:o}=t,u=i;for(;u>=0&&u<o;){let p=t.charAt(u);if(e instanceof RegExp){if(!e.test(p))return u}else if(!e.includes(p))return u;s?u--:u++}return u===-1||u===o?u:!1}}var c0=Qr(/\s/),Rt=Qr(" "),Cc=Qr(",; "),Ac=Qr(/[^\n\r]/);function p0(e,t,i){let n=!!(i!=null&&i.backwards);if(t===!1)return!1;let s=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&s===`
|
|
105
105
|
`)return t-2;if(s===`
|
|
106
106
|
`||s==="\r"||s==="\u2028"||s==="\u2029")return t-1}else{if(s==="\r"&&e.charAt(t+1)===`
|
|
107
107
|
`)return t+2;if(s===`
|
|
108
|
-
`||s==="\r"||s==="\u2028"||s==="\u2029")return t+1}return t}var ir=
|
|
108
|
+
`||s==="\r"||s==="\u2028"||s==="\u2029")return t+1}return t}var ir=p0;function h0(e,t,i={}){let n=Rt(e,i.backwards?t-1:t,i),s=ir(e,n,i);return n!==s}var Lt=h0;function f0(e){return Array.isArray(e)&&e.length>0}var d0=f0,Sc=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),g0=e=>Object.keys(e).filter(t=>!Sc.has(t));function m0(e){return e?t=>e(t,Sc):g0}var Yi=m0;function y0(e){let t=e.type||e.kind||"(unknown type)",i=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return i.length>20&&(i=i.slice(0,19)+"\u2026"),t+(i?" "+i:"")}function gs(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=y0(e)}function br(e,t){t.leading=!0,t.trailing=!1,gs(e,t)}function er(e,t,i){t.leading=!1,t.trailing=!1,i&&(t.marker=i),gs(e,t)}function Er(e,t){t.leading=!1,t.trailing=!0,gs(e,t)}var Hn=new WeakMap;function ms(e,t){if(Hn.has(e))return Hn.get(e);let{printer:{getCommentChildNodes:i,canAttachComment:n,getVisitorKeys:s},locStart:o,locEnd:u}=t;if(!n)return[];let p=(i?.(e,t)??[...kc(e,{getVisitorKeys:Yi(s)})]).flatMap(m=>n(m)?[m]:ms(m,t));return p.sort((m,D)=>o(m)-o(D)||u(m)-u(D)),Hn.set(e,p),p}function _c(e,t,i,n){let{locStart:s,locEnd:o}=i,u=s(t),p=o(t),m=ms(e,i),D,y,F=0,E=m.length;for(;F<E;){let x=F+E>>1,v=m[x],k=s(v),I=o(v);if(k<=u&&p<=I)return _c(v,t,i,v);if(I<=u){D=v,F=x+1;continue}if(p<=k){y=v,E=x;continue}throw new Error("Comment location overlaps with node location")}if(n?.type==="TemplateLiteral"){let{quasis:x}=n,v=Kn(x,t,i);D&&Kn(x,D,i)!==v&&(D=null),y&&Kn(x,y,i)!==v&&(y=null)}return{enclosingNode:n,precedingNode:D,followingNode:y}}var Qn=()=>!1;function D0(e,t){let{comments:i}=e;if(delete e.comments,!d0(i)||!t.printer.canAttachComment)return;let n=[],{locStart:s,locEnd:o,printer:{experimentalFeatures:{avoidAstMutation:u=!1}={},handleComments:p={}},originalText:m}=t,{ownLine:D=Qn,endOfLine:y=Qn,remaining:F=Qn}=p,E=i.map((x,v)=>({..._c(e,x,t),comment:x,text:m,options:t,ast:e,isLastComment:i.length-1===v}));for(let[x,v]of E.entries()){let{comment:k,precedingNode:I,enclosingNode:P,followingNode:L,text:O,options:f,ast:V,isLastComment:te}=v;if(f.parser==="json"||f.parser==="json5"||f.parser==="jsonc"||f.parser==="__js_expression"||f.parser==="__ts_expression"||f.parser==="__vue_expression"||f.parser==="__vue_ts_expression"){if(s(k)-s(V)<=0){br(V,k);continue}if(o(k)-o(V)>=0){Er(V,k);continue}}let $;if(u?$=[v]:(k.enclosingNode=P,k.precedingNode=I,k.followingNode=L,$=[k,O,f,V,te]),v0(O,f,E,x))k.placement="ownLine",D(...$)||(L?br(L,k):I?Er(I,k):er(P||V,k));else if(b0(O,f,E,x))k.placement="endOfLine",y(...$)||(I?Er(I,k):L?br(L,k):er(P||V,k));else if(k.placement="remaining",!F(...$))if(I&&L){let M=n.length;M>0&&n[M-1].followingNode!==L&&jl(n,f),n.push(v)}else I?Er(I,k):L?br(L,k):er(P||V,k)}if(jl(n,t),!u)for(let x of i)delete x.precedingNode,delete x.enclosingNode,delete x.followingNode}var Ic=e=>!/[\S\n\u2028\u2029]/.test(e);function v0(e,t,i,n){let{comment:s,precedingNode:o}=i[n],{locStart:u,locEnd:p}=t,m=u(s);if(o)for(let D=n-1;D>=0;D--){let{comment:y,precedingNode:F}=i[D];if(F!==o||!Ic(e.slice(p(y),m)))break;m=u(y)}return Lt(e,m,{backwards:!0})}function b0(e,t,i,n){let{comment:s,followingNode:o}=i[n],{locStart:u,locEnd:p}=t,m=p(s);if(o)for(let D=n+1;D<i.length;D++){let{comment:y,followingNode:F}=i[D];if(F!==o||!Ic(e.slice(m,u(y))))break;m=p(y)}return Lt(e,m)}function jl(e,t){var i,n;let s=e.length;if(s===0)return;let{precedingNode:o,followingNode:u}=e[0],p=t.locStart(u),m;for(m=s;m>0;--m){let{comment:D,precedingNode:y,followingNode:F}=e[m-1];ns.strictEqual(y,o),ns.strictEqual(F,u);let E=t.originalText.slice(t.locEnd(D),p);if(((n=(i=t.printer).isGap)==null?void 0:n.call(i,E,t))??/^[\s(]*$/.test(E))p=t.locStart(D);else break}for(let[D,{comment:y}]of e.entries())D<m?Er(o,y):br(u,y);for(let D of[o,u])D.comments&&D.comments.length>1&&D.comments.sort((y,F)=>t.locStart(y)-t.locStart(F));e.length=0}function Kn(e,t,i){let n=i.locStart(t)-1;for(let s=1;s<e.length;++s)if(n<i.locStart(e[s]))return s-1;return 0}function E0(e,t){let i=t-1;i=Rt(e,i,{backwards:!0}),i=ir(e,i,{backwards:!0}),i=Rt(e,i,{backwards:!0});let n=ir(e,i,{backwards:!0});return i!==n}var ys=E0;function Pc(e,t){let i=e.node;return i.printed=!0,t.printer.printComment(e,t)}function x0(e,t){var i;let n=e.node,s=[Pc(e,t)],{printer:o,originalText:u,locStart:p,locEnd:m}=t;if((i=o.isBlockComment)!=null&&i.call(o,n)){let y=Lt(u,m(n))?Lt(u,p(n),{backwards:!0})?rr:yc:" ";s.push(y)}else s.push(rr);let D=ir(u,Rt(u,m(n)));return D!==!1&&Lt(u,D)&&s.push(rr),s}function w0(e,t,i){var n;let s=e.node,o=Pc(e,t),{printer:u,originalText:p,locStart:m}=t,D=(n=u.isBlockComment)==null?void 0:n.call(u,s);if(i!=null&&i.hasLineSuffix&&!(i!=null&&i.isBlock)||Lt(p,m(s),{backwards:!0})){let y=ys(p,m(s));return{doc:Zn([rr,y?rr:"",o]),isBlock:D,hasLineSuffix:!0}}return!D||i!=null&&i.hasLineSuffix?{doc:[Zn([" ",o]),Qi],isBlock:D,hasLineSuffix:!0}:{doc:[" ",o],isBlock:D,hasLineSuffix:!1}}function F0(e,t){let i=e.node;if(!i)return{};let n=t[Symbol.for("printedComments")];if((i.comments||[]).filter(p=>!n.has(p)).length===0)return{leading:"",trailing:""};let s=[],o=[],u;return e.each(()=>{let p=e.node;if(n!=null&&n.has(p))return;let{leading:m,trailing:D}=p;m?s.push(x0(e,t)):D&&(u=w0(e,t,u),o.push(u.doc))},"comments"),{leading:s,trailing:o}}function k0(e,t,i){let{leading:n,trailing:s}=F0(e,i);return!n&&!s?t:xc(t,o=>[n,o,s])}function C0(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:i}=e;for(let n of t){if(!n.printed&&!i.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}function A0(e){return()=>{}}var S0=A0,Bc=class extends Error{name="ConfigError"},Ul=class extends Error{name="UndefinedParserError"},_0={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
|
|
109
109
|
(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
|
|
110
110
|
The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
|
|
111
111
|
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment
|
|
112
|
-
in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function Tc({plugins:e=[],showDeprecated:t=!1}={}){let i=e.flatMap(s=>s.languages??[]),n=[];for(let s of
|
|
112
|
+
in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function Tc({plugins:e=[],showDeprecated:t=!1}={}){let i=e.flatMap(s=>s.languages??[]),n=[];for(let s of P0(Object.assign({},...e.map(({options:o})=>o),_0)))!t&&s.deprecated||(Array.isArray(s.choices)&&(t||(s.choices=s.choices.filter(o=>!o.deprecated)),s.name==="parser"&&(s.choices=[...s.choices,...I0(s.choices,i,e)])),s.pluginDefaults=Object.fromEntries(e.filter(o=>{var u;return((u=o.defaultOptions)==null?void 0:u[s.name])!==void 0}).map(o=>[o.name,o.defaultOptions[s.name]])),n.push(s));return{languages:i,options:n}}function*I0(e,t,i){let n=new Set(e.map(s=>s.value));for(let s of t)if(s.parsers){for(let o of s.parsers)if(!n.has(o)){n.add(o);let u=i.find(m=>m.parsers&&Object.prototype.hasOwnProperty.call(m.parsers,o)),p=s.name;u!=null&&u.name&&(p+=` (plugin: ${u.name})`),yield{value:o,description:p}}}}function P0(e){let t=[];for(let[i,n]of Object.entries(e)){let s={name:i,...n};Array.isArray(s.default)&&(s.default=Ne(!1,s.default,-1).value),t.push(s)}return t}var B0=e=>String(e).split(/[/\\]/).pop();function $l(e,t){if(!t)return;let i=B0(t).toLowerCase();return e.find(({filenames:n})=>n?.some(s=>s.toLowerCase()===i))??e.find(({extensions:n})=>n?.some(s=>i.endsWith(s)))}function T0(e,t){if(t)return e.find(({name:i})=>i.toLowerCase()===t)??e.find(({aliases:i})=>i?.includes(t))??e.find(({extensions:i})=>i?.includes(`.${t}`))}function O0(e,t){let i=e.plugins.flatMap(s=>s.languages??[]),n=T0(i,t.language)??$l(i,t.physicalFile)??$l(i,t.file)??(t.physicalFile,void 0);return n?.parsers[0]}var N0=O0,xr={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(i=>xr.value(i)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(i=>`${xr.key(i)}: ${xr.value(e[i])}`).join(", ")} }`},pair:({key:e,value:t})=>xr.value({[e]:t})},Ml=Hr(os(),1),L0=(e,t,{descriptor:i})=>{let n=[`${Ml.default.yellow(typeof e=="string"?i.key(e):i.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${Ml.default.blue(typeof t=="string"?i.key(t):i.pair(t))}`),n.join("; ")+"."},wr=Hr(os(),1),Oc=Symbol.for("vnopts.VALUE_NOT_EXIST"),qi=Symbol.for("vnopts.VALUE_UNCHANGED"),Vl=" ".repeat(2),R0=(e,t,i)=>{let{text:n,list:s}=i.normalizeExpectedResult(i.schemas[e].expected(i)),o=[];return n&&o.push(ql(e,t,n,i.descriptor)),s&&o.push([ql(e,t,s.title,i.descriptor)].concat(s.values.map(u=>Nc(u,i.loggerPrintWidth))).join(`
|
|
113
113
|
`)),Lc(o,i.loggerPrintWidth)};function ql(e,t,i,n){return[`Invalid ${wr.default.red(n.key(e))} value.`,`Expected ${wr.default.blue(i)},`,`but received ${t===Oc?wr.default.gray("nothing"):wr.default.red(n.value(t))}.`].join(" ")}function Nc({text:e,list:t},i){let n=[];return e&&n.push(`- ${wr.default.blue(e)}`),t&&n.push([`- ${wr.default.blue(t.title)}:`].concat(t.values.map(s=>Nc(s,i-Vl.length).replace(/^|\n/g,`$&${Vl}`))).join(`
|
|
114
114
|
`)),Lc(n,i)}function Lc(e,t){if(e.length===1)return e[0];let[i,n]=e,[s,o]=e.map(u=>u.split(`
|
|
115
|
-
`,1)[0].length);return s>t&&s>o?n:i}var Wl=Hr(us(),1),Yn=[],Gl=[];function N0(e,t){if(e===t)return 0;let i=e;e.length>t.length&&(e=t,t=i);let n=e.length,s=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-s);)n--,s--;let o=0;for(;o<n&&e.charCodeAt(o)===t.charCodeAt(o);)o++;if(n-=o,s-=o,n===0)return s;let u,p,m,D,y=0,F=0;for(;y<n;)Gl[y]=e.charCodeAt(o+y),Yn[y]=++y;for(;F<s;)for(u=t.charCodeAt(o+F),m=F++,p=F,y=0;y<n;y++)D=u===Gl[y]?m:m+1,m=Yn[y],p=Yn[y]=m>p?D>p?p+1:D:D>m?m+1:D;return p}var Rc=(e,t,{descriptor:i,logger:n,schemas:s})=>{let o=[`Ignored unknown option ${Wl.default.yellow(i.pair({key:e,value:t}))}.`],u=Object.keys(s).sort().find(p=>N0(e,p)<3);u&&o.push(`Did you mean ${Wl.default.blue(i.key(u))}?`),n.warn(o.join(" "))},L0=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function R0(e,t){let i=new e(t),n=Object.create(i);for(let s of L0)s in t&&(n[s]=j0(t[s],i,jt.prototype[s].length));return n}var jt=class{static create(e){return R0(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,i){return e}preprocess(e,t){return e}postprocess(e,t){return qi}};function j0(e,t,i){return typeof e=="function"?(...n)=>e(...n.slice(0,i-1),t,...n.slice(i-1)):()=>e}var U0=class extends jt{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},$0=class extends jt{expected(){return"anything"}validate(){return!0}},M0=class extends jt{constructor({valueSchema:e,name:t=e.name,...i}){super({...i,name:t}),this._valueSchema=e}expected(e){let{text:t,list:i}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:i&&{title:"an array of the following values",values:[{list:i}]}}}validate(e,t){if(!Array.isArray(e))return!1;let i=[];for(let n of e){let s=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);s!==!0&&i.push(s.value)}return i.length===0?!0:{value:i}}deprecated(e,t){let i=[];for(let n of e){let s=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);s!==!1&&i.push(...s.map(({value:o})=>({value:[o]})))}return i}forward(e,t){let i=[];for(let n of e){let s=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);i.push(...s.map(zl))}return i}redirect(e,t){let i=[],n=[];for(let s of e){let o=t.normalizeRedirectResult(this._valueSchema.redirect(s,t),s);"remain"in o&&i.push(o.remain),n.push(...o.redirect.map(zl))}return i.length===0?{redirect:n}:{redirect:n,remain:i}}overlap(e,t){return e.concat(t)}};function zl({from:e,to:t}){return{from:[e],to:t}}var V0=class extends jt{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function q0(e,t){let i=Object.create(null);for(let n of e){let s=n[t];if(i[s])throw new Error(`Duplicate ${t} ${JSON.stringify(s)}`);i[s]=n}return i}function W0(e,t){let i=new Map;for(let n of e){let s=n[t];if(i.has(s))throw new Error(`Duplicate ${t} ${JSON.stringify(s)}`);i.set(s,n)}return i}function G0(){let e=Object.create(null);return t=>{let i=JSON.stringify(t);return e[i]?!0:(e[i]=!0,!1)}}function z0(e,t){let i=[],n=[];for(let s of e)t(s)?i.push(s):n.push(s);return[i,n]}function H0(e){return e===Math.floor(e)}function Q0(e,t){if(e===t)return 0;let i=typeof e,n=typeof t,s=["undefined","object","boolean","number","string"];return i!==n?s.indexOf(i)-s.indexOf(n):i!=="string"?Number(e)-Number(t):e.localeCompare(t)}function K0(e){return(...t)=>{let i=e(...t);return typeof i=="string"?new Error(i):i}}function Hl(e){return e===void 0?{}:e}function jc(e){if(typeof e=="string")return{text:e};let{text:t,list:i}=e;return J0((t||i)!==void 0,"Unexpected `expected` result, there should be at least one field."),i?{text:t,list:{title:i.title,values:i.values.map(jc)}}:{text:t}}function Ql(e,t){return e===!0?!0:e===!1?{value:t}:e}function Kl(e,t,i=!1){return e===!1?!1:e===!0?i?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function Jl(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function as(e,t){return e===void 0?[]:Array.isArray(e)?e.map(i=>Jl(i,t)):[Jl(e,t)]}function Yl(e,t){let i=as(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return i.length===0?{remain:t,redirect:i}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:i}:{redirect:i}}function J0(e,t){if(!e)throw new Error(t)}var Y0=class extends jt{constructor(e){super(e),this._choices=W0(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(s=>this._choices.get(s)).filter(({hidden:s})=>!s).map(s=>s.value).sort(Q0).map(e.value),i=t.slice(0,-2),n=t.slice(-2);return{text:i.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},X0=class extends jt{expected(){return"a number"}validate(e,t){return typeof e=="number"}},Z0=class extends X0{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&H0(e)}},Xl=class extends jt{expected(){return"a string"}validate(e){return typeof e=="string"}},eg=xr,tg=Rc,rg=O0,ig=T0,ng=class{constructor(e,t){let{logger:i=console,loggerPrintWidth:n=80,descriptor:s=eg,unknown:o=tg,invalid:u=rg,deprecated:p=ig,missing:m=()=>!1,required:D=()=>!1,preprocess:y=E=>E,postprocess:F=()=>qi}=t||{};this._utils={descriptor:s,logger:i||{warn:()=>{}},loggerPrintWidth:n,schemas:q0(e,"name"),normalizeDefaultResult:Hl,normalizeExpectedResult:jc,normalizeDeprecatedResult:Kl,normalizeForwardResult:as,normalizeRedirectResult:Yl,normalizeValidateResult:Ql},this._unknownHandler=o,this._invalidHandler=K0(u),this._deprecatedHandler=p,this._identifyMissing=(E,x)=>!(E in x)||m(E,x),this._identifyRequired=D,this._preprocess=y,this._postprocess=F,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=G0()}normalize(e){let t={},i=[this._preprocess(e,this._utils)],n=()=>{for(;i.length!==0;){let s=i.shift(),o=this._applyNormalization(s,t);i.push(...o)}};n();for(let s of Object.keys(this._utils.schemas)){let o=this._utils.schemas[s];if(!(s in t)){let u=Hl(o.default(this._utils));"value"in u&&i.push({[s]:u.value})}}n();for(let s of Object.keys(this._utils.schemas)){if(!(s in t))continue;let o=this._utils.schemas[s],u=t[s],p=o.postprocess(u,this._utils);p!==qi&&(this._applyValidation(p,s,o),t[s]=p)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let i=[],{knownKeys:n,unknownKeys:s}=this._partitionOptionKeys(e);for(let o of n){let u=this._utils.schemas[o],p=u.preprocess(e[o],this._utils);this._applyValidation(p,o,u);let m=({from:F,to:E})=>{i.push(typeof E=="string"?{[E]:F}:{[E.key]:E.value})},D=({value:F,redirectTo:E})=>{let x=Kl(u.deprecated(F,this._utils),p,!0);if(x!==!1)if(x===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,E,this._utils));else for(let{value:v}of x){let k={key:o,value:v};if(!this._hasDeprecationWarned(k)){let I=typeof E=="string"?{key:E,value:v}:E;this._utils.logger.warn(this._deprecatedHandler(k,I,this._utils))}}};as(u.forward(p,this._utils),p).forEach(m);let y=Yl(u.redirect(p,this._utils),p);if(y.redirect.forEach(m),"remain"in y){let F=y.remain;t[o]=o in t?u.overlap(t[o],F,this._utils):F,D({value:F})}for(let{from:F,to:E}of y.redirect)D({value:F,redirectTo:E})}for(let o of s){let u=e[o];this._applyUnknownHandler(o,u,t,(p,m)=>{i.push({[p]:m})})}return i}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,Oc,this._utils)}_partitionOptionKeys(e){let[t,i]=z0(Object.keys(e).filter(n=>!this._identifyMissing(n,e)),n=>n in this._utils.schemas);return{knownKeys:t,unknownKeys:i}}_applyValidation(e,t,i){let n=Ql(i.validate(e,this._utils),e);if(n!==!0)throw this._invalidHandler(t,n.value,this._utils)}_applyUnknownHandler(e,t,i,n){let s=this._unknownHandler(e,t,this._utils);if(s)for(let o of Object.keys(s)){if(this._identifyMissing(o,s))continue;let u=s[o];o in this._utils.schemas?n(o,u):i[o]=u}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==qi){if(t.delete)for(let i of t.delete)delete e[i];if(t.override){let{knownKeys:i,unknownKeys:n}=this._partitionOptionKeys(t.override);for(let s of i){let o=t.override[s];this._applyValidation(o,s,this._utils.schemas[s]),e[s]=o}for(let s of n){let o=t.override[s];this._applyUnknownHandler(s,o,e,(u,p)=>{let m=this._utils.schemas[u];this._applyValidation(p,u,m),e[u]=p})}}}}},Xn;function sg(e,t,{logger:i=!1,isCLI:n=!1,passThrough:s=!1,FlagSchema:o,descriptor:u}={}){if(n){if(!o)throw new Error("'FlagSchema' option is required.");if(!u)throw new Error("'descriptor' option is required.")}else u=xr;let p=s?Array.isArray(s)?(E,x)=>s.includes(E)?{[E]:x}:void 0:(E,x)=>({[E]:x}):(E,x,v)=>{let{_:k,...I}=v.schemas;return Rc(E,x,{...v,schemas:I})},m=ag(t,{isCLI:n,FlagSchema:o}),D=new ng(m,{logger:i,unknown:p,descriptor:u}),y=i!==!1;y&&Xn&&(D._hasDeprecationWarned=Xn);let F=D.normalize(e);return y&&(Xn=D._hasDeprecationWarned),F}function ag(e,{isCLI:t,FlagSchema:i}){let n=[];t&&n.push($0.create({name:"_"}));for(let s of e)n.push(og(s,{isCLI:t,optionInfos:e,FlagSchema:i})),s.alias&&t&&n.push(U0.create({name:s.alias,sourceName:s.name}));return n}function og(e,{isCLI:t,optionInfos:i,FlagSchema:n}){let{name:s}=e,o={name:s},u,p={};switch(e.type){case"int":u=Z0,t&&(o.preprocess=Number);break;case"string":u=Xl;break;case"choice":u=Y0,o.choices=e.choices.map(m=>m!=null&&m.redirect?{...m,redirect:{to:{key:e.name,value:m.redirect}}}:m);break;case"boolean":u=V0;break;case"flag":u=n,o.flags=i.flatMap(m=>[m.alias,m.description&&m.name,m.oppositeDescription&&`no-${m.name}`].filter(Boolean));break;case"path":u=Xl;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?o.validate=(m,D,y)=>e.exception(m)||D.validate(m,y):o.validate=(m,D,y)=>m===void 0||D.validate(m,y),e.redirect&&(p.redirect=m=>m?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(p.deprecated=!0),t&&!e.array){let m=o.preprocess||(D=>D);o.preprocess=(D,y,F)=>y.preprocess(m(Array.isArray(D)?Ne(!1,D,-1):D),F)}return e.array?M0.create({...t?{preprocess:m=>Array.isArray(m)?m:[m]}:{},...p,valueSchema:u.create(o)}):u.create({...o,...p})}var ug=sg,lg=(e,t,i)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(i);for(let n=t.length-1;n>=0;n--){let s=t[n];if(i(s,n,t))return s}}},Uc=lg;function $c(e,t){if(!t)throw new Error("parserName is required.");let i=Uc(!1,e,s=>s.parsers&&Object.prototype.hasOwnProperty.call(s.parsers,t));if(i)return i;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new Bc(n)}function cg(e,t){if(!t)throw new Error("astFormat is required.");let i=Uc(!1,e,s=>s.printers&&Object.prototype.hasOwnProperty.call(s.printers,t));if(i)return i;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new Bc(n)}function Mc({plugins:e,parser:t}){let i=$c(e,t);return Vc(i,t)}function Vc(e,t){let i=e.parsers[t];return typeof i=="function"?i():i}function pg(e,t){let i=e.printers[t];return typeof i=="function"?i():i}var Zl={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function hg(e,t={}){var i;let n={...e};if(!n.parser)if(n.filepath){if(n.parser=B0(n,{physicalFile:n.filepath}),!n.parser)throw new Ul(`No parser could be inferred for file "${n.filepath}".`)}else throw new Ul("No parser and no file path given, couldn't infer a parser.");let s=Tc({plugins:e.plugins,showDeprecated:!0}).options,o={...Zl,...Object.fromEntries(s.filter(E=>E.default!==void 0).map(E=>[E.name,E.default]))},u=$c(n.plugins,n.parser),p=await Vc(u,n.parser);n.astFormat=p.astFormat,n.locEnd=p.locEnd,n.locStart=p.locStart;let m=(i=u.printers)!=null&&i[p.astFormat]?u:cg(n.plugins,p.astFormat),D=await pg(m,p.astFormat);n.printer=D;let y=m.defaultOptions?Object.fromEntries(Object.entries(m.defaultOptions).filter(([,E])=>E!==void 0)):{},F={...o,...y};for(let[E,x]of Object.entries(F))(n[E]===null||n[E]===void 0)&&(n[E]=x);return n.parser==="json"&&(n.trailingComma="none"),ug(n,s,{passThrough:Object.keys(Zl),...t})}var Cr=hg,fg=Hr(dd(),1);async function dg(e,t){let i=await Mc(t),n=i.preprocess?i.preprocess(e,t):e;t.originalText=n;let s;try{s=await i.parse(n,t,t)}catch(o){gg(o,e)}return{text:n,ast:s}}function gg(e,t){let{loc:i}=e;if(i){let n=(0,fg.codeFrameColumns)(t,i,{highlightCode:!0});throw e.message+=`
|
|
116
|
-
`+n,e.codeFrame=n,e}throw e}var Kr=
|
|
117
|
-
`,s)+1),m=n.slice(p,s).match(/^\s*/)[0],D=
|
|
115
|
+
`,1)[0].length);return s>t&&s>o?n:i}var Wl=Hr(os(),1),Jn=[],Gl=[];function j0(e,t){if(e===t)return 0;let i=e;e.length>t.length&&(e=t,t=i);let n=e.length,s=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-s);)n--,s--;let o=0;for(;o<n&&e.charCodeAt(o)===t.charCodeAt(o);)o++;if(n-=o,s-=o,n===0)return s;let u,p,m,D,y=0,F=0;for(;y<n;)Gl[y]=e.charCodeAt(o+y),Jn[y]=++y;for(;F<s;)for(u=t.charCodeAt(o+F),m=F++,p=F,y=0;y<n;y++)D=u===Gl[y]?m:m+1,m=Jn[y],p=Jn[y]=m>p?D>p?p+1:D:D>m?m+1:D;return p}var Rc=(e,t,{descriptor:i,logger:n,schemas:s})=>{let o=[`Ignored unknown option ${Wl.default.yellow(i.pair({key:e,value:t}))}.`],u=Object.keys(s).sort().find(p=>j0(e,p)<3);u&&o.push(`Did you mean ${Wl.default.blue(i.key(u))}?`),n.warn(o.join(" "))},U0=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function $0(e,t){let i=new e(t),n=Object.create(i);for(let s of U0)s in t&&(n[s]=M0(t[s],i,jt.prototype[s].length));return n}var jt=class{static create(e){return $0(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,i){return e}preprocess(e,t){return e}postprocess(e,t){return qi}};function M0(e,t,i){return typeof e=="function"?(...n)=>e(...n.slice(0,i-1),t,...n.slice(i-1)):()=>e}var V0=class extends jt{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},q0=class extends jt{expected(){return"anything"}validate(){return!0}},W0=class extends jt{constructor({valueSchema:e,name:t=e.name,...i}){super({...i,name:t}),this._valueSchema=e}expected(e){let{text:t,list:i}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:i&&{title:"an array of the following values",values:[{list:i}]}}}validate(e,t){if(!Array.isArray(e))return!1;let i=[];for(let n of e){let s=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);s!==!0&&i.push(s.value)}return i.length===0?!0:{value:i}}deprecated(e,t){let i=[];for(let n of e){let s=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);s!==!1&&i.push(...s.map(({value:o})=>({value:[o]})))}return i}forward(e,t){let i=[];for(let n of e){let s=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);i.push(...s.map(zl))}return i}redirect(e,t){let i=[],n=[];for(let s of e){let o=t.normalizeRedirectResult(this._valueSchema.redirect(s,t),s);"remain"in o&&i.push(o.remain),n.push(...o.redirect.map(zl))}return i.length===0?{redirect:n}:{redirect:n,remain:i}}overlap(e,t){return e.concat(t)}};function zl({from:e,to:t}){return{from:[e],to:t}}var G0=class extends jt{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function z0(e,t){let i=Object.create(null);for(let n of e){let s=n[t];if(i[s])throw new Error(`Duplicate ${t} ${JSON.stringify(s)}`);i[s]=n}return i}function H0(e,t){let i=new Map;for(let n of e){let s=n[t];if(i.has(s))throw new Error(`Duplicate ${t} ${JSON.stringify(s)}`);i.set(s,n)}return i}function Q0(){let e=Object.create(null);return t=>{let i=JSON.stringify(t);return e[i]?!0:(e[i]=!0,!1)}}function K0(e,t){let i=[],n=[];for(let s of e)t(s)?i.push(s):n.push(s);return[i,n]}function J0(e){return e===Math.floor(e)}function Y0(e,t){if(e===t)return 0;let i=typeof e,n=typeof t,s=["undefined","object","boolean","number","string"];return i!==n?s.indexOf(i)-s.indexOf(n):i!=="string"?Number(e)-Number(t):e.localeCompare(t)}function X0(e){return(...t)=>{let i=e(...t);return typeof i=="string"?new Error(i):i}}function Hl(e){return e===void 0?{}:e}function jc(e){if(typeof e=="string")return{text:e};let{text:t,list:i}=e;return Z0((t||i)!==void 0,"Unexpected `expected` result, there should be at least one field."),i?{text:t,list:{title:i.title,values:i.values.map(jc)}}:{text:t}}function Ql(e,t){return e===!0?!0:e===!1?{value:t}:e}function Kl(e,t,i=!1){return e===!1?!1:e===!0?i?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function Jl(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function ss(e,t){return e===void 0?[]:Array.isArray(e)?e.map(i=>Jl(i,t)):[Jl(e,t)]}function Yl(e,t){let i=ss(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return i.length===0?{remain:t,redirect:i}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:i}:{redirect:i}}function Z0(e,t){if(!e)throw new Error(t)}var eg=class extends jt{constructor(e){super(e),this._choices=H0(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(s=>this._choices.get(s)).filter(({hidden:s})=>!s).map(s=>s.value).sort(Y0).map(e.value),i=t.slice(0,-2),n=t.slice(-2);return{text:i.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},tg=class extends jt{expected(){return"a number"}validate(e,t){return typeof e=="number"}},rg=class extends tg{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&J0(e)}},Xl=class extends jt{expected(){return"a string"}validate(e){return typeof e=="string"}},ig=xr,ng=Rc,sg=R0,ag=L0,og=class{constructor(e,t){let{logger:i=console,loggerPrintWidth:n=80,descriptor:s=ig,unknown:o=ng,invalid:u=sg,deprecated:p=ag,missing:m=()=>!1,required:D=()=>!1,preprocess:y=E=>E,postprocess:F=()=>qi}=t||{};this._utils={descriptor:s,logger:i||{warn:()=>{}},loggerPrintWidth:n,schemas:z0(e,"name"),normalizeDefaultResult:Hl,normalizeExpectedResult:jc,normalizeDeprecatedResult:Kl,normalizeForwardResult:ss,normalizeRedirectResult:Yl,normalizeValidateResult:Ql},this._unknownHandler=o,this._invalidHandler=X0(u),this._deprecatedHandler=p,this._identifyMissing=(E,x)=>!(E in x)||m(E,x),this._identifyRequired=D,this._preprocess=y,this._postprocess=F,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=Q0()}normalize(e){let t={},i=[this._preprocess(e,this._utils)],n=()=>{for(;i.length!==0;){let s=i.shift(),o=this._applyNormalization(s,t);i.push(...o)}};n();for(let s of Object.keys(this._utils.schemas)){let o=this._utils.schemas[s];if(!(s in t)){let u=Hl(o.default(this._utils));"value"in u&&i.push({[s]:u.value})}}n();for(let s of Object.keys(this._utils.schemas)){if(!(s in t))continue;let o=this._utils.schemas[s],u=t[s],p=o.postprocess(u,this._utils);p!==qi&&(this._applyValidation(p,s,o),t[s]=p)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let i=[],{knownKeys:n,unknownKeys:s}=this._partitionOptionKeys(e);for(let o of n){let u=this._utils.schemas[o],p=u.preprocess(e[o],this._utils);this._applyValidation(p,o,u);let m=({from:F,to:E})=>{i.push(typeof E=="string"?{[E]:F}:{[E.key]:E.value})},D=({value:F,redirectTo:E})=>{let x=Kl(u.deprecated(F,this._utils),p,!0);if(x!==!1)if(x===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,E,this._utils));else for(let{value:v}of x){let k={key:o,value:v};if(!this._hasDeprecationWarned(k)){let I=typeof E=="string"?{key:E,value:v}:E;this._utils.logger.warn(this._deprecatedHandler(k,I,this._utils))}}};ss(u.forward(p,this._utils),p).forEach(m);let y=Yl(u.redirect(p,this._utils),p);if(y.redirect.forEach(m),"remain"in y){let F=y.remain;t[o]=o in t?u.overlap(t[o],F,this._utils):F,D({value:F})}for(let{from:F,to:E}of y.redirect)D({value:F,redirectTo:E})}for(let o of s){let u=e[o];this._applyUnknownHandler(o,u,t,(p,m)=>{i.push({[p]:m})})}return i}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,Oc,this._utils)}_partitionOptionKeys(e){let[t,i]=K0(Object.keys(e).filter(n=>!this._identifyMissing(n,e)),n=>n in this._utils.schemas);return{knownKeys:t,unknownKeys:i}}_applyValidation(e,t,i){let n=Ql(i.validate(e,this._utils),e);if(n!==!0)throw this._invalidHandler(t,n.value,this._utils)}_applyUnknownHandler(e,t,i,n){let s=this._unknownHandler(e,t,this._utils);if(s)for(let o of Object.keys(s)){if(this._identifyMissing(o,s))continue;let u=s[o];o in this._utils.schemas?n(o,u):i[o]=u}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==qi){if(t.delete)for(let i of t.delete)delete e[i];if(t.override){let{knownKeys:i,unknownKeys:n}=this._partitionOptionKeys(t.override);for(let s of i){let o=t.override[s];this._applyValidation(o,s,this._utils.schemas[s]),e[s]=o}for(let s of n){let o=t.override[s];this._applyUnknownHandler(s,o,e,(u,p)=>{let m=this._utils.schemas[u];this._applyValidation(p,u,m),e[u]=p})}}}}},Yn;function ug(e,t,{logger:i=!1,isCLI:n=!1,passThrough:s=!1,FlagSchema:o,descriptor:u}={}){if(n){if(!o)throw new Error("'FlagSchema' option is required.");if(!u)throw new Error("'descriptor' option is required.")}else u=xr;let p=s?Array.isArray(s)?(E,x)=>s.includes(E)?{[E]:x}:void 0:(E,x)=>({[E]:x}):(E,x,v)=>{let{_:k,...I}=v.schemas;return Rc(E,x,{...v,schemas:I})},m=lg(t,{isCLI:n,FlagSchema:o}),D=new og(m,{logger:i,unknown:p,descriptor:u}),y=i!==!1;y&&Yn&&(D._hasDeprecationWarned=Yn);let F=D.normalize(e);return y&&(Yn=D._hasDeprecationWarned),F}function lg(e,{isCLI:t,FlagSchema:i}){let n=[];t&&n.push(q0.create({name:"_"}));for(let s of e)n.push(cg(s,{isCLI:t,optionInfos:e,FlagSchema:i})),s.alias&&t&&n.push(V0.create({name:s.alias,sourceName:s.name}));return n}function cg(e,{isCLI:t,optionInfos:i,FlagSchema:n}){let{name:s}=e,o={name:s},u,p={};switch(e.type){case"int":u=rg,t&&(o.preprocess=Number);break;case"string":u=Xl;break;case"choice":u=eg,o.choices=e.choices.map(m=>m!=null&&m.redirect?{...m,redirect:{to:{key:e.name,value:m.redirect}}}:m);break;case"boolean":u=G0;break;case"flag":u=n,o.flags=i.flatMap(m=>[m.alias,m.description&&m.name,m.oppositeDescription&&`no-${m.name}`].filter(Boolean));break;case"path":u=Xl;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?o.validate=(m,D,y)=>e.exception(m)||D.validate(m,y):o.validate=(m,D,y)=>m===void 0||D.validate(m,y),e.redirect&&(p.redirect=m=>m?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(p.deprecated=!0),t&&!e.array){let m=o.preprocess||(D=>D);o.preprocess=(D,y,F)=>y.preprocess(m(Array.isArray(D)?Ne(!1,D,-1):D),F)}return e.array?W0.create({...t?{preprocess:m=>Array.isArray(m)?m:[m]}:{},...p,valueSchema:u.create(o)}):u.create({...o,...p})}var pg=ug,hg=(e,t,i)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(i);for(let n=t.length-1;n>=0;n--){let s=t[n];if(i(s,n,t))return s}}},Uc=hg;function $c(e,t){if(!t)throw new Error("parserName is required.");let i=Uc(!1,e,s=>s.parsers&&Object.prototype.hasOwnProperty.call(s.parsers,t));if(i)return i;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new Bc(n)}function fg(e,t){if(!t)throw new Error("astFormat is required.");let i=Uc(!1,e,s=>s.printers&&Object.prototype.hasOwnProperty.call(s.printers,t));if(i)return i;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new Bc(n)}function Mc({plugins:e,parser:t}){let i=$c(e,t);return Vc(i,t)}function Vc(e,t){let i=e.parsers[t];return typeof i=="function"?i():i}function dg(e,t){let i=e.printers[t];return typeof i=="function"?i():i}var Zl={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function gg(e,t={}){var i;let n={...e};if(!n.parser)if(n.filepath){if(n.parser=N0(n,{physicalFile:n.filepath}),!n.parser)throw new Ul(`No parser could be inferred for file "${n.filepath}".`)}else throw new Ul("No parser and no file path given, couldn't infer a parser.");let s=Tc({plugins:e.plugins,showDeprecated:!0}).options,o={...Zl,...Object.fromEntries(s.filter(E=>E.default!==void 0).map(E=>[E.name,E.default]))},u=$c(n.plugins,n.parser),p=await Vc(u,n.parser);n.astFormat=p.astFormat,n.locEnd=p.locEnd,n.locStart=p.locStart;let m=(i=u.printers)!=null&&i[p.astFormat]?u:fg(n.plugins,p.astFormat),D=await dg(m,p.astFormat);n.printer=D;let y=m.defaultOptions?Object.fromEntries(Object.entries(m.defaultOptions).filter(([,E])=>E!==void 0)):{},F={...o,...y};for(let[E,x]of Object.entries(F))(n[E]===null||n[E]===void 0)&&(n[E]=x);return n.parser==="json"&&(n.trailingComma="none"),pg(n,s,{passThrough:Object.keys(Zl),...t})}var Cr=gg,mg=Hr(yd(),1);async function yg(e,t){let i=await Mc(t),n=i.preprocess?i.preprocess(e,t):e;t.originalText=n;let s;try{s=await i.parse(n,t,t)}catch(o){Dg(o,e)}return{text:n,ast:s}}function Dg(e,t){let{loc:i}=e;if(i){let n=(0,mg.codeFrameColumns)(t,i,{highlightCode:!0});throw e.message+=`
|
|
116
|
+
`+n,e.codeFrame=n,e}throw e}var Kr=yg;async function vg(e,t,i,n,s){let{embeddedLanguageFormatting:o,printer:{embed:u,hasPrettierIgnore:p=()=>!1,getVisitorKeys:m}}=i;if(!u||o!=="auto")return;if(u.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let D=Yi(u.getVisitorKeys??m),y=[];x();let F=e.stack;for(let{print:v,node:k,pathStack:I}of y)try{e.stack=I;let P=await v(E,t,e,i);P&&s.set(k,P)}catch(P){if(globalThis.PRETTIER_DEBUG)throw P}e.stack=F;function E(v,k){return bg(v,k,i,n)}function x(){let{node:v}=e;if(v===null||typeof v!="object"||p(e))return;for(let I of D(v))Array.isArray(v[I])?e.each(x,I):e.call(x,I);let k=u(e,i);if(k){if(typeof k=="function"){y.push({print:k,node:v,pathStack:[...e.stack]});return}s.set(v,k)}}}async function bg(e,t,i,n){let s=await Cr({...i,...t,parentParser:i.parser,originalText:e},{passThrough:!0}),{ast:o}=await Kr(e,s),u=await n(o,s);return Ec(u)}function Eg(e,t){let{originalText:i,[Symbol.for("comments")]:n,locStart:s,locEnd:o,[Symbol.for("printedComments")]:u}=t,{node:p}=e,m=s(p),D=o(p);for(let y of n)s(y)>=m&&o(y)<=D&&u.add(y);return i.slice(m,D)}var xg=Eg;async function Xi(e,t){({ast:e}=await qc(e,t));let i=new Map,n=new a0(e),s=S0(t),o=new Map;await vg(n,p,t,Xi,o);let u=await ec(n,t,p,void 0,o);return C0(t),u;function p(D,y){return D===void 0||D===n?m(y):Array.isArray(D)?n.call(()=>m(y),...D):n.call(()=>m(y),D)}function m(D){s(n);let y=n.node;if(y==null)return"";let F=y&&typeof y=="object"&&D===void 0;if(F&&i.has(y))return i.get(y);let E=ec(n,t,p,D,o);return F&&i.set(y,E),E}}function ec(e,t,i,n,s){var o;let{node:u}=e,{printer:p}=t,m;return(o=p.hasPrettierIgnore)!=null&&o.call(p,e)?m=xg(e,t):s.has(u)?m=s.get(u):m=p.print(e,t,i,n),u===t.cursorNode&&(m=xc(m,D=>[es,D,es])),p.printComment&&(!p.willPrintOwnComments||!p.willPrintOwnComments(e,t))&&(m=k0(e,m,t)),m}async function qc(e,t){let i=e.comments??[];t[Symbol.for("comments")]=i,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,D0(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:i}}function wg(e,t){let{cursorOffset:i,locStart:n,locEnd:s}=t,o=Yi(t.printer.getVisitorKeys),u=m=>n(m)<=i&&s(m)>=i,p=e;for(let m of l0(e,{getVisitorKeys:o,filter:u}))p=m;return p}var Fg=wg;function kg(e,t){let{printer:{massageAstNode:i,getVisitorKeys:n}}=t;if(!i)return e;let s=Yi(n),o=i.ignoredProperties??new Set;return u(e);function u(p,m){if(!(p!==null&&typeof p=="object"))return p;if(Array.isArray(p))return p.map(E=>u(E,m)).filter(Boolean);let D={},y=new Set(s(p));for(let E in p)!Object.prototype.hasOwnProperty.call(p,E)||o.has(E)||(y.has(E)?D[E]=u(p[E],p):D[E]=p[E]);let F=i(p,D,m);if(F!==null)return F??D}}var Cg=kg,Ag=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function Sg(e,t){let i=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return i.find(s=>Wc.has(s.type)&&n.has(s))}function tc(e){let t=e.length-1;for(;;){let i=e[t];if(i?.type==="Program"||i?.type==="File")t--;else break}return e.slice(0,t+1)}function _g(e,t,{locStart:i,locEnd:n}){let s=e.node,o=t.node;if(s===o)return{startNode:s,endNode:o};let u=i(e.node);for(let m of tc(t.parentNodes))if(i(m)>=u)o=m;else break;let p=n(t.node);for(let m of tc(e.parentNodes)){if(n(m)<=p)s=m;else break;if(s===o)break}return{startNode:s,endNode:o}}function as(e,t,i,n,s=[],o){let{locStart:u,locEnd:p}=i,m=u(e),D=p(e);if(!(t>D||t<m||o==="rangeEnd"&&t===m||o==="rangeStart"&&t===D)){for(let y of ms(e,i)){let F=as(y,t,i,n,[e,...s],o);if(F)return F}if(!n||n(e,s[0]))return{node:e,parentNodes:s}}}function Ig(e,t){return t!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var Wc=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),Pg=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function rc(e,t,i){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return Ig(t.type,i?.type);case"json":case"json5":case"jsonc":case"json-stringify":return Wc.has(t.type);case"graphql":return Pg.has(t.kind);case"vue":return t.tag!=="root"}return!1}function Bg(e,t,i){let{rangeStart:n,rangeEnd:s,locStart:o,locEnd:u}=t;ns.ok(s>n);let p=e.slice(n,s).search(/\S/),m=p===-1;if(!m)for(n+=p;s>n&&!/\S/.test(e[s-1]);--s);let D=as(i,n,t,(x,v)=>rc(t,x,v),[],"rangeStart"),y=m?D:as(i,s,t,x=>rc(t,x),[],"rangeEnd");if(!D||!y)return{rangeStart:0,rangeEnd:0};let F,E;if(Ag(t)){let x=Sg(D,y);F=x,E=x}else({startNode:F,endNode:E}=_g(D,y,t));return{rangeStart:Math.min(o(F),o(E)),rangeEnd:Math.max(u(F),u(E))}}var Gc="\uFEFF",ic=Symbol("cursor");async function zc(e,t,i=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:s}=await Kr(e,t);t.cursorOffset>=0&&(t.cursorNode=Fg(n,t));let o=await Xi(n,t,i);i>0&&(o=bc([rr,o],i,t.tabWidth));let u=Ji(o,t);if(i>0){let m=u.formatted.trim();u.cursorNodeStart!==void 0&&(u.cursorNodeStart-=u.formatted.indexOf(m)),u.formatted=m+us(t.endOfLine)}let p=t[Symbol.for("comments")];if(t.cursorOffset>=0){let m,D,y,F,E;if(t.cursorNode&&u.cursorNodeText?(m=t.locStart(t.cursorNode),D=s.slice(m,t.locEnd(t.cursorNode)),y=t.cursorOffset-m,F=u.cursorNodeStart,E=u.cursorNodeText):(m=0,D=s,y=t.cursorOffset,F=0,E=u.formatted),D===E)return{formatted:u.formatted,cursorOffset:F+y,comments:p};let x=D.split("");x.splice(y,0,ic);let v=E.split(""),k=(0,bd.diffArrays)(x,v),I=F;for(let P of k)if(P.removed){if(P.value.includes(ic))break}else I+=P.count;return{formatted:u.formatted,cursorOffset:I,comments:p}}return{formatted:u.formatted,cursorOffset:-1,comments:p}}async function Tg(e,t){let{ast:i,text:n}=await Kr(e,t),{rangeStart:s,rangeEnd:o}=Bg(n,t,i),u=n.slice(s,o),p=Math.min(s,n.lastIndexOf(`
|
|
117
|
+
`,s)+1),m=n.slice(p,s).match(/^\s*/)[0],D=ds(m,t.tabWidth),y=await zc(u,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>s&&t.cursorOffset<=o?t.cursorOffset-s:-1,endOfLine:"lf"},D),F=y.formatted.trimEnd(),{cursorOffset:E}=t;E>o?E+=F.length-u.length:y.cursorOffset>=0&&(E=y.cursorOffset+s);let x=n.slice(0,s)+F+n.slice(o);if(t.endOfLine!=="lf"){let v=us(t.endOfLine);E>=0&&v===`\r
|
|
118
118
|
`&&(E+=pc(x.slice(0,E),`
|
|
119
119
|
`)),x=Hi(!1,x,`
|
|
120
|
-
`,v)}return{formatted:x,cursorOffset:E,comments:y.comments}}function
|
|
121
|
-
`);i-=p(i),n-=p(n),s-=p(s),e=
|
|
122
|
-
`);return i===-1?0:
|
|
123
|
-
`)return!0;return!1}var
|
|
120
|
+
`,v)}return{formatted:x,cursorOffset:E,comments:y.comments}}function Xn(e,t,i){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?i:t}function nc(e,t){let{cursorOffset:i,rangeStart:n,rangeEnd:s}=t;return i=Xn(e,i,-1),n=Xn(e,n,0),s=Xn(e,s,e.length),{...t,cursorOffset:i,rangeStart:n,rangeEnd:s}}function Hc(e,t){let{cursorOffset:i,rangeStart:n,rangeEnd:s,endOfLine:o}=nc(e,t),u=e.charAt(0)===Gc;if(u&&(e=e.slice(1),i--,n--,s--),o==="auto"&&(o=Ed(e)),e.includes("\r")){let p=m=>pc(e.slice(0,Math.max(m,0)),`\r
|
|
121
|
+
`);i-=p(i),n-=p(n),s-=p(s),e=xd(e)}return{hasBOM:u,text:e,options:nc(e,{...t,cursorOffset:i,rangeStart:n,rangeEnd:s,endOfLine:o})}}async function sc(e,t){let i=await Mc(t);return!i.hasPragma||i.hasPragma(e)}async function Qc(e,t){let{hasBOM:i,text:n,options:s}=Hc(e,await Cr(t));if(s.rangeStart>=s.rangeEnd&&n!==""||s.requirePragma&&!await sc(n,s))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let o;return s.rangeStart>0||s.rangeEnd<n.length?o=await Tg(n,s):(!s.requirePragma&&s.insertPragma&&s.printer.insertPragma&&!await sc(n,s)&&(n=s.printer.insertPragma(n)),o=await zc(n,s)),i&&(o.formatted=Gc+o.formatted,o.cursorOffset>=0&&o.cursorOffset++),o}async function Og(e,t,i){let{text:n,options:s}=Hc(e,await Cr(t)),o=await Kr(n,s);return i&&(i.preprocessForPrint&&(o.ast=await qc(o.ast,s)),i.massage&&(o.ast=Cg(o.ast,s))),o}async function Ng(e,t){t=await Cr(t);let i=await Xi(e,t);return Ji(i,t)}async function Lg(e,t){let i=jd(e),{formatted:n}=await Qc(i,{...t,parser:"__js_expression"});return n}async function Rg(e,t){t=await Cr(t);let{ast:i}=await Kr(e,t);return Xi(i,t)}async function jg(e,t){return Ji(e,await Cr(t))}var Kc={};zi(Kc,{builders:()=>Ug,printer:()=>$g,utils:()=>Mg});var Ug={join:vc,line:yc,softline:Ld,hardline:rr,literalline:Dc,group:dc,conditionalGroup:Pd,fill:gc,lineSuffix:Zn,lineSuffixBoundary:Od,cursor:es,breakParent:Qi,ifBreak:Bd,trim:Nd,indent:Wi,indentIfBreak:Td,align:kr,addAlignmentToDoc:bc,markAsRoot:_d,dedentToRoot:Sd,dedent:Id,hardlineWithoutBreakParent:ps,literallineWithoutBreakParent:mc,label:Rd,concat:e=>e},$g={printDocToString:Ji},Mg={willBreak:Hd,traverseDoc:ls,findInDoc:fs,mapDoc:Ki,removeLines:Jd,stripTrailingHardline:Ec,replaceEndOfLine:Zd,canBreak:t0},Vg="3.3.2",Jc={};zi(Jc,{addDanglingComment:()=>er,addLeadingComment:()=>br,addTrailingComment:()=>Er,getAlignmentSize:()=>ds,getIndentSize:()=>Qg,getMaxContinuousCount:()=>Yg,getNextNonSpaceNonCommentCharacter:()=>Zg,getNextNonSpaceNonCommentCharacterIndex:()=>om,getStringWidth:()=>hs,hasNewline:()=>Lt,hasNewlineInRange:()=>tm,hasSpaces:()=>im,isNextLineEmpty:()=>pm,isNextLineEmptyAfterIndex:()=>Es,isPreviousLineEmpty:()=>lm,makeString:()=>sm,skip:()=>Qr,skipEverythingButNewLine:()=>Ac,skipInlineComment:()=>Ds,skipNewline:()=>ir,skipSpaces:()=>Rt,skipToLineEnd:()=>Cc,skipTrailingComment:()=>vs,skipWhitespace:()=>c0});function qg(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let i=t+2;i<e.length;++i)if(e.charAt(i)==="*"&&e.charAt(i+1)==="/")return i+2}return t}var Ds=qg;function Wg(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?Ac(e,t):t}var vs=Wg;function Gg(e,t){let i=null,n=t;for(;n!==i;)i=n,n=Rt(e,n),n=Ds(e,n),n=vs(e,n),n=ir(e,n);return n}var bs=Gg;function zg(e,t){let i=null,n=t;for(;n!==i;)i=n,n=Cc(e,n),n=Ds(e,n),n=Rt(e,n);return n=vs(e,n),n=ir(e,n),n!==!1&&Lt(e,n)}var Es=zg;function Hg(e,t){let i=e.lastIndexOf(`
|
|
122
|
+
`);return i===-1?0:ds(e.slice(i+1).match(/^[\t ]*/)[0],t)}var Qg=Hg;function Kg(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Jg(e,t){let i=e.match(new RegExp(`(${Kg(t)})+`,"g"));return i===null?0:i.reduce((n,s)=>Math.max(n,s.length/t.length),0)}var Yg=Jg;function Xg(e,t){let i=bs(e,t);return i===!1?"":e.charAt(i)}var Zg=Xg;function em(e,t,i){for(let n=t;n<i;++n)if(e.charAt(n)===`
|
|
123
|
+
`)return!0;return!1}var tm=em;function rm(e,t,i={}){return Rt(e,i.backwards?t-1:t,i)!==t}var im=rm;function nm(e,t,i){let n=t==='"'?"'":'"',s=Hi(!1,e,/\\(.)|(["'])/gs,(o,u,p)=>u===n?u:p===t?"\\"+p:p||(i&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(u)?u:"\\"+u));return t+s+t}var sm=nm;function am(e,t,i){return bs(e,i(t))}function om(e,t){return arguments.length===2||typeof t=="number"?bs(e,t):am(...arguments)}function um(e,t,i){return ys(e,i(t))}function lm(e,t){return arguments.length===2||typeof t=="number"?ys(e,t):um(...arguments)}function cm(e,t,i){return Es(e,i(t))}function pm(e,t){return arguments.length===2||typeof t=="number"?Es(e,t):cm(...arguments)}function tr(e,t=1){return async(...i)=>{let n=i[t]??{},s=n.plugins??[];return i[t]={...n,plugins:Array.isArray(s)?s:Object.values(s)},e(...i)}}var Yc=tr(Qc);async function nt(e,t){let{formatted:i}=await Yc(e,{...t,cursorOffset:-1});return i}async function hm(e,t){return await nt(e,t)===e}var fm=tr(Tc,0),dm={parse:tr(Og),formatAST:tr(Ng),formatDoc:tr(Lg),printToDoc:tr(Rg),printDocToString:tr(jg)};var tp=(e=>(e.DEBUG="debug",e.LOG="log",e.INFO="info",e.WARN="warn",e.ERROR="error",e.OFF="off",e))(tp||{}),ws=class{constructor(e=console,t="info"){this.logger=e,this.level=t}static isSupportedLogLevel(e){return typeof e=="string"&&(e==="debug"||e==="log"||e==="info"||e==="warn"||e==="error"||e==="off")}setLogLevel(e){this.level=e}isDebugEnabled(){return this.level<="debug"}debug(e,...t){this.message("debug",e,...t)}log(e,...t){this.message("log",e,...t)}info(e,...t){this.message("info",e,...t)}warn(e,...t){this.message("warn",e,...t)}error(e,...t){this.message("error",e,...t)}message(e,t,...i){this.level!=="off"&&this.level<=e&&e!=="off"&&this.logger[e](t,...i)}};function rp(e=console){return new ws(e)}var ae=rp(console),Jr=De.env.PRETTIER_PLUGIN_PUG_LOG_LEVEL;Jr&&(Jr=Jr.toLowerCase(),ws.isSupportedLogLevel(Jr)&&ae.setLogLevel(Jr));var Se="Pug",ip={category:Se,type:"path",array:!0,default:[{value:[]}],description:""},gm={...ip,description:"Define a list of patterns for attributes that are sorted to the beginning."},mm={...ip,description:"Define a list of patterns for attributes that are sorted at the end."},ym={category:Se,type:"choice",default:"as-is",description:"Change how the attributes between _beginning_ and _end_ should be sorted.",choices:[{value:"asc",description:"Sort middle attributes ascending."},{value:"desc",description:"Sort middle attributes descending."},{value:"as-is",description:"Middle attributes are leave untouched."}]},Dm={category:Se,type:"int",default:-1,description:"The line length where Prettier will try wrap.",range:{start:-1,end:1/0,step:1}},vm={category:Se,type:"choice",default:null,description:"",choices:[{value:null,description:"Use `singleQuote` value."},{value:!0,description:"Use single quotes instead of double quotes."},{value:"true",description:"Use single quotes instead of double quotes."},{value:!1,description:"Use double quotes instead of double quotes."}]},bm={category:Se,type:"int",default:-1,description:"Number of spaces per indentation level.",range:{start:-1,end:1/0,step:1}},Em={category:Se,type:"choice",default:null,description:"",choices:[{value:null,description:"Use `useTabs` value."},{value:!0,description:"Indent with tabs instead of spaces."},{value:"true",description:"Indent with tabs instead of spaces."},{value:!1,description:"Indent with spaces instead of tabs."}]},xm={category:Se,type:"choice",default:null,description:"",choices:[{value:null,description:"Use `bracketSpacing` value."},{value:!0,description:"Print spaces between brackets."},{value:"true",description:"Print spaces between brackets."},{value:!1,description:"Do not print spaces between brackets."}]},wm={category:Se,type:"choice",default:null,description:"",choices:[{value:null,description:"Use `bracketSpacing` value."},{value:!0,description:"Print semicolons."},{value:"true",description:"Print semicolons."},{value:!1,description:"Do not print semicolons, except at the beginning of lines which may need them."}]},Fm={category:Se,type:"choice",default:null,description:"Include parentheses around a sole arrow function parameter.",choices:[{value:null,description:"Use `arrowParens` value."},{value:"always",description:"Always add parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},km={category:Se,type:"choice",default:null,description:"Determines position of closing bracket which wraps attributes.",choices:[{value:null,description:"Use `bracketSameLine` value."},{value:!0,description:`
|
|
124
124
|
Closing bracket remains with last attribute's line.
|
|
125
125
|
Example:
|
|
126
126
|
input(
|
|
@@ -148,11 +148,11 @@ in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",cate
|
|
|
148
148
|
alt='my_alt',
|
|
149
149
|
autocomplete='on'
|
|
150
150
|
)
|
|
151
|
-
`}]},
|
|
151
|
+
`}]},Cm={category:Se,type:"choice",default:"as-is",description:"Change behavior of boolean attributes.",choices:[{value:"as-is",description:"Nothing is changed."},{value:"none",description:"Every attribute with empty quotes will have them removed."},{value:"all",description:"Every boolean attribute will be expressed with empty quotes."}]},Am={category:Se,type:"path",default:[{value:[]}],array:!0,description:'Define a list of patterns for attributes that will be forced to have empty quotes even with "none" selected.'},Sm={category:Se,type:"choice",default:"always",description:"Change when attributes are separated by commas in tags.",choices:[{value:"always",description:'Always separate attributes with commas. Example: `button(type="submit", (click)="play()", disabled)`'},{value:"as-needed",description:'Only add commas between attributes where required. Example: `button(type="submit", (click)="play()" disabled)`'},{value:"none",description:'Never add commas between attributes. Example: `button(type="submit" @click="play()" :style="style" disabled)`'}]};function _m(e){switch(e){case"always":case"as-needed":case"none":return e}throw new Error(`Invalid option for pugAttributeSeparator. Found '${e}'. Possible options: 'always', 'as-needed' or 'none'`)}var Im={category:Se,type:"choice",default:"before-attributes",description:"Define where classes be placed.",choices:[{value:"before-attributes",description:"Forces all valid class literals to be placed before attributes."},{value:"after-attributes",description:"Forces all valid class literals to be placed after attributes."}]},Pm={category:Se,type:"choice",default:"literal",description:"Define how classes should be formatted.",choices:[{value:"literal",description:"Forces all valid classes to be printed as literals."},{value:"attribute",description:"Forces all valid classes to be printed in class attribute."},{value:"as-is",description:"Disables class formatting."}]},Bm={category:Se,type:"choice",default:"keep-all",description:"Change behavior of spaces within comments.",choices:[{value:"keep-all",description:"Keep all spaces within comments. Example: `// this is a comment`"},{value:"keep-leading",description:"Keep leading spaces within comments. Example: `// this is a comment`"},{value:"trim-all",description:"Trim all spaces within comments. Example: `// this is a comment`"}]};function Xc(e,t,i=!1){switch(t){case"keep-leading":{let n="",s=0;for(s;s<e.length&&e[s]===" ";s++)n+=" ";return n+=e.slice(s).trim().replace(/\s\s+/g," "),n}case"trim-all":{let n=e.trim();return n=n.replace(/\s\s+/g," "),!i&&e[0]===" "&&(n=` ${n}`),n}case"keep-all":default:return e}}var Tm={category:Se,type:"boolean",default:!1,description:"Include `div` tag when followed by literal class or id syntax"},Om={category:Se,type:"choice",default:"auto",description:"Define which framework is used in the project.",choices:[{value:"auto",description:"Try to identify used framework, if there is one."},{value:"vue",description:"Uses Vue.js."},{value:"svelte",description:"Uses Svelte."},{value:"angular",description:"Uses Angular."}]},Nm={category:Se,type:"choice",default:"literal",description:"Define how the id should be formatted.",choices:[{value:"literal",description:"Forces all valid ids to be printed as literals."},{value:"as-is",description:"Disables id formatting."}]},Lm={category:Se,type:"boolean",default:!1,description:"Preserve attribute brackets."},Rm={category:Se,type:"boolean",default:!1,description:"Indent pug in template tags in single file components such as from vue or svelte."},jm={category:Se,type:"int",default:-1,description:"The maximum amount of attributes that an element can appear with on one line before it gets wrapped.",range:{start:-1,end:1/0,step:1}},Um={category:Se,type:"path",default:"",description:"Regex pattern to match attributes against that should always trigger wrapping."},$m={pugPrintWidth:Dm,pugSingleQuote:vm,pugTabWidth:bm,pugUseTabs:Em,pugBracketSpacing:xm,pugArrowParens:Fm,pugSemi:wm,pugBracketSameLine:km,pugAttributeSeparator:Sm,pugCommentPreserveSpaces:Bm,pugSortAttributes:ym,pugSortAttributesBeginning:gm,pugSortAttributesEnd:mm,pugWrapAttributesThreshold:jm,pugWrapAttributesPattern:Um,pugEmptyAttributes:Cm,pugClassNotation:Pm,pugIdNotation:Nm,pugClassLocation:Im,pugExplicitDiv:Tm,pugEmptyAttributesForceQuotes:Am,pugSingleFileComponentIndentation:Rm,pugFramework:Om,pugPreserveAttributeBrackets:Lm};function Mm(e){return{printWidth:e.printWidth,pugPrintWidth:e.pugPrintWidth!==-1?e.pugPrintWidth:e.printWidth,singleQuote:e.singleQuote,pugSingleQuote:e.pugSingleQuote??e.singleQuote,tabWidth:e.tabWidth,pugTabWidth:e.pugTabWidth!==-1?e.pugTabWidth:e.tabWidth,useTabs:e.useTabs??!1,pugUseTabs:e.pugUseTabs??e.useTabs??!1,bracketSpacing:e.bracketSpacing,pugBracketSpacing:e.pugBracketSpacing??e.bracketSpacing,arrowParens:e.arrowParens,pugArrowParens:e.pugArrowParens??e.arrowParens,semi:e.semi,pugSemi:e.pugSemi??e.semi,bracketSameLine:e.bracketSameLine,pugBracketSameLine:e.pugBracketSameLine??e.bracketSameLine,pugAttributeSeparator:e.pugAttributeSeparator,pugCommentPreserveSpaces:e.pugCommentPreserveSpaces,pugSortAttributes:e.pugSortAttributes,pugSortAttributesBeginning:e.pugSortAttributesBeginning,pugSortAttributesEnd:e.pugSortAttributesEnd,pugWrapAttributesThreshold:e.pugWrapAttributesThreshold,pugWrapAttributesPattern:e.pugWrapAttributesPattern,pugClassNotation:e.pugClassNotation,pugIdNotation:e.pugIdNotation,pugClassLocation:e.pugClassLocation,pugEmptyAttributes:e.pugEmptyAttributes,pugEmptyAttributesForceQuotes:e.pugEmptyAttributesForceQuotes,pugSingleFileComponentIndentation:e.pugSingleFileComponentIndentation&&e.__embeddedInHtml===!0,pugFramework:e.pugFramework,pugExplicitDiv:e.pugExplicitDiv,pugPreserveAttributeBrackets:e.pugPreserveAttributeBrackets}}var Vm={"<!doctype html>":"doctype html",'<?xml version="1.0" encoding="utf-8" ?>':"doctype xml",'<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">':"doctype transitional",'<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd">':"doctype strict",'<!doctype html public "-//w3c//dtd xhtml 1.0 frameset//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-frameset.dtd">':"doctype frameset",'<!doctype html public "-//w3c//dtd xhtml 1.1//en" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">':"doctype 1.1",'<!doctype html public "-//w3c//dtd xhtml basic 1.1//en" "http://www.w3.org/tr/xhtml-basic/xhtml-basic11.dtd">':"doctype basic",'<!doctype html public "-//wapforum//dtd xhtml mobile 1.2//en" "http://www.openmobilealliance.org/tech/dtd/xhtml-mobile12.dtd">':"doctype mobile",'<!doctype plist public "-//apple//dtd plist 1.0//en" "http://www.apple.com/dtds/propertylist-1.0.dtd">':"doctype plist"};function qm(e,t,i,n,s){let o=n.map(D=>new RegExp(D)).reverse(),u=s.map(D=>new RegExp(D)),p=e.name,m=t.name;if(o.length>0){let D=o.findIndex(E=>E.test(p)),y=o.findIndex(E=>E.test(m)),F=D-y;if(F>0)return-1;if(F<0)return 1}if(u.length>0){let D=u.findIndex(E=>E.test(p)),y=u.findIndex(E=>E.test(m)),F=D-y;if(F>0)return 1;if(F<0)return-1}switch(i){case"asc":{if(p>m)return 1;if(p<m)return-1;break}case"desc":{if(p>m)return-1;if(p<m)return 1;break}}return 0}function Wm(e,t){let i=e.map((n,s)=>[n,s]);return i.sort((n,s)=>{let o=t(n[0],s[0]);return o!==0?o:n[1]-s[1]}),i.map(([n])=>n)}function Gm(e,t,i,n){let s=e.slice(0,t),o=e.slice(i),u=e.slice(t,i),p=Wm(u,n);return[...s,...p,...o]}var zm=[!0,'""',"''"];function Hm(e,t,i){let{val:n,name:s}=e;if(i.map(o=>new RegExp(o)).some(o=>o.test(s))){e.val===!0&&(e.val='""');return}if(!(t==="as-is"||!zm.includes(n)))switch(t){case"all":{e.val===!0&&(e.val='""');break}case"none":{(e.val==='""'||e.val==="''")&&(e.val=!0);break}}}function Qm(e,t){for(let i=t-1;i>=0;i--){let n=e[i];if(!n)return;if(n.type==="tag")return n}}function Km(e,t){for(let i=t-1;i>0;i--){let n=e[i];if(!n||n.type==="start-attributes")return;if(n.type==="attribute"&&n.name!=="class"&&n.name!=="id")return n}}function Jm(e,t){for(let i=t-1;i>0;i--){let n=e[i];if(!n||n.type==="start-attributes"||n.type==="tag")return;if(n.type==="attribute"&&n.name==="type")return n}}function Yr(e){return e.includes(`
|
|
152
152
|
`)?e.split(`
|
|
153
|
-
`).map(t=>t.trim()).map(t=>(t[0]==="."?"":" ")+t).join("").trim():e}function
|
|
154
|
-
`)}function Ar(e,t,[i,n]=["{{","}}"]){return e?`${i} ${t} ${n}`:`${i}${t}${n}`}function ws(e,t,i=!1){let n=t==='"'?"'":'"',s=e.replace(/\\([\s\S])|(['"])/g,(o,u,p)=>u===n?u:p===t?`\\${p}`:p||(i&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(u)?u:`\\${u}`));return t+s+t}function Zc(e,t,i,n){let s=e.indexOf(t),o=e.indexOf(i),u=e.indexOf("`");return s>=0&&o>=0&&o>s&&(u<0||s<u)?(n.log({code:e,quotes:t,otherQuotes:i,q1:s,q2:o,qb:u}),!0):!1}function Ym(){try{let e=Object.keys(De.env).filter(t=>t.startsWith("npm_package_")).filter(t=>/(dev)?[Dd]ependencies_+/.test(t));if(e.some(t=>t.includes("vue")&&!t.includes("vuepress")))return"vue";if(e.some(t=>t.includes("svelte")))return"svelte";if(e.some(t=>t.includes("angular")))return"angular"}catch{return"auto"}return"auto"}function Xm(e){return e.length>=3&&e[0]==="["&&e[e.length-1]==="]"}function Zm(e){return e.length>=3&&e[0]==="("&&e[e.length-1]===")"}function ey(e){return e.length>=2&&e[0]==="*"}function ty(e){return e.length>=5&&Pt(e)&&np(e,"{{","}}",1)&&!e.includes("{{",3)}var ry=/\+(json|yaml)$/i,iy=/(^("|'|`))|(("|'|`)$)/g,ny=new Map([["application/ecmascript","babel"],["application/javascript","babel"],["application/json","json"],["text/ecmascript","babel"],["text/javascript","babel"],["text/markdown","markdown"],["text/typescript","typescript"],["module","babel"]]);function sy(e){if(!e)return"babel";let t=e.val;if(typeof t!="string")return;let i=t.replace(iy,"");if(!i)return"babel";let n=ry.exec(i);return n?n[1]:ny.get(i)}function ay(e){return e.length>=3&&Pt(e)&&np(e,"{","}",1)&&!e.includes("{",2)}function oy(e){return/^(v-on:|@).*/.test(e)}function uy(e){return/^((v-(bind|slot))?:|v-(model|slot|if|for|else-if|text|html|t)|#).*/.test(e)}function ly(e,t){return e==="v-for"&&t.includes("of")}function cy(e){return e==="v-bind"}function py(e){return e==="v-on"}function hy(e){return e.startsWith("v-")}var fy=class{constructor(e,t,i){this.content=e,this.tokens=t,this.options=i,this.indentString=i.pugUseTabs?" ":" ".repeat(i.pugTabWidth),i.pugSingleFileComponentIndentation&&this.indentLevel++,this.framework=i.pugFramework!=="auto"?i.pugFramework:Ym(),this.quotes=this.options.pugSingleQuote?"'":'"',this.otherQuotes=this.options.pugSingleQuote?'"':"'";let n=Cm(i.pugAttributeSeparator);this.alwaysUseAttributeSeparator=n==="always",this.neverUseAttributeSeparator=n==="none";let s=i.pugWrapAttributesPattern;this.wrapAttributesPattern=s?new RegExp(s):null,this.codeInterpolationOptions={semi:i.pugSemi??i.semi,singleQuote:i.pugSingleQuote??i.singleQuote,bracketSpacing:i.pugBracketSpacing??i.bracketSpacing,arrowParens:i.pugArrowParens??i.arrowParens,printWidth:9e3,endOfLine:"lf",useTabs:i.pugUseTabs??i.useTabs,tabWidth:i.pugTabWidth??i.tabWidth,bracketSameLine:i.pugBracketSameLine??i.bracketSameLine}}result="";currentIndex=-1;currentLineLength=0;indentString;indentLevel=0;framework="auto";quotes;otherQuotes;alwaysUseAttributeSeparator;neverUseAttributeSeparator;wrapAttributesPattern;codeInterpolationOptions;currentTagPosition=0;possibleIdPosition=0;possibleClassPosition=0;previousAttributeRemapped=!1;wrapAttributes=!1;pipelessText=!1;pipelessComment=!1;currentlyInPugInterpolation=!1;classLiteralToAttribute=[];classLiteralAfterAttributes=[];get computedIndent(){var e;switch((e=this.previousToken)==null?void 0:e.type){case"newline":case"outdent":return this.indentString.repeat(this.indentLevel);case"indent":return this.indentString;case"start-pug-interpolation":return""}return this.options.pugSingleFileComponentIndentation?this.indentString:""}get previousToken(){return this.tokens[this.currentIndex-1]}get nextToken(){return this.tokens[this.currentIndex+1]}async build(){var e,t;ae.isDebugEnabled()&&ae.debug("[PugPrinter]:",JSON.stringify(this.tokens));let i=[];if(((e=this.tokens[0])==null?void 0:e.type)==="text")i.push("| ");else if(((t=this.tokens[0])==null?void 0:t.type)==="eos")return"";let n=this.getNextToken();for(;n;){ae.debug("[PugPrinter]:",JSON.stringify(n));try{switch(n.type){case"attribute":case"class":case"end-attributes":case"id":case"eos":this.result=i.join(""),await this[n.type](n),i.length=0,i.push(this.result);break;case"tag":case"start-attributes":case"interpolation":case"call":case":":this.result=i.join("");default:{if(typeof this[n.type]!="function")throw new Error("Unhandled token: "+JSON.stringify(n));i.push(await this[n.type](n));break}}}catch(s){throw new Error(s)}n=this.getNextToken()}return i.join("")}getNextToken(){return this.currentIndex++,this.tokens[this.currentIndex]??null}quoteString(e){return`${this.quotes}${e}${this.quotes}`}checkTokenType(e,t,i=!1){return!!e&&t.includes(e.type)!==i}tokenNeedsSeparator(e){return this.neverUseAttributeSeparator?!1:this.alwaysUseAttributeSeparator||/^(\(|\[|:).*/.test(e.name)}getUnformattedContentLines(e,t){let{start:i}=e.loc,{end:n}=t.loc,s=this.content.split(/\r\n|\n|\r/),o=i.line-1,u=n.line-1,p=[],m=s[o];m!==void 0&&p.push(m.slice(i.column-1));for(let y=o+1;y<u;y++){let F=s[y];F!==void 0&&p.push(F)}let D=s[u];return D!==void 0&&p.push(D.slice(0,n.column-1)),p}replaceTagWithLiteralIfPossible(e,t){if(this.options.pugExplicitDiv)return;let i=Math.max(this.possibleIdPosition,this.possibleClassPosition),n=this.result.slice(this.currentTagPosition,i),s=n.replace(e,t);if(s!==n){let o=this.result.slice(0,this.currentTagPosition),u=this.result.slice(i);this.result=`${o}${s}${u}`;let p=n.length-s.length;this.possibleIdPosition-=p,this.possibleClassPosition-=p}}async frameworkFormat(e){let t={...this.codeInterpolationOptions,singleQuote:this.options.singleQuote};switch(this.framework){case"angular":t.parser="__ng_interpolation";break;case"svelte":case"vue":default:t.parser="babel",t.semi=!1}let i=await nt(e,t);return i[0]===";"&&(i=i.slice(1)),i}async formatText(e){let t="";for(;e;){let i=e.indexOf("{{");if(i!==-1){t+=e.slice(0,i),e=e.slice(i+2);let n=e.indexOf("}}");if(n!==-1){let s=e.slice(0,n);try{if(Zc(s,this.quotes,this.otherQuotes,ae)){ae.warn("The following expression could not be formatted correctly. Please try to fix it yourself and if there is a problem, please open a bug issue:",s),t+=Ar(this.options.pugBracketSpacing,s),e=e.slice(n+2);continue}else s=await this.frameworkFormat(s)}catch(o){typeof o=="string"?o.includes("Unexpected token Lexer Error")?o.includes("Unexpected character [`]")||ae.debug("[PugPrinter:formatText]: Using fallback strategy"):o.includes("Bindings cannot contain assignments")?ae.warn("[PugPrinter:formatText]: Bindings should not contain assignments:",`code: \`${s.trim()}\``):o.includes("Unexpected token '('")?this.framework!=="vue"&&ae.warn("[PugPrinter:formatText]: Found unexpected token `(`.",`code: \`${s.trim()}\``):o.includes("Missing expected `)`")?this.framework!=="vue"&&ae.warn("[PugPrinter:formatText]: Missing expected `)`.",`code: \`${s.trim()}\``):o.includes("Missing expected `:`")?this.framework!=="vue"&&ae.warn("[PugPrinter:formatText]: Missing expected `:`.",`code: \`${s.trim()}\``):ae.warn("[PugPrinter:formatText]: ",o):ae.warn("[PugPrinter:formatText]: ",o);try{s=await nt(s,{parser:"babel",...this.codeInterpolationOptions,semi:!1}),s[0]===";"&&(s=s.slice(1))}catch(u){ae.warn(u)}}s=Yr(s),t+=Ar(this.options.pugBracketSpacing,s),e=e.slice(n+2)}else t+="{{",t+=e,e=""}else{let n=e.indexOf("{");if(this.options.pugFramework==="svelte"&&n!==-1){t+=e.slice(0,n),e=e.slice(n+1);let s=e.indexOf("}");if(s!==-1){let o=e.slice(0,s);try{if(Zc(o,this.quotes,this.otherQuotes,ae)){ae.warn("The following expression could not be formatted correctly. Please try to fix it yourself and if there is a problem, please open a bug issue:",o),t+=Ar(this.options.pugBracketSpacing,o),e=e.slice(s+1);continue}else o=await this.frameworkFormat(o)}catch(u){ae.warn("[PugPrinter:formatText]: ",u);try{o=await nt(o,{parser:"babel",...this.codeInterpolationOptions,semi:!1}),o[0]===";"&&(o=o.slice(1))}catch(p){ae.warn(p)}}o=Yr(o),t+=Ar(this.options.pugBracketSpacing,o,["{","}"]),e=e.slice(s+1)}else t+="{",t+=e,e=""}else t+=e,e=""}}return t}async formatDelegatePrettier(e,t,i={}){let{trimTrailingSemicolon:n=!1,trimLeadingSemicolon:s=!0}=i;e=e.trim();let o={...this.codeInterpolationOptions},u=Pt(e);return u&&(o.singleQuote=!this.options.pugSingleQuote,e=e.slice(1,-1)),e=await nt(e,{parser:t,...o}),this.quotes==='"'?e=e.replace(/"/g,'\\"'):e=e.replace(/'/g,"\\'"),e=Yr(e),n&&e[e.length-1]===";"&&(e=e.slice(0,-1)),s&&e[0]===";"&&(e=e.slice(1)),u?this.quoteString(e):e}async formatStyleAttribute(e){return this.formatDelegatePrettier(e,"css",{trimTrailingSemicolon:!0})}async formatVueEventBinding(e){return this.formatDelegatePrettier(e,"__vue_event_binding",{trimTrailingSemicolon:!0})}async formatVueExpression(e){return this.formatDelegatePrettier(e,"__vue_expression")}async formatAngularBinding(e){return this.formatDelegatePrettier(e,"__ng_binding")}async formatAngularAction(e){return this.formatDelegatePrettier(e,"__ng_action")}async formatAngularDirective(e){return this.formatDelegatePrettier(e,"__ng_directive")}async formatFrameworkInterpolation(e,t,[i,n]){if(e=e.slice(1,-1),e=e.slice(i.length,-n.length),e=e.trim(),e.includes(`\\${this.otherQuotes}`))ae.warn("The following expression could not be formatted correctly. Please try to fix it yourself and if there is a problem, please open a bug issue:",e);else{let s={...this.codeInterpolationOptions,singleQuote:!this.options.pugSingleQuote};try{e=await nt(e,{parser:t,...s})}catch{ae.warn("The following expression could not be formatted correctly. Please try to fix it yourself and if there is a problem, please open a bug issue:",e)}e=Yr(e)}return e=Ar(this.options.pugBracketSpacing,e,[i,n]),this.quoteString(e)}async formatAngularInterpolation(e){return this.formatFrameworkInterpolation(e,"__ng_interpolation",["{{","}}"])}async formatSvelteInterpolation(e){return this.formatFrameworkInterpolation(e,"__ng_interpolation",["{","}"])}tag(e){let t=e.val;t==="div"&&!this.options.pugExplicitDiv&&this.nextToken&&(this.nextToken.type==="class"&&this.options.pugClassLocation==="before-attributes"||this.nextToken.type==="id")&&(t=""),this.currentLineLength+=t.length;let i=`${this.computedIndent}${t}`;return ae.debug("tag",{result:i,val:e.val,length:e.val.length},this.currentLineLength),this.currentTagPosition=this.result.length+this.computedIndent.length,this.possibleIdPosition=this.result.length+i.length,this.possibleClassPosition=this.result.length+i.length,i}"start-attributes"(e){var t,i,n;let s="";if(((t=this.nextToken)==null?void 0:t.type)==="attribute"){this.previousAttributeRemapped=!1,this.possibleClassPosition=this.result.length,s="(",ae.debug(this.currentLineLength);let o=this.nextToken,u=this.currentIndex+1,p=!1,m=0;for(;o.type==="attribute";){switch(!this.currentlyInPugInterpolation&&!this.wrapAttributes&&(i=this.wrapAttributesPattern)!=null&&i.test(o.name)&&(this.wrapAttributes=!0),o.name){case"class":case"id":{p=!0;let D=o.val.toString();Pt(D)&&(this.currentLineLength-=2),this.currentLineLength+=1+D.length,ae.debug({tokenName:o.name,length:o.name.length},this.currentLineLength);break}default:{this.currentLineLength+=o.name.length,m>0&&(this.currentLineLength+=1,this.tokenNeedsSeparator(o)&&(this.currentLineLength+=1)),ae.debug({tokenName:o.name,length:o.name.length},this.currentLineLength);let D=o.val.toString();D.length>0&&D!=="true"&&(this.currentLineLength+=1+D.length,ae.debug({tokenVal:D,length:D.length},this.currentLineLength)),m++;break}}o=this.tokens[++u]}if(ae.debug("after token",this.currentLineLength),p&&((n=this.previousToken)==null?void 0:n.type)==="tag"&&this.previousToken.val==="div"&&!this.options.pugExplicitDiv&&(this.currentLineLength-=3),m>0&&(this.currentLineLength+=2),this.options.pugClassLocation==="after-attributes"){let D=u,y=this.tokens[++D];for(;y.type==="class";){let F=y.val.toString();this.currentLineLength+=1+F.length,ae.debug({tokenVal:F,length:F.length},this.currentLineLength),y=this.tokens[++D]}}if(ae.debug("final line length",{currentLineLength:this.currentLineLength}),!this.currentlyInPugInterpolation&&!this.wrapAttributes&&(this.currentLineLength>this.options.pugPrintWidth||this.options.pugWrapAttributesThreshold>=0&&m>this.options.pugWrapAttributesThreshold)&&(this.wrapAttributes=!0),this.options.pugSortAttributes!=="as-is"||this.options.pugSortAttributesEnd.length>0||this.options.pugSortAttributesBeginning.length>0){let D=this.tokens.indexOf(e),y=u;y-D>2&&(this.tokens=Vm(this.tokens,D+1,y,(F,E)=>$m(F,E,this.options.pugSortAttributes,this.options.pugSortAttributesBeginning,this.options.pugSortAttributesEnd)))}}return s}async attribute(e){var t;if(Wm(e,this.options.pugEmptyAttributes,this.options.pugEmptyAttributesForceQuotes),typeof e.val=="string"&&Pt(e.val)&&e.val[0]!=="`"){if(e.name==="class"&&this.options.pugClassNotation==="literal"){let n=e.val.slice(1,-1).trim().split(/\s+/),s=[],o=[],u=/^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$/;for(let p of n)u.test(p)?this.options.pugClassLocation==="after-attributes"?this.classLiteralAfterAttributes.push(p):o.push(p):s.push(p);if(o.length>0){let p=this.possibleClassPosition;this.result=[this.result.slice(0,p),".",o.join("."),this.result.slice(p)].join(""),this.possibleClassPosition+=1+o.join(".").length,this.options.pugClassLocation==="before-attributes"&&this.replaceTagWithLiteralIfPossible(/div\./,".")}if(s.length>0)e.val=ws(s.join(" "),this.quotes),this.previousAttributeRemapped=!1;else{this.previousAttributeRemapped=!0;return}}else if(e.name==="id"&&this.options.pugIdNotation!=="as-is"){let n=e.val;if(n=n.slice(1,-1),n=n.trim(),!/^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$/.test(n)){n=ws(n,this.quotes),this.result+="id",e.mustEscape===!1&&(this.result+="!"),this.result+=`=${n}`;return}let s=this.possibleIdPosition,o=`#${n}`;this.result=[this.result.slice(0,s),o,this.result.slice(s)].join(""),this.possibleClassPosition+=o.length,this.replaceTagWithLiteralIfPossible(/div#/,"#"),this.previousAttributeRemapped=!0;return}}let i=zm(this.tokens,this.currentIndex);if(((t=this.previousToken)==null?void 0:t.type)==="attribute"&&(!this.previousAttributeRemapped||i)&&(this.tokenNeedsSeparator(e)&&(this.result+=","),this.wrapAttributes||(this.result+=" ")),this.previousAttributeRemapped=!1,this.wrapAttributes&&(this.result+=`
|
|
155
|
-
`,this.result+=this.indentString.repeat(this.indentLevel+1)),this.result+=`${e.name}`,typeof e.val=="boolean")e.val!==!0&&(this.result+=`=${e.val}`);else if(e.name==="class"&&this.options.pugClassNotation==="attribute"){let n=(Pt(e.val)?e.val.slice(1,-1).trim():e.val).split(/\s+/);if(this.classLiteralToAttribute.length)for(let s=this.classLiteralToAttribute.length-1;s>-1;s--){let o=this.classLiteralToAttribute.splice(s,1)[0];o&&n.unshift(o)}this.result+=`=${Pt(e.val)?this.quoteString(n.join(" ")):n.join(" ")}`}else{let n=e.val;if(!
|
|
153
|
+
`).map(t=>t.trim()).map(t=>(t[0]==="."?"":" ")+t).join("").trim():e}function Ym(e,t){return e==="style"&&Pt(t)}function np(e,t,i,n=0){return e.startsWith(t,n)&&e.endsWith(i,e.length-n)}function Pt(e){return/^(["'`])(.*)\1$/.test(e)?!new RegExp(`${e[0]}(?<!\\\\${e[0]})`).test(e.slice(1,-1)):!1}function Xm(e){return/^`[\s\S]*`$/.test(e)&&e.includes("${")}function Zm(e){return/^`[\s\S]*`$/m.test(e)&&e.includes(`
|
|
154
|
+
`)}function Ar(e,t,[i,n]=["{{","}}"]){return e?`${i} ${t} ${n}`:`${i}${t}${n}`}function xs(e,t,i=!1){let n=t==='"'?"'":'"',s=e.replace(/\\([\s\S])|(['"])/g,(o,u,p)=>u===n?u:p===t?`\\${p}`:p||(i&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(u)?u:`\\${u}`));return t+s+t}function Zc(e,t,i,n){let s=e.indexOf(t),o=e.indexOf(i),u=e.indexOf("`");return s>=0&&o>=0&&o>s&&(u<0||s<u)?(n.log({code:e,quotes:t,otherQuotes:i,q1:s,q2:o,qb:u}),!0):!1}function ey(){try{let e=Object.keys(De.env).filter(t=>t.startsWith("npm_package_")).filter(t=>/(dev)?[Dd]ependencies_+/.test(t));if(e.some(t=>t.includes("vue")&&!t.includes("vuepress")))return"vue";if(e.some(t=>t.includes("svelte")))return"svelte";if(e.some(t=>t.includes("angular")))return"angular"}catch{return"auto"}return"auto"}function ty(e){return e.length>=3&&e[0]==="["&&e[e.length-1]==="]"}function ry(e){return e.length>=3&&e[0]==="("&&e[e.length-1]===")"}function iy(e){return e.length>=2&&e[0]==="*"}function ny(e){return e.length>=5&&Pt(e)&&np(e,"{{","}}",1)&&!e.includes("{{",3)}var sy=/\+(json|yaml)$/i,ay=/(^("|'|`))|(("|'|`)$)/g,oy=new Map([["application/ecmascript","babel"],["application/javascript","babel"],["application/json","json"],["text/ecmascript","babel"],["text/javascript","babel"],["text/markdown","markdown"],["text/typescript","typescript"],["module","babel"]]);function uy(e){if(!e)return"babel";let t=e.val;if(typeof t!="string")return;let i=t.replace(ay,"");if(!i)return"babel";let n=sy.exec(i);return n?n[1]:oy.get(i)}function ly(e){return e.length>=3&&Pt(e)&&np(e,"{","}",1)&&!e.includes("{",2)}function cy(e){return/^(v-on:|@).*/.test(e)}function py(e){return/^((v-(bind|slot))?:|v-(model|slot|if|for|else-if|text|html|t)|#).*/.test(e)}function hy(e,t){return e==="v-for"&&t.includes("of")}function fy(e){return e==="v-bind"}function dy(e){return e==="v-on"}function gy(e){return e.startsWith("v-")}var my=class{constructor(e,t,i){this.content=e,this.tokens=t,this.options=i,this.indentString=i.pugUseTabs?" ":" ".repeat(i.pugTabWidth),i.pugSingleFileComponentIndentation&&this.indentLevel++,this.framework=i.pugFramework!=="auto"?i.pugFramework:ey(),this.quotes=this.options.pugSingleQuote?"'":'"',this.otherQuotes=this.options.pugSingleQuote?'"':"'";let n=_m(i.pugAttributeSeparator);this.alwaysUseAttributeSeparator=n==="always",this.neverUseAttributeSeparator=n==="none";let s=i.pugWrapAttributesPattern;this.wrapAttributesPattern=s?new RegExp(s):null,this.codeInterpolationOptions={semi:i.pugSemi??i.semi,singleQuote:i.pugSingleQuote??i.singleQuote,bracketSpacing:i.pugBracketSpacing??i.bracketSpacing,arrowParens:i.pugArrowParens??i.arrowParens,printWidth:9e3,endOfLine:"lf",useTabs:i.pugUseTabs??i.useTabs,tabWidth:i.pugTabWidth??i.tabWidth,bracketSameLine:i.pugBracketSameLine??i.bracketSameLine}}result="";currentIndex=-1;currentLineLength=0;indentString;indentLevel=0;framework="auto";quotes;otherQuotes;alwaysUseAttributeSeparator;neverUseAttributeSeparator;wrapAttributesPattern;codeInterpolationOptions;currentTagPosition=0;possibleIdPosition=0;possibleClassPosition=0;previousAttributeRemapped=!1;wrapAttributes=!1;pipelessText=!1;pipelessComment=!1;currentlyInPugInterpolation=!1;classLiteralToAttribute=[];classLiteralAfterAttributes=[];get computedIndent(){var e;switch((e=this.previousToken)==null?void 0:e.type){case"newline":case"outdent":return this.indentString.repeat(this.indentLevel);case"indent":return this.indentString;case"start-pug-interpolation":return""}return this.options.pugSingleFileComponentIndentation?this.indentString:""}get previousToken(){return this.tokens[this.currentIndex-1]}get nextToken(){return this.tokens[this.currentIndex+1]}async build(){var e,t;ae.isDebugEnabled()&&ae.debug("[PugPrinter]:",JSON.stringify(this.tokens));let i=[];if(((e=this.tokens[0])==null?void 0:e.type)==="text")i.push("| ");else if(((t=this.tokens[0])==null?void 0:t.type)==="eos")return"";let n=this.getNextToken();for(;n;){ae.debug("[PugPrinter]:",JSON.stringify(n));try{switch(n.type){case"attribute":case"class":case"end-attributes":case"id":case"eos":this.result=i.join(""),await this[n.type](n),i.length=0,i.push(this.result);break;case"tag":case"start-attributes":case"interpolation":case"call":case":":this.result=i.join("");default:{if(typeof this[n.type]!="function")throw new Error("Unhandled token: "+JSON.stringify(n));i.push(await this[n.type](n));break}}}catch(s){throw new Error(s)}n=this.getNextToken()}return i.join("")}getNextToken(){return this.currentIndex++,this.tokens[this.currentIndex]??null}quoteString(e){return`${this.quotes}${e}${this.quotes}`}checkTokenType(e,t,i=!1){return!!e&&t.includes(e.type)!==i}tokenNeedsSeparator(e){return this.neverUseAttributeSeparator?!1:this.alwaysUseAttributeSeparator||/^(\(|\[|:).*/.test(e.name)}getUnformattedContentLines(e,t){let{start:i}=e.loc,{end:n}=t.loc,s=this.content.split(/\r\n|\n|\r/),o=i.line-1,u=n.line-1,p=[],m=s[o];m!==void 0&&p.push(m.slice(i.column-1));for(let y=o+1;y<u;y++){let F=s[y];F!==void 0&&p.push(F)}let D=s[u];return D!==void 0&&p.push(D.slice(0,n.column-1)),p}replaceTagWithLiteralIfPossible(e,t){if(this.options.pugExplicitDiv)return;let i=Math.max(this.possibleIdPosition,this.possibleClassPosition),n=this.result.slice(this.currentTagPosition,i),s=n.replace(e,t);if(s!==n){let o=this.result.slice(0,this.currentTagPosition),u=this.result.slice(i);this.result=`${o}${s}${u}`;let p=n.length-s.length;this.possibleIdPosition-=p,this.possibleClassPosition-=p}}async frameworkFormat(e){let t={...this.codeInterpolationOptions,singleQuote:this.options.singleQuote};switch(this.framework){case"angular":t.parser="__ng_interpolation";break;case"svelte":case"vue":default:t.parser="babel",t.semi=!1}let i=await nt(e,t);return i[0]===";"&&(i=i.slice(1)),i}async formatText(e){let t="";for(;e;){let i=e.indexOf("{{");if(i!==-1){t+=e.slice(0,i),e=e.slice(i+2);let n=e.indexOf("}}");if(n!==-1){let s=e.slice(0,n);try{if(Zc(s,this.quotes,this.otherQuotes,ae)){ae.warn("The following expression could not be formatted correctly. Please try to fix it yourself and if there is a problem, please open a bug issue:",s),t+=Ar(this.options.pugBracketSpacing,s),e=e.slice(n+2);continue}else s=await this.frameworkFormat(s)}catch(o){typeof o=="string"?o.includes("Unexpected token Lexer Error")?o.includes("Unexpected character [`]")||ae.debug("[PugPrinter:formatText]: Using fallback strategy"):o.includes("Bindings cannot contain assignments")?ae.warn("[PugPrinter:formatText]: Bindings should not contain assignments:",`code: \`${s.trim()}\``):o.includes("Unexpected token '('")?this.framework!=="vue"&&ae.warn("[PugPrinter:formatText]: Found unexpected token `(`.",`code: \`${s.trim()}\``):o.includes("Missing expected `)`")?this.framework!=="vue"&&ae.warn("[PugPrinter:formatText]: Missing expected `)`.",`code: \`${s.trim()}\``):o.includes("Missing expected `:`")?this.framework!=="vue"&&ae.warn("[PugPrinter:formatText]: Missing expected `:`.",`code: \`${s.trim()}\``):ae.warn("[PugPrinter:formatText]: ",o):ae.warn("[PugPrinter:formatText]: ",o);try{s=await nt(s,{parser:"babel",...this.codeInterpolationOptions,semi:!1}),s[0]===";"&&(s=s.slice(1))}catch(u){ae.warn(u)}}s=Yr(s),t+=Ar(this.options.pugBracketSpacing,s),e=e.slice(n+2)}else t+="{{",t+=e,e=""}else{let n=e.indexOf("{");if(this.options.pugFramework==="svelte"&&n!==-1){t+=e.slice(0,n),e=e.slice(n+1);let s=e.indexOf("}");if(s!==-1){let o=e.slice(0,s);try{if(Zc(o,this.quotes,this.otherQuotes,ae)){ae.warn("The following expression could not be formatted correctly. Please try to fix it yourself and if there is a problem, please open a bug issue:",o),t+=Ar(this.options.pugBracketSpacing,o),e=e.slice(s+1);continue}else o=await this.frameworkFormat(o)}catch(u){ae.warn("[PugPrinter:formatText]: ",u);try{o=await nt(o,{parser:"babel",...this.codeInterpolationOptions,semi:!1}),o[0]===";"&&(o=o.slice(1))}catch(p){ae.warn(p)}}o=Yr(o),t+=Ar(this.options.pugBracketSpacing,o,["{","}"]),e=e.slice(s+1)}else t+="{",t+=e,e=""}else t+=e,e=""}}return t}async formatDelegatePrettier(e,t,i={}){let{trimTrailingSemicolon:n=!1,trimLeadingSemicolon:s=!0}=i;e=e.trim();let o={...this.codeInterpolationOptions},u=Pt(e);return u&&(o.singleQuote=!this.options.pugSingleQuote,e=e.slice(1,-1)),e=await nt(e,{parser:t,...o}),this.quotes==='"'?e=e.replace(/"/g,'\\"'):e=e.replace(/'/g,"\\'"),e=Yr(e),n&&e[e.length-1]===";"&&(e=e.slice(0,-1)),s&&e[0]===";"&&(e=e.slice(1)),u?this.quoteString(e):e}async formatStyleAttribute(e){return this.formatDelegatePrettier(e,"css",{trimTrailingSemicolon:!0})}async formatVueEventBinding(e){return this.formatDelegatePrettier(e,"__vue_event_binding",{trimTrailingSemicolon:!0})}async formatVueExpression(e){return this.formatDelegatePrettier(e,"__vue_expression")}async formatAngularBinding(e){return this.formatDelegatePrettier(e,"__ng_binding")}async formatAngularAction(e){return this.formatDelegatePrettier(e,"__ng_action")}async formatAngularDirective(e){return this.formatDelegatePrettier(e,"__ng_directive")}async formatFrameworkInterpolation(e,t,[i,n]){if(e=e.slice(1,-1),e=e.slice(i.length,-n.length),e=e.trim(),e.includes(`\\${this.otherQuotes}`))ae.warn("The following expression could not be formatted correctly. Please try to fix it yourself and if there is a problem, please open a bug issue:",e);else{let s={...this.codeInterpolationOptions,singleQuote:!this.options.pugSingleQuote};try{e=await nt(e,{parser:t,...s})}catch{ae.warn("The following expression could not be formatted correctly. Please try to fix it yourself and if there is a problem, please open a bug issue:",e)}e=Yr(e)}return e=Ar(this.options.pugBracketSpacing,e,[i,n]),this.quoteString(e)}async formatAngularInterpolation(e){return this.formatFrameworkInterpolation(e,"__ng_interpolation",["{{","}}"])}async formatSvelteInterpolation(e){return this.formatFrameworkInterpolation(e,"__ng_interpolation",["{","}"])}tag(e){let t=e.val;t==="div"&&!this.options.pugExplicitDiv&&this.nextToken&&(this.nextToken.type==="class"&&this.options.pugClassLocation==="before-attributes"||this.nextToken.type==="id")&&(t=""),this.currentLineLength+=t.length;let i=`${this.computedIndent}${t}`;return ae.debug("tag",{result:i,val:e.val,length:e.val.length},this.currentLineLength),this.currentTagPosition=this.result.length+this.computedIndent.length,this.possibleIdPosition=this.result.length+i.length,this.possibleClassPosition=this.result.length+i.length,i}"start-attributes"(e){var t,i,n;let s="";if(((t=this.nextToken)==null?void 0:t.type)==="attribute"){this.previousAttributeRemapped=!1,this.possibleClassPosition=this.result.length,s="(",ae.debug(this.currentLineLength);let o=this.nextToken,u=this.currentIndex+1,p=!1,m=0;for(;o.type==="attribute";){switch(!this.currentlyInPugInterpolation&&!this.wrapAttributes&&(i=this.wrapAttributesPattern)!=null&&i.test(o.name)&&(this.wrapAttributes=!0),o.name){case"class":case"id":{p=!0;let D=o.val.toString();Pt(D)&&(this.currentLineLength-=2),this.currentLineLength+=1+D.length,ae.debug({tokenName:o.name,length:o.name.length},this.currentLineLength);break}default:{this.currentLineLength+=o.name.length,m>0&&(this.currentLineLength+=1,this.tokenNeedsSeparator(o)&&(this.currentLineLength+=1)),ae.debug({tokenName:o.name,length:o.name.length},this.currentLineLength);let D=o.val.toString();D.length>0&&D!=="true"&&(this.currentLineLength+=1+D.length,ae.debug({tokenVal:D,length:D.length},this.currentLineLength)),m++;break}}o=this.tokens[++u]}if(ae.debug("after token",this.currentLineLength),p&&((n=this.previousToken)==null?void 0:n.type)==="tag"&&this.previousToken.val==="div"&&!this.options.pugExplicitDiv&&(this.currentLineLength-=3),m>0&&(this.currentLineLength+=2),this.options.pugClassLocation==="after-attributes"){let D=u,y=this.tokens[++D];for(;y.type==="class";){let F=y.val.toString();this.currentLineLength+=1+F.length,ae.debug({tokenVal:F,length:F.length},this.currentLineLength),y=this.tokens[++D]}}if(ae.debug("final line length",{currentLineLength:this.currentLineLength}),!this.currentlyInPugInterpolation&&!this.wrapAttributes&&(this.currentLineLength>this.options.pugPrintWidth||this.options.pugWrapAttributesThreshold>=0&&m>this.options.pugWrapAttributesThreshold)&&(this.wrapAttributes=!0),this.options.pugSortAttributes!=="as-is"||this.options.pugSortAttributesEnd.length>0||this.options.pugSortAttributesBeginning.length>0){let D=this.tokens.indexOf(e),y=u;y-D>2&&(this.tokens=Gm(this.tokens,D+1,y,(F,E)=>qm(F,E,this.options.pugSortAttributes,this.options.pugSortAttributesBeginning,this.options.pugSortAttributesEnd)))}}return s}async attribute(e){var t;if(Hm(e,this.options.pugEmptyAttributes,this.options.pugEmptyAttributesForceQuotes),typeof e.val=="string"&&Pt(e.val)&&e.val[0]!=="`"){if(e.name==="class"&&this.options.pugClassNotation==="literal"){let n=e.val.slice(1,-1).trim().split(/\s+/),s=[],o=[],u=/^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$/;for(let p of n)u.test(p)?this.options.pugClassLocation==="after-attributes"?this.classLiteralAfterAttributes.push(p):o.push(p):s.push(p);if(o.length>0){let p=this.possibleClassPosition;this.result=[this.result.slice(0,p),".",o.join("."),this.result.slice(p)].join(""),this.possibleClassPosition+=1+o.join(".").length,this.options.pugClassLocation==="before-attributes"&&this.replaceTagWithLiteralIfPossible(/div\./,".")}if(s.length>0)e.val=xs(s.join(" "),this.quotes),this.previousAttributeRemapped=!1;else{this.previousAttributeRemapped=!0;return}}else if(e.name==="id"&&this.options.pugIdNotation!=="as-is"){let n=e.val;if(n=n.slice(1,-1),n=n.trim(),!/^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$/.test(n)){n=xs(n,this.quotes),this.result+="id",e.mustEscape===!1&&(this.result+="!"),this.result+=`=${n}`;return}let s=this.possibleIdPosition,o=`#${n}`;this.result=[this.result.slice(0,s),o,this.result.slice(s)].join(""),this.possibleClassPosition+=o.length,this.replaceTagWithLiteralIfPossible(/div#/,"#"),this.previousAttributeRemapped=!0;return}}let i=Km(this.tokens,this.currentIndex);if(((t=this.previousToken)==null?void 0:t.type)==="attribute"&&(!this.previousAttributeRemapped||i)&&(this.tokenNeedsSeparator(e)&&(this.result+=","),this.wrapAttributes||(this.result+=" ")),this.previousAttributeRemapped=!1,this.wrapAttributes&&(this.result+=`
|
|
155
|
+
`,this.result+=this.indentString.repeat(this.indentLevel+1)),this.result+=`${e.name}`,typeof e.val=="boolean")e.val!==!0&&(this.result+=`=${e.val}`);else if(e.name==="class"&&this.options.pugClassNotation==="attribute"){let n=(Pt(e.val)?e.val.slice(1,-1).trim():e.val).split(/\s+/);if(this.classLiteralToAttribute.length)for(let s=this.classLiteralToAttribute.length-1;s>-1;s--){let o=this.classLiteralToAttribute.splice(s,1)[0];o&&n.unshift(o)}this.result+=`=${Pt(e.val)?this.quoteString(n.join(" ")):n.join(" ")}`}else{let n=e.val;if(!Zm(n)&&!Xm(n))if(hy(e.name,n))n=await this.formatDelegatePrettier(n,"vue");else if(py(e.name))n=await this.formatVueExpression(n);else if(cy(e.name))n=await this.formatVueEventBinding(n);else if(this.framework==="vue"&&gy(e.name))n=await this.formatVueExpression(n);else if(fy(e.name))n=await this.formatDelegatePrettier(n,"__js_expression");else if(dy(e.name))n=await this.formatDelegatePrettier(n,"__js_expression");else if(ty(e.name))n=await this.formatAngularBinding(n);else if(ry(e.name))n=await this.formatAngularAction(n);else if(iy(e.name))n=await this.formatAngularDirective(n);else if(ny(n))n=await this.formatAngularInterpolation(n);else if(ly(n))n=await this.formatSvelteInterpolation(n);else if(Ym(e.name,e.val))n=await this.formatStyleAttribute(n);else{let s=n.trimEnd();if(Pt(s))n=xs(s.slice(1,-1),this.quotes);else{if(n==="true")return;if(e.mustEscape){n=await nt(n,{parser:"__js_expression",...this.codeInterpolationOptions});let o=n.split(`
|
|
156
156
|
`),u=this.wrapAttributes?this.indentLevel+1:this.indentLevel;if(o.length>1){n=o[0]??"";for(let p=1;p<o.length;p++)n+=`
|
|
157
157
|
`,n+=this.indentString.repeat(u),n+=o[p]}}else n=n.trim(),n=n.replace(/\s\s+/g," "),n[0]==="{"&&n[1]===" "&&(n=`{${n.slice(2,n.length)}`)}}e.mustEscape===!1&&(this.result+="!"),this.result+=`=${n}`}}"end-attributes"(e){var t,i,n,s,o,u,p;if(this.wrapAttributes&&this.result[this.result.length-1]!=="("&&(this.options.pugBracketSameLine||(this.result+=`
|
|
158
158
|
`),this.result+=this.indentString.repeat(this.indentLevel)),this.wrapAttributes=!1,this.classLiteralToAttribute.length){((t=this.previousToken)==null?void 0:t.type)==="start-attributes"?this.result+="(":((i=this.previousToken)==null?void 0:i.type)==="attribute"&&(this.result+=" ");let m=this.classLiteralToAttribute.splice(0,this.classLiteralToAttribute.length);this.result+=`class=${this.quoteString(m.join(" "))}`,((n=this.previousToken)==null?void 0:n.type)==="start-attributes"&&(this.result+=")")}if(this.result[this.result.length-1]==="("?this.result=this.result.slice(0,-1):((s=this.previousToken)==null?void 0:s.type)==="attribute"?(this.options.pugBracketSameLine&&(this.result=this.result.trimEnd()),this.result+=")"):this.options.pugPreserveAttributeBrackets&&((o=this.previousToken)==null?void 0:o.type)==="start-attributes"&&(this.result+="()"),this.result[this.result.length-1]===")"&&this.classLiteralAfterAttributes.length>0){let m=this.classLiteralAfterAttributes.splice(0,this.classLiteralAfterAttributes.length);this.result+=`.${m.join(".")}`}this.options.pugClassLocation==="after-attributes"&&(this.possibleClassPosition=this.result.length),(((u=this.nextToken)==null?void 0:u.type)==="text"||((p=this.nextToken)==null?void 0:p.type)==="path")&&(this.result+=" ")}indent(e){let t=`
|
|
@@ -169,7 +169,7 @@ ${this.indentString.repeat(this.indentLevel)}`;return this.indentLevel++,this.cu
|
|
|
169
169
|
`,u+=this.indentString.repeat(this.indentLevel)),u+="|",/.*\S.*/.test(e.val)&&(u+=" ");break;case"interpolated-code":case"end-pug-interpolation":/^ .+$/.test(p)||p===" "?u+=" ":/^.+ $/.test(p)&&(m=!0);break}p=p.trim(),p=await this.formatText(p),p=p.replace(/#(\{|\[)/g,"\\#$1")}return this.checkTokenType(this.previousToken,["tag","id","interpolation","call","&attributes","filter"])&&(p.length===0&&((s=this.nextToken)==null?void 0:s.type)==="indent"?D=!1:p=` ${p}`),u+=p,m&&(u+=" "),D&&((o=this.nextToken)==null?void 0:o.type)==="indent"&&(u+=`
|
|
170
170
|
`+this.indentString.repeat(this.indentLevel+1)+"|"),u}"interpolated-code"(e){var t;let i="";switch((t=this.previousToken)==null?void 0:t.type){case"tag":case"class":case"id":case"end-attributes":i=" ";break;case"start-pug-interpolation":i="| ";break;case"indent":case"newline":case"outdent":i=this.computedIndent,i+=this.pipelessText?this.indentString:"| ";break}return i+=e.mustEscape?"#":"!",i+=Ar(this.options.pugBracketSpacing,e.val.trim(),["{","}"]),i}async code(e){let t=this.computedIndent;!e.mustEscape&&e.buffer&&(t+="!"),t+=e.buffer?"=":"-";let i=this.options.pugSemi;i&&(e.mustEscape||e.buffer)&&(i=!1);let n=e.val;try{let s=n;n=await nt(n,{parser:"babel",...this.codeInterpolationOptions,semi:i,endOfLine:"lf"}),n=n.slice(0,-1),n[0]===";"&&(n=n.slice(1)),n.includes(`
|
|
171
171
|
`)&&(n=s)}catch(s){ae.warn("[PugPrinter]:",s)}return t+=` ${n}`,t}id(e){var t;let i=`#${e.val}`;switch(this.currentLineLength+=i.length,(t=this.previousToken)==null?void 0:t.type){case void 0:case"newline":case"outdent":case"indent":{let n=this.options.pugExplicitDiv?"div":"",s=`${this.computedIndent}${n}${i}`;this.currentLineLength+=n.length,this.result+=s,this.possibleClassPosition=this.result.length;break}default:{let n=this.result.slice(0,this.possibleIdPosition);this.possibleClassPosition+=i.length,this.result=[n,i,this.result.slice(this.possibleIdPosition)].join("");break}}}async"start-pipeless-text"(e){var t;this.pipelessText=!0;let i=`
|
|
172
|
-
${this.indentString.repeat(this.indentLevel)}`;if(((t=this.previousToken)==null?void 0:t.type)==="dot"){let n=
|
|
172
|
+
${this.indentString.repeat(this.indentLevel)}`;if(((t=this.previousToken)==null?void 0:t.type)==="dot"){let n=Qm(this.tokens,this.currentIndex),s;switch(n?.val){case"script":s=uy(Jm(this.tokens,this.currentIndex));break;case"style":s="css";break;default:break}if(s){let o=this.currentIndex+1,u=this.tokens[o],p="",m=!1;for(;u&&u?.type!=="end-pipeless-text";){switch(u.type){case"text":p+=u.val;break;case"newline":p+=`
|
|
173
173
|
`;break;case"interpolated-code":m=!0,p+=u.mustEscape?"#":"!",p+=`{${u.val}}`;break;default:ae.warn("[PugPrinter:start-pipeless-text]:","Unhandled token for pipeless script tag:",JSON.stringify(u));break}o++,u=this.tokens[o]}try{i=await nt(p,{parser:s,...this.codeInterpolationOptions})}catch(y){if(!m)throw ae.error(y),y;let F=["[PugPrinter:start-pipeless-text]:","The following expression could not be formatted correctly.","This is likely a syntax error or an issue caused by the missing execution context.","If you think this is a bug, please open a bug issue."];F.push(`
|
|
174
174
|
code: \`${p.trim()}\``),F.push(`
|
|
175
175
|
You used interpolated code in your pipeless script tag, so you may ignore this warning.`),Ol.isNativeError(y)?F.push(`
|
|
@@ -178,10 +178,10 @@ Unexpected error for parser ${s}.`,y)),ae.warn(...F),i=p}i=i.trimEnd();let D=thi
|
|
|
178
178
|
`).map(y=>y?D+y:"").join(`
|
|
179
179
|
`),i=`
|
|
180
180
|
${i}`,u=this.tokens[o-1],u?.type==="text"&&u.val===""&&(i+=`
|
|
181
|
-
`),this.currentIndex=o-1}}return i}"end-pipeless-text"(e){return this.pipelessText=!1,this.pipelessComment=!1,""}doctype(e){let t=`${this.computedIndent}doctype`;return e.val&&(t+=` ${e.val}`),t}dot(e){return"."}block(e){let t=`${this.computedIndent}block `;return e.mode!=="replace"&&(t+=`${e.mode} `),t+=e.val,t}extends(e){return`${this.options.pugSingleFileComponentIndentation?this.indentString:""}extends `}path(e){let t="";return this.checkTokenType(this.previousToken,["include","filter"])&&(t+=" "),t+=e.val,t}"start-pug-interpolation"(e){var t,i;let n="";return((t=this.tokens[this.currentIndex-2])==null?void 0:t.type)==="newline"&&((i=this.previousToken)==null?void 0:i.type)==="text"&&this.previousToken.val.trim().length===0&&(n+=this.indentString.repeat(this.indentLevel+1)),this.currentlyInPugInterpolation=!0,n+="#[",n}"end-pug-interpolation"(e){return this.currentlyInPugInterpolation=!1,"]"}interpolation(e){let t=`${this.computedIndent}#{${e.val}}`;return this.currentLineLength+=t.length,this.possibleIdPosition=this.result.length+t.length,this.possibleClassPosition=this.result.length+t.length,t}include(e){return`${this.computedIndent}include`}filter(e){return`${this.computedIndent}:${e.val}`}call(e){let t=`${this.computedIndent}+${e.val}`,i=e.args;return i&&(i=i.trim(),i=i.replace(/\s\s+/g," "),t+=`(${i})`),this.currentLineLength+=t.length,this.possibleIdPosition=this.result.length+t.length,this.possibleClassPosition=this.result.length+t.length,t}mixin(e){let t=`${this.computedIndent}mixin ${e.val}`,i=e.args;return i&&(i=i.trim(),i=i.replace(/\s\s+/g," "),t+=`(${i})`),t}if(e){let t=this.computedIndent,i=/^!\((.*)\)$/.exec(e.val);return ae.debug("[PugPrinter]:",i),t+=i?`unless ${i[1]}`:`if ${e.val}`,t}"mixin-block"(e){return`${this.computedIndent}block`}else(e){return`${this.computedIndent}else`}"&attributes"(e){let t=`&attributes(${e.val})`;return this.currentLineLength+=t.length,t}"text-html"(e){let t=/^<(.*?)>(.*)<\/(.*?)>$/.exec(e.val);if(ae.debug("[PugPrinter]:",t),t)return`${this.computedIndent}${t[1]} ${t[2]}`;let i=Object.entries(
|
|
181
|
+
`),this.currentIndex=o-1}}return i}"end-pipeless-text"(e){return this.pipelessText=!1,this.pipelessComment=!1,""}doctype(e){let t=`${this.computedIndent}doctype`;return e.val&&(t+=` ${e.val}`),t}dot(e){return"."}block(e){let t=`${this.computedIndent}block `;return e.mode!=="replace"&&(t+=`${e.mode} `),t+=e.val,t}extends(e){return`${this.options.pugSingleFileComponentIndentation?this.indentString:""}extends `}path(e){let t="";return this.checkTokenType(this.previousToken,["include","filter"])&&(t+=" "),t+=e.val,t}"start-pug-interpolation"(e){var t,i;let n="";return((t=this.tokens[this.currentIndex-2])==null?void 0:t.type)==="newline"&&((i=this.previousToken)==null?void 0:i.type)==="text"&&this.previousToken.val.trim().length===0&&(n+=this.indentString.repeat(this.indentLevel+1)),this.currentlyInPugInterpolation=!0,n+="#[",n}"end-pug-interpolation"(e){return this.currentlyInPugInterpolation=!1,"]"}interpolation(e){let t=`${this.computedIndent}#{${e.val}}`;return this.currentLineLength+=t.length,this.possibleIdPosition=this.result.length+t.length,this.possibleClassPosition=this.result.length+t.length,t}include(e){return`${this.computedIndent}include`}filter(e){return`${this.computedIndent}:${e.val}`}call(e){let t=`${this.computedIndent}+${e.val}`,i=e.args;return i&&(i=i.trim(),i=i.replace(/\s\s+/g," "),t+=`(${i})`),this.currentLineLength+=t.length,this.possibleIdPosition=this.result.length+t.length,this.possibleClassPosition=this.result.length+t.length,t}mixin(e){let t=`${this.computedIndent}mixin ${e.val}`,i=e.args;return i&&(i=i.trim(),i=i.replace(/\s\s+/g," "),t+=`(${i})`),t}if(e){let t=this.computedIndent,i=/^!\((.*)\)$/.exec(e.val);return ae.debug("[PugPrinter]:",i),t+=i?`unless ${i[1]}`:`if ${e.val}`,t}"mixin-block"(e){return`${this.computedIndent}block`}else(e){return`${this.computedIndent}else`}"&attributes"(e){let t=`&attributes(${e.val})`;return this.currentLineLength+=t.length,t}"text-html"(e){let t=/^<(.*?)>(.*)<\/(.*?)>$/.exec(e.val);if(ae.debug("[PugPrinter]:",t),t)return`${this.computedIndent}${t[1]} ${t[2]}`;let i=Object.entries(Vm).find(([n])=>n===e.val.toLowerCase());return i?`${this.computedIndent}${i[1]}`:`${this.computedIndent}${e.val}`}each(e){let t=`${this.computedIndent}each ${e.val}`;return e.key!==null&&(t+=`, ${e.key}`),t+=` in ${e.code}`,t}async eachOf(e){let t=e.value.trim();t=await nt(t,{parser:"babel",...this.codeInterpolationOptions,semi:!1}),t[0]===";"&&(t=t.slice(1)),t=Yr(t);let i=e.code.trim();return`${this.computedIndent}each ${t} of ${i}`}while(e){return`${this.computedIndent}while ${e.val}`}case(e){return`${this.computedIndent}case ${e.val}`}when(e){return`${this.computedIndent}when ${e.val}`}":"(e){return this.possibleIdPosition=this.result.length+2,this.possibleClassPosition=this.result.length+2,": "}default(e){return`${this.computedIndent}default`}"else-if"(e){return`${this.computedIndent}else if ${e.val}`}blockcode(e){return`${this.computedIndent}-`}yield(e){return`${this.computedIndent}yield`}slash(e){var t;let i="/";return((t=this.nextToken)==null?void 0:t.type)==="text"&&(i+=" "),i}},Sr={languages:[{name:"Pug",parsers:["pug"],tmScope:"text.jade",aceMode:"jade",codemirrorMode:"pug",codemirrorMimeType:"text/x-pug",extensions:[".jade",".pug"],linguistLanguageId:179,vscodeLanguageIds:["jade","pug"]}],parsers:{pug:{parse(e,t){ae.debug("[parsers:pug:parse]:",{text:e});let i=e.replace(/^\s*\n/,""),n=/^\s*/.exec(i);if(n!=null&&n[0]){let u=new RegExp(`(^|\\n)${n[0]}`,"g");i=i.replace(u,"$1")}let s=i,o=(0,ep.default)(s);return{content:s,tokens:o}},astFormat:"pug-ast",hasPragma(e){return e.startsWith(`//- @prettier
|
|
182
182
|
`)||e.startsWith(`//- @format
|
|
183
|
-
`)},locStart(e){return ae.debug("[parsers:pug:locStart]:",{node:e}),0},locEnd(e){return ae.debug("[parsers:pug:locEnd]:",{node:e}),0},preprocess(e,t){return ae.debug("[parsers:pug:preprocess]:",{text:e}),e}}},printers:{"pug-ast":{async print(e,t){let i=e.stack[0],{content:n,tokens:s}=i,o=
|
|
184
|
-
${e}`}}},options
|
|
183
|
+
`)},locStart(e){return ae.debug("[parsers:pug:locStart]:",{node:e}),0},locEnd(e){return ae.debug("[parsers:pug:locEnd]:",{node:e}),0},preprocess(e,t){return ae.debug("[parsers:pug:preprocess]:",{text:e}),e}}},printers:{"pug-ast":{async print(e,t){let i=e.stack[0],{content:n,tokens:s}=i,o=Mm(t),u=await new my(n,s,o).build();return ae.debug("[printers:pug-ast:print]:",u),u},insertPragma(e){return`//- @prettier
|
|
184
|
+
${e}`}}},options:$m,defaultOptions:{}},yy=Sr.languages,Dy=Sr.parsers,vy=Sr.printers,by=Sr.options,Ey=Sr.defaultOptions;return Ms(xy);})();
|
|
185
185
|
/*! Bundled license information:
|
|
186
186
|
|
|
187
187
|
@jspm/core/nodelibs/browser/buffer.js:
|