chromium-formatters 1.0.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/LICENSE +28 -0
- package/README.md +73 -0
- package/dist/main.cjs +11394 -0
- package/dist/main.esm.js +11349 -0
- package/dist/main.esm.min.js +1 -0
- package/dist/main.min.cjs +1 -0
- package/package.json +36 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var t=Object.defineProperty;Object.getOwnPropertyNames,Object.getOwnPropertyDescriptor,Object.prototype.hasOwnProperty;var e=t=>t;function i(t,i){this[t]=e.bind(null,i)}var r=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0,configurable:!0,set:i.bind(r,n)})};r({},{default:()=>Ji});var n={};r(n,{upperBound:()=>m,swap:()=>a,sortRange:()=>l,removeElement:()=>s,nearestIndexFromEnd:()=>b,nearestIndexFromBeginning:()=>x,mergeOrdered:()=>u,lowerBound:()=>f,intersectOrdered:()=>p,binaryIndexOf:()=>h,assertArrayIsSorted:()=>v,arrayDoesNotContainNullOrUndefined:()=>y,DEFAULT_COMPARATOR:()=>d});var s=(t,e,i)=>{let r=t.indexOf(e);if(-1===r)return!1;if(i)return t.splice(r,1),!0;for(let i=r+1,n=t.length;i<n;++i)t[i]!==e&&(t[r++]=t[i]);return t.length=r,!0};function a(t,e,i){const r=t[e];t[e]=t[i],t[i]=r}function o(t,e,i,r,n,s){if(r<=i)return;const l=function(t,e,i,r,n){const s=t[n];a(t,r,n);let o=i;for(let n=i;n<r;++n)e(t[n],s)<0&&(a(t,o,n),++o);return a(t,r,o),o}(t,e,i,r,Math.floor(Math.random()*(r-i))+i);n<l&&o(t,e,i,l-1,n,s),l<s&&o(t,e,l+1,r,n,s)}function l(t,e,i,r,n,s){return 0===i&&r===t.length-1&&0===n&&s>=r?t.sort(e):o(t,e,i,r,n,s),t}var h=(t,e,i)=>{const r=f(t,e,i);return r<t.length&&0===i(e,t[r])?r:-1};function c(t,e,i,r){const n=[];let s=0,a=0;for(;s<t.length&&a<e.length;){const o=i(t[s],e[a]);!r&&o||n.push(o<=0?t[s]:e[a]),o<=0&&s++,o>=0&&a++}if(r){for(;s<t.length;)n.push(t[s++]);for(;a<e.length;)n.push(e[a++])}return n}var p=(t,e,i)=>c(t,e,i,!1),u=(t,e,i)=>c(t,e,i,!0),d=(t,e)=>t<e?-1:t>e?1:0;function f(t,e,i,r,n){let s=r||0,a=void 0!==n?n:t.length;for(;s<a;){const r=s+a>>1;i(e,t[r])>0?s=r+1:a=r}return a}function m(t,e,i,r,n){let s=r||0,a=void 0!==n?n:t.length;for(;s<a;){const r=s+a>>1;i(e,t[r])>=0?s=r+1:a=r}return a}function g(t,e,i){const r="END"===i;if(0===t.length)return null;let n=0,s=t.length-1,a=0,o=!1,l=!1,h=0;do{h=n+(s-n)/2,a=r?Math.ceil(h):Math.floor(h),o=e(t[a]),l=o===r,l?n=Math.min(s,a+(n===a?1:0)):s=Math.max(n,a+(s===a?-1:0))}while(s!==n);return e(t[n])?n:null}function x(t,e){return g(t,e,"BEGINNING")}function b(t,e){return g(t,e,"END")}function y(t){return!t.includes(null)&&!t.includes(void 0)}function v(t,e){const i=e||d;for(let e=0;e<t.length-1;e++){const r=t[e],n=t[e+1];if(i(r,n)>0)throw new Error(`Array is not sorted at index ${e}: ${JSON.stringify(r)} > ${JSON.stringify(n)}`)}}var k={};r(k,{trimURL:()=>N,trimMiddle:()=>K,trimEndWithMaxLength:()=>Q,toTitleCase:()=>F,toSnakeCase:()=>ht,toLowerCaseString:()=>st,toKebabCaseKeys:()=>lt,toKebabCase:()=>ot,toBase64:()=>A,stripLineBreaks:()=>B,stringifyWithPrecision:()=>pt,sprintf:()=>E,reverse:()=>O,replaceLast:()=>ct,replaceControlCharacters:()=>V,removeURLFragment:()=>z,regexSpecialCharacters:()=>U,naturalOrderComparator:()=>X,isWhitespace:()=>P,isExtendedKebabCase:()=>M,hashCode:()=>G,formatAsJSLiteral:()=>_,findUnclosedCssQuote:()=>it,findLineEndingIndexes:()=>I,findIndexesOfSubString:()=>T,filterRegex:()=>q,escapeForURLPattern:()=>Y,escapeForRegExp:()=>Z,escapeCharacters:()=>w,createSearchRegex:()=>W,createPlainTextSearchRegex:()=>nt,countWtf8Bytes:()=>R,countUnmatchedLeftParentheses:()=>rt,concatBase64:()=>ut,compare:()=>H,collapseWhitespace:()=>L,caseInsensetiveComparator:()=>$,base64ToSize:()=>J,SINGLE_QUOTE:()=>tt,DOUBLE_QUOTE:()=>et});var w=(t,e)=>{let i=!1;for(let r=0;r<e.length;++r)if(-1!==t.indexOf(e.charAt(r))){i=!0;break}if(!i)return String(t);let r="";for(let i=0;i<t.length;++i)-1!==e.indexOf(t.charAt(i))&&(r+="\\"),r+=t.charAt(i);return r},S=(t,e)=>t.toString(16).toUpperCase().padStart(e,"0"),C=new Map([["\b","\\b"],["\f","\\f"],["\n","\\n"],["\r","\\r"],["\t","\\t"],["\v","\\v"],["'","\\'"],["\\","\\\\"],["\x3c!--","\\x3C!--"],["<script","\\x3Cscript"],["</script","\\x3C/script"]]),_=t=>{const e=/(\\|<(?:!--|\/?script))|(\p{Control})|(\p{Surrogate})/gu,i=/(\\|'|<(?:!--|\/?script))|(\p{Control})|(\p{Surrogate})/gu,r=(t,e,i,r)=>{if(i){if(C.has(i))return C.get(i);return"\\x"+S(i.charCodeAt(0),2)}if(r){return"\\u"+S(r.charCodeAt(0),4)}return e?C.get(e)||"":t};let n="",s="";return t.includes("'")?t.includes('"')?t.includes("`")||t.includes("${")?(s="'",n=t.replaceAll(i,r)):(s="`",n=t.replaceAll(e,r)):(s='"',n=t.replaceAll(e,r)):(s="'",n=t.replaceAll(e,r)),`${s}${n}${s}`},E=(t,...e)=>{let i=0;return t.replaceAll(/%(?:(\d+)\$)?(?:\.(\d*))?([%dfs])/g,(t,r,n,s)=>{if("%"===s)return"%";if(void 0!==r&&(i=parseInt(r,10)-1,i<0))throw new RangeError(`Invalid parameter index ${i+1}`);if(i>=e.length)throw new RangeError(`Expected at least ${i+1} format parameters, but only ${e.length} where given.`);if("s"===s){const t=String(e[i++]);return void 0!==n?t.substring(0,Number(n)):t}let a=Number(e[i++]);return isNaN(a)&&(a=0),"d"===s?String(Math.floor(a)).padStart(Number(n),"0"):void 0!==n?a.toFixed(Number(n)):String(a)})},A=t=>{function e(t){return t<26?t+65:t<52?t+71:t<62?t-4:62===t?43:63===t?47:65}const i=(new TextEncoder).encode(t.toString()),r=i.length;let n,s="";if(0===r)return s;let a=0;for(let t=0;t<r;t++)n=t%3,a|=i[t]<<(16>>>n&24),2===n&&(s+=String.fromCharCode(e(a>>>18&63),e(a>>>12&63),e(a>>>6&63),e(63&a)),a=0);return 0===n?s+=String.fromCharCode(e(a>>>18&63),e(a>>>12&63),61,61):1===n&&(s+=String.fromCharCode(e(a>>>18&63),e(a>>>12&63),e(a>>>6&63),61)),s},T=(t,e)=>{const i=[];let r=t.indexOf(e);for(;-1!==r;)i.push(r),r=t.indexOf(e,r+e.length);return i},I=t=>{const e=T(t,"\n");return e.push(t.length),e},P=t=>/^\s*$/.test(t),N=(t,e)=>{let i=t.replace(/^(https|http|file):\/\//i,"");return e&&i.toLowerCase().startsWith(e.toLowerCase())&&(i=i.substr(e.length)),i},L=t=>t.replace(/[\s\xA0]+/g," "),O=t=>t.split("").reverse().join(""),V=t=>t.replace(/[\0-\x08\x0B\f\x0E-\x1F\x80-\x9F]/g,"�"),R=t=>{let e=0;for(let i=0;i<t.length;i++){const r=t.charCodeAt(i);if(r<=127)e++;else if(r<=2047)e+=2;else if(r<55296||57343<r)e+=3;else{if(r<=56319&&i+1<t.length){const r=t.charCodeAt(i+1);if(56320<=r&&r<=57343){e+=4,i++;continue}}e+=3}}return e},B=t=>t.replace(/(\r)?\n/g,""),D=/^([a-z0-9]+(?:-[a-z0-9]+)*\.)*[a-z0-9]+(?:-[a-z0-9]+)*$/,M=t=>D.test(t),F=t=>t.substring(0,1).toUpperCase()+t.substring(1),z=t=>{const e=new URL(t);return e.hash="",e.toString()},j="^[]{}()\\.^$*+?|-,",U=function(){return j},q=function(t){let e="^(?:.*\\0)?";for(let i=0;i<t.length;++i){let r=t.charAt(i);-1!==j.indexOf(r)&&(r="\\"+r),e+="[^\\0"+r+"]*"+r}return new RegExp(e,"i")},W=function(t,e,i,r=!1){const n=e?"g":"gi";let s;if(i)try{s=new RegExp(t,n)}catch{}return s||(s=nt(t,n)),r&&s&&(s=new RegExp(`\\b${s.source}\\b`,n)),s},$=function(t,e){return(t=t.toUpperCase())===(e=e.toUpperCase())?0:t>e?1:-1},G=function(t){if(!t)return 0;const e=4294967291;let i=0,r=1;for(let n=0;n<t.length;n++){i=(i+r*(1506996573*t.charCodeAt(n)))%e,r=1345575271*r%e}return i=(i+r*(e-1))%e,Math.abs(0|i)},H=(t,e)=>t>e?1:t<e?-1:0,K=(t,e)=>{if(t.length<=e)return t;const i=new Intl.Segmenter(void 0,{granularity:"grapheme"});if(e<=1)return"…";const r=e-1,n=Math.ceil(r/2),s=Math.floor(r/2);let a=0,o=0;const l=[];for(const{segment:e,index:r}of i.segment(t))a++,a===n&&(o=r+e.length),s>0&&(l.push(r),l.length>s&&l.shift());if(a<=e)return t;const h=s>0?l[0]:t.length;return t.slice(0,o)+"…"+t.slice(h)},Q=(t,e)=>{if(t.length<=e)return t;const i=new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(t)[Symbol.iterator]();let r=0;for(let n=0;n<=e-1;n++){const e=i.next();if(e.done)return t;r=e.value.index}for(let e=0;e<1;e++)if(i.next().done)return t;return t.slice(0,r)+"…"},Z=t=>w(t,j),Y=t=>w(t,"?+*(){}\\:"),X=(t,e)=>{const i=/^\d+|^\D+/;let r,n,s,a;for(;;){if(!t)return e?-1:0;if(!e)return 1;if(r=t.match(i)[0],n=e.match(i)[0],s=!Number.isNaN(Number(r)),a=!Number.isNaN(Number(n)),s&&!a)return-1;if(a&&!s)return 1;if(s&&a){const t=Number(r)-Number(n);if(t)return t;if(r.length!==n.length)return Number(r)||Number(n)?n.length-r.length:r.length-n.length}else if(r!==n)return r<n?-1:1;t=t.substring(r.length),e=e.substring(n.length)}},J=function(t){if(!t)return 0;let e=3*t.length/4;return"="===t[t.length-1]&&e--,t.length>1&&"="===t[t.length-2]&&e--,e},tt="'",et='"',it=function(t){let e="";for(let i=0;i<t.length;++i){const r=t[i];"\\"!==r?r!==tt&&r!==et||(e===r?e="":""===e&&(e=r)):i++}return e},rt=t=>{const e=t.replace(/'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"/g,"");let i=0;for(const t of e)"("===t?i++:")"===t&&i>0&&i--;return i},nt=function(t,e){let i="";for(let e=0;e<t.length;++e){const r=t.charAt(e);-1!==U().indexOf(r)&&(i+="\\"),i+=r}return new RegExp(i,e||"")},st=function(t){return t.toLowerCase()},at=/[A-Z]{2,}(?=[A-Z0-9][a-z0-9]+|\b|_)|[A-Za-z][0-9]+[a-z]?|[A-Z]?[a-z]+|[0-9][A-Za-z]+|[A-Z]|[0-9]+|[.]/g,ot=function(t){return t.match?.(at)?.map(t=>t.toLowerCase()).join("-").replaceAll("-.-",".")||t};function lt(t){return Object.fromEntries(Object.entries(t).map(([t,e])=>[ot(t),e]))}function ht(t){if(!t)return"";return t.replace(/(\p{L})(\p{N})/gu,"$1_$2").replace(/(\p{Lu}+)(\p{Lu}\p{Ll})/gu,"$1_$2").replace(/(\p{Ll}|\p{N})(\p{Lu})/gu,"$1_$2").toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"_").replace(/^_|_$/g,"")}var ct=function(t,e,i){const r=t.lastIndexOf(e);return-1===r?t:t.slice(0,r)+t.slice(r).replace(e,i)},pt=function(t,e=2){if(0===e)return t.toFixed(0);const i=t.toFixed(e).replace(/\.?0*$/,"");return"-0"===i?"0":i},ut=function(t,e){if(0===t.length||!t.endsWith("="))return t+e;const i=t.substring(0,t.length-4),r=t.substring(t.length-4);return i+globalThis.btoa(globalThis.atob(r)+globalThis.atob(e))};class dt{#t;#e;#i;#r;#n=-1;#s={};constructor(t){this.#t=t}format(t,e,i,r){this.#r=e,this.#i=i,this.#e=r,this.#s={},this.#n=-1;const n=Ki("text/css"),s=this.#t.setEnforceSpaceBetweenWords(!1);n(t.substring(this.#i,this.#e),this.#a.bind(this)),this.#t.setEnforceSpaceBetweenWords(s)}#a(t,e,i){i+=this.#i;const r=n.lowerBound(this.#r,i,n.DEFAULT_COMPARATOR);r!==this.#n&&(this.#s.eatWhitespace=!0),e&&(/^property/.test(e)||/^variable-2/.test(e))&&!this.#s.inPropertyValue&&(this.#s.seenProperty=!0),this.#n=r;if(/^(?:\r?\n|[\t\f\r ])+$/.test(t))this.#s.eatWhitespace||this.#t.addSoftSpace();else if(this.#s.eatWhitespace=!1,"\n"!==t){if("}"!==t&&(this.#s.afterClosingBrace&&this.#t.addNewLine(!0),this.#s.afterClosingBrace=!1),"}"===t)this.#s.inPropertyValue&&this.#t.addNewLine(),this.#t.decreaseNestingLevel(),this.#s.afterClosingBrace=!0,this.#s.inPropertyValue=!1;else{if(":"===t&&!this.#s.inPropertyValue&&this.#s.seenProperty)return this.#t.addToken(t,i),this.#t.addSoftSpace(),this.#s.eatWhitespace=!0,this.#s.inPropertyValue=!0,void(this.#s.seenProperty=!1);if("{"===t)return this.#t.addSoftSpace(),this.#t.addToken(t,i),this.#t.addNewLine(),void this.#t.increaseNestingLevel()}this.#t.addToken(t.replace(/(?:\r?\n|[\t\f\r ])+$/g,""),i),"comment"!==e||this.#s.inPropertyValue||this.#s.seenProperty||this.#t.addNewLine(),";"===t&&this.#s.inPropertyValue?(this.#s.inPropertyValue=!1,this.#t.addNewLine()):"}"===t&&this.#t.addNewLine()}}}var ft={},mt={},gt={},xt={},bt={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0};function yt(t,e){for(var i,r=!1;null!=(i=t.next());){if(r&&"/"==i){e.tokenize=null;break}r="*"==i}return["comment","comment"]}function vt(t){for(var e={},i=0;i<t.length;++i)e[t[i].toLowerCase()]=!0;return e}var kt=vt(["domain","regexp","url","url-prefix"]),wt=vt(["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"]),St=vt(["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme"]),Ct=vt(["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"]),_t=vt(["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"]),Et=vt(["border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"]),At=vt(["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),Tt=vt(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),It=vt(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"]),Pt=vt(["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"]),Nt={toString:function(){return"CodeMirror.Pass"}};function Lt(){}function Ot(t,e,i,r,n){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);for(var s=r||0,a=n||0;;){var o=t.indexOf("\t",s);if(o<0||o>=e)return a+(e-s);a+=o-s,a+=i-a%i,s=o+1}}function Vt(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),mt[t]=e}function Rt(t,e){gt[t]=e}function Bt(t){if("string"==typeof t&>.hasOwnProperty(t))t=gt[t];else if(t&&"string"==typeof t.name&>.hasOwnProperty(t.name)){var e=gt[t.name];"string"==typeof e&&(e={name:e}),i=e,r=t,Object.create?n=Object.create(i):(Lt.prototype=i,n=new Lt),r&&function(t,e,i){for(var r in e||(e={}),t)!t.hasOwnProperty(r)||!1===i&&e.hasOwnProperty(r)||(e[r]=t[r])}(r,n),(t=n).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Bt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Bt("application/json")}var i,r,n;return"string"==typeof t?{name:t}:t||{name:"null"}}function Dt(t,e){e=Bt(e);var i=mt[e.name];if(!i)return Dt(t,"text/plain");var r=i(t,e);if(xt.hasOwnProperty(e.name)){var n=xt[e.name];for(var s in n)n.hasOwnProperty(s)&&(r.hasOwnProperty(s)&&(r["_"+s]=r[s]),r[s]=n[s])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var a in e.modeProps)r[a]=e.modeProps[a];return r}Vt("null",function(){return{token:function(t){return t.skipToEnd()}}}),Vt("xml",function(t,e){var i,r,n=t.indentUnit,s={},a=e.htmlMode?bt:xmlConfig;for(var o in a)s[o]=a[o];for(var o in e)s[o]=e[o];function l(t,e){function r(i){return e.tokenize=i,i(t,e)}var n=t.next();return"<"==n?t.eat("!")?t.eat("[")?t.match("CDATA[")?r(c("atom","]]>")):null:t.match("--")?r(c("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),r(p(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=c("meta","?>"),"meta"):(i=t.eat("/")?"closeTag":"openTag",e.tokenize=h,"tag bracket"):"&"==n?(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error":(t.eatWhile(/[^&<]/),null)}function h(t,e){var r,n,s=t.next();if(">"==s||"/"==s&&t.eat(">"))return e.tokenize=l,i=">"==s?"endTag":"selfcloseTag","tag bracket";if("="==s)return i="equals",null;if("<"==s){e.tokenize=l,e.state=m,e.tagName=e.tagStart=null;var a=e.tokenize(t,e);return a?a+" tag error":"tag error"}return/[\'\"]/.test(s)?(e.tokenize=(r=s,n=function(t,e){for(;!t.eol();)if(t.next()==r){e.tokenize=h;break}return"string"},n.isInAttribute=!0,n),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function c(t,e){return function(i,r){for(;!i.eol();){if(i.match(e)){r.tokenize=l;break}i.next()}return t}}function p(t){return function(e,i){for(var r;null!=(r=e.next());){if("<"==r)return i.tokenize=p(t+1),i.tokenize(e,i);if(">"==r){if(1==t){i.tokenize=l;break}return i.tokenize=p(t-1),i.tokenize(e,i)}}return"meta"}}function u(t,e,i){this.prev=t.context,this.tagName=e||"",this.indent=t.indented,this.startOfLine=i,(s.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function d(t){t.context&&(t.context=t.context.prev)}function f(t,e){for(var i;;){if(!t.context)return;if(i=t.context.tagName,!s.contextGrabbers.hasOwnProperty(i)||!s.contextGrabbers[i].hasOwnProperty(e))return;d(t)}}function m(t,e,i){return"openTag"==t?(i.tagStart=e.column(),g):"closeTag"==t?x:m}function g(t,e,i){return"word"==t?(i.tagName=e.current(),r="tag",v):s.allowMissingTagName&&"endTag"==t?(r="tag bracket",v(t,e,i)):(r="error",g)}function x(t,e,i){if("word"==t){var n=e.current();return i.context&&i.context.tagName!=n&&s.implicitlyClosed.hasOwnProperty(i.context.tagName)&&d(i),i.context&&i.context.tagName==n||!1===s.matchClosing?(r="tag",b):(r="tag error",y)}return s.allowMissingTagName&&"endTag"==t?(r="tag bracket",b(t,e,i)):(r="error",y)}function b(t,e,i){return"endTag"!=t?(r="error",b):(d(i),m)}function y(t,e,i){return r="error",b(t,0,i)}function v(t,e,i){if("word"==t)return r="attribute",k;if("endTag"==t||"selfcloseTag"==t){var{tagName:n,tagStart:a}=i;return i.tagName=i.tagStart=null,"selfcloseTag"==t||s.autoSelfClosers.hasOwnProperty(n)?f(i,n):(f(i,n),i.context=new u(i,n,a==i.indented)),m}return r="error",v}function k(t,e,i){return"equals"==t?w:(s.allowMissing||(r="error"),v(t,0,i))}function w(t,e,i){return"string"==t?S:"word"==t&&s.allowUnquoted?(r="string",v):(r="error",v(t,0,i))}function S(t,e,i){return"string"==t?S:v(t,0,i)}return l.isInText=!0,{startState:function(t){var e={tokenize:l,state:m,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;i=null;var n=e.tokenize(t,e);return(n||i)&&"comment"!=n&&(r=null,e.state=e.state(i||n,t,e),r&&(n="error"==r?n+" error":r)),n},indent:function(t,e,i){var r=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+n;if(r&&r.noIndent)return Nt;if(t.tokenize!=h&&t.tokenize!=l)return i?i.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==s.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+n*(s.multilineTagIndentFactor||1);if(s.alignCDATA&&/<!\[CDATA\[/.test(e))return 0;var a=e&&/^<(\/)?([\w_:\.-]*)/.exec(e);if(a&&a[1])for(;r;){if(r.tagName==a[2]){r=r.prev;break}if(!s.implicitlyClosed.hasOwnProperty(r.tagName))break;r=r.prev}else if(a)for(;r;){var o=s.contextGrabbers[r.tagName];if(!o||!o.hasOwnProperty(a[2]))break;r=r.prev}for(;r&&r.prev&&!r.startOfLine;)r=r.prev;return r?r.indent+n:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:s.htmlMode?"html":"xml",helperType:s.htmlMode?"html":"xml",skipAttribute:function(t){t.state==w&&(t.state=v)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:"closeTag"==t.type}:null},xmlCurrentContext:function(t){for(var e=[],i=t.context;i;i=i.prev)e.push(i.tagName);return e.reverse()}}}),Vt("css",function(t,e){var i=e.inline;e.propertyKeywords||(e=Bt("text/css"));var r,n,s=t.indentUnit,a=e.tokenHooks,o=e.documentTypes||{},l=e.mediaTypes||{},h=e.mediaFeatures||{},c=e.mediaValueKeywords||{},p=e.propertyKeywords||{},u=e.nonStandardPropertyKeywords||{},d=e.fontProperties||{},f=e.counterDescriptors||{},m=e.colorKeywords||{},g=e.valueKeywords||{},x=e.allowNested,b=e.lineComment,y=!0===e.supportsAtComponent,v=!1!==t.highlightNonStandardPropertyKeywords;function k(t,e){return r=e,t}function w(t,e){var i=t.next();if(a[i]){var r=a[i](t,e);if(!1!==r)return r}return"@"==i?(t.eatWhile(/[\w\\\-]/),k("def",t.current())):"="==i||("~"==i||"|"==i)&&t.eat("=")?k(null,"compare"):'"'==i||"'"==i?(e.tokenize=S(i),e.tokenize(t,e)):"#"==i?(t.eatWhile(/[\w\\\-]/),k("atom","hash")):"!"==i?(t.match(/^\s*\w*/),k("keyword","important")):/\d/.test(i)||"."==i&&t.eat(/\d/)?(t.eatWhile(/[\w.%]/),k("number","unit")):"-"!==i?/[,+>*\/]/.test(i)?k(null,"select-op"):"."==i&&t.match(/^-?[_a-z][_a-z0-9-]*/i)?k("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(i)?k(null,i):t.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(t.current())&&(e.tokenize=C),k("variable callee","variable")):/[\w\\\-]/.test(i)?(t.eatWhile(/[\w\\\-]/),k("property","word")):k(null,null):/[\d.]/.test(t.peek())?(t.eatWhile(/[\w.%]/),k("number","unit")):t.match(/^-[\w\\\-]*/)?(t.eatWhile(/[\w\\\-]/),t.match(/^\s*:/,!1)?k("variable-2","variable-definition"):k("variable-2","variable")):t.match(/^\w+-/)?k("meta","meta"):void 0}function S(t){return function(e,i){for(var r,n=!1;null!=(r=e.next());){if(r==t&&!n){")"==t&&e.backUp(1);break}n=!n&&"\\"==r}return(r==t||!n&&")"!=t)&&(i.tokenize=null),k("string","string")}}function C(t,e){return t.next(),t.match(/^\s*[\"\')]/,!1)?e.tokenize=null:e.tokenize=S(")"),k(null,"(")}function _(t,e,i){this.type=t,this.indent=e,this.prev=i}function E(t,e,i,r){return t.context=new _(i,e.indentation()+(!1===r?0:s),t.context),i}function A(t){return t.context.prev&&(t.context=t.context.prev),t.context.type}function T(t,e,i){return N[i.context.type](t,e,i)}function I(t,e,i,r){for(var n=r||1;n>0;n--)i.context=i.context.prev;return T(t,e,i)}function P(t){var e=t.current().toLowerCase();n=g.hasOwnProperty(e)?"atom":m.hasOwnProperty(e)?"keyword":"variable"}var N={top:function(t,e,i){if("{"==t)return E(i,e,"block");if("}"==t&&i.context.prev)return A(i);if(y&&/@component/i.test(t))return E(i,e,"atComponentBlock");if(/^@(-moz-)?document$/i.test(t))return E(i,e,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(t))return E(i,e,"atBlock");if(/^@(font-face|counter-style)/i.test(t))return i.stateArg=t,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(t))return"keyframes";if(t&&"@"==t.charAt(0))return E(i,e,"at");if("hash"==t)n="builtin";else if("word"==t)n="tag";else{if("variable-definition"==t)return"maybeprop";if("interpolation"==t)return E(i,e,"interpolation");if(":"==t)return"pseudo";if(x&&"("==t)return E(i,e,"parens")}return i.context.type},block:function(t,e,i){if("word"==t){var r=e.current().toLowerCase();return p.hasOwnProperty(r)?(n="property","maybeprop"):u.hasOwnProperty(r)?(n=v?"string-2":"property","maybeprop"):x?(n=e.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(n+=" error","maybeprop")}return"meta"==t?"block":x||"hash"!=t&&"qualifier"!=t?N.top(t,e,i):(n="error","block")},maybeprop:function(t,e,i){return":"==t?E(i,e,"prop"):T(t,e,i)},prop:function(t,e,i){if(";"==t)return A(i);if("{"==t&&x)return E(i,e,"propBlock");if("}"==t||"{"==t)return I(t,e,i);if("("==t)return E(i,e,"parens");if("hash"!=t||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(e.current())){if("word"==t)P(e);else if("interpolation"==t)return E(i,e,"interpolation")}else n+=" error";return"prop"},propBlock:function(t,e,i){return"}"==t?A(i):"word"==t?(n="property","maybeprop"):i.context.type},parens:function(t,e,i){return"{"==t||"}"==t?I(t,e,i):")"==t?A(i):"("==t?E(i,e,"parens"):"interpolation"==t?E(i,e,"interpolation"):("word"==t&&P(e),"parens")},pseudo:function(t,e,i){return"meta"==t?"pseudo":"word"==t?(n="variable-3",i.context.type):T(t,e,i)},documentTypes:function(t,e,i){return"word"==t&&o.hasOwnProperty(e.current())?(n="tag",i.context.type):N.atBlock(t,e,i)},atBlock:function(t,e,i){if("("==t)return E(i,e,"atBlock_parens");if("}"==t||";"==t)return I(t,e,i);if("{"==t)return A(i)&&E(i,e,x?"block":"top");if("interpolation"==t)return E(i,e,"interpolation");if("word"==t){var r=e.current().toLowerCase();n="only"==r||"not"==r||"and"==r||"or"==r?"keyword":l.hasOwnProperty(r)?"attribute":h.hasOwnProperty(r)?"property":c.hasOwnProperty(r)?"keyword":p.hasOwnProperty(r)?"property":u.hasOwnProperty(r)?v?"string-2":"property":g.hasOwnProperty(r)?"atom":m.hasOwnProperty(r)?"keyword":"error"}return i.context.type},atComponentBlock:function(t,e,i){return"}"==t?I(t,e,i):"{"==t?A(i)&&E(i,e,x?"block":"top",!1):("word"==t&&(n="error"),i.context.type)},atBlock_parens:function(t,e,i){return")"==t?A(i):"{"==t||"}"==t?I(t,e,i,2):N.atBlock(t,e,i)},restricted_atBlock_before:function(t,e,i){return"{"==t?E(i,e,"restricted_atBlock"):"word"==t&&"@counter-style"==i.stateArg?(n="variable","restricted_atBlock_before"):T(t,e,i)},restricted_atBlock:function(t,e,i){return"}"==t?(i.stateArg=null,A(i)):"word"==t?(n="@font-face"==i.stateArg&&!d.hasOwnProperty(e.current().toLowerCase())||"@counter-style"==i.stateArg&&!f.hasOwnProperty(e.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(t,e,i){return"word"==t?(n="variable","keyframes"):"{"==t?E(i,e,"top"):T(t,e,i)},at:function(t,e,i){return";"==t?A(i):"{"==t||"}"==t?I(t,e,i):("word"==t?n="tag":"hash"==t&&(n="builtin"),"at")},interpolation:function(t,e,i){return"}"==t?A(i):"{"==t||";"==t?I(t,e,i):("word"==t?n="variable":"variable"!=t&&"("!=t&&")"!=t&&(n="error"),"interpolation")}};return{startState:function(t){return{tokenize:null,state:i?"block":"top",stateArg:null,context:new _(i?"block":"top",t||0,null)}},token:function(t,e){if(!e.tokenize&&t.eatSpace())return null;var i=(e.tokenize||w)(t,e);return i&&"object"==typeof i&&(r=i[1],i=i[0]),n=i,"comment"!=r&&(e.state=N[e.state](r,t,e)),n},indent:function(t,e){var i=t.context,r=e&&e.charAt(0),n=i.indent;return"prop"!=i.type||"}"!=r&&")"!=r||(i=i.prev),i.prev&&("}"!=r||"block"!=i.type&&"top"!=i.type&&"interpolation"!=i.type&&"restricted_atBlock"!=i.type?(")"!=r||"parens"!=i.type&&"atBlock_parens"!=i.type)&&("{"!=r||"at"!=i.type&&"atBlock"!=i.type)||(n=Math.max(0,i.indent-s)):n=(i=i.prev).indent),n},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:b,fold:"brace"}}),Vt("javascript",function(t,e){var i,r,n=t.indentUnit,s=e.statementIndent,a=e.jsonld,o=e.json||a,l=!1!==e.trackScope,h=e.typescript,c=e.wordCharacters||/[\w$\xa1-\uffff]/,p=function(){function t(t){return{type:t,style:"keyword"}}var e=t("keyword a"),i=t("keyword b"),r=t("keyword c"),n=t("keyword d"),s=t("operator"),a={type:"atom",style:"atom"};return{if:t("if"),while:e,with:e,else:i,do:i,try:i,finally:i,return:n,break:n,continue:n,new:t("new"),delete:r,void:r,throw:r,debugger:t("debugger"),var:t("var"),const:t("var"),let:t("var"),function:t("function"),catch:t("catch"),for:t("for"),switch:t("switch"),case:t("case"),default:t("default"),in:s,typeof:s,instanceof:s,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:t("this"),class:t("class"),super:t("atom"),yield:r,export:t("export"),import:t("import"),extends:r,await:r}}(),u=/[+\-*&%=<>!?|~^@]/,d=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function f(t,e,n){return i=t,r=n,e}function m(t,e){var i,r=t.next();if('"'==r||"'"==r)return e.tokenize=(i=r,function(t,e){var r,n=!1;if(a&&"@"==t.peek()&&t.match(d))return e.tokenize=m,f("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=i||n);)n=!n&&"\\"==r;return n||(e.tokenize=m),f("string","string")}),e.tokenize(t,e);if("."==r&&t.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return f("number","number");if("."==r&&t.match(".."))return f("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return f(r);if("="==r&&t.eat(">"))return f("=>","operator");if("0"==r&&t.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return f("number","number");if(/\d/.test(r))return t.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),f("number","number");if("/"==r)return t.eat("*")?(e.tokenize=g,g(t,e)):t.eat("/")?(t.skipToEnd(),f("comment","comment")):Zt(t,e,1)?(function(t){for(var e,i=!1,r=!1;null!=(e=t.next());){if(!i){if("/"==e&&!r)return;"["==e?r=!0:r&&"]"==e&&(r=!1)}i=!i&&"\\"==e}}(t),t.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),f("regexp","string-2")):(t.eat("="),f("operator","operator",t.current()));if("`"==r)return e.tokenize=x,x(t,e);if("#"==r&&"!"==t.peek())return t.skipToEnd(),f("meta","meta");if("#"==r&&t.eatWhile(c))return f("variable","property");if("<"==r&&t.match("!--")||"-"==r&&t.match("->")&&!/\S/.test(t.string.slice(0,t.start)))return t.skipToEnd(),f("comment","comment");if(u.test(r))return">"==r&&e.lexical&&">"==e.lexical.type||(t.eat("=")?"!"!=r&&"="!=r||t.eat("="):/[<>*+\-|&?]/.test(r)&&(t.eat(r),">"==r&&t.eat(r))),"?"==r&&t.eat(".")?f("."):f("operator","operator",t.current());if(c.test(r)){t.eatWhile(c);var n=t.current();if("."!=e.lastType){if(p.propertyIsEnumerable(n)){var s=p[n];return f(s.type,s.style,n)}if("async"==n&&t.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return f("async","keyword",n)}return f("variable","variable",n)}}function g(t,e){for(var i,r=!1;i=t.next();){if("/"==i&&r){e.tokenize=m;break}r="*"==i}return f("comment","comment")}function x(t,e){for(var i,r=!1;null!=(i=t.next());){if(!r&&("`"==i||"$"==i&&t.eat("{"))){e.tokenize=m;break}r=!r&&"\\"==i}return f("quasi","string-2",t.current())}function b(t,e){e.fatArrowAt&&(e.fatArrowAt=null);var i=t.string.indexOf("=>",t.start);if(!(i<0)){if(h){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(t.string.slice(t.start,i));r&&(i=r.index)}for(var n=0,s=!1,a=i-1;a>=0;--a){var o=t.string.charAt(a),l="([{}])".indexOf(o);if(l>=0&&l<3){if(!n){++a;break}if(0==--n){"("==o&&(s=!0);break}}else if(l>=3&&l<6)++n;else if(c.test(o))s=!0;else if(/["'\/`]/.test(o))for(;;--a){if(0==a)return;if(t.string.charAt(a-1)==o&&"\\"!=t.string.charAt(a-2)){a--;break}}else if(s&&!n){++a;break}}s&&!n&&(e.fatArrowAt=a)}}var y={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function v(t,e,i,r,n,s){this.indented=t,this.column=e,this.type=i,this.prev=n,this.info=s,null!=r&&(this.align=r)}function k(t,e){if(!l)return!1;for(var i=t.localVars;i;i=i.next)if(i.name==e)return!0;for(var r=t.context;r;r=r.prev)for(i=r.vars;i;i=i.next)if(i.name==e)return!0}var w={state:null,column:null,marked:null,cc:null};function S(){for(var t=arguments.length-1;t>=0;t--)w.cc.push(arguments[t])}function C(){return S.apply(null,arguments),!0}function _(t,e){for(var i=e;i;i=i.next)if(i.name==t)return!0;return!1}function E(t){var i=w.state;if(w.marked="def",l){if(i.context)if("var"==i.lexical.info&&i.context&&i.context.block){var r=A(t,i.context);if(null!=r)return void(i.context=r)}else if(!_(t,i.localVars))return void(i.localVars=new P(t,i.localVars));e.globalVars&&!_(t,i.globalVars)&&(i.globalVars=new P(t,i.globalVars))}}function A(t,e){if(e){if(e.block){var i=A(t,e.prev);return i?i==e.prev?e:new I(i,e.vars,!0):null}return _(t,e.vars)?e:new I(e.prev,new P(t,e.vars),!1)}return null}function T(t){return"public"==t||"private"==t||"protected"==t||"abstract"==t||"readonly"==t}function I(t,e,i){this.prev=t,this.vars=e,this.block=i}function P(t,e){this.name=t,this.next=e}var N=new P("this",new P("arguments",null));function L(){w.state.context=new I(w.state.context,w.state.localVars,!1),w.state.localVars=N}function O(){w.state.context=new I(w.state.context,w.state.localVars,!0),w.state.localVars=null}function V(){w.state.localVars=w.state.context.vars,w.state.context=w.state.context.prev}function R(t,e){var i=function(){var i=w.state,r=i.indented;if("stat"==i.lexical.type)r=i.lexical.indented;else for(var n=i.lexical;n&&")"==n.type&&n.align;n=n.prev)r=n.indented;i.lexical=new v(r,w.stream.column(),t,null,i.lexical,e)};return i.lex=!0,i}function B(){var t=w.state;t.lexical.prev&&(")"==t.lexical.type&&(t.indented=t.lexical.indented),t.lexical=t.lexical.prev)}function D(t){return function e(i){return i==t?C():";"==t||"}"==i||")"==i||"]"==i?S():C(e)}}function M(t,e){return"var"==t?C(R("vardef",e),vt,D(";"),B):"keyword a"==t?C(R("form"),U,M,B):"keyword b"==t?C(R("form"),M,B):"keyword d"==t?w.stream.match(/^\s*$/,!1)?C():C(R("stat"),W,D(";"),B):"debugger"==t?C(D(";")):"{"==t?C(R("}"),O,at,B,V):";"==t?C():"if"==t?("else"==w.state.lexical.info&&w.state.cc[w.state.cc.length-1]==B&&w.state.cc.pop()(),C(R("form"),U,M,B,Et)):"function"==t?C(Pt):"for"==t?C(R("form"),O,At,M,V,B):"class"==t||h&&"interface"==e?(w.marked="keyword",C(R("form","class"==t?t:e),Bt,B)):"variable"==t?h&&"declare"==e?(w.marked="keyword",C(M)):h&&("module"==e||"enum"==e||"type"==e)&&w.stream.match(/^\s*\w/,!1)?(w.marked="keyword","enum"==e?C(Kt):"type"==e?C(Ot,D("operator"),pt,D(";")):C(R("form"),kt,D("{"),R("}"),at,B,B)):h&&"namespace"==e?(w.marked="keyword",C(R("form"),z,M,B)):h&&"abstract"==e?(w.marked="keyword",C(M)):C(R("stat"),J):"switch"==t?C(R("form"),U,D("{"),R("}","switch"),O,at,B,B,V):"case"==t?C(z,D(":")):"default"==t?C(D(":")):"catch"==t?C(R("form"),L,F,M,B,V):"export"==t?C(R("stat"),zt,B):"import"==t?C(R("stat"),Ut,B):"async"==t?C(M):"@"==e?C(z,M):S(R("stat"),z,D(";"),B)}function F(t){if("("==t)return C(Vt,D(")"))}function z(t,e){return q(t,e,!1)}function j(t,e){return q(t,e,!0)}function U(t){return"("!=t?S():C(R(")"),W,D(")"),B)}function q(t,e,i){if(w.state.fatArrowAt==w.stream.start){var r=i?Z:Q;if("("==t)return C(L,R(")"),nt(Vt,")"),B,D("=>"),r,V);if("variable"==t)return S(L,kt,D("=>"),r,V)}var n=i?G:$;return y.hasOwnProperty(t)?C(n):"function"==t?C(Pt,n):"class"==t||h&&"interface"==e?(w.marked="keyword",C(R("form"),Rt,B)):"keyword c"==t||"async"==t?C(i?j:z):"("==t?C(R(")"),W,D(")"),B,n):"operator"==t||"spread"==t?C(i?j:z):"["==t?C(R("]"),Ht,B,n):"{"==t?st(et,"}",null,n):"quasi"==t?S(H,n):"new"==t?C(function(t){return function(e){return"."==e?C(t?X:Y):"variable"==e&&h?C(xt,t?G:$):S(t?j:z)}}(i)):C()}function W(t){return t.match(/[;\}\)\],]/)?S():S(z)}function $(t,e){return","==t?C(W):G(t,e,!1)}function G(t,e,i){var r=0==i?$:G,n=0==i?z:j;return"=>"==t?C(L,i?Z:Q,V):"operator"==t?/\+\+|--/.test(e)||h&&"!"==e?C(r):h&&"<"==e&&w.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?C(R(">"),nt(pt,">"),B,r):"?"==e?C(z,D(":"),n):C(n):"quasi"==t?S(H,r):";"!=t?"("==t?st(j,")","call",r):"."==t?C(tt,r):"["==t?C(R("]"),W,D("]"),B,r):h&&"as"==e?(w.marked="keyword",C(pt,r)):"regexp"==t?(w.state.lastType=w.marked="operator",w.stream.backUp(w.stream.pos-w.stream.start-1),C(n)):void 0:void 0}function H(t,e){return"quasi"!=t?S():"${"!=e.slice(e.length-2)?C(H):C(z,K)}function K(t){if("}"==t)return w.marked="string-2",w.state.tokenize=x,C(H)}function Q(t){return b(w.stream,w.state),S("{"==t?M:z)}function Z(t){return b(w.stream,w.state),S("{"==t?M:j)}function Y(t,e){if("target"==e)return w.marked="keyword",C($)}function X(t,e){if("target"==e)return w.marked="keyword",C(G)}function J(t){return":"==t?C(B,M):S($,D(";"),B)}function tt(t){if("variable"==t)return w.marked="property",C()}function et(t,e){return"async"==t?(w.marked="property",C(et)):"variable"==t||"keyword"==w.style?(w.marked="property","get"==e||"set"==e?C(it):(h&&w.state.fatArrowAt==w.stream.start&&(i=w.stream.match(/^\s*:\s*/,!1))&&(w.state.fatArrowAt=w.stream.pos+i[0].length),C(rt))):"number"==t||"string"==t?(w.marked=a?"property":w.style+" property",C(rt)):"jsonld-keyword"==t?C(rt):h&&T(e)?(w.marked="keyword",C(et)):"["==t?C(z,ot,D("]"),rt):"spread"==t?C(j,rt):"*"==e?(w.marked="keyword",C(et)):":"==t?S(rt):void 0;var i}function it(t){return"variable"!=t?S(rt):(w.marked="property",C(Pt))}function rt(t){return":"==t?C(j):"("==t?S(Pt):void 0}function nt(t,e,i){function r(n,s){if(i?i.indexOf(n)>-1:","==n){var a=w.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),C(function(i,r){return i==e||r==e?S():S(t)},r)}return n==e||s==e?C():i&&i.indexOf(";")>-1?S(t):C(D(e))}return function(i,n){return i==e||n==e?C():S(t,r)}}function st(t,e,i){for(var r=3;r<arguments.length;r++)w.cc.push(arguments[r]);return C(R(e,i),nt(t,e),B)}function at(t){return"}"==t?C():S(M,at)}function ot(t,e){if(h){if(":"==t)return C(pt);if("?"==e)return C(ot)}}function lt(t,e){if(h&&(":"==t||"in"==e))return C(pt)}function ht(t){if(h&&":"==t)return w.stream.match(/^\s*\w+\s+is\b/,!1)?C(z,ct,pt):C(pt)}function ct(t,e){if("is"==e)return w.marked="keyword",C()}function pt(t,e){return"keyof"==e||"typeof"==e||"infer"==e||"readonly"==e?(w.marked="keyword",C("typeof"==e?j:pt)):"variable"==t||"void"==e?(w.marked="type",C(gt)):"|"==e||"&"==e?C(pt):"string"==t||"number"==t||"atom"==t?C(gt):"["==t?C(R("]"),nt(pt,"]",","),B,gt):"{"==t?C(R("}"),dt,B,gt):"("==t?C(nt(mt,")"),ut,gt):"<"==t?C(nt(pt,">"),pt):void 0}function ut(t){if("=>"==t)return C(pt)}function dt(t){return t.match(/[\}\)\]]/)?C():","==t||";"==t?C(dt):S(ft,dt)}function ft(t,e){return"variable"==t||"keyword"==w.style?(w.marked="property",C(ft)):"?"==e||"number"==t||"string"==t?C(ft):":"==t?C(pt):"["==t?C(D("variable"),lt,D("]"),ft):"("==t?S(Lt,ft):t.match(/[;\}\)\],]/)?void 0:C()}function mt(t,e){return"variable"==t&&w.stream.match(/^\s*[?:]/,!1)||"?"==e?C(mt):":"==t?C(pt):"spread"==t?C(mt):S(pt)}function gt(t,e){return"<"==e?C(R(">"),nt(pt,">"),B,gt):"|"==e||"."==t||"&"==e?C(pt):"["==t?C(pt,D("]"),gt):"extends"==e||"implements"==e?(w.marked="keyword",C(pt)):"?"==e?C(pt,D(":"),pt):void 0}function xt(t,e){if("<"==e)return C(R(">"),nt(pt,">"),B,gt)}function bt(){return S(pt,yt)}function yt(t,e){if("="==e)return C(pt)}function vt(t,e){return"enum"==e?(w.marked="keyword",C(Kt)):S(kt,ot,Ct,_t)}function kt(t,e){return h&&T(e)?(w.marked="keyword",C(kt)):"variable"==t?(E(e),C()):"spread"==t?C(kt):"["==t?st(St,"]"):"{"==t?st(wt,"}"):void 0}function wt(t,e){return"variable"!=t||w.stream.match(/^\s*:/,!1)?("variable"==t&&(w.marked="property"),"spread"==t?C(kt):"}"==t?S():"["==t?C(z,D("]"),D(":"),wt):C(D(":"),kt,Ct)):(E(e),C(Ct))}function St(){return S(kt,Ct)}function Ct(t,e){if("="==e)return C(j)}function _t(t){if(","==t)return C(vt)}function Et(t,e){if("keyword b"==t&&"else"==e)return C(R("form","else"),M,B)}function At(t,e){return"await"==e?C(At):"("==t?C(R(")"),Tt,B):void 0}function Tt(t){return"var"==t?C(vt,It):"variable"==t?C(It):S(It)}function It(t,e){return")"==t?C():";"==t?C(It):"in"==e||"of"==e?(w.marked="keyword",C(z,It)):S(z,It)}function Pt(t,e){return"*"==e?(w.marked="keyword",C(Pt)):"variable"==t?(E(e),C(Pt)):"("==t?C(L,R(")"),nt(Vt,")"),B,ht,M,V):h&&"<"==e?C(R(">"),nt(bt,">"),B,Pt):void 0}function Lt(t,e){return"*"==e?(w.marked="keyword",C(Lt)):"variable"==t?(E(e),C(Lt)):"("==t?C(L,R(")"),nt(Vt,")"),B,ht,V):h&&"<"==e?C(R(">"),nt(bt,">"),B,Lt):void 0}function Ot(t,e){return"keyword"==t||"variable"==t?(w.marked="type",C(Ot)):"<"==e?C(R(">"),nt(bt,">"),B):void 0}function Vt(t,e){return"@"==e&&C(z,Vt),"spread"==t?C(Vt):h&&T(e)?(w.marked="keyword",C(Vt)):h&&"this"==t?C(ot,Ct):S(kt,ot,Ct)}function Rt(t,e){return"variable"==t?Bt(t,e):Dt(t,e)}function Bt(t,e){if("variable"==t)return E(e),C(Dt)}function Dt(t,e){return"<"==e?C(R(">"),nt(bt,">"),B,Dt):"extends"==e||"implements"==e||h&&","==t?("implements"==e&&(w.marked="keyword"),C(h?pt:z,Dt)):"{"==t?C(R("}"),Mt,B):void 0}function Mt(t,e){return"async"==t||"variable"==t&&("static"==e||"get"==e||"set"==e||h&&T(e))&&w.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(w.marked="keyword",C(Mt)):"variable"==t||"keyword"==w.style?(w.marked="property",C(Ft,Mt)):"number"==t||"string"==t?C(Ft,Mt):"["==t?C(z,ot,D("]"),Ft,Mt):"*"==e?(w.marked="keyword",C(Mt)):h&&"("==t?S(Lt,Mt):";"==t||","==t?C(Mt):"}"==t?C():"@"==e?C(z,Mt):void 0}function Ft(t,e){if("?"==e)return C(Ft);if(":"==t)return C(pt,Ct);if("="==e)return C(j);var i=w.state.lexical.prev;return S(i&&"interface"==i.info?Lt:Pt)}function zt(t,e){return"*"==e?(w.marked="keyword",C(Gt,D(";"))):"default"==e?(w.marked="keyword",C(z,D(";"))):"{"==t?C(nt(jt,"}"),Gt,D(";")):S(M)}function jt(t,e){return"as"==e?(w.marked="keyword",C(D("variable"))):"variable"==t?S(j,jt):void 0}function Ut(t){return"string"==t?C():"("==t?S(z):"."==t?S($):S(qt,Wt,Gt)}function qt(t,e){return"{"==t?st(qt,"}"):("variable"==t&&E(e),"*"==e&&(w.marked="keyword"),C($t))}function Wt(t){if(","==t)return C(qt,Wt)}function $t(t,e){if("as"==e)return w.marked="keyword",C(qt)}function Gt(t,e){if("from"==e)return w.marked="keyword",C(z)}function Ht(t){return"]"==t?C():S(nt(j,"]"))}function Kt(){return S(R("form"),kt,D("{"),R("}"),nt(Qt,"}"),B,B)}function Qt(){return S(kt,Ct)}function Zt(t,e,i){return e.tokenize==m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e.lastType)||"quasi"==e.lastType&&/\{\s*$/.test(t.string.slice(0,t.pos-(i||0)))}return V.lex=!0,B.lex=!0,{startState:function(t){var i={tokenize:m,lastType:"sof",cc:[],lexical:new v((t||0)-n,0,"block",!1),localVars:e.localVars,context:e.localVars&&new I(null,null,!1),indented:t||0};return e.globalVars&&"object"==typeof e.globalVars&&(i.globalVars=e.globalVars),i},token:function(t,e){if(t.sol()&&(e.lexical.hasOwnProperty("align")||(e.lexical.align=!1),e.indented=t.indentation(),b(t,e)),e.tokenize!=g&&t.eatSpace())return null;var n=e.tokenize(t,e);return"comment"==i?n:(e.lastType="operator"!=i||"++"!=r&&"--"!=r?i:"incdec",function(t,e,i,r,n){var s=t.cc;for(w.state=t,w.stream=n,w.marked=null,w.cc=s,w.style=e,t.lexical.hasOwnProperty("align")||(t.lexical.align=!0);;)if((s.length?s.pop():o?z:M)(i,r)){for(;s.length&&s[s.length-1].lex;)s.pop()();return w.marked?w.marked:"variable"==i&&k(t,r)?"variable-2":e}}(e,n,i,r,t))},indent:function(t,i){if(t.tokenize==g||t.tokenize==x)return Nt;if(t.tokenize!=m)return 0;var r,a=i&&i.charAt(0),o=t.lexical;if(!/^\s*else\b/.test(i))for(var l=t.cc.length-1;l>=0;--l){var h=t.cc[l];if(h==B)o=o.prev;else if(h!=Et&&h!=V)break}for(;("stat"==o.type||"form"==o.type)&&("}"==a||(r=t.cc[t.cc.length-1])&&(r==$||r==G)&&!/^[,\.=+\-*:?[\(]/.test(i));)o=o.prev;s&&")"==o.type&&"stat"==o.prev.type&&(o=o.prev);var c=o.type,p=a==c;return"vardef"==c?o.indented+("operator"==t.lastType||","==t.lastType?o.info.length+1:0):"form"==c&&"{"==a?o.indented:"form"==c?o.indented+n:"stat"==c?o.indented+(function(t,e){return"operator"==t.lastType||","==t.lastType||u.test(e.charAt(0))||/[,.]/.test(e.charAt(0))}(t,i)?s||n:0):"switch"!=o.info||p||0==e.doubleIndentSwitch?o.align?o.column+(p?0:1):o.indented+(p?0:n):o.indented+(/^(?:case|default)\b/.test(i)?n:2*n)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:o?null:"/*",blockCommentEnd:o?null:"*/",blockCommentContinue:o?null:" * ",lineComment:o?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:o?"json":"javascript",jsonldMode:a,jsonMode:o,expressionAllowed:Zt,skipExpression:function(t){var e=t.cc[t.cc.length-1];e!=z&&e!=j||t.cc.pop()}}}),Rt("text/plain","null"),Rt("text/xml","xml"),Rt("application/xml","xml"),gt.hasOwnProperty("text/html")||Rt("text/html",{name:"xml",htmlMode:!0}),Rt("text/css",{documentTypes:kt,mediaTypes:wt,mediaFeatures:St,mediaValueKeywords:Ct,propertyKeywords:_t,nonStandardPropertyKeywords:Et,fontProperties:At,counterDescriptors:Tt,colorKeywords:It,valueKeywords:Pt,tokenHooks:{"/":function(t,e){return!!t.eat("*")&&(e.tokenize=yt,yt(t,e))}},name:"css"}),Rt("text/x-scss",{mediaTypes:wt,mediaFeatures:St,mediaValueKeywords:Ct,propertyKeywords:_t,nonStandardPropertyKeywords:Et,colorKeywords:It,valueKeywords:Pt,fontProperties:At,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(t,e){return t.eat("/")?(t.skipToEnd(),["comment","comment"]):t.eat("*")?(e.tokenize=yt,yt(t,e)):["operator","operator"]},":":function(t){return!!t.match(/^\s*\{/,!1)&&[null,null]},$:function(t){return t.match(/^[\w-]+/),t.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(t){return!!t.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),Rt("text/x-less",{mediaTypes:wt,mediaFeatures:St,mediaValueKeywords:Ct,propertyKeywords:_t,nonStandardPropertyKeywords:Et,colorKeywords:It,valueKeywords:Pt,fontProperties:At,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(t,e){return t.eat("/")?(t.skipToEnd(),["comment","comment"]):t.eat("*")?(e.tokenize=yt,yt(t,e)):["operator","operator"]},"@":function(t){return t.eat("{")?[null,"interpolation"]:!t.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(t.eatWhile(/[\w\\\-]/),t.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),Rt("text/x-gss",{documentTypes:kt,mediaTypes:wt,mediaFeatures:St,propertyKeywords:_t,nonStandardPropertyKeywords:Et,fontProperties:At,counterDescriptors:Tt,colorKeywords:It,valueKeywords:Pt,supportsAtComponent:!0,tokenHooks:{"/":function(t,e){return!!t.eat("*")&&(e.tokenize=yt,yt(t,e))}},name:"css",helperType:"gss"}),Rt("text/javascript","javascript"),Rt("text/ecmascript","javascript"),Rt("application/javascript","javascript"),Rt("application/x-javascript","javascript"),Rt("application/ecmascript","javascript"),Rt("application/json",{name:"javascript",json:!0}),Rt("application/x-json",{name:"javascript",json:!0}),Rt("application/manifest+json",{name:"javascript",json:!0}),Rt("application/ld+json",{name:"javascript",jsonld:!0}),Rt("text/typescript",{name:"javascript",typescript:!0}),Rt("application/typescript",{name:"javascript",typescript:!0});var Mt,Ft,zt,jt=function(t,e,i){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};jt.prototype.eol=function(){return this.pos>=this.string.length},jt.prototype.sol=function(){return this.pos==this.lineStart},jt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},jt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},jt.prototype.eat=function(t){var e=this.string.charAt(this.pos);if("string"==typeof t?e==t:e&&(t.test?t.test(e):t(e)))return++this.pos,e},jt.prototype.eatWhile=function(t){for(var e=this.pos;this.eat(t););return this.pos>e},jt.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},jt.prototype.skipToEnd=function(){this.pos=this.string.length},jt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},jt.prototype.backUp=function(t){this.pos-=t},jt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ot(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ot(this.string,this.lineStart,this.tabSize):0)},jt.prototype.indentation=function(){return Ot(this.string,null,this.tabSize)-(this.lineStart?Ot(this.string,this.lineStart,this.tabSize):0)},jt.prototype.match=function(t,e,i){if("string"!=typeof t){var r=this.string.slice(this.pos).match(t);return r&&r.index>0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var n=function(t){return i?t.toLowerCase():t};if(n(this.string.substr(this.pos,t.length))==n(t))return!1!==e&&(this.pos+=t.length),!0},jt.prototype.current=function(){return this.string.slice(this.start,this.pos)},jt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},jt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},jt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)},Mt="wordChars",Ft="javascript",zt=/[\w$]/,ft.hasOwnProperty(Mt)||(ft[Mt]={_global:[]}),ft[Mt][Ft]=zt;class Ut{indentString;#o=0;#l=[];#h=0;#c=0;#p=0;#u=0;#d=!0;#f=!1;#m=0;#g=new Map;#x=/[$\u200C\u200D\p{ID_Continue}]/u;mapping={original:[0],formatted:[0]};constructor(t){this.indentString=t}setEnforceSpaceBetweenWords(t){const e=this.#d;return this.#d=t,e}addToken(t,e){if(this.#d&&!this.#m&&!this.#f){const e=this.#l.at(-1)?.at(-1)??"";this.#x.test(e)&&this.#x.test(t)&&this.addSoftSpace()}this.#b(),this.#y(e),this.#v(t)}addSoftSpace(){this.#m||(this.#f=!0)}addHardSpace(){this.#f=!1,++this.#m}addNewLine(t){this.#h&&(t?++this.#u:this.#u=this.#u||1)}increaseNestingLevel(){this.#p+=1}decreaseNestingLevel(){this.#p>0&&(this.#p-=1)}content(){return this.#l.join("")+(this.#u?"\n":"")}#b(){if(this.#u){for(let t=0;t<this.#u;++t)this.#v("\n");this.#v(this.#k())}else this.#f&&this.#v(" ");if(this.#m)for(let t=0;t<this.#m;++t)this.#v(" ");this.#u=0,this.#f=!1,this.#m=0}#k(){const t=this.#g.get(this.#p);if(t)return t;let e="";for(let t=0;t<this.#p;++t)e+=this.indentString;return this.#p<=20&&this.#g.set(this.#p,e),e}#v(t){this.#l.push(t),this.#h+=t.length}#y(t){t-this.#o!==this.#h-this.#c&&(this.mapping.original.push(t),this.#o=t,this.mapping.formatted.push(this.#h),this.#c=this.#h)}}var qt=[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,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,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,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],Wt=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,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,43,17,47,20,28,22,13,52,58,1,3,0,14,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,20,1,64,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,38,6,186,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,19,72,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,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,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,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,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],$t="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Gt={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"},Ht="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",Kt={5:Ht,"5module":Ht+" export import",6:Ht+" const class extends export import super"},Qt=/^in(stanceof)?$/,Zt=new RegExp("["+$t+"]"),Yt=new RegExp("["+$t+"·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_]");function Xt(t,e){for(var i=65536,r=0;r<e.length;r+=2){if((i+=e[r])>t)return!1;if((i+=e[r+1])>=t)return!0}return!1}function Jt(t,e){return t<65?36===t:t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&Zt.test(String.fromCharCode(t)):!1!==e&&Xt(t,Wt)))}function te(t,e){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&Yt.test(String.fromCharCode(t)):!1!==e&&(Xt(t,Wt)||Xt(t,qt)))))}var ee=function(t,e){void 0===e&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function ie(t,e){return new ee(t,{beforeExpr:!0,binop:e})}var re={beforeExpr:!0},ne={startsExpr:!0},se={};function ae(t,e){return void 0===e&&(e={}),e.keyword=t,se[t]=new ee(t,e)}var oe={num:new ee("num",ne),regexp:new ee("regexp",ne),string:new ee("string",ne),name:new ee("name",ne),privateId:new ee("privateId",ne),eof:new ee("eof"),bracketL:new ee("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new ee("]"),braceL:new ee("{",{beforeExpr:!0,startsExpr:!0}),braceR:new ee("}"),parenL:new ee("(",{beforeExpr:!0,startsExpr:!0}),parenR:new ee(")"),comma:new ee(",",re),semi:new ee(";",re),colon:new ee(":",re),dot:new ee("."),question:new ee("?",re),questionDot:new ee("?."),arrow:new ee("=>",re),template:new ee("template"),invalidTemplate:new ee("invalidTemplate"),ellipsis:new ee("...",re),backQuote:new ee("`",ne),dollarBraceL:new ee("${",{beforeExpr:!0,startsExpr:!0}),eq:new ee("=",{beforeExpr:!0,isAssign:!0}),assign:new ee("_=",{beforeExpr:!0,isAssign:!0}),incDec:new ee("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new ee("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:ie("||",1),logicalAND:ie("&&",2),bitwiseOR:ie("|",3),bitwiseXOR:ie("^",4),bitwiseAND:ie("&",5),equality:ie("==/!=/===/!==",6),relational:ie("</>/<=/>=",7),bitShift:ie("<</>>/>>>",8),plusMin:new ee("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:ie("%",10),star:ie("*",10),slash:ie("/",10),starstar:new ee("**",{beforeExpr:!0}),coalesce:ie("??",1),_break:ae("break"),_case:ae("case",re),_catch:ae("catch"),_continue:ae("continue"),_debugger:ae("debugger"),_default:ae("default",re),_do:ae("do",{isLoop:!0,beforeExpr:!0}),_else:ae("else",re),_finally:ae("finally"),_for:ae("for",{isLoop:!0}),_function:ae("function",ne),_if:ae("if"),_return:ae("return",re),_switch:ae("switch"),_throw:ae("throw",re),_try:ae("try"),_var:ae("var"),_const:ae("const"),_while:ae("while",{isLoop:!0}),_with:ae("with"),_new:ae("new",{beforeExpr:!0,startsExpr:!0}),_this:ae("this",ne),_super:ae("super",ne),_class:ae("class",ne),_extends:ae("extends",re),_export:ae("export"),_import:ae("import",ne),_null:ae("null",ne),_true:ae("true",ne),_false:ae("false",ne),_in:ae("in",{beforeExpr:!0,binop:7}),_instanceof:ae("instanceof",{beforeExpr:!0,binop:7}),_typeof:ae("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:ae("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:ae("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},le=/\r\n?|\n|\u2028|\u2029/,he=new RegExp(le.source,"g");function ce(t){return 10===t||13===t||8232===t||8233===t}function pe(t,e,i){void 0===i&&(i=t.length);for(var r=e;r<i;r++){var n=t.charCodeAt(r);if(ce(n))return r<i-1&&13===n&&10===t.charCodeAt(r+1)?r+2:r+1}return-1}var ue=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,de=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,fe=Object.prototype,me=fe.hasOwnProperty,ge=fe.toString,xe=Object.hasOwn||function(t,e){return me.call(t,e)},be=Array.isArray||function(t){return"[object Array]"===ge.call(t)};function ye(t){return new RegExp("^(?:"+t.replace(/ /g,"|")+")$")}function ve(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}var ke=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,we=function(t,e){this.line=t,this.column=e};we.prototype.offset=function(t){return new we(this.line,this.column+t)};var Se=function(t,e,i){this.start=e,this.end=i,null!==t.sourceFile&&(this.source=t.sourceFile)};function Ce(t,e){for(var i=1,r=0;;){var n=pe(t,r,e);if(n<0)return new we(i,e-r);++i,r=n}}var _e={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Ee=!1;function Ae(t){var e={};for(var i in _e)e[i]=t&&xe(t,i)?t[i]:_e[i];if("latest"===e.ecmaVersion?e.ecmaVersion=1e8:null==e.ecmaVersion?(!Ee&&"object"==typeof console&&console.warn&&(Ee=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),e.ecmaVersion=11):e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),null==e.allowReserved&&(e.allowReserved=e.ecmaVersion<5),t&&null!=t.allowHashBang||(e.allowHashBang=e.ecmaVersion>=14),be(e.onToken)){var r=e.onToken;e.onToken=function(t){return r.push(t)}}return be(e.onComment)&&(e.onComment=function(t,e){return function(i,r,n,s,a,o){var l={type:i?"Block":"Line",value:r,start:n,end:s};t.locations&&(l.loc=new Se(this,a,o)),t.ranges&&(l.range=[n,s]),e.push(l)}}(e,e.onComment)),e}var Te=256;function Ie(t,e){return 2|(t?4:0)|(e?8:0)}var Pe=function(t,e,i){this.options=t=Ae(t),this.sourceFile=t.sourceFile,this.keywords=ye(Kt[t.ecmaVersion>=6?6:"module"===t.sourceType?"5module":5]);var r="";!0!==t.allowReserved&&(r=Gt[t.ecmaVersion>=6?6:5===t.ecmaVersion?5:3],"module"===t.sourceType&&(r+=" await")),this.reservedWords=ye(r);var n=(r?r+" ":"")+Gt.strict;this.reservedWordsStrict=ye(n),this.reservedWordsStrictBind=ye(n+" "+Gt.strictBind),this.input=String(e),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf("\n",i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(le).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=oe.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="module"===t.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},Ne={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Pe.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},Ne.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Ne.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Ne.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Ne.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t];if(e.inClassFieldInit||e.flags&Te)return!1;if(2&e.flags)return(4&e.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Ne.allowSuper.get=function(){var t=this.currentThisScope(),e=t.flags,i=t.inClassFieldInit;return(64&e)>0||i||this.options.allowSuperOutsideMethod},Ne.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Ne.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ne.allowNewDotTarget.get=function(){var t=this.currentThisScope(),e=t.flags,i=t.inClassFieldInit;return(258&e)>0||i},Ne.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Te)>0},Pe.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=this,r=0;r<t.length;r++)i=t[r](i);return i},Pe.parse=function(t,e){return new this(e,t).parse()},Pe.parseExpressionAt=function(t,e,i){var r=new this(i,t,e);return r.nextToken(),r.parseExpression()},Pe.tokenizer=function(t,e){return new this(e,t)},Object.defineProperties(Pe.prototype,Ne);var Le=Pe.prototype,Oe=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Le.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){de.lastIndex=t,t+=de.exec(this.input)[0].length;var e=Oe.exec(this.input.slice(t));if(!e)return!1;if("use strict"===(e[1]||e[2])){de.lastIndex=t+e[0].length;var i=de.exec(this.input),r=i.index+i[0].length,n=this.input.charAt(r);return";"===n||"}"===n||le.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(n)||"!"===n&&"="===this.input.charAt(r+1))}t+=e[0].length,de.lastIndex=t,t+=de.exec(this.input)[0].length,";"===this.input[t]&&t++}},Le.eat=function(t){return this.type===t&&(this.next(),!0)},Le.isContextual=function(t){return this.type===oe.name&&this.value===t&&!this.containsEsc},Le.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},Le.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},Le.canInsertSemicolon=function(){return this.type===oe.eof||this.type===oe.braceR||le.test(this.input.slice(this.lastTokEnd,this.start))},Le.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Le.semicolon=function(){this.eat(oe.semi)||this.insertSemicolon()||this.unexpected()},Le.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},Le.expect=function(t){this.eat(t)||this.unexpected()},Le.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")};var Ve=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Le.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var i=e?t.parenthesizedAssign:t.parenthesizedBind;i>-1&&this.raiseRecoverable(i,e?"Assigning to rvalue":"Parenthesized pattern")}},Le.checkExpressionErrors=function(t,e){if(!t)return!1;var i=t.shorthandAssign,r=t.doubleProto;if(!e)return i>=0||r>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},Le.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")},Le.isSimpleAssignTarget=function(t){return"ParenthesizedExpression"===t.type?this.isSimpleAssignTarget(t.expression):"Identifier"===t.type||"MemberExpression"===t.type};var Re=Pe.prototype;Re.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==oe.eof;){var i=this.parseStatement(null,!0,e);t.body.push(i)}if(this.inModule)for(var r=0,n=Object.keys(this.undefinedExports);r<n.length;r+=1){var s=n[r];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType,this.finishNode(t,"Program")};var Be={kind:"loop"},De={kind:"switch"};Re.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;de.lastIndex=this.pos;var e=de.exec(this.input),i=this.pos+e[0].length,r=this.input.charCodeAt(i);if(91===r||92===r)return!0;if(t)return!1;if(123===r||r>55295&&r<56320)return!0;if(Jt(r,!0)){for(var n=i+1;te(r=this.input.charCodeAt(n),!0);)++n;if(92===r||r>55295&&r<56320)return!0;var s=this.input.slice(i,n);if(!Qt.test(s))return!0}return!1},Re.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;de.lastIndex=this.pos;var t,e=de.exec(this.input),i=this.pos+e[0].length;return!(le.test(this.input.slice(this.pos,i))||"function"!==this.input.slice(i,i+8)||i+8!==this.input.length&&(te(t=this.input.charCodeAt(i+8))||t>55295&&t<56320))},Re.parseStatement=function(t,e,i){var r,n=this.type,s=this.startNode();switch(this.isLet(t)&&(n=oe._var,r="let"),n){case oe._break:case oe._continue:return this.parseBreakContinueStatement(s,n.keyword);case oe._debugger:return this.parseDebuggerStatement(s);case oe._do:return this.parseDoStatement(s);case oe._for:return this.parseForStatement(s);case oe._function:return t&&(this.strict||"if"!==t&&"label"!==t)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!t);case oe._class:return t&&this.unexpected(),this.parseClass(s,!0);case oe._if:return this.parseIfStatement(s);case oe._return:return this.parseReturnStatement(s);case oe._switch:return this.parseSwitchStatement(s);case oe._throw:return this.parseThrowStatement(s);case oe._try:return this.parseTryStatement(s);case oe._const:case oe._var:return r=r||this.value,t&&"var"!==r&&this.unexpected(),this.parseVarStatement(s,r);case oe._while:return this.parseWhileStatement(s);case oe._with:return this.parseWithStatement(s);case oe.braceL:return this.parseBlock(!0,s);case oe.semi:return this.parseEmptyStatement(s);case oe._export:case oe._import:if(this.options.ecmaVersion>10&&n===oe._import){de.lastIndex=this.pos;var a=de.exec(this.input),o=this.pos+a[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||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'")),n===oe._import?this.parseImport(s):this.parseExport(s,i);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!t);var h=this.value,c=this.parseExpression();return n===oe.name&&"Identifier"===c.type&&this.eat(oe.colon)?this.parseLabeledStatement(s,h,c,t):this.parseExpressionStatement(s,c)}},Re.parseBreakContinueStatement=function(t,e){var i="break"===e;this.next(),this.eat(oe.semi)||this.insertSemicolon()?t.label=null:this.type!==oe.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var n=this.labels[r];if(null==t.label||n.name===t.label.name){if(null!=n.kind&&(i||"loop"===n.kind))break;if(t.label&&i)break}}return r===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,i?"BreakStatement":"ContinueStatement")},Re.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},Re.parseDoStatement=function(t){return this.next(),this.labels.push(Be),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(oe._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(oe.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},Re.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Be),this.enterScope(0),this.expect(oe.parenL),this.type===oe.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var i=this.isLet();if(this.type===oe._var||this.type===oe._const||i){var r=this.startNode(),n=i?"let":this.value;return this.next(),this.parseVar(r,!0,n),this.finishNode(r,"VariableDeclaration"),(this.type===oe._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===oe._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,r)):(e>-1&&this.unexpected(e),this.parseFor(t,r))}var s=this.isContextual("let"),a=!1,o=new Ve,l=this.parseExpression(!(e>-1)||"await",o);return this.type===oe._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===oe._in?e>-1&&this.unexpected(e):t.await=e>-1),s&&a&&this.raise(l.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(l,!1,o),this.checkLValPattern(l),this.parseForIn(t,l)):(this.checkExpressionErrors(o,!0),e>-1&&this.unexpected(e),this.parseFor(t,l))},Re.parseFunctionStatement=function(t,e,i){return this.next(),this.parseFunction(t,Fe|(i?0:ze),!1,e)},Re.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(oe._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},Re.parseReturnStatement=function(t){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(oe.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},Re.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(oe.braceL),this.labels.push(De),this.enterScope(0);for(var i=!1;this.type!==oe.braceR;)if(this.type===oe._case||this.type===oe._default){var r=this.type===oe._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),r?e.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,e.test=null),this.expect(oe.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},Re.parseThrowStatement=function(t){return this.next(),le.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var Me=[];Re.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e="Identifier"===t.type;return this.enterScope(e?32:0),this.checkLValPattern(t,e?4:2),this.expect(oe.parenR),t},Re.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===oe._catch){var e=this.startNode();this.next(),this.eat(oe.parenL)?e.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0)),e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(oe._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},Re.parseVarStatement=function(t,e,i){return this.next(),this.parseVar(t,!1,e,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")},Re.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(Be),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},Re.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")},Re.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},Re.parseLabeledStatement=function(t,e,i,r){for(var n=0,s=this.labels;n<s.length;n+=1){s[n].name===e&&this.raise(i.start,"Label '"+e+"' is already declared")}for(var a=this.type.isLoop?"loop":this.type===oe._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var l=this.labels[o];if(l.statementStart!==t.start)break;l.statementStart=this.start,l.kind=a}return this.labels.push({name:e,kind:a,statementStart:this.start}),t.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")},Re.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},Re.parseBlock=function(t,e,i){for(void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),e.body=[],this.expect(oe.braceL),t&&this.enterScope(0);this.type!==oe.braceR;){var r=this.parseStatement(null);e.body.push(r)}return i&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},Re.parseFor=function(t,e){return t.init=e,this.expect(oe.semi),t.test=this.type===oe.semi?null:this.parseExpression(),this.expect(oe.semi),t.update=this.type===oe.parenR?null:this.parseExpression(),this.expect(oe.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},Re.parseForIn=function(t,e){var i=this.type===oe._in;return this.next(),"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(!i||this.options.ecmaVersion<8||this.strict||"var"!==e.kind||"Identifier"!==e.declarations[0].id.type)&&this.raise(e.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(oe.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")},Re.parseVar=function(t,e,i,r){for(t.declarations=[],t.kind=i;;){var n=this.startNode();if(this.parseVarId(n,i),this.eat(oe.eq)?n.init=this.parseMaybeAssign(e):r||"const"!==i||this.type===oe._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"Identifier"===n.id.type||e&&(this.type===oe._in||this.isContextual("of"))?n.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),t.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(oe.comma))break}return t},Re.parseVarId=function(t,e){t.id=this.parseBindingAtom(),this.checkLValPattern(t.id,"var"===e?1:2,!1)};var Fe=1,ze=2;function je(t,e){var i=e.key.name,r=t[i],n="true";return"MethodDefinition"!==e.type||"get"!==e.kind&&"set"!==e.kind||(n=(e.static?"s":"i")+e.kind),"iget"===r&&"iset"===n||"iset"===r&&"iget"===n||"sget"===r&&"sset"===n||"sset"===r&&"sget"===n?(t[i]="true",!1):!!r||(t[i]=n,!1)}function Ue(t,e){var i=t.computed,r=t.key;return!i&&("Identifier"===r.type&&r.name===e||"Literal"===r.type&&r.value===e)}Re.parseFunction=function(t,e,i,r,n){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===oe.star&&e&ze&&this.unexpected(),t.generator=this.eat(oe.star)),this.options.ecmaVersion>=8&&(t.async=!!r),e&Fe&&(t.id=4&e&&this.type!==oe.name?null:this.parseIdent(),!t.id||e&ze||this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ie(t.async,t.generator)),e&Fe||(t.id=this.type===oe.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,i,!1,n),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(t,e&Fe?"FunctionDeclaration":"FunctionExpression")},Re.parseFunctionParams=function(t){this.expect(oe.parenL),t.params=this.parseBindingList(oe.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Re.parseClass=function(t,e){this.next();var i=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var r=this.enterClassBody(),n=this.startNode(),s=!1;for(n.body=[],this.expect(oe.braceL);this.type!==oe.braceR;){var a=this.parseClassElement(null!==t.superClass);a&&(n.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(s&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),s=!0):a.key&&"PrivateIdentifier"===a.key.type&&je(r,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=i,this.next(),t.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},Re.parseClassElement=function(t){if(this.eat(oe.semi))return null;var e=this.options.ecmaVersion,i=this.startNode(),r="",n=!1,s=!1,a="method",o=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(oe.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===oe.star?o=!0:r="static"}if(i.static=o,!r&&e>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==oe.star||this.canInsertSemicolon()?r="async":s=!0),!r&&(e>=9||!s)&&this.eat(oe.star)&&(n=!0),!r&&!s&&!n){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=l:r=l)}if(r?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=r,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),e<13||this.type===oe.parenL||"method"!==a||n||s){var h=!i.static&&Ue(i,"constructor"),c=h&&t;h&&"method"!==a&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=h?"constructor":a,this.parseClassMethod(i,n,s,c)}else this.parseClassField(i);return i},Re.isClassElementNameStart=function(){return this.type===oe.name||this.type===oe.privateId||this.type===oe.num||this.type===oe.string||this.type===oe.bracketL||this.type.keyword},Re.parseClassElementName=function(t){this.type===oe.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)},Re.parseClassMethod=function(t,e,i,r){var n=t.key;"constructor"===t.kind?(e&&this.raise(n.start,"Constructor can't be a generator"),i&&this.raise(n.start,"Constructor can't be an async method")):t.static&&Ue(t,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var s=t.value=this.parseMethod(e,i,r);return"get"===t.kind&&0!==s.params.length&&this.raiseRecoverable(s.start,"getter should have no params"),"set"===t.kind&&1!==s.params.length&&this.raiseRecoverable(s.start,"setter should have exactly one param"),"set"===t.kind&&"RestElement"===s.params[0].type&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},Re.parseClassField=function(t){if(Ue(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&Ue(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(oe.eq)){var e=this.currentThisScope(),i=e.inClassFieldInit;e.inClassFieldInit=!0,t.value=this.parseMaybeAssign(),e.inClassFieldInit=i}else t.value=null;return this.semicolon(),this.finishNode(t,"PropertyDefinition")},Re.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(320);this.type!==oe.braceR;){var i=this.parseStatement(null);t.body.push(i)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")},Re.parseClassId=function(t,e){this.type===oe.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,2,!1)):(!0===e&&this.unexpected(),t.id=null)},Re.parseClassSuper=function(t){t.superClass=this.eat(oe._extends)?this.parseExprSubscripts(null,!1):null},Re.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},Re.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,i=t.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,n=0===r?null:this.privateNameStack[r-1],s=0;s<i.length;++s){var a=i[s];xe(e,a.name)||(n?n.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},Re.parseExportAllDeclaration=function(t,e){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==oe.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")},Re.parseExport=function(t,e){if(this.next(),this.eat(oe.star))return this.parseExportAllDeclaration(t,e);if(this.eat(oe._default))return this.checkExport(e,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==oe.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var i=0,r=t.specifiers;i<r.length;i+=1){var n=r[i];this.checkUnreserved(n.local),this.checkLocalExport(n.local),"Literal"===n.local.type&&this.raise(n.local.start,"A string literal cannot be used as an exported binding without `from`.")}t.source=null}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")},Re.parseExportDeclaration=function(t){return this.parseStatement(null)},Re.parseExportDefaultDeclaration=function(){var t;if(this.type===oe._function||(t=this.isAsyncFunction())){var e=this.startNode();return this.next(),t&&this.next(),this.parseFunction(e,4|Fe,!1,t)}if(this.type===oe._class){var i=this.startNode();return this.parseClass(i,"nullableID")}var r=this.parseMaybeAssign();return this.semicolon(),r},Re.checkExport=function(t,e,i){t&&("string"!=typeof e&&(e="Identifier"===e.type?e.name:e.value),xe(t,e)&&this.raiseRecoverable(i,"Duplicate export '"+e+"'"),t[e]=!0)},Re.checkPatternExport=function(t,e){var i=e.type;if("Identifier"===i)this.checkExport(t,e,e.start);else if("ObjectPattern"===i)for(var r=0,n=e.properties;r<n.length;r+=1){var s=n[r];this.checkPatternExport(t,s)}else if("ArrayPattern"===i)for(var a=0,o=e.elements;a<o.length;a+=1){var l=o[a];l&&this.checkPatternExport(t,l)}else"Property"===i?this.checkPatternExport(t,e.value):"AssignmentPattern"===i?this.checkPatternExport(t,e.left):"RestElement"===i?this.checkPatternExport(t,e.argument):"ParenthesizedExpression"===i&&this.checkPatternExport(t,e.expression)},Re.checkVariableExport=function(t,e){if(t)for(var i=0,r=e;i<r.length;i+=1){var n=r[i];this.checkPatternExport(t,n.id)}},Re.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},Re.parseExportSpecifier=function(t){var e=this.startNode();return e.local=this.parseModuleExportName(),e.exported=this.eatContextual("as")?this.parseModuleExportName():e.local,this.checkExport(t,e.exported,e.exported.start),this.finishNode(e,"ExportSpecifier")},Re.parseExportSpecifiers=function(t){var e=[],i=!0;for(this.expect(oe.braceL);!this.eat(oe.braceR);){if(i)i=!1;else if(this.expect(oe.comma),this.afterTrailingComma(oe.braceR))break;e.push(this.parseExportSpecifier(t))}return e},Re.parseImport=function(t){return this.next(),this.type===oe.string?(t.specifiers=Me,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===oe.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},Re.parseImportSpecifier=function(){var t=this.startNode();return t.imported=this.parseModuleExportName(),this.eatContextual("as")?t.local=this.parseIdent():(this.checkUnreserved(t.imported),t.local=t.imported),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportSpecifier")},Re.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportDefaultSpecifier")},Re.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportNamespaceSpecifier")},Re.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===oe.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(oe.comma)))return t;if(this.type===oe.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(oe.braceL);!this.eat(oe.braceR);){if(e)e=!1;else if(this.expect(oe.comma),this.afterTrailingComma(oe.braceR))break;t.push(this.parseImportSpecifier())}return t},Re.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===oe.string){var t=this.parseLiteral(this.value);return ke.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},Re.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)},Re.isDirectiveCandidate=function(t){return this.options.ecmaVersion>=5&&"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&('"'===this.input[t.start]||"'"===this.input[t.start])};var qe=Pe.prototype;qe.toAssignable=function(t,e,i){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&"await"===t.name&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var r=0,n=t.properties;r<n.length;r+=1){var s=n[r];this.toAssignable(s,e),"RestElement"!==s.type||"ArrayPattern"!==s.argument.type&&"ObjectPattern"!==s.argument.type||this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==t.kind&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),"AssignmentPattern"===t.argument.type&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==t.operator&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,i);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return t},qe.toAssignableList=function(t,e){for(var i=t.length,r=0;r<i;r++){var n=t[r];n&&this.toAssignable(n,e)}if(i){var s=t[i-1];6===this.options.ecmaVersion&&e&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return t},qe.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},qe.parseRestBinding=function(){var t=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==oe.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},qe.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case oe.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(oe.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case oe.braceL:return this.parseObj(!0)}return this.parseIdent()},qe.parseBindingList=function(t,e,i,r){for(var n=[],s=!0;!this.eat(t);)if(s?s=!1:this.expect(oe.comma),e&&this.type===oe.comma)n.push(null);else{if(i&&this.afterTrailingComma(t))break;if(this.type===oe.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),n.push(a),this.type===oe.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}n.push(this.parseAssignableListItem(r))}return n},qe.parseAssignableListItem=function(t){var e=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(e),e},qe.parseBindingListItem=function(t){return t},qe.parseMaybeDefault=function(t,e,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(oe.eq))return i;var r=this.startNodeAt(t,e);return r.left=i,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},qe.checkLValSimple=function(t,e,i){void 0===e&&(e=0);var r=0!==e;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(r?"Binding ":"Assigning to ")+t.name+" in strict mode"),r&&(2===e&&"let"===t.name&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),i&&(xe(i,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),i[t.name]=!0),5!==e&&this.declareName(t.name,e,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,i);default:this.raise(t.start,(r?"Binding":"Assigning to")+" rvalue")}},qe.checkLValPattern=function(t,e,i){switch(void 0===e&&(e=0),t.type){case"ObjectPattern":for(var r=0,n=t.properties;r<n.length;r+=1){var s=n[r];this.checkLValInnerPattern(s,e,i)}break;case"ArrayPattern":for(var a=0,o=t.elements;a<o.length;a+=1){var l=o[a];l&&this.checkLValInnerPattern(l,e,i)}break;default:this.checkLValSimple(t,e,i)}},qe.checkLValInnerPattern=function(t,e,i){switch(void 0===e&&(e=0),t.type){case"Property":this.checkLValInnerPattern(t.value,e,i);break;case"AssignmentPattern":this.checkLValPattern(t.left,e,i);break;case"RestElement":this.checkLValPattern(t.argument,e,i);break;default:this.checkLValPattern(t,e,i)}};var We=function(t,e,i,r,n){this.token=t,this.isExpr=!!e,this.preserveSpace=!!i,this.override=r,this.generator=!!n},$e={b_stat:new We("{",!1),b_expr:new We("{",!0),b_tmpl:new We("${",!1),p_stat:new We("(",!1),p_expr:new We("(",!0),q_tmpl:new We("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new We("function",!1),f_expr:new We("function",!0),f_expr_gen:new We("function",!0,!1,null,!0),f_gen:new We("function",!1,!1,null,!0)},Ge=Pe.prototype;Ge.initialContext=function(){return[$e.b_stat]},Ge.curContext=function(){return this.context[this.context.length-1]},Ge.braceIsBlock=function(t){var e=this.curContext();return e===$e.f_expr||e===$e.f_stat||(t!==oe.colon||e!==$e.b_stat&&e!==$e.b_expr?t===oe._return||t===oe.name&&this.exprAllowed?le.test(this.input.slice(this.lastTokEnd,this.start)):t===oe._else||t===oe.semi||t===oe.eof||t===oe.parenR||t===oe.arrow||(t===oe.braceL?e===$e.b_stat:t!==oe._var&&t!==oe._const&&t!==oe.name&&!this.exprAllowed):!e.isExpr)},Ge.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if("function"===e.token)return e.generator}return!1},Ge.updateContext=function(t){var e,i=this.type;i.keyword&&t===oe.dot?this.exprAllowed=!1:(e=i.updateContext)?e.call(this,t):this.exprAllowed=i.beforeExpr},Ge.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)},oe.parenR.updateContext=oe.braceR.updateContext=function(){if(1!==this.context.length){var t=this.context.pop();t===$e.b_stat&&"function"===this.curContext().token&&(t=this.context.pop()),this.exprAllowed=!t.isExpr}else this.exprAllowed=!0},oe.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?$e.b_stat:$e.b_expr),this.exprAllowed=!0},oe.dollarBraceL.updateContext=function(){this.context.push($e.b_tmpl),this.exprAllowed=!0},oe.parenL.updateContext=function(t){var e=t===oe._if||t===oe._for||t===oe._with||t===oe._while;this.context.push(e?$e.p_stat:$e.p_expr),this.exprAllowed=!0},oe.incDec.updateContext=function(){},oe._function.updateContext=oe._class.updateContext=function(t){!t.beforeExpr||t===oe._else||t===oe.semi&&this.curContext()!==$e.p_stat||t===oe._return&&le.test(this.input.slice(this.lastTokEnd,this.start))||(t===oe.colon||t===oe.braceL)&&this.curContext()===$e.b_stat?this.context.push($e.f_stat):this.context.push($e.f_expr),this.exprAllowed=!1},oe.backQuote.updateContext=function(){this.curContext()===$e.q_tmpl?this.context.pop():this.context.push($e.q_tmpl),this.exprAllowed=!1},oe.star.updateContext=function(t){if(t===oe._function){var e=this.context.length-1;this.context[e]===$e.f_expr?this.context[e]=$e.f_expr_gen:this.context[e]=$e.f_gen}this.exprAllowed=!0},oe.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==oe.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var He=Pe.prototype;function Ke(t){return"MemberExpression"===t.type&&"PrivateIdentifier"===t.property.type||"ChainExpression"===t.type&&Ke(t.expression)}He.checkPropClash=function(t,e,i){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===t.type||this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var r,n=t.key;switch(n.type){case"Identifier":r=n.name;break;case"Literal":r=String(n.value);break;default:return}var s=t.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===s&&(e.proto&&(i?i.doubleProto<0&&(i.doubleProto=n.start):this.raiseRecoverable(n.start,"Redefinition of __proto__ property")),e.proto=!0);else{var a=e[r="$"+r];if(a)("init"===s?this.strict&&a.init||a.get||a.set:a.init||a[s])&&this.raiseRecoverable(n.start,"Redefinition of property");else a=e[r]={init:!1,get:!1,set:!1};a[s]=!0}}},He.parseExpression=function(t,e){var i=this.start,r=this.startLoc,n=this.parseMaybeAssign(t,e);if(this.type===oe.comma){var s=this.startNodeAt(i,r);for(s.expressions=[n];this.eat(oe.comma);)s.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(s,"SequenceExpression")}return n},He.parseMaybeAssign=function(t,e,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var r=!1,n=-1,s=-1,a=-1;e?(n=e.parenthesizedAssign,s=e.trailingComma,a=e.doubleProto,e.parenthesizedAssign=e.trailingComma=-1):(e=new Ve,r=!0);var o=this.start,l=this.startLoc;this.type!==oe.parenL&&this.type!==oe.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===t);var h=this.parseMaybeConditional(t,e);if(i&&(h=i.call(this,h,o,l)),this.type.isAssign){var c=this.startNodeAt(o,l);return c.operator=this.value,this.type===oe.eq&&(h=this.toAssignable(h,!1,e)),r||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=h.start&&(e.shorthandAssign=-1),this.type===oe.eq?this.checkLValPattern(h):this.checkLValSimple(h),c.left=h,this.next(),c.right=this.parseMaybeAssign(t),a>-1&&(e.doubleProto=a),this.finishNode(c,"AssignmentExpression")}return r&&this.checkExpressionErrors(e,!0),n>-1&&(e.parenthesizedAssign=n),s>-1&&(e.trailingComma=s),h},He.parseMaybeConditional=function(t,e){var i=this.start,r=this.startLoc,n=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return n;if(this.eat(oe.question)){var s=this.startNodeAt(i,r);return s.test=n,s.consequent=this.parseMaybeAssign(),this.expect(oe.colon),s.alternate=this.parseMaybeAssign(t),this.finishNode(s,"ConditionalExpression")}return n},He.parseExprOps=function(t,e){var i=this.start,r=this.startLoc,n=this.parseMaybeUnary(e,!1,!1,t);return this.checkExpressionErrors(e)||n.start===i&&"ArrowFunctionExpression"===n.type?n:this.parseExprOp(n,i,r,-1,t)},He.parseExprOp=function(t,e,i,r,n){var s=this.type.binop;if(null!=s&&(!n||this.type!==oe._in)&&s>r){var a=this.type===oe.logicalOR||this.type===oe.logicalAND,o=this.type===oe.coalesce;o&&(s=oe.logicalAND.binop);var l=this.value;this.next();var h=this.start,c=this.startLoc,p=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,n),h,c,s,n),u=this.buildBinary(e,i,t,p,l,a||o);return(a&&this.type===oe.coalesce||o&&(this.type===oe.logicalOR||this.type===oe.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(u,e,i,r,n)}return t},He.buildBinary=function(t,e,i,r,n,s){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(t,e);return a.left=i,a.operator=n,a.right=r,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")},He.parseMaybeUnary=function(t,e,i,r){var n,s=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)n=this.parseAwait(r),e=!0;else if(this.type.prefix){var o=this.startNode(),l=this.type===oe.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,l,r),this.checkExpressionErrors(t,!0),l?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&"Identifier"===o.argument.type?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&Ke(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):e=!0,n=this.finishNode(o,l?"UpdateExpression":"UnaryExpression")}else if(e||this.type!==oe.privateId){if(n=this.parseExprSubscripts(t,r),this.checkExpressionErrors(t))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var h=this.startNodeAt(s,a);h.operator=this.value,h.prefix=!1,h.argument=n,this.checkLValSimple(n),this.next(),n=this.finishNode(h,"UpdateExpression")}}else(r||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),n=this.parsePrivateIdent(),this.type!==oe._in&&this.unexpected();return i||!this.eat(oe.starstar)?n:e?void this.unexpected(this.lastTokStart):this.buildBinary(s,a,n,this.parseMaybeUnary(null,!1,!1,r),"**",!1)},He.parseExprSubscripts=function(t,e){var i=this.start,r=this.startLoc,n=this.parseExprAtom(t,e);if("ArrowFunctionExpression"===n.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return n;var s=this.parseSubscripts(n,i,r,!1,e);return t&&"MemberExpression"===s.type&&(t.parenthesizedAssign>=s.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=s.start&&(t.parenthesizedBind=-1),t.trailingComma>=s.start&&(t.trailingComma=-1)),s},He.parseSubscripts=function(t,e,i,r,n){for(var s=this.options.ecmaVersion>=8&&"Identifier"===t.type&&"async"===t.name&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,a=!1;;){var o=this.parseSubscript(t,e,i,r,s,a,n);if(o.optional&&(a=!0),o===t||"ArrowFunctionExpression"===o.type){if(a){var l=this.startNodeAt(e,i);l.expression=o,o=this.finishNode(l,"ChainExpression")}return o}t=o}},He.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(oe.arrow)},He.parseSubscriptAsyncArrow=function(t,e,i,r){return this.parseArrowExpression(this.startNodeAt(t,e),i,!0,r)},He.parseSubscript=function(t,e,i,r,n,s,a){var o=this.options.ecmaVersion>=11,l=o&&this.eat(oe.questionDot);r&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var h=this.eat(oe.bracketL);if(h||l&&this.type!==oe.parenL&&this.type!==oe.backQuote||this.eat(oe.dot)){var c=this.startNodeAt(e,i);c.object=t,h?(c.property=this.parseExpression(),this.expect(oe.bracketR)):this.type===oe.privateId&&"Super"!==t.type?c.property=this.parsePrivateIdent():c.property=this.parseIdent("never"!==this.options.allowReserved),c.computed=!!h,o&&(c.optional=l),t=this.finishNode(c,"MemberExpression")}else if(!r&&this.eat(oe.parenL)){var p=new Ve,u=this.yieldPos,d=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(oe.parenR,this.options.ecmaVersion>=8,!1,p);if(n&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=u,this.awaitPos=d,this.awaitIdentPos=f,this.parseSubscriptAsyncArrow(e,i,m,a);this.checkExpressionErrors(p,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var g=this.startNodeAt(e,i);g.callee=t,g.arguments=m,o&&(g.optional=l),t=this.finishNode(g,"CallExpression")}else if(this.type===oe.backQuote){(l||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var x=this.startNodeAt(e,i);x.tag=t,x.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(x,"TaggedTemplateExpression")}return t},He.parseExprAtom=function(t,e,i){this.type===oe.slash&&this.readRegexp();var r,n=this.potentialArrowAt===this.start;switch(this.type){case oe._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==oe.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==oe.dot&&this.type!==oe.bracketL&&this.type!==oe.parenL&&this.unexpected(),this.finishNode(r,"Super");case oe._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case oe.name:var s=this.start,a=this.startLoc,o=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(oe._function))return this.overrideContext($e.f_expr),this.parseFunction(this.startNodeAt(s,a),0,!1,!0,e);if(n&&!this.canInsertSemicolon()){if(this.eat(oe.arrow))return this.parseArrowExpression(this.startNodeAt(s,a),[l],!1,e);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===oe.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(oe.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,a),[l],!0,e)}return l;case oe.regexp:var h=this.value;return(r=this.parseLiteral(h.value)).regex={pattern:h.pattern,flags:h.flags},r;case oe.num:case oe.string:return this.parseLiteral(this.value);case oe._null:case oe._true:case oe._false:return(r=this.startNode()).value=this.type===oe._null?null:this.type===oe._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case oe.parenL:var c=this.start,p=this.parseParenAndDistinguishExpression(n,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(p)&&(t.parenthesizedAssign=c),t.parenthesizedBind<0&&(t.parenthesizedBind=c)),p;case oe.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(oe.bracketR,!0,!0,t),this.finishNode(r,"ArrayExpression");case oe.braceL:return this.overrideContext($e.b_expr),this.parseObj(!1,t);case oe._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case oe._class:return this.parseClass(this.startNode(),!1);case oe._new:return this.parseNew();case oe.backQuote:return this.parseTemplate();case oe._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},He.parseExprAtomDefault=function(){this.unexpected()},He.parseExprImport=function(t){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var i=this.parseIdent(!0);return this.type!==oe.parenL||t?this.type===oe.dot?(e.meta=i,this.parseImportMeta(e)):void this.unexpected():this.parseDynamicImport(e)},He.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),!this.eat(oe.parenR)){var e=this.start;this.eat(oe.comma)&&this.eat(oe.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")},He.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),"meta"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")},He.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),110===e.raw.charCodeAt(e.raw.length-1)&&(e.bigint=e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")},He.parseParenExpression=function(){this.expect(oe.parenL);var t=this.parseExpression();return this.expect(oe.parenR),t},He.shouldParseArrow=function(t){return!this.canInsertSemicolon()},He.parseParenAndDistinguishExpression=function(t,e){var i,r=this.start,n=this.startLoc,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,l=this.startLoc,h=[],c=!0,p=!1,u=new Ve,d=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==oe.parenR;){if(c?c=!1:this.expect(oe.comma),s&&this.afterTrailingComma(oe.parenR,!0)){p=!0;break}if(this.type===oe.ellipsis){a=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===oe.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}h.push(this.parseMaybeAssign(!1,u,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(oe.parenR),t&&this.shouldParseArrow(h)&&this.eat(oe.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=f,this.parseParenArrowList(r,n,h,e);h.length&&!p||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=f||this.awaitPos,h.length>1?((i=this.startNodeAt(o,l)).expressions=h,this.finishNodeAt(i,"SequenceExpression",m,g)):i=h[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var x=this.startNodeAt(r,n);return x.expression=i,this.finishNode(x,"ParenthesizedExpression")}return i},He.parseParenItem=function(t){return t},He.parseParenArrowList=function(t,e,i,r){return this.parseArrowExpression(this.startNodeAt(t,e),i,!1,r)};var Qe=[];He.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode(),e=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(oe.dot)){t.meta=e;var i=this.containsEsc;return t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var r=this.start,n=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,n,!0,!1),this.eat(oe.parenL)?t.arguments=this.parseExprList(oe.parenR,this.options.ecmaVersion>=8,!1):t.arguments=Qe,this.finishNode(t,"NewExpression")},He.parseTemplateElement=function(t){var e=t.isTagged,i=this.startNode();return this.type===oe.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),i.tail=this.type===oe.backQuote,this.finishNode(i,"TemplateElement")},He.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var i=this.startNode();this.next(),i.expressions=[];var r=this.parseTemplateElement({isTagged:e});for(i.quasis=[r];!r.tail;)this.type===oe.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(oe.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(oe.braceR),i.quasis.push(r=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(i,"TemplateLiteral")},He.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===oe.name||this.type===oe.num||this.type===oe.string||this.type===oe.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===oe.star)&&!le.test(this.input.slice(this.lastTokEnd,this.start))},He.parseObj=function(t,e){var i=this.startNode(),r=!0,n={};for(i.properties=[],this.next();!this.eat(oe.braceR);){if(r)r=!1;else if(this.expect(oe.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(oe.braceR))break;var s=this.parseProperty(t,e);t||this.checkPropClash(s,n,e),i.properties.push(s)}return this.finishNode(i,t?"ObjectPattern":"ObjectExpression")},He.parseProperty=function(t,e){var i,r,n,s,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(oe.ellipsis))return t?(a.argument=this.parseIdent(!1),this.type===oe.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,e),this.type===oe.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(t||e)&&(n=this.start,s=this.startLoc),t||(i=this.eat(oe.star)));var o=this.containsEsc;return this.parsePropertyName(a),!t&&!o&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(a)?(r=!0,i=this.options.ecmaVersion>=9&&this.eat(oe.star),this.parsePropertyName(a)):r=!1,this.parsePropertyValue(a,t,i,r,n,s,e,o),this.finishNode(a,"Property")},He.parseGetterSetter=function(t){t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var e="get"===t.kind?0:1;if(t.value.params.length!==e){var i=t.value.start;"get"===t.kind?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")},He.parsePropertyValue=function(t,e,i,r,n,s,a,o){(i||r)&&this.type===oe.colon&&this.unexpected(),this.eat(oe.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init"):this.options.ecmaVersion>=6&&this.type===oe.parenL?(e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(i,r)):e||o||!(this.options.ecmaVersion>=5)||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===oe.comma||this.type===oe.braceR||this.type===oe.eq?this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?((i||r)&&this.unexpected(),this.checkUnreserved(t.key),"await"!==t.key.name||this.awaitIdentPos||(this.awaitIdentPos=n),t.kind="init",e?t.value=this.parseMaybeDefault(n,s,this.copyNode(t.key)):this.type===oe.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(n,s,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.shorthand=!0):this.unexpected():((i||r)&&this.unexpected(),this.parseGetterSetter(t))},He.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(oe.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(oe.bracketR),t.key;t.computed=!1}return t.key=this.type===oe.num||this.type===oe.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},He.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},He.parseMethod=function(t,e,i){var r=this.startNode(),n=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=t),this.options.ecmaVersion>=8&&(r.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|Ie(e,r.generator)|(i?128:0)),this.expect(oe.parenL),r.params=this.parseBindingList(oe.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=n,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")},He.parseArrowExpression=function(t,e,i,r){var n=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|Ie(i,!1)),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,r),this.yieldPos=n,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(t,"ArrowFunctionExpression")},He.parseFunctionBody=function(t,e,i,r){var n=e&&this.type!==oe.braceL,s=this.strict,a=!1;if(n)t.body=this.parseMaybeAssign(r),t.expression=!0,this.checkParams(t,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);s&&!o||(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(t,!s&&!a&&!e&&!i&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,5),t.body=this.parseBlock(!1,void 0,a&&!s),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=l}this.exitScope()},He.isSimpleParamList=function(t){for(var e=0,i=t;e<i.length;e+=1){if("Identifier"!==i[e].type)return!1}return!0},He.checkParams=function(t,e){for(var i=Object.create(null),r=0,n=t.params;r<n.length;r+=1){var s=n[r];this.checkLValInnerPattern(s,1,e?null:i)}},He.parseExprList=function(t,e,i,r){for(var n=[],s=!0;!this.eat(t);){if(s)s=!1;else if(this.expect(oe.comma),e&&this.afterTrailingComma(t))break;var a=void 0;i&&this.type===oe.comma?a=null:this.type===oe.ellipsis?(a=this.parseSpread(r),r&&this.type===oe.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):a=this.parseMaybeAssign(!1,r),n.push(a)}return n},He.checkUnreserved=function(t){var e=t.start,i=t.end,r=t.name;(this.inGenerator&&"yield"===r&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===r&&this.raiseRecoverable(e,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==r&&"await"!==r||this.raise(e,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(e,"Unexpected keyword '"+r+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(e,i).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+r+"' is reserved"))},He.parseIdent=function(t){var e=this.parseIdentNode();return this.next(!!t),this.finishNode(e,"Identifier"),t||(this.checkUnreserved(e),"await"!==e.name||this.awaitIdentPos||(this.awaitIdentPos=e.start)),e},He.parseIdentNode=function(){var t=this.startNode();return this.type===oe.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,"class"!==t.name&&"function"!==t.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),t},He.parsePrivateIdent=function(){var t=this.startNode();return this.type===oe.privateId?t.name=this.value:this.unexpected(),this.next(),this.finishNode(t,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(t.start,"Private field '#"+t.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(t)),t},He.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===oe.semi||this.canInsertSemicolon()||this.type!==oe.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(oe.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")},He.parseAwait=function(t){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(e,"AwaitExpression")};var Ze=Pe.prototype;Ze.raise=function(t,e){var i=Ce(this.input,t);e+=" ("+i.line+":"+i.column+")";var r=new SyntaxError(e);throw r.pos=t,r.loc=i,r.raisedAt=this.pos,r},Ze.raiseRecoverable=Ze.raise,Ze.curPosition=function(){if(this.options.locations)return new we(this.curLine,this.pos-this.lineStart)};var Ye=Pe.prototype,Xe=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};Ye.enterScope=function(t){this.scopeStack.push(new Xe(t))},Ye.exitScope=function(){this.scopeStack.pop()},Ye.treatFunctionsAsVarInScope=function(t){return 2&t.flags||!this.inModule&&1&t.flags},Ye.declareName=function(t,e,i){var r=!1;if(2===e){var n=this.currentScope();r=n.lexical.indexOf(t)>-1||n.functions.indexOf(t)>-1||n.var.indexOf(t)>-1,n.lexical.push(t),this.inModule&&1&n.flags&&delete this.undefinedExports[t]}else if(4===e){this.currentScope().lexical.push(t)}else if(3===e){var s=this.currentScope();r=this.treatFunctionsAsVar?s.lexical.indexOf(t)>-1:s.lexical.indexOf(t)>-1||s.var.indexOf(t)>-1,s.functions.push(t)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(t)>-1&&!(32&o.flags&&o.lexical[0]===t)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(t)>-1){r=!0;break}if(o.var.push(t),this.inModule&&1&o.flags&&delete this.undefinedExports[t],259&o.flags)break}r&&this.raiseRecoverable(i,"Identifier '"+t+"' has already been declared")},Ye.checkLocalExport=function(t){-1===this.scopeStack[0].lexical.indexOf(t.name)&&-1===this.scopeStack[0].var.indexOf(t.name)&&(this.undefinedExports[t.name]=t)},Ye.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Ye.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(259&e.flags)return e}},Ye.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(259&e.flags&&!(16&e.flags))return e}};var Je=function(t,e,i){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new Se(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},ti=Pe.prototype;function ei(t,e,i,r){return t.type=e,t.end=i,this.options.locations&&(t.loc.end=r),this.options.ranges&&(t.range[1]=i),t}ti.startNode=function(){return new Je(this,this.start,this.startLoc)},ti.startNodeAt=function(t,e){return new Je(this,t,e)},ti.finishNode=function(t,e){return ei.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},ti.finishNodeAt=function(t,e,i,r){return ei.call(this,t,e,i,r)},ti.copyNode=function(t){var e=new Je(this,t.start,this.startLoc);for(var i in t)e[i]=t[i];return e};var ii,ri,ni="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",si=ni+" Extended_Pictographic",ai=si+" EBase EComp EMod EPres ExtPict",oi={9:ni,10:si,11:si,12:ai,13:ai,14:ai},li={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},hi="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",ci="Adlam Adlm 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 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",pi=ci+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ui=pi+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",di=ui+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",fi=di+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",mi={9:ci,10:pi,11:ui,12:di,13:fi,14:fi+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},gi={};function xi(t){var e=gi[t]={binary:ye(oi[t]+" "+hi),binaryOfStrings:ye(li[t]),nonBinary:{General_Category:ye(hi),Script:ye(mi[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}for(ii=0,ri=[9,10,11,12,13,14];ii<ri.length;ii+=1)xi(ri[ii]);var bi=Pe.prototype,yi=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=gi[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!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=[]};function vi(t){return 36===t||t>=40&&t<=43||46===t||63===t||t>=91&&t<=94||t>=123&&t<=125}function ki(t){return t>=65&&t<=90||t>=97&&t<=122}yi.prototype.reset=function(t,e,i){var r=-1!==i.indexOf("v"),n=-1!==i.indexOf("u");this.start=0|t,this.source=e+"",this.flags=i,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=n&&this.parser.options.ecmaVersion>=9)},yi.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},yi.prototype.at=function(t,e){void 0===e&&(e=!1);var i=this.source,r=i.length;if(t>=r)return-1;var n=i.charCodeAt(t);if(!e&&!this.switchU||n<=55295||n>=57344||t+1>=r)return n;var s=i.charCodeAt(t+1);return s>=56320&&s<=57343?(n<<10)+s-56613888:n},yi.prototype.nextIndex=function(t,e){void 0===e&&(e=!1);var i=this.source,r=i.length;if(t>=r)return r;var n,s=i.charCodeAt(t);return!e&&!this.switchU||s<=55295||s>=57344||t+1>=r||(n=i.charCodeAt(t+1))<56320||n>57343?t+1:t+2},yi.prototype.current=function(t){return void 0===t&&(t=!1),this.at(this.pos,t)},yi.prototype.lookahead=function(t){return void 0===t&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},yi.prototype.advance=function(t){void 0===t&&(t=!1),this.pos=this.nextIndex(this.pos,t)},yi.prototype.eat=function(t,e){return void 0===e&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},yi.prototype.eatChars=function(t,e){void 0===e&&(e=!1);for(var i=this.pos,r=0,n=t;r<n.length;r+=1){var s=n[r],a=this.at(i,e);if(-1===a||a!==s)return!1;i=this.nextIndex(i,e)}return this.pos=i,!0},bi.validateRegExpFlags=function(t){for(var e=t.validFlags,i=t.flags,r=!1,n=!1,s=0;s<i.length;s++){var a=i.charAt(s);-1===e.indexOf(a)&&this.raise(t.start,"Invalid regular expression flag"),i.indexOf(a,s+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),"u"===a&&(r=!0),"v"===a&&(n=!0)}this.options.ecmaVersion>=15&&r&&n&&this.raise(t.start,"Invalid regular expression flag")},bi.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&t.groupNames.length>0&&(t.switchN=!0,this.regexp_pattern(t))},bi.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames.length=0,t.backReferenceNames.length=0,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,i=t.backReferenceNames;e<i.length;e+=1){var r=i[e];-1===t.groupNames.indexOf(r)&&t.raise("Invalid named capture referenced")}},bi.regexp_disjunction=function(t){for(this.regexp_alternative(t);t.eat(124);)this.regexp_alternative(t);this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},bi.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},bi.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):!!(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))&&(this.regexp_eatQuantifier(t),!0)},bi.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!i,!0}return t.pos=e,!1},bi.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},bi.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},bi.regexp_eatBracedQuantifier=function(t,e){var i=t.pos;if(t.eat(123)){var r=0,n=-1;if(this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(n=t.lastIntValue),t.eat(125)))return-1!==n&&n<r&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=i}return!1},bi.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)},bi.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1},bi.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)&&t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}t.pos=e}return!1},bi.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):63===t.current()&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},bi.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},bi.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},bi.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!vi(e)&&(t.lastIntValue=e,t.advance(),!0)},bi.regexp_eatPatternCharacters=function(t){for(var e=t.pos,i=0;-1!==(i=t.current())&&!vi(i);)t.advance();return t.pos!==e},bi.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return!(-1===e||36===e||e>=40&&e<=43||46===e||63===e||91===e||94===e||124===e)&&(t.advance(),!0)},bi.regexp_groupSpecifier=function(t){if(t.eat(63)){if(this.regexp_eatGroupName(t))return-1!==t.groupNames.indexOf(t.lastStringValue)&&t.raise("Duplicate capture group name"),void t.groupNames.push(t.lastStringValue);t.raise("Invalid group")}},bi.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},bi.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=ve(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=ve(t.lastIntValue);return!0}return!1},bi.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,r=t.current(i);return t.advance(i),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(r=t.lastIntValue),function(t){return Jt(t,!0)||36===t||95===t}(r)?(t.lastIntValue=r,!0):(t.pos=e,!1)},bi.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,r=t.current(i);return t.advance(i),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(r=t.lastIntValue),function(t){return te(t,!0)||36===t||95===t||8204===t||8205===t}(r)?(t.lastIntValue=r,!0):(t.pos=e,!1)},bi.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(99===t.current()&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},bi.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var i=t.lastIntValue;if(t.switchU)return i>t.maxBackReference&&(t.maxBackReference=i),!0;if(i<=t.numCapturingParens)return!0;t.pos=e}return!1},bi.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},bi.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},bi.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},bi.regexp_eatZero=function(t){return 48===t.current()&&!Ci(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},bi.regexp_eatControlEscape=function(t){var e=t.current();return 116===e?(t.lastIntValue=9,t.advance(),!0):110===e?(t.lastIntValue=10,t.advance(),!0):118===e?(t.lastIntValue=11,t.advance(),!0):102===e?(t.lastIntValue=12,t.advance(),!0):114===e&&(t.lastIntValue=13,t.advance(),!0)},bi.regexp_eatControlLetter=function(t){var e=t.current();return!!ki(e)&&(t.lastIntValue=e%32,t.advance(),!0)},bi.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){void 0===e&&(e=!1);var i,r=t.pos,n=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var s=t.lastIntValue;if(n&&s>=55296&&s<=56319){var a=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(o>=56320&&o<=57343)return t.lastIntValue=1024*(s-55296)+(o-56320)+65536,!0}t.pos=a,t.lastIntValue=s}return!0}if(n&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&((i=t.lastIntValue)>=0&&i<=1114111))return!0;n&&t.raise("Invalid unicode escape"),t.pos=r}return!1},bi.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return!(99===e||t.switchN&&107===e)&&(t.lastIntValue=e,t.advance(),!0)},bi.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do{t.lastIntValue=10*t.lastIntValue+(e-48),t.advance()}while((e=t.current())>=48&&e<=57);return!0}return!1};function wi(t){return ki(t)||95===t}function Si(t){return wi(t)||Ci(t)}function Ci(t){return t>=48&&t<=57}function _i(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function Ei(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t-48}function Ai(t){return t>=48&&t<=55}bi.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(function(t){return 100===t||68===t||115===t||83===t||119===t||87===t}(e))return t.lastIntValue=-1,t.advance(),1;var i=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((i=80===e)||112===e)){var r;if(t.lastIntValue=-1,t.advance(),t.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return i&&2===r&&t.raise("Invalid property name"),r;t.raise("Invalid property name")}return 0},bi.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var i=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,i,r),1}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var n=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,n)}return 0},bi.regexp_validateUnicodePropertyNameAndValue=function(t,e,i){xe(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(i)||t.raise("Invalid property value")},bi.regexp_validateUnicodePropertyNameOrValue=function(t,e){return t.unicodeProperties.binary.test(e)?1:t.switchV&&t.unicodeProperties.binaryOfStrings.test(e)?2:void t.raise("Invalid property name")},bi.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";wi(e=t.current());)t.lastStringValue+=ve(e),t.advance();return""!==t.lastStringValue},bi.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";Si(e=t.current());)t.lastStringValue+=ve(e),t.advance();return""!==t.lastStringValue},bi.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},bi.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),i=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&2===i&&t.raise("Negated character class may contain strings"),!0}return!1},bi.regexp_classContents=function(t){return 93===t.current()?1:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),1)},bi.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var i=t.lastIntValue;!t.switchU||-1!==e&&-1!==i||t.raise("Invalid character class"),-1!==e&&-1!==i&&e>i&&t.raise("Range out of order in character class")}}},bi.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var i=t.current();(99===i||Ai(i))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var r=t.current();return 93!==r&&(t.lastIntValue=r,t.advance(),!0)},bi.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},bi.regexp_classSetExpression=function(t){var e,i=1;if(this.regexp_eatClassSetRange(t));else if(e=this.regexp_eatClassSetOperand(t)){2===e&&(i=2);for(var r=t.pos;t.eatChars([38,38]);)38!==t.current()&&(e=this.regexp_eatClassSetOperand(t))?2!==e&&(i=1):t.raise("Invalid character in character class");if(r!==t.pos)return i;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(r!==t.pos)return i}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(!(e=this.regexp_eatClassSetOperand(t)))return i;2===e&&(i=2)}},bi.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var i=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var r=t.lastIntValue;return-1!==i&&-1!==r&&i>r&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1},bi.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?1:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},bi.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var i=t.eat(94),r=this.regexp_classContents(t);if(t.eat(93))return i&&2===r&&t.raise("Negated character class may contain strings"),r;t.pos=e}if(t.eat(92)){var n=this.regexp_eatCharacterClassEscape(t);if(n)return n;t.pos=e}return null},bi.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var i=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return i}else t.raise("Invalid escape");t.pos=e}return null},bi.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)2===this.regexp_classString(t)&&(e=2);return e},bi.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return 1===e?1:2},bi.regexp_eatClassSetCharacter=function(t){var e=t.pos;if(t.eat(92))return!(!this.regexp_eatCharacterEscape(t)&&!this.regexp_eatClassSetReservedPunctuator(t))||(t.eat(98)?(t.lastIntValue=8,!0):(t.pos=e,!1));var i=t.current();return!(i<0||i===t.lookahead()&&function(t){return 33===t||t>=35&&t<=38||t>=42&&t<=44||46===t||t>=58&&t<=64||94===t||96===t||126===t}(i))&&(!function(t){return 40===t||41===t||45===t||47===t||t>=91&&t<=93||t>=123&&t<=125}(i)&&(t.advance(),t.lastIntValue=i,!0))},bi.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return!!function(t){return 33===t||35===t||37===t||38===t||44===t||45===t||t>=58&&t<=62||64===t||96===t||126===t}(e)&&(t.lastIntValue=e,t.advance(),!0)},bi.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!Ci(e)&&95!==e)&&(t.lastIntValue=e%32,t.advance(),!0)},bi.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},bi.regexp_eatDecimalDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;Ci(i=t.current());)t.lastIntValue=10*t.lastIntValue+(i-48),t.advance();return t.pos!==e},bi.regexp_eatHexDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;_i(i=t.current());)t.lastIntValue=16*t.lastIntValue+Ei(i),t.advance();return t.pos!==e},bi.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*i+t.lastIntValue:t.lastIntValue=8*e+i}else t.lastIntValue=e;return!0}return!1},bi.regexp_eatOctalDigit=function(t){var e=t.current();return Ai(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},bi.regexp_eatFixedHexDigits=function(t,e){var i=t.pos;t.lastIntValue=0;for(var r=0;r<e;++r){var n=t.current();if(!_i(n))return t.pos=i,!1;t.lastIntValue=16*t.lastIntValue+Ei(n),t.advance()}return!0};var Ti=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new Se(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},Ii=Pe.prototype;function Pi(t){return"function"!=typeof BigInt?null:BigInt(t.replace(/_/g,""))}Ii.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Ti(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Ii.getToken=function(){return this.next(),new Ti(this)},"undefined"!=typeof Symbol&&(Ii[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===oe.eof,value:e}}}}),Ii.nextToken=function(){var t=this.curContext();return t&&t.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(oe.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},Ii.readToken=function(t){return Jt(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},Ii.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(t<=55295||t>=56320)return t;var e=this.input.charCodeAt(this.pos+1);return e<=56319||e>=57344?t:(t<<10)+e-56613888},Ii.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(-1===i&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var r=void 0,n=e;(r=pe(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,i),e,this.pos,t,this.curPosition())},Ii.skipLineComment=function(t){for(var e=this.pos,i=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!ce(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,i,this.curPosition())},Ii.skipSpace=function(){t:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++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 t}break;default:if(!(t>8&&t<14||t>=5760&&ue.test(String.fromCharCode(t))))break t;++this.pos}}},Ii.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=t,this.value=e,this.updateContext(i)},Ii.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===t&&46===e?(this.pos+=3,this.finishToken(oe.ellipsis)):(++this.pos,this.finishToken(oe.dot))},Ii.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(oe.assign,2):this.finishOp(oe.slash,1)},Ii.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),i=1,r=42===t?oe.star:oe.modulo;return this.options.ecmaVersion>=7&&42===t&&42===e&&(++i,r=oe.starstar,e=this.input.charCodeAt(this.pos+2)),61===e?this.finishOp(oe.assign,i+1):this.finishOp(r,i)},Ii.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);if(e===t){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(oe.assign,3);return this.finishOp(124===t?oe.logicalOR:oe.logicalAND,2)}return 61===e?this.finishOp(oe.assign,2):this.finishOp(124===t?oe.bitwiseOR:oe.bitwiseAND,1)},Ii.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(oe.assign,2):this.finishOp(oe.bitwiseXOR,1)},Ii.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?45!==e||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!le.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(oe.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===e?this.finishOp(oe.assign,2):this.finishOp(oe.plusMin,1)},Ii.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),i=1;return e===t?(i=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i)?this.finishOp(oe.assign,i+1):this.finishOp(oe.bitShift,i)):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(i=2),this.finishOp(oe.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Ii.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(oe.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(oe.arrow)):this.finishOp(61===t?oe.eq:oe.prefix,1)},Ii.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(46===e){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(oe.questionDot,2)}if(63===e){if(t>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(oe.assign,3);return this.finishOp(oe.coalesce,2)}}return this.finishOp(oe.question,1)},Ii.readToken_numberSign=function(){var t=35;if(this.options.ecmaVersion>=13&&(++this.pos,Jt(t=this.fullCharCodeAtPos(),!0)||92===t))return this.finishToken(oe.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+ve(t)+"'")},Ii.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(oe.parenL);case 41:return++this.pos,this.finishToken(oe.parenR);case 59:return++this.pos,this.finishToken(oe.semi);case 44:return++this.pos,this.finishToken(oe.comma);case 91:return++this.pos,this.finishToken(oe.bracketL);case 93:return++this.pos,this.finishToken(oe.bracketR);case 123:return++this.pos,this.finishToken(oe.braceL);case 125:return++this.pos,this.finishToken(oe.braceR);case 58:return++this.pos,this.finishToken(oe.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(oe.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(120===e||88===e)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===e||79===e)return this.readRadixNumber(8);if(98===e||66===e)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(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(oe.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+ve(t)+"'")},Ii.finishOp=function(t,e){var i=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,i)},Ii.readRegexp=function(){for(var t,e,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(le.test(r)&&this.raise(i,"Unterminated regular expression"),t)t=!1;else{if("["===r)e=!0;else if("]"===r&&e)e=!1;else if("/"===r&&!e)break;t="\\"===r}++this.pos}var n=this.input.slice(i,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var o=this.regexpState||(this.regexpState=new yi(this));o.reset(i,n,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(n,a)}catch(t){}return this.finishToken(oe.regexp,{pattern:n,flags:a,value:l})},Ii.readInt=function(t,e,i){for(var r=this.options.ecmaVersion>=12&&void 0===e,n=i&&48===this.input.charCodeAt(this.pos),s=this.pos,a=0,o=0,l=0,h=null==e?1/0:e;l<h;++l,++this.pos){var c=this.input.charCodeAt(this.pos),p=void 0;if(r&&95===c)n&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=c;else{if((p=c>=97?c-97+10:c>=65?c-65+10:c>=48&&c<=57?c-48:1/0)>=t)break;o=c,a=a*t+p}}return r&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||null!=e&&this.pos-s!==e?null:a},Ii.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var i=this.readInt(t);return null==i&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(i=Pi(this.input.slice(e,this.pos)),++this.pos):Jt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(oe.num,i)},Ii.readNumber=function(t){var e=this.pos;t||null!==this.readInt(10,void 0,!0)||this.raise(e,"Invalid number");var i=this.pos-e>=2&&48===this.input.charCodeAt(e);i&&this.strict&&this.raise(e,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!i&&!t&&this.options.ecmaVersion>=11&&110===r){var n=Pi(this.input.slice(e,this.pos));return++this.pos,Jt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(oe.num,n)}i&&/[89]/.test(this.input.slice(e,this.pos))&&(i=!1),46!==r||i||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||i||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number")),Jt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s,a=(s=this.input.slice(e,this.pos),i?parseInt(s,8):parseFloat(s.replace(/_/g,"")));return this.finishToken(oe.num,a)},Ii.readCodePoint=function(){var t;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},Ii.readString=function(t){for(var e="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===t)break;92===r?(e+=this.input.slice(i,this.pos),e+=this.readEscapedChar(!1),i=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(ce(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(i,this.pos++),this.finishToken(oe.string,e)};var Ni={};Ii.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==Ni)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Ii.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ni;this.raise(t,e)},Ii.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==oe.template&&this.type!==oe.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(oe.template,t)):36===i?(this.pos+=2,this.finishToken(oe.dollarBraceL)):(++this.pos,this.finishToken(oe.backQuote));if(92===i)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(ce(i)){switch(t+=this.input.slice(e,this.pos),++this.pos,i){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},Ii.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(oe.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},Ii.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return ve(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),t){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(e>=48&&e<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(r,8);return n>255&&(r=r.slice(0,-1),n=parseInt(r,8)),this.pos+=r.length-1,e=this.input.charCodeAt(this.pos),"0"===r&&56!==e&&57!==e||!this.strict&&!t||this.invalidStringToken(this.pos-1-r.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return ce(e)?"":String.fromCharCode(e)}},Ii.readHexChar=function(t){var e=this.pos,i=this.readInt(16,t);return null===i&&this.invalidStringToken(e,"Bad character escape sequence"),i},Ii.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,i=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var n=this.fullCharCodeAtPos();if(te(n,r))this.pos+=n<=65535?1:2;else{if(92!==n)break;this.containsEsc=!0,t+=this.input.slice(i,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(e?Jt:te)(a,r)||this.invalidStringToken(s,"Invalid Unicode escape"),t+=ve(a),i=this.pos}e=!1}return t+this.input.slice(i,this.pos)},Ii.readWord=function(){var t=this.readWord1(),e=oe.name;return this.keywords.test(t)&&(e=se[t]),this.finishToken(e,t)};Pe.acorn={Parser:Pe,version:"8.10.0",defaultOptions:_e,Position:we,SourceLocation:Se,getLineInfo:Ce,Node:Je,TokenType:ee,tokTypes:oe,keywordTypes:se,TokContext:We,tokContexts:$e,isIdentifierChar:te,isIdentifierStart:Jt,Token:Ti,isNewLine:ce,lineBreak:le,lineBreakG:he,nonASCIIwhitespace:ue};var Li={};r(Li,{TextCursor:()=>Oi});class Oi{#r;#w=0;#S=0;#C=0;constructor(t){this.#r=t}advance(t){for(this.#w=t;this.#S<this.#r.length&&this.#r[this.#S]<this.#w;)++this.#S;this.#C=this.#S?this.#w-this.#r[this.#S-1]-1:this.#w}offset(){return this.#w}resetTo(t){this.#w=t,this.#S=n.lowerBound(this.#r,t,n.DEFAULT_COMPARATOR),this.#C=this.#S?this.#w-this.#r[this.#S-1]-1:this.#w}lineNumber(){return this.#S}columnNumber(){return this.#C}}class Vi{#_;#E;#A;#T;#I=0;constructor(t,e){this.#T=e;const i=k.findLineEndingIndexes(t);this.#_=new Li.TextCursor(i),this.#E=0,this.#A=0}static punctuator(t,e){return t.type!==oe.num&&t.type!==oe.regexp&&t.type!==oe.string&&t.type!==oe.name&&!t.type.keyword&&(!e||1===t.type.label.length&&-1!==e.indexOf(t.type.label))}static keyword(t,e){return Boolean(t.type.keyword)&&t.type!==oe._true&&t.type!==oe._false&&t.type!==oe._null&&(!e||t.type.keyword===e)}static identifier(t,e){return t.type===oe.name&&(!e||t.value===e)}static arrowIdentifier(t,e){return t.type===oe.arrow&&(!e||t.type.label===e)}static lineComment(t){return"Line"===t.type}static blockComment(t){return"Block"===t.type}nextToken(){const t=this.#T[this.#I++];return t&&t.type!==oe.eof?(this.#_.advance(t.start),this.#E=this.#_.lineNumber(),this.#_.advance(t.end),this.#A=this.#_.lineNumber(),t):null}peekToken(){const t=this.#T[this.#I];return t&&t.type!==oe.eof?t:null}tokenLineStart(){return this.#E}tokenLineEnd(){return this.#A}}class Ri{#P;#N;constructor(t,e){this.#P=t,this.#N=e}walk(t){this.#L(t,null)}#L(t,e){if(!t)return;t.parent=e,this.#P.call(null,t);const i=Bi[t.type];if(i){if("TemplateLiteral"===t.type){const e=t,i=e.expressions.length;for(let t=0;t<i;++t)this.#L(e.quasis[t],e),this.#L(e.expressions[t],e);this.#L(e.quasis[i],e)}else for(let e=0;e<i.length;++e){const r=t[i[e]];Array.isArray(r)?this.#O(r,t):this.#L(r,t)}this.#N.call(null,t)}else console.error("Walk order not defined for "+t.type)}#O(t,e){for(let i=0;i<t.length;++i)this.#L(t[i],e)}}var Bi={AwaitExpression:["argument"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ChainExpression:["expression"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],ImportDeclaration:["specifiers","source","attributes"],ImportAttribute:["key","value"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source"],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["specifiers","source","declaration"],ExportSpecifier:["exported","local"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],ParenthesizedExpression:["expression"],PrivateIdentifier:[],PropertyDefinition:["key","value"],Program:["body"],Property:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]};class Di{#t;#V;#R;#i;#B;#e;constructor(t){this.#t=t}format(t,e,i,r){this.#i=i,this.#e=r,this.#R=t.substring(this.#i,this.#e),this.#B=0;const n=[],s=(a=this.#R,Pe.parse(a,{ranges:!1,preserveParens:!0,allowAwaitOutsideFunction:!0,allowImportExportEverywhere:!0,ecmaVersion:"latest",allowHashBang:!0,onToken:n,onComment:n}));var a;this.#V=new Vi(this.#R,n);new Ri(this.#P.bind(this),this.#N.bind(this)).walk(s)}#D(t,e){for(let i=0;i<e.length;++i)"s"===e[i]?this.#t.addSoftSpace():"S"===e[i]?this.#t.addHardSpace():"n"===e[i]?this.#t.addNewLine():">"===e[i]?this.#t.increaseNestingLevel():"<"===e[i]?this.#t.decreaseNestingLevel():"t"===e[i]&&(this.#V.tokenLineStart()-this.#B>1&&this.#t.addNewLine(!0),this.#B=this.#V.tokenLineEnd(),t&&this.#t.addToken(this.#R.substring(t.start,t.end),this.#i+t.start))}#P(t){if(!t.parent)return;let e;for("TemplateLiteral"===t.type&&this.#t.setEnforceSpaceBetweenWords(!1);(e=this.#V.peekToken())&&e.start<t.start;){const e=this.#V.nextToken(),i=this.#M(t.parent,e);this.#D(e,i)}}#N(t){const e=this.#t.setEnforceSpaceBetweenWords("TemplateElement"!==t.type);let i;for(;(i=this.#V.peekToken())&&i.start<t.end;){const e=this.#V.nextToken(),i=this.#M(t,e);this.#D(e,i)}this.#D(null,this.#F(t)),this.#t.setEnforceSpaceBetweenWords(e||"TemplateLiteral"===t.type)}#z(t){const e=t.parent;if(!e)return!1;if("ForStatement"===e.type){const i=e;return t===i.init||t===i.test||t===i.update}if("ForInStatement"===e.type||"ForOfStatement"===e.type){const i=e;return t===i.left||t===i.right}return!1}#M(t,e){const i=Vi;if(i.lineComment(e))return"tn";if(i.blockComment(e))return"tn";const r=e,n=t.type;if("ContinueStatement"===n||"BreakStatement"===n)return t.label&&i.keyword(r)?"ts":"t";if("Identifier"===n)return"t";if("PrivateIdentifier"===n)return"t";if("ReturnStatement"===n)return i.punctuator(r,";")?"t":t.argument?"ts":"t";if("AwaitExpression"===n)return i.punctuator(r,";")?"t":t.argument?"ts":"t";if("Property"===n)return i.punctuator(r,":")?"ts":"t";if("ImportAttribute"===n)return i.punctuator(r,":")?"ts":"t";if("ArrayExpression"===n)return i.punctuator(r,",")?"ts":"t";if("LabeledStatement"===n){if(i.punctuator(r,":"))return"ts"}else if("LogicalExpression"===n||"AssignmentExpression"===n||"BinaryExpression"===n){if(i.punctuator(r)&&!i.punctuator(r,"()"))return"sts"}else if("ConditionalExpression"===n){if(i.punctuator(r,"?:"))return"sts"}else if("VariableDeclarator"===n){if(i.punctuator(r,"="))return"sts"}else if("ObjectPattern"===n){if("VariableDeclarator"===t.parent?.type&&i.punctuator(r,"{"))return"st";if(i.punctuator(r,","))return"ts"}else if("FunctionDeclaration"===n){if(i.punctuator(r,",)"))return"ts"}else if("FunctionExpression"===n){if(i.punctuator(r,",)"))return"ts";if(i.keyword(r,"function"))return t.id?"ts":"t"}else if("ArrowFunctionExpression"===n){if(i.punctuator(r,",)"))return"ts";if(i.punctuator(r,"("))return"st";if(i.arrowIdentifier(r,"=>"))return"sts"}else if("WithStatement"===n){if(i.punctuator(r,")"))return"BlockStatement"===t.body?.type?"ts":"tn>"}else if("SwitchStatement"===n){if(i.punctuator(r,"{"))return"tn>";if(i.punctuator(r,"}"))return"n<tn";if(i.punctuator(r,")"))return"ts"}else if("SwitchCase"===n){if(i.keyword(r,"case"))return"n<ts";if(i.keyword(r,"default"))return"n<t";if(i.punctuator(r,":"))return"tn>"}else if("VariableDeclaration"===n){if(i.punctuator(r,",")){let e=!0;const i=t.declarations;for(let t=0;t<i.length;++t)e=e&&Boolean(i[t].init);return!this.#z(t)&&e?"nSSts":"ts"}}else if("PropertyDefinition"===n){if(i.punctuator(r,"="))return"sts";if(i.punctuator(r,";"))return"tn"}else if("BlockStatement"===n){if(i.punctuator(r,"{"))return t.body.length?"tn>":"t";if(i.punctuator(r,"}"))return t.body.length?"n<t":"t"}else if("CatchClause"===n){if(i.punctuator(r,")"))return"ts"}else if("ObjectExpression"===n){if(!t.properties.length)return"t";if(i.punctuator(r,"{"))return"tn>";if(i.punctuator(r,"}"))return"n<t";if(i.punctuator(r,","))return"tn"}else if("IfStatement"===n){if(i.punctuator(r,")"))return"BlockStatement"===t.consequent?.type?"ts":"tn>";if(i.keyword(r,"else")){const e="BlockStatement"===t.consequent?.type?"st":"n<t";let i="n>";return!t.alternate||"BlockStatement"!==t.alternate.type&&"IfStatement"!==t.alternate.type||(i="s"),e+i}}else if("CallExpression"===n){if(i.punctuator(r,","))return"ts"}else{if("SequenceExpression"===n&&i.punctuator(r,","))return"SwitchCase"===t.parent?.type?"ts":"tn";if("ForStatement"===n||"ForOfStatement"===n||"ForInStatement"===n){if(i.punctuator(r,";"))return"ts";if(i.keyword(r,"in")||i.identifier(r,"of"))return"sts";if(i.punctuator(r,")"))return"BlockStatement"===t.body?.type?"ts":"tn>"}else if("WhileStatement"===n){if(i.punctuator(r,")"))return"BlockStatement"===t.body?.type?"ts":"tn>"}else if("DoWhileStatement"===n){const e="BlockStatement"===t.body?.type;if(i.keyword(r,"do"))return e?"ts":"tn>";if(i.keyword(r,"while"))return e?"sts":"n<ts";if(i.punctuator(r,";"))return"tn"}else{if("ClassBody"===n)return i.punctuator(r,"{")?"stn>":i.punctuator(r,"}")?"<ntn":"t";if("YieldExpression"===n)return"t";if("Super"===n)return"t";if("ImportExpression"===n)return"t";if("ExportAllDeclaration"===n)return i.punctuator(r,"*")?"sts":"t";if("ExportNamedDeclaration"===n||"ImportDeclaration"===n)return i.punctuator(r,"{")?"st":i.punctuator(r,",")?"ts":i.punctuator(r,"}")?t.attributes?.length>0?"t":t.source?"ts":"t":i.punctuator(r,"*")||i.keyword(r,"with")?"sts":"t";if("MemberExpression"===n)return"Literal"===t.object.type&&"number"==typeof t.object.value?"st":"t"}}return i.keyword(r)&&!i.keyword(r,"this")?"ts":"t"}#F(t){const e=t.type;if("WithStatement"===e){if(t.body&&"BlockStatement"!==t.body.type)return"n<"}else if("VariableDeclaration"===e){if(!this.#z(t))return"n"}else if("ForStatement"===e||"ForOfStatement"===e||"ForInStatement"===e){if(t.body&&"BlockStatement"!==t.body.type)return"n<"}else{if("BlockStatement"===e){if("IfStatement"===t.parent?.type){const e=t.parent;if(e.alternate&&e.consequent===t)return""}if("FunctionExpression"===t.parent?.type&&"Property"===t.parent.parent?.type)return"";if("FunctionExpression"===t.parent?.type&&"VariableDeclarator"===t.parent.parent?.type)return"";if("FunctionExpression"===t.parent?.type&&"CallExpression"===t.parent.parent?.type)return"";if("DoWhileStatement"===t.parent?.type)return"";if("TryStatement"===t.parent?.type){if(t.parent.block===t)return"s"}if("CatchClause"===t.parent?.type){const e=t.parent;if(e.parent?.finalizer)return"s"}return"n"}if("WhileStatement"===e){if(t.body&&"BlockStatement"!==t.body.type)return"n<"}else if("IfStatement"===e){if(t.alternate){if("BlockStatement"!==t.alternate.type&&"IfStatement"!==t.alternate.type)return"<"}else if(t.consequent&&"BlockStatement"!==t.consequent.type)return"<"}else{if("BreakStatement"===e||"ContinueStatement"===e||"ThrowStatement"===e||"ReturnStatement"===e||"ExpressionStatement"===e)return"n";if("ImportDeclaration"===e||"ExportAllDeclaration"===e||"ExportDefaultDeclaration"===e||"ExportNamedDeclaration"===e)return"n"}}return""}}class Mi{builder;toOffset;fromOffset;lineEndings;lastLine;text;constructor(t){this.builder=t,this.lastLine=-1}format(t,e,i,r){this.lineEndings=e,this.fromOffset=i,this.toOffset=r,this.lastLine=-1,this.text=t;Ki("application/json")(t.substring(this.fromOffset,this.toOffset),this.tokenCallback.bind(this))}tokenCallback(t,e,i){switch(t.charAt(0)){case"{":case"[":"}"===this.text[i+1]||"]"===this.text[i+1]?this.builder.addToken(t,i):(this.builder.addToken(t,i),this.builder.addNewLine(),this.builder.increaseNestingLevel());break;case"}":case"]":"{"===this.text[i-1]||"["===this.text[i-1]||(this.builder.decreaseNestingLevel(),this.builder.addNewLine()),this.builder.addToken(t,i);break;case":":this.builder.addToken(t,i),this.builder.addSoftSpace();break;case",":this.builder.addToken(t,i),this.builder.addNewLine();break;case"":case" ":case"\n":break;default:this.builder.addToken(t,i)}}}class Fi{#t;#j;#U;#q;#W;#r;#$;constructor(t){this.#t=t,this.#j=new Di(t),this.#U=new Mi(t),this.#q=new dt(t)}format(t,e){this.#W=t,this.#r=e,this.#$=new ji(t),this.#G(this.#$.document())}#H(t,e){if(!this.#$)return;let i=this.#$.peekToken();for(;i&&i.startOffset<e;){const e=this.#$.nextToken();this.#M(t,e),i=this.#$.peekToken()}}#G(t){if(!t.openTag||!t.closeTag)throw new Error("Element is missing open or close tag");t.parent&&this.#H(t.parent,t.openTag.startOffset),this.#K(t),this.#H(t,t.openTag.endOffset),this.#Q(t);for(let e=0;e<t.children.length;++e)this.#G(t.children[e]);this.#H(t,t.closeTag.startOffset),this.#Z(t),this.#H(t,t.closeTag.endOffset),this.#Y(t)}#K(t){this.#$&&t.children.length&&t!==this.#$.document()&&this.#t.addNewLine()}#Q(t){this.#$&&t.children.length&&t!==this.#$.document()&&(this.#t.increaseNestingLevel(),this.#t.addNewLine())}#Z(t){this.#$&&t.children.length&&t!==this.#$.document()&&(this.#t.decreaseNestingLevel(),this.#t.addNewLine())}#Y(t){this.#t.addNewLine()}#M(t,e){if(k.isWhitespace(e.value))return;if(zi(e.type,"comment")||zi(e.type,"meta"))return this.#t.addNewLine(),this.#t.addToken(e.value.trim(),e.startOffset),void this.#t.addNewLine();if(!t.openTag||!t.closeTag)return;const i=t.openTag.endOffset<=e.startOffset&&e.startOffset<t.closeTag.startOffset;return i&&"style"===t.name?(this.#t.addNewLine(),this.#t.increaseNestingLevel(),this.#q.format(this.#W||"",this.#r||[],e.startOffset,e.endOffset),void this.#t.decreaseNestingLevel()):i&&"script"===t.name?(this.#t.addNewLine(),this.#t.increaseNestingLevel(),!function(t){if(!t.openTag)return!0;if(!t.openTag.attributes.has("type"))return!0;let e=t.openTag.attributes.get("type");if(!e)return!0;e=e.toLowerCase();const i=/^(["\'])(.*)\1$/.exec(e.trim());i&&(e=i[2]);return["application/ecmascript","application/javascript","application/x-ecmascript","application/x-javascript","module","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript"].includes(e.trim())}(t)?!function(t){if(!t.openTag)return!1;let e=t.openTag.attributes.get("type");if(!e)return!1;e=e.toLowerCase();const i=/^(["\'])(.*)\1$/.exec(e.trim());i&&(e=i[2]);const r=/^application\/\w+\+json$/.exec(e.trim());r&&(e="application/json");return["application/json","importmap","speculationrules"].includes(e.trim())}(t)?(this.#t.addToken(e.value,e.startOffset),this.#t.addNewLine()):this.#U.format(this.#W||"",this.#r||[],e.startOffset,e.endOffset):this.#j.format(this.#W||"",this.#r||[],e.startOffset,e.endOffset),void this.#t.decreaseNestingLevel()):(!i&&zi(e.type,"attribute")&&this.#t.addSoftSpace(),void this.#t.addToken(e.value,e.startOffset))}}function zi(t,e){return t.has(e)||t.has(`xml-${e}`)}class ji{#s="Initial";#X;#J;#T=[];#tt=0;#et=new Map;#it="";#rt="";#nt=!1;#st;#at;constructor(t){this.#X=new Gi("document"),this.#X.openTag=new $i("document",0,0,new Map,!0,!1),this.#X.closeTag=new $i("document",t.length,t.length,new Map,!1,!1),this.#J=[this.#X],this.#ot(t)}#ot(t){const e=Ki("text/html");let i=0,r=0,n=null;const s=t=>{this.#T.push(t),this.#lt(t);const e=this.#J[this.#J.length-1];if(e&&("script"===e.name||"style"===e.name)&&e.openTag?.endOffset===r)return Qi},a=(t,e,a,o)=>{a+=i,r=o+=i;const l=e?new Set(e.split(" ")):new Set,h=new Wi(t,l,a,o);if(n){if("/"===t&&"attribute"===e&&n.type.has("string"))h.startOffset=n.startOffset,h.value=`${n.value}${t}`,h.type=n.type;else{if(t.startsWith("&")&&"error"===e&&0===n.type.size||null===e&&n.type.has("error"))return n.endOffset=h.endOffset,n.value+=t,void(n.type=h.type);if(s(n)===Qi)return Qi}n=null}if("string"!==e&&null!==e)return s(h);n=h};for(;i=r,e(t.substring(r),a),n&&(s(n),n=null),!(r>=t.length);){const e=this.#J[this.#J.length-1];if(!e)break;for(;;){if(r=t.indexOf("</",r),-1===r){r=t.length;break}if(t.substring(r+2).toLowerCase().startsWith(e.name))break;r+=2}if(!e.openTag)break;const i=e.openTag.endOffset,n=r,s=t.substring(i,n);this.#T.push(new Wi(s,new Set,i,n))}for(;this.#J.length>1;){const e=this.#J[this.#J.length-1];if(!e)break;this.#ht(new $i(e.name,t.length,t.length,new Map,!1,!1))}}#lt(t){const e=t.value,i=t.type;switch(this.#s){case"Initial":return void(!zi(i,"bracket")||"<"!==e&&"</"!==e||(this.#ct(t),this.#s="Tag"));case"Tag":return void(zi(i,"tag")&&!zi(i,"bracket")?this.#rt=e.trim().toLowerCase():zi(i,"attribute")?(this.#it=e.trim().toLowerCase(),this.#et.set(this.#it,""),this.#s="AttributeName"):!zi(i,"bracket")||">"!==e&&"/>"!==e||(this.#pt(t),this.#s="Initial"));case"AttributeName":return void(i.size||"="!==e?!zi(i,"bracket")||">"!==e&&"/>"!==e||(this.#pt(t),this.#s="Initial"):this.#s="AttributeValue");case"AttributeValue":return void(zi(i,"string")?(this.#et.set(this.#it,e),this.#s="Tag"):!zi(i,"bracket")||">"!==e&&"/>"!==e||(this.#pt(t),this.#s="Initial"))}}#ct(t){this.#rt="",this.#st=t.startOffset,this.#at=null,this.#et=new Map,this.#it="",this.#nt="<"===t.value}#pt(t){this.#at=t.endOffset;const e="/>"===t.value||Ui.has(this.#rt),i=new $i(this.#rt,this.#st||0,this.#at,this.#et,this.#nt,e);this.#ut(i)}#ut(t){if(t.isOpenTag){const e=this.#J[this.#J.length-1];if(e){const r=qi.get(e.name);e!==this.#X&&e.openTag?.selfClosingTag?this.#ht(i(e,e.openTag.endOffset)):r?.has(t.name)&&this.#ht(i(e,t.startOffset)),this.#dt(t)}return}let e=this.#J[this.#J.length-1];for(;this.#J.length>1&&e&&e.name!==t.name;)this.#ht(i(e,t.startOffset)),e=this.#J[this.#J.length-1];function i(t,e){return new $i(t.name,e,e,new Map,!1,!1)}1!==this.#J.length&&this.#ht(t)}#ht(t){const e=this.#J.pop();e&&(e.closeTag=t)}#dt(t){const e=this.#J[this.#J.length-1],i=new Gi(t.name);e&&(i.parent=e,e.children.push(i)),i.openTag=t,this.#J.push(i)}peekToken(){return this.#tt<this.#T.length?this.#T[this.#tt]:null}nextToken(){return this.#T[this.#tt++]}document(){return this.#X}}var Ui=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),qi=new Map([["head",new Set(["body"])],["li",new Set(["li"])],["dt",new Set(["dt","dd"])],["dd",new Set(["dt","dd"])],["p",new Set(["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"])],["rb",new Set(["rb","rt","rtc","rp"])],["rt",new Set(["rb","rt","rtc","rp"])],["rtc",new Set(["rb","rtc","rp"])],["rp",new Set(["rb","rt","rtc","rp"])],["optgroup",new Set(["optgroup"])],["option",new Set(["option","optgroup"])],["colgroup",new Set(["colgroup"])],["thead",new Set(["tbody","tfoot"])],["tbody",new Set(["tbody","tfoot"])],["tfoot",new Set(["tbody"])],["tr",new Set(["tr"])],["td",new Set(["td","th"])],["th",new Set(["td","th"])]]);class Wi{value;type;startOffset;endOffset;constructor(t,e,i,r){this.value=t,this.type=e,this.startOffset=i,this.endOffset=r}}class $i{name;startOffset;endOffset;attributes;isOpenTag;selfClosingTag;constructor(t,e,i,r,n,s){this.name=t,this.startOffset=e,this.endOffset=i,this.attributes=r,this.isOpenTag=n,this.selfClosingTag=s}}class Gi{name;children=[];parent=null;openTag=null;closeTag=null;constructor(t){this.name=t}}class Hi{builder;constructor(t){this.builder=t}format(t,e,i,r){const n=t.substring(i,r);this.builder.addToken(n,i)}}function Ki(t){const e=Dt({indentUnit:2},t),i=function(t,e,i){return!t.startState||t.startState(e,i)}(e);if(!e||"null"===e.name)throw new Error(`Could not find CodeMirror mode for MimeType: ${t}`);if(!e.token)throw new Error(`Could not find CodeMirror mode with token method: ${t}`);return(t,r)=>{const n=new jt(t);for(;!n.eol();){const t=e.token(n,i),s=n.current();if(r(s,t,n.start,n.start+s.length)===Qi)return;n.start=n.pos}}}var Qi={};function Zi(t,e,i){let r;const n=new Ut(i=i||" "),s=k.findLineEndingIndexes(e);try{switch(t){case"text/html":new Fi(n).format(e,s);break;case"text/css":new dt(n).format(e,s,0,e.length);break;case"application/javascript":case"text/javascript":new Di(n).format(e,s,0,e.length);break;case"application/json":case"application/manifest+json":new Mi(n).format(e,s,0,e.length);break;default:new Hi(n).format(e,s,0,e.length)}r={mapping:n.mapping,content:n.content()}}catch(t){console.error(t),r={mapping:{original:[0],formatted:[0]},content:e}}return r}var Yi,Xi,Ji=Zi;Yi="undefined"!=typeof self?self:this,Xi=()=>Zi,"function"==typeof define&&define.amd?define([],Xi):"object"==typeof module&&module.exports?module.exports=Xi():Yi.chromiumFormatter=Xi()})();
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "chromium-formatters",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "The same formatters used by Chrom(ium) DevTools' \"Pretty Print\" feature, extracted into a standalone module for use outside of it",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"chromium",
|
|
7
|
+
"devtools",
|
|
8
|
+
"formatter",
|
|
9
|
+
"pretty-print",
|
|
10
|
+
"code-formatting"
|
|
11
|
+
],
|
|
12
|
+
"type": "module",
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"bun": "^1.3.14",
|
|
15
|
+
"chai": "^6.2.2",
|
|
16
|
+
"mocha": "^11.7.6",
|
|
17
|
+
"requirejs": "^2.3.8",
|
|
18
|
+
"terser": "^5.48.0"
|
|
19
|
+
},
|
|
20
|
+
"homepage": "https://cyrilsli.github.io/chromium-formatters",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/CyrilSLi/chromium-formatters/issues"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/CyrilSLi/chromium-formatters.git"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "bun build.js",
|
|
30
|
+
"test": "NODE_OPTIONS='--experimental-transform-types' mocha 'tests/**/*.js' 'tests/**/*.cjs'",
|
|
31
|
+
"prepublishOnly": "npm run build"
|
|
32
|
+
},
|
|
33
|
+
"license": "BSD-3-Clause",
|
|
34
|
+
"author": "CyrilSLi",
|
|
35
|
+
"main": "dist/main.esm.min.js"
|
|
36
|
+
}
|