@live-codes/browser-compilers 0.4.11 → 0.5.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 +42 -42
- package/dist/babel-preset-solid/babel-preset-solid.js +67 -17
- package/dist/gnuplot/gnuplot.js +4675 -0
- package/dist/gnuplot/gnuplot_api.js +99 -0
- package/dist/mdx/mdx.js +48 -2348
- package/dist/postcss/postcss.js +18 -18
- package/dist/postcss-preset-env/postcss-preset-env.js +131 -1440
- package/dist/prettier/parser-pug.js +105 -105
- package/dist/remark-gfm/remark-gfm.js +14 -0
- package/dist/sass/sass.js +253 -0
- package/dist/svgbob-wasm/svgbob-wasm.js +119 -0
- package/package.json +16 -12
- package/scripts/patch.js +25 -0
- package/scripts/vendors-module.mjs +21 -0
- package/scripts/vendors.js +66 -19
- package/vendor-licenses.md +8 -0
- package/vendor_modules/imports/babel-preset-solid.js +1 -1
- package/vendor_modules/imports/mdx.ts +1 -2
- package/vendor_modules/imports/remark-gfm.js +3 -0
- package/vendor_modules/imports/sass.ts +16 -0
- package/vendor_modules/src/gnuplot-JS/LICENSE +21 -0
- package/vendor_modules/src/gnuplot-JS/README +55 -0
- package/vendor_modules/src/gnuplot-JS/gnuplot-4.6.3/em_make +7 -0
- package/vendor_modules/src/gnuplot-JS/gnuplot-4.6.3/gnuplot-4.6.3.patch +13 -0
- package/vendor_modules/src/gnuplot-JS/gnuplot-4.6.3/post.js +17 -0
- package/vendor_modules/src/gnuplot-JS/gnuplot-4.6.3/pre.js +62 -0
- package/vendor_modules/src/gnuplot-JS/www/gnuplot.js +4675 -0
- package/vendor_modules/src/gnuplot-JS/www/gnuplot_api.js +99 -0
- package/vendor_modules/src/gnuplot-JS/www/index.html +182 -0
- package/vendor_modules/src/stylus/readme.md +1 -0
- package/vendor_modules/src/svgbob-wasm/readme.md +1 -0
- package/vendor_modules/src/svgbob-wasm/svgbob-wasm.js +119 -0
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
var pluginPug=(()=>{var ge=(f,g)=>()=>(g||f((g={exports:{}}).exports,g),g.exports);var
|
|
1
|
+
var pluginPug=(()=>{var ge=(f,g)=>()=>(g||f((g={exports:{}}).exports,g),g.exports);var Hp=ge((Fk,xy)=>{"use strict";var Ay=Object.getOwnPropertySymbols,m8=Object.prototype.hasOwnProperty,y8=Object.prototype.propertyIsEnumerable;function D8(f){if(f==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(f)}function b8(){try{if(!Object.assign)return!1;var f=new String("abc");if(f[5]="de",Object.getOwnPropertyNames(f)[0]==="5")return!1;for(var g={},D=0;D<10;D++)g["_"+String.fromCharCode(D)]=D;var C=Object.getOwnPropertyNames(g).map(function(k){return g[k]});if(C.join("")!=="0123456789")return!1;var S={};return"abcdefghijklmnopqrst".split("").forEach(function(k){S[k]=k}),Object.keys(Object.assign({},S)).join("")==="abcdefghijklmnopqrst"}catch(k){return!1}}xy.exports=b8()?Object.assign:function(f,g){for(var D,C=D8(f),S,k=1;k<arguments.length;k++){D=Object(arguments[k]);for(var _ in D)m8.call(D,_)&&(C[_]=D[_]);if(Ay){S=Ay(D);for(var O=0;O<S.length;O++)y8.call(D,S[O])&&(C[S[O]]=D[S[O]])}}return C}});var wy=ge((Tk,Sy)=>{Sy.exports=function(g){return g&&typeof g=="object"&&typeof g.copy=="function"&&typeof g.fill=="function"&&typeof g.readUInt8=="function"}});var Fy=ge((kk,zp)=>{typeof Object.create=="function"?zp.exports=function(g,D){g.super_=D,g.prototype=Object.create(D.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}})}:zp.exports=function(g,D){g.super_=D;var C=function(){};C.prototype=D.prototype,g.prototype=new C,g.prototype.constructor=g}});var Py=ge(Ne=>{var E8=/%[sdj%]/g;Ne.format=function(f){if(!ao(f)){for(var g=[],D=0;D<arguments.length;D++)g.push(wr(arguments[D]));return g.join(" ")}for(var D=1,C=arguments,S=C.length,k=String(f).replace(E8,function(O){if(O==="%%")return"%";if(D>=S)return O;switch(O){case"%s":return String(C[D++]);case"%d":return Number(C[D++]);case"%j":try{return JSON.stringify(C[D++])}catch(j){return"[Circular]"}default:return O}}),_=C[D];D<S;_=C[++D])so(_)||!Zi(_)?k+=" "+_:k+=" "+wr(_);return k};Ne.deprecate=function(f,g){if(Zn(window.process))return function(){return Ne.deprecate(f,g).apply(this,arguments)};if(process.noDeprecation===!0)return f;var D=!1;function C(){if(!D){if(process.throwDeprecation)throw new Error(g);process.traceDeprecation?console.trace(g):console.error(g),D=!0}return f.apply(this,arguments)}return C};var uo={},Jp;Ne.debuglog=function(f){if(Zn(Jp)&&(Jp=process.env.NODE_DEBUG||""),f=f.toUpperCase(),!uo[f])if(new RegExp("\\b"+f+"\\b","i").test(Jp)){var g=process.pid;uo[f]=function(){var D=Ne.format.apply(Ne,arguments);console.error("%s %d: %s",f,g,D)}}else uo[f]=function(){};return uo[f]};function wr(f,g){var D={seen:[],stylize:C8};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),Xp(g)?D.showHidden=g:g&&Ne._extend(D,g),Zn(D.showHidden)&&(D.showHidden=!1),Zn(D.depth)&&(D.depth=2),Zn(D.colors)&&(D.colors=!1),Zn(D.customInspect)&&(D.customInspect=!0),D.colors&&(D.stylize=v8),oo(D,f,D.depth)}Ne.inspect=wr;wr.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]};wr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function v8(f,g){var D=wr.styles[g];return D?"["+wr.colors[D][0]+"m"+f+"["+wr.colors[D][1]+"m":f}function C8(f,g){return f}function x8(f){var g={};return f.forEach(function(D,C){g[D]=!0}),g}function oo(f,g,D){if(f.customInspect&&g&&po(g.inspect)&&g.inspect!==Ne.inspect&&!(g.constructor&&g.constructor.prototype===g)){var C=g.inspect(D,f);return ao(C)||(C=oo(f,C,D)),C}var S=A8(f,g);if(S)return S;var k=Object.keys(g),_=x8(k);if(f.showHidden&&(k=Object.getOwnPropertyNames(g)),co(g)&&(k.indexOf("message")>=0||k.indexOf("description")>=0))return Yp(g);if(k.length===0){if(po(g)){var O=g.name?": "+g.name:"";return f.stylize("[Function"+O+"]","special")}if(lo(g))return f.stylize(RegExp.prototype.toString.call(g),"regexp");if(Qp(g))return f.stylize(Date.prototype.toString.call(g),"date");if(co(g))return Yp(g)}var j="",W=!1,z=["{","}"];if(Ty(g)&&(W=!0,z=["[","]"]),po(g)){var Q=g.name?": "+g.name:"";j=" [Function"+Q+"]"}if(lo(g)&&(j=" "+RegExp.prototype.toString.call(g)),Qp(g)&&(j=" "+Date.prototype.toUTCString.call(g)),co(g)&&(j=" "+Yp(g)),k.length===0&&(!W||g.length==0))return z[0]+j+z[1];if(D<0)return lo(g)?f.stylize(RegExp.prototype.toString.call(g),"regexp"):f.stylize("[Object]","special");f.seen.push(g);var ee;return W?ee=S8(f,g,D,_,k):ee=k.map(function(ye){return Kp(f,g,D,_,ye,W)}),f.seen.pop(),w8(ee,j,z)}function A8(f,g){if(Zn(g))return f.stylize("undefined","undefined");if(ao(g)){var D="'"+JSON.stringify(g).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return f.stylize(D,"string")}if(ky(g))return f.stylize(""+g,"number");if(Xp(g))return f.stylize(""+g,"boolean");if(so(g))return f.stylize("null","null")}function Yp(f){return"["+Error.prototype.toString.call(f)+"]"}function S8(f,g,D,C,S){for(var k=[],_=0,O=g.length;_<O;++_)_y(g,String(_))?k.push(Kp(f,g,D,C,String(_),!0)):k.push("");return S.forEach(function(j){j.match(/^\d+$/)||k.push(Kp(f,g,D,C,j,!0))}),k}function Kp(f,g,D,C,S,k){var _,O,j;if(j=Object.getOwnPropertyDescriptor(g,S)||{value:g[S]},j.get?j.set?O=f.stylize("[Getter/Setter]","special"):O=f.stylize("[Getter]","special"):j.set&&(O=f.stylize("[Setter]","special")),_y(C,S)||(_="["+S+"]"),O||(f.seen.indexOf(j.value)<0?(so(D)?O=oo(f,j.value,null):O=oo(f,j.value,D-1),O.indexOf(`
|
|
2
2
|
`)>-1&&(k?O=O.split(`
|
|
3
3
|
`).map(function(W){return" "+W}).join(`
|
|
4
4
|
`).substr(2):O=`
|
|
5
5
|
`+O.split(`
|
|
6
6
|
`).map(function(W){return" "+W}).join(`
|
|
7
|
-
`))):O=f.stylize("[Circular]","special")),Zn(_)){if(k&&S.match(/^\d+$/))return O;_=JSON.stringify(""+S),_.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(_=_.substr(1,_.length-2),_=f.stylize(_,"name")):(_=_.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),_=f.stylize(_,"string"))}return _+": "+O}function
|
|
7
|
+
`))):O=f.stylize("[Circular]","special")),Zn(_)){if(k&&S.match(/^\d+$/))return O;_=JSON.stringify(""+S),_.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(_=_.substr(1,_.length-2),_=f.stylize(_,"name")):(_=_.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),_=f.stylize(_,"string"))}return _+": "+O}function w8(f,g,D){var C=0,S=f.reduce(function(k,_){return C++,_.indexOf(`
|
|
8
8
|
`)>=0&&C++,k+_.replace(/\u001b\[\d\d?m/g,"").length+1},0);return S>60?D[0]+(g===""?"":g+`
|
|
9
9
|
`)+" "+f.join(`,
|
|
10
|
-
`)+" "+D[1]:D[0]+g+" "+f.join(", ")+" "+D[1]}function
|
|
10
|
+
`)+" "+D[1]:D[0]+g+" "+f.join(", ")+" "+D[1]}function Ty(f){return Array.isArray(f)}Ne.isArray=Ty;function Xp(f){return typeof f=="boolean"}Ne.isBoolean=Xp;function so(f){return f===null}Ne.isNull=so;function F8(f){return f==null}Ne.isNullOrUndefined=F8;function ky(f){return typeof f=="number"}Ne.isNumber=ky;function ao(f){return typeof f=="string"}Ne.isString=ao;function T8(f){return typeof f=="symbol"}Ne.isSymbol=T8;function Zn(f){return f===void 0}Ne.isUndefined=Zn;function lo(f){return Zi(f)&&Zp(f)==="[object RegExp]"}Ne.isRegExp=lo;function Zi(f){return typeof f=="object"&&f!==null}Ne.isObject=Zi;function Qp(f){return Zi(f)&&Zp(f)==="[object Date]"}Ne.isDate=Qp;function co(f){return Zi(f)&&(Zp(f)==="[object Error]"||f instanceof Error)}Ne.isError=co;function po(f){return typeof f=="function"}Ne.isFunction=po;function k8(f){return f===null||typeof f=="boolean"||typeof f=="number"||typeof f=="string"||typeof f=="symbol"||typeof f=="undefined"}Ne.isPrimitive=k8;Ne.isBuffer=wy();function Zp(f){return Object.prototype.toString.call(f)}function ef(f){return f<10?"0"+f.toString(10):f.toString(10)}var _8=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P8(){var f=new Date,g=[ef(f.getHours()),ef(f.getMinutes()),ef(f.getSeconds())].join(":");return[f.getDate(),_8[f.getMonth()],g].join(" ")}Ne.log=function(){console.log("%s - %s",P8(),Ne.format.apply(Ne,arguments))};Ne.inherits=Fy();Ne._extend=function(f,g){if(!g||!Zi(g))return f;for(var D=Object.keys(g),C=D.length;C--;)f[D[C]]=g[D[C]];return f};function _y(f,g){return Object.prototype.hasOwnProperty.call(f,g)}});var Jy=ge((Pk,By)=>{"use strict";var B8=Hp();function Ny(f,g){if(f===g)return 0;for(var D=f.length,C=g.length,S=0,k=Math.min(D,C);S<k;++S)if(f[S]!==g[S]){D=f[S],C=g[S];break}return D<C?-1:C<D?1:0}function ha(f){return window.Buffer&&typeof window.Buffer.isBuffer=="function"?window.Buffer.isBuffer(f):!!(f!=null&&f._isBuffer)}var mn=Py(),N8=Object.prototype.hasOwnProperty,Oy=Array.prototype.slice,Iy=function(){return function(){}.name==="foo"}();function Ly(f){return Object.prototype.toString.call(f)}function Ry(f){return ha(f)||typeof window.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(f):f?!!(f instanceof DataView||f.buffer&&f.buffer instanceof ArrayBuffer):!1}var ke=By.exports=My,O8=/\s*function\s+([^\(\s]*)\s*/;function jy(f){if(!!mn.isFunction(f)){if(Iy)return f.name;var g=f.toString(),D=g.match(O8);return D&&D[1]}}ke.AssertionError=function(g){this.name="AssertionError",this.actual=g.actual,this.expected=g.expected,this.operator=g.operator,g.message?(this.message=g.message,this.generatedMessage=!1):(this.message=I8(this),this.generatedMessage=!0);var D=g.stackStartFunction||It;if(Error.captureStackTrace)Error.captureStackTrace(this,D);else{var C=new Error;if(C.stack){var S=C.stack,k=jy(D),_=S.indexOf(`
|
|
11
11
|
`+k);if(_>=0){var O=S.indexOf(`
|
|
12
|
-
`,_+1);S=S.substring(O+1)}this.stack=S}}};mn.inherits(ke.AssertionError,Error);function jy(f,g){return typeof f=="string"?f.length<g?f:f.slice(0,g):f}function Vy(f){if(Oy||!mn.isFunction(f))return mn.inspect(f);var g=My(f),D=g?": "+g:"";return"[Function"+D+"]"}function N8(f){return jy(Vy(f.actual),128)+" "+f.operator+" "+jy(Vy(f.expected),128)}function It(f,g,D,C,S){throw new ke.AssertionError({message:D,actual:f,expected:g,operator:C,stackStartFunction:S})}ke.fail=It;function Ry(f,g){f||It(f,!0,g,"==",ke.ok)}ke.ok=Ry;ke.equal=function(g,D,C){g!=D&&It(g,D,C,"==",ke.equal)};ke.notEqual=function(g,D,C){g==D&&It(g,D,C,"!=",ke.notEqual)};ke.deepEqual=function(g,D,C){es(g,D,!1)||It(g,D,C,"deepEqual",ke.deepEqual)};ke.deepStrictEqual=function(g,D,C){es(g,D,!0)||It(g,D,C,"deepStrictEqual",ke.deepStrictEqual)};function es(f,g,D,C){if(f===g)return!0;if(ha(f)&&ha(g))return By(f,g)===0;if(mn.isDate(f)&&mn.isDate(g))return f.getTime()===g.getTime();if(mn.isRegExp(f)&&mn.isRegExp(g))return f.source===g.source&&f.global===g.global&&f.multiline===g.multiline&&f.lastIndex===g.lastIndex&&f.ignoreCase===g.ignoreCase;if((f===null||typeof f!="object")&&(g===null||typeof g!="object"))return D?f===g:f==g;if(Ly(f)&&Ly(g)&&Iy(f)===Iy(g)&&!(f instanceof Float32Array||f instanceof Float64Array))return By(new Uint8Array(f.buffer),new Uint8Array(g.buffer))===0;if(ha(f)!==ha(g))return!1;C=C||{actual:[],expected:[]};var S=C.actual.indexOf(f);return S!==-1&&S===C.expected.indexOf(g)?!0:(C.actual.push(f),C.expected.push(g),O8(f,g,D,C))}function Uy(f){return Object.prototype.toString.call(f)=="[object Arguments]"}function O8(f,g,D,C){if(f==null||g===null||g===void 0)return!1;if(mn.isPrimitive(f)||mn.isPrimitive(g))return f===g;if(D&&Object.getPrototypeOf(f)!==Object.getPrototypeOf(g))return!1;var S=Uy(f),k=Uy(g);if(S&&!k||!S&&k)return!1;if(S)return f=Ny.call(f),g=Ny.call(g),es(f,g,D);var _=qy(f),O=qy(g),j,W;if(_.length!==O.length)return!1;for(_.sort(),O.sort(),W=_.length-1;W>=0;W--)if(_[W]!==O[W])return!1;for(W=_.length-1;W>=0;W--)if(j=_[W],!es(f[j],g[j],D,C))return!1;return!0}ke.notDeepEqual=function(g,D,C){es(g,D,!1)&&It(g,D,C,"notDeepEqual",ke.notDeepEqual)};ke.notDeepStrictEqual=$y;function $y(f,g,D){es(f,g,!0)&&It(f,g,D,"notDeepStrictEqual",$y)}ke.strictEqual=function(g,D,C){g!==D&&It(g,D,C,"===",ke.strictEqual)};ke.notStrictEqual=function(g,D,C){g===D&&It(g,D,C,"!==",ke.notStrictEqual)};function Wy(f,g){if(!f||!g)return!1;if(Object.prototype.toString.call(g)=="[object RegExp]")return g.test(f);try{if(f instanceof g)return!0}catch(D){}return Error.isPrototypeOf(g)?!1:g.call({},f)===!0}function I8(f){var g;try{f()}catch(D){g=D}return g}function Gy(f,g,D,C){var S;if(typeof g!="function")throw new TypeError('"block" argument must be a function');typeof D=="string"&&(C=D,D=null),S=I8(g),C=(D&&D.name?" ("+D.name+").":".")+(C?" "+C:"."),f&&!S&&It(S,D,"Missing expected exception"+C);var k=typeof C=="string",_=!f&&mn.isError(S),O=!f&&S&&!D;if((_&&k&&Wy(S,D)||O)&&It(S,D,"Got unwanted exception"+C),f&&S&&D&&!Wy(S,D)||!f&&S)throw S}ke.throws=function(f,g,D){Gy(!0,f,g,D)};ke.doesNotThrow=function(f,g,D){Gy(!1,f,g,D)};ke.ifError=function(f){if(f)throw f};function Hy(f,g){f||It(f,!0,g,"==",Hy)}ke.strict=_8(Hy,ke,{equal:ke.strictEqual,deepEqual:ke.deepStrictEqual,notEqual:ke.notStrictEqual,notDeepEqual:ke.notDeepStrictEqual});ke.strict.strict=ke.strict;var qy=Object.keys||function(f){var g=[];for(var D in f)P8.call(f,D)&&g.push(D);return g}});var Xy=ge((fo,Jy)=>{(function(f,g){typeof fo=="object"&&typeof Jy!="undefined"?g(fo):typeof define=="function"&&define.amd?define(["exports"],g):(f=f||self,g(f.acorn={}))})(fo,function(f){"use strict";var g={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"},D="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",C={5:D,"5module":D+" export import",6:D+" const class extends export import super"},S=/^in(stanceof)?$/,k="\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",_="\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",O=new RegExp("["+k+"]"),j=new RegExp("["+k+_+"]");k=_=null;var W=[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],X=[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 se(o,y){for(var v=65536,w=0;w<y.length;w+=2){if(v+=y[w],v>o)return!1;if(v+=y[w+1],v>=o)return!0}}function re(o,y){return o<65?o===36:o<91?!0:o<97?o===95:o<123?!0:o<=65535?o>=170&&O.test(String.fromCharCode(o)):y===!1?!1:se(o,W)}function me(o,y){return o<48?o===36:o<58?!0:o<65?!1:o<91?!0:o<97?o===95:o<123?!0:o<=65535?o>=170&&j.test(String.fromCharCode(o)):y===!1?!1:se(o,W)||se(o,X)}var le=function(y,v){v===void 0&&(v={}),this.label=y,this.keyword=v.keyword,this.beforeExpr=!!v.beforeExpr,this.startsExpr=!!v.startsExpr,this.isLoop=!!v.isLoop,this.isAssign=!!v.isAssign,this.prefix=!!v.prefix,this.postfix=!!v.postfix,this.binop=v.binop||null,this.updateContext=null};function _e(o,y){return new le(o,{beforeExpr:!0,binop:y})}var Ue={beforeExpr:!0},Xe={startsExpr:!0},yn={};function de(o,y){return y===void 0&&(y={}),y.keyword=o,yn[o]=new le(o,y)}var T={num:new le("num",Xe),regexp:new le("regexp",Xe),string:new le("string",Xe),name:new le("name",Xe),eof:new le("eof"),bracketL:new le("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new le("]"),braceL:new le("{",{beforeExpr:!0,startsExpr:!0}),braceR:new le("}"),parenL:new le("(",{beforeExpr:!0,startsExpr:!0}),parenR:new le(")"),comma:new le(",",Ue),semi:new le(";",Ue),colon:new le(":",Ue),dot:new le("."),question:new le("?",Ue),questionDot:new le("?."),arrow:new le("=>",Ue),template:new le("template"),invalidTemplate:new le("invalidTemplate"),ellipsis:new le("...",Ue),backQuote:new le("`",Xe),dollarBraceL:new le("${",{beforeExpr:!0,startsExpr:!0}),eq:new le("=",{beforeExpr:!0,isAssign:!0}),assign:new le("_=",{beforeExpr:!0,isAssign:!0}),incDec:new le("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new le("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:_e("||",1),logicalAND:_e("&&",2),bitwiseOR:_e("|",3),bitwiseXOR:_e("^",4),bitwiseAND:_e("&",5),equality:_e("==/!=/===/!==",6),relational:_e("</>/<=/>=",7),bitShift:_e("<</>>/>>>",8),plusMin:new le("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:_e("%",10),star:_e("*",10),slash:_e("/",10),starstar:new le("**",{beforeExpr:!0}),coalesce:_e("??",1),_break:de("break"),_case:de("case",Ue),_catch:de("catch"),_continue:de("continue"),_debugger:de("debugger"),_default:de("default",Ue),_do:de("do",{isLoop:!0,beforeExpr:!0}),_else:de("else",Ue),_finally:de("finally"),_for:de("for",{isLoop:!0}),_function:de("function",Xe),_if:de("if"),_return:de("return",Ue),_switch:de("switch"),_throw:de("throw",Ue),_try:de("try"),_var:de("var"),_const:de("const"),_while:de("while",{isLoop:!0}),_with:de("with"),_new:de("new",{beforeExpr:!0,startsExpr:!0}),_this:de("this",Xe),_super:de("super",Xe),_class:de("class",Xe),_extends:de("extends",Ue),_export:de("export"),_import:de("import",Xe),_null:de("null",Xe),_true:de("true",Xe),_false:de("false",Xe),_in:de("in",{beforeExpr:!0,binop:7}),_instanceof:de("instanceof",{beforeExpr:!0,binop:7}),_typeof:de("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:de("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:de("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},rt=/\r\n?|\n|\u2028|\u2029/,sn=new RegExp(rt.source,"g");function rr(o,y){return o===10||o===13||!y&&(o===8232||o===8233)}var ci=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,yt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,os=Object.prototype,ls=os.hasOwnProperty,Lo=os.toString;function Nr(o,y){return ls.call(o,y)}var cs=Array.isArray||function(o){return Lo.call(o)==="[object Array]"};function Ht(o){return new RegExp("^(?:"+o.replace(/ /g,"|")+")$")}var On=function(y,v){this.line=y,this.column=v};On.prototype.offset=function(y){return new On(this.line,this.column+y)};var ir=function(y,v,w){this.start=v,this.end=w,y.sourceFile!==null&&(this.source=y.sourceFile)};function ps(o,y){for(var v=1,w=0;;){sn.lastIndex=w;var B=sn.exec(o);if(B&&B.index<y)++v,w=B.index+B[0].length;else return new On(v,y-w)}}var pi={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 ya(o){var y={};for(var v in pi)y[v]=o&&Nr(o,v)?o[v]:pi[v];if(y.ecmaVersion>=2015&&(y.ecmaVersion-=2009),y.allowReserved==null&&(y.allowReserved=y.ecmaVersion<5),cs(y.onToken)){var w=y.onToken;y.onToken=function(B){return w.push(B)}}return cs(y.onComment)&&(y.onComment=fs(y,y.onComment)),y}function fs(o,y){return function(v,w,B,M,V,H){var K={type:v?"Block":"Line",value:w,start:B,end:M};o.locations&&(K.loc=new ir(this,V,H)),o.ranges&&(K.range=[B,M]),y.push(K)}}var sr=1,ar=2,an=sr|ar,hs=4,ds=8,fi=16,Da=32,ba=64,Or=128;function hi(o,y){return ar|(o?hs:0)|(y?ds:0)}var In=0,di=1,Lt=2,Ea=3,va=4,gi=5,qe=function(y,v,w){this.options=y=ya(y),this.sourceFile=y.sourceFile,this.keywords=Ht(C[y.ecmaVersion>=6?6:y.sourceType==="module"?"5module":5]);var B="";if(y.allowReserved!==!0){for(var M=y.ecmaVersion;!(B=g[M]);M--);y.sourceType==="module"&&(B+=" await")}this.reservedWords=Ht(B);var V=(B?B+" ":"")+g.strict;this.reservedWordsStrict=Ht(V),this.reservedWordsStrictBind=Ht(V+" "+g.strictBind),this.input=String(v),this.containsEsc=!1,w?(this.pos=w,this.lineStart=this.input.lastIndexOf(`
|
|
13
|
-
`,w-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(rt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=T.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=y.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&&y.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(sr),this.regexpState=null},Dn={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};qe.prototype.parse=function(){var y=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(y)},Dn.inFunction.get=function(){return(this.currentVarScope().flags&ar)>0},Dn.inGenerator.get=function(){return(this.currentVarScope().flags&ds)>0},Dn.inAsync.get=function(){return(this.currentVarScope().flags&hs)>0},Dn.allowSuper.get=function(){return(this.currentThisScope().flags&ba)>0},Dn.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Or)>0},Dn.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},qe.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&ar)>0},qe.extend=function(){for(var y=[],v=arguments.length;v--;)y[v]=arguments[v];for(var w=this,B=0;B<y.length;B++)w=y[B](w);return w},qe.parse=function(y,v){return new this(v,y).parse()},qe.parseExpressionAt=function(y,v,w){var B=new this(w,y,v);return B.nextToken(),B.parseExpression()},qe.tokenizer=function(y,v){return new this(v,y)},Object.defineProperties(qe.prototype,Dn);var it=qe.prototype,Ro=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;it.strictDirective=function(o){for(;;){yt.lastIndex=o,o+=yt.exec(this.input)[0].length;var y=Ro.exec(this.input.slice(o));if(!y)return!1;if((y[1]||y[2])==="use strict"){yt.lastIndex=o+y[0].length;var v=yt.exec(this.input),w=v.index+v[0].length,B=this.input.charAt(w);return B===";"||B==="}"||rt.test(v[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(B)||B==="!"&&this.input.charAt(w+1)==="=")}o+=y[0].length,yt.lastIndex=o,o+=yt.exec(this.input)[0].length,this.input[o]===";"&&o++}},it.eat=function(o){return this.type===o?(this.next(),!0):!1},it.isContextual=function(o){return this.type===T.name&&this.value===o&&!this.containsEsc},it.eatContextual=function(o){return this.isContextual(o)?(this.next(),!0):!1},it.expectContextual=function(o){this.eatContextual(o)||this.unexpected()},it.canInsertSemicolon=function(){return this.type===T.eof||this.type===T.braceR||rt.test(this.input.slice(this.lastTokEnd,this.start))},it.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},it.semicolon=function(){!this.eat(T.semi)&&!this.insertSemicolon()&&this.unexpected()},it.afterTrailingComma=function(o,y){if(this.type===o)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),y||this.next(),!0},it.expect=function(o){this.eat(o)||this.unexpected()},it.unexpected=function(o){this.raise(o??this.start,"Unexpected token")};function Ir(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}it.checkPatternErrors=function(o,y){if(!!o){o.trailingComma>-1&&this.raiseRecoverable(o.trailingComma,"Comma is not permitted after the rest element");var v=y?o.parenthesizedAssign:o.parenthesizedBind;v>-1&&this.raiseRecoverable(v,"Parenthesized pattern")}},it.checkExpressionErrors=function(o,y){if(!o)return!1;var v=o.shorthandAssign,w=o.doubleProto;if(!y)return v>=0||w>=0;v>=0&&this.raise(v,"Shorthand property assignments are valid only in destructuring patterns"),w>=0&&this.raiseRecoverable(w,"Redefinition of __proto__ property")},it.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")},it.isSimpleAssignTarget=function(o){return o.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(o.expression):o.type==="Identifier"||o.type==="MemberExpression"};var ce=qe.prototype;ce.parseTopLevel=function(o){var y={};for(o.body||(o.body=[]);this.type!==T.eof;){var v=this.parseStatement(null,!0,y);o.body.push(v)}if(this.inModule)for(var w=0,B=Object.keys(this.undefinedExports);w<B.length;w+=1){var M=B[w];this.raiseRecoverable(this.undefinedExports[M].start,"Export '"+M+"' is not defined")}return this.adaptDirectivePrologue(o.body),this.next(),o.sourceType=this.options.sourceType,this.finishNode(o,"Program")};var gs={kind:"loop"},ms={kind:"switch"};ce.isLet=function(o){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;yt.lastIndex=this.pos;var y=yt.exec(this.input),v=this.pos+y[0].length,w=this.input.charCodeAt(v);if(w===91)return!0;if(o)return!1;if(w===123)return!0;if(re(w,!0)){for(var B=v+1;me(this.input.charCodeAt(B),!0);)++B;var M=this.input.slice(v,B);if(!S.test(M))return!0}return!1},ce.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;yt.lastIndex=this.pos;var o=yt.exec(this.input),y=this.pos+o[0].length;return!rt.test(this.input.slice(this.pos,y))&&this.input.slice(y,y+8)==="function"&&(y+8===this.input.length||!me(this.input.charAt(y+8)))},ce.parseStatement=function(o,y,v){var w=this.type,B=this.startNode(),M;switch(this.isLet(o)&&(w=T._var,M="let"),w){case T._break:case T._continue:return this.parseBreakContinueStatement(B,w.keyword);case T._debugger:return this.parseDebuggerStatement(B);case T._do:return this.parseDoStatement(B);case T._for:return this.parseForStatement(B);case T._function:return o&&(this.strict||o!=="if"&&o!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(B,!1,!o);case T._class:return o&&this.unexpected(),this.parseClass(B,!0);case T._if:return this.parseIfStatement(B);case T._return:return this.parseReturnStatement(B);case T._switch:return this.parseSwitchStatement(B);case T._throw:return this.parseThrowStatement(B);case T._try:return this.parseTryStatement(B);case T._const:case T._var:return M=M||this.value,o&&M!=="var"&&this.unexpected(),this.parseVarStatement(B,M);case T._while:return this.parseWhileStatement(B);case T._with:return this.parseWithStatement(B);case T.braceL:return this.parseBlock(!0,B);case T.semi:return this.parseEmptyStatement(B);case T._export:case T._import:if(this.options.ecmaVersion>10&&w===T._import){yt.lastIndex=this.pos;var V=yt.exec(this.input),H=this.pos+V[0].length,K=this.input.charCodeAt(H);if(K===40||K===46)return this.parseExpressionStatement(B,this.parseExpression())}return this.options.allowImportExportEverywhere||(y||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'")),w===T._import?this.parseImport(B):this.parseExport(B,v);default:if(this.isAsyncFunction())return o&&this.unexpected(),this.next(),this.parseFunctionStatement(B,!0,!o);var De=this.value,Be=this.parseExpression();return w===T.name&&Be.type==="Identifier"&&this.eat(T.colon)?this.parseLabeledStatement(B,De,Be,o):this.parseExpressionStatement(B,Be)}},ce.parseBreakContinueStatement=function(o,y){var v=y==="break";this.next(),this.eat(T.semi)||this.insertSemicolon()?o.label=null:this.type!==T.name?this.unexpected():(o.label=this.parseIdent(),this.semicolon());for(var w=0;w<this.labels.length;++w){var B=this.labels[w];if((o.label==null||B.name===o.label.name)&&(B.kind!=null&&(v||B.kind==="loop")||o.label&&v))break}return w===this.labels.length&&this.raise(o.start,"Unsyntactic "+y),this.finishNode(o,v?"BreakStatement":"ContinueStatement")},ce.parseDebuggerStatement=function(o){return this.next(),this.semicolon(),this.finishNode(o,"DebuggerStatement")},ce.parseDoStatement=function(o){return this.next(),this.labels.push(gs),o.body=this.parseStatement("do"),this.labels.pop(),this.expect(T._while),o.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(T.semi):this.semicolon(),this.finishNode(o,"DoWhileStatement")},ce.parseForStatement=function(o){this.next();var y=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(gs),this.enterScope(0),this.expect(T.parenL),this.type===T.semi)return y>-1&&this.unexpected(y),this.parseFor(o,null);var v=this.isLet();if(this.type===T._var||this.type===T._const||v){var w=this.startNode(),B=v?"let":this.value;return this.next(),this.parseVar(w,!0,B),this.finishNode(w,"VariableDeclaration"),(this.type===T._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&w.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===T._in?y>-1&&this.unexpected(y):o.await=y>-1),this.parseForIn(o,w)):(y>-1&&this.unexpected(y),this.parseFor(o,w))}var M=new Ir,V=this.parseExpression(!0,M);return this.type===T._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===T._in?y>-1&&this.unexpected(y):o.await=y>-1),this.toAssignable(V,!1,M),this.checkLVal(V),this.parseForIn(o,V)):(this.checkExpressionErrors(M,!0),y>-1&&this.unexpected(y),this.parseFor(o,V))},ce.parseFunctionStatement=function(o,y,v){return this.next(),this.parseFunction(o,un|(v?0:mi),!1,y)},ce.parseIfStatement=function(o){return this.next(),o.test=this.parseParenExpression(),o.consequent=this.parseStatement("if"),o.alternate=this.eat(T._else)?this.parseStatement("if"):null,this.finishNode(o,"IfStatement")},ce.parseReturnStatement=function(o){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(T.semi)||this.insertSemicolon()?o.argument=null:(o.argument=this.parseExpression(),this.semicolon()),this.finishNode(o,"ReturnStatement")},ce.parseSwitchStatement=function(o){this.next(),o.discriminant=this.parseParenExpression(),o.cases=[],this.expect(T.braceL),this.labels.push(ms),this.enterScope(0);for(var y,v=!1;this.type!==T.braceR;)if(this.type===T._case||this.type===T._default){var w=this.type===T._case;y&&this.finishNode(y,"SwitchCase"),o.cases.push(y=this.startNode()),y.consequent=[],this.next(),w?y.test=this.parseExpression():(v&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),v=!0,y.test=null),this.expect(T.colon)}else y||this.unexpected(),y.consequent.push(this.parseStatement(null));return this.exitScope(),y&&this.finishNode(y,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(o,"SwitchStatement")},ce.parseThrowStatement=function(o){return this.next(),rt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),o.argument=this.parseExpression(),this.semicolon(),this.finishNode(o,"ThrowStatement")};var Lr=[];ce.parseTryStatement=function(o){if(this.next(),o.block=this.parseBlock(),o.handler=null,this.type===T._catch){var y=this.startNode();if(this.next(),this.eat(T.parenL)){y.param=this.parseBindingAtom();var v=y.param.type==="Identifier";this.enterScope(v?Da:0),this.checkLVal(y.param,v?va:Lt),this.expect(T.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),y.param=null,this.enterScope(0);y.body=this.parseBlock(!1),this.exitScope(),o.handler=this.finishNode(y,"CatchClause")}return o.finalizer=this.eat(T._finally)?this.parseBlock():null,!o.handler&&!o.finalizer&&this.raise(o.start,"Missing catch or finally clause"),this.finishNode(o,"TryStatement")},ce.parseVarStatement=function(o,y){return this.next(),this.parseVar(o,!1,y),this.semicolon(),this.finishNode(o,"VariableDeclaration")},ce.parseWhileStatement=function(o){return this.next(),o.test=this.parseParenExpression(),this.labels.push(gs),o.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(o,"WhileStatement")},ce.parseWithStatement=function(o){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),o.object=this.parseParenExpression(),o.body=this.parseStatement("with"),this.finishNode(o,"WithStatement")},ce.parseEmptyStatement=function(o){return this.next(),this.finishNode(o,"EmptyStatement")},ce.parseLabeledStatement=function(o,y,v,w){for(var B=0,M=this.labels;B<M.length;B+=1){var V=M[B];V.name===y&&this.raise(v.start,"Label '"+y+"' is already declared")}for(var H=this.type.isLoop?"loop":this.type===T._switch?"switch":null,K=this.labels.length-1;K>=0;K--){var De=this.labels[K];if(De.statementStart===o.start)De.statementStart=this.start,De.kind=H;else break}return this.labels.push({name:y,kind:H,statementStart:this.start}),o.body=this.parseStatement(w?w.indexOf("label")===-1?w+"label":w:"label"),this.labels.pop(),o.label=v,this.finishNode(o,"LabeledStatement")},ce.parseExpressionStatement=function(o,y){return o.expression=y,this.semicolon(),this.finishNode(o,"ExpressionStatement")},ce.parseBlock=function(o,y,v){for(o===void 0&&(o=!0),y===void 0&&(y=this.startNode()),y.body=[],this.expect(T.braceL),o&&this.enterScope(0);this.type!==T.braceR;){var w=this.parseStatement(null);y.body.push(w)}return v&&(this.strict=!1),this.next(),o&&this.exitScope(),this.finishNode(y,"BlockStatement")},ce.parseFor=function(o,y){return o.init=y,this.expect(T.semi),o.test=this.type===T.semi?null:this.parseExpression(),this.expect(T.semi),o.update=this.type===T.parenR?null:this.parseExpression(),this.expect(T.parenR),o.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(o,"ForStatement")},ce.parseForIn=function(o,y){var v=this.type===T._in;return this.next(),y.type==="VariableDeclaration"&&y.declarations[0].init!=null&&(!v||this.options.ecmaVersion<8||this.strict||y.kind!=="var"||y.declarations[0].id.type!=="Identifier")?this.raise(y.start,(v?"for-in":"for-of")+" loop variable declaration may not have an initializer"):y.type==="AssignmentPattern"&&this.raise(y.start,"Invalid left-hand side in for-loop"),o.left=y,o.right=v?this.parseExpression():this.parseMaybeAssign(),this.expect(T.parenR),o.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(o,v?"ForInStatement":"ForOfStatement")},ce.parseVar=function(o,y,v){for(o.declarations=[],o.kind=v;;){var w=this.startNode();if(this.parseVarId(w,v),this.eat(T.eq)?w.init=this.parseMaybeAssign(y):v==="const"&&!(this.type===T._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():w.id.type!=="Identifier"&&!(y&&(this.type===T._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):w.init=null,o.declarations.push(this.finishNode(w,"VariableDeclarator")),!this.eat(T.comma))break}return o},ce.parseVarId=function(o,y){o.id=this.parseBindingAtom(),this.checkLVal(o.id,y==="var"?di:Lt,!1)};var un=1,mi=2,ys=4;ce.parseFunction=function(o,y,v,w){this.initFunction(o),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!w)&&(this.type===T.star&&y&mi&&this.unexpected(),o.generator=this.eat(T.star)),this.options.ecmaVersion>=8&&(o.async=!!w),y&un&&(o.id=y&ys&&this.type!==T.name?null:this.parseIdent(),o.id&&!(y&mi)&&this.checkLVal(o.id,this.strict||o.generator||o.async?this.treatFunctionsAsVar?di:Lt:Ea));var B=this.yieldPos,M=this.awaitPos,V=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(hi(o.async,o.generator)),y&un||(o.id=this.type===T.name?this.parseIdent():null),this.parseFunctionParams(o),this.parseFunctionBody(o,v,!1),this.yieldPos=B,this.awaitPos=M,this.awaitIdentPos=V,this.finishNode(o,y&un?"FunctionDeclaration":"FunctionExpression")},ce.parseFunctionParams=function(o){this.expect(T.parenL),o.params=this.parseBindingList(T.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ce.parseClass=function(o,y){this.next();var v=this.strict;this.strict=!0,this.parseClassId(o,y),this.parseClassSuper(o);var w=this.startNode(),B=!1;for(w.body=[],this.expect(T.braceL);this.type!==T.braceR;){var M=this.parseClassElement(o.superClass!==null);M&&(w.body.push(M),M.type==="MethodDefinition"&&M.kind==="constructor"&&(B&&this.raise(M.start,"Duplicate constructor in the same class"),B=!0))}return this.strict=v,this.next(),o.body=this.finishNode(w,"ClassBody"),this.finishNode(o,y?"ClassDeclaration":"ClassExpression")},ce.parseClassElement=function(o){var y=this;if(this.eat(T.semi))return null;var v=this.startNode(),w=function(K,De){De===void 0&&(De=!1);var Be=y.start,ot=y.startLoc;return y.eatContextual(K)?y.type!==T.parenL&&(!De||!y.canInsertSemicolon())?!0:(v.key&&y.unexpected(),v.computed=!1,v.key=y.startNodeAt(Be,ot),v.key.name=K,y.finishNode(v.key,"Identifier"),!1):!1};v.kind="method",v.static=w("static");var B=this.eat(T.star),M=!1;B||(this.options.ecmaVersion>=8&&w("async",!0)?(M=!0,B=this.options.ecmaVersion>=9&&this.eat(T.star)):w("get")?v.kind="get":w("set")&&(v.kind="set")),v.key||this.parsePropertyName(v);var V=v.key,H=!1;return!v.computed&&!v.static&&(V.type==="Identifier"&&V.name==="constructor"||V.type==="Literal"&&V.value==="constructor")?(v.kind!=="method"&&this.raise(V.start,"Constructor can't have get/set modifier"),B&&this.raise(V.start,"Constructor can't be a generator"),M&&this.raise(V.start,"Constructor can't be an async method"),v.kind="constructor",H=o):v.static&&V.type==="Identifier"&&V.name==="prototype"&&this.raise(V.start,"Classes may not have a static property named prototype"),this.parseClassMethod(v,B,M,H),v.kind==="get"&&v.value.params.length!==0&&this.raiseRecoverable(v.value.start,"getter should have no params"),v.kind==="set"&&v.value.params.length!==1&&this.raiseRecoverable(v.value.start,"setter should have exactly one param"),v.kind==="set"&&v.value.params[0].type==="RestElement"&&this.raiseRecoverable(v.value.params[0].start,"Setter cannot use rest params"),v},ce.parseClassMethod=function(o,y,v,w){return o.value=this.parseMethod(y,v,w),this.finishNode(o,"MethodDefinition")},ce.parseClassId=function(o,y){this.type===T.name?(o.id=this.parseIdent(),y&&this.checkLVal(o.id,Lt,!1)):(y===!0&&this.unexpected(),o.id=null)},ce.parseClassSuper=function(o){o.superClass=this.eat(T._extends)?this.parseExprSubscripts():null},ce.parseExport=function(o,y){if(this.next(),this.eat(T.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(o.exported=this.parseIdent(!0),this.checkExport(y,o.exported.name,this.lastTokStart)):o.exported=null),this.expectContextual("from"),this.type!==T.string&&this.unexpected(),o.source=this.parseExprAtom(),this.semicolon(),this.finishNode(o,"ExportAllDeclaration");if(this.eat(T._default)){this.checkExport(y,"default",this.lastTokStart);var v;if(this.type===T._function||(v=this.isAsyncFunction())){var w=this.startNode();this.next(),v&&this.next(),o.declaration=this.parseFunction(w,un|ys,!1,v)}else if(this.type===T._class){var B=this.startNode();o.declaration=this.parseClass(B,"nullableID")}else o.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(o,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())o.declaration=this.parseStatement(null),o.declaration.type==="VariableDeclaration"?this.checkVariableExport(y,o.declaration.declarations):this.checkExport(y,o.declaration.id.name,o.declaration.id.start),o.specifiers=[],o.source=null;else{if(o.declaration=null,o.specifiers=this.parseExportSpecifiers(y),this.eatContextual("from"))this.type!==T.string&&this.unexpected(),o.source=this.parseExprAtom();else{for(var M=0,V=o.specifiers;M<V.length;M+=1){var H=V[M];this.checkUnreserved(H.local),this.checkLocalExport(H.local)}o.source=null}this.semicolon()}return this.finishNode(o,"ExportNamedDeclaration")},ce.checkExport=function(o,y,v){!o||(Nr(o,y)&&this.raiseRecoverable(v,"Duplicate export '"+y+"'"),o[y]=!0)},ce.checkPatternExport=function(o,y){var v=y.type;if(v==="Identifier")this.checkExport(o,y.name,y.start);else if(v==="ObjectPattern")for(var w=0,B=y.properties;w<B.length;w+=1){var M=B[w];this.checkPatternExport(o,M)}else if(v==="ArrayPattern")for(var V=0,H=y.elements;V<H.length;V+=1){var K=H[V];K&&this.checkPatternExport(o,K)}else v==="Property"?this.checkPatternExport(o,y.value):v==="AssignmentPattern"?this.checkPatternExport(o,y.left):v==="RestElement"?this.checkPatternExport(o,y.argument):v==="ParenthesizedExpression"&&this.checkPatternExport(o,y.expression)},ce.checkVariableExport=function(o,y){if(!!o)for(var v=0,w=y;v<w.length;v+=1){var B=w[v];this.checkPatternExport(o,B.id)}},ce.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},ce.parseExportSpecifiers=function(o){var y=[],v=!0;for(this.expect(T.braceL);!this.eat(T.braceR);){if(v)v=!1;else if(this.expect(T.comma),this.afterTrailingComma(T.braceR))break;var w=this.startNode();w.local=this.parseIdent(!0),w.exported=this.eatContextual("as")?this.parseIdent(!0):w.local,this.checkExport(o,w.exported.name,w.exported.start),y.push(this.finishNode(w,"ExportSpecifier"))}return y},ce.parseImport=function(o){return this.next(),this.type===T.string?(o.specifiers=Lr,o.source=this.parseExprAtom()):(o.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),o.source=this.type===T.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(o,"ImportDeclaration")},ce.parseImportSpecifiers=function(){var o=[],y=!0;if(this.type===T.name){var v=this.startNode();if(v.local=this.parseIdent(),this.checkLVal(v.local,Lt),o.push(this.finishNode(v,"ImportDefaultSpecifier")),!this.eat(T.comma))return o}if(this.type===T.star){var w=this.startNode();return this.next(),this.expectContextual("as"),w.local=this.parseIdent(),this.checkLVal(w.local,Lt),o.push(this.finishNode(w,"ImportNamespaceSpecifier")),o}for(this.expect(T.braceL);!this.eat(T.braceR);){if(y)y=!1;else if(this.expect(T.comma),this.afterTrailingComma(T.braceR))break;var B=this.startNode();B.imported=this.parseIdent(!0),this.eatContextual("as")?B.local=this.parseIdent():(this.checkUnreserved(B.imported),B.local=B.imported),this.checkLVal(B.local,Lt),o.push(this.finishNode(B,"ImportSpecifier"))}return o},ce.adaptDirectivePrologue=function(o){for(var y=0;y<o.length&&this.isDirectiveCandidate(o[y]);++y)o[y].directive=o[y].expression.raw.slice(1,-1)},ce.isDirectiveCandidate=function(o){return o.type==="ExpressionStatement"&&o.expression.type==="Literal"&&typeof o.expression.value=="string"&&(this.input[o.start]==='"'||this.input[o.start]==="'")};var st=qe.prototype;st.toAssignable=function(o,y,v){if(this.options.ecmaVersion>=6&&o)switch(o.type){case"Identifier":this.inAsync&&o.name==="await"&&this.raise(o.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":o.type="ObjectPattern",v&&this.checkPatternErrors(v,!0);for(var w=0,B=o.properties;w<B.length;w+=1){var M=B[w];this.toAssignable(M,y),M.type==="RestElement"&&(M.argument.type==="ArrayPattern"||M.argument.type==="ObjectPattern")&&this.raise(M.argument.start,"Unexpected token")}break;case"Property":o.kind!=="init"&&this.raise(o.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(o.value,y);break;case"ArrayExpression":o.type="ArrayPattern",v&&this.checkPatternErrors(v,!0),this.toAssignableList(o.elements,y);break;case"SpreadElement":o.type="RestElement",this.toAssignable(o.argument,y),o.argument.type==="AssignmentPattern"&&this.raise(o.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":o.operator!=="="&&this.raise(o.left.end,"Only '=' operator can be used for specifying default value."),o.type="AssignmentPattern",delete o.operator,this.toAssignable(o.left,y);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(o.expression,y,v);break;case"ChainExpression":this.raiseRecoverable(o.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!y)break;default:this.raise(o.start,"Assigning to rvalue")}else v&&this.checkPatternErrors(v,!0);return o},st.toAssignableList=function(o,y){for(var v=o.length,w=0;w<v;w++){var B=o[w];B&&this.toAssignable(B,y)}if(v){var M=o[v-1];this.options.ecmaVersion===6&&y&&M&&M.type==="RestElement"&&M.argument.type!=="Identifier"&&this.unexpected(M.argument.start)}return o},st.parseSpread=function(o){var y=this.startNode();return this.next(),y.argument=this.parseMaybeAssign(!1,o),this.finishNode(y,"SpreadElement")},st.parseRestBinding=function(){var o=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==T.name&&this.unexpected(),o.argument=this.parseBindingAtom(),this.finishNode(o,"RestElement")},st.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case T.bracketL:var o=this.startNode();return this.next(),o.elements=this.parseBindingList(T.bracketR,!0,!0),this.finishNode(o,"ArrayPattern");case T.braceL:return this.parseObj(!0)}return this.parseIdent()},st.parseBindingList=function(o,y,v){for(var w=[],B=!0;!this.eat(o);)if(B?B=!1:this.expect(T.comma),y&&this.type===T.comma)w.push(null);else{if(v&&this.afterTrailingComma(o))break;if(this.type===T.ellipsis){var M=this.parseRestBinding();this.parseBindingListItem(M),w.push(M),this.type===T.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(o);break}else{var V=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(V),w.push(V)}}return w},st.parseBindingListItem=function(o){return o},st.parseMaybeDefault=function(o,y,v){if(v=v||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(T.eq))return v;var w=this.startNodeAt(o,y);return w.left=v,w.right=this.parseMaybeAssign(),this.finishNode(w,"AssignmentPattern")},st.checkLVal=function(o,y,v){switch(y===void 0&&(y=In),o.type){case"Identifier":y===Lt&&o.name==="let"&&this.raiseRecoverable(o.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(o.name)&&this.raiseRecoverable(o.start,(y?"Binding ":"Assigning to ")+o.name+" in strict mode"),v&&(Nr(v,o.name)&&this.raiseRecoverable(o.start,"Argument name clash"),v[o.name]=!0),y!==In&&y!==gi&&this.declareName(o.name,y,o.start);break;case"ChainExpression":this.raiseRecoverable(o.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":y&&this.raiseRecoverable(o.start,"Binding member expression");break;case"ObjectPattern":for(var w=0,B=o.properties;w<B.length;w+=1){var M=B[w];this.checkLVal(M,y,v)}break;case"Property":this.checkLVal(o.value,y,v);break;case"ArrayPattern":for(var V=0,H=o.elements;V<H.length;V+=1){var K=H[V];K&&this.checkLVal(K,y,v)}break;case"AssignmentPattern":this.checkLVal(o.left,y,v);break;case"RestElement":this.checkLVal(o.argument,y,v);break;case"ParenthesizedExpression":this.checkLVal(o.expression,y,v);break;default:this.raise(o.start,(y?"Binding":"Assigning to")+" rvalue")}};var ie=qe.prototype;ie.checkPropClash=function(o,y,v){if(!(this.options.ecmaVersion>=9&&o.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(o.computed||o.method||o.shorthand))){var w=o.key,B;switch(w.type){case"Identifier":B=w.name;break;case"Literal":B=String(w.value);break;default:return}var M=o.kind;if(this.options.ecmaVersion>=6){B==="__proto__"&&M==="init"&&(y.proto&&(v?v.doubleProto<0&&(v.doubleProto=w.start):this.raiseRecoverable(w.start,"Redefinition of __proto__ property")),y.proto=!0);return}B="$"+B;var V=y[B];if(V){var H;M==="init"?H=this.strict&&V.init||V.get||V.set:H=V.init||V[M],H&&this.raiseRecoverable(w.start,"Redefinition of property")}else V=y[B]={init:!1,get:!1,set:!1};V[M]=!0}},ie.parseExpression=function(o,y){var v=this.start,w=this.startLoc,B=this.parseMaybeAssign(o,y);if(this.type===T.comma){var M=this.startNodeAt(v,w);for(M.expressions=[B];this.eat(T.comma);)M.expressions.push(this.parseMaybeAssign(o,y));return this.finishNode(M,"SequenceExpression")}return B},ie.parseMaybeAssign=function(o,y,v){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(o);this.exprAllowed=!1}var w=!1,B=-1,M=-1;y?(B=y.parenthesizedAssign,M=y.trailingComma,y.parenthesizedAssign=y.trailingComma=-1):(y=new Ir,w=!0);var V=this.start,H=this.startLoc;(this.type===T.parenL||this.type===T.name)&&(this.potentialArrowAt=this.start);var K=this.parseMaybeConditional(o,y);if(v&&(K=v.call(this,K,V,H)),this.type.isAssign){var De=this.startNodeAt(V,H);return De.operator=this.value,De.left=this.type===T.eq?this.toAssignable(K,!1,y):K,w||(y.parenthesizedAssign=y.trailingComma=y.doubleProto=-1),y.shorthandAssign>=De.left.start&&(y.shorthandAssign=-1),this.checkLVal(K),this.next(),De.right=this.parseMaybeAssign(o),this.finishNode(De,"AssignmentExpression")}else w&&this.checkExpressionErrors(y,!0);return B>-1&&(y.parenthesizedAssign=B),M>-1&&(y.trailingComma=M),K},ie.parseMaybeConditional=function(o,y){var v=this.start,w=this.startLoc,B=this.parseExprOps(o,y);if(this.checkExpressionErrors(y))return B;if(this.eat(T.question)){var M=this.startNodeAt(v,w);return M.test=B,M.consequent=this.parseMaybeAssign(),this.expect(T.colon),M.alternate=this.parseMaybeAssign(o),this.finishNode(M,"ConditionalExpression")}return B},ie.parseExprOps=function(o,y){var v=this.start,w=this.startLoc,B=this.parseMaybeUnary(y,!1);return this.checkExpressionErrors(y)||B.start===v&&B.type==="ArrowFunctionExpression"?B:this.parseExprOp(B,v,w,-1,o)},ie.parseExprOp=function(o,y,v,w,B){var M=this.type.binop;if(M!=null&&(!B||this.type!==T._in)&&M>w){var V=this.type===T.logicalOR||this.type===T.logicalAND,H=this.type===T.coalesce;H&&(M=T.logicalAND.binop);var K=this.value;this.next();var De=this.start,Be=this.startLoc,ot=this.parseExprOp(this.parseMaybeUnary(null,!1),De,Be,M,B),jn=this.buildBinary(y,v,o,ot,K,V||H);return(V&&this.type===T.coalesce||H&&(this.type===T.logicalOR||this.type===T.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(jn,y,v,w,B)}return o},ie.buildBinary=function(o,y,v,w,B,M){var V=this.startNodeAt(o,y);return V.left=v,V.operator=B,V.right=w,this.finishNode(V,M?"LogicalExpression":"BinaryExpression")},ie.parseMaybeUnary=function(o,y){var v=this.start,w=this.startLoc,B;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))B=this.parseAwait(),y=!0;else if(this.type.prefix){var M=this.startNode(),V=this.type===T.incDec;M.operator=this.value,M.prefix=!0,this.next(),M.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(o,!0),V?this.checkLVal(M.argument):this.strict&&M.operator==="delete"&&M.argument.type==="Identifier"?this.raiseRecoverable(M.start,"Deleting local variable in strict mode"):y=!0,B=this.finishNode(M,V?"UpdateExpression":"UnaryExpression")}else{if(B=this.parseExprSubscripts(o),this.checkExpressionErrors(o))return B;for(;this.type.postfix&&!this.canInsertSemicolon();){var H=this.startNodeAt(v,w);H.operator=this.value,H.prefix=!1,H.argument=B,this.checkLVal(B),this.next(),B=this.finishNode(H,"UpdateExpression")}}return!y&&this.eat(T.starstar)?this.buildBinary(v,w,B,this.parseMaybeUnary(null,!1),"**",!1):B},ie.parseExprSubscripts=function(o){var y=this.start,v=this.startLoc,w=this.parseExprAtom(o);if(w.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return w;var B=this.parseSubscripts(w,y,v);return o&&B.type==="MemberExpression"&&(o.parenthesizedAssign>=B.start&&(o.parenthesizedAssign=-1),o.parenthesizedBind>=B.start&&(o.parenthesizedBind=-1)),B},ie.parseSubscripts=function(o,y,v,w){for(var B=this.options.ecmaVersion>=8&&o.type==="Identifier"&&o.name==="async"&&this.lastTokEnd===o.end&&!this.canInsertSemicolon()&&o.end-o.start==5&&this.potentialArrowAt===o.start,M=!1;;){var V=this.parseSubscript(o,y,v,w,B,M);if(V.optional&&(M=!0),V===o||V.type==="ArrowFunctionExpression"){if(M){var H=this.startNodeAt(y,v);H.expression=V,V=this.finishNode(H,"ChainExpression")}return V}o=V}},ie.parseSubscript=function(o,y,v,w,B,M){var V=this.options.ecmaVersion>=11,H=V&&this.eat(T.questionDot);w&&H&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var K=this.eat(T.bracketL);if(K||H&&this.type!==T.parenL&&this.type!==T.backQuote||this.eat(T.dot)){var De=this.startNodeAt(y,v);De.object=o,De.property=K?this.parseExpression():this.parseIdent(this.options.allowReserved!=="never"),De.computed=!!K,K&&this.expect(T.bracketR),V&&(De.optional=H),o=this.finishNode(De,"MemberExpression")}else if(!w&&this.eat(T.parenL)){var Be=new Ir,ot=this.yieldPos,jn=this.awaitPos,Jt=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Ei=this.parseExprList(T.parenR,this.options.ecmaVersion>=8,!1,Be);if(B&&!H&&!this.canInsertSemicolon()&&this.eat(T.arrow))return this.checkPatternErrors(Be,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=ot,this.awaitPos=jn,this.awaitIdentPos=Jt,this.parseArrowExpression(this.startNodeAt(y,v),Ei,!0);this.checkExpressionErrors(Be,!0),this.yieldPos=ot||this.yieldPos,this.awaitPos=jn||this.awaitPos,this.awaitIdentPos=Jt||this.awaitIdentPos;var Pt=this.startNodeAt(y,v);Pt.callee=o,Pt.arguments=Ei,V&&(Pt.optional=H),o=this.finishNode(Pt,"CallExpression")}else if(this.type===T.backQuote){(H||M)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var Vn=this.startNodeAt(y,v);Vn.tag=o,Vn.quasi=this.parseTemplate({isTagged:!0}),o=this.finishNode(Vn,"TaggedTemplateExpression")}return o},ie.parseExprAtom=function(o){this.type===T.slash&&this.readRegexp();var y,v=this.potentialArrowAt===this.start;switch(this.type){case T._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),y=this.startNode(),this.next(),this.type===T.parenL&&!this.allowDirectSuper&&this.raise(y.start,"super() call outside constructor of a subclass"),this.type!==T.dot&&this.type!==T.bracketL&&this.type!==T.parenL&&this.unexpected(),this.finishNode(y,"Super");case T._this:return y=this.startNode(),this.next(),this.finishNode(y,"ThisExpression");case T.name:var w=this.start,B=this.startLoc,M=this.containsEsc,V=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!M&&V.name==="async"&&!this.canInsertSemicolon()&&this.eat(T._function))return this.parseFunction(this.startNodeAt(w,B),0,!1,!0);if(v&&!this.canInsertSemicolon()){if(this.eat(T.arrow))return this.parseArrowExpression(this.startNodeAt(w,B),[V],!1);if(this.options.ecmaVersion>=8&&V.name==="async"&&this.type===T.name&&!M)return V=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(T.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(w,B),[V],!0)}return V;case T.regexp:var H=this.value;return y=this.parseLiteral(H.value),y.regex={pattern:H.pattern,flags:H.flags},y;case T.num:case T.string:return this.parseLiteral(this.value);case T._null:case T._true:case T._false:return y=this.startNode(),y.value=this.type===T._null?null:this.type===T._true,y.raw=this.type.keyword,this.next(),this.finishNode(y,"Literal");case T.parenL:var K=this.start,De=this.parseParenAndDistinguishExpression(v);return o&&(o.parenthesizedAssign<0&&!this.isSimpleAssignTarget(De)&&(o.parenthesizedAssign=K),o.parenthesizedBind<0&&(o.parenthesizedBind=K)),De;case T.bracketL:return y=this.startNode(),this.next(),y.elements=this.parseExprList(T.bracketR,!0,!0,o),this.finishNode(y,"ArrayExpression");case T.braceL:return this.parseObj(!1,o);case T._function:return y=this.startNode(),this.next(),this.parseFunction(y,0);case T._class:return this.parseClass(this.startNode(),!1);case T._new:return this.parseNew();case T.backQuote:return this.parseTemplate();case T._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},ie.parseExprImport=function(){var o=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var y=this.parseIdent(!0);switch(this.type){case T.parenL:return this.parseDynamicImport(o);case T.dot:return o.meta=y,this.parseImportMeta(o);default:this.unexpected()}},ie.parseDynamicImport=function(o){if(this.next(),o.source=this.parseMaybeAssign(),!this.eat(T.parenR)){var y=this.start;this.eat(T.comma)&&this.eat(T.parenR)?this.raiseRecoverable(y,"Trailing comma is not allowed in import()"):this.unexpected(y)}return this.finishNode(o,"ImportExpression")},ie.parseImportMeta=function(o){this.next();var y=this.containsEsc;return o.property=this.parseIdent(!0),o.property.name!=="meta"&&this.raiseRecoverable(o.property.start,"The only valid meta property for import is 'import.meta'"),y&&this.raiseRecoverable(o.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&this.raiseRecoverable(o.start,"Cannot use 'import.meta' outside a module"),this.finishNode(o,"MetaProperty")},ie.parseLiteral=function(o){var y=this.startNode();return y.value=o,y.raw=this.input.slice(this.start,this.end),y.raw.charCodeAt(y.raw.length-1)===110&&(y.bigint=y.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(y,"Literal")},ie.parseParenExpression=function(){this.expect(T.parenL);var o=this.parseExpression();return this.expect(T.parenR),o},ie.parseParenAndDistinguishExpression=function(o){var y=this.start,v=this.startLoc,w,B=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var M=this.start,V=this.startLoc,H=[],K=!0,De=!1,Be=new Ir,ot=this.yieldPos,jn=this.awaitPos,Jt;for(this.yieldPos=0,this.awaitPos=0;this.type!==T.parenR;)if(K?K=!1:this.expect(T.comma),B&&this.afterTrailingComma(T.parenR,!0)){De=!0;break}else if(this.type===T.ellipsis){Jt=this.start,H.push(this.parseParenItem(this.parseRestBinding())),this.type===T.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else H.push(this.parseMaybeAssign(!1,Be,this.parseParenItem));var Ei=this.start,Pt=this.startLoc;if(this.expect(T.parenR),o&&!this.canInsertSemicolon()&&this.eat(T.arrow))return this.checkPatternErrors(Be,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=ot,this.awaitPos=jn,this.parseParenArrowList(y,v,H);(!H.length||De)&&this.unexpected(this.lastTokStart),Jt&&this.unexpected(Jt),this.checkExpressionErrors(Be,!0),this.yieldPos=ot||this.yieldPos,this.awaitPos=jn||this.awaitPos,H.length>1?(w=this.startNodeAt(M,V),w.expressions=H,this.finishNodeAt(w,"SequenceExpression",Ei,Pt)):w=H[0]}else w=this.parseParenExpression();if(this.options.preserveParens){var Vn=this.startNodeAt(y,v);return Vn.expression=w,this.finishNode(Vn,"ParenthesizedExpression")}else return w},ie.parseParenItem=function(o){return o},ie.parseParenArrowList=function(o,y,v){return this.parseArrowExpression(this.startNodeAt(o,y),v)};var Ca=[];ie.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var o=this.startNode(),y=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(T.dot)){o.meta=y;var v=this.containsEsc;return o.property=this.parseIdent(!0),o.property.name!=="target"&&this.raiseRecoverable(o.property.start,"The only valid meta property for new is 'new.target'"),v&&this.raiseRecoverable(o.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(o.start,"'new.target' can only be used in functions"),this.finishNode(o,"MetaProperty")}var w=this.start,B=this.startLoc,M=this.type===T._import;return o.callee=this.parseSubscripts(this.parseExprAtom(),w,B,!0),M&&o.callee.type==="ImportExpression"&&this.raise(w,"Cannot use new with import()"),this.eat(T.parenL)?o.arguments=this.parseExprList(T.parenR,this.options.ecmaVersion>=8,!1):o.arguments=Ca,this.finishNode(o,"NewExpression")},ie.parseTemplateElement=function(o){var y=o.isTagged,v=this.startNode();return this.type===T.invalidTemplate?(y||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),v.value={raw:this.value,cooked:null}):v.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
14
|
-
`),cooked:this.value},this.next(),v.tail=this.type===T.backQuote,this.finishNode(v,"TemplateElement")},ie.parseTemplate=function(o){o===void 0&&(o={});var y=o.isTagged;y===void 0&&(y=!1);var v=this.startNode();this.next(),v.expressions=[];var w=this.parseTemplateElement({isTagged:y});for(v.quasis=[w];!w.tail;)this.type===T.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(T.dollarBraceL),v.expressions.push(this.parseExpression()),this.expect(T.braceR),v.quasis.push(w=this.parseTemplateElement({isTagged:y}));return this.next(),this.finishNode(v,"TemplateLiteral")},ie.isAsyncProp=function(o){return!o.computed&&o.key.type==="Identifier"&&o.key.name==="async"&&(this.type===T.name||this.type===T.num||this.type===T.string||this.type===T.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===T.star)&&!rt.test(this.input.slice(this.lastTokEnd,this.start))},ie.parseObj=function(o,y){var v=this.startNode(),w=!0,B={};for(v.properties=[],this.next();!this.eat(T.braceR);){if(w)w=!1;else if(this.expect(T.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(T.braceR))break;var M=this.parseProperty(o,y);o||this.checkPropClash(M,B,y),v.properties.push(M)}return this.finishNode(v,o?"ObjectPattern":"ObjectExpression")},ie.parseProperty=function(o,y){var v=this.startNode(),w,B,M,V;if(this.options.ecmaVersion>=9&&this.eat(T.ellipsis))return o?(v.argument=this.parseIdent(!1),this.type===T.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(v,"RestElement")):(this.type===T.parenL&&y&&(y.parenthesizedAssign<0&&(y.parenthesizedAssign=this.start),y.parenthesizedBind<0&&(y.parenthesizedBind=this.start)),v.argument=this.parseMaybeAssign(!1,y),this.type===T.comma&&y&&y.trailingComma<0&&(y.trailingComma=this.start),this.finishNode(v,"SpreadElement"));this.options.ecmaVersion>=6&&(v.method=!1,v.shorthand=!1,(o||y)&&(M=this.start,V=this.startLoc),o||(w=this.eat(T.star)));var H=this.containsEsc;return this.parsePropertyName(v),!o&&!H&&this.options.ecmaVersion>=8&&!w&&this.isAsyncProp(v)?(B=!0,w=this.options.ecmaVersion>=9&&this.eat(T.star),this.parsePropertyName(v,y)):B=!1,this.parsePropertyValue(v,o,w,B,M,V,y,H),this.finishNode(v,"Property")},ie.parsePropertyValue=function(o,y,v,w,B,M,V,H){if((v||w)&&this.type===T.colon&&this.unexpected(),this.eat(T.colon))o.value=y?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,V),o.kind="init";else if(this.options.ecmaVersion>=6&&this.type===T.parenL)y&&this.unexpected(),o.kind="init",o.method=!0,o.value=this.parseMethod(v,w);else if(!y&&!H&&this.options.ecmaVersion>=5&&!o.computed&&o.key.type==="Identifier"&&(o.key.name==="get"||o.key.name==="set")&&this.type!==T.comma&&this.type!==T.braceR&&this.type!==T.eq){(v||w)&&this.unexpected(),o.kind=o.key.name,this.parsePropertyName(o),o.value=this.parseMethod(!1);var K=o.kind==="get"?0:1;if(o.value.params.length!==K){var De=o.value.start;o.kind==="get"?this.raiseRecoverable(De,"getter should have no params"):this.raiseRecoverable(De,"setter should have exactly one param")}else o.kind==="set"&&o.value.params[0].type==="RestElement"&&this.raiseRecoverable(o.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!o.computed&&o.key.type==="Identifier"?((v||w)&&this.unexpected(),this.checkUnreserved(o.key),o.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=B),o.kind="init",y?o.value=this.parseMaybeDefault(B,M,o.key):this.type===T.eq&&V?(V.shorthandAssign<0&&(V.shorthandAssign=this.start),o.value=this.parseMaybeDefault(B,M,o.key)):o.value=o.key,o.shorthand=!0):this.unexpected()},ie.parsePropertyName=function(o){if(this.options.ecmaVersion>=6){if(this.eat(T.bracketL))return o.computed=!0,o.key=this.parseMaybeAssign(),this.expect(T.bracketR),o.key;o.computed=!1}return o.key=this.type===T.num||this.type===T.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},ie.initFunction=function(o){o.id=null,this.options.ecmaVersion>=6&&(o.generator=o.expression=!1),this.options.ecmaVersion>=8&&(o.async=!1)},ie.parseMethod=function(o,y,v){var w=this.startNode(),B=this.yieldPos,M=this.awaitPos,V=this.awaitIdentPos;return this.initFunction(w),this.options.ecmaVersion>=6&&(w.generator=o),this.options.ecmaVersion>=8&&(w.async=!!y),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(hi(y,w.generator)|ba|(v?Or:0)),this.expect(T.parenL),w.params=this.parseBindingList(T.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(w,!1,!0),this.yieldPos=B,this.awaitPos=M,this.awaitIdentPos=V,this.finishNode(w,"FunctionExpression")},ie.parseArrowExpression=function(o,y,v){var w=this.yieldPos,B=this.awaitPos,M=this.awaitIdentPos;return this.enterScope(hi(v,!1)|fi),this.initFunction(o),this.options.ecmaVersion>=8&&(o.async=!!v),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,o.params=this.toAssignableList(y,!0),this.parseFunctionBody(o,!0,!1),this.yieldPos=w,this.awaitPos=B,this.awaitIdentPos=M,this.finishNode(o,"ArrowFunctionExpression")},ie.parseFunctionBody=function(o,y,v){var w=y&&this.type!==T.braceL,B=this.strict,M=!1;if(w)o.body=this.parseMaybeAssign(),o.expression=!0,this.checkParams(o,!1);else{var V=this.options.ecmaVersion>=7&&!this.isSimpleParamList(o.params);(!B||V)&&(M=this.strictDirective(this.end),M&&V&&this.raiseRecoverable(o.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var H=this.labels;this.labels=[],M&&(this.strict=!0),this.checkParams(o,!B&&!M&&!y&&!v&&this.isSimpleParamList(o.params)),this.strict&&o.id&&this.checkLVal(o.id,gi),o.body=this.parseBlock(!1,void 0,M&&!B),o.expression=!1,this.adaptDirectivePrologue(o.body.body),this.labels=H}this.exitScope()},ie.isSimpleParamList=function(o){for(var y=0,v=o;y<v.length;y+=1){var w=v[y];if(w.type!=="Identifier")return!1}return!0},ie.checkParams=function(o,y){for(var v={},w=0,B=o.params;w<B.length;w+=1){var M=B[w];this.checkLVal(M,di,y?null:v)}},ie.parseExprList=function(o,y,v,w){for(var B=[],M=!0;!this.eat(o);){if(M)M=!1;else if(this.expect(T.comma),y&&this.afterTrailingComma(o))break;var V=void 0;v&&this.type===T.comma?V=null:this.type===T.ellipsis?(V=this.parseSpread(w),w&&this.type===T.comma&&w.trailingComma<0&&(w.trailingComma=this.start)):V=this.parseMaybeAssign(!1,w),B.push(V)}return B},ie.checkUnreserved=function(o){var y=o.start,v=o.end,w=o.name;if(this.inGenerator&&w==="yield"&&this.raiseRecoverable(y,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&w==="await"&&this.raiseRecoverable(y,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(w)&&this.raise(y,"Unexpected keyword '"+w+"'"),!(this.options.ecmaVersion<6&&this.input.slice(y,v).indexOf("\\")!==-1)){var B=this.strict?this.reservedWordsStrict:this.reservedWords;B.test(w)&&(!this.inAsync&&w==="await"&&this.raiseRecoverable(y,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(y,"The keyword '"+w+"' is reserved"))}},ie.parseIdent=function(o,y){var v=this.startNode();return this.type===T.name?v.name=this.value:this.type.keyword?(v.name=this.type.keyword,(v.name==="class"||v.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!o),this.finishNode(v,"Identifier"),o||(this.checkUnreserved(v),v.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=v.start)),v},ie.parseYield=function(o){this.yieldPos||(this.yieldPos=this.start);var y=this.startNode();return this.next(),this.type===T.semi||this.canInsertSemicolon()||this.type!==T.star&&!this.type.startsExpr?(y.delegate=!1,y.argument=null):(y.delegate=this.eat(T.star),y.argument=this.parseMaybeAssign(o)),this.finishNode(y,"YieldExpression")},ie.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var o=this.startNode();return this.next(),o.argument=this.parseMaybeUnary(null,!1),this.finishNode(o,"AwaitExpression")};var zt=qe.prototype;zt.raise=function(o,y){var v=ps(this.input,o);y+=" ("+v.line+":"+v.column+")";var w=new SyntaxError(y);throw w.pos=o,w.loc=v,w.raisedAt=this.pos,w},zt.raiseRecoverable=zt.raise,zt.curPosition=function(){if(this.options.locations)return new On(this.curLine,this.pos-this.lineStart)};var at=qe.prototype,ur=function(y){this.flags=y,this.var=[],this.lexical=[],this.functions=[]};at.enterScope=function(o){this.scopeStack.push(new ur(o))},at.exitScope=function(){this.scopeStack.pop()},at.treatFunctionsAsVarInScope=function(o){return o.flags&ar||!this.inModule&&o.flags&sr},at.declareName=function(o,y,v){var w=!1;if(y===Lt){var B=this.currentScope();w=B.lexical.indexOf(o)>-1||B.functions.indexOf(o)>-1||B.var.indexOf(o)>-1,B.lexical.push(o),this.inModule&&B.flags&sr&&delete this.undefinedExports[o]}else if(y===va){var M=this.currentScope();M.lexical.push(o)}else if(y===Ea){var V=this.currentScope();this.treatFunctionsAsVar?w=V.lexical.indexOf(o)>-1:w=V.lexical.indexOf(o)>-1||V.var.indexOf(o)>-1,V.functions.push(o)}else for(var H=this.scopeStack.length-1;H>=0;--H){var K=this.scopeStack[H];if(K.lexical.indexOf(o)>-1&&!(K.flags&Da&&K.lexical[0]===o)||!this.treatFunctionsAsVarInScope(K)&&K.functions.indexOf(o)>-1){w=!0;break}if(K.var.push(o),this.inModule&&K.flags&sr&&delete this.undefinedExports[o],K.flags&an)break}w&&this.raiseRecoverable(v,"Identifier '"+o+"' has already been declared")},at.checkLocalExport=function(o){this.scopeStack[0].lexical.indexOf(o.name)===-1&&this.scopeStack[0].var.indexOf(o.name)===-1&&(this.undefinedExports[o.name]=o)},at.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},at.currentVarScope=function(){for(var o=this.scopeStack.length-1;;o--){var y=this.scopeStack[o];if(y.flags&an)return y}},at.currentThisScope=function(){for(var o=this.scopeStack.length-1;;o--){var y=this.scopeStack[o];if(y.flags&an&&!(y.flags&fi))return y}};var Ln=function(y,v,w){this.type="",this.start=v,this.end=0,y.options.locations&&(this.loc=new ir(y,w)),y.options.directSourceFile&&(this.sourceFile=y.options.directSourceFile),y.options.ranges&&(this.range=[v,0])},yi=qe.prototype;yi.startNode=function(){return new Ln(this,this.start,this.startLoc)},yi.startNodeAt=function(o,y){return new Ln(this,o,y)};function Ds(o,y,v,w){return o.type=y,o.end=v,this.options.locations&&(o.loc.end=w),this.options.ranges&&(o.range[1]=v),o}yi.finishNode=function(o,y){return Ds.call(this,o,y,this.lastTokEnd,this.lastTokEndLoc)},yi.finishNodeAt=function(o,y,v,w){return Ds.call(this,o,y,v,w)};var wt=function(y,v,w,B,M){this.token=y,this.isExpr=!!v,this.preserveSpace=!!w,this.override=B,this.generator=!!M},Pe={b_stat:new wt("{",!1),b_expr:new wt("{",!0),b_tmpl:new wt("${",!1),p_stat:new wt("(",!1),p_expr:new wt("(",!0),q_tmpl:new wt("`",!0,!0,function(o){return o.tryReadTemplateToken()}),f_stat:new wt("function",!1),f_expr:new wt("function",!0),f_expr_gen:new wt("function",!0,!1,null,!0),f_gen:new wt("function",!1,!1,null,!0)},Di=qe.prototype;Di.initialContext=function(){return[Pe.b_stat]},Di.braceIsBlock=function(o){var y=this.curContext();return y===Pe.f_expr||y===Pe.f_stat?!0:o===T.colon&&(y===Pe.b_stat||y===Pe.b_expr)?!y.isExpr:o===T._return||o===T.name&&this.exprAllowed?rt.test(this.input.slice(this.lastTokEnd,this.start)):o===T._else||o===T.semi||o===T.eof||o===T.parenR||o===T.arrow?!0:o===T.braceL?y===Pe.b_stat:o===T._var||o===T._const||o===T.name?!1:!this.exprAllowed},Di.inGeneratorContext=function(){for(var o=this.context.length-1;o>=1;o--){var y=this.context[o];if(y.token==="function")return y.generator}return!1},Di.updateContext=function(o){var y,v=this.type;v.keyword&&o===T.dot?this.exprAllowed=!1:(y=v.updateContext)?y.call(this,o):this.exprAllowed=v.beforeExpr},T.parenR.updateContext=T.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var o=this.context.pop();o===Pe.b_stat&&this.curContext().token==="function"&&(o=this.context.pop()),this.exprAllowed=!o.isExpr},T.braceL.updateContext=function(o){this.context.push(this.braceIsBlock(o)?Pe.b_stat:Pe.b_expr),this.exprAllowed=!0},T.dollarBraceL.updateContext=function(){this.context.push(Pe.b_tmpl),this.exprAllowed=!0},T.parenL.updateContext=function(o){var y=o===T._if||o===T._for||o===T._with||o===T._while;this.context.push(y?Pe.p_stat:Pe.p_expr),this.exprAllowed=!0},T.incDec.updateContext=function(){},T._function.updateContext=T._class.updateContext=function(o){o.beforeExpr&&o!==T.semi&&o!==T._else&&!(o===T._return&&rt.test(this.input.slice(this.lastTokEnd,this.start)))&&!((o===T.colon||o===T.braceL)&&this.curContext()===Pe.b_stat)?this.context.push(Pe.f_expr):this.context.push(Pe.f_stat),this.exprAllowed=!1},T.backQuote.updateContext=function(){this.curContext()===Pe.q_tmpl?this.context.pop():this.context.push(Pe.q_tmpl),this.exprAllowed=!1},T.star.updateContext=function(o){if(o===T._function){var y=this.context.length-1;this.context[y]===Pe.f_expr?this.context[y]=Pe.f_expr_gen:this.context[y]=Pe.f_gen}this.exprAllowed=!0},T.name.updateContext=function(o){var y=!1;this.options.ecmaVersion>=6&&o!==T.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(y=!0),this.exprAllowed=y};var xa="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",Aa=xa+" Extended_Pictographic",Mo=Aa,jo={9:xa,10:Aa,11:Mo},Sa="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",wa="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",Rn=wa+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Vo=Rn+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Uo={9:wa,10:Rn,11:Vo},Le={};function Mn(o){var y=Le[o]={binary:Ht(jo[o]+" "+Sa),nonBinary:{General_Category:Ht(Sa),Script:Ht(Uo[o])}};y.nonBinary.Script_Extensions=y.nonBinary.Script,y.nonBinary.gc=y.nonBinary.General_Category,y.nonBinary.sc=y.nonBinary.Script,y.nonBinary.scx=y.nonBinary.Script_Extensions}Mn(9),Mn(10),Mn(11);var Z=qe.prototype,ut=function(y){this.parser=y,this.validFlags="gim"+(y.options.ecmaVersion>=6?"uy":"")+(y.options.ecmaVersion>=9?"s":""),this.unicodeProperties=Le[y.options.ecmaVersion>=11?11:y.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=[]};ut.prototype.reset=function(y,v,w){var B=w.indexOf("u")!==-1;this.start=y|0,this.source=v+"",this.flags=w,this.switchU=B&&this.parser.options.ecmaVersion>=6,this.switchN=B&&this.parser.options.ecmaVersion>=9},ut.prototype.raise=function(y){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+y)},ut.prototype.at=function(y,v){v===void 0&&(v=!1);var w=this.source,B=w.length;if(y>=B)return-1;var M=w.charCodeAt(y);if(!(v||this.switchU)||M<=55295||M>=57344||y+1>=B)return M;var V=w.charCodeAt(y+1);return V>=56320&&V<=57343?(M<<10)+V-56613888:M},ut.prototype.nextIndex=function(y,v){v===void 0&&(v=!1);var w=this.source,B=w.length;if(y>=B)return B;var M=w.charCodeAt(y),V;return!(v||this.switchU)||M<=55295||M>=57344||y+1>=B||(V=w.charCodeAt(y+1))<56320||V>57343?y+1:y+2},ut.prototype.current=function(y){return y===void 0&&(y=!1),this.at(this.pos,y)},ut.prototype.lookahead=function(y){return y===void 0&&(y=!1),this.at(this.nextIndex(this.pos,y),y)},ut.prototype.advance=function(y){y===void 0&&(y=!1),this.pos=this.nextIndex(this.pos,y)},ut.prototype.eat=function(y,v){return v===void 0&&(v=!1),this.current(v)===y?(this.advance(v),!0):!1};function te(o){return o<=65535?String.fromCharCode(o):(o-=65536,String.fromCharCode((o>>10)+55296,(o&1023)+56320))}Z.validateRegExpFlags=function(o){for(var y=o.validFlags,v=o.flags,w=0;w<v.length;w++){var B=v.charAt(w);y.indexOf(B)===-1&&this.raise(o.start,"Invalid regular expression flag"),v.indexOf(B,w+1)>-1&&this.raise(o.start,"Duplicate regular expression flag")}},Z.validateRegExpPattern=function(o){this.regexp_pattern(o),!o.switchN&&this.options.ecmaVersion>=9&&o.groupNames.length>0&&(o.switchN=!0,this.regexp_pattern(o))},Z.regexp_pattern=function(o){o.pos=0,o.lastIntValue=0,o.lastStringValue="",o.lastAssertionIsQuantifiable=!1,o.numCapturingParens=0,o.maxBackReference=0,o.groupNames.length=0,o.backReferenceNames.length=0,this.regexp_disjunction(o),o.pos!==o.source.length&&(o.eat(41)&&o.raise("Unmatched ')'"),(o.eat(93)||o.eat(125))&&o.raise("Lone quantifier brackets")),o.maxBackReference>o.numCapturingParens&&o.raise("Invalid escape");for(var y=0,v=o.backReferenceNames;y<v.length;y+=1){var w=v[y];o.groupNames.indexOf(w)===-1&&o.raise("Invalid named capture referenced")}},Z.regexp_disjunction=function(o){for(this.regexp_alternative(o);o.eat(124);)this.regexp_alternative(o);this.regexp_eatQuantifier(o,!0)&&o.raise("Nothing to repeat"),o.eat(123)&&o.raise("Lone quantifier brackets")},Z.regexp_alternative=function(o){for(;o.pos<o.source.length&&this.regexp_eatTerm(o););},Z.regexp_eatTerm=function(o){return this.regexp_eatAssertion(o)?(o.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(o)&&o.switchU&&o.raise("Invalid quantifier"),!0):(o.switchU?this.regexp_eatAtom(o):this.regexp_eatExtendedAtom(o))?(this.regexp_eatQuantifier(o),!0):!1},Z.regexp_eatAssertion=function(o){var y=o.pos;if(o.lastAssertionIsQuantifiable=!1,o.eat(94)||o.eat(36))return!0;if(o.eat(92)){if(o.eat(66)||o.eat(98))return!0;o.pos=y}if(o.eat(40)&&o.eat(63)){var v=!1;if(this.options.ecmaVersion>=9&&(v=o.eat(60)),o.eat(61)||o.eat(33))return this.regexp_disjunction(o),o.eat(41)||o.raise("Unterminated group"),o.lastAssertionIsQuantifiable=!v,!0}return o.pos=y,!1},Z.regexp_eatQuantifier=function(o,y){return y===void 0&&(y=!1),this.regexp_eatQuantifierPrefix(o,y)?(o.eat(63),!0):!1},Z.regexp_eatQuantifierPrefix=function(o,y){return o.eat(42)||o.eat(43)||o.eat(63)||this.regexp_eatBracedQuantifier(o,y)},Z.regexp_eatBracedQuantifier=function(o,y){var v=o.pos;if(o.eat(123)){var w=0,B=-1;if(this.regexp_eatDecimalDigits(o)&&(w=o.lastIntValue,o.eat(44)&&this.regexp_eatDecimalDigits(o)&&(B=o.lastIntValue),o.eat(125)))return B!==-1&&B<w&&!y&&o.raise("numbers out of order in {} quantifier"),!0;o.switchU&&!y&&o.raise("Incomplete quantifier"),o.pos=v}return!1},Z.regexp_eatAtom=function(o){return this.regexp_eatPatternCharacters(o)||o.eat(46)||this.regexp_eatReverseSolidusAtomEscape(o)||this.regexp_eatCharacterClass(o)||this.regexp_eatUncapturingGroup(o)||this.regexp_eatCapturingGroup(o)},Z.regexp_eatReverseSolidusAtomEscape=function(o){var y=o.pos;if(o.eat(92)){if(this.regexp_eatAtomEscape(o))return!0;o.pos=y}return!1},Z.regexp_eatUncapturingGroup=function(o){var y=o.pos;if(o.eat(40)){if(o.eat(63)&&o.eat(58)){if(this.regexp_disjunction(o),o.eat(41))return!0;o.raise("Unterminated group")}o.pos=y}return!1},Z.regexp_eatCapturingGroup=function(o){if(o.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(o):o.current()===63&&o.raise("Invalid group"),this.regexp_disjunction(o),o.eat(41))return o.numCapturingParens+=1,!0;o.raise("Unterminated group")}return!1},Z.regexp_eatExtendedAtom=function(o){return o.eat(46)||this.regexp_eatReverseSolidusAtomEscape(o)||this.regexp_eatCharacterClass(o)||this.regexp_eatUncapturingGroup(o)||this.regexp_eatCapturingGroup(o)||this.regexp_eatInvalidBracedQuantifier(o)||this.regexp_eatExtendedPatternCharacter(o)},Z.regexp_eatInvalidBracedQuantifier=function(o){return this.regexp_eatBracedQuantifier(o,!0)&&o.raise("Nothing to repeat"),!1},Z.regexp_eatSyntaxCharacter=function(o){var y=o.current();return or(y)?(o.lastIntValue=y,o.advance(),!0):!1};function or(o){return o===36||o>=40&&o<=43||o===46||o===63||o>=91&&o<=94||o>=123&&o<=125}Z.regexp_eatPatternCharacters=function(o){for(var y=o.pos,v=0;(v=o.current())!==-1&&!or(v);)o.advance();return o.pos!==y},Z.regexp_eatExtendedPatternCharacter=function(o){var y=o.current();return y!==-1&&y!==36&&!(y>=40&&y<=43)&&y!==46&&y!==63&&y!==91&&y!==94&&y!==124?(o.advance(),!0):!1},Z.regexp_groupSpecifier=function(o){if(o.eat(63)){if(this.regexp_eatGroupName(o)){o.groupNames.indexOf(o.lastStringValue)!==-1&&o.raise("Duplicate capture group name"),o.groupNames.push(o.lastStringValue);return}o.raise("Invalid group")}},Z.regexp_eatGroupName=function(o){if(o.lastStringValue="",o.eat(60)){if(this.regexp_eatRegExpIdentifierName(o)&&o.eat(62))return!0;o.raise("Invalid capture group name")}return!1},Z.regexp_eatRegExpIdentifierName=function(o){if(o.lastStringValue="",this.regexp_eatRegExpIdentifierStart(o)){for(o.lastStringValue+=te(o.lastIntValue);this.regexp_eatRegExpIdentifierPart(o);)o.lastStringValue+=te(o.lastIntValue);return!0}return!1},Z.regexp_eatRegExpIdentifierStart=function(o){var y=o.pos,v=this.options.ecmaVersion>=11,w=o.current(v);return o.advance(v),w===92&&this.regexp_eatRegExpUnicodeEscapeSequence(o,v)&&(w=o.lastIntValue),qo(w)?(o.lastIntValue=w,!0):(o.pos=y,!1)};function qo(o){return re(o,!0)||o===36||o===95}Z.regexp_eatRegExpIdentifierPart=function(o){var y=o.pos,v=this.options.ecmaVersion>=11,w=o.current(v);return o.advance(v),w===92&&this.regexp_eatRegExpUnicodeEscapeSequence(o,v)&&(w=o.lastIntValue),Fa(w)?(o.lastIntValue=w,!0):(o.pos=y,!1)};function Fa(o){return me(o,!0)||o===36||o===95||o===8204||o===8205}Z.regexp_eatAtomEscape=function(o){return this.regexp_eatBackReference(o)||this.regexp_eatCharacterClassEscape(o)||this.regexp_eatCharacterEscape(o)||o.switchN&&this.regexp_eatKGroupName(o)?!0:(o.switchU&&(o.current()===99&&o.raise("Invalid unicode escape"),o.raise("Invalid escape")),!1)},Z.regexp_eatBackReference=function(o){var y=o.pos;if(this.regexp_eatDecimalEscape(o)){var v=o.lastIntValue;if(o.switchU)return v>o.maxBackReference&&(o.maxBackReference=v),!0;if(v<=o.numCapturingParens)return!0;o.pos=y}return!1},Z.regexp_eatKGroupName=function(o){if(o.eat(107)){if(this.regexp_eatGroupName(o))return o.backReferenceNames.push(o.lastStringValue),!0;o.raise("Invalid named reference")}return!1},Z.regexp_eatCharacterEscape=function(o){return this.regexp_eatControlEscape(o)||this.regexp_eatCControlLetter(o)||this.regexp_eatZero(o)||this.regexp_eatHexEscapeSequence(o)||this.regexp_eatRegExpUnicodeEscapeSequence(o,!1)||!o.switchU&&this.regexp_eatLegacyOctalEscapeSequence(o)||this.regexp_eatIdentityEscape(o)},Z.regexp_eatCControlLetter=function(o){var y=o.pos;if(o.eat(99)){if(this.regexp_eatControlLetter(o))return!0;o.pos=y}return!1},Z.regexp_eatZero=function(o){return o.current()===48&&!Mr(o.lookahead())?(o.lastIntValue=0,o.advance(),!0):!1},Z.regexp_eatControlEscape=function(o){var y=o.current();return y===116?(o.lastIntValue=9,o.advance(),!0):y===110?(o.lastIntValue=10,o.advance(),!0):y===118?(o.lastIntValue=11,o.advance(),!0):y===102?(o.lastIntValue=12,o.advance(),!0):y===114?(o.lastIntValue=13,o.advance(),!0):!1},Z.regexp_eatControlLetter=function(o){var y=o.current();return bs(y)?(o.lastIntValue=y%32,o.advance(),!0):!1};function bs(o){return o>=65&&o<=90||o>=97&&o<=122}Z.regexp_eatRegExpUnicodeEscapeSequence=function(o,y){y===void 0&&(y=!1);var v=o.pos,w=y||o.switchU;if(o.eat(117)){if(this.regexp_eatFixedHexDigits(o,4)){var B=o.lastIntValue;if(w&&B>=55296&&B<=56319){var M=o.pos;if(o.eat(92)&&o.eat(117)&&this.regexp_eatFixedHexDigits(o,4)){var V=o.lastIntValue;if(V>=56320&&V<=57343)return o.lastIntValue=(B-55296)*1024+(V-56320)+65536,!0}o.pos=M,o.lastIntValue=B}return!0}if(w&&o.eat(123)&&this.regexp_eatHexDigits(o)&&o.eat(125)&&$o(o.lastIntValue))return!0;w&&o.raise("Invalid unicode escape"),o.pos=v}return!1};function $o(o){return o>=0&&o<=1114111}Z.regexp_eatIdentityEscape=function(o){if(o.switchU)return this.regexp_eatSyntaxCharacter(o)?!0:o.eat(47)?(o.lastIntValue=47,!0):!1;var y=o.current();return y!==99&&(!o.switchN||y!==107)?(o.lastIntValue=y,o.advance(),!0):!1},Z.regexp_eatDecimalEscape=function(o){o.lastIntValue=0;var y=o.current();if(y>=49&&y<=57){do o.lastIntValue=10*o.lastIntValue+(y-48),o.advance();while((y=o.current())>=48&&y<=57);return!0}return!1},Z.regexp_eatCharacterClassEscape=function(o){var y=o.current();if(Ta(y))return o.lastIntValue=-1,o.advance(),!0;if(o.switchU&&this.options.ecmaVersion>=9&&(y===80||y===112)){if(o.lastIntValue=-1,o.advance(),o.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(o)&&o.eat(125))return!0;o.raise("Invalid property name")}return!1};function Ta(o){return o===100||o===68||o===115||o===83||o===119||o===87}Z.regexp_eatUnicodePropertyValueExpression=function(o){var y=o.pos;if(this.regexp_eatUnicodePropertyName(o)&&o.eat(61)){var v=o.lastStringValue;if(this.regexp_eatUnicodePropertyValue(o)){var w=o.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(o,v,w),!0}}if(o.pos=y,this.regexp_eatLoneUnicodePropertyNameOrValue(o)){var B=o.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(o,B),!0}return!1},Z.regexp_validateUnicodePropertyNameAndValue=function(o,y,v){Nr(o.unicodeProperties.nonBinary,y)||o.raise("Invalid property name"),o.unicodeProperties.nonBinary[y].test(v)||o.raise("Invalid property value")},Z.regexp_validateUnicodePropertyNameOrValue=function(o,y){o.unicodeProperties.binary.test(y)||o.raise("Invalid property name")},Z.regexp_eatUnicodePropertyName=function(o){var y=0;for(o.lastStringValue="";Rr(y=o.current());)o.lastStringValue+=te(y),o.advance();return o.lastStringValue!==""};function Rr(o){return bs(o)||o===95}Z.regexp_eatUnicodePropertyValue=function(o){var y=0;for(o.lastStringValue="";ka(y=o.current());)o.lastStringValue+=te(y),o.advance();return o.lastStringValue!==""};function ka(o){return Rr(o)||Mr(o)}Z.regexp_eatLoneUnicodePropertyNameOrValue=function(o){return this.regexp_eatUnicodePropertyValue(o)},Z.regexp_eatCharacterClass=function(o){if(o.eat(91)){if(o.eat(94),this.regexp_classRanges(o),o.eat(93))return!0;o.raise("Unterminated character class")}return!1},Z.regexp_classRanges=function(o){for(;this.regexp_eatClassAtom(o);){var y=o.lastIntValue;if(o.eat(45)&&this.regexp_eatClassAtom(o)){var v=o.lastIntValue;o.switchU&&(y===-1||v===-1)&&o.raise("Invalid character class"),y!==-1&&v!==-1&&y>v&&o.raise("Range out of order in character class")}}},Z.regexp_eatClassAtom=function(o){var y=o.pos;if(o.eat(92)){if(this.regexp_eatClassEscape(o))return!0;if(o.switchU){var v=o.current();(v===99||Es(v))&&o.raise("Invalid class escape"),o.raise("Invalid escape")}o.pos=y}var w=o.current();return w!==93?(o.lastIntValue=w,o.advance(),!0):!1},Z.regexp_eatClassEscape=function(o){var y=o.pos;if(o.eat(98))return o.lastIntValue=8,!0;if(o.switchU&&o.eat(45))return o.lastIntValue=45,!0;if(!o.switchU&&o.eat(99)){if(this.regexp_eatClassControlLetter(o))return!0;o.pos=y}return this.regexp_eatCharacterClassEscape(o)||this.regexp_eatCharacterEscape(o)},Z.regexp_eatClassControlLetter=function(o){var y=o.current();return Mr(y)||y===95?(o.lastIntValue=y%32,o.advance(),!0):!1},Z.regexp_eatHexEscapeSequence=function(o){var y=o.pos;if(o.eat(120)){if(this.regexp_eatFixedHexDigits(o,2))return!0;o.switchU&&o.raise("Invalid escape"),o.pos=y}return!1},Z.regexp_eatDecimalDigits=function(o){var y=o.pos,v=0;for(o.lastIntValue=0;Mr(v=o.current());)o.lastIntValue=10*o.lastIntValue+(v-48),o.advance();return o.pos!==y};function Mr(o){return o>=48&&o<=57}Z.regexp_eatHexDigits=function(o){var y=o.pos,v=0;for(o.lastIntValue=0;lr(v=o.current());)o.lastIntValue=16*o.lastIntValue+_t(v),o.advance();return o.pos!==y};function lr(o){return o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102}function _t(o){return o>=65&&o<=70?10+(o-65):o>=97&&o<=102?10+(o-97):o-48}Z.regexp_eatLegacyOctalEscapeSequence=function(o){if(this.regexp_eatOctalDigit(o)){var y=o.lastIntValue;if(this.regexp_eatOctalDigit(o)){var v=o.lastIntValue;y<=3&&this.regexp_eatOctalDigit(o)?o.lastIntValue=y*64+v*8+o.lastIntValue:o.lastIntValue=y*8+v}else o.lastIntValue=y;return!0}return!1},Z.regexp_eatOctalDigit=function(o){var y=o.current();return Es(y)?(o.lastIntValue=y-48,o.advance(),!0):(o.lastIntValue=0,!1)};function Es(o){return o>=48&&o<=55}Z.regexp_eatFixedHexDigits=function(o,y){var v=o.pos;o.lastIntValue=0;for(var w=0;w<y;++w){var B=o.current();if(!lr(B))return o.pos=v,!1;o.lastIntValue=16*o.lastIntValue+_t(B),o.advance()}return!0};var cr=function(y){this.type=y.type,this.value=y.value,this.start=y.start,this.end=y.end,y.options.locations&&(this.loc=new ir(y,y.startLoc,y.endLoc)),y.options.ranges&&(this.range=[y.start,y.end])},ye=qe.prototype;ye.next=function(o){!o&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new cr(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ye.getToken=function(){return this.next(),new cr(this)},typeof Symbol!="undefined"&&(ye[Symbol.iterator]=function(){var o=this;return{next:function(){var y=o.getToken();return{done:y.type===T.eof,value:y}}}}),ye.curContext=function(){return this.context[this.context.length-1]},ye.nextToken=function(){var o=this.curContext();if((!o||!o.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(T.eof);if(o.override)return o.override(this);this.readToken(this.fullCharCodeAtPos())},ye.readToken=function(o){return re(o,this.options.ecmaVersion>=6)||o===92?this.readWord():this.getTokenFromCode(o)},ye.fullCharCodeAtPos=function(){var o=this.input.charCodeAt(this.pos);if(o<=55295||o>=57344)return o;var y=this.input.charCodeAt(this.pos+1);return(o<<10)+y-56613888},ye.skipBlockComment=function(){var o=this.options.onComment&&this.curPosition(),y=this.pos,v=this.input.indexOf("*/",this.pos+=2);if(v===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=v+2,this.options.locations){sn.lastIndex=y;for(var w;(w=sn.exec(this.input))&&w.index<this.pos;)++this.curLine,this.lineStart=w.index+w[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(y+2,v),y,this.pos,o,this.curPosition())},ye.skipLineComment=function(o){for(var y=this.pos,v=this.options.onComment&&this.curPosition(),w=this.input.charCodeAt(this.pos+=o);this.pos<this.input.length&&!rr(w);)w=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(y+o,this.pos),y,this.pos,v,this.curPosition())},ye.skipSpace=function(){e:for(;this.pos<this.input.length;){var o=this.input.charCodeAt(this.pos);switch(o){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(o>8&&o<14||o>=5760&&ci.test(String.fromCharCode(o)))++this.pos;else break e}}},ye.finishToken=function(o,y){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var v=this.type;this.type=o,this.value=y,this.updateContext(v)},ye.readToken_dot=function(){var o=this.input.charCodeAt(this.pos+1);if(o>=48&&o<=57)return this.readNumber(!0);var y=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&o===46&&y===46?(this.pos+=3,this.finishToken(T.ellipsis)):(++this.pos,this.finishToken(T.dot))},ye.readToken_slash=function(){var o=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):o===61?this.finishOp(T.assign,2):this.finishOp(T.slash,1)},ye.readToken_mult_modulo_exp=function(o){var y=this.input.charCodeAt(this.pos+1),v=1,w=o===42?T.star:T.modulo;return this.options.ecmaVersion>=7&&o===42&&y===42&&(++v,w=T.starstar,y=this.input.charCodeAt(this.pos+2)),y===61?this.finishOp(T.assign,v+1):this.finishOp(w,v)},ye.readToken_pipe_amp=function(o){var y=this.input.charCodeAt(this.pos+1);if(y===o){if(this.options.ecmaVersion>=12){var v=this.input.charCodeAt(this.pos+2);if(v===61)return this.finishOp(T.assign,3)}return this.finishOp(o===124?T.logicalOR:T.logicalAND,2)}return y===61?this.finishOp(T.assign,2):this.finishOp(o===124?T.bitwiseOR:T.bitwiseAND,1)},ye.readToken_caret=function(){var o=this.input.charCodeAt(this.pos+1);return o===61?this.finishOp(T.assign,2):this.finishOp(T.bitwiseXOR,1)},ye.readToken_plus_min=function(o){var y=this.input.charCodeAt(this.pos+1);return y===o?y===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||rt.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(T.incDec,2):y===61?this.finishOp(T.assign,2):this.finishOp(T.plusMin,1)},ye.readToken_lt_gt=function(o){var y=this.input.charCodeAt(this.pos+1),v=1;return y===o?(v=o===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+v)===61?this.finishOp(T.assign,v+1):this.finishOp(T.bitShift,v)):y===33&&o===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(y===61&&(v=2),this.finishOp(T.relational,v))},ye.readToken_eq_excl=function(o){var y=this.input.charCodeAt(this.pos+1);return y===61?this.finishOp(T.equality,this.input.charCodeAt(this.pos+2)===61?3:2):o===61&&y===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(T.arrow)):this.finishOp(o===61?T.eq:T.prefix,1)},ye.readToken_question=function(){var o=this.options.ecmaVersion;if(o>=11){var y=this.input.charCodeAt(this.pos+1);if(y===46){var v=this.input.charCodeAt(this.pos+2);if(v<48||v>57)return this.finishOp(T.questionDot,2)}if(y===63){if(o>=12){var w=this.input.charCodeAt(this.pos+2);if(w===61)return this.finishOp(T.assign,3)}return this.finishOp(T.coalesce,2)}}return this.finishOp(T.question,1)},ye.getTokenFromCode=function(o){switch(o){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(T.parenL);case 41:return++this.pos,this.finishToken(T.parenR);case 59:return++this.pos,this.finishToken(T.semi);case 44:return++this.pos,this.finishToken(T.comma);case 91:return++this.pos,this.finishToken(T.bracketL);case 93:return++this.pos,this.finishToken(T.bracketR);case 123:return++this.pos,this.finishToken(T.braceL);case 125:return++this.pos,this.finishToken(T.braceR);case 58:return++this.pos,this.finishToken(T.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(T.backQuote);case 48:var y=this.input.charCodeAt(this.pos+1);if(y===120||y===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(y===111||y===79)return this.readRadixNumber(8);if(y===98||y===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(o);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(o);case 124:case 38:return this.readToken_pipe_amp(o);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(o);case 60:case 62:return this.readToken_lt_gt(o);case 61:case 33:return this.readToken_eq_excl(o);case 63:return this.readToken_question();case 126:return this.finishOp(T.prefix,1)}this.raise(this.pos,"Unexpected character '"+bi(o)+"'")},ye.finishOp=function(o,y){var v=this.input.slice(this.pos,this.pos+y);return this.pos+=y,this.finishToken(o,v)},ye.readRegexp=function(){for(var o,y,v=this.pos;;){this.pos>=this.input.length&&this.raise(v,"Unterminated regular expression");var w=this.input.charAt(this.pos);if(rt.test(w)&&this.raise(v,"Unterminated regular expression"),o)o=!1;else{if(w==="[")y=!0;else if(w==="]"&&y)y=!1;else if(w==="/"&&!y)break;o=w==="\\"}++this.pos}var B=this.input.slice(v,this.pos);++this.pos;var M=this.pos,V=this.readWord1();this.containsEsc&&this.unexpected(M);var H=this.regexpState||(this.regexpState=new ut(this));H.reset(v,B,V),this.validateRegExpFlags(H),this.validateRegExpPattern(H);var K=null;try{K=new RegExp(B,V)}catch(De){}return this.finishToken(T.regexp,{pattern:B,flags:V,value:K})},ye.readInt=function(o,y,v){for(var w=this.options.ecmaVersion>=12&&y===void 0,B=v&&this.input.charCodeAt(this.pos)===48,M=this.pos,V=0,H=0,K=0,De=y??Infinity;K<De;++K,++this.pos){var Be=this.input.charCodeAt(this.pos),ot=void 0;if(w&&Be===95){B&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),H===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),K===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),H=Be;continue}if(Be>=97?ot=Be-97+10:Be>=65?ot=Be-65+10:Be>=48&&Be<=57?ot=Be-48:ot=Infinity,ot>=o)break;H=Be,V=V*o+ot}return w&&H===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===M||y!=null&&this.pos-M!==y?null:V};function Wo(o,y){return y?parseInt(o,8):parseFloat(o.replace(/_/g,""))}function _a(o){return typeof BigInt!="function"?null:BigInt(o.replace(/_/g,""))}ye.readRadixNumber=function(o){var y=this.pos;this.pos+=2;var v=this.readInt(o);return v==null&&this.raise(this.start+2,"Expected number in radix "+o),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(v=_a(this.input.slice(y,this.pos)),++this.pos):re(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(T.num,v)},ye.readNumber=function(o){var y=this.pos;!o&&this.readInt(10,void 0,!0)===null&&this.raise(y,"Invalid number");var v=this.pos-y>=2&&this.input.charCodeAt(y)===48;v&&this.strict&&this.raise(y,"Invalid number");var w=this.input.charCodeAt(this.pos);if(!v&&!o&&this.options.ecmaVersion>=11&&w===110){var B=_a(this.input.slice(y,this.pos));return++this.pos,re(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(T.num,B)}v&&/[89]/.test(this.input.slice(y,this.pos))&&(v=!1),w===46&&!v&&(++this.pos,this.readInt(10),w=this.input.charCodeAt(this.pos)),(w===69||w===101)&&!v&&(w=this.input.charCodeAt(++this.pos),(w===43||w===45)&&++this.pos,this.readInt(10)===null&&this.raise(y,"Invalid number")),re(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var M=Wo(this.input.slice(y,this.pos),v);return this.finishToken(T.num,M)},ye.readCodePoint=function(){var o=this.input.charCodeAt(this.pos),y;if(o===123){this.options.ecmaVersion<6&&this.unexpected();var v=++this.pos;y=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,y>1114111&&this.invalidStringToken(v,"Code point out of bounds")}else y=this.readHexChar(4);return y};function bi(o){return o<=65535?String.fromCharCode(o):(o-=65536,String.fromCharCode((o>>10)+55296,(o&1023)+56320))}ye.readString=function(o){for(var y="",v=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var w=this.input.charCodeAt(this.pos);if(w===o)break;w===92?(y+=this.input.slice(v,this.pos),y+=this.readEscapedChar(!1),v=this.pos):(rr(w,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return y+=this.input.slice(v,this.pos++),this.finishToken(T.string,y)};var vs={};ye.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(o){if(o===vs)this.readInvalidTemplateToken();else throw o}this.inTemplateElement=!1},ye.invalidStringToken=function(o,y){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw vs;this.raise(o,y)},ye.readTmplToken=function(){for(var o="",y=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var v=this.input.charCodeAt(this.pos);if(v===96||v===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===T.template||this.type===T.invalidTemplate)?v===36?(this.pos+=2,this.finishToken(T.dollarBraceL)):(++this.pos,this.finishToken(T.backQuote)):(o+=this.input.slice(y,this.pos),this.finishToken(T.template,o));if(v===92)o+=this.input.slice(y,this.pos),o+=this.readEscapedChar(!0),y=this.pos;else if(rr(v)){switch(o+=this.input.slice(y,this.pos),++this.pos,v){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:o+=`
|
|
15
|
-
`;break;default:o+=String.fromCharCode(v);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),y=this.pos}else++this.pos}},
|
|
16
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return bi(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(o){var v=this.pos-1;return this.invalidStringToken(v,"Invalid escape sequence in template string"),null}default:if(y>=48&&y<=55){var w=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],B=parseInt(w,8);return B>255&&(w=w.slice(0,-1),B=parseInt(w,8)),this.pos+=w.length-1,y=this.input.charCodeAt(this.pos),(w!=="0"||y===56||y===57)&&(this.strict||o)&&this.invalidStringToken(this.pos-1-w.length,o?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(B)}return rr(y)?"":String.fromCharCode(y)}},
|
|
17
|
-
`&&g.stack.pop();break;case ft.BLOCK_COMMENT:g.lastChar==="*"&&f==="/"&&g.stack.pop();break;case ft.SINGLE_QUOTE:f==="'"&&!g.escaped?g.stack.pop():f==="\\"&&!g.escaped?g.escaped=!0:g.escaped=!1;break;case ft.DOUBLE_QUOTE:f==='"'&&!g.escaped?g.stack.pop():f==="\\"&&!g.escaped?g.escaped=!0:g.escaped=!1;break;case ft.TEMPLATE_QUOTE:f==="`"&&!g.escaped?(g.stack.pop(),g.hasDollar=!1):f==="\\"&&!g.escaped?(g.escaped=!0,g.hasDollar=!1):f==="$"&&!g.escaped?g.hasDollar=!0:f==="{"&&g.hasDollar?g.stack.push(
|
|
12
|
+
`,_+1);S=S.substring(O+1)}this.stack=S}}};mn.inherits(ke.AssertionError,Error);function Vy(f,g){return typeof f=="string"?f.length<g?f:f.slice(0,g):f}function Uy(f){if(Iy||!mn.isFunction(f))return mn.inspect(f);var g=jy(f),D=g?": "+g:"";return"[Function"+D+"]"}function I8(f){return Vy(Uy(f.actual),128)+" "+f.operator+" "+Vy(Uy(f.expected),128)}function It(f,g,D,C,S){throw new ke.AssertionError({message:D,actual:f,expected:g,operator:C,stackStartFunction:S})}ke.fail=It;function My(f,g){f||It(f,!0,g,"==",ke.ok)}ke.ok=My;ke.equal=function(g,D,C){g!=D&&It(g,D,C,"==",ke.equal)};ke.notEqual=function(g,D,C){g==D&&It(g,D,C,"!=",ke.notEqual)};ke.deepEqual=function(g,D,C){es(g,D,!1)||It(g,D,C,"deepEqual",ke.deepEqual)};ke.deepStrictEqual=function(g,D,C){es(g,D,!0)||It(g,D,C,"deepStrictEqual",ke.deepStrictEqual)};function es(f,g,D,C){if(f===g)return!0;if(ha(f)&&ha(g))return Ny(f,g)===0;if(mn.isDate(f)&&mn.isDate(g))return f.getTime()===g.getTime();if(mn.isRegExp(f)&&mn.isRegExp(g))return f.source===g.source&&f.global===g.global&&f.multiline===g.multiline&&f.lastIndex===g.lastIndex&&f.ignoreCase===g.ignoreCase;if((f===null||typeof f!="object")&&(g===null||typeof g!="object"))return D?f===g:f==g;if(Ry(f)&&Ry(g)&&Ly(f)===Ly(g)&&!(f instanceof Float32Array||f instanceof Float64Array))return Ny(new Uint8Array(f.buffer),new Uint8Array(g.buffer))===0;if(ha(f)!==ha(g))return!1;C=C||{actual:[],expected:[]};var S=C.actual.indexOf(f);return S!==-1&&S===C.expected.indexOf(g)?!0:(C.actual.push(f),C.expected.push(g),L8(f,g,D,C))}function qy(f){return Object.prototype.toString.call(f)=="[object Arguments]"}function L8(f,g,D,C){if(f==null||g===null||g===void 0)return!1;if(mn.isPrimitive(f)||mn.isPrimitive(g))return f===g;if(D&&Object.getPrototypeOf(f)!==Object.getPrototypeOf(g))return!1;var S=qy(f),k=qy(g);if(S&&!k||!S&&k)return!1;if(S)return f=Oy.call(f),g=Oy.call(g),es(f,g,D);var _=$y(f),O=$y(g),j,W;if(_.length!==O.length)return!1;for(_.sort(),O.sort(),W=_.length-1;W>=0;W--)if(_[W]!==O[W])return!1;for(W=_.length-1;W>=0;W--)if(j=_[W],!es(f[j],g[j],D,C))return!1;return!0}ke.notDeepEqual=function(g,D,C){es(g,D,!1)&&It(g,D,C,"notDeepEqual",ke.notDeepEqual)};ke.notDeepStrictEqual=Wy;function Wy(f,g,D){es(f,g,!0)&&It(f,g,D,"notDeepStrictEqual",Wy)}ke.strictEqual=function(g,D,C){g!==D&&It(g,D,C,"===",ke.strictEqual)};ke.notStrictEqual=function(g,D,C){g===D&&It(g,D,C,"!==",ke.notStrictEqual)};function Gy(f,g){if(!f||!g)return!1;if(Object.prototype.toString.call(g)=="[object RegExp]")return g.test(f);try{if(f instanceof g)return!0}catch(D){}return Error.isPrototypeOf(g)?!1:g.call({},f)===!0}function R8(f){var g;try{f()}catch(D){g=D}return g}function Hy(f,g,D,C){var S;if(typeof g!="function")throw new TypeError('"block" argument must be a function');typeof D=="string"&&(C=D,D=null),S=R8(g),C=(D&&D.name?" ("+D.name+").":".")+(C?" "+C:"."),f&&!S&&It(S,D,"Missing expected exception"+C);var k=typeof C=="string",_=!f&&mn.isError(S),O=!f&&S&&!D;if((_&&k&&Gy(S,D)||O)&&It(S,D,"Got unwanted exception"+C),f&&S&&D&&!Gy(S,D)||!f&&S)throw S}ke.throws=function(f,g,D){Hy(!0,f,g,D)};ke.doesNotThrow=function(f,g,D){Hy(!1,f,g,D)};ke.ifError=function(f){if(f)throw f};function zy(f,g){f||It(f,!0,g,"==",zy)}ke.strict=B8(zy,ke,{equal:ke.strictEqual,deepEqual:ke.deepStrictEqual,notEqual:ke.notStrictEqual,notDeepEqual:ke.notDeepStrictEqual});ke.strict.strict=ke.strict;var $y=Object.keys||function(f){var g=[];for(var D in f)N8.call(f,D)&&g.push(D);return g}});var Yy=ge((fo,Xy)=>{(function(f,g){typeof fo=="object"&&typeof Xy!="undefined"?g(fo):typeof define=="function"&&define.amd?define(["exports"],g):(f=f||self,g(f.acorn={}))})(fo,function(f){"use strict";var g={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"},D="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",C={5:D,"5module":D+" export import",6:D+" const class extends export import super"},S=/^in(stanceof)?$/,k="\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",_="\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",O=new RegExp("["+k+"]"),j=new RegExp("["+k+_+"]");k=_=null;var W=[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],z=[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 Q(o,y){for(var v=65536,w=0;w<y.length;w+=2){if(v+=y[w],v>o)return!1;if(v+=y[w+1],v>=o)return!0}}function ee(o,y){return o<65?o===36:o<91?!0:o<97?o===95:o<123?!0:o<=65535?o>=170&&O.test(String.fromCharCode(o)):y===!1?!1:Q(o,W)}function ye(o,y){return o<48?o===36:o<58?!0:o<65?!1:o<91?!0:o<97?o===95:o<123?!0:o<=65535?o>=170&&j.test(String.fromCharCode(o)):y===!1?!1:Q(o,W)||Q(o,z)}var le=function(y,v){v===void 0&&(v={}),this.label=y,this.keyword=v.keyword,this.beforeExpr=!!v.beforeExpr,this.startsExpr=!!v.startsExpr,this.isLoop=!!v.isLoop,this.isAssign=!!v.isAssign,this.prefix=!!v.prefix,this.postfix=!!v.postfix,this.binop=v.binop||null,this.updateContext=null};function _e(o,y){return new le(o,{beforeExpr:!0,binop:y})}var Ue={beforeExpr:!0},Ye={startsExpr:!0},yn={};function de(o,y){return y===void 0&&(y={}),y.keyword=o,yn[o]=new le(o,y)}var T={num:new le("num",Ye),regexp:new le("regexp",Ye),string:new le("string",Ye),name:new le("name",Ye),eof:new le("eof"),bracketL:new le("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new le("]"),braceL:new le("{",{beforeExpr:!0,startsExpr:!0}),braceR:new le("}"),parenL:new le("(",{beforeExpr:!0,startsExpr:!0}),parenR:new le(")"),comma:new le(",",Ue),semi:new le(";",Ue),colon:new le(":",Ue),dot:new le("."),question:new le("?",Ue),questionDot:new le("?."),arrow:new le("=>",Ue),template:new le("template"),invalidTemplate:new le("invalidTemplate"),ellipsis:new le("...",Ue),backQuote:new le("`",Ye),dollarBraceL:new le("${",{beforeExpr:!0,startsExpr:!0}),eq:new le("=",{beforeExpr:!0,isAssign:!0}),assign:new le("_=",{beforeExpr:!0,isAssign:!0}),incDec:new le("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new le("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:_e("||",1),logicalAND:_e("&&",2),bitwiseOR:_e("|",3),bitwiseXOR:_e("^",4),bitwiseAND:_e("&",5),equality:_e("==/!=/===/!==",6),relational:_e("</>/<=/>=",7),bitShift:_e("<</>>/>>>",8),plusMin:new le("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:_e("%",10),star:_e("*",10),slash:_e("/",10),starstar:new le("**",{beforeExpr:!0}),coalesce:_e("??",1),_break:de("break"),_case:de("case",Ue),_catch:de("catch"),_continue:de("continue"),_debugger:de("debugger"),_default:de("default",Ue),_do:de("do",{isLoop:!0,beforeExpr:!0}),_else:de("else",Ue),_finally:de("finally"),_for:de("for",{isLoop:!0}),_function:de("function",Ye),_if:de("if"),_return:de("return",Ue),_switch:de("switch"),_throw:de("throw",Ue),_try:de("try"),_var:de("var"),_const:de("const"),_while:de("while",{isLoop:!0}),_with:de("with"),_new:de("new",{beforeExpr:!0,startsExpr:!0}),_this:de("this",Ye),_super:de("super",Ye),_class:de("class",Ye),_extends:de("extends",Ue),_export:de("export"),_import:de("import",Ye),_null:de("null",Ye),_true:de("true",Ye),_false:de("false",Ye),_in:de("in",{beforeExpr:!0,binop:7}),_instanceof:de("instanceof",{beforeExpr:!0,binop:7}),_typeof:de("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:de("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:de("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},rt=/\r\n?|\n|\u2028|\u2029/,sn=new RegExp(rt.source,"g");function rr(o,y){return o===10||o===13||!y&&(o===8232||o===8233)}var ci=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,yt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,os=Object.prototype,ls=os.hasOwnProperty,Ro=os.toString;function Nr(o,y){return ls.call(o,y)}var cs=Array.isArray||function(o){return Ro.call(o)==="[object Array]"};function Ht(o){return new RegExp("^(?:"+o.replace(/ /g,"|")+")$")}var On=function(y,v){this.line=y,this.column=v};On.prototype.offset=function(y){return new On(this.line,this.column+y)};var ir=function(y,v,w){this.start=v,this.end=w,y.sourceFile!==null&&(this.source=y.sourceFile)};function ps(o,y){for(var v=1,w=0;;){sn.lastIndex=w;var B=sn.exec(o);if(B&&B.index<y)++v,w=B.index+B[0].length;else return new On(v,y-w)}}var pi={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 ya(o){var y={};for(var v in pi)y[v]=o&&Nr(o,v)?o[v]:pi[v];if(y.ecmaVersion>=2015&&(y.ecmaVersion-=2009),y.allowReserved==null&&(y.allowReserved=y.ecmaVersion<5),cs(y.onToken)){var w=y.onToken;y.onToken=function(B){return w.push(B)}}return cs(y.onComment)&&(y.onComment=fs(y,y.onComment)),y}function fs(o,y){return function(v,w,B,M,V,H){var K={type:v?"Block":"Line",value:w,start:B,end:M};o.locations&&(K.loc=new ir(this,V,H)),o.ranges&&(K.range=[B,M]),y.push(K)}}var sr=1,ar=2,an=sr|ar,hs=4,ds=8,fi=16,Da=32,ba=64,Or=128;function hi(o,y){return ar|(o?hs:0)|(y?ds:0)}var In=0,di=1,Rt=2,Ea=3,va=4,gi=5,qe=function(y,v,w){this.options=y=ya(y),this.sourceFile=y.sourceFile,this.keywords=Ht(C[y.ecmaVersion>=6?6:y.sourceType==="module"?"5module":5]);var B="";if(y.allowReserved!==!0){for(var M=y.ecmaVersion;!(B=g[M]);M--);y.sourceType==="module"&&(B+=" await")}this.reservedWords=Ht(B);var V=(B?B+" ":"")+g.strict;this.reservedWordsStrict=Ht(V),this.reservedWordsStrictBind=Ht(V+" "+g.strictBind),this.input=String(v),this.containsEsc=!1,w?(this.pos=w,this.lineStart=this.input.lastIndexOf(`
|
|
13
|
+
`,w-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(rt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=T.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=y.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&&y.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(sr),this.regexpState=null},Dn={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};qe.prototype.parse=function(){var y=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(y)},Dn.inFunction.get=function(){return(this.currentVarScope().flags&ar)>0},Dn.inGenerator.get=function(){return(this.currentVarScope().flags&ds)>0},Dn.inAsync.get=function(){return(this.currentVarScope().flags&hs)>0},Dn.allowSuper.get=function(){return(this.currentThisScope().flags&ba)>0},Dn.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Or)>0},Dn.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},qe.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&ar)>0},qe.extend=function(){for(var y=[],v=arguments.length;v--;)y[v]=arguments[v];for(var w=this,B=0;B<y.length;B++)w=y[B](w);return w},qe.parse=function(y,v){return new this(v,y).parse()},qe.parseExpressionAt=function(y,v,w){var B=new this(w,y,v);return B.nextToken(),B.parseExpression()},qe.tokenizer=function(y,v){return new this(v,y)},Object.defineProperties(qe.prototype,Dn);var it=qe.prototype,Mo=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;it.strictDirective=function(o){for(;;){yt.lastIndex=o,o+=yt.exec(this.input)[0].length;var y=Mo.exec(this.input.slice(o));if(!y)return!1;if((y[1]||y[2])==="use strict"){yt.lastIndex=o+y[0].length;var v=yt.exec(this.input),w=v.index+v[0].length,B=this.input.charAt(w);return B===";"||B==="}"||rt.test(v[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(B)||B==="!"&&this.input.charAt(w+1)==="=")}o+=y[0].length,yt.lastIndex=o,o+=yt.exec(this.input)[0].length,this.input[o]===";"&&o++}},it.eat=function(o){return this.type===o?(this.next(),!0):!1},it.isContextual=function(o){return this.type===T.name&&this.value===o&&!this.containsEsc},it.eatContextual=function(o){return this.isContextual(o)?(this.next(),!0):!1},it.expectContextual=function(o){this.eatContextual(o)||this.unexpected()},it.canInsertSemicolon=function(){return this.type===T.eof||this.type===T.braceR||rt.test(this.input.slice(this.lastTokEnd,this.start))},it.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},it.semicolon=function(){!this.eat(T.semi)&&!this.insertSemicolon()&&this.unexpected()},it.afterTrailingComma=function(o,y){if(this.type===o)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),y||this.next(),!0},it.expect=function(o){this.eat(o)||this.unexpected()},it.unexpected=function(o){this.raise(o??this.start,"Unexpected token")};function Ir(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}it.checkPatternErrors=function(o,y){if(!!o){o.trailingComma>-1&&this.raiseRecoverable(o.trailingComma,"Comma is not permitted after the rest element");var v=y?o.parenthesizedAssign:o.parenthesizedBind;v>-1&&this.raiseRecoverable(v,"Parenthesized pattern")}},it.checkExpressionErrors=function(o,y){if(!o)return!1;var v=o.shorthandAssign,w=o.doubleProto;if(!y)return v>=0||w>=0;v>=0&&this.raise(v,"Shorthand property assignments are valid only in destructuring patterns"),w>=0&&this.raiseRecoverable(w,"Redefinition of __proto__ property")},it.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")},it.isSimpleAssignTarget=function(o){return o.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(o.expression):o.type==="Identifier"||o.type==="MemberExpression"};var ce=qe.prototype;ce.parseTopLevel=function(o){var y={};for(o.body||(o.body=[]);this.type!==T.eof;){var v=this.parseStatement(null,!0,y);o.body.push(v)}if(this.inModule)for(var w=0,B=Object.keys(this.undefinedExports);w<B.length;w+=1){var M=B[w];this.raiseRecoverable(this.undefinedExports[M].start,"Export '"+M+"' is not defined")}return this.adaptDirectivePrologue(o.body),this.next(),o.sourceType=this.options.sourceType,this.finishNode(o,"Program")};var gs={kind:"loop"},ms={kind:"switch"};ce.isLet=function(o){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;yt.lastIndex=this.pos;var y=yt.exec(this.input),v=this.pos+y[0].length,w=this.input.charCodeAt(v);if(w===91)return!0;if(o)return!1;if(w===123)return!0;if(ee(w,!0)){for(var B=v+1;ye(this.input.charCodeAt(B),!0);)++B;var M=this.input.slice(v,B);if(!S.test(M))return!0}return!1},ce.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;yt.lastIndex=this.pos;var o=yt.exec(this.input),y=this.pos+o[0].length;return!rt.test(this.input.slice(this.pos,y))&&this.input.slice(y,y+8)==="function"&&(y+8===this.input.length||!ye(this.input.charAt(y+8)))},ce.parseStatement=function(o,y,v){var w=this.type,B=this.startNode(),M;switch(this.isLet(o)&&(w=T._var,M="let"),w){case T._break:case T._continue:return this.parseBreakContinueStatement(B,w.keyword);case T._debugger:return this.parseDebuggerStatement(B);case T._do:return this.parseDoStatement(B);case T._for:return this.parseForStatement(B);case T._function:return o&&(this.strict||o!=="if"&&o!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(B,!1,!o);case T._class:return o&&this.unexpected(),this.parseClass(B,!0);case T._if:return this.parseIfStatement(B);case T._return:return this.parseReturnStatement(B);case T._switch:return this.parseSwitchStatement(B);case T._throw:return this.parseThrowStatement(B);case T._try:return this.parseTryStatement(B);case T._const:case T._var:return M=M||this.value,o&&M!=="var"&&this.unexpected(),this.parseVarStatement(B,M);case T._while:return this.parseWhileStatement(B);case T._with:return this.parseWithStatement(B);case T.braceL:return this.parseBlock(!0,B);case T.semi:return this.parseEmptyStatement(B);case T._export:case T._import:if(this.options.ecmaVersion>10&&w===T._import){yt.lastIndex=this.pos;var V=yt.exec(this.input),H=this.pos+V[0].length,K=this.input.charCodeAt(H);if(K===40||K===46)return this.parseExpressionStatement(B,this.parseExpression())}return this.options.allowImportExportEverywhere||(y||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'")),w===T._import?this.parseImport(B):this.parseExport(B,v);default:if(this.isAsyncFunction())return o&&this.unexpected(),this.next(),this.parseFunctionStatement(B,!0,!o);var be=this.value,Be=this.parseExpression();return w===T.name&&Be.type==="Identifier"&&this.eat(T.colon)?this.parseLabeledStatement(B,be,Be,o):this.parseExpressionStatement(B,Be)}},ce.parseBreakContinueStatement=function(o,y){var v=y==="break";this.next(),this.eat(T.semi)||this.insertSemicolon()?o.label=null:this.type!==T.name?this.unexpected():(o.label=this.parseIdent(),this.semicolon());for(var w=0;w<this.labels.length;++w){var B=this.labels[w];if((o.label==null||B.name===o.label.name)&&(B.kind!=null&&(v||B.kind==="loop")||o.label&&v))break}return w===this.labels.length&&this.raise(o.start,"Unsyntactic "+y),this.finishNode(o,v?"BreakStatement":"ContinueStatement")},ce.parseDebuggerStatement=function(o){return this.next(),this.semicolon(),this.finishNode(o,"DebuggerStatement")},ce.parseDoStatement=function(o){return this.next(),this.labels.push(gs),o.body=this.parseStatement("do"),this.labels.pop(),this.expect(T._while),o.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(T.semi):this.semicolon(),this.finishNode(o,"DoWhileStatement")},ce.parseForStatement=function(o){this.next();var y=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(gs),this.enterScope(0),this.expect(T.parenL),this.type===T.semi)return y>-1&&this.unexpected(y),this.parseFor(o,null);var v=this.isLet();if(this.type===T._var||this.type===T._const||v){var w=this.startNode(),B=v?"let":this.value;return this.next(),this.parseVar(w,!0,B),this.finishNode(w,"VariableDeclaration"),(this.type===T._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&w.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===T._in?y>-1&&this.unexpected(y):o.await=y>-1),this.parseForIn(o,w)):(y>-1&&this.unexpected(y),this.parseFor(o,w))}var M=new Ir,V=this.parseExpression(!0,M);return this.type===T._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===T._in?y>-1&&this.unexpected(y):o.await=y>-1),this.toAssignable(V,!1,M),this.checkLVal(V),this.parseForIn(o,V)):(this.checkExpressionErrors(M,!0),y>-1&&this.unexpected(y),this.parseFor(o,V))},ce.parseFunctionStatement=function(o,y,v){return this.next(),this.parseFunction(o,un|(v?0:mi),!1,y)},ce.parseIfStatement=function(o){return this.next(),o.test=this.parseParenExpression(),o.consequent=this.parseStatement("if"),o.alternate=this.eat(T._else)?this.parseStatement("if"):null,this.finishNode(o,"IfStatement")},ce.parseReturnStatement=function(o){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(T.semi)||this.insertSemicolon()?o.argument=null:(o.argument=this.parseExpression(),this.semicolon()),this.finishNode(o,"ReturnStatement")},ce.parseSwitchStatement=function(o){this.next(),o.discriminant=this.parseParenExpression(),o.cases=[],this.expect(T.braceL),this.labels.push(ms),this.enterScope(0);for(var y,v=!1;this.type!==T.braceR;)if(this.type===T._case||this.type===T._default){var w=this.type===T._case;y&&this.finishNode(y,"SwitchCase"),o.cases.push(y=this.startNode()),y.consequent=[],this.next(),w?y.test=this.parseExpression():(v&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),v=!0,y.test=null),this.expect(T.colon)}else y||this.unexpected(),y.consequent.push(this.parseStatement(null));return this.exitScope(),y&&this.finishNode(y,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(o,"SwitchStatement")},ce.parseThrowStatement=function(o){return this.next(),rt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),o.argument=this.parseExpression(),this.semicolon(),this.finishNode(o,"ThrowStatement")};var Lr=[];ce.parseTryStatement=function(o){if(this.next(),o.block=this.parseBlock(),o.handler=null,this.type===T._catch){var y=this.startNode();if(this.next(),this.eat(T.parenL)){y.param=this.parseBindingAtom();var v=y.param.type==="Identifier";this.enterScope(v?Da:0),this.checkLVal(y.param,v?va:Rt),this.expect(T.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),y.param=null,this.enterScope(0);y.body=this.parseBlock(!1),this.exitScope(),o.handler=this.finishNode(y,"CatchClause")}return o.finalizer=this.eat(T._finally)?this.parseBlock():null,!o.handler&&!o.finalizer&&this.raise(o.start,"Missing catch or finally clause"),this.finishNode(o,"TryStatement")},ce.parseVarStatement=function(o,y){return this.next(),this.parseVar(o,!1,y),this.semicolon(),this.finishNode(o,"VariableDeclaration")},ce.parseWhileStatement=function(o){return this.next(),o.test=this.parseParenExpression(),this.labels.push(gs),o.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(o,"WhileStatement")},ce.parseWithStatement=function(o){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),o.object=this.parseParenExpression(),o.body=this.parseStatement("with"),this.finishNode(o,"WithStatement")},ce.parseEmptyStatement=function(o){return this.next(),this.finishNode(o,"EmptyStatement")},ce.parseLabeledStatement=function(o,y,v,w){for(var B=0,M=this.labels;B<M.length;B+=1){var V=M[B];V.name===y&&this.raise(v.start,"Label '"+y+"' is already declared")}for(var H=this.type.isLoop?"loop":this.type===T._switch?"switch":null,K=this.labels.length-1;K>=0;K--){var be=this.labels[K];if(be.statementStart===o.start)be.statementStart=this.start,be.kind=H;else break}return this.labels.push({name:y,kind:H,statementStart:this.start}),o.body=this.parseStatement(w?w.indexOf("label")===-1?w+"label":w:"label"),this.labels.pop(),o.label=v,this.finishNode(o,"LabeledStatement")},ce.parseExpressionStatement=function(o,y){return o.expression=y,this.semicolon(),this.finishNode(o,"ExpressionStatement")},ce.parseBlock=function(o,y,v){for(o===void 0&&(o=!0),y===void 0&&(y=this.startNode()),y.body=[],this.expect(T.braceL),o&&this.enterScope(0);this.type!==T.braceR;){var w=this.parseStatement(null);y.body.push(w)}return v&&(this.strict=!1),this.next(),o&&this.exitScope(),this.finishNode(y,"BlockStatement")},ce.parseFor=function(o,y){return o.init=y,this.expect(T.semi),o.test=this.type===T.semi?null:this.parseExpression(),this.expect(T.semi),o.update=this.type===T.parenR?null:this.parseExpression(),this.expect(T.parenR),o.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(o,"ForStatement")},ce.parseForIn=function(o,y){var v=this.type===T._in;return this.next(),y.type==="VariableDeclaration"&&y.declarations[0].init!=null&&(!v||this.options.ecmaVersion<8||this.strict||y.kind!=="var"||y.declarations[0].id.type!=="Identifier")?this.raise(y.start,(v?"for-in":"for-of")+" loop variable declaration may not have an initializer"):y.type==="AssignmentPattern"&&this.raise(y.start,"Invalid left-hand side in for-loop"),o.left=y,o.right=v?this.parseExpression():this.parseMaybeAssign(),this.expect(T.parenR),o.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(o,v?"ForInStatement":"ForOfStatement")},ce.parseVar=function(o,y,v){for(o.declarations=[],o.kind=v;;){var w=this.startNode();if(this.parseVarId(w,v),this.eat(T.eq)?w.init=this.parseMaybeAssign(y):v==="const"&&!(this.type===T._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():w.id.type!=="Identifier"&&!(y&&(this.type===T._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):w.init=null,o.declarations.push(this.finishNode(w,"VariableDeclarator")),!this.eat(T.comma))break}return o},ce.parseVarId=function(o,y){o.id=this.parseBindingAtom(),this.checkLVal(o.id,y==="var"?di:Rt,!1)};var un=1,mi=2,ys=4;ce.parseFunction=function(o,y,v,w){this.initFunction(o),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!w)&&(this.type===T.star&&y&mi&&this.unexpected(),o.generator=this.eat(T.star)),this.options.ecmaVersion>=8&&(o.async=!!w),y&un&&(o.id=y&ys&&this.type!==T.name?null:this.parseIdent(),o.id&&!(y&mi)&&this.checkLVal(o.id,this.strict||o.generator||o.async?this.treatFunctionsAsVar?di:Rt:Ea));var B=this.yieldPos,M=this.awaitPos,V=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(hi(o.async,o.generator)),y&un||(o.id=this.type===T.name?this.parseIdent():null),this.parseFunctionParams(o),this.parseFunctionBody(o,v,!1),this.yieldPos=B,this.awaitPos=M,this.awaitIdentPos=V,this.finishNode(o,y&un?"FunctionDeclaration":"FunctionExpression")},ce.parseFunctionParams=function(o){this.expect(T.parenL),o.params=this.parseBindingList(T.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ce.parseClass=function(o,y){this.next();var v=this.strict;this.strict=!0,this.parseClassId(o,y),this.parseClassSuper(o);var w=this.startNode(),B=!1;for(w.body=[],this.expect(T.braceL);this.type!==T.braceR;){var M=this.parseClassElement(o.superClass!==null);M&&(w.body.push(M),M.type==="MethodDefinition"&&M.kind==="constructor"&&(B&&this.raise(M.start,"Duplicate constructor in the same class"),B=!0))}return this.strict=v,this.next(),o.body=this.finishNode(w,"ClassBody"),this.finishNode(o,y?"ClassDeclaration":"ClassExpression")},ce.parseClassElement=function(o){var y=this;if(this.eat(T.semi))return null;var v=this.startNode(),w=function(K,be){be===void 0&&(be=!1);var Be=y.start,ot=y.startLoc;return y.eatContextual(K)?y.type!==T.parenL&&(!be||!y.canInsertSemicolon())?!0:(v.key&&y.unexpected(),v.computed=!1,v.key=y.startNodeAt(Be,ot),v.key.name=K,y.finishNode(v.key,"Identifier"),!1):!1};v.kind="method",v.static=w("static");var B=this.eat(T.star),M=!1;B||(this.options.ecmaVersion>=8&&w("async",!0)?(M=!0,B=this.options.ecmaVersion>=9&&this.eat(T.star)):w("get")?v.kind="get":w("set")&&(v.kind="set")),v.key||this.parsePropertyName(v);var V=v.key,H=!1;return!v.computed&&!v.static&&(V.type==="Identifier"&&V.name==="constructor"||V.type==="Literal"&&V.value==="constructor")?(v.kind!=="method"&&this.raise(V.start,"Constructor can't have get/set modifier"),B&&this.raise(V.start,"Constructor can't be a generator"),M&&this.raise(V.start,"Constructor can't be an async method"),v.kind="constructor",H=o):v.static&&V.type==="Identifier"&&V.name==="prototype"&&this.raise(V.start,"Classes may not have a static property named prototype"),this.parseClassMethod(v,B,M,H),v.kind==="get"&&v.value.params.length!==0&&this.raiseRecoverable(v.value.start,"getter should have no params"),v.kind==="set"&&v.value.params.length!==1&&this.raiseRecoverable(v.value.start,"setter should have exactly one param"),v.kind==="set"&&v.value.params[0].type==="RestElement"&&this.raiseRecoverable(v.value.params[0].start,"Setter cannot use rest params"),v},ce.parseClassMethod=function(o,y,v,w){return o.value=this.parseMethod(y,v,w),this.finishNode(o,"MethodDefinition")},ce.parseClassId=function(o,y){this.type===T.name?(o.id=this.parseIdent(),y&&this.checkLVal(o.id,Rt,!1)):(y===!0&&this.unexpected(),o.id=null)},ce.parseClassSuper=function(o){o.superClass=this.eat(T._extends)?this.parseExprSubscripts():null},ce.parseExport=function(o,y){if(this.next(),this.eat(T.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(o.exported=this.parseIdent(!0),this.checkExport(y,o.exported.name,this.lastTokStart)):o.exported=null),this.expectContextual("from"),this.type!==T.string&&this.unexpected(),o.source=this.parseExprAtom(),this.semicolon(),this.finishNode(o,"ExportAllDeclaration");if(this.eat(T._default)){this.checkExport(y,"default",this.lastTokStart);var v;if(this.type===T._function||(v=this.isAsyncFunction())){var w=this.startNode();this.next(),v&&this.next(),o.declaration=this.parseFunction(w,un|ys,!1,v)}else if(this.type===T._class){var B=this.startNode();o.declaration=this.parseClass(B,"nullableID")}else o.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(o,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())o.declaration=this.parseStatement(null),o.declaration.type==="VariableDeclaration"?this.checkVariableExport(y,o.declaration.declarations):this.checkExport(y,o.declaration.id.name,o.declaration.id.start),o.specifiers=[],o.source=null;else{if(o.declaration=null,o.specifiers=this.parseExportSpecifiers(y),this.eatContextual("from"))this.type!==T.string&&this.unexpected(),o.source=this.parseExprAtom();else{for(var M=0,V=o.specifiers;M<V.length;M+=1){var H=V[M];this.checkUnreserved(H.local),this.checkLocalExport(H.local)}o.source=null}this.semicolon()}return this.finishNode(o,"ExportNamedDeclaration")},ce.checkExport=function(o,y,v){!o||(Nr(o,y)&&this.raiseRecoverable(v,"Duplicate export '"+y+"'"),o[y]=!0)},ce.checkPatternExport=function(o,y){var v=y.type;if(v==="Identifier")this.checkExport(o,y.name,y.start);else if(v==="ObjectPattern")for(var w=0,B=y.properties;w<B.length;w+=1){var M=B[w];this.checkPatternExport(o,M)}else if(v==="ArrayPattern")for(var V=0,H=y.elements;V<H.length;V+=1){var K=H[V];K&&this.checkPatternExport(o,K)}else v==="Property"?this.checkPatternExport(o,y.value):v==="AssignmentPattern"?this.checkPatternExport(o,y.left):v==="RestElement"?this.checkPatternExport(o,y.argument):v==="ParenthesizedExpression"&&this.checkPatternExport(o,y.expression)},ce.checkVariableExport=function(o,y){if(!!o)for(var v=0,w=y;v<w.length;v+=1){var B=w[v];this.checkPatternExport(o,B.id)}},ce.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},ce.parseExportSpecifiers=function(o){var y=[],v=!0;for(this.expect(T.braceL);!this.eat(T.braceR);){if(v)v=!1;else if(this.expect(T.comma),this.afterTrailingComma(T.braceR))break;var w=this.startNode();w.local=this.parseIdent(!0),w.exported=this.eatContextual("as")?this.parseIdent(!0):w.local,this.checkExport(o,w.exported.name,w.exported.start),y.push(this.finishNode(w,"ExportSpecifier"))}return y},ce.parseImport=function(o){return this.next(),this.type===T.string?(o.specifiers=Lr,o.source=this.parseExprAtom()):(o.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),o.source=this.type===T.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(o,"ImportDeclaration")},ce.parseImportSpecifiers=function(){var o=[],y=!0;if(this.type===T.name){var v=this.startNode();if(v.local=this.parseIdent(),this.checkLVal(v.local,Rt),o.push(this.finishNode(v,"ImportDefaultSpecifier")),!this.eat(T.comma))return o}if(this.type===T.star){var w=this.startNode();return this.next(),this.expectContextual("as"),w.local=this.parseIdent(),this.checkLVal(w.local,Rt),o.push(this.finishNode(w,"ImportNamespaceSpecifier")),o}for(this.expect(T.braceL);!this.eat(T.braceR);){if(y)y=!1;else if(this.expect(T.comma),this.afterTrailingComma(T.braceR))break;var B=this.startNode();B.imported=this.parseIdent(!0),this.eatContextual("as")?B.local=this.parseIdent():(this.checkUnreserved(B.imported),B.local=B.imported),this.checkLVal(B.local,Rt),o.push(this.finishNode(B,"ImportSpecifier"))}return o},ce.adaptDirectivePrologue=function(o){for(var y=0;y<o.length&&this.isDirectiveCandidate(o[y]);++y)o[y].directive=o[y].expression.raw.slice(1,-1)},ce.isDirectiveCandidate=function(o){return o.type==="ExpressionStatement"&&o.expression.type==="Literal"&&typeof o.expression.value=="string"&&(this.input[o.start]==='"'||this.input[o.start]==="'")};var st=qe.prototype;st.toAssignable=function(o,y,v){if(this.options.ecmaVersion>=6&&o)switch(o.type){case"Identifier":this.inAsync&&o.name==="await"&&this.raise(o.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":o.type="ObjectPattern",v&&this.checkPatternErrors(v,!0);for(var w=0,B=o.properties;w<B.length;w+=1){var M=B[w];this.toAssignable(M,y),M.type==="RestElement"&&(M.argument.type==="ArrayPattern"||M.argument.type==="ObjectPattern")&&this.raise(M.argument.start,"Unexpected token")}break;case"Property":o.kind!=="init"&&this.raise(o.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(o.value,y);break;case"ArrayExpression":o.type="ArrayPattern",v&&this.checkPatternErrors(v,!0),this.toAssignableList(o.elements,y);break;case"SpreadElement":o.type="RestElement",this.toAssignable(o.argument,y),o.argument.type==="AssignmentPattern"&&this.raise(o.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":o.operator!=="="&&this.raise(o.left.end,"Only '=' operator can be used for specifying default value."),o.type="AssignmentPattern",delete o.operator,this.toAssignable(o.left,y);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(o.expression,y,v);break;case"ChainExpression":this.raiseRecoverable(o.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!y)break;default:this.raise(o.start,"Assigning to rvalue")}else v&&this.checkPatternErrors(v,!0);return o},st.toAssignableList=function(o,y){for(var v=o.length,w=0;w<v;w++){var B=o[w];B&&this.toAssignable(B,y)}if(v){var M=o[v-1];this.options.ecmaVersion===6&&y&&M&&M.type==="RestElement"&&M.argument.type!=="Identifier"&&this.unexpected(M.argument.start)}return o},st.parseSpread=function(o){var y=this.startNode();return this.next(),y.argument=this.parseMaybeAssign(!1,o),this.finishNode(y,"SpreadElement")},st.parseRestBinding=function(){var o=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==T.name&&this.unexpected(),o.argument=this.parseBindingAtom(),this.finishNode(o,"RestElement")},st.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case T.bracketL:var o=this.startNode();return this.next(),o.elements=this.parseBindingList(T.bracketR,!0,!0),this.finishNode(o,"ArrayPattern");case T.braceL:return this.parseObj(!0)}return this.parseIdent()},st.parseBindingList=function(o,y,v){for(var w=[],B=!0;!this.eat(o);)if(B?B=!1:this.expect(T.comma),y&&this.type===T.comma)w.push(null);else{if(v&&this.afterTrailingComma(o))break;if(this.type===T.ellipsis){var M=this.parseRestBinding();this.parseBindingListItem(M),w.push(M),this.type===T.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(o);break}else{var V=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(V),w.push(V)}}return w},st.parseBindingListItem=function(o){return o},st.parseMaybeDefault=function(o,y,v){if(v=v||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(T.eq))return v;var w=this.startNodeAt(o,y);return w.left=v,w.right=this.parseMaybeAssign(),this.finishNode(w,"AssignmentPattern")},st.checkLVal=function(o,y,v){switch(y===void 0&&(y=In),o.type){case"Identifier":y===Rt&&o.name==="let"&&this.raiseRecoverable(o.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(o.name)&&this.raiseRecoverable(o.start,(y?"Binding ":"Assigning to ")+o.name+" in strict mode"),v&&(Nr(v,o.name)&&this.raiseRecoverable(o.start,"Argument name clash"),v[o.name]=!0),y!==In&&y!==gi&&this.declareName(o.name,y,o.start);break;case"ChainExpression":this.raiseRecoverable(o.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":y&&this.raiseRecoverable(o.start,"Binding member expression");break;case"ObjectPattern":for(var w=0,B=o.properties;w<B.length;w+=1){var M=B[w];this.checkLVal(M,y,v)}break;case"Property":this.checkLVal(o.value,y,v);break;case"ArrayPattern":for(var V=0,H=o.elements;V<H.length;V+=1){var K=H[V];K&&this.checkLVal(K,y,v)}break;case"AssignmentPattern":this.checkLVal(o.left,y,v);break;case"RestElement":this.checkLVal(o.argument,y,v);break;case"ParenthesizedExpression":this.checkLVal(o.expression,y,v);break;default:this.raise(o.start,(y?"Binding":"Assigning to")+" rvalue")}};var se=qe.prototype;se.checkPropClash=function(o,y,v){if(!(this.options.ecmaVersion>=9&&o.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(o.computed||o.method||o.shorthand))){var w=o.key,B;switch(w.type){case"Identifier":B=w.name;break;case"Literal":B=String(w.value);break;default:return}var M=o.kind;if(this.options.ecmaVersion>=6){B==="__proto__"&&M==="init"&&(y.proto&&(v?v.doubleProto<0&&(v.doubleProto=w.start):this.raiseRecoverable(w.start,"Redefinition of __proto__ property")),y.proto=!0);return}B="$"+B;var V=y[B];if(V){var H;M==="init"?H=this.strict&&V.init||V.get||V.set:H=V.init||V[M],H&&this.raiseRecoverable(w.start,"Redefinition of property")}else V=y[B]={init:!1,get:!1,set:!1};V[M]=!0}},se.parseExpression=function(o,y){var v=this.start,w=this.startLoc,B=this.parseMaybeAssign(o,y);if(this.type===T.comma){var M=this.startNodeAt(v,w);for(M.expressions=[B];this.eat(T.comma);)M.expressions.push(this.parseMaybeAssign(o,y));return this.finishNode(M,"SequenceExpression")}return B},se.parseMaybeAssign=function(o,y,v){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(o);this.exprAllowed=!1}var w=!1,B=-1,M=-1;y?(B=y.parenthesizedAssign,M=y.trailingComma,y.parenthesizedAssign=y.trailingComma=-1):(y=new Ir,w=!0);var V=this.start,H=this.startLoc;(this.type===T.parenL||this.type===T.name)&&(this.potentialArrowAt=this.start);var K=this.parseMaybeConditional(o,y);if(v&&(K=v.call(this,K,V,H)),this.type.isAssign){var be=this.startNodeAt(V,H);return be.operator=this.value,be.left=this.type===T.eq?this.toAssignable(K,!1,y):K,w||(y.parenthesizedAssign=y.trailingComma=y.doubleProto=-1),y.shorthandAssign>=be.left.start&&(y.shorthandAssign=-1),this.checkLVal(K),this.next(),be.right=this.parseMaybeAssign(o),this.finishNode(be,"AssignmentExpression")}else w&&this.checkExpressionErrors(y,!0);return B>-1&&(y.parenthesizedAssign=B),M>-1&&(y.trailingComma=M),K},se.parseMaybeConditional=function(o,y){var v=this.start,w=this.startLoc,B=this.parseExprOps(o,y);if(this.checkExpressionErrors(y))return B;if(this.eat(T.question)){var M=this.startNodeAt(v,w);return M.test=B,M.consequent=this.parseMaybeAssign(),this.expect(T.colon),M.alternate=this.parseMaybeAssign(o),this.finishNode(M,"ConditionalExpression")}return B},se.parseExprOps=function(o,y){var v=this.start,w=this.startLoc,B=this.parseMaybeUnary(y,!1);return this.checkExpressionErrors(y)||B.start===v&&B.type==="ArrowFunctionExpression"?B:this.parseExprOp(B,v,w,-1,o)},se.parseExprOp=function(o,y,v,w,B){var M=this.type.binop;if(M!=null&&(!B||this.type!==T._in)&&M>w){var V=this.type===T.logicalOR||this.type===T.logicalAND,H=this.type===T.coalesce;H&&(M=T.logicalAND.binop);var K=this.value;this.next();var be=this.start,Be=this.startLoc,ot=this.parseExprOp(this.parseMaybeUnary(null,!1),be,Be,M,B),jn=this.buildBinary(y,v,o,ot,K,V||H);return(V&&this.type===T.coalesce||H&&(this.type===T.logicalOR||this.type===T.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(jn,y,v,w,B)}return o},se.buildBinary=function(o,y,v,w,B,M){var V=this.startNodeAt(o,y);return V.left=v,V.operator=B,V.right=w,this.finishNode(V,M?"LogicalExpression":"BinaryExpression")},se.parseMaybeUnary=function(o,y){var v=this.start,w=this.startLoc,B;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))B=this.parseAwait(),y=!0;else if(this.type.prefix){var M=this.startNode(),V=this.type===T.incDec;M.operator=this.value,M.prefix=!0,this.next(),M.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(o,!0),V?this.checkLVal(M.argument):this.strict&&M.operator==="delete"&&M.argument.type==="Identifier"?this.raiseRecoverable(M.start,"Deleting local variable in strict mode"):y=!0,B=this.finishNode(M,V?"UpdateExpression":"UnaryExpression")}else{if(B=this.parseExprSubscripts(o),this.checkExpressionErrors(o))return B;for(;this.type.postfix&&!this.canInsertSemicolon();){var H=this.startNodeAt(v,w);H.operator=this.value,H.prefix=!1,H.argument=B,this.checkLVal(B),this.next(),B=this.finishNode(H,"UpdateExpression")}}return!y&&this.eat(T.starstar)?this.buildBinary(v,w,B,this.parseMaybeUnary(null,!1),"**",!1):B},se.parseExprSubscripts=function(o){var y=this.start,v=this.startLoc,w=this.parseExprAtom(o);if(w.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return w;var B=this.parseSubscripts(w,y,v);return o&&B.type==="MemberExpression"&&(o.parenthesizedAssign>=B.start&&(o.parenthesizedAssign=-1),o.parenthesizedBind>=B.start&&(o.parenthesizedBind=-1)),B},se.parseSubscripts=function(o,y,v,w){for(var B=this.options.ecmaVersion>=8&&o.type==="Identifier"&&o.name==="async"&&this.lastTokEnd===o.end&&!this.canInsertSemicolon()&&o.end-o.start==5&&this.potentialArrowAt===o.start,M=!1;;){var V=this.parseSubscript(o,y,v,w,B,M);if(V.optional&&(M=!0),V===o||V.type==="ArrowFunctionExpression"){if(M){var H=this.startNodeAt(y,v);H.expression=V,V=this.finishNode(H,"ChainExpression")}return V}o=V}},se.parseSubscript=function(o,y,v,w,B,M){var V=this.options.ecmaVersion>=11,H=V&&this.eat(T.questionDot);w&&H&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var K=this.eat(T.bracketL);if(K||H&&this.type!==T.parenL&&this.type!==T.backQuote||this.eat(T.dot)){var be=this.startNodeAt(y,v);be.object=o,be.property=K?this.parseExpression():this.parseIdent(this.options.allowReserved!=="never"),be.computed=!!K,K&&this.expect(T.bracketR),V&&(be.optional=H),o=this.finishNode(be,"MemberExpression")}else if(!w&&this.eat(T.parenL)){var Be=new Ir,ot=this.yieldPos,jn=this.awaitPos,Jt=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Ei=this.parseExprList(T.parenR,this.options.ecmaVersion>=8,!1,Be);if(B&&!H&&!this.canInsertSemicolon()&&this.eat(T.arrow))return this.checkPatternErrors(Be,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=ot,this.awaitPos=jn,this.awaitIdentPos=Jt,this.parseArrowExpression(this.startNodeAt(y,v),Ei,!0);this.checkExpressionErrors(Be,!0),this.yieldPos=ot||this.yieldPos,this.awaitPos=jn||this.awaitPos,this.awaitIdentPos=Jt||this.awaitIdentPos;var Pt=this.startNodeAt(y,v);Pt.callee=o,Pt.arguments=Ei,V&&(Pt.optional=H),o=this.finishNode(Pt,"CallExpression")}else if(this.type===T.backQuote){(H||M)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var Vn=this.startNodeAt(y,v);Vn.tag=o,Vn.quasi=this.parseTemplate({isTagged:!0}),o=this.finishNode(Vn,"TaggedTemplateExpression")}return o},se.parseExprAtom=function(o){this.type===T.slash&&this.readRegexp();var y,v=this.potentialArrowAt===this.start;switch(this.type){case T._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),y=this.startNode(),this.next(),this.type===T.parenL&&!this.allowDirectSuper&&this.raise(y.start,"super() call outside constructor of a subclass"),this.type!==T.dot&&this.type!==T.bracketL&&this.type!==T.parenL&&this.unexpected(),this.finishNode(y,"Super");case T._this:return y=this.startNode(),this.next(),this.finishNode(y,"ThisExpression");case T.name:var w=this.start,B=this.startLoc,M=this.containsEsc,V=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!M&&V.name==="async"&&!this.canInsertSemicolon()&&this.eat(T._function))return this.parseFunction(this.startNodeAt(w,B),0,!1,!0);if(v&&!this.canInsertSemicolon()){if(this.eat(T.arrow))return this.parseArrowExpression(this.startNodeAt(w,B),[V],!1);if(this.options.ecmaVersion>=8&&V.name==="async"&&this.type===T.name&&!M)return V=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(T.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(w,B),[V],!0)}return V;case T.regexp:var H=this.value;return y=this.parseLiteral(H.value),y.regex={pattern:H.pattern,flags:H.flags},y;case T.num:case T.string:return this.parseLiteral(this.value);case T._null:case T._true:case T._false:return y=this.startNode(),y.value=this.type===T._null?null:this.type===T._true,y.raw=this.type.keyword,this.next(),this.finishNode(y,"Literal");case T.parenL:var K=this.start,be=this.parseParenAndDistinguishExpression(v);return o&&(o.parenthesizedAssign<0&&!this.isSimpleAssignTarget(be)&&(o.parenthesizedAssign=K),o.parenthesizedBind<0&&(o.parenthesizedBind=K)),be;case T.bracketL:return y=this.startNode(),this.next(),y.elements=this.parseExprList(T.bracketR,!0,!0,o),this.finishNode(y,"ArrayExpression");case T.braceL:return this.parseObj(!1,o);case T._function:return y=this.startNode(),this.next(),this.parseFunction(y,0);case T._class:return this.parseClass(this.startNode(),!1);case T._new:return this.parseNew();case T.backQuote:return this.parseTemplate();case T._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},se.parseExprImport=function(){var o=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var y=this.parseIdent(!0);switch(this.type){case T.parenL:return this.parseDynamicImport(o);case T.dot:return o.meta=y,this.parseImportMeta(o);default:this.unexpected()}},se.parseDynamicImport=function(o){if(this.next(),o.source=this.parseMaybeAssign(),!this.eat(T.parenR)){var y=this.start;this.eat(T.comma)&&this.eat(T.parenR)?this.raiseRecoverable(y,"Trailing comma is not allowed in import()"):this.unexpected(y)}return this.finishNode(o,"ImportExpression")},se.parseImportMeta=function(o){this.next();var y=this.containsEsc;return o.property=this.parseIdent(!0),o.property.name!=="meta"&&this.raiseRecoverable(o.property.start,"The only valid meta property for import is 'import.meta'"),y&&this.raiseRecoverable(o.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&this.raiseRecoverable(o.start,"Cannot use 'import.meta' outside a module"),this.finishNode(o,"MetaProperty")},se.parseLiteral=function(o){var y=this.startNode();return y.value=o,y.raw=this.input.slice(this.start,this.end),y.raw.charCodeAt(y.raw.length-1)===110&&(y.bigint=y.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(y,"Literal")},se.parseParenExpression=function(){this.expect(T.parenL);var o=this.parseExpression();return this.expect(T.parenR),o},se.parseParenAndDistinguishExpression=function(o){var y=this.start,v=this.startLoc,w,B=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var M=this.start,V=this.startLoc,H=[],K=!0,be=!1,Be=new Ir,ot=this.yieldPos,jn=this.awaitPos,Jt;for(this.yieldPos=0,this.awaitPos=0;this.type!==T.parenR;)if(K?K=!1:this.expect(T.comma),B&&this.afterTrailingComma(T.parenR,!0)){be=!0;break}else if(this.type===T.ellipsis){Jt=this.start,H.push(this.parseParenItem(this.parseRestBinding())),this.type===T.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else H.push(this.parseMaybeAssign(!1,Be,this.parseParenItem));var Ei=this.start,Pt=this.startLoc;if(this.expect(T.parenR),o&&!this.canInsertSemicolon()&&this.eat(T.arrow))return this.checkPatternErrors(Be,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=ot,this.awaitPos=jn,this.parseParenArrowList(y,v,H);(!H.length||be)&&this.unexpected(this.lastTokStart),Jt&&this.unexpected(Jt),this.checkExpressionErrors(Be,!0),this.yieldPos=ot||this.yieldPos,this.awaitPos=jn||this.awaitPos,H.length>1?(w=this.startNodeAt(M,V),w.expressions=H,this.finishNodeAt(w,"SequenceExpression",Ei,Pt)):w=H[0]}else w=this.parseParenExpression();if(this.options.preserveParens){var Vn=this.startNodeAt(y,v);return Vn.expression=w,this.finishNode(Vn,"ParenthesizedExpression")}else return w},se.parseParenItem=function(o){return o},se.parseParenArrowList=function(o,y,v){return this.parseArrowExpression(this.startNodeAt(o,y),v)};var Ca=[];se.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var o=this.startNode(),y=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(T.dot)){o.meta=y;var v=this.containsEsc;return o.property=this.parseIdent(!0),o.property.name!=="target"&&this.raiseRecoverable(o.property.start,"The only valid meta property for new is 'new.target'"),v&&this.raiseRecoverable(o.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(o.start,"'new.target' can only be used in functions"),this.finishNode(o,"MetaProperty")}var w=this.start,B=this.startLoc,M=this.type===T._import;return o.callee=this.parseSubscripts(this.parseExprAtom(),w,B,!0),M&&o.callee.type==="ImportExpression"&&this.raise(w,"Cannot use new with import()"),this.eat(T.parenL)?o.arguments=this.parseExprList(T.parenR,this.options.ecmaVersion>=8,!1):o.arguments=Ca,this.finishNode(o,"NewExpression")},se.parseTemplateElement=function(o){var y=o.isTagged,v=this.startNode();return this.type===T.invalidTemplate?(y||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),v.value={raw:this.value,cooked:null}):v.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
14
|
+
`),cooked:this.value},this.next(),v.tail=this.type===T.backQuote,this.finishNode(v,"TemplateElement")},se.parseTemplate=function(o){o===void 0&&(o={});var y=o.isTagged;y===void 0&&(y=!1);var v=this.startNode();this.next(),v.expressions=[];var w=this.parseTemplateElement({isTagged:y});for(v.quasis=[w];!w.tail;)this.type===T.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(T.dollarBraceL),v.expressions.push(this.parseExpression()),this.expect(T.braceR),v.quasis.push(w=this.parseTemplateElement({isTagged:y}));return this.next(),this.finishNode(v,"TemplateLiteral")},se.isAsyncProp=function(o){return!o.computed&&o.key.type==="Identifier"&&o.key.name==="async"&&(this.type===T.name||this.type===T.num||this.type===T.string||this.type===T.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===T.star)&&!rt.test(this.input.slice(this.lastTokEnd,this.start))},se.parseObj=function(o,y){var v=this.startNode(),w=!0,B={};for(v.properties=[],this.next();!this.eat(T.braceR);){if(w)w=!1;else if(this.expect(T.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(T.braceR))break;var M=this.parseProperty(o,y);o||this.checkPropClash(M,B,y),v.properties.push(M)}return this.finishNode(v,o?"ObjectPattern":"ObjectExpression")},se.parseProperty=function(o,y){var v=this.startNode(),w,B,M,V;if(this.options.ecmaVersion>=9&&this.eat(T.ellipsis))return o?(v.argument=this.parseIdent(!1),this.type===T.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(v,"RestElement")):(this.type===T.parenL&&y&&(y.parenthesizedAssign<0&&(y.parenthesizedAssign=this.start),y.parenthesizedBind<0&&(y.parenthesizedBind=this.start)),v.argument=this.parseMaybeAssign(!1,y),this.type===T.comma&&y&&y.trailingComma<0&&(y.trailingComma=this.start),this.finishNode(v,"SpreadElement"));this.options.ecmaVersion>=6&&(v.method=!1,v.shorthand=!1,(o||y)&&(M=this.start,V=this.startLoc),o||(w=this.eat(T.star)));var H=this.containsEsc;return this.parsePropertyName(v),!o&&!H&&this.options.ecmaVersion>=8&&!w&&this.isAsyncProp(v)?(B=!0,w=this.options.ecmaVersion>=9&&this.eat(T.star),this.parsePropertyName(v,y)):B=!1,this.parsePropertyValue(v,o,w,B,M,V,y,H),this.finishNode(v,"Property")},se.parsePropertyValue=function(o,y,v,w,B,M,V,H){if((v||w)&&this.type===T.colon&&this.unexpected(),this.eat(T.colon))o.value=y?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,V),o.kind="init";else if(this.options.ecmaVersion>=6&&this.type===T.parenL)y&&this.unexpected(),o.kind="init",o.method=!0,o.value=this.parseMethod(v,w);else if(!y&&!H&&this.options.ecmaVersion>=5&&!o.computed&&o.key.type==="Identifier"&&(o.key.name==="get"||o.key.name==="set")&&this.type!==T.comma&&this.type!==T.braceR&&this.type!==T.eq){(v||w)&&this.unexpected(),o.kind=o.key.name,this.parsePropertyName(o),o.value=this.parseMethod(!1);var K=o.kind==="get"?0:1;if(o.value.params.length!==K){var be=o.value.start;o.kind==="get"?this.raiseRecoverable(be,"getter should have no params"):this.raiseRecoverable(be,"setter should have exactly one param")}else o.kind==="set"&&o.value.params[0].type==="RestElement"&&this.raiseRecoverable(o.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!o.computed&&o.key.type==="Identifier"?((v||w)&&this.unexpected(),this.checkUnreserved(o.key),o.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=B),o.kind="init",y?o.value=this.parseMaybeDefault(B,M,o.key):this.type===T.eq&&V?(V.shorthandAssign<0&&(V.shorthandAssign=this.start),o.value=this.parseMaybeDefault(B,M,o.key)):o.value=o.key,o.shorthand=!0):this.unexpected()},se.parsePropertyName=function(o){if(this.options.ecmaVersion>=6){if(this.eat(T.bracketL))return o.computed=!0,o.key=this.parseMaybeAssign(),this.expect(T.bracketR),o.key;o.computed=!1}return o.key=this.type===T.num||this.type===T.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},se.initFunction=function(o){o.id=null,this.options.ecmaVersion>=6&&(o.generator=o.expression=!1),this.options.ecmaVersion>=8&&(o.async=!1)},se.parseMethod=function(o,y,v){var w=this.startNode(),B=this.yieldPos,M=this.awaitPos,V=this.awaitIdentPos;return this.initFunction(w),this.options.ecmaVersion>=6&&(w.generator=o),this.options.ecmaVersion>=8&&(w.async=!!y),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(hi(y,w.generator)|ba|(v?Or:0)),this.expect(T.parenL),w.params=this.parseBindingList(T.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(w,!1,!0),this.yieldPos=B,this.awaitPos=M,this.awaitIdentPos=V,this.finishNode(w,"FunctionExpression")},se.parseArrowExpression=function(o,y,v){var w=this.yieldPos,B=this.awaitPos,M=this.awaitIdentPos;return this.enterScope(hi(v,!1)|fi),this.initFunction(o),this.options.ecmaVersion>=8&&(o.async=!!v),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,o.params=this.toAssignableList(y,!0),this.parseFunctionBody(o,!0,!1),this.yieldPos=w,this.awaitPos=B,this.awaitIdentPos=M,this.finishNode(o,"ArrowFunctionExpression")},se.parseFunctionBody=function(o,y,v){var w=y&&this.type!==T.braceL,B=this.strict,M=!1;if(w)o.body=this.parseMaybeAssign(),o.expression=!0,this.checkParams(o,!1);else{var V=this.options.ecmaVersion>=7&&!this.isSimpleParamList(o.params);(!B||V)&&(M=this.strictDirective(this.end),M&&V&&this.raiseRecoverable(o.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var H=this.labels;this.labels=[],M&&(this.strict=!0),this.checkParams(o,!B&&!M&&!y&&!v&&this.isSimpleParamList(o.params)),this.strict&&o.id&&this.checkLVal(o.id,gi),o.body=this.parseBlock(!1,void 0,M&&!B),o.expression=!1,this.adaptDirectivePrologue(o.body.body),this.labels=H}this.exitScope()},se.isSimpleParamList=function(o){for(var y=0,v=o;y<v.length;y+=1){var w=v[y];if(w.type!=="Identifier")return!1}return!0},se.checkParams=function(o,y){for(var v={},w=0,B=o.params;w<B.length;w+=1){var M=B[w];this.checkLVal(M,di,y?null:v)}},se.parseExprList=function(o,y,v,w){for(var B=[],M=!0;!this.eat(o);){if(M)M=!1;else if(this.expect(T.comma),y&&this.afterTrailingComma(o))break;var V=void 0;v&&this.type===T.comma?V=null:this.type===T.ellipsis?(V=this.parseSpread(w),w&&this.type===T.comma&&w.trailingComma<0&&(w.trailingComma=this.start)):V=this.parseMaybeAssign(!1,w),B.push(V)}return B},se.checkUnreserved=function(o){var y=o.start,v=o.end,w=o.name;if(this.inGenerator&&w==="yield"&&this.raiseRecoverable(y,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&w==="await"&&this.raiseRecoverable(y,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(w)&&this.raise(y,"Unexpected keyword '"+w+"'"),!(this.options.ecmaVersion<6&&this.input.slice(y,v).indexOf("\\")!==-1)){var B=this.strict?this.reservedWordsStrict:this.reservedWords;B.test(w)&&(!this.inAsync&&w==="await"&&this.raiseRecoverable(y,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(y,"The keyword '"+w+"' is reserved"))}},se.parseIdent=function(o,y){var v=this.startNode();return this.type===T.name?v.name=this.value:this.type.keyword?(v.name=this.type.keyword,(v.name==="class"||v.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!o),this.finishNode(v,"Identifier"),o||(this.checkUnreserved(v),v.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=v.start)),v},se.parseYield=function(o){this.yieldPos||(this.yieldPos=this.start);var y=this.startNode();return this.next(),this.type===T.semi||this.canInsertSemicolon()||this.type!==T.star&&!this.type.startsExpr?(y.delegate=!1,y.argument=null):(y.delegate=this.eat(T.star),y.argument=this.parseMaybeAssign(o)),this.finishNode(y,"YieldExpression")},se.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var o=this.startNode();return this.next(),o.argument=this.parseMaybeUnary(null,!1),this.finishNode(o,"AwaitExpression")};var zt=qe.prototype;zt.raise=function(o,y){var v=ps(this.input,o);y+=" ("+v.line+":"+v.column+")";var w=new SyntaxError(y);throw w.pos=o,w.loc=v,w.raisedAt=this.pos,w},zt.raiseRecoverable=zt.raise,zt.curPosition=function(){if(this.options.locations)return new On(this.curLine,this.pos-this.lineStart)};var at=qe.prototype,ur=function(y){this.flags=y,this.var=[],this.lexical=[],this.functions=[]};at.enterScope=function(o){this.scopeStack.push(new ur(o))},at.exitScope=function(){this.scopeStack.pop()},at.treatFunctionsAsVarInScope=function(o){return o.flags&ar||!this.inModule&&o.flags&sr},at.declareName=function(o,y,v){var w=!1;if(y===Rt){var B=this.currentScope();w=B.lexical.indexOf(o)>-1||B.functions.indexOf(o)>-1||B.var.indexOf(o)>-1,B.lexical.push(o),this.inModule&&B.flags&sr&&delete this.undefinedExports[o]}else if(y===va){var M=this.currentScope();M.lexical.push(o)}else if(y===Ea){var V=this.currentScope();this.treatFunctionsAsVar?w=V.lexical.indexOf(o)>-1:w=V.lexical.indexOf(o)>-1||V.var.indexOf(o)>-1,V.functions.push(o)}else for(var H=this.scopeStack.length-1;H>=0;--H){var K=this.scopeStack[H];if(K.lexical.indexOf(o)>-1&&!(K.flags&Da&&K.lexical[0]===o)||!this.treatFunctionsAsVarInScope(K)&&K.functions.indexOf(o)>-1){w=!0;break}if(K.var.push(o),this.inModule&&K.flags&sr&&delete this.undefinedExports[o],K.flags&an)break}w&&this.raiseRecoverable(v,"Identifier '"+o+"' has already been declared")},at.checkLocalExport=function(o){this.scopeStack[0].lexical.indexOf(o.name)===-1&&this.scopeStack[0].var.indexOf(o.name)===-1&&(this.undefinedExports[o.name]=o)},at.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},at.currentVarScope=function(){for(var o=this.scopeStack.length-1;;o--){var y=this.scopeStack[o];if(y.flags&an)return y}},at.currentThisScope=function(){for(var o=this.scopeStack.length-1;;o--){var y=this.scopeStack[o];if(y.flags&an&&!(y.flags&fi))return y}};var Ln=function(y,v,w){this.type="",this.start=v,this.end=0,y.options.locations&&(this.loc=new ir(y,w)),y.options.directSourceFile&&(this.sourceFile=y.options.directSourceFile),y.options.ranges&&(this.range=[v,0])},yi=qe.prototype;yi.startNode=function(){return new Ln(this,this.start,this.startLoc)},yi.startNodeAt=function(o,y){return new Ln(this,o,y)};function Ds(o,y,v,w){return o.type=y,o.end=v,this.options.locations&&(o.loc.end=w),this.options.ranges&&(o.range[1]=v),o}yi.finishNode=function(o,y){return Ds.call(this,o,y,this.lastTokEnd,this.lastTokEndLoc)},yi.finishNodeAt=function(o,y,v,w){return Ds.call(this,o,y,v,w)};var wt=function(y,v,w,B,M){this.token=y,this.isExpr=!!v,this.preserveSpace=!!w,this.override=B,this.generator=!!M},Pe={b_stat:new wt("{",!1),b_expr:new wt("{",!0),b_tmpl:new wt("${",!1),p_stat:new wt("(",!1),p_expr:new wt("(",!0),q_tmpl:new wt("`",!0,!0,function(o){return o.tryReadTemplateToken()}),f_stat:new wt("function",!1),f_expr:new wt("function",!0),f_expr_gen:new wt("function",!0,!1,null,!0),f_gen:new wt("function",!1,!1,null,!0)},Di=qe.prototype;Di.initialContext=function(){return[Pe.b_stat]},Di.braceIsBlock=function(o){var y=this.curContext();return y===Pe.f_expr||y===Pe.f_stat?!0:o===T.colon&&(y===Pe.b_stat||y===Pe.b_expr)?!y.isExpr:o===T._return||o===T.name&&this.exprAllowed?rt.test(this.input.slice(this.lastTokEnd,this.start)):o===T._else||o===T.semi||o===T.eof||o===T.parenR||o===T.arrow?!0:o===T.braceL?y===Pe.b_stat:o===T._var||o===T._const||o===T.name?!1:!this.exprAllowed},Di.inGeneratorContext=function(){for(var o=this.context.length-1;o>=1;o--){var y=this.context[o];if(y.token==="function")return y.generator}return!1},Di.updateContext=function(o){var y,v=this.type;v.keyword&&o===T.dot?this.exprAllowed=!1:(y=v.updateContext)?y.call(this,o):this.exprAllowed=v.beforeExpr},T.parenR.updateContext=T.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var o=this.context.pop();o===Pe.b_stat&&this.curContext().token==="function"&&(o=this.context.pop()),this.exprAllowed=!o.isExpr},T.braceL.updateContext=function(o){this.context.push(this.braceIsBlock(o)?Pe.b_stat:Pe.b_expr),this.exprAllowed=!0},T.dollarBraceL.updateContext=function(){this.context.push(Pe.b_tmpl),this.exprAllowed=!0},T.parenL.updateContext=function(o){var y=o===T._if||o===T._for||o===T._with||o===T._while;this.context.push(y?Pe.p_stat:Pe.p_expr),this.exprAllowed=!0},T.incDec.updateContext=function(){},T._function.updateContext=T._class.updateContext=function(o){o.beforeExpr&&o!==T.semi&&o!==T._else&&!(o===T._return&&rt.test(this.input.slice(this.lastTokEnd,this.start)))&&!((o===T.colon||o===T.braceL)&&this.curContext()===Pe.b_stat)?this.context.push(Pe.f_expr):this.context.push(Pe.f_stat),this.exprAllowed=!1},T.backQuote.updateContext=function(){this.curContext()===Pe.q_tmpl?this.context.pop():this.context.push(Pe.q_tmpl),this.exprAllowed=!1},T.star.updateContext=function(o){if(o===T._function){var y=this.context.length-1;this.context[y]===Pe.f_expr?this.context[y]=Pe.f_expr_gen:this.context[y]=Pe.f_gen}this.exprAllowed=!0},T.name.updateContext=function(o){var y=!1;this.options.ecmaVersion>=6&&o!==T.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(y=!0),this.exprAllowed=y};var xa="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",Aa=xa+" Extended_Pictographic",jo=Aa,Vo={9:xa,10:Aa,11:jo},Sa="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",wa="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",Rn=wa+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Uo=Rn+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",qo={9:wa,10:Rn,11:Uo},Le={};function Mn(o){var y=Le[o]={binary:Ht(Vo[o]+" "+Sa),nonBinary:{General_Category:Ht(Sa),Script:Ht(qo[o])}};y.nonBinary.Script_Extensions=y.nonBinary.Script,y.nonBinary.gc=y.nonBinary.General_Category,y.nonBinary.sc=y.nonBinary.Script,y.nonBinary.scx=y.nonBinary.Script_Extensions}Mn(9),Mn(10),Mn(11);var te=qe.prototype,ut=function(y){this.parser=y,this.validFlags="gim"+(y.options.ecmaVersion>=6?"uy":"")+(y.options.ecmaVersion>=9?"s":""),this.unicodeProperties=Le[y.options.ecmaVersion>=11?11:y.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=[]};ut.prototype.reset=function(y,v,w){var B=w.indexOf("u")!==-1;this.start=y|0,this.source=v+"",this.flags=w,this.switchU=B&&this.parser.options.ecmaVersion>=6,this.switchN=B&&this.parser.options.ecmaVersion>=9},ut.prototype.raise=function(y){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+y)},ut.prototype.at=function(y,v){v===void 0&&(v=!1);var w=this.source,B=w.length;if(y>=B)return-1;var M=w.charCodeAt(y);if(!(v||this.switchU)||M<=55295||M>=57344||y+1>=B)return M;var V=w.charCodeAt(y+1);return V>=56320&&V<=57343?(M<<10)+V-56613888:M},ut.prototype.nextIndex=function(y,v){v===void 0&&(v=!1);var w=this.source,B=w.length;if(y>=B)return B;var M=w.charCodeAt(y),V;return!(v||this.switchU)||M<=55295||M>=57344||y+1>=B||(V=w.charCodeAt(y+1))<56320||V>57343?y+1:y+2},ut.prototype.current=function(y){return y===void 0&&(y=!1),this.at(this.pos,y)},ut.prototype.lookahead=function(y){return y===void 0&&(y=!1),this.at(this.nextIndex(this.pos,y),y)},ut.prototype.advance=function(y){y===void 0&&(y=!1),this.pos=this.nextIndex(this.pos,y)},ut.prototype.eat=function(y,v){return v===void 0&&(v=!1),this.current(v)===y?(this.advance(v),!0):!1};function re(o){return o<=65535?String.fromCharCode(o):(o-=65536,String.fromCharCode((o>>10)+55296,(o&1023)+56320))}te.validateRegExpFlags=function(o){for(var y=o.validFlags,v=o.flags,w=0;w<v.length;w++){var B=v.charAt(w);y.indexOf(B)===-1&&this.raise(o.start,"Invalid regular expression flag"),v.indexOf(B,w+1)>-1&&this.raise(o.start,"Duplicate regular expression flag")}},te.validateRegExpPattern=function(o){this.regexp_pattern(o),!o.switchN&&this.options.ecmaVersion>=9&&o.groupNames.length>0&&(o.switchN=!0,this.regexp_pattern(o))},te.regexp_pattern=function(o){o.pos=0,o.lastIntValue=0,o.lastStringValue="",o.lastAssertionIsQuantifiable=!1,o.numCapturingParens=0,o.maxBackReference=0,o.groupNames.length=0,o.backReferenceNames.length=0,this.regexp_disjunction(o),o.pos!==o.source.length&&(o.eat(41)&&o.raise("Unmatched ')'"),(o.eat(93)||o.eat(125))&&o.raise("Lone quantifier brackets")),o.maxBackReference>o.numCapturingParens&&o.raise("Invalid escape");for(var y=0,v=o.backReferenceNames;y<v.length;y+=1){var w=v[y];o.groupNames.indexOf(w)===-1&&o.raise("Invalid named capture referenced")}},te.regexp_disjunction=function(o){for(this.regexp_alternative(o);o.eat(124);)this.regexp_alternative(o);this.regexp_eatQuantifier(o,!0)&&o.raise("Nothing to repeat"),o.eat(123)&&o.raise("Lone quantifier brackets")},te.regexp_alternative=function(o){for(;o.pos<o.source.length&&this.regexp_eatTerm(o););},te.regexp_eatTerm=function(o){return this.regexp_eatAssertion(o)?(o.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(o)&&o.switchU&&o.raise("Invalid quantifier"),!0):(o.switchU?this.regexp_eatAtom(o):this.regexp_eatExtendedAtom(o))?(this.regexp_eatQuantifier(o),!0):!1},te.regexp_eatAssertion=function(o){var y=o.pos;if(o.lastAssertionIsQuantifiable=!1,o.eat(94)||o.eat(36))return!0;if(o.eat(92)){if(o.eat(66)||o.eat(98))return!0;o.pos=y}if(o.eat(40)&&o.eat(63)){var v=!1;if(this.options.ecmaVersion>=9&&(v=o.eat(60)),o.eat(61)||o.eat(33))return this.regexp_disjunction(o),o.eat(41)||o.raise("Unterminated group"),o.lastAssertionIsQuantifiable=!v,!0}return o.pos=y,!1},te.regexp_eatQuantifier=function(o,y){return y===void 0&&(y=!1),this.regexp_eatQuantifierPrefix(o,y)?(o.eat(63),!0):!1},te.regexp_eatQuantifierPrefix=function(o,y){return o.eat(42)||o.eat(43)||o.eat(63)||this.regexp_eatBracedQuantifier(o,y)},te.regexp_eatBracedQuantifier=function(o,y){var v=o.pos;if(o.eat(123)){var w=0,B=-1;if(this.regexp_eatDecimalDigits(o)&&(w=o.lastIntValue,o.eat(44)&&this.regexp_eatDecimalDigits(o)&&(B=o.lastIntValue),o.eat(125)))return B!==-1&&B<w&&!y&&o.raise("numbers out of order in {} quantifier"),!0;o.switchU&&!y&&o.raise("Incomplete quantifier"),o.pos=v}return!1},te.regexp_eatAtom=function(o){return this.regexp_eatPatternCharacters(o)||o.eat(46)||this.regexp_eatReverseSolidusAtomEscape(o)||this.regexp_eatCharacterClass(o)||this.regexp_eatUncapturingGroup(o)||this.regexp_eatCapturingGroup(o)},te.regexp_eatReverseSolidusAtomEscape=function(o){var y=o.pos;if(o.eat(92)){if(this.regexp_eatAtomEscape(o))return!0;o.pos=y}return!1},te.regexp_eatUncapturingGroup=function(o){var y=o.pos;if(o.eat(40)){if(o.eat(63)&&o.eat(58)){if(this.regexp_disjunction(o),o.eat(41))return!0;o.raise("Unterminated group")}o.pos=y}return!1},te.regexp_eatCapturingGroup=function(o){if(o.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(o):o.current()===63&&o.raise("Invalid group"),this.regexp_disjunction(o),o.eat(41))return o.numCapturingParens+=1,!0;o.raise("Unterminated group")}return!1},te.regexp_eatExtendedAtom=function(o){return o.eat(46)||this.regexp_eatReverseSolidusAtomEscape(o)||this.regexp_eatCharacterClass(o)||this.regexp_eatUncapturingGroup(o)||this.regexp_eatCapturingGroup(o)||this.regexp_eatInvalidBracedQuantifier(o)||this.regexp_eatExtendedPatternCharacter(o)},te.regexp_eatInvalidBracedQuantifier=function(o){return this.regexp_eatBracedQuantifier(o,!0)&&o.raise("Nothing to repeat"),!1},te.regexp_eatSyntaxCharacter=function(o){var y=o.current();return or(y)?(o.lastIntValue=y,o.advance(),!0):!1};function or(o){return o===36||o>=40&&o<=43||o===46||o===63||o>=91&&o<=94||o>=123&&o<=125}te.regexp_eatPatternCharacters=function(o){for(var y=o.pos,v=0;(v=o.current())!==-1&&!or(v);)o.advance();return o.pos!==y},te.regexp_eatExtendedPatternCharacter=function(o){var y=o.current();return y!==-1&&y!==36&&!(y>=40&&y<=43)&&y!==46&&y!==63&&y!==91&&y!==94&&y!==124?(o.advance(),!0):!1},te.regexp_groupSpecifier=function(o){if(o.eat(63)){if(this.regexp_eatGroupName(o)){o.groupNames.indexOf(o.lastStringValue)!==-1&&o.raise("Duplicate capture group name"),o.groupNames.push(o.lastStringValue);return}o.raise("Invalid group")}},te.regexp_eatGroupName=function(o){if(o.lastStringValue="",o.eat(60)){if(this.regexp_eatRegExpIdentifierName(o)&&o.eat(62))return!0;o.raise("Invalid capture group name")}return!1},te.regexp_eatRegExpIdentifierName=function(o){if(o.lastStringValue="",this.regexp_eatRegExpIdentifierStart(o)){for(o.lastStringValue+=re(o.lastIntValue);this.regexp_eatRegExpIdentifierPart(o);)o.lastStringValue+=re(o.lastIntValue);return!0}return!1},te.regexp_eatRegExpIdentifierStart=function(o){var y=o.pos,v=this.options.ecmaVersion>=11,w=o.current(v);return o.advance(v),w===92&&this.regexp_eatRegExpUnicodeEscapeSequence(o,v)&&(w=o.lastIntValue),$o(w)?(o.lastIntValue=w,!0):(o.pos=y,!1)};function $o(o){return ee(o,!0)||o===36||o===95}te.regexp_eatRegExpIdentifierPart=function(o){var y=o.pos,v=this.options.ecmaVersion>=11,w=o.current(v);return o.advance(v),w===92&&this.regexp_eatRegExpUnicodeEscapeSequence(o,v)&&(w=o.lastIntValue),Fa(w)?(o.lastIntValue=w,!0):(o.pos=y,!1)};function Fa(o){return ye(o,!0)||o===36||o===95||o===8204||o===8205}te.regexp_eatAtomEscape=function(o){return this.regexp_eatBackReference(o)||this.regexp_eatCharacterClassEscape(o)||this.regexp_eatCharacterEscape(o)||o.switchN&&this.regexp_eatKGroupName(o)?!0:(o.switchU&&(o.current()===99&&o.raise("Invalid unicode escape"),o.raise("Invalid escape")),!1)},te.regexp_eatBackReference=function(o){var y=o.pos;if(this.regexp_eatDecimalEscape(o)){var v=o.lastIntValue;if(o.switchU)return v>o.maxBackReference&&(o.maxBackReference=v),!0;if(v<=o.numCapturingParens)return!0;o.pos=y}return!1},te.regexp_eatKGroupName=function(o){if(o.eat(107)){if(this.regexp_eatGroupName(o))return o.backReferenceNames.push(o.lastStringValue),!0;o.raise("Invalid named reference")}return!1},te.regexp_eatCharacterEscape=function(o){return this.regexp_eatControlEscape(o)||this.regexp_eatCControlLetter(o)||this.regexp_eatZero(o)||this.regexp_eatHexEscapeSequence(o)||this.regexp_eatRegExpUnicodeEscapeSequence(o,!1)||!o.switchU&&this.regexp_eatLegacyOctalEscapeSequence(o)||this.regexp_eatIdentityEscape(o)},te.regexp_eatCControlLetter=function(o){var y=o.pos;if(o.eat(99)){if(this.regexp_eatControlLetter(o))return!0;o.pos=y}return!1},te.regexp_eatZero=function(o){return o.current()===48&&!Mr(o.lookahead())?(o.lastIntValue=0,o.advance(),!0):!1},te.regexp_eatControlEscape=function(o){var y=o.current();return y===116?(o.lastIntValue=9,o.advance(),!0):y===110?(o.lastIntValue=10,o.advance(),!0):y===118?(o.lastIntValue=11,o.advance(),!0):y===102?(o.lastIntValue=12,o.advance(),!0):y===114?(o.lastIntValue=13,o.advance(),!0):!1},te.regexp_eatControlLetter=function(o){var y=o.current();return bs(y)?(o.lastIntValue=y%32,o.advance(),!0):!1};function bs(o){return o>=65&&o<=90||o>=97&&o<=122}te.regexp_eatRegExpUnicodeEscapeSequence=function(o,y){y===void 0&&(y=!1);var v=o.pos,w=y||o.switchU;if(o.eat(117)){if(this.regexp_eatFixedHexDigits(o,4)){var B=o.lastIntValue;if(w&&B>=55296&&B<=56319){var M=o.pos;if(o.eat(92)&&o.eat(117)&&this.regexp_eatFixedHexDigits(o,4)){var V=o.lastIntValue;if(V>=56320&&V<=57343)return o.lastIntValue=(B-55296)*1024+(V-56320)+65536,!0}o.pos=M,o.lastIntValue=B}return!0}if(w&&o.eat(123)&&this.regexp_eatHexDigits(o)&&o.eat(125)&&Wo(o.lastIntValue))return!0;w&&o.raise("Invalid unicode escape"),o.pos=v}return!1};function Wo(o){return o>=0&&o<=1114111}te.regexp_eatIdentityEscape=function(o){if(o.switchU)return this.regexp_eatSyntaxCharacter(o)?!0:o.eat(47)?(o.lastIntValue=47,!0):!1;var y=o.current();return y!==99&&(!o.switchN||y!==107)?(o.lastIntValue=y,o.advance(),!0):!1},te.regexp_eatDecimalEscape=function(o){o.lastIntValue=0;var y=o.current();if(y>=49&&y<=57){do o.lastIntValue=10*o.lastIntValue+(y-48),o.advance();while((y=o.current())>=48&&y<=57);return!0}return!1},te.regexp_eatCharacterClassEscape=function(o){var y=o.current();if(Ta(y))return o.lastIntValue=-1,o.advance(),!0;if(o.switchU&&this.options.ecmaVersion>=9&&(y===80||y===112)){if(o.lastIntValue=-1,o.advance(),o.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(o)&&o.eat(125))return!0;o.raise("Invalid property name")}return!1};function Ta(o){return o===100||o===68||o===115||o===83||o===119||o===87}te.regexp_eatUnicodePropertyValueExpression=function(o){var y=o.pos;if(this.regexp_eatUnicodePropertyName(o)&&o.eat(61)){var v=o.lastStringValue;if(this.regexp_eatUnicodePropertyValue(o)){var w=o.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(o,v,w),!0}}if(o.pos=y,this.regexp_eatLoneUnicodePropertyNameOrValue(o)){var B=o.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(o,B),!0}return!1},te.regexp_validateUnicodePropertyNameAndValue=function(o,y,v){Nr(o.unicodeProperties.nonBinary,y)||o.raise("Invalid property name"),o.unicodeProperties.nonBinary[y].test(v)||o.raise("Invalid property value")},te.regexp_validateUnicodePropertyNameOrValue=function(o,y){o.unicodeProperties.binary.test(y)||o.raise("Invalid property name")},te.regexp_eatUnicodePropertyName=function(o){var y=0;for(o.lastStringValue="";Rr(y=o.current());)o.lastStringValue+=re(y),o.advance();return o.lastStringValue!==""};function Rr(o){return bs(o)||o===95}te.regexp_eatUnicodePropertyValue=function(o){var y=0;for(o.lastStringValue="";ka(y=o.current());)o.lastStringValue+=re(y),o.advance();return o.lastStringValue!==""};function ka(o){return Rr(o)||Mr(o)}te.regexp_eatLoneUnicodePropertyNameOrValue=function(o){return this.regexp_eatUnicodePropertyValue(o)},te.regexp_eatCharacterClass=function(o){if(o.eat(91)){if(o.eat(94),this.regexp_classRanges(o),o.eat(93))return!0;o.raise("Unterminated character class")}return!1},te.regexp_classRanges=function(o){for(;this.regexp_eatClassAtom(o);){var y=o.lastIntValue;if(o.eat(45)&&this.regexp_eatClassAtom(o)){var v=o.lastIntValue;o.switchU&&(y===-1||v===-1)&&o.raise("Invalid character class"),y!==-1&&v!==-1&&y>v&&o.raise("Range out of order in character class")}}},te.regexp_eatClassAtom=function(o){var y=o.pos;if(o.eat(92)){if(this.regexp_eatClassEscape(o))return!0;if(o.switchU){var v=o.current();(v===99||Es(v))&&o.raise("Invalid class escape"),o.raise("Invalid escape")}o.pos=y}var w=o.current();return w!==93?(o.lastIntValue=w,o.advance(),!0):!1},te.regexp_eatClassEscape=function(o){var y=o.pos;if(o.eat(98))return o.lastIntValue=8,!0;if(o.switchU&&o.eat(45))return o.lastIntValue=45,!0;if(!o.switchU&&o.eat(99)){if(this.regexp_eatClassControlLetter(o))return!0;o.pos=y}return this.regexp_eatCharacterClassEscape(o)||this.regexp_eatCharacterEscape(o)},te.regexp_eatClassControlLetter=function(o){var y=o.current();return Mr(y)||y===95?(o.lastIntValue=y%32,o.advance(),!0):!1},te.regexp_eatHexEscapeSequence=function(o){var y=o.pos;if(o.eat(120)){if(this.regexp_eatFixedHexDigits(o,2))return!0;o.switchU&&o.raise("Invalid escape"),o.pos=y}return!1},te.regexp_eatDecimalDigits=function(o){var y=o.pos,v=0;for(o.lastIntValue=0;Mr(v=o.current());)o.lastIntValue=10*o.lastIntValue+(v-48),o.advance();return o.pos!==y};function Mr(o){return o>=48&&o<=57}te.regexp_eatHexDigits=function(o){var y=o.pos,v=0;for(o.lastIntValue=0;lr(v=o.current());)o.lastIntValue=16*o.lastIntValue+_t(v),o.advance();return o.pos!==y};function lr(o){return o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102}function _t(o){return o>=65&&o<=70?10+(o-65):o>=97&&o<=102?10+(o-97):o-48}te.regexp_eatLegacyOctalEscapeSequence=function(o){if(this.regexp_eatOctalDigit(o)){var y=o.lastIntValue;if(this.regexp_eatOctalDigit(o)){var v=o.lastIntValue;y<=3&&this.regexp_eatOctalDigit(o)?o.lastIntValue=y*64+v*8+o.lastIntValue:o.lastIntValue=y*8+v}else o.lastIntValue=y;return!0}return!1},te.regexp_eatOctalDigit=function(o){var y=o.current();return Es(y)?(o.lastIntValue=y-48,o.advance(),!0):(o.lastIntValue=0,!1)};function Es(o){return o>=48&&o<=55}te.regexp_eatFixedHexDigits=function(o,y){var v=o.pos;o.lastIntValue=0;for(var w=0;w<y;++w){var B=o.current();if(!lr(B))return o.pos=v,!1;o.lastIntValue=16*o.lastIntValue+_t(B),o.advance()}return!0};var cr=function(y){this.type=y.type,this.value=y.value,this.start=y.start,this.end=y.end,y.options.locations&&(this.loc=new ir(y,y.startLoc,y.endLoc)),y.options.ranges&&(this.range=[y.start,y.end])},De=qe.prototype;De.next=function(o){!o&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new cr(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},De.getToken=function(){return this.next(),new cr(this)},typeof Symbol!="undefined"&&(De[Symbol.iterator]=function(){var o=this;return{next:function(){var y=o.getToken();return{done:y.type===T.eof,value:y}}}}),De.curContext=function(){return this.context[this.context.length-1]},De.nextToken=function(){var o=this.curContext();if((!o||!o.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(T.eof);if(o.override)return o.override(this);this.readToken(this.fullCharCodeAtPos())},De.readToken=function(o){return ee(o,this.options.ecmaVersion>=6)||o===92?this.readWord():this.getTokenFromCode(o)},De.fullCharCodeAtPos=function(){var o=this.input.charCodeAt(this.pos);if(o<=55295||o>=57344)return o;var y=this.input.charCodeAt(this.pos+1);return(o<<10)+y-56613888},De.skipBlockComment=function(){var o=this.options.onComment&&this.curPosition(),y=this.pos,v=this.input.indexOf("*/",this.pos+=2);if(v===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=v+2,this.options.locations){sn.lastIndex=y;for(var w;(w=sn.exec(this.input))&&w.index<this.pos;)++this.curLine,this.lineStart=w.index+w[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(y+2,v),y,this.pos,o,this.curPosition())},De.skipLineComment=function(o){for(var y=this.pos,v=this.options.onComment&&this.curPosition(),w=this.input.charCodeAt(this.pos+=o);this.pos<this.input.length&&!rr(w);)w=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(y+o,this.pos),y,this.pos,v,this.curPosition())},De.skipSpace=function(){e:for(;this.pos<this.input.length;){var o=this.input.charCodeAt(this.pos);switch(o){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(o>8&&o<14||o>=5760&&ci.test(String.fromCharCode(o)))++this.pos;else break e}}},De.finishToken=function(o,y){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var v=this.type;this.type=o,this.value=y,this.updateContext(v)},De.readToken_dot=function(){var o=this.input.charCodeAt(this.pos+1);if(o>=48&&o<=57)return this.readNumber(!0);var y=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&o===46&&y===46?(this.pos+=3,this.finishToken(T.ellipsis)):(++this.pos,this.finishToken(T.dot))},De.readToken_slash=function(){var o=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):o===61?this.finishOp(T.assign,2):this.finishOp(T.slash,1)},De.readToken_mult_modulo_exp=function(o){var y=this.input.charCodeAt(this.pos+1),v=1,w=o===42?T.star:T.modulo;return this.options.ecmaVersion>=7&&o===42&&y===42&&(++v,w=T.starstar,y=this.input.charCodeAt(this.pos+2)),y===61?this.finishOp(T.assign,v+1):this.finishOp(w,v)},De.readToken_pipe_amp=function(o){var y=this.input.charCodeAt(this.pos+1);if(y===o){if(this.options.ecmaVersion>=12){var v=this.input.charCodeAt(this.pos+2);if(v===61)return this.finishOp(T.assign,3)}return this.finishOp(o===124?T.logicalOR:T.logicalAND,2)}return y===61?this.finishOp(T.assign,2):this.finishOp(o===124?T.bitwiseOR:T.bitwiseAND,1)},De.readToken_caret=function(){var o=this.input.charCodeAt(this.pos+1);return o===61?this.finishOp(T.assign,2):this.finishOp(T.bitwiseXOR,1)},De.readToken_plus_min=function(o){var y=this.input.charCodeAt(this.pos+1);return y===o?y===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||rt.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(T.incDec,2):y===61?this.finishOp(T.assign,2):this.finishOp(T.plusMin,1)},De.readToken_lt_gt=function(o){var y=this.input.charCodeAt(this.pos+1),v=1;return y===o?(v=o===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+v)===61?this.finishOp(T.assign,v+1):this.finishOp(T.bitShift,v)):y===33&&o===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(y===61&&(v=2),this.finishOp(T.relational,v))},De.readToken_eq_excl=function(o){var y=this.input.charCodeAt(this.pos+1);return y===61?this.finishOp(T.equality,this.input.charCodeAt(this.pos+2)===61?3:2):o===61&&y===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(T.arrow)):this.finishOp(o===61?T.eq:T.prefix,1)},De.readToken_question=function(){var o=this.options.ecmaVersion;if(o>=11){var y=this.input.charCodeAt(this.pos+1);if(y===46){var v=this.input.charCodeAt(this.pos+2);if(v<48||v>57)return this.finishOp(T.questionDot,2)}if(y===63){if(o>=12){var w=this.input.charCodeAt(this.pos+2);if(w===61)return this.finishOp(T.assign,3)}return this.finishOp(T.coalesce,2)}}return this.finishOp(T.question,1)},De.getTokenFromCode=function(o){switch(o){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(T.parenL);case 41:return++this.pos,this.finishToken(T.parenR);case 59:return++this.pos,this.finishToken(T.semi);case 44:return++this.pos,this.finishToken(T.comma);case 91:return++this.pos,this.finishToken(T.bracketL);case 93:return++this.pos,this.finishToken(T.bracketR);case 123:return++this.pos,this.finishToken(T.braceL);case 125:return++this.pos,this.finishToken(T.braceR);case 58:return++this.pos,this.finishToken(T.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(T.backQuote);case 48:var y=this.input.charCodeAt(this.pos+1);if(y===120||y===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(y===111||y===79)return this.readRadixNumber(8);if(y===98||y===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(o);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(o);case 124:case 38:return this.readToken_pipe_amp(o);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(o);case 60:case 62:return this.readToken_lt_gt(o);case 61:case 33:return this.readToken_eq_excl(o);case 63:return this.readToken_question();case 126:return this.finishOp(T.prefix,1)}this.raise(this.pos,"Unexpected character '"+bi(o)+"'")},De.finishOp=function(o,y){var v=this.input.slice(this.pos,this.pos+y);return this.pos+=y,this.finishToken(o,v)},De.readRegexp=function(){for(var o,y,v=this.pos;;){this.pos>=this.input.length&&this.raise(v,"Unterminated regular expression");var w=this.input.charAt(this.pos);if(rt.test(w)&&this.raise(v,"Unterminated regular expression"),o)o=!1;else{if(w==="[")y=!0;else if(w==="]"&&y)y=!1;else if(w==="/"&&!y)break;o=w==="\\"}++this.pos}var B=this.input.slice(v,this.pos);++this.pos;var M=this.pos,V=this.readWord1();this.containsEsc&&this.unexpected(M);var H=this.regexpState||(this.regexpState=new ut(this));H.reset(v,B,V),this.validateRegExpFlags(H),this.validateRegExpPattern(H);var K=null;try{K=new RegExp(B,V)}catch(be){}return this.finishToken(T.regexp,{pattern:B,flags:V,value:K})},De.readInt=function(o,y,v){for(var w=this.options.ecmaVersion>=12&&y===void 0,B=v&&this.input.charCodeAt(this.pos)===48,M=this.pos,V=0,H=0,K=0,be=y??Infinity;K<be;++K,++this.pos){var Be=this.input.charCodeAt(this.pos),ot=void 0;if(w&&Be===95){B&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),H===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),K===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),H=Be;continue}if(Be>=97?ot=Be-97+10:Be>=65?ot=Be-65+10:Be>=48&&Be<=57?ot=Be-48:ot=Infinity,ot>=o)break;H=Be,V=V*o+ot}return w&&H===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===M||y!=null&&this.pos-M!==y?null:V};function Go(o,y){return y?parseInt(o,8):parseFloat(o.replace(/_/g,""))}function _a(o){return typeof BigInt!="function"?null:BigInt(o.replace(/_/g,""))}De.readRadixNumber=function(o){var y=this.pos;this.pos+=2;var v=this.readInt(o);return v==null&&this.raise(this.start+2,"Expected number in radix "+o),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(v=_a(this.input.slice(y,this.pos)),++this.pos):ee(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(T.num,v)},De.readNumber=function(o){var y=this.pos;!o&&this.readInt(10,void 0,!0)===null&&this.raise(y,"Invalid number");var v=this.pos-y>=2&&this.input.charCodeAt(y)===48;v&&this.strict&&this.raise(y,"Invalid number");var w=this.input.charCodeAt(this.pos);if(!v&&!o&&this.options.ecmaVersion>=11&&w===110){var B=_a(this.input.slice(y,this.pos));return++this.pos,ee(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(T.num,B)}v&&/[89]/.test(this.input.slice(y,this.pos))&&(v=!1),w===46&&!v&&(++this.pos,this.readInt(10),w=this.input.charCodeAt(this.pos)),(w===69||w===101)&&!v&&(w=this.input.charCodeAt(++this.pos),(w===43||w===45)&&++this.pos,this.readInt(10)===null&&this.raise(y,"Invalid number")),ee(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var M=Go(this.input.slice(y,this.pos),v);return this.finishToken(T.num,M)},De.readCodePoint=function(){var o=this.input.charCodeAt(this.pos),y;if(o===123){this.options.ecmaVersion<6&&this.unexpected();var v=++this.pos;y=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,y>1114111&&this.invalidStringToken(v,"Code point out of bounds")}else y=this.readHexChar(4);return y};function bi(o){return o<=65535?String.fromCharCode(o):(o-=65536,String.fromCharCode((o>>10)+55296,(o&1023)+56320))}De.readString=function(o){for(var y="",v=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var w=this.input.charCodeAt(this.pos);if(w===o)break;w===92?(y+=this.input.slice(v,this.pos),y+=this.readEscapedChar(!1),v=this.pos):(rr(w,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return y+=this.input.slice(v,this.pos++),this.finishToken(T.string,y)};var vs={};De.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(o){if(o===vs)this.readInvalidTemplateToken();else throw o}this.inTemplateElement=!1},De.invalidStringToken=function(o,y){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw vs;this.raise(o,y)},De.readTmplToken=function(){for(var o="",y=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var v=this.input.charCodeAt(this.pos);if(v===96||v===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===T.template||this.type===T.invalidTemplate)?v===36?(this.pos+=2,this.finishToken(T.dollarBraceL)):(++this.pos,this.finishToken(T.backQuote)):(o+=this.input.slice(y,this.pos),this.finishToken(T.template,o));if(v===92)o+=this.input.slice(y,this.pos),o+=this.readEscapedChar(!0),y=this.pos;else if(rr(v)){switch(o+=this.input.slice(y,this.pos),++this.pos,v){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:o+=`
|
|
15
|
+
`;break;default:o+=String.fromCharCode(v);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),y=this.pos}else++this.pos}},De.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(T.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},De.readEscapedChar=function(o){var y=this.input.charCodeAt(++this.pos);switch(++this.pos,y){case 110:return`
|
|
16
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return bi(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(o){var v=this.pos-1;return this.invalidStringToken(v,"Invalid escape sequence in template string"),null}default:if(y>=48&&y<=55){var w=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],B=parseInt(w,8);return B>255&&(w=w.slice(0,-1),B=parseInt(w,8)),this.pos+=w.length-1,y=this.input.charCodeAt(this.pos),(w!=="0"||y===56||y===57)&&(this.strict||o)&&this.invalidStringToken(this.pos-1-w.length,o?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(B)}return rr(y)?"":String.fromCharCode(y)}},De.readHexChar=function(o){var y=this.pos,v=this.readInt(16,o);return v===null&&this.invalidStringToken(y,"Bad character escape sequence"),v},De.readWord1=function(){this.containsEsc=!1;for(var o="",y=!0,v=this.pos,w=this.options.ecmaVersion>=6;this.pos<this.input.length;){var B=this.fullCharCodeAtPos();if(ye(B,w))this.pos+=B<=65535?1:2;else if(B===92){this.containsEsc=!0,o+=this.input.slice(v,this.pos);var M=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var V=this.readCodePoint();(y?ee:ye)(V,w)||this.invalidStringToken(M,"Invalid Unicode escape"),o+=bi(V),v=this.pos}else break;y=!1}return o+this.input.slice(v,this.pos)},De.readWord=function(){var o=this.readWord1(),y=T.name;return this.keywords.test(o)&&(y=yn[o]),this.finishToken(y,o)};var Cs="7.4.1";qe.acorn={Parser:qe,version:Cs,defaultOptions:pi,Position:On,SourceLocation:ir,getLineInfo:ps,Node:Ln,TokenType:le,tokTypes:T,keywordTypes:yn,TokContext:wt,tokContexts:Pe,isIdentifierChar:ye,isIdentifierStart:ee,Token:cr,isNewLine:rr,lineBreak:rt,lineBreakG:sn,nonASCIIwhitespace:ci};function Pa(o,y){return qe.parse(o,y)}function Ba(o,y,v){return qe.parseExpressionAt(o,y,v)}function Na(o,y){return qe.tokenizer(o,y)}f.Node=Ln,f.Parser=qe,f.Position=On,f.SourceLocation=ir,f.TokContext=wt,f.Token=cr,f.TokenType=le,f.defaultOptions=pi,f.getLineInfo=ps,f.isIdentifierChar=ye,f.isIdentifierStart=ee,f.isNewLine=rr,f.keywordTypes=yn,f.lineBreak=rt,f.lineBreakG=sn,f.nonASCIIwhitespace=ci,f.parse=Pa,f.parseExpressionAt=Ba,f.tokContexts=Pe,f.tokTypes=T,f.tokenizer=Na,f.version=Cs,Object.defineProperty(f,"__esModule",{value:!0})})});var Zy=ge((Bk,Ky)=>{"use strict";var Qy=Yy(),M8=Hp();Ky.exports=j8;var V8={throw:!1,strict:!1,lineComment:!1};function j8(f,g){g=M8({},V8,g);try{var D=new Qy.Parser(g,f,0);g.strict&&(D.strict=!0),g.lineComment||(D.skipLineComment=function(C){this.raise(this.pos,"Line comments not allowed in an expression")}),D.nextToken(),D.parseExpression(),D.type!==Qy.tokTypes.eof&&D.unexpected()}catch(C){if(!g.throw)return!1;throw C}return!0}});var tD=ge((Nk,eD)=>{"use strict";eD.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var g={},D=Symbol("test"),C=Object(D);if(typeof D=="string"||Object.prototype.toString.call(D)!=="[object Symbol]"||Object.prototype.toString.call(C)!=="[object Symbol]")return!1;var S=42;g[D]=S;for(D in g)return!1;if(typeof Object.keys=="function"&&Object.keys(g).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(g).length!==0)return!1;var k=Object.getOwnPropertySymbols(g);if(k.length!==1||k[0]!==D||!Object.prototype.propertyIsEnumerable.call(g,D))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var _=Object.getOwnPropertyDescriptor(g,D);if(_.value!==S||_.enumerable!==!0)return!1}return!0}});var iD=ge((Ok,nD)=>{"use strict";var rD=window.Symbol,U8=tD();nD.exports=function(){return typeof rD!="function"||typeof Symbol!="function"||typeof rD("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:U8()}});var lD=ge((Ik,sD)=>{"use strict";var q8=iD()(),aD=q8&&typeof Symbol.toStringTag=="symbol",uD,oD,tf,nf;aD&&(uD=Function.call.bind(Object.prototype.hasOwnProperty),oD=Function.call.bind(RegExp.prototype.exec),tf={},ho=function(){throw tf},nf={toString:ho,valueOf:ho},typeof Symbol.toPrimitive=="symbol"&&(nf[Symbol.toPrimitive]=ho));var ho,$8=Object.prototype.toString,W8=Object.getOwnPropertyDescriptor,G8="[object RegExp]";sD.exports=aD?function(g){if(!g||typeof g!="object")return!1;var D=W8(g,"lastIndex"),C=D&&uD(D,"value");if(!C)return!1;try{oD(g,nf)}catch(S){return S===tf}}:function(g){return!g||typeof g!="object"&&typeof g!="function"?!1:$8.call(g)===G8}});var dD=ge((Gt,cD)=>{"use strict";var H8=lD();Gt=cD.exports=pD;var ft=Gt.TOKEN_TYPES={LINE_COMMENT:"//",BLOCK_COMMENT:"/**/",SINGLE_QUOTE:"'",DOUBLE_QUOTE:'"',TEMPLATE_QUOTE:"`",REGEXP:"//g"},rf=Gt.BRACKETS={"(":")","{":"}","[":"]"},z8={")":"(","}":"{","]":"["};Gt.parse=pD;function pD(f,g,D){D=D||{},g=g||Gt.defaultState();for(var C=D.start||0,S=D.end||f.length,k=C;k<S;){try{sf(f[k],g)}catch(_){throw _.index=k,_}k++}return g}Gt.parseUntil=J8;function J8(f,g,D){D=D||{};for(var C=D.start||0,S=C,k=Gt.defaultState();S<f.length;){if((D.ignoreNesting||!k.isNesting(D))&&X8(f,g,S)){var _=S;return{start:C,end:_,src:f.substring(C,_)}}try{sf(f[S],k)}catch(j){throw j.index=S,j}S++}var O=new Error("The end of the string was reached with no closing bracket found.");throw O.code="CHARACTER_PARSER:END_OF_STRING_REACHED",O.index=S,O}Gt.parseChar=sf;function sf(f,g){if(f.length!==1){var D=new Error("Character must be a string of length 1");throw D.name="InvalidArgumentError",D.code="CHARACTER_PARSER:CHAR_LENGTH_NOT_ONE",D}g=g||Gt.defaultState(),g.src+=f;var C=g.isComment(),S=g.history?g.history[0]:"";switch(g.regexpStart&&((f==="/"||f=="*")&&g.stack.pop(),g.regexpStart=!1),g.current()){case ft.LINE_COMMENT:f===`
|
|
17
|
+
`&&g.stack.pop();break;case ft.BLOCK_COMMENT:g.lastChar==="*"&&f==="/"&&g.stack.pop();break;case ft.SINGLE_QUOTE:f==="'"&&!g.escaped?g.stack.pop():f==="\\"&&!g.escaped?g.escaped=!0:g.escaped=!1;break;case ft.DOUBLE_QUOTE:f==='"'&&!g.escaped?g.stack.pop():f==="\\"&&!g.escaped?g.escaped=!0:g.escaped=!1;break;case ft.TEMPLATE_QUOTE:f==="`"&&!g.escaped?(g.stack.pop(),g.hasDollar=!1):f==="\\"&&!g.escaped?(g.escaped=!0,g.hasDollar=!1):f==="$"&&!g.escaped?g.hasDollar=!0:f==="{"&&g.hasDollar?g.stack.push(rf[f]):(g.escaped=!1,g.hasDollar=!1);break;case ft.REGEXP:f==="/"&&!g.escaped?g.stack.pop():f==="\\"&&!g.escaped?g.escaped=!0:g.escaped=!1;break;default:if(f in rf)g.stack.push(rf[f]);else if(f in z8){if(g.current()!==f){var D=new SyntaxError("Mismatched Bracket: "+f);throw D.code="CHARACTER_PARSER:MISMATCHED_BRACKET",D}g.stack.pop()}else S==="/"&&f==="/"?(g.history=g.history.substr(1),g.stack.push(ft.LINE_COMMENT)):S==="/"&&f==="*"?(g.history=g.history.substr(1),g.stack.push(ft.BLOCK_COMMENT)):f==="/"&&Y8(g.history)?(g.stack.push(ft.REGEXP),g.regexpStart=!0):f==="'"?g.stack.push(ft.SINGLE_QUOTE):f==='"'?g.stack.push(ft.DOUBLE_QUOTE):f==="`"&&g.stack.push(ft.TEMPLATE_QUOTE);break}return!g.isComment()&&!C&&(g.history=f+g.history),g.lastChar=f,g}Gt.defaultState=function(){return new da};function da(){this.stack=[],this.regexpStart=!1,this.escaped=!1,this.hasDollar=!1,this.src="",this.history="",this.lastChar=""}da.prototype.current=function(){return this.stack[this.stack.length-1]};da.prototype.isString=function(){return this.current()===ft.SINGLE_QUOTE||this.current()===ft.DOUBLE_QUOTE||this.current()===ft.TEMPLATE_QUOTE};da.prototype.isComment=function(){return this.current()===ft.LINE_COMMENT||this.current()===ft.BLOCK_COMMENT};da.prototype.isNesting=function(f){return f&&f.ignoreLineComment&&this.stack.length===1&&this.stack[0]===ft.LINE_COMMENT?!1:!!this.stack.length};function X8(f,g,D){return H8(g)?g.test(f.substr(D||0)):f.substr(D||0,g.length)===g}Gt.isPunctuator=fD;function fD(f){if(!f)return!0;var g=f.charCodeAt(0);switch(g){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}}Gt.isKeyword=hD;function hD(f){return f==="if"||f==="in"||f==="do"||f==="var"||f==="for"||f==="new"||f==="try"||f==="let"||f==="this"||f==="else"||f==="case"||f==="void"||f==="with"||f==="enum"||f==="while"||f==="break"||f==="catch"||f==="throw"||f==="const"||f==="yield"||f==="class"||f==="super"||f==="return"||f==="typeof"||f==="delete"||f==="switch"||f==="export"||f==="import"||f==="default"||f==="finally"||f==="extends"||f==="function"||f==="continue"||f==="debugger"||f==="package"||f==="private"||f==="interface"||f==="instanceof"||f==="implements"||f==="protected"||f==="public"||f==="static"}function Y8(f){return f=f.replace(/^\s*/,""),f[0]===")"?!1:!!(f[0]==="}"||fD(f[0])||/^\w+\b/.test(f)&&hD(/^\w+\b/.exec(f)[0].split("").reverse().join("")))}});var mD=ge((Lk,gD)=>{"use strict";gD.exports=K8;function K8(f,g,D){var C=D.line,S=D.column,k=D.filename,_=D.src,O,j=C+(S?":"+S:"");if(_&&C>=1&&C<=_.split(`
|
|
18
18
|
`).length){var W=_.split(`
|
|
19
|
-
`),
|
|
20
|
-
`,yn+=Array(
|
|
19
|
+
`),z=Math.max(C-3,0),Q=Math.min(W.length,C+3),ee=W.slice(z,Q).map(function(le,_e){var Ue=_e+z+1,Ye=(Ue==C?" > ":" ")+Ue+"| ",yn=Ye+le;return Ue===C&&S>0&&(yn+=`
|
|
20
|
+
`,yn+=Array(Ye.length+S).join("-")+"^"),yn}).join(`
|
|
21
21
|
`);O=(k||"Pug")+":"+j+`
|
|
22
|
-
`+
|
|
22
|
+
`+ee+`
|
|
23
23
|
|
|
24
24
|
`+g}else O=(k||"Pug")+":"+j+`
|
|
25
25
|
|
|
26
|
-
`+g;var
|
|
27
|
-
`),this.originalInput=this.input,this.filename=g.filename,this.interpolated=g.interpolated||!1,this.lineno=g.startingLine||1,this.colno=g.startingColumn||1,this.plugins=g.plugins||[],this.indentStack=[0],this.indentRe=null,this.interpolationAllowed=!0,this.whitespaceRe=/[ \n\t]/,this.tokens=[],this.ended=!1}go.prototype={constructor:go,error:function(f,g){var D=
|
|
26
|
+
`+g;var ye=new Error(O);return ye.code="PUG:"+f,ye.msg=g,ye.line=C,ye.column=S,ye.filename=k,ye.src=_,ye.toJSON=function(){return{code:this.code,msg:this.msg,line:this.line,column:this.column,filename:this.filename}},ye}});var yD=ge((Rk,af)=>{"use strict";var Q8=Jy(),Z8=Zy(),Bn=dD(),eT=mD();af.exports=tT;af.exports.Lexer=go;function tT(f,g){var D=new go(f,g);return JSON.parse(JSON.stringify(D.getTokens()))}function go(f,g){if(g=g||{},typeof f!="string")throw new Error('Expected source code to be a string but got "'+typeof f+'"');if(typeof g!="object")throw new Error('Expected "options" to be an object but got "'+typeof g+'"');f=f.replace(/^\uFEFF/,""),this.input=f.replace(/\r\n|\r/g,`
|
|
27
|
+
`),this.originalInput=this.input,this.filename=g.filename,this.interpolated=g.interpolated||!1,this.lineno=g.startingLine||1,this.colno=g.startingColumn||1,this.plugins=g.plugins||[],this.indentStack=[0],this.indentRe=null,this.interpolationAllowed=!0,this.whitespaceRe=/[ \n\t]/,this.tokens=[],this.ended=!1}go.prototype={constructor:go,error:function(f,g){var D=eT(f,g,{line:this.lineno,column:this.colno,filename:this.filename,src:this.originalInput});throw D},assert:function(f,g){f||this.error("ASSERT_FAILED",g)},isExpression:function(f){return Z8(f,{throw:!0})},assertExpression:function(f,g){try{return this.callLexerFunction("isExpression",f),!0}catch(C){if(g)return!1;if(!C.loc)throw C;this.incrementLine(C.loc.line-1),this.incrementColumn(C.loc.column);var D="Syntax Error: "+C.message.replace(/ \([0-9]+:[0-9]+\)$/,"");this.error("SYNTAX_ERROR",D)}},assertNestingCorrect:function(f){var g=Bn(f);g.isNesting()&&this.error("INCORRECT_NESTING","Nesting must match on expression `"+f+"`")},tok:function(f,g){var D={type:f,loc:{start:{line:this.lineno,column:this.colno},filename:this.filename}};return g!==void 0&&(D.val=g),D},tokEnd:function(f){return f.loc.end={line:this.lineno,column:this.colno},f},incrementLine:function(f){this.lineno+=f,f&&(this.colno=1)},incrementColumn:function(f){this.colno+=f},consume:function(f){this.input=this.input.substr(f)},scan:function(f,g){var D;if(D=f.exec(this.input)){var C=D[0].length,S=D[1],k=C-(S?S.length:0),_=this.tok(g,S);return this.consume(C),this.incrementColumn(k),_}},scanEndOfLine:function(f,g){var D;if(D=f.exec(this.input)){var C=0,S,k;(S=/^([ ]+)([^ ]*)/.exec(D[0]))&&(C=S[1].length,this.incrementColumn(C));var _=this.input.substr(D[0].length);if(_[0]===":")return this.input=_,k=this.tok(g,D[1]),this.incrementColumn(D[0].length-C),k;if(/^[ \t]*(\n|$)/.test(_))return this.input=_.substr(/^[ \t]*/.exec(_)[0].length),k=this.tok(g,D[1]),this.incrementColumn(D[0].length-C),k}},bracketExpression:function(f){f=f||0;var g=this.input[f];Q8(g==="("||g==="{"||g==="[",'The start character should be "(", "{" or "["');var D=Bn.BRACKETS[g],C;try{C=Bn.parseUntil(this.input,D,{start:f+1})}catch(j){if(j.index!==void 0){for(var S=j.index,k=this.input.substr(f).indexOf(`
|
|
28
28
|
`),_=k+f,O=0;S>_&&k!==-1;)this.incrementLine(1),S-=_+1,O+=_+1,k=_=this.input.substr(O).indexOf(`
|
|
29
29
|
`);this.incrementColumn(S)}throw j.code==="CHARACTER_PARSER:END_OF_STRING_REACHED"?this.error("NO_END_BRACKET","The end of the string reached with no closing bracket "+D+" found."):j.code==="CHARACTER_PARSER:MISMATCHED_BRACKET"&&this.error("BRACKET_MISMATCH",j.message),j}return C},scanIndentation:function(){var f,g;return this.indentRe?f=this.indentRe.exec(this.input):(g=/^\n(\t*) */,f=g.exec(this.input),f&&!f[1].length&&(g=/^\n( *)/,f=g.exec(this.input)),f&&f[1].length&&(this.indentRe=g)),f},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 f=0;this.indentStack[f];f++)this.tokens.push(this.tokEnd(this.tok("outdent")));return this.tokens.push(this.tokEnd(this.tok("eos"))),this.ended=!0,!0}},blank:function(){var f;if(f=/^\n[ \t]*\n/.exec(this.input))return this.consume(f[0].length-1),this.incrementLine(1),!0},comment:function(){var f;if(f=/^\/\/(-)?([^\n]*)/.exec(this.input)){this.consume(f[0].length);var g=this.tok("comment",f[2]);return g.buffer=f[1]!="-",this.interpolationAllowed=g.buffer,this.tokens.push(g),this.incrementColumn(f[0].length),this.tokEnd(g),this.callLexerFunction("pipelessText"),!0}},interpolation:function(){if(/^#\{/.test(this.input)){var f=this.bracketExpression(1);this.consume(f.end+1);var g=this.tok("interpolation",f.src);this.tokens.push(g),this.incrementColumn(2),this.assertExpression(f.src);var D=f.src.split(`
|
|
30
|
-
`),C=D.length-1;return this.incrementLine(C),this.incrementColumn(D[C].length+1),this.tokEnd(g),!0}},tag:function(){var f;if(f=/^(\w(?:[-:\w]*\w)?)/.exec(this.input)){var g,D=f[1],C=f[0].length;return this.consume(C),g=this.tok("tag",D),this.tokens.push(g),this.incrementColumn(C),this.tokEnd(g),!0}},filter:function(f){var g=this.scan(/^:([\w\-]+)/,"filter"),D=f&&f.inInclude;if(g)return this.tokens.push(g),this.incrementColumn(g.val.length),this.tokEnd(g),this.callLexerFunction("attrs"),D||(this.interpolationAllowed=!1,this.callLexerFunction("pipelessText")),!0},doctype:function(){var f=this.scanEndOfLine(/^doctype *([^\n]*)/,"doctype");if(f)return this.tokens.push(this.tokEnd(f)),!0},id:function(){var f=this.scan(/^#([\w-]+)/,"id");if(f)return this.tokens.push(f),this.incrementColumn(f.val.length),this.tokEnd(f),!0;/^#/.test(this.input)&&this.error("INVALID_ID",'"'+/.[^ \t\(\#\.\:]*/.exec(this.input.substr(1))[0]+'" is not a valid ID.')},className:function(){var f=this.scan(/^\.([_a-z0-9\-]*[_a-z][_a-z0-9\-]*)/i,"class");if(f)return this.tokens.push(f),this.incrementColumn(f.val.length),this.tokEnd(f),!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(f,g,D,C){var S;if(g+D!==""){D=D||"",C=C||0;var k=this.interpolated?g.indexOf("]"):-1,_=this.interpolationAllowed?g.indexOf("#["):-1,O=this.interpolationAllowed?g.indexOf("\\#["):-1,j=/(\\)?([#!]){((?:.|\n)*)$/.exec(g),W=this.interpolationAllowed&&j?j.index:Infinity;if(k===-1&&(k=Infinity),_===-1&&(_=Infinity),O===-1&&(O=Infinity),O!==Infinity&&O<k&&O<_&&O<W)return D=D+g.substring(0,O)+"#[",this.addText(f,g.substring(O+3),D,C+1);if(_!==Infinity&&_<k&&_<O&&_<W){S=this.tok(f,D+g.substring(0,_)),this.incrementColumn(D.length+_+C),this.tokens.push(this.tokEnd(S)),S=this.tok("start-pug-interpolation"),this.incrementColumn(2),this.tokens.push(this.tokEnd(S));var
|
|
30
|
+
`),C=D.length-1;return this.incrementLine(C),this.incrementColumn(D[C].length+1),this.tokEnd(g),!0}},tag:function(){var f;if(f=/^(\w(?:[-:\w]*\w)?)/.exec(this.input)){var g,D=f[1],C=f[0].length;return this.consume(C),g=this.tok("tag",D),this.tokens.push(g),this.incrementColumn(C),this.tokEnd(g),!0}},filter:function(f){var g=this.scan(/^:([\w\-]+)/,"filter"),D=f&&f.inInclude;if(g)return this.tokens.push(g),this.incrementColumn(g.val.length),this.tokEnd(g),this.callLexerFunction("attrs"),D||(this.interpolationAllowed=!1,this.callLexerFunction("pipelessText")),!0},doctype:function(){var f=this.scanEndOfLine(/^doctype *([^\n]*)/,"doctype");if(f)return this.tokens.push(this.tokEnd(f)),!0},id:function(){var f=this.scan(/^#([\w-]+)/,"id");if(f)return this.tokens.push(f),this.incrementColumn(f.val.length),this.tokEnd(f),!0;/^#/.test(this.input)&&this.error("INVALID_ID",'"'+/.[^ \t\(\#\.\:]*/.exec(this.input.substr(1))[0]+'" is not a valid ID.')},className:function(){var f=this.scan(/^\.([_a-z0-9\-]*[_a-z][_a-z0-9\-]*)/i,"class");if(f)return this.tokens.push(f),this.incrementColumn(f.val.length),this.tokEnd(f),!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(f,g,D,C){var S;if(g+D!==""){D=D||"",C=C||0;var k=this.interpolated?g.indexOf("]"):-1,_=this.interpolationAllowed?g.indexOf("#["):-1,O=this.interpolationAllowed?g.indexOf("\\#["):-1,j=/(\\)?([#!]){((?:.|\n)*)$/.exec(g),W=this.interpolationAllowed&&j?j.index:Infinity;if(k===-1&&(k=Infinity),_===-1&&(_=Infinity),O===-1&&(O=Infinity),O!==Infinity&&O<k&&O<_&&O<W)return D=D+g.substring(0,O)+"#[",this.addText(f,g.substring(O+3),D,C+1);if(_!==Infinity&&_<k&&_<O&&_<W){S=this.tok(f,D+g.substring(0,_)),this.incrementColumn(D.length+_+C),this.tokens.push(this.tokEnd(S)),S=this.tok("start-pug-interpolation"),this.incrementColumn(2),this.tokens.push(this.tokEnd(S));var z=new this.constructor(g.substr(_+2),{filename:this.filename,interpolated:!0,startingLine:this.lineno,startingColumn:this.colno,plugins:this.plugins}),Q;try{Q=z.getTokens()}catch(_e){throw _e.code&&/^PUG:/.test(_e.code)&&(this.colno=_e.column,this.error(_e.code.substr(4),_e.msg)),_e}this.colno=z.colno,this.tokens=this.tokens.concat(Q),S=this.tok("end-pug-interpolation"),this.incrementColumn(1),this.tokens.push(this.tokEnd(S)),this.addText(f,z.input);return}if(k!==Infinity&&k<_&&k<O&&k<W){D+g.substring(0,k)&&this.addText(f,g.substring(0,k),D),this.ended=!0,this.input=g.substr(g.indexOf("]")+1)+this.input;return}if(W!==Infinity){if(j[1])return D=D+g.substring(0,W)+j[2]+"{",this.addText(f,g.substring(W+3),D,C+1);var ee=g.substr(0,W);(D||ee)&&(ee=D+ee,S=this.tok(f,ee),this.incrementColumn(ee.length+C),this.tokens.push(this.tokEnd(S)));var ye=j[3],le;S=this.tok("interpolated-code"),this.incrementColumn(2);try{le=Bn.parseUntil(ye,"}")}catch(_e){if(_e.index!==void 0&&this.incrementColumn(_e.index),_e.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(_e.code==="CHARACTER_PARSER:MISMATCHED_BRACKET")this.error("BRACKET_MISMATCH",_e.message);else throw _e}S.mustEscape=j[2]==="#",S.buffer=!0,S.val=le.src,this.assertExpression(le.src),le.end+1<ye.length?(ye=ye.substr(le.end+1),this.incrementColumn(le.end+1),this.tokens.push(this.tokEnd(S)),this.addText(f,ye)):(this.incrementColumn(ye.length),this.tokens.push(this.tokEnd(S)));return}g=D+g,S=this.tok(f,g),this.incrementColumn(g.length+C),this.tokens.push(this.tokEnd(S))}},text:function(){var f=this.scan(/^(?:\| ?| )([^\n]+)/,"text")||this.scan(/^( )/,"text")||this.scan(/^\|( ?)/,"text");if(f)return this.addText("text",f.val),!0},textHtml:function(){var f=this.scan(/^(<[^\n]*)/,"text-html");if(f)return this.addText("text-html",f.val),!0},dot:function(){var f;if(f=this.scanEndOfLine(/^\./,"dot"))return this.tokens.push(this.tokEnd(f)),this.callLexerFunction("pipelessText"),!0},extends:function(){var f=this.scan(/^extends?(?= |$|\n)/,"extends");if(f)return this.tokens.push(this.tokEnd(f)),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 f;if(f=/^(?:block +)?prepend +([^\n]+)/.exec(this.input)){var g=f[1].trim(),D="";if(g.indexOf("//")!==-1&&(D="//"+g.split("//").slice(1).join("//"),g=g.split("//")[0].trim()),!g)return;for(var C=this.tok("block",g),S=f[0].length-D.length;this.whitespaceRe.test(this.input.charAt(S-1));)S--;return this.incrementColumn(S),C.mode="prepend",this.tokens.push(this.tokEnd(C)),this.consume(f[0].length-D.length),this.incrementColumn(f[0].length-D.length-S),!0}},append:function(){var f;if(f=/^(?:block +)?append +([^\n]+)/.exec(this.input)){var g=f[1].trim(),D="";if(g.indexOf("//")!==-1&&(D="//"+g.split("//").slice(1).join("//"),g=g.split("//")[0].trim()),!g)return;for(var C=this.tok("block",g),S=f[0].length-D.length;this.whitespaceRe.test(this.input.charAt(S-1));)S--;return this.incrementColumn(S),C.mode="append",this.tokens.push(this.tokEnd(C)),this.consume(f[0].length-D.length),this.incrementColumn(f[0].length-D.length-S),!0}},block:function(){var f;if(f=/^block +([^\n]+)/.exec(this.input)){var g=f[1].trim(),D="";if(g.indexOf("//")!==-1&&(D="//"+g.split("//").slice(1).join("//"),g=g.split("//")[0].trim()),!g)return;for(var C=this.tok("block",g),S=f[0].length-D.length;this.whitespaceRe.test(this.input.charAt(S-1));)S--;return this.incrementColumn(S),C.mode="replace",this.tokens.push(this.tokEnd(C)),this.consume(f[0].length-D.length),this.incrementColumn(f[0].length-D.length-S),!0}},mixinBlock:function(){var f;if(f=this.scanEndOfLine(/^block/,"mixin-block"))return this.tokens.push(this.tokEnd(f)),!0},yield:function(){var f=this.scanEndOfLine(/^yield/,"yield");if(f)return this.tokens.push(this.tokEnd(f)),!0},include:function(){var f=this.scan(/^include(?=:| |$|\n)/,"include");if(f){for(this.tokens.push(this.tokEnd(f));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 f=this.scanEndOfLine(/^ ([^\n]+)/,"path");if(f&&(f.val=f.val.trim()))return this.tokens.push(this.tokEnd(f)),!0},case:function(){var f=this.scanEndOfLine(/^case +([^\n]+)/,"case");if(f)return this.incrementColumn(-f.val.length),this.assertExpression(f.val),this.incrementColumn(f.val.length),this.tokens.push(this.tokEnd(f)),!0;this.scan(/^case\b/)&&this.error("NO_CASE_EXPRESSION","missing expression for case")},when:function(){var f=this.scanEndOfLine(/^when +([^:\n]+)/,"when");if(f){for(var g=Bn(f.val);g.isNesting()||g.isString();){var D=/:([^:\n]+)/.exec(this.input);if(!D)break;f.val+=D[0],this.consume(D[0].length),this.incrementColumn(D[0].length),g=Bn(f.val)}return this.incrementColumn(-f.val.length),this.assertExpression(f.val),this.incrementColumn(f.val.length),this.tokens.push(this.tokEnd(f)),!0}this.scan(/^when\b/)&&this.error("NO_WHEN_EXPRESSION","missing expression for when")},default:function(){var f=this.scanEndOfLine(/^default/,"default");if(f)return this.tokens.push(this.tokEnd(f)),!0;this.scan(/^default\b/)&&this.error("DEFAULT_WITH_EXPRESSION","default should not have an expression")},call:function(){var f,g,D;if(g=/^\+(\s*)(([-\w]+)|(#\{))/.exec(this.input)){if(g[3])D=g[0].length,this.consume(D),f=this.tok("call",g[3]);else{var C=this.bracketExpression(2+g[1].length);D=C.end+1,this.consume(D),this.assertExpression(C.src),f=this.tok("call","#{"+C.src+"}")}if(this.incrementColumn(D),f.args=null,g=/^ *\(/.exec(this.input)){var S=this.bracketExpression(g[0].length-1);if(!/^\s*[-\w]+ *=/.test(S.src)){this.incrementColumn(1),this.consume(S.end+1),f.args=S.src,this.assertExpression("["+f.args+"]");for(var k=0;k<=f.args.length;k++)f.args[k]===`
|
|
31
31
|
`?this.incrementLine(1):this.incrementColumn(1)}}return this.tokens.push(this.tokEnd(f)),!0}},mixin:function(){var f;if(f=/^mixin +([-\w]+)(?: *\((.*)\))? */.exec(this.input)){this.consume(f[0].length);var g=this.tok("mixin",f[1]);return g.args=f[2]||null,this.incrementColumn(f[0].length),this.tokens.push(this.tokEnd(g)),!0}},conditional:function(){var f;if(f=/^(if|unless|else if|else)\b([^\n]*)/.exec(this.input)){this.consume(f[0].length);var g=f[1].replace(/ /g,"-"),D=f[2]&&f[2].trim(),C=this.tok(g,D);switch(this.incrementColumn(f[0].length-D.length),g){case"if":case"else-if":this.assertExpression(D);break;case"unless":this.assertExpression(D),C.val="!("+D+")",C.type="if";break;case"else":D&&this.error("ELSE_CONDITION","`else` cannot have a condition, perhaps you meant `else if`");break}return this.incrementColumn(D.length),this.tokens.push(this.tokEnd(C)),!0}},while:function(){var f,g;if(f=/^while +([^\n]+)/.exec(this.input))return this.consume(f[0].length),this.assertExpression(f[1]),g=this.tok("while",f[1]),this.incrementColumn(f[0].length),this.tokens.push(this.tokEnd(g)),!0;this.scan(/^while\b/)&&this.error("NO_WHILE_EXPRESSION","missing expression for while")},each:function(){var f;if(f=/^(?:each|for) +([a-zA-Z_$][\w$]*)(?: *, *([a-zA-Z_$][\w$]*))? * in *([^\n]+)/.exec(this.input)){this.consume(f[0].length);var g=this.tok("each",f[1]);return g.key=f[2]||null,this.incrementColumn(f[0].length-f[3].length),this.assertExpression(f[3]),g.code=f[3],this.incrementColumn(f[3].length),this.tokens.push(this.tokEnd(g)),!0}let D=/^each\b/.exec(this.input)?"each":"for";this.scan(/^(?:each|for)\b/)&&this.error("MALFORMED_EACH","This `"+D+"` has a syntax error. `"+D+"` statements should be of the form: `"+D+" VARIABLE_NAME of JS_EXPRESSION`"),(f=/^- *(?:each|for) +([a-zA-Z_$][\w$]*)(?: *, *([a-zA-Z_$][\w$]*))? +in +([^\n]+)/.exec(this.input))&&this.error("MALFORMED_EACH",'Pug each and for should no longer be prefixed with a dash ("-"). They are pug keywords and not part of JavaScript.')},eachOf:function(){var f;if(f=/^(?:each|for) (.*?) of *([^\n]+)/.exec(this.input)){this.consume(f[0].length);var g=this.tok("eachOf",f[1]);return g.value=f[1],this.incrementColumn(f[0].length-f[2].length),this.assertExpression(f[2]),g.code=f[2],this.incrementColumn(f[2].length),this.tokens.push(this.tokEnd(g)),/^[a-zA-Z_$][\w$]*$/.test(g.value.trim())||/^\[ *[a-zA-Z_$][\w$]* *\, *[a-zA-Z_$][\w$]* *\]$/.test(g.value.trim())||this.error("MALFORMED_EACH_OF_LVAL","The value variable for each must either be a valid identifier (e.g. `item`) or a pair of identifiers in square brackets (e.g. `[key, value]`)."),!0}(f=/^- *(?:each|for) +([a-zA-Z_$][\w$]*)(?: *, *([a-zA-Z_$][\w$]*))? +of +([^\n]+)/.exec(this.input))&&this.error("MALFORMED_EACH",'Pug each and for should not be prefixed with a dash ("-"). They are pug keywords and not part of JavaScript.')},code:function(){var f;if(f=/^(!?=|-)[ \t]*([^\n]+)/.exec(this.input)){var g=f[1],D=f[2],C=0;if(this.interpolated){var S;try{S=Bn.parseUntil(D,"]")}catch(O){if(O.index!==void 0&&this.incrementColumn(f[0].length-D.length+O.index),O.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(O.code==="CHARACTER_PARSER:MISMATCHED_BRACKET")this.error("BRACKET_MISMATCH",O.message);else throw O}C=D.length-S.end,D=S.src}var k=f[0].length-C;this.consume(k);var _=this.tok("code",D);return _.mustEscape=g.charAt(0)==="=",_.buffer=g.charAt(0)==="="||g.charAt(1)==="=",this.incrementColumn(f[0].length-f[2].length),_.buffer&&this.assertExpression(D),this.tokens.push(_),this.incrementColumn(D.length),this.tokEnd(_),!0}},blockCode:function(){var f;if(f=this.scanEndOfLine(/^-/,"blockcode"))return this.tokens.push(this.tokEnd(f)),this.interpolationAllowed=!1,this.callLexerFunction("pipelessText"),!0},attribute:function(f){var g="",D=/['"]/,C="",S;for(S=0;S<f.length&&this.whitespaceRe.test(f[S]);S++)f[S]===`
|
|
32
32
|
`?this.incrementLine(1):this.incrementColumn(1);if(S===f.length)return"";var k=this.tok("attribute");for(D.test(f[S])&&(g=f[S],this.incrementColumn(1),S++);S<f.length;S++){if(g){if(f[S]===g){this.incrementColumn(1),S++;break}}else if(this.whitespaceRe.test(f[S])||f[S]==="!"||f[S]==="="||f[S]===",")break;C+=f[S],f[S]===`
|
|
33
33
|
`?this.incrementLine(1):this.incrementColumn(1)}k.name=C;var _=this.attributeValue(f.substr(S));for(_.val?(k.val=_.val,k.mustEscape=_.mustEscape):(k.val=!0,k.mustEscape=!0),f=_.remainingSource,this.tokens.push(this.tokEnd(k)),S=0;S<f.length&&this.whitespaceRe.test(f[S]);S++)f[S]===`
|
|
34
34
|
`?this.incrementLine(1):this.incrementColumn(1);return f[S]===","&&(this.incrementColumn(1),S++),f.substr(S)},attributeValue:function(f){var g=/['"]/,D="",C,S,k,_=!0,O=Bn.defaultState(),j=this.colno,W=this.lineno;for(S=0;S<f.length&&this.whitespaceRe.test(f[S]);S++)f[S]===`
|
|
35
35
|
`?(W++,j=1):j++;if(S===f.length)return{remainingSource:f};if(f[S]==="!"&&(_=!1,j++,S++,f[S]!=="="&&this.error("INVALID_KEY_CHARACTER","Unexpected character "+f[S]+" expected `=`")),f[S]!=="=")if(S===0&&f&&!this.whitespaceRe.test(f[0])&&f[0]!==",")this.error("INVALID_KEY_CHARACTER","Unexpected character "+f[0]+" expected `=`");else return{remainingSource:f};for(this.lineno=W,this.colno=j+1,S++;S<f.length&&this.whitespaceRe.test(f[S]);S++)f[S]===`
|
|
36
|
-
`?this.incrementLine(1):this.incrementColumn(1);for(W=this.lineno,j=this.colno;S<f.length;S++){if(!(O.isNesting()||O.isString())){if(this.whitespaceRe.test(f[S])){for(C=!1,k=S;k<f.length;k++)if(!this.whitespaceRe.test(f[k])){let
|
|
36
|
+
`?this.incrementLine(1):this.incrementColumn(1);for(W=this.lineno,j=this.colno;S<f.length;S++){if(!(O.isNesting()||O.isString())){if(this.whitespaceRe.test(f[S])){for(C=!1,k=S;k<f.length;k++)if(!this.whitespaceRe.test(f[k])){let z=!Bn.isPunctuator(f[k]),Q=g.test(f[k]),ee=f[k]===":",ye=f[k]+f[k+1]+f[k+2]==="...";(z||Q||ee||ye)&&this.assertExpression(D,!0)&&(C=!0);break}if(C||k===f.length)break}if(f[S]===","&&this.assertExpression(D,!0))break}O=Bn.parseChar(f[S],O),D+=f[S],f[S]===`
|
|
37
37
|
`?(W++,j=1):j++}return this.assertExpression(D),this.lineno=W,this.colno=j,{val:D,mustEscape:_,remainingSource:f.substr(S)}},attrs:function(){var f;if(this.input.charAt(0)=="("){f=this.tok("start-attributes");var g=this.bracketExpression().end,D=this.input.substr(1,g-1);for(this.incrementColumn(1),this.tokens.push(this.tokEnd(f)),this.assertNestingCorrect(D),this.consume(g+1);D;)D=this.attribute(D);return f=this.tok("end-attributes"),this.incrementColumn(1),this.tokens.push(this.tokEnd(f)),!0}},attributesBlock:function(){if(/^&attributes\b/.test(this.input)){var f=11;this.consume(f);var g=this.tok("&attributes");this.incrementColumn(f);var D=this.bracketExpression();return f=D.end+1,this.consume(f),g.val=D.src,this.incrementColumn(f),this.tokens.push(this.tokEnd(g)),!0}},indent:function(){var f=this.scanIndentation(),g;if(f){var D=f[1].length;if(this.incrementLine(1),this.consume(D+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]==`
|
|
38
38
|
`)return this.interpolationAllowed=!0,this.tokEnd(this.tok("newline"));if(D<this.indentStack[0]){for(var C=0;this.indentStack[0]>D;)this.indentStack[1]<D&&this.error("INCONSISTENT_INDENTATION","Inconsistent indentation. Expecting either "+this.indentStack[1]+" or "+this.indentStack[0]+" spaces/tabs."),C++,this.indentStack.shift();for(;C--;)this.colno=1,g=this.tok("outdent"),this.colno=this.indentStack[0]+1,this.tokens.push(this.tokEnd(g))}else D&&D!=this.indentStack[0]?(g=this.tok("indent",D),this.colno=1+D,this.tokens.push(this.tokEnd(g)),this.indentStack.unshift(D)):(g=this.tok("newline"),this.colno=1+Math.min(this.indentStack[0]||0,D),this.tokens.push(this.tokEnd(g)));return this.interpolationAllowed=!0,!0}},pipelessText:function f(g){for(;this.callLexerFunction("blank"););var D=this.scanIndentation();if(g=g||D&&D[1].length,g>this.indentStack[0]){this.tokens.push(this.tokEnd(this.tok("start-pipeless-text")));var C=[],S=[],k,_=0;do{var O=this.input.substr(_+1).indexOf(`
|
|
39
39
|
`);O==-1&&(O=this.input.length-_-1);var j=this.input.substr(_+1,O),W=this.indentRe.exec(`
|
|
40
|
-
`+j),
|
|
40
|
+
`+j),z=W&&W[1].length;if(k=z>=g,S.push(k),k=k||!j.trim(),k)_+=j.length+1,C.push(j.substr(g));else if(z>this.indentStack[0])return this.tokens.pop(),f.call(this,W[1].length)}while(this.input.length-_&&k);for(this.consume(_);this.input.length===0&&C[C.length-1]==="";)C.pop();return C.forEach(function(Q,ee){var ye;this.incrementLine(1),ee!==0&&(ye=this.tok("newline")),S[ee]&&this.incrementColumn(g),ye&&this.tokens.push(this.tokEnd(ye)),this.addText("text",Q)}.bind(this)),this.tokens.push(this.tokEnd(this.tok("end-pipeless-text"))),!0}},slash:function(){var f=this.scan(/^\//,"slash");if(f)return this.tokens.push(this.tokEnd(f)),!0},colon:function(){var f=this.scan(/^: +/,":");if(f)return this.tokens.push(this.tokEnd(f)),!0},fail:function(){this.error("UNEXPECTED_TEXT",'unexpected text "'+this.input.substr(0,5)+'"')},callLexerFunction:function(f){for(var g=[],D=1;D<arguments.length;D++)g.push(arguments[D]);for(var C=[this].concat(g),D=0;D<this.plugins.length;D++){var S=this.plugins[D];if(S[f]&&S[f].apply(S,C))return!0}return this[f].apply(this,g)},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 uf=ge(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.createLogger=er.Logger=er.LogLevel=void 0;var tr;(function(f){f[f.DEBUG=0]="DEBUG",f[f.LOG=1]="LOG",f[f.INFO=2]="INFO",f[f.WARN=3]="WARN",f[f.ERROR=4]="ERROR",f[f.OFF=5]="OFF"})(tr=er.LogLevel||(er.LogLevel={}));var ts=class{constructor(g=console,D=tr.INFO){this.logger=g,this.level=D}setLogLevel(g){this.level=g}isDebugEnabled(){return this.level<=tr.DEBUG}debug(g,...D){this.message(tr.DEBUG,g,...D)}log(g,...D){this.message(tr.LOG,g,...D)}info(g,...D){this.message(tr.INFO,g,...D)}warn(g,...D){this.message(tr.WARN,g,...D)}error(g,...D){this.message(tr.ERROR,g,...D)}message(g,D,...C){if(this.level!==tr.OFF&&this.level<=g){let S=ts.LOG_LEVELS[g];S&&this.logger[S](D,...C)}}};er.Logger=ts;ts.LOG_LEVELS=["debug","log","info","warn","error"];function nT(f=console){return new ts(f)}er.createLogger=nT});var ED=ge(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.PUG_SORT_ATTRIBUTES_OPTION=Fr.PUG_SORT_ATTRIBUTES_END_OPTION=Fr.PUG_SORT_ATTRIBUTES_BEGINNING_OPTION=void 0;var DD=Lt(),bD={since:"1.7.0",category:DD.CATEGORY_PUG,type:"path",array:!0,default:[{value:[]}],description:""};Fr.PUG_SORT_ATTRIBUTES_BEGINNING_OPTION={...bD,description:"Define a list of patterns for attributes that are sorted to the beginning."};Fr.PUG_SORT_ATTRIBUTES_END_OPTION={...bD,description:"Define a list of patterns for attributes that are sorted at the end."};Fr.PUG_SORT_ATTRIBUTES_OPTION={since:"1.8.0",category:DD.CATEGORY_PUG,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."}]}});var vD=ge(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.PUG_BRACKET_SAME_LINE_OPTION=ht.PUG_ARROW_PARENS_OPTION=ht.PUG_SEMI_OPTION=ht.PUG_BRACKET_SPACING_OPTION=ht.PUG_USE_TABS_OPTION=ht.PUG_TAB_WIDTH_OPTION=ht.PUG_SINGLE_QUOTE_OPTION=ht.PUG_PRINT_WIDTH_OPTION=void 0;var Tr=Lt();ht.PUG_PRINT_WIDTH_OPTION={since:"1.6.0",category:Tr.CATEGORY_PUG,type:"int",default:-1,description:"The line length where Prettier will try wrap.",range:{start:-1,end:Infinity,step:1}};ht.PUG_SINGLE_QUOTE_OPTION={since:"1.6.0",category:Tr.CATEGORY_PUG,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."}]};ht.PUG_TAB_WIDTH_OPTION={since:"1.6.0",category:Tr.CATEGORY_PUG,type:"int",default:-1,description:"Number of spaces per indentation level.",range:{start:-1,end:Infinity,step:1}};ht.PUG_USE_TABS_OPTION={since:"1.6.0",category:Tr.CATEGORY_PUG,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."}]};ht.PUG_BRACKET_SPACING_OPTION={since:"1.6.0",category:Tr.CATEGORY_PUG,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."}]};ht.PUG_SEMI_OPTION={since:"1.6.0",category:Tr.CATEGORY_PUG,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."}]};ht.PUG_ARROW_PARENS_OPTION={since:"1.7.0",category:Tr.CATEGORY_PUG,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`"}]};ht.PUG_BRACKET_SAME_LINE_OPTION={since:"1.17.0",category:Tr.CATEGORY_PUG,type:"choice",default:null,description:"Determines position of closing bracket which wraps attributes.",choices:[{value:null,description:"Use `bracketSameLine` value."},{value:!0,description:`
|
|
41
41
|
Closing bracket remains with last attribute's line.
|
|
42
42
|
Example:
|
|
43
43
|
input(
|
|
@@ -65,13 +65,13 @@ var pluginPug=(()=>{var ge=(f,g)=>()=>(g||f((g={exports:{}}).exports,g),g.export
|
|
|
65
65
|
alt='my_alt',
|
|
66
66
|
autocomplete='on'
|
|
67
67
|
)
|
|
68
|
-
`}]}});var CD=ge(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.PUG_EMPTY_ATTRIBUTES_FORCE_QUOTES_OPTION=ns.PUG_EMPTY_ATTRIBUTES_OPTION=void 0;var vD=Gt();ns.PUG_EMPTY_ATTRIBUTES_OPTION={since:"1.10.0",category:vD.CATEGORY_PUG,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."}]};ns.PUG_EMPTY_ATTRIBUTES_FORCE_QUOTES_OPTION={since:"1.10.0",category:vD.CATEGORY_PUG,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.'}});var uf=ge(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.resolvePugAttributeSeparatorOption=rs.PUG_ATTRIBUTE_SEPARATOR_OPTION=void 0;var tT=Gt();rs.PUG_ATTRIBUTE_SEPARATOR_OPTION={since:"1.6.0",category:tT.CATEGORY_PUG,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 nT(f){switch(f){case"always":case"as-needed":case"none":return f}throw new Error(`Invalid option for pugAttributeSeparator. Found '${f}'. Possible options: 'always', 'as-needed' or 'none'`)}rs.resolvePugAttributeSeparatorOption=nT});var xD=ge(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.PUG_CLASS_NOTATION=void 0;var rT=Gt();mo.PUG_CLASS_NOTATION={since:"1.13.0",category:rT.CATEGORY_PUG,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."}]}});var of=ge(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.formatPugCommentPreserveSpaces=is.PUG_COMMENT_PRESERVE_SPACES_OPTION=void 0;var iT=Gt();is.PUG_COMMENT_PRESERVE_SPACES_OPTION={since:"1.6.0",category:iT.CATEGORY_PUG,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 sT(f,g,D=!1){switch(g){case"keep-leading":{let C="",S=0;for(S;S<f.length&&f[S]===" ";S++)C+=" ";return C+=f.slice(S).trim().replace(/\s\s+/g," "),C}case"trim-all":{let C=f.trim();return C=C.replace(/\s\s+/g," "),!D&&f[0]===" "&&(C=` ${C}`),C}case"keep-all":default:return f}}is.formatPugCommentPreserveSpaces=sT});var AD=ge(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.PUG_EXPLICIT_DIV=void 0;var aT=Gt();yo.PUG_EXPLICIT_DIV={since:"1.16.0",category:aT.CATEGORY_PUG,type:"boolean",default:!1,description:"Include `div` tag when followed by literal class or id syntax"}});var SD=ge(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.PUG_FRAMEWORK=void 0;var uT=Gt();Do.PUG_FRAMEWORK={since:"1.14.0",category:uT.CATEGORY_PUG,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."}]}});var wD=ge(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.PUG_ID_NOTATION=void 0;var oT=Gt();bo.PUG_ID_NOTATION={since:"1.13.0",category:oT.CATEGORY_PUG,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."}]}});var FD=ge(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.PUG_SINGLE_FILE_COMPONENT_INDENTATION=void 0;var lT=Gt();Eo.PUG_SINGLE_FILE_COMPONENT_INDENTATION={since:"1.9.0",category:lT.CATEGORY_PUG,type:"boolean",default:!1,description:"Indent pug in template tags in single file components such as from vue or svelte."}});var kD=ge(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.PUG_WRAP_ATTRIBUTES_PATTERN=ss.PUG_WRAP_ATTRIBUTES_THRESHOLD=void 0;var TD=Gt();ss.PUG_WRAP_ATTRIBUTES_THRESHOLD={since:"1.8.0",category:TD.CATEGORY_PUG,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:Infinity,step:1}};ss.PUG_WRAP_ATTRIBUTES_PATTERN={since:"1.8.0",category:TD.CATEGORY_PUG,type:"path",default:"",description:"Regex pattern to match attributes against that should always trigger wrapping."}});var Gt=ge(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.options=as.CATEGORY_PUG=void 0;var lf=bD(),kr=ED(),_D=CD(),cT=uf(),pT=xD(),fT=of(),hT=AD(),dT=SD(),gT=wD(),mT=FD(),PD=kD();as.CATEGORY_PUG="Pug";as.options={pugPrintWidth:kr.PUG_PRINT_WIDTH_OPTION,pugSingleQuote:kr.PUG_SINGLE_QUOTE_OPTION,pugTabWidth:kr.PUG_TAB_WIDTH_OPTION,pugUseTabs:kr.PUG_USE_TABS_OPTION,pugBracketSpacing:kr.PUG_BRACKET_SPACING_OPTION,pugArrowParens:kr.PUG_ARROW_PARENS_OPTION,pugSemi:kr.PUG_SEMI_OPTION,pugBracketSameLine:kr.PUG_BRACKET_SAME_LINE_OPTION,pugAttributeSeparator:cT.PUG_ATTRIBUTE_SEPARATOR_OPTION,pugCommentPreserveSpaces:fT.PUG_COMMENT_PRESERVE_SPACES_OPTION,pugSortAttributes:lf.PUG_SORT_ATTRIBUTES_OPTION,pugSortAttributesBeginning:lf.PUG_SORT_ATTRIBUTES_BEGINNING_OPTION,pugSortAttributesEnd:lf.PUG_SORT_ATTRIBUTES_END_OPTION,pugWrapAttributesThreshold:PD.PUG_WRAP_ATTRIBUTES_THRESHOLD,pugWrapAttributesPattern:PD.PUG_WRAP_ATTRIBUTES_PATTERN,pugEmptyAttributes:_D.PUG_EMPTY_ATTRIBUTES_OPTION,pugClassNotation:pT.PUG_CLASS_NOTATION,pugIdNotation:gT.PUG_ID_NOTATION,pugExplicitDiv:hT.PUG_EXPLICIT_DIV,pugEmptyAttributesForceQuotes:_D.PUG_EMPTY_ATTRIBUTES_FORCE_QUOTES_OPTION,pugSingleFileComponentIndentation:mT.PUG_SINGLE_FILE_COMPONENT_INDENTATION,pugFramework:dT.PUG_FRAMEWORK}});var BD=ge(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.convergeOptions=void 0;function yT(f){var g,D,C,S,k,_;return{printWidth:f.printWidth,pugPrintWidth:f.pugPrintWidth!==-1?f.pugPrintWidth:f.printWidth,singleQuote:f.singleQuote,pugSingleQuote:(g=f.pugSingleQuote)!==null&&g!==void 0?g:f.singleQuote,tabWidth:f.tabWidth,pugTabWidth:f.pugTabWidth!==-1?f.pugTabWidth:f.tabWidth,useTabs:f.useTabs,pugUseTabs:(D=f.pugUseTabs)!==null&&D!==void 0?D:f.useTabs,bracketSpacing:f.bracketSpacing,pugBracketSpacing:(C=f.pugBracketSpacing)!==null&&C!==void 0?C:f.bracketSpacing,arrowParens:f.arrowParens,pugArrowParens:(S=f.pugArrowParens)!==null&&S!==void 0?S:f.arrowParens,semi:f.semi,pugSemi:(k=f.pugSemi)!==null&&k!==void 0?k:f.semi,bracketSameLine:f.bracketSameLine,pugBracketSameLine:(_=f.pugBracketSameLine)!==null&&_!==void 0?_:f.bracketSameLine,pugAttributeSeparator:f.pugAttributeSeparator,pugCommentPreserveSpaces:f.pugCommentPreserveSpaces,pugSortAttributes:f.pugSortAttributes,pugSortAttributesBeginning:f.pugSortAttributesBeginning,pugSortAttributesEnd:f.pugSortAttributesEnd,pugWrapAttributesThreshold:f.pugWrapAttributesThreshold,pugWrapAttributesPattern:f.pugWrapAttributesPattern,pugClassNotation:f.pugClassNotation,pugIdNotation:f.pugIdNotation,pugEmptyAttributes:f.pugEmptyAttributes,pugEmptyAttributesForceQuotes:f.pugEmptyAttributesForceQuotes,pugSingleFileComponentIndentation:f.pugSingleFileComponentIndentation&&f.__embeddedInHtml===!0,pugFramework:f.pugFramework,pugExplicitDiv:f.pugExplicitDiv}}vo.convergeOptions=yT});var ND=ge((cf,pf)=>{(function(f,g){typeof cf=="object"&&typeof pf!="undefined"?pf.exports=g():typeof define=="function"&&define.amd?define(g):(f=typeof globalThis!="undefined"?globalThis:f||self).prettier=g()})(cf,function(){"use strict";function f(e,t){if(e==null)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function g(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var D={name:"prettier",version:"2.2.1",description:"Prettier is an opinionated code formatter",bin:"./bin/prettier.js",repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",browser:"./standalone.js",unpkg:"./standalone.js",engines:{node:">=10.13.0"},files:["index.js","standalone.js","src","bin"],dependencies:{"@angular/compiler":"10.2.3","@babel/code-frame":"7.10.4","@babel/parser":"7.12.5","@glimmer/syntax":"0.66.0","@iarna/toml":"2.2.5","@typescript-eslint/typescript-estree":"4.8.1","angular-estree-parser":"2.2.1","angular-html-parser":"1.7.1",camelcase:"6.2.0",chalk:"4.1.0","ci-info":"watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540","cjk-regex":"2.0.0",cosmiconfig:"7.0.0",dashify:"2.0.0",diff:"5.0.0",editorconfig:"0.15.3","editorconfig-to-prettier":"0.2.0","escape-string-regexp":"4.0.0",espree:"7.3.0",esutils:"2.0.3","fast-glob":"3.2.4","fast-json-stable-stringify":"2.1.0","find-parent-dir":"0.3.0","flow-parser":"0.138.0","get-stdin":"8.0.0",globby:"11.0.1",graphql:"15.4.0","html-element-attributes":"2.3.0","html-styles":"1.0.0","html-tag-names":"1.1.5","html-void-elements":"1.0.5",ignore:"4.0.6","jest-docblock":"26.0.0",json5:"2.1.3",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.12.1",lodash:"4.17.20",mem:"8.0.0",meriyah:"3.1.6",minimatch:"3.0.4",minimist:"1.2.5","n-readlines":"1.0.1",outdent:"0.7.1","parse-srcset":"ikatyang/parse-srcset#54eb9c1cb21db5c62b4d0e275d7249516df6f0ee","please-upgrade-node":"3.2.0","postcss-less":"3.1.4","postcss-media-query-parser":"0.2.3","postcss-scss":"2.1.1","postcss-selector-parser":"2.2.3","postcss-values-parser":"2.0.1","regexp-util":"1.2.2","remark-footnotes":"2.0.0","remark-math":"3.0.1","remark-parse":"8.0.3",resolve:"1.19.0",semver:"7.3.2","string-width":"4.2.0",typescript:"4.1.2","unicode-regex":"3.0.0",unified:"9.2.0",vnopts:"1.0.2","yaml-unist-parser":"1.3.1"},devDependencies:{"@babel/core":"7.12.3","@babel/preset-env":"7.12.1","@babel/types":"7.12.6","@glimmer/reference":"0.66.0","@rollup/plugin-alias":"3.1.1","@rollup/plugin-babel":"5.2.1","@rollup/plugin-commonjs":"16.0.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@rollup/plugin-replace":"2.3.4","@types/estree":"0.0.45","@types/node":"14.14.0","@typescript-eslint/types":"4.8.1","babel-jest":"26.6.3","babel-loader":"8.2.1",benchmark:"2.1.4","builtin-modules":"3.1.0","cross-env":"7.0.2",cspell:"4.2.2",eslint:"7.13.0","eslint-config-prettier":"6.15.0","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.22.1","eslint-plugin-jest":"24.1.3","eslint-plugin-prettier-internal-rules":"file:scripts/tools/eslint-plugin-prettier-internal-rules","eslint-plugin-react":"7.21.5","eslint-plugin-unicorn":"23.0.0",execa:"4.1.0",jest:"26.6.3","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.1.0","jest-watch-typeahead":"0.6.1","npm-run-all":"4.1.5","path-browserify":"1.0.1",prettier:"2.2.0",rimraf:"3.0.2",rollup:"2.33.3","rollup-plugin-node-globals":"1.4.0","rollup-plugin-terser":"7.0.2",shelljs:"0.8.4","snapshot-diff":"0.8.1","strip-ansi":"6.0.0","synchronous-promise":"2.0.15",tempy:"1.0.0","terser-webpack-plugin":"5.0.3",webpack:"5.5.1"},scripts:{prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dev-package":"cross-env INSTALL_PACKAGE=1 jest","test:dist":"cross-env NODE_ENV=production jest","test:dist-standalone":"cross-env NODE_ENV=production TEST_STANDALONE=1 jest","test:integration":"jest tests_integration","perf:repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",lint:"run-p lint:*","lint:typecheck":"tsc","lint:eslint":"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint:changelog":"node ./scripts/lint-changelog.js","lint:prettier":'prettier . "!test*" --check',"lint:dist":'eslint --no-eslintrc --no-ignore --env=es6,browser --parser-options=ecmaVersion:2018 "dist/!(bin-prettier|index|third-party).js"',"lint:spellcheck":'cspell "**/*" ".github/**/*"',"lint:deps":"node ./scripts/check-deps.js",fix:"run-s fix:eslint fix:prettier","fix:eslint":"yarn lint:eslint --fix","fix:prettier":"yarn lint:prettier --write",build:"node --max-old-space-size=3072 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js"}};function C(){}function S(e,t,r,n,i){for(var s=0,l=t.length,a=0,c=0;s<l;s++){var p=t[s];if(p.removed){if(p.value=e.join(n.slice(c,c+p.count)),c+=p.count,s&&t[s-1].added){var u=t[s-1];t[s-1]=t[s],t[s]=u}}else{if(!p.added&&i){var d=r.slice(a,a+p.count);d=d.map(function(b,m){var x=n[c+m];return x.length>b.length?x:b}),p.value=e.join(d)}else p.value=e.join(r.slice(a,a+p.count));a+=p.count,p.added||(c+=p.count)}}var h=t[l-1];return l>1&&typeof h.value=="string"&&(h.added||h.removed)&&e.equals("",h.value)&&(t[l-2].value+=h.value,t.pop()),t}function k(e){return{newPos:e.newPos,components:e.components.slice(0)}}C.prototype={diff:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.callback;typeof r=="function"&&(n=r,r={}),this.options=r;var i=this;function s(m){return n?(setTimeout(function(){n(void 0,m)},0),!0):m}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,a=e.length,c=1,p=l+a,u=[{newPos:-1,components:[]}],d=this.extractCommon(u[0],t,e,0);if(u[0].newPos+1>=l&&d+1>=a)return s([{value:this.join(t),count:t.length}]);function h(){for(var m=-1*c;m<=c;m+=2){var x=void 0,F=u[m-1],E=u[m+1],A=(E?E.newPos:0)-m;F&&(u[m-1]=void 0);var P=F&&F.newPos+1<l,L=E&&0<=A&&A<a;if(P||L){if(!P||L&&F.newPos<E.newPos?(x=k(E),i.pushComponent(x.components,void 0,!0)):((x=F).newPos++,i.pushComponent(x.components,!0,void 0)),A=i.extractCommon(x,t,e,m),x.newPos+1>=l&&A+1>=a)return s(S(i,x.components,t,e,i.useLongestToken));u[m]=x}else u[m]=void 0}c++}if(n)(function m(){setTimeout(function(){if(c>p)return n();h()||m()},0)})();else for(;c<=p;){var b=h();if(b)return b}},pushComponent:function(e,t,r){var n=e[e.length-1];n&&n.added===t&&n.removed===r?e[e.length-1]={count:n.count+1,added:t,removed:r}:e.push({count:1,added:t,removed:r})},extractCommon:function(e,t,r,n){for(var i=t.length,s=r.length,l=e.newPos,a=l-n,c=0;l+1<i&&a+1<s&&this.equals(t[l+1],r[a+1]);)l++,a++,c++;return c&&e.components.push({count:c}),e.newPos=l,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var _=new C;function O(e,t){if(typeof e=="function")t.callback=e;else if(e)for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}var j=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,W=/\S/,X=new C;X.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!W.test(e)&&!W.test(t)},X.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<t.length-1;r++)!t[r+1]&&t[r+2]&&j.test(t[r])&&j.test(t[r+2])&&(t[r]+=t[r+2],t.splice(r+1,2),r--);return t};var se=new C;function re(e,t,r){return se.diff(e,t,r)}se.tokenize=function(e){var t=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var n=0;n<r.length;n++){var i=r[n];n%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var me=new C;me.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var le=new C;function _e(e){return(_e=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 Ue(e){return function(t){if(Array.isArray(t))return Xe(t)}(e)||function(t){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}(e)||function(t,r){if(!!t){if(typeof t=="string")return Xe(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xe(t,r)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
69
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function
|
|
70
|
-
`),m==="+"?h++:m==="-"?b++:m===" "&&(h++,b++)}if(h||d.newLines!==1||(d.newLines=0),b||d.oldLines!==1||(d.oldLines=0),t.strict){if(h!==d.newLines)throw new Error("Added line count did not match for hunk at line "+(p+1));if(b!==d.oldLines)throw new Error("Removed line count did not match for hunk at line "+(p+1))}return d}for(;s<r.length;)l();return i}function rr(e,t,r){var n=!0,i=!1,s=!1,l=1;return function a(){if(n&&!s){if(i?l++:n=!1,e+l<=r)return l;s=!0}if(!i)return s||(n=!0),t<=e-l?-l++:(i=!0,a())}}function ci(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string"&&(t=sn(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var n,i,s=e.split(/\r\n|[\n\v\f\r\x85]/),l=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=t.hunks,c=r.compareLine||function(je,Ve,nn,Ot){return Ve===Ot},p=0,u=r.fuzzFactor||0,d=0,h=0;function b(je,Ve){for(var nn=0;nn<je.lines.length;nn++){var Ot=je.lines[nn]
|
|
71
|
-
`));for(var xe=0;xe<s.length-1;xe++)s[xe]=s[xe]+l[xe];return s.join("")}function yt(e,t,r,n,i,s,l){l||(l={}),l.context===void 0&&(l.context=4);var a=
|
|
72
|
-
`);if(A.lines=P,A.added||A.removed){var L;if(!u){var N=a[E-1];u=b,d=m,N&&(h=l.context>0?c(N.lines.slice(-l.context)):[],u-=h.length,d-=h.length)}(L=h).push.apply(L,Ue(P.map(function(Ae){return(A.added?"+":"-")+Ae}))),A.added?m+=P.length:b+=P.length}else{if(u)if(P.length<=2*l.context&&E<a.length-2){var R;(R=h).push.apply(R,Ue(c(P)))}else{var U,
|
|
68
|
+
`}]}});var xD=ge(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.PUG_EMPTY_ATTRIBUTES_FORCE_QUOTES_OPTION=ns.PUG_EMPTY_ATTRIBUTES_OPTION=void 0;var CD=Lt();ns.PUG_EMPTY_ATTRIBUTES_OPTION={since:"1.10.0",category:CD.CATEGORY_PUG,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."}]};ns.PUG_EMPTY_ATTRIBUTES_FORCE_QUOTES_OPTION={since:"1.10.0",category:CD.CATEGORY_PUG,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.'}});var of=ge(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.resolvePugAttributeSeparatorOption=rs.PUG_ATTRIBUTE_SEPARATOR_OPTION=void 0;var rT=Lt();rs.PUG_ATTRIBUTE_SEPARATOR_OPTION={since:"1.6.0",category:rT.CATEGORY_PUG,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 iT(f){switch(f){case"always":case"as-needed":case"none":return f}throw new Error(`Invalid option for pugAttributeSeparator. Found '${f}'. Possible options: 'always', 'as-needed' or 'none'`)}rs.resolvePugAttributeSeparatorOption=iT});var AD=ge(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.PUG_CLASS_LOCATION=void 0;var sT=Lt();mo.PUG_CLASS_LOCATION={since:"1.19.0",category:sT.CATEGORY_PUG,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."}]}});var SD=ge(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.PUG_CLASS_NOTATION=void 0;var aT=Lt();yo.PUG_CLASS_NOTATION={since:"1.13.0",category:aT.CATEGORY_PUG,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."}]}});var lf=ge(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.formatPugCommentPreserveSpaces=is.PUG_COMMENT_PRESERVE_SPACES_OPTION=void 0;var uT=Lt();is.PUG_COMMENT_PRESERVE_SPACES_OPTION={since:"1.6.0",category:uT.CATEGORY_PUG,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 oT(f,g,D=!1){switch(g){case"keep-leading":{let C="",S=0;for(S;S<f.length&&f[S]===" ";S++)C+=" ";return C+=f.slice(S).trim().replace(/\s\s+/g," "),C}case"trim-all":{let C=f.trim();return C=C.replace(/\s\s+/g," "),!D&&f[0]===" "&&(C=` ${C}`),C}case"keep-all":default:return f}}is.formatPugCommentPreserveSpaces=oT});var wD=ge(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.PUG_EXPLICIT_DIV=void 0;var lT=Lt();Do.PUG_EXPLICIT_DIV={since:"1.16.0",category:lT.CATEGORY_PUG,type:"boolean",default:!1,description:"Include `div` tag when followed by literal class or id syntax"}});var FD=ge(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.PUG_FRAMEWORK=void 0;var cT=Lt();bo.PUG_FRAMEWORK={since:"1.14.0",category:cT.CATEGORY_PUG,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."}]}});var TD=ge(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.PUG_ID_NOTATION=void 0;var pT=Lt();Eo.PUG_ID_NOTATION={since:"1.13.0",category:pT.CATEGORY_PUG,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."}]}});var kD=ge(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.PUG_SINGLE_FILE_COMPONENT_INDENTATION=void 0;var fT=Lt();vo.PUG_SINGLE_FILE_COMPONENT_INDENTATION={since:"1.9.0",category:fT.CATEGORY_PUG,type:"boolean",default:!1,description:"Indent pug in template tags in single file components such as from vue or svelte."}});var PD=ge(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.PUG_WRAP_ATTRIBUTES_PATTERN=ss.PUG_WRAP_ATTRIBUTES_THRESHOLD=void 0;var _D=Lt();ss.PUG_WRAP_ATTRIBUTES_THRESHOLD={since:"1.8.0",category:_D.CATEGORY_PUG,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:Infinity,step:1}};ss.PUG_WRAP_ATTRIBUTES_PATTERN={since:"1.8.0",category:_D.CATEGORY_PUG,type:"path",default:"",description:"Regex pattern to match attributes against that should always trigger wrapping."}});var Lt=ge(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.options=as.CATEGORY_PUG=void 0;var cf=ED(),kr=vD(),BD=xD(),hT=of(),dT=AD(),gT=SD(),mT=lf(),yT=wD(),DT=FD(),bT=TD(),ET=kD(),ND=PD();as.CATEGORY_PUG="Pug";as.options={pugPrintWidth:kr.PUG_PRINT_WIDTH_OPTION,pugSingleQuote:kr.PUG_SINGLE_QUOTE_OPTION,pugTabWidth:kr.PUG_TAB_WIDTH_OPTION,pugUseTabs:kr.PUG_USE_TABS_OPTION,pugBracketSpacing:kr.PUG_BRACKET_SPACING_OPTION,pugArrowParens:kr.PUG_ARROW_PARENS_OPTION,pugSemi:kr.PUG_SEMI_OPTION,pugBracketSameLine:kr.PUG_BRACKET_SAME_LINE_OPTION,pugAttributeSeparator:hT.PUG_ATTRIBUTE_SEPARATOR_OPTION,pugCommentPreserveSpaces:mT.PUG_COMMENT_PRESERVE_SPACES_OPTION,pugSortAttributes:cf.PUG_SORT_ATTRIBUTES_OPTION,pugSortAttributesBeginning:cf.PUG_SORT_ATTRIBUTES_BEGINNING_OPTION,pugSortAttributesEnd:cf.PUG_SORT_ATTRIBUTES_END_OPTION,pugWrapAttributesThreshold:ND.PUG_WRAP_ATTRIBUTES_THRESHOLD,pugWrapAttributesPattern:ND.PUG_WRAP_ATTRIBUTES_PATTERN,pugEmptyAttributes:BD.PUG_EMPTY_ATTRIBUTES_OPTION,pugClassNotation:gT.PUG_CLASS_NOTATION,pugIdNotation:bT.PUG_ID_NOTATION,pugClassLocation:dT.PUG_CLASS_LOCATION,pugExplicitDiv:yT.PUG_EXPLICIT_DIV,pugEmptyAttributesForceQuotes:BD.PUG_EMPTY_ATTRIBUTES_FORCE_QUOTES_OPTION,pugSingleFileComponentIndentation:ET.PUG_SINGLE_FILE_COMPONENT_INDENTATION,pugFramework:DT.PUG_FRAMEWORK}});var OD=ge(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.convergeOptions=void 0;function vT(f){var g,D,C,S,k,_;return{printWidth:f.printWidth,pugPrintWidth:f.pugPrintWidth!==-1?f.pugPrintWidth:f.printWidth,singleQuote:f.singleQuote,pugSingleQuote:(g=f.pugSingleQuote)!==null&&g!==void 0?g:f.singleQuote,tabWidth:f.tabWidth,pugTabWidth:f.pugTabWidth!==-1?f.pugTabWidth:f.tabWidth,useTabs:f.useTabs,pugUseTabs:(D=f.pugUseTabs)!==null&&D!==void 0?D:f.useTabs,bracketSpacing:f.bracketSpacing,pugBracketSpacing:(C=f.pugBracketSpacing)!==null&&C!==void 0?C:f.bracketSpacing,arrowParens:f.arrowParens,pugArrowParens:(S=f.pugArrowParens)!==null&&S!==void 0?S:f.arrowParens,semi:f.semi,pugSemi:(k=f.pugSemi)!==null&&k!==void 0?k:f.semi,bracketSameLine:f.bracketSameLine,pugBracketSameLine:(_=f.pugBracketSameLine)!==null&&_!==void 0?_:f.bracketSameLine,pugAttributeSeparator:f.pugAttributeSeparator,pugCommentPreserveSpaces:f.pugCommentPreserveSpaces,pugSortAttributes:f.pugSortAttributes,pugSortAttributesBeginning:f.pugSortAttributesBeginning,pugSortAttributesEnd:f.pugSortAttributesEnd,pugWrapAttributesThreshold:f.pugWrapAttributesThreshold,pugWrapAttributesPattern:f.pugWrapAttributesPattern,pugClassNotation:f.pugClassNotation,pugIdNotation:f.pugIdNotation,pugClassLocation:f.pugClassLocation,pugEmptyAttributes:f.pugEmptyAttributes,pugEmptyAttributesForceQuotes:f.pugEmptyAttributesForceQuotes,pugSingleFileComponentIndentation:f.pugSingleFileComponentIndentation&&f.__embeddedInHtml===!0,pugFramework:f.pugFramework,pugExplicitDiv:f.pugExplicitDiv}}Co.convergeOptions=vT});var ID=ge((pf,ff)=>{(function(f,g){typeof pf=="object"&&typeof ff!="undefined"?ff.exports=g():typeof define=="function"&&define.amd?define(g):(f=typeof globalThis!="undefined"?globalThis:f||self).prettier=g()})(pf,function(){"use strict";function f(e,t){if(e==null)return{};var r,n,i={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function g(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var D={name:"prettier",version:"2.2.1",description:"Prettier is an opinionated code formatter",bin:"./bin/prettier.js",repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",browser:"./standalone.js",unpkg:"./standalone.js",engines:{node:">=10.13.0"},files:["index.js","standalone.js","src","bin"],dependencies:{"@angular/compiler":"10.2.3","@babel/code-frame":"7.10.4","@babel/parser":"7.12.5","@glimmer/syntax":"0.66.0","@iarna/toml":"2.2.5","@typescript-eslint/typescript-estree":"4.8.1","angular-estree-parser":"2.2.1","angular-html-parser":"1.7.1",camelcase:"6.2.0",chalk:"4.1.0","ci-info":"watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540","cjk-regex":"2.0.0",cosmiconfig:"7.0.0",dashify:"2.0.0",diff:"5.0.0",editorconfig:"0.15.3","editorconfig-to-prettier":"0.2.0","escape-string-regexp":"4.0.0",espree:"7.3.0",esutils:"2.0.3","fast-glob":"3.2.4","fast-json-stable-stringify":"2.1.0","find-parent-dir":"0.3.0","flow-parser":"0.138.0","get-stdin":"8.0.0",globby:"11.0.1",graphql:"15.4.0","html-element-attributes":"2.3.0","html-styles":"1.0.0","html-tag-names":"1.1.5","html-void-elements":"1.0.5",ignore:"4.0.6","jest-docblock":"26.0.0",json5:"2.1.3",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.12.1",lodash:"4.17.20",mem:"8.0.0",meriyah:"3.1.6",minimatch:"3.0.4",minimist:"1.2.5","n-readlines":"1.0.1",outdent:"0.7.1","parse-srcset":"ikatyang/parse-srcset#54eb9c1cb21db5c62b4d0e275d7249516df6f0ee","please-upgrade-node":"3.2.0","postcss-less":"3.1.4","postcss-media-query-parser":"0.2.3","postcss-scss":"2.1.1","postcss-selector-parser":"2.2.3","postcss-values-parser":"2.0.1","regexp-util":"1.2.2","remark-footnotes":"2.0.0","remark-math":"3.0.1","remark-parse":"8.0.3",resolve:"1.19.0",semver:"7.3.2","string-width":"4.2.0",typescript:"4.1.2","unicode-regex":"3.0.0",unified:"9.2.0",vnopts:"1.0.2","yaml-unist-parser":"1.3.1"},devDependencies:{"@babel/core":"7.12.3","@babel/preset-env":"7.12.1","@babel/types":"7.12.6","@glimmer/reference":"0.66.0","@rollup/plugin-alias":"3.1.1","@rollup/plugin-babel":"5.2.1","@rollup/plugin-commonjs":"16.0.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"10.0.0","@rollup/plugin-replace":"2.3.4","@types/estree":"0.0.45","@types/node":"14.14.0","@typescript-eslint/types":"4.8.1","babel-jest":"26.6.3","babel-loader":"8.2.1",benchmark:"2.1.4","builtin-modules":"3.1.0","cross-env":"7.0.2",cspell:"4.2.2",eslint:"7.13.0","eslint-config-prettier":"6.15.0","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.22.1","eslint-plugin-jest":"24.1.3","eslint-plugin-prettier-internal-rules":"file:scripts/tools/eslint-plugin-prettier-internal-rules","eslint-plugin-react":"7.21.5","eslint-plugin-unicorn":"23.0.0",execa:"4.1.0",jest:"26.6.3","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.1.0","jest-watch-typeahead":"0.6.1","npm-run-all":"4.1.5","path-browserify":"1.0.1",prettier:"2.2.0",rimraf:"3.0.2",rollup:"2.33.3","rollup-plugin-node-globals":"1.4.0","rollup-plugin-terser":"7.0.2",shelljs:"0.8.4","snapshot-diff":"0.8.1","strip-ansi":"6.0.0","synchronous-promise":"2.0.15",tempy:"1.0.0","terser-webpack-plugin":"5.0.3",webpack:"5.5.1"},scripts:{prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dev-package":"cross-env INSTALL_PACKAGE=1 jest","test:dist":"cross-env NODE_ENV=production jest","test:dist-standalone":"cross-env NODE_ENV=production TEST_STANDALONE=1 jest","test:integration":"jest tests_integration","perf:repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",lint:"run-p lint:*","lint:typecheck":"tsc","lint:eslint":"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint:changelog":"node ./scripts/lint-changelog.js","lint:prettier":'prettier . "!test*" --check',"lint:dist":'eslint --no-eslintrc --no-ignore --env=es6,browser --parser-options=ecmaVersion:2018 "dist/!(bin-prettier|index|third-party).js"',"lint:spellcheck":'cspell "**/*" ".github/**/*"',"lint:deps":"node ./scripts/check-deps.js",fix:"run-s fix:eslint fix:prettier","fix:eslint":"yarn lint:eslint --fix","fix:prettier":"yarn lint:prettier --write",build:"node --max-old-space-size=3072 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js"}};function C(){}function S(e,t,r,n,i){for(var s=0,l=t.length,a=0,c=0;s<l;s++){var p=t[s];if(p.removed){if(p.value=e.join(n.slice(c,c+p.count)),c+=p.count,s&&t[s-1].added){var u=t[s-1];t[s-1]=t[s],t[s]=u}}else{if(!p.added&&i){var d=r.slice(a,a+p.count);d=d.map(function(b,m){var x=n[c+m];return x.length>b.length?x:b}),p.value=e.join(d)}else p.value=e.join(r.slice(a,a+p.count));a+=p.count,p.added||(c+=p.count)}}var h=t[l-1];return l>1&&typeof h.value=="string"&&(h.added||h.removed)&&e.equals("",h.value)&&(t[l-2].value+=h.value,t.pop()),t}function k(e){return{newPos:e.newPos,components:e.components.slice(0)}}C.prototype={diff:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.callback;typeof r=="function"&&(n=r,r={}),this.options=r;var i=this;function s(m){return n?(setTimeout(function(){n(void 0,m)},0),!0):m}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,a=e.length,c=1,p=l+a,u=[{newPos:-1,components:[]}],d=this.extractCommon(u[0],t,e,0);if(u[0].newPos+1>=l&&d+1>=a)return s([{value:this.join(t),count:t.length}]);function h(){for(var m=-1*c;m<=c;m+=2){var x=void 0,F=u[m-1],E=u[m+1],A=(E?E.newPos:0)-m;F&&(u[m-1]=void 0);var P=F&&F.newPos+1<l,L=E&&0<=A&&A<a;if(P||L){if(!P||L&&F.newPos<E.newPos?(x=k(E),i.pushComponent(x.components,void 0,!0)):((x=F).newPos++,i.pushComponent(x.components,!0,void 0)),A=i.extractCommon(x,t,e,m),x.newPos+1>=l&&A+1>=a)return s(S(i,x.components,t,e,i.useLongestToken));u[m]=x}else u[m]=void 0}c++}if(n)(function m(){setTimeout(function(){if(c>p)return n();h()||m()},0)})();else for(;c<=p;){var b=h();if(b)return b}},pushComponent:function(e,t,r){var n=e[e.length-1];n&&n.added===t&&n.removed===r?e[e.length-1]={count:n.count+1,added:t,removed:r}:e.push({count:1,added:t,removed:r})},extractCommon:function(e,t,r,n){for(var i=t.length,s=r.length,l=e.newPos,a=l-n,c=0;l+1<i&&a+1<s&&this.equals(t[l+1],r[a+1]);)l++,a++,c++;return c&&e.components.push({count:c}),e.newPos=l,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var _=new C;function O(e,t){if(typeof e=="function")t.callback=e;else if(e)for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}var j=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,W=/\S/,z=new C;z.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!W.test(e)&&!W.test(t)},z.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<t.length-1;r++)!t[r+1]&&t[r+2]&&j.test(t[r])&&j.test(t[r+2])&&(t[r]+=t[r+2],t.splice(r+1,2),r--);return t};var Q=new C;function ee(e,t,r){return Q.diff(e,t,r)}Q.tokenize=function(e){var t=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var n=0;n<r.length;n++){var i=r[n];n%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var ye=new C;ye.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var le=new C;function _e(e){return(_e=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 Ue(e){return function(t){if(Array.isArray(t))return Ye(t)}(e)||function(t){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}(e)||function(t,r){if(!!t){if(typeof t=="string")return Ye(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ye(t,r)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
69
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ye(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}le.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var yn=Object.prototype.toString,de=new C;function T(e,t,r,n,i){var s,l;for(t=t||[],r=r||[],n&&(e=n(i,e)),s=0;s<t.length;s+=1)if(t[s]===e)return r[s];if(yn.call(e)==="[object Array]"){for(t.push(e),l=new Array(e.length),r.push(l),s=0;s<e.length;s+=1)l[s]=T(e[s],t,r,n,i);return t.pop(),r.pop(),l}if(e&&e.toJSON&&(e=e.toJSON()),_e(e)==="object"&&e!==null){t.push(e),l={},r.push(l);var a,c=[];for(a in e)e.hasOwnProperty(a)&&c.push(a);for(c.sort(),s=0;s<c.length;s+=1)l[a=c[s]]=T(e[a],t,r,n,a);t.pop(),r.pop()}else l=e;return l}de.useLongestToken=!0,de.tokenize=Q.tokenize,de.castInput=function(e){var t=this.options,r=t.undefinedReplacement,n=t.stringifyReplacer,i=n===void 0?function(s,l){return l===void 0?r:l}:n;return typeof e=="string"?e:JSON.stringify(T(e,null,null,i),i," ")},de.equals=function(e,t){return C.prototype.equals.call(de,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var rt=new C;function sn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.split(/\r\n|[\n\v\f\r\x85]/),n=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],s=0;function l(){var p={};for(i.push(p);s<r.length;){var u=r[s];if(/^(\-\-\-|\+\+\+|@@)\s/.test(u))break;var d=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(u);d&&(p.index=d[1]),s++}for(a(p),a(p),p.hunks=[];s<r.length;){var h=r[s];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(h))break;if(/^@@/.test(h))p.hunks.push(c());else{if(h&&t.strict)throw new Error("Unknown line "+(s+1)+" "+JSON.stringify(h));s++}}}function a(p){var u=/^(---|\+\+\+)\s+(.*)$/.exec(r[s]);if(u){var d=u[1]==="---"?"old":"new",h=u[2].split(" ",2),b=h[0].replace(/\\\\/g,"\\");/^".*"$/.test(b)&&(b=b.substr(1,b.length-2)),p[d+"FileName"]=b,p[d+"Header"]=(h[1]||"").trim(),s++}}function c(){var p=s,u=r[s++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),d={oldStart:+u[1],oldLines:u[2]===void 0?1:+u[2],newStart:+u[3],newLines:u[4]===void 0?1:+u[4],lines:[],linedelimiters:[]};d.oldLines===0&&(d.oldStart+=1),d.newLines===0&&(d.newStart+=1);for(var h=0,b=0;s<r.length&&!(r[s].indexOf("--- ")===0&&s+2<r.length&&r[s+1].indexOf("+++ ")===0&&r[s+2].indexOf("@@")===0);s++){var m=r[s].length==0&&s!=r.length-1?" ":r[s][0];if(m!=="+"&&m!=="-"&&m!==" "&&m!=="\\")break;d.lines.push(r[s]),d.linedelimiters.push(n[s]||`
|
|
70
|
+
`),m==="+"?h++:m==="-"?b++:m===" "&&(h++,b++)}if(h||d.newLines!==1||(d.newLines=0),b||d.oldLines!==1||(d.oldLines=0),t.strict){if(h!==d.newLines)throw new Error("Added line count did not match for hunk at line "+(p+1));if(b!==d.oldLines)throw new Error("Removed line count did not match for hunk at line "+(p+1))}return d}for(;s<r.length;)l();return i}function rr(e,t,r){var n=!0,i=!1,s=!1,l=1;return function a(){if(n&&!s){if(i?l++:n=!1,e+l<=r)return l;s=!0}if(!i)return s||(n=!0),t<=e-l?-l++:(i=!0,a())}}function ci(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string"&&(t=sn(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var n,i,s=e.split(/\r\n|[\n\v\f\r\x85]/),l=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=t.hunks,c=r.compareLine||function(je,Ve,nn,Ot){return Ve===Ot},p=0,u=r.fuzzFactor||0,d=0,h=0;function b(je,Ve){for(var nn=0;nn<je.lines.length;nn++){var Ot=je.lines[nn],Wt=Ot.length>0?Ot[0]:" ",Ze=Ot.length>0?Ot.substr(1):Ot;if(Wt===" "||Wt==="-"){if(!c(Ve+1,s[Ve],Wt,Ze)&&++p>u)return!1;Ve++}}return!0}for(var m=0;m<a.length;m++){for(var x=a[m],F=s.length-x.oldLines,E=0,A=h+x.oldStart-1,P=rr(A,d,F);E!==void 0;E=P())if(b(x,A+E)){x.offset=h+=E;break}if(E===void 0)return!1;d=x.offset+x.oldStart+x.oldLines}for(var L=0,N=0;N<a.length;N++){var R=a[N],U=R.oldStart+R.offset+L-1;L+=R.newLines-R.oldLines;for(var J=0;J<R.lines.length;J++){var q=R.lines[J],X=q.length>0?q[0]:" ",ne=q.length>0?q.substr(1):q,he=R.linedelimiters[J];if(X===" ")U++;else if(X==="-")s.splice(U,1),l.splice(U,1);else if(X==="+")s.splice(U,0,ne),l.splice(U,0,he),U++;else if(X==="\\"){var Ae=R.lines[J-1]?R.lines[J-1][0]:null;Ae==="+"?n=!0:Ae==="-"&&(i=!0)}}}if(n)for(;!s[s.length-1];)s.pop(),l.pop();else i&&(s.push(""),l.push(`
|
|
71
|
+
`));for(var xe=0;xe<s.length-1;xe++)s[xe]=s[xe]+l[xe];return s.join("")}function yt(e,t,r,n,i,s,l){l||(l={}),l.context===void 0&&(l.context=4);var a=ee(r,n,l);function c(E){return E.map(function(A){return" "+A})}a.push({value:"",lines:[]});for(var p=[],u=0,d=0,h=[],b=1,m=1,x=function(E){var A=a[E],P=A.lines||A.value.replace(/\n$/,"").split(`
|
|
72
|
+
`);if(A.lines=P,A.added||A.removed){var L;if(!u){var N=a[E-1];u=b,d=m,N&&(h=l.context>0?c(N.lines.slice(-l.context)):[],u-=h.length,d-=h.length)}(L=h).push.apply(L,Ue(P.map(function(Ae){return(A.added?"+":"-")+Ae}))),A.added?m+=P.length:b+=P.length}else{if(u)if(P.length<=2*l.context&&E<a.length-2){var R;(R=h).push.apply(R,Ue(c(P)))}else{var U,J=Math.min(P.length,l.context);(U=h).push.apply(U,Ue(c(P.slice(0,J))));var q={oldStart:u,oldLines:b-u+J,newStart:d,newLines:m-d+J,lines:h};if(E>=a.length-2&&P.length<=l.context){var X=/\n$/.test(r),ne=/\n$/.test(n),he=P.length==0&&h.length>q.oldLines;!X&&he&&r.length>0&&h.splice(q.oldLines,0,"\"),(X||he)&&ne||h.push("\")}p.push(q),u=0,d=0,h=[]}b+=P.length,m+=P.length}},F=0;F<a.length;F++)x(F);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:s,hunks:p}}function os(e,t,r,n,i,s,l){return function(a){var c=[];a.oldFileName==a.newFileName&&c.push("Index: "+a.oldFileName),c.push("==================================================================="),c.push("--- "+a.oldFileName+(a.oldHeader===void 0?"":" "+a.oldHeader)),c.push("+++ "+a.newFileName+(a.newHeader===void 0?"":" "+a.newHeader));for(var p=0;p<a.hunks.length;p++){var u=a.hunks[p];u.oldLines===0&&(u.oldStart-=1),u.newLines===0&&(u.newStart-=1),c.push("@@ -"+u.oldStart+","+u.oldLines+" +"+u.newStart+","+u.newLines+" @@"),c.push.apply(c,u.lines)}return c.join(`
|
|
73
73
|
`)+`
|
|
74
|
-
`}(yt(e,t,r,n,i,s,l))}function ls(e,t){if(t.length>e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function Lo(e){var t=fi(e.lines),r=t.oldLines,n=t.newLines;r!==void 0?e.oldLines=r:delete e.oldLines,n!==void 0?e.newLines=n:delete e.newLines}function Nr(e,t){if(typeof e=="string"){if(/^@@/m.test(e)||/^Index:/m.test(e))return sn(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return yt(void 0,void 0,t,e)}return e}function cs(e){return e.newFileName&&e.newFileName!==e.oldFileName}function Ht(e,t,r){return t===r?t:(e.conflict=!0,{mine:t,theirs:r})}function On(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function ir(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function ps(e,t,r,n,i){var s={offset:t,lines:r,index:0},l={offset:n,lines:i,index:0};for(sr(e,s,l),sr(e,l,s);s.index<s.lines.length&&l.index<l.lines.length;){var a=s.lines[s.index],c=l.lines[l.index];if(a[0]!=="-"&&a[0]!=="+"||c[0]!=="-"&&c[0]!=="+")if(a[0]==="+"&&c[0]===" "){var p;(p=e.lines).push.apply(p,Ue(an(s)))}else if(c[0]==="+"&&a[0]===" "){var u;(u=e.lines).push.apply(u,Ue(an(l)))}else a[0]==="-"&&c[0]===" "?ya(e,s,l):c[0]==="-"&&a[0]===" "?ya(e,l,s,!0):a===c?(e.lines.push(a),s.index++,l.index++):fs(e,an(s),an(l));else pi(e,s,l)}ar(e,s),ar(e,l),Lo(e)}function pi(e,t,r){var n=an(t),i=an(r);if(hs(n)&&hs(i)){var s,l;if(ls(n,i)&&ds(r,n,n.length-i.length))return void(s=e.lines).push.apply(s,Ue(n));if(ls(i,n)&&ds(t,i,i.length-n.length))return void(l=e.lines).push.apply(l,Ue(i))}else if(function(c,p){return c.length===p.length&&ls(c,p)}(n,i)){var a;return void(a=e.lines).push.apply(a,Ue(n))}fs(e,n,i)}function ya(e,t,r,n){var i,s=an(t),l=function(a,c){for(var p=[],u=[],d=0,h=!1,b=!1;d<c.length&&a.index<a.lines.length;){var m=a.lines[a.index],x=c[d];if(x[0]==="+")break;if(h=h||m[0]!==" ",u.push(x),d++,m[0]==="+")for(b=!0;m[0]==="+";)p.push(m),m=a.lines[++a.index];x.substr(1)===m.substr(1)?(p.push(m),a.index++):b=!0}if((c[d]||"")[0]==="+"&&h&&(b=!0),b)return p;for(;d<c.length;)u.push(c[d++]);return{merged:u,changes:p}}(r,s);l.merged?(i=e.lines).push.apply(i,Ue(l.merged)):fs(e,n?l:s,n?s:l)}function fs(e,t,r){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:r})}function sr(e,t,r){for(;t.offset<r.offset&&t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n),t.offset++}}function ar(e,t){for(;t.index<t.lines.length;){var r=t.lines[t.index++];e.lines.push(r)}}function an(e){for(var t=[],r=e.lines[e.index][0];e.index<e.lines.length;){var n=e.lines[e.index];if(r==="-"&&n[0]==="+"&&(r="+"),r!==n[0])break;t.push(n),e.index++}return t}function hs(e){return e.reduce(function(t,r){return t&&r[0]==="-"},!0)}function ds(e,t,r){for(var n=0;n<r;n++){var i=t[t.length-r+n].substr(1);if(e.lines[e.index+n]!==" "+i)return!1}return e.index+=r,!0}function fi(e){var t=0,r=0;return e.forEach(function(n){if(typeof n!="string"){var i=fi(n.mine),s=fi(n.theirs);t!==void 0&&(i.oldLines===s.oldLines?t+=i.oldLines:t=void 0),r!==void 0&&(i.newLines===s.newLines?r+=i.newLines:r=void 0)}else r===void 0||n[0]!=="+"&&n[0]!==" "||r++,t===void 0||n[0]!=="-"&&n[0]!==" "||t++}),{oldLines:t,newLines:r}}function Da(e){var t=e;return t=(t=(t=(t=t.replace(/&/g,"&")).replace(/</g,"<")).replace(/>/g,">")).replace(/"/g,""")}rt.tokenize=function(e){return e.slice()},rt.join=rt.removeEmpty=function(e){return e};var ba=Object.freeze({__proto__:null,Diff:C,applyPatch:ci,applyPatches:function(e,t){typeof e=="string"&&(e=sn(e));var r=0;(function n(){var i=e[r++];if(!i)return t.complete();t.loadFile(i,function(s,l){if(s)return t.complete(s);var a=ci(l,i,t);t.patched(i,a,function(c){if(c)return t.complete(c);n()})})})()},canonicalize:T,convertChangesToDMP:function(e){for(var t,r,n=[],i=0;i<e.length;i++)r=(t=e[i]).added?1:t.removed?-1:0,n.push([r,t.value]);return n},convertChangesToXML:function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];n.added?t.push("<ins>"):n.removed&&t.push("<del>"),t.push(Da(n.value)),n.added?t.push("</ins>"):n.removed&&t.push("</del>")}return t.join("")},createPatch:function(e,t,r,n,i,s){return os(e,e,t,r,n,i,s)},createTwoFilesPatch:os,diffArrays:function(e,t,r){return rt.diff(e,t,r)},diffChars:function(e,t,r){return _.diff(e,t,r)},diffCss:function(e,t,r){return le.diff(e,t,r)},diffJson:function(e,t,r){return de.diff(e,t,r)},diffLines:re,diffSentences:function(e,t,r){return me.diff(e,t,r)},diffTrimmedLines:function(e,t,r){var n=O(r,{ignoreWhitespace:!0});return se.diff(e,t,n)},diffWords:function(e,t,r){return r=O(r,{ignoreWhitespace:!0}),X.diff(e,t,r)},diffWordsWithSpace:function(e,t,r){return X.diff(e,t,r)},merge:function(e,t,r){e=Nr(e,r),t=Nr(t,r);var n={};(e.index||t.index)&&(n.index=e.index||t.index),(e.newFileName||t.newFileName)&&(cs(e)?cs(t)?(n.oldFileName=Ht(n,e.oldFileName,t.oldFileName),n.newFileName=Ht(n,e.newFileName,t.newFileName),n.oldHeader=Ht(n,e.oldHeader,t.oldHeader),n.newHeader=Ht(n,e.newHeader,t.newHeader)):(n.oldFileName=e.oldFileName,n.newFileName=e.newFileName,n.oldHeader=e.oldHeader,n.newHeader=e.newHeader):(n.oldFileName=t.oldFileName||e.oldFileName,n.newFileName=t.newFileName||e.newFileName,n.oldHeader=t.oldHeader||e.oldHeader,n.newHeader=t.newHeader||e.newHeader)),n.hunks=[];for(var i=0,s=0,l=0,a=0;i<e.hunks.length||s<t.hunks.length;){var c=e.hunks[i]||{oldStart:1/0},p=t.hunks[s]||{oldStart:1/0};if(On(c,p))n.hunks.push(ir(c,l)),i++,a+=c.newLines-c.oldLines;else if(On(p,c))n.hunks.push(ir(p,a)),s++,l+=p.newLines-p.oldLines;else{var u={oldStart:Math.min(c.oldStart,p.oldStart),oldLines:0,newStart:Math.min(c.newStart+l,p.oldStart+a),newLines:0,lines:[]};ps(u,c.oldStart,c.lines,p.oldStart,p.lines),s++,i++,n.hunks.push(u)}}return n},parsePatch:sn,structuredPatch:yt});function Or(e){return{type:"concat",parts:e}}function hi(e){return{type:"indent",contents:e}}function In(e,t){return{type:"align",contents:t,n:e}}function di(e,t){return{type:"group",id:(t=t||{}).id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}let Lt={type:"break-parent"},Ea=Or([{type:"line",hard:!0},Lt]),va=Or([{type:"line",hard:!0,literal:!0},Lt]);var gi={concat:Or,join:function(e,t){let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return Or(r)},line:{type:"line"},softline:{type:"line",soft:!0},hardline:Ea,literalline:va,group:di,conditionalGroup:function(e,t){return di(e[0],Object.assign({},t,{expandedStates:e}))},fill:function(e){return{type:"fill",parts:e}},lineSuffix:function(e){return{type:"line-suffix",contents:e}},lineSuffixBoundary:{type:"line-suffix-boundary"},cursor:{type:"cursor",placeholder:Symbol("cursor")},breakParent:Lt,ifBreak:function(e,t,r){return{type:"if-break",breakContents:e,flatContents:t,groupId:(r=r||{}).groupId}},trim:{type:"trim"},indent:hi,align:In,addAlignmentToDoc:function(e,t,r){let n=e;if(t>0){for(let i=0;i<Math.floor(t/r);++i)n=hi(n);n=In(t%r,n),n=In(-1/0,n)}return n},markAsRoot:function(e){return In({type:"root"},e)},dedentToRoot:function(e){return In(-1/0,e)},dedent:function(e){return In(-1,e)}},qe=e=>typeof e=="string"?e.replace((({onlyFirst:t=!1}={})=>{let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(r,t?void 0:"g")})(),""):e;let Dn=e=>!Number.isNaN(e)&&e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);var it=Dn,Ro=Dn;it.default=Ro;let Ir=e=>{if(typeof(e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," "))!="string"||e.length===0)return 0;e=qe(e);let t=0;for(let r=0;r<e.length;r++){let n=e.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,t+=it(n)?2:1)}return t};var ce=Ir,gs=Ir;ce.default=gs;var ms=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Lr=e=>e[e.length-1],un=typeof window!="undefined"?window:typeof self!="undefined"?self:typeof window!="undefined"?window:{};function mi(){throw new Error("setTimeout has not been defined")}function ys(){throw new Error("clearTimeout has not been defined")}var st=mi,ie=ys;function Ca(e){if(st===setTimeout)return setTimeout(e,0);if((st===mi||!st)&&setTimeout)return st=setTimeout,setTimeout(e,0);try{return st(e,0)}catch(t){try{return st.call(null,e,0)}catch(r){return st.call(this,e,0)}}}typeof un.setTimeout=="function"&&(st=setTimeout),typeof un.clearTimeout=="function"&&(ie=clearTimeout);var zt,at=[],ur=!1,Ln=-1;function yi(){ur&&zt&&(ur=!1,zt.length?at=zt.concat(at):Ln=-1,at.length&&Ds())}function Ds(){if(!ur){var e=Ca(yi);ur=!0;for(var t=at.length;t;){for(zt=at,at=[];++Ln<t;)zt&&zt[Ln].run();Ln=-1,t=at.length}zt=null,ur=!1,function(r){if(ie===clearTimeout)return clearTimeout(r);if((ie===ys||!ie)&&clearTimeout)return ie=clearTimeout,clearTimeout(r);try{ie(r)}catch(n){try{return ie.call(null,r)}catch(i){return ie.call(this,r)}}}(e)}}function wt(e,t){this.fun=e,this.array=t}wt.prototype.run=function(){this.fun.apply(null,this.array)};function Pe(){}var Di=Pe,xa=Pe,Aa=Pe,Mo=Pe,jo=Pe,Sa=Pe,wa=Pe,Rn=un.performance||{},Vo=Rn.now||Rn.mozNow||Rn.msNow||Rn.oNow||Rn.webkitNow||function(){return new Date().getTime()},Uo=new Date,Le={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];at.push(new wt(e,t)),at.length!==1||ur||Ca(Ds)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Di,addListener:xa,once:Aa,off:Mo,removeListener:jo,removeAllListeners:Sa,emit:wa,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Vo.call(Rn),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Uo)/1e3}},Mn=typeof Le=="object"&&Le.env&&Le.env.NODE_DEBUG&&/\bsemver\b/i.test(Le.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},Z={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},ut=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{};function te(e,t,r){return e(r={path:t,exports:{},require:function(n,i){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(i==null&&r.path)}},r.exports),r.exports}function or(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qo=te(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r}=Z,n=(t=e.exports={}).re=[],i=t.src=[],s=t.t={},l=0,a=(c,p,u)=>{let d=l++;Mn(d,p),s[c]=d,i[d]=p,n[d]=new RegExp(p,u?"g":void 0)};a("NUMERICIDENTIFIER","0|[1-9]\\d*"),a("NUMERICIDENTIFIERLOOSE","[0-9]+"),a("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),a("MAINVERSION","(".concat(i[s.NUMERICIDENTIFIER],")\\.")+"(".concat(i[s.NUMERICIDENTIFIER],")\\.")+"(".concat(i[s.NUMERICIDENTIFIER],")")),a("MAINVERSIONLOOSE","(".concat(i[s.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(i[s.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(i[s.NUMERICIDENTIFIERLOOSE],")")),a("PRERELEASEIDENTIFIER","(?:".concat(i[s.NUMERICIDENTIFIER],"|").concat(i[s.NONNUMERICIDENTIFIER],")")),a("PRERELEASEIDENTIFIERLOOSE","(?:".concat(i[s.NUMERICIDENTIFIERLOOSE],"|").concat(i[s.NONNUMERICIDENTIFIER],")")),a("PRERELEASE","(?:-(".concat(i[s.PRERELEASEIDENTIFIER],"(?:\\.").concat(i[s.PRERELEASEIDENTIFIER],")*))")),a("PRERELEASELOOSE","(?:-?(".concat(i[s.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(i[s.PRERELEASEIDENTIFIERLOOSE],")*))")),a("BUILDIDENTIFIER","[0-9A-Za-z-]+"),a("BUILD","(?:\\+(".concat(i[s.BUILDIDENTIFIER],"(?:\\.").concat(i[s.BUILDIDENTIFIER],")*))")),a("FULLPLAIN","v?".concat(i[s.MAINVERSION]).concat(i[s.PRERELEASE],"?").concat(i[s.BUILD],"?")),a("FULL","^".concat(i[s.FULLPLAIN],"$")),a("LOOSEPLAIN","[v=\\s]*".concat(i[s.MAINVERSIONLOOSE]).concat(i[s.PRERELEASELOOSE],"?").concat(i[s.BUILD],"?")),a("LOOSE","^".concat(i[s.LOOSEPLAIN],"$")),a("GTLT","((?:<|>)?=?)"),a("XRANGEIDENTIFIERLOOSE","".concat(i[s.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),a("XRANGEIDENTIFIER","".concat(i[s.NUMERICIDENTIFIER],"|x|X|\\*")),a("XRANGEPLAIN","[v=\\s]*(".concat(i[s.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(i[s.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(i[s.XRANGEIDENTIFIER],")")+"(?:".concat(i[s.PRERELEASE],")?").concat(i[s.BUILD],"?")+")?)?"),a("XRANGEPLAINLOOSE","[v=\\s]*(".concat(i[s.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(i[s.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(i[s.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(i[s.PRERELEASELOOSE],")?").concat(i[s.BUILD],"?")+")?)?"),a("XRANGE","^".concat(i[s.GTLT],"\\s*").concat(i[s.XRANGEPLAIN],"$")),a("XRANGELOOSE","^".concat(i[s.GTLT],"\\s*").concat(i[s.XRANGEPLAINLOOSE],"$")),a("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(r,"})")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:$|[^\\d])"),a("COERCERTL",i[s.COERCE],!0),a("LONETILDE","(?:~>?)"),a("TILDETRIM","(\\s*)".concat(i[s.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",a("TILDE","^".concat(i[s.LONETILDE]).concat(i[s.XRANGEPLAIN],"$")),a("TILDELOOSE","^".concat(i[s.LONETILDE]).concat(i[s.XRANGEPLAINLOOSE],"$")),a("LONECARET","(?:\\^)"),a("CARETTRIM","(\\s*)".concat(i[s.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",a("CARET","^".concat(i[s.LONECARET]).concat(i[s.XRANGEPLAIN],"$")),a("CARETLOOSE","^".concat(i[s.LONECARET]).concat(i[s.XRANGEPLAINLOOSE],"$")),a("COMPARATORLOOSE","^".concat(i[s.GTLT],"\\s*(").concat(i[s.LOOSEPLAIN],")$|^$")),a("COMPARATOR","^".concat(i[s.GTLT],"\\s*(").concat(i[s.FULLPLAIN],")$|^$")),a("COMPARATORTRIM","(\\s*)".concat(i[s.GTLT],"\\s*(").concat(i[s.LOOSEPLAIN],"|").concat(i[s.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",a("HYPHENRANGE","^\\s*(".concat(i[s.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(i[s.XRANGEPLAIN],")")+"\\s*$"),a("HYPHENRANGELOOSE","^\\s*(".concat(i[s.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(i[s.XRANGEPLAINLOOSE],")")+"\\s*$"),a("STAR","(<|>)?=?\\s*\\*"),a("GTE0","^\\s*>=\\s*0.0.0\\s*$"),a("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});let Fa=/^[0-9]+$/,bs=(e,t)=>{let r=Fa.test(e),n=Fa.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1};var $o={compareIdentifiers:bs,rcompareIdentifiers:(e,t)=>bs(t,e)};let{MAX_LENGTH:Ta,MAX_SAFE_INTEGER:Rr}=Z,{re:ka,t:Mr}=qo,{compareIdentifiers:lr}=$o;class _t{constructor(t,r){if(r&&typeof r=="object"||(r={loose:!!r,includePrerelease:!1}),t instanceof _t){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError("Invalid Version: ".concat(t));if(t.length>Ta)throw new TypeError("version is longer than ".concat(Ta," characters"));Mn("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?ka[Mr.LOOSE]:ka[Mr.FULL]);if(!n)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Rr||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Rr||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Rr||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<Rr)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(Mn("SemVer.compare",this.version,this.options,t),!(t instanceof _t)){if(typeof t=="string"&&t===this.version)return 0;t=new _t(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof _t||(t=new _t(t,this.options)),lr(this.major,t.major)||lr(this.minor,t.minor)||lr(this.patch,t.patch)}comparePre(t){if(t instanceof _t||(t=new _t(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=t.prerelease[r];if(Mn("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n!==i)return lr(n,i)}while(++r)}compareBuild(t){t instanceof _t||(t=new _t(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(Mn("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n!==i)return lr(n,i)}while(++r)}inc(t,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r),this.inc("pre",r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r),this.inc("pre",r);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}r&&(this.prerelease[0]===r?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error("invalid increment argument: ".concat(t))}return this.format(),this.raw=this.version,this}}var Es=_t,cr=(e,t,r)=>new Es(e,r).compare(new Es(t,r)),ye=(e,t,r)=>cr(e,t,r)<0,Wo=(e,t,r)=>cr(e,t,r)>=0,_a=te(function(e,t){function r(){for(var F=[],E=0;E<arguments.length;E++)F[E]=arguments[E]}function n(){return typeof WeakMap!="undefined"?new WeakMap:{add:r,delete:r,get:r,set:r,has:function(F){return!1}}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.prototype.hasOwnProperty,s=function(F,E){return i.call(F,E)};function l(F,E){for(var A in E)s(E,A)&&(F[A]=E[A]);return F}var a=/^[ \t]*(?:\r\n|\r|\n)/,c=/(?:\r\n|\r|\n)[ \t]*$/,p=/^(?:[\r\n]|$)/,u=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,d=/^[ \t]*[\r\n][ \t\r\n]*$/;function h(F,E,A){var P=0,L=F[0].match(u);L&&(P=L[1].length);var N=new RegExp("(\\r\\n|\\r|\\n).{0,"+P+"}","g");E&&(F=F.slice(1));var R=A.newline,U=A.trimLeadingNewline,z=A.trimTrailingNewline,q=typeof R=="string",J=F.length;return F.map(function(ee,he){return ee=ee.replace(N,"$1"),he===0&&U&&(ee=ee.replace(a,"")),he===J-1&&z&&(ee=ee.replace(c,"")),q&&(ee=ee.replace(/\r\n|\n|\r/g,function(Ae){return R})),ee})}function b(F,E){for(var A="",P=0,L=F.length;P<L;P++)A+=F[P],P<L-1&&(A+=E[P]);return A}function m(F){return s(F,"raw")&&s(F,"length")}var x=function F(E){var A=n(),P=n();return l(function L(N){for(var R=[],U=1;U<arguments.length;U++)R[U-1]=arguments[U];if(m(N)){var z=N,q=(R[0]===L||R[0]===x)&&d.test(z[0])&&p.test(z[1]),J=q?P:A,ee=J.get(z);if(ee||(ee=h(z,q,E),J.set(z,ee)),R.length===0)return ee[0];var he=b(ee,q?R.slice(1):R);return he}return F(l(l({},E),N||{}))},{string:function(L){return h([L],!1,E)[0]}})}({trimLeadingNewline:!0,trimTrailingNewline:!0});t.outdent=x,t.default=x;try{e.exports=x,Object.defineProperty(x,"__esModule",{value:!0}),x.default=x,x.outdent=x}catch(F){}});function bi(){let e=g([`
|
|
74
|
+
`}(yt(e,t,r,n,i,s,l))}function ls(e,t){if(t.length>e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function Ro(e){var t=fi(e.lines),r=t.oldLines,n=t.newLines;r!==void 0?e.oldLines=r:delete e.oldLines,n!==void 0?e.newLines=n:delete e.newLines}function Nr(e,t){if(typeof e=="string"){if(/^@@/m.test(e)||/^Index:/m.test(e))return sn(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return yt(void 0,void 0,t,e)}return e}function cs(e){return e.newFileName&&e.newFileName!==e.oldFileName}function Ht(e,t,r){return t===r?t:(e.conflict=!0,{mine:t,theirs:r})}function On(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function ir(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function ps(e,t,r,n,i){var s={offset:t,lines:r,index:0},l={offset:n,lines:i,index:0};for(sr(e,s,l),sr(e,l,s);s.index<s.lines.length&&l.index<l.lines.length;){var a=s.lines[s.index],c=l.lines[l.index];if(a[0]!=="-"&&a[0]!=="+"||c[0]!=="-"&&c[0]!=="+")if(a[0]==="+"&&c[0]===" "){var p;(p=e.lines).push.apply(p,Ue(an(s)))}else if(c[0]==="+"&&a[0]===" "){var u;(u=e.lines).push.apply(u,Ue(an(l)))}else a[0]==="-"&&c[0]===" "?ya(e,s,l):c[0]==="-"&&a[0]===" "?ya(e,l,s,!0):a===c?(e.lines.push(a),s.index++,l.index++):fs(e,an(s),an(l));else pi(e,s,l)}ar(e,s),ar(e,l),Ro(e)}function pi(e,t,r){var n=an(t),i=an(r);if(hs(n)&&hs(i)){var s,l;if(ls(n,i)&&ds(r,n,n.length-i.length))return void(s=e.lines).push.apply(s,Ue(n));if(ls(i,n)&&ds(t,i,i.length-n.length))return void(l=e.lines).push.apply(l,Ue(i))}else if(function(c,p){return c.length===p.length&&ls(c,p)}(n,i)){var a;return void(a=e.lines).push.apply(a,Ue(n))}fs(e,n,i)}function ya(e,t,r,n){var i,s=an(t),l=function(a,c){for(var p=[],u=[],d=0,h=!1,b=!1;d<c.length&&a.index<a.lines.length;){var m=a.lines[a.index],x=c[d];if(x[0]==="+")break;if(h=h||m[0]!==" ",u.push(x),d++,m[0]==="+")for(b=!0;m[0]==="+";)p.push(m),m=a.lines[++a.index];x.substr(1)===m.substr(1)?(p.push(m),a.index++):b=!0}if((c[d]||"")[0]==="+"&&h&&(b=!0),b)return p;for(;d<c.length;)u.push(c[d++]);return{merged:u,changes:p}}(r,s);l.merged?(i=e.lines).push.apply(i,Ue(l.merged)):fs(e,n?l:s,n?s:l)}function fs(e,t,r){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:r})}function sr(e,t,r){for(;t.offset<r.offset&&t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n),t.offset++}}function ar(e,t){for(;t.index<t.lines.length;){var r=t.lines[t.index++];e.lines.push(r)}}function an(e){for(var t=[],r=e.lines[e.index][0];e.index<e.lines.length;){var n=e.lines[e.index];if(r==="-"&&n[0]==="+"&&(r="+"),r!==n[0])break;t.push(n),e.index++}return t}function hs(e){return e.reduce(function(t,r){return t&&r[0]==="-"},!0)}function ds(e,t,r){for(var n=0;n<r;n++){var i=t[t.length-r+n].substr(1);if(e.lines[e.index+n]!==" "+i)return!1}return e.index+=r,!0}function fi(e){var t=0,r=0;return e.forEach(function(n){if(typeof n!="string"){var i=fi(n.mine),s=fi(n.theirs);t!==void 0&&(i.oldLines===s.oldLines?t+=i.oldLines:t=void 0),r!==void 0&&(i.newLines===s.newLines?r+=i.newLines:r=void 0)}else r===void 0||n[0]!=="+"&&n[0]!==" "||r++,t===void 0||n[0]!=="-"&&n[0]!==" "||t++}),{oldLines:t,newLines:r}}function Da(e){var t=e;return t=(t=(t=(t=t.replace(/&/g,"&")).replace(/</g,"<")).replace(/>/g,">")).replace(/"/g,""")}rt.tokenize=function(e){return e.slice()},rt.join=rt.removeEmpty=function(e){return e};var ba=Object.freeze({__proto__:null,Diff:C,applyPatch:ci,applyPatches:function(e,t){typeof e=="string"&&(e=sn(e));var r=0;(function n(){var i=e[r++];if(!i)return t.complete();t.loadFile(i,function(s,l){if(s)return t.complete(s);var a=ci(l,i,t);t.patched(i,a,function(c){if(c)return t.complete(c);n()})})})()},canonicalize:T,convertChangesToDMP:function(e){for(var t,r,n=[],i=0;i<e.length;i++)r=(t=e[i]).added?1:t.removed?-1:0,n.push([r,t.value]);return n},convertChangesToXML:function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];n.added?t.push("<ins>"):n.removed&&t.push("<del>"),t.push(Da(n.value)),n.added?t.push("</ins>"):n.removed&&t.push("</del>")}return t.join("")},createPatch:function(e,t,r,n,i,s){return os(e,e,t,r,n,i,s)},createTwoFilesPatch:os,diffArrays:function(e,t,r){return rt.diff(e,t,r)},diffChars:function(e,t,r){return _.diff(e,t,r)},diffCss:function(e,t,r){return le.diff(e,t,r)},diffJson:function(e,t,r){return de.diff(e,t,r)},diffLines:ee,diffSentences:function(e,t,r){return ye.diff(e,t,r)},diffTrimmedLines:function(e,t,r){var n=O(r,{ignoreWhitespace:!0});return Q.diff(e,t,n)},diffWords:function(e,t,r){return r=O(r,{ignoreWhitespace:!0}),z.diff(e,t,r)},diffWordsWithSpace:function(e,t,r){return z.diff(e,t,r)},merge:function(e,t,r){e=Nr(e,r),t=Nr(t,r);var n={};(e.index||t.index)&&(n.index=e.index||t.index),(e.newFileName||t.newFileName)&&(cs(e)?cs(t)?(n.oldFileName=Ht(n,e.oldFileName,t.oldFileName),n.newFileName=Ht(n,e.newFileName,t.newFileName),n.oldHeader=Ht(n,e.oldHeader,t.oldHeader),n.newHeader=Ht(n,e.newHeader,t.newHeader)):(n.oldFileName=e.oldFileName,n.newFileName=e.newFileName,n.oldHeader=e.oldHeader,n.newHeader=e.newHeader):(n.oldFileName=t.oldFileName||e.oldFileName,n.newFileName=t.newFileName||e.newFileName,n.oldHeader=t.oldHeader||e.oldHeader,n.newHeader=t.newHeader||e.newHeader)),n.hunks=[];for(var i=0,s=0,l=0,a=0;i<e.hunks.length||s<t.hunks.length;){var c=e.hunks[i]||{oldStart:1/0},p=t.hunks[s]||{oldStart:1/0};if(On(c,p))n.hunks.push(ir(c,l)),i++,a+=c.newLines-c.oldLines;else if(On(p,c))n.hunks.push(ir(p,a)),s++,l+=p.newLines-p.oldLines;else{var u={oldStart:Math.min(c.oldStart,p.oldStart),oldLines:0,newStart:Math.min(c.newStart+l,p.oldStart+a),newLines:0,lines:[]};ps(u,c.oldStart,c.lines,p.oldStart,p.lines),s++,i++,n.hunks.push(u)}}return n},parsePatch:sn,structuredPatch:yt});function Or(e){return{type:"concat",parts:e}}function hi(e){return{type:"indent",contents:e}}function In(e,t){return{type:"align",contents:t,n:e}}function di(e,t){return{type:"group",id:(t=t||{}).id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}let Rt={type:"break-parent"},Ea=Or([{type:"line",hard:!0},Rt]),va=Or([{type:"line",hard:!0,literal:!0},Rt]);var gi={concat:Or,join:function(e,t){let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return Or(r)},line:{type:"line"},softline:{type:"line",soft:!0},hardline:Ea,literalline:va,group:di,conditionalGroup:function(e,t){return di(e[0],Object.assign({},t,{expandedStates:e}))},fill:function(e){return{type:"fill",parts:e}},lineSuffix:function(e){return{type:"line-suffix",contents:e}},lineSuffixBoundary:{type:"line-suffix-boundary"},cursor:{type:"cursor",placeholder:Symbol("cursor")},breakParent:Rt,ifBreak:function(e,t,r){return{type:"if-break",breakContents:e,flatContents:t,groupId:(r=r||{}).groupId}},trim:{type:"trim"},indent:hi,align:In,addAlignmentToDoc:function(e,t,r){let n=e;if(t>0){for(let i=0;i<Math.floor(t/r);++i)n=hi(n);n=In(t%r,n),n=In(-1/0,n)}return n},markAsRoot:function(e){return In({type:"root"},e)},dedentToRoot:function(e){return In(-1/0,e)},dedent:function(e){return In(-1,e)}},qe=e=>typeof e=="string"?e.replace((({onlyFirst:t=!1}={})=>{let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(r,t?void 0:"g")})(),""):e;let Dn=e=>!Number.isNaN(e)&&e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);var it=Dn,Mo=Dn;it.default=Mo;let Ir=e=>{if(typeof(e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," "))!="string"||e.length===0)return 0;e=qe(e);let t=0;for(let r=0;r<e.length;r++){let n=e.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,t+=it(n)?2:1)}return t};var ce=Ir,gs=Ir;ce.default=gs;var ms=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Lr=e=>e[e.length-1],un=typeof window!="undefined"?window:typeof self!="undefined"?self:typeof window!="undefined"?window:{};function mi(){throw new Error("setTimeout has not been defined")}function ys(){throw new Error("clearTimeout has not been defined")}var st=mi,se=ys;function Ca(e){if(st===setTimeout)return setTimeout(e,0);if((st===mi||!st)&&setTimeout)return st=setTimeout,setTimeout(e,0);try{return st(e,0)}catch(t){try{return st.call(null,e,0)}catch(r){return st.call(this,e,0)}}}typeof un.setTimeout=="function"&&(st=setTimeout),typeof un.clearTimeout=="function"&&(se=clearTimeout);var zt,at=[],ur=!1,Ln=-1;function yi(){ur&&zt&&(ur=!1,zt.length?at=zt.concat(at):Ln=-1,at.length&&Ds())}function Ds(){if(!ur){var e=Ca(yi);ur=!0;for(var t=at.length;t;){for(zt=at,at=[];++Ln<t;)zt&&zt[Ln].run();Ln=-1,t=at.length}zt=null,ur=!1,function(r){if(se===clearTimeout)return clearTimeout(r);if((se===ys||!se)&&clearTimeout)return se=clearTimeout,clearTimeout(r);try{se(r)}catch(n){try{return se.call(null,r)}catch(i){return se.call(this,r)}}}(e)}}function wt(e,t){this.fun=e,this.array=t}wt.prototype.run=function(){this.fun.apply(null,this.array)};function Pe(){}var Di=Pe,xa=Pe,Aa=Pe,jo=Pe,Vo=Pe,Sa=Pe,wa=Pe,Rn=un.performance||{},Uo=Rn.now||Rn.mozNow||Rn.msNow||Rn.oNow||Rn.webkitNow||function(){return new Date().getTime()},qo=new Date,Le={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];at.push(new wt(e,t)),at.length!==1||ur||Ca(Ds)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Di,addListener:xa,once:Aa,off:jo,removeListener:Vo,removeAllListeners:Sa,emit:wa,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Uo.call(Rn),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-qo)/1e3}},Mn=typeof Le=="object"&&Le.env&&Le.env.NODE_DEBUG&&/\bsemver\b/i.test(Le.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},te={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},ut=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{};function re(e,t,r){return e(r={path:t,exports:{},require:function(n,i){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(i==null&&r.path)}},r.exports),r.exports}function or(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $o=re(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r}=te,n=(t=e.exports={}).re=[],i=t.src=[],s=t.t={},l=0,a=(c,p,u)=>{let d=l++;Mn(d,p),s[c]=d,i[d]=p,n[d]=new RegExp(p,u?"g":void 0)};a("NUMERICIDENTIFIER","0|[1-9]\\d*"),a("NUMERICIDENTIFIERLOOSE","[0-9]+"),a("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),a("MAINVERSION","(".concat(i[s.NUMERICIDENTIFIER],")\\.")+"(".concat(i[s.NUMERICIDENTIFIER],")\\.")+"(".concat(i[s.NUMERICIDENTIFIER],")")),a("MAINVERSIONLOOSE","(".concat(i[s.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(i[s.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(i[s.NUMERICIDENTIFIERLOOSE],")")),a("PRERELEASEIDENTIFIER","(?:".concat(i[s.NUMERICIDENTIFIER],"|").concat(i[s.NONNUMERICIDENTIFIER],")")),a("PRERELEASEIDENTIFIERLOOSE","(?:".concat(i[s.NUMERICIDENTIFIERLOOSE],"|").concat(i[s.NONNUMERICIDENTIFIER],")")),a("PRERELEASE","(?:-(".concat(i[s.PRERELEASEIDENTIFIER],"(?:\\.").concat(i[s.PRERELEASEIDENTIFIER],")*))")),a("PRERELEASELOOSE","(?:-?(".concat(i[s.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(i[s.PRERELEASEIDENTIFIERLOOSE],")*))")),a("BUILDIDENTIFIER","[0-9A-Za-z-]+"),a("BUILD","(?:\\+(".concat(i[s.BUILDIDENTIFIER],"(?:\\.").concat(i[s.BUILDIDENTIFIER],")*))")),a("FULLPLAIN","v?".concat(i[s.MAINVERSION]).concat(i[s.PRERELEASE],"?").concat(i[s.BUILD],"?")),a("FULL","^".concat(i[s.FULLPLAIN],"$")),a("LOOSEPLAIN","[v=\\s]*".concat(i[s.MAINVERSIONLOOSE]).concat(i[s.PRERELEASELOOSE],"?").concat(i[s.BUILD],"?")),a("LOOSE","^".concat(i[s.LOOSEPLAIN],"$")),a("GTLT","((?:<|>)?=?)"),a("XRANGEIDENTIFIERLOOSE","".concat(i[s.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),a("XRANGEIDENTIFIER","".concat(i[s.NUMERICIDENTIFIER],"|x|X|\\*")),a("XRANGEPLAIN","[v=\\s]*(".concat(i[s.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(i[s.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(i[s.XRANGEIDENTIFIER],")")+"(?:".concat(i[s.PRERELEASE],")?").concat(i[s.BUILD],"?")+")?)?"),a("XRANGEPLAINLOOSE","[v=\\s]*(".concat(i[s.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(i[s.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(i[s.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(i[s.PRERELEASELOOSE],")?").concat(i[s.BUILD],"?")+")?)?"),a("XRANGE","^".concat(i[s.GTLT],"\\s*").concat(i[s.XRANGEPLAIN],"$")),a("XRANGELOOSE","^".concat(i[s.GTLT],"\\s*").concat(i[s.XRANGEPLAINLOOSE],"$")),a("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(r,"})")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:$|[^\\d])"),a("COERCERTL",i[s.COERCE],!0),a("LONETILDE","(?:~>?)"),a("TILDETRIM","(\\s*)".concat(i[s.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",a("TILDE","^".concat(i[s.LONETILDE]).concat(i[s.XRANGEPLAIN],"$")),a("TILDELOOSE","^".concat(i[s.LONETILDE]).concat(i[s.XRANGEPLAINLOOSE],"$")),a("LONECARET","(?:\\^)"),a("CARETTRIM","(\\s*)".concat(i[s.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",a("CARET","^".concat(i[s.LONECARET]).concat(i[s.XRANGEPLAIN],"$")),a("CARETLOOSE","^".concat(i[s.LONECARET]).concat(i[s.XRANGEPLAINLOOSE],"$")),a("COMPARATORLOOSE","^".concat(i[s.GTLT],"\\s*(").concat(i[s.LOOSEPLAIN],")$|^$")),a("COMPARATOR","^".concat(i[s.GTLT],"\\s*(").concat(i[s.FULLPLAIN],")$|^$")),a("COMPARATORTRIM","(\\s*)".concat(i[s.GTLT],"\\s*(").concat(i[s.LOOSEPLAIN],"|").concat(i[s.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",a("HYPHENRANGE","^\\s*(".concat(i[s.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(i[s.XRANGEPLAIN],")")+"\\s*$"),a("HYPHENRANGELOOSE","^\\s*(".concat(i[s.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(i[s.XRANGEPLAINLOOSE],")")+"\\s*$"),a("STAR","(<|>)?=?\\s*\\*"),a("GTE0","^\\s*>=\\s*0.0.0\\s*$"),a("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});let Fa=/^[0-9]+$/,bs=(e,t)=>{let r=Fa.test(e),n=Fa.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1};var Wo={compareIdentifiers:bs,rcompareIdentifiers:(e,t)=>bs(t,e)};let{MAX_LENGTH:Ta,MAX_SAFE_INTEGER:Rr}=te,{re:ka,t:Mr}=$o,{compareIdentifiers:lr}=Wo;class _t{constructor(t,r){if(r&&typeof r=="object"||(r={loose:!!r,includePrerelease:!1}),t instanceof _t){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError("Invalid Version: ".concat(t));if(t.length>Ta)throw new TypeError("version is longer than ".concat(Ta," characters"));Mn("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?ka[Mr.LOOSE]:ka[Mr.FULL]);if(!n)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Rr||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Rr||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Rr||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<Rr)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(Mn("SemVer.compare",this.version,this.options,t),!(t instanceof _t)){if(typeof t=="string"&&t===this.version)return 0;t=new _t(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof _t||(t=new _t(t,this.options)),lr(this.major,t.major)||lr(this.minor,t.minor)||lr(this.patch,t.patch)}comparePre(t){if(t instanceof _t||(t=new _t(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=t.prerelease[r];if(Mn("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n!==i)return lr(n,i)}while(++r)}compareBuild(t){t instanceof _t||(t=new _t(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(Mn("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n!==i)return lr(n,i)}while(++r)}inc(t,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r),this.inc("pre",r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r),this.inc("pre",r);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}r&&(this.prerelease[0]===r?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error("invalid increment argument: ".concat(t))}return this.format(),this.raw=this.version,this}}var Es=_t,cr=(e,t,r)=>new Es(e,r).compare(new Es(t,r)),De=(e,t,r)=>cr(e,t,r)<0,Go=(e,t,r)=>cr(e,t,r)>=0,_a=re(function(e,t){function r(){for(var F=[],E=0;E<arguments.length;E++)F[E]=arguments[E]}function n(){return typeof WeakMap!="undefined"?new WeakMap:{add:r,delete:r,get:r,set:r,has:function(F){return!1}}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.prototype.hasOwnProperty,s=function(F,E){return i.call(F,E)};function l(F,E){for(var A in E)s(E,A)&&(F[A]=E[A]);return F}var a=/^[ \t]*(?:\r\n|\r|\n)/,c=/(?:\r\n|\r|\n)[ \t]*$/,p=/^(?:[\r\n]|$)/,u=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,d=/^[ \t]*[\r\n][ \t\r\n]*$/;function h(F,E,A){var P=0,L=F[0].match(u);L&&(P=L[1].length);var N=new RegExp("(\\r\\n|\\r|\\n).{0,"+P+"}","g");E&&(F=F.slice(1));var R=A.newline,U=A.trimLeadingNewline,J=A.trimTrailingNewline,q=typeof R=="string",X=F.length;return F.map(function(ne,he){return ne=ne.replace(N,"$1"),he===0&&U&&(ne=ne.replace(a,"")),he===X-1&&J&&(ne=ne.replace(c,"")),q&&(ne=ne.replace(/\r\n|\n|\r/g,function(Ae){return R})),ne})}function b(F,E){for(var A="",P=0,L=F.length;P<L;P++)A+=F[P],P<L-1&&(A+=E[P]);return A}function m(F){return s(F,"raw")&&s(F,"length")}var x=function F(E){var A=n(),P=n();return l(function L(N){for(var R=[],U=1;U<arguments.length;U++)R[U-1]=arguments[U];if(m(N)){var J=N,q=(R[0]===L||R[0]===x)&&d.test(J[0])&&p.test(J[1]),X=q?P:A,ne=X.get(J);if(ne||(ne=h(J,q,E),X.set(J,ne)),R.length===0)return ne[0];var he=b(ne,q?R.slice(1):R);return he}return F(l(l({},E),N||{}))},{string:function(L){return h([L],!1,E)[0]}})}({trimLeadingNewline:!0,trimTrailingNewline:!0});t.outdent=x,t.default=x;try{e.exports=x,Object.defineProperty(x,"__esModule",{value:!0}),x.default=x,x.outdent=x}catch(F){}});function bi(){let e=g([`
|
|
75
75
|
Require either '@prettier' or '@format' to be present in the file's first docblock comment
|
|
76
76
|
in order for it to be formatted.
|
|
77
77
|
`]);return bi=function(){return e},e}function vs(){let e=g([`
|
|
@@ -92,148 +92,148 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
92
92
|
`]);return Ba=function(){return e},e}function Na(){let e=g([`
|
|
93
93
|
Print (to stderr) where a cursor at the given position would move to after formatting.
|
|
94
94
|
This option cannot be used with --range-start and --range-end.
|
|
95
|
-
`]);return Na=function(){return e},e}let{outdent:o}=_a,y="Config",v="Editor",w="Other",B="Global",M="Special",V={cursorOffset:{since:"1.4.0",category:M,type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:o(Na()),cliCategory:v},endOfLine:{since:"1.15.0",category:B,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"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:o(Ba())}]},filepath:{since:"1.4.0",category:M,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:w,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:M,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:w},parser:{since:"0.0.10",category:B,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:null,description:"Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:B,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:y},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:B,description:o(Pa()),exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin-search-dir",cliCategory:y},printWidth:{since:"0.0.0",category:B,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{since:"1.4.0",category:M,type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:o(Cs()),cliCategory:v},rangeStart:{since:"1.4.0",category:M,type:"int",default:0,range:{start:0,end:1/0,step:1},description:o(vs()),cliCategory:v},requirePragma:{since:"1.7.0",category:M,type:"boolean",default:!1,description:o(bi()),cliCategory:w},tabWidth:{type:"int",category:B,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{since:"1.0.0",category:B,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:B,type:"choice",default:[{since:"2.1.0",value:"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."}]}},H={compare:cr,lt:
|
|
95
|
+
`]);return Na=function(){return e},e}let{outdent:o}=_a,y="Config",v="Editor",w="Other",B="Global",M="Special",V={cursorOffset:{since:"1.4.0",category:M,type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:o(Na()),cliCategory:v},endOfLine:{since:"1.15.0",category:B,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"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:o(Ba())}]},filepath:{since:"1.4.0",category:M,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:w,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:M,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:w},parser:{since:"0.0.10",category:B,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:null,description:"Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:B,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:y},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:B,description:o(Pa()),exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin-search-dir",cliCategory:y},printWidth:{since:"0.0.0",category:B,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{since:"1.4.0",category:M,type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:o(Cs()),cliCategory:v},rangeStart:{since:"1.4.0",category:M,type:"int",default:0,range:{start:0,end:1/0,step:1},description:o(vs()),cliCategory:v},requirePragma:{since:"1.7.0",category:M,type:"boolean",default:!1,description:o(bi()),cliCategory:w},tabWidth:{type:"int",category:B,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{since:"1.0.0",category:B,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:B,type:"choice",default:[{since:"2.1.0",value:"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."}]}},H={compare:cr,lt:De,gte:Go},K=D.version,be={CATEGORY_CONFIG:y,CATEGORY_EDITOR:v,CATEGORY_FORMAT:"Format",CATEGORY_OTHER:w,CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:B,CATEGORY_SPECIAL:M,options:V}.options;var Be={getSupportInfo:function({plugins:e=[],showUnreleased:t=!1,showDeprecated:r=!1,showInternal:n=!1}={}){let i=K.split("-",1)[0],s=e.reduce((p,u)=>p.concat(u.languages||[]),[]).filter(a),l=((p,u)=>Object.entries(p).map(([d,h])=>Object.assign({[u]:d},h)))(Object.assign({},...e.map(({options:p})=>p),be),"name").filter(p=>a(p)&&c(p)).sort((p,u)=>p.name===u.name?0:p.name<u.name?-1:1).map(function(p){return n?p:f(p,["cliName","cliCategory","cliDescription"])}).map(p=>{p=Object.assign({},p),Array.isArray(p.default)&&(p.default=p.default.length===1?p.default[0].value:p.default.filter(a).sort((d,h)=>H.compare(h.since,d.since))[0].value),Array.isArray(p.choices)&&(p.choices=p.choices.filter(d=>a(d)&&c(d)),p.name==="parser"&&function(d,h,b){let m=new Set(d.choices.map(x=>x.value));for(let x of h)if(x.parsers){for(let F of x.parsers)if(!m.has(F)){m.add(F);let E=b.find(P=>P.parsers&&P.parsers[F]),A=x.name;E&&E.name&&(A+=" (plugin: ".concat(E.name,")")),d.choices.push({value:F,description:A})}}}(p,s,e));let u=e.filter(d=>d.defaultOptions&&d.defaultOptions[p.name]!==void 0).reduce((d,h)=>(d[h.name]=h.defaultOptions[p.name],d),{});return Object.assign({},p,{pluginDefaults:u})});return{languages:s,options:l};function a(p){return t||!("since"in p)||p.since&&H.gte(i,p.since)}function c(p){return r||!("deprecated"in p)||p.deprecated&&H.lt(i,p.deprecated)}}};let{getSupportInfo:ot}=Be,jn=/[^\x20-\x7F]/;function Jt(e){return(t,r,n)=>{let i=n&&n.backwards;if(r===!1)return!1;let{length:s}=t,l=r;for(;l>=0&&l<s;){let a=t.charAt(l);if(e instanceof RegExp){if(!e.test(a))return l}else if(!e.includes(a))return l;i?l--:l++}return(l===-1||l===s)&&l}}let Ei=Jt(/\s/),Pt=Jt(" "),Vn=Jt(",; "),vf=Jt(/[^\n\r]/);function Ho(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r<e.length;++r)if(e.charAt(r)==="*"&&e.charAt(r+1)==="/")return r+2}return t}function zo(e,t){return t!==!1&&(e.charAt(t)==="/"&&e.charAt(t+1)==="/"?vf(e,t):t)}function vi(e,t,r){let n=r&&r.backwards;if(t===!1)return!1;let i=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&i===`
|
|
96
96
|
`)return t-2;if(i===`
|
|
97
97
|
`||i==="\r"||i==="\u2028"||i==="\u2029")return t-1}else{if(i==="\r"&&e.charAt(t+1)===`
|
|
98
98
|
`)return t+2;if(i===`
|
|
99
|
-
`||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}function
|
|
100
|
-
`))r.length!==0&&r.push(t),r.push(n);return r},getStringWidth:function(e){return e?jn.test(e)?ce(e):e.length:0},getMaxContinuousCount:function(e,t){let r=e.match(new RegExp("(".concat(ms(t),")+"),"g"));return r===null?0:r.reduce((n,i)=>Math.max(n,i.length/t.length),0)},getMinNotPresentContinuousCount:function(e,t){let r=e.match(new RegExp("(".concat(ms(t),")+"),"g"));if(r===null)return 0;let n=new Map,i=0;for(let s of r){let l=s.length/t.length;n.set(l,!0),l>i&&(i=l)}for(let s=1;s<i;s++)if(!n.get(s))return s;return i+1},getPenultimate:e=>e[e.length-2],getLast:Lr,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:
|
|
101
|
-
`)return!0;return!1},hasSpaces:function(e,t,r){return Pt(e,(r=r||{}).backwards?t-1:t,r)!==t},getAlignmentSize:
|
|
102
|
-
`);return r===-1?0:
|
|
103
|
-
`);return t===-1?e:e.slice(0,t)}},
|
|
99
|
+
`||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}function Cf(e,t,r){let n=Pt(e,(r=r||{}).backwards?t-1:t,r);return n!==vi(e,n,r)}function xf(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Vn(e,n),n=Ho(e,n),n=Pt(e,n);return n=zo(e,n),n=vi(e,n),n!==!1&&Cf(e,n)}function Af(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Pt(e,n),n=Ho(e,n),n=zo(e,n),n=vi(e,n);return n}function Sf(e,t,r){return Af(e,r(t))}function wf(e,t,r){let n=0;for(let i=r=r||0;i<e.length;++i)e[i]===" "?n=n+t-n%t:n++;return n}function Ff(e,t){let r=e.slice(1,-1),n={quote:'"',regex:/"/g},i={quote:"'",regex:/'/g},s=t==="'"?i:n,l=s===i?n:i,a=s.quote;return(r.includes(s.quote)||r.includes(l.quote))&&(a=(r.match(s.regex)||[]).length>(r.match(l.regex)||[]).length?l.quote:s.quote),a}function Tf(e,t,r){let n=t==='"'?"'":'"',i=e.replace(/\\([\S\s])|(["'])/g,(s,l,a)=>l===n?l:a===t?"\\"+a:a||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(l)?l:"\\"+l));return t+i+t}function Jo(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,e.type==="JSXText"&&(t.printed=!0)}var ve={inferParserByLanguage:function(e,t){let{languages:r}=ot({plugins:t.plugins}),n=r.find(({name:i})=>i.toLowerCase()===e)||r.find(({aliases:i})=>Array.isArray(i)&&i.includes(e))||r.find(({extensions:i})=>Array.isArray(i)&&i.includes(".".concat(e)));return n&&n.parsers[0]},replaceEndOfLineWith:function(e,t){let r=[];for(let n of e.split(`
|
|
100
|
+
`))r.length!==0&&r.push(t),r.push(n);return r},getStringWidth:function(e){return e?jn.test(e)?ce(e):e.length:0},getMaxContinuousCount:function(e,t){let r=e.match(new RegExp("(".concat(ms(t),")+"),"g"));return r===null?0:r.reduce((n,i)=>Math.max(n,i.length/t.length),0)},getMinNotPresentContinuousCount:function(e,t){let r=e.match(new RegExp("(".concat(ms(t),")+"),"g"));if(r===null)return 0;let n=new Map,i=0;for(let s of r){let l=s.length/t.length;n.set(l,!0),l>i&&(i=l)}for(let s=1;s<i;s++)if(!n.get(s))return s;return i+1},getPenultimate:e=>e[e.length-2],getLast:Lr,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Af,getNextNonSpaceNonCommentCharacterIndex:Sf,getNextNonSpaceNonCommentCharacter:function(e,t,r){return e.charAt(Sf(e,t,r))},skip:Jt,skipWhitespace:Ei,skipSpaces:Pt,skipToLineEnd:Vn,skipEverythingButNewLine:vf,skipInlineComment:Ho,skipTrailingComment:zo,skipNewline:vi,isNextLineEmptyAfterIndex:xf,isNextLineEmpty:function(e,t,r){return xf(e,r(t))},isPreviousLineEmpty:function(e,t,r){let n=r(t)-1;return n=Pt(e,n,{backwards:!0}),n=vi(e,n,{backwards:!0}),n=Pt(e,n,{backwards:!0}),n!==vi(e,n,{backwards:!0})},hasNewline:Cf,hasNewlineInRange:function(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
|
|
101
|
+
`)return!0;return!1},hasSpaces:function(e,t,r){return Pt(e,(r=r||{}).backwards?t-1:t,r)!==t},getAlignmentSize:wf,getIndentSize:function(e,t){let r=e.lastIndexOf(`
|
|
102
|
+
`);return r===-1?0:wf(e.slice(r+1).match(/^[\t ]*/)[0],t)},getPreferredQuote:Ff,printString:function(e,t,r){let n=e.slice(1,-1),i=!n.includes('"')&&!n.includes("'"),s=t.parser==="json"?'"':t.__isInHtmlAttribute?"'":Ff(e,t.singleQuote?"'":'"');return r?i?s+n+s:e:Tf(n,s,!(t.parser==="css"||t.parser==="less"||t.parser==="scss"||t.embeddedInHtml))},printNumber:function(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},isNodeIgnoreComment:function(e){return e.value.trim()==="prettier-ignore"},makeString:Tf,addLeadingComment:function(e,t){t.leading=!0,t.trailing=!1,Jo(e,t)},addDanglingComment:function(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Jo(e,t)},addTrailingComment:function(e,t){t.leading=!1,t.trailing=!0,Jo(e,t)},isFrontMatterNode:function(e){return e&&e.type==="front-matter"},getShebang:function(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
|
|
103
|
+
`);return t===-1?e:e.slice(0,t)}},Xo={guessEndOfLine:function(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===`
|
|
104
104
|
`?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return`\r
|
|
105
105
|
`;default:return`
|
|
106
106
|
`}},countEndOfLineChars:function(e,t){let r;if(t===`
|
|
107
107
|
`)r=/\n/g;else if(t==="\r")r=/\r/g;else{if(t!==`\r
|
|
108
108
|
`)throw new Error('Unexpected "eol" '.concat(JSON.stringify(t),"."));r=/\r\n/g}let n=e.match(r);return n?n.length:0},normalizeEndOfLine:function(e){return e.replace(/\r\n?/g,`
|
|
109
|
-
`)}};let{getStringWidth:
|
|
109
|
+
`)}};let{getStringWidth:kf}=ve,{convertEndOfLineToChars:s2}=Xo,{concat:a2,fill:u2,cursor:Yo}=gi,xs;function _f(e,t){return Ko(e,{type:"indent"},t)}function Pf(e,t,r){return t===-1/0?e.root||{value:"",length:0,queue:[]}:t<0?Ko(e,{type:"dedent"},r):t?t.type==="root"?Object.assign({},e,{root:e}):Ko(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function Ko(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):e.queue.concat(t),i="",s=0,l=0,a=0;for(let b of n)switch(b.type){case"indent":u(),r.useTabs?c(1):p(r.tabWidth);break;case"stringAlign":u(),i+=b.n,s+=b.n.length;break;case"numberAlign":l+=1,a+=b.n;break;default:throw new Error("Unexpected type '".concat(b.type,"'"))}return d(),Object.assign({},e,{value:i,length:s,queue:n});function c(b){i+=" ".repeat(b),s+=r.tabWidth*b}function p(b){i+=" ".repeat(b),s+=b}function u(){r.useTabs?function(){l>0&&c(l),h()}():d()}function d(){a>0&&p(a),h()}function h(){l=0,a=0}}function Qo(e){if(e.length===0)return 0;let t=0;for(;e.length>0&&typeof e[e.length-1]=="string"&&e[e.length-1].match(/^[\t ]*$/);)t+=e.pop().length;if(e.length&&typeof e[e.length-1]=="string"){let r=e[e.length-1].replace(/[\t ]*$/,"");t+=e[e.length-1].length-r.length,e[e.length-1]=r}return t}function Oa(e,t,r,n,i){let s=t.length,l=[e],a=[];for(;r>=0;){if(l.length===0){if(s===0)return!0;l.push(t[s-1]),s--;continue}let[c,p,u]=l.pop();if(typeof u=="string")a.push(u),r-=kf(u);else switch(u.type){case"concat":for(let d=u.parts.length-1;d>=0;d--)l.push([c,p,u.parts[d]]);break;case"indent":l.push([_f(c,n),p,u.contents]);break;case"align":l.push([Pf(c,u.n,n),p,u.contents]);break;case"trim":r+=Qo(a);break;case"group":if(i&&u.break)return!1;l.push([c,u.break?1:p,u.contents]),u.id&&(xs[u.id]=l[l.length-1][1]);break;case"fill":for(let d=u.parts.length-1;d>=0;d--)l.push([c,p,u.parts[d]]);break;case"if-break":{let d=u.groupId?xs[u.groupId]:p;d===1&&u.breakContents&&l.push([c,p,u.breakContents]),d===2&&u.flatContents&&l.push([c,p,u.flatContents]);break}case"line":switch(p){case 2:if(!u.hard){u.soft||(a.push(" "),r-=1);break}return!0;case 1:return!0}}}return!1}var o2={printDocToString:function(e,t){xs={};let r=t.printWidth,n=s2(t.endOfLine),i=0,s=[[{value:"",length:0,queue:[]},1,e]],l=[],a=!1,c=[];for(;s.length!==0;){let[u,d,h]=s.pop();if(typeof h=="string"){let b=n!==`
|
|
110
110
|
`&&h.includes(`
|
|
111
|
-
`)?h.replace(/\n/g,n):h;l.push(b),i+=
|
|
112
|
-
`)?o2(t.split(/(\n)/g).map((r,n)=>n%2==0?r:u2)):t)}},debug:{printDocToDebug:e=>Rt(fr(e))}};let Of=()=>!1,If=()=>"";var f2={existsSync:Of,readFileSync:If},h2=Object.freeze({__proto__:null,existsSync:Of,readFileSync:If,default:f2});function bn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Lf(e,t){for(var r,n="",i=0,s=-1,l=0,a=0;a<=e.length;++a){if(a<e.length)r=e.charCodeAt(a);else{if(r===47)break;r=47}if(r===47){if(!(s===a-1||l===1))if(s!==a-1&&l===2){if(n.length<2||i!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){c===-1?(n="",i=0):i=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),s=a,l=0;continue}}else if(n.length===2||n.length===1){n="",i=0,s=a,l=0;continue}}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(s+1,a):n=e.slice(s+1,a),i=a-s-1;s=a,l=0}else r===46&&l!==-1?++l:l=-1}return n}var Ci={resolve:function(){for(var e,t="",r=!1,n=arguments.length-1;n>=-1&&!r;n--){var i;n>=0?i=arguments[n]:(e===void 0&&(e=Le.cwd()),i=e),bn(i),i.length!==0&&(t=i+"/"+t,r=i.charCodeAt(0)===47)}return t=Lf(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(bn(e),e.length===0)return".";var t=e.charCodeAt(0)===47,r=e.charCodeAt(e.length-1)===47;return(e=Lf(e,!t)).length!==0||t||(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return bn(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];bn(r),r.length>0&&(e===void 0?e=r:e+="/"+r)}return e===void 0?".":Ci.normalize(e)},relative:function(e,t){if(bn(e),bn(t),e===t||(e=Ci.resolve(e))===(t=Ci.resolve(t)))return"";for(var r=1;r<e.length&&e.charCodeAt(r)===47;++r);for(var n=e.length,i=n-r,s=1;s<t.length&&t.charCodeAt(s)===47;++s);for(var l=t.length-s,a=i<l?i:l,c=-1,p=0;p<=a;++p){if(p===a){if(l>a){if(t.charCodeAt(s+p)===47)return t.slice(s+p+1);if(p===0)return t.slice(s+p)}else i>a&&(e.charCodeAt(r+p)===47?c=p:p===0&&(c=0));break}var u=e.charCodeAt(r+p);if(u!==t.charCodeAt(s+p))break;u===47&&(c=p)}var d="";for(p=r+c+1;p<=n;++p)p!==n&&e.charCodeAt(p)!==47||(d.length===0?d+="..":d+="/..");return d.length>0?d+t.slice(s+c):(s+=c,t.charCodeAt(s)===47&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(bn(e),e.length===0)return".";for(var t=e.charCodeAt(0),r=t===47,n=-1,i=!0,s=e.length-1;s>=1;--s)if((t=e.charCodeAt(s))===47){if(!i){n=s;break}}else i=!1;return n===-1?r?"/":".":r&&n===1?"//":e.slice(0,n)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');bn(e);var r,n=0,i=-1,s=!0;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var l=t.length-1,a=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(c===47){if(!s){n=r+1;break}}else a===-1&&(s=!1,a=r+1),l>=0&&(c===t.charCodeAt(l)?--l==-1&&(i=r):(l=-1,i=a))}return n===i?i=a:i===-1&&(i=e.length),e.slice(n,i)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!s){n=r+1;break}}else i===-1&&(s=!1,i=r+1);return i===-1?"":e.slice(n,i)},extname:function(e){bn(e);for(var t=-1,r=0,n=-1,i=!0,s=0,l=e.length-1;l>=0;--l){var a=e.charCodeAt(l);if(a!==47)n===-1&&(i=!1,n=l+1),a===46?t===-1?t=l:s!==1&&(s=1):t!==-1&&(s=-1);else if(!i){r=l+1;break}}return t===-1||n===-1||s===0||s===1&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(t,r){var n=r.dir||r.root,i=r.base||(r.name||"")+(r.ext||"");return n?n===r.root?n+i:n+t+i:i}("/",e)},parse:function(e){bn(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var r,n=e.charCodeAt(0),i=n===47;i?(t.root="/",r=1):r=0;for(var s=-1,l=0,a=-1,c=!0,p=e.length-1,u=0;p>=r;--p)if((n=e.charCodeAt(p))!==47)a===-1&&(c=!1,a=p+1),n===46?s===-1?s=p:u!==1&&(u=1):s!==-1&&(u=-1);else if(!c){l=p+1;break}return s===-1||a===-1||u===0||u===1&&s===a-1&&s===l+1?a!==-1&&(t.base=t.name=l===0&&i?e.slice(1,a):e.slice(l,a)):(l===0&&i?(t.name=e.slice(1,s),t.base=e.slice(1,a)):(t.name=e.slice(l,s),t.base=e.slice(l,a)),t.ext=e.slice(s,a)),l>0?t.dir=e.slice(0,l-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Ci.posix=Ci;var el=Ci,d2=Object.freeze(Object.assign(Object.create(null),el,{default:el,__moduleExports:el})),En=[],Xt=[],g2=typeof Uint8Array!="undefined"?Uint8Array:Array,tl=!1;function Rf(){tl=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)En[t]=e[t],Xt[e.charCodeAt(t)]=t;Xt["-".charCodeAt(0)]=62,Xt["_".charCodeAt(0)]=63}function m2(e,t,r){for(var n,i,s=[],l=t;l<r;l+=3)n=(e[l]<<16)+(e[l+1]<<8)+e[l+2],s.push(En[(i=n)>>18&63]+En[i>>12&63]+En[i>>6&63]+En[63&i]);return s.join("")}function Mf(e){var t;tl||Rf();for(var r=e.length,n=r%3,i="",s=[],l=16383,a=0,c=r-n;a<c;a+=l)s.push(m2(e,a,a+l>c?c:a+l));return n===1?(t=e[r-1],i+=En[t>>2],i+=En[t<<4&63],i+="=="):n===2&&(t=(e[r-2]<<8)+e[r-1],i+=En[t>>10],i+=En[t>>4&63],i+=En[t<<2&63],i+="="),s.push(i),s.join("")}function Ia(e,t,r,n,i){var s,l,a=8*i-n-1,c=(1<<a)-1,p=c>>1,u=-7,d=r?i-1:0,h=r?-1:1,b=e[t+d];for(d+=h,s=b&(1<<-u)-1,b>>=-u,u+=a;u>0;s=256*s+e[t+d],d+=h,u-=8);for(l=s&(1<<-u)-1,s>>=-u,u+=n;u>0;l=256*l+e[t+d],d+=h,u-=8);if(s===0)s=1-p;else{if(s===c)return l?NaN:1/0*(b?-1:1);l+=Math.pow(2,n),s-=p}return(b?-1:1)*l*Math.pow(2,s-n)}function jf(e,t,r,n,i,s){var l,a,c,p=8*s-i-1,u=(1<<p)-1,d=u>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:s-1,m=n?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,l=u):(l=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-l))<1&&(l--,c*=2),(t+=l+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(l++,c/=2),l+d>=u?(a=0,l=u):l+d>=1?(a=(t*c-1)*Math.pow(2,i),l+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),l=0));i>=8;e[r+b]=255&a,b+=m,a/=256,i-=8);for(l=l<<i|a,p+=i;p>0;e[r+b]=255&l,b+=m,l/=256,p-=8);e[r+b-m]|=128*x}var y2={}.toString,Vf=Array.isArray||function(e){return y2.call(e)=="[object Array]"};function nl(){return $.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Un(e,t){if(nl()<t)throw new RangeError("Invalid typed array length");return $.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=$.prototype:(e===null&&(e=new $(t)),e.length=t),e}function $(e,t,r){if(!($.TYPED_ARRAY_SUPPORT||this instanceof $))return new $(e,t,r);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return rl(this,e)}return Uf(this,e,t,r)}function Uf(e,t,r,n){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer?function(i,s,l,a){if(s.byteLength,l<0||s.byteLength<l)throw new RangeError("'offset' is out of bounds");if(s.byteLength<l+(a||0))throw new RangeError("'length' is out of bounds");return s=l===void 0&&a===void 0?new Uint8Array(s):a===void 0?new Uint8Array(s,l):new Uint8Array(s,l,a),$.TYPED_ARRAY_SUPPORT?(i=s).__proto__=$.prototype:i=il(i,s),i}(e,t,r,n):typeof t=="string"?function(i,s,l){if(typeof l=="string"&&l!==""||(l="utf8"),!$.isEncoding(l))throw new TypeError('"encoding" must be a valid string encoding');var a=0|$f(s,l),c=(i=Un(i,a)).write(s,l);return c!==a&&(i=i.slice(0,c)),i}(e,t,r):function(i,s){if(vn(s)){var l=0|sl(s.length);return(i=Un(i,l)).length===0||s.copy(i,0,0,l),i}if(s){if(typeof ArrayBuffer!="undefined"&&s.buffer instanceof ArrayBuffer||"length"in s)return typeof s.length!="number"||(a=s.length)!=a?Un(i,0):il(i,s);if(s.type==="Buffer"&&Vf(s.data))return il(i,s.data)}var a;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function qf(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function rl(e,t){if(qf(t),e=Un(e,t<0?0:0|sl(t)),!$.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function il(e,t){var r=t.length<0?0:0|sl(t.length);e=Un(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function sl(e){if(e>=nl())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+nl().toString(16)+" bytes");return 0|e}function vn(e){return!(e==null||!e._isBuffer)}function $f(e,t){if(vn(e))return e.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var r=e.length;if(r===0)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Ma(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Qf(e).length;default:if(n)return Ma(e).length;t=(""+t).toLowerCase(),n=!0}}function D2(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return F2(this,t,r);case"utf8":case"utf-8":return zf(this,t,r);case"ascii":return S2(this,t,r);case"latin1":case"binary":return w2(this,t,r);case"base64":return A2(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T2(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function jr(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Wf(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if(typeof t=="string"&&(t=$.from(t,n)),vn(t))return t.length===0?-1:Gf(e,t,r,n,i);if(typeof t=="number")return t&=255,$.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Gf(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Gf(e,t,r,n,i){var s,l=1,a=e.length,c=t.length;if(n!==void 0&&((n=String(n).toLowerCase())==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,a/=2,c/=2,r/=2}function p(b,m){return l===1?b[m]:b.readUInt16BE(m*l)}if(i){var u=-1;for(s=r;s<a;s++)if(p(e,s)===p(t,u===-1?0:s-u)){if(u===-1&&(u=s),s-u+1===c)return u*l}else u!==-1&&(s-=s-u),u=-1}else for(r+c>a&&(r=a-c),s=r;s>=0;s--){for(var d=!0,h=0;h<c;h++)if(p(e,s+h)!==p(t,h)){d=!1;break}if(d)return s}return-1}function b2(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");n>s/2&&(n=s/2);for(var l=0;l<n;++l){var a=parseInt(t.substr(2*l,2),16);if(isNaN(a))return l;e[r+l]=a}return l}function E2(e,t,r,n){return ja(Ma(t,e.length-r),e,r,n)}function Hf(e,t,r,n){return ja(function(i){for(var s=[],l=0;l<i.length;++l)s.push(255&i.charCodeAt(l));return s}(t),e,r,n)}function v2(e,t,r,n){return Hf(e,t,r,n)}function C2(e,t,r,n){return ja(Qf(t),e,r,n)}function x2(e,t,r,n){return ja(function(i,s){for(var l,a,c,p=[],u=0;u<i.length&&!((s-=2)<0);++u)a=(l=i.charCodeAt(u))>>8,c=l%256,p.push(c),p.push(a);return p}(t,e.length-r),e,r,n)}function A2(e,t,r){return t===0&&r===e.length?Mf(e):Mf(e.slice(t,r))}function zf(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var s,l,a,c,p=e[i],u=null,d=p>239?4:p>223?3:p>191?2:1;if(i+d<=r)switch(d){case 1:p<128&&(u=p);break;case 2:(192&(s=e[i+1]))==128&&(c=(31&p)<<6|63&s)>127&&(u=c);break;case 3:s=e[i+1],l=e[i+2],(192&s)==128&&(192&l)==128&&(c=(15&p)<<12|(63&s)<<6|63&l)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:s=e[i+1],l=e[i+2],a=e[i+3],(192&s)==128&&(192&l)==128&&(192&a)==128&&(c=(15&p)<<18|(63&s)<<12|(63&l)<<6|63&a)>65535&&c<1114112&&(u=c)}u===null?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=d}return function(h){var b=h.length;if(b<=Jf)return String.fromCharCode.apply(String,h);for(var m="",x=0;x<b;)m+=String.fromCharCode.apply(String,h.slice(x,x+=Jf));return m}(n)}$.TYPED_ARRAY_SUPPORT=un.TYPED_ARRAY_SUPPORT===void 0||un.TYPED_ARRAY_SUPPORT,$.poolSize=8192,$._augment=function(e){return e.__proto__=$.prototype,e},$.from=function(e,t,r){return Uf(null,e,t,r)},$.TYPED_ARRAY_SUPPORT&&($.prototype.__proto__=Uint8Array.prototype,$.__proto__=Uint8Array),$.alloc=function(e,t,r){return function(n,i,s,l){return qf(i),i<=0?Un(n,i):s!==void 0?typeof l=="string"?Un(n,i).fill(s,l):Un(n,i).fill(s):Un(n,i)}(null,e,t,r)},$.allocUnsafe=function(e){return rl(null,e)},$.allocUnsafeSlow=function(e){return rl(null,e)},$.isBuffer=function(e){return e!=null&&(!!e._isBuffer||Zf(e)||function(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&Zf(t.slice(0,0))}(e))},$.compare=function(e,t){if(!vn(e)||!vn(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,s=Math.min(r,n);i<s;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},$.isEncoding=function(e){switch(String(e).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}},$.concat=function(e,t){if(!Vf(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return $.alloc(0);var r;if(t===void 0)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=$.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var s=e[r];if(!vn(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},$.byteLength=$f,$.prototype._isBuffer=!0,$.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)jr(this,t,t+1);return this},$.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)jr(this,t,t+3),jr(this,t+1,t+2);return this},$.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)jr(this,t,t+7),jr(this,t+1,t+6),jr(this,t+2,t+5),jr(this,t+3,t+4);return this},$.prototype.toString=function(){var e=0|this.length;return e===0?"":arguments.length===0?zf(this,0,e):D2.apply(this,arguments)},$.prototype.equals=function(e){if(!vn(e))throw new TypeError("Argument must be a Buffer");return this===e||$.compare(this,e)===0},$.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},$.prototype.compare=function(e,t,r,n,i){if(!vn(e))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),r===void 0&&(r=e?e.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var s=(i>>>=0)-(n>>>=0),l=(r>>>=0)-(t>>>=0),a=Math.min(s,l),c=this.slice(n,i),p=e.slice(t,r),u=0;u<a;++u)if(c[u]!==p[u]){s=c[u],l=p[u];break}return s<l?-1:l<s?1:0},$.prototype.includes=function(e,t,r){return this.indexOf(e,t,r)!==-1},$.prototype.indexOf=function(e,t,r){return Wf(this,e,t,r,!0)},$.prototype.lastIndexOf=function(e,t,r){return Wf(this,e,t,r,!1)},$.prototype.write=function(e,t,r,n){if(t===void 0)n="utf8",r=this.length,t=0;else if(r===void 0&&typeof t=="string")n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,n===void 0&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((r===void 0||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var s=!1;;)switch(n){case"hex":return b2(this,e,t,r);case"utf8":case"utf-8":return E2(this,e,t,r);case"ascii":return Hf(this,e,t,r);case"latin1":case"binary":return v2(this,e,t,r);case"base64":return C2(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x2(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},$.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Jf=4096;function S2(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function w2(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function F2(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",s=t;s<r;++s)i+=_2(e[s]);return i}function T2(e,t,r){for(var n=e.slice(t,r),i="",s=0;s<n.length;s+=2)i+=String.fromCharCode(n[s]+256*n[s+1]);return i}function lt(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function Bt(e,t,r,n,i,s){if(!vn(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function La(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,s=Math.min(e.length-r,2);i<s;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function Ra(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,s=Math.min(e.length-r,4);i<s;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function Xf(e,t,r,n,i,s){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Yf(e,t,r,n,i){return i||Xf(e,0,r,4),jf(e,t,r,n,23,4),r+4}function Kf(e,t,r,n,i){return i||Xf(e,0,r,8),jf(e,t,r,n,52,8),r+8}$.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=t===void 0?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),$.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=$.prototype;else{var i=t-e;r=new $(i,void 0);for(var s=0;s<i;++s)r[s]=this[s+e]}return r},$.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||lt(e,t,this.length);for(var n=this[e],i=1,s=0;++s<t&&(i*=256);)n+=this[e+s]*i;return n},$.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||lt(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},$.prototype.readUInt8=function(e,t){return t||lt(e,1,this.length),this[e]},$.prototype.readUInt16LE=function(e,t){return t||lt(e,2,this.length),this[e]|this[e+1]<<8},$.prototype.readUInt16BE=function(e,t){return t||lt(e,2,this.length),this[e]<<8|this[e+1]},$.prototype.readUInt32LE=function(e,t){return t||lt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},$.prototype.readUInt32BE=function(e,t){return t||lt(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},$.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||lt(e,t,this.length);for(var n=this[e],i=1,s=0;++s<t&&(i*=256);)n+=this[e+s]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},$.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||lt(e,t,this.length);for(var n=t,i=1,s=this[e+--n];n>0&&(i*=256);)s+=this[e+--n]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*t)),s},$.prototype.readInt8=function(e,t){return t||lt(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},$.prototype.readInt16LE=function(e,t){t||lt(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},$.prototype.readInt16BE=function(e,t){t||lt(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},$.prototype.readInt32LE=function(e,t){return t||lt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},$.prototype.readInt32BE=function(e,t){return t||lt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},$.prototype.readFloatLE=function(e,t){return t||lt(e,4,this.length),Ia(this,e,!0,23,4)},$.prototype.readFloatBE=function(e,t){return t||lt(e,4,this.length),Ia(this,e,!1,23,4)},$.prototype.readDoubleLE=function(e,t){return t||lt(e,8,this.length),Ia(this,e,!0,52,8)},$.prototype.readDoubleBE=function(e,t){return t||lt(e,8,this.length),Ia(this,e,!1,52,8)},$.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||Bt(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,s=0;for(this[t]=255&e;++s<r&&(i*=256);)this[t+s]=e/i&255;return t+r},$.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||Bt(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+r},$.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||Bt(this,e,t,1,255,0),$.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},$.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||Bt(this,e,t,2,65535,0),$.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):La(this,e,t,!0),t+2},$.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||Bt(this,e,t,2,65535,0),$.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):La(this,e,t,!1),t+2},$.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||Bt(this,e,t,4,4294967295,0),$.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ra(this,e,t,!0),t+4},$.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||Bt(this,e,t,4,4294967295,0),$.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ra(this,e,t,!1),t+4},$.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Bt(this,e,t,r,i-1,-i)}var s=0,l=1,a=0;for(this[t]=255&e;++s<r&&(l*=256);)e<0&&a===0&&this[t+s-1]!==0&&(a=1),this[t+s]=(e/l>>0)-a&255;return t+r},$.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Bt(this,e,t,r,i-1,-i)}var s=r-1,l=1,a=0;for(this[t+s]=255&e;--s>=0&&(l*=256);)e<0&&a===0&&this[t+s+1]!==0&&(a=1),this[t+s]=(e/l>>0)-a&255;return t+r},$.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||Bt(this,e,t,1,127,-128),$.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},$.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||Bt(this,e,t,2,32767,-32768),$.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):La(this,e,t,!0),t+2},$.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||Bt(this,e,t,2,32767,-32768),$.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):La(this,e,t,!1),t+2},$.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||Bt(this,e,t,4,2147483647,-2147483648),$.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ra(this,e,t,!0),t+4},$.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||Bt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),$.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ra(this,e,t,!1),t+4},$.prototype.writeFloatLE=function(e,t,r){return Yf(this,e,t,!0,r)},$.prototype.writeFloatBE=function(e,t,r){return Yf(this,e,t,!1,r)},$.prototype.writeDoubleLE=function(e,t,r){return Kf(this,e,t,!0,r)},$.prototype.writeDoubleBE=function(e,t,r){return Kf(this,e,t,!1,r)},$.prototype.copy=function(e,t,r,n){if(r||(r=0),n||n===0||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,s=n-r;if(this===e&&r<t&&t<n)for(i=s-1;i>=0;--i)e[i+t]=this[i+r];else if(s<1e3||!$.TYPED_ARRAY_SUPPORT)for(i=0;i<s;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+s),t);return s},$.prototype.fill=function(e,t,r,n){if(typeof e=="string"){if(typeof t=="string"?(n=t,t=0,r=this.length):typeof r=="string"&&(n=r,r=this.length),e.length===1){var i=e.charCodeAt(0);i<256&&(e=i)}if(n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!$.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else typeof e=="number"&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var s;if(t>>>=0,r=r===void 0?this.length:r>>>0,e||(e=0),typeof e=="number")for(s=t;s<r;++s)this[s]=e;else{var l=vn(e)?e:Ma(new $(e,n).toString()),a=l.length;for(s=0;s<r-t;++s)this[s+t]=l[s%a]}return this};var k2=/[^+\/0-9A-Za-z-_]/g;function _2(e){return e<16?"0"+e.toString(16):e.toString(16)}function Ma(e,t){var r;t=t||1/0;for(var n=e.length,i=null,s=[],l=0;l<n;++l){if((r=e.charCodeAt(l))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(l+1===n){(t-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function Qf(e){return function(t){var r,n,i,s,l,a;tl||Rf();var c=t.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");l=t[c-2]==="="?2:t[c-1]==="="?1:0,a=new g2(3*c/4-l),i=l>0?c-4:c;var p=0;for(r=0,n=0;r<i;r+=4,n+=3)s=Xt[t.charCodeAt(r)]<<18|Xt[t.charCodeAt(r+1)]<<12|Xt[t.charCodeAt(r+2)]<<6|Xt[t.charCodeAt(r+3)],a[p++]=s>>16&255,a[p++]=s>>8&255,a[p++]=255&s;return l===2?(s=Xt[t.charCodeAt(r)]<<2|Xt[t.charCodeAt(r+1)]>>4,a[p++]=255&s):l===1&&(s=Xt[t.charCodeAt(r)]<<10|Xt[t.charCodeAt(r+1)]<<4|Xt[t.charCodeAt(r+2)]>>2,a[p++]=s>>8&255,a[p++]=255&s),a}(function(t){if((t=function(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}(t).replace(k2,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function ja(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Zf(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var As=or(h2),P2=class{constructor(e,t){(t=t||{}).readChunk||(t.readChunk=1024),t.newLineCharacter?t.newLineCharacter=t.newLineCharacter.charCodeAt(0):t.newLineCharacter=10,this.fd=typeof e=="number"?e:As.openSync(e,"r"),this.options=t,this.newLineCharacter=t.newLineCharacter,this.reset()}_searchInBuffer(e,t){let r=-1;for(let n=0;n<=e.length;n++)if(e[n]===t){r=n;break}return r}reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}close(){As.closeSync(this.fd),this.fd=null}_extractLines(e){let t,r=[],n=0,i=0;for(;;){let l=e[n++];if(l===this.newLineCharacter)t=e.slice(i,n),r.push(t),i=n;else if(l===void 0)break}let s=e.slice(i,n);return s.length&&r.push(s),r}_readChunk(e){let t,r=0,n=[];do{let s=new $(this.options.readChunk);t=As.readSync(this.fd,s,0,this.options.readChunk,this.fdPosition),r+=t,this.fdPosition=this.fdPosition+t,n.push(s)}while(t&&this._searchInBuffer(n[n.length-1],this.options.newLineCharacter)===-1);let i=$.concat(n);return t<this.options.readChunk&&(this.eofReached=!0,i=i.slice(0,r)),r&&(this.linesCache=this._extractLines(i),e&&(this.linesCache[0]=$.concat([e,this.linesCache[0]]))),r}next(){if(!this.fd)return!1;let e,t=!1;return this.eofReached&&this.linesCache.length===0?t:(this.linesCache.length||(e=this._readChunk()),this.linesCache.length&&(t=this.linesCache.shift(),t[t.length-1]!==this.newLineCharacter&&(e=this._readChunk(t),e&&(t=this.linesCache.shift()))),this.eofReached&&this.linesCache.length===0&&this.close(),t&&t[t.length-1]===this.newLineCharacter&&(t=t.slice(0,t.length-1)),t)}},B2=function(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n};class N2 extends Error{}class O2 extends Error{}class I2 extends Error{}var eh={ConfigError:N2,DebugError:O2,UndefinedParserError:I2},th=function(e,t){return(th=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])})(e,t)};var nh=function(){return(nh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function rh(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ih(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),l=[];try{for(;(t===void 0||t-- >0)&&!(n=s.next()).done;)l.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return l}function Ss(e){return this instanceof Ss?(this.v=e,this):new Ss(e)}var Je=Object.freeze({__proto__:null,__extends:function(e,t){function r(){this.constructor=e}th(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},get __assign(){return nh},__rest:function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},__decorate:function(e,t,r,n){var i,s=arguments.length,l=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(l=(s<3?i(l):s>3?i(t,r,l):i(t,r))||l);return s>3&&l&&Object.defineProperty(t,r,l),l},__param:function(e,t){return function(r,n){t(r,n,e)}},__metadata:function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},__awaiter:function(e,t,r,n){return new(r||(r=Promise))(function(i,s){function l(p){try{c(n.next(p))}catch(u){s(u)}}function a(p){try{c(n.throw(p))}catch(u){s(u)}}function c(p){var u;p.done?i(p.value):(u=p.value,u instanceof r?u:new r(function(d){d(u)})).then(l,a)}c((n=n.apply(e,t||[])).next())})},__generator:function(e,t){var r,n,i,s,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(p){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;l;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,n=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(i=l.trys,!((i=i.length>0&&i[i.length-1])||u[0]!==6&&u[0]!==2)){l=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){l.label=u[1];break}if(u[0]===6&&l.label<i[1]){l.label=i[1],i=u;break}if(i&&l.label<i[2]){l.label=i[2],l.ops.push(u);break}i[2]&&l.ops.pop(),l.trys.pop();continue}u=t.call(e,l)}catch(d){u=[6,d],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([c,p])}}},__createBinding:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]},__exportStar:function(e,t){for(var r in e)r==="default"||t.hasOwnProperty(r)||(t[r]=e[r])},__values:rh,__read:ih,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ih(arguments[t]));return e},__spreadArrays:function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var s=arguments[t],l=0,a=s.length;l<a;l++,i++)n[i]=s[l];return n},__await:Ss,__asyncGenerator:function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),s=[];return n={},l("next"),l("throw"),l("return"),n[Symbol.asyncIterator]=function(){return this},n;function l(d){i[d]&&(n[d]=function(h){return new Promise(function(b,m){s.push([d,h,b,m])>1||a(d,h)})})}function a(d,h){try{(b=i[d](h)).value instanceof Ss?Promise.resolve(b.value.v).then(c,p):u(s[0][2],b)}catch(m){u(s[0][3],m)}var b}function c(d){a("next",d)}function p(d){a("throw",d)}function u(d,h){d(h),s.shift(),s.length&&a(s[0][0],s[0][1])}},__asyncDelegator:function(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,s){t[i]=e[i]?function(l){return(r=!r)?{value:Ss(e[i](l)),done:i==="return"}:s?s(l):l}:s}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=rh(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(s){return new Promise(function(l,a){(function(c,p,u,d){Promise.resolve(d).then(function(h){c({value:h,done:u})},p)})(l,a,(s=e[i](s)).done,s.value)})}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet:function(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}}),sh=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.apiDescriptor={key:r=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(r)?r:JSON.stringify(r),value(r){if(r===null||typeof r!="object")return JSON.stringify(r);if(Array.isArray(r))return"[".concat(r.map(i=>t.apiDescriptor.value(i)).join(", "),"]");let n=Object.keys(r);return n.length===0?"{}":"{ ".concat(n.map(i=>"".concat(t.apiDescriptor.key(i),": ").concat(t.apiDescriptor.value(r[i]))).join(", ")," }")},pair:({key:r,value:n})=>t.apiDescriptor.value({[r]:n})}}),L2=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Je.__exportStar(sh,t)}),R2=/[|\\{}()[\]^$+*?.]/g,al=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(R2,"\\$&")},Vr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Ur=te(function(e){var t={};for(var r in Vr)Vr.hasOwnProperty(r)&&(t[Vr[r]]=r);var n=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in n)if(n.hasOwnProperty(i)){if(!("channels"in n[i]))throw new Error("missing channels property: "+i);if(!("labels"in n[i]))throw new Error("missing channel labels property: "+i);if(n[i].labels.length!==n[i].channels)throw new Error("channel and label counts mismatch: "+i);var s=n[i].channels,l=n[i].labels;delete n[i].channels,delete n[i].labels,Object.defineProperty(n[i],"channels",{value:s}),Object.defineProperty(n[i],"labels",{value:l})}n.rgb.hsl=function(a){var c,p,u=a[0]/255,d=a[1]/255,h=a[2]/255,b=Math.min(u,d,h),m=Math.max(u,d,h),x=m-b;return m===b?c=0:u===m?c=(d-h)/x:d===m?c=2+(h-u)/x:h===m&&(c=4+(u-d)/x),(c=Math.min(60*c,360))<0&&(c+=360),p=(b+m)/2,[c,100*(m===b?0:p<=.5?x/(m+b):x/(2-m-b)),100*p]},n.rgb.hsv=function(a){var c,p,u,d,h,b=a[0]/255,m=a[1]/255,x=a[2]/255,F=Math.max(b,m,x),E=F-Math.min(b,m,x),A=function(P){return(F-P)/6/E+.5};return E===0?d=h=0:(h=E/F,c=A(b),p=A(m),u=A(x),b===F?d=u-p:m===F?d=1/3+c-u:x===F&&(d=2/3+p-c),d<0?d+=1:d>1&&(d-=1)),[360*d,100*h,100*F]},n.rgb.hwb=function(a){var c=a[0],p=a[1],u=a[2];return[n.rgb.hsl(a)[0],100*(1/255*Math.min(c,Math.min(p,u))),100*(u=1-1/255*Math.max(c,Math.max(p,u)))]},n.rgb.cmyk=function(a){var c,p=a[0]/255,u=a[1]/255,d=a[2]/255;return[100*((1-p-(c=Math.min(1-p,1-u,1-d)))/(1-c)||0),100*((1-u-c)/(1-c)||0),100*((1-d-c)/(1-c)||0),100*c]},n.rgb.keyword=function(a){var c=t[a];if(c)return c;var p,u,d,h=1/0;for(var b in Vr)if(Vr.hasOwnProperty(b)){var m=Vr[b],x=(u=a,d=m,Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)+Math.pow(u[2]-d[2],2));x<h&&(h=x,p=b)}return p},n.keyword.rgb=function(a){return Vr[a]},n.rgb.xyz=function(a){var c=a[0]/255,p=a[1]/255,u=a[2]/255;return[100*(.4124*(c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92)+.3576*(p=p>.04045?Math.pow((p+.055)/1.055,2.4):p/12.92)+.1805*(u=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92)),100*(.2126*c+.7152*p+.0722*u),100*(.0193*c+.1192*p+.9505*u)]},n.rgb.lab=function(a){var c=n.rgb.xyz(a),p=c[0],u=c[1],d=c[2];return u/=100,d/=108.883,p=(p/=95.047)>.008856?Math.pow(p,1/3):7.787*p+16/116,[116*(u=u>.008856?Math.pow(u,1/3):7.787*u+16/116)-16,500*(p-u),200*(u-(d=d>.008856?Math.pow(d,1/3):7.787*d+16/116))]},n.hsl.rgb=function(a){var c,p,u,d,h,b=a[0]/360,m=a[1]/100,x=a[2]/100;if(m===0)return[h=255*x,h,h];c=2*x-(p=x<.5?x*(1+m):x+m-x*m),d=[0,0,0];for(var F=0;F<3;F++)(u=b+1/3*-(F-1))<0&&u++,u>1&&u--,h=6*u<1?c+6*(p-c)*u:2*u<1?p:3*u<2?c+(p-c)*(2/3-u)*6:c,d[F]=255*h;return d},n.hsl.hsv=function(a){var c=a[0],p=a[1]/100,u=a[2]/100,d=p,h=Math.max(u,.01);return p*=(u*=2)<=1?u:2-u,d*=h<=1?h:2-h,[c,100*(u===0?2*d/(h+d):2*p/(u+p)),100*((u+p)/2)]},n.hsv.rgb=function(a){var c=a[0]/60,p=a[1]/100,u=a[2]/100,d=Math.floor(c)%6,h=c-Math.floor(c),b=255*u*(1-p),m=255*u*(1-p*h),x=255*u*(1-p*(1-h));switch(u*=255,d){case 0:return[u,x,b];case 1:return[m,u,b];case 2:return[b,u,x];case 3:return[b,m,u];case 4:return[x,b,u];case 5:return[u,b,m]}},n.hsv.hsl=function(a){var c,p,u,d=a[0],h=a[1]/100,b=a[2]/100,m=Math.max(b,.01);return u=(2-h)*b,p=h*m,[d,100*(p=(p/=(c=(2-h)*m)<=1?c:2-c)||0),100*(u/=2)]},n.hwb.rgb=function(a){var c,p,u,d,h,b,m,x=a[0]/360,F=a[1]/100,E=a[2]/100,A=F+E;switch(A>1&&(F/=A,E/=A),u=6*x-(c=Math.floor(6*x)),(1&c)!=0&&(u=1-u),d=F+u*((p=1-E)-F),c){default:case 6:case 0:h=p,b=d,m=F;break;case 1:h=d,b=p,m=F;break;case 2:h=F,b=p,m=d;break;case 3:h=F,b=d,m=p;break;case 4:h=d,b=F,m=p;break;case 5:h=p,b=F,m=d}return[255*h,255*b,255*m]},n.cmyk.rgb=function(a){var c=a[0]/100,p=a[1]/100,u=a[2]/100,d=a[3]/100;return[255*(1-Math.min(1,c*(1-d)+d)),255*(1-Math.min(1,p*(1-d)+d)),255*(1-Math.min(1,u*(1-d)+d))]},n.xyz.rgb=function(a){var c,p,u,d=a[0]/100,h=a[1]/100,b=a[2]/100;return p=-.9689*d+1.8758*h+.0415*b,u=.0557*d+-.204*h+1.057*b,c=(c=3.2406*d+-1.5372*h+-.4986*b)>.0031308?1.055*Math.pow(c,1/2.4)-.055:12.92*c,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:12.92*p,u=u>.0031308?1.055*Math.pow(u,1/2.4)-.055:12.92*u,[255*(c=Math.min(Math.max(0,c),1)),255*(p=Math.min(Math.max(0,p),1)),255*(u=Math.min(Math.max(0,u),1))]},n.xyz.lab=function(a){var c=a[0],p=a[1],u=a[2];return p/=100,u/=108.883,c=(c/=95.047)>.008856?Math.pow(c,1/3):7.787*c+16/116,[116*(p=p>.008856?Math.pow(p,1/3):7.787*p+16/116)-16,500*(c-p),200*(p-(u=u>.008856?Math.pow(u,1/3):7.787*u+16/116))]},n.lab.xyz=function(a){var c,p,u,d=a[0];c=a[1]/500+(p=(d+16)/116),u=p-a[2]/200;var h=Math.pow(p,3),b=Math.pow(c,3),m=Math.pow(u,3);return p=h>.008856?h:(p-16/116)/7.787,c=b>.008856?b:(c-16/116)/7.787,u=m>.008856?m:(u-16/116)/7.787,[c*=95.047,p*=100,u*=108.883]},n.lab.lch=function(a){var c,p=a[0],u=a[1],d=a[2];return(c=360*Math.atan2(d,u)/2/Math.PI)<0&&(c+=360),[p,Math.sqrt(u*u+d*d),c]},n.lch.lab=function(a){var c,p=a[0],u=a[1];return c=a[2]/360*2*Math.PI,[p,u*Math.cos(c),u*Math.sin(c)]},n.rgb.ansi16=function(a){var c=a[0],p=a[1],u=a[2],d=1 in arguments?arguments[1]:n.rgb.hsv(a)[2];if((d=Math.round(d/50))===0)return 30;var h=30+(Math.round(u/255)<<2|Math.round(p/255)<<1|Math.round(c/255));return d===2&&(h+=60),h},n.hsv.ansi16=function(a){return n.rgb.ansi16(n.hsv.rgb(a),a[2])},n.rgb.ansi256=function(a){var c=a[0],p=a[1],u=a[2];return c===p&&p===u?c<8?16:c>248?231:Math.round((c-8)/247*24)+232:16+36*Math.round(c/255*5)+6*Math.round(p/255*5)+Math.round(u/255*5)},n.ansi16.rgb=function(a){var c=a%10;if(c===0||c===7)return a>50&&(c+=3.5),[c=c/10.5*255,c,c];var p=.5*(1+~~(a>50));return[(1&c)*p*255,(c>>1&1)*p*255,(c>>2&1)*p*255]},n.ansi256.rgb=function(a){if(a>=232){var c=10*(a-232)+8;return[c,c,c]}var p;return a-=16,[Math.floor(a/36)/5*255,Math.floor((p=a%36)/6)/5*255,p%6/5*255]},n.rgb.hex=function(a){var c=(((255&Math.round(a[0]))<<16)+((255&Math.round(a[1]))<<8)+(255&Math.round(a[2]))).toString(16).toUpperCase();return"000000".substring(c.length)+c},n.hex.rgb=function(a){var c=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!c)return[0,0,0];var p=c[0];c[0].length===3&&(p=p.split("").map(function(d){return d+d}).join(""));var u=parseInt(p,16);return[u>>16&255,u>>8&255,255&u]},n.rgb.hcg=function(a){var c,p=a[0]/255,u=a[1]/255,d=a[2]/255,h=Math.max(Math.max(p,u),d),b=Math.min(Math.min(p,u),d),m=h-b;return c=m<=0?0:h===p?(u-d)/m%6:h===u?2+(d-p)/m:4+(p-u)/m+4,c/=6,[360*(c%=1),100*m,100*(m<1?b/(1-m):0)]},n.hsl.hcg=function(a){var c=a[1]/100,p=a[2]/100,u=1,d=0;return(u=p<.5?2*c*p:2*c*(1-p))<1&&(d=(p-.5*u)/(1-u)),[a[0],100*u,100*d]},n.hsv.hcg=function(a){var c=a[1]/100,p=a[2]/100,u=c*p,d=0;return u<1&&(d=(p-u)/(1-u)),[a[0],100*u,100*d]},n.hcg.rgb=function(a){var c=a[0]/360,p=a[1]/100,u=a[2]/100;if(p===0)return[255*u,255*u,255*u];var d,h=[0,0,0],b=c%1*6,m=b%1,x=1-m;switch(Math.floor(b)){case 0:h[0]=1,h[1]=m,h[2]=0;break;case 1:h[0]=x,h[1]=1,h[2]=0;break;case 2:h[0]=0,h[1]=1,h[2]=m;break;case 3:h[0]=0,h[1]=x,h[2]=1;break;case 4:h[0]=m,h[1]=0,h[2]=1;break;default:h[0]=1,h[1]=0,h[2]=x}return d=(1-p)*u,[255*(p*h[0]+d),255*(p*h[1]+d),255*(p*h[2]+d)]},n.hcg.hsv=function(a){var c=a[1]/100,p=c+a[2]/100*(1-c),u=0;return p>0&&(u=c/p),[a[0],100*u,100*p]},n.hcg.hsl=function(a){var c=a[1]/100,p=a[2]/100*(1-c)+.5*c,u=0;return p>0&&p<.5?u=c/(2*p):p>=.5&&p<1&&(u=c/(2*(1-p))),[a[0],100*u,100*p]},n.hcg.hwb=function(a){var c=a[1]/100,p=c+a[2]/100*(1-c);return[a[0],100*(p-c),100*(1-p)]},n.hwb.hcg=function(a){var c=a[1]/100,p=1-a[2]/100,u=p-c,d=0;return u<1&&(d=(p-u)/(1-u)),[a[0],100*u,100*d]},n.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},n.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},n.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},n.gray.hsl=n.gray.hsv=function(a){return[0,0,a[0]]},n.gray.hwb=function(a){return[0,100,a[0]]},n.gray.cmyk=function(a){return[0,0,0,a[0]]},n.gray.lab=function(a){return[a[0],0,0]},n.gray.hex=function(a){var c=255&Math.round(a[0]/100*255),p=((c<<16)+(c<<8)+c).toString(16).toUpperCase();return"000000".substring(p.length)+p},n.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]}});function M2(e){var t=function(){for(var p={},u=Object.keys(Ur),d=u.length,h=0;h<d;h++)p[u[h]]={distance:-1,parent:null};return p}(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Ur[n]),s=i.length,l=0;l<s;l++){var a=i[l],c=t[a];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(a))}return t}function j2(e,t){return function(r){return t(e(r))}}function V2(e,t){for(var r=[t[e].parent,e],n=Ur[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=j2(Ur[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var xi={};Object.keys(Ur).forEach(function(e){xi[e]={},Object.defineProperty(xi[e],"channels",{value:Ur[e].channels}),Object.defineProperty(xi[e],"labels",{value:Ur[e].labels});var t=function(r){for(var n=M2(r),i={},s=Object.keys(n),l=s.length,a=0;a<l;a++){var c=s[a];n[c].parent!==null&&(i[c]=V2(c,n))}return i}(e);Object.keys(t).forEach(function(r){var n=t[r];xi[e][r]=function(i){var s=function(l){if(l==null)return l;arguments.length>1&&(l=Array.prototype.slice.call(arguments));var a=i(l);if(typeof a=="object")for(var c=a.length,p=0;p<c;p++)a[p]=Math.round(a[p]);return a};return"conversion"in i&&(s.conversion=i.conversion),s}(n),xi[e][r].raw=function(i){var s=function(l){return l==null?l:(arguments.length>1&&(l=Array.prototype.slice.call(arguments)),i(l))};return"conversion"in i&&(s.conversion=i.conversion),s}(n)})});var Ai=xi,Ye=te(function(e){let t=(i,s)=>function(){let l=i.apply(Ai,arguments);return"[".concat(l+s,"m")},r=(i,s)=>function(){let l=i.apply(Ai,arguments);return"[".concat(38+s,";5;").concat(l,"m")},n=(i,s)=>function(){let l=i.apply(Ai,arguments);return"[".concat(38+s,";2;").concat(l[0],";").concat(l[1],";").concat(l[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){let i=new Map,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};s.color.grey=s.color.gray;for(let c of Object.keys(s)){let p=s[c];for(let u of Object.keys(p)){let d=p[u];s[u]={open:"[".concat(d[0],"m"),close:"[".concat(d[1],"m")},p[u]=s[u],i.set(d[0],d[1])}Object.defineProperty(s,c,{value:p,enumerable:!1}),Object.defineProperty(s,"codes",{value:i,enumerable:!1})}let l=c=>c,a=(c,p,u)=>[c,p,u];s.color.close="[39m",s.bgColor.close="[49m",s.color.ansi={ansi:t(l,0)},s.color.ansi256={ansi256:r(l,0)},s.color.ansi16m={rgb:n(a,0)},s.bgColor.ansi={ansi:t(l,10)},s.bgColor.ansi256={ansi256:r(l,10)},s.bgColor.ansi16m={rgb:n(a,10)};for(let c of Object.keys(Ai)){if(typeof Ai[c]!="object")continue;let p=Ai[c];c==="ansi16"&&(c="ansi"),"ansi16"in p&&(s.color.ansi[c]=t(p.ansi16,0),s.bgColor.ansi[c]=t(p.ansi16,10)),"ansi256"in p&&(s.color.ansi256[c]=r(p.ansi256,0),s.bgColor.ansi256[c]=r(p.ansi256,10)),"rgb"in p&&(s.color.ansi16m[c]=n(p.rgb,0),s.bgColor.ansi16m[c]=n(p.rgb,10))}return s}})}),He=(e,t)=>{t=t||Le.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)},Va=or(Object.freeze({__proto__:null,default:{EOL:`
|
|
113
|
-
`,platform:()=>"browser",cpus:()=>[{model:"Prettier"}]}}));let Dt=Le.env,Si;function
|
|
114
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a","\x07"]]);function uh(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):G2.get(e)||e}function H2(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n)if(isNaN(s)){if(!(i=s.match($2)))throw new Error("Invalid Chalk template style argument: ".concat(s," (in style '").concat(e,"')"));r.push(i[2].replace(W2,(l,a,c)=>a?uh(a):c))}else r.push(Number(s));return r}function z2(e){ah.lastIndex=0;let t=[],r;for(;(r=ah.exec(e))!==null;){let n=r[1];if(r[2]){let i=H2(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function oh(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error("Unknown Chalk style: ".concat(i));n=r[i].length>0?n[i].apply(n,r[i]):n[i]}return n}var J2=(e,t)=>{let r=[],n=[],i=[];if(t.replace(q2,(s,l,a,c,p,u)=>{if(l)i.push(uh(l));else if(c){let d=i.join("");i=[],n.push(r.length===0?d:oh(e,r)(d)),r.push({inverse:a,styles:z2(c)})}else if(p){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(oh(e,r)(i.join(""))),i=[],r.pop()}else i.push(u)}),n.push(i.join("")),r.length>0){let s="Chalk template literal is missing ".concat(r.length," closing bracket").concat(r.length===1?"":"s"," (`}`)");throw new Error(s)}return n.join("")},qr=te(function(e){let t=U2.stdout,r=Le.platform==="win32"&&!(Le.env.TERM||"").toLowerCase().startsWith("xterm"),n=["ansi","ansi","ansi256","ansi16m"],i=new Set(["gray"]),s=Object.create(null);function l(h,b){b=b||{};let m=t?t.level:0;h.level=b.level===void 0?m:b.level,h.enabled="enabled"in b?b.enabled:h.level>0}function a(h){if(!this||!(this instanceof a)||this.template){let b={};return l(b,h),b.template=function(){let m=[].slice.call(arguments);return d.apply(null,[b.template].concat(m))},Object.setPrototypeOf(b,a.prototype),Object.setPrototypeOf(b.template,b),b.template.constructor=a,b.template}l(this,h)}r&&(Ye.blue.open="[94m");for(let h of Object.keys(Ye))Ye[h].closeRe=new RegExp(al(Ye[h].close),"g"),s[h]={get(){let b=Ye[h];return p.call(this,this._styles?this._styles.concat(b):[b],this._empty,h)}};s.visible={get(){return p.call(this,this._styles||[],!0,"visible")}},Ye.color.closeRe=new RegExp(al(Ye.color.close),"g");for(let h of Object.keys(Ye.color.ansi))i.has(h)||(s[h]={get(){let b=this.level;return function(){let m=Ye.color[n[b]][h].apply(null,arguments),x={open:m,close:Ye.color.close,closeRe:Ye.color.closeRe};return p.call(this,this._styles?this._styles.concat(x):[x],this._empty,h)}}});Ye.bgColor.closeRe=new RegExp(al(Ye.bgColor.close),"g");for(let h of Object.keys(Ye.bgColor.ansi))i.has(h)||(s["bg"+h[0].toUpperCase()+h.slice(1)]={get(){let b=this.level;return function(){let m=Ye.bgColor[n[b]][h].apply(null,arguments),x={open:m,close:Ye.bgColor.close,closeRe:Ye.bgColor.closeRe};return p.call(this,this._styles?this._styles.concat(x):[x],this._empty,h)}}});let c=Object.defineProperties(()=>{},s);function p(h,b,m){let x=function(){return u.apply(x,arguments)};x._styles=h,x._empty=b;let F=this;return Object.defineProperty(x,"level",{enumerable:!0,get:()=>F.level,set(E){F.level=E}}),Object.defineProperty(x,"enabled",{enumerable:!0,get:()=>F.enabled,set(E){F.enabled=E}}),x.hasGrey=this.hasGrey||m==="gray"||m==="grey",x.__proto__=c,x}function u(){let h=arguments,b=h.length,m=String(arguments[0]);if(b===0)return"";if(b>1)for(let F=1;F<b;F++)m+=" "+h[F];if(!this.enabled||this.level<=0||!m)return this._empty?"":m;let x=Ye.dim.open;r&&this.hasGrey&&(Ye.dim.open="");for(let F of this._styles.slice().reverse())m=F.open+m.replace(F.closeRe,F.open)+F.close,m=m.replace(/\r?\n/g,"".concat(F.close,"$&").concat(F.open));return Ye.dim.open=x,m}function d(h,b){if(!Array.isArray(b))return[].slice.call(arguments,1).join(" ");let m=[].slice.call(arguments,2),x=[b.raw[0]];for(let F=1;F<b.length;F++)x.push(String(m[F-1]).replace(/[{}\\]/g,"\\$&")),x.push(String(b.raw[F]));return J2(h,x.join(""))}Object.defineProperties(a.prototype,s),e.exports=a(),e.exports.supportsColor=t,e.exports.default=e.exports}),lh=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.commonDeprecatedHandler=(r,n,{descriptor:i})=>{let s=["".concat(qr.default.yellow(typeof r=="string"?i.key(r):i.pair(r))," is deprecated")];return n&&s.push("we now treat it as ".concat(qr.default.blue(typeof n=="string"?i.key(n):i.pair(n)))),s.join("; ")+"."}}),X2=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Je.__exportStar(lh,t)}),Y2=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.commonInvalidHandler=(r,n,i)=>["Invalid ".concat(qr.default.red(i.descriptor.key(r))," value."),"Expected ".concat(qr.default.blue(i.schemas[r].expected(i)),","),"but received ".concat(qr.default.red(i.descriptor.value(n)),".")].join(" ")}),ch=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Je.__exportStar(Y2,t)}),ol=[],ph=[],fh=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.levenUnknownHandler=(r,n,{descriptor:i,logger:s,schemas:l})=>{let a=["Ignored unknown option ".concat(qr.default.yellow(i.pair({key:r,value:n})),".")],c=Object.keys(l).sort().find(p=>function(u,d){if(u===d)return 0;var h=u;u.length>d.length&&(u=d,d=h);var b=u.length,m=d.length;if(b===0)return m;if(m===0)return b;for(;b>0&&u.charCodeAt(~-b)===d.charCodeAt(~-m);)b--,m--;if(b===0)return m;for(var x,F,E,A,P=0;P<b&&u.charCodeAt(P)===d.charCodeAt(P);)P++;if(m-=P,(b-=P)==0)return m;for(var L=0,N=0;L<b;)ph[P+L]=u.charCodeAt(P+L),ol[L]=++L;for(;N<m;)for(x=d.charCodeAt(P+N),E=N++,F=N,L=0;L<b;L++)A=x===ph[P+L]?E:E+1,E=ol[L],F=ol[L]=E>F?A>F?F+1:A:A>E?E+1:A;return F}(r,p)<3);c&&a.push("Did you mean ".concat(qr.default.blue(i.key(c)),"?")),s.warn(a.join(" "))}}),K2=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Je.__exportStar(fh,t)}),Q2=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Je.__exportStar(X2,t),Je.__exportStar(ch,t),Je.__exportStar(K2,t)}),hr=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let r=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function n(l,a){let c=new l(a),p=Object.create(c);for(let u of r)u in a&&(p[u]=s(a[u],c,i.prototype[u].length));return p}t.createSchema=n;class i{constructor(a){this.name=a.name}static create(a){return n(this,a)}default(a){}expected(a){return"nothing"}validate(a,c){return!1}deprecated(a,c){return!1}forward(a,c){}redirect(a,c){}overlap(a,c,p){return a}preprocess(a,c){return a}postprocess(a,c){return a}}function s(l,a,c){return typeof l=="function"?(...p)=>l(...p.slice(0,c-1),a,...p.slice(c-1)):()=>l}t.Schema=i}),Z2=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends hr.Schema{constructor(i){super(i),this._sourceName=i.sourceName}expected(i){return i.schemas[this._sourceName].expected(i)}validate(i,s){return s.schemas[this._sourceName].validate(i,s)}redirect(i,s){return this._sourceName}}t.AliasSchema=r}),eb=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends hr.Schema{expected(){return"anything"}validate(){return!0}}t.AnySchema=r}),tb=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends hr.Schema{constructor(s){var{valueSchema:l,name:a=l.name}=s,c=Je.__rest(s,["valueSchema","name"]);super(Object.assign({},c,{name:a})),this._valueSchema=l}expected(s){return"an array of ".concat(this._valueSchema.expected(s))}validate(s,l){if(!Array.isArray(s))return!1;let a=[];for(let c of s){let p=l.normalizeValidateResult(this._valueSchema.validate(c,l),c);p!==!0&&a.push(p.value)}return a.length===0||{value:a}}deprecated(s,l){let a=[];for(let c of s){let p=l.normalizeDeprecatedResult(this._valueSchema.deprecated(c,l),c);p!==!1&&a.push(...p.map(({value:u})=>({value:[u]})))}return a}forward(s,l){let a=[];for(let c of s){let p=l.normalizeForwardResult(this._valueSchema.forward(c,l),c);a.push(...p.map(n))}return a}redirect(s,l){let a=[],c=[];for(let p of s){let u=l.normalizeRedirectResult(this._valueSchema.redirect(p,l),p);"remain"in u&&a.push(u.remain),c.push(...u.redirect.map(n))}return a.length===0?{redirect:c}:{redirect:c,remain:a}}overlap(s,l){return s.concat(l)}}function n({from:i,to:s}){return{from:[i],to:s}}t.ArraySchema=r}),nb=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends hr.Schema{expected(){return"true or false"}validate(i){return typeof i=="boolean"}}t.BooleanSchema=r}),bt=te(function(e,t){function r(i,s){return typeof i=="string"||"key"in i?{from:s,to:i}:"from"in i?{from:i.from,to:i.to}:{from:s,to:i.to}}function n(i,s){return i===void 0?[]:Array.isArray(i)?i.map(l=>r(l,s)):[r(i,s)]}Object.defineProperty(t,"__esModule",{value:!0}),t.recordFromArray=function(i,s){let l=Object.create(null);for(let a of i){let c=a[s];if(l[c])throw new Error("Duplicate ".concat(s," ").concat(JSON.stringify(c)));l[c]=a}return l},t.mapFromArray=function(i,s){let l=new Map;for(let a of i){let c=a[s];if(l.has(c))throw new Error("Duplicate ".concat(s," ").concat(JSON.stringify(c)));l.set(c,a)}return l},t.createAutoChecklist=function(){let i=Object.create(null);return s=>{let l=JSON.stringify(s);return!!i[l]||(i[l]=!0,!1)}},t.partition=function(i,s){let l=[],a=[];for(let c of i)s(c)?l.push(c):a.push(c);return[l,a]},t.isInt=function(i){return i===Math.floor(i)},t.comparePrimitive=function(i,s){if(i===s)return 0;let l=typeof i,a=typeof s,c=["undefined","object","boolean","number","string"];return l!==a?c.indexOf(l)-c.indexOf(a):l!=="string"?Number(i)-Number(s):i.localeCompare(s)},t.normalizeDefaultResult=function(i){return i===void 0?{}:i},t.normalizeValidateResult=function(i,s){return i===!0||(i===!1?{value:s}:i)},t.normalizeDeprecatedResult=function(i,s,l=!1){return i!==!1&&(i===!0?!!l||[{value:s}]:"value"in i?[i]:i.length!==0&&i)},t.normalizeTransferResult=r,t.normalizeForwardResult=n,t.normalizeRedirectResult=function(i,s){let l=n(typeof i=="object"&&"redirect"in i?i.redirect:i,s);return l.length===0?{remain:s,redirect:l}:typeof i=="object"&&"remain"in i?{remain:i.remain,redirect:l}:{redirect:l}}}),rb=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends hr.Schema{constructor(i){super(i),this._choices=bt.mapFromArray(i.choices.map(s=>s&&typeof s=="object"?s:{value:s}),"value")}expected({descriptor:i}){let s=Array.from(this._choices.keys()).map(c=>this._choices.get(c)).filter(c=>!c.deprecated).map(c=>c.value).sort(bt.comparePrimitive).map(i.value),l=s.slice(0,-2),a=s.slice(-2);return l.concat(a.join(" or ")).join(", ")}validate(i){return this._choices.has(i)}deprecated(i){let s=this._choices.get(i);return!(!s||!s.deprecated)&&{value:i}}forward(i){let s=this._choices.get(i);return s?s.forward:void 0}redirect(i){let s=this._choices.get(i);return s?s.redirect:void 0}}t.ChoiceSchema=r}),hh=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends hr.Schema{expected(){return"a number"}validate(i,s){return typeof i=="number"}}t.NumberSchema=r}),ib=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends hh.NumberSchema{expected(){return"an integer"}validate(i,s){return s.normalizeValidateResult(super.validate(i,s),i)===!0&&bt.isInt(i)}}t.IntegerSchema=r}),sb=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends hr.Schema{expected(){return"a string"}validate(i){return typeof i=="string"}}t.StringSchema=r}),ab=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Je.__exportStar(Z2,t),Je.__exportStar(eb,t),Je.__exportStar(tb,t),Je.__exportStar(nb,t),Je.__exportStar(rb,t),Je.__exportStar(ib,t),Je.__exportStar(hh,t),Je.__exportStar(sb,t)}),Ua=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDescriptor=sh.apiDescriptor,t.defaultUnknownHandler=fh.levenUnknownHandler,t.defaultInvalidHandler=ch.commonInvalidHandler,t.defaultDeprecatedHandler=lh.commonDeprecatedHandler}),ub=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=(n,i,s)=>new r(i,s).normalize(n);class r{constructor(i,s){let{logger:l=console,descriptor:a=Ua.defaultDescriptor,unknown:c=Ua.defaultUnknownHandler,invalid:p=Ua.defaultInvalidHandler,deprecated:u=Ua.defaultDeprecatedHandler}=s||{};this._utils={descriptor:a,logger:l||{warn:()=>{}},schemas:bt.recordFromArray(i,"name"),normalizeDefaultResult:bt.normalizeDefaultResult,normalizeDeprecatedResult:bt.normalizeDeprecatedResult,normalizeForwardResult:bt.normalizeForwardResult,normalizeRedirectResult:bt.normalizeRedirectResult,normalizeValidateResult:bt.normalizeValidateResult},this._unknownHandler=c,this._invalidHandler=p,this._deprecatedHandler=u,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=bt.createAutoChecklist()}normalize(i){let s={},l=[i],a=()=>{for(;l.length!==0;){let c=l.shift(),p=this._applyNormalization(c,s);l.push(...p)}};a();for(let c of Object.keys(this._utils.schemas)){let p=this._utils.schemas[c];if(!(c in s)){let u=bt.normalizeDefaultResult(p.default(this._utils));"value"in u&&l.push({[c]:u.value})}}a();for(let c of Object.keys(this._utils.schemas)){let p=this._utils.schemas[c];c in s&&(s[c]=p.postprocess(s[c],this._utils))}return s}_applyNormalization(i,s){let l=[],[a,c]=bt.partition(Object.keys(i),p=>p in this._utils.schemas);for(let p of a){let u=this._utils.schemas[p],d=u.preprocess(i[p],this._utils),h=bt.normalizeValidateResult(u.validate(d,this._utils),d);if(h!==!0){let{value:F}=h,E=this._invalidHandler(p,F,this._utils);throw typeof E=="string"?new Error(E):E}let b=({from:F,to:E})=>{l.push(typeof E=="string"?{[E]:F}:{[E.key]:E.value})},m=({value:F,redirectTo:E})=>{let A=bt.normalizeDeprecatedResult(u.deprecated(F,this._utils),d,!0);if(A!==!1)if(A===!0)this._hasDeprecationWarned(p)||this._utils.logger.warn(this._deprecatedHandler(p,E,this._utils));else for(let{value:P}of A){let L={key:p,value:P};if(!this._hasDeprecationWarned(L)){let N=typeof E=="string"?{key:E,value:P}:E;this._utils.logger.warn(this._deprecatedHandler(L,N,this._utils))}}};bt.normalizeForwardResult(u.forward(d,this._utils),d).forEach(b);let x=bt.normalizeRedirectResult(u.redirect(d,this._utils),d);if(x.redirect.forEach(b),"remain"in x){let F=x.remain;s[p]=p in s?u.overlap(s[p],F,this._utils):F,m({value:F})}for(let{from:F,to:E}of x.redirect)m({value:F,redirectTo:E})}for(let p of c){let u=i[p],d=this._unknownHandler(p,u,this._utils);if(d)for(let h of Object.keys(d)){let b={[h]:d[h]};h in this._utils.schemas?l.push(b):Object.assign(s,b)}}return l}}t.Normalizer=r}),Mt=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Je.__exportStar(L2,t),Je.__exportStar(Q2,t),Je.__exportStar(ab,t),Je.__exportStar(ub,t),Je.__exportStar(hr,t)});let ll=[],dh=[],gh=(e,t)=>{if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,i=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,i--;let s,l,a,c,p=0;for(;p<n&&e.charCodeAt(p)===t.charCodeAt(p);)p++;if(n-=p,i-=p,n===0)return i;let u=0,d=0;for(;u<n;)dh[u]=e.charCodeAt(p+u),ll[u]=++u;for(;d<i;)for(s=t.charCodeAt(p+d),a=d++,l=d,u=0;u<n;u++)c=s===dh[u]?a:a+1,a=ll[u],l=ll[u]=a>l?c>l?l+1:c:c>a?a+1:c;return l};var mh=gh,ob=gh;mh.default=ob;var ws={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};let yh={};for(let e of Object.keys(ws))yh[ws[e]]=e;let Y={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var $r=Y;for(let e of Object.keys(Y)){if(!("channels"in Y[e]))throw new Error("missing channels property: "+e);if(!("labels"in Y[e]))throw new Error("missing channel labels property: "+e);if(Y[e].labels.length!==Y[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=Y[e];delete Y[e].channels,delete Y[e].labels,Object.defineProperty(Y[e],"channels",{value:t}),Object.defineProperty(Y[e],"labels",{value:r})}function lb(e){let t=function(){let n={},i=Object.keys($r);for(let s=i.length,l=0;l<s;l++)n[i[l]]={distance:-1,parent:null};return n}(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys($r[n]);for(let s=i.length,l=0;l<s;l++){let a=i[l],c=t[a];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(a))}}return t}function cb(e,t){return function(r){return t(e(r))}}function pb(e,t){let r=[t[e].parent,e],n=$r[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=cb($r[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}Y.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),l=s-i,a,c;s===i?a=0:t===s?a=(r-n)/l:r===s?a=2+(n-t)/l:n===s&&(a=4+(t-r)/l),a=Math.min(60*a,360),a<0&&(a+=360);let p=(i+s)/2;return c=s===i?0:p<=.5?l/(s+i):l/(2-s-i),[a,100*c,100*p]},Y.rgb.hsv=function(e){let t,r,n,i,s,l=e[0]/255,a=e[1]/255,c=e[2]/255,p=Math.max(l,a,c),u=p-Math.min(l,a,c),d=function(h){return(p-h)/6/u+.5};return u===0?(i=0,s=0):(s=u/p,t=d(l),r=d(a),n=d(c),l===p?i=n-r:a===p?i=1/3+t-n:c===p&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*s,100*p]},Y.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=Y.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,100*s,100*n]},Y.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n);return[100*((1-t-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*i]},Y.rgb.keyword=function(e){let t=yh[e];if(t)return t;let r,n=1/0;for(let l of Object.keys(ws)){let a=(s=ws[l],((i=e)[0]-s[0])**2+(i[1]-s[1])**2+(i[2]-s[2])**2);a<n&&(n=a,r=l)}var i,s;return r},Y.keyword.rgb=function(e){return ws[e]},Y.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;return t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},Y.rgb.lab=function(e){let t=Y.rgb.xyz(e),r=t[0],n=t[1],i=t[2];return r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,[116*n-16,500*(r-n),200*(n-i)]},Y.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,l;if(r===0)return l=255*n,[l,l,l];i=n<.5?n*(1+r):n+r-n*r;let a=2*n-i,c=[0,0,0];for(let p=0;p<3;p++)s=t+1/3*-(p-1),s<0&&s++,s>1&&s--,l=6*s<1?a+6*(i-a)*s:2*s<1?i:3*s<2?a+(i-a)*(2/3-s)*6:a,c[p]=255*l;return c},Y.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01);return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,[t,100*(n===0?2*i/(s+i):2*r/(n+r)),100*((n+r)/2)]},Y.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),l=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,l];case 1:return[a,n,l];case 2:return[l,n,c];case 3:return[l,a,n];case 4:return[c,l,n];case 5:return[n,l,a]}},Y.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,l;l=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,l/=2,[t,100*s,100*l]},Y.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let l=Math.floor(6*t),a=1-n;s=6*t-l,(1&l)!=0&&(s=1-s);let c=r+s*(a-r),p,u,d;switch(l){default:case 6:case 0:p=a,u=c,d=r;break;case 1:p=c,u=a,d=r;break;case 2:p=r,u=a,d=c;break;case 3:p=r,u=c,d=a;break;case 4:p=c,u=r,d=a;break;case 5:p=a,u=r,d=c}return[255*p,255*u,255*d]},Y.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i))]},Y.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,l;return i=3.2406*t+-1.5372*r+-.4986*n,s=-.9689*t+1.8758*r+.0415*n,l=.0557*t+-.204*r+1.057*n,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,l=l>.0031308?1.055*l**(1/2.4)-.055:12.92*l,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),l=Math.min(Math.max(0,l),1),[255*i,255*s,255*l]},Y.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];return t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*r-16,500*(t-r),200*(r-n)]},Y.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;let i=r**3,s=t**3,l=n**3;return r=i>.008856?i:(r-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,n=l>.008856?l:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},Y.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],i;return i=360*Math.atan2(n,r)/2/Math.PI,i<0&&(i+=360),[t,Math.sqrt(r*r+n*n),i]},Y.lch.lab=function(e){let t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},Y.rgb.ansi16=function(e,t=null){let[r,n,i]=e,s=t===null?Y.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let l=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(l+=60),l},Y.hsv.ansi16=function(e){return Y.rgb.ansi16(Y.hsv.rgb(e),e[2])},Y.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},Y.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},Y.ansi256.rgb=function(e){if(e>=232){let r=10*(e-232)+8;return[r,r,r]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},Y.rgb.hex=function(e){let t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},Y.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(i=>i+i).join(""));let n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},Y.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),l=i-s,a,c;return a=l<1?s/(1-l):0,c=l<=0?0:i===t?(r-n)/l%6:i===r?2+(n-t)/l:4+(t-r)/l,c/=6,c%=1,[360*c,100*l,100*a]},Y.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],100*n,100*i]},Y.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},Y.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[255*n,255*n,255*n];let i=[0,0,0],s=t%1*6,l=s%1,a=1-l,c=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=l,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=l;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=l,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-r)*n,[255*(r*i[0]+c),255*(r*i[1]+c),255*(r*i[2]+c)]},Y.hcg.hsv=function(e){let t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},Y.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},Y.hcg.hwb=function(e){let t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},Y.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,n=r-t,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},Y.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Y.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Y.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Y.gray.hsl=function(e){return[0,0,e[0]]},Y.gray.hsv=Y.gray.hsl,Y.gray.hwb=function(e){return[0,100,e[0]]},Y.gray.cmyk=function(e){return[0,0,0,e[0]]},Y.gray.lab=function(e){return[e[0],0,0]},Y.gray.hex=function(e){let t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},Y.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};let wi={};Object.keys($r).forEach(e=>{wi[e]={},Object.defineProperty(wi[e],"channels",{value:$r[e].channels}),Object.defineProperty(wi[e],"labels",{value:$r[e].labels});let t=function(r){let n=lb(r),i={},s=Object.keys(n);for(let l=s.length,a=0;a<l;a++){let c=s[a];n[c].parent!==null&&(i[c]=pb(c,n))}return i}(e);Object.keys(t).forEach(r=>{let n=t[r];wi[e][r]=function(i){let s=function(...l){let a=l[0];if(a==null)return a;a.length>1&&(l=a);let c=i(l);if(typeof c=="object")for(let p=c.length,u=0;u<p;u++)c[u]=Math.round(c[u]);return c};return"conversion"in i&&(s.conversion=i.conversion),s}(n),wi[e][r].raw=function(i){let s=function(...l){let a=l[0];return a==null?a:(a.length>1&&(l=a),i(l))};return"conversion"in i&&(s.conversion=i.conversion),s}(n)})});var fb=wi,Fs=te(function(e){let t=(p,u)=>(...d)=>{let h=p(...d);return"[".concat(h+u,"m")},r=(p,u)=>(...d)=>{let h=p(...d);return"[".concat(38+u,";5;").concat(h,"m")},n=(p,u)=>(...d)=>{let h=p(...d);return"[".concat(38+u,";2;").concat(h[0],";").concat(h[1],";").concat(h[2],"m")},i=p=>p,s=(p,u,d)=>[p,u,d],l=(p,u,d)=>{Object.defineProperty(p,u,{get:()=>{let h=d();return Object.defineProperty(p,u,{value:h,enumerable:!0,configurable:!0}),h},enumerable:!0,configurable:!0})},a,c=(p,u,d,h)=>{a===void 0&&(a=fb);let b=h?10:0,m={};for(let[x,F]of Object.entries(a)){let E=x==="ansi16"?"ansi":x;x===u?m[E]=p(d,b):typeof F=="object"&&(m[E]=p(F[u],b))}return m};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){let p=new Map,u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};u.color.gray=u.color.blackBright,u.bgColor.bgGray=u.bgColor.bgBlackBright,u.color.grey=u.color.blackBright,u.bgColor.bgGrey=u.bgColor.bgBlackBright;for(let[d,h]of Object.entries(u)){for(let[b,m]of Object.entries(h))u[b]={open:"[".concat(m[0],"m"),close:"[".concat(m[1],"m")},h[b]=u[b],p.set(m[0],m[1]);Object.defineProperty(u,d,{value:h,enumerable:!1})}return Object.defineProperty(u,"codes",{value:p,enumerable:!1}),u.color.close="[39m",u.bgColor.close="[49m",l(u.color,"ansi",()=>c(t,"ansi16",i,!1)),l(u.color,"ansi256",()=>c(r,"ansi256",i,!1)),l(u.color,"ansi16m",()=>c(n,"rgb",s,!1)),l(u.bgColor,"ansi",()=>c(t,"ansi16",i,!0)),l(u.bgColor,"ansi256",()=>c(r,"ansi256",i,!0)),l(u.bgColor,"ansi16m",()=>c(n,"rgb",s,!0)),u}})}),hb={isatty:()=>!1},Yt=(e,t=Le.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)},Dh=or(Object.freeze({__proto__:null,default:hb}));let{env:Ze}=Le,Fi;function cl(e){return e!==0&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function pl(e,t){if(Fi===0)return 0;if(Yt("color=16m")||Yt("color=full")||Yt("color=truecolor"))return 3;if(Yt("color=256"))return 2;if(e&&!t&&Fi===void 0)return 0;let r=Fi||0;if(Ze.TERM==="dumb")return r;if(Le.platform==="win32"){let n=Va.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Ze)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(n=>n in Ze)||Ze.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Ze)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ze.TEAMCITY_VERSION)?1:0;if("GITHUB_ACTIONS"in Ze)return 1;if(Ze.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ze){let n=parseInt((Ze.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ze.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ze.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ze.TERM)||"COLORTERM"in Ze?1:r}Yt("no-color")||Yt("no-colors")||Yt("color=false")||Yt("color=never")?Fi=0:(Yt("color")||Yt("colors")||Yt("color=true")||Yt("color=always"))&&(Fi=1),"FORCE_COLOR"in Ze&&(Fi=Ze.FORCE_COLOR==="true"?1:Ze.FORCE_COLOR==="false"?0:Ze.FORCE_COLOR.length===0?1:Math.min(parseInt(Ze.FORCE_COLOR,10),3));var db={supportsColor:function(e){return cl(pl(e,e&&e.isTTY))},stdout:cl(pl(!0,Dh.isatty(1))),stderr:cl(pl(!0,Dh.isatty(2)))},gb={stringReplaceAll:(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,l="";do l+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return l+=e.substr(s),l},stringEncaseCRLFWithFirstIndex:(e,t,r,n)=>{let i=0,s="";do{let l=e[n-1]==="\r";s+=e.substr(i,(l?n-1:n)-i)+t+(l?`\r
|
|
111
|
+
`)?h.replace(/\n/g,n):h;l.push(b),i+=kf(b)}else switch(h.type){case"cursor":l.push(Yo.placeholder);break;case"concat":for(let b=h.parts.length-1;b>=0;b--)s.push([u,d,h.parts[b]]);break;case"indent":s.push([_f(u,t),d,h.contents]);break;case"align":s.push([Pf(u,h.n,t),d,h.contents]);break;case"trim":i-=Qo(l);break;case"group":switch(d){case 2:if(!a){s.push([u,h.break?1:2,h.contents]);break}case 1:{a=!1;let b=[u,2,h.contents],m=r-i;if(!h.break&&Oa(b,s,m,t))s.push(b);else if(h.expandedStates){let x=h.expandedStates[h.expandedStates.length-1];if(h.break){s.push([u,1,x]);break}for(let F=1;F<h.expandedStates.length+1;F++){if(F>=h.expandedStates.length){s.push([u,1,x]);break}{let E=[u,2,h.expandedStates[F]];if(Oa(E,s,m,t)){s.push(E);break}}}}else s.push([u,1,h.contents]);break}}h.id&&(xs[h.id]=s[s.length-1][1]);break;case"fill":{let b=r-i,{parts:m}=h;if(m.length===0)break;let[x,F]=m,E=[u,2,x],A=[u,1,x],P=Oa(E,[],b,t,!0);if(m.length===1){P?s.push(E):s.push(A);break}let L=[u,2,F],N=[u,1,F];if(m.length===2){P?(s.push(L),s.push(E)):(s.push(N),s.push(A));break}m.splice(0,2);let R=[u,d,u2(m)],U=m[0];Oa([u,2,a2([x,F,U])],[],b,t,!0)?(s.push(R),s.push(L),s.push(E)):P?(s.push(R),s.push(N),s.push(E)):(s.push(R),s.push(N),s.push(A));break}case"if-break":{let b=h.groupId?xs[h.groupId]:d;b===1&&h.breakContents&&s.push([u,d,h.breakContents]),b===2&&h.flatContents&&s.push([u,d,h.flatContents]);break}case"line-suffix":c.push([u,d,h.contents]);break;case"line-suffix-boundary":c.length>0&&s.push([u,d,{type:"line",hard:!0}]);break;case"line":switch(d){case 2:if(!h.hard){h.soft||(l.push(" "),i+=1);break}a=!0;case 1:if(c.length){s.push([u,d,h]),s.push(...c.reverse()),c=[];break}h.literal?u.root?(l.push(n,u.root.value),i=u.root.length):(l.push(n),i=0):(i-=Qo(l),l.push(n+u.value),i=u.length)}}s.length===0&&c.length&&(s.push(...c.reverse()),c=[])}let p=l.indexOf(Yo.placeholder);if(p!==-1){let u=l.indexOf(Yo.placeholder,p+1),d=l.slice(0,p).join(""),h=l.slice(p+1,u).join("");return{formatted:d+h+l.slice(u+1).join(""),cursorNodeStart:d.length,cursorNodeText:h}}return{formatted:l.join("")}}};let{literalline:l2,concat:c2}=gi,Bf={};function Zo(e,t,r,n){let i=[e];for(;i.length!==0;){let s=i.pop();if(s!==Bf){if(r&&i.push(s,Bf),!t||t(s)!==!1)if(s.type==="concat"||s.type==="fill")for(let l=s.parts.length-1;l>=0;--l)i.push(s.parts[l]);else if(s.type==="if-break")s.flatContents&&i.push(s.flatContents),s.breakContents&&i.push(s.breakContents);else if(s.type==="group"&&s.expandedStates)if(n)for(let l=s.expandedStates.length-1;l>=0;--l)i.push(s.expandedStates[l]);else i.push(s.contents);else s.contents&&i.push(s.contents)}else r(i.pop())}}function pr(e,t){if(e.type==="concat"||e.type==="fill"){let r=e.parts.map(n=>pr(n,t));return t(Object.assign({},e,{parts:r}))}if(e.type==="if-break"){let r=e.breakContents&&pr(e.breakContents,t),n=e.flatContents&&pr(e.flatContents,t);return t(Object.assign({},e,{breakContents:r,flatContents:n}))}if(e.contents){let r=pr(e.contents,t);return t(Object.assign({},e,{contents:r}))}return t(e)}function el(e,t,r){let n=r,i=!1;return Zo(e,function(s){let l=t(s);if(l!==void 0&&(i=!0,n=l),i)return!1}),n}function p2(e){return typeof e!="string"&&(e.type==="line"||void 0)}function f2(e){return!(e.type!=="group"||!e.break)||!(e.type!=="line"||!e.hard)||e.type==="break-parent"||void 0}function Nf(e){if(e.length>0){let t=e[e.length-1];t.expandedStates||(t.break=!0)}return null}function h2(e){return e.type!=="line"||e.hard?e.type==="if-break"?e.flatContents||"":e:e.soft?"":" "}function Of(e){let t=[],r=e.filter(Boolean);for(;r.length!==0;){let n=r.shift();n&&(n.type!=="concat"?t.length===0||typeof t[t.length-1]!="string"||typeof n!="string"?t.push(n):t[t.length-1]+=n:r.unshift(...n.parts))}return t}function fr(e){if(e.type==="concat"){let t=[];for(let r=0;r<e.parts.length;++r){let n=e.parts[r];if(typeof n!="string"&&n.type==="concat")t.push(...fr(n).parts);else{let i=fr(n);i!==""&&t.push(i)}}return Object.assign({},e,{parts:t})}return e.type==="if-break"?Object.assign({},e,{breakContents:e.breakContents!=null?fr(e.breakContents):null,flatContents:e.flatContents!=null?fr(e.flatContents):null}):e.type==="group"?Object.assign({},e,{contents:fr(e.contents),expandedStates:e.expandedStates?e.expandedStates.map(fr):e.expandedStates}):e.contents?Object.assign({},e,{contents:fr(e.contents)}):e}function Mt(e){if(typeof e=="string")return JSON.stringify(e);if(e.type==="line")return e.literal?"literalline":e.hard?"hardline":e.soft?"softline":"line";if(e.type==="break-parent")return"breakParent";if(e.type==="trim")return"trim";if(e.type==="concat")return"["+e.parts.map(Mt).join(", ")+"]";if(e.type==="indent")return"indent("+Mt(e.contents)+")";if(e.type==="align")return e.n===-1/0?"dedentToRoot("+Mt(e.contents)+")":e.n<0?"dedent("+Mt(e.contents)+")":e.n.type==="root"?"markAsRoot("+Mt(e.contents)+")":"align("+JSON.stringify(e.n)+", "+Mt(e.contents)+")";if(e.type==="if-break")return"ifBreak("+Mt(e.breakContents)+(e.flatContents?", "+Mt(e.flatContents):"")+")";if(e.type==="group")return e.expandedStates?"conditionalGroup(["+e.expandedStates.map(Mt).join(",")+"])":(e.break?"wrappedGroup":"group")+"("+Mt(e.contents)+")";if(e.type==="fill")return"fill("+e.parts.map(Mt).join(", ")+")";if(e.type==="line-suffix")return"lineSuffix("+Mt(e.contents)+")";if(e.type==="line-suffix-boundary")return"lineSuffixBoundary";throw new Error("Unknown doc type "+e.type)}var ae={builders:gi,printer:o2,utils:{isEmpty:function(e){return typeof e=="string"&&e.length===0},willBreak:function(e){return el(e,f2,!1)},isLineNext:function(e){return el(e,p2,!1)},traverseDoc:Zo,findInDoc:el,mapDoc:pr,propagateBreaks:function(e){let t=new Set,r=[];Zo(e,function(n){if(n.type==="break-parent"&&Nf(r),n.type==="group"){if(r.push(n),t.has(n))return!1;t.add(n)}},function(n){n.type==="group"&&r.pop().break&&Nf(r)},!0)},removeLines:function(e){return pr(e,h2)},stripTrailingHardline:function e(t,r=!1){if(t.type==="concat"&&t.parts.length!==0){let n=r?function(s){let l,{parts:a}=s;for(let c=s.parts.length;c>0&&!l;c--)l=a[c-1];return l.type==="group"&&(a=l.contents.parts),a}(t):t.parts,i=n[n.length-1];if(i.type==="concat")return i.parts.length===2&&i.parts[0].hard&&i.parts[1].type==="break-parent"?{type:"concat",parts:n.slice(0,-1)}:{type:"concat",parts:t.parts.slice(0,-1).concat(e(i))}}return t},normalizeParts:Of,normalizeDoc:function(e){return pr(e,t=>t.parts?Object.assign({},t,{parts:Of(t.parts)}):t)},replaceNewlinesWithLiterallines:function(e){return pr(e,t=>typeof t=="string"&&t.includes(`
|
|
112
|
+
`)?c2(t.split(/(\n)/g).map((r,n)=>n%2==0?r:l2)):t)}},debug:{printDocToDebug:e=>Mt(fr(e))}};let If=()=>!1,Lf=()=>"";var d2={existsSync:If,readFileSync:Lf},g2=Object.freeze({__proto__:null,existsSync:If,readFileSync:Lf,default:d2});function bn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Rf(e,t){for(var r,n="",i=0,s=-1,l=0,a=0;a<=e.length;++a){if(a<e.length)r=e.charCodeAt(a);else{if(r===47)break;r=47}if(r===47){if(!(s===a-1||l===1))if(s!==a-1&&l===2){if(n.length<2||i!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){c===-1?(n="",i=0):i=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),s=a,l=0;continue}}else if(n.length===2||n.length===1){n="",i=0,s=a,l=0;continue}}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(s+1,a):n=e.slice(s+1,a),i=a-s-1;s=a,l=0}else r===46&&l!==-1?++l:l=-1}return n}var Ci={resolve:function(){for(var e,t="",r=!1,n=arguments.length-1;n>=-1&&!r;n--){var i;n>=0?i=arguments[n]:(e===void 0&&(e=Le.cwd()),i=e),bn(i),i.length!==0&&(t=i+"/"+t,r=i.charCodeAt(0)===47)}return t=Rf(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(bn(e),e.length===0)return".";var t=e.charCodeAt(0)===47,r=e.charCodeAt(e.length-1)===47;return(e=Rf(e,!t)).length!==0||t||(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return bn(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];bn(r),r.length>0&&(e===void 0?e=r:e+="/"+r)}return e===void 0?".":Ci.normalize(e)},relative:function(e,t){if(bn(e),bn(t),e===t||(e=Ci.resolve(e))===(t=Ci.resolve(t)))return"";for(var r=1;r<e.length&&e.charCodeAt(r)===47;++r);for(var n=e.length,i=n-r,s=1;s<t.length&&t.charCodeAt(s)===47;++s);for(var l=t.length-s,a=i<l?i:l,c=-1,p=0;p<=a;++p){if(p===a){if(l>a){if(t.charCodeAt(s+p)===47)return t.slice(s+p+1);if(p===0)return t.slice(s+p)}else i>a&&(e.charCodeAt(r+p)===47?c=p:p===0&&(c=0));break}var u=e.charCodeAt(r+p);if(u!==t.charCodeAt(s+p))break;u===47&&(c=p)}var d="";for(p=r+c+1;p<=n;++p)p!==n&&e.charCodeAt(p)!==47||(d.length===0?d+="..":d+="/..");return d.length>0?d+t.slice(s+c):(s+=c,t.charCodeAt(s)===47&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(bn(e),e.length===0)return".";for(var t=e.charCodeAt(0),r=t===47,n=-1,i=!0,s=e.length-1;s>=1;--s)if((t=e.charCodeAt(s))===47){if(!i){n=s;break}}else i=!1;return n===-1?r?"/":".":r&&n===1?"//":e.slice(0,n)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');bn(e);var r,n=0,i=-1,s=!0;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var l=t.length-1,a=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(c===47){if(!s){n=r+1;break}}else a===-1&&(s=!1,a=r+1),l>=0&&(c===t.charCodeAt(l)?--l==-1&&(i=r):(l=-1,i=a))}return n===i?i=a:i===-1&&(i=e.length),e.slice(n,i)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!s){n=r+1;break}}else i===-1&&(s=!1,i=r+1);return i===-1?"":e.slice(n,i)},extname:function(e){bn(e);for(var t=-1,r=0,n=-1,i=!0,s=0,l=e.length-1;l>=0;--l){var a=e.charCodeAt(l);if(a!==47)n===-1&&(i=!1,n=l+1),a===46?t===-1?t=l:s!==1&&(s=1):t!==-1&&(s=-1);else if(!i){r=l+1;break}}return t===-1||n===-1||s===0||s===1&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(t,r){var n=r.dir||r.root,i=r.base||(r.name||"")+(r.ext||"");return n?n===r.root?n+i:n+t+i:i}("/",e)},parse:function(e){bn(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var r,n=e.charCodeAt(0),i=n===47;i?(t.root="/",r=1):r=0;for(var s=-1,l=0,a=-1,c=!0,p=e.length-1,u=0;p>=r;--p)if((n=e.charCodeAt(p))!==47)a===-1&&(c=!1,a=p+1),n===46?s===-1?s=p:u!==1&&(u=1):s!==-1&&(u=-1);else if(!c){l=p+1;break}return s===-1||a===-1||u===0||u===1&&s===a-1&&s===l+1?a!==-1&&(t.base=t.name=l===0&&i?e.slice(1,a):e.slice(l,a)):(l===0&&i?(t.name=e.slice(1,s),t.base=e.slice(1,a)):(t.name=e.slice(l,s),t.base=e.slice(l,a)),t.ext=e.slice(s,a)),l>0?t.dir=e.slice(0,l-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Ci.posix=Ci;var tl=Ci,m2=Object.freeze(Object.assign(Object.create(null),tl,{default:tl,__moduleExports:tl})),En=[],Xt=[],y2=typeof Uint8Array!="undefined"?Uint8Array:Array,nl=!1;function Mf(){nl=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)En[t]=e[t],Xt[e.charCodeAt(t)]=t;Xt["-".charCodeAt(0)]=62,Xt["_".charCodeAt(0)]=63}function D2(e,t,r){for(var n,i,s=[],l=t;l<r;l+=3)n=(e[l]<<16)+(e[l+1]<<8)+e[l+2],s.push(En[(i=n)>>18&63]+En[i>>12&63]+En[i>>6&63]+En[63&i]);return s.join("")}function jf(e){var t;nl||Mf();for(var r=e.length,n=r%3,i="",s=[],l=16383,a=0,c=r-n;a<c;a+=l)s.push(D2(e,a,a+l>c?c:a+l));return n===1?(t=e[r-1],i+=En[t>>2],i+=En[t<<4&63],i+="=="):n===2&&(t=(e[r-2]<<8)+e[r-1],i+=En[t>>10],i+=En[t>>4&63],i+=En[t<<2&63],i+="="),s.push(i),s.join("")}function Ia(e,t,r,n,i){var s,l,a=8*i-n-1,c=(1<<a)-1,p=c>>1,u=-7,d=r?i-1:0,h=r?-1:1,b=e[t+d];for(d+=h,s=b&(1<<-u)-1,b>>=-u,u+=a;u>0;s=256*s+e[t+d],d+=h,u-=8);for(l=s&(1<<-u)-1,s>>=-u,u+=n;u>0;l=256*l+e[t+d],d+=h,u-=8);if(s===0)s=1-p;else{if(s===c)return l?NaN:1/0*(b?-1:1);l+=Math.pow(2,n),s-=p}return(b?-1:1)*l*Math.pow(2,s-n)}function Vf(e,t,r,n,i,s){var l,a,c,p=8*s-i-1,u=(1<<p)-1,d=u>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:s-1,m=n?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,l=u):(l=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-l))<1&&(l--,c*=2),(t+=l+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(l++,c/=2),l+d>=u?(a=0,l=u):l+d>=1?(a=(t*c-1)*Math.pow(2,i),l+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),l=0));i>=8;e[r+b]=255&a,b+=m,a/=256,i-=8);for(l=l<<i|a,p+=i;p>0;e[r+b]=255&l,b+=m,l/=256,p-=8);e[r+b-m]|=128*x}var b2={}.toString,Uf=Array.isArray||function(e){return b2.call(e)=="[object Array]"};function rl(){return $.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Un(e,t){if(rl()<t)throw new RangeError("Invalid typed array length");return $.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=$.prototype:(e===null&&(e=new $(t)),e.length=t),e}function $(e,t,r){if(!($.TYPED_ARRAY_SUPPORT||this instanceof $))return new $(e,t,r);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return il(this,e)}return qf(this,e,t,r)}function qf(e,t,r,n){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer?function(i,s,l,a){if(s.byteLength,l<0||s.byteLength<l)throw new RangeError("'offset' is out of bounds");if(s.byteLength<l+(a||0))throw new RangeError("'length' is out of bounds");return s=l===void 0&&a===void 0?new Uint8Array(s):a===void 0?new Uint8Array(s,l):new Uint8Array(s,l,a),$.TYPED_ARRAY_SUPPORT?(i=s).__proto__=$.prototype:i=sl(i,s),i}(e,t,r,n):typeof t=="string"?function(i,s,l){if(typeof l=="string"&&l!==""||(l="utf8"),!$.isEncoding(l))throw new TypeError('"encoding" must be a valid string encoding');var a=0|Wf(s,l),c=(i=Un(i,a)).write(s,l);return c!==a&&(i=i.slice(0,c)),i}(e,t,r):function(i,s){if(vn(s)){var l=0|al(s.length);return(i=Un(i,l)).length===0||s.copy(i,0,0,l),i}if(s){if(typeof ArrayBuffer!="undefined"&&s.buffer instanceof ArrayBuffer||"length"in s)return typeof s.length!="number"||(a=s.length)!=a?Un(i,0):sl(i,s);if(s.type==="Buffer"&&Uf(s.data))return sl(i,s.data)}var a;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function $f(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function il(e,t){if($f(t),e=Un(e,t<0?0:0|al(t)),!$.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function sl(e,t){var r=t.length<0?0:0|al(t.length);e=Un(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function al(e){if(e>=rl())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+rl().toString(16)+" bytes");return 0|e}function vn(e){return!(e==null||!e._isBuffer)}function Wf(e,t){if(vn(e))return e.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var r=e.length;if(r===0)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Ma(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Zf(e).length;default:if(n)return Ma(e).length;t=(""+t).toLowerCase(),n=!0}}function E2(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return k2(this,t,r);case"utf8":case"utf-8":return Jf(this,t,r);case"ascii":return F2(this,t,r);case"latin1":case"binary":return T2(this,t,r);case"base64":return w2(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _2(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function jr(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Gf(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if(typeof t=="string"&&(t=$.from(t,n)),vn(t))return t.length===0?-1:Hf(e,t,r,n,i);if(typeof t=="number")return t&=255,$.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Hf(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Hf(e,t,r,n,i){var s,l=1,a=e.length,c=t.length;if(n!==void 0&&((n=String(n).toLowerCase())==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,a/=2,c/=2,r/=2}function p(b,m){return l===1?b[m]:b.readUInt16BE(m*l)}if(i){var u=-1;for(s=r;s<a;s++)if(p(e,s)===p(t,u===-1?0:s-u)){if(u===-1&&(u=s),s-u+1===c)return u*l}else u!==-1&&(s-=s-u),u=-1}else for(r+c>a&&(r=a-c),s=r;s>=0;s--){for(var d=!0,h=0;h<c;h++)if(p(e,s+h)!==p(t,h)){d=!1;break}if(d)return s}return-1}function v2(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");n>s/2&&(n=s/2);for(var l=0;l<n;++l){var a=parseInt(t.substr(2*l,2),16);if(isNaN(a))return l;e[r+l]=a}return l}function C2(e,t,r,n){return ja(Ma(t,e.length-r),e,r,n)}function zf(e,t,r,n){return ja(function(i){for(var s=[],l=0;l<i.length;++l)s.push(255&i.charCodeAt(l));return s}(t),e,r,n)}function x2(e,t,r,n){return zf(e,t,r,n)}function A2(e,t,r,n){return ja(Zf(t),e,r,n)}function S2(e,t,r,n){return ja(function(i,s){for(var l,a,c,p=[],u=0;u<i.length&&!((s-=2)<0);++u)a=(l=i.charCodeAt(u))>>8,c=l%256,p.push(c),p.push(a);return p}(t,e.length-r),e,r,n)}function w2(e,t,r){return t===0&&r===e.length?jf(e):jf(e.slice(t,r))}function Jf(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var s,l,a,c,p=e[i],u=null,d=p>239?4:p>223?3:p>191?2:1;if(i+d<=r)switch(d){case 1:p<128&&(u=p);break;case 2:(192&(s=e[i+1]))==128&&(c=(31&p)<<6|63&s)>127&&(u=c);break;case 3:s=e[i+1],l=e[i+2],(192&s)==128&&(192&l)==128&&(c=(15&p)<<12|(63&s)<<6|63&l)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:s=e[i+1],l=e[i+2],a=e[i+3],(192&s)==128&&(192&l)==128&&(192&a)==128&&(c=(15&p)<<18|(63&s)<<12|(63&l)<<6|63&a)>65535&&c<1114112&&(u=c)}u===null?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=d}return function(h){var b=h.length;if(b<=Xf)return String.fromCharCode.apply(String,h);for(var m="",x=0;x<b;)m+=String.fromCharCode.apply(String,h.slice(x,x+=Xf));return m}(n)}$.TYPED_ARRAY_SUPPORT=un.TYPED_ARRAY_SUPPORT===void 0||un.TYPED_ARRAY_SUPPORT,$.poolSize=8192,$._augment=function(e){return e.__proto__=$.prototype,e},$.from=function(e,t,r){return qf(null,e,t,r)},$.TYPED_ARRAY_SUPPORT&&($.prototype.__proto__=Uint8Array.prototype,$.__proto__=Uint8Array),$.alloc=function(e,t,r){return function(n,i,s,l){return $f(i),i<=0?Un(n,i):s!==void 0?typeof l=="string"?Un(n,i).fill(s,l):Un(n,i).fill(s):Un(n,i)}(null,e,t,r)},$.allocUnsafe=function(e){return il(null,e)},$.allocUnsafeSlow=function(e){return il(null,e)},$.isBuffer=function(e){return e!=null&&(!!e._isBuffer||eh(e)||function(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&eh(t.slice(0,0))}(e))},$.compare=function(e,t){if(!vn(e)||!vn(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,s=Math.min(r,n);i<s;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},$.isEncoding=function(e){switch(String(e).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}},$.concat=function(e,t){if(!Uf(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return $.alloc(0);var r;if(t===void 0)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=$.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var s=e[r];if(!vn(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},$.byteLength=Wf,$.prototype._isBuffer=!0,$.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)jr(this,t,t+1);return this},$.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)jr(this,t,t+3),jr(this,t+1,t+2);return this},$.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)jr(this,t,t+7),jr(this,t+1,t+6),jr(this,t+2,t+5),jr(this,t+3,t+4);return this},$.prototype.toString=function(){var e=0|this.length;return e===0?"":arguments.length===0?Jf(this,0,e):E2.apply(this,arguments)},$.prototype.equals=function(e){if(!vn(e))throw new TypeError("Argument must be a Buffer");return this===e||$.compare(this,e)===0},$.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},$.prototype.compare=function(e,t,r,n,i){if(!vn(e))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),r===void 0&&(r=e?e.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var s=(i>>>=0)-(n>>>=0),l=(r>>>=0)-(t>>>=0),a=Math.min(s,l),c=this.slice(n,i),p=e.slice(t,r),u=0;u<a;++u)if(c[u]!==p[u]){s=c[u],l=p[u];break}return s<l?-1:l<s?1:0},$.prototype.includes=function(e,t,r){return this.indexOf(e,t,r)!==-1},$.prototype.indexOf=function(e,t,r){return Gf(this,e,t,r,!0)},$.prototype.lastIndexOf=function(e,t,r){return Gf(this,e,t,r,!1)},$.prototype.write=function(e,t,r,n){if(t===void 0)n="utf8",r=this.length,t=0;else if(r===void 0&&typeof t=="string")n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,n===void 0&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((r===void 0||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var s=!1;;)switch(n){case"hex":return v2(this,e,t,r);case"utf8":case"utf-8":return C2(this,e,t,r);case"ascii":return zf(this,e,t,r);case"latin1":case"binary":return x2(this,e,t,r);case"base64":return A2(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S2(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},$.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Xf=4096;function F2(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function T2(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function k2(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",s=t;s<r;++s)i+=B2(e[s]);return i}function _2(e,t,r){for(var n=e.slice(t,r),i="",s=0;s<n.length;s+=2)i+=String.fromCharCode(n[s]+256*n[s+1]);return i}function lt(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function Bt(e,t,r,n,i,s){if(!vn(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function La(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,s=Math.min(e.length-r,2);i<s;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function Ra(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,s=Math.min(e.length-r,4);i<s;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function Yf(e,t,r,n,i,s){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Kf(e,t,r,n,i){return i||Yf(e,0,r,4),Vf(e,t,r,n,23,4),r+4}function Qf(e,t,r,n,i){return i||Yf(e,0,r,8),Vf(e,t,r,n,52,8),r+8}$.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=t===void 0?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),$.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=$.prototype;else{var i=t-e;r=new $(i,void 0);for(var s=0;s<i;++s)r[s]=this[s+e]}return r},$.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||lt(e,t,this.length);for(var n=this[e],i=1,s=0;++s<t&&(i*=256);)n+=this[e+s]*i;return n},$.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||lt(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},$.prototype.readUInt8=function(e,t){return t||lt(e,1,this.length),this[e]},$.prototype.readUInt16LE=function(e,t){return t||lt(e,2,this.length),this[e]|this[e+1]<<8},$.prototype.readUInt16BE=function(e,t){return t||lt(e,2,this.length),this[e]<<8|this[e+1]},$.prototype.readUInt32LE=function(e,t){return t||lt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},$.prototype.readUInt32BE=function(e,t){return t||lt(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},$.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||lt(e,t,this.length);for(var n=this[e],i=1,s=0;++s<t&&(i*=256);)n+=this[e+s]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},$.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||lt(e,t,this.length);for(var n=t,i=1,s=this[e+--n];n>0&&(i*=256);)s+=this[e+--n]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*t)),s},$.prototype.readInt8=function(e,t){return t||lt(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},$.prototype.readInt16LE=function(e,t){t||lt(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},$.prototype.readInt16BE=function(e,t){t||lt(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},$.prototype.readInt32LE=function(e,t){return t||lt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},$.prototype.readInt32BE=function(e,t){return t||lt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},$.prototype.readFloatLE=function(e,t){return t||lt(e,4,this.length),Ia(this,e,!0,23,4)},$.prototype.readFloatBE=function(e,t){return t||lt(e,4,this.length),Ia(this,e,!1,23,4)},$.prototype.readDoubleLE=function(e,t){return t||lt(e,8,this.length),Ia(this,e,!0,52,8)},$.prototype.readDoubleBE=function(e,t){return t||lt(e,8,this.length),Ia(this,e,!1,52,8)},$.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||Bt(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,s=0;for(this[t]=255&e;++s<r&&(i*=256);)this[t+s]=e/i&255;return t+r},$.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||Bt(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+r},$.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||Bt(this,e,t,1,255,0),$.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},$.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||Bt(this,e,t,2,65535,0),$.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):La(this,e,t,!0),t+2},$.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||Bt(this,e,t,2,65535,0),$.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):La(this,e,t,!1),t+2},$.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||Bt(this,e,t,4,4294967295,0),$.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ra(this,e,t,!0),t+4},$.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||Bt(this,e,t,4,4294967295,0),$.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ra(this,e,t,!1),t+4},$.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Bt(this,e,t,r,i-1,-i)}var s=0,l=1,a=0;for(this[t]=255&e;++s<r&&(l*=256);)e<0&&a===0&&this[t+s-1]!==0&&(a=1),this[t+s]=(e/l>>0)-a&255;return t+r},$.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Bt(this,e,t,r,i-1,-i)}var s=r-1,l=1,a=0;for(this[t+s]=255&e;--s>=0&&(l*=256);)e<0&&a===0&&this[t+s+1]!==0&&(a=1),this[t+s]=(e/l>>0)-a&255;return t+r},$.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||Bt(this,e,t,1,127,-128),$.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},$.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||Bt(this,e,t,2,32767,-32768),$.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):La(this,e,t,!0),t+2},$.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||Bt(this,e,t,2,32767,-32768),$.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):La(this,e,t,!1),t+2},$.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||Bt(this,e,t,4,2147483647,-2147483648),$.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ra(this,e,t,!0),t+4},$.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||Bt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),$.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ra(this,e,t,!1),t+4},$.prototype.writeFloatLE=function(e,t,r){return Kf(this,e,t,!0,r)},$.prototype.writeFloatBE=function(e,t,r){return Kf(this,e,t,!1,r)},$.prototype.writeDoubleLE=function(e,t,r){return Qf(this,e,t,!0,r)},$.prototype.writeDoubleBE=function(e,t,r){return Qf(this,e,t,!1,r)},$.prototype.copy=function(e,t,r,n){if(r||(r=0),n||n===0||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,s=n-r;if(this===e&&r<t&&t<n)for(i=s-1;i>=0;--i)e[i+t]=this[i+r];else if(s<1e3||!$.TYPED_ARRAY_SUPPORT)for(i=0;i<s;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+s),t);return s},$.prototype.fill=function(e,t,r,n){if(typeof e=="string"){if(typeof t=="string"?(n=t,t=0,r=this.length):typeof r=="string"&&(n=r,r=this.length),e.length===1){var i=e.charCodeAt(0);i<256&&(e=i)}if(n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!$.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else typeof e=="number"&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var s;if(t>>>=0,r=r===void 0?this.length:r>>>0,e||(e=0),typeof e=="number")for(s=t;s<r;++s)this[s]=e;else{var l=vn(e)?e:Ma(new $(e,n).toString()),a=l.length;for(s=0;s<r-t;++s)this[s+t]=l[s%a]}return this};var P2=/[^+\/0-9A-Za-z-_]/g;function B2(e){return e<16?"0"+e.toString(16):e.toString(16)}function Ma(e,t){var r;t=t||1/0;for(var n=e.length,i=null,s=[],l=0;l<n;++l){if((r=e.charCodeAt(l))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(l+1===n){(t-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function Zf(e){return function(t){var r,n,i,s,l,a;nl||Mf();var c=t.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");l=t[c-2]==="="?2:t[c-1]==="="?1:0,a=new y2(3*c/4-l),i=l>0?c-4:c;var p=0;for(r=0,n=0;r<i;r+=4,n+=3)s=Xt[t.charCodeAt(r)]<<18|Xt[t.charCodeAt(r+1)]<<12|Xt[t.charCodeAt(r+2)]<<6|Xt[t.charCodeAt(r+3)],a[p++]=s>>16&255,a[p++]=s>>8&255,a[p++]=255&s;return l===2?(s=Xt[t.charCodeAt(r)]<<2|Xt[t.charCodeAt(r+1)]>>4,a[p++]=255&s):l===1&&(s=Xt[t.charCodeAt(r)]<<10|Xt[t.charCodeAt(r+1)]<<4|Xt[t.charCodeAt(r+2)]>>2,a[p++]=s>>8&255,a[p++]=255&s),a}(function(t){if((t=function(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}(t).replace(P2,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function ja(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function eh(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var As=or(g2),N2=class{constructor(e,t){(t=t||{}).readChunk||(t.readChunk=1024),t.newLineCharacter?t.newLineCharacter=t.newLineCharacter.charCodeAt(0):t.newLineCharacter=10,this.fd=typeof e=="number"?e:As.openSync(e,"r"),this.options=t,this.newLineCharacter=t.newLineCharacter,this.reset()}_searchInBuffer(e,t){let r=-1;for(let n=0;n<=e.length;n++)if(e[n]===t){r=n;break}return r}reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}close(){As.closeSync(this.fd),this.fd=null}_extractLines(e){let t,r=[],n=0,i=0;for(;;){let l=e[n++];if(l===this.newLineCharacter)t=e.slice(i,n),r.push(t),i=n;else if(l===void 0)break}let s=e.slice(i,n);return s.length&&r.push(s),r}_readChunk(e){let t,r=0,n=[];do{let s=new $(this.options.readChunk);t=As.readSync(this.fd,s,0,this.options.readChunk,this.fdPosition),r+=t,this.fdPosition=this.fdPosition+t,n.push(s)}while(t&&this._searchInBuffer(n[n.length-1],this.options.newLineCharacter)===-1);let i=$.concat(n);return t<this.options.readChunk&&(this.eofReached=!0,i=i.slice(0,r)),r&&(this.linesCache=this._extractLines(i),e&&(this.linesCache[0]=$.concat([e,this.linesCache[0]]))),r}next(){if(!this.fd)return!1;let e,t=!1;return this.eofReached&&this.linesCache.length===0?t:(this.linesCache.length||(e=this._readChunk()),this.linesCache.length&&(t=this.linesCache.shift(),t[t.length-1]!==this.newLineCharacter&&(e=this._readChunk(t),e&&(t=this.linesCache.shift()))),this.eofReached&&this.linesCache.length===0&&this.close(),t&&t[t.length-1]===this.newLineCharacter&&(t=t.slice(0,t.length-1)),t)}},O2=function(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n};class I2 extends Error{}class L2 extends Error{}class R2 extends Error{}var th={ConfigError:I2,DebugError:L2,UndefinedParserError:R2},nh=function(e,t){return(nh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])})(e,t)};var rh=function(){return(rh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function ih(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function sh(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),l=[];try{for(;(t===void 0||t-- >0)&&!(n=s.next()).done;)l.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return l}function Ss(e){return this instanceof Ss?(this.v=e,this):new Ss(e)}var Je=Object.freeze({__proto__:null,__extends:function(e,t){function r(){this.constructor=e}nh(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},get __assign(){return rh},__rest:function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},__decorate:function(e,t,r,n){var i,s=arguments.length,l=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(l=(s<3?i(l):s>3?i(t,r,l):i(t,r))||l);return s>3&&l&&Object.defineProperty(t,r,l),l},__param:function(e,t){return function(r,n){t(r,n,e)}},__metadata:function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},__awaiter:function(e,t,r,n){return new(r||(r=Promise))(function(i,s){function l(p){try{c(n.next(p))}catch(u){s(u)}}function a(p){try{c(n.throw(p))}catch(u){s(u)}}function c(p){var u;p.done?i(p.value):(u=p.value,u instanceof r?u:new r(function(d){d(u)})).then(l,a)}c((n=n.apply(e,t||[])).next())})},__generator:function(e,t){var r,n,i,s,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(p){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;l;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,n=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(i=l.trys,!((i=i.length>0&&i[i.length-1])||u[0]!==6&&u[0]!==2)){l=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){l.label=u[1];break}if(u[0]===6&&l.label<i[1]){l.label=i[1],i=u;break}if(i&&l.label<i[2]){l.label=i[2],l.ops.push(u);break}i[2]&&l.ops.pop(),l.trys.pop();continue}u=t.call(e,l)}catch(d){u=[6,d],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([c,p])}}},__createBinding:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]},__exportStar:function(e,t){for(var r in e)r==="default"||t.hasOwnProperty(r)||(t[r]=e[r])},__values:ih,__read:sh,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(sh(arguments[t]));return e},__spreadArrays:function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var s=arguments[t],l=0,a=s.length;l<a;l++,i++)n[i]=s[l];return n},__await:Ss,__asyncGenerator:function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),s=[];return n={},l("next"),l("throw"),l("return"),n[Symbol.asyncIterator]=function(){return this},n;function l(d){i[d]&&(n[d]=function(h){return new Promise(function(b,m){s.push([d,h,b,m])>1||a(d,h)})})}function a(d,h){try{(b=i[d](h)).value instanceof Ss?Promise.resolve(b.value.v).then(c,p):u(s[0][2],b)}catch(m){u(s[0][3],m)}var b}function c(d){a("next",d)}function p(d){a("throw",d)}function u(d,h){d(h),s.shift(),s.length&&a(s[0][0],s[0][1])}},__asyncDelegator:function(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,s){t[i]=e[i]?function(l){return(r=!r)?{value:Ss(e[i](l)),done:i==="return"}:s?s(l):l}:s}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=ih(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(s){return new Promise(function(l,a){(function(c,p,u,d){Promise.resolve(d).then(function(h){c({value:h,done:u})},p)})(l,a,(s=e[i](s)).done,s.value)})}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet:function(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}}),ah=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.apiDescriptor={key:r=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(r)?r:JSON.stringify(r),value(r){if(r===null||typeof r!="object")return JSON.stringify(r);if(Array.isArray(r))return"[".concat(r.map(i=>t.apiDescriptor.value(i)).join(", "),"]");let n=Object.keys(r);return n.length===0?"{}":"{ ".concat(n.map(i=>"".concat(t.apiDescriptor.key(i),": ").concat(t.apiDescriptor.value(r[i]))).join(", ")," }")},pair:({key:r,value:n})=>t.apiDescriptor.value({[r]:n})}}),M2=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Je.__exportStar(ah,t)}),j2=/[|\\{}()[\]^$+*?.]/g,ul=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(j2,"\\$&")},Vr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Ur=re(function(e){var t={};for(var r in Vr)Vr.hasOwnProperty(r)&&(t[Vr[r]]=r);var n=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in n)if(n.hasOwnProperty(i)){if(!("channels"in n[i]))throw new Error("missing channels property: "+i);if(!("labels"in n[i]))throw new Error("missing channel labels property: "+i);if(n[i].labels.length!==n[i].channels)throw new Error("channel and label counts mismatch: "+i);var s=n[i].channels,l=n[i].labels;delete n[i].channels,delete n[i].labels,Object.defineProperty(n[i],"channels",{value:s}),Object.defineProperty(n[i],"labels",{value:l})}n.rgb.hsl=function(a){var c,p,u=a[0]/255,d=a[1]/255,h=a[2]/255,b=Math.min(u,d,h),m=Math.max(u,d,h),x=m-b;return m===b?c=0:u===m?c=(d-h)/x:d===m?c=2+(h-u)/x:h===m&&(c=4+(u-d)/x),(c=Math.min(60*c,360))<0&&(c+=360),p=(b+m)/2,[c,100*(m===b?0:p<=.5?x/(m+b):x/(2-m-b)),100*p]},n.rgb.hsv=function(a){var c,p,u,d,h,b=a[0]/255,m=a[1]/255,x=a[2]/255,F=Math.max(b,m,x),E=F-Math.min(b,m,x),A=function(P){return(F-P)/6/E+.5};return E===0?d=h=0:(h=E/F,c=A(b),p=A(m),u=A(x),b===F?d=u-p:m===F?d=1/3+c-u:x===F&&(d=2/3+p-c),d<0?d+=1:d>1&&(d-=1)),[360*d,100*h,100*F]},n.rgb.hwb=function(a){var c=a[0],p=a[1],u=a[2];return[n.rgb.hsl(a)[0],100*(1/255*Math.min(c,Math.min(p,u))),100*(u=1-1/255*Math.max(c,Math.max(p,u)))]},n.rgb.cmyk=function(a){var c,p=a[0]/255,u=a[1]/255,d=a[2]/255;return[100*((1-p-(c=Math.min(1-p,1-u,1-d)))/(1-c)||0),100*((1-u-c)/(1-c)||0),100*((1-d-c)/(1-c)||0),100*c]},n.rgb.keyword=function(a){var c=t[a];if(c)return c;var p,u,d,h=1/0;for(var b in Vr)if(Vr.hasOwnProperty(b)){var m=Vr[b],x=(u=a,d=m,Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)+Math.pow(u[2]-d[2],2));x<h&&(h=x,p=b)}return p},n.keyword.rgb=function(a){return Vr[a]},n.rgb.xyz=function(a){var c=a[0]/255,p=a[1]/255,u=a[2]/255;return[100*(.4124*(c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92)+.3576*(p=p>.04045?Math.pow((p+.055)/1.055,2.4):p/12.92)+.1805*(u=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92)),100*(.2126*c+.7152*p+.0722*u),100*(.0193*c+.1192*p+.9505*u)]},n.rgb.lab=function(a){var c=n.rgb.xyz(a),p=c[0],u=c[1],d=c[2];return u/=100,d/=108.883,p=(p/=95.047)>.008856?Math.pow(p,1/3):7.787*p+16/116,[116*(u=u>.008856?Math.pow(u,1/3):7.787*u+16/116)-16,500*(p-u),200*(u-(d=d>.008856?Math.pow(d,1/3):7.787*d+16/116))]},n.hsl.rgb=function(a){var c,p,u,d,h,b=a[0]/360,m=a[1]/100,x=a[2]/100;if(m===0)return[h=255*x,h,h];c=2*x-(p=x<.5?x*(1+m):x+m-x*m),d=[0,0,0];for(var F=0;F<3;F++)(u=b+1/3*-(F-1))<0&&u++,u>1&&u--,h=6*u<1?c+6*(p-c)*u:2*u<1?p:3*u<2?c+(p-c)*(2/3-u)*6:c,d[F]=255*h;return d},n.hsl.hsv=function(a){var c=a[0],p=a[1]/100,u=a[2]/100,d=p,h=Math.max(u,.01);return p*=(u*=2)<=1?u:2-u,d*=h<=1?h:2-h,[c,100*(u===0?2*d/(h+d):2*p/(u+p)),100*((u+p)/2)]},n.hsv.rgb=function(a){var c=a[0]/60,p=a[1]/100,u=a[2]/100,d=Math.floor(c)%6,h=c-Math.floor(c),b=255*u*(1-p),m=255*u*(1-p*h),x=255*u*(1-p*(1-h));switch(u*=255,d){case 0:return[u,x,b];case 1:return[m,u,b];case 2:return[b,u,x];case 3:return[b,m,u];case 4:return[x,b,u];case 5:return[u,b,m]}},n.hsv.hsl=function(a){var c,p,u,d=a[0],h=a[1]/100,b=a[2]/100,m=Math.max(b,.01);return u=(2-h)*b,p=h*m,[d,100*(p=(p/=(c=(2-h)*m)<=1?c:2-c)||0),100*(u/=2)]},n.hwb.rgb=function(a){var c,p,u,d,h,b,m,x=a[0]/360,F=a[1]/100,E=a[2]/100,A=F+E;switch(A>1&&(F/=A,E/=A),u=6*x-(c=Math.floor(6*x)),(1&c)!=0&&(u=1-u),d=F+u*((p=1-E)-F),c){default:case 6:case 0:h=p,b=d,m=F;break;case 1:h=d,b=p,m=F;break;case 2:h=F,b=p,m=d;break;case 3:h=F,b=d,m=p;break;case 4:h=d,b=F,m=p;break;case 5:h=p,b=F,m=d}return[255*h,255*b,255*m]},n.cmyk.rgb=function(a){var c=a[0]/100,p=a[1]/100,u=a[2]/100,d=a[3]/100;return[255*(1-Math.min(1,c*(1-d)+d)),255*(1-Math.min(1,p*(1-d)+d)),255*(1-Math.min(1,u*(1-d)+d))]},n.xyz.rgb=function(a){var c,p,u,d=a[0]/100,h=a[1]/100,b=a[2]/100;return p=-.9689*d+1.8758*h+.0415*b,u=.0557*d+-.204*h+1.057*b,c=(c=3.2406*d+-1.5372*h+-.4986*b)>.0031308?1.055*Math.pow(c,1/2.4)-.055:12.92*c,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:12.92*p,u=u>.0031308?1.055*Math.pow(u,1/2.4)-.055:12.92*u,[255*(c=Math.min(Math.max(0,c),1)),255*(p=Math.min(Math.max(0,p),1)),255*(u=Math.min(Math.max(0,u),1))]},n.xyz.lab=function(a){var c=a[0],p=a[1],u=a[2];return p/=100,u/=108.883,c=(c/=95.047)>.008856?Math.pow(c,1/3):7.787*c+16/116,[116*(p=p>.008856?Math.pow(p,1/3):7.787*p+16/116)-16,500*(c-p),200*(p-(u=u>.008856?Math.pow(u,1/3):7.787*u+16/116))]},n.lab.xyz=function(a){var c,p,u,d=a[0];c=a[1]/500+(p=(d+16)/116),u=p-a[2]/200;var h=Math.pow(p,3),b=Math.pow(c,3),m=Math.pow(u,3);return p=h>.008856?h:(p-16/116)/7.787,c=b>.008856?b:(c-16/116)/7.787,u=m>.008856?m:(u-16/116)/7.787,[c*=95.047,p*=100,u*=108.883]},n.lab.lch=function(a){var c,p=a[0],u=a[1],d=a[2];return(c=360*Math.atan2(d,u)/2/Math.PI)<0&&(c+=360),[p,Math.sqrt(u*u+d*d),c]},n.lch.lab=function(a){var c,p=a[0],u=a[1];return c=a[2]/360*2*Math.PI,[p,u*Math.cos(c),u*Math.sin(c)]},n.rgb.ansi16=function(a){var c=a[0],p=a[1],u=a[2],d=1 in arguments?arguments[1]:n.rgb.hsv(a)[2];if((d=Math.round(d/50))===0)return 30;var h=30+(Math.round(u/255)<<2|Math.round(p/255)<<1|Math.round(c/255));return d===2&&(h+=60),h},n.hsv.ansi16=function(a){return n.rgb.ansi16(n.hsv.rgb(a),a[2])},n.rgb.ansi256=function(a){var c=a[0],p=a[1],u=a[2];return c===p&&p===u?c<8?16:c>248?231:Math.round((c-8)/247*24)+232:16+36*Math.round(c/255*5)+6*Math.round(p/255*5)+Math.round(u/255*5)},n.ansi16.rgb=function(a){var c=a%10;if(c===0||c===7)return a>50&&(c+=3.5),[c=c/10.5*255,c,c];var p=.5*(1+~~(a>50));return[(1&c)*p*255,(c>>1&1)*p*255,(c>>2&1)*p*255]},n.ansi256.rgb=function(a){if(a>=232){var c=10*(a-232)+8;return[c,c,c]}var p;return a-=16,[Math.floor(a/36)/5*255,Math.floor((p=a%36)/6)/5*255,p%6/5*255]},n.rgb.hex=function(a){var c=(((255&Math.round(a[0]))<<16)+((255&Math.round(a[1]))<<8)+(255&Math.round(a[2]))).toString(16).toUpperCase();return"000000".substring(c.length)+c},n.hex.rgb=function(a){var c=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!c)return[0,0,0];var p=c[0];c[0].length===3&&(p=p.split("").map(function(d){return d+d}).join(""));var u=parseInt(p,16);return[u>>16&255,u>>8&255,255&u]},n.rgb.hcg=function(a){var c,p=a[0]/255,u=a[1]/255,d=a[2]/255,h=Math.max(Math.max(p,u),d),b=Math.min(Math.min(p,u),d),m=h-b;return c=m<=0?0:h===p?(u-d)/m%6:h===u?2+(d-p)/m:4+(p-u)/m+4,c/=6,[360*(c%=1),100*m,100*(m<1?b/(1-m):0)]},n.hsl.hcg=function(a){var c=a[1]/100,p=a[2]/100,u=1,d=0;return(u=p<.5?2*c*p:2*c*(1-p))<1&&(d=(p-.5*u)/(1-u)),[a[0],100*u,100*d]},n.hsv.hcg=function(a){var c=a[1]/100,p=a[2]/100,u=c*p,d=0;return u<1&&(d=(p-u)/(1-u)),[a[0],100*u,100*d]},n.hcg.rgb=function(a){var c=a[0]/360,p=a[1]/100,u=a[2]/100;if(p===0)return[255*u,255*u,255*u];var d,h=[0,0,0],b=c%1*6,m=b%1,x=1-m;switch(Math.floor(b)){case 0:h[0]=1,h[1]=m,h[2]=0;break;case 1:h[0]=x,h[1]=1,h[2]=0;break;case 2:h[0]=0,h[1]=1,h[2]=m;break;case 3:h[0]=0,h[1]=x,h[2]=1;break;case 4:h[0]=m,h[1]=0,h[2]=1;break;default:h[0]=1,h[1]=0,h[2]=x}return d=(1-p)*u,[255*(p*h[0]+d),255*(p*h[1]+d),255*(p*h[2]+d)]},n.hcg.hsv=function(a){var c=a[1]/100,p=c+a[2]/100*(1-c),u=0;return p>0&&(u=c/p),[a[0],100*u,100*p]},n.hcg.hsl=function(a){var c=a[1]/100,p=a[2]/100*(1-c)+.5*c,u=0;return p>0&&p<.5?u=c/(2*p):p>=.5&&p<1&&(u=c/(2*(1-p))),[a[0],100*u,100*p]},n.hcg.hwb=function(a){var c=a[1]/100,p=c+a[2]/100*(1-c);return[a[0],100*(p-c),100*(1-p)]},n.hwb.hcg=function(a){var c=a[1]/100,p=1-a[2]/100,u=p-c,d=0;return u<1&&(d=(p-u)/(1-u)),[a[0],100*u,100*d]},n.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},n.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},n.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},n.gray.hsl=n.gray.hsv=function(a){return[0,0,a[0]]},n.gray.hwb=function(a){return[0,100,a[0]]},n.gray.cmyk=function(a){return[0,0,0,a[0]]},n.gray.lab=function(a){return[a[0],0,0]},n.gray.hex=function(a){var c=255&Math.round(a[0]/100*255),p=((c<<16)+(c<<8)+c).toString(16).toUpperCase();return"000000".substring(p.length)+p},n.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]}});function V2(e){var t=function(){for(var p={},u=Object.keys(Ur),d=u.length,h=0;h<d;h++)p[u[h]]={distance:-1,parent:null};return p}(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Ur[n]),s=i.length,l=0;l<s;l++){var a=i[l],c=t[a];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(a))}return t}function U2(e,t){return function(r){return t(e(r))}}function q2(e,t){for(var r=[t[e].parent,e],n=Ur[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=U2(Ur[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var xi={};Object.keys(Ur).forEach(function(e){xi[e]={},Object.defineProperty(xi[e],"channels",{value:Ur[e].channels}),Object.defineProperty(xi[e],"labels",{value:Ur[e].labels});var t=function(r){for(var n=V2(r),i={},s=Object.keys(n),l=s.length,a=0;a<l;a++){var c=s[a];n[c].parent!==null&&(i[c]=q2(c,n))}return i}(e);Object.keys(t).forEach(function(r){var n=t[r];xi[e][r]=function(i){var s=function(l){if(l==null)return l;arguments.length>1&&(l=Array.prototype.slice.call(arguments));var a=i(l);if(typeof a=="object")for(var c=a.length,p=0;p<c;p++)a[p]=Math.round(a[p]);return a};return"conversion"in i&&(s.conversion=i.conversion),s}(n),xi[e][r].raw=function(i){var s=function(l){return l==null?l:(arguments.length>1&&(l=Array.prototype.slice.call(arguments)),i(l))};return"conversion"in i&&(s.conversion=i.conversion),s}(n)})});var Ai=xi,Ke=re(function(e){let t=(i,s)=>function(){let l=i.apply(Ai,arguments);return"[".concat(l+s,"m")},r=(i,s)=>function(){let l=i.apply(Ai,arguments);return"[".concat(38+s,";5;").concat(l,"m")},n=(i,s)=>function(){let l=i.apply(Ai,arguments);return"[".concat(38+s,";2;").concat(l[0],";").concat(l[1],";").concat(l[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){let i=new Map,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};s.color.grey=s.color.gray;for(let c of Object.keys(s)){let p=s[c];for(let u of Object.keys(p)){let d=p[u];s[u]={open:"[".concat(d[0],"m"),close:"[".concat(d[1],"m")},p[u]=s[u],i.set(d[0],d[1])}Object.defineProperty(s,c,{value:p,enumerable:!1}),Object.defineProperty(s,"codes",{value:i,enumerable:!1})}let l=c=>c,a=(c,p,u)=>[c,p,u];s.color.close="[39m",s.bgColor.close="[49m",s.color.ansi={ansi:t(l,0)},s.color.ansi256={ansi256:r(l,0)},s.color.ansi16m={rgb:n(a,0)},s.bgColor.ansi={ansi:t(l,10)},s.bgColor.ansi256={ansi256:r(l,10)},s.bgColor.ansi16m={rgb:n(a,10)};for(let c of Object.keys(Ai)){if(typeof Ai[c]!="object")continue;let p=Ai[c];c==="ansi16"&&(c="ansi"),"ansi16"in p&&(s.color.ansi[c]=t(p.ansi16,0),s.bgColor.ansi[c]=t(p.ansi16,10)),"ansi256"in p&&(s.color.ansi256[c]=r(p.ansi256,0),s.bgColor.ansi256[c]=r(p.ansi256,10)),"rgb"in p&&(s.color.ansi16m[c]=n(p.rgb,0),s.bgColor.ansi16m[c]=n(p.rgb,10))}return s}})}),He=(e,t)=>{t=t||Le.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)},Va=or(Object.freeze({__proto__:null,default:{EOL:`
|
|
113
|
+
`,platform:()=>"browser",cpus:()=>[{model:"Prettier"}]}}));let Dt=Le.env,Si;function ol(e){return function(t){return t!==0&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}(function(t){if(Si===!1)return 0;if(He("color=16m")||He("color=full")||He("color=truecolor"))return 3;if(He("color=256"))return 2;if(t&&!t.isTTY&&Si!==!0)return 0;let r=Si?1:0;if(Le.platform==="win32"){let n=Va.release().split(".");return Number(Le.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Dt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(n=>n in Dt)||Dt.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Dt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Dt.TEAMCITY_VERSION)?1:0;if(Dt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Dt){let n=parseInt((Dt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Dt.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Dt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Dt.TERM)||"COLORTERM"in Dt?1:(Dt.TERM,r)}(e))}He("no-color")||He("no-colors")||He("color=false")?Si=!1:(He("color")||He("colors")||He("color=true")||He("color=always"))&&(Si=!0),"FORCE_COLOR"in Dt&&(Si=Dt.FORCE_COLOR.length===0||parseInt(Dt.FORCE_COLOR,10)!==0);var $2={supportsColor:ol,stdout:ol(Le.stdout),stderr:ol(Le.stderr)};let W2=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,uh=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,G2=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,H2=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,z2=new Map([["n",`
|
|
114
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a","\x07"]]);function oh(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):z2.get(e)||e}function J2(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n)if(isNaN(s)){if(!(i=s.match(G2)))throw new Error("Invalid Chalk template style argument: ".concat(s," (in style '").concat(e,"')"));r.push(i[2].replace(H2,(l,a,c)=>a?oh(a):c))}else r.push(Number(s));return r}function X2(e){uh.lastIndex=0;let t=[],r;for(;(r=uh.exec(e))!==null;){let n=r[1];if(r[2]){let i=J2(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function lh(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error("Unknown Chalk style: ".concat(i));n=r[i].length>0?n[i].apply(n,r[i]):n[i]}return n}var Y2=(e,t)=>{let r=[],n=[],i=[];if(t.replace(W2,(s,l,a,c,p,u)=>{if(l)i.push(oh(l));else if(c){let d=i.join("");i=[],n.push(r.length===0?d:lh(e,r)(d)),r.push({inverse:a,styles:X2(c)})}else if(p){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(lh(e,r)(i.join(""))),i=[],r.pop()}else i.push(u)}),n.push(i.join("")),r.length>0){let s="Chalk template literal is missing ".concat(r.length," closing bracket").concat(r.length===1?"":"s"," (`}`)");throw new Error(s)}return n.join("")},qr=re(function(e){let t=$2.stdout,r=Le.platform==="win32"&&!(Le.env.TERM||"").toLowerCase().startsWith("xterm"),n=["ansi","ansi","ansi256","ansi16m"],i=new Set(["gray"]),s=Object.create(null);function l(h,b){b=b||{};let m=t?t.level:0;h.level=b.level===void 0?m:b.level,h.enabled="enabled"in b?b.enabled:h.level>0}function a(h){if(!this||!(this instanceof a)||this.template){let b={};return l(b,h),b.template=function(){let m=[].slice.call(arguments);return d.apply(null,[b.template].concat(m))},Object.setPrototypeOf(b,a.prototype),Object.setPrototypeOf(b.template,b),b.template.constructor=a,b.template}l(this,h)}r&&(Ke.blue.open="[94m");for(let h of Object.keys(Ke))Ke[h].closeRe=new RegExp(ul(Ke[h].close),"g"),s[h]={get(){let b=Ke[h];return p.call(this,this._styles?this._styles.concat(b):[b],this._empty,h)}};s.visible={get(){return p.call(this,this._styles||[],!0,"visible")}},Ke.color.closeRe=new RegExp(ul(Ke.color.close),"g");for(let h of Object.keys(Ke.color.ansi))i.has(h)||(s[h]={get(){let b=this.level;return function(){let m=Ke.color[n[b]][h].apply(null,arguments),x={open:m,close:Ke.color.close,closeRe:Ke.color.closeRe};return p.call(this,this._styles?this._styles.concat(x):[x],this._empty,h)}}});Ke.bgColor.closeRe=new RegExp(ul(Ke.bgColor.close),"g");for(let h of Object.keys(Ke.bgColor.ansi))i.has(h)||(s["bg"+h[0].toUpperCase()+h.slice(1)]={get(){let b=this.level;return function(){let m=Ke.bgColor[n[b]][h].apply(null,arguments),x={open:m,close:Ke.bgColor.close,closeRe:Ke.bgColor.closeRe};return p.call(this,this._styles?this._styles.concat(x):[x],this._empty,h)}}});let c=Object.defineProperties(()=>{},s);function p(h,b,m){let x=function(){return u.apply(x,arguments)};x._styles=h,x._empty=b;let F=this;return Object.defineProperty(x,"level",{enumerable:!0,get:()=>F.level,set(E){F.level=E}}),Object.defineProperty(x,"enabled",{enumerable:!0,get:()=>F.enabled,set(E){F.enabled=E}}),x.hasGrey=this.hasGrey||m==="gray"||m==="grey",x.__proto__=c,x}function u(){let h=arguments,b=h.length,m=String(arguments[0]);if(b===0)return"";if(b>1)for(let F=1;F<b;F++)m+=" "+h[F];if(!this.enabled||this.level<=0||!m)return this._empty?"":m;let x=Ke.dim.open;r&&this.hasGrey&&(Ke.dim.open="");for(let F of this._styles.slice().reverse())m=F.open+m.replace(F.closeRe,F.open)+F.close,m=m.replace(/\r?\n/g,"".concat(F.close,"$&").concat(F.open));return Ke.dim.open=x,m}function d(h,b){if(!Array.isArray(b))return[].slice.call(arguments,1).join(" ");let m=[].slice.call(arguments,2),x=[b.raw[0]];for(let F=1;F<b.length;F++)x.push(String(m[F-1]).replace(/[{}\\]/g,"\\$&")),x.push(String(b.raw[F]));return Y2(h,x.join(""))}Object.defineProperties(a.prototype,s),e.exports=a(),e.exports.supportsColor=t,e.exports.default=e.exports}),ch=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.commonDeprecatedHandler=(r,n,{descriptor:i})=>{let s=["".concat(qr.default.yellow(typeof r=="string"?i.key(r):i.pair(r))," is deprecated")];return n&&s.push("we now treat it as ".concat(qr.default.blue(typeof n=="string"?i.key(n):i.pair(n)))),s.join("; ")+"."}}),K2=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Je.__exportStar(ch,t)}),Q2=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.commonInvalidHandler=(r,n,i)=>["Invalid ".concat(qr.default.red(i.descriptor.key(r))," value."),"Expected ".concat(qr.default.blue(i.schemas[r].expected(i)),","),"but received ".concat(qr.default.red(i.descriptor.value(n)),".")].join(" ")}),ph=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Je.__exportStar(Q2,t)}),ll=[],fh=[],hh=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.levenUnknownHandler=(r,n,{descriptor:i,logger:s,schemas:l})=>{let a=["Ignored unknown option ".concat(qr.default.yellow(i.pair({key:r,value:n})),".")],c=Object.keys(l).sort().find(p=>function(u,d){if(u===d)return 0;var h=u;u.length>d.length&&(u=d,d=h);var b=u.length,m=d.length;if(b===0)return m;if(m===0)return b;for(;b>0&&u.charCodeAt(~-b)===d.charCodeAt(~-m);)b--,m--;if(b===0)return m;for(var x,F,E,A,P=0;P<b&&u.charCodeAt(P)===d.charCodeAt(P);)P++;if(m-=P,(b-=P)==0)return m;for(var L=0,N=0;L<b;)fh[P+L]=u.charCodeAt(P+L),ll[L]=++L;for(;N<m;)for(x=d.charCodeAt(P+N),E=N++,F=N,L=0;L<b;L++)A=x===fh[P+L]?E:E+1,E=ll[L],F=ll[L]=E>F?A>F?F+1:A:A>E?E+1:A;return F}(r,p)<3);c&&a.push("Did you mean ".concat(qr.default.blue(i.key(c)),"?")),s.warn(a.join(" "))}}),Z2=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Je.__exportStar(hh,t)}),eb=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Je.__exportStar(K2,t),Je.__exportStar(ph,t),Je.__exportStar(Z2,t)}),hr=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let r=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function n(l,a){let c=new l(a),p=Object.create(c);for(let u of r)u in a&&(p[u]=s(a[u],c,i.prototype[u].length));return p}t.createSchema=n;class i{constructor(a){this.name=a.name}static create(a){return n(this,a)}default(a){}expected(a){return"nothing"}validate(a,c){return!1}deprecated(a,c){return!1}forward(a,c){}redirect(a,c){}overlap(a,c,p){return a}preprocess(a,c){return a}postprocess(a,c){return a}}function s(l,a,c){return typeof l=="function"?(...p)=>l(...p.slice(0,c-1),a,...p.slice(c-1)):()=>l}t.Schema=i}),tb=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends hr.Schema{constructor(i){super(i),this._sourceName=i.sourceName}expected(i){return i.schemas[this._sourceName].expected(i)}validate(i,s){return s.schemas[this._sourceName].validate(i,s)}redirect(i,s){return this._sourceName}}t.AliasSchema=r}),nb=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends hr.Schema{expected(){return"anything"}validate(){return!0}}t.AnySchema=r}),rb=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends hr.Schema{constructor(s){var{valueSchema:l,name:a=l.name}=s,c=Je.__rest(s,["valueSchema","name"]);super(Object.assign({},c,{name:a})),this._valueSchema=l}expected(s){return"an array of ".concat(this._valueSchema.expected(s))}validate(s,l){if(!Array.isArray(s))return!1;let a=[];for(let c of s){let p=l.normalizeValidateResult(this._valueSchema.validate(c,l),c);p!==!0&&a.push(p.value)}return a.length===0||{value:a}}deprecated(s,l){let a=[];for(let c of s){let p=l.normalizeDeprecatedResult(this._valueSchema.deprecated(c,l),c);p!==!1&&a.push(...p.map(({value:u})=>({value:[u]})))}return a}forward(s,l){let a=[];for(let c of s){let p=l.normalizeForwardResult(this._valueSchema.forward(c,l),c);a.push(...p.map(n))}return a}redirect(s,l){let a=[],c=[];for(let p of s){let u=l.normalizeRedirectResult(this._valueSchema.redirect(p,l),p);"remain"in u&&a.push(u.remain),c.push(...u.redirect.map(n))}return a.length===0?{redirect:c}:{redirect:c,remain:a}}overlap(s,l){return s.concat(l)}}function n({from:i,to:s}){return{from:[i],to:s}}t.ArraySchema=r}),ib=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends hr.Schema{expected(){return"true or false"}validate(i){return typeof i=="boolean"}}t.BooleanSchema=r}),bt=re(function(e,t){function r(i,s){return typeof i=="string"||"key"in i?{from:s,to:i}:"from"in i?{from:i.from,to:i.to}:{from:s,to:i.to}}function n(i,s){return i===void 0?[]:Array.isArray(i)?i.map(l=>r(l,s)):[r(i,s)]}Object.defineProperty(t,"__esModule",{value:!0}),t.recordFromArray=function(i,s){let l=Object.create(null);for(let a of i){let c=a[s];if(l[c])throw new Error("Duplicate ".concat(s," ").concat(JSON.stringify(c)));l[c]=a}return l},t.mapFromArray=function(i,s){let l=new Map;for(let a of i){let c=a[s];if(l.has(c))throw new Error("Duplicate ".concat(s," ").concat(JSON.stringify(c)));l.set(c,a)}return l},t.createAutoChecklist=function(){let i=Object.create(null);return s=>{let l=JSON.stringify(s);return!!i[l]||(i[l]=!0,!1)}},t.partition=function(i,s){let l=[],a=[];for(let c of i)s(c)?l.push(c):a.push(c);return[l,a]},t.isInt=function(i){return i===Math.floor(i)},t.comparePrimitive=function(i,s){if(i===s)return 0;let l=typeof i,a=typeof s,c=["undefined","object","boolean","number","string"];return l!==a?c.indexOf(l)-c.indexOf(a):l!=="string"?Number(i)-Number(s):i.localeCompare(s)},t.normalizeDefaultResult=function(i){return i===void 0?{}:i},t.normalizeValidateResult=function(i,s){return i===!0||(i===!1?{value:s}:i)},t.normalizeDeprecatedResult=function(i,s,l=!1){return i!==!1&&(i===!0?!!l||[{value:s}]:"value"in i?[i]:i.length!==0&&i)},t.normalizeTransferResult=r,t.normalizeForwardResult=n,t.normalizeRedirectResult=function(i,s){let l=n(typeof i=="object"&&"redirect"in i?i.redirect:i,s);return l.length===0?{remain:s,redirect:l}:typeof i=="object"&&"remain"in i?{remain:i.remain,redirect:l}:{redirect:l}}}),sb=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends hr.Schema{constructor(i){super(i),this._choices=bt.mapFromArray(i.choices.map(s=>s&&typeof s=="object"?s:{value:s}),"value")}expected({descriptor:i}){let s=Array.from(this._choices.keys()).map(c=>this._choices.get(c)).filter(c=>!c.deprecated).map(c=>c.value).sort(bt.comparePrimitive).map(i.value),l=s.slice(0,-2),a=s.slice(-2);return l.concat(a.join(" or ")).join(", ")}validate(i){return this._choices.has(i)}deprecated(i){let s=this._choices.get(i);return!(!s||!s.deprecated)&&{value:i}}forward(i){let s=this._choices.get(i);return s?s.forward:void 0}redirect(i){let s=this._choices.get(i);return s?s.redirect:void 0}}t.ChoiceSchema=r}),dh=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends hr.Schema{expected(){return"a number"}validate(i,s){return typeof i=="number"}}t.NumberSchema=r}),ab=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends dh.NumberSchema{expected(){return"an integer"}validate(i,s){return s.normalizeValidateResult(super.validate(i,s),i)===!0&&bt.isInt(i)}}t.IntegerSchema=r}),ub=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r extends hr.Schema{expected(){return"a string"}validate(i){return typeof i=="string"}}t.StringSchema=r}),ob=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Je.__exportStar(tb,t),Je.__exportStar(nb,t),Je.__exportStar(rb,t),Je.__exportStar(ib,t),Je.__exportStar(sb,t),Je.__exportStar(ab,t),Je.__exportStar(dh,t),Je.__exportStar(ub,t)}),Ua=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDescriptor=ah.apiDescriptor,t.defaultUnknownHandler=hh.levenUnknownHandler,t.defaultInvalidHandler=ph.commonInvalidHandler,t.defaultDeprecatedHandler=ch.commonDeprecatedHandler}),lb=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=(n,i,s)=>new r(i,s).normalize(n);class r{constructor(i,s){let{logger:l=console,descriptor:a=Ua.defaultDescriptor,unknown:c=Ua.defaultUnknownHandler,invalid:p=Ua.defaultInvalidHandler,deprecated:u=Ua.defaultDeprecatedHandler}=s||{};this._utils={descriptor:a,logger:l||{warn:()=>{}},schemas:bt.recordFromArray(i,"name"),normalizeDefaultResult:bt.normalizeDefaultResult,normalizeDeprecatedResult:bt.normalizeDeprecatedResult,normalizeForwardResult:bt.normalizeForwardResult,normalizeRedirectResult:bt.normalizeRedirectResult,normalizeValidateResult:bt.normalizeValidateResult},this._unknownHandler=c,this._invalidHandler=p,this._deprecatedHandler=u,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=bt.createAutoChecklist()}normalize(i){let s={},l=[i],a=()=>{for(;l.length!==0;){let c=l.shift(),p=this._applyNormalization(c,s);l.push(...p)}};a();for(let c of Object.keys(this._utils.schemas)){let p=this._utils.schemas[c];if(!(c in s)){let u=bt.normalizeDefaultResult(p.default(this._utils));"value"in u&&l.push({[c]:u.value})}}a();for(let c of Object.keys(this._utils.schemas)){let p=this._utils.schemas[c];c in s&&(s[c]=p.postprocess(s[c],this._utils))}return s}_applyNormalization(i,s){let l=[],[a,c]=bt.partition(Object.keys(i),p=>p in this._utils.schemas);for(let p of a){let u=this._utils.schemas[p],d=u.preprocess(i[p],this._utils),h=bt.normalizeValidateResult(u.validate(d,this._utils),d);if(h!==!0){let{value:F}=h,E=this._invalidHandler(p,F,this._utils);throw typeof E=="string"?new Error(E):E}let b=({from:F,to:E})=>{l.push(typeof E=="string"?{[E]:F}:{[E.key]:E.value})},m=({value:F,redirectTo:E})=>{let A=bt.normalizeDeprecatedResult(u.deprecated(F,this._utils),d,!0);if(A!==!1)if(A===!0)this._hasDeprecationWarned(p)||this._utils.logger.warn(this._deprecatedHandler(p,E,this._utils));else for(let{value:P}of A){let L={key:p,value:P};if(!this._hasDeprecationWarned(L)){let N=typeof E=="string"?{key:E,value:P}:E;this._utils.logger.warn(this._deprecatedHandler(L,N,this._utils))}}};bt.normalizeForwardResult(u.forward(d,this._utils),d).forEach(b);let x=bt.normalizeRedirectResult(u.redirect(d,this._utils),d);if(x.redirect.forEach(b),"remain"in x){let F=x.remain;s[p]=p in s?u.overlap(s[p],F,this._utils):F,m({value:F})}for(let{from:F,to:E}of x.redirect)m({value:F,redirectTo:E})}for(let p of c){let u=i[p],d=this._unknownHandler(p,u,this._utils);if(d)for(let h of Object.keys(d)){let b={[h]:d[h]};h in this._utils.schemas?l.push(b):Object.assign(s,b)}}return l}}t.Normalizer=r}),jt=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Je.__exportStar(M2,t),Je.__exportStar(eb,t),Je.__exportStar(ob,t),Je.__exportStar(lb,t),Je.__exportStar(hr,t)});let cl=[],gh=[],mh=(e,t)=>{if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,i=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,i--;let s,l,a,c,p=0;for(;p<n&&e.charCodeAt(p)===t.charCodeAt(p);)p++;if(n-=p,i-=p,n===0)return i;let u=0,d=0;for(;u<n;)gh[u]=e.charCodeAt(p+u),cl[u]=++u;for(;d<i;)for(s=t.charCodeAt(p+d),a=d++,l=d,u=0;u<n;u++)c=s===gh[u]?a:a+1,a=cl[u],l=cl[u]=a>l?c>l?l+1:c:c>a?a+1:c;return l};var yh=mh,cb=mh;yh.default=cb;var ws={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};let Dh={};for(let e of Object.keys(ws))Dh[ws[e]]=e;let Y={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var $r=Y;for(let e of Object.keys(Y)){if(!("channels"in Y[e]))throw new Error("missing channels property: "+e);if(!("labels"in Y[e]))throw new Error("missing channel labels property: "+e);if(Y[e].labels.length!==Y[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=Y[e];delete Y[e].channels,delete Y[e].labels,Object.defineProperty(Y[e],"channels",{value:t}),Object.defineProperty(Y[e],"labels",{value:r})}function pb(e){let t=function(){let n={},i=Object.keys($r);for(let s=i.length,l=0;l<s;l++)n[i[l]]={distance:-1,parent:null};return n}(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys($r[n]);for(let s=i.length,l=0;l<s;l++){let a=i[l],c=t[a];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(a))}}return t}function fb(e,t){return function(r){return t(e(r))}}function hb(e,t){let r=[t[e].parent,e],n=$r[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=fb($r[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}Y.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),l=s-i,a,c;s===i?a=0:t===s?a=(r-n)/l:r===s?a=2+(n-t)/l:n===s&&(a=4+(t-r)/l),a=Math.min(60*a,360),a<0&&(a+=360);let p=(i+s)/2;return c=s===i?0:p<=.5?l/(s+i):l/(2-s-i),[a,100*c,100*p]},Y.rgb.hsv=function(e){let t,r,n,i,s,l=e[0]/255,a=e[1]/255,c=e[2]/255,p=Math.max(l,a,c),u=p-Math.min(l,a,c),d=function(h){return(p-h)/6/u+.5};return u===0?(i=0,s=0):(s=u/p,t=d(l),r=d(a),n=d(c),l===p?i=n-r:a===p?i=1/3+t-n:c===p&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*s,100*p]},Y.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=Y.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,100*s,100*n]},Y.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n);return[100*((1-t-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*i]},Y.rgb.keyword=function(e){let t=Dh[e];if(t)return t;let r,n=1/0;for(let l of Object.keys(ws)){let a=(s=ws[l],((i=e)[0]-s[0])**2+(i[1]-s[1])**2+(i[2]-s[2])**2);a<n&&(n=a,r=l)}var i,s;return r},Y.keyword.rgb=function(e){return ws[e]},Y.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;return t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},Y.rgb.lab=function(e){let t=Y.rgb.xyz(e),r=t[0],n=t[1],i=t[2];return r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,[116*n-16,500*(r-n),200*(n-i)]},Y.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,l;if(r===0)return l=255*n,[l,l,l];i=n<.5?n*(1+r):n+r-n*r;let a=2*n-i,c=[0,0,0];for(let p=0;p<3;p++)s=t+1/3*-(p-1),s<0&&s++,s>1&&s--,l=6*s<1?a+6*(i-a)*s:2*s<1?i:3*s<2?a+(i-a)*(2/3-s)*6:a,c[p]=255*l;return c},Y.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01);return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,[t,100*(n===0?2*i/(s+i):2*r/(n+r)),100*((n+r)/2)]},Y.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),l=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,l];case 1:return[a,n,l];case 2:return[l,n,c];case 3:return[l,a,n];case 4:return[c,l,n];case 5:return[n,l,a]}},Y.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,l;l=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,l/=2,[t,100*s,100*l]},Y.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let l=Math.floor(6*t),a=1-n;s=6*t-l,(1&l)!=0&&(s=1-s);let c=r+s*(a-r),p,u,d;switch(l){default:case 6:case 0:p=a,u=c,d=r;break;case 1:p=c,u=a,d=r;break;case 2:p=r,u=a,d=c;break;case 3:p=r,u=c,d=a;break;case 4:p=c,u=r,d=a;break;case 5:p=a,u=r,d=c}return[255*p,255*u,255*d]},Y.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i))]},Y.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,l;return i=3.2406*t+-1.5372*r+-.4986*n,s=-.9689*t+1.8758*r+.0415*n,l=.0557*t+-.204*r+1.057*n,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,l=l>.0031308?1.055*l**(1/2.4)-.055:12.92*l,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),l=Math.min(Math.max(0,l),1),[255*i,255*s,255*l]},Y.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];return t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*r-16,500*(t-r),200*(r-n)]},Y.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;let i=r**3,s=t**3,l=n**3;return r=i>.008856?i:(r-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,n=l>.008856?l:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},Y.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],i;return i=360*Math.atan2(n,r)/2/Math.PI,i<0&&(i+=360),[t,Math.sqrt(r*r+n*n),i]},Y.lch.lab=function(e){let t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},Y.rgb.ansi16=function(e,t=null){let[r,n,i]=e,s=t===null?Y.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let l=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(l+=60),l},Y.hsv.ansi16=function(e){return Y.rgb.ansi16(Y.hsv.rgb(e),e[2])},Y.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},Y.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},Y.ansi256.rgb=function(e){if(e>=232){let r=10*(e-232)+8;return[r,r,r]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},Y.rgb.hex=function(e){let t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},Y.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(i=>i+i).join(""));let n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},Y.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),l=i-s,a,c;return a=l<1?s/(1-l):0,c=l<=0?0:i===t?(r-n)/l%6:i===r?2+(n-t)/l:4+(t-r)/l,c/=6,c%=1,[360*c,100*l,100*a]},Y.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],100*n,100*i]},Y.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},Y.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[255*n,255*n,255*n];let i=[0,0,0],s=t%1*6,l=s%1,a=1-l,c=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=l,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=l;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=l,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-r)*n,[255*(r*i[0]+c),255*(r*i[1]+c),255*(r*i[2]+c)]},Y.hcg.hsv=function(e){let t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},Y.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},Y.hcg.hwb=function(e){let t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},Y.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,n=r-t,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},Y.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Y.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Y.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Y.gray.hsl=function(e){return[0,0,e[0]]},Y.gray.hsv=Y.gray.hsl,Y.gray.hwb=function(e){return[0,100,e[0]]},Y.gray.cmyk=function(e){return[0,0,0,e[0]]},Y.gray.lab=function(e){return[e[0],0,0]},Y.gray.hex=function(e){let t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},Y.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};let wi={};Object.keys($r).forEach(e=>{wi[e]={},Object.defineProperty(wi[e],"channels",{value:$r[e].channels}),Object.defineProperty(wi[e],"labels",{value:$r[e].labels});let t=function(r){let n=pb(r),i={},s=Object.keys(n);for(let l=s.length,a=0;a<l;a++){let c=s[a];n[c].parent!==null&&(i[c]=hb(c,n))}return i}(e);Object.keys(t).forEach(r=>{let n=t[r];wi[e][r]=function(i){let s=function(...l){let a=l[0];if(a==null)return a;a.length>1&&(l=a);let c=i(l);if(typeof c=="object")for(let p=c.length,u=0;u<p;u++)c[u]=Math.round(c[u]);return c};return"conversion"in i&&(s.conversion=i.conversion),s}(n),wi[e][r].raw=function(i){let s=function(...l){let a=l[0];return a==null?a:(a.length>1&&(l=a),i(l))};return"conversion"in i&&(s.conversion=i.conversion),s}(n)})});var db=wi,Fs=re(function(e){let t=(p,u)=>(...d)=>{let h=p(...d);return"[".concat(h+u,"m")},r=(p,u)=>(...d)=>{let h=p(...d);return"[".concat(38+u,";5;").concat(h,"m")},n=(p,u)=>(...d)=>{let h=p(...d);return"[".concat(38+u,";2;").concat(h[0],";").concat(h[1],";").concat(h[2],"m")},i=p=>p,s=(p,u,d)=>[p,u,d],l=(p,u,d)=>{Object.defineProperty(p,u,{get:()=>{let h=d();return Object.defineProperty(p,u,{value:h,enumerable:!0,configurable:!0}),h},enumerable:!0,configurable:!0})},a,c=(p,u,d,h)=>{a===void 0&&(a=db);let b=h?10:0,m={};for(let[x,F]of Object.entries(a)){let E=x==="ansi16"?"ansi":x;x===u?m[E]=p(d,b):typeof F=="object"&&(m[E]=p(F[u],b))}return m};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){let p=new Map,u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};u.color.gray=u.color.blackBright,u.bgColor.bgGray=u.bgColor.bgBlackBright,u.color.grey=u.color.blackBright,u.bgColor.bgGrey=u.bgColor.bgBlackBright;for(let[d,h]of Object.entries(u)){for(let[b,m]of Object.entries(h))u[b]={open:"[".concat(m[0],"m"),close:"[".concat(m[1],"m")},h[b]=u[b],p.set(m[0],m[1]);Object.defineProperty(u,d,{value:h,enumerable:!1})}return Object.defineProperty(u,"codes",{value:p,enumerable:!1}),u.color.close="[39m",u.bgColor.close="[49m",l(u.color,"ansi",()=>c(t,"ansi16",i,!1)),l(u.color,"ansi256",()=>c(r,"ansi256",i,!1)),l(u.color,"ansi16m",()=>c(n,"rgb",s,!1)),l(u.bgColor,"ansi",()=>c(t,"ansi16",i,!0)),l(u.bgColor,"ansi256",()=>c(r,"ansi256",i,!0)),l(u.bgColor,"ansi16m",()=>c(n,"rgb",s,!0)),u}})}),gb={isatty:()=>!1},Yt=(e,t=Le.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)},bh=or(Object.freeze({__proto__:null,default:gb}));let{env:et}=Le,Fi;function pl(e){return e!==0&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function fl(e,t){if(Fi===0)return 0;if(Yt("color=16m")||Yt("color=full")||Yt("color=truecolor"))return 3;if(Yt("color=256"))return 2;if(e&&!t&&Fi===void 0)return 0;let r=Fi||0;if(et.TERM==="dumb")return r;if(Le.platform==="win32"){let n=Va.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in et)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(n=>n in et)||et.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in et)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(et.TEAMCITY_VERSION)?1:0;if("GITHUB_ACTIONS"in et)return 1;if(et.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in et){let n=parseInt((et.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(et.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(et.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(et.TERM)||"COLORTERM"in et?1:r}Yt("no-color")||Yt("no-colors")||Yt("color=false")||Yt("color=never")?Fi=0:(Yt("color")||Yt("colors")||Yt("color=true")||Yt("color=always"))&&(Fi=1),"FORCE_COLOR"in et&&(Fi=et.FORCE_COLOR==="true"?1:et.FORCE_COLOR==="false"?0:et.FORCE_COLOR.length===0?1:Math.min(parseInt(et.FORCE_COLOR,10),3));var mb={supportsColor:function(e){return pl(fl(e,e&&e.isTTY))},stdout:pl(fl(!0,bh.isatty(1))),stderr:pl(fl(!0,bh.isatty(2)))},yb={stringReplaceAll:(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,l="";do l+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return l+=e.substr(s),l},stringEncaseCRLFWithFirstIndex:(e,t,r,n)=>{let i=0,s="";do{let l=e[n-1]==="\r";s+=e.substr(i,(l?n-1:n)-i)+t+(l?`\r
|
|
115
115
|
`:`
|
|
116
116
|
`)+r,i=n+1,n=e.indexOf(`
|
|
117
|
-
`,i)}while(n!==-1);return s+=e.substr(i),s}};let
|
|
118
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a","\x07"]]);function
|
|
119
|
-
`);return s!==-1&&(t=Ab(t,i,n,s)),n+t+i},gl,wh=(e,...t)=>{let[r]=t;if(!qa(r)||!qa(r.raw))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return gl===void 0&&(gl=Cb),gl(e,i.join(""))};Object.defineProperties($a.prototype,Ti);let Ga=$a();Ga.supportsColor=fl,Ga.stderr=$a({level:hl?hl.level:0}),Ga.stderr.supportsColor=hl;var Fh=Ga,Fb=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e},Tb=typeof ut=="object"&&ut&&ut.Object===Object&&ut,kb=typeof self=="object"&&self&&self.Object===Object&&self,ki=(Tb||kb||Function("return this")()).Symbol,Th=Object.prototype,_b=Th.hasOwnProperty,Pb=Th.toString,Ts=ki?ki.toStringTag:void 0,Bb=function(e){var t=_b.call(e,Ts),r=e[Ts];try{e[Ts]=void 0;var n=!0}catch(s){}var i=Pb.call(e);return n&&(t?e[Ts]=r:delete e[Ts]),i},Nb=Object.prototype.toString,Ob=function(e){return Nb.call(e)},kh=ki?ki.toStringTag:void 0,Ib=function(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":kh&&kh in Object(e)?Bb(e):Ob(e)},_h=function(e){return e!=null&&typeof e=="object"},Ph=function(e){return _h(e)&&Ib(e)=="[object Arguments]"},Bh=Object.prototype,Lb=Bh.hasOwnProperty,Rb=Bh.propertyIsEnumerable,Mb=Ph(function(){return arguments}())?Ph:function(e){return _h(e)&&Lb.call(e,"callee")&&!Rb.call(e,"callee")},jb=Array.isArray,Nh=ki?ki.isConcatSpreadable:void 0,Vb=function(e){return jb(e)||Mb(e)||!!(Nh&&e&&e[Nh])},Ub=function e(t,r,n,i,s){var l=-1,a=t.length;for(n||(n=Vb),s||(s=[]);++l<a;){var c=t[l];r>0&&n(c)?r>1?e(c,r-1,n,i,s):Fb(s,c):i||(s[s.length]=c)}return s},ml=function(e){return(e==null?0:e.length)?Ub(e,1):[]};let Ha={key:e=>e.length===1?"-".concat(e):"--".concat(e),value:e=>Mt.apiDescriptor.value(e),pair:({key:e,value:t})=>t===!1?"--no-".concat(e):t===!0?Ha.key(e):t===""?"".concat(Ha.key(e)," without an argument"):"".concat(Ha.key(e),"=").concat(t)};class qb extends Mt.ChoiceSchema{constructor({name:t,flags:r}){super({name:t,choices:r}),this._flags=r.slice().sort()}preprocess(t,r){if(typeof t=="string"&&t.length!==0&&!this._flags.includes(t)){let n=this._flags.find(i=>mh(i,t)<3);if(n)return r.logger.warn(["Unknown flag ".concat(Fh.yellow(r.descriptor.value(t)),","),"did you mean ".concat(Fh.blue(r.descriptor.value(n)),"?")].join(" ")),n}return t}expected(){return"a flag"}}let yl;function Oh(e,t,{logger:r,isCLI:n=!1,passThrough:i=!1}={}){let s=i?Array.isArray(i)?(d,h)=>i.includes(d)?{[d]:h}:void 0:(d,h)=>({[d]:h}):(d,h,b)=>{let m=f(b.schemas,["_"]);return Mt.levenUnknownHandler(d,h,Object.assign({},b,{schemas:m}))},l=n?Ha:Mt.apiDescriptor,a=function(d,{isCLI:h}){let b=[];h&&b.push(Mt.AnySchema.create({name:"_"}));for(let m of d)b.push($b(m,{isCLI:h,optionInfos:d})),m.alias&&h&&b.push(Mt.AliasSchema.create({name:m.alias,sourceName:m.name}));return b}(t,{isCLI:n}),c=new Mt.Normalizer(a,{logger:r,unknown:s,descriptor:l}),p=r!==!1;p&&yl&&(c._hasDeprecationWarned=yl);let u=c.normalize(e);return p&&(yl=c._hasDeprecationWarned),u}function $b(e,{isCLI:t,optionInfos:r}){let n,i={name:e.name},s={};switch(e.type){case"int":n=Mt.IntegerSchema,t&&(i.preprocess=l=>Number(l));break;case"string":n=Mt.StringSchema;break;case"choice":n=Mt.ChoiceSchema,i.choices=e.choices.map(l=>typeof l=="object"&&l.redirect?Object.assign({},l,{redirect:{to:{key:e.name,value:l.redirect}}}):l);break;case"boolean":n=Mt.BooleanSchema;break;case"flag":n=qb,i.flags=ml(r.map(l=>[l.alias,l.description&&l.name,l.oppositeDescription&&"no-".concat(l.name)].filter(Boolean)));break;case"path":n=Mt.StringSchema;break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?i.validate=(l,a,c)=>e.exception(l)||a.validate(l,c):i.validate=(l,a,c)=>l===void 0||a.validate(l,c),e.redirect&&(s.redirect=l=>l?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let l=i.preprocess||(a=>a);i.preprocess=(a,c,p)=>c.preprocess(l(Array.isArray(a)?a[a.length-1]:a),p)}return e.array?Mt.ArraySchema.create(Object.assign({},t?{preprocess:l=>[].concat(l)}:{},s,{valueSchema:n.create(i)})):n.create(Object.assign({},i,s))}var Ih={normalizeApiOptions:function(e,t,r){return Oh(e,t,r)},normalizeCliOptions:function(e,t,r){return Oh(e,t,Object.assign({isCLI:!0},r))}};function ks(e,t){let{ignoreDecorators:r}=t||{};if(!r){let n=e.declaration&&e.declaration.decorators||e.decorators;if(n&&n.length>0)return ks(n[0])}return e.range?e.range[0]:e.start}function _s(e){let t=e.range?e.range[1]:e.end;return e.typeAnnotation?Math.max(t,_s(e.typeAnnotation)):t}function Lh(e,t){return ks(e)===ks(t)}var Ft={locStart:ks,locEnd:_s,composeLoc:function(e,t=e){let r=ks(e);return[r,typeof t=="number"?r+t:_s(t)]},hasSameLocStart:Lh,hasSameLoc:function(e,t){return Lh(e,t)&&function(r,n){return _s(r)===_s(n)}(e,t)}},Wb=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(r){var n={type:"invalid",value:r[0],closed:void 0};return r[1]?(n.type="string",n.closed=!(!r[3]&&!r[4])):r[5]?n.type="comment":r[6]?(n.type="comment",n.closed=!!r[7]):r[8]?n.type="regex":r[9]?n.type="number":r[10]?n.type="name":r[11]?n.type="punctuator":r[12]&&(n.type="whitespace"),n}}),Dl=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isIdentifierStart=p,t.isIdentifierChar=u,t.isIdentifierName=function(d){let h=!0;for(let b=0,m=Array.from(d);b<m.length;b++){let x=m[b].codePointAt(0);if(h){if(!p(x))return!1;h=!1}else if(!u(x))return!1}return!h};let r="\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",n="\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",i=new RegExp("["+r+"]"),s=new RegExp("["+r+n+"]");r=n=null;let l=[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],a=[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 c(d,h){let b=65536;for(let m=0,x=h.length;m<x;m+=2){if(b+=h[m],b>d)return!1;if(b+=h[m+1],b>=d)return!0}return!1}function p(d){return d<65?d===36:d<=90||(d<97?d===95:d<=122||(d<=65535?d>=170&&i.test(String.fromCharCode(d)):c(d,l)))}function u(d){return d<48?d===36:d<58||!(d<65)&&(d<=90||(d<97?d===95:d<=122||(d<=65535?d>=170&&s.test(String.fromCharCode(d)):c(d,l)||c(d,a))))}}),Ps=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isReservedWord=a,t.isStrictReservedWord=c,t.isStrictBindOnlyReservedWord=p,t.isStrictBindReservedWord=function(u,d){return c(u,d)||p(u)},t.isKeyword=function(u){return i.has(u)};let r=["implements","interface","let","package","private","protected","public","static","yield"],n=["eval","arguments"],i=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),s=new Set(r),l=new Set(n);function a(u,d){return d&&u==="await"||u==="enum"}function c(u,d){return a(u,d)||s.has(u)}function p(u){return l.has(u)}}),Rh=te(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return Dl.isIdentifierName}}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return Dl.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return Dl.isIdentifierStart}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return Ps.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return Ps.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return Ps.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return Ps.isStrictReservedWord}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return Ps.isKeyword}})}),Gb=/[|\\{}()[\]^$+*?.]/g,bl=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Gb,"\\$&")},Wr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Gr=te(function(e){var t={};for(var r in Wr)Wr.hasOwnProperty(r)&&(t[Wr[r]]=r);var n=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in n)if(n.hasOwnProperty(i)){if(!("channels"in n[i]))throw new Error("missing channels property: "+i);if(!("labels"in n[i]))throw new Error("missing channel labels property: "+i);if(n[i].labels.length!==n[i].channels)throw new Error("channel and label counts mismatch: "+i);var s=n[i].channels,l=n[i].labels;delete n[i].channels,delete n[i].labels,Object.defineProperty(n[i],"channels",{value:s}),Object.defineProperty(n[i],"labels",{value:l})}n.rgb.hsl=function(a){var c,p,u=a[0]/255,d=a[1]/255,h=a[2]/255,b=Math.min(u,d,h),m=Math.max(u,d,h),x=m-b;return m===b?c=0:u===m?c=(d-h)/x:d===m?c=2+(h-u)/x:h===m&&(c=4+(u-d)/x),(c=Math.min(60*c,360))<0&&(c+=360),p=(b+m)/2,[c,100*(m===b?0:p<=.5?x/(m+b):x/(2-m-b)),100*p]},n.rgb.hsv=function(a){var c,p,u,d,h,b=a[0]/255,m=a[1]/255,x=a[2]/255,F=Math.max(b,m,x),E=F-Math.min(b,m,x),A=function(P){return(F-P)/6/E+.5};return E===0?d=h=0:(h=E/F,c=A(b),p=A(m),u=A(x),b===F?d=u-p:m===F?d=1/3+c-u:x===F&&(d=2/3+p-c),d<0?d+=1:d>1&&(d-=1)),[360*d,100*h,100*F]},n.rgb.hwb=function(a){var c=a[0],p=a[1],u=a[2];return[n.rgb.hsl(a)[0],100*(1/255*Math.min(c,Math.min(p,u))),100*(u=1-1/255*Math.max(c,Math.max(p,u)))]},n.rgb.cmyk=function(a){var c,p=a[0]/255,u=a[1]/255,d=a[2]/255;return[100*((1-p-(c=Math.min(1-p,1-u,1-d)))/(1-c)||0),100*((1-u-c)/(1-c)||0),100*((1-d-c)/(1-c)||0),100*c]},n.rgb.keyword=function(a){var c=t[a];if(c)return c;var p,u,d,h=1/0;for(var b in Wr)if(Wr.hasOwnProperty(b)){var m=Wr[b],x=(u=a,d=m,Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)+Math.pow(u[2]-d[2],2));x<h&&(h=x,p=b)}return p},n.keyword.rgb=function(a){return Wr[a]},n.rgb.xyz=function(a){var c=a[0]/255,p=a[1]/255,u=a[2]/255;return[100*(.4124*(c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92)+.3576*(p=p>.04045?Math.pow((p+.055)/1.055,2.4):p/12.92)+.1805*(u=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92)),100*(.2126*c+.7152*p+.0722*u),100*(.0193*c+.1192*p+.9505*u)]},n.rgb.lab=function(a){var c=n.rgb.xyz(a),p=c[0],u=c[1],d=c[2];return u/=100,d/=108.883,p=(p/=95.047)>.008856?Math.pow(p,1/3):7.787*p+16/116,[116*(u=u>.008856?Math.pow(u,1/3):7.787*u+16/116)-16,500*(p-u),200*(u-(d=d>.008856?Math.pow(d,1/3):7.787*d+16/116))]},n.hsl.rgb=function(a){var c,p,u,d,h,b=a[0]/360,m=a[1]/100,x=a[2]/100;if(m===0)return[h=255*x,h,h];c=2*x-(p=x<.5?x*(1+m):x+m-x*m),d=[0,0,0];for(var F=0;F<3;F++)(u=b+1/3*-(F-1))<0&&u++,u>1&&u--,h=6*u<1?c+6*(p-c)*u:2*u<1?p:3*u<2?c+(p-c)*(2/3-u)*6:c,d[F]=255*h;return d},n.hsl.hsv=function(a){var c=a[0],p=a[1]/100,u=a[2]/100,d=p,h=Math.max(u,.01);return p*=(u*=2)<=1?u:2-u,d*=h<=1?h:2-h,[c,100*(u===0?2*d/(h+d):2*p/(u+p)),100*((u+p)/2)]},n.hsv.rgb=function(a){var c=a[0]/60,p=a[1]/100,u=a[2]/100,d=Math.floor(c)%6,h=c-Math.floor(c),b=255*u*(1-p),m=255*u*(1-p*h),x=255*u*(1-p*(1-h));switch(u*=255,d){case 0:return[u,x,b];case 1:return[m,u,b];case 2:return[b,u,x];case 3:return[b,m,u];case 4:return[x,b,u];case 5:return[u,b,m]}},n.hsv.hsl=function(a){var c,p,u,d=a[0],h=a[1]/100,b=a[2]/100,m=Math.max(b,.01);return u=(2-h)*b,p=h*m,[d,100*(p=(p/=(c=(2-h)*m)<=1?c:2-c)||0),100*(u/=2)]},n.hwb.rgb=function(a){var c,p,u,d,h,b,m,x=a[0]/360,F=a[1]/100,E=a[2]/100,A=F+E;switch(A>1&&(F/=A,E/=A),u=6*x-(c=Math.floor(6*x)),(1&c)!=0&&(u=1-u),d=F+u*((p=1-E)-F),c){default:case 6:case 0:h=p,b=d,m=F;break;case 1:h=d,b=p,m=F;break;case 2:h=F,b=p,m=d;break;case 3:h=F,b=d,m=p;break;case 4:h=d,b=F,m=p;break;case 5:h=p,b=F,m=d}return[255*h,255*b,255*m]},n.cmyk.rgb=function(a){var c=a[0]/100,p=a[1]/100,u=a[2]/100,d=a[3]/100;return[255*(1-Math.min(1,c*(1-d)+d)),255*(1-Math.min(1,p*(1-d)+d)),255*(1-Math.min(1,u*(1-d)+d))]},n.xyz.rgb=function(a){var c,p,u,d=a[0]/100,h=a[1]/100,b=a[2]/100;return p=-.9689*d+1.8758*h+.0415*b,u=.0557*d+-.204*h+1.057*b,c=(c=3.2406*d+-1.5372*h+-.4986*b)>.0031308?1.055*Math.pow(c,1/2.4)-.055:12.92*c,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:12.92*p,u=u>.0031308?1.055*Math.pow(u,1/2.4)-.055:12.92*u,[255*(c=Math.min(Math.max(0,c),1)),255*(p=Math.min(Math.max(0,p),1)),255*(u=Math.min(Math.max(0,u),1))]},n.xyz.lab=function(a){var c=a[0],p=a[1],u=a[2];return p/=100,u/=108.883,c=(c/=95.047)>.008856?Math.pow(c,1/3):7.787*c+16/116,[116*(p=p>.008856?Math.pow(p,1/3):7.787*p+16/116)-16,500*(c-p),200*(p-(u=u>.008856?Math.pow(u,1/3):7.787*u+16/116))]},n.lab.xyz=function(a){var c,p,u,d=a[0];c=a[1]/500+(p=(d+16)/116),u=p-a[2]/200;var h=Math.pow(p,3),b=Math.pow(c,3),m=Math.pow(u,3);return p=h>.008856?h:(p-16/116)/7.787,c=b>.008856?b:(c-16/116)/7.787,u=m>.008856?m:(u-16/116)/7.787,[c*=95.047,p*=100,u*=108.883]},n.lab.lch=function(a){var c,p=a[0],u=a[1],d=a[2];return(c=360*Math.atan2(d,u)/2/Math.PI)<0&&(c+=360),[p,Math.sqrt(u*u+d*d),c]},n.lch.lab=function(a){var c,p=a[0],u=a[1];return c=a[2]/360*2*Math.PI,[p,u*Math.cos(c),u*Math.sin(c)]},n.rgb.ansi16=function(a){var c=a[0],p=a[1],u=a[2],d=1 in arguments?arguments[1]:n.rgb.hsv(a)[2];if((d=Math.round(d/50))===0)return 30;var h=30+(Math.round(u/255)<<2|Math.round(p/255)<<1|Math.round(c/255));return d===2&&(h+=60),h},n.hsv.ansi16=function(a){return n.rgb.ansi16(n.hsv.rgb(a),a[2])},n.rgb.ansi256=function(a){var c=a[0],p=a[1],u=a[2];return c===p&&p===u?c<8?16:c>248?231:Math.round((c-8)/247*24)+232:16+36*Math.round(c/255*5)+6*Math.round(p/255*5)+Math.round(u/255*5)},n.ansi16.rgb=function(a){var c=a%10;if(c===0||c===7)return a>50&&(c+=3.5),[c=c/10.5*255,c,c];var p=.5*(1+~~(a>50));return[(1&c)*p*255,(c>>1&1)*p*255,(c>>2&1)*p*255]},n.ansi256.rgb=function(a){if(a>=232){var c=10*(a-232)+8;return[c,c,c]}var p;return a-=16,[Math.floor(a/36)/5*255,Math.floor((p=a%36)/6)/5*255,p%6/5*255]},n.rgb.hex=function(a){var c=(((255&Math.round(a[0]))<<16)+((255&Math.round(a[1]))<<8)+(255&Math.round(a[2]))).toString(16).toUpperCase();return"000000".substring(c.length)+c},n.hex.rgb=function(a){var c=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!c)return[0,0,0];var p=c[0];c[0].length===3&&(p=p.split("").map(function(d){return d+d}).join(""));var u=parseInt(p,16);return[u>>16&255,u>>8&255,255&u]},n.rgb.hcg=function(a){var c,p=a[0]/255,u=a[1]/255,d=a[2]/255,h=Math.max(Math.max(p,u),d),b=Math.min(Math.min(p,u),d),m=h-b;return c=m<=0?0:h===p?(u-d)/m%6:h===u?2+(d-p)/m:4+(p-u)/m+4,c/=6,[360*(c%=1),100*m,100*(m<1?b/(1-m):0)]},n.hsl.hcg=function(a){var c=a[1]/100,p=a[2]/100,u=1,d=0;return(u=p<.5?2*c*p:2*c*(1-p))<1&&(d=(p-.5*u)/(1-u)),[a[0],100*u,100*d]},n.hsv.hcg=function(a){var c=a[1]/100,p=a[2]/100,u=c*p,d=0;return u<1&&(d=(p-u)/(1-u)),[a[0],100*u,100*d]},n.hcg.rgb=function(a){var c=a[0]/360,p=a[1]/100,u=a[2]/100;if(p===0)return[255*u,255*u,255*u];var d,h=[0,0,0],b=c%1*6,m=b%1,x=1-m;switch(Math.floor(b)){case 0:h[0]=1,h[1]=m,h[2]=0;break;case 1:h[0]=x,h[1]=1,h[2]=0;break;case 2:h[0]=0,h[1]=1,h[2]=m;break;case 3:h[0]=0,h[1]=x,h[2]=1;break;case 4:h[0]=m,h[1]=0,h[2]=1;break;default:h[0]=1,h[1]=0,h[2]=x}return d=(1-p)*u,[255*(p*h[0]+d),255*(p*h[1]+d),255*(p*h[2]+d)]},n.hcg.hsv=function(a){var c=a[1]/100,p=c+a[2]/100*(1-c),u=0;return p>0&&(u=c/p),[a[0],100*u,100*p]},n.hcg.hsl=function(a){var c=a[1]/100,p=a[2]/100*(1-c)+.5*c,u=0;return p>0&&p<.5?u=c/(2*p):p>=.5&&p<1&&(u=c/(2*(1-p))),[a[0],100*u,100*p]},n.hcg.hwb=function(a){var c=a[1]/100,p=c+a[2]/100*(1-c);return[a[0],100*(p-c),100*(1-p)]},n.hwb.hcg=function(a){var c=a[1]/100,p=1-a[2]/100,u=p-c,d=0;return u<1&&(d=(p-u)/(1-u)),[a[0],100*u,100*d]},n.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},n.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},n.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},n.gray.hsl=n.gray.hsv=function(a){return[0,0,a[0]]},n.gray.hwb=function(a){return[0,100,a[0]]},n.gray.cmyk=function(a){return[0,0,0,a[0]]},n.gray.lab=function(a){return[a[0],0,0]},n.gray.hex=function(a){var c=255&Math.round(a[0]/100*255),p=((c<<16)+(c<<8)+c).toString(16).toUpperCase();return"000000".substring(p.length)+p},n.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]}});function Hb(e){var t=function(){for(var p={},u=Object.keys(Gr),d=u.length,h=0;h<d;h++)p[u[h]]={distance:-1,parent:null};return p}(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Gr[n]),s=i.length,l=0;l<s;l++){var a=i[l],c=t[a];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(a))}return t}function zb(e,t){return function(r){return t(e(r))}}function Jb(e,t){for(var r=[t[e].parent,e],n=Gr[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=zb(Gr[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var _i={};Object.keys(Gr).forEach(function(e){_i[e]={},Object.defineProperty(_i[e],"channels",{value:Gr[e].channels}),Object.defineProperty(_i[e],"labels",{value:Gr[e].labels});var t=function(r){for(var n=Hb(r),i={},s=Object.keys(n),l=s.length,a=0;a<l;a++){var c=s[a];n[c].parent!==null&&(i[c]=Jb(c,n))}return i}(e);Object.keys(t).forEach(function(r){var n=t[r];_i[e][r]=function(i){var s=function(l){if(l==null)return l;arguments.length>1&&(l=Array.prototype.slice.call(arguments));var a=i(l);if(typeof a=="object")for(var c=a.length,p=0;p<c;p++)a[p]=Math.round(a[p]);return a};return"conversion"in i&&(s.conversion=i.conversion),s}(n),_i[e][r].raw=function(i){var s=function(l){return l==null?l:(arguments.length>1&&(l=Array.prototype.slice.call(arguments)),i(l))};return"conversion"in i&&(s.conversion=i.conversion),s}(n)})});var Pi=_i,Ke=te(function(e){let t=(i,s)=>function(){let l=i.apply(Pi,arguments);return"[".concat(l+s,"m")},r=(i,s)=>function(){let l=i.apply(Pi,arguments);return"[".concat(38+s,";5;").concat(l,"m")},n=(i,s)=>function(){let l=i.apply(Pi,arguments);return"[".concat(38+s,";2;").concat(l[0],";").concat(l[1],";").concat(l[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){let i=new Map,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};s.color.grey=s.color.gray;for(let c of Object.keys(s)){let p=s[c];for(let u of Object.keys(p)){let d=p[u];s[u]={open:"[".concat(d[0],"m"),close:"[".concat(d[1],"m")},p[u]=s[u],i.set(d[0],d[1])}Object.defineProperty(s,c,{value:p,enumerable:!1}),Object.defineProperty(s,"codes",{value:i,enumerable:!1})}let l=c=>c,a=(c,p,u)=>[c,p,u];s.color.close="[39m",s.bgColor.close="[49m",s.color.ansi={ansi:t(l,0)},s.color.ansi256={ansi256:r(l,0)},s.color.ansi16m={rgb:n(a,0)},s.bgColor.ansi={ansi:t(l,10)},s.bgColor.ansi256={ansi256:r(l,10)},s.bgColor.ansi16m={rgb:n(a,10)};for(let c of Object.keys(Pi)){if(typeof Pi[c]!="object")continue;let p=Pi[c];c==="ansi16"&&(c="ansi"),"ansi16"in p&&(s.color.ansi[c]=t(p.ansi16,0),s.bgColor.ansi[c]=t(p.ansi16,10)),"ansi256"in p&&(s.color.ansi256[c]=r(p.ansi256,0),s.bgColor.ansi256[c]=r(p.ansi256,10)),"rgb"in p&&(s.color.ansi16m[c]=n(p.rgb,0),s.bgColor.ansi16m[c]=n(p.rgb,10))}return s}})});let Et=Le.env,Bi;function El(e){return function(t){return t!==0&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}(function(t){if(Bi===!1)return 0;if(He("color=16m")||He("color=full")||He("color=truecolor"))return 3;if(He("color=256"))return 2;if(t&&!t.isTTY&&Bi!==!0)return 0;let r=Bi?1:0;if(Le.platform==="win32"){let n=Va.release().split(".");return Number(Le.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Et)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(n=>n in Et)||Et.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Et)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Et.TEAMCITY_VERSION)?1:0;if(Et.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Et){let n=parseInt((Et.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Et.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Et.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Et.TERM)||"COLORTERM"in Et?1:(Et.TERM,r)}(e))}He("no-color")||He("no-colors")||He("color=false")?Bi=!1:(He("color")||He("colors")||He("color=true")||He("color=always"))&&(Bi=!0),"FORCE_COLOR"in Et&&(Bi=Et.FORCE_COLOR.length===0||parseInt(Et.FORCE_COLOR,10)!==0);var Xb={supportsColor:El,stdout:El(Le.stdout),stderr:El(Le.stderr)};let Yb=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Mh=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Kb=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Qb=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Zb=new Map([["n",`
|
|
120
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a","\x07"]]);function
|
|
121
|
-
`):F[0]})}(function(m){return{keyword:m.cyan,capitalized:m.yellow,jsx_tag:m.yellow,punctuator:m.yellow,number:m.magenta,string:m.green,regex:m.magenta,comment:m.grey,invalid:m.white.bgRed.bold}}(b),d)}return d};var r,n=function(d){if(d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var h=s();if(h&&h.has(d))return h.get(d);var b={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in d)if(Object.prototype.hasOwnProperty.call(d,x)){var F=m?Object.getOwnPropertyDescriptor(d,x):null;F&&(F.get||F.set)?Object.defineProperty(b,x,F):b[x]=d[x]}return b.default=d,h&&h.set(d,b),b}(
|
|
122
|
-
`,b(h.gutter,q.replace(/\d/g," ")),Ae,b(h.marker,"^").repeat(xe)].join(""),
|
|
117
|
+
`,i)}while(n!==-1);return s+=e.substr(i),s}};let Db=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Eh=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,bb=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Eb=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,vb=new Map([["n",`
|
|
118
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a","\x07"]]);function vh(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):vb.get(e)||e}function Cb(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n){let l=Number(s);if(Number.isNaN(l)){if(!(i=s.match(bb)))throw new Error("Invalid Chalk template style argument: ".concat(s," (in style '").concat(e,"')"));r.push(i[2].replace(Eb,(a,c,p)=>c?vh(c):p))}else r.push(l)}return r}function xb(e){Eh.lastIndex=0;let t=[],r;for(;(r=Eh.exec(e))!==null;){let n=r[1];if(r[2]){let i=Cb(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Ch(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let[i,s]of Object.entries(r))if(Array.isArray(s)){if(!(i in n))throw new Error("Unknown Chalk style: ".concat(i));n=s.length>0?n[i](...s):n[i]}return n}var Ab=(e,t)=>{let r=[],n=[],i=[];if(t.replace(Db,(s,l,a,c,p,u)=>{if(l)i.push(vh(l));else if(c){let d=i.join("");i=[],n.push(r.length===0?d:Ch(e,r)(d)),r.push({inverse:a,styles:xb(c)})}else if(p){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Ch(e,r)(i.join(""))),i=[],r.pop()}else i.push(u)}),n.push(i.join("")),r.length>0){let s="Chalk template literal is missing ".concat(r.length," closing bracket").concat(r.length===1?"":"s"," (`}`)");throw new Error(s)}return n.join("")};let{stdout:hl,stderr:dl}=mb,{stringReplaceAll:Sb,stringEncaseCRLFWithFirstIndex:wb}=yb,{isArray:qa}=Array,xh=["ansi","ansi","ansi256","ansi16m"],Ti=Object.create(null);class Fb{constructor(t){return Ah(t)}}let Ah=e=>{let t={};return((r,n={})=>{if(n.level&&!(Number.isInteger(n.level)&&n.level>=0&&n.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let i=hl?hl.level:0;r.level=n.level===void 0?i:n.level})(t,e),t.template=(...r)=>Fh(t.template,...r),Object.setPrototypeOf(t,$a.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Fb,t.template};function $a(e){return Ah(e)}for(let[e,t]of Object.entries(Fs))Ti[e]={get(){let r=Wa(this,gl(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};Ti.visible={get(){let e=Wa(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};let Sh=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of Sh)Ti[e]={get(){let{level:t}=this;return function(...r){let n=gl(Fs.color[xh[t]][e](...r),Fs.color.close,this._styler);return Wa(this,n,this._isEmpty)}}};for(let e of Sh)Ti["bg"+e[0].toUpperCase()+e.slice(1)]={get(){let{level:t}=this;return function(...r){let n=gl(Fs.bgColor[xh[t]][e](...r),Fs.bgColor.close,this._styler);return Wa(this,n,this._isEmpty)}}};let Tb=Object.defineProperties(()=>{},Object.assign({},Ti,{level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}})),gl=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Wa=(e,t,r)=>{let n=(...i)=>qa(i[0])&&qa(i[0].raw)?wh(n,Fh(n,...i)):wh(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Tb),n._generator=e,n._styler=t,n._isEmpty=r,n},wh=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.indexOf("")!==-1)for(;r!==void 0;)t=Sb(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
|
|
119
|
+
`);return s!==-1&&(t=wb(t,i,n,s)),n+t+i},ml,Fh=(e,...t)=>{let[r]=t;if(!qa(r)||!qa(r.raw))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return ml===void 0&&(ml=Ab),ml(e,i.join(""))};Object.defineProperties($a.prototype,Ti);let Ga=$a();Ga.supportsColor=hl,Ga.stderr=$a({level:dl?dl.level:0}),Ga.stderr.supportsColor=dl;var Th=Ga,kb=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e},_b=typeof ut=="object"&&ut&&ut.Object===Object&&ut,Pb=typeof self=="object"&&self&&self.Object===Object&&self,ki=(_b||Pb||Function("return this")()).Symbol,kh=Object.prototype,Bb=kh.hasOwnProperty,Nb=kh.toString,Ts=ki?ki.toStringTag:void 0,Ob=function(e){var t=Bb.call(e,Ts),r=e[Ts];try{e[Ts]=void 0;var n=!0}catch(s){}var i=Nb.call(e);return n&&(t?e[Ts]=r:delete e[Ts]),i},Ib=Object.prototype.toString,Lb=function(e){return Ib.call(e)},_h=ki?ki.toStringTag:void 0,Rb=function(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":_h&&_h in Object(e)?Ob(e):Lb(e)},Ph=function(e){return e!=null&&typeof e=="object"},Bh=function(e){return Ph(e)&&Rb(e)=="[object Arguments]"},Nh=Object.prototype,Mb=Nh.hasOwnProperty,jb=Nh.propertyIsEnumerable,Vb=Bh(function(){return arguments}())?Bh:function(e){return Ph(e)&&Mb.call(e,"callee")&&!jb.call(e,"callee")},Ub=Array.isArray,Oh=ki?ki.isConcatSpreadable:void 0,qb=function(e){return Ub(e)||Vb(e)||!!(Oh&&e&&e[Oh])},$b=function e(t,r,n,i,s){var l=-1,a=t.length;for(n||(n=qb),s||(s=[]);++l<a;){var c=t[l];r>0&&n(c)?r>1?e(c,r-1,n,i,s):kb(s,c):i||(s[s.length]=c)}return s},yl=function(e){return(e==null?0:e.length)?$b(e,1):[]};let Ha={key:e=>e.length===1?"-".concat(e):"--".concat(e),value:e=>jt.apiDescriptor.value(e),pair:({key:e,value:t})=>t===!1?"--no-".concat(e):t===!0?Ha.key(e):t===""?"".concat(Ha.key(e)," without an argument"):"".concat(Ha.key(e),"=").concat(t)};class Wb extends jt.ChoiceSchema{constructor({name:t,flags:r}){super({name:t,choices:r}),this._flags=r.slice().sort()}preprocess(t,r){if(typeof t=="string"&&t.length!==0&&!this._flags.includes(t)){let n=this._flags.find(i=>yh(i,t)<3);if(n)return r.logger.warn(["Unknown flag ".concat(Th.yellow(r.descriptor.value(t)),","),"did you mean ".concat(Th.blue(r.descriptor.value(n)),"?")].join(" ")),n}return t}expected(){return"a flag"}}let Dl;function Ih(e,t,{logger:r,isCLI:n=!1,passThrough:i=!1}={}){let s=i?Array.isArray(i)?(d,h)=>i.includes(d)?{[d]:h}:void 0:(d,h)=>({[d]:h}):(d,h,b)=>{let m=f(b.schemas,["_"]);return jt.levenUnknownHandler(d,h,Object.assign({},b,{schemas:m}))},l=n?Ha:jt.apiDescriptor,a=function(d,{isCLI:h}){let b=[];h&&b.push(jt.AnySchema.create({name:"_"}));for(let m of d)b.push(Gb(m,{isCLI:h,optionInfos:d})),m.alias&&h&&b.push(jt.AliasSchema.create({name:m.alias,sourceName:m.name}));return b}(t,{isCLI:n}),c=new jt.Normalizer(a,{logger:r,unknown:s,descriptor:l}),p=r!==!1;p&&Dl&&(c._hasDeprecationWarned=Dl);let u=c.normalize(e);return p&&(Dl=c._hasDeprecationWarned),u}function Gb(e,{isCLI:t,optionInfos:r}){let n,i={name:e.name},s={};switch(e.type){case"int":n=jt.IntegerSchema,t&&(i.preprocess=l=>Number(l));break;case"string":n=jt.StringSchema;break;case"choice":n=jt.ChoiceSchema,i.choices=e.choices.map(l=>typeof l=="object"&&l.redirect?Object.assign({},l,{redirect:{to:{key:e.name,value:l.redirect}}}):l);break;case"boolean":n=jt.BooleanSchema;break;case"flag":n=Wb,i.flags=yl(r.map(l=>[l.alias,l.description&&l.name,l.oppositeDescription&&"no-".concat(l.name)].filter(Boolean)));break;case"path":n=jt.StringSchema;break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?i.validate=(l,a,c)=>e.exception(l)||a.validate(l,c):i.validate=(l,a,c)=>l===void 0||a.validate(l,c),e.redirect&&(s.redirect=l=>l?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let l=i.preprocess||(a=>a);i.preprocess=(a,c,p)=>c.preprocess(l(Array.isArray(a)?a[a.length-1]:a),p)}return e.array?jt.ArraySchema.create(Object.assign({},t?{preprocess:l=>[].concat(l)}:{},s,{valueSchema:n.create(i)})):n.create(Object.assign({},i,s))}var Lh={normalizeApiOptions:function(e,t,r){return Ih(e,t,r)},normalizeCliOptions:function(e,t,r){return Ih(e,t,Object.assign({isCLI:!0},r))}};function ks(e,t){let{ignoreDecorators:r}=t||{};if(!r){let n=e.declaration&&e.declaration.decorators||e.decorators;if(n&&n.length>0)return ks(n[0])}return e.range?e.range[0]:e.start}function _s(e){let t=e.range?e.range[1]:e.end;return e.typeAnnotation?Math.max(t,_s(e.typeAnnotation)):t}function Rh(e,t){return ks(e)===ks(t)}var Ft={locStart:ks,locEnd:_s,composeLoc:function(e,t=e){let r=ks(e);return[r,typeof t=="number"?r+t:_s(t)]},hasSameLocStart:Rh,hasSameLoc:function(e,t){return Rh(e,t)&&function(r,n){return _s(r)===_s(n)}(e,t)}},Hb=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(r){var n={type:"invalid",value:r[0],closed:void 0};return r[1]?(n.type="string",n.closed=!(!r[3]&&!r[4])):r[5]?n.type="comment":r[6]?(n.type="comment",n.closed=!!r[7]):r[8]?n.type="regex":r[9]?n.type="number":r[10]?n.type="name":r[11]?n.type="punctuator":r[12]&&(n.type="whitespace"),n}}),bl=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isIdentifierStart=p,t.isIdentifierChar=u,t.isIdentifierName=function(d){let h=!0;for(let b=0,m=Array.from(d);b<m.length;b++){let x=m[b].codePointAt(0);if(h){if(!p(x))return!1;h=!1}else if(!u(x))return!1}return!h};let r="\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",n="\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",i=new RegExp("["+r+"]"),s=new RegExp("["+r+n+"]");r=n=null;let l=[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],a=[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 c(d,h){let b=65536;for(let m=0,x=h.length;m<x;m+=2){if(b+=h[m],b>d)return!1;if(b+=h[m+1],b>=d)return!0}return!1}function p(d){return d<65?d===36:d<=90||(d<97?d===95:d<=122||(d<=65535?d>=170&&i.test(String.fromCharCode(d)):c(d,l)))}function u(d){return d<48?d===36:d<58||!(d<65)&&(d<=90||(d<97?d===95:d<=122||(d<=65535?d>=170&&s.test(String.fromCharCode(d)):c(d,l)||c(d,a))))}}),Ps=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isReservedWord=a,t.isStrictReservedWord=c,t.isStrictBindOnlyReservedWord=p,t.isStrictBindReservedWord=function(u,d){return c(u,d)||p(u)},t.isKeyword=function(u){return i.has(u)};let r=["implements","interface","let","package","private","protected","public","static","yield"],n=["eval","arguments"],i=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),s=new Set(r),l=new Set(n);function a(u,d){return d&&u==="await"||u==="enum"}function c(u,d){return a(u,d)||s.has(u)}function p(u){return l.has(u)}}),Mh=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return bl.isIdentifierName}}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return bl.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return bl.isIdentifierStart}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return Ps.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return Ps.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return Ps.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return Ps.isStrictReservedWord}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return Ps.isKeyword}})}),zb=/[|\\{}()[\]^$+*?.]/g,El=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(zb,"\\$&")},Wr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Gr=re(function(e){var t={};for(var r in Wr)Wr.hasOwnProperty(r)&&(t[Wr[r]]=r);var n=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in n)if(n.hasOwnProperty(i)){if(!("channels"in n[i]))throw new Error("missing channels property: "+i);if(!("labels"in n[i]))throw new Error("missing channel labels property: "+i);if(n[i].labels.length!==n[i].channels)throw new Error("channel and label counts mismatch: "+i);var s=n[i].channels,l=n[i].labels;delete n[i].channels,delete n[i].labels,Object.defineProperty(n[i],"channels",{value:s}),Object.defineProperty(n[i],"labels",{value:l})}n.rgb.hsl=function(a){var c,p,u=a[0]/255,d=a[1]/255,h=a[2]/255,b=Math.min(u,d,h),m=Math.max(u,d,h),x=m-b;return m===b?c=0:u===m?c=(d-h)/x:d===m?c=2+(h-u)/x:h===m&&(c=4+(u-d)/x),(c=Math.min(60*c,360))<0&&(c+=360),p=(b+m)/2,[c,100*(m===b?0:p<=.5?x/(m+b):x/(2-m-b)),100*p]},n.rgb.hsv=function(a){var c,p,u,d,h,b=a[0]/255,m=a[1]/255,x=a[2]/255,F=Math.max(b,m,x),E=F-Math.min(b,m,x),A=function(P){return(F-P)/6/E+.5};return E===0?d=h=0:(h=E/F,c=A(b),p=A(m),u=A(x),b===F?d=u-p:m===F?d=1/3+c-u:x===F&&(d=2/3+p-c),d<0?d+=1:d>1&&(d-=1)),[360*d,100*h,100*F]},n.rgb.hwb=function(a){var c=a[0],p=a[1],u=a[2];return[n.rgb.hsl(a)[0],100*(1/255*Math.min(c,Math.min(p,u))),100*(u=1-1/255*Math.max(c,Math.max(p,u)))]},n.rgb.cmyk=function(a){var c,p=a[0]/255,u=a[1]/255,d=a[2]/255;return[100*((1-p-(c=Math.min(1-p,1-u,1-d)))/(1-c)||0),100*((1-u-c)/(1-c)||0),100*((1-d-c)/(1-c)||0),100*c]},n.rgb.keyword=function(a){var c=t[a];if(c)return c;var p,u,d,h=1/0;for(var b in Wr)if(Wr.hasOwnProperty(b)){var m=Wr[b],x=(u=a,d=m,Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)+Math.pow(u[2]-d[2],2));x<h&&(h=x,p=b)}return p},n.keyword.rgb=function(a){return Wr[a]},n.rgb.xyz=function(a){var c=a[0]/255,p=a[1]/255,u=a[2]/255;return[100*(.4124*(c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92)+.3576*(p=p>.04045?Math.pow((p+.055)/1.055,2.4):p/12.92)+.1805*(u=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92)),100*(.2126*c+.7152*p+.0722*u),100*(.0193*c+.1192*p+.9505*u)]},n.rgb.lab=function(a){var c=n.rgb.xyz(a),p=c[0],u=c[1],d=c[2];return u/=100,d/=108.883,p=(p/=95.047)>.008856?Math.pow(p,1/3):7.787*p+16/116,[116*(u=u>.008856?Math.pow(u,1/3):7.787*u+16/116)-16,500*(p-u),200*(u-(d=d>.008856?Math.pow(d,1/3):7.787*d+16/116))]},n.hsl.rgb=function(a){var c,p,u,d,h,b=a[0]/360,m=a[1]/100,x=a[2]/100;if(m===0)return[h=255*x,h,h];c=2*x-(p=x<.5?x*(1+m):x+m-x*m),d=[0,0,0];for(var F=0;F<3;F++)(u=b+1/3*-(F-1))<0&&u++,u>1&&u--,h=6*u<1?c+6*(p-c)*u:2*u<1?p:3*u<2?c+(p-c)*(2/3-u)*6:c,d[F]=255*h;return d},n.hsl.hsv=function(a){var c=a[0],p=a[1]/100,u=a[2]/100,d=p,h=Math.max(u,.01);return p*=(u*=2)<=1?u:2-u,d*=h<=1?h:2-h,[c,100*(u===0?2*d/(h+d):2*p/(u+p)),100*((u+p)/2)]},n.hsv.rgb=function(a){var c=a[0]/60,p=a[1]/100,u=a[2]/100,d=Math.floor(c)%6,h=c-Math.floor(c),b=255*u*(1-p),m=255*u*(1-p*h),x=255*u*(1-p*(1-h));switch(u*=255,d){case 0:return[u,x,b];case 1:return[m,u,b];case 2:return[b,u,x];case 3:return[b,m,u];case 4:return[x,b,u];case 5:return[u,b,m]}},n.hsv.hsl=function(a){var c,p,u,d=a[0],h=a[1]/100,b=a[2]/100,m=Math.max(b,.01);return u=(2-h)*b,p=h*m,[d,100*(p=(p/=(c=(2-h)*m)<=1?c:2-c)||0),100*(u/=2)]},n.hwb.rgb=function(a){var c,p,u,d,h,b,m,x=a[0]/360,F=a[1]/100,E=a[2]/100,A=F+E;switch(A>1&&(F/=A,E/=A),u=6*x-(c=Math.floor(6*x)),(1&c)!=0&&(u=1-u),d=F+u*((p=1-E)-F),c){default:case 6:case 0:h=p,b=d,m=F;break;case 1:h=d,b=p,m=F;break;case 2:h=F,b=p,m=d;break;case 3:h=F,b=d,m=p;break;case 4:h=d,b=F,m=p;break;case 5:h=p,b=F,m=d}return[255*h,255*b,255*m]},n.cmyk.rgb=function(a){var c=a[0]/100,p=a[1]/100,u=a[2]/100,d=a[3]/100;return[255*(1-Math.min(1,c*(1-d)+d)),255*(1-Math.min(1,p*(1-d)+d)),255*(1-Math.min(1,u*(1-d)+d))]},n.xyz.rgb=function(a){var c,p,u,d=a[0]/100,h=a[1]/100,b=a[2]/100;return p=-.9689*d+1.8758*h+.0415*b,u=.0557*d+-.204*h+1.057*b,c=(c=3.2406*d+-1.5372*h+-.4986*b)>.0031308?1.055*Math.pow(c,1/2.4)-.055:12.92*c,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:12.92*p,u=u>.0031308?1.055*Math.pow(u,1/2.4)-.055:12.92*u,[255*(c=Math.min(Math.max(0,c),1)),255*(p=Math.min(Math.max(0,p),1)),255*(u=Math.min(Math.max(0,u),1))]},n.xyz.lab=function(a){var c=a[0],p=a[1],u=a[2];return p/=100,u/=108.883,c=(c/=95.047)>.008856?Math.pow(c,1/3):7.787*c+16/116,[116*(p=p>.008856?Math.pow(p,1/3):7.787*p+16/116)-16,500*(c-p),200*(p-(u=u>.008856?Math.pow(u,1/3):7.787*u+16/116))]},n.lab.xyz=function(a){var c,p,u,d=a[0];c=a[1]/500+(p=(d+16)/116),u=p-a[2]/200;var h=Math.pow(p,3),b=Math.pow(c,3),m=Math.pow(u,3);return p=h>.008856?h:(p-16/116)/7.787,c=b>.008856?b:(c-16/116)/7.787,u=m>.008856?m:(u-16/116)/7.787,[c*=95.047,p*=100,u*=108.883]},n.lab.lch=function(a){var c,p=a[0],u=a[1],d=a[2];return(c=360*Math.atan2(d,u)/2/Math.PI)<0&&(c+=360),[p,Math.sqrt(u*u+d*d),c]},n.lch.lab=function(a){var c,p=a[0],u=a[1];return c=a[2]/360*2*Math.PI,[p,u*Math.cos(c),u*Math.sin(c)]},n.rgb.ansi16=function(a){var c=a[0],p=a[1],u=a[2],d=1 in arguments?arguments[1]:n.rgb.hsv(a)[2];if((d=Math.round(d/50))===0)return 30;var h=30+(Math.round(u/255)<<2|Math.round(p/255)<<1|Math.round(c/255));return d===2&&(h+=60),h},n.hsv.ansi16=function(a){return n.rgb.ansi16(n.hsv.rgb(a),a[2])},n.rgb.ansi256=function(a){var c=a[0],p=a[1],u=a[2];return c===p&&p===u?c<8?16:c>248?231:Math.round((c-8)/247*24)+232:16+36*Math.round(c/255*5)+6*Math.round(p/255*5)+Math.round(u/255*5)},n.ansi16.rgb=function(a){var c=a%10;if(c===0||c===7)return a>50&&(c+=3.5),[c=c/10.5*255,c,c];var p=.5*(1+~~(a>50));return[(1&c)*p*255,(c>>1&1)*p*255,(c>>2&1)*p*255]},n.ansi256.rgb=function(a){if(a>=232){var c=10*(a-232)+8;return[c,c,c]}var p;return a-=16,[Math.floor(a/36)/5*255,Math.floor((p=a%36)/6)/5*255,p%6/5*255]},n.rgb.hex=function(a){var c=(((255&Math.round(a[0]))<<16)+((255&Math.round(a[1]))<<8)+(255&Math.round(a[2]))).toString(16).toUpperCase();return"000000".substring(c.length)+c},n.hex.rgb=function(a){var c=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!c)return[0,0,0];var p=c[0];c[0].length===3&&(p=p.split("").map(function(d){return d+d}).join(""));var u=parseInt(p,16);return[u>>16&255,u>>8&255,255&u]},n.rgb.hcg=function(a){var c,p=a[0]/255,u=a[1]/255,d=a[2]/255,h=Math.max(Math.max(p,u),d),b=Math.min(Math.min(p,u),d),m=h-b;return c=m<=0?0:h===p?(u-d)/m%6:h===u?2+(d-p)/m:4+(p-u)/m+4,c/=6,[360*(c%=1),100*m,100*(m<1?b/(1-m):0)]},n.hsl.hcg=function(a){var c=a[1]/100,p=a[2]/100,u=1,d=0;return(u=p<.5?2*c*p:2*c*(1-p))<1&&(d=(p-.5*u)/(1-u)),[a[0],100*u,100*d]},n.hsv.hcg=function(a){var c=a[1]/100,p=a[2]/100,u=c*p,d=0;return u<1&&(d=(p-u)/(1-u)),[a[0],100*u,100*d]},n.hcg.rgb=function(a){var c=a[0]/360,p=a[1]/100,u=a[2]/100;if(p===0)return[255*u,255*u,255*u];var d,h=[0,0,0],b=c%1*6,m=b%1,x=1-m;switch(Math.floor(b)){case 0:h[0]=1,h[1]=m,h[2]=0;break;case 1:h[0]=x,h[1]=1,h[2]=0;break;case 2:h[0]=0,h[1]=1,h[2]=m;break;case 3:h[0]=0,h[1]=x,h[2]=1;break;case 4:h[0]=m,h[1]=0,h[2]=1;break;default:h[0]=1,h[1]=0,h[2]=x}return d=(1-p)*u,[255*(p*h[0]+d),255*(p*h[1]+d),255*(p*h[2]+d)]},n.hcg.hsv=function(a){var c=a[1]/100,p=c+a[2]/100*(1-c),u=0;return p>0&&(u=c/p),[a[0],100*u,100*p]},n.hcg.hsl=function(a){var c=a[1]/100,p=a[2]/100*(1-c)+.5*c,u=0;return p>0&&p<.5?u=c/(2*p):p>=.5&&p<1&&(u=c/(2*(1-p))),[a[0],100*u,100*p]},n.hcg.hwb=function(a){var c=a[1]/100,p=c+a[2]/100*(1-c);return[a[0],100*(p-c),100*(1-p)]},n.hwb.hcg=function(a){var c=a[1]/100,p=1-a[2]/100,u=p-c,d=0;return u<1&&(d=(p-u)/(1-u)),[a[0],100*u,100*d]},n.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},n.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},n.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},n.gray.hsl=n.gray.hsv=function(a){return[0,0,a[0]]},n.gray.hwb=function(a){return[0,100,a[0]]},n.gray.cmyk=function(a){return[0,0,0,a[0]]},n.gray.lab=function(a){return[a[0],0,0]},n.gray.hex=function(a){var c=255&Math.round(a[0]/100*255),p=((c<<16)+(c<<8)+c).toString(16).toUpperCase();return"000000".substring(p.length)+p},n.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]}});function Jb(e){var t=function(){for(var p={},u=Object.keys(Gr),d=u.length,h=0;h<d;h++)p[u[h]]={distance:-1,parent:null};return p}(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Gr[n]),s=i.length,l=0;l<s;l++){var a=i[l],c=t[a];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(a))}return t}function Xb(e,t){return function(r){return t(e(r))}}function Yb(e,t){for(var r=[t[e].parent,e],n=Gr[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=Xb(Gr[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var _i={};Object.keys(Gr).forEach(function(e){_i[e]={},Object.defineProperty(_i[e],"channels",{value:Gr[e].channels}),Object.defineProperty(_i[e],"labels",{value:Gr[e].labels});var t=function(r){for(var n=Jb(r),i={},s=Object.keys(n),l=s.length,a=0;a<l;a++){var c=s[a];n[c].parent!==null&&(i[c]=Yb(c,n))}return i}(e);Object.keys(t).forEach(function(r){var n=t[r];_i[e][r]=function(i){var s=function(l){if(l==null)return l;arguments.length>1&&(l=Array.prototype.slice.call(arguments));var a=i(l);if(typeof a=="object")for(var c=a.length,p=0;p<c;p++)a[p]=Math.round(a[p]);return a};return"conversion"in i&&(s.conversion=i.conversion),s}(n),_i[e][r].raw=function(i){var s=function(l){return l==null?l:(arguments.length>1&&(l=Array.prototype.slice.call(arguments)),i(l))};return"conversion"in i&&(s.conversion=i.conversion),s}(n)})});var Pi=_i,Qe=re(function(e){let t=(i,s)=>function(){let l=i.apply(Pi,arguments);return"[".concat(l+s,"m")},r=(i,s)=>function(){let l=i.apply(Pi,arguments);return"[".concat(38+s,";5;").concat(l,"m")},n=(i,s)=>function(){let l=i.apply(Pi,arguments);return"[".concat(38+s,";2;").concat(l[0],";").concat(l[1],";").concat(l[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){let i=new Map,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};s.color.grey=s.color.gray;for(let c of Object.keys(s)){let p=s[c];for(let u of Object.keys(p)){let d=p[u];s[u]={open:"[".concat(d[0],"m"),close:"[".concat(d[1],"m")},p[u]=s[u],i.set(d[0],d[1])}Object.defineProperty(s,c,{value:p,enumerable:!1}),Object.defineProperty(s,"codes",{value:i,enumerable:!1})}let l=c=>c,a=(c,p,u)=>[c,p,u];s.color.close="[39m",s.bgColor.close="[49m",s.color.ansi={ansi:t(l,0)},s.color.ansi256={ansi256:r(l,0)},s.color.ansi16m={rgb:n(a,0)},s.bgColor.ansi={ansi:t(l,10)},s.bgColor.ansi256={ansi256:r(l,10)},s.bgColor.ansi16m={rgb:n(a,10)};for(let c of Object.keys(Pi)){if(typeof Pi[c]!="object")continue;let p=Pi[c];c==="ansi16"&&(c="ansi"),"ansi16"in p&&(s.color.ansi[c]=t(p.ansi16,0),s.bgColor.ansi[c]=t(p.ansi16,10)),"ansi256"in p&&(s.color.ansi256[c]=r(p.ansi256,0),s.bgColor.ansi256[c]=r(p.ansi256,10)),"rgb"in p&&(s.color.ansi16m[c]=n(p.rgb,0),s.bgColor.ansi16m[c]=n(p.rgb,10))}return s}})});let Et=Le.env,Bi;function vl(e){return function(t){return t!==0&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}(function(t){if(Bi===!1)return 0;if(He("color=16m")||He("color=full")||He("color=truecolor"))return 3;if(He("color=256"))return 2;if(t&&!t.isTTY&&Bi!==!0)return 0;let r=Bi?1:0;if(Le.platform==="win32"){let n=Va.release().split(".");return Number(Le.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Et)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(n=>n in Et)||Et.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Et)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Et.TEAMCITY_VERSION)?1:0;if(Et.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Et){let n=parseInt((Et.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Et.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Et.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Et.TERM)||"COLORTERM"in Et?1:(Et.TERM,r)}(e))}He("no-color")||He("no-colors")||He("color=false")?Bi=!1:(He("color")||He("colors")||He("color=true")||He("color=always"))&&(Bi=!0),"FORCE_COLOR"in Et&&(Bi=Et.FORCE_COLOR.length===0||parseInt(Et.FORCE_COLOR,10)!==0);var Kb={supportsColor:vl,stdout:vl(Le.stdout),stderr:vl(Le.stderr)};let Qb=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,jh=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Zb=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,eE=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,tE=new Map([["n",`
|
|
120
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a","\x07"]]);function Vh(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):tE.get(e)||e}function nE(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n)if(isNaN(s)){if(!(i=s.match(Zb)))throw new Error("Invalid Chalk template style argument: ".concat(s," (in style '").concat(e,"')"));r.push(i[2].replace(eE,(l,a,c)=>a?Vh(a):c))}else r.push(Number(s));return r}function rE(e){jh.lastIndex=0;let t=[],r;for(;(r=jh.exec(e))!==null;){let n=r[1];if(r[2]){let i=nE(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Uh(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error("Unknown Chalk style: ".concat(i));n=r[i].length>0?n[i].apply(n,r[i]):n[i]}return n}var iE=(e,t)=>{let r=[],n=[],i=[];if(t.replace(Qb,(s,l,a,c,p,u)=>{if(l)i.push(Vh(l));else if(c){let d=i.join("");i=[],n.push(r.length===0?d:Uh(e,r)(d)),r.push({inverse:a,styles:rE(c)})}else if(p){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Uh(e,r)(i.join(""))),i=[],r.pop()}else i.push(u)}),n.push(i.join("")),r.length>0){let s="Chalk template literal is missing ".concat(r.length," closing bracket").concat(r.length===1?"":"s"," (`}`)");throw new Error(s)}return n.join("")},sE=re(function(e){let t=Kb.stdout,r=Le.platform==="win32"&&!(Le.env.TERM||"").toLowerCase().startsWith("xterm"),n=["ansi","ansi","ansi256","ansi16m"],i=new Set(["gray"]),s=Object.create(null);function l(h,b){b=b||{};let m=t?t.level:0;h.level=b.level===void 0?m:b.level,h.enabled="enabled"in b?b.enabled:h.level>0}function a(h){if(!this||!(this instanceof a)||this.template){let b={};return l(b,h),b.template=function(){let m=[].slice.call(arguments);return d.apply(null,[b.template].concat(m))},Object.setPrototypeOf(b,a.prototype),Object.setPrototypeOf(b.template,b),b.template.constructor=a,b.template}l(this,h)}r&&(Qe.blue.open="[94m");for(let h of Object.keys(Qe))Qe[h].closeRe=new RegExp(El(Qe[h].close),"g"),s[h]={get(){let b=Qe[h];return p.call(this,this._styles?this._styles.concat(b):[b],this._empty,h)}};s.visible={get(){return p.call(this,this._styles||[],!0,"visible")}},Qe.color.closeRe=new RegExp(El(Qe.color.close),"g");for(let h of Object.keys(Qe.color.ansi))i.has(h)||(s[h]={get(){let b=this.level;return function(){let m=Qe.color[n[b]][h].apply(null,arguments),x={open:m,close:Qe.color.close,closeRe:Qe.color.closeRe};return p.call(this,this._styles?this._styles.concat(x):[x],this._empty,h)}}});Qe.bgColor.closeRe=new RegExp(El(Qe.bgColor.close),"g");for(let h of Object.keys(Qe.bgColor.ansi))i.has(h)||(s["bg"+h[0].toUpperCase()+h.slice(1)]={get(){let b=this.level;return function(){let m=Qe.bgColor[n[b]][h].apply(null,arguments),x={open:m,close:Qe.bgColor.close,closeRe:Qe.bgColor.closeRe};return p.call(this,this._styles?this._styles.concat(x):[x],this._empty,h)}}});let c=Object.defineProperties(()=>{},s);function p(h,b,m){let x=function(){return u.apply(x,arguments)};x._styles=h,x._empty=b;let F=this;return Object.defineProperty(x,"level",{enumerable:!0,get:()=>F.level,set(E){F.level=E}}),Object.defineProperty(x,"enabled",{enumerable:!0,get:()=>F.enabled,set(E){F.enabled=E}}),x.hasGrey=this.hasGrey||m==="gray"||m==="grey",x.__proto__=c,x}function u(){let h=arguments,b=h.length,m=String(arguments[0]);if(b===0)return"";if(b>1)for(let F=1;F<b;F++)m+=" "+h[F];if(!this.enabled||this.level<=0||!m)return this._empty?"":m;let x=Qe.dim.open;r&&this.hasGrey&&(Qe.dim.open="");for(let F of this._styles.slice().reverse())m=F.open+m.replace(F.closeRe,F.open)+F.close,m=m.replace(/\r?\n/g,"".concat(F.close,"$&").concat(F.open));return Qe.dim.open=x,m}function d(h,b){if(!Array.isArray(b))return[].slice.call(arguments,1).join(" ");let m=[].slice.call(arguments,2),x=[b.raw[0]];for(let F=1;F<b.length;F++)x.push(String(m[F-1]).replace(/[{}\\]/g,"\\$&")),x.push(String(b.raw[F]));return iE(h,x.join(""))}Object.defineProperties(a.prototype,s),e.exports=a(),e.exports.supportsColor=t,e.exports.default=e.exports}),aE=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.shouldHighlight=p,t.getChalk=u,t.default=function(d,h={}){if(p(h)){let b=u(h);return function(m,x){return x.replace(n.default,function(...F){let E=function(P){let[L,N]=P.slice(-2),R=(0,n.matchToToken)(P);if(R.type==="name"){if((0,Mh.isKeyword)(R.value)||(0,Mh.isReservedWord)(R.value))return"keyword";if(a.test(R.value)&&(N[L-1]==="<"||N.substr(L-2,2)=="</"))return"jsx_tag";if(R.value[0]!==R.value[0].toLowerCase())return"capitalized"}return R.type==="punctuator"&&c.test(R.value)?"bracket":R.type==="invalid"&&(R.value==="@"||R.value==="#")?"punctuator":R.type}(F),A=m[E];return A?F[0].split(l).map(P=>A(P)).join(`
|
|
121
|
+
`):F[0]})}(function(m){return{keyword:m.cyan,capitalized:m.yellow,jsx_tag:m.yellow,punctuator:m.yellow,number:m.magenta,string:m.green,regex:m.magenta,comment:m.grey,invalid:m.white.bgRed.bold}}(b),d)}return d};var r,n=function(d){if(d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var h=s();if(h&&h.has(d))return h.get(d);var b={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in d)if(Object.prototype.hasOwnProperty.call(d,x)){var F=m?Object.getOwnPropertyDescriptor(d,x):null;F&&(F.get||F.set)?Object.defineProperty(b,x,F):b[x]=d[x]}return b.default=d,h&&h.set(d,b),b}(Hb),i=(r=sE)&&r.__esModule?r:{default:r};function s(){if(typeof WeakMap!="function")return null;var d=new WeakMap;return s=function(){return d},d}let l=/\r\n|[\n\r\u2028\u2029]/,a=/^[a-z][\w-]*$/i,c=/^[()[\]{}]$/;function p(d){return i.default.supportsColor||d.forceColor}function u(d){let h=i.default;return d.forceColor&&(h=new i.default.constructor({enabled:!0,level:1})),h}}),uE=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=l,t.default=function(a,c,p,u={}){if(!i){i=!0;let d="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";Le.emitWarning?Le.emitWarning(d,"DeprecationWarning"):(new Error(d).name="DeprecationWarning",console.warn(new Error(d)))}return p=Math.max(p,0),l(a,{start:{column:p,line:c}},u)};var r=function(a){if(a&&a.__esModule)return a;if(a===null||typeof a!="object"&&typeof a!="function")return{default:a};var c=n();if(c&&c.has(a))return c.get(a);var p={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in a)if(Object.prototype.hasOwnProperty.call(a,d)){var h=u?Object.getOwnPropertyDescriptor(a,d):null;h&&(h.get||h.set)?Object.defineProperty(p,d,h):p[d]=a[d]}return p.default=a,c&&c.set(a,p),p}(aE);function n(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return n=function(){return a},a}let i=!1,s=/\r\n|[\n\r\u2028\u2029]/;function l(a,c,p={}){let u=(p.highlightCode||p.forceColor)&&(0,r.shouldHighlight)(p),d=(0,r.getChalk)(p),h=function(N){return{gutter:N.grey,marker:N.red.bold,message:N.red.bold}}(d),b=(N,R)=>u?N(R):R,m=a.split(s),{start:x,end:F,markerLines:E}=function(N,R,U){let J=Object.assign({column:0,line:-1},N.start),q=Object.assign({},J,N.end),{linesAbove:X=2,linesBelow:ne=3}=U||{},he=J.line,Ae=J.column,xe=q.line,je=q.column,Ve=Math.max(he-(X+1),0),nn=Math.min(R.length,xe+ne);he===-1&&(Ve=0),xe===-1&&(nn=R.length);let Ot=xe-he,Wt={};if(Ot)for(let Ze=0;Ze<=Ot;Ze++){let St=Ze+he;if(Ae)if(Ze===0){let Qn=R[St-1].length;Wt[St]=[Ae,Qn-Ae+1]}else if(Ze===Ot)Wt[St]=[0,je];else{let Qn=R[St-Ze].length;Wt[St]=[0,Qn]}else Wt[St]=!0}else Wt[he]=Ae===je?!Ae||[Ae,0]:[Ae,je-Ae];return{start:Ve,end:nn,markerLines:Wt}}(c,m,p),A=c.start&&typeof c.start.column=="number",P=String(F).length,L=(u?(0,r.default)(a,p):a).split(s).slice(x,F).map((N,R)=>{let U=x+1+R,J=" ".concat(U).slice(-P),q=" ".concat(J," | "),X=E[U],ne=!E[U+1];if(X){let he="";if(Array.isArray(X)){let Ae=N.slice(0,Math.max(X[0]-1,0)).replace(/[^\t]/g," "),xe=X[1]||1;he=[`
|
|
122
|
+
`,b(h.gutter,q.replace(/\d/g," ")),Ae,b(h.marker,"^").repeat(xe)].join(""),ne&&p.message&&(he+=" "+b(h.message,p.message))}return[b(h.marker,">"),b(h.gutter,q),N,he].join("")}return" ".concat(b(h.gutter,q)).concat(N)}).join(`
|
|
123
123
|
`);return p.message&&!A&&(L="".concat(" ".repeat(P+1)).concat(p.message,`
|
|
124
|
-
`).concat(L)),u?d.reset(L):L}}),
|
|
125
|
-
`+s.codeFrame,s}throw s.stack}},resolveParser:qh};let{UndefinedParserError:fE}=eh,{getSupportInfo:$h}=Be,{resolveParser:hE}=Hr,vl={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function Wh(e,t){let r=aE.basename(e).toLowerCase(),n=$h({plugins:t}).languages.filter(s=>s.since!==null),i=n.find(s=>s.extensions&&s.extensions.some(l=>r.endsWith(l))||s.filenames&&s.filenames.some(l=>l.toLowerCase()===r));if(!i&&!r.includes(".")){let s=function(l){if(typeof l!="string")return"";let a;try{a=As.openSync(l,"r")}catch(c){return""}try{let c=new P2(a).next().toString("utf8"),p=c.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(p)return p[1];let u=c.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return u?u[1]:""}catch(c){return""}finally{try{As.closeSync(a)}catch(c){}}}(e);i=n.find(l=>l.interpreters&&l.interpreters.includes(s))}return i&&i.parsers[0]}var Gh={normalize:function(e,t){t=t||{};let r=Object.assign({},e),n=$h({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,i=Object.assign({},vl,B2(n.filter(p=>p.default!==void 0).map(p=>[p.name,p.default])));if(!r.parser)if(r.filepath){if(r.parser=Wh(r.filepath,r.plugins),!r.parser)throw new fE("No parser could be inferred for file: ".concat(r.filepath))}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),r.parser="babel";let s=hE(Ih.normalizeApiOptions(r,[n.find(p=>p.name==="parser")],{passThrough:!0,logger:!1}));r.astFormat=s.astFormat,r.locEnd=s.locEnd,r.locStart=s.locStart;let l=function(p){let{astFormat:u}=p;if(!u)throw new Error("getPlugin() requires astFormat to be set");let d=p.plugins.find(h=>h.printers&&h.printers[u]);if(!d)throw new Error(`Couldn't find plugin for AST format "`.concat(u,'"'));return d}(r);r.printer=l.printers[r.astFormat];let a=n.filter(p=>p.pluginDefaults&&p.pluginDefaults[l.name]!==void 0).reduce((p,u)=>Object.assign(p,{[u.name]:u.pluginDefaults[l.name]}),{}),c=Object.assign({},i,a);return Object.keys(c).forEach(p=>{r[p]==null&&(r[p]=c[p])}),r.parser==="json"&&(r.trailingComma="none"),Ih.normalizeApiOptions(r,n,Object.assign({passThrough:Object.keys(vl)},t))},hiddenDefaults:vl,inferParser:Wh},dE=function e(t,r,n){if(Array.isArray(t))return t.map(a=>e(a,r,n)).filter(Boolean);if(!t||typeof t!="object")return t;let i=r.printer.massageAstNode,s;s=i&&i.ignoredProperties?i.ignoredProperties:new Set;let l={};for(let a of Object.keys(t))s.has(a)||typeof t[a]=="function"||(l[a]=e(t[a],r,t));if(i){let a=i(t,l,n);if(a===null)return;if(a)return a}return l};function Cl(){}Cl.ok=function(){},Cl.strictEqual=function(){};var qn=or(Object.freeze({__proto__:null,default:Cl}));let{builders:{concat:dr,line:gE,hardline:gr,breakParent:mE,indent:yE,lineSuffix:Hh,join:zh,cursor:Jh}}=ae,{hasNewline:Ni,skipNewline:DE,skipSpaces:bE,isPreviousLineEmpty:EE,addLeadingComment:Bs,addDanglingComment:xl,addTrailingComment:Ns}=Ee,Al=Symbol("child-nodes");function Sl(e,t,r){if(!e)return;let{printer:n,locStart:i,locEnd:s}=t;if(r){if(n.canAttachComment&&n.canAttachComment(e)){let a;for(a=r.length-1;a>=0&&!(i(r[a])<=i(e)&&s(r[a])<=s(e));--a);return void r.splice(a+1,0,e)}}else if(e[Al])return e[Al];let l=n.getCommentChildNodes&&n.getCommentChildNodes(e,t)||typeof e=="object"&&Object.keys(e).filter(a=>a!=="enclosingNode"&&a!=="precedingNode"&&a!=="followingNode"&&a!=="tokens"&&a!=="comments").map(a=>e[a]);return l?(r||Object.defineProperty(e,Al,{value:r=[],enumerable:!1}),l.forEach(a=>{Sl(a,t,r)}),r):void 0}function Xh(e,t,r){let{locStart:n,locEnd:i}=r,s=n(t),l=i(t),a=Sl(e,r),c,p,u=0,d=a.length;for(;u<d;){let h=u+d>>1,b=a[h],m=n(b),x=i(b);if(m<=s&&l<=x)return t.enclosingNode=b,void Xh(b,t,r);if(m<=s)c=b,u=h+1;else{if(!(l<=m))throw new Error("Comment location overlaps with node location");p=b,d=h}}if(t.enclosingNode&&t.enclosingNode.type==="TemplateLiteral"){let{quasis:h}=t.enclosingNode,b=Fl(h,t,r);c&&Fl(h,c,r)!==b&&(c=null),p&&Fl(h,p,r)!==b&&(p=null)}c&&(t.precedingNode=c),p&&(t.followingNode=p)}function Yh(e,t,r){let n=e.length;if(n===0)return;let{precedingNode:i,followingNode:s,enclosingNode:l}=e[0],a=r.printer.getGapRegex&&r.printer.getGapRegex(l)||/^[\s(]*$/,c,p=r.locStart(s);for(c=n;c>0;--c){let u=e[c-1];qn.strictEqual(u.precedingNode,i),qn.strictEqual(u.followingNode,s);let d=t.slice(r.locEnd(u),p);if(!a.test(d))break;p=r.locStart(u)}e.forEach((u,d)=>{d<c?Ns(i,u):Bs(s,u)});for(let u of[i,s])u.comments&&u.comments.length>1&&u.comments.sort((d,h)=>r.locStart(d)-r.locStart(h));e.length=0}function wl(e,t){return e.getValue().printed=!0,t.printer.printComment(e,t)}function Fl(e,t,r){let n=r.locStart(t)-1;for(let i=1;i<e.length;++i)if(n<r.locStart(e[i]))return i-1;return 0}function Kh(e,t,r){return e.getNode()===t.cursorNode&&e.getValue()?dr([Jh,r,Jh]):r}var Fe={attach:function(e,t,r,n){if(!Array.isArray(e))return;let i=[],{locStart:s,locEnd:l}=n;e.forEach((a,c)=>{if(n.parser==="json"||n.parser==="json5"||n.parser==="__js_expression"||n.parser==="__vue_expression"){if(s(a)-s(t)<=0)return void Bs(t,a);if(l(a)-l(t)>=0)return void Ns(t,a)}Xh(t,a,n);let{precedingNode:p,enclosingNode:u,followingNode:d}=a,h=n.printer.handleComments&&n.printer.handleComments.ownLine?n.printer.handleComments.ownLine:()=>!1,b=n.printer.handleComments&&n.printer.handleComments.endOfLine?n.printer.handleComments.endOfLine:()=>!1,m=n.printer.handleComments&&n.printer.handleComments.remaining?n.printer.handleComments.remaining:()=>!1,x=e.length-1===c;if(Ni(r,s(a),{backwards:!0}))h(a,r,n,t,x)||(d?Bs(d,a):p?Ns(p,a):xl(u||t,a));else if(Ni(r,l(a)))b(a,r,n,t,x)||(p?Ns(p,a):d?Bs(d,a):xl(u||t,a));else if(!m(a,r,n,t,x))if(p&&d){let F=i.length;F>0&&i[F-1].followingNode!==a.followingNode&&Yh(i,r,n),i.push(a)}else p?Ns(p,a):d?Bs(d,a):xl(u||t,a)}),Yh(i,r,n),e.forEach(a=>{delete a.precedingNode,delete a.enclosingNode,delete a.followingNode})},printComments:function(e,t,r,n){let i=e.getValue(),s=t(e),l=i&&i.comments;if(!l||l.length===0)return Kh(e,r,s);let a=[],c=[n?";":"",s];return e.each(p=>{let u=p.getValue(),{leading:d,trailing:h}=u;if(d){let b=function(F,E){let A=F.getValue(),P=wl(F,E);if(!P)return"";if(E.printer.isBlockComment&&E.printer.isBlockComment(A)){let L=Ni(E.originalText,E.locEnd(A))?Ni(E.originalText,E.locStart(A),{backwards:!0})?gr:gE:" ";return dr([P,L])}return dr([P,gr])}(p,r);if(!b)return;a.push(b);let m=r.originalText,x=DE(m,bE(m,r.locEnd(u)));x!==!1&&Ni(m,x)&&a.push(gr)}else h&&c.push(function(b,m){let x=b.getValue(),F=wl(b,m);if(!F)return"";let{printer:E,originalText:A,locStart:P}=m,L=E.isBlockComment&&E.isBlockComment(x);if(Ni(A,P(x),{backwards:!0})){let R=EE(A,x,P);return Hh(dr([gr,R?gr:"",F]))}let N=dr([" ",F]);return L||(N=dr([Hh(N),mE])),N}(p,r))},"comments"),Kh(e,r,dr(a.concat(c)))},printDanglingComments:function(e,t,r,n){let i=[],s=e.getValue();return s&&s.comments?(e.each(l=>{let a=l.getValue();!a||a.leading||a.trailing||n&&!n(a)||i.push(wl(l,t))},"comments"),i.length===0?"":r?zh(gr,i):yE(dr([gr,zh(gr,i)]))):""},getSortedChildNodes:Sl,ensureAllCommentsPrinted:function(e){e&&e.forEach(t=>{if(!t.printed)throw new Error('Comment "'+t.value.trim()+'" was not printed. Please report this error!');delete t.printed})}};function Qh(e,t){let r=Zh(e.stack,t);return r===-1?null:e.stack[r]}function Zh(e,t){for(let r=e.length-1;r>=0;r-=2){let n=e[r];if(n&&!Array.isArray(n)&&--t<0)return r}return-1}var e0=class{constructor(e){this.stack=[e]}getName(){let{stack:e}=this,{length:t}=e;return t>1?e[t-2]:null}getValue(){return Lr(this.stack)}getNode(e=0){return Qh(this,e)}getParentNode(e=0){return Qh(this,e+1)}call(e,...t){let{stack:r}=this,{length:n}=r,i=Lr(r);for(let l of t)i=i[l],r.push(l,i);let s=e(this);return r.length=n,s}callParent(e,t=0){let r=Zh(this.stack,t+1),n=this.stack.splice(r+1),i=e(this);return this.stack.push(...n),i}each(e,...t){let{stack:r}=this,{length:n}=r,i=Lr(r);for(let s of t)i=i[s],r.push(s,i);for(let s=0;s<i.length;++s)r.push(s,i[s]),e(this,s),r.length-=2;r.length=n}map(e,...t){let r=[];return this.each((n,i)=>{r[i]=e(n,i)},...t),r}match(...e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(let i of e){if(n===void 0)return!1;let s=null;if(typeof r=="number"&&(s=r,r=this.stack[t--],n=this.stack[t--]),i&&!i(n,r,s))return!1;r=this.stack[t--],n=this.stack[t--]}return!0}};let{utils:{stripTrailingHardline:vE}}=ae,{normalize:CE}=Gh;var xE={printSubtree:function(e,t,r,n){if(r.printer.embed&&r.embeddedLanguageFormatting==="auto")return r.printer.embed(e,t,(i,s,l)=>function(a,c,p,u,{stripTrailingHardline:d=!1}={}){let h=CE(Object.assign({},p,c,{parentParser:p.parser,embeddedInHtml:!(!p.embeddedInHtml&&p.parser!=="html"&&p.parser!=="vue"&&p.parser!=="angular"&&p.parser!=="lwc"),originalText:a}),{passThrough:!0}),b=Hr.parse(a,h),{ast:m}=b;a=b.text;let x=m.comments;delete m.comments,Fe.attach(x,m,a,h),h[Symbol.for("comments")]=x||[],h[Symbol.for("tokens")]=m.tokens||[];let F=u(m,h);return Fe.ensureAllCommentsPrinted(x),d?typeof F=="string"?F.replace(/(?:\r?\n)*$/,""):vE(F,!0):F}(i,s,r,n,l),r)}};let t0=ae,AE=t0.builders,{concat:SE,hardline:wE,addAlignmentToDoc:FE}=AE,TE=t0.utils;function n0(e,t,r=0){let{printer:n}=t;n.preprocess&&(e=n.preprocess(e,t));let i=new Map,s=function l(a,c){let p=a.getValue(),u=p&&typeof p=="object"&&c===void 0;if(u&&i.has(p))return i.get(p);let d;return d=n.willPrintOwnComments&&n.willPrintOwnComments(a,t)?r0(a,t,l,c):Fe.printComments(a,h=>r0(h,t,l,c),t,c&&c.needsSemi),u&&i.set(p,d),d}(new e0(e));return r>0&&(s=FE(SE([wE,s]),r,t.tabWidth)),TE.propagateBreaks(s),s}function r0(e,t,r,n){qn.ok(e instanceof e0);let i=e.getValue(),{printer:s}=t;if(s.hasPrettierIgnore&&s.hasPrettierIgnore(e))return function(l,a){let{originalText:c,[Symbol.for("comments")]:p,locStart:u,locEnd:d}=a,h=u(l),b=d(l);for(let m of p)u(m)>=h&&d(m)<=b&&(m.printed=!0);return c.slice(h,b)}(i,t);if(i)try{let l=xE.printSubtree(e,r,t,n0);if(l)return l}catch(l){if(ut.PRETTIER_DEBUG)throw l}return s.print(e,t,r,n)}var Tl=n0;function za(e,t,r,n,i=[]){if(!(t<r.locStart(e)||t>r.locEnd(e))){for(let s of Fe.getSortedChildNodes(e,r)){let l=za(s,t,r,n,[e,...i]);if(l)return l}return!n||n(e)?{node:e,parentNodes:i}:void 0}}let kE=new Set(["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral"]),_E=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function i0(e,t){if(t==null)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"espree":case"meriyah":return function(r){return r==="Directive"||r==="TypeAlias"||r==="TSExportAssignment"||r.startsWith("Declare")||r.startsWith("TSDeclare")||r.endsWith("Statement")||r.endsWith("Declaration")}(t.type);case"json":return kE.has(t.type);case"graphql":return _E.has(t.kind);case"vue":return t.tag!=="root"}return!1}var s0={calculateRange:function(e,t,r){let n=e.slice(t.rangeStart,t.rangeEnd),i=Math.max(t.rangeStart+n.search(/\S/),t.rangeStart),s;for(s=t.rangeEnd;s>t.rangeStart&&!/\S/.test(e[s-1]);--s);let l=za(r,i,t,u=>i0(t,u)),a=za(r,s,t,u=>i0(t,u));if(!l||!a)return{rangeStart:0,rangeEnd:0};let{startNode:c,endNode:p}=function(u,d,h){let b=u.node,m=d.node;if(b===m)return{startNode:b,endNode:m};for(let x of d.parentNodes){if(!(x.type!=="Program"&&x.type!=="File"&&h.locStart(x)>=h.locStart(u.node)))break;m=x}for(let x of u.parentNodes){if(!(x.type!=="Program"&&x.type!=="File"&&h.locEnd(x)<=h.locEnd(d.node)))break;b=x}return{startNode:b,endNode:m}}(l,a,t);return{rangeStart:Math.min(t.locStart(c),t.locStart(p)),rangeEnd:Math.max(t.locEnd(c),t.locEnd(p))}},findNodeAtOffset:za};let{printer:{printDocToString:kl},debug:{printDocToDebug:PE}}=ae,{getAlignmentSize:BE}=Ee,{guessEndOfLine:NE,convertEndOfLineToChars:a0,countEndOfLineChars:u0,normalizeEndOfLine:OE}=Jo,Os=Gh.normalize,o0=Symbol("cursor");function l0(e,t,r){let n=t.comments;return n&&(delete t.comments,Fe.attach(n,t,e,r)),r[Symbol.for("comments")]=n||[],r[Symbol.for("tokens")]=t.tokens||[],r.originalText=e,n}function c0(e,t,r){if(!e||!e.trim().length)return{formatted:"",cursorOffset:-1};r=r||0;let{ast:n,text:i}=Hr.parse(e,t);if(t.cursorOffset>=0){let c=s0.findNodeAtOffset(n,t.cursorOffset,t);c&&c.node&&(t.cursorNode=c.node)}let s=l0(i,n,t),l=Tl(n,t,r),a=kl(l,t);if(Fe.ensureAllCommentsPrinted(s),r>0){let c=a.formatted.trim();a.cursorNodeStart!==void 0&&(a.cursorNodeStart-=a.formatted.indexOf(c)),a.formatted=c+a0(t.endOfLine)}if(t.cursorOffset>=0){let c,p,u,d,h;if(t.cursorNode&&a.cursorNodeText?(c=t.locStart(t.cursorNode),p=i.slice(c,t.locEnd(t.cursorNode)),u=t.cursorOffset-c,d=a.cursorNodeStart,h=a.cursorNodeText):(c=0,p=i,u=t.cursorOffset,d=0,h=a.formatted),p===h)return{formatted:a.formatted,cursorOffset:d+u};let b=p.split("");b.splice(u,0,o0);let m=h.split(""),x=ba.diffArrays(b,m),F=d;for(let E of x)if(E.removed){if(E.value.includes(o0))break}else F+=E.count;return{formatted:a.formatted,cursorOffset:F}}return{formatted:a.formatted,cursorOffset:-1}}function _l(e,t,r){return typeof t!="number"||isNaN(t)||t<0||t>e.length?r:t}function p0(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=t;return r=_l(e,r,-1),n=_l(e,n,0),i=_l(e,i,e.length),Object.assign({},t,{cursorOffset:r,rangeStart:n,rangeEnd:i})}function f0(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s}=p0(e,t),l=e.charAt(0)==="\uFEFF";if(l&&(e=e.slice(1),r--,n--,i--),s==="auto"&&(s=NE(e)),e.includes("\r")){let a=c=>u0(e.slice(0,Math.max(c,0)),`\r
|
|
126
|
-
`);r-=a(r),n-=a(n),i-=a(i),e=
|
|
127
|
-
`,h)+1),F=d.slice(x,h).match(/^\s*/)[0],E=
|
|
128
|
-
`&&(L+=
|
|
129
|
-
`)),N=N.replace(/\n/g,R)}return{formatted:N,cursorOffset:L}}(n,i):(!l&&i.insertPragma&&i.printer.insertPragma&&(n=i.printer.insertPragma(n)),a=c0(n,i)),r&&(a.formatted="\uFEFF"+a.formatted,a.cursorOffset>=0&&a.cursorOffset++),a}var Oi={formatWithCursor:h0,parse(e,t,r){let{text:n,options:i}=f0(e,Os(t)),s=Hr.parse(n,i);return r&&(s.ast=dE(s.ast,i)),s},formatAST(e,t){t=Os(t);let r=Tl(e,t);return kl(r,t)},formatDoc:(e,t)=>h0(PE(e),Object.assign({},t,{parser:"babel"})).formatted,printToDoc(e,t){t=Os(t);let{ast:r,text:n}=Hr.parse(e,t);return l0(n,r,t),Tl(r,t)},printDocToString:(e,t)=>kl(e,Os(t))};let{getMaxContinuousCount:IE,getStringWidth:LE,getAlignmentSize:RE,getIndentSize:ME,skip:jE,skipWhitespace:VE,skipSpaces:UE,skipNewline:qE,skipToLineEnd:$E,skipEverythingButNewLine:WE,skipInlineComment:GE,skipTrailingComment:HE,hasNewline:zE,hasNewlineInRange:JE,hasSpaces:XE,isNextLineEmpty:YE,isNextLineEmptyAfterIndex:KE,isPreviousLineEmpty:QE,getNextNonSpaceNonCommentCharacterIndex:ZE,makeString:ev,addLeadingComment:tv,addDanglingComment:nv,addTrailingComment:rv}=Ee;var iv={getMaxContinuousCount:IE,getStringWidth:LE,getAlignmentSize:RE,getIndentSize:ME,skip:jE,skipWhitespace:VE,skipSpaces:UE,skipNewline:qE,skipToLineEnd:$E,skipEverythingButNewLine:WE,skipInlineComment:GE,skipTrailingComment:HE,hasNewline:zE,hasNewlineInRange:JE,hasSpaces:XE,isNextLineEmpty:YE,isNextLineEmptyAfterIndex:KE,isPreviousLineEmpty:QE,getNextNonSpaceNonCommentCharacterIndex:ZE,makeString:ev,addLeadingComment:tv,addDanglingComment:nv,addTrailingComment:rv},ze=function(e,t){let{languageId:r}=e,n=f(e,["languageId"]);return Object.assign({linguistLanguageId:r},n,t(e))},sv=te(function(e){(function(){function t(n){if(n==null)return!1;switch(n.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function r(n){switch(n.type){case"IfStatement":return n.alternate!=null?n.alternate:n.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return n.body}return null}e.exports={isExpression:function(n){if(n==null)return!1;switch(n.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(n){if(n==null)return!1;switch(n.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(n){return t(n)||n!=null&&n.type==="FunctionDeclaration"},isProblematicIfStatement:function(n){var i;if(n.type!=="IfStatement"||n.alternate==null)return!1;i=n.consequent;do{if(i.type==="IfStatement"&&i.alternate==null)return!0;i=r(i)}while(i);return!1},trailingStatement:r}})()}),d0=te(function(e){(function(){var t,r,n,i,s,l;function a(c){return c<=65535?String.fromCharCode(c):String.fromCharCode(Math.floor((c-65536)/1024)+55296)+String.fromCharCode((c-65536)%1024+56320)}for(r={NonAsciiIdentifierStart:/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\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\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u1877\u1880-\u1884\u1887-\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\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\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\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u1877\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\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\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-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=new Array(128),l=0;l<128;++l)i[l]=l>=97&&l<=122||l>=65&&l<=90||l===36||l===95;for(s=new Array(128),l=0;l<128;++l)s[l]=l>=97&&l<=122||l>=65&&l<=90||l>=48&&l<=57||l===36||l===95;e.exports={isDecimalDigit:function(c){return 48<=c&&c<=57},isHexDigit:function(c){return 48<=c&&c<=57||97<=c&&c<=102||65<=c&&c<=70},isOctalDigit:function(c){return c>=48&&c<=55},isWhiteSpace:function(c){return c===32||c===9||c===11||c===12||c===160||c>=5760&&n.indexOf(c)>=0},isLineTerminator:function(c){return c===10||c===13||c===8232||c===8233},isIdentifierStartES5:function(c){return c<128?i[c]:r.NonAsciiIdentifierStart.test(a(c))},isIdentifierPartES5:function(c){return c<128?s[c]:r.NonAsciiIdentifierPart.test(a(c))},isIdentifierStartES6:function(c){return c<128?i[c]:t.NonAsciiIdentifierStart.test(a(c))},isIdentifierPartES6:function(c){return c<128?s[c]:t.NonAsciiIdentifierPart.test(a(c))}}})()}),av=te(function(e){(function(){var t=d0;function r(c,p){return!(!p&&c==="yield")&&n(c,p)}function n(c,p){if(p&&function(u){switch(u){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(c))return!0;switch(c.length){case 2:return c==="if"||c==="in"||c==="do";case 3:return c==="var"||c==="for"||c==="new"||c==="try";case 4:return c==="this"||c==="else"||c==="case"||c==="void"||c==="with"||c==="enum";case 5:return c==="while"||c==="break"||c==="catch"||c==="throw"||c==="const"||c==="yield"||c==="class"||c==="super";case 6:return c==="return"||c==="typeof"||c==="delete"||c==="switch"||c==="export"||c==="import";case 7:return c==="default"||c==="finally"||c==="extends";case 8:return c==="function"||c==="continue"||c==="debugger";case 10:return c==="instanceof";default:return!1}}function i(c,p){return c==="null"||c==="true"||c==="false"||r(c,p)}function s(c,p){return c==="null"||c==="true"||c==="false"||n(c,p)}function l(c){var p,u,d;if(c.length===0||(d=c.charCodeAt(0),!t.isIdentifierStartES5(d)))return!1;for(p=1,u=c.length;p<u;++p)if(d=c.charCodeAt(p),!t.isIdentifierPartES5(d))return!1;return!0}function a(c){var p,u,d,h,b;if(c.length===0)return!1;for(b=t.isIdentifierStartES6,p=0,u=c.length;p<u;++p){if(55296<=(d=c.charCodeAt(p))&&d<=56319){if(++p>=u||!(56320<=(h=c.charCodeAt(p))&&h<=57343))return!1;d=1024*(d-55296)+(h-56320)+65536}if(!b(d))return!1;b=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:r,isKeywordES6:n,isReservedWordES5:i,isReservedWordES6:s,isRestrictedWord:function(c){return c==="eval"||c==="arguments"},isIdentifierNameES5:l,isIdentifierNameES6:a,isIdentifierES5:function(c,p){return l(c)&&!i(c,p)},isIdentifierES6:function(c,p){return a(c)&&!s(c,p)}}})()});let uv=te(function(e,t){t.ast=sv,t.code=d0,t.keyword=av}).keyword.isIdentifierNameES5,{getLast:Ja,hasNewline:Pl,hasNewlineInRange:ov,skipWhitespace:lv}=Ee,{locStart:Bl,locEnd:Xa,hasSameLocStart:g0}=Ft,m0="(?:(?=.)\\s)",cv=new RegExp("^".concat(m0,"*:")),pv=new RegExp("^".concat(m0,"*::"));function Ya(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(n=>Ya(n,t));let r=t(e);return typeof r=="boolean"?r:Object.keys(e).some(n=>Ya(e[n],t))}function y0(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||e.type==="CallExpression"||e.type==="OptionalCallExpression"||e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||e.type==="TSAsExpression"||e.type==="TSNonNullExpression"}function Is(e){return e.type==="Block"||e.type==="CommentBlock"||e.type==="MultiLine"}let fv=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function D0(e){return e&&fv.has(e.type)}function Ka(e){return e.type==="BooleanLiteral"||e.type==="DirectiveLiteral"||e.type==="Literal"||e.type==="NullLiteral"||e.type==="NumericLiteral"||e.type==="BigIntLiteral"||e.type==="DecimalLiteral"||e.type==="RegExpLiteral"||e.type==="StringLiteral"||e.type==="TemplateLiteral"||e.type==="TSTypeLiteral"||e.type==="JSXText"}function b0(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function Nl(e){return e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"}function Ls(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"}function Ol(e){return!(e.type!=="CallExpression"&&e.type!=="OptionalCallExpression"||e.callee.type!=="Identifier"||e.callee.name!=="async"&&e.callee.name!=="inject"&&e.callee.name!=="fakeAsync")}function Rs(e){return e.type==="JSXElement"||e.type==="JSXFragment"}function E0(e){return e.kind==="get"||e.kind==="set"}function v0(e){return E0(e)||g0(e,e.value)}let hv=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]),dv=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]),C0=/^(skip|[fx]?(it|describe|test))$/;function Qa(e){return e.type==="CallExpression"||e.type==="OptionalCallExpression"}let gv=new RegExp(`([
|
|
130
|
-
\r ]+)`),
|
|
131
|
-
\r ]`);function
|
|
132
|
-
`))}function Za(e){return e.extra?e.extra.raw:e.raw}let S0={"==":!0,"!=":!0,"===":!0,"!==":!0},eu={"*":!0,"/":!0,"%":!0},Rl={">>":!0,">>>":!0,"<<":!0},w0={};function Ml(e){return w0[e]}[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((e,t)=>{e.forEach(r=>{w0[r]=t})});let jl=new WeakMap;function Vl(e){if(jl.has(e))return jl.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),jl.set(e,t),t}let Ul=new WeakMap;function ql(e){return e.value.trim()==="prettier-ignore"}function $l(e){return e&&(e.comments&&e.comments.length>0&&e.comments.some(t=>ql(t)&&!t.unignore)||e.prettierIgnore)}function F0(e){return $l(e.getValue())}var Re={classChildNeedsASIProtection:function(e){if(e){if(e.static||e.accessibility)return!1;if(!e.computed){let t=e.key&&e.key.name;if(t==="in"||t==="instanceof")return!0}switch(e.type){case"ClassProperty":case"FieldDefinition":case"TSAbstractClassProperty":return e.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{let t=e.value?e.value.async:e.async,r=e.value?e.value.generator:e.generator;return!t&&e.kind!=="get"&&e.kind!=="set"&&!(!e.computed&&!r)}case"TSIndexSignature":return!0;default:return!1}}},classPropMayCauseASIProblems:function(e){let t=e.getNode();if(t.type!=="ClassProperty"&&t.type!=="FieldDefinition")return!1;let r=t.key&&t.key.name;return!(r!=="static"&&r!=="get"&&r!=="set"||t.value||t.typeAnnotation)||void 0},getFunctionParameters:Vl,iterateFunctionParametersPath:function(e,t){let r=e.getValue(),n=0,i=s=>t(s,n++);r.this&&e.call(i,"this"),Array.isArray(r.parameters)?e.each(i,"parameters"):Array.isArray(r.params)&&e.each(i,"params"),r.rest&&e.call(i,"rest")},getCallArguments:function(e){if(Ul.has(e))return Ul.get(e);let t=e.type==="ImportExpression"?[e.source]:e.arguments;return Ul.set(e,t),t},iterateCallArgumentsPath:function(e,t){e.getValue().type==="ImportExpression"?e.call(r=>t(r,0),"source"):e.each(t,"arguments")},hasRestParameter:function(e){if(e.rest)return!0;let t=Vl(e);return t.length>0&&Ja(t).type==="RestElement"},getLeftSidePathName:function(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side.")},getParentExportDeclaration:function(e){let t=e.getParentNode();return e.getName()==="declaration"&&D0(t)?t:null},getTypeScriptMappedTypeModifier:function(e,t){return e==="+"?"+"+t:e==="-"?"-"+t:t},hasDanglingComments:function(e){return e.comments&&e.comments.some(t=>!t.leading&&!t.trailing)},hasFlowAnnotationComment:function(e){return e&&Is(e[0])&&pv.test(e[0].value)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&e.trailingComments&&Is(e.trailingComments[0])&&cv.test(e.trailingComments[0].value)},hasLeadingComment:function(e){return e.comments&&e.comments.some(t=>t.leading)},hasLeadingOwnLineComment:Ll,hasNakedLeftSide:y0,hasNewlineBetweenOrAfterDecorators:function(e,t){return ov(t.originalText,Bl(e.decorators[0]),Xa(Ja(e.decorators)))||Pl(t.originalText,Xa(Ja(e.decorators)))},hasNgSideEffect:function(e){return Ya(e.getValue(),t=>{switch(t.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})},hasNode:Ya,hasPrettierIgnore:function(e){return F0(e)||function(t){let r=t.getValue(),n=t.getParentNode();if(!(n&&r&&Rs(r)&&Rs(n)))return!1;let i=null;for(let s=n.children.indexOf(r);s>0;s--){let l=n.children[s-1];if(l.type!=="JSXText"||Il(l)){i=l;break}}return i&&i.type==="JSXExpressionContainer"&&i.expression.type==="JSXEmptyExpression"&&i.expression.comments&&i.expression.comments.some(s=>ql(s))}(e)},hasTrailingComment:function(e){return e.comments&&e.comments.some(t=>t.trailing)},hasTrailingLineComment:function(e){return e.comments&&e.comments.some(t=>t.trailing&&!Is(t))},hasIgnoreComment:F0,hasNodeIgnoreComment:$l,identity:function(e){return e},isBinaryish:function(e){return hv.has(e.type)},isBlockComment:Is,isLineComment:function(e){return e.type==="Line"||e.type==="CommentLine"||e.type==="SingleLine"||e.type==="HashbangComment"||e.type==="HTMLOpen"||e.type==="HTMLClose"},isPrettierIgnoreComment:ql,isCallOrOptionalCallExpression:Qa,isEmptyJSXElement:function(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return Ka(t)&&!Il(t)},isExportDeclaration:D0,isFlowAnnotationComment:function(e,t){let r=Bl(t),n=lv(e,Xa(t));return n!==!1&&e.slice(r,r+2)==="/*"&&e.slice(n,n+2)==="*/"},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(Ls(r)){if(t+=1,t>1)return!0}else if(Qa(r)){for(let n of r.arguments)if(Ls(n))return!0}return!1},isFunctionNotation:v0,isFunctionOrArrowExpression:Ls,isGetterOrSetter:E0,isJestEachTemplateLiteral:function(e,t){let r=/^[fx]?(describe|it|test)$/;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))},isJSXNode:Rs,isJSXWhitespaceExpression:function(e){return e.type==="JSXExpressionContainer"&&Ka(e.expression)&&e.expression.value===" "&&!e.expression.comments},isLastStatement:function(e){let t=e.getParentNode();if(!t)return!0;let r=e.getValue(),n=(t.body||t.consequent).filter(i=>i.type!=="EmptyStatement");return n[n.length-1]===r},isLiteral:Ka,isLongCurriedCallExpression:function(e){let t=e.getValue(),r=e.getParentNode();return Qa(t)&&Qa(r)&&r.callee===t&&t.arguments.length>r.arguments.length&&r.arguments.length>0},isSimpleCallArgument:function e(t,r){if(r>=2)return!1;let n=s=>e(s,r+1),i=t.type==="Literal"&&"regex"in t&&t.regex.pattern||t.type==="RegExpLiteral"&&t.pattern;return!(i&&i.length>5)&&(t.type==="Literal"||t.type==="BigIntLiteral"||t.type==="DecimalLiteral"||t.type==="BooleanLiteral"||t.type==="NullLiteral"||t.type==="NumericLiteral"||t.type==="RegExpLiteral"||t.type==="StringLiteral"||t.type==="Identifier"||t.type==="ThisExpression"||t.type==="Super"||t.type==="PrivateName"||t.type==="ArgumentPlaceholder"||t.type==="Import"||(t.type==="TemplateLiteral"?t.expressions.every(n):t.type==="ObjectExpression"?t.properties.every(s=>!s.computed&&(s.shorthand||s.value&&n(s.value))):t.type==="ArrayExpression"?t.elements.every(s=>s===null||n(s)):t.type==="ImportExpression"?n(t.source):t.type==="CallExpression"||t.type==="OptionalCallExpression"||t.type==="NewExpression"?e(t.callee,r)&&t.arguments.every(n):t.type==="MemberExpression"||t.type==="OptionalMemberExpression"?e(t.object,r)&&e(t.property,r):t.type!=="UnaryExpression"||t.operator!=="!"&&t.operator!=="-"?t.type==="TSNonNullExpression"&&e(t.expression,r):e(t.argument,r)))},isMeaningfulJSXText:Il,isMemberExpressionChain:function e(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&(t.object.type==="Identifier"||e(t.object))},isMemberish:function(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="BindExpression"&&Boolean(e.object)},isNgForOf:function(e,t,r){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1&&r.body[0].type==="NGMicrosyntaxLet"&&r.body[0].value===null},isNumericLiteral:b0,isObjectType:function(e){return e.type==="ObjectTypeAnnotation"||e.type==="TSTypeLiteral"},isObjectTypePropertyAFunction:function(e){return!(e.type!=="ObjectTypeProperty"&&e.type!=="ObjectTypeInternalSlot"||e.value.type!=="FunctionTypeAnnotation"||e.static||v0(e))},isSimpleType:function(e){return!!e&&(!(e.type!=="GenericTypeAnnotation"&&e.type!=="TSTypeReference"||e.typeParameters)||!!dv.has(e.type))},isSimpleNumber:x0,isSimpleTemplateLiteral:function(e){let t="expressions";e.type==="TSTemplateLiteralType"&&(t="types");let r=e[t];return r.length!==0&&r.every(n=>{if(n.comments)return!1;if(n.type==="Identifier"||n.type==="ThisExpression")return!0;if(n.type==="MemberExpression"||n.type==="OptionalMemberExpression"){let i=n;for(;i.type==="MemberExpression"||i.type==="OptionalMemberExpression";)if(i.property.type!=="Identifier"&&i.property.type!=="Literal"&&i.property.type!=="StringLiteral"&&i.property.type!=="NumericLiteral"||(i=i.object,i.comments))return!1;return i.type==="Identifier"||i.type==="ThisExpression"}return!1})},isStringLiteral:Nl,isStringPropSafeToUnquote:function(e,t){return t.parser!=="json"&&Nl(e.key)&&Za(e.key).slice(1,-1)===e.key.value&&(uv(e.key.value)&&!((t.parser==="typescript"||t.parser==="babel-ts")&&e.type==="ClassProperty")||x0(e.key.value)&&String(Number(e.key.value))===e.key.value&&(t.parser==="babel"||t.parser==="espree"||t.parser==="meriyah"))},isTemplateOnItsOwnLine:function(e,t){return(e.type==="TemplateLiteral"&&A0(e)||e.type==="TaggedTemplateExpression"&&A0(e.quasi))&&!Pl(t,Bl(e),{backwards:!0})},isTestCall:function e(t,r){if(t.type!=="CallExpression")return!1;if(t.arguments.length===1){if(Ol(t)&&r&&e(r))return Ls(t.arguments[0]);if((n=t).callee.type==="Identifier"&&/^(before|after)(Each|All)$/.test(n.callee.name)&&n.arguments.length===1)return Ol(t.arguments[0])}else if((t.arguments.length===2||t.arguments.length===3)&&(t.callee.type==="Identifier"&&C0.test(t.callee.name)||function(i){return(i.callee.type==="MemberExpression"||i.callee.type==="OptionalMemberExpression")&&i.callee.object.type==="Identifier"&&i.callee.property.type==="Identifier"&&C0.test(i.callee.object.name)&&(i.callee.property.name==="only"||i.callee.property.name==="skip")}(t))&&(function(i){return i.type==="TemplateLiteral"}(t.arguments[0])||Nl(t.arguments[0])))return!(t.arguments[2]&&!b0(t.arguments[2]))&&((t.arguments.length===2?Ls(t.arguments[1]):function(i){return i.type==="FunctionExpression"||i.type==="ArrowFunctionExpression"&&i.body.type==="BlockStatement"}(t.arguments[1])&&Vl(t.arguments[1]).length<=1)||Ol(t.arguments[1]));var n;return!1},isTheOnlyJSXElementInMarkdown:function(e,t){if(e.parentParser!=="markdown"&&e.parentParser!=="mdx")return!1;let r=t.getNode();if(!r.expression||!Rs(r.expression))return!1;let n=t.getParentNode();return n.type==="Program"&&n.body.length===1},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e){return!(e.type!=="TypeAnnotation"&&e.type!=="TSTypeAnnotation"||e.typeAnnotation.type!=="FunctionTypeAnnotation"||e.static||g0(e,e.typeAnnotation))},matchJsxWhitespaceRegex:gv,needsHardlineAfterDanglingComment:function(e){if(!e.comments)return!1;let t=Ja(e.comments.filter(r=>!r.leading&&!r.trailing));return t&&!Is(t)},rawText:Za,returnArgumentHasLeadingComment:function(e,t){if(Ll(e.originalText,t))return!0;if(y0(t)){let n,i=t;for(;n=(r=i).expressions?r.expressions[0]:r.left||r.test||r.callee||r.object||r.tag||r.argument||r.expression;)if(i=n,Ll(e.originalText,i))return!0}var r;return!1},shouldPrintComma:function(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")},isBitwiseOperator:function(e){return!!Rl[e]||e==="|"||e==="^"||e==="&"},shouldFlatten:function(e,t){return Ml(t)===Ml(e)&&e!=="**"&&(!S0[e]||!S0[t])&&!(t==="%"&&eu[e]||e==="%"&&eu[t])&&(t===e||!eu[t]||!eu[e])&&(!Rl[e]||!Rl[t])},startsWithNoLookaheadToken:function e(t,r){switch((t=function(n){for(;n.left;)n=n.left;return n}(t)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return r;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return e(t.object,r);case"TaggedTemplateExpression":return t.tag.type!=="FunctionExpression"&&e(t.tag,r);case"CallExpression":case"OptionalCallExpression":return t.callee.type!=="FunctionExpression"&&e(t.callee,r);case"ConditionalExpression":return e(t.test,r);case"UpdateExpression":return!t.prefix&&e(t.argument,r);case"BindExpression":return t.object&&e(t.object,r);case"SequenceExpression":return e(t.expressions[0],r);case"TSAsExpression":return e(t.expression,r);default:return!1}},getPrecedence:Ml};let{getLast:yv,hasNewline:Dv,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Wl,getNextNonSpaceNonCommentCharacter:zr,hasNewlineInRange:bv,addLeadingComment:ct,addTrailingComment:vt,addDanglingComment:mr,getNextNonSpaceNonCommentCharacterIndex:Ev}=Ee,{isBlockComment:T0,getFunctionParameters:tu,isPrettierIgnoreComment:Gl,isJSXNode:vv,hasFlowShorthandAnnotationComment:Cv,hasFlowAnnotationComment:k0,hasIgnoreComment:xv}=Re,{locStart:_0,locEnd:Kt}=Ft;function Ii(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?ct(r,t):mr(e,t)}function Hl(e,t){e.type==="BlockStatement"?Ii(e,t):ct(e,t)}function zl(e,t){let{precedingNode:r,enclosingNode:n,followingNode:i}=e;return!n||n.type!=="IfStatement"||!i?!1:zr(t,e,Kt)===")"?(vt(r,e),!0):r===n.consequent&&i===n.alternate?(r.type==="BlockStatement"?vt(r,e):mr(n,e),!0):i.type==="BlockStatement"?(Ii(i,e),!0):i.type==="IfStatement"?(Hl(i.consequent,e),!0):n.consequent===i&&(ct(i,e),!0)}function Jl(e,t){let{precedingNode:r,enclosingNode:n,followingNode:i}=e;return!n||n.type!=="WhileStatement"||!i?!1:zr(t,e,Kt)===")"?(vt(r,e),!0):i.type==="BlockStatement"?(Ii(i,e),!0):n.body===i&&(ct(i,e),!0)}function P0(e){let{precedingNode:t,enclosingNode:r,followingNode:n}=e;return!(!r||r.type!=="TryStatement"&&r.type!=="CatchClause"||!n)&&(r.type==="CatchClause"&&t?(vt(t,e),!0):n.type==="BlockStatement"?(Ii(n,e),!0):n.type==="TryStatement"?(Hl(n.finalizer,e),!0):n.type==="CatchClause"&&(Hl(n.body,e),!0))}function B0(e){let{precedingNode:t,enclosingNode:r,followingNode:n}=e;if(r&&(r.type==="ClassDeclaration"||r.type==="ClassExpression"||r.type==="DeclareClass"||r.type==="DeclareInterface"||r.type==="InterfaceDeclaration"||r.type==="TSInterfaceDeclaration")){if(r.decorators&&r.decorators.length>0&&(!n||n.type!=="Decorator"))return vt(r.decorators[r.decorators.length-1],e),!0;if(r.body&&n===r.body)return Ii(r.body,e),!0;if(n){for(let i of["implements","extends","mixins"])if(r[i]&&n===r[i][0])return!t||t!==r.id&&t!==r.typeParameters&&t!==r.superClass?mr(r,e,i):vt(t,e),!0}}return!1}function N0(e,t){let{precedingNode:r,enclosingNode:n}=e;return(n&&r&&(n.type==="Property"||n.type==="TSDeclareMethod"||n.type==="TSAbstractMethodDefinition")&&r.type==="Identifier"&&n.key===r&&zr(t,r,Kt)!==":"||!(!r||!n||r.type!=="Decorator"||n.type!=="ClassMethod"&&n.type!=="ClassProperty"&&n.type!=="FieldDefinition"&&n.type!=="TSAbstractClassProperty"&&n.type!=="TSAbstractMethodDefinition"&&n.type!=="TSDeclareMethod"&&n.type!=="MethodDefinition"))&&(vt(r,e),!0)}function O0(e,t){let{precedingNode:r,enclosingNode:n,followingNode:i}=e;if(r&&r.type==="FunctionTypeParam"&&n&&n.type==="FunctionTypeAnnotation"&&i&&i.type!=="FunctionTypeParam"||r&&(r.type==="Identifier"||r.type==="AssignmentPattern")&&n&&M0(n)&&zr(t,e,Kt)===")")return vt(r,e),!0;if(n&&n.type==="FunctionDeclaration"&&i&&i.type==="BlockStatement"){let s=(()=>{let l=tu(n);if(l.length!==0)return Wl(t,Kt(yv(l)));let a=Wl(t,Kt(n.id));return a!==!1&&Wl(t,a+1)})();if(_0(e)>s)return Ii(i,e),!0}return!1}function I0(e){let{enclosingNode:t}=e;return!(!t||t.type!=="ImportSpecifier")&&(ct(t,e),!0)}function L0(e){let{enclosingNode:t}=e;return!(!t||t.type!=="LabeledStatement")&&(ct(t,e),!0)}function Xl(e,t,r){let{enclosingNode:n}=e;return t&&t.body&&t.body.length===0?(r?mr(t,e):ct(t,e),!0):!(!n||n.type!=="Program"||n.body.length!==0||!n.directives||n.directives.length!==0)&&(r?mr(n,e):ct(n,e),!0)}function R0(e){let{enclosingNode:t,followingNode:r}=e;if(Gl(e)&&t&&t.type==="TSMappedType"&&r&&r.type==="TSTypeParameter"&&r.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function M0(e){return e.type==="ArrowFunctionExpression"||e.type==="FunctionExpression"||e.type==="FunctionDeclaration"||e.type==="ObjectMethod"||e.type==="ClassMethod"||e.type==="TSDeclareFunction"||e.type==="TSCallSignatureDeclaration"||e.type==="TSConstructSignatureDeclaration"||e.type==="TSMethodSignature"||e.type==="TSConstructorType"||e.type==="TSFunctionType"||e.type==="TSDeclareMethod"}function j0(e){return T0(e)&&e.value[0]==="*"&&/@type\b/.test(e.value)}var yr={handleOwnLineComment:function(e,t,r,n,i){return R0(e)||O0(e,t)||function(s){let{enclosingNode:l,followingNode:a}=s;return l&&(l.type==="MemberExpression"||l.type==="OptionalMemberExpression")&&a&&a.type==="Identifier"?(ct(l,s),!0):!1}(e)||zl(e,t)||Jl(e,t)||P0(e)||B0(e)||I0(e)||function(s){let{enclosingNode:l}=s;return l&&(l.type==="ForInStatement"||l.type==="ForOfStatement")?(ct(l,s),!0):!1}(e)||function(s){let{precedingNode:l,enclosingNode:a,followingNode:c}=s;return a&&(a.type==="UnionTypeAnnotation"||a.type==="TSUnionType")?(Gl(s)&&(c.prettierIgnore=!0,s.unignore=!0),!!l&&(vt(l,s),!0)):(c&&(c.type==="UnionTypeAnnotation"||c.type==="TSUnionType")&&Gl(s)&&(c.types[0].prettierIgnore=!0,s.unignore=!0),!1)}(e)||Xl(e,n,i)||function(s,l){let{precedingNode:a,enclosingNode:c}=s;return a&&a.type==="ImportSpecifier"&&c&&c.type==="ImportDeclaration"&&Dv(l,Kt(s))?(vt(a,s),!0):!1}(e,t)||function(s){let{enclosingNode:l}=s;return l&&l.type==="AssignmentPattern"?(ct(l,s),!0):!1}(e)||N0(e,t)||L0(e)},handleEndOfLineComment:function(e,t,r,n,i){return function(s){let{followingNode:l}=s;return l&&j0(s)?(ct(l,s),!0):!1}(e)||O0(e,t)||function(s,l){let{precedingNode:a,enclosingNode:c,followingNode:p}=s,u=a&&!bv(l,Kt(a),_0(s));return(!a||!u)&&c&&(c.type==="ConditionalExpression"||c.type==="TSConditionalType")&&p?(ct(p,s),!0):!1}(e,t)||I0(e)||zl(e,t)||Jl(e,t)||P0(e)||B0(e)||L0(e)||function(s){let{precedingNode:l,enclosingNode:a}=s;return a&&(a.type==="CallExpression"||a.type==="OptionalCallExpression")&&l&&a.callee===l&&a.arguments.length>0?(ct(a.arguments[0],s),!0):!1}(e)||function(s){let{enclosingNode:l}=s;return l&&(l.type==="Property"||l.type==="ObjectProperty")?(ct(l,s),!0):!1}(e)||Xl(e,n,i)||function(s){let{enclosingNode:l}=s;return l&&l.type==="TypeAlias"?(ct(l,s),!0):!1}(e)||function(s){let{enclosingNode:l,followingNode:a}=s;return l&&(l.type==="VariableDeclarator"||l.type==="AssignmentExpression")&&a&&(a.type==="ObjectExpression"||a.type==="ArrayExpression"||a.type==="TemplateLiteral"||a.type==="TaggedTemplateExpression"||T0(s))?(ct(a,s),!0):!1}(e)},handleRemainingComment:function(e,t,r,n,i){return!!(R0(e)||zl(e,t)||Jl(e,t)||function(s){let{precedingNode:l,enclosingNode:a}=s;return a&&(a.type==="ObjectProperty"||a.type==="Property")&&a.shorthand&&a.key===l&&a.value.type==="AssignmentPattern"?(vt(a.value.left,s),!0):!1}(e)||function(s,l){if(zr(l,s,Kt)!==")")return!1;let{enclosingNode:a}=s;return a&&(M0(a)&&tu(a).length===0||(a.type==="CallExpression"||a.type==="OptionalCallExpression"||a.type==="NewExpression")&&a.arguments.length===0)?(mr(a,s),!0):a&&a.type==="MethodDefinition"&&tu(a.value).length===0?(mr(a.value,s),!0):!1}(e,t)||N0(e,t)||Xl(e,n,i)||function(s,l){let{enclosingNode:a}=s;if(!a||a.type!=="ArrowFunctionExpression")return!1;let c=Ev(l,s,Kt);return c!==!1&&l.slice(c,c+2)==="=>"?(mr(a,s),!0):!1}(e,t)||function(s,l){if(zr(l,s,Kt)!=="(")return!1;let{precedingNode:a,enclosingNode:c}=s;return a&&c&&(c.type==="FunctionDeclaration"||c.type==="FunctionExpression"||c.type==="ClassMethod"||c.type==="MethodDefinition"||c.type==="ObjectMethod")?(vt(a,s),!0):!1}(e,t)||function(s){let{precedingNode:l,enclosingNode:a,followingNode:c}=s;return!a||a.type!=="TSMappedType"?!1:c&&c.type==="TSTypeParameter"&&c.name?(ct(c.name,s),!0):l&&l.type==="TSTypeParameter"&&l.constraint?(vt(l.constraint,s),!0):!1}(e)||function(s){let{enclosingNode:l}=s;return l&&(l.type==="ContinueStatement"||l.type==="BreakStatement")&&!l.label?(vt(l,s),!0):!1}(e)||function(s,l){let{enclosingNode:a,followingNode:c}=s;return!c&&a&&(a.type==="TSMethodSignature"||a.type==="TSDeclareFunction"||a.type==="TSAbstractMethodDefinition")&&zr(l,s,Kt)===";"?(vt(a,s),!0):!1}(e,t))},hasLeadingComment:function(e,t=()=>!0){return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some(r=>r.leading&&t(r))},isTypeCastComment:j0,getGapRegex:function(e){if(e&&e.type!=="BinaryExpression"&&e.type!=="LogicalExpression")return/^[\s&(|]*$/},getCommentChildNodes:function(e,t){if((t.parser==="typescript"||t.parser==="flow"||t.parser==="espree"||t.parser==="meriyah")&&e.type==="MethodDefinition"&&e.value&&e.value.type==="FunctionExpression"&&tu(e.value).length===0&&!e.value.returnType&&(!e.value.typeParameters||e.value.typeParameters.length===0)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]},willPrintOwnComments:function(e){let t=e.getValue(),r=e.getParentNode();return(t&&(vv(t)||Cv(t)||r&&(r.type==="CallExpression"||r.type==="OptionalCallExpression")&&(k0(t.leadingComments)||k0(t.trailingComments)))||r&&(r.type==="JSXSpreadAttribute"||r.type==="JSXSpreadChild"||r.type==="UnionTypeAnnotation"||r.type==="TSUnionType"||(r.type==="ClassDeclaration"||r.type==="ClassExpression")&&r.superClass===t))&&(!xv(e)||r.type==="UnionTypeAnnotation"||r.type==="TSUnionType")}};let{getStringWidth:V0,getIndentSize:Av}=Ee,{builders:{concat:$n,join:U0,hardline:Yl,softline:nu,group:q0,indent:Kl,align:Sv,lineSuffixBoundary:ru,addAlignmentToDoc:wv},printer:{printDocToString:$0},utils:{mapDoc:Fv}}=ae,{isBinaryish:Tv,isJestEachTemplateLiteral:kv,isSimpleTemplateLiteral:_v}=Re;function W0(e){return e.replace(/([\\`]|\${)/g,"\\$1")}var Ms={printTemplateLiteral:function(e,t,r){let n=e.getValue();if(n.type==="TemplateLiteral"&&kv(n,e.getParentNode())){let c=function(p,u,d){let h=p.getNode(),b=h.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(b.length>1||b.some(m=>m.length!==0)){u.__inJestEach=!0;let m=p.map(d,"expressions");u.__inJestEach=!1;let x=[],F=m.map(N=>"${"+$0(N,Object.assign({},u,{printWidth:1/0,endOfLine:"lf"})).formatted+"}"),E=[{hasLineBreak:!1,cells:[]}];for(let N=1;N<h.quasis.length;N++){let R=E[E.length-1],U=F[N-1];R.cells.push(U),U.includes(`
|
|
124
|
+
`).concat(L)),u?d.reset(L):L}}),oE=or(m2);let{ConfigError:lE}=th,{locStart:cE,locEnd:pE}=Ft,fE=Object.getOwnPropertyNames,hE=Object.getOwnPropertyDescriptor;function qh(e){let t={};for(let r of e.plugins)if(r.parsers)for(let n of fE(r.parsers))Object.defineProperty(t,n,hE(r.parsers,n));return t}function $h(e,t){if(t=t||qh(e),typeof e.parser=="function")return{parse:e.parser,astFormat:"estree",locStart:cE,locEnd:pE};if(typeof e.parser=="string"){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new lE(`Couldn't resolve parser "`.concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var Hr={parse:function(e,t){let r=qh(t),n=Object.keys(r).reduce((s,l)=>Object.defineProperty(s,l,{enumerable:!0,get:()=>r[l].parse}),{}),i=$h(t,r);try{return i.preprocess&&(e=i.preprocess(e,t)),{text:e,ast:i.parse(e,n,t)}}catch(s){let{loc:l}=s;if(l){let{codeFrameColumns:a}=uE;throw s.codeFrame=a(e,l,{highlightCode:!0}),s.message+=`
|
|
125
|
+
`+s.codeFrame,s}throw s.stack}},resolveParser:$h};let{UndefinedParserError:dE}=th,{getSupportInfo:Wh}=Be,{resolveParser:gE}=Hr,Cl={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function Gh(e,t){let r=oE.basename(e).toLowerCase(),n=Wh({plugins:t}).languages.filter(s=>s.since!==null),i=n.find(s=>s.extensions&&s.extensions.some(l=>r.endsWith(l))||s.filenames&&s.filenames.some(l=>l.toLowerCase()===r));if(!i&&!r.includes(".")){let s=function(l){if(typeof l!="string")return"";let a;try{a=As.openSync(l,"r")}catch(c){return""}try{let c=new N2(a).next().toString("utf8"),p=c.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(p)return p[1];let u=c.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return u?u[1]:""}catch(c){return""}finally{try{As.closeSync(a)}catch(c){}}}(e);i=n.find(l=>l.interpreters&&l.interpreters.includes(s))}return i&&i.parsers[0]}var Hh={normalize:function(e,t){t=t||{};let r=Object.assign({},e),n=Wh({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,i=Object.assign({},Cl,O2(n.filter(p=>p.default!==void 0).map(p=>[p.name,p.default])));if(!r.parser)if(r.filepath){if(r.parser=Gh(r.filepath,r.plugins),!r.parser)throw new dE("No parser could be inferred for file: ".concat(r.filepath))}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),r.parser="babel";let s=gE(Lh.normalizeApiOptions(r,[n.find(p=>p.name==="parser")],{passThrough:!0,logger:!1}));r.astFormat=s.astFormat,r.locEnd=s.locEnd,r.locStart=s.locStart;let l=function(p){let{astFormat:u}=p;if(!u)throw new Error("getPlugin() requires astFormat to be set");let d=p.plugins.find(h=>h.printers&&h.printers[u]);if(!d)throw new Error(`Couldn't find plugin for AST format "`.concat(u,'"'));return d}(r);r.printer=l.printers[r.astFormat];let a=n.filter(p=>p.pluginDefaults&&p.pluginDefaults[l.name]!==void 0).reduce((p,u)=>Object.assign(p,{[u.name]:u.pluginDefaults[l.name]}),{}),c=Object.assign({},i,a);return Object.keys(c).forEach(p=>{r[p]==null&&(r[p]=c[p])}),r.parser==="json"&&(r.trailingComma="none"),Lh.normalizeApiOptions(r,n,Object.assign({passThrough:Object.keys(Cl)},t))},hiddenDefaults:Cl,inferParser:Gh},mE=function e(t,r,n){if(Array.isArray(t))return t.map(a=>e(a,r,n)).filter(Boolean);if(!t||typeof t!="object")return t;let i=r.printer.massageAstNode,s;s=i&&i.ignoredProperties?i.ignoredProperties:new Set;let l={};for(let a of Object.keys(t))s.has(a)||typeof t[a]=="function"||(l[a]=e(t[a],r,t));if(i){let a=i(t,l,n);if(a===null)return;if(a)return a}return l};function xl(){}xl.ok=function(){},xl.strictEqual=function(){};var qn=or(Object.freeze({__proto__:null,default:xl}));let{builders:{concat:dr,line:yE,hardline:gr,breakParent:DE,indent:bE,lineSuffix:zh,join:Jh,cursor:Xh}}=ae,{hasNewline:Ni,skipNewline:EE,skipSpaces:vE,isPreviousLineEmpty:CE,addLeadingComment:Bs,addDanglingComment:Al,addTrailingComment:Ns}=ve,Sl=Symbol("child-nodes");function wl(e,t,r){if(!e)return;let{printer:n,locStart:i,locEnd:s}=t;if(r){if(n.canAttachComment&&n.canAttachComment(e)){let a;for(a=r.length-1;a>=0&&!(i(r[a])<=i(e)&&s(r[a])<=s(e));--a);return void r.splice(a+1,0,e)}}else if(e[Sl])return e[Sl];let l=n.getCommentChildNodes&&n.getCommentChildNodes(e,t)||typeof e=="object"&&Object.keys(e).filter(a=>a!=="enclosingNode"&&a!=="precedingNode"&&a!=="followingNode"&&a!=="tokens"&&a!=="comments").map(a=>e[a]);return l?(r||Object.defineProperty(e,Sl,{value:r=[],enumerable:!1}),l.forEach(a=>{wl(a,t,r)}),r):void 0}function Yh(e,t,r){let{locStart:n,locEnd:i}=r,s=n(t),l=i(t),a=wl(e,r),c,p,u=0,d=a.length;for(;u<d;){let h=u+d>>1,b=a[h],m=n(b),x=i(b);if(m<=s&&l<=x)return t.enclosingNode=b,void Yh(b,t,r);if(m<=s)c=b,u=h+1;else{if(!(l<=m))throw new Error("Comment location overlaps with node location");p=b,d=h}}if(t.enclosingNode&&t.enclosingNode.type==="TemplateLiteral"){let{quasis:h}=t.enclosingNode,b=Tl(h,t,r);c&&Tl(h,c,r)!==b&&(c=null),p&&Tl(h,p,r)!==b&&(p=null)}c&&(t.precedingNode=c),p&&(t.followingNode=p)}function Kh(e,t,r){let n=e.length;if(n===0)return;let{precedingNode:i,followingNode:s,enclosingNode:l}=e[0],a=r.printer.getGapRegex&&r.printer.getGapRegex(l)||/^[\s(]*$/,c,p=r.locStart(s);for(c=n;c>0;--c){let u=e[c-1];qn.strictEqual(u.precedingNode,i),qn.strictEqual(u.followingNode,s);let d=t.slice(r.locEnd(u),p);if(!a.test(d))break;p=r.locStart(u)}e.forEach((u,d)=>{d<c?Ns(i,u):Bs(s,u)});for(let u of[i,s])u.comments&&u.comments.length>1&&u.comments.sort((d,h)=>r.locStart(d)-r.locStart(h));e.length=0}function Fl(e,t){return e.getValue().printed=!0,t.printer.printComment(e,t)}function Tl(e,t,r){let n=r.locStart(t)-1;for(let i=1;i<e.length;++i)if(n<r.locStart(e[i]))return i-1;return 0}function Qh(e,t,r){return e.getNode()===t.cursorNode&&e.getValue()?dr([Xh,r,Xh]):r}var Fe={attach:function(e,t,r,n){if(!Array.isArray(e))return;let i=[],{locStart:s,locEnd:l}=n;e.forEach((a,c)=>{if(n.parser==="json"||n.parser==="json5"||n.parser==="__js_expression"||n.parser==="__vue_expression"){if(s(a)-s(t)<=0)return void Bs(t,a);if(l(a)-l(t)>=0)return void Ns(t,a)}Yh(t,a,n);let{precedingNode:p,enclosingNode:u,followingNode:d}=a,h=n.printer.handleComments&&n.printer.handleComments.ownLine?n.printer.handleComments.ownLine:()=>!1,b=n.printer.handleComments&&n.printer.handleComments.endOfLine?n.printer.handleComments.endOfLine:()=>!1,m=n.printer.handleComments&&n.printer.handleComments.remaining?n.printer.handleComments.remaining:()=>!1,x=e.length-1===c;if(Ni(r,s(a),{backwards:!0}))h(a,r,n,t,x)||(d?Bs(d,a):p?Ns(p,a):Al(u||t,a));else if(Ni(r,l(a)))b(a,r,n,t,x)||(p?Ns(p,a):d?Bs(d,a):Al(u||t,a));else if(!m(a,r,n,t,x))if(p&&d){let F=i.length;F>0&&i[F-1].followingNode!==a.followingNode&&Kh(i,r,n),i.push(a)}else p?Ns(p,a):d?Bs(d,a):Al(u||t,a)}),Kh(i,r,n),e.forEach(a=>{delete a.precedingNode,delete a.enclosingNode,delete a.followingNode})},printComments:function(e,t,r,n){let i=e.getValue(),s=t(e),l=i&&i.comments;if(!l||l.length===0)return Qh(e,r,s);let a=[],c=[n?";":"",s];return e.each(p=>{let u=p.getValue(),{leading:d,trailing:h}=u;if(d){let b=function(F,E){let A=F.getValue(),P=Fl(F,E);if(!P)return"";if(E.printer.isBlockComment&&E.printer.isBlockComment(A)){let L=Ni(E.originalText,E.locEnd(A))?Ni(E.originalText,E.locStart(A),{backwards:!0})?gr:yE:" ";return dr([P,L])}return dr([P,gr])}(p,r);if(!b)return;a.push(b);let m=r.originalText,x=EE(m,vE(m,r.locEnd(u)));x!==!1&&Ni(m,x)&&a.push(gr)}else h&&c.push(function(b,m){let x=b.getValue(),F=Fl(b,m);if(!F)return"";let{printer:E,originalText:A,locStart:P}=m,L=E.isBlockComment&&E.isBlockComment(x);if(Ni(A,P(x),{backwards:!0})){let R=CE(A,x,P);return zh(dr([gr,R?gr:"",F]))}let N=dr([" ",F]);return L||(N=dr([zh(N),DE])),N}(p,r))},"comments"),Qh(e,r,dr(a.concat(c)))},printDanglingComments:function(e,t,r,n){let i=[],s=e.getValue();return s&&s.comments?(e.each(l=>{let a=l.getValue();!a||a.leading||a.trailing||n&&!n(a)||i.push(Fl(l,t))},"comments"),i.length===0?"":r?Jh(gr,i):bE(dr([gr,Jh(gr,i)]))):""},getSortedChildNodes:wl,ensureAllCommentsPrinted:function(e){e&&e.forEach(t=>{if(!t.printed)throw new Error('Comment "'+t.value.trim()+'" was not printed. Please report this error!');delete t.printed})}};function Zh(e,t){let r=e0(e.stack,t);return r===-1?null:e.stack[r]}function e0(e,t){for(let r=e.length-1;r>=0;r-=2){let n=e[r];if(n&&!Array.isArray(n)&&--t<0)return r}return-1}var t0=class{constructor(e){this.stack=[e]}getName(){let{stack:e}=this,{length:t}=e;return t>1?e[t-2]:null}getValue(){return Lr(this.stack)}getNode(e=0){return Zh(this,e)}getParentNode(e=0){return Zh(this,e+1)}call(e,...t){let{stack:r}=this,{length:n}=r,i=Lr(r);for(let l of t)i=i[l],r.push(l,i);let s=e(this);return r.length=n,s}callParent(e,t=0){let r=e0(this.stack,t+1),n=this.stack.splice(r+1),i=e(this);return this.stack.push(...n),i}each(e,...t){let{stack:r}=this,{length:n}=r,i=Lr(r);for(let s of t)i=i[s],r.push(s,i);for(let s=0;s<i.length;++s)r.push(s,i[s]),e(this,s),r.length-=2;r.length=n}map(e,...t){let r=[];return this.each((n,i)=>{r[i]=e(n,i)},...t),r}match(...e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(let i of e){if(n===void 0)return!1;let s=null;if(typeof r=="number"&&(s=r,r=this.stack[t--],n=this.stack[t--]),i&&!i(n,r,s))return!1;r=this.stack[t--],n=this.stack[t--]}return!0}};let{utils:{stripTrailingHardline:xE}}=ae,{normalize:AE}=Hh;var SE={printSubtree:function(e,t,r,n){if(r.printer.embed&&r.embeddedLanguageFormatting==="auto")return r.printer.embed(e,t,(i,s,l)=>function(a,c,p,u,{stripTrailingHardline:d=!1}={}){let h=AE(Object.assign({},p,c,{parentParser:p.parser,embeddedInHtml:!(!p.embeddedInHtml&&p.parser!=="html"&&p.parser!=="vue"&&p.parser!=="angular"&&p.parser!=="lwc"),originalText:a}),{passThrough:!0}),b=Hr.parse(a,h),{ast:m}=b;a=b.text;let x=m.comments;delete m.comments,Fe.attach(x,m,a,h),h[Symbol.for("comments")]=x||[],h[Symbol.for("tokens")]=m.tokens||[];let F=u(m,h);return Fe.ensureAllCommentsPrinted(x),d?typeof F=="string"?F.replace(/(?:\r?\n)*$/,""):xE(F,!0):F}(i,s,r,n,l),r)}};let n0=ae,wE=n0.builders,{concat:FE,hardline:TE,addAlignmentToDoc:kE}=wE,_E=n0.utils;function r0(e,t,r=0){let{printer:n}=t;n.preprocess&&(e=n.preprocess(e,t));let i=new Map,s=function l(a,c){let p=a.getValue(),u=p&&typeof p=="object"&&c===void 0;if(u&&i.has(p))return i.get(p);let d;return d=n.willPrintOwnComments&&n.willPrintOwnComments(a,t)?i0(a,t,l,c):Fe.printComments(a,h=>i0(h,t,l,c),t,c&&c.needsSemi),u&&i.set(p,d),d}(new t0(e));return r>0&&(s=kE(FE([TE,s]),r,t.tabWidth)),_E.propagateBreaks(s),s}function i0(e,t,r,n){qn.ok(e instanceof t0);let i=e.getValue(),{printer:s}=t;if(s.hasPrettierIgnore&&s.hasPrettierIgnore(e))return function(l,a){let{originalText:c,[Symbol.for("comments")]:p,locStart:u,locEnd:d}=a,h=u(l),b=d(l);for(let m of p)u(m)>=h&&d(m)<=b&&(m.printed=!0);return c.slice(h,b)}(i,t);if(i)try{let l=SE.printSubtree(e,r,t,r0);if(l)return l}catch(l){if(ut.PRETTIER_DEBUG)throw l}return s.print(e,t,r,n)}var kl=r0;function za(e,t,r,n,i=[]){if(!(t<r.locStart(e)||t>r.locEnd(e))){for(let s of Fe.getSortedChildNodes(e,r)){let l=za(s,t,r,n,[e,...i]);if(l)return l}return!n||n(e)?{node:e,parentNodes:i}:void 0}}let PE=new Set(["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral"]),BE=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function s0(e,t){if(t==null)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"espree":case"meriyah":return function(r){return r==="Directive"||r==="TypeAlias"||r==="TSExportAssignment"||r.startsWith("Declare")||r.startsWith("TSDeclare")||r.endsWith("Statement")||r.endsWith("Declaration")}(t.type);case"json":return PE.has(t.type);case"graphql":return BE.has(t.kind);case"vue":return t.tag!=="root"}return!1}var a0={calculateRange:function(e,t,r){let n=e.slice(t.rangeStart,t.rangeEnd),i=Math.max(t.rangeStart+n.search(/\S/),t.rangeStart),s;for(s=t.rangeEnd;s>t.rangeStart&&!/\S/.test(e[s-1]);--s);let l=za(r,i,t,u=>s0(t,u)),a=za(r,s,t,u=>s0(t,u));if(!l||!a)return{rangeStart:0,rangeEnd:0};let{startNode:c,endNode:p}=function(u,d,h){let b=u.node,m=d.node;if(b===m)return{startNode:b,endNode:m};for(let x of d.parentNodes){if(!(x.type!=="Program"&&x.type!=="File"&&h.locStart(x)>=h.locStart(u.node)))break;m=x}for(let x of u.parentNodes){if(!(x.type!=="Program"&&x.type!=="File"&&h.locEnd(x)<=h.locEnd(d.node)))break;b=x}return{startNode:b,endNode:m}}(l,a,t);return{rangeStart:Math.min(t.locStart(c),t.locStart(p)),rangeEnd:Math.max(t.locEnd(c),t.locEnd(p))}},findNodeAtOffset:za};let{printer:{printDocToString:_l},debug:{printDocToDebug:NE}}=ae,{getAlignmentSize:OE}=ve,{guessEndOfLine:IE,convertEndOfLineToChars:u0,countEndOfLineChars:o0,normalizeEndOfLine:LE}=Xo,Os=Hh.normalize,l0=Symbol("cursor");function c0(e,t,r){let n=t.comments;return n&&(delete t.comments,Fe.attach(n,t,e,r)),r[Symbol.for("comments")]=n||[],r[Symbol.for("tokens")]=t.tokens||[],r.originalText=e,n}function p0(e,t,r){if(!e||!e.trim().length)return{formatted:"",cursorOffset:-1};r=r||0;let{ast:n,text:i}=Hr.parse(e,t);if(t.cursorOffset>=0){let c=a0.findNodeAtOffset(n,t.cursorOffset,t);c&&c.node&&(t.cursorNode=c.node)}let s=c0(i,n,t),l=kl(n,t,r),a=_l(l,t);if(Fe.ensureAllCommentsPrinted(s),r>0){let c=a.formatted.trim();a.cursorNodeStart!==void 0&&(a.cursorNodeStart-=a.formatted.indexOf(c)),a.formatted=c+u0(t.endOfLine)}if(t.cursorOffset>=0){let c,p,u,d,h;if(t.cursorNode&&a.cursorNodeText?(c=t.locStart(t.cursorNode),p=i.slice(c,t.locEnd(t.cursorNode)),u=t.cursorOffset-c,d=a.cursorNodeStart,h=a.cursorNodeText):(c=0,p=i,u=t.cursorOffset,d=0,h=a.formatted),p===h)return{formatted:a.formatted,cursorOffset:d+u};let b=p.split("");b.splice(u,0,l0);let m=h.split(""),x=ba.diffArrays(b,m),F=d;for(let E of x)if(E.removed){if(E.value.includes(l0))break}else F+=E.count;return{formatted:a.formatted,cursorOffset:F}}return{formatted:a.formatted,cursorOffset:-1}}function Pl(e,t,r){return typeof t!="number"||isNaN(t)||t<0||t>e.length?r:t}function f0(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=t;return r=Pl(e,r,-1),n=Pl(e,n,0),i=Pl(e,i,e.length),Object.assign({},t,{cursorOffset:r,rangeStart:n,rangeEnd:i})}function h0(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s}=f0(e,t),l=e.charAt(0)==="\uFEFF";if(l&&(e=e.slice(1),r--,n--,i--),s==="auto"&&(s=IE(e)),e.includes("\r")){let a=c=>o0(e.slice(0,Math.max(c,0)),`\r
|
|
126
|
+
`);r-=a(r),n-=a(n),i-=a(i),e=LE(e)}return{hasBOM:l,text:e,options:f0(e,Object.assign({},t,{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s}))}}function d0(e,t){let{hasBOM:r,text:n,options:i}=h0(e,Os(t)),s=Hr.resolveParser(i),l=!s.hasPragma||s.hasPragma(n);if(i.requirePragma&&!l)return{formatted:e,cursorOffset:t.cursorOffset};let a;return i.rangeStart>0||i.rangeEnd<n.length?a=function(c,p){let{ast:u,text:d}=Hr.parse(c,p),{rangeStart:h,rangeEnd:b}=a0.calculateRange(d,p,u),m=d.slice(h,b),x=Math.min(h,d.lastIndexOf(`
|
|
127
|
+
`,h)+1),F=d.slice(x,h).match(/^\s*/)[0],E=OE(F,p.tabWidth),A=p0(m,Object.assign({},p,{rangeStart:0,rangeEnd:1/0,cursorOffset:p.cursorOffset>h&&p.cursorOffset<b?p.cursorOffset-h:-1,endOfLine:"lf"}),E),P=A.formatted.trimEnd(),{cursorOffset:L}=p;L>=b?L=p.cursorOffset+(P.length-m.length):A.cursorOffset>=0&&(L=A.cursorOffset+h);let N=d.slice(0,h)+P+d.slice(b);if(p.endOfLine!=="lf"){let R=u0(p.endOfLine);L>=0&&R===`\r
|
|
128
|
+
`&&(L+=o0(N.slice(0,L),`
|
|
129
|
+
`)),N=N.replace(/\n/g,R)}return{formatted:N,cursorOffset:L}}(n,i):(!l&&i.insertPragma&&i.printer.insertPragma&&(n=i.printer.insertPragma(n)),a=p0(n,i)),r&&(a.formatted="\uFEFF"+a.formatted,a.cursorOffset>=0&&a.cursorOffset++),a}var Oi={formatWithCursor:d0,parse(e,t,r){let{text:n,options:i}=h0(e,Os(t)),s=Hr.parse(n,i);return r&&(s.ast=mE(s.ast,i)),s},formatAST(e,t){t=Os(t);let r=kl(e,t);return _l(r,t)},formatDoc:(e,t)=>d0(NE(e),Object.assign({},t,{parser:"babel"})).formatted,printToDoc(e,t){t=Os(t);let{ast:r,text:n}=Hr.parse(e,t);return c0(n,r,t),kl(r,t)},printDocToString:(e,t)=>_l(e,Os(t))};let{getMaxContinuousCount:RE,getStringWidth:ME,getAlignmentSize:jE,getIndentSize:VE,skip:UE,skipWhitespace:qE,skipSpaces:$E,skipNewline:WE,skipToLineEnd:GE,skipEverythingButNewLine:HE,skipInlineComment:zE,skipTrailingComment:JE,hasNewline:XE,hasNewlineInRange:YE,hasSpaces:KE,isNextLineEmpty:QE,isNextLineEmptyAfterIndex:ZE,isPreviousLineEmpty:ev,getNextNonSpaceNonCommentCharacterIndex:tv,makeString:nv,addLeadingComment:rv,addDanglingComment:iv,addTrailingComment:sv}=ve;var av={getMaxContinuousCount:RE,getStringWidth:ME,getAlignmentSize:jE,getIndentSize:VE,skip:UE,skipWhitespace:qE,skipSpaces:$E,skipNewline:WE,skipToLineEnd:GE,skipEverythingButNewLine:HE,skipInlineComment:zE,skipTrailingComment:JE,hasNewline:XE,hasNewlineInRange:YE,hasSpaces:KE,isNextLineEmpty:QE,isNextLineEmptyAfterIndex:ZE,isPreviousLineEmpty:ev,getNextNonSpaceNonCommentCharacterIndex:tv,makeString:nv,addLeadingComment:rv,addDanglingComment:iv,addTrailingComment:sv},ze=function(e,t){let{languageId:r}=e,n=f(e,["languageId"]);return Object.assign({linguistLanguageId:r},n,t(e))},uv=re(function(e){(function(){function t(n){if(n==null)return!1;switch(n.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function r(n){switch(n.type){case"IfStatement":return n.alternate!=null?n.alternate:n.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return n.body}return null}e.exports={isExpression:function(n){if(n==null)return!1;switch(n.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(n){if(n==null)return!1;switch(n.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(n){return t(n)||n!=null&&n.type==="FunctionDeclaration"},isProblematicIfStatement:function(n){var i;if(n.type!=="IfStatement"||n.alternate==null)return!1;i=n.consequent;do{if(i.type==="IfStatement"&&i.alternate==null)return!0;i=r(i)}while(i);return!1},trailingStatement:r}})()}),g0=re(function(e){(function(){var t,r,n,i,s,l;function a(c){return c<=65535?String.fromCharCode(c):String.fromCharCode(Math.floor((c-65536)/1024)+55296)+String.fromCharCode((c-65536)%1024+56320)}for(r={NonAsciiIdentifierStart:/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\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\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u1877\u1880-\u1884\u1887-\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\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\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\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u1877\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\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\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-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=new Array(128),l=0;l<128;++l)i[l]=l>=97&&l<=122||l>=65&&l<=90||l===36||l===95;for(s=new Array(128),l=0;l<128;++l)s[l]=l>=97&&l<=122||l>=65&&l<=90||l>=48&&l<=57||l===36||l===95;e.exports={isDecimalDigit:function(c){return 48<=c&&c<=57},isHexDigit:function(c){return 48<=c&&c<=57||97<=c&&c<=102||65<=c&&c<=70},isOctalDigit:function(c){return c>=48&&c<=55},isWhiteSpace:function(c){return c===32||c===9||c===11||c===12||c===160||c>=5760&&n.indexOf(c)>=0},isLineTerminator:function(c){return c===10||c===13||c===8232||c===8233},isIdentifierStartES5:function(c){return c<128?i[c]:r.NonAsciiIdentifierStart.test(a(c))},isIdentifierPartES5:function(c){return c<128?s[c]:r.NonAsciiIdentifierPart.test(a(c))},isIdentifierStartES6:function(c){return c<128?i[c]:t.NonAsciiIdentifierStart.test(a(c))},isIdentifierPartES6:function(c){return c<128?s[c]:t.NonAsciiIdentifierPart.test(a(c))}}})()}),ov=re(function(e){(function(){var t=g0;function r(c,p){return!(!p&&c==="yield")&&n(c,p)}function n(c,p){if(p&&function(u){switch(u){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(c))return!0;switch(c.length){case 2:return c==="if"||c==="in"||c==="do";case 3:return c==="var"||c==="for"||c==="new"||c==="try";case 4:return c==="this"||c==="else"||c==="case"||c==="void"||c==="with"||c==="enum";case 5:return c==="while"||c==="break"||c==="catch"||c==="throw"||c==="const"||c==="yield"||c==="class"||c==="super";case 6:return c==="return"||c==="typeof"||c==="delete"||c==="switch"||c==="export"||c==="import";case 7:return c==="default"||c==="finally"||c==="extends";case 8:return c==="function"||c==="continue"||c==="debugger";case 10:return c==="instanceof";default:return!1}}function i(c,p){return c==="null"||c==="true"||c==="false"||r(c,p)}function s(c,p){return c==="null"||c==="true"||c==="false"||n(c,p)}function l(c){var p,u,d;if(c.length===0||(d=c.charCodeAt(0),!t.isIdentifierStartES5(d)))return!1;for(p=1,u=c.length;p<u;++p)if(d=c.charCodeAt(p),!t.isIdentifierPartES5(d))return!1;return!0}function a(c){var p,u,d,h,b;if(c.length===0)return!1;for(b=t.isIdentifierStartES6,p=0,u=c.length;p<u;++p){if(55296<=(d=c.charCodeAt(p))&&d<=56319){if(++p>=u||!(56320<=(h=c.charCodeAt(p))&&h<=57343))return!1;d=1024*(d-55296)+(h-56320)+65536}if(!b(d))return!1;b=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:r,isKeywordES6:n,isReservedWordES5:i,isReservedWordES6:s,isRestrictedWord:function(c){return c==="eval"||c==="arguments"},isIdentifierNameES5:l,isIdentifierNameES6:a,isIdentifierES5:function(c,p){return l(c)&&!i(c,p)},isIdentifierES6:function(c,p){return a(c)&&!s(c,p)}}})()});let lv=re(function(e,t){t.ast=uv,t.code=g0,t.keyword=ov}).keyword.isIdentifierNameES5,{getLast:Ja,hasNewline:Bl,hasNewlineInRange:cv,skipWhitespace:pv}=ve,{locStart:Nl,locEnd:Xa,hasSameLocStart:m0}=Ft,y0="(?:(?=.)\\s)",fv=new RegExp("^".concat(y0,"*:")),hv=new RegExp("^".concat(y0,"*::"));function Ya(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(n=>Ya(n,t));let r=t(e);return typeof r=="boolean"?r:Object.keys(e).some(n=>Ya(e[n],t))}function D0(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||e.type==="CallExpression"||e.type==="OptionalCallExpression"||e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||e.type==="TSAsExpression"||e.type==="TSNonNullExpression"}function Is(e){return e.type==="Block"||e.type==="CommentBlock"||e.type==="MultiLine"}let dv=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function b0(e){return e&&dv.has(e.type)}function Ka(e){return e.type==="BooleanLiteral"||e.type==="DirectiveLiteral"||e.type==="Literal"||e.type==="NullLiteral"||e.type==="NumericLiteral"||e.type==="BigIntLiteral"||e.type==="DecimalLiteral"||e.type==="RegExpLiteral"||e.type==="StringLiteral"||e.type==="TemplateLiteral"||e.type==="TSTypeLiteral"||e.type==="JSXText"}function E0(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function Ol(e){return e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"}function Ls(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"}function Il(e){return!(e.type!=="CallExpression"&&e.type!=="OptionalCallExpression"||e.callee.type!=="Identifier"||e.callee.name!=="async"&&e.callee.name!=="inject"&&e.callee.name!=="fakeAsync")}function Rs(e){return e.type==="JSXElement"||e.type==="JSXFragment"}function v0(e){return e.kind==="get"||e.kind==="set"}function C0(e){return v0(e)||m0(e,e.value)}let gv=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]),mv=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]),x0=/^(skip|[fx]?(it|describe|test))$/;function Qa(e){return e.type==="CallExpression"||e.type==="OptionalCallExpression"}let yv=new RegExp(`([
|
|
130
|
+
\r ]+)`),Dv=new RegExp(`[^
|
|
131
|
+
\r ]`);function Ll(e){return Ka(e)&&(Dv.test(Za(e))||!/\n/.test(Za(e)))}function Rl(e,t){return Rs(t)?Wl(t):t.comments&&t.comments.some(r=>r.leading&&Bl(e,Xa(r)))}function A0(e){return/^(\d+|\d+\.\d+)$/.test(e)}function S0(e){return e.quasis.some(t=>t.value.raw.includes(`
|
|
132
|
+
`))}function Za(e){return e.extra?e.extra.raw:e.raw}let w0={"==":!0,"!=":!0,"===":!0,"!==":!0},eu={"*":!0,"/":!0,"%":!0},Ml={">>":!0,">>>":!0,"<<":!0},F0={};function jl(e){return F0[e]}[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach((e,t)=>{e.forEach(r=>{F0[r]=t})});let Vl=new WeakMap;function Ul(e){if(Vl.has(e))return Vl.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),Vl.set(e,t),t}let ql=new WeakMap;function $l(e){return e.value.trim()==="prettier-ignore"}function Wl(e){return e&&(e.comments&&e.comments.length>0&&e.comments.some(t=>$l(t)&&!t.unignore)||e.prettierIgnore)}function T0(e){return Wl(e.getValue())}var Re={classChildNeedsASIProtection:function(e){if(e){if(e.static||e.accessibility)return!1;if(!e.computed){let t=e.key&&e.key.name;if(t==="in"||t==="instanceof")return!0}switch(e.type){case"ClassProperty":case"FieldDefinition":case"TSAbstractClassProperty":return e.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{let t=e.value?e.value.async:e.async,r=e.value?e.value.generator:e.generator;return!t&&e.kind!=="get"&&e.kind!=="set"&&!(!e.computed&&!r)}case"TSIndexSignature":return!0;default:return!1}}},classPropMayCauseASIProblems:function(e){let t=e.getNode();if(t.type!=="ClassProperty"&&t.type!=="FieldDefinition")return!1;let r=t.key&&t.key.name;return!(r!=="static"&&r!=="get"&&r!=="set"||t.value||t.typeAnnotation)||void 0},getFunctionParameters:Ul,iterateFunctionParametersPath:function(e,t){let r=e.getValue(),n=0,i=s=>t(s,n++);r.this&&e.call(i,"this"),Array.isArray(r.parameters)?e.each(i,"parameters"):Array.isArray(r.params)&&e.each(i,"params"),r.rest&&e.call(i,"rest")},getCallArguments:function(e){if(ql.has(e))return ql.get(e);let t=e.type==="ImportExpression"?[e.source]:e.arguments;return ql.set(e,t),t},iterateCallArgumentsPath:function(e,t){e.getValue().type==="ImportExpression"?e.call(r=>t(r,0),"source"):e.each(t,"arguments")},hasRestParameter:function(e){if(e.rest)return!0;let t=Ul(e);return t.length>0&&Ja(t).type==="RestElement"},getLeftSidePathName:function(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side.")},getParentExportDeclaration:function(e){let t=e.getParentNode();return e.getName()==="declaration"&&b0(t)?t:null},getTypeScriptMappedTypeModifier:function(e,t){return e==="+"?"+"+t:e==="-"?"-"+t:t},hasDanglingComments:function(e){return e.comments&&e.comments.some(t=>!t.leading&&!t.trailing)},hasFlowAnnotationComment:function(e){return e&&Is(e[0])&&hv.test(e[0].value)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&e.trailingComments&&Is(e.trailingComments[0])&&fv.test(e.trailingComments[0].value)},hasLeadingComment:function(e){return e.comments&&e.comments.some(t=>t.leading)},hasLeadingOwnLineComment:Rl,hasNakedLeftSide:D0,hasNewlineBetweenOrAfterDecorators:function(e,t){return cv(t.originalText,Nl(e.decorators[0]),Xa(Ja(e.decorators)))||Bl(t.originalText,Xa(Ja(e.decorators)))},hasNgSideEffect:function(e){return Ya(e.getValue(),t=>{switch(t.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})},hasNode:Ya,hasPrettierIgnore:function(e){return T0(e)||function(t){let r=t.getValue(),n=t.getParentNode();if(!(n&&r&&Rs(r)&&Rs(n)))return!1;let i=null;for(let s=n.children.indexOf(r);s>0;s--){let l=n.children[s-1];if(l.type!=="JSXText"||Ll(l)){i=l;break}}return i&&i.type==="JSXExpressionContainer"&&i.expression.type==="JSXEmptyExpression"&&i.expression.comments&&i.expression.comments.some(s=>$l(s))}(e)},hasTrailingComment:function(e){return e.comments&&e.comments.some(t=>t.trailing)},hasTrailingLineComment:function(e){return e.comments&&e.comments.some(t=>t.trailing&&!Is(t))},hasIgnoreComment:T0,hasNodeIgnoreComment:Wl,identity:function(e){return e},isBinaryish:function(e){return gv.has(e.type)},isBlockComment:Is,isLineComment:function(e){return e.type==="Line"||e.type==="CommentLine"||e.type==="SingleLine"||e.type==="HashbangComment"||e.type==="HTMLOpen"||e.type==="HTMLClose"},isPrettierIgnoreComment:$l,isCallOrOptionalCallExpression:Qa,isEmptyJSXElement:function(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return Ka(t)&&!Ll(t)},isExportDeclaration:b0,isFlowAnnotationComment:function(e,t){let r=Nl(t),n=pv(e,Xa(t));return n!==!1&&e.slice(r,r+2)==="/*"&&e.slice(n,n+2)==="*/"},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(Ls(r)){if(t+=1,t>1)return!0}else if(Qa(r)){for(let n of r.arguments)if(Ls(n))return!0}return!1},isFunctionNotation:C0,isFunctionOrArrowExpression:Ls,isGetterOrSetter:v0,isJestEachTemplateLiteral:function(e,t){let r=/^[fx]?(describe|it|test)$/;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))},isJSXNode:Rs,isJSXWhitespaceExpression:function(e){return e.type==="JSXExpressionContainer"&&Ka(e.expression)&&e.expression.value===" "&&!e.expression.comments},isLastStatement:function(e){let t=e.getParentNode();if(!t)return!0;let r=e.getValue(),n=(t.body||t.consequent).filter(i=>i.type!=="EmptyStatement");return n[n.length-1]===r},isLiteral:Ka,isLongCurriedCallExpression:function(e){let t=e.getValue(),r=e.getParentNode();return Qa(t)&&Qa(r)&&r.callee===t&&t.arguments.length>r.arguments.length&&r.arguments.length>0},isSimpleCallArgument:function e(t,r){if(r>=2)return!1;let n=s=>e(s,r+1),i=t.type==="Literal"&&"regex"in t&&t.regex.pattern||t.type==="RegExpLiteral"&&t.pattern;return!(i&&i.length>5)&&(t.type==="Literal"||t.type==="BigIntLiteral"||t.type==="DecimalLiteral"||t.type==="BooleanLiteral"||t.type==="NullLiteral"||t.type==="NumericLiteral"||t.type==="RegExpLiteral"||t.type==="StringLiteral"||t.type==="Identifier"||t.type==="ThisExpression"||t.type==="Super"||t.type==="PrivateName"||t.type==="ArgumentPlaceholder"||t.type==="Import"||(t.type==="TemplateLiteral"?t.expressions.every(n):t.type==="ObjectExpression"?t.properties.every(s=>!s.computed&&(s.shorthand||s.value&&n(s.value))):t.type==="ArrayExpression"?t.elements.every(s=>s===null||n(s)):t.type==="ImportExpression"?n(t.source):t.type==="CallExpression"||t.type==="OptionalCallExpression"||t.type==="NewExpression"?e(t.callee,r)&&t.arguments.every(n):t.type==="MemberExpression"||t.type==="OptionalMemberExpression"?e(t.object,r)&&e(t.property,r):t.type!=="UnaryExpression"||t.operator!=="!"&&t.operator!=="-"?t.type==="TSNonNullExpression"&&e(t.expression,r):e(t.argument,r)))},isMeaningfulJSXText:Ll,isMemberExpressionChain:function e(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&(t.object.type==="Identifier"||e(t.object))},isMemberish:function(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="BindExpression"&&Boolean(e.object)},isNgForOf:function(e,t,r){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1&&r.body[0].type==="NGMicrosyntaxLet"&&r.body[0].value===null},isNumericLiteral:E0,isObjectType:function(e){return e.type==="ObjectTypeAnnotation"||e.type==="TSTypeLiteral"},isObjectTypePropertyAFunction:function(e){return!(e.type!=="ObjectTypeProperty"&&e.type!=="ObjectTypeInternalSlot"||e.value.type!=="FunctionTypeAnnotation"||e.static||C0(e))},isSimpleType:function(e){return!!e&&(!(e.type!=="GenericTypeAnnotation"&&e.type!=="TSTypeReference"||e.typeParameters)||!!mv.has(e.type))},isSimpleNumber:A0,isSimpleTemplateLiteral:function(e){let t="expressions";e.type==="TSTemplateLiteralType"&&(t="types");let r=e[t];return r.length!==0&&r.every(n=>{if(n.comments)return!1;if(n.type==="Identifier"||n.type==="ThisExpression")return!0;if(n.type==="MemberExpression"||n.type==="OptionalMemberExpression"){let i=n;for(;i.type==="MemberExpression"||i.type==="OptionalMemberExpression";)if(i.property.type!=="Identifier"&&i.property.type!=="Literal"&&i.property.type!=="StringLiteral"&&i.property.type!=="NumericLiteral"||(i=i.object,i.comments))return!1;return i.type==="Identifier"||i.type==="ThisExpression"}return!1})},isStringLiteral:Ol,isStringPropSafeToUnquote:function(e,t){return t.parser!=="json"&&Ol(e.key)&&Za(e.key).slice(1,-1)===e.key.value&&(lv(e.key.value)&&!((t.parser==="typescript"||t.parser==="babel-ts")&&e.type==="ClassProperty")||A0(e.key.value)&&String(Number(e.key.value))===e.key.value&&(t.parser==="babel"||t.parser==="espree"||t.parser==="meriyah"))},isTemplateOnItsOwnLine:function(e,t){return(e.type==="TemplateLiteral"&&S0(e)||e.type==="TaggedTemplateExpression"&&S0(e.quasi))&&!Bl(t,Nl(e),{backwards:!0})},isTestCall:function e(t,r){if(t.type!=="CallExpression")return!1;if(t.arguments.length===1){if(Il(t)&&r&&e(r))return Ls(t.arguments[0]);if((n=t).callee.type==="Identifier"&&/^(before|after)(Each|All)$/.test(n.callee.name)&&n.arguments.length===1)return Il(t.arguments[0])}else if((t.arguments.length===2||t.arguments.length===3)&&(t.callee.type==="Identifier"&&x0.test(t.callee.name)||function(i){return(i.callee.type==="MemberExpression"||i.callee.type==="OptionalMemberExpression")&&i.callee.object.type==="Identifier"&&i.callee.property.type==="Identifier"&&x0.test(i.callee.object.name)&&(i.callee.property.name==="only"||i.callee.property.name==="skip")}(t))&&(function(i){return i.type==="TemplateLiteral"}(t.arguments[0])||Ol(t.arguments[0])))return!(t.arguments[2]&&!E0(t.arguments[2]))&&((t.arguments.length===2?Ls(t.arguments[1]):function(i){return i.type==="FunctionExpression"||i.type==="ArrowFunctionExpression"&&i.body.type==="BlockStatement"}(t.arguments[1])&&Ul(t.arguments[1]).length<=1)||Il(t.arguments[1]));var n;return!1},isTheOnlyJSXElementInMarkdown:function(e,t){if(e.parentParser!=="markdown"&&e.parentParser!=="mdx")return!1;let r=t.getNode();if(!r.expression||!Rs(r.expression))return!1;let n=t.getParentNode();return n.type==="Program"&&n.body.length===1},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e){return!(e.type!=="TypeAnnotation"&&e.type!=="TSTypeAnnotation"||e.typeAnnotation.type!=="FunctionTypeAnnotation"||e.static||m0(e,e.typeAnnotation))},matchJsxWhitespaceRegex:yv,needsHardlineAfterDanglingComment:function(e){if(!e.comments)return!1;let t=Ja(e.comments.filter(r=>!r.leading&&!r.trailing));return t&&!Is(t)},rawText:Za,returnArgumentHasLeadingComment:function(e,t){if(Rl(e.originalText,t))return!0;if(D0(t)){let n,i=t;for(;n=(r=i).expressions?r.expressions[0]:r.left||r.test||r.callee||r.object||r.tag||r.argument||r.expression;)if(i=n,Rl(e.originalText,i))return!0}var r;return!1},shouldPrintComma:function(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")},isBitwiseOperator:function(e){return!!Ml[e]||e==="|"||e==="^"||e==="&"},shouldFlatten:function(e,t){return jl(t)===jl(e)&&e!=="**"&&(!w0[e]||!w0[t])&&!(t==="%"&&eu[e]||e==="%"&&eu[t])&&(t===e||!eu[t]||!eu[e])&&(!Ml[e]||!Ml[t])},startsWithNoLookaheadToken:function e(t,r){switch((t=function(n){for(;n.left;)n=n.left;return n}(t)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return r;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return e(t.object,r);case"TaggedTemplateExpression":return t.tag.type!=="FunctionExpression"&&e(t.tag,r);case"CallExpression":case"OptionalCallExpression":return t.callee.type!=="FunctionExpression"&&e(t.callee,r);case"ConditionalExpression":return e(t.test,r);case"UpdateExpression":return!t.prefix&&e(t.argument,r);case"BindExpression":return t.object&&e(t.object,r);case"SequenceExpression":return e(t.expressions[0],r);case"TSAsExpression":return e(t.expression,r);default:return!1}},getPrecedence:jl};let{getLast:bv,hasNewline:Ev,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Gl,getNextNonSpaceNonCommentCharacter:zr,hasNewlineInRange:vv,addLeadingComment:ct,addTrailingComment:vt,addDanglingComment:mr,getNextNonSpaceNonCommentCharacterIndex:Cv}=ve,{isBlockComment:k0,getFunctionParameters:tu,isPrettierIgnoreComment:Hl,isJSXNode:xv,hasFlowShorthandAnnotationComment:Av,hasFlowAnnotationComment:_0,hasIgnoreComment:Sv}=Re,{locStart:P0,locEnd:Kt}=Ft;function Ii(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?ct(r,t):mr(e,t)}function zl(e,t){e.type==="BlockStatement"?Ii(e,t):ct(e,t)}function Jl(e,t){let{precedingNode:r,enclosingNode:n,followingNode:i}=e;return!n||n.type!=="IfStatement"||!i?!1:zr(t,e,Kt)===")"?(vt(r,e),!0):r===n.consequent&&i===n.alternate?(r.type==="BlockStatement"?vt(r,e):mr(n,e),!0):i.type==="BlockStatement"?(Ii(i,e),!0):i.type==="IfStatement"?(zl(i.consequent,e),!0):n.consequent===i&&(ct(i,e),!0)}function Xl(e,t){let{precedingNode:r,enclosingNode:n,followingNode:i}=e;return!n||n.type!=="WhileStatement"||!i?!1:zr(t,e,Kt)===")"?(vt(r,e),!0):i.type==="BlockStatement"?(Ii(i,e),!0):n.body===i&&(ct(i,e),!0)}function B0(e){let{precedingNode:t,enclosingNode:r,followingNode:n}=e;return!(!r||r.type!=="TryStatement"&&r.type!=="CatchClause"||!n)&&(r.type==="CatchClause"&&t?(vt(t,e),!0):n.type==="BlockStatement"?(Ii(n,e),!0):n.type==="TryStatement"?(zl(n.finalizer,e),!0):n.type==="CatchClause"&&(zl(n.body,e),!0))}function N0(e){let{precedingNode:t,enclosingNode:r,followingNode:n}=e;if(r&&(r.type==="ClassDeclaration"||r.type==="ClassExpression"||r.type==="DeclareClass"||r.type==="DeclareInterface"||r.type==="InterfaceDeclaration"||r.type==="TSInterfaceDeclaration")){if(r.decorators&&r.decorators.length>0&&(!n||n.type!=="Decorator"))return vt(r.decorators[r.decorators.length-1],e),!0;if(r.body&&n===r.body)return Ii(r.body,e),!0;if(n){for(let i of["implements","extends","mixins"])if(r[i]&&n===r[i][0])return!t||t!==r.id&&t!==r.typeParameters&&t!==r.superClass?mr(r,e,i):vt(t,e),!0}}return!1}function O0(e,t){let{precedingNode:r,enclosingNode:n}=e;return(n&&r&&(n.type==="Property"||n.type==="TSDeclareMethod"||n.type==="TSAbstractMethodDefinition")&&r.type==="Identifier"&&n.key===r&&zr(t,r,Kt)!==":"||!(!r||!n||r.type!=="Decorator"||n.type!=="ClassMethod"&&n.type!=="ClassProperty"&&n.type!=="FieldDefinition"&&n.type!=="TSAbstractClassProperty"&&n.type!=="TSAbstractMethodDefinition"&&n.type!=="TSDeclareMethod"&&n.type!=="MethodDefinition"))&&(vt(r,e),!0)}function I0(e,t){let{precedingNode:r,enclosingNode:n,followingNode:i}=e;if(r&&r.type==="FunctionTypeParam"&&n&&n.type==="FunctionTypeAnnotation"&&i&&i.type!=="FunctionTypeParam"||r&&(r.type==="Identifier"||r.type==="AssignmentPattern")&&n&&j0(n)&&zr(t,e,Kt)===")")return vt(r,e),!0;if(n&&n.type==="FunctionDeclaration"&&i&&i.type==="BlockStatement"){let s=(()=>{let l=tu(n);if(l.length!==0)return Gl(t,Kt(bv(l)));let a=Gl(t,Kt(n.id));return a!==!1&&Gl(t,a+1)})();if(P0(e)>s)return Ii(i,e),!0}return!1}function L0(e){let{enclosingNode:t}=e;return!(!t||t.type!=="ImportSpecifier")&&(ct(t,e),!0)}function R0(e){let{enclosingNode:t}=e;return!(!t||t.type!=="LabeledStatement")&&(ct(t,e),!0)}function Yl(e,t,r){let{enclosingNode:n}=e;return t&&t.body&&t.body.length===0?(r?mr(t,e):ct(t,e),!0):!(!n||n.type!=="Program"||n.body.length!==0||!n.directives||n.directives.length!==0)&&(r?mr(n,e):ct(n,e),!0)}function M0(e){let{enclosingNode:t,followingNode:r}=e;if(Hl(e)&&t&&t.type==="TSMappedType"&&r&&r.type==="TSTypeParameter"&&r.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function j0(e){return e.type==="ArrowFunctionExpression"||e.type==="FunctionExpression"||e.type==="FunctionDeclaration"||e.type==="ObjectMethod"||e.type==="ClassMethod"||e.type==="TSDeclareFunction"||e.type==="TSCallSignatureDeclaration"||e.type==="TSConstructSignatureDeclaration"||e.type==="TSMethodSignature"||e.type==="TSConstructorType"||e.type==="TSFunctionType"||e.type==="TSDeclareMethod"}function V0(e){return k0(e)&&e.value[0]==="*"&&/@type\b/.test(e.value)}var yr={handleOwnLineComment:function(e,t,r,n,i){return M0(e)||I0(e,t)||function(s){let{enclosingNode:l,followingNode:a}=s;return l&&(l.type==="MemberExpression"||l.type==="OptionalMemberExpression")&&a&&a.type==="Identifier"?(ct(l,s),!0):!1}(e)||Jl(e,t)||Xl(e,t)||B0(e)||N0(e)||L0(e)||function(s){let{enclosingNode:l}=s;return l&&(l.type==="ForInStatement"||l.type==="ForOfStatement")?(ct(l,s),!0):!1}(e)||function(s){let{precedingNode:l,enclosingNode:a,followingNode:c}=s;return a&&(a.type==="UnionTypeAnnotation"||a.type==="TSUnionType")?(Hl(s)&&(c.prettierIgnore=!0,s.unignore=!0),!!l&&(vt(l,s),!0)):(c&&(c.type==="UnionTypeAnnotation"||c.type==="TSUnionType")&&Hl(s)&&(c.types[0].prettierIgnore=!0,s.unignore=!0),!1)}(e)||Yl(e,n,i)||function(s,l){let{precedingNode:a,enclosingNode:c}=s;return a&&a.type==="ImportSpecifier"&&c&&c.type==="ImportDeclaration"&&Ev(l,Kt(s))?(vt(a,s),!0):!1}(e,t)||function(s){let{enclosingNode:l}=s;return l&&l.type==="AssignmentPattern"?(ct(l,s),!0):!1}(e)||O0(e,t)||R0(e)},handleEndOfLineComment:function(e,t,r,n,i){return function(s){let{followingNode:l}=s;return l&&V0(s)?(ct(l,s),!0):!1}(e)||I0(e,t)||function(s,l){let{precedingNode:a,enclosingNode:c,followingNode:p}=s,u=a&&!vv(l,Kt(a),P0(s));return(!a||!u)&&c&&(c.type==="ConditionalExpression"||c.type==="TSConditionalType")&&p?(ct(p,s),!0):!1}(e,t)||L0(e)||Jl(e,t)||Xl(e,t)||B0(e)||N0(e)||R0(e)||function(s){let{precedingNode:l,enclosingNode:a}=s;return a&&(a.type==="CallExpression"||a.type==="OptionalCallExpression")&&l&&a.callee===l&&a.arguments.length>0?(ct(a.arguments[0],s),!0):!1}(e)||function(s){let{enclosingNode:l}=s;return l&&(l.type==="Property"||l.type==="ObjectProperty")?(ct(l,s),!0):!1}(e)||Yl(e,n,i)||function(s){let{enclosingNode:l}=s;return l&&l.type==="TypeAlias"?(ct(l,s),!0):!1}(e)||function(s){let{enclosingNode:l,followingNode:a}=s;return l&&(l.type==="VariableDeclarator"||l.type==="AssignmentExpression")&&a&&(a.type==="ObjectExpression"||a.type==="ArrayExpression"||a.type==="TemplateLiteral"||a.type==="TaggedTemplateExpression"||k0(s))?(ct(a,s),!0):!1}(e)},handleRemainingComment:function(e,t,r,n,i){return!!(M0(e)||Jl(e,t)||Xl(e,t)||function(s){let{precedingNode:l,enclosingNode:a}=s;return a&&(a.type==="ObjectProperty"||a.type==="Property")&&a.shorthand&&a.key===l&&a.value.type==="AssignmentPattern"?(vt(a.value.left,s),!0):!1}(e)||function(s,l){if(zr(l,s,Kt)!==")")return!1;let{enclosingNode:a}=s;return a&&(j0(a)&&tu(a).length===0||(a.type==="CallExpression"||a.type==="OptionalCallExpression"||a.type==="NewExpression")&&a.arguments.length===0)?(mr(a,s),!0):a&&a.type==="MethodDefinition"&&tu(a.value).length===0?(mr(a.value,s),!0):!1}(e,t)||O0(e,t)||Yl(e,n,i)||function(s,l){let{enclosingNode:a}=s;if(!a||a.type!=="ArrowFunctionExpression")return!1;let c=Cv(l,s,Kt);return c!==!1&&l.slice(c,c+2)==="=>"?(mr(a,s),!0):!1}(e,t)||function(s,l){if(zr(l,s,Kt)!=="(")return!1;let{precedingNode:a,enclosingNode:c}=s;return a&&c&&(c.type==="FunctionDeclaration"||c.type==="FunctionExpression"||c.type==="ClassMethod"||c.type==="MethodDefinition"||c.type==="ObjectMethod")?(vt(a,s),!0):!1}(e,t)||function(s){let{precedingNode:l,enclosingNode:a,followingNode:c}=s;return!a||a.type!=="TSMappedType"?!1:c&&c.type==="TSTypeParameter"&&c.name?(ct(c.name,s),!0):l&&l.type==="TSTypeParameter"&&l.constraint?(vt(l.constraint,s),!0):!1}(e)||function(s){let{enclosingNode:l}=s;return l&&(l.type==="ContinueStatement"||l.type==="BreakStatement")&&!l.label?(vt(l,s),!0):!1}(e)||function(s,l){let{enclosingNode:a,followingNode:c}=s;return!c&&a&&(a.type==="TSMethodSignature"||a.type==="TSDeclareFunction"||a.type==="TSAbstractMethodDefinition")&&zr(l,s,Kt)===";"?(vt(a,s),!0):!1}(e,t))},hasLeadingComment:function(e,t=()=>!0){return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some(r=>r.leading&&t(r))},isTypeCastComment:V0,getGapRegex:function(e){if(e&&e.type!=="BinaryExpression"&&e.type!=="LogicalExpression")return/^[\s&(|]*$/},getCommentChildNodes:function(e,t){if((t.parser==="typescript"||t.parser==="flow"||t.parser==="espree"||t.parser==="meriyah")&&e.type==="MethodDefinition"&&e.value&&e.value.type==="FunctionExpression"&&tu(e.value).length===0&&!e.value.returnType&&(!e.value.typeParameters||e.value.typeParameters.length===0)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]},willPrintOwnComments:function(e){let t=e.getValue(),r=e.getParentNode();return(t&&(xv(t)||Av(t)||r&&(r.type==="CallExpression"||r.type==="OptionalCallExpression")&&(_0(t.leadingComments)||_0(t.trailingComments)))||r&&(r.type==="JSXSpreadAttribute"||r.type==="JSXSpreadChild"||r.type==="UnionTypeAnnotation"||r.type==="TSUnionType"||(r.type==="ClassDeclaration"||r.type==="ClassExpression")&&r.superClass===t))&&(!Sv(e)||r.type==="UnionTypeAnnotation"||r.type==="TSUnionType")}};let{getStringWidth:U0,getIndentSize:wv}=ve,{builders:{concat:$n,join:q0,hardline:Kl,softline:nu,group:$0,indent:Ql,align:Fv,lineSuffixBoundary:ru,addAlignmentToDoc:Tv},printer:{printDocToString:W0},utils:{mapDoc:kv}}=ae,{isBinaryish:_v,isJestEachTemplateLiteral:Pv,isSimpleTemplateLiteral:Bv}=Re;function G0(e){return e.replace(/([\\`]|\${)/g,"\\$1")}var Ms={printTemplateLiteral:function(e,t,r){let n=e.getValue();if(n.type==="TemplateLiteral"&&Pv(n,e.getParentNode())){let c=function(p,u,d){let h=p.getNode(),b=h.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(b.length>1||b.some(m=>m.length!==0)){u.__inJestEach=!0;let m=p.map(d,"expressions");u.__inJestEach=!1;let x=[],F=m.map(N=>"${"+W0(N,Object.assign({},u,{printWidth:1/0,endOfLine:"lf"})).formatted+"}"),E=[{hasLineBreak:!1,cells:[]}];for(let N=1;N<h.quasis.length;N++){let R=E[E.length-1],U=F[N-1];R.cells.push(U),U.includes(`
|
|
133
133
|
`)&&(R.hasLineBreak=!0),h.quasis[N].value.raw.includes(`
|
|
134
|
-
`)&&E.push({hasLineBreak:!1,cells:[]})}let A=Math.max(b.length,...E.map(N=>N.cells.length)),P=Array.from({length:A}).fill(0),L=[{cells:b},...E.filter(N=>N.cells.length!==0)];for(let{cells:N}of L.filter(R=>!R.hasLineBreak))N.forEach((R,U)=>{P[U]=Math.max(P[U],
|
|
135
|
-
`)?
|
|
136
|
-
`),h=d.length,b=s[a],m=h>2&&d[0].trim()===""&&d[1].trim()==="",x=h>2&&d[h-1].trim()===""&&d[h-2].trim()==="",F=d.every(A=>/^\s*(?:#[^\n\r]*)?$/.test(A));if(!p&&/#[^\n\r]*$/.test(d[h-1]))return null;let E=null;E=F?
|
|
134
|
+
`)&&E.push({hasLineBreak:!1,cells:[]})}let A=Math.max(b.length,...E.map(N=>N.cells.length)),P=Array.from({length:A}).fill(0),L=[{cells:b},...E.filter(N=>N.cells.length!==0)];for(let{cells:N}of L.filter(R=>!R.hasLineBreak))N.forEach((R,U)=>{P[U]=Math.max(P[U],U0(R))});return x.push(ru,"`",Ql($n([Kl,q0(Kl,L.map(N=>q0(" | ",N.cells.map((R,U)=>N.hasLineBreak?R:R+" ".repeat(P[U]-U0(R))))))])),Kl,"`"),$n(x)}}(e,r,t);if(c)return c}let i="expressions";n.type==="TSTemplateLiteralType"&&(i="types");let s=[],l=e.map(t,i),a=Bv(n);return a&&(l=l.map(c=>W0(c,Object.assign({},r,{printWidth:1/0})).formatted)),s.push(ru,"`"),e.each(c=>{let p=c.getName();if(s.push(t(c)),p<l.length){let{tabWidth:u}=r,d=c.getValue(),h=wv(d.value.raw,u),b=l[p];if(!a){let x=n[i][p];(x.comments&&x.comments.length||x.type==="MemberExpression"||x.type==="OptionalMemberExpression"||x.type==="ConditionalExpression"||x.type==="SequenceExpression"||x.type==="TSAsExpression"||_v(x))&&(b=$n([Ql($n([nu,b])),nu]))}let m=h===0&&d.value.raw.endsWith(`
|
|
135
|
+
`)?Fv(-1/0,b):Tv(b,h,u);s.push($0($n(["${",m,ru,"}"])))}},"quasis"),s.push("`"),$n(s)},printTemplateExpressions:function(e,t){return e.map(r=>function(n,i){let s=n.getValue(),l=i(n);return s.comments&&s.comments.length&&(l=$0($n([Ql($n([nu,l])),nu]))),$n(["${",l,ru,"}"])}(r,t),"expressions")},escapeTemplateCharacters:function(e,t){return kv(e,r=>{if(!r.parts)return r;let n=r.parts.map(i=>typeof i=="string"?t?i.replace(/(\\*)`/g,"$1$1\\`"):G0(i):i);return Object.assign({},r,{parts:n})})},uncookTemplateElementValue:G0};let{builders:{indent:Nv,softline:H0,literalline:Ov,concat:Zl,dedentToRoot:Iv}}=ae,{escapeTemplateCharacters:Lv}=Ms;var Rv=function(e,t,r){let n=e.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(a,c)=>"\\".repeat(c.length/2)+"`"),i=function(a){let c=a.match(/^([^\S\n]*)\S/m);return c===null?"":c[1]}(n),s=i!=="";s&&(n=n.replace(new RegExp("^".concat(i),"gm"),""));let l=Lv(r(n,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return Zl(["`",s?Nv(Zl([H0,l])):Zl([Ov,Iv(l)]),H0,"`"])};let{builders:{indent:Mv,hardline:jv,softline:Vv,concat:z0},utils:{mapDoc:Uv,replaceNewlinesWithLiterallines:qv}}=ae,{printTemplateExpressions:$v}=Ms;var Wv=function(e,t,r){let n=e.getValue(),i=n.quasis.map(l=>l.value.raw),s=0;return function(l,a,c){if(a.quasis.length===1&&!a.quasis[0].value.raw.trim())return"``";let p=function(u,d){if(!d||!d.length)return u;let h=0,b=Uv(u,m=>{if(!m||!m.parts||!m.parts.length)return m;let{parts:x}=m,F=x.indexOf("@"),E=F+1;if(F>-1&&typeof x[E]=="string"&&x[E].startsWith("prettier-placeholder")){let P=x[F],L=x[E],N=x.slice(E+1);x=x.slice(0,F).concat([P+L]).concat(N)}let A=[];return x.forEach(P=>{typeof P=="string"&&P.includes("@prettier-placeholder")?P.split(/@prettier-placeholder-(\d+)-id/).forEach((L,N)=>{N%2!=0?(A.push(d[L]),h++):A.push(qv(L))}):A.push(P)}),Object.assign({},m,{parts:A})});return d.length===h?b:null}(l,c);if(!p)throw new Error("Couldn't insert all the expressions");return z0(["`",Mv(z0([jv,p])),Vv,"`"])}(r(i.reduce((l,a,c)=>c===0?a:l+"@prettier-placeholder-"+s+++"-id"+a,""),{parser:"scss"},{stripTrailingHardline:!0}),n,$v(e,t))};let{builders:{indent:Gv,join:J0,hardline:js,concat:ec}}=ae,{escapeTemplateCharacters:Hv,printTemplateExpressions:zv}=Ms;function Jv(e){let t=[],r=!1;return e.map(n=>n.trim()).forEach((n,i,s)=>{n!==""&&(s[i-1]===""&&r?t.push(ec([js,n])):t.push(n),r=!0)}),t.length===0?null:J0(js,t)}var Xv=function(e,t,r){let n=e.getValue(),i=n.quasis.length;if(i===1&&n.quasis[0].value.raw.trim()==="")return"``";let s=zv(e,t),l=[];for(let a=0;a<i;a++){let c=a===0,p=a===i-1,u=n.quasis[a].value.cooked,d=u.split(`
|
|
136
|
+
`),h=d.length,b=s[a],m=h>2&&d[0].trim()===""&&d[1].trim()==="",x=h>2&&d[h-1].trim()===""&&d[h-2].trim()==="",F=d.every(A=>/^\s*(?:#[^\n\r]*)?$/.test(A));if(!p&&/#[^\n\r]*$/.test(d[h-1]))return null;let E=null;E=F?Jv(d):r(u,{parser:"graphql"},{stripTrailingHardline:!0}),E?(E=Hv(E,!1),!c&&m&&l.push(""),l.push(E),!p&&x&&l.push("")):c||p||!m||l.push(""),b&&l.push(b)}return ec(["`",Gv(ec([js,J0(js,l)])),js,"`"])};let{builders:{indent:X0,line:Yv,hardline:Kv,concat:tc,group:iu},utils:{mapDoc:Qv}}=ae,{printTemplateExpressions:Zv,uncookTemplateElementValue:eC}=Ms,nc=0;var tC=function(e,t,r,n,{parser:i}){let s=e.getValue(),l=nc;nc=nc+1>>>0;let a=E=>"PRETTIER_HTML_PLACEHOLDER_".concat(E,"_").concat(l,"_IN_JS"),c=s.quasis.map((E,A,P)=>A===P.length-1?E.value.cooked:E.value.cooked+a(A)).join(""),p=Zv(e,t);if(p.length===0&&c.trim().length===0)return"``";let u=new RegExp(a("(\\d+)"),"g"),d=0,h=r(c,{parser:i,__onHtmlRoot(E){d=E.children.length}},{stripTrailingHardline:!0}),b=Qv(h,E=>{if(typeof E!="string")return E;let A=[],P=E.split(u);for(let L=0;L<P.length;L++){let N=P[L];if(L%2==0){N&&(N=eC(N),n.embeddedInHtml&&(N=N.replace(/<\/(script)\b/gi,"<\\/$1")),A.push(N));continue}let R=+N;A.push(p[R])}return tc(A)}),m=/^\s/.test(c)?" ":"",x=/\s$/.test(c)?" ":"",F=n.htmlWhitespaceSensitivity==="ignore"?Kv:m&&x?Yv:null;return iu(tc(F?["`",X0(tc([F,iu(b)])),F,"`"]:["`",m,d>1?X0(iu(b)):iu(b),x,"`"]))};let{isBlockComment:nC}=Re,{hasLeadingComment:rC}=yr;function iC(e){return function(t){let r=t.getValue(),n=t.getParentNode(),i=t.getParentNode(1);return i&&r.quasis&&n.type==="JSXExpressionContainer"&&i.type==="JSXElement"&&i.openingElement.name.name==="style"&&i.openingElement.attributes.some(s=>s.name.name==="jsx")||n&&n.type==="TaggedTemplateExpression"&&n.tag.type==="Identifier"&&n.tag.name==="css"||n&&n.type==="TaggedTemplateExpression"&&n.tag.type==="MemberExpression"&&n.tag.object.name==="css"&&(n.tag.property.name==="global"||n.tag.property.name==="resolve")}(e)||function(t){let r=t.getParentNode();if(!r||r.type!=="TaggedTemplateExpression")return!1;let{tag:n}=r;switch(n.type){case"MemberExpression":return su(n.object)||K0(n);case"CallExpression":return su(n.callee)||n.callee.type==="MemberExpression"&&(n.callee.object.type==="MemberExpression"&&(su(n.callee.object.object)||K0(n.callee.object))||n.callee.object.type==="CallExpression"&&su(n.callee.object.callee));case"Identifier":return n.name==="css";default:return!1}}(e)||function(t){let r=t.getParentNode(),n=t.getParentNode(1);return n&&r.type==="JSXExpressionContainer"&&n.type==="JSXAttribute"&&n.name.type==="JSXIdentifier"&&n.name.name==="css"}(e)||function(t){return t.match(r=>r.type==="TemplateLiteral",(r,n)=>r.type==="ArrayExpression"&&n==="elements",(r,n)=>(r.type==="Property"||r.type==="ObjectProperty")&&r.key.type==="Identifier"&&r.key.name==="styles"&&n==="value",...Y0)}(e)?"css":function(t){let r=t.getValue(),n=t.getParentNode();return Q0(r,"GraphQL")||n&&(n.type==="TaggedTemplateExpression"&&(n.tag.type==="MemberExpression"&&n.tag.object.name==="graphql"&&n.tag.property.name==="experimental"||n.tag.type==="Identifier"&&(n.tag.name==="gql"||n.tag.name==="graphql"))||n.type==="CallExpression"&&n.callee.type==="Identifier"&&n.callee.name==="graphql")}(e)?"graphql":function(t){return Q0(t.getValue(),"HTML")||t.match(r=>r.type==="TemplateLiteral",(r,n)=>r.type==="TaggedTemplateExpression"&&r.tag.type==="Identifier"&&r.tag.name==="html"&&n==="quasi")}(e)?"html":function(t){return t.match(r=>r.type==="TemplateLiteral",(r,n)=>(r.type==="Property"||r.type==="ObjectProperty")&&r.key.type==="Identifier"&&r.key.name==="template"&&n==="value",...Y0)}(e)?"angular":function(t){let r=t.getValue(),n=t.getParentNode();return n&&n.type==="TaggedTemplateExpression"&&r.quasis.length===1&&n.tag.type==="Identifier"&&(n.tag.name==="md"||n.tag.name==="markdown")}(e)?"markdown":void 0}let Y0=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function su(e){return e.type==="Identifier"&&e.name==="styled"}function K0(e){return/^[A-Z]/.test(e.object.name)&&e.property.name==="extend"}function Q0(e,t){return rC(e,r=>nC(r)&&r.value===" ".concat(t," "))}var sC=function(e,t,r,n){let i=e.getValue();if(i.type!=="TemplateLiteral"||function({quasis:l}){return l.some(({value:{cooked:a}})=>a===null)}(i))return;let s=iC(e);return s?s==="markdown"?Rv(e,t,r):s==="css"?Wv(e,t,r):s==="graphql"?Xv(e,t,r):s==="html"||s==="angular"?tC(e,t,r,n,{parser:s}):void 0:void 0};let{isBlockComment:aC}=Re,uC=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]);function Z0(e,t,r){if(e.type==="Program"&&delete t.sourceType,e.type!=="BigIntLiteral"&&e.type!=="BigIntLiteralTypeAnnotation"||t.value&&(t.value=t.value.toLowerCase()),e.type!=="BigIntLiteral"&&e.type!=="Literal"||t.bigint&&(t.bigint=t.bigint.toLowerCase()),e.type==="DecimalLiteral"&&(t.value=Number(t.value)),e.type==="EmptyStatement"||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;e.type!=="Property"&&e.type!=="ObjectProperty"&&e.type!=="MethodDefinition"&&e.type!=="ClassProperty"&&e.type!=="ClassMethod"&&e.type!=="FieldDefinition"&&e.type!=="TSDeclareMethod"&&e.type!=="TSPropertySignature"&&e.type!=="ObjectTypeProperty"||typeof e.key!="object"||!e.key||e.key.type!=="Literal"&&e.key.type!=="NumericLiteral"&&e.key.type!=="StringLiteral"&&e.key.type!=="Identifier"||delete t.key,e.type==="OptionalMemberExpression"&&e.optional===!1&&(t.type="MemberExpression",delete t.optional),e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(i=>i.name.name==="jsx")&&t.children.filter(i=>i.type==="JSXExpressionContainer"&&i.expression.type==="TemplateLiteral").map(i=>i.expression).reduce((i,s)=>i.concat(s.quasis),[]).forEach(i=>delete i.value),e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&t.value.expression.quasis.forEach(i=>delete i.value),e.type==="JSXAttribute"&&e.value&&e.value.type==="Literal"&&/["']|"|'/.test(e.value.value)&&(t.value.value=t.value.value.replace(/["']|"|'/g,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let i=e.expression.arguments[0].properties;t.expression.arguments[0].properties.forEach((s,l)=>{let a=null;switch(i[l].key.name){case"styles":s.value.type==="ArrayExpression"&&(a=s.value.elements[0]);break;case"template":s.value.type==="TemplateLiteral"&&(a=s.value)}a&&a.quasis.forEach(c=>delete c.value)})}e.type!=="TaggedTemplateExpression"||e.tag.type!=="MemberExpression"&&(e.tag.type!=="Identifier"||e.tag.name!=="gql"&&e.tag.name!=="graphql"&&e.tag.name!=="css"&&e.tag.name!=="md"&&e.tag.name!=="markdown"&&e.tag.name!=="html")&&e.tag.type!=="CallExpression"||t.quasi.quasis.forEach(i=>delete i.value),e.type==="TemplateLiteral"&&((e.leadingComments&&e.leadingComments.some(i=>aC(i)&&["GraphQL","HTML"].some(s=>i.value===" ".concat(s," ")))||r.type==="CallExpression"&&r.callee.name==="graphql")&&t.quasis.forEach(i=>delete i.value),e.leadingComments||t.quasis.forEach(i=>{i.value&&delete i.value.cooked})),e.type==="InterpreterDirective"&&(t.value=t.value.trimEnd())}Z0.ignoredProperties=uC;var oC=Z0;let ed=e=>{if(typeof e!="string")throw new TypeError("Expected a string");let t=e.match(/(?:\r?\n)/g)||[];if(t.length===0)return;let r=t.filter(n=>n===`\r
|
|
137
137
|
`).length;return r>t.length-r?`\r
|
|
138
138
|
`:`
|
|
139
|
-
`};var ed
|
|
140
|
-
`;var
|
|
141
|
-
`):"")+
|
|
139
|
+
`};var td=ed;td.graceful=e=>typeof e=="string"&&ed(e)||`
|
|
140
|
+
`;var lC=re(function(e,t){function r(){let x=Va;return r=function(){return x},x}function n(){let x=(F=td)&&F.__esModule?F:{default:F};var F;return n=function(){return x},x}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(x){let F=x.match(l);return F?F[0].trimLeft():""},t.strip=function(x){let F=x.match(l);return F&&F[0]?x.substring(F[0].length):x},t.parse=function(x){return b(x).pragmas},t.parseWithComments=b,t.print=function({comments:x="",pragmas:F={}}){let E=(0,n().default)(x)||r().EOL,A=" *",P=Object.keys(F),L=P.map(R=>m(R,F[R])).reduce((R,U)=>R.concat(U),[]).map(R=>" * "+R+E).join("");if(!x){if(P.length===0)return"";if(P.length===1&&!Array.isArray(F[P[0]])){let R=F[P[0]];return"".concat("/**"," ").concat(m(P[0],R)[0]).concat(" */")}}let N=x.split(E).map(R=>"".concat(A," ").concat(R)).join(E)+E;return"/**"+E+(x?N:"")+(x&&P.length?A+E:"")+L+" */"};let i=/\*\/$/,s=/^\/\*\*/,l=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,a=/(^|\s+)\/\/([^\r\n]*)/g,c=/^(\r?\n)+/,p=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,u=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,d=/(\r?\n|^) *\* ?/g,h=[];function b(x){let F=(0,n().default)(x)||r().EOL;x=x.replace(s,"").replace(i,"").replace(d,"$1");let E="";for(;E!==x;)E=x,x=x.replace(p,"".concat(F,"$1 $2").concat(F));x=x.replace(c,"").trimRight();let A=Object.create(null),P=x.replace(u,"").replace(c,"").trimRight(),L;for(;L=u.exec(x);){let N=L[2].replace(a,"");typeof A[L[1]]=="string"||Array.isArray(A[L[1]])?A[L[1]]=h.concat(A[L[1]],N):A[L[1]]=N}return{comments:P,pragmas:A}}function m(x,F){return h.concat(F).map(E=>"@".concat(x," ").concat(E).trim())}});let{parseWithComments:cC,strip:pC,extract:fC,print:hC}=lC,{getShebang:dC}=ve,{normalizeEndOfLine:gC}=Xo;function nd(e){let t=dC(e);t&&(e=e.slice(t.length+1));let r=fC(e),{pragmas:n,comments:i}=cC(r);return{shebang:t,text:e,pragmas:n,comments:i}}var rc={hasPragma:function(e){let t=Object.keys(nd(e).pragmas);return t.includes("prettier")||t.includes("format")},insertPragma:function(e){let{shebang:t,text:r,pragmas:n,comments:i}=nd(e),s=pC(r),l=hC({pragmas:Object.assign({format:""},n),comments:i.trimStart()});return(t?"".concat(t,`
|
|
141
|
+
`):"")+gC(l)+(s.startsWith(`
|
|
142
142
|
`)?`
|
|
143
143
|
`:`
|
|
144
144
|
|
|
145
|
-
`)+s}};let{getFunctionParameters:dC,getLeftSidePathName:gC,hasFlowShorthandAnnotationComment:mC,hasNakedLeftSide:yC,hasNode:nd,isBitwiseOperator:DC,startsWithNoLookaheadToken:rd,shouldFlatten:bC,getPrecedence:id}=Re;function rc(e,t){let r=e.getParentNode();if(!r)return!1;let n=e.getName(),i=e.getNode();if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function(s){switch(s.type){case"ObjectExpression":return!0;default:return!1}}(i)&&Vs(e))return!0;if(function(s){return s.type==="BlockStatement"||s.type==="BreakStatement"||s.type==="ClassBody"||s.type==="ClassDeclaration"||s.type==="ClassMethod"||s.type==="ClassProperty"||s.type==="FieldDefinition"||s.type==="ClassPrivateProperty"||s.type==="ContinueStatement"||s.type==="DebuggerStatement"||s.type==="DeclareClass"||s.type==="DeclareExportAllDeclaration"||s.type==="DeclareExportDeclaration"||s.type==="DeclareFunction"||s.type==="DeclareInterface"||s.type==="DeclareModule"||s.type==="DeclareModuleExports"||s.type==="DeclareVariable"||s.type==="DoWhileStatement"||s.type==="EnumDeclaration"||s.type==="ExportAllDeclaration"||s.type==="ExportDefaultDeclaration"||s.type==="ExportNamedDeclaration"||s.type==="ExpressionStatement"||s.type==="ForInStatement"||s.type==="ForOfStatement"||s.type==="ForStatement"||s.type==="FunctionDeclaration"||s.type==="IfStatement"||s.type==="ImportDeclaration"||s.type==="InterfaceDeclaration"||s.type==="LabeledStatement"||s.type==="MethodDefinition"||s.type==="ReturnStatement"||s.type==="SwitchStatement"||s.type==="ThrowStatement"||s.type==="TryStatement"||s.type==="TSDeclareFunction"||s.type==="TSEnumDeclaration"||s.type==="TSImportEqualsDeclaration"||s.type==="TSInterfaceDeclaration"||s.type==="TSModuleDeclaration"||s.type==="TSNamespaceExportDeclaration"||s.type==="TypeAlias"||s.type==="VariableDeclaration"||s.type==="WhileStatement"||s.type==="WithStatement"}(i))return!1;if(t.parser!=="flow"&&mC(e.getValue()))return!0;if(i.type==="Identifier")return!!(i.extra&&i.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(i.name));switch(r.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(i.type==="ArrowFunctionExpression"||i.type==="AssignmentExpression"||i.type==="AwaitExpression"||i.type==="BinaryExpression"||i.type==="ConditionalExpression"||i.type==="LogicalExpression"||i.type==="NewExpression"||i.type==="ObjectExpression"||i.type==="ParenthesizedExpression"||i.type==="SequenceExpression"||i.type==="TaggedTemplateExpression"||i.type==="UnaryExpression"||i.type==="UpdateExpression"||i.type==="YieldExpression"))return!0;break;case"ExportDefaultDeclaration":return sd(e,t)||i.type==="SequenceExpression";case"Decorator":if(n==="expression"){let s=!1,l=!1,a=i;for(;a;)switch(a.type){case"MemberExpression":l=!0,a=a.object;break;case"CallExpression":if(l||s)return!0;s=!0,a=a.callee;break;case"Identifier":return!1;default:return!0}return!0}break;case"ExpressionStatement":if(rd(i,!0))return!0;break;case"ArrowFunctionExpression":if(n==="body"&&i.type!=="SequenceExpression"&&rd(i,!1))return!0}switch(i.type){case"SpreadElement":case"SpreadProperty":return n==="object"&&r.type==="MemberExpression";case"UpdateExpression":if(r.type==="UnaryExpression")return i.prefix&&(i.operator==="++"&&r.operator==="+"||i.operator==="--"&&r.operator==="-");case"UnaryExpression":switch(r.type){case"UnaryExpression":return i.operator===r.operator&&(i.operator==="+"||i.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&r.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(r.type==="UpdateExpression"||r.type==="PipelineTopicExpression"&&i.operator==="|>"||i.operator==="in"&&function(s){let l=0,a=s.getValue();for(;a;){let c=s.getParentNode(l++);if(c&&c.type==="ForStatement"&&c.init===a)return!0;a=c}return!1}(e))return!0;if(i.operator==="|>"&&i.extra&&i.extra.parenthesized){let s=e.getParentNode(1);if(s.type==="BinaryExpression"&&s.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(r.type){case"ConditionalExpression":return i.type==="TSAsExpression";case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSAsExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":return n==="left"&&(i.type==="TSTypeAssertion"||i.type==="TSAsExpression");case"LogicalExpression":if(i.type==="LogicalExpression")return r.operator!==i.operator;case"BinaryExpression":{let{operator:s,type:l}=i;if(!s&&l!=="TSTypeAssertion")return!0;let a=id(s),c=r.operator,p=id(c);return p>a||n==="right"&&p===a||p===a&&!bC(c,s)||(p<a&&s==="%"?c==="+"||c==="-":!!DC(c))}default:return!1}case"SequenceExpression":switch(r.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return n!=="expression";case"ArrowFunctionExpression":return n!=="body";default:return!0}case"YieldExpression":if(r.type==="UnaryExpression"||r.type==="AwaitExpression"||r.type==="TSAsExpression"||r.type==="TSNonNullExpression")return!0;case"AwaitExpression":switch(r.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"BinaryExpression":return!(!i.argument&&r.operator==="|>");default:return!1}case"TSJSDocFunctionType":case"TSConditionalType":if(n==="extendsType"&&r.type==="TSConditionalType")return!0;case"TSFunctionType":case"TSConstructorType":if(n==="checkType"&&r.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if(r.type==="TSUnionType"||r.type==="TSIntersectionType")return!0;case"TSInferType":if(i.type==="TSInferType"&&r.type==="TSRestType")return!1;case"TSTypeOperator":return r.type==="TSArrayType"||r.type==="TSOptionalType"||r.type==="TSRestType"||n==="objectType"&&r.type==="TSIndexedAccessType"||r.type==="TSTypeOperator"||r.type==="TSTypeAnnotation"&&/^TSJSDoc/.test(e.getParentNode(1).type);case"ArrayTypeAnnotation":return r.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return r.type==="ArrayTypeAnnotation"||r.type==="NullableTypeAnnotation"||r.type==="IntersectionTypeAnnotation"||r.type==="UnionTypeAnnotation";case"NullableTypeAnnotation":return r.type==="ArrayTypeAnnotation";case"FunctionTypeAnnotation":{let s=r.type==="NullableTypeAnnotation"?e.getParentNode(1):r;return s.type==="UnionTypeAnnotation"||s.type==="IntersectionTypeAnnotation"||s.type==="ArrayTypeAnnotation"||s.type==="NullableTypeAnnotation"||r.type==="FunctionTypeParam"&&r.name===null&&dC(i).some(l=>l.typeAnnotation&&l.typeAnnotation.type==="NullableTypeAnnotation")}case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof i.value=="string"&&r.type==="ExpressionStatement"&&!r.directive){let s=e.getParentNode(1);return s.type==="Program"||s.type==="BlockStatement"}return n==="object"&&r.type==="MemberExpression"&&typeof i.value=="number";case"AssignmentExpression":{let s=e.getParentNode(1);return n==="body"&&r.type==="ArrowFunctionExpression"||(n!=="key"||r.type!=="ClassProperty"&&r.type!=="FieldDefinition"||!r.computed)&&(n!=="init"&&n!=="update"||r.type!=="ForStatement")&&(r.type==="ExpressionStatement"?i.left.type==="ObjectPattern":(n!=="key"||r.type!=="TSPropertySignature")&&r.type!=="AssignmentExpression"&&(r.type!=="SequenceExpression"||!s||s.type!=="ForStatement"||s.init!==r&&s.update!==r)&&(n!=="value"||r.type!=="Property"||!s||s.type!=="ObjectPattern"||!s.properties.includes(r))&&r.type!=="NGChainedExpression")}case"ConditionalExpression":switch(r.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(r.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(r.type){case"PipelineTopicExpression":return!(!i.extra||!i.extra.parenthesized);case"BinaryExpression":return r.operator!=="|>"||i.extra&&i.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":switch(r.type){case"NewExpression":return n==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":{let s=e.getParentNode(1);if(n==="object"&&r.type==="MemberExpression"||n==="callee"&&(r.type==="CallExpression"||r.type==="NewExpression")||r.type==="TSNonNullExpression"&&s.type==="MemberExpression"&&s.object===r)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(r.type==="BindExpression"||r.type==="NewExpression")){let s=i;for(;s;)switch(s.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":s=s.object;break;case"TaggedTemplateExpression":s=s.tag;break;case"TSNonNullExpression":s=s.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(r.type==="BindExpression"||r.type==="NewExpression")||n==="object"&&(r.type==="MemberExpression"||r.type==="OptionalMemberExpression");case"NGPipeExpression":return!(r.type==="NGRoot"||r.type==="NGMicrosyntaxExpression"||!(r.type!=="ObjectProperty"||i.extra&&i.extra.parenthesized)||r.type==="ArrayExpression"||(r.type==="CallExpression"||r.type==="OptionalCallExpression")&&r.arguments[n]===i||n==="right"&&r.type==="NGPipeExpression"||n==="property"&&r.type==="MemberExpression"||r.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&r.type==="BinaryExpression"&&r.operator==="<"||r.type!=="ArrayExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="AssignmentExpression"&&r.type!=="AssignmentPattern"&&r.type!=="BinaryExpression"&&r.type!=="CallExpression"&&r.type!=="NewExpression"&&r.type!=="ConditionalExpression"&&r.type!=="ExpressionStatement"&&r.type!=="JsExpressionRoot"&&r.type!=="JSXAttribute"&&r.type!=="JSXElement"&&r.type!=="JSXExpressionContainer"&&r.type!=="JSXFragment"&&r.type!=="LogicalExpression"&&r.type!=="ObjectProperty"&&r.type!=="OptionalCallExpression"&&r.type!=="Property"&&r.type!=="ReturnStatement"&&r.type!=="ThrowStatement"&&r.type!=="TypeCastExpression"&&r.type!=="VariableDeclarator"&&r.type!=="YieldExpression";case"TypeAnnotation":return n==="returnType"&&r.type==="ArrowFunctionExpression"&&function(s){return nd(s,l=>l.type==="ObjectTypeAnnotation"&&nd(l,a=>a.type==="FunctionTypeAnnotation"||void 0)||void 0)}(i)}return!1}function Vs(e){let t=e.getValue(),r=e.getParentNode(),n=e.getName();switch(r.type){case"NGPipeExpression":if(typeof n=="number"&&r.arguments[n]===t&&r.arguments.length-1===n)return e.callParent(Vs);break;case"ObjectProperty":if(n==="value"){let i=e.getParentNode(1);return i.properties[i.properties.length-1]===r}break;case"BinaryExpression":case"LogicalExpression":if(n==="right")return e.callParent(Vs);break;case"ConditionalExpression":if(n==="alternate")return e.callParent(Vs);break;case"UnaryExpression":if(r.prefix)return e.callParent(Vs)}return!1}function sd(e,t){let r=e.getValue(),n=e.getParentNode();return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!rc(e,t):!(!yC(r)||n.type!=="ExportDefaultDeclaration"&&rc(e,t))&&e.call(i=>sd(i,t),...gC(e,r))}var Li=rc;let{builders:{concat:au,join:ad,line:ud,group:EC,softline:od,indent:vC}}=ae;var CC={isVueEventBindingExpression:function e(t){switch(t.type){case"MemberExpression":switch(t.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return e(t.object)}return!1;case"Identifier":return!0;default:return!1}},printHtmlBinding:function(e,t,r){let n=e.getValue();if(t.__onHtmlBindingRoot&&e.getName()===null&&t.__onHtmlBindingRoot(n,t),n.type==="File")return t.__isVueForBindingLeft?e.call(i=>{let s=ad(au([",",ud]),i.map(r,"params")),{params:l}=i.getValue();return l.length===1?s:au(["(",vC(au([od,EC(s)])),od,")"])},"program","body",0):t.__isVueBindings?e.call(i=>ad(au([",",ud]),i.map(r,"params")),"program","body",0):void 0}},ld=function(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":return Object.assign({},e,{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker});default:return e}};let{builders:{concat:Ri,group:xC,indent:AC,join:cd,line:ic,hardline:SC}}=ae,{hasNewlineBetweenOrAfterDecorators:wC,getParentExportDeclaration:FC}=Re;var Cn={printOptionalToken:function(e){let t=e.getValue();return!t.optional||t.type==="Identifier"&&t===e.getParentNode().key?"":t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression"&&t.computed?"?.":"?"},printFunctionTypeParameters:function(e,t,r){let n=e.getValue();return n.typeArguments?e.call(r,"typeArguments"):n.typeParameters?e.call(r,"typeParameters"):""},printBindExpressionCallee:function(e,t,r){return Ri(["::",e.call(r,"callee")])},printTypeScriptModifiers:function(e,t,r){let n=e.getValue();return n.modifiers&&n.modifiers.length?Ri([cd(" ",e.map(r,"modifiers"))," "]):""},printDecorators:function(e,t,r){let n=e.getValue();return xC(Ri([cd(ic,e.map(r,"decorators")),wC(n,t)?SC:ic]))},printFlowDeclaration:function(e,t){let r=FC(e);return r?(qn.strictEqual(r.type,"DeclareExportDeclaration"),t):Ri(["declare ",t])},adjustClause:function(e,t,r){return e.type==="EmptyStatement"?";":e.type==="BlockStatement"||r?Ri([" ",t]):AC(Ri([ic,t]))}};let{builders:{concat:Qt,softline:pd,group:TC,indent:kC,join:sc,line:ac,ifBreak:_C,hardline:PC}}=ae,{printDanglingComments:BC}=Fe,{hasDanglingComments:NC,shouldPrintComma:OC,needsHardlineAfterDanglingComment:IC}=Re,{locStart:fd,hasSameLoc:LC}=Ft;function uc(e,t,r){let n=e.getValue();if(!n.source)return"";let i=[];return dd(n,t)||i.push(" from"),i.push(" ",e.call(r,"source")),Qt(i)}function hd(e,t,r){let n=e.getValue();if(dd(n,t))return"";let i=[" "];if(n.specifiers&&n.specifiers.length>0){let s=[],l=[];e.each(a=>{let c=e.getValue().type;if(c==="ExportNamespaceSpecifier"||c==="ExportDefaultSpecifier"||c==="ImportNamespaceSpecifier"||c==="ImportDefaultSpecifier")s.push(r(a));else{if(c!=="ExportSpecifier"&&c!=="ImportSpecifier")throw new Error("Unknown specifier type ".concat(JSON.stringify(c)));l.push(r(a))}},"specifiers"),i.push(sc(", ",s)),l.length!==0&&(s.length!==0&&i.push(", "),l.length>1||s.length>0||n.specifiers.some(a=>a.comments)?i.push(TC(Qt(["{",kC(Qt([t.bracketSpacing?ac:pd,sc(Qt([",",ac]),l)])),_C(OC(t)?",":""),t.bracketSpacing?ac:pd,"}"]))):i.push(Qt(["{",t.bracketSpacing?" ":"",Qt(l),t.bracketSpacing?" ":"","}"])))}else i.push("{}");return Qt(i)}function dd(e,t){let{type:r,importKind:n,source:i,specifiers:s}=e;return!(r!=="ImportDeclaration"||Array.isArray(s)&&s.length>0||n==="type")&&!/{\s*}/.test(t.originalText.slice(fd(e),fd(i)))}function oc(e,t,r){let n=e.getNode();return Array.isArray(n.assertions)&&n.assertions.length!==0?Qt([" assert {",t.bracketSpacing?" ":"",sc(", ",e.map(r,"assertions")),t.bracketSpacing?" ":"","}"]):""}var RC={printImportDeclaration:function(e,t,r){let n=e.getValue(),i=t.semi?";":"",s=[],{importKind:l}=n;return s.push("import"),l&&l!=="value"&&s.push(" ",l),s.push(hd(e,t,r),uc(e,t,r),oc(e,t,r)),s.push(i),Qt(s)},printExportDeclaration:function(e,t,r){let n=e.getValue(),i=[],{type:s,exportKind:l,declaration:a}=n;return s==="DeclareExportDeclaration"&&i.push("declare "),i.push("export"),(n.default||s==="ExportDefaultDeclaration")&&i.push(" default"),NC(n)&&(i.push(" ",BC(e,t,!0)),IC(n)&&i.push(PC)),a?i.push(" ",e.call(r,"declaration")):i.push(l==="type"?" type":"",hd(e,t,r),uc(e,t,r),oc(e,t,r)),function(c,p){if(!p.semi)return!1;let{type:u,declaration:d}=c,h=c.default||u==="ExportDefaultDeclaration";if(!d)return!0;let{type:b}=d;return!!(h&&b!=="ClassDeclaration"&&b!=="FunctionDeclaration"&&b!=="TSInterfaceDeclaration"&&b!=="DeclareClass"&&b!=="DeclareFunction"&&b!=="TSDeclareFunction"&&b!=="EnumDeclaration")}(n,t)&&i.push(";"),Qt(i)},printExportAllDeclaration:function(e,t,r){let n=e.getValue(),i=t.semi?";":"",s=[],{type:l,exportKind:a,exported:c}=n;return l==="DeclareExportAllDeclaration"&&(s.push("declare "),i=""),s.push("export"),a==="type"&&s.push(" type"),s.push(" *"),c&&s.push(" as ",e.call(r,"exported")),s.push(uc(e,t,r),oc(e,t,r),i),Qt(s)},printModuleSpecifier:function(e,t,r){let n=e.getNode(),{type:i,importKind:s}=n,l=[];i==="ImportSpecifier"&&s&&l.push(s," ");let a=i.startsWith("Import"),c=a?"imported":"local",p=a?"local":"exported",u="",d="";return i==="ExportNamespaceSpecifier"||i==="ImportNamespaceSpecifier"?u="*":n[c]&&(u=e.call(r,c)),!n[p]||n[c]&&LC(n[c],n[p])||(d=e.call(r,p)),l.push(u,u&&d?" as ":"",d),Qt(l)}};let{hasNewlineInRange:MC}=Ee,{isJSXNode:uu,isBlockComment:jC}=Re,{locStart:VC,locEnd:UC}=Ft,{builders:{concat:xn,line:gd,softline:ou,group:md,indent:lu,align:cu,ifBreak:pu,dedent:qC,breakParent:$C}}=ae;var yd=function(e,t,r,n){let i=e.getValue(),s=i[n.consequentNodePropertyName],l=i[n.alternateNodePropertyName],a=[],c=!1,p=e.getParentNode(),u=p.type===n.conditionalNodeType&&n.testNodePropertyNames.some(N=>p[N]===i),d,h,b=p.type===n.conditionalNodeType&&!u,m=0;do h=d||i,d=e.getParentNode(m),m++;while(d&&d.type===n.conditionalNodeType&&n.testNodePropertyNames.every(N=>d[N]!==h));let x=d||p,F=h;if(n.shouldCheckJsx&&(uu(i[n.testNodePropertyNames[0]])||uu(s)||uu(l)||function(N){return function(R){let U=[];return function z(q){q.type==="ConditionalExpression"?(z(q.test),z(q.consequent),z(q.alternate)):U.push(q)}(R),U}(N).some(uu)}(F))){c=!0,b=!0;let N=U=>xn([pu("(",""),lu(xn([ou,U])),ou,pu(")","")]),R=U=>U.type==="NullLiteral"||U.type==="Literal"&&U.value===null||U.type==="Identifier"&&U.name==="undefined";a.push(" ? ",R(s)?e.call(r,n.consequentNodePropertyName):N(e.call(r,n.consequentNodePropertyName))," : ",l.type===n.conditionalNodeType||R(l)?e.call(r,n.alternateNodePropertyName):N(e.call(r,n.alternateNodePropertyName)))}else{let N=xn([gd,"? ",s.type===n.conditionalNodeType?pu("","("):"",cu(2,e.call(r,n.consequentNodePropertyName)),s.type===n.conditionalNodeType?pu("",")"):"",gd,": ",l.type===n.conditionalNodeType?e.call(r,n.alternateNodePropertyName):cu(2,e.call(r,n.alternateNodePropertyName))]);a.push(p.type!==n.conditionalNodeType||p[n.alternateNodePropertyName]===i||u?N:t.useTabs?qC(lu(N)):cu(Math.max(0,t.tabWidth-2),N))}let E=ml([...n.testNodePropertyNames.map(N=>i[N].comments),s.comments,l.comments]).filter(Boolean).some(N=>jC(N)&&MC(t.originalText,VC(N),UC(N))),A=!c&&(p.type==="MemberExpression"||p.type==="OptionalMemberExpression"||p.type==="NGPipeExpression"&&p.left===i)&&!p.computed,P=(N=>p===x?md(N,{shouldBreak:E}):E?xn([N,$C]):N)(xn([].concat((L=xn(n.beforeParts()),p.type===n.conditionalNodeType&&p[n.alternateNodePropertyName]===i?cu(2,L):L),b?xn(a):lu(xn(a)),n.afterParts(A))));var L;return u?md(xn([lu(xn([ou,P])),ou])):P};let{getNextNonSpaceNonCommentCharacter:WC,isNextLineEmpty:GC}=Ee,{printDanglingComments:HC}=Fe,{builders:{concat:on,line:zC,hardline:Dd,softline:bd,group:JC,indent:XC,ifBreak:YC},utils:{removeLines:Ed}}=ae,{getFunctionParameters:vd,iterateFunctionParametersPath:KC,isSimpleType:QC,isTestCall:ZC,isTypeAnnotationAFunction:ex,isObjectType:Cd,isObjectTypePropertyAFunction:tx,hasRestParameter:nx,shouldPrintComma:rx}=Re,{locEnd:xd}=Ft,{printFunctionTypeParameters:ix}=Cn;function Ad(e){if(!e)return!1;let t=vd(e);if(t.length!==1)return!1;let[r]=t;return!r.comments&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&Cd(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&Cd(r.typeAnnotation)||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||r.right.type==="ObjectExpression"&&r.right.properties.length===0||r.right.type==="ArrayExpression"&&r.right.elements.length===0))}var lc={printFunctionParameters:function(e,t,r,n,i){let s=e.getValue(),l=vd(s),a=i?ix(e,r,t):"";if(l.length===0)return on([a,"(",HC(e,r,!0,m=>WC(r.originalText,m,xd)===")"),")"]);let c=e.getParentNode(),p=ZC(c),u=Ad(s),d=n&&!l.some(m=>m.comments),h=[];if(KC(e,(m,x)=>{let F=x===l.length-1;F&&s.rest&&h.push("..."),h.push(m.call(t)),F||(h.push(","),p||u||d?h.push(" "):GC(r.originalText,l[x],xd)?h.push(Dd,Dd):h.push(zC))}),d)return JC(on([Ed(a),"(",on(h.map(Ed)),")"]));let b=l.every(m=>!m.decorators);return u&&b||p?on([a,"(",on(h),")"]):(tx(c)||ex(c)||c.type==="TypeAlias"||c.type==="UnionTypeAnnotation"||c.type==="TSUnionType"||c.type==="IntersectionTypeAnnotation"||c.type==="FunctionTypeAnnotation"&&c.returnType===s)&&l.length===1&&l[0].name===null&&s.this!==l[0]&&l[0].typeAnnotation&&s.typeParameters===null&&QC(l[0].typeAnnotation)&&!s.rest?r.arrowParens==="always"?on(["(",on(h),")"]):on(h):on([a,"(",XC(on([bd,on(h)])),YC(!nx(s)&&rx(r,"all")?",":""),bd,")"])},shouldHugFunctionParameters:Ad};let{builders:{concat:Sd}}=ae,{isFlowAnnotationComment:sx,isSimpleType:ax,isObjectType:ux}=Re;var fu={printTypeAnnotation:function(e,t,r){let n=e.getValue();if(!n.typeAnnotation)return"";let i=e.getParentNode(),s=n.definite||i&&i.type==="VariableDeclarator"&&i.definite,l=i.type==="DeclareFunction"&&i.id===n;return sx(t.originalText,n.typeAnnotation)?Sd([" /*: ",e.call(r,"typeAnnotation")," */"]):Sd([l?"":s?"!: ":": ",e.call(r,"typeAnnotation")])},shouldHugType:function(e){if(ax(e)||ux(e))return!0;if(e.type==="UnionTypeAnnotation"||e.type==="TSUnionType"){let t=e.types.filter(n=>n.type==="VoidTypeAnnotation"||n.type==="TSVoidKeyword"||n.type==="NullLiteralTypeAnnotation"||n.type==="TSNullKeyword").length,r=e.types.some(n=>n.type==="ObjectTypeAnnotation"||n.type==="TSTypeLiteral"||n.type==="GenericTypeAnnotation"||n.type==="TSTypeReference");if(e.types.length-1===t&&r)return!0}return!1}};let{printDanglingComments:wd}=Fe,{builders:{concat:Mi,line:ox,softline:hu,group:cc,indent:lx,ifBreak:cx}}=ae,{getLast:px,isNextLineEmpty:fx}=Ee,{hasDanglingComments:hx,shouldPrintComma:dx}=Re,{locEnd:gx}=Ft,{printOptionalToken:mx}=Cn,{printTypeAnnotation:yx}=fu;function Fd(e,t,r,n){let i=[],s=[];return e.each(l=>{i.push(Mi(s)),i.push(cc(n(l))),s=[",",ox],l.getValue()&&fx(t.originalText,l.getValue(),gx)&&s.push(hu)},r),Mi(i)}var Dx={printArray:function(e,t,r){let n=e.getValue(),i=[],s=n.type==="TupleExpression"?"#[":"[";if(n.elements.length===0)hx(n)?i.push(cc(Mi([s,wd(e,t),hu,"]"]))):i.push(s,"]");else{let l=px(n.elements),a=!(l&&l.type==="RestElement"),c=a&&l===null,p=!t.__inJestEach&&n.elements.length>1&&n.elements.every((u,d,h)=>{let b=u&&u.type;if(b!=="ArrayExpression"&&b!=="ObjectExpression")return!1;let m=h[d+1];if(m&&b!==m.type)return!1;let x=b==="ArrayExpression"?"elements":"properties";return u[x]&&u[x].length>1});i.push(cc(Mi([s,lx(Mi([hu,Fd(e,t,"elements",r)])),c?",":"",cx(a&&!c&&dx(t)?",":""),wd(e,t,!0),hu,"]"]),{shouldBreak:p}))}return i.push(mx(e),yx(e,t,r)),Mi(i)},printArrayItems:Fd};let{printDanglingComments:Td}=Fe,{builders:{concat:Wn,line:du,softline:pc,group:fc,indent:bx,ifBreak:kd,hardline:_d}}=ae,{getLast:Ex,isNextLineEmpty:vx,hasNewlineInRange:Cx,hasNewline:xx}=Ee,{hasDanglingComments:Pd,shouldPrintComma:Ax,hasNodeIgnoreComment:Bd,isBlockComment:Sx}=Re,{locStart:Us,locEnd:Nd}=Ft,{printOptionalToken:Od}=Cn,{shouldHugFunctionParameters:Id}=lc,{printTypeAnnotation:hc,shouldHugType:wx}=fu;var Fx={printObject:function(e,t,r){let n=t.semi?";":"",i=e.getValue(),s;s=i.type==="TSTypeLiteral"?"members":i.type==="TSInterfaceBody"?"body":"properties";let l=i.type==="ObjectTypeAnnotation",a=[];l&&a.push("indexers","callProperties","internalSlots"),a.push(s);let c=a.map(N=>i[N][0]).sort((N,R)=>Us(N)-Us(R))[0],p=e.getParentNode(0),u=l&&p&&(p.type==="InterfaceDeclaration"||p.type==="DeclareInterface"||p.type==="DeclareClass")&&e.getName()==="body",d=i.type==="TSInterfaceBody"||u||i.type==="ObjectPattern"&&p.type!=="FunctionDeclaration"&&p.type!=="FunctionExpression"&&p.type!=="ArrowFunctionExpression"&&p.type!=="ObjectMethod"&&p.type!=="ClassMethod"&&p.type!=="ClassPrivateMethod"&&p.type!=="AssignmentPattern"&&p.type!=="CatchClause"&&i.properties.some(N=>N.value&&(N.value.type==="ObjectPattern"||N.value.type==="ArrayPattern"))||i.type!=="ObjectPattern"&&c&&Cx(t.originalText,Us(i),Us(c)),h=u?";":i.type==="TSInterfaceBody"||i.type==="TSTypeLiteral"?kd(n,";"):",",b=i.type==="RecordExpression"?"#{":i.exact?"{|":"{",m=i.exact?"|}":"}",x=[];a.forEach(N=>{e.each(R=>{let U=R.getValue();x.push({node:U,printed:r(R),loc:Us(U)})},N)});let F=[],E=x.sort((N,R)=>N.loc-R.loc).map(N=>{let R=Wn(F.concat(fc(N.printed)));return F=[h,du],N.node.type!=="TSPropertySignature"&&N.node.type!=="TSMethodSignature"&&N.node.type!=="TSConstructSignatureDeclaration"||!Bd(N.node)||F.shift(),vx(t.originalText,N.node,Nd)&&F.push(_d),R});if(i.inexact){let N;if(Pd(i)){let R=!i.comments.every(z=>Sx(z)),U=Td(e,t,!0);N=Wn([U,R||xx(t.originalText,Nd(i.comments[i.comments.length-1]))?_d:du,"..."])}else N="...";E.push(Wn(F.concat(N)))}let A=Ex(i[s]),P=!(i.inexact||A&&A.type==="RestElement"||A&&(A.type==="TSPropertySignature"||A.type==="TSCallSignatureDeclaration"||A.type==="TSMethodSignature"||A.type==="TSConstructSignatureDeclaration")&&Bd(A)),L;if(E.length===0){if(!Pd(i))return Wn([b,m,hc(e,t,r)]);L=fc(Wn([b,Td(e,t),pc,m,Od(e),hc(e,t,r)]))}else L=Wn([b,bx(Wn([t.bracketSpacing?du:pc,Wn(E)])),kd(P&&(h!==","||Ax(t))?h:""),Wn([t.bracketSpacing?du:pc,m]),Od(e),hc(e,t,r)]);return e.match(N=>N.type==="ObjectPattern"&&!N.decorators,(N,R,U)=>Id(N)&&(R==="params"||R==="parameters"||R==="this"||R==="rest")&&U===0)||e.match(wx,(N,R)=>R==="typeAnnotation",(N,R)=>R==="typeAnnotation",(N,R,U)=>Id(N)&&(R==="params"||R==="parameters"||R==="this"||R==="rest")&&U===0)?L:fc(L,{shouldBreak:d})}};let{printComments:Ld,printDanglingComments:Rd}=Fe,{builders:{concat:Te,line:dc,hardline:et,softline:Tt,group:Jr,indent:ji,conditionalGroup:Tx,fill:kx,ifBreak:gc,lineSuffixBoundary:Md},utils:{willBreak:jd,isLineNext:mc,isEmpty:yc}}=ae,{getLast:Vi,getPreferredQuote:_x}=Ee,{hasTrailingComment:Px,isEmptyJSXElement:Bx,isJSXWhitespaceExpression:Nx,isJSXNode:Vd,isMeaningfulJSXText:Dc,matchJsxWhitespaceRegex:Ud,rawText:bc,isLiteral:Ox,isCallOrOptionalCallExpression:Ix,isStringLiteral:Ec,isBinaryish:Lx,isBlockComment:qd}=Re,{willPrintOwnComments:Rx}=yr;function Mx(e,t,r){let n=e.getValue();if(n.type==="JSXElement"&&Bx(n))return Te([e.call(r,"openingElement"),e.call(r,"closingElement")]);let i=n.type==="JSXElement"?e.call(r,"openingElement"):e.call(r,"openingFragment"),s=n.type==="JSXElement"?e.call(r,"closingElement"):e.call(r,"closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return Te([i,Te(e.map(r,"children")),s]);n.children=n.children.map(P=>Nx(P)?{type:"JSXText",value:" ",raw:" "}:P);let l=n.children.filter(Vd).length>0,a=n.children.filter(P=>P.type==="JSXExpressionContainer").length>1,c=n.type==="JSXElement"&&n.openingElement.attributes.length>1,p=jd(i)||l||c||a,u=e.getParentNode().rootMarker==="mdx",d=t.singleQuote?"{' '}":'{" "}',h=u?Te([" "]):gc(Te([d,Tt])," "),b=n.openingElement&&n.openingElement.name&&n.openingElement.name.name==="fbt",m=function(P,L,N,R,U){let z=P.getValue(),q=[];return P.each((J,ee)=>{let he=J.getValue();if(Ox(he)){let Ae=bc(he);if(Dc(he)){let xe=Ae.split(Ud);if(xe[0]===""){if(q.push(""),xe.shift(),/\n/.test(xe[0])){let Ve=z.children[ee+1];q.push(Wd(U,xe[1],he,Ve))}else q.push(R);xe.shift()}let je;if(Vi(xe)===""&&(xe.pop(),je=xe.pop()),xe.length===0)return;if(xe.forEach((Ve,nn)=>{nn%2==1?q.push(dc):q.push(Ve)}),je!==void 0)if(/\n/.test(je)){let Ve=z.children[ee+1];q.push(Wd(U,Vi(q),he,Ve))}else q.push(R);else{let Ve=z.children[ee+1];q.push($d(U,Vi(q),he,Ve))}}else/\n/.test(Ae)?Ae.match(/\n/g).length>1&&(q.push(""),q.push(et)):(q.push(""),q.push(R))}else{let Ae=N(J);q.push(Ae);let xe=z.children[ee+1];if(xe&&Dc(xe)){let je=bc(xe).trim().split(Ud)[0];q.push($d(U,je,he,xe))}else q.push(et)}},"children"),q}(e,0,r,h,b),x=n.children.some(P=>Dc(P));for(let P=m.length-2;P>=0;P--){let L=m[P]===""&&m[P+1]==="",N=m[P]===et&&m[P+1]===""&&m[P+2]===et,R=(m[P]===Tt||m[P]===et)&&m[P+1]===""&&m[P+2]===h,U=m[P]===h&&m[P+1]===""&&(m[P+2]===Tt||m[P+2]===et),z=m[P]===h&&m[P+1]===""&&m[P+2]===h,q=m[P]===Tt&&m[P+1]===""&&m[P+2]===et||m[P]===et&&m[P+1]===""&&m[P+2]===Tt;N&&x||L||R||z||q?m.splice(P,2):U&&m.splice(P+1,2)}for(;m.length&&(mc(Vi(m))||yc(Vi(m)));)m.pop();for(;m.length&&(mc(m[0])||yc(m[0]))&&(mc(m[1])||yc(m[1]));)m.shift(),m.shift();let F=[];m.forEach((P,L)=>{if(P===h){if(L===1&&m[L-1]==="")return m.length===2?void F.push(d):void F.push(Te([d,et]));if(L===m.length-1||m[L-1]===""&&m[L-2]===et)return void F.push(d)}F.push(P),jd(P)&&(p=!0)});let E=x?kx(F):Jr(Te(F),{shouldBreak:!0});if(u)return E;let A=Jr(Te([i,ji(Te([et,E])),et,s]));return p?A:Tx([Jr(Te([i,Te(m),s])),A])}function $d(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||n&&n.type==="JSXElement"&&!n.closingElement?t.length===1?Tt:et:Tt}function Wd(e,t,r,n){return e?et:t.length===1?r.type==="JSXElement"&&!r.closingElement||n&&n.type==="JSXElement"&&!n.closingElement?et:Tt:et}function Gd(e,t,r){let n=e.getValue();return Te(["{",e.call(i=>{let s=Te(["...",r(i)]),l=i.getValue();return l.comments&&l.comments.length&&Rx(i)?Te([ji(Te([Tt,Ld(i,()=>s,t)])),Tt]):s},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"])}var jx={printJsxElement:function(e,t,r){let n=Ld(e,()=>Mx(e,t,r),t);return function(i,s,l){let a=i.getParentNode();if(!a||{ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[a.type])return s;let c=i.match(void 0,u=>u.type==="ArrowFunctionExpression",Ix,u=>u.type==="JSXExpressionContainer"),p=Li(i,l);return Jr(Te([p?"":gc("("),ji(Te([Tt,s])),Tt,p?"":gc(")")]),{shouldBreak:c})}(e,n,t)},printJsxAttribute:function(e,t,r){let n=e.getValue(),i=[];if(i.push(e.call(r,"name")),n.value){let s;if(Ec(n.value)){let l=bc(n.value).replace(/'/g,"'").replace(/"/g,'"'),a=_x(l,t.jsxSingleQuote?"'":'"'),c=a==="'"?"'":""";l=l.slice(1,-1).replace(new RegExp(a,"g"),c),s=Te([a,l,a])}else s=e.call(r,"value");i.push("=",s)}return Te(i)},printJsxOpeningElement:function(e,t,r){let n=e.getValue(),i=n.name&&n.name.comments&&n.name.comments.length>0||n.typeParameters&&n.typeParameters.comments&&n.typeParameters.comments.length>0;if(n.selfClosing&&!n.attributes.length&&!i)return Te(["<",e.call(r,"name"),e.call(r,"typeParameters")," />"]);if(n.attributes&&n.attributes.length===1&&n.attributes[0].value&&Ec(n.attributes[0].value)&&!n.attributes[0].value.value.includes(`
|
|
146
|
-
`)&&!i&&(!n.attributes[0].comments||!n.attributes[0].comments.length))return Jr(Te(["<",e.call(r,"name"),e.call(r,"typeParameters")," ",Te(e.map(r,"attributes")),n.selfClosing?" />":">"]));let s=n.attributes.length&&
|
|
147
|
-
`));return Jr(Te(["<",e.call(r,"name"),e.call(r,"typeParameters"),Te([ji(Te(e.map(c=>Te([dc,r(c)]),"attributes"))),n.selfClosing?dc:l?">":Tt]),n.selfClosing?"/>":l?"":">"]),{shouldBreak:a})},printJsxClosingElement:function(e,t,r){return Te(["</",e.call(r,"name"),">"])},printJsxOpeningClosingFragment:function(e,t){let r=e.getValue(),n=r.comments&&r.comments.length,i=n&&!r.comments.every(l=>qd(l)),s=r.type==="JSXOpeningFragment";return Te([s?"<":"</",ji(Te([i?et:n&&!s?" ":"",Rd(e,t,!0)])),i?et:"",">"])},printJsxExpressionContainer:function(e,t,r){let n=e.getValue(),i=e.getParentNode(0),s=n.expression.comments&&n.expression.comments.length>0,l=n.expression.type==="JSXEmptyExpression"||!s&&(n.expression.type==="ArrayExpression"||n.expression.type==="ObjectExpression"||n.expression.type==="ArrowFunctionExpression"||n.expression.type==="CallExpression"||n.expression.type==="OptionalCallExpression"||n.expression.type==="FunctionExpression"||n.expression.type==="TemplateLiteral"||n.expression.type==="TaggedTemplateExpression"||n.expression.type==="DoExpression"||Vd(i)&&(n.expression.type==="ConditionalExpression"||Lx(n.expression)));return Jr(Te(l?["{",e.call(r,"expression"),Md,"}"]:["{",ji(Te([Tt,e.call(r,"expression")])),Tt,Md,"}"]))},printJsxEmptyExpression:function(e,t){let r=e.getValue(),n=r.comments&&!r.comments.every(i=>qd(i));return Te([Rd(e,t,!n),n?et:""])},printJsxSpreadAttribute:Gd,printJsxSpreadChild:Gd};let{printDanglingComments:Vx}=Fe,{builders:{concat:qs,join:Hd,line:Ux,hardline:qx,softline:zd,group:$x,indent:Wx,ifBreak:Gx}}=ae,{hasDanglingComments:Hx,isTestCall:zx,isBlockComment:Jx,shouldPrintComma:Xx}=Re,{shouldHugType:vc}=fu,Cc=new WeakMap;function Jd(e){return Cc.has(e)||Cc.set(e,Symbol("typeParameters")),Cc.get(e)}function Yx(e,t){let r=e.getValue();if(!Hx(r))return"";let n=r.comments.every(s=>Jx(s)),i=Vx(e,t,n);return n?i:qs([i,qx])}var xc={printTypeParameters:function(e,t,r,n){let i=e.getValue();if(!i[n])return"";if(!Array.isArray(i[n]))return e.call(r,n);let s=e.getNode(2);return s!=null&&zx(s)||i[n].length===0||i[n].length===1&&(vc(i[n][0])||i[n][0].type==="GenericTypeAnnotation"&&vc(i[n][0].id)||i[n][0].type==="TSTypeReference"&&vc(i[n][0].typeName)||i[n][0].type==="NullableTypeAnnotation")?qs(["<",Hd(", ",e.map(r,n)),Yx(e,t),">"]):$x(qs(["<",Wx(qs([zd,Hd(qs([",",Ux]),e.map(r,n))])),Gx(t.parser!=="typescript"&&t.parser!=="babel-ts"&&Xx(t,"all")?",":""),zd,">"]),{id:Jd(i)})},getTypeParametersGroupId:Jd};let{printComments:Xd}=Fe,{printString:Kx,printNumber:Ac}=Ee,{builders:{concat:Yd}}=ae,{isNumericLiteral:Qx,isSimpleNumber:Zx,isStringLiteral:eA,isStringPropSafeToUnquote:Kd,rawText:Qd}=Re,gu=new WeakMap;var Zd={printPropertyKey:function(e,t,r){let n=e.getNode();if(n.computed)return Yd(["[",e.call(r,"key"),"]"]);let i=e.getParentNode(),{key:s}=n;if(n.type==="ClassPrivateProperty"&&s.type==="Identifier")return Yd(["#",e.call(r,"key")]);if(t.quoteProps==="consistent"&&!gu.has(i)){let l=(i.properties||i.body||i.members).some(a=>!a.computed&&a.key&&eA(a.key)&&!Kd(a,t));gu.set(i,l)}if((s.type==="Identifier"||Qx(s)&&Zx(Ac(Qd(s)))&&String(s.value)===Ac(Qd(s))&&t.parser!=="typescript"&&t.parser!=="babel-ts")&&(t.parser==="json"||t.quoteProps==="consistent"&&gu.get(i))){let l=Kx(JSON.stringify(s.type==="Identifier"?s.name:s.value.toString()),t);return e.call(a=>Xd(a,()=>l,t),"key")}return Kd(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!gu.get(i))?e.call(l=>Xd(l,()=>/^\d/.test(s.value)?Ac(s.value):s.value,t),"key"):e.call(r,"key")}};let{printDanglingComments:e1}=Fe,{getNextNonSpaceNonCommentCharacterIndex:tA}=Ee,{builders:{concat:Ge,line:nA,softline:$s,group:Gn,indent:mu,ifBreak:Ws,hardline:t1}}=ae,{getFunctionParameters:rA,hasDanglingComments:n1,hasLeadingOwnLineComment:iA,isFlowAnnotationComment:sA,isJSXNode:aA,isTemplateOnItsOwnLine:uA,shouldPrintComma:oA,startsWithNoLookaheadToken:lA,returnArgumentHasLeadingComment:cA,isBinaryish:pA,isLineComment:fA}=Re,{locEnd:hA}=Ft,{printFunctionParameters:Sc}=lc,{printPropertyKey:dA}=Zd,{printFunctionTypeParameters:r1}=Cn;function i1(e,t,r){let n=[r1(e,t,r),Gn(Ge([Sc(e,r,t),wc(e,r,t)]))];return e.getNode().body?n.push(" ",e.call(r,"body")):n.push(t.semi?";":""),Ge(n)}function s1(e,t){return t.arrowParens==="always"?!1:t.arrowParens==="avoid"?function(r){let n=rA(r);return!(n.length!==1||r.typeParameters||n1(r)||n[0].type!=="Identifier"||n[0].typeAnnotation||n[0].comments||n[0].optional||r.predicate||r.returnType)}(e.getValue()):!1}function wc(e,t,r){let n=e.getValue(),i=e.call(t,"returnType");if(n.returnType&&sA(r.originalText,n.returnType))return Ge([" /*: ",i," */"]);let s=[i];return n.returnType&&n.returnType.typeAnnotation&&s.unshift(": "),n.predicate&&s.push(n.returnType?" ":": ",e.call(t,"predicate")),Ge(s)}var Fc={printFunctionDeclaration:function(e,t,r,n){let i=e.getValue(),s=[];return i.async&&s.push("async "),i.generator?s.push("function* "):s.push("function "),i.id&&s.push(e.call(t,"id")),s.push(r1(e,r,t),Gn(Ge([Sc(e,t,r,n),wc(e,t,r)])),i.body?" ":"",e.call(t,"body")),Ge(s)},printArrowFunctionExpression:function(e,t,r,n){let i=e.getValue(),s=[];i.async&&s.push("async "),s1(e,t)?s.push(e.call(r,"params",0)):s.push(Gn(Ge([Sc(e,r,t,n&&(n.expandLastArg||n.expandFirstArg),!0),wc(e,r,t)])));let l=e1(e,t,!0,d=>{let h=tA(t.originalText,d,hA);return h!==!1&&t.originalText.slice(h,h+2)==="=>"});l&&s.push(" ",l),s.push(" =>");let a=e.call(d=>r(d,n),"body");if(!iA(t.originalText,i.body)&&(i.body.type==="ArrayExpression"||i.body.type==="ObjectExpression"||i.body.type==="BlockStatement"||aA(i.body)||uA(i.body,t.originalText)||i.body.type==="ArrowFunctionExpression"||i.body.type==="DoExpression"))return Gn(Ge([Ge(s)," ",a]));if(i.body.type==="SequenceExpression")return Gn(Ge([Ge(s),Gn(Ge([" (",mu(Ge([$s,a])),$s,")"]))]));let c=(n&&n.expandLastArg||e.getParentNode().type==="JSXExpressionContainer")&&!(i.comments&&i.comments.length),p=n&&n.expandLastArg&&oA(t,"all"),u=i.body.type==="ConditionalExpression"&&!lA(i.body,!1);return Gn(Ge([Ge(s),Gn(Ge([mu(Ge([nA,u?Ws("","("):"",a,u?Ws("",")"):""])),c?Ge([Ws(p?",":""),$s]):""]))]))},printMethod:function(e,t,r){let n=e.getNode(),{kind:i}=n,s=n.value||n,l=[];return i&&i!=="init"&&i!=="method"&&i!=="constructor"?(qn.ok(i==="get"||i==="set"),l.push(i," ")):s.async&&l.push("async "),s.generator&&l.push("*"),l.push(dA(e,t,r),n.optional||n.key.optional?"?":"",n===s?i1(e,t,r):e.call(a=>i1(a,t,r),"value")),Ge(l)},printReturnAndThrowArgument:function(e,t,r){let n=e.getValue(),i=t.semi?";":"",s=[];n.argument&&(cA(t,n.argument)?s.push(Ge([" (",mu(Ge([t1,e.call(r,"argument")])),t1,")"])):pA(n.argument)||n.argument.type==="SequenceExpression"?s.push(Gn(Ge([Ws(" ("," "),mu(Ge([$s,e.call(r,"argument")])),$s,Ws(")")]))):s.push(" ",e.call(r,"argument")));let l=Array.isArray(n.comments)&&n.comments[n.comments.length-1],a=l&&fA(l);return a&&s.push(i),n1(n)&&s.push(" ",e1(e,t,!0)),a||s.push(i),Ge(s)},shouldPrintParamsWithoutParens:s1};let{printComments:gA,printDanglingComments:mA}=Fe,{builders:{concat:ln,join:yA,line:Gs,hardline:DA,softline:a1,group:Hs,indent:yu,ifBreak:Tc}}=ae,{hasTrailingComment:bA,hasTrailingLineComment:EA}=Re,{getTypeParametersGroupId:vA}=xc,{printMethod:CA}=Fc,{printDecorators:xA}=Cn;function u1(e){return e.typeParameters&&!EA(e.typeParameters)&&!function(t){return["superClass","extends","mixins","implements"].filter(r=>!!t[r]).length>1}(e)}function kc(e,t,r,n){let i=e.getValue();if(!i[n]||i[n].length===0)return"";let s=mA(e,t,!0,({marker:l})=>l===n);return ln([u1(i)?Tc(" ",Gs,{groupId:vA(i.typeParameters)}):Gs,s,s&&DA,n,Hs(yu(ln([Gs,yA(ln([",",Gs]),e.map(r,n))])))])}function AA(e,t,r){let n=e.call(r,"superClass");return e.getParentNode().type==="AssignmentExpression"?Hs(Tc(ln(["(",yu(ln([a1,n])),a1,")"]),n)):n}var SA={printClass:function(e,t,r){let n=e.getValue(),i=[];n.abstract&&i.push("abstract "),i.push("class");let s=n.id&&bA(n.id)||n.superClass&&n.superClass.comments&&n.superClass.comments.length!==0||n.extends&&n.extends.length!==0||n.mixins&&n.mixins.length!==0||n.implements&&n.implements.length!==0,l=[],a=[];if(n.id&&l.push(" ",e.call(r,"id")),l.push(e.call(r,"typeParameters")),n.superClass){let c=ln(["extends ",AA(e,t,r),e.call(r,"superTypeParameters")]),p=e.call(u=>gA(u,()=>c,t),"superClass");s?a.push(Gs,Hs(p)):a.push(" ",p)}else a.push(kc(e,t,r,"extends"));if(a.push(kc(e,t,r,"mixins")),a.push(kc(e,t,r,"implements")),s){let c=ln(a);u1(n)?i.push(Hs(ln(l.concat(Tc(yu(c),c))))):i.push(Hs(yu(ln(l.concat(c)))))}else i.push(...l,...a);return i.push(" ",e.call(r,"body")),ln(i)},printClassMethod:function(e,t,r){let n=e.getValue(),i=[];return n.decorators&&n.decorators.length!==0&&i.push(xA(e,t,r)),n.accessibility&&i.push(n.accessibility+" "),n.static&&i.push("static "),(n.type==="TSAbstractMethodDefinition"||n.abstract)&&i.push("abstract "),i.push(CA(e,t,r)),ln(i)}};let{getLast:o1,getPenultimate:wA,isNextLineEmpty:FA}=Ee,{getFunctionParameters:l1,iterateFunctionParametersPath:TA,hasLeadingComment:kA,hasTrailingComment:_A,isFunctionCompositionArgs:PA,isJSXNode:BA,isLongCurriedCallExpression:NA,shouldPrintComma:OA,getCallArguments:IA,iterateCallArgumentsPath:c1}=Re,{locEnd:LA}=Ft,{builders:{concat:dt,line:Du,hardline:bu,softline:p1,group:Eu,indent:f1,conditionalGroup:RA,ifBreak:h1,breakParent:MA},utils:{willBreak:zs}}=ae;function vu(e){return e.type==="ObjectExpression"&&(e.properties.length>0||e.comments)||e.type==="ArrayExpression"&&(e.elements.length>0||e.comments)||e.type==="TSTypeAssertion"&&vu(e.expression)||e.type==="TSAsExpression"&&vu(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference")&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"||e.body.type==="ObjectExpression"||e.body.type==="ArrayExpression"||e.body.type==="CallExpression"||e.body.type==="OptionalCallExpression"||e.body.type==="ConditionalExpression"||BA(e.body))}var _c=function(e,t,r){let n=e.getValue(),i=n.type==="ImportExpression",s=IA(n);if(s.length===0)return dt(["(",Fe.printDanglingComments(e,t,!0),")"]);if(s.length===2&&s[0].type==="ArrowFunctionExpression"&&l1(s[0]).length===0&&s[0].body.type==="BlockStatement"&&s[1].type==="ArrayExpression"&&!s.some(F=>F.comments))return dt(["(",e.call(r,"arguments",0),", ",e.call(r,"arguments",1),")"]);let l=!1,a=!1,c=!1,p=s.length-1,u=[];c1(e,(F,E)=>{let A=F.getNode(),P=[r(F)];E===p||(FA(t.originalText,A,LA)?(E===0&&(c=!0),l=!0,P.push(",",bu,bu)):P.push(",",Du)),a=function(L,N){if(!L||L.type!=="ArrowFunctionExpression"||!L.body||L.body.type!=="BlockStatement"||l1(L).length===0)return!1;let R=!1;return TA(N,U=>{R=R||zs(dt([r(U)]))}),R}(A,F),u.push(dt(P))});let d=i||n.callee&&n.callee.type==="Import"||!OA(t,"all")?"":",";function h(){return Eu(dt(["(",f1(dt([Du,dt(u)])),d,Du,")"]),{shouldBreak:!0})}if(e.getParentNode().type!=="Decorator"&&PA(s))return h();let b=function(F){if(F.length!==2)return!1;let[E,A]=F;return!(E.comments&&E.comments.length||E.type!=="FunctionExpression"&&(E.type!=="ArrowFunctionExpression"||E.body.type!=="BlockStatement")||A.type==="FunctionExpression"||A.type==="ArrowFunctionExpression"||A.type==="ConditionalExpression"||vu(A))}(s),m=function(F){let E=o1(F),A=wA(F);return!kA(E)&&!_A(E)&&vu(E)&&(!A||A.type!==E.type)}(s);if(b||m){let F=(b?u.slice(1).some(zs):u.slice(0,-1).some(zs))||l||a,E=[];c1(e,(L,N)=>{b&&N===0&&(E=[dt([L.call(R=>r(R,{expandFirstArg:!0})),u.length>1?",":"",c?bu:Du,c?bu:""])].concat(u.slice(1))),m&&N===s.length-1&&(E=u.slice(0,-1).concat(L.call(R=>r(R,{expandLastArg:!0}))))});let A=u.some(zs),P=dt(["(",dt(E),")"]);return dt([A?MA:"",RA([A||n.typeArguments||n.typeParameters?h1(h(),P):P,dt(b?["(",Eu(E[0],{shouldBreak:!0}),dt(E.slice(1)),")"]:["(",dt(u.slice(0,-1)),Eu(o1(E),{shouldBreak:!0}),")"]),h()],{shouldBreak:F})])}let x=dt(["(",f1(dt([p1,dt(u)])),h1(d),p1,")"]);return NA(e)?x:Eu(x,{shouldBreak:u.some(zs)||l})};let{builders:{concat:Ui,softline:Pc,group:d1,indent:g1}}=ae,{isNumericLiteral:jA}=Re,{printOptionalToken:VA}=Cn;function Bc(e,t,r){let n=e.call(r,"property"),i=e.getValue(),s=VA(e);return i.computed?!i.property||jA(i.property)?Ui([s,"[",n,"]"]):d1(Ui([s,"[",g1(Ui([Pc,n])),Pc,"]"])):Ui([s,".",n])}var m1={printMemberExpression:function(e,t,r){let n=e.getValue(),i=e.getParentNode(),s,l=0;do s=e.getParentNode(l),l++;while(s&&(s.type==="MemberExpression"||s.type==="OptionalMemberExpression"||s.type==="TSNonNullExpression"));let a=s&&(s.type==="NewExpression"||s.type==="BindExpression"||s.type==="VariableDeclarator"&&s.id.type!=="Identifier"||s.type==="AssignmentExpression"&&s.left.type!=="Identifier")||n.computed||n.object.type==="Identifier"&&n.property.type==="Identifier"&&i.type!=="MemberExpression"&&i.type!=="OptionalMemberExpression";return Ui([e.call(r,"object"),a?Bc(e,t,r):d1(g1(Ui([Pc,Bc(e,t,r)])))])},printMemberLookup:Bc};let{getLast:Js,isNextLineEmpty:UA,isNextLineEmptyAfterIndex:qA,getNextNonSpaceNonCommentCharacterIndex:$A}=Ee,{hasLeadingComment:y1,hasTrailingComment:WA,isCallOrOptionalCallExpression:Dr,isFunctionOrArrowExpression:GA,isLongCurriedCallExpression:HA,isMemberish:Xs,isNumericLiteral:D1,isSimpleCallArgument:zA}=Re,{locEnd:b1}=Ft,{builders:{concat:An,join:JA,hardline:Cu,group:Nc,indent:XA,conditionalGroup:YA,breakParent:KA},utils:{willBreak:Oc}}=ae,{printMemberLookup:QA}=m1,{printOptionalToken:E1,printFunctionTypeParameters:v1,printBindExpressionCallee:ZA}=Cn;var e3=function(e,t,r){let n=e.getParentNode(),i=!n||n.type==="ExpressionStatement",s=[];function l(q){let{originalText:J}=t,ee=$A(J,q,b1);return J.charAt(ee)===")"?ee!==!1&&qA(J,ee+1):UA(J,q,b1)}function a(q){let J=q.getValue();Dr(J)&&(Xs(J.callee)||Dr(J.callee))?(s.unshift({node:J,printed:An([Fe.printComments(q,()=>An([E1(q),v1(q,t,r),_c(q,t,r)]),t),l(J)?Cu:""])}),q.call(ee=>a(ee),"callee")):Xs(J)?(s.unshift({node:J,needsParens:Li(q,t),printed:Fe.printComments(q,()=>J.type==="OptionalMemberExpression"||J.type==="MemberExpression"?QA(q,t,r):ZA(q,t,r),t)}),q.call(ee=>a(ee),"object")):J.type==="TSNonNullExpression"?(s.unshift({node:J,printed:Fe.printComments(q,()=>"!",t)}),q.call(ee=>a(ee),"expression")):s.unshift({node:J,printed:q.call(r)})}let c=e.getValue();s.unshift({node:c,printed:An([E1(e),v1(e,t,r),_c(e,t,r)])}),c.callee&&e.call(q=>a(q),"callee");let p=[],u=[s[0]],d=1;for(;d<s.length&&(s[d].node.type==="TSNonNullExpression"||Dr(s[d].node)||(s[d].node.type==="MemberExpression"||s[d].node.type==="OptionalMemberExpression")&&s[d].node.computed&&D1(s[d].node.property));++d)u.push(s[d]);if(!Dr(s[0].node))for(;d+1<s.length&&Xs(s[d].node)&&Xs(s[d+1].node);++d)u.push(s[d]);p.push(u),u=[];let h=!1;for(;d<s.length;++d){if(h&&Xs(s[d].node)){if(s[d].node.computed&&D1(s[d].node.property)){u.push(s[d]);continue}p.push(u),u=[],h=!1}(Dr(s[d].node)||s[d].node.type==="ImportExpression")&&(h=!0),u.push(s[d]),s[d].node.comments&&s[d].node.comments.some(q=>q.trailing)&&(p.push(u),u=[],h=!1)}function b(q){return/^[A-Z]|^[$_]+$/.test(q)}u.length>0&&p.push(u);let m=p.length>=2&&!p[1][0].node.comments&&function(q){let J=q[1].length&&q[1][0].node.computed;if(q[0].length===1){let he=q[0][0].node;return he.type==="ThisExpression"||he.type==="Identifier"&&(b(he.name)||i&&function(Ae){return Ae.length<=t.tabWidth}(he.name)||J)}let ee=Js(q[0]).node;return(ee.type==="MemberExpression"||ee.type==="OptionalMemberExpression")&&ee.property.type==="Identifier"&&(b(ee.property.name)||J)}(p);function x(q){let J=q.map(ee=>ee.printed);return q.length>0&&q[q.length-1].needsParens?An(["(",...J,")"]):An(J)}let F=p.map(x),E=An(F),A=m?3:2,P=ml(p),L=P.slice(1,-1).some(q=>y1(q.node))||P.slice(0,-1).some(q=>WA(q.node))||p[A]&&y1(p[A][0].node);if(p.length<=A&&!L)return HA(e)?E:Nc(E);let N=Js(p[m?1:0]).node,R=!Dr(N)&&l(N),U=An([x(p[0]),m?An(p.slice(1,2).map(x)):"",R?Cu:"",function(q){return q.length===0?"":XA(Nc(An([Cu,JA(Cu,q.map(x))])))}(p.slice(m?2:1))]),z=s.map(({node:q})=>q).filter(Dr);return L||z.length>2&&z.some(q=>!q.arguments.every(J=>zA(J,0)))||F.slice(0,-1).some(Oc)||function(){let q=Js(Js(p)).node,J=Js(F);return Dr(q)&&Oc(J)&&z.slice(0,-1).some(ee=>ee.arguments.some(GA))}()?Nc(U):An([Oc(E)||R?KA:"",YA([E,U])])};let{builders:{concat:Ic,join:t3,group:n3}}=ae,{getCallArguments:r3,hasFlowAnnotationComment:i3,isCallOrOptionalCallExpression:s3,isMemberish:a3,isTemplateOnItsOwnLine:u3,isTestCall:o3,iterateCallArgumentsPath:l3}=Re,{printOptionalToken:c3,printFunctionTypeParameters:C1}=Cn;var p3={printCallExpression:function(e,t,r){let n=e.getValue(),i=n.type==="NewExpression",s=n.type==="ImportExpression",l=c3(e),a=r3(n);if(a.length>0&&(!s&&!i&&n.callee.type==="Identifier"&&(n.callee.name==="require"||n.callee.name==="define")||a.length===1&&u3(a[0],t.originalText)||!i&&o3(n,e.getParentNode()))){let u=[];return l3(e,d=>{u.push(r(d))}),Ic([i?"new ":"",e.call(r,"callee"),l,C1(e,t,r),Ic(["(",t3(", ",u),")"])])}let c=(t.parser==="babel"||t.parser==="babel-flow")&&n.callee&&n.callee.type==="Identifier"&&i3(n.callee.trailingComments);if(c&&(n.callee.trailingComments[0].printed=!0),!s&&!i&&a3(n.callee)&&!e.call(u=>Li(u,t),"callee"))return e3(e,t,r);let p=Ic([i?"new ":"",s?"import":e.call(r,"callee"),l,c?"/*:: ".concat(n.callee.trailingComments[0].value.slice(2).trim()," */"):"",C1(e,t,r),_c(e,t,r)]);return s||s3(n.callee)?n3(p):p}};let{builders:{concat:Ys,join:f3,line:Lc,group:Rc,indent:Mc,ifBreak:x1}}=ae,{hasTrailingComment:h3,hasTrailingLineComment:d3,identity:g3}=Re,{getTypeParametersGroupId:m3}=xc,{printTypeScriptModifiers:y3}=Cn;var D3={printInterface:function(e,t,r){let n=e.getValue(),i=[];(n.type==="DeclareInterface"||n.declare)&&i.push("declare "),n.type==="TSInterfaceDeclaration"&&i.push(n.abstract?"abstract ":"",y3(e,t,r)),i.push("interface");let s=[],l=[];n.type!=="InterfaceTypeAnnotation"&&s.push(" ",e.call(r,"id"),e.call(r,"typeParameters"));let a=n.typeParameters&&!d3(n.typeParameters);if(n.extends&&n.extends.length!==0&&l.push(a?x1(" ",Lc,{groupId:m3(n.typeParameters)}):Lc,"extends ",(n.extends.length===1?g3:Mc)(f3(Ys([",",Lc]),e.map(r,"extends")))),n.id&&h3(n.id)||n.extends&&n.extends.length!==0){let c=Ys(l);a?i.push(Rc(Ys(s.concat(x1(Mc(c),c))))):i.push(Rc(Mc(Ys(s.concat(c)))))}else i.push(...s,...l);return i.push(" ",e.call(r,"body")),Rc(Ys(i))}};let{printComments:b3}=Fe,{getLast:E3}=Ee,{builders:{concat:Zt,join:v3,line:A1,softline:xu,group:Hn,indent:Au,align:C3,ifBreak:S1},utils:{normalizeParts:x3}}=ae,{hasLeadingOwnLineComment:A3,hasTrailingLineComment:S3,isBinaryish:w1,isJSXNode:F1,shouldFlatten:T1}=Re,w3=0;function k1(e,t,r,n,i){let s=[],l=e.getValue();if(w1(l)){T1(l.operator,l.left.operator)?s=s.concat(e.call(x=>k1(x,t,r,!0,i),"left")):s.push(Hn(e.call(t,"left")));let a=Su(l),c=(l.operator==="|>"||l.type==="NGPipeExpression"||l.operator==="|"&&r.parser==="__vue_expression")&&!A3(r.originalText,l.right),p=l.type==="NGPipeExpression"?"|":l.operator,u=l.type==="NGPipeExpression"&&l.arguments.length!==0?Hn(Au(Zt([xu,": ",v3(Zt([xu,":",S1(" ")]),e.map(t,"arguments").map(x=>C3(2,Hn(x))))]))):"",d=Zt(a?[p," ",e.call(t,"right"),u]:[c?A1:"",p,c?" ":A1,e.call(t,"right"),u]),h=e.getParentNode(),b=S3(l.left),m=b||!(i&&l.type==="LogicalExpression")&&h.type!==l.type&&l.left.type!==l.type&&l.right.type!==l.type;s.push(c?"":" ",m?Hn(d,{shouldBreak:b}):d),n&&l.comments&&(s=x3(b3(e,()=>Zt(s),r).parts))}else s.push(Hn(e.call(t)));return s}function Su(e){return e.type==="LogicalExpression"&&(e.right.type==="ObjectExpression"&&e.right.properties.length!==0||e.right.type==="ArrayExpression"&&e.right.elements.length!==0||!!F1(e.right))}var _1={printBinaryishExpression:function(e,t,r){let n=e.getValue(),i=e.getParentNode(),s=e.getParentNode(1),l=n!==i.body&&(i.type==="IfStatement"||i.type==="WhileStatement"||i.type==="SwitchStatement"||i.type==="DoWhileStatement"),a=k1(e,r,t,!1,l);if(l)return Zt(a);if((i.type==="CallExpression"||i.type==="OptionalCallExpression")&&i.callee===n||i.type==="UnaryExpression"||(i.type==="MemberExpression"||i.type==="OptionalMemberExpression")&&!i.computed)return Hn(Zt([Au(Zt([xu,Zt(a)])),xu]));let c=i.type==="ReturnStatement"||i.type==="ThrowStatement"||i.type==="JSXExpressionContainer"&&s.type==="JSXAttribute"||n.operator!=="|"&&i.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(i.type==="NGRoot"&&t.parser==="__ng_binding"||i.type==="NGMicrosyntaxExpression"&&s.type==="NGMicrosyntax"&&s.body.length===1)||n===i.body&&i.type==="ArrowFunctionExpression"||n!==i.body&&i.type==="ForStatement"||i.type==="ConditionalExpression"&&s.type!=="ReturnStatement"&&s.type!=="ThrowStatement"&&s.type!=="CallExpression"&&s.type!=="OptionalCallExpression"||i.type==="TemplateLiteral",p=i.type==="AssignmentExpression"||i.type==="VariableDeclarator"||i.type==="ClassProperty"||i.type==="FieldDefinition"||i.type==="TSAbstractClassProperty"||i.type==="ClassPrivateProperty"||i.type==="ObjectProperty"||i.type==="Property",u=w1(n.left)&&T1(n.operator,n.left.operator);if(c||Su(n)&&!u||!Su(n)&&p)return Hn(Zt(a));if(a.length===0)return"";let d=F1(n.right),h=a.findIndex(A=>typeof A!="string"&&A.type==="group"),b=a.slice(0,h===-1?1:h+1),m=Zt(a.slice(b.length,d?-1:void 0)),x=Symbol("logicalChain-"+ ++w3),F=Hn(Zt([...b,Au(m)]),{id:x});if(!d)return F;let E=E3(a);return Hn(Zt([F,S1(Au(E),E,{groupId:x})]))},shouldInlineLogicalExpression:Su};let{builders:{concat:Ks,line:P1,group:B1,indent:N1}}=ae,{hasLeadingOwnLineComment:F3,isBinaryish:O1,isMemberExpressionChain:T3,isStringLiteral:I1}=Re,{shouldInlineLogicalExpression:L1}=_1;function jc(e,t,r,n,i,s){if(!n)return t;let l=R1(e,n,i,s);return B1(Ks([t,r,l]))}function R1(e,t,r,n){return F3(n.originalText,t)?N1(Ks([P1,r])):O1(t)&&!L1(t)||t.type==="ConditionalExpression"&&O1(t.test)&&!L1(t.test)||t.type==="StringLiteralTypeAnnotation"||t.type==="ClassExpression"&&t.decorators&&t.decorators.length||(e.type==="Identifier"||I1(e)||e.type==="MemberExpression")&&(I1(t)||T3(t))&&n.parser!=="json"&&n.parser!=="json5"||t.type==="SequenceExpression"?B1(N1(Ks([P1,r]))):Ks([" ",r])}var k3={printVariableDeclarator:function(e,t,r){let n=e.getValue();return jc(n.id,e.call(r,"id")," =",n.init,n.init&&e.call(r,"init"),t)},printAssignmentExpression:function(e,t,r){let n=e.getValue();return jc(n.left,e.call(r,"left"),Ks([" ",n.operator]),n.right,e.call(r,"right"),t)},printAssignment:jc,printAssignmentRight:R1};let{isNextLineEmpty:_3}=Ee,{builders:{concat:P3,join:B3,hardline:M1}}=ae,{classChildNeedsASIProtection:N3,classPropMayCauseASIProblems:O3,getLeftSidePathName:I3,hasNakedLeftSide:L3,isJSXNode:R3,isLastStatement:M3,isTheOnlyJSXElementInMarkdown:j3}=Re,{locEnd:V3}=Ft,{shouldPrintParamsWithoutParens:U3}=Fc;function q3({path:e,index:t,bodyNode:r,isClass:n},i,s){let l=e.getValue();if(!l||l.type==="EmptyStatement")return;let a=s(e),c=i.originalText,p=[];if(i.semi||n||j3(i,e)||!function(u,d){return u.getNode().type!=="ExpressionStatement"?!1:u.call(h=>j1(h,d),"expression")}(e,i)?p.push(a):l.comments&&l.comments.some(u=>u.leading)?p.push(s(e,{needsSemi:!0})):p.push(";",a),!i.semi&&n){if(O3(e))p.push(";");else if(l.type==="ClassProperty"||l.type==="FieldDefinition"){let u=r.body[t+1];N3(u)&&p.push(";")}}return _3(c,l,V3)&&!M3(e)&&p.push(M1),P3(p)}function j1(e,t){let r=e.getValue();return!!(Li(e,t)||r.type==="ParenthesizedExpression"||r.type==="TypeCastExpression"||r.type==="ArrowFunctionExpression"&&!U3(e,t)||r.type==="ArrayExpression"||r.type==="ArrayPattern"||r.type==="UnaryExpression"&&r.prefix&&(r.operator==="+"||r.operator==="-")||r.type==="TemplateLiteral"||r.type==="TemplateElement"||R3(r)||r.type==="BindExpression"&&!r.object||r.type==="RegExpLiteral"||r.type==="Literal"&&r.pattern||r.type==="Literal"&&r.regex)||!!L3(r)&&e.call(n=>j1(n,t),...I3(e,r))}var V1={printStatementSequence:function(e,t,r){let n=e.getNode(),i=n.type==="ClassBody",s=e.map((l,a)=>q3({path:e,index:a,bodyNode:n,isClass:i},t,r)).filter(Boolean);return B3(M1,s)}};let{printDanglingComments:$3}=Fe,{isNextLineEmpty:W3}=Ee,{builders:{concat:wu,hardline:Fu,indent:U1}}=ae,{hasDanglingComments:G3}=Re,{locEnd:H3}=Ft,{printStatementSequence:z3}=V1;var J3={printBlock:function(e,t,r){let n=e.getValue(),i=[],s=t.semi?";":"",l=e.call(d=>z3(d,t,r),"body");n.type==="StaticBlock"&&i.push("static ");let a=n.body.some(d=>d.type!=="EmptyStatement"),c=n.directives&&n.directives.length>0,p=e.getParentNode(),u=e.getParentNode(1);return a||c||G3(n)||p.type!=="ArrowFunctionExpression"&&p.type!=="FunctionExpression"&&p.type!=="FunctionDeclaration"&&p.type!=="ObjectMethod"&&p.type!=="ClassMethod"&&p.type!=="ClassPrivateMethod"&&p.type!=="ForStatement"&&p.type!=="WhileStatement"&&p.type!=="DoWhileStatement"&&p.type!=="DoExpression"&&(p.type!=="CatchClause"||u.finalizer)&&p.type!=="TSModuleDeclaration"&&p.type!=="TSDeclareFunction"&&n.type!=="StaticBlock"?(i.push("{"),c&&e.each(d=>{i.push(U1(wu([Fu,r(d),s]))),W3(t.originalText,d.getValue(),H3)&&i.push(Fu)},"directives"),a&&i.push(U1(wu([Fu,l]))),i.push($3(e,t)),i.push(Fu,"}"),wu(i)):wu([...i,"{}"])}};let{hasNewline:X3}=Ee,{builders:{concat:q1,join:Y3,hardline:$1}}=ae,{isLineComment:K3,isBlockComment:Q3}=Re,{locStart:W1,locEnd:G1}=Ft;var Z3={printComment:function(e,t){let r=e.getValue();if(K3(r))return t.originalText.slice(W1(r),G1(r)).trimEnd();if(Q3(r)){if(function(s){let l="*".concat(s.value,"*").split(`
|
|
145
|
+
`)+s}};let{getFunctionParameters:mC,getLeftSidePathName:yC,hasFlowShorthandAnnotationComment:DC,hasNakedLeftSide:bC,hasNode:rd,isBitwiseOperator:EC,startsWithNoLookaheadToken:id,shouldFlatten:vC,getPrecedence:sd}=Re;function ic(e,t){let r=e.getParentNode();if(!r)return!1;let n=e.getName(),i=e.getNode();if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function(s){switch(s.type){case"ObjectExpression":return!0;default:return!1}}(i)&&Vs(e))return!0;if(function(s){return s.type==="BlockStatement"||s.type==="BreakStatement"||s.type==="ClassBody"||s.type==="ClassDeclaration"||s.type==="ClassMethod"||s.type==="ClassProperty"||s.type==="FieldDefinition"||s.type==="ClassPrivateProperty"||s.type==="ContinueStatement"||s.type==="DebuggerStatement"||s.type==="DeclareClass"||s.type==="DeclareExportAllDeclaration"||s.type==="DeclareExportDeclaration"||s.type==="DeclareFunction"||s.type==="DeclareInterface"||s.type==="DeclareModule"||s.type==="DeclareModuleExports"||s.type==="DeclareVariable"||s.type==="DoWhileStatement"||s.type==="EnumDeclaration"||s.type==="ExportAllDeclaration"||s.type==="ExportDefaultDeclaration"||s.type==="ExportNamedDeclaration"||s.type==="ExpressionStatement"||s.type==="ForInStatement"||s.type==="ForOfStatement"||s.type==="ForStatement"||s.type==="FunctionDeclaration"||s.type==="IfStatement"||s.type==="ImportDeclaration"||s.type==="InterfaceDeclaration"||s.type==="LabeledStatement"||s.type==="MethodDefinition"||s.type==="ReturnStatement"||s.type==="SwitchStatement"||s.type==="ThrowStatement"||s.type==="TryStatement"||s.type==="TSDeclareFunction"||s.type==="TSEnumDeclaration"||s.type==="TSImportEqualsDeclaration"||s.type==="TSInterfaceDeclaration"||s.type==="TSModuleDeclaration"||s.type==="TSNamespaceExportDeclaration"||s.type==="TypeAlias"||s.type==="VariableDeclaration"||s.type==="WhileStatement"||s.type==="WithStatement"}(i))return!1;if(t.parser!=="flow"&&DC(e.getValue()))return!0;if(i.type==="Identifier")return!!(i.extra&&i.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(i.name));switch(r.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(i.type==="ArrowFunctionExpression"||i.type==="AssignmentExpression"||i.type==="AwaitExpression"||i.type==="BinaryExpression"||i.type==="ConditionalExpression"||i.type==="LogicalExpression"||i.type==="NewExpression"||i.type==="ObjectExpression"||i.type==="ParenthesizedExpression"||i.type==="SequenceExpression"||i.type==="TaggedTemplateExpression"||i.type==="UnaryExpression"||i.type==="UpdateExpression"||i.type==="YieldExpression"))return!0;break;case"ExportDefaultDeclaration":return ad(e,t)||i.type==="SequenceExpression";case"Decorator":if(n==="expression"){let s=!1,l=!1,a=i;for(;a;)switch(a.type){case"MemberExpression":l=!0,a=a.object;break;case"CallExpression":if(l||s)return!0;s=!0,a=a.callee;break;case"Identifier":return!1;default:return!0}return!0}break;case"ExpressionStatement":if(id(i,!0))return!0;break;case"ArrowFunctionExpression":if(n==="body"&&i.type!=="SequenceExpression"&&id(i,!1))return!0}switch(i.type){case"SpreadElement":case"SpreadProperty":return n==="object"&&r.type==="MemberExpression";case"UpdateExpression":if(r.type==="UnaryExpression")return i.prefix&&(i.operator==="++"&&r.operator==="+"||i.operator==="--"&&r.operator==="-");case"UnaryExpression":switch(r.type){case"UnaryExpression":return i.operator===r.operator&&(i.operator==="+"||i.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&r.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(r.type==="UpdateExpression"||r.type==="PipelineTopicExpression"&&i.operator==="|>"||i.operator==="in"&&function(s){let l=0,a=s.getValue();for(;a;){let c=s.getParentNode(l++);if(c&&c.type==="ForStatement"&&c.init===a)return!0;a=c}return!1}(e))return!0;if(i.operator==="|>"&&i.extra&&i.extra.parenthesized){let s=e.getParentNode(1);if(s.type==="BinaryExpression"&&s.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(r.type){case"ConditionalExpression":return i.type==="TSAsExpression";case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSAsExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":return n==="left"&&(i.type==="TSTypeAssertion"||i.type==="TSAsExpression");case"LogicalExpression":if(i.type==="LogicalExpression")return r.operator!==i.operator;case"BinaryExpression":{let{operator:s,type:l}=i;if(!s&&l!=="TSTypeAssertion")return!0;let a=sd(s),c=r.operator,p=sd(c);return p>a||n==="right"&&p===a||p===a&&!vC(c,s)||(p<a&&s==="%"?c==="+"||c==="-":!!EC(c))}default:return!1}case"SequenceExpression":switch(r.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return n!=="expression";case"ArrowFunctionExpression":return n!=="body";default:return!0}case"YieldExpression":if(r.type==="UnaryExpression"||r.type==="AwaitExpression"||r.type==="TSAsExpression"||r.type==="TSNonNullExpression")return!0;case"AwaitExpression":switch(r.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"BinaryExpression":return!(!i.argument&&r.operator==="|>");default:return!1}case"TSJSDocFunctionType":case"TSConditionalType":if(n==="extendsType"&&r.type==="TSConditionalType")return!0;case"TSFunctionType":case"TSConstructorType":if(n==="checkType"&&r.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if(r.type==="TSUnionType"||r.type==="TSIntersectionType")return!0;case"TSInferType":if(i.type==="TSInferType"&&r.type==="TSRestType")return!1;case"TSTypeOperator":return r.type==="TSArrayType"||r.type==="TSOptionalType"||r.type==="TSRestType"||n==="objectType"&&r.type==="TSIndexedAccessType"||r.type==="TSTypeOperator"||r.type==="TSTypeAnnotation"&&/^TSJSDoc/.test(e.getParentNode(1).type);case"ArrayTypeAnnotation":return r.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return r.type==="ArrayTypeAnnotation"||r.type==="NullableTypeAnnotation"||r.type==="IntersectionTypeAnnotation"||r.type==="UnionTypeAnnotation";case"NullableTypeAnnotation":return r.type==="ArrayTypeAnnotation";case"FunctionTypeAnnotation":{let s=r.type==="NullableTypeAnnotation"?e.getParentNode(1):r;return s.type==="UnionTypeAnnotation"||s.type==="IntersectionTypeAnnotation"||s.type==="ArrayTypeAnnotation"||s.type==="NullableTypeAnnotation"||r.type==="FunctionTypeParam"&&r.name===null&&mC(i).some(l=>l.typeAnnotation&&l.typeAnnotation.type==="NullableTypeAnnotation")}case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof i.value=="string"&&r.type==="ExpressionStatement"&&!r.directive){let s=e.getParentNode(1);return s.type==="Program"||s.type==="BlockStatement"}return n==="object"&&r.type==="MemberExpression"&&typeof i.value=="number";case"AssignmentExpression":{let s=e.getParentNode(1);return n==="body"&&r.type==="ArrowFunctionExpression"||(n!=="key"||r.type!=="ClassProperty"&&r.type!=="FieldDefinition"||!r.computed)&&(n!=="init"&&n!=="update"||r.type!=="ForStatement")&&(r.type==="ExpressionStatement"?i.left.type==="ObjectPattern":(n!=="key"||r.type!=="TSPropertySignature")&&r.type!=="AssignmentExpression"&&(r.type!=="SequenceExpression"||!s||s.type!=="ForStatement"||s.init!==r&&s.update!==r)&&(n!=="value"||r.type!=="Property"||!s||s.type!=="ObjectPattern"||!s.properties.includes(r))&&r.type!=="NGChainedExpression")}case"ConditionalExpression":switch(r.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(r.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(r.type){case"PipelineTopicExpression":return!(!i.extra||!i.extra.parenthesized);case"BinaryExpression":return r.operator!=="|>"||i.extra&&i.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":switch(r.type){case"NewExpression":return n==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":{let s=e.getParentNode(1);if(n==="object"&&r.type==="MemberExpression"||n==="callee"&&(r.type==="CallExpression"||r.type==="NewExpression")||r.type==="TSNonNullExpression"&&s.type==="MemberExpression"&&s.object===r)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(r.type==="BindExpression"||r.type==="NewExpression")){let s=i;for(;s;)switch(s.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":s=s.object;break;case"TaggedTemplateExpression":s=s.tag;break;case"TSNonNullExpression":s=s.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(r.type==="BindExpression"||r.type==="NewExpression")||n==="object"&&(r.type==="MemberExpression"||r.type==="OptionalMemberExpression");case"NGPipeExpression":return!(r.type==="NGRoot"||r.type==="NGMicrosyntaxExpression"||!(r.type!=="ObjectProperty"||i.extra&&i.extra.parenthesized)||r.type==="ArrayExpression"||(r.type==="CallExpression"||r.type==="OptionalCallExpression")&&r.arguments[n]===i||n==="right"&&r.type==="NGPipeExpression"||n==="property"&&r.type==="MemberExpression"||r.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&r.type==="BinaryExpression"&&r.operator==="<"||r.type!=="ArrayExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="AssignmentExpression"&&r.type!=="AssignmentPattern"&&r.type!=="BinaryExpression"&&r.type!=="CallExpression"&&r.type!=="NewExpression"&&r.type!=="ConditionalExpression"&&r.type!=="ExpressionStatement"&&r.type!=="JsExpressionRoot"&&r.type!=="JSXAttribute"&&r.type!=="JSXElement"&&r.type!=="JSXExpressionContainer"&&r.type!=="JSXFragment"&&r.type!=="LogicalExpression"&&r.type!=="ObjectProperty"&&r.type!=="OptionalCallExpression"&&r.type!=="Property"&&r.type!=="ReturnStatement"&&r.type!=="ThrowStatement"&&r.type!=="TypeCastExpression"&&r.type!=="VariableDeclarator"&&r.type!=="YieldExpression";case"TypeAnnotation":return n==="returnType"&&r.type==="ArrowFunctionExpression"&&function(s){return rd(s,l=>l.type==="ObjectTypeAnnotation"&&rd(l,a=>a.type==="FunctionTypeAnnotation"||void 0)||void 0)}(i)}return!1}function Vs(e){let t=e.getValue(),r=e.getParentNode(),n=e.getName();switch(r.type){case"NGPipeExpression":if(typeof n=="number"&&r.arguments[n]===t&&r.arguments.length-1===n)return e.callParent(Vs);break;case"ObjectProperty":if(n==="value"){let i=e.getParentNode(1);return i.properties[i.properties.length-1]===r}break;case"BinaryExpression":case"LogicalExpression":if(n==="right")return e.callParent(Vs);break;case"ConditionalExpression":if(n==="alternate")return e.callParent(Vs);break;case"UnaryExpression":if(r.prefix)return e.callParent(Vs)}return!1}function ad(e,t){let r=e.getValue(),n=e.getParentNode();return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!ic(e,t):!(!bC(r)||n.type!=="ExportDefaultDeclaration"&&ic(e,t))&&e.call(i=>ad(i,t),...yC(e,r))}var Li=ic;let{builders:{concat:au,join:ud,line:od,group:CC,softline:ld,indent:xC}}=ae;var AC={isVueEventBindingExpression:function e(t){switch(t.type){case"MemberExpression":switch(t.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return e(t.object)}return!1;case"Identifier":return!0;default:return!1}},printHtmlBinding:function(e,t,r){let n=e.getValue();if(t.__onHtmlBindingRoot&&e.getName()===null&&t.__onHtmlBindingRoot(n,t),n.type==="File")return t.__isVueForBindingLeft?e.call(i=>{let s=ud(au([",",od]),i.map(r,"params")),{params:l}=i.getValue();return l.length===1?s:au(["(",xC(au([ld,CC(s)])),ld,")"])},"program","body",0):t.__isVueBindings?e.call(i=>ud(au([",",od]),i.map(r,"params")),"program","body",0):void 0}},cd=function(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":return Object.assign({},e,{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker});default:return e}};let{builders:{concat:Ri,group:SC,indent:wC,join:pd,line:sc,hardline:FC}}=ae,{hasNewlineBetweenOrAfterDecorators:TC,getParentExportDeclaration:kC}=Re;var Cn={printOptionalToken:function(e){let t=e.getValue();return!t.optional||t.type==="Identifier"&&t===e.getParentNode().key?"":t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression"&&t.computed?"?.":"?"},printFunctionTypeParameters:function(e,t,r){let n=e.getValue();return n.typeArguments?e.call(r,"typeArguments"):n.typeParameters?e.call(r,"typeParameters"):""},printBindExpressionCallee:function(e,t,r){return Ri(["::",e.call(r,"callee")])},printTypeScriptModifiers:function(e,t,r){let n=e.getValue();return n.modifiers&&n.modifiers.length?Ri([pd(" ",e.map(r,"modifiers"))," "]):""},printDecorators:function(e,t,r){let n=e.getValue();return SC(Ri([pd(sc,e.map(r,"decorators")),TC(n,t)?FC:sc]))},printFlowDeclaration:function(e,t){let r=kC(e);return r?(qn.strictEqual(r.type,"DeclareExportDeclaration"),t):Ri(["declare ",t])},adjustClause:function(e,t,r){return e.type==="EmptyStatement"?";":e.type==="BlockStatement"||r?Ri([" ",t]):wC(Ri([sc,t]))}};let{builders:{concat:Qt,softline:fd,group:_C,indent:PC,join:ac,line:uc,ifBreak:BC,hardline:NC}}=ae,{printDanglingComments:OC}=Fe,{hasDanglingComments:IC,shouldPrintComma:LC,needsHardlineAfterDanglingComment:RC}=Re,{locStart:hd,hasSameLoc:MC}=Ft;function oc(e,t,r){let n=e.getValue();if(!n.source)return"";let i=[];return gd(n,t)||i.push(" from"),i.push(" ",e.call(r,"source")),Qt(i)}function dd(e,t,r){let n=e.getValue();if(gd(n,t))return"";let i=[" "];if(n.specifiers&&n.specifiers.length>0){let s=[],l=[];e.each(a=>{let c=e.getValue().type;if(c==="ExportNamespaceSpecifier"||c==="ExportDefaultSpecifier"||c==="ImportNamespaceSpecifier"||c==="ImportDefaultSpecifier")s.push(r(a));else{if(c!=="ExportSpecifier"&&c!=="ImportSpecifier")throw new Error("Unknown specifier type ".concat(JSON.stringify(c)));l.push(r(a))}},"specifiers"),i.push(ac(", ",s)),l.length!==0&&(s.length!==0&&i.push(", "),l.length>1||s.length>0||n.specifiers.some(a=>a.comments)?i.push(_C(Qt(["{",PC(Qt([t.bracketSpacing?uc:fd,ac(Qt([",",uc]),l)])),BC(LC(t)?",":""),t.bracketSpacing?uc:fd,"}"]))):i.push(Qt(["{",t.bracketSpacing?" ":"",Qt(l),t.bracketSpacing?" ":"","}"])))}else i.push("{}");return Qt(i)}function gd(e,t){let{type:r,importKind:n,source:i,specifiers:s}=e;return!(r!=="ImportDeclaration"||Array.isArray(s)&&s.length>0||n==="type")&&!/{\s*}/.test(t.originalText.slice(hd(e),hd(i)))}function lc(e,t,r){let n=e.getNode();return Array.isArray(n.assertions)&&n.assertions.length!==0?Qt([" assert {",t.bracketSpacing?" ":"",ac(", ",e.map(r,"assertions")),t.bracketSpacing?" ":"","}"]):""}var jC={printImportDeclaration:function(e,t,r){let n=e.getValue(),i=t.semi?";":"",s=[],{importKind:l}=n;return s.push("import"),l&&l!=="value"&&s.push(" ",l),s.push(dd(e,t,r),oc(e,t,r),lc(e,t,r)),s.push(i),Qt(s)},printExportDeclaration:function(e,t,r){let n=e.getValue(),i=[],{type:s,exportKind:l,declaration:a}=n;return s==="DeclareExportDeclaration"&&i.push("declare "),i.push("export"),(n.default||s==="ExportDefaultDeclaration")&&i.push(" default"),IC(n)&&(i.push(" ",OC(e,t,!0)),RC(n)&&i.push(NC)),a?i.push(" ",e.call(r,"declaration")):i.push(l==="type"?" type":"",dd(e,t,r),oc(e,t,r),lc(e,t,r)),function(c,p){if(!p.semi)return!1;let{type:u,declaration:d}=c,h=c.default||u==="ExportDefaultDeclaration";if(!d)return!0;let{type:b}=d;return!!(h&&b!=="ClassDeclaration"&&b!=="FunctionDeclaration"&&b!=="TSInterfaceDeclaration"&&b!=="DeclareClass"&&b!=="DeclareFunction"&&b!=="TSDeclareFunction"&&b!=="EnumDeclaration")}(n,t)&&i.push(";"),Qt(i)},printExportAllDeclaration:function(e,t,r){let n=e.getValue(),i=t.semi?";":"",s=[],{type:l,exportKind:a,exported:c}=n;return l==="DeclareExportAllDeclaration"&&(s.push("declare "),i=""),s.push("export"),a==="type"&&s.push(" type"),s.push(" *"),c&&s.push(" as ",e.call(r,"exported")),s.push(oc(e,t,r),lc(e,t,r),i),Qt(s)},printModuleSpecifier:function(e,t,r){let n=e.getNode(),{type:i,importKind:s}=n,l=[];i==="ImportSpecifier"&&s&&l.push(s," ");let a=i.startsWith("Import"),c=a?"imported":"local",p=a?"local":"exported",u="",d="";return i==="ExportNamespaceSpecifier"||i==="ImportNamespaceSpecifier"?u="*":n[c]&&(u=e.call(r,c)),!n[p]||n[c]&&MC(n[c],n[p])||(d=e.call(r,p)),l.push(u,u&&d?" as ":"",d),Qt(l)}};let{hasNewlineInRange:VC}=ve,{isJSXNode:uu,isBlockComment:UC}=Re,{locStart:qC,locEnd:$C}=Ft,{builders:{concat:xn,line:md,softline:ou,group:yd,indent:lu,align:cu,ifBreak:pu,dedent:WC,breakParent:GC}}=ae;var Dd=function(e,t,r,n){let i=e.getValue(),s=i[n.consequentNodePropertyName],l=i[n.alternateNodePropertyName],a=[],c=!1,p=e.getParentNode(),u=p.type===n.conditionalNodeType&&n.testNodePropertyNames.some(N=>p[N]===i),d,h,b=p.type===n.conditionalNodeType&&!u,m=0;do h=d||i,d=e.getParentNode(m),m++;while(d&&d.type===n.conditionalNodeType&&n.testNodePropertyNames.every(N=>d[N]!==h));let x=d||p,F=h;if(n.shouldCheckJsx&&(uu(i[n.testNodePropertyNames[0]])||uu(s)||uu(l)||function(N){return function(R){let U=[];return function J(q){q.type==="ConditionalExpression"?(J(q.test),J(q.consequent),J(q.alternate)):U.push(q)}(R),U}(N).some(uu)}(F))){c=!0,b=!0;let N=U=>xn([pu("(",""),lu(xn([ou,U])),ou,pu(")","")]),R=U=>U.type==="NullLiteral"||U.type==="Literal"&&U.value===null||U.type==="Identifier"&&U.name==="undefined";a.push(" ? ",R(s)?e.call(r,n.consequentNodePropertyName):N(e.call(r,n.consequentNodePropertyName))," : ",l.type===n.conditionalNodeType||R(l)?e.call(r,n.alternateNodePropertyName):N(e.call(r,n.alternateNodePropertyName)))}else{let N=xn([md,"? ",s.type===n.conditionalNodeType?pu("","("):"",cu(2,e.call(r,n.consequentNodePropertyName)),s.type===n.conditionalNodeType?pu("",")"):"",md,": ",l.type===n.conditionalNodeType?e.call(r,n.alternateNodePropertyName):cu(2,e.call(r,n.alternateNodePropertyName))]);a.push(p.type!==n.conditionalNodeType||p[n.alternateNodePropertyName]===i||u?N:t.useTabs?WC(lu(N)):cu(Math.max(0,t.tabWidth-2),N))}let E=yl([...n.testNodePropertyNames.map(N=>i[N].comments),s.comments,l.comments]).filter(Boolean).some(N=>UC(N)&&VC(t.originalText,qC(N),$C(N))),A=!c&&(p.type==="MemberExpression"||p.type==="OptionalMemberExpression"||p.type==="NGPipeExpression"&&p.left===i)&&!p.computed,P=(N=>p===x?yd(N,{shouldBreak:E}):E?xn([N,GC]):N)(xn([].concat((L=xn(n.beforeParts()),p.type===n.conditionalNodeType&&p[n.alternateNodePropertyName]===i?cu(2,L):L),b?xn(a):lu(xn(a)),n.afterParts(A))));var L;return u?yd(xn([lu(xn([ou,P])),ou])):P};let{getNextNonSpaceNonCommentCharacter:HC,isNextLineEmpty:zC}=ve,{printDanglingComments:JC}=Fe,{builders:{concat:on,line:XC,hardline:bd,softline:Ed,group:YC,indent:KC,ifBreak:QC},utils:{removeLines:vd}}=ae,{getFunctionParameters:Cd,iterateFunctionParametersPath:ZC,isSimpleType:ex,isTestCall:tx,isTypeAnnotationAFunction:nx,isObjectType:xd,isObjectTypePropertyAFunction:rx,hasRestParameter:ix,shouldPrintComma:sx}=Re,{locEnd:Ad}=Ft,{printFunctionTypeParameters:ax}=Cn;function Sd(e){if(!e)return!1;let t=Cd(e);if(t.length!==1)return!1;let[r]=t;return!r.comments&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&xd(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&xd(r.typeAnnotation)||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||r.right.type==="ObjectExpression"&&r.right.properties.length===0||r.right.type==="ArrayExpression"&&r.right.elements.length===0))}var cc={printFunctionParameters:function(e,t,r,n,i){let s=e.getValue(),l=Cd(s),a=i?ax(e,r,t):"";if(l.length===0)return on([a,"(",JC(e,r,!0,m=>HC(r.originalText,m,Ad)===")"),")"]);let c=e.getParentNode(),p=tx(c),u=Sd(s),d=n&&!l.some(m=>m.comments),h=[];if(ZC(e,(m,x)=>{let F=x===l.length-1;F&&s.rest&&h.push("..."),h.push(m.call(t)),F||(h.push(","),p||u||d?h.push(" "):zC(r.originalText,l[x],Ad)?h.push(bd,bd):h.push(XC))}),d)return YC(on([vd(a),"(",on(h.map(vd)),")"]));let b=l.every(m=>!m.decorators);return u&&b||p?on([a,"(",on(h),")"]):(rx(c)||nx(c)||c.type==="TypeAlias"||c.type==="UnionTypeAnnotation"||c.type==="TSUnionType"||c.type==="IntersectionTypeAnnotation"||c.type==="FunctionTypeAnnotation"&&c.returnType===s)&&l.length===1&&l[0].name===null&&s.this!==l[0]&&l[0].typeAnnotation&&s.typeParameters===null&&ex(l[0].typeAnnotation)&&!s.rest?r.arrowParens==="always"?on(["(",on(h),")"]):on(h):on([a,"(",KC(on([Ed,on(h)])),QC(!ix(s)&&sx(r,"all")?",":""),Ed,")"])},shouldHugFunctionParameters:Sd};let{builders:{concat:wd}}=ae,{isFlowAnnotationComment:ux,isSimpleType:ox,isObjectType:lx}=Re;var fu={printTypeAnnotation:function(e,t,r){let n=e.getValue();if(!n.typeAnnotation)return"";let i=e.getParentNode(),s=n.definite||i&&i.type==="VariableDeclarator"&&i.definite,l=i.type==="DeclareFunction"&&i.id===n;return ux(t.originalText,n.typeAnnotation)?wd([" /*: ",e.call(r,"typeAnnotation")," */"]):wd([l?"":s?"!: ":": ",e.call(r,"typeAnnotation")])},shouldHugType:function(e){if(ox(e)||lx(e))return!0;if(e.type==="UnionTypeAnnotation"||e.type==="TSUnionType"){let t=e.types.filter(n=>n.type==="VoidTypeAnnotation"||n.type==="TSVoidKeyword"||n.type==="NullLiteralTypeAnnotation"||n.type==="TSNullKeyword").length,r=e.types.some(n=>n.type==="ObjectTypeAnnotation"||n.type==="TSTypeLiteral"||n.type==="GenericTypeAnnotation"||n.type==="TSTypeReference");if(e.types.length-1===t&&r)return!0}return!1}};let{printDanglingComments:Fd}=Fe,{builders:{concat:Mi,line:cx,softline:hu,group:pc,indent:px,ifBreak:fx}}=ae,{getLast:hx,isNextLineEmpty:dx}=ve,{hasDanglingComments:gx,shouldPrintComma:mx}=Re,{locEnd:yx}=Ft,{printOptionalToken:Dx}=Cn,{printTypeAnnotation:bx}=fu;function Td(e,t,r,n){let i=[],s=[];return e.each(l=>{i.push(Mi(s)),i.push(pc(n(l))),s=[",",cx],l.getValue()&&dx(t.originalText,l.getValue(),yx)&&s.push(hu)},r),Mi(i)}var Ex={printArray:function(e,t,r){let n=e.getValue(),i=[],s=n.type==="TupleExpression"?"#[":"[";if(n.elements.length===0)gx(n)?i.push(pc(Mi([s,Fd(e,t),hu,"]"]))):i.push(s,"]");else{let l=hx(n.elements),a=!(l&&l.type==="RestElement"),c=a&&l===null,p=!t.__inJestEach&&n.elements.length>1&&n.elements.every((u,d,h)=>{let b=u&&u.type;if(b!=="ArrayExpression"&&b!=="ObjectExpression")return!1;let m=h[d+1];if(m&&b!==m.type)return!1;let x=b==="ArrayExpression"?"elements":"properties";return u[x]&&u[x].length>1});i.push(pc(Mi([s,px(Mi([hu,Td(e,t,"elements",r)])),c?",":"",fx(a&&!c&&mx(t)?",":""),Fd(e,t,!0),hu,"]"]),{shouldBreak:p}))}return i.push(Dx(e),bx(e,t,r)),Mi(i)},printArrayItems:Td};let{printDanglingComments:kd}=Fe,{builders:{concat:Wn,line:du,softline:fc,group:hc,indent:vx,ifBreak:_d,hardline:Pd}}=ae,{getLast:Cx,isNextLineEmpty:xx,hasNewlineInRange:Ax,hasNewline:Sx}=ve,{hasDanglingComments:Bd,shouldPrintComma:wx,hasNodeIgnoreComment:Nd,isBlockComment:Fx}=Re,{locStart:Us,locEnd:Od}=Ft,{printOptionalToken:Id}=Cn,{shouldHugFunctionParameters:Ld}=cc,{printTypeAnnotation:dc,shouldHugType:Tx}=fu;var kx={printObject:function(e,t,r){let n=t.semi?";":"",i=e.getValue(),s;s=i.type==="TSTypeLiteral"?"members":i.type==="TSInterfaceBody"?"body":"properties";let l=i.type==="ObjectTypeAnnotation",a=[];l&&a.push("indexers","callProperties","internalSlots"),a.push(s);let c=a.map(N=>i[N][0]).sort((N,R)=>Us(N)-Us(R))[0],p=e.getParentNode(0),u=l&&p&&(p.type==="InterfaceDeclaration"||p.type==="DeclareInterface"||p.type==="DeclareClass")&&e.getName()==="body",d=i.type==="TSInterfaceBody"||u||i.type==="ObjectPattern"&&p.type!=="FunctionDeclaration"&&p.type!=="FunctionExpression"&&p.type!=="ArrowFunctionExpression"&&p.type!=="ObjectMethod"&&p.type!=="ClassMethod"&&p.type!=="ClassPrivateMethod"&&p.type!=="AssignmentPattern"&&p.type!=="CatchClause"&&i.properties.some(N=>N.value&&(N.value.type==="ObjectPattern"||N.value.type==="ArrayPattern"))||i.type!=="ObjectPattern"&&c&&Ax(t.originalText,Us(i),Us(c)),h=u?";":i.type==="TSInterfaceBody"||i.type==="TSTypeLiteral"?_d(n,";"):",",b=i.type==="RecordExpression"?"#{":i.exact?"{|":"{",m=i.exact?"|}":"}",x=[];a.forEach(N=>{e.each(R=>{let U=R.getValue();x.push({node:U,printed:r(R),loc:Us(U)})},N)});let F=[],E=x.sort((N,R)=>N.loc-R.loc).map(N=>{let R=Wn(F.concat(hc(N.printed)));return F=[h,du],N.node.type!=="TSPropertySignature"&&N.node.type!=="TSMethodSignature"&&N.node.type!=="TSConstructSignatureDeclaration"||!Nd(N.node)||F.shift(),xx(t.originalText,N.node,Od)&&F.push(Pd),R});if(i.inexact){let N;if(Bd(i)){let R=!i.comments.every(J=>Fx(J)),U=kd(e,t,!0);N=Wn([U,R||Sx(t.originalText,Od(i.comments[i.comments.length-1]))?Pd:du,"..."])}else N="...";E.push(Wn(F.concat(N)))}let A=Cx(i[s]),P=!(i.inexact||A&&A.type==="RestElement"||A&&(A.type==="TSPropertySignature"||A.type==="TSCallSignatureDeclaration"||A.type==="TSMethodSignature"||A.type==="TSConstructSignatureDeclaration")&&Nd(A)),L;if(E.length===0){if(!Bd(i))return Wn([b,m,dc(e,t,r)]);L=hc(Wn([b,kd(e,t),fc,m,Id(e),dc(e,t,r)]))}else L=Wn([b,vx(Wn([t.bracketSpacing?du:fc,Wn(E)])),_d(P&&(h!==","||wx(t))?h:""),Wn([t.bracketSpacing?du:fc,m]),Id(e),dc(e,t,r)]);return e.match(N=>N.type==="ObjectPattern"&&!N.decorators,(N,R,U)=>Ld(N)&&(R==="params"||R==="parameters"||R==="this"||R==="rest")&&U===0)||e.match(Tx,(N,R)=>R==="typeAnnotation",(N,R)=>R==="typeAnnotation",(N,R,U)=>Ld(N)&&(R==="params"||R==="parameters"||R==="this"||R==="rest")&&U===0)?L:hc(L,{shouldBreak:d})}};let{printComments:Rd,printDanglingComments:Md}=Fe,{builders:{concat:Te,line:gc,hardline:tt,softline:Tt,group:Jr,indent:ji,conditionalGroup:_x,fill:Px,ifBreak:mc,lineSuffixBoundary:jd},utils:{willBreak:Vd,isLineNext:yc,isEmpty:Dc}}=ae,{getLast:Vi,getPreferredQuote:Bx}=ve,{hasTrailingComment:Nx,isEmptyJSXElement:Ox,isJSXWhitespaceExpression:Ix,isJSXNode:Ud,isMeaningfulJSXText:bc,matchJsxWhitespaceRegex:qd,rawText:Ec,isLiteral:Lx,isCallOrOptionalCallExpression:Rx,isStringLiteral:vc,isBinaryish:Mx,isBlockComment:$d}=Re,{willPrintOwnComments:jx}=yr;function Vx(e,t,r){let n=e.getValue();if(n.type==="JSXElement"&&Ox(n))return Te([e.call(r,"openingElement"),e.call(r,"closingElement")]);let i=n.type==="JSXElement"?e.call(r,"openingElement"):e.call(r,"openingFragment"),s=n.type==="JSXElement"?e.call(r,"closingElement"):e.call(r,"closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return Te([i,Te(e.map(r,"children")),s]);n.children=n.children.map(P=>Ix(P)?{type:"JSXText",value:" ",raw:" "}:P);let l=n.children.filter(Ud).length>0,a=n.children.filter(P=>P.type==="JSXExpressionContainer").length>1,c=n.type==="JSXElement"&&n.openingElement.attributes.length>1,p=Vd(i)||l||c||a,u=e.getParentNode().rootMarker==="mdx",d=t.singleQuote?"{' '}":'{" "}',h=u?Te([" "]):mc(Te([d,Tt])," "),b=n.openingElement&&n.openingElement.name&&n.openingElement.name.name==="fbt",m=function(P,L,N,R,U){let J=P.getValue(),q=[];return P.each((X,ne)=>{let he=X.getValue();if(Lx(he)){let Ae=Ec(he);if(bc(he)){let xe=Ae.split(qd);if(xe[0]===""){if(q.push(""),xe.shift(),/\n/.test(xe[0])){let Ve=J.children[ne+1];q.push(Gd(U,xe[1],he,Ve))}else q.push(R);xe.shift()}let je;if(Vi(xe)===""&&(xe.pop(),je=xe.pop()),xe.length===0)return;if(xe.forEach((Ve,nn)=>{nn%2==1?q.push(gc):q.push(Ve)}),je!==void 0)if(/\n/.test(je)){let Ve=J.children[ne+1];q.push(Gd(U,Vi(q),he,Ve))}else q.push(R);else{let Ve=J.children[ne+1];q.push(Wd(U,Vi(q),he,Ve))}}else/\n/.test(Ae)?Ae.match(/\n/g).length>1&&(q.push(""),q.push(tt)):(q.push(""),q.push(R))}else{let Ae=N(X);q.push(Ae);let xe=J.children[ne+1];if(xe&&bc(xe)){let je=Ec(xe).trim().split(qd)[0];q.push(Wd(U,je,he,xe))}else q.push(tt)}},"children"),q}(e,0,r,h,b),x=n.children.some(P=>bc(P));for(let P=m.length-2;P>=0;P--){let L=m[P]===""&&m[P+1]==="",N=m[P]===tt&&m[P+1]===""&&m[P+2]===tt,R=(m[P]===Tt||m[P]===tt)&&m[P+1]===""&&m[P+2]===h,U=m[P]===h&&m[P+1]===""&&(m[P+2]===Tt||m[P+2]===tt),J=m[P]===h&&m[P+1]===""&&m[P+2]===h,q=m[P]===Tt&&m[P+1]===""&&m[P+2]===tt||m[P]===tt&&m[P+1]===""&&m[P+2]===Tt;N&&x||L||R||J||q?m.splice(P,2):U&&m.splice(P+1,2)}for(;m.length&&(yc(Vi(m))||Dc(Vi(m)));)m.pop();for(;m.length&&(yc(m[0])||Dc(m[0]))&&(yc(m[1])||Dc(m[1]));)m.shift(),m.shift();let F=[];m.forEach((P,L)=>{if(P===h){if(L===1&&m[L-1]==="")return m.length===2?void F.push(d):void F.push(Te([d,tt]));if(L===m.length-1||m[L-1]===""&&m[L-2]===tt)return void F.push(d)}F.push(P),Vd(P)&&(p=!0)});let E=x?Px(F):Jr(Te(F),{shouldBreak:!0});if(u)return E;let A=Jr(Te([i,ji(Te([tt,E])),tt,s]));return p?A:_x([Jr(Te([i,Te(m),s])),A])}function Wd(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||n&&n.type==="JSXElement"&&!n.closingElement?t.length===1?Tt:tt:Tt}function Gd(e,t,r,n){return e?tt:t.length===1?r.type==="JSXElement"&&!r.closingElement||n&&n.type==="JSXElement"&&!n.closingElement?tt:Tt:tt}function Hd(e,t,r){let n=e.getValue();return Te(["{",e.call(i=>{let s=Te(["...",r(i)]),l=i.getValue();return l.comments&&l.comments.length&&jx(i)?Te([ji(Te([Tt,Rd(i,()=>s,t)])),Tt]):s},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"])}var Ux={printJsxElement:function(e,t,r){let n=Rd(e,()=>Vx(e,t,r),t);return function(i,s,l){let a=i.getParentNode();if(!a||{ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[a.type])return s;let c=i.match(void 0,u=>u.type==="ArrowFunctionExpression",Rx,u=>u.type==="JSXExpressionContainer"),p=Li(i,l);return Jr(Te([p?"":mc("("),ji(Te([Tt,s])),Tt,p?"":mc(")")]),{shouldBreak:c})}(e,n,t)},printJsxAttribute:function(e,t,r){let n=e.getValue(),i=[];if(i.push(e.call(r,"name")),n.value){let s;if(vc(n.value)){let l=Ec(n.value).replace(/'/g,"'").replace(/"/g,'"'),a=Bx(l,t.jsxSingleQuote?"'":'"'),c=a==="'"?"'":""";l=l.slice(1,-1).replace(new RegExp(a,"g"),c),s=Te([a,l,a])}else s=e.call(r,"value");i.push("=",s)}return Te(i)},printJsxOpeningElement:function(e,t,r){let n=e.getValue(),i=n.name&&n.name.comments&&n.name.comments.length>0||n.typeParameters&&n.typeParameters.comments&&n.typeParameters.comments.length>0;if(n.selfClosing&&!n.attributes.length&&!i)return Te(["<",e.call(r,"name"),e.call(r,"typeParameters")," />"]);if(n.attributes&&n.attributes.length===1&&n.attributes[0].value&&vc(n.attributes[0].value)&&!n.attributes[0].value.value.includes(`
|
|
146
|
+
`)&&!i&&(!n.attributes[0].comments||!n.attributes[0].comments.length))return Jr(Te(["<",e.call(r,"name"),e.call(r,"typeParameters")," ",Te(e.map(r,"attributes")),n.selfClosing?" />":">"]));let s=n.attributes.length&&Nx(Vi(n.attributes)),l=!n.attributes.length&&!i||t.jsxBracketSameLine&&(!i||n.attributes.length)&&!s,a=n.attributes&&n.attributes.some(c=>c.value&&vc(c.value)&&c.value.value.includes(`
|
|
147
|
+
`));return Jr(Te(["<",e.call(r,"name"),e.call(r,"typeParameters"),Te([ji(Te(e.map(c=>Te([gc,r(c)]),"attributes"))),n.selfClosing?gc:l?">":Tt]),n.selfClosing?"/>":l?"":">"]),{shouldBreak:a})},printJsxClosingElement:function(e,t,r){return Te(["</",e.call(r,"name"),">"])},printJsxOpeningClosingFragment:function(e,t){let r=e.getValue(),n=r.comments&&r.comments.length,i=n&&!r.comments.every(l=>$d(l)),s=r.type==="JSXOpeningFragment";return Te([s?"<":"</",ji(Te([i?tt:n&&!s?" ":"",Md(e,t,!0)])),i?tt:"",">"])},printJsxExpressionContainer:function(e,t,r){let n=e.getValue(),i=e.getParentNode(0),s=n.expression.comments&&n.expression.comments.length>0,l=n.expression.type==="JSXEmptyExpression"||!s&&(n.expression.type==="ArrayExpression"||n.expression.type==="ObjectExpression"||n.expression.type==="ArrowFunctionExpression"||n.expression.type==="CallExpression"||n.expression.type==="OptionalCallExpression"||n.expression.type==="FunctionExpression"||n.expression.type==="TemplateLiteral"||n.expression.type==="TaggedTemplateExpression"||n.expression.type==="DoExpression"||Ud(i)&&(n.expression.type==="ConditionalExpression"||Mx(n.expression)));return Jr(Te(l?["{",e.call(r,"expression"),jd,"}"]:["{",ji(Te([Tt,e.call(r,"expression")])),Tt,jd,"}"]))},printJsxEmptyExpression:function(e,t){let r=e.getValue(),n=r.comments&&!r.comments.every(i=>$d(i));return Te([Md(e,t,!n),n?tt:""])},printJsxSpreadAttribute:Hd,printJsxSpreadChild:Hd};let{printDanglingComments:qx}=Fe,{builders:{concat:qs,join:zd,line:$x,hardline:Wx,softline:Jd,group:Gx,indent:Hx,ifBreak:zx}}=ae,{hasDanglingComments:Jx,isTestCall:Xx,isBlockComment:Yx,shouldPrintComma:Kx}=Re,{shouldHugType:Cc}=fu,xc=new WeakMap;function Xd(e){return xc.has(e)||xc.set(e,Symbol("typeParameters")),xc.get(e)}function Qx(e,t){let r=e.getValue();if(!Jx(r))return"";let n=r.comments.every(s=>Yx(s)),i=qx(e,t,n);return n?i:qs([i,Wx])}var Ac={printTypeParameters:function(e,t,r,n){let i=e.getValue();if(!i[n])return"";if(!Array.isArray(i[n]))return e.call(r,n);let s=e.getNode(2);return s!=null&&Xx(s)||i[n].length===0||i[n].length===1&&(Cc(i[n][0])||i[n][0].type==="GenericTypeAnnotation"&&Cc(i[n][0].id)||i[n][0].type==="TSTypeReference"&&Cc(i[n][0].typeName)||i[n][0].type==="NullableTypeAnnotation")?qs(["<",zd(", ",e.map(r,n)),Qx(e,t),">"]):Gx(qs(["<",Hx(qs([Jd,zd(qs([",",$x]),e.map(r,n))])),zx(t.parser!=="typescript"&&t.parser!=="babel-ts"&&Kx(t,"all")?",":""),Jd,">"]),{id:Xd(i)})},getTypeParametersGroupId:Xd};let{printComments:Yd}=Fe,{printString:Zx,printNumber:Sc}=ve,{builders:{concat:Kd}}=ae,{isNumericLiteral:eA,isSimpleNumber:tA,isStringLiteral:nA,isStringPropSafeToUnquote:Qd,rawText:Zd}=Re,gu=new WeakMap;var eg={printPropertyKey:function(e,t,r){let n=e.getNode();if(n.computed)return Kd(["[",e.call(r,"key"),"]"]);let i=e.getParentNode(),{key:s}=n;if(n.type==="ClassPrivateProperty"&&s.type==="Identifier")return Kd(["#",e.call(r,"key")]);if(t.quoteProps==="consistent"&&!gu.has(i)){let l=(i.properties||i.body||i.members).some(a=>!a.computed&&a.key&&nA(a.key)&&!Qd(a,t));gu.set(i,l)}if((s.type==="Identifier"||eA(s)&&tA(Sc(Zd(s)))&&String(s.value)===Sc(Zd(s))&&t.parser!=="typescript"&&t.parser!=="babel-ts")&&(t.parser==="json"||t.quoteProps==="consistent"&&gu.get(i))){let l=Zx(JSON.stringify(s.type==="Identifier"?s.name:s.value.toString()),t);return e.call(a=>Yd(a,()=>l,t),"key")}return Qd(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!gu.get(i))?e.call(l=>Yd(l,()=>/^\d/.test(s.value)?Sc(s.value):s.value,t),"key"):e.call(r,"key")}};let{printDanglingComments:tg}=Fe,{getNextNonSpaceNonCommentCharacterIndex:rA}=ve,{builders:{concat:Ge,line:iA,softline:$s,group:Gn,indent:mu,ifBreak:Ws,hardline:ng}}=ae,{getFunctionParameters:sA,hasDanglingComments:rg,hasLeadingOwnLineComment:aA,isFlowAnnotationComment:uA,isJSXNode:oA,isTemplateOnItsOwnLine:lA,shouldPrintComma:cA,startsWithNoLookaheadToken:pA,returnArgumentHasLeadingComment:fA,isBinaryish:hA,isLineComment:dA}=Re,{locEnd:gA}=Ft,{printFunctionParameters:wc}=cc,{printPropertyKey:mA}=eg,{printFunctionTypeParameters:ig}=Cn;function sg(e,t,r){let n=[ig(e,t,r),Gn(Ge([wc(e,r,t),Fc(e,r,t)]))];return e.getNode().body?n.push(" ",e.call(r,"body")):n.push(t.semi?";":""),Ge(n)}function ag(e,t){return t.arrowParens==="always"?!1:t.arrowParens==="avoid"?function(r){let n=sA(r);return!(n.length!==1||r.typeParameters||rg(r)||n[0].type!=="Identifier"||n[0].typeAnnotation||n[0].comments||n[0].optional||r.predicate||r.returnType)}(e.getValue()):!1}function Fc(e,t,r){let n=e.getValue(),i=e.call(t,"returnType");if(n.returnType&&uA(r.originalText,n.returnType))return Ge([" /*: ",i," */"]);let s=[i];return n.returnType&&n.returnType.typeAnnotation&&s.unshift(": "),n.predicate&&s.push(n.returnType?" ":": ",e.call(t,"predicate")),Ge(s)}var Tc={printFunctionDeclaration:function(e,t,r,n){let i=e.getValue(),s=[];return i.async&&s.push("async "),i.generator?s.push("function* "):s.push("function "),i.id&&s.push(e.call(t,"id")),s.push(ig(e,r,t),Gn(Ge([wc(e,t,r,n),Fc(e,t,r)])),i.body?" ":"",e.call(t,"body")),Ge(s)},printArrowFunctionExpression:function(e,t,r,n){let i=e.getValue(),s=[];i.async&&s.push("async "),ag(e,t)?s.push(e.call(r,"params",0)):s.push(Gn(Ge([wc(e,r,t,n&&(n.expandLastArg||n.expandFirstArg),!0),Fc(e,r,t)])));let l=tg(e,t,!0,d=>{let h=rA(t.originalText,d,gA);return h!==!1&&t.originalText.slice(h,h+2)==="=>"});l&&s.push(" ",l),s.push(" =>");let a=e.call(d=>r(d,n),"body");if(!aA(t.originalText,i.body)&&(i.body.type==="ArrayExpression"||i.body.type==="ObjectExpression"||i.body.type==="BlockStatement"||oA(i.body)||lA(i.body,t.originalText)||i.body.type==="ArrowFunctionExpression"||i.body.type==="DoExpression"))return Gn(Ge([Ge(s)," ",a]));if(i.body.type==="SequenceExpression")return Gn(Ge([Ge(s),Gn(Ge([" (",mu(Ge([$s,a])),$s,")"]))]));let c=(n&&n.expandLastArg||e.getParentNode().type==="JSXExpressionContainer")&&!(i.comments&&i.comments.length),p=n&&n.expandLastArg&&cA(t,"all"),u=i.body.type==="ConditionalExpression"&&!pA(i.body,!1);return Gn(Ge([Ge(s),Gn(Ge([mu(Ge([iA,u?Ws("","("):"",a,u?Ws("",")"):""])),c?Ge([Ws(p?",":""),$s]):""]))]))},printMethod:function(e,t,r){let n=e.getNode(),{kind:i}=n,s=n.value||n,l=[];return i&&i!=="init"&&i!=="method"&&i!=="constructor"?(qn.ok(i==="get"||i==="set"),l.push(i," ")):s.async&&l.push("async "),s.generator&&l.push("*"),l.push(mA(e,t,r),n.optional||n.key.optional?"?":"",n===s?sg(e,t,r):e.call(a=>sg(a,t,r),"value")),Ge(l)},printReturnAndThrowArgument:function(e,t,r){let n=e.getValue(),i=t.semi?";":"",s=[];n.argument&&(fA(t,n.argument)?s.push(Ge([" (",mu(Ge([ng,e.call(r,"argument")])),ng,")"])):hA(n.argument)||n.argument.type==="SequenceExpression"?s.push(Gn(Ge([Ws(" ("," "),mu(Ge([$s,e.call(r,"argument")])),$s,Ws(")")]))):s.push(" ",e.call(r,"argument")));let l=Array.isArray(n.comments)&&n.comments[n.comments.length-1],a=l&&dA(l);return a&&s.push(i),rg(n)&&s.push(" ",tg(e,t,!0)),a||s.push(i),Ge(s)},shouldPrintParamsWithoutParens:ag};let{printComments:yA,printDanglingComments:DA}=Fe,{builders:{concat:ln,join:bA,line:Gs,hardline:EA,softline:ug,group:Hs,indent:yu,ifBreak:kc}}=ae,{hasTrailingComment:vA,hasTrailingLineComment:CA}=Re,{getTypeParametersGroupId:xA}=Ac,{printMethod:AA}=Tc,{printDecorators:SA}=Cn;function og(e){return e.typeParameters&&!CA(e.typeParameters)&&!function(t){return["superClass","extends","mixins","implements"].filter(r=>!!t[r]).length>1}(e)}function _c(e,t,r,n){let i=e.getValue();if(!i[n]||i[n].length===0)return"";let s=DA(e,t,!0,({marker:l})=>l===n);return ln([og(i)?kc(" ",Gs,{groupId:xA(i.typeParameters)}):Gs,s,s&&EA,n,Hs(yu(ln([Gs,bA(ln([",",Gs]),e.map(r,n))])))])}function wA(e,t,r){let n=e.call(r,"superClass");return e.getParentNode().type==="AssignmentExpression"?Hs(kc(ln(["(",yu(ln([ug,n])),ug,")"]),n)):n}var FA={printClass:function(e,t,r){let n=e.getValue(),i=[];n.abstract&&i.push("abstract "),i.push("class");let s=n.id&&vA(n.id)||n.superClass&&n.superClass.comments&&n.superClass.comments.length!==0||n.extends&&n.extends.length!==0||n.mixins&&n.mixins.length!==0||n.implements&&n.implements.length!==0,l=[],a=[];if(n.id&&l.push(" ",e.call(r,"id")),l.push(e.call(r,"typeParameters")),n.superClass){let c=ln(["extends ",wA(e,t,r),e.call(r,"superTypeParameters")]),p=e.call(u=>yA(u,()=>c,t),"superClass");s?a.push(Gs,Hs(p)):a.push(" ",p)}else a.push(_c(e,t,r,"extends"));if(a.push(_c(e,t,r,"mixins")),a.push(_c(e,t,r,"implements")),s){let c=ln(a);og(n)?i.push(Hs(ln(l.concat(kc(yu(c),c))))):i.push(Hs(yu(ln(l.concat(c)))))}else i.push(...l,...a);return i.push(" ",e.call(r,"body")),ln(i)},printClassMethod:function(e,t,r){let n=e.getValue(),i=[];return n.decorators&&n.decorators.length!==0&&i.push(SA(e,t,r)),n.accessibility&&i.push(n.accessibility+" "),n.static&&i.push("static "),(n.type==="TSAbstractMethodDefinition"||n.abstract)&&i.push("abstract "),i.push(AA(e,t,r)),ln(i)}};let{getLast:lg,getPenultimate:TA,isNextLineEmpty:kA}=ve,{getFunctionParameters:cg,iterateFunctionParametersPath:_A,hasLeadingComment:PA,hasTrailingComment:BA,isFunctionCompositionArgs:NA,isJSXNode:OA,isLongCurriedCallExpression:IA,shouldPrintComma:LA,getCallArguments:RA,iterateCallArgumentsPath:pg}=Re,{locEnd:MA}=Ft,{builders:{concat:dt,line:Du,hardline:bu,softline:fg,group:Eu,indent:hg,conditionalGroup:jA,ifBreak:dg,breakParent:VA},utils:{willBreak:zs}}=ae;function vu(e){return e.type==="ObjectExpression"&&(e.properties.length>0||e.comments)||e.type==="ArrayExpression"&&(e.elements.length>0||e.comments)||e.type==="TSTypeAssertion"&&vu(e.expression)||e.type==="TSAsExpression"&&vu(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference")&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"||e.body.type==="ObjectExpression"||e.body.type==="ArrayExpression"||e.body.type==="CallExpression"||e.body.type==="OptionalCallExpression"||e.body.type==="ConditionalExpression"||OA(e.body))}var Pc=function(e,t,r){let n=e.getValue(),i=n.type==="ImportExpression",s=RA(n);if(s.length===0)return dt(["(",Fe.printDanglingComments(e,t,!0),")"]);if(s.length===2&&s[0].type==="ArrowFunctionExpression"&&cg(s[0]).length===0&&s[0].body.type==="BlockStatement"&&s[1].type==="ArrayExpression"&&!s.some(F=>F.comments))return dt(["(",e.call(r,"arguments",0),", ",e.call(r,"arguments",1),")"]);let l=!1,a=!1,c=!1,p=s.length-1,u=[];pg(e,(F,E)=>{let A=F.getNode(),P=[r(F)];E===p||(kA(t.originalText,A,MA)?(E===0&&(c=!0),l=!0,P.push(",",bu,bu)):P.push(",",Du)),a=function(L,N){if(!L||L.type!=="ArrowFunctionExpression"||!L.body||L.body.type!=="BlockStatement"||cg(L).length===0)return!1;let R=!1;return _A(N,U=>{R=R||zs(dt([r(U)]))}),R}(A,F),u.push(dt(P))});let d=i||n.callee&&n.callee.type==="Import"||!LA(t,"all")?"":",";function h(){return Eu(dt(["(",hg(dt([Du,dt(u)])),d,Du,")"]),{shouldBreak:!0})}if(e.getParentNode().type!=="Decorator"&&NA(s))return h();let b=function(F){if(F.length!==2)return!1;let[E,A]=F;return!(E.comments&&E.comments.length||E.type!=="FunctionExpression"&&(E.type!=="ArrowFunctionExpression"||E.body.type!=="BlockStatement")||A.type==="FunctionExpression"||A.type==="ArrowFunctionExpression"||A.type==="ConditionalExpression"||vu(A))}(s),m=function(F){let E=lg(F),A=TA(F);return!PA(E)&&!BA(E)&&vu(E)&&(!A||A.type!==E.type)}(s);if(b||m){let F=(b?u.slice(1).some(zs):u.slice(0,-1).some(zs))||l||a,E=[];pg(e,(L,N)=>{b&&N===0&&(E=[dt([L.call(R=>r(R,{expandFirstArg:!0})),u.length>1?",":"",c?bu:Du,c?bu:""])].concat(u.slice(1))),m&&N===s.length-1&&(E=u.slice(0,-1).concat(L.call(R=>r(R,{expandLastArg:!0}))))});let A=u.some(zs),P=dt(["(",dt(E),")"]);return dt([A?VA:"",jA([A||n.typeArguments||n.typeParameters?dg(h(),P):P,dt(b?["(",Eu(E[0],{shouldBreak:!0}),dt(E.slice(1)),")"]:["(",dt(u.slice(0,-1)),Eu(lg(E),{shouldBreak:!0}),")"]),h()],{shouldBreak:F})])}let x=dt(["(",hg(dt([fg,dt(u)])),dg(d),fg,")"]);return IA(e)?x:Eu(x,{shouldBreak:u.some(zs)||l})};let{builders:{concat:Ui,softline:Bc,group:gg,indent:mg}}=ae,{isNumericLiteral:UA}=Re,{printOptionalToken:qA}=Cn;function Nc(e,t,r){let n=e.call(r,"property"),i=e.getValue(),s=qA(e);return i.computed?!i.property||UA(i.property)?Ui([s,"[",n,"]"]):gg(Ui([s,"[",mg(Ui([Bc,n])),Bc,"]"])):Ui([s,".",n])}var yg={printMemberExpression:function(e,t,r){let n=e.getValue(),i=e.getParentNode(),s,l=0;do s=e.getParentNode(l),l++;while(s&&(s.type==="MemberExpression"||s.type==="OptionalMemberExpression"||s.type==="TSNonNullExpression"));let a=s&&(s.type==="NewExpression"||s.type==="BindExpression"||s.type==="VariableDeclarator"&&s.id.type!=="Identifier"||s.type==="AssignmentExpression"&&s.left.type!=="Identifier")||n.computed||n.object.type==="Identifier"&&n.property.type==="Identifier"&&i.type!=="MemberExpression"&&i.type!=="OptionalMemberExpression";return Ui([e.call(r,"object"),a?Nc(e,t,r):gg(mg(Ui([Bc,Nc(e,t,r)])))])},printMemberLookup:Nc};let{getLast:Js,isNextLineEmpty:$A,isNextLineEmptyAfterIndex:WA,getNextNonSpaceNonCommentCharacterIndex:GA}=ve,{hasLeadingComment:Dg,hasTrailingComment:HA,isCallOrOptionalCallExpression:Dr,isFunctionOrArrowExpression:zA,isLongCurriedCallExpression:JA,isMemberish:Xs,isNumericLiteral:bg,isSimpleCallArgument:XA}=Re,{locEnd:Eg}=Ft,{builders:{concat:An,join:YA,hardline:Cu,group:Oc,indent:KA,conditionalGroup:QA,breakParent:ZA},utils:{willBreak:Ic}}=ae,{printMemberLookup:e3}=yg,{printOptionalToken:vg,printFunctionTypeParameters:Cg,printBindExpressionCallee:t3}=Cn;var n3=function(e,t,r){let n=e.getParentNode(),i=!n||n.type==="ExpressionStatement",s=[];function l(q){let{originalText:X}=t,ne=GA(X,q,Eg);return X.charAt(ne)===")"?ne!==!1&&WA(X,ne+1):$A(X,q,Eg)}function a(q){let X=q.getValue();Dr(X)&&(Xs(X.callee)||Dr(X.callee))?(s.unshift({node:X,printed:An([Fe.printComments(q,()=>An([vg(q),Cg(q,t,r),Pc(q,t,r)]),t),l(X)?Cu:""])}),q.call(ne=>a(ne),"callee")):Xs(X)?(s.unshift({node:X,needsParens:Li(q,t),printed:Fe.printComments(q,()=>X.type==="OptionalMemberExpression"||X.type==="MemberExpression"?e3(q,t,r):t3(q,t,r),t)}),q.call(ne=>a(ne),"object")):X.type==="TSNonNullExpression"?(s.unshift({node:X,printed:Fe.printComments(q,()=>"!",t)}),q.call(ne=>a(ne),"expression")):s.unshift({node:X,printed:q.call(r)})}let c=e.getValue();s.unshift({node:c,printed:An([vg(e),Cg(e,t,r),Pc(e,t,r)])}),c.callee&&e.call(q=>a(q),"callee");let p=[],u=[s[0]],d=1;for(;d<s.length&&(s[d].node.type==="TSNonNullExpression"||Dr(s[d].node)||(s[d].node.type==="MemberExpression"||s[d].node.type==="OptionalMemberExpression")&&s[d].node.computed&&bg(s[d].node.property));++d)u.push(s[d]);if(!Dr(s[0].node))for(;d+1<s.length&&Xs(s[d].node)&&Xs(s[d+1].node);++d)u.push(s[d]);p.push(u),u=[];let h=!1;for(;d<s.length;++d){if(h&&Xs(s[d].node)){if(s[d].node.computed&&bg(s[d].node.property)){u.push(s[d]);continue}p.push(u),u=[],h=!1}(Dr(s[d].node)||s[d].node.type==="ImportExpression")&&(h=!0),u.push(s[d]),s[d].node.comments&&s[d].node.comments.some(q=>q.trailing)&&(p.push(u),u=[],h=!1)}function b(q){return/^[A-Z]|^[$_]+$/.test(q)}u.length>0&&p.push(u);let m=p.length>=2&&!p[1][0].node.comments&&function(q){let X=q[1].length&&q[1][0].node.computed;if(q[0].length===1){let he=q[0][0].node;return he.type==="ThisExpression"||he.type==="Identifier"&&(b(he.name)||i&&function(Ae){return Ae.length<=t.tabWidth}(he.name)||X)}let ne=Js(q[0]).node;return(ne.type==="MemberExpression"||ne.type==="OptionalMemberExpression")&&ne.property.type==="Identifier"&&(b(ne.property.name)||X)}(p);function x(q){let X=q.map(ne=>ne.printed);return q.length>0&&q[q.length-1].needsParens?An(["(",...X,")"]):An(X)}let F=p.map(x),E=An(F),A=m?3:2,P=yl(p),L=P.slice(1,-1).some(q=>Dg(q.node))||P.slice(0,-1).some(q=>HA(q.node))||p[A]&&Dg(p[A][0].node);if(p.length<=A&&!L)return JA(e)?E:Oc(E);let N=Js(p[m?1:0]).node,R=!Dr(N)&&l(N),U=An([x(p[0]),m?An(p.slice(1,2).map(x)):"",R?Cu:"",function(q){return q.length===0?"":KA(Oc(An([Cu,YA(Cu,q.map(x))])))}(p.slice(m?2:1))]),J=s.map(({node:q})=>q).filter(Dr);return L||J.length>2&&J.some(q=>!q.arguments.every(X=>XA(X,0)))||F.slice(0,-1).some(Ic)||function(){let q=Js(Js(p)).node,X=Js(F);return Dr(q)&&Ic(X)&&J.slice(0,-1).some(ne=>ne.arguments.some(zA))}()?Oc(U):An([Ic(E)||R?ZA:"",QA([E,U])])};let{builders:{concat:Lc,join:r3,group:i3}}=ae,{getCallArguments:s3,hasFlowAnnotationComment:a3,isCallOrOptionalCallExpression:u3,isMemberish:o3,isTemplateOnItsOwnLine:l3,isTestCall:c3,iterateCallArgumentsPath:p3}=Re,{printOptionalToken:f3,printFunctionTypeParameters:xg}=Cn;var h3={printCallExpression:function(e,t,r){let n=e.getValue(),i=n.type==="NewExpression",s=n.type==="ImportExpression",l=f3(e),a=s3(n);if(a.length>0&&(!s&&!i&&n.callee.type==="Identifier"&&(n.callee.name==="require"||n.callee.name==="define")||a.length===1&&l3(a[0],t.originalText)||!i&&c3(n,e.getParentNode()))){let u=[];return p3(e,d=>{u.push(r(d))}),Lc([i?"new ":"",e.call(r,"callee"),l,xg(e,t,r),Lc(["(",r3(", ",u),")"])])}let c=(t.parser==="babel"||t.parser==="babel-flow")&&n.callee&&n.callee.type==="Identifier"&&a3(n.callee.trailingComments);if(c&&(n.callee.trailingComments[0].printed=!0),!s&&!i&&o3(n.callee)&&!e.call(u=>Li(u,t),"callee"))return n3(e,t,r);let p=Lc([i?"new ":"",s?"import":e.call(r,"callee"),l,c?"/*:: ".concat(n.callee.trailingComments[0].value.slice(2).trim()," */"):"",xg(e,t,r),Pc(e,t,r)]);return s||u3(n.callee)?i3(p):p}};let{builders:{concat:Ys,join:d3,line:Rc,group:Mc,indent:jc,ifBreak:Ag}}=ae,{hasTrailingComment:g3,hasTrailingLineComment:m3,identity:y3}=Re,{getTypeParametersGroupId:D3}=Ac,{printTypeScriptModifiers:b3}=Cn;var E3={printInterface:function(e,t,r){let n=e.getValue(),i=[];(n.type==="DeclareInterface"||n.declare)&&i.push("declare "),n.type==="TSInterfaceDeclaration"&&i.push(n.abstract?"abstract ":"",b3(e,t,r)),i.push("interface");let s=[],l=[];n.type!=="InterfaceTypeAnnotation"&&s.push(" ",e.call(r,"id"),e.call(r,"typeParameters"));let a=n.typeParameters&&!m3(n.typeParameters);if(n.extends&&n.extends.length!==0&&l.push(a?Ag(" ",Rc,{groupId:D3(n.typeParameters)}):Rc,"extends ",(n.extends.length===1?y3:jc)(d3(Ys([",",Rc]),e.map(r,"extends")))),n.id&&g3(n.id)||n.extends&&n.extends.length!==0){let c=Ys(l);a?i.push(Mc(Ys(s.concat(Ag(jc(c),c))))):i.push(Mc(jc(Ys(s.concat(c)))))}else i.push(...s,...l);return i.push(" ",e.call(r,"body")),Mc(Ys(i))}};let{printComments:v3}=Fe,{getLast:C3}=ve,{builders:{concat:Zt,join:x3,line:Sg,softline:xu,group:Hn,indent:Au,align:A3,ifBreak:wg},utils:{normalizeParts:S3}}=ae,{hasLeadingOwnLineComment:w3,hasTrailingLineComment:F3,isBinaryish:Fg,isJSXNode:Tg,shouldFlatten:kg}=Re,T3=0;function _g(e,t,r,n,i){let s=[],l=e.getValue();if(Fg(l)){kg(l.operator,l.left.operator)?s=s.concat(e.call(x=>_g(x,t,r,!0,i),"left")):s.push(Hn(e.call(t,"left")));let a=Su(l),c=(l.operator==="|>"||l.type==="NGPipeExpression"||l.operator==="|"&&r.parser==="__vue_expression")&&!w3(r.originalText,l.right),p=l.type==="NGPipeExpression"?"|":l.operator,u=l.type==="NGPipeExpression"&&l.arguments.length!==0?Hn(Au(Zt([xu,": ",x3(Zt([xu,":",wg(" ")]),e.map(t,"arguments").map(x=>A3(2,Hn(x))))]))):"",d=Zt(a?[p," ",e.call(t,"right"),u]:[c?Sg:"",p,c?" ":Sg,e.call(t,"right"),u]),h=e.getParentNode(),b=F3(l.left),m=b||!(i&&l.type==="LogicalExpression")&&h.type!==l.type&&l.left.type!==l.type&&l.right.type!==l.type;s.push(c?"":" ",m?Hn(d,{shouldBreak:b}):d),n&&l.comments&&(s=S3(v3(e,()=>Zt(s),r).parts))}else s.push(Hn(e.call(t)));return s}function Su(e){return e.type==="LogicalExpression"&&(e.right.type==="ObjectExpression"&&e.right.properties.length!==0||e.right.type==="ArrayExpression"&&e.right.elements.length!==0||!!Tg(e.right))}var Pg={printBinaryishExpression:function(e,t,r){let n=e.getValue(),i=e.getParentNode(),s=e.getParentNode(1),l=n!==i.body&&(i.type==="IfStatement"||i.type==="WhileStatement"||i.type==="SwitchStatement"||i.type==="DoWhileStatement"),a=_g(e,r,t,!1,l);if(l)return Zt(a);if((i.type==="CallExpression"||i.type==="OptionalCallExpression")&&i.callee===n||i.type==="UnaryExpression"||(i.type==="MemberExpression"||i.type==="OptionalMemberExpression")&&!i.computed)return Hn(Zt([Au(Zt([xu,Zt(a)])),xu]));let c=i.type==="ReturnStatement"||i.type==="ThrowStatement"||i.type==="JSXExpressionContainer"&&s.type==="JSXAttribute"||n.operator!=="|"&&i.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(i.type==="NGRoot"&&t.parser==="__ng_binding"||i.type==="NGMicrosyntaxExpression"&&s.type==="NGMicrosyntax"&&s.body.length===1)||n===i.body&&i.type==="ArrowFunctionExpression"||n!==i.body&&i.type==="ForStatement"||i.type==="ConditionalExpression"&&s.type!=="ReturnStatement"&&s.type!=="ThrowStatement"&&s.type!=="CallExpression"&&s.type!=="OptionalCallExpression"||i.type==="TemplateLiteral",p=i.type==="AssignmentExpression"||i.type==="VariableDeclarator"||i.type==="ClassProperty"||i.type==="FieldDefinition"||i.type==="TSAbstractClassProperty"||i.type==="ClassPrivateProperty"||i.type==="ObjectProperty"||i.type==="Property",u=Fg(n.left)&&kg(n.operator,n.left.operator);if(c||Su(n)&&!u||!Su(n)&&p)return Hn(Zt(a));if(a.length===0)return"";let d=Tg(n.right),h=a.findIndex(A=>typeof A!="string"&&A.type==="group"),b=a.slice(0,h===-1?1:h+1),m=Zt(a.slice(b.length,d?-1:void 0)),x=Symbol("logicalChain-"+ ++T3),F=Hn(Zt([...b,Au(m)]),{id:x});if(!d)return F;let E=C3(a);return Hn(Zt([F,wg(Au(E),E,{groupId:x})]))},shouldInlineLogicalExpression:Su};let{builders:{concat:Ks,line:Bg,group:Ng,indent:Og}}=ae,{hasLeadingOwnLineComment:k3,isBinaryish:Ig,isMemberExpressionChain:_3,isStringLiteral:Lg}=Re,{shouldInlineLogicalExpression:Rg}=Pg;function Vc(e,t,r,n,i,s){if(!n)return t;let l=Mg(e,n,i,s);return Ng(Ks([t,r,l]))}function Mg(e,t,r,n){return k3(n.originalText,t)?Og(Ks([Bg,r])):Ig(t)&&!Rg(t)||t.type==="ConditionalExpression"&&Ig(t.test)&&!Rg(t.test)||t.type==="StringLiteralTypeAnnotation"||t.type==="ClassExpression"&&t.decorators&&t.decorators.length||(e.type==="Identifier"||Lg(e)||e.type==="MemberExpression")&&(Lg(t)||_3(t))&&n.parser!=="json"&&n.parser!=="json5"||t.type==="SequenceExpression"?Ng(Og(Ks([Bg,r]))):Ks([" ",r])}var P3={printVariableDeclarator:function(e,t,r){let n=e.getValue();return Vc(n.id,e.call(r,"id")," =",n.init,n.init&&e.call(r,"init"),t)},printAssignmentExpression:function(e,t,r){let n=e.getValue();return Vc(n.left,e.call(r,"left"),Ks([" ",n.operator]),n.right,e.call(r,"right"),t)},printAssignment:Vc,printAssignmentRight:Mg};let{isNextLineEmpty:B3}=ve,{builders:{concat:N3,join:O3,hardline:jg}}=ae,{classChildNeedsASIProtection:I3,classPropMayCauseASIProblems:L3,getLeftSidePathName:R3,hasNakedLeftSide:M3,isJSXNode:j3,isLastStatement:V3,isTheOnlyJSXElementInMarkdown:U3}=Re,{locEnd:q3}=Ft,{shouldPrintParamsWithoutParens:$3}=Tc;function W3({path:e,index:t,bodyNode:r,isClass:n},i,s){let l=e.getValue();if(!l||l.type==="EmptyStatement")return;let a=s(e),c=i.originalText,p=[];if(i.semi||n||U3(i,e)||!function(u,d){return u.getNode().type!=="ExpressionStatement"?!1:u.call(h=>Vg(h,d),"expression")}(e,i)?p.push(a):l.comments&&l.comments.some(u=>u.leading)?p.push(s(e,{needsSemi:!0})):p.push(";",a),!i.semi&&n){if(L3(e))p.push(";");else if(l.type==="ClassProperty"||l.type==="FieldDefinition"){let u=r.body[t+1];I3(u)&&p.push(";")}}return B3(c,l,q3)&&!V3(e)&&p.push(jg),N3(p)}function Vg(e,t){let r=e.getValue();return!!(Li(e,t)||r.type==="ParenthesizedExpression"||r.type==="TypeCastExpression"||r.type==="ArrowFunctionExpression"&&!$3(e,t)||r.type==="ArrayExpression"||r.type==="ArrayPattern"||r.type==="UnaryExpression"&&r.prefix&&(r.operator==="+"||r.operator==="-")||r.type==="TemplateLiteral"||r.type==="TemplateElement"||j3(r)||r.type==="BindExpression"&&!r.object||r.type==="RegExpLiteral"||r.type==="Literal"&&r.pattern||r.type==="Literal"&&r.regex)||!!M3(r)&&e.call(n=>Vg(n,t),...R3(e,r))}var Ug={printStatementSequence:function(e,t,r){let n=e.getNode(),i=n.type==="ClassBody",s=e.map((l,a)=>W3({path:e,index:a,bodyNode:n,isClass:i},t,r)).filter(Boolean);return O3(jg,s)}};let{printDanglingComments:G3}=Fe,{isNextLineEmpty:H3}=ve,{builders:{concat:wu,hardline:Fu,indent:qg}}=ae,{hasDanglingComments:z3}=Re,{locEnd:J3}=Ft,{printStatementSequence:X3}=Ug;var Y3={printBlock:function(e,t,r){let n=e.getValue(),i=[],s=t.semi?";":"",l=e.call(d=>X3(d,t,r),"body");n.type==="StaticBlock"&&i.push("static ");let a=n.body.some(d=>d.type!=="EmptyStatement"),c=n.directives&&n.directives.length>0,p=e.getParentNode(),u=e.getParentNode(1);return a||c||z3(n)||p.type!=="ArrowFunctionExpression"&&p.type!=="FunctionExpression"&&p.type!=="FunctionDeclaration"&&p.type!=="ObjectMethod"&&p.type!=="ClassMethod"&&p.type!=="ClassPrivateMethod"&&p.type!=="ForStatement"&&p.type!=="WhileStatement"&&p.type!=="DoWhileStatement"&&p.type!=="DoExpression"&&(p.type!=="CatchClause"||u.finalizer)&&p.type!=="TSModuleDeclaration"&&p.type!=="TSDeclareFunction"&&n.type!=="StaticBlock"?(i.push("{"),c&&e.each(d=>{i.push(qg(wu([Fu,r(d),s]))),H3(t.originalText,d.getValue(),J3)&&i.push(Fu)},"directives"),a&&i.push(qg(wu([Fu,l]))),i.push(G3(e,t)),i.push(Fu,"}"),wu(i)):wu([...i,"{}"])}};let{hasNewline:K3}=ve,{builders:{concat:$g,join:Q3,hardline:Wg}}=ae,{isLineComment:Z3,isBlockComment:e5}=Re,{locStart:Gg,locEnd:Hg}=Ft;var t5={printComment:function(e,t){let r=e.getValue();if(Z3(r))return t.originalText.slice(Gg(r),Hg(r)).trimEnd();if(e5(r)){if(function(s){let l="*".concat(s.value,"*").split(`
|
|
148
148
|
`);return l.length>1&&l.every(a=>a.trim()[0]==="*")}(r)){let s=function(l){let a=l.value.split(`
|
|
149
|
-
`);return q1(["/*",Y3($1,a.map((c,p)=>p===0?c.trimEnd():" "+(p<a.length-1?c.trim():c.trimStart()))),"*/"])}(r);return r.trailing&&!X3(t.originalText,W1(r),{backwards:!0})?q1([$1,s]):s}let n=G1(r),i=t.originalText.slice(n-3,n)==="*-/";return"/*"+r.value+(i?"*-/":"*/")}throw new Error("Not a comment: "+JSON.stringify(r))}};let{hasNewline:H1,hasNewlineInRange:e5,getLast:t5,printString:n5,printNumber:Qs,isNextLineEmpty:Vc}=Ee,{builders:{concat:I,join:Sn,line:jt,hardline:$e,softline:be,literalline:r5,group:ue,indent:Oe,align:i5,conditionalGroup:s5,ifBreak:br},utils:{isEmpty:a5}}=ae,{insertPragma:u5}=nc,{printHtmlBinding:o5,isVueEventBindingExpression:l5}=CC,{getFunctionParameters:c5,getCallArguments:p5,getParentExportDeclaration:f5,getTypeScriptMappedTypeModifier:z1,hasDanglingComments:h5,hasFlowShorthandAnnotationComment:d5,hasLeadingOwnLineComment:J1,hasNewlineBetweenOrAfterDecorators:g5,hasNgSideEffect:m5,hasPrettierIgnore:y5,hasTrailingComment:D5,isExportDeclaration:b5,isFunctionNotation:E5,isGetterOrSetter:v5,isLiteral:C5,isNgForOf:X1,isObjectType:Tu,isObjectTypePropertyAFunction:x5,isTheOnlyJSXElementInMarkdown:A5,isTSXFile:S5,isBlockComment:Uc,needsHardlineAfterDanglingComment:w5,rawText:F5,shouldPrintComma:ku}=Re,{locStart:cn,locEnd:qi}=Ft,{printOptionalToken:Xr,printBindExpressionCallee:T5,printTypeScriptModifiers:qc,printDecorators:k5,printFlowDeclaration:$i,adjustClause:Er}=Cn,{printImportDeclaration:_5,printExportDeclaration:P5,printExportAllDeclaration:B5,printModuleSpecifier:N5}=RC,{printFunctionParameters:$c}=lc,{printTemplateLiteral:O5}=Ms,{printArray:I5,printArrayItems:Wc}=Dx,{printObject:L5}=Fx,{printTypeAnnotation:_u,shouldHugType:R5}=fu,{printJsxElement:M5,printJsxAttribute:j5,printJsxOpeningElement:V5,printJsxClosingElement:U5,printJsxOpeningClosingFragment:q5,printJsxExpressionContainer:$5,printJsxEmptyExpression:W5,printJsxSpreadAttribute:G5,printJsxSpreadChild:H5}=jx,{printClass:Y1,printClassMethod:z5}=SA,{printTypeParameters:Pu}=xc,{printPropertyKey:Bu}=Zd,{printFunctionDeclaration:K1,printArrowFunctionExpression:J5,printMethod:Q1,printReturnAndThrowArgument:X5}=Fc,{printCallExpression:Y5}=p3,{printInterface:K5}=D3,{printVariableDeclarator:Q5,printAssignmentExpression:Z5,printAssignment:eS,printAssignmentRight:Gc}=k3,{printBinaryishExpression:tS}=_1,{printStatementSequence:Hc}=V1,{printMemberExpression:nS}=m1,{printBlock:rS}=J3,{printComment:iS}=Z3;function Nu(e,t,r){let n=F5(e),i=r||e.type==="DirectiveLiteral";return n5(n,t,i)}function Z1(e){let t=e.flags.split("").sort().join("");return"/".concat(e.pattern,"/").concat(t)}var sS={preprocess:ld,print:function(e,t,r,n){let i=e.getValue(),s=!1,l=function(u,d,h,b){let m=u.getValue(),x=d.semi?";":"";if(!m)return"";if(typeof m=="string")return m;let F=o5(u,d,h);if(F)return F;let E=[];switch(m.type){case"JsExpressionRoot":return u.call(h,"node");case"JsonRoot":return I([u.call(h,"node"),$e]);case"File":return m.program&&m.program.interpreter&&E.push(u.call(A=>A.call(h,"interpreter"),"program")),E.push(u.call(h,"program")),I(E);case"Program":{let A=!m.body.every(({type:P})=>P==="EmptyStatement")||m.comments;if(m.directives){let P=m.directives.length;u.each((L,N)=>{E.push(h(L),x,$e),(N<P-1||A)&&Vc(d.originalText,L.getValue(),qi)&&E.push($e)},"directives")}return E.push(u.call(P=>Hc(P,d,h),"body")),E.push(Fe.printDanglingComments(u,d,!0)),A&&E.push($e),I(E)}case"EmptyStatement":return"";case"ExpressionStatement":if(m.directive)return I([Nu(m.expression,d,!0),x]);if(d.parser==="__vue_event_binding"){let A=u.getParentNode();if(A.type==="Program"&&A.body.length===1&&A.body[0]===m)return I([u.call(h,"expression"),l5(m.expression)?";":""])}return I([u.call(h,"expression"),A5(d,u)?"":x]);case"ParenthesizedExpression":return m.expression.comments?ue(I(["(",Oe(I([be,u.call(h,"expression")])),be,")"])):I(["(",u.call(h,"expression"),")"]);case"AssignmentExpression":return Z5(u,d,h);case"VariableDeclarator":return Q5(u,d,h);case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":return tS(u,d,h);case"AssignmentPattern":return I([u.call(h,"left")," = ",u.call(h,"right")]);case"TSTypeAssertion":{let A=!(m.expression.type==="ArrayExpression"||m.expression.type==="ObjectExpression"),P=ue(I(["<",Oe(I([be,u.call(h,"typeAnnotation")])),be,">"])),L=I([br("("),Oe(I([be,u.call(h,"expression")])),be,br(")")]);return A?s5([I([P,u.call(h,"expression")]),I([P,ue(L,{shouldBreak:!0})]),I([P,u.call(h,"expression")])]):ue(I([P,u.call(h,"expression")]))}case"OptionalMemberExpression":case"MemberExpression":return nS(u,d,h);case"MetaProperty":return I([u.call(h,"meta"),".",u.call(h,"property")]);case"BindExpression":return m.object&&E.push(u.call(h,"object")),E.push(ue(Oe(I([be,T5(u,d,h)])))),I(E);case"Identifier":return I([m.name,Xr(u),_u(u,d,h)]);case"V8IntrinsicIdentifier":return I(["%",m.name]);case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return I(["...",u.call(h,"argument"),_u(u,d,h)]);case"FunctionDeclaration":case"FunctionExpression":return E.push(K1(u,h,d,b&&b.expandLastArg&&p5(u.getParentNode()).length>1)),m.body||E.push(x),I(E);case"ArrowFunctionExpression":return J5(u,d,h,b);case"YieldExpression":return E.push("yield"),m.delegate&&E.push("*"),m.argument&&E.push(" ",u.call(h,"argument")),I(E);case"AwaitExpression":{E.push("await"),m.argument&&E.push(" ",u.call(h,"argument"));let A=u.getParentNode();return(A.type==="CallExpression"||A.type==="OptionalCallExpression")&&A.callee===m||(A.type==="MemberExpression"||A.type==="OptionalMemberExpression")&&A.object===m?ue(I([Oe(I([be,I(E)])),be])):I(E)}case"TSExportAssignment":return I(["export = ",u.call(h,"expression"),x]);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"DeclareExportDeclaration":return P5(u,d,h);case"ExportAllDeclaration":case"DeclareExportAllDeclaration":return B5(u,d,h);case"ImportDeclaration":return _5(u,d,h);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return N5(u,d,h);case"ImportAttribute":return I([u.call(h,"key"),": ",u.call(h,"value")]);case"Import":return"import";case"TSModuleBlock":case"BlockStatement":case"StaticBlock":return rS(u,d,h);case"ThrowStatement":case"ReturnStatement":return I([m.type==="ReturnStatement"?"return":"throw",X5(u,d,h)]);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return Y5(u,d,h);case"ObjectTypeInternalSlot":return I([m.static?"static ":"","[[",u.call(h,"id"),"]]",Xr(u),m.method?"":": ",u.call(h,"value")]);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":case"RecordExpression":return L5(u,d,h);case"ObjectProperty":case"Property":return m.method||m.kind==="get"||m.kind==="set"?Q1(u,d,h):(m.shorthand?E.push(u.call(h,"value")):E.push(eS(m.key,Bu(u,d,h),":",m.value,u.call(h,"value"),d)),I(E));case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":case"TSAbstractMethodDefinition":case"TSDeclareMethod":return z5(u,d,h);case"ObjectMethod":return Q1(u,d,h);case"Decorator":return I(["@",u.call(h,"expression"),u.call(h,"callee")]);case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return I5(u,d,h);case"SequenceExpression":{let A=u.getParentNode(0);if(A.type==="ExpressionStatement"||A.type==="ForStatement"){let P=[];return u.each(L=>{L.getName()===0?P.push(h(L)):P.push(",",Oe(I([jt,h(L)])))},"expressions"),ue(I(P))}return ue(I([Sn(I([",",jt]),u.map(h,"expressions"))]))}case"ThisExpression":return"this";case"Super":return"super";case"NullLiteral":return"null";case"RegExpLiteral":return Z1(m);case"NumericLiteral":return Qs(m.extra.raw);case"DecimalLiteral":return Qs(m.value)+"m";case"BigIntLiteral":return(m.bigint||m.extra.raw).toLowerCase();case"BooleanLiteral":case"StringLiteral":case"Literal":return m.regex?Z1(m.regex):m.bigint?m.raw.toLowerCase():typeof m.value=="number"?Qs(m.raw):typeof m.value!="string"?""+m.value:Nu(m,d);case"Directive":return u.call(h,"value");case"DirectiveLiteral":return Nu(m,d);case"UnaryExpression":return E.push(m.operator),/[a-z]$/.test(m.operator)&&E.push(" "),m.argument.comments&&m.argument.comments.length>0?E.push(ue(I(["(",Oe(I([be,u.call(h,"argument")])),be,")"]))):E.push(u.call(h,"argument")),I(E);case"UpdateExpression":return E.push(u.call(h,"argument"),m.operator),m.prefix&&E.reverse(),I(E);case"ConditionalExpression":return yd(u,d,h,{beforeParts:()=>[u.call(h,"test")],afterParts:A=>[A?be:""],shouldCheckJsx:!0,conditionalNodeType:"ConditionalExpression",consequentNodePropertyName:"consequent",alternateNodePropertyName:"alternate",testNodePropertyNames:["test"]});case"VariableDeclaration":{let A=u.map(U=>h(U),"declarations"),P=u.getParentNode(),L=P.type==="ForStatement"||P.type==="ForInStatement"||P.type==="ForOfStatement",N=m.declarations.some(U=>U.init),R;return A.length!==1||m.declarations[0].comments?A.length>0&&(R=Oe(A[0])):R=A[0],E=[m.declare?"declare ":"",m.kind,R?I([" ",R]):"",Oe(I(A.slice(1).map(U=>I([",",N&&!L?$e:jt,U]))))],L&&P.body!==m||E.push(x),ue(I(E))}case"TSTypeAliasDeclaration":{m.declare&&E.push("declare ");let A=Gc(m.id,m.typeAnnotation,m.typeAnnotation&&u.call(h,"typeAnnotation"),d);return E.push("type ",u.call(h,"id"),u.call(h,"typeParameters")," =",A,x),ue(I(E))}case"WithStatement":return ue(I(["with (",u.call(h,"object"),")",Er(m.body,u.call(h,"body"))]));case"IfStatement":{let A=Er(m.consequent,u.call(h,"consequent")),P=ue(I(["if (",ue(I([Oe(I([be,u.call(h,"test")])),be])),")",A]));if(E.push(P),m.alternate){let L=D5(m.consequent)&&m.consequent.comments.some(R=>R.trailing&&!Uc(R))||w5(m),N=m.consequent.type==="BlockStatement"&&!L;E.push(N?" ":$e),h5(m)&&E.push(Fe.printDanglingComments(u,d,!0),L?$e:" "),E.push("else",ue(Er(m.alternate,u.call(h,"alternate"),m.alternate.type==="IfStatement")))}return I(E)}case"ForStatement":{let A=Er(m.body,u.call(h,"body")),P=Fe.printDanglingComments(u,d,!0),L=P?I([P,be]):"";return m.init||m.test||m.update?I([L,ue(I(["for (",ue(I([Oe(I([be,u.call(h,"init"),";",jt,u.call(h,"test"),";",jt,u.call(h,"update")])),be])),")",A]))]):I([L,ue(I(["for (;;)",A]))])}case"WhileStatement":return ue(I(["while (",ue(I([Oe(I([be,u.call(h,"test")])),be])),")",Er(m.body,u.call(h,"body"))]));case"ForInStatement":return ue(I(["for (",u.call(h,"left")," in ",u.call(h,"right"),")",Er(m.body,u.call(h,"body"))]));case"ForOfStatement":return ue(I(["for",m.await?" await":""," (",u.call(h,"left")," of ",u.call(h,"right"),")",Er(m.body,u.call(h,"body"))]));case"DoWhileStatement":{let A=Er(m.body,u.call(h,"body"));return E=[ue(I(["do",A]))],m.body.type==="BlockStatement"?E.push(" "):E.push($e),E.push("while ("),E.push(ue(I([Oe(I([be,u.call(h,"test")])),be])),")",x),I(E)}case"DoExpression":return I(["do ",u.call(h,"body")]);case"BreakStatement":return E.push("break"),m.label&&E.push(" ",u.call(h,"label")),E.push(x),I(E);case"ContinueStatement":return E.push("continue"),m.label&&E.push(" ",u.call(h,"label")),E.push(x),I(E);case"LabeledStatement":return m.body.type==="EmptyStatement"?I([u.call(h,"label"),":;"]):I([u.call(h,"label"),": ",u.call(h,"body")]);case"TryStatement":return I(["try ",u.call(h,"block"),m.handler?I([" ",u.call(h,"handler")]):"",m.finalizer?I([" finally ",u.call(h,"finalizer")]):""]);case"CatchClause":if(m.param){let A=m.param.comments&&m.param.comments.some(L=>!Uc(L)||L.leading&&H1(d.originalText,qi(L))||L.trailing&&H1(d.originalText,cn(L),{backwards:!0})),P=u.call(h,"param");return I(["catch ",I(A?["(",Oe(I([be,P])),be,") "]:["(",P,") "]),u.call(h,"body")])}return I(["catch ",u.call(h,"body")]);case"SwitchStatement":return I([ue(I(["switch (",Oe(I([be,u.call(h,"discriminant")])),be,")"]))," {",m.cases.length>0?Oe(I([$e,Sn($e,u.map(A=>{let P=A.getValue();return I([A.call(h),m.cases.indexOf(P)!==m.cases.length-1&&Vc(d.originalText,P,qi)?$e:""])},"cases"))])):"",$e,"}"]);case"SwitchCase":{m.test?E.push("case ",u.call(h,"test"),":"):E.push("default:");let A=m.consequent.filter(P=>P.type!=="EmptyStatement");if(A.length>0){let P=u.call(L=>Hc(L,d,h),"consequent");E.push(A.length===1&&A[0].type==="BlockStatement"?I([" ",P]):Oe(I([$e,P])))}return I(E)}case"DebuggerStatement":return I(["debugger",x]);case"JSXAttribute":return j5(u,d,h);case"JSXIdentifier":return""+m.name;case"JSXNamespacedName":return Sn(":",[u.call(h,"namespace"),u.call(h,"name")]);case"JSXMemberExpression":return Sn(".",[u.call(h,"object"),u.call(h,"property")]);case"TSQualifiedName":return Sn(".",[u.call(h,"left"),u.call(h,"right")]);case"JSXSpreadAttribute":return G5(u,d,h);case"JSXSpreadChild":return H5(u,d,h);case"JSXExpressionContainer":return $5(u,d,h);case"JSXFragment":case"JSXElement":return M5(u,d,h);case"JSXOpeningElement":return V5(u,d,h);case"JSXClosingElement":return U5(u,d,h);case"JSXOpeningFragment":case"JSXClosingFragment":return q5(u,d);case"JSXText":throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":return W5(u,d);case"ClassBody":return m.comments||m.body.length!==0?I(["{",m.body.length>0?Oe(I([$e,u.call(A=>Hc(A,d,h),"body")])):Fe.printDanglingComments(u,d),$e,"}"]):"{}";case"ClassProperty":case"FieldDefinition":case"TSAbstractClassProperty":case"ClassPrivateProperty":return m.decorators&&m.decorators.length!==0&&E.push(k5(u,d,h)),m.accessibility&&E.push(m.accessibility+" "),m.declare&&E.push("declare "),m.static&&E.push("static "),(m.type==="TSAbstractClassProperty"||m.abstract)&&E.push("abstract "),m.readonly&&E.push("readonly "),m.variance&&E.push(u.call(h,"variance")),E.push(Bu(u,d,h),Xr(u),_u(u,d,h)),m.value&&E.push(" =",Gc(m.key,m.value,u.call(h,"value"),d)),E.push(x),ue(I(E));case"ClassDeclaration":case"ClassExpression":return m.declare&&E.push("declare "),E.push(Y1(u,d,h)),I(E);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return E.push(u.call(h,"expression")),m.typeParameters&&E.push(u.call(h,"typeParameters")),I(E);case"TemplateElement":return Sn(r5,m.value.raw.split(/\r?\n/g));case"TSTemplateLiteralType":case"TemplateLiteral":return O5(u,h,d);case"TaggedTemplateExpression":return I([u.call(h,"tag"),u.call(h,"typeParameters"),u.call(h,"quasi")]);case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(m.type));case"TypeAnnotation":case"TSTypeAnnotation":return m.typeAnnotation?u.call(h,"typeAnnotation"):"";case"TSNamedTupleMember":return I([u.call(h,"label"),m.optional?"?":"",": ",u.call(h,"elementType")]);case"TSTupleType":case"TupleTypeAnnotation":{let A=m.type==="TSTupleType"?"elementTypes":"types",P=m[A].length>0&&t5(m[A]).type==="TSRestType";return ue(I(["[",Oe(I([be,Wc(u,d,A,h)])),br(ku(d,"all")&&!P?",":""),Fe.printDanglingComments(u,d,!0),be,"]"]))}case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return I([u.call(h,"elementType"),"[]"]);case"BooleanLiteralTypeAnnotation":return""+m.value;case"DeclareClass":return $i(u,Y1(u,d,h));case"TSDeclareFunction":return I([m.declare?"declare ":"",K1(u,h,d),x]);case"DeclareFunction":return $i(u,I(["function ",u.call(h,"id"),m.predicate?" ":"",u.call(h,"predicate"),x]));case"DeclareModule":return $i(u,I(["module ",u.call(h,"id")," ",u.call(h,"body")]));case"DeclareModuleExports":return $i(u,I(["module.exports",": ",u.call(h,"typeAnnotation"),x]));case"DeclareVariable":return $i(u,I(["var ",u.call(h,"id"),x]));case"DeclareOpaqueType":case"OpaqueType":return E.push("opaque type ",u.call(h,"id"),u.call(h,"typeParameters")),m.supertype&&E.push(": ",u.call(h,"supertype")),m.impltype&&E.push(" = ",u.call(h,"impltype")),E.push(x),m.type==="DeclareOpaqueType"?$i(u,I(E)):I(E);case"EnumDeclaration":return I(["enum ",u.call(h,"id")," ",u.call(h,"body")]);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if(m.type==="EnumSymbolBody"||m.explicitType){let A=null;switch(m.type){case"EnumBooleanBody":A="boolean";break;case"EnumNumberBody":A="number";break;case"EnumStringBody":A="string";break;case"EnumSymbolBody":A="symbol"}E.push("of ",A," ")}if(m.members.length!==0||m.hasUnknownMembers){let A=m.members.length?[$e,Wc(u,d,"members",h),m.hasUnknownMembers||ku(d)?",":""]:[];E.push(ue(I(["{",Oe(I([...A,...m.hasUnknownMembers?[$e,"..."]:[]])),Fe.printDanglingComments(u,d,!0),$e,"}"])))}else E.push(ue(I(["{",Fe.printDanglingComments(u,d),be,"}"])));return I(E);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return I([u.call(h,"id")," = ",typeof m.init=="object"?u.call(h,"init"):String(m.init)]);case"EnumDefaultedMember":return u.call(h,"id");case"FunctionTypeAnnotation":case"TSFunctionType":{let A=u.getParentNode(0),P=u.getParentNode(1),L=u.getParentNode(2),N=m.type==="TSFunctionType"||!((A.type==="ObjectTypeProperty"||A.type==="ObjectTypeInternalSlot")&&!A.variance&&!A.optional&&cn(A)===cn(m)||A.type==="ObjectTypeCallProperty"||L&&L.type==="DeclareFunction"),R=N&&(A.type==="TypeAnnotation"||A.type==="TSTypeAnnotation"),U=R&&N&&(A.type==="TypeAnnotation"||A.type==="TSTypeAnnotation")&&P.type==="ArrowFunctionExpression";return x5(A)&&(N=!0,R=!0),U&&E.push("("),E.push($c(u,h,d,!1,!0)),(m.returnType||m.predicate||m.typeAnnotation)&&E.push(N?" => ":": ",u.call(h,"returnType"),u.call(h,"predicate"),u.call(h,"typeAnnotation")),U&&E.push(")"),ue(I(E))}case"TSRestType":return I(["...",u.call(h,"typeAnnotation")]);case"TSOptionalType":return I([u.call(h,"typeAnnotation"),"?"]);case"FunctionTypeParam":{let A=m.name?u.call(h,"name"):u.getParentNode().this===m?"this":"";return I([A,Xr(u),A?": ":"",u.call(h,"typeAnnotation")])}case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"TSInterfaceDeclaration":return K5(u,d,h);case"ClassImplements":case"InterfaceExtends":return I([u.call(h,"id"),u.call(h,"typeParameters")]);case"TSClassImplements":return I([u.call(h,"expression"),u.call(h,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":{let A=u.map(h,"types"),P=[],L=!1;for(let N=0;N<A.length;++N)N===0?P.push(A[N]):Tu(m.types[N-1])&&Tu(m.types[N])?P.push(I([" & ",L?Oe(A[N]):A[N]])):Tu(m.types[N-1])||Tu(m.types[N])?(N>1&&(L=!0),P.push(" & ",N>1?Oe(A[N]):A[N])):P.push(Oe(I([" &",jt,A[N]])));return ue(I(P))}case"TSUnionType":case"UnionTypeAnnotation":{let A=u.getParentNode(),P=!(A.type==="TypeParameterInstantiation"||A.type==="TSTypeParameterInstantiation"||A.type==="GenericTypeAnnotation"||A.type==="TSTypeReference"||A.type==="TSTypeAssertion"||A.type==="TupleTypeAnnotation"||A.type==="TSTupleType"||A.type==="FunctionTypeParam"&&!A.name&&u.getParentNode(1).this!==A||(A.type==="TypeAlias"||A.type==="VariableDeclarator"||A.type==="TSTypeAliasDeclaration")&&J1(d.originalText,m)),L=R5(m),N=u.map(z=>{let q=z.call(h);return L||(q=i5(2,q)),Fe.printComments(z,()=>q,d)},"types");if(L)return Sn(" | ",N);let R=P&&!J1(d.originalText,m),U=I([br(I([R?jt:"","| "])),Sn(I([jt,"| "]),N)]);return Li(u,d)?ue(I([Oe(U),be])):A.type==="TupleTypeAnnotation"&&A.types.length>1||A.type==="TSTupleType"&&A.elementTypes.length>1?ue(I([Oe(I([br(I(["(",be])),U])),be,br(")")])):ue(P?Oe(U):U)}case"NullableTypeAnnotation":return I(["?",u.call(h,"typeAnnotation")]);case"Variance":{let{kind:A}=m;return qn.ok(A==="plus"||A==="minus"),A==="plus"?"+":"-"}case"ObjectTypeCallProperty":return m.static&&E.push("static "),E.push(u.call(h,"value")),I(E);case"ObjectTypeIndexer":return I([m.variance?u.call(h,"variance"):"","[",u.call(h,"id"),m.id?": ":"",u.call(h,"key"),"]: ",u.call(h,"value")]);case"ObjectTypeProperty":{let A="";return m.proto?A="proto ":m.static&&(A="static "),I([A,v5(m)?m.kind+" ":"",m.variance?u.call(h,"variance"):"",Bu(u,d,h),Xr(u),E5(m)?"":": ",u.call(h,"value")])}case"QualifiedTypeIdentifier":return I([u.call(h,"qualification"),".",u.call(h,"id")]);case"StringLiteralTypeAnnotation":return Nu(m,d);case"NumberLiteralTypeAnnotation":qn.strictEqual(typeof m.value,"number");case"BigIntLiteralTypeAnnotation":return m.extra!=null?Qs(m.extra.raw):Qs(m.raw);case"DeclareTypeAlias":case"TypeAlias":{(m.type==="DeclareTypeAlias"||m.declare)&&E.push("declare ");let A=Gc(m.id,m.right,u.call(h,"right"),d);return E.push("type ",u.call(h,"id"),u.call(h,"typeParameters")," =",A,x),ue(I(E))}case"TypeCastExpression":return I(["(",u.call(h,"expression"),_u(u,d,h),")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":{let A=Pu(u,d,h,"params");if(d.parser==="flow"){let P=cn(m),L=qi(m),N=d.originalText.lastIndexOf("/*",P),R=d.originalText.indexOf("*/",L);if(N!==-1&&R!==-1){let U=d.originalText.slice(N+2,R).trim();if(U.startsWith("::")&&!U.includes("/*")&&!U.includes("*/"))return I(["/*:: ",A," */"])}}return A}case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Pu(u,d,h,"params");case"TSTypeParameter":case"TypeParameter":{let A=u.getParentNode();if(A.type==="TSMappedType")return E.push("[",u.call(h,"name")),m.constraint&&E.push(" in ",u.call(h,"constraint")),A.nameType&&E.push(" as ",u.callParent(L=>L.call(h,"nameType"))),E.push("]"),I(E);m.variance&&E.push(u.call(h,"variance")),E.push(u.call(h,"name")),m.bound&&(E.push(": "),E.push(u.call(h,"bound"))),m.constraint&&E.push(" extends ",u.call(h,"constraint")),m.default&&E.push(" = ",u.call(h,"default"));let P=u.getNode(2);return c5(A).length===1&&S5(d)&&!m.constraint&&P.type==="ArrowFunctionExpression"&&E.push(","),I(E)}case"TypeofTypeAnnotation":return I(["typeof ",u.call(h,"argument")]);case"InferredPredicate":return"%checks";case"DeclaredPredicate":return I(["%checks(",u.call(h,"value"),")"]);case"TSAbstractKeyword":return"abstract";case"AnyTypeAnnotation":case"TSAnyKeyword":return"any";case"TSAsyncKeyword":return"async";case"BooleanTypeAnnotation":case"TSBooleanKeyword":return"boolean";case"BigIntTypeAnnotation":case"TSBigIntKeyword":return"bigint";case"TSConstKeyword":return"const";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"NullLiteralTypeAnnotation":case"TSNullKeyword":return"null";case"TSNeverKeyword":return"never";case"NumberTypeAnnotation":case"TSNumberKeyword":return"number";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"SymbolTypeAnnotation":case"TSSymbolKeyword":return"symbol";case"TSStaticKeyword":return"static";case"StringTypeAnnotation":case"TSStringKeyword":return"string";case"TSUndefinedKeyword":return"undefined";case"TSUnknownKeyword":return"unknown";case"VoidTypeAnnotation":case"TSVoidKeyword":return"void";case"TSAsExpression":return I([u.call(h,"expression")," as ",u.call(h,"typeAnnotation")]);case"TSArrayType":return I([u.call(h,"elementType"),"[]"]);case"TSPropertySignature":return m.export&&E.push("export "),m.accessibility&&E.push(m.accessibility+" "),m.static&&E.push("static "),m.readonly&&E.push("readonly "),E.push(Bu(u,d,h),Xr(u)),m.typeAnnotation&&(E.push(": "),E.push(u.call(h,"typeAnnotation"))),m.initializer&&E.push(" = ",u.call(h,"initializer")),I(E);case"TSParameterProperty":return m.accessibility&&E.push(m.accessibility+" "),m.export&&E.push("export "),m.static&&E.push("static "),m.readonly&&E.push("readonly "),E.push(u.call(h,"parameter")),I(E);case"GenericTypeAnnotation":case"TSTypeReference":return I([u.call(h,m.type==="TSTypeReference"?"typeName":"id"),Pu(u,d,h,"typeParameters")]);case"TSTypeQuery":return I(["typeof ",u.call(h,"exprName")]);case"TSIndexSignature":{let A=u.getParentNode(),P=m.parameters.length>1?br(ku(d)?",":""):"",L=ue(I([Oe(I([be,Sn(I([", ",be]),u.map(h,"parameters"))])),P,be]));return I([m.export?"export ":"",m.accessibility?I([m.accessibility," "]):"",m.static?"static ":"",m.readonly?"readonly ":"",m.declare?"declare ":"","[",m.parameters?L:"",m.typeAnnotation?"]: ":"]",m.typeAnnotation?u.call(h,"typeAnnotation"):"",A.type==="ClassBody"?x:""])}case"TSTypePredicate":return I([m.asserts?"asserts ":"",u.call(h,"parameterName"),m.typeAnnotation?I([" is ",u.call(h,"typeAnnotation")]):""]);case"TSNonNullExpression":return I([u.call(h,"expression"),"!"]);case"ThisTypeAnnotation":case"TSThisType":return"this";case"TSImportType":return I([m.isTypeOf?"typeof ":"","import(",u.call(h,m.parameter?"parameter":"argument"),")",m.qualifier?I([".",u.call(h,"qualifier")]):"",Pu(u,d,h,"typeParameters")]);case"TSLiteralType":return u.call(h,"literal");case"TSIndexedAccessType":return I([u.call(h,"objectType"),"[",u.call(h,"indexType"),"]"]);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if(m.type!=="TSCallSignatureDeclaration"&&E.push("new "),E.push(ue($c(u,h,d,!1,!0))),m.returnType||m.typeAnnotation){let A=m.type==="TSConstructorType";E.push(A?" => ":": ",u.call(h,"returnType"),u.call(h,"typeAnnotation"))}return I(E);case"TSTypeOperator":return I([m.operator," ",u.call(h,"typeAnnotation")]);case"TSMappedType":{let A=e5(d.originalText,cn(m),qi(m));return ue(I(["{",Oe(I([d.bracketSpacing?jt:be,m.readonly?I([z1(m.readonly,"readonly")," "]):"",qc(u,d,h),u.call(h,"typeParameter"),m.optional?z1(m.optional,"?"):"",m.typeAnnotation?": ":"",u.call(h,"typeAnnotation"),br(x,"")])),Fe.printDanglingComments(u,d,!0),d.bracketSpacing?jt:be,"}"]),{shouldBreak:A})}case"TSMethodSignature":return E.push(m.accessibility?I([m.accessibility," "]):"",m.export?"export ":"",m.static?"static ":"",m.readonly?"readonly ":"",m.computed?"[":"",u.call(h,"key"),m.computed?"]":"",Xr(u),$c(u,h,d,!1,!0)),(m.returnType||m.typeAnnotation)&&E.push(": ",u.call(h,"returnType"),u.call(h,"typeAnnotation")),ue(I(E));case"TSNamespaceExportDeclaration":return E.push("export as namespace ",u.call(h,"id")),d.semi&&E.push(";"),ue(I(E));case"TSEnumDeclaration":return m.declare&&E.push("declare "),m.modifiers&&E.push(qc(u,d,h)),m.const&&E.push("const "),E.push("enum ",u.call(h,"id")," "),m.members.length===0?E.push(ue(I(["{",Fe.printDanglingComments(u,d),be,"}"]))):E.push(ue(I(["{",Oe(I([$e,Wc(u,d,"members",h),ku(d,"es5")?",":""])),Fe.printDanglingComments(u,d,!0),$e,"}"]))),I(E);case"TSEnumMember":return E.push(u.call(h,"id")),m.initializer&&E.push(" = ",u.call(h,"initializer")),I(E);case"TSImportEqualsDeclaration":return m.isExport&&E.push("export "),E.push("import ",u.call(h,"id")," = ",u.call(h,"moduleReference")),d.semi&&E.push(";"),ue(I(E));case"TSExternalModuleReference":return I(["require(",u.call(h,"expression"),")"]);case"TSModuleDeclaration":{let A=u.getParentNode(),P=C5(m.id),L=A.type==="TSModuleDeclaration",N=m.body&&m.body.type==="TSModuleDeclaration";if(L)E.push(".");else{m.declare&&E.push("declare "),E.push(qc(u,d,h));let R=d.originalText.slice(cn(m),cn(m.id));m.id.type==="Identifier"&&m.id.name==="global"&&!/namespace|module/.test(R)||E.push(P||/(^|\s)module(\s|$)/.test(R)?"module ":"namespace ")}return E.push(u.call(h,"id")),N?E.push(u.call(h,"body")):m.body?E.push(" ",ue(u.call(h,"body"))):E.push(x),I(E)}case"PrivateName":return I(["#",u.call(h,m.id?"id":"name")]);case"TSPrivateIdentifier":return m.escapedText;case"TSConditionalType":return yd(u,d,h,{beforeParts:()=>[u.call(h,"checkType")," ","extends"," ",u.call(h,"extendsType")],afterParts:()=>[],shouldCheckJsx:!1,conditionalNodeType:"TSConditionalType",consequentNodePropertyName:"trueType",alternateNodePropertyName:"falseType",testNodePropertyNames:["checkType","extendsType"]});case"TSInferType":return I(["infer"," ",u.call(h,"typeParameter")]);case"InterpreterDirective":return E.push("#!",m.value,$e),Vc(d.originalText,m,qi)&&E.push($e),I(E);case"NGRoot":return I([].concat(u.call(h,"node"),m.node.comments&&m.node.comments.length!==0?I([" //",m.node.comments[0].value.trimEnd()]):[]));case"NGChainedExpression":return ue(Sn(I([";",jt]),u.map(A=>m5(A)?h(A):I(["(",h(A),")"]),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return I([m.prefix,": ",m.value.trim()]);case"NGMicrosyntax":return I(u.map((A,P)=>I([P===0?"":X1(A.getValue(),P,m)?" ":I([";",jt]),h(A)]),"body"));case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(-[$_a-z][\w$])*$/i.test(m.name)?m.name:JSON.stringify(m.name);case"NGMicrosyntaxExpression":return I([u.call(h,"expression"),m.alias===null?"":I([" as ",u.call(h,"alias")])]);case"NGMicrosyntaxKeyedExpression":{let A=u.getName(),P=u.getParentNode(),L=X1(m,A,P)||(A===1&&(m.key.name==="then"||m.key.name==="else")||A===2&&m.key.name==="else"&&P.body[A-1].type==="NGMicrosyntaxKeyedExpression"&&P.body[A-1].key.name==="then")&&P.body[0].type==="NGMicrosyntaxExpression";return I([u.call(h,"key"),L?" ":": ",u.call(h,"expression")])}case"NGMicrosyntaxLet":return I(["let ",u.call(h,"key"),m.value===null?"":I([" = ",u.call(h,"value")])]);case"NGMicrosyntaxAs":return I([u.call(h,"key")," as ",u.call(h,"alias")]);case"PipelineBareFunction":return u.call(h,"callee");case"PipelineTopicExpression":return u.call(h,"expression");case"PipelinePrimaryTopicReference":return E.push("#"),I(E);case"ArgumentPlaceholder":return"?";case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return I(["?",u.call(h,"typeAnnotation")]);case"TSJSDocNonNullableType":return I(["!",u.call(h,"typeAnnotation")]);case"TSJSDocFunctionType":return I(["function(","): ",u.call(h,"typeAnnotation")]);default:throw new Error("unknown type: "+JSON.stringify(m.type))}}(e,t,r,n);if(!i||a5(l))return l;let a=f5(e),c=[];if(!(i.type==="ClassMethod"||i.type==="ClassPrivateMethod"||i.type==="ClassProperty"||i.type==="FieldDefinition"||i.type==="TSAbstractClassProperty"||i.type==="ClassPrivateProperty"||i.type==="MethodDefinition"||i.type==="TSAbstractMethodDefinition"||i.type==="TSDeclareMethod"))if(i.decorators&&i.decorators.length>0&&!(a&&cn(a,{ignoreDecorators:!0})>cn(i.decorators[0]))){let u=i.type==="ClassExpression"||i.type==="ClassDeclaration"||g5(i,t)?$e:jt;e.each(d=>{let h=d.getValue();h=h.expression?h.expression:h.callee,c.push(r(d),u)},"decorators"),a&&c.unshift($e)}else b5(i)&&i.declaration&&i.declaration.decorators&&i.declaration.decorators.length>0&&cn(i,{ignoreDecorators:!0})>cn(i.declaration.decorators[0])?e.each(u=>{let d=u.getValue().type==="Decorator"?"":"@";c.push(d,r(u),$e)},"declaration","decorators"):s=Li(e,t);let p=[];if(s&&p.unshift("("),p.push(l),s){let u=e.getValue();d5(u)&&(p.push(" /*"),p.push(u.trailingComments[0].value.trimStart()),p.push("*/"),u.trailingComments[0].printed=!0),p.push(")")}return c.length>0?ue(I(c.concat(p))):I(p)},embed:rC,insertPragma:u5,massageAstNode:aC,hasPrettierIgnore:y5,willPrintOwnComments:yr.willPrintOwnComments,canAttachComment:function(e){return e.type&&e.type!=="CommentBlock"&&e.type!=="CommentLine"&&e.type!=="Line"&&e.type!=="Block"&&e.type!=="EmptyStatement"&&e.type!=="TemplateElement"&&e.type!=="Import"},printComment:iS,isBlockComment:Uc,handleComments:{ownLine:yr.handleOwnLineComment,endOfLine:yr.handleEndOfLineComment,remaining:yr.handleRemainingComment},getGapRegex:yr.getGapRegex,getCommentChildNodes:yr.getCommentChildNodes};let{builders:{concat:zn,hardline:Yr,indent:eg,join:tg}}=ae,aS=new Set(["start","end","extra","loc","comments","errors","range"]);function ng(e,t){let{type:r}=e;return r==="Identifier"?{type:"StringLiteral",value:e.name}:r==="UnaryExpression"&&e.operator==="+"?t.argument:void 0}ng.ignoredProperties=aS;var uS={preprocess:ld,print:function(e,t,r){let n=e.getValue();switch(n.type){case"JsonRoot":return zn([e.call(r,"node"),Yr]);case"ArrayExpression":return n.elements.length===0?"[]":zn(["[",eg(zn([Yr,tg(zn([",",Yr]),e.map(r,"elements"))])),Yr,"]"]);case"ObjectExpression":return n.properties.length===0?"{}":zn(["{",eg(zn([Yr,tg(zn([",",Yr]),e.map(r,"properties"))])),Yr,"}"]);case"ObjectProperty":return zn([e.call(r,"key"),": ",e.call(r,"value")]);case"UnaryExpression":return zn([n.operator==="+"?"":n.operator,e.call(r,"argument")]);case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":case"NumericLiteral":return JSON.stringify(n.value);case"Identifier":return JSON.stringify(n.name);default:throw new Error("unknown type: "+JSON.stringify(n.type))}},massageAstNode:ng};let zc="Common";var Jn={bracketSpacing:{since:"0.0.0",category:zc,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:zc,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:zc,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]}};let Wi="JavaScript";var oS={arrowParens:{since:"1.9.0",category:Wi,type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSpacing:Jn.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:Wi,type:"boolean",default:!1,description:"Put > on the last line instead of at a new line."},semi:{since:"1.0.0",category:Wi,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:Jn.singleQuote,jsxSingleQuote:{since:"1.15.0",category:Wi,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:Wi,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:Wi,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]}},rg={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],languageId:183},lS={name:"JSX",type:"programming",group:"JavaScript",extensions:[".jsx"],tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178},cS={name:"TypeScript",type:"programming",color:"#2b7489",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378},pS={name:"TSX",type:"programming",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924},ig={name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".htmlhintrc",".tern-config",".tern-project",".watchmanconfig","composer.lock","mcmod.info"],languageId:174},fS={name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423},hS={name:"JSON5",type:"data",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175},dS={languages:[ze(rg,e=>({since:"0.0.0",parsers:["babel","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],extensions:[...e.extensions,".wxs"]})),ze(rg,()=>({name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})),ze(lS,()=>({since:"0.0.0",parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"]})),ze(cS,()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]})),ze(pS,()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]})),ze(ig,()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]})),ze(ig,e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],filenames:[...e.filenames,".prettierrc"],extensions:e.extensions.filter(t=>t!==".jsonl")})),ze(fS,e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[...e.filenames,".eslintrc"]})),ze(hS,()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}))],options:oS,printers:{estree:sS,"estree-json":uS},parsers:{get babel(){return{}.parsers.babel},get"babel-flow"(){return{}.parsers["babel-flow"]},get"babel-ts"(){return{}.parsers["babel-ts"]},get json(){return{}.parsers.json},get json5(){return{}.parsers.json5},get"json-stringify"(){return{}.parsers["json-stringify"]},get __js_expression(){return{}.parsers.__js_expression},get __vue_expression(){return{}.parsers.__vue_expression},get __vue_event_binding(){return{}.parsers.__vue_event_binding},get flow(){return{}.parsers.flow},get typescript(){return{}.parsers.typescript},get __ng_action(){return{}.parsers.__ng_action},get __ng_binding(){return{}.parsers.__ng_binding},get __ng_interpolation(){return{}.parsers.__ng_interpolation},get __ng_directive(){return{}.parsers.__ng_directive},get espree(){return{}.parsers.espree},get meriyah(){return{}.parsers.meriyah}}};let{isFrontMatterNode:sg}=Ee,gS=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function ag(e,t,r){if(sg(e)&&e.lang==="yaml"&&delete t.value,e.type==="css-comment"&&r.type==="css-root"&&r.nodes.length!==0&&((r.nodes[0]===e||sg(r.nodes[0])&&r.nodes[1]===e)&&(delete t.text,/^\*\s*@(format|prettier)\s*$/.test(e.text))||r.type==="css-root"&&Lr(r.nodes)===e))return null;if(e.type==="value-root"&&delete t.text,e.type!=="media-query"&&e.type!=="media-query-list"&&e.type!=="media-feature-expression"||delete t.value,e.type==="css-rule"&&delete t.params,e.type==="selector-combinator"&&(t.value=t.value.replace(/\s+/g," ")),e.type==="media-feature"&&(t.value=t.value.replace(/ /g,"")),(e.type==="value-word"&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||e.type==="media-feature"||e.type==="selector-root-invalid"||e.type==="selector-pseudo")&&(t.value=t.value.toLowerCase()),e.type==="css-decl"&&(t.prop=t.prop.toLowerCase()),e.type!=="css-atrule"&&e.type!=="css-import"||(t.name=t.name.toLowerCase()),e.type==="value-number"&&(t.unit=t.unit.toLowerCase()),e.type!=="media-feature"&&e.type!=="media-keyword"&&e.type!=="media-type"&&e.type!=="media-unknown"&&e.type!=="media-url"&&e.type!=="media-value"&&e.type!=="selector-attribute"&&e.type!=="selector-string"&&e.type!=="selector-class"&&e.type!=="selector-combinator"&&e.type!=="value-string"||!t.value||(t.value=t.value.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")),e.type==="selector-attribute"&&(t.attribute=t.attribute.trim(),t.namespace&&typeof t.namespace=="string"&&(t.namespace=t.namespace.trim(),t.namespace.length===0&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^["']|["']$/g,""),delete t.quoted)),e.type!=="media-value"&&e.type!=="media-type"&&e.type!=="value-number"&&e.type!=="selector-root-invalid"&&e.type!=="selector-class"&&e.type!=="selector-combinator"&&e.type!=="selector-tag"||!t.value||(t.value=t.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,(n,i,s)=>{let l=Number(i);return isNaN(l)?n:l+s.toLowerCase()})),e.type==="selector-tag"){let n=e.value.toLowerCase();["from","to"].includes(n)&&(t.value=n)}e.type==="css-atrule"&&e.name.toLowerCase()==="supports"&&delete t.value,e.type==="selector-unknown"&&delete t.value}ag.ignoredProperties=gS;var mS=ag;let{builders:{hardline:ug,concat:yS,markAsRoot:DS}}=ae,og={"---":"yaml","+++":"toml"};var Zs={parse:function(e){let t=Object.keys(og).map(ms).join("|"),r=e.match(new RegExp("^(".concat(t,")([^\\n]*)\\n(?:([\\s\\S]*?)\\n)?\\1[^\\n\\S]*(\\n|$)")));if(r===null)return{frontMatter:null,content:e};let[n,i,s,l]=r,a=og[i];return a!=="toml"&&s&&s.trim()&&(a=s.trim()),{frontMatter:{type:"front-matter",lang:a,value:l,raw:n.replace(/\n$/,"")},content:n.replace(/[^\n]/g," ")+e.slice(n.length)}},print:function(e,t){if(e.lang==="yaml"){let r=e.value.trim(),n=r?t(r,{parser:"yaml"},{stripTrailingHardline:!0}):"";return DS(yS(["---",ug,n,n?ug:"","---"]))}}};let{builders:{hardline:bS,concat:ES}}=ae,{print:vS}=Zs;var CS=function(e,t,r){let n=e.getValue();if(n.type==="front-matter"){let i=vS(n,r);return i?ES([i,bS]):""}};let{parse:lg}=Zs;var xS={hasPragma:function(e){return nc.hasPragma(lg(e).content)},insertPragma:function(e){let{frontMatter:t,content:r}=lg(e);return(t?t.raw+`
|
|
149
|
+
`);return $g(["/*",Q3(Wg,a.map((c,p)=>p===0?c.trimEnd():" "+(p<a.length-1?c.trim():c.trimStart()))),"*/"])}(r);return r.trailing&&!K3(t.originalText,Gg(r),{backwards:!0})?$g([Wg,s]):s}let n=Hg(r),i=t.originalText.slice(n-3,n)==="*-/";return"/*"+r.value+(i?"*-/":"*/")}throw new Error("Not a comment: "+JSON.stringify(r))}};let{hasNewline:zg,hasNewlineInRange:n5,getLast:r5,printString:i5,printNumber:Qs,isNextLineEmpty:Uc}=ve,{builders:{concat:I,join:Sn,line:Vt,hardline:$e,softline:Ee,literalline:s5,group:ue,indent:Oe,align:a5,conditionalGroup:u5,ifBreak:br},utils:{isEmpty:o5}}=ae,{insertPragma:l5}=rc,{printHtmlBinding:c5,isVueEventBindingExpression:p5}=AC,{getFunctionParameters:f5,getCallArguments:h5,getParentExportDeclaration:d5,getTypeScriptMappedTypeModifier:Jg,hasDanglingComments:g5,hasFlowShorthandAnnotationComment:m5,hasLeadingOwnLineComment:Xg,hasNewlineBetweenOrAfterDecorators:y5,hasNgSideEffect:D5,hasPrettierIgnore:b5,hasTrailingComment:E5,isExportDeclaration:v5,isFunctionNotation:C5,isGetterOrSetter:x5,isLiteral:A5,isNgForOf:Yg,isObjectType:Tu,isObjectTypePropertyAFunction:S5,isTheOnlyJSXElementInMarkdown:w5,isTSXFile:F5,isBlockComment:qc,needsHardlineAfterDanglingComment:T5,rawText:k5,shouldPrintComma:ku}=Re,{locStart:cn,locEnd:qi}=Ft,{printOptionalToken:Xr,printBindExpressionCallee:_5,printTypeScriptModifiers:$c,printDecorators:P5,printFlowDeclaration:$i,adjustClause:Er}=Cn,{printImportDeclaration:B5,printExportDeclaration:N5,printExportAllDeclaration:O5,printModuleSpecifier:I5}=jC,{printFunctionParameters:Wc}=cc,{printTemplateLiteral:L5}=Ms,{printArray:R5,printArrayItems:Gc}=Ex,{printObject:M5}=kx,{printTypeAnnotation:_u,shouldHugType:j5}=fu,{printJsxElement:V5,printJsxAttribute:U5,printJsxOpeningElement:q5,printJsxClosingElement:$5,printJsxOpeningClosingFragment:W5,printJsxExpressionContainer:G5,printJsxEmptyExpression:H5,printJsxSpreadAttribute:z5,printJsxSpreadChild:J5}=Ux,{printClass:Kg,printClassMethod:X5}=FA,{printTypeParameters:Pu}=Ac,{printPropertyKey:Bu}=eg,{printFunctionDeclaration:Qg,printArrowFunctionExpression:Y5,printMethod:Zg,printReturnAndThrowArgument:K5}=Tc,{printCallExpression:Q5}=h3,{printInterface:Z5}=E3,{printVariableDeclarator:eS,printAssignmentExpression:tS,printAssignment:nS,printAssignmentRight:Hc}=P3,{printBinaryishExpression:rS}=Pg,{printStatementSequence:zc}=Ug,{printMemberExpression:iS}=yg,{printBlock:sS}=Y3,{printComment:aS}=t5;function Nu(e,t,r){let n=k5(e),i=r||e.type==="DirectiveLiteral";return i5(n,t,i)}function e1(e){let t=e.flags.split("").sort().join("");return"/".concat(e.pattern,"/").concat(t)}var uS={preprocess:cd,print:function(e,t,r,n){let i=e.getValue(),s=!1,l=function(u,d,h,b){let m=u.getValue(),x=d.semi?";":"";if(!m)return"";if(typeof m=="string")return m;let F=c5(u,d,h);if(F)return F;let E=[];switch(m.type){case"JsExpressionRoot":return u.call(h,"node");case"JsonRoot":return I([u.call(h,"node"),$e]);case"File":return m.program&&m.program.interpreter&&E.push(u.call(A=>A.call(h,"interpreter"),"program")),E.push(u.call(h,"program")),I(E);case"Program":{let A=!m.body.every(({type:P})=>P==="EmptyStatement")||m.comments;if(m.directives){let P=m.directives.length;u.each((L,N)=>{E.push(h(L),x,$e),(N<P-1||A)&&Uc(d.originalText,L.getValue(),qi)&&E.push($e)},"directives")}return E.push(u.call(P=>zc(P,d,h),"body")),E.push(Fe.printDanglingComments(u,d,!0)),A&&E.push($e),I(E)}case"EmptyStatement":return"";case"ExpressionStatement":if(m.directive)return I([Nu(m.expression,d,!0),x]);if(d.parser==="__vue_event_binding"){let A=u.getParentNode();if(A.type==="Program"&&A.body.length===1&&A.body[0]===m)return I([u.call(h,"expression"),p5(m.expression)?";":""])}return I([u.call(h,"expression"),w5(d,u)?"":x]);case"ParenthesizedExpression":return m.expression.comments?ue(I(["(",Oe(I([Ee,u.call(h,"expression")])),Ee,")"])):I(["(",u.call(h,"expression"),")"]);case"AssignmentExpression":return tS(u,d,h);case"VariableDeclarator":return eS(u,d,h);case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":return rS(u,d,h);case"AssignmentPattern":return I([u.call(h,"left")," = ",u.call(h,"right")]);case"TSTypeAssertion":{let A=!(m.expression.type==="ArrayExpression"||m.expression.type==="ObjectExpression"),P=ue(I(["<",Oe(I([Ee,u.call(h,"typeAnnotation")])),Ee,">"])),L=I([br("("),Oe(I([Ee,u.call(h,"expression")])),Ee,br(")")]);return A?u5([I([P,u.call(h,"expression")]),I([P,ue(L,{shouldBreak:!0})]),I([P,u.call(h,"expression")])]):ue(I([P,u.call(h,"expression")]))}case"OptionalMemberExpression":case"MemberExpression":return iS(u,d,h);case"MetaProperty":return I([u.call(h,"meta"),".",u.call(h,"property")]);case"BindExpression":return m.object&&E.push(u.call(h,"object")),E.push(ue(Oe(I([Ee,_5(u,d,h)])))),I(E);case"Identifier":return I([m.name,Xr(u),_u(u,d,h)]);case"V8IntrinsicIdentifier":return I(["%",m.name]);case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return I(["...",u.call(h,"argument"),_u(u,d,h)]);case"FunctionDeclaration":case"FunctionExpression":return E.push(Qg(u,h,d,b&&b.expandLastArg&&h5(u.getParentNode()).length>1)),m.body||E.push(x),I(E);case"ArrowFunctionExpression":return Y5(u,d,h,b);case"YieldExpression":return E.push("yield"),m.delegate&&E.push("*"),m.argument&&E.push(" ",u.call(h,"argument")),I(E);case"AwaitExpression":{E.push("await"),m.argument&&E.push(" ",u.call(h,"argument"));let A=u.getParentNode();return(A.type==="CallExpression"||A.type==="OptionalCallExpression")&&A.callee===m||(A.type==="MemberExpression"||A.type==="OptionalMemberExpression")&&A.object===m?ue(I([Oe(I([Ee,I(E)])),Ee])):I(E)}case"TSExportAssignment":return I(["export = ",u.call(h,"expression"),x]);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"DeclareExportDeclaration":return N5(u,d,h);case"ExportAllDeclaration":case"DeclareExportAllDeclaration":return O5(u,d,h);case"ImportDeclaration":return B5(u,d,h);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return I5(u,d,h);case"ImportAttribute":return I([u.call(h,"key"),": ",u.call(h,"value")]);case"Import":return"import";case"TSModuleBlock":case"BlockStatement":case"StaticBlock":return sS(u,d,h);case"ThrowStatement":case"ReturnStatement":return I([m.type==="ReturnStatement"?"return":"throw",K5(u,d,h)]);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return Q5(u,d,h);case"ObjectTypeInternalSlot":return I([m.static?"static ":"","[[",u.call(h,"id"),"]]",Xr(u),m.method?"":": ",u.call(h,"value")]);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":case"RecordExpression":return M5(u,d,h);case"ObjectProperty":case"Property":return m.method||m.kind==="get"||m.kind==="set"?Zg(u,d,h):(m.shorthand?E.push(u.call(h,"value")):E.push(nS(m.key,Bu(u,d,h),":",m.value,u.call(h,"value"),d)),I(E));case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":case"TSAbstractMethodDefinition":case"TSDeclareMethod":return X5(u,d,h);case"ObjectMethod":return Zg(u,d,h);case"Decorator":return I(["@",u.call(h,"expression"),u.call(h,"callee")]);case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return R5(u,d,h);case"SequenceExpression":{let A=u.getParentNode(0);if(A.type==="ExpressionStatement"||A.type==="ForStatement"){let P=[];return u.each(L=>{L.getName()===0?P.push(h(L)):P.push(",",Oe(I([Vt,h(L)])))},"expressions"),ue(I(P))}return ue(I([Sn(I([",",Vt]),u.map(h,"expressions"))]))}case"ThisExpression":return"this";case"Super":return"super";case"NullLiteral":return"null";case"RegExpLiteral":return e1(m);case"NumericLiteral":return Qs(m.extra.raw);case"DecimalLiteral":return Qs(m.value)+"m";case"BigIntLiteral":return(m.bigint||m.extra.raw).toLowerCase();case"BooleanLiteral":case"StringLiteral":case"Literal":return m.regex?e1(m.regex):m.bigint?m.raw.toLowerCase():typeof m.value=="number"?Qs(m.raw):typeof m.value!="string"?""+m.value:Nu(m,d);case"Directive":return u.call(h,"value");case"DirectiveLiteral":return Nu(m,d);case"UnaryExpression":return E.push(m.operator),/[a-z]$/.test(m.operator)&&E.push(" "),m.argument.comments&&m.argument.comments.length>0?E.push(ue(I(["(",Oe(I([Ee,u.call(h,"argument")])),Ee,")"]))):E.push(u.call(h,"argument")),I(E);case"UpdateExpression":return E.push(u.call(h,"argument"),m.operator),m.prefix&&E.reverse(),I(E);case"ConditionalExpression":return Dd(u,d,h,{beforeParts:()=>[u.call(h,"test")],afterParts:A=>[A?Ee:""],shouldCheckJsx:!0,conditionalNodeType:"ConditionalExpression",consequentNodePropertyName:"consequent",alternateNodePropertyName:"alternate",testNodePropertyNames:["test"]});case"VariableDeclaration":{let A=u.map(U=>h(U),"declarations"),P=u.getParentNode(),L=P.type==="ForStatement"||P.type==="ForInStatement"||P.type==="ForOfStatement",N=m.declarations.some(U=>U.init),R;return A.length!==1||m.declarations[0].comments?A.length>0&&(R=Oe(A[0])):R=A[0],E=[m.declare?"declare ":"",m.kind,R?I([" ",R]):"",Oe(I(A.slice(1).map(U=>I([",",N&&!L?$e:Vt,U]))))],L&&P.body!==m||E.push(x),ue(I(E))}case"TSTypeAliasDeclaration":{m.declare&&E.push("declare ");let A=Hc(m.id,m.typeAnnotation,m.typeAnnotation&&u.call(h,"typeAnnotation"),d);return E.push("type ",u.call(h,"id"),u.call(h,"typeParameters")," =",A,x),ue(I(E))}case"WithStatement":return ue(I(["with (",u.call(h,"object"),")",Er(m.body,u.call(h,"body"))]));case"IfStatement":{let A=Er(m.consequent,u.call(h,"consequent")),P=ue(I(["if (",ue(I([Oe(I([Ee,u.call(h,"test")])),Ee])),")",A]));if(E.push(P),m.alternate){let L=E5(m.consequent)&&m.consequent.comments.some(R=>R.trailing&&!qc(R))||T5(m),N=m.consequent.type==="BlockStatement"&&!L;E.push(N?" ":$e),g5(m)&&E.push(Fe.printDanglingComments(u,d,!0),L?$e:" "),E.push("else",ue(Er(m.alternate,u.call(h,"alternate"),m.alternate.type==="IfStatement")))}return I(E)}case"ForStatement":{let A=Er(m.body,u.call(h,"body")),P=Fe.printDanglingComments(u,d,!0),L=P?I([P,Ee]):"";return m.init||m.test||m.update?I([L,ue(I(["for (",ue(I([Oe(I([Ee,u.call(h,"init"),";",Vt,u.call(h,"test"),";",Vt,u.call(h,"update")])),Ee])),")",A]))]):I([L,ue(I(["for (;;)",A]))])}case"WhileStatement":return ue(I(["while (",ue(I([Oe(I([Ee,u.call(h,"test")])),Ee])),")",Er(m.body,u.call(h,"body"))]));case"ForInStatement":return ue(I(["for (",u.call(h,"left")," in ",u.call(h,"right"),")",Er(m.body,u.call(h,"body"))]));case"ForOfStatement":return ue(I(["for",m.await?" await":""," (",u.call(h,"left")," of ",u.call(h,"right"),")",Er(m.body,u.call(h,"body"))]));case"DoWhileStatement":{let A=Er(m.body,u.call(h,"body"));return E=[ue(I(["do",A]))],m.body.type==="BlockStatement"?E.push(" "):E.push($e),E.push("while ("),E.push(ue(I([Oe(I([Ee,u.call(h,"test")])),Ee])),")",x),I(E)}case"DoExpression":return I(["do ",u.call(h,"body")]);case"BreakStatement":return E.push("break"),m.label&&E.push(" ",u.call(h,"label")),E.push(x),I(E);case"ContinueStatement":return E.push("continue"),m.label&&E.push(" ",u.call(h,"label")),E.push(x),I(E);case"LabeledStatement":return m.body.type==="EmptyStatement"?I([u.call(h,"label"),":;"]):I([u.call(h,"label"),": ",u.call(h,"body")]);case"TryStatement":return I(["try ",u.call(h,"block"),m.handler?I([" ",u.call(h,"handler")]):"",m.finalizer?I([" finally ",u.call(h,"finalizer")]):""]);case"CatchClause":if(m.param){let A=m.param.comments&&m.param.comments.some(L=>!qc(L)||L.leading&&zg(d.originalText,qi(L))||L.trailing&&zg(d.originalText,cn(L),{backwards:!0})),P=u.call(h,"param");return I(["catch ",I(A?["(",Oe(I([Ee,P])),Ee,") "]:["(",P,") "]),u.call(h,"body")])}return I(["catch ",u.call(h,"body")]);case"SwitchStatement":return I([ue(I(["switch (",Oe(I([Ee,u.call(h,"discriminant")])),Ee,")"]))," {",m.cases.length>0?Oe(I([$e,Sn($e,u.map(A=>{let P=A.getValue();return I([A.call(h),m.cases.indexOf(P)!==m.cases.length-1&&Uc(d.originalText,P,qi)?$e:""])},"cases"))])):"",$e,"}"]);case"SwitchCase":{m.test?E.push("case ",u.call(h,"test"),":"):E.push("default:");let A=m.consequent.filter(P=>P.type!=="EmptyStatement");if(A.length>0){let P=u.call(L=>zc(L,d,h),"consequent");E.push(A.length===1&&A[0].type==="BlockStatement"?I([" ",P]):Oe(I([$e,P])))}return I(E)}case"DebuggerStatement":return I(["debugger",x]);case"JSXAttribute":return U5(u,d,h);case"JSXIdentifier":return""+m.name;case"JSXNamespacedName":return Sn(":",[u.call(h,"namespace"),u.call(h,"name")]);case"JSXMemberExpression":return Sn(".",[u.call(h,"object"),u.call(h,"property")]);case"TSQualifiedName":return Sn(".",[u.call(h,"left"),u.call(h,"right")]);case"JSXSpreadAttribute":return z5(u,d,h);case"JSXSpreadChild":return J5(u,d,h);case"JSXExpressionContainer":return G5(u,d,h);case"JSXFragment":case"JSXElement":return V5(u,d,h);case"JSXOpeningElement":return q5(u,d,h);case"JSXClosingElement":return $5(u,d,h);case"JSXOpeningFragment":case"JSXClosingFragment":return W5(u,d);case"JSXText":throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":return H5(u,d);case"ClassBody":return m.comments||m.body.length!==0?I(["{",m.body.length>0?Oe(I([$e,u.call(A=>zc(A,d,h),"body")])):Fe.printDanglingComments(u,d),$e,"}"]):"{}";case"ClassProperty":case"FieldDefinition":case"TSAbstractClassProperty":case"ClassPrivateProperty":return m.decorators&&m.decorators.length!==0&&E.push(P5(u,d,h)),m.accessibility&&E.push(m.accessibility+" "),m.declare&&E.push("declare "),m.static&&E.push("static "),(m.type==="TSAbstractClassProperty"||m.abstract)&&E.push("abstract "),m.readonly&&E.push("readonly "),m.variance&&E.push(u.call(h,"variance")),E.push(Bu(u,d,h),Xr(u),_u(u,d,h)),m.value&&E.push(" =",Hc(m.key,m.value,u.call(h,"value"),d)),E.push(x),ue(I(E));case"ClassDeclaration":case"ClassExpression":return m.declare&&E.push("declare "),E.push(Kg(u,d,h)),I(E);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return E.push(u.call(h,"expression")),m.typeParameters&&E.push(u.call(h,"typeParameters")),I(E);case"TemplateElement":return Sn(s5,m.value.raw.split(/\r?\n/g));case"TSTemplateLiteralType":case"TemplateLiteral":return L5(u,h,d);case"TaggedTemplateExpression":return I([u.call(h,"tag"),u.call(h,"typeParameters"),u.call(h,"quasi")]);case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(m.type));case"TypeAnnotation":case"TSTypeAnnotation":return m.typeAnnotation?u.call(h,"typeAnnotation"):"";case"TSNamedTupleMember":return I([u.call(h,"label"),m.optional?"?":"",": ",u.call(h,"elementType")]);case"TSTupleType":case"TupleTypeAnnotation":{let A=m.type==="TSTupleType"?"elementTypes":"types",P=m[A].length>0&&r5(m[A]).type==="TSRestType";return ue(I(["[",Oe(I([Ee,Gc(u,d,A,h)])),br(ku(d,"all")&&!P?",":""),Fe.printDanglingComments(u,d,!0),Ee,"]"]))}case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return I([u.call(h,"elementType"),"[]"]);case"BooleanLiteralTypeAnnotation":return""+m.value;case"DeclareClass":return $i(u,Kg(u,d,h));case"TSDeclareFunction":return I([m.declare?"declare ":"",Qg(u,h,d),x]);case"DeclareFunction":return $i(u,I(["function ",u.call(h,"id"),m.predicate?" ":"",u.call(h,"predicate"),x]));case"DeclareModule":return $i(u,I(["module ",u.call(h,"id")," ",u.call(h,"body")]));case"DeclareModuleExports":return $i(u,I(["module.exports",": ",u.call(h,"typeAnnotation"),x]));case"DeclareVariable":return $i(u,I(["var ",u.call(h,"id"),x]));case"DeclareOpaqueType":case"OpaqueType":return E.push("opaque type ",u.call(h,"id"),u.call(h,"typeParameters")),m.supertype&&E.push(": ",u.call(h,"supertype")),m.impltype&&E.push(" = ",u.call(h,"impltype")),E.push(x),m.type==="DeclareOpaqueType"?$i(u,I(E)):I(E);case"EnumDeclaration":return I(["enum ",u.call(h,"id")," ",u.call(h,"body")]);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if(m.type==="EnumSymbolBody"||m.explicitType){let A=null;switch(m.type){case"EnumBooleanBody":A="boolean";break;case"EnumNumberBody":A="number";break;case"EnumStringBody":A="string";break;case"EnumSymbolBody":A="symbol"}E.push("of ",A," ")}if(m.members.length!==0||m.hasUnknownMembers){let A=m.members.length?[$e,Gc(u,d,"members",h),m.hasUnknownMembers||ku(d)?",":""]:[];E.push(ue(I(["{",Oe(I([...A,...m.hasUnknownMembers?[$e,"..."]:[]])),Fe.printDanglingComments(u,d,!0),$e,"}"])))}else E.push(ue(I(["{",Fe.printDanglingComments(u,d),Ee,"}"])));return I(E);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return I([u.call(h,"id")," = ",typeof m.init=="object"?u.call(h,"init"):String(m.init)]);case"EnumDefaultedMember":return u.call(h,"id");case"FunctionTypeAnnotation":case"TSFunctionType":{let A=u.getParentNode(0),P=u.getParentNode(1),L=u.getParentNode(2),N=m.type==="TSFunctionType"||!((A.type==="ObjectTypeProperty"||A.type==="ObjectTypeInternalSlot")&&!A.variance&&!A.optional&&cn(A)===cn(m)||A.type==="ObjectTypeCallProperty"||L&&L.type==="DeclareFunction"),R=N&&(A.type==="TypeAnnotation"||A.type==="TSTypeAnnotation"),U=R&&N&&(A.type==="TypeAnnotation"||A.type==="TSTypeAnnotation")&&P.type==="ArrowFunctionExpression";return S5(A)&&(N=!0,R=!0),U&&E.push("("),E.push(Wc(u,h,d,!1,!0)),(m.returnType||m.predicate||m.typeAnnotation)&&E.push(N?" => ":": ",u.call(h,"returnType"),u.call(h,"predicate"),u.call(h,"typeAnnotation")),U&&E.push(")"),ue(I(E))}case"TSRestType":return I(["...",u.call(h,"typeAnnotation")]);case"TSOptionalType":return I([u.call(h,"typeAnnotation"),"?"]);case"FunctionTypeParam":{let A=m.name?u.call(h,"name"):u.getParentNode().this===m?"this":"";return I([A,Xr(u),A?": ":"",u.call(h,"typeAnnotation")])}case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"TSInterfaceDeclaration":return Z5(u,d,h);case"ClassImplements":case"InterfaceExtends":return I([u.call(h,"id"),u.call(h,"typeParameters")]);case"TSClassImplements":return I([u.call(h,"expression"),u.call(h,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":{let A=u.map(h,"types"),P=[],L=!1;for(let N=0;N<A.length;++N)N===0?P.push(A[N]):Tu(m.types[N-1])&&Tu(m.types[N])?P.push(I([" & ",L?Oe(A[N]):A[N]])):Tu(m.types[N-1])||Tu(m.types[N])?(N>1&&(L=!0),P.push(" & ",N>1?Oe(A[N]):A[N])):P.push(Oe(I([" &",Vt,A[N]])));return ue(I(P))}case"TSUnionType":case"UnionTypeAnnotation":{let A=u.getParentNode(),P=!(A.type==="TypeParameterInstantiation"||A.type==="TSTypeParameterInstantiation"||A.type==="GenericTypeAnnotation"||A.type==="TSTypeReference"||A.type==="TSTypeAssertion"||A.type==="TupleTypeAnnotation"||A.type==="TSTupleType"||A.type==="FunctionTypeParam"&&!A.name&&u.getParentNode(1).this!==A||(A.type==="TypeAlias"||A.type==="VariableDeclarator"||A.type==="TSTypeAliasDeclaration")&&Xg(d.originalText,m)),L=j5(m),N=u.map(J=>{let q=J.call(h);return L||(q=a5(2,q)),Fe.printComments(J,()=>q,d)},"types");if(L)return Sn(" | ",N);let R=P&&!Xg(d.originalText,m),U=I([br(I([R?Vt:"","| "])),Sn(I([Vt,"| "]),N)]);return Li(u,d)?ue(I([Oe(U),Ee])):A.type==="TupleTypeAnnotation"&&A.types.length>1||A.type==="TSTupleType"&&A.elementTypes.length>1?ue(I([Oe(I([br(I(["(",Ee])),U])),Ee,br(")")])):ue(P?Oe(U):U)}case"NullableTypeAnnotation":return I(["?",u.call(h,"typeAnnotation")]);case"Variance":{let{kind:A}=m;return qn.ok(A==="plus"||A==="minus"),A==="plus"?"+":"-"}case"ObjectTypeCallProperty":return m.static&&E.push("static "),E.push(u.call(h,"value")),I(E);case"ObjectTypeIndexer":return I([m.variance?u.call(h,"variance"):"","[",u.call(h,"id"),m.id?": ":"",u.call(h,"key"),"]: ",u.call(h,"value")]);case"ObjectTypeProperty":{let A="";return m.proto?A="proto ":m.static&&(A="static "),I([A,x5(m)?m.kind+" ":"",m.variance?u.call(h,"variance"):"",Bu(u,d,h),Xr(u),C5(m)?"":": ",u.call(h,"value")])}case"QualifiedTypeIdentifier":return I([u.call(h,"qualification"),".",u.call(h,"id")]);case"StringLiteralTypeAnnotation":return Nu(m,d);case"NumberLiteralTypeAnnotation":qn.strictEqual(typeof m.value,"number");case"BigIntLiteralTypeAnnotation":return m.extra!=null?Qs(m.extra.raw):Qs(m.raw);case"DeclareTypeAlias":case"TypeAlias":{(m.type==="DeclareTypeAlias"||m.declare)&&E.push("declare ");let A=Hc(m.id,m.right,u.call(h,"right"),d);return E.push("type ",u.call(h,"id"),u.call(h,"typeParameters")," =",A,x),ue(I(E))}case"TypeCastExpression":return I(["(",u.call(h,"expression"),_u(u,d,h),")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":{let A=Pu(u,d,h,"params");if(d.parser==="flow"){let P=cn(m),L=qi(m),N=d.originalText.lastIndexOf("/*",P),R=d.originalText.indexOf("*/",L);if(N!==-1&&R!==-1){let U=d.originalText.slice(N+2,R).trim();if(U.startsWith("::")&&!U.includes("/*")&&!U.includes("*/"))return I(["/*:: ",A," */"])}}return A}case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Pu(u,d,h,"params");case"TSTypeParameter":case"TypeParameter":{let A=u.getParentNode();if(A.type==="TSMappedType")return E.push("[",u.call(h,"name")),m.constraint&&E.push(" in ",u.call(h,"constraint")),A.nameType&&E.push(" as ",u.callParent(L=>L.call(h,"nameType"))),E.push("]"),I(E);m.variance&&E.push(u.call(h,"variance")),E.push(u.call(h,"name")),m.bound&&(E.push(": "),E.push(u.call(h,"bound"))),m.constraint&&E.push(" extends ",u.call(h,"constraint")),m.default&&E.push(" = ",u.call(h,"default"));let P=u.getNode(2);return f5(A).length===1&&F5(d)&&!m.constraint&&P.type==="ArrowFunctionExpression"&&E.push(","),I(E)}case"TypeofTypeAnnotation":return I(["typeof ",u.call(h,"argument")]);case"InferredPredicate":return"%checks";case"DeclaredPredicate":return I(["%checks(",u.call(h,"value"),")"]);case"TSAbstractKeyword":return"abstract";case"AnyTypeAnnotation":case"TSAnyKeyword":return"any";case"TSAsyncKeyword":return"async";case"BooleanTypeAnnotation":case"TSBooleanKeyword":return"boolean";case"BigIntTypeAnnotation":case"TSBigIntKeyword":return"bigint";case"TSConstKeyword":return"const";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"NullLiteralTypeAnnotation":case"TSNullKeyword":return"null";case"TSNeverKeyword":return"never";case"NumberTypeAnnotation":case"TSNumberKeyword":return"number";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"SymbolTypeAnnotation":case"TSSymbolKeyword":return"symbol";case"TSStaticKeyword":return"static";case"StringTypeAnnotation":case"TSStringKeyword":return"string";case"TSUndefinedKeyword":return"undefined";case"TSUnknownKeyword":return"unknown";case"VoidTypeAnnotation":case"TSVoidKeyword":return"void";case"TSAsExpression":return I([u.call(h,"expression")," as ",u.call(h,"typeAnnotation")]);case"TSArrayType":return I([u.call(h,"elementType"),"[]"]);case"TSPropertySignature":return m.export&&E.push("export "),m.accessibility&&E.push(m.accessibility+" "),m.static&&E.push("static "),m.readonly&&E.push("readonly "),E.push(Bu(u,d,h),Xr(u)),m.typeAnnotation&&(E.push(": "),E.push(u.call(h,"typeAnnotation"))),m.initializer&&E.push(" = ",u.call(h,"initializer")),I(E);case"TSParameterProperty":return m.accessibility&&E.push(m.accessibility+" "),m.export&&E.push("export "),m.static&&E.push("static "),m.readonly&&E.push("readonly "),E.push(u.call(h,"parameter")),I(E);case"GenericTypeAnnotation":case"TSTypeReference":return I([u.call(h,m.type==="TSTypeReference"?"typeName":"id"),Pu(u,d,h,"typeParameters")]);case"TSTypeQuery":return I(["typeof ",u.call(h,"exprName")]);case"TSIndexSignature":{let A=u.getParentNode(),P=m.parameters.length>1?br(ku(d)?",":""):"",L=ue(I([Oe(I([Ee,Sn(I([", ",Ee]),u.map(h,"parameters"))])),P,Ee]));return I([m.export?"export ":"",m.accessibility?I([m.accessibility," "]):"",m.static?"static ":"",m.readonly?"readonly ":"",m.declare?"declare ":"","[",m.parameters?L:"",m.typeAnnotation?"]: ":"]",m.typeAnnotation?u.call(h,"typeAnnotation"):"",A.type==="ClassBody"?x:""])}case"TSTypePredicate":return I([m.asserts?"asserts ":"",u.call(h,"parameterName"),m.typeAnnotation?I([" is ",u.call(h,"typeAnnotation")]):""]);case"TSNonNullExpression":return I([u.call(h,"expression"),"!"]);case"ThisTypeAnnotation":case"TSThisType":return"this";case"TSImportType":return I([m.isTypeOf?"typeof ":"","import(",u.call(h,m.parameter?"parameter":"argument"),")",m.qualifier?I([".",u.call(h,"qualifier")]):"",Pu(u,d,h,"typeParameters")]);case"TSLiteralType":return u.call(h,"literal");case"TSIndexedAccessType":return I([u.call(h,"objectType"),"[",u.call(h,"indexType"),"]"]);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if(m.type!=="TSCallSignatureDeclaration"&&E.push("new "),E.push(ue(Wc(u,h,d,!1,!0))),m.returnType||m.typeAnnotation){let A=m.type==="TSConstructorType";E.push(A?" => ":": ",u.call(h,"returnType"),u.call(h,"typeAnnotation"))}return I(E);case"TSTypeOperator":return I([m.operator," ",u.call(h,"typeAnnotation")]);case"TSMappedType":{let A=n5(d.originalText,cn(m),qi(m));return ue(I(["{",Oe(I([d.bracketSpacing?Vt:Ee,m.readonly?I([Jg(m.readonly,"readonly")," "]):"",$c(u,d,h),u.call(h,"typeParameter"),m.optional?Jg(m.optional,"?"):"",m.typeAnnotation?": ":"",u.call(h,"typeAnnotation"),br(x,"")])),Fe.printDanglingComments(u,d,!0),d.bracketSpacing?Vt:Ee,"}"]),{shouldBreak:A})}case"TSMethodSignature":return E.push(m.accessibility?I([m.accessibility," "]):"",m.export?"export ":"",m.static?"static ":"",m.readonly?"readonly ":"",m.computed?"[":"",u.call(h,"key"),m.computed?"]":"",Xr(u),Wc(u,h,d,!1,!0)),(m.returnType||m.typeAnnotation)&&E.push(": ",u.call(h,"returnType"),u.call(h,"typeAnnotation")),ue(I(E));case"TSNamespaceExportDeclaration":return E.push("export as namespace ",u.call(h,"id")),d.semi&&E.push(";"),ue(I(E));case"TSEnumDeclaration":return m.declare&&E.push("declare "),m.modifiers&&E.push($c(u,d,h)),m.const&&E.push("const "),E.push("enum ",u.call(h,"id")," "),m.members.length===0?E.push(ue(I(["{",Fe.printDanglingComments(u,d),Ee,"}"]))):E.push(ue(I(["{",Oe(I([$e,Gc(u,d,"members",h),ku(d,"es5")?",":""])),Fe.printDanglingComments(u,d,!0),$e,"}"]))),I(E);case"TSEnumMember":return E.push(u.call(h,"id")),m.initializer&&E.push(" = ",u.call(h,"initializer")),I(E);case"TSImportEqualsDeclaration":return m.isExport&&E.push("export "),E.push("import ",u.call(h,"id")," = ",u.call(h,"moduleReference")),d.semi&&E.push(";"),ue(I(E));case"TSExternalModuleReference":return I(["require(",u.call(h,"expression"),")"]);case"TSModuleDeclaration":{let A=u.getParentNode(),P=A5(m.id),L=A.type==="TSModuleDeclaration",N=m.body&&m.body.type==="TSModuleDeclaration";if(L)E.push(".");else{m.declare&&E.push("declare "),E.push($c(u,d,h));let R=d.originalText.slice(cn(m),cn(m.id));m.id.type==="Identifier"&&m.id.name==="global"&&!/namespace|module/.test(R)||E.push(P||/(^|\s)module(\s|$)/.test(R)?"module ":"namespace ")}return E.push(u.call(h,"id")),N?E.push(u.call(h,"body")):m.body?E.push(" ",ue(u.call(h,"body"))):E.push(x),I(E)}case"PrivateName":return I(["#",u.call(h,m.id?"id":"name")]);case"TSPrivateIdentifier":return m.escapedText;case"TSConditionalType":return Dd(u,d,h,{beforeParts:()=>[u.call(h,"checkType")," ","extends"," ",u.call(h,"extendsType")],afterParts:()=>[],shouldCheckJsx:!1,conditionalNodeType:"TSConditionalType",consequentNodePropertyName:"trueType",alternateNodePropertyName:"falseType",testNodePropertyNames:["checkType","extendsType"]});case"TSInferType":return I(["infer"," ",u.call(h,"typeParameter")]);case"InterpreterDirective":return E.push("#!",m.value,$e),Uc(d.originalText,m,qi)&&E.push($e),I(E);case"NGRoot":return I([].concat(u.call(h,"node"),m.node.comments&&m.node.comments.length!==0?I([" //",m.node.comments[0].value.trimEnd()]):[]));case"NGChainedExpression":return ue(Sn(I([";",Vt]),u.map(A=>D5(A)?h(A):I(["(",h(A),")"]),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return I([m.prefix,": ",m.value.trim()]);case"NGMicrosyntax":return I(u.map((A,P)=>I([P===0?"":Yg(A.getValue(),P,m)?" ":I([";",Vt]),h(A)]),"body"));case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(-[$_a-z][\w$])*$/i.test(m.name)?m.name:JSON.stringify(m.name);case"NGMicrosyntaxExpression":return I([u.call(h,"expression"),m.alias===null?"":I([" as ",u.call(h,"alias")])]);case"NGMicrosyntaxKeyedExpression":{let A=u.getName(),P=u.getParentNode(),L=Yg(m,A,P)||(A===1&&(m.key.name==="then"||m.key.name==="else")||A===2&&m.key.name==="else"&&P.body[A-1].type==="NGMicrosyntaxKeyedExpression"&&P.body[A-1].key.name==="then")&&P.body[0].type==="NGMicrosyntaxExpression";return I([u.call(h,"key"),L?" ":": ",u.call(h,"expression")])}case"NGMicrosyntaxLet":return I(["let ",u.call(h,"key"),m.value===null?"":I([" = ",u.call(h,"value")])]);case"NGMicrosyntaxAs":return I([u.call(h,"key")," as ",u.call(h,"alias")]);case"PipelineBareFunction":return u.call(h,"callee");case"PipelineTopicExpression":return u.call(h,"expression");case"PipelinePrimaryTopicReference":return E.push("#"),I(E);case"ArgumentPlaceholder":return"?";case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return I(["?",u.call(h,"typeAnnotation")]);case"TSJSDocNonNullableType":return I(["!",u.call(h,"typeAnnotation")]);case"TSJSDocFunctionType":return I(["function(","): ",u.call(h,"typeAnnotation")]);default:throw new Error("unknown type: "+JSON.stringify(m.type))}}(e,t,r,n);if(!i||o5(l))return l;let a=d5(e),c=[];if(!(i.type==="ClassMethod"||i.type==="ClassPrivateMethod"||i.type==="ClassProperty"||i.type==="FieldDefinition"||i.type==="TSAbstractClassProperty"||i.type==="ClassPrivateProperty"||i.type==="MethodDefinition"||i.type==="TSAbstractMethodDefinition"||i.type==="TSDeclareMethod"))if(i.decorators&&i.decorators.length>0&&!(a&&cn(a,{ignoreDecorators:!0})>cn(i.decorators[0]))){let u=i.type==="ClassExpression"||i.type==="ClassDeclaration"||y5(i,t)?$e:Vt;e.each(d=>{let h=d.getValue();h=h.expression?h.expression:h.callee,c.push(r(d),u)},"decorators"),a&&c.unshift($e)}else v5(i)&&i.declaration&&i.declaration.decorators&&i.declaration.decorators.length>0&&cn(i,{ignoreDecorators:!0})>cn(i.declaration.decorators[0])?e.each(u=>{let d=u.getValue().type==="Decorator"?"":"@";c.push(d,r(u),$e)},"declaration","decorators"):s=Li(e,t);let p=[];if(s&&p.unshift("("),p.push(l),s){let u=e.getValue();m5(u)&&(p.push(" /*"),p.push(u.trailingComments[0].value.trimStart()),p.push("*/"),u.trailingComments[0].printed=!0),p.push(")")}return c.length>0?ue(I(c.concat(p))):I(p)},embed:sC,insertPragma:l5,massageAstNode:oC,hasPrettierIgnore:b5,willPrintOwnComments:yr.willPrintOwnComments,canAttachComment:function(e){return e.type&&e.type!=="CommentBlock"&&e.type!=="CommentLine"&&e.type!=="Line"&&e.type!=="Block"&&e.type!=="EmptyStatement"&&e.type!=="TemplateElement"&&e.type!=="Import"},printComment:aS,isBlockComment:qc,handleComments:{ownLine:yr.handleOwnLineComment,endOfLine:yr.handleEndOfLineComment,remaining:yr.handleRemainingComment},getGapRegex:yr.getGapRegex,getCommentChildNodes:yr.getCommentChildNodes};let{builders:{concat:zn,hardline:Yr,indent:t1,join:n1}}=ae,oS=new Set(["start","end","extra","loc","comments","errors","range"]);function r1(e,t){let{type:r}=e;return r==="Identifier"?{type:"StringLiteral",value:e.name}:r==="UnaryExpression"&&e.operator==="+"?t.argument:void 0}r1.ignoredProperties=oS;var lS={preprocess:cd,print:function(e,t,r){let n=e.getValue();switch(n.type){case"JsonRoot":return zn([e.call(r,"node"),Yr]);case"ArrayExpression":return n.elements.length===0?"[]":zn(["[",t1(zn([Yr,n1(zn([",",Yr]),e.map(r,"elements"))])),Yr,"]"]);case"ObjectExpression":return n.properties.length===0?"{}":zn(["{",t1(zn([Yr,n1(zn([",",Yr]),e.map(r,"properties"))])),Yr,"}"]);case"ObjectProperty":return zn([e.call(r,"key"),": ",e.call(r,"value")]);case"UnaryExpression":return zn([n.operator==="+"?"":n.operator,e.call(r,"argument")]);case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":case"NumericLiteral":return JSON.stringify(n.value);case"Identifier":return JSON.stringify(n.name);default:throw new Error("unknown type: "+JSON.stringify(n.type))}},massageAstNode:r1};let Jc="Common";var Jn={bracketSpacing:{since:"0.0.0",category:Jc,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:Jc,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:Jc,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]}};let Wi="JavaScript";var cS={arrowParens:{since:"1.9.0",category:Wi,type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSpacing:Jn.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:Wi,type:"boolean",default:!1,description:"Put > on the last line instead of at a new line."},semi:{since:"1.0.0",category:Wi,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:Jn.singleQuote,jsxSingleQuote:{since:"1.15.0",category:Wi,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:Wi,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:Wi,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]}},i1={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],languageId:183},pS={name:"JSX",type:"programming",group:"JavaScript",extensions:[".jsx"],tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178},fS={name:"TypeScript",type:"programming",color:"#2b7489",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378},hS={name:"TSX",type:"programming",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924},s1={name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".htmlhintrc",".tern-config",".tern-project",".watchmanconfig","composer.lock","mcmod.info"],languageId:174},dS={name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423},gS={name:"JSON5",type:"data",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175},mS={languages:[ze(i1,e=>({since:"0.0.0",parsers:["babel","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],extensions:[...e.extensions,".wxs"]})),ze(i1,()=>({name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})),ze(pS,()=>({since:"0.0.0",parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"]})),ze(fS,()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]})),ze(hS,()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]})),ze(s1,()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]})),ze(s1,e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],filenames:[...e.filenames,".prettierrc"],extensions:e.extensions.filter(t=>t!==".jsonl")})),ze(dS,e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[...e.filenames,".eslintrc"]})),ze(gS,()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}))],options:cS,printers:{estree:uS,"estree-json":lS},parsers:{get babel(){return{}.parsers.babel},get"babel-flow"(){return{}.parsers["babel-flow"]},get"babel-ts"(){return{}.parsers["babel-ts"]},get json(){return{}.parsers.json},get json5(){return{}.parsers.json5},get"json-stringify"(){return{}.parsers["json-stringify"]},get __js_expression(){return{}.parsers.__js_expression},get __vue_expression(){return{}.parsers.__vue_expression},get __vue_event_binding(){return{}.parsers.__vue_event_binding},get flow(){return{}.parsers.flow},get typescript(){return{}.parsers.typescript},get __ng_action(){return{}.parsers.__ng_action},get __ng_binding(){return{}.parsers.__ng_binding},get __ng_interpolation(){return{}.parsers.__ng_interpolation},get __ng_directive(){return{}.parsers.__ng_directive},get espree(){return{}.parsers.espree},get meriyah(){return{}.parsers.meriyah}}};let{isFrontMatterNode:a1}=ve,yS=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function u1(e,t,r){if(a1(e)&&e.lang==="yaml"&&delete t.value,e.type==="css-comment"&&r.type==="css-root"&&r.nodes.length!==0&&((r.nodes[0]===e||a1(r.nodes[0])&&r.nodes[1]===e)&&(delete t.text,/^\*\s*@(format|prettier)\s*$/.test(e.text))||r.type==="css-root"&&Lr(r.nodes)===e))return null;if(e.type==="value-root"&&delete t.text,e.type!=="media-query"&&e.type!=="media-query-list"&&e.type!=="media-feature-expression"||delete t.value,e.type==="css-rule"&&delete t.params,e.type==="selector-combinator"&&(t.value=t.value.replace(/\s+/g," ")),e.type==="media-feature"&&(t.value=t.value.replace(/ /g,"")),(e.type==="value-word"&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||e.type==="media-feature"||e.type==="selector-root-invalid"||e.type==="selector-pseudo")&&(t.value=t.value.toLowerCase()),e.type==="css-decl"&&(t.prop=t.prop.toLowerCase()),e.type!=="css-atrule"&&e.type!=="css-import"||(t.name=t.name.toLowerCase()),e.type==="value-number"&&(t.unit=t.unit.toLowerCase()),e.type!=="media-feature"&&e.type!=="media-keyword"&&e.type!=="media-type"&&e.type!=="media-unknown"&&e.type!=="media-url"&&e.type!=="media-value"&&e.type!=="selector-attribute"&&e.type!=="selector-string"&&e.type!=="selector-class"&&e.type!=="selector-combinator"&&e.type!=="value-string"||!t.value||(t.value=t.value.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")),e.type==="selector-attribute"&&(t.attribute=t.attribute.trim(),t.namespace&&typeof t.namespace=="string"&&(t.namespace=t.namespace.trim(),t.namespace.length===0&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^["']|["']$/g,""),delete t.quoted)),e.type!=="media-value"&&e.type!=="media-type"&&e.type!=="value-number"&&e.type!=="selector-root-invalid"&&e.type!=="selector-class"&&e.type!=="selector-combinator"&&e.type!=="selector-tag"||!t.value||(t.value=t.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,(n,i,s)=>{let l=Number(i);return isNaN(l)?n:l+s.toLowerCase()})),e.type==="selector-tag"){let n=e.value.toLowerCase();["from","to"].includes(n)&&(t.value=n)}e.type==="css-atrule"&&e.name.toLowerCase()==="supports"&&delete t.value,e.type==="selector-unknown"&&delete t.value}u1.ignoredProperties=yS;var DS=u1;let{builders:{hardline:o1,concat:bS,markAsRoot:ES}}=ae,l1={"---":"yaml","+++":"toml"};var Zs={parse:function(e){let t=Object.keys(l1).map(ms).join("|"),r=e.match(new RegExp("^(".concat(t,")([^\\n]*)\\n(?:([\\s\\S]*?)\\n)?\\1[^\\n\\S]*(\\n|$)")));if(r===null)return{frontMatter:null,content:e};let[n,i,s,l]=r,a=l1[i];return a!=="toml"&&s&&s.trim()&&(a=s.trim()),{frontMatter:{type:"front-matter",lang:a,value:l,raw:n.replace(/\n$/,"")},content:n.replace(/[^\n]/g," ")+e.slice(n.length)}},print:function(e,t){if(e.lang==="yaml"){let r=e.value.trim(),n=r?t(r,{parser:"yaml"},{stripTrailingHardline:!0}):"";return ES(bS(["---",o1,n,n?o1:"","---"]))}}};let{builders:{hardline:vS,concat:CS}}=ae,{print:xS}=Zs;var AS=function(e,t,r){let n=e.getValue();if(n.type==="front-matter"){let i=xS(n,r);return i?CS([i,vS]):""}};let{parse:c1}=Zs;var SS={hasPragma:function(e){return rc.hasPragma(c1(e).content)},insertPragma:function(e){let{frontMatter:t,content:r}=c1(e);return(t?t.raw+`
|
|
150
150
|
|
|
151
|
-
`:"")+
|
|
152
|
-
`,r)+1;return r+e.column};let{getLast:
|
|
151
|
+
`:"")+rc.insertPragma(r)}};let wS=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function p1(e,t){let r=[].concat(t),n,i=-1;for(;n=e.getParentNode(++i);)if(r.includes(n.type))return i;return-1}function vr(e,t){let r=p1(e,t);return r===-1?null:e.getParentNode(r)}function f1(e){return e.type==="value-operator"&&e.value==="*"}function h1(e){return e.type==="value-operator"&&e.value==="/"}function d1(e){return e.type==="value-operator"&&e.value==="+"}function g1(e){return e.type==="value-operator"&&e.value==="-"}function m1(e){return e.type==="value-operator"&&e.value==="%"}function y1(e){return e.type==="value-comma_group"&&e.groups&&e.groups[1]&&e.groups[1].type==="value-colon"}function Ou(e){return e.type==="value-paren_group"&&e.groups&&e.groups[0]&&y1(e.groups[0])}var FS={getAncestorCounter:p1,getAncestorNode:vr,getPropOfDeclNode:function(e){let t=vr(e,"css-decl");return t&&t.prop&&t.prop.toLowerCase()},hasSCSSInterpolation:function(e){if(e&&e.length){for(let t=e.length-1;t>0;t--)if(e[t].type==="word"&&e[t].value==="{"&&e[t-1].type==="word"&&e[t-1].value.endsWith("#"))return!0}return!1},hasStringOrFunction:function(e){if(e&&e.length){for(let t=0;t<e.length;t++)if(e[t].type==="string"||e[t].type==="func")return!0}return!1},maybeToLowerCase:function(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()},insideValueFunctionNode:function(e,t){let r=vr(e,"value-func");return r&&r.value&&r.value.toLowerCase()===t},insideICSSRuleNode:function(e){let t=vr(e,"css-rule");return t&&t.raws&&t.raws.selector&&(t.raws.selector.startsWith(":import")||t.raws.selector.startsWith(":export"))},insideAtRuleNode:function(e,t){let r=[].concat(t),n=vr(e,"css-atrule");return n&&r.includes(n.name.toLowerCase())},insideURLFunctionInImportAtRuleNode:function(e){let t=e.getValue(),r=vr(e,"css-atrule");return r&&r.name==="import"&&t.groups[0].value==="url"&&t.groups.length===2},isKeyframeAtRuleKeywords:function(e,t){let r=vr(e,"css-atrule");return r&&r.name&&r.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(t.toLowerCase())},isWideKeywords:function(e){return["initial","inherit","unset","revert"].includes(e.toLowerCase())},isSCSS:function(e,t){return e==="less"||e==="scss"?e==="scss":/(\w\s*:\s*[^:}]+|#){|@import[^\n]+(?:url|,)/.test(t)},isSCSSVariable:function(e){return!(!e||e.type!=="word"||!e.value.startsWith("$"))},isLastNode:function(e,t){let r=e.getParentNode();if(!r)return!1;let{nodes:n}=r;return n&&n.indexOf(t)===n.length-1},isLessParser:function(e){return e.parser==="css"||e.parser==="less"},isSCSSControlDirectiveNode:function(e){return e.type==="css-atrule"&&["if","else","for","each","while"].includes(e.name)},isDetachedRulesetDeclarationNode:function(e){return!!e.selector&&(typeof e.selector=="string"&&/^@.+:.*$/.test(e.selector)||e.selector.value&&/^@.+:.*$/.test(e.selector.value))},isRelationalOperatorNode:function(e){return e.type==="value-word"&&["<",">","<=",">="].includes(e.value)},isEqualityOperatorNode:function(e){return e.type==="value-word"&&["==","!="].includes(e.value)},isMultiplicationNode:f1,isDivisionNode:h1,isAdditionNode:d1,isSubtractionNode:g1,isModuloNode:m1,isMathOperatorNode:function(e){return f1(e)||h1(e)||d1(e)||g1(e)||m1(e)},isEachKeywordNode:function(e){return e.type==="value-word"&&e.value==="in"},isForKeywordNode:function(e){return e.type==="value-word"&&["from","through","end"].includes(e.value)},isURLFunctionNode:function(e){return e.type==="value-func"&&e.value.toLowerCase()==="url"},isIfElseKeywordNode:function(e){return e.type==="value-word"&&["and","or","not"].includes(e.value)},hasComposesNode:function(e){return e.value&&e.value.type==="value-root"&&e.value.group&&e.value.group.type==="value-value"&&e.prop.toLowerCase()==="composes"},hasParensAroundNode:function(e){return e.value&&e.value.group&&e.value.group.group&&e.value.group.group.type==="value-paren_group"&&e.value.group.group.open!==null&&e.value.group.group.close!==null},hasEmptyRawBefore:function(e){return e.raws&&e.raws.before===""},isSCSSNestedPropertyNode:function(e){return!!e.selector&&e.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*?\n/,"").trim().endsWith(":")},isDetachedRulesetCallNode:function(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},isTemplatePlaceholderNode:function(e){return e.name.startsWith("prettier-placeholder")},isTemplatePropNode:function(e){return e.prop.startsWith("@prettier-placeholder")},isPostcssSimpleVarNode:function(e,t){return e.value==="$$"&&e.type==="value-func"&&t&&t.type==="value-word"&&!t.raws.before},isKeyValuePairNode:y1,isKeyValuePairInParenGroupNode:Ou,isSCSSMapItemNode:function(e){let t=e.getValue();if(t.groups.length===0)return!1;let r=e.getParentNode(1);if(!(Ou(t)||r&&Ou(r)))return!1;let n=vr(e,"css-decl");return!!(n&&n.prop&&n.prop.startsWith("$"))||!!Ou(r)||r.type==="value-func"},isInlineValueCommentNode:function(e){return e.type==="value-comment"&&e.inline},isHashNode:function(e){return e.type==="value-word"&&e.value==="#"},isLeftCurlyBraceNode:function(e){return e.type==="value-word"&&e.value==="{"},isRightCurlyBraceNode:function(e){return e.type==="value-word"&&e.value==="}"},isWordNode:function(e){return["value-word","value-atword"].includes(e.type)},isColonNode:function(e){return e.type==="value-colon"},isMediaAndSupportsKeywords:function(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())},isColorAdjusterFuncNode:function(e){return e.type==="value-func"&&wS.has(e.value.toLowerCase())},lastLineHasInlineComment:function(e){return/\/\//.test(e.split(/[\n\r]/).pop())},stringifyNode:function e(t){if(t.groups)return(t.open&&t.open.value?t.open.value:"")+t.groups.reduce((i,s,l)=>i+e(s)+(t.groups[0].type==="comma_group"&&l!==t.groups.length-1?",":""),"")+(t.close&&t.close.value?t.close.value:"");let r=t.raws&&t.raws.before?t.raws.before:"",n=t.raws&&t.raws.quote?t.raws.quote:"";return r+n+(t.type==="atword"?"@":"")+(t.value?t.value:"")+n+(t.unit?t.unit:"")+(t.group?e(t.group):"")+(t.raws&&t.raws.after?t.raws.after:"")},isAtWordPlaceholderNode:function(e){return e&&e.type==="value-atword"&&e.value.startsWith("prettier-placeholder-")}},D1=function(e,t){let r=0;for(let n=0;n<e.line-1;++n)r=t.indexOf(`
|
|
152
|
+
`,r)+1;return r+e.column};let{getLast:TS,skipEverythingButNewLine:kS}=ve;function b1(e,t){return typeof e.sourceIndex=="number"?e.sourceIndex:e.source?D1(e.source.start,t)-1:null}function E1(e,t){if(e.type==="css-comment"&&e.inline)return kS(t,e.source.startOffset);let r=e.nodes&&TS(e.nodes);return r&&e.source&&!e.source.end&&(e=r),e.source&&e.source.end?D1(e.source.end,t):null}function v1(e,t,r){e.source&&(e.source.startOffset=b1(e,r)+t,e.source.endOffset=E1(e,r)+t);for(let n in e){let i=e[n];n!=="source"&&i&&typeof i=="object"&&v1(i,t,r)}}function _S(e){let t=e.source.startOffset;return typeof e.prop=="string"&&(t+=e.prop.length),e.type==="css-atrule"&&typeof e.name=="string"&&(t+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/)[0].length),e.type!=="css-atrule"&&e.raws&&typeof e.raws.between=="string"&&(t+=e.raws.between.length),t}var PS={locStart:function(e){return e.source.startOffset},locEnd:function(e){return e.source.endOffset},calculateLoc:function e(t,r){t.source&&(t.source.startOffset=b1(t,r),t.source.endOffset=E1(t,r));for(let n in t){let i=t[n];n!=="source"&&i&&typeof i=="object"&&(i.type==="value-root"||i.type==="value-unknown"?v1(i,_S(t),i.text||i.value):e(i,r))}},replaceQuotesInInlineComments:function(e){let t,r="initial",n="initial",i=!1,s=[];for(let l=0;l<e.length;l++){let a=e[l];switch(r){case"initial":if(a==="'"){r="single-quotes";continue}if(a==='"'){r="double-quotes";continue}if((a==="u"||a==="U")&&e.slice(l,l+4).toLowerCase()==="url("){r="url",l+=3;continue}if(a==="*"&&e[l-1]==="/"){r="comment-block";continue}if(a==="/"&&e[l-1]==="/"){r="comment-inline",t=l-1;continue}continue;case"single-quotes":if(a==="'"&&e[l-1]!=="\\"&&(r=n,n="initial"),a===`
|
|
153
153
|
`||a==="\r")return e;continue;case"double-quotes":if(a==='"'&&e[l-1]!=="\\"&&(r=n,n="initial"),a===`
|
|
154
154
|
`||a==="\r")return e;continue;case"url":if(a===")"&&(r="initial"),a===`
|
|
155
155
|
`||a==="\r")return e;if(a==="'"){r="single-quotes",n="url";continue}if(a==='"'){r="double-quotes",n="url";continue}continue;case"comment-block":a==="/"&&e[l-1]==="*"&&(r="initial");continue;case"comment-inline":a!=='"'&&a!=="'"&&a!=="*"||(i=!0),a!==`
|
|
156
|
-
`&&a!=="\r"||(i&&s.push([t,l]),r="initial",i=!1);continue}}for(let[l,a]of s)e=e.slice(0,l)+e.slice(l,a).replace(/["'*]/g," ")+e.slice(a);return e}};let{printNumber:_S,printString:vg,hasNewline:PS,isFrontMatterNode:Cg,isNextLineEmpty:BS}=Ee,{builders:{concat:Q,join:Gi,line:Nt,hardline:kt,softline:Cr,group:pn,fill:Jc,indent:en,dedent:Xc,ifBreak:xg,breakParent:NS},utils:{removeLines:OS}}=ae,{insertPragma:IS}=xS,{getAncestorNode:Yc,getPropOfDeclNode:LS,maybeToLowerCase:Kr,insideValueFunctionNode:Iu,insideICSSRuleNode:RS,insideAtRuleNode:Kc,insideURLFunctionInImportAtRuleNode:MS,isKeyframeAtRuleKeywords:jS,isWideKeywords:VS,isSCSS:US,isLastNode:Qc,isLessParser:Ag,isSCSSControlDirectiveNode:Zc,isDetachedRulesetDeclarationNode:qS,isRelationalOperatorNode:$S,isEqualityOperatorNode:WS,isMultiplicationNode:Sg,isDivisionNode:wg,isAdditionNode:Qr,isSubtractionNode:ea,isMathOperatorNode:ep,isEachKeywordNode:GS,isForKeywordNode:HS,isURLFunctionNode:zS,isIfElseKeywordNode:JS,hasComposesNode:XS,hasParensAroundNode:YS,hasEmptyRawBefore:Hi,isKeyValuePairNode:KS,isDetachedRulesetCallNode:Fg,isTemplatePlaceholderNode:Tg,isTemplatePropNode:QS,isPostcssSimpleVarNode:ZS,isSCSSMapItemNode:ew,isInlineValueCommentNode:tw,isHashNode:tp,isLeftCurlyBraceNode:kg,isRightCurlyBraceNode:np,isWordNode:Lu,isColonNode:_g,isMediaAndSupportsKeywords:nw,isColorAdjusterFuncNode:rw,lastLineHasInlineComment:ta,isAtWordPlaceholderNode:rp}=SS,{locStart:Zr,locEnd:xr}=kS;function iw(e){return e.trailingComma==="es5"||e.trailingComma==="all"}function na(e,t,r){let n=e.getValue(),i=[];return e.each((s,l)=>{let a=n.nodes[l-1];if(a&&a.type==="css-comment"&&a.text.trim()==="prettier-ignore"){let c=s.getValue();i.push(t.originalText.slice(Zr(c),xr(c)))}else i.push(s.call(r));l!==n.nodes.length-1&&(n.nodes[l+1].type==="css-comment"&&!PS(t.originalText,Zr(n.nodes[l+1]),{backwards:!0})&&!Cg(n.nodes[l])||n.nodes[l+1].type==="css-atrule"&&n.nodes[l+1].name==="else"&&n.nodes[l].type!=="css-comment"?i.push(" "):(i.push(t.__isHTMLStyleAttribute?Nt:kt),BS(t.originalText,s.getValue(),xr)&&!Cg(n.nodes[l])&&i.push(kt)))},"nodes"),Q(i)}let Pg=/(["'])(?:(?!\1)[^\\]|\\[\S\s])*\1/g,sw=new RegExp(Pg.source+"|"+"(".concat(/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g.source,")?")+"(".concat(/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g.source,")")+"(".concat(/[A-Za-z]+/g.source,")?"),"g");function wn(e,t){return e.replace(Pg,r=>vg(r,t))}function aw(e,t){let r=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:r+e+r}function zi(e){return e.replace(sw,(t,r,n,i,s)=>!n&&i?Bg(i)+Kr(s||""):t)}function Bg(e){return _S(e).replace(/\.0(?=$|e)/,"")}var uw={print:function(e,t,r){let n=e.getValue();if(!n)return"";if(typeof n=="string")return n;switch(n.type){case"front-matter":return Q([n.raw,kt]);case"css-root":{let i=na(e,t,r),s=n.raws.after.trim();return Q([i,s?" ".concat(s):"",i.parts.length?kt:""])}case"css-comment":{let i=n.inline||n.raws.inline,s=t.originalText.slice(Zr(n),xr(n));return i?s.trimEnd():s}case"css-rule":return Q([e.call(r,"selector"),n.important?" !important":"",n.nodes?Q([n.selector&&n.selector.type==="selector-unknown"&&ta(n.selector.value)?Nt:" ","{",n.nodes.length>0?en(Q([kt,na(e,t,r)])):"",kt,"}",qS(n)?";":""]):";"]);case"css-decl":{let i=e.getParentNode(),{between:s}=n.raws,l=s.trim(),a=l===":",c=XS(n)?OS(e.call(r,"value")):e.call(r,"value");return!a&&ta(l)&&(c=en(Q([kt,Xc(c)]))),Q([n.raws.before.replace(/[\s;]/g,""),RS(e)?n.prop:Kr(n.prop),l.startsWith("//")?" ":"",l,n.extend?"":" ",Ag(t)&&n.extend&&n.selector?Q(["extend(",e.call(r,"selector"),")"]):"",c,n.raws.important?n.raws.important.replace(/\s*!\s*important/i," !important"):n.important?" !important":"",n.raws.scssDefault?n.raws.scssDefault.replace(/\s*!default/i," !default"):n.scssDefault?" !default":"",n.raws.scssGlobal?n.raws.scssGlobal.replace(/\s*!global/i," !global"):n.scssGlobal?" !global":"",n.nodes?Q([" {",en(Q([Cr,na(e,t,r)])),Cr,"}"]):QS(n)&&!i.raws.semicolon&&t.originalText[xr(n)-1]!==";"?"":t.__isHTMLStyleAttribute&&Qc(e,n)?xg(";",""):";"])}case"css-atrule":{let i=e.getParentNode(),s=Tg(n)&&!i.raws.semicolon&&t.originalText[xr(n)-1]!==";";if(Ag(t)){if(n.mixin)return Q([e.call(r,"selector"),n.important?" !important":"",s?"":";"]);if(n.function)return Q([n.name,Q([e.call(r,"params")]),s?"":";"]);if(n.variable)return Q(["@",n.name,": ",n.value?Q([e.call(r,"value")]):"",n.raws.between.trim()?n.raws.between.trim()+" ":"",n.nodes?Q(["{",en(Q([n.nodes.length>0?Cr:"",na(e,t,r)])),Cr,"}"]):"",s?"":";"])}return Q(["@",Fg(n)||n.name.endsWith(":")?n.name:Kr(n.name),n.params?Q([Fg(n)?"":Tg(n)?n.raws.afterName===""?"":n.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(n.raws.afterName)?Q([kt,kt]):/^\s*\n/.test(n.raws.afterName)?kt:" ":" ",e.call(r,"params")]):"",n.selector?en(Q([" ",e.call(r,"selector")])):"",n.value?pn(Q([" ",e.call(r,"value"),Zc(n)?YS(n)?" ":Nt:""])):n.name==="else"?" ":"",n.nodes?Q([Zc(n)?"":n.selector&&!n.selector.nodes&&typeof n.selector.value=="string"&&ta(n.selector.value)||!n.selector&&typeof n.params=="string"&&ta(n.params)?Nt:" ","{",en(Q([n.nodes.length>0?Cr:"",na(e,t,r)])),Cr,"}"]):s?"":";"])}case"media-query-list":{let i=[];return e.each(s=>{let l=s.getValue();l.type==="media-query"&&l.value===""||i.push(s.call(r))},"nodes"),pn(en(Gi(Nt,i)))}case"media-query":return Q([Gi(" ",e.map(r,"nodes")),Qc(e,n)?"":","]);case"media-type":return zi(wn(n.value,t));case"media-feature-expression":return n.nodes?Q(["(",Q(e.map(r,"nodes")),")"]):n.value;case"media-feature":return Kr(wn(n.value.replace(/ +/g," "),t));case"media-colon":return Q([n.value," "]);case"media-value":return zi(wn(n.value,t));case"media-keyword":return wn(n.value,t);case"media-url":return wn(n.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),t);case"media-unknown":return n.value;case"selector-root":return pn(Q([Kc(e,"custom-selector")?Q([Yc(e,"css-atrule").customSelector,Nt]):"",Gi(Q([",",Kc(e,["extend","custom-selector","nest"])?Nt:kt]),e.map(r,"nodes"))]));case"selector-selector":return pn(en(Q(e.map(r,"nodes"))));case"selector-comment":return n.value;case"selector-string":return wn(n.value,t);case"selector-tag":{let i=e.getParentNode(),s=i&&i.nodes.indexOf(n),l=s&&i.nodes[s-1];return Q([n.namespace?Q([n.namespace===!0?"":n.namespace.trim(),"|"]):"",l.type==="selector-nesting"?n.value:zi(jS(e,n.value)?n.value.toLowerCase():n.value)])}case"selector-id":return Q(["#",n.value]);case"selector-class":return Q([".",zi(wn(n.value,t))]);case"selector-attribute":return Q(["[",n.namespace?Q([n.namespace===!0?"":n.namespace.trim(),"|"]):"",n.attribute.trim(),n.operator?n.operator:"",n.value?aw(wn(n.value.trim(),t),t):"",n.insensitive?" i":"","]"]);case"selector-combinator":{if(n.value==="+"||n.value===">"||n.value==="~"||n.value===">>>"){let l=e.getParentNode(),a=l.type==="selector-selector"&&l.nodes[0]===n?"":Nt;return Q([a,n.value,Qc(e,n)?"":" "])}let i=n.value.trim().startsWith("(")?Nt:"",s=zi(wn(n.value.trim(),t))||Nt;return Q([i,s])}case"selector-universal":return Q([n.namespace?Q([n.namespace===!0?"":n.namespace.trim(),"|"]):"",n.value]);case"selector-pseudo":return Q([Kr(n.value),n.nodes&&n.nodes.length>0?Q(["(",Gi(", ",e.map(r,"nodes")),")"]):""]);case"selector-nesting":return n.value;case"selector-unknown":{let i=Yc(e,"css-rule");if(i&&i.isSCSSNesterProperty)return zi(wn(Kr(n.value),t));let s=e.getParentNode();if(s.raws&&s.raws.selector){let a=Zr(s),c=a+s.raws.selector.length;return t.originalText.slice(a,c).trim()}let l=e.getParentNode(1);if(s.type==="value-paren_group"&&l&&l.type==="value-func"&&l.value==="selector"){let a=Zr(s.open)+1,c=xr(s.close)-1,p=t.originalText.slice(a,c).trim();return ta(p)?Q([NS,p]):p}return n.value}case"value-value":case"value-root":return e.call(r,"group");case"value-comment":return t.originalText.slice(Zr(n),xr(n));case"value-comma_group":{let i=e.getParentNode(),s=e.getParentNode(1),l=LS(e),a=l&&i.type==="value-value"&&(l==="grid"||l.startsWith("grid-template")),c=Yc(e,"css-atrule"),p=c&&Zc(c),u=e.map(r,"groups"),d=[],h=Iu(e,"url"),b=!1,m=!1;for(let x=0;x<n.groups.length;++x){d.push(u[x]);let F=n.groups[x-1],E=n.groups[x],A=n.groups[x+1],P=n.groups[x+2];if(h){(A&&Qr(A)||Qr(E))&&d.push(" ");continue}if(!A||E.type==="value-word"&&E.value.endsWith("-")&&rp(A))continue;let L=E.type==="value-string"&&E.value.startsWith("#{"),N=b&&A.type==="value-string"&&A.value.endsWith("}");if(L||N){b=!b;continue}if(b||_g(E)||_g(A)||E.type==="value-atword"&&E.value===""||E.value==="~"||E.value&&E.value.includes("\\")&&A&&A.type!=="value-comment"||F&&F.value&&F.value.indexOf("\\")===F.value.length-1&&E.type==="value-operator"&&E.value==="/"||E.value==="\\"||ZS(E,A)||tp(E)||kg(E)||np(A)||kg(A)&&Hi(A)||np(E)&&Hi(A)||E.value==="--"&&tp(A))continue;let R=ep(E),U=ep(A);if((R&&tp(A)||U&&np(E))&&Hi(A)||Iu(e,"calc")&&(Qr(E)||Qr(A)||ea(E)||ea(A))&&Hi(A))continue;let z=(Qr(E)||ea(E))&&x===0&&(A.type==="value-number"||A.isHex)&&s&&rw(s)&&!Hi(A),q=P&&P.type==="value-func"||P&&Lu(P)||E.type==="value-func"||Lu(E),J=A.type==="value-func"||Lu(A)||F&&F.type==="value-func"||F&&Lu(F);if(Sg(A)||Sg(E)||Iu(e,"calc")||z||!(wg(A)&&!q||wg(E)&&!J||Qr(A)&&!q||Qr(E)&&!J||ea(A)||ea(E))||!(Hi(A)||R&&(!F||F&&ep(F))))if(tw(E)){if(i.type==="value-paren_group"){d.push(Xc(kt));continue}d.push(kt)}else p&&(WS(A)||$S(A)||JS(A)||GS(E)||HS(E))||c&&c.name.toLowerCase()==="namespace"?d.push(" "):a?E.source&&A.source&&E.source.start.line!==A.source.start.line?(d.push(kt),m=!0):d.push(" "):U?d.push(" "):A&&A.value==="..."||rp(E)&&rp(A)&&xr(E)===Zr(A)||d.push(Nt)}return m&&d.unshift(kt),p?pn(en(Q(d))):MS(e)?pn(Jc(d)):pn(en(Jc(d)))}case"value-paren_group":{let i=e.getParentNode();if(i&&zS(i)&&(n.groups.length===1||n.groups.length>0&&n.groups[0].type==="value-comma_group"&&n.groups[0].groups.length>0&&n.groups[0].groups[0].type==="value-word"&&n.groups[0].groups[0].value.startsWith("data:")))return Q([n.open?e.call(r,"open"):"",Gi(",",e.map(r,"groups")),n.close?e.call(r,"close"):""]);if(!n.open){let c=e.map(r,"groups"),p=[];for(let u=0;u<c.length;u++)u!==0&&p.push(Q([",",Nt])),p.push(c[u]);return pn(en(Jc(p)))}let s=ew(e),l=n.groups[n.groups.length-1],a=l&&l.type==="value-comment";return pn(Q([n.open?e.call(r,"open"):"",en(Q([Cr,Gi(Q([",",Nt]),e.map(c=>{let p=c.getValue(),u=r(c);return KS(p)&&p.type==="value-comma_group"&&p.groups&&p.groups[2]&&p.groups[2].type==="value-paren_group"?(u.contents.contents.parts[1]=pn(u.contents.contents.parts[1]),pn(Xc(u))):u},"groups"))])),xg(!a&&US(t.parser,t.originalText)&&s&&iw(t)?",":""),Cr,n.close?e.call(r,"close"):""]),{shouldBreak:s})}case"value-func":return Q([n.value,Kc(e,"supports")&&nw(n)?" ":"",e.call(r,"group")]);case"value-paren":return n.value;case"value-number":return Q([Bg(n.value),Kr(n.unit)]);case"value-operator":return n.value;case"value-word":return n.isColor&&n.isHex||VS(n.value)?n.value.toLowerCase():n.value;case"value-colon":{let i=e.getParentNode(),s=i&&i.groups.indexOf(n),l=s&&i.groups[s-1];return Q([n.value,l&&l.value[l.value.length-1]==="\\"||Iu(e,"url")?"":Nt])}case"value-comma":return Q([n.value," "]);case"value-string":return vg(n.raws.quote+n.value+n.raws.quote,t);case"value-atword":return Q(["@",n.value]);case"value-unicode-range":case"value-unknown":return n.value;default:throw new Error("Unknown postcss type ".concat(JSON.stringify(n.type)))}},embed:CS,insertPragma:IS,massageAstNode:mS},ow={singleQuote:Jn.singleQuote},lw={name:"PostCSS",type:"markup",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",languageId:262764437},cw={name:"Less",type:"markup",color:"#1d365d",extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198},pw={name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],languageId:329},fw={languages:[ze({name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css"],languageId:50},e=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"],extensions:[...e.extensions,".wxss"]})),ze(lw,()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]})),ze(cw,()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]})),ze(pw,()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]}))],options:ow,printers:{postcss:uw},parsers:{get css(){return{}.parsers.css},get less(){return{}.parsers.less},get scss(){return{}.parsers.scss}}},hw={locStart:function(e){return e.loc.start.offset},locEnd:function(e){return e.loc.end.offset}};function Ng(e,t){if(e.type==="TextNode"){let r=e.chars.trim();if(!r)return null;t.chars=r}}Ng.ignoredProperties=new Set(["loc","selfClosing"]);var dw=Ng;let gw=new Set(["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"]);function Og(e){return ei(e,["TextNode"])&&!/\S/.test(e.chars)}function ei(e,t){return e&&t.some(r=>e.type===r)}function Ig(e,t){let r=e.getValue(),n=e.getParentNode(0)||{},i=n.children||n.body||n.parts||[],s=i.indexOf(r);return s!==-1&&i[s+t]}function ip(e,t=1){return Ig(e,-t)}function Lg(e){return Ig(e,1)}function Rg(e){return ei(e,["MustacheCommentStatement"])&&typeof e.value=="string"&&e.value.trim()==="prettier-ignore"}var mw={getNextNode:Lg,getPreviousNode:ip,hasPrettierIgnore:function(e){let t=e.getValue(),r=ip(e,2);return Rg(t)||Rg(r)},isNextNodeOfSomeType:function(e,t){return ei(Lg(e),t)},isNodeOfSomeType:ei,isParentOfSomeType:function(e,t){return ei(e.getParentNode(0),t)},isPreviousNodeOfSomeType:function(e,t){return ei(ip(e),t)},isVoid:function(e){return function(t){return ei(t,["ElementNode"])&&typeof t.tag=="string"&&(function(r){return r.toUpperCase()===r}(t.tag[0])||t.tag.includes("."))}(e)&&e.children.every(t=>Og(t))||gw.has(e.tag)},isWhitespaceNode:Og};let{builders:{concat:oe,group:fn,hardline:ti,ifBreak:Mg,indent:ni,join:ra,line:Fn,softline:Tn}}=ae,{locStart:jg,locEnd:Vg}=hw,{getNextNode:yw,getPreviousNode:Dw,hasPrettierIgnore:bw,isNextNodeOfSomeType:Ru,isNodeOfSomeType:sp,isParentOfSomeType:Ji,isPreviousNodeOfSomeType:ap,isVoid:Ug,isWhitespaceNode:qg}=mw;function $g(e,t){let r=e.getValue();return oe(["<",r.tag,Ew(e,t),Zg(r),Cw(r)])}function Ew(e,t){let r=e.getValue();return ni(oe([r.attributes.length?Fn:"",ra(Fn,e.map(t,"attributes")),r.modifiers.length?Fn:"",ra(Fn,e.map(t,"modifiers")),r.comments.length?Fn:"",ra(Fn,e.map(t,"comments"))]))}function vw(e,t,r){return oe(e.map((n,i)=>i===0?oe([Tn,r(n,t,r)]):r(n,t,r),"children"))}function Cw(e){return Ug(e)?Mg(oe([Tn,"/>"]),oe([" />",Tn])):Mg(oe([Tn,">"]),">")}function Mu(e){let t=e.escaped===!1?"{{{":"{{",r=e.strip&&e.strip.open?"~":"";return oe([t,r])}function ju(e){let t=e.escaped===!1?"}}}":"}}",r=e.strip&&e.strip.close?"~":"";return oe([r,t])}function xw(e){let t=Mu(e),r=e.openStrip.open?"~":"";return oe([t,r,"#"])}function Aw(e){let t=ju(e),r=e.openStrip.close?"~":"";return oe([r,t])}function Sw(e){let t=Mu(e),r=e.closeStrip.open?"~":"";return oe([t,r,"/"])}function ww(e){let t=ju(e),r=e.closeStrip.close?"~":"";return oe([r,t])}function Wg(e){let t=Mu(e),r=e.inverseStrip.open?"~":"";return oe([t,r])}function Gg(e){let t=ju(e),r=e.inverseStrip.close?"~":"";return oe([r,t])}function Fw(e,t){let r=e.getValue();return fn(oe([xw(r),Uu(e,t),Zg(r.program),Tn,Aw(r)]))}function Tw(e){return oe([ti,Wg(e),"else",Gg(e)])}function kw(e,t){let r=e.getParentNode(1);return oe([Wg(r),"else ",Uu(e,t),Gg(r)])}function _w(e,t){let r=e.getValue();return oe([Hg(r)?Tn:ti,Sw(r),e.call(t,"path"),ww(r)])}function Hg(e){return sp(e,["BlockStatement"])&&e.program.body.every(t=>qg(t))}function zg(e){return sp(e,["BlockStatement"])&&e.inverse}function Jg(e,t){if(Hg(e.getValue()))return"";let r=e.call(t,"program");return ni(oe([ti,r]))}function Xg(e,t){let r=e.getValue(),n=e.call(t,"inverse"),i=oe([ti,n]);return function(s){return zg(s)&&s.inverse.body.length===1&&sp(s.inverse.body[0],["BlockStatement"])&&s.inverse.body[0].path.parts[0]==="if"}(r)?i:zg(r)?oe([Tw(r),ni(i)]):""}function up(e){return(e=typeof e=="string"?e:"").split(`
|
|
157
|
-
`).length-1}function Vu(e=0,t=0){return new Array(Math.min(e,t)).fill(ti)}function
|
|
156
|
+
`&&a!=="\r"||(i&&s.push([t,l]),r="initial",i=!1);continue}}for(let[l,a]of s)e=e.slice(0,l)+e.slice(l,a).replace(/["'*]/g," ")+e.slice(a);return e}};let{printNumber:BS,printString:C1,hasNewline:NS,isFrontMatterNode:x1,isNextLineEmpty:OS}=ve,{builders:{concat:Z,join:Gi,line:Nt,hardline:kt,softline:Cr,group:pn,fill:Xc,indent:en,dedent:Yc,ifBreak:A1,breakParent:IS},utils:{removeLines:LS}}=ae,{insertPragma:RS}=SS,{getAncestorNode:Kc,getPropOfDeclNode:MS,maybeToLowerCase:Kr,insideValueFunctionNode:Iu,insideICSSRuleNode:jS,insideAtRuleNode:Qc,insideURLFunctionInImportAtRuleNode:VS,isKeyframeAtRuleKeywords:US,isWideKeywords:qS,isSCSS:$S,isLastNode:Zc,isLessParser:S1,isSCSSControlDirectiveNode:ep,isDetachedRulesetDeclarationNode:WS,isRelationalOperatorNode:GS,isEqualityOperatorNode:HS,isMultiplicationNode:w1,isDivisionNode:F1,isAdditionNode:Qr,isSubtractionNode:ea,isMathOperatorNode:tp,isEachKeywordNode:zS,isForKeywordNode:JS,isURLFunctionNode:XS,isIfElseKeywordNode:YS,hasComposesNode:KS,hasParensAroundNode:QS,hasEmptyRawBefore:Hi,isKeyValuePairNode:ZS,isDetachedRulesetCallNode:T1,isTemplatePlaceholderNode:k1,isTemplatePropNode:ew,isPostcssSimpleVarNode:tw,isSCSSMapItemNode:nw,isInlineValueCommentNode:rw,isHashNode:np,isLeftCurlyBraceNode:_1,isRightCurlyBraceNode:rp,isWordNode:Lu,isColonNode:P1,isMediaAndSupportsKeywords:iw,isColorAdjusterFuncNode:sw,lastLineHasInlineComment:ta,isAtWordPlaceholderNode:ip}=FS,{locStart:Zr,locEnd:xr}=PS;function aw(e){return e.trailingComma==="es5"||e.trailingComma==="all"}function na(e,t,r){let n=e.getValue(),i=[];return e.each((s,l)=>{let a=n.nodes[l-1];if(a&&a.type==="css-comment"&&a.text.trim()==="prettier-ignore"){let c=s.getValue();i.push(t.originalText.slice(Zr(c),xr(c)))}else i.push(s.call(r));l!==n.nodes.length-1&&(n.nodes[l+1].type==="css-comment"&&!NS(t.originalText,Zr(n.nodes[l+1]),{backwards:!0})&&!x1(n.nodes[l])||n.nodes[l+1].type==="css-atrule"&&n.nodes[l+1].name==="else"&&n.nodes[l].type!=="css-comment"?i.push(" "):(i.push(t.__isHTMLStyleAttribute?Nt:kt),OS(t.originalText,s.getValue(),xr)&&!x1(n.nodes[l])&&i.push(kt)))},"nodes"),Z(i)}let B1=/(["'])(?:(?!\1)[^\\]|\\[\S\s])*\1/g,uw=new RegExp(B1.source+"|"+"(".concat(/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g.source,")?")+"(".concat(/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g.source,")")+"(".concat(/[A-Za-z]+/g.source,")?"),"g");function wn(e,t){return e.replace(B1,r=>C1(r,t))}function ow(e,t){let r=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:r+e+r}function zi(e){return e.replace(uw,(t,r,n,i,s)=>!n&&i?N1(i)+Kr(s||""):t)}function N1(e){return BS(e).replace(/\.0(?=$|e)/,"")}var lw={print:function(e,t,r){let n=e.getValue();if(!n)return"";if(typeof n=="string")return n;switch(n.type){case"front-matter":return Z([n.raw,kt]);case"css-root":{let i=na(e,t,r),s=n.raws.after.trim();return Z([i,s?" ".concat(s):"",i.parts.length?kt:""])}case"css-comment":{let i=n.inline||n.raws.inline,s=t.originalText.slice(Zr(n),xr(n));return i?s.trimEnd():s}case"css-rule":return Z([e.call(r,"selector"),n.important?" !important":"",n.nodes?Z([n.selector&&n.selector.type==="selector-unknown"&&ta(n.selector.value)?Nt:" ","{",n.nodes.length>0?en(Z([kt,na(e,t,r)])):"",kt,"}",WS(n)?";":""]):";"]);case"css-decl":{let i=e.getParentNode(),{between:s}=n.raws,l=s.trim(),a=l===":",c=KS(n)?LS(e.call(r,"value")):e.call(r,"value");return!a&&ta(l)&&(c=en(Z([kt,Yc(c)]))),Z([n.raws.before.replace(/[\s;]/g,""),jS(e)?n.prop:Kr(n.prop),l.startsWith("//")?" ":"",l,n.extend?"":" ",S1(t)&&n.extend&&n.selector?Z(["extend(",e.call(r,"selector"),")"]):"",c,n.raws.important?n.raws.important.replace(/\s*!\s*important/i," !important"):n.important?" !important":"",n.raws.scssDefault?n.raws.scssDefault.replace(/\s*!default/i," !default"):n.scssDefault?" !default":"",n.raws.scssGlobal?n.raws.scssGlobal.replace(/\s*!global/i," !global"):n.scssGlobal?" !global":"",n.nodes?Z([" {",en(Z([Cr,na(e,t,r)])),Cr,"}"]):ew(n)&&!i.raws.semicolon&&t.originalText[xr(n)-1]!==";"?"":t.__isHTMLStyleAttribute&&Zc(e,n)?A1(";",""):";"])}case"css-atrule":{let i=e.getParentNode(),s=k1(n)&&!i.raws.semicolon&&t.originalText[xr(n)-1]!==";";if(S1(t)){if(n.mixin)return Z([e.call(r,"selector"),n.important?" !important":"",s?"":";"]);if(n.function)return Z([n.name,Z([e.call(r,"params")]),s?"":";"]);if(n.variable)return Z(["@",n.name,": ",n.value?Z([e.call(r,"value")]):"",n.raws.between.trim()?n.raws.between.trim()+" ":"",n.nodes?Z(["{",en(Z([n.nodes.length>0?Cr:"",na(e,t,r)])),Cr,"}"]):"",s?"":";"])}return Z(["@",T1(n)||n.name.endsWith(":")?n.name:Kr(n.name),n.params?Z([T1(n)?"":k1(n)?n.raws.afterName===""?"":n.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(n.raws.afterName)?Z([kt,kt]):/^\s*\n/.test(n.raws.afterName)?kt:" ":" ",e.call(r,"params")]):"",n.selector?en(Z([" ",e.call(r,"selector")])):"",n.value?pn(Z([" ",e.call(r,"value"),ep(n)?QS(n)?" ":Nt:""])):n.name==="else"?" ":"",n.nodes?Z([ep(n)?"":n.selector&&!n.selector.nodes&&typeof n.selector.value=="string"&&ta(n.selector.value)||!n.selector&&typeof n.params=="string"&&ta(n.params)?Nt:" ","{",en(Z([n.nodes.length>0?Cr:"",na(e,t,r)])),Cr,"}"]):s?"":";"])}case"media-query-list":{let i=[];return e.each(s=>{let l=s.getValue();l.type==="media-query"&&l.value===""||i.push(s.call(r))},"nodes"),pn(en(Gi(Nt,i)))}case"media-query":return Z([Gi(" ",e.map(r,"nodes")),Zc(e,n)?"":","]);case"media-type":return zi(wn(n.value,t));case"media-feature-expression":return n.nodes?Z(["(",Z(e.map(r,"nodes")),")"]):n.value;case"media-feature":return Kr(wn(n.value.replace(/ +/g," "),t));case"media-colon":return Z([n.value," "]);case"media-value":return zi(wn(n.value,t));case"media-keyword":return wn(n.value,t);case"media-url":return wn(n.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),t);case"media-unknown":return n.value;case"selector-root":return pn(Z([Qc(e,"custom-selector")?Z([Kc(e,"css-atrule").customSelector,Nt]):"",Gi(Z([",",Qc(e,["extend","custom-selector","nest"])?Nt:kt]),e.map(r,"nodes"))]));case"selector-selector":return pn(en(Z(e.map(r,"nodes"))));case"selector-comment":return n.value;case"selector-string":return wn(n.value,t);case"selector-tag":{let i=e.getParentNode(),s=i&&i.nodes.indexOf(n),l=s&&i.nodes[s-1];return Z([n.namespace?Z([n.namespace===!0?"":n.namespace.trim(),"|"]):"",l.type==="selector-nesting"?n.value:zi(US(e,n.value)?n.value.toLowerCase():n.value)])}case"selector-id":return Z(["#",n.value]);case"selector-class":return Z([".",zi(wn(n.value,t))]);case"selector-attribute":return Z(["[",n.namespace?Z([n.namespace===!0?"":n.namespace.trim(),"|"]):"",n.attribute.trim(),n.operator?n.operator:"",n.value?ow(wn(n.value.trim(),t),t):"",n.insensitive?" i":"","]"]);case"selector-combinator":{if(n.value==="+"||n.value===">"||n.value==="~"||n.value===">>>"){let l=e.getParentNode(),a=l.type==="selector-selector"&&l.nodes[0]===n?"":Nt;return Z([a,n.value,Zc(e,n)?"":" "])}let i=n.value.trim().startsWith("(")?Nt:"",s=zi(wn(n.value.trim(),t))||Nt;return Z([i,s])}case"selector-universal":return Z([n.namespace?Z([n.namespace===!0?"":n.namespace.trim(),"|"]):"",n.value]);case"selector-pseudo":return Z([Kr(n.value),n.nodes&&n.nodes.length>0?Z(["(",Gi(", ",e.map(r,"nodes")),")"]):""]);case"selector-nesting":return n.value;case"selector-unknown":{let i=Kc(e,"css-rule");if(i&&i.isSCSSNesterProperty)return zi(wn(Kr(n.value),t));let s=e.getParentNode();if(s.raws&&s.raws.selector){let a=Zr(s),c=a+s.raws.selector.length;return t.originalText.slice(a,c).trim()}let l=e.getParentNode(1);if(s.type==="value-paren_group"&&l&&l.type==="value-func"&&l.value==="selector"){let a=Zr(s.open)+1,c=xr(s.close)-1,p=t.originalText.slice(a,c).trim();return ta(p)?Z([IS,p]):p}return n.value}case"value-value":case"value-root":return e.call(r,"group");case"value-comment":return t.originalText.slice(Zr(n),xr(n));case"value-comma_group":{let i=e.getParentNode(),s=e.getParentNode(1),l=MS(e),a=l&&i.type==="value-value"&&(l==="grid"||l.startsWith("grid-template")),c=Kc(e,"css-atrule"),p=c&&ep(c),u=e.map(r,"groups"),d=[],h=Iu(e,"url"),b=!1,m=!1;for(let x=0;x<n.groups.length;++x){d.push(u[x]);let F=n.groups[x-1],E=n.groups[x],A=n.groups[x+1],P=n.groups[x+2];if(h){(A&&Qr(A)||Qr(E))&&d.push(" ");continue}if(!A||E.type==="value-word"&&E.value.endsWith("-")&&ip(A))continue;let L=E.type==="value-string"&&E.value.startsWith("#{"),N=b&&A.type==="value-string"&&A.value.endsWith("}");if(L||N){b=!b;continue}if(b||P1(E)||P1(A)||E.type==="value-atword"&&E.value===""||E.value==="~"||E.value&&E.value.includes("\\")&&A&&A.type!=="value-comment"||F&&F.value&&F.value.indexOf("\\")===F.value.length-1&&E.type==="value-operator"&&E.value==="/"||E.value==="\\"||tw(E,A)||np(E)||_1(E)||rp(A)||_1(A)&&Hi(A)||rp(E)&&Hi(A)||E.value==="--"&&np(A))continue;let R=tp(E),U=tp(A);if((R&&np(A)||U&&rp(E))&&Hi(A)||Iu(e,"calc")&&(Qr(E)||Qr(A)||ea(E)||ea(A))&&Hi(A))continue;let J=(Qr(E)||ea(E))&&x===0&&(A.type==="value-number"||A.isHex)&&s&&sw(s)&&!Hi(A),q=P&&P.type==="value-func"||P&&Lu(P)||E.type==="value-func"||Lu(E),X=A.type==="value-func"||Lu(A)||F&&F.type==="value-func"||F&&Lu(F);if(w1(A)||w1(E)||Iu(e,"calc")||J||!(F1(A)&&!q||F1(E)&&!X||Qr(A)&&!q||Qr(E)&&!X||ea(A)||ea(E))||!(Hi(A)||R&&(!F||F&&tp(F))))if(rw(E)){if(i.type==="value-paren_group"){d.push(Yc(kt));continue}d.push(kt)}else p&&(HS(A)||GS(A)||YS(A)||zS(E)||JS(E))||c&&c.name.toLowerCase()==="namespace"?d.push(" "):a?E.source&&A.source&&E.source.start.line!==A.source.start.line?(d.push(kt),m=!0):d.push(" "):U?d.push(" "):A&&A.value==="..."||ip(E)&&ip(A)&&xr(E)===Zr(A)||d.push(Nt)}return m&&d.unshift(kt),p?pn(en(Z(d))):VS(e)?pn(Xc(d)):pn(en(Xc(d)))}case"value-paren_group":{let i=e.getParentNode();if(i&&XS(i)&&(n.groups.length===1||n.groups.length>0&&n.groups[0].type==="value-comma_group"&&n.groups[0].groups.length>0&&n.groups[0].groups[0].type==="value-word"&&n.groups[0].groups[0].value.startsWith("data:")))return Z([n.open?e.call(r,"open"):"",Gi(",",e.map(r,"groups")),n.close?e.call(r,"close"):""]);if(!n.open){let c=e.map(r,"groups"),p=[];for(let u=0;u<c.length;u++)u!==0&&p.push(Z([",",Nt])),p.push(c[u]);return pn(en(Xc(p)))}let s=nw(e),l=n.groups[n.groups.length-1],a=l&&l.type==="value-comment";return pn(Z([n.open?e.call(r,"open"):"",en(Z([Cr,Gi(Z([",",Nt]),e.map(c=>{let p=c.getValue(),u=r(c);return ZS(p)&&p.type==="value-comma_group"&&p.groups&&p.groups[2]&&p.groups[2].type==="value-paren_group"?(u.contents.contents.parts[1]=pn(u.contents.contents.parts[1]),pn(Yc(u))):u},"groups"))])),A1(!a&&$S(t.parser,t.originalText)&&s&&aw(t)?",":""),Cr,n.close?e.call(r,"close"):""]),{shouldBreak:s})}case"value-func":return Z([n.value,Qc(e,"supports")&&iw(n)?" ":"",e.call(r,"group")]);case"value-paren":return n.value;case"value-number":return Z([N1(n.value),Kr(n.unit)]);case"value-operator":return n.value;case"value-word":return n.isColor&&n.isHex||qS(n.value)?n.value.toLowerCase():n.value;case"value-colon":{let i=e.getParentNode(),s=i&&i.groups.indexOf(n),l=s&&i.groups[s-1];return Z([n.value,l&&l.value[l.value.length-1]==="\\"||Iu(e,"url")?"":Nt])}case"value-comma":return Z([n.value," "]);case"value-string":return C1(n.raws.quote+n.value+n.raws.quote,t);case"value-atword":return Z(["@",n.value]);case"value-unicode-range":case"value-unknown":return n.value;default:throw new Error("Unknown postcss type ".concat(JSON.stringify(n.type)))}},embed:AS,insertPragma:RS,massageAstNode:DS},cw={singleQuote:Jn.singleQuote},pw={name:"PostCSS",type:"markup",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",languageId:262764437},fw={name:"Less",type:"markup",color:"#1d365d",extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198},hw={name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],languageId:329},dw={languages:[ze({name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css"],languageId:50},e=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"],extensions:[...e.extensions,".wxss"]})),ze(pw,()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]})),ze(fw,()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]})),ze(hw,()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]}))],options:cw,printers:{postcss:lw},parsers:{get css(){return{}.parsers.css},get less(){return{}.parsers.less},get scss(){return{}.parsers.scss}}},gw={locStart:function(e){return e.loc.start.offset},locEnd:function(e){return e.loc.end.offset}};function O1(e,t){if(e.type==="TextNode"){let r=e.chars.trim();if(!r)return null;t.chars=r}}O1.ignoredProperties=new Set(["loc","selfClosing"]);var mw=O1;let yw=new Set(["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"]);function I1(e){return ei(e,["TextNode"])&&!/\S/.test(e.chars)}function ei(e,t){return e&&t.some(r=>e.type===r)}function L1(e,t){let r=e.getValue(),n=e.getParentNode(0)||{},i=n.children||n.body||n.parts||[],s=i.indexOf(r);return s!==-1&&i[s+t]}function sp(e,t=1){return L1(e,-t)}function R1(e){return L1(e,1)}function M1(e){return ei(e,["MustacheCommentStatement"])&&typeof e.value=="string"&&e.value.trim()==="prettier-ignore"}var Dw={getNextNode:R1,getPreviousNode:sp,hasPrettierIgnore:function(e){let t=e.getValue(),r=sp(e,2);return M1(t)||M1(r)},isNextNodeOfSomeType:function(e,t){return ei(R1(e),t)},isNodeOfSomeType:ei,isParentOfSomeType:function(e,t){return ei(e.getParentNode(0),t)},isPreviousNodeOfSomeType:function(e,t){return ei(sp(e),t)},isVoid:function(e){return function(t){return ei(t,["ElementNode"])&&typeof t.tag=="string"&&(function(r){return r.toUpperCase()===r}(t.tag[0])||t.tag.includes("."))}(e)&&e.children.every(t=>I1(t))||yw.has(e.tag)},isWhitespaceNode:I1};let{builders:{concat:oe,group:fn,hardline:ti,ifBreak:j1,indent:ni,join:ra,line:Fn,softline:Tn}}=ae,{locStart:V1,locEnd:U1}=gw,{getNextNode:bw,getPreviousNode:Ew,hasPrettierIgnore:vw,isNextNodeOfSomeType:Ru,isNodeOfSomeType:ap,isParentOfSomeType:Ji,isPreviousNodeOfSomeType:up,isVoid:q1,isWhitespaceNode:$1}=Dw;function W1(e,t){let r=e.getValue();return oe(["<",r.tag,Cw(e,t),em(r),Aw(r)])}function Cw(e,t){let r=e.getValue();return ni(oe([r.attributes.length?Fn:"",ra(Fn,e.map(t,"attributes")),r.modifiers.length?Fn:"",ra(Fn,e.map(t,"modifiers")),r.comments.length?Fn:"",ra(Fn,e.map(t,"comments"))]))}function xw(e,t,r){return oe(e.map((n,i)=>i===0?oe([Tn,r(n,t,r)]):r(n,t,r),"children"))}function Aw(e){return q1(e)?j1(oe([Tn,"/>"]),oe([" />",Tn])):j1(oe([Tn,">"]),">")}function Mu(e){let t=e.escaped===!1?"{{{":"{{",r=e.strip&&e.strip.open?"~":"";return oe([t,r])}function ju(e){let t=e.escaped===!1?"}}}":"}}",r=e.strip&&e.strip.close?"~":"";return oe([r,t])}function Sw(e){let t=Mu(e),r=e.openStrip.open?"~":"";return oe([t,r,"#"])}function ww(e){let t=ju(e),r=e.openStrip.close?"~":"";return oe([r,t])}function Fw(e){let t=Mu(e),r=e.closeStrip.open?"~":"";return oe([t,r,"/"])}function Tw(e){let t=ju(e),r=e.closeStrip.close?"~":"";return oe([r,t])}function G1(e){let t=Mu(e),r=e.inverseStrip.open?"~":"";return oe([t,r])}function H1(e){let t=ju(e),r=e.inverseStrip.close?"~":"";return oe([r,t])}function kw(e,t){let r=e.getValue();return fn(oe([Sw(r),Uu(e,t),em(r.program),Tn,ww(r)]))}function _w(e){return oe([ti,G1(e),"else",H1(e)])}function Pw(e,t){let r=e.getParentNode(1);return oe([G1(r),"else ",Uu(e,t),H1(r)])}function Bw(e,t){let r=e.getValue();return oe([z1(r)?Tn:ti,Fw(r),e.call(t,"path"),Tw(r)])}function z1(e){return ap(e,["BlockStatement"])&&e.program.body.every(t=>$1(t))}function J1(e){return ap(e,["BlockStatement"])&&e.inverse}function X1(e,t){if(z1(e.getValue()))return"";let r=e.call(t,"program");return ni(oe([ti,r]))}function Y1(e,t){let r=e.getValue(),n=e.call(t,"inverse"),i=oe([ti,n]);return function(s){return J1(s)&&s.inverse.body.length===1&&ap(s.inverse.body[0],["BlockStatement"])&&s.inverse.body[0].path.parts[0]==="if"}(r)?i:J1(r)?oe([_w(r),ni(i)]):""}function op(e){return(e=typeof e=="string"?e:"").split(`
|
|
157
|
+
`).length-1}function Vu(e=0,t=0){return new Array(Math.min(e,t)).fill(ti)}function K1(e,t){let r={quote:'"',regex:/"/g},n={quote:"'",regex:/'/g},i=t.singleQuote?n:r,s=i===n?r:n,l=!1;(e.includes(i.quote)||e.includes(s.quote))&&(l=(e.match(i.regex)||[]).length>(e.match(s.regex)||[]).length);let a=l?s:i,c=e.replace(a.regex,"\\".concat(a.quote));return oe([a.quote,c,a.quote])}function Nw(e,t){let r=Q1(e,t),n=Z1(e,t);return n?ni(oe([r,Fn,fn(n)])):r}function Uu(e,t){let r=Q1(e,t),n=Z1(e,t);return n?ni(fn(oe([r,Fn,n]))):r}function Q1(e,t){return e.call(t,"path")}function Z1(e,t){let r=e.getValue(),n=[];if(r.params.length){let i=e.map(t,"params");n.push(...i)}if(r.hash&&r.hash.pairs.length>0){let i=e.call(t,"hash");n.push(i)}return n.length?ra(Fn,n):""}function em(e){return e&&e.blockParams.length?oe([" as |",e.blockParams.join(" "),"|"]):""}var Ow={print:function(e,t,r){let n=e.getValue();if(!n)return"";if(vw(e))return t.originalText.slice(V1(n),U1(n));switch(n.type){case"Block":case"Program":case"Template":return fn(oe(e.map(r,"body")));case"ElementNode":{let i=Ru(e,["ElementNode"])?ti:"";if(q1(n))return oe([fn(W1(e,r)),i]);let s=n.children.every(l=>$1(l));return oe([fn(W1(e,r)),fn(oe([s?"":ni(xw(e,t,r)),n.children.length?ti:"",oe(["</",n.tag,">"])])),i])}case"BlockStatement":{let i=e.getParentNode(1),s=i&&i.inverse&&i.inverse.body.length===1&&i.inverse.body[0]===n&&i.inverse.body[0].path.parts[0]==="if";return oe(s?[Pw(e,r),X1(e,r),Y1(e,r)]:[kw(e,r),fn(oe([X1(e,r),Y1(e,r),Bw(e,r)]))])}case"ElementModifierStatement":return fn(oe(["{{",Uu(e,r),Tn,"}}"]));case"MustacheStatement":{let i=Ji(e,["AttrNode","ConcatStatement"]),s=Ji(e,["ElementNode"])&&n.hash.pairs.length===0&&function(a){return a.params.length===0}(n),l=i||s;return fn(oe([Mu(n),l?ni(Tn):"",Uu(e,r),Tn,ju(n)]))}case"SubExpression":return fn(oe(["(",Nw(e,r),Tn,")"]));case"AttrNode":{let i=n.value.type==="TextNode";if(i&&n.value.chars===""&&V1(n.value)===U1(n.value))return oe([n.name]);let s=e.call(r,"value"),l=i?K1(s.parts.join(),t):s;return oe([n.name,"=",l])}case"ConcatStatement":{let i=t.singleQuote?"'":'"';return oe([i,...e.map(s=>r(s),"parts"),i])}case"Hash":return oe([ra(Fn,e.map(r,"pairs"))]);case"HashPair":return oe([n.key,"=",e.call(r,"value")]);case"TextNode":{let i=2,s=!Ew(e),l=!bw(e),a=!/\S/.test(n.chars),c=op(n.chars),p=function(m){return op(((m=typeof m=="string"?m:"").match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"")}(n.chars),u=function(m){return op(((m=typeof m=="string"?m:"").match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"")}(n.chars);if((s||l)&&a&&Ji(e,["Block","ElementNode","Template"]))return"";if(a&&c?(p=Math.min(c,i),u=0):(Ru(e,["BlockStatement","ElementNode"])&&(u=Math.max(u,1)),up(e,["BlockStatement","ElementNode"])&&(p=Math.max(p,1))),e.stack.includes("attributes")){if(!function(F,E){return Ji(F,["AttrNode"])&&F.getParentNode().name.toLowerCase()===E||Ji(F,["ConcatStatement"])&&F.getParentNode(1).name.toLowerCase()===E}(e,"class"))return oe([n.chars]);let m="",x="";return Ji(e,["ConcatStatement"])&&(up(e,["MustacheStatement"])&&(m=" "),Ru(e,["MustacheStatement"])&&(x=" ")),oe([...Vu(p,i),n.chars.replace(/^\s+/g,m).replace(/\s+$/,x),...Vu(u,i)])}let d="",h="";u===0&&Ru(e,["MustacheStatement"])&&(h=" "),p===0&&up(e,["MustacheStatement"])&&(d=" "),s&&(p=0,d=""),l&&(u=0,h="");let b=n.chars;return b.startsWith("{{")&&b.includes("}}")&&(b="\\"+b),oe([...Vu(p,i),b.replace(/^\s+/g,d).replace(/\s+$/,h),...Vu(u,i)])}case"MustacheCommentStatement":{let i=n.value.includes("}}")?"--":"";return oe(["{{!",i,n.value,i,"}}"])}case"PathExpression":return n.original;case"BooleanLiteral":return String(n.value);case"CommentStatement":return oe(["<!--",n.value,"-->"]);case"StringLiteral":return K1(n.value,t);case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(n.type))}},massageAstNode:mw},Iw={languages:[ze({name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155},()=>({since:null,parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}))],printers:{glimmer:Ow},parsers:{get glimmer(){return{}.parsers.glimmer}}},Lw={hasPragma:function(e){return/^\s*#[^\S\n]*@(format|prettier)\s*(\n|$)/.test(e)},insertPragma:function(e){return`# @format
|
|
158
158
|
|
|
159
|
-
`+e}},
|
|
160
|
-
`)),Ce,'"""']):G(['"',n.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"']);case"IntValue":case"FloatValue":case"EnumValue":return n.value;case"BooleanValue":return n.value?"true":"false";case"NullValue":return"null";case"Variable":return G(["$",e.call(r,"name")]);case"ListValue":return
|
|
161
|
-
(`).concat(
|
|
162
|
-
`:" "})}),s;function l(a){let c=
|
|
159
|
+
`+e}},Rw={locStart:function(e){return typeof e.start=="number"?e.start:e.loc&&e.loc.start},locEnd:function(e){return typeof e.end=="number"?e.end:e.loc&&e.loc.end}};let{builders:{concat:G,join:pt,hardline:Ce,line:Xi,softline:We,group:Ut,indent:Ct,ifBreak:hn}}=ae,{isNextLineEmpty:tm}=ve,{insertPragma:Mw}=Lw,{locStart:jw,locEnd:nm}=Rw;function xt(e,t,r){if(r.directives.length===0)return"";let n=pt(Xi,e.map(t,"directives"));return r.kind==="FragmentDefinition"||r.kind==="OperationDefinition"?Ut(G([Xi,n])):G([" ",Ut(Ct(G([We,n])))])}function kn(e,t,r){let n=e.getValue().length;return e.map((i,s)=>{let l=r(i);return tm(t.originalText,i.getValue(),nm)&&s<n-1?G([l,Ce]):l})}function rm(e,t,r){let n=e.getNode(),i=[],{interfaces:s}=n,l=e.map(a=>r(a),"interfaces");for(let a=0;a<s.length;a++){let c=s[a];i.push(l[a]);let p=s[a+1];if(p){let u=t.originalText.slice(c.loc.end,p.loc.start),d=u.includes("#"),h=u.replace(/#.*/g,"").trim();i.push(h===","?",":" &"),i.push(d?Xi:" ")}}return i}function im(){}im.ignoredProperties=new Set(["loc","comments"]);var Vw={print:function(e,t,r){let n=e.getValue();if(!n)return"";if(typeof n=="string")return n;switch(n.kind){case"Document":{let i=[];return e.each((s,l)=>{i.push(G([s.call(r)])),l!==n.definitions.length-1&&(i.push(Ce),tm(t.originalText,s.getValue(),nm)&&i.push(Ce))},"definitions"),G([G(i),Ce])}case"OperationDefinition":{let i=t.originalText[jw(n)]!=="{",s=!!n.name;return G([i?n.operation:"",i&&s?G([" ",e.call(r,"name")]):"",n.variableDefinitions&&n.variableDefinitions.length?Ut(G(["(",Ct(G([We,pt(G([hn("",", "),We]),e.map(r,"variableDefinitions"))])),We,")"])):"",xt(e,r,n),n.selectionSet&&(i||s)?" ":"",e.call(r,"selectionSet")])}case"FragmentDefinition":return G(["fragment ",e.call(r,"name"),n.variableDefinitions&&n.variableDefinitions.length?Ut(G(["(",Ct(G([We,pt(G([hn("",", "),We]),e.map(r,"variableDefinitions"))])),We,")"])):""," on ",e.call(r,"typeCondition"),xt(e,r,n)," ",e.call(r,"selectionSet")]);case"SelectionSet":return G(["{",Ct(G([Ce,pt(Ce,e.call(i=>kn(i,t,r),"selections"))])),Ce,"}"]);case"Field":return Ut(G([n.alias?G([e.call(r,"alias"),": "]):"",e.call(r,"name"),n.arguments.length>0?Ut(G(["(",Ct(G([We,pt(G([hn("",", "),We]),e.call(i=>kn(i,t,r),"arguments"))])),We,")"])):"",xt(e,r,n),n.selectionSet?" ":"",e.call(r,"selectionSet")]));case"Name":return n.value;case"StringValue":return n.block?G(['"""',Ce,pt(Ce,n.value.replace(/"""/g,"\\$&").split(`
|
|
160
|
+
`)),Ce,'"""']):G(['"',n.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"']);case"IntValue":case"FloatValue":case"EnumValue":return n.value;case"BooleanValue":return n.value?"true":"false";case"NullValue":return"null";case"Variable":return G(["$",e.call(r,"name")]);case"ListValue":return Ut(G(["[",Ct(G([We,pt(G([hn("",", "),We]),e.map(r,"values"))])),We,"]"]));case"ObjectValue":return Ut(G(["{",t.bracketSpacing&&n.fields.length>0?" ":"",Ct(G([We,pt(G([hn("",", "),We]),e.map(r,"fields"))])),We,hn("",t.bracketSpacing&&n.fields.length>0?" ":""),"}"]));case"ObjectField":case"Argument":return G([e.call(r,"name"),": ",e.call(r,"value")]);case"Directive":return G(["@",e.call(r,"name"),n.arguments.length>0?Ut(G(["(",Ct(G([We,pt(G([hn("",", "),We]),e.call(i=>kn(i,t,r),"arguments"))])),We,")"])):""]);case"NamedType":return e.call(r,"name");case"VariableDefinition":return G([e.call(r,"variable"),": ",e.call(r,"type"),n.defaultValue?G([" = ",e.call(r,"defaultValue")]):"",xt(e,r,n)]);case"ObjectTypeExtension":case"ObjectTypeDefinition":return G([e.call(r,"description"),n.description?Ce:"",n.kind==="ObjectTypeExtension"?"extend ":"","type ",e.call(r,"name"),n.interfaces.length>0?G([" implements ",G(rm(e,t,r))]):"",xt(e,r,n),n.fields.length>0?G([" {",Ct(G([Ce,pt(Ce,e.call(i=>kn(i,t,r),"fields"))])),Ce,"}"]):""]);case"FieldDefinition":return G([e.call(r,"description"),n.description?Ce:"",e.call(r,"name"),n.arguments.length>0?Ut(G(["(",Ct(G([We,pt(G([hn("",", "),We]),e.call(i=>kn(i,t,r),"arguments"))])),We,")"])):"",": ",e.call(r,"type"),xt(e,r,n)]);case"DirectiveDefinition":return G([e.call(r,"description"),n.description?Ce:"","directive ","@",e.call(r,"name"),n.arguments.length>0?Ut(G(["(",Ct(G([We,pt(G([hn("",", "),We]),e.call(i=>kn(i,t,r),"arguments"))])),We,")"])):"",n.repeatable?" repeatable":"",G([" on ",pt(" | ",e.map(r,"locations"))])]);case"EnumTypeExtension":case"EnumTypeDefinition":return G([e.call(r,"description"),n.description?Ce:"",n.kind==="EnumTypeExtension"?"extend ":"","enum ",e.call(r,"name"),xt(e,r,n),n.values.length>0?G([" {",Ct(G([Ce,pt(Ce,e.call(i=>kn(i,t,r),"values"))])),Ce,"}"]):""]);case"EnumValueDefinition":return G([e.call(r,"description"),n.description?Ce:"",e.call(r,"name"),xt(e,r,n)]);case"InputValueDefinition":return G([e.call(r,"description"),n.description?n.description.block?Ce:Xi:"",e.call(r,"name"),": ",e.call(r,"type"),n.defaultValue?G([" = ",e.call(r,"defaultValue")]):"",xt(e,r,n)]);case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return G([e.call(r,"description"),n.description?Ce:"",n.kind==="InputObjectTypeExtension"?"extend ":"","input ",e.call(r,"name"),xt(e,r,n),n.fields.length>0?G([" {",Ct(G([Ce,pt(Ce,e.call(i=>kn(i,t,r),"fields"))])),Ce,"}"]):""]);case"SchemaDefinition":return G(["schema",xt(e,r,n)," {",n.operationTypes.length>0?Ct(G([Ce,pt(Ce,e.call(i=>kn(i,t,r),"operationTypes"))])):"",Ce,"}"]);case"OperationTypeDefinition":return G([e.call(r,"operation"),": ",e.call(r,"type")]);case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return G([e.call(r,"description"),n.description?Ce:"",n.kind==="InterfaceTypeExtension"?"extend ":"","interface ",e.call(r,"name"),n.interfaces.length>0?G([" implements ",G(rm(e,t,r))]):"",xt(e,r,n),n.fields.length>0?G([" {",Ct(G([Ce,pt(Ce,e.call(i=>kn(i,t,r),"fields"))])),Ce,"}"]):""]);case"FragmentSpread":return G(["...",e.call(r,"name"),xt(e,r,n)]);case"InlineFragment":return G(["...",n.typeCondition?G([" on ",e.call(r,"typeCondition")]):"",xt(e,r,n)," ",e.call(r,"selectionSet")]);case"UnionTypeExtension":case"UnionTypeDefinition":return Ut(G([e.call(r,"description"),n.description?Ce:"",Ut(G([n.kind==="UnionTypeExtension"?"extend ":"","union ",e.call(r,"name"),xt(e,r,n),n.types.length>0?G([" =",hn(""," "),Ct(G([hn(G([Xi," "])),pt(G([Xi,"| "]),e.map(r,"types"))]))]):""]))]));case"ScalarTypeExtension":case"ScalarTypeDefinition":return G([e.call(r,"description"),n.description?Ce:"",n.kind==="ScalarTypeExtension"?"extend ":"","scalar ",e.call(r,"name"),xt(e,r,n)]);case"NonNullType":return G([e.call(r,"type"),"!"]);case"ListType":return G(["[",e.call(r,"type"),"]"]);default:throw new Error("unknown graphql type: "+JSON.stringify(n.kind))}},massageAstNode:im,hasPrettierIgnore:function(e){let t=e.getValue();return t&&Array.isArray(t.comments)&&t.comments.some(r=>r.value.trim()==="prettier-ignore")},insertPragma:Mw,printComment:function(e){let t=e.getValue();if(t.kind==="Comment")return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return e.kind&&e.kind!=="Comment"}},Uw={bracketSpacing:Jn.bracketSpacing},qw={languages:[ze({name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139},()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}))],options:Uw,printers:{graphql:Vw},parsers:{get graphql(){return{}.parsers.graphql}}},sm={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}};let{getLast:am}=ve,{locStart:um,locEnd:om}=sm,{cjkPattern:lp,kPattern:$w,punctuationPattern:lm}={cjkPattern:"(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u3000-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"},cm=["liquidNode","inlineCode","emphasis","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],Ww=cm.concat(["tableCell","paragraph","heading"]),Gw=new RegExp($w),cp=new RegExp(lm);function qu(e,t){let[,r,n,i]=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:r,marker:n,leadingSpaces:i}}var pp={mapAst:function(e,t){return function r(n,i,s){s=s||[];let l=Object.assign({},t(n,i,s));return l.children&&(l.children=l.children.map((a,c)=>r(a,c,[l].concat(s)))),l}(e,null,null)},splitText:function(e,t){let r="non-cjk",n="cj-letter",i="cjk-punctuation",s=[];return(t.proseWrap==="preserve"?e:e.replace(new RegExp("(".concat(lp,`)
|
|
161
|
+
(`).concat(lp,")"),"g"),"$1$2")).split(/([\t\n ]+)/).forEach((a,c,p)=>{c%2!=1?(c!==0&&c!==p.length-1||a!=="")&&a.split(new RegExp("(".concat(lp,")"))).forEach((u,d,h)=>{(d!==0&&d!==h.length-1||u!=="")&&(d%2!=0?l(cp.test(u)?{type:"word",value:u,kind:i,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:u,kind:Gw.test(u)?"k-letter":n,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):u!==""&&l({type:"word",value:u,kind:r,hasLeadingPunctuation:cp.test(u[0]),hasTrailingPunctuation:cp.test(am(u))}))}):s.push({type:"whitespace",value:/\n/.test(a)?`
|
|
162
|
+
`:" "})}),s;function l(a){let c=am(s);var p,u;c&&c.type==="word"&&(c.kind===r&&a.kind===n&&!c.hasTrailingPunctuation||c.kind===n&&a.kind===r&&!a.hasLeadingPunctuation?s.push({type:"whitespace",value:" "}):(p=r,u=i,c.kind===p&&a.kind===u||c.kind===u&&a.kind===p||[c.value,a.value].some(d=>/\u3000/.test(d))||s.push({type:"whitespace",value:""}))),s.push(a)}},punctuationPattern:lm,getFencedCodeBlockValue:function(e,t){let{value:r}=e;return e.position.end.offset===t.length&&r.endsWith(`
|
|
163
163
|
`)&&t.endsWith(`
|
|
164
|
-
`)?r.slice(0,-1):r},getOrderedListItemInfo:qu,hasGitDiffFriendlyOrderedList:function(e,t){if(!e.ordered||e.children.length<2)return!1;let r=Number(qu(e.children[0],t.originalText).numberText),n=Number(qu(e.children[1],t.originalText).numberText);if(r===0&&e.children.length>2){let i=Number(qu(e.children[2],t.originalText).numberText);return n===1&&i===1}return n===1},INLINE_NODE_TYPES:
|
|
164
|
+
`)?r.slice(0,-1):r},getOrderedListItemInfo:qu,hasGitDiffFriendlyOrderedList:function(e,t){if(!e.ordered||e.children.length<2)return!1;let r=Number(qu(e.children[0],t.originalText).numberText),n=Number(qu(e.children[1],t.originalText).numberText);if(r===0&&e.children.length>2){let i=Number(qu(e.children[2],t.originalText).numberText);return n===1&&i===1}return n===1},INLINE_NODE_TYPES:cm,INLINE_NODE_WRAPPER_TYPES:Ww,isAutolink:function(e){if(!e||e.type!=="link"||e.children.length!==1)return!1;let t=e.children[0];return t&&um(e)===um(t)&&om(e)===om(t)}};let{inferParserByLanguage:Hw,getMaxContinuousCount:zw}=ve,{builders:{hardline:fp,concat:pm,markAsRoot:Jw},utils:{replaceNewlinesWithLiterallines:Xw}}=ae,{print:Yw}=Zs,{getFencedCodeBlockValue:Kw}=pp;var Qw=function(e,t,r,n){let i=e.getValue();if(i.type==="code"&&i.lang!==null){let s=Hw(i.lang,n);if(s){let l=n.__inJsTemplate?"~":"`",a=l.repeat(Math.max(3,zw(i.value,l)+1)),c=r(Kw(i,n.originalText),{parser:s},{stripTrailingHardline:!0});return Jw(pm([a,i.lang,i.meta?" "+i.meta:"",fp,Xw(c),fp,a]))}}switch(i.type){case"front-matter":return Yw(i,r);case"importExport":return pm([r(i.value,{parser:"babel"},{stripTrailingHardline:!0}),fp]);case"jsx":return r("<$>".concat(i.value,"</$>"),{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null};let{parse:fm}=Zs,hm=["format","prettier"];function dm(e){let t="@(".concat(hm.join("|"),")"),r=new RegExp(["<!--\\s*".concat(t,"\\s*-->"),`<!--.*\r?
|
|
165
165
|
[\\s\\S]*(^|
|
|
166
166
|
)[^\\S
|
|
167
167
|
]*`.concat(t,`[^\\S
|
|
168
168
|
]*($|
|
|
169
169
|
)[\\s\\S]*
|
|
170
|
-
.*-->`)].join("|"),"m"),n=e.match(r);return n&&n.index===0}var
|
|
170
|
+
.*-->`)].join("|"),"m"),n=e.match(r);return n&&n.index===0}var gm={startWithPragma:dm,hasPragma:e=>dm(fm(e).content.trimStart()),insertPragma:e=>{let t=fm(e),r="<!-- @".concat(hm[0]," -->");return t.frontMatter?"".concat(t.frontMatter.raw,`
|
|
171
171
|
|
|
172
172
|
`).concat(r,`
|
|
173
173
|
|
|
174
174
|
`).concat(t.content):"".concat(r,`
|
|
175
175
|
|
|
176
|
-
`).concat(t.content)}};let{getOrderedListItemInfo:
|
|
176
|
+
`).concat(t.content)}};let{getOrderedListItemInfo:mm,mapAst:ri,splitText:Zw}=pp,eF=/^([\u0000-\uffff]|[\ud800-\udbff][\udc00-\udfff])$/;function ym(e,t,r){return ri(e,n=>{if(!n.children)return n;let i=n.children.reduce((s,l)=>{let a=s[s.length-1];return a&&t(a,l)?s.splice(-1,1,r(a,l)):s.push(l),s},[]);return Object.assign({},n,{children:i})})}var tF=function(e,t){return e=function(r){return ym(r,(n,i)=>n.type==="importExport"&&i.type==="importExport",(n,i)=>({type:"importExport",value:n.value+`
|
|
177
177
|
|
|
178
|
-
`+i.value,position:{start:n.position.start,end:i.position.end}}))}(e=function(r){return ri(r,n=>n.type!=="import"&&n.type!=="export"?n:Object.assign({},n,{type:"importExport"}))}(e=function(r,n){return ri(r,(i,s,[l])=>{if(i.type!=="text")return i;let{value:a}=i;return l.type==="paragraph"&&(s===0&&(a=a.trimStart()),s===l.children.length-1&&(a=a.trimEnd())),{type:"sentence",position:i.position,children:
|
|
179
|
-
`)return gt;let n=r.proseWrap==="always"&&!dp(e,EF);return t!==""?n?Em:" ":n?hp:""}function CF(e,t,r){let n=[],i=null,{children:s}=e.getValue();return s.forEach((l,a)=>{switch(gp(l)){case"start":i===null&&(i={index:a,offset:l.position.end.offset});break;case"end":i!==null&&(n.push({start:i,end:{index:a,offset:l.position.start.offset}}),i=null)}}),At(e,t,r,{processor:(l,a)=>{if(n.length!==0){let c=n[0];if(a===c.start.index)return pe([s[c.start.index].value,t.originalText.slice(c.start.offset,c.end.offset),s[c.end.index].value]);if(c.start.index<a&&a<c.end.index)return!1;if(a===c.end.index)return n.shift(),!1}return l.call(r)}})}function At(e,t,r,n){let i=(n=n||{}).postprocessor||pe,s=n.processor||(p=>p.call(r)),l=e.getValue(),a=[],c;return e.each((p,u)=>{let d=p.getValue(),h=s(p,u);if(h!==!1){let b={parts:a,prevNode:c,parentNode:l,options:t};(function(m,x){let F=x.parts.length===0,E=DF.includes(m.type),A=m.type==="html"&&bF.includes(x.parentNode.type);return F||E||A})(d,b)||(a.push(gt),c&&Sm.has(c.type)||(function(m,x){let F=(x.prevNode&&x.prevNode.type)===m.type&&vF.has(m.type),E=x.parentNode.type==="listItem"&&!x.parentNode.loose,A=x.prevNode&&x.prevNode.type==="listItem"&&x.prevNode.loose,P=gp(x.prevNode)==="next",L=m.type==="html"&&x.prevNode&&x.prevNode.type==="html"&&x.prevNode.position.end.line+1===m.position.start.line,N=m.type==="html"&&x.parentNode.type==="listItem"&&x.prevNode&&x.prevNode.type==="paragraph"&&x.prevNode.position.end.line+1===m.position.start.line;return A||!(F||E||P||L||N)}(d,b)||_m(d,b))&&a.push(gt),_m(d,b)&&a.push(gt)),a.push(h),c=d}},"children"),i(a)}function xF(e){let t=e;for(;t.children&&t.children.length!==0;)t=t.children[t.children.length-1];return t}function gp(e){if(e.type!=="html")return!1;let t=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);return t!==null&&(t[1]?t[1]:"next")}function _m(e,t){let r=t.prevNode&&t.prevNode.type==="list",n=e.type==="code"&&e.isIndented;return r&&n}function mp(e,t){let r=[" "].concat(t||[]);return new RegExp(r.map(n=>"\\".concat(n)).join("|")).test(e)?"<".concat(e,">"):e}function Wu(e,t,r){if(r==null&&(r=!0),!e)return"";if(r)return" "+Wu(e,t,!1);if((e=e.replace(/\\(["')])/g,"$1")).includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");let n=e.split("'").length-1,i=e.split('"').length-1,s=n>i?'"':i>n||t.singleQuote?"'":'"';return e=(e=e.replace(/\\/,"\\\\")).replace(new RegExp("(".concat(s,")"),"g"),"\\$1"),"".concat(s).concat(e).concat(s)}var AF={preprocess:Zw,print:function(e,t,r){let n=e.getValue();if(function(i){let s=dp(i,["linkReference","imageReference"]);return s&&(s.type!=="linkReference"||s.referenceType!=="full")}(e))return pe(yF(t.originalText.slice(n.position.start.offset,n.position.end.offset),t).map(i=>i.type==="word"?i.value:i.value===""?"":km(e,i.value,t)));switch(n.type){case"front-matter":return t.originalText.slice(n.position.start.offset,n.position.end.offset);case"root":return n.children.length===0?"":pe([cF(CF(e,t,r)),Sm.has(xF(n).type)?"":gt]);case"paragraph":return At(e,t,r,{postprocessor:oF});case"sentence":return At(e,t,r);case"word":{let i=n.value.replace(/\*/g,"\\$&").replace(new RegExp(["(^|".concat(xm,")(_+)"),"(_+)(".concat(xm,"|$)")].join("|"),"g"),(a,c,p,u,d)=>(p?"".concat(c).concat(p):"".concat(u).concat(d)).replace(/_/g,"\\_")),s=(a,c,p)=>a.type==="sentence"&&p===0,l=(a,c,p)=>Am(a.children[p-1]);return i!==n.value&&(e.match(void 0,s,l)||e.match(void 0,s,(a,c,p)=>a.type==="emphasis"&&p===0,l))&&(i=i.replace(/^(\\?[*_])+/,a=>a.replace(/\\/g,""))),i}case"whitespace":{let i=e.getParentNode(),s=i.children.indexOf(n),l=i.children[s+1],a=l&&/^>|^([*+-]|#{1,6}|\d+[).])$/.test(l.value)?"never":t.proseWrap;return km(e,n.value,{proseWrap:a})}case"emphasis":{let i;if(Am(n.children[0]))i=t.originalText[n.position.start.offset];else{let s=e.getParentNode(),l=s.children.indexOf(n),a=s.children[l-1],c=s.children[l+1];i=a&&a.type==="sentence"&&a.children.length>0&&fp(a.children).type==="word"&&!fp(a.children).hasTrailingPunctuation||c&&c.type==="sentence"&&c.children.length>0&&c.children[0].type==="word"&&!c.children[0].hasLeadingPunctuation||dp(e,"emphasis")?"*":"_"}return pe([i,At(e,t,r),i])}case"strong":return pe(["**",At(e,t,r),"**"]);case"delete":return pe(["~~",At(e,t,r),"~~"]);case"inlineCode":{let i=iF(n.value,"`"),s="`".repeat(i||1),l=i&&!/^\s/.test(n.value)?" ":"";return pe([s,l,n.value,l,s])}case"wikiLink":{let i="";return i=t.proseWrap==="preserve"?n.value:n.value.replace(/[\t\n]+/g," "),pe(["[[",i,"]]"])}case"link":switch(t.originalText[n.position.start.offset]){case"<":{let i="mailto:",s=n.url.startsWith(i)&&t.originalText.slice(n.position.start.offset+1,n.position.start.offset+1+i.length)!==i?n.url.slice(i.length):n.url;return pe(["<",s,">"])}case"[":return pe(["[",At(e,t,r),"](",mp(n.url,")"),Wu(n.title,t),")"]);default:return t.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return pe([""),Wu(n.title,t),")"]);case"blockquote":return pe(["> ",Yi("> ",At(e,t,r))]);case"heading":return pe(["#".repeat(n.depth)+" ",At(e,t,r)]);case"code":{if(n.isIndented){let l=" ".repeat(4);return Yi(l,pe([l,pe(ia(n.value,gt))]))}let i=t.__inJsTemplate?"~":"`",s=i.repeat(Math.max(3,sF(n.value,i)+1));return pe([s,n.lang||"",n.meta?" "+n.meta:"",gt,pe(ia(gF(n,t.originalText),gt)),gt,s])}case"html":{let i=e.getParentNode(),s=i.type==="root"&&fp(i.children)===n?n.value.trimEnd():n.value,l=/^<!--[\S\s]*-->$/.test(s);return pe(ia(s,l?gt:Cm(vm)))}case"list":{let i=Fm(n,e.getParentNode()),s=mF(n,t);return At(e,t,r,{processor:(l,a)=>{let c=function(){let u=n.ordered?(a===0?n.start:s?1:n.start+a)+(i%2==0?". ":") "):i%2==0?"- ":"* ";return n.isAligned||n.hasIndentedCodeblock?function(d,h){let b=m();return d+" ".repeat(b>=4?0:b);function m(){let x=d.length%h.tabWidth;return x===0?0:h.tabWidth-x}}(u,t):u}(),p=l.getValue();return p.children.length===2&&p.children[1].type==="html"&&p.children[0].position.start.column!==p.children[1].position.start.column?pe([c,wm(l,t,r,c)]):pe([c,Yi(" ".repeat(c.length),wm(l,t,r,c))])}})}case"thematicBreak":{let i=Tm(e,"list");return i===-1?"---":Fm(e.getParentNode(i),e.getParentNode(i+1))%2==0?"***":"---"}case"linkReference":return pe(["[",At(e,t,r),"]",n.referenceType==="full"?pe(["[",n.identifier,"]"]):n.referenceType==="collapsed"?"[]":""]);case"imageReference":switch(n.referenceType){case"full":return pe(["![",n.alt||"","][",n.identifier,"]"]);default:return pe(["![",n.alt,"]",n.referenceType==="collapsed"?"[]":""])}case"definition":{let i=t.proseWrap==="always"?Em:" ";return $u(pe([pe(["[",n.identifier,"]:"]),lF(pe([i,mp(n.url),n.title===null?"":pe([i,Wu(n.title,t,!1)])]))]))}case"footnote":return pe(["[^",At(e,t,r),"]"]);case"footnoteReference":return pe(["[^",n.identifier,"]"]);case"footnoteDefinition":{let i=e.getParentNode().children[e.getName()+1],s=n.children.length===1&&n.children[0].type==="paragraph"&&(t.proseWrap==="never"||t.proseWrap==="preserve"&&n.children[0].position.start.line===n.children[0].position.end.line);return pe(["[^",n.identifier,"]: ",s?At(e,t,r):$u(pe([Yi(" ".repeat(4),At(e,t,r,{processor:(l,a)=>a===0?$u(pe([hp,l.call(r)])):l.call(r)})),i&&i.type==="footnoteDefinition"?hp:""]))])}case"table":return function(i,s,l){let a=gt.parts[0],c=i.getValue(),p=[],u=i.map(F=>F.map((E,A)=>{let P=pF(E.call(l),s).formatted,L=aF(P);return p[A]=Math.max(p[A]||3,L),{text:P,width:L}},"children"),"children"),d=b(!1);if(s.proseWrap!=="never")return pe([Dm,d]);let h=b(!0);return pe([Dm,$u(uF(h,d))]);function b(F){let E=[x(u[0],F),m(F)];return u.length>1&&E.push(bm(a,u.slice(1).map(A=>x(A,F)))),bm(a,E)}function m(F){let E=p.map((A,P)=>{let L=c.align[P],N=L==="center"||L==="left"?":":"-",R=L==="center"||L==="right"?":":"-",U=F?"-":"-".repeat(A-2);return"".concat(N).concat(U).concat(R)});return"| ".concat(E.join(" | ")," |")}function x(F,E){let A=F.map(({text:P,width:L},N)=>{if(E)return P;let R=p[N]-L,U=c.align[N],z=0;U==="right"?z=R:U==="center"&&(z=Math.floor(R/2));let q=R-z;return"".concat(" ".repeat(z)).concat(P).concat(" ".repeat(q))});return"| ".concat(A.join(" | ")," |")}}(e,t,r);case"tableCell":return At(e,t,r);case"break":return/\s/.test(t.originalText[n.position.start.offset])?pe([" ",Cm(vm)]):pe(["\\",gt]);case"liquidNode":return pe(ia(n.value,gt));case"importExport":return pe([n.value,gt]);case"jsx":return n.value;case"math":return pe(["$$",gt,n.value?pe([pe(ia(n.value,gt)),gt]):"","$$"]);case"inlineMath":return t.originalText.slice(hF(n),dF(n));case"tableRow":case"listItem":default:throw new Error("Unknown markdown type ".concat(JSON.stringify(n.type)))}},embed:Yw,massageAstNode:rF,hasPrettierIgnore:function(e){let t=+e.getName();return t!==0&&gp(e.getParentNode().children[t-1])==="next"},insertPragma:fF},SF={proseWrap:Jn.proseWrap,singleQuote:Jn.singleQuote},Pm={name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".workbook"],filenames:["contents.lr"],tmScope:"source.gfm",languageId:222},wF={languages:[ze(Pm,e=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:e.filenames.concat(["README"]),extensions:e.extensions.filter(t=>t!==".mdx")})),ze(Pm,()=>({name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]}))],options:SF,printers:{mdast:AF},parsers:{get remark(){return{}.parsers.remark},get markdown(){return{}.parsers.remark},get mdx(){return{}.parsers.mdx}}};let{isFrontMatterNode:FF}=Ee,TF=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function Bm(e,t){return e.type==="text"||e.type==="comment"||FF(e)||e.type==="yaml"||e.type==="toml"?null:(e.type==="attribute"&&delete t.value,void(e.type==="docType"&&delete t.value))}Bm.ignoredProperties=TF;var kF=Bm,_F={"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],abbr:["title"],applet:["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],area:["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],base:["href","target"],basefont:["color","face","size"],bdo:["dir"],blockquote:["cite"],body:["alink","background","bgcolor","link","text","vlink"],br:["clear"],button:["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],canvas:["height","width"],caption:["align"],col:["align","char","charoff","span","valign","width"],colgroup:["align","char","charoff","span","valign","width"],data:["value"],del:["cite","datetime"],details:["open"],dfn:["title"],dialog:["open"],dir:["compact"],div:["align"],dl:["compact"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],font:["color","face","size"],form:["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],frame:["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],frameset:["cols","rows"],h1:["align"],h2:["align"],h3:["align"],h4:["align"],h5:["align"],h6:["align"],head:["profile"],hr:["align","noshade","size","width"],html:["manifest","version"],iframe:["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],img:["align","alt","border","crossorigin","decoding","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],input:["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],ins:["cite","datetime"],isindex:["prompt"],label:["accesskey","for","form"],legend:["accesskey","align"],li:["type","value"],link:["as","charset","color","crossorigin","disabled","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],map:["name"],menu:["compact"],meta:["charset","content","http-equiv","name","scheme"],meter:["high","low","max","min","optimum","value"],object:["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],ol:["compact","reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["for","form","name"],p:["align"],param:["name","type","value","valuetype"],pre:["width"],progress:["max","value"],q:["cite"],script:["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],slot:["name"],source:["media","sizes","src","srcset","type"],style:["media","nonce","title","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],tbody:["align","char","charoff","valign"],td:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],textarea:["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],tfoot:["align","char","charoff","valign"],th:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],thead:["align","char","charoff","valign"],time:["datetime"],tr:["align","bgcolor","char","charoff","valign"],track:["default","kind","label","src","srclang"],ul:["compact","type"],video:["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"]};let{inferParserByLanguage:PF,isFrontMatterNode:yp}=Ee,{CSS_DISPLAY_TAGS:BF,CSS_DISPLAY_DEFAULT:NF,CSS_WHITE_SPACE_TAGS:OF,CSS_WHITE_SPACE_DEFAULT:IF}={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"},LF=Om(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),RF=function(e,t){let r=Object.create(null);for(let n of Object.keys(e))r[n]=t(e[n],n);return r}(_F,Om),MF=new Set([" ",`
|
|
180
|
-
`,"\f","\r"," "]),
|
|
181
|
-
`)){if(i.length===0)continue;if(!
|
|
178
|
+
`+i.value,position:{start:n.position.start,end:i.position.end}}))}(e=function(r){return ri(r,n=>n.type!=="import"&&n.type!=="export"?n:Object.assign({},n,{type:"importExport"}))}(e=function(r,n){return ri(r,(i,s,[l])=>{if(i.type!=="text")return i;let{value:a}=i;return l.type==="paragraph"&&(s===0&&(a=a.trimStart()),s===l.children.length-1&&(a=a.trimEnd())),{type:"sentence",position:i.position,children:Zw(a,n)}})}(e=function(r,n){return ri(r,(l,a,c)=>{if(l.type==="list"&&l.children.length!==0){for(let p=0;p<c.length;p++){let u=c[p];if(u.type==="list"&&!u.isAligned)return l.isAligned=!1,l}l.isAligned=s(l)}return l});function i(l){return l.children.length===0?-1:l.children[0].position.start.column-1}function s(l){if(!l.ordered)return!0;let[a,c]=l.children;if(mm(a,n.originalText).leadingSpaces.length>1)return!0;let p=i(a);return p===-1?!1:l.children.length===1?p%n.tabWidth==0:p!==i(c)?!1:p%n.tabWidth==0?!0:mm(c,n.originalText).leadingSpaces.length>1}}(e=function(r,n){return ri(r,(i,s,l)=>{if(i.type==="code"){let a=/^\n?( {4,}|\t)/.test(n.originalText.slice(i.position.start.offset,i.position.end.offset));if(i.isIndented=a,a)for(let c=0;c<l.length;c++){let p=l[c];if(p.hasIndentedCodeblock)break;p.type==="list"&&(p.hasIndentedCodeblock=!0)}}return i})}(e=function(r){return ri(r,n=>n.type!=="inlineCode"?n:Object.assign({},n,{value:n.value.replace(/\s+/g," ")}))}(e=function(r){return ym(r,(n,i)=>n.type==="text"&&i.type==="text",(n,i)=>({type:"text",value:n.value+i.value,position:{start:n.position.start,end:i.position.end}}))}(e=function(r,n){return ri(r,i=>i.type==="text"&&i.value!=="*"&&i.value!=="_"&&eF.test(i.value)&&i.position.end.offset-i.position.start.offset!==i.value.length?Object.assign({},i,{value:n.originalText.slice(i.position.start.offset,i.position.end.offset)}):i)}(e,t))),t),t),t)))};let{isFrontMatterNode:nF}=ve,{startWithPragma:rF}=gm,iF=new Set(["position","raw"]);function Dm(e,t,r){return e.type!=="front-matter"&&e.type!=="code"&&e.type!=="yaml"&&e.type!=="import"&&e.type!=="export"&&e.type!=="jsx"||delete t.value,e.type==="list"&&delete t.isAligned,e.type!=="list"&&e.type!=="listItem"||(delete t.spread,delete t.loose),e.type==="text"?null:(e.type==="inlineCode"&&(t.value=e.value.replace(/[\t\n ]+/g," ")),e.type==="wikiLink"&&(t.value=e.value.trim().replace(/[\t\n]+/g," ")),e.type!=="definition"&&e.type!=="linkReference"||(t.label=e.label.trim().replace(/[\t\n ]+/g," ").toLowerCase()),e.type!=="definition"&&e.type!=="link"&&e.type!=="image"||!e.title||(t.title=e.title.replace(/\\(["')])/g,"$1")),r&&r.type==="root"&&r.children.length>0&&(r.children[0]===e||nF(r.children[0])&&r.children[1]===e)&&e.type==="html"&&rF(e.value)?null:void 0)}Dm.ignoredProperties=iF;var sF=Dm;let{getLast:hp,getMinNotPresentContinuousCount:aF,getMaxContinuousCount:uF,getStringWidth:oF}=ve,{builders:{breakParent:bm,concat:pe,join:Em,line:vm,literalline:Cm,markAsRoot:xm,hardline:gt,softline:dp,ifBreak:lF,fill:cF,align:Yi,indent:pF,group:$u},utils:{normalizeDoc:fF},printer:{printDocToString:hF}}=ae,{replaceEndOfLineWith:ia}=ve,{insertPragma:dF}=gm,{locStart:gF,locEnd:mF}=sm,{getFencedCodeBlockValue:yF,hasGitDiffFriendlyOrderedList:DF,splitText:bF,punctuationPattern:Am,INLINE_NODE_TYPES:EF,INLINE_NODE_WRAPPER_TYPES:vF,isAutolink:Sm}=pp,wm=new Set(["importExport"]),CF=["heading","tableCell","link","wikiLink"],xF=new Set(["listItem","definition","footnoteDefinition"]);function Fm(e,t,r,n){let i=e.getValue(),s=i.checked===null?"":i.checked?"[x] ":"[ ] ";return pe([s,At(e,t,r,{processor:(l,a)=>{if(a===0&&l.getValue().type!=="list")return Yi(" ".repeat(s.length),l.call(r));let c=" ".repeat((p=t.tabWidth-n.length,d=3,p<(u=0)?u:p>d?d:p));var p,u,d;return pe([c,Yi(c,l.call(r))])}})])}function Tm(e,t){return function(r,n,i){i=i||(()=>!0);let s=-1;for(let l of n.children)if(l.type===r.type&&i(l)?s++:s=-1,l===r)return s}(e,t,r=>r.ordered===e.ordered)}function km(e,t){let r=[].concat(t),n,i=-1;for(;n=e.getParentNode(++i);)if(r.includes(n.type))return i;return-1}function gp(e,t){let r=km(e,t);return r===-1?null:e.getParentNode(r)}function _m(e,t,r){if(r.proseWrap==="preserve"&&t===`
|
|
179
|
+
`)return gt;let n=r.proseWrap==="always"&&!gp(e,CF);return t!==""?n?vm:" ":n?dp:""}function AF(e,t,r){let n=[],i=null,{children:s}=e.getValue();return s.forEach((l,a)=>{switch(mp(l)){case"start":i===null&&(i={index:a,offset:l.position.end.offset});break;case"end":i!==null&&(n.push({start:i,end:{index:a,offset:l.position.start.offset}}),i=null)}}),At(e,t,r,{processor:(l,a)=>{if(n.length!==0){let c=n[0];if(a===c.start.index)return pe([s[c.start.index].value,t.originalText.slice(c.start.offset,c.end.offset),s[c.end.index].value]);if(c.start.index<a&&a<c.end.index)return!1;if(a===c.end.index)return n.shift(),!1}return l.call(r)}})}function At(e,t,r,n){let i=(n=n||{}).postprocessor||pe,s=n.processor||(p=>p.call(r)),l=e.getValue(),a=[],c;return e.each((p,u)=>{let d=p.getValue(),h=s(p,u);if(h!==!1){let b={parts:a,prevNode:c,parentNode:l,options:t};(function(m,x){let F=x.parts.length===0,E=EF.includes(m.type),A=m.type==="html"&&vF.includes(x.parentNode.type);return F||E||A})(d,b)||(a.push(gt),c&&wm.has(c.type)||(function(m,x){let F=(x.prevNode&&x.prevNode.type)===m.type&&xF.has(m.type),E=x.parentNode.type==="listItem"&&!x.parentNode.loose,A=x.prevNode&&x.prevNode.type==="listItem"&&x.prevNode.loose,P=mp(x.prevNode)==="next",L=m.type==="html"&&x.prevNode&&x.prevNode.type==="html"&&x.prevNode.position.end.line+1===m.position.start.line,N=m.type==="html"&&x.parentNode.type==="listItem"&&x.prevNode&&x.prevNode.type==="paragraph"&&x.prevNode.position.end.line+1===m.position.start.line;return A||!(F||E||P||L||N)}(d,b)||Pm(d,b))&&a.push(gt),Pm(d,b)&&a.push(gt)),a.push(h),c=d}},"children"),i(a)}function SF(e){let t=e;for(;t.children&&t.children.length!==0;)t=t.children[t.children.length-1];return t}function mp(e){if(e.type!=="html")return!1;let t=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);return t!==null&&(t[1]?t[1]:"next")}function Pm(e,t){let r=t.prevNode&&t.prevNode.type==="list",n=e.type==="code"&&e.isIndented;return r&&n}function yp(e,t){let r=[" "].concat(t||[]);return new RegExp(r.map(n=>"\\".concat(n)).join("|")).test(e)?"<".concat(e,">"):e}function Wu(e,t,r){if(r==null&&(r=!0),!e)return"";if(r)return" "+Wu(e,t,!1);if((e=e.replace(/\\(["')])/g,"$1")).includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");let n=e.split("'").length-1,i=e.split('"').length-1,s=n>i?'"':i>n||t.singleQuote?"'":'"';return e=(e=e.replace(/\\/,"\\\\")).replace(new RegExp("(".concat(s,")"),"g"),"\\$1"),"".concat(s).concat(e).concat(s)}var wF={preprocess:tF,print:function(e,t,r){let n=e.getValue();if(function(i){let s=gp(i,["linkReference","imageReference"]);return s&&(s.type!=="linkReference"||s.referenceType!=="full")}(e))return pe(bF(t.originalText.slice(n.position.start.offset,n.position.end.offset),t).map(i=>i.type==="word"?i.value:i.value===""?"":_m(e,i.value,t)));switch(n.type){case"front-matter":return t.originalText.slice(n.position.start.offset,n.position.end.offset);case"root":return n.children.length===0?"":pe([fF(AF(e,t,r)),wm.has(SF(n).type)?"":gt]);case"paragraph":return At(e,t,r,{postprocessor:cF});case"sentence":return At(e,t,r);case"word":{let i=n.value.replace(/\*/g,"\\$&").replace(new RegExp(["(^|".concat(Am,")(_+)"),"(_+)(".concat(Am,"|$)")].join("|"),"g"),(a,c,p,u,d)=>(p?"".concat(c).concat(p):"".concat(u).concat(d)).replace(/_/g,"\\_")),s=(a,c,p)=>a.type==="sentence"&&p===0,l=(a,c,p)=>Sm(a.children[p-1]);return i!==n.value&&(e.match(void 0,s,l)||e.match(void 0,s,(a,c,p)=>a.type==="emphasis"&&p===0,l))&&(i=i.replace(/^(\\?[*_])+/,a=>a.replace(/\\/g,""))),i}case"whitespace":{let i=e.getParentNode(),s=i.children.indexOf(n),l=i.children[s+1],a=l&&/^>|^([*+-]|#{1,6}|\d+[).])$/.test(l.value)?"never":t.proseWrap;return _m(e,n.value,{proseWrap:a})}case"emphasis":{let i;if(Sm(n.children[0]))i=t.originalText[n.position.start.offset];else{let s=e.getParentNode(),l=s.children.indexOf(n),a=s.children[l-1],c=s.children[l+1];i=a&&a.type==="sentence"&&a.children.length>0&&hp(a.children).type==="word"&&!hp(a.children).hasTrailingPunctuation||c&&c.type==="sentence"&&c.children.length>0&&c.children[0].type==="word"&&!c.children[0].hasLeadingPunctuation||gp(e,"emphasis")?"*":"_"}return pe([i,At(e,t,r),i])}case"strong":return pe(["**",At(e,t,r),"**"]);case"delete":return pe(["~~",At(e,t,r),"~~"]);case"inlineCode":{let i=aF(n.value,"`"),s="`".repeat(i||1),l=i&&!/^\s/.test(n.value)?" ":"";return pe([s,l,n.value,l,s])}case"wikiLink":{let i="";return i=t.proseWrap==="preserve"?n.value:n.value.replace(/[\t\n]+/g," "),pe(["[[",i,"]]"])}case"link":switch(t.originalText[n.position.start.offset]){case"<":{let i="mailto:",s=n.url.startsWith(i)&&t.originalText.slice(n.position.start.offset+1,n.position.start.offset+1+i.length)!==i?n.url.slice(i.length):n.url;return pe(["<",s,">"])}case"[":return pe(["[",At(e,t,r),"](",yp(n.url,")"),Wu(n.title,t),")"]);default:return t.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return pe([""),Wu(n.title,t),")"]);case"blockquote":return pe(["> ",Yi("> ",At(e,t,r))]);case"heading":return pe(["#".repeat(n.depth)+" ",At(e,t,r)]);case"code":{if(n.isIndented){let l=" ".repeat(4);return Yi(l,pe([l,pe(ia(n.value,gt))]))}let i=t.__inJsTemplate?"~":"`",s=i.repeat(Math.max(3,uF(n.value,i)+1));return pe([s,n.lang||"",n.meta?" "+n.meta:"",gt,pe(ia(yF(n,t.originalText),gt)),gt,s])}case"html":{let i=e.getParentNode(),s=i.type==="root"&&hp(i.children)===n?n.value.trimEnd():n.value,l=/^<!--[\S\s]*-->$/.test(s);return pe(ia(s,l?gt:xm(Cm)))}case"list":{let i=Tm(n,e.getParentNode()),s=DF(n,t);return At(e,t,r,{processor:(l,a)=>{let c=function(){let u=n.ordered?(a===0?n.start:s?1:n.start+a)+(i%2==0?". ":") "):i%2==0?"- ":"* ";return n.isAligned||n.hasIndentedCodeblock?function(d,h){let b=m();return d+" ".repeat(b>=4?0:b);function m(){let x=d.length%h.tabWidth;return x===0?0:h.tabWidth-x}}(u,t):u}(),p=l.getValue();return p.children.length===2&&p.children[1].type==="html"&&p.children[0].position.start.column!==p.children[1].position.start.column?pe([c,Fm(l,t,r,c)]):pe([c,Yi(" ".repeat(c.length),Fm(l,t,r,c))])}})}case"thematicBreak":{let i=km(e,"list");return i===-1?"---":Tm(e.getParentNode(i),e.getParentNode(i+1))%2==0?"***":"---"}case"linkReference":return pe(["[",At(e,t,r),"]",n.referenceType==="full"?pe(["[",n.identifier,"]"]):n.referenceType==="collapsed"?"[]":""]);case"imageReference":switch(n.referenceType){case"full":return pe(["![",n.alt||"","][",n.identifier,"]"]);default:return pe(["![",n.alt,"]",n.referenceType==="collapsed"?"[]":""])}case"definition":{let i=t.proseWrap==="always"?vm:" ";return $u(pe([pe(["[",n.identifier,"]:"]),pF(pe([i,yp(n.url),n.title===null?"":pe([i,Wu(n.title,t,!1)])]))]))}case"footnote":return pe(["[^",At(e,t,r),"]"]);case"footnoteReference":return pe(["[^",n.identifier,"]"]);case"footnoteDefinition":{let i=e.getParentNode().children[e.getName()+1],s=n.children.length===1&&n.children[0].type==="paragraph"&&(t.proseWrap==="never"||t.proseWrap==="preserve"&&n.children[0].position.start.line===n.children[0].position.end.line);return pe(["[^",n.identifier,"]: ",s?At(e,t,r):$u(pe([Yi(" ".repeat(4),At(e,t,r,{processor:(l,a)=>a===0?$u(pe([dp,l.call(r)])):l.call(r)})),i&&i.type==="footnoteDefinition"?dp:""]))])}case"table":return function(i,s,l){let a=gt.parts[0],c=i.getValue(),p=[],u=i.map(F=>F.map((E,A)=>{let P=hF(E.call(l),s).formatted,L=oF(P);return p[A]=Math.max(p[A]||3,L),{text:P,width:L}},"children"),"children"),d=b(!1);if(s.proseWrap!=="never")return pe([bm,d]);let h=b(!0);return pe([bm,$u(lF(h,d))]);function b(F){let E=[x(u[0],F),m(F)];return u.length>1&&E.push(Em(a,u.slice(1).map(A=>x(A,F)))),Em(a,E)}function m(F){let E=p.map((A,P)=>{let L=c.align[P],N=L==="center"||L==="left"?":":"-",R=L==="center"||L==="right"?":":"-",U=F?"-":"-".repeat(A-2);return"".concat(N).concat(U).concat(R)});return"| ".concat(E.join(" | ")," |")}function x(F,E){let A=F.map(({text:P,width:L},N)=>{if(E)return P;let R=p[N]-L,U=c.align[N],J=0;U==="right"?J=R:U==="center"&&(J=Math.floor(R/2));let q=R-J;return"".concat(" ".repeat(J)).concat(P).concat(" ".repeat(q))});return"| ".concat(A.join(" | ")," |")}}(e,t,r);case"tableCell":return At(e,t,r);case"break":return/\s/.test(t.originalText[n.position.start.offset])?pe([" ",xm(Cm)]):pe(["\\",gt]);case"liquidNode":return pe(ia(n.value,gt));case"importExport":return pe([n.value,gt]);case"jsx":return n.value;case"math":return pe(["$$",gt,n.value?pe([pe(ia(n.value,gt)),gt]):"","$$"]);case"inlineMath":return t.originalText.slice(gF(n),mF(n));case"tableRow":case"listItem":default:throw new Error("Unknown markdown type ".concat(JSON.stringify(n.type)))}},embed:Qw,massageAstNode:sF,hasPrettierIgnore:function(e){let t=+e.getName();return t!==0&&mp(e.getParentNode().children[t-1])==="next"},insertPragma:dF},FF={proseWrap:Jn.proseWrap,singleQuote:Jn.singleQuote},Bm={name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".workbook"],filenames:["contents.lr"],tmScope:"source.gfm",languageId:222},TF={languages:[ze(Bm,e=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:e.filenames.concat(["README"]),extensions:e.extensions.filter(t=>t!==".mdx")})),ze(Bm,()=>({name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]}))],options:FF,printers:{mdast:wF},parsers:{get remark(){return{}.parsers.remark},get markdown(){return{}.parsers.remark},get mdx(){return{}.parsers.mdx}}};let{isFrontMatterNode:kF}=ve,_F=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function Nm(e,t){return e.type==="text"||e.type==="comment"||kF(e)||e.type==="yaml"||e.type==="toml"?null:(e.type==="attribute"&&delete t.value,void(e.type==="docType"&&delete t.value))}Nm.ignoredProperties=_F;var PF=Nm,BF={"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],abbr:["title"],applet:["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],area:["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],base:["href","target"],basefont:["color","face","size"],bdo:["dir"],blockquote:["cite"],body:["alink","background","bgcolor","link","text","vlink"],br:["clear"],button:["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],canvas:["height","width"],caption:["align"],col:["align","char","charoff","span","valign","width"],colgroup:["align","char","charoff","span","valign","width"],data:["value"],del:["cite","datetime"],details:["open"],dfn:["title"],dialog:["open"],dir:["compact"],div:["align"],dl:["compact"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],font:["color","face","size"],form:["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],frame:["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],frameset:["cols","rows"],h1:["align"],h2:["align"],h3:["align"],h4:["align"],h5:["align"],h6:["align"],head:["profile"],hr:["align","noshade","size","width"],html:["manifest","version"],iframe:["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],img:["align","alt","border","crossorigin","decoding","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],input:["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],ins:["cite","datetime"],isindex:["prompt"],label:["accesskey","for","form"],legend:["accesskey","align"],li:["type","value"],link:["as","charset","color","crossorigin","disabled","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],map:["name"],menu:["compact"],meta:["charset","content","http-equiv","name","scheme"],meter:["high","low","max","min","optimum","value"],object:["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],ol:["compact","reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["for","form","name"],p:["align"],param:["name","type","value","valuetype"],pre:["width"],progress:["max","value"],q:["cite"],script:["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],slot:["name"],source:["media","sizes","src","srcset","type"],style:["media","nonce","title","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],tbody:["align","char","charoff","valign"],td:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],textarea:["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],tfoot:["align","char","charoff","valign"],th:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],thead:["align","char","charoff","valign"],time:["datetime"],tr:["align","bgcolor","char","charoff","valign"],track:["default","kind","label","src","srclang"],ul:["compact","type"],video:["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"]};let{inferParserByLanguage:NF,isFrontMatterNode:Dp}=ve,{CSS_DISPLAY_TAGS:OF,CSS_DISPLAY_DEFAULT:IF,CSS_WHITE_SPACE_TAGS:LF,CSS_WHITE_SPACE_DEFAULT:RF}={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"},MF=Im(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),jF=function(e,t){let r=Object.create(null);for(let n of Object.keys(e))r[n]=t(e[n],n);return r}(BF,Im),VF=new Set([" ",`
|
|
180
|
+
`,"\f","\r"," "]),Om=e=>e.replace(/[\t\n\f\r ]+$/,""),UF=e=>e.match(/^[\t\n\f\r ]*/)[0];function Im(e){let t=Object.create(null);for(let r of e)t[r]=!0;return t}function Lm(e,t){return!(e.type!=="ieConditionalComment"||!e.lastChild||e.lastChild.isSelfClosing||e.lastChild.endSourceSpan)||e.type==="ieConditionalComment"&&!e.complete||!(!Ki(e)||!e.children.some(r=>r.type!=="text"&&r.type!=="interpolation"))||!(!vp(e,t)||ii(e)||e.type==="interpolation")}function Rm(e){return e.type==="attribute"||!e.parent||typeof e.index!="number"||e.index===0?!1:function(t){return t.type==="comment"&&t.value.trim()==="prettier-ignore"}(e.parent.children[e.index-1])}function ii(e){return e.type==="element"&&(e.fullName==="script"||e.fullName==="style"||e.fullName==="svg:style"||Gu(e)&&(e.name==="script"||e.name==="style"))}function Mm(e){return bp(e).startsWith("pre")}function jm(e){return e.type==="element"&&e.children.length!==0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&e.cssDisplay!=="table-cell")}function Vm(e){return Wm(e)||e.type==="element"&&e.fullName==="br"||Um(e)}function Um(e){return qm(e)&&$m(e)}function qm(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:e.parent.type==="root"||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function $m(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:e.parent.type==="root"||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function Wm(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function Gm(e){let{type:t,lang:r}=e.attrMap;return t==="module"||t==="text/javascript"||t==="text/babel"||t==="application/javascript"||r==="jsx"?"babel":t==="application/x-typescript"||r==="ts"||r==="tsx"?"typescript":t==="text/markdown"?"markdown":t==="text/html"?"html":t&&(t.endsWith("json")||t.endsWith("importmap"))?"json":t==="text/x-handlebars-template"?"glimmer":void 0}function sa(e){return e==="block"||e==="list-item"||e.startsWith("table")}function Ki(e){return bp(e).startsWith("pre")}function Gu(e){return e.type==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function bp(e){return e.type==="element"&&(!e.namespace||Gu(e))&&LF[e.name]||RF}let qF=new Set(["template","style","script"]);function Hu(e,t){return Ep(e,t)&&!qF.has(e.fullName)}function Ep(e,t){return t.parser==="vue"&&e.type==="element"&&e.parent.type==="root"&&e.fullName.toLowerCase()!=="html"}function vp(e,t){return Ep(e,t)&&(Hu(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}var Hm={HTML_ELEMENT_ATTRIBUTES:jF,HTML_TAGS:MF,htmlTrim:e=>(t=>t.replace(/^[\t\n\f\r ]+/,""))(Om(e)),htmlTrimPreserveIndentation:e=>(t=>t.replace(/^[\t\f\r ]*?\n/g,""))(Om(e)),splitByHtmlWhitespace:e=>e.split(/[\t\n\f\r ]+/),hasHtmlWhitespace:e=>/[\t\n\f\r ]/.test(e),getLeadingAndTrailingHtmlWhitespace:e=>{let[,t,r,n]=e.match(/^([\t\n\f\r ]*)([\S\s]*?)([\t\n\f\r ]*)$/);return{leadingWhitespace:t,trailingWhitespace:n,text:r}},canHaveInterpolation:function(e){return e.children&&!ii(e)},countChars:function(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},countParents:function(e,t){let r=0;for(let n=e.stack.length-1;n>=0;n--){let i=e.stack[n];i&&typeof i=="object"&&!Array.isArray(i)&&t(i)&&r++}return r},dedentString:function(e,t=function(r){let n=1/0;for(let i of r.split(`
|
|
181
|
+
`)){if(i.length===0)continue;if(!VF.has(i[0]))return 0;let s=UF(i).length;i.length!==s&&s<n&&(n=s)}return n===1/0?0:n}(e)){return t===0?e:e.split(`
|
|
182
182
|
`).map(r=>r.slice(t)).join(`
|
|
183
|
-
`)},forceBreakChildren:
|
|
184
|
-
`);return x===-1?m:m.substring(0,x)},t.resolveForwardRef=function(h){return typeof h=="function"&&h.hasOwnProperty("__forward_ref__")?h():h},t.isPromise=c,t.Version=class{constructor(h){this.full=h;let b=h.split(".");this.major=b[0],this.minor=b[1],this.patch=b.slice(2).join(".")}};let p=typeof window!="undefined"&&window,u=typeof self!="undefined"&&typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&self,d=ut!==void 0&&ut||p||u;t.global=d}),
|
|
183
|
+
`)},forceBreakChildren:jm,forceBreakContent:function(e){return jm(e)||e.type==="element"&&e.children.length!==0&&(["body","script","style"].includes(e.name)||e.children.some(t=>function(r){return r.children&&r.children.some(n=>n.type!=="text")}(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.type!=="text"&&qm(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||$m(e.lastChild))},forceNextEmptyLine:function(e){return Dp(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line},getLastDescendant:function e(t){return t.lastChild?e(t.lastChild):t},getNodeCssStyleDisplay:function(e,t){if(e.prev&&e.prev.type==="comment"){let n=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(n)return n[1]}let r=!1;if(e.type==="element"&&e.namespace==="svg"){if(!function(n,i){let s=n;for(;s;){if(i(s))return!0;s=s.parent}return!1}(e,n=>n.fullName==="svg:foreignObject"))return e.name==="svg"?"inline-block":"block";r=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return t.parser==="vue"&&e.parent&&e.parent.type==="root"?"block":e.type==="element"&&(!e.namespace||r||Gu(e))&&OF[e.name]||IF}},getNodeCssStyleWhiteSpace:bp,getPrettierIgnoreAttributeCommentData:function(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+([^]+))?$/);return!!t&&(!t[1]||t[1].split(/\s+/))},hasPrettierIgnore:Rm,inferScriptParser:function(e,t){return e.name!=="script"||e.attrMap.src?e.name==="style"?function(r){let{lang:n}=r.attrMap;return n&&n!=="postcss"&&n!=="css"?n==="scss"?"scss":n==="less"?"less":void 0:"css"}(e):t&&vp(e,t)?Gm(e)||!("src"in e.attrMap)&&NF(e.attrMap.lang,t):void 0:e.attrMap.lang||e.attrMap.type?Gm(e):"babel"},isVueCustomBlock:Hu,isVueNonHtmlBlock:vp,isVueSlotAttribute:function(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")},isVueSfcBindingsAttribute:function(e,t){let r=e.parent;if(!Ep(r,t))return!1;let n=r.fullName,i=e.fullName;return n==="script"&&i==="setup"||n==="style"&&i==="vars"},isDanglingSpaceSensitiveNode:function(e){return t=e.cssDisplay,!(sa(t)||t==="inline-block"||ii(e));var t},isIndentationSensitiveNode:Mm,isLeadingSpaceSensitiveNode:function(e,t){let r=function(){if(Dp(e))return!1;if((e.type==="text"||e.type==="interpolation")&&e.prev&&(e.prev.type==="text"||e.prev.type==="interpolation"))return!0;if(!e.parent||e.parent.cssDisplay==="none")return!1;if(Ki(e.parent))return!0;if(!e.prev&&(e.parent.type==="root"||Ki(e)&&e.parent||ii(e.parent)||Hu(e.parent,t)||(n=e.parent.cssDisplay,sa(n)||n==="inline-block")))return!1;var n;return!(e.prev&&!function(i){return!sa(i)}(e.prev.cssDisplay))}();return r&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?e.type==="interpolation":r},isPreLikeNode:Ki,isScriptLikeTag:ii,isTextLikeNode:function(e){return e.type==="text"||e.type==="comment"},isTrailingSpaceSensitiveNode:function(e,t){return!Dp(e)&&(!(e.type!=="text"&&e.type!=="interpolation"||!e.next||e.next.type!=="text"&&e.next.type!=="interpolation")||!(!e.parent||e.parent.cssDisplay==="none")&&(!!Ki(e.parent)||!(!e.next&&(e.parent.type==="root"||Ki(e)&&e.parent||ii(e.parent)||Hu(e.parent,t)||(r=e.parent.cssDisplay,sa(r)||r==="inline-block")))&&!(e.next&&!function(n){return!sa(n)}(e.next.cssDisplay))));var r},isWhitespaceSensitiveNode:function(e){return ii(e)||e.type==="interpolation"||Mm(e)},isUnknownNamespace:Gu,preferHardlineAsLeadingSpaces:function(e){return Wm(e)||e.prev&&Vm(e.prev)||Um(e)},preferHardlineAsTrailingSpaces:Vm,shouldNotPrintClosingTag:function(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Rm(e)||Lm(e.parent,t))},shouldPreserveContent:Lm,unescapeQuoteEntities:function(e){return e.replace(/'/g,"'").replace(/"/g,'"')}},Cp=re(function(e,t){function r(n){return t.$0<=n&&n<=t.$9}Object.defineProperty(t,"__esModule",{value:!0}),t.$EOF=0,t.$BSPACE=8,t.$TAB=9,t.$LF=10,t.$VTAB=11,t.$FF=12,t.$CR=13,t.$SPACE=32,t.$BANG=33,t.$DQ=34,t.$HASH=35,t.$$=36,t.$PERCENT=37,t.$AMPERSAND=38,t.$SQ=39,t.$LPAREN=40,t.$RPAREN=41,t.$STAR=42,t.$PLUS=43,t.$COMMA=44,t.$MINUS=45,t.$PERIOD=46,t.$SLASH=47,t.$COLON=58,t.$SEMICOLON=59,t.$LT=60,t.$EQ=61,t.$GT=62,t.$QUESTION=63,t.$0=48,t.$7=55,t.$9=57,t.$A=65,t.$E=69,t.$F=70,t.$X=88,t.$Z=90,t.$LBRACKET=91,t.$BACKSLASH=92,t.$RBRACKET=93,t.$CARET=94,t.$_=95,t.$a=97,t.$b=98,t.$e=101,t.$f=102,t.$n=110,t.$r=114,t.$t=116,t.$u=117,t.$v=118,t.$x=120,t.$z=122,t.$LBRACE=123,t.$BAR=124,t.$RBRACE=125,t.$NBSP=160,t.$PIPE=124,t.$TILDA=126,t.$AT=64,t.$BT=96,t.isWhitespace=function(n){return n>=t.$TAB&&n<=t.$SPACE||n==t.$NBSP},t.isDigit=r,t.isAsciiLetter=function(n){return n>=t.$a&&n<=t.$z||n>=t.$A&&n<=t.$Z},t.isAsciiHexDigit=function(n){return n>=t.$a&&n<=t.$f||n>=t.$A&&n<=t.$F||r(n)},t.isNewLine=function(n){return n===t.$LF||n===t.$CR},t.isOctalDigit=function(n){return t.$0<=n&&n<=t.$7}}),zu=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(i,s,l){this.filePath=i,this.name=s,this.members=l}assertNoMembers(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got ".concat(JSON.stringify(this),"."))}}t.StaticSymbol=r,t.StaticSymbolCache=class{constructor(){this.cache=new Map}get(n,i,s){let l=(s=s||[]).length?".".concat(s.join(".")):"",a='"'.concat(n,'".').concat(i).concat(l),c=this.cache.get(a);return c||(c=new r(n,i,s),this.cache.set(a,c)),c}}}),Ju=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let r=/-+([a-z0-9])/g;function n(h,b,m){let x=h.indexOf(b);return x==-1?m:[h.slice(0,x).trim(),h.slice(x+1).trim()]}function i(h,b,m){return Array.isArray(h)?b.visitArray(h,m):typeof(x=h)=="object"&&x!==null&&Object.getPrototypeOf(x)===a?b.visitStringMap(h,m):h==null||typeof h=="string"||typeof h=="number"||typeof h=="boolean"?b.visitPrimitive(h,m):b.visitOther(h,m);var x}t.dashCaseToCamelCase=function(h){return h.replace(r,(...b)=>b[1].toUpperCase())},t.splitAtColon=function(h,b){return n(h,":",b)},t.splitAtPeriod=function(h,b){return n(h,".",b)},t.visitValue=i,t.isDefined=function(h){return h!=null},t.noUndefined=function(h){return h===void 0?null:h},t.ValueTransformer=class{visitArray(h,b){return h.map(m=>i(m,this,b))}visitStringMap(h,b){let m={};return Object.keys(h).forEach(x=>{m[x]=i(h[x],this,b)}),m}visitPrimitive(h,b){return h}visitOther(h,b){return h}},t.SyncAsync={assertSync:h=>{if(c(h))throw new Error("Illegal state: value cannot be a promise");return h},then:(h,b)=>c(h)?h.then(b):b(h),all:h=>h.some(c)?Promise.all(h):h},t.error=function(h){throw new Error("Internal Error: ".concat(h))},t.syntaxError=function(h,b){let m=Error(h);return m[s]=!0,b&&(m[l]=b),m};let s="ngSyntaxError",l="ngParseErrors";t.isSyntaxError=function(h){return h[s]},t.getParseErrors=function(h){return h[l]||[]},t.escapeRegExp=function(h){return h.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")};let a=Object.getPrototypeOf({});function c(h){return!!h&&typeof h.then=="function"}t.utf8Encode=function(h){let b="";for(let m=0;m<h.length;m++){let x=h.charCodeAt(m);if(x>=55296&&x<=56319&&h.length>m+1){let F=h.charCodeAt(m+1);F>=56320&&F<=57343&&(m++,x=(x-55296<<10)+F-56320+65536)}x<=127?b+=String.fromCharCode(x):x<=2047?b+=String.fromCharCode(x>>6&31|192,63&x|128):x<=65535?b+=String.fromCharCode(x>>12|224,x>>6&63|128,63&x|128):x<=2097151&&(b+=String.fromCharCode(x>>18&7|240,x>>12&63|128,x>>6&63|128,63&x|128))}return b},t.stringify=function h(b){if(typeof b=="string")return b;if(b instanceof Array)return"["+b.map(h).join(", ")+"]";if(b==null)return""+b;if(b.overriddenName)return"".concat(b.overriddenName);if(b.name)return"".concat(b.name);if(!b.toString)return"object";let m=b.toString();if(m==null)return""+m;let x=m.indexOf(`
|
|
184
|
+
`);return x===-1?m:m.substring(0,x)},t.resolveForwardRef=function(h){return typeof h=="function"&&h.hasOwnProperty("__forward_ref__")?h():h},t.isPromise=c,t.Version=class{constructor(h){this.full=h;let b=h.split(".");this.major=b[0],this.minor=b[1],this.patch=b.slice(2).join(".")}};let p=typeof window!="undefined"&&window,u=typeof self!="undefined"&&typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&self,d=ut!==void 0&&ut||p||u;t.global=d}),xp=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let r=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function n(d){return d.replace(/\W/g,"_")}t.sanitizeIdentifier=n;let i=0;function s(d){if(!d||!d.reference)return null;let h=d.reference;if(h instanceof zu.StaticSymbol)return h.name;if(h.__anonymousType)return h.__anonymousType;let b=Ju.stringify(h);return b.indexOf("(")>=0?(b="anonymous_".concat(i++),h.__anonymousType=b):b=n(b),b}var l;t.identifierName=s,t.identifierModuleUrl=function(d){let h=d.reference;return h instanceof zu.StaticSymbol?h.filePath:"./".concat(Ju.stringify(h))},t.viewClassName=function(d,h){return"View_".concat(s({reference:d}),"_").concat(h)},t.rendererTypeName=function(d){return"RenderType_".concat(s({reference:d}))},t.hostViewClassName=function(d){return"HostView_".concat(s({reference:d}))},t.componentFactoryName=function(d){return"".concat(s({reference:d}),"NgFactory")},function(d){d[d.Pipe=0]="Pipe",d[d.Directive=1]="Directive",d[d.NgModule=2]="NgModule",d[d.Injectable=3]="Injectable"}(l=t.CompileSummaryKind||(t.CompileSummaryKind={})),t.tokenName=function(d){return d.value!=null?n(d.value):s(d.identifier)},t.tokenReference=function(d){return d.identifier!=null?d.identifier.reference:d.value},t.CompileStylesheetMetadata=class{constructor({moduleUrl:d,styles:h,styleUrls:b}={}){this.moduleUrl=d||null,this.styles=c(h),this.styleUrls=c(b)}},t.CompileTemplateMetadata=class{constructor({encapsulation:d,template:h,templateUrl:b,htmlAst:m,styles:x,styleUrls:F,externalStylesheets:E,animations:A,ngContentSelectors:P,interpolation:L,isInline:N,preserveWhitespaces:R}){if(this.encapsulation=d,this.template=h,this.templateUrl=b,this.htmlAst=m,this.styles=c(x),this.styleUrls=c(F),this.externalStylesheets=c(E),this.animations=A?p(A):[],this.ngContentSelectors=P||[],L&&L.length!=2)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=L,this.isInline=N,this.preserveWhitespaces=R}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};class a{static create({isHost:h,type:b,isComponent:m,selector:x,exportAs:F,changeDetection:E,inputs:A,outputs:P,host:L,providers:N,viewProviders:R,queries:U,guards:J,viewQueries:q,entryComponents:X,template:ne,componentViewType:he,rendererType:Ae,componentFactory:xe}){let je={},Ve={},nn={};L!=null&&Object.keys(L).forEach(Ze=>{let St=L[Ze],Qn=Ze.match(r);Qn===null?nn[Ze]=St:Qn[1]!=null?Ve[Qn[1]]=St:Qn[2]!=null&&(je[Qn[2]]=St)});let Ot={};A!=null&&A.forEach(Ze=>{let St=Ju.splitAtColon(Ze,[Ze,Ze]);Ot[St[0]]=St[1]});let Wt={};return P!=null&&P.forEach(Ze=>{let St=Ju.splitAtColon(Ze,[Ze,Ze]);Wt[St[0]]=St[1]}),new a({isHost:h,type:b,isComponent:!!m,selector:x,exportAs:F,changeDetection:E,inputs:Ot,outputs:Wt,hostListeners:je,hostProperties:Ve,hostAttributes:nn,providers:N,viewProviders:R,queries:U,guards:J,viewQueries:q,entryComponents:X,template:ne,componentViewType:he,rendererType:Ae,componentFactory:xe})}constructor({isHost:h,type:b,isComponent:m,selector:x,exportAs:F,changeDetection:E,inputs:A,outputs:P,hostListeners:L,hostProperties:N,hostAttributes:R,providers:U,viewProviders:J,queries:q,guards:X,viewQueries:ne,entryComponents:he,template:Ae,componentViewType:xe,rendererType:je,componentFactory:Ve}){this.isHost=!!h,this.type=b,this.isComponent=m,this.selector=x,this.exportAs=F,this.changeDetection=E,this.inputs=A,this.outputs=P,this.hostListeners=L,this.hostProperties=N,this.hostAttributes=R,this.providers=c(U),this.viewProviders=c(J),this.queries=c(q),this.guards=X,this.viewQueries=c(ne),this.entryComponents=c(he),this.template=Ae,this.componentViewType=xe,this.rendererType=je,this.componentFactory=Ve}toSummary(){return{summaryKind:l.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}}t.CompileDirectiveMetadata=a,t.CompilePipeMetadata=class{constructor({type:d,name:h,pure:b}){this.type=d,this.name=h,this.pure=!!b}toSummary(){return{summaryKind:l.Pipe,type:this.type,name:this.name,pure:this.pure}}},t.CompileShallowModuleMetadata=class{},t.CompileNgModuleMetadata=class{constructor({type:d,providers:h,declaredDirectives:b,exportedDirectives:m,declaredPipes:x,exportedPipes:F,entryComponents:E,bootstrapComponents:A,importedModules:P,exportedModules:L,schemas:N,transitiveModule:R,id:U}){this.type=d||null,this.declaredDirectives=c(b),this.exportedDirectives=c(m),this.declaredPipes=c(x),this.exportedPipes=c(F),this.providers=c(h),this.entryComponents=c(E),this.bootstrapComponents=c(A),this.importedModules=c(P),this.exportedModules=c(L),this.schemas=c(N),this.id=U||null,this.transitiveModule=R||null}toSummary(){let d=this.transitiveModule;return{summaryKind:l.NgModule,type:this.type,entryComponents:d.entryComponents,providers:d.providers,modules:d.modules,exportedDirectives:d.exportedDirectives,exportedPipes:d.exportedPipes}}};function c(d){return d||[]}t.TransitiveCompileNgModuleMetadata=class{constructor(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}addProvider(d,h){this.providers.push({provider:d,module:h})}addDirective(d){this.directivesSet.has(d.reference)||(this.directivesSet.add(d.reference),this.directives.push(d))}addExportedDirective(d){this.exportedDirectivesSet.has(d.reference)||(this.exportedDirectivesSet.add(d.reference),this.exportedDirectives.push(d))}addPipe(d){this.pipesSet.has(d.reference)||(this.pipesSet.add(d.reference),this.pipes.push(d))}addExportedPipe(d){this.exportedPipesSet.has(d.reference)||(this.exportedPipesSet.add(d.reference),this.exportedPipes.push(d))}addModule(d){this.modulesSet.has(d.reference)||(this.modulesSet.add(d.reference),this.modules.push(d))}addEntryComponent(d){this.entryComponentsSet.has(d.componentType)||(this.entryComponentsSet.add(d.componentType),this.entryComponents.push(d))}};function p(d){return d.reduce((h,b)=>{let m=Array.isArray(b)?p(b):b;return h.concat(m)},[])}function u(d){return d.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}t.ProviderMeta=class{constructor(d,{useClass:h,useValue:b,useExisting:m,useFactory:x,deps:F,multi:E}){this.token=d,this.useClass=h||null,this.useValue=b,this.useExisting=m,this.useFactory=x||null,this.dependencies=F||null,this.multi=!!E}},t.flatten=p,t.templateSourceUrl=function(d,h,b){let m;return m=b.isInline?h.type.reference instanceof zu.StaticSymbol?"".concat(h.type.reference.filePath,".").concat(h.type.reference.name,".html"):"".concat(s(d),"/").concat(s(h.type),".html"):b.templateUrl,h.type.reference instanceof zu.StaticSymbol?m:u(m)},t.sharedStylesheetJitUrl=function(d,h){let b=d.moduleUrl.split(/\/\\/g),m=b[b.length-1];return u("css/".concat(h).concat(m,".ngstyle.js"))},t.ngModuleJitUrl=function(d){return u("".concat(s(d.type),"/module.ngfactory.js"))},t.templateJitUrl=function(d,h){return u("".concat(s(d),"/").concat(s(h.type),".ngfactory.js"))}}),$F=re(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(a,c,p,u){this.file=a,this.offset=c,this.line=p,this.col=u}toString(){return this.offset!=null?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url}moveBy(a){let c=this.file.content,p=c.length,u=this.offset,d=this.line,h=this.col;for(;u>0&&a<0;)if(u--,a++,c.charCodeAt(u)==Cp.$LF){d--;let b=c.substr(0,u-1).lastIndexOf(String.fromCharCode(Cp.$LF));h=b>0?u-b:u}else h--;for(;u<p&&a>0;){let b=c.charCodeAt(u);u++,a--,b==Cp.$LF?(d++,h=0):h++}return new r(this.file,u,d,h)}getContext(a,c){let p=this.file.content,u=this.offset;if(u!=null){u>p.length-1&&(u=p.length-1);let d=u,h=0,b=0;for(;h<a&&u>0&&(u--,h++,p[u]!=`
|
|
185
185
|
`||++b!=c););for(h=0,b=0;h<a&&d<p.length-1&&(d++,h++,p[d]!=`
|
|
186
|
-
`||++b!=c););return{before:p.substring(u,this.offset),after:p.substring(this.offset,d+1)}}return null}}t.ParseLocation=r;class n{constructor(a,c){this.content=a,this.url=c}}t.ParseSourceFile=n;class i{constructor(a,c,p=null){this.start=a,this.end=c,this.details=p}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}var s;t.ParseSourceSpan=i,t.EMPTY_PARSE_LOCATION=new r(new n("",""),0,0,0),t.EMPTY_SOURCE_SPAN=new i(t.EMPTY_PARSE_LOCATION,t.EMPTY_PARSE_LOCATION),function(l){l[l.WARNING=0]="WARNING",l[l.ERROR=1]="ERROR"}(s=t.ParseErrorLevel||(t.ParseErrorLevel={})),t.ParseError=class{constructor(l,a,c=s.ERROR){this.span=l,this.msg=a,this.level=c}contextualMessage(){let l=this.span.start.getContext(100,3);return l?"".concat(this.msg,' ("').concat(l.before,"[").concat(s[this.level]," ->]").concat(l.after,'")'):this.msg}toString(){let l=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(l)}},t.typeSourceSpan=function(l,a){let c=
|
|
187
|
-
`){let[r,...n]=t.children;return t.clone({children:r.value.length===1?n:[r.clone({value:r.value.slice(1)}),...n]})}return t})},function(e){let t=r=>r.type==="element"&&r.prev&&r.prev.type==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&r.firstChild&&r.firstChild.type==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset;return e.map(r=>{if(r.children){let n=r.children.map(t);if(n.some(Boolean)){let i=[];for(let s=0;s<r.children.length;s++){let l=r.children[s];if(!n[s+1])if(n[s]){let a=l.prev,c=l.firstChild,p=new Ar(a.sourceSpan.start,c.sourceSpan.end),u=new Ar(p.start,l.sourceSpan.end);i.push(l.clone({condition:a.condition,sourceSpan:u,startSourceSpan:p,children:l.children.slice(1)}))}else i.push(l)}return r.clone({children:i})}}return r})},function(e){return function(t,r,n){return t.map(i=>{if(i.children){let s=i.children.map(r);if(s.some(Boolean)){let l=[];for(let a=0;a<i.children.length;a++){let c=i.children[a];if(c.type!=="text"&&!s[a]){l.push(c);continue}let p=c.type==="text"?c:c.clone({type:"text",value:n(c)});if(l.length===0||l[l.length-1].type!=="text"){l.push(p);continue}let u=l.pop();l.push(u.clone({value:u.value+p.value,sourceSpan:new Ar(u.sourceSpan.start,p.sourceSpan.end)}))}return i.clone({children:l})}}return i})}(e,t=>t.type==="cdata",t=>"<![CDATA[".concat(t.value,"]]>"))},function(e,t){if(t.parser==="html")return e;let r=/{{([\S\s]+?)}}/g;return e.map(n=>{if(!
|
|
186
|
+
`||++b!=c););return{before:p.substring(u,this.offset),after:p.substring(this.offset,d+1)}}return null}}t.ParseLocation=r;class n{constructor(a,c){this.content=a,this.url=c}}t.ParseSourceFile=n;class i{constructor(a,c,p=null){this.start=a,this.end=c,this.details=p}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}var s;t.ParseSourceSpan=i,t.EMPTY_PARSE_LOCATION=new r(new n("",""),0,0,0),t.EMPTY_SOURCE_SPAN=new i(t.EMPTY_PARSE_LOCATION,t.EMPTY_PARSE_LOCATION),function(l){l[l.WARNING=0]="WARNING",l[l.ERROR=1]="ERROR"}(s=t.ParseErrorLevel||(t.ParseErrorLevel={})),t.ParseError=class{constructor(l,a,c=s.ERROR){this.span=l,this.msg=a,this.level=c}contextualMessage(){let l=this.span.start.getContext(100,3);return l?"".concat(this.msg,' ("').concat(l.before,"[").concat(s[this.level]," ->]").concat(l.after,'")'):this.msg}toString(){let l=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(l)}},t.typeSourceSpan=function(l,a){let c=xp.identifierModuleUrl(a),p=c!=null?"in ".concat(l," ").concat(xp.identifierName(a)," in ").concat(c):"in ".concat(l," ").concat(xp.identifierName(a)),u=new n("",p);return new i(new r(u,-1,-1,-1),new r(u,-1,-1,-1))},t.r3JitTypeSourceSpan=function(l,a,c){let p="in ".concat(l," ").concat(a," in ").concat(c),u=new n("",p);return new i(new r(u,-1,-1,-1),new r(u,-1,-1,-1))}});let{ParseSourceSpan:Ar}=$F,{htmlTrim:WF,getLeadingAndTrailingHtmlWhitespace:GF,hasHtmlWhitespace:HF,canHaveInterpolation:zF,getNodeCssStyleDisplay:JF,isDanglingSpaceSensitiveNode:XF,isIndentationSensitiveNode:YF,isLeadingSpaceSensitiveNode:KF,isTrailingSpaceSensitiveNode:QF,isWhitespaceSensitiveNode:ZF}=Hm,e6=[function(e){return e.map(t=>{if(t.type==="element"&&t.tagDefinition.ignoreFirstLf&&t.children.length!==0&&t.children[0].type==="text"&&t.children[0].value[0]===`
|
|
187
|
+
`){let[r,...n]=t.children;return t.clone({children:r.value.length===1?n:[r.clone({value:r.value.slice(1)}),...n]})}return t})},function(e){let t=r=>r.type==="element"&&r.prev&&r.prev.type==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&r.firstChild&&r.firstChild.type==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset;return e.map(r=>{if(r.children){let n=r.children.map(t);if(n.some(Boolean)){let i=[];for(let s=0;s<r.children.length;s++){let l=r.children[s];if(!n[s+1])if(n[s]){let a=l.prev,c=l.firstChild,p=new Ar(a.sourceSpan.start,c.sourceSpan.end),u=new Ar(p.start,l.sourceSpan.end);i.push(l.clone({condition:a.condition,sourceSpan:u,startSourceSpan:p,children:l.children.slice(1)}))}else i.push(l)}return r.clone({children:i})}}return r})},function(e){return function(t,r,n){return t.map(i=>{if(i.children){let s=i.children.map(r);if(s.some(Boolean)){let l=[];for(let a=0;a<i.children.length;a++){let c=i.children[a];if(c.type!=="text"&&!s[a]){l.push(c);continue}let p=c.type==="text"?c:c.clone({type:"text",value:n(c)});if(l.length===0||l[l.length-1].type!=="text"){l.push(p);continue}let u=l.pop();l.push(u.clone({value:u.value+p.value,sourceSpan:new Ar(u.sourceSpan.start,p.sourceSpan.end)}))}return i.clone({children:l})}}return i})}(e,t=>t.type==="cdata",t=>"<![CDATA[".concat(t.value,"]]>"))},function(e,t){if(t.parser==="html")return e;let r=/{{([\S\s]+?)}}/g;return e.map(n=>{if(!zF(n))return n;let i=[];for(let s of n.children){if(s.type!=="text"){i.push(s);continue}let l=s.sourceSpan.start,a=null,c=s.value.split(r);for(let p=0;p<c.length;p++,l=a){let u=c[p];p%2!=0?(a=l.moveBy(u.length+4),i.push({type:"interpolation",sourceSpan:new Ar(l,a),children:u.length===0?[]:[{type:"text",value:u,sourceSpan:new Ar(l.moveBy(2),a.moveBy(-2))}]})):(a=l.moveBy(u.length),u.length!==0&&i.push({type:"text",value:u,sourceSpan:new Ar(l,a)}))}}return n.clone({children:i})})},function(e){let t="whitespace";return e.map(r=>{if(!r.children)return r;if(r.children.length===0||r.children.length===1&&r.children[0].type==="text"&&WF(r.children[0].value).length===0)return r.clone({children:[],hasDanglingSpaces:r.children.length!==0});let n=ZF(r),i=YF(r);return r.clone({isWhitespaceSensitive:n,isIndentationSensitive:i,children:r.children.reduce((s,l)=>{if(l.type!=="text"||n)return s.concat(l);let a=[],{leadingWhitespace:c,text:p,trailingWhitespace:u}=GF(l.value);return c&&a.push({type:t}),p&&a.push({type:"text",value:p,sourceSpan:new Ar(l.sourceSpan.start.moveBy(c.length),l.sourceSpan.end.moveBy(-u.length))}),u&&a.push({type:t}),s.concat(a)},[]).reduce((s,l,a,c)=>{if(l.type===t)return s;let p=a!==0&&c[a-1].type===t,u=a!==c.length-1&&c[a+1].type===t;return s.concat(Object.assign({},l,{hasLeadingSpaces:p,hasTrailingSpaces:u}))},[])})})},function(e,t){return e.map(r=>Object.assign(r,{cssDisplay:JF(r,t)}))},function(e){return e.map(t=>Object.assign(t,{isSelfClosing:!t.children||t.type==="element"&&(t.tagDefinition.isVoid||t.startSourceSpan===t.endSourceSpan)}))},function(e,t){return e.map(r=>r.type!=="element"?r:Object.assign(r,{hasHtmComponentClosingTag:r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset))}))},function(e,t){return e.map(r=>r.children?r.children.length===0?r.clone({isDanglingSpaceSensitive:XF(r)}):r.clone({children:r.children.map(n=>Object.assign({},n,{isLeadingSpaceSensitive:KF(n,t),isTrailingSpaceSensitive:QF(n,t)})).map((n,i,s)=>Object.assign({},n,{isLeadingSpaceSensitive:(i===0||s[i-1].isTrailingSpaceSensitive)&&n.isLeadingSpaceSensitive,isTrailingSpaceSensitive:(i===s.length-1||s[i+1].isLeadingSpaceSensitive)&&n.isTrailingSpaceSensitive}))}):r)},function(e){let t=r=>r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!HF(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&r.prev&&r.prev.type==="text"&&r.next&&r.next.type==="text";return e.map(r=>{if(r.children){let n=r.children.map(t);if(n.some(Boolean)){let i=[];for(let s=0;s<r.children.length;s++){let l=r.children[s];if(n[s]){let a=i.pop(),c=r.children[++s],{isTrailingSpaceSensitive:p,hasTrailingSpaces:u}=c;i.push(a.clone({value:a.value+"<".concat(l.rawName,">")+l.firstChild.value+"</".concat(l.rawName,">")+c.value,sourceSpan:new Ar(a.sourceSpan.start,c.sourceSpan.end),isTrailingSpaceSensitive:p,hasTrailingSpaces:u}))}else i.push(l)}return r.clone({children:i})}}return r})}];var t6=function(e,t){for(let r of e6)e=r(e,t);return e},n6={hasPragma:function(e){return/^\s*<!--\s*@(format|prettier)\s*-->/.test(e)},insertPragma:function(e){return`<!-- @format -->
|
|
188
188
|
|
|
189
|
-
`+e.replace(/^\s*\n/,"")}},
|
|
190
|
-
`||R==="\f"||R==="\r"}function s(R){var U,z=R.exec(t.substring(A));if(z)return U=z[0],A+=U.length,U}for(var l,a,c,p,u,d=t.length,h=/^[ \t\n\r\u000c]+/,b=/^[, \t\n\r\u000c]+/,m=/^[^ \t\n\r\u000c]+/,x=/[,]+$/,F=/^\d+$/,E=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,A=0,P=[];;){if(s(b),A>=d)return P;l=s(m),a=[],l.slice(-1)===","?(l=l.replace(x,""),N()):L()}function L(){for(s(h),c="",p="in descriptor";;){if(u=t.charAt(A),p==="in descriptor")if(i(u))c&&(a.push(c),c="",p="after descriptor");else{if(u===",")return A+=1,c&&a.push(c),void N();if(u==="(")c+=u,p="in parens";else{if(u==="")return c&&a.push(c),void N();c+=u}}else if(p==="in parens")if(u===")")c+=u,p="in descriptor";else{if(u==="")return a.push(c),void N();c+=u}else if(p==="after descriptor"&&!i(u)){if(u==="")return void N();p="in descriptor",A-=1}A+=1}}function N(){var R,U,z,q,J,ee,he,Ae,xe,je=!1,Ve={};for(q=0;q<a.length;q++)ee=(J=a[q])[J.length-1],he=J.substring(0,J.length-1),Ae=parseInt(he,10),xe=parseFloat(he),F.test(he)&&ee==="w"?((R||U)&&(je=!0),Ae===0?je=!0:R=Ae):E.test(he)&&ee==="x"?((R||U||z)&&(je=!0),xe<0?je=!0:U=xe):F.test(he)&&ee==="h"?((z||U)&&(je=!0),Ae===0?je=!0:z=Ae):je=!0;je?n&&n.error&&n.error("Invalid srcset descriptor found in '"+t+"' at '"+J+"'."):(Ve.url=l,R&&(Ve.w=R),U&&(Ve.d=U),z&&(Ve.h=z),P.push(Ve))}}})});let{builders:{concat:Hm,ifBreak:a6,join:u6,line:o6}}=ae;var l6={printImgSrcset:function(e){let t=s6(e,{logger:{error(h){throw new Error(h)}}}),r=t.some(({w:h})=>h),n=t.some(({h})=>h);if(r+n+t.some(({d:h})=>h)>1)throw new Error("Mixed descriptor in srcset is not supported");let i=r?"w":n?"h":"d",s=r?"w":n?"h":"x",l=h=>Math.max(...h),a=t.map(h=>h.url),c=l(a.map(h=>h.length)),p=t.map(h=>h[i]).map(h=>h?h.toString():""),u=p.map(h=>{let b=h.indexOf(".");return b===-1?h.length:b}),d=l(u);return u6(Hm([",",o6]),a.map((h,b)=>{let m=[h],x=p[b];if(x){let F=c-h.length+1,E=d-u[b],A=" ".repeat(F+E);m.push(a6(A," "),x+s)}return Hm(m)}))},printClassNames:function(e){return e.trim().split(/\s+/).join(" ")}};let{builders:Xu,utils:{mapDoc:c6,normalizeParts:zm}}=ae,{replaceEndOfLineWith:dn}=Ee,{print:p6}=Zs,{breakParent:xp,dedentToRoot:f6,fill:Jm,group:Ut,hardline:tt,ifBreak:Yu,indent:Qi,join:Xm,line:qt,literalline:_n,softline:gn}=Xu,{htmlTrimPreserveIndentation:Ym,splitByHtmlWhitespace:h6,countChars:Km,countParents:d6,dedentString:Qm,forceBreakChildren:g6,forceBreakContent:m6,forceNextEmptyLine:Ku,getLastDescendant:Zm,getPrettierIgnoreAttributeCommentData:y6,hasPrettierIgnore:ey,inferScriptParser:ty,isVueCustomBlock:D6,isVueNonHtmlBlock:b6,isVueSlotAttribute:E6,isVueSfcBindingsAttribute:v6,isScriptLikeTag:Ap,isTextLikeNode:tn,preferHardlineAsLeadingSpaces:Sp,shouldNotPrintClosingTag:ny,shouldPreserveContent:C6,unescapeQuoteEntities:ry,isPreLikeNode:x6}=Gm,{insertPragma:A6}=e6,{locStart:wp,locEnd:Fp}=t6,{printVueFor:S6,printVueBindings:w6,isVueEventBindingExpression:F6}=i6,{printImgSrcset:T6,printClassNames:k6}=l6;function ne(e){let t=zm(e);return t.length===0?"":t.length===1?t[0]:Xu.concat(t)}function iy(e,t,r){let n=e.getValue();if(g6(n))return ne([xp,ne(e.map(a=>{let c=a.getValue(),p=c.prev?l(c.prev,c):"";return ne([p?ne([p,Ku(c.prev)?tt:""]):"",s(a)])},"children"))]);let i=n.children.map(()=>Symbol(""));return ne(e.map((a,c)=>{let p=a.getValue();if(tn(p)){if(p.prev&&tn(p.prev)){let F=l(p.prev,p);if(F)return Ku(p.prev)?ne([tt,tt,s(a)]):ne([F,s(a)])}return s(a)}let u=[],d=[],h=[],b=[],m=p.prev?l(p.prev,p):"",x=p.next?l(p,p.next):"";return m&&(Ku(p.prev)?u.push(tt,tt):m===tt?u.push(tt):tn(p.prev)?d.push(m):d.push(Yu("",gn,{groupId:i[c-1]}))),x&&(Ku(p)?tn(p.next)&&b.push(tt,tt):x===tt?tn(p.next)&&b.push(tt):h.push(x)),ne([].concat(u,Ut(ne([ne(d),Ut(ne([s(a),ne(h)]),{id:i[c]})])),b))},"children"));function s(a){let c=a.getValue();return ey(c)?ne([].concat(ai(c,t),dn(t.originalText.slice(wp(c)+(c.prev&&eo(c.prev)?_p(c).length:0),Fp(c)-(c.next&&si(c.next)?oa(c,t).length:0)),_n),ui(c,t))):r(a)}function l(a,c){return tn(a)&&tn(c)?a.isTrailingSpaceSensitive?a.hasTrailingSpaces?Sp(c)?tt:qt:"":Sp(c)?tt:gn:eo(a)&&(ey(c)||c.firstChild||c.isSelfClosing||c.type==="element"&&c.attrs.length!==0)||a.type==="element"&&a.isSelfClosing&&si(c)?"":!c.isLeadingSpaceSensitive||Sp(c)||si(c)&&a.lastChild&&ua(a.lastChild)&&a.lastChild.lastChild&&ua(a.lastChild.lastChild)?tt:c.hasLeadingSpaces?qt:gn}}function sy(e,t){let r=e.startSourceSpan.end.offset;e.firstChild&&to(e.firstChild)&&(r-=Pp(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&ua(e.lastChild)?n+=Bp(e,t).length:aa(e)&&(n-=oa(e.lastChild,t).length),t.originalText.slice(r,n)}function _6(e,t,r){let n=e.getValue();if(!n.attrs||n.attrs.length===0)return n.isSelfClosing?" ":"";let i=n.prev&&n.prev.type==="comment"&&y6(n.prev.value),s=typeof i=="boolean"?()=>i:Array.isArray(i)?p=>i.includes(p.rawName):()=>!1,l=e.map(p=>{let u=p.getValue();return s(u)?ne(dn(t.originalText.slice(wp(u),Fp(u)),_n)):r(p)},"attrs"),a=n.type==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,c=[Qi(ne([a?" ":qt,Xm(qt,l)]))];return n.firstChild&&to(n.firstChild)||n.isSelfClosing&&aa(n.parent)||a?c.push(n.isSelfClosing?" ":""):c.push(n.isSelfClosing?qt:gn),ne(c)}function Tp(e,t,r){let n=e.getValue();return ne([Qu(n,t),_6(e,t,r),n.isSelfClosing?"":P6(n)])}function Qu(e,t){return e.prev&&eo(e.prev)?"":ne([ai(e,t),_p(e)])}function P6(e){return e.firstChild&&to(e.firstChild)?"":Pp(e)}function kp(e,t){return ne([e.isSelfClosing?"":B6(e,t),Zu(e,t)])}function B6(e,t){return e.lastChild&&ua(e.lastChild)?"":ne([N6(e,t),Bp(e,t)])}function Zu(e,t){return(e.next?si(e.next):aa(e.parent))?"":ne([oa(e,t),ui(e,t)])}function eo(e){return e.next&&!tn(e.next)&&tn(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function to(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function si(e){return e.prev&&e.prev.type!=="docType"&&!tn(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function aa(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!tn(Zm(e.lastChild))&&!x6(e)}function ua(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&tn(Zm(e))}function ai(e,t){return to(e)?Pp(e.parent):si(e)?oa(e.prev,t):""}function N6(e,t){return aa(e)?oa(e.lastChild,t):""}function ui(e,t){return ua(e)?Bp(e.parent,t):eo(e)?_p(e.next):""}function _p(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return"<!--[if ".concat(e.condition);case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":return"<!DOCTYPE";case"element":if(e.condition)return"<!--[if ".concat(e.condition,"]><!--><").concat(e.rawName);default:return"<".concat(e.rawName)}}function Pp(e){switch(qn(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return"><!--<![endif]-->";default:return">"}}function Bp(e,t){if(qn(!e.isSelfClosing),ny(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return"</".concat(e.rawName)}}function oa(e,t){if(ny(e,t))return"";switch(e.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function ay(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?dn(t,_n):dn(Qm(Ym(t)),tt):Xm(qt,h6(t)).parts}var O6={preprocess:ZF,print:function(e,t,r){let n=e.getValue();switch(n.type){case"front-matter":return ne(dn(n.raw,_n));case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(n),Xu.concat([Ut(iy(e,t,r)),tt]);case"element":case"ieConditionalComment":{if(C6(n,t))return ne([].concat(ai(n,t),Ut(Tp(e,t,r)),dn(sy(n,t),_n),kp(n,t),ui(n,t)));let s=n.children.length===1&&n.firstChild.type==="interpolation"&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,l=Symbol("element-attr-group-id");return ne([Ut(ne([Ut(Tp(e,t,r),{id:l}),n.children.length===0?n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?qt:"":ne([m6(n)?xp:"",(i=ne([s?Yu(gn,"",{groupId:l}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?qt:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?f6(gn):gn,iy(e,t,r)]),s?Yu(Qi(i),i,{groupId:l}):!Ap(n)&&!D6(n,t)||n.parent.type!=="root"||t.parser!=="vue"||t.vueIndentScriptAndStyle?Qi(i):i),(n.next?si(n.next):aa(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":s?Yu(gn,"",{groupId:l}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?qt:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp("\\n[\\t ]{".concat(t.tabWidth*d6(e,a=>a.parent&&a.parent.type!=="root"),"}$")).test(n.lastChild.value)?"":gn])])),kp(n,t)])}case"ieConditionalStartComment":case"ieConditionalEndComment":return ne([Qu(n),Zu(n)]);case"interpolation":return ne([Qu(n,t),ne(e.map(r,"children")),Zu(n,t)]);case"text":if(n.parent.type==="interpolation"){let s=/\n[^\S\n]*?$/,l=s.test(n.value),a=l?n.value.replace(s,""):n.value;return ne([ne(dn(a,_n)),l?tt:""])}return Jm(zm([].concat(ai(n,t),ay(n),ui(n,t))));case"docType":return ne([Ut(ne([Qu(n,t)," ",n.value.replace(/^html\b/i,"html").replace(/\s+/g," ")])),Zu(n,t)]);case"comment":return ne([ai(n,t),ne(dn(t.originalText.slice(wp(n),Fp(n)),_n)),ui(n,t)]);case"attribute":{if(n.value===null)return n.rawName;let s=ry(n.value),l=Km(s,"'")<Km(s,'"')?"'":'"';return ne([n.rawName,ne(["=",l,ne(dn(l==='"'?s.replace(/"/g,"""):s.replace(/'/g,"'"),_n)),l])])}default:throw new Error("Unexpected node type ".concat(n.type))}var i},insertPragma:A6,massageAstNode:kF,embed:function(e,t,r,n){let i=e.getValue();switch(i.type){case"element":if(Ap(i)||i.type==="interpolation")return;if(!i.isSelfClosing&&b6(i,n)){let s=ty(i,n);if(!s)return;let l=sy(i,n),a=/^\s*$/.test(l),c="";return a||(c=r(Ym(l),{parser:s},{stripTrailingHardline:!0}),a=c===""),ne([ai(i,n),Ut(Tp(e,n,t)),a?"":tt,c,a?"":tt,kp(i,n),ui(i,n)])}break;case"text":if(Ap(i.parent)){let s=ty(i.parent);if(s){let l=s==="markdown"?Qm(i.value.replace(/^[^\S\n]*?\n/,"")):i.value,a={parser:s};if(n.parser==="html"&&s==="babel"){let c="script",{attrMap:p}=i.parent;p&&(p.type==="module"||p.type==="text/babel"&&p["data-type"]==="module")&&(c="module"),a.__babelSourceType=c}return Xu.concat([ne([xp,ai(i,n),r(l,a,{stripTrailingHardline:!0}),ui(i,n)])])}}else if(i.parent.type==="interpolation")return ne([Qi(ne([qt,r(i.value,Object.assign({__isInHtmlInterpolation:!0},n.parser==="angular"?{parser:"__ng_interpolation",trailingComma:"none"}:n.parser==="vue"?{parser:"__vue_expression"}:{parser:"__js_expression"}),{stripTrailingHardline:!0})])),i.parent.next&&si(i.parent.next)?" ":qt]);break;case"attribute":{if(!i.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(n.originalText.slice(i.valueSpan.start.offset,i.valueSpan.end.offset)))return ne([i.rawName,"=",i.value]);if(n.parser==="lwc"&&/^{[\S\s]*}$/.test(n.originalText.slice(i.valueSpan.start.offset,i.valueSpan.end.offset)))return ne([i.rawName,"=",i.value]);let s=function(l,a,c){let p=E=>new RegExp(E.join("|")).test(l.fullName),u=()=>ry(l.value),d=!1,h=(E,A)=>{let P=E.type==="NGRoot"?E.node.type==="NGMicrosyntax"&&E.node.body.length===1&&E.node.body[0].type==="NGMicrosyntaxExpression"?E.node.body[0].expression:E.node:E.type==="JsExpressionRoot"?E.node:E;!P||P.type!=="ObjectExpression"&&P.type!=="ArrayExpression"&&(A.parser!=="__vue_expression"||P.type!=="TemplateLiteral"&&P.type!=="StringLiteral")||(d=!0)},b=E=>Ut(E),m=(E,A=!0)=>Ut(ne([Qi(ne([gn,E])),A?gn:""])),x=E=>d?b(E):m(E),F=(E,A)=>a(E,Object.assign({__onHtmlBindingRoot:h},A),{stripTrailingHardline:!0});if(l.fullName==="srcset"&&(l.parent.fullName==="img"||l.parent.fullName==="source"))return m(T6(u()));if(l.fullName==="class"&&!c.parentParser){let E=u();if(!E.includes("{{"))return k6(E)}if(l.fullName==="style"&&!c.parentParser){let E=u();if(!E.includes("{{"))return m(F(E,{parser:"css",__isHTMLStyleAttribute:!0}))}if(c.parser==="vue"){if(l.fullName==="v-for")return S6(u(),F);if(E6(l)||v6(l,c))return w6(u(),F);let E=["^:","^v-bind:"],A=["^v-"];if(p(["^@","^v-on:"])){let P=u();return x(F(P,{parser:F6(P)?"__js_expression":"__vue_event_binding"}))}if(p(E))return x(F(u(),{parser:"__vue_expression"}));if(p(A))return x(F(u(),{parser:"__js_expression"}))}if(c.parser==="angular"){let E=(U,z)=>F(U,Object.assign({},z,{trailingComma:"none"})),A=["^\\*"],P=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],L=["^i18n(-.+)?$"];if(p(["^\\(.+\\)$","^on-"]))return x(E(u(),{parser:"__ng_action"}));if(p(P))return x(E(u(),{parser:"__ng_binding"}));if(p(L)){let U=u().trim();return m(Jm(ay(l,U)),!U.includes("@@"))}if(p(A))return x(E(u(),{parser:"__ng_directive"}));let N=/{{([\S\s]+?)}}/g,R=u();if(N.test(R)){let U=[];return R.split(N).forEach((z,q)=>{if(q%2==0)U.push(ne(dn(z,_n)));else try{U.push(Ut(ne(["{{",Qi(ne([qt,E(z,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})])),qt,"}}"])))}catch(J){U.push("{{",ne(dn(z,_n)),"}}")}}),Ut(ne(U))}}return null}(i,(l,a)=>r(l,Object.assign({__isInHtmlAttribute:!0},a),{stripTrailingHardline:!0}),n);if(s)return ne([i.rawName,'="',Ut(c6(s,l=>typeof l=="string"?l.replace(/"/g,"""):l)),'"']);break}case"front-matter":return p6(i,r)}}};let uy="HTML";var I6={htmlWhitespaceSensitivity:{since:"1.15.0",category:uy,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},vueIndentScriptAndStyle:{since:"1.19.0",category:uy,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Np={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".htm",".html.hl",".inc",".st",".xht",".xhtml"],languageId:146},L6={name:"Vue",type:"markup",color:"#2c3e50",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",languageId:391},R6={languages:[ze(Np,()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]})),ze(Np,e=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:e.extensions.concat([".mjml"])})),ze(Np,()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]})),ze(L6,()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}))],printers:{html:O6},options:I6,parsers:{get html(){return{}.parsers.html},get vue(){return{}.parsers.vue},get angular(){return{}.parsers.angular},get lwc(){return{}.parsers.lwc}}},M6={isPragma:function(e){return/^\s*@(prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\S\n]*@(prettier|format)\s*?(\n|$)/.test(e)},insertPragma:function(e){return`# @format
|
|
189
|
+
`+e.replace(/^\s*\n/,"")}},r6={locStart:function(e){return e.sourceSpan.start.offset},locEnd:function(e){return e.sourceSpan.end.offset}};let{builders:{concat:i6,group:s6}}=ae;var a6={isVueEventBindingExpression:function(e){let t=e.trim();return/^([\w$]+|\([^)]*?\))\s*=>|^function\s*\(/.test(t)||/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/.test(t)},printVueFor:function(e,t){let{left:r,operator:n,right:i}=function(s){let l=/([^]*?)\s+(in|of)\s+([^]*)/,a=/,([^,\]}]*)(?:,([^,\]}]*))?$/,c=/^\(|\)$/g,p=s.match(l);if(!p)return;let u={};u.for=p[3].trim();let d=p[1].trim().replace(c,""),h=d.match(a);return h?(u.alias=d.replace(a,""),u.iterator1=h[1].trim(),h[2]&&(u.iterator2=h[2].trim())):u.alias=d,{left:"".concat([u.alias,u.iterator1,u.iterator2].filter(Boolean).join(",")),operator:p[2],right:u.for}}(e);return i6([s6(t("function _(".concat(r,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",n," ",t(i,{parser:"__js_expression"},{stripTrailingHardline:!0})])},printVueBindings:function(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueBindings:!0},{stripTrailingHardline:!0})}},u6=re(function(e){(function(t,r){e.exports?e.exports=r():t.parseSrcset=r()})(ut,function(){return function(t,r){var n=r&&r.logger||console;function i(R){return R===" "||R===" "||R===`
|
|
190
|
+
`||R==="\f"||R==="\r"}function s(R){var U,J=R.exec(t.substring(A));if(J)return U=J[0],A+=U.length,U}for(var l,a,c,p,u,d=t.length,h=/^[ \t\n\r\u000c]+/,b=/^[, \t\n\r\u000c]+/,m=/^[^ \t\n\r\u000c]+/,x=/[,]+$/,F=/^\d+$/,E=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,A=0,P=[];;){if(s(b),A>=d)return P;l=s(m),a=[],l.slice(-1)===","?(l=l.replace(x,""),N()):L()}function L(){for(s(h),c="",p="in descriptor";;){if(u=t.charAt(A),p==="in descriptor")if(i(u))c&&(a.push(c),c="",p="after descriptor");else{if(u===",")return A+=1,c&&a.push(c),void N();if(u==="(")c+=u,p="in parens";else{if(u==="")return c&&a.push(c),void N();c+=u}}else if(p==="in parens")if(u===")")c+=u,p="in descriptor";else{if(u==="")return a.push(c),void N();c+=u}else if(p==="after descriptor"&&!i(u)){if(u==="")return void N();p="in descriptor",A-=1}A+=1}}function N(){var R,U,J,q,X,ne,he,Ae,xe,je=!1,Ve={};for(q=0;q<a.length;q++)ne=(X=a[q])[X.length-1],he=X.substring(0,X.length-1),Ae=parseInt(he,10),xe=parseFloat(he),F.test(he)&&ne==="w"?((R||U)&&(je=!0),Ae===0?je=!0:R=Ae):E.test(he)&&ne==="x"?((R||U||J)&&(je=!0),xe<0?je=!0:U=xe):F.test(he)&&ne==="h"?((J||U)&&(je=!0),Ae===0?je=!0:J=Ae):je=!0;je?n&&n.error&&n.error("Invalid srcset descriptor found in '"+t+"' at '"+X+"'."):(Ve.url=l,R&&(Ve.w=R),U&&(Ve.d=U),J&&(Ve.h=J),P.push(Ve))}}})});let{builders:{concat:zm,ifBreak:o6,join:l6,line:c6}}=ae;var p6={printImgSrcset:function(e){let t=u6(e,{logger:{error(h){throw new Error(h)}}}),r=t.some(({w:h})=>h),n=t.some(({h})=>h);if(r+n+t.some(({d:h})=>h)>1)throw new Error("Mixed descriptor in srcset is not supported");let i=r?"w":n?"h":"d",s=r?"w":n?"h":"x",l=h=>Math.max(...h),a=t.map(h=>h.url),c=l(a.map(h=>h.length)),p=t.map(h=>h[i]).map(h=>h?h.toString():""),u=p.map(h=>{let b=h.indexOf(".");return b===-1?h.length:b}),d=l(u);return l6(zm([",",c6]),a.map((h,b)=>{let m=[h],x=p[b];if(x){let F=c-h.length+1,E=d-u[b],A=" ".repeat(F+E);m.push(o6(A," "),x+s)}return zm(m)}))},printClassNames:function(e){return e.trim().split(/\s+/).join(" ")}};let{builders:Xu,utils:{mapDoc:f6,normalizeParts:Jm}}=ae,{replaceEndOfLineWith:dn}=ve,{print:h6}=Zs,{breakParent:Ap,dedentToRoot:d6,fill:Xm,group:qt,hardline:nt,ifBreak:Yu,indent:Qi,join:Ym,line:$t,literalline:_n,softline:gn}=Xu,{htmlTrimPreserveIndentation:Km,splitByHtmlWhitespace:g6,countChars:Qm,countParents:m6,dedentString:Zm,forceBreakChildren:y6,forceBreakContent:D6,forceNextEmptyLine:Ku,getLastDescendant:ey,getPrettierIgnoreAttributeCommentData:b6,hasPrettierIgnore:ty,inferScriptParser:ny,isVueCustomBlock:E6,isVueNonHtmlBlock:v6,isVueSlotAttribute:C6,isVueSfcBindingsAttribute:x6,isScriptLikeTag:Sp,isTextLikeNode:tn,preferHardlineAsLeadingSpaces:wp,shouldNotPrintClosingTag:ry,shouldPreserveContent:A6,unescapeQuoteEntities:iy,isPreLikeNode:S6}=Hm,{insertPragma:w6}=n6,{locStart:Fp,locEnd:Tp}=r6,{printVueFor:F6,printVueBindings:T6,isVueEventBindingExpression:k6}=a6,{printImgSrcset:_6,printClassNames:P6}=p6;function ie(e){let t=Jm(e);return t.length===0?"":t.length===1?t[0]:Xu.concat(t)}function sy(e,t,r){let n=e.getValue();if(y6(n))return ie([Ap,ie(e.map(a=>{let c=a.getValue(),p=c.prev?l(c.prev,c):"";return ie([p?ie([p,Ku(c.prev)?nt:""]):"",s(a)])},"children"))]);let i=n.children.map(()=>Symbol(""));return ie(e.map((a,c)=>{let p=a.getValue();if(tn(p)){if(p.prev&&tn(p.prev)){let F=l(p.prev,p);if(F)return Ku(p.prev)?ie([nt,nt,s(a)]):ie([F,s(a)])}return s(a)}let u=[],d=[],h=[],b=[],m=p.prev?l(p.prev,p):"",x=p.next?l(p,p.next):"";return m&&(Ku(p.prev)?u.push(nt,nt):m===nt?u.push(nt):tn(p.prev)?d.push(m):d.push(Yu("",gn,{groupId:i[c-1]}))),x&&(Ku(p)?tn(p.next)&&b.push(nt,nt):x===nt?tn(p.next)&&b.push(nt):h.push(x)),ie([].concat(u,qt(ie([ie(d),qt(ie([s(a),ie(h)]),{id:i[c]})])),b))},"children"));function s(a){let c=a.getValue();return ty(c)?ie([].concat(ai(c,t),dn(t.originalText.slice(Fp(c)+(c.prev&&eo(c.prev)?Pp(c).length:0),Tp(c)-(c.next&&si(c.next)?oa(c,t).length:0)),_n),ui(c,t))):r(a)}function l(a,c){return tn(a)&&tn(c)?a.isTrailingSpaceSensitive?a.hasTrailingSpaces?wp(c)?nt:$t:"":wp(c)?nt:gn:eo(a)&&(ty(c)||c.firstChild||c.isSelfClosing||c.type==="element"&&c.attrs.length!==0)||a.type==="element"&&a.isSelfClosing&&si(c)?"":!c.isLeadingSpaceSensitive||wp(c)||si(c)&&a.lastChild&&ua(a.lastChild)&&a.lastChild.lastChild&&ua(a.lastChild.lastChild)?nt:c.hasLeadingSpaces?$t:gn}}function ay(e,t){let r=e.startSourceSpan.end.offset;e.firstChild&&to(e.firstChild)&&(r-=Bp(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&ua(e.lastChild)?n+=Np(e,t).length:aa(e)&&(n-=oa(e.lastChild,t).length),t.originalText.slice(r,n)}function B6(e,t,r){let n=e.getValue();if(!n.attrs||n.attrs.length===0)return n.isSelfClosing?" ":"";let i=n.prev&&n.prev.type==="comment"&&b6(n.prev.value),s=typeof i=="boolean"?()=>i:Array.isArray(i)?p=>i.includes(p.rawName):()=>!1,l=e.map(p=>{let u=p.getValue();return s(u)?ie(dn(t.originalText.slice(Fp(u),Tp(u)),_n)):r(p)},"attrs"),a=n.type==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,c=[Qi(ie([a?" ":$t,Ym($t,l)]))];return n.firstChild&&to(n.firstChild)||n.isSelfClosing&&aa(n.parent)||a?c.push(n.isSelfClosing?" ":""):c.push(n.isSelfClosing?$t:gn),ie(c)}function kp(e,t,r){let n=e.getValue();return ie([Qu(n,t),B6(e,t,r),n.isSelfClosing?"":N6(n)])}function Qu(e,t){return e.prev&&eo(e.prev)?"":ie([ai(e,t),Pp(e)])}function N6(e){return e.firstChild&&to(e.firstChild)?"":Bp(e)}function _p(e,t){return ie([e.isSelfClosing?"":O6(e,t),Zu(e,t)])}function O6(e,t){return e.lastChild&&ua(e.lastChild)?"":ie([I6(e,t),Np(e,t)])}function Zu(e,t){return(e.next?si(e.next):aa(e.parent))?"":ie([oa(e,t),ui(e,t)])}function eo(e){return e.next&&!tn(e.next)&&tn(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function to(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function si(e){return e.prev&&e.prev.type!=="docType"&&!tn(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function aa(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!tn(ey(e.lastChild))&&!S6(e)}function ua(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&tn(ey(e))}function ai(e,t){return to(e)?Bp(e.parent):si(e)?oa(e.prev,t):""}function I6(e,t){return aa(e)?oa(e.lastChild,t):""}function ui(e,t){return ua(e)?Np(e.parent,t):eo(e)?Pp(e.next):""}function Pp(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return"<!--[if ".concat(e.condition);case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":return"<!DOCTYPE";case"element":if(e.condition)return"<!--[if ".concat(e.condition,"]><!--><").concat(e.rawName);default:return"<".concat(e.rawName)}}function Bp(e){switch(qn(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return"><!--<![endif]-->";default:return">"}}function Np(e,t){if(qn(!e.isSelfClosing),ry(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return"</".concat(e.rawName)}}function oa(e,t){if(ry(e,t))return"";switch(e.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function uy(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?dn(t,_n):dn(Zm(Km(t)),nt):Ym($t,g6(t)).parts}var L6={preprocess:t6,print:function(e,t,r){let n=e.getValue();switch(n.type){case"front-matter":return ie(dn(n.raw,_n));case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(n),Xu.concat([qt(sy(e,t,r)),nt]);case"element":case"ieConditionalComment":{if(A6(n,t))return ie([].concat(ai(n,t),qt(kp(e,t,r)),dn(ay(n,t),_n),_p(n,t),ui(n,t)));let s=n.children.length===1&&n.firstChild.type==="interpolation"&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,l=Symbol("element-attr-group-id");return ie([qt(ie([qt(kp(e,t,r),{id:l}),n.children.length===0?n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?$t:"":ie([D6(n)?Ap:"",(i=ie([s?Yu(gn,"",{groupId:l}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?$t:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?d6(gn):gn,sy(e,t,r)]),s?Yu(Qi(i),i,{groupId:l}):!Sp(n)&&!E6(n,t)||n.parent.type!=="root"||t.parser!=="vue"||t.vueIndentScriptAndStyle?Qi(i):i),(n.next?si(n.next):aa(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":s?Yu(gn,"",{groupId:l}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?$t:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp("\\n[\\t ]{".concat(t.tabWidth*m6(e,a=>a.parent&&a.parent.type!=="root"),"}$")).test(n.lastChild.value)?"":gn])])),_p(n,t)])}case"ieConditionalStartComment":case"ieConditionalEndComment":return ie([Qu(n),Zu(n)]);case"interpolation":return ie([Qu(n,t),ie(e.map(r,"children")),Zu(n,t)]);case"text":if(n.parent.type==="interpolation"){let s=/\n[^\S\n]*?$/,l=s.test(n.value),a=l?n.value.replace(s,""):n.value;return ie([ie(dn(a,_n)),l?nt:""])}return Xm(Jm([].concat(ai(n,t),uy(n),ui(n,t))));case"docType":return ie([qt(ie([Qu(n,t)," ",n.value.replace(/^html\b/i,"html").replace(/\s+/g," ")])),Zu(n,t)]);case"comment":return ie([ai(n,t),ie(dn(t.originalText.slice(Fp(n),Tp(n)),_n)),ui(n,t)]);case"attribute":{if(n.value===null)return n.rawName;let s=iy(n.value),l=Qm(s,"'")<Qm(s,'"')?"'":'"';return ie([n.rawName,ie(["=",l,ie(dn(l==='"'?s.replace(/"/g,"""):s.replace(/'/g,"'"),_n)),l])])}default:throw new Error("Unexpected node type ".concat(n.type))}var i},insertPragma:w6,massageAstNode:PF,embed:function(e,t,r,n){let i=e.getValue();switch(i.type){case"element":if(Sp(i)||i.type==="interpolation")return;if(!i.isSelfClosing&&v6(i,n)){let s=ny(i,n);if(!s)return;let l=ay(i,n),a=/^\s*$/.test(l),c="";return a||(c=r(Km(l),{parser:s},{stripTrailingHardline:!0}),a=c===""),ie([ai(i,n),qt(kp(e,n,t)),a?"":nt,c,a?"":nt,_p(i,n),ui(i,n)])}break;case"text":if(Sp(i.parent)){let s=ny(i.parent);if(s){let l=s==="markdown"?Zm(i.value.replace(/^[^\S\n]*?\n/,"")):i.value,a={parser:s};if(n.parser==="html"&&s==="babel"){let c="script",{attrMap:p}=i.parent;p&&(p.type==="module"||p.type==="text/babel"&&p["data-type"]==="module")&&(c="module"),a.__babelSourceType=c}return Xu.concat([ie([Ap,ai(i,n),r(l,a,{stripTrailingHardline:!0}),ui(i,n)])])}}else if(i.parent.type==="interpolation")return ie([Qi(ie([$t,r(i.value,Object.assign({__isInHtmlInterpolation:!0},n.parser==="angular"?{parser:"__ng_interpolation",trailingComma:"none"}:n.parser==="vue"?{parser:"__vue_expression"}:{parser:"__js_expression"}),{stripTrailingHardline:!0})])),i.parent.next&&si(i.parent.next)?" ":$t]);break;case"attribute":{if(!i.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(n.originalText.slice(i.valueSpan.start.offset,i.valueSpan.end.offset)))return ie([i.rawName,"=",i.value]);if(n.parser==="lwc"&&/^{[\S\s]*}$/.test(n.originalText.slice(i.valueSpan.start.offset,i.valueSpan.end.offset)))return ie([i.rawName,"=",i.value]);let s=function(l,a,c){let p=E=>new RegExp(E.join("|")).test(l.fullName),u=()=>iy(l.value),d=!1,h=(E,A)=>{let P=E.type==="NGRoot"?E.node.type==="NGMicrosyntax"&&E.node.body.length===1&&E.node.body[0].type==="NGMicrosyntaxExpression"?E.node.body[0].expression:E.node:E.type==="JsExpressionRoot"?E.node:E;!P||P.type!=="ObjectExpression"&&P.type!=="ArrayExpression"&&(A.parser!=="__vue_expression"||P.type!=="TemplateLiteral"&&P.type!=="StringLiteral")||(d=!0)},b=E=>qt(E),m=(E,A=!0)=>qt(ie([Qi(ie([gn,E])),A?gn:""])),x=E=>d?b(E):m(E),F=(E,A)=>a(E,Object.assign({__onHtmlBindingRoot:h},A),{stripTrailingHardline:!0});if(l.fullName==="srcset"&&(l.parent.fullName==="img"||l.parent.fullName==="source"))return m(_6(u()));if(l.fullName==="class"&&!c.parentParser){let E=u();if(!E.includes("{{"))return P6(E)}if(l.fullName==="style"&&!c.parentParser){let E=u();if(!E.includes("{{"))return m(F(E,{parser:"css",__isHTMLStyleAttribute:!0}))}if(c.parser==="vue"){if(l.fullName==="v-for")return F6(u(),F);if(C6(l)||x6(l,c))return T6(u(),F);let E=["^:","^v-bind:"],A=["^v-"];if(p(["^@","^v-on:"])){let P=u();return x(F(P,{parser:k6(P)?"__js_expression":"__vue_event_binding"}))}if(p(E))return x(F(u(),{parser:"__vue_expression"}));if(p(A))return x(F(u(),{parser:"__js_expression"}))}if(c.parser==="angular"){let E=(U,J)=>F(U,Object.assign({},J,{trailingComma:"none"})),A=["^\\*"],P=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],L=["^i18n(-.+)?$"];if(p(["^\\(.+\\)$","^on-"]))return x(E(u(),{parser:"__ng_action"}));if(p(P))return x(E(u(),{parser:"__ng_binding"}));if(p(L)){let U=u().trim();return m(Xm(uy(l,U)),!U.includes("@@"))}if(p(A))return x(E(u(),{parser:"__ng_directive"}));let N=/{{([\S\s]+?)}}/g,R=u();if(N.test(R)){let U=[];return R.split(N).forEach((J,q)=>{if(q%2==0)U.push(ie(dn(J,_n)));else try{U.push(qt(ie(["{{",Qi(ie([$t,E(J,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})])),$t,"}}"])))}catch(X){U.push("{{",ie(dn(J,_n)),"}}")}}),qt(ie(U))}}return null}(i,(l,a)=>r(l,Object.assign({__isInHtmlAttribute:!0},a),{stripTrailingHardline:!0}),n);if(s)return ie([i.rawName,'="',qt(f6(s,l=>typeof l=="string"?l.replace(/"/g,"""):l)),'"']);break}case"front-matter":return h6(i,r)}}};let oy="HTML";var R6={htmlWhitespaceSensitivity:{since:"1.15.0",category:oy,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},vueIndentScriptAndStyle:{since:"1.19.0",category:oy,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Op={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".htm",".html.hl",".inc",".st",".xht",".xhtml"],languageId:146},M6={name:"Vue",type:"markup",color:"#2c3e50",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",languageId:391},j6={languages:[ze(Op,()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]})),ze(Op,e=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:e.extensions.concat([".mjml"])})),ze(Op,()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]})),ze(M6,()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}))],printers:{html:L6},options:R6,parsers:{get html(){return{}.parsers.html},get vue(){return{}.parsers.vue},get angular(){return{}.parsers.angular},get lwc(){return{}.parsers.lwc}}},V6={isPragma:function(e){return/^\s*@(prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\S\n]*@(prettier|format)\s*?(\n|$)/.test(e)},insertPragma:function(e){return`# @format
|
|
191
191
|
|
|
192
|
-
`.concat(e)}},
|
|
192
|
+
`.concat(e)}},U6={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}};let{getLast:Xn}=ve;function ly(e,t){return e&&typeof e.type=="string"&&(!t||t.includes(e.type))}function cy(e){return e.value.trim()==="prettier-ignore"}function Ip(e){return e&&e.leadingComments&&e.leadingComments.length!==0}function py(e){return e&&e.middleComments&&e.middleComments.length!==0}function fy(e){return e&&e.indicatorComment}function hy(e){return e&&e.trailingComment}function Lp(e){return e&&e.endComments&&e.endComments.length!==0}function dy(e){let t=[],r;for(let n of e.split(/( +)/g))n!==" "?r===" "?t.push(n):t.push((t.pop()||"")+n):r===void 0&&t.unshift(""),r=n;return r===" "&&t.push((t.pop()||"")+" "),t[0]===""&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}var q6={getLast:Xn,getAncestorCount:function(e,t){let r=0,n=e.stack.length-1;for(let i=0;i<n;i++){let s=e.stack[i];ly(s)&&t(s)&&r++}return r},isNode:ly,isEmptyNode:function(e){return!(e.children&&e.children.length!==0||function(t){return Ip(t)||py(t)||fy(t)||hy(t)||Lp(t)}(e))},mapNode:function e(t,r,n){return r("children"in t?Object.assign({},t,{children:t.children.map(i=>e(i,r,t))}):t,n)},defineShortcut:function(e,t,r){Object.defineProperty(e,t,{get:r,enumerable:!1})},isNextLineEmpty:function(e,t){let r=0,n=t.length;for(let i=e.position.end.offset-1;i<n;i++){let s=t[i];if(s===`
|
|
193
193
|
`&&r++,r===1&&/\S/.test(s))return!1;if(r===2)return!0}return!1},isLastDescendantNode:function(e){switch(e.getValue().type){case"tag":case"anchor":case"comment":return!1}let t=e.stack.length;for(let r=1;r<t;r++){let n=e.stack[r],i=e.stack[r-1];if(Array.isArray(i)&&typeof n=="number"&&n!==i.length-1)return!1}return!0},getBlockValueLineContents:function(e,{parentIndent:t,isLastDescendant:r,options:n}){let i=e.position.start.line===e.position.end.line?"":n.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*?\n([\S\s]*)$/)[1],s=e.indent===null?(l=i.match(/^( *)\S/m))?l[1].length:1/0:e.indent-1+t;var l;let a=i.split(`
|
|
194
|
-
`).map(p=>p.slice(s));return n.proseWrap==="preserve"||e.type==="blockLiteral"?c(a.map(p=>p.length===0?[]:[p])):c(a.map(p=>p.length===0?[]:
|
|
195
|
-
`).map((i,s,l)=>s===0&&s===l.length-1?i:s!==0&&s!==l.length-1?i.trim():s===0?i.trimEnd():i.trimStart());return r.proseWrap==="preserve"?n.map(i=>i.length===0?[]:[i]):n.map(i=>i.length===0?[]:
|
|
196
|
-
`);case"always":return!/[\n ]/.test(e.value);default:return!1}}function
|
|
194
|
+
`).map(p=>p.slice(s));return n.proseWrap==="preserve"||e.type==="blockLiteral"?c(a.map(p=>p.length===0?[]:[p])):c(a.map(p=>p.length===0?[]:dy(p)).reduce((p,u,d)=>d===0||a[d-1].length===0||u.length===0||/^\s/.test(u[0])||/^\s|\s$/.test(Xn(p))?p.concat([u]):p.concat([p.pop().concat(u)]),[]).map(p=>p.reduce((u,d)=>u.length!==0&&/\s$/.test(Xn(u))?u.concat(u.pop()+" "+d):u.concat(d),[])).map(p=>n.proseWrap==="never"?[p.join(" ")]:p));function c(p){if(e.chomping==="keep")return Xn(p).length===0?p.slice(0,-1):p;let u=0;for(let d=p.length-1;d>=0&&p[d].length===0;d--)u++;return u===0?p:u>=2&&!r?p.slice(0,-(u-1)):p.slice(0,-u)}},getFlowScalarLineContents:function(e,t,r){let n=t.split(`
|
|
195
|
+
`).map((i,s,l)=>s===0&&s===l.length-1?i:s!==0&&s!==l.length-1?i.trim():s===0?i.trimEnd():i.trimStart());return r.proseWrap==="preserve"?n.map(i=>i.length===0?[]:[i]):n.map(i=>i.length===0?[]:dy(i)).reduce((i,s,l)=>l===0||n[l-1].length===0||s.length===0||e==="quoteDouble"&&Xn(Xn(i)).endsWith("\\")?i.concat([s]):i.concat([i.pop().concat(s)]),[]).map(i=>r.proseWrap==="never"?[i.join(" ")]:i)},getLastDescendantNode:function e(t){return"children"in t&&t.children.length!==0?e(Xn(t.children)):t},hasPrettierIgnore:function(e){let t=e.getValue();if(t.type==="documentBody"){let r=e.getParentNode();return Lp(r.head)&&cy(Xn(r.head.endComments))}return Ip(t)&&cy(Xn(t.leadingComments))},hasLeadingComments:Ip,hasMiddleComments:py,hasIndicatorComment:fy,hasTrailingComment:hy,hasEndComments:Lp};let no=ae.builders,{conditionalGroup:$6,breakParent:W6,concat:fe,dedent:G6,dedentToRoot:Rp,fill:gy,group:Mp,hardline:Se,ifBreak:jp,join:mt,line:la,lineSuffix:H6,literalline:Vp,markAsRoot:z6,softline:my}=no,{replaceEndOfLineWith:J6,isPreviousLineEmpty:X6}=ve,{insertPragma:Y6,isPragma:K6}=V6,{locStart:Up}=U6,{getAncestorCount:Q6,getBlockValueLineContents:Z6,getFlowScalarLineContents:e8,getLast:t8,getLastDescendantNode:yy,hasLeadingComments:ca,hasMiddleComments:ro,hasIndicatorComment:n8,hasTrailingComment:Yn,hasEndComments:Sr,hasPrettierIgnore:r8,isLastDescendantNode:Dy,isNextLineEmpty:i8,isNode:Pn,isEmptyNode:io,defineShortcut:pa,mapNode:s8}=q6;function a8(e){switch(e.type){case"document":pa(e,"head",()=>e.children[0]),pa(e,"body",()=>e.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":pa(e,"content",()=>e.children[0]);break;case"mappingItem":case"flowMappingItem":pa(e,"key",()=>e.children[0]),pa(e,"value",()=>e.children[1])}return e}function u8(e,t,r,n,i){switch(e.type){case"root":return fe([mt(Se,r.map((c,p)=>{let u=e.children[p],d=e.children[p+1];return fe([i(c),by(u,d)?fe([Se,"...",Yn(u)?fe([" ",r.call(i,"trailingComment")]):""]):!d||Yn(d.head)?"":fe([Se,"---"])])},"children")),e.children.length===0||(l=yy(e),Pn(l,["blockLiteral","blockFolded"])&&l.chomping==="keep")?"":Se]);case"document":{let c=t.children[r.getName()+1];return mt(Se,[l8(e,c,t,n)==="head"?mt(Se,[e.head.children.length===0&&e.head.endComments.length===0?"":r.call(i,"head"),fe(["---",Yn(e.head)?fe([" ",r.call(i,"head","trailingComment")]):""])].filter(Boolean)):"",o8(e)?r.call(i,"body"):""].filter(Boolean))}case"documentHead":return mt(Se,[].concat(r.map(i,"children"),r.map(i,"endComments")));case"documentBody":{let c=mt(Se,r.map(i,"children")).parts,p=mt(Se,r.map(i,"endComments")).parts,u=c.length===0||p.length===0?"":(d=>Pn(d,["blockFolded","blockLiteral"])?d.chomping==="keep"?"":fe([Se,Se]):Se)(yy(e));return fe([].concat(c,u,p))}case"directive":return fe(["%",mt(" ",[e.name].concat(e.parameters))]);case"comment":return fe(["#",e.value]);case"alias":return fe(["*",e.value]);case"tag":return n.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return fe(["&",e.value]);case"plain":return fa(e.type,n.originalText.slice(e.position.start.offset,e.position.end.offset),n);case"quoteDouble":case"quoteSingle":{let c="'",p='"',u=n.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if(e.type==="quoteSingle"&&u.includes("\\")||e.type==="quoteDouble"&&/\\[^"]/.test(u)){let h=e.type==="quoteDouble"?p:c;return fe([h,fa(e.type,u,n),h])}if(u.includes(p))return fe([c,fa(e.type,e.type==="quoteDouble"?u.replace(/\\"/g,p).replace(/'/g,c.repeat(2)):u,n),c]);if(u.includes(c))return fe([p,fa(e.type,e.type==="quoteSingle"?u.replace(/''/g,c):u,n),p]);let d=n.singleQuote?c:p;return fe([d,fa(e.type,u,n),d])}case"blockFolded":case"blockLiteral":{let c=Q6(r,u=>Pn(u,["sequence","mapping"])),p=Dy(r);return fe([e.type==="blockFolded"?">":"|",e.indent===null?"":e.indent.toString(),e.chomping==="clip"?"":e.chomping==="keep"?"+":"-",n8(e)?fe([" ",r.call(i,"indicatorComment")]):"",(e.indent===null?G6:Rp)(Kn(e.indent===null?n.tabWidth:e.indent-1+c,fe(Z6(e,{parentIndent:c,isLastDescendant:p,options:n}).reduce((u,d,h,b)=>u.concat(h===0?Se:"",gy(mt(la,d).parts),h!==b.length-1?d.length===0?Se:z6(Vp):e.chomping==="keep"&&p?d.length===0?Rp(Se):Rp(Vp):""),[]))))])}case"sequence":return mt(Se,r.map(i,"children"));case"sequenceItem":return fe(["- ",Kn(2,e.content?r.call(i,"content"):"")]);case"mappingKey":case"mappingValue":return e.content?r.call(i,"content"):"";case"mapping":return mt(Se,r.map(i,"children"));case"mappingItem":case"flowMappingItem":{let c=io(e.key),p=io(e.value);if(c&&p)return fe([": "]);let u=r.call(i,"key"),d=r.call(i,"value");if(p)return e.type==="flowMappingItem"&&t.type==="flowMapping"?u:e.type!=="mappingItem"||!Ey(e.key.content,n)||Yn(e.key.content)||t.tag&&t.tag.value==="tag:yaml.org,2002:set"?fe(["? ",Kn(2,u)]):fe([u,$p(e)?" ":"",":"]);if(c)return fe([": ",Kn(2,d)]);let h=Symbol("mappingKey");return ca(e.value)||!qp(e.key.content)?fe(["? ",Kn(2,u),Se,mt("",r.map(i,"value","leadingComments").map(b=>fe([b,Se]))),": ",Kn(2,d)]):!function(b){if(!b)return!0;switch(b.type){case"plain":case"quoteDouble":case"quoteSingle":return b.position.start.line===b.position.end.line;case"alias":return!0;default:return!1}}(e.key.content)||ca(e.key.content)||ro(e.key.content)||Yn(e.key.content)||Sr(e.key)||ca(e.value.content)||ro(e.value.content)||Sr(e.value)||!Ey(e.value.content,n)?$6([fe([Mp(fe([jp("? "),Mp(Kn(2,u),{id:h})])),jp(fe([Se,": ",Kn(2,d)]),a(fe([$p(e)?" ":"",":",ca(e.value.content)||Sr(e.value)&&e.value.content&&!Pn(e.value.content,["mapping","sequence"])||t.type==="mapping"&&Yn(e.key.content)&&qp(e.value.content)||Pn(e.value.content,["mapping","sequence"])&&e.value.content.tag===null&&e.value.content.anchor===null?Se:e.value.content?la:"",d])),{groupId:h})])]):fe([u,$p(e)?" ":"",": ",d])}case"flowMapping":case"flowSequence":{let c=e.type==="flowMapping"?"{":"[",p=e.type==="flowMapping"?"}":"]",u=e.type==="flowMapping"&&e.children.length!==0&&n.bracketSpacing?la:my,d=e.children.length!==0&&(s=t8(e.children)).type==="flowMappingItem"&&io(s.key)&&io(s.value),h=n.trailingComma==="none"?"":jp(",","");return fe([c,a(fe([u,fe(r.map((b,m)=>fe([i(b),m===e.children.length-1?"":fe([",",la,e.children[m].position.start.line!==e.children[m+1].position.start.line?Cy(b,n.originalText):""])]),"children")),h,Sr(e)?fe([Se,mt(Se,r.map(i,"endComments"))]):""])),d?"":u,p])}case"flowSequenceItem":return r.call(i,"content");default:throw new Error("Unexpected node type ".concat(e.type))}var s,l;function a(c){return no.align(" ".repeat(n.tabWidth),c)}}function Kn(e,t){return typeof e=="number"&&e>0?no.align(" ".repeat(e),t):no.align(e,t)}function qp(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}function o8(e){return e.body.children.length!==0||Sr(e.body)}function by(e,t){return Yn(e)||t&&(t.head.children.length!==0||Sr(t.head))}function l8(e,t,r,n){return r.children[0]===e&&/---(\s|$)/.test(n.originalText.slice(Up(e),Up(e)+4))||e.head.children.length!==0||Sr(e.head)||Yn(e.head)?"head":!by(e,t)&&!!t&&"root"}function Ey(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(t.proseWrap==="preserve")return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes(`
|
|
196
|
+
`);case"always":return!/[\n ]/.test(e.value);default:return!1}}function $p(e){return e.key.content&&e.key.content.type==="alias"}function vy(e){return Sr(e)&&!Pn(e,["documentHead","documentBody","flowMapping","flowSequence"])}let Wp=new WeakMap;function Cy(e,t){let r=e.getValue(),n=e.stack[0],i;return Wp.has(n)?i=Wp.get(n):(i=new Set,Wp.set(n,i)),i.has(r.position.end.line)||(i.add(r.position.end.line),!i8(r,t)||vy(e.getParentNode()))?"":my}function fa(e,t,r){let n=e8(e,t,r);return mt(Se,n.map(i=>gy(mt(la,i).parts)))}var c8={preprocess:function(e){return s8(e,a8)},print:function(e,t,r){let n=e.getValue(),i=e.getParentNode(),s=n.tag?e.call(r,"tag"):"",l=n.anchor?e.call(r,"anchor"):"",a=Pn(n,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!Dy(e)?Cy(e,t.originalText):"";return fe([n.type!=="mappingValue"&&ca(n)?fe([mt(Se,e.map(r,"leadingComments")),Se]):"",s,s&&l?" ":"",l,s||l?Pn(n,["sequence","mapping"])&&!ro(n)?Se:" ":"",ro(n)?fe([n.middleComments.length===1?"":Se,mt(Se,e.map(r,"middleComments")),Se]):"",r8(e)?fe(J6(t.originalText.slice(n.position.start.offset,n.position.end.offset).trimEnd(),Vp)):Mp(u8(n,i,e,t,r)),Yn(n)&&!Pn(n,["document","documentHead"])?H6(fe([n.type!=="mappingValue"||n.content?" ":"",i.type==="mappingKey"&&e.getParentNode(2).type==="mapping"&&qp(n)?"":W6,e.call(r,"trailingComment")])):"",vy(n)?Kn(n.type==="sequenceItem"?2:0,fe([Se,mt(Se,e.map(c=>fe([X6(t.originalText,c.getValue(),Up)?Se:"",r(c)]),"endComments"))])):"",a])},massageAstNode:function(e,t){if(Pn(t))switch(delete t.position,t.type){case"comment":if(K6(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:Y6},p8={bracketSpacing:Jn.bracketSpacing,singleQuote:Jn.singleQuote,proseWrap:Jn.proseWrap},f8=[mS,dw,Iw,qw,TF,j6,{languages:[ze({name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407},e=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:e.filenames.filter(t=>t!=="yarn.lock")}))],printers:{yaml:c8},options:p8,parsers:{get yaml(){return{}.parsers.yaml}}}];let{version:h8}=D,{getSupportInfo:d8}=Be,g8=f8.map(e=>f(e,["parsers"]));function oi(e,t=1){return(...r)=>{let n=r[t]||{},i=n.plugins||[];return r[t]=Object.assign({},n,{plugins:[...g8,...Array.isArray(i)?i:Object.values(i)]}),e(...r)}}let Gp=oi(Oi.formatWithCursor);return{formatWithCursor:Gp,format:(e,t)=>Gp(e,t).formatted,check(e,t){let{formatted:r}=Gp(e,t);return r===e},doc:ae,getSupportInfo:oi(d8,0),version:h8,util:av,__debug:{parse:oi(Oi.parse),formatAST:oi(Oi.formatAST),formatDoc:oi(Oi.formatDoc),printToDoc:oi(Oi.printToDoc),printDocToString:oi(Oi.printDocToString)}}})});var RD=ge((Zk,LD)=>{LD.exports=function(g){return g&&typeof g=="object"&&typeof g.copy=="function"&&typeof g.fill=="function"&&typeof g.readUInt8=="function"}});var MD=ge((e9,hf)=>{typeof Object.create=="function"?hf.exports=function(g,D){g.super_=D,g.prototype=Object.create(D.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}})}:hf.exports=function(g,D){g.super_=D;var C=function(){};C.prototype=D.prototype,g.prototype=new C,g.prototype.constructor=g}});var $D=ge(we=>{var jD=Object.getOwnPropertyDescriptors||function(g){for(var D=Object.keys(g),C={},S=0;S<D.length;S++)C[D[S]]=Object.getOwnPropertyDescriptor(g,D[S]);return C},CT=/%[sdj%]/g;we.format=function(f){if(!Ao(f)){for(var g=[],D=0;D<arguments.length;D++)g.push(_r(arguments[D]));return g.join(" ")}for(var D=1,C=arguments,S=C.length,k=String(f).replace(CT,function(O){if(O==="%%")return"%";if(D>=S)return O;switch(O){case"%s":return String(C[D++]);case"%d":return Number(C[D++]);case"%j":try{return JSON.stringify(C[D++])}catch(j){return"[Circular]"}default:return O}}),_=C[D];D<S;_=C[++D])xo(_)||!us(_)?k+=" "+_:k+=" "+_r(_);return k};we.deprecate=function(f,g){if(typeof process!="undefined"&&process.noDeprecation===!0)return f;if(typeof process=="undefined")return function(){return we.deprecate(f,g).apply(this,arguments)};var D=!1;function C(){if(!D){if(process.throwDeprecation)throw new Error(g);process.traceDeprecation?console.trace(g):console.error(g),D=!0}return f.apply(this,arguments)}return C};var So={},df;we.debuglog=function(f){if(Pr(df)&&(df=process.env.NODE_DEBUG||""),f=f.toUpperCase(),!So[f])if(new RegExp("\\b"+f+"\\b","i").test(df)){var g=process.pid;So[f]=function(){var D=we.format.apply(we,arguments);console.error("%s %d: %s",f,g,D)}}else So[f]=function(){};return So[f]};function _r(f,g){var D={seen:[],stylize:AT};return arguments.length>=3&&(D.depth=arguments[2]),arguments.length>=4&&(D.colors=arguments[3]),gf(g)?D.showHidden=g:g&&we._extend(D,g),Pr(D.showHidden)&&(D.showHidden=!1),Pr(D.depth)&&(D.depth=2),Pr(D.colors)&&(D.colors=!1),Pr(D.customInspect)&&(D.customInspect=!0),D.colors&&(D.stylize=xT),wo(D,f,D.depth)}we.inspect=_r;_r.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]};_r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function xT(f,g){var D=_r.styles[g];return D?"["+_r.colors[D][0]+"m"+f+"["+_r.colors[D][1]+"m":f}function AT(f,g){return f}function ST(f){var g={};return f.forEach(function(D,C){g[D]=!0}),g}function wo(f,g,D){if(f.customInspect&&g&&ko(g.inspect)&&g.inspect!==we.inspect&&!(g.constructor&&g.constructor.prototype===g)){var C=g.inspect(D,f);return Ao(C)||(C=wo(f,C,D)),C}var S=wT(f,g);if(S)return S;var k=Object.keys(g),_=ST(k);if(f.showHidden&&(k=Object.getOwnPropertyNames(g)),To(g)&&(k.indexOf("message")>=0||k.indexOf("description")>=0))return mf(g);if(k.length===0){if(ko(g)){var O=g.name?": "+g.name:"";return f.stylize("[Function"+O+"]","special")}if(Fo(g))return f.stylize(RegExp.prototype.toString.call(g),"regexp");if(Df(g))return f.stylize(Date.prototype.toString.call(g),"date");if(To(g))return mf(g)}var j="",W=!1,z=["{","}"];if(VD(g)&&(W=!0,z=["[","]"]),ko(g)){var Q=g.name?": "+g.name:"";j=" [Function"+Q+"]"}if(Fo(g)&&(j=" "+RegExp.prototype.toString.call(g)),Df(g)&&(j=" "+Date.prototype.toUTCString.call(g)),To(g)&&(j=" "+mf(g)),k.length===0&&(!W||g.length==0))return z[0]+j+z[1];if(D<0)return Fo(g)?f.stylize(RegExp.prototype.toString.call(g),"regexp"):f.stylize("[Object]","special");f.seen.push(g);var ee;return W?ee=FT(f,g,D,_,k):ee=k.map(function(ye){return yf(f,g,D,_,ye,W)}),f.seen.pop(),TT(ee,j,z)}function wT(f,g){if(Pr(g))return f.stylize("undefined","undefined");if(Ao(g)){var D="'"+JSON.stringify(g).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return f.stylize(D,"string")}if(UD(g))return f.stylize(""+g,"number");if(gf(g))return f.stylize(""+g,"boolean");if(xo(g))return f.stylize("null","null")}function mf(f){return"["+Error.prototype.toString.call(f)+"]"}function FT(f,g,D,C,S){for(var k=[],_=0,O=g.length;_<O;++_)qD(g,String(_))?k.push(yf(f,g,D,C,String(_),!0)):k.push("");return S.forEach(function(j){j.match(/^\d+$/)||k.push(yf(f,g,D,C,j,!0))}),k}function yf(f,g,D,C,S,k){var _,O,j;if(j=Object.getOwnPropertyDescriptor(g,S)||{value:g[S]},j.get?j.set?O=f.stylize("[Getter/Setter]","special"):O=f.stylize("[Getter]","special"):j.set&&(O=f.stylize("[Setter]","special")),qD(C,S)||(_="["+S+"]"),O||(f.seen.indexOf(j.value)<0?(xo(D)?O=wo(f,j.value,null):O=wo(f,j.value,D-1),O.indexOf(`
|
|
197
197
|
`)>-1&&(k?O=O.split(`
|
|
198
198
|
`).map(function(W){return" "+W}).join(`
|
|
199
199
|
`).substr(2):O=`
|
|
200
200
|
`+O.split(`
|
|
201
201
|
`).map(function(W){return" "+W}).join(`
|
|
202
|
-
`))):O=f.stylize("[Circular]","special")),Pr(_)){if(k&&S.match(/^\d+$/))return O;_=JSON.stringify(""+S),_.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(_=_.substr(1,_.length-2),_=f.stylize(_,"name")):(_=_.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),_=f.stylize(_,"string"))}return _+": "+O}function
|
|
202
|
+
`))):O=f.stylize("[Circular]","special")),Pr(_)){if(k&&S.match(/^\d+$/))return O;_=JSON.stringify(""+S),_.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(_=_.substr(1,_.length-2),_=f.stylize(_,"name")):(_=_.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),_=f.stylize(_,"string"))}return _+": "+O}function TT(f,g,D){var C=0,S=f.reduce(function(k,_){return C++,_.indexOf(`
|
|
203
203
|
`)>=0&&C++,k+_.replace(/\u001b\[\d\d?m/g,"").length+1},0);return S>60?D[0]+(g===""?"":g+`
|
|
204
204
|
`)+" "+f.join(`,
|
|
205
|
-
`)+" "+D[1]:D[0]+g+" "+f.join(", ")+" "+D[1]}function
|
|
205
|
+
`)+" "+D[1]:D[0]+g+" "+f.join(", ")+" "+D[1]}function VD(f){return Array.isArray(f)}we.isArray=VD;function gf(f){return typeof f=="boolean"}we.isBoolean=gf;function xo(f){return f===null}we.isNull=xo;function kT(f){return f==null}we.isNullOrUndefined=kT;function UD(f){return typeof f=="number"}we.isNumber=UD;function Ao(f){return typeof f=="string"}we.isString=Ao;function _T(f){return typeof f=="symbol"}we.isSymbol=_T;function Pr(f){return f===void 0}we.isUndefined=Pr;function Fo(f){return us(f)&&bf(f)==="[object RegExp]"}we.isRegExp=Fo;function us(f){return typeof f=="object"&&f!==null}we.isObject=us;function Df(f){return us(f)&&bf(f)==="[object Date]"}we.isDate=Df;function To(f){return us(f)&&(bf(f)==="[object Error]"||f instanceof Error)}we.isError=To;function ko(f){return typeof f=="function"}we.isFunction=ko;function PT(f){return f===null||typeof f=="boolean"||typeof f=="number"||typeof f=="string"||typeof f=="symbol"||typeof f=="undefined"}we.isPrimitive=PT;we.isBuffer=RD();function bf(f){return Object.prototype.toString.call(f)}function Ef(f){return f<10?"0"+f.toString(10):f.toString(10)}var BT=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function NT(){var f=new Date,g=[Ef(f.getHours()),Ef(f.getMinutes()),Ef(f.getSeconds())].join(":");return[f.getDate(),BT[f.getMonth()],g].join(" ")}we.log=function(){console.log("%s - %s",NT(),we.format.apply(we,arguments))};we.inherits=MD();we._extend=function(f,g){if(!g||!us(g))return f;for(var D=Object.keys(g),C=D.length;C--;)f[D[C]]=g[D[C]];return f};function qD(f,g){return Object.prototype.hasOwnProperty.call(f,g)}var li=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;we.promisify=function(g){if(typeof g!="function")throw new TypeError('The "original" argument must be of type Function');if(li&&g[li]){var D=g[li];if(typeof D!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(D,li,{value:D,enumerable:!1,writable:!1,configurable:!0}),D}function D(){for(var C,S,k=new Promise(function(j,W){C=j,S=W}),_=[],O=0;O<arguments.length;O++)_.push(arguments[O]);_.push(function(j,W){j?S(j):C(W)});try{g.apply(this,_)}catch(j){S(j)}return k}return Object.setPrototypeOf(D,Object.getPrototypeOf(g)),li&&Object.defineProperty(D,li,{value:D,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(D,jD(g))};we.promisify.custom=li;function OT(f,g){if(!f){var D=new Error("Promise was rejected with a falsy value");D.reason=f,f=D}return g(f)}function IT(f){if(typeof f!="function")throw new TypeError('The "original" argument must be of type Function');function g(){for(var D=[],C=0;C<arguments.length;C++)D.push(arguments[C]);var S=D.pop();if(typeof S!="function")throw new TypeError("The last argument must be of type Function");var k=this,_=function(){return S.apply(k,arguments)};f.apply(this,D).then(function(O){process.nextTick(_,null,O)},function(O){process.nextTick(OT,O,_)})}return Object.setPrototypeOf(g,Object.getPrototypeOf(f)),Object.defineProperties(g,jD(f)),g}we.callbackify=IT});var WD=ge(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.DOCTYPE_SHORTCUT_REGISTRY=void 0;_o.DOCTYPE_SHORTCUT_REGISTRY={"<!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"}});var HD=ge(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.partialSort=Br.stableSort=Br.compareAttributeToken=void 0;function LT(f,g,D,C,S){let k=C.map(W=>new RegExp(W)).reverse(),_=S.map(W=>new RegExp(W)),O=f.name,j=g.name;if(k.length>0){let W=k.findIndex(ee=>ee.test(O)),z=k.findIndex(ee=>ee.test(j)),Q=W-z;if(Q>0)return-1;if(Q<0)return 1}if(_.length>0){let W=_.findIndex(ee=>ee.test(O)),z=_.findIndex(ee=>ee.test(j)),Q=W-z;if(Q>0)return 1;if(Q<0)return-1}switch(D){case"asc":{if(O>j)return 1;if(O<j)return-1;break}case"desc":{if(O>j)return-1;if(O<j)return 1;break}}return 0}Br.compareAttributeToken=LT;function GD(f,g){let D=f.map((C,S)=>[C,S]);return D.sort((C,S)=>{let k=g(C[0],S[0]);return k!==0?k:C[1]-S[1]}),D.map(([C])=>C)}Br.stableSort=GD;function RT(f,g,D,C){let S=f.slice(0,g),k=f.slice(D),_=f.slice(g,D),O=GD(_,C);return[...S,...O,...k]}Br.partialSort=RT});var zD=ge(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.formatEmptyAttribute=void 0;var MT=[!0,'""',"''"];function jT(f,g,D){let{val:C,name:S}=f;if(D.map(O=>new RegExp(O)).some(O=>O.test(S))){f.val===!0&&(f.val='""');return}if(!(g==="as-is"||!MT.includes(C)))switch(g){case"all":{f.val===!0&&(f.val='""');break}case"none":{(f.val==='""'||f.val==="''")&&(f.val=!0);break}}}Po.formatEmptyAttribute=jT});var Bo=ge(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.detectFramework=Me.detectDangerousQuoteCombination=Me.makeString=Me.handleBracketSpacing=Me.isMultilineInterpolation=Me.isSingleLineWithInterpolation=Me.isQuoted=Me.isWrappedWith=Me.isStyleAttribute=Me.unwrapLineFeeds=Me.previousTypeAttributeToken=Me.previousNormalAttributeToken=Me.previousTagToken=void 0;function VT(f,g){for(let D=g-1;D>=0;D--){let C=f[D];if(!C)return;if(C.type==="tag")return C}}Me.previousTagToken=VT;function UT(f,g){for(let D=g-1;D>0;D--){let C=f[D];if(!C||C.type==="start-attributes")return;if(C.type==="attribute"&&C.name!=="class"&&C.name!=="id")return C}}Me.previousNormalAttributeToken=UT;function qT(f,g){for(let D=g-1;D>0;D--){let C=f[D];if(!C||C.type==="start-attributes"||C.type==="tag")return;if(C.type==="attribute"&&C.name==="type")return C}}Me.previousTypeAttributeToken=qT;function $T(f){return f.includes(`
|
|
206
206
|
`)?f.split(`
|
|
207
|
-
`).map(g=>g.trim()).map(g=>(g[0]==="."?"":" ")+g).join("").trim():f}Me.unwrapLineFeeds
|
|
208
|
-
`)}Me.isMultilineInterpolation=$T;function WT(f,g,[D,C]=["{{","}}"]){return f?`${D} ${g} ${C}`:`${D}${g}${C}`}Me.handleBracketSpacing=WT;function GT(f,g,D=!1){let C=g==='"'?"'":'"',S=f.replace(/\\([\s\S])|(['"])/g,(k,_,O)=>_===C?_:O===g?`\\${O}`:O||(D&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(_)?_:`\\${_}`));return g+S+g}Me.makeString=GT;function HT(f,g,D,C){let S=f.indexOf(g),k=f.indexOf(D),_=f.indexOf("`");return S>=0&&k>=0&&k>S&&(_<0||S<_)?(C.log({code:f,quotes:g,otherQuotes:D,q1:S,q2:k,qb:_}),!0):!1}Me.detectDangerousQuoteCombination=HT;function zT(){try{let f=Object.keys(process.env).filter(g=>g.startsWith("npm_package_")).filter(g=>/(dev)?[Dd]ependencies_+/.test(g));if(f.some(g=>g.includes("vue")&&!g.includes("vuepress")))return"vue";if(f.some(g=>g.includes("svelte")))return"svelte";if(f.some(g=>g.includes("angular")))return"angular"}catch(f){return"auto"}return"auto"}Me.detectFramework=zT});var JD=ge(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.isAngularInterpolation=Nn.isAngularDirective=Nn.isAngularAction=Nn.isAngularBinding=void 0;var zD=Po();function JT(f){return f.length>=3&&f[0]==="["&&f[f.length-1]==="]"}Nn.isAngularBinding=JT;function XT(f){return f.length>=3&&f[0]==="("&&f[f.length-1]===")"}Nn.isAngularAction=XT;function YT(f){return f.length>=2&&f[0]==="*"}Nn.isAngularDirective=YT;function KT(f){return f.length>=5&&(0,zD.isQuoted)(f)&&(0,zD.isWrappedWith)(f,"{{","}}",1)&&!f.includes("{{",3)}Nn.isAngularInterpolation=KT});var XD=ge(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.getScriptParserName=void 0;var QT=/\+(json|yaml)$/i,ZT=/(^("|'|`))|(("|'|`)$)/g,ek=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 tk(f){if(!f)return"babel";let g=f.val;if(typeof g!="string")return;let D=g.replace(ZT,"");if(!D)return"babel";let C=QT.exec(D);return C?C[1]:ek.get(D)}Bo.getScriptParserName=tk});var KD=ge(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.isSvelteInterpolation=void 0;var YD=Po();function nk(f){return f.length>=3&&(0,YD.isQuoted)(f)&&(0,YD.isWrappedWith)(f,"{","}",1)&&!f.includes("{",2)}No.isSvelteInterpolation=nk});var QD=ge(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.isVueVOnExpression=rn.isVueVBindExpression=rn.isVueVForWithOf=rn.isVueExpression=rn.isVueEventBinding=void 0;function rk(f){return/^(v-on:|@).*/.test(f)}rn.isVueEventBinding=rk;function ik(f){return/^((v-(bind|slot))?:|v-(model|slot|if|for|else-if|text|html|t)|#).*/.test(f)}rn.isVueExpression=ik;function sk(f,g){return f==="v-for"&&g.includes("of")}rn.isVueVForWithOf=sk;function ak(f){return f==="v-bind"}rn.isVueVBindExpression=ak;function uk(f){return f==="v-on"}rn.isVueVOnExpression=uk});var n2=ge(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.PugPrinter=void 0;var nr=ND(),ok=UD(),lk=qD(),ck=af(),ZD=WD(),pk=GD(),fk=uf(),e2=of(),Io=JD(),Ie=Po(),hk=XD(),dk=KD(),ga=QD(),ve=(0,ck.createLogger)(console),t2=class{constructor(g,D,C){var S,k,_,O,j;this.content=g,this.tokens=D,this.options=C,this.result="",this.currentIndex=-1,this.currentLineLength=0,this.indentLevel=0,this.framework="auto",this.currentTagPosition=0,this.possibleIdPosition=0,this.possibleClassPosition=0,this.previousAttributeRemapped=!1,this.wrapAttributes=!1,this.pipelessText=!1,this.pipelessComment=!1,this.currentlyInPugInterpolation=!1,this.classLiteralToAttribute=[],this.indentString=C.pugUseTabs?" ":" ".repeat(C.pugTabWidth),C.pugSingleFileComponentIndentation&&this.indentLevel++,this.framework=C.pugFramework!=="auto"?C.pugFramework:(0,Ie.detectFramework)(),this.quotes=this.options.pugSingleQuote?"'":'"',this.otherQuotes=this.options.pugSingleQuote?'"':"'";let W=(0,fk.resolvePugAttributeSeparatorOption)(C.pugAttributeSeparator);this.alwaysUseAttributeSeparator=W==="always",this.neverUseAttributeSeparator=W==="none";let X=C.pugWrapAttributesPattern;this.wrapAttributesPattern=X?new RegExp(X):null;let se=!C.pugSingleQuote;this.codeInterpolationOptions={singleQuote:se,bracketSpacing:(S=C.pugBracketSpacing)!==null&&S!==void 0?S:C.bracketSpacing,arrowParens:(k=C.pugArrowParens)!==null&&k!==void 0?k:C.arrowParens,printWidth:9e3,endOfLine:"lf",useTabs:(_=C.pugUseTabs)!==null&&_!==void 0?_:C.useTabs,tabWidth:(O=C.pugTabWidth)!==null&&O!==void 0?O:C.tabWidth,bracketSameLine:(j=C.pugBracketSameLine)!==null&&j!==void 0?j:C.bracketSameLine}}get computedIndent(){var g;switch((g=this.previousToken)===null||g===void 0?void 0:g.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]}build(){var g,D;ve.isDebugEnabled()&&ve.debug("[PugPrinter]:",JSON.stringify(this.tokens));let C=[];if(((g=this.tokens[0])===null||g===void 0?void 0:g.type)==="text")C.push("| ");else if(((D=this.tokens[0])===null||D===void 0?void 0:D.type)==="eos")return"";let S=this.getNextToken();for(;S;){ve.debug("[PugPrinter]:",JSON.stringify(S));try{switch(S.type){case"attribute":case"class":case"end-attributes":case"id":case"eos":this.result=C.join(""),this[S.type](S),C.length=0,C.push(this.result);break;case"tag":case"start-attributes":case"interpolation":case"call":case":":this.result=C.join("");default:{if(typeof this[S.type]!="function")throw new Error("Unhandled token: "+JSON.stringify(S));C.push(this[S.type](S));break}}}catch(k){throw new Error(k)}S=this.getNextToken()}return C.join("")}getNextToken(){var g;return this.currentIndex++,(g=this.tokens[this.currentIndex])!==null&&g!==void 0?g:null}quoteString(g){return`${this.quotes}${g}${this.quotes}`}checkTokenType(g,D,C=!1){return!!g&&D.includes(g.type)!==C}tokenNeedsSeparator(g){return this.neverUseAttributeSeparator?!1:this.alwaysUseAttributeSeparator||/^(\(|\[|:).*/.test(g.name)}getUnformattedContentLines(g,D){let{start:C}=g.loc,{end:S}=D.loc,k=this.content.split(/\r\n|\n|\r/),_=C.line-1,O=S.line-1,j=[],W=k[_];W!==void 0&&j.push(W.slice(C.column-1));for(let se=_+1;se<O;se++){let re=k[se];re!==void 0&&j.push(re)}let X=k[O];return X!==void 0&&j.push(X.slice(0,S.column-1)),j}replaceTagWithLiteralIfPossible(g,D){if(this.options.pugExplicitDiv)return;let C=Math.max(this.possibleIdPosition,this.possibleClassPosition),S=this.result.slice(this.currentTagPosition,C),k=S.replace(g,D);if(k!==S){let _=this.result.slice(0,this.currentTagPosition),O=this.result.slice(C);this.result=`${_}${k}${O}`;let j=S.length-k.length;this.possibleIdPosition-=j,this.possibleClassPosition-=j}}frameworkFormat(g){let D={...this.codeInterpolationOptions};switch(this.framework){case"angular":D.parser="__ng_interpolation";break;case"svelte":case"vue":default:D.parser="babel",D.semi=!1}let C=(0,nr.format)(g,D);return C[0]===";"&&(C=C.slice(1)),C}formatText(g){let D="";for(;g;){let C=g.indexOf("{{");if(C!==-1){D+=g.slice(0,C),g=g.slice(C+2);let S=g.indexOf("}}");if(S!==-1){let k=g.slice(0,S);try{if((0,Ie.detectDangerousQuoteCombination)(k,this.quotes,this.otherQuotes,ve)){ve.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:",k),D+=(0,Ie.handleBracketSpacing)(this.options.pugBracketSpacing,k),g=g.slice(S+2);continue}else k=this.frameworkFormat(k)}catch(_){typeof _=="string"?_.includes("Unexpected token Lexer Error")?_.includes("Unexpected character [`]")||ve.debug("[PugPrinter:formatText]: Using fallback strategy"):_.includes("Bindings cannot contain assignments")?ve.warn("[PugPrinter:formatText]: Bindings should not contain assignments:",`code: \`${k.trim()}\``):_.includes("Unexpected token '('")?this.framework!=="vue"&&ve.warn("[PugPrinter:formatText]: Found unexpected token `(`.",`code: \`${k.trim()}\``):_.includes("Missing expected `)`")?this.framework!=="vue"&&ve.warn("[PugPrinter:formatText]: Missing expected `)`.",`code: \`${k.trim()}\``):_.includes("Missing expected `:`")?this.framework!=="vue"&&ve.warn("[PugPrinter:formatText]: Missing expected `:`.",`code: \`${k.trim()}\``):ve.warn("[PugPrinter:formatText]: ",_):ve.warn("[PugPrinter:formatText]: ",_);try{k=(0,nr.format)(k,{parser:"babel",...this.codeInterpolationOptions,semi:!1}),k[0]===";"&&(k=k.slice(1))}catch(O){ve.warn(O)}}k=(0,Ie.unwrapLineFeeds)(k),D+=(0,Ie.handleBracketSpacing)(this.options.pugBracketSpacing,k),g=g.slice(S+2)}else D+="{{",D+=g,g=""}else{let S=g.indexOf("{");if(this.options.pugFramework==="svelte"&&S!==-1){D+=g.slice(0,S),g=g.slice(S+1);let k=g.indexOf("}");if(k!==-1){let _=g.slice(0,k);try{if((0,Ie.detectDangerousQuoteCombination)(_,this.quotes,this.otherQuotes,ve)){ve.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:",_),D+=(0,Ie.handleBracketSpacing)(this.options.pugBracketSpacing,_),g=g.slice(k+1);continue}else _=this.frameworkFormat(_)}catch(O){ve.warn("[PugPrinter:formatText]: ",O);try{_=(0,nr.format)(_,{parser:"babel",...this.codeInterpolationOptions,semi:!1}),_[0]===";"&&(_=_.slice(1))}catch(j){ve.warn(j)}}_=(0,Ie.unwrapLineFeeds)(_),D+=(0,Ie.handleBracketSpacing)(this.options.pugBracketSpacing,_,["{","}"]),g=g.slice(k+1)}else D+="{",D+=g,g=""}else D+=g,g=""}}return D}formatDelegatePrettier(g,D,{trimTrailingSemicolon:C=!1}={}){g=g.trim();let S=(0,Ie.isQuoted)(g);return S&&(g=g.slice(1,-1)),g=(0,nr.format)(g,{parser:D,...this.codeInterpolationOptions}),this.quotes==='"'?g=g.replace(/"/g,'\\"'):g=g.replace(/'/g,"\\'"),g=(0,Ie.unwrapLineFeeds)(g),C&&g[g.length-1]===";"&&(g=g.slice(0,-1)),S?this.quoteString(g):g}formatStyleAttribute(g){return this.formatDelegatePrettier(g,"css",{trimTrailingSemicolon:!0})}formatVueEventBinding(g){return this.formatDelegatePrettier(g,"__vue_event_binding",{trimTrailingSemicolon:!0})}formatVueExpression(g){return this.formatDelegatePrettier(g,"__vue_expression")}formatAngularBinding(g){return this.formatDelegatePrettier(g,"__ng_binding")}formatAngularAction(g){return this.formatDelegatePrettier(g,"__ng_action")}formatAngularDirective(g){return this.formatDelegatePrettier(g,"__ng_directive")}formatFrameworkInterpolation(g,D,[C,S]){return g=g.slice(1,-1),g=g.slice(C.length,-S.length),g=g.trim(),g.includes(`\\${this.otherQuotes}`)?ve.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:",g):(g=(0,nr.format)(g,{parser:D,...this.codeInterpolationOptions}),g=(0,Ie.unwrapLineFeeds)(g)),g=(0,Ie.handleBracketSpacing)(this.options.pugBracketSpacing,g,[C,S]),this.quoteString(g)}formatAngularInterpolation(g){return this.formatFrameworkInterpolation(g,"__ng_interpolation",["{{","}}"])}formatSvelteInterpolation(g){return this.formatFrameworkInterpolation(g,"__ng_interpolation",["{","}"])}tag(g){let D=g.val;D==="div"&&!this.options.pugExplicitDiv&&this.nextToken&&(this.nextToken.type==="class"||this.nextToken.type==="id")&&(D=""),this.currentLineLength+=D.length;let C=`${this.computedIndent}${D}`;return ve.debug("tag",{result:C,val:g.val,length:g.val.length},this.currentLineLength),this.currentTagPosition=this.result.length+this.computedIndent.length,this.possibleIdPosition=this.result.length+C.length,this.possibleClassPosition=this.result.length+C.length,C}["start-attributes"](g){var D,C,S;let k="";if(((D=this.nextToken)===null||D===void 0?void 0:D.type)==="attribute"){this.previousAttributeRemapped=!1,this.possibleClassPosition=this.result.length,k="(",ve.debug(this.currentLineLength);let _=this.nextToken,O=this.currentIndex+1,j=!1,W=0;for(;_.type==="attribute";){switch(!this.currentlyInPugInterpolation&&!this.wrapAttributes&&((C=this.wrapAttributesPattern)===null||C===void 0?void 0:C.test(_.name))&&(this.wrapAttributes=!0),_.name){case"class":case"id":{j=!0;let X=_.val.toString();(0,Ie.isQuoted)(X)&&(this.currentLineLength-=2),this.currentLineLength+=1+X.length,ve.debug({tokenName:_.name,length:_.name.length},this.currentLineLength);break}default:{this.currentLineLength+=_.name.length,W>0&&(this.currentLineLength+=1,this.tokenNeedsSeparator(_)&&(this.currentLineLength+=1)),ve.debug({tokenName:_.name,length:_.name.length},this.currentLineLength);let X=_.val.toString();X.length>0&&X!=="true"&&(this.currentLineLength+=1+X.length,ve.debug({tokenVal:X,length:X.length},this.currentLineLength)),W++;break}}_=this.tokens[++O]}if(ve.debug("after token",this.currentLineLength),j&&((S=this.previousToken)===null||S===void 0?void 0:S.type)==="tag"&&this.previousToken.val==="div"&&!this.options.pugExplicitDiv&&(this.currentLineLength-=3),W>0&&(this.currentLineLength+=2),ve.debug(this.currentLineLength),!this.currentlyInPugInterpolation&&!this.wrapAttributes&&(this.currentLineLength>this.options.pugPrintWidth||this.options.pugWrapAttributesThreshold>=0&&W>this.options.pugWrapAttributesThreshold)&&(this.wrapAttributes=!0),this.options.pugSortAttributes!=="as-is"||this.options.pugSortAttributesEnd.length>0||this.options.pugSortAttributesBeginning.length>0){let X=this.tokens.indexOf(g),se=O;se-X>2&&(this.tokens=(0,ZD.partialSort)(this.tokens,X+1,se,(re,me)=>(0,ZD.compareAttributeToken)(re,me,this.options.pugSortAttributes,this.options.pugSortAttributesBeginning,this.options.pugSortAttributesEnd)))}}return k}attribute(g){var D,C;if((0,pk.formatEmptyAttribute)(g,this.options.pugEmptyAttributes,this.options.pugEmptyAttributesForceQuotes),typeof g.val=="string"&&(0,Ie.isQuoted)(g.val)&&g.val[0]!=="`"){if(g.name==="class"&&this.options.pugClassNotation==="literal"){let _=g.val.slice(1,-1).trim().split(/\s+/),O=[],j=[],W=/^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$/;for(let X of _)W.test(X)?j.push(X):O.push(X);if(j.length>0){let X=this.possibleClassPosition;this.result=[this.result.slice(0,X),".",j.join("."),this.result.slice(X)].join(""),this.possibleClassPosition+=1+j.join(".").length,this.replaceTagWithLiteralIfPossible(/div\./,".")}if(O.length>0)g.val=(0,Ie.makeString)(O.join(" "),this.quotes),this.previousAttributeRemapped=!1;else{this.previousAttributeRemapped=!0;return}}else if(g.name==="id"&&this.options.pugIdNotation!=="as-is"){let k=g.val;if(k=k.slice(1,-1),k=k.trim(),!/^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$/.test(k)){k=(0,Ie.makeString)(k,this.quotes),this.result+="id",g.mustEscape===!1&&(this.result+="!"),this.result+=`=${k}`;return}let O=this.possibleIdPosition,j=`#${k}`;this.result=[this.result.slice(0,O),j,this.result.slice(O)].join(""),this.possibleClassPosition+=j.length,this.replaceTagWithLiteralIfPossible(/div#/,"#"),this.previousAttributeRemapped=!0;return}}let S=(0,Ie.previousNormalAttributeToken)(this.tokens,this.currentIndex);if(((D=this.previousToken)===null||D===void 0?void 0:D.type)==="attribute"&&(!this.previousAttributeRemapped||S)&&(this.tokenNeedsSeparator(g)&&(this.result+=","),this.wrapAttributes||(this.result+=" ")),this.previousAttributeRemapped=!1,this.wrapAttributes&&(this.result+=`
|
|
209
|
-
`,this.result+=this.indentString.repeat(this.indentLevel+1)),this.result+=`${g.name}`,typeof g.val=="boolean")g.val!==!0&&(this.result+=`=${g.val}`);else if(g.name==="class"&&this.options.pugClassNotation==="attribute"){let _=((0,Ie.isQuoted)(g.val)?g.val.slice(1,-1).trim():g.val).split(/\s+/);if(this.classLiteralToAttribute.length)for(let O=this.classLiteralToAttribute.length-1;O>-1;O--){let j=this.classLiteralToAttribute.splice(O,1)[0];j&&_.unshift(j)}this.result+=`=${(0,Ie.isQuoted)(g.val)?this.quoteString(_.join(" ")):_.join(" ")}`}else{let k=g.val;if(!(0,Ie.isMultilineInterpolation)(k)){if(!(0,Ie.isSingleLineWithInterpolation)(k))if((0,ga.isVueVForWithOf)(g.name,k))k=this.formatDelegatePrettier(k,"vue");else if((0,ga.isVueExpression)(g.name))k=this.formatVueExpression(k);else if((0,ga.isVueEventBinding)(g.name))k=this.formatVueEventBinding(k);else if((0,ga.isVueVBindExpression)(g.name))k=this.formatDelegatePrettier(k,"__js_expression");else if((0,ga.isVueVOnExpression)(g.name))k=this.formatDelegatePrettier(k,"__js_expression");else if((0,
|
|
207
|
+
`).map(g=>g.trim()).map(g=>(g[0]==="."?"":" ")+g).join("").trim():f}Me.unwrapLineFeeds=$T;function WT(f,g){return f==="style"&&JD(g)}Me.isStyleAttribute=WT;function GT(f,g,D,C=0){return f.startsWith(g,C)&&f.endsWith(D,f.length-C)}Me.isWrappedWith=GT;function JD(f){return/^(["'`])(.*)\1$/.test(f)?!new RegExp(`${f[0]}(?<!\\\\${f[0]})`).test(f.slice(1,-1)):!1}Me.isQuoted=JD;function HT(f){return/^`[\s\S]*`$/.test(f)&&f.includes("${")}Me.isSingleLineWithInterpolation=HT;function zT(f){return/^`[\s\S]*`$/m.test(f)&&f.includes(`
|
|
208
|
+
`)}Me.isMultilineInterpolation=zT;function JT(f,g,[D,C]=["{{","}}"]){return f?`${D} ${g} ${C}`:`${D}${g}${C}`}Me.handleBracketSpacing=JT;function XT(f,g,D=!1){let C=g==='"'?"'":'"',S=f.replace(/\\([\s\S])|(['"])/g,(k,_,O)=>_===C?_:O===g?`\\${O}`:O||(D&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(_)?_:`\\${_}`));return g+S+g}Me.makeString=XT;function YT(f,g,D,C){let S=f.indexOf(g),k=f.indexOf(D),_=f.indexOf("`");return S>=0&&k>=0&&k>S&&(_<0||S<_)?(C.log({code:f,quotes:g,otherQuotes:D,q1:S,q2:k,qb:_}),!0):!1}Me.detectDangerousQuoteCombination=YT;function KT(){try{let f=Object.keys(process.env).filter(g=>g.startsWith("npm_package_")).filter(g=>/(dev)?[Dd]ependencies_+/.test(g));if(f.some(g=>g.includes("vue")&&!g.includes("vuepress")))return"vue";if(f.some(g=>g.includes("svelte")))return"svelte";if(f.some(g=>g.includes("angular")))return"angular"}catch(f){return"auto"}return"auto"}Me.detectFramework=KT});var YD=ge(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.isAngularInterpolation=Nn.isAngularDirective=Nn.isAngularAction=Nn.isAngularBinding=void 0;var XD=Bo();function QT(f){return f.length>=3&&f[0]==="["&&f[f.length-1]==="]"}Nn.isAngularBinding=QT;function ZT(f){return f.length>=3&&f[0]==="("&&f[f.length-1]===")"}Nn.isAngularAction=ZT;function ek(f){return f.length>=2&&f[0]==="*"}Nn.isAngularDirective=ek;function tk(f){return f.length>=5&&(0,XD.isQuoted)(f)&&(0,XD.isWrappedWith)(f,"{{","}}",1)&&!f.includes("{{",3)}Nn.isAngularInterpolation=tk});var KD=ge(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.getScriptParserName=void 0;var nk=/\+(json|yaml)$/i,rk=/(^("|'|`))|(("|'|`)$)/g,ik=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 sk(f){if(!f)return"babel";let g=f.val;if(typeof g!="string")return;let D=g.replace(rk,"");if(!D)return"babel";let C=nk.exec(D);return C?C[1]:ik.get(D)}No.getScriptParserName=sk});var ZD=ge(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.isSvelteInterpolation=void 0;var QD=Bo();function ak(f){return f.length>=3&&(0,QD.isQuoted)(f)&&(0,QD.isWrappedWith)(f,"{","}",1)&&!f.includes("{",2)}Oo.isSvelteInterpolation=ak});var e2=ge(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.isVueVOnExpression=rn.isVueVBindExpression=rn.isVueVForWithOf=rn.isVueExpression=rn.isVueEventBinding=void 0;function uk(f){return/^(v-on:|@).*/.test(f)}rn.isVueEventBinding=uk;function ok(f){return/^((v-(bind|slot))?:|v-(model|slot|if|for|else-if|text|html|t)|#).*/.test(f)}rn.isVueExpression=ok;function lk(f,g){return f==="v-for"&&g.includes("of")}rn.isVueVForWithOf=lk;function ck(f){return f==="v-bind"}rn.isVueVBindExpression=ck;function pk(f){return f==="v-on"}rn.isVueVOnExpression=pk});var i2=ge(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.PugPrinter=void 0;var nr=ID(),fk=$D(),hk=WD(),dk=uf(),t2=HD(),gk=zD(),mk=of(),n2=lf(),Lo=YD(),Ie=Bo(),yk=KD(),Dk=ZD(),ga=e2(),me=(0,dk.createLogger)(console),r2=class{constructor(g,D,C){var S,k,_,O,j,W;this.content=g,this.tokens=D,this.options=C,this.result="",this.currentIndex=-1,this.currentLineLength=0,this.indentLevel=0,this.framework="auto",this.currentTagPosition=0,this.possibleIdPosition=0,this.possibleClassPosition=0,this.previousAttributeRemapped=!1,this.wrapAttributes=!1,this.pipelessText=!1,this.pipelessComment=!1,this.currentlyInPugInterpolation=!1,this.classLiteralToAttribute=[],this.classLiteralAfterAttributes=[],this.indentString=C.pugUseTabs?" ":" ".repeat(C.pugTabWidth),C.pugSingleFileComponentIndentation&&this.indentLevel++,this.framework=C.pugFramework!=="auto"?C.pugFramework:(0,Ie.detectFramework)(),this.quotes=this.options.pugSingleQuote?"'":'"',this.otherQuotes=this.options.pugSingleQuote?'"':"'";let z=(0,mk.resolvePugAttributeSeparatorOption)(C.pugAttributeSeparator);this.alwaysUseAttributeSeparator=z==="always",this.neverUseAttributeSeparator=z==="none";let Q=C.pugWrapAttributesPattern;this.wrapAttributesPattern=Q?new RegExp(Q):null,this.codeInterpolationOptions={singleQuote:(S=C.pugSingleQuote)!==null&&S!==void 0?S:C.singleQuote,bracketSpacing:(k=C.pugBracketSpacing)!==null&&k!==void 0?k:C.bracketSpacing,arrowParens:(_=C.pugArrowParens)!==null&&_!==void 0?_:C.arrowParens,printWidth:9e3,endOfLine:"lf",useTabs:(O=C.pugUseTabs)!==null&&O!==void 0?O:C.useTabs,tabWidth:(j=C.pugTabWidth)!==null&&j!==void 0?j:C.tabWidth,bracketSameLine:(W=C.pugBracketSameLine)!==null&&W!==void 0?W:C.bracketSameLine}}get computedIndent(){var g;switch((g=this.previousToken)===null||g===void 0?void 0:g.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]}build(){var g,D;me.isDebugEnabled()&&me.debug("[PugPrinter]:",JSON.stringify(this.tokens));let C=[];if(((g=this.tokens[0])===null||g===void 0?void 0:g.type)==="text")C.push("| ");else if(((D=this.tokens[0])===null||D===void 0?void 0:D.type)==="eos")return"";let S=this.getNextToken();for(;S;){me.debug("[PugPrinter]:",JSON.stringify(S));try{switch(S.type){case"attribute":case"class":case"end-attributes":case"id":case"eos":this.result=C.join(""),this[S.type](S),C.length=0,C.push(this.result);break;case"tag":case"start-attributes":case"interpolation":case"call":case":":this.result=C.join("");default:{if(typeof this[S.type]!="function")throw new Error("Unhandled token: "+JSON.stringify(S));C.push(this[S.type](S));break}}}catch(k){throw new Error(k)}S=this.getNextToken()}return C.join("")}getNextToken(){var g;return this.currentIndex++,(g=this.tokens[this.currentIndex])!==null&&g!==void 0?g:null}quoteString(g){return`${this.quotes}${g}${this.quotes}`}checkTokenType(g,D,C=!1){return!!g&&D.includes(g.type)!==C}tokenNeedsSeparator(g){return this.neverUseAttributeSeparator?!1:this.alwaysUseAttributeSeparator||/^(\(|\[|:).*/.test(g.name)}getUnformattedContentLines(g,D){let{start:C}=g.loc,{end:S}=D.loc,k=this.content.split(/\r\n|\n|\r/),_=C.line-1,O=S.line-1,j=[],W=k[_];W!==void 0&&j.push(W.slice(C.column-1));for(let Q=_+1;Q<O;Q++){let ee=k[Q];ee!==void 0&&j.push(ee)}let z=k[O];return z!==void 0&&j.push(z.slice(0,S.column-1)),j}replaceTagWithLiteralIfPossible(g,D){if(this.options.pugExplicitDiv)return;let C=Math.max(this.possibleIdPosition,this.possibleClassPosition),S=this.result.slice(this.currentTagPosition,C),k=S.replace(g,D);if(k!==S){let _=this.result.slice(0,this.currentTagPosition),O=this.result.slice(C);this.result=`${_}${k}${O}`;let j=S.length-k.length;this.possibleIdPosition-=j,this.possibleClassPosition-=j}}frameworkFormat(g){let D={...this.codeInterpolationOptions};switch(this.framework){case"angular":D.parser="__ng_interpolation";break;case"svelte":case"vue":default:D.parser="babel",D.semi=!1}let C=(0,nr.format)(g,D);return C[0]===";"&&(C=C.slice(1)),C}formatText(g){let D="";for(;g;){let C=g.indexOf("{{");if(C!==-1){D+=g.slice(0,C),g=g.slice(C+2);let S=g.indexOf("}}");if(S!==-1){let k=g.slice(0,S);try{if((0,Ie.detectDangerousQuoteCombination)(k,this.quotes,this.otherQuotes,me)){me.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:",k),D+=(0,Ie.handleBracketSpacing)(this.options.pugBracketSpacing,k),g=g.slice(S+2);continue}else k=this.frameworkFormat(k)}catch(_){typeof _=="string"?_.includes("Unexpected token Lexer Error")?_.includes("Unexpected character [`]")||me.debug("[PugPrinter:formatText]: Using fallback strategy"):_.includes("Bindings cannot contain assignments")?me.warn("[PugPrinter:formatText]: Bindings should not contain assignments:",`code: \`${k.trim()}\``):_.includes("Unexpected token '('")?this.framework!=="vue"&&me.warn("[PugPrinter:formatText]: Found unexpected token `(`.",`code: \`${k.trim()}\``):_.includes("Missing expected `)`")?this.framework!=="vue"&&me.warn("[PugPrinter:formatText]: Missing expected `)`.",`code: \`${k.trim()}\``):_.includes("Missing expected `:`")?this.framework!=="vue"&&me.warn("[PugPrinter:formatText]: Missing expected `:`.",`code: \`${k.trim()}\``):me.warn("[PugPrinter:formatText]: ",_):me.warn("[PugPrinter:formatText]: ",_);try{k=(0,nr.format)(k,{parser:"babel",...this.codeInterpolationOptions,semi:!1}),k[0]===";"&&(k=k.slice(1))}catch(O){me.warn(O)}}k=(0,Ie.unwrapLineFeeds)(k),D+=(0,Ie.handleBracketSpacing)(this.options.pugBracketSpacing,k),g=g.slice(S+2)}else D+="{{",D+=g,g=""}else{let S=g.indexOf("{");if(this.options.pugFramework==="svelte"&&S!==-1){D+=g.slice(0,S),g=g.slice(S+1);let k=g.indexOf("}");if(k!==-1){let _=g.slice(0,k);try{if((0,Ie.detectDangerousQuoteCombination)(_,this.quotes,this.otherQuotes,me)){me.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:",_),D+=(0,Ie.handleBracketSpacing)(this.options.pugBracketSpacing,_),g=g.slice(k+1);continue}else _=this.frameworkFormat(_)}catch(O){me.warn("[PugPrinter:formatText]: ",O);try{_=(0,nr.format)(_,{parser:"babel",...this.codeInterpolationOptions,semi:!1}),_[0]===";"&&(_=_.slice(1))}catch(j){me.warn(j)}}_=(0,Ie.unwrapLineFeeds)(_),D+=(0,Ie.handleBracketSpacing)(this.options.pugBracketSpacing,_,["{","}"]),g=g.slice(k+1)}else D+="{",D+=g,g=""}else D+=g,g=""}}return D}formatDelegatePrettier(g,D,{trimTrailingSemicolon:C=!1}={}){g=g.trim();let S={...this.codeInterpolationOptions},k=(0,Ie.isQuoted)(g);return k&&(S.singleQuote=!this.options.pugSingleQuote,g=g.slice(1,-1)),g=(0,nr.format)(g,{parser:D,...S}),this.quotes==='"'?g=g.replace(/"/g,'\\"'):g=g.replace(/'/g,"\\'"),g=(0,Ie.unwrapLineFeeds)(g),C&&g[g.length-1]===";"&&(g=g.slice(0,-1)),k?this.quoteString(g):g}formatStyleAttribute(g){return this.formatDelegatePrettier(g,"css",{trimTrailingSemicolon:!0})}formatVueEventBinding(g){return this.formatDelegatePrettier(g,"__vue_event_binding",{trimTrailingSemicolon:!0})}formatVueExpression(g){return this.formatDelegatePrettier(g,"__vue_expression")}formatAngularBinding(g){return this.formatDelegatePrettier(g,"__ng_binding")}formatAngularAction(g){return this.formatDelegatePrettier(g,"__ng_action")}formatAngularDirective(g){return this.formatDelegatePrettier(g,"__ng_directive")}formatFrameworkInterpolation(g,D,[C,S]){if(g=g.slice(1,-1),g=g.slice(C.length,-S.length),g=g.trim(),g.includes(`\\${this.otherQuotes}`))me.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:",g);else{let k={...this.codeInterpolationOptions,singleQuote:!this.options.pugSingleQuote};try{g=(0,nr.format)(g,{parser:D,...k})}catch(_){me.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:",g)}g=(0,Ie.unwrapLineFeeds)(g)}return g=(0,Ie.handleBracketSpacing)(this.options.pugBracketSpacing,g,[C,S]),this.quoteString(g)}formatAngularInterpolation(g){return this.formatFrameworkInterpolation(g,"__ng_interpolation",["{{","}}"])}formatSvelteInterpolation(g){return this.formatFrameworkInterpolation(g,"__ng_interpolation",["{","}"])}tag(g){let D=g.val;D==="div"&&!this.options.pugExplicitDiv&&this.nextToken&&(this.nextToken.type==="class"&&this.options.pugClassLocation==="before-attributes"||this.nextToken.type==="id")&&(D=""),this.currentLineLength+=D.length;let C=`${this.computedIndent}${D}`;return me.debug("tag",{result:C,val:g.val,length:g.val.length},this.currentLineLength),this.currentTagPosition=this.result.length+this.computedIndent.length,this.possibleIdPosition=this.result.length+C.length,this.possibleClassPosition=this.result.length+C.length,C}["start-attributes"](g){var D,C,S;let k="";if(((D=this.nextToken)===null||D===void 0?void 0:D.type)==="attribute"){this.previousAttributeRemapped=!1,this.possibleClassPosition=this.result.length,k="(",me.debug(this.currentLineLength);let _=this.nextToken,O=this.currentIndex+1,j=!1,W=0;for(;_.type==="attribute";){switch(!this.currentlyInPugInterpolation&&!this.wrapAttributes&&((C=this.wrapAttributesPattern)===null||C===void 0?void 0:C.test(_.name))&&(this.wrapAttributes=!0),_.name){case"class":case"id":{j=!0;let z=_.val.toString();(0,Ie.isQuoted)(z)&&(this.currentLineLength-=2),this.currentLineLength+=1+z.length,me.debug({tokenName:_.name,length:_.name.length},this.currentLineLength);break}default:{this.currentLineLength+=_.name.length,W>0&&(this.currentLineLength+=1,this.tokenNeedsSeparator(_)&&(this.currentLineLength+=1)),me.debug({tokenName:_.name,length:_.name.length},this.currentLineLength);let z=_.val.toString();z.length>0&&z!=="true"&&(this.currentLineLength+=1+z.length,me.debug({tokenVal:z,length:z.length},this.currentLineLength)),W++;break}}_=this.tokens[++O]}if(me.debug("after token",this.currentLineLength),j&&((S=this.previousToken)===null||S===void 0?void 0:S.type)==="tag"&&this.previousToken.val==="div"&&!this.options.pugExplicitDiv&&(this.currentLineLength-=3),W>0&&(this.currentLineLength+=2),this.options.pugClassLocation==="after-attributes"){let z=O,Q=this.tokens[++z];for(;Q.type==="class";){let ee=Q.val.toString();this.currentLineLength+=1+ee.length,me.debug({tokenVal:ee,length:ee.length},this.currentLineLength),Q=this.tokens[++z]}}if(me.debug("final line length",{currentLineLength:this.currentLineLength}),!this.currentlyInPugInterpolation&&!this.wrapAttributes&&(this.currentLineLength>this.options.pugPrintWidth||this.options.pugWrapAttributesThreshold>=0&&W>this.options.pugWrapAttributesThreshold)&&(this.wrapAttributes=!0),this.options.pugSortAttributes!=="as-is"||this.options.pugSortAttributesEnd.length>0||this.options.pugSortAttributesBeginning.length>0){let z=this.tokens.indexOf(g),Q=O;Q-z>2&&(this.tokens=(0,t2.partialSort)(this.tokens,z+1,Q,(ee,ye)=>(0,t2.compareAttributeToken)(ee,ye,this.options.pugSortAttributes,this.options.pugSortAttributesBeginning,this.options.pugSortAttributesEnd)))}}return k}attribute(g){var D,C;if((0,gk.formatEmptyAttribute)(g,this.options.pugEmptyAttributes,this.options.pugEmptyAttributesForceQuotes),typeof g.val=="string"&&(0,Ie.isQuoted)(g.val)&&g.val[0]!=="`"){if(g.name==="class"&&this.options.pugClassNotation==="literal"){let _=g.val.slice(1,-1).trim().split(/\s+/),O=[],j=[],W=/^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$/;for(let z of _)W.test(z)?this.options.pugClassLocation==="after-attributes"?this.classLiteralAfterAttributes.push(z):j.push(z):O.push(z);if(j.length>0){let z=this.possibleClassPosition;this.result=[this.result.slice(0,z),".",j.join("."),this.result.slice(z)].join(""),this.possibleClassPosition+=1+j.join(".").length,this.options.pugClassLocation==="before-attributes"&&this.replaceTagWithLiteralIfPossible(/div\./,".")}if(O.length>0)g.val=(0,Ie.makeString)(O.join(" "),this.quotes),this.previousAttributeRemapped=!1;else{this.previousAttributeRemapped=!0;return}}else if(g.name==="id"&&this.options.pugIdNotation!=="as-is"){let k=g.val;if(k=k.slice(1,-1),k=k.trim(),!/^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$/.test(k)){k=(0,Ie.makeString)(k,this.quotes),this.result+="id",g.mustEscape===!1&&(this.result+="!"),this.result+=`=${k}`;return}let O=this.possibleIdPosition,j=`#${k}`;this.result=[this.result.slice(0,O),j,this.result.slice(O)].join(""),this.possibleClassPosition+=j.length,this.replaceTagWithLiteralIfPossible(/div#/,"#"),this.previousAttributeRemapped=!0;return}}let S=(0,Ie.previousNormalAttributeToken)(this.tokens,this.currentIndex);if(((D=this.previousToken)===null||D===void 0?void 0:D.type)==="attribute"&&(!this.previousAttributeRemapped||S)&&(this.tokenNeedsSeparator(g)&&(this.result+=","),this.wrapAttributes||(this.result+=" ")),this.previousAttributeRemapped=!1,this.wrapAttributes&&(this.result+=`
|
|
209
|
+
`,this.result+=this.indentString.repeat(this.indentLevel+1)),this.result+=`${g.name}`,typeof g.val=="boolean")g.val!==!0&&(this.result+=`=${g.val}`);else if(g.name==="class"&&this.options.pugClassNotation==="attribute"){let _=((0,Ie.isQuoted)(g.val)?g.val.slice(1,-1).trim():g.val).split(/\s+/);if(this.classLiteralToAttribute.length)for(let O=this.classLiteralToAttribute.length-1;O>-1;O--){let j=this.classLiteralToAttribute.splice(O,1)[0];j&&_.unshift(j)}this.result+=`=${(0,Ie.isQuoted)(g.val)?this.quoteString(_.join(" ")):_.join(" ")}`}else{let k=g.val;if(!(0,Ie.isMultilineInterpolation)(k)){if(!(0,Ie.isSingleLineWithInterpolation)(k))if((0,ga.isVueVForWithOf)(g.name,k))k=this.formatDelegatePrettier(k,"vue");else if((0,ga.isVueExpression)(g.name))k=this.formatVueExpression(k);else if((0,ga.isVueEventBinding)(g.name))k=this.formatVueEventBinding(k);else if((0,ga.isVueVBindExpression)(g.name))k=this.formatDelegatePrettier(k,"__js_expression");else if((0,ga.isVueVOnExpression)(g.name))k=this.formatDelegatePrettier(k,"__js_expression");else if((0,Lo.isAngularBinding)(g.name))k=this.formatAngularBinding(k);else if((0,Lo.isAngularAction)(g.name))k=this.formatAngularAction(k);else if((0,Lo.isAngularDirective)(g.name))k=this.formatAngularDirective(k);else if((0,Lo.isAngularInterpolation)(k))k=this.formatAngularInterpolation(k);else if((0,Dk.isSvelteInterpolation)(k))k=this.formatSvelteInterpolation(k);else if((0,Ie.isStyleAttribute)(g.name,g.val))k=this.formatStyleAttribute(k);else{let _=k.trimRight();if((0,Ie.isQuoted)(_))k=(0,Ie.makeString)(_.slice(1,-1),this.quotes);else{if(k==="true")return;if(g.mustEscape){k=(0,nr.format)(k,{parser:"__js_expression",...this.codeInterpolationOptions});let O=k.split(`
|
|
210
210
|
`),j=this.wrapAttributes?this.indentLevel+1:this.indentLevel;if(O.length>1){k=(C=O[0])!==null&&C!==void 0?C:"";for(let W=1;W<O.length;W++)k+=`
|
|
211
211
|
`,k+=this.indentString.repeat(j),k+=O[W]}}else k=k.trim(),k=k.replace(/\s\s+/g," "),k[0]==="{"&&k[1]===" "&&(k=`{${k.slice(2,k.length)}`)}}}g.mustEscape===!1&&(this.result+="!"),this.result+=`=${k}`}}["end-attributes"](g){var D,C,S,k,_,O;if(this.wrapAttributes&&this.result[this.result.length-1]!=="("&&(this.options.pugBracketSameLine||(this.result+=`
|
|
212
|
-
`),this.result+=this.indentString.repeat(this.indentLevel)),this.wrapAttributes=!1,this.classLiteralToAttribute.length){((D=this.previousToken)===null||D===void 0?void 0:D.type)==="start-attributes"?this.result+="(":((C=this.previousToken)===null||C===void 0?void 0:C.type)==="attribute"&&(this.result+=" ");let j=this.classLiteralToAttribute.splice(0,this.classLiteralToAttribute.length);this.result+=`class=${this.quoteString(j.join(" "))}`,((S=this.previousToken)===null||S===void 0?void 0:S.type)==="start-attributes"&&(this.result+=")")}this.result[this.result.length-1]==="("?this.result=this.result.slice(0,-1):((k=this.previousToken)===null||k===void 0?void 0:k.type)==="attribute"&&(this.options.pugBracketSameLine&&(this.result=this.result.trimRight()),this.result+=")"),(((_=this.nextToken)===null||_===void 0?void 0:_.type)==="text"||((O=this.nextToken)===null||O===void 0?void 0:O.type)==="path")&&(this.result+=" ")}indent(g){let D=`
|
|
213
|
-
${this.indentString.repeat(this.indentLevel)}`;return this.indentLevel++,this.currentLineLength=D.length-1+1+this.options.pugTabWidth,
|
|
212
|
+
`),this.result+=this.indentString.repeat(this.indentLevel)),this.wrapAttributes=!1,this.classLiteralToAttribute.length){((D=this.previousToken)===null||D===void 0?void 0:D.type)==="start-attributes"?this.result+="(":((C=this.previousToken)===null||C===void 0?void 0:C.type)==="attribute"&&(this.result+=" ");let j=this.classLiteralToAttribute.splice(0,this.classLiteralToAttribute.length);this.result+=`class=${this.quoteString(j.join(" "))}`,((S=this.previousToken)===null||S===void 0?void 0:S.type)==="start-attributes"&&(this.result+=")")}if(this.result[this.result.length-1]==="("?this.result=this.result.slice(0,-1):((k=this.previousToken)===null||k===void 0?void 0:k.type)==="attribute"&&(this.options.pugBracketSameLine&&(this.result=this.result.trimRight()),this.result+=")"),this.result[this.result.length-1]===")"&&this.classLiteralAfterAttributes.length>0){let j=this.classLiteralAfterAttributes.splice(0,this.classLiteralAfterAttributes.length);this.result+=`.${j.join(".")}`}this.options.pugClassLocation==="after-attributes"&&(this.possibleClassPosition=this.result.length),(((_=this.nextToken)===null||_===void 0?void 0:_.type)==="text"||((O=this.nextToken)===null||O===void 0?void 0:O.type)==="path")&&(this.result+=" ")}indent(g){let D=`
|
|
213
|
+
${this.indentString.repeat(this.indentLevel)}`;return this.indentLevel++,this.currentLineLength=D.length-1+1+this.options.pugTabWidth,me.debug("indent",{result:D,indentLevel:this.indentLevel,pugTabWidth:this.options.pugTabWidth},this.currentLineLength),D}outdent(g){let D="";return this.previousToken&&this.previousToken.type!=="outdent"&&(g.loc.start.line-this.previousToken.loc.end.line>1&&(D+=`
|
|
214
214
|
`),D+=`
|
|
215
|
-
`),this.indentLevel--,this.currentLineLength=1+this.indentString.repeat(this.indentLevel).length,
|
|
215
|
+
`),this.indentLevel--,this.currentLineLength=1+this.indentString.repeat(this.indentLevel).length,me.debug("outdent",{result:D,indentLevel:this.indentLevel},this.currentLineLength),D}class(g){var D,C,S,k,_,O,j;if(this.options.pugClassNotation==="attribute"){if(this.classLiteralToAttribute.push(g.val),((D=this.previousToken)===null||D===void 0?void 0:D.type)!=="tag"&&((C=this.previousToken)===null||C===void 0?void 0:C.type)!=="class"&&(this.result+="div"),this.nextToken&&["text","newline","indent","eos"].includes((S=this.nextToken)===null||S===void 0?void 0:S.type)){let W=this.classLiteralToAttribute.splice(0,this.classLiteralToAttribute.length);this.result+=`(class=${this.quoteString(W.join(" "))})`,((k=this.nextToken)===null||k===void 0?void 0:k.type)==="text"&&(this.result+=" ")}}else{let W=`.${g.val}`;switch(this.currentLineLength+=W.length,me.debug("before class",{result:this.result,val:W,length:W.length,previousToken:this.previousToken},this.currentLineLength),(_=this.previousToken)===null||_===void 0?void 0:_.type){case void 0:case"newline":case"outdent":case"indent":{let z=this.options.pugExplicitDiv||this.options.pugClassLocation==="after-attributes"?"div":"",Q=`${this.computedIndent}${z}`;this.options.pugClassLocation==="after-attributes"?this.classLiteralAfterAttributes.push(W.slice(1)):Q+=W,this.currentLineLength+=z.length,this.possibleIdPosition=this.result.length+this.computedIndent.length+z.length,this.result+=Q,this.possibleClassPosition=this.result.length;break}case"end-attributes":{let z=this.result.slice(0,this.possibleClassPosition);this.result=[z,W,this.result.slice(this.possibleClassPosition)].join(""),this.possibleClassPosition+=W.length;break}default:{if(this.options.pugClassLocation==="after-attributes")this.classLiteralAfterAttributes.push(W.slice(1));else{let z=this.result.slice(0,this.possibleClassPosition);this.result=[z,W,this.result.slice(this.possibleClassPosition)].join(""),this.possibleClassPosition+=W.length}break}}if(this.options.pugClassLocation==="after-attributes"&&this.classLiteralAfterAttributes.length>0){let z=this.result.slice(0,this.possibleClassPosition);if(["text","newline","indent","outdent","eos","code",":",void 0].includes((O=this.nextToken)===null||O===void 0?void 0:O.type)){let Q=this.classLiteralAfterAttributes.splice(0,this.classLiteralAfterAttributes.length);z+="."+Q.join(".")}this.result=[z,this.result.slice(this.possibleClassPosition)].join(""),this.possibleClassPosition=this.result.length,this.replaceTagWithLiteralIfPossible(/div\./,".")}me.debug("after class",{result:this.result,val:W,length:W.length},this.currentLineLength),((j=this.nextToken)===null||j===void 0?void 0:j.type)==="text"&&(this.currentLineLength+=1,this.result+=" ")}}eos(g){for(;this.result[this.result.length-1]===`
|
|
216
216
|
`;)this.result=this.result.slice(0,-1);this.result+=`
|
|
217
217
|
`}comment(g){var D;let C=this.computedIndent;if(/^ prettier-ignore($|[: ])/.test(g.val)){let S=this.getNextToken();if(S){let k=S.type==="newline",_=0;for(;S;){let{type:O}=S;if(O==="newline"&&_===0)if(k)k=!1;else break;else if(O==="indent")_++;else if(O==="outdent"&&(_--,_<=0)){_<0&&this.indentLevel--;break}S=this.getNextToken()}if(S){let O=this.getUnformattedContentLines(g,S),j=O.pop();j!==void 0&&O.push(j.trimRight()),C+=O.join(`
|
|
218
|
-
`)}}}else this.checkTokenType(this.previousToken,["newline","indent","outdent"],!0)&&(C+=" "),C+="//",g.buffer||(C+="-"),C+=(0,
|
|
218
|
+
`)}}}else this.checkTokenType(this.previousToken,["newline","indent","outdent"],!0)&&(C+=" "),C+="//",g.buffer||(C+="-"),C+=(0,n2.formatPugCommentPreserveSpaces)(g.val,this.options.pugCommentPreserveSpaces),((D=this.nextToken)===null||D===void 0?void 0:D.type)==="start-pipeless-text"&&(this.pipelessComment=!0);return C}newline(g){let D="";return this.previousToken&&g.loc.start.line-this.previousToken.loc.end.line>1&&(D+=`
|
|
219
219
|
`),D+=`
|
|
220
|
-
`,this.currentLineLength=1+this.indentString.repeat(this.indentLevel).length,
|
|
220
|
+
`,this.currentLineLength=1+this.indentString.repeat(this.indentLevel).length,me.debug("newline",{result:D,indentLevel:this.indentLevel},this.currentLineLength),D}text(g){var D,C,S;let k="",_=g.val,O=!1;if(this.pipelessText){switch((D=this.previousToken)===null||D===void 0?void 0:D.type){case"newline":_.trim().length>0&&(k+=this.indentString.repeat(this.indentLevel+1));break;case"start-pipeless-text":k+=this.indentString;break}this.pipelessComment&&(_=(0,n2.formatPugCommentPreserveSpaces)(_,this.options.pugCommentPreserveSpaces,!0))}else{if(this.nextToken&&_[_.length-1]===" ")switch(this.nextToken.type){case"interpolated-code":case"start-pug-interpolation":O=!0;break}switch(_=_.replace(/\s\s+/g," "),(C=this.previousToken)===null||C===void 0?void 0:C.type){case"newline":k+=this.indentString.repeat(this.indentLevel),/^ .+$/.test(_)&&(k+=`|
|
|
221
221
|
`,k+=this.indentString.repeat(this.indentLevel)),k+="|",(/.*\S.*/.test(g.val)||((S=this.nextToken)===null||S===void 0?void 0:S.type)==="start-pug-interpolation")&&(k+=" ");break;case"indent":case"outdent":k+=this.computedIndent,/^ .+$/.test(_)&&(k+=`|
|
|
222
222
|
`,k+=this.indentString.repeat(this.indentLevel)),k+="|",/.*\S.*/.test(g.val)&&(k+=" ");break;case"interpolated-code":case"end-pug-interpolation":/^ .+$/.test(_)&&(k+=" ");break}_=_.trim(),_=this.formatText(_),_=_.replace(/#(\{|\[)/g,"\\#$1")}return this.checkTokenType(this.previousToken,["tag","id","interpolation","call","&attributes","filter"])&&(_=` ${_}`),k+=_,O&&(k+=" "),k}["interpolated-code"](g){var D;let C="";switch((D=this.previousToken)===null||D===void 0?void 0:D.type){case"tag":case"class":case"id":case"end-attributes":C=" ";break;case"start-pug-interpolation":C="| ";break;case"indent":case"newline":case"outdent":C=this.computedIndent,C+=this.pipelessText?this.indentString:"| ";break}return C+=g.mustEscape?"#":"!",C+=(0,Ie.handleBracketSpacing)(this.options.pugBracketSpacing,g.val.trim(),["{","}"]),C}code(g){let D=this.computedIndent;!g.mustEscape&&g.buffer&&(D+="!"),D+=g.buffer?"=":"-";let C=this.options.pugSemi;C&&(g.mustEscape||g.buffer)&&(C=!1);let S=g.val;try{let k=S;S=(0,nr.format)(S,{parser:"babel",...this.codeInterpolationOptions,semi:C,endOfLine:"lf"}),S=S.slice(0,-1),S[0]===";"&&(S=S.slice(1)),S.includes(`
|
|
223
|
-
`)&&(S=k)}catch(k){
|
|
224
|
-
${this.indentString.repeat(this.indentLevel)}`;if(((D=this.previousToken)===null||D===void 0?void 0:D.type)==="dot"){let S=(0,Ie.previousTagToken)(this.tokens,this.currentIndex),k;switch(S==null?void 0:S.val){case"script":k=(0,
|
|
225
|
-
`;break;case"interpolated-code":W=!0,j+=O.mustEscape?"#":"!",j+=`{${O.val}}`;break;default:
|
|
226
|
-
code: \`${j.trim()}\``),
|
|
227
|
-
You used interpolated code in your pipeless script tag, so you may ignore this warning.`),
|
|
228
|
-
Found ${k} ${
|
|
229
|
-
Unexpected error for parser ${k}.`,
|
|
230
|
-
`).map(
|
|
223
|
+
`)&&(S=k)}catch(k){me.warn("[PugPrinter]:",k)}return D+=` ${S}`,D}id(g){var D;let C=`#${g.val}`;switch(this.currentLineLength+=C.length,(D=this.previousToken)===null||D===void 0?void 0:D.type){case void 0:case"newline":case"outdent":case"indent":{let S=this.options.pugExplicitDiv?"div":"",k=`${this.computedIndent}${S}${C}`;this.currentLineLength+=S.length,this.result+=k,this.possibleClassPosition=this.result.length;break}default:{let S=this.result.slice(0,this.possibleIdPosition);this.possibleClassPosition+=C.length,this.result=[S,C,this.result.slice(this.possibleIdPosition)].join("");break}}}["start-pipeless-text"](g){var D;this.pipelessText=!0;let C=`
|
|
224
|
+
${this.indentString.repeat(this.indentLevel)}`;if(((D=this.previousToken)===null||D===void 0?void 0:D.type)==="dot"){let S=(0,Ie.previousTagToken)(this.tokens,this.currentIndex),k;switch(S==null?void 0:S.val){case"script":k=(0,yk.getScriptParserName)((0,Ie.previousTypeAttributeToken)(this.tokens,this.currentIndex));break;case"style":k="css";break;default:break}if(k){let _=this.currentIndex+1,O=this.tokens[_],j="",W=!1;for(;O&&(O==null?void 0:O.type)!=="end-pipeless-text";){switch(O.type){case"text":j+=O.val;break;case"newline":j+=`
|
|
225
|
+
`;break;case"interpolated-code":W=!0,j+=O.mustEscape?"#":"!",j+=`{${O.val}}`;break;default:me.warn("[PugPrinter:start-pipeless-text]:","Unhandled token for pipeless script tag:",JSON.stringify(O));break}_++,O=this.tokens[_]}try{C=(0,nr.format)(j,{parser:k,...this.codeInterpolationOptions})}catch(Q){if(!W)throw me.error(Q),Q;let ee=["[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."];ee.push(`
|
|
226
|
+
code: \`${j.trim()}\``),ee.push(`
|
|
227
|
+
You used interpolated code in your pipeless script tag, so you may ignore this warning.`),fk.types.isNativeError(Q)?ee.push(`
|
|
228
|
+
Found ${k} ${Q.name}: ${Q.message}.`):(me.debug("typeof error:",typeof Q),ee.push(`
|
|
229
|
+
Unexpected error for parser ${k}.`,Q)),me.warn(...ee),C=j}C=C.trimRight();let z=this.indentString.repeat(this.indentLevel+1);C=C.split(`
|
|
230
|
+
`).map(Q=>Q?z+Q:"").join(`
|
|
231
231
|
`),C=`
|
|
232
232
|
${C}`,O=this.tokens[_-1],(O==null?void 0:O.type)==="text"&&O.val===""&&(C+=`
|
|
233
|
-
`),this.currentIndex=_-1}}return C}["end-pipeless-text"](g){return this.pipelessText=!1,this.pipelessComment=!1,""}doctype(g){let D=`${this.computedIndent}doctype`;return g.val&&(D+=` ${g.val}`),D}dot(g){return"."}block(g){let D=`${this.computedIndent}block `;return g.mode!=="replace"&&(D+=`${g.mode} `),D+=g.val,D}extends(g){return`${this.options.pugSingleFileComponentIndentation?this.indentString:""}extends `}path(g){let D="";return this.checkTokenType(this.previousToken,["include","filter"])&&(D+=" "),D+=g.val,D}["start-pug-interpolation"](g){var D,C;let S="";return((D=this.tokens[this.currentIndex-2])===null||D===void 0?void 0:D.type)==="newline"&&((C=this.previousToken)===null||C===void 0?void 0:C.type)==="text"&&this.previousToken.val.trim().length===0&&(S+=this.indentString.repeat(this.indentLevel+1)),this.currentlyInPugInterpolation=!0,S+="#[",S}["end-pug-interpolation"](g){return this.currentlyInPugInterpolation=!1,"]"}interpolation(g){let D=`${this.computedIndent}#{${g.val}}`;return this.currentLineLength+=D.length,this.possibleIdPosition=this.result.length+D.length,this.possibleClassPosition=this.result.length+D.length,D}include(g){return`${this.computedIndent}include`}filter(g){return`${this.computedIndent}:${g.val}`}call(g){let D=`${this.computedIndent}+${g.val}`,C=g.args;return C&&(C=C.trim(),C=C.replace(/\s\s+/g," "),D+=`(${C})`),this.currentLineLength+=D.length,this.possibleIdPosition=this.result.length+D.length,this.possibleClassPosition=this.result.length+D.length,D}mixin(g){let D=`${this.computedIndent}mixin ${g.val}`,C=g.args;return C&&(C=C.trim(),C=C.replace(/\s\s+/g," "),D+=`(${C})`),D}if(g){let D=this.computedIndent,C=/^!\((.*)\)$/.exec(g.val);return
|
|
233
|
+
`),this.currentIndex=_-1}}return C}["end-pipeless-text"](g){return this.pipelessText=!1,this.pipelessComment=!1,""}doctype(g){let D=`${this.computedIndent}doctype`;return g.val&&(D+=` ${g.val}`),D}dot(g){return"."}block(g){let D=`${this.computedIndent}block `;return g.mode!=="replace"&&(D+=`${g.mode} `),D+=g.val,D}extends(g){return`${this.options.pugSingleFileComponentIndentation?this.indentString:""}extends `}path(g){let D="";return this.checkTokenType(this.previousToken,["include","filter"])&&(D+=" "),D+=g.val,D}["start-pug-interpolation"](g){var D,C;let S="";return((D=this.tokens[this.currentIndex-2])===null||D===void 0?void 0:D.type)==="newline"&&((C=this.previousToken)===null||C===void 0?void 0:C.type)==="text"&&this.previousToken.val.trim().length===0&&(S+=this.indentString.repeat(this.indentLevel+1)),this.currentlyInPugInterpolation=!0,S+="#[",S}["end-pug-interpolation"](g){return this.currentlyInPugInterpolation=!1,"]"}interpolation(g){let D=`${this.computedIndent}#{${g.val}}`;return this.currentLineLength+=D.length,this.possibleIdPosition=this.result.length+D.length,this.possibleClassPosition=this.result.length+D.length,D}include(g){return`${this.computedIndent}include`}filter(g){return`${this.computedIndent}:${g.val}`}call(g){let D=`${this.computedIndent}+${g.val}`,C=g.args;return C&&(C=C.trim(),C=C.replace(/\s\s+/g," "),D+=`(${C})`),this.currentLineLength+=D.length,this.possibleIdPosition=this.result.length+D.length,this.possibleClassPosition=this.result.length+D.length,D}mixin(g){let D=`${this.computedIndent}mixin ${g.val}`,C=g.args;return C&&(C=C.trim(),C=C.replace(/\s\s+/g," "),D+=`(${C})`),D}if(g){let D=this.computedIndent,C=/^!\((.*)\)$/.exec(g.val);return me.debug("[PugPrinter]:",C),D+=C?`unless ${C[1]}`:`if ${g.val}`,D}["mixin-block"](g){return`${this.computedIndent}block`}else(g){return`${this.computedIndent}else`}["&attributes"](g){let D=`&attributes(${g.val})`;return this.currentLineLength+=D.length,D}["text-html"](g){let D=/^<(.*?)>(.*)<\/(.*?)>$/.exec(g.val);if(me.debug("[PugPrinter]:",D),D)return`${this.computedIndent}${D[1]} ${D[2]}`;let C=Object.entries(hk.DOCTYPE_SHORTCUT_REGISTRY).find(([S])=>S===g.val.toLowerCase());return C?`${this.computedIndent}${C[1]}`:`${this.computedIndent}${g.val}`}each(g){let D=`${this.computedIndent}each ${g.val}`;return g.key!==null&&(D+=`, ${g.key}`),D+=` in ${g.code}`,D}eachOf(g){let D=g.value.trim();D=(0,nr.format)(D,{parser:"babel",...this.codeInterpolationOptions,semi:!1}),D[0]===";"&&(D=D.slice(1)),D=(0,Ie.unwrapLineFeeds)(D);let C=g.code.trim();return`${this.computedIndent}each ${D} of ${C}`}while(g){return`${this.computedIndent}while ${g.val}`}case(g){return`${this.computedIndent}case ${g.val}`}when(g){return`${this.computedIndent}when ${g.val}`}[":"](g){return this.possibleIdPosition=this.result.length+2,this.possibleClassPosition=this.result.length+2,": "}default(g){return`${this.computedIndent}default`}["else-if"](g){return`${this.computedIndent}else if ${g.val}`}blockcode(g){return`${this.computedIndent}-`}yield(g){return`${this.computedIndent}yield`}slash(g){var D;let C="/";return((D=this.nextToken)===null||D===void 0?void 0:D.type)==="text"&&(C+=" "),C}};Io.PugPrinter=r2});var Sk=ge(Xe=>{"use strict";var bk=Xe&&Xe.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(Xe,"__esModule",{value:!0});Xe.defaultOptions=Xe.options=Xe.printers=Xe.parsers=Xe.languages=Xe.plugin=void 0;var Ek=bk(yD()),vk=uf(),Ck=Lt(),xk=OD(),Ak=i2(),ma=(0,vk.createLogger)(console);Xe.plugin={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(f,g,D){ma.debug("[parsers:pug:parse]:",{text:f});let C=f.replace(/^\s*\n/,""),S=/^\s*/.exec(C);if(S==null?void 0:S[0]){let O=new RegExp(`(^|\\n)${S[0]}`,"g");C=C.replace(O,"$1")}let k=C,_=(0,Ek.default)(k);return{content:k,tokens:_}},astFormat:"pug-ast",hasPragma(f){return f.startsWith(`//- @prettier
|
|
234
234
|
`)||f.startsWith(`//- @format
|
|
235
|
-
`)},locStart(f){return ma.debug("[parsers:pug:locStart]:",{node:f}),0},locEnd(f){return ma.debug("[parsers:pug:locEnd]:",{node:f}),0},preprocess(f,g){return ma.debug("[parsers:pug:preprocess]:",{text:f}),f}}},printers:{"pug-ast":{print(f,g,D){let C=f.stack[0],{content:S,tokens:k}=C,_=(0,
|
|
236
|
-
${f}`}}},options:
|
|
235
|
+
`)},locStart(f){return ma.debug("[parsers:pug:locStart]:",{node:f}),0},locEnd(f){return ma.debug("[parsers:pug:locEnd]:",{node:f}),0},preprocess(f,g){return ma.debug("[parsers:pug:preprocess]:",{text:f}),f}}},printers:{"pug-ast":{print(f,g,D){let C=f.stack[0],{content:S,tokens:k}=C,_=(0,xk.convergeOptions)(g),j=new Ak.PugPrinter(S,k,_).build();return ma.debug("[printers:pug-ast:print]:",j),j},embed(f,g,D,C){return null},insertPragma(f){return`//- @prettier
|
|
236
|
+
${f}`}}},options:Ck.options,defaultOptions:{}};Xe.languages=Xe.plugin.languages;Xe.parsers=Xe.plugin.parsers;Xe.printers=Xe.plugin.printers;Xe.options=Xe.plugin.options;Xe.defaultOptions=Xe.plugin.defaultOptions});return Sk();})();
|
|
237
237
|
/*
|
|
238
238
|
object-assign
|
|
239
239
|
(c) Sindre Sorhus
|