UNPKG

imba

Version:

Intuitive and powerful language for building webapps that fly

17 lines 731 kB
var z1=Object.defineProperty;var b3=Object.getOwnPropertyDescriptor;var x3=Object.getOwnPropertyNames;var k3=Object.prototype.hasOwnProperty;var S3=(i,s)=>{for(var e in s)z1(i,e,{get:s[e],enumerable:!0})},w3=(i,s,e,o)=>{if(s&&typeof s=="object"||typeof s=="function")for(let a of x3(s))!k3.call(i,a)&&a!==e&&z1(i,a,{get:()=>s[a],enumerable:!(o=b3(s,a))||o.enumerable});return i};var T3=i=>w3(z1({},"__esModule",{value:!0}),i);var G0={};S3(G0,{aliases:()=>Fn,compile:()=>c3,deserialize:()=>l3,fonts:()=>ra,helpers:()=>p3,modifiers:()=>ia,parse:()=>u3,parseAsset:()=>n3,parser:()=>h3,program:()=>a3,resolve:()=>f3,resolveConfig:()=>d3,rewrite:()=>_3,selparser:()=>o3,tokenize:()=>y3,variants:()=>L1});module.exports=T3(G0);var E3=Object.create,Ma=Object.defineProperty,A3=Object.getOwnPropertyDescriptor,O3=Object.getOwnPropertyNames,R3=Object.getPrototypeOf,$3=Object.prototype.hasOwnProperty,L3=(i=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(i,{get:(s,e)=>(typeof require<"u"?require:s)[e]}):i)(function(i){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+i+'" is not supported')}),As=(i,s)=>()=>(i&&(s=i(i=0)),s),yn=(i,s)=>()=>(s||i((s={exports:{}}).exports,s),s.exports),hi=(i,s)=>{for(var e in s)Ma(i,e,{get:s[e],enumerable:!0})},$l=(i,s,e,o)=>{if(s&&typeof s=="object"||typeof s=="function")for(let a of O3(s))!$3.call(i,a)&&a!==e&&Ma(i,a,{get:()=>s[a],enumerable:!(o=A3(s,a))||o.enumerable});return i},Ll=(i,s,e)=>(e=i!=null?E3(R3(i)):{},$l(s||!i||!i.__esModule?Ma(e,"default",{value:i,enumerable:!0}):e,i)),ai=i=>$l(Ma({},"__esModule",{value:!0}),i),ja=yn(i=>{var s={},e=i.TOK={},o=e.TERMINATOR=1,a=e.IDENTIFIER=e.IVAR=2,u=e.CONST=3,f=e.VAR=4,d=e.IF=5,g=e.ELSE=6,m=e.DEF=7;function _(w,$,S,R){return this._type=w,this._value=$,this._loc=S??-1,this._len=R??this._value.length,this._meta=null,this.generated=!1,this.newLine=!1,this.spaced=!1,this.call=!1,this}i.Token=_,_.prototype.type=function(){return this._type},_.prototype.value=function(){return this._value},_.prototype.traverse=function(){},_.prototype.match=function(w){return this._value.match(w)},_.prototype.c=function(){return""+this._value},_.prototype.prepend=function(w){return this._value=w+this._value,this},_.prototype.toString=function(){return this._value},_.prototype.charAt=function(w){return this._value.charAt(w)},_.prototype.slice=function(w){return this._value.slice(w)},_.prototype.cloneSlice=function(w,$){return new _($||this._type,this.slice(w),this._loc+w,this._len-w)},_.prototype.region=function(){return[this._loc,this._loc+this._len]},_.prototype.startLoc=function(){return this._loc},_.prototype.endLoc=function(){return this._loc+this._len},_.prototype.loc=function(){return[this._loc,this.endLoc()]},i.lex=s.lex=function(){var w=this.tokens[this.pos++],$;return w?($=w._type,this.yytext=w):$="",$},i.token=s.token=function(w,$){return new _(w,$,-1,0)},i.typ=s.typ=function(w){return w._type},i.val=s.val=function(w){return w._value},i.line=s.line=function(w){return w._line},i.loc=s.loc=function(w){return w._loc},i.setTyp=s.setTyp=function(w,$){return w._type=$},i.setVal=s.setVal=function(w,$){return w._value=$},i.setLine=s.setLine=function(w,$){return w._line=$},i.setLoc=s.setLoc=function(w,$){return w._loc=$};var b=i.LBRACKET=new _("{","{",0,0,0),k=i.RBRACKET=new _("}","}",0,0,0),G=i.LPAREN=new _("(","(",0,0,0),j=i.RPAREN=new _(")",")",0,0,0);b.generated=!0,k.generated=!0,G.generated=!0,j.generated=!0;var F=i.INDENT=new _("INDENT","2",0,0,0),lt=i.OUTDENT=new _("OUTDENT","2",0,0,0)}),Nl={};hi(Nl,{fnv1a:()=>N3});function N3(i,{size:s=32}={}){if(!H1[s])throw new Error("The `size` option must be one of 32, 64, 128, 256, 512, or 1024");let e=Cl[s],o=H1[s],a=!1;for(let u=0;u<i.length;u++){let f=i.charCodeAt(u);f>127&&!a&&(i=unescape(encodeURIComponent(i)),f=i.charCodeAt(u),a=!0),e^=BigInt(f),e=BigInt.asUintN(s,e*o)}return e}var H1,Cl,C3=As(()=>{H1={32:16777619n,64:1099511628211n,128:309485009821345068724781371n,256:374144419156711147060143317175368453031918731002211n,512:35835915874844867368919076489095108449946327955754392558399825615420669938882575126094039892345713852759n,1024:5016456510113118655434598811035278955030765345404790744303017523831112055108147451509157692220295382716162651878526895249385292291816524375083746691371804094271873160484737966720260389217684476157468082573n},Cl={32:2166136261n,64:14695981039346656037n,128:144066263297769815596495629667062367629n,256:100029257958052580907070968620625704837092796014241193945225284501741471925557n,512:9659303129496669498009435400716310466090418745672637896108374329434462657994582932197716438449813051892206539805784495328239340083876191928701583869517785n,1024:14197795064947621068722070641403218320880622795441933960878474914617582723252296732303717722150864096521202355549365628174669108571814760471015076148029755969804077320157692458563003215304957150157403644460363550505412711285966361610267868082893823963790439336411086884584107735010676915n}}),U1={};hi(U1,{InternalPrefixes:()=>q1,ReservedIdentifierRegex:()=>Dl,ReservedPrefixes:()=>Y1,ToImbaMap:()=>W1,ToJSMap:()=>K1,toCustomTagIdentifier:()=>D3,toImbaIdentifier:()=>I3,toJSIdentifier:()=>Il});function Il(i){return i.replace(Pl,Ml)}function I3(i){return i.replace(jl,Fl)}function D3(i){return"\u0393"+Il(i)}var q1,Y1,Dl,K1,Pl,Ml,W1,jl,Fl,Gl=As(()=>{q1={TAG:"\u03C4",FLIP:"\u03C9",VALUE:"\u03C5",CACHE:"\u03F2",KEY:"\u03BA",ANY:"\u03C6",SYM:"\u03B5",SEP:"\u03B9",PRIVATE:"\u03A8",B:"\u03B9",T:"\u03C4",C:"\u03C1",V:"\u03C5",K:"\u03BA",D:"\u0394",H:"\u03B8",EXTEND:"\u03A9"},Y1=new Set(Object.values(q1)),Dl=new RegExp("^["+Array.from(Y1).join("")+"]","u"),K1={"-":"\u039E","?":"\u03A6","#":"\u03A8","@":"\u03B1"},Pl=new RegExp("[-?#@]","gu"),Ml=function(i){return K1[i]},W1={\u039E:"-",\u03A6:"?",\u03A8:"#",\u03B1:"@"},jl=new RegExp("[\u039E\u03A6\u03A8\u03B1]","gu"),Fl=function(i){return W1[i]}}),ha=yn(i=>{function s(_){return _?_.toArray?_.toArray():_:[]}var e={},o=(C3(),ai(Nl)).fnv1a,a={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},u=i.ansi={bold:function(_){return"\x1B[1m"+_+"\x1B[22m"},red:function(_){return"\x1B[31m"+_+"\x1B[39m"},green:function(_){return"\x1B[32m"+_+"\x1B[39m"},yellow:function(_){return"\x1B[33m"+_+"\x1B[39m"},blue:function(_){return"\x1B[94m"+_+"\x1B[39m"},gray:function(_){return"\x1B[90m"+_+"\x1B[39m"},white:function(_){return"\x1B[37m"+_+"\x1B[39m"},f:function(_,b){let k=a[_];return"\x1B["+k[0]+"m"+b+"\x1B["+k[1]+"m"}};u.warn=u.yellow,u.error=u.red;var f=(Gl(),ai(U1)),d=f.toImbaIdentifier,g=f.toJSIdentifier,m="\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C4\u03C5\u03C6\u03C7\u03C8\u03C9";i.brace=e.brace=function(_){var b=_.match(/\n/);return b?"{"+_+` }`:`{ `+_+` }`},i.normalizeIndentation=e.normalizeIndentation=function(_){for(var b,k=/\n+([^\n\S]*)/g,G=null,j;b=k.exec(_);){var F=b[1];(G===null||0<(j=F.length)&&j<G.length)&&(G=F)}return G&&(_=_.replace(RegExp("\\n"+G,"g"),` `)),_},i.flatten=e.flatten=function(_){var b=[];return _.forEach(function(k){return k instanceof Array?b.push.apply(b,e.flatten(k)):b.push(k)}),b},i.clearLocationMarkers=e.clearLocationMarkers=function(_){return _.replace(/\/\*\%([\w\|]*)\$\*\//g,"")},i.pascalCase=e.pascalCase=function(_){return _.replace(/(^|[\-\_\s])(\w)/g,function(b,k,G){return G.toUpperCase()})},i.camelCase=e.camelCase=function(_){return _=String(_),_.replace(/([\-\_\s])(\w)/g,function(b,k,G){return G.toUpperCase()})},i.dashToCamelCase=e.dashToCamelCase=function(_){return _=String(_),_.indexOf("-")>=0&&(_=_.replace(/([\-\s])(\w)/g,function(b,k,G){return G.toUpperCase()})),_},i.snakeCase=e.snakeCase=function(b){var b=b.replace(/([\-\s])(\w)/g,"_");return b.replace(/()([A-Z])/g,"_$1",function(k,G,j){return j.toUpperCase()})},i.dasherize=e.dasherize=function(_){return _.replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase()},i.setterSym=e.setterSym=function(_){return e.dashToCamelCase("set-"+_)},i.quote=e.quote=function(_){return'"'+_+'"'},i.singlequote=e.singlequote=function(_){return"'"+_+"'"},i.isValidIdentifier=e.isValidIdentifier=function(_){return!/[?-\s]/.test(_)&&_[0]!="#"},i.toValidIdentifier=e.toValidIdentifier=function(_){return g(_)},i.fromValidIdentifier=e.fromValidIdentifier=function(_){return d(_)},i.isSystemIdentifier=e.isSystemIdentifier=function(_){return m.indexOf(_[0])>=0},i.symbolize=e.symbolize=function(_,b){return _=String(_),e.toValidIdentifier(_);var k},i.indent=e.indent=function(_){return String(_).replace(/^/g," ").replace(/\n/g,` `).replace(/\n\t$/g,` `)},i.bracketize=e.bracketize=function(_,b){return b===void 0&&(b=!0),b&&(_=` `+e.indent(_)+` `),"{"+_+"}"},i.parenthesize=e.parenthesize=function(_){return"("+String(_)+")"},i.unionOfLocations=e.unionOfLocations=function(){for(var _=arguments,b=_.length,k=new Array(b>0?b:0);b>0;)k[b-1]=_[--b];var G=1/0,j=-1/0;for(let F=0,lt=s(k),w=lt.length,$;F<w;F++)$=lt[F],$&&$._loc!=null&&($=$._loc),$&&$.loc instanceof Function&&($=$.loc()),$ instanceof Array?(G>$[0]&&(G=$[0]),j<$[0]&&(j=$[1])):(typeof $=="number"||$ instanceof Number)&&(G>$&&(G=$),j<$&&(j=$));return[G,j]},i.locationToLineColMap=e.locationToLineColMap=function(_){for(var b=_.split(/\n/g),k=[],G,j=0,F=0,lt=0;G=_[j];)k[j]=[lt,F],G==` `?(lt++,F=0):F++,j++;return k[j]=[lt,F],k[j+1]=[lt,F],k},i.markLineColForTokens=e.markLineColForTokens=function(_,b){return e},i.parseArgs=e.parseArgs=function(_,b){var k;b===void 0&&(b={});var G=b.alias||(b.alias={}),j=b.group||(b.group=[]),F=b.schema||{};F.main={};var lt={},w={};_=_||process.argv.slice(2);for(var $=null,S=0,R;S<_.length;){var V=_[S];if(S++,R=V.match(/^\-([a-zA-Z]+)(\=\S+)?$/)){$=null;let U=R[1].split("");for(let I=0,et=s(U),pt=et.length,Q;I<pt;I++){Q=et[I];var xt=G[Q]||Q;U[I]=xt,lt[xt]=!0}U.length==1&&($=U);continue}else if(R=V.match(/^\-\-([a-z0-9\-\_A-Z]+)(\=\S+)?$/)){var X=!0;xt=R[1],xt.indexOf("no-")==0&&(xt=xt.substr(3),X=!1),xt=e.dashToCamelCase(xt),R[2]&&(X=R[2].slice(1)),lt[xt]=X,$=xt;continue}else{var Z=F[$];$&&F[$]||($="main"),V.match(/^\d+$/)&&(V=parseInt(V)),X=lt[$],X==!0||X==!1?lt[$]=V:typeof X=="string"||X instanceof String||typeof X=="number"||X instanceof Number?lt[$]=[X].concat(V):X instanceof Array?X.push(V):lt[$]=V,Z&&Z.multi||($="main")}}for(let U=0,I=s(j),et=I.length;U<et;U++){let pt=e.dashToCamelCase(I[U]);for(let Q,ht=0,wt=Object.keys(lt),bt=wt.length,vt;ht<bt;ht++)if(vt=wt[ht],Q=lt[vt],vt.indexOf(pt)==0){let J=vt.substr(pt.length).replace(/^\w/,function(W){return W.toLowerCase()});J?(lt[pt]||(lt[pt]={}),lt[pt][J]=Q):lt[pt]||(lt[pt]={})}}return(typeof(k=lt.env)=="string"||k instanceof String)&&(lt["ENV_"+lt.env]=!0),lt},i.printExcerpt=e.printExcerpt=function(_,b,k){(!k||k.constructor!==Object)&&(k={});var G=k.hl!==void 0?k.hl:!1,j=k.gutter!==void 0?k.gutter:!0,F=k.type!==void 0?k.type:"warn",lt=k.pad!==void 0?k.pad:2,w=_.split(/\n/g),$=e.locationToLineColMap(_),S=$[b[0]]||[0,0],R=S[0],V=S[1],xt=w[R],X=Math.max(0,R-lt),Z=Math.min(X+lt+1+lt,w.length);let U=R-X;for(var I=X,et=[];I<Z;)et.push(w[I++]);var pt=et;return j&&(pt=pt.map(function(Q,ht){let wt=""+(X+ht+1),bt;for(;wt.length<String(Z).length;)wt=" "+wt;return ht==U?(bt=" -> "+wt+" | "+Q,G&&(bt=u.f(G,bt))):(bt=" "+wt+" | "+Q,G&&(bt=u.f("gray",bt))),bt})),pt.join(` `)},i.printWarning=e.printWarning=function(_,b){let k=b.message,G=e.printExcerpt(_,b.loc,{hl:"whiteBright",type:"warn",pad:1});return k+` `+G},i.identifierForPath=e.identifierForPath=function(_){let b=o(_).toString(36);return b[0].match(/\d/)&&(b="z"+b),b},i.isPlainObject=e.isPlainObject=function(_){return typeof _=="object"&&Object.getPrototypeOf(_)==Object.prototype},i.deepAssign=e.deepAssign=function(_,b){for(let k,G=0,j=Object.keys(b),F=j.length,lt;G<F;G++){lt=j[G],k=b[lt];let w=_[lt];e.isPlainObject(w)&&e.isPlainObject(k)?e.deepAssign(w,k):_[lt]=k}return _}}),Fa=yn(i=>{function s(S){return S?S.toArray?S.toArray():S:[]}var e=i.BALANCED_PAIRS=[["(",")"],["[","]"],["{","}"],["{{","}}"],["INDENT","OUTDENT"],["CALL_START","CALL_END"],["PARAM_START","PARAM_END"],["INDEX_START","INDEX_END"],["TAG_START","TAG_END"],["STYLE_START","STYLE_END"],["BLOCK_PARAM_START","BLOCK_PARAM_END"]],o=i.BITWISE_OPERATORS={"|":!0,"&":!0,"!&":!0,"~":!0,"|=":!0,"&=":!0,"~=":!0,"^=":!0,"^":!0,"<<":!0,"<<=":!0,">>":!0,">>=":!0},a=i.ASSIGNMENT_OPERATORS={"=":!0,"=?":!0,"??=":!0,"||=":!0,"&&=":!0,"|=":!0,"|=?":!0,"&=":!0,"&=?":!0,"^=":!0,"^=?":!0,"~=":!0,"~=?":!0},u=i.INVERSES={};for(let S=0,R=e.length,V;S<R;S++)V=e[S],f=V[0],d=V[1],u[d]=f,u[f]=d,e[f]=d;var f,d,g=i.ALL_KEYWORDS=["true","false","null","this","delete","typeof","in","instanceof","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","return","undefined","then","unless","until","loop","of","by","when","def","tag","do","elif","begin","var","let","self","await","import","and","or","is","isnt","not","yes","no","isa","case","nil","require"],m=i.TOK={TERMINATOR:"TERMINATOR",INDENT:"INDENT",OUTDENT:"OUTDENT",DEF_BODY:"DEF_BODY",THEN:"THEN",CATCH:"CATCH"},_=i.OPERATOR_ALIASES={and:"&&",or:"||",is:"==",isnt:"!=",isa:"instanceof"},b=i.HEREGEX_OMIT=/\s+(?:#.*)?/g,k=i.HEREGEX=/^\/{3}([\s\S]+?)\/{3}([a-z]{0,8})(?!\w)/,G=i.HEX_REGEX=/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}([A-Fa-f0-9]{2})?)$/,j=i.TAG_GLOBAL_ATTRIBUTES={itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,enterkeyhint:1,autofocus:1,autocapitalize:1,autocomplete:1,accesskey:1,inputmode:1,spellcheck:1,translate:1,is:1},F=i.SYSVAR_PREFIX={TAG:"\u03C4",FLIP:"\u03C9",VALUE:"\u03C5",CACHE:"\u03C1",KEY:"\u03BA",ANY:"\u03C6",B:"\u0398",T:"\u03C4",C:"\u03C1",V:"\u03C5",K:"\u03BA",D:"\u0394"},lt=i.TAG_TYPES={"":[-1,{id:1,className:"class",slot:1,part:1,elementTiming:"elementtiming"}],HTML:[-1,{title:1,lang:1,translate:1,dir:1,accessKey:"accesskey",draggable:1,spellcheck:1,autocapitalize:1,inputMode:"inputmode",style:1,tabIndex:"tabindex",enterKeyHint:"enterkeyhint"}],HTMLAnchor:[1,{target:1,download:1,ping:1,rel:1,relList:"rel",hreflang:1,type:1,referrerPolicy:"referrerpolicy",coords:1,charset:1,name:1,rev:1,shape:1,href:1}],HTMLArea:[1,{alt:1,coords:1,download:1,shape:1,target:1,ping:1,rel:1,relList:"rel",referrerPolicy:"referrerpolicy",href:1}],HTMLMedia:[1,{src:1,crossOrigin:"crossorigin",preload:1,controlsList:"controlslist"}],HTMLAudio:[4,{}],HTMLBase:[1,{href:1,target:1}],HTMLQuote:[1,{cite:1}],HTMLBody:[1,{text:1,link:1,vLink:"vlink",aLink:"alink",bgColor:"bgcolor",background:1}],HTMLBR:[1,{clear:1}],HTMLButton:[1,{formAction:"formaction",formEnctype:"formenctype",formMethod:"formmethod",formTarget:"formtarget",name:1,type:1,value:1}],HTMLCanvas:[1,{width:1,height:1}],HTMLTableCaption:[1,{align:1}],HTMLTableCol:[1,{span:1,align:1,ch:"char",chOff:"charoff",vAlign:"valign",width:1}],HTMLData:[1,{value:1}],HTMLDataList:[1,{}],HTMLMod:[1,{cite:1,dateTime:"datetime"}],HTMLDetails:[1,{}],HTMLDialog:[1,{}],HTMLDiv:[1,{align:1}],HTMLDList:[1,{}],HTMLEmbed:[1,{src:1,type:1,width:1,height:1,align:1,name:1}],HTMLFieldSet:[1,{name:1}],HTMLForm:[1,{acceptCharset:"accept-charset",action:1,autocomplete:1,enctype:1,encoding:"enctype",method:1,name:1,target:1}],HTMLHeading:[1,{align:1}],HTMLHead:[1,{}],HTMLHR:[1,{align:1,color:1,size:1,width:1}],HTMLHtml:[1,{version:1}],HTMLIFrame:[1,{src:1,srcdoc:1,name:1,sandbox:1,width:1,height:1,referrerPolicy:"referrerpolicy",csp:1,allow:1,align:1,scrolling:1,frameBorder:"frameborder",longDesc:"longdesc",marginHeight:"marginheight",marginWidth:"marginwidth",loading:1}],HTMLImage:[1,{alt:1,src:1,srcset:1,sizes:1,crossOrigin:"crossorigin",useMap:"usemap",width:1,height:1,referrerPolicy:"referrerpolicy",decoding:1,name:1,lowsrc:1,align:1,hspace:1,vspace:1,longDesc:"longdesc",border:1,loading:1}],HTMLInput:[1,{accept:1,alt:1,autocomplete:1,dirName:"dirname",formAction:"formaction",formEnctype:"formenctype",formMethod:"formmethod",formTarget:"formtarget",height:1,max:1,maxLength:"maxlength",min:1,minLength:"minlength",name:1,pattern:1,placeholder:1,src:1,step:1,type:1,defaultValue:"value",width:1,align:1,useMap:"usemap"}],HTMLLabel:[1,{htmlFor:"for"}],HTMLLegend:[1,{align:1}],HTMLLI:[1,{value:1,type:1}],HTMLLink:[1,{href:1,crossOrigin:"crossorigin",rel:1,relList:"rel",media:1,hreflang:1,type:1,as:1,referrerPolicy:"referrerpolicy",sizes:1,imageSrcset:"imagesrcset",imageSizes:"imagesizes",charset:1,rev:1,target:1,integrity:1}],HTMLMap:[1,{name:1}],HTMLMenu:[1,{}],HTMLMeta:[1,{name:1,httpEquiv:"http-equiv",content:1,scheme:1}],HTMLMeter:[1,{value:1,min:1,max:1,low:1,high:1,optimum:1}],HTMLObject:[1,{data:1,type:1,name:1,useMap:"usemap",width:1,height:1,align:1,archive:1,code:1,hspace:1,standby:1,vspace:1,codeBase:"codebase",codeType:"codetype",border:1}],HTMLOList:[1,{start:1,type:1}],HTMLOptGroup:[1,{label:1}],HTMLOption:[1,{label:1,value:1}],HTMLOutput:[1,{htmlFor:"for",name:1}],HTMLParagraph:[1,{align:1}],HTMLParam:[1,{name:1,value:1,type:1,valueType:"valuetype"}],HTMLPicture:[1,{}],HTMLPre:[1,{width:1}],HTMLProgress:[1,{value:1,max:1}],HTMLScript:[1,{src:1,type:1,charset:1,crossOrigin:"crossorigin",referrerPolicy:"referrerpolicy",event:1,htmlFor:"for",integrity:1}],HTMLSelect:[1,{autocomplete:1,name:1,size:1}],HTMLSlot:[1,{name:1}],HTMLSource:[1,{src:1,type:1,srcset:1,sizes:1,media:1}],HTMLSpan:[1,{}],HTMLStyle:[1,{media:1,type:1}],HTMLTable:[1,{align:1,border:1,frame:1,rules:1,summary:1,width:1,bgColor:"bgcolor",cellPadding:"cellpadding",cellSpacing:"cellspacing"}],HTMLTableSection:[1,{align:1,ch:"char",chOff:"charoff",vAlign:"valign"}],HTMLTableCell:[1,{colSpan:"colspan",rowSpan:"rowspan",headers:1,align:1,axis:1,height:1,width:1,ch:"char",chOff:"charoff",vAlign:"valign",bgColor:"bgcolor",abbr:1,scope:1}],HTMLTemplate:[1,{}],HTMLTextArea:[1,{autocomplete:1,cols:1,dirName:"dirname",maxLength:"maxlength",minLength:"minlength",name:1,placeholder:1,rows:1,wrap:1}],HTMLTime:[1,{dateTime:"datetime"}],HTMLTitle:[1,{}],HTMLTableRow:[1,{align:1,ch:"char",chOff:"charoff",vAlign:"valign",bgColor:"bgcolor"}],HTMLTrack:[1,{kind:1,src:1,srclang:1,label:1}],HTMLUList:[1,{type:1}],HTMLVideo:[4,{width:1,height:1,poster:1}],SVG:[-1,{}],SVGGraphics:[66,{transform:1}],SVGA:[67,{}],SVGAnimation:[66,{}],SVGAnimate:[69,{}],SVGAnimateMotion:[69,{}],SVGAnimateTransform:[69,{}],SVGGeometry:[67,{}],SVGCircle:[73,{cx:1,cy:1,r:1}],SVGClipPath:[67,{clipPathUnits:1}],SVGDefs:[67,{}],SVGDesc:[66,{}],SVGDiscard:[66,{}],SVGEllipse:[73,{cx:1,cy:1,rx:1,ry:1}],SVGFEBlend:[66,{mode:1,x:1,y:1,width:1,height:1}],SVGFEColorMatrix:[66,{type:1,values:1,x:1,y:1,width:1,height:1}],SVGFEComponentTransfer:[66,{x:1,y:1,width:1,height:1}],SVGFEComposite:[66,{operator:1,x:1,y:1,width:1,height:1}],SVGFEConvolveMatrix:[66,{orderX:1,orderY:1,kernelMatrix:1,divisor:1,edgeMode:1,x:1,y:1,width:1,height:1}],SVGFEDiffuseLighting:[66,{surfaceScale:1,diffuseConstant:1,x:1,y:1,width:1,height:1}],SVGFEDisplacementMap:[66,{xChannelSelector:1,yChannelSelector:1,x:1,y:1,width:1,height:1}],SVGFEDistantLight:[66,{}],SVGFEDropShadow:[66,{dx:1,dy:1,stdDeviationX:1,stdDeviationY:1,x:1,y:1,width:1,height:1}],SVGFEFlood:[66,{x:1,y:1,width:1,height:1}],SVGComponentTransferFunction:[66,{type:1,tableValues:1,slope:1,amplitude:1,exponent:1}],SVGFEFuncA:[90,{}],SVGFEFuncB:[90,{}],SVGFEFuncG:[90,{}],SVGFEFuncR:[90,{}],SVGFEGaussianBlur:[66,{x:1,y:1,width:1,height:1}],SVGFEImage:[66,{preserveAspectRatio:1,x:1,y:1,width:1,height:1}],SVGFEMerge:[66,{x:1,y:1,width:1,height:1}],SVGFEMergeNode:[66,{}],SVGFEMorphology:[66,{operator:1,x:1,y:1,width:1,height:1}],SVGFEOffset:[66,{x:1,y:1,width:1,height:1}],SVGFEPointLight:[66,{}],SVGFESpecularLighting:[66,{surfaceScale:1,specularConstant:1,specularExponent:1,x:1,y:1,width:1,height:1}],SVGFESpotLight:[66,{specularExponent:1}],SVGFETile:[66,{x:1,y:1,width:1,height:1}],SVGFETurbulence:[66,{numOctaves:1,stitchTiles:1,type:1,x:1,y:1,width:1,height:1}],SVGFilter:[66,{filterUnits:1,primitiveUnits:1,x:1,y:1,width:1,height:1}],SVGForeignObject:[67,{x:1,y:1,width:1,height:1}],SVGG:[67,{}],SVGImage:[67,{x:1,y:1,width:1,height:1,preserveAspectRatio:1}],SVGLine:[73,{x1:1,y1:1,x2:1,y2:1}],SVGGradient:[66,{gradientUnits:1,gradientTransform:1,spreadMethod:1}],SVGLinearGradient:[111,{x1:1,y1:1,x2:1,y2:1}],SVGMarker:[66,{refX:1,refY:1,markerUnits:1,markerWidth:1,markerHeight:1,orientType:1,orientAngle:1,viewBox:1,preserveAspectRatio:1}],SVGMask:[66,{maskUnits:1,maskContentUnits:1,x:1,y:1,width:1,height:1}],SVGMetadata:[66,{}],SVGMPath:[66,{}],SVGPath:[73,{}],SVGPattern:[66,{patternUnits:1,patternContentUnits:1,patternTransform:1,x:1,y:1,width:1,height:1,viewBox:1,preserveAspectRatio:1}],SVGPolygon:[73,{}],SVGPolyline:[73,{}],SVGRadialGradient:[111,{cx:1,cy:1,r:1,fx:1,fy:1,fr:1}],SVGRect:[73,{x:1,y:1,width:1,height:1,rx:1,ry:1}],SVGScript:[66,{}],SVGSet:[69,{}],SVGStop:[66,{}],SVGStyle:[66,{}],SVGSVG:[67,{x:1,y:1,width:1,height:1,viewBox:1,preserveAspectRatio:1}],SVGSwitch:[67,{}],SVGSymbol:[66,{viewBox:1,preserveAspectRatio:1}],SVGTextContent:[67,{textLength:1,lengthAdjust:1}],SVGTextPositioning:[130,{x:1,y:1,dx:1,dy:1,rotate:1}],SVGText:[131,{}],SVGTextPath:[130,{startOffset:1,method:1,spacing:1}],SVGTitle:[66,{}],SVGTSpan:[131,{}],SVGUse:[67,{x:1,y:1,width:1,height:1}],SVGView:[66,{viewBox:1,preserveAspectRatio:1}]},w=i.TAG_NAMES={a:2,abbr:1,address:1,area:3,article:1,aside:1,audio:5,b:1,base:6,bdi:1,bdo:1,blockquote:7,body:8,br:9,button:10,canvas:11,caption:12,cite:1,code:1,col:13,colgroup:13,data:14,datalist:15,dd:1,del:16,details:17,dfn:1,dialog:18,div:19,dl:20,dt:1,em:1,embed:21,fieldset:22,figcaption:1,figure:1,footer:1,form:23,h1:24,h2:24,h3:24,h4:24,h5:24,h6:24,head:25,header:1,hgroup:1,hr:26,html:27,i:1,iframe:28,img:29,input:30,ins:16,kbd:1,label:31,legend:32,li:33,link:34,main:1,map:35,mark:1,menu:36,meta:37,meter:38,nav:1,noscript:1,object:39,ol:40,optgroup:41,option:42,output:43,p:44,param:45,picture:46,pre:47,progress:48,q:7,rp:1,rt:1,ruby:1,s:1,samp:1,script:49,section:1,select:50,slot:51,small:1,source:52,span:53,strike:1,strong:1,style:54,sub:1,summary:1,sup:1,table:55,tbody:56,td:57,template:58,textarea:59,tfoot:56,th:57,thead:56,time:60,title:61,tr:62,track:63,u:1,ul:64,var:1,video:65,wbr:1,svg_a:68,svg_animate:70,svg_animateMotion:71,svg_animateTransform:72,svg_audio:66,svg_canvas:66,svg_circle:74,svg_clipPath:75,svg_defs:76,svg_desc:77,svg_discard:78,svg_ellipse:79,svg_feBlend:80,svg_feColorMatrix:81,svg_feComponentTransfer:82,svg_feComposite:83,svg_feConvolveMatrix:84,svg_feDiffuseLighting:85,svg_feDisplacementMap:86,svg_feDistantLight:87,svg_feDropShadow:88,svg_feFlood:89,svg_feFuncA:91,svg_feFuncB:92,svg_feFuncG:93,svg_feFuncR:94,svg_feGaussianBlur:95,svg_feImage:96,svg_feMerge:97,svg_feMergeNode:98,svg_feMorphology:99,svg_feOffset:100,svg_fePointLight:101,svg_feSpecularLighting:102,svg_feSpotLight:103,svg_feTile:104,svg_feTurbulence:105,svg_filter:106,svg_foreignObject:107,svg_g:108,svg_iframe:66,svg_image:109,svg_line:110,svg_linearGradient:112,svg_marker:113,svg_mask:114,svg_metadata:115,svg_mpath:116,svg_path:117,svg_pattern:118,svg_polygon:119,svg_polyline:120,svg_radialGradient:121,svg_rect:122,svg_script:123,svg_set:124,svg_stop:125,svg_style:126,svg_svg:127,svg_switch:128,svg_symbol:129,svg_text:132,svg_textPath:133,svg_title:134,svg_tspan:135,svg_unknown:66,svg_use:136,svg_video:66,svg_view:137},$=Object.keys(lt);for(let S=0,R=s($),V=R.length,xt;S<V;S++){xt=R[S];let X=lt[xt];X.up=lt[$[X[0]]],X.name=xt+"Element"}for(let S,R=0,V=Object.keys(w),xt=V.length,X;R<xt;R++)X=V[R],S=w[X],w[X]=lt[$[S]]}),Bl={};hi(Bl,{ClassFlags:()=>Pn,HAS:()=>Wl,__has__$:()=>J1,__hooks__$:()=>Ba,__imba__$:()=>Va,__init__$:()=>Dr,__inited__$:()=>Z1,__initor__$:()=>Ga,__meta__$:()=>Q1,__mixin__$:()=>zl,__patch__$:()=>Vl,afterReconcile$:()=>Yl,afterVisit$:()=>Ul,appendChild$:()=>Hl,augment$:()=>fa,beforeReconcile$:()=>ql,decorate$:()=>B3,devlog$:()=>F3,extend$:()=>X1,has$:()=>M3,idx$:()=>j3,inited$:()=>Mi,is$:()=>P3,isa$:()=>Yr,iterable$:()=>bs,matcher:()=>t2,multi$:()=>z3,register$:()=>xe,statics$:()=>G3,sup$:()=>H3,up$:()=>Kl});function To(i,s={}){var e;return Eo.has(i)||Eo.set(i,{symbol:Symbol(i.name),parent:(e=Object.getPrototypeOf(i.prototype))==null?void 0:e.constructor,for:i,uses:null,inits:null,id:Xl.counter++,...s}),Eo.get(i)}function P3(i,s){var e;return i==s||((e=s?.[t2])==null?void 0:e.call(s,i))}function Yr(i,s){var e;return typeof s=="string"?typeof i===s:(e=s?.[Symbol.hasInstance])==null?void 0:e.call(s,i)}function M3(i,s){var e,o,a,u,f,d;return(d=(f=(a=(e=s?.[J1])==null?void 0:e.call(s,i))!=null?a:(o=s?.includes)==null?void 0:o.call(s,i))!=null?f:(u=s?.has)==null?void 0:u.call(s,i))!=null?d:!1}function j3(i,s){return s!=null&&s.indexOf?s.indexOf(i):Array.prototype.indexOf.call(i,s)}function F3(i,s,...e){return s&&s[da]instanceof Function?i=s[da](i,s,...e):globalThis[da]instanceof Function&&(i=globalThis[da](i,s,...e)),i}function G3(i){return e2.get(i)||e2.set(i,{}).get(i)}function bs(i){var s;return((s=i?.toIterable)==null?void 0:s.call(i))||i}function B3(i,s,e,o){let a,u=arguments.length,f=i.length,d=u<3?s:o===null?o=Object.getOwnPropertyDescriptor(s,e):o;for(;f>0;)(a=i[--f])&&(d=(u<3?a(d):u>3?a(s,e,d):a(s,e))||d);return u>3&&d&&Object.defineProperty(s,e,d),d}function V3(i,s){if(!i||!s)return!1;if(i.get)return s.get===i.get;if(i.set)return s.set===i.set;if(i.value)return i.value===s.value}function X1(i,s,e,o={}){let a=i.constructor;!e&&s&&(e=Object.getOwnPropertyDescriptors(s),delete e.constructor,e[Dr]&&(console.warn(`Cannot define plain fields when extending class ${a.name}`),delete e[Dr]));let u=To(a);if(u&&u.augments){let f=new Map;for(let d of Object.keys(e)){let g=Object.getOwnPropertyDescriptor(i,d);for(let m of u.augments){let _=f.get(m);_||f.set(m,_={});let b=Object.getOwnPropertyDescriptor(m.prototype,d);b&&!V3(g,b)?console.warn("wont extend",d,b,g):_[d]=e[d]}}for(let[d,g]of f)Object.keys(g).length&&X1(d.prototype,null,g)}return Object.defineProperties(i,e),i}function fa(i,s){var e;let o=To(i),a=To(s),u=a.parent;for(;u&&((e=To(u))==null?void 0:e.flags)&Pn.IsMixin;){fa(i,u),u=null;break}if(u&&!(i.prototype instanceof u))throw new Error(`Mixin ${s.name} has superclass not present in target class`);if(!a.augments){a.augments=new Set;let d=a.ref=Symbol(s.name),g=Object[Symbol.hasInstance];s.prototype[d]=!0,Object.defineProperty(s,Symbol.hasInstance,{value:function(m){return this===s?m&&!!m[d]:g.call(this,m)}})}if(i.prototype[a.ref])return i;if(a.uses)for(let d of a.uses)fa(i,d);a.augments.add(i),o.uses||(o.uses=[]),o.uses.push(s);let f=Object.getOwnPropertyDescriptors(s.prototype);return delete f.constructor,f[Dr]&&(o.inits||(o.inits=[]),o.inits.push(s.prototype[Dr]),delete f[Dr]),Object.defineProperties(i.prototype,f),s?.mixed instanceof Function&&s.mixed(i),i}function z3(i,s,...e){let o=s?class extends s{}:class{},a=To(o,{symbol:i});for(let u of e)fa(o,u);return o.prototype[i]=function(u,f,d){if(a.inits)for(let g of a.inits)g.call(this,u,!1,d)},o}function H3(i,s){return ji.self=i,ji.target=ji.cache[s],ji.proxy}function xe(i,s,e,o,a=null){var u;let f=Object.getPrototypeOf(i.prototype),d=(o&(Pn.HasMixins|Pn.IsExtension))==Pn.HasMixins,g;if(d&&(Eo.set(i,Eo.get(f.constructor)),f=Object.getPrototypeOf(f)),a){let _=o&Pn.IsObjectExtension?a:a.prototype,b=To(i);if(b.uses){a===_&&console.warn("Cannot extend object with mixins");for(let k of b.uses)fa(a,k)}return o&Pn.HasSuperCalls&&(ji.cache[s]=Object.create(Object.getPrototypeOf(_),Object.getOwnPropertyDescriptors(_))),X1(_,i.prototype),a}let m=f?.constructor;if(g=To(i,{symbol:s}),Object.defineProperty(i,Q1,{value:g,enumerable:!1,configurable:!0}),e&&i.name!==e&&Object.defineProperty(i,"name",{value:e,configurable:!0}),g.flags=o,o&Pn.HasConstructor&&(i.prototype[Ga]=s),g.uses)for(let _ of g.uses)(u=_.mixes)==null||u.call(_,i);return m?.inherited instanceof Function&&m.inherited(i),i}function Mi(i,s){var e;i[Ga]===s&&((e=i[Z1])==null||e.call(i),i[Ba]&&i[Ba].inited(i))}var Dr,Ga,Z1,Ba,Vl,J1,Q1,Va,zl,t2,da,Hl,Ul,ql,Yl,Kl,Wl,Pn,Eo,Xl,e2,ji,ci=As(()=>{Dr=Symbol.for("#__init__"),Ga=Symbol.for("#__initor__"),Z1=Symbol.for("#__inited__"),Ba=Symbol.for("#__hooks__"),Vl=Symbol.for("#__patch__"),J1=Symbol.for("#has"),Q1=Symbol.for("#meta"),Va=Symbol.for("imba"),zl=Symbol.for("#__mixin__"),t2=Symbol.for("#matcher"),da=Symbol.for("#L"),Hl=Symbol.for("#appendChild"),Ul=Symbol.for("#afterVisit"),ql=Symbol.for("#beforeReconcile"),Yl=Symbol.for("#afterReconcile"),Kl=Symbol.for("##up"),Wl={SUPERCALLS:8,CONSTRUCTOR:16},Pn={IsExtension:1,IsTag:2,HasDescriptors:4,HasSuperCalls:8,HasConstructor:16,HasFields:32,HasMixins:64,HasInitor:128,HasDecorators:256,IsObjectExtension:512,IsMixin:1024},Eo=new Map,Xl=globalThis[Va]||(globalThis[Va]={counter:0,classes:Eo}),e2=new WeakMap,ji={cache:{},self:null,target:null,proxy:new Proxy({},{apply:(i,s,e)=>Reflect.apply(ji.target,s,e),get:(i,s)=>{let e=Reflect.get(ji.target,s,ji.self);return e instanceof Function?e.bind(ji.self):e},set:(i,s,e,o)=>Reflect.set(ji.target,s,e,ji.self)})}}),Ao,Zl,Jl,s2,r2,i2,_a,n2,o2,Yo,ya,a2,c2,Ql,za=As(()=>{ci(),Ao=Symbol.for("#source"),Zl=Symbol.for("#lineText"),Jl=Symbol.for("#version"),s2=new WeakMap,r2=Symbol(),i2=class{[Dr](s=null,e=!0,o=!0){this.line=s?s.line:void 0,this.character=s?s.character:void 0,this.offset=s?s.offset:void 0}constructor(s,e,o,a=null){this[Dr](),this.line=s,this.character=e,this.offset=o,this[Jl]=a,Mi(this,r2)}toString(){return""+this.line+":"+this.character}valueOf(){return this.offset}},xe(i2,r2,"Position",16),_a=i2,n2=Symbol(),o2=class{[Dr](s=null,e=!0,o=!0){this.start=s?s.start:void 0,this.end=s?s.end:void 0}constructor(s,e){this[Dr](),this.start=s,this.end=e,Mi(this,n2)}get offset(){return this.start.offset}get length(){return this.end.offset-this.start.offset}get 0(){return this.start.offset}get 1(){return this.end.offset}getText(s){return s.slice(this.start,this.end)}equals(s){return s.offset==this.offset&&s.length==this.length}},xe(o2,n2,"Range",16),Yo=o2,ya={Error:1,Warning:2,Information:3,Hint:4,error:1,warning:2,warn:2,info:3,hint:4},a2=Symbol(),c2=class{constructor(s,e=null){this.range=s.range,this.severity=ya[s.severity]||s.severity,this.code=s.code,this.source=s.source,this.message=s.message,s2.set(this,e),Mi(this,a2)}get[Ao](){return s2.get(this)}get[Zl](){return this[Ao].doc.getLineText(this.range.start.line)}toSnippet(){let s=this.range.start,e=this.range.end,o=""+this[Ao].sourcePath+":"+(s.line+1)+":"+(s.character+1)+": "+this.message,a=this[Ao].doc.getLineText(s.line),u=[o,a];return u.push(a.replace(/[^\t]/g," ").slice(0,s.character)+"^".repeat(e.character-s.character)),u.join(` `).replace(/\t/g," ")+` `}toError(){let s=this.range.start,e=this.range.end,o=""+this[Ao].sourcePath+":"+(s.line+1)+":"+(s.character+1)+": "+this.message,a=new SyntaxError(o),u=this[Ao].doc.getLineText(s.line),f=[o,u];return f.push(u.replace(/[^\t]/g," ").slice(0,s.character)+"^".repeat(e.character-s.character)),a.stack=` `+f.join(` `).replace(/\t/g," ")+` `,a}raise(){throw this.toError()}},xe(c2,a2,"Diagnostic",16),Ql=c2});function tp(i,s,e=1e5){let o=i;for(;o&&e>0;){if(o.match(s))return o;e--,o=o.prev}return null}function ep(i,s,e){e===void 0&&(e=0);for(var o=s?[e]:[],a=0;a<i.length;){var u=i.charCodeAt(a);(u===13||u===10)&&(u===13&&a+1<i.length&&i.charCodeAt(a+1)===10&&a++,o.push(e+a+1)),a++}return o}function U3(i){var s=i.start,e=i.end;return s.line>e.line||s.line===e.line&&s.character>e.character?new Yo(e,s):Yr(i,Yo)?i:new Yo(s,e)}function q3(i){return i!=null&&typeof i.text=="string"&&i.range===void 0}function Y3(i){let s=i.split(/\n/),e=[],o={indent:-1,children:[]},a=o,u,f=Date.now();for(let d=0,g=bs(s),m=g.length;d<m;d++){let _=g[d];if(_.match(/^\s*$/))continue;let b=_.match(/^\t*/)[0].length;for(;o.indent>=b;)o=o.parent||a;if(u=_.match(/^(\t*((?:export )?(?:static )?(?:extend )?)(class|tag|def|get|set|prop|attr) )(\@?[\w\-\$\:]+(?:\.[\w\-\$]+)?)/),u){let k=u[3],G=u[4],j=o.name?o.name+".":"",F=u[2].trim().split(/\s+/),lt="",w={start:{line:d,character:u[1].length},end:{line:d,character:u[0].length}},$={kind:k,ownName:G,name:j+G,span:w,indent:b,modifiers:F,children:[],parent:o==a?null:o,type:k,data:{},static:F.indexOf("static")>=0,extends:F.indexOf("extend")>=0};$.static&&($.containerName="static"),$.containerName=u[2]+u[3],k=="tag"&&(u=_.match(/\<\s+([\w\-\$\:]+(?:\.[\w\-\$]+)?)/))&&($.superclass=u[1]),o.type=="tag"&&(lt="```html\n<"+o.name+" "+G+">\n```\n",$.description={kind:"markdown",value:lt}),o.children.push($),o=$,e.push($)}}return a.all=e,console.log("fast outline",i.length,Date.now()-f),a}var l2,p2,K3,Ha=As(()=>{ci(),za(),l2=Symbol(),p2=class{constructor(s,e){this.cache={},this.rules=s,this.matcher=e,Mi(this,l2)}convert(s){for(let e=0,o=bs(this.rules),a=o.length;e<a;e++){let u=o[e];if(this.matcher&&this.matcher(u[0],s))return s[1]}return 0}},xe(p2,l2,"Converter",16),K3=p2});function W3(i,s="#"){typeof i=="string"&&(i=i.split(" "));let e=i.slice().sort(function(o,a){return a.length-o.length});return e=e.map(function(o){let a=o.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&");return s.replace("#",a)}),new RegExp("(?:"+e.join("|")+")")}function ps(i,s,e,o={}){var a,u;i==null?i=f2:i==1?i={next:"@>"}:i==2?i={next:"@>_indent&-_indent"}:typeof i=="string"&&(i={next:i}),s==-1&&(s=h2),e==-1?e=h2:e==0&&((a=o.comment)!=null||(o.comment=!0),e={}),i=Object.assign({token:"white.tabs"},i||{}),e=Object.assign({token:"white.tabs"},e||{}),s=Object.assign({token:"@rematch",next:"@pop"},s||{});let f={"$1==$S2 ":i,"$1==$S2":{cases:{"$1==$S6":e,"@default":{token:"@rematch",switchTo:"@*$1"}}},"@default":s};u=0;for(let g of["next","switchTo"]){let m=u++;i[g]&&i[g].indexOf("*")==-1&&(i[g]+="*$1")}let d=[/^(\t*)(?=[^ \t\n])/,{cases:f}];if(o.comment){let g={};for(let m=0,_=Object.keys(f),b=_.length,k,G;m<b;m++){k=_[m],G=f[k];let j=Object.assign({},G);!j.next&&!j.switchTo&&(j.next="@>_comment"),g[k]=j}return[[/^(\t*)(?=#\s|#$)/,{cases:g}],d]}return d}function Ua(i){let s=["$S1","$S2","$S3","$S4","$S5","$S6"];if(i.match(/\@(pop|push|popall)/)||(i[0]=="@"&&(i=i.slice(1)),i.indexOf(".")>=0))return i;i=qa(i),i[0]==">"&&(s[1]="$S6 ",i=i.slice(1));for(let e=0,o=bs(i.split(/(?=[\/\&\=\*])/)),a=o.length;e<a;e++){let u=o[e];u[0]=="&"?u[1]=="-"||u[1]=="_"?s[2]="$S3"+u.slice(1):s[2]="$S3-"+u.slice(1):u[0]=="+"?s[3]="$S4-"+u.slice(1):u[0]=="="?s[3]=u.slice(1):u[0]=="/"?s[4]=u.slice(1):u[0]=="*"?s[5]=u.slice(1):s[0]=u}return s.join(".")}function qa(i){let s=i;return i=i.replace("$/","$S5"),i=i.replace("$F","$S4"),i=i.replace("$&","$S3"),i=i.replace("$I","$S2"),i=i.replace("$T","$S2"),i}function u2(i,s){if(typeof i=="string"&&(i={token:i}),i&&i.token!=null)i.token=qa(i.token),typeof s=="string"?i.next=s:s&&Object.assign(i,s),i.next&&(i.next=Ua(i.next)),i.switchTo&&(i.switchTo=Ua(i.switchTo));else if(i&&i.cases){let e={};for(let o=i.cases,a=0,u=Object.keys(o),f=u.length,d,g;a<f;a++){d=u[a],g=o[d];let m=qa(d);e[m]=u2(g)}i.cases=e}else if(Yr(i,Array)){let e=[],o=null;for(let a=0,u=bs(i),f=u.length;a<f;a++){let d=u[a];d[0]=="@"&&a==i.length-1&&o&&(d={next:d}),typeof d=="object"?d.token!=null||d.cases?e.push(o=Object.assign({},d)):Object.assign(o,d):typeof d=="string"&&e.push(o={token:qa(d)})}i=e}if(Yr(i,Array))for(let e=0,o=bs(i),a=o.length;e<a;e++){let u=o[e];u.token&&u.token.indexOf("$$")>=0&&(u.token=u.token.replace("$$","$"+(e+1))),u.next&&(u.next=Ua(u.next)),u.switchTo&&(u.switchTo=Ua(u.switchTo))}return i}var Ya,h2,f2,Ka,d2,sp=As(()=>{ci(),Ya=[/^/,{token:"@rematch",next:"@pop"}],h2={token:"@rematch",next:"@pop"},f2={token:"white.indent",next:"@>illegal_indent"},Ka={root:[[/^@comment/,"comment","@>_comment"],[/^(\t+)(?=[^\t\n])/,{cases:{"$1==$S2 ":{token:"white.indent",next:"@>_indent*$1"},"@default":"white.indent"}}],"block_"],_comment:[[/^([\t\s\n]*)$/,"comment"],[/^(\t*)([\S\s]*)/,{cases:{"$1~$S2 *":{token:"comment"},"@default":{token:"@rematch",next:"@pop"}}}],[/[\S\s]+/,"comment"]],illegal_indent:[ps()],identifier_:[[/\$\w+\$/,"identifier.env"],[/\$\d+/,"identifier.special"],[/\#+@id/,"identifier.symbol"],[/\¶@id/,"ivar"],[/@id\!?/,{cases:{this:"this",self:"self","@keywords":"keyword.$#","$0~[A-Z].*":"identifier.uppercase.$F","@default":"identifier.$F"}}]],block_:[[/^(\t+)(?=[\r\n]|$)/,"white.tabs"],"class_","tagclass_","var_","func_","import_","export_","flow_","for_","try_","catch_","while_","css_","tag_","do_","block_comment_","expr_",[/[ ]+/,"white"],"common_"],indentable_:[[/^[ ]+/,"white"],ps("@>_paren_indent&-_indent",null,null),[/^(\t+)(?=[\r\n]|$)/,"white.tabs"],"whitespace"],_indent:[ps(2,-1,0),"block_"],_paren_indent:[ps(2,-1,0),"block_",[/\)|\}|\]/,"@rematch","@pop"]],block:[ps("@>",-1,0),"block_"],bool_:[[/(true|false|yes|no|undefined|null)(?![\:\-\w\.\_])/,"boolean"]],op_:[[/\s+\:\s+/,"operator.ternary"],[/(@unspaced_ops)/,{cases:{"@spread":"operator.spread","@access":"operator.access","@default":"operator"}}],[/\/(?!\/)/,"operator.math"],[/\&(?=[,\)])/,"operator.special.blockparam"],[/(\s*)(@symbols)(\s*)/,{cases:{"$2@assignments":"operator.assign","$2@math":"operator.math","$2@operators":"operator","$2@logic":"operator.logic","$2@access":"operator.access","@default":"delimiter"}}],[/\&\b/,"operator"]],keyword_:[[/new@B/,"keyword.new"],[/isa@B/,"keyword.isa"],[/is@B/,"keyword.is"],[/(switch|when|throw|continue|break|then|await|typeof|by)@B/,"keyword.$1"],[/delete@B/,"keyword.delete"],[/and@B|or@B/,"operator.flow"]],return_:[[/return@B/,"keyword.new"]],primitive_:["string_","number_","regexp_","bool_"],value_:["primitive_","keyword_","implicit_call_","parens_","key_","access_","identifier_","array_","object_"],expr_:["comment_","inline_var_","return_","value_","tag_","op_","type_","spread_"],attr_expr_:["primitive_","parens_","access_","identifier_","array_","object_","tag_","op_"],access_:[[/(\.\.?)(@propid\!?)/,{cases:{"$2~[A-Z].*":["operator.access","accessor.uppercase"],"$2~#.*":["operator.access","accessor.symbol"],"@default":["operator.access","accessor"]}}]],call_:[[/\(/,"(","@call_body"]],key_:[[/(\#+@id)(\:\s*)/,["key.symbol","operator.assign.key-value"]],[/(@propid)(\:\s*)/,{cases:{"@default":["key","operator.assign.key-value"]}}]],implicit_call_:[[/(\.\.?)(@propid)@implicitCall/,{cases:{"$2~[A-Z].*":["operator.access","accessor.uppercase","@implicit_call_body"],"@default":["operator.access","accessor","@implicit_call_body"]}}],[/(@propid)@implicitCall/,{cases:{"$2~[A-Z].*":["identifier.uppercase","@implicit_call_body"],"@default":["identifier","@implicit_call_body"]}}]],implicit_call_body:[Ya,[/\)|\}|\]|\>/,"@rematch","@pop"],"arglist_","whitespace"],arglist_:["do_","expr_",[/\s*\,\s*/,"delimiter.comma"]],params_:[[/\[/,"array.[","@array_var_body=decl-param"],[/\{/,"object.{","@object_body=decl-param"],[/(@variable)/,"identifier.decl-param"],"spread_","type_",[/\s*\=\s*/,"operator","@var_value="],[/\s*\,\s*/,"separator"]],object_:[[/\{/,"object.{","@object_body"]],parens_:[[/\(/,"parens.(","@parens_body"]],parens_body:[[/\)/,")","@pop"],"indentable_","arglist_"],array_:[[/\[/,"array.[","@array_body"]],array_body:[[/\]@implicitCall/,{token:"]",switchTo:"@implicit_call_body="}],[/\]/,"]","@pop"],[/\)|\}/,"invalid"],"indentable_","expr_",[",","delimiter"]],object_body:[[/\}/,"}","@pop"],[/(@id)(\s*:\s*)/,["key","operator.assign.key-value","@object_value"]],[/(@id)/,"identifier.$F"],[/\[/,"[","@object_dynamic_key="],[/\s*=\s*/,"operator.assign","@object_value="],[/:/,"operator.assign.key-value","@object_value="],[/\,/,"delimiter.comma"],"indentable_","expr_"],object_value:[Ya,[/,|\}|\]|\)/,"@rematch","@pop"],"expr_"],object_dynamic_key:[["]","]","@pop"],"expr_"],comment_:[[/#(\s.*)?(\n|$)/,"comment"]],block_comment_:[[/###/,"comment.start","@_block_comment"]],_block_comment:[[/###/,"comment.end","@pop"],[/[^#]+/,"comment"],[/#(?!##)/,"comment"]],try_:[[/try@B/,"keyword.try","@>_try&try"]],catch_:[[/(catch\s+)(?=@id(\s|$))/,"keyword.catch","@catch_start&catch"],[/catch@B/,"keyword.catch","@catch_start&catch"]],catch_start:[[/@id/,"identifier.decl-const",{switchTo:"@>_catch"}],[/.?/,"@rematch",{switchTo:"@>_catch"}]],_catch:[ps("@>block",-1,0),"block_"],_try:[ps("@>block",-1,0),"block_"],do_:[[/do(?=\()/,"keyword.do","@>do_start&do"],[/do(?=\s*\|)/,"keyword.do","@>do_piped&do"],[/do@B/,"keyword.do","@>_do&do"]],do_start:[ps(null,-1,-1),[/\(/,"(",{switchTo:"@_do_params"}],[/./,"@rematch",{switchTo:"@_do"}]],do_piped:[ps(null,-1,-1),[/\s*\|/,"args.open",{switchTo:"@_do_piped_params"}],[/./,"@rematch",{switchTo:"@_do"}]],_do_piped_params:[[/\|/,"args.close",{switchTo:"@_do"}],"params_"],_do_params:[[/\)/,")",{switchTo:"@_do"}],"params_"],_do:[ps(2,-1,0),[/(\}|\)|\])/,"@rematch","@pop"],"block_"],class_:[[/(extend)(?=\s+class )/,"keyword.$1"],[/(global)(?=\s+class )/,"keyword.$1"],[/(class)(\s)(@id)/,["keyword.$1","white.$1name","entity.name.class.decl-const","@class_start="]],[/(class)(?=\n)/,"keyword.$1","@>_class&class="]],class_start:[[/(\s+\<\s+)(@id)/,["keyword.extends","identifier.superclass"]],[/@comment/,"comment"],[/^/,"@rematch",{switchTo:"@>_class&class="}]],tagclass_:[[/(extend)(?=\s+tag )/,"keyword.$1"],[/(global)(?=\s+tag )/,"keyword.$1"],[/(tag)(\s)(@constant)/,["keyword.tag","white.tagname","entity.name.component.local","@tagclass_start="]],[/(tag)(\s)(@id)/,["keyword.tag","white.tagname","entity.name.component.global","@tagclass_start="]]],tagclass_start:[[/(\s+\<\s+)(@id)/,["keyword.extends","identifier.superclass"]],[/@comment/,"comment"],[/^/,"@rematch",{switchTo:"@>_tagclass&component="}]],import_:[[/(import)(?=\s+['"])/,"keyword.import","@>import_source"],[/(import)(\s+type)(?=\s[\w\$\@\{])/,["keyword.import","keyword.type","@>import_body&-_imports=decl-import/part"]],[/(import)@B/,"keyword.import","@>import_body&-_imports=decl-import/part"]],import_body:[ps(null,-1,0),[/(@esmIdentifier)( +from)/,["identifier.$F.default","keyword.from",{switchTo:"@import_source"}]],[/(\*)(\s+as\s+)(@esmIdentifier)(\s+from)/,["keyword.star","keyword.as","identifier.$F.ns","keyword.from",{switchTo:"@import_source"}]],[/(@esmIdentifier)(\s*,\s*)(\*)(\s+as\s+)(@esmIdentifier)(from)/,["identifier.$F.default","delimiter.comma","keyword.star","keyword.as","identifier.$F.ns","keyword.from",{switchTo:"@import_source"}]],[/\ *from/,"keyword.from",{switchTo:"@import_source"}],[/\{/,"specifiers.{","@esm_specifiers/part"],[/(@esmIdentifier)/,"identifier.$F",{switchTo:"@/delim"}],[/\s*\,\s*/,"delimiter.comma",{switchTo:"@/part"}],"comma_","common_"],import_source:[ps(null,-1,0),[/["']/,"path.open","@_path=$#"],Ya],export_:[[/(export)( +)(default)@B/,["keyword.export","white","keyword.default"]],[/(export)(?= +(let|const|var|class|tag)@B)/,"keyword.export"],[/(export)( +)(global)@B/,["keyword.export","white","keyword.global"]],[/(export)(\s+\*\s+)(from)@B/,["keyword.export","operator.star","keyword.from","@>import_source"]],[/(export)@B/,"keyword.export","@>export_body"]],export_body:[ps(null,-1,0),[/(\*)(\s+as\s+)(@esmIdentifier)/,["keyword.star","keyword.as","identifier.const.export"]],[/(@esmIdentifier)(\s+as\s+)(default)/,["alias","keyword.as","alias.default"]],[/(@esmIdentifier)(\s+as\s+)(@esmIdentifier)/,["alias","keyword.as","identifier.const.export"]],[/from/,"keyword.from",{switchTo:"@import_source"}],[/\{/,"{","@esm_specifiers=export/part"],[/(@esmIdentifier)/,"identifier.const.export"],[/\*/,"operator.star"],"comma_","common_"],esm_specifiers:[[/\}/,"}","@pop"],[/(@esmIdentifier)(\s+as\s+)(@esmIdentifier)/,["alias","keyword.as","identifier.const.$F",{switchTo:"@/delim"}]],[/@esmIdentifier/,{cases:{"$/==part":{token:"identifier.const.$S4",switchTo:"@/delim"},"@default":{token:"invalid"}}}],[/\s*\,\s*/,"delimiter.comma",{switchTo:"@/part"}],"whitespace"],_path:[[/[^"'\`\{\\]+/,"path"],[/@escapes/,"path.escape"],[/\./,"path.escape.invalid"],[/\{/,"invalid"],[/["'`]/,{cases:{"$#==$F":{token:"path.close",next:"@pop"},"@default":"path"}}]],member_:[[/(constructor)@B/,"entity.name.constructor","@>def_params&def/def"],[/(def|get|set)(\s)(@defid)/,["keyword.$1","white.entity","entity.name.$1","@>def_params&$1/$1"]],[/(def|get|set)(\s)(\[)/,["keyword.$1","white.entity","$$","@>def_dynamic_name/$1"]]],func_:[[/export(?=\s+(get|set|def|global) )/,"keyword.export"],[/global(?=\s+(get|set|def) )/,"keyword.global"],[/(def)(\s)(@id)(\.)(@defid)/,["keyword.$1","white.entity","identifier.target","operator","entity.name.def","@>def_params&$1/$1"]],[/(def)(\s)(@defid)/,["keyword.$1","white.entity","entity.name.function.decl-const-func","@>def_params&$1/$1"]]],flow_:[[/(if|else|elif|unless)(?=\s|$)/,["keyword.$1","@flow_start=$1"]]],flow_start:[ps({switchTo:"@>_flow&$F"},-1,-1),[/[ \t]+/,"white"],"expr_"],for_:[[/for(?: own)?@B/,"keyword.$#","@for_start&forscope=decl-for"]],while_:[[/(while|until)@B/,"keyword.$#","@>while_body"]],while_body:[ps(2,-1,0),"block_"],for_start:[ps({switchTo:"@>for_body"},-1,-1),[/\[/,"array.[","@array_var_body"],[/\{/,"object.{","@object_body"],[/(@variable)/,"identifier.$F"],[/(\s*\,\s*)/,"separator","@=decl-for-index"],[/\s(in|of)@B/,"keyword.$1",{switchTo:"@>for_source="}],[/[ \t]+/,"white"],"type_"],for_source:[ps({switchTo:"@>for_body"},-1,{switchTo:"@for_body"}),"expr_",[/[ \t]+/,"white"]],for_body:[ps(2,-1,0),"block_"],decorator_:[[/(@decid)(\()/,["decorator","$2","@_decorator_params"]],[/(@decid)/,"decorator"]],_decorator_params:[[/\)/,")","@pop"],"params_"],field_:[[/((?:lazy )?)((?:static )?)(const|let|attr)(?=\s|$)/,["keyword.lazy","keyword.static","keyword.$1","@_vardecl=field-$3"]],[/(static\s+)(?=@fieldid)/,"keyword.static"],[/(@fieldid)(?=$)/,"entity.name.field"],[/(@fieldid)/,["entity.name.field","@_field_1"]]],_field_1:[ps(null,-1,-1),"type_",[/(\s*=)(?!\=)/,["operator.assign","@>_field_value&field"]],[/(\s*(?:\@)set\s*)/,["keyword.spy","@>_def&spy"]]],_field_value:[ps(2,-1,0),"block_",[/(\s*(?:\@)set\s*)/,["@rematch","@pop"]]],var_:[[/((?:export )?)(const|let)(?=\s[\[\{\$a-zA-Z]|\s*$)/,["keyword.export","keyword.$1","@_vardecl=decl-$2"]],[/((?:export )?)(const|let)(?=\s|$)/,["keyword.export","keyword.$1"]]],inline_var_:[[/(const|let)(?=\s[\[\{\$a-zA-Z]|\s*$)/,["keyword.$1","@inline_var_body=decl-$1"]]],string_:[[/"""/,"string",'@_herestring="""'],[/'''/,"string","@_herestring='''"],[/["'`]/,"string.open","@_string=$#"]],number_:[[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[b][01_]+/,"number.binary"],[/0[o][0-9_]+/,"number.octal"],[/(\d+)([a-z]+|\%)/,["number","unit"]],[/(\d*\.\d+(?:[eE][\-+]?\d+)?)([a-z]+|\%)/,["number.float","unit"]],[/\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d[\d_]*\.\d[\d_]*([eE][\-+]?\d+)?/,"number.float"],[/\d[\d_]*/,"number.integer"],[/0[0-7]+(?!\d)/,"number.octal"],[/\d+/,"number"]],_string:[[/[^"'\`\{\\]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/\{/,{cases:{"$F=='":"string","@default":{token:"string.bracket.open",next:"@interpolation_body"}}}],[/["'`]/,{cases:{"$#==$F":{token:"string.close",next:"@pop"},"@default":"string"}}],[/#/,"string"]],_herestring:[[/("""|''')/,{cases:{"$1==$F":{token:"string",next:"@pop"},"@default":"string"}}],[/[^#\\'"\{]+/,"string"],[/['"]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/\{/,{cases:{'$F=="""':{token:"string",next:"@interpolation_body"},"@default":"string"}}],[/#/,"string"]],interpolation_body:[[/\}/,"string.bracket.close","@pop"],"expr_"],_class:[ps(f2,-1,0),"css_","member_","comment_","decorator_",[/(get|set|def|static|prop|attr)@B/,"keyword.$0"],"field_","common_"],_tagclass:["_class",[/(?=\<self)/,"entity.name.def.render","@_render&def"]],def_params:[[/\(/,"(","@def_parens"],[/^/,"@rematch",{switchTo:"@_def"}],[/do@B/,"keyword.do",{switchTo:"@_def"}],"params_",[/@comment/,"comment"]],def_parens:[[/\)/,")","@pop"],"params_"],def_dynamic_name:[["]",{token:"square.close",switchTo:"@def_params&$/"}],"expr_"],_render:[ps(2,-1,-1),"block_"],_def:[ps(2,-1,0),"block_"],_flow:[ps(2,-1,0),"block_"],_varblock:[ps(1,-1,-1),[/\[/,"array.[","@array_var_body"],[/\{/,"object.{","@object_body"],[/(@variable)/,"identifier.$F"],[/\s*\,\s*/,"separator"],[/(\s*\=\s*)(?=(for|while|until|if|unless|try)\s)/,"operator","@pop"],[/(\s*\=\s*)/,"operator","@var_value="],"type_",[/#(\s.*)?\n?$/,"comment"]],_vardecl:[ps(null,-1,-1),[/\[/,"array.[","@array_var_body"],[/\{/,"object.{","@object_body"],[/(@variable)(?=\n|,|$)/,"identifier.$F","@pop"],[/(@variable)/,"identifier.$F"],[/(\s*\=\s*)/,"operator.declval",{switchTo:"@var_value&value="}],"type_"],array_var_body:[[/\]/,"]","@pop"],[/\{/,"object.{","@object_body"],[/\[/,"array.[","@array_var_body"],"spread_",[/(@variable)/,"identifier.$F"],[/(\s*\=\s*)/,"operator.assign","@array_var_body_value="],[",","delimiter"]],array_var_body_value:[[/(?=,|\)|]|})/,"delimiter","@pop"],"expr_"],inline_var_body:[[/\[/,"array.[","@array_var_body"],[/\{/,"object.{","@object_body"],[/(@variable)/,"identifier.$F"],[/(\s*\=\s*)/,"operator","@pop"],"type_"],var_value:[[/(?=,|\)|]|})/,"delimiter","@pop"],ps({switchTo:"@>block"},-1,-1),"block_"],common_:[[/^(\t+)(?=\n|$)/,"white.tabs"],"whitespace"],comma_:[[/\s*,\s*/,"delimiter.comma"]],spread_:[[/\.\.\./,"operator.spread"]],type_:[[/\\/,"@rematch","@_type&-_type/0"]],_type:[ps(-1,-1,-1),[/\\/,"delimiter.type.prefix"],[/\[/,"delimiter.type","@/]"],[/\(/,"delimiter.type","@/)"],[/\{/,"delimiter.type","@/}"],[/\</,"delimiter.type","@/>"],[/\|/,"delimiter.type.union"],[/\,|\s|\=|\./,{cases:{"$/==0":{token:"@rematch",next:"@pop"},"@default":"type"}}],[/[\]\}\)\>]/,{cases:{"$#==$/":{token:"delimiter.type",next:"@pop"},"@default":{token:"@rematch",next:"@pop"}}}],[/[\w\-\$]+/,"type"]],css_:[[/global(?=\s+css@B)/,"keyword.$#"],[/css(?:\s+)?/,"keyword.css","@>css_selector&rule-_sel"]],sel_:[[/(\%)((?:@id)?)/,["style.selector.mixin.prefix","style.selector.mixin"]],[/(\@)(\.{0,2}[\w\-\<\>\!]*\+?)/,"style.selector.modifier"],[/(\@)(\.{0,2}[\w\-\<\>\!]*)/,"style.selector.modifier"],[/\.([\w\-]+)/,"style.selector.class-name"],[/\#([\w\-]+)/,