Files
Snap.Hutao.Docs/assets/vue-repl.741c1f69.js

659 lines
1.1 MiB

import{k as Aw,v as u0,l as gf,_ as rC,f as Wi,m as Mi,g as rs,i as Cw,n as Nd,p as nC,o as Nr,c as hn,q as Pw,t as sC,a as Er,b as Ii,u as V1,x as go,F as pu,y as Lc,z as c0,w as Od,h as du,A as f0,B as Iw,C as h0,D as _r,E as eh,G as yo,T as iC,H as Nw,I as aC,J as p0,K as oC,L as lC}from"./app.68c43853.js";function Cr(r,e){const t=Object.create(null),n=r.split(",");for(let s=0;s<n.length;s++)t[n[s]]=!0;return e?s=>!!t[s.toLowerCase()]:s=>!!t[s]}const xs={[1]:"TEXT",[2]:"CLASS",[4]:"STYLE",[8]:"PROPS",[16]:"FULL_PROPS",[32]:"HYDRATE_EVENTS",[64]:"STABLE_FRAGMENT",[128]:"KEYED_FRAGMENT",[256]:"UNKEYED_FRAGMENT",[512]:"NEED_PATCH",[1024]:"DYNAMIC_SLOTS",[2048]:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},uC={[1]:"STABLE",[2]:"DYNAMIC",[3]:"FORWARDED"},cC="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",Ow=Cr(cC),d0=2;function vo(r,e=0,t=r.length){let n=r.split(/(\r?\n)/);const s=n.filter((u,c)=>c%2===1);n=n.filter((u,c)=>c%2===0);let a=0;const l=[];for(let u=0;u<n.length;u++)if(a+=n[u].length+(s[u]&&s[u].length||0),a>=e){for(let c=u-d0;c<=u+d0||t>a;c++){if(c<0||c>=n.length)continue;const m=c+1;l.push(`${m}${" ".repeat(Math.max(3-String(m).length,0))}| ${n[c]}`);const g=n[c].length,v=s[c]&&s[c].length||0;if(c===u){const b=e-(a-(g+v)),x=Math.max(1,t>a?g-b:t-e);l.push(" | "+" ".repeat(b)+"^".repeat(x))}else if(c>u){if(t>a){const b=Math.max(Math.min(t-a,g),1);l.push(" | "+"^".repeat(b))}a+=g+v}}break}return l.join(`
`)}const fC="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",hC=Cr(fC+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),pC=/[>/="'\u0009\u000a\u000c\u0020]/,Kp={};function dC(r){if(Kp.hasOwnProperty(r))return Kp[r];const e=pC.test(r);return e&&console.error(`unsafe attribute name: ${r}`),Kp[r]=!e}const mC={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},gC=Cr("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width"),yC=Cr("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),vC=Cr("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function Lw(r){if(dn(r)){const e={};for(let t=0;t<r.length;t++){const n=r[t],s=Ct(n)?Mw(n):Lw(n);if(s)for(const a in s)e[a]=s[a]}return e}else{if(Ct(r))return r;if(oi(r))return r}}const bC=/;(?![^(]*\))/g,wC=/:(.+)/;function Mw(r){const e={};return r.split(bC).forEach(t=>{if(t){const n=t.split(wC);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function xC(r){let e="";if(!r||Ct(r))return e;for(const t in r){const n=r[t],s=t.startsWith("--")?t:Ww(t);(Ct(n)||typeof n=="number"&&gC(s))&&(e+=`${s}:${n};`)}return e}function Dw(r){let e="";if(Ct(r))e=r;else if(dn(r))for(let t=0;t<r.length;t++){const n=Dw(r[t]);n&&(e+=n+" ")}else if(oi(r))for(const t in r)r[t]&&(e+=t+" ");return e.trim()}const SC="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",kC="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",TC="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",_C=Cr(SC),EC=Cr(kC),Rw=Cr(TC),AC=/["'&<>]/;function bs(r){const e=""+r,t=AC.exec(e);if(!t)return e;let n="",s,a,l=0;for(a=t.index;a<e.length;a++){switch(e.charCodeAt(a)){case 34:s="&quot;";break;case 38:s="&amp;";break;case 39:s="&#39;";break;case 60:s="&lt;";break;case 62:s="&gt;";break;default:continue}l!==a&&(n+=e.slice(l,a)),l=a+1,n+=s}return l!==a?n+e.slice(l,a):n}const G1=r=>Ct(r)?r:r==null?"":dn(r)||oi(r)&&(r.toString===Uw||!jw(r.toString))?JSON.stringify(r,Fw,2):String(r),Fw=(r,e)=>e&&e.__v_isRef?Fw(r,e.value):NC(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[n,s])=>(t[`${n} =>`]=s,t),{})}:OC(e)?{[`Set(${e.size})`]:[...e.values()]}:oi(e)&&!dn(e)&&!LC(e)?String(e):e,CC=Object.freeze({});Object.freeze([]);const m0=()=>{},Xc=()=>!1,PC=/^on[^a-z]/,Bw=r=>PC.test(r),Qs=Object.assign,IC=Object.prototype.hasOwnProperty,$w=(r,e)=>IC.call(r,e),dn=Array.isArray,NC=r=>K1(r)==="[object Map]",OC=r=>K1(r)==="[object Set]",jw=r=>typeof r=="function",Ct=r=>typeof r=="string",Uo=r=>typeof r=="symbol",oi=r=>r!==null&&typeof r=="object",Uw=Object.prototype.toString,K1=r=>Uw.call(r),LC=r=>K1(r)==="[object Object]",g0=Cr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),qw=Cr("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),th=r=>{const e=Object.create(null);return t=>e[t]||(e[t]=r(t))},MC=/-(\w)/g,Ss=th(r=>r.replace(MC,(e,t)=>t?t.toUpperCase():"")),DC=/\B([A-Z])/g,Ww=th(r=>r.replace(DC,"-$1").toLowerCase()),Sa=th(r=>r.charAt(0).toUpperCase()+r.slice(1)),RC=th(r=>r?`on${Sa(r)}`:""),FC=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function yf(r){return FC.test(r)?`__props.${r}`:`__props[${JSON.stringify(r)}]`}function Y1(r){throw r}function zw(r){console.warn(`[Vue warn] ${r.message}`)}function jt(r,e,t,n){const s=(t||BC)[r]+(n||""),a=new SyntaxError(String(s));return a.code=r,a.loc=e,a}const BC={[0]:"Illegal comment.",[1]:"CDATA section is allowed only in XML context.",[2]:"Duplicate attribute.",[3]:"End tag cannot have attributes.",[4]:"Illegal '/' in tags.",[5]:"Unexpected EOF in tag.",[6]:"Unexpected EOF in CDATA section.",[7]:"Unexpected EOF in comment.",[8]:"Unexpected EOF in script.",[9]:"Unexpected EOF in tag.",[10]:"Incorrectly closed comment.",[11]:"Incorrectly opened comment.",[12]:"Illegal tag name. Use '&lt;' to print '<'.",[13]:"Attribute value was expected.",[14]:"End tag name was expected.",[15]:"Whitespace was expected.",[16]:"Unexpected '<!--' in comment.",[17]:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,[18]:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",[19]:"Attribute name cannot start with '='.",[21]:"'<?' is allowed only in XML context.",[20]:"Unexpected null character.",[22]:"Illegal '/' in tags.",[23]:"Invalid end tag.",[24]:"Element is missing end tag.",[25]:"Interpolation end sign was not found.",[27]:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",[26]:"Legal directive name was expected.",[28]:"v-if/v-else-if is missing expression.",[29]:"v-if/else branches must use unique keys.",[30]:"v-else/v-else-if has no adjacent v-if or v-else-if.",[31]:"v-for is missing expression.",[32]:"v-for has invalid expression.",[33]:"<template v-for> key should be placed on the <template> tag.",[34]:"v-bind is missing expression.",[35]:"v-on is missing expression.",[36]:"Unexpected custom directive on <slot> outlet.",[37]:"Mixed v-slot usage on both the component and nested <template>.When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",[38]:"Duplicate slot names found. ",[39]:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",[40]:"v-slot can only be used on components or <template> tags.",[41]:"v-model is missing expression.",[42]:"v-model value must be a valid JavaScript member expression.",[43]:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",[44]:"Error parsing JavaScript expression: ",[45]:"<KeepAlive> expects exactly one child component.",[46]:'"prefixIdentifiers" option is not supported in this build of compiler.',[47]:"ES module mode is not supported in this build of compiler.",[48]:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',[49]:'"scopeId" option is only supported in module mode.',[50]:""},Eo=Symbol("Fragment"),ga=Symbol("Teleport"),qo=Symbol("Suspense"),mu=Symbol("KeepAlive"),J1=Symbol("BaseTransition"),Di=Symbol("openBlock"),X1=Symbol("createBlock"),Q1=Symbol("createElementBlock"),Hu=Symbol("createVNode"),rh=Symbol("createElementVNode"),Wo=Symbol("createCommentVNode"),nh=Symbol("createTextVNode"),sh=Symbol("createStaticVNode"),gu=Symbol("resolveComponent"),Ao=Symbol("resolveDynamicComponent"),ih=Symbol("resolveDirective"),Hw=Symbol("resolveFilter"),ah=Symbol("withDirectives"),oh=Symbol("renderList"),Z1=Symbol("renderSlot"),em=Symbol("createSlots"),Vu=Symbol("toDisplayString"),ka=Symbol("mergeProps"),lh=Symbol("normalizeClass"),uh=Symbol("normalizeStyle"),Co=Symbol("normalizeProps"),zo=Symbol("guardReactiveProps"),ch=Symbol("toHandlers"),vf=Symbol("camelize"),Vw=Symbol("capitalize"),bf=Symbol("toHandlerKey"),yu=Symbol("setBlockTracking"),fh=Symbol("pushScopeId"),hh=Symbol("popScopeId"),ph=Symbol("withCtx"),Po=Symbol("unref"),vu=Symbol("isRef"),dh=Symbol("withMemo"),tm=Symbol("isMemoSame"),wn={[Eo]:"Fragment",[ga]:"Teleport",[qo]:"Suspense",[mu]:"KeepAlive",[J1]:"BaseTransition",[Di]:"openBlock",[X1]:"createBlock",[Q1]:"createElementBlock",[Hu]:"createVNode",[rh]:"createElementVNode",[Wo]:"createCommentVNode",[nh]:"createTextVNode",[sh]:"createStaticVNode",[gu]:"resolveComponent",[Ao]:"resolveDynamicComponent",[ih]:"resolveDirective",[Hw]:"resolveFilter",[ah]:"withDirectives",[oh]:"renderList",[Z1]:"renderSlot",[em]:"createSlots",[Vu]:"toDisplayString",[ka]:"mergeProps",[lh]:"normalizeClass",[uh]:"normalizeStyle",[Co]:"normalizeProps",[zo]:"guardReactiveProps",[ch]:"toHandlers",[vf]:"camelize",[Vw]:"capitalize",[bf]:"toHandlerKey",[yu]:"setBlockTracking",[fh]:"pushScopeId",[hh]:"popScopeId",[ph]:"withCtx",[Po]:"unref",[vu]:"isRef",[dh]:"withMemo",[tm]:"isMemoSame"};function rm(r){Object.getOwnPropertySymbols(r).forEach(e=>{wn[e]=r[e]})}const ar={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function Ho(r,e=ar){return{type:0,children:r,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:e}}function Io(r,e,t,n,s,a,l,u=!1,c=!1,m=!1,g=ar){return r&&(u?(r.helper(Di),r.helper(Aa(r.inSSR,m))):r.helper(Ea(r.inSSR,m)),l&&r.helper(ah)),{type:13,tag:e,props:t,children:n,patchFlag:s,dynamicProps:a,directives:l,isBlock:u,disableTracking:c,isComponent:m,loc:g}}function Oa(r,e=ar){return{type:17,loc:e,elements:r}}function xn(r,e=ar){return{type:15,loc:e,properties:r}}function Ft(r,e){return{type:16,loc:ar,key:Ct(r)?ze(r,!0):r,value:e}}function ze(r,e=!1,t=ar,n=0){return{type:4,loc:t,content:r,isStatic:e,constType:e?3:n}}function wf(r,e){return{type:5,loc:e,content:Ct(r)?ze(r,!1,e):r}}function Wr(r,e=ar){return{type:8,loc:e,children:r}}function ut(r,e=[],t=ar){return{type:14,loc:t,callee:r,arguments:e}}function Rn(r,e=void 0,t=!1,n=!1,s=ar){return{type:18,params:r,returns:e,newline:t,isSlot:n,loc:s}}function Ri(r,e,t,n=!0){return{type:19,test:r,consequent:e,alternate:t,newline:n,loc:ar}}function Gw(r,e,t=!1){return{type:20,index:r,value:e,isVNode:t,loc:ar}}function Gu(r){return{type:21,body:r,loc:ar}}function nm(r){return{type:22,elements:r,loc:ar}}function xf(r,e,t){return{type:23,test:r,consequent:e,alternate:t,loc:ar}}function Ld(r,e){return{type:24,left:r,right:e,loc:ar}}function Kw(r){return{type:25,expressions:r,loc:ar}}function Yw(r){return{type:26,returns:r,loc:ar}}const sm=/\r\n?|[\n\u2028\u2029]/,fa=new RegExp(sm.source,"g");function ua(r){switch(r){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}const Yp=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,$C=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y,y0=new RegExp("(?=("+$C.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function jC(r){switch(r){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}class bu{constructor(e,t){this.line=void 0,this.column=void 0,this.line=e,this.column=t}}class Sf{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}}function UC(r,e){let t=1,n=0,s;for(fa.lastIndex=0;(s=fa.exec(r))&&s.index<e;)t++,n=fa.lastIndex;return new bu(t,e-n)}class qC{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){return this.plugins.has(e)}getPluginOption(e,t){if(this.hasPlugin(e))return this.plugins.get(e)[t]}}function Jw(r,e){r.trailingComments===void 0?r.trailingComments=e:r.trailingComments.unshift(...e)}function WC(r,e){r.leadingComments===void 0?r.leadingComments=e:r.leadingComments.unshift(...e)}function wu(r,e){r.innerComments===void 0?r.innerComments=e:r.innerComments.unshift(...e)}function Rl(r,e,t){let n=null,s=e.length;for(;n===null&&s>0;)n=e[--s];n===null||n.start>t.start?wu(r,t.comments):Jw(n,t.comments)}class zC extends qC{addComment(e){this.filename&&(e.loc.filename=this.filename),this.state.comments.push(e)}processComment(e){const{commentStack:t}=this.state,n=t.length;if(n===0)return;let s=n-1;const a=t[s];a.start===e.end&&(a.leadingNode=e,s--);const{start:l}=e;for(;s>=0;s--){const u=t[s],c=u.end;if(c>l)u.containingNode=e,this.finalizeComment(u),t.splice(s,1);else{c===l&&(u.trailingNode=e);break}}}finalizeComment(e){const{comments:t}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&Jw(e.leadingNode,t),e.trailingNode!==null&&WC(e.trailingNode,t);else{const{containingNode:n,start:s}=e;if(this.input.charCodeAt(s-1)===44)switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Rl(n,n.properties,e);break;case"CallExpression":case"OptionalCallExpression":Rl(n,n.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Rl(n,n.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Rl(n,n.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":Rl(n,n.specifiers,e);break;default:wu(n,t)}else wu(n,t)}}finalizeRemainingComments(){const{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){const{commentStack:t}=this.state,{length:n}=t;if(n===0)return;const s=t[n-1];s.leadingNode===e&&(s.leadingNode=null)}takeSurroundingComments(e,t,n){const{commentStack:s}=this.state,a=s.length;if(a===0)return;let l=a-1;for(;l>=0;l--){const u=s[l],c=u.end;if(u.start===n)u.leadingNode=e;else if(c===t)u.trailingNode=e;else if(c<t)break}}}const Zs=Object.freeze({SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"}),ie=Vo({AccessorIsGenerator:"A %0ter cannot be a generator.",ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accesor must not have any formal parameters.",BadSetterArity:"A 'set' accesor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accesor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:"'%0' require an initialization value.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:"`%0` has already been exported. Exported identifiers must be unique.",DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:"A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { '%0' as '%1' } from 'some-module'`?",ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:"'%0' loop variable declaration may not have an initializer.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:"Unsyntactic %0.",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:'A string literal cannot be used as an imported binding.\n- Did you mean `import { "%0" as foo }`?',ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:"`import()` requires exactly %0.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidDecimal:"Invalid decimal.",InvalidDigit:"Expected number in radix %0.",InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:"Escape sequence in keyword %0.",InvalidIdentifier:"Invalid identifier %0.",InvalidLhs:"Invalid left-hand side in %0.",InvalidLhsBinding:"Binding invalid left-hand side in %0.",InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:"Unexpected character '%0'.",InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:"Private name #%0 is not defined.",InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:"Label '%0' is already declared.",LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:'Duplicate key "%0" is not allowed in module attributes.',ModuleExportNameHasLoneSurrogate:"An export name cannot include a lone surrogate, found '\\u%0'.",ModuleExportUndefined:"Export '%0' is not defined.",MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PipeBodyIsTighter:"Unexpected %0 after pipeline body; any %0 expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:'Invalid topic token %0. In order to use %0 as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "%0" }.',PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:"Hack-style pipe body cannot be an unparenthesized %0 expression; please wrap it in parentheses.",PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PrivateInExpectedIn:"Private names are only allowed in property accesses (`obj.#%0`) or in `in` expressions (`#%0 in obj`).",PrivateNameRedeclaration:"Duplicate private name #%0.",RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:"Assigning to '%0' in strict mode.",StrictEvalArgumentsBinding:"Binding '%0' in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:"Unexpected keyword '%0'.",UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:`Private names can only be used as the name of a class element (i.e. class C { #p = 42; #m() {} } )
or a property of member expression (i.e. this.#p).`,UnexpectedReservedWord:"Unexpected reserved word '%0'.",UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:"Unexpected token '%0'.",UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:"The only valid meta property for %0 is %0.%1.",UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",VarRedeclaration:"Identifier '%0' has already been declared.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},Zs.SyntaxError),Xw=Vo({ImportMetaOutsideModule:`import.meta may appear only with 'sourceType: "module"'`,ImportOutsideModule:`'import' and 'export' may appear only with 'sourceType: "module"'`},Zs.SourceTypeModuleError);function HC(r,e){return e==="flow"&&r==="PatternIsOptional"?"OptionalBindingPattern":r}function Vo(r,e,t){const n={};return Object.keys(r).forEach(s=>{n[s]=Object.freeze({code:e,reasonCode:HC(s,t),template:r[s]})}),Object.freeze(n)}class VC extends zC{getLocationForPosition(e){let t;return e===this.state.start?t=this.state.startLoc:e===this.state.lastTokStart?t=this.state.lastTokStartLoc:e===this.state.end?t=this.state.endLoc:e===this.state.lastTokEnd?t=this.state.lastTokEndLoc:t=UC(this.input,e),t}raise(e,{code:t,reasonCode:n,template:s},...a){return this.raiseWithData(e,{code:t,reasonCode:n},s,...a)}raiseOverwrite(e,{code:t,template:n},...s){const a=this.getLocationForPosition(e),l=n.replace(/%(\d+)/g,(u,c)=>s[c])+` (${a.line}:${a.column})`;if(this.options.errorRecovery){const u=this.state.errors;for(let c=u.length-1;c>=0;c--){const m=u[c];if(m.pos===e)return Object.assign(m,{message:l});if(m.pos<e)break}}return this._raise({code:t,loc:a,pos:e},l)}raiseWithData(e,t,n,...s){const a=this.getLocationForPosition(e),l=n.replace(/%(\d+)/g,(u,c)=>s[c])+` (${a.line}:${a.column})`;return this._raise(Object.assign({loc:a,pos:e},t),l)}_raise(e,t){const n=new SyntaxError(t);if(Object.assign(n,e),this.options.errorRecovery)return this.isLookahead||this.state.errors.push(n),n;throw n}}var GC=r=>class extends r{parseRegExpLiteral({pattern:e,flags:t}){let n=null;try{n=new RegExp(e,t)}catch{}const s=this.estreeParseLiteral(n);return s.regex={pattern:e,flags:t},s}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch{t=null}const n=this.estreeParseLiteral(t);return n.bigint=String(n.value||e),n}parseDecimalLiteral(e){const n=this.estreeParseLiteral(null);return n.decimal=String(n.value||e),n}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){const t=e.value,n=this.startNodeAt(e.start,e.loc.start),s=this.startNodeAt(t.start,t.loc.start);return s.value=t.extra.expressionValue,s.raw=t.extra.raw,n.expression=this.finishNodeAt(s,"Literal",t.end,t.loc.end),n.directive=t.extra.raw.slice(1,-1),this.finishNodeAt(n,"ExpressionStatement",e.end,e.loc.end)}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&!((t=e.expression.extra)!=null&&t.parenthesized)}parseBlockBody(e,...t){super.parseBlockBody(e,...t);const n=e.directives.map(s=>this.directiveToStmt(s));e.body=n.concat(e.body),delete e.directives}pushClassMethod(e,t,n,s,a,l){this.parseMethod(t,n,s,a,l,"ClassMethod",!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parsePrivateName(){const e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){const t=super.getPrivateNameSV(e);return e=e,delete e.id,e.name=t,e.type="PrivateIdentifier",e}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?e.type==="PrivateIdentifier":super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){const n=super.parseLiteral(e,t);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,t,n=!1){super.parseFunctionBody(e,t,n),e.expression=e.body.type!=="BlockStatement"}parseMethod(e,t,n,s,a,l,u=!1){let c=this.startNode();return c.kind=e.kind,c=super.parseMethod(c,t,n,s,a,l,u),c.type="FunctionExpression",delete c.kind,e.value=c,l==="ClassPrivateMethod"&&(e.computed=!1),l="MethodDefinition",this.finishNode(e,l)}parseClassProperty(...e){const t=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")&&(t.type="PropertyDefinition"),t}parseClassPrivateProperty(...e){const t=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")&&(t.type="PropertyDefinition",t.computed=!1),t}parseObjectMethod(e,t,n,s,a){const l=super.parseObjectMethod(e,t,n,s,a);return l&&(l.type="Property",l.kind==="method"&&(l.kind="init"),l.shorthand=!1),l}parseObjectProperty(e,t,n,s,a){const l=super.parseObjectProperty(e,t,n,s,a);return l&&(l.kind="init",l.type="Property"),l}isAssignable(e,t){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e,t=!1){return e!=null&&this.isObjectProperty(e)?(this.toAssignable(e.value,t),e):super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,...t){e.kind==="get"||e.kind==="set"?this.raise(e.key.start,ie.PatternHasAccessor):e.method?this.raise(e.key.start,ie.PatternHasMethod):super.toAssignableObjectExpressionProp(e,...t)}finishCallExpression(e,t){if(super.finishCallExpression(e,t),e.callee.type==="Import"){if(e.type="ImportExpression",e.source=e.arguments[0],this.hasPlugin("importAssertions")){var n;e.attributes=(n=e.arguments[1])!=null?n:null}delete e.arguments,delete e.callee}return e}toReferencedArguments(e){e.type!=="ImportExpression"&&super.toReferencedArguments(e)}parseExport(e){switch(super.parseExport(e),e.type){case"ExportAllDeclaration":e.exported=null;break;case"ExportNamedDeclaration":e.specifiers.length===1&&e.specifiers[0].type==="ExportNamespaceSpecifier"&&(e.type="ExportAllDeclaration",e.exported=e.specifiers[0].exported,delete e.specifiers);break}return e}parseSubscript(e,t,n,s,a){const l=super.parseSubscript(e,t,n,s,a);if(a.optionalChainMember){if((l.type==="OptionalMemberExpression"||l.type==="OptionalCallExpression")&&(l.type=l.type.substring(8)),a.stop){const u=this.startNodeAtNode(l);return u.expression=l,this.finishNode(u,"ChainExpression")}}else(l.type==="MemberExpression"||l.type==="CallExpression")&&(l.optional=!1);return l}hasPropertyAsPrivateName(e){return e.type==="ChainExpression"&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isOptionalChain(e){return e.type==="ChainExpression"}isObjectProperty(e){return e.type==="Property"&&e.kind==="init"&&!e.method}isObjectMethod(e){return e.method||e.kind==="get"||e.kind==="set"}};class xu{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}const Gt={brace:new xu("{"),template:new xu("`",!0)},St=!0,Ge=!0,Jp=!0,Fl=!0,ki=!0,KC=!0;class Qw{constructor(e,t={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop!=null?t.binop:null,this.updateContext=null}}const im=new Map;function Et(r,e={}){e.keyword=r;const t=it(r,e);return im.set(r,t),t}function Nn(r,e){return it(r,{beforeExpr:St,binop:e})}let Ql=-1;const Vs=[],am=[],om=[],lm=[],um=[],cm=[];function it(r,e={}){var t,n,s,a;return++Ql,am.push(r),om.push((t=e.binop)!=null?t:-1),lm.push((n=e.beforeExpr)!=null?n:!1),um.push((s=e.startsExpr)!=null?s:!1),cm.push((a=e.prefix)!=null?a:!1),Vs.push(new Qw(r,e)),Ql}function At(r,e={}){var t,n,s,a;return++Ql,im.set(r,Ql),am.push(r),om.push((t=e.binop)!=null?t:-1),lm.push((n=e.beforeExpr)!=null?n:!1),um.push((s=e.startsExpr)!=null?s:!1),cm.push((a=e.prefix)!=null?a:!1),Vs.push(new Qw("name",e)),Ql}const YC={bracketL:it("[",{beforeExpr:St,startsExpr:Ge}),bracketHashL:it("#[",{beforeExpr:St,startsExpr:Ge}),bracketBarL:it("[|",{beforeExpr:St,startsExpr:Ge}),bracketR:it("]"),bracketBarR:it("|]"),braceL:it("{",{beforeExpr:St,startsExpr:Ge}),braceBarL:it("{|",{beforeExpr:St,startsExpr:Ge}),braceHashL:it("#{",{beforeExpr:St,startsExpr:Ge}),braceR:it("}",{beforeExpr:St}),braceBarR:it("|}"),parenL:it("(",{beforeExpr:St,startsExpr:Ge}),parenR:it(")"),comma:it(",",{beforeExpr:St}),semi:it(";",{beforeExpr:St}),colon:it(":",{beforeExpr:St}),doubleColon:it("::",{beforeExpr:St}),dot:it("."),question:it("?",{beforeExpr:St}),questionDot:it("?."),arrow:it("=>",{beforeExpr:St}),template:it("template"),ellipsis:it("...",{beforeExpr:St}),backQuote:it("`",{startsExpr:Ge}),dollarBraceL:it("${",{beforeExpr:St,startsExpr:Ge}),at:it("@"),hash:it("#",{startsExpr:Ge}),interpreterDirective:it("#!..."),eq:it("=",{beforeExpr:St,isAssign:Fl}),assign:it("_=",{beforeExpr:St,isAssign:Fl}),slashAssign:it("_=",{beforeExpr:St,isAssign:Fl}),xorAssign:it("_=",{beforeExpr:St,isAssign:Fl}),moduloAssign:it("_=",{beforeExpr:St,isAssign:Fl}),incDec:it("++/--",{prefix:ki,postfix:KC,startsExpr:Ge}),bang:it("!",{beforeExpr:St,prefix:ki,startsExpr:Ge}),tilde:it("~",{beforeExpr:St,prefix:ki,startsExpr:Ge}),pipeline:Nn("|>",0),nullishCoalescing:Nn("??",1),logicalOR:Nn("||",1),logicalAND:Nn("&&",2),bitwiseOR:Nn("|",3),bitwiseXOR:Nn("^",4),bitwiseAND:Nn("&",5),equality:Nn("==/!=/===/!==",6),lt:Nn("</>/<=/>=",7),gt:Nn("</>/<=/>=",7),relational:Nn("</>/<=/>=",7),bitShift:Nn("<</>>/>>>",8),plusMin:it("+/-",{beforeExpr:St,binop:9,prefix:ki,startsExpr:Ge}),modulo:it("%",{binop:10,startsExpr:Ge}),star:it("*",{binop:10}),slash:Nn("/",10),exponent:it("**",{beforeExpr:St,binop:11,rightAssociative:!0}),_in:Et("in",{beforeExpr:St,binop:7}),_instanceof:Et("instanceof",{beforeExpr:St,binop:7}),_break:Et("break"),_case:Et("case",{beforeExpr:St}),_catch:Et("catch"),_continue:Et("continue"),_debugger:Et("debugger"),_default:Et("default",{beforeExpr:St}),_else:Et("else",{beforeExpr:St}),_finally:Et("finally"),_function:Et("function",{startsExpr:Ge}),_if:Et("if"),_return:Et("return",{beforeExpr:St}),_switch:Et("switch"),_throw:Et("throw",{beforeExpr:St,prefix:ki,startsExpr:Ge}),_try:Et("try"),_var:Et("var"),_const:Et("const"),_with:Et("with"),_new:Et("new",{beforeExpr:St,startsExpr:Ge}),_this:Et("this",{startsExpr:Ge}),_super:Et("super",{startsExpr:Ge}),_class:Et("class",{startsExpr:Ge}),_extends:Et("extends",{beforeExpr:St}),_export:Et("export"),_import:Et("import",{startsExpr:Ge}),_null:Et("null",{startsExpr:Ge}),_true:Et("true",{startsExpr:Ge}),_false:Et("false",{startsExpr:Ge}),_typeof:Et("typeof",{beforeExpr:St,prefix:ki,startsExpr:Ge}),_void:Et("void",{beforeExpr:St,prefix:ki,startsExpr:Ge}),_delete:Et("delete",{beforeExpr:St,prefix:ki,startsExpr:Ge}),_do:Et("do",{isLoop:Jp,beforeExpr:St}),_for:Et("for",{isLoop:Jp}),_while:Et("while",{isLoop:Jp}),_as:At("as",{startsExpr:Ge}),_assert:At("assert",{startsExpr:Ge}),_async:At("async",{startsExpr:Ge}),_await:At("await",{startsExpr:Ge}),_from:At("from",{startsExpr:Ge}),_get:At("get",{startsExpr:Ge}),_let:At("let",{startsExpr:Ge}),_meta:At("meta",{startsExpr:Ge}),_of:At("of",{startsExpr:Ge}),_sent:At("sent",{startsExpr:Ge}),_set:At("set",{startsExpr:Ge}),_static:At("static",{startsExpr:Ge}),_yield:At("yield",{startsExpr:Ge}),_asserts:At("asserts",{startsExpr:Ge}),_checks:At("checks",{startsExpr:Ge}),_exports:At("exports",{startsExpr:Ge}),_global:At("global",{startsExpr:Ge}),_implements:At("implements",{startsExpr:Ge}),_intrinsic:At("intrinsic",{startsExpr:Ge}),_infer:At("infer",{startsExpr:Ge}),_is:At("is",{startsExpr:Ge}),_mixins:At("mixins",{startsExpr:Ge}),_proto:At("proto",{startsExpr:Ge}),_require:At("require",{startsExpr:Ge}),_keyof:At("keyof",{startsExpr:Ge}),_readonly:At("readonly",{startsExpr:Ge}),_unique:At("unique",{startsExpr:Ge}),_abstract:At("abstract",{startsExpr:Ge}),_declare:At("declare",{startsExpr:Ge}),_enum:At("enum",{startsExpr:Ge}),_module:At("module",{startsExpr:Ge}),_namespace:At("namespace",{startsExpr:Ge}),_interface:At("interface",{startsExpr:Ge}),_type:At("type",{startsExpr:Ge}),_opaque:At("opaque",{startsExpr:Ge}),name:it("name",{startsExpr:Ge}),string:it("string",{startsExpr:Ge}),num:it("num",{startsExpr:Ge}),bigint:it("bigint",{startsExpr:Ge}),decimal:it("decimal",{startsExpr:Ge}),regexp:it("regexp",{startsExpr:Ge}),privateName:it("#name",{startsExpr:Ge}),eof:it("eof"),jsxName:it("jsxName"),jsxText:it("jsxText",{beforeExpr:!0}),jsxTagStart:it("jsxTagStart",{startsExpr:!0}),jsxTagEnd:it("jsxTagEnd"),placeholder:it("%%",{startsExpr:!0})};function It(r){return r>=87&&r<=122}function JC(r){return r<=86}function ei(r){return r>=52&&r<=122}function Zw(r){return r>=52&&r<=126}function XC(r){return lm[r]}function v0(r){return um[r]}function QC(r){return r>=27&&r<=31}function b0(r){return r>=119&&r<=121}function ZC(r){return r>=84&&r<=86}function fm(r){return r>=52&&r<=86}function eP(r){return r>=35&&r<=53}function tP(r){return r===32}function rP(r){return cm[r]}function nP(r){return r>=111&&r<=113}function sP(r){return r>=114&&r<=120}function Fi(r){return am[r]}function Qc(r){return om[r]}function iP(r){return r===51}function Zc(r){return Vs[r]}function aP(r){return typeof r=="number"}Vs[8].updateContext=r=>{r.pop()},Vs[5].updateContext=Vs[7].updateContext=Vs[23].updateContext=r=>{r.push(Gt.brace)},Vs[22].updateContext=r=>{r[r.length-1]===Gt.template?r.pop():r.push(Gt.template)},Vs[132].updateContext=r=>{r.push(Gt.j_expr,Gt.j_oTag)};let hm="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",ex="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F";const oP=new RegExp("["+hm+"]"),lP=new RegExp("["+hm+ex+"]");hm=ex=null;const tx=[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,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,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,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,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,46,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,482,44,11,6,17,0,322,29,19,43,1269,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,4152,8,221,3,5761,15,7472,3104,541,1507,4938],uP=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,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,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,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,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239];function Md(r,e){let t=65536;for(let n=0,s=e.length;n<s;n+=2){if(t+=e[n],t>r)return!1;if(t+=e[n+1],t>=r)return!0}return!1}function Ci(r){return r<65?r===36:r<=90?!0:r<97?r===95:r<=122?!0:r<=65535?r>=170&&oP.test(String.fromCharCode(r)):Md(r,tx)}function bo(r){return r<48?r===36:r<58?!0:r<65?!1:r<=90?!0:r<97?r===95:r<=122?!0:r<=65535?r>=170&&lP.test(String.fromCharCode(r)):Md(r,tx)||Md(r,uP)}const pm={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},cP=new Set(pm.keyword),fP=new Set(pm.strict),hP=new Set(pm.strictBind);function rx(r,e){return e&&r==="await"||r==="enum"}function nx(r,e){return rx(r,e)||fP.has(r)}function sx(r){return hP.has(r)}function ix(r,e){return nx(r,e)||sx(r)}function pP(r){return cP.has(r)}function dP(r,e){return r===64&&e===64}const mP=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function gP(r){return mP.has(r)}const ho=0,Zl=1,Gs=2,dm=4,ax=8,kf=16,ox=32,ha=64,lx=128,ef=256,Mc=Zl|Gs|ef,ni=1,No=2,ux=4,wo=8,tf=16,cx=64,Tf=128,Dd=256,Rd=512,mm=1024,Fd=2048,fx=ni|No|wo|Tf,qn=ni|0|wo|0,_f=ni|0|ux|0,hx=ni|0|tf|0,yP=0|No|0|Tf,vP=0|No|0|0,px=ni|No|wo|Dd,w0=0|mm,Bl=0|cx,bP=ni|0|0|cx,wP=px|Rd,xP=0|mm,SP=Fd,Ef=4,gm=2,ym=1,Xp=gm|ym,kP=gm|Ef,TP=ym|Ef,_P=gm,EP=ym,x0=0;class vm{constructor(e){this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=e}}class bm{constructor(e,t){this.scopeStack=[],this.undefinedExports=new Map,this.undefinedPrivateNames=new Map,this.raise=e,this.inModule=t}get inFunction(){return(this.currentVarScopeFlags()&Gs)>0}get allowSuper(){return(this.currentThisScopeFlags()&kf)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&ox)>0}get inClass(){return(this.currentThisScopeFlags()&ha)>0}get inClassAndNotInNonArrowFunction(){const e=this.currentThisScopeFlags();return(e&ha)>0&&(e&Gs)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(t&lx)return!0;if(t&(Mc|ha))return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&Gs)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new vm(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){this.scopeStack.pop()}treatFunctionsAsVarInScope(e){return!!(e.flags&Gs||!this.inModule&&e.flags&Zl)}declareName(e,t,n){let s=this.currentScope();if(t&wo||t&tf)this.checkRedeclarationInScope(s,e,t,n),t&tf?s.functions.add(e):s.lexical.add(e),t&wo&&this.maybeExportDefined(s,e);else if(t&ux)for(let a=this.scopeStack.length-1;a>=0&&(s=this.scopeStack[a],this.checkRedeclarationInScope(s,e,t,n),s.var.add(e),this.maybeExportDefined(s,e),!(s.flags&Mc));--a);this.inModule&&s.flags&Zl&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.inModule&&e.flags&Zl&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,n,s){this.isRedeclaredInScope(e,t,n)&&this.raise(s,ie.VarRedeclaration,t)}isRedeclaredInScope(e,t,n){return n&ni?n&wo?e.lexical.has(t)||e.functions.has(t)||e.var.has(t):n&tf?e.lexical.has(t)||!this.treatFunctionsAsVarInScope(e)&&e.var.has(t):e.lexical.has(t)&&!(e.flags&ax&&e.lexical.values().next().value===t)||!this.treatFunctionsAsVarInScope(e)&&e.functions.has(t):!1}checkLocalExport(e){const{name:t}=e,n=this.scopeStack[0];!n.lexical.has(t)&&!n.var.has(t)&&!n.functions.has(t)&&this.undefinedExports.set(t,e.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(t&Mc)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(t&(Mc|ha)&&!(t&dm))return t}}}class AP extends vm{constructor(...e){super(...e),this.declareFunctions=new Set}}class CP extends bm{createScope(e){return new AP(e)}declareName(e,t,n){const s=this.currentScope();if(t&Fd){this.checkRedeclarationInScope(s,e,t,n),this.maybeExportDefined(s,e),s.declareFunctions.add(e);return}super.declareName(...arguments)}isRedeclaredInScope(e,t,n){return super.isRedeclaredInScope(...arguments)?!0:n&Fd?!e.declareFunctions.has(t)&&(e.lexical.has(t)||e.functions.has(t)):!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}}class wm{constructor(){this.strict=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.maybeInArrowParameters=!1,this.inType=!1,this.noAnonFunctionType=!1,this.hasFlowComment=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.labels=[],this.decoratorStack=[[]],this.comments=[],this.commentStack=[],this.pos=0,this.type=129,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.lastTokEnd=0,this.context=[Gt.brace],this.canStartJSXElement=!0,this.containsEsc=!1,this.strictErrors=new Map,this.tokensLength=0}init({strictMode:e,sourceType:t,startLine:n,startColumn:s}){this.strict=e===!1?!1:e===!0?!0:t==="module",this.curLine=n,this.lineStart=-s,this.startLoc=this.endLoc=new bu(n,s)}curPosition(){return new bu(this.curLine,this.pos-this.lineStart)}clone(e){const t=new wm,n=Object.keys(this);for(let s=0,a=n.length;s<a;s++){const l=n[s];let u=this[l];!e&&Array.isArray(u)&&(u=u.slice()),t[l]=u}return t}}var PP=function(e){return e>=48&&e<=57};const IP=new Set([103,109,115,105,121,117,100]),S0={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},es={};es.bin=[48,49];es.oct=[...es.bin,50,51,52,53,54,55];es.dec=[...es.oct,56,57];es.hex=[...es.dec,65,66,67,68,69,70,97,98,99,100,101,102];class Bd{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new Sf(e.startLoc,e.endLoc)}}class NP extends VC{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.state=new wm,this.state.init(e),this.input=t,this.length=t.length,this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Bd(this.state)),this.state.lastTokEnd=this.state.end,this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return this.match(e)?(this.next(),!0):!1}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,lastTokEnd:e.end,context:[this.curContext()],inType:e.inType}}lookahead(){const e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Yp.lastIndex=e,Yp.test(this.input)?Yp.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((t&64512)===55296&&++e<this.input.length){const n=this.input.charCodeAt(e);(n&64512)===56320&&(t=65536+((t&1023)<<10)+(n&1023))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach((t,n)=>this.raise(n,t)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){const e=this.curContext();if(e.preserveSpace||this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(129);return}e===Gt.template?this.readTmplToken():this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(){let e;this.isLookahead||(e=this.state.curPosition());const t=this.state.pos,n=this.input.indexOf("*/",t+2);if(n===-1)throw this.raise(t,ie.UnterminatedComment);for(this.state.pos=n+2,fa.lastIndex=t+2;fa.test(this.input)&&fa.lastIndex<=n;)++this.state.curLine,this.state.lineStart=fa.lastIndex;if(this.isLookahead)return;const s={type:"CommentBlock",value:this.input.slice(t+2,n),start:t,end:n+2,loc:new Sf(e,this.state.curPosition())};return this.options.tokens&&this.pushToken(s),s}skipLineComment(e){const t=this.state.pos;let n;this.isLookahead||(n=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!ua(s)&&++this.state.pos<this.length;)s=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const a=this.state.pos,l=this.input.slice(t+e,a),u={type:"CommentLine",value:l,start:t,end:a,loc:new Sf(n,this.state.curPosition())};return this.options.tokens&&this.pushToken(u),u}skipSpace(){const e=this.state.pos,t=[];e:for(;this.state.pos<this.length;){const n=this.input.charCodeAt(this.state.pos);switch(n){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const s=this.skipBlockComment();s!==void 0&&(this.addComment(s),this.options.attachComment&&t.push(s));break}case 47:{const s=this.skipLineComment(2);s!==void 0&&(this.addComment(s),this.options.attachComment&&t.push(s));break}default:break e}break;default:if(jC(n))++this.state.pos;else if(n===45&&!this.inModule){const s=this.state.pos;if(this.input.charCodeAt(s+1)===45&&this.input.charCodeAt(s+2)===62&&(e===0||this.state.lineStart>e)){const a=this.skipLineComment(3);a!==void 0&&(this.addComment(a),this.options.attachComment&&t.push(a))}else break e}else if(n===60&&!this.inModule){const s=this.state.pos;if(this.input.charCodeAt(s+1)===33&&this.input.charCodeAt(s+2)===45&&this.input.charCodeAt(s+3)===45){const a=this.skipLineComment(4);a!==void 0&&(this.addComment(a),this.options.attachComment&&t.push(a))}else break e}else break e}}if(t.length>0){const n=this.state.pos,s={start:e,end:n,comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(e,t){this.state.end=this.state.pos;const n=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||(this.state.endLoc=this.state.curPosition(),this.updateContext(n))}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;const e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(this.state.pos,ie.UnexpectedDigitAfterHash);if(t===123||t===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")!=="hash")throw this.raise(this.state.pos,t===123?ie.RecordExpressionHashIncorrectStartSyntaxType:ie.TupleExpressionHashIncorrectStartSyntaxType);this.state.pos+=2,t===123?this.finishToken(7):this.finishToken(1)}else Ci(t)?(++this.state.pos,this.finishToken(128,this.readWord1(t))):t===92?(++this.state.pos,this.finishToken(128,this.readWord1())):this.finishOp(25,1)}readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(29,2):this.finishOp(50,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;const t=this.state.pos;for(this.state.pos+=1;!ua(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);const n=this.input.slice(t+2,this.state.pos);return this.finishToken(26,n),!0}readToken_mult_modulo(e){let t=e===42?49:48,n=1,s=this.input.charCodeAt(this.state.pos+1);e===42&&s===42&&(n++,s=this.input.charCodeAt(this.state.pos+2),t=51),s===61&&!this.state.inType&&(n++,t=e===37?31:28),this.finishOp(t,n)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(28,3):this.finishOp(e===124?37:38,2);return}if(e===124){if(t===62){this.finishOp(35,2);return}if(this.hasPlugin("recordAndTuple")&&t===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(this.state.pos,ie.RecordExpressionBarIncorrectEndSyntaxType);this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&t===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(this.state.pos,ie.TupleExpressionBarIncorrectEndSyntaxType);this.state.pos+=2,this.finishToken(4);return}}if(t===61){this.finishOp(28,2);return}this.finishOp(e===124?39:41,1)}readToken_caret(){this.input.charCodeAt(this.state.pos+1)===61&&!this.state.inType?this.finishOp(30,2):this.finishOp(40,1)}readToken_plus_min(e){const t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.finishOp(32,2);return}t===61?this.finishOp(28,2):this.finishOp(47,1)}readToken_lt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(28,3);return}this.finishOp(46,2);return}if(t===61){this.finishOp(45,2);return}this.finishOp(43,1)}readToken_gt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===62){const n=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+n)===61){this.finishOp(28,n+1);return}this.finishOp(46,n);return}if(t===61){this.finishOp(45,2);return}this.finishOp(44,1)}readToken_eq_excl(e){const t=this.input.charCodeAt(this.state.pos+1);if(t===61){this.finishOp(42,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&t===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(e===61?27:33,1)}readToken_question(){const e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);e===63?t===61?this.finishOp(28,3):this.finishOp(36,2):e===46&&!(t>=48&&t<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(this.state.pos,ie.TupleExpressionBarIncorrectStartSyntaxType);this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(this.state.pos,ie.RecordExpressionBarIncorrectStartSyntaxType);this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:++this.state.pos,this.finishToken(22);return;case 48:{const t=this.input.charCodeAt(this.state.pos+1);if(t===120||t===88){this.readRadixNumber(16);return}if(t===111||t===79){this.readRadixNumber(8);return}if(t===98||t===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(34,1);return;case 64:++this.state.pos,this.finishToken(24);return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Ci(e)){this.readWord(e);return}}throw this.raise(this.state.pos,ie.InvalidOrUnexpectedToken,String.fromCodePoint(e))}finishOp(e,t){const n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)}readRegexp(){const e=this.state.start+1;let t,n,{pos:s}=this.state;for(;;++s){if(s>=this.length)throw this.raise(e,ie.UnterminatedRegExp);const u=this.input.charCodeAt(s);if(ua(u))throw this.raise(e,ie.UnterminatedRegExp);if(t)t=!1;else{if(u===91)n=!0;else if(u===93&&n)n=!1;else if(u===47&&!n)break;t=u===92}}const a=this.input.slice(e,s);++s;let l="";for(;s<this.length;){const u=this.codePointAtPos(s),c=String.fromCharCode(u);if(IP.has(u))l.includes(c)&&this.raise(s+1,ie.DuplicateRegExpFlags);else if(bo(u)||u===92)this.raise(s+1,ie.MalformedRegExpFlags);else break;++s,l+=c}this.state.pos=s,this.finishToken(127,{pattern:a,flags:l})}readInt(e,t,n,s=!0){const a=this.state.pos,l=e===16?S0.hex:S0.decBinOct,u=e===16?es.hex:e===10?es.dec:e===8?es.oct:es.bin;let c=!1,m=0;for(let g=0,v=t==null?1/0:t;g<v;++g){const b=this.input.charCodeAt(this.state.pos);let x;if(b===95){const E=this.input.charCodeAt(this.state.pos-1),S=this.input.charCodeAt(this.state.pos+1);u.indexOf(S)===-1?this.raise(this.state.pos,ie.UnexpectedNumericSeparator):(l.indexOf(E)>-1||l.indexOf(S)>-1||Number.isNaN(S))&&this.raise(this.state.pos,ie.UnexpectedNumericSeparator),s||this.raise(this.state.pos,ie.NumericSeparatorInEscapeSequence),++this.state.pos;continue}if(b>=97?x=b-97+10:b>=65?x=b-65+10:PP(b)?x=b-48:x=1/0,x>=e)if(this.options.errorRecovery&&x<=9)x=0,this.raise(this.state.start+g+2,ie.InvalidDigit,e);else if(n)x=0,c=!0;else break;++this.state.pos,m=m*e+x}return this.state.pos===a||t!=null&&this.state.pos-a!==t||c?null:m}readRadixNumber(e){const t=this.state.pos;let n=!1;this.state.pos+=2;const s=this.readInt(e);s==null&&this.raise(this.state.start+2,ie.InvalidDigit,e);const a=this.input.charCodeAt(this.state.pos);if(a===110)++this.state.pos,n=!0;else if(a===109)throw this.raise(t,ie.InvalidDecimal);if(Ci(this.codePointAtPos(this.state.pos)))throw this.raise(this.state.pos,ie.NumberIdentifier);if(n){const l=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(125,l);return}this.finishToken(124,s)}readNumber(e){const t=this.state.pos;let n=!1,s=!1,a=!1,l=!1,u=!1;!e&&this.readInt(10)===null&&this.raise(t,ie.InvalidNumber);const c=this.state.pos-t>=2&&this.input.charCodeAt(t)===48;if(c){const b=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(t,ie.StrictOctalLiteral),!this.state.strict){const x=b.indexOf("_");x>0&&this.raise(x+t,ie.ZeroDigitNumericSeparator)}u=c&&!/[89]/.test(b)}let m=this.input.charCodeAt(this.state.pos);if(m===46&&!u&&(++this.state.pos,this.readInt(10),n=!0,m=this.input.charCodeAt(this.state.pos)),(m===69||m===101)&&!u&&(m=this.input.charCodeAt(++this.state.pos),(m===43||m===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(t,ie.InvalidOrMissingExponent),n=!0,l=!0,m=this.input.charCodeAt(this.state.pos)),m===110&&((n||c)&&this.raise(t,ie.InvalidBigIntLiteral),++this.state.pos,s=!0),m===109&&(this.expectPlugin("decimal",this.state.pos),(l||c)&&this.raise(t,ie.InvalidDecimal),++this.state.pos,a=!0),Ci(this.codePointAtPos(this.state.pos)))throw this.raise(this.state.pos,ie.NumberIdentifier);const g=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(s){this.finishToken(125,g);return}if(a){this.finishToken(126,g);return}const v=u?parseInt(g,8):parseFloat(g);this.finishToken(124,v)}readCodePoint(e){const t=this.input.charCodeAt(this.state.pos);let n;if(t===123){const s=++this.state.pos;if(n=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,!0,e),++this.state.pos,n!==null&&n>1114111)if(e)this.raise(s,ie.InvalidCodePoint);else return null}else n=this.readHexChar(4,!1,e);return n}readString(e){let t="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,ie.UnterminatedString);const s=this.input.charCodeAt(this.state.pos);if(s===e)break;if(s===92)t+=this.input.slice(n,this.state.pos),t+=this.readEscapedChar(!1),n=this.state.pos;else if(s===8232||s===8233)++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;else{if(ua(s))throw this.raise(this.state.start,ie.UnterminatedString);++this.state.pos}}t+=this.input.slice(n,this.state.pos++),this.finishToken(123,t)}readTmplToken(){let e="",t=this.state.pos,n=!1;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,ie.UnterminatedTemplate);const s=this.input.charCodeAt(this.state.pos);if(s===96||s===36&&this.input.charCodeAt(this.state.pos+1)===123){if(this.state.pos===this.state.start&&this.match(20))if(s===36){this.state.pos+=2,this.finishToken(23);return}else{++this.state.pos,this.finishToken(22);return}e+=this.input.slice(t,this.state.pos),this.finishToken(20,n?null:e);return}if(s===92){e+=this.input.slice(t,this.state.pos);const a=this.readEscapedChar(!0);a===null?n=!0:e+=a,t=this.state.pos}else if(ua(s)){switch(e+=this.input.slice(t,this.state.pos),++this.state.pos,s){case 13:this.input.charCodeAt(this.state.pos)===10&&++this.state.pos;case 10:e+=`
`;break;default:e+=String.fromCharCode(s);break}++this.state.curLine,this.state.lineStart=this.state.pos,t=this.state.pos}else++this.state.pos}}recordStrictModeErrors(e,t){this.state.strict&&!this.state.strictErrors.has(e)?this.raise(e,t):this.state.strictErrors.set(e,t)}readEscapedChar(e){const t=!e,n=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,n){case 110:return`
`;case 114:return"\r";case 120:{const s=this.readHexChar(2,!1,t);return s===null?null:String.fromCharCode(s)}case 117:{const s=this.readCodePoint(t);return s===null?null:String.fromCodePoint(s)}case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.state.pos)===10&&++this.state.pos;case 10:this.state.lineStart=this.state.pos,++this.state.curLine;case 8232:case 8233:return"";case 56:case 57:if(e)return null;this.recordStrictModeErrors(this.state.pos-1,ie.StrictNumericEscape);default:if(n>=48&&n<=55){const s=this.state.pos-1;let l=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],u=parseInt(l,8);u>255&&(l=l.slice(0,-1),u=parseInt(l,8)),this.state.pos+=l.length-1;const c=this.input.charCodeAt(this.state.pos);if(l!=="0"||c===56||c===57){if(e)return null;this.recordStrictModeErrors(s,ie.StrictNumericEscape)}return String.fromCharCode(u)}return String.fromCharCode(n)}}readHexChar(e,t,n){const s=this.state.pos,a=this.readInt(16,e,t,!1);return a===null&&(n?this.raise(s,ie.InvalidEscapeSequence):this.state.pos=s-1),a}readWord1(e){this.state.containsEsc=!1;let t="";const n=this.state.pos;let s=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){const a=this.codePointAtPos(this.state.pos);if(bo(a))this.state.pos+=a<=65535?1:2;else if(a===92){this.state.containsEsc=!0,t+=this.input.slice(s,this.state.pos);const l=this.state.pos,u=this.state.pos===n?Ci:bo;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(this.state.pos,ie.MissingUnicodeEscape),s=this.state.pos-1;continue}++this.state.pos;const c=this.readCodePoint(!0);c!==null&&(u(c)||this.raise(l,ie.EscapedCharNotAnIdentifier),t+=String.fromCodePoint(c)),s=this.state.pos}else break}return t+this.input.slice(s,this.state.pos)}readWord(e){const t=this.readWord1(e),n=im.get(t);n!==void 0?this.finishToken(n,Fi(n)):this.finishToken(122,t)}checkKeywordEscapes(){const{type:e}=this.state;fm(e)&&this.state.containsEsc&&this.raise(this.state.start,ie.InvalidEscapedReservedWord,Fi(e))}updateContext(e){const{context:t,type:n}=this.state;switch(n){case 8:t.pop();break;case 5:case 7:case 23:t.push(Gt.brace);break;case 22:t[t.length-1]===Gt.template?t.pop():t.push(Gt.template);break}}}class OP{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class LP{constructor(e){this.stack=[],this.undefinedPrivateNames=new Map,this.raise=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new OP)}exit(){const e=this.stack.pop(),t=this.current();for(const[n,s]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(n)||t.undefinedPrivateNames.set(n,s):this.raise(s,ie.InvalidPrivateFieldResolution,n)}declarePrivateName(e,t,n){const s=this.current();let a=s.privateNames.has(e);if(t&Xp){const l=a&&s.loneAccessors.get(e);if(l){const u=l&Ef,c=t&Ef,m=l&Xp,g=t&Xp;a=m===g||u!==c,a||s.loneAccessors.delete(e)}else a||s.loneAccessors.set(e,t)}a&&this.raise(n,ie.PrivateNameRedeclaration,e),s.privateNames.add(e),s.undefinedPrivateNames.delete(e)}usePrivateName(e,t){let n;for(n of this.stack)if(n.privateNames.has(e))return;n?n.undefinedPrivateNames.set(e,t):this.raise(t,ie.InvalidPrivateFieldResolution,e)}}const MP=0,dx=1,xm=2,mx=3;class mh{constructor(e=MP){this.type=void 0,this.type=e}canBeArrowParameterDeclaration(){return this.type===xm||this.type===dx}isCertainlyParameterDeclaration(){return this.type===mx}}class gx extends mh{constructor(e){super(e),this.errors=new Map}recordDeclarationError(e,t){this.errors.set(e,t)}clearDeclarationError(e){this.errors.delete(e)}iterateErrors(e){this.errors.forEach(e)}}class DP{constructor(e){this.stack=[new mh],this.raise=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const{stack:n}=this;let s=n.length-1,a=n[s];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(e,t);else return;a=n[--s]}this.raise(e,t)}recordParenthesizedIdentifierError(e,t){const{stack:n}=this,s=n[n.length-1];if(s.isCertainlyParameterDeclaration())this.raise(e,t);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(e,t);else return}recordAsyncArrowParametersError(e,t){const{stack:n}=this;let s=n.length-1,a=n[s];for(;a.canBeArrowParameterDeclaration();)a.type===xm&&a.recordDeclarationError(e,t),a=n[--s]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];!t.canBeArrowParameterDeclaration()||t.iterateErrors((n,s)=>{this.raise(s,n);let a=e.length-2,l=e[a];for(;l.canBeArrowParameterDeclaration();)l.clearDeclarationError(s),l=e[--a]})}}function RP(){return new mh(mx)}function FP(){return new gx(dx)}function BP(){return new gx(xm)}function yx(){return new mh}const xo=0,vx=1,gh=2,bx=4,oo=8;class $P{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&gh)>0}get hasYield(){return(this.currentFlags()&vx)>0}get hasReturn(){return(this.currentFlags()&bx)>0}get hasIn(){return(this.currentFlags()&oo)>0}}function rf(r,e){return(r?gh:0)|(e?vx:0)}class jP extends NP{addExtra(e,t,n){if(!e)return;const s=e.extra=e.extra||{};s[t]=n}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){const n=e+t.length;if(this.input.slice(e,n)===t){const s=this.input.charCodeAt(n);return!(bo(s)||(s&64512)===55296)}return!1}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,t){this.eatContextual(e)||this.unexpected(null,t)}canInsertSemicolon(){return this.match(129)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return sm.test(this.input.slice(this.state.lastTokEnd,this.state.start))}hasFollowingLineBreak(){return y0.lastIndex=this.state.end,y0.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(this.state.lastTokEnd,ie.MissingSemicolon)}expect(e,t){this.eat(e)||this.unexpected(t,e)}assertNoSpace(e="Unexpected space."){this.state.start>this.state.lastTokEnd&&this.raise(this.state.lastTokEnd,{code:Zs.SyntaxError,reasonCode:"UnexpectedSpace",template:e})}unexpected(e,t={code:Zs.SyntaxError,reasonCode:"UnexpectedToken",template:"Unexpected token"}){throw aP(t)&&(t={code:Zs.SyntaxError,reasonCode:"UnexpectedToken",template:`Unexpected token, expected "${Fi(t)}"`}),this.raise(e!=null?e:this.state.start,t)}expectPlugin(e,t){if(!this.hasPlugin(e))throw this.raiseWithData(t!=null?t:this.state.start,{missingPlugin:[e]},`This experimental syntax requires enabling the parser plugin: '${e}'`);return!0}expectOnePlugin(e,t){if(!e.some(n=>this.hasPlugin(n)))throw this.raiseWithData(t!=null?t:this.state.start,{missingPlugin:e},`This experimental syntax requires enabling one of the following parser plugin(s): '${e.join(", ")}'`)}tryParse(e,t=this.state.clone()){const n={node:null};try{const s=e((a=null)=>{throw n.node=a,n});if(this.state.errors.length>t.errors.length){const a=this.state;return this.state=t,this.state.tokensLength=a.tokensLength,{node:s,error:a.errors[t.errors.length],thrown:!1,aborted:!1,failState:a}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(s){const a=this.state;if(this.state=t,s instanceof SyntaxError)return{node:null,error:s,thrown:!0,aborted:!1,failState:a};if(s===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:a};throw s}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssign:n,doubleProto:s,optionalParameters:a}=e,l=n+s+a>-3;if(t)l&&(n>=0&&this.unexpected(n),s>=0&&this.raise(s,ie.DuplicateProto),a>=0&&this.unexpected(a));else return l}isLiteralPropertyName(){return Zw(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isOptionalChain(e){return e.type==="OptionalMemberExpression"||e.type==="OptionalCallExpression"}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){const t=this.state.labels;this.state.labels=[];const n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const s=this.inModule;this.inModule=e;const a=this.scope,l=this.getScopeHandler();this.scope=new l(this.raise.bind(this),this.inModule);const u=this.prodParam;this.prodParam=new $P;const c=this.classScope;this.classScope=new LP(this.raise.bind(this));const m=this.expressionScope;return this.expressionScope=new DP(this.raise.bind(this)),()=>{this.state.labels=t,this.exportedIdentifiers=n,this.inModule=s,this.scope=a,this.prodParam=u,this.classScope=c,this.expressionScope=m}}enterInitialScopes(){let e=xo;this.inModule&&(e|=gh),this.scope.enter(Zl),this.prodParam.enter(e)}}class nf{constructor(){this.shorthandAssign=-1,this.doubleProto=-1,this.optionalParameters=-1}}class Af{constructor(e,t,n){this.type="",this.start=t,this.end=0,this.loc=new Sf(n),e!=null&&e.options.ranges&&(this.range=[t,0]),e!=null&&e.filename&&(this.loc.filename=e.filename)}}const Sm=Af.prototype;Sm.__clone=function(){const r=new Af,e=Object.keys(this);for(let t=0,n=e.length;t<n;t++){const s=e[t];s!=="leadingComments"&&s!=="trailingComments"&&s!=="innerComments"&&(r[s]=this[s])}return r};function UP(r){return ti(r)}function ti(r){const{type:e,start:t,end:n,loc:s,range:a,extra:l,name:u}=r,c=Object.create(Sm);return c.type=e,c.start=t,c.end=n,c.loc=s,c.range=a,c.extra=l,c.name=u,e==="Placeholder"&&(c.expectedNode=r.expectedNode),c}function qP(r){const{type:e,start:t,end:n,loc:s,range:a,extra:l}=r;if(e==="Placeholder")return UP(r);const u=Object.create(Sm);return u.type="StringLiteral",u.start=t,u.end=n,u.loc=s,u.range=a,u.extra=l,u.value=r.value,u}class WP extends jP{startNode(){return new Af(this,this.state.start,this.state.startLoc)}startNodeAt(e,t){return new Af(this,e,t)}startNodeAtNode(e){return this.startNodeAt(e.start,e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEnd,this.state.lastTokEndLoc)}finishNodeAt(e,t,n,s){return e.type=t,e.end=n,e.loc.end=s,this.options.ranges&&(e.range[1]=n),this.options.attachComment&&this.processComment(e),e}resetStartLocation(e,t,n){e.start=t,e.loc.start=n,this.options.ranges&&(e.range[0]=t)}resetEndLocation(e,t=this.state.lastTokEnd,n=this.state.lastTokEndLoc){e.end=t,e.loc.end=n,this.options.ranges&&(e.range[1]=t)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.start,t.loc.start)}}const zP=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),st=Vo({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:"Cannot overwrite reserved type %0.",DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:"Boolean enum members need to be initialized. Use either `%0 = true,` or `%0 = false,` in enum `%1`.",EnumDuplicateMemberName:"Enum member names need to be unique, but the name `%0` has already been used before in enum `%1`.",EnumInconsistentMemberValues:"Enum `%0` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.",EnumInvalidExplicitType:"Enum type `%1` is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `%0`.",EnumInvalidExplicitTypeUnknownSupplied:"Supplied enum type is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `%0`.",EnumInvalidMemberInitializerPrimaryType:"Enum `%0` has type `%2`, so the initializer of `%1` needs to be a %2 literal.",EnumInvalidMemberInitializerSymbolType:"Symbol enum members cannot be initialized. Use `%1,` in enum `%0`.",EnumInvalidMemberInitializerUnknownType:"The enum member initializer for `%1` needs to be a literal (either a boolean, number, or string) in enum `%0`.",EnumInvalidMemberName:"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `%0`, consider using `%1`, in enum `%2`.",EnumNumberMemberNotInitialized:"Number enum members need to be initialized, e.g. `%1 = 1` in enum `%0`.",EnumStringMemberInconsistentlyInitailized:"String enum members need to consistently either all use initializers, or use no initializers, in enum `%0`.",GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:"Unexpected reserved type %0.",UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:"`declare export %0` is not supported. Use `%1` instead.",UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."},Zs.SyntaxError,"flow");function HP(r){return r.type==="DeclareExportAllDeclaration"||r.type==="DeclareExportDeclaration"&&(!r.declaration||r.declaration.type!=="TypeAlias"&&r.declaration.type!=="InterfaceDeclaration")}function Qp(r){return r.importKind==="type"||r.importKind==="typeof"}function k0(r){return ei(r)&&r!==91}const VP={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function GP(r,e){const t=[],n=[];for(let s=0;s<r.length;s++)(e(r[s],s,r)?t:n).push(r[s]);return[t,n]}const KP=/\*?\s*@((?:no)?flow)\b/;var YP=r=>class extends r{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return CP}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,t){return e!==123&&e!==13&&e!==26&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(this.flowPragma===void 0){const t=KP.exec(e.value);if(t)if(t[1]==="flow")this.flowPragma="flow";else if(t[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}return super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=!0,this.expect(e||14);const n=this.flowParseType();return this.state.inType=t,n}flowParsePredicate(){const e=this.startNode(),t=this.state.start;return this.next(),this.expectContextual(101),this.state.lastTokStart>t+1&&this.raise(t,st.UnexpectedSpaceBetweenModuloChecks),this.eat(10)?(e.value=this.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,n=null;return this.match(48)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(48)&&(n=this.flowParsePredicate())),[t,n]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier(),n=this.startNode(),s=this.startNode();this.match(43)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);const a=this.flowParseFunctionTypeParams();return n.params=a.params,n.rest=a.rest,n.this=a._this,this.expect(11),[n.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),s.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(s,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,SP,e.id.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){if(this.match(74))return this.flowParseDeclareClass(e);if(this.match(62))return this.flowParseDeclareFunction(e);if(this.match(68))return this.flowParseDeclareVariable(e);if(this.eatContextual(117))return this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(this.state.lastTokStart,st.NestedDeclareModule),this.flowParseDeclareModule(e));if(this.isContextual(120))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(121))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(119))return this.flowParseDeclareInterface(e);if(this.match(76))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,_f,e.id.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(ho),this.match(123)?e.id=this.parseExprAtom():e.id=this.parseIdentifier();const t=e.body=this.startNode(),n=t.body=[];for(this.expect(5);!this.match(8);){let l=this.startNode();this.match(77)?(this.next(),!this.isContextual(120)&&!this.match(81)&&this.raise(this.state.lastTokStart,st.InvalidNonTypeImportInDeclareModule),this.parseImport(l)):(this.expectContextual(115,st.UnsupportedStatementInDeclareModule),l=this.flowParseDeclare(l,!0)),n.push(l)}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let s=null,a=!1;return n.forEach(l=>{HP(l)?(s==="CommonJS"&&this.raise(l.start,st.AmbiguousDeclareModuleKind),s="ES"):l.type==="DeclareModuleExports"&&(a&&this.raise(l.start,st.DuplicateDeclareModuleExports),s==="ES"&&this.raise(l.start,st.AmbiguousDeclareModuleKind),s="CommonJS",a=!0)}),e.kind=s||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(76),this.eat(59))return this.match(62)||this.match(74)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(69)||this.isLet()||(this.isContextual(120)||this.isContextual(119))&&!t){const n=this.state.value,s=VP[n];throw this.raise(this.state.start,st.UnsupportedDeclareExportKind,n,s)}if(this.match(68)||this.match(62)||this.match(74)||this.isContextual(121))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(49)||this.match(5)||this.isContextual(119)||this.isContextual(120)||this.isContextual(121))return e=this.parseExport(e),e.type==="ExportNamedDeclaration"&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e;throw this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(102),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){return this.next(),this.flowParseTypeAlias(e),e.type="DeclareTypeAlias",e}flowParseDeclareOpaqueType(e){return this.next(),this.flowParseOpaqueType(e,!0),e.type="DeclareOpaqueType",e}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t=!1){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?hx:qn,e.id.start),this.match(43)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.implements=[],e.mixins=[],this.eat(75))do e.extends.push(this.flowParseInterfaceExtends());while(!t&&this.eat(12));if(this.isContextual(108)){this.next();do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12))}if(this.isContextual(104)){this.next();do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){const e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(43)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){e==="_"&&this.raise(this.state.start,st.UnexpectedReservedUnderscore)}checkReservedType(e,t,n){!zP.has(e)||this.raise(t,n?st.AssignReservedType:st.UnexpectedReservedType,e)}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.start,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,qn,e.id.start),this.match(43)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(27),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual(120),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,qn,e.id.start),this.match(43)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(27)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){const t=this.state.start,n=this.startNode(),s=this.flowParseVariance(),a=this.flowParseTypeAnnotatableIdentifier();return n.name=a.name,n.variance=s,n.bound=a.typeAnnotation,this.match(27)?(this.eat(27),n.default=this.flowParseType()):e&&this.raise(t,st.MissingTypeParamDefault),this.finishNode(n,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(43)||this.match(132)?this.next():this.unexpected();let n=!1;do{const s=this.flowParseTypeParameter(n);t.params.push(s),s.default&&(n=!0),this.match(44)||this.expect(12)}while(!this.match(44));return this.expect(44),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(43);const n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(44);)e.params.push(this.flowParseType()),this.match(44)||this.expect(12);return this.state.noAnonFunctionType=n,this.expect(44),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(43);!this.match(44);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(44)||this.expect(12);return this.expect(44),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();if(this.expectContextual(119),e.extends=[],this.eat(75))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(124)||this.match(123)?this.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,n){return e.static=t,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(43)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(43)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(72)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){const n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:n,allowProto:s,allowInexact:a}){const l=this.state.inType;this.state.inType=!0;const u=this.startNode();u.callProperties=[],u.properties=[],u.indexers=[],u.internalSlots=[];let c,m,g=!1;for(t&&this.match(6)?(this.expect(6),c=9,m=!0):(this.expect(5),c=8,m=!1),u.exact=m;!this.match(c);){let b=!1,x=null,E=null;const S=this.startNode();if(s&&this.isContextual(109)){const _=this.lookahead();_.type!==14&&_.type!==17&&(this.next(),x=this.state.start,e=!1)}if(e&&this.isContextual(98)){const _=this.lookahead();_.type!==14&&_.type!==17&&(this.next(),b=!0)}const C=this.flowParseVariance();if(this.eat(0))x!=null&&this.unexpected(x),this.eat(0)?(C&&this.unexpected(C.start),u.internalSlots.push(this.flowParseObjectTypeInternalSlot(S,b))):u.indexers.push(this.flowParseObjectTypeIndexer(S,b,C));else if(this.match(10)||this.match(43))x!=null&&this.unexpected(x),C&&this.unexpected(C.start),u.callProperties.push(this.flowParseObjectTypeCallProperty(S,b));else{let _="init";if(this.isContextual(92)||this.isContextual(97)){const I=this.lookahead();Zw(I.type)&&(_=this.state.value,this.next())}const A=this.flowParseObjectTypeProperty(S,b,x,C,_,n,a!=null?a:!m);A===null?(g=!0,E=this.state.lastTokStart):u.properties.push(A)}this.flowObjectTypeSemicolon(),E&&!this.match(8)&&!this.match(9)&&this.raise(E,st.UnexpectedExplicitInexactInObject)}this.expect(c),n&&(u.inexact=g);const v=this.finishNode(u,"ObjectTypeAnnotation");return this.state.inType=l,v}flowParseObjectTypeProperty(e,t,n,s,a,l,u){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(l?u||this.raise(this.state.lastTokStart,st.InexactInsideExact):this.raise(this.state.lastTokStart,st.InexactInsideNonObject),s&&this.raise(s.start,st.InexactVariance),null):(l||this.raise(this.state.lastTokStart,st.UnexpectedSpreadType),n!=null&&this.unexpected(n),s&&this.raise(s.start,st.SpreadVariance),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=n!=null,e.kind=a;let c=!1;return this.match(43)||this.match(10)?(e.method=!0,n!=null&&this.unexpected(n),s&&this.unexpected(s.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(e),!l&&e.key.name==="constructor"&&e.value.this&&this.raise(e.value.this.start,st.ThisParamBannedInConstructor)):(a!=="init"&&this.unexpected(),e.method=!1,this.eat(17)&&(c=!0),e.value=this.flowParseTypeInitialiser(),e.variance=s),e.optional=c,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t=e.kind==="get"?0:1,n=e.start,s=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise(e.value.this.start,e.kind==="get"?st.GetterMayNotHaveThisParam:st.SetterMayNotHaveThisParam),s!==t&&(e.kind==="get"?this.raise(n,ie.BadGetterArity):this.raise(n,ie.BadSetterArity)),e.kind==="set"&&e.value.rest&&this.raise(n,ie.BadSetterRestParameter)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,t,n){e=e||this.state.start,t=t||this.state.startLoc;let s=n||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const a=this.startNodeAt(e,t);a.qualification=s,a.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(a,"QualifiedTypeIdentifier")}return s}flowParseGenericType(e,t,n){const s=this.startNodeAt(e,t);return s.typeParameters=null,s.id=this.flowParseQualifiedTypeIdentifier(e,t,n),this.match(43)&&(s.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(s,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(81),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null,n=!1,s=null;const a=this.startNode(),l=this.lookahead(),u=this.state.type===72;return l.type===14||l.type===17?(u&&!e&&this.raise(a.start,st.ThisParamMustBeFirst),t=this.parseIdentifier(u),this.eat(17)&&(n=!0,u&&this.raise(a.start,st.ThisParamMayNotBeOptional)),s=this.flowParseTypeInitialiser()):s=this.flowParseType(),a.name=t,a.optional=n,a.typeAnnotation=s,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.start,e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let t=null,n=null;for(this.match(72)&&(n=this.flowParseFunctionTypeParam(!0),n.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:n}}flowIdentToTypeAnnotation(e,t,n,s){switch(s.name){case"any":return this.finishNode(n,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(n,"BooleanTypeAnnotation");case"mixed":return this.finishNode(n,"MixedTypeAnnotation");case"empty":return this.finishNode(n,"EmptyTypeAnnotation");case"number":return this.finishNode(n,"NumberTypeAnnotation");case"string":return this.finishNode(n,"StringTypeAnnotation");case"symbol":return this.finishNode(n,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(s.name),this.flowParseGenericType(e,t,s)}}flowParsePrimaryType(){const e=this.state.start,t=this.state.startLoc,n=this.startNode();let s,a,l=!1;const u=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,a=this.flowParseTupleType(),this.state.noAnonFunctionType=u,a;case 43:return n.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),s=this.flowParseFunctionTypeParams(),n.params=s.params,n.rest=s.rest,n.this=s._this,this.expect(11),this.expect(19),n.returnType=this.flowParseType(),this.finishNode(n,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if(It(this.state.type)||this.match(72)){const c=this.lookahead().type;l=c!==17&&c!==14}else l=!0;if(l){if(this.state.noAnonFunctionType=!1,a=this.flowParseType(),this.state.noAnonFunctionType=u,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),a;this.eat(12)}return a?s=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(a)]):s=this.flowParseFunctionTypeParams(),n.params=s.params,n.rest=s.rest,n.this=s._this,this.expect(11),this.expect(19),n.returnType=this.flowParseType(),n.typeParameters=null,this.finishNode(n,"FunctionTypeAnnotation");case 123:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 79:case 80:return n.value=this.match(79),this.next(),this.finishNode(n,"BooleanLiteralTypeAnnotation");case 47:if(this.state.value==="-"){if(this.next(),this.match(124))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",n);if(this.match(125))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",n);throw this.raise(this.state.start,st.UnexpectedSubtractionOperand)}throw this.unexpected();case 124:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 125:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 82:return this.next(),this.finishNode(n,"VoidTypeAnnotation");case 78:return this.next(),this.finishNode(n,"NullLiteralTypeAnnotation");case 72:return this.next(),this.finishNode(n,"ThisTypeAnnotation");case 49:return this.next(),this.finishNode(n,"ExistsTypeAnnotation");case 81:return this.flowParseTypeofType();default:if(fm(this.state.type)){const c=Fi(this.state.type);return this.next(),super.createIdentifier(n,c)}else if(It(this.state.type))return this.isContextual(119)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,n,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){const e=this.state.start,t=this.state.startLoc;let n=this.flowParsePrimaryType(),s=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const a=this.startNodeAt(e,t),l=this.eat(18);s=s||l,this.expect(0),!l&&this.match(3)?(a.elementType=n,this.next(),n=this.finishNode(a,"ArrayTypeAnnotation")):(a.objectType=n,a.indexType=this.flowParseType(),this.expect(3),s?(a.optional=l,n=this.finishNode(a,"OptionalIndexedAccessType")):n=this.finishNode(a,"IndexedAccessType"))}return n}flowParsePrefixType(){const e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const t=this.startNodeAt(e.start,e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){const e=this.startNode();this.eat(41);const t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(41);)e.types.push(this.flowParseAnonFunctionWithoutParens());return e.types.length===1?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(39);const t=this.flowParseIntersectionType();for(e.types=[t];this.eat(39);)e.types.push(this.flowParseIntersectionType());return e.types.length===1?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){const e=this.state.inType;this.state.inType=!0;const t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(this.state.type===122&&this.state.value==="_"){const e=this.state.start,t=this.state.startLoc,n=this.parseIdentifier();return this.flowParseGenericType(e,t,n)}else return this.flowParseType()}flowParseTypeAnnotation(){const e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){const t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.end,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(47)&&(e=this.startNode(),this.state.value==="+"?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")),e}parseFunctionBody(e,t,n=!1){return t?this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,n)):super.parseFunctionBody(e,!1,n)}parseFunctionBodyAndFinish(e,t,n=!1){if(this.match(14)){const s=this.startNode();[s.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=s.typeAnnotation?this.finishNode(s,"TypeAnnotation"):null}super.parseFunctionBodyAndFinish(e,t,n)}parseStatement(e,t){if(this.state.strict&&this.isContextual(119)){const s=this.lookahead();if(ei(s.type)){const a=this.startNode();return this.next(),this.flowParseInterface(a)}}else if(this.shouldParseEnums()&&this.isContextual(116)){const s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}const n=super.parseStatement(e,t);return this.flowPragma===void 0&&!this.isValidDirective(n)&&(this.flowPragma=null),n}parseExpressionStatement(e,t){if(t.type==="Identifier"){if(t.name==="declare"){if(this.match(74)||It(this.state.type)||this.match(62)||this.match(68)||this.match(76))return this.flowParseDeclare(e)}else if(It(this.state.type)){if(t.name==="interface")return this.flowParseInterface(e);if(t.name==="type")return this.flowParseTypeAlias(e);if(t.name==="opaque")return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,t)}shouldParseExportDeclaration(){const{type:e}=this.state;return b0(e)||this.shouldParseEnums()&&e===116?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:e}=this.state;return b0(e)||this.shouldParseEnums()&&e===116?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(116)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,n,s){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const b=this.lookaheadCharCode();if(b===44||b===61||b===58||b===41)return this.setOptionalParametersError(s),e}this.expect(17);const a=this.state.clone(),l=this.state.noArrowAt,u=this.startNodeAt(t,n);let{consequent:c,failed:m}=this.tryParseConditionalConsequent(),[g,v]=this.getArrowLikeExpressions(c);if(m||v.length>0){const b=[...l];if(v.length>0){this.state=a,this.state.noArrowAt=b;for(let x=0;x<v.length;x++)b.push(v[x].start);({consequent:c,failed:m}=this.tryParseConditionalConsequent()),[g,v]=this.getArrowLikeExpressions(c)}m&&g.length>1&&this.raise(a.start,st.AmbiguousConditionalArrow),m&&g.length===1&&(this.state=a,b.push(g[0].start),this.state.noArrowAt=b,{consequent:c,failed:m}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(c,!0),this.state.noArrowAt=l,this.expect(14),u.test=e,u.consequent=c,u.alternate=this.forwardNoArrowParamsConversionAt(u,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(u,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const n=[e],s=[];for(;n.length!==0;){const a=n.pop();a.type==="ArrowFunctionExpression"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):s.push(a),n.push(a.body)):a.type==="ConditionalExpression"&&(n.push(a.consequent),n.push(a.alternate))}return t?(s.forEach(a=>this.finishArrowValidation(a)),[s,[]]):GP(s,a=>a.params.every(l=>this.isAssignable(l,!0)))}finishArrowValidation(e){var t;this.toAssignableList(e.params,(t=e.extra)==null?void 0:t.trailingComma,!1),this.scope.enter(Gs|dm),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let n;return this.state.noArrowParamsConversionAt.indexOf(e.start)!==-1?(this.state.noArrowParamsConversionAt.push(this.state.start),n=t(),this.state.noArrowParamsConversionAt.pop()):n=t(),n}parseParenItem(e,t,n){if(e=super.parseParenItem(e,t,n),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){const s=this.startNodeAt(t,n);return s.expression=e,s.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(s,"TypeCastExpression")}return e}assertModuleNodeAllowed(e){e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"||super.assertModuleNodeAllowed(e)}parseExport(e){const t=super.parseExport(e);return(t.type==="ExportNamedDeclaration"||t.type==="ExportAllDeclaration")&&(t.exportKind=t.exportKind||"value"),t}parseExportDeclaration(e){if(this.isContextual(120)){e.exportKind="type";const t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),this.parseExportFrom(e),null):this.flowParseTypeAlias(t)}else if(this.isContextual(121)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}else if(this.isContextual(119)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseInterface(t)}else if(this.shouldParseEnums()&&this.isContextual(116)){e.exportKind="value";const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(...arguments)?!0:this.isContextual(120)&&this.lookahead().type===49?(e.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){const t=this.state.start,n=super.maybeParseExportNamespaceSpecifier(e);return n&&e.exportKind==="type"&&this.unexpected(t),n}parseClassId(e,t,n){super.parseClassId(e,t,n),this.match(43)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,n){const s=this.state.start;if(this.isContextual(115)){if(this.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,n),t.declare&&(t.type!=="ClassProperty"&&t.type!=="ClassPrivateProperty"&&t.type!=="PropertyDefinition"?this.raise(s,st.DeclareClassElement):t.value&&this.raise(t.value.start,st.DeclareClassFieldInitializer))}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){const e=super.readWord1(),t="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(this.state.pos,ie.InvalidIdentifier,t),this.finishToken(122,t)}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);return e===123&&t===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?44:43,1):this.state.inType&&e===63?t===46?this.finishOp(18,2):this.finishOp(17,1):dP(e,t)?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,t){return e.type==="TypeCastExpression"?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e,t=!1){return e.type==="TypeCastExpression"?super.toAssignable(this.typeCastToParameter(e),t):super.toAssignable(e,t)}toAssignableList(e,t,n){for(let s=0;s<e.length;s++){const a=e[s];(a==null?void 0:a.type)==="TypeCastExpression"&&(e[s]=this.typeCastToParameter(a))}return super.toAssignableList(e,t,n)}toReferencedList(e,t){for(let s=0;s<e.length;s++){var n;const a=e[s];a&&a.type==="TypeCastExpression"&&!((n=a.extra)!=null&&n.parenthesized)&&(e.length>1||!t)&&this.raise(a.typeAnnotation.start,st.TypeCastInPattern)}return e}parseArrayLike(e,t,n,s){const a=super.parseArrayLike(e,t,n,s);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(a.elements),a}checkLVal(e,...t){if(e.type!=="TypeCastExpression")return super.checkLVal(e,...t)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(43)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,n,s,a,l){if(t.variance&&this.unexpected(t.variance.start),delete t.variance,this.match(43)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,n,s,a,l),t.params&&a){const u=t.params;u.length>0&&this.isThisParam(u[0])&&this.raise(t.start,st.ThisParamBannedInConstructor)}else if(t.type==="MethodDefinition"&&a&&t.value.params){const u=t.value.params;u.length>0&&this.isThisParam(u[0])&&this.raise(t.start,st.ThisParamBannedInConstructor)}}pushClassPrivateMethod(e,t,n,s){t.variance&&this.unexpected(t.variance.start),delete t.variance,this.match(43)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,n,s)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(43)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(104)){this.next();const t=e.implements=[];do{const n=this.startNode();n.id=this.flowParseRestrictedIdentifier(!0),this.match(43)?n.typeParameters=this.flowParseTypeParameterInstantiation():n.typeParameters=null,t.push(this.finishNode(n,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);const t=this.getObjectOrClassMethodParams(e);if(t.length>0){const n=t[0];this.isThisParam(n)&&e.kind==="get"?this.raise(n.start,st.GetterMayNotHaveThisParam):this.isThisParam(n)&&this.raise(n.start,st.SetterMayNotHaveThisParam)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,n,s,a,l,u,c){e.variance&&this.unexpected(e.variance.start),delete e.variance;let m;this.match(43)&&!u&&(m=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected()),super.parseObjPropValue(e,t,n,s,a,l,u,c),m&&((e.value||e).typeParameters=m)}parseAssignableListItemTypes(e){return this.eat(17)&&(e.type!=="Identifier"&&this.raise(e.start,st.PatternIsOptional),this.isThisParam(e)&&this.raise(e.start,st.ThisParamMayNotBeOptional),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(e.start,st.ThisParamAnnotationRequired),this.match(27)&&this.isThisParam(e)&&this.raise(e.start,st.ThisParamNoDefault),this.resetEndLocation(e),e}parseMaybeDefault(e,t,n){const s=super.parseMaybeDefault(e,t,n);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(s.typeAnnotation.start,st.TypeBeforeInitializer),s}shouldParseDefaultImport(e){return Qp(e)?k0(this.state.type):super.shouldParseDefaultImport(e)}parseImportSpecifierLocal(e,t,n,s){t.local=Qp(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),this.checkLVal(t.local,s,qn),e.specifiers.push(this.finishNode(t,n))}maybeParseDefaultImportSpecifier(e){e.importKind="value";let t=null;if(this.match(81)?t="typeof":this.isContextual(120)&&(t="type"),t){const n=this.lookahead(),{type:s}=n;t==="type"&&s===49&&this.unexpected(n.start),(k0(s)||s===5||s===49)&&(this.next(),e.importKind=t)}return super.maybeParseDefaultImportSpecifier(e)}parseImportSpecifier(e,t,n,s){const a=e.imported;let l=null;a.type==="Identifier"&&(a.name==="type"?l="type":a.name==="typeof"&&(l="typeof"));let u=!1;if(this.isContextual(87)&&!this.isLookaheadContextual("as")){const m=this.parseIdentifier(!0);l!==null&&!ei(this.state.type)?(e.imported=m,e.importKind=l,e.local=ti(m)):(e.imported=a,e.importKind=null,e.local=this.parseIdentifier())}else{if(l!==null&&ei(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=l;else{if(t)throw this.raise(e.start,ie.ImportBindingIsString,a.value);e.imported=a,e.importKind=null}this.eatContextual(87)?e.local=this.parseIdentifier():(u=!0,e.local=ti(e.imported))}const c=Qp(e);return n&&c&&this.raise(e.start,st.ImportTypeShorthandOnlyInPureImport),(n||c)&&this.checkReservedType(e.local.name,e.local.start,!0),u&&!n&&!c&&this.checkReservedWord(e.local.name,e.start,!0,!0),this.checkLVal(e.local,"import specifier",qn),this.finishNode(e,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 72:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(e,t){const n=e.kind;n!=="get"&&n!=="set"&&this.match(43)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){const n=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=n}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var n;let s=null,a;if(this.hasPlugin("jsx")&&(this.match(132)||this.match(43))){if(s=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(e,t),s),!a.error)return a.node;const{context:c}=this.state,m=c[c.length-1];m===Gt.j_oTag?c.length-=2:m===Gt.j_expr&&(c.length-=1)}if((n=a)!=null&&n.error||this.match(43)){var l,u;s=s||this.state.clone();let c;const m=this.tryParse(v=>{var b;c=this.flowParseTypeParameterDeclaration();const x=this.forwardNoArrowParamsConversionAt(c,()=>{const S=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(S,c),S});(b=x.extra)!=null&&b.parenthesized&&v();const E=this.maybeUnwrapTypeCastExpression(x);return E.type!=="ArrowFunctionExpression"&&v(),E.typeParameters=c,this.resetStartLocationFromNode(E,c),x},s);let g=null;if(m.node&&this.maybeUnwrapTypeCastExpression(m.node).type==="ArrowFunctionExpression"){if(!m.error&&!m.aborted)return m.node.async&&this.raise(c.start,st.UnexpectedTypeParameterBeforeAsyncArrowFunction),m.node;g=m.node}if((l=a)!=null&&l.node)return this.state=a.failState,a.node;if(g)return this.state=m.failState,g;throw(u=a)!=null&&u.thrown?a.error:m.thrown?m.error:this.raise(c.start,st.UnexpectedTokenAfterTypeParameter)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse(()=>{const n=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const s=this.startNode();return[s.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=n,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),s});if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){this.state.noArrowParamsConversionAt.indexOf(e.start)!==-1?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,n){if(!(n&&this.state.noArrowParamsConversionAt.indexOf(e.start)!==-1)){for(let s=0;s<e.params.length;s++)this.isThisParam(e.params[s])&&s>0&&this.raise(e.params[s].start,st.ThisParamMustBeFirst);return super.checkParams(...arguments)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&this.state.noArrowAt.indexOf(this.state.start)===-1)}parseSubscripts(e,t,n,s){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.indexOf(t)!==-1){this.next();const a=this.startNodeAt(t,n);a.callee=e,a.arguments=this.parseCallExpressionArguments(11,!1),e=this.finishNode(a,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.match(43)){const a=this.state.clone(),l=this.tryParse(c=>this.parseAsyncArrowWithTypeParameters(t,n)||c(),a);if(!l.error&&!l.aborted)return l.node;const u=this.tryParse(()=>super.parseSubscripts(e,t,n,s),a);if(u.node&&!u.error)return u.node;if(l.node)return this.state=l.failState,l.node;if(u.node)return this.state=u.failState,u.node;throw l.error||u.error}return super.parseSubscripts(e,t,n,s)}parseSubscript(e,t,n,s,a){if(this.match(18)&&this.isLookaheadToken_lt()){if(a.optionalChainMember=!0,s)return a.stop=!0,e;this.next();const l=this.startNodeAt(t,n);return l.callee=e,l.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),l.arguments=this.parseCallExpressionArguments(11,!1),l.optional=!0,this.finishCallExpression(l,!0)}else if(!s&&this.shouldParseTypes()&&this.match(43)){const l=this.startNodeAt(t,n);l.callee=e;const u=this.tryParse(()=>(l.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),l.arguments=this.parseCallExpressionArguments(11,!1),a.optionalChainMember&&(l.optional=!1),this.finishCallExpression(l,a.optionalChainMember)));if(u.node)return u.error&&(this.state=u.failState),u.node}return super.parseSubscript(e,t,n,s,a)}parseNewArguments(e){let t=null;this.shouldParseTypes()&&this.match(43)&&(t=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=t,super.parseNewArguments(e)}parseAsyncArrowWithTypeParameters(e,t){const n=this.startNodeAt(e,t);if(this.parseFunctionParams(n),!!this.parseArrow(n))return this.parseArrowExpression(n,void 0,!0)}readToken_mult_modulo(e){const t=this.input.charCodeAt(this.state.pos+1);if(e===42&&t===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(e===124&&t===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,t){const n=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(this.state.pos,st.UnterminatedFlowComment),n}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){this.state.hasFlowComment&&this.unexpected(null,st.NestedFlowComment),this.hasFlowCommentCompletion(),this.state.pos+=this.skipFlowComment(),this.state.hasFlowComment=!0;return}if(this.state.hasFlowComment){const e=this.input.indexOf("*-/",this.state.pos+=2);if(e===-1)throw this.raise(this.state.pos-2,ie.UnterminatedComment);this.state.pos=e+3;return}return super.skipBlockComment()}skipFlowComment(){const{pos:e}=this.state;let t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;const n=this.input.charCodeAt(t+e),s=this.input.charCodeAt(t+e+1);return n===58&&s===58?t+2:this.input.slice(t+e,t+e+12)==="flow-include"?t+12:n===58&&s!==58?t:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(this.state.pos,ie.UnterminatedComment)}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:n}){this.raise(e,st.EnumBooleanMemberNotInitialized,n,t)}flowEnumErrorInvalidMemberName(e,{enumName:t,memberName:n}){const s=n[0].toUpperCase()+n.slice(1);this.raise(e,st.EnumInvalidMemberName,n,s,t)}flowEnumErrorDuplicateMemberName(e,{enumName:t,memberName:n}){this.raise(e,st.EnumDuplicateMemberName,n,t)}flowEnumErrorInconsistentMemberValues(e,{enumName:t}){this.raise(e,st.EnumInconsistentMemberValues,t)}flowEnumErrorInvalidExplicitType(e,{enumName:t,suppliedType:n}){return this.raise(e,n===null?st.EnumInvalidExplicitTypeUnknownSupplied:st.EnumInvalidExplicitType,t,n)}flowEnumErrorInvalidMemberInitializer(e,{enumName:t,explicitType:n,memberName:s}){let a=null;switch(n){case"boolean":case"number":case"string":a=st.EnumInvalidMemberInitializerPrimaryType;break;case"symbol":a=st.EnumInvalidMemberInitializerSymbolType;break;default:a=st.EnumInvalidMemberInitializerUnknownType}return this.raise(e,a,t,s,n)}flowEnumErrorNumberMemberNotInitialized(e,{enumName:t,memberName:n}){this.raise(e,st.EnumNumberMemberNotInitialized,t,n)}flowEnumErrorStringMemberInconsistentlyInitailized(e,{enumName:t}){this.raise(e,st.EnumStringMemberInconsistentlyInitailized,t)}flowEnumMemberInit(){const e=this.state.start,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 124:{const n=this.parseNumericLiteral(this.state.value);return t()?{type:"number",pos:n.start,value:n}:{type:"invalid",pos:e}}case 123:{const n=this.parseStringLiteral(this.state.value);return t()?{type:"string",pos:n.start,value:n}:{type:"invalid",pos:e}}case 79:case 80:{const n=this.parseBooleanLiteral(this.match(79));return t()?{type:"boolean",pos:n.start,value:n}:{type:"invalid",pos:e}}default:return{type:"invalid",pos:e}}}flowEnumMemberRaw(){const e=this.state.start,t=this.parseIdentifier(!0),n=this.eat(27)?this.flowEnumMemberInit():{type:"none",pos:e};return{id:t,init:n}}flowEnumCheckExplicitTypeMismatch(e,t,n){const{explicitType:s}=t;s!==null&&s!==n&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){const n=new Set,s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}const l=this.startNode(),{id:u,init:c}=this.flowEnumMemberRaw(),m=u.name;if(m==="")continue;/^[a-z]/.test(m)&&this.flowEnumErrorInvalidMemberName(u.start,{enumName:e,memberName:m}),n.has(m)&&this.flowEnumErrorDuplicateMemberName(u.start,{enumName:e,memberName:m}),n.add(m);const g={enumName:e,explicitType:t,memberName:m};switch(l.id=u,c.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(c.pos,g,"boolean"),l.init=c.value,s.booleanMembers.push(this.finishNode(l,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(c.pos,g,"number"),l.init=c.value,s.numberMembers.push(this.finishNode(l,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(c.pos,g,"string"),l.init=c.value,s.stringMembers.push(this.finishNode(l,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.pos,g);case"none":switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.pos,g);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.pos,g);break;default:s.defaultedMembers.push(this.finishNode(l,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:s,hasUnknownMembers:a}}flowEnumStringMembers(e,t,{enumName:n}){if(e.length===0)return t;if(t.length===0)return e;if(t.length>e.length){for(const s of e)this.flowEnumErrorStringMemberInconsistentlyInitailized(s.start,{enumName:n});return t}else{for(const s of t)this.flowEnumErrorStringMemberInconsistentlyInitailized(s.start,{enumName:n});return e}}flowEnumParseExplicitType({enumName:e}){if(this.eatContextual(95)){if(!It(this.state.type))throw this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:e,suppliedType:null});const{value:t}=this.state;return this.next(),t!=="boolean"&&t!=="number"&&t!=="string"&&t!=="symbol"&&this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:e,suppliedType:t}),t}return null}flowEnumBody(e,{enumName:t,nameLoc:n}){const s=this.flowEnumParseExplicitType({enumName:t});this.expect(5);const{members:a,hasUnknownMembers:l}=this.flowEnumMembers({enumName:t,explicitType:s});switch(e.hasUnknownMembers=l,s){case"boolean":return e.explicitType=!0,e.members=a.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=a.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:t}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=a.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{const u=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const c=a.booleanMembers.length,m=a.numberMembers.length,g=a.stringMembers.length,v=a.defaultedMembers.length;if(!c&&!m&&!g&&!v)return u();if(!c&&!m)return e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:t}),this.expect(8),this.finishNode(e,"EnumStringBody");if(!m&&!g&&c>=v){for(const b of a.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(b.start,{enumName:t,memberName:b.id.name});return e.members=a.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}else if(!c&&!g&&m>=v){for(const b of a.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(b.start,{enumName:t,memberName:b.id.name});return e.members=a.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}else return this.flowEnumErrorInconsistentMemberValues(n,{enumName:t}),u()}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),{enumName:t.name,nameLoc:t.start}),this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){const e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){const t=this.input.charCodeAt(e+1);return t!==60&&t!==61}return!1}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}};const JP={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},XP=/^[\da-fA-F]+$/,QP=/^\d+$/,aa=Vo({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:"Expected corresponding JSX closing tag for <%0>.",MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"},Zs.SyntaxError,"jsx");Gt.j_oTag=new xu("<tag");Gt.j_cTag=new xu("</tag");Gt.j_expr=new xu("<tag>...</tag>",!0);function Ti(r){return r?r.type==="JSXOpeningFragment"||r.type==="JSXClosingFragment":!1}function po(r){if(r.type==="JSXIdentifier")return r.name;if(r.type==="JSXNamespacedName")return r.namespace.name+":"+r.name.name;if(r.type==="JSXMemberExpression")return po(r.object)+"."+po(r.property);throw new Error("Node had unexpected type: "+r.type)}var ZP=r=>class extends r{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,aa.UnterminatedJsxContent);const n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:return this.state.pos===this.state.start?n===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(132)):super.getTokenFromCode(n):(e+=this.input.slice(t,this.state.pos),this.finishToken(131,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;case 62:case 125:default:ua(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){const t=this.input.charCodeAt(this.state.pos);let n;return++this.state.pos,t===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,n=e?`
`:`\r
`):n=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(e){let t="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,ie.UnterminatedString);const s=this.input.charCodeAt(this.state.pos);if(s===e)break;s===38?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):ua(s)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}return t+=this.input.slice(n,this.state.pos++),this.finishToken(123,t)}jsxReadEntity(){let e="",t=0,n,s=this.input[this.state.pos];const a=++this.state.pos;for(;this.state.pos<this.length&&t++<10;){if(s=this.input[this.state.pos++],s===";"){e[0]==="#"?e[1]==="x"?(e=e.substr(2),XP.test(e)&&(n=String.fromCodePoint(parseInt(e,16)))):(e=e.substr(1),QP.test(e)&&(n=String.fromCodePoint(parseInt(e,10)))):n=JP[e];break}e+=s}return n||(this.state.pos=a,"&")}jsxReadWord(){let e;const t=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(bo(e)||e===45);return this.finishToken(130,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();return this.match(130)?e.name=this.state.value:fm(this.state.type)?e.name=Fi(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.start,t=this.state.startLoc,n=this.jsxParseIdentifier();if(!this.eat(14))return n;const s=this.startNodeAt(e,t);return s.namespace=n,s.name=this.jsxParseIdentifier(),this.finishNode(s,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.start,t=this.state.startLoc;let n=this.jsxParseNamespacedName();if(n.type==="JSXNamespacedName")return n;for(;this.eat(16);){const s=this.startNodeAt(e,t);s.object=n,s.property=this.jsxParseIdentifier(),n=this.finishNode(s,"JSXMemberExpression")}return n}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.next(),e=this.jsxParseExpressionContainer(e),e.expression.type==="JSXEmptyExpression"&&this.raise(e.start,aa.AttributeIsEmpty),e;case 132:case 123:return this.parseExprAtom();default:throw this.raise(this.state.start,aa.UnsupportedJsxValue)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEnd,this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.start,this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{const t=this.parseExpression();e.expression=t}return this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.eat(5)?(this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(27)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e,t){const n=this.startNodeAt(e,t);return this.match(133)?(this.expect(133),this.finishNode(n,"JSXOpeningFragment")):(n.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(n))}jsxParseOpeningElementAfterName(e){const t=[];for(;!this.match(50)&&!this.match(133);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(50),this.expect(133),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e,t){const n=this.startNodeAt(e,t);return this.match(133)?(this.expect(133),this.finishNode(n,"JSXClosingFragment")):(n.name=this.jsxParseElementName(),this.expect(133),this.finishNode(n,"JSXClosingElement"))}jsxParseElementAt(e,t){const n=this.startNodeAt(e,t),s=[],a=this.jsxParseOpeningElementAt(e,t);let l=null;if(!a.selfClosing){e:for(;;)switch(this.state.type){case 132:if(e=this.state.start,t=this.state.startLoc,this.next(),this.eat(50)){l=this.jsxParseClosingElementAt(e,t);break e}s.push(this.jsxParseElementAt(e,t));break;case 131:s.push(this.parseExprAtom());break;case 5:{const u=this.startNode();this.next(),this.match(21)?s.push(this.jsxParseSpreadChild(u)):s.push(this.jsxParseExpressionContainer(u));break}default:throw this.unexpected()}Ti(a)&&!Ti(l)?this.raise(l.start,aa.MissingClosingTagFragment):!Ti(a)&&Ti(l)?this.raise(l.start,aa.MissingClosingTagElement,po(a.name)):!Ti(a)&&!Ti(l)&&po(l.name)!==po(a.name)&&this.raise(l.start,aa.MissingClosingTagElement,po(a.name))}if(Ti(a)?(n.openingFragment=a,n.closingFragment=l):(n.openingElement=a,n.closingElement=l),n.children=s,this.match(43))throw this.raise(this.state.start,aa.UnwrappedAdjacentJSXElements);return Ti(a)?this.finishNode(n,"JSXFragment"):this.finishNode(n,"JSXElement")}jsxParseElement(){const e=this.state.start,t=this.state.startLoc;return this.next(),this.jsxParseElementAt(e,t)}parseExprAtom(e){return this.match(131)?this.parseLiteral(this.state.value,"JSXText"):this.match(132)?this.jsxParseElement():this.match(43)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(132),this.jsxParseElement()):super.parseExprAtom(e)}getTokenFromCode(e){const t=this.curContext();if(t===Gt.j_expr)return this.jsxReadToken();if(t===Gt.j_oTag||t===Gt.j_cTag){if(Ci(e))return this.jsxReadWord();if(e===62)return++this.state.pos,this.finishToken(133);if((e===34||e===39)&&t===Gt.j_oTag)return this.jsxReadString(e)}return e===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33?(++this.state.pos,this.finishToken(132)):super.getTokenFromCode(e)}updateContext(e){super.updateContext(e);const{context:t,type:n}=this.state;if(n===50&&e===132)t.splice(-2,2,Gt.j_cTag),this.state.canStartJSXElement=!1;else if(n===132)t.push(Gt.j_expr,Gt.j_oTag);else if(n===133){const s=t.pop();s===Gt.j_oTag&&e===50||s===Gt.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===Gt.j_expr):this.state.canStartJSXElement=!0}else this.state.canStartJSXElement=XC(n)}};class eI extends vm{constructor(...e){super(...e),this.types=new Set,this.enums=new Set,this.constEnums=new Set,this.classes=new Set,this.exportOnlyBindings=new Set}}class tI extends bm{createScope(e){return new eI(e)}declareName(e,t,n){const s=this.currentScope();if(t&mm){this.maybeExportDefined(s,e),s.exportOnlyBindings.add(e);return}super.declareName(...arguments),t&No&&(t&ni||(this.checkRedeclarationInScope(s,e,t,n),this.maybeExportDefined(s,e)),s.types.add(e)),t&Dd&&s.enums.add(e),t&Rd&&s.constEnums.add(e),t&Tf&&s.classes.add(e)}isRedeclaredInScope(e,t,n){if(e.enums.has(t)){if(n&Dd){const s=!!(n&Rd),a=e.constEnums.has(t);return s!==a}return!0}return n&Tf&&e.classes.has(t)?e.lexical.has(t)?!!(n&ni):!1:n&No&&e.types.has(t)?!0:super.isRedeclaredInScope(...arguments)}checkLocalExport(e){const t=this.scopeStack[0],{name:n}=e;!t.types.has(n)&&!t.exportOnlyBindings.has(n)&&super.checkLocalExport(e)}}function rI(r){if(r==null)throw new Error(`Unexpected ${r} value.`);return r}function T0(r){if(!r)throw new Error("Assert fail")}const at=Vo({AbstractMethodHasImplementation:"Method '%0' cannot have an implementation because it is marked abstract.",AbstractPropertyHasInitializer:"Property '%0' cannot have an initializer because it is marked abstract.",AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:"'declare' is not allowed in %0ters.",DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:"Accessibility modifier already seen.",DuplicateModifier:"Duplicate modifier: '%0'.",EmptyHeritageClauseType:"'%0' list cannot be empty.",EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",IncompatibleModifiers:"'%0' modifier cannot be used with '%1' modifier.",IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:"Index signatures cannot have an accessibility modifier ('%0').",IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InvalidModifierOnTypeMember:"'%0' modifier cannot appear on a type member.",InvalidModifiersOrder:"'%0' modifier must precede '%1' modifier.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:"Private elements cannot have an accessibility modifier ('%0').",ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got %0."},Zs.SyntaxError,"typescript");function nI(r){switch(r){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function _0(r){return r==="private"||r==="public"||r==="protected"}var sI=r=>class extends r{getScopeHandler(){return tI}tsIsIdentifier(){return It(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(49)||this.match(21)||this.match(128)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(e,t){if(!It(this.state.type))return;const n=this.state.value;if(e.indexOf(n)!==-1){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiers(e,t,n,s,a){const l=(c,m,g,v)=>{m===g&&e[v]&&this.raise(c,at.InvalidModifiersOrder,g,v)},u=(c,m,g,v)=>{(e[g]&&m===v||e[v]&&m===g)&&this.raise(c,at.IncompatibleModifiers,g,v)};for(;;){const c=this.state.start,m=this.tsParseModifier(t.concat(n!=null?n:[]),a);if(!m)break;_0(m)?e.accessibility?this.raise(c,at.DuplicateAccessibilityModifier):(l(c,m,m,"override"),l(c,m,m,"static"),l(c,m,m,"readonly"),e.accessibility=m):(Object.hasOwnProperty.call(e,m)?this.raise(c,at.DuplicateModifier,m):(l(c,m,"static","readonly"),l(c,m,"static","override"),l(c,m,"override","readonly"),l(c,m,"abstract","override"),u(c,m,"declare","override"),u(c,m,"static","abstract")),e[m]=!0),n!=null&&n.includes(m)&&this.raise(c,s,m)}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(44)}throw new Error("Unreachable")}tsParseList(e,t){const n=[];for(;!this.tsIsListTerminator(e);)n.push(t());return n}tsParseDelimitedList(e,t,n){return rI(this.tsParseDelimitedListWorker(e,t,!0,n))}tsParseDelimitedListWorker(e,t,n,s){const a=[];let l=-1;for(;!this.tsIsListTerminator(e);){l=-1;const u=t();if(u==null)return;if(a.push(u),this.eat(12)){l=this.state.lastTokStart;continue}if(this.tsIsListTerminator(e))break;n&&this.expect(12);return}return s&&(s.value=l),a}tsParseBracketedList(e,t,n,s,a){s||(n?this.expect(0):this.expect(43));const l=this.tsParseDelimitedList(e,t,a);return n?this.expect(3):this.expect(44),l}tsParseImportType(){const e=this.startNode();return this.expect(77),this.expect(10),this.match(123)||this.raise(this.state.start,at.UnsupportedImportTypeArgument),e.argument=this.parseExprAtom(),this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName(!0)),this.match(43)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(e){let t=this.parseIdentifier();for(;this.eat(16);){const n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(e),t=this.finishNode(n,"TSQualifiedName")}return t}tsParseTypeReference(){const e=this.startNode();return e.typeName=this.tsParseEntityName(!1),!this.hasPrecedingLineBreak()&&this.match(43)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();return this.expect(81),this.match(77)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(!0),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(){const e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsEatThenParseType(75),e.default=this.tsEatThenParseType(27),this.finishNode(e,"TSTypeParameter")}tsTryParseTypeParameters(){if(this.match(43))return this.tsParseTypeParameters()}tsParseTypeParameters(){const e=this.startNode();this.match(43)||this.match(132)?this.next():this.unexpected();const t={value:-1};return e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0,t),e.params.length===0&&this.raise(e.start,at.EmptyTypeParameters),t.value!==-1&&this.addExtra(e,"trailingComma",t.value),this.finishNode(e,"TSTypeParameterDeclaration")}tsTryNextParseConstantContext(){return this.lookahead().type===69?(this.next(),this.tsParseTypeReference()):null}tsFillSignature(e,t){const n=e===19;t.typeParameters=this.tsTryParseTypeParameters(),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),n?t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){return this.parseBindingList(11,41).map(e=>(e.type!=="Identifier"&&e.type!=="RestElement"&&e.type!=="ObjectPattern"&&e.type!=="ArrayPattern"&&this.raise(e.start,at.UnsupportedSignatureParameterKind,e.type),e))}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),It(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];const n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){this.eat(17)&&(e.optional=!0);const n=e;if(this.match(10)||this.match(43)){t&&this.raise(e.start,at.ReadonlyForMethodSignature);const s=n;if(s.kind&&this.match(43)&&this.raise(this.state.pos,at.AccesorCannotHaveTypeParameters),this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon(),s.kind==="get")s.parameters.length>0&&(this.raise(this.state.pos,ie.BadGetterArity),this.isThisParam(s.parameters[0])&&this.raise(this.state.pos,at.AccesorCannotDeclareThisParameter));else if(s.kind==="set"){if(s.parameters.length!==1)this.raise(this.state.pos,ie.BadSetterArity);else{const a=s.parameters[0];this.isThisParam(a)&&this.raise(this.state.pos,at.AccesorCannotDeclareThisParameter),a.type==="Identifier"&&a.optional&&this.raise(this.state.pos,at.SetAccesorCannotHaveOptionalParameter),a.type==="RestElement"&&this.raise(this.state.pos,at.SetAccesorCannotHaveRestParameter)}s.typeAnnotation&&this.raise(s.typeAnnotation.start,at.SetAccesorCannotHaveReturnType)}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}else{const s=n;t&&(s.readonly=!0);const a=this.tsTryParseTypeAnnotation();return a&&(s.typeAnnotation=a),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(10)||this.match(43))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(71)){const n=this.startNode();return this.next(),this.match(10)||this.match(43)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(n,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers(e,["readonly"],["declare","abstract","private","protected","public","static","override"],at.InvalidModifierOnTypeMember);const t=this.tsTryParseIndexSignature(e);return t||(this.parsePropertyName(e),!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,this.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(47)?this.isContextual(112):(this.isContextual(112)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(52)))}tsParseMappedTypeParameter(){const e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(52),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){const e=this.startNode();return this.expect(5),this.match(47)?(e.readonly=this.state.value,this.next(),this.expectContextual(112)):this.eatContextual(112)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(87)?this.tsParseType():null,this.expect(3),this.match(47)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1,n=null;return e.elementTypes.forEach(s=>{var a;let{type:l}=s;t&&l!=="TSRestType"&&l!=="TSOptionalType"&&!(l==="TSNamedTupleMember"&&s.optional)&&this.raise(s.start,at.OptionalTypeBeforeRequired),t=t||l==="TSNamedTupleMember"&&s.optional||l==="TSOptionalType",l==="TSRestType"&&(s=s.typeAnnotation,l=s.type);const u=l==="TSNamedTupleMember";n=(a=n)!=null?a:u,n!==u&&this.raise(s.start,at.MixedLabeledAndUnlabeledElements)}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const{start:e,startLoc:t}=this.state,n=this.eat(21);let s=this.tsParseType();const a=this.eat(17);if(this.eat(14)){const u=this.startNodeAtNode(s);u.optional=a,s.type==="TSTypeReference"&&!s.typeParameters&&s.typeName.type==="Identifier"?u.label=s.typeName:(this.raise(s.start,at.InvalidTupleMemberLabel),u.label=s),u.elementType=this.tsParseType(),s=this.finishNode(u,"TSNamedTupleMember")}else if(a){const u=this.startNodeAtNode(s);u.typeAnnotation=s,s=this.finishNode(u,"TSOptionalType")}if(n){const u=this.startNodeAt(e,t);u.typeAnnotation=s,s=this.finishNode(u,"TSRestType")}return s}tsParseParenthesizedType(){const e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){const n=this.startNode();return e==="TSConstructorType"&&(n.abstract=!!t,t&&this.next(),this.next()),this.tsFillSignature(19,n),this.finishNode(n,e)}tsParseLiteralTypeNode(){const e=this.startNode();return e.literal=(()=>{switch(this.state.type){case 124:case 125:case 123:case 79:case 80:return this.parseExprAtom();default:throw this.unexpected()}})(),this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){const e=this.startNode();return e.literal=this.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();return this.isContextual(107)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 123:case 124:case 125:case 79:case 80:return this.tsParseLiteralTypeNode();case 47:if(this.state.value==="-"){const e=this.startNode(),t=this.lookahead();if(t.type!==124&&t.type!==125)throw this.unexpected();return e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 72:return this.tsParseThisTypeOrThisTypePredicate();case 81:return this.tsParseTypeQuery();case 77:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 22:return this.tsParseTemplateLiteralType();default:{const{type:e}=this.state;if(It(e)||e===82||e===78){const t=e===82?"TSVoidKeyword":e===78?"TSNullKeyword":nI(this.state.value);if(t!==void 0&&this.lookaheadCharCode()!==46){const n=this.startNode();return this.next(),this.finishNode(n,t)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,"TSArrayType")}else{const t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(t,"TSIndexedAccessType")}return e}tsParseTypeOperator(){const e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),t==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(e.start,at.UnexpectedReadonly)}}tsParseInferType(){const e=this.startNode();this.expectContextual(106);const t=this.startNode();return t.name=this.tsParseTypeParameterName(),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseTypeOperatorOrHigher(){return nP(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(106)?this.tsParseInferType():this.tsParseArrayTypeOrHigher()}tsParseUnionOrIntersectionType(e,t,n){const s=this.startNode(),a=this.eat(n),l=[];do l.push(t());while(this.eat(n));return l.length===1&&!a?l[0]:(s.types=l,this.finishNode(s,e))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),41)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),39)}tsIsStartOfFunctionType(){return this.match(43)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(It(this.state.type)||this.match(72))return this.next(),!0;if(this.match(5)){let e=1;for(this.next();e>0;)this.match(5)?++e:this.match(8)&&--e,this.next();return!0}if(this.match(0)){let e=1;for(this.next();e>0;)this.match(0)?++e:this.match(3)&&--e,this.next();return!0}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(27)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{const t=this.startNode();this.expect(e);const n=this.startNode(),s=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(s&&this.match(72)){let u=this.tsParseThisTypeOrThisTypePredicate();return u.type==="TSThisType"?(n.parameterName=u,n.asserts=!0,n.typeAnnotation=null,u=this.finishNode(n,"TSTypePredicate")):(this.resetStartLocationFromNode(u,n),u.asserts=!0),t.typeAnnotation=u,this.finishNode(t,"TSTypeAnnotation")}const a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return s?(n.parameterName=this.parseIdentifier(),n.asserts=s,n.typeAnnotation=null,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const l=this.tsParseTypeAnnotation(!1);return n.parameterName=a,n.typeAnnotation=l,n.asserts=s,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(14)?this.tsParseTypeOrTypePredicateAnnotation(14):void 0}tsTryParseTypeAnnotation(){return this.match(14)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual(107)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(this.state.type!==100)return!1;const e=this.state.containsEsc;return this.next(),!It(this.state.type)&&!this.match(72)?!1:(e&&this.raise(this.state.lastTokStart,ie.InvalidEscapedReservedWord,"asserts"),!0)}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()}),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){T0(this.state.inType);const e=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(75))return e;const t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsParseNonConditionalType(),this.expect(17),t.trueType=this.tsParseType(),this.expect(14),t.falseType=this.tsParseType(),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(114)&&this.lookahead().type===71}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(71)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(this.state.start,at.ReservedTypeAssertion);const e=this.startNode(),t=this.tsTryNextParseConstantContext();return e.typeAnnotation=t||this.tsNextThenParseType(),this.expect(44),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.start,n=this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this));return n.length||this.raise(t,at.EmptyHeritageClauseType,e),n}tsParseExpressionWithTypeArguments(){const e=this.startNode();return e.expression=this.tsParseEntityName(!1),this.match(43)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}tsParseInterfaceDeclaration(e){It(this.state.type)?(e.id=this.parseIdentifier(),this.checkLVal(e.id,"typescript interface declaration",yP)):(e.id=null,this.raise(this.state.start,at.MissingInterfaceName)),e.typeParameters=this.tsTryParseTypeParameters(),this.eat(75)&&(e.extends=this.tsParseHeritageClause("extends"));const t=this.startNode();return t.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(t,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkLVal(e.id,"typescript type alias",vP),e.typeParameters=this.tsTryParseTypeParameters(),e.typeAnnotation=this.tsInType(()=>{if(this.expect(27),this.isContextual(105)&&this.lookahead().type!==16){const t=this.startNode();return this.next(),this.finishNode(t,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}tsInType(e){const t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsEatThenParseType(e){return this.match(e)?this.tsNextThenParseType():void 0}tsExpectThenParseType(e){return this.tsDoThenParseType(()=>this.expect(e))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(e){return this.tsInType(()=>(e(),this.tsParseType()))}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(123)?this.parseExprAtom():this.parseIdentifier(!0),this.eat(27)&&(e.initializer=this.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t){return t&&(e.const=!0),e.id=this.parseIdentifier(),this.checkLVal(e.id,"typescript enum declaration",t?wP:px),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(ho),this.expect(5),this.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkLVal(e.id,"module or namespace declaration",xP),this.eat(16)){const n=this.startNode();this.tsParseModuleOrNamespaceDeclaration(n,!0),e.body=n}else this.scope.enter(ef),this.prodParam.enter(xo),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(103)?(e.global=!0,e.id=this.parseIdentifier()):this.match(123)?e.id=this.parseExprAtom():this.unexpected(),this.match(5)?(this.scope.enter(ef),this.prodParam.enter(xo),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t){e.isExport=t||!1,e.id=this.parseIdentifier(),this.checkLVal(e.id,"import equals declaration",qn),this.expect(27);const n=this.tsParseModuleReference();return e.importKind==="type"&&n.type!=="TSExternalModuleReference"&&this.raise(n.start,at.ImportAliasHasImportType),e.moduleReference=n,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(110)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const e=this.startNode();if(this.expectContextual(110),this.expect(10),!this.match(123))throw this.unexpected();return e.expression=this.parseExprAtom(),this.expect(11),this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const t=this.state.clone(),n=e();return this.state=t,n}tsTryParseAndCatch(e){const t=this.tryParse(n=>e()||n());if(!(t.aborted||!t.node))return t.error&&(this.state=t.failState),t.node}tsTryParse(e){const t=this.state.clone(),n=e();if(n!==void 0&&n!==!1)return n;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t=this.state.type,n;return this.isContextual(93)&&(t=68,n="let"),this.tsInAmbientContext(()=>{switch(t){case 62:return e.declare=!0,this.parseFunctionStatement(e,!1,!0);case 74:return e.declare=!0,this.parseClass(e,!0,!1);case 69:if(this.match(69)&&this.isLookaheadContextual("enum"))return this.expect(69),this.expectContextual(116),this.tsParseEnumDeclaration(e,!0);case 68:return n=n||this.state.value,this.parseVarStatement(e,n);case 103:return this.tsParseAmbientExternalModuleDeclaration(e);default:if(It(t))return this.tsParseDeclaration(e,this.state.value,!0)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)}tsParseExpressionStatement(e,t){switch(t.name){case"declare":{const n=this.tsTryParseDeclare(e);if(n)return n.declare=!0,n;break}case"global":if(this.match(5)){this.scope.enter(ef),this.prodParam.enter(xo);const n=e;return n.global=!0,n.id=t,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1)}}tsParseDeclaration(e,t,n){switch(t){case"abstract":if(this.tsCheckLineTerminator(n)&&(this.match(74)||It(this.state.type)))return this.tsParseAbstractDeclaration(e);break;case"enum":if(n||It(this.state.type))return n&&this.next(),this.tsParseEnumDeclaration(e,!1);break;case"interface":if(this.tsCheckLineTerminator(n)&&It(this.state.type))return this.tsParseInterfaceDeclaration(e);break;case"module":if(this.tsCheckLineTerminator(n)){if(this.match(123))return this.tsParseAmbientExternalModuleDeclaration(e);if(It(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(n)&&It(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(n)&&It(this.state.type))return this.tsParseTypeAliasDeclaration(e);break}}tsCheckLineTerminator(e){return e?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e,t){if(!this.match(43))return;const n=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const s=this.tsTryParseAndCatch(()=>{const a=this.startNodeAt(e,t);return a.typeParameters=this.tsParseTypeParameters(),super.parseFunctionParams(a),a.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),a});if(this.state.maybeInArrowParameters=n,!!s)return this.parseArrowExpression(s,null,!0)}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(43),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),e.params.length===0&&this.raise(e.start,at.EmptyTypeArguments),this.expect(44),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return sP(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){const n=this.state.start,s=this.state.startLoc;let a,l=!1,u=!1;if(e!==void 0){const g={};this.tsParseModifiers(g,["public","private","protected","override","readonly"]),a=g.accessibility,u=g.override,l=g.readonly,e===!1&&(a||l||u)&&this.raise(n,at.UnexpectedParameterModifier)}const c=this.parseMaybeDefault();this.parseAssignableListItemTypes(c);const m=this.parseMaybeDefault(c.start,c.loc.start,c);if(a||l||u){const g=this.startNodeAt(n,s);return t.length&&(g.decorators=t),a&&(g.accessibility=a),l&&(g.readonly=l),u&&(g.override=u),m.type!=="Identifier"&&m.type!=="AssignmentPattern"&&this.raise(g.start,at.UnsupportedParameterPropertyKind),g.parameter=m,this.finishNode(g,"TSParameterProperty")}return t.length&&(c.decorators=t),m}parseFunctionBodyAndFinish(e,t,n=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const s=t==="FunctionDeclaration"?"TSDeclareFunction":t==="ClassMethod"||t==="ClassPrivateMethod"?"TSDeclareMethod":void 0;if(s&&!this.match(5)&&this.isLineTerminator()){this.finishNode(e,s);return}if(s==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(e.start,at.DeclareFunctionHasImplementation),e.declare)){super.parseFunctionBodyAndFinish(e,s,n);return}super.parseFunctionBodyAndFinish(e,t,n)}registerFunctionStatementId(e){!e.body&&e.id?this.checkLVal(e.id,"function name",w0):super.registerFunctionStatementId(...arguments)}tsCheckForInvalidTypeCasts(e){e.forEach(t=>{(t==null?void 0:t.type)==="TSTypeCastExpression"&&this.raise(t.typeAnnotation.start,at.UnexpectedTypeAnnotation)})}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(...e){const t=super.parseArrayLike(...e);return t.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(t.elements),t}parseSubscript(e,t,n,s,a){if(!this.hasPrecedingLineBreak()&&this.match(33)){this.state.canStartJSXElement=!1,this.next();const u=this.startNodeAt(t,n);return u.expression=e,this.finishNode(u,"TSNonNullExpression")}let l=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(s)return a.stop=!0,e;a.optionalChainMember=l=!0,this.next()}if(this.match(43)){let u;const c=this.tsTryParseAndCatch(()=>{if(!s&&this.atPossibleAsyncArrow(e)){const v=this.tsTryParseGenericAsyncArrowFunction(t,n);if(v)return v}const m=this.startNodeAt(t,n);m.callee=e;const g=this.tsParseTypeArguments();if(g){if(l&&!this.match(10)&&(u=this.state.pos,this.unexpected()),!s&&this.eat(10))return m.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(m.arguments),m.typeParameters=g,a.optionalChainMember&&(m.optional=l),this.finishCallExpression(m,a.optionalChainMember);if(this.match(22)){const v=this.parseTaggedTemplateExpression(e,t,n,a);return v.typeParameters=g,v}}this.unexpected()});if(u&&this.unexpected(u,10),c)return c}return super.parseSubscript(e,t,n,s,a)}parseNewArguments(e){if(this.match(43)){const t=this.tsTryParseAndCatch(()=>{const n=this.tsParseTypeArguments();return this.match(10)||this.unexpected(),n});t&&(e.typeParameters=t)}super.parseNewArguments(e)}parseExprOp(e,t,n,s){if(Qc(52)>s&&!this.hasPrecedingLineBreak()&&this.isContextual(87)){const a=this.startNodeAt(t,n);a.expression=e;const l=this.tsTryNextParseConstantContext();return l?a.typeAnnotation=l:a.typeAnnotation=this.tsNextThenParseType(),this.finishNode(a,"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,t,n,s)}return super.parseExprOp(e,t,n,s)}checkReservedWord(e,t,n,s){}checkDuplicateExports(){}parseImport(e){if(e.importKind="value",It(this.state.type)||this.match(49)||this.match(5)){let n=this.lookahead();if(this.isContextual(120)&&n.type!==12&&n.type!==91&&n.type!==27&&(e.importKind="type",this.next(),n=this.lookahead()),It(this.state.type)&&n.type===27)return this.tsParseImportEqualsDeclaration(e)}const t=super.parseImport(e);return t.importKind==="type"&&t.specifiers.length>1&&t.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(t.start,at.TypeImportCannotSpecifyDefaultAndNamed),t}parseExport(e){if(this.match(77))return this.next(),this.isContextual(120)&&this.lookaheadCharCode()!==61?(e.importKind="type",this.next()):e.importKind="value",this.tsParseImportEqualsDeclaration(e,!0);if(this.eat(27)){const t=e;return t.expression=this.parseExpression(),this.semicolon(),this.finishNode(t,"TSExportAssignment")}else if(this.eatContextual(87)){const t=e;return this.expectContextual(118),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}else return this.isContextual(120)&&this.lookahead().type===5?(this.next(),e.exportKind="type"):e.exportKind="value",super.parseExport(e)}isAbstractClass(){return this.isContextual(114)&&this.lookahead().type===74}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0),e}if(this.match(119)){const e=this.startNode();this.next();const t=this.tsParseInterfaceDeclaration(e);if(t)return t}return super.parseExportDefaultExpression()}parseStatementContent(e,t){if(this.state.type===69&&this.lookahead().type===116){const s=this.startNode();return this.next(),this.expectContextual(116),this.tsParseEnumDeclaration(s,!0)}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some(n=>_0(n)?e.accessibility===n:!!e[n])}tsIsStartOfStaticBlocks(){return this.isContextual(98)&&this.lookaheadCharCode()===123}parseClassMember(e,t,n){const s=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers(t,s,void 0,void 0,!0);const a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,s)&&this.raise(this.state.pos,at.StaticBlockCannotHaveModifier),this.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,n,!!t.static)};t.declare?this.tsInAmbientContext(a):a()}parseClassMemberWithIsStatic(e,t,n,s){const a=this.tsTryParseIndexSignature(t);if(a){e.body.push(a),t.abstract&&this.raise(t.start,at.IndexSignatureHasAbstract),t.accessibility&&this.raise(t.start,at.IndexSignatureHasAccessibility,t.accessibility),t.declare&&this.raise(t.start,at.IndexSignatureHasDeclare),t.override&&this.raise(t.start,at.IndexSignatureHasOverride);return}!this.state.inAbstractClass&&t.abstract&&this.raise(t.start,at.NonAbstractClassHasAbstractMethod),t.override&&(n.hadSuperClass||this.raise(t.start,at.OverrideNotInSubClass)),super.parseClassMemberWithIsStatic(e,t,n,s)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(e.start,at.ClassMethodHasReadonly),e.declare&&this.match(10)&&this.raise(e.start,at.ClassMethodHasDeclare)}parseExpressionStatement(e,t){return(t.type==="Identifier"?this.tsParseExpressionStatement(e,t):void 0)||super.parseExpressionStatement(e,t)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,t,n,s){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,t,n,s);const a=this.tryParse(()=>super.parseConditional(e,t,n));return a.node?(a.error&&(this.state=a.failState),a.node):(a.error&&super.setOptionalParametersError(s,a.error),e)}parseParenItem(e,t,n){if(e=super.parseParenItem(e,t,n),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){const s=this.startNodeAt(t,n);return s.expression=e,s.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(s,"TSTypeCastExpression")}return e}parseExportDeclaration(e){const t=this.state.start,n=this.state.startLoc,s=this.eatContextual(115);if(s&&(this.isContextual(115)||!this.shouldParseExportDeclaration()))throw this.raise(this.state.start,at.ExpectedAmbientAfterExportDeclare);let a;return It(this.state.type)&&(a=this.tsTryParseExportDeclaration()),a||(a=super.parseExportDeclaration(e)),a&&(a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||s)&&(e.exportKind="type"),a&&s&&(this.resetStartLocation(a,t,n),a.declare=!0),a}parseClassId(e,t,n){if((!t||n)&&this.isContextual(104))return;super.parseClassId(e,t,n,e.declare?w0:fx);const s=this.tsTryParseTypeParameters();s&&(e.typeParameters=s)}parseClassPropertyAnnotation(e){!e.optional&&this.eat(33)&&(e.definite=!0);const t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&this.match(27)&&this.raise(this.state.start,at.DeclareClassFieldHasInitializer),e.abstract&&this.match(27)){const{key:t}=e;this.raise(this.state.start,at.AbstractPropertyHasInitializer,t.type==="Identifier"&&!e.computed?t.name:`[${this.input.slice(t.start,t.end)}]`)}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(e.start,at.PrivateElementHasAbstract),e.accessibility&&this.raise(e.start,at.PrivateElementHasAccessibility,e.accessibility),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}pushClassMethod(e,t,n,s,a,l){const u=this.tsTryParseTypeParameters();u&&a&&this.raise(u.start,at.ConstructorHasTypeParameters),t.declare&&(t.kind==="get"||t.kind==="set")&&this.raise(t.start,at.DeclareAccessor,t.kind),u&&(t.typeParameters=u),super.pushClassMethod(e,t,n,s,a,l)}pushClassPrivateMethod(e,t,n,s){const a=this.tsTryParseTypeParameters();a&&(t.typeParameters=a),super.pushClassPrivateMethod(e,t,n,s)}declareClassPrivateMethodInScope(e,t){e.type!=="TSDeclareMethod"&&(e.type==="MethodDefinition"&&!e.value.body||super.declareClassPrivateMethodInScope(e,t))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&this.match(43)&&(e.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual(104)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,...t){const n=this.tsTryParseTypeParameters();n&&(e.typeParameters=n),super.parseObjPropValue(e,...t)}parseFunctionParams(e,t){const n=this.tsTryParseTypeParameters();n&&(e.typeParameters=n),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),e.id.type==="Identifier"&&this.eat(33)&&(e.definite=!0);const n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(...e){var t,n,s,a,l,u,c;let m,g,v;if(this.hasPlugin("jsx")&&(this.match(132)||this.match(43))){if(m=this.state.clone(),g=this.tryParse(()=>super.parseMaybeAssign(...e),m),!g.error)return g.node;const{context:E}=this.state;E[E.length-1]===Gt.j_oTag?E.length-=2:E[E.length-1]===Gt.j_expr&&(E.length-=1)}if(!((t=g)!=null&&t.error)&&!this.match(43))return super.parseMaybeAssign(...e);let b;m=m||this.state.clone();const x=this.tryParse(E=>{var S,C;b=this.tsParseTypeParameters();const _=super.parseMaybeAssign(...e);return(_.type!=="ArrowFunctionExpression"||(S=_.extra)!=null&&S.parenthesized)&&E(),((C=b)==null?void 0:C.params.length)!==0&&this.resetStartLocationFromNode(_,b),_.typeParameters=b,_},m);if(!x.error&&!x.aborted)return b&&this.reportReservedArrowTypeParam(b),x.node;if(!g&&(T0(!this.hasPlugin("jsx")),v=this.tryParse(()=>super.parseMaybeAssign(...e),m),!v.error))return v.node;if((n=g)!=null&&n.node)return this.state=g.failState,g.node;if(x.node)return this.state=x.failState,b&&this.reportReservedArrowTypeParam(b),x.node;if((s=v)!=null&&s.node)return this.state=v.failState,v.node;throw(a=g)!=null&&a.thrown?g.error:x.thrown?x.error:(l=v)!=null&&l.thrown?v.error:((u=g)==null?void 0:u.error)||x.error||((c=v)==null?void 0:c.error)}reportReservedArrowTypeParam(e){var t;e.params.length===1&&!((t=e.extra)!=null&&t.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(e.start,at.ReservedArrowTypeParam)}parseMaybeUnary(e){return!this.hasPlugin("jsx")&&this.match(43)?this.tsParseTypeAssertion():super.parseMaybeUnary(e)}parseArrow(e){if(this.match(14)){const t=this.tryParse(n=>{const s=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&n(),s});if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e){this.eat(17)&&(e.type!=="Identifier"&&!this.state.isAmbientContext&&!this.state.inType&&this.raise(e.start,at.PatternIsOptional),e.optional=!0);const t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return super.isAssignable(e,t)}}toAssignable(e,t=!1){switch(e.type){case"TSTypeCastExpression":return super.toAssignable(this.typeCastToParameter(e),t);case"TSParameterProperty":return super.toAssignable(e,t);case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(e,t);case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return e.expression=this.toAssignable(e.expression,t),e;default:return super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return e.expression=this.toAssignable(e.expression,t),e;default:return super.toAssignable(e,t)}}checkLVal(e,t,...n){var s;switch(e.type){case"TSTypeCastExpression":return;case"TSParameterProperty":this.checkLVal(e.parameter,"parameter property",...n);return;case"TSAsExpression":case"TSTypeAssertion":if(!n[0]&&t!=="parenthesized expression"&&!((s=e.extra)!=null&&s.parenthesized)){this.raise(e.start,ie.InvalidLhs,t);break}this.checkLVal(e.expression,"parenthesized expression",...n);return;case"TSNonNullExpression":this.checkLVal(e.expression,t,...n);return;default:super.checkLVal(e,t,...n);return}}parseBindingAtom(){switch(this.state.type){case 72:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseMaybeDecoratorArguments(e){if(this.match(43)){const t=this.tsParseTypeArguments();if(this.match(10)){const n=super.parseMaybeDecoratorArguments(e);return n.typeParameters=t,n}this.unexpected(this.state.start,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?this.next():super.checkCommaAfterRest(e)}isClassMethod(){return this.match(43)||super.isClassMethod()}isClassProperty(){return this.match(33)||this.match(14)||super.isClassProperty()}parseMaybeDefault(...e){const t=super.parseMaybeDefault(...e);return t.type==="AssignmentPattern"&&t.typeAnnotation&&t.right.start<t.typeAnnotation.start&&this.raise(t.typeAnnotation.start,at.TypeAnnotationAfterAssign),t}getTokenFromCode(e){if(this.state.inType){if(e===62)return this.finishOp(44,1);if(e===60)return this.finishOp(43,1)}return super.getTokenFromCode(e)}reScan_lt_gt(){const{type:e}=this.state;e===43?(this.state.pos-=1,this.readToken_lt()):e===44&&(this.state.pos-=1,this.readToken_gt())}toAssignableList(e){for(let t=0;t<e.length;t++){const n=e[t];if(!!n)switch(n.type){case"TSTypeCastExpression":e[t]=this.typeCastToParameter(n);break;case"TSAsExpression":case"TSTypeAssertion":this.state.maybeInArrowParameters?this.raise(n.start,at.UnexpectedTypeCastInParameter):e[t]=this.typeCastToParameter(n);break}}return super.toAssignableList(...arguments)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.end,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every(t=>this.isAssignable(t,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(43)){const t=this.tsTryParseAndCatch(()=>this.tsParseTypeArguments());t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e),s=this.getObjectOrClassMethodParams(e)[0];return s&&this.isThisParam(s)?t+1:t}parseCatchClauseParam(){const e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){const t=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return e()}finally{this.state.isAmbientContext=t}}parseClass(e,...t){const n=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,...t)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(e){if(this.match(74))return e.abstract=!0,this.parseClass(e,!0,!1);if(this.isContextual(119)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(e.start,at.NonClassMethodPropertyHasAbstractModifer),this.next(),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,74)}parseMethod(...e){const t=super.parseMethod(...e);if(t.abstract&&(this.hasPlugin("estree")?!!t.value.body:!!t.body)){const{key:s}=t;this.raise(t.start,at.AbstractMethodHasImplementation,s.type==="Identifier"&&!t.computed?s.name:`[${this.input.slice(s.start,s.end)}]`)}return t}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,n,s){return!t&&s?(this.parseTypeOnlyImportExportSpecifier(e,!1,n),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,n,s))}parseImportSpecifier(e,t,n,s){return!t&&s?(this.parseTypeOnlyImportExportSpecifier(e,!0,n),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,n,s))}parseTypeOnlyImportExportSpecifier(e,t,n){const s=t?"imported":"local",a=t?"local":"exported";let l=e[s],u,c=!1,m=!0;const g=l.start;if(this.isContextual(87)){const b=this.parseIdentifier();if(this.isContextual(87)){const x=this.parseIdentifier();ei(this.state.type)?(c=!0,l=b,u=this.parseIdentifier(),m=!1):(u=x,m=!1)}else ei(this.state.type)?(m=!1,u=this.parseIdentifier()):(c=!0,l=b)}else ei(this.state.type)&&(c=!0,l=this.parseIdentifier());c&&n&&this.raise(g,t?at.TypeModifierIsUsedInTypeImports:at.TypeModifierIsUsedInTypeExports),e[s]=l,e[a]=u;const v=t?"importKind":"exportKind";e[v]=c?"type":"value",m&&this.eatContextual(87)&&(e[a]=t?this.parseIdentifier():this.parseModuleExportName()),e[a]||(e[a]=ti(e[s])),t&&this.checkLVal(e[a],"import specifier",qn)}};const iI=Vo({ClassNameIsRequired:"A class name is required."},Zs.SyntaxError);var aI=r=>class extends r{parsePlaceholder(e){if(this.match(134)){const t=this.startNode();return this.next(),this.assertNoSpace("Unexpected space in placeholder."),t.name=super.parseIdentifier(!0),this.assertNoSpace("Unexpected space in placeholder."),this.expect(134),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){const n=!!(e.expectedNode&&e.type==="Placeholder");return e.expectedNode=t,n?e:this.finishNode(e,"Placeholder")}getTokenFromCode(e){return e===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(134,2):super.getTokenFromCode(...arguments)}parseExprAtom(){return this.parsePlaceholder("Expression")||super.parseExprAtom(...arguments)}parseIdentifier(){return this.parsePlaceholder("Identifier")||super.parseIdentifier(...arguments)}checkReservedWord(e){e!==void 0&&super.checkReservedWord(...arguments)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom(...arguments)}checkLVal(e){e.type!=="Placeholder"&&super.checkLVal(...arguments)}toAssignable(e){return e&&e.type==="Placeholder"&&e.expectedNode==="Expression"?(e.expectedNode="Pattern",e):super.toAssignable(...arguments)}isLet(e){return super.isLet(e)?!0:!this.isContextual(93)||e?!1:this.lookahead().type===134}verifyBreakContinue(e){e.label&&e.label.type==="Placeholder"||super.verifyBreakContinue(...arguments)}parseExpressionStatement(e,t){if(t.type!=="Placeholder"||t.extra&&t.extra.parenthesized)return super.parseExpressionStatement(...arguments);if(this.match(14)){const n=e;return n.label=this.finishPlaceholder(t,"Identifier"),this.next(),n.body=this.parseStatement("label"),this.finishNode(n,"LabeledStatement")}return this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement")}parseBlock(){return this.parsePlaceholder("BlockStatement")||super.parseBlock(...arguments)}parseFunctionId(){return this.parsePlaceholder("Identifier")||super.parseFunctionId(...arguments)}parseClass(e,t,n){const s=t?"ClassDeclaration":"ClassExpression";this.next(),this.takeDecorators(e);const a=this.state.strict,l=this.parsePlaceholder("Identifier");if(l)if(this.match(75)||this.match(134)||this.match(5))e.id=l;else{if(n||!t)return e.id=null,e.body=this.finishPlaceholder(l,"ClassBody"),this.finishNode(e,s);this.unexpected(null,iI.ClassNameIsRequired)}else this.parseClassId(e,t,n);return this.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||this.parseClassBody(!!e.superClass,a),this.finishNode(e,s)}parseExport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseExport(...arguments);if(!this.isContextual(91)&&!this.match(12))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(t,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const n=this.startNode();return n.exported=t,e.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],super.parseExport(e)}isExportDefaultSpecifier(){if(this.match(59)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(Fi(134),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e){return e.specifiers&&e.specifiers.length>0?!0:super.maybeParseExportDefaultSpecifier(...arguments)}checkExport(e){const{specifiers:t}=e;t!=null&&t.length&&(e.specifiers=t.filter(n=>n.exported.type==="Placeholder")),super.checkExport(e),e.specifiers=t}parseImport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(...arguments);if(e.specifiers=[],!this.isContextual(91)&&!this.match(12))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const n=this.startNodeAtNode(t);return n.local=t,this.finishNode(n,"ImportDefaultSpecifier"),e.specifiers.push(n),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(91),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource(...arguments)}},oI=r=>class extends r{parseV8Intrinsic(){if(this.match(48)){const e=this.state.start,t=this.startNode();if(this.next(),It(this.state.type)){const n=this.parseIdentifierName(this.state.start),s=this.createIdentifier(t,n);if(s.type="V8IntrinsicIdentifier",this.match(10))return s}this.unexpected(e)}}parseExprAtom(){return this.parseV8Intrinsic()||super.parseExprAtom(...arguments)}};function Zr(r,e){return r.some(t=>Array.isArray(t)?t[0]===e:t===e)}function no(r,e,t){const n=r.find(s=>Array.isArray(s)?s[0]===e:s===e);return n&&Array.isArray(n)?n[1][t]:null}const E0=["minimal","fsharp","hack","smart"],A0=["^","%","#"],C0=["hash","bar"];function lI(r){if(Zr(r,"decorators")){if(Zr(r,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const e=no(r,"decorators","decoratorsBeforeExport");if(e==null)throw new Error("The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'.");if(typeof e!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean.")}if(Zr(r,"flow")&&Zr(r,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(Zr(r,"placeholders")&&Zr(r,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(Zr(r,"pipelineOperator")){const e=no(r,"pipelineOperator","proposal");if(!E0.includes(e)){const n=E0.map(s=>`"${s}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${n}.`)}const t=Zr(r,"recordAndTuple")&&no(r,"recordAndTuple","syntaxType")==="hash";if(e==="hack"){if(Zr(r,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(Zr(r,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const n=no(r,"pipelineOperator","topicToken");if(!A0.includes(n)){const s=A0.map(a=>`"${a}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${s}.`)}if(n==="#"&&t)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if(e==="smart"&&t)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(Zr(r,"moduleAttributes")){if(Zr(r,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if(no(r,"moduleAttributes","version")!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(Zr(r,"recordAndTuple")&&!C0.includes(no(r,"recordAndTuple","syntaxType")))throw new Error("'recordAndTuple' requires 'syntaxType' option whose value should be one of: "+C0.map(e=>`'${e}'`).join(", "));if(Zr(r,"asyncDoExpressions")&&!Zr(r,"doExpressions")){const e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}}const wx={estree:GC,jsx:ZP,flow:YP,typescript:sI,v8intrinsic:oI,placeholders:aI},uI=Object.keys(wx),P0={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0};function cI(r){const e={};for(const t of Object.keys(P0))e[t]=r&&r[t]!=null?r[t]:P0[t];return e}const $d=r=>r.type==="ParenthesizedExpression"?$d(r.expression):r;class fI extends WP{toAssignable(e,t=!1){var n,s;let a;switch((e.type==="ParenthesizedExpression"||(n=e.extra)!=null&&n.parenthesized)&&(a=$d(e),t?a.type==="Identifier"?this.expressionScope.recordParenthesizedIdentifierError(e.start,ie.InvalidParenthesizedAssignment):a.type!=="MemberExpression"&&this.raise(e.start,ie.InvalidParenthesizedAssignment):this.raise(e.start,ie.InvalidParenthesizedAssignment)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(let u=0,c=e.properties.length,m=c-1;u<c;u++){var l;const g=e.properties[u],v=u===m;this.toAssignableObjectExpressionProp(g,v,t),v&&g.type==="RestElement"&&(l=e.extra)!=null&&l.trailingComma&&this.raiseRestNotLast(e.extra.trailingComma)}break;case"ObjectProperty":this.toAssignable(e.value,t);break;case"SpreadElement":{this.checkToRestConversion(e),e.type="RestElement";const u=e.argument;this.toAssignable(u,t);break}case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,(s=e.extra)==null?void 0:s.trailingComma,t);break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,ie.MissingEqInAssignment),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(a,t);break}return e}toAssignableObjectExpressionProp(e,t,n){if(e.type==="ObjectMethod"){const s=e.kind==="get"||e.kind==="set"?ie.PatternHasAccessor:ie.PatternHasMethod;this.raise(e.key.start,s)}else e.type==="SpreadElement"&&!t?this.raiseRestNotLast(e.start):this.toAssignable(e,n)}toAssignableList(e,t,n){let s=e.length;if(s){const a=e[s-1];if((a==null?void 0:a.type)==="RestElement")--s;else if((a==null?void 0:a.type)==="SpreadElement"){a.type="RestElement";let l=a.argument;this.toAssignable(l,n),l=$d(l),l.type!=="Identifier"&&l.type!=="MemberExpression"&&l.type!=="ArrayPattern"&&l.type!=="ObjectPattern"&&this.unexpected(l.start),t&&this.raiseTrailingCommaAfterRest(t),--s}}for(let a=0;a<s;a++){const l=e[a];l&&(this.toAssignable(l,n),l.type==="RestElement"&&this.raiseRestNotLast(l.start))}return e}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{const n=e.properties.length-1;return e.properties.every((s,a)=>s.type!=="ObjectMethod"&&(a===n||s.type!=="SpreadElement")&&this.isAssignable(s))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(n=>n===null||this.isAssignable(n));case"AssignmentExpression":return e.operator==="=";case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(const n of e)(n==null?void 0:n.type)==="ArrayExpression"&&this.toReferencedListDeep(n.elements)}parseSpread(e,t){const n=this.startNode();return this.next(),n.argument=this.parseMaybeAssignAllowIn(e,void 0,t),this.finishNode(n,"SpreadElement")}parseRestBinding(){const e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,!0),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(e,t,n,s){const a=[];let l=!0;for(;!this.eat(e);)if(l?l=!1:this.expect(12),n&&this.match(12))a.push(null);else{if(this.eat(e))break;if(this.match(21)){a.push(this.parseAssignableListItemTypes(this.parseRestBinding())),this.checkCommaAfterRest(t),this.expect(e);break}else{const u=[];for(this.match(24)&&this.hasPlugin("decorators")&&this.raise(this.state.start,ie.UnsupportedParameterDecorator);this.match(24);)u.push(this.parseDecorator());a.push(this.parseAssignableListItem(s,u))}}return a}parseBindingRestProperty(e){return this.next(),e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){const e=this.startNode(),{type:t,start:n,startLoc:s}=this.state;return t===21?this.parseBindingRestProperty(e):(this.parsePropertyName(e),e.method=!1,this.parseObjPropValue(e,n,s,!1,!1,!0,!1),e)}parseAssignableListItem(e,t){const n=this.parseMaybeDefault();this.parseAssignableListItemTypes(n);const s=this.parseMaybeDefault(n.start,n.loc.start,n);return t.length&&(n.decorators=t),s}parseAssignableListItemTypes(e){return e}parseMaybeDefault(e,t,n){var s,a,l;if(t=(s=t)!=null?s:this.state.startLoc,e=(a=e)!=null?a:this.state.start,n=(l=n)!=null?l:this.parseBindingAtom(),!this.eat(27))return n;const u=this.startNodeAt(e,t);return u.left=n,u.right=this.parseMaybeAssignAllowIn(),this.finishNode(u,"AssignmentPattern")}checkLVal(e,t,n=Bl,s,a,l=!1){switch(e.type){case"Identifier":{const{name:u}=e;this.state.strict&&(l?ix(u,this.inModule):sx(u))&&this.raise(e.start,n===Bl?ie.StrictEvalArguments:ie.StrictEvalArgumentsBinding,u),s&&(s.has(u)?this.raise(e.start,ie.ParamDupe):s.add(u)),a&&u==="let"&&this.raise(e.start,ie.LetInLexicalBinding),n&Bl||this.scope.declareName(u,n,e.start);break}case"MemberExpression":n!==Bl&&this.raise(e.start,ie.InvalidPropertyBindingPattern);break;case"ObjectPattern":for(let u of e.properties){if(this.isObjectProperty(u))u=u.value;else if(this.isObjectMethod(u))continue;this.checkLVal(u,"object destructuring pattern",n,s,a)}break;case"ArrayPattern":for(const u of e.elements)u&&this.checkLVal(u,"array destructuring pattern",n,s,a);break;case"AssignmentPattern":this.checkLVal(e.left,"assignment pattern",n,s);break;case"RestElement":this.checkLVal(e.argument,"rest element",n,s);break;case"ParenthesizedExpression":this.checkLVal(e.expression,"parenthesized expression",n,s);break;default:this.raise(e.start,n===Bl?ie.InvalidLhs:ie.InvalidLhsBinding,t)}}checkToRestConversion(e){e.argument.type!=="Identifier"&&e.argument.type!=="MemberExpression"&&this.raise(e.argument.start,ie.InvalidRestAssignmentPattern)}checkCommaAfterRest(e){this.match(12)&&(this.lookaheadCharCode()===e?this.raiseTrailingCommaAfterRest(this.state.start):this.raiseRestNotLast(this.state.start))}raiseRestNotLast(e){throw this.raise(e,ie.ElementAfterRest)}raiseTrailingCommaAfterRest(e){this.raise(e,ie.RestTrailingComma)}}const I0=new Map([["ArrowFunctionExpression","arrow function"],["AssignmentExpression","assignment"],["ConditionalExpression","conditional"],["YieldExpression","yield"]]);class hI extends fI{checkProto(e,t,n,s){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return;const a=e.key;if((a.type==="Identifier"?a.name:a.value)==="__proto__"){if(t){this.raise(a.start,ie.RecordNoProto);return}n.used&&(s?s.doubleProto===-1&&(s.doubleProto=a.start):this.raise(a.start,ie.DuplicateProto)),n.used=!0}}shouldExitDescending(e,t){return e.type==="ArrowFunctionExpression"&&e.start===t}getExpression(){this.enterInitialScopes(),this.nextToken();const e=this.parseExpression();return this.match(129)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.state.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){const t=this.state.start,n=this.state.startLoc,s=this.parseMaybeAssign(e);if(this.match(12)){const a=this.startNodeAt(t,n);for(a.expressions=[s];this.eat(12);)a.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(a.expressions),this.finishNode(a,"SequenceExpression")}return s}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd(()=>this.parseMaybeAssign(e,t))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e,t){var n;e.optionalParameters=(n=t==null?void 0:t.pos)!=null?n:this.state.start}parseMaybeAssign(e,t){const n=this.state.start,s=this.state.startLoc;if(this.isContextual(99)&&this.prodParam.hasYield){let c=this.parseYield();return t&&(c=t.call(this,c,n,s)),c}let a;e?a=!1:(e=new nf,a=!0);const{type:l}=this.state;(l===10||It(l))&&(this.state.potentialArrowAt=this.state.start);let u=this.parseMaybeConditional(e);if(t&&(u=t.call(this,u,n,s)),QC(this.state.type)){const c=this.startNodeAt(n,s),m=this.state.value;return c.operator=m,this.match(27)?(c.left=this.toAssignable(u,!0),e.doubleProto>=n&&(e.doubleProto=-1),e.shorthandAssign>=n&&(e.shorthandAssign=-1)):c.left=u,this.checkLVal(u,"assignment expression"),this.next(),c.right=this.parseMaybeAssign(),this.finishNode(c,"AssignmentExpression")}else a&&this.checkExpressionErrors(e,!0);return u}parseMaybeConditional(e){const t=this.state.start,n=this.state.startLoc,s=this.state.potentialArrowAt,a=this.parseExprOps(e);return this.shouldExitDescending(a,s)?a:this.parseConditional(a,t,n,e)}parseConditional(e,t,n,s){if(this.eat(17)){const a=this.startNodeAt(t,n);return a.test=e,a.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),a.alternate=this.parseMaybeAssign(),this.finishNode(a,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(128)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const t=this.state.start,n=this.state.startLoc,s=this.state.potentialArrowAt,a=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(a,s)?a:this.parseExprOp(a,t,n,-1)}parseExprOp(e,t,n,s){if(this.isPrivateName(e)){const l=this.getPrivateNameSV(e),{start:u}=e;(s>=Qc(52)||!this.prodParam.hasIn||!this.match(52))&&this.raise(u,ie.PrivateInExpectedIn,l),this.classScope.usePrivateName(l,u)}const a=this.state.type;if(eP(a)&&(this.prodParam.hasIn||!this.match(52))){let l=Qc(a);if(l>s){if(a===35){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}const u=this.startNodeAt(t,n);u.left=e,u.operator=this.state.value;const c=a===37||a===38,m=a===36;if(m&&(l=Qc(38)),this.next(),a===35&&this.getPluginOption("pipelineOperator","proposal")==="minimal"&&this.state.type===90&&this.prodParam.hasAwait)throw this.raise(this.state.start,ie.UnexpectedAwaitAfterPipelineBody);u.right=this.parseExprOpRightExpr(a,l),this.finishNode(u,c||m?"LogicalExpression":"BinaryExpression");const g=this.state.type;if(m&&(g===37||g===38)||c&&g===36)throw this.raise(this.state.start,ie.MixingCoalesceWithLogical);return this.parseExprOp(u,t,n,s)}}return e}parseExprOpRightExpr(e,t){const n=this.state.start,s=this.state.startLoc;switch(e){case 35:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(99))throw this.raise(this.state.start,ie.PipeBodyIsTighter,this.state.value);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),n,s)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){const n=this.state.start,s=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,s,iP(e)?t-1:t)}parseHackPipeBody(){var e;const{start:t}=this.state,n=this.parseMaybeAssign();return I0.has(n.type)&&!((e=n.extra)!=null&&e.parenthesized)&&this.raise(t,ie.PipeUnparenthesizedBody,I0.get(n.type)),this.topicReferenceWasUsedInCurrentContext()||this.raise(t,ie.PipeTopicUnused),n}checkExponentialAfterUnary(e){this.match(51)&&this.raise(e.argument.start,ie.UnexpectedTokenUnaryExponentiation)}parseMaybeUnary(e,t){const n=this.state.start,s=this.state.startLoc,a=this.isContextual(90);if(a&&this.isAwaitAllowed()){this.next();const m=this.parseAwait(n,s);return t||this.checkExponentialAfterUnary(m),m}const l=this.match(32),u=this.startNode();if(rP(this.state.type)){u.operator=this.state.value,u.prefix=!0,this.match(66)&&this.expectPlugin("throwExpressions");const m=this.match(83);if(this.next(),u.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&m){const g=u.argument;g.type==="Identifier"?this.raise(u.start,ie.StrictDelete):this.hasPropertyAsPrivateName(g)&&this.raise(u.start,ie.DeletePrivateField)}if(!l)return t||this.checkExponentialAfterUnary(u),this.finishNode(u,"UnaryExpression")}const c=this.parseUpdate(u,l,e);if(a){const{type:m}=this.state;if((this.hasPlugin("v8intrinsic")?v0(m):v0(m)&&!this.match(48))&&!this.isAmbiguousAwait())return this.raiseOverwrite(n,ie.AwaitNotInAsyncContext),this.parseAwait(n,s)}return c}parseUpdate(e,t,n){if(t)return this.checkLVal(e.argument,"prefix operation"),this.finishNode(e,"UpdateExpression");const s=this.state.start,a=this.state.startLoc;let l=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return l;for(;tP(this.state.type)&&!this.canInsertSemicolon();){const u=this.startNodeAt(s,a);u.operator=this.state.value,u.prefix=!1,u.argument=l,this.checkLVal(l,"postfix operation"),this.next(),l=this.finishNode(u,"UpdateExpression")}return l}parseExprSubscripts(e){const t=this.state.start,n=this.state.startLoc,s=this.state.potentialArrowAt,a=this.parseExprAtom(e);return this.shouldExitDescending(a,s)?a:this.parseSubscripts(a,t,n)}parseSubscripts(e,t,n,s){const a={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,t,n,s,a),a.maybeAsyncArrow=!1;while(!a.stop);return e}parseSubscript(e,t,n,s,a){if(!s&&this.eat(15))return this.parseBind(e,t,n,s,a);if(this.match(22))return this.parseTaggedTemplateExpression(e,t,n,a);let l=!1;if(this.match(18)){if(s&&this.lookaheadCharCode()===40)return a.stop=!0,e;a.optionalChainMember=l=!0,this.next()}if(!s&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,n,a,l);{const u=this.eat(0);return u||l||this.eat(16)?this.parseMember(e,t,n,a,u,l):(a.stop=!0,e)}}parseMember(e,t,n,s,a,l){const u=this.startNodeAt(t,n);u.object=e,u.computed=a;const c=!a&&this.match(128)&&this.state.value,m=a?this.parseExpression():c?this.parsePrivateName():this.parseIdentifier(!0);return c!==!1&&(u.object.type==="Super"&&this.raise(t,ie.SuperPrivateField),this.classScope.usePrivateName(c,m.start)),u.property=m,a&&this.expect(3),s.optionalChainMember?(u.optional=l,this.finishNode(u,"OptionalMemberExpression")):this.finishNode(u,"MemberExpression")}parseBind(e,t,n,s,a){const l=this.startNodeAt(t,n);return l.object=e,l.callee=this.parseNoCallExpr(),a.stop=!0,this.parseSubscripts(this.finishNode(l,"BindExpression"),t,n,s)}parseCoverCallAndAsyncArrowHead(e,t,n,s,a){const l=this.state.maybeInArrowParameters;let u=null;this.state.maybeInArrowParameters=!0,this.next();let c=this.startNodeAt(t,n);return c.callee=e,s.maybeAsyncArrow&&(this.expressionScope.enter(BP()),u=new nf),s.optionalChainMember&&(c.optional=a),a?c.arguments=this.parseCallExpressionArguments(11):c.arguments=this.parseCallExpressionArguments(11,e.type==="Import",e.type!=="Super",c,u),this.finishCallExpression(c,s.optionalChainMember),s.maybeAsyncArrow&&this.shouldParseAsyncArrow()&&!a?(s.stop=!0,this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,n),c)):(s.maybeAsyncArrow&&(this.checkExpressionErrors(u,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=l,c}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,n,s){const a=this.startNodeAt(t,n);return a.tag=e,a.quasi=this.parseTemplate(!0),s.optionalChainMember&&this.raise(t,ie.OptionalChainingNoTemplate),this.finishNode(a,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&e.start===this.state.potentialArrowAt}finishCallExpression(e,t){if(e.callee.type==="Import")if(e.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),e.arguments.length===0||e.arguments.length>2)this.raise(e.start,ie.ImportCallArity,this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?"one or two arguments":"one argument");else for(const n of e.arguments)n.type==="SpreadElement"&&this.raise(n.start,ie.ImportCallSpreadArgument);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,n,s,a){const l=[];let u=!0;const c=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(u)u=!1;else if(this.expect(12),this.match(e)){t&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(this.state.lastTokStart,ie.ImportCallArgumentTrailingComma),s&&this.addExtra(s,"trailingComma",this.state.lastTokStart),this.next();break}l.push(this.parseExprListItem(!1,a,n))}return this.state.inFSharpPipelineDirectBody=c,l}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var n;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,(n=t.extra)==null?void 0:n.trailingComma),t.innerComments&&wu(e,t.innerComments),t.callee.trailingComments&&wu(e,t.callee.trailingComments),e}parseNoCallExpr(){const e=this.state.start,t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,t,!0)}parseExprAtom(e){let t;const{type:n}=this.state;switch(n){case 73:return this.parseSuper();case 77:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(t):(this.match(10)||this.raise(this.state.lastTokStart,ie.UnsupportedImport),this.finishNode(t,"Import"));case 72:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 84:return this.parseDo(this.startNode(),!1);case 50:case 29:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 124:return this.parseNumericLiteral(this.state.value);case 125:return this.parseBigIntLiteral(this.state.value);case 126:return this.parseDecimalLiteral(this.state.value);case 123:return this.parseStringLiteral(this.state.value);case 78:return this.parseNullLiteral();case 79:return this.parseBooleanLiteral(!0);case 80:return this.parseBooleanLiteral(!1);case 10:{const s=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(s)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);case 62:return this.parseFunctionOrFunctionSent();case 24:this.parseDecorators();case 74:return t=this.startNode(),this.takeDecorators(t),this.parseClass(t,!1);case 71:return this.parseNewOrNewTarget();case 22:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;const s=t.callee=this.parseNoCallExpr();if(s.type==="MemberExpression")return this.finishNode(t,"BindExpression");throw this.raise(s.start,ie.UnsupportedBind)}case 128:return this.raise(this.state.start,ie.PrivateInExpectedIn,this.state.value),this.parsePrivateName();case 31:return this.parseTopicReferenceThenEqualsSign(48,"%");case 30:return this.parseTopicReferenceThenEqualsSign(40,"^");case 40:case 48:case 25:{const s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.parseTopicReference(s);throw this.unexpected()}case 43:{const s=this.input.codePointAt(this.nextTokenStart());if(Ci(s)||s===62){this.expectOnePlugin(["jsx","flow","typescript"]);break}else throw this.unexpected()}default:if(It(n)){if(this.isContextual(117)&&this.lookaheadCharCode()===123&&!this.hasFollowingLineBreak())return this.parseModuleExpression();const s=this.state.potentialArrowAt===this.state.start,a=this.state.containsEsc,l=this.parseIdentifier();if(!a&&l.name==="async"&&!this.canInsertSemicolon()){const{type:u}=this.state;if(u===62)return this.resetPreviousNodeTrailingComments(l),this.next(),this.parseFunction(this.startNodeAtNode(l),void 0,!0);if(It(u))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(l)):l;if(u===84)return this.resetPreviousNodeTrailingComments(l),this.parseDo(this.startNodeAtNode(l),!0)}return s&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(l),[l],!1)):l}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){const n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc.column--,this.parseTopicReference(n);throw this.unexpected()}parseTopicReference(e){const t=this.startNode(),n=this.state.start,s=this.state.type;return this.next(),this.finishTopicReference(t,n,e,s)}finishTopicReference(e,t,n,s){if(this.testTopicReferenceConfiguration(n,t,s)){let a;return n==="smart"?a="PipelinePrimaryTopicReference":a="TopicReference",this.topicReferenceIsAllowedInCurrentContext()||(n==="smart"?this.raise(t,ie.PrimaryTopicNotAllowed):this.raise(t,ie.PipeTopicUnbound)),this.registerTopicReference(),this.finishNode(e,a)}else throw this.raise(t,ie.PipeTopicUnconfiguredToken,Fi(s))}testTopicReferenceConfiguration(e,t,n){switch(e){case"hack":{const s=this.getPluginOption("pipelineOperator","topicToken");return Fi(n)===s}case"smart":return n===25;default:throw this.raise(t,ie.PipeTopicRequiresHackPipes)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(rf(!0,this.prodParam.hasYield));const t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(this.state.pos,ie.LineTerminatorBeforeArrow),this.expect(19),this.parseArrowExpression(e,t,!0),e}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();const n=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(gh),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=n,this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(e.start,ie.SuperNotAllowed):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(e.start,ie.UnexpectedSuper),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(e.start,ie.UnsupportedSuper),this.finishNode(e,"Super")}parsePrivateName(){const e=this.startNode(),t=this.startNodeAt(this.state.start+1,new bu(this.state.curLine,this.state.start+1-this.state.lineStart)),n=this.state.value;return this.next(),e.id=this.createIdentifier(t,n),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){const e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(96)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,n){e.meta=t;const s=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||s)&&this.raise(e.property.start,ie.UnsupportedMetaProperty,t.name,n),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){const t=this.createIdentifier(this.startNodeAtNode(e),"import");return this.next(),this.isContextual(94)&&(this.inModule||this.raise(t.start,Xw.ImportMetaOutsideModule),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}parseLiteralAtNode(e,t,n){return this.addExtra(n,"rawValue",e),this.addExtra(n,"raw",this.input.slice(n.start,this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}parseLiteral(e,t){const n=this.startNode();return this.parseLiteralAtNode(e,t,n)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){const t=this.parseLiteral(e.value,"RegExpLiteral");return t.pattern=e.pattern,t.flags=e.flags,t}parseBooleanLiteral(e){const t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){const e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){const t=this.state.start,n=this.state.startLoc;let s;this.next(),this.expressionScope.enter(FP());const a=this.state.maybeInArrowParameters,l=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const u=this.state.start,c=this.state.startLoc,m=[],g=new nf;let v=!0,b,x;for(;!this.match(11);){if(v)v=!1;else if(this.expect(12,g.optionalParameters===-1?null:g.optionalParameters),this.match(11)){x=this.state.start;break}if(this.match(21)){const A=this.state.start,I=this.state.startLoc;b=this.state.start,m.push(this.parseParenItem(this.parseRestBinding(),A,I)),this.checkCommaAfterRest(41);break}else m.push(this.parseMaybeAssignAllowIn(g,this.parseParenItem))}const E=this.state.lastTokEnd,S=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=a,this.state.inFSharpPipelineDirectBody=l;let C=this.startNodeAt(t,n);if(e&&this.shouldParseArrow(m)&&(C=this.parseArrow(C)))return this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(C,m,!1),C;if(this.expressionScope.exit(),m.length||this.unexpected(this.state.lastTokStart),x&&this.unexpected(x),b&&this.unexpected(b),this.checkExpressionErrors(g,!0),this.toReferencedListDeep(m,!0),m.length>1?(s=this.startNodeAt(u,c),s.expressions=m,this.finishNode(s,"SequenceExpression"),this.resetEndLocation(s,E,S)):s=m[0],!this.options.createParenthesizedExpressions)return this.addExtra(s,"parenthesized",!0),this.addExtra(s,"parenStart",t),this.takeSurroundingComments(s,t,this.state.lastTokEnd),s;const _=this.startNodeAt(t,n);return _.expression=s,this.finishNode(_,"ParenthesizedExpression"),_}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t,n){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const n=this.parseMetaProperty(e,t,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&this.raise(n.start,ie.UnexpectedNewTarget),n}return this.parseNew(e)}parseNew(e){return e.callee=this.parseNoCallExpr(),e.callee.type==="Import"?this.raise(e.callee.start,ie.ImportCallNotNewExpression):this.isOptionalChain(e.callee)?this.raise(this.state.lastTokEnd,ie.OptionalChainingNoNew):this.eat(18)&&this.raise(this.state.start,ie.OptionalChainingNoNew),this.parseNewArguments(e),this.finishNode(e,"NewExpression")}parseNewArguments(e){if(this.eat(10)){const t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[]}parseTemplateElement(e){const t=this.startNode();return this.state.value===null&&(e||this.raise(this.state.start+1,ie.InvalidEscapeSequenceTemplate)),t.value={raw:this.input.slice(this.state.start,this.state.end).replace(/\r\n?/g,`
`),cooked:this.state.value},this.next(),t.tail=this.match(22),this.finishNode(t,"TemplateElement")}parseTemplate(e){const t=this.startNode();this.next(),t.expressions=[];let n=this.parseTemplateElement(e);for(t.quasis=[n];!n.tail;)this.expect(23),t.expressions.push(this.parseTemplateSubstitution()),this.expect(8),t.quasis.push(n=this.parseTemplateElement(e));return this.next(),this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,n,s){n&&this.expectPlugin("recordAndTuple");const a=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const l=Object.create(null);let u=!0;const c=this.startNode();for(c.properties=[],this.next();!this.match(e);){if(u)u=!1;else if(this.expect(12),this.match(e)){this.addExtra(c,"trailingComma",this.state.lastTokStart);break}let g;t?g=this.parseBindingProperty():(g=this.parsePropertyDefinition(s),this.checkProto(g,n,l,s)),n&&!this.isObjectProperty(g)&&g.type!=="SpreadElement"&&this.raise(g.start,ie.InvalidRecordProperty),g.shorthand&&this.addExtra(g,"shorthand",!0),c.properties.push(g)}this.next(),this.state.inFSharpPipelineDirectBody=a;let m="ObjectExpression";return t?m="ObjectPattern":n&&(m="RecordExpression"),this.finishNode(c,m)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(49))}parsePropertyDefinition(e){let t=[];if(this.match(24))for(this.hasPlugin("decorators")&&this.raise(this.state.start,ie.UnsupportedPropertyDecorator);this.match(24);)t.push(this.parseDecorator());const n=this.startNode();let s=!1,a=!1,l,u;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(n.decorators=t,t=[]),n.method=!1,e&&(l=this.state.start,u=this.state.startLoc);let c=this.eat(49);this.parsePropertyNamePrefixOperator(n);const m=this.state.containsEsc,g=this.parsePropertyName(n);if(!c&&!m&&this.maybeAsyncOrAccessorProp(n)){const v=g.name;v==="async"&&!this.hasPrecedingLineBreak()&&(s=!0,this.resetPreviousNodeTrailingComments(g),c=this.eat(49),this.parsePropertyName(n)),(v==="get"||v==="set")&&(a=!0,this.resetPreviousNodeTrailingComments(g),n.kind=v,this.match(49)&&(c=!0,this.raise(this.state.pos,ie.AccessorIsGenerator,v),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,l,u,c,s,!1,a,e),n}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const n=this.getGetterSetterExpectedParamCount(e),s=this.getObjectOrClassMethodParams(e),a=e.start;s.length!==n&&(e.kind==="get"?this.raise(a,ie.BadGetterArity):this.raise(a,ie.BadSetterArity)),e.kind==="set"&&((t=s[s.length-1])==null?void 0:t.type)==="RestElement"&&this.raise(a,ie.BadSetterRestParameter)}parseObjectMethod(e,t,n,s,a){if(a)return this.parseMethod(e,t,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(e),e;if(n||t||this.match(10))return s&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,n,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,n,s,a){if(e.shorthand=!1,this.eat(14))return e.value=s?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(a),this.finishNode(e,"ObjectProperty");if(!e.computed&&e.key.type==="Identifier")return this.checkReservedWord(e.key.name,e.key.start,!0,!1),s?e.value=this.parseMaybeDefault(t,n,ti(e.key)):this.match(27)&&a?(a.shorthandAssign===-1&&(a.shorthandAssign=this.state.start),e.value=this.parseMaybeDefault(t,n,ti(e.key))):e.value=ti(e.key),e.shorthand=!0,this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,t,n,s,a,l,u,c){const m=this.parseObjectMethod(e,s,a,l,u)||this.parseObjectProperty(e,t,n,l,c);return m||this.unexpected(),m}parsePropertyName(e){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:t,value:n}=this.state;let s;if(ei(t))s=this.parseIdentifier(!0);else switch(t){case 124:s=this.parseNumericLiteral(n);break;case 123:s=this.parseStringLiteral(n);break;case 125:s=this.parseBigIntLiteral(n);break;case 126:s=this.parseDecimalLiteral(n);break;case 128:{const a=this.state.start+1;this.raise(a,ie.UnexpectedPrivateField),s=this.parsePrivateName();break}default:throw this.unexpected()}e.key=s,t!==128&&(e.computed=!1)}return e.key}initFunction(e,t){e.id=null,e.generator=!1,e.async=!!t}parseMethod(e,t,n,s,a,l,u=!1){this.initFunction(e,n),e.generator=!!t;const c=s;return this.scope.enter(Gs|kf|(u?ha:0)|(a?ox:0)),this.prodParam.enter(rf(n,e.generator)),this.parseFunctionParams(e,c),this.parseFunctionBodyAndFinish(e,l,!0),this.prodParam.exit(),this.scope.exit(),e}parseArrayLike(e,t,n,s){n&&this.expectPlugin("recordAndTuple");const a=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const l=this.startNode();return this.next(),l.elements=this.parseExprList(e,!n,s,l),this.state.inFSharpPipelineDirectBody=a,this.finishNode(l,n?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,n,s){this.scope.enter(Gs|dm);let a=rf(n,!1);!this.match(0)&&this.prodParam.hasIn&&(a|=oo),this.prodParam.enter(a),this.initFunction(e,n);const l=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=l,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,n){e.params=this.toAssignableList(t,n,!1)}parseFunctionBodyAndFinish(e,t,n=!1){this.parseFunctionBody(e,!1,n),this.finishNode(e,t)}parseFunctionBody(e,t,n=!1){const s=t&&!this.match(5);if(this.expressionScope.enter(yx()),s)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const a=this.state.strict,l=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|bx),e.body=this.parseBlock(!0,!1,u=>{const c=!this.isSimpleParamList(e.params);if(u&&c){const g=(e.kind==="method"||e.kind==="constructor")&&!!e.key?e.key.end:e.start;this.raise(g,ie.IllegalLanguageModeDirective)}const m=!a&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!n&&!c,t,m),this.state.strict&&e.id&&this.checkLVal(e.id,"function name",bP,void 0,void 0,m)}),this.prodParam.exit(),this.state.labels=l}this.expressionScope.exit()}isSimpleParamList(e){for(let t=0,n=e.length;t<n;t++)if(e[t].type!=="Identifier")return!1;return!0}checkParams(e,t,n,s=!0){const a=new Set;for(const l of e.params)this.checkLVal(l,"function parameter list",_f,t?null:a,void 0,s)}parseExprList(e,t,n,s){const a=[];let l=!0;for(;!this.eat(e);){if(l)l=!1;else if(this.expect(12),this.match(e)){s&&this.addExtra(s,"trailingComma",this.state.lastTokStart),this.next();break}a.push(this.parseExprListItem(t,n))}return a}parseExprListItem(e,t,n){let s;if(this.match(12))e||this.raise(this.state.pos,ie.UnexpectedToken,","),s=null;else if(this.match(21)){const a=this.state.start,l=this.state.startLoc;s=this.parseParenItem(this.parseSpread(t),a,l)}else if(this.match(17)){this.expectPlugin("partialApplication"),n||this.raise(this.state.start,ie.UnexpectedArgumentPlaceholder);const a=this.startNode();this.next(),s=this.finishNode(a,"ArgumentPlaceholder")}else s=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return s}parseIdentifier(e){const t=this.startNode(),n=this.parseIdentifierName(t.start,e);return this.createIdentifier(t,n)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}parseIdentifierName(e,t){let n;const{start:s,type:a}=this.state;if(ei(a))n=this.state.value;else throw this.unexpected();const l=JC(a);return t?l&&this.replaceToken(122):this.checkReservedWord(n,s,l,!1),this.next(),n}checkReservedWord(e,t,n,s){if(e.length>10||!gP(e))return;if(e==="yield"){if(this.prodParam.hasYield){this.raise(t,ie.YieldBindingIdentifier);return}}else if(e==="await")if(this.prodParam.hasAwait){this.raise(t,ie.AwaitBindingIdentifier);return}else if(this.scope.inStaticBlock){this.raise(t,ie.AwaitBindingIdentifierInStaticBlock);return}else this.expressionScope.recordAsyncArrowParametersError(t,ie.AwaitBindingIdentifier);else if(e==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(t,ie.ArgumentsInClass);return}if(n&&pP(e)){this.raise(t,ie.UnexpectedKeyword,e);return}(this.state.strict?s?ix:nx:rx)(e,this.inModule)&&this.raise(t,ie.UnexpectedReservedWord,e)}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(e,t){const n=this.startNodeAt(e,t);return this.expressionScope.recordParameterInitializerError(n.start,ie.AwaitExpressionFormalParameter),this.eat(49)&&this.raise(n.start,ie.ObsoleteAwaitStar),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(n.argument=this.parseMaybeUnary(null,!0)),this.finishNode(n,"AwaitExpression")}isAmbiguousAwait(){return this.hasPrecedingLineBreak()||this.match(47)||this.match(10)||this.match(0)||this.match(22)||this.match(127)||this.match(50)||this.hasPlugin("v8intrinsic")&&this.match(48)}parseYield(){const e=this.startNode();this.expressionScope.recordParameterInitializerError(e.start,ie.YieldInParameter),this.next();let t=!1,n=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(49),this.state.type){case 13:case 129:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:n=this.parseMaybeAssign()}return e.delegate=t,e.argument=n,this.finishNode(e,"YieldExpression")}checkPipelineAtInfixOperator(e,t){this.getPluginOption("pipelineOperator","proposal")==="smart"&&e.type==="SequenceExpression"&&this.raise(t,ie.PipelineHeadSequenceExpression)}checkHackPipeBodyEarlyErrors(e){this.topicReferenceWasUsedInCurrentContext()||this.raise(e,ie.PipeTopicUnused)}parseSmartPipelineBodyInStyle(e,t,n){const s=this.startNodeAt(t,n);return this.isSimpleReference(e)?(s.callee=e,this.finishNode(s,"PipelineBareFunction")):(this.checkSmartPipeTopicBodyEarlyErrors(t),s.expression=e,this.finishNode(s,"PipelineTopicExpression"))}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(this.state.start,ie.PipelineBodyNoArrow);this.topicReferenceWasUsedInCurrentContext()||this.raise(e,ie.PipelineTopicUnused)}withTopicBindingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(this.getPluginOption("pipelineOperator","proposal")==="smart"){const n=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=n}}else return e()}withSoloAwaitPermittingContext(e){const t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){const t=this.prodParam.currentFlags();if(oo&~t){this.prodParam.enter(t|oo);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const t=this.prodParam.currentFlags();if(oo&t){this.prodParam.enter(t&~oo);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.start,n=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const a=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,n,e);return this.state.inFSharpPipelineDirectBody=s,a}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next(),this.eat(5);const t=this.initializeScopes(!0);this.enterInitialScopes();const n=this.startNode();try{e.body=this.parseProgram(n,8,"module")}finally{t()}return this.eat(8),this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}}const Zp={kind:"loop"},pI={kind:"switch"},dI=0,ed=1,N0=2,O0=4,mI=/[\uD800-\uDFFF]/u,td=/in(?:stanceof)?/y;function gI(r){for(let e=0;e<r.length;e++){const t=r[e],{type:n}=t;if(n===128){const{loc:s,start:a,value:l,end:u}=t,c=a+1,m=new bu(s.start.line,s.start.column+1);r.splice(e,1,new Bd({type:Zc(25),value:"#",start:a,end:c,startLoc:s.start,endLoc:m}),new Bd({type:Zc(122),value:l,start:c,end:u,startLoc:m,endLoc:s.end})),e++;continue}typeof n=="number"&&(t.type=Zc(n))}return r}class yI extends hI{parseTopLevel(e,t){return e.program=this.parseProgram(t),e.comments=this.state.comments,this.options.tokens&&(e.tokens=gI(this.tokens)),this.finishNode(e,"File")}parseProgram(e,t=129,n=this.options.sourceType){if(e.sourceType=n,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(const[s]of Array.from(this.scope.undefinedExports)){const a=this.scope.undefinedExports.get(s);this.raise(a,ie.ModuleExportUndefined,s)}return this.finishNode(e,"Program")}stmtToDirective(e){const t=e;t.type="Directive",t.value=t.expression,delete t.expression;const n=t.value,s=n.value,a=this.input.slice(n.start,n.end),l=n.value=a.slice(1,-1);return this.addExtra(n,"raw",a),this.addExtra(n,"rawValue",l),this.addExtra(n,"expressionValue",s),n.type="DirectiveLiteral",t}parseInterpreterDirective(){if(!this.match(26))return null;const e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(e){return this.isContextual(93)?this.isLetKeyword(e):!1}isLetKeyword(e){const t=this.nextTokenStart(),n=this.codePointAtPos(t);if(n===92||n===91)return!0;if(e)return!1;if(n===123)return!0;if(Ci(n)){if(td.lastIndex=t,td.test(this.input)){const s=this.codePointAtPos(td.lastIndex);if(!bo(s)&&s!==92)return!1}return!0}return!1}parseStatement(e,t){return this.match(24)&&this.parseDecorators(!0),this.parseStatementContent(e,t)}parseStatementContent(e,t){let n=this.state.type;const s=this.startNode();let a;switch(this.isLet(e)&&(n=68,a="let"),n){case 54:return this.parseBreakContinueStatement(s,!0);case 57:return this.parseBreakContinueStatement(s,!1);case 58:return this.parseDebuggerStatement(s);case 84:return this.parseDoStatement(s);case 85:return this.parseForStatement(s);case 62:if(this.lookaheadCharCode()===46)break;return e&&(this.state.strict?this.raise(this.state.start,ie.StrictFunction):e!=="if"&&e!=="label"&&this.raise(this.state.start,ie.SloppyFunction)),this.parseFunctionStatement(s,!1,!e);case 74:return e&&this.unexpected(),this.parseClass(s,!0);case 63:return this.parseIfStatement(s);case 64:return this.parseReturnStatement(s);case 65:return this.parseSwitchStatement(s);case 66:return this.parseThrowStatement(s);case 67:return this.parseTryStatement(s);case 69:case 68:return a=a||this.state.value,e&&a!=="var"&&this.raise(this.state.start,ie.UnexpectedLexicalDeclaration),this.parseVarStatement(s,a);case 86:return this.parseWhileStatement(s);case 70:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 77:{const c=this.lookaheadCharCode();if(c===40||c===46)break}case 76:{!this.options.allowImportExportEverywhere&&!t&&this.raise(this.state.start,ie.UnexpectedImportExport),this.next();let c;return n===77?(c=this.parseImport(s),c.type==="ImportDeclaration"&&(!c.importKind||c.importKind==="value")&&(this.sawUnambiguousESM=!0)):(c=this.parseExport(s),(c.type==="ExportNamedDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportAllDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(s),c}default:if(this.isAsyncFunction())return e&&this.raise(this.state.start,ie.AsyncFunctionInSingleStatementContext),this.next(),this.parseFunctionStatement(s,!0,!e)}const l=this.state.value,u=this.parseExpression();return It(n)&&u.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(s,l,u,e):this.parseExpressionStatement(s,u)}assertModuleNodeAllowed(e){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(e.start,Xw.ImportOutsideModule)}takeDecorators(e){const t=this.state.decoratorStack[this.state.decoratorStack.length-1];t.length&&(e.decorators=t,this.resetStartLocationFromNode(e,t[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[])}canHaveLeadingDecorator(){return this.match(74)}parseDecorators(e){const t=this.state.decoratorStack[this.state.decoratorStack.length-1];for(;this.match(24);){const n=this.parseDecorator();t.push(n)}if(this.match(76))e||this.unexpected(),this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,ie.DecoratorExportClass);else if(!this.canHaveLeadingDecorator())throw this.raise(this.state.start,ie.UnexpectedLeadingDecorator)}parseDecorator(){this.expectOnePlugin(["decorators-legacy","decorators"]);const e=this.startNode();if(this.next(),this.hasPlugin("decorators")){this.state.decoratorStack.push([]);const t=this.state.start,n=this.state.startLoc;let s;if(this.eat(10))s=this.parseExpression(),this.expect(11);else for(s=this.parseIdentifier(!1);this.eat(16);){const a=this.startNodeAt(t,n);a.object=s,a.property=this.parseIdentifier(!0),a.computed=!1,s=this.finishNode(a,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(s),this.state.decoratorStack.pop()}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(10)){const t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let n;for(n=0;n<this.state.labels.length;++n){const s=this.state.labels[n];if((e.label==null||s.name===e.label.name)&&(s.kind!=null&&(t||s.kind==="loop")||e.label&&t))break}n===this.state.labels.length&&this.raise(e.start,ie.IllegalBreakContinue,t?"break":"continue")}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const e=this.parseExpression();return this.expect(11),e}parseDoStatement(e){return this.next(),this.state.labels.push(Zp),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("do")),this.state.labels.pop(),this.expect(86),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(Zp);let t=-1;if(this.isAwaitAllowed()&&this.eatContextual(90)&&(t=this.state.lastTokStart),this.scope.enter(ho),this.expect(10),this.match(13))return t>-1&&this.unexpected(t),this.parseFor(e,null);const n=this.isContextual(93),s=n&&this.isLetKeyword();if(this.match(68)||this.match(69)||s){const m=this.startNode(),g=s?"let":this.state.value;return this.next(),this.parseVar(m,!0,g),this.finishNode(m,"VariableDeclaration"),(this.match(52)||this.isContextual(95))&&m.declarations.length===1?this.parseForIn(e,m,t):(t>-1&&this.unexpected(t),this.parseFor(e,m))}const a=this.isContextual(89),l=new nf,u=this.parseExpression(!0,l),c=this.isContextual(95);if(c&&(n?this.raise(u.start,ie.ForOfLet):t===-1&&a&&u.type==="Identifier"&&this.raise(u.start,ie.ForOfAsync)),c||this.match(52)){this.toAssignable(u,!0);const m=c?"for-of statement":"for-in statement";return this.checkLVal(u,m),this.parseForIn(e,u,t)}else this.checkExpressionErrors(l,!0);return t>-1&&this.unexpected(t),this.parseFor(e,u)}parseFunctionStatement(e,t,n){return this.next(),this.parseFunction(e,ed|(n?0:N0),t)}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(60)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(this.state.start,ie.IllegalReturn),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();const t=e.cases=[];this.expect(5),this.state.labels.push(pI),this.scope.enter(ho);let n;for(let s;!this.match(8);)if(this.match(55)||this.match(59)){const a=this.match(55);n&&this.finishNode(n,"SwitchCase"),t.push(n=this.startNode()),n.consequent=[],this.next(),a?n.test=this.parseExpression():(s&&this.raise(this.state.lastTokStart,ie.MultipleDefaultsInSwitch),s=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(this.state.lastTokEnd,ie.NewlineAfterThrow),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom(),t=e.type==="Identifier";return this.scope.enter(t?ax:0),this.checkLVal(e,"catch clause",qn),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(56)){const t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(ho)),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(61)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,ie.NoCatchOrFinally),this.finishNode(e,"TryStatement")}parseVarStatement(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Zp),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("while")),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(this.state.start,ie.StrictWith),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("with")),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,n,s){for(const l of this.state.labels)l.name===t&&this.raise(n.start,ie.LabelRedeclaration,t);const a=ZC(this.state.type)?"loop":this.match(65)?"switch":null;for(let l=this.state.labels.length-1;l>=0;l--){const u=this.state.labels[l];if(u.statementStart===e.start)u.statementStart=this.state.start,u.kind=a;else break}return this.state.labels.push({name:t,kind:a,statementStart:this.state.start}),e.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.state.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,n){const s=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(ho),this.parseBlockBody(s,e,!1,8,n),t&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,t,n,s,a){const l=e.body=[],u=e.directives=[];this.parseBlockOrModuleBlockBody(l,t?u:void 0,n,s,a)}parseBlockOrModuleBlockBody(e,t,n,s,a){const l=this.state.strict;let u=!1,c=!1;for(;!this.match(s);){const m=this.parseStatement(null,n);if(t&&!c){if(this.isValidDirective(m)){const g=this.stmtToDirective(m);t.push(g),!u&&g.value.value==="use strict"&&(u=!0,this.setStrict(!0));continue}c=!0,this.state.strictErrors.clear()}e.push(m)}a&&a.call(this,u),l||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("for")),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,n){const s=this.match(52);return this.next(),s?n>-1&&this.unexpected(n):e.await=n>-1,t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!s||this.state.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")?this.raise(t.start,ie.ForInOfLoopInitializer,s?"for-in":"for-of"):t.type==="AssignmentPattern"&&this.raise(t.start,ie.InvalidLhs,"for-loop"),e.left=t,e.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("for")),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")}parseVar(e,t,n){const s=e.declarations=[],a=this.hasPlugin("typescript");for(e.kind=n;;){const l=this.startNode();if(this.parseVarId(l,n),this.eat(27)?l.init=t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():(n==="const"&&!(this.match(52)||this.isContextual(95))?a||this.raise(this.state.lastTokEnd,ie.DeclarationMissingInitializer,"Const declarations"):l.id.type!=="Identifier"&&!(t&&(this.match(52)||this.isContextual(95)))&&this.raise(this.state.lastTokEnd,ie.DeclarationMissingInitializer,"Complex binding patterns"),l.init=null),s.push(this.finishNode(l,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,"variable declaration",t==="var"?_f:qn,void 0,t!=="var")}parseFunction(e,t=dI,n=!1){const s=t&ed,a=t&N0,l=!!s&&!(t&O0);this.initFunction(e,n),this.match(49)&&a&&this.raise(this.state.start,ie.GeneratorInSingleStatementContext),e.generator=this.eat(49),s&&(e.id=this.parseFunctionId(l));const u=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(Gs),this.prodParam.enter(rf(n,e.generator)),s||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,s?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),s&&!a&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=u,e}parseFunctionId(e){return e||It(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(RP()),e.params=this.parseBindingList(11,41,!1,t),this.expressionScope.exit()}registerFunctionStatementId(e){!e.id||this.scope.declareName(e.id.name,this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?_f:qn:hx,e.id.start)}parseClass(e,t,n){this.next(),this.takeDecorators(e);const s=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,n),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,s),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(27)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(e){return!e.computed&&!e.static&&(e.key.name==="constructor"||e.key.value==="constructor")}parseClassBody(e,t){this.classScope.enter();const n={hadConstructor:!1,hadSuperClass:e};let s=[];const a=this.startNode();if(a.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(s.length>0)throw this.raise(this.state.lastTokEnd,ie.DecoratorSemicolon);continue}if(this.match(24)){s.push(this.parseDecorator());continue}const l=this.startNode();s.length&&(l.decorators=s,this.resetStartLocationFromNode(l,s[0]),s=[]),this.parseClassMember(a,l,n),l.kind==="constructor"&&l.decorators&&l.decorators.length>0&&this.raise(l.start,ie.DecoratorConstructor)}}),this.state.strict=t,this.next(),s.length)throw this.raise(this.state.start,ie.TrailingDecorator);return this.classScope.exit(),this.finishNode(a,"ClassBody")}parseClassMemberFromModifier(e,t){const n=this.parseIdentifier(!0);if(this.isClassMethod()){const s=t;return s.kind="method",s.computed=!1,s.key=n,s.static=!1,this.pushClassMethod(e,s,!1,!1,!1,!1),!0}else if(this.isClassProperty()){const s=t;return s.computed=!1,s.key=n,s.static=!1,e.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(e,t,n){const s=this.isContextual(98);if(s){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,n,s)}parseClassMemberWithIsStatic(e,t,n,s){const a=t,l=t,u=t,c=t,m=a,g=a;if(t.static=s,this.parsePropertyNamePrefixOperator(t),this.eat(49)){m.kind="method";const S=this.match(128);if(this.parseClassElementName(m),S){this.pushClassPrivateMethod(e,l,!0,!1);return}this.isNonstaticConstructor(a)&&this.raise(a.key.start,ie.ConstructorIsGenerator),this.pushClassMethod(e,a,!0,!1,!1,!1);return}const v=It(this.state.type)&&!this.state.containsEsc,b=this.match(128),x=this.parseClassElementName(t),E=this.state.start;if(this.parsePostMemberNameModifiers(g),this.isClassMethod()){if(m.kind="method",b){this.pushClassPrivateMethod(e,l,!1,!1);return}const S=this.isNonstaticConstructor(a);let C=!1;S&&(a.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(x.start,ie.DuplicateConstructor),S&&this.hasPlugin("typescript")&&t.override&&this.raise(x.start,ie.OverrideOnConstructor),n.hadConstructor=!0,C=n.hadSuperClass),this.pushClassMethod(e,a,!1,!1,S,C)}else if(this.isClassProperty())b?this.pushClassPrivateProperty(e,c):this.pushClassProperty(e,u);else if(v&&x.name==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(x);const S=this.eat(49);g.optional&&this.unexpected(E),m.kind="method";const C=this.match(128);this.parseClassElementName(m),this.parsePostMemberNameModifiers(g),C?this.pushClassPrivateMethod(e,l,S,!0):(this.isNonstaticConstructor(a)&&this.raise(a.key.start,ie.ConstructorIsAsync),this.pushClassMethod(e,a,S,!0,!1,!1))}else if(v&&(x.name==="get"||x.name==="set")&&!(this.match(49)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(x),m.kind=x.name;const S=this.match(128);this.parseClassElementName(a),S?this.pushClassPrivateMethod(e,l,!1,!1):(this.isNonstaticConstructor(a)&&this.raise(a.key.start,ie.ConstructorIsAccessor),this.pushClassMethod(e,a,!1,!1,!1,!1)),this.checkGetterSetterParams(a)}else this.isLineTerminator()?b?this.pushClassPrivateProperty(e,c):this.pushClassProperty(e,u):this.unexpected()}parseClassElementName(e){const{type:t,value:n,start:s}=this.state;if((t===122||t===123)&&e.static&&n==="prototype"&&this.raise(s,ie.StaticPrototype),t===128){n==="constructor"&&this.raise(s,ie.ConstructorClassPrivateField);const a=this.parsePrivateName();return e.key=a,a}return this.parsePropertyName(e)}parseClassStaticBlock(e,t){var n;this.scope.enter(ha|lx|kf);const s=this.state.labels;this.state.labels=[],this.prodParam.enter(xo);const a=t.body=[];this.parseBlockOrModuleBlockBody(a,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,e.body.push(this.finishNode(t,"StaticBlock")),(n=t.decorators)!=null&&n.length&&this.raise(t.start,ie.DecoratorStaticBlock)}pushClassProperty(e,t){!t.computed&&(t.key.name==="constructor"||t.key.value==="constructor")&&this.raise(t.key.start,ie.ConstructorClassField),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){const n=this.parseClassPrivateProperty(t);e.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),x0,n.key.start)}pushClassMethod(e,t,n,s,a,l){e.body.push(this.parseMethod(t,n,s,a,l,"ClassMethod",!0))}pushClassPrivateMethod(e,t,n,s){const a=this.parseMethod(t,n,s,!1,!1,"ClassPrivateMethod",!0);e.body.push(a);const l=a.kind==="get"?a.static?kP:_P:a.kind==="set"?a.static?TP:EP:x0;this.declareClassPrivateMethodInScope(a,l)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseInitializer(e){this.scope.enter(ha|kf),this.expressionScope.enter(yx()),this.prodParam.enter(xo),e.value=this.eat(27)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,n,s=fx){It(this.state.type)?(e.id=this.parseIdentifier(),t&&this.checkLVal(e.id,"class name",s)):n||!t?e.id=null:this.unexpected(null,ie.MissingClassName)}parseClassSuper(e){e.superClass=this.eat(75)?this.parseExprSubscripts():null}parseExport(e){const t=this.maybeParseExportDefaultSpecifier(e),n=!t||this.eat(12),s=n&&this.eatExportStar(e),a=s&&this.maybeParseExportNamespaceSpecifier(e),l=n&&(!a||this.eat(12)),u=t||s;if(s&&!a)return t&&this.unexpected(),this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration");const c=this.maybeParseExportNamedSpecifiers(e);if(t&&n&&!s&&!c||a&&l&&!c)throw this.unexpected(null,5);let m;if(u||c?(m=!1,this.parseExportFrom(e,u)):m=this.maybeParseExportDeclaration(e),u||c||m)return this.checkExport(e,!0,!1,!!e.source),this.finishNode(e,"ExportNamedDeclaration");if(this.eat(59))return e.declaration=this.parseExportDefaultExpression(),this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration");throw this.unexpected(null,5)}eatExportStar(e){return this.eat(49)}maybeParseExportDefaultSpecifier(e){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");const t=this.startNode();return t.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(t,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(87)){e.specifiers||(e.specifiers=[]);const t=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){e.specifiers||(e.specifiers=[]);const t=e.exportKind==="type";return e.specifiers.push(...this.parseExportSpecifiers(t)),e.source=null,e.declaration=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(89))return!1;const e=this.nextTokenStart();return!sm.test(this.input.slice(this.state.pos,e))&&this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode(),t=this.isAsyncFunction();if(this.match(62)||t)return this.next(),t&&this.next(),this.parseFunction(e,ed|O0,t);if(this.match(74))return this.parseClass(e,!0,!0);if(this.match(24))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,ie.DecoratorBeforeExport),this.parseDecorators(!1),this.parseClass(e,!0,!0);if(this.match(69)||this.match(68)||this.isLet())throw this.raise(this.state.start,ie.UnsupportedDefaultExport);{const n=this.parseMaybeAssignAllowIn();return this.semicolon(),n}}parseExportDeclaration(e){return this.parseStatement(null)}isExportDefaultSpecifier(){const{type:e}=this.state;if(It(e)){if(e===89&&!this.state.containsEsc||e===93)return!1;if((e===120||e===119)&&!this.state.containsEsc){const{type:s}=this.lookahead();if(It(s)&&s!==91||s===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(59))return!1;const t=this.nextTokenStart(),n=this.isUnparsedContextual(t,"from");if(this.input.charCodeAt(t)===44||It(this.state.type)&&n)return!0;if(this.match(59)&&n){const s=this.input.charCodeAt(this.nextTokenStartSince(t+4));return s===34||s===39}return!1}parseExportFrom(e,t){if(this.eatContextual(91)){e.source=this.parseImportSource(),this.checkExport(e);const n=this.maybeParseImportAssertions();n&&(e.assertions=n)}else t&&this.unexpected();this.semicolon()}shouldParseExportDeclaration(){const{type:e}=this.state;if(e===24&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators")))if(this.getPluginOption("decorators","decoratorsBeforeExport"))this.unexpected(this.state.start,ie.DecoratorBeforeExport);else return!0;return e===68||e===69||e===62||e===74||this.isLet()||this.isAsyncFunction()}checkExport(e,t,n,s){if(t){if(n){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var a;const u=e.declaration;u.type==="Identifier"&&u.name==="from"&&u.end-u.start===4&&!((a=u.extra)!=null&&a.parenthesized)&&this.raise(u.start,ie.ExportDefaultFromAsIdentifier)}}else if(e.specifiers&&e.specifiers.length)for(const u of e.specifiers){const{exported:c}=u,m=c.type==="Identifier"?c.name:c.value;if(this.checkDuplicateExports(u,m),!s&&u.local){const{local:g}=u;g.type!=="Identifier"?this.raise(u.start,ie.ExportBindingIsString,g.value,m):(this.checkReservedWord(g.name,g.start,!0,!1),this.scope.checkLocalExport(g))}}else if(e.declaration){if(e.declaration.type==="FunctionDeclaration"||e.declaration.type==="ClassDeclaration"){const u=e.declaration.id;if(!u)throw new Error("Assertion failure");this.checkDuplicateExports(e,u.name)}else if(e.declaration.type==="VariableDeclaration")for(const u of e.declaration.declarations)this.checkDeclaration(u.id)}}if(this.state.decoratorStack[this.state.decoratorStack.length-1].length)throw this.raise(e.start,ie.UnsupportedDecoratorExport)}checkDeclaration(e){if(e.type==="Identifier")this.checkDuplicateExports(e,e.name);else if(e.type==="ObjectPattern")for(const t of e.properties)this.checkDeclaration(t);else if(e.type==="ArrayPattern")for(const t of e.elements)t&&this.checkDeclaration(t);else e.type==="ObjectProperty"?this.checkDeclaration(e.value):e.type==="RestElement"?this.checkDeclaration(e.argument):e.type==="AssignmentPattern"&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&this.raise(e.start,t==="default"?ie.DuplicateDefaultExport:ie.DuplicateExport,t),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){const t=[];let n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;const s=this.isContextual(120),a=this.match(123),l=this.startNode();l.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(l,a,e,s))}return t}parseExportSpecifier(e,t,n,s){return this.eatContextual(87)?e.exported=this.parseModuleExportName():t?e.exported=qP(e.local):e.exported||(e.exported=ti(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(123)){const e=this.parseStringLiteral(this.state.value),t=e.value.match(mI);return t&&this.raise(e.start,ie.ModuleExportNameHasLoneSurrogate,t[0].charCodeAt(0).toString(16)),e}return this.parseIdentifier(!0)}parseImport(e){if(e.specifiers=[],!this.match(123)){const s=!this.maybeParseDefaultImportSpecifier(e)||this.eat(12),a=s&&this.maybeParseStarImportSpecifier(e);s&&!a&&this.parseNamedImportSpecifiers(e),this.expectContextual(91)}e.source=this.parseImportSource();const t=this.maybeParseImportAssertions();if(t)e.assertions=t;else{const n=this.maybeParseModuleAttributes();n&&(e.attributes=n)}return this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(123)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(e){return It(this.state.type)}parseImportSpecifierLocal(e,t,n,s){t.local=this.parseIdentifier(),this.checkLVal(t.local,s,qn),e.specifiers.push(this.finishNode(t,n))}parseAssertEntries(){const e=[],t=new Set;do{if(this.match(8))break;const n=this.startNode(),s=this.state.value;if(t.has(s)&&this.raise(this.state.start,ie.ModuleAttributesWithDuplicateKeys,s),t.add(s),this.match(123)?n.key=this.parseStringLiteral(s):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(123))throw this.unexpected(this.state.start,ie.ModuleAttributeInvalidValue);n.value=this.parseStringLiteral(this.state.value),this.finishNode(n,"ImportAttribute"),e.push(n)}while(this.eat(12));return e}maybeParseModuleAttributes(){if(this.match(70)&&!this.hasPrecedingLineBreak())this.expectPlugin("moduleAttributes"),this.next();else return this.hasPlugin("moduleAttributes")?[]:null;const e=[],t=new Set;do{const n=this.startNode();if(n.key=this.parseIdentifier(!0),n.key.name!=="type"&&this.raise(n.key.start,ie.ModuleAttributeDifferentFromType,n.key.name),t.has(n.key.name)&&this.raise(n.key.start,ie.ModuleAttributesWithDuplicateKeys,n.key.name),t.add(n.key.name),this.expect(14),!this.match(123))throw this.unexpected(this.state.start,ie.ModuleAttributeInvalidValue);n.value=this.parseStringLiteral(this.state.value),this.finishNode(n,"ImportAttribute"),e.push(n)}while(this.eat(12));return e}maybeParseImportAssertions(){if(this.isContextual(88)&&!this.hasPrecedingLineBreak())this.expectPlugin("importAssertions"),this.next();else return this.hasPlugin("importAssertions")?[]:null;this.eat(5);const e=this.parseAssertEntries();return this.eat(8),e}maybeParseDefaultImportSpecifier(e){return this.shouldParseDefaultImport(e)?(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier","default import specifier"),!0):!1}maybeParseStarImportSpecifier(e){if(this.match(49)){const t=this.startNode();return this.next(),this.expectContextual(87),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier","import namespace specifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(this.state.start,ie.DestructureNamedImport);if(this.expect(12),this.eat(8))break}const n=this.startNode(),s=this.match(123),a=this.isContextual(120);n.imported=this.parseModuleExportName();const l=this.parseImportSpecifier(n,s,e.importKind==="type"||e.importKind==="typeof",a);e.specifiers.push(l)}}parseImportSpecifier(e,t,n,s){if(this.eatContextual(87))e.local=this.parseIdentifier();else{const{imported:a}=e;if(t)throw this.raise(e.start,ie.ImportBindingIsString,a.value);this.checkReservedWord(a.name,e.start,!0,!0),e.local||(e.local=ti(a))}return this.checkLVal(e.local,"import specifier",qn),this.finishNode(e,"ImportSpecifier")}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}}class xx extends yI{constructor(e,t){e=cI(e),super(e,t),this.options=e,this.initializeScopes(),this.plugins=vI(this.options.plugins),this.filename=e.sourceFilename}getScopeHandler(){return bm}parse(){this.enterInitialScopes();const e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e}}function vI(r){const e=new Map;for(const t of r){const[n,s]=Array.isArray(t)?t:[t,{}];e.has(n)||e.set(n,s||{})}return e}function bI(r,e){var t;if(((t=e)==null?void 0:t.sourceType)==="unambiguous"){e=Object.assign({},e);try{e.sourceType="module";const n=Jl(e,r),s=n.parse();if(n.sawUnambiguousESM)return s;if(n.ambiguousScriptDifferentAst)try{return e.sourceType="script",Jl(e,r).parse()}catch{}else s.program.sourceType="script";return s}catch(n){try{return e.sourceType="script",Jl(e,r).parse()}catch{}throw n}}else return Jl(e,r).parse()}function wI(r,e){const t=Jl(e,r);return t.options.strictMode&&(t.state.strict=!0),t.getExpression()}function xI(r){const e={};for(const t of Object.keys(r))e[t]=Zc(r[t]);return e}xI(YC);function Jl(r,e){let t=xx;return r!=null&&r.plugins&&(lI(r.plugins),t=SI(r.plugins)),new t(r,e)}const L0={};function SI(r){const e=uI.filter(s=>Zr(r,s)),t=e.join("/");let n=L0[t];if(!n){n=xx;for(const s of e)n=wx[s](n);L0[t]=n}return n}var Ta=bI,Sx=wI;const rn=r=>r.type===4&&r.isStatic,ts=(r,e)=>r===e||r===Ww(e);function km(r){if(ts(r,"Teleport"))return ga;if(ts(r,"Suspense"))return qo;if(ts(r,"KeepAlive"))return mu;if(ts(r,"BaseTransition"))return J1}const kI=/^\d|[^\$\w]/,Bi=r=>!kI.test(r),TI=/[A-Za-z_$\xA0-\uFFFF]/,_I=/[\.\?\w$\xA0-\uFFFF]/,EI=/\s+[.[]\s*|\s*[.[]\s+/g,AI=r=>{r=r.trim().replace(EI,l=>l.trim());let e=0,t=[],n=0,s=0,a=null;for(let l=0;l<r.length;l++){const u=r.charAt(l);switch(e){case 0:if(u==="[")t.push(e),e=1,n++;else if(u==="(")t.push(e),e=2,s++;else if(!(l===0?TI:_I).test(u))return!1;break;case 1:u==="'"||u==='"'||u==="`"?(t.push(e),e=3,a=u):u==="["?n++:u==="]"&&(--n||(e=t.pop()));break;case 2:if(u==="'"||u==='"'||u==="`")t.push(e),e=3,a=u;else if(u==="(")s++;else if(u===")"){if(l===r.length-1)return!1;--s||(e=t.pop())}break;case 3:u===a&&(e=t.pop(),a=null);break}}return!n&&!s},kx=(r,e)=>{try{let t=Sx(r,{plugins:e.expressionPlugins});return(t.type==="TSAsExpression"||t.type==="TSTypeAssertion")&&(t=t.expression),t.type==="MemberExpression"||t.type==="OptionalMemberExpression"||t.type==="Identifier"}catch{return!1}},Tm=kx;function _m(r,e,t){const s={source:r.source.slice(e,e+t),start:_a(r.start,r.source,e),end:r.end};return t!=null&&(s.end=_a(r.start,r.source,e+t)),s}function _a(r,e,t=e.length){return Oo(Qs({},r),e,t)}function Oo(r,e,t=e.length){let n=0,s=-1;for(let a=0;a<t;a++)e.charCodeAt(a)===10&&(n++,s=a);return r.offset+=t,r.line+=n,r.column=s===-1?r.column+t:t-s,r}function jd(r,e){if(!r)throw new Error(e||"unexpected compiler condition")}function Or(r,e,t=!1){for(let n=0;n<r.props.length;n++){const s=r.props[n];if(s.type===7&&(t||s.exp)&&(Ct(e)?s.name===e:e.test(s.name)))return s}}function Tn(r,e,t=!1,n=!1){for(let s=0;s<r.props.length;s++){const a=r.props[s];if(a.type===6){if(t)continue;if(a.name===e&&(a.value||n))return a}else if(a.name==="bind"&&(a.exp||n)&&Ks(a.arg,e))return a}}function Ks(r,e){return!!(r&&rn(r)&&r.content===e)}function yh(r){return r.props.some(e=>e.type===7&&e.name==="bind"&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function eu(r){return r.type===5||r.type===2}function Em(r){return r.type===7&&r.name==="slot"}function Lo(r){return r.type===1&&r.tagType===3}function Mo(r){return r.type===1&&r.tagType===2}function Ea(r,e){return r||e?Hu:rh}function Aa(r,e){return r||e?X1:Q1}const CI=new Set([Co,zo]);function Tx(r,e=[]){if(r&&!Ct(r)&&r.type===14){const t=r.callee;if(!Ct(t)&&CI.has(t))return Tx(r.arguments[0],e.concat(r))}return[r,e]}function Su(r,e,t){let n,s=r.type===13?r.props:r.arguments[2],a=[],l;if(s&&!Ct(s)&&s.type===14){const u=Tx(s);s=u[0],a=u[1],l=a[a.length-1]}if(s==null||Ct(s))n=xn([e]);else if(s.type===14){const u=s.arguments[0];!Ct(u)&&u.type===15?u.properties.unshift(e):s.callee===ch?n=ut(t.helper(ka),[xn([e]),s]):s.arguments.unshift(xn([e])),!n&&(n=s)}else if(s.type===15){let u=!1;if(e.key.type===4){const c=e.key.content;u=s.properties.some(m=>m.key.type===4&&m.key.content===c)}u||s.properties.unshift(e),n=s}else n=ut(t.helper(ka),[xn([e]),s]),l&&l.callee===zo&&(l=a[a.length-2]);r.type===13?l?l.arguments[0]=n:r.props=n:l?l.arguments[0]=n:r.arguments[2]=n}function ku(r,e){return`_${e}_${r.replace(/[^\w]/g,(t,n)=>t==="-"?"_":r.charCodeAt(n).toString())}`}function bn(r,e){if(!r||Object.keys(e).length===0)return!1;switch(r.type){case 1:for(let t=0;t<r.props.length;t++){const n=r.props[t];if(n.type===7&&(bn(n.arg,e)||bn(n.exp,e)))return!0}return r.children.some(t=>bn(t,e));case 11:return bn(r.source,e)?!0:r.children.some(t=>bn(t,e));case 9:return r.branches.some(t=>bn(t,e));case 10:return bn(r.condition,e)?!0:r.children.some(t=>bn(t,e));case 4:return!r.isStatic&&Bi(r.content)&&!!e[r.content];case 8:return r.children.some(t=>oi(t)&&bn(t,e));case 5:case 12:return bn(r.content,e);case 2:case 3:return!1;default:return!1}}function _x(r){return r.type===14&&r.callee===dh?r.arguments[1].returns:r}function vh(r,{helper:e,removeHelper:t,inSSR:n}){r.isBlock||(r.isBlock=!0,t(Ea(n,r.isComponent)),e(Di),e(Aa(n,r.isComponent)))}const PI={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:r=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${r}.sync\` should be changed to \`v-model:${r}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_PROP:{message:".prop modifier for v-bind has been removed and no longer necessary. Vue 3 will automatically set a binding as DOM property when appropriate."},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTER:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function Ud(r,e){const t=e.options?e.options.compatConfig:e.compatConfig,n=t&&t[r];return r==="MODE"?n||3:n}function II(r,e){const t=Ud("MODE",e),n=Ud(r,e);return t===3?n===!0:n!==!1}function NI(r,e,t,...n){const s=II(r,e);return s&&Ex(r,e,t,...n),s}function Ex(r,e,t,...n){if(Ud(r,e)==="suppress-warning")return;const{message:a,link:l}=PI[r],u=`(deprecation ${r}) ${typeof a=="function"?a(...n):a}${l?`
Details: ${l}`:""}`,c=new SyntaxError(u);c.code=r,t&&(c.loc=t),e.onWarn(c)}const OI=/&(gt|lt|amp|apos|quot);/g,LI={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},M0={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:Xc,isPreTag:Xc,isCustomElement:Xc,decodeEntities:r=>r.replace(OI,(e,t)=>LI[t]),onError:Y1,onWarn:zw,comments:!0};function bh(r,e={}){const t=MI(r,e),n=Ln(t);return Ho(Am(t,0,[]),ss(t,n))}function MI(r,e){const t=Qs({},M0);let n;for(n in e)t[n]=e[n]===void 0?M0[n]:e[n];return{options:t,column:1,line:1,offset:0,originalSource:r,source:r,inPre:!1,inVPre:!1,onWarn:t.onWarn}}function Am(r,e,t){const n=wh(t),s=n?n.ns:0,a=[];for(;!zI(r,e,t);){const u=r.source;let c;if(e===0||e===1){if(!r.inVPre&&en(u,r.options.delimiters[0]))c=qI(r,e);else if(e===0&&u[0]==="<")if(u.length===1)$t(r,5,1);else if(u[1]==="!")en(u,"<!--")?c=RI(r):en(u,"<!DOCTYPE")?c=$l(r):en(u,"<![CDATA[")?s!==0?c=DI(r,t):($t(r,1),c=$l(r)):($t(r,11),c=$l(r));else if(u[1]==="/")if(u.length===2)$t(r,5,2);else if(u[2]===">"){$t(r,14,2),Ar(r,3);continue}else if(/[a-z]/i.test(u[2])){$t(r,23),qd(r,1,n);continue}else $t(r,12,2),c=$l(r);else/[a-z]/i.test(u[1])?c=FI(r,t):u[1]==="?"?($t(r,21,1),c=$l(r)):$t(r,12,1)}if(c||(c=WI(r,e)),dn(c))for(let m=0;m<c.length;m++)D0(a,c[m]);else D0(a,c)}let l=!1;if(e!==2&&e!==1){const u=r.options.whitespace!=="preserve";for(let c=0;c<a.length;c++){const m=a[c];if(!r.inPre&&m.type===2)if(/[^\t\r\n\f ]/.test(m.content))u&&(m.content=m.content.replace(/[\t\r\n\f ]+/g," "));else{const g=a[c-1],v=a[c+1];!g||!v||u&&(g.type===3||v.type===3||g.type===1&&v.type===1&&/[\r\n]/.test(m.content))?(l=!0,a[c]=null):m.content=" "}else m.type===3&&!r.options.comments&&(l=!0,a[c]=null)}if(r.inPre&&n&&r.options.isPreTag(n.tag)){const c=a[0];c&&c.type===2&&(c.content=c.content.replace(/^\r?\n/,""))}}return l?a.filter(Boolean):a}function D0(r,e){if(e.type===2){const t=wh(r);if(t&&t.type===2&&t.loc.end.offset===e.loc.start.offset){t.content+=e.content,t.loc.end=e.loc.end,t.loc.source+=e.loc.source;return}}r.push(e)}function DI(r,e){Ar(r,9);const t=Am(r,3,e);return r.source.length===0?$t(r,6):Ar(r,3),t}function RI(r){const e=Ln(r);let t;const n=/--(\!)?>/.exec(r.source);if(!n)t=r.source.slice(4),Ar(r,r.source.length),$t(r,7);else{n.index<=3&&$t(r,0),n[1]&&$t(r,10),t=r.source.slice(4,n.index);const s=r.source.slice(0,n.index);let a=1,l=0;for(;(l=s.indexOf("<!--",a))!==-1;)Ar(r,l-a+1),l+4<s.length&&$t(r,16),a=l+1;Ar(r,n.index+n[0].length-a+1)}return{type:3,content:t,loc:ss(r,e)}}function $l(r){const e=Ln(r),t=r.source[1]==="?"?1:2;let n;const s=r.source.indexOf(">");return s===-1?(n=r.source.slice(t),Ar(r,r.source.length)):(n=r.source.slice(t,s),Ar(r,s+1)),{type:3,content:n,loc:ss(r,e)}}function FI(r,e){const t=r.inPre,n=r.inVPre,s=wh(e),a=qd(r,0,s),l=r.inPre&&!t,u=r.inVPre&&!n;if(a.isSelfClosing||r.options.isVoidTag(a.tag))return l&&(r.inPre=!1),u&&(r.inVPre=!1),a;e.push(a);const c=r.options.getTextMode(a,s),m=Am(r,c,e);if(e.pop(),a.children=m,Wd(r.source,a.tag))qd(r,1,s);else if($t(r,24,0,a.loc.start),r.source.length===0&&a.tag.toLowerCase()==="script"){const g=m[0];g&&en(g.loc.source,"<!--")&&$t(r,8)}return a.loc=ss(r,a.loc.start),l&&(r.inPre=!1),u&&(r.inVPre=!1),a}const BI=Cr("if,else,else-if,for,slot");function qd(r,e,t){const n=Ln(r),s=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(r.source),a=s[1],l=r.options.getNamespace(a,t);Ar(r,s[0].length),Tu(r);const u=Ln(r),c=r.source;r.options.isPreTag(a)&&(r.inPre=!0);let m=R0(r,e);e===0&&!r.inVPre&&m.some(b=>b.type===7&&b.name==="pre")&&(r.inVPre=!0,Qs(r,u),r.source=c,m=R0(r,e).filter(b=>b.name!=="v-pre"));let g=!1;if(r.source.length===0?$t(r,9):(g=en(r.source,"/>"),e===1&&g&&$t(r,4),Ar(r,g?2:1)),e===1)return;let v=0;return r.inVPre||(a==="slot"?v=2:a==="template"?m.some(b=>b.type===7&&BI(b.name))&&(v=3):$I(a,m,r)&&(v=1)),{type:1,ns:l,tag:a,tagType:v,props:m,isSelfClosing:g,children:[],loc:ss(r,n),codegenNode:void 0}}function $I(r,e,t){const n=t.options;if(n.isCustomElement(r))return!1;if(r==="component"||/^[A-Z]/.test(r)||km(r)||n.isBuiltInComponent&&n.isBuiltInComponent(r)||n.isNativeTag&&!n.isNativeTag(r))return!0;for(let s=0;s<e.length;s++){const a=e[s];if(a.type===6){if(a.name==="is"&&a.value&&a.value.content.startsWith("vue:"))return!0}else{if(a.name==="is")return!0;a.name==="bind"&&Ks(a.arg,"is")}}}function R0(r,e){const t=[],n=new Set;for(;r.source.length>0&&!en(r.source,">")&&!en(r.source,"/>");){if(en(r.source,"/")){$t(r,22),Ar(r,1),Tu(r);continue}e===1&&$t(r,3);const s=jI(r,n);s.type===6&&s.value&&s.name==="class"&&(s.value.content=s.value.content.replace(/\s+/g," ").trim()),e===0&&t.push(s),/^[^\t\r\n\f />]/.test(r.source)&&$t(r,15),Tu(r)}return t}function jI(r,e){const t=Ln(r),s=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(r.source)[0];e.has(s)&&$t(r,2),e.add(s),s[0]==="="&&$t(r,19);{const u=/["'<]/g;let c;for(;c=u.exec(s);)$t(r,17,c.index)}Ar(r,s.length);let a;/^[\t\r\n\f ]*=/.test(r.source)&&(Tu(r),Ar(r,1),Tu(r),a=UI(r),a||$t(r,13));const l=ss(r,t);if(!r.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(s)){const u=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(s);let c=en(s,"."),m=u[1]||(c||en(s,":")?"bind":en(s,"@")?"on":"slot"),g;if(u[2]){const b=m==="slot",x=s.lastIndexOf(u[2]),E=ss(r,F0(r,t,x),F0(r,t,x+u[2].length+(b&&u[3]||"").length));let S=u[2],C=!0;S.startsWith("[")?(C=!1,S.endsWith("]")?S=S.slice(1,S.length-1):($t(r,27),S=S.slice(1))):b&&(S+=u[3]||""),g={type:4,content:S,isStatic:C,constType:C?3:0,loc:E}}if(a&&a.isQuoted){const b=a.loc;b.start.offset++,b.start.column++,b.end=_a(b.start,a.content),b.source=b.source.slice(1,-1)}const v=u[3]?u[3].slice(1).split("."):[];return c&&v.push("prop"),{type:7,name:m,exp:a&&{type:4,content:a.content,isStatic:!1,constType:0,loc:a.loc},arg:g,modifiers:v,loc:l}}return!r.inVPre&&en(s,"v-")&&$t(r,26),{type:6,name:s,value:a&&{type:2,content:a.content,loc:a.loc},loc:l}}function UI(r){const e=Ln(r);let t;const n=r.source[0],s=n==='"'||n==="'";if(s){Ar(r,1);const a=r.source.indexOf(n);a===-1?t=tu(r,r.source.length,4):(t=tu(r,a,4),Ar(r,1))}else{const a=/^[^\t\r\n\f >]+/.exec(r.source);if(!a)return;const l=/["'<=`]/g;let u;for(;u=l.exec(a[0]);)$t(r,18,u.index);t=tu(r,a[0].length,4)}return{content:t,isQuoted:s,loc:ss(r,e)}}function qI(r,e){const[t,n]=r.options.delimiters,s=r.source.indexOf(n,t.length);if(s===-1){$t(r,25);return}const a=Ln(r);Ar(r,t.length);const l=Ln(r),u=Ln(r),c=s-t.length,m=r.source.slice(0,c),g=tu(r,c,e),v=g.trim(),b=g.indexOf(v);b>0&&Oo(l,m,b);const x=c-(g.length-v.length-b);return Oo(u,m,x),Ar(r,n.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:v,loc:ss(r,l,u)},loc:ss(r,a)}}function WI(r,e){const t=e===3?["]]>"]:["<",r.options.delimiters[0]];let n=r.source.length;for(let l=0;l<t.length;l++){const u=r.source.indexOf(t[l],1);u!==-1&&n>u&&(n=u)}const s=Ln(r),a=tu(r,n,e);return{type:2,content:a,loc:ss(r,s)}}function tu(r,e,t){const n=r.source.slice(0,e);return Ar(r,e),t===2||t===3||!n.includes("&")?n:r.options.decodeEntities(n,t===4)}function Ln(r){const{column:e,line:t,offset:n}=r;return{column:e,line:t,offset:n}}function ss(r,e,t){return t=t||Ln(r),{start:e,end:t,source:r.originalSource.slice(e.offset,t.offset)}}function wh(r){return r[r.length-1]}function en(r,e){return r.startsWith(e)}function Ar(r,e){const{source:t}=r;Oo(r,t,e),r.source=t.slice(e)}function Tu(r){const e=/^[\t\r\n\f ]+/.exec(r.source);e&&Ar(r,e[0].length)}function F0(r,e,t){return _a(e,r.originalSource.slice(e.offset,t),t)}function $t(r,e,t,n=Ln(r)){t&&(n.offset+=t,n.column+=t),r.options.onError(jt(e,{start:n,end:n,source:""}))}function zI(r,e,t){const n=r.source;switch(e){case 0:if(en(n,"</")){for(let s=t.length-1;s>=0;--s)if(Wd(n,t[s].tag))return!0}break;case 1:case 2:{const s=wh(t);if(s&&Wd(n,s.tag))return!0;break}case 3:if(en(n,"]]>"))return!0;break}return!n}function Wd(r,e){return en(r,"</")&&r.slice(2,2+e.length).toLowerCase()===e.toLowerCase()&&/[\t\r\n\f />]/.test(r[2+e.length]||">")}function HI(r,e){sf(r,e,Ax(r,r.children[0]))}function Ax(r,e){const{children:t}=r;return t.length===1&&e.type===1&&!Mo(e)}function sf(r,e,t=!1){const{children:n}=r,s=n.length;let a=0;for(let l=0;l<n.length;l++){const u=n[l];if(u.type===1&&u.tagType===0){const c=t?0:Sn(u,e);if(c>0){if(c>=2){u.codegenNode.patchFlag=-1+" /* HOISTED */",u.codegenNode=e.hoist(u.codegenNode),a++;continue}}else{const m=u.codegenNode;if(m.type===13){const g=Nx(m);if((!g||g===512||g===1)&&Px(u,e)>=2){const v=Ix(u);v&&(m.props=e.hoist(v))}m.dynamicProps&&(m.dynamicProps=e.hoist(m.dynamicProps))}}}else u.type===12&&Sn(u.content,e)>=2&&(u.codegenNode=e.hoist(u.codegenNode),a++);if(u.type===1){const c=u.tagType===1;c&&e.scopes.vSlot++,sf(u,e),c&&e.scopes.vSlot--}else if(u.type===11)sf(u,e,u.children.length===1);else if(u.type===9)for(let c=0;c<u.branches.length;c++)sf(u.branches[c],e,u.branches[c].children.length===1)}a&&e.transformHoist&&e.transformHoist(n,e,r),a&&a===s&&r.type===1&&r.tagType===0&&r.codegenNode&&r.codegenNode.type===13&&dn(r.codegenNode.children)&&(r.codegenNode.children=e.hoist(Oa(r.codegenNode.children)))}function Sn(r,e){const{constantCache:t}=e;switch(r.type){case 1:if(r.tagType!==0)return 0;const n=t.get(r);if(n!==void 0)return n;const s=r.codegenNode;if(s.type!==13||s.isBlock&&r.tag!=="svg"&&r.tag!=="foreignObject")return 0;if(Nx(s))return t.set(r,0),0;{let u=3;const c=Px(r,e);if(c===0)return t.set(r,0),0;c<u&&(u=c);for(let m=0;m<r.children.length;m++){const g=Sn(r.children[m],e);if(g===0)return t.set(r,0),0;g<u&&(u=g)}if(u>1)for(let m=0;m<r.props.length;m++){const g=r.props[m];if(g.type===7&&g.name==="bind"&&g.exp){const v=Sn(g.exp,e);if(v===0)return t.set(r,0),0;v<u&&(u=v)}}if(s.isBlock){for(let m=0;m<r.props.length;m++)if(r.props[m].type===7)return t.set(r,0),0;e.removeHelper(Di),e.removeHelper(Aa(e.inSSR,s.isComponent)),s.isBlock=!1,e.helper(Ea(e.inSSR,s.isComponent))}return t.set(r,u),u}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return Sn(r.content,e);case 4:return r.constType;case 8:let l=3;for(let u=0;u<r.children.length;u++){const c=r.children[u];if(Ct(c)||Uo(c))continue;const m=Sn(c,e);if(m===0)return 0;m<l&&(l=m)}return l;default:return 0}}const VI=new Set([lh,uh,Co,zo]);function Cx(r,e){if(r.type===14&&!Ct(r.callee)&&VI.has(r.callee)){const t=r.arguments[0];if(t.type===4)return Sn(t,e);if(t.type===14)return Cx(t,e)}return 0}function Px(r,e){let t=3;const n=Ix(r);if(n&&n.type===15){const{properties:s}=n;for(let a=0;a<s.length;a++){const{key:l,value:u}=s[a],c=Sn(l,e);if(c===0)return c;c<t&&(t=c);let m;if(u.type===4?m=Sn(u,e):u.type===14?m=Cx(u,e):m=0,m===0)return m;m<t&&(t=m)}}return t}function Ix(r){const e=r.codegenNode;if(e.type===13)return e.props}function Nx(r){const e=r.patchFlag;return e?parseInt(e,10):void 0}function Ku(r,{filename:e="",prefixIdentifiers:t=!1,hoistStatic:n=!1,cacheHandlers:s=!1,nodeTransforms:a=[],directiveTransforms:l={},transformHoist:u=null,isBuiltInComponent:c=m0,isCustomElement:m=m0,expressionPlugins:g=[],scopeId:v=null,slotted:b=!0,ssr:x=!1,inSSR:E=!1,ssrCssVars:S="",bindingMetadata:C=CC,inline:_=!1,isTS:A=!1,onError:I=Y1,onWarn:M=zw,compatConfig:O}){const R=e.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),j={selfName:R&&Sa(Ss(R[1])),prefixIdentifiers:t,hoistStatic:n,cacheHandlers:s,nodeTransforms:a,directiveTransforms:l,transformHoist:u,isBuiltInComponent:c,isCustomElement:m,expressionPlugins:g,scopeId:v,slotted:b,ssr:x,inSSR:E,ssrCssVars:S,bindingMetadata:C,inline:_,isTS:A,onError:I,onWarn:M,compatConfig:O,root:r,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:r,childIndex:0,inVOnce:!1,helper(F){const H=j.helpers.get(F)||0;return j.helpers.set(F,H+1),F},removeHelper(F){const H=j.helpers.get(F);if(H){const V=H-1;V?j.helpers.set(F,V):j.helpers.delete(F)}},helperString(F){return`_${wn[j.helper(F)]}`},replaceNode(F){{if(!j.currentNode)throw new Error("Node being replaced is already removed.");if(!j.parent)throw new Error("Cannot replace root node.")}j.parent.children[j.childIndex]=j.currentNode=F},removeNode(F){if(!j.parent)throw new Error("Cannot remove root node.");const H=j.parent.children,V=F?H.indexOf(F):j.currentNode?j.childIndex:-1;if(V<0)throw new Error("node being removed is not a child of current parent");!F||F===j.currentNode?(j.currentNode=null,j.onNodeRemoved()):j.childIndex>V&&(j.childIndex--,j.onNodeRemoved()),j.parent.children.splice(V,1)},onNodeRemoved:()=>{},addIdentifiers(F){Ct(F)?$(F):F.identifiers?F.identifiers.forEach($):F.type===4&&$(F.content)},removeIdentifiers(F){Ct(F)?B(F):F.identifiers?F.identifiers.forEach(B):F.type===4&&B(F.content)},hoist(F){Ct(F)&&(F=ze(F)),j.hoists.push(F);const H=ze(`_hoisted_${j.hoists.length}`,!1,F.loc,2);return H.hoisted=F,H},cache(F,H=!1){return Gw(j.cached++,F,H)}};function $(F){const{identifiers:H}=j;H[F]===void 0&&(H[F]=0),H[F]++}function B(F){j.identifiers[F]--}return j}function xh(r,e){const t=Ku(r,e);Go(r,t),e.hoistStatic&&HI(r,t),e.ssr||GI(r,t),r.helpers=[...t.helpers.keys()],r.components=[...t.components],r.directives=[...t.directives],r.imports=t.imports,r.hoists=t.hoists,r.temps=t.temps,r.cached=t.cached}function GI(r,e){const{helper:t}=e,{children:n}=r;if(n.length===1){const s=n[0];if(Ax(r,s)&&s.codegenNode){const a=s.codegenNode;a.type===13&&vh(a,e),r.codegenNode=a}else r.codegenNode=s}else if(n.length>1){let s=64,a=xs[64];n.filter(l=>l.type!==3).length===1&&(s|=2048,a+=`, ${xs[2048]}`),r.codegenNode=Io(e,t(Eo),void 0,r.children,s+` /* ${a} */`,void 0,void 0,!0,void 0,!1)}}function KI(r,e){let t=0;const n=()=>{t--};for(;t<r.children.length;t++){const s=r.children[t];Ct(s)||(e.parent=r,e.childIndex=t,e.onNodeRemoved=n,Go(s,e))}}function Go(r,e){e.currentNode=r;const{nodeTransforms:t}=e,n=[];for(let a=0;a<t.length;a++){const l=t[a](r,e);if(l&&(dn(l)?n.push(...l):n.push(l)),e.currentNode)r=e.currentNode;else return}switch(r.type){case 3:e.ssr||e.helper(Wo);break;case 5:e.ssr||e.helper(Vu);break;case 9:for(let a=0;a<r.branches.length;a++)Go(r.branches[a],e);break;case 10:case 11:case 1:case 0:KI(r,e);break}e.currentNode=r;let s=n.length;for(;s--;)n[s]()}function Yu(r,e){const t=Ct(r)?n=>n===r:n=>r.test(n);return(n,s)=>{if(n.type===1){const{props:a}=n;if(n.tagType===3&&a.some(Em))return;const l=[];for(let u=0;u<a.length;u++){const c=a[u];if(c.type===7&&t(c.name)){a.splice(u,1),u--;const m=e(n,c,s);m&&l.push(m)}}return l}}}var B0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),YI=function(r){if(0<=r&&r<B0.length)return B0[r];throw new TypeError("Must be between 0 and 63: "+r)},JI=function(r){var e=65,t=90,n=97,s=122,a=48,l=57,u=43,c=47,m=26,g=52;return e<=r&&r<=t?r-e:n<=r&&r<=s?r-n+m:a<=r&&r<=l?r-a+g:r==u?62:r==c?63:-1},Ox={encode:YI,decode:JI},Cm=5,Lx=1<<Cm,Mx=Lx-1,Dx=Lx;function XI(r){return r<0?(-r<<1)+1:(r<<1)+0}function QI(r){var e=(r&1)===1,t=r>>1;return e?-t:t}var ZI=function(e){var t="",n,s=XI(e);do n=s&Mx,s>>>=Cm,s>0&&(n|=Dx),t+=Ox.encode(n);while(s>0);return t},e2=function(e,t,n){var s=e.length,a=0,l=0,u,c;do{if(t>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(c=Ox.decode(e.charCodeAt(t++)),c===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));u=!!(c&Dx),c&=Mx,a=a+(c<<l),l+=Cm}while(u);n.value=QI(a),n.rest=t},lo={encode:ZI,decode:e2};function t2(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Ju(r){if(r.__esModule)return r;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(t){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}),e}function Nt(r){var e={exports:{}};return r(e,e.exports),e.exports}var Le=Nt(function(r,e){function t(O,R,j){if(R in O)return O[R];if(arguments.length===3)return j;throw new Error('"'+R+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,s=/^data:.+\,.+$/;function a(O){var R=O.match(n);return R?{scheme:R[1],auth:R[2],host:R[3],port:R[4],path:R[5]}:null}e.urlParse=a;function l(O){var R="";return O.scheme&&(R+=O.scheme+":"),R+="//",O.auth&&(R+=O.auth+"@"),O.host&&(R+=O.host),O.port&&(R+=":"+O.port),O.path&&(R+=O.path),R}e.urlGenerate=l;function u(O){var R=O,j=a(O);if(j){if(!j.path)return O;R=j.path}for(var $=e.isAbsolute(R),B=R.split(/\/+/),F,H=0,V=B.length-1;V>=0;V--)F=B[V],F==="."?B.splice(V,1):F===".."?H++:H>0&&(F===""?(B.splice(V+1,H),H=0):(B.splice(V,2),H--));return R=B.join("/"),R===""&&(R=$?"/":"."),j?(j.path=R,l(j)):R}e.normalize=u;function c(O,R){O===""&&(O="."),R===""&&(R=".");var j=a(R),$=a(O);if($&&(O=$.path||"/"),j&&!j.scheme)return $&&(j.scheme=$.scheme),l(j);if(j||R.match(s))return R;if($&&!$.host&&!$.path)return $.host=R,l($);var B=R.charAt(0)==="/"?R:u(O.replace(/\/+$/,"")+"/"+R);return $?($.path=B,l($)):B}e.join=c,e.isAbsolute=function(O){return O.charAt(0)==="/"||n.test(O)};function m(O,R){O===""&&(O="."),O=O.replace(/\/$/,"");for(var j=0;R.indexOf(O+"/")!==0;){var $=O.lastIndexOf("/");if($<0||(O=O.slice(0,$),O.match(/^([^\/]+:\/)?\/*$/)))return R;++j}return Array(j+1).join("../")+R.substr(O.length+1)}e.relative=m;var g=function(){var O=Object.create(null);return!("__proto__"in O)}();function v(O){return O}function b(O){return E(O)?"$"+O:O}e.toSetString=g?v:b;function x(O){return E(O)?O.slice(1):O}e.fromSetString=g?v:x;function E(O){if(!O)return!1;var R=O.length;if(R<9||O.charCodeAt(R-1)!==95||O.charCodeAt(R-2)!==95||O.charCodeAt(R-3)!==111||O.charCodeAt(R-4)!==116||O.charCodeAt(R-5)!==111||O.charCodeAt(R-6)!==114||O.charCodeAt(R-7)!==112||O.charCodeAt(R-8)!==95||O.charCodeAt(R-9)!==95)return!1;for(var j=R-10;j>=0;j--)if(O.charCodeAt(j)!==36)return!1;return!0}function S(O,R,j){var $=_(O.source,R.source);return $!==0||($=O.originalLine-R.originalLine,$!==0)||($=O.originalColumn-R.originalColumn,$!==0||j)||($=O.generatedColumn-R.generatedColumn,$!==0)||($=O.generatedLine-R.generatedLine,$!==0)?$:_(O.name,R.name)}e.compareByOriginalPositions=S;function C(O,R,j){var $=O.generatedLine-R.generatedLine;return $!==0||($=O.generatedColumn-R.generatedColumn,$!==0||j)||($=_(O.source,R.source),$!==0)||($=O.originalLine-R.originalLine,$!==0)||($=O.originalColumn-R.originalColumn,$!==0)?$:_(O.name,R.name)}e.compareByGeneratedPositionsDeflated=C;function _(O,R){return O===R?0:O===null?1:R===null?-1:O>R?1:-1}function A(O,R){var j=O.generatedLine-R.generatedLine;return j!==0||(j=O.generatedColumn-R.generatedColumn,j!==0)||(j=_(O.source,R.source),j!==0)||(j=O.originalLine-R.originalLine,j!==0)||(j=O.originalColumn-R.originalColumn,j!==0)?j:_(O.name,R.name)}e.compareByGeneratedPositionsInflated=A;function I(O){return JSON.parse(O.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=I;function M(O,R,j){if(R=R||"",O&&(O[O.length-1]!=="/"&&R[0]!=="/"&&(O+="/"),R=O+R),j){var $=a(j);if(!$)throw new Error("sourceMapURL could not be parsed");if($.path){var B=$.path.lastIndexOf("/");B>=0&&($.path=$.path.substring(0,B+1))}R=c(l($),R)}return u(R)}e.computeSourceURL=M}),Pm=Object.prototype.hasOwnProperty,ya=typeof Map<"u";function si(){this._array=[],this._set=ya?new Map:Object.create(null)}si.fromArray=function(e,t){for(var n=new si,s=0,a=e.length;s<a;s++)n.add(e[s],t);return n};si.prototype.size=function(){return ya?this._set.size:Object.getOwnPropertyNames(this._set).length};si.prototype.add=function(e,t){var n=ya?e:Le.toSetString(e),s=ya?this.has(e):Pm.call(this._set,n),a=this._array.length;(!s||t)&&this._array.push(e),s||(ya?this._set.set(e,a):this._set[n]=a)};si.prototype.has=function(e){if(ya)return this._set.has(e);var t=Le.toSetString(e);return Pm.call(this._set,t)};si.prototype.indexOf=function(e){if(ya){var t=this._set.get(e);if(t>=0)return t}else{var n=Le.toSetString(e);if(Pm.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')};si.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};si.prototype.toArray=function(){return this._array.slice()};var r2=si,Rx={ArraySet:r2};function n2(r,e){var t=r.generatedLine,n=e.generatedLine,s=r.generatedColumn,a=e.generatedColumn;return n>t||n==t&&a>=s||Le.compareByGeneratedPositionsInflated(r,e)<=0}function Sh(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Sh.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)};Sh.prototype.add=function(e){n2(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};Sh.prototype.toArray=function(){return this._sorted||(this._array.sort(Le.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};var s2=Sh,i2={MappingList:s2},Cf=Rx.ArraySet,a2=i2.MappingList;function zn(r){r||(r={}),this._file=Le.getArg(r,"file",null),this._sourceRoot=Le.getArg(r,"sourceRoot",null),this._skipValidation=Le.getArg(r,"skipValidation",!1),this._sources=new Cf,this._names=new Cf,this._mappings=new a2,this._sourcesContents=null}zn.prototype._version=3;zn.fromSourceMap=function(e){var t=e.sourceRoot,n=new zn({file:e.file,sourceRoot:t});return e.eachMapping(function(s){var a={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(a.source=s.source,t!=null&&(a.source=Le.relative(t,a.source)),a.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(a.name=s.name)),n.addMapping(a)}),e.sources.forEach(function(s){var a=s;t!==null&&(a=Le.relative(t,s)),n._sources.has(a)||n._sources.add(a);var l=e.sourceContentFor(s);l!=null&&n.setSourceContent(s,l)}),n};zn.prototype.addMapping=function(e){var t=Le.getArg(e,"generated"),n=Le.getArg(e,"original",null),s=Le.getArg(e,"source",null),a=Le.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,s,a),s!=null&&(s=String(s),this._sources.has(s)||this._sources.add(s)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:s,name:a})};zn.prototype.setSourceContent=function(e,t){var n=e;this._sourceRoot!=null&&(n=Le.relative(this._sourceRoot,n)),t!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Le.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[Le.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};zn.prototype.applySourceMap=function(e,t,n){var s=t;if(t==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);s=e.file}var a=this._sourceRoot;a!=null&&(s=Le.relative(a,s));var l=new Cf,u=new Cf;this._mappings.unsortedForEach(function(c){if(c.source===s&&c.originalLine!=null){var m=e.originalPositionFor({line:c.originalLine,column:c.originalColumn});m.source!=null&&(c.source=m.source,n!=null&&(c.source=Le.join(n,c.source)),a!=null&&(c.source=Le.relative(a,c.source)),c.originalLine=m.line,c.originalColumn=m.column,m.name!=null&&(c.name=m.name))}var g=c.source;g!=null&&!l.has(g)&&l.add(g);var v=c.name;v!=null&&!u.has(v)&&u.add(v)},this),this._sources=l,this._names=u,e.sources.forEach(function(c){var m=e.sourceContentFor(c);m!=null&&(n!=null&&(c=Le.join(n,c)),a!=null&&(c=Le.relative(a,c)),this.setSourceContent(c,m))},this)};zn.prototype._validateMapping=function(e,t,n,s){if(t&&typeof t.line!="number"&&typeof t.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!n&&!s)){if(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:s}))}};zn.prototype._serializeMappings=function(){for(var e=0,t=1,n=0,s=0,a=0,l=0,u="",c,m,g,v,b=this._mappings.toArray(),x=0,E=b.length;x<E;x++){if(m=b[x],c="",m.generatedLine!==t)for(e=0;m.generatedLine!==t;)c+=";",t++;else if(x>0){if(!Le.compareByGeneratedPositionsInflated(m,b[x-1]))continue;c+=","}c+=lo.encode(m.generatedColumn-e),e=m.generatedColumn,m.source!=null&&(v=this._sources.indexOf(m.source),c+=lo.encode(v-l),l=v,c+=lo.encode(m.originalLine-1-s),s=m.originalLine-1,c+=lo.encode(m.originalColumn-n),n=m.originalColumn,m.name!=null&&(g=this._names.indexOf(m.name),c+=lo.encode(g-a),a=g)),u+=c}return u};zn.prototype._generateSourcesContent=function(e,t){return e.map(function(n){if(!this._sourcesContents)return null;t!=null&&(n=Le.relative(t,n));var s=Le.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)};zn.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};zn.prototype.toString=function(){return JSON.stringify(this.toJSON())};var o2=zn,Fx={SourceMapGenerator:o2},Im=Nt(function(r,e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,s,a,l,u,c){var m=Math.floor((s-n)/2)+n,g=u(a,l[m],!0);return g===0?m:g>0?s-m>1?t(m,s,a,l,u,c):c==e.LEAST_UPPER_BOUND?s<l.length?s:-1:m:m-n>1?t(n,m,a,l,u,c):c==e.LEAST_UPPER_BOUND?m:n<0?-1:n}e.search=function(s,a,l,u){if(a.length===0)return-1;var c=t(-1,a.length,s,a,l,u||e.GREATEST_LOWER_BOUND);if(c<0)return-1;for(;c-1>=0&&l(a[c],a[c-1],!0)===0;)--c;return c}});function rd(r,e,t){var n=r[e];r[e]=r[t],r[t]=n}function l2(r,e){return Math.round(r+Math.random()*(e-r))}function zd(r,e,t,n){if(t<n){var s=l2(t,n),a=t-1;rd(r,s,n);for(var l=r[n],u=t;u<n;u++)e(r[u],l)<=0&&(a+=1,rd(r,a,u));rd(r,a+1,u);var c=a+1;zd(r,e,t,c-1),zd(r,e,c+1,n)}}var u2=function(r,e){zd(r,e,0,r.length-1)},c2={quickSort:u2},Do=Rx.ArraySet,_u=c2.quickSort;function Zt(r,e){var t=r;return typeof r=="string"&&(t=Le.parseSourceMapInput(r)),t.sections!=null?new as(t,e):new zr(t,e)}Zt.fromSourceMap=function(r,e){return zr.fromSourceMap(r,e)};Zt.prototype._version=3;Zt.prototype.__generatedMappings=null;Object.defineProperty(Zt.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Zt.prototype.__originalMappings=null;Object.defineProperty(Zt.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Zt.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return n===";"||n===","};Zt.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")};Zt.GENERATED_ORDER=1;Zt.ORIGINAL_ORDER=2;Zt.GREATEST_LOWER_BOUND=1;Zt.LEAST_UPPER_BOUND=2;Zt.prototype.eachMapping=function(e,t,n){var s=t||null,a=n||Zt.GENERATED_ORDER,l;switch(a){case Zt.GENERATED_ORDER:l=this._generatedMappings;break;case Zt.ORIGINAL_ORDER:l=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var u=this.sourceRoot;l.map(function(c){var m=c.source===null?null:this._sources.at(c.source);return m=Le.computeSourceURL(u,m,this._sourceMapURL),{source:m,generatedLine:c.generatedLine,generatedColumn:c.generatedColumn,originalLine:c.originalLine,originalColumn:c.originalColumn,name:c.name===null?null:this._names.at(c.name)}},this).forEach(e,s)};Zt.prototype.allGeneratedPositionsFor=function(e){var t=Le.getArg(e,"line"),n={source:Le.getArg(e,"source"),originalLine:t,originalColumn:Le.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var s=[],a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",Le.compareByOriginalPositions,Im.LEAST_UPPER_BOUND);if(a>=0){var l=this._originalMappings[a];if(e.column===void 0)for(var u=l.originalLine;l&&l.originalLine===u;)s.push({line:Le.getArg(l,"generatedLine",null),column:Le.getArg(l,"generatedColumn",null),lastColumn:Le.getArg(l,"lastGeneratedColumn",null)}),l=this._originalMappings[++a];else for(var c=l.originalColumn;l&&l.originalLine===t&&l.originalColumn==c;)s.push({line:Le.getArg(l,"generatedLine",null),column:Le.getArg(l,"generatedColumn",null),lastColumn:Le.getArg(l,"lastGeneratedColumn",null)}),l=this._originalMappings[++a]}return s};var f2=Zt;function zr(r,e){var t=r;typeof r=="string"&&(t=Le.parseSourceMapInput(r));var n=Le.getArg(t,"version"),s=Le.getArg(t,"sources"),a=Le.getArg(t,"names",[]),l=Le.getArg(t,"sourceRoot",null),u=Le.getArg(t,"sourcesContent",null),c=Le.getArg(t,"mappings"),m=Le.getArg(t,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);l&&(l=Le.normalize(l)),s=s.map(String).map(Le.normalize).map(function(g){return l&&Le.isAbsolute(l)&&Le.isAbsolute(g)?Le.relative(l,g):g}),this._names=Do.fromArray(a.map(String),!0),this._sources=Do.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(g){return Le.computeSourceURL(l,g,e)}),this.sourceRoot=l,this.sourcesContent=u,this._mappings=c,this._sourceMapURL=e,this.file=m}zr.prototype=Object.create(Zt.prototype);zr.prototype.consumer=Zt;zr.prototype._findSourceIndex=function(r){var e=r;if(this.sourceRoot!=null&&(e=Le.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var t;for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==r)return t;return-1};zr.fromSourceMap=function(e,t){var n=Object.create(zr.prototype),s=n._names=Do.fromArray(e._names.toArray(),!0),a=n._sources=Do.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map(function(x){return Le.computeSourceURL(n.sourceRoot,x,t)});for(var l=e._mappings.toArray().slice(),u=n.__generatedMappings=[],c=n.__originalMappings=[],m=0,g=l.length;m<g;m++){var v=l[m],b=new Bx;b.generatedLine=v.generatedLine,b.generatedColumn=v.generatedColumn,v.source&&(b.source=a.indexOf(v.source),b.originalLine=v.originalLine,b.originalColumn=v.originalColumn,v.name&&(b.name=s.indexOf(v.name)),c.push(b)),u.push(b)}return _u(n.__originalMappings,Le.compareByOriginalPositions),n};zr.prototype._version=3;Object.defineProperty(zr.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Bx(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}zr.prototype._parseMappings=function(e,t){for(var n=1,s=0,a=0,l=0,u=0,c=0,m=e.length,g=0,v={},b={},x=[],E=[],S,C,_,A,I;g<m;)if(e.charAt(g)===";")n++,g++,s=0;else if(e.charAt(g)===",")g++;else{for(S=new Bx,S.generatedLine=n,A=g;A<m&&!this._charIsMappingSeparator(e,A);A++);if(C=e.slice(g,A),_=v[C],_)g+=C.length;else{for(_=[];g<A;)lo.decode(e,g,b),I=b.value,g=b.rest,_.push(I);if(_.length===2)throw new Error("Found a source, but no line and column");if(_.length===3)throw new Error("Found a source and line, but no column");v[C]=_}S.generatedColumn=s+_[0],s=S.generatedColumn,_.length>1&&(S.source=u+_[1],u+=_[1],S.originalLine=a+_[2],a=S.originalLine,S.originalLine+=1,S.originalColumn=l+_[3],l=S.originalColumn,_.length>4&&(S.name=c+_[4],c+=_[4])),E.push(S),typeof S.originalLine=="number"&&x.push(S)}_u(E,Le.compareByGeneratedPositionsDeflated),this.__generatedMappings=E,_u(x,Le.compareByOriginalPositions),this.__originalMappings=x};zr.prototype._findMapping=function(e,t,n,s,a,l){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[s]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[s]);return Im.search(e,t,a,l)};zr.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}};zr.prototype.originalPositionFor=function(e){var t={generatedLine:Le.getArg(e,"line"),generatedColumn:Le.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",Le.compareByGeneratedPositionsDeflated,Le.getArg(e,"bias",Zt.GREATEST_LOWER_BOUND));if(n>=0){var s=this._generatedMappings[n];if(s.generatedLine===t.generatedLine){var a=Le.getArg(s,"source",null);a!==null&&(a=this._sources.at(a),a=Le.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var l=Le.getArg(s,"name",null);return l!==null&&(l=this._names.at(l)),{source:a,line:Le.getArg(s,"originalLine",null),column:Le.getArg(s,"originalColumn",null),name:l}}}return{source:null,line:null,column:null,name:null}};zr.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};zr.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var s=e;this.sourceRoot!=null&&(s=Le.relative(this.sourceRoot,s));var a;if(this.sourceRoot!=null&&(a=Le.urlParse(this.sourceRoot))){var l=s.replace(/^file:\/\//,"");if(a.scheme=="file"&&this._sources.has(l))return this.sourcesContent[this._sources.indexOf(l)];if((!a.path||a.path=="/")&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(t)return null;throw new Error('"'+s+'" is not in the SourceMap.')};zr.prototype.generatedPositionFor=function(e){var t=Le.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:Le.getArg(e,"line"),originalColumn:Le.getArg(e,"column")},s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",Le.compareByOriginalPositions,Le.getArg(e,"bias",Zt.GREATEST_LOWER_BOUND));if(s>=0){var a=this._originalMappings[s];if(a.source===n.source)return{line:Le.getArg(a,"generatedLine",null),column:Le.getArg(a,"generatedColumn",null),lastColumn:Le.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var h2=zr;function as(r,e){var t=r;typeof r=="string"&&(t=Le.parseSourceMapInput(r));var n=Le.getArg(t,"version"),s=Le.getArg(t,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Do,this._names=new Do;var a={line:-1,column:0};this._sections=s.map(function(l){if(l.url)throw new Error("Support for url field in sections not implemented.");var u=Le.getArg(l,"offset"),c=Le.getArg(u,"line"),m=Le.getArg(u,"column");if(c<a.line||c===a.line&&m<a.column)throw new Error("Section offsets must be ordered and non-overlapping.");return a=u,{generatedOffset:{generatedLine:c+1,generatedColumn:m+1},consumer:new Zt(Le.getArg(l,"map"),e)}})}as.prototype=Object.create(Zt.prototype);as.prototype.constructor=Zt;as.prototype._version=3;Object.defineProperty(as.prototype,"sources",{get:function(){for(var r=[],e=0;e<this._sections.length;e++)for(var t=0;t<this._sections[e].consumer.sources.length;t++)r.push(this._sections[e].consumer.sources[t]);return r}});as.prototype.originalPositionFor=function(e){var t={generatedLine:Le.getArg(e,"line"),generatedColumn:Le.getArg(e,"column")},n=Im.search(t,this._sections,function(a,l){var u=a.generatedLine-l.generatedOffset.generatedLine;return u||a.generatedColumn-l.generatedOffset.generatedColumn}),s=this._sections[n];return s?s.consumer.originalPositionFor({line:t.generatedLine-(s.generatedOffset.generatedLine-1),column:t.generatedColumn-(s.generatedOffset.generatedLine===t.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};as.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};as.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var s=this._sections[n],a=s.consumer.sourceContentFor(e,!0);if(a)return a}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')};as.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(n.consumer._findSourceIndex(Le.getArg(e,"source"))!==-1){var s=n.consumer.generatedPositionFor(e);if(s){var a={line:s.line+(n.generatedOffset.generatedLine-1),column:s.column+(n.generatedOffset.generatedLine===s.line?n.generatedOffset.generatedColumn-1:0)};return a}}}return{line:null,column:null}};as.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var s=this._sections[n],a=s.consumer._generatedMappings,l=0;l<a.length;l++){var u=a[l],c=s.consumer._sources.at(u.source);c=Le.computeSourceURL(s.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var m=null;u.name&&(m=s.consumer._names.at(u.name),this._names.add(m),m=this._names.indexOf(m));var g={source:c,generatedLine:u.generatedLine+(s.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(s.generatedOffset.generatedLine===u.generatedLine?s.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:m};this.__generatedMappings.push(g),typeof g.originalLine=="number"&&this.__originalMappings.push(g)}_u(this.__generatedMappings,Le.compareByGeneratedPositionsDeflated),_u(this.__originalMappings,Le.compareByOriginalPositions)};var p2=as,d2={SourceMapConsumer:f2,BasicSourceMapConsumer:h2,IndexedSourceMapConsumer:p2},m2=Fx.SourceMapGenerator,g2=/(\r?\n)/,y2=10,Ko="$$$isSourceNode$$$";function Mn(r,e,t,n,s){this.children=[],this.sourceContents={},this.line=r==null?null:r,this.column=e==null?null:e,this.source=t==null?null:t,this.name=s==null?null:s,this[Ko]=!0,n!=null&&this.add(n)}Mn.fromStringWithSourceMap=function(e,t,n){var s=new Mn,a=e.split(g2),l=0,u=function(){var b=E(),x=E()||"";return b+x;function E(){return l<a.length?a[l++]:void 0}},c=1,m=0,g=null;return t.eachMapping(function(b){if(g!==null)if(c<b.generatedLine)v(g,u()),c++,m=0;else{var x=a[l]||"",E=x.substr(0,b.generatedColumn-m);a[l]=x.substr(b.generatedColumn-m),m=b.generatedColumn,v(g,E),g=b;return}for(;c<b.generatedLine;)s.add(u()),c++;if(m<b.generatedColumn){var x=a[l]||"";s.add(x.substr(0,b.generatedColumn)),a[l]=x.substr(b.generatedColumn),m=b.generatedColumn}g=b},this),l<a.length&&(g&&v(g,u()),s.add(a.splice(l).join(""))),t.sources.forEach(function(b){var x=t.sourceContentFor(b);x!=null&&(n!=null&&(b=Le.join(n,b)),s.setSourceContent(b,x))}),s;function v(b,x){if(b===null||b.source===void 0)s.add(x);else{var E=n?Le.join(n,b.source):b.source;s.add(new Mn(b.originalLine,b.originalColumn,E,x,b.name))}}};Mn.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(t){this.add(t)},this);else if(e[Ko]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Mn.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[Ko]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Mn.prototype.walk=function(e){for(var t,n=0,s=this.children.length;n<s;n++)t=this.children[n],t[Ko]?t.walk(e):t!==""&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})};Mn.prototype.join=function(e){var t,n,s=this.children.length;if(s>0){for(t=[],n=0;n<s-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this};Mn.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[Ko]?n.replaceRight(e,t):typeof n=="string"?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this};Mn.prototype.setSourceContent=function(e,t){this.sourceContents[Le.toSetString(e)]=t};Mn.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][Ko]&&this.children[t].walkSourceContents(e);for(var s=Object.keys(this.sourceContents),t=0,n=s.length;t<n;t++)e(Le.fromSetString(s[t]),this.sourceContents[s[t]])};Mn.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e};Mn.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new m2(e),s=!1,a=null,l=null,u=null,c=null;return this.walk(function(m,g){t.code+=m,g.source!==null&&g.line!==null&&g.column!==null?((a!==g.source||l!==g.line||u!==g.column||c!==g.name)&&n.addMapping({source:g.source,original:{line:g.line,column:g.column},generated:{line:t.line,column:t.column},name:g.name}),a=g.source,l=g.line,u=g.column,c=g.name,s=!0):s&&(n.addMapping({generated:{line:t.line,column:t.column}}),a=null,s=!1);for(var v=0,b=m.length;v<b;v++)m.charCodeAt(v)===y2?(t.line++,t.column=0,v+1===b?(a=null,s=!1):s&&n.addMapping({source:g.source,original:{line:g.line,column:g.column},generated:{line:t.line,column:t.column},name:g.name})):t.column++}),this.walkSourceContents(function(m,g){n.setSourceContent(m,g)}),{code:t.code,map:n}};var v2=Mn,b2={SourceNode:v2},kh=Fx.SourceMapGenerator,Hd=d2.SourceMapConsumer,w2=b2.SourceNode,$x={SourceMapGenerator:kh,SourceMapConsumer:Hd,SourceNode:w2};const Xu="/*#__PURE__*/",af=r=>`${wn[r]}: _${wn[r]}`;function $0(r,{mode:e="function",prefixIdentifiers:t=e==="module",sourceMap:n=!1,filename:s="template.vue.html",scopeId:a=null,optimizeImports:l=!1,runtimeGlobalName:u="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:m="vue/server-renderer",ssr:g=!1,isTS:v=!1,inSSR:b=!1}){const x={mode:e,prefixIdentifiers:t,sourceMap:n,filename:s,scopeId:a,optimizeImports:l,runtimeGlobalName:u,runtimeModuleName:c,ssrRuntimeModuleName:m,ssr:g,isTS:v,inSSR:b,source:r.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(C){return`_${wn[C]}`},push(C,_){if(x.code+=C,x.map){if(_){let A;if(_.type===4&&!_.isStatic){const I=_.content.replace(/^_ctx\./,"");I!==_.content&&Bi(I)&&(A=I)}S(_.loc.start,A)}Oo(x,C),_&&_.loc!==ar&&S(_.loc.end)}},indent(){E(++x.indentLevel)},deindent(C=!1){C?--x.indentLevel:E(--x.indentLevel)},newline(){E(x.indentLevel)}};function E(C){x.push(`
`+" ".repeat(C))}function S(C,_){x.map.addMapping({name:_,source:x.filename,original:{line:C.line,column:C.column-1},generated:{line:x.line,column:x.column-1}})}return n&&(x.map=new kh,x.map.setSourceContent(s,x.source)),x}function Nm(r,e={}){const t=$0(r,e);e.onContextCreated&&e.onContextCreated(t);const{mode:n,push:s,prefixIdentifiers:a,indent:l,deindent:u,newline:c,scopeId:m,ssr:g}=t,v=r.helpers.length>0,b=!a&&n!=="module",x=m!=null&&n==="module",E=!!e.inline,S=E?$0(r,e):t;n==="module"?S2(r,S,x,E):x2(r,S);const C=g?"ssrRender":"render",_=g?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"];e.bindingMetadata&&!e.inline&&_.push("$props","$setup","$data","$options");const A=e.isTS?_.map(I=>`${I}: any`).join(","):_.join(", ");if(s(E?`(${A}) => {`:`function ${C}(${A}) {`),l(),b&&(s("with (_ctx) {"),l(),v&&(s(`const { ${r.helpers.map(af).join(", ")} } = _Vue`),s(`
`),c())),r.components.length&&(j0(r.components,"component",t),(r.directives.length||r.temps>0)&&c()),r.directives.length&&(j0(r.directives,"directive",t),r.temps>0&&c()),r.temps>0){s("let ");for(let I=0;I<r.temps;I++)s(`${I>0?", ":""}_temp${I}`)}return(r.components.length||r.directives.length||r.temps)&&(s(`
`),c()),g||s("return "),r.codegenNode?sr(r.codegenNode,t):s("null"),b&&(u(),s("}")),u(),s("}"),{ast:r,code:t.code,preamble:E?S.code:"",map:t.map?t.map.toJSON():void 0}}function x2(r,e){const{ssr:t,prefixIdentifiers:n,push:s,newline:a,runtimeModuleName:l,runtimeGlobalName:u,ssrRuntimeModuleName:c}=e,m=t?`require(${JSON.stringify(l)})`:u;if(r.helpers.length>0){if(n)s(`const { ${r.helpers.map(af).join(", ")} } = ${m}
`);else if(s(`const _Vue = ${m}
`),r.hoists.length){const g=[Hu,rh,Wo,nh,sh].filter(v=>r.helpers.includes(v)).map(af).join(", ");s(`const { ${g} } = _Vue
`)}}r.ssrHelpers&&r.ssrHelpers.length&&s(`const { ${r.ssrHelpers.map(af).join(", ")} } = require("${c}")
`),jx(r.hoists,e),a(),s("return ")}function S2(r,e,t,n){const{push:s,newline:a,optimizeImports:l,runtimeModuleName:u,ssrRuntimeModuleName:c}=e;t&&r.hoists.length&&r.helpers.push(fh,hh),r.helpers.length&&(l?(s(`import { ${r.helpers.map(m=>wn[m]).join(", ")} } from ${JSON.stringify(u)}
`),s(`
// Binding optimization for webpack code-split
const ${r.helpers.map(m=>`_${wn[m]} = ${wn[m]}`).join(", ")}
`)):s(`import { ${r.helpers.map(m=>`${wn[m]} as _${wn[m]}`).join(", ")} } from ${JSON.stringify(u)}
`)),r.ssrHelpers&&r.ssrHelpers.length&&s(`import { ${r.ssrHelpers.map(m=>`${wn[m]} as _${wn[m]}`).join(", ")} } from "${c}"
`),r.imports.length&&(k2(r.imports,e),a()),jx(r.hoists,e),a(),n||s("export ")}function j0(r,e,{helper:t,push:n,newline:s,isTS:a}){const l=t(e==="component"?gu:ih);for(let u=0;u<r.length;u++){let c=r[u];const m=c.endsWith("__self");m&&(c=c.slice(0,-6)),n(`const ${ku(c,e)} = ${l}(${JSON.stringify(c)}${m?", true":""})${a?"!":""}`),u<r.length-1&&s()}}function jx(r,e){if(!r.length)return;e.pure=!0;const{push:t,newline:n,helper:s,scopeId:a,mode:l}=e,u=a!=null&&l!=="function";n(),u&&(t(`const _withScopeId = n => (${s(fh)}("${a}"),n=n(),${s(hh)}(),n)`),n());for(let c=0;c<r.length;c++){const m=r[c];if(m){const g=u&&m.type===13;t(`const _hoisted_${c+1} = ${g?`${Xu} _withScopeId(() => `:""}`),sr(m,e),g&&t(")"),n()}}e.pure=!1}function k2(r,e){!r.length||r.forEach(t=>{e.push("import "),sr(t.exp,e),e.push(` from '${t.path}'`),e.newline()})}function T2(r){return Ct(r)||r.type===4||r.type===2||r.type===5||r.type===8}function Th(r,e){const t=r.length>3||r.some(n=>dn(n)||!T2(n));e.push("["),t&&e.indent(),Yo(r,e,t),t&&e.deindent(),e.push("]")}function Yo(r,e,t=!1,n=!0){const{push:s,newline:a}=e;for(let l=0;l<r.length;l++){const u=r[l];Ct(u)?s(u):dn(u)?Th(u,e):sr(u,e),l<r.length-1&&(t?(n&&s(","),a()):n&&s(", "))}}function sr(r,e){if(Ct(r)){e.push(r);return}if(Uo(r)){e.push(e.helper(r));return}switch(r.type){case 1:case 9:case 11:jd(r.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),sr(r.codegenNode,e);break;case 2:_2(r,e);break;case 4:Ux(r,e);break;case 5:E2(r,e);break;case 12:sr(r.codegenNode,e);break;case 8:qx(r,e);break;case 3:C2(r,e);break;case 13:P2(r,e);break;case 14:N2(r,e);break;case 15:O2(r,e);break;case 17:L2(r,e);break;case 18:M2(r,e);break;case 19:D2(r,e);break;case 20:R2(r,e);break;case 21:Yo(r.body,e,!0,!1);break;case 22:F2(r,e);break;case 23:Wx(r,e);break;case 24:B2(r,e);break;case 25:$2(r,e);break;case 26:j2(r,e);break;case 10:break;default:return jd(!1,`unhandled codegen node type: ${r.type}`),r}}function _2(r,e){e.push(JSON.stringify(r.content),r)}function Ux(r,e){const{content:t,isStatic:n}=r;e.push(n?JSON.stringify(t):t,r)}function E2(r,e){const{push:t,helper:n,pure:s}=e;s&&t(Xu),t(`${n(Vu)}(`),sr(r.content,e),t(")")}function qx(r,e){for(let t=0;t<r.children.length;t++){const n=r.children[t];Ct(n)?e.push(n):sr(n,e)}}function A2(r,e){const{push:t}=e;if(r.type===8)t("["),qx(r,e),t("]");else if(r.isStatic){const n=Bi(r.content)?r.content:JSON.stringify(r.content);t(n,r)}else t(`[${r.content}]`,r)}function C2(r,e){const{push:t,helper:n,pure:s}=e;s&&t(Xu),t(`${n(Wo)}(${JSON.stringify(r.content)})`,r)}function P2(r,e){const{push:t,helper:n,pure:s}=e,{tag:a,props:l,children:u,patchFlag:c,dynamicProps:m,directives:g,isBlock:v,disableTracking:b,isComponent:x}=r;g&&t(n(ah)+"("),v&&t(`(${n(Di)}(${b?"true":""}), `),s&&t(Xu);const E=v?Aa(e.inSSR,x):Ea(e.inSSR,x);t(n(E)+"(",r),Yo(I2([a,l,u,c,m]),e),t(")"),v&&t(")"),g&&(t(", "),sr(g,e),t(")"))}function I2(r){let e=r.length;for(;e--&&r[e]==null;);return r.slice(0,e+1).map(t=>t||"null")}function N2(r,e){const{push:t,helper:n,pure:s}=e,a=Ct(r.callee)?r.callee:n(r.callee);s&&t(Xu),t(a+"(",r),Yo(r.arguments,e),t(")")}function O2(r,e){const{push:t,indent:n,deindent:s,newline:a}=e,{properties:l}=r;if(!l.length){t("{}",r);return}const u=l.length>1||l.some(c=>c.value.type!==4);t(u?"{":"{ "),u&&n();for(let c=0;c<l.length;c++){const{key:m,value:g}=l[c];A2(m,e),t(": "),sr(g,e),c<l.length-1&&(t(","),a())}u&&s(),t(u?"}":" }")}function L2(r,e){Th(r.elements,e)}function M2(r,e){const{push:t,indent:n,deindent:s}=e,{params:a,returns:l,body:u,newline:c,isSlot:m}=r;m&&t(`_${wn[ph]}(`),t("(",r),dn(a)?Yo(a,e):a&&sr(a,e),t(") => "),(c||u)&&(t("{"),n()),l?(c&&t("return "),dn(l)?Th(l,e):sr(l,e)):u&&sr(u,e),(c||u)&&(s(),t("}")),m&&t(")")}function D2(r,e){const{test:t,consequent:n,alternate:s,newline:a}=r,{push:l,indent:u,deindent:c,newline:m}=e;if(t.type===4){const v=!Bi(t.content);v&&l("("),Ux(t,e),v&&l(")")}else l("("),sr(t,e),l(")");a&&u(),e.indentLevel++,a||l(" "),l("? "),sr(n,e),e.indentLevel--,a&&m(),a||l(" "),l(": ");const g=s.type===19;g||e.indentLevel++,sr(s,e),g||e.indentLevel--,a&&c(!0)}function R2(r,e){const{push:t,helper:n,indent:s,deindent:a,newline:l}=e;t(`_cache[${r.index}] || (`),r.isVNode&&(s(),t(`${n(yu)}(-1),`),l()),t(`_cache[${r.index}] = `),sr(r.value,e),r.isVNode&&(t(","),l(),t(`${n(yu)}(1),`),l(),t(`_cache[${r.index}]`),a()),t(")")}function F2(r,e){const{push:t,indent:n,deindent:s}=e;t("`");const a=r.elements.length,l=a>3;for(let u=0;u<a;u++){const c=r.elements[u];Ct(c)?t(c.replace(/(`|\$|\\)/g,"\\$1")):(t("${"),l&&n(),sr(c,e),l&&s(),t("}"))}t("`")}function Wx(r,e){const{push:t,indent:n,deindent:s}=e,{test:a,consequent:l,alternate:u}=r;t("if ("),sr(a,e),t(") {"),n(),sr(l,e),s(),t("}"),u&&(t(" else "),u.type===23?Wx(u,e):(t("{"),n(),sr(u,e),s(),t("}")))}function B2(r,e){sr(r.left,e),e.push(" = "),sr(r.right,e)}function $2(r,e){e.push("("),Yo(r.expressions,e),e.push(")")}function j2({returns:r},e){e.push("return "),dn(r)?Th(r,e):sr(r,e)}class U2{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e}}replace(e,t,n,s){e&&(n!==null?e[t][n]=s:e[t]=s)}remove(e,t,n){e&&(n!==null?e[t].splice(n,1):delete e[t])}}class q2 extends U2{constructor(e,t){super(),this.enter=e,this.leave=t}visit(e,t,n,s){if(e){if(this.enter){const a=this.should_skip,l=this.should_remove,u=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,t,n,s),this.replacement&&(e=this.replacement,this.replace(t,n,s,e)),this.should_remove&&this.remove(t,n,s);const c=this.should_skip,m=this.should_remove;if(this.should_skip=a,this.should_remove=l,this.replacement=u,c)return e;if(m)return null}for(const a in e){const l=e[a];if(typeof l=="object")if(Array.isArray(l))for(let u=0;u<l.length;u+=1)l[u]!==null&&typeof l[u].type=="string"&&(this.visit(l[u],e,a,u)||u--);else l!==null&&typeof l.type=="string"&&this.visit(l,e,a,null)}if(this.leave){const a=this.replacement,l=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,t,n,s),this.replacement&&(e=this.replacement,this.replace(t,n,s,e)),this.should_remove&&this.remove(t,n,s);const u=this.should_remove;if(this.replacement=a,this.should_remove=l,u)return null}}return e}}function _h(r,{enter:e,leave:t}){return new q2(e,t).visit(r,null)}function Jo(r,e,t=!1,n=[],s=Object.create(null)){const a=r.type==="Program"&&r.body[0].type==="ExpressionStatement"&&r.body[0].expression;_h(r,{enter(l,u){if(u&&n.push(u),u&&u.type.startsWith("TS")&&u.type!=="TSAsExpression"&&u.type!=="TSNonNullExpression"&&u.type!=="TSTypeAssertion")return this.skip();if(l.type==="Identifier"){const c=!!s[l.name],m=Om(l,u,n);(t||m&&!c)&&e(l,u,n,m,c)}else l.type==="ObjectProperty"&&u.type==="ObjectPattern"?l.inPattern=!0:pa(l)?Lm(l,c=>U0(l,c,s)):l.type==="BlockStatement"&&zx(l,c=>U0(l,c,s))},leave(l,u){if(u&&n.pop(),l!==a&&l.scopeIds)for(const c of l.scopeIds)s[c]--,s[c]===0&&delete s[c]}})}function Om(r,e,t){if(!e)return!0;if(r.name==="arguments")return!1;if(W2(r,e))return!0;switch(e.type){case"AssignmentExpression":case"AssignmentPattern":return!0;case"ObjectPattern":case"ArrayPattern":return Xo(e,t)}return!1}function Xo(r,e){if(r&&(r.type==="ObjectProperty"||r.type==="ArrayPattern")){let t=e.length;for(;t--;){const n=e[t];if(n.type==="AssignmentExpression")return!0;if(n.type!=="ObjectProperty"&&!n.type.endsWith("Pattern"))break}}return!1}function Lm(r,e){for(const t of r.params)for(const n of Zn(t))e(n)}function zx(r,e){for(const t of r.body)if(t.type==="VariableDeclaration"){if(t.declare)continue;for(const n of t.declarations)for(const s of Zn(n.id))e(s)}else if(t.type==="FunctionDeclaration"||t.type==="ClassDeclaration"){if(t.declare||!t.id)continue;e(t.id)}}function Zn(r,e=[]){switch(r.type){case"Identifier":e.push(r);break;case"MemberExpression":let t=r;for(;t.type==="MemberExpression";)t=t.object;e.push(t);break;case"ObjectPattern":for(const n of r.properties)n.type==="RestElement"?Zn(n.argument,e):Zn(n.value,e);break;case"ArrayPattern":r.elements.forEach(n=>{n&&Zn(n,e)});break;case"RestElement":Zn(r.argument,e);break;case"AssignmentPattern":Zn(r.left,e);break}return e}function U0(r,e,t){const{name:n}=e;r.scopeIds&&r.scopeIds.has(n)||(n in t?t[n]++:t[n]=1,(r.scopeIds||(r.scopeIds=new Set)).add(n))}const pa=r=>/Function(?:Expression|Declaration)$|Method$/.test(r.type),Qo=r=>r&&(r.type==="ObjectProperty"||r.type==="ObjectMethod")&&!r.computed,Hx=(r,e)=>Qo(e)&&e.key===r;function W2(r,e,t){switch(e.type){case"MemberExpression":case"OptionalMemberExpression":return e.property===r?!!e.computed:e.object===r;case"JSXMemberExpression":return e.object===r;case"VariableDeclarator":return e.init===r;case"ArrowFunctionExpression":return e.body===r;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return e.key===r?!!e.computed:!1;case"ObjectProperty":return e.key===r?!!e.computed:!t||t.type!=="ObjectPattern";case"ClassProperty":return e.key===r?!!e.computed:!0;case"ClassPrivateProperty":return e.key!==r;case"ClassDeclaration":case"ClassExpression":return e.superClass===r;case"AssignmentExpression":return e.right===r;case"AssignmentPattern":return e.right===r;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return t!=null&&t.source?!1:e.local===r;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return e.key!==r;case"TSEnumMember":return e.id!==r;case"TSPropertySignature":return e.key===r?!!e.computed:!0}return!0}const z2=Cr("true,false,null,this"),Mm=(r,e)=>{if(r.type===5)r.content=pn(r.content,e);else if(r.type===1)for(let t=0;t<r.props.length;t++){const n=r.props[t];if(n.type===7&&n.name!=="for"){const s=n.exp,a=n.arg;s&&s.type===4&&!(n.name==="on"&&a)&&(n.exp=pn(s,e,n.name==="slot")),a&&a.type===4&&!a.isStatic&&(n.arg=pn(a,e))}}};function pn(r,e,t=!1,n=!1,s=Object.create(e.identifiers)){if(!e.prefixIdentifiers||!r.content.trim())return r;const{inline:a,bindingMetadata:l}=e,u=(_,A,I)=>{const M=$w(l,_)&&l[_];if(a){const O=A&&A.type==="AssignmentExpression"&&A.left===I,R=A&&A.type==="UpdateExpression"&&A.argument===I,j=A&&Xo(A,x);if(M==="setup-const"||M==="setup-reactive-const"||s[_])return _;if(M==="setup-ref")return`${_}.value`;if(M==="setup-maybe-ref")return O||R||j?`${_}.value`:`${e.helperString(Po)}(${_})`;if(M==="setup-let")if(O){const{right:$,operator:B}=A,F=c.slice($.start-1,$.end-1),H=Vx(pn(ze(F,!1),e,!1,!1,E));return`${e.helperString(vu)}(${_})${e.isTS?` //@ts-ignore
`:""} ? ${_}.value ${B} ${H} : ${_}`}else if(R){I.start=A.start,I.end=A.end;const{prefix:$,operator:B}=A,F=$?B:"",H=$?"":B;return`${e.helperString(vu)}(${_})${e.isTS?` //@ts-ignore
`:""} ? ${F}${_}.value${H} : ${F}${_}${H}`}else return j?_:`${e.helperString(Po)}(${_})`;else{if(M==="props")return yf(_);if(M==="props-aliased")return yf(l.__propsAliases[_])}}else{if(M&&M.startsWith("setup"))return`$setup.${_}`;if(M==="props-aliased")return`$props['${l.__propsAliases[_]}']`;if(M)return`$${M}.${_}`}return`_ctx.${_}`},c=r.content,m=c.indexOf("(")>-1||c.indexOf(".")>0;if(Bi(c)){const _=e.identifiers[c],A=Ow(c),I=z2(c);return!t&&!_&&!A&&!I?(l[r.content]==="setup-const"&&(r.constType=1),r.content=u(c)):_||(I?r.constType=3:r.constType=2),r}let g;const v=n?` ${c} `:`(${c})${t?"=>{}":""}`;try{g=Ta(v,{plugins:e.expressionPlugins}).program}catch(_){return e.onError(jt(44,r.loc,void 0,_.message)),r}const b=[],x=[],E=Object.create(e.identifiers);Jo(g,(_,A,I,M,O)=>{if(Hx(_,A))return;const R=M&&H2(_);R&&!O?(Qo(A)&&A.shorthand&&(_.prefix=`${_.name}: `),_.name=u(_.name,A,_),b.push(_)):(!(R&&O)&&!m&&(_.isConstant=!0),b.push(_))},!0,x,E);const S=[];b.sort((_,A)=>_.start-A.start),b.forEach((_,A)=>{const I=_.start-1,M=_.end-1,O=b[A-1],R=c.slice(O?O.end-1:0,I);(R.length||_.prefix)&&S.push(R+(_.prefix||""));const j=c.slice(I,M);S.push(ze(_.name,!1,{source:j,start:_a(r.loc.start,j,I),end:_a(r.loc.start,j,M)},_.isConstant?3:0)),A===b.length-1&&M<c.length&&S.push(c.slice(M))});let C;return S.length?C=Wr(S,r.loc):(C=r,C.constType=m?0:3),C.identifiers=Object.keys(E),C}function H2(r){return!(Ow(r.name)||r.name==="require")}function Vx(r){return Ct(r)?r:r.type===4?r.content:r.children.map(Vx).join("")}const V2=Yu(/^(if|else|else-if)$/,(r,e,t)=>Dm(r,e,t,(n,s,a)=>{const l=t.parent.children;let u=l.indexOf(n),c=0;for(;u-->=0;){const m=l[u];m&&m.type===9&&(c+=m.branches.length)}return()=>{if(a)n.codegenNode=W0(s,c,t);else{const m=K2(n.codegenNode);m.alternate=W0(s,c+n.branches.length-1,t)}}}));function Dm(r,e,t,n){if(e.name!=="else"&&(!e.exp||!e.exp.content.trim())){const s=e.exp?e.exp.loc:r.loc;t.onError(jt(28,e.loc)),e.exp=ze("true",!1,s)}if(t.prefixIdentifiers&&e.exp&&(e.exp=pn(e.exp,t)),e.name==="if"){const s=q0(r,e),a={type:9,loc:r.loc,branches:[s]};if(t.replaceNode(a),n)return n(a,s,!0)}else{const s=t.parent.children,a=[];let l=s.indexOf(r);for(;l-->=-1;){const u=s[l];if(u&&u.type===3){t.removeNode(u),a.unshift(u);continue}if(u&&u.type===2&&!u.content.trim().length){t.removeNode(u);continue}if(u&&u.type===9){e.name==="else-if"&&u.branches[u.branches.length-1].condition===void 0&&t.onError(jt(30,r.loc)),t.removeNode();const c=q0(r,e);a.length&&!(t.parent&&t.parent.type===1&&ts(t.parent.tag,"transition"))&&(c.children=[...a,...c.children]);{const g=c.userKey;g&&u.branches.forEach(({userKey:v})=>{G2(v,g)&&t.onError(jt(29,c.userKey.loc))})}u.branches.push(c);const m=n&&n(u,c,!1);Go(c,t),m&&m(),t.currentNode=null}else t.onError(jt(30,r.loc));break}}}function q0(r,e){const t=r.tagType===3;return{type:10,loc:r.loc,condition:e.name==="else"?void 0:e.exp,children:t&&!Or(r,"for")?r.children:[r],userKey:Tn(r,"key"),isTemplateIf:t}}function W0(r,e,t){return r.condition?Ri(r.condition,z0(r,e,t),ut(t.helper(Wo),['"v-if"',"true"])):z0(r,e,t)}function z0(r,e,t){const{helper:n}=t,s=Ft("key",ze(`${e}`,!1,ar,2)),{children:a}=r,l=a[0];if(a.length!==1||l.type!==1)if(a.length===1&&l.type===11){const c=l.codegenNode;return Su(c,s,t),c}else{let c=64,m=xs[64];return!r.isTemplateIf&&a.filter(g=>g.type!==3).length===1&&(c|=2048,m+=`, ${xs[2048]}`),Io(t,n(Eo),xn([s]),a,c+` /* ${m} */`,void 0,void 0,!0,!1,!1,r.loc)}else{const c=l.codegenNode,m=_x(c);return m.type===13&&vh(m,t),Su(m,s,t),c}}function G2(r,e){if(!r||r.type!==e.type)return!1;if(r.type===6){if(r.value.content!==e.value.content)return!1}else{const t=r.exp,n=e.exp;if(t.type!==n.type||t.type!==4||t.isStatic!==n.isStatic||t.content!==n.content)return!1}return!0}function K2(r){for(;;)if(r.type===19)if(r.alternate.type===19)r=r.alternate;else return r;else r.type===20&&(r=r.value)}const Y2=Yu("for",(r,e,t)=>{const{helper:n,removeHelper:s}=t;return Rm(r,e,t,a=>{const l=ut(n(oh),[a.source]),u=Lo(r),c=Or(r,"memo"),m=Tn(r,"key"),g=m&&(m.type===6?ze(m.value.content,!0):m.exp),v=m?Ft("key",g):null;u&&(c&&(c.exp=pn(c.exp,t)),v&&m.type!==6&&(v.value=pn(v.value,t)));const b=a.source.type===4&&a.source.constType>0,x=b?64:m?128:256;return a.codegenNode=Io(t,n(Eo),void 0,l,x+` /* ${xs[x]} */`,void 0,void 0,!0,!b,!1,r.loc),()=>{let E;const{children:S}=a;u&&r.children.some(A=>{if(A.type===1){const I=Tn(A,"key");if(I)return t.onError(jt(33,I.loc)),!0}});const C=S.length!==1||S[0].type!==1,_=Mo(r)?r:u&&r.children.length===1&&Mo(r.children[0])?r.children[0]:null;if(_?(E=_.codegenNode,u&&v&&Su(E,v,t)):C?E=Io(t,n(Eo),v?xn([v]):void 0,r.children,64+` /* ${xs[64]} */`,void 0,void 0,!0,void 0,!1):(E=S[0].codegenNode,u&&v&&Su(E,v,t),E.isBlock!==!b&&(E.isBlock?(s(Di),s(Aa(t.inSSR,E.isComponent))):s(Ea(t.inSSR,E.isComponent))),E.isBlock=!b,E.isBlock?(n(Di),n(Aa(t.inSSR,E.isComponent))):n(Ea(t.inSSR,E.isComponent))),c){const A=Rn(Eu(a.parseResult,[ze("_cached")]));A.body=Gu([Wr(["const _memo = (",c.exp,")"]),Wr(["if (_cached",...g?[" && _cached.key === ",g]:[],` && ${t.helperString(tm)}(_cached, _memo)) return _cached`]),Wr(["const _item = ",E]),ze("_item.memo = _memo"),ze("return _item")]),l.arguments.push(A,ze("_cache"),ze(String(t.cached++)))}else l.arguments.push(Rn(Eu(a.parseResult),E,!0))}})});function Rm(r,e,t,n){if(!e.exp){t.onError(jt(31,e.loc));return}const s=Fm(e.exp,t);if(!s){t.onError(jt(32,e.loc));return}const{addIdentifiers:a,removeIdentifiers:l,scopes:u}=t,{source:c,value:m,key:g,index:v}=s,b={type:11,loc:e.loc,source:c,valueAlias:m,keyAlias:g,objectIndexAlias:v,parseResult:s,children:Lo(r)?r.children:[r]};t.replaceNode(b),u.vFor++,t.prefixIdentifiers&&(m&&a(m),g&&a(g),v&&a(v));const x=n&&n(b);return()=>{u.vFor--,t.prefixIdentifiers&&(m&&l(m),g&&l(g),v&&l(v)),x&&x()}}const J2=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,H0=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,X2=/^\(|\)$/g;function Fm(r,e){const t=r.loc,n=r.content,s=n.match(J2);if(!s)return;const[,a,l]=s,u={source:Dc(t,l.trim(),n.indexOf(l,a.length)),value:void 0,key:void 0,index:void 0};e.prefixIdentifiers&&(u.source=pn(u.source,e));let c=a.trim().replace(X2,"").trim();const m=a.indexOf(c),g=c.match(H0);if(g){c=c.replace(H0,"").trim();const v=g[1].trim();let b;if(v&&(b=n.indexOf(v,m+c.length),u.key=Dc(t,v,b),e.prefixIdentifiers&&(u.key=pn(u.key,e,!0))),g[2]){const x=g[2].trim();x&&(u.index=Dc(t,x,n.indexOf(x,u.key?b+v.length:m+c.length)),e.prefixIdentifiers&&(u.index=pn(u.index,e,!0)))}}return c&&(u.value=Dc(t,c,m),e.prefixIdentifiers&&(u.value=pn(u.value,e,!0))),u}function Dc(r,e,t){return ze(e,!1,_m(r,t,e.length))}function Eu({value:r,key:e,index:t},n=[]){return Q2([r,e,t,...n])}function Q2(r){let e=r.length;for(;e--&&!r[e];);return r.slice(0,e+1).map((t,n)=>t||ze("_".repeat(n+1),!1))}const V0=ze("undefined",!1),Bm=(r,e)=>{if(r.type===1&&(r.tagType===1||r.tagType===3)){const t=Or(r,"slot");if(t){const n=t.exp;return e.prefixIdentifiers&&n&&e.addIdentifiers(n),e.scopes.vSlot++,()=>{e.prefixIdentifiers&&n&&e.removeIdentifiers(n),e.scopes.vSlot--}}}},$m=(r,e)=>{let t;if(Lo(r)&&r.props.some(Em)&&(t=Or(r,"for"))){const n=t.parseResult=Fm(t.exp,e);if(n){const{value:s,key:a,index:l}=n,{addIdentifiers:u,removeIdentifiers:c}=e;return s&&u(s),a&&u(a),l&&u(l),()=>{s&&c(s),a&&c(a),l&&c(l)}}}},Z2=(r,e,t)=>Rn(r,e,!1,!0,e.length?e[0].loc:t);function Au(r,e,t=Z2){e.helper(ph);const{children:n,loc:s}=r,a=[],l=[];let u=e.scopes.vSlot>0||e.scopes.vFor>0;!e.ssr&&e.prefixIdentifiers&&(u=bn(r,e.identifiers));const c=Or(r,"slot",!0);if(c){const{arg:C,exp:_}=c;C&&!rn(C)&&(u=!0),a.push(Ft(C||ze("default",!0),t(_,n,s)))}let m=!1,g=!1;const v=[],b=new Set;let x=0;for(let C=0;C<n.length;C++){const _=n[C];let A;if(!Lo(_)||!(A=Or(_,"slot",!0))){_.type!==3&&v.push(_);continue}if(c){e.onError(jt(37,A.loc));break}m=!0;const{children:I,loc:M}=_,{arg:O=ze("default",!0),exp:R,loc:j}=A;let $;rn(O)?$=O?O.content:"default":u=!0;const B=t(R,I,M);let F,H,V;if(F=Or(_,"if"))u=!0,l.push(Ri(F.exp,Rc(O,B,x++),V0));else if(H=Or(_,/^else(-if)?$/,!0)){let X=C,J;for(;X--&&(J=n[X],J.type===3););if(J&&Lo(J)&&Or(J,"if")){n.splice(C,1),C--;let D=l[l.length-1];for(;D.alternate.type===19;)D=D.alternate;D.alternate=H.exp?Ri(H.exp,Rc(O,B,x++),V0):Rc(O,B,x++)}else e.onError(jt(30,H.loc))}else if(V=Or(_,"for")){u=!0;const X=V.parseResult||Fm(V.exp,e);X?l.push(ut(e.helper(oh),[X.source,Rn(Eu(X),Rc(O,B),!0)])):e.onError(jt(32,V.loc))}else{if($){if(b.has($)){e.onError(jt(38,j));continue}b.add($),$==="default"&&(g=!0)}a.push(Ft(O,B))}}if(!c){const C=(_,A)=>{const I=t(_,A,s);return Ft("default",I)};m?v.length&&v.some(_=>Gx(_))&&(g?e.onError(jt(39,v[0].loc)):a.push(C(void 0,v))):a.push(C(void 0,n))}const E=u?2:of(r.children)?3:1;let S=xn(a.concat(Ft("_",ze(E+` /* ${uC[E]} */`,!1))),s);return l.length&&(S=ut(e.helper(em),[S,Oa(l)])),{slots:S,hasDynamicSlots:u}}function Rc(r,e,t){const n=[Ft("name",r),Ft("fn",e)];return t!=null&&n.push(Ft("key",ze(String(t),!0))),xn(n)}function of(r){for(let e=0;e<r.length;e++){const t=r[e];switch(t.type){case 1:if(t.tagType===2||of(t.children))return!0;break;case 9:if(of(t.branches))return!0;break;case 10:case 11:if(of(t.children))return!0;break}}return!1}function Gx(r){return r.type!==2&&r.type!==12?!0:r.type===2?!!r.content.trim():Gx(r.content)}const Kx=new WeakMap,Yx=(r,e)=>function(){if(r=e.currentNode,!(r.type===1&&(r.tagType===0||r.tagType===1)))return;const{tag:n,props:s}=r,a=r.tagType===1;let l=a?Eh(r,e):`"${n}"`;const u=oi(l)&&l.callee===Ao;let c,m,g,v=0,b,x,E,S=u||l===ga||l===qo||!a&&(n==="svg"||n==="foreignObject");if(s.length>0){const C=Zo(r,e,void 0,a,u);c=C.props,v=C.patchFlag,x=C.dynamicPropNames;const _=C.directives;E=_&&_.length?Oa(_.map(A=>jm(A,e))):void 0,C.shouldUseBlock&&(S=!0)}if(r.children.length>0)if(l===mu&&(S=!0,v|=1024,r.children.length>1&&e.onError(jt(45,{start:r.children[0].loc.start,end:r.children[r.children.length-1].loc.end,source:""}))),a&&l!==ga&&l!==mu){const{slots:_,hasDynamicSlots:A}=Au(r,e);m=_,A&&(v|=1024)}else if(r.children.length===1&&l!==ga){const _=r.children[0],A=_.type,I=A===5||A===8;I&&Sn(_,e)===0&&(v|=1),I||A===2?m=_:m=r.children}else m=r.children;if(v!==0){if(v<0)g=v+` /* ${xs[v]} */`;else{const C=Object.keys(xs).map(Number).filter(_=>_>0&&v&_).map(_=>xs[_]).join(", ");g=v+` /* ${C} */`}x&&x.length&&(b=tN(x))}r.codegenNode=Io(e,l,c,m,g,b,E,!!S,!1,a,r.loc)};function Eh(r,e,t=!1){let{tag:n}=r;const s=Gd(n),a=Tn(r,"is");if(a)if(s){const c=a.type===6?a.value&&ze(a.value.content,!0):a.exp;if(c)return ut(e.helper(Ao),[c])}else a.type===6&&a.value.content.startsWith("vue:")&&(n=a.value.content.slice(4));const l=!s&&Or(r,"is");if(l&&l.exp)return ut(e.helper(Ao),[l.exp]);const u=km(n)||e.isBuiltInComponent(n);if(u)return t||e.helper(u),u;{const c=Vd(n,e);if(c)return c;const m=n.indexOf(".");if(m>0){const g=Vd(n.slice(0,m),e);if(g)return g+n.slice(m)}}return e.selfName&&Sa(Ss(n))===e.selfName?(e.helper(gu),e.components.add(n+"__self"),ku(n,"component")):(e.helper(gu),e.components.add(n),ku(n,"component"))}function Vd(r,e){const t=e.bindingMetadata;if(!t||t.__isScriptSetup===!1)return;const n=Ss(r),s=Sa(n),a=c=>{if(t[r]===c)return r;if(t[n]===c)return n;if(t[s]===c)return s},l=a("setup-const")||a("setup-reactive-const");if(l)return e.inline?l:`$setup[${JSON.stringify(l)}]`;const u=a("setup-let")||a("setup-ref")||a("setup-maybe-ref");if(u)return e.inline?`${e.helperString(Po)}(${u})`:`$setup[${JSON.stringify(u)}]`}function Zo(r,e,t=r.props,n,s,a=!1){const{tag:l,loc:u,children:c}=r;let m=[];const g=[],v=[],b=c.length>0;let x=!1,E=0,S=!1,C=!1,_=!1,A=!1,I=!1,M=!1;const O=[],R=({key:$,value:B})=>{if(rn($)){const F=$.content,H=Bw(F);if(H&&(!n||s)&&F.toLowerCase()!=="onclick"&&F!=="onUpdate:modelValue"&&!g0(F)&&(A=!0),H&&g0(F)&&(M=!0),B.type===20||(B.type===4||B.type===8)&&Sn(B,e)>0)return;F==="ref"?S=!0:F==="class"?C=!0:F==="style"?_=!0:F!=="key"&&!O.includes(F)&&O.push(F),n&&(F==="class"||F==="style")&&!O.includes(F)&&O.push(F)}else I=!0};for(let $=0;$<t.length;$++){const B=t[$];if(B.type===6){const{loc:F,name:H,value:V}=B;let X=!0;if(H==="ref"&&(S=!0,e.scopes.vFor>0&&m.push(Ft(ze("ref_for",!0),ze("true"))),V&&e.inline&&e.bindingMetadata[V.content]&&(X=!1,m.push(Ft(ze("ref_key",!0),ze(V.content,!0,V.loc))))),H==="is"&&(Gd(l)||V&&V.content.startsWith("vue:")||!1))continue;m.push(Ft(ze(H,!0,_m(F,0,H.length)),ze(V?V.content:"",X,V?V.loc:F)))}else{const{name:F,arg:H,exp:V,loc:X}=B,J=F==="bind",D=F==="on";if(F==="slot"){n||e.onError(jt(40,X));continue}if(F==="once"||F==="memo"||F==="is"||J&&Ks(H,"is")&&(Gd(l)||!1)||D&&a)continue;if((J&&Ks(H,"key")||D&&b&&Ks(H,"vue:before-update"))&&(x=!0),J&&Ks(H,"ref")&&e.scopes.vFor>0&&m.push(Ft(ze("ref_for",!0),ze("true"))),!H&&(J||D)){I=!0,V?(m.length&&(g.push(xn(nd(m),u)),m=[]),J?g.push(V):g.push({type:14,loc:X,callee:e.helper(ch),arguments:n?[V]:[V,"true"]})):e.onError(jt(J?34:35,X));continue}const ce=e.directiveTransforms[F];if(ce){const{props:W,needRuntime:Z}=ce(B,r,e);!a&&W.forEach(R),m.push(...W),Z&&(v.push(B),Uo(Z)&&Kx.set(B,Z))}else qw(F)||(v.push(B),b&&(x=!0))}}let j;if(g.length?(m.length&&g.push(xn(nd(m),u)),g.length>1?j=ut(e.helper(ka),g,u):j=g[0]):m.length&&(j=xn(nd(m),u)),I?E|=16:(C&&!n&&(E|=2),_&&!n&&(E|=4),O.length&&(E|=8),A&&(E|=32)),!x&&(E===0||E===32)&&(S||M||v.length>0)&&(E|=512),!e.inSSR&&j)switch(j.type){case 15:let $=-1,B=-1,F=!1;for(let X=0;X<j.properties.length;X++){const J=j.properties[X].key;rn(J)?J.content==="class"?$=X:J.content==="style"&&(B=X):J.isHandlerKey||(F=!0)}const H=j.properties[$],V=j.properties[B];F?j=ut(e.helper(Co),[j]):(H&&!rn(H.value)&&(H.value=ut(e.helper(lh),[H.value])),V&&(_||V.value.type===4&&V.value.content.trim()[0]==="["||V.value.type===17)&&(V.value=ut(e.helper(uh),[V.value])));break;case 14:break;default:j=ut(e.helper(Co),[ut(e.helper(zo),[j])]);break}return{props:j,directives:v,patchFlag:E,dynamicPropNames:O,shouldUseBlock:x}}function nd(r){const e=new Map,t=[];for(let n=0;n<r.length;n++){const s=r[n];if(s.key.type===8||!s.key.isStatic){t.push(s);continue}const a=s.key.content,l=e.get(a);l?(a==="style"||a==="class"||Bw(a))&&eN(l,s):(e.set(a,s),t.push(s))}return t}function eN(r,e){r.value.type===17?r.value.elements.push(e.value):r.value=Oa([r.value,e.value],r.loc)}function jm(r,e){const t=[],n=Kx.get(r);if(n)t.push(e.helperString(n));else{const a=Vd("v-"+r.name,e);a?t.push(a):(e.helper(ih),e.directives.add(r.name),t.push(ku(r.name,"directive")))}const{loc:s}=r;if(r.exp&&t.push(r.exp),r.arg&&(r.exp||t.push("void 0"),t.push(r.arg)),Object.keys(r.modifiers).length){r.arg||(r.exp||t.push("void 0"),t.push("void 0"));const a=ze("true",!1,s);t.push(xn(r.modifiers.map(l=>Ft(l,a)),s))}return Oa(t,r.loc)}function tN(r){let e="[";for(let t=0,n=r.length;t<n;t++)e+=JSON.stringify(r[t]),t<n-1&&(e+=", ");return e+"]"}function Gd(r){return r==="component"||r==="Component"}const rN=(r,e)=>{if(Mo(r)){const{children:t,loc:n}=r,{slotName:s,slotProps:a}=Um(r,e),l=[e.prefixIdentifiers?"_ctx.$slots":"$slots",s,"{}","undefined","true"];let u=2;a&&(l[2]=a,u=3),t.length&&(l[3]=Rn([],t,!1,!1,n),u=4),e.scopeId&&!e.slotted&&(u=5),l.splice(u),r.codegenNode=ut(e.helper(Z1),l,n)}};function Um(r,e){let t='"default"',n;const s=[];for(let a=0;a<r.props.length;a++){const l=r.props[a];l.type===6?l.value&&(l.name==="name"?t=JSON.stringify(l.value.content):(l.name=Ss(l.name),s.push(l))):l.name==="bind"&&Ks(l.arg,"name")?l.exp&&(t=l.exp):(l.name==="bind"&&l.arg&&rn(l.arg)&&(l.arg.content=Ss(l.arg.content)),s.push(l))}if(s.length>0){const{props:a,directives:l}=Zo(r,e,s,!1,!1);n=a,l.length&&e.onError(jt(36,l[0].loc))}return{slotName:t,slotProps:n}}const nN=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Ah=(r,e,t,n)=>{const{loc:s,modifiers:a,arg:l}=r;!r.exp&&!a.length&&t.onError(jt(35,s));let u;if(l.type===4)if(l.isStatic){let v=l.content;v.startsWith("vue:")&&(v=`vnode-${v.slice(4)}`);const b=e.tagType===1||v.startsWith("vnode")||!/[A-Z]/.test(v)?RC(Ss(v)):`on:${v}`;u=ze(b,!0,l.loc)}else u=Wr([`${t.helperString(bf)}(`,l,")"]);else u=l,u.children.unshift(`${t.helperString(bf)}(`),u.children.push(")");let c=r.exp;c&&!c.content.trim()&&(c=void 0);let m=t.cacheHandlers&&!c&&!t.inVOnce;if(c){const v=Tm(c.content,t),b=!(v||nN.test(c.content)),x=c.content.includes(";");t.prefixIdentifiers&&(b&&t.addIdentifiers("$event"),c=r.exp=pn(c,t,!1,x),b&&t.removeIdentifiers("$event"),m=t.cacheHandlers&&!t.inVOnce&&!(c.type===4&&c.constType>0)&&!(v&&e.tagType===1)&&!bn(c,t.identifiers),m&&v&&(c.type===4?c.content=`${c.content} && ${c.content}(...args)`:c.children=[...c.children," && ",...c.children,"(...args)"])),(b||m&&v)&&(c=Wr([`${b?t.isTS?"($event: any)":"$event":`${t.isTS?`
//@ts-ignore
`:""}(...args)`} => ${x?"{":"("}`,c,x?"}":")"]))}let g={props:[Ft(u,c||ze("() => {}",!1,s))]};return n&&(g=n(g)),m&&(g.props[0].value=t.cache(g.props[0].value)),g.props.forEach(v=>v.key.isHandlerKey=!0),g},qm=(r,e,t)=>{const{exp:n,modifiers:s,loc:a}=r,l=r.arg;return l.type!==4?(l.children.unshift("("),l.children.push(') || ""')):l.isStatic||(l.content=`${l.content} || ""`),s.includes("camel")&&(l.type===4?l.isStatic?l.content=Ss(l.content):l.content=`${t.helperString(vf)}(${l.content})`:(l.children.unshift(`${t.helperString(vf)}(`),l.children.push(")"))),t.inSSR||(s.includes("prop")&&G0(l,"."),s.includes("attr")&&G0(l,"^")),!n||n.type===4&&!n.content.trim()?(t.onError(jt(34,a)),{props:[Ft(l,ze("",!0,a))]}):{props:[Ft(l,n)]}},G0=(r,e)=>{r.type===4?r.isStatic?r.content=e+r.content:r.content=`\`${e}\${${r.content}}\``:(r.children.unshift(`'${e}' + (`),r.children.push(")"))},sN=(r,e)=>{if(r.type===0||r.type===1||r.type===11||r.type===10)return()=>{const t=r.children;let n,s=!1;for(let a=0;a<t.length;a++){const l=t[a];if(eu(l)){s=!0;for(let u=a+1;u<t.length;u++){const c=t[u];if(eu(c))n||(n=t[a]=Wr([l],l.loc)),n.children.push(" + ",c),t.splice(u,1),u--;else{n=void 0;break}}}}if(!(!s||t.length===1&&(r.type===0||r.type===1&&r.tagType===0&&!r.props.find(a=>a.type===7&&!e.directiveTransforms[a.name])&&!0)))for(let a=0;a<t.length;a++){const l=t[a];if(eu(l)||l.type===8){const u=[];(l.type!==2||l.content!==" ")&&u.push(l),!e.ssr&&Sn(l,e)===0&&u.push(1+` /* ${xs[1]} */`),t[a]={type:12,content:l,loc:l.loc,codegenNode:ut(e.helper(nh),u)}}}}},K0=new WeakSet,iN=(r,e)=>{if(r.type===1&&Or(r,"once",!0))return K0.has(r)||e.inVOnce?void 0:(K0.add(r),e.inVOnce=!0,e.helper(yu),()=>{e.inVOnce=!1;const t=e.currentNode;t.codegenNode&&(t.codegenNode=e.cache(t.codegenNode,!0))})},Ch=(r,e,t)=>{const{exp:n,arg:s}=r;if(!n)return t.onError(jt(41,r.loc)),Fc();const a=n.loc.source,l=n.type===4?n.content:a,u=t.bindingMetadata[a],c=t.inline&&u&&u!=="setup-const";if(!l.trim()||!Tm(l,t)&&!c)return t.onError(jt(42,n.loc)),Fc();if(t.prefixIdentifiers&&Bi(l)&&t.identifiers[l])return t.onError(jt(43,n.loc)),Fc();const m=s||ze("modelValue",!0),g=s?rn(s)?`onUpdate:${s.content}`:Wr(['"onUpdate:" + ',s]):"onUpdate:modelValue";let v;const b=t.isTS?"($event: any)":"$event";if(c)if(u==="setup-ref")v=Wr([`${b} => ((`,ze(a,!1,n.loc),").value = $event)"]);else{const E=u==="setup-let"?`${a} = $event`:"null";v=Wr([`${b} => (${t.helperString(vu)}(${a}) ? (`,ze(a,!1,n.loc),`).value = $event : ${E})`])}else v=Wr([`${b} => ((`,n,") = $event)"]);const x=[Ft(m,r.exp),Ft(g,v)];if(t.prefixIdentifiers&&!t.inVOnce&&t.cacheHandlers&&!bn(n,t.identifiers)&&(x[1].value=t.cache(x[1].value)),r.modifiers.length&&e.tagType===1){const E=r.modifiers.map(C=>(Bi(C)?C:JSON.stringify(C))+": true").join(", "),S=s?rn(s)?`${s.content}Modifiers`:Wr([s,' + "Modifiers"']):"modelModifiers";x.push(Ft(S,ze(`{ ${E} }`,!1,r.loc,2)))}return Fc(x)};function Fc(r=[]){return{props:r}}const Y0=new WeakSet,aN=(r,e)=>{if(r.type===1){const t=Or(r,"memo");return!t||Y0.has(r)?void 0:(Y0.add(r),()=>{const n=r.codegenNode||e.currentNode.codegenNode;n&&n.type===13&&(r.tagType!==1&&vh(n,e),r.codegenNode=ut(e.helper(dh),[t.exp,Rn(void 0,n),"_cache",String(e.cached++)]))})}};function Wm(r){return[[iN,V2,aN,Y2,...r?[$m,Mm]:[],rN,Yx,Bm,sN],{on:Ah,bind:qm,model:Ch}]}function Jx(r,e={}){const t=e.onError||Y1,n=e.mode==="module",s=e.prefixIdentifiers===!0||n;!s&&e.cacheHandlers&&t(jt(48)),e.scopeId&&!n&&t(jt(49));const a=Ct(r)?bh(r,e):r,[l,u]=Wm(s);if(e.isTS){const{expressionPlugins:c}=e;(!c||!c.includes("typescript"))&&(e.expressionPlugins=[...c||[],"typescript"])}return xh(a,Qs({},e,{prefixIdentifiers:s,nodeTransforms:[...l,...e.nodeTransforms||[]],directiveTransforms:Qs({},u,e.directiveTransforms||{})})),Nm(a,Qs({},e,{prefixIdentifiers:s}))}const ru=()=>({props:[]}),zm=Symbol("vModelRadio"),Hm=Symbol("vModelCheckbox"),Vm=Symbol("vModelText"),Gm=Symbol("vModelSelect"),Pf=Symbol("vModelDynamic"),Km=Symbol("vOnModifiersGuard"),Ym=Symbol("vOnKeysGuard"),Jm=Symbol("vShow"),el=Symbol("Transition"),Qu=Symbol("TransitionGroup");rm({[zm]:"vModelRadio",[Hm]:"vModelCheckbox",[Vm]:"vModelText",[Gm]:"vModelSelect",[Pf]:"vModelDynamic",[Km]:"withModifiers",[Ym]:"withKeys",[Jm]:"vShow",[el]:"Transition",[Qu]:"TransitionGroup"});var J0={GT:">",gt:">",LT:"<",lt:"<","ac;":"\u223E","af;":"\u2061",AMP:"&",amp:"&","ap;":"\u2248","DD;":"\u2145","dd;":"\u2146",deg:"\xB0","ee;":"\u2147","eg;":"\u2A9A","el;":"\u2A99",ETH:"\xD0",eth:"\xF0","gE;":"\u2267","ge;":"\u2265","Gg;":"\u22D9","gg;":"\u226B","gl;":"\u2277","GT;":">","Gt;":"\u226B","gt;":">","ic;":"\u2063","ii;":"\u2148","Im;":"\u2111","in;":"\u2208","it;":"\u2062","lE;":"\u2266","le;":"\u2264","lg;":"\u2276","Ll;":"\u22D8","ll;":"\u226A","LT;":"<","Lt;":"\u226A","lt;":"<","mp;":"\u2213","Mu;":"\u039C","mu;":"\u03BC","ne;":"\u2260","ni;":"\u220B",not:"\xAC","Nu;":"\u039D","nu;":"\u03BD","Or;":"\u2A54","or;":"\u2228","oS;":"\u24C8","Pi;":"\u03A0","pi;":"\u03C0","pm;":"\xB1","Pr;":"\u2ABB","pr;":"\u227A","Re;":"\u211C",REG:"\xAE",reg:"\xAE","rx;":"\u211E","Sc;":"\u2ABC","sc;":"\u227B",shy:"\xAD",uml:"\xA8","wp;":"\u2118","wr;":"\u2240","Xi;":"\u039E","xi;":"\u03BE",yen:"\xA5","acd;":"\u223F","acE;":"\u223E\u0333","Acy;":"\u0410","acy;":"\u0430","Afr;":"\u{1D504}","afr;":"\u{1D51E}","AMP;":"&","amp;":"&","And;":"\u2A53","and;":"\u2227","ang;":"\u2220","apE;":"\u2A70","ape;":"\u224A","ast;":"*",Auml:"\xC4",auml:"\xE4","Bcy;":"\u0411","bcy;":"\u0431","Bfr;":"\u{1D505}","bfr;":"\u{1D51F}","bne;":"=\u20E5","bot;":"\u22A5","Cap;":"\u22D2","cap;":"\u2229",cent:"\xA2","Cfr;":"\u212D","cfr;":"\u{1D520}","Chi;":"\u03A7","chi;":"\u03C7","cir;":"\u25CB",COPY:"\xA9",copy:"\xA9","Cup;":"\u22D3","cup;":"\u222A","Dcy;":"\u0414","dcy;":"\u0434","deg;":"\xB0","Del;":"\u2207","Dfr;":"\u{1D507}","dfr;":"\u{1D521}","die;":"\xA8","div;":"\xF7","Dot;":"\xA8","dot;":"\u02D9","Ecy;":"\u042D","ecy;":"\u044D","Efr;":"\u{1D508}","efr;":"\u{1D522}","egs;":"\u2A96","ell;":"\u2113","els;":"\u2A95","ENG;":"\u014A","eng;":"\u014B","Eta;":"\u0397","eta;":"\u03B7","ETH;":"\xD0","eth;":"\xF0",Euml:"\xCB",euml:"\xEB","Fcy;":"\u0424","fcy;":"\u0444","Ffr;":"\u{1D509}","ffr;":"\u{1D523}","gap;":"\u2A86","Gcy;":"\u0413","gcy;":"\u0433","gEl;":"\u2A8C","gel;":"\u22DB","geq;":"\u2265","ges;":"\u2A7E","Gfr;":"\u{1D50A}","gfr;":"\u{1D524}","ggg;":"\u22D9","gla;":"\u2AA5","glE;":"\u2A92","glj;":"\u2AA4","gnE;":"\u2269","gne;":"\u2A88","Hat;":"^","Hfr;":"\u210C","hfr;":"\u{1D525}","Icy;":"\u0418","icy;":"\u0438","iff;":"\u21D4","Ifr;":"\u2111","ifr;":"\u{1D526}","Int;":"\u222C","int;":"\u222B",Iuml:"\xCF",iuml:"\xEF","Jcy;":"\u0419","jcy;":"\u0439","Jfr;":"\u{1D50D}","jfr;":"\u{1D527}","Kcy;":"\u041A","kcy;":"\u043A","Kfr;":"\u{1D50E}","kfr;":"\u{1D528}","lap;":"\u2A85","lat;":"\u2AAB","Lcy;":"\u041B","lcy;":"\u043B","lEg;":"\u2A8B","leg;":"\u22DA","leq;":"\u2264","les;":"\u2A7D","Lfr;":"\u{1D50F}","lfr;":"\u{1D529}","lgE;":"\u2A91","lnE;":"\u2268","lne;":"\u2A87","loz;":"\u25CA","lrm;":"\u200E","Lsh;":"\u21B0","lsh;":"\u21B0",macr:"\xAF","Map;":"\u2905","map;":"\u21A6","Mcy;":"\u041C","mcy;":"\u043C","Mfr;":"\u{1D510}","mfr;":"\u{1D52A}","mho;":"\u2127","mid;":"\u2223","nap;":"\u2249",nbsp:"\xA0","Ncy;":"\u041D","ncy;":"\u043D","Nfr;":"\u{1D511}","nfr;":"\u{1D52B}","ngE;":"\u2267\u0338","nge;":"\u2271","nGg;":"\u22D9\u0338","nGt;":"\u226B\u20D2","ngt;":"\u226F","nis;":"\u22FC","niv;":"\u220B","nlE;":"\u2266\u0338","nle;":"\u2270","nLl;":"\u22D8\u0338","nLt;":"\u226A\u20D2","nlt;":"\u226E","Not;":"\u2AEC","not;":"\xAC","npr;":"\u2280","nsc;":"\u2281","num;":"#","Ocy;":"\u041E","ocy;":"\u043E","Ofr;":"\u{1D512}","ofr;":"\u{1D52C}","ogt;":"\u29C1","ohm;":"\u03A9","olt;":"\u29C0","ord;":"\u2A5D",ordf:"\xAA",ordm:"\xBA","orv;":"\u2A5B",Ouml:"\xD6",ouml:"\xF6","par;":"\u2225",para:"\xB6","Pcy;":"\u041F","pcy;":"\u043F","Pfr;":"\u{1D513}","pfr;":"\u{1D52D}","Phi;":"\u03A6","phi;":"\u03C6","piv;":"\u03D6","prE;":"\u2AB3","pre;":"\u2AAF","Psi;":"\u03A8","psi;":"\u03C8","Qfr;":"\u{1D514}","qfr;":"\u{1D52E}",QUOT:'"',quot:'"',"Rcy;":"\u0420","rcy;":"\u0440","REG;":"\xAE","reg;":"\xAE","Rfr;":"\u211C","rfr;":"\u{1D52F}","Rho;":"\u03A1","rho;":"\u03C1","rlm;":"\u200F","Rsh;":"\u21B1","rsh;":"\u21B1","scE;":"\u2AB4","sce;":"\u2AB0","Scy;":"\u0421","scy;":"\u0441",sect:"\xA7","Sfr;":"\u{1D516}","sfr;":"\u{1D530}","shy;":"\xAD","sim;":"\u223C","smt;":"\u2AAA","sol;":"/","squ;":"\u25A1","Sub;":"\u22D0","sub;":"\u2282","Sum;":"\u2211","sum;":"\u2211","Sup;":"\u22D1","sup;":"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3","Tab;":" ","Tau;":"\u03A4","tau;":"\u03C4","Tcy;":"\u0422","tcy;":"\u0442","Tfr;":"\u{1D517}","tfr;":"\u{1D531}","top;":"\u22A4","Ucy;":"\u0423","ucy;":"\u0443","Ufr;":"\u{1D518}","ufr;":"\u{1D532}","uml;":"\xA8",Uuml:"\xDC",uuml:"\xFC","Vcy;":"\u0412","vcy;":"\u0432","Vee;":"\u22C1","vee;":"\u2228","Vfr;":"\u{1D519}","vfr;":"\u{1D533}","Wfr;":"\u{1D51A}","wfr;":"\u{1D534}","Xfr;":"\u{1D51B}","xfr;":"\u{1D535}","Ycy;":"\u042B","ycy;":"\u044B","yen;":"\xA5","Yfr;":"\u{1D51C}","yfr;":"\u{1D536}",yuml:"\xFF","Zcy;":"\u0417","zcy;":"\u0437","Zfr;":"\u2128","zfr;":"\u{1D537}","zwj;":"\u200D",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6","andd;":"\u2A5C","andv;":"\u2A5A","ange;":"\u29A4","Aopf;":"\u{1D538}","aopf;":"\u{1D552}","apid;":"\u224B","apos;":"'",Aring:"\xC5",aring:"\xE5","Ascr;":"\u{1D49C}","ascr;":"\u{1D4B6}","Auml;":"\xC4","auml;":"\xE4","Barv;":"\u2AE7","bbrk;":"\u23B5","Beta;":"\u0392","beta;":"\u03B2","beth;":"\u2136","bNot;":"\u2AED","bnot;":"\u2310","Bopf;":"\u{1D539}","bopf;":"\u{1D553}","boxH;":"\u2550","boxh;":"\u2500","boxV;":"\u2551","boxv;":"\u2502","Bscr;":"\u212C","bscr;":"\u{1D4B7}","bsim;":"\u223D","bsol;":"\\","bull;":"\u2022","bump;":"\u224E","caps;":"\u2229\uFE00","Cdot;":"\u010A","cdot;":"\u010B",cedil:"\xB8","cent;":"\xA2","CHcy;":"\u0427","chcy;":"\u0447","circ;":"\u02C6","cirE;":"\u29C3","cire;":"\u2257","comp;":"\u2201","cong;":"\u2245","Copf;":"\u2102","copf;":"\u{1D554}","COPY;":"\xA9","copy;":"\xA9","Cscr;":"\u{1D49E}","cscr;":"\u{1D4B8}","csub;":"\u2ACF","csup;":"\u2AD0","cups;":"\u222A\uFE00","Darr;":"\u21A1","dArr;":"\u21D3","darr;":"\u2193","dash;":"\u2010","dHar;":"\u2965","diam;":"\u22C4","DJcy;":"\u0402","djcy;":"\u0452","Dopf;":"\u{1D53B}","dopf;":"\u{1D555}","Dscr;":"\u{1D49F}","dscr;":"\u{1D4B9}","DScy;":"\u0405","dscy;":"\u0455","dsol;":"\u29F6","dtri;":"\u25BF","DZcy;":"\u040F","dzcy;":"\u045F","ecir;":"\u2256",Ecirc:"\xCA",ecirc:"\xEA","Edot;":"\u0116","eDot;":"\u2251","edot;":"\u0117","emsp;":"\u2003","ensp;":"\u2002","Eopf;":"\u{1D53C}","eopf;":"\u{1D556}","epar;":"\u22D5","epsi;":"\u03B5","Escr;":"\u2130","escr;":"\u212F","Esim;":"\u2A73","esim;":"\u2242","Euml;":"\xCB","euml;":"\xEB","euro;":"\u20AC","excl;":"!","flat;":"\u266D","fnof;":"\u0192","Fopf;":"\u{1D53D}","fopf;":"\u{1D557}","fork;":"\u22D4","Fscr;":"\u2131","fscr;":"\u{1D4BB}","Gdot;":"\u0120","gdot;":"\u0121","geqq;":"\u2267","gesl;":"\u22DB\uFE00","GJcy;":"\u0403","gjcy;":"\u0453","gnap;":"\u2A8A","gneq;":"\u2A88","Gopf;":"\u{1D53E}","gopf;":"\u{1D558}","Gscr;":"\u{1D4A2}","gscr;":"\u210A","gsim;":"\u2273","gtcc;":"\u2AA7","gvnE;":"\u2269\uFE00","half;":"\xBD","hArr;":"\u21D4","harr;":"\u2194","hbar;":"\u210F","Hopf;":"\u210D","hopf;":"\u{1D559}","Hscr;":"\u210B","hscr;":"\u{1D4BD}",Icirc:"\xCE",icirc:"\xEE","Idot;":"\u0130","IEcy;":"\u0415","iecy;":"\u0435",iexcl:"\xA1","imof;":"\u22B7","IOcy;":"\u0401","iocy;":"\u0451","Iopf;":"\u{1D540}","iopf;":"\u{1D55A}","Iota;":"\u0399","iota;":"\u03B9","Iscr;":"\u2110","iscr;":"\u{1D4BE}","isin;":"\u2208","Iuml;":"\xCF","iuml;":"\xEF","Jopf;":"\u{1D541}","jopf;":"\u{1D55B}","Jscr;":"\u{1D4A5}","jscr;":"\u{1D4BF}","KHcy;":"\u0425","khcy;":"\u0445","KJcy;":"\u040C","kjcy;":"\u045C","Kopf;":"\u{1D542}","kopf;":"\u{1D55C}","Kscr;":"\u{1D4A6}","kscr;":"\u{1D4C0}","Lang;":"\u27EA","lang;":"\u27E8",laquo:"\xAB","Larr;":"\u219E","lArr;":"\u21D0","larr;":"\u2190","late;":"\u2AAD","lcub;":"{","ldca;":"\u2936","ldsh;":"\u21B2","leqq;":"\u2266","lesg;":"\u22DA\uFE00","lHar;":"\u2962","LJcy;":"\u0409","ljcy;":"\u0459","lnap;":"\u2A89","lneq;":"\u2A87","Lopf;":"\u{1D543}","lopf;":"\u{1D55D}","lozf;":"\u29EB","lpar;":"(","Lscr;":"\u2112","lscr;":"\u{1D4C1}","lsim;":"\u2272","lsqb;":"[","ltcc;":"\u2AA6","ltri;":"\u25C3","lvnE;":"\u2268\uFE00","macr;":"\xAF","male;":"\u2642","malt;":"\u2720",micro:"\xB5","mlcp;":"\u2ADB","mldr;":"\u2026","Mopf;":"\u{1D544}","mopf;":"\u{1D55E}","Mscr;":"\u2133","mscr;":"\u{1D4C2}","nang;":"\u2220\u20D2","napE;":"\u2A70\u0338","nbsp;":"\xA0","ncap;":"\u2A43","ncup;":"\u2A42","ngeq;":"\u2271","nges;":"\u2A7E\u0338","ngtr;":"\u226F","nGtv;":"\u226B\u0338","nisd;":"\u22FA","NJcy;":"\u040A","njcy;":"\u045A","nldr;":"\u2025","nleq;":"\u2270","nles;":"\u2A7D\u0338","nLtv;":"\u226A\u0338","nmid;":"\u2224","Nopf;":"\u2115","nopf;":"\u{1D55F}","npar;":"\u2226","npre;":"\u2AAF\u0338","nsce;":"\u2AB0\u0338","Nscr;":"\u{1D4A9}","nscr;":"\u{1D4C3}","nsim;":"\u2241","nsub;":"\u2284","nsup;":"\u2285","ntgl;":"\u2279","ntlg;":"\u2278","nvap;":"\u224D\u20D2","nvge;":"\u2265\u20D2","nvgt;":">\u20D2","nvle;":"\u2264\u20D2","nvlt;":"<\u20D2","oast;":"\u229B","ocir;":"\u229A",Ocirc:"\xD4",ocirc:"\xF4","odiv;":"\u2A38","odot;":"\u2299","ogon;":"\u02DB","oint;":"\u222E","omid;":"\u29B6","Oopf;":"\u{1D546}","oopf;":"\u{1D560}","opar;":"\u29B7","ordf;":"\xAA","ordm;":"\xBA","oror;":"\u2A56","Oscr;":"\u{1D4AA}","oscr;":"\u2134","osol;":"\u2298","Ouml;":"\xD6","ouml;":"\xF6","para;":"\xB6","part;":"\u2202","perp;":"\u22A5","phiv;":"\u03D5","plus;":"+","Popf;":"\u2119","popf;":"\u{1D561}",pound:"\xA3","prap;":"\u2AB7","prec;":"\u227A","prnE;":"\u2AB5","prod;":"\u220F","prop;":"\u221D","Pscr;":"\u{1D4AB}","pscr;":"\u{1D4C5}","qint;":"\u2A0C","Qopf;":"\u211A","qopf;":"\u{1D562}","Qscr;":"\u{1D4AC}","qscr;":"\u{1D4C6}","QUOT;":'"',"quot;":'"',"race;":"\u223D\u0331","Rang;":"\u27EB","rang;":"\u27E9",raquo:"\xBB","Rarr;":"\u21A0","rArr;":"\u21D2","rarr;":"\u2192","rcub;":"}","rdca;":"\u2937","rdsh;":"\u21B3","real;":"\u211C","rect;":"\u25AD","rHar;":"\u2964","rhov;":"\u03F1","ring;":"\u02DA","Ropf;":"\u211D","ropf;":"\u{1D563}","rpar;":")","Rscr;":"\u211B","rscr;":"\u{1D4C7}","rsqb;":"]","rtri;":"\u25B9","scap;":"\u2AB8","scnE;":"\u2AB6","sdot;":"\u22C5","sect;":"\xA7","semi;":";","sext;":"\u2736","SHcy;":"\u0428","shcy;":"\u0448","sime;":"\u2243","simg;":"\u2A9E","siml;":"\u2A9D","smid;":"\u2223","smte;":"\u2AAC","solb;":"\u29C4","Sopf;":"\u{1D54A}","sopf;":"\u{1D564}","spar;":"\u2225","Sqrt;":"\u221A","squf;":"\u25AA","Sscr;":"\u{1D4AE}","sscr;":"\u{1D4C8}","Star;":"\u22C6","star;":"\u2606","subE;":"\u2AC5","sube;":"\u2286","succ;":"\u227B","sung;":"\u266A","sup1;":"\xB9","sup2;":"\xB2","sup3;":"\xB3","supE;":"\u2AC6","supe;":"\u2287",szlig:"\xDF","tbrk;":"\u23B4","tdot;":"\u20DB",THORN:"\xDE",thorn:"\xFE",times:"\xD7","tint;":"\u222D","toea;":"\u2928","Topf;":"\u{1D54B}","topf;":"\u{1D565}","tosa;":"\u2929","trie;":"\u225C","Tscr;":"\u{1D4AF}","tscr;":"\u{1D4C9}","TScy;":"\u0426","tscy;":"\u0446","Uarr;":"\u219F","uArr;":"\u21D1","uarr;":"\u2191",Ucirc:"\xDB",ucirc:"\xFB","uHar;":"\u2963","Uopf;":"\u{1D54C}","uopf;":"\u{1D566}","Upsi;":"\u03D2","upsi;":"\u03C5","Uscr;":"\u{1D4B0}","uscr;":"\u{1D4CA}","utri;":"\u25B5","Uuml;":"\xDC","uuml;":"\xFC","vArr;":"\u21D5","varr;":"\u2195","Vbar;":"\u2AEB","vBar;":"\u2AE8","Vert;":"\u2016","vert;":"|","Vopf;":"\u{1D54D}","vopf;":"\u{1D567}","Vscr;":"\u{1D4B1}","vscr;":"\u{1D4CB}","Wopf;":"\u{1D54E}","wopf;":"\u{1D568}","Wscr;":"\u{1D4B2}","wscr;":"\u{1D4CC}","xcap;":"\u22C2","xcup;":"\u22C3","xmap;":"\u27FC","xnis;":"\u22FB","Xopf;":"\u{1D54F}","xopf;":"\u{1D569}","Xscr;":"\u{1D4B3}","xscr;":"\u{1D4CD}","xvee;":"\u22C1","YAcy;":"\u042F","yacy;":"\u044F","YIcy;":"\u0407","yicy;":"\u0457","Yopf;":"\u{1D550}","yopf;":"\u{1D56A}","Yscr;":"\u{1D4B4}","yscr;":"\u{1D4CE}","YUcy;":"\u042E","yucy;":"\u044E","Yuml;":"\u0178","yuml;":"\xFF","Zdot;":"\u017B","zdot;":"\u017C","Zeta;":"\u0396","zeta;":"\u03B6","ZHcy;":"\u0416","zhcy;":"\u0436","Zopf;":"\u2124","zopf;":"\u{1D56B}","Zscr;":"\u{1D4B5}","zscr;":"\u{1D4CF}","zwnj;":"\u200C",Aacute:"\xC1",aacute:"\xE1","Acirc;":"\xC2","acirc;":"\xE2","acute;":"\xB4","AElig;":"\xC6","aelig;":"\xE6",Agrave:"\xC0",agrave:"\xE0","aleph;":"\u2135","Alpha;":"\u0391","alpha;":"\u03B1","Amacr;":"\u0100","amacr;":"\u0101","amalg;":"\u2A3F","angle;":"\u2220","angrt;":"\u221F","angst;":"\xC5","Aogon;":"\u0104","aogon;":"\u0105","Aring;":"\xC5","aring;":"\xE5","asymp;":"\u2248",Atilde:"\xC3",atilde:"\xE3","awint;":"\u2A11","bcong;":"\u224C","bdquo;":"\u201E","bepsi;":"\u03F6","blank;":"\u2423","blk12;":"\u2592","blk14;":"\u2591","blk34;":"\u2593","block;":"\u2588","boxDL;":"\u2557","boxDl;":"\u2556","boxdL;":"\u2555","boxdl;":"\u2510","boxDR;":"\u2554","boxDr;":"\u2553","boxdR;":"\u2552","boxdr;":"\u250C","boxHD;":"\u2566","boxHd;":"\u2564","boxhD;":"\u2565","boxhd;":"\u252C","boxHU;":"\u2569","boxHu;":"\u2567","boxhU;":"\u2568","boxhu;":"\u2534","boxUL;":"\u255D","boxUl;":"\u255C","boxuL;":"\u255B","boxul;":"\u2518","boxUR;":"\u255A","boxUr;":"\u2559","boxuR;":"\u2558","boxur;":"\u2514","boxVH;":"\u256C","boxVh;":"\u256B","boxvH;":"\u256A","boxvh;":"\u253C","boxVL;":"\u2563","boxVl;":"\u2562","boxvL;":"\u2561","boxvl;":"\u2524","boxVR;":"\u2560","boxVr;":"\u255F","boxvR;":"\u255E","boxvr;":"\u251C","Breve;":"\u02D8","breve;":"\u02D8",brvbar:"\xA6","bsemi;":"\u204F","bsime;":"\u22CD","bsolb;":"\u29C5","bumpE;":"\u2AAE","bumpe;":"\u224F","caret;":"\u2041","caron;":"\u02C7","ccaps;":"\u2A4D",Ccedil:"\xC7",ccedil:"\xE7","Ccirc;":"\u0108","ccirc;":"\u0109","ccups;":"\u2A4C","cedil;":"\xB8","check;":"\u2713","clubs;":"\u2663","Colon;":"\u2237","colon;":":","comma;":",","crarr;":"\u21B5","Cross;":"\u2A2F","cross;":"\u2717","csube;":"\u2AD1","csupe;":"\u2AD2","ctdot;":"\u22EF","cuepr;":"\u22DE","cuesc;":"\u22DF","cupor;":"\u2A45",curren:"\xA4","cuvee;":"\u22CE","cuwed;":"\u22CF","cwint;":"\u2231","Dashv;":"\u2AE4","dashv;":"\u22A3","dblac;":"\u02DD","ddarr;":"\u21CA","Delta;":"\u0394","delta;":"\u03B4","dharl;":"\u21C3","dharr;":"\u21C2","diams;":"\u2666","disin;":"\u22F2",divide:"\xF7","doteq;":"\u2250","dtdot;":"\u22F1","dtrif;":"\u25BE","duarr;":"\u21F5","duhar;":"\u296F",Eacute:"\xC9",eacute:"\xE9","Ecirc;":"\xCA","ecirc;":"\xEA","eDDot;":"\u2A77","efDot;":"\u2252",Egrave:"\xC8",egrave:"\xE8","Emacr;":"\u0112","emacr;":"\u0113","empty;":"\u2205","Eogon;":"\u0118","eogon;":"\u0119","eplus;":"\u2A71","epsiv;":"\u03F5","eqsim;":"\u2242","Equal;":"\u2A75","equiv;":"\u2261","erarr;":"\u2971","erDot;":"\u2253","esdot;":"\u2250","exist;":"\u2203","fflig;":"\uFB00","filig;":"\uFB01","fjlig;":"fj","fllig;":"\uFB02","fltns;":"\u25B1","forkv;":"\u2AD9",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE","frasl;":"\u2044","frown;":"\u2322","Gamma;":"\u0393","gamma;":"\u03B3","Gcirc;":"\u011C","gcirc;":"\u011D","gescc;":"\u2AA9","gimel;":"\u2137","gneqq;":"\u2269","gnsim;":"\u22E7","grave;":"`","gsime;":"\u2A8E","gsiml;":"\u2A90","gtcir;":"\u2A7A","gtdot;":"\u22D7","Hacek;":"\u02C7","harrw;":"\u21AD","Hcirc;":"\u0124","hcirc;":"\u0125","hoarr;":"\u21FF",Iacute:"\xCD",iacute:"\xED","Icirc;":"\xCE","icirc;":"\xEE","iexcl;":"\xA1",Igrave:"\xCC",igrave:"\xEC","iiint;":"\u222D","iiota;":"\u2129","IJlig;":"\u0132","ijlig;":"\u0133","Imacr;":"\u012A","imacr;":"\u012B","image;":"\u2111","imath;":"\u0131","imped;":"\u01B5","infin;":"\u221E","Iogon;":"\u012E","iogon;":"\u012F","iprod;":"\u2A3C",iquest:"\xBF","isinE;":"\u22F9","isins;":"\u22F4","isinv;":"\u2208","Iukcy;":"\u0406","iukcy;":"\u0456","Jcirc;":"\u0134","jcirc;":"\u0135","jmath;":"\u0237","Jukcy;":"\u0404","jukcy;":"\u0454","Kappa;":"\u039A","kappa;":"\u03BA","lAarr;":"\u21DA","langd;":"\u2991","laquo;":"\xAB","larrb;":"\u21E4","lates;":"\u2AAD\uFE00","lBarr;":"\u290E","lbarr;":"\u290C","lbbrk;":"\u2772","lbrke;":"\u298B","lceil;":"\u2308","ldquo;":"\u201C","lescc;":"\u2AA8","lhard;":"\u21BD","lharu;":"\u21BC","lhblk;":"\u2584","llarr;":"\u21C7","lltri;":"\u25FA","lneqq;":"\u2268","lnsim;":"\u22E6","loang;":"\u27EC","loarr;":"\u21FD","lobrk;":"\u27E6","lopar;":"\u2985","lrarr;":"\u21C6","lrhar;":"\u21CB","lrtri;":"\u22BF","lsime;":"\u2A8D","lsimg;":"\u2A8F","lsquo;":"\u2018","ltcir;":"\u2A79","ltdot;":"\u22D6","ltrie;":"\u22B4","ltrif;":"\u25C2","mdash;":"\u2014","mDDot;":"\u223A","micro;":"\xB5",middot:"\xB7","minus;":"\u2212","mumap;":"\u22B8","nabla;":"\u2207","napid;":"\u224B\u0338","napos;":"\u0149","natur;":"\u266E","nbump;":"\u224E\u0338","ncong;":"\u2247","ndash;":"\u2013","neArr;":"\u21D7","nearr;":"\u2197","nedot;":"\u2250\u0338","nesim;":"\u2242\u0338","ngeqq;":"\u2267\u0338","ngsim;":"\u2275","nhArr;":"\u21CE","nharr;":"\u21AE","nhpar;":"\u2AF2","nlArr;":"\u21CD","nlarr;":"\u219A","nleqq;":"\u2266\u0338","nless;":"\u226E","nlsim;":"\u2274","nltri;":"\u22EA","notin;":"\u2209","notni;":"\u220C","npart;":"\u2202\u0338","nprec;":"\u2280","nrArr;":"\u21CF","nrarr;":"\u219B","nrtri;":"\u22EB","nsime;":"\u2244","nsmid;":"\u2224","nspar;":"\u2226","nsubE;":"\u2AC5\u0338","nsube;":"\u2288","nsucc;":"\u2281","nsupE;":"\u2AC6\u0338","nsupe;":"\u2289",Ntilde:"\xD1",ntilde:"\xF1","numsp;":"\u2007","nvsim;":"\u223C\u20D2","nwArr;":"\u21D6","nwarr;":"\u2196",Oacute:"\xD3",oacute:"\xF3","Ocirc;":"\xD4","ocirc;":"\xF4","odash;":"\u229D","OElig;":"\u0152","oelig;":"\u0153","ofcir;":"\u29BF",Ograve:"\xD2",ograve:"\xF2","ohbar;":"\u29B5","olarr;":"\u21BA","olcir;":"\u29BE","oline;":"\u203E","Omacr;":"\u014C","omacr;":"\u014D","Omega;":"\u03A9","omega;":"\u03C9","operp;":"\u29B9","oplus;":"\u2295","orarr;":"\u21BB","order;":"\u2134",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5","ovbar;":"\u233D","parsl;":"\u2AFD","phone;":"\u260E","plusb;":"\u229E","pluse;":"\u2A72",plusmn:"\xB1","pound;":"\xA3","prcue;":"\u227C","Prime;":"\u2033","prime;":"\u2032","prnap;":"\u2AB9","prsim;":"\u227E","quest;":"?","rAarr;":"\u21DB","radic;":"\u221A","rangd;":"\u2992","range;":"\u29A5","raquo;":"\xBB","rarrb;":"\u21E5","rarrc;":"\u2933","rarrw;":"\u219D","ratio;":"\u2236","RBarr;":"\u2910","rBarr;":"\u290F","rbarr;":"\u290D","rbbrk;":"\u2773","rbrke;":"\u298C","rceil;":"\u2309","rdquo;":"\u201D","reals;":"\u211D","rhard;":"\u21C1","rharu;":"\u21C0","rlarr;":"\u21C4","rlhar;":"\u21CC","rnmid;":"\u2AEE","roang;":"\u27ED","roarr;":"\u21FE","robrk;":"\u27E7","ropar;":"\u2986","rrarr;":"\u21C9","rsquo;":"\u2019","rtrie;":"\u22B5","rtrif;":"\u25B8","sbquo;":"\u201A","sccue;":"\u227D","Scirc;":"\u015C","scirc;":"\u015D","scnap;":"\u2ABA","scsim;":"\u227F","sdotb;":"\u22A1","sdote;":"\u2A66","seArr;":"\u21D8","searr;":"\u2198","setmn;":"\u2216","sharp;":"\u266F","Sigma;":"\u03A3","sigma;":"\u03C3","simeq;":"\u2243","simgE;":"\u2AA0","simlE;":"\u2A9F","simne;":"\u2246","slarr;":"\u2190","smile;":"\u2323","smtes;":"\u2AAC\uFE00","sqcap;":"\u2293","sqcup;":"\u2294","sqsub;":"\u228F","sqsup;":"\u2290","srarr;":"\u2192","starf;":"\u2605","strns;":"\xAF","subnE;":"\u2ACB","subne;":"\u228A","supnE;":"\u2ACC","supne;":"\u228B","swArr;":"\u21D9","swarr;":"\u2199","szlig;":"\xDF","Theta;":"\u0398","theta;":"\u03B8","thkap;":"\u2248","THORN;":"\xDE","thorn;":"\xFE","Tilde;":"\u223C","tilde;":"\u02DC","times;":"\xD7","TRADE;":"\u2122","trade;":"\u2122","trisb;":"\u29CD","TSHcy;":"\u040B","tshcy;":"\u045B","twixt;":"\u226C",Uacute:"\xDA",uacute:"\xFA","Ubrcy;":"\u040E","ubrcy;":"\u045E","Ucirc;":"\xDB","ucirc;":"\xFB","udarr;":"\u21C5","udhar;":"\u296E",Ugrave:"\xD9",ugrave:"\xF9","uharl;":"\u21BF","uharr;":"\u21BE","uhblk;":"\u2580","ultri;":"\u25F8","Umacr;":"\u016A","umacr;":"\u016B","Union;":"\u22C3","Uogon;":"\u0172","uogon;":"\u0173","uplus;":"\u228E","upsih;":"\u03D2","UpTee;":"\u22A5","Uring;":"\u016E","uring;":"\u016F","urtri;":"\u25F9","utdot;":"\u22F0","utrif;":"\u25B4","uuarr;":"\u21C8","varpi;":"\u03D6","vBarv;":"\u2AE9","VDash;":"\u22AB","Vdash;":"\u22A9","vDash;":"\u22A8","vdash;":"\u22A2","veeeq;":"\u225A","vltri;":"\u22B2","vnsub;":"\u2282\u20D2","vnsup;":"\u2283\u20D2","vprop;":"\u221D","vrtri;":"\u22B3","Wcirc;":"\u0174","wcirc;":"\u0175","Wedge;":"\u22C0","wedge;":"\u2227","xcirc;":"\u25EF","xdtri;":"\u25BD","xhArr;":"\u27FA","xharr;":"\u27F7","xlArr;":"\u27F8","xlarr;":"\u27F5","xodot;":"\u2A00","xrArr;":"\u27F9","xrarr;":"\u27F6","xutri;":"\u25B3",Yacute:"\xDD",yacute:"\xFD","Ycirc;":"\u0176","ycirc;":"\u0177","Aacute;":"\xC1","aacute;":"\xE1","Abreve;":"\u0102","abreve;":"\u0103","Agrave;":"\xC0","agrave;":"\xE0","andand;":"\u2A55","angmsd;":"\u2221","angsph;":"\u2222","apacir;":"\u2A6F","approx;":"\u2248","Assign;":"\u2254","Atilde;":"\xC3","atilde;":"\xE3","barvee;":"\u22BD","Barwed;":"\u2306","barwed;":"\u2305","becaus;":"\u2235","bernou;":"\u212C","bigcap;":"\u22C2","bigcup;":"\u22C3","bigvee;":"\u22C1","bkarow;":"\u290D","bottom;":"\u22A5","bowtie;":"\u22C8","boxbox;":"\u29C9","bprime;":"\u2035","brvbar;":"\xA6","bullet;":"\u2022","Bumpeq;":"\u224E","bumpeq;":"\u224F","Cacute;":"\u0106","cacute;":"\u0107","capand;":"\u2A44","capcap;":"\u2A4B","capcup;":"\u2A47","capdot;":"\u2A40","Ccaron;":"\u010C","ccaron;":"\u010D","Ccedil;":"\xC7","ccedil;":"\xE7","circeq;":"\u2257","cirmid;":"\u2AEF","Colone;":"\u2A74","colone;":"\u2254","commat;":"@","compfn;":"\u2218","Conint;":"\u222F","conint;":"\u222E","coprod;":"\u2210","copysr;":"\u2117","cularr;":"\u21B6","CupCap;":"\u224D","cupcap;":"\u2A46","cupcup;":"\u2A4A","cupdot;":"\u228D","curarr;":"\u21B7","curren;":"\xA4","cylcty;":"\u232D","Dagger;":"\u2021","dagger;":"\u2020","daleth;":"\u2138","Dcaron;":"\u010E","dcaron;":"\u010F","dfisht;":"\u297F","divide;":"\xF7","divonx;":"\u22C7","dlcorn;":"\u231E","dlcrop;":"\u230D","dollar;":"$","DotDot;":"\u20DC","drcorn;":"\u231F","drcrop;":"\u230C","Dstrok;":"\u0110","dstrok;":"\u0111","Eacute;":"\xC9","eacute;":"\xE9","easter;":"\u2A6E","Ecaron;":"\u011A","ecaron;":"\u011B","ecolon;":"\u2255","Egrave;":"\xC8","egrave;":"\xE8","egsdot;":"\u2A98","elsdot;":"\u2A97","emptyv;":"\u2205","emsp13;":"\u2004","emsp14;":"\u2005","eparsl;":"\u29E3","eqcirc;":"\u2256","equals;":"=","equest;":"\u225F","Exists;":"\u2203","female;":"\u2640","ffilig;":"\uFB03","ffllig;":"\uFB04","ForAll;":"\u2200","forall;":"\u2200","frac12;":"\xBD","frac13;":"\u2153","frac14;":"\xBC","frac15;":"\u2155","frac16;":"\u2159","frac18;":"\u215B","frac23;":"\u2154","frac25;":"\u2156","frac34;":"\xBE","frac35;":"\u2157","frac38;":"\u215C","frac45;":"\u2158","frac56;":"\u215A","frac58;":"\u215D","frac78;":"\u215E","gacute;":"\u01F5","Gammad;":"\u03DC","gammad;":"\u03DD","Gbreve;":"\u011E","gbreve;":"\u011F","Gcedil;":"\u0122","gesdot;":"\u2A80","gesles;":"\u2A94","gtlPar;":"\u2995","gtrarr;":"\u2978","gtrdot;":"\u22D7","gtrsim;":"\u2273","hairsp;":"\u200A","hamilt;":"\u210B","HARDcy;":"\u042A","hardcy;":"\u044A","hearts;":"\u2665","hellip;":"\u2026","hercon;":"\u22B9","homtht;":"\u223B","horbar;":"\u2015","hslash;":"\u210F","Hstrok;":"\u0126","hstrok;":"\u0127","hybull;":"\u2043","hyphen;":"\u2010","Iacute;":"\xCD","iacute;":"\xED","Igrave;":"\xCC","igrave;":"\xEC","iiiint;":"\u2A0C","iinfin;":"\u29DC","incare;":"\u2105","inodot;":"\u0131","intcal;":"\u22BA","iquest;":"\xBF","isinsv;":"\u22F3","Itilde;":"\u0128","itilde;":"\u0129","Jsercy;":"\u0408","jsercy;":"\u0458","kappav;":"\u03F0","Kcedil;":"\u0136","kcedil;":"\u0137","kgreen;":"\u0138","Lacute;":"\u0139","lacute;":"\u013A","lagran;":"\u2112","Lambda;":"\u039B","lambda;":"\u03BB","langle;":"\u27E8","larrfs;":"\u291D","larrhk;":"\u21A9","larrlp;":"\u21AB","larrpl;":"\u2939","larrtl;":"\u21A2","lAtail;":"\u291B","latail;":"\u2919","lbrace;":"{","lbrack;":"[","Lcaron;":"\u013D","lcaron;":"\u013E","Lcedil;":"\u013B","lcedil;":"\u013C","ldquor;":"\u201E","lesdot;":"\u2A7F","lesges;":"\u2A93","lfisht;":"\u297C","lfloor;":"\u230A","lharul;":"\u296A","llhard;":"\u296B","Lmidot;":"\u013F","lmidot;":"\u0140","lmoust;":"\u23B0","loplus;":"\u2A2D","lowast;":"\u2217","lowbar;":"_","lparlt;":"\u2993","lrhard;":"\u296D","lsaquo;":"\u2039","lsquor;":"\u201A","Lstrok;":"\u0141","lstrok;":"\u0142","lthree;":"\u22CB","ltimes;":"\u22C9","ltlarr;":"\u2976","ltrPar;":"\u2996","mapsto;":"\u21A6","marker;":"\u25AE","mcomma;":"\u2A29","midast;":"*","midcir;":"\u2AF0","middot;":"\xB7","minusb;":"\u229F","minusd;":"\u2238","mnplus;":"\u2213","models;":"\u22A7","mstpos;":"\u223E","Nacute;":"\u0143","nacute;":"\u0144","nbumpe;":"\u224F\u0338","Ncaron;":"\u0147","ncaron;":"\u0148","Ncedil;":"\u0145","ncedil;":"\u0146","nearhk;":"\u2924","nequiv;":"\u2262","nesear;":"\u2928","nexist;":"\u2204","nltrie;":"\u22EC","notinE;":"\u22F9\u0338","nparsl;":"\u2AFD\u20E5","nprcue;":"\u22E0","nrarrc;":"\u2933\u0338","nrarrw;":"\u219D\u0338","nrtrie;":"\u22ED","nsccue;":"\u22E1","nsimeq;":"\u2244","Ntilde;":"\xD1","ntilde;":"\xF1","numero;":"\u2116","nVDash;":"\u22AF","nVdash;":"\u22AE","nvDash;":"\u22AD","nvdash;":"\u22AC","nvHarr;":"\u2904","nvlArr;":"\u2902","nvrArr;":"\u2903","nwarhk;":"\u2923","nwnear;":"\u2927","Oacute;":"\xD3","oacute;":"\xF3","Odblac;":"\u0150","odblac;":"\u0151","odsold;":"\u29BC","Ograve;":"\xD2","ograve;":"\xF2","ominus;":"\u2296","origof;":"\u22B6","Oslash;":"\xD8","oslash;":"\xF8","Otilde;":"\xD5","otilde;":"\xF5","Otimes;":"\u2A37","otimes;":"\u2297","parsim;":"\u2AF3","percnt;":"%","period;":".","permil;":"\u2030","phmmat;":"\u2133","planck;":"\u210F","plankv;":"\u210F","plusdo;":"\u2214","plusdu;":"\u2A25","plusmn;":"\xB1","preceq;":"\u2AAF","primes;":"\u2119","prnsim;":"\u22E8","propto;":"\u221D","prurel;":"\u22B0","puncsp;":"\u2008","qprime;":"\u2057","Racute;":"\u0154","racute;":"\u0155","rangle;":"\u27E9","rarrap;":"\u2975","rarrfs;":"\u291E","rarrhk;":"\u21AA","rarrlp;":"\u21AC","rarrpl;":"\u2945","Rarrtl;":"\u2916","rarrtl;":"\u21A3","rAtail;":"\u291C","ratail;":"\u291A","rbrace;":"}","rbrack;":"]","Rcaron;":"\u0158","rcaron;":"\u0159","Rcedil;":"\u0156","rcedil;":"\u0157","rdquor;":"\u201D","rfisht;":"\u297D","rfloor;":"\u230B","rharul;":"\u296C","rmoust;":"\u23B1","roplus;":"\u2A2E","rpargt;":"\u2994","rsaquo;":"\u203A","rsquor;":"\u2019","rthree;":"\u22CC","rtimes;":"\u22CA","Sacute;":"\u015A","sacute;":"\u015B","Scaron;":"\u0160","scaron;":"\u0161","Scedil;":"\u015E","scedil;":"\u015F","scnsim;":"\u22E9","searhk;":"\u2925","seswar;":"\u2929","sfrown;":"\u2322","SHCHcy;":"\u0429","shchcy;":"\u0449","sigmaf;":"\u03C2","sigmav;":"\u03C2","simdot;":"\u2A6A","smashp;":"\u2A33","SOFTcy;":"\u042C","softcy;":"\u044C","solbar;":"\u233F","spades;":"\u2660","sqcaps;":"\u2293\uFE00","sqcups;":"\u2294\uFE00","sqsube;":"\u2291","sqsupe;":"\u2292","Square;":"\u25A1","square;":"\u25A1","squarf;":"\u25AA","ssetmn;":"\u2216","ssmile;":"\u2323","sstarf;":"\u22C6","subdot;":"\u2ABD","Subset;":"\u22D0","subset;":"\u2282","subsim;":"\u2AC7","subsub;":"\u2AD5","subsup;":"\u2AD3","succeq;":"\u2AB0","supdot;":"\u2ABE","Supset;":"\u22D1","supset;":"\u2283","supsim;":"\u2AC8","supsub;":"\u2AD4","supsup;":"\u2AD6","swarhk;":"\u2926","swnwar;":"\u292A","target;":"\u2316","Tcaron;":"\u0164","tcaron;":"\u0165","Tcedil;":"\u0162","tcedil;":"\u0163","telrec;":"\u2315","there4;":"\u2234","thetav;":"\u03D1","thinsp;":"\u2009","thksim;":"\u223C","timesb;":"\u22A0","timesd;":"\u2A30","topbot;":"\u2336","topcir;":"\u2AF1","tprime;":"\u2034","tridot;":"\u25EC","Tstrok;":"\u0166","tstrok;":"\u0167","Uacute;":"\xDA","uacute;":"\xFA","Ubreve;":"\u016C","ubreve;":"\u016D","Udblac;":"\u0170","udblac;":"\u0171","ufisht;":"\u297E","Ugrave;":"\xD9","ugrave;":"\xF9","ulcorn;":"\u231C","ulcrop;":"\u230F","urcorn;":"\u231D","urcrop;":"\u230E","Utilde;":"\u0168","utilde;":"\u0169","vangrt;":"\u299C","varphi;":"\u03D5","varrho;":"\u03F1","Vdashl;":"\u2AE6","veebar;":"\u22BB","vellip;":"\u22EE","Verbar;":"\u2016","verbar;":"|","vsubnE;":"\u2ACB\uFE00","vsubne;":"\u228A\uFE00","vsupnE;":"\u2ACC\uFE00","vsupne;":"\u228B\uFE00","Vvdash;":"\u22AA","wedbar;":"\u2A5F","wedgeq;":"\u2259","weierp;":"\u2118","wreath;":"\u2240","xoplus;":"\u2A01","xotime;":"\u2A02","xsqcup;":"\u2A06","xuplus;":"\u2A04","xwedge;":"\u22C0","Yacute;":"\xDD","yacute;":"\xFD","Zacute;":"\u0179","zacute;":"\u017A","Zcaron;":"\u017D","zcaron;":"\u017E","zeetrf;":"\u2128","alefsym;":"\u2135","angrtvb;":"\u22BE","angzarr;":"\u237C","asympeq;":"\u224D","backsim;":"\u223D","Because;":"\u2235","because;":"\u2235","bemptyv;":"\u29B0","between;":"\u226C","bigcirc;":"\u25EF","bigodot;":"\u2A00","bigstar;":"\u2605","bnequiv;":"\u2261\u20E5","boxplus;":"\u229E","Cayleys;":"\u212D","Cconint;":"\u2230","ccupssm;":"\u2A50","Cedilla;":"\xB8","cemptyv;":"\u29B2","cirscir;":"\u29C2","coloneq;":"\u2254","congdot;":"\u2A6D","cudarrl;":"\u2938","cudarrr;":"\u2935","cularrp;":"\u293D","curarrm;":"\u293C","dbkarow;":"\u290F","ddagger;":"\u2021","ddotseq;":"\u2A77","demptyv;":"\u29B1","Diamond;":"\u22C4","diamond;":"\u22C4","digamma;":"\u03DD","dotplus;":"\u2214","DownTee;":"\u22A4","dwangle;":"\u29A6","Element;":"\u2208","Epsilon;":"\u0395","epsilon;":"\u03B5","eqcolon;":"\u2255","equivDD;":"\u2A78","gesdoto;":"\u2A82","gtquest;":"\u2A7C","gtrless;":"\u2277","harrcir;":"\u2948","Implies;":"\u21D2","intprod;":"\u2A3C","isindot;":"\u22F5","larrbfs;":"\u291F","larrsim;":"\u2973","lbrksld;":"\u298F","lbrkslu;":"\u298D","ldrdhar;":"\u2967","LeftTee;":"\u22A3","lesdoto;":"\u2A81","lessdot;":"\u22D6","lessgtr;":"\u2276","lesssim;":"\u2272","lotimes;":"\u2A34","lozenge;":"\u25CA","ltquest;":"\u2A7B","luruhar;":"\u2966","maltese;":"\u2720","minusdu;":"\u2A2A","napprox;":"\u2249","natural;":"\u266E","nearrow;":"\u2197","NewLine;":`
`,"nexists;":"\u2204","NoBreak;":"\u2060","notinva;":"\u2209","notinvb;":"\u22F7","notinvc;":"\u22F6","NotLess;":"\u226E","notniva;":"\u220C","notnivb;":"\u22FE","notnivc;":"\u22FD","npolint;":"\u2A14","npreceq;":"\u2AAF\u0338","nsqsube;":"\u22E2","nsqsupe;":"\u22E3","nsubset;":"\u2282\u20D2","nsucceq;":"\u2AB0\u0338","nsupset;":"\u2283\u20D2","nvinfin;":"\u29DE","nvltrie;":"\u22B4\u20D2","nvrtrie;":"\u22B5\u20D2","nwarrow;":"\u2196","olcross;":"\u29BB","Omicron;":"\u039F","omicron;":"\u03BF","orderof;":"\u2134","orslope;":"\u2A57","OverBar;":"\u203E","pertenk;":"\u2031","planckh;":"\u210E","pluscir;":"\u2A22","plussim;":"\u2A26","plustwo;":"\u2A27","precsim;":"\u227E","Product;":"\u220F","quatint;":"\u2A16","questeq;":"\u225F","rarrbfs;":"\u2920","rarrsim;":"\u2974","rbrksld;":"\u298E","rbrkslu;":"\u2990","rdldhar;":"\u2969","realine;":"\u211B","rotimes;":"\u2A35","ruluhar;":"\u2968","searrow;":"\u2198","simplus;":"\u2A24","simrarr;":"\u2972","subedot;":"\u2AC3","submult;":"\u2AC1","subplus;":"\u2ABF","subrarr;":"\u2979","succsim;":"\u227F","supdsub;":"\u2AD8","supedot;":"\u2AC4","suphsol;":"\u27C9","suphsub;":"\u2AD7","suplarr;":"\u297B","supmult;":"\u2AC2","supplus;":"\u2AC0","swarrow;":"\u2199","topfork;":"\u2ADA","triplus;":"\u2A39","tritime;":"\u2A3B","UpArrow;":"\u2191","Uparrow;":"\u21D1","uparrow;":"\u2191","Upsilon;":"\u03A5","upsilon;":"\u03C5","uwangle;":"\u29A7","vzigzag;":"\u299A","zigrarr;":"\u21DD","andslope;":"\u2A58","angmsdaa;":"\u29A8","angmsdab;":"\u29A9","angmsdac;":"\u29AA","angmsdad;":"\u29AB","angmsdae;":"\u29AC","angmsdaf;":"\u29AD","angmsdag;":"\u29AE","angmsdah;":"\u29AF","angrtvbd;":"\u299D","approxeq;":"\u224A","awconint;":"\u2233","backcong;":"\u224C","barwedge;":"\u2305","bbrktbrk;":"\u23B6","bigoplus;":"\u2A01","bigsqcup;":"\u2A06","biguplus;":"\u2A04","bigwedge;":"\u22C0","boxminus;":"\u229F","boxtimes;":"\u22A0","bsolhsub;":"\u27C8","capbrcup;":"\u2A49","circledR;":"\xAE","circledS;":"\u24C8","cirfnint;":"\u2A10","clubsuit;":"\u2663","cupbrcap;":"\u2A48","curlyvee;":"\u22CE","cwconint;":"\u2232","DDotrahd;":"\u2911","doteqdot;":"\u2251","DotEqual;":"\u2250","dotminus;":"\u2238","drbkarow;":"\u2910","dzigrarr;":"\u27FF","elinters;":"\u23E7","emptyset;":"\u2205","eqvparsl;":"\u29E5","fpartint;":"\u2A0D","geqslant;":"\u2A7E","gesdotol;":"\u2A84","gnapprox;":"\u2A8A","hksearow;":"\u2925","hkswarow;":"\u2926","imagline;":"\u2110","imagpart;":"\u2111","infintie;":"\u29DD","integers;":"\u2124","Integral;":"\u222B","intercal;":"\u22BA","intlarhk;":"\u2A17","laemptyv;":"\u29B4","ldrushar;":"\u294B","leqslant;":"\u2A7D","lesdotor;":"\u2A83","LessLess;":"\u2AA1","llcorner;":"\u231E","lnapprox;":"\u2A89","lrcorner;":"\u231F","lurdshar;":"\u294A","mapstoup;":"\u21A5","multimap;":"\u22B8","naturals;":"\u2115","ncongdot;":"\u2A6D\u0338","NotEqual;":"\u2260","notindot;":"\u22F5\u0338","NotTilde;":"\u2241","otimesas;":"\u2A36","parallel;":"\u2225","PartialD;":"\u2202","plusacir;":"\u2A23","pointint;":"\u2A15","Precedes;":"\u227A","precneqq;":"\u2AB5","precnsim;":"\u22E8","profalar;":"\u232E","profline;":"\u2312","profsurf;":"\u2313","raemptyv;":"\u29B3","realpart;":"\u211C","RightTee;":"\u22A2","rppolint;":"\u2A12","rtriltri;":"\u29CE","scpolint;":"\u2A13","setminus;":"\u2216","shortmid;":"\u2223","smeparsl;":"\u29E4","sqsubset;":"\u228F","sqsupset;":"\u2290","subseteq;":"\u2286","Succeeds;":"\u227B","succneqq;":"\u2AB6","succnsim;":"\u22E9","SuchThat;":"\u220B","Superset;":"\u2283","supseteq;":"\u2287","thetasym;":"\u03D1","thicksim;":"\u223C","timesbar;":"\u2A31","triangle;":"\u25B5","triminus;":"\u2A3A","trpezium;":"\u23E2","Uarrocir;":"\u2949","ulcorner;":"\u231C","UnderBar;":"_","urcorner;":"\u231D","varkappa;":"\u03F0","varsigma;":"\u03C2","vartheta;":"\u03D1","backprime;":"\u2035","backsimeq;":"\u22CD","Backslash;":"\u2216","bigotimes;":"\u2A02","CenterDot;":"\xB7","centerdot;":"\xB7","checkmark;":"\u2713","CircleDot;":"\u2299","complexes;":"\u2102","Congruent;":"\u2261","Coproduct;":"\u2210","dotsquare;":"\u22A1","DoubleDot;":"\xA8","DownArrow;":"\u2193","Downarrow;":"\u21D3","downarrow;":"\u2193","DownBreve;":"\u0311","gtrapprox;":"\u2A86","gtreqless;":"\u22DB","gvertneqq;":"\u2269\uFE00","heartsuit;":"\u2665","HumpEqual;":"\u224F","LeftArrow;":"\u2190","Leftarrow;":"\u21D0","leftarrow;":"\u2190","LeftFloor;":"\u230A","lesseqgtr;":"\u22DA","LessTilde;":"\u2272","lvertneqq;":"\u2268\uFE00","Mellintrf;":"\u2133","MinusPlus;":"\u2213","ngeqslant;":"\u2A7E\u0338","nleqslant;":"\u2A7D\u0338","NotCupCap;":"\u226D","NotExists;":"\u2204","NotSubset;":"\u2282\u20D2","nparallel;":"\u2226","nshortmid;":"\u2224","nsubseteq;":"\u2288","nsupseteq;":"\u2289","OverBrace;":"\u23DE","pitchfork;":"\u22D4","PlusMinus;":"\xB1","rationals;":"\u211A","spadesuit;":"\u2660","subseteqq;":"\u2AC5","subsetneq;":"\u228A","supseteqq;":"\u2AC6","supsetneq;":"\u228B","Therefore;":"\u2234","therefore;":"\u2234","ThinSpace;":"\u2009","triangleq;":"\u225C","TripleDot;":"\u20DB","UnionPlus;":"\u228E","varpropto;":"\u221D","Bernoullis;":"\u212C","circledast;":"\u229B","CirclePlus;":"\u2295","complement;":"\u2201","curlywedge;":"\u22CF","eqslantgtr;":"\u2A96","EqualTilde;":"\u2242","Fouriertrf;":"\u2131","gtreqqless;":"\u2A8C","ImaginaryI;":"\u2148","Laplacetrf;":"\u2112","LeftVector;":"\u21BC","lessapprox;":"\u2A85","lesseqqgtr;":"\u2A8B","Lleftarrow;":"\u21DA","lmoustache;":"\u23B0","longmapsto;":"\u27FC","mapstodown;":"\u21A7","mapstoleft;":"\u21A4","nLeftarrow;":"\u21CD","nleftarrow;":"\u219A","NotElement;":"\u2209","NotGreater;":"\u226F","nsubseteqq;":"\u2AC5\u0338","nsupseteqq;":"\u2AC6\u0338","precapprox;":"\u2AB7","Proportion;":"\u2237","RightArrow;":"\u2192","Rightarrow;":"\u21D2","rightarrow;":"\u2192","RightFloor;":"\u230B","rmoustache;":"\u23B1","sqsubseteq;":"\u2291","sqsupseteq;":"\u2292","subsetneqq;":"\u2ACB","succapprox;":"\u2AB8","supsetneqq;":"\u2ACC","ThickSpace;":"\u205F\u200A","TildeEqual;":"\u2243","TildeTilde;":"\u2248","UnderBrace;":"\u23DF","UpArrowBar;":"\u2912","UpTeeArrow;":"\u21A5","upuparrows;":"\u21C8","varepsilon;":"\u03F5","varnothing;":"\u2205","backepsilon;":"\u03F6","blacksquare;":"\u25AA","circledcirc;":"\u229A","circleddash;":"\u229D","CircleMinus;":"\u2296","CircleTimes;":"\u2297","curlyeqprec;":"\u22DE","curlyeqsucc;":"\u22DF","diamondsuit;":"\u2666","eqslantless;":"\u2A95","Equilibrium;":"\u21CC","expectation;":"\u2130","GreaterLess;":"\u2277","LeftCeiling;":"\u2308","LessGreater;":"\u2276","MediumSpace;":"\u205F","NotLessLess;":"\u226A\u0338","NotPrecedes;":"\u2280","NotSucceeds;":"\u2281","NotSuperset;":"\u2283\u20D2","nRightarrow;":"\u21CF","nrightarrow;":"\u219B","OverBracket;":"\u23B4","preccurlyeq;":"\u227C","precnapprox;":"\u2AB9","quaternions;":"\u210D","RightVector;":"\u21C0","Rrightarrow;":"\u21DB","RuleDelayed;":"\u29F4","SmallCircle;":"\u2218","SquareUnion;":"\u2294","straightphi;":"\u03D5","SubsetEqual;":"\u2286","succcurlyeq;":"\u227D","succnapprox;":"\u2ABA","thickapprox;":"\u2248","UpDownArrow;":"\u2195","Updownarrow;":"\u21D5","updownarrow;":"\u2195","VerticalBar;":"\u2223","blacklozenge;":"\u29EB","DownArrowBar;":"\u2913","DownTeeArrow;":"\u21A7","ExponentialE;":"\u2147","exponentiale;":"\u2147","GreaterEqual;":"\u2265","GreaterTilde;":"\u2273","HilbertSpace;":"\u210B","HumpDownHump;":"\u224E","Intersection;":"\u22C2","LeftArrowBar;":"\u21E4","LeftTeeArrow;":"\u21A4","LeftTriangle;":"\u22B2","LeftUpVector;":"\u21BF","NotCongruent;":"\u2262","NotHumpEqual;":"\u224F\u0338","NotLessEqual;":"\u2270","NotLessTilde;":"\u2274","Proportional;":"\u221D","RightCeiling;":"\u2309","risingdotseq;":"\u2253","RoundImplies;":"\u2970","ShortUpArrow;":"\u2191","SquareSubset;":"\u228F","triangledown;":"\u25BF","triangleleft;":"\u25C3","UnderBracket;":"\u23B5","varsubsetneq;":"\u228A\uFE00","varsupsetneq;":"\u228B\uFE00","VerticalLine;":"|","ApplyFunction;":"\u2061","bigtriangleup;":"\u25B3","blacktriangle;":"\u25B4","DifferentialD;":"\u2146","divideontimes;":"\u22C7","DoubleLeftTee;":"\u2AE4","DoubleUpArrow;":"\u21D1","fallingdotseq;":"\u2252","hookleftarrow;":"\u21A9","leftarrowtail;":"\u21A2","leftharpoonup;":"\u21BC","LeftTeeVector;":"\u295A","LeftVectorBar;":"\u2952","LessFullEqual;":"\u2266","LongLeftArrow;":"\u27F5","Longleftarrow;":"\u27F8","longleftarrow;":"\u27F5","looparrowleft;":"\u21AB","measuredangle;":"\u2221","NotEqualTilde;":"\u2242\u0338","NotTildeEqual;":"\u2244","NotTildeTilde;":"\u2249","ntriangleleft;":"\u22EA","Poincareplane;":"\u210C","PrecedesEqual;":"\u2AAF","PrecedesTilde;":"\u227E","RightArrowBar;":"\u21E5","RightTeeArrow;":"\u21A6","RightTriangle;":"\u22B3","RightUpVector;":"\u21BE","shortparallel;":"\u2225","smallsetminus;":"\u2216","SucceedsEqual;":"\u2AB0","SucceedsTilde;":"\u227F","SupersetEqual;":"\u2287","triangleright;":"\u25B9","UpEquilibrium;":"\u296E","upharpoonleft;":"\u21BF","varsubsetneqq;":"\u2ACB\uFE00","varsupsetneqq;":"\u2ACC\uFE00","VerticalTilde;":"\u2240","VeryThinSpace;":"\u200A","curvearrowleft;":"\u21B6","DiacriticalDot;":"\u02D9","doublebarwedge;":"\u2306","DoubleRightTee;":"\u22A8","downdownarrows;":"\u21CA","DownLeftVector;":"\u21BD","GreaterGreater;":"\u2AA2","hookrightarrow;":"\u21AA","HorizontalLine;":"\u2500","InvisibleComma;":"\u2063","InvisibleTimes;":"\u2062","LeftDownVector;":"\u21C3","leftleftarrows;":"\u21C7","LeftRightArrow;":"\u2194","Leftrightarrow;":"\u21D4","leftrightarrow;":"\u2194","leftthreetimes;":"\u22CB","LessSlantEqual;":"\u2A7D","LongRightArrow;":"\u27F6","Longrightarrow;":"\u27F9","longrightarrow;":"\u27F6","looparrowright;":"\u21AC","LowerLeftArrow;":"\u2199","NestedLessLess;":"\u226A","NotGreaterLess;":"\u2279","NotLessGreater;":"\u2278","NotSubsetEqual;":"\u2288","NotVerticalBar;":"\u2224","nshortparallel;":"\u2226","ntriangleright;":"\u22EB","OpenCurlyQuote;":"\u2018","ReverseElement;":"\u220B","rightarrowtail;":"\u21A3","rightharpoonup;":"\u21C0","RightTeeVector;":"\u295B","RightVectorBar;":"\u2953","ShortDownArrow;":"\u2193","ShortLeftArrow;":"\u2190","SquareSuperset;":"\u2290","TildeFullEqual;":"\u2245","trianglelefteq;":"\u22B4","upharpoonright;":"\u21BE","UpperLeftArrow;":"\u2196","ZeroWidthSpace;":"\u200B","bigtriangledown;":"\u25BD","circlearrowleft;":"\u21BA","CloseCurlyQuote;":"\u2019","ContourIntegral;":"\u222E","curvearrowright;":"\u21B7","DoubleDownArrow;":"\u21D3","DoubleLeftArrow;":"\u21D0","downharpoonleft;":"\u21C3","DownRightVector;":"\u21C1","leftharpoondown;":"\u21BD","leftrightarrows;":"\u21C6","LeftRightVector;":"\u294E","LeftTriangleBar;":"\u29CF","LeftUpTeeVector;":"\u2960","LeftUpVectorBar;":"\u2958","LowerRightArrow;":"\u2198","nLeftrightarrow;":"\u21CE","nleftrightarrow;":"\u21AE","NotGreaterEqual;":"\u2271","NotGreaterTilde;":"\u2275","NotHumpDownHump;":"\u224E\u0338","NotLeftTriangle;":"\u22EA","NotSquareSubset;":"\u228F\u0338","ntrianglelefteq;":"\u22EC","OverParenthesis;":"\u23DC","RightDownVector;":"\u21C2","rightleftarrows;":"\u21C4","rightsquigarrow;":"\u219D","rightthreetimes;":"\u22CC","ShortRightArrow;":"\u2192","straightepsilon;":"\u03F5","trianglerighteq;":"\u22B5","UpperRightArrow;":"\u2197","vartriangleleft;":"\u22B2","circlearrowright;":"\u21BB","DiacriticalAcute;":"\xB4","DiacriticalGrave;":"`","DiacriticalTilde;":"\u02DC","DoubleRightArrow;":"\u21D2","DownArrowUpArrow;":"\u21F5","downharpoonright;":"\u21C2","EmptySmallSquare;":"\u25FB","GreaterEqualLess;":"\u22DB","GreaterFullEqual;":"\u2267","LeftAngleBracket;":"\u27E8","LeftUpDownVector;":"\u2951","LessEqualGreater;":"\u22DA","NonBreakingSpace;":"\xA0","NotPrecedesEqual;":"\u2AAF\u0338","NotRightTriangle;":"\u22EB","NotSucceedsEqual;":"\u2AB0\u0338","NotSucceedsTilde;":"\u227F\u0338","NotSupersetEqual;":"\u2289","ntrianglerighteq;":"\u22ED","rightharpoondown;":"\u21C1","rightrightarrows;":"\u21C9","RightTriangleBar;":"\u29D0","RightUpTeeVector;":"\u295C","RightUpVectorBar;":"\u2954","twoheadleftarrow;":"\u219E","UnderParenthesis;":"\u23DD","UpArrowDownArrow;":"\u21C5","vartriangleright;":"\u22B3","blacktriangledown;":"\u25BE","blacktriangleleft;":"\u25C2","DoubleUpDownArrow;":"\u21D5","DoubleVerticalBar;":"\u2225","DownLeftTeeVector;":"\u295E","DownLeftVectorBar;":"\u2956","FilledSmallSquare;":"\u25FC","GreaterSlantEqual;":"\u2A7E","LeftDoubleBracket;":"\u27E6","LeftDownTeeVector;":"\u2961","LeftDownVectorBar;":"\u2959","leftrightharpoons;":"\u21CB","LeftTriangleEqual;":"\u22B4","NegativeThinSpace;":"\u200B","NotGreaterGreater;":"\u226B\u0338","NotLessSlantEqual;":"\u2A7D\u0338","NotNestedLessLess;":"\u2AA1\u0338","NotReverseElement;":"\u220C","NotSquareSuperset;":"\u2290\u0338","NotTildeFullEqual;":"\u2247","RightAngleBracket;":"\u27E9","rightleftharpoons;":"\u21CC","RightUpDownVector;":"\u294F","SquareSubsetEqual;":"\u2291","twoheadrightarrow;":"\u21A0","VerticalSeparator;":"\u2758","blacktriangleright;":"\u25B8","DownRightTeeVector;":"\u295F","DownRightVectorBar;":"\u2957","LongLeftRightArrow;":"\u27F7","Longleftrightarrow;":"\u27FA","longleftrightarrow;":"\u27F7","NegativeThickSpace;":"\u200B","NotLeftTriangleBar;":"\u29CF\u0338","PrecedesSlantEqual;":"\u227C","ReverseEquilibrium;":"\u21CB","RightDoubleBracket;":"\u27E7","RightDownTeeVector;":"\u295D","RightDownVectorBar;":"\u2955","RightTriangleEqual;":"\u22B5","SquareIntersection;":"\u2293","SucceedsSlantEqual;":"\u227D","DoubleLongLeftArrow;":"\u27F8","DownLeftRightVector;":"\u2950","LeftArrowRightArrow;":"\u21C6","leftrightsquigarrow;":"\u21AD","NegativeMediumSpace;":"\u200B","NotGreaterFullEqual;":"\u2267\u0338","NotRightTriangleBar;":"\u29D0\u0338","RightArrowLeftArrow;":"\u21C4","SquareSupersetEqual;":"\u2292","CapitalDifferentialD;":"\u2145","DoubleLeftRightArrow;":"\u21D4","DoubleLongRightArrow;":"\u27F9","EmptyVerySmallSquare;":"\u25AB","NestedGreaterGreater;":"\u226B","NotDoubleVerticalBar;":"\u2226","NotGreaterSlantEqual;":"\u2A7E\u0338","NotLeftTriangleEqual;":"\u22EC","NotSquareSubsetEqual;":"\u22E2","OpenCurlyDoubleQuote;":"\u201C","ReverseUpEquilibrium;":"\u296F","CloseCurlyDoubleQuote;":"\u201D","DoubleContourIntegral;":"\u222F","FilledVerySmallSquare;":"\u25AA","NegativeVeryThinSpace;":"\u200B","NotPrecedesSlantEqual;":"\u22E0","NotRightTriangleEqual;":"\u22ED","NotSucceedsSlantEqual;":"\u22E1","DiacriticalDoubleAcute;":"\u02DD","NotSquareSupersetEqual;":"\u22E3","NotNestedGreaterGreater;":"\u2AA2\u0338","ClockwiseContourIntegral;":"\u2232","DoubleLongLeftRightArrow;":"\u27FA","CounterClockwiseContourIntegral;":"\u2233"};let sd;const oN=(r,e)=>{let t=0;const n=r.length;let s="";function a(l){t+=l,r=r.slice(l)}for(;t<n;){const l=/&(?:#x?)?/i.exec(r);if(!l||t+l.index>=n){const u=n-t;s+=r.slice(0,u),a(u);break}if(s+=r.slice(0,l.index),a(l.index),l[0]==="&"){let u="",c;if(/[0-9a-z]/i.test(r[1])){sd||(sd=Object.keys(J0).reduce((m,g)=>Math.max(m,g.length),0));for(let m=sd;!c&&m>0;--m)u=r.slice(1,1+m),c=J0[u];if(c){const m=u.endsWith(";");e&&!m&&/[=a-z0-9]/i.test(r[u.length+1]||"")?(s+="&"+u,a(1+u.length)):(s+=c,a(1+u.length))}else s+="&"+u,a(1+u.length)}else s+="&",a(1)}else{const u=l[0]==="&#x",m=(u?/^&#x([0-9a-f]+);?/i:/^&#([0-9]+);?/).exec(r);if(!m)s+=l[0],a(l[0].length);else{let g=Number.parseInt(m[1],u?16:10);g===0||g>1114111||g>=55296&&g<=57343?g=65533:g>=64976&&g<=65007||(g&65534)===65534||(g>=1&&g<=8||g===11||g>=13&&g<=31||g>=127&&g<=159)&&(g=lN[g]||g),s+=String.fromCodePoint(g),a(m[0].length)}}}return s},lN={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},uN=Cr("style,iframe,script,noscript",!0),Ro={isVoidTag:Rw,isNativeTag:r=>_C(r)||EC(r),isPreTag:r=>r==="pre",decodeEntities:oN,isBuiltInComponent:r=>{if(ts(r,"Transition"))return el;if(ts(r,"TransitionGroup"))return Qu},getNamespace(r,e){let t=e?e.ns:0;if(e&&t===2)if(e.tag==="annotation-xml"){if(r==="svg")return 1;e.props.some(n=>n.type===6&&n.name==="encoding"&&n.value!=null&&(n.value.content==="text/html"||n.value.content==="application/xhtml+xml"))&&(t=0)}else/^m(?:[ions]|text)$/.test(e.tag)&&r!=="mglyph"&&r!=="malignmark"&&(t=0);else e&&t===1&&(e.tag==="foreignObject"||e.tag==="desc"||e.tag==="title")&&(t=0);if(t===0){if(r==="svg")return 1;if(r==="math")return 2}return t},getTextMode({tag:r,ns:e}){if(e===0){if(r==="textarea"||r==="title")return 1;if(uN(r))return 2}return 0}},Xm=r=>{r.type===1&&r.props.forEach((e,t)=>{e.type===6&&e.name==="style"&&e.value&&(r.props[t]={type:7,name:"bind",arg:ze("style",!0,e.loc),exp:cN(e.value.content,e.loc),modifiers:[],loc:e.loc})})},cN=(r,e)=>{const t=Mw(r);return ze(JSON.stringify(t),!1,e,3)};function tn(r,e){return jt(r,e,fN)}const fN={[50]:"v-html is missing expression.",[51]:"v-html will override element children.",[52]:"v-text is missing expression.",[53]:"v-text will override element children.",[54]:"v-model can only be used on <input>, <textarea> and <select> elements.",[55]:"v-model argument is not supported on plain elements.",[56]:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",[57]:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",[58]:"v-show is missing expression.",[59]:"<Transition> expects exactly one child element or component.",[60]:"Tags with side effect (<script> and <style>) are ignored in client component templates."},hN=(r,e,t)=>{const{exp:n,loc:s}=r;return n||t.onError(tn(50,s)),e.children.length&&(t.onError(tn(51,s)),e.children.length=0),{props:[Ft(ze("innerHTML",!0,s),n||ze("",!0))]}},pN=(r,e,t)=>{const{exp:n,loc:s}=r;return n||t.onError(tn(52,s)),e.children.length&&(t.onError(tn(53,s)),e.children.length=0),{props:[Ft(ze("textContent",!0),n?Sn(n,t)>0?n:ut(t.helperString(Vu),[n],s):ze("",!0))]}},dN=(r,e,t)=>{const n=Ch(r,e,t);if(!n.props.length||e.tagType===1)return n;r.arg&&t.onError(tn(55,r.arg.loc));function s(){const u=Tn(e,"value");u&&t.onError(tn(57,u.loc))}const{tag:a}=e,l=t.isCustomElement(a);if(a==="input"||a==="textarea"||a==="select"||l){let u=Vm,c=!1;if(a==="input"||l){const m=Tn(e,"type");if(m){if(m.type===7)u=Pf;else if(m.value)switch(m.value.content){case"radio":u=zm;break;case"checkbox":u=Hm;break;case"file":c=!0,t.onError(tn(56,r.loc));break;default:s();break}}else yh(e)?u=Pf:s()}else a==="select"?u=Gm:s();c||(n.needRuntime=t.helper(u))}else t.onError(tn(54,r.loc));return n.props=n.props.filter(u=>!(u.key.type===4&&u.key.content==="modelValue")),n},mN=Cr("passive,once,capture"),gN=Cr("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),yN=Cr("left,right"),Xx=Cr("onkeyup,onkeydown,onkeypress",!0),vN=(r,e,t,n)=>{const s=[],a=[],l=[];for(let u=0;u<e.length;u++){const c=e[u];mN(c)?l.push(c):yN(c)?rn(r)?Xx(r.content)?s.push(c):a.push(c):(s.push(c),a.push(c)):gN(c)?a.push(c):s.push(c)}return{keyModifiers:s,nonKeyModifiers:a,eventOptionModifiers:l}},X0=(r,e)=>rn(r)&&r.content.toLowerCase()==="onclick"?ze(e,!0):r.type!==4?Wr(["(",r,`) === "onClick" ? "${e}" : (`,r,")"]):r,bN=(r,e,t)=>Ah(r,e,t,n=>{const{modifiers:s}=r;if(!s.length)return n;let{key:a,value:l}=n.props[0];const{keyModifiers:u,nonKeyModifiers:c,eventOptionModifiers:m}=vN(a,s,t,r.loc);if(c.includes("right")&&(a=X0(a,"onContextmenu")),c.includes("middle")&&(a=X0(a,"onMouseup")),c.length&&(l=ut(t.helper(Km),[l,JSON.stringify(c)])),u.length&&(!rn(a)||Xx(a.content))&&(l=ut(t.helper(Ym),[l,JSON.stringify(u)])),m.length){const g=m.map(Sa).join("");a=rn(a)?ze(`${a.content}${g}`,!0):Wr(["(",a,`) + "${g}"`])}return{props:[Ft(a,l)]}}),wN=(r,e,t)=>{const{exp:n,loc:s}=r;return n||t.onError(tn(58,s)),{props:[],needRuntime:t.helper(Jm)}},xN=(r,e)=>{if(r.type===1&&r.tagType===1&&e.isBuiltInComponent(r.tag)===el)return()=>{if(!r.children.length)return;Qx(r)&&e.onError(tn(59,{start:r.children[0].loc.start,end:r.children[r.children.length-1].loc.end,source:""}));const n=r.children[0];if(n.type===1)for(const s of n.props)s.type===7&&s.name==="show"&&r.props.push({type:6,name:"persisted",value:void 0,loc:r.loc})}};function Qx(r){const e=r.children=r.children.filter(n=>n.type!==3&&!(n.type===2&&!n.content.trim())),t=e[0];return e.length!==1||t.type===11||t.type===9&&t.branches.some(Qx)}const SN=/__VUE_EXP_START__(.*?)__VUE_EXP_END__/g,kN=(r,e,t)=>{if(e.scopes.vSlot>0)return;let n=0,s=0;const a=[],l=c=>{if(n>=20||s>=5){const m=ut(e.helper(sh),[JSON.stringify(a.map(g=>Qm(g,e)).join("")).replace(SN,'" + $1 + "'),String(a.length)]);if(Z0(a[0],m,e),a.length>1){for(let v=1;v<a.length;v++)Z0(a[v],null,e);const g=a.length-1;return r.splice(c-a.length+1,g),g}}return 0};let u=0;for(;u<r.length;u++){const c=r[u];if(TN(c)){const g=c,v=AN(g);if(v){n+=v[0],s+=v[1],a.push(g);continue}}u-=l(u),n=0,s=0,a.length=0}l(u)},TN=r=>(r.type===1&&r.tagType===0||r.type==12)&&r.codegenNode&&r.codegenNode.type===4&&r.codegenNode.hoisted,_N=/^(data|aria)-/,Q0=(r,e)=>(e===0?yC(r):e===1?vC(r):!1)||_N.test(r),Z0=(r,e,t)=>{const n=r.codegenNode.hoisted;t.hoists[t.hoists.indexOf(n)]=e},EN=Cr("caption,thead,tr,th,tbody,td,tfoot,colgroup,col");function AN(r){if(r.type===1&&EN(r.tag))return!1;if(r.type===12)return[1,0];let e=1,t=r.props.length>0?1:0,n=!1;const s=()=>(n=!0,!1);function a(l){for(let u=0;u<l.props.length;u++){const c=l.props[u];if(c.type===6&&!Q0(c.name,l.ns)||c.type===7&&c.name==="bind"&&(c.arg&&(c.arg.type===8||c.arg.isStatic&&!Q0(c.arg.content,l.ns))||c.exp&&(c.exp.type===8||c.exp.constType<3)))return s()}for(let u=0;u<l.children.length;u++){e++;const c=l.children[u];if(c.type===1&&(c.props.length>0&&t++,a(c),n))return!1}return!0}return a(r)?[e,t]:!1}function Qm(r,e){if(Ct(r))return r;if(Uo(r))return"";switch(r.type){case 1:return CN(r,e);case 2:return bs(r.content);case 3:return`<!--${bs(r.content)}-->`;case 5:return bs(G1(va(r.content)));case 8:return bs(va(r));case 12:return Qm(r.content,e);default:return""}}function CN(r,e){let t=`<${r.tag}`,n="";for(let s=0;s<r.props.length;s++){const a=r.props[s];if(a.type===6)t+=` ${a.name}`,a.value&&(t+=`="${bs(a.value.content)}"`);else if(a.type===7)if(a.name==="bind"){const l=a.exp;if(l.content[0]==="_"){t+=` ${a.arg.content}="__VUE_EXP_START__${l.content}__VUE_EXP_END__"`;continue}let u=va(l);if(u!=null){const c=a.arg&&a.arg.content;c==="class"?u=Dw(u):c==="style"&&(u=xC(Lw(u))),t+=` ${a.arg.content}="${bs(u)}"`}}else a.name==="html"?n=va(a.exp):a.name==="text"&&(n=bs(G1(va(a.exp))))}if(e.scopeId&&(t+=` ${e.scopeId}`),t+=">",n)t+=n;else for(let s=0;s<r.children.length;s++)t+=Qm(r.children[s],e);return Rw(r.tag)||(t+=`</${r.tag}>`),t}function va(r){if(r.type===4)return new Function(`return ${r.content}`)();{let e="";return r.children.forEach(t=>{Ct(t)||Uo(t)||(t.type===2?e+=t.content:t.type===5?e+=G1(va(t.content)):e+=va(t))}),e}}const PN=(r,e)=>{r.type===1&&r.tagType===0&&(r.tag==="script"||r.tag==="style")&&(e.onError(tn(60,r.loc)),e.removeNode())},Zm=[Xm,xN],eg={cloak:ru,html:hN,text:pN,model:dN,on:bN,show:wN};function IN(r,e={}){return Jx(r,Qs({},Ro,e,{nodeTransforms:[PN,...Zm,...e.nodeTransforms||[]],directiveTransforms:Qs({},eg,e.directiveTransforms||{}),transformHoist:kN}))}function NN(r,e={}){return bh(r,Qs({},Ro,e))}var Zx=Object.freeze({__proto__:null,parserOptions:Ro,DOMNodeTransforms:Zm,DOMDirectiveTransforms:eg,compile:IN,parse:NN,transformStyle:Xm,createDOMCompilerError:tn,V_MODEL_RADIO:zm,V_MODEL_CHECKBOX:Hm,V_MODEL_TEXT:Vm,V_MODEL_SELECT:Gm,V_MODEL_DYNAMIC:Pf,V_ON_WITH_MODIFIERS:Km,V_ON_WITH_KEYS:Ym,V_SHOW:Jm,TRANSITION:el,TRANSITION_GROUP:Qu,baseCompile:Jx,baseParse:bh,transform:xh,createTransformContext:Ku,traverseNode:Go,createStructuralDirectiveTransform:Yu,generate:Nm,createCompilerError:jt,getBaseTransformPreset:Wm,transformModel:Ch,transformOn:Ah,transformBind:qm,noopDirectiveTransform:ru,processIf:Dm,processFor:Rm,createForLoopParams:Eu,transformExpression:Mm,processExpression:pn,buildSlots:Au,trackVForSlotScopes:$m,trackSlotScopes:Bm,transformElement:Yx,resolveComponentType:Eh,buildProps:Zo,buildDirectiveArgs:jm,processSlotOutlet:Um,getConstantType:Sn,generateCodeFrame:vo,checkCompatEnabled:NI,warnDeprecation:Ex,locStub:ar,createRoot:Ho,createVNodeCall:Io,createArrayExpression:Oa,createObjectExpression:xn,createObjectProperty:Ft,createSimpleExpression:ze,createInterpolation:wf,createCompoundExpression:Wr,createCallExpression:ut,createFunctionExpression:Rn,createConditionalExpression:Ri,createCacheExpression:Gw,createBlockStatement:Gu,createTemplateLiteral:nm,createIfStatement:xf,createAssignmentExpression:Ld,createSequenceExpression:Kw,createReturnStatement:Yw,isStaticExp:rn,isBuiltInType:ts,isCoreComponent:km,isSimpleIdentifier:Bi,isMemberExpressionBrowser:AI,isMemberExpressionNode:kx,isMemberExpression:Tm,getInnerRange:_m,advancePositionWithClone:_a,advancePositionWithMutation:Oo,assert:jd,findDir:Or,findProp:Tn,isStaticArgOf:Ks,hasDynamicKeyVBind:yh,isText:eu,isVSlot:Em,isTemplateNode:Lo,isSlotOutlet:Mo,getVNodeHelper:Ea,getVNodeBlockHelper:Aa,injectProp:Su,toValidAssetId:ku,hasScopeRef:bn,getMemoedVNodeCall:_x,makeBlock:vh,walkIdentifiers:Jo,isReferencedIdentifier:Om,isInDestructureAssignment:Xo,walkFunctionParams:Lm,walkBlockDeclarations:zx,extractIdentifiers:Zn,isFunctionType:pa,isStaticProperty:Qo,isStaticPropertyKey:Hx,FRAGMENT:Eo,TELEPORT:ga,SUSPENSE:qo,KEEP_ALIVE:mu,BASE_TRANSITION:J1,OPEN_BLOCK:Di,CREATE_BLOCK:X1,CREATE_ELEMENT_BLOCK:Q1,CREATE_VNODE:Hu,CREATE_ELEMENT_VNODE:rh,CREATE_COMMENT:Wo,CREATE_TEXT:nh,CREATE_STATIC:sh,RESOLVE_COMPONENT:gu,RESOLVE_DYNAMIC_COMPONENT:Ao,RESOLVE_DIRECTIVE:ih,RESOLVE_FILTER:Hw,WITH_DIRECTIVES:ah,RENDER_LIST:oh,RENDER_SLOT:Z1,CREATE_SLOTS:em,TO_DISPLAY_STRING:Vu,MERGE_PROPS:ka,NORMALIZE_CLASS:lh,NORMALIZE_STYLE:uh,NORMALIZE_PROPS:Co,GUARD_REACTIVE_PROPS:zo,TO_HANDLERS:ch,CAMELIZE:vf,CAPITALIZE:Vw,TO_HANDLER_KEY:bf,SET_BLOCK_TRACKING:yu,PUSH_SCOPE_ID:fh,POP_SCOPE_ID:hh,WITH_CTX:ph,UNREF:Po,IS_REF:vu,WITH_MEMO:dh,IS_MEMO_SAME:tm,helperNameMap:wn,registerRuntimeHelpers:rm});function ON(r,e){for(;r.length<e;)r="0"+r;return r}function Ws(r,e){var t,n,s;if(e.length===0)return r;for(t=0,s=e.length;t<s;t++)n=e.charCodeAt(t),r=(r<<5)-r+n,r|=0;return r<0?r*-2:r}function LN(r,e,t){return Object.keys(e).sort().reduce(n,r);function n(s,a){return eS(s,e[a],a,t)}}function eS(r,e,t,n){var s=Ws(Ws(Ws(r,t),MN(e)),typeof e);if(e===null)return Ws(s,"null");if(e===void 0)return Ws(s,"undefined");if(typeof e=="object"||typeof e=="function"){if(n.indexOf(e)!==-1)return Ws(s,"[Circular]"+t);n.push(e);var a=LN(s,e,n);if(!("valueOf"in e)||typeof e.valueOf!="function")return a;try{return Ws(a,String(e.valueOf()))}catch(l){return Ws(a,"[valueOf exception]"+(l.stack||l.message))}}return Ws(s,e.toString())}function MN(r){return Object.prototype.toString.call(r)}function DN(r){return ON(eS(0,r,"",[]).toString(16),8)}var RN=DN;const If="useCssVars";function tS(r,e,t,n=!1){return`{
${r.map(s=>`"${n?"--":""}${rS(e,s,t)}": (${s})`).join(`,
`)}
}`}function rS(r,e,t){return t?RN(r+e):`${r}-${e.replace(/([^\w-])/g,"_")}`}function nS(r){return r=r.trim(),r[0]==="'"&&r[r.length-1]==="'"||r[0]==='"'&&r[r.length-1]==='"'?r.slice(1,-1):r}const lf=/v-bind\s*\(/g;function FN(r){const e=[];return r.styles.forEach(t=>{let n;const s=t.content.replace(/\/\*([\s\S]*?)\*\//g,"");for(;n=lf.exec(s);){const a=n.index+n[0].length,l=sS(s,a);if(l!==null){const u=nS(s.slice(a,l));e.includes(u)||e.push(u)}}}),e}function sS(r,e){let t=0,n=0;for(let s=e;s<r.length;s++){const a=r.charAt(s);switch(t){case 0:if(a==="'")t=1;else if(a==='"')t=2;else if(a==="(")n++;else if(a===")")if(n>0)n--;else return s;break;case 1:a==="'"&&(t=0);break;case 2:a==='"'&&(t=0);break}}return null}const iS=r=>{const{id:e,isProd:t}=r;return{postcssPlugin:"vue-sfc-vars",Declaration(n){const s=n.value;if(lf.test(s)){lf.lastIndex=0;let a="",l=0,u;for(;u=lf.exec(s);){const c=u.index+u[0].length,m=sS(s,c);if(m!==null){const g=nS(s.slice(c,m));a+=s.slice(l,u.index)+`var(--${rS(e,g,t)})`,l=m+1}}n.value=a+s.slice(l)}}}};iS.postcss=!0;function aS(r,e,t,n){const s=tS(r,t,n),a=ze(s,!1),l=Ku(Ho([]),{prefixIdentifiers:!0,inline:!0,bindingMetadata:e.__isScriptSetup===!1?void 0:e}),u=pn(a,l),c=u.type===4?u.content:u.children.map(m=>typeof m=="string"?m:m.content).join("");return`_${If}(_ctx => (${c}))`}function BN(r,e,t,n){return`
import { ${If} as _${If} } from 'vue'
const __injectCSSVars__ = () => {
${aS(r,e,t,n)}}
const __setup__ = __default__.setup
__default__.setup = __setup__
? (props, ctx) => { __injectCSSVars__();return __setup__(props, ctx) }
: __injectCSSVars__
`}function oS(r=500){return new Map}var $i=typeof $i<"u"?$i:typeof self<"u"?self:typeof window<"u"?window:{},ys=[],Un=[],$N=typeof Uint8Array<"u"?Uint8Array:Array,tg=!1;function lS(){tg=!0;for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,t=r.length;e<t;++e)ys[e]=r[e],Un[r.charCodeAt(e)]=e;Un["-".charCodeAt(0)]=62,Un["_".charCodeAt(0)]=63}function jN(r){tg||lS();var e,t,n,s,a,l,u=r.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=r[u-2]==="="?2:r[u-1]==="="?1:0,l=new $N(u*3/4-a),n=a>0?u-4:u;var c=0;for(e=0,t=0;e<n;e+=4,t+=3)s=Un[r.charCodeAt(e)]<<18|Un[r.charCodeAt(e+1)]<<12|Un[r.charCodeAt(e+2)]<<6|Un[r.charCodeAt(e+3)],l[c++]=s>>16&255,l[c++]=s>>8&255,l[c++]=s&255;return a===2?(s=Un[r.charCodeAt(e)]<<2|Un[r.charCodeAt(e+1)]>>4,l[c++]=s&255):a===1&&(s=Un[r.charCodeAt(e)]<<10|Un[r.charCodeAt(e+1)]<<4|Un[r.charCodeAt(e+2)]>>2,l[c++]=s>>8&255,l[c++]=s&255),l}function UN(r){return ys[r>>18&63]+ys[r>>12&63]+ys[r>>6&63]+ys[r&63]}function qN(r,e,t){for(var n,s=[],a=e;a<t;a+=3)n=(r[a]<<16)+(r[a+1]<<8)+r[a+2],s.push(UN(n));return s.join("")}function eb(r){tg||lS();for(var e,t=r.length,n=t%3,s="",a=[],l=16383,u=0,c=t-n;u<c;u+=l)a.push(qN(r,u,u+l>c?c:u+l));return n===1?(e=r[t-1],s+=ys[e>>2],s+=ys[e<<4&63],s+="=="):n===2&&(e=(r[t-2]<<8)+r[t-1],s+=ys[e>>10],s+=ys[e>>4&63],s+=ys[e<<2&63],s+="="),a.push(s),a.join("")}function Ph(r,e,t,n,s){var a,l,u=s*8-n-1,c=(1<<u)-1,m=c>>1,g=-7,v=t?s-1:0,b=t?-1:1,x=r[e+v];for(v+=b,a=x&(1<<-g)-1,x>>=-g,g+=u;g>0;a=a*256+r[e+v],v+=b,g-=8);for(l=a&(1<<-g)-1,a>>=-g,g+=n;g>0;l=l*256+r[e+v],v+=b,g-=8);if(a===0)a=1-m;else{if(a===c)return l?NaN:(x?-1:1)*(1/0);l=l+Math.pow(2,n),a=a-m}return(x?-1:1)*l*Math.pow(2,a-n)}function uS(r,e,t,n,s,a){var l,u,c,m=a*8-s-1,g=(1<<m)-1,v=g>>1,b=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:a-1,E=n?1:-1,S=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,l=g):(l=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-l))<1&&(l--,c*=2),l+v>=1?e+=b/c:e+=b*Math.pow(2,1-v),e*c>=2&&(l++,c/=2),l+v>=g?(u=0,l=g):l+v>=1?(u=(e*c-1)*Math.pow(2,s),l=l+v):(u=e*Math.pow(2,v-1)*Math.pow(2,s),l=0));s>=8;r[t+x]=u&255,x+=E,u/=256,s-=8);for(l=l<<s|u,m+=s;m>0;r[t+x]=l&255,x+=E,l/=256,m-=8);r[t+x-E]|=S*128}var WN={}.toString,cS=Array.isArray||function(r){return WN.call(r)=="[object Array]"};/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/var zN=50;Ce.TYPED_ARRAY_SUPPORT=$i.TYPED_ARRAY_SUPPORT!==void 0?$i.TYPED_ARRAY_SUPPORT:!0;function Kd(){return Ce.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ys(r,e){if(Kd()<e)throw new RangeError("Invalid typed array length");return Ce.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(e),r.__proto__=Ce.prototype):(r===null&&(r=new Ce(e)),r.length=e),r}function Ce(r,e,t){if(!Ce.TYPED_ARRAY_SUPPORT&&!(this instanceof Ce))return new Ce(r,e,t);if(typeof r=="number"){if(typeof e=="string")throw new Error("If encoding is specified then the first argument must be a string");return rg(this,r)}return fS(this,r,e,t)}Ce.poolSize=8192;Ce._augment=function(r){return r.__proto__=Ce.prototype,r};function fS(r,e,t,n){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer?GN(r,e,t,n):typeof e=="string"?VN(r,e,t):KN(r,e)}Ce.from=function(r,e,t){return fS(null,r,e,t)};Ce.TYPED_ARRAY_SUPPORT&&(Ce.prototype.__proto__=Uint8Array.prototype,Ce.__proto__=Uint8Array);function hS(r){if(typeof r!="number")throw new TypeError('"size" argument must be a number');if(r<0)throw new RangeError('"size" argument must not be negative')}function HN(r,e,t,n){return hS(e),e<=0?Ys(r,e):t!==void 0?typeof n=="string"?Ys(r,e).fill(t,n):Ys(r,e).fill(t):Ys(r,e)}Ce.alloc=function(r,e,t){return HN(null,r,e,t)};function rg(r,e){if(hS(e),r=Ys(r,e<0?0:ng(e)|0),!Ce.TYPED_ARRAY_SUPPORT)for(var t=0;t<e;++t)r[t]=0;return r}Ce.allocUnsafe=function(r){return rg(null,r)};Ce.allocUnsafeSlow=function(r){return rg(null,r)};function VN(r,e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Ce.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');var n=pS(e,t)|0;r=Ys(r,n);var s=r.write(e,t);return s!==n&&(r=r.slice(0,s)),r}function Yd(r,e){var t=e.length<0?0:ng(e.length)|0;r=Ys(r,t);for(var n=0;n<t;n+=1)r[n]=e[n]&255;return r}function GN(r,e,t,n){if(e.byteLength,t<0||e.byteLength<t)throw new RangeError("'offset' is out of bounds");if(e.byteLength<t+(n||0))throw new RangeError("'length' is out of bounds");return t===void 0&&n===void 0?e=new Uint8Array(e):n===void 0?e=new Uint8Array(e,t):e=new Uint8Array(e,t,n),Ce.TYPED_ARRAY_SUPPORT?(r=e,r.__proto__=Ce.prototype):r=Yd(r,e),r}function KN(r,e){if(As(e)){var t=ng(e.length)|0;return r=Ys(r,t),r.length===0||e.copy(r,0,0,t),r}if(e){if(typeof ArrayBuffer<"u"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||pO(e.length)?Ys(r,0):Yd(r,e);if(e.type==="Buffer"&&cS(e.data))return Yd(r,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function ng(r){if(r>=Kd())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Kd().toString(16)+" bytes");return r|0}Ce.isBuffer=dO;function As(r){return!!(r!=null&&r._isBuffer)}Ce.compare=function(e,t){if(!As(e)||!As(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,s=t.length,a=0,l=Math.min(n,s);a<l;++a)if(e[a]!==t[a]){n=e[a],s=t[a];break}return n<s?-1:s<n?1:0};Ce.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};Ce.concat=function(e,t){if(!cS(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return Ce.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var s=Ce.allocUnsafe(t),a=0;for(n=0;n<e.length;++n){var l=e[n];if(!As(l))throw new TypeError('"list" argument must be an Array of Buffers');l.copy(s,a),a+=l.length}return s};function pS(r,e){if(As(r))return r.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(r)||r instanceof ArrayBuffer))return r.byteLength;typeof r!="string"&&(r=""+r);var t=r.length;if(t===0)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case void 0:return Nf(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return wS(r).length;default:if(n)return Nf(r).length;e=(""+e).toLowerCase(),n=!0}}Ce.byteLength=pS;function YN(r,e,t){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return iO(this,e,t);case"utf8":case"utf-8":return gS(this,e,t);case"ascii":return nO(this,e,t);case"latin1":case"binary":return sO(this,e,t);case"base64":return tO(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return aO(this,e,t);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}Ce.prototype._isBuffer=!0;function da(r,e,t){var n=r[e];r[e]=r[t],r[t]=n}Ce.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)da(this,t,t+1);return this};Ce.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)da(this,t,t+3),da(this,t+1,t+2);return this};Ce.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)da(this,t,t+7),da(this,t+1,t+6),da(this,t+2,t+5),da(this,t+3,t+4);return this};Ce.prototype.toString=function(){var e=this.length|0;return e===0?"":arguments.length===0?gS(this,0,e):YN.apply(this,arguments)};Ce.prototype.equals=function(e){if(!As(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:Ce.compare(this,e)===0};Ce.prototype.inspect=function(){var e="",t=zN;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"};Ce.prototype.compare=function(e,t,n,s,a){if(!As(e))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),s===void 0&&(s=0),a===void 0&&(a=this.length),t<0||n>e.length||s<0||a>this.length)throw new RangeError("out of range index");if(s>=a&&t>=n)return 0;if(s>=a)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,s>>>=0,a>>>=0,this===e)return 0;for(var l=a-s,u=n-t,c=Math.min(l,u),m=this.slice(s,a),g=e.slice(t,n),v=0;v<c;++v)if(m[v]!==g[v]){l=m[v],u=g[v];break}return l<u?-1:u<l?1:0};function dS(r,e,t,n,s){if(r.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=s?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(s)return-1;t=r.length-1}else if(t<0)if(s)t=0;else return-1;if(typeof e=="string"&&(e=Ce.from(e,n)),As(e))return e.length===0?-1:tb(r,e,t,n,s);if(typeof e=="number")return e=e&255,Ce.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?s?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):tb(r,[e],t,n,s);throw new TypeError("val must be string, number or Buffer")}function tb(r,e,t,n,s){var a=1,l=r.length,u=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||e.length<2)return-1;a=2,l/=2,u/=2,t/=2}function c(x,E){return a===1?x[E]:x.readUInt16BE(E*a)}var m;if(s){var g=-1;for(m=t;m<l;m++)if(c(r,m)===c(e,g===-1?0:m-g)){if(g===-1&&(g=m),m-g+1===u)return g*a}else g!==-1&&(m-=m-g),g=-1}else for(t+u>l&&(t=l-u),m=t;m>=0;m--){for(var v=!0,b=0;b<u;b++)if(c(r,m+b)!==c(e,b)){v=!1;break}if(v)return m}return-1}Ce.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1};Ce.prototype.indexOf=function(e,t,n){return dS(this,e,t,n,!0)};Ce.prototype.lastIndexOf=function(e,t,n){return dS(this,e,t,n,!1)};function JN(r,e,t,n){t=Number(t)||0;var s=r.length-t;n?(n=Number(n),n>s&&(n=s)):n=s;var a=e.length;if(a%2!==0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var l=0;l<n;++l){var u=parseInt(e.substr(l*2,2),16);if(isNaN(u))return l;r[t+l]=u}return l}function XN(r,e,t,n){return Oh(Nf(e,r.length-t),r,t,n)}function mS(r,e,t,n){return Oh(fO(e),r,t,n)}function QN(r,e,t,n){return mS(r,e,t,n)}function ZN(r,e,t,n){return Oh(wS(e),r,t,n)}function eO(r,e,t,n){return Oh(hO(e,r.length-t),r,t,n)}Ce.prototype.write=function(e,t,n,s){if(t===void 0)s="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")s=t,n=this.length,t=0;else if(isFinite(t))t=t|0,isFinite(n)?(n=n|0,s===void 0&&(s="utf8")):(s=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-t;if((n===void 0||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");for(var l=!1;;)switch(s){case"hex":return JN(this,e,t,n);case"utf8":case"utf-8":return XN(this,e,t,n);case"ascii":return mS(this,e,t,n);case"latin1":case"binary":return QN(this,e,t,n);case"base64":return ZN(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return eO(this,e,t,n);default:if(l)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),l=!0}};Ce.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function tO(r,e,t){return e===0&&t===r.length?eb(r):eb(r.slice(e,t))}function gS(r,e,t){t=Math.min(r.length,t);for(var n=[],s=e;s<t;){var a=r[s],l=null,u=a>239?4:a>223?3:a>191?2:1;if(s+u<=t){var c,m,g,v;switch(u){case 1:a<128&&(l=a);break;case 2:c=r[s+1],(c&192)===128&&(v=(a&31)<<6|c&63,v>127&&(l=v));break;case 3:c=r[s+1],m=r[s+2],(c&192)===128&&(m&192)===128&&(v=(a&15)<<12|(c&63)<<6|m&63,v>2047&&(v<55296||v>57343)&&(l=v));break;case 4:c=r[s+1],m=r[s+2],g=r[s+3],(c&192)===128&&(m&192)===128&&(g&192)===128&&(v=(a&15)<<18|(c&63)<<12|(m&63)<<6|g&63,v>65535&&v<1114112&&(l=v))}}l===null?(l=65533,u=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|l&1023),n.push(l),s+=u}return rO(n)}var rb=4096;function rO(r){var e=r.length;if(e<=rb)return String.fromCharCode.apply(String,r);for(var t="",n=0;n<e;)t+=String.fromCharCode.apply(String,r.slice(n,n+=rb));return t}function nO(r,e,t){var n="";t=Math.min(r.length,t);for(var s=e;s<t;++s)n+=String.fromCharCode(r[s]&127);return n}function sO(r,e,t){var n="";t=Math.min(r.length,t);for(var s=e;s<t;++s)n+=String.fromCharCode(r[s]);return n}function iO(r,e,t){var n=r.length;(!e||e<0)&&(e=0),(!t||t<0||t>n)&&(t=n);for(var s="",a=e;a<t;++a)s+=cO(r[a]);return s}function aO(r,e,t){for(var n=r.slice(e,t),s="",a=0;a<n.length;a+=2)s+=String.fromCharCode(n[a]+n[a+1]*256);return s}Ce.prototype.slice=function(e,t){var n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);var s;if(Ce.TYPED_ARRAY_SUPPORT)s=this.subarray(e,t),s.__proto__=Ce.prototype;else{var a=t-e;s=new Ce(a,void 0);for(var l=0;l<a;++l)s[l]=this[l+e]}return s};function Rr(r,e,t){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+e>t)throw new RangeError("Trying to access beyond buffer length")}Ce.prototype.readUIntLE=function(e,t,n){e=e|0,t=t|0,n||Rr(e,t,this.length);for(var s=this[e],a=1,l=0;++l<t&&(a*=256);)s+=this[e+l]*a;return s};Ce.prototype.readUIntBE=function(e,t,n){e=e|0,t=t|0,n||Rr(e,t,this.length);for(var s=this[e+--t],a=1;t>0&&(a*=256);)s+=this[e+--t]*a;return s};Ce.prototype.readUInt8=function(e,t){return t||Rr(e,1,this.length),this[e]};Ce.prototype.readUInt16LE=function(e,t){return t||Rr(e,2,this.length),this[e]|this[e+1]<<8};Ce.prototype.readUInt16BE=function(e,t){return t||Rr(e,2,this.length),this[e]<<8|this[e+1]};Ce.prototype.readUInt32LE=function(e,t){return t||Rr(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};Ce.prototype.readUInt32BE=function(e,t){return t||Rr(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};Ce.prototype.readIntLE=function(e,t,n){e=e|0,t=t|0,n||Rr(e,t,this.length);for(var s=this[e],a=1,l=0;++l<t&&(a*=256);)s+=this[e+l]*a;return a*=128,s>=a&&(s-=Math.pow(2,8*t)),s};Ce.prototype.readIntBE=function(e,t,n){e=e|0,t=t|0,n||Rr(e,t,this.length);for(var s=t,a=1,l=this[e+--s];s>0&&(a*=256);)l+=this[e+--s]*a;return a*=128,l>=a&&(l-=Math.pow(2,8*t)),l};Ce.prototype.readInt8=function(e,t){return t||Rr(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};Ce.prototype.readInt16LE=function(e,t){t||Rr(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};Ce.prototype.readInt16BE=function(e,t){t||Rr(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};Ce.prototype.readInt32LE=function(e,t){return t||Rr(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};Ce.prototype.readInt32BE=function(e,t){return t||Rr(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};Ce.prototype.readFloatLE=function(e,t){return t||Rr(e,4,this.length),Ph(this,e,!0,23,4)};Ce.prototype.readFloatBE=function(e,t){return t||Rr(e,4,this.length),Ph(this,e,!1,23,4)};Ce.prototype.readDoubleLE=function(e,t){return t||Rr(e,8,this.length),Ph(this,e,!0,52,8)};Ce.prototype.readDoubleBE=function(e,t){return t||Rr(e,8,this.length),Ph(this,e,!1,52,8)};function En(r,e,t,n,s,a){if(!As(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>s||e<a)throw new RangeError('"value" argument is out of bounds');if(t+n>r.length)throw new RangeError("Index out of range")}Ce.prototype.writeUIntLE=function(e,t,n,s){if(e=+e,t=t|0,n=n|0,!s){var a=Math.pow(2,8*n)-1;En(this,e,t,n,a,0)}var l=1,u=0;for(this[t]=e&255;++u<n&&(l*=256);)this[t+u]=e/l&255;return t+n};Ce.prototype.writeUIntBE=function(e,t,n,s){if(e=+e,t=t|0,n=n|0,!s){var a=Math.pow(2,8*n)-1;En(this,e,t,n,a,0)}var l=n-1,u=1;for(this[t+l]=e&255;--l>=0&&(u*=256);)this[t+l]=e/u&255;return t+n};Ce.prototype.writeUInt8=function(e,t,n){return e=+e,t=t|0,n||En(this,e,t,1,255,0),Ce.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=e&255,t+1};function Ih(r,e,t,n){e<0&&(e=65535+e+1);for(var s=0,a=Math.min(r.length-t,2);s<a;++s)r[t+s]=(e&255<<8*(n?s:1-s))>>>(n?s:1-s)*8}Ce.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t|0,n||En(this,e,t,2,65535,0),Ce.TYPED_ARRAY_SUPPORT?(this[t]=e&255,this[t+1]=e>>>8):Ih(this,e,t,!0),t+2};Ce.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t|0,n||En(this,e,t,2,65535,0),Ce.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e&255):Ih(this,e,t,!1),t+2};function Nh(r,e,t,n){e<0&&(e=4294967295+e+1);for(var s=0,a=Math.min(r.length-t,4);s<a;++s)r[t+s]=e>>>(n?s:3-s)*8&255}Ce.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t|0,n||En(this,e,t,4,4294967295,0),Ce.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255):Nh(this,e,t,!0),t+4};Ce.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t|0,n||En(this,e,t,4,4294967295,0),Ce.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255):Nh(this,e,t,!1),t+4};Ce.prototype.writeIntLE=function(e,t,n,s){if(e=+e,t=t|0,!s){var a=Math.pow(2,8*n-1);En(this,e,t,n,a-1,-a)}var l=0,u=1,c=0;for(this[t]=e&255;++l<n&&(u*=256);)e<0&&c===0&&this[t+l-1]!==0&&(c=1),this[t+l]=(e/u>>0)-c&255;return t+n};Ce.prototype.writeIntBE=function(e,t,n,s){if(e=+e,t=t|0,!s){var a=Math.pow(2,8*n-1);En(this,e,t,n,a-1,-a)}var l=n-1,u=1,c=0;for(this[t+l]=e&255;--l>=0&&(u*=256);)e<0&&c===0&&this[t+l+1]!==0&&(c=1),this[t+l]=(e/u>>0)-c&255;return t+n};Ce.prototype.writeInt8=function(e,t,n){return e=+e,t=t|0,n||En(this,e,t,1,127,-128),Ce.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=e&255,t+1};Ce.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t|0,n||En(this,e,t,2,32767,-32768),Ce.TYPED_ARRAY_SUPPORT?(this[t]=e&255,this[t+1]=e>>>8):Ih(this,e,t,!0),t+2};Ce.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t|0,n||En(this,e,t,2,32767,-32768),Ce.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e&255):Ih(this,e,t,!1),t+2};Ce.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t|0,n||En(this,e,t,4,2147483647,-2147483648),Ce.TYPED_ARRAY_SUPPORT?(this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Nh(this,e,t,!0),t+4};Ce.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t|0,n||En(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Ce.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255):Nh(this,e,t,!1),t+4};function yS(r,e,t,n,s,a){if(t+n>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function vS(r,e,t,n,s){return s||yS(r,e,t,4),uS(r,e,t,n,23,4),t+4}Ce.prototype.writeFloatLE=function(e,t,n){return vS(this,e,t,!0,n)};Ce.prototype.writeFloatBE=function(e,t,n){return vS(this,e,t,!1,n)};function bS(r,e,t,n,s){return s||yS(r,e,t,8),uS(r,e,t,n,52,8),t+8}Ce.prototype.writeDoubleLE=function(e,t,n){return bS(this,e,t,!0,n)};Ce.prototype.writeDoubleBE=function(e,t,n){return bS(this,e,t,!1,n)};Ce.prototype.copy=function(e,t,n,s){if(n||(n=0),!s&&s!==0&&(s=this.length),t>=e.length&&(t=e.length),t||(t=0),s>0&&s<n&&(s=n),s===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-t<s-n&&(s=e.length-t+n);var a=s-n,l;if(this===e&&n<t&&t<s)for(l=a-1;l>=0;--l)e[l+t]=this[l+n];else if(a<1e3||!Ce.TYPED_ARRAY_SUPPORT)for(l=0;l<a;++l)e[l+t]=this[l+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a};Ce.prototype.fill=function(e,t,n,s){if(typeof e=="string"){if(typeof t=="string"?(s=t,t=0,n=this.length):typeof n=="string"&&(s=n,n=this.length),e.length===1){var a=e.charCodeAt(0);a<256&&(e=a)}if(s!==void 0&&typeof s!="string")throw new TypeError("encoding must be a string");if(typeof s=="string"&&!Ce.isEncoding(s))throw new TypeError("Unknown encoding: "+s)}else typeof e=="number"&&(e=e&255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var l;if(typeof e=="number")for(l=t;l<n;++l)this[l]=e;else{var u=As(e)?e:Nf(new Ce(e,s).toString()),c=u.length;for(l=0;l<n-t;++l)this[l+t]=u[l%c]}return this};var oO=/[^+\/0-9A-Za-z-_]/g;function lO(r){if(r=uO(r).replace(oO,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function uO(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}function cO(r){return r<16?"0"+r.toString(16):r.toString(16)}function Nf(r,e){e=e||1/0;for(var t,n=r.length,s=null,a=[],l=0;l<n;++l){if(t=r.charCodeAt(l),t>55295&&t<57344){if(!s){if(t>56319){(e-=3)>-1&&a.push(239,191,189);continue}else if(l+1===n){(e-=3)>-1&&a.push(239,191,189);continue}s=t;continue}if(t<56320){(e-=3)>-1&&a.push(239,191,189),s=t;continue}t=(s-55296<<10|t-56320)+65536}else s&&(e-=3)>-1&&a.push(239,191,189);if(s=null,t<128){if((e-=1)<0)break;a.push(t)}else if(t<2048){if((e-=2)<0)break;a.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;a.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;a.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return a}function fO(r){for(var e=[],t=0;t<r.length;++t)e.push(r.charCodeAt(t)&255);return e}function hO(r,e){for(var t,n,s,a=[],l=0;l<r.length&&!((e-=2)<0);++l)t=r.charCodeAt(l),n=t>>8,s=t%256,a.push(s),a.push(n);return a}function wS(r){return jN(lO(r))}function Oh(r,e,t,n){for(var s=0;s<n&&!(s+t>=e.length||s>=r.length);++s)e[s+t]=r[s];return s}function pO(r){return r!==r}function dO(r){return r!=null&&(!!r._isBuffer||xS(r)||mO(r))}function xS(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function mO(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&xS(r.slice(0,0))}var gO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function yO(r){for(var e=0,t=0,n=0,s=0,a="",l=0;l<r.length;l++){var u=r[l];if(l>0&&(a+=";"),u.length!==0){for(var c=0,m=[],g=0,v=u;g<v.length;g++){var b=v[g],x=jl(b[0]-c);c=b[0],b.length>1&&(x+=jl(b[1]-e)+jl(b[2]-t)+jl(b[3]-n),e=b[1],t=b[2],n=b[3]),b.length===5&&(x+=jl(b[4]-s),s=b[4]),m.push(x)}a+=m.join(",")}}return a}function jl(r){var e="";r=r<0?-r<<1|1:r<<1;do{var t=r&31;r>>>=5,r>0&&(t|=32),e+=gO[t]}while(r>0);return e}var Lh=function r(e){this.bits=e instanceof r?e.bits.slice():[]};Lh.prototype.add=function(e){this.bits[e>>5]|=1<<(e&31)};Lh.prototype.has=function(e){return!!(this.bits[e>>5]&1<<(e&31))};var Hr=function(e,t,n){this.start=e,this.end=t,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};Hr.prototype.appendLeft=function(e){this.outro+=e};Hr.prototype.appendRight=function(e){this.intro=this.intro+e};Hr.prototype.clone=function(){var e=new Hr(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e};Hr.prototype.contains=function(e){return this.start<e&&e<this.end};Hr.prototype.eachNext=function(e){for(var t=this;t;)e(t),t=t.next};Hr.prototype.eachPrevious=function(e){for(var t=this;t;)e(t),t=t.previous};Hr.prototype.edit=function(e,t,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this};Hr.prototype.prependLeft=function(e){this.outro=e+this.outro};Hr.prototype.prependRight=function(e){this.intro=e+this.intro};Hr.prototype.split=function(e){var t=e-this.start,n=this.original.slice(0,t),s=this.original.slice(t);this.original=n;var a=new Hr(e,this.end,s);return a.outro=this.outro,this.outro="",this.end=e,this.edited?(a.edit("",!1),this.content=""):this.content=n,a.next=this.next,a.next&&(a.next.previous=a),a.previous=this,this.next=a,a};Hr.prototype.toString=function(){return this.intro+this.content+this.outro};Hr.prototype.trimEnd=function(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;var t=this.content.replace(e,"");if(t.length)return t!==this.content&&this.split(this.start+t.length).edit("",void 0,!0),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0};Hr.prototype.trimStart=function(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;var t=this.content.replace(e,"");if(t.length)return t!==this.content&&(this.split(this.end-t.length),this.edit("",void 0,!0)),!0;if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0};var Jd=function(){throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};typeof window<"u"&&typeof window.btoa=="function"?Jd=function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Ce=="function"&&(Jd=function(r){return Ce.from(r,"utf-8").toString("base64")});var sg=function(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=yO(e.mappings)};sg.prototype.toString=function(){return JSON.stringify(this)};sg.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+Jd(this.toString())};function vO(r){var e=r.split(`
`),t=e.filter(function(a){return/^\t+/.test(a)}),n=e.filter(function(a){return/^ {2,}/.test(a)});if(t.length===0&&n.length===0)return null;if(t.length>=n.length)return" ";var s=n.reduce(function(a,l){var u=/^ +/.exec(l)[0].length;return Math.min(u,a)},1/0);return new Array(s+1).join(" ")}function bO(r,e){var t=r.split(/[/\\]/),n=e.split(/[/\\]/);for(t.pop();t[0]===n[0];)t.shift(),n.shift();if(t.length)for(var s=t.length;s--;)t[s]="..";return t.concat(n).join("/")}var wO=Object.prototype.toString;function xO(r){return wO.call(r)==="[object Object]"}function SS(r){for(var e=r.split(`
`),t=[],n=0,s=0;n<e.length;n++)t.push(s),s+=e[n].length+1;return function(l){for(var u=0,c=t.length;u<c;){var m=u+c>>1;l<t[m]?c=m:u=m+1}var g=u-1,v=l-t[g];return{line:g,column:v}}}var Mh=function(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null};Mh.prototype.addEdit=function(e,t,n,s){if(t.length){var a=[this.generatedCodeColumn,e,n.line,n.column];s>=0&&a.push(s),this.rawSegments.push(a)}else this.pending&&this.rawSegments.push(this.pending);this.advance(t),this.pending=null};Mh.prototype.addUneditedChunk=function(e,t,n,s,a){for(var l=t.start,u=!0;l<t.end;)(this.hires||u||a.has(l))&&this.rawSegments.push([this.generatedCodeColumn,e,s.line,s.column]),n[l]===`
`?(s.line+=1,s.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,u=!0):(s.column+=1,this.generatedCodeColumn+=1,u=!1),l+=1;this.pending=null};Mh.prototype.advance=function(e){if(!!e){var t=e.split(`
`);if(t.length>1){for(var n=0;n<t.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}};var Ul=`
`,Fo={insertLeft:!1,insertRight:!1,storeName:!1},xt=function(e,t){t===void 0&&(t={});var n=new Hr(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new Lh},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:vO(e)}}),this.byStart[0]=n,this.byEnd[e.length]=n};xt.prototype.addSourcemapLocation=function(e){this.sourcemapLocations.add(e)};xt.prototype.append=function(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.outro+=e,this};xt.prototype.appendLeft=function(e,t){if(typeof t!="string")throw new TypeError("inserted content must be a string");this._split(e);var n=this.byEnd[e];return n?n.appendLeft(t):this.intro+=t,this};xt.prototype.appendRight=function(e,t){if(typeof t!="string")throw new TypeError("inserted content must be a string");this._split(e);var n=this.byStart[e];return n?n.appendRight(t):this.outro+=t,this};xt.prototype.clone=function(){for(var e=new xt(this.original,{filename:this.filename}),t=this.firstChunk,n=e.firstChunk=e.lastSearchedChunk=t.clone();t;){e.byStart[n.start]=n,e.byEnd[n.end]=n;var s=t.next,a=s&&s.clone();a&&(n.next=a,a.previous=n,n=a),t=s}return e.lastChunk=n,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new Lh(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e};xt.prototype.generateDecodedMap=function(e){var t=this;e=e||{};var n=0,s=Object.keys(this.storedNames),a=new Mh(e.hires),l=SS(this.original);return this.intro&&a.advance(this.intro),this.firstChunk.eachNext(function(u){var c=l(u.start);u.intro.length&&a.advance(u.intro),u.edited?a.addEdit(n,u.content,c,u.storeName?s.indexOf(u.original):-1):a.addUneditedChunk(n,u,t.original,c,t.sourcemapLocations),u.outro.length&&a.advance(u.outro)}),{file:e.file?e.file.split(/[/\\]/).pop():null,sources:[e.source?bO(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:s,mappings:a.raw}};xt.prototype.generateMap=function(e){return new sg(this.generateDecodedMap(e))};xt.prototype.getIndentString=function(){return this.indentStr===null?" ":this.indentStr};xt.prototype.indent=function(e,t){var n=/^[^\r\n]/gm;if(xO(e)&&(t=e,e=void 0),e=e!==void 0?e:this.indentStr||" ",e==="")return this;t=t||{};var s={};if(t.exclude){var a=typeof t.exclude[0]=="number"?[t.exclude]:t.exclude;a.forEach(function(b){for(var x=b[0];x<b[1];x+=1)s[x]=!0})}var l=t.indentStart!==!1,u=function(b){return l?""+e+b:(l=!0,b)};this.intro=this.intro.replace(n,u);for(var c=0,m=this.firstChunk;m;){var g=m.end;if(m.edited)s[c]||(m.content=m.content.replace(n,u),m.content.length&&(l=m.content[m.content.length-1]===`
`));else for(c=m.start;c<g;){if(!s[c]){var v=this.original[c];v===`
`?l=!0:v!=="\r"&&l&&(l=!1,c===m.start||(this._splitChunk(m,c),m=m.next),m.prependRight(e))}c+=1}c=m.end,m=m.next}return this.outro=this.outro.replace(n,u),this};xt.prototype.insert=function(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")};xt.prototype.insertLeft=function(e,t){return Fo.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),Fo.insertLeft=!0),this.appendLeft(e,t)};xt.prototype.insertRight=function(e,t){return Fo.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),Fo.insertRight=!0),this.prependRight(e,t)};xt.prototype.move=function(e,t,n){if(n>=e&&n<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(n);var s=this.byStart[e],a=this.byEnd[t],l=s.previous,u=a.next,c=this.byStart[n];if(!c&&a===this.lastChunk)return this;var m=c?c.previous:this.lastChunk;return l&&(l.next=u),u&&(u.previous=l),m&&(m.next=s),c&&(c.previous=a),s.previous||(this.firstChunk=a.next),a.next||(this.lastChunk=s.previous,this.lastChunk.next=null),s.previous=m,a.next=c||null,m||(this.firstChunk=s),c||(this.lastChunk=a),this};xt.prototype.overwrite=function(e,t,n,s){if(typeof n!="string")throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(e),this._split(t),s===!0&&(Fo.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),Fo.storeName=!0),s={storeName:!0});var a=s!==void 0?s.storeName:!1,l=s!==void 0?s.contentOnly:!1;if(a){var u=this.original.slice(e,t);this.storedNames[u]=!0}var c=this.byStart[e],m=this.byEnd[t];if(c){if(t>c.end&&c.next!==this.byStart[c.end])throw new Error("Cannot overwrite across a split point");if(c.edit(n,a,l),c!==m){for(var g=c.next;g!==m;)g.edit("",!1),g=g.next;g.edit("",!1)}}else{var v=new Hr(e,t,"").edit(n,a);m.next=v,v.previous=m}return this};xt.prototype.prepend=function(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this};xt.prototype.prependLeft=function(e,t){if(typeof t!="string")throw new TypeError("inserted content must be a string");this._split(e);var n=this.byEnd[e];return n?n.prependLeft(t):this.intro=t+this.intro,this};xt.prototype.prependRight=function(e,t){if(typeof t!="string")throw new TypeError("inserted content must be a string");this._split(e);var n=this.byStart[e];return n?n.prependRight(t):this.outro=t+this.outro,this};xt.prototype.remove=function(e,t){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);for(var n=this.byStart[e];n;)n.intro="",n.outro="",n.edit(""),n=t>n.end?this.byStart[n.end]:null;return this};xt.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""};xt.prototype.lastLine=function(){var e=this.outro.lastIndexOf(Ul);if(e!==-1)return this.outro.substr(e+1);var t=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(e=n.outro.lastIndexOf(Ul),e!==-1)return n.outro.substr(e+1)+t;t=n.outro+t}if(n.content.length>0){if(e=n.content.lastIndexOf(Ul),e!==-1)return n.content.substr(e+1)+t;t=n.content+t}if(n.intro.length>0){if(e=n.intro.lastIndexOf(Ul),e!==-1)return n.intro.substr(e+1)+t;t=n.intro+t}}while(n=n.previous);return e=this.intro.lastIndexOf(Ul),e!==-1?this.intro.substr(e+1)+t:this.intro+t};xt.prototype.slice=function(e,t){for(e===void 0&&(e=0),t===void 0&&(t=this.original.length);e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;for(var n="",s=this.firstChunk;s&&(s.start>e||s.end<=e);){if(s.start<t&&s.end>=t)return n;s=s.next}if(s&&s.edited&&s.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var a=s;s;){s.intro&&(a!==s||s.start===e)&&(n+=s.intro);var l=s.start<t&&s.end>=t;if(l&&s.edited&&s.end!==t)throw new Error("Cannot use replaced character "+t+" as slice end anchor.");var u=a===s?e-s.start:0,c=l?s.content.length+t-s.end:s.content.length;if(n+=s.content.slice(u,c),s.outro&&(!l||s.end===t)&&(n+=s.outro),l)break;s=s.next}return n};xt.prototype.snip=function(e,t){var n=this.clone();return n.remove(0,e),n.remove(t,n.original.length),n};xt.prototype._split=function(e){if(!(this.byStart[e]||this.byEnd[e]))for(var t=this.lastSearchedChunk,n=e>t.end;t;){if(t.contains(e))return this._splitChunk(t,e);t=n?this.byStart[t.end]:this.byEnd[t.start]}};xt.prototype._splitChunk=function(e,t){if(e.edited&&e.content.length){var n=SS(this.original)(t);throw new Error("Cannot split a chunk that has already been edited ("+n.line+":"+n.column+' \u2013 "'+e.original+'")')}var s=e.split(t);return this.byEnd[t]=e,this.byStart[t]=s,this.byEnd[s.end]=s,e===this.lastChunk&&(this.lastChunk=s),this.lastSearchedChunk=e,!0};xt.prototype.toString=function(){for(var e=this.intro,t=this.firstChunk;t;)e+=t.toString(),t=t.next;return e+this.outro};xt.prototype.isEmpty=function(){var e=this.firstChunk;do if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;while(e=e.next);return!0};xt.prototype.length=function(){var e=this.firstChunk,t=0;do t+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return t};xt.prototype.trimLines=function(){return this.trim("[\\r\\n]")};xt.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)};xt.prototype.trimEndAborted=function(e){var t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;var n=this.lastChunk;do{var s=n.end,a=n.trimEnd(t);if(n.end!==s&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),a)return!0;n=n.previous}while(n);return!1};xt.prototype.trimEnd=function(e){return this.trimEndAborted(e),this};xt.prototype.trimStartAborted=function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;var n=this.firstChunk;do{var s=n.end,a=n.trimStart(t);if(n.end!==s&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),a)return!0;n=n.next}while(n);return!1};xt.prototype.trimStart=function(e){return this.trimStartAborted(e),this};function kS(r,e){for(var t=0,n=r.length-1;n>=0;n--){var s=r[n];s==="."?r.splice(n,1):s===".."?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t--;t)r.unshift("..");return r}var SO=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,ig=function(r){return SO.exec(r).slice(1)};function Of(){for(var r="",e=!1,t=arguments.length-1;t>=-1&&!e;t--){var n=t>=0?arguments[t]:"/";if(typeof n!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!n)continue;r=n+"/"+r,e=n.charAt(0)==="/"}return r=kS(lg(r.split("/"),function(s){return!!s}),!e).join("/"),(e?"/":"")+r||"."}function ag(r){var e=og(r),t=kO(r,-1)==="/";return r=kS(lg(r.split("/"),function(n){return!!n}),!e).join("/"),!r&&!e&&(r="."),r&&t&&(r+="/"),(e?"/":"")+r}function og(r){return r.charAt(0)==="/"}function TS(){var r=Array.prototype.slice.call(arguments,0);return ag(lg(r,function(e,t){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))}function _S(r,e){r=Of(r).substr(1),e=Of(e).substr(1);function t(m){for(var g=0;g<m.length&&m[g]==="";g++);for(var v=m.length-1;v>=0&&m[v]==="";v--);return g>v?[]:m.slice(g,v-g+1)}for(var n=t(r.split("/")),s=t(e.split("/")),a=Math.min(n.length,s.length),l=a,u=0;u<a;u++)if(n[u]!==s[u]){l=u;break}for(var c=[],u=l;u<n.length;u++)c.push("..");return c=c.concat(s.slice(l)),c.join("/")}var ES="/",AS=":";function CS(r){var e=ig(r),t=e[0],n=e[1];return!t&&!n?".":(n&&(n=n.substr(0,n.length-1)),t+n)}function PS(r,e){var t=ig(r)[2];return e&&t.substr(-1*e.length)===e&&(t=t.substr(0,t.length-e.length)),t}function IS(r){return ig(r)[3]}var Cu={extname:IS,basename:PS,dirname:CS,sep:ES,delimiter:AS,relative:_S,join:TS,isAbsolute:og,normalize:ag,resolve:Of};function lg(r,e){if(r.filter)return r.filter(e);for(var t=[],n=0;n<r.length;n++)e(r[n],n,r)&&t.push(r[n]);return t}var kO="ab".substr(-1)==="b"?function(r,e,t){return r.substr(e,t)}:function(r,e,t){return e<0&&(e=r.length+e),r.substr(e,t)},TO=Object.freeze({__proto__:null,resolve:Of,normalize:ag,isAbsolute:og,join:TS,relative:_S,sep:ES,delimiter:AS,dirname:CS,basename:PS,extname:IS,default:Cu});/*! https://mths.be/punycode v1.4.1 by @mathias */var id=2147483647,nu=36,NS=1,Xd=26,_O=38,EO=700,AO=72,CO=128,PO="-",IO=/[^\x20-\x7E]/,NO=/[\x2E\u3002\uFF0E\uFF61]/g,OO={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ad=nu-NS,mo=Math.floor,od=String.fromCharCode;function nb(r){throw new RangeError(OO[r])}function LO(r,e){for(var t=r.length,n=[];t--;)n[t]=e(r[t]);return n}function MO(r,e){var t=r.split("@"),n="";t.length>1&&(n=t[0]+"@",r=t[1]),r=r.replace(NO,".");var s=r.split("."),a=LO(s,e).join(".");return n+a}function DO(r){for(var e=[],t=0,n=r.length,s,a;t<n;)s=r.charCodeAt(t++),s>=55296&&s<=56319&&t<n?(a=r.charCodeAt(t++),(a&64512)==56320?e.push(((s&1023)<<10)+(a&1023)+65536):(e.push(s),t--)):e.push(s);return e}function sb(r,e){return r+22+75*(r<26)-((e!=0)<<5)}function RO(r,e,t){var n=0;for(r=t?mo(r/EO):r>>1,r+=mo(r/e);r>ad*Xd>>1;n+=nu)r=mo(r/ad);return mo(n+(ad+1)*r/(r+_O))}function FO(r){var e,t,n,s,a,l,u,c,m,g,v,b=[],x,E,S,C;for(r=DO(r),x=r.length,e=CO,t=0,a=AO,l=0;l<x;++l)v=r[l],v<128&&b.push(od(v));for(n=s=b.length,s&&b.push(PO);n<x;){for(u=id,l=0;l<x;++l)v=r[l],v>=e&&v<u&&(u=v);for(E=n+1,u-e>mo((id-t)/E)&&nb("overflow"),t+=(u-e)*E,e=u,l=0;l<x;++l)if(v=r[l],v<e&&++t>id&&nb("overflow"),v==e){for(c=t,m=nu;g=m<=a?NS:m>=a+Xd?Xd:m-a,!(c<g);m+=nu)C=c-g,S=nu-g,b.push(od(sb(g+C%S,0))),c=mo(C/S);b.push(od(sb(c,0))),a=RO(t,E,n==s),t=0,++n}++t,++e}return b.join("")}function BO(r){return MO(r,function(e){return IO.test(e)?"xn--"+FO(e):e})}function OS(){throw new Error("setTimeout has not been defined")}function LS(){throw new Error("clearTimeout has not been defined")}var Ei=OS,Ai=LS;typeof $i.setTimeout=="function"&&(Ei=setTimeout);typeof $i.clearTimeout=="function"&&(Ai=clearTimeout);function MS(r){if(Ei===setTimeout)return setTimeout(r,0);if((Ei===OS||!Ei)&&setTimeout)return Ei=setTimeout,setTimeout(r,0);try{return Ei(r,0)}catch{try{return Ei.call(null,r,0)}catch{return Ei.call(this,r,0)}}}function $O(r){if(Ai===clearTimeout)return clearTimeout(r);if((Ai===LS||!Ai)&&clearTimeout)return Ai=clearTimeout,clearTimeout(r);try{return Ai(r)}catch{try{return Ai.call(null,r)}catch{return Ai.call(this,r)}}}var Js=[],So=!1,ma,uf=-1;function jO(){!So||!ma||(So=!1,ma.length?Js=ma.concat(Js):uf=-1,Js.length&&DS())}function DS(){if(!So){var r=MS(jO);So=!0;for(var e=Js.length;e;){for(ma=Js,Js=[];++uf<e;)ma&&ma[uf].run();uf=-1,e=Js.length}ma=null,So=!1,$O(r)}}function UO(r){var e=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];Js.push(new RS(r,e)),Js.length===1&&!So&&MS(DS)}function RS(r,e){this.fun=r,this.array=e}RS.prototype.run=function(){this.fun.apply(null,this.array)};var qO="browser",WO="browser",zO=!0,HO={},VO=[],GO="",KO={},YO={},JO={};function La(){}var XO=La,QO=La,ZO=La,eL=La,tL=La,rL=La,nL=La;function sL(r){throw new Error("process.binding is not supported")}function iL(){return"/"}function aL(r){throw new Error("process.chdir is not supported")}function oL(){return 0}var uo=$i.performance||{},lL=uo.now||uo.mozNow||uo.msNow||uo.oNow||uo.webkitNow||function(){return new Date().getTime()};function uL(r){var e=lL.call(uo)*.001,t=Math.floor(e),n=Math.floor(e%1*1e9);return r&&(t=t-r[0],n=n-r[1],n<0&&(t--,n+=1e9)),[t,n]}var cL=new Date;function fL(){var r=new Date,e=r-cL;return e/1e3}var ko={nextTick:UO,title:qO,browser:zO,env:HO,argv:VO,version:GO,versions:KO,on:XO,addListener:QO,once:ZO,off:eL,removeListener:tL,removeAllListeners:rL,emit:nL,binding:sL,cwd:iL,chdir:aL,umask:oL,hrtime:uL,platform:WO,release:YO,config:JO,uptime:fL},Qd;typeof Object.create=="function"?Qd=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Qd=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e};var FS=Qd,hL=/%[sdj%]/g;function Dh(r){if(!zi(r)){for(var e=[],t=0;t<arguments.length;t++)e.push(ks(arguments[t]));return e.join(" ")}for(var t=1,n=arguments,s=n.length,a=String(r).replace(hL,function(u){if(u==="%%")return"%";if(t>=s)return u;switch(u){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch{return"[Circular]"}default:return u}}),l=n[t];t<s;l=n[++t])Xs(l)||!li(l)?a+=" "+l:a+=" "+ks(l);return a}function ug(r,e){if(ws($i.process))return function(){return ug(r,e).apply(this,arguments)};if(ko.noDeprecation===!0)return r;var t=!1;function n(){if(!t){if(ko.throwDeprecation)throw new Error(e);ko.traceDeprecation?console.trace(e):console.error(e),t=!0}return r.apply(this,arguments)}return n}var Bc={},ld;function BS(r){if(ws(ld)&&(ld=ko.env.NODE_DEBUG||""),r=r.toUpperCase(),!Bc[r])if(new RegExp("\\b"+r+"\\b","i").test(ld)){var e=0;Bc[r]=function(){var t=Dh.apply(null,arguments);console.error("%s %d: %s",r,e,t)}}else Bc[r]=function(){};return Bc[r]}function ks(r,e){var t={seen:[],stylize:dL};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),Rh(e)?t.showHidden=e:e&&dg(t,e),ws(t.showHidden)&&(t.showHidden=!1),ws(t.depth)&&(t.depth=2),ws(t.colors)&&(t.colors=!1),ws(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=pL),Lf(t,r,t.depth)}ks.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};ks.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function pL(r,e){var t=ks.styles[e];return t?"\x1B["+ks.colors[t][0]+"m"+r+"\x1B["+ks.colors[t][1]+"m":r}function dL(r,e){return r}function mL(r){var e={};return r.forEach(function(t,n){e[t]=!0}),e}function Lf(r,e,t){if(r.customInspect&&e&&au(e.inspect)&&e.inspect!==ks&&!(e.constructor&&e.constructor.prototype===e)){var n=e.inspect(t,r);return zi(n)||(n=Lf(r,n,t)),n}var s=gL(r,e);if(s)return s;var a=Object.keys(e),l=mL(a);if(r.showHidden&&(a=Object.getOwnPropertyNames(e)),iu(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return ud(e);if(a.length===0){if(au(e)){var u=e.name?": "+e.name:"";return r.stylize("[Function"+u+"]","special")}if(su(e))return r.stylize(RegExp.prototype.toString.call(e),"regexp");if(Mf(e))return r.stylize(Date.prototype.toString.call(e),"date");if(iu(e))return ud(e)}var c="",m=!1,g=["{","}"];if(cg(e)&&(m=!0,g=["[","]"]),au(e)){var v=e.name?": "+e.name:"";c=" [Function"+v+"]"}if(su(e)&&(c=" "+RegExp.prototype.toString.call(e)),Mf(e)&&(c=" "+Date.prototype.toUTCString.call(e)),iu(e)&&(c=" "+ud(e)),a.length===0&&(!m||e.length==0))return g[0]+c+g[1];if(t<0)return su(e)?r.stylize(RegExp.prototype.toString.call(e),"regexp"):r.stylize("[Object]","special");r.seen.push(e);var b;return m?b=yL(r,e,t,l,a):b=a.map(function(x){return Zd(r,e,t,l,x,m)}),r.seen.pop(),vL(b,c,g)}function gL(r,e){if(ws(e))return r.stylize("undefined","undefined");if(zi(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(t,"string")}if(hg(e))return r.stylize(""+e,"number");if(Rh(e))return r.stylize(""+e,"boolean");if(Xs(e))return r.stylize("null","null")}function ud(r){return"["+Error.prototype.toString.call(r)+"]"}function yL(r,e,t,n,s){for(var a=[],l=0,u=e.length;l<u;++l)WS(e,String(l))?a.push(Zd(r,e,t,n,String(l),!0)):a.push("");return s.forEach(function(c){c.match(/^\d+$/)||a.push(Zd(r,e,t,n,c,!0))}),a}function Zd(r,e,t,n,s,a){var l,u,c;if(c=Object.getOwnPropertyDescriptor(e,s)||{value:e[s]},c.get?c.set?u=r.stylize("[Getter/Setter]","special"):u=r.stylize("[Getter]","special"):c.set&&(u=r.stylize("[Setter]","special")),WS(n,s)||(l="["+s+"]"),u||(r.seen.indexOf(c.value)<0?(Xs(t)?u=Lf(r,c.value,null):u=Lf(r,c.value,t-1),u.indexOf(`
`)>-1&&(a?u=u.split(`
`).map(function(m){return" "+m}).join(`
`).substr(2):u=`
`+u.split(`
`).map(function(m){return" "+m}).join(`
`))):u=r.stylize("[Circular]","special")),ws(l)){if(a&&s.match(/^\d+$/))return u;l=JSON.stringify(""+s),l.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(l=l.substr(1,l.length-2),l=r.stylize(l,"name")):(l=l.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),l=r.stylize(l,"string"))}return l+": "+u}function vL(r,e,t){var n=r.reduce(function(s,a){return a.indexOf(`
`)>=0,s+a.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?t[0]+(e===""?"":e+`
`)+" "+r.join(`,
`)+" "+t[1]:t[0]+e+" "+r.join(", ")+" "+t[1]}function cg(r){return Array.isArray(r)}function Rh(r){return typeof r=="boolean"}function Xs(r){return r===null}function fg(r){return r==null}function hg(r){return typeof r=="number"}function zi(r){return typeof r=="string"}function $S(r){return typeof r=="symbol"}function ws(r){return r===void 0}function su(r){return li(r)&&pg(r)==="[object RegExp]"}function li(r){return typeof r=="object"&&r!==null}function Mf(r){return li(r)&&pg(r)==="[object Date]"}function iu(r){return li(r)&&(pg(r)==="[object Error]"||r instanceof Error)}function au(r){return typeof r=="function"}function jS(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r>"u"}function US(r){return Ce.isBuffer(r)}function pg(r){return Object.prototype.toString.call(r)}function cd(r){return r<10?"0"+r.toString(10):r.toString(10)}var bL=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function wL(){var r=new Date,e=[cd(r.getHours()),cd(r.getMinutes()),cd(r.getSeconds())].join(":");return[r.getDate(),bL[r.getMonth()],e].join(" ")}function qS(){console.log("%s - %s",wL(),Dh.apply(null,arguments))}function dg(r,e){if(!e||!li(e))return r;for(var t=Object.keys(e),n=t.length;n--;)r[t[n]]=e[t[n]];return r}function WS(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var xL={inherits:FS,_extend:dg,log:qS,isBuffer:US,isPrimitive:jS,isFunction:au,isError:iu,isDate:Mf,isObject:li,isRegExp:su,isUndefined:ws,isSymbol:$S,isString:zi,isNumber:hg,isNullOrUndefined:fg,isNull:Xs,isBoolean:Rh,isArray:cg,inspect:ks,deprecate:ug,format:Dh,debuglog:BS},SL=Object.freeze({__proto__:null,format:Dh,deprecate:ug,debuglog:BS,inspect:ks,isArray:cg,isBoolean:Rh,isNull:Xs,isNullOrUndefined:fg,isNumber:hg,isString:zi,isSymbol:$S,isUndefined:ws,isRegExp:su,isObject:li,isDate:Mf,isError:iu,isFunction:au,isPrimitive:jS,isBuffer:US,log:qS,inherits:FS,_extend:dg,default:xL});function kL(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var zS=Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"};function ql(r){switch(typeof r){case"string":return r;case"boolean":return r?"true":"false";case"number":return isFinite(r)?r:"";default:return""}}function TL(r,e,t,n){return e=e||"&",t=t||"=",r===null&&(r=void 0),typeof r=="object"?ib(_L(r),function(s){var a=encodeURIComponent(ql(s))+t;return zS(r[s])?ib(r[s],function(l){return a+encodeURIComponent(ql(l))}).join(e):a+encodeURIComponent(ql(r[s]))}).join(e):n?encodeURIComponent(ql(n))+t+encodeURIComponent(ql(r)):""}function ib(r,e){if(r.map)return r.map(e);for(var t=[],n=0;n<r.length;n++)t.push(e(r[n],n));return t}var _L=Object.keys||function(r){var e=[];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.push(t);return e};function ab(r,e,t,n){e=e||"&",t=t||"=";var s={};if(typeof r!="string"||r.length===0)return s;var a=/\+/g;r=r.split(e);var l=1e3;n&&typeof n.maxKeys=="number"&&(l=n.maxKeys);var u=r.length;l>0&&u>l&&(u=l);for(var c=0;c<u;++c){var m=r[c].replace(a,"%20"),g=m.indexOf(t),v,b,x,E;g>=0?(v=m.substr(0,g),b=m.substr(g+1)):(v=m,b=""),x=decodeURIComponent(v),E=decodeURIComponent(b),kL(s,x)?zS(s[x])?s[x].push(E):s[x]=[s[x],E]:s[x]=E}return s}var EL={parse:tl,resolve:GS,resolveObject:KS,format:VS,Url:ns};function ns(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var AL=/^([a-z0-9.+-]+:)/i,CL=/:[0-9]*$/,PL=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,IL=["<",">",'"',"`"," ","\r",`
`," "],NL=["{","}","|","\\","^","`"].concat(IL),e1=["'"].concat(NL),ob=["%","/","?",";","#"].concat(e1),lb=["/","?","#"],OL=255,ub=/^[+a-z0-9A-Z_-]{0,63}$/,LL=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ML={javascript:!0,"javascript:":!0},t1={javascript:!0,"javascript:":!0},To={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function tl(r,e,t){if(r&&li(r)&&r instanceof ns)return r;var n=new ns;return n.parse(r,e,t),n}ns.prototype.parse=function(r,e,t){return HS(this,r,e,t)};function HS(r,e,t,n){if(!zi(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var s=e.indexOf("?"),a=s!==-1&&s<e.indexOf("#")?"?":"#",l=e.split(a),u=/\\/g;l[0]=l[0].replace(u,"/"),e=l.join(a);var c=e;if(c=c.trim(),!n&&e.split("#").length===1){var m=PL.exec(c);if(m)return r.path=c,r.href=c,r.pathname=m[1],m[2]?(r.search=m[2],t?r.query=ab(r.search.substr(1)):r.query=r.search.substr(1)):t&&(r.search="",r.query={}),r}var g=AL.exec(c);if(g){g=g[0];var v=g.toLowerCase();r.protocol=v,c=c.substr(g.length)}if(n||g||c.match(/^\/\/[^@\/]+@[^@\/]+/)){var b=c.substr(0,2)==="//";b&&!(g&&t1[g])&&(c=c.substr(2),r.slashes=!0)}var x,E,S,C;if(!t1[g]&&(b||g&&!To[g])){var _=-1;for(x=0;x<lb.length;x++)E=c.indexOf(lb[x]),E!==-1&&(_===-1||E<_)&&(_=E);var A,I;for(_===-1?I=c.lastIndexOf("@"):I=c.lastIndexOf("@",_),I!==-1&&(A=c.slice(0,I),c=c.slice(I+1),r.auth=decodeURIComponent(A)),_=-1,x=0;x<ob.length;x++)E=c.indexOf(ob[x]),E!==-1&&(_===-1||E<_)&&(_=E);_===-1&&(_=c.length),r.host=c.slice(0,_),c=c.slice(_),YS(r),r.hostname=r.hostname||"";var M=r.hostname[0]==="["&&r.hostname[r.hostname.length-1]==="]";if(!M){var O=r.hostname.split(/\./);for(x=0,S=O.length;x<S;x++){var R=O[x];if(!!R&&!R.match(ub)){for(var j="",$=0,B=R.length;$<B;$++)R.charCodeAt($)>127?j+="x":j+=R[$];if(!j.match(ub)){var F=O.slice(0,x),H=O.slice(x+1),V=R.match(LL);V&&(F.push(V[1]),H.unshift(V[2])),H.length&&(c="/"+H.join(".")+c),r.hostname=F.join(".");break}}}}r.hostname.length>OL?r.hostname="":r.hostname=r.hostname.toLowerCase(),M||(r.hostname=BO(r.hostname)),C=r.port?":"+r.port:"";var X=r.hostname||"";r.host=X+C,r.href+=r.host,M&&(r.hostname=r.hostname.substr(1,r.hostname.length-2),c[0]!=="/"&&(c="/"+c))}if(!ML[v])for(x=0,S=e1.length;x<S;x++){var J=e1[x];if(c.indexOf(J)!==-1){var D=encodeURIComponent(J);D===J&&(D=escape(J)),c=c.split(J).join(D)}}var ce=c.indexOf("#");ce!==-1&&(r.hash=c.substr(ce),c=c.slice(0,ce));var W=c.indexOf("?");if(W!==-1?(r.search=c.substr(W),r.query=c.substr(W+1),t&&(r.query=ab(r.query)),c=c.slice(0,W)):t&&(r.search="",r.query={}),c&&(r.pathname=c),To[v]&&r.hostname&&!r.pathname&&(r.pathname="/"),r.pathname||r.search){C=r.pathname||"";var Z=r.search||"";r.path=C+Z}return r.href=mg(r),r}function VS(r){return zi(r)&&(r=HS({},r)),mg(r)}function mg(r){var e=r.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=r.protocol||"",n=r.pathname||"",s=r.hash||"",a=!1,l="";r.host?a=e+r.host:r.hostname&&(a=e+(r.hostname.indexOf(":")===-1?r.hostname:"["+this.hostname+"]"),r.port&&(a+=":"+r.port)),r.query&&li(r.query)&&Object.keys(r.query).length&&(l=TL(r.query));var u=r.search||l&&"?"+l||"";return t&&t.substr(-1)!==":"&&(t+=":"),r.slashes||(!t||To[t])&&a!==!1?(a="//"+(a||""),n&&n.charAt(0)!=="/"&&(n="/"+n)):a||(a=""),s&&s.charAt(0)!=="#"&&(s="#"+s),u&&u.charAt(0)!=="?"&&(u="?"+u),n=n.replace(/[?#]/g,function(c){return encodeURIComponent(c)}),u=u.replace("#","%23"),t+a+n+u+s}ns.prototype.format=function(){return mg(this)};function GS(r,e){return tl(r,!1,!0).resolve(e)}ns.prototype.resolve=function(r){return this.resolveObject(tl(r,!1,!0)).format()};function KS(r,e){return r?tl(r,!1,!0).resolveObject(e):e}ns.prototype.resolveObject=function(r){if(zi(r)){var e=new ns;e.parse(r,!1,!0),r=e}for(var t=new ns,n=Object.keys(this),s=0;s<n.length;s++){var a=n[s];t[a]=this[a]}if(t.hash=r.hash,r.href==="")return t.href=t.format(),t;if(r.slashes&&!r.protocol){for(var l=Object.keys(r),u=0;u<l.length;u++){var c=l[u];c!=="protocol"&&(t[c]=r[c])}return To[t.protocol]&&t.hostname&&!t.pathname&&(t.path=t.pathname="/"),t.href=t.format(),t}var m;if(r.protocol&&r.protocol!==t.protocol){if(!To[r.protocol]){for(var g=Object.keys(r),v=0;v<g.length;v++){var b=g[v];t[b]=r[b]}return t.href=t.format(),t}if(t.protocol=r.protocol,!r.host&&!t1[r.protocol]){for(m=(r.pathname||"").split("/");m.length&&!(r.host=m.shift()););r.host||(r.host=""),r.hostname||(r.hostname=""),m[0]!==""&&m.unshift(""),m.length<2&&m.unshift(""),t.pathname=m.join("/")}else t.pathname=r.pathname;if(t.search=r.search,t.query=r.query,t.host=r.host||"",t.auth=r.auth,t.hostname=r.hostname||r.host,t.port=r.port,t.pathname||t.search){var x=t.pathname||"",E=t.search||"";t.path=x+E}return t.slashes=t.slashes||r.slashes,t.href=t.format(),t}var S=t.pathname&&t.pathname.charAt(0)==="/",C=r.host||r.pathname&&r.pathname.charAt(0)==="/",_=C||S||t.host&&r.pathname,A=_,I=t.pathname&&t.pathname.split("/")||[],M=t.protocol&&!To[t.protocol];m=r.pathname&&r.pathname.split("/")||[],M&&(t.hostname="",t.port=null,t.host&&(I[0]===""?I[0]=t.host:I.unshift(t.host)),t.host="",r.protocol&&(r.hostname=null,r.port=null,r.host&&(m[0]===""?m[0]=r.host:m.unshift(r.host)),r.host=null),_=_&&(m[0]===""||I[0]===""));var O;if(C)t.host=r.host||r.host===""?r.host:t.host,t.hostname=r.hostname||r.hostname===""?r.hostname:t.hostname,t.search=r.search,t.query=r.query,I=m;else if(m.length)I||(I=[]),I.pop(),I=I.concat(m),t.search=r.search,t.query=r.query;else if(!fg(r.search))return M&&(t.hostname=t.host=I.shift(),O=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1,O&&(t.auth=O.shift(),t.host=t.hostname=O.shift())),t.search=r.search,t.query=r.query,(!Xs(t.pathname)||!Xs(t.search))&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t;if(!I.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var R=I.slice(-1)[0],j=(t.host||r.host||I.length>1)&&(R==="."||R==="..")||R==="",$=0,B=I.length;B>=0;B--)R=I[B],R==="."?I.splice(B,1):R===".."?(I.splice(B,1),$++):$&&(I.splice(B,1),$--);if(!_&&!A)for(;$--;$)I.unshift("..");_&&I[0]!==""&&(!I[0]||I[0].charAt(0)!=="/")&&I.unshift(""),j&&I.join("/").substr(-1)!=="/"&&I.push("");var F=I[0]===""||I[0]&&I[0].charAt(0)==="/";return M&&(t.hostname=t.host=F?"":I.length?I.shift():"",O=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1,O&&(t.auth=O.shift(),t.host=t.hostname=O.shift())),_=_||t.host&&I.length,_&&!F&&I.unshift(""),I.length?t.pathname=I.join("/"):(t.pathname=null,t.path=null),(!Xs(t.pathname)||!Xs(t.search))&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=r.auth||t.auth,t.slashes=t.slashes||r.slashes,t.href=t.format(),t};ns.prototype.parseHost=function(){return YS(this)};function YS(r){var e=r.host,t=CL.exec(e);t&&(t=t[0],t!==":"&&(r.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(r.hostname=e)}var DL=Object.freeze({__proto__:null,parse:tl,resolve:GS,resolveObject:KS,format:VS,default:EL,Url:ns});function JS(r){const e=r.charAt(0);return e==="."||e==="~"||e==="@"}const RL=/^(https?:)?\/\//;function XS(r){return RL.test(r)}const FL=/^\s*data:/i;function r1(r){return FL.test(r)}function n1(r){if(r.charAt(0)==="~"){const t=r.charAt(1);r=r.slice(t==="/"?2:1)}return BL(r)}function BL(r){return tl(Ct(r)?r:"",!1,!0)}const Pu={base:null,includeAbsolute:!1,tags:{video:["src","poster"],source:["src"],img:["src"],image:["xlink:href","href"],use:["xlink:href","href"]}},$L=r=>Object.keys(r).some(e=>dn(r[e]))?Object.assign(Object.assign({},Pu),{tags:r}):Object.assign(Object.assign({},Pu),r),jL=r=>(e,t)=>QS(e,t,r),QS=(r,e,t=Pu)=>{if(r.type===1){if(!r.props.length)return;const n=t.tags||Pu.tags,s=n[r.tag],a=n["*"];if(!s&&!a)return;const l=(s||[]).concat(a||[]);r.props.forEach((u,c)=>{if(u.type!==6||!l.includes(u.name)||!u.value||XS(u.value.content)||r1(u.value.content)||u.value.content[0]==="#"||!t.includeAbsolute&&!JS(u.value.content))return;const m=n1(u.value.content);if(t.base&&u.value.content[0]==="."){const v=n1(t.base),b=v.protocol||"",x=v.host?b+"//"+v.host:"",E=v.path||"/";u.value.content=x+(Cu.posix||Cu).join(E,m.path+(m.hash||""));return}const g=UL(m.path,m.hash,u.loc,e);r.props[c]={type:7,name:"bind",arg:ze(u.name,!0,u.loc),exp:g,modifiers:[],loc:u.loc}})}};function UL(r,e,t,n){if(r){let s,a;const l=n.imports.findIndex(g=>g.path===r);if(l>-1?(s=`_imports_${l}`,a=n.imports[l].exp):(s=`_imports_${n.imports.length}`,a=ze(s,!1,t,3),n.imports.push({exp:a,path:r})),!e)return a;const u=`${s} + '${e}'`,c=ze(u,!1,t,3);if(!n.hoistStatic)return c;const m=n.hoists.findIndex(g=>g&&g.type===4&&!g.isStatic&&g.content===u);return m>-1?ze(`_hoisted_${m+1}`,!1,t,3):n.hoist(c)}else return ze("''",!1,t,3)}const qL=["img","source"],WL=/( |\\t|\\n|\\f|\\r)+/g,zL=r=>(e,t)=>ZS(e,t,r),ZS=(r,e,t=Pu)=>{r.type===1&&qL.includes(r.tag)&&r.props.length&&r.props.forEach((n,s)=>{if(n.name==="srcset"&&n.type===6){if(!n.value)return;const a=n.value.content;if(!a)return;const l=a.split(",").map(g=>{const[v,b]=g.replace(WL," ").trim().split(" ",2);return{url:v,descriptor:b}});for(let g=0;g<l.length;g++){const{url:v}=l[g];r1(v)&&(l[g+1].url=v+","+l[g+1].url,l.splice(g,1))}const u=g=>!XS(g)&&!r1(g)&&(t.includeAbsolute||JS(g));if(!l.some(({url:g})=>u(g)))return;if(t.base){const g=t.base,v=[];let b=!1;if(l.forEach(x=>{let{url:E,descriptor:S}=x;S=S?` ${S}`:"",E[0]==="."?(x.url=(Cu.posix||Cu).join(g,E),v.push(x.url+S)):u(E)?b=!0:v.push(E+S)}),!b){n.value.content=v.join(", ");return}}const c=Wr([],n.loc);l.forEach(({url:g,descriptor:v},b)=>{if(u(g)){const{path:E}=n1(g);let S;if(E){const C=e.imports.findIndex(_=>_.path===E);C>-1?S=ze(`_imports_${C}`,!1,n.loc,3):(S=ze(`_imports_${e.imports.length}`,!1,n.loc,3),e.imports.push({exp:S,path:E})),c.children.push(S)}}else{const E=ze(`"${g}"`,!1,n.loc,3);c.children.push(E)}const x=l.length-1>b;v&&x?c.children.push(` + ' ${v}, ' + `):v?c.children.push(` + ' ${v}'`):x&&c.children.push(" + ', ' + ")});let m=c;e.hoistStatic&&(m=e.hoist(c),m.constType=3),r.props[s]={type:7,name:"bind",arg:ze("srcset",!0,n.loc),exp:m,modifiers:[],loc:n.loc}}})},gg=Symbol("ssrInterpolate"),ek=Symbol("ssrRenderVNode"),tk=Symbol("ssrRenderComponent"),rk=Symbol("ssrRenderSlot"),nk=Symbol("ssrRenderSlotInner"),sk=Symbol("ssrRenderClass"),ik=Symbol("ssrRenderStyle"),yg=Symbol("ssrRenderAttrs"),ak=Symbol("ssrRenderAttr"),ok=Symbol("ssrRenderDynamicAttr"),lk=Symbol("ssrRenderList"),uk=Symbol("ssrIncludeBooleanAttr"),s1=Symbol("ssrLooseEqual"),ck=Symbol("ssrLooseContain"),fk=Symbol("ssrRenderDynamicModel"),hk=Symbol("ssrGetDynamicModelProps"),pk=Symbol("ssrRenderTeleport"),dk=Symbol("ssrRenderSuspense"),mk=Symbol("ssrGetDirectiveProps"),i1={[gg]:"ssrInterpolate",[ek]:"ssrRenderVNode",[tk]:"ssrRenderComponent",[rk]:"ssrRenderSlot",[nk]:"ssrRenderSlotInner",[sk]:"ssrRenderClass",[ik]:"ssrRenderStyle",[yg]:"ssrRenderAttrs",[ak]:"ssrRenderAttr",[ok]:"ssrRenderDynamicAttr",[lk]:"ssrRenderList",[uk]:"ssrIncludeBooleanAttr",[s1]:"ssrLooseEqual",[ck]:"ssrLooseContain",[fk]:"ssrRenderDynamicModel",[hk]:"ssrGetDynamicModelProps",[pk]:"ssrRenderTeleport",[dk]:"ssrRenderSuspense",[mk]:"ssrGetDirectiveProps"};rm(i1);const HL=Yu(/^(if|else|else-if)$/,Dm);function VL(r,e,t=!1){const[n]=r.branches,s=xf(n.condition,cb(n,e,t));e.pushStatement(s);let a=s;for(let l=1;l<r.branches.length;l++){const u=r.branches[l],c=cb(u,e,t);u.condition?a=a.alternate=xf(u.condition,c):a.alternate=c}a.alternate||(a.alternate=Gu([ut("_push",["`<!---->`"])]))}function cb(r,e,t=!1){const{children:n}=r,s=!t&&(n.length!==1||n[0].type!==1)&&!(n.length===1&&n[0].type===11);return rl(r,e,s)}const GL=Yu("for",Rm);function KL(r,e,t=!1){const n=!t&&(r.children.length!==1||r.children[0].type!==1),s=Rn(Eu(r.parseResult));s.body=rl(r,e,n),t||e.pushStringPart("<!--[-->"),e.pushStatement(ut(e.helper(lk),[r.source,s])),t||e.pushStringPart("<!--]-->")}const YL=(r,e)=>{if(Mo(r)){const{slotName:t,slotProps:n}=Um(r,e),s=["_ctx.$slots",t,n||"{}","null","_push","_parent"];e.scopeId&&e.slotted!==!1&&s.push(`"${e.scopeId}-s"`);let a=rk;const l=e.parent;l&&l.type===1&&l.tagType===1&&Eh(l,e,!0)===el&&l.children.filter(u=>u.type===1).length===1&&(a=nk,e.scopeId&&e.slotted!==!1||s.push("null"),s.push("true")),r.ssrCodegenNode=ut(e.helper(a),s)}};function JL(r,e){const t=r.ssrCodegenNode;if(r.children.length){const n=Rn([]);n.body=rl(r,e),t.arguments[3]=n}if(e.withSlotScopeId){const n=t.arguments[6];t.arguments[6]=n?`${n} + _scopeId`:"_scopeId"}e.pushStatement(r.ssrCodegenNode)}function Iu(r,e){return jt(r,e,XL)}const XL={[61]:"Unsafe attribute name for SSR.",[62]:"Missing the 'to' prop on teleport element.",[63]:"Invalid AST node during SSR transform."};function QL(r,e){const t=Tn(r,"to");if(!t){e.onError(Iu(62,r.loc));return}let n;if(t.type===6?n=t.value&&ze(t.value.content,!0):n=t.exp,!n){e.onError(Iu(62,t.loc));return}const s=Tn(r,"disabled",!1,!0),a=s?s.type===6?"true":s.exp||"false":"false",l=Rn(["_push"],void 0,!0,!1,r.loc);l.body=rl(r,e),e.pushStatement(ut(e.helper(pk),["_push",l,n,a,"_parent"]))}const gk=new WeakMap;function ZL(r,e){return()=>{if(r.children.length){const t={slotsExp:null,wipSlots:[]};gk.set(r,t),t.slotsExp=Au(r,e,(n,s,a)=>{const l=Rn([],void 0,!0,!1,a);return t.wipSlots.push({fn:l,children:s}),l}).slots}}}function eM(r,e){const t=gk.get(r);if(!t)return;const{slotsExp:n,wipSlots:s}=t;for(let a=0;a<s.length;a++){const l=s[a];l.fn.body=rl(l,e)}e.pushStatement(ut(e.helper(dk),["_push",n]))}const cf=new WeakMap,tM=(r,e)=>{if(!(r.type!==1||r.tagType!==0))return function(){const n=[`<${r.tag}`],s=r.tag==="textarea"||r.tag.indexOf("-")>0,a=yh(r),l=r.props.some(v=>v.type===7&&!qw(v.name)),u=a||l;if(u){const{props:v,directives:b}=Zo(r,e,r.props,!1,!1,!0);if(v||b.length){const x=vg(v,b,e),E=ut(e.helper(yg),[x]);if(r.tag==="textarea"){const S=r.children[0];if(!S||S.type!==5){const C=`_temp${e.temps++}`;E.arguments=[Ld(ze(C,!1),x)],cf.set(r,ut(e.helper(gg),[Ri(ze(`"value" in ${C}`,!1),ze(`${C}.value`,!1),ze(S?S.content:"",!0),!1)]))}}else if(r.tag==="input"){const S=iM(r);if(S){const C=`_temp${e.temps++}`,_=ze(C,!1);E.arguments=[Kw([Ld(_,x),ut(e.helper(ka),[_,ut(e.helper(hk),[_,S.exp])])])]}}s&&E.arguments.push(`"${r.tag}"`),n.push(E)}}let c,m,g;for(let v=0;v<r.props.length;v++){const b=r.props[v];if(!(r.tag==="input"&&rM(b))){if(b.type===7){if(b.name==="html"&&b.exp)cf.set(r,b.exp);else if(b.name==="text"&&b.exp)r.children=[wf(b.exp,b.loc)];else if(b.name==="slot")e.onError(jt(40,b.loc));else if(nM(r,b)&&b.exp)u||(r.children=[wf(b.exp,b.loc)]);else if(!u&&b.name!=="on"){const x=e.directiveTransforms[b.name];if(x){const{props:E,ssrTagParts:S}=x(b,r,e);S&&n.push(...S);for(let C=0;C<E.length;C++){const{key:_,value:A}=E[C];if(rn(_)){let I=_.content;if(I==="key"||I==="ref")continue;I==="class"?n.push(' class="',c=ut(e.helper(sk),[A]),'"'):I==="style"?g?fb(g,A):n.push(' style="',g=ut(e.helper(ik),[A]),'"'):(I=r.tag.indexOf("-")>0?I:mC[I]||I.toLowerCase(),hC(I)?n.push(Ri(ut(e.helper(uk),[A]),ze(" "+I,!0),ze("",!0),!1)):dC(I)?n.push(ut(e.helper(ak),[_,A])):e.onError(Iu(61,_.loc)))}else{const I=[_,A];s&&I.push(`"${r.tag}"`),n.push(ut(e.helper(ok),I))}}}}}else if(r.tag==="textarea"&&b.name==="value"&&b.value)cf.set(r,bs(b.value.content));else if(!u){if(b.name==="key"||b.name==="ref")continue;b.name==="class"&&b.value&&(m=JSON.stringify(b.value.content)),n.push(` ${b.name}`+(b.value?`="${bs(b.value.content)}"`:""))}}}c&&m&&(fb(c,m),sM(n,"class")),e.scopeId&&n.push(` ${e.scopeId}`),r.ssrCodegenNode=nm(n)}};function vg(r,e,t){let n=[];if(r&&(r.type===14?n=r.arguments:n.push(r)),e.length)for(const s of e)n.push(ut(t.helper(mk),["_ctx",...jm(s,t).elements]));return n.length>1?ut(t.helper(ka),n):n[0]}function rM(r){return r.type===7?r.name==="bind"&&r.arg&&rn(r.arg)&&(r.arg.content==="true-value"||r.arg.content==="false-value"):r.name==="true-value"||r.name==="false-value"}function nM(r,e){return!!(r.tag==="textarea"&&e.name==="bind"&&Ks(e.arg,"value"))}function fb(r,e){const t=r.arguments[0];t.type===17?t.elements.push(e):r.arguments[0]=Oa([t,e])}function sM(r,e){const t=new RegExp(`^ ${e}=".+"$`),n=r.findIndex(s=>typeof s=="string"&&t.test(s));n>-1&&r.splice(n,1)}function iM(r){return r.props.find(e=>e.type===7&&e.name==="model"&&e.exp)}function aM(r,e){const t=e.options.isVoidTag||Xc,n=r.ssrCodegenNode.elements;for(let a=0;a<n.length;a++)e.pushStringPart(n[a]);e.withSlotScopeId&&e.pushStringPart(ze("_scopeId",!1)),e.pushStringPart(">");const s=cf.get(r);s?e.pushStringPart(s):r.children.length&&ba(r,e),t(r.tag)||e.pushStringPart(`</${r.tag}>`)}const yk=new WeakMap;function oM(r,e){return()=>{const t=Tn(r,"tag");if(t){const n=r.props.filter(u=>u!==t),{props:s,directives:a}=Zo(r,e,n,!0,!1,!0);let l=null;(s||a.length)&&(l=ut(e.helper(yg),[vg(s,a,e)])),yk.set(r,{tag:t,propsExp:l})}}}function lM(r,e){const t=yk.get(r);if(t){const{tag:n,propsExp:s}=t;n.type===7?(e.pushStringPart("<"),e.pushStringPart(n.exp),s&&e.pushStringPart(s),e.pushStringPart(">"),ba(r,e,!1,!0),e.pushStringPart("</"),e.pushStringPart(n.exp),e.pushStringPart(">")):(e.pushStringPart(`<${n.value.content}`),s&&e.pushStringPart(s),e.pushStringPart(">"),ba(r,e,!1,!0),e.pushStringPart(`</${n.value.content}>`))}else ba(r,e,!0,!0)}const vk=new WeakMap,bk=Symbol(),wk=new WeakMap,uM=(r,e)=>{if(r.type!==1||r.tagType!==1)return;const t=Eh(r,e,!0),n=oi(t)&&t.callee===Ao;if(wk.set(r,t),Uo(t))return t===qo?ZL(r,e):t===Qu?oM(r,e):void 0;const s=[],a=a1(r);return function(){a.children.length&&Au(a,e,(v,b)=>(s.push(mM(v,b,e)),Rn(void 0)));let u="null";if(r.props.length){const{props:v,directives:b}=Zo(r,e,void 0,!0,n);(v||b.length)&&(u=vg(v,b,e))}const c=[];vk.set(r,c);const m=(v,b,x)=>{const E=Rn([v||"_","_push","_parent","_scopeId"],void 0,!0,!0,x);return c.push({type:bk,fn:E,children:b,vnodeBranch:s[c.length]}),E},g=r.children.length?Au(r,e,m).slots:"null";typeof t!="string"?r.ssrCodegenNode=ut(e.helper(ek),["_push",ut(e.helper(Hu),[t,u,g]),"_parent"]):r.ssrCodegenNode=ut(e.helper(tk),[t,u,g,"_parent"])}};function cM(r,e,t){const n=wk.get(r);if(r.ssrCodegenNode){const s=vk.get(r)||[];for(let a=0;a<s.length;a++){const{fn:l,vnodeBranch:u}=s[a];l.body=xf(ze("_push",!1),rl(s[a],e,!1,!0),u)}e.withSlotScopeId&&r.ssrCodegenNode.arguments.push("_scopeId"),typeof n=="string"?e.pushStatement(ut("_push",[r.ssrCodegenNode])):e.pushStatement(r.ssrCodegenNode)}else{if(n===ga)return QL(r,e);if(n===qo)return eM(r,e);if(n===Qu)return lM(r,e);t.type===bk&&e.pushStringPart(""),n===el&&(r.children=r.children.filter(s=>s.type!==3)),ba(r,e)}}const xk=new WeakMap,[fM,hM]=Wm(!0),pM=[...fM,...Zm],dM=Object.assign(Object.assign({},hM),eg);function mM(r,e,t){const n=xk.get(t.root),s=Object.assign(Object.assign({},n),{nodeTransforms:[...pM,...n.nodeTransforms||[]],directiveTransforms:Object.assign(Object.assign({},dM),n.directiveTransforms||{})});return gM({type:1,ns:0,tag:"template",tagType:3,isSelfClosing:!1,props:[{type:7,name:"slot",exp:r,arg:void 0,modifiers:[],loc:ar}],children:e,loc:ar,codegenNode:void 0},s,t),Yw(e)}function gM(r,e,t){const n=Ho([r]),s=Ku(n,e);s.ssr=!1,s.scopes=Object.assign({},t.scopes),s.identifiers=Object.assign({},t.identifiers),s.imports=t.imports,Go(n,s),["helpers","components","directives"].forEach(a=>{s[a].forEach((l,u)=>{if(a==="helpers"){const c=t.helpers.get(u);c===void 0?t.helpers.set(u,l):t.helpers.set(u,l+c)}else t[a].add(l)})})}function a1(r){if(dn(r))return r.map(a1);if(oi(r)){const e={};for(const t in r)e[t]=a1(r[t]);return e}else return r}function yM(r,e){const t=Sk(r,e);if(e.ssrCssVars){const s=Ku(Ho([]),e),a=pn(ze(e.ssrCssVars,!1),s);t.body.push(Wr(["const _cssVars = { style: ",a,"}"])),Array.from(s.helpers.keys()).forEach(l=>r.helpers.push(l))}const n=r.children.length>1&&r.children.some(s=>!eu(s));ba(r,t,n),r.codegenNode=Gu(t.body),r.ssrHelpers=Array.from(new Set([...r.helpers.filter(s=>s in i1),...t.helpers])),r.helpers=r.helpers.filter(s=>!(s in i1))}function Sk(r,e,t=new Set,n=!1){const s=[];let a=null;return{root:r,options:e,body:s,helpers:t,withSlotScopeId:n,onError:e.onError||(l=>{throw l}),helper(l){return t.add(l),l},pushStringPart(l){if(!a){const m=ut("_push");s.push(m),a=nm([]),m.arguments.push(a)}const u=a.elements,c=u[u.length-1];Ct(l)&&Ct(c)?u[u.length-1]+=l:u.push(l)},pushStatement(l){a=null,s.push(l)}}}function vM(r,e=r.withSlotScopeId){return Sk(r.root,r.options,r.helpers,e)}function ba(r,e,t=!1,n=!1){t&&e.pushStringPart("<!--[-->");const{children:s}=r;for(let a=0;a<s.length;a++){const l=s[a];switch(l.type){case 1:switch(l.tagType){case 0:aM(l,e);break;case 1:cM(l,e,r);break;case 2:JL(l,e);break;case 3:break;default:return e.onError(Iu(63,l.loc)),l}break;case 2:e.pushStringPart(bs(l.content));break;case 3:e.pushStringPart(`<!--${l.content}-->`);break;case 5:e.pushStringPart(ut(e.helper(gg),[l.content]));break;case 9:VL(l,e,n);break;case 11:KL(l,e,n);break;case 10:break;case 12:case 8:break;default:return e.onError(Iu(63,l.loc)),l}}t&&e.pushStringPart("<!--]-->")}function rl(r,e,t=!1,n=e.withSlotScopeId){const s=vM(e,n);return ba(r,s,t),Gu(s.body)}const bM=(r,e,t)=>{const n=r.exp;function s(){const a=Tn(e,"value");a&&t.onError(tn(57,a.loc))}if(e.tagType===0){const a={props:[]},l=[Ft("value",n)];if(e.tag==="input"){const u=Tn(e,"type");if(u){const c=wM(e);if(u.type===7)a.ssrTagParts=[ut(t.helper(fk),[u.exp,n,c])];else if(u.value)switch(u.value.content){case"radio":a.props=[Ft("checked",ut(t.helper(s1),[n,c]))];break;case"checkbox":const m=Tn(e,"true-value");if(m){const g=m.type===6?JSON.stringify(m.value.content):m.exp;a.props=[Ft("checked",ut(t.helper(s1),[n,g]))]}else a.props=[Ft("checked",Ri(ut("Array.isArray",[n]),ut(t.helper(ck),[n,c]),n))];break;case"file":t.onError(tn(56,r.loc));break;default:s(),a.props=l;break}}else yh(e)||(s(),a.props=l)}else e.tag==="textarea"?(s(),e.children=[wf(n,n.loc)]):e.tag==="select"||t.onError(tn(54,r.loc));return a}else return Ch(r,e,t)};function wM(r){const e=Tn(r,"value");return e?e.type===7?e.exp:ze(e.value.content,!0):ze("null",!1)}const xM=(r,e,t)=>(r.exp||t.onError(tn(58)),{props:[Ft("style",Ri(r.exp,ze("null",!1),xn([Ft("display",ze("none",!0))]),!1))]}),o1=r=>r.children.filter(e=>e.type!==3),fd=r=>o1(r).length===1,SM=(r,e)=>{if(r.type===0&&(e.identifiers._attrs=1),r.type===1&&r.tagType===1&&(ts(r.tag,"Transition")||ts(r.tag,"KeepAlive"))){const n=o1(e.root);if(n.length===1&&n[0]===r){fd(r)&&hd(r.children[0]);return}}const t=e.parent;if(!(!t||t.type!==0))if(r.type===10&&fd(r)){let n=!1;for(const s of o1(t))if(s.type===9||s.type===1&&Or(s,"if")){if(n)return;n=!0}else if(!n||!(s.type===1&&Or(s,/else/,!0)))return;hd(r.children[0])}else fd(t)&&hd(r)};function hd(r){r.type===1&&(r.tagType===0||r.tagType===1)&&!Or(r,"for")&&r.props.push({type:7,name:"bind",arg:void 0,exp:ze("_attrs",!1),modifiers:[],loc:ar})}const kM=(r,e)=>{if(!e.ssrCssVars)return;r.type===0&&(e.identifiers._cssVars=1);const t=e.parent;if(!(!t||t.type!==0))if(r.type===10)for(const n of r.children)Df(n);else Df(r)};function Df(r){if(r.type===1&&(r.tagType===0||r.tagType===1)&&!Or(r,"for"))if(ts(r.tag,"Suspense"))for(const e of r.children)e.type===1&&e.tagType===3?e.children.forEach(Df):Df(e);else r.props.push({type:7,name:"bind",arg:void 0,exp:ze("_cssVars",!1),modifiers:[],loc:ar})}function TM(r,e={}){e=Object.assign(Object.assign(Object.assign({},e),Ro),{ssr:!0,inSSR:!0,scopeId:e.mode==="function"?null:e.scopeId,prefixIdentifiers:!0,cacheHandlers:!1,hoistStatic:!1});const t=bh(r,e);return xk.set(t,e),xh(t,Object.assign(Object.assign({},e),{hoistStatic:!1,nodeTransforms:[HL,GL,$m,Mm,YL,SM,kM,tM,uM,Bm,Xm,...e.nodeTransforms||[]],directiveTransforms:Object.assign({bind:qm,on:Ah,model:bM,show:xM,cloak:ru,once:ru,memo:ru},e.directiveTransforms||{})})),yM(t,e),Nm(t,e)}var _M=Object.freeze({__proto__:null,compile:TM}),EM={},AM=Object.freeze({__proto__:null,default:EM}),CM=Ju(AM),bg=Ju(TO),PM=Ju(SL);const hb={};function ou(r){!(typeof process<"u"&&{}.NODE_ENV==="production")&&!0&&!hb[r]&&(hb[r]=!0,l1(r))}function l1(r){console.warn(`\x1B[1m\x1B[33m[@vue/compiler-sfc]\x1B[0m\x1B[33m ${r}\x1B[0m
`)}function IM({source:r,filename:e,preprocessOptions:t},n){let s="",a=null;if(n.render(r,Object.assign({filename:e},t),(l,u)=>{l&&(a=l),s=u}),a)throw a;return s}function kk(r){const{preprocessLang:e,preprocessCustomRequire:t}=r;if(e&&!t)throw new Error("[@vue/compiler-sfc] Template preprocessing in the browser build must provide the `preprocessCustomRequire` option to return the in-browser version of the preprocessor in the shape of { render(): string }.");const n=e?t?t(e):void 0:!1;if(n)try{return pb(Object.assign(Object.assign({},r),{source:IM(r,n)}))}catch(s){return{code:"export default function render() {}",source:r.source,tips:[],errors:[s]}}else return e?{code:"export default function render() {}",source:r.source,tips:[`Component ${r.filename} uses lang ${e} for template. Please install the language preprocessor.`],errors:[`Component ${r.filename} uses lang ${e} for template, however it is not installed.`]}:pb(r)}function pb({filename:r,id:e,scoped:t,slotted:n,inMap:s,source:a,ssr:l=!1,ssrCssVars:u,isProd:c=!1,compiler:m=l?_M:Zx,compilerOptions:g={},transformAssetUrls:v}){const b=[],x=[];let E=[];if(oi(v)){const R=$L(v);E=[jL(R),zL(R)]}else v!==!1&&(E=[QS,ZS]);l&&!u&&ou("compileTemplate is called with `ssr: true` but no corresponding `cssVars` option.`."),e||(ou("compileTemplate now requires the `id` option.`."),e="");const S=e.replace(/^data-v-/,""),C=`data-v-${S}`;let{code:_,ast:A,preamble:I,map:M}=m.compile(a,Object.assign(Object.assign({mode:"module",prefixIdentifiers:!0,hoistStatic:!0,cacheHandlers:!0,ssrCssVars:l&&u&&u.length?tS(u,S,c,!0):"",scopeId:t?C:void 0,slotted:n,sourceMap:!0},g),{nodeTransforms:E.concat(g.nodeTransforms||[]),filename:r,onError:R=>b.push(R),onWarn:R=>x.push(R)}));s&&(M&&(M=NM(s,M)),b.length&&OM(b,a,s));const O=x.map(R=>{let j=R.message;return R.loc&&(j+=`
${vo(a,R.loc.start.offset,R.loc.end.offset)}`),j});return{code:_,ast:A,preamble:I,source:a,errors:b,tips:O,map:M}}function NM(r,e){if(!r)return e;if(!e)return r;const t=new Hd(r),n=new Hd(e),s=new kh;n.eachMapping(l=>{if(l.originalLine==null)return;const u=t.originalPositionFor({line:l.originalLine,column:l.originalColumn});u.source!=null&&s.addMapping({generated:{line:l.generatedLine,column:l.generatedColumn},original:{line:u.line,column:l.originalColumn},source:u.source,name:u.name})});const a=s;return t.sources.forEach(l=>{a._sources.add(l);const u=t.sourceContentFor(l);u!=null&&s.setSourceContent(l,u)}),a._sourceRoot=r.sourceRoot,a._file=r.file,a.toJSON()}function OM(r,e,t){const n=t.sourcesContent[0],s=n.indexOf(e),a=n.slice(0,s).split(/\r?\n/).length-1;r.forEach(l=>{l.loc&&(l.loc.start.line+=a,l.loc.start.offset+=s,l.loc.end!==l.loc.start&&(l.loc.end.line+=a,l.loc.end.offset+=s))})}const Tk=/((?:^|\n|;)\s*)export(\s*)default/,LM=/((?:^|\n|;)\s*)export(.+)(?:as)?(\s*)default/s,db=/((?:^|\n|;)\s*)export\s+default\s+class\s+([\w$]+)/;function _k(r,e,t){if(!mb(r))return r+`
const ${e} = {}`;let n;const s=r.match(db);if(s?n=r.replace(db,"$1class $2")+`
const ${e} = ${s[2]}`:n=r.replace(Tk,`$1const ${e} =`),!mb(n))return n;const a=new xt(r);return Ta(r,{sourceType:"module",plugins:t}).program.body.forEach(u=>{if(u.type==="ExportDefaultDeclaration"&&(u.declaration.type==="ClassDeclaration"?(a.overwrite(u.start,u.declaration.id.start,"class "),a.append(`
const ${e} = ${u.declaration.id.name}`)):a.overwrite(u.start,u.declaration.start,`const ${e} = `)),u.type==="ExportNamedDeclaration"){for(const c of u.specifiers)if(c.type==="ExportSpecifier"&&c.exported.type==="Identifier"&&c.exported.name==="default"){if(u.source)if(c.local.name==="default"){const g=pd(r,c.local.end,u.end);a.prepend(`import { default as __VUE_DEFAULT__ } from '${u.source.value}'
`),a.overwrite(c.start,g,""),a.append(`
const ${e} = __VUE_DEFAULT__`);continue}else{const g=pd(r,c.exported.end,u.end);a.prepend(`import { ${r.slice(c.local.start,c.local.end)} } from '${u.source.value}'
`),a.overwrite(c.start,g,""),a.append(`
const ${e} = ${c.local.name}`);continue}const m=pd(r,c.end,u.end);a.overwrite(c.start,m,""),a.append(`
const ${e} = ${c.local.name}`)}}}),a.toString()}function mb(r){return Tk.test(r)||LM.test(r)}function pd(r,e,t){let n=!1,s=e;for(;e<t;)if(/\s/.test(r.charAt(e)))e++;else if(r.charAt(e)===","){e++,n=!0;break}else if(r.charAt(e)==="}")break;return n?e:s}const gb="$",yb="$$",MM=["ref","computed","shallowRef","toRef","customRef"],DM=/[^\w]\$(?:\$|ref|computed|shallowRef)?\s*(\(|\<)/;function lu(r){return DM.test(r)}function Ek(r,{filename:e,sourceMap:t,parserPlugins:n,importHelpersFrom:s="vue"}={}){const a=n||[];e&&(/\.tsx?$/.test(e)&&a.push("typescript"),e.endsWith("x")&&a.push("jsx"));const l=Ta(r,{sourceType:"module",plugins:a}),u=new xt(r),c=uu(l.program,u,0);return c.importedHelpers.length&&u.prepend(`import { ${c.importedHelpers.map(m=>`${m} as _${m}`).join(", ")} } from '${s}'
`),Object.assign(Object.assign({},c),{code:u.toString(),map:t?u.generateMap({source:e,hires:!0,includeContent:!0}):null})}function uu(r,e,t=0,n,s){RM();let a=gb,l=yb;for(const W of r.body)if(W.type==="ImportDeclaration"&&W.source.value==="vue/macros"){e.remove(W.start+t,W.end+t);for(const Z of W.specifiers)if(Z.type==="ImportSpecifier"){const de=Z.imported.name,he=Z.local.name;he!==de&&(de===yb?l=he:de===gb?a=he:C("macro imports for ref-creating methods do not support aliasing.",Z))}}const u=new Set,c={},m=[c];let g=c,v;const b=new WeakSet,x=[],E=Object.create(null);if(n)for(const W of n)c[W]=!0;if(s)for(const W in s){const{local:Z}=s[W];c[Z]="prop",E[Z]=W}function S(W){return W===a?a:W[0]==="$"&&MM.includes(W.slice(1))?W:!1}function C(W,Z){const de=new Error(W);throw de.node=Z,de}function _(W){return u.add(W),`_${W}`}function A(W,Z=!1){b.add(W),g?g[W.name]=Z:C("registerBinding called without active scope, something is wrong.",W)}const I=W=>A(W,!0);let M=0;function O(){return`__$temp_${++M}`}function R(W){return e.original.slice(W.start+t,W.end+t)}function j(W,Z=!1){for(const de of W.body)if(de.type==="VariableDeclaration")$(de,Z);else if(de.type==="FunctionDeclaration"||de.type==="ClassDeclaration"){if(de.declare||!de.id)continue;A(de.id)}else(de.type==="ForOfStatement"||de.type==="ForInStatement")&&de.left.type==="VariableDeclaration"?$(de.left):de.type==="ExportNamedDeclaration"&&de.declaration&&de.declaration.type==="VariableDeclaration"?$(de.declaration,Z):de.type==="LabeledStatement"&&de.body.type==="VariableDeclaration"&&$(de.body,Z)}function $(W,Z=!1){if(!W.declare)for(const de of W.declarations){let he;const oe=de.init&&de.init.type==="CallExpression"&&de.init.callee.type==="Identifier";if(oe&&(he=S(de.init.callee.name)))B(he,de.id,de.init);else{const we=Z&&oe&&de.init.callee.name==="defineProps";for(const re of Zn(de.id))we?b.add(re):A(re)}}}function B(W,Z,de){b.add(de.callee),W===a?(e.remove(de.callee.start+t,de.callee.end+t),Z.type==="Identifier"?I(Z):Z.type==="ObjectPattern"?F(Z,de):Z.type==="ArrayPattern"&&H(Z,de)):Z.type==="Identifier"?(I(Z),e.overwrite(de.start+t,de.start+W.length+t,_(W.slice(1)))):C(`${W}() cannot be used with destructure patterns.`,de)}function F(W,Z,de,he=[]){de||(de=O(),e.overwrite(W.start+t,W.end+t,de));for(const oe of W.properties){let we,re,ge;if(oe.type==="ObjectProperty"?oe.key.start===oe.value.start?(we=oe.key,oe.value.type==="Identifier"?b.add(oe.value):oe.value.type==="AssignmentPattern"&&oe.value.left.type==="Identifier"&&(b.add(oe.value.left),ge=oe.value.right)):(re=oe.computed?oe.key:oe.key.name,oe.value.type==="Identifier"?we=oe.value:oe.value.type==="ObjectPattern"?F(oe.value,Z,de,[...he,re]):oe.value.type==="ArrayPattern"?H(oe.value,Z,de,[...he,re]):oe.value.type==="AssignmentPattern"&&(oe.value.left.type==="Identifier"?(we=oe.value.left,ge=oe.value.right):oe.value.left.type==="ObjectPattern"?F(oe.value.left,Z,de,[...he,[re,oe.value.right]]):oe.value.left.type==="ArrayPattern"&&H(oe.value.left,Z,de,[...he,[re,oe.value.right]]))):C("reactivity destructure does not support rest elements.",oe),we){I(we);const ee=V(de,he),z=Ct(re)?`'${re}'`:re?R(re):`'${we.name}'`,ne=ge?`, ${R(ge)}`:"";e.appendLeft(Z.end+t,`,
${we.name} = ${_("toRef")}(${ee}, ${z}${ne})`)}}}function H(W,Z,de,he=[]){de||(de=O(),e.overwrite(W.start+t,W.end+t,de));for(let oe=0;oe<W.elements.length;oe++){const we=W.elements[oe];if(!we)continue;let re,ge;if(we.type==="Identifier"?re=we:we.type==="AssignmentPattern"?(re=we.left,ge=we.right):we.type==="RestElement"?C("reactivity destructure does not support rest elements.",we):we.type==="ObjectPattern"?F(we,Z,de,[...he,oe]):we.type==="ArrayPattern"&&H(we,Z,de,[...he,oe]),re){I(re);const ee=V(de,he),z=ge?`, ${R(ge)}`:"";e.appendLeft(Z.end+t,`,
${re.name} = ${_("toRef")}(${ee}, ${oe}${z})`)}}}function V(W,Z){if(Z.length)for(const de of Z)dn(de)?W=`(${W}${X(de[0])} || ${R(de[1])})`:W+=X(de);return W}function X(W){return typeof W=="number"?`[${W}]`:typeof W=="string"?`.${W}`:R(W)}function J(W,Z,de,he){if($w(W,Z.name)){const oe=W[Z.name];if(oe){const we=oe==="prop";Qo(de)&&de.shorthand?(!de.inPattern||Xo(de,he))&&(we?v?(ce(Z),e.appendLeft(Z.end+t,`: __props_${E[Z.name]}`)):e.appendLeft(Z.end+t,`: ${yf(E[Z.name])}`):e.appendLeft(Z.end+t,`: ${Z.name}.value`)):we?v?(ce(Z),e.overwrite(Z.start+t,Z.end+t,`__props_${E[Z.name]}`)):e.overwrite(Z.start+t,Z.end+t,yf(E[Z.name])):e.appendLeft(Z.end+t,".value")}return!0}return!1}const D={};function ce(W){if(!D.hasOwnProperty(W.name)){D[W.name]=!0;const Z=E[W.name];e.prependRight(t,`const __props_${Z} = ${_("toRef")}(__props, '${Z}')
`)}}return j(r,!0),_h(r,{enter(W,Z){if(Z&&x.push(Z),pa(W)){m.push(g={}),Lm(W,A),W.body.type==="BlockStatement"&&j(W.body);return}if(W.type==="CatchClause"){m.push(g={}),W.param&&W.param.type==="Identifier"&&A(W.param),j(W.body);return}if(W.type==="BlockStatement"&&!pa(Z)){m.push(g={}),j(W);return}if(Z&&Z.type.startsWith("TS")&&Z.type!=="TSAsExpression"&&Z.type!=="TSNonNullExpression"&&Z.type!=="TSTypeAssertion")return this.skip();if(W.type==="Identifier"&&!(v&&c[W.name]!=="prop")&&Om(W,Z,x)&&!b.has(W)){let de=m.length;for(;de--;)if(J(m[de],W,Z,x))return}if(W.type==="CallExpression"&&W.callee.type==="Identifier"){const de=W.callee.name,he=S(de);if(he&&(!Z||Z.type!=="VariableDeclarator"))return C(`${he} can only be used as the initializer of a variable declaration.`,W);de===l&&(e.remove(W.callee.start+t,W.callee.end+t),v=W),de==="$raw"&&C(`$raw() has been replaced by $$(). See ${u1} for latest updates.`,W),de==="$fromRef"&&C(`$fromRef() has been replaced by $(). See ${u1} for latest updates.`,W)}},leave(W,Z){Z&&x.pop(),(W.type==="BlockStatement"&&!pa(Z)||pa(W))&&(m.pop(),g=m[m.length-1]||null),W===v&&(v=void 0)}}),{rootRefs:Object.keys(c).filter(W=>c[W]===!0),importedHelpers:[...u]}}const u1="https://github.com/vuejs/rfcs/discussions/369",vb={};function RM(){typeof window<"u"||FM(`Reactivity transform is an experimental feature.
Experimental features may change behavior between patch versions.
It is recommended to pin your vue dependencies to exact versions to avoid breakage.
You can follow the proposal's status at ${u1}.`)}function FM(r){!(typeof process<"u"&&{}.NODE_ENV==="production")&&!0&&!vb[r]&&(vb[r]=!0,BM(r))}function BM(r){console.warn(`\x1B[1m\x1B[33m[@vue/reactivity-transform]\x1B[0m\x1B[33m ${r}\x1B[0m
`)}const qr="defineProps",la="defineEmits",dd="defineExpose",co="withDefaults",oa="__default__",$M=Cr("once,memo,if,for,else,else-if,slot,text,html,on,bind,model,show,cloak,is");function jM(r,e){var t;let{script:n,scriptSetup:s,source:a,filename:l}=r;const u=!!e.reactivityTransform||!!e.refSugar||!!e.refTransform,c=!!e.reactivityTransform||!!e.propsDestructureTransform,m=!!e.isProd,g=e.sourceMap!==!1;let v;e.id||ou("compileScript now requires passing the `id` option.\nUpgrade your vite or vue-loader version for compatibility with the latest experimental proposals.");const b=e.id?e.id.replace(/^data-v-/,""):"",x=r.cssVars,E=n&&n.lang,S=s&&s.lang,C=E==="ts"||E==="tsx"||S==="ts"||S==="tsx",_=[];if(!C||E==="tsx"||S==="tsx"?_.push("jsx"):e.babelParserPlugins&&(e.babelParserPlugins=e.babelParserPlugins.filter(Y=>Y!=="jsx")),e.babelParserPlugins&&_.push(...e.babelParserPlugins),C&&(_.push("typescript"),_.includes("decorators")||_.push("decorators-legacy")),!s){if(!n)throw new Error("[@vue/compiler-sfc] SFC contains no <script> tags.");if(E&&!C&&E!=="jsx")return n;try{let Y=n.content,Oe=n.map;const Pe=Ta(Y,{plugins:_,sourceType:"module"}).program,Ke=xb(Pe.body);if(u&&lu(Y)){const $e=new xt(a),Ve=n.loc.start.offset,Ze=n.loc.end.offset,{importedHelpers:Vt}=uu(Pe,$e,Ve);Vt.length&&$e.prepend(`import { ${Vt.map(_t=>`${_t} as _${_t}`).join(", ")} } from 'vue'
`),$e.remove(0,Ve),$e.remove(Ze,a.length),Y=$e.toString(),g&&(Oe=$e.generateMap({source:l,hires:!0,includeContent:!0}))}return x.length&&(Y=_k(Y,oa,_),Y+=BN(x,Ke,b,m),Y+=`
export default ${oa}`),Object.assign(Object.assign({},n),{content:Y,map:Oe,bindings:Ke,scriptAst:Pe.body})}catch{return n}}if(n&&E!==S)throw new Error("[@vue/compiler-sfc] <script> and <script setup> must have the same language type.");if(S&&!C&&S!=="jsx")return s;const A={},I=new Set,M=Object.create(null),O=Object.create(null),R=Object.create(null),j=Object.create(null);let $,B=!1,F=!1,H=!1,V=!1,X=!1,J,D,ce,W,Z,de,he,oe,we,re,ge,ee=!1,z=!1;const ne={},fe=new Set,ye={},pe=Object.create(null),le=new xt(a),_e=s.loc.start.offset,De=s.loc.end.offset,Ue=n&&n.loc.start.offset,qe=n&&n.loc.end.offset;function Xe(Y){return I.add(Y),`_${Y}`}function tt(Y,Oe,Pe){try{return Ta(Y,Oe).program}catch(Ke){throw Ke.message=`[@vue/compiler-sfc] ${Ke.message}
${r.filename}
${vo(a,Ke.pos+Pe,Ke.pos+Pe+1)}`,Ke}}function Je(Y,Oe,Pe=Oe.end+_e){throw new Error(`[@vue/compiler-sfc] ${Y}
${r.filename}
${vo(a,Oe.start+_e,Pe)}`)}function dt(Y,Oe,Pe,Ke,$e,Ve){Y==="vue"&&Pe&&(O[Pe]=Oe);let Ze=Ve;Ve&&C&&r.template&&!r.template.src&&!r.template.lang&&(Ze=Nk(Oe,r)),M[Oe]={isType:Ke,imported:Pe||"default",source:Y,isFromSetup:$e,isUsedInTemplate:Ze}}function Lt(Y,Oe){if(!vs(Y,qr))return!1;if(B&&Je(`duplicate ${qr}() call`,Y),B=!0,J=Y.arguments[0],Y.typeParameters&&(J&&Je(`${qr}() cannot accept both type and non-type arguments at the same time. Use one or the other.`,Y),de=Y.typeParameters.params[0],Z=Ee(de,Pe=>Pe.type==="TSTypeLiteral"),Z||Je(`type argument passed to ${qr}() must be a literal type, or a reference to an interface or literal type.`,de)),Oe)if(c&&Oe.type==="ObjectPattern"){ce=Oe;for(const Pe of Oe.properties)if(Pe.type==="ObjectProperty"){Pe.computed&&Je(`${qr}() destructure cannot use computed key.`,Pe.key);const Ke=Pe.key.type==="StringLiteral"?Pe.key.value:Pe.key.name;if(Pe.value.type==="AssignmentPattern"){const{left:$e,right:Ve}=Pe.value;$e.type!=="Identifier"&&Je(`${qr}() destructure does not support nested patterns.`,$e),pe[Ke]={local:$e.name,default:Ve}}else Pe.value.type==="Identifier"?pe[Ke]={local:Pe.value.name}:Je(`${qr}() destructure does not support nested patterns.`,Pe.value)}else W=Pe.argument.name}else he=s.content.slice(Oe.start,Oe.end);return!0}function ht(Y,Oe){return vs(Y,co)?(Lt(Y.arguments[0],Oe)?(J&&Je(`${co} can only be used with type-based ${qr} declaration.`,Y),ce&&Je(`${co}() is unnecessary when using destructure with ${qr}().
Prefer using destructure default values, e.g. const { foo = 1 } = defineProps(...).`,Y.callee),D=Y.arguments[1],(!D||D.type!=="ObjectExpression")&&Je(`The 2nd argument of ${co} must be an object literal.`,D||Y)):Je(`${co}' first argument must be a ${qr} call.`,Y.arguments[0]||Y),!0):!1}function ae(Y,Oe){return vs(Y,la)?(F&&Je(`duplicate ${la}() call`,Y),F=!0,oe=Y.arguments[0],Y.typeParameters&&(oe&&Je(`${la}() cannot accept both type and non-type arguments at the same time. Use one or the other.`,Y),re=Y.typeParameters.params[0],we=Ee(re,Pe=>Pe.type==="TSFunctionType"||Pe.type==="TSTypeLiteral"),we||Je(`type argument passed to ${la}() must be a function type, a literal type with call signatures, or a reference to the above types.`,re)),Oe&&(ge=s.content.slice(Oe.start,Oe.end)),!0):!1}function Ee(Y,Oe){if(Oe(Y))return Y;if(Y.type==="TSTypeReference"&&Y.typeName.type==="Identifier"){const Pe=Y.typeName.name,Ke=Ve=>{if(Ve.type==="TSInterfaceDeclaration"&&Ve.id.name===Pe)return Ve.body;if(Ve.type==="TSTypeAliasDeclaration"&&Ve.id.name===Pe&&Oe(Ve.typeAnnotation))return Ve.typeAnnotation;if(Ve.type==="ExportNamedDeclaration"&&Ve.declaration)return Ke(Ve.declaration)},$e=cr?[...Ht.body,...cr.body]:Ht.body;for(const Ve of $e){const Ze=Ke(Ve);if(Ze)return Ze}}}function me(Y){return vs(Y,dd)?(H&&Je(`duplicate ${dd}() call`,Y),H=!0,!0):!1}function ct(Y,Oe){!Y||Jo(Y,Pe=>{j[Pe.name]&&Je(`\`${Oe}()\` in <script setup> cannot reference locally declared variables because it will be hoisted outside of the setup() function. If your component options require initialization in the module scope, use a separate normal <script> to export the options instead.`,Pe)})}function tr(Y,Oe,Pe){const Ke=Y.argument.extra&&Y.argument.extra.parenthesized?Y.argument.extra.parenStart:Y.argument.start,$e=a.slice(Ke+_e,Y.argument.end+_e),Ve=/\bawait\b/.test($e);le.overwrite(Y.start+_e,Ke+_e,`${Oe?";":""}(
([__temp,__restore] = ${Xe("withAsyncContext")}(${Ve?"async ":""}() => `),le.appendLeft(Y.end+_e,`)),
${Pe?"":"__temp = "}await __temp,
__restore()${Pe?"":`,
__temp`}
)`)}function vr(){return D&&D.type==="ObjectExpression"&&D.properties.every(Y=>Y.type==="ObjectProperty"&&!Y.computed||Y.type==="ObjectMethod")}function Vn(Y){const Oe=Object.keys(Y);if(!Oe.length)return"";const Pe=vr(),Ke=s.content;let $e=`{
${Oe.map(Ve=>{let Ze;const Vt=ur(Ve);if(Vt)Ze=`default: ${Vt}`;else if(Pe){const Kt=D.properties.find(hr=>hr.key.name===Ve);Kt&&(Kt.type==="ObjectProperty"?Ze=`default: ${Ke.slice(Kt.value.start,Kt.value.end)}`:Ze=`default() ${Ke.slice(Kt.body.start,Kt.body.end)}`)}const{type:_t,required:br}=Y[Ve];return m?_t.some(Kt=>Kt==="Boolean"||Ze&&Kt==="Function")?`${Ve}: { type: ${bb(_t)}${Ze?`, ${Ze}`:""} }`:`${Ve}: ${Ze?`{ ${Ze} }`:"null"}`:`${Ve}: { type: ${bb(_t)}, required: ${br}${Ze?`, ${Ze}`:""} }`}).join(`,
`)}
}`;return D&&!Pe&&($e=`${Xe("mergeDefaults")}(${$e}, ${a.slice(D.start+_e,D.end+_e)})`),`
props: ${$e},`}function ur(Y){const Oe=pe[Y];if(Oe&&Oe.default){const Pe=s.content.slice(Oe.default.start,Oe.default.end);return Oe.default.type.endsWith("Literal")?Pe:`() => (${Pe})`}}function Mt(Y){const Oe=s.content;if(vr()){let Pe="{ ";const Ke=Y.type==="TSTypeLiteral"?Y.members:Y.body;for(const $e of Ke)($e.type==="TSPropertySignature"||$e.type==="TSMethodSignature")&&$e.typeAnnotation&&$e.key.type==="Identifier"&&(D.properties.some(Ve=>Ve.key.name===$e.key.name)?Pe+=$e.key.name+($e.type==="TSMethodSignature"?"()":"")+Oe.slice($e.typeAnnotation.start,$e.typeAnnotation.end)+", ":Pe+=Oe.slice($e.start,$e.typeAnnotation.end)+", ");return(Pe.length?Pe.slice(0,-2):Pe)+" }"}else return Oe.slice(Y.start,Y.end)}let cr;if(n){cr=tt(n.content,{plugins:_,sourceType:"module"},Ue);for(const Y of cr.body)if(Y.type==="ImportDeclaration")for(const Oe of Y.specifiers){const Pe=Oe.type==="ImportSpecifier"&&Oe.imported.type==="Identifier"&&Oe.imported.name;dt(Y.source.value,Oe.local.name,Pe,Y.importKind==="type"||Oe.type==="ImportSpecifier"&&Oe.importKind==="type",!1,!e.inlineTemplate)}else if(Y.type==="ExportDefaultDeclaration"){$=Y;let Oe;if($.declaration.type==="ObjectExpression"?Oe=$.declaration.properties:$.declaration.type==="CallExpression"&&$.declaration.arguments[0].type==="ObjectExpression"&&(Oe=$.declaration.arguments[0].properties),Oe)for(const $e of Oe)$e.type==="ObjectProperty"&&$e.key.type==="Identifier"&&$e.key.name==="name"&&(V=!0),($e.type==="ObjectMethod"||$e.type==="ObjectProperty")&&$e.key.type==="Identifier"&&$e.key.name==="render"&&(X=!0);const Pe=Y.start+Ue,Ke=Y.declaration.start+Ue;le.overwrite(Pe,Ke,`const ${oa} = `)}else if(Y.type==="ExportNamedDeclaration"){const Oe=Y.specifiers.find(Pe=>Pe.exported.type==="Identifier"&&Pe.exported.name==="default");Oe&&($=Y,Y.specifiers.length>1?le.remove(Oe.start+Ue,Oe.end+Ue):le.remove(Y.start+Ue,Y.end+Ue),Y.source?le.prepend(`import { ${Oe.local.name} as ${oa} } from '${Y.source.value}'
`):le.appendLeft(qe,`
const ${oa} = ${Oe.local.name}
`)),Y.declaration&&md(Y.declaration,R,O)}else(Y.type==="VariableDeclaration"||Y.type==="FunctionDeclaration"||Y.type==="ClassDeclaration"||Y.type==="TSEnumDeclaration")&&!Y.declare&&md(Y,R,O);if(u&&lu(n.content)){const{rootRefs:Y,importedHelpers:Oe}=uu(cr,le,Ue);v=Y;for(const Pe of Oe)I.add(Pe)}Ue>_e&&(/\n$/.test(n.content.trim())||le.appendLeft(qe,`
`),le.move(Ue,qe,0))}const Ht=tt(s.content,{plugins:[..._,"topLevelAwait"],sourceType:"module"},_e);for(const Y of Ht.body){const Oe=Y.start+_e;let Pe=Y.end+_e;for(Y.trailingComments&&Y.trailingComments.length>0&&(Pe=Y.trailingComments[Y.trailingComments.length-1].end+_e);Pe<=a.length&&/\s/.test(a.charAt(Pe));)Pe++;if(Y.type==="LabeledStatement"&&Y.label.name==="ref"&&Y.body.type==="ExpressionStatement"&&Je("ref sugar using the label syntax was an experimental proposal and has been dropped based on community feedback. Please check out the new proposal at https://github.com/vuejs/rfcs/discussions/369",Y),Y.type==="ImportDeclaration"){le.move(Oe,Pe,0);let Ke=0;const $e=Ve=>{const Ze=Ve>Ke;Ke++;const Vt=Y.specifiers[Ve],_t=Y.specifiers[Ve+1];le.remove(Ze?Y.specifiers[Ve-1].end+_e:Vt.start+_e,_t&&!Ze?_t.start+_e:Vt.end+_e)};for(let Ve=0;Ve<Y.specifiers.length;Ve++){const Ze=Y.specifiers[Ve],Vt=Ze.local.name;let _t=Ze.type==="ImportSpecifier"&&Ze.imported.type==="Identifier"&&Ze.imported.name;Ze.type==="ImportNamespaceSpecifier"&&(_t="*");const br=Y.source.value,Kt=M[Vt];br==="vue"&&(_t===qr||_t===la||_t===dd)?(ou(`\`${_t}\` is a compiler macro and no longer needs to be imported.`),$e(Ve)):Kt?Kt.source===br&&Kt.imported===_t?$e(Ve):Je("different imports aliased to same local name.",Ze):dt(br,Vt,_t,Y.importKind==="type"||Ze.type==="ImportSpecifier"&&Ze.importKind==="type",!0,!e.inlineTemplate)}Y.specifiers.length&&Ke===Y.specifiers.length&&le.remove(Y.start+_e,Y.end+_e)}if(Y.type==="ExpressionStatement"){if(Lt(Y.expression)||ae(Y.expression)||ht(Y.expression))le.remove(Y.start+_e,Y.end+_e);else if(me(Y.expression)){const Ke=Y.expression.callee;le.overwrite(Ke.start+_e,Ke.end+_e,"expose")}}if(Y.type==="VariableDeclaration"&&!Y.declare){const Ke=Y.declarations.length;let $e=Ke;for(let Ve=0;Ve<Ke;Ve++){const Ze=Y.declarations[Ve];if(Ze.init){const Vt=Lt(Ze.init,Ze.id)||ht(Ze.init,Ze.id),_t=ae(Ze.init,Ze.id);if(Vt||_t)if($e===1)le.remove(Y.start+_e,Y.end+_e);else{let br=Ze.start+_e,Kt=Ze.end+_e;Ve<Ke-1?Kt=Y.declarations[Ve+1].start+_e:br=Y.declarations[Ve-1].end+_e,le.remove(br,Kt),$e--}}}}if((Y.type==="VariableDeclaration"||Y.type==="FunctionDeclaration"||Y.type==="ClassDeclaration")&&!Y.declare&&md(Y,j,O),Y.type==="VariableDeclaration"&&!Y.declare||Y.type.endsWith("Statement")){const Ke=[Ht.body];_h(Y,{enter($e,Ve){if(pa($e)&&this.skip(),$e.type==="BlockStatement"&&Ke.push($e.body),$e.type==="AwaitExpression"){ee=!0;const Vt=Ke[Ke.length-1].some((_t,br)=>(Ke.length===1||br>0)&&_t.type==="ExpressionStatement"&&_t.start===$e.start);tr($e,Vt,Ve.type==="ExpressionStatement")}},exit($e){$e.type==="BlockStatement"&&Ke.pop()}})}(Y.type==="ExportNamedDeclaration"&&Y.exportKind!=="type"||Y.type==="ExportAllDeclaration"||Y.type==="ExportDefaultDeclaration")&&Je("<script setup> cannot contain ES module exports. If you are using a previous version of <script setup>, please consult the updated RFC at https://github.com/vuejs/rfcs/pull/227.",Y),C&&(Y.type==="TSEnumDeclaration"&&wa(j,Y.id,"setup-const"),(Y.type.startsWith("TS")||Y.type==="ExportNamedDeclaration"&&Y.exportKind==="type"||Y.type==="VariableDeclaration"&&Y.declare)&&(Pk(Y,ye),le.move(Oe,Pe,0)))}if(u&&(v||lu(s.content))||ce){const{rootRefs:Y,importedHelpers:Oe}=uu(Ht,le,_e,v,pe);v=v?[...v,...Y]:Y;for(const Pe of Oe)I.add(Pe)}if(Z&&UM(Z,ne,ye),we&&qM(we,fe),ct(J,qr),ct(D,qr),ct(ce,qr),ct(oe,la),n?_e<Ue?(le.remove(0,_e),le.remove(De,Ue),le.remove(qe,a.length)):(le.remove(0,Ue),le.remove(qe,_e),le.remove(De,a.length)):(le.remove(0,_e),le.remove(De,a.length)),cr&&Object.assign(A,xb(cr.body)),J)for(const Y of f1(J))A[Y]="props";for(const Y in ne)A[Y]="props";if(ce){W&&(A[W]="setup-reactive-const");for(const Y in pe){const{local:Oe}=pe[Y];Oe!==Y&&(A[Oe]="props-aliased",(A.__propsAliases||(A.__propsAliases={}))[Oe]=Y)}}for(const[Y,{isType:Oe,imported:Pe,source:Ke}]of Object.entries(M))Oe||(A[Y]=Pe==="*"||Pe==="default"&&Ke.endsWith(".vue")||Ke==="vue"?"setup-const":"setup-maybe-ref");for(const Y in R)A[Y]=R[Y];for(const Y in j)A[Y]=j[Y];if(v)for(const Y of v)A[Y]="setup-ref";x.length&&!(e.inlineTemplate&&((t=e.templateOptions)===null||t===void 0?void 0:t.ssr))&&(I.add(If),I.add("unref"),le.prependRight(_e,`
${aS(x,A,b,m)}
`));let mr="__props";if(Z&&(mr+=": any"),he&&le.prependLeft(_e,`
const ${he} = __props${Z?` as ${Mt(Z)}`:""}
`),W&&le.prependLeft(_e,`
const ${W} = ${Xe("createPropsRestProxy")}(__props, ${JSON.stringify(Object.keys(pe))})
`),ee){const Y=C?": any":"";le.prependLeft(_e,`
let __temp${Y}, __restore${Y}
`)}const Qe=H||!e.inlineTemplate?["expose"]:[];ge&&Qe.push(ge==="emit"?"emit":`emit: ${ge}`),Qe.length&&(mr+=`, { ${Qe.join(", ")} }`,we&&(mr+=`: { emit: (${s.content.slice(we.start,we.end)}), expose: any, slots: any, attrs: any }`));let Kr;if(!e.inlineTemplate||!r.template&&X){const Y=Object.assign(Object.assign({},R),j);for(const Oe in M)!M[Oe].isType&&M[Oe].isUsedInTemplate&&(Y[Oe]=!0);Kr=`{ ${Object.keys(Y).join(", ")} }`}else if(r.template&&!r.template.src){e.templateOptions&&e.templateOptions.ssr&&(z=!0);const{code:Y,ast:Oe,preamble:Pe,tips:Ke,errors:$e}=kk(Object.assign(Object.assign({filename:l,source:r.template.content,inMap:r.template.map},e.templateOptions),{id:b,scoped:r.styles.some(Ze=>Ze.scoped),isProd:e.isProd,ssrCssVars:r.cssVars,compilerOptions:Object.assign(Object.assign({},e.templateOptions&&e.templateOptions.compilerOptions),{inline:!0,isTS:C,bindingMetadata:A})}));Ke.length&&Ke.forEach(ou);const Ve=$e[0];if(typeof Ve=="string")throw new Error(Ve);if(Ve)throw Ve.loc&&(Ve.message+=`
`+r.filename+`
`+vo(a,Ve.loc.start.offset,Ve.loc.end.offset)+`
`),Ve;Pe&&le.prepend(Pe),Oe&&Oe.helpers.includes(Po)&&I.delete("unref"),Kr=Y}else Kr="() => {}";e.inlineTemplate?le.appendRight(De,`
return ${Kr}
}
`):le.appendRight(De,`
const __returned__ = ${Kr}
Object.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })
return __returned__
}
`);let Bt="";if(!V&&l&&l!==Ok){const Y=l.match(/([^/\\]+)\.\w+$/);Y&&(Bt+=`
__name: '${Y[1]}',`)}if(z&&(Bt+=`
__ssrInlineRender: true,`),J){let Y=s.content.slice(J.start,J.end).trim();if(ce){const Oe=[];for(const Pe in pe){const Ke=ur(Pe);Ke&&Oe.push(`${Pe}: ${Ke}`)}Oe.length&&(Y=`${Xe("mergeDefaults")}(${Y}, {
${Oe.join(`,
`)}
})`)}Bt+=`
props: ${Y},`}else Z&&(Bt+=Vn(ne));oe?Bt+=`
emits: ${s.content.slice(oe.start,oe.end).trim()},`:we&&(Bt+=WM(fe));const rt=H||e.inlineTemplate?"":` expose();
`;if(C){const Y=$?`
...${oa},`:"";le.prependLeft(_e,`
export default /*#__PURE__*/${Xe("defineComponent")}({${Y}${Bt}
${ee?"async ":""}setup(${mr}) {
${rt}`),le.appendRight(De,"})")}else $?(le.prependLeft(_e,`
export default /*#__PURE__*/Object.assign(${oa}, {${Bt}
${ee?"async ":""}setup(${mr}) {
${rt}`),le.appendRight(De,"})")):(le.prependLeft(_e,`
export default {${Bt}
${ee?"async ":""}setup(${mr}) {
${rt}`),le.appendRight(De,"}"));return I.size>0&&le.prepend(`import { ${[...I].map(Y=>`${Y} as _${Y}`).join(", ")} } from 'vue'
`),le.trim(),Object.assign(Object.assign({},s),{bindings:A,imports:M,content:le.toString(),map:g?le.generateMap({source:l,hires:!0,includeContent:!0}):void 0,scriptAst:cr==null?void 0:cr.body,scriptSetupAst:Ht==null?void 0:Ht.body})}function wa(r,e,t){r[e.name]=t}function md(r,e,t){if(r.type==="VariableDeclaration"){const n=r.kind==="const";for(const{id:s,init:a}of r.declarations){const l=!!(n&&vs(a,u=>u===qr||u===la||u===co));if(s.type==="Identifier"){let u;const c=t.reactive||"reactive";vs(a,c)?u=n?"setup-reactive-const":"setup-let":l||n&&Ik(a,c)?u=vs(a,qr)?"setup-reactive-const":"setup-const":n?vs(a,t.ref||"ref")?u="setup-ref":u="setup-maybe-ref":u="setup-let",wa(e,s,u)}else{if(vs(a,qr))return;s.type==="ObjectPattern"?Ak(s,e,n,l):s.type==="ArrayPattern"&&Ck(s,e,n,l)}}}else(r.type==="TSEnumDeclaration"||r.type==="FunctionDeclaration"||r.type==="ClassDeclaration")&&(e[r.id.name]="setup-const")}function Ak(r,e,t,n=!1){for(const s of r.properties)if(s.type==="ObjectProperty")if(s.key.type==="Identifier"&&s.key===s.value){const a=n?"setup-const":t?"setup-maybe-ref":"setup-let";wa(e,s.key,a)}else wg(s.value,e,t,n);else{const a=t?"setup-const":"setup-let";wa(e,s.argument,a)}}function Ck(r,e,t,n=!1){for(const s of r.elements)s&&wg(s,e,t,n)}function wg(r,e,t,n=!1){if(r.type==="Identifier")wa(e,r,n?"setup-const":t?"setup-maybe-ref":"setup-let");else if(r.type==="RestElement"){const s=t?"setup-const":"setup-let";wa(e,r.argument,s)}else if(r.type==="ObjectPattern")Ak(r,e,t);else if(r.type==="ArrayPattern")Ck(r,e,t);else if(r.type==="AssignmentPattern")if(r.left.type==="Identifier"){const s=n?"setup-const":t?"setup-maybe-ref":"setup-let";wa(e,r.left,s)}else wg(r.left,e,t)}function Pk(r,e){r.type==="TSInterfaceDeclaration"?e[r.id.name]=["Object"]:r.type==="TSTypeAliasDeclaration"?e[r.id.name]=Rf(r.typeAnnotation,e):r.type==="ExportNamedDeclaration"&&r.declaration&&Pk(r.declaration,e)}function UM(r,e,t,n){const s=r.type==="TSTypeLiteral"?r.members:r.body;for(const a of s)if((a.type==="TSPropertySignature"||a.type==="TSMethodSignature")&&a.key.type==="Identifier"){let l;a.type==="TSMethodSignature"?l=["Function"]:a.typeAnnotation&&(l=Rf(a.typeAnnotation.typeAnnotation,t)),e[a.key.name]={key:a.key.name,required:!a.optional,type:l||["null"]}}}function Rf(r,e){switch(r.type){case"TSStringKeyword":return["String"];case"TSNumberKeyword":return["Number"];case"TSBooleanKeyword":return["Boolean"];case"TSObjectKeyword":return["Object"];case"TSTypeLiteral":return["Object"];case"TSFunctionType":return["Function"];case"TSArrayType":case"TSTupleType":return["Array"];case"TSLiteralType":switch(r.literal.type){case"StringLiteral":return["String"];case"BooleanLiteral":return["Boolean"];case"NumericLiteral":case"BigIntLiteral":return["Number"];default:return["null"]}case"TSTypeReference":if(r.typeName.type==="Identifier"){if(e[r.typeName.name])return e[r.typeName.name];switch(r.typeName.name){case"Array":case"Function":case"Object":case"Set":case"Map":case"WeakSet":case"WeakMap":case"Date":case"Promise":return[r.typeName.name];case"Record":case"Partial":case"Readonly":case"Pick":case"Omit":case"Exclude":case"Extract":case"Required":case"InstanceType":return["Object"]}}return["null"];case"TSParenthesizedType":return Rf(r.typeAnnotation,e);case"TSUnionType":return[...new Set([].concat(...r.types.map(t=>Rf(t,e))))];case"TSIntersectionType":return["Object"];case"TSSymbolKeyword":return["Symbol"];default:return["null"]}}function bb(r){return r.length>1?`[${r.join(", ")}]`:r[0]}function qM(r,e){if(r.type==="TSTypeLiteral"||r.type==="TSInterfaceBody"){const t=r.type==="TSTypeLiteral"?r.members:r.body;for(let n of t)n.type==="TSCallSignatureDeclaration"&&wb(n.parameters[0],e);return}else wb(r.parameters[0],e)}function wb(r,e){if(r.type==="Identifier"&&r.typeAnnotation&&r.typeAnnotation.type==="TSTypeAnnotation"){const t=r.typeAnnotation.typeAnnotation;if(t.type==="TSLiteralType")t.literal.type!=="UnaryExpression"&&e.add(String(t.literal.value));else if(t.type==="TSUnionType")for(const n of t.types)n.type==="TSLiteralType"&&n.literal.type!=="UnaryExpression"&&e.add(String(n.literal.value))}}function WM(r){return r.size?`
emits: [${Array.from(r).map(e=>JSON.stringify(e)).join(", ")}],`:""}function vs(r,e){return!!(r&&r.type==="CallExpression"&&r.callee.type==="Identifier"&&(typeof e=="string"?r.callee.name===e:e(r.callee.name)))}function Ik(r,e){if(vs(r,e))return!0;switch(r.type){case"UnaryExpression":case"BinaryExpression":case"ArrayExpression":case"ObjectExpression":case"FunctionExpression":case"ArrowFunctionExpression":case"UpdateExpression":case"ClassExpression":case"TaggedTemplateExpression":return!0;case"SequenceExpression":return Ik(r.expressions[r.expressions.length-1],e);default:return!!r.type.endsWith("Literal")}}function xb(r){for(const e of r)if(e.type==="ExportDefaultDeclaration"&&e.declaration.type==="ObjectExpression")return zM(e.declaration);return{}}function zM(r){const e={};Object.defineProperty(e,"__isScriptSetup",{enumerable:!1,value:!1});for(const t of r.properties)if(t.type==="ObjectProperty"&&!t.computed&&t.key.type==="Identifier"){if(t.key.name==="props")for(const n of f1(t.value))e[n]="props";else if(t.key.name==="inject")for(const n of f1(t.value))e[n]="options";else if(t.value.type==="ObjectExpression"&&(t.key.name==="computed"||t.key.name==="methods"))for(const n of c1(t.value))e[n]="options"}else if(t.type==="ObjectMethod"&&t.key.type==="Identifier"&&(t.key.name==="setup"||t.key.name==="data")){for(const n of t.body.body)if(n.type==="ReturnStatement"&&n.argument&&n.argument.type==="ObjectExpression")for(const s of c1(n.argument))e[s]=t.key.name==="setup"?"setup-maybe-ref":"data"}return e}function c1(r){const e=[];for(const t of r.properties)(t.type==="ObjectProperty"||t.type==="ObjectMethod")&&!t.computed&&(t.key.type==="Identifier"?e.push(t.key.name):t.key.type==="StringLiteral"&&e.push(t.key.value));return e}function HM(r){const e=[];for(const t of r.elements)t&&t.type==="StringLiteral"&&e.push(t.value);return e}function f1(r){return r.type==="ArrayExpression"?HM(r):r.type==="ObjectExpression"?c1(r):[]}const Sb=oS();function VM(r){const{content:e,ast:t}=r.template,n=Sb.get(e);if(n)return n;let s="";return xh(Ho([t]),{nodeTransforms:[a=>{if(a.type===1){!Ro.isNativeTag(a.tag)&&!Ro.isBuiltInComponent(a.tag)&&(s+=`,${Ss(a.tag)},${Sa(Ss(a.tag))}`);for(let l=0;l<a.props.length;l++){const u=a.props[l];u.type===7&&($M(u.name)||(s+=`,v${Sa(Ss(u.name))}`),u.exp&&(s+=`,${Ff(u.exp.content,u.name)}`))}}else a.type===5&&(s+=`,${Ff(a.content.content)}`)}]}),s+=";",Sb.set(e,s),s}const GM=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/;function Ff(r,e){if(/ as\s+\w|<.*>|:/.test(r)){if(e==="slot")r=`(${r})=>{}`;else if(e==="on")r=`()=>{${r}}`;else if(e==="for"){const s=r.match(GM);if(s){const[,a,l]=s;return Ff(`(${a})=>{}`)+Ff(l)}}let t="";const n=Sx(r,{plugins:["typescript"]});return Jo(n,s=>{t+=","+s.name}),t}return KM(r)}function KM(r){return r.replace(/'[^']*'|"[^"]*"/g,"").replace(/`[^`]+`/g,YM)}function YM(r){const e=r.match(/\${[^}]+}/g);return e?e.map(t=>t.slice(2,-1)).join(","):""}function Nk(r,e){return new RegExp(`[^\\w$_]${r.replace(/\$/g,"\\$")}[^\\w$_]`).test(VM(e))}function JM(r,e){if(!e.scriptSetup||e.scriptSetup.lang!=="ts"&&e.scriptSetup.lang!=="tsx")return!1;for(const t in r)if(!r[t].isUsedInTemplate&&Nk(t,e))return!0;return!1}const Ok="anonymous.vue",kb=oS();function XM(r,{sourceMap:e=!0,filename:t=Ok,sourceRoot:n="",pad:s=!1,ignoreEmpty:a=!0,compiler:l=Zx}={}){const u=r+e+t+n+s+l.parse,c=kb.get(u);if(c)return c;const m={filename:t,source:r,template:null,script:null,scriptSetup:null,styles:[],customBlocks:[],cssVars:[],slotted:!1,shouldForceReload:E=>JM(E,m)},g=[];if(l.parse(r,{isNativeTag:()=>!0,isPreTag:()=>!0,getTextMode:({tag:E,props:S},C)=>!C&&E!=="template"||E==="template"&&S.some(_=>_.type===6&&_.name==="lang"&&_.value&&_.value.content&&_.value.content!=="html")?2:0,onError:E=>{g.push(E)}}).children.forEach(E=>{if(E.type===1&&!(a&&E.tag!=="template"&&nD(E)&&!rD(E)))switch(E.tag){case"template":if(m.template)g.push(Tb(E));else{const A=m.template=$c(E,r,!1);if(A.ast=E,A.attrs.functional){const I=new SyntaxError("<template functional> is no longer supported in Vue 3, since functional components no longer have significant performance difference from stateful ones. Just use a normal <template> instead.");I.loc=E.props.find(M=>M.name==="functional").loc,g.push(I)}}break;case"script":const S=$c(E,r,s),C=!!S.attrs.setup;if(C&&!m.scriptSetup){m.scriptSetup=S;break}if(!C&&!m.script){m.script=S;break}g.push(Tb(E,C));break;case"style":const _=$c(E,r,s);_.attrs.vars&&g.push(new SyntaxError("<style vars> has been replaced by a new proposal: https://github.com/vuejs/rfcs/pull/231")),m.styles.push(_);break;default:m.customBlocks.push($c(E,r,s));break}}),m.scriptSetup&&(m.scriptSetup.src&&(g.push(new SyntaxError('<script setup> cannot use the "src" attribute because its syntax will be ambiguous outside of the component.')),m.scriptSetup=null),m.script&&m.script.src&&(g.push(new SyntaxError('<script> cannot use the "src" attribute when <script setup> is also present because they must be processed together.')),m.script=null)),e){const E=S=>{S&&!S.src&&(S.map=eD(t,r,S.content,n,!s||S.type==="template"?S.loc.start.line-1:0))};E(m.template),E(m.script),m.styles.forEach(E),m.customBlocks.forEach(E)}m.cssVars=FN(m);const b=/(?:::v-|:)slotted\(/;m.slotted=m.styles.some(E=>E.scoped&&b.test(E.content));const x={descriptor:m,errors:g};return kb.set(u,x),x}function Tb(r,e=!1){const t=new SyntaxError(`Single file component can contain only one <${r.tag}${e?" setup":""}> element`);return t.loc=r.loc,t}function $c(r,e,t){const n=r.tag;let{start:s,end:a}=r.loc,l="";if(r.children.length)s=r.children[0].loc.start,a=r.children[r.children.length-1].loc.end,l=e.slice(s.offset,a.offset);else{const g=r.loc.source.indexOf("</");g>-1&&(s={line:s.line,column:s.column+g,offset:s.offset+g}),a=Object.assign({},s)}const u={source:l,start:s,end:a},c={},m={type:n,content:l,loc:u,attrs:c};return t&&(m.content=tD(e,m,t)+m.content),r.props.forEach(g=>{g.type===6&&(c[g.name]=g.value&&g.value.content||!0,g.name==="lang"?m.lang=g.value&&g.value.content:g.name==="src"?m.src=g.value&&g.value.content:n==="style"?g.name==="scoped"?m.scoped=!0:g.name==="module"&&(m.module=c[g.name]):n==="script"&&g.name==="setup"&&(m.setup=c.setup))}),m}const Lk=/\r?\n/g,QM=/^(?:\/\/)?\s*$/,ZM=/./g;function eD(r,e,t,n,s){const a=new kh({file:r.replace(/\\/g,"/"),sourceRoot:n.replace(/\\/g,"/")});return a.setSourceContent(r,e),t.split(Lk).forEach((l,u)=>{if(!QM.test(l)){const c=u+1+s,m=u+1;for(let g=0;g<l.length;g++)/\s/.test(l[g])||a.addMapping({source:r,original:{line:c,column:g},generated:{line:m,column:g}})}}),JSON.parse(a.toString())}function tD(r,e,t){if(r=r.slice(0,e.loc.start.offset),t==="space")return r.replace(ZM," ");{const n=r.split(Lk).length,s=e.type==="script"&&!e.lang?`//
`:`
`;return Array(n).join(s)}}function rD(r){return r.props.some(e=>e.type!==6?!1:e.name==="src")}function nD(r){for(let e=0;e<r.children.length;e++){const t=r.children[e];if(t.type!==2||t.content.trim()!=="")return!1}return!0}function Mk(){return!1}function Dk(){throw new Error("tty.ReadStream is not implemented")}function Rk(){throw new Error("tty.ReadStream is not implemented")}var sD={isatty:Mk,ReadStream:Dk,WriteStream:Rk},iD=Object.freeze({__proto__:null,isatty:Mk,ReadStream:Dk,WriteStream:Rk,default:sD}),aD=Ju(iD);let oD=!("NO_COLOR"in{}||ko.argv.includes("--no-color"))&&("FORCE_COLOR"in{}||ko.argv.includes("--color")||!1||aD.isatty(1)&&{}.TERM!=="dumb"||"CI"in{}),nr=(r,e,t=r)=>n=>{let s=""+n,a=s.indexOf(e,r.length);return~a?r+Fk(s,e,t,a)+e:r+s+e},Fk=(r,e,t,n)=>{let s=r.substring(0,n)+t,a=r.substring(n+e.length),l=a.indexOf(e);return~l?s+Fk(a,e,t,l):s+a},Bk=(r=oD)=>({isColorSupported:r,reset:r?e=>`\x1B[0m${e}\x1B[0m`:String,bold:r?nr("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"):String,dim:r?nr("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"):String,italic:r?nr("\x1B[3m","\x1B[23m"):String,underline:r?nr("\x1B[4m","\x1B[24m"):String,inverse:r?nr("\x1B[7m","\x1B[27m"):String,hidden:r?nr("\x1B[8m","\x1B[28m"):String,strikethrough:r?nr("\x1B[9m","\x1B[29m"):String,black:r?nr("\x1B[30m","\x1B[39m"):String,red:r?nr("\x1B[31m","\x1B[39m"):String,green:r?nr("\x1B[32m","\x1B[39m"):String,yellow:r?nr("\x1B[33m","\x1B[39m"):String,blue:r?nr("\x1B[34m","\x1B[39m"):String,magenta:r?nr("\x1B[35m","\x1B[39m"):String,cyan:r?nr("\x1B[36m","\x1B[39m"):String,white:r?nr("\x1B[37m","\x1B[39m"):String,gray:r?nr("\x1B[90m","\x1B[39m"):String,bgBlack:r?nr("\x1B[40m","\x1B[49m"):String,bgRed:r?nr("\x1B[41m","\x1B[49m"):String,bgGreen:r?nr("\x1B[42m","\x1B[49m"):String,bgYellow:r?nr("\x1B[43m","\x1B[49m"):String,bgBlue:r?nr("\x1B[44m","\x1B[49m"):String,bgMagenta:r?nr("\x1B[45m","\x1B[49m"):String,bgCyan:r?nr("\x1B[46m","\x1B[49m"):String,bgWhite:r?nr("\x1B[47m","\x1B[49m"):String});var Ir=Bk(),lD=Bk;Ir.createColors=lD;const gd="'".charCodeAt(0),_b='"'.charCodeAt(0),jc="\\".charCodeAt(0),Eb="/".charCodeAt(0),Uc=`
`.charCodeAt(0),Wl=" ".charCodeAt(0),qc="\f".charCodeAt(0),Wc=" ".charCodeAt(0),zc="\r".charCodeAt(0),uD="[".charCodeAt(0),cD="]".charCodeAt(0),fD="(".charCodeAt(0),hD=")".charCodeAt(0),pD="{".charCodeAt(0),dD="}".charCodeAt(0),mD=";".charCodeAt(0),gD="*".charCodeAt(0),yD=":".charCodeAt(0),vD="@".charCodeAt(0),Hc=/[\t\n\f\r "#'()/;[\\\]{}]/g,Vc=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,bD=/.[\n"'(/\\]/,Ab=/[\da-f]/i;var $k=function(e,t={}){let n=e.css.valueOf(),s=t.ignoreErrors,a,l,u,c,m,g,v,b,x,E,S=n.length,C=0,_=[],A=[];function I(){return C}function M($){throw e.error("Unclosed "+$,C)}function O(){return A.length===0&&C>=S}function R($){if(A.length)return A.pop();if(C>=S)return;let B=$?$.ignoreUnclosed:!1;switch(a=n.charCodeAt(C),a){case Uc:case Wl:case Wc:case zc:case qc:{l=C;do l+=1,a=n.charCodeAt(l);while(a===Wl||a===Uc||a===Wc||a===zc||a===qc);E=["space",n.slice(C,l)],C=l-1;break}case uD:case cD:case pD:case dD:case yD:case mD:case hD:{let F=String.fromCharCode(a);E=[F,F,C];break}case fD:{if(b=_.length?_.pop()[1]:"",x=n.charCodeAt(C+1),b==="url"&&x!==gd&&x!==_b&&x!==Wl&&x!==Uc&&x!==Wc&&x!==qc&&x!==zc){l=C;do{if(g=!1,l=n.indexOf(")",l+1),l===-1)if(s||B){l=C;break}else M("bracket");for(v=l;n.charCodeAt(v-1)===jc;)v-=1,g=!g}while(g);E=["brackets",n.slice(C,l+1),C,l],C=l}else l=n.indexOf(")",C+1),c=n.slice(C,l+1),l===-1||bD.test(c)?E=["(","(",C]:(E=["brackets",c,C,l],C=l);break}case gd:case _b:{u=a===gd?"'":'"',l=C;do{if(g=!1,l=n.indexOf(u,l+1),l===-1)if(s||B){l=C+1;break}else M("string");for(v=l;n.charCodeAt(v-1)===jc;)v-=1,g=!g}while(g);E=["string",n.slice(C,l+1),C,l],C=l;break}case vD:{Hc.lastIndex=C+1,Hc.test(n),Hc.lastIndex===0?l=n.length-1:l=Hc.lastIndex-2,E=["at-word",n.slice(C,l+1),C,l],C=l;break}case jc:{for(l=C,m=!0;n.charCodeAt(l+1)===jc;)l+=1,m=!m;if(a=n.charCodeAt(l+1),m&&a!==Eb&&a!==Wl&&a!==Uc&&a!==Wc&&a!==zc&&a!==qc&&(l+=1,Ab.test(n.charAt(l)))){for(;Ab.test(n.charAt(l+1));)l+=1;n.charCodeAt(l+1)===Wl&&(l+=1)}E=["word",n.slice(C,l+1),C,l],C=l;break}default:{a===Eb&&n.charCodeAt(C+1)===gD?(l=n.indexOf("*/",C+2)+1,l===0&&(s||B?l=n.length:M("comment")),E=["comment",n.slice(C,l+1),C,l],C=l):(Vc.lastIndex=C+1,Vc.test(n),Vc.lastIndex===0?l=n.length-1:l=Vc.lastIndex-2,E=["word",n.slice(C,l+1),C,l],_.push(E),C=l);break}}return C++,E}function j($){A.push($)}return{back:j,nextToken:R,endOfFile:O,position:I}};let jk;function wD(r){jk=r}const xD={brackets:Ir.cyan,"at-word":Ir.cyan,comment:Ir.gray,string:Ir.green,class:Ir.yellow,hash:Ir.magenta,call:Ir.cyan,"(":Ir.cyan,")":Ir.cyan,"{":Ir.yellow,"}":Ir.yellow,"[":Ir.yellow,"]":Ir.yellow,":":Ir.yellow,";":Ir.yellow};function SD([r,e],t){if(r==="word"){if(e[0]===".")return"class";if(e[0]==="#")return"hash"}if(!t.endOfFile()){let n=t.nextToken();if(t.back(n),n[0]==="brackets"||n[0]==="(")return"call"}return r}function Uk(r){let e=$k(new jk(r),{ignoreErrors:!0}),t="";for(;!e.endOfFile();){let n=e.nextToken(),s=xD[SD(n,e)];s?t+=n[1].split(/\r?\n/).map(a=>s(a)).join(`
`):t+=n[1]}return t}Uk.registerInput=wD;var cu=Uk;class Nu extends Error{constructor(e,t,n,s,a,l){super(e),this.name="CssSyntaxError",this.reason=e,a&&(this.file=a),s&&(this.source=s),l&&(this.plugin=l),typeof t<"u"&&typeof n<"u"&&(typeof t=="number"?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Nu)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Ir.isColorSupported),cu&&e&&(t=cu(t));let n=t.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,n.length),l=String(a).length,u,c;if(e){let{bold:m,red:g,gray:v}=Ir.createColors(!0);u=b=>m(g(b)),c=b=>v(b)}else u=c=m=>m;return n.slice(s,a).map((m,g)=>{let v=s+1+g,b=" "+(" "+v).slice(-l)+" | ";if(v===this.line){let x=c(b.replace(/\d/g," "))+m.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+c(b)+m+`
`+x+u("^")}return" "+c(b)+m}).join(`
`)}toString(){let e=this.showSourceCode();return e&&(e=`
`+e+`
`),this.name+": "+this.message+e}}var Bf=Nu;Nu.default=Nu;var kD=Symbol("isClean"),TD=Symbol("my"),xg={isClean:kD,my:TD};const Cb={colon:": ",indent:" ",beforeDecl:`
`,beforeRule:`
`,beforeOpen:" ",beforeClose:`
`,beforeComment:`
`,after:`
`,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function _D(r){return r[0].toUpperCase()+r.slice(1)}class h1{constructor(e){this.builder=e}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}document(e){this.body(e)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),s=e.prop+n+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,t){let n="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:s&&(n+=" "),e.nodes)this.block(e,n+s);else{let a=(e.raws.between||"")+(t?";":"");this.builder(n+s+a,e)}}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let n=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let a=e.nodes[s],l=this.raw(a,"before");l&&this.builder(l),this.stringify(a,t!==s||n)}}block(e,t){let n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start");let s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")}raw(e,t,n){let s;if(n||(n=t),t&&(s=e.raws[t],typeof s<"u"))return s;let a=e.parent;if(n==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return Cb[n];let l=e.root();if(l.rawCache||(l.rawCache={}),typeof l.rawCache[n]<"u")return l.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let u="raw"+_D(n);this[u]?s=this[u](l,e):l.walk(c=>{if(s=c.raws[t],typeof s<"u")return!1})}return typeof s>"u"&&(s=Cb[n]),l.rawCache[n]=s,s}rawSemicolon(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t<"u"))return!1}),t}rawEmptyBody(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let s=n.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof n.raws.before<"u"){let a=n.raws.before.split(`
`);return t=a[a.length-1],t=t.replace(/\S/g,""),!1}}),t}rawBeforeComment(e,t){let n;return e.walkComments(s=>{if(typeof s.raws.before<"u")return n=s.raws.before,n.includes(`
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(s=>{if(typeof s.raws.before<"u")return n=s.raws.before,n.includes(`
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return t=n.raws.before,t.includes(`
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeClose(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return t=n.raws.after,t.includes(`
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeOpen(e){let t;return e.walk(n=>{if(n.type!=="decl"&&(t=n.raws.between,typeof t<"u"))return!1}),t}rawColon(e){let t;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return t=n.raws.between.replace(/[^\s:]/g,""),!1}),t}beforeAfter(e,t){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let s=e.parent,a=0;for(;s&&s.type!=="root";)a+=1,s=s.parent;if(n.includes(`
`)){let l=this.raw(e,null,"indent");if(l.length)for(let u=0;u<a;u++)n+=l}return n}rawValue(e,t){let n=e[t],s=e.raws[t];return s&&s.value===n?s.raw:n}}var qk=h1;h1.default=h1;function p1(r,e){new qk(e).stringify(r)}var Fh=p1;p1.default=p1;let{isClean:Gc,my:ED}=xg;function d1(r,e){let t=new r.constructor;for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n)||n==="proxyCache")continue;let s=r[n],a=typeof s;n==="parent"&&a==="object"?e&&(t[n]=e):n==="source"?t[n]=s:Array.isArray(s)?t[n]=s.map(l=>d1(l,t)):(a==="object"&&s!==null&&(s=d1(s)),t[n]=s)}return t}class m1{constructor(e={}){this.raws={},this[Gc]=!1,this[ED]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let n of e[t])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[t]=e[t]}error(e,t={}){if(this.source){let{start:n,end:s}=this.rangeBy(t);return this.source.input.error(e,{line:n.line,column:n.column},{line:s.line,column:s.column},t)}return new Bf(e)}warn(e,t,n){let s={node:this};for(let a in n)s[a]=n[a];return e.warn(t,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=Fh){e.stringify&&(e=e.stringify);let t="";return e(this,n=>{t+=n}),t}assign(e={}){for(let t in e)this[t]=e[t];return this}clone(e={}){let t=d1(this);for(let n in e)t[n]=e[n];return t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let s of e)s===this?n=!0:n?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);n||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}raw(e,t){return new qk().raw(this,e,t)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,t){let n={},s=t==null;t=t||new Map;let a=0;for(let l in this){if(!Object.prototype.hasOwnProperty.call(this,l)||l==="parent"||l==="proxyCache")continue;let u=this[l];if(Array.isArray(u))n[l]=u.map(c=>typeof c=="object"&&c.toJSON?c.toJSON(null,t):c);else if(typeof u=="object"&&u.toJSON)n[l]=u.toJSON(null,t);else if(l==="source"){let c=t.get(u.input);c==null&&(c=a,t.set(u.input,a),a++),n[l]={inputId:c,start:u.start,end:u.end}}else n[l]=u}return s&&(n.inputs=[...t.keys()].map(l=>l.toJSON())),n}positionInside(e){let t=this.toString(),n=this.source.start.column,s=this.source.start.line;for(let a=0;a<e;a++)t[a]===`
`?(n=1,s+=1):n+=1;return{line:s,column:n}}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n=this.toString().indexOf(e.word);n!==-1&&(t=this.positionInside(n))}return t}rangeBy(e){let t={line:this.source.start.line,column:this.source.start.column},n=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:t.line,column:t.column+1};if(e.word){let s=this.toString().indexOf(e.word);s!==-1&&(t=this.positionInside(s),n=this.positionInside(s+e.word.length))}else e.start?t={line:e.start.line,column:e.start.column}:e.index&&(t=this.positionInside(e.index)),e.end?n={line:e.end.line,column:e.end.column}:e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={line:t.line,column:t.column+1}),{start:t,end:n}}getProxyProcessor(){return{set(e,t,n){return e[t]===n||(e[t]=n,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0},get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}markDirty(){if(this[Gc]){this[Gc]=!1;let e=this;for(;e=e.parent;)e[Gc]=!1}}get proxyOf(){return this}}var Bh=m1;m1.default=m1;class g1 extends Bh{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}var nl=g1;g1.default=g1;var Pb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),AD=function(r){if(0<=r&&r<Pb.length)return Pb[r];throw new TypeError("Must be between 0 and 63: "+r)},CD=function(r){var e=65,t=90,n=97,s=122,a=48,l=57,u=43,c=47,m=26,g=52;return e<=r&&r<=t?r-e:n<=r&&r<=s?r-n+m:a<=r&&r<=l?r-a+g:r==u?62:r==c?63:-1},Wk={encode:AD,decode:CD},Sg=5,zk=1<<Sg,Hk=zk-1,Vk=zk;function PD(r){return r<0?(-r<<1)+1:(r<<1)+0}function ID(r){var e=(r&1)===1,t=r>>1;return e?-t:t}var ND=function(e){var t="",n,s=PD(e);do n=s&Hk,s>>>=Sg,s>0&&(n|=Vk),t+=Wk.encode(n);while(s>0);return t},OD=function(e,t,n){var s=e.length,a=0,l=0,u,c;do{if(t>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(c=Wk.decode(e.charCodeAt(t++)),c===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));u=!!(c&Vk),c&=Hk,a=a+(c<<l),l+=Sg}while(u);n.value=ID(a),n.rest=t},fo={encode:ND,decode:OD},Me=Nt(function(r,e){function t(B,F,H){if(F in B)return B[F];if(arguments.length===3)return H;throw new Error('"'+F+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,s=/^data:.+\,.+$/;function a(B){var F=B.match(n);return F?{scheme:F[1],auth:F[2],host:F[3],port:F[4],path:F[5]}:null}e.urlParse=a;function l(B){var F="";return B.scheme&&(F+=B.scheme+":"),F+="//",B.auth&&(F+=B.auth+"@"),B.host&&(F+=B.host),B.port&&(F+=":"+B.port),B.path&&(F+=B.path),F}e.urlGenerate=l;var u=32;function c(B){var F=[];return function(H){for(var V=0;V<F.length;V++)if(F[V].input===H){var X=F[0];return F[0]=F[V],F[V]=X,F[0].result}var J=B(H);return F.unshift({input:H,result:J}),F.length>u&&F.pop(),J}}var m=c(function(F){var H=F,V=a(F);if(V){if(!V.path)return F;H=V.path}for(var X=e.isAbsolute(H),J=[],D=0,ce=0;;)if(D=ce,ce=H.indexOf("/",D),ce===-1){J.push(H.slice(D));break}else for(J.push(H.slice(D,ce));ce<H.length&&H[ce]==="/";)ce++;for(var W,Z=0,ce=J.length-1;ce>=0;ce--)W=J[ce],W==="."?J.splice(ce,1):W===".."?Z++:Z>0&&(W===""?(J.splice(ce+1,Z),Z=0):(J.splice(ce,2),Z--));return H=J.join("/"),H===""&&(H=X?"/":"."),V?(V.path=H,l(V)):H});e.normalize=m;function g(B,F){B===""&&(B="."),F===""&&(F=".");var H=a(F),V=a(B);if(V&&(B=V.path||"/"),H&&!H.scheme)return V&&(H.scheme=V.scheme),l(H);if(H||F.match(s))return F;if(V&&!V.host&&!V.path)return V.host=F,l(V);var X=F.charAt(0)==="/"?F:m(B.replace(/\/+$/,"")+"/"+F);return V?(V.path=X,l(V)):X}e.join=g,e.isAbsolute=function(B){return B.charAt(0)==="/"||n.test(B)};function v(B,F){B===""&&(B="."),B=B.replace(/\/$/,"");for(var H=0;F.indexOf(B+"/")!==0;){var V=B.lastIndexOf("/");if(V<0||(B=B.slice(0,V),B.match(/^([^\/]+:\/)?\/*$/)))return F;++H}return Array(H+1).join("../")+F.substr(B.length+1)}e.relative=v;var b=function(){var B=Object.create(null);return!("__proto__"in B)}();function x(B){return B}function E(B){return C(B)?"$"+B:B}e.toSetString=b?x:E;function S(B){return C(B)?B.slice(1):B}e.fromSetString=b?x:S;function C(B){if(!B)return!1;var F=B.length;if(F<9||B.charCodeAt(F-1)!==95||B.charCodeAt(F-2)!==95||B.charCodeAt(F-3)!==111||B.charCodeAt(F-4)!==116||B.charCodeAt(F-5)!==111||B.charCodeAt(F-6)!==114||B.charCodeAt(F-7)!==112||B.charCodeAt(F-8)!==95||B.charCodeAt(F-9)!==95)return!1;for(var H=F-10;H>=0;H--)if(B.charCodeAt(H)!==36)return!1;return!0}function _(B,F,H){var V=O(B.source,F.source);return V!==0||(V=B.originalLine-F.originalLine,V!==0)||(V=B.originalColumn-F.originalColumn,V!==0||H)||(V=B.generatedColumn-F.generatedColumn,V!==0)||(V=B.generatedLine-F.generatedLine,V!==0)?V:O(B.name,F.name)}e.compareByOriginalPositions=_;function A(B,F,H){var V;return V=B.originalLine-F.originalLine,V!==0||(V=B.originalColumn-F.originalColumn,V!==0||H)||(V=B.generatedColumn-F.generatedColumn,V!==0)||(V=B.generatedLine-F.generatedLine,V!==0)?V:O(B.name,F.name)}e.compareByOriginalPositionsNoSource=A;function I(B,F,H){var V=B.generatedLine-F.generatedLine;return V!==0||(V=B.generatedColumn-F.generatedColumn,V!==0||H)||(V=O(B.source,F.source),V!==0)||(V=B.originalLine-F.originalLine,V!==0)||(V=B.originalColumn-F.originalColumn,V!==0)?V:O(B.name,F.name)}e.compareByGeneratedPositionsDeflated=I;function M(B,F,H){var V=B.generatedColumn-F.generatedColumn;return V!==0||H||(V=O(B.source,F.source),V!==0)||(V=B.originalLine-F.originalLine,V!==0)||(V=B.originalColumn-F.originalColumn,V!==0)?V:O(B.name,F.name)}e.compareByGeneratedPositionsDeflatedNoLine=M;function O(B,F){return B===F?0:B===null?1:F===null?-1:B>F?1:-1}function R(B,F){var H=B.generatedLine-F.generatedLine;return H!==0||(H=B.generatedColumn-F.generatedColumn,H!==0)||(H=O(B.source,F.source),H!==0)||(H=B.originalLine-F.originalLine,H!==0)||(H=B.originalColumn-F.originalColumn,H!==0)?H:O(B.name,F.name)}e.compareByGeneratedPositionsInflated=R;function j(B){return JSON.parse(B.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=j;function $(B,F,H){if(F=F||"",B&&(B[B.length-1]!=="/"&&F[0]!=="/"&&(B+="/"),F=B+F),H){var V=a(H);if(!V)throw new Error("sourceMapURL could not be parsed");if(V.path){var X=V.path.lastIndexOf("/");X>=0&&(V.path=V.path.substring(0,X+1))}F=g(l(V),F)}return m(F)}e.computeSourceURL=$}),kg=Object.prototype.hasOwnProperty,xa=typeof Map<"u";function ii(){this._array=[],this._set=xa?new Map:Object.create(null)}ii.fromArray=function(e,t){for(var n=new ii,s=0,a=e.length;s<a;s++)n.add(e[s],t);return n};ii.prototype.size=function(){return xa?this._set.size:Object.getOwnPropertyNames(this._set).length};ii.prototype.add=function(e,t){var n=xa?e:Me.toSetString(e),s=xa?this.has(e):kg.call(this._set,n),a=this._array.length;(!s||t)&&this._array.push(e),s||(xa?this._set.set(e,a):this._set[n]=a)};ii.prototype.has=function(e){if(xa)return this._set.has(e);var t=Me.toSetString(e);return kg.call(this._set,t)};ii.prototype.indexOf=function(e){if(xa){var t=this._set.get(e);if(t>=0)return t}else{var n=Me.toSetString(e);if(kg.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')};ii.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};ii.prototype.toArray=function(){return this._array.slice()};var LD=ii,Gk={ArraySet:LD};function MD(r,e){var t=r.generatedLine,n=e.generatedLine,s=r.generatedColumn,a=e.generatedColumn;return n>t||n==t&&a>=s||Me.compareByGeneratedPositionsInflated(r,e)<=0}function $h(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}$h.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)};$h.prototype.add=function(e){MD(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};$h.prototype.toArray=function(){return this._sorted||(this._array.sort(Me.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};var DD=$h,RD={MappingList:DD},$f=Gk.ArraySet,FD=RD.MappingList;function Hn(r){r||(r={}),this._file=Me.getArg(r,"file",null),this._sourceRoot=Me.getArg(r,"sourceRoot",null),this._skipValidation=Me.getArg(r,"skipValidation",!1),this._sources=new $f,this._names=new $f,this._mappings=new FD,this._sourcesContents=null}Hn.prototype._version=3;Hn.fromSourceMap=function(e){var t=e.sourceRoot,n=new Hn({file:e.file,sourceRoot:t});return e.eachMapping(function(s){var a={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(a.source=s.source,t!=null&&(a.source=Me.relative(t,a.source)),a.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(a.name=s.name)),n.addMapping(a)}),e.sources.forEach(function(s){var a=s;t!==null&&(a=Me.relative(t,s)),n._sources.has(a)||n._sources.add(a);var l=e.sourceContentFor(s);l!=null&&n.setSourceContent(s,l)}),n};Hn.prototype.addMapping=function(e){var t=Me.getArg(e,"generated"),n=Me.getArg(e,"original",null),s=Me.getArg(e,"source",null),a=Me.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,s,a),s!=null&&(s=String(s),this._sources.has(s)||this._sources.add(s)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:s,name:a})};Hn.prototype.setSourceContent=function(e,t){var n=e;this._sourceRoot!=null&&(n=Me.relative(this._sourceRoot,n)),t!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Me.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[Me.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Hn.prototype.applySourceMap=function(e,t,n){var s=t;if(t==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);s=e.file}var a=this._sourceRoot;a!=null&&(s=Me.relative(a,s));var l=new $f,u=new $f;this._mappings.unsortedForEach(function(c){if(c.source===s&&c.originalLine!=null){var m=e.originalPositionFor({line:c.originalLine,column:c.originalColumn});m.source!=null&&(c.source=m.source,n!=null&&(c.source=Me.join(n,c.source)),a!=null&&(c.source=Me.relative(a,c.source)),c.originalLine=m.line,c.originalColumn=m.column,m.name!=null&&(c.name=m.name))}var g=c.source;g!=null&&!l.has(g)&&l.add(g);var v=c.name;v!=null&&!u.has(v)&&u.add(v)},this),this._sources=l,this._names=u,e.sources.forEach(function(c){var m=e.sourceContentFor(c);m!=null&&(n!=null&&(c=Me.join(n,c)),a!=null&&(c=Me.relative(a,c)),this.setSourceContent(c,m))},this)};Hn.prototype._validateMapping=function(e,t,n,s){if(t&&typeof t.line!="number"&&typeof t.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!n&&!s)){if(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:s}))}};Hn.prototype._serializeMappings=function(){for(var e=0,t=1,n=0,s=0,a=0,l=0,u="",c,m,g,v,b=this._mappings.toArray(),x=0,E=b.length;x<E;x++){if(m=b[x],c="",m.generatedLine!==t)for(e=0;m.generatedLine!==t;)c+=";",t++;else if(x>0){if(!Me.compareByGeneratedPositionsInflated(m,b[x-1]))continue;c+=","}c+=fo.encode(m.generatedColumn-e),e=m.generatedColumn,m.source!=null&&(v=this._sources.indexOf(m.source),c+=fo.encode(v-l),l=v,c+=fo.encode(m.originalLine-1-s),s=m.originalLine-1,c+=fo.encode(m.originalColumn-n),n=m.originalColumn,m.name!=null&&(g=this._names.indexOf(m.name),c+=fo.encode(g-a),a=g)),u+=c}return u};Hn.prototype._generateSourcesContent=function(e,t){return e.map(function(n){if(!this._sourcesContents)return null;t!=null&&(n=Me.relative(t,n));var s=Me.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)};Hn.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};Hn.prototype.toString=function(){return JSON.stringify(this.toJSON())};var BD=Hn,Kk={SourceMapGenerator:BD},Tg=Nt(function(r,e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,s,a,l,u,c){var m=Math.floor((s-n)/2)+n,g=u(a,l[m],!0);return g===0?m:g>0?s-m>1?t(m,s,a,l,u,c):c==e.LEAST_UPPER_BOUND?s<l.length?s:-1:m:m-n>1?t(n,m,a,l,u,c):c==e.LEAST_UPPER_BOUND?m:n<0?-1:n}e.search=function(s,a,l,u){if(a.length===0)return-1;var c=t(-1,a.length,s,a,l,u||e.GREATEST_LOWER_BOUND);if(c<0)return-1;for(;c-1>=0&&l(a[c],a[c-1],!0)===0;)--c;return c}});function $D(r){function e(s,a,l){var u=s[a];s[a]=s[l],s[l]=u}function t(s,a){return Math.round(s+Math.random()*(a-s))}function n(s,a,l,u){if(l<u){var c=t(l,u),m=l-1;e(s,c,u);for(var g=s[u],v=l;v<u;v++)a(s[v],g,!1)<=0&&(m+=1,e(s,m,v));e(s,m+1,v);var b=m+1;n(s,a,l,b-1),n(s,a,b+1,u)}}return n}function jD(r){let e=$D.toString();return new Function(`return ${e}`)()(r)}let Ib=new WeakMap;var UD=function(r,e,t=0){let n=Ib.get(e);n===void 0&&(n=jD(e),Ib.set(e,n)),n(r,e,t,r.length-1)},qD={quickSort:UD},Bo=Gk.ArraySet,Ou=qD.quickSort;function er(r,e){var t=r;return typeof r=="string"&&(t=Me.parseSourceMapInput(r)),t.sections!=null?new os(t,e):new Vr(t,e)}er.fromSourceMap=function(r,e){return Vr.fromSourceMap(r,e)};er.prototype._version=3;er.prototype.__generatedMappings=null;Object.defineProperty(er.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});er.prototype.__originalMappings=null;Object.defineProperty(er.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});er.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return n===";"||n===","};er.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")};er.GENERATED_ORDER=1;er.ORIGINAL_ORDER=2;er.GREATEST_LOWER_BOUND=1;er.LEAST_UPPER_BOUND=2;er.prototype.eachMapping=function(e,t,n){var s=t||null,a=n||er.GENERATED_ORDER,l;switch(a){case er.GENERATED_ORDER:l=this._generatedMappings;break;case er.ORIGINAL_ORDER:l=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var u=this.sourceRoot,c=e.bind(s),m=this._names,g=this._sources,v=this._sourceMapURL,b=0,x=l.length;b<x;b++){var E=l[b],S=E.source===null?null:g.at(E.source);S=Me.computeSourceURL(u,S,v),c({source:S,generatedLine:E.generatedLine,generatedColumn:E.generatedColumn,originalLine:E.originalLine,originalColumn:E.originalColumn,name:E.name===null?null:m.at(E.name)})}};er.prototype.allGeneratedPositionsFor=function(e){var t=Me.getArg(e,"line"),n={source:Me.getArg(e,"source"),originalLine:t,originalColumn:Me.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var s=[],a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",Me.compareByOriginalPositions,Tg.LEAST_UPPER_BOUND);if(a>=0){var l=this._originalMappings[a];if(e.column===void 0)for(var u=l.originalLine;l&&l.originalLine===u;)s.push({line:Me.getArg(l,"generatedLine",null),column:Me.getArg(l,"generatedColumn",null),lastColumn:Me.getArg(l,"lastGeneratedColumn",null)}),l=this._originalMappings[++a];else for(var c=l.originalColumn;l&&l.originalLine===t&&l.originalColumn==c;)s.push({line:Me.getArg(l,"generatedLine",null),column:Me.getArg(l,"generatedColumn",null),lastColumn:Me.getArg(l,"lastGeneratedColumn",null)}),l=this._originalMappings[++a]}return s};var WD=er;function Vr(r,e){var t=r;typeof r=="string"&&(t=Me.parseSourceMapInput(r));var n=Me.getArg(t,"version"),s=Me.getArg(t,"sources"),a=Me.getArg(t,"names",[]),l=Me.getArg(t,"sourceRoot",null),u=Me.getArg(t,"sourcesContent",null),c=Me.getArg(t,"mappings"),m=Me.getArg(t,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);l&&(l=Me.normalize(l)),s=s.map(String).map(Me.normalize).map(function(g){return l&&Me.isAbsolute(l)&&Me.isAbsolute(g)?Me.relative(l,g):g}),this._names=Bo.fromArray(a.map(String),!0),this._sources=Bo.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(g){return Me.computeSourceURL(l,g,e)}),this.sourceRoot=l,this.sourcesContent=u,this._mappings=c,this._sourceMapURL=e,this.file=m}Vr.prototype=Object.create(er.prototype);Vr.prototype.consumer=er;Vr.prototype._findSourceIndex=function(r){var e=r;if(this.sourceRoot!=null&&(e=Me.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var t;for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==r)return t;return-1};Vr.fromSourceMap=function(e,t){var n=Object.create(Vr.prototype),s=n._names=Bo.fromArray(e._names.toArray(),!0),a=n._sources=Bo.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map(function(x){return Me.computeSourceURL(n.sourceRoot,x,t)});for(var l=e._mappings.toArray().slice(),u=n.__generatedMappings=[],c=n.__originalMappings=[],m=0,g=l.length;m<g;m++){var v=l[m],b=new Yk;b.generatedLine=v.generatedLine,b.generatedColumn=v.generatedColumn,v.source&&(b.source=a.indexOf(v.source),b.originalLine=v.originalLine,b.originalColumn=v.originalColumn,v.name&&(b.name=s.indexOf(v.name)),c.push(b)),u.push(b)}return Ou(n.__originalMappings,Me.compareByOriginalPositions),n};Vr.prototype._version=3;Object.defineProperty(Vr.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Yk(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}const yd=Me.compareByGeneratedPositionsDeflatedNoLine;function Nb(r,e){let t=r.length,n=r.length-e;if(!(n<=1))if(n==2){let s=r[e],a=r[e+1];yd(s,a)>0&&(r[e]=a,r[e+1]=s)}else if(n<20)for(let s=e;s<t;s++)for(let a=s;a>e;a--){let l=r[a-1],u=r[a];if(yd(l,u)<=0)break;r[a-1]=u,r[a]=l}else Ou(r,yd,e)}Vr.prototype._parseMappings=function(e,t){var n=1,s=0,a=0,l=0,u=0,c=0,m=e.length,g=0,v={},b=[],x=[],E,S,C,_;let A=0;for(;g<m;)if(e.charAt(g)===";")n++,g++,s=0,Nb(x,A),A=x.length;else if(e.charAt(g)===",")g++;else{for(E=new Yk,E.generatedLine=n,C=g;C<m&&!this._charIsMappingSeparator(e,C);C++);for(e.slice(g,C),S=[];g<C;)fo.decode(e,g,v),_=v.value,g=v.rest,S.push(_);if(S.length===2)throw new Error("Found a source, but no line and column");if(S.length===3)throw new Error("Found a source and line, but no column");if(E.generatedColumn=s+S[0],s=E.generatedColumn,S.length>1&&(E.source=u+S[1],u+=S[1],E.originalLine=a+S[2],a=E.originalLine,E.originalLine+=1,E.originalColumn=l+S[3],l=E.originalColumn,S.length>4&&(E.name=c+S[4],c+=S[4])),x.push(E),typeof E.originalLine=="number"){let M=E.source;for(;b.length<=M;)b.push(null);b[M]===null&&(b[M]=[]),b[M].push(E)}}Nb(x,A),this.__generatedMappings=x;for(var I=0;I<b.length;I++)b[I]!=null&&Ou(b[I],Me.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...b)};Vr.prototype._findMapping=function(e,t,n,s,a,l){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[s]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[s]);return Tg.search(e,t,a,l)};Vr.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}};Vr.prototype.originalPositionFor=function(e){var t={generatedLine:Me.getArg(e,"line"),generatedColumn:Me.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",Me.compareByGeneratedPositionsDeflated,Me.getArg(e,"bias",er.GREATEST_LOWER_BOUND));if(n>=0){var s=this._generatedMappings[n];if(s.generatedLine===t.generatedLine){var a=Me.getArg(s,"source",null);a!==null&&(a=this._sources.at(a),a=Me.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var l=Me.getArg(s,"name",null);return l!==null&&(l=this._names.at(l)),{source:a,line:Me.getArg(s,"originalLine",null),column:Me.getArg(s,"originalColumn",null),name:l}}}return{source:null,line:null,column:null,name:null}};Vr.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};Vr.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var s=e;this.sourceRoot!=null&&(s=Me.relative(this.sourceRoot,s));var a;if(this.sourceRoot!=null&&(a=Me.urlParse(this.sourceRoot))){var l=s.replace(/^file:\/\//,"");if(a.scheme=="file"&&this._sources.has(l))return this.sourcesContent[this._sources.indexOf(l)];if((!a.path||a.path=="/")&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(t)return null;throw new Error('"'+s+'" is not in the SourceMap.')};Vr.prototype.generatedPositionFor=function(e){var t=Me.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:Me.getArg(e,"line"),originalColumn:Me.getArg(e,"column")},s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",Me.compareByOriginalPositions,Me.getArg(e,"bias",er.GREATEST_LOWER_BOUND));if(s>=0){var a=this._originalMappings[s];if(a.source===n.source)return{line:Me.getArg(a,"generatedLine",null),column:Me.getArg(a,"generatedColumn",null),lastColumn:Me.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var zD=Vr;function os(r,e){var t=r;typeof r=="string"&&(t=Me.parseSourceMapInput(r));var n=Me.getArg(t,"version"),s=Me.getArg(t,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Bo,this._names=new Bo;var a={line:-1,column:0};this._sections=s.map(function(l){if(l.url)throw new Error("Support for url field in sections not implemented.");var u=Me.getArg(l,"offset"),c=Me.getArg(u,"line"),m=Me.getArg(u,"column");if(c<a.line||c===a.line&&m<a.column)throw new Error("Section offsets must be ordered and non-overlapping.");return a=u,{generatedOffset:{generatedLine:c+1,generatedColumn:m+1},consumer:new er(Me.getArg(l,"map"),e)}})}os.prototype=Object.create(er.prototype);os.prototype.constructor=er;os.prototype._version=3;Object.defineProperty(os.prototype,"sources",{get:function(){for(var r=[],e=0;e<this._sections.length;e++)for(var t=0;t<this._sections[e].consumer.sources.length;t++)r.push(this._sections[e].consumer.sources[t]);return r}});os.prototype.originalPositionFor=function(e){var t={generatedLine:Me.getArg(e,"line"),generatedColumn:Me.getArg(e,"column")},n=Tg.search(t,this._sections,function(a,l){var u=a.generatedLine-l.generatedOffset.generatedLine;return u||a.generatedColumn-l.generatedOffset.generatedColumn}),s=this._sections[n];return s?s.consumer.originalPositionFor({line:t.generatedLine-(s.generatedOffset.generatedLine-1),column:t.generatedColumn-(s.generatedOffset.generatedLine===t.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};os.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};os.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var s=this._sections[n],a=s.consumer.sourceContentFor(e,!0);if(a)return a}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')};os.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(n.consumer._findSourceIndex(Me.getArg(e,"source"))!==-1){var s=n.consumer.generatedPositionFor(e);if(s){var a={line:s.line+(n.generatedOffset.generatedLine-1),column:s.column+(n.generatedOffset.generatedLine===s.line?n.generatedOffset.generatedColumn-1:0)};return a}}}return{line:null,column:null}};os.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var s=this._sections[n],a=s.consumer._generatedMappings,l=0;l<a.length;l++){var u=a[l],c=s.consumer._sources.at(u.source);c=Me.computeSourceURL(s.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var m=null;u.name&&(m=s.consumer._names.at(u.name),this._names.add(m),m=this._names.indexOf(m));var g={source:c,generatedLine:u.generatedLine+(s.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(s.generatedOffset.generatedLine===u.generatedLine?s.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:m};this.__generatedMappings.push(g),typeof g.originalLine=="number"&&this.__originalMappings.push(g)}Ou(this.__generatedMappings,Me.compareByGeneratedPositionsDeflated),Ou(this.__originalMappings,Me.compareByOriginalPositions)};var HD=os,VD={SourceMapConsumer:WD,BasicSourceMapConsumer:zD,IndexedSourceMapConsumer:HD},GD=Kk.SourceMapGenerator,KD=/(\r?\n)/,YD=10,sl="$$$isSourceNode$$$";function Dn(r,e,t,n,s){this.children=[],this.sourceContents={},this.line=r==null?null:r,this.column=e==null?null:e,this.source=t==null?null:t,this.name=s==null?null:s,this[sl]=!0,n!=null&&this.add(n)}Dn.fromStringWithSourceMap=function(e,t,n){var s=new Dn,a=e.split(KD),l=0,u=function(){var b=E(),x=E()||"";return b+x;function E(){return l<a.length?a[l++]:void 0}},c=1,m=0,g=null;return t.eachMapping(function(b){if(g!==null)if(c<b.generatedLine)v(g,u()),c++,m=0;else{var x=a[l]||"",E=x.substr(0,b.generatedColumn-m);a[l]=x.substr(b.generatedColumn-m),m=b.generatedColumn,v(g,E),g=b;return}for(;c<b.generatedLine;)s.add(u()),c++;if(m<b.generatedColumn){var x=a[l]||"";s.add(x.substr(0,b.generatedColumn)),a[l]=x.substr(b.generatedColumn),m=b.generatedColumn}g=b},this),l<a.length&&(g&&v(g,u()),s.add(a.splice(l).join(""))),t.sources.forEach(function(b){var x=t.sourceContentFor(b);x!=null&&(n!=null&&(b=Me.join(n,b)),s.setSourceContent(b,x))}),s;function v(b,x){if(b===null||b.source===void 0)s.add(x);else{var E=n?Me.join(n,b.source):b.source;s.add(new Dn(b.originalLine,b.originalColumn,E,x,b.name))}}};Dn.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(t){this.add(t)},this);else if(e[sl]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Dn.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[sl]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Dn.prototype.walk=function(e){for(var t,n=0,s=this.children.length;n<s;n++)t=this.children[n],t[sl]?t.walk(e):t!==""&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})};Dn.prototype.join=function(e){var t,n,s=this.children.length;if(s>0){for(t=[],n=0;n<s-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this};Dn.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[sl]?n.replaceRight(e,t):typeof n=="string"?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this};Dn.prototype.setSourceContent=function(e,t){this.sourceContents[Me.toSetString(e)]=t};Dn.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][sl]&&this.children[t].walkSourceContents(e);for(var s=Object.keys(this.sourceContents),t=0,n=s.length;t<n;t++)e(Me.fromSetString(s[t]),this.sourceContents[s[t]])};Dn.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e};Dn.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new GD(e),s=!1,a=null,l=null,u=null,c=null;return this.walk(function(m,g){t.code+=m,g.source!==null&&g.line!==null&&g.column!==null?((a!==g.source||l!==g.line||u!==g.column||c!==g.name)&&n.addMapping({source:g.source,original:{line:g.line,column:g.column},generated:{line:t.line,column:t.column},name:g.name}),a=g.source,l=g.line,u=g.column,c=g.name,s=!0):s&&(n.addMapping({generated:{line:t.line,column:t.column}}),a=null,s=!1);for(var v=0,b=m.length;v<b;v++)m.charCodeAt(v)===YD?(t.line++,t.column=0,v+1===b?(a=null,s=!1):s&&n.addMapping({source:g.source,original:{line:g.line,column:g.column},generated:{line:t.line,column:t.column},name:g.name})):t.column++}),this.walkSourceContents(function(m,g){n.setSourceContent(m,g)}),{code:t.code,map:n}};var JD=Dn,XD={SourceNode:JD},QD=Kk.SourceMapGenerator,ZD=VD.SourceMapConsumer,eR=XD.SourceNode,_g={SourceMapGenerator:QD,SourceMapConsumer:ZD,SourceNode:eR};let tR="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",rR=(r,e)=>()=>{let t="",n=e;for(;n--;)t+=r[Math.random()*r.length|0];return t},nR=(r=21)=>{let e="",t=r;for(;t--;)e+=tR[Math.random()*64|0];return e};var sR={nanoid:nR,customAlphabet:rR};let{SourceMapConsumer:Ob,SourceMapGenerator:Lb}=_g,{existsSync:iR,readFileSync:aR}=CM,{dirname:vd,join:oR}=bg;function lR(r){return Ce?Ce.from(r,"base64").toString():window.atob(r)}class y1{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,s=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=vd(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new Ob(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,t){return e?e.substr(0,t.length)===t:!1}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),s=e.indexOf("*/",n);n>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,s)))}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return lR(e.substr(RegExp.lastMatch.length));let l=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+l)}loadFile(e){if(this.root=vd(e),iR(e))return this.mapFile=e,aR(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let n=t(e);if(n){let s=this.loadFile(n);if(!s)throw new Error("Unable to load previous source map: "+n.toString());return s}}else{if(t instanceof Ob)return Lb.fromSourceMap(t).toString();if(t instanceof Lb)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=oR(vd(e),n)),this.loadFile(n)}}}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}}var Jk=y1;y1.default=y1;var Xk=Ju(DL);let{SourceMapConsumer:uR,SourceMapGenerator:cR}=_g,{fileURLToPath:Mb,pathToFileURL:Kc}=Xk,{resolve:v1,isAbsolute:b1}=bg,{nanoid:fR}=sR,bd=Symbol("fromOffsetCache"),hR=Boolean(uR&&cR),Db=Boolean(v1&&b1);class jf{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Db||/^\w+:\/\//.test(t.from)||b1(t.from)?this.file=t.from:this.file=v1(t.from)),Db&&hR){let n=new Jk(this.css,t);if(n.text){this.map=n;let s=n.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+fR(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let t,n;if(this[bd])n=this[bd];else{let a=this.css.split(`
`);n=new Array(a.length);let l=0;for(let u=0,c=a.length;u<c;u++)n[u]=l,l+=a[u].length+1;this[bd]=n}t=n[n.length-1];let s=0;if(e>=t)s=n.length-1;else{let a=n.length-2,l;for(;s<a;)if(l=s+(a-s>>1),e<n[l])a=l-1;else if(e>=n[l+1])s=l+1;else{s=l;break}}return{line:s+1,col:e-n[s]+1}}error(e,t,n,s={}){let a,l,u;if(t&&typeof t=="object"){let m=t,g=n;if(typeof t.offset=="number"){let v=this.fromOffset(m.offset);t=v.line,n=v.col}else t=m.line,n=m.column;if(typeof g.offset=="number"){let v=this.fromOffset(g.offset);l=v.line,u=v.col}else l=g.line,u=g.column}else if(!n){let m=this.fromOffset(t);t=m.line,n=m.col}let c=this.origin(t,n,l,u);return c?a=new Bf(e,c.endLine===void 0?c.line:{line:c.line,column:c.column},c.endLine===void 0?c.column:{line:c.endLine,column:c.endColumn},c.source,c.file,s.plugin):a=new Bf(e,l===void 0?t:{line:t,column:n},l===void 0?n:{line:l,column:u},this.css,this.file,s.plugin),a.input={line:t,column:n,endLine:l,endColumn:u,source:this.css},this.file&&(Kc&&(a.input.url=Kc(this.file).toString()),a.input.file=this.file),a}origin(e,t,n,s){if(!this.map)return!1;let a=this.map.consumer(),l=a.originalPositionFor({line:e,column:t});if(!l.source)return!1;let u;typeof n=="number"&&(u=a.originalPositionFor({line:n,column:s}));let c;b1(l.source)?c=Kc(l.source):c=new URL(l.source,this.map.consumer().sourceRoot||Kc(this.map.mapFile));let m={url:c.toString(),line:l.line,column:l.column,endLine:u&&u.line,endColumn:u&&u.column};if(c.protocol==="file:")if(Mb)m.file=Mb(c);else throw new Error("file: protocol is not available in this PostCSS build");let g=a.sourceContentFor(l.source);return g&&(m.source=g),m}mapResolve(e){return/^\w+:\/\//.test(e)?e:v1(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}var jh=jf;jf.default=jf;cu&&cu.registerInput&&cu.registerInput(jf);let{SourceMapConsumer:Qk,SourceMapGenerator:ff}=_g,{dirname:hf,resolve:Zk,relative:eT,sep:tT}=bg,{pathToFileURL:Rb}=Xk,pR=Boolean(Qk&&ff),dR=Boolean(hf&&Zk&&eT&&tT);class mR{constructor(e,t,n,s){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=s}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new jh(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;n&&!e[n]&&(e[n]=!0,this.map.setSourceContent(this.toUrl(this.path(n)),t.source.input.css))}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||hf(e.file),s;this.mapOpts.sourcesContent===!1?(s=new Qk(e.text),s.sourcesContent&&(s.sourcesContent=s.sourcesContent.map(()=>null))):s=e.consumer(),this.map.applySourceMap(s,t,this.toUrl(this.path(n)))}}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}toBase64(e){return Ce?Ce.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
`;this.css.includes(`\r
`)&&(t=`\r
`),this.css+=t+"/*# sourceMappingURL="+e+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=ff.fromSourceMap(e)}else this.map=new ff({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",generated:{line:1,column:0},original:{line:1,column:0}});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(e){if(e.indexOf("<")===0||/^\w+:\/\//.test(e)||this.mapOpts.absolute)return e;let t=this.opts.to?hf(this.opts.to):".";return typeof this.mapOpts.annotation=="string"&&(t=hf(Zk(t,this.mapOpts.annotation))),e=eT(t,e),e}toUrl(e){return tT==="\\"&&(e=e.replace(/\\/g,"/")),encodeURI(e).replace(/[#?]/g,encodeURIComponent)}sourcePath(e){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);if(this.mapOpts.absolute){if(Rb)return Rb(e.source.input.from).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}else return this.toUrl(this.path(e.source.input.from))}generateString(){this.css="",this.map=new ff({file:this.outputFile()});let e=1,t=1,n="<no source>",s={source:"",generated:{line:0,column:0},original:{line:0,column:0}},a,l;this.stringify(this.root,(u,c,m)=>{if(this.css+=u,c&&m!=="end"&&(s.generated.line=e,s.generated.column=t-1,c.source&&c.source.start?(s.source=this.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,this.map.addMapping(s)):(s.source=n,s.original.line=1,s.original.column=0,this.map.addMapping(s))),a=u.match(/\n/g),a?(e+=a.length,l=u.lastIndexOf(`
`),t=u.length-l):t+=u.length,c&&m!=="start"){let g=c.parent||{raws:{}};(c.type!=="decl"||c!==g.last||g.raws.semicolon)&&(c.source&&c.source.end?(s.source=this.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=n,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}generate(){if(this.clearAnnotation(),dR&&pR&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}}var rT=mR;class w1 extends Bh{constructor(e){super(e),this.type="comment"}}var il=w1;w1.default=w1;let{isClean:nT,my:sT}=xg,iT,Eg,Ag;function aT(r){return r.map(e=>(e.nodes&&(e.nodes=aT(e.nodes)),delete e.source,e))}function oT(r){if(r[nT]=!1,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)oT(e)}class Cs extends Bh{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],s=e(this.proxyOf.nodes[n],n),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}walk(e){return this.each((t,n)=>{let s;try{s=e(t,n)}catch(a){throw t.addToError(a)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,s)=>{if(n.type==="decl"&&e.test(n.prop))return t(n,s)}):this.walk((n,s)=>{if(n.type==="decl"&&n.prop===e)return t(n,s)}):(t=e,this.walk((n,s)=>{if(n.type==="decl")return t(n,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,s)=>{if(n.type==="rule"&&e.test(n.selector))return t(n,s)}):this.walk((n,s)=>{if(n.type==="rule"&&n.selector===e)return t(n,s)}):(t=e,this.walk((n,s)=>{if(n.type==="rule")return t(n,s)}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,s)=>{if(n.type==="atrule"&&e.test(n.name))return t(n,s)}):this.walk((n,s)=>{if(n.type==="atrule"&&n.name===e)return t(n,s)}):(t=e,this.walk((n,s)=>{if(n.type==="atrule")return t(n,s)}))}walkComments(e){return this.walk((t,n)=>{if(t.type==="comment")return e(t,n)})}append(...e){for(let t of e){let n=this.normalize(t,this.last);for(let s of n)this.proxyOf.nodes.push(s)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let t of e){let n=this.normalize(t,this.first,"prepend").reverse();for(let s of n)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+n.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertBefore(e,t){e=this.index(e);let n=e===0?"prepend":!1,s=this.normalize(t,this.proxyOf.nodes[e],n).reverse();for(let l of s)this.proxyOf.nodes.splice(e,0,l);let a;for(let l in this.indexes)a=this.indexes[l],e<=a&&(this.indexes[l]=a+s.length);return this.markDirty(),this}insertAfter(e,t){e=this.index(e);let n=this.normalize(t,this.proxyOf.nodes[e]).reverse();for(let a of n)this.proxyOf.nodes.splice(e+1,0,a);let s;for(let a in this.indexes)s=this.indexes[a],e<s&&(this.indexes[a]=s+n.length);return this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,n))}),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}get first(){if(!!this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(!!this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,t){if(typeof e=="string")e=aT(iT(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new nl(e)]}else if(e.selector)e=[new Eg(e)];else if(e.name)e=[new Ag(e)];else if(e.text)e=[new il(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[sT]||Cs.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[nT]&&oT(s),typeof s.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this,s))}getProxyProcessor(){return{set(e,t,n){return e[t]===n||(e[t]=n,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0},get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...n)=>e[t](...n.map(s=>typeof s=="function"?(a,l)=>s(a.toProxy(),l):s)):t==="every"||t==="some"?n=>e[t]((s,...a)=>n(s.toProxy(),...a)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(n=>n.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]}}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}}Cs.registerParse=r=>{iT=r};Cs.registerRule=r=>{Eg=r};Cs.registerAtRule=r=>{Ag=r};var ui=Cs;Cs.default=Cs;Cs.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,Ag.prototype):r.type==="rule"?Object.setPrototypeOf(r,Eg.prototype):r.type==="decl"?Object.setPrototypeOf(r,nl.prototype):r.type==="comment"&&Object.setPrototypeOf(r,il.prototype),r[sT]=!0,r.nodes&&r.nodes.forEach(e=>{Cs.rebuild(e)})};let lT,uT;class Lu extends ui{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new lT(new uT,this,e).stringify()}}Lu.registerLazyResult=r=>{lT=r};Lu.registerProcessor=r=>{uT=r};var Uh=Lu;Lu.default=Lu;let Fb={};var cT=function(e){Fb[e]||(Fb[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};class x1{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in t)this[n]=t[n]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}var fT=x1;x1.default=x1;class S1{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new fT(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}}var Uf=S1;S1.default=S1;class qf extends ui{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}var qh=qf;qf.default=qf;ui.registerAtRule(qf);let hT,pT;class Mu extends ui{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}normalize(e,t,n){let s=super.normalize(e);if(t){if(n==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let a of s)a.raws.before=t.raws.before}return s}toResult(e={}){return new hT(new pT,this,e).stringify()}}Mu.registerLazyResult=r=>{hT=r};Mu.registerProcessor=r=>{pT=r};var al=Mu;Mu.default=Mu;let Du={split(r,e,t){let n=[],s="",a=!1,l=0,u=!1,c=!1;for(let m of r)c?c=!1:m==="\\"?c=!0:u?m===u&&(u=!1):m==='"'||m==="'"?u=m:m==="("?l+=1:m===")"?l>0&&(l-=1):l===0&&e.includes(m)&&(a=!0),a?(s!==""&&n.push(s.trim()),s="",a=!1):s+=m;return(t||s!=="")&&n.push(s.trim()),n},space(r){let e=[" ",`
`," "];return Du.split(r,e)},comma(r){return Du.split(r,[","],!0)}};var dT=Du;Du.default=Du;class Wf extends ui{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return dT.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}var Ru=Wf;Wf.default=Wf;ui.registerRule(Wf);class gR{constructor(e){this.input=e,this.root=new al,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=$k(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}comment(e){let t=new il;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]);let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let s=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}emptyRule(e){let t=new Ru;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}other(e){let t=!1,n=null,s=!1,a=null,l=[],u=e[1].startsWith("--"),c=[],m=e;for(;m;){if(n=m[0],c.push(m),n==="("||n==="[")a||(a=m),l.push(n==="("?")":"]");else if(u&&s&&n==="{")a||(a=m),l.push("}");else if(l.length===0)if(n===";")if(s){this.decl(c,u);return}else break;else if(n==="{"){this.rule(c);return}else if(n==="}"){this.tokenizer.back(c.pop()),t=!0;break}else n===":"&&(s=!0);else n===l[l.length-1]&&(l.pop(),l.length===0&&(a=null));m=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),l.length>0&&this.unclosedBracket(a),t&&s){for(;c.length&&(m=c[c.length-1][0],!(m!=="space"&&m!=="comment"));)this.tokenizer.back(c.pop());this.decl(c,u)}else this.unknownWord(c)}rule(e){e.pop();let t=new Ru;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}decl(e,t){let n=new nl;this.init(n,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]);e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){n.raws.between+=a[1];break}else a[0]==="word"&&/\w/.test(a[1])&&this.unknownWord([a]),n.raws.between+=a[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let l=this.spacesAndCommentsFromStart(e);this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(a=e[c],a[1].toLowerCase()==="!important"){n.important=!0;let m=this.stringFrom(e,c);m=this.spacesFromEnd(e)+m,m!==" !important"&&(n.raws.important=m);break}else if(a[1].toLowerCase()==="important"){let m=e.slice(0),g="";for(let v=c;v>0;v--){let b=m[v][0];if(g.trim().indexOf("!")===0&&b!=="space")break;g=m.pop()[1]+g}g.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=g,e=m)}if(a[0]!=="space"&&a[0]!=="comment")break}let u=e.some(c=>c[0]!=="space"&&c[0]!=="comment");this.raw(n,"value",e),u?n.raws.between+=l:n.value=l+n.value,n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}atrule(e){let t=new qh;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,s,a,l=!1,u=!1,c=[],m=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?m.push(n==="("?")":"]"):n==="{"&&m.length>0?m.push("}"):n===m[m.length-1]&&m.pop(),m.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),this.semicolon=!0;break}else if(n==="{"){u=!0;break}else if(n==="}"){if(c.length>0){for(a=c.length-1,s=c[a];s&&s[0]==="space";)s=c[--a];s&&(t.source.end=this.getPosition(s[3]||s[2]))}this.end(e);break}else c.push(e);else c.push(e);if(this.tokenizer.endOfFile()){l=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(t.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(t,"params",c),l&&(e=c[c.length-1],t.source.end=this.getPosition(e[3]||e[2]),this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),u&&(t.nodes=[],this.current=t)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e),e.source={start:this.getPosition(t),input:this.input},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}raw(e,t,n){let s,a,l=n.length,u="",c=!0,m,g,v=/^([#.|])?(\w)+/i;for(let b=0;b<l;b+=1){if(s=n[b],a=s[0],a==="comment"&&e.type==="rule"){g=n[b-1],m=n[b+1],g[0]!=="space"&&m[0]!=="space"&&v.test(g[1])&&v.test(m[1])?u+=s[1]:c=!1;continue}a==="comment"||a==="space"&&b===l-1?c=!1:u+=s[1]}if(!c){let b=n.reduce((x,E)=>x+E[1],"");e.raws[t]={value:u,raw:b}}e[t]=u}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let s=t;s<e.length;s++)n+=e[s][1];return e.splice(t,e.length-t),n}colon(e){let t=0,n,s,a;for(let[l,u]of e.entries()){if(n=u,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!a)this.doubleColon(n);else{if(a[0]==="word"&&a[1]==="progid")continue;return l}a=n}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,s;for(let a=t-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}}var yR=gR;function zf(r,e){let t=new jh(r,e),n=new yR(t);try{n.parse()}catch(s){throw s.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?s.message+=`
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?s.message+=`
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(s.message+=`
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),s}return n.root}var Cg=zf;zf.default=zf;ui.registerParse(zf);let{isClean:gs,my:vR}=xg;const bR={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},wR={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},xR={postcssPlugin:!0,prepare:!0,Once:!0},$o=0;function zl(r){return typeof r=="object"&&typeof r.then=="function"}function mT(r){let e=!1,t=bR[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,$o,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,$o,t+"Exit"]:[t,t+"Exit"]}function Bb(r){let e;return r.type==="document"?e=["Document",$o,"DocumentExit"]:r.type==="root"?e=["Root",$o,"RootExit"]:e=mT(r),{node:r,events:e,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function k1(r){return r[gs]=!1,r.nodes&&r.nodes.forEach(e=>k1(e)),r}let T1={};class ji{constructor(e,t,n){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=k1(t);else if(t instanceof ji||t instanceof Uf)s=k1(t.root),t.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let a=Cg;n.syntax&&(a=n.syntax.parse),n.parser&&(a=n.parser),a.parse&&(a=a.parse);try{s=a(t,n)}catch(l){this.processed=!0,this.error=l}s&&!s[vR]&&ui.rebuild(s)}this.result=new Uf(e,s,n),this.helpers={...T1,result:this.result,postcss:T1},this.plugins=this.processor.plugins.map(a=>typeof a=="object"&&a.prepare?{...a,...a.prepare(this.result)}:a)}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){return"from"in this.opts||cT("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(zl(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[gs];)e[gs]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Fh;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new rT(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}walkSync(e){e[gs]=!0;let t=mT(e);for(let n of t)if(n===$o)e.nodes&&e.each(s=>{s[gs]||this.walkSync(s)});else{let s=this.listeners[n];if(s&&this.visitSync(s,e.toProxy()))return}}visitSync(e,t){for(let[n,s]of e){this.result.lastPlugin=n;let a;try{a=s(t,this.helpers)}catch(l){throw this.handleError(l,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(zl(a))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return zl(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&{}.NODE_ENV!=="production"){let s=n.postcssPlugin,a=n.postcssVersion,l=this.result.processor.version,u=a.split("."),c=l.split(".");(u[0]!==c[0]||parseInt(u[1])>parseInt(c[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+l+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(s){console&&console.error&&console.error(s)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(zl(n))try{await n}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[gs];){e[gs]=!0;let t=[Bb(e)];for(;t.length>0;){let n=this.visitTick(t);if(zl(n))try{await n}catch(s){let a=t[t.length-1].node;throw this.handleError(s,a)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(a=>n(a,this.helpers));await Promise.all(s)}else await n(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(t,n,s)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!wR[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!xR[n])if(typeof t[n]=="object")for(let s in t[n])s==="*"?e(t,n,t[n][s]):e(t,n+"-"+s.toLowerCase(),t[n][s]);else typeof t[n]=="function"&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1],{node:n,visitors:s}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[l,u]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=l;try{return u(n.toProxy(),this.helpers)}catch(c){throw this.handleError(c,n)}}if(t.iterator!==0){let l=t.iterator,u;for(;u=n.nodes[n.indexes[l]];)if(n.indexes[l]+=1,!u[gs]){u[gs]=!0,e.push(Bb(u));return}t.iterator=0,delete n.indexes[l]}let a=t.events;for(;t.eventIndex<a.length;){let l=a[t.eventIndex];if(t.eventIndex+=1,l===$o){n.nodes&&n.nodes.length&&(n[gs]=!0,t.iterator=n.getIterator());return}else if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()}}ji.registerPostcss=r=>{T1=r};var gT=ji;ji.default=ji;al.registerLazyResult(ji);Uh.registerLazyResult(ji);class _1{constructor(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let s,a=Fh;this.result=new Uf(this._processor,s,this._opts),this.result.css=t;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let u=new rT(a,s,this._opts,t);if(u.isMap()){let[c,m]=u.generate();c&&(this.result.css=c),m&&(this.result.map=m)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,t=Cg;try{e=t(this._css,this._opts)}catch(n){this.error=n}return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,t){return"from"in this._opts||cT("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}}var SR=_1;_1.default=_1;class Fu{constructor(e=[]){this.version="8.4.4",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,t={}){return this.plugins.length===0&&typeof t.parser>"u"&&typeof t.stringifier>"u"&&typeof t.syntax>"u"?new SR(this,e,t):new gT(this,e,t)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)t.push(n);else if(typeof n=="function")t.push(n);else throw typeof n=="object"&&(n.parse||n.stringify)?new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation."):new Error(n+" is not a PostCSS plugin");return t}}var Pg=Fu;Fu.default=Fu;al.registerProcessor(Fu);Uh.registerProcessor(Fu);function Bu(r,e){if(Array.isArray(r))return r.map(s=>Bu(s));let{inputs:t,...n}=r;if(t){e=[];for(let s of t){let a={...s,__proto__:jh.prototype};a.map&&(a.map={...a.map,__proto__:Jk.prototype}),e.push(a)}}if(n.nodes&&(n.nodes=r.nodes.map(s=>Bu(s,e))),n.source){let{inputId:s,...a}=n.source;n.source=a,s!=null&&(n.source.input=e[s])}if(n.type==="root")return new al(n);if(n.type==="decl")return new nl(n);if(n.type==="rule")return new Ru(n);if(n.type==="comment")return new il(n);if(n.type==="atrule")return new qh(n);throw new Error("Unknown node type: "+r.type)}var kR=Bu;Bu.default=Bu;function Ut(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new Pg(r)}Ut.plugin=function(e,t){console&&console.warn&&console.warn(e+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`);function n(...a){let l=t(...a);return l.postcssPlugin=e,l.postcssVersion=new Pg().version,l}let s;return Object.defineProperty(n,"postcss",{get(){return s||(s=n()),s}}),n.process=function(a,l,u){return Ut([n(u)]).process(a,l)},n};Ut.stringify=Fh;Ut.parse=Cg;Ut.fromJSON=kR;Ut.list=dT;Ut.comment=r=>new il(r);Ut.atRule=r=>new qh(r);Ut.decl=r=>new nl(r);Ut.rule=r=>new Ru(r);Ut.root=r=>new al(r);Ut.document=r=>new Uh(r);Ut.CssSyntaxError=Bf;Ut.Declaration=nl;Ut.Container=ui;Ut.Processor=Pg;Ut.Document=Uh;Ut.Comment=il;Ut.Warning=fT;Ut.AtRule=qh;Ut.Result=Uf;Ut.Input=jh;Ut.Rule=Ru;Ut.Root=al;Ut.Node=Bh;gT.registerPostcss(Ut);var TR=Ut;Ut.default=Ut;const yT=()=>({postcssPlugin:"vue-sfc-trim",Once(r){r.walk(({type:e,raws:t})=>{(e==="rule"||e==="atrule")&&(t.before&&(t.before=`
`),"after"in t&&t.after&&(t.after=`
`))})}});yT.postcss=!0;var vT=Nt(function(r,e){e.__esModule=!0,e.default=s;function t(a){for(var l=a.toLowerCase(),u="",c=!1,m=0;m<6&&l[m]!==void 0;m++){var g=l.charCodeAt(m),v=g>=97&&g<=102||g>=48&&g<=57;if(c=g===32,!v)break;u+=l[m]}if(u.length!==0){var b=parseInt(u,16),x=b>=55296&&b<=57343;return x||b===0||b>1114111?["\uFFFD",u.length+(c?1:0)]:[String.fromCodePoint(b),u.length+(c?1:0)]}}var n=/\\/;function s(a){var l=n.test(a);if(!l)return a;for(var u="",c=0;c<a.length;c++){if(a[c]==="\\"){var m=t(a.slice(c+1,c+7));if(m!==void 0){u+=m[0],c+=m[1];continue}if(a[c+1]==="\\"){u+="\\",c++;continue}a.length===c+1&&(u+=a[c]);continue}u+=a[c]}return u}r.exports=e.default}),_R=Nt(function(r,e){e.__esModule=!0,e.default=t;function t(n){for(var s=arguments.length,a=new Array(s>1?s-1:0),l=1;l<s;l++)a[l-1]=arguments[l];for(;a.length>0;){var u=a.shift();if(!n[u])return;n=n[u]}return n}r.exports=e.default}),ER=Nt(function(r,e){e.__esModule=!0,e.default=t;function t(n){for(var s=arguments.length,a=new Array(s>1?s-1:0),l=1;l<s;l++)a[l-1]=arguments[l];for(;a.length>0;){var u=a.shift();n[u]||(n[u]={}),n=n[u]}}r.exports=e.default}),AR=Nt(function(r,e){e.__esModule=!0,e.default=t;function t(n){for(var s="",a=n.indexOf("/*"),l=0;a>=0;){s=s+n.slice(l,a);var u=n.indexOf("*/",a+2);if(u<0)return s;l=u+2,a=n.indexOf("/*",l)}return s=s+n.slice(l),s}r.exports=e.default}),Wt=Nt(function(r,e){e.__esModule=!0,e.stripComments=e.ensureObject=e.getProp=e.unesc=void 0;var t=l(vT);e.unesc=t.default;var n=l(_R);e.getProp=n.default;var s=l(ER);e.ensureObject=s.default;var a=l(AR);e.stripComments=a.default;function l(u){return u&&u.__esModule?u:{default:u}}}),Hi=Nt(function(r,e){e.__esModule=!0,e.default=void 0;function t(l,u){for(var c=0;c<u.length;c++){var m=u[c];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(l,m.key,m)}}function n(l,u,c){return u&&t(l.prototype,u),c&&t(l,c),l}var s=function l(u,c){if(typeof u!="object"||u===null)return u;var m=new u.constructor;for(var g in u)if(!!u.hasOwnProperty(g)){var v=u[g],b=typeof v;g==="parent"&&b==="object"?c&&(m[g]=c):v instanceof Array?m[g]=v.map(function(x){return l(x,m)}):m[g]=l(v,m)}return m},a=function(){function l(c){c===void 0&&(c={}),Object.assign(this,c),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var u=l.prototype;return u.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},u.replaceWith=function(){if(this.parent){for(var m in arguments)this.parent.insertBefore(this,arguments[m]);this.remove()}return this},u.next=function(){return this.parent.at(this.parent.index(this)+1)},u.prev=function(){return this.parent.at(this.parent.index(this)-1)},u.clone=function(m){m===void 0&&(m={});var g=s(this);for(var v in m)g[v]=m[v];return g},u.appendToPropertyAndEscape=function(m,g,v){this.raws||(this.raws={});var b=this[m],x=this.raws[m];this[m]=b+g,x||v!==g?this.raws[m]=(x||b)+v:delete this.raws[m]},u.setPropertyAndEscape=function(m,g,v){this.raws||(this.raws={}),this[m]=g,this.raws[m]=v},u.setPropertyWithoutEscape=function(m,g){this[m]=g,this.raws&&delete this.raws[m]},u.isAtPosition=function(m,g){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>m||this.source.end.line<m||this.source.start.line===m&&this.source.start.column>g||this.source.end.line===m&&this.source.end.column<g)},u.stringifyProperty=function(m){return this.raws&&this.raws[m]||this[m]},u.valueToString=function(){return String(this.stringifyProperty("value"))},u.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},n(l,[{key:"rawSpaceBefore",get:function(){var m=this.raws&&this.raws.spaces&&this.raws.spaces.before;return m===void 0&&(m=this.spaces&&this.spaces.before),m||""},set:function(m){(0,Wt.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=m}},{key:"rawSpaceAfter",get:function(){var m=this.raws&&this.raws.spaces&&this.raws.spaces.after;return m===void 0&&(m=this.spaces.after),m||""},set:function(m){(0,Wt.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=m}}]),l}();e.default=a,r.exports=e.default}),wt=Nt(function(r,e){e.__esModule=!0,e.UNIVERSAL=e.ATTRIBUTE=e.CLASS=e.COMBINATOR=e.COMMENT=e.ID=e.NESTING=e.PSEUDO=e.ROOT=e.SELECTOR=e.STRING=e.TAG=void 0;var t="tag";e.TAG=t;var n="string";e.STRING=n;var s="selector";e.SELECTOR=s;var a="root";e.ROOT=a;var l="pseudo";e.PSEUDO=l;var u="nesting";e.NESTING=u;var c="id";e.ID=c;var m="comment";e.COMMENT=m;var g="combinator";e.COMBINATOR=g;var v="class";e.CLASS=v;var b="attribute";e.ATTRIBUTE=b;var x="universal";e.UNIVERSAL=x}),Ig=Nt(function(r,e){e.__esModule=!0,e.default=void 0;var t=l(Hi),n=a(wt);function s(){if(typeof WeakMap!="function")return null;var S=new WeakMap;return s=function(){return S},S}function a(S){if(S&&S.__esModule)return S;if(S===null||typeof S!="object"&&typeof S!="function")return{default:S};var C=s();if(C&&C.has(S))return C.get(S);var _={},A=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in S)if(Object.prototype.hasOwnProperty.call(S,I)){var M=A?Object.getOwnPropertyDescriptor(S,I):null;M&&(M.get||M.set)?Object.defineProperty(_,I,M):_[I]=S[I]}return _.default=S,C&&C.set(S,_),_}function l(S){return S&&S.__esModule?S:{default:S}}function u(S,C){var _;if(typeof Symbol>"u"||S[Symbol.iterator]==null){if(Array.isArray(S)||(_=c(S))||C&&S&&typeof S.length=="number"){_&&(S=_);var A=0;return function(){return A>=S.length?{done:!0}:{done:!1,value:S[A++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return _=S[Symbol.iterator](),_.next.bind(_)}function c(S,C){if(!!S){if(typeof S=="string")return m(S,C);var _=Object.prototype.toString.call(S).slice(8,-1);if(_==="Object"&&S.constructor&&(_=S.constructor.name),_==="Map"||_==="Set")return Array.from(S);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return m(S,C)}}function m(S,C){(C==null||C>S.length)&&(C=S.length);for(var _=0,A=new Array(C);_<C;_++)A[_]=S[_];return A}function g(S,C){for(var _=0;_<C.length;_++){var A=C[_];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(S,A.key,A)}}function v(S,C,_){return C&&g(S.prototype,C),_&&g(S,_),S}function b(S,C){S.prototype=Object.create(C.prototype),S.prototype.constructor=S,x(S,C)}function x(S,C){return x=Object.setPrototypeOf||function(A,I){return A.__proto__=I,A},x(S,C)}var E=function(S){b(C,S);function C(A){var I;return I=S.call(this,A)||this,I.nodes||(I.nodes=[]),I}var _=C.prototype;return _.append=function(I){return I.parent=this,this.nodes.push(I),this},_.prepend=function(I){return I.parent=this,this.nodes.unshift(I),this},_.at=function(I){return this.nodes[I]},_.index=function(I){return typeof I=="number"?I:this.nodes.indexOf(I)},_.removeChild=function(I){I=this.index(I),this.at(I).parent=void 0,this.nodes.splice(I,1);var M;for(var O in this.indexes)M=this.indexes[O],M>=I&&(this.indexes[O]=M-1);return this},_.removeAll=function(){for(var I=u(this.nodes),M;!(M=I()).done;){var O=M.value;O.parent=void 0}return this.nodes=[],this},_.empty=function(){return this.removeAll()},_.insertAfter=function(I,M){M.parent=this;var O=this.index(I);this.nodes.splice(O+1,0,M),M.parent=this;var R;for(var j in this.indexes)R=this.indexes[j],O<=R&&(this.indexes[j]=R+1);return this},_.insertBefore=function(I,M){M.parent=this;var O=this.index(I);this.nodes.splice(O,0,M),M.parent=this;var R;for(var j in this.indexes)R=this.indexes[j],R<=O&&(this.indexes[j]=R+1);return this},_._findChildAtPosition=function(I,M){var O=void 0;return this.each(function(R){if(R.atPosition){var j=R.atPosition(I,M);if(j)return O=j,!1}else if(R.isAtPosition(I,M))return O=R,!1}),O},_.atPosition=function(I,M){if(this.isAtPosition(I,M))return this._findChildAtPosition(I,M)||this},_._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},_.each=function(I){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var M=this.lastEach;if(this.indexes[M]=0,!!this.length){for(var O,R;this.indexes[M]<this.length&&(O=this.indexes[M],R=I(this.at(O),O),R!==!1);)this.indexes[M]+=1;if(delete this.indexes[M],R===!1)return!1}},_.walk=function(I){return this.each(function(M,O){var R=I(M,O);if(R!==!1&&M.length&&(R=M.walk(I)),R===!1)return!1})},_.walkAttributes=function(I){var M=this;return this.walk(function(O){if(O.type===n.ATTRIBUTE)return I.call(M,O)})},_.walkClasses=function(I){var M=this;return this.walk(function(O){if(O.type===n.CLASS)return I.call(M,O)})},_.walkCombinators=function(I){var M=this;return this.walk(function(O){if(O.type===n.COMBINATOR)return I.call(M,O)})},_.walkComments=function(I){var M=this;return this.walk(function(O){if(O.type===n.COMMENT)return I.call(M,O)})},_.walkIds=function(I){var M=this;return this.walk(function(O){if(O.type===n.ID)return I.call(M,O)})},_.walkNesting=function(I){var M=this;return this.walk(function(O){if(O.type===n.NESTING)return I.call(M,O)})},_.walkPseudos=function(I){var M=this;return this.walk(function(O){if(O.type===n.PSEUDO)return I.call(M,O)})},_.walkTags=function(I){var M=this;return this.walk(function(O){if(O.type===n.TAG)return I.call(M,O)})},_.walkUniversals=function(I){var M=this;return this.walk(function(O){if(O.type===n.UNIVERSAL)return I.call(M,O)})},_.split=function(I){var M=this,O=[];return this.reduce(function(R,j,$){var B=I.call(M,j);return O.push(j),B?(R.push(O),O=[]):$===M.length-1&&R.push(O),R},[])},_.map=function(I){return this.nodes.map(I)},_.reduce=function(I,M){return this.nodes.reduce(I,M)},_.every=function(I){return this.nodes.every(I)},_.some=function(I){return this.nodes.some(I)},_.filter=function(I){return this.nodes.filter(I)},_.sort=function(I){return this.nodes.sort(I)},_.toString=function(){return this.map(String).join("")},v(C,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),C}(t.default);e.default=E,r.exports=e.default}),bT=Nt(function(r,e){e.__esModule=!0,e.default=void 0;var t=n(Ig);function n(m){return m&&m.__esModule?m:{default:m}}function s(m,g){for(var v=0;v<g.length;v++){var b=g[v];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(m,b.key,b)}}function a(m,g,v){return g&&s(m.prototype,g),v&&s(m,v),m}function l(m,g){m.prototype=Object.create(g.prototype),m.prototype.constructor=m,u(m,g)}function u(m,g){return u=Object.setPrototypeOf||function(b,x){return b.__proto__=x,b},u(m,g)}var c=function(m){l(g,m);function g(b){var x;return x=m.call(this,b)||this,x.type=wt.ROOT,x}var v=g.prototype;return v.toString=function(){var x=this.reduce(function(E,S){return E.push(String(S)),E},[]).join(",");return this.trailingComma?x+",":x},v.error=function(x,E){return this._error?this._error(x,E):new Error(x)},a(g,[{key:"errorGenerator",set:function(x){this._error=x}}]),g}(t.default);e.default=c,r.exports=e.default}),wT=Nt(function(r,e){e.__esModule=!0,e.default=void 0;var t=n(Ig);function n(u){return u&&u.__esModule?u:{default:u}}function s(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,a(u,c)}function a(u,c){return a=Object.setPrototypeOf||function(g,v){return g.__proto__=v,g},a(u,c)}var l=function(u){s(c,u);function c(m){var g;return g=u.call(this,m)||this,g.type=wt.SELECTOR,g}return c}(t.default);e.default=l,r.exports=e.default});/*! https://mths.be/cssesc v3.0.0 by @mathias */var CR={},PR=CR.hasOwnProperty,IR=function(e,t){if(!e)return t;var n={};for(var s in t)n[s]=PR.call(e,s)?e[s]:t[s];return n},NR=/[ -,\.\/:-@\[-\^`\{-~]/,OR=/[ -,\.\/:-@\[\]\^`\{-~]/,LR=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Ng=function r(e,t){t=IR(t,r.options),t.quotes!="single"&&t.quotes!="double"&&(t.quotes="single");for(var n=t.quotes=="double"?'"':"'",s=t.isIdentifier,a=e.charAt(0),l="",u=0,c=e.length;u<c;){var m=e.charAt(u++),g=m.charCodeAt(),v=void 0;if(g<32||g>126){if(g>=55296&&g<=56319&&u<c){var b=e.charCodeAt(u++);(b&64512)==56320?g=((g&1023)<<10)+(b&1023)+65536:u--}v="\\"+g.toString(16).toUpperCase()+" "}else t.escapeEverything?NR.test(m)?v="\\"+m:v="\\"+g.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(m)?v="\\"+g.toString(16).toUpperCase()+" ":m=="\\"||!s&&(m=='"'&&n==m||m=="'"&&n==m)||s&&OR.test(m)?v="\\"+m:v=m;l+=v}return s&&(/^-[-\d]/.test(l)?l="\\-"+l.slice(1):/\d/.test(a)&&(l="\\3"+a+" "+l.slice(1))),l=l.replace(LR,function(x,E,S){return E&&E.length%2?x:(E||"")+S}),!s&&t.wrap?n+l+n:l};Ng.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};Ng.version="3.0.0";var Og=Ng,xT=Nt(function(r,e){e.__esModule=!0,e.default=void 0;var t=s(Og),n=s(Hi);function s(g){return g&&g.__esModule?g:{default:g}}function a(g,v){for(var b=0;b<v.length;b++){var x=v[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(g,x.key,x)}}function l(g,v,b){return v&&a(g.prototype,v),b&&a(g,b),g}function u(g,v){g.prototype=Object.create(v.prototype),g.prototype.constructor=g,c(g,v)}function c(g,v){return c=Object.setPrototypeOf||function(x,E){return x.__proto__=E,x},c(g,v)}var m=function(g){u(v,g);function v(x){var E;return E=g.call(this,x)||this,E.type=wt.CLASS,E._constructed=!0,E}var b=v.prototype;return b.valueToString=function(){return"."+g.prototype.valueToString.call(this)},l(v,[{key:"value",get:function(){return this._value},set:function(E){if(this._constructed){var S=(0,t.default)(E,{isIdentifier:!0});S!==E?((0,Wt.ensureObject)(this,"raws"),this.raws.value=S):this.raws&&delete this.raws.value}this._value=E}}]),v}(n.default);e.default=m,r.exports=e.default}),ST=Nt(function(r,e){e.__esModule=!0,e.default=void 0;var t=n(Hi);function n(u){return u&&u.__esModule?u:{default:u}}function s(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,a(u,c)}function a(u,c){return a=Object.setPrototypeOf||function(g,v){return g.__proto__=v,g},a(u,c)}var l=function(u){s(c,u);function c(m){var g;return g=u.call(this,m)||this,g.type=wt.COMMENT,g}return c}(t.default);e.default=l,r.exports=e.default}),kT=Nt(function(r,e){e.__esModule=!0,e.default=void 0;var t=n(Hi);function n(u){return u&&u.__esModule?u:{default:u}}function s(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,a(u,c)}function a(u,c){return a=Object.setPrototypeOf||function(g,v){return g.__proto__=v,g},a(u,c)}var l=function(u){s(c,u);function c(g){var v;return v=u.call(this,g)||this,v.type=wt.ID,v}var m=c.prototype;return m.valueToString=function(){return"#"+u.prototype.valueToString.call(this)},c}(t.default);e.default=l,r.exports=e.default}),Lg=Nt(function(r,e){e.__esModule=!0,e.default=void 0;var t=s(Og),n=s(Hi);function s(g){return g&&g.__esModule?g:{default:g}}function a(g,v){for(var b=0;b<v.length;b++){var x=v[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(g,x.key,x)}}function l(g,v,b){return v&&a(g.prototype,v),b&&a(g,b),g}function u(g,v){g.prototype=Object.create(v.prototype),g.prototype.constructor=g,c(g,v)}function c(g,v){return c=Object.setPrototypeOf||function(x,E){return x.__proto__=E,x},c(g,v)}var m=function(g){u(v,g);function v(){return g.apply(this,arguments)||this}var b=v.prototype;return b.qualifiedName=function(E){return this.namespace?this.namespaceString+"|"+E:E},b.valueToString=function(){return this.qualifiedName(g.prototype.valueToString.call(this))},l(v,[{key:"namespace",get:function(){return this._namespace},set:function(E){if(E===!0||E==="*"||E==="&"){this._namespace=E,this.raws&&delete this.raws.namespace;return}var S=(0,t.default)(E,{isIdentifier:!0});this._namespace=E,S!==E?((0,Wt.ensureObject)(this,"raws"),this.raws.namespace=S):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(E){this.namespace=E}},{key:"namespaceString",get:function(){if(this.namespace){var E=this.stringifyProperty("namespace");return E===!0?"":E}else return""}}]),v}(n.default);e.default=m,r.exports=e.default}),TT=Nt(function(r,e){e.__esModule=!0,e.default=void 0;var t=n(Lg);function n(u){return u&&u.__esModule?u:{default:u}}function s(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,a(u,c)}function a(u,c){return a=Object.setPrototypeOf||function(g,v){return g.__proto__=v,g},a(u,c)}var l=function(u){s(c,u);function c(m){var g;return g=u.call(this,m)||this,g.type=wt.TAG,g}return c}(t.default);e.default=l,r.exports=e.default}),_T=Nt(function(r,e){e.__esModule=!0,e.default=void 0;var t=n(Hi);function n(u){return u&&u.__esModule?u:{default:u}}function s(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,a(u,c)}function a(u,c){return a=Object.setPrototypeOf||function(g,v){return g.__proto__=v,g},a(u,c)}var l=function(u){s(c,u);function c(m){var g;return g=u.call(this,m)||this,g.type=wt.STRING,g}return c}(t.default);e.default=l,r.exports=e.default}),ET=Nt(function(r,e){e.__esModule=!0,e.default=void 0;var t=n(Ig);function n(u){return u&&u.__esModule?u:{default:u}}function s(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,a(u,c)}function a(u,c){return a=Object.setPrototypeOf||function(g,v){return g.__proto__=v,g},a(u,c)}var l=function(u){s(c,u);function c(g){var v;return v=u.call(this,g)||this,v.type=wt.PSEUDO,v}var m=c.prototype;return m.toString=function(){var v=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),v,this.rawSpaceAfter].join("")},c}(t.default);e.default=l,r.exports=e.default}),Hl=PM.deprecate,AT=Nt(function(r,e){e.__esModule=!0,e.unescapeValue=S,e.default=void 0;var t=l(Og),n=l(vT),s=l(Lg),a;function l(M){return M&&M.__esModule?M:{default:M}}function u(M,O){for(var R=0;R<O.length;R++){var j=O[R];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(M,j.key,j)}}function c(M,O,R){return O&&u(M.prototype,O),R&&u(M,R),M}function m(M,O){M.prototype=Object.create(O.prototype),M.prototype.constructor=M,g(M,O)}function g(M,O){return g=Object.setPrototypeOf||function(j,$){return j.__proto__=$,j},g(M,O)}var v=/^('|")([^]*)\1$/,b=Hl(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),x=Hl(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),E=Hl(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function S(M){var O=!1,R=null,j=M,$=j.match(v);return $&&(R=$[1],j=$[2]),j=(0,n.default)(j),j!==M&&(O=!0),{deprecatedUsage:O,unescaped:j,quoteMark:R}}function C(M){if(M.quoteMark!==void 0||M.value===void 0)return M;E();var O=S(M.value),R=O.quoteMark,j=O.unescaped;return M.raws||(M.raws={}),M.raws.value===void 0&&(M.raws.value=M.value),M.value=j,M.quoteMark=R,M}var _=function(M){m(O,M);function O(j){var $;return j===void 0&&(j={}),$=M.call(this,C(j))||this,$.type=wt.ATTRIBUTE,$.raws=$.raws||{},Object.defineProperty($.raws,"unquoted",{get:Hl(function(){return $.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:Hl(function(){return $.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),$._constructed=!0,$}var R=O.prototype;return R.getQuotedValue=function($){$===void 0&&($={});var B=this._determineQuoteMark($),F=A[B],H=(0,t.default)(this._value,F);return H},R._determineQuoteMark=function($){return $.smart?this.smartQuoteMark($):this.preferredQuoteMark($)},R.setValue=function($,B){B===void 0&&(B={}),this._value=$,this._quoteMark=this._determineQuoteMark(B),this._syncRawValue()},R.smartQuoteMark=function($){var B=this.value,F=B.replace(/[^']/g,"").length,H=B.replace(/[^"]/g,"").length;if(F+H===0){var V=(0,t.default)(B,{isIdentifier:!0});if(V===B)return O.NO_QUOTE;var X=this.preferredQuoteMark($);if(X===O.NO_QUOTE){var J=this.quoteMark||$.quoteMark||O.DOUBLE_QUOTE,D=A[J],ce=(0,t.default)(B,D);if(ce.length<V.length)return J}return X}else return H===F?this.preferredQuoteMark($):H<F?O.DOUBLE_QUOTE:O.SINGLE_QUOTE},R.preferredQuoteMark=function($){var B=$.preferCurrentQuoteMark?this.quoteMark:$.quoteMark;return B===void 0&&(B=$.preferCurrentQuoteMark?$.quoteMark:this.quoteMark),B===void 0&&(B=O.DOUBLE_QUOTE),B},R._syncRawValue=function(){var $=(0,t.default)(this._value,A[this.quoteMark]);$===this._value?this.raws&&delete this.raws.value:this.raws.value=$},R._handleEscapes=function($,B){if(this._constructed){var F=(0,t.default)(B,{isIdentifier:!0});F!==B?this.raws[$]=F:delete this.raws[$]}},R._spacesFor=function($){var B={before:"",after:""},F=this.spaces[$]||{},H=this.raws.spaces&&this.raws.spaces[$]||{};return Object.assign(B,F,H)},R._stringFor=function($,B,F){B===void 0&&(B=$),F===void 0&&(F=I);var H=this._spacesFor(B);return F(this.stringifyProperty($),H)},R.offsetOf=function($){var B=1,F=this._spacesFor("attribute");if(B+=F.before.length,$==="namespace"||$==="ns")return this.namespace?B:-1;if($==="attributeNS"||(B+=this.namespaceString.length,this.namespace&&(B+=1),$==="attribute"))return B;B+=this.stringifyProperty("attribute").length,B+=F.after.length;var H=this._spacesFor("operator");B+=H.before.length;var V=this.stringifyProperty("operator");if($==="operator")return V?B:-1;B+=V.length,B+=H.after.length;var X=this._spacesFor("value");B+=X.before.length;var J=this.stringifyProperty("value");if($==="value")return J?B:-1;B+=J.length,B+=X.after.length;var D=this._spacesFor("insensitive");return B+=D.before.length,$==="insensitive"&&this.insensitive?B:-1},R.toString=function(){var $=this,B=[this.rawSpaceBefore,"["];return B.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(B.push(this._stringFor("operator")),B.push(this._stringFor("value")),B.push(this._stringFor("insensitiveFlag","insensitive",function(F,H){return F.length>0&&!$.quoted&&H.before.length===0&&!($.spaces.value&&$.spaces.value.after)&&(H.before=" "),I(F,H)}))),B.push("]"),B.push(this.rawSpaceAfter),B.join("")},c(O,[{key:"quoted",get:function(){var $=this.quoteMark;return $==="'"||$==='"'},set:function($){x()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function($){if(!this._constructed){this._quoteMark=$;return}this._quoteMark!==$&&(this._quoteMark=$,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function($){if(this._constructed){var B=S($),F=B.deprecatedUsage,H=B.unescaped,V=B.quoteMark;if(F&&b(),H===this._value&&V===this._quoteMark)return;this._value=H,this._quoteMark=V,this._syncRawValue()}else this._value=$}},{key:"attribute",get:function(){return this._attribute},set:function($){this._handleEscapes("attribute",$),this._attribute=$}}]),O}(s.default);e.default=_,_.NO_QUOTE=null,_.SINGLE_QUOTE="'",_.DOUBLE_QUOTE='"';var A=(a={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},a[null]={isIdentifier:!0},a);function I(M,O){return""+O.before+M+O.after}}),CT=Nt(function(r,e){e.__esModule=!0,e.default=void 0;var t=n(Lg);function n(u){return u&&u.__esModule?u:{default:u}}function s(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,a(u,c)}function a(u,c){return a=Object.setPrototypeOf||function(g,v){return g.__proto__=v,g},a(u,c)}var l=function(u){s(c,u);function c(m){var g;return g=u.call(this,m)||this,g.type=wt.UNIVERSAL,g.value="*",g}return c}(t.default);e.default=l,r.exports=e.default}),PT=Nt(function(r,e){e.__esModule=!0,e.default=void 0;var t=n(Hi);function n(u){return u&&u.__esModule?u:{default:u}}function s(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,a(u,c)}function a(u,c){return a=Object.setPrototypeOf||function(g,v){return g.__proto__=v,g},a(u,c)}var l=function(u){s(c,u);function c(m){var g;return g=u.call(this,m)||this,g.type=wt.COMBINATOR,g}return c}(t.default);e.default=l,r.exports=e.default}),IT=Nt(function(r,e){e.__esModule=!0,e.default=void 0;var t=n(Hi);function n(u){return u&&u.__esModule?u:{default:u}}function s(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,a(u,c)}function a(u,c){return a=Object.setPrototypeOf||function(g,v){return g.__proto__=v,g},a(u,c)}var l=function(u){s(c,u);function c(m){var g;return g=u.call(this,m)||this,g.type=wt.NESTING,g.value="&",g}return c}(t.default);e.default=l,r.exports=e.default}),MR=Nt(function(r,e){e.__esModule=!0,e.default=t;function t(n){return n.sort(function(s,a){return s-a})}r.exports=e.default}),NT=Nt(function(r,e){e.__esModule=!0,e.combinator=e.word=e.comment=e.str=e.tab=e.newline=e.feed=e.cr=e.backslash=e.bang=e.slash=e.doubleQuote=e.singleQuote=e.space=e.greaterThan=e.pipe=e.equals=e.plus=e.caret=e.tilde=e.dollar=e.closeSquare=e.openSquare=e.closeParenthesis=e.openParenthesis=e.semicolon=e.colon=e.comma=e.at=e.asterisk=e.ampersand=void 0;var t=38;e.ampersand=t;var n=42;e.asterisk=n;var s=64;e.at=s;var a=44;e.comma=a;var l=58;e.colon=l;var u=59;e.semicolon=u;var c=40;e.openParenthesis=c;var m=41;e.closeParenthesis=m;var g=91;e.openSquare=g;var v=93;e.closeSquare=v;var b=36;e.dollar=b;var x=126;e.tilde=x;var E=94;e.caret=E;var S=43;e.plus=S;var C=61;e.equals=C;var _=124;e.pipe=_;var A=62;e.greaterThan=A;var I=32;e.space=I;var M=39;e.singleQuote=M;var O=34;e.doubleQuote=O;var R=47;e.slash=R;var j=33;e.bang=j;var $=92;e.backslash=$;var B=13;e.cr=B;var F=12;e.feed=F;var H=10;e.newline=H;var V=9;e.tab=V;var X=M;e.str=X;var J=-1;e.comment=J;var D=-2;e.word=D;var ce=-3;e.combinator=ce}),DR=Nt(function(r,e){e.__esModule=!0,e.default=S,e.FIELDS=void 0;var t=l(NT),n,s;function a(){if(typeof WeakMap!="function")return null;var C=new WeakMap;return a=function(){return C},C}function l(C){if(C&&C.__esModule)return C;if(C===null||typeof C!="object"&&typeof C!="function")return{default:C};var _=a();if(_&&_.has(C))return _.get(C);var A={},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in C)if(Object.prototype.hasOwnProperty.call(C,M)){var O=I?Object.getOwnPropertyDescriptor(C,M):null;O&&(O.get||O.set)?Object.defineProperty(A,M,O):A[M]=C[M]}return A.default=C,_&&_.set(C,A),A}for(var u=(n={},n[t.tab]=!0,n[t.newline]=!0,n[t.cr]=!0,n[t.feed]=!0,n),c=(s={},s[t.space]=!0,s[t.tab]=!0,s[t.newline]=!0,s[t.cr]=!0,s[t.feed]=!0,s[t.ampersand]=!0,s[t.asterisk]=!0,s[t.bang]=!0,s[t.comma]=!0,s[t.colon]=!0,s[t.semicolon]=!0,s[t.openParenthesis]=!0,s[t.closeParenthesis]=!0,s[t.openSquare]=!0,s[t.closeSquare]=!0,s[t.singleQuote]=!0,s[t.doubleQuote]=!0,s[t.plus]=!0,s[t.pipe]=!0,s[t.tilde]=!0,s[t.greaterThan]=!0,s[t.equals]=!0,s[t.dollar]=!0,s[t.caret]=!0,s[t.slash]=!0,s),m={},g="0123456789abcdefABCDEF",v=0;v<g.length;v++)m[g.charCodeAt(v)]=!0;function b(C,_){var A=_,I;do{if(I=C.charCodeAt(A),c[I])return A-1;I===t.backslash?A=x(C,A)+1:A++}while(A<C.length);return A-1}function x(C,_){var A=_,I=C.charCodeAt(A+1);if(!u[I])if(m[I]){var M=0;do A++,M++,I=C.charCodeAt(A+1);while(m[I]&&M<6);M<6&&I===t.space&&A++}else A++;return A}var E={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};e.FIELDS=E;function S(C){var _=[],A=C.css.valueOf(),I=A,M=I.length,O=-1,R=1,j=0,$=0,B,F,H,V,X,J,D,ce,W,Z,de,he,oe;function we(re,ge){if(C.safe)A+=ge,W=A.length-1;else throw C.error("Unclosed "+re,R,j-O,j)}for(;j<M;){switch(B=A.charCodeAt(j),B===t.newline&&(O=j,R+=1),B){case t.space:case t.tab:case t.newline:case t.cr:case t.feed:W=j;do W+=1,B=A.charCodeAt(W),B===t.newline&&(O=W,R+=1);while(B===t.space||B===t.newline||B===t.tab||B===t.cr||B===t.feed);oe=t.space,V=R,H=W-O-1,$=W;break;case t.plus:case t.greaterThan:case t.tilde:case t.pipe:W=j;do W+=1,B=A.charCodeAt(W);while(B===t.plus||B===t.greaterThan||B===t.tilde||B===t.pipe);oe=t.combinator,V=R,H=j-O,$=W;break;case t.asterisk:case t.ampersand:case t.bang:case t.comma:case t.equals:case t.dollar:case t.caret:case t.openSquare:case t.closeSquare:case t.colon:case t.semicolon:case t.openParenthesis:case t.closeParenthesis:W=j,oe=B,V=R,H=j-O,$=W+1;break;case t.singleQuote:case t.doubleQuote:he=B===t.singleQuote?"'":'"',W=j;do for(X=!1,W=A.indexOf(he,W+1),W===-1&&we("quote",he),J=W;A.charCodeAt(J-1)===t.backslash;)J-=1,X=!X;while(X);oe=t.str,V=R,H=j-O,$=W+1;break;default:B===t.slash&&A.charCodeAt(j+1)===t.asterisk?(W=A.indexOf("*/",j+2)+1,W===0&&we("comment","*/"),F=A.slice(j,W+1),ce=F.split(`
`),D=ce.length-1,D>0?(Z=R+D,de=W-ce[D].length):(Z=R,de=O),oe=t.comment,R=Z,V=Z,H=W-de):B===t.slash?(W=j,oe=B,V=R,H=j-O,$=W+1):(W=b(A,j),oe=t.word,V=R,H=W-O),$=W+1;break}_.push([oe,R,j-O,V,H,j,$]),de&&(O=de,de=null),j=$}return _}}),RR=Nt(function(r,e){e.__esModule=!0,e.default=void 0;var t=R(bT),n=R(wT),s=R(xT),a=R(ST),l=R(kT),u=R(TT),c=R(_T),m=R(ET),g=O(AT),v=R(CT),b=R(PT),x=R(IT),E=R(MR),S=O(DR),C=O(NT),_=O(wt),A,I;function M(){if(typeof WeakMap!="function")return null;var he=new WeakMap;return M=function(){return he},he}function O(he){if(he&&he.__esModule)return he;if(he===null||typeof he!="object"&&typeof he!="function")return{default:he};var oe=M();if(oe&&oe.has(he))return oe.get(he);var we={},re=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ge in he)if(Object.prototype.hasOwnProperty.call(he,ge)){var ee=re?Object.getOwnPropertyDescriptor(he,ge):null;ee&&(ee.get||ee.set)?Object.defineProperty(we,ge,ee):we[ge]=he[ge]}return we.default=he,oe&&oe.set(he,we),we}function R(he){return he&&he.__esModule?he:{default:he}}function j(he,oe){for(var we=0;we<oe.length;we++){var re=oe[we];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(he,re.key,re)}}function $(he,oe,we){return oe&&j(he.prototype,oe),we&&j(he,we),he}var B=(A={},A[C.space]=!0,A[C.cr]=!0,A[C.feed]=!0,A[C.newline]=!0,A[C.tab]=!0,A),F=Object.assign({},B,(I={},I[C.comment]=!0,I));function H(he){return{line:he[S.FIELDS.START_LINE],column:he[S.FIELDS.START_COL]}}function V(he){return{line:he[S.FIELDS.END_LINE],column:he[S.FIELDS.END_COL]}}function X(he,oe,we,re){return{start:{line:he,column:oe},end:{line:we,column:re}}}function J(he){return X(he[S.FIELDS.START_LINE],he[S.FIELDS.START_COL],he[S.FIELDS.END_LINE],he[S.FIELDS.END_COL])}function D(he,oe){if(!!he)return X(he[S.FIELDS.START_LINE],he[S.FIELDS.START_COL],oe[S.FIELDS.END_LINE],oe[S.FIELDS.END_COL])}function ce(he,oe){var we=he[oe];if(typeof we=="string")return we.indexOf("\\")!==-1&&((0,Wt.ensureObject)(he,"raws"),he[oe]=(0,Wt.unesc)(we),he.raws[oe]===void 0&&(he.raws[oe]=we)),he}function W(he,oe){for(var we=-1,re=[];(we=he.indexOf(oe,we+1))!==-1;)re.push(we);return re}function Z(){var he=Array.prototype.concat.apply([],arguments);return he.filter(function(oe,we){return we===he.indexOf(oe)})}var de=function(){function he(we,re){re===void 0&&(re={}),this.rule=we,this.options=Object.assign({lossy:!1,safe:!1},re),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,S.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var ge=D(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new t.default({source:ge}),this.root.errorGenerator=this._errorGenerator();var ee=new n.default({source:{start:{line:1,column:1}}});this.root.append(ee),this.current=ee,this.loop()}var oe=he.prototype;return oe._errorGenerator=function(){var re=this;return function(ge,ee){return typeof re.rule=="string"?new Error(ge):re.rule.error(ge,ee)}},oe.attribute=function(){var re=[],ge=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[S.FIELDS.TYPE]!==C.closeSquare;)re.push(this.currToken),this.position++;if(this.currToken[S.FIELDS.TYPE]!==C.closeSquare)return this.expected("closing square bracket",this.currToken[S.FIELDS.START_POS]);var ee=re.length,z={source:X(ge[1],ge[2],this.currToken[3],this.currToken[4]),sourceIndex:ge[S.FIELDS.START_POS]};if(ee===1&&!~[C.word].indexOf(re[0][S.FIELDS.TYPE]))return this.expected("attribute",re[0][S.FIELDS.START_POS]);for(var ne=0,fe="",ye="",pe=null,le=!1;ne<ee;){var _e=re[ne],De=this.content(_e),Ue=re[ne+1];switch(_e[S.FIELDS.TYPE]){case C.space:if(le=!0,this.options.lossy)break;if(pe){(0,Wt.ensureObject)(z,"spaces",pe);var qe=z.spaces[pe].after||"";z.spaces[pe].after=qe+De;var Xe=(0,Wt.getProp)(z,"raws","spaces",pe,"after")||null;Xe&&(z.raws.spaces[pe].after=Xe+De)}else fe=fe+De,ye=ye+De;break;case C.asterisk:if(Ue[S.FIELDS.TYPE]===C.equals)z.operator=De,pe="operator";else if((!z.namespace||pe==="namespace"&&!le)&&Ue){fe&&((0,Wt.ensureObject)(z,"spaces","attribute"),z.spaces.attribute.before=fe,fe=""),ye&&((0,Wt.ensureObject)(z,"raws","spaces","attribute"),z.raws.spaces.attribute.before=fe,ye=""),z.namespace=(z.namespace||"")+De;var tt=(0,Wt.getProp)(z,"raws","namespace")||null;tt&&(z.raws.namespace+=De),pe="namespace"}le=!1;break;case C.dollar:if(pe==="value"){var Je=(0,Wt.getProp)(z,"raws","value");z.value+="$",Je&&(z.raws.value=Je+"$");break}case C.caret:Ue[S.FIELDS.TYPE]===C.equals&&(z.operator=De,pe="operator"),le=!1;break;case C.combinator:if(De==="~"&&Ue[S.FIELDS.TYPE]===C.equals&&(z.operator=De,pe="operator"),De!=="|"){le=!1;break}Ue[S.FIELDS.TYPE]===C.equals?(z.operator=De,pe="operator"):!z.namespace&&!z.attribute&&(z.namespace=!0),le=!1;break;case C.word:if(Ue&&this.content(Ue)==="|"&&re[ne+2]&&re[ne+2][S.FIELDS.TYPE]!==C.equals&&!z.operator&&!z.namespace)z.namespace=De,pe="namespace";else if(!z.attribute||pe==="attribute"&&!le){fe&&((0,Wt.ensureObject)(z,"spaces","attribute"),z.spaces.attribute.before=fe,fe=""),ye&&((0,Wt.ensureObject)(z,"raws","spaces","attribute"),z.raws.spaces.attribute.before=ye,ye=""),z.attribute=(z.attribute||"")+De;var dt=(0,Wt.getProp)(z,"raws","attribute")||null;dt&&(z.raws.attribute+=De),pe="attribute"}else if(!z.value&&z.value!==""||pe==="value"&&!le){var Lt=(0,Wt.unesc)(De),ht=(0,Wt.getProp)(z,"raws","value")||"",ae=z.value||"";z.value=ae+Lt,z.quoteMark=null,(Lt!==De||ht)&&((0,Wt.ensureObject)(z,"raws"),z.raws.value=(ht||ae)+De),pe="value"}else{var Ee=De==="i"||De==="I";(z.value||z.value==="")&&(z.quoteMark||le)?(z.insensitive=Ee,(!Ee||De==="I")&&((0,Wt.ensureObject)(z,"raws"),z.raws.insensitiveFlag=De),pe="insensitive",fe&&((0,Wt.ensureObject)(z,"spaces","insensitive"),z.spaces.insensitive.before=fe,fe=""),ye&&((0,Wt.ensureObject)(z,"raws","spaces","insensitive"),z.raws.spaces.insensitive.before=ye,ye="")):(z.value||z.value==="")&&(pe="value",z.value+=De,z.raws.value&&(z.raws.value+=De))}le=!1;break;case C.str:if(!z.attribute||!z.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:_e[S.FIELDS.START_POS]});var me=(0,g.unescapeValue)(De),ct=me.unescaped,tr=me.quoteMark;z.value=ct,z.quoteMark=tr,pe="value",(0,Wt.ensureObject)(z,"raws"),z.raws.value=De,le=!1;break;case C.equals:if(!z.attribute)return this.expected("attribute",_e[S.FIELDS.START_POS],De);if(z.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:_e[S.FIELDS.START_POS]});z.operator=z.operator?z.operator+De:De,pe="operator",le=!1;break;case C.comment:if(pe)if(le||Ue&&Ue[S.FIELDS.TYPE]===C.space||pe==="insensitive"){var vr=(0,Wt.getProp)(z,"spaces",pe,"after")||"",Vn=(0,Wt.getProp)(z,"raws","spaces",pe,"after")||vr;(0,Wt.ensureObject)(z,"raws","spaces",pe),z.raws.spaces[pe].after=Vn+De}else{var ur=z[pe]||"",Mt=(0,Wt.getProp)(z,"raws",pe)||ur;(0,Wt.ensureObject)(z,"raws"),z.raws[pe]=Mt+De}else ye=ye+De;break;default:return this.error('Unexpected "'+De+'" found.',{index:_e[S.FIELDS.START_POS]})}ne++}ce(z,"attribute"),ce(z,"namespace"),this.newNode(new g.default(z)),this.position++},oe.parseWhitespaceEquivalentTokens=function(re){re<0&&(re=this.tokens.length);var ge=this.position,ee=[],z="",ne=void 0;do if(B[this.currToken[S.FIELDS.TYPE]])this.options.lossy||(z+=this.content());else if(this.currToken[S.FIELDS.TYPE]===C.comment){var fe={};z&&(fe.before=z,z=""),ne=new a.default({value:this.content(),source:J(this.currToken),sourceIndex:this.currToken[S.FIELDS.START_POS],spaces:fe}),ee.push(ne)}while(++this.position<re);if(z){if(ne)ne.spaces.after=z;else if(!this.options.lossy){var ye=this.tokens[ge],pe=this.tokens[this.position-1];ee.push(new c.default({value:"",source:X(ye[S.FIELDS.START_LINE],ye[S.FIELDS.START_COL],pe[S.FIELDS.END_LINE],pe[S.FIELDS.END_COL]),sourceIndex:ye[S.FIELDS.START_POS],spaces:{before:z,after:""}}))}}return ee},oe.convertWhitespaceNodesToSpace=function(re,ge){var ee=this;ge===void 0&&(ge=!1);var z="",ne="";re.forEach(function(ye){var pe=ee.lossySpace(ye.spaces.before,ge),le=ee.lossySpace(ye.rawSpaceBefore,ge);z+=pe+ee.lossySpace(ye.spaces.after,ge&&pe.length===0),ne+=pe+ye.value+ee.lossySpace(ye.rawSpaceAfter,ge&&le.length===0)}),ne===z&&(ne=void 0);var fe={space:z,rawSpace:ne};return fe},oe.isNamedCombinator=function(re){return re===void 0&&(re=this.position),this.tokens[re+0]&&this.tokens[re+0][S.FIELDS.TYPE]===C.slash&&this.tokens[re+1]&&this.tokens[re+1][S.FIELDS.TYPE]===C.word&&this.tokens[re+2]&&this.tokens[re+2][S.FIELDS.TYPE]===C.slash},oe.namedCombinator=function(){if(this.isNamedCombinator()){var re=this.content(this.tokens[this.position+1]),ge=(0,Wt.unesc)(re).toLowerCase(),ee={};ge!==re&&(ee.value="/"+re+"/");var z=new b.default({value:"/"+ge+"/",source:X(this.currToken[S.FIELDS.START_LINE],this.currToken[S.FIELDS.START_COL],this.tokens[this.position+2][S.FIELDS.END_LINE],this.tokens[this.position+2][S.FIELDS.END_COL]),sourceIndex:this.currToken[S.FIELDS.START_POS],raws:ee});return this.position=this.position+3,z}else this.unexpected()},oe.combinator=function(){var re=this;if(this.content()==="|")return this.namespace();var ge=this.locateNextMeaningfulToken(this.position);if(ge<0||this.tokens[ge][S.FIELDS.TYPE]===C.comma){var ee=this.parseWhitespaceEquivalentTokens(ge);if(ee.length>0){var z=this.current.last;if(z){var ne=this.convertWhitespaceNodesToSpace(ee),fe=ne.space,ye=ne.rawSpace;ye!==void 0&&(z.rawSpaceAfter+=ye),z.spaces.after+=fe}else ee.forEach(function(ht){return re.newNode(ht)})}return}var pe=this.currToken,le=void 0;ge>this.position&&(le=this.parseWhitespaceEquivalentTokens(ge));var _e;if(this.isNamedCombinator()?_e=this.namedCombinator():this.currToken[S.FIELDS.TYPE]===C.combinator?(_e=new b.default({value:this.content(),source:J(this.currToken),sourceIndex:this.currToken[S.FIELDS.START_POS]}),this.position++):B[this.currToken[S.FIELDS.TYPE]]||le||this.unexpected(),_e){if(le){var De=this.convertWhitespaceNodesToSpace(le),Ue=De.space,qe=De.rawSpace;_e.spaces.before=Ue,_e.rawSpaceBefore=qe}}else{var Xe=this.convertWhitespaceNodesToSpace(le,!0),tt=Xe.space,Je=Xe.rawSpace;Je||(Je=tt);var dt={},Lt={spaces:{}};tt.endsWith(" ")&&Je.endsWith(" ")?(dt.before=tt.slice(0,tt.length-1),Lt.spaces.before=Je.slice(0,Je.length-1)):tt.startsWith(" ")&&Je.startsWith(" ")?(dt.after=tt.slice(1),Lt.spaces.after=Je.slice(1)):Lt.value=Je,_e=new b.default({value:" ",source:D(pe,this.tokens[this.position-1]),sourceIndex:pe[S.FIELDS.START_POS],spaces:dt,raws:Lt})}return this.currToken&&this.currToken[S.FIELDS.TYPE]===C.space&&(_e.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(_e)},oe.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var re=new n.default({source:{start:H(this.tokens[this.position+1])}});this.current.parent.append(re),this.current=re,this.position++},oe.comment=function(){var re=this.currToken;this.newNode(new a.default({value:this.content(),source:J(re),sourceIndex:re[S.FIELDS.START_POS]})),this.position++},oe.error=function(re,ge){throw this.root.error(re,ge)},oe.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[S.FIELDS.START_POS]})},oe.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[S.FIELDS.START_POS])},oe.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[S.FIELDS.START_POS])},oe.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[S.FIELDS.START_POS])},oe.namespace=function(){var re=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[S.FIELDS.TYPE]===C.word)return this.position++,this.word(re);if(this.nextToken[S.FIELDS.TYPE]===C.asterisk)return this.position++,this.universal(re)},oe.nesting=function(){if(this.nextToken){var re=this.content(this.nextToken);if(re==="|"){this.position++;return}}var ge=this.currToken;this.newNode(new x.default({value:this.content(),source:J(ge),sourceIndex:ge[S.FIELDS.START_POS]})),this.position++},oe.parentheses=function(){var re=this.current.last,ge=1;if(this.position++,re&&re.type===_.PSEUDO){var ee=new n.default({source:{start:H(this.tokens[this.position-1])}}),z=this.current;for(re.append(ee),this.current=ee;this.position<this.tokens.length&&ge;)this.currToken[S.FIELDS.TYPE]===C.openParenthesis&&ge++,this.currToken[S.FIELDS.TYPE]===C.closeParenthesis&&ge--,ge?this.parse():(this.current.source.end=V(this.currToken),this.current.parent.source.end=V(this.currToken),this.position++);this.current=z}else{for(var ne=this.currToken,fe="(",ye;this.position<this.tokens.length&&ge;)this.currToken[S.FIELDS.TYPE]===C.openParenthesis&&ge++,this.currToken[S.FIELDS.TYPE]===C.closeParenthesis&&ge--,ye=this.currToken,fe+=this.parseParenthesisToken(this.currToken),this.position++;re?re.appendToPropertyAndEscape("value",fe,fe):this.newNode(new c.default({value:fe,source:X(ne[S.FIELDS.START_LINE],ne[S.FIELDS.START_COL],ye[S.FIELDS.END_LINE],ye[S.FIELDS.END_COL]),sourceIndex:ne[S.FIELDS.START_POS]}))}if(ge)return this.expected("closing parenthesis",this.currToken[S.FIELDS.START_POS])},oe.pseudo=function(){for(var re=this,ge="",ee=this.currToken;this.currToken&&this.currToken[S.FIELDS.TYPE]===C.colon;)ge+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[S.FIELDS.TYPE]===C.word)this.splitWord(!1,function(z,ne){ge+=z,re.newNode(new m.default({value:ge,source:D(ee,re.currToken),sourceIndex:ee[S.FIELDS.START_POS]})),ne>1&&re.nextToken&&re.nextToken[S.FIELDS.TYPE]===C.openParenthesis&&re.error("Misplaced parenthesis.",{index:re.nextToken[S.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[S.FIELDS.START_POS])},oe.space=function(){var re=this.content();this.position===0||this.prevToken[S.FIELDS.TYPE]===C.comma||this.prevToken[S.FIELDS.TYPE]===C.openParenthesis||this.current.nodes.every(function(ge){return ge.type==="comment"})?(this.spaces=this.optionalSpace(re),this.position++):this.position===this.tokens.length-1||this.nextToken[S.FIELDS.TYPE]===C.comma||this.nextToken[S.FIELDS.TYPE]===C.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(re),this.position++):this.combinator()},oe.string=function(){var re=this.currToken;this.newNode(new c.default({value:this.content(),source:J(re),sourceIndex:re[S.FIELDS.START_POS]})),this.position++},oe.universal=function(re){var ge=this.nextToken;if(ge&&this.content(ge)==="|")return this.position++,this.namespace();var ee=this.currToken;this.newNode(new v.default({value:this.content(),source:J(ee),sourceIndex:ee[S.FIELDS.START_POS]}),re),this.position++},oe.splitWord=function(re,ge){for(var ee=this,z=this.nextToken,ne=this.content();z&&~[C.dollar,C.caret,C.equals,C.word].indexOf(z[S.FIELDS.TYPE]);){this.position++;var fe=this.content();if(ne+=fe,fe.lastIndexOf("\\")===fe.length-1){var ye=this.nextToken;ye&&ye[S.FIELDS.TYPE]===C.space&&(ne+=this.requiredSpace(this.content(ye)),this.position++)}z=this.nextToken}var pe=W(ne,".").filter(function(Ue){var qe=ne[Ue-1]==="\\",Xe=/^\d+\.\d+%$/.test(ne);return!qe&&!Xe}),le=W(ne,"#").filter(function(Ue){return ne[Ue-1]!=="\\"}),_e=W(ne,"#{");_e.length&&(le=le.filter(function(Ue){return!~_e.indexOf(Ue)}));var De=(0,E.default)(Z([0].concat(pe,le)));De.forEach(function(Ue,qe){var Xe=De[qe+1]||ne.length,tt=ne.slice(Ue,Xe);if(qe===0&&ge)return ge.call(ee,tt,De.length);var Je,dt=ee.currToken,Lt=dt[S.FIELDS.START_POS]+De[qe],ht=X(dt[1],dt[2]+Ue,dt[3],dt[2]+(Xe-1));if(~pe.indexOf(Ue)){var ae={value:tt.slice(1),source:ht,sourceIndex:Lt};Je=new s.default(ce(ae,"value"))}else if(~le.indexOf(Ue)){var Ee={value:tt.slice(1),source:ht,sourceIndex:Lt};Je=new l.default(ce(Ee,"value"))}else{var me={value:tt,source:ht,sourceIndex:Lt};ce(me,"value"),Je=new u.default(me)}ee.newNode(Je,re),re=null}),this.position++},oe.word=function(re){var ge=this.nextToken;return ge&&this.content(ge)==="|"?(this.position++,this.namespace()):this.splitWord(re)},oe.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},oe.parse=function(re){switch(this.currToken[S.FIELDS.TYPE]){case C.space:this.space();break;case C.comment:this.comment();break;case C.openParenthesis:this.parentheses();break;case C.closeParenthesis:re&&this.missingParenthesis();break;case C.openSquare:this.attribute();break;case C.dollar:case C.caret:case C.equals:case C.word:this.word();break;case C.colon:this.pseudo();break;case C.comma:this.comma();break;case C.asterisk:this.universal();break;case C.ampersand:this.nesting();break;case C.slash:case C.combinator:this.combinator();break;case C.str:this.string();break;case C.closeSquare:this.missingSquareBracket();case C.semicolon:this.missingBackslash();default:this.unexpected()}},oe.expected=function(re,ge,ee){if(Array.isArray(re)){var z=re.pop();re=re.join(", ")+" or "+z}var ne=/^[aeiou]/.test(re[0])?"an":"a";return ee?this.error("Expected "+ne+" "+re+', found "'+ee+'" instead.',{index:ge}):this.error("Expected "+ne+" "+re+".",{index:ge})},oe.requiredSpace=function(re){return this.options.lossy?" ":re},oe.optionalSpace=function(re){return this.options.lossy?"":re},oe.lossySpace=function(re,ge){return this.options.lossy?ge?" ":"":re},oe.parseParenthesisToken=function(re){var ge=this.content(re);return re[S.FIELDS.TYPE]===C.space?this.requiredSpace(ge):ge},oe.newNode=function(re,ge){return ge&&(/^ +$/.test(ge)&&(this.options.lossy||(this.spaces=(this.spaces||"")+ge),ge=!0),re.namespace=ge,ce(re,"namespace")),this.spaces&&(re.spaces.before=this.spaces,this.spaces=""),this.current.append(re)},oe.content=function(re){return re===void 0&&(re=this.currToken),this.css.slice(re[S.FIELDS.START_POS],re[S.FIELDS.END_POS])},oe.locateNextMeaningfulToken=function(re){re===void 0&&(re=this.position+1);for(var ge=re;ge<this.tokens.length;)if(F[this.tokens[ge][S.FIELDS.TYPE]]){ge++;continue}else return ge;return-1},$(he,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),he}();e.default=de,r.exports=e.default}),FR=Nt(function(r,e){e.__esModule=!0,e.default=void 0;var t=n(RR);function n(a){return a&&a.__esModule?a:{default:a}}var s=function(){function a(u,c){this.func=u||function(){},this.funcRes=null,this.options=c}var l=a.prototype;return l._shouldUpdateSelector=function(c,m){m===void 0&&(m={});var g=Object.assign({},this.options,m);return g.updateSelector===!1?!1:typeof c!="string"},l._isLossy=function(c){c===void 0&&(c={});var m=Object.assign({},this.options,c);return m.lossless===!1},l._root=function(c,m){m===void 0&&(m={});var g=new t.default(c,this._parseOptions(m));return g.root},l._parseOptions=function(c){return{lossy:this._isLossy(c)}},l._run=function(c,m){var g=this;return m===void 0&&(m={}),new Promise(function(v,b){try{var x=g._root(c,m);Promise.resolve(g.func(x)).then(function(E){var S=void 0;return g._shouldUpdateSelector(c,m)&&(S=x.toString(),c.selector=S),{transform:E,root:x,string:S}}).then(v,b)}catch(E){b(E);return}})},l._runSync=function(c,m){m===void 0&&(m={});var g=this._root(c,m),v=this.func(g);if(v&&typeof v.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var b=void 0;return m.updateSelector&&typeof c!="string"&&(b=g.toString(),c.selector=b),{transform:v,root:g,string:b}},l.ast=function(c,m){return this._run(c,m).then(function(g){return g.root})},l.astSync=function(c,m){return this._runSync(c,m).root},l.transform=function(c,m){return this._run(c,m).then(function(g){return g.transform})},l.transformSync=function(c,m){return this._runSync(c,m).transform},l.process=function(c,m){return this._run(c,m).then(function(g){return g.string||g.root.toString()})},l.processSync=function(c,m){var g=this._runSync(c,m);return g.string||g.root.toString()},a}();e.default=s,r.exports=e.default}),wd=Nt(function(r,e){e.__esModule=!0,e.universal=e.tag=e.string=e.selector=e.root=e.pseudo=e.nesting=e.id=e.comment=e.combinator=e.className=e.attribute=void 0;var t=E(AT),n=E(xT),s=E(PT),a=E(ST),l=E(kT),u=E(IT),c=E(ET),m=E(bT),g=E(wT),v=E(_T),b=E(TT),x=E(CT);function E(H){return H&&H.__esModule?H:{default:H}}var S=function(V){return new t.default(V)};e.attribute=S;var C=function(V){return new n.default(V)};e.className=C;var _=function(V){return new s.default(V)};e.combinator=_;var A=function(V){return new a.default(V)};e.comment=A;var I=function(V){return new l.default(V)};e.id=I;var M=function(V){return new u.default(V)};e.nesting=M;var O=function(V){return new c.default(V)};e.pseudo=O;var R=function(V){return new m.default(V)};e.root=R;var j=function(V){return new g.default(V)};e.selector=j;var $=function(V){return new v.default(V)};e.string=$;var B=function(V){return new b.default(V)};e.tag=B;var F=function(V){return new x.default(V)};e.universal=F}),xd=Nt(function(r,e){e.__esModule=!0,e.isNode=s,e.isPseudoElement=A,e.isPseudoClass=I,e.isContainer=M,e.isNamespace=O,e.isUniversal=e.isTag=e.isString=e.isSelector=e.isRoot=e.isPseudo=e.isNesting=e.isIdentifier=e.isComment=e.isCombinator=e.isClassName=e.isAttribute=void 0;var t,n=(t={},t[wt.ATTRIBUTE]=!0,t[wt.CLASS]=!0,t[wt.COMBINATOR]=!0,t[wt.COMMENT]=!0,t[wt.ID]=!0,t[wt.NESTING]=!0,t[wt.PSEUDO]=!0,t[wt.ROOT]=!0,t[wt.SELECTOR]=!0,t[wt.STRING]=!0,t[wt.TAG]=!0,t[wt.UNIVERSAL]=!0,t);function s(R){return typeof R=="object"&&n[R.type]}function a(R,j){return s(j)&&j.type===R}var l=a.bind(null,wt.ATTRIBUTE);e.isAttribute=l;var u=a.bind(null,wt.CLASS);e.isClassName=u;var c=a.bind(null,wt.COMBINATOR);e.isCombinator=c;var m=a.bind(null,wt.COMMENT);e.isComment=m;var g=a.bind(null,wt.ID);e.isIdentifier=g;var v=a.bind(null,wt.NESTING);e.isNesting=v;var b=a.bind(null,wt.PSEUDO);e.isPseudo=b;var x=a.bind(null,wt.ROOT);e.isRoot=x;var E=a.bind(null,wt.SELECTOR);e.isSelector=E;var S=a.bind(null,wt.STRING);e.isString=S;var C=a.bind(null,wt.TAG);e.isTag=C;var _=a.bind(null,wt.UNIVERSAL);e.isUniversal=_;function A(R){return b(R)&&R.value&&(R.value.startsWith("::")||R.value.toLowerCase()===":before"||R.value.toLowerCase()===":after")}function I(R){return b(R)&&!A(R)}function M(R){return!!(s(R)&&R.walk)}function O(R){return l(R)||C(R)}}),BR=Nt(function(r,e){e.__esModule=!0,Object.keys(wt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===wt[t]||(e[t]=wt[t])}),Object.keys(wd).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===wd[t]||(e[t]=wd[t])}),Object.keys(xd).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===xd[t]||(e[t]=xd[t])})}),$R=Nt(function(r,e){e.__esModule=!0,e.default=void 0;var t=l(FR),n=a(BR);function s(){if(typeof WeakMap!="function")return null;var m=new WeakMap;return s=function(){return m},m}function a(m){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var g=s();if(g&&g.has(m))return g.get(m);var v={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in m)if(Object.prototype.hasOwnProperty.call(m,x)){var E=b?Object.getOwnPropertyDescriptor(m,x):null;E&&(E.get||E.set)?Object.defineProperty(v,x,E):v[x]=m[x]}return v.default=m,g&&g.set(m,v),v}function l(m){return m&&m.__esModule?m:{default:m}}var u=function(g){return new t.default(g)};Object.assign(u,n),delete u.__esModule;var c=u;e.default=c,r.exports=e.default}),E1=t2($R);const jR=/^(-\w+-)?animation-name$/,UR=/^(-\w+-)?animation$/,OT=(r="")=>{const e=Object.create(null),t=r.replace(/^data-v-/,"");return{postcssPlugin:"vue-sfc-scoped",Rule(n){qR(r,n)},AtRule(n){/-?keyframes$/.test(n.name)&&!n.params.endsWith(`-${t}`)&&(e[n.params]=n.params=n.params+"-"+t)},OnceExit(n){Object.keys(e).length&&n.walkDecls(s=>{jR.test(s.prop)&&(s.value=s.value.split(",").map(a=>e[a.trim()]||a.trim()).join(",")),UR.test(s.prop)&&(s.value=s.value.split(",").map(a=>{const l=a.trim().split(/\s+/),u=l.findIndex(c=>e[c]);return u!==-1?(l.splice(u,1,e[l[u]]),l.join(" ")):a}).join(","))})}}},$b=new WeakSet;function qR(r,e){$b.has(e)||e.parent&&e.parent.type==="atrule"&&/-?keyframes$/.test(e.parent.name)||($b.add(e),e.selector=E1(t=>{t.each(n=>{LT(r,n,t)})}).processSync(e.selector))}function LT(r,e,t,n=!1){let s=null,a=!0;if(e.each(l=>{if(l.type==="combinator"&&(l.value===">>>"||l.value==="/deep/"))return l.value=" ",l.spaces.before=l.spaces.after="",l1("the >>> and /deep/ combinators have been deprecated. Use :deep() instead."),!1;if(l.type==="pseudo"){const{value:u}=l;if(u===":deep"||u==="::v-deep"){if(l.nodes.length){let c=l;l.nodes[0].each(g=>{e.insertAfter(c,g),c=g});const m=e.at(e.index(l)-1);(!m||!jb(m))&&e.insertAfter(l,E1.combinator({value:" "})),e.removeChild(l)}else{l1("::v-deep usage as a combinator has been deprecated. Use :deep(<inner-selector>) instead.");const c=e.at(e.index(l)-1);c&&jb(c)&&e.removeChild(c),e.removeChild(l)}return!1}if(u===":slotted"||u==="::v-slotted"){LT(r,l.nodes[0],t,!0);let c=l;return l.nodes[0].each(m=>{e.insertAfter(c,m),c=m}),e.removeChild(l),a=!1,!1}if(u===":global"||u==="::v-global")return t.insertAfter(e,l.nodes[0]),t.removeChild(e),!1}l.type!=="pseudo"&&l.type!=="combinator"&&(s=l)}),s?s.spaces.after="":e.first.spaces.before="",a){const l=n?r+"-s":r;e.insertAfter(s,E1.attribute({attribute:l,value:l,raws:{},quoteMark:'"'}))}}function jb(r){return r.type==="combinator"&&/^\s+$/.test(r.value)}OT.postcss=!0;var Ub=$x.SourceMapConsumer,WR=$x.SourceMapGenerator,Mg=zR;function zR(r,e){if(!r)return e;if(!e)return r;var t=new Ub(r),n=new Ub(e),s=new WR;n.eachMapping(function(l){if(l.originalLine!=null){var u=t.originalPositionFor({line:l.originalLine,column:l.originalColumn});u.source!=null&&s.addMapping({original:{line:u.line,column:u.column},generated:{line:l.generatedLine,column:l.generatedColumn},source:u.source,name:u.name})}});var a=[t,n];return a.forEach(function(l){l.sources.forEach(function(u){s._sources.add(u);var c=l.sourceContentFor(u);c!=null&&s.setSourceContent(u,c)})}),s._sourceRoot=r.sourceRoot,s._file=r.file,JSON.parse(s.toString())}const MT=(r,e,t,n=require)=>{const s=n("sass"),a=Object.assign(Object.assign({},t),{data:DT(r,t.filename,t.additionalData),file:t.filename,outFile:t.filename,sourceMap:!!e});try{const l=s.renderSync(a),u=l.stats.includedFiles;return e?{code:l.css.toString(),map:Mg(e,JSON.parse(l.map.toString())),errors:[],dependencies:u}:{code:l.css.toString(),errors:[],dependencies:u}}catch(l){return{code:"",errors:[l],dependencies:[]}}},HR=(r,e,t,n)=>MT(r,e,Object.assign(Object.assign({},t),{indentedSyntax:!0}),n),VR=(r,e,t,n=require)=>{const s=n("less");let a,l=null;if(s.render(DT(r,t.filename,t.additionalData),Object.assign(Object.assign({},t),{syncImport:!0}),(c,m)=>{l=c,a=m}),l)return{code:"",errors:[l],dependencies:[]};const u=a.imports;return e?{code:a.css.toString(),map:Mg(e,a.map),errors:[],dependencies:u}:{code:a.css.toString(),errors:[],dependencies:u}},qb=(r,e,t,n=require)=>{const s=n("stylus");try{const a=s(r);Object.keys(t).forEach(c=>a.set(c,t[c])),e&&a.set("sourcemap",{inline:!1,comment:!1});const l=a.render(),u=a.deps();return e?{code:l,map:Mg(e,a.sourcemap),errors:[],dependencies:u}:{code:l,errors:[],dependencies:u}}catch(a){return{code:"",errors:[a],dependencies:[]}}};function DT(r,e,t){return t?jw(t)?t(r,e):t+r:r}const GR={less:VR,sass:HR,scss:MT,styl:qb,stylus:qb};function KR(r){return RT(Object.assign(Object.assign({},r),{isAsync:!1}))}function YR(r){return RT(Object.assign(Object.assign({},r),{isAsync:!0}))}function RT(r){const{filename:e,id:t,scoped:n=!1,trim:s=!0,isProd:a=!1,modules:l=!1,modulesOptions:u={},preprocessLang:c,postcssOptions:m,postcssPlugins:g}=r,v=c&&GR[c],b=v&&JR(r,v),x=b?b.map:r.inMap||r.map,E=b?b.code:r.source,S=t.replace(/^data-v-/,""),C=`data-v-${S}`,_=(g||[]).slice();_.unshift(iS({id:S,isProd:a})),s&&_.push(yT()),n&&_.push(OT(C));let A;if(l)throw new Error("[@vue/compiler-sfc] `modules` option is not supported in the browser build.");const I=Object.assign(Object.assign({},m),{to:e,from:e});x&&(I.map={inline:!1,annotation:!1,prev:x});let M,O,R;const j=new Set(b?b.dependencies:[]);j.delete(e);const $=[];b&&b.errors.length&&$.push(...b.errors);const B=F=>(F.forEach(H=>{H.type==="dependency"&&j.add(H.file)}),j);try{if(M=TR(_).process(E,I),r.isAsync)return M.then(F=>({code:F.css||"",map:F.map&&F.map.toJSON(),errors:$,modules:A,rawResult:F,dependencies:B(F.messages)})).catch(F=>({code:"",map:void 0,errors:[...$,F],rawResult:void 0,dependencies:j}));B(M.messages),O=M.css,R=M.map}catch(F){$.push(F)}return{code:O||"",map:R&&R.toJSON(),errors:$,rawResult:M,dependencies:j}}function JR(r,e){if(!r.preprocessCustomRequire)throw new Error("[@vue/compiler-sfc] Style preprocessing in the browser build must provide the `preprocessCustomRequire` option to return the in-browser version of the preprocessor.");return e(r.source,r.inMap||r.map,Object.assign({filename:r.filename},r.preprocessOptions),r.preprocessCustomRequire)}const FT=_h,Wb=Object.freeze(Object.defineProperty({__proto__:null,MagicString:xt,babelParse:Ta,compileScript:jM,compileStyle:KR,compileStyleAsync:YR,compileTemplate:kk,extractIdentifiers:Zn,generateCodeFrame:vo,isInDestructureAssignment:Xo,isStaticProperty:Qo,parse:XM,rewriteDefault:_k,shouldTransformRef:lu,transformRef:Ek,transformRefAST:uu,walk:FT,walkIdentifiers:Jo},Symbol.toStringTag,{value:"Module"})),XR=["onMousedown"],QR=Wi({__name:"SplitPane",props:{layout:null},setup(r){const e=r,t=du(()=>e.layout==="vertical"),n=rs(),s=Mi("store"),a=rs(s.initialShowOutput),l=Aw({dragging:!1,split:50}),u=du(()=>{const{split:x}=l;return x<20?20:x>80?80:x});let c=0,m=0;function g(x){l.dragging=!0,c=t.value?x.pageY:x.pageX,m=u.value}function v(x){if(l.dragging){const E=t.value?x.pageY:x.pageX,S=t.value?n.value.offsetHeight:n.value.offsetWidth,C=E-c;l.split=m+~~(C/S*100)}}function b(){l.dragging=!1}return(x,E)=>(Nr(),hn("div",{ref_key:"container",ref:n,class:yo(["split-pane",{dragging:l.dragging,"show-output":a.value,vertical:_r(t)}]),onMousemove:v,onMouseup:b,onMouseleave:b},[Er("div",{class:"left",style:h0({[_r(t)?"height":"width"]:_r(u)+"%"})},[f0(x.$slots,"left",{},void 0,!0),Er("div",{class:"dragger",onMousedown:Iw(g,["prevent"])},null,40,XR)],4),Er("div",{class:"right",style:h0({[_r(t)?"height":"width"]:100-_r(u)+"%"})},[f0(x.$slots,"right",{},void 0,!0)],4),Er("button",{class:"toggler",onClick:E[0]||(E[0]=S=>a.value=!a.value)},eh(a.value?"< Code":"Output >"),1)],34))}}),Ma=(r,e)=>{const t=r.__vccOpts||r;for(const[n,s]of e)t[n]=s;return t},ZR=Ma(QR,[["__scopeId","data-v-3102671e"]]),BT=r=>(oC("data-v-cbb0a4e5"),r=r(),lC(),r),e3=["onClick"],t3={class:"label"},r3=["onClick"],n3=BT(()=>Er("svg",{class:"icon",width:"12",height:"12",viewBox:"0 0 24 24"},[Er("line",{stroke:"#999",x1:"18",y1:"6",x2:"6",y2:"18"}),Er("line",{stroke:"#999",x1:"6",y1:"6",x2:"18",y2:"18"})],-1)),s3=[n3],i3={key:0,class:"file pending"},a3=["onKeyup"],o3={key:1,class:"import-map-wrapper"},l3=BT(()=>Er("span",{class:"label"},"Import Map",-1)),u3=[l3],c3=Wi({__name:"FileSelector",setup(r){const e=Mi("store"),t=rs(!1),n=rs("Comp.vue"),s="import-map.json",a=Mi("import-map"),l=du(()=>Object.entries(e.state.files).filter(([x,E])=>x!==s&&!E.hidden).map(([x])=>x));function u(){let x=0,E="Comp.vue";for(;;){let S=!1;for(const C in e.state.files)if(C===E){S=!0,E=`Comp${++x}.vue`;break}if(!S)break}n.value=E,t.value=!0}function c(){t.value=!1}function m({el:x}){x.focus()}function g(){if(!t.value)return;const x=n.value;if(!/\.(vue|js|ts|css)$/.test(x)){e.state.errors=["Playground only supports *.vue, *.js, *.ts, *.css files."];return}if(x in e.state.files){e.state.errors=[`File "${x}" already exists.`];return}e.state.errors=[],c(),e.addFile(x)}const v=rs(null);function b(x){x.preventDefault();const E=v.value,S=Math.abs(x.deltaX)>=Math.abs(x.deltaY)?x.deltaX:x.deltaY,C=30*(S>0?1:-1);E.scrollTo({left:E.scrollLeft+C})}return(x,E)=>(Nr(),hn("div",{class:yo(["file-selector",{"has-import-map":_r(a)}]),onWheel:b,ref_key:"fileSel",ref:v},[(Nr(!0),hn(pu,null,Nw(_r(l),(S,C)=>(Nr(),hn("div",{class:yo(["file",{active:_r(e).state.activeFile.filename===S}]),onClick:_=>_r(e).setActive(S)},[Er("span",t3,eh(S===s?"Import Map":S),1),C>0?(Nr(),hn("span",{key:0,class:"remove",onClick:Iw(_=>_r(e).deleteFile(S),["stop"])},s3,8,r3)):go("",!0)],10,e3))),256)),t.value?(Nr(),hn("div",i3,[Pw(Er("input",{"onUpdate:modelValue":E[0]||(E[0]=S=>n.value=S),spellcheck:"false",onBlur:g,onKeyup:[p0(g,["enter"]),p0(c,["esc"])],onVnodeMounted:m},null,40,a3),[[aC,n.value]])])):go("",!0),Er("button",{class:"add",onClick:u},"+"),_r(a)?(Nr(),hn("div",o3,[Er("div",{class:yo(["file import-map",{active:_r(e).state.activeFile.filename===s}]),onClick:E[1]||(E[1]=S=>_r(e).setActive(s))},u3,2)])):go("",!0)],34))}}),f3=Ma(c3,[["__scopeId","data-v-cbb0a4e5"]]);var Lr=Uint8Array,kn=Uint16Array,Wh=Uint32Array,zh=new Lr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Hh=new Lr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),A1=new Lr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),$T=function(r,e){for(var t=new kn(31),n=0;n<31;++n)t[n]=e+=1<<r[n-1];for(var s=new Wh(t[30]),n=1;n<30;++n)for(var a=t[n];a<t[n+1];++a)s[a]=a-t[n]<<5|n;return[t,s]},jT=$T(zh,2),UT=jT[0],C1=jT[1];UT[28]=258,C1[258]=28;var qT=$T(Hh,0),h3=qT[0],zb=qT[1],P1=new kn(32768);for(var Qt=0;Qt<32768;++Qt){var _i=(Qt&43690)>>>1|(Qt&21845)<<1;_i=(_i&52428)>>>2|(_i&13107)<<2,_i=(_i&61680)>>>4|(_i&3855)<<4,P1[Qt]=((_i&65280)>>>8|(_i&255)<<8)>>>1}var Ts=function(r,e,t){for(var n=r.length,s=0,a=new kn(e);s<n;++s)r[s]&&++a[r[s]-1];var l=new kn(e);for(s=0;s<e;++s)l[s]=l[s-1]+a[s-1]<<1;var u;if(t){u=new kn(1<<e);var c=15-e;for(s=0;s<n;++s)if(r[s])for(var m=s<<4|r[s],g=e-r[s],v=l[r[s]-1]++<<g,b=v|(1<<g)-1;v<=b;++v)u[P1[v]>>>c]=m}else for(u=new kn(n),s=0;s<n;++s)r[s]&&(u[s]=P1[l[r[s]-1]++]>>>15-r[s]);return u},Ui=new Lr(288);for(var Qt=0;Qt<144;++Qt)Ui[Qt]=8;for(var Qt=144;Qt<256;++Qt)Ui[Qt]=9;for(var Qt=256;Qt<280;++Qt)Ui[Qt]=7;for(var Qt=280;Qt<288;++Qt)Ui[Qt]=8;var $u=new Lr(32);for(var Qt=0;Qt<32;++Qt)$u[Qt]=5;var p3=Ts(Ui,9,0),d3=Ts(Ui,9,1),m3=Ts($u,5,0),g3=Ts($u,5,1),Sd=function(r){for(var e=r[0],t=1;t<r.length;++t)r[t]>e&&(e=r[t]);return e},Xn=function(r,e,t){var n=e/8|0;return(r[n]|r[n+1]<<8)>>(e&7)&t},kd=function(r,e){var t=e/8|0;return(r[t]|r[t+1]<<8|r[t+2]<<16)>>(e&7)},Dg=function(r){return(r+7)/8|0},Vh=function(r,e,t){(e==null||e<0)&&(e=0),(t==null||t>r.length)&&(t=r.length);var n=new(r.BYTES_PER_ELEMENT==2?kn:r.BYTES_PER_ELEMENT==4?Wh:Lr)(t-e);return n.set(r.subarray(e,t)),n},y3=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Qn=function(r,e,t){var n=new Error(e||y3[r]);if(n.code=r,Error.captureStackTrace&&Error.captureStackTrace(n,Qn),!t)throw n;return n},v3=function(r,e,t){var n=r.length;if(!n||t&&t.f&&!t.l)return e||new Lr(0);var s=!e||t,a=!t||t.i;t||(t={}),e||(e=new Lr(n*3));var l=function(z){var ne=e.length;if(z>ne){var fe=new Lr(Math.max(ne*2,z));fe.set(e),e=fe}},u=t.f||0,c=t.p||0,m=t.b||0,g=t.l,v=t.d,b=t.m,x=t.n,E=n*8;do{if(!g){u=Xn(r,c,1);var S=Xn(r,c+1,3);if(c+=3,S)if(S==1)g=d3,v=g3,b=9,x=5;else if(S==2){var I=Xn(r,c,31)+257,M=Xn(r,c+10,15)+4,O=I+Xn(r,c+5,31)+1;c+=14;for(var R=new Lr(O),j=new Lr(19),$=0;$<M;++$)j[A1[$]]=Xn(r,c+$*3,7);c+=M*3;for(var B=Sd(j),F=(1<<B)-1,H=Ts(j,B,1),$=0;$<O;){var V=H[Xn(r,c,F)];c+=V&15;var C=V>>>4;if(C<16)R[$++]=C;else{var X=0,J=0;for(C==16?(J=3+Xn(r,c,3),c+=2,X=R[$-1]):C==17?(J=3+Xn(r,c,7),c+=3):C==18&&(J=11+Xn(r,c,127),c+=7);J--;)R[$++]=X}}var D=R.subarray(0,I),ce=R.subarray(I);b=Sd(D),x=Sd(ce),g=Ts(D,b,1),v=Ts(ce,x,1)}else Qn(1);else{var C=Dg(c)+4,_=r[C-4]|r[C-3]<<8,A=C+_;if(A>n){a&&Qn(0);break}s&&l(m+_),e.set(r.subarray(C,A),m),t.b=m+=_,t.p=c=A*8,t.f=u;continue}if(c>E){a&&Qn(0);break}}s&&l(m+131072);for(var W=(1<<b)-1,Z=(1<<x)-1,de=c;;de=c){var X=g[kd(r,c)&W],he=X>>>4;if(c+=X&15,c>E){a&&Qn(0);break}if(X||Qn(2),he<256)e[m++]=he;else if(he==256){de=c,g=null;break}else{var oe=he-254;if(he>264){var $=he-257,we=zh[$];oe=Xn(r,c,(1<<we)-1)+UT[$],c+=we}var re=v[kd(r,c)&Z],ge=re>>>4;re||Qn(3),c+=re&15;var ce=h3[ge];if(ge>3){var we=Hh[ge];ce+=kd(r,c)&(1<<we)-1,c+=we}if(c>E){a&&Qn(0);break}s&&l(m+131072);for(var ee=m+oe;m<ee;m+=4)e[m]=e[m-ce],e[m+1]=e[m+1-ce],e[m+2]=e[m+2-ce],e[m+3]=e[m+3-ce];m=ee}}t.l=g,t.p=de,t.b=m,t.f=u,g&&(u=1,t.m=b,t.d=v,t.n=x)}while(!u);return m==e.length?e:Vh(e,0,m)},zs=function(r,e,t){t<<=e&7;var n=e/8|0;r[n]|=t,r[n+1]|=t>>>8},Vl=function(r,e,t){t<<=e&7;var n=e/8|0;r[n]|=t,r[n+1]|=t>>>8,r[n+2]|=t>>>16},Td=function(r,e){for(var t=[],n=0;n<r.length;++n)r[n]&&t.push({s:n,f:r[n]});var s=t.length,a=t.slice();if(!s)return[Rg,0];if(s==1){var l=new Lr(t[0].s+1);return l[t[0].s]=1,[l,1]}t.sort(function(O,R){return O.f-R.f}),t.push({s:-1,f:25001});var u=t[0],c=t[1],m=0,g=1,v=2;for(t[0]={s:-1,f:u.f+c.f,l:u,r:c};g!=s-1;)u=t[t[m].f<t[v].f?m++:v++],c=t[m!=g&&t[m].f<t[v].f?m++:v++],t[g++]={s:-1,f:u.f+c.f,l:u,r:c};for(var b=a[0].s,n=1;n<s;++n)a[n].s>b&&(b=a[n].s);var x=new kn(b+1),E=I1(t[g-1],x,0);if(E>e){var n=0,S=0,C=E-e,_=1<<C;for(a.sort(function(R,j){return x[j.s]-x[R.s]||R.f-j.f});n<s;++n){var A=a[n].s;if(x[A]>e)S+=_-(1<<E-x[A]),x[A]=e;else break}for(S>>>=C;S>0;){var I=a[n].s;x[I]<e?S-=1<<e-x[I]++-1:++n}for(;n>=0&&S;--n){var M=a[n].s;x[M]==e&&(--x[M],++S)}E=e}return[new Lr(x),E]},I1=function(r,e,t){return r.s==-1?Math.max(I1(r.l,e,t+1),I1(r.r,e,t+1)):e[r.s]=t},Hb=function(r){for(var e=r.length;e&&!r[--e];);for(var t=new kn(++e),n=0,s=r[0],a=1,l=function(c){t[n++]=c},u=1;u<=e;++u)if(r[u]==s&&u!=e)++a;else{if(!s&&a>2){for(;a>138;a-=138)l(32754);a>2&&(l(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(l(s),--a;a>6;a-=6)l(8304);a>2&&(l(a-3<<5|8208),a=0)}for(;a--;)l(s);a=1,s=r[u]}return[t.subarray(0,n),e]},Gl=function(r,e){for(var t=0,n=0;n<e.length;++n)t+=r[n]*e[n];return t},N1=function(r,e,t){var n=t.length,s=Dg(e+2);r[s]=n&255,r[s+1]=n>>>8,r[s+2]=r[s]^255,r[s+3]=r[s+1]^255;for(var a=0;a<n;++a)r[s+a+4]=t[a];return(s+4+n)*8},Vb=function(r,e,t,n,s,a,l,u,c,m,g){zs(e,g++,t),++s[256];for(var v=Td(s,15),b=v[0],x=v[1],E=Td(a,15),S=E[0],C=E[1],_=Hb(b),A=_[0],I=_[1],M=Hb(S),O=M[0],R=M[1],j=new kn(19),$=0;$<A.length;++$)j[A[$]&31]++;for(var $=0;$<O.length;++$)j[O[$]&31]++;for(var B=Td(j,7),F=B[0],H=B[1],V=19;V>4&&!F[A1[V-1]];--V);var X=m+5<<3,J=Gl(s,Ui)+Gl(a,$u)+l,D=Gl(s,b)+Gl(a,S)+l+14+3*V+Gl(j,F)+(2*j[16]+3*j[17]+7*j[18]);if(X<=J&&X<=D)return N1(e,g,r.subarray(c,c+m));var ce,W,Z,de;if(zs(e,g,1+(D<J)),g+=2,D<J){ce=Ts(b,x,0),W=b,Z=Ts(S,C,0),de=S;var he=Ts(F,H,0);zs(e,g,I-257),zs(e,g+5,R-1),zs(e,g+10,V-4),g+=14;for(var $=0;$<V;++$)zs(e,g+3*$,F[A1[$]]);g+=3*V;for(var oe=[A,O],we=0;we<2;++we)for(var re=oe[we],$=0;$<re.length;++$){var ge=re[$]&31;zs(e,g,he[ge]),g+=F[ge],ge>15&&(zs(e,g,re[$]>>>5&127),g+=re[$]>>>12)}}else ce=p3,W=Ui,Z=m3,de=$u;for(var $=0;$<u;++$)if(n[$]>255){var ge=n[$]>>>18&31;Vl(e,g,ce[ge+257]),g+=W[ge+257],ge>7&&(zs(e,g,n[$]>>>23&31),g+=zh[ge]);var ee=n[$]&31;Vl(e,g,Z[ee]),g+=de[ee],ee>3&&(Vl(e,g,n[$]>>>5&8191),g+=Hh[ee])}else Vl(e,g,ce[n[$]]),g+=W[n[$]];return Vl(e,g,ce[256]),g+W[256]},b3=new Wh([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Rg=new Lr(0),w3=function(r,e,t,n,s,a){var l=r.length,u=new Lr(n+l+5*(1+Math.ceil(l/7e3))+s),c=u.subarray(n,u.length-s),m=0;if(!e||l<8)for(var g=0;g<=l;g+=65535){var v=g+65535;v>=l&&(c[m>>3]=a),m=N1(c,m+1,r.subarray(g,v))}else{for(var b=b3[e-1],x=b>>>13,E=b&8191,S=(1<<t)-1,C=new kn(32768),_=new kn(S+1),A=Math.ceil(t/3),I=2*A,M=function(Ue){return(r[Ue]^r[Ue+1]<<A^r[Ue+2]<<I)&S},O=new Wh(25e3),R=new kn(288),j=new kn(32),$=0,B=0,g=0,F=0,H=0,V=0;g<l;++g){var X=M(g),J=g&32767,D=_[X];if(C[J]=D,_[X]=J,H<=g){var ce=l-g;if(($>7e3||F>24576)&&ce>423){m=Vb(r,c,0,O,R,j,B,F,V,g-V,m),F=$=B=0,V=g;for(var W=0;W<286;++W)R[W]=0;for(var W=0;W<30;++W)j[W]=0}var Z=2,de=0,he=E,oe=J-D&32767;if(ce>2&&X==M(g-oe))for(var we=Math.min(x,ce)-1,re=Math.min(32767,g),ge=Math.min(258,ce);oe<=re&&--he&&J!=D;){if(r[g+Z]==r[g+Z-oe]){for(var ee=0;ee<ge&&r[g+ee]==r[g+ee-oe];++ee);if(ee>Z){if(Z=ee,de=oe,ee>we)break;for(var z=Math.min(oe,ee-2),ne=0,W=0;W<z;++W){var fe=g-oe+W+32768&32767,ye=C[fe],pe=fe-ye+32768&32767;pe>ne&&(ne=pe,D=fe)}}}J=D,D=C[J],oe+=J-D+32768&32767}if(de){O[F++]=268435456|C1[Z]<<18|zb[de];var le=C1[Z]&31,_e=zb[de]&31;B+=zh[le]+Hh[_e],++R[257+le],++j[_e],H=g+Z,++$}else O[F++]=r[g],++R[r[g]]}}m=Vb(r,c,a,O,R,j,B,F,V,g-V,m),!a&&m&7&&(m=N1(c,m+1,Rg))}return Vh(u,0,n+Dg(m)+s)},x3=function(){var r=1,e=0;return{p:function(t){for(var n=r,s=e,a=t.length|0,l=0;l!=a;){for(var u=Math.min(l+2655,a);l<u;++l)s+=n+=t[l];n=(n&65535)+15*(n>>16),s=(s&65535)+15*(s>>16)}r=n,e=s},d:function(){return r%=65521,e%=65521,(r&255)<<24|r>>>8<<16|(e&255)<<8|e>>>8}}},S3=function(r,e,t,n,s){return w3(r,e.level==null?6:e.level,e.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):12+e.mem,t,n,!s)},k3=function(r,e,t){for(;t;++e)r[e]=t,t>>>=8},T3=function(r,e){var t=e.level,n=t==0?0:t<6?1:t==9?3:2;r[0]=120,r[1]=n<<6|(n?32-2*n:1)},_3=function(r){((r[0]&15)!=8||r[0]>>>4>7||(r[0]<<8|r[1])%31)&&Qn(6,"invalid zlib data"),r[1]&32&&Qn(6,"invalid zlib data: preset dictionaries not supported")};function E3(r,e){e||(e={});var t=x3();t.p(r);var n=S3(r,e,2,4);return T3(n,e),k3(n,n.length-4,t.d()),n}function A3(r,e){return v3((_3(r),r.subarray(2,-4)),e)}var Gb=typeof TextEncoder<"u"&&new TextEncoder,O1=typeof TextDecoder<"u"&&new TextDecoder,C3=0;try{O1.decode(Rg,{stream:!0}),C3=1}catch{}var P3=function(r){for(var e="",t=0;;){var n=r[t++],s=(n>127)+(n>223)+(n>239);if(t+s>r.length)return[e,Vh(r,t-1)];s?s==3?(n=((n&15)<<18|(r[t++]&63)<<12|(r[t++]&63)<<6|r[t++]&63)-65536,e+=String.fromCharCode(55296|n>>10,56320|n&1023)):s&1?e+=String.fromCharCode((n&31)<<6|r[t++]&63):e+=String.fromCharCode((n&15)<<12|(r[t++]&63)<<6|r[t++]&63):e+=String.fromCharCode(n)}};function WT(r,e){if(e){for(var t=new Lr(r.length),n=0;n<r.length;++n)t[n]=r.charCodeAt(n);return t}if(Gb)return Gb.encode(r);for(var s=r.length,a=new Lr(r.length+(r.length>>1)),l=0,u=function(g){a[l++]=g},n=0;n<s;++n){if(l+5>a.length){var c=new Lr(l+8+(s-n<<1));c.set(a),a=c}var m=r.charCodeAt(n);m<128||e?u(m):m<2048?(u(192|m>>6),u(128|m&63)):m>55295&&m<57344?(m=65536+(m&1023<<10)|r.charCodeAt(++n)&1023,u(240|m>>18),u(128|m>>12&63),u(128|m>>6&63),u(128|m&63)):(u(224|m>>12),u(128|m>>6&63),u(128|m&63))}return Vh(a,0,l)}function zT(r,e){if(e){for(var t="",n=0;n<r.length;n+=16384)t+=String.fromCharCode.apply(null,r.subarray(n,n+16384));return t}else{if(O1)return O1.decode(r);var s=P3(r),a=s[0],l=s[1];return l.length&&Qn(8),a}}function HT(r,e=100){let t;return(...n)=>{t&&clearTimeout(t),t=setTimeout(()=>{r(...n)},e)}}function I3(r){const e=WT(r),t=E3(e,{level:9}),n=zT(t,!0);return btoa(n)}function N3(r){const e=atob(r);if(e.startsWith("x\xDA")){const t=WT(e,!0),n=A3(t);return zT(n)}return decodeURIComponent(escape(e))}var Ca=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_d={exports:{}},Kb;function An(){return Kb||(Kb=1,function(r,e){(function(t,n){r.exports=n()})(Ca,function(){var t=navigator.userAgent,n=navigator.platform,s=/gecko\/\d/i.test(t),a=/MSIE \d/.test(t),l=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),u=/Edge\/(\d+)/.exec(t),c=a||l||u,m=c&&(a?document.documentMode||6:+(u||l)[1]),g=!u&&/WebKit\//.test(t),v=g&&/Qt\/\d+\.\d+/.test(t),b=!u&&/Chrome\//.test(t),x=/Opera\//.test(t),E=/Apple Computer/.test(navigator.vendor),S=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),C=/PhantomJS/.test(t),_=E&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),A=/Android/.test(t),I=_||A||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),M=_||/Mac/.test(n),O=/\bCrOS\b/.test(t),R=/win/i.test(n),j=x&&t.match(/Version\/(\d*\.\d*)/);j&&(j=Number(j[1])),j&&j>=15&&(x=!1,g=!0);var $=M&&(v||x&&(j==null||j<12.11)),B=s||c&&m>=9;function F(i){return new RegExp("(^|\\s)"+i+"(?:$|\\s)\\s*")}var H=function(i,o){var h=i.className,f=F(o).exec(h);if(f){var d=h.slice(f.index+f[0].length);i.className=h.slice(0,f.index)+(d?f[1]+d:"")}};function V(i){for(var o=i.childNodes.length;o>0;--o)i.removeChild(i.firstChild);return i}function X(i,o){return V(i).appendChild(o)}function J(i,o,h,f){var d=document.createElement(i);if(h&&(d.className=h),f&&(d.style.cssText=f),typeof o=="string")d.appendChild(document.createTextNode(o));else if(o)for(var y=0;y<o.length;++y)d.appendChild(o[y]);return d}function D(i,o,h,f){var d=J(i,o,h,f);return d.setAttribute("role","presentation"),d}var ce;document.createRange?ce=function(i,o,h,f){var d=document.createRange();return d.setEnd(f||i,h),d.setStart(i,o),d}:ce=function(i,o,h){var f=document.body.createTextRange();try{f.moveToElementText(i.parentNode)}catch{return f}return f.collapse(!0),f.moveEnd("character",h),f.moveStart("character",o),f};function W(i,o){if(o.nodeType==3&&(o=o.parentNode),i.contains)return i.contains(o);do if(o.nodeType==11&&(o=o.host),o==i)return!0;while(o=o.parentNode)}function Z(){var i;try{i=document.activeElement}catch{i=document.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function de(i,o){var h=i.className;F(o).test(h)||(i.className+=(h?" ":"")+o)}function he(i,o){for(var h=i.split(" "),f=0;f<h.length;f++)h[f]&&!F(h[f]).test(o)&&(o+=" "+h[f]);return o}var oe=function(i){i.select()};_?oe=function(i){i.selectionStart=0,i.selectionEnd=i.value.length}:c&&(oe=function(i){try{i.select()}catch{}});function we(i){var o=Array.prototype.slice.call(arguments,1);return function(){return i.apply(null,o)}}function re(i,o,h){o||(o={});for(var f in i)i.hasOwnProperty(f)&&(h!==!1||!o.hasOwnProperty(f))&&(o[f]=i[f]);return o}function ge(i,o,h,f,d){o==null&&(o=i.search(/[^\s\u00a0]/),o==-1&&(o=i.length));for(var y=f||0,w=d||0;;){var k=i.indexOf(" ",y);if(k<0||k>=o)return w+(o-y);w+=k-y,w+=h-w%h,y=k+1}}var ee=function(){this.id=null,this.f=null,this.time=0,this.handler=we(this.onTimeout,this)};ee.prototype.onTimeout=function(i){i.id=0,i.time<=+new Date?i.f():setTimeout(i.handler,i.time-+new Date)},ee.prototype.set=function(i,o){this.f=o;var h=+new Date+i;(!this.id||h<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,i),this.time=h)};function z(i,o){for(var h=0;h<i.length;++h)if(i[h]==o)return h;return-1}var ne=50,fe={toString:function(){return"CodeMirror.Pass"}},ye={scroll:!1},pe={origin:"*mouse"},le={origin:"+move"};function _e(i,o,h){for(var f=0,d=0;;){var y=i.indexOf(" ",f);y==-1&&(y=i.length);var w=y-f;if(y==i.length||d+w>=o)return f+Math.min(w,o-d);if(d+=y-f,d+=h-d%h,f=y+1,d>=o)return f}}var De=[""];function Ue(i){for(;De.length<=i;)De.push(qe(De)+" ");return De[i]}function qe(i){return i[i.length-1]}function Xe(i,o){for(var h=[],f=0;f<i.length;f++)h[f]=o(i[f],f);return h}function tt(i,o,h){for(var f=0,d=h(o);f<i.length&&h(i[f])<=d;)f++;i.splice(f,0,o)}function Je(){}function dt(i,o){var h;return Object.create?h=Object.create(i):(Je.prototype=i,h=new Je),o&&re(o,h),h}var Lt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ht(i){return/\w/.test(i)||i>"\x80"&&(i.toUpperCase()!=i.toLowerCase()||Lt.test(i))}function ae(i,o){return o?o.source.indexOf("\\w")>-1&&ht(i)?!0:o.test(i):ht(i)}function Ee(i){for(var o in i)if(i.hasOwnProperty(o)&&i[o])return!1;return!0}var me=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ct(i){return i.charCodeAt(0)>=768&&me.test(i)}function tr(i,o,h){for(;(h<0?o>0:o<i.length)&&ct(i.charAt(o));)o+=h;return o}function vr(i,o,h){for(var f=o>h?-1:1;;){if(o==h)return o;var d=(o+h)/2,y=f<0?Math.ceil(d):Math.floor(d);if(y==o)return i(y)?o:h;i(y)?h=y:o=y+f}}function Vn(i,o,h,f){if(!i)return f(o,h,"ltr",0);for(var d=!1,y=0;y<i.length;++y){var w=i[y];(w.from<h&&w.to>o||o==h&&w.to==o)&&(f(Math.max(w.from,o),Math.min(w.to,h),w.level==1?"rtl":"ltr",y),d=!0)}d||f(o,h,"ltr")}var ur=null;function Mt(i,o,h){var f;ur=null;for(var d=0;d<i.length;++d){var y=i[d];if(y.from<o&&y.to>o)return d;y.to==o&&(y.from!=y.to&&h=="before"?f=d:ur=d),y.from==o&&(y.from!=y.to&&h!="before"?f=d:ur=d)}return f!=null?f:ur}var cr=function(){var i="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",o="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function h(N){return N<=247?i.charAt(N):1424<=N&&N<=1524?"R":1536<=N&&N<=1785?o.charAt(N-1536):1774<=N&&N<=2220?"r":8192<=N&&N<=8203?"w":N==8204?"b":"L"}var f=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,y=/[LRr]/,w=/[Lb1n]/,k=/[1n]/;function P(N,q,G){this.level=N,this.from=q,this.to=G}return function(N,q){var G=q=="ltr"?"L":"R";if(N.length==0||q=="ltr"&&!f.test(N))return!1;for(var se=N.length,te=[],ve=0;ve<se;++ve)te.push(h(N.charCodeAt(ve)));for(var Se=0,Ne=G;Se<se;++Se){var Re=te[Se];Re=="m"?te[Se]=Ne:Ne=Re}for(var je=0,Fe=G;je<se;++je){var He=te[je];He=="1"&&Fe=="r"?te[je]="n":y.test(He)&&(Fe=He,He=="r"&&(te[je]="R"))}for(var nt=1,et=te[0];nt<se-1;++nt){var vt=te[nt];vt=="+"&&et=="1"&&te[nt+1]=="1"?te[nt]="1":vt==","&&et==te[nt+1]&&(et=="1"||et=="n")&&(te[nt]=et),et=vt}for(var qt=0;qt<se;++qt){var kr=te[qt];if(kr==",")te[qt]="N";else if(kr=="%"){var rr=void 0;for(rr=qt+1;rr<se&&te[rr]=="%";++rr);for(var yn=qt&&te[qt-1]=="!"||rr<se&&te[rr]=="1"?"1":"N",un=qt;un<rr;++un)te[un]=yn;qt=rr-1}}for(var pr=0,cn=G;pr<se;++pr){var Pr=te[pr];cn=="L"&&Pr=="1"?te[pr]="L":y.test(Pr)&&(cn=Pr)}for(var gr=0;gr<se;++gr)if(d.test(te[gr])){var dr=void 0;for(dr=gr+1;dr<se&&d.test(te[dr]);++dr);for(var or=(gr?te[gr-1]:G)=="L",fn=(dr<se?te[dr]:G)=="L",to=or==fn?or?"L":"R":G,Si=gr;Si<dr;++Si)te[Si]=to;gr=dr-1}for(var Ur=[],ms,Tr=0;Tr<se;)if(w.test(te[Tr])){var Vp=Tr;for(++Tr;Tr<se&&w.test(te[Tr]);++Tr);Ur.push(new P(0,Vp,Tr))}else{var qs=Tr,sa=Ur.length,ia=q=="rtl"?1:0;for(++Tr;Tr<se&&te[Tr]!="L";++Tr);for(var Qr=qs;Qr<Tr;)if(k.test(te[Qr])){qs<Qr&&(Ur.splice(sa,0,new P(1,qs,Qr)),sa+=ia);var ro=Qr;for(++Qr;Qr<Tr&&k.test(te[Qr]);++Qr);Ur.splice(sa,0,new P(2,ro,Qr)),sa+=ia,qs=Qr}else++Qr;qs<Tr&&Ur.splice(sa,0,new P(1,qs,Tr))}return q=="ltr"&&(Ur[0].level==1&&(ms=N.match(/^\s+/))&&(Ur[0].from=ms[0].length,Ur.unshift(new P(0,0,ms[0].length))),qe(Ur).level==1&&(ms=N.match(/\s+$/))&&(qe(Ur).to-=ms[0].length,Ur.push(new P(0,se-ms[0].length,se)))),q=="rtl"?Ur.reverse():Ur}}();function Ht(i,o){var h=i.order;return h==null&&(h=i.order=cr(i.text,o)),h}var mr=[],Qe=function(i,o,h){if(i.addEventListener)i.addEventListener(o,h,!1);else if(i.attachEvent)i.attachEvent("on"+o,h);else{var f=i._handlers||(i._handlers={});f[o]=(f[o]||mr).concat(h)}};function Kr(i,o){return i._handlers&&i._handlers[o]||mr}function Bt(i,o,h){if(i.removeEventListener)i.removeEventListener(o,h,!1);else if(i.detachEvent)i.detachEvent("on"+o,h);else{var f=i._handlers,d=f&&f[o];if(d){var y=z(d,h);y>-1&&(f[o]=d.slice(0,y).concat(d.slice(y+1)))}}}function rt(i,o){var h=Kr(i,o);if(!!h.length)for(var f=Array.prototype.slice.call(arguments,2),d=0;d<h.length;++d)h[d].apply(null,f)}function Y(i,o,h){return typeof o=="string"&&(o={type:o,preventDefault:function(){this.defaultPrevented=!0}}),rt(i,h||o.type,i,o),Ze(o)||o.codemirrorIgnore}function Oe(i){var o=i._handlers&&i._handlers.cursorActivity;if(!!o)for(var h=i.curOp.cursorActivityHandlers||(i.curOp.cursorActivityHandlers=[]),f=0;f<o.length;++f)z(h,o[f])==-1&&h.push(o[f])}function Pe(i,o){return Kr(i,o).length>0}function Ke(i){i.prototype.on=function(o,h){Qe(this,o,h)},i.prototype.off=function(o,h){Bt(this,o,h)}}function $e(i){i.preventDefault?i.preventDefault():i.returnValue=!1}function Ve(i){i.stopPropagation?i.stopPropagation():i.cancelBubble=!0}function Ze(i){return i.defaultPrevented!=null?i.defaultPrevented:i.returnValue==!1}function Vt(i){$e(i),Ve(i)}function _t(i){return i.target||i.srcElement}function br(i){var o=i.which;return o==null&&(i.button&1?o=1:i.button&2?o=3:i.button&4&&(o=2)),M&&i.ctrlKey&&o==1&&(o=3),o}var Kt=function(){if(c&&m<9)return!1;var i=J("div");return"draggable"in i||"dragDrop"in i}(),hr;function ci(i){if(hr==null){var o=J("span","\u200B");X(i,J("span",[o,document.createTextNode("x")])),i.firstChild.offsetHeight!=0&&(hr=o.offsetWidth<=1&&o.offsetHeight>2&&!(c&&m<8))}var h=hr?J("span","\u200B"):J("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return h.setAttribute("cm-text",""),h}var Os;function mn(i){if(Os!=null)return Os;var o=X(i,document.createTextNode("A\u062EA")),h=ce(o,0,1).getBoundingClientRect(),f=ce(o,1,2).getBoundingClientRect();return V(i),!h||h.left==h.right?!1:Os=f.right-h.right<3}var Ls=`
b`.split(/\n/).length!=3?function(i){for(var o=0,h=[],f=i.length;o<=f;){var d=i.indexOf(`
`,o);d==-1&&(d=i.length);var y=i.slice(o,i.charAt(d-1)=="\r"?d-1:d),w=y.indexOf("\r");w!=-1?(h.push(y.slice(0,w)),o+=w+1):(h.push(y),o=d+1)}return h}:function(i){return i.split(/\r\n?|\n/)},fi=window.getSelection?function(i){try{return i.selectionStart!=i.selectionEnd}catch{return!1}}:function(i){var o;try{o=i.ownerDocument.selection.createRange()}catch{}return!o||o.parentElement()!=i?!1:o.compareEndPoints("StartToEnd",o)!=0},hi=function(){var i=J("div");return"oncopy"in i?!0:(i.setAttribute("oncopy","return;"),typeof i.oncopy=="function")}(),Ms=null;function Bn(i){if(Ms!=null)return Ms;var o=X(i,J("span","x")),h=o.getBoundingClientRect(),f=ce(o,0,1).getBoundingClientRect();return Ms=Math.abs(h.left-f.left)>1}var Yr={},Fr={};function pi(i,o){arguments.length>2&&(o.dependencies=Array.prototype.slice.call(arguments,2)),Yr[i]=o}function Cn(i,o){Fr[i]=o}function cs(i){if(typeof i=="string"&&Fr.hasOwnProperty(i))i=Fr[i];else if(i&&typeof i.name=="string"&&Fr.hasOwnProperty(i.name)){var o=Fr[i.name];typeof o=="string"&&(o={name:o}),i=dt(o,i),i.name=o.name}else{if(typeof i=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(i))return cs("application/xml");if(typeof i=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(i))return cs("application/json")}return typeof i=="string"?{name:i}:i||{name:"null"}}function fs(i,o){o=cs(o);var h=Yr[o.name];if(!h)return fs(i,"text/plain");var f=h(i,o);if(sn.hasOwnProperty(o.name)){var d=sn[o.name];for(var y in d)!d.hasOwnProperty(y)||(f.hasOwnProperty(y)&&(f["_"+y]=f[y]),f[y]=d[y])}if(f.name=o.name,o.helperType&&(f.helperType=o.helperType),o.modeProps)for(var w in o.modeProps)f[w]=o.modeProps[w];return f}var sn={};function an(i,o){var h=sn.hasOwnProperty(i)?sn[i]:sn[i]={};re(o,h)}function Br(i,o){if(o===!0)return o;if(i.copyState)return i.copyState(o);var h={};for(var f in o){var d=o[f];d instanceof Array&&(d=d.concat([])),h[f]=d}return h}function Ds(i,o){for(var h;i.innerMode&&(h=i.innerMode(o),!(!h||h.mode==i));)o=h.state,i=h.mode;return h||{mode:i,state:o}}function Gi(i,o,h){return i.startState?i.startState(o,h):!0}var Jt=function(i,o,h){this.pos=this.start=0,this.string=i,this.tabSize=o||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=h};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(i){var o=this.string.charAt(this.pos),h;if(typeof i=="string"?h=o==i:h=o&&(i.test?i.test(o):i(o)),h)return++this.pos,o},Jt.prototype.eatWhile=function(i){for(var o=this.pos;this.eat(i););return this.pos>o},Jt.prototype.eatSpace=function(){for(var i=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>i},Jt.prototype.skipToEnd=function(){this.pos=this.string.length},Jt.prototype.skipTo=function(i){var o=this.string.indexOf(i,this.pos);if(o>-1)return this.pos=o,!0},Jt.prototype.backUp=function(i){this.pos-=i},Jt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ge(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ge(this.string,this.lineStart,this.tabSize):0)},Jt.prototype.indentation=function(){return ge(this.string,null,this.tabSize)-(this.lineStart?ge(this.string,this.lineStart,this.tabSize):0)},Jt.prototype.match=function(i,o,h){if(typeof i=="string"){var f=function(w){return h?w.toLowerCase():w},d=this.string.substr(this.pos,i.length);if(f(d)==f(i))return o!==!1&&(this.pos+=i.length),!0}else{var y=this.string.slice(this.pos).match(i);return y&&y.index>0?null:(y&&o!==!1&&(this.pos+=y[0].length),y)}},Jt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Jt.prototype.hideFirstChars=function(i,o){this.lineStart+=i;try{return o()}finally{this.lineStart-=i}},Jt.prototype.lookAhead=function(i){var o=this.lineOracle;return o&&o.lookAhead(i)},Jt.prototype.baseToken=function(){var i=this.lineOracle;return i&&i.baseToken(this.pos)};function Ye(i,o){if(o-=i.first,o<0||o>=i.size)throw new Error("There is no line "+(o+i.first)+" in the document.");for(var h=i;!h.lines;)for(var f=0;;++f){var d=h.children[f],y=d.chunkSize();if(o<y){h=d;break}o-=y}return h.lines[o]}function $n(i,o,h){var f=[],d=o.line;return i.iter(o.line,h.line+1,function(y){var w=y.text;d==h.line&&(w=w.slice(0,h.ch)),d==o.line&&(w=w.slice(o.ch)),f.push(w),++d}),f}function Ki(i,o,h){var f=[];return i.iter(o,h,function(d){f.push(d.text)}),f}function Jr(i,o){var h=o-i.height;if(h)for(var f=i;f;f=f.parent)f.height+=h}function Pt(i){if(i.parent==null)return null;for(var o=i.parent,h=z(o.lines,i),f=o.parent;f;o=f,f=f.parent)for(var d=0;f.children[d]!=o;++d)h+=f.children[d].chunkSize();return h+o.first}function jn(i,o){var h=i.first;e:do{for(var f=0;f<i.children.length;++f){var d=i.children[f],y=d.height;if(o<y){i=d;continue e}o-=y,h+=d.chunkSize()}return h}while(!i.lines);for(var w=0;w<i.lines.length;++w){var k=i.lines[w],P=k.height;if(o<P)break;o-=P}return h+w}function Rs(i,o){return o>=i.first&&o<i.first+i.size}function Yi(i,o){return String(i.lineNumberFormatter(o+i.firstLineNumber))}function Ae(i,o,h){if(h===void 0&&(h=null),!(this instanceof Ae))return new Ae(i,o,h);this.line=i,this.ch=o,this.sticky=h}function L(i,o){return i.line-o.line||i.ch-o.ch}function K(i,o){return i.sticky==o.sticky&&L(i,o)==0}function xe(i){return Ae(i.line,i.ch)}function Ie(i,o){return L(i,o)<0?o:i}function lt(i,o){return L(i,o)<0?i:o}function kt(i,o){return Math.max(i.first,Math.min(o,i.first+i.size-1))}function We(i,o){if(o.line<i.first)return Ae(i.first,0);var h=i.first+i.size-1;return o.line>h?Ae(h,Ye(i,h).text.length):$r(o,Ye(i,o.line).text.length)}function $r(i,o){var h=i.ch;return h==null||h>o?Ae(i.line,o):h<0?Ae(i.line,0):i}function Pn(i,o){for(var h=[],f=0;f<o.length;f++)h[f]=We(i,o[f]);return h}var Fa=function(i,o){this.state=i,this.lookAhead=o},hs=function(i,o,h,f){this.state=o,this.doc=i,this.line=h,this.maxLookAhead=f||0,this.baseTokens=null,this.baseTokenPos=1};hs.prototype.lookAhead=function(i){var o=this.doc.getLine(this.line+i);return o!=null&&i>this.maxLookAhead&&(this.maxLookAhead=i),o},hs.prototype.baseToken=function(i){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=i;)this.baseTokenPos+=2;var o=this.baseTokens[this.baseTokenPos+1];return{type:o&&o.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-i}},hs.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},hs.fromSaved=function(i,o,h){return o instanceof Fa?new hs(i,Br(i.mode,o.state),h,o.lookAhead):new hs(i,Br(i.mode,o),h)},hs.prototype.save=function(i){var o=i!==!1?Br(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Fa(o,this.maxLookAhead):o};function fy(i,o,h,f){var d=[i.state.modeGen],y={};yy(i,o.text,i.doc.mode,h,function(N,q){return d.push(N,q)},y,f);for(var w=h.state,k=function(N){h.baseTokens=d;var q=i.state.overlays[N],G=1,se=0;h.state=!0,yy(i,o.text,q.mode,h,function(te,ve){for(var Se=G;se<te;){var Ne=d[G];Ne>te&&d.splice(G,1,te,d[G+1],Ne),G+=2,se=Math.min(te,Ne)}if(!!ve)if(q.opaque)d.splice(Se,G-Se,te,"overlay "+ve),G=Se+2;else for(;Se<G;Se+=2){var Re=d[Se+1];d[Se+1]=(Re?Re+" ":"")+"overlay "+ve}},y),h.state=w,h.baseTokens=null,h.baseTokenPos=1},P=0;P<i.state.overlays.length;++P)k(P);return{styles:d,classes:y.bgClass||y.textClass?y:null}}function hy(i,o,h){if(!o.styles||o.styles[0]!=i.state.modeGen){var f=ul(i,Pt(o)),d=o.text.length>i.options.maxHighlightLength&&Br(i.doc.mode,f.state),y=fy(i,o,f);d&&(f.state=d),o.stateAfter=f.save(!d),o.styles=y.styles,y.classes?o.styleClasses=y.classes:o.styleClasses&&(o.styleClasses=null),h===i.doc.highlightFrontier&&(i.doc.modeFrontier=Math.max(i.doc.modeFrontier,++i.doc.highlightFrontier))}return o.styles}function ul(i,o,h){var f=i.doc,d=i.display;if(!f.mode.startState)return new hs(f,!0,o);var y=sE(i,o,h),w=y>f.first&&Ye(f,y-1).stateAfter,k=w?hs.fromSaved(f,w,y):new hs(f,Gi(f.mode),y);return f.iter(y,o,function(P){rp(i,P.text,k);var N=k.line;P.stateAfter=N==o-1||N%5==0||N>=d.viewFrom&&N<d.viewTo?k.save():null,k.nextLine()}),h&&(f.modeFrontier=k.line),k}function rp(i,o,h,f){var d=i.doc.mode,y=new Jt(o,i.options.tabSize,h);for(y.start=y.pos=f||0,o==""&&py(d,h.state);!y.eol();)np(d,y,h.state),y.start=y.pos}function py(i,o){if(i.blankLine)return i.blankLine(o);if(!!i.innerMode){var h=Ds(i,o);if(h.mode.blankLine)return h.mode.blankLine(h.state)}}function np(i,o,h,f){for(var d=0;d<10;d++){f&&(f[0]=Ds(i,h).mode);var y=i.token(o,h);if(o.pos>o.start)return y}throw new Error("Mode "+i.name+" failed to advance stream.")}var dy=function(i,o,h){this.start=i.start,this.end=i.pos,this.string=i.current(),this.type=o||null,this.state=h};function my(i,o,h,f){var d=i.doc,y=d.mode,w;o=We(d,o);var k=Ye(d,o.line),P=ul(i,o.line,h),N=new Jt(k.text,i.options.tabSize,P),q;for(f&&(q=[]);(f||N.pos<o.ch)&&!N.eol();)N.start=N.pos,w=np(y,N,P.state),f&&q.push(new dy(N,w,Br(d.mode,P.state)));return f?q:new dy(N,w,P.state)}function gy(i,o){if(i)for(;;){var h=i.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!h)break;i=i.slice(0,h.index)+i.slice(h.index+h[0].length);var f=h[1]?"bgClass":"textClass";o[f]==null?o[f]=h[2]:new RegExp("(?:^|\\s)"+h[2]+"(?:$|\\s)").test(o[f])||(o[f]+=" "+h[2])}return i}function yy(i,o,h,f,d,y,w){var k=h.flattenSpans;k==null&&(k=i.options.flattenSpans);var P=0,N=null,q=new Jt(o,i.options.tabSize,f),G,se=i.options.addModeClass&&[null];for(o==""&&gy(py(h,f.state),y);!q.eol();){if(q.pos>i.options.maxHighlightLength?(k=!1,w&&rp(i,o,f,q.pos),q.pos=o.length,G=null):G=gy(np(h,q,f.state,se),y),se){var te=se[0].name;te&&(G="m-"+(G?te+" "+G:te))}if(!k||N!=G){for(;P<q.start;)P=Math.min(q.start,P+5e3),d(P,N);N=G}q.start=q.pos}for(;P<q.pos;){var ve=Math.min(q.pos,P+5e3);d(ve,N),P=ve}}function sE(i,o,h){for(var f,d,y=i.doc,w=h?-1:o-(i.doc.mode.innerMode?1e3:100),k=o;k>w;--k){if(k<=y.first)return y.first;var P=Ye(y,k-1),N=P.stateAfter;if(N&&(!h||k+(N instanceof Fa?N.lookAhead:0)<=y.modeFrontier))return k;var q=ge(P.text,null,i.options.tabSize);(d==null||f>q)&&(d=k-1,f=q)}return d}function iE(i,o){if(i.modeFrontier=Math.min(i.modeFrontier,o),!(i.highlightFrontier<o-10)){for(var h=i.first,f=o-1;f>h;f--){var d=Ye(i,f).stateAfter;if(d&&(!(d instanceof Fa)||f+d.lookAhead<o)){h=f+1;break}}i.highlightFrontier=Math.min(i.highlightFrontier,h)}}var vy=!1,Fs=!1;function aE(){vy=!0}function oE(){Fs=!0}function sc(i,o,h){this.marker=i,this.from=o,this.to=h}function cl(i,o){if(i)for(var h=0;h<i.length;++h){var f=i[h];if(f.marker==o)return f}}function lE(i,o){for(var h,f=0;f<i.length;++f)i[f]!=o&&(h||(h=[])).push(i[f]);return h}function uE(i,o,h){var f=h&&window.WeakSet&&(h.markedSpans||(h.markedSpans=new WeakSet));f&&i.markedSpans&&f.has(i.markedSpans)?i.markedSpans.push(o):(i.markedSpans=i.markedSpans?i.markedSpans.concat([o]):[o],f&&f.add(i.markedSpans)),o.marker.attachLine(i)}function cE(i,o,h){var f;if(i)for(var d=0;d<i.length;++d){var y=i[d],w=y.marker,k=y.from==null||(w.inclusiveLeft?y.from<=o:y.from<o);if(k||y.from==o&&w.type=="bookmark"&&(!h||!y.marker.insertLeft)){var P=y.to==null||(w.inclusiveRight?y.to>=o:y.to>o);(f||(f=[])).push(new sc(w,y.from,P?null:y.to))}}return f}function fE(i,o,h){var f;if(i)for(var d=0;d<i.length;++d){var y=i[d],w=y.marker,k=y.to==null||(w.inclusiveRight?y.to>=o:y.to>o);if(k||y.from==o&&w.type=="bookmark"&&(!h||y.marker.insertLeft)){var P=y.from==null||(w.inclusiveLeft?y.from<=o:y.from<o);(f||(f=[])).push(new sc(w,P?null:y.from-o,y.to==null?null:y.to-o))}}return f}function sp(i,o){if(o.full)return null;var h=Rs(i,o.from.line)&&Ye(i,o.from.line).markedSpans,f=Rs(i,o.to.line)&&Ye(i,o.to.line).markedSpans;if(!h&&!f)return null;var d=o.from.ch,y=o.to.ch,w=L(o.from,o.to)==0,k=cE(h,d,w),P=fE(f,y,w),N=o.text.length==1,q=qe(o.text).length+(N?d:0);if(k)for(var G=0;G<k.length;++G){var se=k[G];if(se.to==null){var te=cl(P,se.marker);te?N&&(se.to=te.to==null?null:te.to+q):se.to=d}}if(P)for(var ve=0;ve<P.length;++ve){var Se=P[ve];if(Se.to!=null&&(Se.to+=q),Se.from==null){var Ne=cl(k,Se.marker);Ne||(Se.from=q,N&&(k||(k=[])).push(Se))}else Se.from+=q,N&&(k||(k=[])).push(Se)}k&&(k=by(k)),P&&P!=k&&(P=by(P));var Re=[k];if(!N){var je=o.text.length-2,Fe;if(je>0&&k)for(var He=0;He<k.length;++He)k[He].to==null&&(Fe||(Fe=[])).push(new sc(k[He].marker,null,null));for(var nt=0;nt<je;++nt)Re.push(Fe);Re.push(P)}return Re}function by(i){for(var o=0;o<i.length;++o){var h=i[o];h.from!=null&&h.from==h.to&&h.marker.clearWhenEmpty!==!1&&i.splice(o--,1)}return i.length?i:null}function hE(i,o,h){var f=null;if(i.iter(o.line,h.line+1,function(te){if(te.markedSpans)for(var ve=0;ve<te.markedSpans.length;++ve){var Se=te.markedSpans[ve].marker;Se.readOnly&&(!f||z(f,Se)==-1)&&(f||(f=[])).push(Se)}}),!f)return null;for(var d=[{from:o,to:h}],y=0;y<f.length;++y)for(var w=f[y],k=w.find(0),P=0;P<d.length;++P){var N=d[P];if(!(L(N.to,k.from)<0||L(N.from,k.to)>0)){var q=[P,1],G=L(N.from,k.from),se=L(N.to,k.to);(G<0||!w.inclusiveLeft&&!G)&&q.push({from:N.from,to:k.from}),(se>0||!w.inclusiveRight&&!se)&&q.push({from:k.to,to:N.to}),d.splice.apply(d,q),P+=q.length-3}}return d}function wy(i){var o=i.markedSpans;if(!!o){for(var h=0;h<o.length;++h)o[h].marker.detachLine(i);i.markedSpans=null}}function xy(i,o){if(!!o){for(var h=0;h<o.length;++h)o[h].marker.attachLine(i);i.markedSpans=o}}function ic(i){return i.inclusiveLeft?-1:0}function ac(i){return i.inclusiveRight?1:0}function ip(i,o){var h=i.lines.length-o.lines.length;if(h!=0)return h;var f=i.find(),d=o.find(),y=L(f.from,d.from)||ic(i)-ic(o);if(y)return-y;var w=L(f.to,d.to)||ac(i)-ac(o);return w||o.id-i.id}function Sy(i,o){var h=Fs&&i.markedSpans,f;if(h)for(var d=void 0,y=0;y<h.length;++y)d=h[y],d.marker.collapsed&&(o?d.from:d.to)==null&&(!f||ip(f,d.marker)<0)&&(f=d.marker);return f}function ky(i){return Sy(i,!0)}function oc(i){return Sy(i,!1)}function pE(i,o){var h=Fs&&i.markedSpans,f;if(h)for(var d=0;d<h.length;++d){var y=h[d];y.marker.collapsed&&(y.from==null||y.from<o)&&(y.to==null||y.to>o)&&(!f||ip(f,y.marker)<0)&&(f=y.marker)}return f}function Ty(i,o,h,f,d){var y=Ye(i,o),w=Fs&&y.markedSpans;if(w)for(var k=0;k<w.length;++k){var P=w[k];if(!!P.marker.collapsed){var N=P.marker.find(0),q=L(N.from,h)||ic(P.marker)-ic(d),G=L(N.to,f)||ac(P.marker)-ac(d);if(!(q>=0&&G<=0||q<=0&&G>=0)&&(q<=0&&(P.marker.inclusiveRight&&d.inclusiveLeft?L(N.to,h)>=0:L(N.to,h)>0)||q>=0&&(P.marker.inclusiveRight&&d.inclusiveLeft?L(N.from,f)<=0:L(N.from,f)<0)))return!0}}}function Gn(i){for(var o;o=ky(i);)i=o.find(-1,!0).line;return i}function dE(i){for(var o;o=oc(i);)i=o.find(1,!0).line;return i}function mE(i){for(var o,h;o=oc(i);)i=o.find(1,!0).line,(h||(h=[])).push(i);return h}function ap(i,o){var h=Ye(i,o),f=Gn(h);return h==f?o:Pt(f)}function _y(i,o){if(o>i.lastLine())return o;var h=Ye(i,o),f;if(!di(i,h))return o;for(;f=oc(h);)h=f.find(1,!0).line;return Pt(h)+1}function di(i,o){var h=Fs&&o.markedSpans;if(h){for(var f=void 0,d=0;d<h.length;++d)if(f=h[d],!!f.marker.collapsed){if(f.from==null)return!0;if(!f.marker.widgetNode&&f.from==0&&f.marker.inclusiveLeft&&op(i,o,f))return!0}}}function op(i,o,h){if(h.to==null){var f=h.marker.find(1,!0);return op(i,f.line,cl(f.line.markedSpans,h.marker))}if(h.marker.inclusiveRight&&h.to==o.text.length)return!0;for(var d=void 0,y=0;y<o.markedSpans.length;++y)if(d=o.markedSpans[y],d.marker.collapsed&&!d.marker.widgetNode&&d.from==h.to&&(d.to==null||d.to!=h.from)&&(d.marker.inclusiveLeft||h.marker.inclusiveRight)&&op(i,o,d))return!0}function Bs(i){i=Gn(i);for(var o=0,h=i.parent,f=0;f<h.lines.length;++f){var d=h.lines[f];if(d==i)break;o+=d.height}for(var y=h.parent;y;h=y,y=h.parent)for(var w=0;w<y.children.length;++w){var k=y.children[w];if(k==h)break;o+=k.height}return o}function lc(i){if(i.height==0)return 0;for(var o=i.text.length,h,f=i;h=ky(f);){var d=h.find(0,!0);f=d.from.line,o+=d.from.ch-d.to.ch}for(f=i;h=oc(f);){var y=h.find(0,!0);o-=f.text.length-y.from.ch,f=y.to.line,o+=f.text.length-y.to.ch}return o}function lp(i){var o=i.display,h=i.doc;o.maxLine=Ye(h,h.first),o.maxLineLength=lc(o.maxLine),o.maxLineChanged=!0,h.iter(function(f){var d=lc(f);d>o.maxLineLength&&(o.maxLineLength=d,o.maxLine=f)})}var Ba=function(i,o,h){this.text=i,xy(this,o),this.height=h?h(this):1};Ba.prototype.lineNo=function(){return Pt(this)},Ke(Ba);function gE(i,o,h,f){i.text=o,i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null),i.order!=null&&(i.order=null),wy(i),xy(i,h);var d=f?f(i):1;d!=i.height&&Jr(i,d)}function yE(i){i.parent=null,wy(i)}var vE={},bE={};function Ey(i,o){if(!i||/^\s*$/.test(i))return null;var h=o.addModeClass?bE:vE;return h[i]||(h[i]=i.replace(/\S+/g,"cm-$&"))}function Ay(i,o){var h=D("span",null,null,g?"padding-right: .1px":null),f={pre:D("pre",[h],"CodeMirror-line"),content:h,col:0,pos:0,cm:i,trailingSpace:!1,splitSpaces:i.getOption("lineWrapping")};o.measure={};for(var d=0;d<=(o.rest?o.rest.length:0);d++){var y=d?o.rest[d-1]:o.line,w=void 0;f.pos=0,f.addToken=xE,mn(i.display.measure)&&(w=Ht(y,i.doc.direction))&&(f.addToken=kE(f.addToken,w)),f.map=[];var k=o!=i.display.externalMeasured&&Pt(y);TE(y,f,hy(i,y,k)),y.styleClasses&&(y.styleClasses.bgClass&&(f.bgClass=he(y.styleClasses.bgClass,f.bgClass||"")),y.styleClasses.textClass&&(f.textClass=he(y.styleClasses.textClass,f.textClass||""))),f.map.length==0&&f.map.push(0,0,f.content.appendChild(ci(i.display.measure))),d==0?(o.measure.map=f.map,o.measure.cache={}):((o.measure.maps||(o.measure.maps=[])).push(f.map),(o.measure.caches||(o.measure.caches=[])).push({}))}if(g){var P=f.content.lastChild;(/\bcm-tab\b/.test(P.className)||P.querySelector&&P.querySelector(".cm-tab"))&&(f.content.className="cm-tab-wrap-hack")}return rt(i,"renderLine",i,o.line,f.pre),f.pre.className&&(f.textClass=he(f.pre.className,f.textClass||"")),f}function wE(i){var o=J("span","\u2022","cm-invalidchar");return o.title="\\u"+i.charCodeAt(0).toString(16),o.setAttribute("aria-label",o.title),o}function xE(i,o,h,f,d,y,w){if(!!o){var k=i.splitSpaces?SE(o,i.trailingSpace):o,P=i.cm.state.specialChars,N=!1,q;if(!P.test(o))i.col+=o.length,q=document.createTextNode(k),i.map.push(i.pos,i.pos+o.length,q),c&&m<9&&(N=!0),i.pos+=o.length;else{q=document.createDocumentFragment();for(var G=0;;){P.lastIndex=G;var se=P.exec(o),te=se?se.index-G:o.length-G;if(te){var ve=document.createTextNode(k.slice(G,G+te));c&&m<9?q.appendChild(J("span",[ve])):q.appendChild(ve),i.map.push(i.pos,i.pos+te,ve),i.col+=te,i.pos+=te}if(!se)break;G+=te+1;var Se=void 0;if(se[0]==" "){var Ne=i.cm.options.tabSize,Re=Ne-i.col%Ne;Se=q.appendChild(J("span",Ue(Re),"cm-tab")),Se.setAttribute("role","presentation"),Se.setAttribute("cm-text"," "),i.col+=Re}else se[0]=="\r"||se[0]==`
`?(Se=q.appendChild(J("span",se[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Se.setAttribute("cm-text",se[0]),i.col+=1):(Se=i.cm.options.specialCharPlaceholder(se[0]),Se.setAttribute("cm-text",se[0]),c&&m<9?q.appendChild(J("span",[Se])):q.appendChild(Se),i.col+=1);i.map.push(i.pos,i.pos+1,Se),i.pos++}}if(i.trailingSpace=k.charCodeAt(o.length-1)==32,h||f||d||N||y||w){var je=h||"";f&&(je+=f),d&&(je+=d);var Fe=J("span",[q],je,y);if(w)for(var He in w)w.hasOwnProperty(He)&&He!="style"&&He!="class"&&Fe.setAttribute(He,w[He]);return i.content.appendChild(Fe)}i.content.appendChild(q)}}function SE(i,o){if(i.length>1&&!/ /.test(i))return i;for(var h=o,f="",d=0;d<i.length;d++){var y=i.charAt(d);y==" "&&h&&(d==i.length-1||i.charCodeAt(d+1)==32)&&(y="\xA0"),f+=y,h=y==" "}return f}function kE(i,o){return function(h,f,d,y,w,k,P){d=d?d+" cm-force-border":"cm-force-border";for(var N=h.pos,q=N+f.length;;){for(var G=void 0,se=0;se<o.length&&(G=o[se],!(G.to>N&&G.from<=N));se++);if(G.to>=q)return i(h,f,d,y,w,k,P);i(h,f.slice(0,G.to-N),d,y,null,k,P),y=null,f=f.slice(G.to-N),N=G.to}}}function Cy(i,o,h,f){var d=!f&&h.widgetNode;d&&i.map.push(i.pos,i.pos+o,d),!f&&i.cm.display.input.needsContentAttribute&&(d||(d=i.content.appendChild(document.createElement("span"))),d.setAttribute("cm-marker",h.id)),d&&(i.cm.display.input.setUneditable(d),i.content.appendChild(d)),i.pos+=o,i.trailingSpace=!1}function TE(i,o,h){var f=i.markedSpans,d=i.text,y=0;if(!f){for(var w=1;w<h.length;w+=2)o.addToken(o,d.slice(y,y=h[w]),Ey(h[w+1],o.cm.options));return}for(var k=d.length,P=0,N=1,q="",G,se,te=0,ve,Se,Ne,Re,je;;){if(te==P){ve=Se=Ne=se="",je=null,Re=null,te=1/0;for(var Fe=[],He=void 0,nt=0;nt<f.length;++nt){var et=f[nt],vt=et.marker;if(vt.type=="bookmark"&&et.from==P&&vt.widgetNode)Fe.push(vt);else if(et.from<=P&&(et.to==null||et.to>P||vt.collapsed&&et.to==P&&et.from==P)){if(et.to!=null&&et.to!=P&&te>et.to&&(te=et.to,Se=""),vt.className&&(ve+=" "+vt.className),vt.css&&(se=(se?se+";":"")+vt.css),vt.startStyle&&et.from==P&&(Ne+=" "+vt.startStyle),vt.endStyle&&et.to==te&&(He||(He=[])).push(vt.endStyle,et.to),vt.title&&((je||(je={})).title=vt.title),vt.attributes)for(var qt in vt.attributes)(je||(je={}))[qt]=vt.attributes[qt];vt.collapsed&&(!Re||ip(Re.marker,vt)<0)&&(Re=et)}else et.from>P&&te>et.from&&(te=et.from)}if(He)for(var kr=0;kr<He.length;kr+=2)He[kr+1]==te&&(Se+=" "+He[kr]);if(!Re||Re.from==P)for(var rr=0;rr<Fe.length;++rr)Cy(o,0,Fe[rr]);if(Re&&(Re.from||0)==P){if(Cy(o,(Re.to==null?k+1:Re.to)-P,Re.marker,Re.from==null),Re.to==null)return;Re.to==P&&(Re=!1)}}if(P>=k)break;for(var yn=Math.min(k,te);;){if(q){var un=P+q.length;if(!Re){var pr=un>yn?q.slice(0,yn-P):q;o.addToken(o,pr,G?G+ve:ve,Ne,P+pr.length==te?Se:"",se,je)}if(un>=yn){q=q.slice(yn-P),P=yn;break}P=un,Ne=""}q=d.slice(y,y=h[N++]),G=Ey(h[N++],o.cm.options)}}}function Py(i,o,h){this.line=o,this.rest=mE(o),this.size=this.rest?Pt(qe(this.rest))-h+1:1,this.node=this.text=null,this.hidden=di(i,o)}function uc(i,o,h){for(var f=[],d,y=o;y<h;y=d){var w=new Py(i.doc,Ye(i.doc,y),y);d=y+w.size,f.push(w)}return f}var $a=null;function _E(i){$a?$a.ops.push(i):i.ownsGroup=$a={ops:[i],delayedCallbacks:[]}}function EE(i){var o=i.delayedCallbacks,h=0;do{for(;h<o.length;h++)o[h].call(null);for(var f=0;f<i.ops.length;f++){var d=i.ops[f];if(d.cursorActivityHandlers)for(;d.cursorActivityCalled<d.cursorActivityHandlers.length;)d.cursorActivityHandlers[d.cursorActivityCalled++].call(null,d.cm)}}while(h<o.length)}function AE(i,o){var h=i.ownsGroup;if(!!h)try{EE(h)}finally{$a=null,o(h)}}var fl=null;function wr(i,o){var h=Kr(i,o);if(!!h.length){var f=Array.prototype.slice.call(arguments,2),d;$a?d=$a.delayedCallbacks:fl?d=fl:(d=fl=[],setTimeout(CE,0));for(var y=function(k){d.push(function(){return h[k].apply(null,f)})},w=0;w<h.length;++w)y(w)}}function CE(){var i=fl;fl=null;for(var o=0;o<i.length;++o)i[o]()}function Iy(i,o,h,f){for(var d=0;d<o.changes.length;d++){var y=o.changes[d];y=="text"?IE(i,o):y=="gutter"?Oy(i,o,h,f):y=="class"?up(i,o):y=="widget"&&NE(i,o,f)}o.changes=null}function hl(i){return i.node==i.text&&(i.node=J("div",null,null,"position: relative"),i.text.parentNode&&i.text.parentNode.replaceChild(i.node,i.text),i.node.appendChild(i.text),c&&m<8&&(i.node.style.zIndex=2)),i.node}function PE(i,o){var h=o.bgClass?o.bgClass+" "+(o.line.bgClass||""):o.line.bgClass;if(h&&(h+=" CodeMirror-linebackground"),o.background)h?o.background.className=h:(o.background.parentNode.removeChild(o.background),o.background=null);else if(h){var f=hl(o);o.background=f.insertBefore(J("div",null,h),f.firstChild),i.display.input.setUneditable(o.background)}}function Ny(i,o){var h=i.display.externalMeasured;return h&&h.line==o.line?(i.display.externalMeasured=null,o.measure=h.measure,h.built):Ay(i,o)}function IE(i,o){var h=o.text.className,f=Ny(i,o);o.text==o.node&&(o.node=f.pre),o.text.parentNode.replaceChild(f.pre,o.text),o.text=f.pre,f.bgClass!=o.bgClass||f.textClass!=o.textClass?(o.bgClass=f.bgClass,o.textClass=f.textClass,up(i,o)):h&&(o.text.className=h)}function up(i,o){PE(i,o),o.line.wrapClass?hl(o).className=o.line.wrapClass:o.node!=o.text&&(o.node.className="");var h=o.textClass?o.textClass+" "+(o.line.textClass||""):o.line.textClass;o.text.className=h||""}function Oy(i,o,h,f){if(o.gutter&&(o.node.removeChild(o.gutter),o.gutter=null),o.gutterBackground&&(o.node.removeChild(o.gutterBackground),o.gutterBackground=null),o.line.gutterClass){var d=hl(o);o.gutterBackground=J("div",null,"CodeMirror-gutter-background "+o.line.gutterClass,"left: "+(i.options.fixedGutter?f.fixedPos:-f.gutterTotalWidth)+"px; width: "+f.gutterTotalWidth+"px"),i.display.input.setUneditable(o.gutterBackground),d.insertBefore(o.gutterBackground,o.text)}var y=o.line.gutterMarkers;if(i.options.lineNumbers||y){var w=hl(o),k=o.gutter=J("div",null,"CodeMirror-gutter-wrapper","left: "+(i.options.fixedGutter?f.fixedPos:-f.gutterTotalWidth)+"px");if(k.setAttribute("aria-hidden","true"),i.display.input.setUneditable(k),w.insertBefore(k,o.text),o.line.gutterClass&&(k.className+=" "+o.line.gutterClass),i.options.lineNumbers&&(!y||!y["CodeMirror-linenumbers"])&&(o.lineNumber=k.appendChild(J("div",Yi(i.options,h),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+f.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+i.display.lineNumInnerWidth+"px"))),y)for(var P=0;P<i.display.gutterSpecs.length;++P){var N=i.display.gutterSpecs[P].className,q=y.hasOwnProperty(N)&&y[N];q&&k.appendChild(J("div",[q],"CodeMirror-gutter-elt","left: "+f.gutterLeft[N]+"px; width: "+f.gutterWidth[N]+"px"))}}}function NE(i,o,h){o.alignable&&(o.alignable=null);for(var f=F("CodeMirror-linewidget"),d=o.node.firstChild,y=void 0;d;d=y)y=d.nextSibling,f.test(d.className)&&o.node.removeChild(d);Ly(i,o,h)}function OE(i,o,h,f){var d=Ny(i,o);return o.text=o.node=d.pre,d.bgClass&&(o.bgClass=d.bgClass),d.textClass&&(o.textClass=d.textClass),up(i,o),Oy(i,o,h,f),Ly(i,o,f),o.node}function Ly(i,o,h){if(My(i,o.line,o,h,!0),o.rest)for(var f=0;f<o.rest.length;f++)My(i,o.rest[f],o,h,!1)}function My(i,o,h,f,d){if(!!o.widgets)for(var y=hl(h),w=0,k=o.widgets;w<k.length;++w){var P=k[w],N=J("div",[P.node],"CodeMirror-linewidget"+(P.className?" "+P.className:""));P.handleMouseEvents||N.setAttribute("cm-ignore-events","true"),LE(P,N,h,f),i.display.input.setUneditable(N),d&&P.above?y.insertBefore(N,h.gutter||h.text):y.appendChild(N),wr(P,"redraw")}}function LE(i,o,h,f){if(i.noHScroll){(h.alignable||(h.alignable=[])).push(o);var d=f.wrapperWidth;o.style.left=f.fixedPos+"px",i.coverGutter||(d-=f.gutterTotalWidth,o.style.paddingLeft=f.gutterTotalWidth+"px"),o.style.width=d+"px"}i.coverGutter&&(o.style.zIndex=5,o.style.position="relative",i.noHScroll||(o.style.marginLeft=-f.gutterTotalWidth+"px"))}function pl(i){if(i.height!=null)return i.height;var o=i.doc.cm;if(!o)return 0;if(!W(document.body,i.node)){var h="position: relative;";i.coverGutter&&(h+="margin-left: -"+o.display.gutters.offsetWidth+"px;"),i.noHScroll&&(h+="width: "+o.display.wrapper.clientWidth+"px;"),X(o.display.measure,J("div",[i.node],null,h))}return i.height=i.node.parentNode.offsetHeight}function $s(i,o){for(var h=_t(o);h!=i.wrapper;h=h.parentNode)if(!h||h.nodeType==1&&h.getAttribute("cm-ignore-events")=="true"||h.parentNode==i.sizer&&h!=i.mover)return!0}function cc(i){return i.lineSpace.offsetTop}function cp(i){return i.mover.offsetHeight-i.lineSpace.offsetHeight}function Dy(i){if(i.cachedPaddingH)return i.cachedPaddingH;var o=X(i.measure,J("pre","x","CodeMirror-line-like")),h=window.getComputedStyle?window.getComputedStyle(o):o.currentStyle,f={left:parseInt(h.paddingLeft),right:parseInt(h.paddingRight)};return!isNaN(f.left)&&!isNaN(f.right)&&(i.cachedPaddingH=f),f}function ps(i){return ne-i.display.nativeBarWidth}function Ji(i){return i.display.scroller.clientWidth-ps(i)-i.display.barWidth}function fp(i){return i.display.scroller.clientHeight-ps(i)-i.display.barHeight}function ME(i,o,h){var f=i.options.lineWrapping,d=f&&Ji(i);if(!o.measure.heights||f&&o.measure.width!=d){var y=o.measure.heights=[];if(f){o.measure.width=d;for(var w=o.text.firstChild.getClientRects(),k=0;k<w.length-1;k++){var P=w[k],N=w[k+1];Math.abs(P.bottom-N.bottom)>2&&y.push((P.bottom+N.top)/2-h.top)}}y.push(h.bottom-h.top)}}function Ry(i,o,h){if(i.line==o)return{map:i.measure.map,cache:i.measure.cache};if(i.rest){for(var f=0;f<i.rest.length;f++)if(i.rest[f]==o)return{map:i.measure.maps[f],cache:i.measure.caches[f]};for(var d=0;d<i.rest.length;d++)if(Pt(i.rest[d])>h)return{map:i.measure.maps[d],cache:i.measure.caches[d],before:!0}}}function DE(i,o){o=Gn(o);var h=Pt(o),f=i.display.externalMeasured=new Py(i.doc,o,h);f.lineN=h;var d=f.built=Ay(i,f);return f.text=d.pre,X(i.display.lineMeasure,d.pre),f}function Fy(i,o,h,f){return ds(i,ja(i,o),h,f)}function hp(i,o){if(o>=i.display.viewFrom&&o<i.display.viewTo)return i.display.view[Zi(i,o)];var h=i.display.externalMeasured;if(h&&o>=h.lineN&&o<h.lineN+h.size)return h}function ja(i,o){var h=Pt(o),f=hp(i,h);f&&!f.text?f=null:f&&f.changes&&(Iy(i,f,h,yp(i)),i.curOp.forceUpdate=!0),f||(f=DE(i,o));var d=Ry(f,o,h);return{line:o,view:f,rect:null,map:d.map,cache:d.cache,before:d.before,hasHeights:!1}}function ds(i,o,h,f,d){o.before&&(h=-1);var y=h+(f||""),w;return o.cache.hasOwnProperty(y)?w=o.cache[y]:(o.rect||(o.rect=o.view.text.getBoundingClientRect()),o.hasHeights||(ME(i,o.view,o.rect),o.hasHeights=!0),w=FE(i,o,h,f),w.bogus||(o.cache[y]=w)),{left:w.left,right:w.right,top:d?w.rtop:w.top,bottom:d?w.rbottom:w.bottom}}var By={left:0,right:0,top:0,bottom:0};function $y(i,o,h){for(var f,d,y,w,k,P,N=0;N<i.length;N+=3)if(k=i[N],P=i[N+1],o<k?(d=0,y=1,w="left"):o<P?(d=o-k,y=d+1):(N==i.length-3||o==P&&i[N+3]>o)&&(y=P-k,d=y-1,o>=P&&(w="right")),d!=null){if(f=i[N+2],k==P&&h==(f.insertLeft?"left":"right")&&(w=h),h=="left"&&d==0)for(;N&&i[N-2]==i[N-3]&&i[N-1].insertLeft;)f=i[(N-=3)+2],w="left";if(h=="right"&&d==P-k)for(;N<i.length-3&&i[N+3]==i[N+4]&&!i[N+5].insertLeft;)f=i[(N+=3)+2],w="right";break}return{node:f,start:d,end:y,collapse:w,coverStart:k,coverEnd:P}}function RE(i,o){var h=By;if(o=="left")for(var f=0;f<i.length&&(h=i[f]).left==h.right;f++);else for(var d=i.length-1;d>=0&&(h=i[d]).left==h.right;d--);return h}function FE(i,o,h,f){var d=$y(o.map,h,f),y=d.node,w=d.start,k=d.end,P=d.collapse,N;if(y.nodeType==3){for(var q=0;q<4;q++){for(;w&&ct(o.line.text.charAt(d.coverStart+w));)--w;for(;d.coverStart+k<d.coverEnd&&ct(o.line.text.charAt(d.coverStart+k));)++k;if(c&&m<9&&w==0&&k==d.coverEnd-d.coverStart?N=y.parentNode.getBoundingClientRect():N=RE(ce(y,w,k).getClientRects(),f),N.left||N.right||w==0)break;k=w,w=w-1,P="right"}c&&m<11&&(N=BE(i.display.measure,N))}else{w>0&&(P=f="right");var G;i.options.lineWrapping&&(G=y.getClientRects()).length>1?N=G[f=="right"?G.length-1:0]:N=y.getBoundingClientRect()}if(c&&m<9&&!w&&(!N||!N.left&&!N.right)){var se=y.parentNode.getClientRects()[0];se?N={left:se.left,right:se.left+qa(i.display),top:se.top,bottom:se.bottom}:N=By}for(var te=N.top-o.rect.top,ve=N.bottom-o.rect.top,Se=(te+ve)/2,Ne=o.view.measure.heights,Re=0;Re<Ne.length-1&&!(Se<Ne[Re]);Re++);var je=Re?Ne[Re-1]:0,Fe=Ne[Re],He={left:(P=="right"?N.right:N.left)-o.rect.left,right:(P=="left"?N.left:N.right)-o.rect.left,top:je,bottom:Fe};return!N.left&&!N.right&&(He.bogus=!0),i.options.singleCursorHeightPerLine||(He.rtop=te,He.rbottom=ve),He}function BE(i,o){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Bn(i))return o;var h=screen.logicalXDPI/screen.deviceXDPI,f=screen.logicalYDPI/screen.deviceYDPI;return{left:o.left*h,right:o.right*h,top:o.top*f,bottom:o.bottom*f}}function jy(i){if(i.measure&&(i.measure.cache={},i.measure.heights=null,i.rest))for(var o=0;o<i.rest.length;o++)i.measure.caches[o]={}}function Uy(i){i.display.externalMeasure=null,V(i.display.lineMeasure);for(var o=0;o<i.display.view.length;o++)jy(i.display.view[o])}function dl(i){Uy(i),i.display.cachedCharWidth=i.display.cachedTextHeight=i.display.cachedPaddingH=null,i.options.lineWrapping||(i.display.maxLineChanged=!0),i.display.lineNumChars=null}function qy(){return b&&A?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Wy(){return b&&A?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function pp(i){var o=Gn(i),h=o.widgets,f=0;if(h)for(var d=0;d<h.length;++d)h[d].above&&(f+=pl(h[d]));return f}function fc(i,o,h,f,d){if(!d){var y=pp(o);h.top+=y,h.bottom+=y}if(f=="line")return h;f||(f="local");var w=Bs(o);if(f=="local"?w+=cc(i.display):w-=i.display.viewOffset,f=="page"||f=="window"){var k=i.display.lineSpace.getBoundingClientRect();w+=k.top+(f=="window"?0:Wy());var P=k.left+(f=="window"?0:qy());h.left+=P,h.right+=P}return h.top+=w,h.bottom+=w,h}function zy(i,o,h){if(h=="div")return o;var f=o.left,d=o.top;if(h=="page")f-=qy(),d-=Wy();else if(h=="local"||!h){var y=i.display.sizer.getBoundingClientRect();f+=y.left,d+=y.top}var w=i.display.lineSpace.getBoundingClientRect();return{left:f-w.left,top:d-w.top}}function hc(i,o,h,f,d){return f||(f=Ye(i.doc,o.line)),fc(i,f,Fy(i,f,o.ch,d),h)}function Kn(i,o,h,f,d,y){f=f||Ye(i.doc,o.line),d||(d=ja(i,f));function w(ve,Se){var Ne=ds(i,d,ve,Se?"right":"left",y);return Se?Ne.left=Ne.right:Ne.right=Ne.left,fc(i,f,Ne,h)}var k=Ht(f,i.doc.direction),P=o.ch,N=o.sticky;if(P>=f.text.length?(P=f.text.length,N="before"):P<=0&&(P=0,N="after"),!k)return w(N=="before"?P-1:P,N=="before");function q(ve,Se,Ne){var Re=k[Se],je=Re.level==1;return w(Ne?ve-1:ve,je!=Ne)}var G=Mt(k,P,N),se=ur,te=q(P,G,N=="before");return se!=null&&(te.other=q(P,se,N!="before")),te}function Hy(i,o){var h=0;o=We(i.doc,o),i.options.lineWrapping||(h=qa(i.display)*o.ch);var f=Ye(i.doc,o.line),d=Bs(f)+cc(i.display);return{left:h,right:h,top:d,bottom:d+f.height}}function dp(i,o,h,f,d){var y=Ae(i,o,h);return y.xRel=d,f&&(y.outside=f),y}function mp(i,o,h){var f=i.doc;if(h+=i.display.viewOffset,h<0)return dp(f.first,0,null,-1,-1);var d=jn(f,h),y=f.first+f.size-1;if(d>y)return dp(f.first+f.size-1,Ye(f,y).text.length,null,1,1);o<0&&(o=0);for(var w=Ye(f,d);;){var k=$E(i,w,d,o,h),P=pE(w,k.ch+(k.xRel>0||k.outside>0?1:0));if(!P)return k;var N=P.find(1);if(N.line==d)return N;w=Ye(f,d=N.line)}}function Vy(i,o,h,f){f-=pp(o);var d=o.text.length,y=vr(function(w){return ds(i,h,w-1).bottom<=f},d,0);return d=vr(function(w){return ds(i,h,w).top>f},y,d),{begin:y,end:d}}function Gy(i,o,h,f){h||(h=ja(i,o));var d=fc(i,o,ds(i,h,f),"line").top;return Vy(i,o,h,d)}function gp(i,o,h,f){return i.bottom<=h?!1:i.top>h?!0:(f?i.left:i.right)>o}function $E(i,o,h,f,d){d-=Bs(o);var y=ja(i,o),w=pp(o),k=0,P=o.text.length,N=!0,q=Ht(o,i.doc.direction);if(q){var G=(i.options.lineWrapping?UE:jE)(i,o,h,y,q,f,d);N=G.level!=1,k=N?G.from:G.to-1,P=N?G.to:G.from-1}var se=null,te=null,ve=vr(function(nt){var et=ds(i,y,nt);return et.top+=w,et.bottom+=w,gp(et,f,d,!1)?(et.top<=d&&et.left<=f&&(se=nt,te=et),!0):!1},k,P),Se,Ne,Re=!1;if(te){var je=f-te.left<te.right-f,Fe=je==N;ve=se+(Fe?0:1),Ne=Fe?"after":"before",Se=je?te.left:te.right}else{!N&&(ve==P||ve==k)&&ve++,Ne=ve==0?"after":ve==o.text.length?"before":ds(i,y,ve-(N?1:0)).bottom+w<=d==N?"after":"before";var He=Kn(i,Ae(h,ve,Ne),"line",o,y);Se=He.left,Re=d<He.top?-1:d>=He.bottom?1:0}return ve=tr(o.text,ve,1),dp(h,ve,Ne,Re,f-Se)}function jE(i,o,h,f,d,y,w){var k=vr(function(G){var se=d[G],te=se.level!=1;return gp(Kn(i,Ae(h,te?se.to:se.from,te?"before":"after"),"line",o,f),y,w,!0)},0,d.length-1),P=d[k];if(k>0){var N=P.level!=1,q=Kn(i,Ae(h,N?P.from:P.to,N?"after":"before"),"line",o,f);gp(q,y,w,!0)&&q.top>w&&(P=d[k-1])}return P}function UE(i,o,h,f,d,y,w){var k=Vy(i,o,f,w),P=k.begin,N=k.end;/\s/.test(o.text.charAt(N-1))&&N--;for(var q=null,G=null,se=0;se<d.length;se++){var te=d[se];if(!(te.from>=N||te.to<=P)){var ve=te.level!=1,Se=ds(i,f,ve?Math.min(N,te.to)-1:Math.max(P,te.from)).right,Ne=Se<y?y-Se+1e9:Se-y;(!q||G>Ne)&&(q=te,G=Ne)}}return q||(q=d[d.length-1]),q.from<P&&(q={from:P,to:q.to,level:q.level}),q.to>N&&(q={from:q.from,to:N,level:q.level}),q}var Xi;function Ua(i){if(i.cachedTextHeight!=null)return i.cachedTextHeight;if(Xi==null){Xi=J("pre",null,"CodeMirror-line-like");for(var o=0;o<49;++o)Xi.appendChild(document.createTextNode("x")),Xi.appendChild(J("br"));Xi.appendChild(document.createTextNode("x"))}X(i.measure,Xi);var h=Xi.offsetHeight/50;return h>3&&(i.cachedTextHeight=h),V(i.measure),h||1}function qa(i){if(i.cachedCharWidth!=null)return i.cachedCharWidth;var o=J("span","xxxxxxxxxx"),h=J("pre",[o],"CodeMirror-line-like");X(i.measure,h);var f=o.getBoundingClientRect(),d=(f.right-f.left)/10;return d>2&&(i.cachedCharWidth=d),d||10}function yp(i){for(var o=i.display,h={},f={},d=o.gutters.clientLeft,y=o.gutters.firstChild,w=0;y;y=y.nextSibling,++w){var k=i.display.gutterSpecs[w].className;h[k]=y.offsetLeft+y.clientLeft+d,f[k]=y.clientWidth}return{fixedPos:vp(o),gutterTotalWidth:o.gutters.offsetWidth,gutterLeft:h,gutterWidth:f,wrapperWidth:o.wrapper.clientWidth}}function vp(i){return i.scroller.getBoundingClientRect().left-i.sizer.getBoundingClientRect().left}function Ky(i){var o=Ua(i.display),h=i.options.lineWrapping,f=h&&Math.max(5,i.display.scroller.clientWidth/qa(i.display)-3);return function(d){if(di(i.doc,d))return 0;var y=0;if(d.widgets)for(var w=0;w<d.widgets.length;w++)d.widgets[w].height&&(y+=d.widgets[w].height);return h?y+(Math.ceil(d.text.length/f)||1)*o:y+o}}function bp(i){var o=i.doc,h=Ky(i);o.iter(function(f){var d=h(f);d!=f.height&&Jr(f,d)})}function Qi(i,o,h,f){var d=i.display;if(!h&&_t(o).getAttribute("cm-not-content")=="true")return null;var y,w,k=d.lineSpace.getBoundingClientRect();try{y=o.clientX-k.left,w=o.clientY-k.top}catch{return null}var P=mp(i,y,w),N;if(f&&P.xRel>0&&(N=Ye(i.doc,P.line).text).length==P.ch){var q=ge(N,N.length,i.options.tabSize)-N.length;P=Ae(P.line,Math.max(0,Math.round((y-Dy(i.display).left)/qa(i.display))-q))}return P}function Zi(i,o){if(o>=i.display.viewTo||(o-=i.display.viewFrom,o<0))return null;for(var h=i.display.view,f=0;f<h.length;f++)if(o-=h[f].size,o<0)return f}function on(i,o,h,f){o==null&&(o=i.doc.first),h==null&&(h=i.doc.first+i.doc.size),f||(f=0);var d=i.display;if(f&&h<d.viewTo&&(d.updateLineNumbers==null||d.updateLineNumbers>o)&&(d.updateLineNumbers=o),i.curOp.viewChanged=!0,o>=d.viewTo)Fs&&ap(i.doc,o)<d.viewTo&&gi(i);else if(h<=d.viewFrom)Fs&&_y(i.doc,h+f)>d.viewFrom?gi(i):(d.viewFrom+=f,d.viewTo+=f);else if(o<=d.viewFrom&&h>=d.viewTo)gi(i);else if(o<=d.viewFrom){var y=pc(i,h,h+f,1);y?(d.view=d.view.slice(y.index),d.viewFrom=y.lineN,d.viewTo+=f):gi(i)}else if(h>=d.viewTo){var w=pc(i,o,o,-1);w?(d.view=d.view.slice(0,w.index),d.viewTo=w.lineN):gi(i)}else{var k=pc(i,o,o,-1),P=pc(i,h,h+f,1);k&&P?(d.view=d.view.slice(0,k.index).concat(uc(i,k.lineN,P.lineN)).concat(d.view.slice(P.index)),d.viewTo+=f):gi(i)}var N=d.externalMeasured;N&&(h<N.lineN?N.lineN+=f:o<N.lineN+N.size&&(d.externalMeasured=null))}function mi(i,o,h){i.curOp.viewChanged=!0;var f=i.display,d=i.display.externalMeasured;if(d&&o>=d.lineN&&o<d.lineN+d.size&&(f.externalMeasured=null),!(o<f.viewFrom||o>=f.viewTo)){var y=f.view[Zi(i,o)];if(y.node!=null){var w=y.changes||(y.changes=[]);z(w,h)==-1&&w.push(h)}}}function gi(i){i.display.viewFrom=i.display.viewTo=i.doc.first,i.display.view=[],i.display.viewOffset=0}function pc(i,o,h,f){var d=Zi(i,o),y,w=i.display.view;if(!Fs||h==i.doc.first+i.doc.size)return{index:d,lineN:h};for(var k=i.display.viewFrom,P=0;P<d;P++)k+=w[P].size;if(k!=o){if(f>0){if(d==w.length-1)return null;y=k+w[d].size-o,d++}else y=k-o;o+=y,h+=y}for(;ap(i.doc,h)!=h;){if(d==(f<0?0:w.length-1))return null;h+=f*w[d-(f<0?1:0)].size,d+=f}return{index:d,lineN:h}}function qE(i,o,h){var f=i.display,d=f.view;d.length==0||o>=f.viewTo||h<=f.viewFrom?(f.view=uc(i,o,h),f.viewFrom=o):(f.viewFrom>o?f.view=uc(i,o,f.viewFrom).concat(f.view):f.viewFrom<o&&(f.view=f.view.slice(Zi(i,o))),f.viewFrom=o,f.viewTo<h?f.view=f.view.concat(uc(i,f.viewTo,h)):f.viewTo>h&&(f.view=f.view.slice(0,Zi(i,h)))),f.viewTo=h}function Yy(i){for(var o=i.display.view,h=0,f=0;f<o.length;f++){var d=o[f];!d.hidden&&(!d.node||d.changes)&&++h}return h}function ml(i){i.display.input.showSelection(i.display.input.prepareSelection())}function Jy(i,o){o===void 0&&(o=!0);var h=i.doc,f={},d=f.cursors=document.createDocumentFragment(),y=f.selection=document.createDocumentFragment(),w=i.options.$customCursor;w&&(o=!0);for(var k=0;k<h.sel.ranges.length;k++)if(!(!o&&k==h.sel.primIndex)){var P=h.sel.ranges[k];if(!(P.from().line>=i.display.viewTo||P.to().line<i.display.viewFrom)){var N=P.empty();if(w){var q=w(i,P);q&&wp(i,q,d)}else(N||i.options.showCursorWhenSelecting)&&wp(i,P.head,d);N||WE(i,P,y)}}return f}function wp(i,o,h){var f=Kn(i,o,"div",null,null,!i.options.singleCursorHeightPerLine),d=h.appendChild(J("div","\xA0","CodeMirror-cursor"));if(d.style.left=f.left+"px",d.style.top=f.top+"px",d.style.height=Math.max(0,f.bottom-f.top)*i.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(i.getWrapperElement().className)){var y=hc(i,o,"div",null,null),w=y.right-y.left;d.style.width=(w>0?w:i.defaultCharWidth())+"px"}if(f.other){var k=h.appendChild(J("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));k.style.display="",k.style.left=f.other.left+"px",k.style.top=f.other.top+"px",k.style.height=(f.other.bottom-f.other.top)*.85+"px"}}function dc(i,o){return i.top-o.top||i.left-o.left}function WE(i,o,h){var f=i.display,d=i.doc,y=document.createDocumentFragment(),w=Dy(i.display),k=w.left,P=Math.max(f.sizerWidth,Ji(i)-f.sizer.offsetLeft)-w.right,N=d.direction=="ltr";function q(Fe,He,nt,et){He<0&&(He=0),He=Math.round(He),et=Math.round(et),y.appendChild(J("div",null,"CodeMirror-selected","position: absolute; left: "+Fe+`px;
top: `+He+"px; width: "+(nt==null?P-Fe:nt)+`px;
height: `+(et-He)+"px"))}function G(Fe,He,nt){var et=Ye(d,Fe),vt=et.text.length,qt,kr;function rr(pr,cn){return hc(i,Ae(Fe,pr),"div",et,cn)}function yn(pr,cn,Pr){var gr=Gy(i,et,null,pr),dr=cn=="ltr"==(Pr=="after")?"left":"right",or=Pr=="after"?gr.begin:gr.end-(/\s/.test(et.text.charAt(gr.end-1))?2:1);return rr(or,dr)[dr]}var un=Ht(et,d.direction);return Vn(un,He||0,nt==null?vt:nt,function(pr,cn,Pr,gr){var dr=Pr=="ltr",or=rr(pr,dr?"left":"right"),fn=rr(cn-1,dr?"right":"left"),to=He==null&&pr==0,Si=nt==null&&cn==vt,Ur=gr==0,ms=!un||gr==un.length-1;if(fn.top-or.top<=3){var Tr=(N?to:Si)&&Ur,Vp=(N?Si:to)&&ms,qs=Tr?k:(dr?or:fn).left,sa=Vp?P:(dr?fn:or).right;q(qs,or.top,sa-qs,or.bottom)}else{var ia,Qr,ro,Gp;dr?(ia=N&&to&&Ur?k:or.left,Qr=N?P:yn(pr,Pr,"before"),ro=N?k:yn(cn,Pr,"after"),Gp=N&&Si&&ms?P:fn.right):(ia=N?yn(pr,Pr,"before"):k,Qr=!N&&to&&Ur?P:or.right,ro=!N&&Si&&ms?k:fn.left,Gp=N?yn(cn,Pr,"after"):P),q(ia,or.top,Qr-ia,or.bottom),or.bottom<fn.top&&q(k,or.bottom,null,fn.top),q(ro,fn.top,Gp-ro,fn.bottom)}(!qt||dc(or,qt)<0)&&(qt=or),dc(fn,qt)<0&&(qt=fn),(!kr||dc(or,kr)<0)&&(kr=or),dc(fn,kr)<0&&(kr=fn)}),{start:qt,end:kr}}var se=o.from(),te=o.to();if(se.line==te.line)G(se.line,se.ch,te.ch);else{var ve=Ye(d,se.line),Se=Ye(d,te.line),Ne=Gn(ve)==Gn(Se),Re=G(se.line,se.ch,Ne?ve.text.length+1:null).end,je=G(te.line,Ne?0:null,te.ch).start;Ne&&(Re.top<je.top-2?(q(Re.right,Re.top,null,Re.bottom),q(k,je.top,je.left,je.bottom)):q(Re.right,Re.top,je.left-Re.right,Re.bottom)),Re.bottom<je.top&&q(k,Re.bottom,null,je.top)}h.appendChild(y)}function xp(i){if(!!i.state.focused){var o=i.display;clearInterval(o.blinker);var h=!0;o.cursorDiv.style.visibility="",i.options.cursorBlinkRate>0?o.blinker=setInterval(function(){i.hasFocus()||Wa(i),o.cursorDiv.style.visibility=(h=!h)?"":"hidden"},i.options.cursorBlinkRate):i.options.cursorBlinkRate<0&&(o.cursorDiv.style.visibility="hidden")}}function Xy(i){i.hasFocus()||(i.display.input.focus(),i.state.focused||kp(i))}function Sp(i){i.state.delayingBlurEvent=!0,setTimeout(function(){i.state.delayingBlurEvent&&(i.state.delayingBlurEvent=!1,i.state.focused&&Wa(i))},100)}function kp(i,o){i.state.delayingBlurEvent&&!i.state.draggingText&&(i.state.delayingBlurEvent=!1),i.options.readOnly!="nocursor"&&(i.state.focused||(rt(i,"focus",i,o),i.state.focused=!0,de(i.display.wrapper,"CodeMirror-focused"),!i.curOp&&i.display.selForContextMenu!=i.doc.sel&&(i.display.input.reset(),g&&setTimeout(function(){return i.display.input.reset(!0)},20)),i.display.input.receivedFocus()),xp(i))}function Wa(i,o){i.state.delayingBlurEvent||(i.state.focused&&(rt(i,"blur",i,o),i.state.focused=!1,H(i.display.wrapper,"CodeMirror-focused")),clearInterval(i.display.blinker),setTimeout(function(){i.state.focused||(i.display.shift=!1)},150))}function mc(i){for(var o=i.display,h=o.lineDiv.offsetTop,f=Math.max(0,o.scroller.getBoundingClientRect().top),d=o.lineDiv.getBoundingClientRect().top,y=0,w=0;w<o.view.length;w++){var k=o.view[w],P=i.options.lineWrapping,N=void 0,q=0;if(!k.hidden){if(d+=k.line.height,c&&m<8){var G=k.node.offsetTop+k.node.offsetHeight;N=G-h,h=G}else{var se=k.node.getBoundingClientRect();N=se.bottom-se.top,!P&&k.text.firstChild&&(q=k.text.firstChild.getBoundingClientRect().right-se.left-1)}var te=k.line.height-N;if((te>.005||te<-.005)&&(d<f&&(y-=te),Jr(k.line,N),Qy(k.line),k.rest))for(var ve=0;ve<k.rest.length;ve++)Qy(k.rest[ve]);if(q>i.display.sizerWidth){var Se=Math.ceil(q/qa(i.display));Se>i.display.maxLineLength&&(i.display.maxLineLength=Se,i.display.maxLine=k.line,i.display.maxLineChanged=!0)}}}Math.abs(y)>2&&(o.scroller.scrollTop+=y)}function Qy(i){if(i.widgets)for(var o=0;o<i.widgets.length;++o){var h=i.widgets[o],f=h.node.parentNode;f&&(h.height=f.offsetHeight)}}function gc(i,o,h){var f=h&&h.top!=null?Math.max(0,h.top):i.scroller.scrollTop;f=Math.floor(f-cc(i));var d=h&&h.bottom!=null?h.bottom:f+i.wrapper.clientHeight,y=jn(o,f),w=jn(o,d);if(h&&h.ensure){var k=h.ensure.from.line,P=h.ensure.to.line;k<y?(y=k,w=jn(o,Bs(Ye(o,k))+i.wrapper.clientHeight)):Math.min(P,o.lastLine())>=w&&(y=jn(o,Bs(Ye(o,P))-i.wrapper.clientHeight),w=P)}return{from:y,to:Math.max(w,y+1)}}function zE(i,o){if(!Y(i,"scrollCursorIntoView")){var h=i.display,f=h.sizer.getBoundingClientRect(),d=null;if(o.top+f.top<0?d=!0:o.bottom+f.top>(window.innerHeight||document.documentElement.clientHeight)&&(d=!1),d!=null&&!C){var y=J("div","\u200B",null,`position: absolute;
top: `+(o.top-h.viewOffset-cc(i.display))+`px;
height: `+(o.bottom-o.top+ps(i)+h.barHeight)+`px;
left: `+o.left+"px; width: "+Math.max(2,o.right-o.left)+"px;");i.display.lineSpace.appendChild(y),y.scrollIntoView(d),i.display.lineSpace.removeChild(y)}}}function HE(i,o,h,f){f==null&&(f=0);var d;!i.options.lineWrapping&&o==h&&(h=o.sticky=="before"?Ae(o.line,o.ch+1,"before"):o,o=o.ch?Ae(o.line,o.sticky=="before"?o.ch-1:o.ch,"after"):o);for(var y=0;y<5;y++){var w=!1,k=Kn(i,o),P=!h||h==o?k:Kn(i,h);d={left:Math.min(k.left,P.left),top:Math.min(k.top,P.top)-f,right:Math.max(k.left,P.left),bottom:Math.max(k.bottom,P.bottom)+f};var N=Tp(i,d),q=i.doc.scrollTop,G=i.doc.scrollLeft;if(N.scrollTop!=null&&(yl(i,N.scrollTop),Math.abs(i.doc.scrollTop-q)>1&&(w=!0)),N.scrollLeft!=null&&(ea(i,N.scrollLeft),Math.abs(i.doc.scrollLeft-G)>1&&(w=!0)),!w)break}return d}function VE(i,o){var h=Tp(i,o);h.scrollTop!=null&&yl(i,h.scrollTop),h.scrollLeft!=null&&ea(i,h.scrollLeft)}function Tp(i,o){var h=i.display,f=Ua(i.display);o.top<0&&(o.top=0);var d=i.curOp&&i.curOp.scrollTop!=null?i.curOp.scrollTop:h.scroller.scrollTop,y=fp(i),w={};o.bottom-o.top>y&&(o.bottom=o.top+y);var k=i.doc.height+cp(h),P=o.top<f,N=o.bottom>k-f;if(o.top<d)w.scrollTop=P?0:o.top;else if(o.bottom>d+y){var q=Math.min(o.top,(N?k:o.bottom)-y);q!=d&&(w.scrollTop=q)}var G=i.options.fixedGutter?0:h.gutters.offsetWidth,se=i.curOp&&i.curOp.scrollLeft!=null?i.curOp.scrollLeft:h.scroller.scrollLeft-G,te=Ji(i)-h.gutters.offsetWidth,ve=o.right-o.left>te;return ve&&(o.right=o.left+te),o.left<10?w.scrollLeft=0:o.left<se?w.scrollLeft=Math.max(0,o.left+G-(ve?0:10)):o.right>te+se-3&&(w.scrollLeft=o.right+(ve?0:10)-te),w}function _p(i,o){o!=null&&(yc(i),i.curOp.scrollTop=(i.curOp.scrollTop==null?i.doc.scrollTop:i.curOp.scrollTop)+o)}function za(i){yc(i);var o=i.getCursor();i.curOp.scrollToPos={from:o,to:o,margin:i.options.cursorScrollMargin}}function gl(i,o,h){(o!=null||h!=null)&&yc(i),o!=null&&(i.curOp.scrollLeft=o),h!=null&&(i.curOp.scrollTop=h)}function GE(i,o){yc(i),i.curOp.scrollToPos=o}function yc(i){var o=i.curOp.scrollToPos;if(o){i.curOp.scrollToPos=null;var h=Hy(i,o.from),f=Hy(i,o.to);Zy(i,h,f,o.margin)}}function Zy(i,o,h,f){var d=Tp(i,{left:Math.min(o.left,h.left),top:Math.min(o.top,h.top)-f,right:Math.max(o.right,h.right),bottom:Math.max(o.bottom,h.bottom)+f});gl(i,d.scrollLeft,d.scrollTop)}function yl(i,o){Math.abs(i.doc.scrollTop-o)<2||(s||Ap(i,{top:o}),ev(i,o,!0),s&&Ap(i),wl(i,100))}function ev(i,o,h){o=Math.max(0,Math.min(i.display.scroller.scrollHeight-i.display.scroller.clientHeight,o)),!(i.display.scroller.scrollTop==o&&!h)&&(i.doc.scrollTop=o,i.display.scrollbars.setScrollTop(o),i.display.scroller.scrollTop!=o&&(i.display.scroller.scrollTop=o))}function ea(i,o,h,f){o=Math.max(0,Math.min(o,i.display.scroller.scrollWidth-i.display.scroller.clientWidth)),!((h?o==i.doc.scrollLeft:Math.abs(i.doc.scrollLeft-o)<2)&&!f)&&(i.doc.scrollLeft=o,iv(i),i.display.scroller.scrollLeft!=o&&(i.display.scroller.scrollLeft=o),i.display.scrollbars.setScrollLeft(o))}function vl(i){var o=i.display,h=o.gutters.offsetWidth,f=Math.round(i.doc.height+cp(i.display));return{clientHeight:o.scroller.clientHeight,viewHeight:o.wrapper.clientHeight,scrollWidth:o.scroller.scrollWidth,clientWidth:o.scroller.clientWidth,viewWidth:o.wrapper.clientWidth,barLeft:i.options.fixedGutter?h:0,docHeight:f,scrollHeight:f+ps(i)+o.barHeight,nativeBarWidth:o.nativeBarWidth,gutterWidth:h}}var ta=function(i,o,h){this.cm=h;var f=this.vert=J("div",[J("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),d=this.horiz=J("div",[J("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");f.tabIndex=d.tabIndex=-1,i(f),i(d),Qe(f,"scroll",function(){f.clientHeight&&o(f.scrollTop,"vertical")}),Qe(d,"scroll",function(){d.clientWidth&&o(d.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,c&&m<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ta.prototype.update=function(i){var o=i.scrollWidth>i.clientWidth+1,h=i.scrollHeight>i.clientHeight+1,f=i.nativeBarWidth;if(h){this.vert.style.display="block",this.vert.style.bottom=o?f+"px":"0";var d=i.viewHeight-(o?f:0);this.vert.firstChild.style.height=Math.max(0,i.scrollHeight-i.clientHeight+d)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(o){this.horiz.style.display="block",this.horiz.style.right=h?f+"px":"0",this.horiz.style.left=i.barLeft+"px";var y=i.viewWidth-i.barLeft-(h?f:0);this.horiz.firstChild.style.width=Math.max(0,i.scrollWidth-i.clientWidth+y)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&i.clientHeight>0&&(f==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:h?f:0,bottom:o?f:0}},ta.prototype.setScrollLeft=function(i){this.horiz.scrollLeft!=i&&(this.horiz.scrollLeft=i),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ta.prototype.setScrollTop=function(i){this.vert.scrollTop!=i&&(this.vert.scrollTop=i),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ta.prototype.zeroWidthHack=function(){var i=M&&!S?"12px":"18px";this.horiz.style.height=this.vert.style.width=i,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ee,this.disableVert=new ee},ta.prototype.enableZeroWidthBar=function(i,o,h){i.style.pointerEvents="auto";function f(){var d=i.getBoundingClientRect(),y=h=="vert"?document.elementFromPoint(d.right-1,(d.top+d.bottom)/2):document.elementFromPoint((d.right+d.left)/2,d.bottom-1);y!=i?i.style.pointerEvents="none":o.set(1e3,f)}o.set(1e3,f)},ta.prototype.clear=function(){var i=this.horiz.parentNode;i.removeChild(this.horiz),i.removeChild(this.vert)};var bl=function(){};bl.prototype.update=function(){return{bottom:0,right:0}},bl.prototype.setScrollLeft=function(){},bl.prototype.setScrollTop=function(){},bl.prototype.clear=function(){};function Ha(i,o){o||(o=vl(i));var h=i.display.barWidth,f=i.display.barHeight;tv(i,o);for(var d=0;d<4&&h!=i.display.barWidth||f!=i.display.barHeight;d++)h!=i.display.barWidth&&i.options.lineWrapping&&mc(i),tv(i,vl(i)),h=i.display.barWidth,f=i.display.barHeight}function tv(i,o){var h=i.display,f=h.scrollbars.update(o);h.sizer.style.paddingRight=(h.barWidth=f.right)+"px",h.sizer.style.paddingBottom=(h.barHeight=f.bottom)+"px",h.heightForcer.style.borderBottom=f.bottom+"px solid transparent",f.right&&f.bottom?(h.scrollbarFiller.style.display="block",h.scrollbarFiller.style.height=f.bottom+"px",h.scrollbarFiller.style.width=f.right+"px"):h.scrollbarFiller.style.display="",f.bottom&&i.options.coverGutterNextToScrollbar&&i.options.fixedGutter?(h.gutterFiller.style.display="block",h.gutterFiller.style.height=f.bottom+"px",h.gutterFiller.style.width=o.gutterWidth+"px"):h.gutterFiller.style.display=""}var rv={native:ta,null:bl};function nv(i){i.display.scrollbars&&(i.display.scrollbars.clear(),i.display.scrollbars.addClass&&H(i.display.wrapper,i.display.scrollbars.addClass)),i.display.scrollbars=new rv[i.options.scrollbarStyle](function(o){i.display.wrapper.insertBefore(o,i.display.scrollbarFiller),Qe(o,"mousedown",function(){i.state.focused&&setTimeout(function(){return i.display.input.focus()},0)}),o.setAttribute("cm-not-content","true")},function(o,h){h=="horizontal"?ea(i,o):yl(i,o)},i),i.display.scrollbars.addClass&&de(i.display.wrapper,i.display.scrollbars.addClass)}var KE=0;function ra(i){i.curOp={cm:i,viewChanged:!1,startHeight:i.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++KE,markArrays:null},_E(i.curOp)}function na(i){var o=i.curOp;o&&AE(o,function(h){for(var f=0;f<h.ops.length;f++)h.ops[f].cm.curOp=null;YE(h)})}function YE(i){for(var o=i.ops,h=0;h<o.length;h++)JE(o[h]);for(var f=0;f<o.length;f++)XE(o[f]);for(var d=0;d<o.length;d++)QE(o[d]);for(var y=0;y<o.length;y++)ZE(o[y]);for(var w=0;w<o.length;w++)eA(o[w])}function JE(i){var o=i.cm,h=o.display;rA(o),i.updateMaxLine&&lp(o),i.mustUpdate=i.viewChanged||i.forceUpdate||i.scrollTop!=null||i.scrollToPos&&(i.scrollToPos.from.line<h.viewFrom||i.scrollToPos.to.line>=h.viewTo)||h.maxLineChanged&&o.options.lineWrapping,i.update=i.mustUpdate&&new vc(o,i.mustUpdate&&{top:i.scrollTop,ensure:i.scrollToPos},i.forceUpdate)}function XE(i){i.updatedDisplay=i.mustUpdate&&Ep(i.cm,i.update)}function QE(i){var o=i.cm,h=o.display;i.updatedDisplay&&mc(o),i.barMeasure=vl(o),h.maxLineChanged&&!o.options.lineWrapping&&(i.adjustWidthTo=Fy(o,h.maxLine,h.maxLine.text.length).left+3,o.display.sizerWidth=i.adjustWidthTo,i.barMeasure.scrollWidth=Math.max(h.scroller.clientWidth,h.sizer.offsetLeft+i.adjustWidthTo+ps(o)+o.display.barWidth),i.maxScrollLeft=Math.max(0,h.sizer.offsetLeft+i.adjustWidthTo-Ji(o))),(i.updatedDisplay||i.selectionChanged)&&(i.preparedSelection=h.input.prepareSelection())}function ZE(i){var o=i.cm;i.adjustWidthTo!=null&&(o.display.sizer.style.minWidth=i.adjustWidthTo+"px",i.maxScrollLeft<o.doc.scrollLeft&&ea(o,Math.min(o.display.scroller.scrollLeft,i.maxScrollLeft),!0),o.display.maxLineChanged=!1);var h=i.focus&&i.focus==Z();i.preparedSelection&&o.display.input.showSelection(i.preparedSelection,h),(i.updatedDisplay||i.startHeight!=o.doc.height)&&Ha(o,i.barMeasure),i.updatedDisplay&&Pp(o,i.barMeasure),i.selectionChanged&&xp(o),o.state.focused&&i.updateInput&&o.display.input.reset(i.typing),h&&Xy(i.cm)}function eA(i){var o=i.cm,h=o.display,f=o.doc;if(i.updatedDisplay&&sv(o,i.update),h.wheelStartX!=null&&(i.scrollTop!=null||i.scrollLeft!=null||i.scrollToPos)&&(h.wheelStartX=h.wheelStartY=null),i.scrollTop!=null&&ev(o,i.scrollTop,i.forceScroll),i.scrollLeft!=null&&ea(o,i.scrollLeft,!0,!0),i.scrollToPos){var d=HE(o,We(f,i.scrollToPos.from),We(f,i.scrollToPos.to),i.scrollToPos.margin);zE(o,d)}var y=i.maybeHiddenMarkers,w=i.maybeUnhiddenMarkers;if(y)for(var k=0;k<y.length;++k)y[k].lines.length||rt(y[k],"hide");if(w)for(var P=0;P<w.length;++P)w[P].lines.length&&rt(w[P],"unhide");h.wrapper.offsetHeight&&(f.scrollTop=o.display.scroller.scrollTop),i.changeObjs&&rt(o,"changes",o,i.changeObjs),i.update&&i.update.finish()}function gn(i,o){if(i.curOp)return o();ra(i);try{return o()}finally{na(i)}}function xr(i,o){return function(){if(i.curOp)return o.apply(i,arguments);ra(i);try{return o.apply(i,arguments)}finally{na(i)}}}function Xr(i){return function(){if(this.curOp)return i.apply(this,arguments);ra(this);try{return i.apply(this,arguments)}finally{na(this)}}}function Sr(i){return function(){var o=this.cm;if(!o||o.curOp)return i.apply(this,arguments);ra(o);try{return i.apply(this,arguments)}finally{na(o)}}}function wl(i,o){i.doc.highlightFrontier<i.display.viewTo&&i.state.highlight.set(o,we(tA,i))}function tA(i){var o=i.doc;if(!(o.highlightFrontier>=i.display.viewTo)){var h=+new Date+i.options.workTime,f=ul(i,o.highlightFrontier),d=[];o.iter(f.line,Math.min(o.first+o.size,i.display.viewTo+500),function(y){if(f.line>=i.display.viewFrom){var w=y.styles,k=y.text.length>i.options.maxHighlightLength?Br(o.mode,f.state):null,P=fy(i,y,f,!0);k&&(f.state=k),y.styles=P.styles;var N=y.styleClasses,q=P.classes;q?y.styleClasses=q:N&&(y.styleClasses=null);for(var G=!w||w.length!=y.styles.length||N!=q&&(!N||!q||N.bgClass!=q.bgClass||N.textClass!=q.textClass),se=0;!G&&se<w.length;++se)G=w[se]!=y.styles[se];G&&d.push(f.line),y.stateAfter=f.save(),f.nextLine()}else y.text.length<=i.options.maxHighlightLength&&rp(i,y.text,f),y.stateAfter=f.line%5==0?f.save():null,f.nextLine();if(+new Date>h)return wl(i,i.options.workDelay),!0}),o.highlightFrontier=f.line,o.modeFrontier=Math.max(o.modeFrontier,f.line),d.length&&gn(i,function(){for(var y=0;y<d.length;y++)mi(i,d[y],"text")})}}var vc=function(i,o,h){var f=i.display;this.viewport=o,this.visible=gc(f,i.doc,o),this.editorIsHidden=!f.wrapper.offsetWidth,this.wrapperHeight=f.wrapper.clientHeight,this.wrapperWidth=f.wrapper.clientWidth,this.oldDisplayWidth=Ji(i),this.force=h,this.dims=yp(i),this.events=[]};vc.prototype.signal=function(i,o){Pe(i,o)&&this.events.push(arguments)},vc.prototype.finish=function(){for(var i=0;i<this.events.length;i++)rt.apply(null,this.events[i])};function rA(i){var o=i.display;!o.scrollbarsClipped&&o.scroller.offsetWidth&&(o.nativeBarWidth=o.scroller.offsetWidth-o.scroller.clientWidth,o.heightForcer.style.height=ps(i)+"px",o.sizer.style.marginBottom=-o.nativeBarWidth+"px",o.sizer.style.borderRightWidth=ps(i)+"px",o.scrollbarsClipped=!0)}function nA(i){if(i.hasFocus())return null;var o=Z();if(!o||!W(i.display.lineDiv,o))return null;var h={activeElt:o};if(window.getSelection){var f=window.getSelection();f.anchorNode&&f.extend&&W(i.display.lineDiv,f.anchorNode)&&(h.anchorNode=f.anchorNode,h.anchorOffset=f.anchorOffset,h.focusNode=f.focusNode,h.focusOffset=f.focusOffset)}return h}function sA(i){if(!(!i||!i.activeElt||i.activeElt==Z())&&(i.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(i.activeElt.nodeName)&&i.anchorNode&&W(document.body,i.anchorNode)&&W(document.body,i.focusNode))){var o=window.getSelection(),h=document.createRange();h.setEnd(i.anchorNode,i.anchorOffset),h.collapse(!1),o.removeAllRanges(),o.addRange(h),o.extend(i.focusNode,i.focusOffset)}}function Ep(i,o){var h=i.display,f=i.doc;if(o.editorIsHidden)return gi(i),!1;if(!o.force&&o.visible.from>=h.viewFrom&&o.visible.to<=h.viewTo&&(h.updateLineNumbers==null||h.updateLineNumbers>=h.viewTo)&&h.renderedView==h.view&&Yy(i)==0)return!1;av(i)&&(gi(i),o.dims=yp(i));var d=f.first+f.size,y=Math.max(o.visible.from-i.options.viewportMargin,f.first),w=Math.min(d,o.visible.to+i.options.viewportMargin);h.viewFrom<y&&y-h.viewFrom<20&&(y=Math.max(f.first,h.viewFrom)),h.viewTo>w&&h.viewTo-w<20&&(w=Math.min(d,h.viewTo)),Fs&&(y=ap(i.doc,y),w=_y(i.doc,w));var k=y!=h.viewFrom||w!=h.viewTo||h.lastWrapHeight!=o.wrapperHeight||h.lastWrapWidth!=o.wrapperWidth;qE(i,y,w),h.viewOffset=Bs(Ye(i.doc,h.viewFrom)),i.display.mover.style.top=h.viewOffset+"px";var P=Yy(i);if(!k&&P==0&&!o.force&&h.renderedView==h.view&&(h.updateLineNumbers==null||h.updateLineNumbers>=h.viewTo))return!1;var N=nA(i);return P>4&&(h.lineDiv.style.display="none"),iA(i,h.updateLineNumbers,o.dims),P>4&&(h.lineDiv.style.display=""),h.renderedView=h.view,sA(N),V(h.cursorDiv),V(h.selectionDiv),h.gutters.style.height=h.sizer.style.minHeight=0,k&&(h.lastWrapHeight=o.wrapperHeight,h.lastWrapWidth=o.wrapperWidth,wl(i,400)),h.updateLineNumbers=null,!0}function sv(i,o){for(var h=o.viewport,f=!0;;f=!1){if(!f||!i.options.lineWrapping||o.oldDisplayWidth==Ji(i)){if(h&&h.top!=null&&(h={top:Math.min(i.doc.height+cp(i.display)-fp(i),h.top)}),o.visible=gc(i.display,i.doc,h),o.visible.from>=i.display.viewFrom&&o.visible.to<=i.display.viewTo)break}else f&&(o.visible=gc(i.display,i.doc,h));if(!Ep(i,o))break;mc(i);var d=vl(i);ml(i),Ha(i,d),Pp(i,d),o.force=!1}o.signal(i,"update",i),(i.display.viewFrom!=i.display.reportedViewFrom||i.display.viewTo!=i.display.reportedViewTo)&&(o.signal(i,"viewportChange",i,i.display.viewFrom,i.display.viewTo),i.display.reportedViewFrom=i.display.viewFrom,i.display.reportedViewTo=i.display.viewTo)}function Ap(i,o){var h=new vc(i,o);if(Ep(i,h)){mc(i),sv(i,h);var f=vl(i);ml(i),Ha(i,f),Pp(i,f),h.finish()}}function iA(i,o,h){var f=i.display,d=i.options.lineNumbers,y=f.lineDiv,w=y.firstChild;function k(ve){var Se=ve.nextSibling;return g&&M&&i.display.currentWheelTarget==ve?ve.style.display="none":ve.parentNode.removeChild(ve),Se}for(var P=f.view,N=f.viewFrom,q=0;q<P.length;q++){var G=P[q];if(!G.hidden)if(!G.node||G.node.parentNode!=y){var se=OE(i,G,N,h);y.insertBefore(se,w)}else{for(;w!=G.node;)w=k(w);var te=d&&o!=null&&o<=N&&G.lineNumber;G.changes&&(z(G.changes,"gutter")>-1&&(te=!1),Iy(i,G,N,h)),te&&(V(G.lineNumber),G.lineNumber.appendChild(document.createTextNode(Yi(i.options,N)))),w=G.node.nextSibling}N+=G.size}for(;w;)w=k(w)}function Cp(i){var o=i.gutters.offsetWidth;i.sizer.style.marginLeft=o+"px",wr(i,"gutterChanged",i)}function Pp(i,o){i.display.sizer.style.minHeight=o.docHeight+"px",i.display.heightForcer.style.top=o.docHeight+"px",i.display.gutters.style.height=o.docHeight+i.display.barHeight+ps(i)+"px"}function iv(i){var o=i.display,h=o.view;if(!(!o.alignWidgets&&(!o.gutters.firstChild||!i.options.fixedGutter))){for(var f=vp(o)-o.scroller.scrollLeft+i.doc.scrollLeft,d=o.gutters.offsetWidth,y=f+"px",w=0;w<h.length;w++)if(!h[w].hidden){i.options.fixedGutter&&(h[w].gutter&&(h[w].gutter.style.left=y),h[w].gutterBackground&&(h[w].gutterBackground.style.left=y));var k=h[w].alignable;if(k)for(var P=0;P<k.length;P++)k[P].style.left=y}i.options.fixedGutter&&(o.gutters.style.left=f+d+"px")}}function av(i){if(!i.options.lineNumbers)return!1;var o=i.doc,h=Yi(i.options,o.first+o.size-1),f=i.display;if(h.length!=f.lineNumChars){var d=f.measure.appendChild(J("div",[J("div",h)],"CodeMirror-linenumber CodeMirror-gutter-elt")),y=d.firstChild.offsetWidth,w=d.offsetWidth-y;return f.lineGutter.style.width="",f.lineNumInnerWidth=Math.max(y,f.lineGutter.offsetWidth-w)+1,f.lineNumWidth=f.lineNumInnerWidth+w,f.lineNumChars=f.lineNumInnerWidth?h.length:-1,f.lineGutter.style.width=f.lineNumWidth+"px",Cp(i.display),!0}return!1}function Ip(i,o){for(var h=[],f=!1,d=0;d<i.length;d++){var y=i[d],w=null;if(typeof y!="string"&&(w=y.style,y=y.className),y=="CodeMirror-linenumbers")if(o)f=!0;else continue;h.push({className:y,style:w})}return o&&!f&&h.push({className:"CodeMirror-linenumbers",style:null}),h}function ov(i){var o=i.gutters,h=i.gutterSpecs;V(o),i.lineGutter=null;for(var f=0;f<h.length;++f){var d=h[f],y=d.className,w=d.style,k=o.appendChild(J("div",null,"CodeMirror-gutter "+y));w&&(k.style.cssText=w),y=="CodeMirror-linenumbers"&&(i.lineGutter=k,k.style.width=(i.lineNumWidth||1)+"px")}o.style.display=h.length?"":"none",Cp(i)}function xl(i){ov(i.display),on(i),iv(i)}function aA(i,o,h,f){var d=this;this.input=h,d.scrollbarFiller=J("div",null,"CodeMirror-scrollbar-filler"),d.scrollbarFiller.setAttribute("cm-not-content","true"),d.gutterFiller=J("div",null,"CodeMirror-gutter-filler"),d.gutterFiller.setAttribute("cm-not-content","true"),d.lineDiv=D("div",null,"CodeMirror-code"),d.selectionDiv=J("div",null,null,"position: relative; z-index: 1"),d.cursorDiv=J("div",null,"CodeMirror-cursors"),d.measure=J("div",null,"CodeMirror-measure"),d.lineMeasure=J("div",null,"CodeMirror-measure"),d.lineSpace=D("div",[d.measure,d.lineMeasure,d.selectionDiv,d.cursorDiv,d.lineDiv],null,"position: relative; outline: none");var y=D("div",[d.lineSpace],"CodeMirror-lines");d.mover=J("div",[y],null,"position: relative"),d.sizer=J("div",[d.mover],"CodeMirror-sizer"),d.sizerWidth=null,d.heightForcer=J("div",null,null,"position: absolute; height: "+ne+"px; width: 1px;"),d.gutters=J("div",null,"CodeMirror-gutters"),d.lineGutter=null,d.scroller=J("div",[d.sizer,d.heightForcer,d.gutters],"CodeMirror-scroll"),d.scroller.setAttribute("tabIndex","-1"),d.wrapper=J("div",[d.scrollbarFiller,d.gutterFiller,d.scroller],"CodeMirror"),d.wrapper.setAttribute("translate","no"),c&&m<8&&(d.gutters.style.zIndex=-1,d.scroller.style.paddingRight=0),!g&&!(s&&I)&&(d.scroller.draggable=!0),i&&(i.appendChild?i.appendChild(d.wrapper):i(d.wrapper)),d.viewFrom=d.viewTo=o.first,d.reportedViewFrom=d.reportedViewTo=o.first,d.view=[],d.renderedView=null,d.externalMeasured=null,d.viewOffset=0,d.lastWrapHeight=d.lastWrapWidth=0,d.updateLineNumbers=null,d.nativeBarWidth=d.barHeight=d.barWidth=0,d.scrollbarsClipped=!1,d.lineNumWidth=d.lineNumInnerWidth=d.lineNumChars=null,d.alignWidgets=!1,d.cachedCharWidth=d.cachedTextHeight=d.cachedPaddingH=null,d.maxLine=null,d.maxLineLength=0,d.maxLineChanged=!1,d.wheelDX=d.wheelDY=d.wheelStartX=d.wheelStartY=null,d.shift=!1,d.selForContextMenu=null,d.activeTouch=null,d.gutterSpecs=Ip(f.gutters,f.lineNumbers),ov(d),h.init(d)}var bc=0,js=null;c?js=-.53:s?js=15:b?js=-.7:E&&(js=-1/3);function lv(i){var o=i.wheelDeltaX,h=i.wheelDeltaY;return o==null&&i.detail&&i.axis==i.HORIZONTAL_AXIS&&(o=i.detail),h==null&&i.detail&&i.axis==i.VERTICAL_AXIS?h=i.detail:h==null&&(h=i.wheelDelta),{x:o,y:h}}function oA(i){var o=lv(i);return o.x*=js,o.y*=js,o}function uv(i,o){var h=lv(o),f=h.x,d=h.y,y=js;o.deltaMode===0&&(f=o.deltaX,d=o.deltaY,y=1);var w=i.display,k=w.scroller,P=k.scrollWidth>k.clientWidth,N=k.scrollHeight>k.clientHeight;if(!!(f&&P||d&&N)){if(d&&M&&g){e:for(var q=o.target,G=w.view;q!=k;q=q.parentNode)for(var se=0;se<G.length;se++)if(G[se].node==q){i.display.currentWheelTarget=q;break e}}if(f&&!s&&!x&&y!=null){d&&N&&yl(i,Math.max(0,k.scrollTop+d*y)),ea(i,Math.max(0,k.scrollLeft+f*y)),(!d||d&&N)&&$e(o),w.wheelStartX=null;return}if(d&&y!=null){var te=d*y,ve=i.doc.scrollTop,Se=ve+w.wrapper.clientHeight;te<0?ve=Math.max(0,ve+te-50):Se=Math.min(i.doc.height,Se+te+50),Ap(i,{top:ve,bottom:Se})}bc<20&&o.deltaMode!==0&&(w.wheelStartX==null?(w.wheelStartX=k.scrollLeft,w.wheelStartY=k.scrollTop,w.wheelDX=f,w.wheelDY=d,setTimeout(function(){if(w.wheelStartX!=null){var Ne=k.scrollLeft-w.wheelStartX,Re=k.scrollTop-w.wheelStartY,je=Re&&w.wheelDY&&Re/w.wheelDY||Ne&&w.wheelDX&&Ne/w.wheelDX;w.wheelStartX=w.wheelStartY=null,je&&(js=(js*bc+je)/(bc+1),++bc)}},200)):(w.wheelDX+=f,w.wheelDY+=d))}}var In=function(i,o){this.ranges=i,this.primIndex=o};In.prototype.primary=function(){return this.ranges[this.primIndex]},In.prototype.equals=function(i){if(i==this)return!0;if(i.primIndex!=this.primIndex||i.ranges.length!=this.ranges.length)return!1;for(var o=0;o<this.ranges.length;o++){var h=this.ranges[o],f=i.ranges[o];if(!K(h.anchor,f.anchor)||!K(h.head,f.head))return!1}return!0},In.prototype.deepCopy=function(){for(var i=[],o=0;o<this.ranges.length;o++)i[o]=new Ot(xe(this.ranges[o].anchor),xe(this.ranges[o].head));return new In(i,this.primIndex)},In.prototype.somethingSelected=function(){for(var i=0;i<this.ranges.length;i++)if(!this.ranges[i].empty())return!0;return!1},In.prototype.contains=function(i,o){o||(o=i);for(var h=0;h<this.ranges.length;h++){var f=this.ranges[h];if(L(o,f.from())>=0&&L(i,f.to())<=0)return h}return-1};var Ot=function(i,o){this.anchor=i,this.head=o};Ot.prototype.from=function(){return lt(this.anchor,this.head)},Ot.prototype.to=function(){return Ie(this.anchor,this.head)},Ot.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Yn(i,o,h){var f=i&&i.options.selectionsMayTouch,d=o[h];o.sort(function(se,te){return L(se.from(),te.from())}),h=z(o,d);for(var y=1;y<o.length;y++){var w=o[y],k=o[y-1],P=L(k.to(),w.from());if(f&&!w.empty()?P>0:P>=0){var N=lt(k.from(),w.from()),q=Ie(k.to(),w.to()),G=k.empty()?w.from()==w.head:k.from()==k.head;y<=h&&--h,o.splice(--y,2,new Ot(G?q:N,G?N:q))}}return new In(o,h)}function yi(i,o){return new In([new Ot(i,o||i)],0)}function vi(i){return i.text?Ae(i.from.line+i.text.length-1,qe(i.text).length+(i.text.length==1?i.from.ch:0)):i.to}function cv(i,o){if(L(i,o.from)<0)return i;if(L(i,o.to)<=0)return vi(o);var h=i.line+o.text.length-(o.to.line-o.from.line)-1,f=i.ch;return i.line==o.to.line&&(f+=vi(o).ch-o.to.ch),Ae(h,f)}function Np(i,o){for(var h=[],f=0;f<i.sel.ranges.length;f++){var d=i.sel.ranges[f];h.push(new Ot(cv(d.anchor,o),cv(d.head,o)))}return Yn(i.cm,h,i.sel.primIndex)}function fv(i,o,h){return i.line==o.line?Ae(h.line,i.ch-o.ch+h.ch):Ae(h.line+(i.line-o.line),i.ch)}function lA(i,o,h){for(var f=[],d=Ae(i.first,0),y=d,w=0;w<o.length;w++){var k=o[w],P=fv(k.from,d,y),N=fv(vi(k),d,y);if(d=k.to,y=N,h=="around"){var q=i.sel.ranges[w],G=L(q.head,q.anchor)<0;f[w]=new Ot(G?N:P,G?P:N)}else f[w]=new Ot(P,P)}return new In(f,i.sel.primIndex)}function Op(i){i.doc.mode=fs(i.options,i.doc.modeOption),Sl(i)}function Sl(i){i.doc.iter(function(o){o.stateAfter&&(o.stateAfter=null),o.styles&&(o.styles=null)}),i.doc.modeFrontier=i.doc.highlightFrontier=i.doc.first,wl(i,100),i.state.modeGen++,i.curOp&&on(i)}function hv(i,o){return o.from.ch==0&&o.to.ch==0&&qe(o.text)==""&&(!i.cm||i.cm.options.wholeLineUpdateBefore)}function Lp(i,o,h,f){function d(je){return h?h[je]:null}function y(je,Fe,He){gE(je,Fe,He,f),wr(je,"change",je,o)}function w(je,Fe){for(var He=[],nt=je;nt<Fe;++nt)He.push(new Ba(N[nt],d(nt),f));return He}var k=o.from,P=o.to,N=o.text,q=Ye(i,k.line),G=Ye(i,P.line),se=qe(N),te=d(N.length-1),ve=P.line-k.line;if(o.full)i.insert(0,w(0,N.length)),i.remove(N.length,i.size-N.length);else if(hv(i,o)){var Se=w(0,N.length-1);y(G,G.text,te),ve&&i.remove(k.line,ve),Se.length&&i.insert(k.line,Se)}else if(q==G)if(N.length==1)y(q,q.text.slice(0,k.ch)+se+q.text.slice(P.ch),te);else{var Ne=w(1,N.length-1);Ne.push(new Ba(se+q.text.slice(P.ch),te,f)),y(q,q.text.slice(0,k.ch)+N[0],d(0)),i.insert(k.line+1,Ne)}else if(N.length==1)y(q,q.text.slice(0,k.ch)+N[0]+G.text.slice(P.ch),d(0)),i.remove(k.line+1,ve);else{y(q,q.text.slice(0,k.ch)+N[0],d(0)),y(G,se+G.text.slice(P.ch),te);var Re=w(1,N.length-1);ve>1&&i.remove(k.line+1,ve-1),i.insert(k.line+1,Re)}wr(i,"change",i,o)}function bi(i,o,h){function f(d,y,w){if(d.linked)for(var k=0;k<d.linked.length;++k){var P=d.linked[k];if(P.doc!=y){var N=w&&P.sharedHist;h&&!N||(o(P.doc,N),f(P.doc,d,N))}}}f(i,null,!0)}function pv(i,o){if(o.cm)throw new Error("This document is already in use.");i.doc=o,o.cm=i,bp(i),Op(i),dv(i),i.options.direction=o.direction,i.options.lineWrapping||lp(i),i.options.mode=o.modeOption,on(i)}function dv(i){(i.doc.direction=="rtl"?de:H)(i.display.lineDiv,"CodeMirror-rtl")}function uA(i){gn(i,function(){dv(i),on(i)})}function wc(i){this.done=[],this.undone=[],this.undoDepth=i?i.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=i?i.maxGeneration:1}function Mp(i,o){var h={from:xe(o.from),to:vi(o),text:$n(i,o.from,o.to)};return yv(i,h,o.from.line,o.to.line+1),bi(i,function(f){return yv(f,h,o.from.line,o.to.line+1)},!0),h}function mv(i){for(;i.length;){var o=qe(i);if(o.ranges)i.pop();else break}}function cA(i,o){if(o)return mv(i.done),qe(i.done);if(i.done.length&&!qe(i.done).ranges)return qe(i.done);if(i.done.length>1&&!i.done[i.done.length-2].ranges)return i.done.pop(),qe(i.done)}function gv(i,o,h,f){var d=i.history;d.undone.length=0;var y=+new Date,w,k;if((d.lastOp==f||d.lastOrigin==o.origin&&o.origin&&(o.origin.charAt(0)=="+"&&d.lastModTime>y-(i.cm?i.cm.options.historyEventDelay:500)||o.origin.charAt(0)=="*"))&&(w=cA(d,d.lastOp==f)))k=qe(w.changes),L(o.from,o.to)==0&&L(o.from,k.to)==0?k.to=vi(o):w.changes.push(Mp(i,o));else{var P=qe(d.done);for((!P||!P.ranges)&&xc(i.sel,d.done),w={changes:[Mp(i,o)],generation:d.generation},d.done.push(w);d.done.length>d.undoDepth;)d.done.shift(),d.done[0].ranges||d.done.shift()}d.done.push(h),d.generation=++d.maxGeneration,d.lastModTime=d.lastSelTime=y,d.lastOp=d.lastSelOp=f,d.lastOrigin=d.lastSelOrigin=o.origin,k||rt(i,"historyAdded")}function fA(i,o,h,f){var d=o.charAt(0);return d=="*"||d=="+"&&h.ranges.length==f.ranges.length&&h.somethingSelected()==f.somethingSelected()&&new Date-i.history.lastSelTime<=(i.cm?i.cm.options.historyEventDelay:500)}function hA(i,o,h,f){var d=i.history,y=f&&f.origin;h==d.lastSelOp||y&&d.lastSelOrigin==y&&(d.lastModTime==d.lastSelTime&&d.lastOrigin==y||fA(i,y,qe(d.done),o))?d.done[d.done.length-1]=o:xc(o,d.done),d.lastSelTime=+new Date,d.lastSelOrigin=y,d.lastSelOp=h,f&&f.clearRedo!==!1&&mv(d.undone)}function xc(i,o){var h=qe(o);h&&h.ranges&&h.equals(i)||o.push(i)}function yv(i,o,h,f){var d=o["spans_"+i.id],y=0;i.iter(Math.max(i.first,h),Math.min(i.first+i.size,f),function(w){w.markedSpans&&((d||(d=o["spans_"+i.id]={}))[y]=w.markedSpans),++y})}function pA(i){if(!i)return null;for(var o,h=0;h<i.length;++h)i[h].marker.explicitlyCleared?o||(o=i.slice(0,h)):o&&o.push(i[h]);return o?o.length?o:null:i}function dA(i,o){var h=o["spans_"+i.id];if(!h)return null;for(var f=[],d=0;d<o.text.length;++d)f.push(pA(h[d]));return f}function vv(i,o){var h=dA(i,o),f=sp(i,o);if(!h)return f;if(!f)return h;for(var d=0;d<h.length;++d){var y=h[d],w=f[d];if(y&&w){e:for(var k=0;k<w.length;++k){for(var P=w[k],N=0;N<y.length;++N)if(y[N].marker==P.marker)continue e;y.push(P)}}else w&&(h[d]=w)}return h}function Va(i,o,h){for(var f=[],d=0;d<i.length;++d){var y=i[d];if(y.ranges){f.push(h?In.prototype.deepCopy.call(y):y);continue}var w=y.changes,k=[];f.push({changes:k});for(var P=0;P<w.length;++P){var N=w[P],q=void 0;if(k.push({from:N.from,to:N.to,text:N.text}),o)for(var G in N)(q=G.match(/^spans_(\d+)$/))&&z(o,Number(q[1]))>-1&&(qe(k)[G]=N[G],delete N[G])}}return f}function Dp(i,o,h,f){if(f){var d=i.anchor;if(h){var y=L(o,d)<0;y!=L(h,d)<0?(d=o,o=h):y!=L(o,h)<0&&(o=h)}return new Ot(d,o)}else return new Ot(h||o,o)}function Sc(i,o,h,f,d){d==null&&(d=i.cm&&(i.cm.display.shift||i.extend)),jr(i,new In([Dp(i.sel.primary(),o,h,d)],0),f)}function bv(i,o,h){for(var f=[],d=i.cm&&(i.cm.display.shift||i.extend),y=0;y<i.sel.ranges.length;y++)f[y]=Dp(i.sel.ranges[y],o[y],null,d);var w=Yn(i.cm,f,i.sel.primIndex);jr(i,w,h)}function Rp(i,o,h,f){var d=i.sel.ranges.slice(0);d[o]=h,jr(i,Yn(i.cm,d,i.sel.primIndex),f)}function wv(i,o,h,f){jr(i,yi(o,h),f)}function mA(i,o,h){var f={ranges:o.ranges,update:function(d){this.ranges=[];for(var y=0;y<d.length;y++)this.ranges[y]=new Ot(We(i,d[y].anchor),We(i,d[y].head))},origin:h&&h.origin};return rt(i,"beforeSelectionChange",i,f),i.cm&&rt(i.cm,"beforeSelectionChange",i.cm,f),f.ranges!=o.ranges?Yn(i.cm,f.ranges,f.ranges.length-1):o}function xv(i,o,h){var f=i.history.done,d=qe(f);d&&d.ranges?(f[f.length-1]=o,kc(i,o,h)):jr(i,o,h)}function jr(i,o,h){kc(i,o,h),hA(i,i.sel,i.cm?i.cm.curOp.id:NaN,h)}function kc(i,o,h){(Pe(i,"beforeSelectionChange")||i.cm&&Pe(i.cm,"beforeSelectionChange"))&&(o=mA(i,o,h));var f=h&&h.bias||(L(o.primary().head,i.sel.primary().head)<0?-1:1);Sv(i,Tv(i,o,f,!0)),!(h&&h.scroll===!1)&&i.cm&&i.cm.getOption("readOnly")!="nocursor"&&za(i.cm)}function Sv(i,o){o.equals(i.sel)||(i.sel=o,i.cm&&(i.cm.curOp.updateInput=1,i.cm.curOp.selectionChanged=!0,Oe(i.cm)),wr(i,"cursorActivity",i))}function kv(i){Sv(i,Tv(i,i.sel,null,!1))}function Tv(i,o,h,f){for(var d,y=0;y<o.ranges.length;y++){var w=o.ranges[y],k=o.ranges.length==i.sel.ranges.length&&i.sel.ranges[y],P=Tc(i,w.anchor,k&&k.anchor,h,f),N=Tc(i,w.head,k&&k.head,h,f);(d||P!=w.anchor||N!=w.head)&&(d||(d=o.ranges.slice(0,y)),d[y]=new Ot(P,N))}return d?Yn(i.cm,d,o.primIndex):o}function Ga(i,o,h,f,d){var y=Ye(i,o.line);if(y.markedSpans)for(var w=0;w<y.markedSpans.length;++w){var k=y.markedSpans[w],P=k.marker,N="selectLeft"in P?!P.selectLeft:P.inclusiveLeft,q="selectRight"in P?!P.selectRight:P.inclusiveRight;if((k.from==null||(N?k.from<=o.ch:k.from<o.ch))&&(k.to==null||(q?k.to>=o.ch:k.to>o.ch))){if(d&&(rt(P,"beforeCursorEnter"),P.explicitlyCleared))if(y.markedSpans){--w;continue}else break;if(!P.atomic)continue;if(h){var G=P.find(f<0?1:-1),se=void 0;if((f<0?q:N)&&(G=_v(i,G,-f,G&&G.line==o.line?y:null)),G&&G.line==o.line&&(se=L(G,h))&&(f<0?se<0:se>0))return Ga(i,G,o,f,d)}var te=P.find(f<0?-1:1);return(f<0?N:q)&&(te=_v(i,te,f,te.line==o.line?y:null)),te?Ga(i,te,o,f,d):null}}return o}function Tc(i,o,h,f,d){var y=f||1,w=Ga(i,o,h,y,d)||!d&&Ga(i,o,h,y,!0)||Ga(i,o,h,-y,d)||!d&&Ga(i,o,h,-y,!0);return w||(i.cantEdit=!0,Ae(i.first,0))}function _v(i,o,h,f){return h<0&&o.ch==0?o.line>i.first?We(i,Ae(o.line-1)):null:h>0&&o.ch==(f||Ye(i,o.line)).text.length?o.line<i.first+i.size-1?Ae(o.line+1,0):null:new Ae(o.line,o.ch+h)}function Ev(i){i.setSelection(Ae(i.firstLine(),0),Ae(i.lastLine()),ye)}function Av(i,o,h){var f={canceled:!1,from:o.from,to:o.to,text:o.text,origin:o.origin,cancel:function(){return f.canceled=!0}};return h&&(f.update=function(d,y,w,k){d&&(f.from=We(i,d)),y&&(f.to=We(i,y)),w&&(f.text=w),k!==void 0&&(f.origin=k)}),rt(i,"beforeChange",i,f),i.cm&&rt(i.cm,"beforeChange",i.cm,f),f.canceled?(i.cm&&(i.cm.curOp.updateInput=2),null):{from:f.from,to:f.to,text:f.text,origin:f.origin}}function Ka(i,o,h){if(i.cm){if(!i.cm.curOp)return xr(i.cm,Ka)(i,o,h);if(i.cm.state.suppressEdits)return}if(!((Pe(i,"beforeChange")||i.cm&&Pe(i.cm,"beforeChange"))&&(o=Av(i,o,!0),!o))){var f=vy&&!h&&hE(i,o.from,o.to);if(f)for(var d=f.length-1;d>=0;--d)Cv(i,{from:f[d].from,to:f[d].to,text:d?[""]:o.text,origin:o.origin});else Cv(i,o)}}function Cv(i,o){if(!(o.text.length==1&&o.text[0]==""&&L(o.from,o.to)==0)){var h=Np(i,o);gv(i,o,h,i.cm?i.cm.curOp.id:NaN),kl(i,o,h,sp(i,o));var f=[];bi(i,function(d,y){!y&&z(f,d.history)==-1&&(Ov(d.history,o),f.push(d.history)),kl(d,o,null,sp(d,o))})}}function _c(i,o,h){var f=i.cm&&i.cm.state.suppressEdits;if(!(f&&!h)){for(var d=i.history,y,w=i.sel,k=o=="undo"?d.done:d.undone,P=o=="undo"?d.undone:d.done,N=0;N<k.length&&(y=k[N],!(h?y.ranges&&!y.equals(i.sel):!y.ranges));N++);if(N!=k.length){for(d.lastOrigin=d.lastSelOrigin=null;;)if(y=k.pop(),y.ranges){if(xc(y,P),h&&!y.equals(i.sel)){jr(i,y,{clearRedo:!1});return}w=y}else if(f){k.push(y);return}else break;var q=[];xc(w,P),P.push({changes:q,generation:d.generation}),d.generation=y.generation||++d.maxGeneration;for(var G=Pe(i,"beforeChange")||i.cm&&Pe(i.cm,"beforeChange"),se=function(Se){var Ne=y.changes[Se];if(Ne.origin=o,G&&!Av(i,Ne,!1))return k.length=0,{};q.push(Mp(i,Ne));var Re=Se?Np(i,Ne):qe(k);kl(i,Ne,Re,vv(i,Ne)),!Se&&i.cm&&i.cm.scrollIntoView({from:Ne.from,to:vi(Ne)});var je=[];bi(i,function(Fe,He){!He&&z(je,Fe.history)==-1&&(Ov(Fe.history,Ne),je.push(Fe.history)),kl(Fe,Ne,null,vv(Fe,Ne))})},te=y.changes.length-1;te>=0;--te){var ve=se(te);if(ve)return ve.v}}}}function Pv(i,o){if(o!=0&&(i.first+=o,i.sel=new In(Xe(i.sel.ranges,function(d){return new Ot(Ae(d.anchor.line+o,d.anchor.ch),Ae(d.head.line+o,d.head.ch))}),i.sel.primIndex),i.cm)){on(i.cm,i.first,i.first-o,o);for(var h=i.cm.display,f=h.viewFrom;f<h.viewTo;f++)mi(i.cm,f,"gutter")}}function kl(i,o,h,f){if(i.cm&&!i.cm.curOp)return xr(i.cm,kl)(i,o,h,f);if(o.to.line<i.first){Pv(i,o.text.length-1-(o.to.line-o.from.line));return}if(!(o.from.line>i.lastLine())){if(o.from.line<i.first){var d=o.text.length-1-(i.first-o.from.line);Pv(i,d),o={from:Ae(i.first,0),to:Ae(o.to.line+d,o.to.ch),text:[qe(o.text)],origin:o.origin}}var y=i.lastLine();o.to.line>y&&(o={from:o.from,to:Ae(y,Ye(i,y).text.length),text:[o.text[0]],origin:o.origin}),o.removed=$n(i,o.from,o.to),h||(h=Np(i,o)),i.cm?gA(i.cm,o,f):Lp(i,o,f),kc(i,h,ye),i.cantEdit&&Tc(i,Ae(i.firstLine(),0))&&(i.cantEdit=!1)}}function gA(i,o,h){var f=i.doc,d=i.display,y=o.from,w=o.to,k=!1,P=y.line;i.options.lineWrapping||(P=Pt(Gn(Ye(f,y.line))),f.iter(P,w.line+1,function(te){if(te==d.maxLine)return k=!0,!0})),f.sel.contains(o.from,o.to)>-1&&Oe(i),Lp(f,o,h,Ky(i)),i.options.lineWrapping||(f.iter(P,y.line+o.text.length,function(te){var ve=lc(te);ve>d.maxLineLength&&(d.maxLine=te,d.maxLineLength=ve,d.maxLineChanged=!0,k=!1)}),k&&(i.curOp.updateMaxLine=!0)),iE(f,y.line),wl(i,400);var N=o.text.length-(w.line-y.line)-1;o.full?on(i):y.line==w.line&&o.text.length==1&&!hv(i.doc,o)?mi(i,y.line,"text"):on(i,y.line,w.line+1,N);var q=Pe(i,"changes"),G=Pe(i,"change");if(G||q){var se={from:y,to:w,text:o.text,removed:o.removed,origin:o.origin};G&&wr(i,"change",i,se),q&&(i.curOp.changeObjs||(i.curOp.changeObjs=[])).push(se)}i.display.selForContextMenu=null}function Ya(i,o,h,f,d){var y;f||(f=h),L(f,h)<0&&(y=[f,h],h=y[0],f=y[1]),typeof o=="string"&&(o=i.splitLines(o)),Ka(i,{from:h,to:f,text:o,origin:d})}function Iv(i,o,h,f){h<i.line?i.line+=f:o<i.line&&(i.line=o,i.ch=0)}function Nv(i,o,h,f){for(var d=0;d<i.length;++d){var y=i[d],w=!0;if(y.ranges){y.copied||(y=i[d]=y.deepCopy(),y.copied=!0);for(var k=0;k<y.ranges.length;k++)Iv(y.ranges[k].anchor,o,h,f),Iv(y.ranges[k].head,o,h,f);continue}for(var P=0;P<y.changes.length;++P){var N=y.changes[P];if(h<N.from.line)N.from=Ae(N.from.line+f,N.from.ch),N.to=Ae(N.to.line+f,N.to.ch);else if(o<=N.to.line){w=!1;break}}w||(i.splice(0,d+1),d=0)}}function Ov(i,o){var h=o.from.line,f=o.to.line,d=o.text.length-(f-h)-1;Nv(i.done,h,f,d),Nv(i.undone,h,f,d)}function Tl(i,o,h,f){var d=o,y=o;return typeof o=="number"?y=Ye(i,kt(i,o)):d=Pt(o),d==null?null:(f(y,d)&&i.cm&&mi(i.cm,d,h),y)}function _l(i){this.lines=i,this.parent=null;for(var o=0,h=0;h<i.length;++h)i[h].parent=this,o+=i[h].height;this.height=o}_l.prototype={chunkSize:function(){return this.lines.length},removeInner:function(i,o){for(var h=i,f=i+o;h<f;++h){var d=this.lines[h];this.height-=d.height,yE(d),wr(d,"delete")}this.lines.splice(i,o)},collapse:function(i){i.push.apply(i,this.lines)},insertInner:function(i,o,h){this.height+=h,this.lines=this.lines.slice(0,i).concat(o).concat(this.lines.slice(i));for(var f=0;f<o.length;++f)o[f].parent=this},iterN:function(i,o,h){for(var f=i+o;i<f;++i)if(h(this.lines[i]))return!0}};function El(i){this.children=i;for(var o=0,h=0,f=0;f<i.length;++f){var d=i[f];o+=d.chunkSize(),h+=d.height,d.parent=this}this.size=o,this.height=h,this.parent=null}El.prototype={chunkSize:function(){return this.size},removeInner:function(i,o){this.size-=o;for(var h=0;h<this.children.length;++h){var f=this.children[h],d=f.chunkSize();if(i<d){var y=Math.min(o,d-i),w=f.height;if(f.removeInner(i,y),this.height-=w-f.height,d==y&&(this.children.splice(h--,1),f.parent=null),(o-=y)==0)break;i=0}else i-=d}if(this.size-o<25&&(this.children.length>1||!(this.children[0]instanceof _l))){var k=[];this.collapse(k),this.children=[new _l(k)],this.children[0].parent=this}},collapse:function(i){for(var o=0;o<this.children.length;++o)this.children[o].collapse(i)},insertInner:function(i,o,h){this.size+=o.length,this.height+=h;for(var f=0;f<this.children.length;++f){var d=this.children[f],y=d.chunkSize();if(i<=y){if(d.insertInner(i,o,h),d.lines&&d.lines.length>50){for(var w=d.lines.length%25+25,k=w;k<d.lines.length;){var P=new _l(d.lines.slice(k,k+=25));d.height-=P.height,this.children.splice(++f,0,P),P.parent=this}d.lines=d.lines.slice(0,w),this.maybeSpill()}break}i-=y}},maybeSpill:function(){if(!(this.children.length<=10)){var i=this;do{var o=i.children.splice(i.children.length-5,5),h=new El(o);if(i.parent){i.size-=h.size,i.height-=h.height;var d=z(i.parent.children,i);i.parent.children.splice(d+1,0,h)}else{var f=new El(i.children);f.parent=i,i.children=[f,h],i=f}h.parent=i.parent}while(i.children.length>10);i.parent.maybeSpill()}},iterN:function(i,o,h){for(var f=0;f<this.children.length;++f){var d=this.children[f],y=d.chunkSize();if(i<y){var w=Math.min(o,y-i);if(d.iterN(i,w,h))return!0;if((o-=w)==0)break;i=0}else i-=y}}};var Al=function(i,o,h){if(h)for(var f in h)h.hasOwnProperty(f)&&(this[f]=h[f]);this.doc=i,this.node=o};Al.prototype.clear=function(){var i=this.doc.cm,o=this.line.widgets,h=this.line,f=Pt(h);if(!(f==null||!o)){for(var d=0;d<o.length;++d)o[d]==this&&o.splice(d--,1);o.length||(h.widgets=null);var y=pl(this);Jr(h,Math.max(0,h.height-y)),i&&(gn(i,function(){Lv(i,h,-y),mi(i,f,"widget")}),wr(i,"lineWidgetCleared",i,this,f))}},Al.prototype.changed=function(){var i=this,o=this.height,h=this.doc.cm,f=this.line;this.height=null;var d=pl(this)-o;!d||(di(this.doc,f)||Jr(f,f.height+d),h&&gn(h,function(){h.curOp.forceUpdate=!0,Lv(h,f,d),wr(h,"lineWidgetChanged",h,i,Pt(f))}))},Ke(Al);function Lv(i,o,h){Bs(o)<(i.curOp&&i.curOp.scrollTop||i.doc.scrollTop)&&_p(i,h)}function yA(i,o,h,f){var d=new Al(i,h,f),y=i.cm;return y&&d.noHScroll&&(y.display.alignWidgets=!0),Tl(i,o,"widget",function(w){var k=w.widgets||(w.widgets=[]);if(d.insertAt==null?k.push(d):k.splice(Math.min(k.length,Math.max(0,d.insertAt)),0,d),d.line=w,y&&!di(i,w)){var P=Bs(w)<i.scrollTop;Jr(w,w.height+pl(d)),P&&_p(y,d.height),y.curOp.forceUpdate=!0}return!0}),y&&wr(y,"lineWidgetAdded",y,d,typeof o=="number"?o:Pt(o)),d}var Mv=0,wi=function(i,o){this.lines=[],this.type=o,this.doc=i,this.id=++Mv};wi.prototype.clear=function(){if(!this.explicitlyCleared){var i=this.doc.cm,o=i&&!i.curOp;if(o&&ra(i),Pe(this,"clear")){var h=this.find();h&&wr(this,"clear",h.from,h.to)}for(var f=null,d=null,y=0;y<this.lines.length;++y){var w=this.lines[y],k=cl(w.markedSpans,this);i&&!this.collapsed?mi(i,Pt(w),"text"):i&&(k.to!=null&&(d=Pt(w)),k.from!=null&&(f=Pt(w))),w.markedSpans=lE(w.markedSpans,k),k.from==null&&this.collapsed&&!di(this.doc,w)&&i&&Jr(w,Ua(i.display))}if(i&&this.collapsed&&!i.options.lineWrapping)for(var P=0;P<this.lines.length;++P){var N=Gn(this.lines[P]),q=lc(N);q>i.display.maxLineLength&&(i.display.maxLine=N,i.display.maxLineLength=q,i.display.maxLineChanged=!0)}f!=null&&i&&this.collapsed&&on(i,f,d+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,i&&kv(i.doc)),i&&wr(i,"markerCleared",i,this,f,d),o&&na(i),this.parent&&this.parent.clear()}},wi.prototype.find=function(i,o){i==null&&this.type=="bookmark"&&(i=1);for(var h,f,d=0;d<this.lines.length;++d){var y=this.lines[d],w=cl(y.markedSpans,this);if(w.from!=null&&(h=Ae(o?y:Pt(y),w.from),i==-1))return h;if(w.to!=null&&(f=Ae(o?y:Pt(y),w.to),i==1))return f}return h&&{from:h,to:f}},wi.prototype.changed=function(){var i=this,o=this.find(-1,!0),h=this,f=this.doc.cm;!o||!f||gn(f,function(){var d=o.line,y=Pt(o.line),w=hp(f,y);if(w&&(jy(w),f.curOp.selectionChanged=f.curOp.forceUpdate=!0),f.curOp.updateMaxLine=!0,!di(h.doc,d)&&h.height!=null){var k=h.height;h.height=null;var P=pl(h)-k;P&&Jr(d,d.height+P)}wr(f,"markerChanged",f,i)})},wi.prototype.attachLine=function(i){if(!this.lines.length&&this.doc.cm){var o=this.doc.cm.curOp;(!o.maybeHiddenMarkers||z(o.maybeHiddenMarkers,this)==-1)&&(o.maybeUnhiddenMarkers||(o.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(i)},wi.prototype.detachLine=function(i){if(this.lines.splice(z(this.lines,i),1),!this.lines.length&&this.doc.cm){var o=this.doc.cm.curOp;(o.maybeHiddenMarkers||(o.maybeHiddenMarkers=[])).push(this)}},Ke(wi);function Ja(i,o,h,f,d){if(f&&f.shared)return vA(i,o,h,f,d);if(i.cm&&!i.cm.curOp)return xr(i.cm,Ja)(i,o,h,f,d);var y=new wi(i,d),w=L(o,h);if(f&&re(f,y,!1),w>0||w==0&&y.clearWhenEmpty!==!1)return y;if(y.replacedWith&&(y.collapsed=!0,y.widgetNode=D("span",[y.replacedWith],"CodeMirror-widget"),f.handleMouseEvents||y.widgetNode.setAttribute("cm-ignore-events","true"),f.insertLeft&&(y.widgetNode.insertLeft=!0)),y.collapsed){if(Ty(i,o.line,o,h,y)||o.line!=h.line&&Ty(i,h.line,o,h,y))throw new Error("Inserting collapsed marker partially overlapping an existing one");oE()}y.addToHistory&&gv(i,{from:o,to:h,origin:"markText"},i.sel,NaN);var k=o.line,P=i.cm,N;if(i.iter(k,h.line+1,function(G){P&&y.collapsed&&!P.options.lineWrapping&&Gn(G)==P.display.maxLine&&(N=!0),y.collapsed&&k!=o.line&&Jr(G,0),uE(G,new sc(y,k==o.line?o.ch:null,k==h.line?h.ch:null),i.cm&&i.cm.curOp),++k}),y.collapsed&&i.iter(o.line,h.line+1,function(G){di(i,G)&&Jr(G,0)}),y.clearOnEnter&&Qe(y,"beforeCursorEnter",function(){return y.clear()}),y.readOnly&&(aE(),(i.history.done.length||i.history.undone.length)&&i.clearHistory()),y.collapsed&&(y.id=++Mv,y.atomic=!0),P){if(N&&(P.curOp.updateMaxLine=!0),y.collapsed)on(P,o.line,h.line+1);else if(y.className||y.startStyle||y.endStyle||y.css||y.attributes||y.title)for(var q=o.line;q<=h.line;q++)mi(P,q,"text");y.atomic&&kv(P.doc),wr(P,"markerAdded",P,y)}return y}var Cl=function(i,o){this.markers=i,this.primary=o;for(var h=0;h<i.length;++h)i[h].parent=this};Cl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var i=0;i<this.markers.length;++i)this.markers[i].clear();wr(this,"clear")}},Cl.prototype.find=function(i,o){return this.primary.find(i,o)},Ke(Cl);function vA(i,o,h,f,d){f=re(f),f.shared=!1;var y=[Ja(i,o,h,f,d)],w=y[0],k=f.widgetNode;return bi(i,function(P){k&&(f.widgetNode=k.cloneNode(!0)),y.push(Ja(P,We(P,o),We(P,h),f,d));for(var N=0;N<P.linked.length;++N)if(P.linked[N].isParent)return;w=qe(y)}),new Cl(y,w)}function Dv(i){return i.findMarks(Ae(i.first,0),i.clipPos(Ae(i.lastLine())),function(o){return o.parent})}function bA(i,o){for(var h=0;h<o.length;h++){var f=o[h],d=f.find(),y=i.clipPos(d.from),w=i.clipPos(d.to);if(L(y,w)){var k=Ja(i,y,w,f.primary,f.primary.type);f.markers.push(k),k.parent=f}}}function wA(i){for(var o=function(f){var d=i[f],y=[d.primary.doc];bi(d.primary.doc,function(P){return y.push(P)});for(var w=0;w<d.markers.length;w++){var k=d.markers[w];z(y,k.doc)==-1&&(k.parent=null,d.markers.splice(w--,1))}},h=0;h<i.length;h++)o(h)}var xA=0,ln=function(i,o,h,f,d){if(!(this instanceof ln))return new ln(i,o,h,f,d);h==null&&(h=0),El.call(this,[new _l([new Ba("",null)])]),this.first=h,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=h;var y=Ae(h,0);this.sel=yi(y),this.history=new wc(null),this.id=++xA,this.modeOption=o,this.lineSep=f,this.direction=d=="rtl"?"rtl":"ltr",this.extend=!1,typeof i=="string"&&(i=this.splitLines(i)),Lp(this,{from:y,to:y,text:i}),jr(this,yi(y),ye)};ln.prototype=dt(El.prototype,{constructor:ln,iter:function(i,o,h){h?this.iterN(i-this.first,o-i,h):this.iterN(this.first,this.first+this.size,i)},insert:function(i,o){for(var h=0,f=0;f<o.length;++f)h+=o[f].height;this.insertInner(i-this.first,o,h)},remove:function(i,o){this.removeInner(i-this.first,o)},getValue:function(i){var o=Ki(this,this.first,this.first+this.size);return i===!1?o:o.join(i||this.lineSeparator())},setValue:Sr(function(i){var o=Ae(this.first,0),h=this.first+this.size-1;Ka(this,{from:o,to:Ae(h,Ye(this,h).text.length),text:this.splitLines(i),origin:"setValue",full:!0},!0),this.cm&&gl(this.cm,0,0),jr(this,yi(o),ye)}),replaceRange:function(i,o,h,f){o=We(this,o),h=h?We(this,h):o,Ya(this,i,o,h,f)},getRange:function(i,o,h){var f=$n(this,We(this,i),We(this,o));return h===!1?f:h===""?f.join(""):f.join(h||this.lineSeparator())},getLine:function(i){var o=this.getLineHandle(i);return o&&o.text},getLineHandle:function(i){if(Rs(this,i))return Ye(this,i)},getLineNumber:function(i){return Pt(i)},getLineHandleVisualStart:function(i){return typeof i=="number"&&(i=Ye(this,i)),Gn(i)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(i){return We(this,i)},getCursor:function(i){var o=this.sel.primary(),h;return i==null||i=="head"?h=o.head:i=="anchor"?h=o.anchor:i=="end"||i=="to"||i===!1?h=o.to():h=o.from(),h},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Sr(function(i,o,h){wv(this,We(this,typeof i=="number"?Ae(i,o||0):i),null,h)}),setSelection:Sr(function(i,o,h){wv(this,We(this,i),We(this,o||i),h)}),extendSelection:Sr(function(i,o,h){Sc(this,We(this,i),o&&We(this,o),h)}),extendSelections:Sr(function(i,o){bv(this,Pn(this,i),o)}),extendSelectionsBy:Sr(function(i,o){var h=Xe(this.sel.ranges,i);bv(this,Pn(this,h),o)}),setSelections:Sr(function(i,o,h){if(!!i.length){for(var f=[],d=0;d<i.length;d++)f[d]=new Ot(We(this,i[d].anchor),We(this,i[d].head||i[d].anchor));o==null&&(o=Math.min(i.length-1,this.sel.primIndex)),jr(this,Yn(this.cm,f,o),h)}}),addSelection:Sr(function(i,o,h){var f=this.sel.ranges.slice(0);f.push(new Ot(We(this,i),We(this,o||i))),jr(this,Yn(this.cm,f,f.length-1),h)}),getSelection:function(i){for(var o=this.sel.ranges,h,f=0;f<o.length;f++){var d=$n(this,o[f].from(),o[f].to());h=h?h.concat(d):d}return i===!1?h:h.join(i||this.lineSeparator())},getSelections:function(i){for(var o=[],h=this.sel.ranges,f=0;f<h.length;f++){var d=$n(this,h[f].from(),h[f].to());i!==!1&&(d=d.join(i||this.lineSeparator())),o[f]=d}return o},replaceSelection:function(i,o,h){for(var f=[],d=0;d<this.sel.ranges.length;d++)f[d]=i;this.replaceSelections(f,o,h||"+input")},replaceSelections:Sr(function(i,o,h){for(var f=[],d=this.sel,y=0;y<d.ranges.length;y++){var w=d.ranges[y];f[y]={from:w.from(),to:w.to(),text:this.splitLines(i[y]),origin:h}}for(var k=o&&o!="end"&&lA(this,f,o),P=f.length-1;P>=0;P--)Ka(this,f[P]);k?xv(this,k):this.cm&&za(this.cm)}),undo:Sr(function(){_c(this,"undo")}),redo:Sr(function(){_c(this,"redo")}),undoSelection:Sr(function(){_c(this,"undo",!0)}),redoSelection:Sr(function(){_c(this,"redo",!0)}),setExtending:function(i){this.extend=i},getExtending:function(){return this.extend},historySize:function(){for(var i=this.history,o=0,h=0,f=0;f<i.done.length;f++)i.done[f].ranges||++o;for(var d=0;d<i.undone.length;d++)i.undone[d].ranges||++h;return{undo:o,redo:h}},clearHistory:function(){var i=this;this.history=new wc(this.history),bi(this,function(o){return o.history=i.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(i){return i&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(i){return this.history.generation==(i||this.cleanGeneration)},getHistory:function(){return{done:Va(this.history.done),undone:Va(this.history.undone)}},setHistory:function(i){var o=this.history=new wc(this.history);o.done=Va(i.done.slice(0),null,!0),o.undone=Va(i.undone.slice(0),null,!0)},setGutterMarker:Sr(function(i,o,h){return Tl(this,i,"gutter",function(f){var d=f.gutterMarkers||(f.gutterMarkers={});return d[o]=h,!h&&Ee(d)&&(f.gutterMarkers=null),!0})}),clearGutter:Sr(function(i){var o=this;this.iter(function(h){h.gutterMarkers&&h.gutterMarkers[i]&&Tl(o,h,"gutter",function(){return h.gutterMarkers[i]=null,Ee(h.gutterMarkers)&&(h.gutterMarkers=null),!0})})}),lineInfo:function(i){var o;if(typeof i=="number"){if(!Rs(this,i)||(o=i,i=Ye(this,i),!i))return null}else if(o=Pt(i),o==null)return null;return{line:o,handle:i,text:i.text,gutterMarkers:i.gutterMarkers,textClass:i.textClass,bgClass:i.bgClass,wrapClass:i.wrapClass,widgets:i.widgets}},addLineClass:Sr(function(i,o,h){return Tl(this,i,o=="gutter"?"gutter":"class",function(f){var d=o=="text"?"textClass":o=="background"?"bgClass":o=="gutter"?"gutterClass":"wrapClass";if(!f[d])f[d]=h;else{if(F(h).test(f[d]))return!1;f[d]+=" "+h}return!0})}),removeLineClass:Sr(function(i,o,h){return Tl(this,i,o=="gutter"?"gutter":"class",function(f){var d=o=="text"?"textClass":o=="background"?"bgClass":o=="gutter"?"gutterClass":"wrapClass",y=f[d];if(y)if(h==null)f[d]=null;else{var w=y.match(F(h));if(!w)return!1;var k=w.index+w[0].length;f[d]=y.slice(0,w.index)+(!w.index||k==y.length?"":" ")+y.slice(k)||null}else return!1;return!0})}),addLineWidget:Sr(function(i,o,h){return yA(this,i,o,h)}),removeLineWidget:function(i){i.clear()},markText:function(i,o,h){return Ja(this,We(this,i),We(this,o),h,h&&h.type||"range")},setBookmark:function(i,o){var h={replacedWith:o&&(o.nodeType==null?o.widget:o),insertLeft:o&&o.insertLeft,clearWhenEmpty:!1,shared:o&&o.shared,handleMouseEvents:o&&o.handleMouseEvents};return i=We(this,i),Ja(this,i,i,h,"bookmark")},findMarksAt:function(i){i=We(this,i);var o=[],h=Ye(this,i.line).markedSpans;if(h)for(var f=0;f<h.length;++f){var d=h[f];(d.from==null||d.from<=i.ch)&&(d.to==null||d.to>=i.ch)&&o.push(d.marker.parent||d.marker)}return o},findMarks:function(i,o,h){i=We(this,i),o=We(this,o);var f=[],d=i.line;return this.iter(i.line,o.line+1,function(y){var w=y.markedSpans;if(w)for(var k=0;k<w.length;k++){var P=w[k];!(P.to!=null&&d==i.line&&i.ch>=P.to||P.from==null&&d!=i.line||P.from!=null&&d==o.line&&P.from>=o.ch)&&(!h||h(P.marker))&&f.push(P.marker.parent||P.marker)}++d}),f},getAllMarks:function(){var i=[];return this.iter(function(o){var h=o.markedSpans;if(h)for(var f=0;f<h.length;++f)h[f].from!=null&&i.push(h[f].marker)}),i},posFromIndex:function(i){var o,h=this.first,f=this.lineSeparator().length;return this.iter(function(d){var y=d.text.length+f;if(y>i)return o=i,!0;i-=y,++h}),We(this,Ae(h,o))},indexFromPos:function(i){i=We(this,i);var o=i.ch;if(i.line<this.first||i.ch<0)return 0;var h=this.lineSeparator().length;return this.iter(this.first,i.line,function(f){o+=f.text.length+h}),o},copy:function(i){var o=new ln(Ki(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return o.scrollTop=this.scrollTop,o.scrollLeft=this.scrollLeft,o.sel=this.sel,o.extend=!1,i&&(o.history.undoDepth=this.history.undoDepth,o.setHistory(this.getHistory())),o},linkedDoc:function(i){i||(i={});var o=this.first,h=this.first+this.size;i.from!=null&&i.from>o&&(o=i.from),i.to!=null&&i.to<h&&(h=i.to);var f=new ln(Ki(this,o,h),i.mode||this.modeOption,o,this.lineSep,this.direction);return i.sharedHist&&(f.history=this.history),(this.linked||(this.linked=[])).push({doc:f,sharedHist:i.sharedHist}),f.linked=[{doc:this,isParent:!0,sharedHist:i.sharedHist}],bA(f,Dv(this)),f},unlinkDoc:function(i){if(i instanceof Xt&&(i=i.doc),this.linked)for(var o=0;o<this.linked.length;++o){var h=this.linked[o];if(h.doc==i){this.linked.splice(o,1),i.unlinkDoc(this),wA(Dv(this));break}}if(i.history==this.history){var f=[i.id];bi(i,function(d){return f.push(d.id)},!0),i.history=new wc(null),i.history.done=Va(this.history.done,f),i.history.undone=Va(this.history.undone,f)}},iterLinkedDocs:function(i){bi(this,i)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(i){return this.lineSep?i.split(this.lineSep):Ls(i)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Sr(function(i){i!="rtl"&&(i="ltr"),i!=this.direction&&(this.direction=i,this.iter(function(o){return o.order=null}),this.cm&&uA(this.cm))})}),ln.prototype.eachLine=ln.prototype.iter;var Rv=0;function SA(i){var o=this;if(Fv(o),!(Y(o,i)||$s(o.display,i))){$e(i),c&&(Rv=+new Date);var h=Qi(o,i,!0),f=i.dataTransfer.files;if(!(!h||o.isReadOnly()))if(f&&f.length&&window.FileReader&&window.File)for(var d=f.length,y=Array(d),w=0,k=function(){++w==d&&xr(o,function(){h=We(o.doc,h);var te={from:h,to:h,text:o.doc.splitLines(y.filter(function(ve){return ve!=null}).join(o.doc.lineSeparator())),origin:"paste"};Ka(o.doc,te),xv(o.doc,yi(We(o.doc,h),We(o.doc,vi(te))))})()},P=function(te,ve){if(o.options.allowDropFileTypes&&z(o.options.allowDropFileTypes,te.type)==-1){k();return}var Se=new FileReader;Se.onerror=function(){return k()},Se.onload=function(){var Ne=Se.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ne)){k();return}y[ve]=Ne,k()},Se.readAsText(te)},N=0;N<f.length;N++)P(f[N],N);else{if(o.state.draggingText&&o.doc.sel.contains(h)>-1){o.state.draggingText(i),setTimeout(function(){return o.display.input.focus()},20);return}try{var q=i.dataTransfer.getData("Text");if(q){var G;if(o.state.draggingText&&!o.state.draggingText.copy&&(G=o.listSelections()),kc(o.doc,yi(h,h)),G)for(var se=0;se<G.length;++se)Ya(o.doc,"",G[se].anchor,G[se].head,"drag");o.replaceSelection(q,"around","paste"),o.display.input.focus()}}catch{}}}}function kA(i,o){if(c&&(!i.state.draggingText||+new Date-Rv<100)){Vt(o);return}if(!(Y(i,o)||$s(i.display,o))&&(o.dataTransfer.setData("Text",i.getSelection()),o.dataTransfer.effectAllowed="copyMove",o.dataTransfer.setDragImage&&!E)){var h=J("img",null,null,"position: fixed; left: 0; top: 0;");h.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",x&&(h.width=h.height=1,i.display.wrapper.appendChild(h),h._top=h.offsetTop),o.dataTransfer.setDragImage(h,0,0),x&&h.parentNode.removeChild(h)}}function TA(i,o){var h=Qi(i,o);if(!!h){var f=document.createDocumentFragment();wp(i,h,f),i.display.dragCursor||(i.display.dragCursor=J("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),i.display.lineSpace.insertBefore(i.display.dragCursor,i.display.cursorDiv)),X(i.display.dragCursor,f)}}function Fv(i){i.display.dragCursor&&(i.display.lineSpace.removeChild(i.display.dragCursor),i.display.dragCursor=null)}function Bv(i){if(!!document.getElementsByClassName){for(var o=document.getElementsByClassName("CodeMirror"),h=[],f=0;f<o.length;f++){var d=o[f].CodeMirror;d&&h.push(d)}h.length&&h[0].operation(function(){for(var y=0;y<h.length;y++)i(h[y])})}}var $v=!1;function _A(){$v||(EA(),$v=!0)}function EA(){var i;Qe(window,"resize",function(){i==null&&(i=setTimeout(function(){i=null,Bv(AA)},100))}),Qe(window,"blur",function(){return Bv(Wa)})}function AA(i){var o=i.display;o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.scrollbarsClipped=!1,i.setSize()}for(var xi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Pl=0;Pl<10;Pl++)xi[Pl+48]=xi[Pl+96]=String(Pl);for(var Ec=65;Ec<=90;Ec++)xi[Ec]=String.fromCharCode(Ec);for(var Il=1;Il<=12;Il++)xi[Il+111]=xi[Il+63235]="F"+Il;var Us={};Us.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Us.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Us.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Us.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Us.default=M?Us.macDefault:Us.pcDefault;function CA(i){var o=i.split(/-(?!$)/);i=o[o.length-1];for(var h,f,d,y,w=0;w<o.length-1;w++){var k=o[w];if(/^(cmd|meta|m)$/i.test(k))y=!0;else if(/^a(lt)?$/i.test(k))h=!0;else if(/^(c|ctrl|control)$/i.test(k))f=!0;else if(/^s(hift)?$/i.test(k))d=!0;else throw new Error("Unrecognized modifier name: "+k)}return h&&(i="Alt-"+i),f&&(i="Ctrl-"+i),y&&(i="Cmd-"+i),d&&(i="Shift-"+i),i}function PA(i){var o={};for(var h in i)if(i.hasOwnProperty(h)){var f=i[h];if(/^(name|fallthrough|(de|at)tach)$/.test(h))continue;if(f=="..."){delete i[h];continue}for(var d=Xe(h.split(" "),CA),y=0;y<d.length;y++){var w=void 0,k=void 0;y==d.length-1?(k=d.join(" "),w=f):(k=d.slice(0,y+1).join(" "),w="...");var P=o[k];if(!P)o[k]=w;else if(P!=w)throw new Error("Inconsistent bindings for "+k)}delete i[h]}for(var N in o)i[N]=o[N];return i}function Xa(i,o,h,f){o=Ac(o);var d=o.call?o.call(i,f):o[i];if(d===!1)return"nothing";if(d==="...")return"multi";if(d!=null&&h(d))return"handled";if(o.fallthrough){if(Object.prototype.toString.call(o.fallthrough)!="[object Array]")return Xa(i,o.fallthrough,h,f);for(var y=0;y<o.fallthrough.length;y++){var w=Xa(i,o.fallthrough[y],h,f);if(w)return w}}}function jv(i){var o=typeof i=="string"?i:xi[i.keyCode];return o=="Ctrl"||o=="Alt"||o=="Shift"||o=="Mod"}function Uv(i,o,h){var f=i;return o.altKey&&f!="Alt"&&(i="Alt-"+i),($?o.metaKey:o.ctrlKey)&&f!="Ctrl"&&(i="Ctrl-"+i),($?o.ctrlKey:o.metaKey)&&f!="Mod"&&(i="Cmd-"+i),!h&&o.shiftKey&&f!="Shift"&&(i="Shift-"+i),i}function qv(i,o){if(x&&i.keyCode==34&&i.char)return!1;var h=xi[i.keyCode];return h==null||i.altGraphKey?!1:(i.keyCode==3&&i.code&&(h=i.code),Uv(h,i,o))}function Ac(i){return typeof i=="string"?Us[i]:i}function Qa(i,o){for(var h=i.doc.sel.ranges,f=[],d=0;d<h.length;d++){for(var y=o(h[d]);f.length&&L(y.from,qe(f).to)<=0;){var w=f.pop();if(L(w.from,y.from)<0){y.from=w.from;break}}f.push(y)}gn(i,function(){for(var k=f.length-1;k>=0;k--)Ya(i.doc,"",f[k].from,f[k].to,"+delete");za(i)})}function Fp(i,o,h){var f=tr(i.text,o+h,h);return f<0||f>i.text.length?null:f}function Bp(i,o,h){var f=Fp(i,o.ch,h);return f==null?null:new Ae(o.line,f,h<0?"after":"before")}function $p(i,o,h,f,d){if(i){o.doc.direction=="rtl"&&(d=-d);var y=Ht(h,o.doc.direction);if(y){var w=d<0?qe(y):y[0],k=d<0==(w.level==1),P=k?"after":"before",N;if(w.level>0||o.doc.direction=="rtl"){var q=ja(o,h);N=d<0?h.text.length-1:0;var G=ds(o,q,N).top;N=vr(function(se){return ds(o,q,se).top==G},d<0==(w.level==1)?w.from:w.to-1,N),P=="before"&&(N=Fp(h,N,1))}else N=d<0?w.to:w.from;return new Ae(f,N,P)}}return new Ae(f,d<0?h.text.length:0,d<0?"before":"after")}function IA(i,o,h,f){var d=Ht(o,i.doc.direction);if(!d)return Bp(o,h,f);h.ch>=o.text.length?(h.ch=o.text.length,h.sticky="before"):h.ch<=0&&(h.ch=0,h.sticky="after");var y=Mt(d,h.ch,h.sticky),w=d[y];if(i.doc.direction=="ltr"&&w.level%2==0&&(f>0?w.to>h.ch:w.from<h.ch))return Bp(o,h,f);var k=function(Re,je){return Fp(o,Re instanceof Ae?Re.ch:Re,je)},P,N=function(Re){return i.options.lineWrapping?(P=P||ja(i,o),Gy(i,o,P,Re)):{begin:0,end:o.text.length}},q=N(h.sticky=="before"?k(h,-1):h.ch);if(i.doc.direction=="rtl"||w.level==1){var G=w.level==1==f<0,se=k(h,G?1:-1);if(se!=null&&(G?se<=w.to&&se<=q.end:se>=w.from&&se>=q.begin)){var te=G?"before":"after";return new Ae(h.line,se,te)}}var ve=function(Re,je,Fe){for(var He=function(qt,kr){return kr?new Ae(h.line,k(qt,1),"before"):new Ae(h.line,qt,"after")};Re>=0&&Re<d.length;Re+=je){var nt=d[Re],et=je>0==(nt.level!=1),vt=et?Fe.begin:k(Fe.end,-1);if(nt.from<=vt&&vt<nt.to||(vt=et?nt.from:k(nt.to,-1),Fe.begin<=vt&&vt<Fe.end))return He(vt,et)}},Se=ve(y+f,f,q);if(Se)return Se;var Ne=f>0?q.end:k(q.begin,-1);return Ne!=null&&!(f>0&&Ne==o.text.length)&&(Se=ve(f>0?0:d.length-1,f,N(Ne)),Se)?Se:null}var Nl={selectAll:Ev,singleSelection:function(i){return i.setSelection(i.getCursor("anchor"),i.getCursor("head"),ye)},killLine:function(i){return Qa(i,function(o){if(o.empty()){var h=Ye(i.doc,o.head.line).text.length;return o.head.ch==h&&o.head.line<i.lastLine()?{from:o.head,to:Ae(o.head.line+1,0)}:{from:o.head,to:Ae(o.head.line,h)}}else return{from:o.from(),to:o.to()}})},deleteLine:function(i){return Qa(i,function(o){return{from:Ae(o.from().line,0),to:We(i.doc,Ae(o.to().line+1,0))}})},delLineLeft:function(i){return Qa(i,function(o){return{from:Ae(o.from().line,0),to:o.from()}})},delWrappedLineLeft:function(i){return Qa(i,function(o){var h=i.charCoords(o.head,"div").top+5,f=i.coordsChar({left:0,top:h},"div");return{from:f,to:o.from()}})},delWrappedLineRight:function(i){return Qa(i,function(o){var h=i.charCoords(o.head,"div").top+5,f=i.coordsChar({left:i.display.lineDiv.offsetWidth+100,top:h},"div");return{from:o.from(),to:f}})},undo:function(i){return i.undo()},redo:function(i){return i.redo()},undoSelection:function(i){return i.undoSelection()},redoSelection:function(i){return i.redoSelection()},goDocStart:function(i){return i.extendSelection(Ae(i.firstLine(),0))},goDocEnd:function(i){return i.extendSelection(Ae(i.lastLine()))},goLineStart:function(i){return i.extendSelectionsBy(function(o){return Wv(i,o.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(i){return i.extendSelectionsBy(function(o){return zv(i,o.head)},{origin:"+move",bias:1})},goLineEnd:function(i){return i.extendSelectionsBy(function(o){return NA(i,o.head.line)},{origin:"+move",bias:-1})},goLineRight:function(i){return i.extendSelectionsBy(function(o){var h=i.cursorCoords(o.head,"div").top+5;return i.coordsChar({left:i.display.lineDiv.offsetWidth+100,top:h},"div")},le)},goLineLeft:function(i){return i.extendSelectionsBy(function(o){var h=i.cursorCoords(o.head,"div").top+5;return i.coordsChar({left:0,top:h},"div")},le)},goLineLeftSmart:function(i){return i.extendSelectionsBy(function(o){var h=i.cursorCoords(o.head,"div").top+5,f=i.coordsChar({left:0,top:h},"div");return f.ch<i.getLine(f.line).search(/\S/)?zv(i,o.head):f},le)},goLineUp:function(i){return i.moveV(-1,"line")},goLineDown:function(i){return i.moveV(1,"line")},goPageUp:function(i){return i.moveV(-1,"page")},goPageDown:function(i){return i.moveV(1,"page")},goCharLeft:function(i){return i.moveH(-1,"char")},goCharRight:function(i){return i.moveH(1,"char")},goColumnLeft:function(i){return i.moveH(-1,"column")},goColumnRight:function(i){return i.moveH(1,"column")},goWordLeft:function(i){return i.moveH(-1,"word")},goGroupRight:function(i){return i.moveH(1,"group")},goGroupLeft:function(i){return i.moveH(-1,"group")},goWordRight:function(i){return i.moveH(1,"word")},delCharBefore:function(i){return i.deleteH(-1,"codepoint")},delCharAfter:function(i){return i.deleteH(1,"char")},delWordBefore:function(i){return i.deleteH(-1,"word")},delWordAfter:function(i){return i.deleteH(1,"word")},delGroupBefore:function(i){return i.deleteH(-1,"group")},delGroupAfter:function(i){return i.deleteH(1,"group")},indentAuto:function(i){return i.indentSelection("smart")},indentMore:function(i){return i.indentSelection("add")},indentLess:function(i){return i.indentSelection("subtract")},insertTab:function(i){return i.replaceSelection(" ")},insertSoftTab:function(i){for(var o=[],h=i.listSelections(),f=i.options.tabSize,d=0;d<h.length;d++){var y=h[d].from(),w=ge(i.getLine(y.line),y.ch,f);o.push(Ue(f-w%f))}i.replaceSelections(o)},defaultTab:function(i){i.somethingSelected()?i.indentSelection("add"):i.execCommand("insertTab")},transposeChars:function(i){return gn(i,function(){for(var o=i.listSelections(),h=[],f=0;f<o.length;f++)if(!!o[f].empty()){var d=o[f].head,y=Ye(i.doc,d.line).text;if(y){if(d.ch==y.length&&(d=new Ae(d.line,d.ch-1)),d.ch>0)d=new Ae(d.line,d.ch+1),i.replaceRange(y.charAt(d.ch-1)+y.charAt(d.ch-2),Ae(d.line,d.ch-2),d,"+transpose");else if(d.line>i.doc.first){var w=Ye(i.doc,d.line-1).text;w&&(d=new Ae(d.line,1),i.replaceRange(y.charAt(0)+i.doc.lineSeparator()+w.charAt(w.length-1),Ae(d.line-1,w.length-1),d,"+transpose"))}}h.push(new Ot(d,d))}i.setSelections(h)})},newlineAndIndent:function(i){return gn(i,function(){for(var o=i.listSelections(),h=o.length-1;h>=0;h--)i.replaceRange(i.doc.lineSeparator(),o[h].anchor,o[h].head,"+input");o=i.listSelections();for(var f=0;f<o.length;f++)i.indentLine(o[f].from().line,null,!0);za(i)})},openLine:function(i){return i.replaceSelection(`
`,"start")},toggleOverwrite:function(i){return i.toggleOverwrite()}};function Wv(i,o){var h=Ye(i.doc,o),f=Gn(h);return f!=h&&(o=Pt(f)),$p(!0,i,f,o,1)}function NA(i,o){var h=Ye(i.doc,o),f=dE(h);return f!=h&&(o=Pt(f)),$p(!0,i,h,o,-1)}function zv(i,o){var h=Wv(i,o.line),f=Ye(i.doc,h.line),d=Ht(f,i.doc.direction);if(!d||d[0].level==0){var y=Math.max(h.ch,f.text.search(/\S/)),w=o.line==h.line&&o.ch<=y&&o.ch;return Ae(h.line,w?0:y,h.sticky)}return h}function Cc(i,o,h){if(typeof o=="string"&&(o=Nl[o],!o))return!1;i.display.input.ensurePolled();var f=i.display.shift,d=!1;try{i.isReadOnly()&&(i.state.suppressEdits=!0),h&&(i.display.shift=!1),d=o(i)!=fe}finally{i.display.shift=f,i.state.suppressEdits=!1}return d}function OA(i,o,h){for(var f=0;f<i.state.keyMaps.length;f++){var d=Xa(o,i.state.keyMaps[f],h,i);if(d)return d}return i.options.extraKeys&&Xa(o,i.options.extraKeys,h,i)||Xa(o,i.options.keyMap,h,i)}var LA=new ee;function Ol(i,o,h,f){var d=i.state.keySeq;if(d){if(jv(o))return"handled";if(/\'$/.test(o)?i.state.keySeq=null:LA.set(50,function(){i.state.keySeq==d&&(i.state.keySeq=null,i.display.input.reset())}),Hv(i,d+" "+o,h,f))return!0}return Hv(i,o,h,f)}function Hv(i,o,h,f){var d=OA(i,o,f);return d=="multi"&&(i.state.keySeq=o),d=="handled"&&wr(i,"keyHandled",i,o,h),(d=="handled"||d=="multi")&&($e(h),xp(i)),!!d}function Vv(i,o){var h=qv(o,!0);return h?o.shiftKey&&!i.state.keySeq?Ol(i,"Shift-"+h,o,function(f){return Cc(i,f,!0)})||Ol(i,h,o,function(f){if(typeof f=="string"?/^go[A-Z]/.test(f):f.motion)return Cc(i,f)}):Ol(i,h,o,function(f){return Cc(i,f)}):!1}function MA(i,o,h){return Ol(i,"'"+h+"'",o,function(f){return Cc(i,f,!0)})}var jp=null;function Gv(i){var o=this;if(!(i.target&&i.target!=o.display.input.getField())&&(o.curOp.focus=Z(),!Y(o,i))){c&&m<11&&i.keyCode==27&&(i.returnValue=!1);var h=i.keyCode;o.display.shift=h==16||i.shiftKey;var f=Vv(o,i);x&&(jp=f?h:null,!f&&h==88&&!hi&&(M?i.metaKey:i.ctrlKey)&&o.replaceSelection("",null,"cut")),s&&!M&&!f&&h==46&&i.shiftKey&&!i.ctrlKey&&document.execCommand&&document.execCommand("cut"),h==18&&!/\bCodeMirror-crosshair\b/.test(o.display.lineDiv.className)&&DA(o)}}function DA(i){var o=i.display.lineDiv;de(o,"CodeMirror-crosshair");function h(f){(f.keyCode==18||!f.altKey)&&(H(o,"CodeMirror-crosshair"),Bt(document,"keyup",h),Bt(document,"mouseover",h))}Qe(document,"keyup",h),Qe(document,"mouseover",h)}function Kv(i){i.keyCode==16&&(this.doc.sel.shift=!1),Y(this,i)}function Yv(i){var o=this;if(!(i.target&&i.target!=o.display.input.getField())&&!($s(o.display,i)||Y(o,i)||i.ctrlKey&&!i.altKey||M&&i.metaKey)){var h=i.keyCode,f=i.charCode;if(x&&h==jp){jp=null,$e(i);return}if(!(x&&(!i.which||i.which<10)&&Vv(o,i))){var d=String.fromCharCode(f==null?h:f);d!="\b"&&(MA(o,i,d)||o.display.input.onKeyPress(i))}}}var RA=400,Up=function(i,o,h){this.time=i,this.pos=o,this.button=h};Up.prototype.compare=function(i,o,h){return this.time+RA>i&&L(o,this.pos)==0&&h==this.button};var Ll,Ml;function FA(i,o){var h=+new Date;return Ml&&Ml.compare(h,i,o)?(Ll=Ml=null,"triple"):Ll&&Ll.compare(h,i,o)?(Ml=new Up(h,i,o),Ll=null,"double"):(Ll=new Up(h,i,o),Ml=null,"single")}function Jv(i){var o=this,h=o.display;if(!(Y(o,i)||h.activeTouch&&h.input.supportsTouch())){if(h.input.ensurePolled(),h.shift=i.shiftKey,$s(h,i)){g||(h.scroller.draggable=!1,setTimeout(function(){return h.scroller.draggable=!0},100));return}if(!qp(o,i)){var f=Qi(o,i),d=br(i),y=f?FA(f,d):"single";window.focus(),d==1&&o.state.selectingText&&o.state.selectingText(i),!(f&&BA(o,d,f,y,i))&&(d==1?f?jA(o,f,y,i):_t(i)==h.scroller&&$e(i):d==2?(f&&Sc(o.doc,f),setTimeout(function(){return h.input.focus()},20)):d==3&&(B?o.display.input.onContextMenu(i):Sp(o)))}}}function BA(i,o,h,f,d){var y="Click";return f=="double"?y="Double"+y:f=="triple"&&(y="Triple"+y),y=(o==1?"Left":o==2?"Middle":"Right")+y,Ol(i,Uv(y,d),d,function(w){if(typeof w=="string"&&(w=Nl[w]),!w)return!1;var k=!1;try{i.isReadOnly()&&(i.state.suppressEdits=!0),k=w(i,h)!=fe}finally{i.state.suppressEdits=!1}return k})}function $A(i,o,h){var f=i.getOption("configureMouse"),d=f?f(i,o,h):{};if(d.unit==null){var y=O?h.shiftKey&&h.metaKey:h.altKey;d.unit=y?"rectangle":o=="single"?"char":o=="double"?"word":"line"}return(d.extend==null||i.doc.extend)&&(d.extend=i.doc.extend||h.shiftKey),d.addNew==null&&(d.addNew=M?h.metaKey:h.ctrlKey),d.moveOnDrag==null&&(d.moveOnDrag=!(M?h.altKey:h.ctrlKey)),d}function jA(i,o,h,f){c?setTimeout(we(Xy,i),0):i.curOp.focus=Z();var d=$A(i,h,f),y=i.doc.sel,w;i.options.dragDrop&&Kt&&!i.isReadOnly()&&h=="single"&&(w=y.contains(o))>-1&&(L((w=y.ranges[w]).from(),o)<0||o.xRel>0)&&(L(w.to(),o)>0||o.xRel<0)?UA(i,f,o,d):qA(i,f,o,d)}function UA(i,o,h,f){var d=i.display,y=!1,w=xr(i,function(N){g&&(d.scroller.draggable=!1),i.state.draggingText=!1,i.state.delayingBlurEvent&&(i.hasFocus()?i.state.delayingBlurEvent=!1:Sp(i)),Bt(d.wrapper.ownerDocument,"mouseup",w),Bt(d.wrapper.ownerDocument,"mousemove",k),Bt(d.scroller,"dragstart",P),Bt(d.scroller,"drop",w),y||($e(N),f.addNew||Sc(i.doc,h,null,null,f.extend),g&&!E||c&&m==9?setTimeout(function(){d.wrapper.ownerDocument.body.focus({preventScroll:!0}),d.input.focus()},20):d.input.focus())}),k=function(N){y=y||Math.abs(o.clientX-N.clientX)+Math.abs(o.clientY-N.clientY)>=10},P=function(){return y=!0};g&&(d.scroller.draggable=!0),i.state.draggingText=w,w.copy=!f.moveOnDrag,Qe(d.wrapper.ownerDocument,"mouseup",w),Qe(d.wrapper.ownerDocument,"mousemove",k),Qe(d.scroller,"dragstart",P),Qe(d.scroller,"drop",w),i.state.delayingBlurEvent=!0,setTimeout(function(){return d.input.focus()},20),d.scroller.dragDrop&&d.scroller.dragDrop()}function Xv(i,o,h){if(h=="char")return new Ot(o,o);if(h=="word")return i.findWordAt(o);if(h=="line")return new Ot(Ae(o.line,0),We(i.doc,Ae(o.line+1,0)));var f=h(i,o);return new Ot(f.from,f.to)}function qA(i,o,h,f){c&&Sp(i);var d=i.display,y=i.doc;$e(o);var w,k,P=y.sel,N=P.ranges;if(f.addNew&&!f.extend?(k=y.sel.contains(h),k>-1?w=N[k]:w=new Ot(h,h)):(w=y.sel.primary(),k=y.sel.primIndex),f.unit=="rectangle")f.addNew||(w=new Ot(h,h)),h=Qi(i,o,!0,!0),k=-1;else{var q=Xv(i,h,f.unit);f.extend?w=Dp(w,q.anchor,q.head,f.extend):w=q}f.addNew?k==-1?(k=N.length,jr(y,Yn(i,N.concat([w]),k),{scroll:!1,origin:"*mouse"})):N.length>1&&N[k].empty()&&f.unit=="char"&&!f.extend?(jr(y,Yn(i,N.slice(0,k).concat(N.slice(k+1)),0),{scroll:!1,origin:"*mouse"}),P=y.sel):Rp(y,k,w,pe):(k=0,jr(y,new In([w],0),pe),P=y.sel);var G=h;function se(Fe){if(L(G,Fe)!=0)if(G=Fe,f.unit=="rectangle"){for(var He=[],nt=i.options.tabSize,et=ge(Ye(y,h.line).text,h.ch,nt),vt=ge(Ye(y,Fe.line).text,Fe.ch,nt),qt=Math.min(et,vt),kr=Math.max(et,vt),rr=Math.min(h.line,Fe.line),yn=Math.min(i.lastLine(),Math.max(h.line,Fe.line));rr<=yn;rr++){var un=Ye(y,rr).text,pr=_e(un,qt,nt);qt==kr?He.push(new Ot(Ae(rr,pr),Ae(rr,pr))):un.length>pr&&He.push(new Ot(Ae(rr,pr),Ae(rr,_e(un,kr,nt))))}He.length||He.push(new Ot(h,h)),jr(y,Yn(i,P.ranges.slice(0,k).concat(He),k),{origin:"*mouse",scroll:!1}),i.scrollIntoView(Fe)}else{var cn=w,Pr=Xv(i,Fe,f.unit),gr=cn.anchor,dr;L(Pr.anchor,gr)>0?(dr=Pr.head,gr=lt(cn.from(),Pr.anchor)):(dr=Pr.anchor,gr=Ie(cn.to(),Pr.head));var or=P.ranges.slice(0);or[k]=WA(i,new Ot(We(y,gr),dr)),jr(y,Yn(i,or,k),pe)}}var te=d.wrapper.getBoundingClientRect(),ve=0;function Se(Fe){var He=++ve,nt=Qi(i,Fe,!0,f.unit=="rectangle");if(!!nt)if(L(nt,G)!=0){i.curOp.focus=Z(),se(nt);var et=gc(d,y);(nt.line>=et.to||nt.line<et.from)&&setTimeout(xr(i,function(){ve==He&&Se(Fe)}),150)}else{var vt=Fe.clientY<te.top?-20:Fe.clientY>te.bottom?20:0;vt&&setTimeout(xr(i,function(){ve==He&&(d.scroller.scrollTop+=vt,Se(Fe))}),50)}}function Ne(Fe){i.state.selectingText=!1,ve=1/0,Fe&&($e(Fe),d.input.focus()),Bt(d.wrapper.ownerDocument,"mousemove",Re),Bt(d.wrapper.ownerDocument,"mouseup",je),y.history.lastSelOrigin=null}var Re=xr(i,function(Fe){Fe.buttons===0||!br(Fe)?Ne(Fe):Se(Fe)}),je=xr(i,Ne);i.state.selectingText=je,Qe(d.wrapper.ownerDocument,"mousemove",Re),Qe(d.wrapper.ownerDocument,"mouseup",je)}function WA(i,o){var h=o.anchor,f=o.head,d=Ye(i.doc,h.line);if(L(h,f)==0&&h.sticky==f.sticky)return o;var y=Ht(d);if(!y)return o;var w=Mt(y,h.ch,h.sticky),k=y[w];if(k.from!=h.ch&&k.to!=h.ch)return o;var P=w+(k.from==h.ch==(k.level!=1)?0:1);if(P==0||P==y.length)return o;var N;if(f.line!=h.line)N=(f.line-h.line)*(i.doc.direction=="ltr"?1:-1)>0;else{var q=Mt(y,f.ch,f.sticky),G=q-w||(f.ch-h.ch)*(k.level==1?-1:1);q==P-1||q==P?N=G<0:N=G>0}var se=y[P+(N?-1:0)],te=N==(se.level==1),ve=te?se.from:se.to,Se=te?"after":"before";return h.ch==ve&&h.sticky==Se?o:new Ot(new Ae(h.line,ve,Se),f)}function Qv(i,o,h,f){var d,y;if(o.touches)d=o.touches[0].clientX,y=o.touches[0].clientY;else try{d=o.clientX,y=o.clientY}catch{return!1}if(d>=Math.floor(i.display.gutters.getBoundingClientRect().right))return!1;f&&$e(o);var w=i.display,k=w.lineDiv.getBoundingClientRect();if(y>k.bottom||!Pe(i,h))return Ze(o);y-=k.top-w.viewOffset;for(var P=0;P<i.display.gutterSpecs.length;++P){var N=w.gutters.childNodes[P];if(N&&N.getBoundingClientRect().right>=d){var q=jn(i.doc,y),G=i.display.gutterSpecs[P];return rt(i,h,i,q,G.className,o),Ze(o)}}}function qp(i,o){return Qv(i,o,"gutterClick",!0)}function Zv(i,o){$s(i.display,o)||zA(i,o)||Y(i,o,"contextmenu")||B||i.display.input.onContextMenu(o)}function zA(i,o){return Pe(i,"gutterContextMenu")?Qv(i,o,"gutterContextMenu",!1):!1}function e0(i){i.display.wrapper.className=i.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+i.options.theme.replace(/(^|\s)\s*/g," cm-s-"),dl(i)}var Za={toString:function(){return"CodeMirror.Init"}},t0={},Pc={};function HA(i){var o=i.optionHandlers;function h(f,d,y,w){i.defaults[f]=d,y&&(o[f]=w?function(k,P,N){N!=Za&&y(k,P,N)}:y)}i.defineOption=h,i.Init=Za,h("value","",function(f,d){return f.setValue(d)},!0),h("mode",null,function(f,d){f.doc.modeOption=d,Op(f)},!0),h("indentUnit",2,Op,!0),h("indentWithTabs",!1),h("smartIndent",!0),h("tabSize",4,function(f){Sl(f),dl(f),on(f)},!0),h("lineSeparator",null,function(f,d){if(f.doc.lineSep=d,!!d){var y=[],w=f.doc.first;f.doc.iter(function(P){for(var N=0;;){var q=P.text.indexOf(d,N);if(q==-1)break;N=q+d.length,y.push(Ae(w,q))}w++});for(var k=y.length-1;k>=0;k--)Ya(f.doc,d,y[k],Ae(y[k].line,y[k].ch+d.length))}}),h("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(f,d,y){f.state.specialChars=new RegExp(d.source+(d.test(" ")?"":"| "),"g"),y!=Za&&f.refresh()}),h("specialCharPlaceholder",wE,function(f){return f.refresh()},!0),h("electricChars",!0),h("inputStyle",I?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),h("spellcheck",!1,function(f,d){return f.getInputField().spellcheck=d},!0),h("autocorrect",!1,function(f,d){return f.getInputField().autocorrect=d},!0),h("autocapitalize",!1,function(f,d){return f.getInputField().autocapitalize=d},!0),h("rtlMoveVisually",!R),h("wholeLineUpdateBefore",!0),h("theme","default",function(f){e0(f),xl(f)},!0),h("keyMap","default",function(f,d,y){var w=Ac(d),k=y!=Za&&Ac(y);k&&k.detach&&k.detach(f,w),w.attach&&w.attach(f,k||null)}),h("extraKeys",null),h("configureMouse",null),h("lineWrapping",!1,GA,!0),h("gutters",[],function(f,d){f.display.gutterSpecs=Ip(d,f.options.lineNumbers),xl(f)},!0),h("fixedGutter",!0,function(f,d){f.display.gutters.style.left=d?vp(f.display)+"px":"0",f.refresh()},!0),h("coverGutterNextToScrollbar",!1,function(f){return Ha(f)},!0),h("scrollbarStyle","native",function(f){nv(f),Ha(f),f.display.scrollbars.setScrollTop(f.doc.scrollTop),f.display.scrollbars.setScrollLeft(f.doc.scrollLeft)},!0),h("lineNumbers",!1,function(f,d){f.display.gutterSpecs=Ip(f.options.gutters,d),xl(f)},!0),h("firstLineNumber",1,xl,!0),h("lineNumberFormatter",function(f){return f},xl,!0),h("showCursorWhenSelecting",!1,ml,!0),h("resetSelectionOnContextMenu",!0),h("lineWiseCopyCut",!0),h("pasteLinesPerSelection",!0),h("selectionsMayTouch",!1),h("readOnly",!1,function(f,d){d=="nocursor"&&(Wa(f),f.display.input.blur()),f.display.input.readOnlyChanged(d)}),h("screenReaderLabel",null,function(f,d){d=d===""?null:d,f.display.input.screenReaderLabelChanged(d)}),h("disableInput",!1,function(f,d){d||f.display.input.reset()},!0),h("dragDrop",!0,VA),h("allowDropFileTypes",null),h("cursorBlinkRate",530),h("cursorScrollMargin",0),h("cursorHeight",1,ml,!0),h("singleCursorHeightPerLine",!0,ml,!0),h("workTime",100),h("workDelay",100),h("flattenSpans",!0,Sl,!0),h("addModeClass",!1,Sl,!0),h("pollInterval",100),h("undoDepth",200,function(f,d){return f.doc.history.undoDepth=d}),h("historyEventDelay",1250),h("viewportMargin",10,function(f){return f.refresh()},!0),h("maxHighlightLength",1e4,Sl,!0),h("moveInputWithCursor",!0,function(f,d){d||f.display.input.resetPosition()}),h("tabindex",null,function(f,d){return f.display.input.getField().tabIndex=d||""}),h("autofocus",null),h("direction","ltr",function(f,d){return f.doc.setDirection(d)},!0),h("phrases",null)}function VA(i,o,h){var f=h&&h!=Za;if(!o!=!f){var d=i.display.dragFunctions,y=o?Qe:Bt;y(i.display.scroller,"dragstart",d.start),y(i.display.scroller,"dragenter",d.enter),y(i.display.scroller,"dragover",d.over),y(i.display.scroller,"dragleave",d.leave),y(i.display.scroller,"drop",d.drop)}}function GA(i){i.options.lineWrapping?(de(i.display.wrapper,"CodeMirror-wrap"),i.display.sizer.style.minWidth="",i.display.sizerWidth=null):(H(i.display.wrapper,"CodeMirror-wrap"),lp(i)),bp(i),on(i),dl(i),setTimeout(function(){return Ha(i)},100)}function Xt(i,o){var h=this;if(!(this instanceof Xt))return new Xt(i,o);this.options=o=o?re(o):{},re(t0,o,!1);var f=o.value;typeof f=="string"?f=new ln(f,o.mode,null,o.lineSeparator,o.direction):o.mode&&(f.modeOption=o.mode),this.doc=f;var d=new Xt.inputStyles[o.inputStyle](this),y=this.display=new aA(i,f,d,o);y.wrapper.CodeMirror=this,e0(this),o.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),nv(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ee,keySeq:null,specialChars:null},o.autofocus&&!I&&y.input.focus(),c&&m<11&&setTimeout(function(){return h.display.input.reset(!0)},20),KA(this),_A(),ra(this),this.curOp.forceUpdate=!0,pv(this,f),o.autofocus&&!I||this.hasFocus()?setTimeout(function(){h.hasFocus()&&!h.state.focused&&kp(h)},20):Wa(this);for(var w in Pc)Pc.hasOwnProperty(w)&&Pc[w](this,o[w],Za);av(this),o.finishInit&&o.finishInit(this);for(var k=0;k<Wp.length;++k)Wp[k](this);na(this),g&&o.lineWrapping&&getComputedStyle(y.lineDiv).textRendering=="optimizelegibility"&&(y.lineDiv.style.textRendering="auto")}Xt.defaults=t0,Xt.optionHandlers=Pc;function KA(i){var o=i.display;Qe(o.scroller,"mousedown",xr(i,Jv)),c&&m<11?Qe(o.scroller,"dblclick",xr(i,function(P){if(!Y(i,P)){var N=Qi(i,P);if(!(!N||qp(i,P)||$s(i.display,P))){$e(P);var q=i.findWordAt(N);Sc(i.doc,q.anchor,q.head)}}})):Qe(o.scroller,"dblclick",function(P){return Y(i,P)||$e(P)}),Qe(o.scroller,"contextmenu",function(P){return Zv(i,P)}),Qe(o.input.getField(),"contextmenu",function(P){o.scroller.contains(P.target)||Zv(i,P)});var h,f={end:0};function d(){o.activeTouch&&(h=setTimeout(function(){return o.activeTouch=null},1e3),f=o.activeTouch,f.end=+new Date)}function y(P){if(P.touches.length!=1)return!1;var N=P.touches[0];return N.radiusX<=1&&N.radiusY<=1}function w(P,N){if(N.left==null)return!0;var q=N.left-P.left,G=N.top-P.top;return q*q+G*G>20*20}Qe(o.scroller,"touchstart",function(P){if(!Y(i,P)&&!y(P)&&!qp(i,P)){o.input.ensurePolled(),clearTimeout(h);var N=+new Date;o.activeTouch={start:N,moved:!1,prev:N-f.end<=300?f:null},P.touches.length==1&&(o.activeTouch.left=P.touches[0].pageX,o.activeTouch.top=P.touches[0].pageY)}}),Qe(o.scroller,"touchmove",function(){o.activeTouch&&(o.activeTouch.moved=!0)}),Qe(o.scroller,"touchend",function(P){var N=o.activeTouch;if(N&&!$s(o,P)&&N.left!=null&&!N.moved&&new Date-N.start<300){var q=i.coordsChar(o.activeTouch,"page"),G;!N.prev||w(N,N.prev)?G=new Ot(q,q):!N.prev.prev||w(N,N.prev.prev)?G=i.findWordAt(q):G=new Ot(Ae(q.line,0),We(i.doc,Ae(q.line+1,0))),i.setSelection(G.anchor,G.head),i.focus(),$e(P)}d()}),Qe(o.scroller,"touchcancel",d),Qe(o.scroller,"scroll",function(){o.scroller.clientHeight&&(yl(i,o.scroller.scrollTop),ea(i,o.scroller.scrollLeft,!0),rt(i,"scroll",i))}),Qe(o.scroller,"mousewheel",function(P){return uv(i,P)}),Qe(o.scroller,"DOMMouseScroll",function(P){return uv(i,P)}),Qe(o.wrapper,"scroll",function(){return o.wrapper.scrollTop=o.wrapper.scrollLeft=0}),o.dragFunctions={enter:function(P){Y(i,P)||Vt(P)},over:function(P){Y(i,P)||(TA(i,P),Vt(P))},start:function(P){return kA(i,P)},drop:xr(i,SA),leave:function(P){Y(i,P)||Fv(i)}};var k=o.input.getField();Qe(k,"keyup",function(P){return Kv.call(i,P)}),Qe(k,"keydown",xr(i,Gv)),Qe(k,"keypress",xr(i,Yv)),Qe(k,"focus",function(P){return kp(i,P)}),Qe(k,"blur",function(P){return Wa(i,P)})}var Wp=[];Xt.defineInitHook=function(i){return Wp.push(i)};function Dl(i,o,h,f){var d=i.doc,y;h==null&&(h="add"),h=="smart"&&(d.mode.indent?y=ul(i,o).state:h="prev");var w=i.options.tabSize,k=Ye(d,o),P=ge(k.text,null,w);k.stateAfter&&(k.stateAfter=null);var N=k.text.match(/^\s*/)[0],q;if(!f&&!/\S/.test(k.text))q=0,h="not";else if(h=="smart"&&(q=d.mode.indent(y,k.text.slice(N.length),k.text),q==fe||q>150)){if(!f)return;h="prev"}h=="prev"?o>d.first?q=ge(Ye(d,o-1).text,null,w):q=0:h=="add"?q=P+i.options.indentUnit:h=="subtract"?q=P-i.options.indentUnit:typeof h=="number"&&(q=P+h),q=Math.max(0,q);var G="",se=0;if(i.options.indentWithTabs)for(var te=Math.floor(q/w);te;--te)se+=w,G+=" ";if(se<q&&(G+=Ue(q-se)),G!=N)return Ya(d,G,Ae(o,0),Ae(o,N.length),"+input"),k.stateAfter=null,!0;for(var ve=0;ve<d.sel.ranges.length;ve++){var Se=d.sel.ranges[ve];if(Se.head.line==o&&Se.head.ch<N.length){var Ne=Ae(o,N.length);Rp(d,ve,new Ot(Ne,Ne));break}}}var Jn=null;function Ic(i){Jn=i}function zp(i,o,h,f,d){var y=i.doc;i.display.shift=!1,f||(f=y.sel);var w=+new Date-200,k=d=="paste"||i.state.pasteIncoming>w,P=Ls(o),N=null;if(k&&f.ranges.length>1)if(Jn&&Jn.text.join(`
`)==o){if(f.ranges.length%Jn.text.length==0){N=[];for(var q=0;q<Jn.text.length;q++)N.push(y.splitLines(Jn.text[q]))}}else P.length==f.ranges.length&&i.options.pasteLinesPerSelection&&(N=Xe(P,function(Re){return[Re]}));for(var G=i.curOp.updateInput,se=f.ranges.length-1;se>=0;se--){var te=f.ranges[se],ve=te.from(),Se=te.to();te.empty()&&(h&&h>0?ve=Ae(ve.line,ve.ch-h):i.state.overwrite&&!k?Se=Ae(Se.line,Math.min(Ye(y,Se.line).text.length,Se.ch+qe(P).length)):k&&Jn&&Jn.lineWise&&Jn.text.join(`
`)==P.join(`
`)&&(ve=Se=Ae(ve.line,0)));var Ne={from:ve,to:Se,text:N?N[se%N.length]:P,origin:d||(k?"paste":i.state.cutIncoming>w?"cut":"+input")};Ka(i.doc,Ne),wr(i,"inputRead",i,Ne)}o&&!k&&n0(i,o),za(i),i.curOp.updateInput<2&&(i.curOp.updateInput=G),i.curOp.typing=!0,i.state.pasteIncoming=i.state.cutIncoming=-1}function r0(i,o){var h=i.clipboardData&&i.clipboardData.getData("Text");if(h)return i.preventDefault(),!o.isReadOnly()&&!o.options.disableInput&&gn(o,function(){return zp(o,h,0,null,"paste")}),!0}function n0(i,o){if(!(!i.options.electricChars||!i.options.smartIndent))for(var h=i.doc.sel,f=h.ranges.length-1;f>=0;f--){var d=h.ranges[f];if(!(d.head.ch>100||f&&h.ranges[f-1].head.line==d.head.line)){var y=i.getModeAt(d.head),w=!1;if(y.electricChars){for(var k=0;k<y.electricChars.length;k++)if(o.indexOf(y.electricChars.charAt(k))>-1){w=Dl(i,d.head.line,"smart");break}}else y.electricInput&&y.electricInput.test(Ye(i.doc,d.head.line).text.slice(0,d.head.ch))&&(w=Dl(i,d.head.line,"smart"));w&&wr(i,"electricInput",i,d.head.line)}}}function s0(i){for(var o=[],h=[],f=0;f<i.doc.sel.ranges.length;f++){var d=i.doc.sel.ranges[f].head.line,y={anchor:Ae(d,0),head:Ae(d+1,0)};h.push(y),o.push(i.getRange(y.anchor,y.head))}return{text:o,ranges:h}}function i0(i,o,h,f){i.setAttribute("autocorrect",h?"":"off"),i.setAttribute("autocapitalize",f?"":"off"),i.setAttribute("spellcheck",!!o)}function a0(){var i=J("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),o=J("div",[i],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?i.style.width="1000px":i.setAttribute("wrap","off"),_&&(i.style.border="1px solid black"),i0(i),o}function YA(i){var o=i.optionHandlers,h=i.helpers={};i.prototype={constructor:i,focus:function(){window.focus(),this.display.input.focus()},setOption:function(f,d){var y=this.options,w=y[f];y[f]==d&&f!="mode"||(y[f]=d,o.hasOwnProperty(f)&&xr(this,o[f])(this,d,w),rt(this,"optionChange",this,f))},getOption:function(f){return this.options[f]},getDoc:function(){return this.doc},addKeyMap:function(f,d){this.state.keyMaps[d?"push":"unshift"](Ac(f))},removeKeyMap:function(f){for(var d=this.state.keyMaps,y=0;y<d.length;++y)if(d[y]==f||d[y].name==f)return d.splice(y,1),!0},addOverlay:Xr(function(f,d){var y=f.token?f:i.getMode(this.options,f);if(y.startState)throw new Error("Overlays may not be stateful.");tt(this.state.overlays,{mode:y,modeSpec:f,opaque:d&&d.opaque,priority:d&&d.priority||0},function(w){return w.priority}),this.state.modeGen++,on(this)}),removeOverlay:Xr(function(f){for(var d=this.state.overlays,y=0;y<d.length;++y){var w=d[y].modeSpec;if(w==f||typeof f=="string"&&w.name==f){d.splice(y,1),this.state.modeGen++,on(this);return}}}),indentLine:Xr(function(f,d,y){typeof d!="string"&&typeof d!="number"&&(d==null?d=this.options.smartIndent?"smart":"prev":d=d?"add":"subtract"),Rs(this.doc,f)&&Dl(this,f,d,y)}),indentSelection:Xr(function(f){for(var d=this.doc.sel.ranges,y=-1,w=0;w<d.length;w++){var k=d[w];if(k.empty())k.head.line>y&&(Dl(this,k.head.line,f,!0),y=k.head.line,w==this.doc.sel.primIndex&&za(this));else{var P=k.from(),N=k.to(),q=Math.max(y,P.line);y=Math.min(this.lastLine(),N.line-(N.ch?0:1))+1;for(var G=q;G<y;++G)Dl(this,G,f);var se=this.doc.sel.ranges;P.ch==0&&d.length==se.length&&se[w].from().ch>0&&Rp(this.doc,w,new Ot(P,se[w].to()),ye)}}}),getTokenAt:function(f,d){return my(this,f,d)},getLineTokens:function(f,d){return my(this,Ae(f),d,!0)},getTokenTypeAt:function(f){f=We(this.doc,f);var d=hy(this,Ye(this.doc,f.line)),y=0,w=(d.length-1)/2,k=f.ch,P;if(k==0)P=d[2];else for(;;){var N=y+w>>1;if((N?d[N*2-1]:0)>=k)w=N;else if(d[N*2+1]<k)y=N+1;else{P=d[N*2+2];break}}var q=P?P.indexOf("overlay "):-1;return q<0?P:q==0?null:P.slice(0,q-1)},getModeAt:function(f){var d=this.doc.mode;return d.innerMode?i.innerMode(d,this.getTokenAt(f).state).mode:d},getHelper:function(f,d){return this.getHelpers(f,d)[0]},getHelpers:function(f,d){var y=[];if(!h.hasOwnProperty(d))return y;var w=h[d],k=this.getModeAt(f);if(typeof k[d]=="string")w[k[d]]&&y.push(w[k[d]]);else if(k[d])for(var P=0;P<k[d].length;P++){var N=w[k[d][P]];N&&y.push(N)}else k.helperType&&w[k.helperType]?y.push(w[k.helperType]):w[k.name]&&y.push(w[k.name]);for(var q=0;q<w._global.length;q++){var G=w._global[q];G.pred(k,this)&&z(y,G.val)==-1&&y.push(G.val)}return y},getStateAfter:function(f,d){var y=this.doc;return f=kt(y,f==null?y.first+y.size-1:f),ul(this,f+1,d).state},cursorCoords:function(f,d){var y,w=this.doc.sel.primary();return f==null?y=w.head:typeof f=="object"?y=We(this.doc,f):y=f?w.from():w.to(),Kn(this,y,d||"page")},charCoords:function(f,d){return hc(this,We(this.doc,f),d||"page")},coordsChar:function(f,d){return f=zy(this,f,d||"page"),mp(this,f.left,f.top)},lineAtHeight:function(f,d){return f=zy(this,{top:f,left:0},d||"page").top,jn(this.doc,f+this.display.viewOffset)},heightAtLine:function(f,d,y){var w=!1,k;if(typeof f=="number"){var P=this.doc.first+this.doc.size-1;f<this.doc.first?f=this.doc.first:f>P&&(f=P,w=!0),k=Ye(this.doc,f)}else k=f;return fc(this,k,{top:0,left:0},d||"page",y||w).top+(w?this.doc.height-Bs(k):0)},defaultTextHeight:function(){return Ua(this.display)},defaultCharWidth:function(){return qa(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(f,d,y,w,k){var P=this.display;f=Kn(this,We(this.doc,f));var N=f.bottom,q=f.left;if(d.style.position="absolute",d.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(d),P.sizer.appendChild(d),w=="over")N=f.top;else if(w=="above"||w=="near"){var G=Math.max(P.wrapper.clientHeight,this.doc.height),se=Math.max(P.sizer.clientWidth,P.lineSpace.clientWidth);(w=="above"||f.bottom+d.offsetHeight>G)&&f.top>d.offsetHeight?N=f.top-d.offsetHeight:f.bottom+d.offsetHeight<=G&&(N=f.bottom),q+d.offsetWidth>se&&(q=se-d.offsetWidth)}d.style.top=N+"px",d.style.left=d.style.right="",k=="right"?(q=P.sizer.clientWidth-d.offsetWidth,d.style.right="0px"):(k=="left"?q=0:k=="middle"&&(q=(P.sizer.clientWidth-d.offsetWidth)/2),d.style.left=q+"px"),y&&VE(this,{left:q,top:N,right:q+d.offsetWidth,bottom:N+d.offsetHeight})},triggerOnKeyDown:Xr(Gv),triggerOnKeyPress:Xr(Yv),triggerOnKeyUp:Kv,triggerOnMouseDown:Xr(Jv),execCommand:function(f){if(Nl.hasOwnProperty(f))return Nl[f].call(null,this)},triggerElectric:Xr(function(f){n0(this,f)}),findPosH:function(f,d,y,w){var k=1;d<0&&(k=-1,d=-d);for(var P=We(this.doc,f),N=0;N<d&&(P=Hp(this.doc,P,k,y,w),!P.hitSide);++N);return P},moveH:Xr(function(f,d){var y=this;this.extendSelectionsBy(function(w){return y.display.shift||y.doc.extend||w.empty()?Hp(y.doc,w.head,f,d,y.options.rtlMoveVisually):f<0?w.from():w.to()},le)}),deleteH:Xr(function(f,d){var y=this.doc.sel,w=this.doc;y.somethingSelected()?w.replaceSelection("",null,"+delete"):Qa(this,function(k){var P=Hp(w,k.head,f,d,!1);return f<0?{from:P,to:k.head}:{from:k.head,to:P}})}),findPosV:function(f,d,y,w){var k=1,P=w;d<0&&(k=-1,d=-d);for(var N=We(this.doc,f),q=0;q<d;++q){var G=Kn(this,N,"div");if(P==null?P=G.left:G.left=P,N=o0(this,G,k,y),N.hitSide)break}return N},moveV:Xr(function(f,d){var y=this,w=this.doc,k=[],P=!this.display.shift&&!w.extend&&w.sel.somethingSelected();if(w.extendSelectionsBy(function(q){if(P)return f<0?q.from():q.to();var G=Kn(y,q.head,"div");q.goalColumn!=null&&(G.left=q.goalColumn),k.push(G.left);var se=o0(y,G,f,d);return d=="page"&&q==w.sel.primary()&&_p(y,hc(y,se,"div").top-G.top),se},le),k.length)for(var N=0;N<w.sel.ranges.length;N++)w.sel.ranges[N].goalColumn=k[N]}),findWordAt:function(f){var d=this.doc,y=Ye(d,f.line).text,w=f.ch,k=f.ch;if(y){var P=this.getHelper(f,"wordChars");(f.sticky=="before"||k==y.length)&&w?--w:++k;for(var N=y.charAt(w),q=ae(N,P)?function(G){return ae(G,P)}:/\s/.test(N)?function(G){return/\s/.test(G)}:function(G){return!/\s/.test(G)&&!ae(G)};w>0&&q(y.charAt(w-1));)--w;for(;k<y.length&&q(y.charAt(k));)++k}return new Ot(Ae(f.line,w),Ae(f.line,k))},toggleOverwrite:function(f){f!=null&&f==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?de(this.display.cursorDiv,"CodeMirror-overwrite"):H(this.display.cursorDiv,"CodeMirror-overwrite"),rt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Z()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Xr(function(f,d){gl(this,f,d)}),getScrollInfo:function(){var f=this.display.scroller;return{left:f.scrollLeft,top:f.scrollTop,height:f.scrollHeight-ps(this)-this.display.barHeight,width:f.scrollWidth-ps(this)-this.display.barWidth,clientHeight:fp(this),clientWidth:Ji(this)}},scrollIntoView:Xr(function(f,d){f==null?(f={from:this.doc.sel.primary().head,to:null},d==null&&(d=this.options.cursorScrollMargin)):typeof f=="number"?f={from:Ae(f,0),to:null}:f.from==null&&(f={from:f,to:null}),f.to||(f.to=f.from),f.margin=d||0,f.from.line!=null?GE(this,f):Zy(this,f.from,f.to,f.margin)}),setSize:Xr(function(f,d){var y=this,w=function(P){return typeof P=="number"||/^\d+$/.test(String(P))?P+"px":P};f!=null&&(this.display.wrapper.style.width=w(f)),d!=null&&(this.display.wrapper.style.height=w(d)),this.options.lineWrapping&&Uy(this);var k=this.display.viewFrom;this.doc.iter(k,this.display.viewTo,function(P){if(P.widgets){for(var N=0;N<P.widgets.length;N++)if(P.widgets[N].noHScroll){mi(y,k,"widget");break}}++k}),this.curOp.forceUpdate=!0,rt(this,"refresh",this)}),operation:function(f){return gn(this,f)},startOperation:function(){return ra(this)},endOperation:function(){return na(this)},refresh:Xr(function(){var f=this.display.cachedTextHeight;on(this),this.curOp.forceUpdate=!0,dl(this),gl(this,this.doc.scrollLeft,this.doc.scrollTop),Cp(this.display),(f==null||Math.abs(f-Ua(this.display))>.5||this.options.lineWrapping)&&bp(this),rt(this,"refresh",this)}),swapDoc:Xr(function(f){var d=this.doc;return d.cm=null,this.state.selectingText&&this.state.selectingText(),pv(this,f),dl(this),this.display.input.reset(),gl(this,f.scrollLeft,f.scrollTop),this.curOp.forceScroll=!0,wr(this,"swapDoc",this,d),d}),phrase:function(f){var d=this.options.phrases;return d&&Object.prototype.hasOwnProperty.call(d,f)?d[f]:f},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ke(i),i.registerHelper=function(f,d,y){h.hasOwnProperty(f)||(h[f]=i[f]={_global:[]}),h[f][d]=y},i.registerGlobalHelper=function(f,d,y,w){i.registerHelper(f,d,w),h[f]._global.push({pred:y,val:w})}}function Hp(i,o,h,f,d){var y=o,w=h,k=Ye(i,o.line),P=d&&i.direction=="rtl"?-h:h;function N(){var je=o.line+P;return je<i.first||je>=i.first+i.size?!1:(o=new Ae(je,o.ch,o.sticky),k=Ye(i,je))}function q(je){var Fe;if(f=="codepoint"){var He=k.text.charCodeAt(o.ch+(h>0?0:-1));if(isNaN(He))Fe=null;else{var nt=h>0?He>=55296&&He<56320:He>=56320&&He<57343;Fe=new Ae(o.line,Math.max(0,Math.min(k.text.length,o.ch+h*(nt?2:1))),-h)}}else d?Fe=IA(i.cm,k,o,h):Fe=Bp(k,o,h);if(Fe==null)if(!je&&N())o=$p(d,i.cm,k,o.line,P);else return!1;else o=Fe;return!0}if(f=="char"||f=="codepoint")q();else if(f=="column")q(!0);else if(f=="word"||f=="group")for(var G=null,se=f=="group",te=i.cm&&i.cm.getHelper(o,"wordChars"),ve=!0;!(h<0&&!q(!ve));ve=!1){var Se=k.text.charAt(o.ch)||`
`,Ne=ae(Se,te)?"w":se&&Se==`
`?"n":!se||/\s/.test(Se)?null:"p";if(se&&!ve&&!Ne&&(Ne="s"),G&&G!=Ne){h<0&&(h=1,q(),o.sticky="after");break}if(Ne&&(G=Ne),h>0&&!q(!ve))break}var Re=Tc(i,o,y,w,!0);return K(y,Re)&&(Re.hitSide=!0),Re}function o0(i,o,h,f){var d=i.doc,y=o.left,w;if(f=="page"){var k=Math.min(i.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),P=Math.max(k-.5*Ua(i.display),3);w=(h>0?o.bottom:o.top)+h*P}else f=="line"&&(w=h>0?o.bottom+3:o.top-3);for(var N;N=mp(i,y,w),!!N.outside;){if(h<0?w<=0:w>=d.height){N.hitSide=!0;break}w+=h*5}return N}var Rt=function(i){this.cm=i,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ee,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Rt.prototype.init=function(i){var o=this,h=this,f=h.cm,d=h.div=i.lineDiv;d.contentEditable=!0,i0(d,f.options.spellcheck,f.options.autocorrect,f.options.autocapitalize);function y(k){for(var P=k.target;P;P=P.parentNode){if(P==d)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(P.className))break}return!1}Qe(d,"paste",function(k){!y(k)||Y(f,k)||r0(k,f)||m<=11&&setTimeout(xr(f,function(){return o.updateFromDOM()}),20)}),Qe(d,"compositionstart",function(k){o.composing={data:k.data,done:!1}}),Qe(d,"compositionupdate",function(k){o.composing||(o.composing={data:k.data,done:!1})}),Qe(d,"compositionend",function(k){o.composing&&(k.data!=o.composing.data&&o.readFromDOMSoon(),o.composing.done=!0)}),Qe(d,"touchstart",function(){return h.forceCompositionEnd()}),Qe(d,"input",function(){o.composing||o.readFromDOMSoon()});function w(k){if(!(!y(k)||Y(f,k))){if(f.somethingSelected())Ic({lineWise:!1,text:f.getSelections()}),k.type=="cut"&&f.replaceSelection("",null,"cut");else if(f.options.lineWiseCopyCut){var P=s0(f);Ic({lineWise:!0,text:P.text}),k.type=="cut"&&f.operation(function(){f.setSelections(P.ranges,0,ye),f.replaceSelection("",null,"cut")})}else return;if(k.clipboardData){k.clipboardData.clearData();var N=Jn.text.join(`
`);if(k.clipboardData.setData("Text",N),k.clipboardData.getData("Text")==N){k.preventDefault();return}}var q=a0(),G=q.firstChild;f.display.lineSpace.insertBefore(q,f.display.lineSpace.firstChild),G.value=Jn.text.join(`
`);var se=Z();oe(G),setTimeout(function(){f.display.lineSpace.removeChild(q),se.focus(),se==d&&h.showPrimarySelection()},50)}}Qe(d,"copy",w),Qe(d,"cut",w)},Rt.prototype.screenReaderLabelChanged=function(i){i?this.div.setAttribute("aria-label",i):this.div.removeAttribute("aria-label")},Rt.prototype.prepareSelection=function(){var i=Jy(this.cm,!1);return i.focus=Z()==this.div,i},Rt.prototype.showSelection=function(i,o){!i||!this.cm.display.view.length||((i.focus||o)&&this.showPrimarySelection(),this.showMultipleSelections(i))},Rt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Rt.prototype.showPrimarySelection=function(){var i=this.getSelection(),o=this.cm,h=o.doc.sel.primary(),f=h.from(),d=h.to();if(o.display.viewTo==o.display.viewFrom||f.line>=o.display.viewTo||d.line<o.display.viewFrom){i.removeAllRanges();return}var y=Nc(o,i.anchorNode,i.anchorOffset),w=Nc(o,i.focusNode,i.focusOffset);if(!(y&&!y.bad&&w&&!w.bad&&L(lt(y,w),f)==0&&L(Ie(y,w),d)==0)){var k=o.display.view,P=f.line>=o.display.viewFrom&&l0(o,f)||{node:k[0].measure.map[2],offset:0},N=d.line<o.display.viewTo&&l0(o,d);if(!N){var q=k[k.length-1].measure,G=q.maps?q.maps[q.maps.length-1]:q.map;N={node:G[G.length-1],offset:G[G.length-2]-G[G.length-3]}}if(!P||!N){i.removeAllRanges();return}var se=i.rangeCount&&i.getRangeAt(0),te;try{te=ce(P.node,P.offset,N.offset,N.node)}catch{}te&&(!s&&o.state.focused?(i.collapse(P.node,P.offset),te.collapsed||(i.removeAllRanges(),i.addRange(te))):(i.removeAllRanges(),i.addRange(te)),se&&i.anchorNode==null?i.addRange(se):s&&this.startGracePeriod()),this.rememberSelection()}},Rt.prototype.startGracePeriod=function(){var i=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){i.gracePeriod=!1,i.selectionChanged()&&i.cm.operation(function(){return i.cm.curOp.selectionChanged=!0})},20)},Rt.prototype.showMultipleSelections=function(i){X(this.cm.display.cursorDiv,i.cursors),X(this.cm.display.selectionDiv,i.selection)},Rt.prototype.rememberSelection=function(){var i=this.getSelection();this.lastAnchorNode=i.anchorNode,this.lastAnchorOffset=i.anchorOffset,this.lastFocusNode=i.focusNode,this.lastFocusOffset=i.focusOffset},Rt.prototype.selectionInEditor=function(){var i=this.getSelection();if(!i.rangeCount)return!1;var o=i.getRangeAt(0).commonAncestorContainer;return W(this.div,o)},Rt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Z()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Rt.prototype.blur=function(){this.div.blur()},Rt.prototype.getField=function(){return this.div},Rt.prototype.supportsTouch=function(){return!0},Rt.prototype.receivedFocus=function(){var i=this,o=this;this.selectionInEditor()?setTimeout(function(){return i.pollSelection()},20):gn(this.cm,function(){return o.cm.curOp.selectionChanged=!0});function h(){o.cm.state.focused&&(o.pollSelection(),o.polling.set(o.cm.options.pollInterval,h))}this.polling.set(this.cm.options.pollInterval,h)},Rt.prototype.selectionChanged=function(){var i=this.getSelection();return i.anchorNode!=this.lastAnchorNode||i.anchorOffset!=this.lastAnchorOffset||i.focusNode!=this.lastFocusNode||i.focusOffset!=this.lastFocusOffset},Rt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var i=this.getSelection(),o=this.cm;if(A&&b&&this.cm.display.gutterSpecs.length&&JA(i.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var h=Nc(o,i.anchorNode,i.anchorOffset),f=Nc(o,i.focusNode,i.focusOffset);h&&f&&gn(o,function(){jr(o.doc,yi(h,f),ye),(h.bad||f.bad)&&(o.curOp.selectionChanged=!0)})}}},Rt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var i=this.cm,o=i.display,h=i.doc.sel.primary(),f=h.from(),d=h.to();if(f.ch==0&&f.line>i.firstLine()&&(f=Ae(f.line-1,Ye(i.doc,f.line-1).length)),d.ch==Ye(i.doc,d.line).text.length&&d.line<i.lastLine()&&(d=Ae(d.line+1,0)),f.line<o.viewFrom||d.line>o.viewTo-1)return!1;var y,w,k;f.line==o.viewFrom||(y=Zi(i,f.line))==0?(w=Pt(o.view[0].line),k=o.view[0].node):(w=Pt(o.view[y].line),k=o.view[y-1].node.nextSibling);var P=Zi(i,d.line),N,q;if(P==o.view.length-1?(N=o.viewTo-1,q=o.lineDiv.lastChild):(N=Pt(o.view[P+1].line)-1,q=o.view[P+1].node.previousSibling),!k)return!1;for(var G=i.doc.splitLines(XA(i,k,q,w,N)),se=$n(i.doc,Ae(w,0),Ae(N,Ye(i.doc,N).text.length));G.length>1&&se.length>1;)if(qe(G)==qe(se))G.pop(),se.pop(),N--;else if(G[0]==se[0])G.shift(),se.shift(),w++;else break;for(var te=0,ve=0,Se=G[0],Ne=se[0],Re=Math.min(Se.length,Ne.length);te<Re&&Se.charCodeAt(te)==Ne.charCodeAt(te);)++te;for(var je=qe(G),Fe=qe(se),He=Math.min(je.length-(G.length==1?te:0),Fe.length-(se.length==1?te:0));ve<He&&je.charCodeAt(je.length-ve-1)==Fe.charCodeAt(Fe.length-ve-1);)++ve;if(G.length==1&&se.length==1&&w==f.line)for(;te&&te>f.ch&&je.charCodeAt(je.length-ve-1)==Fe.charCodeAt(Fe.length-ve-1);)te--,ve++;G[G.length-1]=je.slice(0,je.length-ve).replace(/^\u200b+/,""),G[0]=G[0].slice(te).replace(/\u200b+$/,"");var nt=Ae(w,te),et=Ae(N,se.length?qe(se).length-ve:0);if(G.length>1||G[0]||L(nt,et))return Ya(i.doc,G,nt,et,"+input"),!0},Rt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Rt.prototype.reset=function(){this.forceCompositionEnd()},Rt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Rt.prototype.readFromDOMSoon=function(){var i=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(i.readDOMTimeout=null,i.composing)if(i.composing.done)i.composing=null;else return;i.updateFromDOM()},80))},Rt.prototype.updateFromDOM=function(){var i=this;(this.cm.isReadOnly()||!this.pollContent())&&gn(this.cm,function(){return on(i.cm)})},Rt.prototype.setUneditable=function(i){i.contentEditable="false"},Rt.prototype.onKeyPress=function(i){i.charCode==0||this.composing||(i.preventDefault(),this.cm.isReadOnly()||xr(this.cm,zp)(this.cm,String.fromCharCode(i.charCode==null?i.keyCode:i.charCode),0))},Rt.prototype.readOnlyChanged=function(i){this.div.contentEditable=String(i!="nocursor")},Rt.prototype.onContextMenu=function(){},Rt.prototype.resetPosition=function(){},Rt.prototype.needsContentAttribute=!0;function l0(i,o){var h=hp(i,o.line);if(!h||h.hidden)return null;var f=Ye(i.doc,o.line),d=Ry(h,f,o.line),y=Ht(f,i.doc.direction),w="left";if(y){var k=Mt(y,o.ch);w=k%2?"right":"left"}var P=$y(d.map,o.ch,w);return P.offset=P.collapse=="right"?P.end:P.start,P}function JA(i){for(var o=i;o;o=o.parentNode)if(/CodeMirror-gutter-wrapper/.test(o.className))return!0;return!1}function eo(i,o){return o&&(i.bad=!0),i}function XA(i,o,h,f,d){var y="",w=!1,k=i.doc.lineSeparator(),P=!1;function N(te){return function(ve){return ve.id==te}}function q(){w&&(y+=k,P&&(y+=k),w=P=!1)}function G(te){te&&(q(),y+=te)}function se(te){if(te.nodeType==1){var ve=te.getAttribute("cm-text");if(ve){G(ve);return}var Se=te.getAttribute("cm-marker"),Ne;if(Se){var Re=i.findMarks(Ae(f,0),Ae(d+1,0),N(+Se));Re.length&&(Ne=Re[0].find(0))&&G($n(i.doc,Ne.from,Ne.to).join(k));return}if(te.getAttribute("contenteditable")=="false")return;var je=/^(pre|div|p|li|table|br)$/i.test(te.nodeName);if(!/^br$/i.test(te.nodeName)&&te.textContent.length==0)return;je&&q();for(var Fe=0;Fe<te.childNodes.length;Fe++)se(te.childNodes[Fe]);/^(pre|p)$/i.test(te.nodeName)&&(P=!0),je&&(w=!0)}else te.nodeType==3&&G(te.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;se(o),o!=h;)o=o.nextSibling,P=!1;return y}function Nc(i,o,h){var f;if(o==i.display.lineDiv){if(f=i.display.lineDiv.childNodes[h],!f)return eo(i.clipPos(Ae(i.display.viewTo-1)),!0);o=null,h=0}else for(f=o;;f=f.parentNode){if(!f||f==i.display.lineDiv)return null;if(f.parentNode&&f.parentNode==i.display.lineDiv)break}for(var d=0;d<i.display.view.length;d++){var y=i.display.view[d];if(y.node==f)return QA(y,o,h)}}function QA(i,o,h){var f=i.text.firstChild,d=!1;if(!o||!W(f,o))return eo(Ae(Pt(i.line),0),!0);if(o==f&&(d=!0,o=f.childNodes[h],h=0,!o)){var y=i.rest?qe(i.rest):i.line;return eo(Ae(Pt(y),y.text.length),d)}var w=o.nodeType==3?o:null,k=o;for(!w&&o.childNodes.length==1&&o.firstChild.nodeType==3&&(w=o.firstChild,h&&(h=w.nodeValue.length));k.parentNode!=f;)k=k.parentNode;var P=i.measure,N=P.maps;function q(Ne,Re,je){for(var Fe=-1;Fe<(N?N.length:0);Fe++)for(var He=Fe<0?P.map:N[Fe],nt=0;nt<He.length;nt+=3){var et=He[nt+2];if(et==Ne||et==Re){var vt=Pt(Fe<0?i.line:i.rest[Fe]),qt=He[nt]+je;return(je<0||et!=Ne)&&(qt=He[nt+(je?1:0)]),Ae(vt,qt)}}}var G=q(w,k,h);if(G)return eo(G,d);for(var se=k.nextSibling,te=w?w.nodeValue.length-h:0;se;se=se.nextSibling){if(G=q(se,se.firstChild,0),G)return eo(Ae(G.line,G.ch-te),d);te+=se.textContent.length}for(var ve=k.previousSibling,Se=h;ve;ve=ve.previousSibling){if(G=q(ve,ve.firstChild,-1),G)return eo(Ae(G.line,G.ch+Se),d);Se+=ve.textContent.length}}var fr=function(i){this.cm=i,this.prevInput="",this.pollingFast=!1,this.polling=new ee,this.hasSelection=!1,this.composing=null};fr.prototype.init=function(i){var o=this,h=this,f=this.cm;this.createField(i);var d=this.textarea;i.wrapper.insertBefore(this.wrapper,i.wrapper.firstChild),_&&(d.style.width="0px"),Qe(d,"input",function(){c&&m>=9&&o.hasSelection&&(o.hasSelection=null),h.poll()}),Qe(d,"paste",function(w){Y(f,w)||r0(w,f)||(f.state.pasteIncoming=+new Date,h.fastPoll())});function y(w){if(!Y(f,w)){if(f.somethingSelected())Ic({lineWise:!1,text:f.getSelections()});else if(f.options.lineWiseCopyCut){var k=s0(f);Ic({lineWise:!0,text:k.text}),w.type=="cut"?f.setSelections(k.ranges,null,ye):(h.prevInput="",d.value=k.text.join(`
`),oe(d))}else return;w.type=="cut"&&(f.state.cutIncoming=+new Date)}}Qe(d,"cut",y),Qe(d,"copy",y),Qe(i.scroller,"paste",function(w){if(!($s(i,w)||Y(f,w))){if(!d.dispatchEvent){f.state.pasteIncoming=+new Date,h.focus();return}var k=new Event("paste");k.clipboardData=w.clipboardData,d.dispatchEvent(k)}}),Qe(i.lineSpace,"selectstart",function(w){$s(i,w)||$e(w)}),Qe(d,"compositionstart",function(){var w=f.getCursor("from");h.composing&&h.composing.range.clear(),h.composing={start:w,range:f.markText(w,f.getCursor("to"),{className:"CodeMirror-composing"})}}),Qe(d,"compositionend",function(){h.composing&&(h.poll(),h.composing.range.clear(),h.composing=null)})},fr.prototype.createField=function(i){this.wrapper=a0(),this.textarea=this.wrapper.firstChild},fr.prototype.screenReaderLabelChanged=function(i){i?this.textarea.setAttribute("aria-label",i):this.textarea.removeAttribute("aria-label")},fr.prototype.prepareSelection=function(){var i=this.cm,o=i.display,h=i.doc,f=Jy(i);if(i.options.moveInputWithCursor){var d=Kn(i,h.sel.primary().head,"div"),y=o.wrapper.getBoundingClientRect(),w=o.lineDiv.getBoundingClientRect();f.teTop=Math.max(0,Math.min(o.wrapper.clientHeight-10,d.top+w.top-y.top)),f.teLeft=Math.max(0,Math.min(o.wrapper.clientWidth-10,d.left+w.left-y.left))}return f},fr.prototype.showSelection=function(i){var o=this.cm,h=o.display;X(h.cursorDiv,i.cursors),X(h.selectionDiv,i.selection),i.teTop!=null&&(this.wrapper.style.top=i.teTop+"px",this.wrapper.style.left=i.teLeft+"px")},fr.prototype.reset=function(i){if(!(this.contextMenuPending||this.composing)){var o=this.cm;if(o.somethingSelected()){this.prevInput="";var h=o.getSelection();this.textarea.value=h,o.state.focused&&oe(this.textarea),c&&m>=9&&(this.hasSelection=h)}else i||(this.prevInput=this.textarea.value="",c&&m>=9&&(this.hasSelection=null))}},fr.prototype.getField=function(){return this.textarea},fr.prototype.supportsTouch=function(){return!1},fr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!I||Z()!=this.textarea))try{this.textarea.focus()}catch{}},fr.prototype.blur=function(){this.textarea.blur()},fr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},fr.prototype.receivedFocus=function(){this.slowPoll()},fr.prototype.slowPoll=function(){var i=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){i.poll(),i.cm.state.focused&&i.slowPoll()})},fr.prototype.fastPoll=function(){var i=!1,o=this;o.pollingFast=!0;function h(){var f=o.poll();!f&&!i?(i=!0,o.polling.set(60,h)):(o.pollingFast=!1,o.slowPoll())}o.polling.set(20,h)},fr.prototype.poll=function(){var i=this,o=this.cm,h=this.textarea,f=this.prevInput;if(this.contextMenuPending||!o.state.focused||fi(h)&&!f&&!this.composing||o.isReadOnly()||o.options.disableInput||o.state.keySeq)return!1;var d=h.value;if(d==f&&!o.somethingSelected())return!1;if(c&&m>=9&&this.hasSelection===d||M&&/[\uf700-\uf7ff]/.test(d))return o.display.input.reset(),!1;if(o.doc.sel==o.display.selForContextMenu){var y=d.charCodeAt(0);if(y==8203&&!f&&(f="\u200B"),y==8666)return this.reset(),this.cm.execCommand("undo")}for(var w=0,k=Math.min(f.length,d.length);w<k&&f.charCodeAt(w)==d.charCodeAt(w);)++w;return gn(o,function(){zp(o,d.slice(w),f.length-w,null,i.composing?"*compose":null),d.length>1e3||d.indexOf(`
`)>-1?h.value=i.prevInput="":i.prevInput=d,i.composing&&(i.composing.range.clear(),i.composing.range=o.markText(i.composing.start,o.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},fr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},fr.prototype.onKeyPress=function(){c&&m>=9&&(this.hasSelection=null),this.fastPoll()},fr.prototype.onContextMenu=function(i){var o=this,h=o.cm,f=h.display,d=o.textarea;o.contextMenuPending&&o.contextMenuPending();var y=Qi(h,i),w=f.scroller.scrollTop;if(!y||x)return;var k=h.options.resetSelectionOnContextMenu;k&&h.doc.sel.contains(y)==-1&&xr(h,jr)(h.doc,yi(y),ye);var P=d.style.cssText,N=o.wrapper.style.cssText,q=o.wrapper.offsetParent.getBoundingClientRect();o.wrapper.style.cssText="position: static",d.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(i.clientY-q.top-5)+"px; left: "+(i.clientX-q.left-5)+`px;
z-index: 1000; background: `+(c?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var G;g&&(G=window.scrollY),f.input.focus(),g&&window.scrollTo(null,G),f.input.reset(),h.somethingSelected()||(d.value=o.prevInput=" "),o.contextMenuPending=te,f.selForContextMenu=h.doc.sel,clearTimeout(f.detectingSelectAll);function se(){if(d.selectionStart!=null){var Se=h.somethingSelected(),Ne="\u200B"+(Se?d.value:"");d.value="\u21DA",d.value=Ne,o.prevInput=Se?"":"\u200B",d.selectionStart=1,d.selectionEnd=Ne.length,f.selForContextMenu=h.doc.sel}}function te(){if(o.contextMenuPending==te&&(o.contextMenuPending=!1,o.wrapper.style.cssText=N,d.style.cssText=P,c&&m<9&&f.scrollbars.setScrollTop(f.scroller.scrollTop=w),d.selectionStart!=null)){(!c||c&&m<9)&&se();var Se=0,Ne=function(){f.selForContextMenu==h.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&o.prevInput=="\u200B"?xr(h,Ev)(h):Se++<10?f.detectingSelectAll=setTimeout(Ne,500):(f.selForContextMenu=null,f.input.reset())};f.detectingSelectAll=setTimeout(Ne,200)}}if(c&&m>=9&&se(),B){Vt(i);var ve=function(){Bt(window,"mouseup",ve),setTimeout(te,20)};Qe(window,"mouseup",ve)}else setTimeout(te,50)},fr.prototype.readOnlyChanged=function(i){i||this.reset(),this.textarea.disabled=i=="nocursor",this.textarea.readOnly=!!i},fr.prototype.setUneditable=function(){},fr.prototype.needsContentAttribute=!1;function ZA(i,o){if(o=o?re(o):{},o.value=i.value,!o.tabindex&&i.tabIndex&&(o.tabindex=i.tabIndex),!o.placeholder&&i.placeholder&&(o.placeholder=i.placeholder),o.autofocus==null){var h=Z();o.autofocus=h==i||i.getAttribute("autofocus")!=null&&h==document.body}function f(){i.value=k.getValue()}var d;if(i.form&&(Qe(i.form,"submit",f),!o.leaveSubmitMethodAlone)){var y=i.form;d=y.submit;try{var w=y.submit=function(){f(),y.submit=d,y.submit(),y.submit=w}}catch{}}o.finishInit=function(P){P.save=f,P.getTextArea=function(){return i},P.toTextArea=function(){P.toTextArea=isNaN,f(),i.parentNode.removeChild(P.getWrapperElement()),i.style.display="",i.form&&(Bt(i.form,"submit",f),!o.leaveSubmitMethodAlone&&typeof i.form.submit=="function"&&(i.form.submit=d))}},i.style.display="none";var k=Xt(function(P){return i.parentNode.insertBefore(P,i.nextSibling)},o);return k}function eC(i){i.off=Bt,i.on=Qe,i.wheelEventPixels=oA,i.Doc=ln,i.splitLines=Ls,i.countColumn=ge,i.findColumn=_e,i.isWordChar=ht,i.Pass=fe,i.signal=rt,i.Line=Ba,i.changeEnd=vi,i.scrollbarModel=rv,i.Pos=Ae,i.cmpPos=L,i.modes=Yr,i.mimeModes=Fr,i.resolveMode=cs,i.getMode=fs,i.modeExtensions=sn,i.extendMode=an,i.copyState=Br,i.startState=Gi,i.innerMode=Ds,i.commands=Nl,i.keyMap=Us,i.keyName=qv,i.isModifierKey=jv,i.lookupKey=Xa,i.normalizeKeyMap=PA,i.StringStream=Jt,i.SharedTextMarker=Cl,i.TextMarker=wi,i.LineWidget=Al,i.e_preventDefault=$e,i.e_stopPropagation=Ve,i.e_stop=Vt,i.addClass=de,i.contains=W,i.rmClass=H,i.keyNames=xi}HA(Xt),YA(Xt);var tC="iter insert remove copy getEditor constructor".split(" ");for(var Oc in ln.prototype)ln.prototype.hasOwnProperty(Oc)&&z(tC,Oc)<0&&(Xt.prototype[Oc]=function(i){return function(){return i.apply(this.doc,arguments)}}(ln.prototype[Oc]));return Ke(ln),Xt.inputStyles={textarea:fr,contenteditable:Rt},Xt.defineMode=function(i){!Xt.defaults.mode&&i!="null"&&(Xt.defaults.mode=i),pi.apply(this,arguments)},Xt.defineMIME=Cn,Xt.defineMode("null",function(){return{token:function(i){return i.skipToEnd()}}}),Xt.defineMIME("text/plain","null"),Xt.defineExtension=function(i,o){Xt.prototype[i]=o},Xt.defineDocExtension=function(i,o){ln.prototype[i]=o},Xt.fromTextArea=ZA,eC(Xt),Xt.version="5.65.3",Xt})}(_d)),_d.exports}var O3=An(),Yb={exports:{}},Jb;function VT(){return Jb||(Jb=1,function(r,e){(function(t){t(An())})(function(t){t.defineMode("javascript",function(n,s){var a=n.indentUnit,l=s.statementIndent,u=s.jsonld,c=s.json||u,m=s.trackScope!==!1,g=s.typescript,v=s.wordCharacters||/[\w$\xa1-\uffff]/,b=function(){function L($r){return{type:$r,style:"keyword"}}var K=L("keyword a"),xe=L("keyword b"),Ie=L("keyword c"),lt=L("keyword d"),kt=L("operator"),We={type:"atom",style:"atom"};return{if:L("if"),while:K,with:K,else:xe,do:xe,try:xe,finally:xe,return:lt,break:lt,continue:lt,new:L("new"),delete:Ie,void:Ie,throw:Ie,debugger:L("debugger"),var:L("var"),const:L("var"),let:L("var"),function:L("function"),catch:L("catch"),for:L("for"),switch:L("switch"),case:L("case"),default:L("default"),in:kt,typeof:kt,instanceof:kt,true:We,false:We,null:We,undefined:We,NaN:We,Infinity:We,this:L("this"),class:L("class"),super:L("atom"),yield:Ie,export:L("export"),import:L("import"),extends:Ie,await:Ie}}(),x=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function S(L){for(var K=!1,xe,Ie=!1;(xe=L.next())!=null;){if(!K){if(xe=="/"&&!Ie)return;xe=="["?Ie=!0:Ie&&xe=="]"&&(Ie=!1)}K=!K&&xe=="\\"}}var C,_;function A(L,K,xe){return C=L,_=xe,K}function I(L,K){var xe=L.next();if(xe=='"'||xe=="'")return K.tokenize=M(xe),K.tokenize(L,K);if(xe=="."&&L.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return A("number","number");if(xe=="."&&L.match(".."))return A("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(xe))return A(xe);if(xe=="="&&L.eat(">"))return A("=>","operator");if(xe=="0"&&L.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return A("number","number");if(/\d/.test(xe))return L.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),A("number","number");if(xe=="/")return L.eat("*")?(K.tokenize=O,O(L,K)):L.eat("/")?(L.skipToEnd(),A("comment","comment")):Ae(L,K,1)?(S(L),L.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),A("regexp","string-2")):(L.eat("="),A("operator","operator",L.current()));if(xe=="`")return K.tokenize=R,R(L,K);if(xe=="#"&&L.peek()=="!")return L.skipToEnd(),A("meta","meta");if(xe=="#"&&L.eatWhile(v))return A("variable","property");if(xe=="<"&&L.match("!--")||xe=="-"&&L.match("->")&&!/\S/.test(L.string.slice(0,L.start)))return L.skipToEnd(),A("comment","comment");if(x.test(xe))return(xe!=">"||!K.lexical||K.lexical.type!=">")&&(L.eat("=")?(xe=="!"||xe=="=")&&L.eat("="):/[<>*+\-|&?]/.test(xe)&&(L.eat(xe),xe==">"&&L.eat(xe))),xe=="?"&&L.eat(".")?A("."):A("operator","operator",L.current());if(v.test(xe)){L.eatWhile(v);var Ie=L.current();if(K.lastType!="."){if(b.propertyIsEnumerable(Ie)){var lt=b[Ie];return A(lt.type,lt.style,Ie)}if(Ie=="async"&&L.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return A("async","keyword",Ie)}return A("variable","variable",Ie)}}function M(L){return function(K,xe){var Ie=!1,lt;if(u&&K.peek()=="@"&&K.match(E))return xe.tokenize=I,A("jsonld-keyword","meta");for(;(lt=K.next())!=null&&!(lt==L&&!Ie);)Ie=!Ie&&lt=="\\";return Ie||(xe.tokenize=I),A("string","string")}}function O(L,K){for(var xe=!1,Ie;Ie=L.next();){if(Ie=="/"&&xe){K.tokenize=I;break}xe=Ie=="*"}return A("comment","comment")}function R(L,K){for(var xe=!1,Ie;(Ie=L.next())!=null;){if(!xe&&(Ie=="`"||Ie=="$"&&L.eat("{"))){K.tokenize=I;break}xe=!xe&&Ie=="\\"}return A("quasi","string-2",L.current())}var j="([{}])";function $(L,K){K.fatArrowAt&&(K.fatArrowAt=null);var xe=L.string.indexOf("=>",L.start);if(!(xe<0)){if(g){var Ie=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(L.string.slice(L.start,xe));Ie&&(xe=Ie.index)}for(var lt=0,kt=!1,We=xe-1;We>=0;--We){var $r=L.string.charAt(We),Pn=j.indexOf($r);if(Pn>=0&&Pn<3){if(!lt){++We;break}if(--lt==0){$r=="("&&(kt=!0);break}}else if(Pn>=3&&Pn<6)++lt;else if(v.test($r))kt=!0;else if(/["'\/`]/.test($r))for(;;--We){if(We==0)return;var Fa=L.string.charAt(We-1);if(Fa==$r&&L.string.charAt(We-2)!="\\"){We--;break}}else if(kt&&!lt){++We;break}}kt&&!lt&&(K.fatArrowAt=We)}}var B={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function F(L,K,xe,Ie,lt,kt){this.indented=L,this.column=K,this.type=xe,this.prev=lt,this.info=kt,Ie!=null&&(this.align=Ie)}function H(L,K){if(!m)return!1;for(var xe=L.localVars;xe;xe=xe.next)if(xe.name==K)return!0;for(var Ie=L.context;Ie;Ie=Ie.prev)for(var xe=Ie.vars;xe;xe=xe.next)if(xe.name==K)return!0}function V(L,K,xe,Ie,lt){var kt=L.cc;for(X.state=L,X.stream=lt,X.marked=null,X.cc=kt,X.style=K,L.lexical.hasOwnProperty("align")||(L.lexical.align=!0);;){var We=kt.length?kt.pop():c?le:ye;if(We(xe,Ie)){for(;kt.length&&kt[kt.length-1].lex;)kt.pop()();return X.marked?X.marked:xe=="variable"&&H(L,Ie)?"variable-2":K}}}var X={state:null,column:null,marked:null,cc:null};function J(){for(var L=arguments.length-1;L>=0;L--)X.cc.push(arguments[L])}function D(){return J.apply(null,arguments),!0}function ce(L,K){for(var xe=K;xe;xe=xe.next)if(xe.name==L)return!0;return!1}function W(L){var K=X.state;if(X.marked="def",!!m){if(K.context){if(K.lexical.info=="var"&&K.context&&K.context.block){var xe=Z(L,K.context);if(xe!=null){K.context=xe;return}}else if(!ce(L,K.localVars)){K.localVars=new oe(L,K.localVars);return}}s.globalVars&&!ce(L,K.globalVars)&&(K.globalVars=new oe(L,K.globalVars))}}function Z(L,K){if(K)if(K.block){var xe=Z(L,K.prev);return xe?xe==K.prev?K:new he(xe,K.vars,!0):null}else return ce(L,K.vars)?K:new he(K.prev,new oe(L,K.vars),!1);else return null}function de(L){return L=="public"||L=="private"||L=="protected"||L=="abstract"||L=="readonly"}function he(L,K,xe){this.prev=L,this.vars=K,this.block=xe}function oe(L,K){this.name=L,this.next=K}var we=new oe("this",new oe("arguments",null));function re(){X.state.context=new he(X.state.context,X.state.localVars,!1),X.state.localVars=we}function ge(){X.state.context=new he(X.state.context,X.state.localVars,!0),X.state.localVars=null}re.lex=ge.lex=!0;function ee(){X.state.localVars=X.state.context.vars,X.state.context=X.state.context.prev}ee.lex=!0;function z(L,K){var xe=function(){var Ie=X.state,lt=Ie.indented;if(Ie.lexical.type=="stat")lt=Ie.lexical.indented;else for(var kt=Ie.lexical;kt&&kt.type==")"&&kt.align;kt=kt.prev)lt=kt.indented;Ie.lexical=new F(lt,X.stream.column(),L,null,Ie.lexical,K)};return xe.lex=!0,xe}function ne(){var L=X.state;L.lexical.prev&&(L.lexical.type==")"&&(L.indented=L.lexical.indented),L.lexical=L.lexical.prev)}ne.lex=!0;function fe(L){function K(xe){return xe==L?D():L==";"||xe=="}"||xe==")"||xe=="]"?J():D(K)}return K}function ye(L,K){return L=="var"?D(z("vardef",K),Kt,fe(";"),ne):L=="keyword a"?D(z("form"),De,ye,ne):L=="keyword b"?D(z("form"),ye,ne):L=="keyword d"?X.stream.match(/^\s*$/,!1)?D():D(z("stat"),qe,fe(";"),ne):L=="debugger"?D(fe(";")):L=="{"?D(z("}"),ge,Ht,ne,ee):L==";"?D():L=="if"?(X.state.lexical.info=="else"&&X.state.cc[X.state.cc.length-1]==ne&&X.state.cc.pop()(),D(z("form"),De,ye,ne,fi)):L=="function"?D(Yr):L=="for"?D(z("form"),ge,hi,ye,ee,ne):L=="class"||g&&K=="interface"?(X.marked="keyword",D(z("form",L=="class"?L:K),fs,ne)):L=="variable"?g&&K=="declare"?(X.marked="keyword",D(ye)):g&&(K=="module"||K=="enum"||K=="type")&&X.stream.match(/^\s*\w/,!1)?(X.marked="keyword",K=="enum"?D(jn):K=="type"?D(pi,fe("operator"),rt,fe(";")):D(z("form"),hr,fe("{"),z("}"),Ht,ne,ne)):g&&K=="namespace"?(X.marked="keyword",D(z("form"),le,ye,ne)):g&&K=="abstract"?(X.marked="keyword",D(ye)):D(z("stat"),ct):L=="switch"?D(z("form"),De,fe("{"),z("}","switch"),ge,Ht,ne,ne,ee):L=="case"?D(le,fe(":")):L=="default"?D(fe(":")):L=="catch"?D(z("form"),re,pe,ye,ne,ee):L=="export"?D(z("stat"),Ds,ne):L=="import"?D(z("stat"),Jt,ne):L=="async"?D(ye):K=="@"?D(le,ye):J(z("stat"),le,fe(";"),ne)}function pe(L){if(L=="(")return D(Cn,fe(")"))}function le(L,K){return Ue(L,K,!1)}function _e(L,K){return Ue(L,K,!0)}function De(L){return L!="("?J():D(z(")"),qe,fe(")"),ne)}function Ue(L,K,xe){if(X.state.fatArrowAt==X.stream.start){var Ie=xe?ht:Lt;if(L=="(")return D(re,z(")"),Mt(Cn,")"),ne,fe("=>"),Ie,ee);if(L=="variable")return J(re,hr,fe("=>"),Ie,ee)}var lt=xe?tt:Xe;return B.hasOwnProperty(L)?D(lt):L=="function"?D(Yr,lt):L=="class"||g&&K=="interface"?(X.marked="keyword",D(z("form"),cs,ne)):L=="keyword c"||L=="async"?D(xe?_e:le):L=="("?D(z(")"),qe,fe(")"),ne,lt):L=="operator"||L=="spread"?D(xe?_e:le):L=="["?D(z("]"),Pt,ne,lt):L=="{"?cr(vr,"}",null,lt):L=="quasi"?J(Je,lt):L=="new"?D(ae(xe)):D()}function qe(L){return L.match(/[;\}\)\],]/)?J():J(le)}function Xe(L,K){return L==","?D(qe):tt(L,K,!1)}function tt(L,K,xe){var Ie=xe==!1?Xe:tt,lt=xe==!1?le:_e;if(L=="=>")return D(re,xe?ht:Lt,ee);if(L=="operator")return/\+\+|--/.test(K)||g&&K=="!"?D(Ie):g&&K=="<"&&X.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?D(z(">"),Mt(rt,">"),ne,Ie):K=="?"?D(le,fe(":"),lt):D(lt);if(L=="quasi")return J(Je,Ie);if(L!=";"){if(L=="(")return cr(_e,")","call",Ie);if(L==".")return D(tr,Ie);if(L=="[")return D(z("]"),qe,fe("]"),ne,Ie);if(g&&K=="as")return X.marked="keyword",D(rt,Ie);if(L=="regexp")return X.state.lastType=X.marked="operator",X.stream.backUp(X.stream.pos-X.stream.start-1),D(lt)}}function Je(L,K){return L!="quasi"?J():K.slice(K.length-2)!="${"?D(Je):D(qe,dt)}function dt(L){if(L=="}")return X.marked="string-2",X.state.tokenize=R,D(Je)}function Lt(L){return $(X.stream,X.state),J(L=="{"?ye:le)}function ht(L){return $(X.stream,X.state),J(L=="{"?ye:_e)}function ae(L){return function(K){return K=="."?D(L?me:Ee):K=="variable"&&g?D(Vt,L?tt:Xe):J(L?_e:le)}}function Ee(L,K){if(K=="target")return X.marked="keyword",D(Xe)}function me(L,K){if(K=="target")return X.marked="keyword",D(tt)}function ct(L){return L==":"?D(ne,ye):J(Xe,fe(";"),ne)}function tr(L){if(L=="variable")return X.marked="property",D()}function vr(L,K){if(L=="async")return X.marked="property",D(vr);if(L=="variable"||X.style=="keyword"){if(X.marked="property",K=="get"||K=="set")return D(Vn);var xe;return g&&X.state.fatArrowAt==X.stream.start&&(xe=X.stream.match(/^\s*:\s*/,!1))&&(X.state.fatArrowAt=X.stream.pos+xe[0].length),D(ur)}else{if(L=="number"||L=="string")return X.marked=u?"property":X.style+" property",D(ur);if(L=="jsonld-keyword")return D(ur);if(g&&de(K))return X.marked="keyword",D(vr);if(L=="[")return D(le,mr,fe("]"),ur);if(L=="spread")return D(_e,ur);if(K=="*")return X.marked="keyword",D(vr);if(L==":")return J(ur)}}function Vn(L){return L!="variable"?J(ur):(X.marked="property",D(Yr))}function ur(L){if(L==":")return D(_e);if(L=="(")return J(Yr)}function Mt(L,K,xe){function Ie(lt,kt){if(xe?xe.indexOf(lt)>-1:lt==","){var We=X.state.lexical;return We.info=="call"&&(We.pos=(We.pos||0)+1),D(function($r,Pn){return $r==K||Pn==K?J():J(L)},Ie)}return lt==K||kt==K?D():xe&&xe.indexOf(";")>-1?J(L):D(fe(K))}return function(lt,kt){return lt==K||kt==K?D():J(L,Ie)}}function cr(L,K,xe){for(var Ie=3;Ie<arguments.length;Ie++)X.cc.push(arguments[Ie]);return D(z(K,xe),Mt(L,K),ne)}function Ht(L){return L=="}"?D():J(ye,Ht)}function mr(L,K){if(g){if(L==":")return D(rt);if(K=="?")return D(mr)}}function Qe(L,K){if(g&&(L==":"||K=="in"))return D(rt)}function Kr(L){if(g&&L==":")return X.stream.match(/^\s*\w+\s+is\b/,!1)?D(le,Bt,rt):D(rt)}function Bt(L,K){if(K=="is")return X.marked="keyword",D()}function rt(L,K){if(K=="keyof"||K=="typeof"||K=="infer"||K=="readonly")return X.marked="keyword",D(K=="typeof"?_e:rt);if(L=="variable"||K=="void")return X.marked="type",D(Ze);if(K=="|"||K=="&")return D(rt);if(L=="string"||L=="number"||L=="atom")return D(Ze);if(L=="[")return D(z("]"),Mt(rt,"]",","),ne,Ze);if(L=="{")return D(z("}"),Oe,ne,Ze);if(L=="(")return D(Mt(Ve,")"),Y,Ze);if(L=="<")return D(Mt(rt,">"),rt);if(L=="quasi")return J(Ke,Ze)}function Y(L){if(L=="=>")return D(rt)}function Oe(L){return L.match(/[\}\)\]]/)?D():L==","||L==";"?D(Oe):J(Pe,Oe)}function Pe(L,K){if(L=="variable"||X.style=="keyword")return X.marked="property",D(Pe);if(K=="?"||L=="number"||L=="string")return D(Pe);if(L==":")return D(rt);if(L=="[")return D(fe("variable"),Qe,fe("]"),Pe);if(L=="(")return J(Fr,Pe);if(!L.match(/[;\}\)\],]/))return D()}function Ke(L,K){return L!="quasi"?J():K.slice(K.length-2)!="${"?D(Ke):D(rt,$e)}function $e(L){if(L=="}")return X.marked="string-2",X.state.tokenize=R,D(Ke)}function Ve(L,K){return L=="variable"&&X.stream.match(/^\s*[?:]/,!1)||K=="?"?D(Ve):L==":"?D(rt):L=="spread"?D(Ve):J(rt)}function Ze(L,K){if(K=="<")return D(z(">"),Mt(rt,">"),ne,Ze);if(K=="|"||L=="."||K=="&")return D(rt);if(L=="[")return D(rt,fe("]"),Ze);if(K=="extends"||K=="implements")return X.marked="keyword",D(rt);if(K=="?")return D(rt,fe(":"),rt)}function Vt(L,K){if(K=="<")return D(z(">"),Mt(rt,">"),ne,Ze)}function _t(){return J(rt,br)}function br(L,K){if(K=="=")return D(rt)}function Kt(L,K){return K=="enum"?(X.marked="keyword",D(jn)):J(hr,mr,mn,Ls)}function hr(L,K){if(g&&de(K))return X.marked="keyword",D(hr);if(L=="variable")return W(K),D();if(L=="spread")return D(hr);if(L=="[")return cr(Os,"]");if(L=="{")return cr(ci,"}")}function ci(L,K){return L=="variable"&&!X.stream.match(/^\s*:/,!1)?(W(K),D(mn)):(L=="variable"&&(X.marked="property"),L=="spread"?D(hr):L=="}"?J():L=="["?D(le,fe("]"),fe(":"),ci):D(fe(":"),hr,mn))}function Os(){return J(hr,mn)}function mn(L,K){if(K=="=")return D(_e)}function Ls(L){if(L==",")return D(Kt)}function fi(L,K){if(L=="keyword b"&&K=="else")return D(z("form","else"),ye,ne)}function hi(L,K){if(K=="await")return D(hi);if(L=="(")return D(z(")"),Ms,ne)}function Ms(L){return L=="var"?D(Kt,Bn):L=="variable"?D(Bn):J(Bn)}function Bn(L,K){return L==")"?D():L==";"?D(Bn):K=="in"||K=="of"?(X.marked="keyword",D(le,Bn)):J(le,Bn)}function Yr(L,K){if(K=="*")return X.marked="keyword",D(Yr);if(L=="variable")return W(K),D(Yr);if(L=="(")return D(re,z(")"),Mt(Cn,")"),ne,Kr,ye,ee);if(g&&K=="<")return D(z(">"),Mt(_t,">"),ne,Yr)}function Fr(L,K){if(K=="*")return X.marked="keyword",D(Fr);if(L=="variable")return W(K),D(Fr);if(L=="(")return D(re,z(")"),Mt(Cn,")"),ne,Kr,ee);if(g&&K=="<")return D(z(">"),Mt(_t,">"),ne,Fr)}function pi(L,K){if(L=="keyword"||L=="variable")return X.marked="type",D(pi);if(K=="<")return D(z(">"),Mt(_t,">"),ne)}function Cn(L,K){return K=="@"&&D(le,Cn),L=="spread"?D(Cn):g&&de(K)?(X.marked="keyword",D(Cn)):g&&L=="this"?D(mr,mn):J(hr,mr,mn)}function cs(L,K){return L=="variable"?fs(L,K):sn(L,K)}function fs(L,K){if(L=="variable")return W(K),D(sn)}function sn(L,K){if(K=="<")return D(z(">"),Mt(_t,">"),ne,sn);if(K=="extends"||K=="implements"||g&&L==",")return K=="implements"&&(X.marked="keyword"),D(g?rt:le,sn);if(L=="{")return D(z("}"),an,ne)}function an(L,K){if(L=="async"||L=="variable"&&(K=="static"||K=="get"||K=="set"||g&&de(K))&&X.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return X.marked="keyword",D(an);if(L=="variable"||X.style=="keyword")return X.marked="property",D(Br,an);if(L=="number"||L=="string")return D(Br,an);if(L=="[")return D(le,mr,fe("]"),Br,an);if(K=="*")return X.marked="keyword",D(an);if(g&&L=="(")return J(Fr,an);if(L==";"||L==",")return D(an);if(L=="}")return D();if(K=="@")return D(le,an)}function Br(L,K){if(K=="!"||K=="?")return D(Br);if(L==":")return D(rt,mn);if(K=="=")return D(_e);var xe=X.state.lexical.prev,Ie=xe&&xe.info=="interface";return J(Ie?Fr:Yr)}function Ds(L,K){return K=="*"?(X.marked="keyword",D(Jr,fe(";"))):K=="default"?(X.marked="keyword",D(le,fe(";"))):L=="{"?D(Mt(Gi,"}"),Jr,fe(";")):J(ye)}function Gi(L,K){if(K=="as")return X.marked="keyword",D(fe("variable"));if(L=="variable")return J(_e,Gi)}function Jt(L){return L=="string"?D():L=="("?J(le):L=="."?J(Xe):J(Ye,$n,Jr)}function Ye(L,K){return L=="{"?cr(Ye,"}"):(L=="variable"&&W(K),K=="*"&&(X.marked="keyword"),D(Ki))}function $n(L){if(L==",")return D(Ye,$n)}function Ki(L,K){if(K=="as")return X.marked="keyword",D(Ye)}function Jr(L,K){if(K=="from")return X.marked="keyword",D(le)}function Pt(L){return L=="]"?D():J(Mt(_e,"]"))}function jn(){return J(z("form"),hr,fe("{"),z("}"),Mt(Rs,"}"),ne,ne)}function Rs(){return J(hr,mn)}function Yi(L,K){return L.lastType=="operator"||L.lastType==","||x.test(K.charAt(0))||/[,.]/.test(K.charAt(0))}function Ae(L,K,xe){return K.tokenize==I&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(K.lastType)||K.lastType=="quasi"&&/\{\s*$/.test(L.string.slice(0,L.pos-(xe||0)))}return{startState:function(L){var K={tokenize:I,lastType:"sof",cc:[],lexical:new F((L||0)-a,0,"block",!1),localVars:s.localVars,context:s.localVars&&new he(null,null,!1),indented:L||0};return s.globalVars&&typeof s.globalVars=="object"&&(K.globalVars=s.globalVars),K},token:function(L,K){if(L.sol()&&(K.lexical.hasOwnProperty("align")||(K.lexical.align=!1),K.indented=L.indentation(),$(L,K)),K.tokenize!=O&&L.eatSpace())return null;var xe=K.tokenize(L,K);return C=="comment"?xe:(K.lastType=C=="operator"&&(_=="++"||_=="--")?"incdec":C,V(K,xe,C,_,L))},indent:function(L,K){if(L.tokenize==O||L.tokenize==R)return t.Pass;if(L.tokenize!=I)return 0;var xe=K&&K.charAt(0),Ie=L.lexical,lt;if(!/^\s*else\b/.test(K))for(var kt=L.cc.length-1;kt>=0;--kt){var We=L.cc[kt];if(We==ne)Ie=Ie.prev;else if(We!=fi&&We!=ee)break}for(;(Ie.type=="stat"||Ie.type=="form")&&(xe=="}"||(lt=L.cc[L.cc.length-1])&&(lt==Xe||lt==tt)&&!/^[,\.=+\-*:?[\(]/.test(K));)Ie=Ie.prev;l&&Ie.type==")"&&Ie.prev.type=="stat"&&(Ie=Ie.prev);var $r=Ie.type,Pn=xe==$r;return $r=="vardef"?Ie.indented+(L.lastType=="operator"||L.lastType==","?Ie.info.length+1:0):$r=="form"&&xe=="{"?Ie.indented:$r=="form"?Ie.indented+a:$r=="stat"?Ie.indented+(Yi(L,K)?l||a:0):Ie.info=="switch"&&!Pn&&s.doubleIndentSwitch!=!1?Ie.indented+(/^(?:case|default)\b/.test(K)?a:2*a):Ie.align?Ie.column+(Pn?0:1):Ie.indented+(Pn?0:a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:c?null:"/*",blockCommentEnd:c?null:"*/",blockCommentContinue:c?null:" * ",lineComment:c?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:c?"json":"javascript",jsonldMode:u,jsonMode:c,expressionAllowed:Ae,skipExpression:function(L){V(L,"atom","atom","true",new t.StringStream("",2,null))}}}),t.registerHelper("wordChars","javascript",/[\w$]/),t.defineMIME("text/javascript","javascript"),t.defineMIME("text/ecmascript","javascript"),t.defineMIME("application/javascript","javascript"),t.defineMIME("application/x-javascript","javascript"),t.defineMIME("application/ecmascript","javascript"),t.defineMIME("application/json",{name:"javascript",json:!0}),t.defineMIME("application/x-json",{name:"javascript",json:!0}),t.defineMIME("application/manifest+json",{name:"javascript",json:!0}),t.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),t.defineMIME("text/typescript",{name:"javascript",typescript:!0}),t.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),Yb.exports}VT();var Xb={exports:{}},Qb;function GT(){return Qb||(Qb=1,function(r,e){(function(t){t(An())})(function(t){t.defineMode("css",function(F,H){var V=H.inline;H.propertyKeywords||(H=t.resolveMode("text/css"));var X=F.indentUnit,J=H.tokenHooks,D=H.documentTypes||{},ce=H.mediaTypes||{},W=H.mediaFeatures||{},Z=H.mediaValueKeywords||{},de=H.propertyKeywords||{},he=H.nonStandardPropertyKeywords||{},oe=H.fontProperties||{},we=H.counterDescriptors||{},re=H.colorKeywords||{},ge=H.valueKeywords||{},ee=H.allowNested,z=H.lineComment,ne=H.supportsAtComponent===!0,fe=F.highlightNonStandardPropertyKeywords!==!1,ye,pe;function le(ae,Ee){return ye=Ee,ae}function _e(ae,Ee){var me=ae.next();if(J[me]){var ct=J[me](ae,Ee);if(ct!==!1)return ct}if(me=="@")return ae.eatWhile(/[\w\\\-]/),le("def",ae.current());if(me=="="||(me=="~"||me=="|")&&ae.eat("="))return le(null,"compare");if(me=='"'||me=="'")return Ee.tokenize=De(me),Ee.tokenize(ae,Ee);if(me=="#")return ae.eatWhile(/[\w\\\-]/),le("atom","hash");if(me=="!")return ae.match(/^\s*\w*/),le("keyword","important");if(/\d/.test(me)||me=="."&&ae.eat(/\d/))return ae.eatWhile(/[\w.%]/),le("number","unit");if(me==="-"){if(/[\d.]/.test(ae.peek()))return ae.eatWhile(/[\w.%]/),le("number","unit");if(ae.match(/^-[\w\\\-]*/))return ae.eatWhile(/[\w\\\-]/),ae.match(/^\s*:/,!1)?le("variable-2","variable-definition"):le("variable-2","variable");if(ae.match(/^\w+-/))return le("meta","meta")}else return/[,+>*\/]/.test(me)?le(null,"select-op"):me=="."&&ae.match(/^-?[_a-z][_a-z0-9-]*/i)?le("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(me)?le(null,me):ae.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(ae.current())&&(Ee.tokenize=Ue),le("variable callee","variable")):/[\w\\\-]/.test(me)?(ae.eatWhile(/[\w\\\-]/),le("property","word")):le(null,null)}function De(ae){return function(Ee,me){for(var ct=!1,tr;(tr=Ee.next())!=null;){if(tr==ae&&!ct){ae==")"&&Ee.backUp(1);break}ct=!ct&&tr=="\\"}return(tr==ae||!ct&&ae!=")")&&(me.tokenize=null),le("string","string")}}function Ue(ae,Ee){return ae.next(),ae.match(/^\s*[\"\')]/,!1)?Ee.tokenize=null:Ee.tokenize=De(")"),le(null,"(")}function qe(ae,Ee,me){this.type=ae,this.indent=Ee,this.prev=me}function Xe(ae,Ee,me,ct){return ae.context=new qe(me,Ee.indentation()+(ct===!1?0:X),ae.context),me}function tt(ae){return ae.context.prev&&(ae.context=ae.context.prev),ae.context.type}function Je(ae,Ee,me){return ht[me.context.type](ae,Ee,me)}function dt(ae,Ee,me,ct){for(var tr=ct||1;tr>0;tr--)me.context=me.context.prev;return Je(ae,Ee,me)}function Lt(ae){var Ee=ae.current().toLowerCase();ge.hasOwnProperty(Ee)?pe="atom":re.hasOwnProperty(Ee)?pe="keyword":pe="variable"}var ht={};return ht.top=function(ae,Ee,me){if(ae=="{")return Xe(me,Ee,"block");if(ae=="}"&&me.context.prev)return tt(me);if(ne&&/@component/i.test(ae))return Xe(me,Ee,"atComponentBlock");if(/^@(-moz-)?document$/i.test(ae))return Xe(me,Ee,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(ae))return Xe(me,Ee,"atBlock");if(/^@(font-face|counter-style)/i.test(ae))return me.stateArg=ae,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(ae))return"keyframes";if(ae&&ae.charAt(0)=="@")return Xe(me,Ee,"at");if(ae=="hash")pe="builtin";else if(ae=="word")pe="tag";else{if(ae=="variable-definition")return"maybeprop";if(ae=="interpolation")return Xe(me,Ee,"interpolation");if(ae==":")return"pseudo";if(ee&&ae=="(")return Xe(me,Ee,"parens")}return me.context.type},ht.block=function(ae,Ee,me){if(ae=="word"){var ct=Ee.current().toLowerCase();return de.hasOwnProperty(ct)?(pe="property","maybeprop"):he.hasOwnProperty(ct)?(pe=fe?"string-2":"property","maybeprop"):ee?(pe=Ee.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(pe+=" error","maybeprop")}else return ae=="meta"?"block":!ee&&(ae=="hash"||ae=="qualifier")?(pe="error","block"):ht.top(ae,Ee,me)},ht.maybeprop=function(ae,Ee,me){return ae==":"?Xe(me,Ee,"prop"):Je(ae,Ee,me)},ht.prop=function(ae,Ee,me){if(ae==";")return tt(me);if(ae=="{"&&ee)return Xe(me,Ee,"propBlock");if(ae=="}"||ae=="{")return dt(ae,Ee,me);if(ae=="(")return Xe(me,Ee,"parens");if(ae=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(Ee.current()))pe+=" error";else if(ae=="word")Lt(Ee);else if(ae=="interpolation")return Xe(me,Ee,"interpolation");return"prop"},ht.propBlock=function(ae,Ee,me){return ae=="}"?tt(me):ae=="word"?(pe="property","maybeprop"):me.context.type},ht.parens=function(ae,Ee,me){return ae=="{"||ae=="}"?dt(ae,Ee,me):ae==")"?tt(me):ae=="("?Xe(me,Ee,"parens"):ae=="interpolation"?Xe(me,Ee,"interpolation"):(ae=="word"&&Lt(Ee),"parens")},ht.pseudo=function(ae,Ee,me){return ae=="meta"?"pseudo":ae=="word"?(pe="variable-3",me.context.type):Je(ae,Ee,me)},ht.documentTypes=function(ae,Ee,me){return ae=="word"&&D.hasOwnProperty(Ee.current())?(pe="tag",me.context.type):ht.atBlock(ae,Ee,me)},ht.atBlock=function(ae,Ee,me){if(ae=="(")return Xe(me,Ee,"atBlock_parens");if(ae=="}"||ae==";")return dt(ae,Ee,me);if(ae=="{")return tt(me)&&Xe(me,Ee,ee?"block":"top");if(ae=="interpolation")return Xe(me,Ee,"interpolation");if(ae=="word"){var ct=Ee.current().toLowerCase();ct=="only"||ct=="not"||ct=="and"||ct=="or"?pe="keyword":ce.hasOwnProperty(ct)?pe="attribute":W.hasOwnProperty(ct)?pe="property":Z.hasOwnProperty(ct)?pe="keyword":de.hasOwnProperty(ct)?pe="property":he.hasOwnProperty(ct)?pe=fe?"string-2":"property":ge.hasOwnProperty(ct)?pe="atom":re.hasOwnProperty(ct)?pe="keyword":pe="error"}return me.context.type},ht.atComponentBlock=function(ae,Ee,me){return ae=="}"?dt(ae,Ee,me):ae=="{"?tt(me)&&Xe(me,Ee,ee?"block":"top",!1):(ae=="word"&&(pe="error"),me.context.type)},ht.atBlock_parens=function(ae,Ee,me){return ae==")"?tt(me):ae=="{"||ae=="}"?dt(ae,Ee,me,2):ht.atBlock(ae,Ee,me)},ht.restricted_atBlock_before=function(ae,Ee,me){return ae=="{"?Xe(me,Ee,"restricted_atBlock"):ae=="word"&&me.stateArg=="@counter-style"?(pe="variable","restricted_atBlock_before"):Je(ae,Ee,me)},ht.restricted_atBlock=function(ae,Ee,me){return ae=="}"?(me.stateArg=null,tt(me)):ae=="word"?(me.stateArg=="@font-face"&&!oe.hasOwnProperty(Ee.current().toLowerCase())||me.stateArg=="@counter-style"&&!we.hasOwnProperty(Ee.current().toLowerCase())?pe="error":pe="property","maybeprop"):"restricted_atBlock"},ht.keyframes=function(ae,Ee,me){return ae=="word"?(pe="variable","keyframes"):ae=="{"?Xe(me,Ee,"top"):Je(ae,Ee,me)},ht.at=function(ae,Ee,me){return ae==";"?tt(me):ae=="{"||ae=="}"?dt(ae,Ee,me):(ae=="word"?pe="tag":ae=="hash"&&(pe="builtin"),"at")},ht.interpolation=function(ae,Ee,me){return ae=="}"?tt(me):ae=="{"||ae==";"?dt(ae,Ee,me):(ae=="word"?pe="variable":ae!="variable"&&ae!="("&&ae!=")"&&(pe="error"),"interpolation")},{startState:function(ae){return{tokenize:null,state:V?"block":"top",stateArg:null,context:new qe(V?"block":"top",ae||0,null)}},token:function(ae,Ee){if(!Ee.tokenize&&ae.eatSpace())return null;var me=(Ee.tokenize||_e)(ae,Ee);return me&&typeof me=="object"&&(ye=me[1],me=me[0]),pe=me,ye!="comment"&&(Ee.state=ht[Ee.state](ye,ae,Ee)),pe},indent:function(ae,Ee){var me=ae.context,ct=Ee&&Ee.charAt(0),tr=me.indent;return me.type=="prop"&&(ct=="}"||ct==")")&&(me=me.prev),me.prev&&(ct=="}"&&(me.type=="block"||me.type=="top"||me.type=="interpolation"||me.type=="restricted_atBlock")?(me=me.prev,tr=me.indent):(ct==")"&&(me.type=="parens"||me.type=="atBlock_parens")||ct=="{"&&(me.type=="at"||me.type=="atBlock"))&&(tr=Math.max(0,me.indent-X))),tr},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:z,fold:"brace"}});function n(F){for(var H={},V=0;V<F.length;++V)H[F[V].toLowerCase()]=!0;return H}var s=["domain","regexp","url","url-prefix"],a=n(s),l=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],u=n(l),c=["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","dynamic-range","video-dynamic-range"],m=n(c),g=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],v=n(g),b=["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-content","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"],x=n(b),E=["accent-color","aspect-ratio","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","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","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"],S=n(E),C=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],_=n(C),A=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],I=n(A),M=["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","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","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","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","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","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],O=n(M),R=["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","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","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","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","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","drop-shadow","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","grayscale","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","hue-rotate","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","repeating-conic-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","saturate","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","sepia","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"],j=n(R),$=s.concat(l).concat(c).concat(g).concat(b).concat(E).concat(M).concat(R);t.registerHelper("hintWords","css",$);function B(F,H){for(var V=!1,X;(X=F.next())!=null;){if(V&&X=="/"){H.tokenize=null;break}V=X=="*"}return["comment","comment"]}t.defineMIME("text/css",{documentTypes:a,mediaTypes:u,mediaFeatures:m,mediaValueKeywords:v,propertyKeywords:x,nonStandardPropertyKeywords:S,fontProperties:_,counterDescriptors:I,colorKeywords:O,valueKeywords:j,tokenHooks:{"/":function(F,H){return F.eat("*")?(H.tokenize=B,B(F,H)):!1}},name:"css"}),t.defineMIME("text/x-scss",{mediaTypes:u,mediaFeatures:m,mediaValueKeywords:v,propertyKeywords:x,nonStandardPropertyKeywords:S,colorKeywords:O,valueKeywords:j,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(F,H){return F.eat("/")?(F.skipToEnd(),["comment","comment"]):F.eat("*")?(H.tokenize=B,B(F,H)):["operator","operator"]},":":function(F){return F.match(/^\s*\{/,!1)?[null,null]:!1},$:function(F){return F.match(/^[\w-]+/),F.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(F){return F.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),t.defineMIME("text/x-less",{mediaTypes:u,mediaFeatures:m,mediaValueKeywords:v,propertyKeywords:x,nonStandardPropertyKeywords:S,colorKeywords:O,valueKeywords:j,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(F,H){return F.eat("/")?(F.skipToEnd(),["comment","comment"]):F.eat("*")?(H.tokenize=B,B(F,H)):["operator","operator"]},"@":function(F){return F.eat("{")?[null,"interpolation"]:F.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(F.eatWhile(/[\w\\\-]/),F.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),t.defineMIME("text/x-gss",{documentTypes:a,mediaTypes:u,mediaFeatures:m,propertyKeywords:x,nonStandardPropertyKeywords:S,fontProperties:_,counterDescriptors:I,colorKeywords:O,valueKeywords:j,supportsAtComponent:!0,tokenHooks:{"/":function(F,H){return F.eat("*")?(H.tokenize=B,B(F,H)):!1}},name:"css",helperType:"gss"})})}()),Xb.exports}GT();var Zb={exports:{}},ew;function L3(){return ew||(ew=1,function(r,e){(function(t){t(An())})(function(t){var n={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},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",function(a,l){var u=a.indentUnit,c={},m=l.htmlMode?n:s;for(var g in m)c[g]=m[g];for(var g in l)c[g]=l[g];var v,b;function x(D,ce){function W(he){return ce.tokenize=he,he(D,ce)}var Z=D.next();if(Z=="<")return D.eat("!")?D.eat("[")?D.match("CDATA[")?W(C("atom","]]>")):null:D.match("--")?W(C("comment","-->")):D.match("DOCTYPE",!0,!0)?(D.eatWhile(/[\w\._\-]/),W(_(1))):null:D.eat("?")?(D.eatWhile(/[\w\._\-]/),ce.tokenize=C("meta","?>"),"meta"):(v=D.eat("/")?"closeTag":"openTag",ce.tokenize=E,"tag bracket");if(Z=="&"){var de;return D.eat("#")?D.eat("x")?de=D.eatWhile(/[a-fA-F\d]/)&&D.eat(";"):de=D.eatWhile(/[\d]/)&&D.eat(";"):de=D.eatWhile(/[\w\.\-:]/)&&D.eat(";"),de?"atom":"error"}else return D.eatWhile(/[^&<]/),null}x.isInText=!0;function E(D,ce){var W=D.next();if(W==">"||W=="/"&&D.eat(">"))return ce.tokenize=x,v=W==">"?"endTag":"selfcloseTag","tag bracket";if(W=="=")return v="equals",null;if(W=="<"){ce.tokenize=x,ce.state=R,ce.tagName=ce.tagStart=null;var Z=ce.tokenize(D,ce);return Z?Z+" tag error":"tag error"}else return/[\'\"]/.test(W)?(ce.tokenize=S(W),ce.stringStartCol=D.column(),ce.tokenize(D,ce)):(D.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function S(D){var ce=function(W,Z){for(;!W.eol();)if(W.next()==D){Z.tokenize=E;break}return"string"};return ce.isInAttribute=!0,ce}function C(D,ce){return function(W,Z){for(;!W.eol();){if(W.match(ce)){Z.tokenize=x;break}W.next()}return D}}function _(D){return function(ce,W){for(var Z;(Z=ce.next())!=null;){if(Z=="<")return W.tokenize=_(D+1),W.tokenize(ce,W);if(Z==">")if(D==1){W.tokenize=x;break}else return W.tokenize=_(D-1),W.tokenize(ce,W)}return"meta"}}function A(D){return D&&D.toLowerCase()}function I(D,ce,W){this.prev=D.context,this.tagName=ce||"",this.indent=D.indented,this.startOfLine=W,(c.doNotIndent.hasOwnProperty(ce)||D.context&&D.context.noIndent)&&(this.noIndent=!0)}function M(D){D.context&&(D.context=D.context.prev)}function O(D,ce){for(var W;;){if(!D.context||(W=D.context.tagName,!c.contextGrabbers.hasOwnProperty(A(W))||!c.contextGrabbers[A(W)].hasOwnProperty(A(ce))))return;M(D)}}function R(D,ce,W){return D=="openTag"?(W.tagStart=ce.column(),j):D=="closeTag"?$:R}function j(D,ce,W){return D=="word"?(W.tagName=ce.current(),b="tag",H):c.allowMissingTagName&&D=="endTag"?(b="tag bracket",H(D,ce,W)):(b="error",j)}function $(D,ce,W){if(D=="word"){var Z=ce.current();return W.context&&W.context.tagName!=Z&&c.implicitlyClosed.hasOwnProperty(A(W.context.tagName))&&M(W),W.context&&W.context.tagName==Z||c.matchClosing===!1?(b="tag",B):(b="tag error",F)}else return c.allowMissingTagName&&D=="endTag"?(b="tag bracket",B(D,ce,W)):(b="error",F)}function B(D,ce,W){return D!="endTag"?(b="error",B):(M(W),R)}function F(D,ce,W){return b="error",B(D,ce,W)}function H(D,ce,W){if(D=="word")return b="attribute",V;if(D=="endTag"||D=="selfcloseTag"){var Z=W.tagName,de=W.tagStart;return W.tagName=W.tagStart=null,D=="selfcloseTag"||c.autoSelfClosers.hasOwnProperty(A(Z))?O(W,Z):(O(W,Z),W.context=new I(W,Z,de==W.indented)),R}return b="error",H}function V(D,ce,W){return D=="equals"?X:(c.allowMissing||(b="error"),H(D,ce,W))}function X(D,ce,W){return D=="string"?J:D=="word"&&c.allowUnquoted?(b="string",H):(b="error",H(D,ce,W))}function J(D,ce,W){return D=="string"?J:H(D,ce,W)}return{startState:function(D){var ce={tokenize:x,state:R,indented:D||0,tagName:null,tagStart:null,context:null};return D!=null&&(ce.baseIndent=D),ce},token:function(D,ce){if(!ce.tagName&&D.sol()&&(ce.indented=D.indentation()),D.eatSpace())return null;v=null;var W=ce.tokenize(D,ce);return(W||v)&&W!="comment"&&(b=null,ce.state=ce.state(v||W,D,ce),b&&(W=b=="error"?W+" error":b)),W},indent:function(D,ce,W){var Z=D.context;if(D.tokenize.isInAttribute)return D.tagStart==D.indented?D.stringStartCol+1:D.indented+u;if(Z&&Z.noIndent)return t.Pass;if(D.tokenize!=E&&D.tokenize!=x)return W?W.match(/^(\s*)/)[0].length:0;if(D.tagName)return c.multilineTagIndentPastTag!==!1?D.tagStart+D.tagName.length+2:D.tagStart+u*(c.multilineTagIndentFactor||1);if(c.alignCDATA&&/<!\[CDATA\[/.test(ce))return 0;var de=ce&&/^<(\/)?([\w_:\.-]*)/.exec(ce);if(de&&de[1])for(;Z;)if(Z.tagName==de[2]){Z=Z.prev;break}else if(c.implicitlyClosed.hasOwnProperty(A(Z.tagName)))Z=Z.prev;else break;else if(de)for(;Z;){var he=c.contextGrabbers[A(Z.tagName)];if(he&&he.hasOwnProperty(A(de[2])))Z=Z.prev;else break}for(;Z&&Z.prev&&!Z.startOfLine;)Z=Z.prev;return Z?Z.indent+u:D.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:c.htmlMode?"html":"xml",helperType:c.htmlMode?"html":"xml",skipAttribute:function(D){D.state==X&&(D.state=H)},xmlCurrentTag:function(D){return D.tagName?{name:D.tagName,close:D.type=="closeTag"}:null},xmlCurrentContext:function(D){for(var ce=[],W=D.context;W;W=W.prev)ce.push(W.tagName);return ce.reverse()}}}),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),Zb.exports}(function(r,e){(function(t){t(An(),L3(),VT(),GT())})(function(t){var n={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function s(v,b,x){var E=v.current(),S=E.search(b);return S>-1?v.backUp(E.length-S):E.match(/<\/?$/)&&(v.backUp(E.length),v.match(b,!1)||v.match(E)),x}var a={};function l(v){var b=a[v];return b||(a[v]=new RegExp("\\s+"+v+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function u(v,b){var x=v.match(l(b));return x?/^\s*(.*?)\s*$/.exec(x[2])[1]:""}function c(v,b){return new RegExp((b?"^":"")+"</\\s*"+v+"\\s*>","i")}function m(v,b){for(var x in v)for(var E=b[x]||(b[x]=[]),S=v[x],C=S.length-1;C>=0;C--)E.unshift(S[C])}function g(v,b){for(var x=0;x<v.length;x++){var E=v[x];if(!E[0]||E[1].test(u(b,E[0])))return E[2]}}t.defineMode("htmlmixed",function(v,b){var x=t.getMode(v,{name:"xml",htmlMode:!0,multilineTagIndentFactor:b.multilineTagIndentFactor,multilineTagIndentPastTag:b.multilineTagIndentPastTag,allowMissingTagName:b.allowMissingTagName}),E={},S=b&&b.tags,C=b&&b.scriptTypes;if(m(n,E),S&&m(S,E),C)for(var _=C.length-1;_>=0;_--)E.script.unshift(["type",C[_].matches,C[_].mode]);function A(I,M){var O=x.token(I,M.htmlState),R=/\btag\b/.test(O),j;if(R&&!/[<>\s\/]/.test(I.current())&&(j=M.htmlState.tagName&&M.htmlState.tagName.toLowerCase())&&E.hasOwnProperty(j))M.inTag=j+" ";else if(M.inTag&&R&&/>$/.test(I.current())){var $=/^([\S]+) (.*)/.exec(M.inTag);M.inTag=null;var B=I.current()==">"&&g(E[$[1]],$[2]),F=t.getMode(v,B),H=c($[1],!0),V=c($[1],!1);M.token=function(X,J){return X.match(H,!1)?(J.token=A,J.localState=J.localMode=null,null):s(X,V,J.localMode.token(X,J.localState))},M.localMode=F,M.localState=t.startState(F,x.indent(M.htmlState,"",""))}else M.inTag&&(M.inTag+=I.current(),I.eol()&&(M.inTag+=" "));return O}return{startState:function(){var I=t.startState(x);return{token:A,inTag:null,localMode:null,localState:null,htmlState:I}},copyState:function(I){var M;return I.localState&&(M=t.copyState(I.localMode,I.localState)),{token:I.token,inTag:I.inTag,localMode:I.localMode,localState:M,htmlState:t.copyState(x,I.htmlState)}},token:function(I,M){return M.token(I,M)},indent:function(I,M,O){return!I.localMode||/^\s*<\//.test(M)?x.indent(I.htmlState,M,O):I.localMode.indent?I.localMode.indent(I.localState,M,O):t.Pass},innerMode:function(I){return{state:I.localState||I.htmlState,mode:I.localMode||x}}}},"xml","javascript","css"),t.defineMIME("text/html","htmlmixed")})})();(function(r,e){(function(t){t(An())})(function(t){var n={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},s=t.Pos;t.defineOption("autoCloseBrackets",!1,function(_,A,I){I&&I!=t.Init&&(_.removeKeyMap(l),_.state.closeBrackets=null),A&&(u(a(A,"pairs")),_.state.closeBrackets=A,_.addKeyMap(l))});function a(_,A){return A=="pairs"&&typeof _=="string"?_:typeof _=="object"&&_[A]!=null?_[A]:n[A]}var l={Backspace:g,Enter:v};function u(_){for(var A=0;A<_.length;A++){var I=_.charAt(A),M="'"+I+"'";l[M]||(l[M]=c(I))}}u(n.pairs+"`");function c(_){return function(A){return E(A,_)}}function m(_){var A=_.state.closeBrackets;if(!A||A.override)return A;var I=_.getModeAt(_.getCursor());return I.closeBrackets||A}function g(_){var A=m(_);if(!A||_.getOption("disableInput"))return t.Pass;for(var I=a(A,"pairs"),M=_.listSelections(),O=0;O<M.length;O++){if(!M[O].empty())return t.Pass;var R=S(_,M[O].head);if(!R||I.indexOf(R)%2!=0)return t.Pass}for(var O=M.length-1;O>=0;O--){var j=M[O].head;_.replaceRange("",s(j.line,j.ch-1),s(j.line,j.ch+1),"+delete")}}function v(_){var A=m(_),I=A&&a(A,"explode");if(!I||_.getOption("disableInput"))return t.Pass;for(var M=_.listSelections(),O=0;O<M.length;O++){if(!M[O].empty())return t.Pass;var R=S(_,M[O].head);if(!R||I.indexOf(R)%2!=0)return t.Pass}_.operation(function(){var j=_.lineSeparator()||`
`;_.replaceSelection(j+j,null),b(_,-1),M=_.listSelections();for(var $=0;$<M.length;$++){var B=M[$].head.line;_.indentLine(B,null,!0),_.indentLine(B+1,null,!0)}})}function b(_,A){for(var I=[],M=_.listSelections(),O=0,R=0;R<M.length;R++){var j=M[R];j.head==_.getCursor()&&(O=R);var $=j.head.ch||A>0?{line:j.head.line,ch:j.head.ch+A}:{line:j.head.line-1};I.push({anchor:$,head:$})}_.setSelections(I,O)}function x(_){var A=t.cmpPos(_.anchor,_.head)>0;return{anchor:new s(_.anchor.line,_.anchor.ch+(A?-1:1)),head:new s(_.head.line,_.head.ch+(A?1:-1))}}function E(_,A){var I=m(_);if(!I||_.getOption("disableInput"))return t.Pass;var M=a(I,"pairs"),O=M.indexOf(A);if(O==-1)return t.Pass;for(var R=a(I,"closeBefore"),j=a(I,"triples"),$=M.charAt(O+1)==A,B=_.listSelections(),F=O%2==0,H,V=0;V<B.length;V++){var X=B[V],J=X.head,D,ce=_.getRange(J,s(J.line,J.ch+1));if(F&&!X.empty())D="surround";else if(($||!F)&&ce==A)$&&C(_,J)?D="both":j.indexOf(A)>=0&&_.getRange(J,s(J.line,J.ch+3))==A+A+A?D="skipThree":D="skip";else if($&&J.ch>1&&j.indexOf(A)>=0&&_.getRange(s(J.line,J.ch-2),J)==A+A){if(J.ch>2&&/\bstring/.test(_.getTokenTypeAt(s(J.line,J.ch-2))))return t.Pass;D="addFour"}else if($){var W=J.ch==0?" ":_.getRange(s(J.line,J.ch-1),J);if(!t.isWordChar(ce)&&W!=A&&!t.isWordChar(W))D="both";else return t.Pass}else if(F&&(ce.length===0||/\s/.test(ce)||R.indexOf(ce)>-1))D="both";else return t.Pass;if(!H)H=D;else if(H!=D)return t.Pass}var Z=O%2?M.charAt(O-1):A,de=O%2?A:M.charAt(O+1);_.operation(function(){if(H=="skip")b(_,1);else if(H=="skipThree")b(_,3);else if(H=="surround"){for(var he=_.getSelections(),oe=0;oe<he.length;oe++)he[oe]=Z+he[oe]+de;_.replaceSelections(he,"around"),he=_.listSelections().slice();for(var oe=0;oe<he.length;oe++)he[oe]=x(he[oe]);_.setSelections(he)}else H=="both"?(_.replaceSelection(Z+de,null),_.triggerElectric(Z+de),b(_,-1)):H=="addFour"&&(_.replaceSelection(Z+Z+Z+Z,"before"),b(_,1))})}function S(_,A){var I=_.getRange(s(A.line,A.ch-1),s(A.line,A.ch+1));return I.length==2?I:null}function C(_,A){var I=_.getTokenAt(s(A.line,A.ch+1));return/\bstring/.test(I.type)&&I.start==A.ch&&(A.ch==0||!/\bstring/.test(_.getTokenTypeAt(A)))}})})();var tw={exports:{}},rw;function M3(){return rw||(rw=1,function(r,e){(function(t){t(An())})(function(t){var n=t.Pos;function s(A,I){return A.line-I.line||A.ch-I.ch}var a="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",l=a+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",u=new RegExp("<(/?)(["+a+"]["+l+"]*)","g");function c(A,I,M,O){this.line=I,this.ch=M,this.cm=A,this.text=A.getLine(I),this.min=O?Math.max(O.from,A.firstLine()):A.firstLine(),this.max=O?Math.min(O.to-1,A.lastLine()):A.lastLine()}function m(A,I){var M=A.cm.getTokenTypeAt(n(A.line,I));return M&&/\btag\b/.test(M)}function g(A){if(!(A.line>=A.max))return A.ch=0,A.text=A.cm.getLine(++A.line),!0}function v(A){if(!(A.line<=A.min))return A.text=A.cm.getLine(--A.line),A.ch=A.text.length,!0}function b(A){for(;;){var I=A.text.indexOf(">",A.ch);if(I==-1){if(g(A))continue;return}if(!m(A,I+1)){A.ch=I+1;continue}var M=A.text.lastIndexOf("/",I),O=M>-1&&!/\S/.test(A.text.slice(M+1,I));return A.ch=I+1,O?"selfClose":"regular"}}function x(A){for(;;){var I=A.ch?A.text.lastIndexOf("<",A.ch-1):-1;if(I==-1){if(v(A))continue;return}if(!m(A,I+1)){A.ch=I;continue}u.lastIndex=I,A.ch=I;var M=u.exec(A.text);if(M&&M.index==I)return M}}function E(A){for(;;){u.lastIndex=A.ch;var I=u.exec(A.text);if(!I){if(g(A))continue;return}if(!m(A,I.index+1)){A.ch=I.index+1;continue}return A.ch=I.index+I[0].length,I}}function S(A){for(;;){var I=A.ch?A.text.lastIndexOf(">",A.ch-1):-1;if(I==-1){if(v(A))continue;return}if(!m(A,I+1)){A.ch=I;continue}var M=A.text.lastIndexOf("/",I),O=M>-1&&!/\S/.test(A.text.slice(M+1,I));return A.ch=I+1,O?"selfClose":"regular"}}function C(A,I){for(var M=[];;){var O=E(A),R,j=A.line,$=A.ch-(O?O[0].length:0);if(!O||!(R=b(A)))return;if(R!="selfClose")if(O[1]){for(var B=M.length-1;B>=0;--B)if(M[B]==O[2]){M.length=B;break}if(B<0&&(!I||I==O[2]))return{tag:O[2],from:n(j,$),to:n(A.line,A.ch)}}else M.push(O[2])}}function _(A,I){for(var M=[];;){var O=S(A);if(!O)return;if(O=="selfClose"){x(A);continue}var R=A.line,j=A.ch,$=x(A);if(!$)return;if($[1])M.push($[2]);else{for(var B=M.length-1;B>=0;--B)if(M[B]==$[2]){M.length=B;break}if(B<0&&(!I||I==$[2]))return{tag:$[2],from:n(A.line,A.ch),to:n(R,j)}}}}t.registerHelper("fold","xml",function(A,I){for(var M=new c(A,I.line,0);;){var O=E(M);if(!O||M.line!=I.line)return;var R=b(M);if(!R)return;if(!O[1]&&R!="selfClose"){var j=n(M.line,M.ch),$=C(M,O[2]);return $&&s($.from,j)>0?{from:j,to:$.from}:null}}}),t.findMatchingTag=function(A,I,M){var O=new c(A,I.line,I.ch,M);if(!(O.text.indexOf(">")==-1&&O.text.indexOf("<")==-1)){var R=b(O),j=R&&n(O.line,O.ch),$=R&&x(O);if(!(!R||!$||s(O,I)>0)){var B={from:n(O.line,O.ch),to:j,tag:$[2]};return R=="selfClose"?{open:B,close:null,at:"open"}:$[1]?{open:_(O,$[2]),close:B,at:"close"}:(O=new c(A,j.line,j.ch,M),{open:B,close:C(O,$[2]),at:"open"})}}},t.findEnclosingTag=function(A,I,M,O){for(var R=new c(A,I.line,I.ch,M);;){var j=_(R,O);if(!j)break;var $=new c(A,I.line,I.ch,M),B=C($,j.tag);if(B)return{open:j,close:B}}},t.scanForClosingTag=function(A,I,M,O){var R=new c(A,I.line,I.ch,O?{from:0,to:O}:null);return C(R,M)}})}()),tw.exports}(function(r,e){(function(t){t(An(),M3())})(function(t){t.defineOption("autoCloseTags",!1,function(g,v,b){if(b!=t.Init&&b&&g.removeKeyMap("autoCloseTags"),!!v){var x={name:"autoCloseTags"};(typeof v!="object"||v.whenClosing!==!1)&&(x["'/'"]=function(E){return u(E)}),(typeof v!="object"||v.whenOpening!==!1)&&(x["'>'"]=function(E){return a(E)}),g.addKeyMap(x)}});var n=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],s=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function a(g){if(g.getOption("disableInput"))return t.Pass;for(var v=g.listSelections(),b=[],x=g.getOption("autoCloseTags"),E=0;E<v.length;E++){if(!v[E].empty())return t.Pass;var S=v[E].head,C=g.getTokenAt(S),_=t.innerMode(g.getMode(),C.state),A=_.state,I=_.mode.xmlCurrentTag&&_.mode.xmlCurrentTag(A),M=I&&I.name;if(!M)return t.Pass;var O=_.mode.configuration=="html",R=typeof x=="object"&&x.dontCloseTags||O&&n,j=typeof x=="object"&&x.indentTags||O&&s;C.end>S.ch&&(M=M.slice(0,M.length-C.end+S.ch));var $=M.toLowerCase();if(!M||C.type=="string"&&(C.end!=S.ch||!/[\"\']/.test(C.string.charAt(C.string.length-1))||C.string.length==1)||C.type=="tag"&&I.close||C.string.indexOf("/")==S.ch-C.start-1||R&&c(R,$)>-1||m(g,_.mode.xmlCurrentContext&&_.mode.xmlCurrentContext(A)||[],M,S,!0))return t.Pass;var B=typeof x=="object"&&x.emptyTags;if(B&&c(B,M)>-1){b[E]={text:"/>",newPos:t.Pos(S.line,S.ch+2)};continue}var F=j&&c(j,$)>-1;b[E]={indent:F,text:">"+(F?`
`:"")+"</"+M+">",newPos:F?t.Pos(S.line+1,0):t.Pos(S.line,S.ch+1)}}for(var H=typeof x=="object"&&x.dontIndentOnAutoClose,E=v.length-1;E>=0;E--){var V=b[E];g.replaceRange(V.text,v[E].head,v[E].anchor,"+insert");var X=g.listSelections().slice(0);X[E]={head:V.newPos,anchor:V.newPos},g.setSelections(X),!H&&V.indent&&(g.indentLine(V.newPos.line,null,!0),g.indentLine(V.newPos.line+1,null,!0))}}function l(g,v){for(var b=g.listSelections(),x=[],E=v?"/":"</",S=g.getOption("autoCloseTags"),C=typeof S=="object"&&S.dontIndentOnSlash,_=0;_<b.length;_++){if(!b[_].empty())return t.Pass;var A=b[_].head,I=g.getTokenAt(A),M=t.innerMode(g.getMode(),I.state),O=M.state;if(v&&(I.type=="string"||I.string.charAt(0)!="<"||I.start!=A.ch-1))return t.Pass;var R,j=M.mode.name!="xml"&&g.getMode().name=="htmlmixed";if(j&&M.mode.name=="javascript")R=E+"script";else if(j&&M.mode.name=="css")R=E+"style";else{var $=M.mode.xmlCurrentContext&&M.mode.xmlCurrentContext(O),B=$.length?$[$.length-1]:"";if(!$||$.length&&m(g,$,B,A))return t.Pass;R=E+B}g.getLine(A.line).charAt(I.end)!=">"&&(R+=">"),x[_]=R}if(g.replaceSelections(x),b=g.listSelections(),!C)for(var _=0;_<b.length;_++)(_==b.length-1||b[_].head.line<b[_+1].head.line)&&g.indentLine(b[_].head.line)}function u(g){return g.getOption("disableInput")?t.Pass:l(g,!0)}t.commands.closeTag=function(g){return l(g)};function c(g,v){if(g.indexOf)return g.indexOf(v);for(var b=0,x=g.length;b<x;++b)if(g[b]==v)return b;return-1}function m(g,v,b,x,E){if(!t.scanForClosingTag)return!1;var S=Math.min(g.lastLine()+1,x.line+500),C=t.scanForClosingTag(g,x,null,S);if(!C||C.tag!=b)return!1;for(var _=E?1:0,A=v.length-1;A>=0&&v[A]==b;A--)++_;x=C.to;for(var A=1;A<_;A++){var I=t.scanForClosingTag(g,x,null,S);if(!I||I.tag!=b)return!1;x=I.to}return!0}})})();(function(r,e){(function(t){t(An())})(function(t){var n={},s=/[^\s\u00a0]/,a=t.Pos,l=t.cmpPos;function u(g){var v=g.search(s);return v==-1?0:v}t.commands.toggleComment=function(g){g.toggleComment()},t.defineExtension("toggleComment",function(g){g||(g=n);for(var v=this,b=1/0,x=this.listSelections(),E=null,S=x.length-1;S>=0;S--){var C=x[S].from(),_=x[S].to();C.line>=b||(_.line>=b&&(_=a(b,0)),b=C.line,E==null?v.uncomment(C,_,g)?E="un":(v.lineComment(C,_,g),E="line"):E=="un"?v.uncomment(C,_,g):v.lineComment(C,_,g))}});function c(g,v,b){return/\bstring\b/.test(g.getTokenTypeAt(a(v.line,0)))&&!/^[\'\"\`]/.test(b)}function m(g,v){var b=g.getMode();return b.useInnerComments===!1||!b.innerMode?b:g.getModeAt(v)}t.defineExtension("lineComment",function(g,v,b){b||(b=n);var x=this,E=m(x,g),S=x.getLine(g.line);if(!(S==null||c(x,g,S))){var C=b.lineComment||E.lineComment;if(!C){(b.blockCommentStart||E.blockCommentStart)&&(b.fullLines=!0,x.blockComment(g,v,b));return}var _=Math.min(v.ch!=0||v.line==g.line?v.line+1:v.line,x.lastLine()+1),A=b.padding==null?" ":b.padding,I=b.commentBlankLines||g.line==v.line;x.operation(function(){if(b.indent){for(var M=null,O=g.line;O<_;++O){var R=x.getLine(O),j=R.slice(0,u(R));(M==null||M.length>j.length)&&(M=j)}for(var O=g.line;O<_;++O){var R=x.getLine(O),$=M.length;!I&&!s.test(R)||(R.slice(0,$)!=M&&($=u(R)),x.replaceRange(M+C+A,a(O,0),a(O,$)))}}else for(var O=g.line;O<_;++O)(I||s.test(x.getLine(O)))&&x.replaceRange(C+A,a(O,0))})}}),t.defineExtension("blockComment",function(g,v,b){b||(b=n);var x=this,E=m(x,g),S=b.blockCommentStart||E.blockCommentStart,C=b.blockCommentEnd||E.blockCommentEnd;if(!S||!C){(b.lineComment||E.lineComment)&&b.fullLines!=!1&&x.lineComment(g,v,b);return}if(!/\bcomment\b/.test(x.getTokenTypeAt(a(g.line,0)))){var _=Math.min(v.line,x.lastLine());_!=g.line&&v.ch==0&&s.test(x.getLine(_))&&--_;var A=b.padding==null?" ":b.padding;g.line>_||x.operation(function(){if(b.fullLines!=!1){var I=s.test(x.getLine(_));x.replaceRange(A+C,a(_)),x.replaceRange(S+A,a(g.line,0));var M=b.blockCommentLead||E.blockCommentLead;if(M!=null)for(var O=g.line+1;O<=_;++O)(O!=_||I)&&x.replaceRange(M+A,a(O,0))}else{var R=l(x.getCursor("to"),v)==0,j=!x.somethingSelected();x.replaceRange(C,v),R&&x.setSelection(j?v:x.getCursor("from"),v),x.replaceRange(S,g)}})}}),t.defineExtension("uncomment",function(g,v,b){b||(b=n);var x=this,E=m(x,g),S=Math.min(v.ch!=0||v.line==g.line?v.line:v.line-1,x.lastLine()),C=Math.min(g.line,S),_=b.lineComment||E.lineComment,A=[],I=b.padding==null?" ":b.padding,M;e:{if(!_)break e;for(var O=C;O<=S;++O){var R=x.getLine(O),j=R.indexOf(_);if(j>-1&&!/comment/.test(x.getTokenTypeAt(a(O,j+1)))&&(j=-1),j==-1&&s.test(R)||j>-1&&s.test(R.slice(0,j)))break e;A.push(R)}if(x.operation(function(){for(var he=C;he<=S;++he){var oe=A[he-C],we=oe.indexOf(_),re=we+_.length;we<0||(oe.slice(re,re+I.length)==I&&(re+=I.length),M=!0,x.replaceRange("",a(he,we),a(he,re)))}}),M)return!0}var $=b.blockCommentStart||E.blockCommentStart,B=b.blockCommentEnd||E.blockCommentEnd;if(!$||!B)return!1;var F=b.blockCommentLead||E.blockCommentLead,H=x.getLine(C),V=H.indexOf($);if(V==-1)return!1;var X=S==C?H:x.getLine(S),J=X.indexOf(B,S==C?V+$.length:0),D=a(C,V+1),ce=a(S,J+1);if(J==-1||!/comment/.test(x.getTokenTypeAt(D))||!/comment/.test(x.getTokenTypeAt(ce))||x.getRange(D,ce,`
`).indexOf(B)>-1)return!1;var W=H.lastIndexOf($,g.ch),Z=W==-1?-1:H.slice(0,g.ch).indexOf(B,W+$.length);if(W!=-1&&Z!=-1&&Z+B.length!=g.ch)return!1;Z=X.indexOf(B,v.ch);var de=X.slice(v.ch).lastIndexOf($,Z-v.ch);return W=Z==-1||de==-1?-1:v.ch+de,Z!=-1&&W!=-1&&W!=v.ch?!1:(x.operation(function(){x.replaceRange("",a(S,J-(I&&X.slice(J-I.length,J)==I?I.length:0)),a(S,J+B.length));var he=V+$.length;if(I&&H.slice(he,he+I.length)==I&&(he+=I.length),x.replaceRange("",a(C,V),a(C,he)),F)for(var oe=C+1;oe<=S;++oe){var we=x.getLine(oe),re=we.indexOf(F);if(!(re==-1||s.test(we.slice(0,re)))){var ge=re+F.length;I&&we.slice(ge,ge+I.length)==I&&(ge+=I.length),x.replaceRange("",a(oe,re),a(oe,ge))}}}),!0)})})})();var D3={exports:{}};(function(r,e){(function(t){t(An())})(function(t){function n(u,c,m,g){if(m&&m.call){var v=m;m=null}else var v=l(u,m,"rangeFinder");typeof c=="number"&&(c=t.Pos(c,0));var b=l(u,m,"minFoldSize");function x(_){var A=v(u,c);if(!A||A.to.line-A.from.line<b)return null;if(g==="fold")return A;for(var I=u.findMarksAt(A.from),M=0;M<I.length;++M)if(I[M].__isFold){if(!_)return null;A.cleared=!0,I[M].clear()}return A}var E=x(!0);if(l(u,m,"scanUp"))for(;!E&&c.line>u.firstLine();)c=t.Pos(c.line-1,0),E=x(!1);if(!(!E||E.cleared||g==="unfold")){var S=s(u,m,E);t.on(S,"mousedown",function(_){C.clear(),t.e_preventDefault(_)});var C=u.markText(E.from,E.to,{replacedWith:S,clearOnEnter:l(u,m,"clearOnEnter"),__isFold:!0});C.on("clear",function(_,A){t.signal(u,"unfold",u,_,A)}),t.signal(u,"fold",u,E.from,E.to)}}function s(u,c,m){var g=l(u,c,"widget");if(typeof g=="function"&&(g=g(m.from,m.to)),typeof g=="string"){var v=document.createTextNode(g);g=document.createElement("span"),g.appendChild(v),g.className="CodeMirror-foldmarker"}else g&&(g=g.cloneNode(!0));return g}t.newFoldFunction=function(u,c){return function(m,g){n(m,g,{rangeFinder:u,widget:c})}},t.defineExtension("foldCode",function(u,c,m){n(this,u,c,m)}),t.defineExtension("isFolded",function(u){for(var c=this.findMarksAt(u),m=0;m<c.length;++m)if(c[m].__isFold)return!0}),t.commands.toggleFold=function(u){u.foldCode(u.getCursor())},t.commands.fold=function(u){u.foldCode(u.getCursor(),null,"fold")},t.commands.unfold=function(u){u.foldCode(u.getCursor(),{scanUp:!1},"unfold")},t.commands.foldAll=function(u){u.operation(function(){for(var c=u.firstLine(),m=u.lastLine();c<=m;c++)u.foldCode(t.Pos(c,0),{scanUp:!1},"fold")})},t.commands.unfoldAll=function(u){u.operation(function(){for(var c=u.firstLine(),m=u.lastLine();c<=m;c++)u.foldCode(t.Pos(c,0),{scanUp:!1},"unfold")})},t.registerHelper("fold","combine",function(){var u=Array.prototype.slice.call(arguments,0);return function(c,m){for(var g=0;g<u.length;++g){var v=u[g](c,m);if(v)return v}}}),t.registerHelper("fold","auto",function(u,c){for(var m=u.getHelpers(c,"fold"),g=0;g<m.length;g++){var v=m[g](u,c);if(v)return v}});var a={rangeFinder:t.fold.auto,widget:"\u2194",minFoldSize:0,scanUp:!1,clearOnEnter:!0};t.defineOption("foldOptions",null);function l(u,c,m){if(c&&c[m]!==void 0)return c[m];var g=u.options.foldOptions;return g&&g[m]!==void 0?g[m]:a[m]}t.defineExtension("foldOption",function(u,c){return l(this,u,c)})})})();(function(r,e){(function(t){t(An(),D3.exports)})(function(t){t.defineOption("foldGutter",!1,function(S,C,_){_&&_!=t.Init&&(S.clearGutter(S.state.foldGutter.options.gutter),S.state.foldGutter=null,S.off("gutterClick",v),S.off("changes",b),S.off("viewportChange",x),S.off("fold",E),S.off("unfold",E),S.off("swapDoc",b)),C&&(S.state.foldGutter=new s(a(C)),g(S),S.on("gutterClick",v),S.on("changes",b),S.on("viewportChange",x),S.on("fold",E),S.on("unfold",E),S.on("swapDoc",b))});var n=t.Pos;function s(S){this.options=S,this.from=this.to=0}function a(S){return S===!0&&(S={}),S.gutter==null&&(S.gutter="CodeMirror-foldgutter"),S.indicatorOpen==null&&(S.indicatorOpen="CodeMirror-foldgutter-open"),S.indicatorFolded==null&&(S.indicatorFolded="CodeMirror-foldgutter-folded"),S}function l(S,C){for(var _=S.findMarks(n(C,0),n(C+1,0)),A=0;A<_.length;++A)if(_[A].__isFold){var I=_[A].find(-1);if(I&&I.line===C)return _[A]}}function u(S){if(typeof S=="string"){var C=document.createElement("div");return C.className=S+" CodeMirror-guttermarker-subtle",C}else return S.cloneNode(!0)}function c(S,C,_){var A=S.state.foldGutter.options,I=C-1,M=S.foldOption(A,"minFoldSize"),O=S.foldOption(A,"rangeFinder"),R=typeof A.indicatorFolded=="string"&&m(A.indicatorFolded),j=typeof A.indicatorOpen=="string"&&m(A.indicatorOpen);S.eachLine(C,_,function($){++I;var B=null,F=$.gutterMarkers;if(F&&(F=F[A.gutter]),l(S,I)){if(R&&F&&R.test(F.className))return;B=u(A.indicatorFolded)}else{var H=n(I,0),V=O&&O(S,H);if(V&&V.to.line-V.from.line>=M){if(j&&F&&j.test(F.className))return;B=u(A.indicatorOpen)}}!B&&!F||S.setGutterMarker($,A.gutter,B)})}function m(S){return new RegExp("(^|\\s)"+S+"(?:$|\\s)\\s*")}function g(S){var C=S.getViewport(),_=S.state.foldGutter;!_||(S.operation(function(){c(S,C.from,C.to)}),_.from=C.from,_.to=C.to)}function v(S,C,_){var A=S.state.foldGutter;if(!!A){var I=A.options;if(_==I.gutter){var M=l(S,C);M?M.clear():S.foldCode(n(C,0),I)}}}function b(S){var C=S.state.foldGutter;if(!!C){var _=C.options;C.from=C.to=0,clearTimeout(C.changeUpdate),C.changeUpdate=setTimeout(function(){g(S)},_.foldOnChangeTimeSpan||600)}}function x(S){var C=S.state.foldGutter;if(!!C){var _=C.options;clearTimeout(C.changeUpdate),C.changeUpdate=setTimeout(function(){var A=S.getViewport();C.from==C.to||A.from-C.to>20||C.from-A.to>20?g(S):S.operation(function(){A.from<C.from&&(c(S,A.from,C.from),C.from=A.from),A.to>C.to&&(c(S,C.to,A.to),C.to=A.to)})},_.updateViewportTimeSpan||400)}}function E(S,C){var _=S.state.foldGutter;if(!!_){var A=C.line;A>=_.from&&A<_.to&&c(S,A,A+1)}}})})();(function(r,e){(function(t){t(An())})(function(t){function n(s){return function(a,l){var u=l.line,c=a.getLine(u);function m(S){for(var C,_=l.ch,A=0;;){var I=_<=0?-1:c.lastIndexOf(S[0],_-1);if(I==-1){if(A==1)break;A=1,_=c.length;continue}if(A==1&&I<l.ch)break;if(C=a.getTokenTypeAt(t.Pos(u,I+1)),!/^(comment|string)/.test(C))return{ch:I+1,tokenType:C,pair:S};_=I-1}}function g(S){var C=1,_=a.lastLine(),A,I=S.ch,M;e:for(var O=u;O<=_;++O)for(var R=a.getLine(O),j=O==u?I:0;;){var $=R.indexOf(S.pair[0],j),B=R.indexOf(S.pair[1],j);if($<0&&($=R.length),B<0&&(B=R.length),j=Math.min($,B),j==R.length)break;if(a.getTokenTypeAt(t.Pos(O,j+1))==S.tokenType){if(j==$)++C;else if(!--C){A=O,M=j;break e}}++j}return A==null||u==A?null:{from:t.Pos(u,I),to:t.Pos(A,M)}}for(var v=[],b=0;b<s.length;b++){var x=m(s[b]);x&&v.push(x)}v.sort(function(S,C){return S.ch-C.ch});for(var b=0;b<v.length;b++){var E=g(v[b]);if(E)return E}return null}}t.registerHelper("fold","brace",n([["{","}"],["[","]"]])),t.registerHelper("fold","brace-paren",n([["{","}"],["[","]"],["(",")"]])),t.registerHelper("fold","import",function(s,a){function l(b){if(b<s.firstLine()||b>s.lastLine())return null;var x=s.getTokenAt(t.Pos(b,1));if(/\S/.test(x.string)||(x=s.getTokenAt(t.Pos(b,x.end+1))),x.type!="keyword"||x.string!="import")return null;for(var E=b,S=Math.min(s.lastLine(),b+10);E<=S;++E){var C=s.getLine(E),_=C.indexOf(";");if(_!=-1)return{startCh:x.end,end:t.Pos(E,_)}}}var u=a.line,c=l(u),m;if(!c||l(u-1)||(m=l(u-2))&&m.end.line==u-1)return null;for(var g=c.end;;){var v=l(g.line+1);if(v==null)break;g=v.end}return{from:s.clipPos(t.Pos(u,c.startCh+1)),to:g}}),t.registerHelper("fold","include",function(s,a){function l(v){if(v<s.firstLine()||v>s.lastLine())return null;var b=s.getTokenAt(t.Pos(v,1));if(/\S/.test(b.string)||(b=s.getTokenAt(t.Pos(v,b.end+1))),b.type=="meta"&&b.string.slice(0,8)=="#include")return b.start+8}var u=a.line,c=l(u);if(c==null||l(u-1)!=null)return null;for(var m=u;;){var g=l(m+1);if(g==null)break;++m}return{from:t.Pos(u,c+1),to:s.clipPos(t.Pos(m))}})})})();(function(r,e){(function(t){t(An())})(function(t){function n(s,a){var l=s.getLine(a),u=l.search(/\S/);return u==-1||/\bcomment\b/.test(s.getTokenTypeAt(t.Pos(a,u+1)))?-1:t.countColumn(l,null,s.getOption("tabSize"))}t.registerHelper("fold","indent",function(s,a){var l=n(s,a.line);if(!(l<0)){for(var u=null,c=a.line+1,m=s.lastLine();c<=m;++c){var g=n(s,c);if(g!=-1)if(g>l)u=c;else break}if(u)return{from:t.Pos(a.line,s.getLine(a.line).length),to:t.Pos(u,s.getLine(u).length)}}})})})();(function(r,e){(function(t){t(An())})(function(t){t.registerGlobalHelper("fold","comment",function(n){return n.blockCommentStart&&n.blockCommentEnd},function(n,s){var a=n.getModeAt(s),l=a.blockCommentStart,u=a.blockCommentEnd;if(!l||!u)return;for(var c=s.line,m=n.getLine(c),g,v=s.ch,b=0;;){var x=v<=0?-1:m.lastIndexOf(l,v-1);if(x==-1){if(b==1)return;b=1,v=m.length;continue}if(b==1&&x<s.ch)return;if(/comment/.test(n.getTokenTypeAt(t.Pos(c,x+1)))&&(x==0||m.slice(x-u.length,x)==u||!/comment/.test(n.getTokenTypeAt(t.Pos(c,x))))){g=x+l.length;break}v=x-1}var E=1,S=n.lastLine(),C,_;e:for(var A=c;A<=S;++A)for(var I=n.getLine(A),M=A==c?g:0;;){var O=I.indexOf(l,M),R=I.indexOf(u,M);if(O<0&&(O=I.length),R<0&&(R=I.length),M=Math.min(O,R),M==I.length)break;if(M==O)++E;else if(!--E){C=A,_=M;break e}++M}if(!(C==null||c==C&&_==g))return{from:t.Pos(c,g),to:t.Pos(C,_)}})})})();const KT=Wi({__name:"CodeMirror",props:{mode:{default:"htmlmixed"},value:{default:""},readonly:{type:Boolean,default:!1}},emits:["change"],setup(r,{emit:e}){const t=r,n=rs(),s=Mi("autoresize");return Cw(()=>{const a={autoCloseBrackets:!0,autoCloseTags:!0,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]},l=O3(n.value,{value:"",mode:t.mode,readOnly:t.readonly,tabSize:2,lineWrapping:!0,lineNumbers:!0,...a});l.on("change",()=>{e("change",l.getValue())}),gf(()=>{const u=l.getValue();t.value!==u&&l.setValue(t.value)}),gf(()=>{l.setOption("mode",t.mode)}),setTimeout(()=>{l.refresh()},50),s&&window.addEventListener("resize",HT(()=>{l.refresh()}))}),(a,l)=>(Nr(),hn("div",{class:"editor",ref_key:"el",ref:n},null,512))}}),R3=Wi({__name:"Message",props:["err","warn"],setup(r){const e=r,t=rs(!1);Nd(()=>[e.err,e.warn],()=>{t.value=!1});function n(s){if(typeof s=="string")return s;{let a=s.message;const l=s.loc;return l&&l.start&&(a=`(${l.start.line}:${l.start.column}) `+a),a}}return(s,a)=>(Nr(),V1(iC,{name:"fade"},{default:Od(()=>[!t.value&&(r.err||r.warn)?(Nr(),hn("div",{key:0,class:yo(["msg",r.err?"err":"warn"])},[Er("pre",null,eh(n(r.err||r.warn)),1),Er("button",{class:"dismiss",onClick:a[0]||(a[0]=l=>t.value=!0)},"\u2715")],2)):go("",!0)]),_:1}))}}),L1=Ma(R3,[["__scopeId","data-v-92411507"]]),F3={class:"editor-container"},B3=Wi({__name:"Editor",setup(r){const e=Mi("store"),t=HT(s=>{e.state.activeFile.code=s},250),n=du(()=>{const{filename:s}=e.state.activeFile;return s.endsWith(".vue")||s.endsWith(".html")?"htmlmixed":s.endsWith(".css")?"css":"javascript"});return(s,a)=>(Nr(),hn(pu,null,[Ii(f3),Er("div",F3,[Ii(KT,{onChange:_r(t),value:_r(e).state.activeFile.code,mode:_r(n)},null,8,["onChange","value","mode"]),Ii(L1,{err:_r(e).state.errors[0]},null,8,["err"])])],64))}}),$3=Ma(B3,[["__scopeId","data-v-0384e940"]]),j3=`<!doctype html>
<html>
<head>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
</style>
<style id="__sfc-styles"></style>
<script>
(() => {
let scriptEls = []
window.process = { env: {} }
window.__modules__ = {}
window.__export__ = (mod, key, get) => {
Object.defineProperty(mod, key, {
enumerable: true,
configurable: true,
get
})
}
window.__dynamic_import__ = key => {
return Promise.resolve(window.__modules__[key])
}
async function handle_message(ev) {
let { action, cmd_id } = ev.data;
const send_message = (payload) => parent.postMessage( { ...payload }, ev.origin);
const send_reply = (payload) => send_message({ ...payload, cmd_id });
const send_ok = () => send_reply({ action: 'cmd_ok' });
const send_error = (message, stack) => send_reply({ action: 'cmd_error', message, stack });
if (action === 'eval') {
try {
if (scriptEls.length) {
scriptEls.forEach(el => {
document.head.removeChild(el)
})
scriptEls.length = 0
}
let { script: scripts } = ev.data.args
if (typeof scripts === 'string') scripts = [scripts]
for (const script of scripts) {
const scriptEl = document.createElement('script')
scriptEl.setAttribute('type', 'module')
// send ok in the module script to ensure sequential evaluation
// of multiple proxy.eval() calls
const done = new Promise((resolve) => {
window.__next__ = resolve
})
scriptEl.innerHTML = script + \`\\nwindow.__next__()\`
document.head.appendChild(scriptEl)
scriptEl.onerror = err => send_error(err.message, err.stack)
scriptEls.push(scriptEl)
await done
}
send_ok()
} catch (e) {
send_error(e.message, e.stack);
}
}
if (action === 'catch_clicks') {
try {
const top_origin = ev.origin;
document.body.addEventListener('click', event => {
if (event.which !== 1) return;
if (event.metaKey || event.ctrlKey || event.shiftKey) return;
if (event.defaultPrevented) return;
// ensure target is a link
let el = event.target;
while (el && el.nodeName !== 'A') el = el.parentNode;
if (!el || el.nodeName !== 'A') return;
if (el.hasAttribute('download') || el.getAttribute('rel') === 'external' || el.target) return;
event.preventDefault();
if (el.href.startsWith(top_origin)) {
const url = new URL(el.href);
if (url.hash[0] === '#') {
window.location.hash = url.hash;
return;
}
}
window.open(el.href, '_blank');
});
send_ok();
} catch(e) {
send_error(e.message, e.stack);
}
}
}
window.addEventListener('message', handle_message, false);
window.onerror = function (msg, url, lineNo, columnNo, error) {
if (msg.includes('module specifier \u201Cvue\u201D')) {
// firefox only error, ignore
return false
}
try {
parent.postMessage({ action: 'error', value: error }, '*');
} catch (e) {
parent.postMessage({ action: 'error', value: msg }, '*');
}
}
window.addEventListener("unhandledrejection", event => {
if (event.reason.message.includes('Cross-origin')) {
event.preventDefault()
return
}
try {
parent.postMessage({ action: 'unhandledrejection', value: event.reason }, '*');
} catch (e) {
parent.postMessage({ action: 'unhandledrejection', value: event.reason.message }, '*');
}
});
let previous = { level: null, args: null };
['clear', 'log', 'info', 'dir', 'warn', 'error', 'table'].forEach((level) => {
const original = console[level];
console[level] = (...args) => {
const msg = String(args[0])
if (
msg.includes('You are running a development build of Vue') ||
msg.includes('You are running the esm-bundler build of Vue')
) {
return
}
const stringifiedArgs = stringify(args);
if (
previous.level === level &&
previous.args &&
previous.args === stringifiedArgs
) {
parent.postMessage({ action: 'console', level, duplicate: true }, '*');
} else {
previous = { level, args: stringifiedArgs };
try {
parent.postMessage({ action: 'console', level, args }, '*');
} catch (err) {
parent.postMessage({ action: 'console', level, args: args.map(a => {
return a instanceof Error ? a.message : String(a)
}) }, '*');
}
}
original(...args);
}
});
[
{ method: 'group', action: 'console_group' },
{ method: 'groupEnd', action: 'console_group_end' },
{ method: 'groupCollapsed', action: 'console_group_collapsed' },
].forEach((group_action) => {
const original = console[group_action.method];
console[group_action.method] = (label) => {
parent.postMessage({ action: group_action.action, label }, '*');
original(label);
};
});
const timers = new Map();
const original_time = console.time;
const original_timelog = console.timeLog;
const original_timeend = console.timeEnd;
console.time = (label = 'default') => {
original_time(label);
timers.set(label, performance.now());
}
console.timeLog = (label = 'default') => {
original_timelog(label);
const now = performance.now();
if (timers.has(label)) {
parent.postMessage({ action: 'console', level: 'system-log', args: [\`\${label}: \${now - timers.get(label)}ms\`] }, '*');
} else {
parent.postMessage({ action: 'console', level: 'system-warn', args: [\`Timer '\${label}' does not exist\`] }, '*');
}
}
console.timeEnd = (label = 'default') => {
original_timeend(label);
const now = performance.now();
if (timers.has(label)) {
parent.postMessage({ action: 'console', level: 'system-log', args: [\`\${label}: \${now - timers.get(label)}ms\`] }, '*');
} else {
parent.postMessage({ action: 'console', level: 'system-warn', args: [\`Timer '\${label}' does not exist\`] }, '*');
}
timers.delete(label);
};
const original_assert = console.assert;
console.assert = (condition, ...args) => {
if (condition) {
const stack = new Error().stack;
parent.postMessage({ action: 'console', level: 'assert', args, stack }, '*');
}
original_assert(condition, ...args);
};
const counter = new Map();
const original_count = console.count;
const original_countreset = console.countReset;
console.count = (label = 'default') => {
counter.set(label, (counter.get(label) || 0) + 1);
parent.postMessage({ action: 'console', level: 'system-log', args: \`\${label}: \${counter.get(label)}\` }, '*');
original_count(label);
};
console.countReset = (label = 'default') => {
if (counter.has(label)) {
counter.set(label, 0);
} else {
parent.postMessage({ action: 'console', level: 'system-warn', args: \`Count for '\${label}' does not exist\` }, '*');
}
original_countreset(label);
};
const original_trace = console.trace;
console.trace = (...args) => {
const stack = new Error().stack;
parent.postMessage({ action: 'console', level: 'trace', args, stack }, '*');
original_trace(...args);
};
function stringify(args) {
try {
return JSON.stringify(args);
} catch (error) {
return null;
}
}
})()
<\/script>
<!-- ES Module Shims: Import maps polyfill for modules browsers without import maps support (all except Chrome 89+) -->
<script async src="https://unpkg.com/es-module-shims@1.5.18/dist/es-module-shims.wasm.js"><\/script>
<script type="importmap"><!--IMPORT_MAP--><\/script>
</head>
<body></body>
</html>
`;let U3=1;class q3{constructor(e,t){this.iframe=e,this.handlers=t,this.pending_cmds=new Map,this.handle_event=n=>this.handle_repl_message(n),window.addEventListener("message",this.handle_event,!1)}destroy(){window.removeEventListener("message",this.handle_event)}iframe_command(e,t){return new Promise((n,s)=>{const a=U3++;this.pending_cmds.set(a,{resolve:n,reject:s}),this.iframe.contentWindow.postMessage({action:e,cmd_id:a,args:t},"*")})}handle_command_message(e){let t=e.action,n=e.cmd_id,s=this.pending_cmds.get(n);if(s){if(this.pending_cmds.delete(n),t==="cmd_error"){let{message:a,stack:l}=e,u=new Error(a);u.stack=l,s.reject(u)}t==="cmd_ok"&&s.resolve(e.args)}else t!=="cmd_error"&&t!=="cmd_ok"&&console.error("command not found",n,e,[...this.pending_cmds.keys()])}handle_repl_message(e){if(e.source!==this.iframe.contentWindow)return;const{action:t,args:n}=e.data;switch(t){case"cmd_error":case"cmd_ok":return this.handle_command_message(e.data);case"fetch_progress":return this.handlers.on_fetch_progress(n.remaining);case"error":return this.handlers.on_error(e.data);case"unhandledrejection":return this.handlers.on_unhandled_rejection(e.data);case"console":return this.handlers.on_console(e.data);case"console_group":return this.handlers.on_console_group(e.data);case"console_group_collapsed":return this.handlers.on_console_group_collapsed(e.data);case"console_group_end":return this.handlers.on_console_group_end(e.data)}}eval(e){return this.iframe_command("eval",{script:e})}handle_links(){return this.iframe_command("catch_clicks",{})}}function nw(r,e=!1){const t=new Set,n=[];if(Fg(r,r.state.files[r.state.mainFile],n,t,e),!e){for(const s in r.state.files)if(s.endsWith(".css")){const a=r.state.files[s];t.has(a)||n.push(`
window.__css__ += ${JSON.stringify(a.compiled.css)}`)}}return n}const sw="__modules__",Ed="__export__",W3="__dynamic_import__",Kl="__module__";function Fg(r,e,t,n,s){if(n.has(e))return[];if(n.add(e),!s&&e.filename.endsWith(".html"))return V3(r,e.code,e.filename,t,n);let[a,l]=YT(r,s?e.compiled.ssr:e.compiled.js,e.filename);if(!s&&e.compiled.css&&(a+=`
window.__css__ += ${JSON.stringify(e.compiled.css)}`),l.size)for(const u of l)Fg(r,r.state.files[u],t,n,s);t.push(a)}function YT(r,e,t){const n=new xt(e),s=Ta(e,{sourceFilename:t,sourceType:"module"}).program.body,a=new Map,l=new Set,u=new Set,c=new Map;function m(v,b){const x=b.replace(/^\.\/+/,"");if(!(x in r.state.files))throw new Error(`File "${x}" does not exist.`);if(u.has(x))return c.get(x);u.add(x);const E=`__import_${u.size}__`;return c.set(x,E),n.appendLeft(v.start,`const ${E} = ${sw}[${JSON.stringify(x)}]
`),E}function g(v,b=v){n.append(`
${Ed}(${Kl}, "${v}", () => ${b})`)}n.prepend(`const ${Kl} = ${sw}[${JSON.stringify(t)}] = { [Symbol.toStringTag]: "Module" }
`);for(const v of s)if(v.type==="ImportDeclaration"&&v.source.value.startsWith("./")){const x=m(v,v.source.value);for(const E of v.specifiers)E.type==="ImportSpecifier"?a.set(E.local.name,`${x}.${E.imported.name}`):E.type==="ImportDefaultSpecifier"?a.set(E.local.name,`${x}.default`):a.set(E.local.name,x);n.remove(v.start,v.end)}for(const v of s){if(v.type==="ExportNamedDeclaration")if(v.declaration){if(v.declaration.type==="FunctionDeclaration"||v.declaration.type==="ClassDeclaration")g(v.declaration.id.name);else if(v.declaration.type==="VariableDeclaration")for(const b of v.declaration.declarations)for(const x of Zn(b.id))g(x.name);n.remove(v.start,v.declaration.start)}else if(v.source){const b=m(v,v.source.value);for(const x of v.specifiers)g(x.exported.name,`${b}.${x.local.name}`);n.remove(v.start,v.end)}else{for(const b of v.specifiers){const x=b.local.name,E=a.get(x);g(b.exported.name,E||x)}n.remove(v.start,v.end)}if(v.type==="ExportDefaultDeclaration")if("id"in v.declaration&&v.declaration.id){const{name:b}=v.declaration.id;n.remove(v.start,v.start+15),n.append(`
${Ed}(${Kl}, "default", () => ${b})`)}else n.overwrite(v.start,v.start+14,`${Kl}.default =`);if(v.type==="ExportAllDeclaration"){const b=m(v,v.source.value);n.remove(v.start,v.end),n.append(`
for (const key in ${b}) {
if (key !== 'default') {
${Ed}(${Kl}, key, () => ${b}[key])
}
}`)}}for(const v of s)v.type!=="ImportDeclaration"&&Jo(v,(b,x,E)=>{const S=a.get(b.name);if(!!S)if(Qo(x)&&x.shorthand)(!x.inPattern||Xo(x,E))&&n.appendLeft(b.end,`: ${S}`);else if(x.type==="ClassDeclaration"&&b===x.superClass){if(!l.has(b.name)){l.add(b.name);const C=E[1];n.prependRight(C.start,`const ${b.name} = ${S};
`)}}else n.overwrite(b.start,b.end,S)});return FT(s,{enter(v,b){if(v.type==="Import"&&b.type==="CallExpression"){const x=b.arguments[0];x.type==="StringLiteral"&&x.value.startsWith("./")&&(n.overwrite(v.start,v.start+6,W3),n.overwrite(x.start,x.end,JSON.stringify(x.value.replace(/^\.\/+/,""))))}}}),[n.toString(),u]}const z3=/<script\b(?:\s[^>]*>|>)([^]*?)<\/script>/gi,H3=/<script\b[^>]*type\s*=\s*(?:"module"|'module')[^>]*>([^]*?)<\/script>/gi;function V3(r,e,t,n,s){const a=[];let l="";const u=e.replace(H3,(c,m)=>{const[g,v]=YT(r,m,t);if(v.size)for(const b of v)Fg(r,r.state.files[b],a,s,!1);return l+=`
`+g,""}).replace(z3,(c,m)=>(l+=`
`+m,""));n.push(`document.body.innerHTML = ${JSON.stringify(u)}`),n.push(...a),n.push(l)}const G3=Wi({__name:"Preview",props:{show:{type:Boolean},ssr:{type:Boolean}},setup(r){const e=r,t=Mi("store"),n=Mi("clear-console"),s=rs(),a=rs(),l=rs();let u,c,m;Cw(g),Nd(()=>t.state.files["import-map.json"].code,b=>{try{if(!JSON.parse(b).imports){t.state.errors=['import-map.json is missing "imports" field.'];return}g()}catch(x){t.state.errors=[x];return}}),Nd(()=>t.state.resetFlip,g),nC(()=>{c.destroy(),m&&m()});function g(){u&&(c.destroy(),m&&m(),s.value.removeChild(u)),u=document.createElement("iframe"),u.setAttribute("sandbox",["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts","allow-top-navigation-by-user-activation"].join(" "));const b=t.getImportMap();b.imports||(b.imports={}),b.imports.vue||(b.imports.vue=t.state.vueRuntimeURL);const x=j3.replace(/<!--IMPORT_MAP-->/,JSON.stringify(b));u.srcdoc=x,s.value.appendChild(u),c=new q3(u,{on_fetch_progress:E=>{},on_error:E=>{const S=E.value instanceof Error?E.value.message:E.value;S.includes("Failed to resolve module specifier")||S.includes("Error resolving module specifier")?a.value=S.replace(/\. Relative references must.*$/,"")+`.
Tip: edit the "Import Map" tab to specify import paths for dependencies.`:a.value=E.value},on_unhandled_rejection:E=>{let S=E.value;typeof S=="string"&&(S={message:S}),a.value="Uncaught (in promise): "+S.message},on_console:E=>{E.duplicate||(E.level==="error"?E.args[0]instanceof Error?a.value=E.args[0].message:a.value=E.args[0]:E.level==="warn"&&E.args[0].toString().includes("[Vue warn]")&&(l.value=E.args.join("").replace(/\[Vue warn\]:/,"").trim()))},on_console_group:E=>{},on_console_group_end:()=>{},on_console_group_collapsed:E=>{}}),u.addEventListener("load",()=>{c.handle_links(),m=gf(v)})}async function v(){n.value&&console.clear(),a.value=null,l.value=null;let b=e.ssr;if(t.vueVersion){const[x,E,S]=t.vueVersion.split(".");(parseInt(E,10)<2||parseInt(S,10)<27)&&(alert(`The selected version of Vue (${t.vueVersion}) does not support in-browser SSR. Rendering in client mode instead.`),b=!1)}try{const x=t.state.mainFile;if(b&&x.endsWith(".vue")){const C=nw(t,!0);console.log(`[@vue/repl] successfully compiled ${C.length} modules for SSR.`),await c.eval(["const __modules__ = {};",...C,`import { renderToString as _renderToString } from 'vue/server-renderer'
import { createSSRApp as _createApp } from 'vue'
const AppComponent = __modules__["${x}"].default
AppComponent.name = 'Repl'
const app = _createApp(AppComponent)
app.config.unwrapInjectedRef = true
app.config.warnHandler = () => {}
window.__ssr_promise__ = _renderToString(app).then(html => {
document.body.innerHTML = '<div id="app">' + html + '</div>'
}).catch(err => {
console.error("SSR Error", err)
})
`])}const E=nw(t);console.log(`[@vue/repl] successfully compiled ${E.length} module${E.length>1?"s":""}.`);const S=[`window.__modules__ = {}
window.__css__ = ''
if (window.__app__) window.__app__.unmount()
`+(b?"":`document.body.innerHTML = '<div id="app"></div>'`),...E,"document.getElementById('__sfc-styles').innerHTML = window.__css__"];x.endsWith(".vue")&&S.push(`import { ${b?"createSSRApp":"createApp"} as _createApp } from "vue"
const _mount = () => {
const AppComponent = __modules__["${x}"].default
AppComponent.name = 'Repl'
const app = window.__app__ = _createApp(AppComponent)
app.config.unwrapInjectedRef = true
app.config.errorHandler = e => console.error(e)
app.mount('#app')
}
if (window.__ssr_promise__) {
window.__ssr_promise__.then(_mount)
} else {
_mount()
}`),await c.eval(S)}catch(x){a.value=x.message}}return(b,x)=>(Nr(),hn(pu,null,[Pw(Er("div",{class:"iframe-container",ref_key:"container",ref:s},null,512),[[sC,r.show]]),Ii(L1,{err:a.value},null,8,["err"]),a.value?go("",!0):(Nr(),V1(L1,{key:0,warn:l.value},null,8,["warn"]))],64))}}),K3=Ma(G3,[["__scopeId","data-v-21e1de24"]]),Y3={class:"tab-buttons"},J3=["onClick"],X3={class:"output-container"},Q3=Wi({__name:"Output",props:{showCompileOutput:{type:Boolean},ssr:{type:Boolean}},setup(r){const e=r,t=Mi("store"),n=du(()=>e.showCompileOutput?["preview","js","css","ssr"]:["preview"]),s=rs(n.value.includes(t.initialOutputMode)?t.initialOutputMode:"preview");return(a,l)=>(Nr(),hn(pu,null,[Er("div",Y3,[(Nr(!0),hn(pu,null,Nw(_r(n),u=>(Nr(),hn("button",{class:yo({active:s.value===u}),onClick:c=>s.value=u},[Er("span",null,eh(u),1)],10,J3))),256))]),Er("div",X3,[Ii(K3,{show:s.value==="preview",ssr:r.ssr},null,8,["show","ssr"]),s.value!=="preview"?(Nr(),V1(KT,{key:0,readonly:"",mode:s.value==="css"?"css":"javascript",value:_r(t).state.activeFile.compiled[s.value]},null,8,["mode","value"])):go("",!0)])],64))}}),Z3=Ma(Q3,[["__scopeId","data-v-5d2df9cb"]]);var Q;(function(r){r[r.NONE=0]="NONE";const t=0+1;r[r._abstract=t]="_abstract";const n=t+1;r[r._as=n]="_as";const s=n+1;r[r._asserts=s]="_asserts";const a=s+1;r[r._async=a]="_async";const l=a+1;r[r._await=l]="_await";const u=l+1;r[r._checks=u]="_checks";const c=u+1;r[r._constructor=c]="_constructor";const m=c+1;r[r._declare=m]="_declare";const g=m+1;r[r._enum=g]="_enum";const v=g+1;r[r._exports=v]="_exports";const b=v+1;r[r._from=b]="_from";const x=b+1;r[r._get=x]="_get";const E=x+1;r[r._global=E]="_global";const S=E+1;r[r._implements=S]="_implements";const C=S+1;r[r._infer=C]="_infer";const _=C+1;r[r._interface=_]="_interface";const A=_+1;r[r._is=A]="_is";const I=A+1;r[r._keyof=I]="_keyof";const M=I+1;r[r._mixins=M]="_mixins";const O=M+1;r[r._module=O]="_module";const R=O+1;r[r._namespace=R]="_namespace";const j=R+1;r[r._of=j]="_of";const $=j+1;r[r._opaque=$]="_opaque";const B=$+1;r[r._override=B]="_override";const F=B+1;r[r._private=F]="_private";const H=F+1;r[r._protected=H]="_protected";const V=H+1;r[r._proto=V]="_proto";const X=V+1;r[r._public=X]="_public";const J=X+1;r[r._readonly=J]="_readonly";const D=J+1;r[r._require=D]="_require";const ce=D+1;r[r._set=ce]="_set";const W=ce+1;r[r._static=W]="_static";const Z=W+1;r[r._type=Z]="_type";const de=Z+1;r[r._unique=de]="_unique"})(Q||(Q={}));var p;(function(r){r[r.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";const t=1<<4;r[r.IS_KEYWORD=t]="IS_KEYWORD";const n=1<<5;r[r.IS_ASSIGN=n]="IS_ASSIGN";const s=1<<6;r[r.IS_RIGHT_ASSOCIATIVE=s]="IS_RIGHT_ASSOCIATIVE";const a=1<<7;r[r.IS_PREFIX=a]="IS_PREFIX";const l=1<<8;r[r.IS_POSTFIX=l]="IS_POSTFIX";const u=0;r[r.num=u]="num";const c=512;r[r.bigint=c]="bigint";const m=1024;r[r.decimal=m]="decimal";const g=1536;r[r.regexp=g]="regexp";const v=2048;r[r.string=v]="string";const b=2560;r[r.name=b]="name";const x=3072;r[r.eof=x]="eof";const E=3584;r[r.bracketL=E]="bracketL";const S=4096;r[r.bracketR=S]="bracketR";const C=4608;r[r.braceL=C]="braceL";const _=5120;r[r.braceBarL=_]="braceBarL";const A=5632;r[r.braceR=A]="braceR";const I=6144;r[r.braceBarR=I]="braceBarR";const M=6656;r[r.parenL=M]="parenL";const O=7168;r[r.parenR=O]="parenR";const R=7680;r[r.comma=R]="comma";const j=8192;r[r.semi=j]="semi";const $=8704;r[r.colon=$]="colon";const B=9216;r[r.doubleColon=B]="doubleColon";const F=9728;r[r.dot=F]="dot";const H=10240;r[r.question=H]="question";const V=10752;r[r.questionDot=V]="questionDot";const X=11264;r[r.arrow=X]="arrow";const J=11776;r[r.template=J]="template";const D=12288;r[r.ellipsis=D]="ellipsis";const ce=12800;r[r.backQuote=ce]="backQuote";const W=13312;r[r.dollarBraceL=W]="dollarBraceL";const Z=13824;r[r.at=Z]="at";const de=14336;r[r.hash=de]="hash";const he=14880;r[r.eq=he]="eq";const oe=15392;r[r.assign=oe]="assign";const we=16256;r[r.preIncDec=we]="preIncDec";const re=16768;r[r.postIncDec=re]="postIncDec";const ge=17024;r[r.bang=ge]="bang";const ee=17536;r[r.tilde=ee]="tilde";const z=17921;r[r.pipeline=z]="pipeline";const ne=18434;r[r.nullishCoalescing=ne]="nullishCoalescing";const fe=18946;r[r.logicalOR=fe]="logicalOR";const ye=19459;r[r.logicalAND=ye]="logicalAND";const pe=19972;r[r.bitwiseOR=pe]="bitwiseOR";const le=20485;r[r.bitwiseXOR=le]="bitwiseXOR";const _e=20998;r[r.bitwiseAND=_e]="bitwiseAND";const De=21511;r[r.equality=De]="equality";const Ue=22024;r[r.lessThan=Ue]="lessThan";const qe=22536;r[r.greaterThan=qe]="greaterThan";const Xe=23048;r[r.relationalOrEqual=Xe]="relationalOrEqual";const tt=23561;r[r.bitShift=tt]="bitShift";const Je=24202;r[r.plus=Je]="plus";const dt=24714;r[r.minus=dt]="minus";const Lt=25099;r[r.modulo=Lt]="modulo";const ht=25611;r[r.star=ht]="star";const ae=26123;r[r.slash=ae]="slash";const Ee=26700;r[r.exponent=Ee]="exponent";const me=27136;r[r.jsxName=me]="jsxName";const ct=27648;r[r.jsxText=ct]="jsxText";const tr=28160;r[r.jsxTagStart=tr]="jsxTagStart";const vr=28672;r[r.jsxTagEnd=vr]="jsxTagEnd";const Vn=29184;r[r.typeParameterStart=Vn]="typeParameterStart";const ur=29696;r[r.nonNullAssertion=ur]="nonNullAssertion";const Mt=30224;r[r._break=Mt]="_break";const cr=30736;r[r._case=cr]="_case";const Ht=31248;r[r._catch=Ht]="_catch";const mr=31760;r[r._continue=mr]="_continue";const Qe=32272;r[r._debugger=Qe]="_debugger";const Kr=32784;r[r._default=Kr]="_default";const Bt=33296;r[r._do=Bt]="_do";const rt=33808;r[r._else=rt]="_else";const Y=34320;r[r._finally=Y]="_finally";const Oe=34832;r[r._for=Oe]="_for";const Pe=35344;r[r._function=Pe]="_function";const Ke=35856;r[r._if=Ke]="_if";const $e=36368;r[r._return=$e]="_return";const Ve=36880;r[r._switch=Ve]="_switch";const Ze=37520;r[r._throw=Ze]="_throw";const Vt=37904;r[r._try=Vt]="_try";const _t=38416;r[r._var=_t]="_var";const br=38928;r[r._let=br]="_let";const Kt=39440;r[r._const=Kt]="_const";const hr=39952;r[r._while=hr]="_while";const ci=40464;r[r._with=ci]="_with";const Os=40976;r[r._new=Os]="_new";const mn=41488;r[r._this=mn]="_this";const Ls=42e3;r[r._super=Ls]="_super";const fi=42512;r[r._class=fi]="_class";const hi=43024;r[r._extends=hi]="_extends";const Ms=43536;r[r._export=Ms]="_export";const Bn=44048;r[r._import=Bn]="_import";const Yr=44560;r[r._yield=Yr]="_yield";const Fr=45072;r[r._null=Fr]="_null";const pi=45584;r[r._true=pi]="_true";const Cn=46096;r[r._false=Cn]="_false";const cs=46616;r[r._in=cs]="_in";const fs=47128;r[r._instanceof=fs]="_instanceof";const sn=47760;r[r._typeof=sn]="_typeof";const an=48272;r[r._void=an]="_void";const Br=48784;r[r._delete=Br]="_delete";const Ds=49168;r[r._async=Ds]="_async";const Gi=49680;r[r._get=Gi]="_get";const Jt=50192;r[r._set=Jt]="_set";const Ye=50704;r[r._declare=Ye]="_declare";const $n=51216;r[r._readonly=$n]="_readonly";const Ki=51728;r[r._abstract=Ki]="_abstract";const Jr=52240;r[r._static=Jr]="_static";const Pt=52752;r[r._public=Pt]="_public";const jn=53264;r[r._private=jn]="_private";const Rs=53776;r[r._protected=Rs]="_protected";const Yi=54288;r[r._override=Yi]="_override";const Ae=54800;r[r._as=Ae]="_as";const L=55312;r[r._enum=L]="_enum";const K=55824;r[r._type=K]="_type";const xe=56336;r[r._implements=xe]="_implements"})(p||(p={}));function eF(r){switch(r){case p.num:return"num";case p.bigint:return"bigint";case p.decimal:return"decimal";case p.regexp:return"regexp";case p.string:return"string";case p.name:return"name";case p.eof:return"eof";case p.bracketL:return"[";case p.bracketR:return"]";case p.braceL:return"{";case p.braceBarL:return"{|";case p.braceR:return"}";case p.braceBarR:return"|}";case p.parenL:return"(";case p.parenR:return")";case p.comma:return",";case p.semi:return";";case p.colon:return":";case p.doubleColon:return"::";case p.dot:return".";case p.question:return"?";case p.questionDot:return"?.";case p.arrow:return"=>";case p.template:return"template";case p.ellipsis:return"...";case p.backQuote:return"`";case p.dollarBraceL:return"${";case p.at:return"@";case p.hash:return"#";case p.eq:return"=";case p.assign:return"_=";case p.preIncDec:return"++/--";case p.postIncDec:return"++/--";case p.bang:return"!";case p.tilde:return"~";case p.pipeline:return"|>";case p.nullishCoalescing:return"??";case p.logicalOR:return"||";case p.logicalAND:return"&&";case p.bitwiseOR:return"|";case p.bitwiseXOR:return"^";case p.bitwiseAND:return"&";case p.equality:return"==/!=";case p.lessThan:return"<";case p.greaterThan:return">";case p.relationalOrEqual:return"<=/>=";case p.bitShift:return"<</>>";case p.plus:return"+";case p.minus:return"-";case p.modulo:return"%";case p.star:return"*";case p.slash:return"/";case p.exponent:return"**";case p.jsxName:return"jsxName";case p.jsxText:return"jsxText";case p.jsxTagStart:return"jsxTagStart";case p.jsxTagEnd:return"jsxTagEnd";case p.typeParameterStart:return"typeParameterStart";case p.nonNullAssertion:return"nonNullAssertion";case p._break:return"break";case p._case:return"case";case p._catch:return"catch";case p._continue:return"continue";case p._debugger:return"debugger";case p._default:return"default";case p._do:return"do";case p._else:return"else";case p._finally:return"finally";case p._for:return"for";case p._function:return"function";case p._if:return"if";case p._return:return"return";case p._switch:return"switch";case p._throw:return"throw";case p._try:return"try";case p._var:return"var";case p._let:return"let";case p._const:return"const";case p._while:return"while";case p._with:return"with";case p._new:return"new";case p._this:return"this";case p._super:return"super";case p._class:return"class";case p._extends:return"extends";case p._export:return"export";case p._import:return"import";case p._yield:return"yield";case p._null:return"null";case p._true:return"true";case p._false:return"false";case p._in:return"in";case p._instanceof:return"instanceof";case p._typeof:return"typeof";case p._void:return"void";case p._delete:return"delete";case p._async:return"async";case p._get:return"get";case p._set:return"set";case p._declare:return"declare";case p._readonly:return"readonly";case p._abstract:return"abstract";case p._static:return"static";case p._public:return"public";case p._private:return"private";case p._protected:return"protected";case p._override:return"override";case p._as:return"as";case p._enum:return"enum";case p._type:return"type";case p._implements:return"implements";default:return""}}class Ps{constructor(e,t,n){this.startTokenIndex=e,this.endTokenIndex=t,this.isFunctionScope=n}}class tF{constructor(e,t,n,s,a,l,u,c,m,g,v,b){this.potentialArrowAt=e,this.noAnonFunctionType=t,this.tokensLength=n,this.scopesLength=s,this.pos=a,this.type=l,this.contextualKeyword=u,this.start=c,this.end=m,this.isType=g,this.scopeDepth=v,this.error=b}}class vn{constructor(){vn.prototype.__init.call(this),vn.prototype.__init2.call(this),vn.prototype.__init3.call(this),vn.prototype.__init4.call(this),vn.prototype.__init5.call(this),vn.prototype.__init6.call(this),vn.prototype.__init7.call(this),vn.prototype.__init8.call(this),vn.prototype.__init9.call(this),vn.prototype.__init10.call(this),vn.prototype.__init11.call(this),vn.prototype.__init12.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.tokens=[]}__init4(){this.scopes=[]}__init5(){this.pos=0}__init6(){this.type=p.eof}__init7(){this.contextualKeyword=Q.NONE}__init8(){this.start=0}__init9(){this.end=0}__init10(){this.isType=!1}__init11(){this.scopeDepth=0}__init12(){this.error=null}snapshot(){return new tF(this.potentialArrowAt,this.noAnonFunctionType,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(e){this.potentialArrowAt=e.potentialArrowAt,this.noAnonFunctionType=e.noAnonFunctionType,this.tokens.length=e.tokensLength,this.scopes.length=e.scopesLength,this.pos=e.pos,this.type=e.type,this.contextualKeyword=e.contextualKeyword,this.start=e.start,this.end=e.end,this.isType=e.isType,this.scopeDepth=e.scopeDepth,this.error=e.error}}var ue;(function(r){r[r.backSpace=8]="backSpace";const t=10;r[r.lineFeed=t]="lineFeed";const n=13;r[r.carriageReturn=n]="carriageReturn";const s=14;r[r.shiftOut=s]="shiftOut";const a=32;r[r.space=a]="space";const l=33;r[r.exclamationMark=l]="exclamationMark";const u=34;r[r.quotationMark=u]="quotationMark";const c=35;r[r.numberSign=c]="numberSign";const m=36;r[r.dollarSign=m]="dollarSign";const g=37;r[r.percentSign=g]="percentSign";const v=38;r[r.ampersand=v]="ampersand";const b=39;r[r.apostrophe=b]="apostrophe";const x=40;r[r.leftParenthesis=x]="leftParenthesis";const E=41;r[r.rightParenthesis=E]="rightParenthesis";const S=42;r[r.asterisk=S]="asterisk";const C=43;r[r.plusSign=C]="plusSign";const _=44;r[r.comma=_]="comma";const A=45;r[r.dash=A]="dash";const I=46;r[r.dot=I]="dot";const M=47;r[r.slash=M]="slash";const O=48;r[r.digit0=O]="digit0";const R=49;r[r.digit1=R]="digit1";const j=50;r[r.digit2=j]="digit2";const $=51;r[r.digit3=$]="digit3";const B=52;r[r.digit4=B]="digit4";const F=53;r[r.digit5=F]="digit5";const H=54;r[r.digit6=H]="digit6";const V=55;r[r.digit7=V]="digit7";const X=56;r[r.digit8=X]="digit8";const J=57;r[r.digit9=J]="digit9";const D=58;r[r.colon=D]="colon";const ce=59;r[r.semicolon=ce]="semicolon";const W=60;r[r.lessThan=W]="lessThan";const Z=61;r[r.equalsTo=Z]="equalsTo";const de=62;r[r.greaterThan=de]="greaterThan";const he=63;r[r.questionMark=he]="questionMark";const oe=64;r[r.atSign=oe]="atSign";const we=65;r[r.uppercaseA=we]="uppercaseA";const re=66;r[r.uppercaseB=re]="uppercaseB";const ge=67;r[r.uppercaseC=ge]="uppercaseC";const ee=68;r[r.uppercaseD=ee]="uppercaseD";const z=69;r[r.uppercaseE=z]="uppercaseE";const ne=70;r[r.uppercaseF=ne]="uppercaseF";const fe=71;r[r.uppercaseG=fe]="uppercaseG";const ye=72;r[r.uppercaseH=ye]="uppercaseH";const pe=73;r[r.uppercaseI=pe]="uppercaseI";const le=74;r[r.uppercaseJ=le]="uppercaseJ";const _e=75;r[r.uppercaseK=_e]="uppercaseK";const De=76;r[r.uppercaseL=De]="uppercaseL";const Ue=77;r[r.uppercaseM=Ue]="uppercaseM";const qe=78;r[r.uppercaseN=qe]="uppercaseN";const Xe=79;r[r.uppercaseO=Xe]="uppercaseO";const tt=80;r[r.uppercaseP=tt]="uppercaseP";const Je=81;r[r.uppercaseQ=Je]="uppercaseQ";const dt=82;r[r.uppercaseR=dt]="uppercaseR";const Lt=83;r[r.uppercaseS=Lt]="uppercaseS";const ht=84;r[r.uppercaseT=ht]="uppercaseT";const ae=85;r[r.uppercaseU=ae]="uppercaseU";const Ee=86;r[r.uppercaseV=Ee]="uppercaseV";const me=87;r[r.uppercaseW=me]="uppercaseW";const ct=88;r[r.uppercaseX=ct]="uppercaseX";const tr=89;r[r.uppercaseY=tr]="uppercaseY";const vr=90;r[r.uppercaseZ=vr]="uppercaseZ";const Vn=91;r[r.leftSquareBracket=Vn]="leftSquareBracket";const ur=92;r[r.backslash=ur]="backslash";const Mt=93;r[r.rightSquareBracket=Mt]="rightSquareBracket";const cr=94;r[r.caret=cr]="caret";const Ht=95;r[r.underscore=Ht]="underscore";const mr=96;r[r.graveAccent=mr]="graveAccent";const Qe=97;r[r.lowercaseA=Qe]="lowercaseA";const Kr=98;r[r.lowercaseB=Kr]="lowercaseB";const Bt=99;r[r.lowercaseC=Bt]="lowercaseC";const rt=100;r[r.lowercaseD=rt]="lowercaseD";const Y=101;r[r.lowercaseE=Y]="lowercaseE";const Oe=102;r[r.lowercaseF=Oe]="lowercaseF";const Pe=103;r[r.lowercaseG=Pe]="lowercaseG";const Ke=104;r[r.lowercaseH=Ke]="lowercaseH";const $e=105;r[r.lowercaseI=$e]="lowercaseI";const Ve=106;r[r.lowercaseJ=Ve]="lowercaseJ";const Ze=107;r[r.lowercaseK=Ze]="lowercaseK";const Vt=108;r[r.lowercaseL=Vt]="lowercaseL";const _t=109;r[r.lowercaseM=_t]="lowercaseM";const br=110;r[r.lowercaseN=br]="lowercaseN";const Kt=111;r[r.lowercaseO=Kt]="lowercaseO";const hr=112;r[r.lowercaseP=hr]="lowercaseP";const ci=113;r[r.lowercaseQ=ci]="lowercaseQ";const Os=114;r[r.lowercaseR=Os]="lowercaseR";const mn=115;r[r.lowercaseS=mn]="lowercaseS";const Ls=116;r[r.lowercaseT=Ls]="lowercaseT";const fi=117;r[r.lowercaseU=fi]="lowercaseU";const hi=118;r[r.lowercaseV=hi]="lowercaseV";const Ms=119;r[r.lowercaseW=Ms]="lowercaseW";const Bn=120;r[r.lowercaseX=Bn]="lowercaseX";const Yr=121;r[r.lowercaseY=Yr]="lowercaseY";const Fr=122;r[r.lowercaseZ=Fr]="lowercaseZ";const pi=123;r[r.leftCurlyBrace=pi]="leftCurlyBrace";const Cn=124;r[r.verticalBar=Cn]="verticalBar";const cs=125;r[r.rightCurlyBrace=cs]="rightCurlyBrace";const fs=126;r[r.tilde=fs]="tilde";const sn=160;r[r.nonBreakingSpace=sn]="nonBreakingSpace";const an=5760;r[r.oghamSpaceMark=an]="oghamSpaceMark";const Br=8232;r[r.lineSeparator=Br]="lineSeparator";const Ds=8233;r[r.paragraphSeparator=Ds]="paragraphSeparator"})(ue||(ue={}));let Gh,Tt,Dt,T,Be,JT;function ju(){return JT++}function rF(r){if("pos"in r){const e=sF(r.pos);r.message+=` (${e.line}:${e.column})`,r.loc=e}return r}class nF{constructor(e,t){this.line=e,this.column=t}}function sF(r){let e=1,t=1;for(let n=0;n<r;n++)Be.charCodeAt(n)===ue.lineFeed?(e++,t=1):t++;return new nF(e,t)}function iF(r,e,t,n){Be=r,T=new vn,JT=1,Gh=e,Tt=t,Dt=n}function ot(r){return T.contextualKeyword===r}function XT(r){const e=Yh();return e.type===p.name&&e.contextualKeyword===r}function nn(r){return T.contextualKeyword===r&&be(p.name)}function Mr(r){nn(r)||ft()}function On(){return U(p.eof)||U(p.braceR)||Is()}function Is(){const r=T.tokens[T.tokens.length-1],e=r?r.end:0;for(let t=e;t<T.start;t++){const n=Be.charCodeAt(t);if(n===ue.lineFeed||n===ue.carriageReturn||n===8232||n===8233)return!0}return!1}function aF(){const r=Bg();for(let e=T.end;e<r;e++){const t=Be.charCodeAt(e);if(t===ue.lineFeed||t===ue.carriageReturn||t===8232||t===8233)return!0}return!1}function ri(){return be(p.semi)||On()}function Yt(){ri()||ft('Unexpected token, expected ";"')}function ke(r){be(r)||ft(`Unexpected token, expected "${eF(r)}"`)}function ft(r="Unexpected token",e=T.start){if(T.error)return;const t=new SyntaxError(r);t.pos=e,T.error=t,T.pos=Be.length,mt(p.eof)}const QT=[9,11,12,ue.space,ue.nonBreakingSpace,ue.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],iw=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ZT=new Uint8Array(65536);for(const r of QT)ZT[r]=1;function oF(r){if(r<48)return r===36;if(r<58)return!0;if(r<65)return!1;if(r<91)return!0;if(r<97)return r===95;if(r<123)return!0;if(r<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const is=new Uint8Array(65536);for(let r=0;r<128;r++)is[r]=oF(r)?1:0;for(let r=128;r<65536;r++)is[r]=1;for(const r of QT)is[r]=0;is[8232]=0;is[8233]=0;const Zu=is.slice();for(let r=ue.digit0;r<=ue.digit9;r++)Zu[r]=0;const aw=new Int32Array([-1,27,594,729,1566,2187,2673,3294,-1,3510,-1,4428,4563,4644,4941,5319,5697,-1,6237,6696,7155,7587,7749,7911,-1,8127,-1,-1,-1,54,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,243,-1,-1,-1,486,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,216,-1,-1,-1,-1,-1,-1,Q._abstract<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Q._as<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,270,-1,-1,-1,-1,-1,405,-1,-1,-1,-1,-1,-1,297,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,324,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,351,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,378,-1,-1,-1,-1,-1,-1,-1,Q._asserts<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,459,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Q._async<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,513,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,540,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,567,-1,-1,-1,-1,-1,-1,Q._await<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,621,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,648,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,702,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._break<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,756,-1,-1,-1,-1,-1,-1,918,-1,-1,-1,1053,-1,-1,1161,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,783,837,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,810,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._case<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,864,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,891,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._catch<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,945,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,972,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,999,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1026,-1,-1,-1,-1,-1,-1,-1,Q._checks<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1080,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1107,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1134,-1,-1,-1,-1,-1,-1,-1,(p._class<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1188,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1215,1431,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1242,-1,-1,-1,-1,-1,-1,(p._const<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1269,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1296,-1,-1,-1,-1,-1,-1,-1,-1,1323,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1350,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1377,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1404,-1,-1,-1,-1,-1,-1,-1,-1,Q._constructor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1458,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1485,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1512,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1539,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._continue<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1593,-1,-1,-1,-1,-1,-1,-1,-1,-1,2160,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1620,1782,-1,-1,1917,-1,-1,-1,-1,-1,2052,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1647,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1674,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1701,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1728,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1755,-1,-1,-1,-1,-1,-1,-1,-1,(p._debugger<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1809,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1836,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1863,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1890,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Q._declare<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1944,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1971,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1998,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2025,-1,-1,-1,-1,-1,-1,(p._default<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2079,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2106,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2133,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._delete<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._do<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2214,-1,2295,-1,-1,-1,-1,-1,-1,-1,-1,-1,2376,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2241,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2268,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._else<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2322,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2349,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Q._enum<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2403,-1,-1,-1,2538,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2430,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2457,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2484,-1,-1,-1,-1,-1,-1,(p._export<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2511,-1,-1,-1,-1,-1,-1,-1,Q._exports<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2565,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2592,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2619,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2646,-1,-1,-1,-1,-1,-1,-1,(p._extends<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2700,-1,-1,-1,-1,-1,-1,-1,2808,-1,-1,-1,-1,-1,2970,-1,-1,3024,-1,-1,3105,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2727,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2754,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2781,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._false<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2835,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2862,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2889,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2916,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2943,-1,(p._finally<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2997,-1,-1,-1,-1,-1,-1,-1,-1,(p._for<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3051,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3078,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Q._from<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3132,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3159,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3186,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3213,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3240,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3267,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._function<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3321,-1,-1,-1,-1,-1,-1,3375,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3348,-1,-1,-1,-1,-1,-1,Q._get<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3402,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3429,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3456,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3483,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Q._global<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3537,-1,-1,-1,-1,-1,-1,3564,3888,-1,-1,-1,-1,4401,-1,-1,-1,-1,-1,-1,-1,(p._if<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3591,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3618,-1,-1,3807,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3645,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3672,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3699,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3726,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3753,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3780,-1,-1,-1,-1,-1,-1,-1,Q._implements<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3834,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3861,-1,-1,-1,-1,-1,-1,(p._import<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._in<<1)+1,-1,-1,-1,-1,-1,3915,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3996,4212,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3942,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3969,-1,-1,-1,-1,-1,-1,-1,-1,Q._infer<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4023,-1,-1,-1,-1,-1,-1,-1,4050,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4077,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4104,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4131,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4158,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4185,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._instanceof<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4239,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4266,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4293,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4320,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4347,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4374,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Q._interface<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Q._is<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4455,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4482,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4509,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4536,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Q._keyof<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4590,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4617,-1,-1,-1,-1,-1,-1,(p._let<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4671,-1,-1,-1,-1,-1,4806,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4698,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4725,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4752,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4779,-1,-1,-1,-1,-1,-1,-1,Q._mixins<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4833,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4860,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4887,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4914,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Q._module<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4968,-1,-1,-1,5184,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5238,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4995,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5022,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5049,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5076,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5103,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5130,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5157,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Q._namespace<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5211,-1,-1,-1,(p._new<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5265,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5292,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._null<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5346,-1,-1,-1,-1,-1,-1,-1,-1,-1,5373,-1,-1,-1,-1,-1,5508,-1,-1,-1,-1,Q._of<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5400,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5427,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5454,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5481,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Q._opaque<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5535,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5562,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5589,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5616,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5643,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5670,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Q._override<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5724,-1,-1,6102,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5751,-1,-1,-1,-1,-1,5886,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5778,-1,-1,-1,-1,-1,5805,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5832,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5859,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Q._private<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5913,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5940,-1,-1,-1,-1,-1,-1,-1,-1,-1,6075,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5967,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5994,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6021,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6048,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Q._protected<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Q._proto<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6129,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6156,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6183,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6210,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Q._public<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6264,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6291,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6453,-1,-1,6588,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6318,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6345,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6372,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6399,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6426,-1,Q._readonly<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6480,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6507,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6534,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6561,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Q._require<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6615,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6642,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6669,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._return<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6723,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6777,6912,-1,7020,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6750,-1,-1,-1,-1,-1,-1,Q._set<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6804,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6831,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6858,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6885,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Q._static<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6939,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6966,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6993,-1,-1,-1,-1,-1,-1,-1,-1,(p._super<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7047,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7074,-1,-1,-1,-1,-1,-1,-1,-1,-1,7101,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7128,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._switch<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7182,-1,-1,-1,-1,-1,-1,-1,-1,-1,7344,-1,-1,-1,-1,-1,-1,7452,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7209,-1,-1,-1,-1,-1,-1,-1,-1,7263,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7236,-1,-1,-1,-1,-1,-1,-1,(p._this<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7290,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7317,-1,-1,-1,(p._throw<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7371,-1,-1,-1,7425,-1,-1,-1,-1,-1,-1,7398,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._true<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._try<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7479,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7506,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Q._type<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7533,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7560,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._typeof<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7614,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7641,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7668,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7695,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7722,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Q._unique<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7776,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7830,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7803,-1,-1,-1,-1,-1,-1,-1,-1,(p._var<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7857,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7884,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._void<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7938,8046,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7965,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7992,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8019,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._while<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8073,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8100,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._with<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8154,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8181,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8208,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8235,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);function lF(){let r=0,e=0,t=T.pos;for(;t<Be.length&&(e=Be.charCodeAt(t),!(e<ue.lowercaseA||e>ue.lowercaseZ));){const s=aw[r+(e-ue.lowercaseA)+1];if(s===-1)break;r=s,t++}const n=aw[r];if(n>-1&&!is[e]){T.pos=t,n&1?mt(n>>>1):mt(p.name,n>>>1);return}for(;t<Be.length;){const s=Be.charCodeAt(t);if(is[s])t++;else if(s===ue.backslash){if(t+=2,Be.charCodeAt(t)===ue.leftCurlyBrace){for(;t<Be.length&&Be.charCodeAt(t)!==ue.rightCurlyBrace;)t++;t++}}else if(s===ue.atSign&&Be.charCodeAt(t+1)===ue.atSign)t+=2;else break}T.pos=t,mt(p.name)}var pt;(function(r){r[r.Access=0]="Access";const t=0+1;r[r.ExportAccess=t]="ExportAccess";const n=t+1;r[r.TopLevelDeclaration=n]="TopLevelDeclaration";const s=n+1;r[r.FunctionScopedDeclaration=s]="FunctionScopedDeclaration";const a=s+1;r[r.BlockScopedDeclaration=a]="BlockScopedDeclaration";const l=a+1;r[r.ObjectShorthandTopLevelDeclaration=l]="ObjectShorthandTopLevelDeclaration";const u=l+1;r[r.ObjectShorthandFunctionScopedDeclaration=u]="ObjectShorthandFunctionScopedDeclaration";const c=u+1;r[r.ObjectShorthandBlockScopedDeclaration=c]="ObjectShorthandBlockScopedDeclaration";const m=c+1;r[r.ObjectShorthand=m]="ObjectShorthand";const g=m+1;r[r.ImportDeclaration=g]="ImportDeclaration";const v=g+1;r[r.ObjectKey=v]="ObjectKey";const b=v+1;r[r.ImportAccess=b]="ImportAccess"})(pt||(pt={}));function e_(r){const e=r.identifierRole;return e===pt.TopLevelDeclaration||e===pt.FunctionScopedDeclaration||e===pt.BlockScopedDeclaration||e===pt.ObjectShorthandTopLevelDeclaration||e===pt.ObjectShorthandFunctionScopedDeclaration||e===pt.ObjectShorthandBlockScopedDeclaration}function uF(r){const e=r.identifierRole;return e===pt.FunctionScopedDeclaration||e===pt.BlockScopedDeclaration||e===pt.ObjectShorthandFunctionScopedDeclaration||e===pt.ObjectShorthandBlockScopedDeclaration}function t_(r){const e=r.identifierRole;return e===pt.TopLevelDeclaration||e===pt.ObjectShorthandTopLevelDeclaration||e===pt.ImportDeclaration}function cF(r){const e=r.identifierRole;return e===pt.TopLevelDeclaration||e===pt.BlockScopedDeclaration||e===pt.ObjectShorthandTopLevelDeclaration||e===pt.ObjectShorthandBlockScopedDeclaration}function fF(r){const e=r.identifierRole;return e===pt.FunctionScopedDeclaration||e===pt.ObjectShorthandFunctionScopedDeclaration}function hF(r){return r.identifierRole===pt.ObjectShorthandTopLevelDeclaration||r.identifierRole===pt.ObjectShorthandBlockScopedDeclaration||r.identifierRole===pt.ObjectShorthandFunctionScopedDeclaration}class Kh{constructor(){this.type=T.type,this.contextualKeyword=T.contextualKeyword,this.start=T.start,this.end=T.end,this.scopeDepth=T.scopeDepth,this.isType=T.isType,this.identifierRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}}function Te(){T.tokens.push(new Kh),i_()}function Pi(){T.tokens.push(new Kh),T.start=T.pos,PF()}function pF(){T.type===p.assign&&--T.pos,EF()}function gt(r){for(let t=T.tokens.length-r;t<T.tokens.length;t++)T.tokens[t].isType=!0;const e=T.isType;return T.isType=!0,e}function yt(r){T.isType=r}function be(r){return U(r)?(Te(),!0):!1}function r_(r){const e=T.isType;T.isType=!0,be(r),T.isType=e}function U(r){return T.type===r}function ir(){const r=T.snapshot();Te();const e=T.type;return T.restoreFromSnapshot(r),e}class dF{constructor(e,t){this.type=e,this.contextualKeyword=t}}function Yh(){const r=T.snapshot();Te();const e=T.type,t=T.contextualKeyword;return T.restoreFromSnapshot(r),new dF(e,t)}function Bg(){return n_(T.pos)}function n_(r){iw.lastIndex=r;const e=iw.exec(Be);return r+e[0].length}function s_(){return Be.charCodeAt(Bg())}function i_(){if(o_(),T.start=T.pos,T.pos>=Be.length){const r=T.tokens;r.length>=2&&r[r.length-1].start>=Be.length&&r[r.length-2].start>=Be.length&&ft("Unexpectedly reached the end of input."),mt(p.eof);return}mF(Be.charCodeAt(T.pos))}function mF(r){Zu[r]||r===ue.backslash||r===ue.atSign&&Be.charCodeAt(T.pos+1)===ue.atSign?lF():l_(r)}function gF(){for(;Be.charCodeAt(T.pos)!==ue.asterisk||Be.charCodeAt(T.pos+1)!==ue.slash;)if(T.pos++,T.pos>Be.length){ft("Unterminated comment",T.pos-2);return}T.pos+=2}function a_(r){let e=Be.charCodeAt(T.pos+=r);if(T.pos<Be.length)for(;e!==ue.lineFeed&&e!==ue.carriageReturn&&e!==ue.lineSeparator&&e!==ue.paragraphSeparator&&++T.pos<Be.length;)e=Be.charCodeAt(T.pos)}function o_(){for(;T.pos<Be.length;){const r=Be.charCodeAt(T.pos);switch(r){case ue.carriageReturn:Be.charCodeAt(T.pos+1)===ue.lineFeed&&++T.pos;case ue.lineFeed:case ue.lineSeparator:case ue.paragraphSeparator:++T.pos;break;case ue.slash:switch(Be.charCodeAt(T.pos+1)){case ue.asterisk:T.pos+=2,gF();break;case ue.slash:a_(2);break;default:return}break;default:if(ZT[r])++T.pos;else return}}}function mt(r,e=Q.NONE){T.end=T.pos,T.type=r,T.contextualKeyword=e}function yF(){const r=Be.charCodeAt(T.pos+1);if(r>=ue.digit0&&r<=ue.digit9){u_(!0);return}r===ue.dot&&Be.charCodeAt(T.pos+2)===ue.dot?(T.pos+=3,mt(p.ellipsis)):(++T.pos,mt(p.dot))}function vF(){Be.charCodeAt(T.pos+1)===ue.equalsTo?zt(p.assign,2):zt(p.slash,1)}function bF(r){let e=r===ue.asterisk?p.star:p.modulo,t=1,n=Be.charCodeAt(T.pos+1);r===ue.asterisk&&n===ue.asterisk&&(t++,n=Be.charCodeAt(T.pos+2),e=p.exponent),n===ue.equalsTo&&Be.charCodeAt(T.pos+2)!==ue.greaterThan&&(t++,e=p.assign),zt(e,t)}function wF(r){const e=Be.charCodeAt(T.pos+1);if(e===r){Be.charCodeAt(T.pos+2)===ue.equalsTo?zt(p.assign,3):zt(r===ue.verticalBar?p.logicalOR:p.logicalAND,2);return}if(r===ue.verticalBar){if(e===ue.greaterThan){zt(p.pipeline,2);return}else if(e===ue.rightCurlyBrace&&Dt){zt(p.braceBarR,2);return}}if(e===ue.equalsTo){zt(p.assign,2);return}zt(r===ue.verticalBar?p.bitwiseOR:p.bitwiseAND,1)}function xF(){Be.charCodeAt(T.pos+1)===ue.equalsTo?zt(p.assign,2):zt(p.bitwiseXOR,1)}function SF(r){const e=Be.charCodeAt(T.pos+1);if(e===r){zt(p.preIncDec,2);return}e===ue.equalsTo?zt(p.assign,2):r===ue.plusSign?zt(p.plus,1):zt(p.minus,1)}function kF(r){const e=Be.charCodeAt(T.pos+1);if(e===r){const t=r===ue.greaterThan&&Be.charCodeAt(T.pos+2)===ue.greaterThan?3:2;if(Be.charCodeAt(T.pos+t)===ue.equalsTo){zt(p.assign,t+1);return}if(r===ue.greaterThan&&T.isType){zt(p.greaterThan,1);return}zt(p.bitShift,t);return}e===ue.equalsTo?zt(p.relationalOrEqual,2):r===ue.lessThan?zt(p.lessThan,1):zt(p.greaterThan,1)}function TF(r){const e=Be.charCodeAt(T.pos+1);if(e===ue.equalsTo){zt(p.equality,Be.charCodeAt(T.pos+2)===ue.equalsTo?3:2);return}if(r===ue.equalsTo&&e===ue.greaterThan){T.pos+=2,mt(p.arrow);return}zt(r===ue.equalsTo?p.eq:p.bang,1)}function _F(){const r=Be.charCodeAt(T.pos+1),e=Be.charCodeAt(T.pos+2);r===ue.questionMark&&!T.isType?e===ue.equalsTo?zt(p.assign,3):zt(p.nullishCoalescing,2):r===ue.dot&&!(e>=ue.digit0&&e<=ue.digit9)?(T.pos+=2,mt(p.questionDot)):(++T.pos,mt(p.question))}function l_(r){switch(r){case ue.numberSign:++T.pos,mt(p.hash);return;case ue.dot:yF();return;case ue.leftParenthesis:++T.pos,mt(p.parenL);return;case ue.rightParenthesis:++T.pos,mt(p.parenR);return;case ue.semicolon:++T.pos,mt(p.semi);return;case ue.comma:++T.pos,mt(p.comma);return;case ue.leftSquareBracket:++T.pos,mt(p.bracketL);return;case ue.rightSquareBracket:++T.pos,mt(p.bracketR);return;case ue.leftCurlyBrace:Dt&&Be.charCodeAt(T.pos+1)===ue.verticalBar?zt(p.braceBarL,2):(++T.pos,mt(p.braceL));return;case ue.rightCurlyBrace:++T.pos,mt(p.braceR);return;case ue.colon:Be.charCodeAt(T.pos+1)===ue.colon?zt(p.doubleColon,2):(++T.pos,mt(p.colon));return;case ue.questionMark:_F();return;case ue.atSign:++T.pos,mt(p.at);return;case ue.graveAccent:++T.pos,mt(p.backQuote);return;case ue.digit0:{const e=Be.charCodeAt(T.pos+1);if(e===ue.lowercaseX||e===ue.uppercaseX||e===ue.lowercaseO||e===ue.uppercaseO||e===ue.lowercaseB||e===ue.uppercaseB){AF();return}}case ue.digit1:case ue.digit2:case ue.digit3:case ue.digit4:case ue.digit5:case ue.digit6:case ue.digit7:case ue.digit8:case ue.digit9:u_(!1);return;case ue.quotationMark:case ue.apostrophe:CF(r);return;case ue.slash:vF();return;case ue.percentSign:case ue.asterisk:bF(r);return;case ue.verticalBar:case ue.ampersand:wF(r);return;case ue.caret:xF();return;case ue.plusSign:case ue.dash:SF(r);return;case ue.lessThan:case ue.greaterThan:kF(r);return;case ue.equalsTo:case ue.exclamationMark:TF(r);return;case ue.tilde:zt(p.tilde,1);return}ft(`Unexpected character '${String.fromCharCode(r)}'`,T.pos)}function zt(r,e){T.pos+=e,mt(r)}function EF(){const r=T.pos;let e=!1,t=!1;for(;;){if(T.pos>=Be.length){ft("Unterminated regular expression",r);return}const n=Be.charCodeAt(T.pos);if(e)e=!1;else{if(n===ue.leftSquareBracket)t=!0;else if(n===ue.rightSquareBracket&&t)t=!1;else if(n===ue.slash&&!t)break;e=n===ue.backslash}++T.pos}++T.pos,IF(),mt(p.regexp)}function pf(){for(;;){const r=Be.charCodeAt(T.pos);if(r>=ue.digit0&&r<=ue.digit9||r>=ue.lowercaseA&&r<=ue.lowercaseF||r>=ue.uppercaseA&&r<=ue.uppercaseF||r===ue.underscore)T.pos++;else break}}function AF(){let r=!1;const e=T.pos;T.pos+=2,pf();const t=Be.charCodeAt(T.pos);if(t===ue.lowercaseN?(++T.pos,r=!0):t===ue.lowercaseM&&ft("Invalid decimal",e),r){mt(p.bigint);return}mt(p.num)}function u_(r){let e=!1,t=!1;r||pf();let n=Be.charCodeAt(T.pos);if(n===ue.dot&&(++T.pos,pf(),n=Be.charCodeAt(T.pos)),(n===ue.uppercaseE||n===ue.lowercaseE)&&(n=Be.charCodeAt(++T.pos),(n===ue.plusSign||n===ue.dash)&&++T.pos,pf(),n=Be.charCodeAt(T.pos)),n===ue.lowercaseN?(++T.pos,e=!0):n===ue.lowercaseM&&(++T.pos,t=!0),e){mt(p.bigint);return}if(t){mt(p.decimal);return}mt(p.num)}function CF(r){for(T.pos++;;){if(T.pos>=Be.length){ft("Unterminated string constant");return}const e=Be.charCodeAt(T.pos);if(e===ue.backslash)T.pos++;else if(e===r)break;T.pos++}T.pos++,mt(p.string)}function PF(){for(;;){if(T.pos>=Be.length){ft("Unterminated template");return}const r=Be.charCodeAt(T.pos);if(r===ue.graveAccent||r===ue.dollarSign&&Be.charCodeAt(T.pos+1)===ue.leftCurlyBrace){if(T.pos===T.start&&U(p.template))if(r===ue.dollarSign){T.pos+=2,mt(p.dollarBraceL);return}else{++T.pos,mt(p.backQuote);return}mt(p.template);return}r===ue.backslash&&T.pos++,T.pos++}}function IF(){for(;T.pos<Be.length;){const r=Be.charCodeAt(T.pos);if(is[r])T.pos++;else if(r===ue.backslash){if(T.pos+=2,Be.charCodeAt(T.pos)===ue.leftCurlyBrace){for(;T.pos<Be.length&&Be.charCodeAt(T.pos)!==ue.rightCurlyBrace;)T.pos++;T.pos++}}else break}}const NF={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"};function c_(r){const[e,t]=ow(r.jsxPragma||"React.createElement"),[n,s]=ow(r.jsxFragmentPragma||"React.Fragment");return{base:e,suffix:t,fragmentBase:n,fragmentSuffix:s}}function ow(r){let e=r.indexOf(".");return e===-1&&(e=r.length),[r.slice(0,e),r.slice(e)]}class ls{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}const OF=/^[\da-fA-F]+$/,LF=/^\d+$/;class fu extends ls{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}constructor(e,t,n,s,a){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=n,this.nameManager=s,this.options=a,fu.prototype.__init.call(this),fu.prototype.__init2.call(this),fu.prototype.__init3.call(this),this.jsxPragmaInfo=c_(a)}process(){return this.tokens.matches1(p.jsxTagStart)?(this.processJSXTag(),!0):!1}getPrefixCode(){return this.filenameVarName?`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`:""}getLineNumberForIndex(e){const t=this.tokens.code;for(;this.lastIndex<e&&this.lastIndex<t.length;)t[this.lastIndex]===`
`&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}getFilenameVarName(){return this.filenameVarName||(this.filenameVarName=this.nameManager.claimFreeName("_jsxFileName")),this.filenameVarName}processProps(e){const t=this.getLineNumberForIndex(e),n=this.options.production?"":`__self: this, __source: {fileName: ${this.getFilenameVarName()}, lineNumber: ${t}}`;if(!this.tokens.matches1(p.jsxName)&&!this.tokens.matches1(p.braceL)){n?this.tokens.appendCode(`, {${n}}`):this.tokens.appendCode(", null");return}for(this.tokens.appendCode(", {");;){if(this.tokens.matches2(p.jsxName,p.eq))this.processPropKeyName(),this.tokens.replaceToken(": "),this.tokens.matches1(p.braceL)?(this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")):this.tokens.matches1(p.jsxTagStart)?this.processJSXTag():this.processStringPropValue();else if(this.tokens.matches1(p.jsxName))this.processPropKeyName(),this.tokens.appendCode(": true");else if(this.tokens.matches1(p.braceL))this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("");else break;this.tokens.appendCode(",")}n?this.tokens.appendCode(` ${n}}`):this.tokens.appendCode("}")}processPropKeyName(){const e=this.tokens.identifierName();e.includes("-")?this.tokens.replaceToken(`'${e}'`):this.tokens.copyToken()}processStringPropValue(){const e=this.tokens.currentToken(),t=this.tokens.code.slice(e.start+1,e.end-1),n=lw(t),s=DF(t);this.tokens.replaceToken(s+n)}processTagIntro(){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType||!this.tokens.matches2AtIndex(e-1,p.jsxName,p.jsxName)&&!this.tokens.matches2AtIndex(e-1,p.greaterThan,p.jsxName)&&!this.tokens.matches1AtIndex(e,p.braceL)&&!this.tokens.matches1AtIndex(e,p.jsxTagEnd)&&!this.tokens.matches2AtIndex(e,p.slash,p.jsxTagEnd);)e++;if(e===this.tokens.currentIndex()+1){const t=this.tokens.identifierName();f_(t)&&this.tokens.replaceToken(`'${t}'`)}for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken()}processChildren(){for(;;){if(this.tokens.matches2(p.jsxTagStart,p.slash))return;if(this.tokens.matches1(p.braceL))this.tokens.matches2(p.braceL,p.braceR)?(this.tokens.replaceToken(""),this.tokens.replaceToken("")):(this.tokens.replaceToken(", "),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(""));else if(this.tokens.matches1(p.jsxTagStart))this.tokens.appendCode(", "),this.processJSXTag();else if(this.tokens.matches1(p.jsxText))this.processChildTextElement();else throw new Error("Unexpected token when processing JSX children.")}}processChildTextElement(){const e=this.tokens.currentToken(),t=this.tokens.code.slice(e.start,e.end),n=lw(t),s=MF(t);s==='""'?this.tokens.replaceToken(n):this.tokens.replaceToken(`, ${s}${n}`)}processJSXTag(){const{jsxPragmaInfo:e}=this,t=this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.base)||e.base,n=this.tokens.currentToken().start;if(this.tokens.replaceToken(`${t}${e.suffix}(`),this.tokens.matches1(p.jsxTagEnd)){const s=this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.fragmentBase)||e.fragmentBase;for(this.tokens.replaceToken(`${s}${e.fragmentSuffix}, null`),this.processChildren();!this.tokens.matches1(p.jsxTagEnd);)this.tokens.replaceToken("");this.tokens.replaceToken(")")}else if(this.processTagIntro(),this.processProps(n),this.tokens.matches2(p.slash,p.jsxTagEnd))this.tokens.replaceToken(""),this.tokens.replaceToken(")");else if(this.tokens.matches1(p.jsxTagEnd)){for(this.tokens.replaceToken(""),this.processChildren();!this.tokens.matches1(p.jsxTagEnd);)this.tokens.replaceToken("");this.tokens.replaceToken(")")}else throw new Error("Expected either /> or > at the end of the tag.")}}function f_(r){const e=r.charCodeAt(0);return e>=ue.lowercaseA&&e<=ue.lowercaseZ}function MF(r){let e="",t="",n=!1,s=!1;for(let a=0;a<r.length;a++){const l=r[a];if(l===" "||l===" "||l==="\r")n||(t+=l);else if(l===`
`)t="",n=!0;else{if(s&&n&&(e+=" "),e+=t,t="",l==="&"){const{entity:u,newI:c}=h_(r,a+1);a=c-1,e+=u}else e+=l;s=!0,n=!1}}return n||(e+=t),JSON.stringify(e)}function lw(r){let e=0,t=0;for(const n of r)n===`
`?(e++,t=0):n===" "&&t++;return`
`.repeat(e)+" ".repeat(t)}function DF(r){let e="";for(let t=0;t<r.length;t++){const n=r[t];if(n===`
`)if(/\s/.test(r[t+1]))for(e+=" ";t<r.length&&/\s/.test(r[t+1]);)t++;else e+=`
`;else if(n==="&"){const{entity:s,newI:a}=h_(r,t+1);e+=s,t=a-1}else e+=n}return JSON.stringify(e)}function h_(r,e){let t="",n=0,s,a=e;for(;a<r.length&&n++<10;){const l=r[a];if(a++,l===";"){t[0]==="#"?t[1]==="x"?(t=t.substr(2),OF.test(t)&&(s=String.fromCodePoint(parseInt(t,16)))):(t=t.substr(1),LF.test(t)&&(s=String.fromCodePoint(parseInt(t,10)))):s=NF[t];break}t+=l}return s?{entity:s,newI:a}:{entity:"&",newI:e}}function p_(r,e){const t=c_(e),n=new Set;for(let s=0;s<r.tokens.length;s++){const a=r.tokens[s];if(a.type===p.name&&!a.isType&&(a.identifierRole===pt.Access||a.identifierRole===pt.ObjectShorthand||a.identifierRole===pt.ExportAccess)&&!a.shadowsGlobal&&n.add(r.identifierNameForToken(a)),a.type===p.jsxTagStart&&n.add(t.base),a.type===p.jsxTagStart&&s+1<r.tokens.length&&r.tokens[s+1].type===p.jsxTagEnd&&(n.add(t.base),n.add(t.fragmentBase)),a.type===p.jsxName&&a.identifierRole===pt.Access){const l=r.identifierNameForToken(a);(!f_(l)||r.tokens[s+1].type===p.dot)&&n.add(r.identifierNameForToken(a))}}return n}class ca{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(e,t,n,s,a,l){this.nameManager=e,this.tokens=t,this.enableLegacyTypeScriptModuleInterop=n,this.options=s,this.isTypeScriptTransformEnabled=a,this.helperManager=l,ca.prototype.__init.call(this),ca.prototype.__init2.call(this),ca.prototype.__init3.call(this),ca.prototype.__init4.call(this),ca.prototype.__init5.call(this)}preprocessTokens(){for(let e=0;e<this.tokens.tokens.length;e++)this.tokens.matches1AtIndex(e,p._import)&&!this.tokens.matches3AtIndex(e,p._import,p.name,p.eq)&&this.preprocessImportAtIndex(e),this.tokens.matches1AtIndex(e,p._export)&&!this.tokens.matches2AtIndex(e,p._export,p.eq)&&this.preprocessExportAtIndex(e);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=p_(this.tokens,this.options);for(const[e,t]of this.importInfoByPath.entries()){if(t.hasBareImport||t.hasStarExport||t.exportStarNames.length>0||t.namedExports.length>0)continue;[...t.defaultNames,...t.wildcardNames,...t.namedImports.map(({localName:s})=>s)].every(s=>this.isTypeName(s))&&this.importsToReplace.set(e,"")}}isTypeName(e){return this.isTypeScriptTransformEnabled&&!this.nonTypeIdentifiers.has(e)}generateImportReplacements(){for(const[e,t]of this.importInfoByPath.entries()){const{defaultNames:n,wildcardNames:s,namedImports:a,namedExports:l,exportStarNames:u,hasStarExport:c}=t;if(n.length===0&&s.length===0&&a.length===0&&l.length===0&&u.length===0&&!c){this.importsToReplace.set(e,`require('${e}');`);continue}const m=this.getFreeIdentifierForPath(e);let g;this.enableLegacyTypeScriptModuleInterop?g=m:g=s.length>0?s[0]:this.getFreeIdentifierForPath(e);let v=`var ${m} = require('${e}');`;if(s.length>0)for(const b of s){const x=this.enableLegacyTypeScriptModuleInterop?m:`${this.helperManager.getHelperName("interopRequireWildcard")}(${m})`;v+=` var ${b} = ${x};`}else u.length>0&&g!==m?v+=` var ${g} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${m});`:n.length>0&&g!==m&&(v+=` var ${g} = ${this.helperManager.getHelperName("interopRequireDefault")}(${m});`);for(const{importedName:b,localName:x}of l)v+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${m}, '${x}', '${b}');`;for(const b of u)v+=` exports.${b} = ${g};`;c&&(v+=` ${this.helperManager.getHelperName("createStarExport")}(${m});`),this.importsToReplace.set(e,v);for(const b of n)this.identifierReplacements.set(b,`${g}.default`);for(const{importedName:b,localName:x}of a)this.identifierReplacements.set(x,`${m}.${b}`)}}getFreeIdentifierForPath(e){const t=e.split("/"),s=t[t.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${s}`)}preprocessImportAtIndex(e){const t=[],n=[],s=[];if(e++,(this.tokens.matchesContextualAtIndex(e,Q._type)||this.tokens.matches1AtIndex(e,p._typeof))&&!this.tokens.matches1AtIndex(e+1,p.comma)&&!this.tokens.matchesContextualAtIndex(e+1,Q._from)||this.tokens.matches1AtIndex(e,p.parenL))return;if(this.tokens.matches1AtIndex(e,p.name)&&(t.push(this.tokens.identifierNameAtIndex(e)),e++,this.tokens.matches1AtIndex(e,p.comma)&&e++),this.tokens.matches1AtIndex(e,p.star)&&(e+=2,n.push(this.tokens.identifierNameAtIndex(e)),e++),this.tokens.matches1AtIndex(e,p.braceL)){const u=this.getNamedImports(e+1);e=u.newIndex;for(const c of u.namedImports)c.importedName==="default"?t.push(c.localName):s.push(c)}if(this.tokens.matchesContextualAtIndex(e,Q._from)&&e++,!this.tokens.matches1AtIndex(e,p.string))throw new Error("Expected string token at the end of import statement.");const a=this.tokens.stringValueAtIndex(e),l=this.getImportInfo(a);l.defaultNames.push(...t),l.wildcardNames.push(...n),l.namedImports.push(...s),t.length===0&&n.length===0&&s.length===0&&(l.hasBareImport=!0)}preprocessExportAtIndex(e){if(this.tokens.matches2AtIndex(e,p._export,p._var)||this.tokens.matches2AtIndex(e,p._export,p._let)||this.tokens.matches2AtIndex(e,p._export,p._const))this.preprocessVarExportAtIndex(e);else if(this.tokens.matches2AtIndex(e,p._export,p._function)||this.tokens.matches2AtIndex(e,p._export,p._class)){const t=this.tokens.identifierNameAtIndex(e+2);this.addExportBinding(t,t)}else if(this.tokens.matches3AtIndex(e,p._export,p.name,p._function)){const t=this.tokens.identifierNameAtIndex(e+3);this.addExportBinding(t,t)}else this.tokens.matches2AtIndex(e,p._export,p.braceL)?this.preprocessNamedExportAtIndex(e):this.tokens.matches2AtIndex(e,p._export,p.star)&&this.preprocessExportStarAtIndex(e)}preprocessVarExportAtIndex(e){let t=0;for(let n=e+2;;n++)if(this.tokens.matches1AtIndex(n,p.braceL)||this.tokens.matches1AtIndex(n,p.dollarBraceL)||this.tokens.matches1AtIndex(n,p.bracketL))t++;else if(this.tokens.matches1AtIndex(n,p.braceR)||this.tokens.matches1AtIndex(n,p.bracketR))t--;else{if(t===0&&!this.tokens.matches1AtIndex(n,p.name))break;if(this.tokens.matches1AtIndex(1,p.eq)){const s=this.tokens.currentToken().rhsEndIndex;if(s==null)throw new Error("Expected = token with an end index.");n=s-1}else{const s=this.tokens.tokens[n];if(e_(s)){const a=this.tokens.identifierNameAtIndex(n);this.identifierReplacements.set(a,`exports.${a}`)}}}}preprocessNamedExportAtIndex(e){e+=2;const{newIndex:t,namedImports:n}=this.getNamedImports(e);if(e=t,this.tokens.matchesContextualAtIndex(e,Q._from))e++;else{for(const{importedName:l,localName:u}of n)this.addExportBinding(l,u);return}if(!this.tokens.matches1AtIndex(e,p.string))throw new Error("Expected string token at the end of import statement.");const s=this.tokens.stringValueAtIndex(e);this.getImportInfo(s).namedExports.push(...n)}preprocessExportStarAtIndex(e){let t=null;if(this.tokens.matches3AtIndex(e,p._export,p.star,p._as)?(e+=3,t=this.tokens.identifierNameAtIndex(e),e+=2):e+=3,!this.tokens.matches1AtIndex(e,p.string))throw new Error("Expected string token at the end of star export statement.");const n=this.tokens.stringValueAtIndex(e),s=this.getImportInfo(n);t!==null?s.exportStarNames.push(t):s.hasStarExport=!0}getNamedImports(e){const t=[];for(;;){if(this.tokens.matches1AtIndex(e,p.braceR)){e++;break}let n=!1;(this.tokens.matchesContextualAtIndex(e,Q._type)||this.tokens.matches1AtIndex(e,p._typeof))&&this.tokens.matches1AtIndex(e+1,p.name)&&!this.tokens.matchesContextualAtIndex(e+1,Q._as)&&(n=!0,e++);const s=this.tokens.identifierNameAtIndex(e);let a;if(e++,this.tokens.matchesContextualAtIndex(e,Q._as)?(e++,a=this.tokens.identifierNameAtIndex(e),e++):a=s,n||t.push({importedName:s,localName:a}),this.tokens.matches2AtIndex(e,p.comma,p.braceR)){e+=2;break}else if(this.tokens.matches1AtIndex(e,p.braceR)){e++;break}else if(this.tokens.matches1AtIndex(e,p.comma))e++;else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[e])}`)}return{newIndex:e,namedImports:t}}getImportInfo(e){const t=this.importInfoByPath.get(e);if(t)return t;const n={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(e,n),n}addExportBinding(e,t){this.exportBindingsByLocalName.has(e)||this.exportBindingsByLocalName.set(e,[]),this.exportBindingsByLocalName.get(e).push(t)}claimImportCode(e){const t=this.importsToReplace.get(e);return this.importsToReplace.set(e,""),t||""}getIdentifierReplacement(e){return this.identifierReplacements.get(e)||null}resolveExportBinding(e){const t=this.exportBindingsByLocalName.get(e);return!t||t.length===0?null:t.map(n=>`exports.${n}`).join(" = ")}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}function RF(r,e,{compiledFilename:t}){let n="AAAA";for(let s=0;s<r.length;s++)r.charCodeAt(s)===ue.lineFeed&&(n+=";AACA");return{version:3,file:t||"",sources:[e],mappings:n,names:[]}}const FF={interopRequireWildcard:`
function interopRequireWildcard(obj) {
if (obj && obj.__esModule) {
return obj;
} else {
var newObj = {};
if (obj != null) {
for (var key in obj) {
if (Object.prototype.hasOwnProperty.call(obj, key)) {
newObj[key] = obj[key];
}
}
}
newObj.default = obj;
return newObj;
}
}
`,interopRequireDefault:`
function interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}
`,createNamedExportFrom:`
function createNamedExportFrom(obj, localName, importedName) {
Object.defineProperty(exports, localName, {enumerable: true, get: () => obj[importedName]});
}
`,createStarExport:`
function createStarExport(obj) {
Object.keys(obj)
.filter((key) => key !== "default" && key !== "__esModule")
.forEach((key) => {
if (exports.hasOwnProperty(key)) {
return;
}
Object.defineProperty(exports, key, {enumerable: true, get: () => obj[key]});
});
}
`,nullishCoalesce:`
function nullishCoalesce(lhs, rhsFn) {
if (lhs != null) {
return lhs;
} else {
return rhsFn();
}
}
`,asyncNullishCoalesce:`
async function asyncNullishCoalesce(lhs, rhsFn) {
if (lhs != null) {
return lhs;
} else {
return await rhsFn();
}
}
`,optionalChain:`
function optionalChain(ops) {
let lastAccessLHS = undefined;
let value = ops[0];
let i = 1;
while (i < ops.length) {
const op = ops[i];
const fn = ops[i + 1];
i += 2;
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
return undefined;
}
if (op === 'access' || op === 'optionalAccess') {
lastAccessLHS = value;
value = fn(value);
} else if (op === 'call' || op === 'optionalCall') {
value = fn((...args) => value.call(lastAccessLHS, ...args));
lastAccessLHS = undefined;
}
}
return value;
}
`,asyncOptionalChain:`
async function asyncOptionalChain(ops) {
let lastAccessLHS = undefined;
let value = ops[0];
let i = 1;
while (i < ops.length) {
const op = ops[i];
const fn = ops[i + 1];
i += 2;
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
return undefined;
}
if (op === 'access' || op === 'optionalAccess') {
lastAccessLHS = value;
value = await fn(value);
} else if (op === 'call' || op === 'optionalCall') {
value = await fn((...args) => value.call(lastAccessLHS, ...args));
lastAccessLHS = undefined;
}
}
return value;
}
`,optionalChainDelete:`
function optionalChainDelete(ops) {
const result = OPTIONAL_CHAIN_NAME(ops);
return result == null ? true : result;
}
`,asyncOptionalChainDelete:`
async function asyncOptionalChainDelete(ops) {
const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);
return result == null ? true : result;
}
`};class $g{__init(){this.helperNames={}}constructor(e){this.nameManager=e,$g.prototype.__init.call(this)}getHelperName(e){let t=this.helperNames[e];return t||(t=this.nameManager.claimFreeName(`_${e}`),this.helperNames[e]=t,t)}emitHelpers(){let e="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[t,n]of Object.entries(FF)){const s=this.helperNames[t];let a=n;t==="optionalChainDelete"?a=a.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):t==="asyncOptionalChainDelete"&&(a=a.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain)),s&&(e+=" ",e+=a.replace(t,s).replace(/\s+/g," ").trim())}return e}}function uw(r,e,t){!BF(r,t)||$F(r,e,t)}function BF(r,e){for(const t of r.tokens)if(t.type===p.name&&uF(t)&&e.has(r.identifierNameForToken(t)))return!0;return!1}function $F(r,e,t){const n=[];let s=e.length-1;for(let a=r.tokens.length-1;;a--){for(;n.length>0&&n[n.length-1].startTokenIndex===a+1;)n.pop();for(;s>=0&&e[s].endTokenIndex===a+1;)n.push(e[s]),s--;if(a<0)break;const l=r.tokens[a],u=r.identifierNameForToken(l);if(n.length>1&&l.type===p.name&&t.has(u)){if(cF(l))cw(n[n.length-1],r,u);else if(fF(l)){let c=n.length-1;for(;c>0&&!n[c].isFunctionScope;)c--;if(c<0)throw new Error("Did not find parent function scope.");cw(n[c],r,u)}}}if(n.length>0)throw new Error("Expected empty scope stack after processing file.")}function cw(r,e,t){for(let n=r.startTokenIndex;n<r.endTokenIndex;n++){const s=e.tokens[n];(s.type===p.name||s.type===p.jsxName)&&e.identifierNameForToken(s)===t&&(s.shadowsGlobal=!0)}}function jF(r,e){const t=[];for(const n of e)n.type===p.name&&t.push(r.slice(n.start,n.end));return t}class jg{__init(){this.usedNames=new Set}constructor(e,t){jg.prototype.__init.call(this),this.usedNames=new Set(jF(e,t))}claimFreeName(e){const t=this.findFreeName(e);return this.usedNames.add(t),t}findFreeName(e){if(!this.usedNames.has(e))return e;let t=2;for(;this.usedNames.has(e+String(t));)t++;return e+String(t)}}var yr={},M1={},_s={},UF=Ca&&Ca.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var a in s)s.hasOwnProperty(a)&&(n[a]=s[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(_s,"__esModule",{value:!0});_s.DetailContext=_s.NoopContext=_s.VError=void 0;var d_=function(r){UF(e,r);function e(t,n){var s=r.call(this,n)||this;return s.path=t,Object.setPrototypeOf(s,e.prototype),s}return e}(Error);_s.VError=d_;var qF=function(){function r(){}return r.prototype.fail=function(e,t,n){return!1},r.prototype.unionResolver=function(){return this},r.prototype.createContext=function(){return this},r.prototype.resolveUnion=function(e){},r}();_s.NoopContext=qF;var m_=function(){function r(){this._propNames=[""],this._messages=[null],this._score=0}return r.prototype.fail=function(e,t,n){return this._propNames.push(e),this._messages.push(t),this._score+=n,!1},r.prototype.unionResolver=function(){return new WF},r.prototype.resolveUnion=function(e){for(var t,n,s=e,a=null,l=0,u=s.contexts;l<u.length;l++){var c=u[l];(!a||c._score>=a._score)&&(a=c)}a&&a._score>0&&((t=this._propNames).push.apply(t,a._propNames),(n=this._messages).push.apply(n,a._messages))},r.prototype.getError=function(e){for(var t=[],n=this._propNames.length-1;n>=0;n--){var s=this._propNames[n];e+=typeof s=="number"?"["+s+"]":s?"."+s:"";var a=this._messages[n];a&&t.push(e+" "+a)}return new d_(e,t.join("; "))},r.prototype.getErrorDetail=function(e){for(var t=[],n=this._propNames.length-1;n>=0;n--){var s=this._propNames[n];e+=typeof s=="number"?"["+s+"]":s?"."+s:"";var a=this._messages[n];a&&t.push({path:e,message:a})}for(var l=null,n=t.length-1;n>=0;n--)l&&(t[n].nested=[l]),l=t[n];return l},r}();_s.DetailContext=m_;var WF=function(){function r(){this.contexts=[]}return r.prototype.createContext=function(){var e=new m_;return this.contexts.push(e),e},r}();(function(r){var e=Ca&&Ca.__extends||function(){var ee=function(z,ne){return ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,ye){fe.__proto__=ye}||function(fe,ye){for(var pe in ye)ye.hasOwnProperty(pe)&&(fe[pe]=ye[pe])},ee(z,ne)};return function(z,ne){ee(z,ne);function fe(){this.constructor=z}z.prototype=ne===null?Object.create(ne):(fe.prototype=ne.prototype,new fe)}}();Object.defineProperty(r,"__esModule",{value:!0}),r.basicTypes=r.BasicType=r.TParamList=r.TParam=r.param=r.TFunc=r.func=r.TProp=r.TOptional=r.opt=r.TIface=r.iface=r.TEnumLiteral=r.enumlit=r.TEnumType=r.enumtype=r.TIntersection=r.intersection=r.TUnion=r.union=r.TTuple=r.tuple=r.TArray=r.array=r.TLiteral=r.lit=r.TName=r.name=r.TType=void 0;var t=_s,n=function(){function ee(){}return ee}();r.TType=n;function s(ee){return typeof ee=="string"?l(ee):ee}function a(ee,z){var ne=ee[z];if(!ne)throw new Error("Unknown type "+z);return ne}function l(ee){return new u(ee)}r.name=l;var u=function(ee){e(z,ee);function z(ne){var fe=ee.call(this)||this;return fe.name=ne,fe._failMsg="is not a "+ne,fe}return z.prototype.getChecker=function(ne,fe,ye){var pe=this,le=a(ne,this.name),_e=le.getChecker(ne,fe,ye);return le instanceof Z||le instanceof z?_e:function(De,Ue){return _e(De,Ue)?!0:Ue.fail(null,pe._failMsg,0)}},z}(n);r.TName=u;function c(ee){return new m(ee)}r.lit=c;var m=function(ee){e(z,ee);function z(ne){var fe=ee.call(this)||this;return fe.value=ne,fe.name=JSON.stringify(ne),fe._failMsg="is not "+fe.name,fe}return z.prototype.getChecker=function(ne,fe){var ye=this;return function(pe,le){return pe===ye.value?!0:le.fail(null,ye._failMsg,-1)}},z}(n);r.TLiteral=m;function g(ee){return new v(s(ee))}r.array=g;var v=function(ee){e(z,ee);function z(ne){var fe=ee.call(this)||this;return fe.ttype=ne,fe}return z.prototype.getChecker=function(ne,fe){var ye=this.ttype.getChecker(ne,fe);return function(pe,le){if(!Array.isArray(pe))return le.fail(null,"is not an array",0);for(var _e=0;_e<pe.length;_e++){var De=ye(pe[_e],le);if(!De)return le.fail(_e,null,1)}return!0}},z}(n);r.TArray=v;function b(){for(var ee=[],z=0;z<arguments.length;z++)ee[z]=arguments[z];return new x(ee.map(function(ne){return s(ne)}))}r.tuple=b;var x=function(ee){e(z,ee);function z(ne){var fe=ee.call(this)||this;return fe.ttypes=ne,fe}return z.prototype.getChecker=function(ne,fe){var ye=this.ttypes.map(function(le){return le.getChecker(ne,fe)}),pe=function(le,_e){if(!Array.isArray(le))return _e.fail(null,"is not an array",0);for(var De=0;De<ye.length;De++){var Ue=ye[De](le[De],_e);if(!Ue)return _e.fail(De,null,1)}return!0};return fe?function(le,_e){return pe(le,_e)?le.length<=ye.length?!0:_e.fail(ye.length,"is extraneous",2):!1}:pe},z}(n);r.TTuple=x;function E(){for(var ee=[],z=0;z<arguments.length;z++)ee[z]=arguments[z];return new S(ee.map(function(ne){return s(ne)}))}r.union=E;var S=function(ee){e(z,ee);function z(ne){var fe=ee.call(this)||this;fe.ttypes=ne;var ye=ne.map(function(le){return le instanceof u||le instanceof m?le.name:null}).filter(function(le){return le}),pe=ne.length-ye.length;return ye.length?(pe>0&&ye.push(pe+" more"),fe._failMsg="is none of "+ye.join(", ")):fe._failMsg="is none of "+pe+" types",fe}return z.prototype.getChecker=function(ne,fe){var ye=this,pe=this.ttypes.map(function(le){return le.getChecker(ne,fe)});return function(le,_e){for(var De=_e.unionResolver(),Ue=0;Ue<pe.length;Ue++){var qe=pe[Ue](le,De.createContext());if(qe)return!0}return _e.resolveUnion(De),_e.fail(null,ye._failMsg,0)}},z}(n);r.TUnion=S;function C(){for(var ee=[],z=0;z<arguments.length;z++)ee[z]=arguments[z];return new _(ee.map(function(ne){return s(ne)}))}r.intersection=C;var _=function(ee){e(z,ee);function z(ne){var fe=ee.call(this)||this;return fe.ttypes=ne,fe}return z.prototype.getChecker=function(ne,fe){var ye=new Set,pe=this.ttypes.map(function(le){return le.getChecker(ne,fe,ye)});return function(le,_e){var De=pe.every(function(Ue){return Ue(le,_e)});return De?!0:_e.fail(null,null,0)}},z}(n);r.TIntersection=_;function A(ee){return new I(ee)}r.enumtype=A;var I=function(ee){e(z,ee);function z(ne){var fe=ee.call(this)||this;return fe.members=ne,fe.validValues=new Set,fe._failMsg="is not a valid enum value",fe.validValues=new Set(Object.keys(ne).map(function(ye){return ne[ye]})),fe}return z.prototype.getChecker=function(ne,fe){var ye=this;return function(pe,le){return ye.validValues.has(pe)?!0:le.fail(null,ye._failMsg,0)}},z}(n);r.TEnumType=I;function M(ee,z){return new O(ee,z)}r.enumlit=M;var O=function(ee){e(z,ee);function z(ne,fe){var ye=ee.call(this)||this;return ye.enumName=ne,ye.prop=fe,ye._failMsg="is not "+ne+"."+fe,ye}return z.prototype.getChecker=function(ne,fe){var ye=this,pe=a(ne,this.enumName);if(!(pe instanceof I))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var le=pe.members[this.prop];if(!pe.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(_e,De){return _e===le?!0:De.fail(null,ye._failMsg,-1)}},z}(n);r.TEnumLiteral=O;function R(ee){return Object.keys(ee).map(function(z){return j(z,ee[z])})}function j(ee,z){return z instanceof H?new V(ee,z.ttype,!0):new V(ee,s(z),!1)}function $(ee,z){return new B(ee,R(z))}r.iface=$;var B=function(ee){e(z,ee);function z(ne,fe){var ye=ee.call(this)||this;return ye.bases=ne,ye.props=fe,ye.propSet=new Set(fe.map(function(pe){return pe.name})),ye}return z.prototype.getChecker=function(ne,fe,ye){var pe=this,le=this.bases.map(function(tt){return a(ne,tt).getChecker(ne,fe)}),_e=this.props.map(function(tt){return tt.ttype.getChecker(ne,fe)}),De=new t.NoopContext,Ue=this.props.map(function(tt,Je){return!tt.isOpt&&!_e[Je](void 0,De)}),qe=function(tt,Je){if(typeof tt!="object"||tt===null)return Je.fail(null,"is not an object",0);for(var dt=0;dt<le.length;dt++)if(!le[dt](tt,Je))return!1;for(var dt=0;dt<_e.length;dt++){var Lt=pe.props[dt].name,ht=tt[Lt];if(ht===void 0){if(Ue[dt])return Je.fail(Lt,"is missing",1)}else{var ae=_e[dt](ht,Je);if(!ae)return Je.fail(Lt,null,1)}}return!0};if(!fe)return qe;var Xe=this.propSet;return ye&&(this.propSet.forEach(function(tt){return ye.add(tt)}),Xe=ye),function(tt,Je){if(!qe(tt,Je))return!1;for(var dt in tt)if(!Xe.has(dt))return Je.fail(dt,"is extraneous",2);return!0}},z}(n);r.TIface=B;function F(ee){return new H(s(ee))}r.opt=F;var H=function(ee){e(z,ee);function z(ne){var fe=ee.call(this)||this;return fe.ttype=ne,fe}return z.prototype.getChecker=function(ne,fe){var ye=this.ttype.getChecker(ne,fe);return function(pe,le){return pe===void 0||ye(pe,le)}},z}(n);r.TOptional=H;var V=function(){function ee(z,ne,fe){this.name=z,this.ttype=ne,this.isOpt=fe}return ee}();r.TProp=V;function X(ee){for(var z=[],ne=1;ne<arguments.length;ne++)z[ne-1]=arguments[ne];return new J(new W(z),s(ee))}r.func=X;var J=function(ee){e(z,ee);function z(ne,fe){var ye=ee.call(this)||this;return ye.paramList=ne,ye.result=fe,ye}return z.prototype.getChecker=function(ne,fe){return function(ye,pe){return typeof ye=="function"?!0:pe.fail(null,"is not a function",0)}},z}(n);r.TFunc=J;function D(ee,z,ne){return new ce(ee,s(z),Boolean(ne))}r.param=D;var ce=function(){function ee(z,ne,fe){this.name=z,this.ttype=ne,this.isOpt=fe}return ee}();r.TParam=ce;var W=function(ee){e(z,ee);function z(ne){var fe=ee.call(this)||this;return fe.params=ne,fe}return z.prototype.getChecker=function(ne,fe){var ye=this,pe=this.params.map(function(Ue){return Ue.ttype.getChecker(ne,fe)}),le=new t.NoopContext,_e=this.params.map(function(Ue,qe){return!Ue.isOpt&&!pe[qe](void 0,le)}),De=function(Ue,qe){if(!Array.isArray(Ue))return qe.fail(null,"is not an array",0);for(var Xe=0;Xe<pe.length;Xe++){var tt=ye.params[Xe];if(Ue[Xe]===void 0){if(_e[Xe])return qe.fail(tt.name,"is missing",1)}else{var Je=pe[Xe](Ue[Xe],qe);if(!Je)return qe.fail(tt.name,null,1)}}return!0};return fe?function(Ue,qe){return De(Ue,qe)?Ue.length<=pe.length?!0:qe.fail(pe.length,"is extraneous",2):!1}:De},z}(n);r.TParamList=W;var Z=function(ee){e(z,ee);function z(ne,fe){var ye=ee.call(this)||this;return ye.validator=ne,ye.message=fe,ye}return z.prototype.getChecker=function(ne,fe){var ye=this;return function(pe,le){return ye.validator(pe)?!0:le.fail(null,ye.message,0)}},z}(n);r.BasicType=Z,r.basicTypes={any:new Z(function(ee){return!0},"is invalid"),number:new Z(function(ee){return typeof ee=="number"},"is not a number"),object:new Z(function(ee){return typeof ee=="object"&&ee},"is not an object"),boolean:new Z(function(ee){return typeof ee=="boolean"},"is not a boolean"),string:new Z(function(ee){return typeof ee=="string"},"is not a string"),symbol:new Z(function(ee){return typeof ee=="symbol"},"is not a symbol"),void:new Z(function(ee){return ee==null},"is not void"),undefined:new Z(function(ee){return ee===void 0},"is not undefined"),null:new Z(function(ee){return ee===null},"is not null"),never:new Z(function(ee){return!1},"is unexpected"),Date:new Z(he("[object Date]"),"is not a Date"),RegExp:new Z(he("[object RegExp]"),"is not a RegExp")};var de=Object.prototype.toString;function he(ee){return function(z){return typeof z=="object"&&z&&de.call(z)===ee}}typeof Buffer<"u"&&(r.basicTypes.Buffer=new Z(function(ee){return Buffer.isBuffer(ee)},"is not a Buffer"));for(var oe=function(ee){r.basicTypes[ee.name]=new Z(function(z){return z instanceof ee},"is not a "+ee.name)},we=0,re=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];we<re.length;we++){var ge=re[we];oe(ge)}})(M1);(function(r){var e=Ca&&Ca.__spreadArrays||function(){for(var c=0,m=0,g=arguments.length;m<g;m++)c+=arguments[m].length;for(var v=Array(c),b=0,m=0;m<g;m++)for(var x=arguments[m],E=0,S=x.length;E<S;E++,b++)v[b]=x[E];return v};Object.defineProperty(r,"__esModule",{value:!0}),r.Checker=r.createCheckers=void 0;var t=M1,n=_s,s=M1;Object.defineProperty(r,"TArray",{enumerable:!0,get:function(){return s.TArray}}),Object.defineProperty(r,"TEnumType",{enumerable:!0,get:function(){return s.TEnumType}}),Object.defineProperty(r,"TEnumLiteral",{enumerable:!0,get:function(){return s.TEnumLiteral}}),Object.defineProperty(r,"TFunc",{enumerable:!0,get:function(){return s.TFunc}}),Object.defineProperty(r,"TIface",{enumerable:!0,get:function(){return s.TIface}}),Object.defineProperty(r,"TLiteral",{enumerable:!0,get:function(){return s.TLiteral}}),Object.defineProperty(r,"TName",{enumerable:!0,get:function(){return s.TName}}),Object.defineProperty(r,"TOptional",{enumerable:!0,get:function(){return s.TOptional}}),Object.defineProperty(r,"TParam",{enumerable:!0,get:function(){return s.TParam}}),Object.defineProperty(r,"TParamList",{enumerable:!0,get:function(){return s.TParamList}}),Object.defineProperty(r,"TProp",{enumerable:!0,get:function(){return s.TProp}}),Object.defineProperty(r,"TTuple",{enumerable:!0,get:function(){return s.TTuple}}),Object.defineProperty(r,"TType",{enumerable:!0,get:function(){return s.TType}}),Object.defineProperty(r,"TUnion",{enumerable:!0,get:function(){return s.TUnion}}),Object.defineProperty(r,"TIntersection",{enumerable:!0,get:function(){return s.TIntersection}}),Object.defineProperty(r,"array",{enumerable:!0,get:function(){return s.array}}),Object.defineProperty(r,"enumlit",{enumerable:!0,get:function(){return s.enumlit}}),Object.defineProperty(r,"enumtype",{enumerable:!0,get:function(){return s.enumtype}}),Object.defineProperty(r,"func",{enumerable:!0,get:function(){return s.func}}),Object.defineProperty(r,"iface",{enumerable:!0,get:function(){return s.iface}}),Object.defineProperty(r,"lit",{enumerable:!0,get:function(){return s.lit}}),Object.defineProperty(r,"name",{enumerable:!0,get:function(){return s.name}}),Object.defineProperty(r,"opt",{enumerable:!0,get:function(){return s.opt}}),Object.defineProperty(r,"param",{enumerable:!0,get:function(){return s.param}}),Object.defineProperty(r,"tuple",{enumerable:!0,get:function(){return s.tuple}}),Object.defineProperty(r,"union",{enumerable:!0,get:function(){return s.union}}),Object.defineProperty(r,"intersection",{enumerable:!0,get:function(){return s.intersection}}),Object.defineProperty(r,"BasicType",{enumerable:!0,get:function(){return s.BasicType}});var a=_s;Object.defineProperty(r,"VError",{enumerable:!0,get:function(){return a.VError}});function l(){for(var c=[],m=0;m<arguments.length;m++)c[m]=arguments[m];for(var g=Object.assign.apply(Object,e([{},t.basicTypes],c)),v={},b=0,x=c;b<x.length;b++)for(var E=x[b],S=0,C=Object.keys(E);S<C.length;S++){var _=C[S];v[_]=new u(g,E[_])}return v}r.createCheckers=l;var u=function(){function c(m,g,v){if(v===void 0&&(v="value"),this.suite=m,this.ttype=g,this._path=v,this.props=new Map,g instanceof t.TIface)for(var b=0,x=g.props;b<x.length;b++){var E=x[b];this.props.set(E.name,E.ttype)}this.checkerPlain=this.ttype.getChecker(m,!1),this.checkerStrict=this.ttype.getChecker(m,!0)}return c.prototype.setReportedPath=function(m){this._path=m},c.prototype.check=function(m){return this._doCheck(this.checkerPlain,m)},c.prototype.test=function(m){return this.checkerPlain(m,new n.NoopContext)},c.prototype.validate=function(m){return this._doValidate(this.checkerPlain,m)},c.prototype.strictCheck=function(m){return this._doCheck(this.checkerStrict,m)},c.prototype.strictTest=function(m){return this.checkerStrict(m,new n.NoopContext)},c.prototype.strictValidate=function(m){return this._doValidate(this.checkerStrict,m)},c.prototype.getProp=function(m){var g=this.props.get(m);if(!g)throw new Error("Type has no property "+m);return new c(this.suite,g,this._path+"."+m)},c.prototype.methodArgs=function(m){var g=this._getMethod(m);return new c(this.suite,g.paramList)},c.prototype.methodResult=function(m){var g=this._getMethod(m);return new c(this.suite,g.result)},c.prototype.getArgs=function(){if(!(this.ttype instanceof t.TFunc))throw new Error("getArgs() applied to non-function");return new c(this.suite,this.ttype.paramList)},c.prototype.getResult=function(){if(!(this.ttype instanceof t.TFunc))throw new Error("getResult() applied to non-function");return new c(this.suite,this.ttype.result)},c.prototype.getType=function(){return this.ttype},c.prototype._doCheck=function(m,g){var v=new n.NoopContext;if(!m(g,v)){var b=new n.DetailContext;throw m(g,b),b.getError(this._path)}},c.prototype._doValidate=function(m,g){var v=new n.NoopContext;if(m(g,v))return null;var b=new n.DetailContext;return m(g,b),b.getErrorDetail(this._path)},c.prototype._getMethod=function(m){var g=this.props.get(m);if(!g)throw new Error("Type has no property "+m);if(!(g instanceof t.TFunc))throw new Error("Property "+m+" is not a method");return g},c}();r.Checker=u})(yr);const zF=yr.union(yr.lit("jsx"),yr.lit("typescript"),yr.lit("flow"),yr.lit("imports"),yr.lit("react-hot-loader"),yr.lit("jest")),HF=yr.iface([],{compiledFilename:"string"}),VF=yr.iface([],{transforms:yr.array("Transform"),jsxPragma:yr.opt("string"),jsxFragmentPragma:yr.opt("string"),enableLegacyTypeScriptModuleInterop:yr.opt("boolean"),enableLegacyBabel5ModuleInterop:yr.opt("boolean"),sourceMapOptions:yr.opt("SourceMapOptions"),filePath:yr.opt("string"),production:yr.opt("boolean"),disableESTransforms:yr.opt("boolean")}),GF={Transform:zF,SourceMapOptions:HF,Options:VF},{Options:KF}=yr.createCheckers(GF);function YF(r){KF.strictCheck(r)}function g_(){Te(),Dr(!1)}function y_(r){Te(),Jh(r)}function Vi(r){bt(),Ug(r)}function Hf(){bt(),T.tokens[T.tokens.length-1].identifierRole=pt.ImportDeclaration}function Ug(r){let e;T.scopeDepth===0?e=pt.TopLevelDeclaration:r?e=pt.BlockScopedDeclaration:e=pt.FunctionScopedDeclaration,T.tokens[T.tokens.length-1].identifierRole=e}function Jh(r){switch(T.type){case p._this:{const e=gt(0);Te(),yt(e);return}case p._yield:case p.name:{T.type=p.name,Vi(r);return}case p.bracketL:{Te(),qg(p.bracketR,r,!0);return}case p.braceL:R_(!0,r);return;default:ft()}}function qg(r,e,t=!1,n=!1,s=0){let a=!0,l=!1;const u=T.tokens.length;for(;!be(r)&&!T.error;)if(a?a=!1:(ke(p.comma),T.tokens[T.tokens.length-1].contextId=s,!l&&T.tokens[u].isType&&(T.tokens[T.tokens.length-1].isType=!0,l=!0)),!(t&&U(p.comma))){if(be(r))break;if(U(p.ellipsis)){y_(e),v_(),be(p.comma),ke(r);break}else JF(n,e)}}function JF(r,e){r&&Wg([Q._public,Q._protected,Q._private,Q._readonly,Q._override]),Vf(e),v_(),Vf(e,!0)}function v_(){Dt?d6():Tt&&nB()}function Vf(r,e=!1){if(e||Jh(r),!be(p.eq))return;const t=T.tokens.length-1;Dr(),T.tokens[t].rhsEndIndex=T.tokens.length}function D1(){return U(p.name)}function XF(){return U(p.name)||Boolean(T.type&p.IS_KEYWORD)||U(p.string)||U(p.num)||U(p.bigint)||U(p.decimal)}function b_(){const r=T.snapshot();return Te(),(U(p.bracketL)||U(p.braceL)||U(p.star)||U(p.ellipsis)||U(p.hash)||XF())&&!Is()?!0:(T.restoreFromSnapshot(r),!1)}function Wg(r){for(;w_(r)!==null;);}function w_(r){if(!U(p.name))return null;const e=T.contextualKeyword;if(r.indexOf(e)!==-1&&b_()){switch(e){case Q._readonly:T.tokens[T.tokens.length-1].type=p._readonly;break;case Q._abstract:T.tokens[T.tokens.length-1].type=p._abstract;break;case Q._static:T.tokens[T.tokens.length-1].type=p._static;break;case Q._public:T.tokens[T.tokens.length-1].type=p._public;break;case Q._private:T.tokens[T.tokens.length-1].type=p._private;break;case Q._protected:T.tokens[T.tokens.length-1].type=p._protected;break;case Q._override:T.tokens[T.tokens.length-1].type=p._override;break;case Q._declare:T.tokens[T.tokens.length-1].type=p._declare;break}return e}return null}function ec(){for(bt();be(p.dot);)bt()}function QF(){ec(),!Is()&&U(p.lessThan)&&qi()}function ZF(){Te(),tc()}function e4(){Te()}function t4(){ke(p._typeof),U(p._import)?x_():ec()}function x_(){ke(p._import),ke(p.parenL),ke(p.string),ke(p.parenR),be(p.dot)&&ec(),U(p.lessThan)&&qi()}function r4(){bt(),be(p._extends)&&lr(),be(p.eq)&&lr()}function Da(){U(p.lessThan)&&Xh()}function Xh(){const r=gt(0);for(U(p.lessThan)||U(p.typeParameterStart)?Te():ft();!be(p.greaterThan)&&!T.error;)r4(),be(p.comma);yt(r)}function zg(r){const e=r===p.arrow;Da(),ke(p.parenL),T.scopeDepth++,n4(!1),T.scopeDepth--,(e||U(r))&&Uu(r)}function n4(r){qg(p.parenR,r)}function Gf(){be(p.comma)||Yt()}function fw(){zg(p.colon),Gf()}function s4(){const r=T.snapshot();Te();const e=be(p.name)&&U(p.colon);return T.restoreFromSnapshot(r),e}function S_(){if(!(U(p.bracketL)&&s4()))return!1;const r=gt(0);return ke(p.bracketL),bt(),tc(),ke(p.bracketR),ol(),Gf(),yt(r),!0}function hw(r){be(p.question),!r&&(U(p.parenL)||U(p.lessThan))?(zg(p.colon),Gf()):(ol(),Gf())}function i4(){if(U(p.parenL)||U(p.lessThan)){fw();return}if(U(p._new)){Te(),U(p.parenL)||U(p.lessThan)?fw():hw(!1);return}const r=!!w_([Q._readonly]);S_()||((ot(Q._get)||ot(Q._set))&&b_(),qu(-1),hw(r))}function a4(){k_()}function k_(){for(ke(p.braceL);!be(p.braceR)&&!T.error;)i4()}function o4(){const r=T.snapshot(),e=l4();return T.restoreFromSnapshot(r),e}function l4(){return Te(),be(p.plus)||be(p.minus)?ot(Q._readonly):(ot(Q._readonly)&&Te(),!U(p.bracketL)||(Te(),!D1())?!1:(Te(),U(p._in)))}function u4(){bt(),ke(p._in),lr()}function c4(){ke(p.braceL),U(p.plus)||U(p.minus)?(Te(),Mr(Q._readonly)):nn(Q._readonly),ke(p.bracketL),u4(),nn(Q._as)&&lr(),ke(p.bracketR),U(p.plus)||U(p.minus)?(Te(),ke(p.question)):be(p.question),T4(),Yt(),ke(p.braceR)}function f4(){for(ke(p.bracketL);!be(p.bracketR)&&!T.error;)h4(),be(p.comma)}function h4(){be(p.ellipsis)?lr():(lr(),be(p.question)),be(p.colon)&&lr()}function p4(){ke(p.parenL),lr(),ke(p.parenR)}function d4(){for(Pi(),Pi();!U(p.backQuote)&&!T.error;)ke(p.dollarBraceL),lr(),Pi(),Pi();Te()}var Ni;(function(r){r[r.TSFunctionType=0]="TSFunctionType";const t=0+1;r[r.TSConstructorType=t]="TSConstructorType";const n=t+1;r[r.TSAbstractConstructorType=n]="TSAbstractConstructorType"})(Ni||(Ni={}));function Ad(r){r===Ni.TSAbstractConstructorType&&Mr(Q._abstract),(r===Ni.TSConstructorType||r===Ni.TSAbstractConstructorType)&&ke(p._new),zg(p.arrow)}function m4(){switch(T.type){case p.name:QF();return;case p._void:case p._null:Te();return;case p.string:case p.num:case p.bigint:case p.decimal:case p._true:case p._false:jo();return;case p.minus:Te(),jo();return;case p._this:{e4(),ot(Q._is)&&!Is()&&ZF();return}case p._typeof:t4();return;case p._import:x_();return;case p.braceL:o4()?c4():a4();return;case p.bracketL:f4();return;case p.parenL:p4();return;case p.backQuote:d4();return;default:if(T.type&p.IS_KEYWORD){Te(),T.tokens[T.tokens.length-1].type=p.name;return}break}ft()}function g4(){for(m4();!Is()&&be(p.bracketL);)be(p.bracketR)||(lr(),ke(p.bracketR))}function y4(){Mr(Q._infer),bt()}function R1(){ot(Q._keyof)||ot(Q._unique)||ot(Q._readonly)?(Te(),R1()):ot(Q._infer)?y4():g4()}function pw(){if(be(p.bitwiseAND),R1(),U(p.bitwiseAND))for(;be(p.bitwiseAND);)R1()}function v4(){if(be(p.bitwiseOR),pw(),U(p.bitwiseOR))for(;be(p.bitwiseOR);)pw()}function b4(){return U(p.lessThan)?!0:U(p.parenL)&&x4()}function w4(){if(U(p.name)||U(p._this))return Te(),!0;if(U(p.braceL)||U(p.bracketL)){let r=1;for(Te();r>0&&!T.error;)U(p.braceL)||U(p.bracketL)?r++:(U(p.braceR)||U(p.bracketR))&&r--,Te();return!0}return!1}function x4(){const r=T.snapshot(),e=S4();return T.restoreFromSnapshot(r),e}function S4(){return Te(),!!(U(p.parenR)||U(p.ellipsis)||w4()&&(U(p.colon)||U(p.comma)||U(p.question)||U(p.eq)||U(p.parenR)&&(Te(),U(p.arrow))))}function Uu(r){const e=gt(0);ke(r),_4()||lr(),yt(e)}function k4(){U(p.colon)&&Uu(p.colon)}function ol(){U(p.colon)&&tc()}function T4(){be(p.colon)&&lr()}function _4(){const r=T.snapshot();return ot(Q._asserts)&&!Is()?(Te(),nn(Q._is)?(lr(),!0):D1()||U(p._this)?(Te(),nn(Q._is)&&lr(),!0):(T.restoreFromSnapshot(r),!1)):D1()||U(p._this)?(Te(),ot(Q._is)&&!Is()?(Te(),lr(),!0):(T.restoreFromSnapshot(r),!1)):!1}function tc(){const r=gt(0);ke(p.colon),lr(),yt(r)}function lr(){dw(),!(Is()||!be(p._extends))&&(dw(),ke(p.question),lr(),ke(p.colon),lr())}function E4(){return ot(Q._abstract)&&ir()===p._new}function dw(){if(b4()){Ad(Ni.TSFunctionType);return}if(U(p._new)){Ad(Ni.TSConstructorType);return}else if(E4()){Ad(Ni.TSAbstractConstructorType);return}v4()}function A4(){const r=gt(1);lr(),ke(p.greaterThan),yt(r),rc()}function C4(){if(be(p.jsxTagStart)){T.tokens[T.tokens.length-1].type=p.typeParameterStart;const r=gt(1);for(;!U(p.greaterThan)&&!T.error;)lr(),be(p.comma);Wn(),yt(r)}}function T_(){for(;!U(p.braceL)&&!T.error;)P4(),be(p.comma)}function P4(){ec(),U(p.lessThan)&&qi()}function I4(){Vi(!1),Da(),be(p._extends)&&T_(),k_()}function N4(){Vi(!1),Da(),ke(p.eq),lr(),Yt()}function O4(){if(U(p.string)?jo():bt(),be(p.eq)){const r=T.tokens.length-1;Dr(),T.tokens[r].rhsEndIndex=T.tokens.length}}function Hg(){for(Vi(!1),ke(p.braceL);!be(p.braceR)&&!T.error;)O4(),be(p.comma)}function Vg(){ke(p.braceL),tp(p.braceR)}function F1(){Vi(!1),be(p.dot)?F1():Vg()}function __(){ot(Q._global)?bt():U(p.string)?ai():ft(),U(p.braceL)?Vg():Yt()}function B1(){Hf(),ke(p.eq),M4(),Yt()}function L4(){return ot(Q._require)&&ir()===p.parenL}function M4(){L4()?D4():ec()}function D4(){Mr(Q._require),ke(p.parenL),U(p.string)||ft(),jo(),ke(p.parenR)}function R4(){if(ri())return!1;switch(T.type){case p._function:{const r=gt(1);Te();const e=T.start;return Ia(e,!0),yt(r),!0}case p._class:{const r=gt(1);return Na(!0,!1),yt(r),!0}case p._const:if(U(p._const)&&XT(Q._enum)){const r=gt(1);return ke(p._const),Mr(Q._enum),T.tokens[T.tokens.length-1].type=p._enum,Hg(),yt(r),!0}case p._var:case p._let:{const r=gt(1);return V_(T.type),yt(r),!0}case p.name:{const r=gt(1),e=T.contextualKeyword;let t=!1;return e===Q._global?(__(),t=!0):t=Qh(e,!0),yt(r),t}default:return!1}}function mw(){return Qh(T.contextualKeyword,!0)}function F4(r){switch(r){case Q._declare:{const e=T.tokens.length-1;if(R4())return T.tokens[e].type=p._declare,!0;break}case Q._global:if(U(p.braceL))return Vg(),!0;break;default:return Qh(r,!1)}return!1}function Qh(r,e){switch(r){case Q._abstract:if(so(e)&&U(p._class))return T.tokens[T.tokens.length-1].type=p._abstract,Na(!0,!1),!0;break;case Q._enum:if(so(e)&&U(p.name))return T.tokens[T.tokens.length-1].type=p._enum,Hg(),!0;break;case Q._interface:if(so(e)&&U(p.name)){const t=gt(e?2:1);return I4(),yt(t),!0}break;case Q._module:if(so(e)){if(U(p.string)){const t=gt(e?2:1);return __(),yt(t),!0}else if(U(p.name)){const t=gt(e?2:1);return F1(),yt(t),!0}}break;case Q._namespace:if(so(e)&&U(p.name)){const t=gt(e?2:1);return F1(),yt(t),!0}break;case Q._type:if(so(e)&&U(p.name)){const t=gt(e?2:1);return N4(),yt(t),!0}break}return!1}function so(r){return r?(Te(),!0):!ri()}function B4(){const r=T.snapshot();return Xh(),ll(),k4(),ke(p.arrow),T.error?(T.restoreFromSnapshot(r),!1):(nc(!0),!0)}function qi(){const r=gt(0);for(ke(p.lessThan);!be(p.greaterThan)&&!T.error;)lr(),be(p.comma);yt(r)}function E_(){if(U(p.name))switch(T.contextualKeyword){case Q._abstract:case Q._declare:case Q._enum:case Q._interface:case Q._module:case Q._namespace:case Q._type:return!0}return!1}function $4(r,e){if(U(p.colon)&&Uu(p.colon),!U(p.braceL)&&ri()){let t=T.tokens.length-1;for(;t>=0&&(T.tokens[t].start>=r||T.tokens[t].type===p._default||T.tokens[t].type===p._export);)T.tokens[t].isType=!0,t--;return}nc(!1,e)}function j4(r,e,t){if(!Is()&&be(p.bang)){T.tokens[T.tokens.length-1].type=p.nonNullAssertion;return}if(U(p.lessThan)){const n=T.snapshot();if(!e&&D_()&&B4())return;if(qi(),!e&&be(p.parenL)?(T.tokens[T.tokens.length-1].subscriptStartIndex=r,Oi()):U(p.backQuote)?Xg():ft(),T.error)T.restoreFromSnapshot(n);else return}else!e&&U(p.questionDot)&&ir()===p.lessThan&&(Te(),T.tokens[r].isOptionalChainStart=!0,T.tokens[T.tokens.length-1].subscriptStartIndex=r,qi(),ke(p.parenL),Oi());Kg(r,e,t)}function U4(){if(U(p.lessThan)){const r=T.snapshot();T.type=p.typeParameterStart,qi(),U(p.parenL)||ft(),T.error&&T.restoreFromSnapshot(r)}}function q4(){return be(p._import)?(ot(Q._type)&&ir()!==p.eq&&Mr(Q._type),B1(),!0):be(p.eq)?(Gr(),Yt(),!0):nn(Q._as)?(Mr(Q._namespace),bt(),Yt(),!0):(ot(Q._type)&&ir()===p.braceL&&Te(),!1)}function W4(){if(ot(Q._abstract)&&ir()===p._class)return T.type=p._abstract,Te(),Na(!0,!0),!0;if(ot(Q._interface)){const r=gt(2);return Qh(Q._interface,!0),yt(r),!0}return!1}function z4(){if(T.type===p._const){const r=Yh();if(r.type===p.name&&r.contextualKeyword===Q._enum)return ke(p._const),Mr(Q._enum),T.tokens[T.tokens.length-1].type=p._enum,Hg(),!0}return!1}function H4(r){const e=T.tokens.length;Wg([Q._abstract,Q._readonly,Q._declare,Q._static,Q._override]);const t=T.tokens.length;if(S_()){const s=r?e-1:e;for(let a=s;a<t;a++)T.tokens[a].isType=!0;return!0}return!1}function V4(r){F4(r)||Yt()}function G4(){const r=nn(Q._declare);r&&(T.tokens[T.tokens.length-1].type=p._declare);let e=!1;if(U(p.name))if(r){const t=gt(2);e=mw(),yt(t)}else e=mw();if(!e)if(r){const t=gt(2);Fn(!0),yt(t)}else Fn(!0)}function K4(r){if(r&&U(p.lessThan)&&qi(),nn(Q._implements)){T.tokens[T.tokens.length-1].type=p._implements;const e=gt(1);T_(),yt(e)}}function Y4(){Da()}function J4(){Da()}function X4(){const r=gt(0);be(p.bang),ol(),yt(r)}function Q4(){U(p.colon)&&tc()}function Z4(r,e){return Gh?eB(r,e):tB(r,e)}function eB(r,e){if(!U(p.lessThan))return Es(r,e);const t=T.snapshot();let n=Es(r,e);if(T.error)T.restoreFromSnapshot(t);else return n;return T.type=p.typeParameterStart,Xh(),n=Es(r,e),n||ft(),n}function tB(r,e){if(!U(p.lessThan))return Es(r,e);const t=T.snapshot();Xh();const n=Es(r,e);if(n||ft(),T.error)T.restoreFromSnapshot(t);else return n;return Es(r,e)}function rB(){if(U(p.colon)){const r=T.snapshot();Uu(p.colon),On()&&ft(),U(p.arrow)||ft(),T.error&&T.restoreFromSnapshot(r)}return be(p.arrow)}function nB(){const r=gt(0);be(p.question),ol(),yt(r)}function sB(){U(p.lessThan)&&qi(),H_()}function iB(){for(;;){if(T.pos>=Be.length){ft("Unterminated JSX contents");return}const r=Be.charCodeAt(T.pos);switch(r){case ue.lessThan:case ue.leftCurlyBrace:if(T.pos===T.start){if(r===ue.lessThan){T.pos++,mt(p.jsxTagStart);return}l_(r);return}mt(p.jsxText);return;default:T.pos++}}}function aB(r){for(T.pos++;;){if(T.pos>=Be.length){ft("Unterminated string constant");return}if(Be.charCodeAt(T.pos)===r){T.pos++;break}T.pos++}mt(p.string)}function oB(){let r;do{if(T.pos>Be.length){ft("Unexpectedly reached the end of input.");return}r=Be.charCodeAt(++T.pos)}while(is[r]||r===ue.dash);mt(p.jsxName)}function $1(){Wn()}function A_(r){if($1(),!be(p.colon)){T.tokens[T.tokens.length-1].identifierRole=r;return}$1()}function C_(){for(A_(pt.Access);U(p.dot);)Wn(),$1()}function lB(){switch(T.type){case p.braceL:Te(),P_(),Wn();return;case p.jsxTagStart:N_(),Wn();return;case p.string:Wn();return;default:ft("JSX value should be either an expression or a quoted JSX text")}}function uB(){ke(p.ellipsis),Gr()}function P_(){U(p.braceR)||Gr()}function cB(){if(be(p.braceL)){ke(p.ellipsis),Dr(),Wn();return}A_(pt.ObjectKey),U(p.eq)&&(Wn(),lB())}function fB(){if(U(p.jsxTagEnd))return!1;for(C_(),Tt&&C4();!U(p.slash)&&!U(p.jsxTagEnd)&&!T.error;)cB();const r=U(p.slash);return r&&Wn(),r}function hB(){U(p.jsxTagEnd)||C_()}function I_(){if(!fB())for(Yl();;)switch(T.type){case p.jsxTagStart:if(Wn(),U(p.slash)){Wn(),hB();return}I_(),Yl();break;case p.jsxText:Yl();break;case p.braceL:Te(),U(p.ellipsis)?(uB(),Yl()):(P_(),Yl());break;default:ft();return}}function N_(){Wn(),I_()}function Wn(){T.tokens.push(new Kh),o_(),T.start=T.pos;const r=Be.charCodeAt(T.pos);if(Zu[r])oB();else if(r===ue.quotationMark||r===ue.apostrophe)aB(r);else switch(++T.pos,r){case ue.greaterThan:mt(p.jsxTagEnd);break;case ue.lessThan:mt(p.jsxTagStart);break;case ue.slash:mt(p.slash);break;case ue.equalsTo:mt(p.eq);break;case ue.leftCurlyBrace:mt(p.braceL);break;case ue.dot:mt(p.dot);break;case ue.colon:mt(p.colon);break;default:ft()}}function Yl(){T.tokens.push(new Kh),T.start=T.pos,iB()}function pB(r){if(U(p.question)){const e=ir();if(e===p.colon||e===p.comma||e===p.parenR)return}O_(r)}function dB(){r_(p.question),U(p.colon)&&(Tt?tc():Dt&&Ra())}class mB{constructor(e){this.stop=e}}function Gr(r=!1){if(Dr(r),U(p.comma))for(;be(p.comma);)Dr(r)}function Dr(r=!1,e=!1){return Tt?Z4(r,e):Dt?w6(r,e):Es(r,e)}function Es(r,e){if(U(p._yield))return OB(),!1;(U(p.parenL)||U(p.name)||U(p._yield))&&(T.potentialArrowAt=T.start);const t=gB(r);return e&&Jg(),T.type&p.IS_ASSIGN?(Te(),Dr(r),!1):t}function gB(r){return vB(r)?!0:(yB(r),!1)}function yB(r){Tt||Dt?pB(r):O_(r)}function O_(r){be(p.question)&&(Dr(),ke(p.colon),Dr(r))}function vB(r){const e=T.tokens.length;return rc()?!0:(df(e,-1,r),!1)}function df(r,e,t){if(Tt&&(p._in&p.PRECEDENCE_MASK)>e&&!Is()&&nn(Q._as)){T.tokens[T.tokens.length-1].type=p._as;const s=gt(1);lr(),yt(s),df(r,e,t);return}const n=T.type&p.PRECEDENCE_MASK;if(n>0&&(!t||!U(p._in))&&n>e){const s=T.type;Te(),s===p.nullishCoalescing&&(T.tokens[T.tokens.length-1].nullishStartIndex=r);const a=T.tokens.length;rc(),df(a,s&p.IS_RIGHT_ASSOCIATIVE?n-1:n,t),s===p.nullishCoalescing&&(T.tokens[r].numNullishCoalesceStarts++,T.tokens[T.tokens.length-1].numNullishCoalesceEnds++),df(r,e,t)}}function rc(){if(Tt&&!Gh&&be(p.lessThan))return A4(),!1;if(ot(Q._module)&&s_()===ue.leftCurlyBrace&&!aF())return LB(),!1;if(T.type&p.IS_PREFIX)return Te(),rc(),!1;if(L_())return!0;for(;T.type&p.IS_POSTFIX&&!On();)T.type===p.preIncDec&&(T.type=p.postIncDec),Te();return!1}function L_(){const r=T.tokens.length;return ai()?!0:(Gg(r),T.tokens.length>r&&T.tokens[r].isOptionalChainStart&&(T.tokens[T.tokens.length-1].isOptionalChainEnd=!0),!1)}function Gg(r,e=!1){Dt?S6(r,e):M_(r,e)}function M_(r,e=!1){const t=new mB(!1);do bB(r,e,t);while(!t.stop&&!T.error)}function bB(r,e,t){Tt?j4(r,e,t):Dt?n6(r,e,t):Kg(r,e,t)}function Kg(r,e,t){if(!e&&be(p.doubleColon))Yg(),t.stop=!0,Gg(r,e);else if(U(p.questionDot)){if(T.tokens[r].isOptionalChainStart=!0,e&&ir()===p.parenL){t.stop=!0;return}Te(),T.tokens[T.tokens.length-1].subscriptStartIndex=r,be(p.bracketL)?(Gr(),ke(p.bracketR)):be(p.parenL)?Oi():Kf()}else if(be(p.dot))T.tokens[T.tokens.length-1].subscriptStartIndex=r,Kf();else if(be(p.bracketL))T.tokens[T.tokens.length-1].subscriptStartIndex=r,Gr(),ke(p.bracketR);else if(!e&&U(p.parenL))if(D_()){const n=T.snapshot(),s=T.tokens.length;Te(),T.tokens[T.tokens.length-1].subscriptStartIndex=r;const a=ju();T.tokens[T.tokens.length-1].contextId=a,Oi(),T.tokens[T.tokens.length-1].contextId=a,wB()&&(T.restoreFromSnapshot(n),t.stop=!0,T.scopeDepth++,ll(),xB(s))}else{Te(),T.tokens[T.tokens.length-1].subscriptStartIndex=r;const n=ju();T.tokens[T.tokens.length-1].contextId=n,Oi(),T.tokens[T.tokens.length-1].contextId=n}else U(p.backQuote)?Xg():t.stop=!0}function D_(){return T.tokens[T.tokens.length-1].contextualKeyword===Q._async&&!On()}function Oi(){let r=!0;for(;!be(p.parenR)&&!T.error;){if(r)r=!1;else if(ke(p.comma),be(p.parenR))break;$_(!1)}}function wB(){return U(p.colon)||U(p.arrow)}function xB(r){Tt?Q4():Dt&&b6(),ke(p.arrow),Wu(r)}function Yg(){const r=T.tokens.length;ai(),Gg(r,!0)}function ai(){if(be(p.modulo))return bt(),!1;if(U(p.jsxText))return jo(),!1;if(U(p.lessThan)&&Gh)return T.type=p.jsxTagStart,N_(),Te(),!1;const r=T.potentialArrowAt===T.start;switch(T.type){case p.slash:case p.assign:pF();case p._super:case p._this:case p.regexp:case p.num:case p.bigint:case p.decimal:case p.string:case p._null:case p._true:case p._false:return Te(),!1;case p._import:return Te(),U(p.dot)&&(T.tokens[T.tokens.length-1].type=p.name,Te(),bt()),!1;case p.name:{const e=T.tokens.length,t=T.start,n=T.contextualKeyword;return bt(),n===Q._await?(NB(),!1):n===Q._async&&U(p._function)&&!On()?(Te(),Ia(t,!1),!1):r&&n===Q._async&&!On()&&U(p.name)?(T.scopeDepth++,Vi(!1),ke(p.arrow),Wu(e),!0):U(p._do)&&!On()?(Te(),Li(),!1):r&&!On()&&U(p.arrow)?(T.scopeDepth++,Ug(!1),ke(p.arrow),Wu(e),!0):(T.tokens[T.tokens.length-1].identifierRole=pt.Access,!1)}case p._do:return Te(),Li(),!1;case p.parenL:return kB(r);case p.bracketL:return Te(),B_(p.bracketR,!0),!1;case p.braceL:return R_(!1,!1),!1;case p._function:return SB(),!1;case p.at:ay();case p._class:return Na(!1),!1;case p._new:return _B(),!1;case p.backQuote:return Xg(),!1;case p.doubleColon:return Te(),Yg(),!1;case p.hash:{const e=s_();return Zu[e]||e===ue.backslash?Kf():Te(),!1}default:return ft(),!1}}function Kf(){be(p.hash),bt()}function SB(){const r=T.start;bt(),be(p.dot)&&bt(),Ia(r,!1)}function jo(){Te()}function Zh(){ke(p.parenL),Gr(),ke(p.parenR)}function kB(r){const e=T.snapshot(),t=T.tokens.length;ke(p.parenL);let n=!0;for(;!U(p.parenR)&&!T.error;){if(n)n=!1;else if(ke(p.comma),U(p.parenR))break;if(U(p.ellipsis)){y_(!1),Jg();break}else Dr(!1,!0)}return ke(p.parenR),r&&TB()&&j1()?(T.restoreFromSnapshot(e),T.scopeDepth++,ll(),j1(),Wu(t),!0):!1}function TB(){return U(p.colon)||!On()}function j1(){return Tt?rB():Dt?x6():be(p.arrow)}function Jg(){(Tt||Dt)&&dB()}function _B(){if(ke(p._new),be(p.dot)){bt();return}Yg(),be(p.questionDot),EB()}function EB(){Tt?U4():Dt&&s6(),be(p.parenL)&&B_(p.parenR)}function Xg(){for(Pi(),Pi();!U(p.backQuote)&&!T.error;)ke(p.dollarBraceL),Gr(),Pi(),Pi();Te()}function R_(r,e){const t=ju();let n=!0;for(Te(),T.tokens[T.tokens.length-1].contextId=t;!be(p.braceR)&&!T.error;){if(n)n=!1;else if(ke(p.comma),be(p.braceR))break;let s=!1;if(U(p.ellipsis)){const a=T.tokens.length;if(g_(),r&&(T.tokens.length===a+2&&Ug(e),be(p.braceR)))break;continue}r||(s=be(p.star)),!r&&ot(Q._async)?(s&&ft(),bt(),U(p.colon)||U(p.parenL)||U(p.braceR)||U(p.eq)||U(p.comma)||(U(p.star)&&(Te(),s=!0),qu(t))):qu(t),IB(r,e,t)}T.tokens[T.tokens.length-1].contextId=t}function AB(r){return!r&&(U(p.string)||U(p.num)||U(p.bracketL)||U(p.name)||!!(T.type&p.IS_KEYWORD))}function CB(r,e){const t=T.start;return U(p.parenL)?(r&&ft(),U1(t,!1),!0):AB(r)?(qu(e),U1(t,!1),!0):!1}function PB(r,e){if(be(p.colon)){r?Vf(e):Dr(!1);return}let t;r?T.scopeDepth===0?t=pt.ObjectShorthandTopLevelDeclaration:e?t=pt.ObjectShorthandBlockScopedDeclaration:t=pt.ObjectShorthandFunctionScopedDeclaration:t=pt.ObjectShorthand,T.tokens[T.tokens.length-1].identifierRole=t,Vf(e,!0)}function IB(r,e,t){Tt?Y4():Dt&&p6(),CB(r,t)||PB(r,e)}function qu(r){Dt&&iy(),be(p.bracketL)?(T.tokens[T.tokens.length-1].contextId=r,Dr(),ke(p.bracketR),T.tokens[T.tokens.length-1].contextId=r):(U(p.num)||U(p.string)||U(p.bigint)||U(p.decimal)?ai():Kf(),T.tokens[T.tokens.length-1].identifierRole=pt.ObjectKey,T.tokens[T.tokens.length-1].contextId=r)}function U1(r,e){const t=ju();T.scopeDepth++;const n=T.tokens.length;ll(e,t),F_(r,t);const a=T.tokens.length;T.scopes.push(new Ps(n,a,!0)),T.scopeDepth--}function Wu(r){nc(!0);const e=T.tokens.length;T.scopes.push(new Ps(r,e,!0)),T.scopeDepth--}function F_(r,e=0){Tt?$4(r,e):Dt?r6(e):nc(!1,e)}function nc(r,e=0){r&&!U(p.braceL)?Dr():Li(!0,e)}function B_(r,e=!1){let t=!0;for(;!be(r)&&!T.error;){if(t)t=!1;else if(ke(p.comma),be(r))break;$_(e)}}function $_(r){r&&U(p.comma)||(U(p.ellipsis)?(g_(),Jg()):U(p.question)?Te():Dr(!1,!0))}function bt(){Te(),T.tokens[T.tokens.length-1].type=p.name}function NB(){rc()}function OB(){Te(),!U(p.semi)&&!On()&&(be(p.star),Dr())}function LB(){Mr(Q._module),ke(p.braceL),tp(p.braceR)}function MB(r){return(r.type===p.name||!!(r.type&p.IS_KEYWORD))&&r.contextualKeyword!==Q._from}function Ns(r){const e=gt(0);ke(r||p.colon),_n(),yt(e)}function gw(){ke(p.modulo),Mr(Q._checks),be(p.parenL)&&(Gr(),ke(p.parenR))}function Qg(){const r=gt(0);ke(p.colon),U(p.modulo)?gw():(_n(),U(p.modulo)&&gw()),yt(r)}function DB(){Te(),Zg(!0)}function RB(){Te(),bt(),U(p.lessThan)&&us(),ke(p.parenL),W1(),ke(p.parenR),Qg(),Yt()}function q1(){U(p._class)?DB():U(p._function)?RB():U(p._var)?FB():nn(Q._module)?be(p.dot)?jB():BB():ot(Q._type)?UB():ot(Q._opaque)?qB():ot(Q._interface)?WB():U(p._export)?$B():ft()}function FB(){Te(),W_(),Yt()}function BB(){for(U(p.string)?ai():bt(),ke(p.braceL);!U(p.braceR)&&!T.error;)U(p._import)?(Te(),Q_()):ft();ke(p.braceR)}function $B(){ke(p._export),be(p._default)?U(p._function)||U(p._class)?q1():(_n(),Yt()):U(p._var)||U(p._function)||U(p._class)||ot(Q._opaque)?q1():U(p.star)||U(p.braceL)||ot(Q._interface)||ot(Q._type)||ot(Q._opaque)?J_():ft()}function jB(){Mr(Q._exports),Ra(),Yt()}function UB(){Te(),ty()}function qB(){Te(),ry(!0)}function WB(){Te(),Zg()}function Zg(r=!1){if(ep(),U(p.lessThan)&&us(),be(p._extends))do mf();while(!r&&be(p.comma));if(ot(Q._mixins)){Te();do mf();while(be(p.comma))}if(ot(Q._implements)){Te();do mf();while(be(p.comma))}Yf(r,!1,r)}function mf(){j_(!1),U(p.lessThan)&&Pa()}function ey(){Zg()}function ep(){bt()}function ty(){ep(),U(p.lessThan)&&us(),Ns(p.eq),Yt()}function ry(r){Mr(Q._type),ep(),U(p.lessThan)&&us(),U(p.colon)&&Ns(p.colon),r||Ns(p.eq),Yt()}function zB(){iy(),W_(),be(p.eq)&&_n()}function us(){const r=gt(0);U(p.lessThan)||U(p.typeParameterStart)?Te():ft();do zB(),U(p.greaterThan)||ke(p.comma);while(!U(p.greaterThan)&&!T.error);ke(p.greaterThan),yt(r)}function Pa(){const r=gt(0);for(ke(p.lessThan);!U(p.greaterThan)&&!T.error;)_n(),U(p.greaterThan)||ke(p.comma);ke(p.greaterThan),yt(r)}function HB(){if(Mr(Q._interface),be(p._extends))do mf();while(be(p.comma));Yf(!1,!1,!1)}function ny(){U(p.num)||U(p.string)?ai():bt()}function VB(){ir()===p.colon?(ny(),Ns()):_n(),ke(p.bracketR),Ns()}function GB(){ny(),ke(p.bracketR),ke(p.bracketR),U(p.lessThan)||U(p.parenL)?sy():(be(p.question),Ns())}function sy(){for(U(p.lessThan)&&us(),ke(p.parenL);!U(p.parenR)&&!U(p.ellipsis)&&!T.error;)Jf(),U(p.parenR)||ke(p.comma);be(p.ellipsis)&&Jf(),ke(p.parenR),Ns()}function KB(){sy()}function Yf(r,e,t){let n;for(e&&U(p.braceBarL)?(ke(p.braceBarL),n=p.braceBarR):(ke(p.braceL),n=p.braceR);!U(n)&&!T.error;){if(t&&ot(Q._proto)){const s=ir();s!==p.colon&&s!==p.question&&(Te(),r=!1)}if(r&&ot(Q._static)){const s=ir();s!==p.colon&&s!==p.question&&Te()}if(iy(),be(p.bracketL))be(p.bracketL)?GB():VB();else if(U(p.parenL)||U(p.lessThan))KB();else{if(ot(Q._get)||ot(Q._set)){const s=ir();(s===p.name||s===p.string||s===p.num)&&Te()}YB()}JB()}ke(n)}function YB(){if(U(p.ellipsis)){if(ke(p.ellipsis),be(p.comma)||be(p.semi),U(p.braceR))return;_n()}else ny(),U(p.lessThan)||U(p.parenL)?sy():(be(p.question),Ns())}function JB(){!be(p.semi)&&!be(p.comma)&&!U(p.braceR)&&!U(p.braceBarR)&&ft()}function j_(r){for(r||bt();be(p.dot);)bt()}function XB(){j_(!0),U(p.lessThan)&&Pa()}function QB(){ke(p._typeof),U_()}function ZB(){for(ke(p.bracketL);T.pos<Be.length&&!U(p.bracketR)&&(_n(),!U(p.bracketR));)ke(p.comma);ke(p.bracketR)}function Jf(){const r=ir();r===p.colon||r===p.question?(bt(),be(p.question),Ns()):_n()}function W1(){for(;!U(p.parenR)&&!U(p.ellipsis)&&!T.error;)Jf(),U(p.parenR)||ke(p.comma);be(p.ellipsis)&&Jf()}function U_(){let r=!1;const e=T.noAnonFunctionType;switch(T.type){case p.name:{if(ot(Q._interface)){HB();return}bt(),XB();return}case p.braceL:Yf(!1,!1,!1);return;case p.braceBarL:Yf(!1,!0,!1);return;case p.bracketL:ZB();return;case p.lessThan:us(),ke(p.parenL),W1(),ke(p.parenR),ke(p.arrow),_n();return;case p.parenL:if(Te(),!U(p.parenR)&&!U(p.ellipsis))if(U(p.name)){const t=ir();r=t!==p.question&&t!==p.colon}else r=!0;if(r)if(T.noAnonFunctionType=!1,_n(),T.noAnonFunctionType=e,T.noAnonFunctionType||!(U(p.comma)||U(p.parenR)&&ir()===p.arrow)){ke(p.parenR);return}else be(p.comma);W1(),ke(p.parenR),ke(p.arrow),_n();return;case p.minus:Te(),jo();return;case p.string:case p.num:case p._true:case p._false:case p._null:case p._this:case p._void:case p.star:Te();return;default:if(T.type===p._typeof){QB();return}else if(T.type&p.IS_KEYWORD){Te(),T.tokens[T.tokens.length-1].type=p.name;return}}ft()}function e6(){for(U_();!On()&&(U(p.bracketL)||U(p.questionDot));)be(p.questionDot),ke(p.bracketL),be(p.bracketR)||(_n(),ke(p.bracketR))}function q_(){be(p.question)?q_():e6()}function yw(){q_(),!T.noAnonFunctionType&&be(p.arrow)&&_n()}function vw(){for(be(p.bitwiseAND),yw();be(p.bitwiseAND);)yw()}function t6(){for(be(p.bitwiseOR),vw();be(p.bitwiseOR);)vw()}function _n(){t6()}function Ra(){Ns()}function W_(){bt(),U(p.colon)&&Ra()}function iy(){(U(p.plus)||U(p.minus))&&(Te(),T.tokens[T.tokens.length-1].isType=!0)}function r6(r){U(p.colon)&&Qg(),nc(!1,r)}function n6(r,e,t){if(U(p.questionDot)&&ir()===p.lessThan){if(e){t.stop=!0;return}Te(),Pa(),ke(p.parenL),Oi();return}else if(!e&&U(p.lessThan)){const n=T.snapshot();if(Pa(),ke(p.parenL),Oi(),T.error)T.restoreFromSnapshot(n);else return}Kg(r,e,t)}function s6(){if(U(p.lessThan)){const r=T.snapshot();Pa(),T.error&&T.restoreFromSnapshot(r)}}function i6(){if(U(p.name)&&T.contextualKeyword===Q._interface){const r=gt(0);return Te(),ey(),yt(r),!0}else return!1}function a6(r){if(r===Q._declare){if(U(p._class)||U(p.name)||U(p._function)||U(p._var)||U(p._export)){const e=gt(1);q1(),yt(e)}}else if(U(p.name)){if(r===Q._interface){const e=gt(1);ey(),yt(e)}else if(r===Q._type){const e=gt(1);ty(),yt(e)}else if(r===Q._opaque){const e=gt(1);ry(!1),yt(e)}}Yt()}function o6(){return ot(Q._type)||ot(Q._interface)||ot(Q._opaque)}function l6(){return U(p.name)&&(T.contextualKeyword===Q._type||T.contextualKeyword===Q._interface||T.contextualKeyword===Q._opaque)}function u6(){if(ot(Q._type)){const r=gt(1);Te(),U(p.braceL)?(oy(),zu()):ty(),yt(r)}else if(ot(Q._opaque)){const r=gt(1);Te(),ry(!1),yt(r)}else if(ot(Q._interface)){const r=gt(1);Te(),ey(),yt(r)}else Fn(!0)}function c6(){return U(p.star)||ot(Q._type)&&ir()===p.star}function f6(){if(nn(Q._type)){const r=gt(2);H1(),yt(r)}else H1()}function h6(r){if(r&&U(p.lessThan)&&Pa(),ot(Q._implements)){const e=gt(0);Te(),T.tokens[T.tokens.length-1].type=p._implements;do ep(),U(p.lessThan)&&Pa();while(be(p.comma));yt(e)}}function p6(){U(p.lessThan)&&(us(),U(p.parenL)||ft())}function d6(){const r=gt(0);be(p.question),U(p.colon)&&Ra(),yt(r)}function m6(){if(U(p._typeof)||ot(Q._type)){const r=Yh();(MB(r)||r.type===p.braceL||r.type===p.star)&&Te()}}function g6(){const r=T.contextualKeyword===Q._type||T.type===p._typeof;r?Te():bt(),ot(Q._as)&&!XT(Q._as)?(bt(),r&&!U(p.name)&&!(T.type&p.IS_KEYWORD)||bt()):r&&(U(p.name)||!!(T.type&p.IS_KEYWORD))&&(bt(),nn(Q._as)&&bt())}function y6(){if(U(p.lessThan)){const r=gt(0);us(),yt(r)}}function v6(){U(p.colon)&&Ra()}function b6(){if(U(p.colon)){const r=T.noAnonFunctionType;T.noAnonFunctionType=!0,Ra(),T.noAnonFunctionType=r}}function w6(r,e){if(U(p.lessThan)){const t=T.snapshot();let n=Es(r,e);if(T.error)T.restoreFromSnapshot(t),T.type=p.typeParameterStart;else return n;const s=gt(0);if(us(),yt(s),n=Es(r,e),n)return!0;ft()}return Es(r,e)}function x6(){if(U(p.colon)){const r=gt(0),e=T.snapshot(),t=T.noAnonFunctionType;T.noAnonFunctionType=!0,Qg(),T.noAnonFunctionType=t,On()&&ft(),U(p.arrow)||ft(),T.error&&T.restoreFromSnapshot(e),yt(r)}return be(p.arrow)}function S6(r,e=!1){if(T.tokens[T.tokens.length-1].contextualKeyword===Q._async&&U(p.lessThan)){const t=T.snapshot();if(k6()&&!T.error)return;T.restoreFromSnapshot(t)}M_(r,e)}function k6(){T.scopeDepth++;const r=T.tokens.length;return ll(),j1()?(Wu(r),!0):!1}function T6(){if(tp(p.eof),T.scopes.push(new Ps(0,T.tokens.length,!0)),T.scopeDepth!==0)throw new Error(`Invalid scope depth at end of file: ${T.scopeDepth}`);return new a8(T.tokens,T.scopes)}function Fn(r){Dt&&i6()||(U(p.at)&&ay(),_6(r))}function _6(r){if(Tt&&z4())return;const e=T.type;switch(e){case p._break:case p._continue:A6();return;case p._debugger:C6();return;case p._do:P6();return;case p._for:I6();return;case p._function:if(ir()===p.dot)break;r||ft(),O6();return;case p._class:r||ft(),Na(!0);return;case p._if:L6();return;case p._return:M6();return;case p._switch:D6();return;case p._throw:R6();return;case p._try:B6();return;case p._let:case p._const:r||ft();case p._var:V_(e);return;case p._while:$6();return;case p.braceL:Li();return;case p.semi:j6();return;case p._export:case p._import:{const s=ir();if(s===p.parenL||s===p.dot)break;Te(),e===p._import?Q_():J_();return}case p.name:if(T.contextualKeyword===Q._async){const s=T.start,a=T.snapshot();if(Te(),U(p._function)&&!On()){ke(p._function),Ia(s,!0);return}else T.restoreFromSnapshot(a)}}const t=T.tokens.length;Gr();let n=null;if(T.tokens.length===t+1){const s=T.tokens[T.tokens.length-1];s.type===p.name&&(n=s.contextualKeyword)}if(n==null){Yt();return}be(p.colon)?U6():q6(n)}function ay(){for(;U(p.at);)z_()}function z_(){if(Te(),be(p.parenL))Gr(),ke(p.parenR);else for(bt();be(p.dot);)bt();E6()}function E6(){Tt?sB():H_()}function H_(){be(p.parenL)&&Oi()}function A6(){Te(),ri()||(bt(),Yt())}function C6(){Te(),Yt()}function P6(){Te(),Fn(!1),ke(p._while),Zh(),be(p.semi)}function I6(){T.scopeDepth++;const r=T.tokens.length;N6();const e=T.tokens.length;T.scopes.push(new Ps(r,e,!1)),T.scopeDepth--}function N6(){Te();let r=!1;if(ot(Q._await)&&(r=!0,Te()),ke(p.parenL),U(p.semi)){r&&ft(),Cd();return}if(U(p._var)||U(p._let)||U(p._const)){const e=T.type;if(Te(),G_(!0,e),U(p._in)||ot(Q._of)){bw(r);return}Cd();return}if(Gr(!0),U(p._in)||ot(Q._of)){bw(r);return}r&&ft(),Cd()}function O6(){const r=T.start;Te(),Ia(r,!0)}function L6(){Te(),Zh(),Fn(!1),be(p._else)&&Fn(!1)}function M6(){Te(),ri()||(Gr(),Yt())}function D6(){Te(),Zh(),T.scopeDepth++;const r=T.tokens.length;for(ke(p.braceL);!U(p.braceR)&&!T.error;)if(U(p._case)||U(p._default)){const t=U(p._case);Te(),t&&Gr(),ke(p.colon)}else Fn(!0);Te();const e=T.tokens.length;T.scopes.push(new Ps(r,e,!1)),T.scopeDepth--}function R6(){Te(),Gr(),Yt()}function F6(){Jh(!0),Tt&&ol()}function B6(){if(Te(),Li(),U(p._catch)){Te();let r=null;if(U(p.parenL)&&(T.scopeDepth++,r=T.tokens.length,ke(p.parenL),F6(),ke(p.parenR)),Li(),r!=null){const e=T.tokens.length;T.scopes.push(new Ps(r,e,!1)),T.scopeDepth--}}be(p._finally)&&Li()}function V_(r){Te(),G_(!1,r),Yt()}function $6(){Te(),Zh(),Fn(!1)}function j6(){Te()}function U6(){Fn(!0)}function q6(r){Tt?V4(r):Dt?a6(r):Yt()}function Li(r=!1,e=0){const t=T.tokens.length;T.scopeDepth++,ke(p.braceL),e&&(T.tokens[T.tokens.length-1].contextId=e),tp(p.braceR),e&&(T.tokens[T.tokens.length-1].contextId=e);const n=T.tokens.length;T.scopes.push(new Ps(t,n,r)),T.scopeDepth--}function tp(r){for(;!be(r)&&!T.error;)Fn(!0)}function Cd(){ke(p.semi),U(p.semi)||Gr(),ke(p.semi),U(p.parenR)||Gr(),ke(p.parenR),Fn(!1)}function bw(r){r?nn(Q._of):Te(),Gr(),ke(p.parenR),Fn(!1)}function G_(r,e){for(;;){const t=e===p._const||e===p._let;if(W6(t),be(p.eq)){const n=T.tokens.length-1;Dr(r),T.tokens[n].rhsEndIndex=T.tokens.length}if(!be(p.comma))break}}function W6(r){Jh(r),Tt?X4():Dt&&v6()}function Ia(r,e,t=!1){U(p.star)&&Te(),e&&!t&&!U(p.name)&&!U(p._yield)&&ft();let n=null;U(p.name)&&(e||(n=T.tokens.length,T.scopeDepth++),Vi(!1));const s=T.tokens.length;T.scopeDepth++,ll(),F_(r);const a=T.tokens.length;T.scopes.push(new Ps(s,a,!0)),T.scopeDepth--,n!==null&&(T.scopes.push(new Ps(n,a,!0)),T.scopeDepth--)}function ll(r=!1,e=0){Tt?J4():Dt&&y6(),ke(p.parenL),e&&(T.tokens[T.tokens.length-1].contextId=e),qg(p.parenR,!1,!1,r,e),e&&(T.tokens[T.tokens.length-1].contextId=e)}function Na(r,e=!1){const t=ju();Te(),T.tokens[T.tokens.length-1].contextId=t,T.tokens[T.tokens.length-1].isExpression=!r;let n=null;r||(n=T.tokens.length,T.scopeDepth++),G6(r,e),K6();const s=T.tokens.length;if(z6(t),!T.error&&(T.tokens[s].contextId=t,T.tokens[T.tokens.length-1].contextId=t,n!==null)){const a=T.tokens.length;T.scopes.push(new Ps(n,a,!1)),T.scopeDepth--}}function K_(){return U(p.eq)||U(p.semi)||U(p.braceR)||U(p.bang)||U(p.colon)}function Y_(){return U(p.parenL)||U(p.lessThan)}function z6(r){for(ke(p.braceL);!be(p.braceR)&&!T.error;){if(be(p.semi))continue;if(U(p.at)){z_();continue}const e=T.start;H6(e,r)}}function H6(r,e){Tt&&Wg([Q._declare,Q._public,Q._protected,Q._private,Q._override]);let t=!1;if(U(p.name)&&T.contextualKeyword===Q._static){if(bt(),Y_()){Xl(r,!1);return}else if(K_()){z1();return}if(T.tokens[T.tokens.length-1].type=p._static,t=!0,U(p.braceL)){T.tokens[T.tokens.length-1].contextId=e,Li();return}}V6(r,t,e)}function V6(r,e,t){if(Tt&&H4(e))return;if(be(p.star)){Yc(t),Xl(r,!1);return}Yc(t);let n=!1;const s=T.tokens[T.tokens.length-1];s.contextualKeyword===Q._constructor&&(n=!0),ww(),Y_()?Xl(r,n):K_()?z1():s.contextualKeyword===Q._async&&!ri()?(T.tokens[T.tokens.length-1].type=p._async,U(p.star)&&Te(),Yc(t),ww(),Xl(r,!1)):(s.contextualKeyword===Q._get||s.contextualKeyword===Q._set)&&!(ri()&&U(p.star))?(s.contextualKeyword===Q._get?T.tokens[T.tokens.length-1].type=p._get:T.tokens[T.tokens.length-1].type=p._set,Yc(t),Xl(r,!1)):ri()?z1():ft()}function Xl(r,e){Tt?Da():Dt&&U(p.lessThan)&&us(),U1(r,e)}function Yc(r){qu(r)}function ww(){if(Tt){const r=gt(0);be(p.question),yt(r)}}function z1(){if(Tt?(r_(p.bang),ol()):Dt&&U(p.colon)&&Ra(),U(p.eq)){const r=T.tokens.length;Te(),Dr(),T.tokens[r].rhsEndIndex=T.tokens.length}Yt()}function G6(r,e=!1){Tt&&(!r||e)&&ot(Q._implements)||(U(p.name)&&Vi(!0),Tt?Da():Dt&&U(p.lessThan)&&us())}function K6(){let r=!1;be(p._extends)?(L_(),r=!0):r=!1,Tt?K4(r):Dt&&h6(r)}function J_(){const r=T.tokens.length-1;Tt&&q4()||(Q6()?Z6():X6()?(bt(),U(p.comma)&&ir()===p.star?(ke(p.comma),ke(p.star),Mr(Q._as),bt()):X_(),zu()):be(p._default)?Y6():t8()?J6():(oy(),zu()),T.tokens[r].rhsEndIndex=T.tokens.length)}function Y6(){if(Tt&&W4())return;const r=T.start;be(p._function)?Ia(r,!0,!0):ot(Q._async)&&ir()===p._function?(nn(Q._async),be(p._function),Ia(r,!0,!0)):U(p._class)?Na(!0,!0):U(p.at)?(ay(),Na(!0,!0)):(Dr(),Yt())}function J6(){Tt?G4():Dt?u6():Fn(!0)}function X6(){if(Tt&&E_())return!1;if(Dt&&l6())return!1;if(U(p.name))return T.contextualKeyword!==Q._async;if(!U(p._default))return!1;const r=Bg(),e=Yh(),t=e.type===p.name&&e.contextualKeyword===Q._from;if(e.type===p.comma)return!0;if(t){const n=Be.charCodeAt(n_(r+4));return n===ue.quotationMark||n===ue.apostrophe}return!1}function X_(){be(p.comma)&&oy()}function zu(){nn(Q._from)&&ai(),Yt()}function Q6(){return Dt?c6():U(p.star)}function Z6(){Dt?f6():H1()}function H1(){ke(p.star),ot(Q._as)?e8():zu()}function e8(){Te(),T.tokens[T.tokens.length-1].type=p._as,bt(),X_(),zu()}function t8(){return Tt&&E_()||Dt&&o6()||T.type===p._var||T.type===p._const||T.type===p._let||T.type===p._function||T.type===p._class||ot(Q._async)||U(p.at)}function oy(){let r=!0;for(ke(p.braceL);!be(p.braceR)&&!T.error;){if(r)r=!1;else if(ke(p.comma),be(p.braceR))break;bt(),T.tokens[T.tokens.length-1].identifierRole=pt.ExportAccess,nn(Q._as)&&bt()}}function Q_(){if(Tt&&U(p.name)&&ir()===p.eq){B1();return}if(Tt&&ot(Q._type)){const r=ir();if(r===p.name){if(Mr(Q._type),ir()===p.eq){B1();return}}else(r===p.star||r===p.braceL)&&Mr(Q._type)}U(p.string)||(n8(),Mr(Q._from)),ai(),Yt()}function r8(){return U(p.name)}function xw(){Hf()}function n8(){Dt&&m6();let r=!0;if(!(r8()&&(xw(),!be(p.comma)))){if(U(p.star)){Te(),Mr(Q._as),xw();return}for(ke(p.braceL);!be(p.braceR)&&!T.error;){if(r)r=!1;else if(be(p.colon)&&ft("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),ke(p.comma),be(p.braceR))break;s8()}}}function s8(){if(Dt){g6();return}Hf(),ot(Q._as)&&(T.tokens[T.tokens.length-1].identifierRole=pt.ImportAccess,Te(),Hf())}function i8(){return T.pos===0&&Be.charCodeAt(0)===ue.numberSign&&Be.charCodeAt(1)===ue.exclamationMark&&a_(2),i_(),T6()}class a8{constructor(e,t){this.tokens=e,this.scopes=t}}function o8(r,e,t,n){if(n&&t)throw new Error("Cannot combine flow and typescript plugins.");iF(r,e,t,n);const s=i8();if(T.error)throw rF(T.error);return s}function l8(r){let e=r.currentIndex(),t=0;const n=r.currentToken();do{const s=r.tokens[e];if(s.isOptionalChainStart&&t++,s.isOptionalChainEnd&&t--,t+=s.numNullishCoalesceStarts,t-=s.numNullishCoalesceEnds,s.contextualKeyword===Q._await&&s.identifierRole==null&&s.scopeDepth===n.scopeDepth)return!0;e+=1}while(t>0&&e<r.tokens.length);return!1}class Xf{__init(){this.resultCode=""}__init2(){this.tokenIndex=0}constructor(e,t,n,s,a){this.code=e,this.tokens=t,this.isFlowEnabled=n,this.disableESTransforms=s,this.helperManager=a,Xf.prototype.__init.call(this),Xf.prototype.__init2.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(e){this.resultCode=e.resultCode,this.tokenIndex=e.tokenIndex}getResultCodeIndex(){return this.resultCode.length}reset(){this.resultCode="",this.tokenIndex=0}matchesContextualAtIndex(e,t){return this.matches1AtIndex(e,p.name)&&this.tokens[e].contextualKeyword===t}identifierNameAtIndex(e){return this.identifierNameForToken(this.tokens[e])}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(e){return this.code.slice(e.start,e.end)}rawCodeForToken(e){return this.code.slice(e.start,e.end)}stringValueAtIndex(e){return this.stringValueForToken(this.tokens[e])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(e){return this.code.slice(e.start+1,e.end-1)}matches1AtIndex(e,t){return this.tokens[e].type===t}matches2AtIndex(e,t,n){return this.tokens[e].type===t&&this.tokens[e+1].type===n}matches3AtIndex(e,t,n,s){return this.tokens[e].type===t&&this.tokens[e+1].type===n&&this.tokens[e+2].type===s}matches1(e){return this.tokens[this.tokenIndex].type===e}matches2(e,t){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t}matches3(e,t,n){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===n}matches4(e,t,n,s){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===n&&this.tokens[this.tokenIndex+3].type===s}matches5(e,t,n,s,a){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===n&&this.tokens[this.tokenIndex+3].type===s&&this.tokens[this.tokenIndex+4].type===a}matchesContextual(e){return this.matchesContextualAtIndex(this.tokenIndex,e)}matchesContextIdAndLabel(e,t){return this.matches1(e)&&this.currentToken().contextId===t}previousWhitespaceAndComments(){let e=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(e=e.replace(/@flow/g,"")),e}replaceToken(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(e){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,""),this.appendTokenPrefix(),this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}copyExpectedToken(e){if(this.tokens[this.tokenIndex].type!==e)throw new Error(`Expected token ${e}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=e,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){const e=this.currentToken();if((e.numNullishCoalesceStarts||e.isOptionalChainStart)&&(e.isAsyncOperation=l8(this)),!this.disableESTransforms){if(e.numNullishCoalesceStarts)for(let t=0;t<e.numNullishCoalesceStarts;t++)e.isAsyncOperation?(this.resultCode+="await ",this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")):this.resultCode+=this.helperManager.getHelperName("nullishCoalesce"),this.resultCode+="(";e.isOptionalChainStart&&(e.isAsyncOperation&&(this.resultCode+="await "),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===p._delete?e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const e=this.currentToken();if(e.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),e.numNullishCoalesceEnds&&!this.disableESTransforms)for(let t=0;t<e.numNullishCoalesceEnds;t++)this.resultCode+="))"}appendCode(e){this.resultCode+=e}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){const e=this.currentToken();return this.code.slice(e.start,e.end)}tokenAtRelativeIndex(e){return this.tokens[this.tokenIndex+e]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw new Error("Unexpectedly reached end of input.");this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw new Error("Tried to finish processing tokens before reaching the end.");return this.resultCode+=this.previousWhitespaceAndComments(),this.resultCode}isAtEnd(){return this.tokenIndex===this.tokens.length}}function u8(r,e,t,n){const s=e.snapshot(),a=c8(e);let l=[];const u=[],c=[];let m=null;const g=[],v=[],b=e.currentToken().contextId;if(b==null)throw new Error("Expected non-null class context ID on class open-brace.");for(e.nextToken();!e.matchesContextIdAndLabel(p.braceR,b);)if(e.matchesContextual(Q._constructor)&&!e.currentToken().isType)({constructorInitializerStatements:l,constructorInsertPos:m}=Sw(e));else if(e.matches1(p.semi))n||v.push({start:e.currentIndex(),end:e.currentIndex()+1}),e.nextToken();else if(e.currentToken().isType)e.nextToken();else{const x=e.currentIndex();let E=!1,S=!1,C=!1;for(;Qf(e.currentToken());)e.matches1(p._static)&&(E=!0),e.matches1(p.hash)&&(S=!0),e.matches1(p._declare)&&(C=!0),e.nextToken();if(E&&e.matches1(p.braceL)){Pd(e,b);continue}if(S){Pd(e,b);continue}if(e.matchesContextual(Q._constructor)&&!e.currentToken().isType){({constructorInitializerStatements:l,constructorInsertPos:m}=Sw(e));continue}const _=e.currentIndex();if(f8(e),e.matches1(p.lessThan)||e.matches1(p.parenL)){Pd(e,b);continue}for(;e.currentToken().isType;)e.nextToken();if(e.matches1(p.eq)){const A=e.currentIndex(),I=e.currentToken().rhsEndIndex;if(I==null)throw new Error("Expected rhsEndIndex on class field assignment.");for(e.nextToken();e.currentIndex()<I;)r.processToken();let M;E?(M=t.claimFreeName("__initStatic"),c.push(M)):(M=t.claimFreeName("__init"),u.push(M)),g.push({initializerName:M,equalsIndex:A,start:_,end:e.currentIndex()})}else(!n||C)&&v.push({start:x,end:e.currentIndex()})}return e.restoreToSnapshot(s),n?{headerInfo:a,constructorInitializerStatements:l,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:m,fields:[],rangesToRemove:v}:{headerInfo:a,constructorInitializerStatements:l,instanceInitializerNames:u,staticInitializerNames:c,constructorInsertPos:m,fields:g,rangesToRemove:v}}function Pd(r,e){for(r.nextToken();r.currentToken().contextId!==e;)r.nextToken();for(;Qf(r.tokenAtRelativeIndex(-1));)r.previousToken()}function c8(r){const e=r.currentToken(),t=e.contextId;if(t==null)throw new Error("Expected context ID on class token.");const n=e.isExpression;if(n==null)throw new Error("Expected isExpression on class token.");let s=null,a=!1;for(r.nextToken(),r.matches1(p.name)&&(s=r.identifierName());!r.matchesContextIdAndLabel(p.braceL,t);)r.matches1(p._extends)&&!r.currentToken().isType&&(a=!0),r.nextToken();return{isExpression:n,className:s,hasSuperclass:a}}function Sw(r){const e=[];r.nextToken();const t=r.currentToken().contextId;if(t==null)throw new Error("Expected context ID on open-paren starting constructor params.");for(;!r.matchesContextIdAndLabel(p.parenR,t);)if(r.currentToken().contextId===t){if(r.nextToken(),Qf(r.currentToken())){for(r.nextToken();Qf(r.currentToken());)r.nextToken();const a=r.currentToken();if(a.type!==p.name)throw new Error("Expected identifier after access modifiers in constructor arg.");const l=r.identifierNameForToken(a);e.push(`this.${l} = ${l}`)}}else r.nextToken();r.nextToken();let n=r.currentIndex(),s=!1;for(;!r.matchesContextIdAndLabel(p.braceR,t);){if(!s&&r.matches2(p._super,p.parenL)){r.nextToken();const a=r.currentToken().contextId;if(a==null)throw new Error("Expected a context ID on the super call");for(;!r.matchesContextIdAndLabel(p.parenR,a);)r.nextToken();n=r.currentIndex(),s=!0}r.nextToken()}return r.nextToken(),{constructorInitializerStatements:e,constructorInsertPos:n}}function Qf(r){return[p._async,p._get,p._set,p.plus,p.minus,p._readonly,p._static,p._public,p._private,p._protected,p._override,p._abstract,p.star,p._declare,p.hash].includes(r.type)}function f8(r){if(r.matches1(p.bracketL)){const t=r.currentToken().contextId;if(t==null)throw new Error("Expected class context ID on computed name open bracket.");for(;!r.matchesContextIdAndLabel(p.bracketR,t);)r.nextToken();r.nextToken()}else r.nextToken()}function Z_(r){if(r.removeInitialToken(),r.removeToken(),r.removeToken(),r.removeToken(),r.matches1(p.parenL))r.removeToken(),r.removeToken(),r.removeToken();else for(;r.matches1(p.dot);)r.removeToken(),r.removeToken()}const eE={typeDeclarations:new Set,valueDeclarations:new Set};function tE(r){const e=new Set,t=new Set;for(let n=0;n<r.tokens.length;n++){const s=r.tokens[n];s.type===p.name&&t_(s)&&(s.isType?e.add(r.identifierNameForToken(s)):t.add(r.identifierNameForToken(s)))}return{typeDeclarations:e,valueDeclarations:t}}function rE(r,e,t){if(!r)return!1;const n=e.currentToken();if(n.rhsEndIndex==null)throw new Error("Expected non-null rhsEndIndex on export token.");const s=n.rhsEndIndex-e.currentIndex();if(s!==3&&!(s===4&&e.matches1AtIndex(n.rhsEndIndex-1,p.semi)))return!1;const a=e.tokenAtRelativeIndex(2);if(a.type!==p.name)return!1;const l=e.identifierNameForToken(a);return t.typeDeclarations.has(l)&&!t.valueDeclarations.has(l)}class hu extends ls{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(e,t,n,s,a,l,u){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=n,this.nameManager=s,this.reactHotLoaderTransformer=a,this.enableLegacyBabel5ModuleInterop=l,this.isTypeScriptTransformEnabled=u,hu.prototype.__init.call(this),hu.prototype.__init2.call(this),hu.prototype.__init3.call(this),this.declarationInfo=u?tE(t):eE}getPrefixCode(){let e="";return this.hadExport&&(e+='Object.defineProperty(exports, "__esModule", {value: true});'),e}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?`
module.exports = exports.default;
`:""}process(){return this.tokens.matches3(p._import,p.name,p.eq)?this.processImportEquals():this.tokens.matches1(p._import)?(this.processImport(),!0):this.tokens.matches2(p._export,p.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(p._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):this.tokens.matches2(p.name,p.postIncDec)&&this.processPostIncDec()?!0:this.tokens.matches1(p.name)||this.tokens.matches1(p.jsxName)?this.processIdentifier():this.tokens.matches1(p.eq)?this.processAssignment():this.tokens.matches1(p.assign)?this.processComplexAssignment():this.tokens.matches1(p.preIncDec)?this.processPreIncDec():!1}processImportEquals(){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.isTypeName(e)?Z_(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(p._import,p.parenL)){this.tokens.replaceToken("Promise.resolve().then(() => require");const t=this.tokens.currentToken().contextId;if(t==null)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(p.parenR,t);)this.rootTransformer.processToken();this.tokens.replaceToken("))");return}if(this.removeImportAndDetectIfType())this.tokens.removeToken();else{const t=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(t)),this.tokens.appendCode(this.importProcessor.claimImportCode(t))}this.tokens.matches1(p.semi)&&this.tokens.removeToken()}removeImportAndDetectIfType(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(Q._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,p.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,Q._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(p.name)||this.tokens.matches1(p.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(p.string))return!1;let e=!1;for(;!this.tokens.matches1(p.string);)(!e&&this.tokens.matches1(p.braceL)||this.tokens.matches1(p.comma))&&(this.tokens.removeToken(),(this.tokens.matches2(p.name,p.comma)||this.tokens.matches2(p.name,p.braceR)||this.tokens.matches4(p.name,p.name,p.name,p.comma)||this.tokens.matches4(p.name,p.name,p.name,p.braceR))&&(e=!0)),this.tokens.removeToken();return!e}removeRemainingImport(){for(;!this.tokens.matches1(p.string);)this.tokens.removeToken()}processIdentifier(){const e=this.tokens.currentToken();if(e.shadowsGlobal)return!1;if(e.identifierRole===pt.ObjectShorthand)return this.processObjectShorthand();if(e.identifierRole!==pt.Access)return!1;const t=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(e));if(!t)return!1;let n=this.tokens.currentIndex()+1;for(;n<this.tokens.tokens.length&&this.tokens.tokens[n].type===p.parenR;)n++;return this.tokens.tokens[n].type===p.parenL?this.tokens.tokenAtRelativeIndex(1).type===p.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==p._new?(this.tokens.replaceToken(`${t}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.parenR)):this.tokens.replaceToken(`(0, ${t})`):this.tokens.replaceToken(t),!0}processObjectShorthand(){const e=this.tokens.identifierName(),t=this.importProcessor.getIdentifierReplacement(e);return t?(this.tokens.replaceToken(`${e}: ${t}`),!0):!1}processExport(){if(this.tokens.matches2(p._export,p._enum)||this.tokens.matches3(p._export,p._const,p._enum))return!1;if(this.tokens.matches2(p._export,p._default))return this.processExportDefault(),this.hadDefaultExport=!0,!0;if(this.hadNamedExport=!0,this.tokens.matches2(p._export,p._var)||this.tokens.matches2(p._export,p._let)||this.tokens.matches2(p._export,p._const))return this.processExportVar(),!0;if(this.tokens.matches2(p._export,p._function)||this.tokens.matches3(p._export,p.name,p._function))return this.processExportFunction(),!0;if(this.tokens.matches2(p._export,p._class)||this.tokens.matches3(p._export,p._abstract,p._class))return this.processExportClass(),!0;if(this.tokens.matches2(p._export,p.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(p._export,p.star))return this.processExportStar(),!0;if(this.tokens.matches3(p._export,p.name,p.braceL)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,Q._type)){for(this.tokens.removeInitialToken();!this.tokens.matches1(p.braceR);)this.tokens.removeToken();return this.tokens.removeToken(),this.tokens.matchesContextual(Q._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,p.string)&&(this.tokens.removeToken(),this.tokens.removeToken()),!0}else throw new Error("Unrecognized export syntax.")}processAssignment(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.isType||t.type!==p.name||t.shadowsGlobal||e>=2&&this.tokens.matches1AtIndex(e-2,p.dot)||e>=2&&[p._var,p._let,p._const].includes(this.tokens.tokens[e-2].type))return!1;const n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return n?(this.tokens.copyToken(),this.tokens.appendCode(` ${n} =`),!0):!1}processComplexAssignment(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.type!==p.name||t.shadowsGlobal||e>=2&&this.tokens.matches1AtIndex(e-2,p.dot))return!1;const n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return n?(this.tokens.appendCode(` = ${n}`),this.tokens.copyToken(),!0):!1}processPreIncDec(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e+1];if(t.type!==p.name||t.shadowsGlobal||e+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(e+2,p.dot)||this.tokens.matches1AtIndex(e+2,p.bracketL)||this.tokens.matches1AtIndex(e+2,p.parenL)))return!1;const n=this.tokens.identifierNameForToken(t),s=this.importProcessor.resolveExportBinding(n);return s?(this.tokens.appendCode(`${s} = `),this.tokens.copyToken(),!0):!1}processPostIncDec(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e],n=this.tokens.tokens[e+1];if(t.type!==p.name||t.shadowsGlobal||e>=1&&this.tokens.matches1AtIndex(e-1,p.dot))return!1;const s=this.tokens.identifierNameForToken(t),a=this.importProcessor.resolveExportBinding(s);if(!a)return!1;const l=this.tokens.rawCodeForToken(n),u=this.importProcessor.getIdentifierReplacement(s)||s;if(l==="++")this.tokens.replaceToken(`(${u} = ${a} = ${u} + 1, ${u} - 1)`);else if(l==="--")this.tokens.replaceToken(`(${u} = ${a} = ${u} - 1, ${u} + 1)`);else throw new Error(`Unexpected operator: ${l}`);return this.tokens.removeToken(),!0}processExportDefault(){if(this.tokens.matches4(p._export,p._default,p._function,p.name)||this.tokens.matches5(p._export,p._default,p.name,p._function,p.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,Q._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${e};`)}else if(this.tokens.matches4(p._export,p._default,p._class,p.name)||this.tokens.matches5(p._export,p._default,p._abstract,p._class,p.name)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(p._abstract)&&this.tokens.removeToken();const e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${e};`)}else{if(this.tokens.matches3(p._export,p._default,p.at))throw new Error("Export default statements with decorators are not yet supported.");if(rE(this.isTypeScriptTransformEnabled,this.tokens,this.declarationInfo))this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const e=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${e}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${e} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(e)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =")}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let e=this.tokens.currentIndex();if(e++,e++,!this.tokens.matches1AtIndex(e,p.name))return!1;for(e++;e<this.tokens.tokens.length&&this.tokens.tokens[e].isType;)e++;return!!this.tokens.matches1AtIndex(e,p.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();const e=this.tokens.identifierName();for(;!this.tokens.matches1(p.eq);)this.rootTransformer.processToken();const t=this.tokens.currentToken().rhsEndIndex;if(t==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<t;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${e} = ${e}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.tokens.matches1(p.braceL);e&&this.tokens.appendCode("(");let t=0;for(;;)if(this.tokens.matches1(p.braceL)||this.tokens.matches1(p.dollarBraceL)||this.tokens.matches1(p.bracketL))t++,this.tokens.copyToken();else if(this.tokens.matches1(p.braceR)||this.tokens.matches1(p.bracketR))t--,this.tokens.copyToken();else{if(t===0&&!this.tokens.matches1(p.name)&&!this.tokens.currentToken().isType)break;if(this.tokens.matches1(p.eq)){const n=this.tokens.currentToken().rhsEndIndex;if(n==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<n;)this.rootTransformer.processToken()}else{const n=this.tokens.currentToken();if(e_(n)){const s=this.tokens.identifierName();let a=this.importProcessor.getIdentifierReplacement(s);if(a===null)throw new Error(`Expected a replacement for ${s} in \`export var\` syntax.`);hF(n)&&(a=`${s}: ${a}`),this.tokens.replaceToken(a)}else this.rootTransformer.processToken()}}if(e){const n=this.tokens.currentToken().rhsEndIndex;if(n==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<n;)this.rootTransformer.processToken();this.tokens.appendCode(")")}}processExportFunction(){this.tokens.replaceToken("");const e=this.processNamedFunction();this.tokens.appendCode(` exports.${e} = ${e};`)}processNamedFunction(){if(this.tokens.matches1(p._function))this.tokens.copyToken();else if(this.tokens.matches2(p.name,p._function)){if(!this.tokens.matchesContextual(Q._async))throw new Error("Expected async keyword in function export.");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(p.star)&&this.tokens.copyToken(),!this.tokens.matches1(p.name))throw new Error("Expected identifier for exported function name.");const e=this.tokens.identifierName();if(this.tokens.copyToken(),this.tokens.currentToken().isType)for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return this.tokens.copyExpectedToken(p.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(p.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.braceR),e}processExportClass(){this.tokens.removeInitialToken(),this.tokens.matches1(p._abstract)&&this.tokens.removeToken();const e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${e} = ${e};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=[];for(;;){if(this.tokens.matches1(p.braceR)){this.tokens.removeToken();break}const t=this.tokens.identifierName();let n;if(this.tokens.removeToken(),this.tokens.matchesContextual(Q._as)?(this.tokens.removeToken(),n=this.tokens.identifierName(),this.tokens.removeToken()):n=t,!this.shouldElideExportedIdentifier(t)){const s=this.importProcessor.getIdentifierReplacement(t);e.push(`exports.${n} = ${s||t};`)}if(this.tokens.matches1(p.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(p.comma,p.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}else if(this.tokens.matches1(p.comma))this.tokens.removeToken();else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`)}if(this.tokens.matchesContextual(Q._from)){this.tokens.removeToken();const t=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(t))}else this.tokens.appendCode(e.join(" "));this.tokens.matches1(p.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(p.string);)this.tokens.removeToken();const e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),this.tokens.matches1(p.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(e){return this.isTypeScriptTransformEnabled&&!this.declarationInfo.valueDeclarations.has(e)}}class h8 extends ls{constructor(e,t,n,s,a){super(),this.tokens=e,this.nameManager=t,this.reactHotLoaderTransformer=n,this.isTypeScriptTransformEnabled=s,this.nonTypeIdentifiers=s?p_(e,a):new Set,this.declarationInfo=s?tE(e):eE}process(){if(this.tokens.matches3(p._import,p.name,p.eq))return this.processImportEquals();if(this.tokens.matches4(p._import,p.name,p.name,p.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,Q._type)){this.tokens.removeInitialToken();for(let e=0;e<7;e++)this.tokens.removeToken();return!0}if(this.tokens.matches2(p._export,p.eq))return this.tokens.replaceToken("module.exports"),!0;if(this.tokens.matches5(p._export,p._import,p.name,p.name,p.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,Q._type)){this.tokens.removeInitialToken();for(let e=0;e<8;e++)this.tokens.removeToken();return!0}if(this.tokens.matches1(p._import))return this.processImport();if(this.tokens.matches2(p._export,p._default))return this.processExportDefault();if(this.tokens.matches2(p._export,p.braceL))return this.processNamedExports();if(this.tokens.matches3(p._export,p.name,p.braceL)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,Q._type)){for(this.tokens.removeInitialToken();!this.tokens.matches1(p.braceR);)this.tokens.removeToken();return this.tokens.removeToken(),this.tokens.matchesContextual(Q._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,p.string)&&(this.tokens.removeToken(),this.tokens.removeToken()),!0}return!1}processImportEquals(){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.isTypeName(e)?Z_(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(p._import,p.parenL))return!1;const e=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(e);!this.tokens.matches1(p.string);)this.tokens.removeToken();this.tokens.removeToken(),this.tokens.matches1(p.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(p._import),this.tokens.matchesContextual(Q._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,p.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,Q._from))return!0;if(this.tokens.matches1(p.string))return this.tokens.copyToken(),!1;let e=!1;if(this.tokens.matches1(p.name)&&(this.isTypeName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(p.comma)&&this.tokens.removeToken()):(e=!0,this.tokens.copyToken(),this.tokens.matches1(p.comma)&&this.tokens.copyToken())),this.tokens.matches1(p.star))this.isTypeName(this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(e=!0,this.tokens.copyExpectedToken(p.star),this.tokens.copyExpectedToken(p.name),this.tokens.copyExpectedToken(p.name));else if(this.tokens.matches1(p.braceL)){for(this.tokens.copyToken();!this.tokens.matches1(p.braceR);)if(this.tokens.matches3(p.name,p.name,p.comma)||this.tokens.matches3(p.name,p.name,p.braceR))this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.matches1(p.comma)&&this.tokens.removeToken();else if(this.tokens.matches5(p.name,p.name,p.name,p.name,p.comma)||this.tokens.matches5(p.name,p.name,p.name,p.name,p.braceR))this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.matches1(p.comma)&&this.tokens.removeToken();else if(this.tokens.matches2(p.name,p.comma)||this.tokens.matches2(p.name,p.braceR))this.isTypeName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(p.comma)&&this.tokens.removeToken()):(e=!0,this.tokens.copyToken(),this.tokens.matches1(p.comma)&&this.tokens.copyToken());else if(this.tokens.matches4(p.name,p.name,p.name,p.comma)||this.tokens.matches4(p.name,p.name,p.name,p.braceR))this.isTypeName(this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.matches1(p.comma)&&this.tokens.removeToken()):(e=!0,this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.matches1(p.comma)&&this.tokens.copyToken());else throw new Error("Unexpected import form.");this.tokens.copyExpectedToken(p.braceR)}return!e}isTypeName(e){return this.isTypeScriptTransformEnabled&&!this.nonTypeIdentifiers.has(e)}processExportDefault(){if(rE(this.isTypeScriptTransformEnabled,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(p._export,p._default,p._function,p.name)||this.tokens.matches5(p._export,p._default,p.name,p._function,p.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,Q._async)||this.tokens.matches4(p._export,p._default,p._class,p.name)||this.tokens.matches5(p._export,p._default,p._abstract,p._class,p.name))&&this.reactHotLoaderTransformer){const t=this.nameManager.claimFreeName("_default");return this.tokens.replaceToken(`let ${t}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${t} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(t),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;for(this.tokens.copyExpectedToken(p._export),this.tokens.copyExpectedToken(p.braceL);!this.tokens.matches1(p.braceR);){if(!this.tokens.matches1(p.name))throw new Error("Expected identifier at the start of named export.");if(this.shouldElideExportedName(this.tokens.identifierName())){for(;!this.tokens.matches1(p.comma)&&!this.tokens.matches1(p.braceR)&&!this.tokens.isAtEnd();)this.tokens.removeToken();this.tokens.matches1(p.comma)&&this.tokens.removeToken()}else{for(;!this.tokens.matches1(p.comma)&&!this.tokens.matches1(p.braceR)&&!this.tokens.isAtEnd();)this.tokens.copyToken();this.tokens.matches1(p.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(p.braceR),!0}shouldElideExportedName(e){return this.isTypeScriptTransformEnabled&&this.declarationInfo.typeDeclarations.has(e)&&!this.declarationInfo.valueDeclarations.has(e)}}class p8 extends ls{constructor(e,t){super(),this.rootTransformer=e,this.tokens=t}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()}}function d8(r){let e,t=r[0],n=1;for(;n<r.length;){const s=r[n],a=r[n+1];if(n+=2,(s==="optionalAccess"||s==="optionalCall")&&t==null)return;s==="access"||s==="optionalAccess"?(e=t,t=a(t)):(s==="call"||s==="optionalCall")&&(t=a((...l)=>t.call(e,...l)),e=void 0)}return t}const Jc="jest",m8=["mock","unmock","enableAutomock","disableAutomock"];class ly extends ls{__init(){this.hoistedFunctionNames=[]}constructor(e,t,n,s){super(),this.rootTransformer=e,this.tokens=t,this.nameManager=n,this.importProcessor=s,ly.prototype.__init.call(this)}process(){return this.tokens.currentToken().scopeDepth===0&&this.tokens.matches4(p.name,p.dot,p.name,p.parenL)&&this.tokens.identifierName()===Jc?d8([this,"access",e=>e.importProcessor,"optionalAccess",e=>e.getGlobalNames,"call",e=>e(),"optionalAccess",e=>e.has,"call",e=>e(Jc)])?!1:this.extractHoistedCalls():!1}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(e=>`${e}();`).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let e=!1;for(;this.tokens.matches3(p.dot,p.name,p.parenL);){const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(m8.includes(t)){const s=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(s),this.tokens.replaceToken(`function ${s}(){${Jc}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.parenR),this.tokens.appendCode(";}"),e=!1}else e?this.tokens.copyToken():this.tokens.replaceToken(`${Jc}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.parenR),e=!0}return!0}}class g8 extends ls{constructor(e){super(),this.tokens=e}process(){if(this.tokens.matches1(p.num)){const e=this.tokens.currentTokenCode();if(e.includes("_"))return this.tokens.replaceToken(e.replace(/_/g,"")),!0}return!1}}class y8 extends ls{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){return this.tokens.matches2(p._catch,p.braceL)?(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0):!1}}class v8 extends ls{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){if(this.tokens.matches1(p.nullishCoalescing)){const n=this.tokens.currentToken();return this.tokens.tokens[n.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(p._delete)&&this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0;const t=this.tokens.currentToken().subscriptStartIndex;if(t!=null&&this.tokens.tokens[t].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==p._super){const n=this.nameManager.claimFreeName("_");let s;if(t>0&&this.tokens.matches1AtIndex(t-1,p._delete)&&this.isLastSubscriptInChain()?s=`${n} => delete ${n}`:s=`${n} => ${n}`,this.tokens.tokens[t].isAsyncOperation&&(s=`async ${s}`),this.tokens.matches2(p.questionDot,p.parenL)||this.tokens.matches2(p.questionDot,p.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${s}`);else if(this.tokens.matches2(p.questionDot,p.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${s}`);else if(this.tokens.matches1(p.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${s}.`);else if(this.tokens.matches1(p.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${s}.`);else if(this.tokens.matches1(p.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${s}[`);else if(this.tokens.matches1(p.parenL))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${s}(`);else throw new Error("Unexpected subscript operator in optional chain.");return!0}return!1}isLastSubscriptInChain(){let e=0;for(let t=this.tokens.currentIndex()+1;;t++){if(t>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[t].isOptionalChainStart?e++:this.tokens.tokens[t].isOptionalChainEnd&&e--,e<0)return!0;if(e===0&&this.tokens.tokens[t].subscriptStartIndex!=null)return!1}}justSkippedSuper(){let e=0,t=this.tokens.currentIndex()-1;for(;;){if(t<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[t].isOptionalChainStart?e--:this.tokens.tokens[t].isOptionalChainEnd&&e++,e<0)return!1;if(e===0&&this.tokens.tokens[t].subscriptStartIndex!=null)return this.tokens.tokens[t-1].type===p._super;t--}}}class b8 extends ls{constructor(e,t,n,s){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=n,this.options=s}process(){const e=this.tokens.currentIndex();if(this.tokens.identifierName()==="createReactClass"){const t=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return t?this.tokens.replaceToken(`(0, ${t})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}if(this.tokens.matches3(p.name,p.dot,p.name)&&this.tokens.identifierName()==="React"&&this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)==="createClass"){const t=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return t?(this.tokens.replaceToken(t),this.tokens.copyToken(),this.tokens.copyToken()):(this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.copyToken()),this.tryProcessCreateClassCall(e),!0}return!1}tryProcessCreateClassCall(e){const t=this.findDisplayName(e);!t||this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(p.parenL),this.tokens.copyExpectedToken(p.braceL),this.tokens.appendCode(`displayName: '${t}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.braceR),this.tokens.copyExpectedToken(p.parenR))}findDisplayName(e){return e<2?null:this.tokens.matches2AtIndex(e-2,p.name,p.eq)?this.tokens.identifierNameAtIndex(e-2):e>=2&&this.tokens.tokens[e-2].identifierRole===pt.ObjectKey?this.tokens.identifierNameAtIndex(e-2):this.tokens.matches2AtIndex(e-2,p._export,p._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const t=(this.options.filePath||"unknown").split("/"),n=t[t.length-1],s=n.lastIndexOf("."),a=s===-1?n:n.slice(0,s);return a==="index"&&t[t.length-2]?t[t.length-2]:a}classNeedsDisplayName(){let e=this.tokens.currentIndex();if(!this.tokens.matches2(p.parenL,p.braceL))return!1;const t=e+1,n=this.tokens.tokens[t].contextId;if(n==null)throw new Error("Expected non-null context ID on object open-brace.");for(;e<this.tokens.tokens.length;e++){const s=this.tokens.tokens[e];if(s.type===p.braceR&&s.contextId===n){e++;break}if(this.tokens.identifierNameAtIndex(e)==="displayName"&&this.tokens.tokens[e].identifierRole===pt.ObjectKey&&s.contextId===n)return!1}if(e===this.tokens.tokens.length)throw new Error("Unexpected end of input when processing React class.");return this.tokens.matches1AtIndex(e,p.parenR)||this.tokens.matches2AtIndex(e,p.comma,p.parenR)}}class uy extends ls{__init(){this.extractedDefaultExportName=null}constructor(e,t){super(),this.tokens=e,this.filePath=t,uy.prototype.__init.call(this)}setExtractedDefaultExportName(e){this.extractedDefaultExportName=e}getPrefixCode(){return`
(function () {
var enterModule = require('react-hot-loader').enterModule;
enterModule && enterModule(module);
})();`.replace(/\s+/g," ").trim()}getSuffixCode(){const e=new Set;for(const n of this.tokens.tokens)!n.isType&&t_(n)&&n.identifierRole!==pt.ImportDeclaration&&e.add(this.tokens.identifierNameForToken(n));const t=Array.from(e).map(n=>({variableName:n,uniqueLocalName:n}));return this.extractedDefaultExportName&&t.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`
;(function () {
var reactHotLoader = require('react-hot-loader').default;
var leaveModule = require('react-hot-loader').leaveModule;
if (!reactHotLoader) {
return;
}
${t.map(({variableName:n,uniqueLocalName:s})=>` reactHotLoader.register(${n}, "${s}", ${JSON.stringify(this.filePath||"")});`).join(`
`)}
leaveModule(module);
})();`}process(){return!1}}const w8=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function kw(r){if(r.length===0||!Zu[r.charCodeAt(0)])return!1;for(let e=1;e<r.length;e++)if(!is[r.charCodeAt(e)])return!1;return!w8.has(r)}class x8 extends ls{constructor(e,t,n){super(),this.rootTransformer=e,this.tokens=t,this.isImportsTransformEnabled=n}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(p._public)||this.tokens.matches1(p._protected)||this.tokens.matches1(p._private)||this.tokens.matches1(p._abstract)||this.tokens.matches1(p._readonly)||this.tokens.matches1(p._override)||this.tokens.matches1(p.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(p._enum)||this.tokens.matches2(p._const,p._enum)?(this.processEnum(),!0):this.tokens.matches2(p._export,p._enum)||this.tokens.matches3(p._export,p._const,p._enum)?(this.processEnum(!0),!0):!1}processEnum(e=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(p._const)||this.tokens.matches1(p._enum);)this.tokens.removeToken();const t=this.tokens.identifierName();this.tokens.removeToken(),e&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode(`var ${t}; (function (${t})`),this.tokens.copyExpectedToken(p.braceL),this.processEnumBody(t),this.tokens.copyExpectedToken(p.braceR),e&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${t} || (exports.${t} = ${t} = {}));`):this.tokens.appendCode(`)(${t} || (${t} = {}));`)}processEnumBody(e){let t=null;for(;!this.tokens.matches1(p.braceR);){const{nameStringCode:n,variableName:s}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(p.eq,p.string,p.comma)||this.tokens.matches3(p.eq,p.string,p.braceR)?this.processStringLiteralEnumMember(e,n,s):this.tokens.matches1(p.eq)?this.processExplicitValueEnumMember(e,n,s):this.processImplicitValueEnumMember(e,n,s,t),this.tokens.matches1(p.comma)&&this.tokens.removeToken(),s!=null?t=s:t=`${e}[${n}]`}}extractEnumKeyInfo(e){if(e.type===p.name){const t=this.tokens.identifierNameForToken(e);return{nameStringCode:`"${t}"`,variableName:kw(t)?t:null}}else if(e.type===p.string){const t=this.tokens.stringValueForToken(e);return{nameStringCode:this.tokens.code.slice(e.start,e.end),variableName:kw(t)?t:null}}else throw new Error("Expected name or string at beginning of enum element.")}processStringLiteralEnumMember(e,t,n){n!=null?(this.tokens.appendCode(`const ${n}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${e}[${t}] = ${n};`)):(this.tokens.appendCode(`${e}[${t}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}processExplicitValueEnumMember(e,t,n){const s=this.tokens.currentToken().rhsEndIndex;if(s==null)throw new Error("Expected rhsEndIndex on enum assign.");if(n!=null){for(this.tokens.appendCode(`const ${n}`),this.tokens.copyToken();this.tokens.currentIndex()<s;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${e}[${e}[${t}] = ${n}] = ${t};`)}else{for(this.tokens.appendCode(`${e}[${e}[${t}]`),this.tokens.copyToken();this.tokens.currentIndex()<s;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${t};`)}}processImplicitValueEnumMember(e,t,n,s){let a=s!=null?`${s} + 1`:"0";n!=null&&(this.tokens.appendCode(`const ${n} = ${a}; `),a=n),this.tokens.appendCode(`${e}[${e}[${t}] = ${a}] = ${t};`)}}class Zf{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(e,t,n,s){Zf.prototype.__init.call(this),Zf.prototype.__init2.call(this),this.nameManager=e.nameManager,this.helperManager=e.helperManager;const{tokenProcessor:a,importProcessor:l}=e;this.tokens=a,this.isImportsTransformEnabled=t.includes("imports"),this.isReactHotLoaderTransformEnabled=t.includes("react-hot-loader"),this.disableESTransforms=Boolean(s.disableESTransforms),s.disableESTransforms||(this.transformers.push(new v8(a,this.nameManager)),this.transformers.push(new g8(a)),this.transformers.push(new y8(a,this.nameManager))),t.includes("jsx")&&(this.transformers.push(new fu(this,a,l,this.nameManager,s)),this.transformers.push(new b8(this,a,l,s)));let u=null;if(t.includes("react-hot-loader")){if(!s.filePath)throw new Error("filePath is required when using the react-hot-loader transform.");u=new uy(a,s.filePath),this.transformers.push(u)}if(t.includes("imports")){if(l===null)throw new Error("Expected non-null importProcessor with imports transform enabled.");this.transformers.push(new hu(this,a,l,this.nameManager,u,n,t.includes("typescript")))}else this.transformers.push(new h8(a,this.nameManager,u,t.includes("typescript"),s));t.includes("flow")&&this.transformers.push(new p8(this,a)),t.includes("typescript")&&this.transformers.push(new x8(this,a,t.includes("imports"))),t.includes("jest")&&this.transformers.push(new ly(this,a,this.nameManager,l))}transform(){this.tokens.reset(),this.processBalancedCode();let t=this.isImportsTransformEnabled?'"use strict";':"";for(const a of this.transformers)t+=a.getPrefixCode();t+=this.helperManager.emitHelpers(),t+=this.generatedVariables.map(a=>` var ${a};`).join("");for(const a of this.transformers)t+=a.getHoistedCode();let n="";for(const a of this.transformers)n+=a.getSuffixCode();let s=this.tokens.finish();if(s.startsWith("#!")){let a=s.indexOf(`
`);return a===-1&&(a=s.length,s+=`
`),s.slice(0,a+1)+t+s.slice(a+1)+n}else return t+this.tokens.finish()+n}processBalancedCode(){let e=0,t=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(p.braceL)||this.tokens.matches1(p.dollarBraceL))e++;else if(this.tokens.matches1(p.braceR)){if(e===0)return;e--}if(this.tokens.matches1(p.parenL))t++;else if(this.tokens.matches1(p.parenR)){if(t===0)return;t--}this.processToken()}}processToken(){if(this.tokens.matches1(p._class)){this.processClass();return}for(const e of this.transformers)if(e.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(p._class,p.name))throw new Error("Expected identifier for exported class name.");const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),e}processClass(){const e=u8(this,this.tokens,this.nameManager,this.disableESTransforms),t=(e.headerInfo.isExpression||!e.headerInfo.className)&&e.staticInitializerNames.length+e.instanceInitializerNames.length>0;let n=e.headerInfo.className;t&&(n=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(n),this.tokens.appendCode(` (${n} =`));const a=this.tokens.currentToken().contextId;if(a==null)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(p._class);!this.tokens.matchesContextIdAndLabel(p.braceL,a);)this.processToken();this.processClassBody(e,n);const l=e.staticInitializerNames.map(u=>`${n}.${u}()`);t?this.tokens.appendCode(`, ${l.map(u=>`${u}, `).join("")}${n})`):e.staticInitializerNames.length>0&&this.tokens.appendCode(` ${l.map(u=>`${u};`).join(" ")}`)}processClassBody(e,t){const{headerInfo:n,constructorInsertPos:s,constructorInitializerStatements:a,fields:l,instanceInitializerNames:u,rangesToRemove:c}=e;let m=0,g=0;const v=this.tokens.currentToken().contextId;if(v==null)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(p.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const b=a.length+u.length>0;if(s===null&&b){const x=this.makeConstructorInitCode(a,u,t);if(n.hasSuperclass){const E=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${E}) { super(...${E}); ${x}; }`)}else this.tokens.appendCode(`constructor() { ${x}; }`)}for(;!this.tokens.matchesContextIdAndLabel(p.braceR,v);)if(m<l.length&&this.tokens.currentIndex()===l[m].start){let x=!1;for(this.tokens.matches1(p.bracketL)?this.tokens.copyTokenWithPrefix(`${l[m].initializerName}() {this`):this.tokens.matches1(p.string)||this.tokens.matches1(p.num)?(this.tokens.copyTokenWithPrefix(`${l[m].initializerName}() {this[`),x=!0):this.tokens.copyTokenWithPrefix(`${l[m].initializerName}() {this.`);this.tokens.currentIndex()<l[m].end;)x&&this.tokens.currentIndex()===l[m].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),m++}else if(g<c.length&&this.tokens.currentIndex()>=c[g].start){for(this.tokens.currentIndex()<c[g].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<c[g].end;)this.tokens.removeToken();g++}else this.tokens.currentIndex()===s?(this.tokens.copyToken(),b&&this.tokens.appendCode(`;${this.makeConstructorInitCode(a,u,t)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(p.braceR)}makeConstructorInitCode(e,t,n){return[...e,...t.map(s=>`${n}.prototype.${s}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(p.parenR,p.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType;)e++;if(this.tokens.matches1AtIndex(e,p.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<e;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(Q._async)&&!this.tokens.matches1(p._async))return!1;const e=this.tokens.tokenAtRelativeIndex(1);if(e.type!==p.lessThan||!e.isType)return!1;let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,p.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()<t;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}}var S8={};(function(r){r.__esModule=!0,r.LinesAndColumns=void 0;var e=`
`,t="\r",n=function(){function s(a){this.string=a;for(var l=[0],u=0;u<a.length;)switch(a[u]){case e:u+=e.length,l.push(u);break;case t:u+=t.length,a[u]===e&&(u+=e.length),l.push(u);break;default:u++;break}this.offsets=l}return s.prototype.locationForIndex=function(a){if(a<0||a>this.string.length)return null;for(var l=0,u=this.offsets;u[l+1]<=a;)l++;var c=a-u[l];return{line:l,column:c}},s.prototype.indexForLocation=function(a){var l=a.line,u=a.column;return l<0||l>=this.offsets.length||u<0||u>this.lengthOfLine(l)?null:this.offsets[l]+u},s.prototype.lengthOfLine=function(a){var l=this.offsets[a],u=a===this.offsets.length-1?this.string.length:this.offsets[a+1];return u-l},s}();r.LinesAndColumns=n,r.default=n})(S8);function k8(r){const e=new Set;for(let t=0;t<r.tokens.length;t++)r.matches1AtIndex(t,p._import)&&!r.matches3AtIndex(t,p._import,p.name,p.eq)&&T8(r,t,e);return e}function T8(r,e,t){e++,!r.matches1AtIndex(e,p.parenL)&&(r.matches1AtIndex(e,p.name)&&(t.add(r.identifierNameAtIndex(e)),e++,r.matches1AtIndex(e,p.comma)&&e++),r.matches1AtIndex(e,p.star)&&(e+=2,t.add(r.identifierNameAtIndex(e)),e++),r.matches1AtIndex(e,p.braceL)&&(e++,_8(r,e,t)))}function _8(r,e,t){for(;;){if(r.matches1AtIndex(e,p.braceR))return;let n=r.identifierNameAtIndex(e);if(e++,r.matchesContextualAtIndex(e,Q._as)&&(e++,n=r.identifierNameAtIndex(e),e++),t.add(n),r.matches2AtIndex(e,p.comma,p.braceR))return;if(r.matches1AtIndex(e,p.braceR))return;if(r.matches1AtIndex(e,p.comma))e++;else throw new Error(`Unexpected token: ${JSON.stringify(r.tokens[e])}`)}}function E8(r,e){YF(e);try{const t=A8(r,e);let s={code:new Zf(t,e.transforms,Boolean(e.enableLegacyBabel5ModuleInterop),e).transform()};if(e.sourceMapOptions){if(!e.filePath)throw new Error("filePath must be specified when generating a source map.");s={...s,sourceMap:RF(s.code,e.filePath,e.sourceMapOptions)}}return s}catch(t){throw e.filePath&&(t.message=`Error transforming ${e.filePath}: ${t.message}`),t}}function A8(r,e){const t=e.transforms.includes("jsx"),n=e.transforms.includes("typescript"),s=e.transforms.includes("flow"),a=e.disableESTransforms===!0,l=o8(r,t,n,s),u=l.tokens,c=l.scopes,m=new jg(r,u),g=new $g(m),v=new Xf(r,u,s,a,g),b=Boolean(e.enableLegacyTypeScriptModuleInterop);let x=null;return e.transforms.includes("imports")?(x=new ca(m,v,b,e,e.transforms.includes("typescript"),g),x.preprocessTokens(),uw(v,c,x.getGlobalNames()),e.transforms.includes("typescript")&&x.pruneTypeOnlyImports()):e.transforms.includes("typescript")&&uw(v,c,k8(v)),{tokenProcessor:v,scopes:c,nameManager:m,importProcessor:x,helperManager:g}}function C8(r,e){for(;r.length<e;)r="0"+r;return r}function Hs(r,e){var t,n,s;if(e.length===0)return r;for(t=0,s=e.length;t<s;t++)n=e.charCodeAt(t),r=(r<<5)-r+n,r|=0;return r<0?r*-2:r}function P8(r,e,t){return Object.keys(e).sort().reduce(n,r);function n(s,a){return nE(s,e[a],a,t)}}function nE(r,e,t,n){var s=Hs(Hs(Hs(r,t),I8(e)),typeof e);if(e===null)return Hs(s,"null");if(e===void 0)return Hs(s,"undefined");if(typeof e=="object"||typeof e=="function"){if(n.indexOf(e)!==-1)return Hs(s,"[Circular]"+t);n.push(e);var a=P8(s,e,n);if(!("valueOf"in e)||typeof e.valueOf!="function")return a;try{return Hs(a,String(e.valueOf()))}catch(l){return Hs(a,"[valueOf exception]"+(l.stack||l.message))}}return Hs(s,e.toString())}function I8(r){return Object.prototype.toString.call(r)}function N8(r){return C8(nE(0,r,"",[]).toString(16),8)}var O8=N8;const _o="__sfc__";async function cy(r){return E8(r,{transforms:["typescript"]}).code}async function Id(r,{filename:e,code:t,compiled:n}){var _,A,I;if(!t.trim()){r.state.errors=[];return}if(e.endsWith(".css")){n.css=t,r.state.errors=[];return}if(e.endsWith(".js")||e.endsWith(".ts")){lu(t)&&(t=Ek(t,{filename:e}).code),e.endsWith(".ts")&&(t=await cy(t)),n.js=n.ssr=t,r.state.errors=[];return}if(!e.endsWith(".vue")){r.state.errors=[];return}const s=O8(e),{errors:a,descriptor:l}=r.compiler.parse(t,{filename:e,sourceMap:!0});if(a.length){r.state.errors=a;return}if(l.styles.some(M=>M.lang)||l.template&&l.template.lang){r.state.errors=['lang="x" pre-processors for <template> or <style> are currently not supported.'];return}const u=l.script&&l.script.lang||l.scriptSetup&&l.scriptSetup.lang,c=u==="ts";if(u&&!c){r.state.errors=['Only lang="ts" is supported for <script> blocks.'];return}const m=l.styles.some(M=>M.scoped);let g="",v="";const b=M=>{g+=M,v+=M},x=await Tw(r,l,s,!1,c);if(!x)return;const[E,S]=x;if(g+=E,l.scriptSetup){const M=await Tw(r,l,s,!0,c);M?v+=M[0]:v=`/* SSR compile error: ${r.state.errors[0]} */`}else v+=E;if(l.template&&(!l.scriptSetup||((A=(_=r.options)==null?void 0:_.script)==null?void 0:A.inlineTemplate)===!1)){const M=await _w(r,l,s,S,!1,c);if(!M)return;g+=M;const O=await _w(r,l,s,S,!0,c);O?v+=O:v=`/* SSR compile error: ${r.state.errors[0]} */`}m&&b(`
${_o}.__scopeId = ${JSON.stringify(`data-v-${s}`)}`),(g||v)&&(b(`
${_o}.__file = ${JSON.stringify(e)}
export default ${_o}`),n.js=g.trimStart(),n.ssr=v.trimStart());let C="";for(const M of l.styles){if(M.module){r.state.errors=["<style module> is not supported in the playground."];return}const O=await r.compiler.compileStyleAsync({...(I=r.options)==null?void 0:I.style,source:M.content,filename:e,id:s,scoped:M.scoped,modules:!!M.module});O.errors.length?O.errors[0].message.includes("pathToFileURL")||(r.state.errors=O.errors):C+=O.code+`
`}C?n.css=C.trim():n.css="/* No <style> tags present */",r.state.errors=[]}async function Tw(r,e,t,n,s){var a,l,u,c;if(e.script||e.scriptSetup)try{const m=s?["typescript"]:void 0,g=r.compiler.compileScript(e,{inlineTemplate:!0,...(a=r.options)==null?void 0:a.script,id:t,templateOptions:{...(l=r.options)==null?void 0:l.template,ssr:n,ssrCssVars:e.cssVars,compilerOptions:{...(c=(u=r.options)==null?void 0:u.template)==null?void 0:c.compilerOptions,expressionPlugins:m}}});let v="";return g.bindings&&(v+=`
/* Analyzed bindings: ${JSON.stringify(g.bindings,null,2)} */`),v+=`
`+r.compiler.rewriteDefault(g.content,_o,m),(e.script||e.scriptSetup).lang==="ts"&&(v=await cy(v)),[v,g.bindings]}catch(m){r.state.errors=[m.stack.split(`
`).slice(0,12).join(`
`)];return}else return[`
const ${_o} = {}`,void 0]}async function _w(r,e,t,n,s,a){var m,g,v,b;const l=r.compiler.compileTemplate({...(m=r.options)==null?void 0:m.template,source:e.template.content,filename:e.filename,id:t,scoped:e.styles.some(x=>x.scoped),slotted:e.slotted,ssr:s,ssrCssVars:e.cssVars,isProd:!1,compilerOptions:{...(v=(g=r.options)==null?void 0:g.template)==null?void 0:v.compilerOptions,bindingMetadata:n,expressionPlugins:a?["typescript"]:void 0}});if(l.errors.length){r.state.errors=l.errors;return}const u=s?"ssrRender":"render";let c=`
${l.code.replace(/\nexport (function|const) (render|ssrRender)/,`$1 ${u}`)}
${_o}.${u} = ${u}`;return((b=e.script||e.scriptSetup)==null?void 0:b.lang)==="ts"&&(c=await cy(c)),c}const io="App.vue",Ew=`
<script setup>
import { ref } from 'vue'
const msg = ref('Hello World!')
<\/script>
<template>
<h1>{{ msg }}</h1>
<input v-model="msg">
</template>
`.trim();class ao{constructor(e,t="",n=!1){this.compiled={js:"",css:"",ssr:""},this.filename=e,this.code=t,this.hidden=n}}class L8{constructor({serializedState:e="",defaultVueRuntimeURL:t=`https://unpkg.com/@vue/runtime-dom@${u0}/dist/runtime-dom.esm-browser.js`,defaultVueServerRendererURL:n=`https://unpkg.com/@vue/server-renderer@${u0}/dist/server-renderer.esm-browser.js`,showOutput:s=!1,outputMode:a="preview"}={}){this.compiler=Wb,this.pendingCompiler=null;let l={};if(e){const c=JSON.parse(N3(e));for(const m in c)l[m]=new ao(m,c[m])}else l={[io]:new ao(io,Ew)};this.defaultVueRuntimeURL=t,this.defaultVueServerRendererURL=n,this.initialShowOutput=s,this.initialOutputMode=a;let u=io;l[u]||(u=Object.keys(l)[0]),this.state=Aw({mainFile:u,files:l,activeFile:l[u],errors:[],vueRuntimeURL:this.defaultVueRuntimeURL,vueServerRendererURL:this.defaultVueServerRendererURL,resetFlip:!0}),this.initImportMap()}init(){gf(()=>Id(this,this.state.activeFile));for(const e in this.state.files)e!==io&&Id(this,this.state.files[e])}setActive(e){this.state.activeFile=this.state.files[e]}addFile(e){const t=typeof e=="string"?new ao(e):e;this.state.files[t.filename]=t,t.hidden||this.setActive(t.filename)}deleteFile(e){confirm(`Are you sure you want to delete ${e}?`)&&(this.state.activeFile.filename===e&&(this.state.activeFile=this.state.files[this.state.mainFile]),delete this.state.files[e])}serialize(){return"#"+I3(JSON.stringify(this.getFiles()))}getFiles(){const e={};for(const t in this.state.files)e[t]=this.state.files[t].code;return e}async setFiles(e,t=io){const n={};t===io&&!e[t]&&(n[t]=new ao(t,Ew));for(const s in e)n[s]=new ao(s,e[s]);for(const s in n)await Id(this,n[s]);this.state.mainFile=t,this.state.files=n,this.initImportMap(),this.setActive(t),this.forceSandboxReset()}forceSandboxReset(){this.state.resetFlip=!this.state.resetFlip}initImportMap(){const e=this.state.files["import-map.json"];if(!e)this.state.files["import-map.json"]=new ao("import-map.json",JSON.stringify({imports:{vue:this.defaultVueRuntimeURL}},null,2));else try{const t=JSON.parse(e.code);t.imports.vue||(t.imports.vue=this.defaultVueRuntimeURL,e.code=JSON.stringify(t,null,2)),t.imports["vue/server-renderer"]||(t.imports["vue/server-renderer"]=this.defaultVueServerRendererURL,e.code=JSON.stringify(t,null,2))}catch{}}getImportMap(){try{return JSON.parse(this.state.files["import-map.json"].code)}catch(e){return this.state.errors=[`Syntax error in import-map.json: ${e.message}`],{}}}setImportMap(e){this.state.files["import-map.json"].code=JSON.stringify(e,null,2)}async setVueVersion(e){this.vueVersion=e;const t=`https://unpkg.com/@vue/compiler-sfc@${e}/dist/compiler-sfc.esm-browser.js`,n=`https://unpkg.com/@vue/runtime-dom@${e}/dist/runtime-dom.esm-browser.js`,s=`https://unpkg.com/@vue/server-renderer@${e}/dist/server-renderer.esm-browser.js`;this.pendingCompiler=rC(()=>import(t),[]),this.compiler=await this.pendingCompiler,this.pendingCompiler=null,this.state.vueRuntimeURL=n,this.state.vueServerRendererURL=s;const a=this.getImportMap(),l=a.imports||(a.imports={});l.vue=n,l["vue/server-renderer"]=s,this.setImportMap(a),this.forceSandboxReset(),console.info(`[@vue/repl] Now using Vue version: ${e}`)}resetVueVersion(){this.vueVersion=void 0,this.compiler=Wb,this.state.vueRuntimeURL=this.defaultVueRuntimeURL,this.state.vueServerRendererURL=this.defaultVueServerRendererURL;const e=this.getImportMap(),t=e.imports||(e.imports={});t.vue=this.defaultVueRuntimeURL,t["vue/server-renderer"]=this.defaultVueServerRendererURL,this.setImportMap(e),this.forceSandboxReset(),console.info("[@vue/repl] Now using default Vue version")}}const M8={class:"vue-repl"},D8=Wi({__name:"Repl",props:{store:{default:()=>new L8},autoResize:{type:Boolean,default:!0},showCompileOutput:{type:Boolean,default:!0},showImportMap:{type:Boolean,default:!0},clearConsole:{type:Boolean,default:!0},sfcOptions:null,layout:null,ssr:{type:Boolean,default:!1}},setup(r){const e=r;return e.store.options=e.sfcOptions,e.store.init(),Lc("store",e.store),Lc("autoresize",e.autoResize),Lc("import-map",c0(e,"showImportMap")),Lc("clear-console",c0(e,"clearConsole")),(t,n)=>(Nr(),hn("div",M8,[Ii(ZR,{layout:r.layout},{left:Od(()=>[Ii($3)]),right:Od(()=>[Ii(Z3,{showCompileOutput:e.showCompileOutput,ssr:!!e.ssr},null,8,["showCompileOutput","ssr"])]),_:1},8,["layout"])]))}}),F8=Ma(D8,[["__scopeId","data-v-11ce55b8"]]);export{ao as File,K3 as Preview,F8 as Repl,L8 as ReplStore,Id as compileFile};