Time slots app prototype
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

276 lines
691 KiB

var S_=Object.create;var ol=Object.defineProperty;var T_=Object.getOwnPropertyDescriptor;var E_=Object.getOwnPropertyNames;var A_=Object.getPrototypeOf,I_=Object.prototype.hasOwnProperty;var _f=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var rr=(t,e)=>()=>(t&&(e=t(t=0)),e);var ae=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ms=(t,e)=>{for(var r in e)ol(t,r,{get:e[r],enumerable:!0})},mf=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E_(e))!I_.call(t,s)&&s!==r&&ol(t,s,{get:()=>e[s],enumerable:!(i=T_(e,s))||i.enumerable});return t};var al=(t,e,r)=>(r=t!=null?S_(A_(t)):{},mf(e||!t||!t.__esModule?ol(r,"default",{value:t,enumerable:!0}):r,t)),Zi=t=>mf(ol({},"__esModule",{value:!0}),t);var Pa=ae(dr=>{var Qi={},Gs=dr.TOK={},zm=Gs.TERMINATOR=1,Um=Gs.IDENTIFIER=Gs.IVAR=2,Hm=Gs.CONST=3,qm=Gs.VAR=4,Ym=Gs.IF=5,Km=Gs.ELSE=6,Wm=Gs.DEF=7;function ir(t,e,r,i){return this._type=t,this._value=e,this._loc=r!=null?r:-1,this._len=i!=null?i:this._value.length,this._meta=null,this.generated=!1,this.newLine=!1,this.spaced=!1,this.call=!1,this}dr.Token=ir;ir.prototype.type=function(){return this._type};ir.prototype.value=function(){return this._value};ir.prototype.traverse=function(){};ir.prototype.c=function(){return""+this._value};ir.prototype.prepend=function(t){return this._value=t+this._value,this};ir.prototype.toString=function(){return this._value};ir.prototype.charAt=function(t){return this._value.charAt(t)};ir.prototype.slice=function(t){return this._value.slice(t)};ir.prototype.cloneSlice=function(t,e){return new ir(e||this._type,this.slice(t),this._loc+t,this._len-t)};ir.prototype.region=function(){return[this._loc,this._loc+this._len]};ir.prototype.startLoc=function(){return this._loc};ir.prototype.endLoc=function(){return this._loc+this._len};ir.prototype.loc=function(){return[this._loc,this.endLoc()]};dr.lex=Qi.lex=function(){var t=this.tokens[this.pos++],e;return t?(e=t._type,this.yytext=t):e="",e};dr.token=Qi.token=function(t,e){return new ir(t,e,-1,0)};dr.typ=Qi.typ=function(t){return t._type};dr.val=Qi.val=function(t){return t._value};dr.line=Qi.line=function(t){return t._line};dr.loc=Qi.loc=function(t){return t._loc};dr.setTyp=Qi.setTyp=function(t,e){return t._type=e};dr.setVal=Qi.setVal=function(t,e){return t._value=e};dr.setLine=Qi.setLine=function(t,e){return t._line=e};dr.setLoc=Qi.setLoc=function(t,e){return t._loc=e};var O_=dr.LBRACKET=new ir("{","{",0,0,0),R_=dr.RBRACKET=new ir("}","}",0,0,0),C_=dr.LPAREN=new ir("(","(",0,0,0),N_=dr.RPAREN=new ir(")",")",0,0,0);O_.generated=!0;R_.generated=!0;C_.generated=!0;N_.generated=!0;var Xm=dr.INDENT=new ir("INDENT","2",0,0,0),Jm=dr.OUTDENT=new ir("OUTDENT","2",0,0,0)});var vf=ae(gf=>{var yf={32:16777619n,64:1099511628211n,128:309485009821345068724781371n,256:374144419156711147060143317175368453031918731002211n,512:35835915874844867368919076489095108449946327955754392558399825615420669938882575126094039892345713852759n,1024:5016456510113118655434598811035278955030765345404790744303017523831112055108147451509157692220295382716162651878526895249385292291816524375083746691371804094271873160484737966720260389217684476157468082573n},L_={32:2166136261n,64:14695981039346656037n,128:144066263297769815596495629667062367629n,256:100029257958052580907070968620625704837092796014241193945225284501741471925557n,512:9659303129496669498009435400716310466090418745672637896108374329434462657994582932197716438449813051892206539805784495328239340083876191928701583869517785n,1024:14197795064947621068722070641403218320880622795441933960878474914617582723252296732303717722150864096521202355549365628174669108571814760471015076148029755969804077320157692458563003215304957150157403644460363550505412711285966361610267868082893823963790439336411086884584107735010676915n};gf.fnv1a=function(e,{size:r=32}={}){if(!yf[r])throw new Error("The `size` option must be one of 32, 64,
}`:`{
`+t+`
}`};Ae.normalizeIndentation=fe.normalizeIndentation=function(t){for(var e,r=/\n+([^\n\S]*)/g,i=null,s;e=r.exec(t);){var n=e[1];(i===null||0<(s=n.length)&&s<i.length)&&(i=n)}return i&&(t=t.replace(RegExp("\\n"+i,"g"),`
`)),t};Ae.flatten=fe.flatten=function(t){var e=[];return t.forEach(function(r){return r instanceof Array?e.push.apply(e,fe.flatten(r)):e.push(r)}),e};Ae.clearLocationMarkers=fe.clearLocationMarkers=function(t){return t.replace(/\/\*\%([\w\|]*)\$\*\//g,"")};Ae.pascalCase=fe.pascalCase=function(t){return t.replace(/(^|[\-\_\s])(\w)/g,function(e,r,i){return i.toUpperCase()})};Ae.camelCase=fe.camelCase=function(t){return t=String(t),t.replace(/([\-\_\s])(\w)/g,function(e,r,i){return i.toUpperCase()})};Ae.dashToCamelCase=fe.dashToCamelCase=function(t){return t=String(t),t.indexOf("-")>=0&&(t=t.replace(/([\-\s])(\w)/g,function(e,r,i){return i.toUpperCase()})),t};Ae.snakeCase=fe.snakeCase=function(e){var e=e.replace(/([\-\s])(\w)/g,"_");return e.replace(/()([A-Z])/g,"_$1",function(r,i,s){return s.toUpperCase()})};Ae.dasherize=fe.dasherize=function(t){return t.replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase()};Ae.setterSym=fe.setterSym=function(t){return fe.dashToCamelCase("set-"+t)};Ae.quote=fe.quote=function(t){return'"'+t+'"'};Ae.singlequote=fe.singlequote=function(t){return"'"+t+"'"};Ae.isValidIdentifier=fe.isValidIdentifier=function(t){return!/[?-\s]/.test(t)&&t[0]!="#"};Ae.toValidIdentifier=fe.toValidIdentifier=function(t){return H_(t)};Ae.fromValidIdentifier=fe.fromValidIdentifier=function(t){return U_(t)};Ae.isSystemIdentifier=fe.isSystemIdentifier=function(t){return q_.indexOf(t[0])>=0};Ae.symbolize=fe.symbolize=function(t,e){return t=String(t),fe.toValidIdentifier(t);return e&&e.tsc(),t;var r=t.charAt(t.length-1);return r=="?"&&(t="is"+t[0].toUpperCase()+t.slice(1,-1)),t.indexOf("-")>=0&&(t=t.replace(/([\-\s])(\w)/g,function(i,s,n){return n.toUpperCase()})),t};Ae.indent=fe.indent=function(t){return String(t).replace(/^/g," ").replace(/\n/g,`
`).replace(/\n\t$/g,`
`)};Ae.bracketize=fe.bracketize=function(t,e){return e===void 0&&(e=!0),e&&(t=`
`+fe.indent(t)+`
`),"{"+t+"}"};Ae.parenthesize=fe.parenthesize=function(t){return"("+String(t)+")"};Ae.unionOfLocations=fe.unionOfLocations=function(){for(var t=arguments,e=t.length,r=new Array(e>0?e:0);e>0;)r[e-1]=t[--e];var i=1/0,s=-1/0;for(let n=0,o=Eu(r),a=o.length,l;n<a;n++)l=o[n],l&&l._loc!=null&&(l=l._loc),l&&l.loc instanceof Function&&(l=l.loc()),l instanceof Array?(i>l[0]&&(i=l[0]),s<l[0]&&(s=l[1])):(typeof l=="number"||l instanceof Number)&&(i>l&&(i=l),s<l&&(s=l));return[i,s]};Ae.locationToLineColMap=fe.locationToLineColMap=function(t){for(var e=t.split(/\n/g),r=[],i,s=0,n=0,o=0;i=t[s];)r[s]=[o,n],i==`
`?(o++,n=0):n++,s++;return r[s]=[o,n],r[s+1]=[o,n],r};Ae.markLineColForTokens=fe.markLineColForTokens=function(t,e){return fe};Ae.parseArgs=fe.parseArgs=function(t,e){var r;e===void 0&&(e={});var i=e.alias||(e.alias={}),s=e.group||(e.group=[]),n=e.schema||{};n.main={};var o={},a={};t=t||process.argv.slice(2);for(var l=null,c=0,u;c<t.length;){var _=t[c];if(c++,u=_.match(/^\-([a-zA-Z]+)(\=\S+)?$/)){l=null;let b=u[1].split("");for(let S=0,y=Eu(b),v=y.length,m;S<v;S++){m=y[S];var f=i[m]||m;b[S]=f,o[f]=!0}b.length==1&&(l=b);continue}else if(u=_.match(/^\-\-([a-z0-9\-\_A-Z]+)(\=\S+)?$/)){var d=!0;f=u[1],f.indexOf("no-")==0&&(f=f.substr(3),d=!1),f=fe.dashToCamelCase(f),u[2]&&(d=u[2].slice(1)),o[f]=d,l=f;continue}else{var g=n[l];l&&n[l]||(l="main"),_.match(/^\d+$/)&&(_=parseInt(_)),d=o[l],d==!0||d==!1?o[l]=_:typeof d=="string"||d instanceof String||typeof d=="number"||d instanceof Number?o[l]=[d].concat(_):d instanceof Array?d.push(_):o[l]=_,g&&g.multi||(l="main")}}for(let b=0,S=Eu(s),y=S.length;b<y;b++){let v=fe.dashToCamelCase(S[b]);for(let m,x=0,k=Object.keys(o),E=k.length,T;x<E;x++)if(T=k[x],m=o[T],T.indexOf(v)==0){let P=T.substr(v.length).replace(/^\w/,function(C){return C.toLowerCase()});P?(o[v]||(o[v]={}),o[v][P]=m):o[v]||(o[v]={})}}return(typeof(r=o.env)=="string"||r instanceof String)&&(o["ENV_"+o.env]=!0),o};Ae.printExcerpt=fe.printExcerpt=function(t,e,r){(!r||r.constructor!==Object)&&(r={});var i=r.hl!==void 0?r.hl:!1,s=r.gutter!==void 0?r.gutter:!0,n=r.type!==void 0?r.type:"warn",o=r.pad!==void 0?r.pad:2,a=t.split(/\n/g),l=fe.locationToLineColMap(t),c=l[e[0]]||[0,0],u=c[0],_=c[1],f=a[u],d=Math.max(0,u-o),g=Math.min(d+o+1+o,a.length);let b=u-d;for(var S=d,y=[];S<g;)y.push(a[S++]);var v=y;return s&&(v=v.map(function(x,k){let E=""+(d+k+1),T;for(;E.length<String(g).length;)E=" "+E;return k==b?(T=" -> "+E+" | "+x,i&&(T=xo.f(i,T))):(T=" "+E+" | "+x,i&&(T=xo.f("gray",T))),T})),v.join(`
`)};Ae.printWarning=fe.printWarning=function(t,e){let r=e.message,i=fe.printExcerpt(t,e.loc,{hl:"whiteBright",type:"warn",pad:1});return r+`
`+i};Ae.identifierForPath=fe.identifierForPath=function(t){let e=G_(t).toString(36);return e[0].match(/\d/)&&(e="z"+e),e};Ae.isPlainObject=fe.isPlainObject=function(t){return typeof t=="object"&&Object.getPrototypeOf(t)==Object.prototype};Ae.deepAssign=fe.deepAssign=function(t,e){for(let r,i=0,s=Object.keys(e),n=s.length,o;i<n;i++){o=s[i],r=e[o];let a=t[o];fe.isPlainObject(a)&&fe.isPlainObject(r)?fe.deepAssign(a,r):t[o]=r}return t}});var Da=ae(ai=>{function Y_(t){return t?t.toArray?t.toArray():t:[]}var Au=ai.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"]],t4=ai.BITWISE_OPERATORS={"|":!0,"&":!0,"!&":!0,"~":!0,"|=":!0,"&=":!0,"~=":!0,"^=":!0,"^":!0,"<<":!0,"<<=":!0,">>":!0,">>=":!0},e4=ai.ASSIGNMENT_OPERATORS={"=":!0,"=?":!0,"??=":!0,"||=":!0,"&&=":!0,"|=":!0,"|=?":!0,"&=":!0,"&=?":!0,"^=":!0,"^=?":!0,"~=":!0,"~=?":!0},Ef=ai.INVERSES={};for(let t=0,e=Au.length,r;t<e;t++)r=Au[t],ll=r[0],ul=r[1],Ef[ul]=ll,Ef[ll]=ul,Au[ll]=ul;var ll,ul,r4=ai.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"],i4=ai.TOK={TERMINATOR:"TERMINATOR",INDENT:"INDENT",OUTDENT:"OUTDENT",DEF_BODY:"DEF_BODY",THEN:"THEN",CATCH:"CATCH"},s4=ai.OPERATOR_ALIASES={and:"&&",or:"||",is:"==",isnt:"!=",isa:"instanceof"},n4=ai.HEREGEX_OMIT=/\s+(?:#.*)?/g,o4=ai.HEREGEX=/^\/{3}([\s\S]+?)\/{3}([a-z]{0,8})(?!\w)/,a4=ai.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},l4=ai.SYSVAR_PREFIX={TAG:"τ",FLIP:"ω",VALUE:"υ",CACHE:"ρ",KEY:"κ",ANY:"φ",B:"Θ",T:"τ",C:"ρ",V:"υ",K:"κ",D:"Δ"},cl=ai.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:"use
`).replace(/\t/g," ")+`
`}toError(){let e=this.range.start,r=this.range.end,i=""+this[So].sourcePath+":"+(e.line+1)+":"+(e.character+1)+": "+this.message,s=new SyntaxError(i),n=this[So].doc.getLineText(e.line),o=[i,n];return o.push(n.replace(/[^\t]/g," ").slice(0,e.character)+"^".repeat(r.character-e.character)),s.stack=`
`+o.join(`
`).replace(/\t/g," ")+`
`,s}raise(){throw this.toError()}}});function X_(t){let e;return t?(e=t.toIterable)?e.call(t):t:[]}function fl(t,e,r=1e5){let i=t;for(;i&&r>0;){if(i.match(e))return i;r--,i=i.prev}return null}function Ru(t,e,r){r===void 0&&(r=0);for(var i=e?[r]:[],s=0;s<t.length;){var n=t.charCodeAt(s);(n===13||n===10)&&(n===13&&s+1<t.length&&t.charCodeAt(s+1)===10&&s++,i.push(r+s+1)),s++}return i}function If(t){var e=t.start,r=t.end;return e.line>r.line||e.line===r.line&&e.character>r.character?new $i(r,e):t instanceof $i?t:new $i(e,r)}function Of(t){return t!=null&&typeof t.text=="string"&&t.range===void 0}function Rf(t){let e=t.split(/\n/),r=[],i={indent:-1,children:[]},s=i,n,o=Date.now();for(let a=0,l=X_(e),c=l.length;a<c;a++){let u=l[a];if(u.match(/^\s*$/))continue;let _=u.match(/^\t*/)[0].length;for(;i.indent>=_;)i=i.parent||s;if(n=u.match(/^(\t*((?:export )?(?:static )?(?:extend )?)(class|tag|def|get|set|prop|attr) )(\@?[\w\-\$\:]+(?:\.[\w\-\$]+)?)/),n){let f=n[3],d=n[4],g=i.name?i.name+".":"",b=n[2].trim().split(/\s+/),S="",y={start:{line:a,character:n[1].length},end:{line:a,character:n[0].length}},v={kind:f,ownName:d,name:g+d,span:y,indent:_,modifiers:b,children:[],parent:i==s?null:i,type:f,data:{},static:b.indexOf("static")>=0,extends:b.indexOf("extend")>=0};v.static&&(v.containerName="static"),v.containerName=n[2]+n[3],f=="tag"&&(n=u.match(/\<\s+([\w\-\$\:]+(?:\.[\w\-\$]+)?)/))&&(v.superclass=n[1]),i.type=="tag"&&(S="```html\n<"+i.name+" "+d+">\n```\n",v.description={kind:"markdown",value:S}),i.children.push(v),i=v,r.push(v)}}return s.all=r,console.log("fast outline",t.length,Date.now()-o),s}var Fa=rr(()=>{Va()});function Nu(t){let e;return t?(e=t.toIterable)?e.call(t):t:[]}function J_(t,e="#"){typeof t=="string"&&(t=t.split(" "));let r=t.slice().sort(function(i,s){return s.length-i.length});return r=r.map(function(i){let s=i.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&");return e.replace("#",s)}),new RegExp("(?:"+r.join("|")+")")}function we(t,e,r,i={}){var s;t==null?t=Lf:t==1?t={next:"@>"}:t==2?t={next:"@>_indent&-_indent"}:typeof t=="string"&&(t={next:t}),e==-1&&(e=Nf),r==-1?r=Nf:r==0&&(i.comment==null?i.comment=!0:i.comment,r={}),t=Object.assign({token:"white.tabs"},t||{}),r=Object.assign({token:"white.tabs"},r||{}),e=Object.assign({token:"@rematch",next:"@pop"},e||{});let n={"$1==$S2 ":t,"$1==$S2":{cases:{"$1==$S6":r,"@default":{token:"@rematch",switchTo:"@*$1"}}},"@default":e};s=0;for(let a of["next","switchTo"]){let l=s++;t[a]&&t[a].indexOf("*")==-1&&(t[a]+="*$1")}let o=[/^(\t*)(?=[^ \t\n])/,{cases:n}];if(i.comment){let a={};for(let l=0,c=Object.keys(n),u=c.length,_,f;l<u;l++){_=c[l],f=n[_];let d=Object.assign({},f);!d.next&&!d.switchTo&&(d.next="@>_comment"),a[_]=d}return[[/^(\t*)(?=#\s|#$)/,{cases:a}],o]}return o}function dl(t){let e=["$S1","$S2","$S3","$S4","$S5","$S6"];if(t.match(/\@(pop|push|popall)/)||(t[0]=="@"&&(t=t.slice(1)),t.indexOf(".")>=0))return t;t=_l(t),t[0]==">"&&(e[1]="$S6 ",t=t.slice(1));for(let r=0,i=Nu(t.split(/(?=[\/\&\=\*])/)),s=i.length;r<s;r++){let n=i[r];n[0]=="&"?n[1]=="-"||n[1]=="_"?e[2]="$S3"+n.slice(1):e[2]="$S3-"+n.slice(1):n[0]=="+"?e[3]="$S4-"+n.slice(1):n[0]=="="?e[3]=n.slice(1):n[0]=="/"?e[4]=n.slice(1):n[0]=="*"?e[5]=n.slice(1):e[0]=n}return e.join(".")}function _l(t){let e=t;return t=t.replace("$/","$S5"),t=t.replace("$F","$S4"),t=t.replace("$&","$S3"),t=t.replace("$I","$S2"),t=t.replace("$T","$S2"),t}function Pu(t,e){if(typeof t=="string"&&(t={token:t}),t&&t.token!=null)t.token=_l(t.token),typeof e=="string"?t.next=e:e&&Object.assign(t,e),t.next&&(t.next=dl(t.next)),t.switchTo&&(t.switchTo=dl(t.switchTo));else if(t&&t.cases){let r={};for(let i=t.cases,s=0,n=Object.keys(i),o=n.length,a,l;s<o;s++){a=n[s],l=i[a];let c=_l(a);r[c]=Pu(l)}t.cases=r}else if(t instanceof Array){let r=[],i=null;for(let s=0,n=Nu(t),o=n.length;s<o;s++){let a=n[s];a[0]=="@"&&s==t.length-1&&i&&(a={next:a}),typeof a=="object"?a.token!=null||a.cases?r.push(i=Object.assign({},a)):Object.assign(i,a):typeof a=="string"&&r.push(i={token:_l(a)})}t=r}if(t instanceof Array)for(let r=0,i=Nu(t),s=i.length;r<s;r++){let n=i[r];n.to
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")n.push({token:a.token+r.tokenPostfix,open:In(r,a.open),close:In(r,a.close)});else throw Se(r,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return r.brackets=n,r.noThrow=!0,r}var zu,Uu=rr(()=>{ju();zu=class{constructor(e){this.regex=new RegExp("");this.action={token:""};this.matchOnlyAtLineStart=!1;this.name="";this.name=e,this.stats={time:0,count:0,hits:0}}setRegex(e,r){let i;if(typeof r=="string")i=r;else if(r instanceof RegExp)i=r.source;else throw Se(e,"rules must start with a match string or regular expression: "+this.name);i.length==2&&i[0]=="\\"&&/[\{\}\(\)\[\]]/.test(i[1])&&(this.string=i[1]),this.matchOnlyAtLineStart=i.length>0&&i[0]==="^",this.name=this.name+": "+i,this.regex=Bu(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")")}setAction(e,r){this.action=Gu(e,this.name,r)}}});var _i,vl,Hu=rr(()=>{_i=class{constructor(e,r,i){this.offset=e|0,this.type=r,this.language=i,this.kind=0,this.mods=0,this.value=null,this.stack=null}toString(){return this.value||""}get span(){return{offset:this.offset,length:this.value?this.value.length:0}}get indent(){return 0}get startOffset(){return this.offset}get endOffset(){return this.offset+(this.value?this.value.length:0)}clone(){let e=new _i(this.offset,this.type,this.language);return e.value=this.value,e.stack=this.stack,e}match(e){if(typeof e=="string")if(e.indexOf(" ")>0)e=e.split(" ");else{let r=this.type.indexOf(e);return e[0]=="."?r>=0:r==0}if(e instanceof Array)for(let r of e){let i=this.type.indexOf(r);if(r[0]=="."?i>=0:i==0)return!0}return e instanceof RegExp?e.test(this.type):!1}},vl=class{constructor(e,r){this.tokens=e,this.endState=r}}});function ja(t,e){return t.split(".")[e]}function s5(t,e){if(!e)return null;e=In(t,e);let r=t.brackets;for(let i of r){if(i.open===e)return{token:i.token,bracketType:1};if(i.close===e)return{token:i.token,bracketType:-1}}return null}var Hf,Yu,To,Us,Ku,Eo,Ao,qu,Io,Wu=rr(()=>{Hu();ju();Hf=10;Yu=class{static create(e,r){return this._INSTANCE.create(e,r)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,r){if(e!==null&&e.depth>=this._maxCacheDepth)return new Us(e,r);let i=Us.getStackElementId(e);i.length>0&&(i+="|"),i+=r;let s=this._entries[i];return s||(s=new Us(e,r),this._entries[i]=s,s)}},To=Yu;To._INSTANCE=new Yu(Hf);Us=class{constructor(e,r){this.parent=e,this.state=r,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let r="";for(;e!==null;)r.length>0&&(r+="|"),r+=e.state,e=e.parent;return r}static _equals(e,r){for(;e!==null&&r!==null;){if(e===r)return!0;if(e.state!==r.state)return!1;e=e.parent,r=r.parent}return e===null&&r===null}get indent(){return this.state.lastIndexOf(" ")-this.state.indexOf(" ")}get scope(){return this.part(2)}get detail(){return this.part(2)}part(e){return this.state.split(".")[e]}equals(e){return Us._equals(this,e)}push(e){return To.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return To.create(this.parent,e)}},Ku=class{static create(e){return this._INSTANCE.create(e)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e){if(e!==null&&e.depth>=this._maxCacheDepth)return new Ao(e);let r=Us.getStackElementId(e),i=this._entries[r];return i||(i=new Ao(e),this._entries[r]=i,i)}},Eo=Ku;Eo._INSTANCE=new Ku(Hf);Ao=class{constructor(e){this.stack=e}clone(){return Eo.create(this.stack)}equals(e){return!(!(e instanceof Ao)||!this.stack.equals(e.stack))}},qu=class{constructor(){this._tokens=[],this._language=null,this._lastToken=new _i(0,"start","imba"),this._lastTokenType=null}enterMode(e,r){this._language=r}emit(e,r,i){this._lastTokenType;let s=new _i(e,r,this._language);return this._lastTokenType=r,this._lastToken=s,this._tokens.push(s),s}finalize(e){return new vl(this._tokens,e)}},Io=class{constructor(e,r){this._modeId=e,this._lexer=r,this._profile=!1}dispose(){}getLoadStatu
:/*%+-`.indexOf(a)>=0?(s="array",o=mc):(s="index",o=yc),new o(e,r,i,s,n)}},Ga=class extends Le{},_c=class extends Ga{},mc=class extends Do{get delimiters(){return this.childNodes.filter(function(e){return e.match("delimiter")})}indexOfNode(e){var r;let i=this.delimiters,s=0;r=0;for(let n of l5(i)){let o=r++;e.offset>n.offset&&s++}return s}},yc=class extends Do{},kl=class extends Le{static[Hs](){return this.prototype[No]=Qf,this}constructor(){super(...arguments),this.prev.datatype=this,this[No]===Qf&&this[Lo]&&this[Lo]()}toString(){return this.value}};kl[Hs]();gc=class extends Le{},vc=class extends Ga{},bc=class extends Le{get isTypeOnly(){return this.start.prev.match("keyword.type")}get sourcePath(){let e=this.childNodes.find(function(r){return r.match("path")});return e==null?void 0:e.innerText}get specifiers(){return this.childNodes.find(function(e){return e.match("specifiers")})}get default(){return this.childNodes.find(function(e){return e.match(".default")})}get namespace(){return this.childNodes.find(function(e){return e.match(".ns")})}},gs={style:$u,array:Do,stylerule:tc,sel:sc,path:uc,value:Zu,tag:cc,forscope:ec,field:ic,type:kl,parens:xl,brackets:Do,object:vc,braces:Ga,specifiers:_c,string:Qu,tagattr:hc,imports:bc,interpolation:gc,tagattrvalue:pc,tagcontent:fc,listener:dc,styleinterpolation:lc,styleprop:ac,stylepropkey:nc,stylevalue:oc,args:xl}});function u5(t,e){let r=Object.getOwnPropertyDescriptors(e);return delete r.constructor,Object.defineProperties(t,r),t}function Er(t){let e;return t?(e=t.toIterable)?e.call(t):t:[]}var xc,kc,t3,e3,r3,Sc,Cn,Tc,qs,Ec=rr(()=>{Fa();Xu();Fa();wc();wl();Co();Va();xc=Symbol.for("#ins"),kc=Symbol.for("#del"),t3=Symbol.for("#version"),e3=Symbol.for("#multiline"),r3=Symbol.for("#significant"),Sc=Symbol.for("#body"),Cn=Symbol.for("#lexed"),Tc=class{get node(){return this.scope&&this.scope.start==this?this.scope:this.pops?this.pops:this}get nextNode(){var e;return(e=this.next)==null?void 0:e.node}get prevNode(){var e;return(e=this.prev)==null?void 0:e.node}};u5(_i.prototype,Tc.prototype);qs=class{static tmp(e){return new this("file://temporary.imba","imba",0,e)}static from(e,r,i,s){return new this(e,r,i,s)}constructor(e,r,i,s){this.uri=e,this.languageId=r,this.version=i,this.content=s,this.connection=null,this.lineTokens=[],this.isLegacy=r=="imba1"||e&&e.match(/\.imba1$/),this.head=this.seed=new _i(0,"eol","imba"),this.initialState=On.getInitialState(),this.seed.stack=On.getInitialState(),this.history=[],this.lexer=On,this.versionToHistoryMap={},this.versionToHistoryMap[i]=-1,s&&s.match(/^\#[^\n]+imba1/m)&&(this.isLegacy=!0)}log(...e){return console.log(...e)}get lineCount(){return this.lineOffsets.length}get lineOffsets(){return this._lineOffsets||(this._lineOffsets=Ru(this.content,!0))}getText(e=null){if(e){let r=this.offsetAt(e.start),i=this.offsetAt(e.end);return this.content.substring(r,i)}return this.content}getLineText(e){let r=this.lineOffsets[e],i=this.lineOffsets[e+1];return this.content.substring(r,i).replace(/[\r\n]/g,"")}positionAt(e){if(e instanceof zs)return e;typeof e=="object"&&(e=e.offset),e=Math.max(Math.min(e,this.content.length),0);let r=this.lineOffsets,i=0,s=r.length;if(s===0)return new zs(0,e,e,this.version);for(;i<s;){let o=Math.floor((i+s)/2);r[o]>e?s=o:i=o+1}let n=i-1;return new zs(n,e-r[n],e,this.version)}offsetAt(e){if(e.offset)return e.offset;let r=this.lineOffsets;if(e.line>=r.length)return this.content.length;if(e.line<0)return 0;let i=r[e.line],s=e.line+1<r.length?r[e.line+1]:this.content.length;return e.offset=Math.max(Math.min(i+e.character,s),i)}rangeAt(e,r=e){return new $i(this.positionAt(e),this.positionAt(r))}overwrite(e,r){return this.version=r||this.version+1,this.content=e,this._lineOffsets=null,this.invalidateFromLine(0),this}update(e,r){r==null&&(r=this.version+1);let i=[],s=!1;i[xc]="",i[kc]="";for(let a=0,l=Er(e),c=l.length;a<c;a++){let u=l[a];if(Of(u)){this.overwrite(u.text,r),i.push([0,this.content.length,u.text]),s=!0;continue}let _=If(u.range),f=this.offsetAt(_.start),d=this.offsetAt(_.end);u.range=_,u.offset=f,u.length=d-f,_.start
`)>=0&&(i[e3]=!0,n&&!n[e3]&&(i[r3]=!0,i[Sc]=this.content)),this.versionToHistoryMap[r]=this.history.length-1,this.updated(e,r)}get lastSignificantVersion(){let e=this.history.length;for(;e>0;){let r=this.history[--e];if(r&&r[r3])return r[t3]}return null}editsSinceVersion(e){let r=this.versionToHistoryMap[e],i=[];for(let s=0,n=Er(this.history.slice(r+1)),o=n.length;s<o;s++){let a=n[s];i.push(...a)}return i}contentAtVersion(e){let r=this.versionToHistoryMap[e],i=this.history[r];return i[Sc]!=null?i[Sc]:null}offsetAtVersion(e,r,i=this.version,s=!1){let n=this.versionToHistoryMap[r],o=this.versionToHistoryMap[i],a=e,l=!1;if(n<o)for(;n<o;){let c=this.history[++n];for(let u=0,_=Er(c),f=_.length;u<f;u++){let[d,g,b]=_[u];d>a||(s&&(d-=1),a>d&&a>d+g&&(a+=b.length-g))}}else if(o<n)for(;o<n;){let c=this.history[n--];for(let u=0,_=Er(c),f=_.length;u<f;u++){let[d,g,b]=_[u];d>a||a>d&&a>d+g&&(a-=b.length-g)}}return a}historicalOffset(e,r){return this.offsetAtVersion(e,this.version,r,!0)}applyEdit(e,r,i){this.content=this.content.substring(0,e.range.start.offset)+e.text+this.content.substring(e.range.end.offset,this.content.length);let s=e.range.start.line;this.invalidateFromLine(s)}updated(e,r){return this.version=r,this}invalidateFromLine(e){return this.head=this.seed,this}after(e,r){let i=this.tokens.indexOf(e);if(r){for(;i<this.tokens.length;){let s=this.tokens[++i];if(s&&this.matchToken(s,r))return s}return null}return this.tokens[i+1]}matchToken(e,r){return r instanceof RegExp?e.type.match(r):typeof r=="string"?e.type==r:!1}before(e,r,i=0){let s=this.tokens.indexOf(e)+i;if(r){for(;s>0;){let n=this.tokens[--s];if(this.matchToken(n,r))return n}return null}return this.tokens[s-1]}getTokenRange(e){return{start:this.positionAt(e.offset),end:this.positionAt(e.offset+e.value.length)}}getTokensInScope(e){let r=this.tokens.indexOf(e.start),i=e.end?this.tokens.indexOf(e.end):this.tokens.length,s=r,n=[];for(;s<i;){let o=this.tokens[s++];o.scope&&o.scope!=e?(n.push(o.scope),s=o.scope.endIndex+1):n.push(o)}return n}getSymbols(){var e;return this.astify(),(e=this[Cn]).symbols||(e.symbols=this.tokens.map(function(r){return r.symbol}).filter(function(r){return r}).filter(function(r,i,s){return s.indexOf(r)==i}))}getImportedSymbols(){return this.getSymbols().filter(function(e){return e.importedΦ})}getImportNodes(){return this.tokens.filter(function(r){return r.match("push._imports")}).map(function(r){return r.scope})}getNodesInScope(e,r=!1){let i=e.start,s=e.end;r?s=s.next:i=i.next;let n=[];for(;i&&i!=s;){if(i.scope&&i.scope!=e){n.push(i.scope),i=i.scope.end.next;continue}else i.type!="white"&&n.push(i);i=i.next}return n}getTokenAtOffset(e,r=!1){return this.tokenAtOffset(e)}getSemanticTokens(e=Ft.Scoped){let r=this.parse(),i=[];for(let s=0,n=Er(r),o=n.length;s<o;s++){let a=n[s],l=a.symbol;if(!(l&&(!e||l.flags&e)))continue;let c=Ro[l.semanticKind],u=a.mods|l.semanticFlags;i.push([a.offset,a.value.length,c,u])}return i}getEncodedSemanticTokens(){let e=this.getSemanticTokens(),r=[],i=0,s=0;for(let n=0,o=Er(e),a=o.length;n<a;n++){let l=o[n],c=this.positionAt(l[0]),u=c.line-i,_=u?c.character:c.character-s;r.push(u,_,l[1],l[2],l[3]),i=c.line,s=c.character}return r}getDestructuredPath(e,r=[],i=null){if(e.context.type=="array")return this.getDestructuredPath(e.context.start,r,i),r.push(e.context.indexOfNode(e)),r;let s=e.value;return e.prev.match("operator.assign.key-value")&&(s=e.prev.prev.value),e.context.type=="object"&&(this.getDestructuredPath(e.context.start,r,i),r.push(s)),r}tokenAtOffset(e){let r=this.tokens[0];for(;r;){let i=r.next;if(r.offset>=e)return r.prev;if(r.end&&r.end.offset<e)r=r.end;else if(i)r=i;else return r}return r}patternAtOffset(e,r=/[\w\-\.\%]/){let i=e,s=e,n=this.content;for(;i>0&&r.test(this.content[i-1]);)i--;for(;r.test(this.content[s+1]||"");)s++;return[n.slice(i,s+1),i,s]}adjustmentAtOffset(e,r=1){let[i,s,n]=this.patternAtOffset(e),[o,a=""]=i.split(/[\d\.]+/),l=parseFloat(i.slice(o.length).slice(0,a.length?-a.length:1e3));return Number.isNaN(l)?null:(l+=r,[s+o.length,i.length-o.length-a.length,String(l)])}contextAtOffset(e
`);return r.slice(i+1)}varsAtOffset(e,r=!1){let i=this.tokenAtOffset(e),s=[],n=i.context.scope,o={};for(;n;){for(let a=0,l=Er(Object.values(n.varmap)),c=l.length;a<c;a++){let u=l[a];u.globalΦ&&!r||o[u.name]||(!u.node||u.node.offset<e)&&(s.push(u),o[u.name]=u)}n=n.parent}return s}getOutline(e=null){var r,i,s,n;if(this.isLegacy){let y=Rf(this.content);for(let v=0,m=Er(y.all),x=m.length;v<x;v++){let k=m[v];r=k.parent,delete k.parent,k.path=k.name,k.name=k.ownName,e&&e(k,y.all)}return y}this.ensureParsed();let o=Date.now(),a=[],l={children:[]},c=l,u=null,_={},f=new Set,d=null;function g(y,v){return y instanceof ts&&(f.add(y),y={name:y.name,kind:y.kind}),_=y,y.token=v,y.children||(y.children=[]),y.span||(y.span=v.span),y.name||(y.name=v.value),a.push(y),c.children.push(y)}function b(y){return _.children||(_.children=[]),_.parent||(_.parent=c),c=_,c.end=y}function S(y){return c=c.parent}for(let y=0,v=Er(this.tokens),m=v.length;y<m;y++){let x=v[y],k=x.symbol,E=x.scope;if(x.type=="key")g({kind:vr.Key},x);else if(k){if(k.parameterΦ)continue;f.has(k)||g(k,x),k.body&&(d=k.body.start)}else if(E&&E.type=="do"){let T=this.textBefore(x.offset-3).replace(/^\s*(return\s*)?/,"");T+=" callback",g({kind:vr.Function,name:T},x.prev),d=x}else E&&E.type=="tag"&&g({kind:vr.Field,name:E.outline},x);x==d&&b(x.end),x==c.end&&S()}for(let y=0,v=Er(a),m=v.length;y<m;y++){let x=v[y];if(x.span){let k=x.span.length;x.span.start=this.positionAt(x.span.offset),x.span.end=k?this.positionAt(x.span.offset+k):x.span.start}e&&e(x,a),i=x.parent,delete x.parent,s=x.end,delete x.end,n=x.token,delete x.token}return l}getContextAtOffset(e,r=!1){return this.contextAtOffset(e)}ensureParsed(){return this.parse(),this}reparse(){return this.invalidateFromLine(0),this.parse()}profileReparse(){let e=Date.now(),r=this.reparse();return console.log("took",Date.now()-e),r}tokenize(e=!1){var r;let i=this[Cn]||{lines:[],version:-1};if(i.version==this.version&&!e)return i;let s=this.content;this.isLegacy&&(s=s.replace(/\@\w/g,function(f){return"¶"+f.slice(1)}),s=s.replace(/\w\:(?=\w)/g,function(f){return f[0]+"."}),s=s.replace(/(do)(\s?)\|([^\|]*)\|/g,function(f,d,g,b){return d+"("+(g||"")+b+")"}));let n=this.lineOffsets,o=[],l=this.seed,c=Date.now(),u=this.initialState;this[Cn]={version:this.version,lines:[],tokens:o};let _={};this[Cn].cache=_;for(let f=0,d=Er(i.lines),g=d.length;f<g;f++){let b=d[f];(_[r=b.text]||(_[r]=[])).push(b)}for(let f=0,d=Er(n),g=d.length;f<g;f++){let b=d[f],y=n[f+1]||s.length,v=s.slice(b,y),m=u,x=_[v],k=x&&x.filter(function(P){return P.startState==m}),E=k&&(k.find(function(P){return P.offset==b})||k[0]),T=null;if(E&&(E.offset==b,T=E.clone(b)),!T){let P=On.tokenize(v,m,b);T=new Oo({offset:b,text:v,startState:m,endState:P.endState,tokens:P.tokens})}for(let P=0,C=Er(T.tokens),O=C.length;P<O;P++){let L=C[P];o.push(L)}this[Cn].lines.push(T),u=T.endState}return this[Cn]}get tokens(){return this.astify(),this[Cn].tokens}getTokens(e=null){return this.tokens}astify(){let e=this.tokenize();if(e.root)return this;let r={"]":"[",")":"(","}":"{",">":"<"},i={"[":"]","(":")","{":"}","<":">"},s=/[\w\$\)\]\?]/,n=Date.now(),o=null,a=e.root=new Rn(this,this.seed,null,"root"),l=this.content,c=console.log.bind(console),u=null,_=null,f=null,d=null,g=0;for(let b=0,S=Er(e.tokens),y=S.length;b<y;b++){let v=S[b],m=v.type.split("."),x=v.value,k=e.tokens[b+1],[E,T,P]=m,C=m[m.length-1],O=m[m.length-2],L=null,q=0;if(E=="ivar"&&(x=v.value="@"+x.slice(1)),d&&(d.next=v),v.prev=d,v.context=a,E=="("&&d){let M=l[v.offset-1]||"";s.test(M)&&(a=v.scope=gs.args.build(this,v,a,"args",m))}if(E=="operator"&&(v.op=v.value.trim()),E=="keyword"&&(He[T]&&(g|=He[T]),(x=="let"||x=="const")&&(_=v,f=null)),E=="entity"&&(v.mods|=g,g=0),E=="push"){let M=T,W=T.lastIndexOf("_"),ee=W>=0?Le:zi;W>=0?(M=M.slice(W+1),ee=gs[M]||Le):gs[M]&&(ee=gs[M]),a=v.scope=new ee(this,v,a,M,m),u&&(u.body=a,a.symbol=u,u=null),a==a.scope&&(_=null,f=null)}else E=="pop"?(T=="value"&&(f=null),a=a.pop(v)):(T=="open"||i[T])&&gs[E]?a=v.scope=gs[E].build(this,v,a,E,m):C=="open"&&(L=gs[O])?a=v.scope=L.build(this,v,a,O,m):(C=="close"&&
`),a.push({newText:n,range:this.rangeAt(o,o)}),l}}});var Nc={};ms(Nc,{basename:()=>u3,default:()=>Rc,delimiter:()=>a3,dirname:()=>l3,extname:()=>c3,isAbsolute:()=>Oc,join:()=>s3,normalize:()=>Ic,relative:()=>n3,resolve:()=>Sl,sep:()=>o3});function i3(t,e){for(var r=0,i=t.length-1;i>=0;i--){var s=t[i];s==="."?t.splice(i,1):s===".."?(t.splice(i,1),r++):r&&(t.splice(i,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function Sl(){for(var t="",e=!1,r=arguments.length-1;r>=-1&&!e;r--){var i=r>=0?arguments[r]:"/";if(typeof i!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!i)continue;t=i+"/"+t,e=i.charAt(0)==="/"}return t=i3(Cc(t.split("/"),function(s){return!!s}),!e).join("/"),(e?"/":"")+t||"."}function Ic(t){var e=Oc(t),r=h5(t,-1)==="/";return t=i3(Cc(t.split("/"),function(i){return!!i}),!e).join("/"),!t&&!e&&(t="."),t&&r&&(t+="/"),(e?"/":"")+t}function Oc(t){return t.charAt(0)==="/"}function s3(){var t=Array.prototype.slice.call(arguments,0);return Ic(Cc(t,function(e,r){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))}function n3(t,e){t=Sl(t).substr(1),e=Sl(e).substr(1);function r(c){for(var u=0;u<c.length&&c[u]==="";u++);for(var _=c.length-1;_>=0&&c[_]==="";_--);return u>_?[]:c.slice(u,_-u+1)}for(var i=r(t.split("/")),s=r(e.split("/")),n=Math.min(i.length,s.length),o=n,a=0;a<n;a++)if(i[a]!==s[a]){o=a;break}for(var l=[],a=o;a<i.length;a++)l.push("..");return l=l.concat(s.slice(o)),l.join("/")}function l3(t){var e=Ac(t),r=e[0],i=e[1];return!r&&!i?".":(i&&(i=i.substr(0,i.length-1)),r+i)}function u3(t,e){var r=Ac(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r}function c3(t){return Ac(t)[3]}function Cc(t,e){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)e(t[i],i,t)&&r.push(t[i]);return r}var c5,Ac,o3,a3,Rc,h5,Tl=rr(()=>{c5=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Ac=function(t){return c5.exec(t).slice(1)};o3="/",a3=":";Rc={extname:c3,basename:u3,dirname:l3,sep:o3,delimiter:a3,relative:n3,join:s3,isAbsolute:Oc,normalize:Ic,resolve:Sl};h5="ab".substr(-1)==="b"?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}});var h3={};ms(h3,{SourceMapper:()=>Mo});var Mo,Lc=rr(()=>{Mo=class{static strip(e){return e.replace(/\/\*\%([\w\|]*)\$\*\//g,"")}static run(e,r={}){return{code:e.replace(/\/\*\%([\w\|]*)\$\*\//g,""),map:null,toString:function(){return this.code}}}}});var El={};ms(El,{Compilation:()=>vs,CompilationResult:()=>Dc});var f3,p3,Pc,Dc,vs,Al=rr(()=>{Ec();Va();Tl();Lc();f3=Symbol.for("#__init__"),p3=Symbol.for("#doc"),Pc={TOKENIZE:1,REWRITE:2,PARSE:4,TRAVERSE:8,COMPILE:16},Dc=class{},vs=class{static[f3](){return this.current=void 0,this}static error(e){var r,i;return(i=(r=this.current)==null?void 0:r.addDiagnostic)==null?void 0:i.call(r,"error",e)}static warn(e){var r,i;return(i=(r=this.current)==null?void 0:r.addDiagnostic)==null?void 0:i.call(r,"warning",e)}static info(e){var r,i;return(i=(r=this.current)==null?void 0:r.addDiagnostic)==null?void 0:i.call(r,"info",e)}static deserialize(e,r={}){return new vs("",r).deserialize(e)}constructor(e,r){this.sourceCode=e,this.sourcePath=r.sourcePath,this.options=r,this.flags=0,this.js="",this.css="",this.result={},this.diagnostics=[],this.tokens=null,this.ast=null}deserialize(e){let r;try{r=JSON.parse(e)}catch(i){throw console.log("failed",e,this.options),i}return this.rawResult=r,this.deserialized=r,this}serialize(){if(this.rawResult)return JSON.stringify(this.rawResult,null,2)}tokenize(){var e;if((this.flags&(e=Pc.TOKENIZE))==0&&(this.flags|=e,!0))try{vs.current=this,this.lexer.reset(),this.tokens=this.lexer.tokenize(this.sourceCode,this.options,this),this.tokens=this.rewriter.rewrite(this.tokens,this.options,this)}catch{}return this.tokens}parse(){var e;if(this.tokenize(),(this.flags&(e=Pc.PARSE))==0&&(this.flags|=e,!0)&&!this.erroredΦ){vs.current=this;try{this.ast=this.parser.parse(this.tokens,this)}catch{}}return this}compile(){var e;return this.parse(),(this.flags&(e=Pc.COMPILE))==0
import './`+Rc.basename(this.sourcePath)+".css'"),i}return{js:this.js}}addDiagnostic(e,r){r.severity||(r.severity=e);let i=new pl(r,this);return this.diagnostics.push(i),i}get erroredΦ(){return this.errors.length>0}get errors(){return this.diagnostics.filter(function(e){return e.severity==Ma.Error})}get warnings(){return this.diagnostics.filter(function(e){return e.severity==Ma.Warning})}get info(){return this.diagnostics.filter(function(e){return e.severity==Ma.Information})}get doc(){return this[p3]||(this[p3]=new qs(null,"imba",0,this.sourceCode))}positionAt(e){return this.doc.positionAt(e)}offsetAt(e){return this.doc.offsetAt(e)}rangeAt(e,r){return this.doc.rangeAt(e,r)}toString(){return this.js}raiseErrors(){if(this.errors.length)throw this.errors[0].toError();return this}};vs[f3]()});var Il=ae(Vc=>{function d3(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=Object.create(e.prototype),t.__super__=t.prototype.__super__=e.prototype,t.prototype.initialize=t.prototype.constructor=t}var Mc=ko(),_3=new WeakMap;function Cr(t,e){var r;this.error=t,this._options=e||{},this.severity=this._options.severity||"error";let i=t.message;(r=i.match(/Unexpected '([\w\-]+)'/))&&r[1]=="TERMINATOR"&&(i="Unexpected newline"),this.message=i,this.sourcePath=t.sourcePath,this.line=t.line}d3(Cr,Error);Vc.ImbaParseError=Cr;Cr.wrap=function(t){return new this(t)};Object.defineProperty(Cr.prototype,"_options",{get:function(){return _3.get(this)},configurable:!0});Object.defineProperty(Cr.prototype,"_options",{set:function(t){return _3.set(this,t)},configurable:!0});Cr.prototype.set=function(t){this._options||(this._options={});for(let e,r=0,i=Object.keys(t),s=i.length,n;r<s;r++)n=i[r],e=t[n],this._options[n]=e;return this};Cr.prototype.start=function(){for(var t=this._options,e=t.pos-1,r=t.tokens&&t.tokens[e];r&&(r._loc==-1||r._loc==0||r._len==0);)r=t.tokens[--e];return r};Object.defineProperty(Cr.prototype,"token",{get:function(){if(this._token)return this._token;for(var t=this._options,e=t.pos-1,r=t.tokens&&t.tokens[e];r&&(r._loc==-1||r._loc==0||r._len==0);)r=t.tokens[--e];return this._token=r},configurable:!0});Cr.prototype.desc=function(){var t=this._options;let e=this.message;return t.token&&t.token._loc==-1?"Syntax Error":e};Cr.prototype.loc=function(){var t;return this._loc||(t=this.start())&&t.region&&t.region()};Cr.prototype.toJSON=function(){var t=this._options,e=this.start();return{warn:!0,message:this.desc(),loc:this.loc()}};Cr.prototype.toNativeError=function(){let t=new SyntaxError("hello");return t.fileName=this._sourcePath,t.message=this.message,t.stack=this.excerpt({colors:!1,details:!0}),t.lineNumber=this.lineNumber,t.columnNumber=this.columnNumber,t};Cr.prototype.excerpt=function(t){(!t||t.constructor!==Object)&&(t={});var e=t.gutter!==void 0?t.gutter:!0,r=t.colors!==void 0?t.colors:!1,i=t.details!==void 0?t.details:!0;try{var s=this._code,n=this.loc(),o=s.split(/\n/g),a=Mc.locationToLineColMap(s),l=a[n[0]]||[0,0],c=l[0],u=l[1],_=o[c];this.lineNumber=c+1,this.columnNumber=u;var f=Math.max(0,c-2),d=Math.min(f+5,o.length);let v=c-f;var g=f,b=function(m){return m};if(r){let m=this.severity=="warn"?"yellow":"red";(typeof r=="string"||r instanceof String)&&(m=r),b=function(x){return Mc.ansi[m](Mc.ansi.bold(x))}}for(var S=[];g<d;)S.push(_=o[g++]);var y=S;return e&&(y=y.map(function(m,x){let k=""+(f+x+1);for(;k.length<String(d).length;)k=" "+k;return x==v?" -> "+k+" | "+m:" "+k+" | "+m})),y[v]=b(y[v]),i&&y.unshift(b(this.message)),y.join(`
`)+`
`}catch{return""}};Cr.prototype.prettyMessage=function(){var t;return t=this.excerpt()};function za(){return Cr.apply(this,arguments)}d3(za,Cr);Vc.ImbaTraverseError=za;za.prototype.loc=function(){return this._loc};za.prototype.excerpt=function(){var t=za.prototype.__super__.excerpt.apply(this,arguments);return t+`
---
`+this.error.stack}});var E3=ae(Rl=>{function p5(t){return t&&(t.len instanceof Function?t.len():t.length)||0}function Ar(t,e){return e&&e.indexOf?e.indexOf(t):[].indexOf.call(t,e)}function Ln(t){return t?t.toArray?t.toArray():t:[]}function f5(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=Object.create(e.prototype),t.__super__=t.prototype.__super__=e.prototype,t.prototype.initialize=t.prototype.constructor=t}var Vo=Pa(),Nn=Vo.Token,Fc=Da().INVERSES,Z4=(Al(),Zi(El)).Compilation,Q4=Il(),d5=ko(),_5=["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"],m3={",":1,"\n":1,")":1,"]":1,"}":1,">":1," ":1},m5=["extend","local","global","prop"],y5=Rl.ALL_KEYWORDS=["true","false","null","this","self","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","const","await","import","and","or","is","isnt","not","yes","no","isa","case","nil","module","export","static","extend"],g5=["case","default","function","void","with","const","enum","native"],$4=_5.concat(g5),v5=/^((\$|##|#|@@|@|\%)[\$\wA-Za-z_\-\x7f-\uffff][$\w\x7f-\uffff]*(\-[$\w\x7f-\uffff]+)*[\?]?|[$A-Za-z_][$\w\x7f-\uffff]*(\-[$\w\x7f-\uffff]+)*[\?]?)([^\n\S]*:)?/,b5=/^import\s+(\{?[^\"\'\}]+\}?)(?=\s+from\s+)/,w5=/^(\<)(?=[A-Za-z\#\.\%\$\[\{\@\>\(])/,y3=/^(\w[\w\d]*:)?(\w[\w\d]*)(-[\w\d]+)*/,x5=/^#((\w[\w\d]*)(-[\w\d]+)*)/,k5=/^([%\$]{1,2})([\(])/,S5=/^\:((([\*\@$\w\x7f-\uffff]+)+([\-\\\:][\w\x7f-\uffff]+)*)|==|\<=\>)/,T5=/^\#[\w\-]+/,E5=/^(\-?\d*\.?\d+)([A-Za-z]+|\%)?(?![\d\w])/,A5=/^[\w\-\$]*\w[\w\-\$]*/,I5=/^url\(([^\)]*)\)/,g3=/^(\^?[\w\-\$\@\.\!\#\^]+)(?=\:([^\:]|$)|\s*\=)/,O5=/^0x[\da-f_]+|^0b[01_]+|^0o[\d_]+|^\-?(?:\d[_\d]*)\.?\d[_\d]*(?:e[+-]?\d+)?|^\-?\d*\.?\d+(?:e[+-]?\d+)?/i,R5=/^("""|''')([\s\S]*?)(?:\n[^\n\S]*)?\1/,C5=/^(?:[-=]=>|!&|[&|~^]?=\?|[&|~^]=|\?\?=|===|---|->|=>|\/>|!==|\*\*=?|[-+*\/%<>&|^!?=]=|=<|>>>=?|([-+:])\1|([&|<>])\2=?|\?\.|\?\?|\.{2,3}|\*(?=[a-zA-Z\_]))/,v3=/^[^\n\S]+/,N5=/^###([^#][\s\S]*?)(?:###[^\n\S]*|(?:###)?$)/,L5=/^\/\*([\s\S]*?)\*\//,b3=/^(\s*)((#[ \t\!]|\/\/(?!\/))(.*)|#[ \t]?(?=\n|$))+/,P5=/^[-=]=>/,D5=/^(?:\n[^\n\S]*)+/,M5=/^'[^\\']*(?:\\.[^\\']*)*'/,w3=/^(\/(?![\s=])[^[\/\n\\]*(?:(?:\\[\s\S]|\[[^\]\n\\]*(?:\\[\s\S][^\]\n\\]*)*])[^[\/\n\\]*)*\/)([a-z]{0,8})(?!\w)/,x3=/^\/{3}([\s\S]+?)\/{3}([a-z]{0,8})(?!\w)/,k3=/\n/g,V5=/\n+([^\n\S]*)/g,F5=/\*\//,j5=/^\s*(?:,|\??\.(?![.\d])|(?:&&|\|\||and|or)[\n\s])/,B5=/^\$\w+\$/,G5=/^\$\d$/,z5=["-=","+=","/=","*=","%=","||=","&&=","?=","??=","<<=",">>=",">>>=","&=","^=","|=","~=","=<","**=","=?","~=?","|=?","&=?","^=?"],S3=["!","~","NEW","TYPEOF","DELETE"],U5=["&&","||","??","and","or"],H5=["<<",">>",">>>"],q5=["===","!==","==","!=","<",">","<=",">=","===","!==","&","|","^","!&"],Y5=["*","/","%","∪","∩","√"],K5=["IN","OF","INSTANCEOF","ISA"],W5=["NUMBER","REGEX","BOOL","TRUE","FALSE","++","--","]"],X5=["NUMBER","REGEX","BOOL","TRUE","FALSE","++","--","]",")","}","THIS","SELF","IDENTIFIER","STRING"],J5=["\\",".","UNARY","MATH","EXP","+","-","SHIFT","RELATION","COMPARE","THROW","EXTENDS"],Z5=["IDENTIFIER","SYMBOLID","STRING","REGEX",")","]","INDEX_END","THIS","SUPER","TAG_END","IVAR","SELF","NEW","ARGVAR","SYMBOL","RETURN","INDEX_END","CALL_END","DECORATOR","@"],Q5=["IDENTIFIER","SYMBOLID","STRING","REGEX",")","]","THIS","SUPER","TAG_END","IVAR","SELF","NEW","ARGVAR","SYMBOL","RETURN","BANG","NUMBER","BOOL","TAG_SELECTOR","ARGUMENTS","}","TAG_TYPE","TAG_REF","INDEX_END","CALL_END"],$5=["INDENT","OUTDENT","TERMINATOR"];function T3(t,e,r){return this.message=t,this.file=e,this.line=r,this}f5(T3,SyntaxError);Rl.LexerError=T3;var li=function(t,e){return e===void 0&&(e=0),t[t.length-e-1]},t9=function(t,e){return t.split(e).length-1},e9=function(t,e){for(var r="";e>0;)e%2==1&&(r+=t),t+=t,e>>=1;return r},es=Vo.typ,Fo=Vo.
`+t,t.match(/^\s*$/g)))return[];t=t.replace(/\r/g,"").replace(/[\t ]+$/g,"")}if(this._last=null,this._lastTyp=null,this._lastVal=null,this._script=r,this._code=t,this._opts=e,this._locOffset=e.loc||0,this._platform=e.platform||e.target,this._indentStyle=" ",(i=t.match(/^([\ \t]*)[^\n\s\t]/))&&(this._state.gutter=i[1]),e.gutter!==void 0&&(this._state.gutter=e.gutter),this._script&&!e.inline&&(this._script.tokens=this._tokens),this.parse(t),e.inline||this.closeIndentation(),this._ends.length&&this.error("missing "+this._ends.pop()),this._platform=="tsc")for(let s=0,n=Ln(this._tokens),o=n.length,a;s<o;s++)a=n[s],a._type=="SYMBOLID"&&(a._type="IDENTIFIER");return this._tokens};Jt.prototype.parse=function(t){var e=0,r=0;for(this._loc=this._locOffset+e;this._chunk=t.slice(e);){let i=this._context;i&&i.pop&&i.pop.test(this._chunk)&&this.popEnd(),r=i&&i.lexer&&i.lexer.call(this)||this._end=="TAG"&&this.tagDefContextToken()||this._inTag&&this.tagContextToken()||this._inStyle2&&this.lexStyleBody()||this.basicContext(),e+=r,this._loc=this._locOffset+e}};Jt.prototype.basicContext=function(){return this.selectorToken()||this.symbolToken()||this.identifierToken()||this.whitespaceToken()||this.lineToken()||this.commentToken()||this.heredocToken()||this.tagToken()||this.stringToken()||this.numberToken()||this.regexToken()||this.literalToken()||0};Jt.prototype.moveCaret=function(t){return this._loc+=t};Jt.prototype.context=function(){return this._ends[this._ends.length-1]};Jt.prototype.inContext=function(t){var e=this._contexts[this._contexts.length-1];return e&&e[t]};Jt.prototype.pushEnd=function(t,e){let r=this._context;return this._ends.push(t),this._contexts.push(this._context=e||{}),this._end=t,this.refreshScope(),e&&(e.closeType=="STYLE_END"||e.style)&&(e.lexer=this.lexStyleBody,e.style=!0,this._inStyle++),r&&r.style&&t!="}"&&(e.lexer=this.lexStyleBody,e.style=!0),e&&e.id&&(e.start=new Nn(e.id+"_START",t,this._last.region()[1],0),this._tokens.push(e.start)),this};Jt.prototype.popEnd=function(t){var e=this._ends.pop();this._end=this._ends[this._ends.length-1];var r=this._context;return r&&r.start&&(r.end=new Nn(r.closeType||r.id+"_END",e,this._last.region()[1],0),r.end._start=r.start,r.start._end=r.end,this._tokens.push(r.end)),r&&(r.closeType=="STYLE_END"||r.style)&&this._inStyle--,this._contexts.pop(),this._context=this._contexts[this._contexts.length-1],this.refreshScope(),[e,r]};Jt.prototype.refreshScope=function(){var t=this._ends[this._ends.length-1],e=this._ends[this._ends.length-2];return this._inTag=t=="TAG_END"||e=="TAG_END"&&t=="OUTDENT"};Jt.prototype.queueScope=function(t){return this._scopes[this._indents.length]=t,this};Jt.prototype.popScope=function(t){return this._scopes.pop(),this};Jt.prototype.getScope=function(){return this._scopes[this._indents.length-1]};Jt.prototype.scope=function(t,e){var r=this._ends.push(this._end=t);return this._contexts.push(e||null),t};Jt.prototype.closeSelector=function(){if(this._end=="%")return this.token("SELECTOR_END","%",0),this.pair("%")};Jt.prototype.openDef=function(){return this.pushEnd("DEF")};Jt.prototype.closeDef=function(){if(this.context()=="DEF"){var t=li(this._tokens);if(es(t)=="TERMINATOR"){let e=this._tokens.pop();this.token("DEF_BODY","DEF_BODY",0),this._tokens.push(e)}else this.token("DEF_BODY","DEF_BODY",0);this.pair("DEF")}};Jt.prototype.tagContextToken=function(){let t=this._chunk[0],e=this._chunk[1],r=/^([A-Za-z\_\-\$\%\#][\w\-\$]*(\:[A-Za-z\_\-\$]+)*)/.exec(this._chunk);if(r){let i=r[1],s="TAG_LITERAL",n=r[0].length;return i=="self"&&this._lastVal=="<"&&(s="SELF"),t=="$"&&(this._lastTyp=="TAG_TYPE"||this._lastTyp=="TAG_START")&&(s="TAG_REF"),t=="%"&&(s="MIXIN"),t=="#"&&(s="TAG_SYMBOL_ID",i.length==1)?0:(this.token(s,i,n),n)}if(t=="/"&&e==">")return this.token("TAG_END","/>",2),this.pair("TAG_END"),2;if(t=="%"||t==":"||t=="."||t=="@")return this.token("T"+t,t,1),t=="."&&(!e||m3[e])&&this._platform=="tsc"&&this.token("TAG_LITERAL","$CARET$",0,1),1;if(t==" "||t==`
`||t==" "){let i=/^[\n\s\t]+/.exec(this._chunk);return this.token("TAG_WS",i[0],i[0].length),i[0].length}else if(t=="="&&this._chunk[1]!=">")return this.token("=","=",1),this.pushEnd("TAG_ATTR",{id:"VALUE",pop:/^([\s\n\>]|\/\>)/}),1;return 0};Jt.prototype.tagDefContextToken=function(){var t;if(t=y3.exec(this._chunk))return this.token("TAG_TYPE",t[0],t[0].length),t[0].length;if(t=x5.exec(this._chunk)){var e=t[0];return this.token("TAG_ID",e,e.length),e.length}return this._chunk[0]==`
`&&this.pair("TAG"),0};Jt.prototype.findTypeAnnotation=function(t){for(var e=[],r=0,i=[],s=/[\=\n\ \t\.\,\:\+]/;r<t.length;){var n=t.charAt(r);let o=e[0],a=o=='"'||o=="'";if(n&&n==o)e.shift();else{if(!o&&(n==")"||n=="]"||n=="}"||n==">"))break;if(n=="(")e.unshift(")");else if(n=="[")e.unshift("]");else if(n=="{")e.unshift("}");else if(n=="<")e.unshift(">");else if(n=='"')e.unshift('"');else if(n=="'")e.unshift("'");else if(!o&&s.test(n))break}r++}return r==0?null:t.slice(0,r)};Jt.prototype.findBalancedSelector=function(t){for(var e=[],r=0,i=[];r<t.length-1;){var s=t.charAt(r);let o=e[0],a=o=='"'||o=="'";if(s&&s==o)e.shift();else if(!a&&(s==")"||s=="]"||s=="}")){console.log("out of balance!!");break}else s=="/"?i.unshift([r,1,":"]):s=="("&&!a?e.unshift(")"):s=="["&&!a?e.unshift("]"):s=='"'?e.unshift('"'):s=="'"&&e.unshift("'");if(!o&&(s=="="||s==`
`||s=="{"))break;if(!o&&s==" "){let l=t.slice(r+1);if(g3.exec(l)||b3.exec(l))break}r++}if(r==0)return null;let n=t.slice(0,r);if(i.length){n=n.split("");for(let o=0,a=i.length;o<a;o++)n.splice.apply(n,i[o]);n=n.join("")}return n};Jt.prototype.lexStyleRule=function(t,e){t===void 0&&(t=0),e===void 0&&(e=!1);let r=t?this._chunk.slice(t):this._chunk,i=this.findBalancedSelector(r);if(i||e){let s=i?i.length:0;this.token("CSS_SEL",i||"",s,t);let n=this._last;return r[s]=="="&&s++,this._indents.push(1),this._outdebt=this._indebt=0,this.token("INDENT","1",0,1),this.pushEnd("OUTDENT",{lexer:this.lexStyleBody,opener:n,style:!0}),this._indent++,s}return 0};Jt.prototype.lexStyleBody=function(){if(this._end=="%")return 0;let t=this._chunk[0];var e;let r=g3.exec(this._chunk),i=this._lastTyp;if(!r&&this._chunk.match(/^([\%\*\w\&\$\>\/\.\[\@\!]|\#[\w\-]|\:\:)/)&&(i=="TERMINATOR"||i=="INDENT")&&this.findBalancedSelector(this._chunk))return this.lexStyleRule(0);if(r)return this.token("CSSPROP",r[0],r[0].length),r[0].length;if(t[0]=="#"&&(e=T5.exec(this._chunk)))return this.token("COLOR",e[0],e[0].length),e[0].length;if(t=="/"&&!this._last.spaced)return this.token("/",t,1),1;if(e=E5.exec(this._chunk)){let s=e[0].length,n="NUMBER";return e[2]=="%"?n="PERCENTAGE":e[2]&&(n="DIMENSION"),this._lastTyp=="COMPARE"&&this._last.spaced,this.token(n,e[0],s),s}else if(e=I5.exec(this._chunk)){let s=e[0].length;return this.token("CSSURL",e[0],s),e[0].length}else if(e=A5.exec(this._chunk)){let s="CSSIDENTIFIER",n=e[0],o=n.length;return e[0].match(/^\-\-/)?s="CSSVAR":this._last&&!this._last.spaced&&(i=="}"||i==")")&&(s="CSSUNIT"),this._chunk[o]=="("&&(s="CSSFUNCTION"),this.token(s,n,o),o}else if(this._last&&!this._last.spaced&&(i=="}"||i==")")&&t=="%")return this.token("CSSUNIT",t,1),1;return 0};Jt.prototype.importsToken=function(){var t;return(t=b5.exec(this._chunk))?(this.token("IMPORTS",t[1],t[1].length,7),t[0].length):0};Jt.prototype.tagToken=function(){var t,e;if(!(t=w5.exec(this._chunk)))return 0;var e=Ln(t),r=e[0],i=e[1],s=e[2];if(i=="<"){if(this.token("TAG_START","<",1),this.pushEnd(Fc.TAG_START),t=y3.exec(this._chunk.substr(1,40))){let n=this._chunk[t[0].length+1];if(t[0]!="self"&&n!="{"&&n!="-")return this.token("TAG_TYPE",t[0],t[0].length,1),r.length+t[0].length}else this._chunk[1]==">"&&this.token("TAG_TYPE","fragment",0,0);if(s){if(s.substr(0,1)=="{")return i.length;this.token("TAG_NAME",r.substr(1),0)}}return r.length};Jt.prototype.selectorToken=function(){var o,t;if(this._end=="%"){for(var e=this._chunk[0],r=this._context,i=0,s="",n=!1;e=this._chunk[i++];)if(e==")"&&r.parens==0){n=!0;break}else if(e=="(")r.parens++,s+="(";else if(e==")")r.parens--,s+=")";else{if(e=="{")break;s+=e}return s&&this.token("SELECTOR_PART",s,i-1),n?(this.token("SELECTOR_END",")",1,i-1),this.pair("%"),i):i-1}if(!(t=k5.exec(this._chunk)))return 0;var o=Ln(t),a=o[0],l=o[1],c=o[2];return c=="("?(this.token("SELECTOR_START",l,l.length+1),this.pushEnd("%",{parens:0}),l.length+1):l=="%"?this.context()=="%"?1:(this.token("SELECTOR_START",l,l.length),this.pushEnd("%",{open:!0}),l.length):0};Jt.prototype.inTag=function(){var t=this._ends.length;if(t>0){var e=this._ends[t-1],r=t>1?this._ends[t-2]:e;return e=="TAG_END"||r=="TAG_END"&&e=="OUTDENT"}return!1};Jt.prototype.isKeyword=function(t){var e;if(this._lastTyp=="ATTR"||this._lastTyp=="PROP"||this._lastTyp=="DEF"||t=="when"&&this._lastTyp=="CONST")return!1;if((t=="get"||t=="set")&&(e=this._chunk.match(/^[gs]et ([\$\w\-]+|\[)/))){let s=this._contexts[this._contexts.length-1]||{},n=s.opener&&this._tokens[this._tokens.indexOf(s.opener)-1];if(Ar(this._lastTyp,["TERMINATOR","INDENT"])>=0&&n&&(n._type=="="||n._type=="{"))return!0}if((t=="guard"||t=="alter"||t=="watch")&&this.getScope()=="PROP"||t=="css")return!0;if(t=="attr"||t=="prop"||t=="get"||t=="set"||t=="css"||t=="constructor"||t=="declare"){var r=this.getScope(),i=r=="CLASS"||r=="TAG"||r=="EXTEND";if(t=="declare")return i&&Ar(this._lastTyp,["INDENT","TERMINATOR","DECORATOR"])>=0;if(t=="constructor")return i&&Ar(this._lastTyp,["INDENT","TERMINATOR","DECORATOR"])>=0;if(i)ret
`),t[0].length;if(t=b3.exec(this._chunk)){e=t[0].length,i=t[1],r=t[2];let c=t[4]||"";r[0]=="#"&&(c=" "+c),s=li(this._tokens);var o=s&&es(s),a="//"+c;return this.parseMagicalOptions(a),this._last&&this._last.spaced&&(a=" "+a),a.match(/^\/\/ \@(type|param)/)?a="/**"+c+"*/":a.match(/^\/\/ \<(reference)/)&&(a="///"+c),o&&o!="INDENT"&&o!="TERMINATOR"||!o?this.token("TERMINATOR",a,e):o=="TERMINATOR"?Ol(s,Fo(s)+a):o=="INDENT"?this.addLinebreaks(1,a):this.token(n,r.substr(2),e),e}if(!(t=N5.exec(this._chunk)))return 0;r=t[0];var l=t[1];return l?(this.token("HERECOMMENT",this.sanitizeHeredoc(l,{herecomment:!0,indent:Array(this._indent+1).join(" ")}),r.length),this.token("TERMINATOR",`
`)):(this.token("HERECOMMENT",r,r.length),this.token("TERMINATOR",`
`)),this.moveHead(r),r.length};Jt.prototype.regexToken=function(){var i,t,e,r;if(this._chunk.charAt(0)!="/")return 0;if(t=x3.exec(this._chunk))return e=this.heregexToken(t),this.moveHead(t[0]),e;if(r=li(this._tokens),r&&Ar(es(r),r.spaced?W5:X5)>=0||!(t=w3.exec(this._chunk)))return 0;var i=Ln(t),s=i[0],n=i[1],o=i[2];return this.token("REGEX",""+n+o,s.length),s.length};Jt.prototype.heregexToken=function(t){var e,e=Ln(t),r=e[0],i=e[1],s=e[2];return this.token("REGEX",r,r.length),r.length};Jt.prototype.lineToken=function(){var t,e;if(!(e=D5.exec(this._chunk)))return 0;var r=e[0],i=this.moveHead(r);this._seenFor=!1;var s=li(this._tokens,1);let n=r.substr(r.lastIndexOf(`
`)+1);var o=this.unfinished();if(/^\n#\s/.test(this._chunk))return this.addLinebreaks(1),0;this._state.gutter==null&&(this._state.gutter=n),(t=this._state.gutter||this._opts.gutter)&&(n.indexOf(t)==0?n=n.slice(t.length):this._chunk[r.length]===void 0||this.error("incorrect indentation"));var a=n.length;if(this._opts.dropIndentation)return a;if(a>0){this._indentStyle||(this._opts.indent=this._indentStyle=n,this._indentRegex=new RegExp(n,"g"));let _=0,f=0,d=this._loc;for(;;)if(n.indexOf(this._indentStyle,f)==f)_++,f+=this._indentStyle.length;else{if(f==n.length)break;{this._loc+=r.length-n.length;let b=this._loc;this.token("INDENT",n,n.length),this.error("Use tabs for indentation",{offset:b+f,length:n.length-f})}}a=_}if(a-this._indebt==this._indent)return this._scopes.length=this._indents.length,o?this.suppressNewlines():this.newlineToken(i,r),r.length;if(a>this._indent){if(o)return this._indebt=a-this._indent,this.suppressNewlines(),r.length;if(this.inTag())return r.length;var l=a-this._indent+this._outdebt;this.closeDef();var c=this._scopes[this._indents.length],u=li(this._tokens);u&&es(u)=="TERMINATOR"?(Ys(u,"INDENT"),u._meta||(u._meta={pre:Fo(u),post:""}),u.scope=c):(this.token("INDENT",""+l,0),this._last.scope=c),this._indents.push(l),this.pushEnd("OUTDENT",{opener:this._last}),this._outdebt=this._indebt=0,this.addLinebreaks(i)}else{this._indebt=0;let _=this._indent-a,f=this._indent,d=this._indentStyle==" ",g=r.replace().split(`
`),b=[],S=g.length,y=0;for(;S>0;){let k=g[--S],E=d?k.length:k.replace(this._indentRegex," ").length;E>y&&(y=E),b[S]=y}b[0]=f;let v=0,m=[],x="";for(let k=0,E=Ln(g),T=E.length;k<T;k++){let P=b[k];for(;f>P;)x?(this.terminatorToken(x),x=""):this.terminatorToken(""),_--,this.outdentToken(1,!0),f--;x+=`
`+E[k]}for(x&&this.terminatorToken(x);_>0;)this.outdentToken(1,!0),_--}return this._indent=a,r.length};Jt.prototype.outdentToken=function(t,e,r){for(var i=0;t>0;){var s=this._indents.length-1;if(this._indents[s]==null)t=0;else if(this._indents[s]==this._outdebt)t-=this._outdebt,this._outdebt=0;else if(this._indents[s]<this._outdebt)this._outdebt-=this._indents[s],t-=this._indents[s];else{i=this._indents.pop()-this._outdebt,t-=i,this._outdebt=0,e||this.addLinebreaks(1);let o=this.pair("OUTDENT");if(this.token("OUTDENT",""+i,0),o[1]&&o[1].opener){let a=o[1].opener;this._last._opener=a,a._closer=this._last,a._type=="CSS_SEL"&&this.token("CSS_END","",0)}}}for(i&&(this._outdebt-=t);this.lastTokenValue()==";";)this._tokens.pop();this.lastTokenType()=="TERMINATOR"||e||this.token("TERMINATOR",`
`,0),this._scopes.length=this._indents.length,this.closeDef();var n=this.context();return(n=="%"||n=="TAG"||n=="IMPORT"||n=="EXPORT")&&this.pair(n),this};Jt.prototype.whitespaceToken=function(t){var e,r,i;if(!((e=v3.exec(this._chunk))||(r=this._chunk.charAt(0)===`
`)))return 0;if(i=li(this._tokens),i)return e?(i.spaced=!0,e[0].length):(i.newLine=!0,0)};Jt.prototype.moveHead=function(t){var e=t9(t,`
`);return e};Jt.prototype.terminatorToken=function(t,e){return this._lastTyp=="TERMINATOR"?this._last._value+=t:this.token("TERMINATOR",t,e)};Jt.prototype.addLinebreaks=function(t,e){var r;if(!e&&t==0)return this;var i=this._last;if(e||(t==1?r=`
`:t==2?r=`
`:t==3?r=`
`:r=e9(`
`,t)),i){var s=i._type,n=Fo(i);if(s=="INDENT"){var o=i._meta||(i._meta={pre:"",post:""});return o.post+=e||r,this}else if(s=="TERMINATOR")return Ol(i,n+(e||r)),this}this.token("TERMINATOR",e||r,0)};Jt.prototype.newlineToken=function(t,e){this.addLinebreaks(t,e),this.closeDef();var r=this.context();return(r=="TAG"||r=="IMPORT"||r=="EXPORT")&&this.pair(r),this};Jt.prototype.suppressNewlines=function(){return this.value()==="\\"&&this._tokens.pop(),this};Jt.prototype.literalToken=function(){var t,e;(t=C5.exec(this._chunk))?(e=t[0],P5.test(e)&&this.tagParameters()):e=this._chunk.charAt(0);var r=this._ends[this._ends.length-1],i=this._ends[this._ends.length-2],s=r=="TAG_END"||r=="OUTDENT"&&i=="TAG_END",n=e,o=li(this._tokens),a=o&&es(o),l=o&&Fo(o),c=e.length;if(e=="="&&o&&(l=="||"||l=="&&"))return Ys(o,"COMPOUND_ASSIGN"),Ol(o,l+"="),o._len=this._loc-o._loc+e.length,e.length;if(e=="ƒ"&&(n="DO"),e=="|"){if(l=="(")return this.token("DO","DO",0),this.pushEnd("|"),this.token("BLOCK_PARAM_START",e,1),c;if(a=="DO")return this.pushEnd("|"),this.token("BLOCK_PARAM_START",e,1),c;if(r=="|")return this.token("BLOCK_PARAM_END",e,1),this.pair("|"),c}e===";"&&(this._seenFor=!1,n="TERMINATOR"),e=="("&&a=="T."||e=="["&&s?n="STYLE_START":e==="("&&s&&a!="="&&o.spaced?this.token(",",","):e==="->"&&s?(n="TAG_END",this.pair("TAG_END")):e==="=>"&&s?(n="TAG_END",this.pair("TAG_END")):e==="/>"&&s?(n="TAG_END",this.pair("TAG_END")):e===">"&&s?(n="TAG_END",this.pair("TAG_END")):e==="TERMINATOR"&&r==="DEF"?this.closeDef():e==="&"&&this.context()=="DEF"?n="BLOCK_ARG":e=="---"||e=="-"&&a=="TERMINATOR"&&this._chunk.match(/^\-\s*\n/)?n="SEPARATOR":e=="*"&&this._chunk.charAt(1).match(/[A-Za-z\_\@\[]/)&&(o.spaced||[",","(","[","{","|",`
`," "].indexOf(l)>=0)?n="SPLAT":e=="*"&&(this.context()=="IMPORT"||this.context()=="EXPORT")?n=""+this.context()+"_ALL":e==","&&this.context()=="IMPORT"?n="IMPORT_COMMA":e=="!"&&o&&!o.spaced&&(["]",")"].indexOf(l)>=0||a=="IDENTIFIER"||a=="SYMBOLID"||a=="SUPER")?n="BANG":e=="&"&&this._chunk.match(/^\&\s*[,\)\}\]]/)?n="DO_PLACEHOLDER":e=="**"?n="EXP":e=="%"&&(a=="NUMBER"||a==")")&&!o.spaced?n="UNIT":Ar(e,Y5)>=0?n="MATH":Ar(e,q5)>=0?n="COMPARE":Ar(e,z5)>=0?n="COMPOUND_ASSIGN":Ar(e,S3)>=0?n="UNARY":Ar(e,H5)>=0?n="SHIFT":Ar(e,U5)>=0?n="LOGIC":o&&!o.spaced&&(e=="{"&&a=="IDENTIFIER"&&(n="{{"),e==="("&&Ar(a,Z5)>=0?n="CALL_START":e==="("&&a=="DO"?n="BLOCK_PARAM_START":e==="["&&Ar(a,Q5)>=0&&(n="INDEX_START",a=="?"&&Ys(o,"INDEX_SOAK")));let u=null;switch(e){case"(":case"{":case"[":{this.pushEnd(Fc[e],{closeType:Fc[n],i:this._tokens.length});break}case")":case"}":case"]":{let _=this.pair(e);if(_&&_[1].closeType){n=_[1].closeType;let f=this._tokens[_[1].i];u=this._tokens[_[1].i]}break}}if(e=="\\"){n="TYPE";let _=this.findTypeAnnotation(this._chunk.slice(1));_&&(e=e+_)}if(e==".."&&!o.spaced&&(n="?.",e="?."),e==":"&&r=="TAG_RULE"&&(n="T:"),(n=="-"||n=="+")&&/\w|\(|\$/.test(this._chunk[1])&&(!o||o.spaced)&&(n=n+n+n),this.token(n,e,e.length),u&&(u._closer=this._last),this._platform=="tsc"){let _=this._chunk[1]||"";e=="."&&(!_||m3[_])?this.token("IDENTIFIER","$CARET$",0,1):e=="@"&&(!_||/[^\$\@\-\.\w]/.test(_))}return e.length};Jt.prototype.sanitizeHeredoc=function(t,e){var r,i=e.indent,s=e.herecomment;if(s){if(F5.test(t)&&this.error("block comment cannot contain '*/' starting"),t.indexOf(`
`)<=0)return t}else for(var n;r=V5.exec(t);){var o=r[1];(i===null||0<(n=o.length)&&n<i.length)&&(i=o)}return i&&(t=t.replace(RegExp("\\n"+i,"g"),`
`)),s||(t[0]==`
`&&(e.offset=i.length+1),t=t.replace(/^\n/,"")),e.realIndent=i,t};Jt.prototype.tagParameters=function(){var t;if(this.lastTokenType()!=")")return this;var e=[],r=this._tokens,i=r.length;for(Ys(r[--i],"PARAM_END");t=r[--i];){var s=es(t);switch(s){case")":{e.push(t);break}case"(":case"CALL_START":{if(e.length)e.pop();else return s==="("?(Ys(t,"PARAM_START"),this):this;break}}}return this};Jt.prototype.closeIndentation=function(){for(;;){var t=this.context();if(t=="TAG"||t=="IMPORT"||t=="EXPORT")this.pair(t);else break}return this.closeDef(),this.closeSelector(),this.outdentToken(this._indent,!1,0)};Jt.prototype.balancedString=function(t,e){for(var r,i,s,n=[e],o=0;o<t.length-1;){switch(o++,i=t.charAt(o),i){case"\\":{o++;continue}case e:{if(n.pop(),!n.length){var a=t.slice(0,o+1);return a}e=n[n.length-1];continue}}e==="}"&&(i=='"'||i=="'"||i=="`")?n.push(e=i):e==="}"&&i==="/"&&(r=x3.exec(t.slice(o))||w3.exec(t.slice(o)))?o+=r[0].length-1:(e==="}"&&i==="{"||e==='"'&&i==="{"||e==="`"&&i==="{")&&n.push(e="}"),s=i}return this.error("missing "+n.pop()+", starting")};Jt.prototype.interpolateString=function(t,e){e===void 0&&(e={});for(var r=e.heredoc,i=e.quote,s=e.regex,n=e.prefix,o=e.indent,a=this._loc,l=[],c=0,u=-1,_=e.offset||1,f=t.length,d,g,b=!1;d=t[u+=1];){if(d==="\\"){u+=1;continue}if(d===`
`&&o&&(_+=o.length),!!(t[u]=="{"&&(g=this.balancedString(t.slice(u),"}")))){if(b=!0,c<u){var S=new Nn("NEOSTRING",this.escapeStr(t.slice(c,u),r,i),this._loc+c+_,u-c);l.push(S)}l.push(new Nn("{{","{",this._loc+u+_,1));var y=g.slice(1,-1);if(y=y.replace(/^[^\n\S]+/,""),y.length){var v=0,m=this._loc+u+(g.length-y.length)-1,x=new Jt().tokenize(y,{inline:!0,rewrite:!1,loc:m+_},this._script);x[0]&&es(x[0])=="TERMINATOR"&&x.shift(),x.length&&l.push.apply(l,x)}u+=g.length-1,l.push(new Nn("}}","}",this._loc+u+_,1)),c=u+1}}if(u>=c&&c<t.length&&l.push(new Nn("NEOSTRING",this.escapeStr(t.slice(c),r,i),this._loc+c+_,t.length-c)),s)return l;if(!l.length)return this.token("NEOSTRING",'""');for(let k=0,E=l.length;k<E;k++)this._tokens.push(l[k]);return l};Jt.prototype.balancedSelector=function(t,e){var r,i,s=[e];for(let n=t.length,o=1,a=n-o;a>0?o<n:o>n;a>0?o++:o--){switch(i=t.charAt(o)){case"\\":{o++;continue}case e:{if(s.pop(),!s.length)return t.slice(0,o+1);e=s[s.length-1];continue}}e==="}"&&i===")"?s.push(e=i):(e==="}"&&i==="{"||e===")"&&i==="{")&&s.push(e="}"),r=i}return this.error("missing "+s.pop()+", starting")};Jt.prototype.pair=function(t){var e=li(this._ends);if(t!=e){e!=="OUTDENT"&&this.error("unmatched "+t,{length:t.length});var r=li(this._indents);return this._indent-=r,this.outdentToken(r,!0,0),this.pair(t)}return this.popEnd()};Jt.prototype.token=function(t,e,r,i){this._lastTyp=t,this._lastVal=e;var s=this._last=new Nn(t,e,this._loc+(i||0),r||0);this._tokens.push(s)};Jt.prototype.lastTokenType=function(){var t=this._tokens[this._tokens.length-1];return t?es(t):"NONE"};Jt.prototype.lastTokenValue=function(){var t=this._tokens[this._tokens.length-1];return t?t._value:""};Jt.prototype.tokid=function(t,e){var r;return(r=li(this._tokens,t))?(e&&Ys(r,e),es(r)):null};Jt.prototype.value=function(t,e){var r;return(r=li(this._tokens,t))?(e&&Ol(r,e),Fo(r)):null};Jt.prototype.unfinished=function(){return j5.test(this._chunk)&&(!this._context||!this._context.style)?!0:J5.indexOf(this._lastTyp)>=0&&this._platform!="tsc"};Jt.prototype.escapeLines=function(t,e){return t.replace(k3,e?"\\n":"")};Jt.prototype.makeString=function(t,e,r){return t?(t=t.replace(/\\([\s\S])/g,function(i,s){return s==`
`||s==e?s:i}),t=t.replace(RegExp(""+e,"g"),"\\$&"),e+this.escapeLines(t,r)+e):e+e};Jt.prototype.error=function(t,e){e===void 0&&(e={});let r=e.offset||this._loc;throw this._script.addDiagnostic("error",{message:t,source:e.source||"imba-lexer",range:e.range||this._script.rangeAt(r,r+(e.length||p5(this)))}).toError()}});var L3=ae(N3=>{function jc(t,e){return e&&e.indexOf?e.indexOf(t):[].indexOf.call(t,e)}function r9(t){return t?t.toArray?t.toArray():t:[]}var Nr=Pa(),Cl=Nr.Token,Uc=Da(),Nl=Uc.INVERSES,O3=Uc.BALANCED_PAIRS,e6=Uc.TOK,mi="TERMINATOR",Ir="INDENT",jo="OUTDENT",Bc="THEN",i9="CATCH",A3={_type:"EOF",_value:""},Hc=function(t){var e={};for(let r=0,i=r9(t),s=i.length;r<s;r++)e[i[r]]=1;return e},s9=[")","]","}","STYLE_END","OUTDENT","CALL_END","PARAM_END","INDEX_END","BLOCK_PARAM_END","STRING_END","}}","TAG_END","CATCH","WHEN","ELSE","FINALLY"],n9=Hc(s9),R3={"(":1,"[":1,"{":1,"{{":1,INDENT:1,CALL_START:1,PARAM_START:1,INDEX_START:1,BLOCK_PARAM_START:1,STRING_START:1,TAG_START:1},C3={")":1,"]":1,"}":1,"}}":1,OUTDENT:1,CALL_END:1,PARAM_END:1,INDEX_END:1,BLOCK_PARAM_END:1,STRING_END:1,TAG_END:1},o9=["STYLE_START"],a9=["STYLE_START"],l9={ELSE:1,TRY:1,FINALLY:1,THEN:1,BLOCK_PARAM_END:1,DO:1,BEGIN:1,CATCH_VAR:1},u9={TERMINATOR:!0,CATCH:!0,FINALLY:!0,ELSE:!0,OUTDENT:!0,LEADING_WHEN:!0},Gc={IDENTIFIER:1,TYPE:1,SYMBOLID:1,SUPER:1,THIS:1,SELF:1,TAG_END:1,IVAR:1,CVAR:1,ARGVAR:1,BREAK:1,CONTINUE:1,RETURN:1,INDEX_END:1,"]":1,BANG:1},zc={SELECTOR:1,IDENTIFIER:1,SYMBOLID:1,NUMBER:1,STRING:1,SYMBOL:1,JS:1,REGEX:1,NEW:1,CLASS:1,IF:1,AWAIT:1,UNLESS:1,TRY:1,SWITCH:1,THIS:1,BOOL:1,TRUE:1,FALSE:1,NULL:1,UNDEFINED:1,UNARY:1,SUPER:1,IVAR:1,ARGVAR:1,SELF:1,"[":1,"(":1,"{":1,"--":1,"++":1,"---":1,"+++":1,"#":1,TAG_START:1,PARAM_START:1,SELECTOR_START:1,STRING_START:1,IDREF:1,SPLAT:1,DO:1,BLOCK_ARG:1,FOR:1,CONTINUE:1,BREAK:1,LET:1,VAR:1,CONST:1,CSS:1,ENV_FLAG:1},c9=["+","-"],h9=["{","[",",","BLOCK_PARAM_END","DO"],p9=Hc(h9),f9=["CLASS","IF","UNLESS","TAG","WHILE","FOR","UNTIL","CATCH","FINALLY","MODULE","LEADING_WHEN","STRUCT"],d9=Hc(f9),_9={POST_IF:!0,POST_UNLESS:!0,POST_FOR:!0,WHILE:!0,UNTIL:!0,WHEN:!0,BY:!0,LOOP:!0,TERMINATOR:!0,DEF_BODY:!0},I3=0;function je(){this._tokens=[],this._options={},this._len=0,this._starter=null}N3.Rewriter=je;je.prototype.reset=function(){return this._starter=null,this._len=0,this};je.prototype.tokens=function(){return this._tokens};je.prototype.rewrite=function(t,e){e===void 0&&(e={}),this.reset(),this._tokens=t,this._options=e,this._platform=e.platform||e.target;for(var r=0,i=t.length;r<i-1;){var s=t[r];if(s._type=="DEF_BODY"){var n=t[r+1];n&&n._type==mi&&(s._type="DEF_EMPTY")}r++}return this.step("all"),I3&&console.log(I3),this._tokens};je.prototype.all=function(){return this.step("ensureFirstLine"),this.step("removeLeadingNewlines"),this._platform=="tsc"&&this.step("addPlaceholderIdentifiers"),this.step("removeMidExpressionNewlines"),this.step("tagDefArguments"),this.step("closeOpenTags"),this.step("addImplicitIndentation"),this.step("tagPostfixConditionals"),this.step("addImplicitBraces"),this.step("addImplicitParentheses")};je.prototype.step=function(t){this[t]()};je.prototype.scanTokens=function(t){for(var e=this._tokens,r=0;r<e.length;)r+=t.call(this,e[r],r,e);return!0};je.prototype.detectEnd=function(t,e,r,i){i===void 0&&(i={});for(var s=this._tokens,n=0,o,a,l;t<s.length;){if(o=s[t],n==0&&e.call(this,o,t,s,i))return r.call(this,o,t,s,i);if(!o||n<0)return r.call(this,o,t-1,s,i);a=o._type,R3[a]?n+=1:C3[a]&&(n-=1),t+=1}return t-1};je.prototype.ensureFirstLine=function(){var t=this._tokens[0];(!t||t._type===mi)&&this._tokens.unshift(Nr.token("BODYSTART","BODYSTART"))};je.prototype.addPlaceholderIdentifiers=function(){let t=/^([\,\]\)\}]|\}\})$/;return this.scanTokens(function(e,r,i){var s=i[r-1]||A3,n=i[r+1]||A3;if(s._type=="="||s._type==":"){if(e._type===mi&&n._type!="INDENT"||e._type==","||e._type=="DEF_BODY")return i.splice(r,0,new Cl("IDENTIFIER","$CARET$",e._loc,0)),2}else if(s._type=="."&&(e._type===mi&&n._type!="INDENT"||t.test(e._value)))return i.splice(r,0,new Cl("IDENTIFIER","$CARET$",e._loc,0)),2
`+di.showPosition()+`
Expecting `+vu.join(", ")+", got '"+wu+"'":wo="Unexpected "+(oi==Na?"end of input":"'"+wu+"'"),Gi&&Gi.addDiagnostic("error",{message:wo,source:"imba-parser",range:Gi.rangeAt(An,xu)}).raise(),R.parseError(wo,{lexer:di,text:di.match,token:wu,offset:An,length:xu-An,start:{offset:An},end:{offset:xu},line:di.yylineno,expected:vu,recoverable:Bs!==!1})}if(Ca==3){if(oi===Na||bo===Na)throw new Error(wo||"Parsing halted while starting to recover from another error.");mu=di.yytext}if(Bs===!1)throw new Error(wo||"Parsing halted. No suitable error recovery rule available.");b_(Bs),bo=oi==il?null:oi,oi=il,js=cr[cr.length-1],Ji=vo[js]&&vo[js][il],Ca=3}for(var x_=this.symbols_,ff=this.productions_;;){js=cr[cr.length-1],(oi===null||typeof oi>"u")&&(oi=x_[di.lex()]||Na),Ji=vo[js]&&vo[js][oi];t:(typeof Ji>"u"||!Ji.length||!Ji[0])&&w_();switch(Ji[0]){case 1:cr.push(oi),cr.push(Ji[1]),h.push(di.yytext),oi=null,bo?(oi=bo,bo=null):(mu=di.yytext,Ca>0&&Ca--);break;case 2:if(nl=ff[Ji[1]][1],gu.$=h[h.length-nl],yu=this.performAction(gu,mu,sl,Ji[1],h),typeof yu<"u")return yu;for(;nl>0;)cr.pop(),cr.pop(),h.pop(),nl--;cr.push(ff[Ji[1]][0]),pf=vo[cr[cr.length-2]][cr[cr.length-1]],cr.push(pf),h.push(gu.$);break;case 3:return!0}}return!0}};function _u(){this.yy={}}return _u.prototype=hf,hf.Parser=_u,new _u}();typeof _f<"u"&&typeof Ua<"u"&&(Ua.parser=Ll,Ua.Parser=Ll.Parser,Ua.parse=function(){return Ll.parse.apply(Ll,arguments)})});var F3=ae(V3=>{function Pl(t){return t?t.toArray?t.toArray():t:[]}var Dl=(Tl(),Zi(Nc)),m9=ko(),D3=5,M3=1<<D3,y9=M3-1,g9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Qr(t,e){this._script=t,this._options=e||{},this._sourcePath=this._options.sourcePath,this._sourceRoot=this._options.sourceRoot,this._targetPath=this._options.targetPath,this._maps=[],this._map="",this._js=""}V3.SourceMap=Qr;Qr.prototype.result=function(t){return this._result};Qr.prototype.setResult=function(t){return this._result=t,this};Qr.prototype.source=function(){return this._source};Qr.prototype.options=function(){return this._options};Qr.prototype.sourceCode=function(){return this._script.sourceCode};Qr.prototype.sourceName=function(){return Dl.basename(this._sourcePath)};Qr.prototype.targetName=function(){return Dl.basename(this._targetPath)};Qr.prototype.sourceFiles=function(){return[this.sourceName()]};Qr.prototype.parse=function(){var t=this,e=/\/\*\%([\w\|]*)?\$\*\//,r=/^(.*?)\/\*\%([\w\|]*)\$\*\//,i=t._script.js,s=t._script.js.split(/\n/g),n=t._options.debug,o=t.sourceCode(),a=m9.locationToLineColMap(o),l="";t._locs=[],t._maps=[],t._names=[];var c=[],u={},_={},f,d=0;for(let S=0,y=Pl(s),v=y.length,m;S<v;S++){m=y[S];var g=0,b=-1;for(t._maps[S]=[];m.match(e);)m=m.replace(r,function(x,k,E){var T;if(E=="")return k;let P=E.split("|"),C=parseInt(P[0]),O=P[1]&&parseInt(P[1]);var L=a[C];if(!L)return k;let q=L[0]+1,M=L[1]+1;if(b!=k.length){b=k.length;var W=[[q,M],[S+1,b+1]];t._maps[S].push(W)}let ee=[d+b,C];if(t._locs.push(ee),O)if(T=u[O]){T[1]=ee[0],T[3]=ee[1];let nt=T.join("|");if(_[nt])u[O]=[];else{_[nt]=!0;let Pt=o.slice(T[2],T[3]);T.START&&(T.START[2]=Pt,t._names.indexOf(Pt)<0&&t._names.push(Pt))}}else u[O]=[ee[0],null,ee[1],null];return k});d+=m.length+1,s[S]=m}if(t._script.js=s.join(`
`),t._script.locs={map:a,generated:t._locs,spans:Object.values(u)},n){for(let v=0,m=Pl(t._script.locs.spans),x=m.length,k;v<x;v++)if(k=m[v],k[1]!=null){let E=t._script.js.slice(k[0],k[1]).split(`
`),T=o.slice(k[2],k[3]).split(`
`);k.push(E[0]),k.push(T[0])}let S={0:"₀",1:"₁",2:"₂",3:"₃",4:"₄",5:"₅",6:"₆",7:"₇",8:"₈",9:"₉","|":"₌"},y=function(v,m){return"["+m+"]"};t._script.js=t._script.js+`
/*
`+i.replace(/\/\*\%([\w\|]*)?\$\*\//g,y).replace(/\/\*/g,"**").replace(/\*\//g,"**")+`
*/`}return t};Qr.prototype.generate=function(){this.parse();var t=1,e=1,r=1,i="";for(let l=0,c=Pl(this._maps),u=c.length,_;l<u;l++){_=c[l],t=1;for(let f=0,d=Pl(_),g=d.length,b;f<g;f++){b=d[f],f!=0&&(i+=",");var s=b[0],n=b[1];i+=this.encodeVlq(n[1]-t),t=n[1],i+=this.encodeVlq(0),i+=this.encodeVlq(s[0]-e),e=s[0],i+=this.encodeVlq(s[1]-r),r=s[1]}i+=";"}var o=this._targetPath&&Dl.relative(Dl.dirname(this._targetPath),this._sourcePath),a={version:3,file:this.sourceName().replace(/\.imba/,".js")||"",sourceRoot:this._sourceRoot||"",sources:[o||this._sourcePath],sourcesContent:[this.sourceCode()],names:[],mappings:i};return this._options.sourcemap=="inline"&&(a.file=this.sourceName(),a.sources=[this.sourceName()]),this._result=a,this};Qr.prototype.inlined=function(){try{var t=JSON.stringify(this._result);if(globalThis.Buffer)t=Buffer.from(t,"utf-8").toString("base64");else if(typeof btoa=="function")t=btoa(t);else return;return`
//# sourceMappingURL=data:application/json;charset=utf-8;base64,`+t}catch{}return console.warn("base64 encoding not supported - skipping inline sourceMapping"),""};Qr.prototype.encodeVlq=function(t){for(var e="",r=t<0?1:0,i,s=(Math.abs(t)<<1)+r;s||!e;)i=s&y9,s=s>>D3,s&&(i|=M3),e+=this.encodeBase64(i);return e};Qr.prototype.toJSON=function(){return this._result};Qr.prototype.encodeBase64=function(t){return g9[t]}});var B3=ae((o6,qc)=>{var qe=String,j3=function(){return{isColorSupported:!1,reset:qe,bold:qe,dim:qe,italic:qe,underline:qe,inverse:qe,hidden:qe,strikethrough:qe,black:qe,red:qe,green:qe,yellow:qe,blue:qe,magenta:qe,cyan:qe,white:qe,gray:qe,bgBlack:qe,bgRed:qe,bgGreen:qe,bgYellow:qe,bgBlue:qe,bgMagenta:qe,bgCyan:qe,bgWhite:qe}};qc.exports=j3();qc.exports.createColors=j3});var Yc=ae(()=>{});var Ml=ae((u6,U3)=>{"use strict";var G3=B3(),z3=Yc(),Pn=class extends Error{constructor(e,r,i,s,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),s&&(this.source=s),o&&(this.plugin=o),typeof r<"u"&&typeof i<"u"&&(typeof r=="number"?(this.line=r,this.column=i):(this.line=r.line,this.column=r.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Pn)}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 r=this.source;e==null&&(e=G3.isColorSupported),z3&&e&&(r=z3(r));let i=r.split(/\r?\n/),s=Math.max(this.line-3,0),n=Math.min(this.line+2,i.length),o=String(n).length,a,l;if(e){let{bold:c,red:u,gray:_}=G3.createColors(!0);a=f=>c(u(f)),l=f=>_(f)}else a=l=c=>c;return i.slice(s,n).map((c,u)=>{let _=s+1+u,f=" "+(" "+_).slice(-o)+" | ";if(_===this.line){let d=l(f.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(f)+c+`
`+d+a("^")}return" "+l(f)+c}).join(`
`)}toString(){let e=this.showSourceCode();return e&&(e=`
`+e+`
`),this.name+": "+this.message+e}};U3.exports=Pn;Pn.default=Pn});var Vl=ae((c6,Kc)=>{"use strict";Kc.exports.isClean=Symbol("isClean");Kc.exports.my=Symbol("my")});var Wc=ae((h6,q3)=>{"use strict";var H3={colon:": ",indent:" ",beforeDecl:`
`,beforeRule:`
`,beforeOpen:" ",beforeClose:`
`,beforeComment:`
`,after:`
`,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function v9(t){return t[0].toUpperCase()+t.slice(1)}var Ha=class{constructor(e){this.builder=e}stringify(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)}document(e){this.body(e)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let r=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+i+"*/",e)}decl(e,r){let i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),r&&(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,r){let i="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?i+=e.raws.afterName:s&&(i+=" "),e.nodes)this.block(e,i+s);else{let n=(e.raws.between||"")+(r?";":"");this.builder(i+s+n,e)}}body(e){let r=e.nodes.length-1;for(;r>0&&e.nodes[r].type==="comment";)r-=1;let i=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let n=e.nodes[s],o=this.raw(n,"before");o&&this.builder(o),this.stringify(n,r!==s||i)}}block(e,r){let i=this.raw(e,"between","beforeOpen");this.builder(r+i+"{",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,r,i){let s;if(i||(i=r),r&&(s=e.raws[r],typeof s<"u"))return s;let n=e.parent;if(i==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return H3[i];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[i]<"u")return o.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);{let a="raw"+v9(i);this[a]?s=this[a](o,e):o.walk(l=>{if(s=l.raws[r],typeof s<"u")return!1})}return typeof s>"u"&&(s=H3[i]),o.rawCache[i]=s,s}rawSemicolon(e){let r;return e.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(r=i.raws.semicolon,typeof r<"u"))return!1}),r}rawEmptyBody(e){let r;return e.walk(i=>{if(i.nodes&&i.nodes.length===0&&(r=i.raws.after,typeof r<"u"))return!1}),r}rawIndent(e){if(e.raws.indent)return e.raws.indent;let r;return e.walk(i=>{let s=i.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof i.raws.before<"u"){let n=i.raws.before.split(`
`);return r=n[n.length-1],r=r.replace(/\S/g,""),!1}}),r}rawBeforeComment(e,r){let i;return e.walkComments(s=>{if(typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(r,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(e,r){let i;return e.walkDecls(s=>{if(typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(r,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeRule(e){let r;return e.walk(i=>{if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before<"u")return r=i.raws.before,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeClose(e){let r;return e.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return r=i.raws.after,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let r;return e.walk(i=>{if(i.type!=="decl"&&(r=i.raws.between,typeof r<"u"))return!1}),r}rawColon(e){let r;return e.walkDecls(i=>{if(typeof i.raws.between<"u")return r=i.raws.between.replace(/[^\s:]/g,""),!1}),r}beforeAfter(e,r){let i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):r==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");let s=e.parent,n=0;for(;s&&s.type!=="root";)n+=1,s=s.parent;if(i.includes(`
`)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<n;a++)i+=o}return i}rawValue(e,r){let i=e[r],s=e.raws[r];return s&&s.value===i?s.raw:i}};q3.exports=Ha;Ha.default=Ha});var qa=ae((p6,Y3)=>{"use strict";var b9=Wc();function Xc(t,e){new b9(e).stringify(t)}Y3.exports=Xc;Xc.default=Xc});var Ka=ae((f6,K3)=>{"use strict";var{isClean:Fl,my:w9}=Vl(),x9=Ml(),k9=Wc(),S9=qa();function Jc(t,e){let r=new t.constructor;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||i==="proxyCache")continue;let s=t[i],n=typeof s;i==="parent"&&n==="object"?e&&(r[i]=e):i==="source"?r[i]=s:Array.isArray(s)?r[i]=s.map(o=>Jc(o,r)):(n==="object"&&s!==null&&(s=Jc(s)),r[i]=s)}return r}var Ya=class{constructor(e={}){this.raws={},this[Fl]=!1,this[w9]=!0;for(let r in e)if(r==="nodes"){this.nodes=[];for(let i of e[r])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[r]=e[r]}error(e,r={}){if(this.source){let{start:i,end:s}=this.rangeBy(r);return this.source.input.error(e,{line:i.line,column:i.column},{line:s.line,column:s.column},r)}return new x9(e)}warn(e,r,i){let s={node:this};for(let n in i)s[n]=i[n];return e.warn(r,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=S9){e.stringify&&(e=e.stringify);let r="";return e(this,i=>{r+=i}),r}assign(e={}){for(let r in e)this[r]=e[r];return this}clone(e={}){let r=Jc(this);for(let i in e)r[i]=e[i];return r}cloneBefore(e={}){let r=this.clone(e);return this.parent.insertBefore(this,r),r}cloneAfter(e={}){let r=this.clone(e);return this.parent.insertAfter(this,r),r}replaceWith(...e){if(this.parent){let r=this,i=!1;for(let s of e)s===this?i=!0:i?(this.parent.insertAfter(r,s),r=s):this.parent.insertBefore(r,s);i||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,r){return new k9().raw(this,e,r)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,r){let i={},s=r==null;r=r||new Map;let n=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))i[o]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,r):l);else if(typeof a=="object"&&a.toJSON)i[o]=a.toJSON(null,r);else if(o==="source"){let l=r.get(a.input);l==null&&(l=n,r.set(a.input,n),n++),i[o]={inputId:l,start:a.start,end:a.end}}else i[o]=a}return s&&(i.inputs=[...r.keys()].map(o=>o.toJSON())),i}positionInside(e){let r=this.toString(),i=this.source.start.column,s=this.source.start.line;for(let n=0;n<e;n++)r[n]===`
`?(i=1,s+=1):i+=1;return{line:s,column:i}}positionBy(e){let r=this.source.start;if(e.index)r=this.positionInside(e.index);else if(e.word){let i=this.toString().indexOf(e.word);i!==-1&&(r=this.positionInside(i))}return r}rangeBy(e){let r={line:this.source.start.line,column:this.source.start.column},i=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:r.line,column:r.column+1};if(e.word){let s=this.toString().indexOf(e.word);s!==-1&&(r=this.positionInside(s),i=this.positionInside(s+e.word.length))}else e.start?r={line:e.start.line,column:e.start.column}:e.index&&(r=this.positionInside(e.index)),e.end?i={line:e.end.line,column:e.end.column}:e.endIndex?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<r.line||i.line===r.line&&i.column<=r.column)&&(i={line:r.line,column:r.column+1}),{start:r,end:i}}getProxyProcessor(){return{set(e,r,i){return e[r]===i||(e[r]=i,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&e.markDirty()),!0},get(e,r){return r==="proxyOf"?e:r==="root"?()=>e.root().toProxy():e[r]}}}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 r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return e}markDirty(){if(this[Fl]){this[Fl]=!1;let e=this;for(;e=e.parent;)e[Fl]=!1}}get proxyOf(){return this}};K3.exports=Ya;Ya.default=Ya});var Xa=ae((d6,W3)=>{"use strict";var T9=Ka(),Wa=class extends T9{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]==="$"}};W3.exports=Wa;Wa.default=Wa});var jl=ae(()=>{});var Bl=ae(()=>{});var Zc=ae(()=>{});var J3=ae((w6,X3)=>{var E9="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",A9=(t,e=21)=>(r=e)=>{let i="",s=r;for(;s--;)i+=t[Math.random()*t.length|0];return i},I9=(t=21)=>{let e="",r=t;for(;r--;)e+=E9[Math.random()*64|0];return e};X3.exports={nanoid:I9,customAlphabet:A9}});var Z3=ae(()=>{});var $c=ae((S6,t0)=>{"use strict";var{SourceMapConsumer:Q3,SourceMapGenerator:$3}=jl(),{existsSync:O9,readFileSync:R9}=Z3(),{dirname:Qc,join:C9}=Bl();function N9(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var Ja=class{constructor(e,r){if(r.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=r.map?r.map.prev:void 0,s=this.loadMap(r.from,i);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Qc(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new Q3(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,r){return e?e.substr(0,r.length)===r:!1}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!r)return;let i=e.lastIndexOf(r.pop()),s=e.indexOf("*/",i);i>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,s)))}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(s.test(e)||n.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||i.test(e))return N9(e.substr(RegExp.lastMatch.length));let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}loadFile(e){if(this.root=Qc(e),O9(e))return this.mapFile=e,R9(e,"utf-8").toString().trim()}loadMap(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let i=r(e);if(i){let s=this.loadFile(i);if(!s)throw new Error("Unable to load previous source map: "+i.toString());return s}}else{if(r instanceof Q3)return $3.fromSourceMap(r).toString();if(r instanceof $3)return r.toStr
`);i=new Array(n.length);let o=0;for(let a=0,l=n.length;a<l;a++)i[a]=o,o+=n[a].length+1;this[eh]=i}r=i[i.length-1];let s=0;if(e>=r)s=i.length-1;else{let n=i.length-2,o;for(;s<n;)if(o=s+(n-s>>1),e<i[o])n=o-1;else if(e>=i[o+1])s=o+1;else{s=o;break}}return{line:s+1,col:e-i[s]+1}}error(e,r,i,s={}){let n,o,a;if(r&&typeof r=="object"){let c=r,u=i;if(typeof r.offset=="number"){let _=this.fromOffset(c.offset);r=_.line,i=_.col}else r=c.line,i=c.column;if(typeof u.offset=="number"){let _=this.fromOffset(u.offset);o=_.line,a=_.col}else o=u.line,a=u.column}else if(!i){let c=this.fromOffset(r);r=c.line,i=c.col}let l=this.origin(r,i,o,a);return l?n=new r0(e,l.endLine===void 0?l.line:{line:l.line,column:l.column},l.endLine===void 0?l.column:{line:l.endLine,column:l.endColumn},l.source,l.file,s.plugin):n=new r0(e,o===void 0?r:{line:r,column:i},o===void 0?i:{line:o,column:a},this.css,this.file,s.plugin),n.input={line:r,column:i,endLine:o,endColumn:a,source:this.css},this.file&&(Gl&&(n.input.url=Gl(this.file).toString()),n.input.file=this.file),n}origin(e,r,i,s){if(!this.map)return!1;let n=this.map.consumer(),o=n.originalPositionFor({line:e,column:r});if(!o.source)return!1;let a;typeof i=="number"&&(a=n.originalPositionFor({line:i,column:s}));let l;ih(o.source)?l=Gl(o.source):l=new URL(o.source,this.map.consumer().sourceRoot||Gl(this.map.mapFile));let c={url:l.toString(),line:o.line,column:o.column,endLine:a&&a.line,endColumn:a&&a.column};if(l.protocol==="file:")if(e0)c.file=e0(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=n.sourceContentFor(o.source);return u&&(c.source=u),c}mapResolve(e){return/^\w+:\/\//.test(e)?e:rh(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};s0.exports=Bo;Bo.default=Bo;th&&th.registerInput&&th.registerInput(Bo)});var nh=ae((E6,c0)=>{"use strict";var{SourceMapConsumer:o0,SourceMapGenerator:zl}=jl(),{dirname:Ul,resolve:a0,relative:l0,sep:u0}=Bl(),{pathToFileURL:n0}=Zc(),F9=Za(),j9=Boolean(o0&&zl),B9=Boolean(Ul&&a0&&l0&&u0),sh=class{constructor(e,r,i,s){this.stringify=e,this.mapOpts=i.map||{},this.root=r,this.opts=i,this.css=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute}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 r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new F9(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(r=>r.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 r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let e={};if(this.root)this.root.walk(r=>{if(r.source){let i=r.source.input.from;if(i&&!e[i]){e[i]=!0;let s=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(s,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),i=e.root||Ul(e.file),s;this.mapOpts.sourcesContent===!1?(s=new o0(e.text),s.sourcesContent&&(s.sourcesContent=s.sourcesContent.map(()=>null))):s=e.consumer(),this.map.applySourceMap(s,r,this.toUrl(this.path(i)))}}
`;this.css.includes(`\r
`)&&(r=`\r
`),this.css+=r+"/*# 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=zl.fromSourceMap(e)}else this.map=new zl({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 r=this.opts.to?Ul(this.opts.to):".";return typeof this.mapOpts.annotation=="string"&&(r=Ul(a0(r,this.mapOpts.annotation))),e=l0(r,e),e}toUrl(e){return u0==="\\"&&(e=e.replace(/\\/g,"/")),encodeURI(e).replace(/[#?]/g,encodeURIComponent)}toFileUrl(e){if(n0)return n0(e).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}generateString(){this.css="",this.map=new zl({file:this.outputFile()});let e=1,r=1,i="<no source>",s={source:"",generated:{line:0,column:0},original:{line:0,column:0}},n,o;this.stringify(this.root,(a,l,c)=>{if(this.css+=a,l&&c!=="end"&&(s.generated.line=e,s.generated.column=r-1,l.source&&l.source.start?(s.source=this.sourcePath(l),s.original.line=l.source.start.line,s.original.column=l.source.start.column-1,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,this.map.addMapping(s))),n=a.match(/\n/g),n?(e+=n.length,o=a.lastIndexOf(`
`),r=a.length-o):r+=a.length,l&&c!=="start"){let u=l.parent||{raws:{}};(l.type!=="decl"||l!==u.last||u.raws.semicolon)&&(l.source&&l.source.end?(s.source=this.sourcePath(l),s.original.line=l.source.end.line,s.original.column=l.source.end.column-1,s.generated.line=e,s.generated.column=r-2,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=r-1,this.map.addMapping(s)))}})}generate(){if(this.clearAnnotation(),B9&&j9&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,r=>{e+=r}),[e]}}};c0.exports=sh});var $a=ae((A6,h0)=>{"use strict";var G9=Ka(),Qa=class extends G9{constructor(e){super(e),this.type="comment"}};h0.exports=Qa;Qa.default=Qa});var Ks=ae((I6,b0)=>{"use strict";var{isClean:p0,my:f0}=Vl(),d0=Xa(),_0=$a(),z9=Ka(),m0,oh,ah,y0;function g0(t){return t.map(e=>(e.nodes&&(e.nodes=g0(e.nodes)),delete e.source,e))}function v0(t){if(t[p0]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)v0(e)}var yi=class extends z9{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let r=this.getIterator(),i,s;for(;this.indexes[r]<this.proxyOf.nodes.length&&(i=this.indexes[r],s=e(this.proxyOf.nodes[i],i),s!==!1);)this.indexes[r]+=1;return delete this.indexes[r],s}walk(e){return this.each((r,i)=>{let s;try{s=e(r,i)}catch(n){throw r.addToError(n)}return s!==!1&&r.walk&&(s=r.walk(e)),s})}walkDecls(e,r){return r?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="decl"&&e.test(i.prop))return r(i,s)}):this.walk((i,s)=>{if(i.type==="decl"&&i.prop===e)return r(i,s)}):(r=e,this.walk((i,s)=>{if(i.type==="decl")return r(i,s)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="rule"&&e.test(i.selector))return r(i,s)}):this.walk((i,s)=>{if(i.type==="rule"&&i.selector===e)return r(i,s)}):(r=e,this.walk((i,s)=>{if(i.type==="rule")return r(i,s)}))}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="atrule"&&e.test(i.name))return r(i,s)}):this.walk((i,s)=>{if(i.type==="atrule"&&i.name===e)return r(i,s)}):(r=e,this.walk((i,s)=>{if(i.type==="atrule")return r(i,s)}))}walkComments(e){return this.walk((r,i)=>{if(r.type==="comment")return e(r,i)})}append(...e){for(let r of e){let i=this.normalize(r,this.last);for(let s of i)this.proxyOf.nodes.push(s)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let r of e){let i=this.normalize(r,this.first,"prepend").reverse();for(let s of i)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+i.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}insertBefore(e,r){let i=this.index(e),s=e===0?"prepend":!1,n=this.normalize(r,this.proxyOf.nodes[i],s).reverse();i=this.index(e);for(let a of n)this.proxyOf.nodes.splice(i,0,a);let o;for(let a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+n.length);return this.markDirty(),this}insertAfter(e,r){let i=this.index(e),s=this.normalize(r,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let o of s)this.proxyOf.nodes.splice(i+1,0,o);let n;for(let o in this.indexes)n=this.indexes[o],i<n&&(this.indexes[o]=n+s.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 r;for(let i in this.indexes)r=this.indexes[i],r>=e&&(this.indexes[i]=r-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,r,i){return i||(i=r,r={}),this.walkDecls(s=>{r.props&&!r.props.includes(s.prop)||r.fast&&!s.value.includes(r.fast)||(s.value=s.value.replace(e,i))}),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,r){if(typeof e
`.charCodeAt(0),r1=" ".charCodeAt(0),Wl="\f".charCodeAt(0),Xl=" ".charCodeAt(0),Jl="\r".charCodeAt(0),q9="[".charCodeAt(0),Y9="]".charCodeAt(0),K9="(".charCodeAt(0),W9=")".charCodeAt(0),X9="{".charCodeAt(0),J9="}".charCodeAt(0),Z9=";".charCodeAt(0),Q9="*".charCodeAt(0),$9=":".charCodeAt(0),t7="@".charCodeAt(0),Zl=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ql=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,e7=/.[\n"'(/\\]/,R0=/[\da-f]/i;C0.exports=function(e,r={}){let i=e.css.valueOf(),s=r.ignoreErrors,n,o,a,l,c,u,_,f,d,g,b=i.length,S=0,y=[],v=[];function m(){return S}function x(P){throw e.error("Unclosed "+P,S)}function k(){return v.length===0&&S>=b}function E(P){if(v.length)return v.pop();if(S>=b)return;let C=P?P.ignoreUnclosed:!1;switch(n=i.charCodeAt(S),n){case Kl:case r1:case Xl:case Jl:case Wl:{o=S;do o+=1,n=i.charCodeAt(o);while(n===r1||n===Kl||n===Xl||n===Jl||n===Wl);g=["space",i.slice(S,o)],S=o-1;break}case q9:case Y9:case X9:case J9:case $9:case Z9:case W9:{let O=String.fromCharCode(n);g=[O,O,S];break}case K9:{if(f=y.length?y.pop()[1]:"",d=i.charCodeAt(S+1),f==="url"&&d!==ch&&d!==I0&&d!==r1&&d!==Kl&&d!==Xl&&d!==Wl&&d!==Jl){o=S;do{if(u=!1,o=i.indexOf(")",o+1),o===-1)if(s||C){o=S;break}else x("bracket");for(_=o;i.charCodeAt(_-1)===Yl;)_-=1,u=!u}while(u);g=["brackets",i.slice(S,o+1),S,o],S=o}else o=i.indexOf(")",S+1),l=i.slice(S,o+1),o===-1||e7.test(l)?g=["(","(",S]:(g=["brackets",l,S,o],S=o);break}case ch:case I0:{a=n===ch?"'":'"',o=S;do{if(u=!1,o=i.indexOf(a,o+1),o===-1)if(s||C){o=S+1;break}else x("string");for(_=o;i.charCodeAt(_-1)===Yl;)_-=1,u=!u}while(u);g=["string",i.slice(S,o+1),S,o],S=o;break}case t7:{Zl.lastIndex=S+1,Zl.test(i),Zl.lastIndex===0?o=i.length-1:o=Zl.lastIndex-2,g=["at-word",i.slice(S,o+1),S,o],S=o;break}case Yl:{for(o=S,c=!0;i.charCodeAt(o+1)===Yl;)o+=1,c=!c;if(n=i.charCodeAt(o+1),c&&n!==O0&&n!==r1&&n!==Kl&&n!==Xl&&n!==Jl&&n!==Wl&&(o+=1,R0.test(i.charAt(o)))){for(;R0.test(i.charAt(o+1));)o+=1;i.charCodeAt(o+1)===r1&&(o+=1)}g=["word",i.slice(S,o+1),S,o],S=o;break}default:{n===O0&&i.charCodeAt(S+1)===Q9?(o=i.indexOf("*/",S+2)+1,o===0&&(s||C?o=i.length:x("comment")),g=["comment",i.slice(S,o+1),S,o],S=o):(Ql.lastIndex=S+1,Ql.test(i),Ql.lastIndex===0?o=i.length-1:o=Ql.lastIndex-2,g=["word",i.slice(S,o+1),S,o],y.push(g),S=o);break}}return S++,g}function T(P){v.push(P)}return{back:T,nextToken:E,endOfFile:k,position:m}}});var $l=ae((P6,P0)=>{"use strict";var L0=Ks(),Go=class extends L0{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)}};P0.exports=Go;Go.default=Go;L0.registerAtRule(Go)});var zo=ae((D6,F0)=>{"use strict";var D0=Ks(),M0,V0,Ws=class extends D0{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,r){let i=this.index(e);return!r&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}normalize(e,r,i){let s=super.normalize(e);if(r){if(i==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let n of s)n.raws.before=r.raws.before}return s}toResult(e={}){return new M0(new V0,this,e).stringify()}};Ws.registerLazyResult=t=>{M0=t};Ws.registerProcessor=t=>{V0=t};F0.exports=Ws;Ws.default=Ws;D0.registerRoot(Ws)});var hh=ae((M6,j0)=>{"use strict";var i1={split(t,e,r){let i=[],s="",n=!1,o=0,a=!1,l="",c=!1;for(let u of t)c?c=!1:u==="\\"?c=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(n=!0),n?(s!==""&&i.push(s.trim()),s="",n=!1):s+=u;return(r||s!=="")&&i.push(s.trim()),i},space(t){let e=[" ",`
`," "];return i1.split(t,e)},comma(t){return i1.split(t,[","],!0)}};j0.exports=i1;i1.default=i1});var t2=ae((V6,G0)=>{"use strict";var B0=Ks(),r7=hh(),Uo=class extends B0{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r7.comma(this.selector)}set selectors(e){let r=this.selector?this.selector.match(/,\s*/):null,i=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}};G0.exports=Uo;Uo.default=Uo;B0.registerRule(Uo)});var q0=ae((F6,H0)=>{"use strict";var i7=Xa(),s7=N0(),n7=$a(),o7=$l(),a7=zo(),z0=t2(),U0={empty:!0,space:!0};function l7(t){for(let e=t.length-1;e>=0;e--){let r=t[e],i=r[3]||r[2];if(i)return i}}var ph=class{constructor(e){this.input=e,this.root=new a7,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=s7(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 r=new n7;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]);let i=e[1].slice(2,-2);if(/^\s*$/.test(i))r.text="",r.raws.left=i,r.raws.right="";else{let s=i.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}}emptyRule(e){let r=new z0;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}other(e){let r=!1,i=null,s=!1,n=null,o=[],a=e[1].startsWith("--"),l=[],c=e;for(;c;){if(i=c[0],l.push(c),i==="("||i==="[")n||(n=c),o.push(i==="("?")":"]");else if(a&&s&&i==="{")n||(n=c),o.push("}");else if(o.length===0)if(i===";")if(s){this.decl(l,a);return}else break;else if(i==="{"){this.rule(l);return}else if(i==="}"){this.tokenizer.back(l.pop()),r=!0;break}else i===":"&&(s=!0);else i===o[o.length-1]&&(o.pop(),o.length===0&&(n=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),o.length>0&&this.unclosedBracket(n),r&&s){if(!a)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}rule(e){e.pop();let r=new z0;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}decl(e,r){let i=new i7;this.init(i,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(s[3]||s[2]||l7(e));e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){i.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),i.raws.between+=n[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(n=e[c],n[1].toLowerCase()==="!important"){i.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(i.raws.important=u);break}else if(n[1].toLowerCase()==="important"){let u=e.slice(0),_="";for(let f=c;f>0;f--){let d=u[f][0];if(_.trim().indexOf("!")===0&&d!=="space")break;_=u.pop()[1]+_}_.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=_,e=u)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(i.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(i,"value",o.concat(e),r),i.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}atrule(e){let r=new o7;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let i,s,n,o=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?c.push(i==="("?")":"
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));let a=r(...o);return a.postcssPlugin=e,a.postcssVersion=new mh().version,a}let n;return Object.defineProperty(s,"postcss",{get(){return n||(n=s()),n}}),s.process=function(o,a,l){return Ie([s(l)]).process(o,a)},s};Ie.stringify=B7;Ie.parse=q7;Ie.fromJSON=G7;Ie.list=Y7;Ie.comment=t=>new nd(t);Ie.atRule=t=>new od(t);Ie.decl=t=>new id(t);Ie.rule=t=>new ad(t);Ie.root=t=>new ld(t);Ie.document=t=>new sd(t);Ie.CssSyntaxError=V7;Ie.Declaration=id;Ie.Container=j7;Ie.Processor=mh;Ie.Document=sd;Ie.Comment=nd;Ie.Warning=z7;Ie.AtRule=od;Ie.Result=U7;Ie.Input=H7;Ie.Rule=ad;Ie.Root=ld;Ie.Node=K7;F7.registerPostcss(Ie);ud.exports=Ie;Ie.default=Ie});var Ye,K6,W6,X6,J6,Z6,Q6,$6,ty,ey,ry,iy,sy,ny,oy,ay,ly,uy,cy,hy,py,fy,dy,_y,my,hd=rr(()=>{Ye=al(cd(),1),K6=Ye.default.stringify,W6=Ye.default.fromJSON,X6=Ye.default.plugin,J6=Ye.default.parse,Z6=Ye.default.list,Q6=Ye.default.document,$6=Ye.default.comment,ty=Ye.default.atRule,ey=Ye.default.rule,ry=Ye.default.decl,iy=Ye.default.root,sy=Ye.default.CssSyntaxError,ny=Ye.default.Declaration,oy=Ye.default.Container,ay=Ye.default.Processor,ly=Ye.default.Document,uy=Ye.default.Comment,cy=Ye.default.Warning,hy=Ye.default.AtRule,py=Ye.default.Result,fy=Ye.default.Input,dy=Ye.default.Rule,_y=Ye.default.Root,my=Ye.default.Node});var gh={};ms(gh,{colors:()=>yh,fonts:()=>a1,modifiers:()=>qo,named_colors:()=>i2,variants:()=>pd});var a1,qo,pd,yh,i2,Yo=rr(()=>{a1={sans:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',serif:'Georgia, Cambria, "Times New Roman", Times, serif',mono:'Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},qo={odd:{name:"nth-child",valueType:"string",value:"odd"},even:{name:"nth-child",valueType:"string",value:"even"},first:{name:"first-child"},last:{name:"last-child"},only:{name:"only-child"},"not-first":{name:"not",valueType:"raw",value:":first-child"},"not-last":{name:"not",valueType:"raw",value:":last-child"},"first-child":{},"last-child":{},autofill:{},active:{},checked:{},default:{},defined:{},disabled:{},empty:{},enabled:{},"first-of-type":{},"first-page":{name:"first"},fullscreen:{},focus:{},focin:{name:"focus-within"},"focus-within":{},"focus-visible":{},hover:{},indeterminate:{},"in-range":{},invalid:{},is:{type:"selector"},lang:{},"last-of-type":{},left:{},link:{},not:{type:"selector"},"nth-child":{},modal:{},"picture-in-picture":{},"nth-last-child":{},"nth-last-of-type":{},"nth-of-type":{},"only-child":{},"only-of-type":{},playing:{},paused:{},optional:{},"out-of-range":{},"placeholder-shown":{},"read-only":{},"read-write":{},required:{},right:{},scope:{},root:{},target:{},"target-within":{},valid:{},visited:{},where:{},after:{type:"el"},"-webkit-scrollbar":{type:"el"},"-webkit-scrollbar-button":{type:"el"},"-webkit-scrollbar-track":{type:"el"},"-webkit-scrollbar-track-piece":{type:"el"},"-webkit-scrollbar-thumb":{type:"el"},"-webkit-scrollbar-corner":{type:"el"},"-webkit-resizer":{type:"el"},backdrop:{type:"el"},before:{type:"el"},cue:{type:"el"},"cue-region":{type:"el"},"first-letter":{type:"el"},"first-line":{type:"el"},marker:{type:"el"},placeholder:{type:"el"},selection:{type:"el"},inline:{pri:3},important:{pri:4},force:{pri:6},media:{type:"media"},print:{media:"print"},screen:{media:"screen"},speech:{media:"speech"},all:{media:"all"},xs:{media:"(min-width: 480px)",medianeg:"(max-width: 479px)"},sm:{media:"(min-width: 640px)",medianeg:"(max-width: 639px)"},md:{media:"(min-width: 768px)",medianeg:"(max-width: 767px)"},lg:{media:"(min-width: 1024px)",medianeg:"(max-width: 1023px)"},xl:{media:"(min-width: 1280px)",medianeg:"(max-width: 1279px)"},"2xl":{media:"(min-width: 1536px)"},"lt-xs":{media:"(max-width: 479px)"},"lt-sm":{media:"(max-width: 639px)"},"lt-md":{media:"(max-width: 767px)"},"lt-lg":{media:"(max-width: 1023px)"},"lt-xl":{media:"(max-width: 1279px)"},"lt-2xl":{media:"(max-width: 1535px)"},landscape:{media:"(orientation: landscape)",medianeg:"(orientation: po
`||o==="\r"||o==="\f";)_=!0,e++,o=t.charAt(e);return _},this.parse=function(){var _=this.parseSelector();if(e<c)throw Error('Rule expected but "'+t.charAt(e)+'" found.');return _},this.parseSelector=function(){var _,f=_=this.parseSingleSelector();for(o=t.charAt(e);o===",";){if(e++,u(),_.type!=="selectors"&&(_={type:"selectors",selectors:[f]}),f=this.parseSingleSelector(),!f)throw Error('Rule expected after ",".');_.selectors.push(f)}return _},this.parseSingleSelector=function(){u();let _=t.slice(e,e+4).match(/^(\>{1,3}|\+|~)/);var f={type:"ruleSet"},d=_?Object.assign([],{type:"rule",isScope:!0}):this.parseRule();if(!d)return null;for(var g=f;d&&(d.type="rule",g==d||(g.rule=d,g=d),u(),o=t.charAt(e),!(e>=c||o===","||o===")"));)if(s[o]){var b=o;if(b==">"&&t.charAt(e+1)==">"&&t.charAt(e+2)==">"?(b=">>>",e=e+3):b==">"&&t.charAt(e+1)==">"?(b=">>",e=e+2):e++,u(),d=this.parseRule(null),!d)if(b==">"||b==">>>"||b==">>")d=vh({tagName:"*"});else throw Error('Rule expected after "'+b+'".');d.nestingOperator=b}else d=this.parseRule(g),d&&(d.nestingOperator=null);return f},this.parseSubRule=function(_="is",f=!1,d=!1){let g={name:_,valueType:"selector",up:!0};if(f){let b=this.parseRule();b.type="rule",g.value={type:"ruleSet",rule:b},d&&(g.after=b.rule=vh({tagName:"*",nestingOperator:null,type:"rule"}))}else{let b=this.parseSelector();g.value=b}return g},this.parseRule=function(_){for(var f=null,d=!1,g=!1,b=!1,S=!1,y={},v=0;e<c;){if(o=t.charAt(e),y={},o=="!"&&(b=!0,o=t.charAt(++e),f=f||_,y.not=!0),o=="@"&&t.charAt(e+1)==".")f=f||_,y.implicitScope=!0,e++,o=".";else if(o=="@"&&t.charAt(e+1)=="@")y.closest=!0,f=f||_,e++;else if(o=="."&&t.charAt(e+1)=="."){S=y,f=f||_,e++;let C=t.charAt(e+1);(C=="%"||C=="$"||C=="@")&&(o=C,e++)}for(;o=="^";)o=t.charAt(++e),f=f||_,v++;if(y.up=v,y.closest=S,o==="&")e++,(f=f||[]).isScope=!0;else if(o==="^"){e++;let C=this.parseSubRule("is",!0,!0);(f=f||_||[]).push(C)}else if(o==="*")e++,(f=f||[]).tagName="*";else if(W7(o)||o==="\\")(f=f||[]).tagName=a();else if(o==="$")e++,y.flag="$"+a(),y.ref=!0,(f=f||[]).push(y);else if(o==="%")e++,y.flag=o+a(),(f=f||[]).push(y);else if(o==="."){e++;let C=t.charAt(e++);C+=a({}),y.flag=C,(f=f||[]).push(y)}else if(o==="#")e++,(f=f||[]).id=a();else if(o==="["){e++,u();var m=y.attr={name:a()};if(u(),o==="]")e++;else{var x="";if(i[o]&&(x=o,e++,o=t.charAt(e)),e>=c)throw Error('Expected "=" but end of file reached.');if(o!=="=")throw Error('Expected "=" but "'+o+'" found.');m.operator=x+"=",e++,u();var k="";if(m.valueType="string",o==='"')k=l('"',dd);else if(o==="'")k=l("'",fd);else if(n&&o==="$")e++,k=a(),m.valueType="substitute";else{for(;e<c&&o!=="]";)k+=o,e++,o=t.charAt(e);k=k.trim()}if(u(),e>=c)throw Error('Expected "]" but end of file reached.');if(o!=="]")throw Error('Expected "]" but "'+o+'" found.');e++,m.value=k}(f=f||[]).push(y)}else if(o===":"||o==="@"){if(o==":"&&t.charAt(e+1)==":"){(f=f||_||[]).pseudoElement=a({":":!0});continue}e++,y.name=o;var E=y,T=a({"~":!0,"+":!0,".":!1,">":!0,"<":!0});if(T=="unimportant"){d=!0,y.type="unimportant",(f=f||_||[]).push(y);continue}if(y.name+=T,y.pseudo=T,o==="("){e++;var P="";if(u(),r[T]==="selector")E.valueType="selector",P=this.parseSelector();else{if(E.valueType=r[T]||"string",o==='"')P=l('"',dd);else if(o==="'")P=l("'",fd);else if(n&&o==="$")e++,P=a(),E.valueType="substitute";else{for(;e<c&&o!==")";)P+=o,e++,o=t.charAt(e);P=P.trim()}u()}if(e>=c)throw Error('Expected ")" but end of file reached.');if(o!==")")throw Error('Expected ")" but "'+o+'" found.');e++,E.value=P}(f=f||_||[]).push(y)}else break}return f},this}var _d,md,J7,fd,dd,Q7,Ko,bh,yd,gd=rr(()=>{Yo();_d=al(Da());Lr.prototype.registerSelectorPseudos=function(t){for(var e=0,r=arguments.length;e<r;e++)t=arguments[e],this.pseudos[t]="selector";return this};Lr.prototype.unregisterSelectorPseudos=function(t){for(var e=0,r=arguments.length;e<r;e++)t=arguments[e],delete this.pseudos[t];return this};Lr.prototype.registerNumericPseudos=function(t){for(var e=0,r=arguments.length;e<r;e++)t=arguments[e],this.pseudos[t]="numeric";return this};Lr.prototype.unregisterNumericPseudos=funct
`,r:"\r",t:" ",f:"\f","\\":"\\","'":"'"},dd={n:`
`,r:"\r",t:" ",f:"\f","\\":"\\",'"':'"'};Lr.prototype.parse=function(t){var e=new Z7(t,0,this.pseudos,this.attrEqualityMods,this.ruleNestingOperators,this.substitutesEnabled);return e.parse()};Lr.prototype.escapeIdentifier=function(t){for(var e="",r=0,i=t.length;r<i;){var s=t.charAt(r);if(md[s])e+="\\"+s;else if(s==="_"||s==="-"||s>="A"&&s<="Z"||s>="a"&&s<="z"||r!==0&&s>="0"&&s<="9")e+=s;else{var n=s.charCodeAt(0);if((n&63488)===55296){var o=t.charCodeAt(r++);if((n&64512)!==55296||(o&64512)!==56320)throw Error("UCS-2(decode): illegal sequence");n=((n&1023)<<10)+(o&1023)+65536}e+="\\"+n.toString(16)+" "}r++}return e};Lr.prototype.escapeStr=function(t){for(var e="",r=0,i=t.length,s,n;r<i;)s=t.charAt(r),s==='"'?s='\\"':s==="\\"?s="\\\\":(n=J7[s])&&(s=n),e+=s,r++;return'"'+e+'"'};Lr.prototype.render=function(t){return this._renderEntity(t).trim()};Q7=null;Lr.prototype._renderEntity=function(t,e){var n;var r,i,s;switch(s="",t.type){case"ruleSet":for(r=t.rule,Q7=t,i=[];r;)r.nestingOperator&&i.push(r.nestingOperator),i.push(this._renderEntity(r)),r=r.rule;let o=t.media&&t.media.length?` @media ${t.media.join(" and ")}`:"";s=i.join(" ")+o;break;case"selectors":s=t.selectors.map(this._renderEntity,this).join(", ");break;case"rule":let a=t.s1,l=t.s2,c=t.tagName;if(c)if(c==="*")s="*";else{let f=_d.TAG_NAMES[c]||c=="svg"||c.indexOf("-")>0,d=this.escapeIdentifier(c);f?s=d:s=`:is(${d},${d}-tag)`}t.id&&(s+="#"+this.escapeIdentifier(t.id));let u=0,_=t.length;for(;u<_;){let f=null,d=t[u++],g=d.attr,b=d.flag,S="",y=d.not,v=d.pseudo?d:null,m=qo[d.pseudo];if(!(d.media||d.skip)){if(m&&m.flag&&(b=m.flag,v=null),m&&m.type=="el"&&(v=null,t.pseudoElement||(t.pseudoElement="::"+d.pseudo)),b&&(S="."+this.escapeIdentifier(b)),g&&(g.operator?g.valueType==="substitute"?S="["+this.escapeIdentifier(g.name)+g.operator+"$"+g.value+"]":S="["+this.escapeIdentifier(g.name)+g.operator+this.escapeStr(g.value)+"]":S="["+this.escapeIdentifier(g.name)+"]"),v){let x=(n=m&&m.name)!=null?n:v.pseudo,k=this.escapeIdentifier(x),E="",T=v.value||v.name,P=v.not,C=":"+k;v.valueType?v.valueType==="selector"?S=C+"("+this._renderEntity(v.value,e)+")"+E:v.valueType==="substitute"?S=C+"($"+v.value+")"+E:v.valueType==="numeric"||v.valueType==="raw"||v.valueType==="string"?S=C+"("+v.value+")"+E:S=C+"("+this.escapeIdentifier(v.value)+")"+E:v.type=="el"?S=":"+C:!m||m.flag?S=`.\\@${k}`:S=C+E,S.match(/^\:(hover|focus|checked|disabled)$/)}if(d.closest){let x=t.filter(E=>E.closest==d);x.map(E=>E.closest=null),d.not=!1;let k=this._renderEntity(vh({type:"rule"},x));x.map(E=>E.skip=!0),S=`:${y?"not":"is"}(${k} *)`,y=!1}else if(d.up){let x=d.up>5?" *":" > *".repeat(d.up);S=`:${y?"not":"is"}(${S}${x})`,y=!1}y&&(S=`:not(${S})`),s+=S}}if(a>0)for(;--a>=0;)s+=":not(#_)";if(l>0)for(;--l>=0;)s+=":not(._0)";t.pseudoElement&&(s+=t.pseudoElement);break;default:throw Error('Unknown entity type: "'+t.type(+'".'))}return s};Ko=new Lr;Ko.registerSelectorPseudos("has","not","is","matches","any","where");Ko.registerNumericPseudos("nth-child");Ko.registerNestingOperators(">>>",">>",">","+","~");Ko.registerAttrEqualityMods("^","$","*","~");bh=function(t){return Ko.parse(t)},yd=function(t){return Ko.render(t)}});var l2={};ms(l2,{parse:()=>wh,render:()=>o2,rewrite:()=>n2,test:()=>rm,unwrap:()=>a2});function Li(t){let e;return t?(e=t.toIterable)?e.call(t):t:[]}function wd(t,e){return t.push({flag:e}),t}function bd(t,e){return wd(t,e),t.metas||(t.metas=[]),t.metas.push(e),t}function n2(t,e,r={}){var k,E,T,P,C;if(t.type=="selectors")for(let O=0,L=Li(t.selectors),q=L.length;O<q;O++){let M=L[O];n2(M,t,r)}if(t.type!="ruleSet")return t;let i=t,s=0,n=0,o=0,a=0;t.meta={},t.media=[];let l=[],c=t.rule;for(;c;)l.push(c),c=c.rule;let u=l.slice(0).reverse();for(let O=0,L=Li(u),q=L.length;O<q;O++){let M=L[O],W=u[O+1];for(let ee=0,nt=Li(M),Pt=nt.length;ee<Pt;ee++){let F=nt[ee];F.up>0&&W&&(F.up-=1,W.push(F),M[ee]={})}}let _=l[0],f=null,d=null,g=!1,b=!!r.global,S=!1,y=0;((k=l[0])==null?void 0:k.tagName)=="*"&&(l[0].nestingOperator=">>>",l.unshift(t.rule=Object.assign([],{type:"rule",rule:l[0],isScope:!0,nestingOperator:">>>"
`+_+`
}`),o.push(_)}return o.join(`
`).replace(/\$CONTENT\$/g,e)}function a2(t,e){let r=t.split(","),i=e.split(","),s=[];for(let n=0,o=Li(i),a=o.length;n<a;n++){let l=o[n];for(let c=0,u=Li(r),_=u.length;c<_;c++){let f=u[c],d=l;d.indexOf("&")>=0?d=d.replace("&",f):d=f+" "+d,s.push(d)}}return s.join(",")}function wh(t,e){let r=bh(t);return r&&n2(r,null,e)}function rm(t,e=!1){let r=bh(t),s=n2(r,null,{ns:"dvs342"}),n=o2(s);return console.log(n),e&&console.dir(r,{depth:null}),n}var vd,tm,em,xh=rr(()=>{hd();gd();Yo();vd=Symbol.for("#rules"),tm=Symbol.for("#string"),em=Symbol.for("#media")});var kd=ae((xy,xd)=>{var $t={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};xd.exports={conv:$t};for(let t of Object.keys($t)){if(!("channels"in $t[t]))throw new Error("missing channels property: "+t);if(!("labels"in $t[t]))throw new Error("missing channel labels property: "+t);if($t[t].labels.length!==$t[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=$t[t];delete $t[t].channels,delete $t[t].labels,Object.defineProperty($t[t],"channels",{value:e}),Object.defineProperty($t[t],"labels",{value:r})}$t.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,i=t[2]/255,s=Math.min(e,r,i),n=Math.max(e,r,i),o=n-s,a,l;n===s?a=0:e===n?a=(r-i)/o:r===n?a=2+(i-e)/o:i===n&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let c=(s+n)/2;return n===s?l=0:c<=.5?l=o/(n+s):l=o/(2-n-s),[a,l*100,c*100]};$t.rgb.hsv=function(t){let e,r,i,s,n,o=t[0]/255,a=t[1]/255,l=t[2]/255,c=Math.max(o,a,l),u=c-Math.min(o,a,l),_=function(f){return(c-f)/6/u+1/2};return u===0?(s=0,n=0):(n=u/c,e=_(o),r=_(a),i=_(l),o===c?s=i-r:a===c?s=1/3+e-i:l===c&&(s=2/3+r-e),s<0?s+=1:s>1&&(s-=1)),[s*360,n*100,c*100]};$t.rgb.hwb=function(t){let e=t[0],r=t[1],i=t[2],s=$t.rgb.hsl(t)[0],n=1/255*Math.min(e,Math.min(r,i));return i=1-1/255*Math.max(e,Math.max(r,i)),[s,n*100,i*100]};$t.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,i=t[2]/255,s=Math.min(1-e,1-r,1-i),n=(1-e-s)/(1-s)||0,o=(1-r-s)/(1-s)||0,a=(1-i-s)/(1-s)||0;return[n*100,o*100,a*100,s*100]};$t.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,i=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;let s=e*.4124564+r*.3575761+i*.1804375,n=e*.2126729+r*.7151522+i*.072175,o=e*.0193339+r*.119192+i*.9503041;return[s*100,n*100,o*100]};$t.rgb.lab=function(t){let e=$t.rgb.xyz(t),r=e[0],i=e[1],s=e[2];r/=95.047,i/=100,s/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;let n=116*i-16,o=500*(r-i),a=200*(i-s);return[n,o,a]};$t.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,i=t[2]/100,s,n,o;if(r===0)return o=i*255,[o,o,o];i<.5?s=i*(1+r):s=i+r-i*r;let a=2*i-s,l=[0,0,0];for(let c=0;c<3;c++)n=e+1/3*-(c-1),n<0&&n++,n>1&&n--,6*n<1?o=a+(s-a)*6*n:2*n<1?o=s:3*n<2?o=a+(s-a)*(2/3-n)*6:o=a,l[c]=o*255;return l};$t.hsl.hsv=function(t){let e=t[0],r=t[1]/100,i=t[2]/100,s=r,n=Math.max(i,.01);i*=2,r*=i<=1?i:2-i,s*=n<=1?n:2-n;let o=(i+r)/2,a=i===0?2*s/(n+s):2*r/(i+r);return[e,a*100,o*100]};$t.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,i=t[2]/100,s=Math.floor(e)%6,n=e-Math.floor(e),o=255*i*(1-r),a=255*i*(1-r*n),l=255*i*(1-r*(1-n));switch(i*=255,s){case 0:return[i,l,o];case 1:return[a,i,o];case 2:return[o,i,l];case 3:return[o,a,i];case 4:return[l,o,i];case 5:return[i,o,a]}};$t.hsv.hsl=function(t){let e=t[0],r=t[1]/100,i=t[2]/100,s=Math.max(i,.01),n,o;o=(2-r)*i;let a=(2-r)*s;return n=r*s,n/=a<=1?a:2-a,n=n||0,o/=2,[e,n*100,o*100]};$t.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,i=t[2]/100,s=r+i,n;s>1&&(r/=s,i/=s);let o=Math.floor(6*e),a=1-i;n=6*e-o,(o&1)!==0&&(n=1-n);let l=r+n*(a-r),c,u,_;switch(o){default:case 6:case 0
--t_scale:1;--t_scale-x:1;--t_scale-y:1;
--t_skew-x:0;--t_skew-y:0;
transform: translate3d(var(--t_x),var(--t_y),var(--t_z))
rotate(var(--t_rotate))
skewX(var(--t_skew-x)) skewY(var(--t_skew-y))
scaleX(var(--t_scale-x)) scaleY(var(--t_scale-y)) scale(var(--t_scale));`,outline:`--ol_s:solid;--ol_w:1px;--ol_o:0px; --ol_c:transparent;
outline:var(--ol_w) var(--ol_s) var(--ol_c); outline-offset:var(--ol_o);
outline:1px solid transparent; outline-offset:var(--ol_o);`,ease:`--e_ad:0ms;--e_af:cubic-bezier(0.23, 1, 0.32, 1);--e_aw:0ms;
--e_od:var(--e_ad);--e_of:var(--e_af);--e_ow:var(--e_aw);
--e_cd:var(--e_ad);--e_cf:var(--e_af);--e_cw:var(--e_aw);
--e_bd:var(--e_ad);--e_bf:var(--e_af);--e_bw:var(--e_aw);
--e_td:var(--e_bd);--e_tf:var(--e_bf);--e_tw:var(--e_bw);
--e_b:var(--e_bd) var(--e_bf) var(--e_bw);
--e_c:var(--e_cd) var(--e_cf) var(--e_cw);
--e_rest:any;
transition:
all var(--e_ad) var(--e_af) var(--e_aw),
opacity var(--e_od) var(--e_of) var(--e_ow),
transform var(--e_td) var(--e_tf) var(--e_tw),
color var(--e_c),background-color var(--e_c),border-color var(--e_c),fill var(--e_c),stroke var(--e_c), outline-color var(--e_c), box-shadow var(--e_c),
inset var(--e_b), width var(--e_b),height var(--e_b),max-width var(--e_b),max-height var(--e_b),min-width var(--e_b),min-height var(--e_b),border-width var(--e_b),outline-width var(--e_b),stroke-width var(--e_b),margin var(--e_b),padding var(--e_b),
var(--e_rest);`},Ih={"user-select":["-webkit-user-select"],appearance:["-webkit-appearance"],"backdrop-filter":["-webkit-backdrop-filter"],"mask-image":["-webkit-mask-image"]},Oh=class{constructor(e){this[kh]=e,this[Sh]=[],this[Th]={},this[u2]={},this.transforms=null}get transitions(){return this[u2].transition}add(e,r={}){var i;if(this[Sh].push(e),r.apply)for(let s=r.apply,n=0,o=Object.keys(s),a=o.length,l,c;n<a;n++){l=o[n],c=s[l];let u=(i=this[Th])[l]||(i[l]=[]);for(let _=0,f=Je(c),d=f.length;_<d;_++){let g=f[_];u.indexOf(g)<0&&u.push(g)}}}js(e,r){let i=[];for(let s=this[u2],n=0,o=Object.keys(s),a=o.length,l,c;n<a;n++)l=o[n],c=s[l],i.push(e.runtime().transitions+(".addSelectors("+JSON.stringify(c)+",'"+l+"')"));return i.join(`
`)}parse(){if(this[Vn])return this[Vn];let e=[],r=this[Sh].slice(0),i=function(s){return r.indexOf(s)<0,r.unshift(s)};for(let s=this[Th],n=0,o=Object.keys(s),a=o.length,l,c;n<a;n++){l=o[n],c=s[l];let u=Rd[l],_={},f={},d={"":_},g=l=="transition"||l.match(/^_(off|out|in)_sized/);for(let S=0,y=Je(c),v=y.length;S<v;S++){let m=y[S];for(let x=0,k=Je(m[sm]||[]),E=k.length;x<E;x++){let T=k[x],P=T[im]||"",C=T[Vn].replace(/:not\((#_|\._0?)+\)/g,"");(g||l=="ease")&&(C=C.replace(/\.\\@(off|out|in|on)\b/g,"")),C=C.replace(/((\:+)[\w\-]+)(?!\()/g,function(L,q){return q.length>1?L:""}),C=C.replace(/^\:root /g,"");let O=d[P]||(d[P]={});O[C]=T,f[C]=!0}}if(u)for(let S=0,y=Object.keys(d),v=y.length,m,x;S<v;S++){m=y[S],x=d[m];let k=Object.keys(x);if(m!=""&&(k=k.filter(function(C){return!_[C]})),k.length==0)continue;let E=k.sort(function(C,O){return C.length-O.length}),T=[];for(let C=0,O=Je(E),L=O.length;C<L;C++){let q=O[C];(!E.slice(0,C).find(function(ee){return q.indexOf(ee)>=0})||q.match(/[\s\>\,]|:(not|before|after|marker)|::/))&&T.push(q)}k=T;let P=k.join(", ")+` {
`+u+`
}`;m&&(P=m+` {
`+P+`
}`),r.unshift(P)}let b=Object.keys(f);l=="transition"&&b.length&&(i(".\\@enter:not(#_),.\\@leave:not(#_) {--e_ad:300ms;}"),i("._instant_:not(#_):not(#_):not(#_):not(#_) { transition-duration:0ms !important; }")),g&&(this[u2][l]=b)}return this[Vn]=r.join(`
`),this[kh].resolveColors()&&(this[Vn]=this[kh].theme().transformColors(this[Vn],{prefix:!1})),this[Vn]}toString(){return this.parse()}},ss=class{constructor(e,r,i,s={}){this.parent=e,this.selector=r,this.content=i,this.options=s,this.isKeyFrames=!!r.match(/\@keyframes \w/),this.isKeyFrame=e&&e.isKeyFrames,this.meta={}}root(){return this.parent?this.parent.root:this}apply(e,r){var i;return((i=this.options.apply)[e]||(i[e]=[])).push(r)}register(e,r){var i;return((i=this.options.register)[e]||(i[e]=[])).push(r)}toString(e={}){let r=[],i=[],s;if(this.isKeyFrames){let[l,c]=this.selector.split(/\s*\@keyframes\s*/);l=l.trim(),c=c.trim();let u=[c,l,this.options.ns].filter(function(f){return f}).join("-");this.meta.name=c,this.meta.uniqueName=u.replace(/[\s\.\,]+/g,"").replace(/[^\w\-]/g,"_"),this.options.global&&!l&&(this.meta.uniqueName=this.meta.name);let _={};_["--animation-"+c]=""+this.meta.uniqueName,l?i.push(new ss(null,l,_,this.options)):this.options.ns&&!this.options.global&&i.push(new ss(null,"."+this.options.ns,_,{}))}let n=typeof this.selector=="string"&&this.selector.indexOf("@important")>=0?1:0;for(let l=this.content,c=0,u=Object.keys(l),_=u.length,f,d;c<_;c++){if(f=u[c],d=l[f],d==null)continue;let g=null,b=n?" !important":"",S=f;if(f.indexOf("&")>=0){if(this.isKeyFrames){let v=f.replace(/&/g,""),m=new ss(this,v,d,this.options);r.push(m.toString({indent:!0}));continue}let y=a2(this.selector,f);i.push(new ss(this,y,d,this.options));continue}else if(f.indexOf("§")>=0){let y=S.split("§"),v=y.slice(1).join(""),m=a2(this.selector,v),x={};x[y[0]]=d,(s=i[m])?s.content[y[0]]=d:(s=new ss(this,m,x,this.options),i.push(i[m]=s));continue}else if(f.match(/^__(\w+)__$/))this.meta[f.slice(2,-2)]=!0;else if(f[0]=="["){let y=JSON.parse(f);i.push(new ss(this,this.selector,d,this.options));continue}else if(f.match(/^outline-?/))this.meta.outline=!0,r.push(""+f+": "+d+" !important;");else if(f.match(/^(x|y|z|scale|scale-x|scale-y|skew-x|skew-y|rotate)$/))this.meta.transform||(this.meta.transform=!0),r.push("--t_"+f+": "+d+" !important;");else if(f.match(/^(ease-.*)$/)){this.meta.ease=!0;let y=f.replace("delay","wait").split("-").map(function(v){return v[0]}).join("");r.push("--e_"+y.slice(1)+": "+d+" !important;"),p2[f]||console.warn(""+f+" is not a valid style property")}else if(f.match(/^(--e_\w+)$/))this.meta.ease=!0,this.selector.match(/@in\b/),r.push(""+f+": "+d+" !important;");else if(!f.match(/^__ease__$/)){if(f.match(/^(width|height)$/)&&(this.meta.size=!0),r.push(""+f+": "+d+b+";"),Ih[f])for(let y=0,v=Je(Ih[f]),m=v.length;y<m;y++){let x=v[y];r.push(""+x+": "+d+b+";")}}}let o="",a=r.join(`
`);if((e.indent||this.isKeyFrames)&&(a=`
`+a+`
`),this.isKeyFrame)o=""+this.selector+" {"+a+"}";else if(this.isKeyFrames)o="@keyframes "+this.meta.uniqueName+" {"+a+"}";else{let l=this.isKeyFrame?this.selector:wh(this.selector,this.options);if(this.meta.transform&&this.apply("transform",l),this.meta.ease&&this.apply("ease",l),this.meta.outline&&this.apply("outline",l),l&&l.hasTransitionStyles&&(this.apply("transition",l),this.meta.ease||this.apply("ease",l)),this.meta.size)for(let c=0,u=["_off_","_out_","_in_"],_=u.length;c<_;c++){let f=u[c];l[f]&&this.apply(""+f+"sized",l)}o=a.match(/[^\n\s]/)?o2(l,a,this.options):""}for(let l=0,c=Je(i),u=c.length;l<u;l++){let _=c[l];o+=`
`+_.toString()}return o}}});var u_=ae(A=>{function b2(t){return t&&(t.len instanceof Function?t.len():t.length)||0}function c1(t,e){return e&&e.indexOf?e.indexOf(t):[].indexOf.call(t,e)}function I(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=Object.create(e.prototype),t.__super__=t.prototype.__super__=e.prototype,t.prototype.initialize=t.prototype.constructor=t}function Ot(t){return t?t.toArray?t.toArray():t:[]}var om={},ye=ko(),Zo=Da(),d2=(Tl(),Zi(Nc)),Dd=Il(),Ty=Dd.ImbaParseError,am=Dd.ImbaTraverseError,wr=Pa().Token,lm=F3().SourceMap,ls=(Ch(),Zi(Cd)),um=ls.StyleRule,Md=ls.StyleTheme,Vd=ls.Color,cm=ls.StyleSheet,Ey=ls.parseColorString,ls=(Tu(),Zi(Su)),hm=ls.ReservedIdentifierRegex,y2=ls.InternalPrefixes,pm=ls.toJSIdentifier,Ay=ls.toCustomTagIdentifier,Fd=(Al(),Zi(El)).Compilation,h1=(Lc(),Zi(h3)).SourceMapper,jd=Zo.TAG_NAMES,Nd=Zo.TAG_GLOBAL_ATTRIBUTES,_1={},Bd={},fm={svg:"image",png:"image",apng:"image",jpg:"image",jpeg:"image",gif:"image",tiff:"image",bmp:"image"};_1.HTML="a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param pre progress q rp rt ruby s samp script section select small source span strong strike style sub summary sup table tbody td textarea tfoot th thead time title tr track u ul var video wbr".split(" ");_1.SVG="circle defs ellipse g line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan".split(" ");Bd.HTML="accept accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay cellPadding cellSpacing charSet checked className cols colSpan content contentEditable contextMenu controls coords crossOrigin data dateTime defer dir disabled download draggable encType form formNoValidate frameBorder height hidden href hrefLang htmlFor httpEquiv icon id label lang list loop max maxLength mediaGroup method min multiple muted name noValidate pattern placeholder poster preload radioGroup readOnly rel required role rows rowSpan sandbox scope scrollLeft scrolling scrollTop seamless selected shape size span spellCheck src srcDoc srcSet start step style tabIndex target title type useMap value width wmode";Bd.SVG="cx cy d dx dy fill fillOpacity fontFamily fontSize fx fy gradientTransform gradientUnits markerEnd markerMid markerStart offset opacity patternContentUnits patternUnits points preserveAspectRatio r rx ry spreadMethod stopColor stopOpacity stroke strokeDasharray strokeLinecap strokeOpacity strokeWidth textAnchor transform version viewBox x1 x2 x y1 y2 y";var Ld={intersect:"events_intersect",selection:"events_selection",resize:"events_resize",hotkey:"events_hotkey",touch:"events_touch",pointer:"events_pointer",pointerdown:"events_pointer",pointermove:"events_pointer",pointerover:"events_pointer",pointerout:"events_pointer",pointerup:"events_pointer",pointercancel:"events_pointer",lostpointercapture:"events_pointer",click:"events_mouse",mousedown:"events_mouse",mouseup:"events_mouse",mouseenter:"events_mouse",mouseleave:"events_mouse",mousemove:"events_mouse",mouseout:"events_mouse",mouseover:"events_mouse",mousewheel:"events_mouse",keydown:"events_keyboard",keyup:"events_keyboard",keypress:"events_keyboard"},Ct=A.AST={},Te=A.F={TAG_INITED:2**0,TAG_BUILT:2**1,TAG_CUSTOM:2**2,TAG_AWAKENED:2**3,TAG_MOUNTED:2**4,TAG_SCHEDULE:2**5,TAG_SCHEDULED:2**6,TAG_FIRST_CHILD:2**7,TAG_LAST_CHILD:2**8,TAG_HAS_DYNAMIC_FLAGS:2**9,TAG_HAS_BRANCHES:2**10,TAG_HAS_LOOPS:2**11,TAG_HAS_DYNAMIC_CHILDREN:2**12,TAG_IN_BRANCH:2**13,TAG_BIND_MODEL:2**14,TAG_INDEXED:2**15,TAG_KEYED:2**16,EL_INITED:2**0,EL_HYDRATED:2**1,EL_HYDRATING:2**2,EL_AWAKENED:2**3,EL_MOUNTING:2**4,EL_MOUNTED:2**5,EL_SCHEDULE:2**6,EL_SCHEDULED:2**7,EL_RENDERING:2**8,EL_RENDERED:2**9,EL_SSR:2**10,EL_TRACKED:2**11,EL_SUSPENDED:2**12,EL_UNREN
`).replace(/\n\t$/g,`
`),t=r+`
`+t,n instanceof fi&&(t+=n.c()),t[t.length-1]!=`
`&&(t=t+`
`),t};var Dh=new Mr({},{});function Mh(){this._entities=[]}Mh.prototype.add=function(t){return this._entities.unshift(t),this};Mh.prototype.pluck=function(t){var e=null;for(let r=0,i=Ot(this._entities),s=i.length,n;r<s;r++)if(n=i[r],n==t||n instanceof t)return e=n,this._entities.splice(r,1),e;return null};function Ut(){this.reset()}A.Stack=Ut;Ut.prototype.loglevel=function(t){return this._loglevel};Ut.prototype.setLoglevel=function(t){return this._loglevel=t,this};Ut.prototype.nodes=function(t){return this._nodes};Ut.prototype.setNodes=function(t){return this._nodes=t,this};Ut.prototype.scopes=function(t){return this._scopes};Ut.prototype.setScopes=function(t){return this._scopes=t,this};Ut.prototype.root=function(t){return this._root};Ut.prototype.setRoot=function(t){return this._root=t,this};Ut.prototype.state=function(t){return this._state};Ut.prototype.setState=function(t){return this._state=t,this};Ut.prototype.meta=function(t){return this._meta};Ut.prototype.setMeta=function(t){return this._meta=t,this};Ut.prototype.theme=function(t){return this._theme};Ut.prototype.setTheme=function(t){return this._theme=t,this};Ut.prototype.css=function(t){return this._css};Ut.prototype.setCss=function(t){return this._css=t,this};Ut.prototype.reset=function(){return this._nodes=[],this._scoping=[],this._scopes=[],this._stash=new Mh(this),this._loglevel=3,this._counter=0,this._counters={},this._options={},this._state={},this._tag=null,this._sourceId=null,this._symbols={},this._css=new cm(this),this._theme=null,this._meta={},this._runtime,this};Ut.prototype.runtime=function(){return this._root.runtime()};Ut.prototype.cssns=function(){return this._root.cssns()};Ut.prototype.use=function(t){return this._root.use(t)};Ut.prototype.incr=function(t){return this._counters[t]||(this._counters[t]=0),this._counters[t]+=1};Ut.prototype.decr=function(t){return this._counters[t]||(this._counters[t]=0),this._counters[t]-=1};Ut.prototype.strip=function(t){return h1.strip(t)};Ut.prototype.generateId=function(t){return t===void 0&&(t="oid"),Ct.counterToShortRef(N.incr(t))};Ut.prototype.getSymbol=function(t,e,r){e===void 0&&(e=null),r===void 0&&(r="");let i=t||this.incr("symbols");return this._symbols[i]||(this._symbols[i]=this._root.declare(e||t,At("Symbol("+(r?ye.singlequote(r):"")+")"),{system:!0,alias:e||t}).resolve().c())};Ut.prototype.symbolFor=function(t){return this._root.symbolRef(t)};Ut.prototype.toInternalClassName=function(t){t.toClassName?t=t.toClassName():t.c instanceof Function&&(t=t.c());let e="Ω"+this.strip(t).split(".").join("__"),r=this.incr(e);return r>1&&(e+="Ω"+r),e};Ut.prototype.domCall=function(t){return t={start:"beforeVisit",end:"afterVisit",open:"beforeReconcile",close:"afterReconcile",insert:"placeChild"}[t]||t,"["+this.symbolFor("#"+t)+"]"};Ut.prototype.sourceId=function(){if(this._sourceId||(this._sourceId=this._options.sourceId))return this._sourceId;let t=this.sourcePath(),e=this.cwd();if(this._options.path&&e&&(t=this._options.path.relative(e,t)),!t)throw new Error("Include sourceId or sourcePath in options compile(code,options)");return this._sourceId=ye.identifierForPath(t),this._sourceId};Ut.prototype.theme=function(){return this._theme||(this._theme=Md.wrap(this._options.config))};Ut.prototype.stash=function(){return this._stash};Ut.prototype.set=function(t){this._options||(this._options={});for(let e,r=0,i=Object.keys(t),s=i.length,n;r<s;r++)n=i[r],e=t[n],this._options[n]=e;return this};Ut.prototype.option=function(t,e){return e!=null?(this._options||(this._options={}),this._options[t]=e,this):this._options&&this._options[t]};Ut.prototype.platform=function(){return this._options.platform||"browser"};Ut.prototype.format=function(){return this._options.format};Ut.prototype.sourcePath=function(){return this._options.sourcePath};Ut.prototype.imbaPath=function(){return this._options.imbaPath};Ut.prototype.resolveColors=function(){return this._options.styles!=="extern"||this._options.resolveColors};Ut.prototype.config=function(){return this._options.config||{}};Ut.prototype.cwd=function(){return this.config()&&this
`),this};X.prototype.invert=function(){return Z("!",this)};X.prototype.cache=function(t){return t===void 0&&(t={}),this._cache=t,t.var=(t.scope||this.scope__()).temporary(this,t),t.lookups=0,this};X.prototype.cachevar=function(){return this._cache&&this._cache.var};X.prototype.decache=function(){return this._cache&&(this.cachevar().free(),this._cache=null),this};X.prototype.alias=function(){return null};X.prototype.warn=function(t,e){e===void 0&&(e={});let r=e.loc||this.loc()||[0,0];return r instanceof X&&(r=[r.startLoc(),r.endLoc()]),r instanceof wr&&(r=r.loc()),this.script().addDiagnostic(e.severity||"warning",{message:t,range:this.script().rangeAt(r[0],r[1])})};X.prototype.error=function(t,e){return e===void 0&&(e={}),e.severity="error",this.warn(t,e)};X.prototype.c=function(t){var e,r=N,i=this._cache;if(i&&i.cached)return this.c_cached(i);r.push(this),t&&t.expression&&this.forceExpression(),t&&t.indent&&(this._indentation||(this._indentation=Dh));var s=this.js(r,t),n=this.shouldParenthesize();if(r.pop(this),s==null)return s;if((e=this._indentation)&&(s=e.wrap(s,t)),n&&(s="("+s+")"),(t&&t.braces||this._options&&this._options.braces)&&(e?s="{"+s+"}":s="{ "+s+" }"),i=this._cache){i.manual||(s=""+i.var.c()+" = "+s);var o=r.current();o instanceof Gt&&(o=o.node()),(o instanceof se||o instanceof re)&&(s="("+s+")"),i.cached=!0}return xs.sourcemap&&(!t||t.mark!==!1)&&(s=ut(s,this)),s};X.prototype.c_cached=function(t){return t.lookups++,t.uses==t.lookups&&t.var.free(),t.var.c()};function Gt(t){this.setup(),this._value=this.load(t)}I(Gt,X);A.ValueNode=Gt;Gt.prototype.value=function(t){return this._value};Gt.prototype.setValue=function(t){return this._value=t,this};Gt.prototype.startLoc=function(){return this._value&&this._value.startLoc&&this._value.startLoc()};Gt.prototype.endLoc=function(){return this._value&&this._value.endLoc&&this._value.endLoc()};Gt.prototype.load=function(t){return t};Gt.prototype.js=function(t){return typeof this._value=="string"?this._value:this._value.c()};Gt.prototype.visit=function(){return this._value instanceof X&&this._value.traverse(),this};Gt.prototype.region=function(){return[this._value._loc,this._value._loc+this._value._len]};function gi(t,e){this.setup(),this._value=t,this._orig=e||t}I(gi,X);A.ValueReferenceNode=gi;gi.prototype.value=function(t){return this._value};gi.prototype.setValue=function(t){return this._value=t,this};gi.prototype.orig=function(t){return this._orig};gi.prototype.setOrig=function(t){return this._orig=t,this};gi.prototype.startLoc=function(){return this._orig&&this._orig.startLoc&&this._orig.startLoc()};gi.prototype.endLoc=function(){return this._orig&&this._orig.endLoc&&this._orig.endLoc()};gi.prototype.load=function(t){return t};gi.prototype.js=function(t){return ut(this._value.c({mark:!1}),this)};gi.prototype.visit=function(){return this._value instanceof X&&this._value.traverse(),this};gi.prototype.region=function(){return[this._orig._loc,this._orig._loc+this._orig._len]};function x2(){return Gt.apply(this,arguments)}I(x2,Gt);A.ExpressionNode=x2;function Vh(){return Gt.apply(this,arguments)}I(Vh,Gt);A.AssertionNode=Vh;Vh.prototype.js=function(t){let e=this._value,r=[];if(e instanceof re&&!(e instanceof se)){let i=e.left(),s=e.right();r.push(i.cache().c(t)),r.push(ye.singlequote(e._op)),r.push(s.cache().c(t)),r=["imba.$a=["+r.join(",")+"]"],r.push(e.c(t))}else r.push("imba.$a=null"),r.push(e.c(t));return"("+r.join(",")+")"};function qi(){return Gt.apply(this,arguments)}I(qi,Gt);A.Statement=qi;qi.prototype.isExpressable=function(){return!1};function ri(){return Gt.apply(this,arguments)}I(ri,Gt);A.Meta=ri;ri.prototype.isPrimitive=function(t){return!0};function Hn(){return ri.apply(this,arguments)}I(Hn,ri);A.Comment=Hn;Hn.prototype.visit=function(){var t,e;if(t=this.up()){var r=t.indexOf(this)+1;t.index(r)instanceof fi&&(r+=1),(e=t.index(r))&&(e._desc=this)}return this};Hn.prototype.toDoc=function(){return ye.normalizeIndentation(""+this._value._value)};Hn.prototype.toJSON=function(){return ye.normalizeIndentation(""+this._value._value)};Hn.prototype.toString=function
`}I(ea,fi);A.Newline=ea;ea.prototype.c=function(){return this._value};function ks(){return Gt.apply(this,arguments)}I(ks,Gt);A.Index=ks;ks.prototype.cache=function(t){return t===void 0&&(t={}),this._value.cache(t)};ks.prototype.js=function(t){return this._value.c()};function jt(t){this.setup(),this._nodes=this.load(t||[]),this._indentation=null}I(jt,X);A.ListNode=jt;jt.prototype.nodes=function(t){return this._nodes};jt.prototype.setNodes=function(t){return this._nodes=t,this};jt.prototype.list=function(){return this._nodes};jt.prototype.compact=function(){return this._nodes=Ct.compact(this._nodes),this};jt.prototype.load=function(t){return t};jt.prototype.concat=function(t){return this._nodes=this.nodes().concat(t instanceof Array?t:t.nodes()),this};jt.prototype.swap=function(t,e){var r=this.indexOf(t);return r>=0&&(this.nodes()[r]=e),this};jt.prototype.push=function(t){return this._nodes.push(t),this};jt.prototype.pop=function(){var t=this._nodes.pop();return t};jt.prototype.add=function(t,e){let r=null;if(e&&e.before)r=this._nodes.indexOf(e.before),r==-1&&(r=null);else if(e&&e.after){if(r=this._nodes.indexOf(e.after)+1,r==0&&(r=null),r>=1)for(;this._nodes[r]instanceof ri;)r++}else(typeof e=="number"||e instanceof Number)&&(r=e);return r!==null?t instanceof Array?this._nodes.splice.apply(this._nodes,[].concat([r,0],Array.from(t))):this._nodes.splice(r,0,t):t instanceof Array?this._nodes.push.apply(this._nodes,t):this._nodes.push(t),this};jt.prototype.unshift=function(t,e){return e&&this._nodes.unshift(Pe),this._nodes.unshift(t),this};jt.prototype.slice=function(t,e){return new this.constructor(this._nodes.slice(t,e))};jt.prototype.break=function(t,e){return e===void 0&&(e=!1),typeof t=="string"&&(t=new fi(t)),e?this.unshift(t):this.push(t),this};jt.prototype.some=function(t){for(let e=0,r=Ot(this._nodes),i=r.length,s;e<i;e++)if(s=r[e],t(s))return!0;return!1};jt.prototype.every=function(t){for(let e=0,r=Ot(this._nodes),i=r.length,s;e<i;e++)if(s=r[e],!t(s))return!1;return!0};jt.prototype.values=function(){return this._nodes.filter(function(t){return!(t instanceof ri)})};jt.prototype.filter=function(t){return this._nodes.filter(t)};jt.prototype.pluck=function(t){var e=this.filter(t)[0];return e&&this.remove(e),e};jt.prototype.indexOf=function(t){return this._nodes.indexOf(t)};jt.prototype.index=function(t){return this._nodes[t]};jt.prototype.remove=function(t){var e=this._nodes.indexOf(t);return e>=0&&this._nodes.splice(e,1),this};jt.prototype.removeAt=function(t){var e=this._nodes[t];return t>=0&&this._nodes.splice(t,1),e};jt.prototype.replace=function(t,e){var r=this._nodes.indexOf(t);return r>=0&&(e instanceof Array?this._nodes.splice.apply(this._nodes,[].concat([r,1],Array.from(e))):this._nodes[r]=e),this};jt.prototype.first=function(){return this._nodes[0]};jt.prototype.last=function(){for(var t=this._nodes.length;t;){t=t-1;var e=this._nodes[t];if(!(e instanceof ri))return e}return null};jt.prototype.map=function(t){return this._nodes.map(t)};jt.prototype.forEach=function(t){return this._nodes.forEach(t)};jt.prototype.remap=function(t){return this._nodes=this.map(t),this};jt.prototype.count=function(){return this._nodes.length};jt.prototype.len=function(){return this._nodes.length};jt.prototype.realCount=function(){var t=0;for(let e=0,r=Ot(this._nodes),i=r.length,s;e<i;e++)s=r[e],s&&!(s instanceof ri)&&t++;return t};jt.prototype.isEmpty=function(){return this.realCount()==0};jt.prototype.visit=function(){let t=this._nodes,e=0;for(;e<t.length;){let r=t[e];if(r.traverse){let i=r.traverse();if(i!=r&&i instanceof Array){t.splice.apply(t,[].concat([e,1],Array.from(i)));continue}}e++}return this};jt.prototype.isExpressable=function(){for(let t=0,e=Ot(this.nodes()),r=e.length,i;t<r;t++)if(i=e[t],i&&!i.isExpressable())return!1;return!0};jt.prototype.toArray=function(){return this._nodes};jt.prototype.delimiter=function(){return this._delimiter||","};jt.prototype.js=function(t,e){(!e||e.constructor!==Object)&&(e={});var r=e.nodes!==void 0?e.nodes:this._nodes,i=",",s=i!=";",n=this.last(),o=0,a=r.length,l="";for(let u=0,_=Ot(r)
`&&/^\n+$/.test(f)){if(o)continue;o=!0}else f&&(o=!1);n+=f}if(this._head&&this._head.length>0){var a="";for(let c=0,u=Ot(this._head),_=u.length;c<_;c++){var l=this.cpart(u[c]);l&&(a+=l+`
`)}n=a+n}return this.option("strict")&&(n=this.cpart(`"use strict";
`)+n),n};Dt.prototype.defers=function(t,e){var r=this._nodes.indexOf(t);r>=0&&(this._nodes[r]=e);var i=this._nodes.splice(r+1);return i};Dt.prototype.expressions=function(){var t=[];for(let e=0,r=Ot(this.nodes()),i=r.length,s;e<i;e++)s=r[e],s instanceof fi||t.push(s);return t};Dt.prototype.consume=function(t){var e;if(t instanceof Et){let i=this.expressions();return this._nodes=this._nodes.map(function(s){return c1(s,i)>=0&&!(s instanceof Ge)?s.consume(t):s}),this}if(e=this.last()){var r=e.consume(t);r!=e&&(r instanceof Dt&&(r=r.nodes()),this.replace(e,r))}return this};Dt.prototype.isExpressable=function(){return!!this._nodes.every(function(t){return t.isExpressable()})};Dt.prototype.isExpression=function(){return this.option("express")||this._expression};Dt.prototype.shouldParenthesizeInTernary=function(){return this.count()==1?this.first().shouldParenthesizeInTernary():!0};Dt.prototype.indented=function(t,e){var r;if(Dt.prototype.__super__.indented.apply(this,arguments),t instanceof wr&&t._type=="INDENT"&&(r=t._meta&&t._meta.post)){let i=new wr("TERMINATOR",r);this._nodes.unshift(new fi(i)),t._meta.post=""}return this};function $o(){return Dt.apply(this,arguments)}I($o,Dt);$o.prototype.c=function(t){let e=$o.prototype.__super__.c.apply(this,arguments);return`static {
`+ye.indent(e)+"}"};function m1(){return Dt.apply(this,arguments)}I(m1,Dt);function Fh(){return m1.apply(this,arguments)}I(Fh,m1);function xe(t){xe.prototype.__super__.constructor.apply(this,arguments),this._name=t}I(xe,X);A.ClassField=xe;xe.prototype.name=function(t){return this._name};xe.prototype.setName=function(t){return this._name=t,this};xe.prototype.visit=function(){var t;return this._decorators=(t=this.up())&&t.collectDecorators&&t.collectDecorators(),this._classdecl=N.up(le),this._name&&this._name.traverse&&this._name.traverse(),this.value()&&(this.value()._scope=this._vscope=new ta(this.value()),this.value()._scope._parent=this.scope__(),this.value().traverse()),this.watchBody()&&(this._descriptor=N.root().declare(""+this.oid()+"$Prop",this.util().watcher(this.storageSymbol(),this.watcherSymbol()),{type:"const",system:!0})),this.wrapper()&&(this._vslot=this.osym("slot",String(this._name)),this._fslot=this.osym("meta"),this._fname=this._name.metaIdentifier(),this.wrapper()._scope=this._vscope=new ta(this.wrapper()),this.wrapper()._scope._parent=this.scope__(),this.wrapper().traverse()),this};xe.prototype.value=function(){return this.option("value")};xe.prototype.target=function(){return this.option("static")?At("this"):At("this.prototype")};xe.prototype.storageSymbol=function(){return this.symbolRef("#"+this.name().c({as:"symbolpart"}))};xe.prototype.watcherSymbol=function(){return this.symbolRef("#"+this.name().c({as:"symbolpart"})+"DidSet")};xe.prototype.storageKey=function(){return this._storageKey||(this._storageKey=Qe(this.name().c()+"$$"))};xe.prototype.storageMap=function(){return this._storageMap||(this._storageMap=this.scope__().root().declare(null,At("new WeakMap()")))};xe.prototype.isPlain=function(){return!this._decorators&&(!this._value||this._value.isPrimitive())};xe.prototype.isMember=function(){return!this.option("static")};xe.prototype.isLazy=function(){return!1};xe.prototype.hasStaticInits=function(){return this.isStatic()||this._decorators};xe.prototype.hasConstructorInits=function(){return!this.isStatic()};xe.prototype.isStatic=function(){return this.option("static")};xe.prototype.watchBody=function(){return this.option("watch")};xe.prototype.wrapper=function(){return this.option("wrapper")};xe.prototype.loc=function(){return[this._name._loc,this._name.region()[1]]};xe.prototype.c=function(){var t,e;if(this.option("struct"))return;let r=N.current(),i;if(r instanceof Ss){let s=this.isStatic()?""+ut("static",this.option("static"))+" ":"",n=this.name()instanceof ze?this.name().asObjectKey():this.name().c({as:"field"}),o=N.up(le);if(this.wrapper()){let a=this._metaname=this._name.metaIdentifier(),l=this._vslot,c=this._fslot,u,_=null;this.isStatic()?_=o.classReference().c():_=""+o.classReference().c()+".prototype";let f=Z(".",At("this"),a),d="this,"+l+","+this._name.c({as:"value"});this._getter=At("(){ return "+f.c()+".$get("+d+") }"),this._setter=At("(val){ "+f.c()+".$set(val,"+d+") }"),N.tsc()?u="return "+this.runtime().accessor+"("+this.wrapper().c({expression:!0})+","+d+","+c+","+_+")":u="return this["+c+"] || "+this.runtime().accessor+"("+this.wrapper().c({expression:!0})+","+d+","+c+","+_+")",this._handler=At(""+ut(a.c({as:"field"}),this._name)+"(){ "+u+" }")}if(N.tsc()){if(this.wrapper()){let a=""+s+"set "+ut(n,this._name)+this.setter().c({keyword:""}),l=""+s+"get "+ut(n,this._name)+this.getter().c({keyword:""});return this.datatype()&&(l=""+this.datatype().c()+" "+l),i=""+a+`
`+l+`
`+s+"get "+this._handler.c(),this.isStatic()||(i+=`
static get `+ut(this._metaname.c({as:"field"}),this._name)+"(){ return "+Z(".",At("this.prototype"),this._metaname).c()+" }"),i}if(this instanceof Js||this._decorators&&this._decorators.length){let a=this.value()?this.value().c():"",l="",c="null",u="",_=this.osym();i=""+s+" get "+ut(n,this._name)+"() { return /** @type any */("+c+") }",this.datatype()&&(i=""+this.datatype().c()+" "+i),i+=`
`+s+" set "+ut(n,this._name)+"(val) { "+u+" }"}else{i=""+s+ut(n,this._name),this.value()&&(i+=" = "+this.value().c()+";");let a=this.datatype();a&&(i=""+a.c()+" "+i)}}else if(this instanceof Js||this._decorators&&this._decorators.length>0&&!1||this.wrapper()){let a=""+s+"set "+n+this.setter().c({keyword:""}),l=""+s+"get "+n+this.getter().c({keyword:""});i=""+a+`
`+l,this.wrapper()&&(i+=`
`+s+"get "+this._handler.c())}return i}if(!N.tsc()){if(this.isStatic()&&r instanceof $o)this._vscope&&(t=N.up(te))&&this._vscope.mergeScopeInto(t._scope),i=Z("=",Z(".",hr,this.name()),this.value()||Wo).c()+`;
`;else{if(!this.isStatic()&&r instanceof $o)return"";if(!this.isStatic()&&r instanceof m1){this._vscope&&(e=N.up(te))&&this._vscope.mergeScopeInto(e._scope);let s=this.name();this.name()instanceof It&&(s=this.name().toStr());let n=r.option("ctor"),o=r.option("opts"),a=this.value()||Wo,l=this.option("paramIndex"),c=this.option("restIndex"),u;if(r instanceof Fh){let _=n._params.at(c,!0,"$$",At("{}"));u=Z(".",_,this.name()),u.cache({reuse:!0,name:"v"});let f=Z("=",Z(".",hr,this.name()),u);i=Z("&&",Z("!==",u,Wo),f)}else if(l!=null){let _=this.option("paramName");u=n._params.at(l,!0,_),this.value()?a=ce.ternary(Z("!==",u,Wo),u,a):a=u}else if(c!=null){let _=n._params.at(c,!0,"$$",At("null"));u=Z(".",_,this.name()),this.value()?(u.cache({reuse:!0,name:"v"}),a=ce.ternary(Z("&&",_,Z("!==",u,Wo)),u,a)):a=ce.ternary(_,u,Wo)}if(this instanceof Js&&!this.value())return;this.wrapper()&&(i=Ve(Z(".",Z(".",hr,this._fname),Qe("$init")),[a,hr,this._vslot,At(this._name.c({as:"value"}))])),i||(i=Z("=",Z(".",hr,this.name()),a)),i=i.c()+`;
`,this.watchBody()&&(this._descriptor||(this._descriptor=N.root().declare(""+this.oid()+"$Prop",this.util().watcher(this.storageSymbol(),this.watcherSymbol()),{type:"const",system:!0})),i="Object.defineProperty(this,"+s.c()+","+this._descriptor.c()+`);
`+i)}}return i}};xe.prototype.getter=function(){return this._getter||(this._getter=this.wrapper()?At("(){ return this.__"+this.name().c()+".$get(this,"+this.name().toStr().c()+","+this.osym()+") }"):this.parseTemplate("(){ return $get$; }"))};xe.prototype.setterForValue=function(t){return Z("=",Z(".",hr,this.storageKey()),t)};xe.prototype.parseTemplate=function(t){var e=this;return t=t.replace(/\$(\w+)\$/g,function(r,i){return i=="get"?u1(hr,e.storageSymbol()).c():i=="name"?e.name().c():i=="set"?Z("=",u1(hr,e.storageSymbol()),At("value")).c():i=="watcher"?u1(hr,e.watcherSymbol()).c():""}),At(t)};xe.prototype.setter=function(){return this._setter||(this._setter=this.parseTemplate("(value){ $set$; }"))};xe.prototype.decorater=function(){return this._decorater||(this._decorater=this.util().decorate(new Be(this._decorators),this.target(),this.name(),At("null")))};function Ud(){return xe.apply(this,arguments)}I(Ud,xe);A.ClassProperty=Ud;function Js(){return xe.apply(this,arguments)}I(Js,xe);A.ClassAttribute=Js;Js.prototype.hasConstructorInits=function(){return!this.isStatic()&&this.value()};Js.prototype.getter=function(){var t;return this._getter||(this._getter=(t=Ve(u1(hr,"getAttribute"),[this.name().toAttrString()]),Qo([],[t])))};Js.prototype.setter=function(){var t;return this._setter||(this._setter=(t=Ve(u1(hr,"setAttribute"),[this.name().toAttrString(),At("value")]),Qo([At("value")],[t]).set({noreturn:!0})))};function Ss(){return Dt.apply(this,arguments)}I(Ss,Dt);A.ClassBody=Ss;Ss.prototype.setup=function(){return Ss.prototype.__super__.setup.apply(this,arguments),this._fields=[],this._staticFields=[]};Ss.prototype.visit=function(t){this._scope&&this._scope.visit(),t&&t._tag&&(this._tag=t._tag);for(let e=0,r=Ot(this._nodes),i=r.length,s;e<i;e++){if(s=r[e],s instanceof ne){s.tagName()!="self"&&(s._options.type||s).error("only <self> tag allowed here");let n=new Ce([],[s],new It("render"),null,{});this._nodes[e]=s=n}s&&s.traverse()}return this};function Hd(){return Dt.apply(this,arguments)}I(Hd,Dt);A.ExpressionList=Hd;function y1(){return Dt.apply(this,arguments)}I(y1,Dt);A.VarDeclList=y1;y1.prototype.type=function(){return this.option("type")||"var"};y1.prototype.add=function(t){this._nodes.length&&this.push(Pe);let e=new Ze(t[0],t[1],this.type()).set({decl:this,datatype:t[0].option("datatype")});return this._firstDeclaration||(this._firstDeclaration=e,e.set({keyword:this.keyword()})),this.push(e),this};y1.prototype.consume=function(t){return this._nodes.length==1?this._nodes[0].consume(t):this};function Re(t,e,r){this.setup(),this._open=e,this._close=r,this._value=this.load(t)}I(Re,Gt);A.Parens=Re;Re.prototype.unwrappedNode=function(){return this._value.unwrappedNode()};Re.prototype.loc=function(){try{let t=this._open.loc(),e=this._close.loc();return[t[0],e[1]]}catch{return[0,0]}};Re.prototype.load=function(t){return this._noparen=!1,t instanceof Dt&&t.count()==1?t.first():t};Re.prototype.isString=function(){return this._open&&String(this._open)=='("'||this.value().isString()};Re.prototype.js=function(t){var e=this.up(),r=this._value,i=null;return r instanceof te&&(this._noparen=!0),e instanceof Dt?(t.isExpression()||(this._noparen=!0),i=r instanceof Array?Ct.cary(r):r.c({expression:t.isExpression()})):i=r instanceof Array?Ct.cary(r):r.c({expression:!0}),this.datatype()&&N.tsc()&&(i=this.datatype().c()+"("+i+")"),i};Re.prototype.set=function(t){return Re.prototype.__super__.set.call(this,t)};Re.prototype.shouldParenthesize=function(){return!this._noparen};Re.prototype.prebreak=function(t){return Re.prototype.__super__.prebreak.call(this,t),console.log("PREBREAK"),this._value&&this._value.prebreak(t),this};Re.prototype.isExpressable=function(){return this._value.isExpressable()};Re.prototype.consume=function(t){return this._value.consume(t)};function qd(){return Re.apply(this,arguments)}I(qd,Re);A.PureExpression=qd;function g1(){return jt.apply(this,arguments)}I(g1,jt);A.ExpressionBlock=g1;g1.prototype.c=function(t){return this.map(function(e){return e.c(t)}).join(",")};g1.prototype.consume=function(t){return this.value(
`);return e?`/**
`+e+`
*/
`:""};ti.prototype.visit=function(){var t=this.filter(function(e){return e instanceof ra});return t.length>1?t[1].warn("a method can only have one &block parameter"):t[0]&&t[0]!=this.last()&&t[0].warn("&block must be the last parameter of a method"),ti.prototype.__super__.visit.apply(this,arguments)};ti.prototype.js=function(t){if(this.count()==0)return fp;if(t.parent()instanceof Dt)return this.head(t);if(t.parent()instanceof yr){let i=!(t.parent()instanceof Ce);var e=this.nodes(),r={as:"declaration",typed:i};return Ct.compact(this.nodes().map(function(s){let n=s.c(r),o=i&&s.datatype();return o&&(n=o.c()+n),n})).join(",")}else throw"not implemented paramlist js"};ti.prototype.head=function(t){var e=[],r=[],i=null,s=null,n=null,o=[],a=[],l=0;if(this.nodes().forEach(function(T,P){if(!(T instanceof v1))return T.setIndex(l),T instanceof zh?(a.push("opt"),r.push(T)):T instanceof ra?(a.push("blk"),i=T):(a.push("reg"),e.push(T)),l++}),n)var c=n.variable();var u=[],_=function(T){return"typeof "+T+" == 'function'"},f=function(T){return""+T+".constructor === Object"},d=function(T){return""+T+".constructor !== Object"};if(!n&&!s&&!i&&r.length>0&&a.join(" ").match(/opt$/))for(let T=0,P=r.length,C;T<P;T++)C=r[T],u.push("if("+C.name().c()+" === undefined) "+C.name().c()+" = "+C.defaults().c());else if(n&&!s&&!i&&r.length==0)u.push("if(!"+c.c()+"||"+d(c.c())+") "+c.c()+" = {}");else if(i&&r.length==1&&!s&&!n){var g=r[0],b=g.name().c(),S=i.name().c();u.push("if("+S+"==undefined && "+_(b)+") "+S+" = "+b+","+b+" = "+g.defaults().c()),u.push("if("+b+"==undefined) "+b+" = "+g.defaults().c())}else if(i&&n&&r.length==0&&!s)S=i.name().c(),u.push("if("+S+"==undefined && "+_(c.c())+") "+S+" = "+c.c()+","+c.c()+" = {}"),u.push("else if(!"+c.c()+"||"+d(c.c())+") "+c.c()+" = {}");else if(r.length>0||s){var y=this.scope__().temporary(this,{pool:"arguments"}).predeclared().c(),v=this.scope__().temporary(this,{pool:"counter"}).predeclared().c(),m=""+y+"["+v+"-1]",x=""+y+"[--"+v+"]";u.push("var "+y+" = arguments, "+v+" = "+y+".length"),i&&(S=i.name().c(),s?u.push("var "+S+" = "+_(m)+" ? "+x+" : null"):e.length>0?u.push("var "+S+" = "+v+" > "+e.length+" && "+_(m)+" ? "+x+" : null"):u.push("var "+S+" = "+_(m)+" ? "+x+" : null")),n&&u.push("var "+c.c()+" = "+m+"&&"+f(m)+" ? "+x+" : {}");for(let T=0,P=r.length,C;T<P;T++)C=r[T],u.push("if("+v+" < "+(C.index()+1)+") "+C.name().c()+" = "+C.defaults().c());if(s){var k=s.name().c(),E=s.index();E==0?(u.push("var "+k+" = new Array("+v+">"+E+" ? "+v+" : 0)"),u.push("while("+v+">"+E+") "+k+"["+v+"-1] = "+x)):(u.push("var "+k+" = new Array("+v+">"+E+" ? "+v+"-"+E+" : 0)"),u.push("while("+v+">"+E+") "+k+"[--"+v+" - "+E+"] = "+y+"["+v+"]"))}}else if(r.length>0)for(let T=0,P=r.length,C;T<P;T++)C=r[T],u.push("if("+C.name().c()+" === undefined) "+C.name().c()+" = "+C.defaults().c());if(n)for(let T=0,P=Ot(n.nodes()),C=P.length,O;T<C;T++)O=P[T],g=Z(".",c,O.c()).c(),u.push("var "+O.c()+" = "+g+" !== undefined ? "+g+" : "+O.defaults().c());if(o.length)for(let T=0,P=o.length;T<P;T++)o[T].head(t,u,this);return u.length>0?u.join(`;
`)+";":fp};function Yi(){return jt.apply(this,arguments)}I(Yi,jt);A.ScopeVariables=Yi;Yi.prototype.kind=function(t){return this._kind};Yi.prototype.setKind=function(t){return this._kind=t,this};Yi.prototype.split=function(t){return this._split};Yi.prototype.setSplit=function(t){return this._split=t,this};Yi.prototype.add=function(t,e,r){r===void 0&&(r=-1);var i=new Is(t,e);return t instanceof Mt&&i.setVariable(t),r==0?this.unshift(i):this.push(i),i};Yi.prototype.load=function(t){return t.map(function(e){return new Is(e.name(),e.defaults(),e.splat())})};Yi.prototype.isExpressable=function(){return this.nodes().every(function(t){return t.isExpressable()})};Yi.prototype.js=function(t){if(this.count()==0)return fp;if(this.count()==1&&!this.isExpressable())return this.first().variable().autodeclare(),this.first().assignment().c();var e="var",r={};if(this.nodes().forEach(function(s){let n=s._variable||s,o=n instanceof Mt&&n.type();if(o)return r[o]||(r[o]=[]),r[o].push(s)}),r.let&&(r.var||r.const)?r.let.forEach(function(s){return(s._variable||s)._virtual=!0}):r.let&&(e="let"),this.split()){let s=[];for(let n,o=0,a=Object.keys(r),l=a.length,c;o<l;o++)c=a[o],n=r[c],s.push(""+c+" "+Ct.cary(n,{as:"declaration"}).join(", ")+";");return s.join(`
`)}var i=Ct.compact(Ct.cary(this.nodes(),{as:"declaration"})).join(", ");return i?""+e+" "+i:""};function Is(){return de.apply(this,arguments)}I(Is,de);A.VariableDeclarator=Is;Is.prototype.type=function(t){return this._type};Is.prototype.setType=function(t){return this._type=t,this};Is.prototype.visit=function(){var t,e;return(t=this.variable())||this.setVariable(e=this.scope__().register(this.name(),null,{type:this._type||"var"})),this.defaults()&&this.defaults().traverse(),this.variable().setDeclarator(this),this.variable().addReference(this.name()),this};Is.prototype.js=function(t){if(this.variable()._proxy)return null;var e=this.defaults();let r=this.variable().datatype();return e!=null&&e!=null?(e instanceof X&&(e=e.c({expression:!0})),r&&(e=""+r.c()+"("+e+")"),""+this.variable().c()+" = "+e):r?""+this.variable().c()+" = "+r.c()+"(undefined)":""+this.variable().c()};Is.prototype.accessor=function(){return this};function Ze(t,e,r,i){i===void 0&&(i="="),this._op=i,this._left=t,this._right=e,this._kind=r}I(Ze,X);A.VarDeclaration=Ze;Ze.prototype.kind=function(t){return this._kind};Ze.prototype.setKind=function(t){return this._kind=t,this};Ze.prototype.left=function(t){return this._left};Ze.prototype.setLeft=function(t){return this._left=t,this};Ze.prototype.right=function(t){return this._right};Ze.prototype.setRight=function(t){return this._right=t,this};Ze.prototype.op=function(){return this._op};Ze.prototype.type=function(){return this._kind};Ze.prototype.visit=function(t){var e=this;return e._left instanceof It&&e._right instanceof te||e._right&&e._right.traverse(),e._variables=e.scope__().captureVariableDeclarations(function(){if(e._left&&e._left.traverse({declaring:e.type()}),e._left instanceof It)return e._left._variable||(e._left._variable=e.scope__().register(e._left.symbol(),e._left,{type:e.type()}))}),e._right&&e._right.traverse(),e};Ze.prototype.isExpressable=function(){return!1};Ze.prototype.consume=function(t){if(t instanceof Et)return this;if(t instanceof ci||t instanceof sr){let e=this;if(this.right()&&!this.right().isExpressable()){let r=this.scope__().temporary(this),i=this.right().consume(Z("=",r,d1));return this.setRight(r),new Dt([i,Pe,this.consume(t)])}return new Dt([e,Pe,this._left.consume(t)])}return t instanceof sr?new Dt([this,Pe,this._left.consume(t)]):Ze.prototype.__super__.consume.call(this,t)};Ze.prototype.c=function(t){if(this.right()&&!this.right().isExpressable()){let e=this.scope__().temporary(this),r=this.right().consume(Z("=",e,d1));return this.setRight(e),new Dt([r,Pe,this]).c(t)}return Ze.prototype.__super__.c.call(this,t)};Ze.prototype.js=function(){let t="",e=this.kind(),r=this.datatype()||this._left&&this._left.datatype();if(N.tsc()&&this._variables.length>1&&this._variables.some(function(i){return i.vartype()})){e="let";for(let i=0,s=Ot(this._variables),n=s.length,o;i<n;i++)o=s[i],o.vartype()&&(t+=o.vartype().c()+" "),t+=""+ut(e,this.keyword())+" "+o.c()+`;
`;t+="("+this.left().c(),this.right()&&(t+=" = "+this.right().c({expression:!0})),t+=")"}else t+=""+ut(e,this.keyword())+" "+this.left().c(),this.right()&&(t+=" = "+this.right().c({expression:!0}));return this.option("export")&&(t=ut("export",this.option("export"))+(" "+t)),r&&(t=r.c()+`
`+t),t};function us(t,e){us.prototype.__super__.constructor.apply(this,arguments),this._splat=e}I(us,Gt);A.VarName=us;us.prototype.variable=function(t){return this._variable};us.prototype.setVariable=function(t){return this._variable=t,this};us.prototype.splat=function(t){return this._splat};us.prototype.setSplat=function(t){return this._splat=t,this};us.prototype.visit=function(){var t,e;return(t=this.variable())||this.setVariable(e=this.scope__().register(this.value().c(),null)),this.variable().setDeclarator(this),this.variable().addReference(this.value()),this};us.prototype.js=function(t){return this.variable().c()};us.prototype.c=function(){return this.variable().c()};function yr(){return X.apply(this,arguments)}I(yr,X);A.Code=yr;yr.prototype.head=function(t){return this._head};yr.prototype.setHead=function(t){return this._head=t,this};yr.prototype.body=function(t){return this._body};yr.prototype.setBody=function(t){return this._body=t,this};yr.prototype.scope=function(t){return this._scope};yr.prototype.setScope=function(t){return this._scope=t,this};yr.prototype.params=function(t){return this._params};yr.prototype.setParams=function(t){return this._params=t,this};yr.prototype.isStatementLike=function(){return!0};yr.prototype.scopetype=function(){return Rt};yr.prototype.visit=function(){return this._scope&&this._scope.visit(),this};function T2(t,e){this._traversed=!1,this._body=Ct.blk(t),this._scope=new $e(this),this._body.setHead(this._scope.head()),this._options={}}I(T2,yr);A.CodeBlock=T2;T2.prototype.visit=function(){return this._scope.visit(),this._body.traverse(),this};T2.prototype.c=function(){return this._body.c()};function Os(t,e){this._traversed=!1,this._body=Ct.blk(t),this._scope=new pe(this,null),this._options={}}I(Os,yr);A.Root=Os;Os.prototype.loc=function(){return this._body.loc()};Os.prototype.visit=function(){w2=N.ROOT=this._scope;try{if(this.scope().visit(),this.body().traverse(),this.body().first()instanceof fi)return this.body().first()._first=!0}catch(t){let e=am.wrap(t);throw e._sourcePath=xs.sourcePath,e._loc=N.currentRegion(),e}};Os.prototype.compile=function(t,e){if(e===void 0&&(e={}),N.reset(),this._scope.setOptions(xs=N._options=this._options=t||{}),N.setRoot(this._scope),this._scope._imba.configure(t),this.traverse(),N.setRoot(this._scope),t.bundle)if(t.cwd&&N.isNode()){let n=d2.resolve(t.cwd,t.sourcePath),o=d2.relative(t.cwd,n).split(d2.sep).join("/"),a=this._scope.importProxy("path").proxy();this._scope.lookup("__filename").c=function(){return At(""+a.resolve+"("+Qe(o).c()+")").c()},this._scope.lookup("__dirname").c=function(){return At(""+a.dirname+"("+a.resolve+"("+Qe(o).c()+"))").c()}}else this._scope.lookup("__filename")._c=Qe(t.sourcePath).c(),this._scope.lookup("__dirname")._c=Qe(d2.dirname(t.sourcePath)).c();t.onTraversed instanceof Function&&t.onTraversed(this,N);let r=N.css(),i=r.toString();r.transitions&&this.runtime().transitions,i&&(!t.styles||t.styles=="inline")&&this.runtime().styles;var s=this.c(t);if(N.tsc()&&(s=`export {};String();
`+s+`
`,e.sourceCode&&e.sourceCode.match(/(^|[\r\n])\# @nocheck[\n\r]/)&&(s=`// @ts-nocheck
`+s)),e.rawResult={js:s,css:i},e.js=s,e.css=i||"",e.sourceId=this.sourceId(),e.assets=this.scope().assets(),e.universal=N.meta().universal!==!1,!N.tsc()&&e.css&&(!t.styles||t.styles=="inline")){let n=JSON.stringify(e.css);e.js=""+e.js+`
`+this.runtime().styles+".register('"+e.sourceId+"',"+n+");",t.debug,e.js+=`
/*
`+e.css+`
*/
`}if(t.sourcemap||N.tsc()){let n=new lm(e,t).generate();e.sourcemap=n.result(),t.sourcemap=="inline"&&(e.js+=n.inlined())}return t.raw||(e.css&&(e.css=h1.strip(e.css)),e.js=h1.strip(e.js),N.tsc()&&(e.js=e.js.replace(/\*\/\s[\r\n]+(\t*)\/\*\*/gm,function(n){return n.replace(/[^\n\t]/g," ")}))),e};Os.prototype.js=function(t){var e=this.scope().c(),r=[];return e=e.replace(/^[ \t]*\/\/(\!.+)$/mg,function(i,s){return s=s.replace(/\bimba\b/g,"node"),r.push("#"+s+`
`),""}),e=r.join("")+e,e};Os.prototype.analyze=function(t){return t===void 0&&(t={}),N.setLoglevel(t.loglevel||0),N._analyzing=!0,w2=N.ROOT=this._scope,xs=N._options={platform:t.platform,loglevel:t.loglevel||0,analysis:{entities:t.entities||!1,scopes:t.scopes==null?t.scopes=!0:t.scopes}},this.traverse(),N._analyzing=!1,this.scope().dump()};Os.prototype.inspect=function(){return!0};function le(t,e,r){this._traversed=!1,t instanceof he&&(t=t._value),this._name=t,this._superclass=e,this._scope=this.isTag()?new G2(this):new ji(this),this._body=Ct.blk(r)||new Ss([]),this._entities={}}I(le,yr);A.ClassDeclaration=le;le.prototype.name=function(t){return this._name};le.prototype.setName=function(t){return this._name=t,this};le.prototype.superclass=function(t){return this._superclass};le.prototype.setSuperclass=function(t){return this._superclass=t,this};le.prototype.initor=function(t){return this._initor};le.prototype.setInitor=function(t){return this._initor=t,this};le.prototype.consume=function(t){return t instanceof sr?(this.option("return",t),this):le.prototype.__super__.consume.apply(this,arguments)};le.prototype.namepath=function(){return this._namepath||(this._namepath=""+(this.name()?this.name().c():"--"))};le.prototype.metadata=function(){var t;return{type:"class",namepath:this.namepath(),inherits:(t=this.superclass())&&t.namepath&&t.namepath(),path:this.name()&&this.name().c().toString(),desc:this._desc,loc:this.loc(),symbols:this._scope.entities()}};le.prototype.loc=function(){var t;return(t=this.option("keyword"))?[t._loc,this.body().loc()[1]]:le.prototype.__super__.loc.apply(this,arguments)};le.prototype.startLoc=function(){return this._startLoc==null?this._startLoc=dm(this.option("export"),this.option("keyword")):this._startLoc};le.prototype.endLoc=function(){return this._endLoc==null?this._endLoc=_m(this.body()):this._endLoc};le.prototype.toJSON=function(){return this.metadata()};le.prototype.isStruct=function(){return this.keyword()&&String(this.keyword())=="struct"};le.prototype.isExtension=function(){return this.option("extension")};le.prototype.isGlobal=function(){return this.option("global")};le.prototype.isNamespaced=function(){return this._name instanceof se};le.prototype.exportForDts=function(){return N.tsc()?this.isNamespaced()&&(!this._name.left()._variable||this._name.left()._variable.isImported())?!0:this.isNamespaced()&&this._name.left()._variable&&!this._name.left()._variable.isImported()?!1:!!(this.isGlobal()&&!this.option("export")||this.isExtension()&&(!this._name._variable||this._name._variable.isImported())):!1};le.prototype.isTag=function(){return!1};le.prototype.staticInit=function(){return this._staticInit||(this._staticInit=this.addMethod(this.initKey(),[],"this").set({static:!0}))};le.prototype.initKey=function(){return this._initKey||(this._initKey=N.tsc()?N.root().symbolRef("#__init__"):new ii("#__init__"))};le.prototype.patchKey=function(){return this._patchKey||(this._patchKey=N.tsc()?N.root().symbolRef("#__patch__"):new ii("#__patch__"))};le.prototype.initPath=function(){return this._initPath||(this._initPath=Z(".",At("super"),this.initKey()))};le.prototype.virtualSuper=function(){return this._virtualSuper||(this._virtualSuper=this._scope.parent().declare("tmp",null,{system:!0,type:"let"}))};le.prototype.classReference=function(){return this._name};le.prototype.instanceInit=function(){if(this._instanceInit)return this._instanceInit;let t=or.callOp(this.initKey());this._superclass&&(t=Z("&&",At("deep"),Z("&&",Z(".",At("super"),this.initKey()),t)));let e=this.addMethod(this.initKey(),[],this.isTag()||this._superclass?[t,Pe]:"",{},function(r){return!0});return e.set({noreturn:!0}),e.params().at(0,!0,"$$",At("null")),e.params().at(1,!0,"deep",At("true")),this._instanceInit=e};le.prototype.instancePatch=function(){if(this._instancePatch)return this._instancePatch;let t=[],e=this.addMethod(this.patchKey(),[],t,{},function(i){return!0}),r=e._params.at(0,!0,"$$",At("{}"));if(this._superclass){let i=or.callOp(this.patchKey(),[r]);i=Z("&&",Z(".",At("super"),this.patchKey()),i),e.inject(i)}return
`)}let c=this.body().c(),u=ut("class",this.keyword());if(this.name())u+=" "+ut(i,this.name());else if(e instanceof De)try{u+=" "+e._value._symbol}catch{}o&&(l=ut(o),u+=" extends "+l),this.name()instanceof se&&!this.exportForDts()&&!this.isExtension()&&(u=""+this.name().c()+" = "+u),(this.option("export")||N.tsc()&&this.exportForDts())&&(this.option("default")?u=""+ut("export",this.option("export"))+" "+ut("default",this.option("default"))+" "+u:u=""+ut("export",this.option("export"))+" "+u);let _=""+u+" {"+c+"}";if(this.isExtension()&&!N.tsc()){let f=this instanceof Uh?At(this._className.c()):At(""+this._className.c()+".prototype");if(this._virtualSuper){let d=Z("=",this._virtualSuper,this.util().virtualSuper(f));f=At("("+d.c()+","+f.c()+")")}_+=`;
`+this.util().extend(f,At(""+a+".prototype")).c()+`;
`}if(this.option("global")&&!N.tsc()){let f=this.name()instanceof se,d=this.name()instanceof se?this.name().c():this._cname;N.tsc()?_=""+_+";"+(f?"":" export {"+this._cname+"};")+" "+this.scope__().root().globalRef()+"."+this._cname+" = "+d:_=""+_+"; "+this.scope__().root().globalRef()+"."+this._cname+" = "+d}return N.tsc()&&this._exportName&&(_=""+_+"; export {"+this._ownName+" as "+this._exportName+"}"),_};function Uh(){return le.apply(this,arguments)}I(Uh,le);A.ExtendDeclaration=Uh;function ar(){return le.apply(this,arguments)}I(ar,le);A.TagDeclaration=ar;ar.prototype.isTag=function(){return!0};ar.prototype.isInitingFields=function(){return!0};ar.prototype.namepath=function(){return"<"+this.name()+">"};ar.prototype.metadata=function(){return Object.assign(ar.prototype.__super__.metadata.apply(this,arguments),{type:"tag"})};ar.prototype.cssns=function(){return this._cssns||(this._cssns=this._scope.cssns())};ar.prototype.cssid=function(){return this._cssid||(this._cssid=this._scope.cssid())};ar.prototype.classReference=function(){return At(this._name.toClassName())};ar.prototype.cssref=function(t){if(this.isNeverExtended()&&!this.superclass())return this._cssns;if(t){let e=t.closure();return e.memovar("_ns_",Z("||",Z(".",e.context(),"_ns_"),Qe("")))}else return Z("||",Z(".",hr,"_ns_"),Qe(""))};ar.prototype.isNeverExtended=function(){return this.name()&&this.name().isClass()?!this.option("export")&&!this.option("extended"):!1};ar.prototype.visit=function(){N.hmr()&&(this.cssid(),this.cssns()),ar.prototype.__super__.visit.apply(this,arguments);let t=this.superclass();if(this._config={},t&&!N.tsc()){if(t.isNative()||t.isNativeSVG()){let e=t.nativeCreateNode();e=this.util().extendTag(e,hr),this.addMethod("create$",[],[e]).set({static:!0}),this.set({extends:We.wrap({extends:t.name()})}),this._config.extends=t.name()}else if(t.isClass()){t.resolveVariable(this.scope__().parent());let e=t._variable&&t._variable.value();e&&e.set({extended:this})}}if(this._elementReferences){for(let e=this._elementReferences,r,i=0,s=Object.keys(e),n=s.length,o;i<n;i++)if(o=s[i],r=e[o],N.tsc()){let a=r.option("reference"),l=r.type(),c=""+ut(Ct.sym(a),a);l&&l.toClassName&&(c+=" = new "+l.toClassName()),this.body().unshift(At(c+";"),!0)}}if(!N.tsc()&&this.name()&&this.name().toNodeName&&!this.option("extension")){let e=this.name().toNodeName();e.indexOf("-")==-1&&(e=e+"-tag"),N.css().add(e+" { display:block; }")}this.option("export")&&this.name()&&this.name().isLowerCase&&this.name().isLowerCase()&&this.warn("Lowercased tags are globally available - not exportable",{loc:this.option("export")})};ar.prototype.addElementReference=function(t,e){let r=this._elementReferences||(this._elementReferences={});return r[t]&&r[t]!=e?e.warn("Duplicate elements with same reference",{loc:t}):(r[t]=e,e.set({tagdeclbody:this._body})),e};ar.prototype.js=function(t){this.scope().virtualize(),this.scope().context().setValue(this.name()),this.scope().context().setReference(this.name());let e=this.name().toClassName(),r=this.superclass(),i=!this.option("extension")&&!this.name().isClass()&&N.tsc();if(r&&r._variable?r=r._variable:r?r=Ve(this.runtime().getSuperTagType,[r,Qe(r.toClassName()),this.runtime().Component]):r=this.runtime().Component,N.tsc())if(r=this.superclass()?this.superclass().toClassName():At("imba.Component"),this.option("extension")){let l="class "+this._mixinName.c(),c=this.body().c();return N.tsc(),l=""+l+" {"+c+"}",this._name._variable||(l="export "+l),l}else this.body().unshift(At(`static $$TAG$$
`));else if(this.option("extension")){let c=this._name._variable||Ve(this.runtime().getTagType,[this.name(),Qe(this.name().toClassName())]);(e=="ImbaElement"||e=="imba.Component")&&(c=this.runtime().Component);let u=new ue(this.name()),_="(class {"+this.body().c()+"}).prototype";return this.util().extend(""+c.c()+".prototype",At(_)).c()}else this.name().isNative()&&this.name().error("tag "+this.name().symbol()+" already exists");let s=this.scope__().parent(),n=this.body().c(),o=""+ut("class",this.keyword())+" "+ut(e,this.name())+" extends "+ut(r,this.superclass());this.option("export")&&(this.option("default")?o=""+ut("export",this.option("export"))+" "+ut("default",this.option("default"))+" "+o:o=""+ut("export",this.option("export"))+" "+o),i&&N.tsc()&&(o="export "+o);let a=""+o+" {"+n+"}";if(this._cssns&&(this._config.cssns=this.cssns()),this._cssid&&(this._config.cssid=this.cssid()),!N.tsc()){this._staticInit&&(a+="; "+Z(".",At(e),this.initKey()).c()+"()");let l=We.wrap(this._config).c();this.name().isClass()&&(this._config.name=this.name().symbol()),a+="; "+this.runtime().defineTag+"("+this.name().c()+","+e+","+l+")"}return N.tsc()&&(this.option("global")||this.name().isClass()),a};function te(t,e,r,i,s){this._options=s;var n=this.scopetype();this._traversed=!1,this._body=Ct.blk(e),this._scope||(this._scope=s&&s.scope||new n(this)),this._scope.setParams(this._params=new ti(t)),this._name=r||"",this._target=i,this._type="function",this._variable=null}I(te,yr);A.Func=te;te.prototype.name=function(t){return this._name};te.prototype.setName=function(t){return this._name=t,this};te.prototype.params=function(t){return this._params};te.prototype.setParams=function(t){return this._params=t,this};te.prototype.target=function(t){return this._target};te.prototype.setTarget=function(t){return this._target=t,this};te.prototype.options=function(t){return this._options};te.prototype.setOptions=function(t){return this._options=t,this};te.prototype.type=function(t){return this._type};te.prototype.setType=function(t){return this._type=t,this};te.prototype.context=function(t){return this._context};te.prototype.setContext=function(t){return this._context=t,this};te.prototype.scopetype=function(){return L1};te.prototype.inject=function(t,e){return this._body.add([t,Pe],e)};te.prototype.nonlocals=function(){return this._scope._nonlocals};te.prototype.returnType=function(){return this.datatype()};te.prototype.visit=function(t,e){return t._descriptor&&!t.tsc()&&(this._scope=new Bi(this),this._scope.setParams(this._params)),this.scope().visit(),this._context=this.scope().parent(),this._params.traverse({declaring:"arg"}),this._body.traverse()};te.prototype.funcKeyword=function(){let t="function";return this.option("async")&&(t="async "+t),t};te.prototype.jsdoc=function(){let t=[];this._desc&&(this._desc._skip=!0,t.push(this._desc.toString()));for(let r=0,i=Ot(this._params.nodes()),s=i.length,n;r<s;r++)n=i[r],n instanceof de&&n.datatype()&&t.push(n.jsdoc());if(this.option("inExtension")&&this._target){let r=this._context.node(),i=this._context.node()._className;if(i&&N.tsc()){let s=i.c();r.option("instanceOnly")?s="typeof "+s:s="InstanceType<typeof "+s+">"}}this.option("jsdocthis")&&t.push("@this "+this.option("jsdocthis")),this.returnType()&&t.push("@returns { "+this.returnType().asRawType()+" }");let e=t.join(`
`);return e?`/**
`+e+`
*/
`:""};te.prototype.js=function(t,e){this.option("noreturn")||this.body().consume(new Gn);var r=this.body()._indentation;r&&r.isGenerated()&&(this.body()._indentation=null);var i=this.scope().c({indent:!r||!r.isGenerated(),braces:!0}),s=typeof this._name=="string"?this._name:this._name.c();s=s?" "+s.replace(/\./g,"_"):"";var n=e&&e.keyword!=null?e.keyword:this.funcKeyword(),o=""+ut(n,this.option("def")||this.option("keyword"))+ye.toValidIdentifier(s)+"("+this.params().c()+") "+i;return this.option("eval")&&(o="("+o+")()"),o};te.prototype.shouldParenthesize=function(t){return t===void 0&&(t=this.up()),t instanceof ke&&t.callee()==this};function Mi(){return te.apply(this,arguments)}I(Mi,te);A.IsolatedFunc=Mi;Mi.prototype.leaks=function(t){return this._leaks};Mi.prototype.setLeaks=function(t){return this._leaks=t,this};Mi.prototype.scopetype=function(){return z2};Mi.prototype.isStatic=function(){return!0};Mi.prototype.isPrimitive=function(){return!0};Mi.prototype.visit=function(t){var e=this,r;if(Mi.prototype.__super__.visit.apply(e,arguments),!t.tsc())return(r=e._scope._leaks)&&(e._leaks=[],r.forEach(function(i,s){return i._proxy=e._params.at(e._params.count(),!0),e._leaks.push(s)})),e};function E2(){return te.apply(this,arguments)}I(E2,te);A.Lambda=E2;E2.prototype.scopetype=function(){var t=this.option("keyword");return t&&t._value=="ƒ"?Bi:la};function Hh(){return te.apply(this,arguments)}I(Hh,te);A.ClosedFunc=Hh;Hh.prototype.scopetype=function(){return Bi};function qh(){return te.apply(this,arguments)}I(qh,te);A.TagFragmentFunc=qh;qh.prototype.scopetype=function(){return this.option("closed")?Bi:la};function Ce(){return te.apply(this,arguments)}I(Ce,te);A.MethodDeclaration=Ce;Ce.prototype.variable=function(t){return this._variable};Ce.prototype.setVariable=function(t){return this._variable=t,this};Ce.prototype.decorators=function(t){return this._decorators};Ce.prototype.setDecorators=function(t){return this._decorators=t,this};Ce.prototype.scopetype=function(){return Bi};Ce.prototype.consume=function(t){return t instanceof sr?(this.option("return",!0),this):Ce.prototype.__super__.consume.apply(this,arguments)};Ce.prototype.identifier=function(){return this._name};Ce.prototype.rawName=function(){return this._name instanceof It?this._name.toRaw():""};Ce.prototype.metadata=function(){return{type:"method",name:""+this.name(),namepath:this.namepath(),params:this._params.metadata(),desc:this._desc,scopenr:this.scope()._nr,loc:this.loc()}};Ce.prototype.loc=function(){var t;if(t=this.option("def")){let e=this.body().option("end")||this.body().loc()[1];return[t._loc,e]}else return[0,0]};Ce.prototype.isGetter=function(){return this._type=="get"};Ce.prototype.isSetter=function(){return this._type=="set"};Ce.prototype.isConstructor=function(){return String(this.name())=="constructor"};Ce.prototype.isMember=function(){return!this.option("static")};Ce.prototype.toJSON=function(){return this.metadata()};Ce.prototype.namepath=function(){if(this._namepath)return this._namepath;var t=String(this.name().c()),e=this.option("static")?".":"#";if(this.target()){let r=this.target();return r.namepath()=="ValueNode"&&(r=this._context.node()),this._namepath=r.namepath()+e+t}else return this._namepath="&"+t};Ce.prototype.visit=function(){var t,e,r;this._type=this.option("type")||(t=this.option("def"))&&t._value||"def",this._decorators=(e=this.up())&&e.collectDecorators&&e.collectDecorators();var i=this._options;if(this.scope().visit(),this.option("inObject"))return this._params.traverse(),this._body.traverse(),this;var s=this._context=this.scope().parent().closure();if(s instanceof pe&&!this.target()&&!(this._name instanceof zn)?this.scope()._context=s.context():s instanceof Bi&&!this.target()&&!(this._name instanceof zn)&&(this.scope()._selfless=!0),this._params.traverse(),this._name.isPredicate&&this._name.isPredicate()&&!this.isSetter()&&!this.isGetter()&&this._name.warn("Only getters/setters should end with ?"),this.target()instanceof It&&(r=this.scope().lookup(this.target().toString()))&&this.setTarget(r),String(this.name())=="initialize"&&s
`)};bi.prototype.toArray=function(){return this._nodes.map(function(e,r){return e instanceof wr&&e._type=="NEOSTRING"?new ve('"'+e._value+'"'):e})};bi.prototype.js=function(t,e){var r=this,i=String(r.option("open")||'"');if(i.length==3&&(i=i[0]),e&&e.as=="template"){var s=[];return r._nodes.map(function(a,l){if(a instanceof wr&&a._type=="NEOSTRING")return s.push(r.escapeString(a._value));if(a)return s.push("${",a.c({expression:!0}),"}")}),"`"+s.join("")+"`"}else{var n=r._noparen;s=[];var o=n?"":"(";r._nodes.map(function(a,l){if(a instanceof wr&&a._type=="NEOSTRING")return s.push(i+r.escapeString(a._value)+i);if(a)return l==0&&s.push('""'),a._parens=!0,s.push(a.c({expression:!0}))}),o+=s.join(" + "),n||(o+=")")}return o};function Qs(){return Ne.apply(this,arguments)}I(Qs,Ne);A.Symbol=Qs;Qs.prototype.isValidIdentifier=function(){return!!this.raw().match(/^[a-zA-Z\$\_]+[\d\w\$\_]*$/)};Qs.prototype.isPrimitive=function(t){return!0};Qs.prototype.raw=function(){return this._raw||(this._raw=Ct.sym(this.value().toString().replace(/^\:/,"")))};Qs.prototype.js=function(t){return"'"+Ct.sym(this.raw())+"'"};function f1(){return Ne.apply(this,arguments)}I(f1,Ne);A.RegExp=f1;f1.prototype.isPrimitive=function(){return!0};f1.prototype.js=function(){var t,e=f1.prototype.__super__.js.apply(this,arguments);if(t=Zo.HEREGEX.exec(e)){var r=t[1].replace(Zo.HEREGEX_OMIT,"").replace(/\//g,"\\/");return"/"+(r||"(?:)")+"/"+t[2]}return e=="//"?"/(?:)/":e};function Be(){return Ne.apply(this,arguments)}I(Be,Ne);A.Arr=Be;Be.prototype.load=function(t){return t instanceof Array?new pr(t):t};Be.prototype.push=function(t){return this.value().push(t),this};Be.prototype.count=function(){return this.value().length};Be.prototype.nodes=function(){var t=this.value();return t instanceof Array?t:t.nodes()};Be.prototype.splat=function(){return this.value().some(function(t){return t instanceof $n})};Be.prototype.visit=function(){return this._value&&this._value.traverse&&this._value.traverse(),this};Be.prototype.isPrimitive=function(t){return!this.value().some(function(e){return!e.isPrimitive(!0)})};Be.prototype.js=function(t){var e=this._value;if(!e)return"[]";var r=e instanceof Array?e:e.nodes(),i=e instanceof Array?Ct.cary(e):e.c();return i="["+i+"]",this.datatype()&&N.tsc()&&(i=this.datatype().c()+"("+i+")"),i};Be.prototype.hasSideEffects=function(){return this.value().some(function(t){return t.hasSideEffects()})};Be.prototype.toString=function(){return"Arr"};Be.prototype.indented=function(t,e){return this._value.indented(t,e),this};Be.wrap=function(t){return new Be(t)};function We(){return Ne.apply(this,arguments)}I(We,Ne);A.Obj=We;We.prototype.load=function(t){return t instanceof Array?new Xo(t):t};We.prototype.visit=function(){return this._value&&this._value.traverse(),this};We.prototype.isPrimitive=function(t){return!this.value().some(function(e){return!e.isPrimitive(!0)})};We.prototype.js=function(t){return"{"+this.value().c()+"}"};We.prototype.add=function(t,e){(typeof t=="string"||t instanceof String||t instanceof wr)&&(t=new It(t));var r=new kr(t,e);return this.value().push(r),r};We.prototype.remove=function(t){for(let e=0,r=Ot(this.value()),i=r.length,s;e<i;e++)s=r[e],s.key().symbol()==t&&this.value().remove(s);return this};We.prototype.keys=function(){return Object.keys(this.hash())};We.prototype.hash=function(){var t={};for(let e=0,r=Ot(this.value()),i=r.length,s;e<i;e++)s=r[e],s instanceof kr&&(t[s.key().symbol()]=s.value());return t};We.prototype.key=function(t){for(let e=0,r=Ot(this.value()),i=r.length,s;e<i;e++)if(s=r[e],s instanceof kr&&s.key().symbol()==t)return s;return null};We.prototype.indented=function(t,e){return this._value.indented(t,e),this};We.prototype.hasSideEffects=function(){return this.value().some(function(t){return t.hasSideEffects()})};We.wrap=function(t){var e=[];for(let r,i=0,s=Object.keys(t),n=s.length,o;i<n;i++)o=s[i],r=t[o],r instanceof Array?r=Be.wrap(r):r.constructor==Object&&(r=We.wrap(r)),r=mm(r),(typeof o=="string"||o instanceof String)&&(o=new It(o)),e.push(new kr(o,r));return new We(e)};We.prototype.toString=functi
`;return this._value instanceof We&&(r="("+r+")"),n+=""+r,n}r=""+this._type+" "+r,this.option("export")&&(r=""+ut("export",this.option("export"))+" "+r),!this._right&&i&&(r=i.c()+" "+r)}return r};function Ge(t,e,r){return this._expression=!1,this._traversed=!1,this._parens=!1,this._cache=null,this._invert=!1,this._opToken=t,this._op=t&&t._value||t,this._left=e,this._right=r,this}I(Ge,re);A.Assign=Ge;Ge.prototype.isExpressable=function(){return!this.right()||this.right().isExpressable()};Ge.prototype.isUsed=function(){return!(this.up()instanceof Dt)};Ge.prototype.visit=function(){var t=this._left,e=this._right;t instanceof he&&e instanceof he&&t._identifier.symbol()==e._identifier.symbol()&&(this._left=t=new se(".",this.scope__().context(),t._value)),t instanceof De&&e instanceof E2&&t.traverse(),e&&e.traverse({assignment:!0}),t&&t.traverse();let r=N.up();return t instanceof De&&!(r instanceof Dt)&&!(r instanceof Hi)&&!(r instanceof As)&&t.forceExpression(),this};Ge.prototype.c=function(t){return this.right().isExpressable()?Ge.prototype.__super__.c.call(this,t):(this.left()instanceof De&&(!(this.right()instanceof Fe)||this._expression)&&this.left().forceExpression(),this.right().consume(this).c(t))};Ge.prototype.js=function(t){var e,r;if(!this.right().isExpressable())return this.p("Assign#js right is not expressable "),this.left()instanceof De&&this.left().forceExpression(),this.right().consume(this).c();this._expression&&this.left().forceExpression();var i=this.left().node(),s=this.right(),n=null;if(i instanceof se&&i.left()instanceof or,i instanceof Vr){var o=this.scope__().context();i=o.reference()}if(i instanceof De)return i._right=s,i.c();i instanceof se&&i._left._value=="OPS"&&N.tsc()&&(n="globalThis."+ut(ye.toNamespacedIdentifier("OPS",String(i._right)),i._right)),n||(n=i.c());var a=""+n+" "+this.op()+" "+this.right().c({expression:!0});return(r=this.datatype()||i&&!(i instanceof De)&&i.datatype())&&(a=r.c()+" "+a),i instanceof We&&(a="("+a+")"),a};Ge.prototype.shouldParenthesize=function(t){return t===void 0&&(t=this.up()),this._parens||t instanceof re&&t.op()!="="};Ge.prototype.consume=function(t){if(t instanceof Et)return this.right()instanceof Et?(this.right().set({assign:this.left()}),this.right().consume(t)):this;if(t instanceof sr&&this.left()instanceof De){if(N.tsc()){let r=this._right,i=this._left._variables,s=i[0]?new Xh(i[0]).consume(t):t;return new Dt([this,Pe,s])}this.left().forceExpression()}if(this.isExpressable())return this.forceExpression(),Ge.prototype.__super__.consume.call(this,t);var e=this.right().consume(this);return e.consume(t)};function ci(){return Ge.apply(this,arguments)}I(ci,Ge);A.PushAssign=ci;ci.prototype.consumed=function(t){return this._consumed};ci.prototype.setConsumed=function(t){return this._consumed=t,this};ci.prototype.register=function(t){return this._consumed||(this._consumed=[]),this._consumed.push(t),this};ci.prototype.js=function(t){return""+this.left().c()+".push("+this.right().c()+")"};ci.prototype.consume=function(t){return this};function k1(){return ci.apply(this,arguments)}I(k1,ci);A.TagPushAssign=k1;k1.prototype.js=function(t){return""+this.left().c()+".push("+this.right().c()+")"};k1.prototype.consume=function(t){return this};function Jh(){return Ge.apply(this,arguments)}I(Jh,Ge);A.ConditionalAssign=Jh;function $s(){return Ge.apply(this,arguments)}I($s,Ge);A.CompoundAssign=$s;$s.prototype.consume=function(t){if(this.isExpressable())return $s.prototype.__super__.consume.apply(this,arguments);var e=this.normalize();return e!=this||(e=this.right().consume(this)),e.consume(t)};$s.prototype.normalize=function(){var t=this.left().node();if(!(t instanceof Ts))return this;t.left()&&t.left().cache();var e=Z("=",this.left(),Z(this.op()[0],this.left(),this.right()));return e.isExpressable()&&e.toExpression(),e};$s.prototype.c=function(){var t=this.normalize();if(t==this)return $s.prototype.__super__.c.apply(this,arguments);var e=N.current();return e instanceof Dt&&e.replace(this,t),t.c()};function cs(t){this._value=t}I(cs,X);A.TypeAnnotation=cs;cs.prototype.add=function(t)
`+this.fallback().c({indent:!0})),"switch ("+this.source().c()+") "+ye.bracketize(Ct.cary(e).join(`
`),!0)};function hs(t,e){this._traversed=!1,this._test=t,this._body=Ct.blk(e),this._scope=new P1(this)}I(hs,hn);A.SwitchCase=hs;hs.prototype.test=function(t){return this._test};hs.prototype.setTest=function(t){return this._test=t,this};hs.prototype.body=function(t){return this._body};hs.prototype.setBody=function(t){return this._body=t,this};hs.prototype.visit=function(){return this.scope__().visit(),this.body().traverse()};hs.prototype.consume=function(t){return this.body().consume(t),this};hs.prototype.autobreak=function(){return this.body().last()instanceof p1||this.body().push(new p1),this};hs.prototype.js=function(t){this._test instanceof Array||(this._test=[this._test]);var e=this._test.map(function(r){return"case "+r.c()+": "});return e.join(`
`)+this.body().c({indent:!0,braces:!0})};function Jn(t,e,r){this._traversed=!1,this._body=Ct.blk(t),this._catch=e,this._finally=r}I(Jn,hn);A.Try=Jn;Jn.prototype.body=function(t){return this._body};Jn.prototype.setBody=function(t){return this._body=t,this};Jn.prototype.consume=function(t){return this._body=this._body.consume(t),this._catch&&(this._catch=this._catch.consume(t)),this._finally&&(this._finally=this._finally.consume(t)),this};Jn.prototype.visit=function(){if(this._body.traverse(),this._catch&&this._catch.traverse(),this._finally)return this._finally.traverse()};Jn.prototype.js=function(t){var e="try "+this.body().c({braces:!0,indent:!0});return this._catch&&(e+=" "+this._catch.c()),this._finally&&(e+=" "+this._finally.c()),this._catch||this._finally||(e+=" catch (e) { }"),e+=";",e};function Zn(t,e){this._traversed=!1,this._body=Ct.blk(t||[]),this._scope=new lp(this),this._varname=e}I(Zn,hn);A.Catch=Zn;Zn.prototype.body=function(t){return this._body};Zn.prototype.setBody=function(t){return this._body=t,this};Zn.prototype.consume=function(t){return this._body=this._body.consume(t),this};Zn.prototype.visit=function(){if(this._scope.visit(),this._variable=this._scope.register(this._varname,this,{type:"let",pool:"catchvar"}),b2(this._body)==0){let t=this._variable.accessor(),e=t;N.tsc()&&(t=zd(At(""+t.c()+" instanceof Error"),t)),this._body.push(t)}return this._body.traverse()};Zn.prototype.js=function(t){return"catch ("+this._variable.c()+") "+this._body.c({braces:!0,indent:!0})};function E1(t){this._traversed=!1,this._body=Ct.blk(t||[])}I(E1,hn);A.Finally=E1;E1.prototype.visit=function(){return this._body.traverse()};E1.prototype.consume=function(t){return this};E1.prototype.js=function(t){return"finally "+this._body.c({braces:!0,indent:!0})};function Qn(){return re.apply(this,arguments)}I(Qn,re);A.Range=Qn;Qn.prototype.inclusive=function(){return this.op()==".."};Qn.prototype.c=function(){return"range"};function $n(){return Gt.apply(this,arguments)}I($n,Gt);A.Splat=$n;$n.prototype.js=function(t){return"..."+this.value().c();var e};$n.prototype.node=function(){return this.value()};function ze(t){ze.prototype.__super__.constructor.apply(this,arguments),this._static=!0,this._nodes=[this._single=t]}I(ze,X);A.IdentifierExpression=ze;ze.prototype.single=function(t){return this._single};ze.prototype.setSingle=function(t){return this._single=t,this};ze.wrap=function(t){return t};ze.prototype.add=function(t){return this._nodes.push(t),this._single=null,this};ze.prototype.isPrimitive=function(){return this._single&&this._single instanceof wr};ze.prototype.isStatic=function(){return this.isPrimitive()};ze.prototype.visit=function(){for(let t=0,e=Ot(this._nodes),r=e.length,i;t<r;t++)i=e[t],i instanceof X&&i.traverse();return this};ze.prototype.asObjectKey=function(){return this.isPrimitive()?""+this._single.c():this._single?"["+this._single.c()+"]":"["+this.asString()+"]"};ze.prototype.startLoc=function(){var t;return(t=this._nodes[0])&&t.startLoc&&t.startLoc()};ze.prototype.endLoc=function(){var t;return(t=this._nodes[this._nodes.length-1])&&t.endLoc&&t.endLoc()};ze.prototype.asIdentifier=function(){return this._single?"["+this._single.c()+"]":"["+this.asString()+"]"};ze.prototype.asString=function(){let t="`";this.option("prefix")&&(t+=this.option("prefix"));for(let e=0,r=Ot(this._nodes),i=r.length,s;e<i;e++)s=r[e],s instanceof wr?t+=s.value():(t+="${",t+=s.c(),t+="}");return t+="`",t};ze.prototype.toRaw=function(){return this._single?this._single.c():""};ze.prototype.toString=function(){return this.toRaw()};ze.prototype.js=function(t,e){return e===void 0&&(e={}),e.as=="string"||t.parent()instanceof zt?this.asString():e.as=="key"?this.asObjectKey():e.as=="access"?!0:this._single&&this._single instanceof X?this._single.c(e):this.asString()};function ge(t,e){this._name=this.load(t),this._tag=e,this._chain=[],this._special=!1,this._params=null}I(ge,X);A.TagPart=ge;ge.prototype.name=function(t){return this._name};ge.prototype.setName=function(t){return this._name=t,this};ge.prototype.value=function(t){return this._value};ge.
`;for(let r=0,i=Ot(this.modifiers()),s=i.length;r<s;r++)e+=i[r].c()+`;
`;return e+="})",e}if(this._standalone){let e=this._tag,r=""+e.cvar()+"["+this.osym()+"]",i=this.modifiers(),s=i.extractDynamics(),n=!1,o=[],a=function(c){return o.push(c)},l=e.hvar();a(""+e.hvar()+" = "+r+" || ("+r+"="+i.c(t)+")");for(let c=0,u=Ot(s),_=u.length,f;c<_;c++){f=u[c];let d=f.option("key"),g=f.option("index"),b=""+Z(".",l,d).c()+"["+g+"]";d=="options"?(n=!0,a("("+this.vvar()+"="+f.c(t)+","+this.vvar()+"==="+b+" || ("+b+"="+this.vvar()+","+this.dvar()+"|="+Te.DIFF_MODIFIERS+"|"+Te.DIFF_INLINE+"))")):a(""+b+"="+f.c(t))}return a(""+e.bvar()+" || "+e.ref()+".on$("+this.quoted()+","+l.c()+","+this.scope__().context().c()+")"),n&&a(""+e.dvar()+"&"+Te.DIFF_INLINE+" && ("+e.dvar()+"^="+Te.DIFF_INLINE+","+l+"["+this.gsym("#visit")+"]?.())"),"("+o.join(`,
`)+")"}return""+this.tagRef()+".on$("+this.quoted()+","+this.modifiers().c()+","+this.scope__().context().c()+")"};_r.prototype.consume=function(t){return t instanceof Et&&(this._tag=t,this._standalone=!0),this};function Un(){return Gt.apply(this,arguments)}I(Un,Gt);A.TagHandlerCallback=Un;Un.prototype.visit=function(){let t=this.value();if(t instanceof Re&&(t=t.value()),t instanceof te&&(t=t.body()),t instanceof se||t instanceof he){let e=t;t=Ve(t,[At("e")]),t._args._startLoc=e.endLoc(),t._args._endLoc=e.endLoc()}if(this.setValue(new(N.tsc()?te:Mi)([],[t],null,{})),this.value()instanceof te){let e=this.value().params().at(0,!0,"e"),r=this.value().params().at(1,!0,"$$")}this.value().traverse()};function As(){return jt.apply(this,arguments)}I(As,jt);A.TagBody=As;As.prototype.add=function(t,e){return t instanceof bi&&(t=t.toArray(),t.length==1&&(t=new Jo(t[0]))),As.prototype.__super__.add.call(this,t,e)};As.prototype.consume=function(t){return t instanceof Et?(this._nodes=this._nodes.map(function(e){return e instanceof ri?e:e.consume(t)}),this):As.prototype.__super__.consume.apply(this,arguments)};function Et(t){t===void 0&&(t={}),this._options=t,this._flags=0,this._tagvars={},this.setup(t)}I(Et,X);Et.prototype.isIndexableInLoop=function(){return!1};Et.prototype.sourceId=function(){return this._sourceId||(this._sourceId=N.sourceId()+"-"+this.oid())};Et.prototype.body=function(){return this._body||this._options.body};Et.prototype.value=function(){return this._options.value};Et.prototype.isReactive=function(){return!0};Et.prototype.isDetached=function(){return this.option("detached")};Et.prototype.isSVG=function(){return this._isSVG==null?this._isSVG=this._parent?this._parent.isSVG():!1:this._isSVG};Et.prototype.parentTag=function(){let t=this._parent;for(;t&&!(t instanceof ne);)t=t._parent;return t};Et.prototype.tagLikeParents=function(){let t=[],e=this._parent;for(;e instanceof Et;)t.push(e),e=e.parent();return t};Et.prototype.setup=function(){return this._traversed=!1,this._consumed=[],this};Et.prototype.osym=function(t){return t===void 0&&(t=""),N.getSymbol(this.oid()+t,y2.SYM+(this.tagvarprefix()||"")+t)};Et.prototype.root=function(){return this._parent?this._parent.root():this};Et.prototype.register=function(t){return t instanceof ce||t instanceof pi?(this.flag(Te.TAG_HAS_BRANCHES),t=new Ke({body:t})):t instanceof Fe?(this.flag(Te.TAG_HAS_LOOPS),t=new Pr({body:t.body(),value:t})):t instanceof ne?t.isSlot()&&this.flag(Te.TAG_HAS_DYNAMIC_CHILDREN):t instanceof re?(t=t.opToIfTree(),t instanceof ce?(this.flag(Te.TAG_HAS_BRANCHES),t=new Ke({body:t})):(this.flag(Te.TAG_HAS_DYNAMIC_CHILDREN),t=new Ui({value:t}))):t instanceof xr||(t instanceof ve||this.flag(Te.TAG_HAS_DYNAMIC_CHILDREN),t=new Ui({value:t})),this._consumed.push(t),t._consumedBy=this,t._parent=this,t};Et.prototype.flag=function(t){return this._flags|=t};Et.prototype.type=function(){return"frag"};Et.prototype.unflag=function(t){return this._flags=this._flags&~t};Et.prototype.hasFlag=function(t){return this._flags&t};Et.prototype.isAbstract=function(){return!0};Et.prototype.isOnlyChild=function(){return this.isFirstChild()&&this.isLastChild()};Et.prototype.isFirstChild=function(){return this.hasFlag(Te.TAG_FIRST_CHILD)};Et.prototype.isLastChild=function(){return this.hasFlag(Te.TAG_LAST_CHILD)};Et.prototype.isIndexed=function(){return this.option("indexed")};Et.prototype.isComponent=function(){return this._kind=="component"};Et.prototype.isSelf=function(){return this.type()instanceof Vr||this.type()instanceof Rs};Et.prototype.isShadowRoot=function(){return this._tagName&&this._tagName=="shadow-root"};Et.prototype.isSlot=function(){return this._kind=="slot"};Et.prototype.isFragment=function(){return this._kind=="fragment"};Et.prototype.isMemoized=function(){return!this.option("unmemoized")};Et.prototype.hasLoops=function(){return this.hasFlag(Te.TAG_HAS_LOOPS)};Et.prototype.hasBranches=function(){return this.hasFlag(Te.TAG_HAS_BRANCHES)};Et.prototype.hasDynamicChildren=function(){return this.hasFlag(Te.TAG_HAS_DYNAMIC_CHILDREN)};Et.prototype.hasDynamicFlags=functi
`)};function Pr(){return Et.apply(this,arguments)}I(Pr,Et);A.TagLoopFragment=Pr;Pr.prototype.isKeyed=function(){return this.option("keyed")||this.hasFlag(Te.TAG_HAS_BRANCHES)};Pr.prototype.isIndexableInLoop=function(){return!0};Pr.prototype.consumeChildren=function(){return Pr.prototype.__super__.consumeChildren.apply(this,arguments),this.hasFlag(Te.TAG_HAS_BRANCHES)?this.set({keyed:!0}):this._consumed.every(function(t){return t instanceof Et&&t.isIndexableInLoop()})?this.set({indexed:!0}):this.set({keyed:!0})};Pr.prototype.cvar=function(){return this._cvar||this.tagvar("C")};Pr.prototype.js=function(t){if(this.stack().isExpression())return Ve(Qo([],[this],this.stack().scope()),[]).c();if(N.tsc())return""+this.tvar()+` = new DocumentFragment;
`+this.value().c(t);this.parent()instanceof Pr&&this.parent().isKeyed()&&this.set({detached:!0}),this.parent()instanceof Ke&&this.set({detached:!0}),this.parent()&&!this._consumedBy&&this.set({detached:!0});let e=this.option("indexed")?this.runtime().createIndexedList:this.runtime().createKeyedList,r=this.parent().cvar(),i=this.isDetached()?At("null"):this.fragment().tvar(),s="",n;return this.parent()instanceof Pr?this.parent().isKeyed()?(this.option("key",Z("+",At("'"+this.oid()+"$'"),this.parent().kvar())),s+=""+this.hvar()+"="+this.option("key").c()+`;
`,n=this._ref=""+this.parent().cvar()+"["+this.hvar()+"]"):n=this._ref=""+this.parent().cvar()+"["+this.parent().kvar()+"]":n=""+r+"["+this.osym()+"]",s+="("+this.tvar()+" = "+n+") || ("+n+"="+this.tvar()+"="+e+"("+this._flags+","+i+`));
`,this._ref=""+this.tvar(),this.isDetached()&&(s+=""+this.tvar()+"["+this.gsym("##up")+"] = "+this.fragment().tvar()+`;
`),s+=""+this.kvar()+` = 0;
`,s+=""+this.cvar()+"="+this.tvar()+`.$;
`,s+=this.value().c(t),s+=";"+this.tvar()+this.domCall("end")+"("+this.kvar()+");",this.parent()instanceof Pr&&(this.parent().isKeyed()?s+=""+this.parent().ref()+".push("+this.tvar()+","+this.parent().kvar()+"++,"+this.hvar()+");":this.parent().isIndexed()&&(s+=""+this.parent().kvar()+"++;")),s};function Jd(){return Et.apply(this,arguments)}I(Jd,Et);A.TagIndexedFragment=Jd;function Zd(){return Et.apply(this,arguments)}I(Zd,Et);A.TagKeyedFragment=Zd;function na(){return Et.apply(this,arguments)}I(na,Et);A.TagSlotProxy=na;na.prototype.ref=function(){return this.tvar()};na.prototype.tagvarprefix=function(){return this.oid()+"S"};function ne(){return Et.apply(this,arguments)}I(ne,Et);A.Tag=ne;ne.prototype.attrmap=function(t){return this._attrmap};ne.prototype.setAttrmap=function(t){return this._attrmap=t,this};ne.prototype.setup=function(){return ne.prototype.__super__.setup.apply(this,arguments),this._attributes=this._options.attributes||[],this._attrmap={},this._classNames=[],this._className=null};ne.prototype.isAbstract=function(){return this.isSlot()||this.isFragment()};ne.prototype.attrs=function(){return this._attributes};ne.prototype.cssns=function(){return this._cssns||(this._cssns=(""+this.sourceId()).replace("-","_"))};ne.prototype.cssid=function(){return this._cssid||(this._cssid=(""+this.sourceId()).replace("_","-"))};ne.prototype.cssflag=function(){return this._cssflag||(this._cssflag=""+this.sourceId())};ne.prototype.tagvarprefix=function(){return this.isSelf()?"SELF":"T"};ne.prototype.isStatementLike=function(){return this.option("iife")};ne.prototype.isIndexableInLoop=function(){return!this.option("key")&&!this.isDynamicType()};ne.prototype.traverse=function(){if(this._traversed)return this;this._tid=N.generateId("tag"),this._tagDeclaration=N.up(ar);let t=this._options.close,e=this._options.body||[],r=this;return t&&t._value=="/>"&&b2(e)&&(r=[this].concat(e._nodes),this._options.body=new pr([])),ne.prototype.__super__.traverse.apply(this,arguments),r};ne.prototype.visitBeforeBody=function(t){var e=this;e.oid();let r=e._options.type;r&&r.traverse(),N.hmr()&&e.cssid(),e.isSelf()||e.tagName().indexOf("-")>=0||e.isDynamicType()||r&&r.isComponent()?(e._options.custom=!0,e._kind="component"):e._kind="element",e.attrs().length==0&&!e._options.type&&(e._options.type="fragment");let i=e.tagName();if(i=="slot"?e._kind="slot":i=="fragment"&&(e._kind="fragment"),i=="shadow-root"&&(e._kind="shadow-root"),e.isSelf()){let n=t.up(ar);n&&n.set({self:e,sourceId:e.sourceId()})}e._tagName=i,e._dynamics=[];let s=0;for(;s<e._attributes.length;){let n=e._attributes[s++];if(n instanceof br&&n.name()instanceof xr&&n.name().placeholders().length)for(let o=0,a=Ot(n.name().placeholders()),l=a.length,c;o<l;o++){c=a[o];let u=new L2(c.name());u._tag=e,u.setValue(c.runtimeValue()),u.set({propname:c._propname,unit:c.option("unit"),styleterm:c}),e._attributes.splice(s++,0,u),u.traverse()}}if(e._attributes=e._attributes.filter(function(n){if(n instanceof br&&n.isStatic())return e._classNames.push(n),!1;if(!N.tsc()){if(n==e._attrmap.$key)return n.warn("$key= is deprecated, use key=",{loc:n._name}),e.set({key:n.value()}),!1;if(n==e._attrmap.key)return e.set({key:n.value()}),!1}return n.isStatic()||e._dynamics.push(n),!0}),e._parent&&(e._attrmap.route||e.isDynamicType())&&e._parent.set({shouldEnd:!0,ownCache:!0}),e.isSlot()){let n=e._attrmap.name?e._attrmap.name.value():"__";n instanceof ve&&(n=n.raw()),e.set({name:n}),e._attributes=[]}return e._scope=new cp(e),e._scope.visit(),ne.prototype.__super__.visitBeforeBody.apply(e,arguments)};ne.prototype.register=function(t){if(t=ne.prototype.__super__.register.call(this,t),t instanceof Et&&this.isComponent()&&!this.isSelf()){let e=t instanceof ne?t._attrmap.slot:null,r="__";e&&e.value()instanceof ve&&(r=e.value().raw());let i=this.getSlot(r);t._fragment=i}return t};ne.prototype.visitAfterBody=function(t){return this};ne.prototype.visitAfterConsumed=function(){if(this.isSVG()&&(this._kind="svg"),this._options.reference){let t=this.stack().up(Ce),e=this.stack().up(ar),r;if(this._options.key&&(r="Named
`)+")";{this.option("return")&&a("return "+this.tvar());let Pt=n.join(`;
`);return this.hasBlockScopedVariables()&&(Pt="{"+Pt+"}"),Pt}}var T=m||this.hasDynamicFlags()||this.attrs().length||this.option("markWhenBuilt")||this.isDetached()||this.isDynamicType()||!!this.option("key"),P=l&&l.option("condition");this.isDynamicType()&&(k=!0,this.isMemoized()?f=""+this.owncvar()+".value":f=this.type().c()),this._cssid&&this._classNames.unshift(this.cssid());for(let nt=0,Pt=Ot(N.closures()),F=Pt.length,D;nt<F;nt++)D=Pt[nt],D._cssns&&(!this.isSelf()||D!=_)&&this._classNames.push(D._cssns);for(let nt=0,Pt=Ot(this.tagLikeParents()),F=Pt.length,D;nt<F;nt++)D=Pt[nt],D._cssns&&this._classNames.push(D._cssns);if(u&&!this.isSelf()&&(e=u.cssref(this.option("reference")?null:this.scope__()))){let nt=u._cssns;this._classNames.indexOf(nt)>=0&&this._classNames.splice(this._classNames.indexOf(nt),1),this._classNames.push(e)}if(this.option("reference")&&_){let nt=String(this.option("reference")).slice(1);this._classNames.push("$"+nt)}if(this.option("key")&&this.set({detached:!0}),this._classNames.length){let nt=[],Pt=!1;for(let D=0,U=Ot(this._classNames),Y=U.length,V;D<Y;D++)V=U[D],V instanceof br?V.name()instanceof Di?nt.push(V.name().toRaw()):nt.push(V.rawClassName()):V instanceof X?(Pt=!0,nt.push("${"+V.c()+"}")):nt.push(V);nt=nt.filter(function(D,U){return nt.indexOf(D)==U});let F=Pt?"`":"'";this._className=F+nt.join(" ")+F}var C=[f,c&&!this.option("detached")?c.tvar():"null",this._className||"null","null"],O=this.body()?this.body().values():[];O.length==1&&O[0]instanceof Ui&&O[0].isStatic()&&!this.isSelf()&&!this.isSlot()&&(C[3]=O[0].value().c(),O=[]),this._dynamics.length==0&&!this.hasDynamicFlags()&&!x&&!this.isDynamicType()&&O.every(function(nt){return nt instanceof ve||nt instanceof ne&&!nt.isDynamicType()&&!nt.option("key")})&&!m&&!this.hasNonTagChildren()&&!this.isSlot()&&!this.option("dynamic")&&!this.option("reference")&&(y=!1,l instanceof ne&&!(this.up()instanceof re)&&(S=!0)),(this.isFragment()||this.isSlot())&&(C=[this._flags].concat(C.slice(1,2))),this.isSlot()&&(C[1]="null");var L=ut(""+this.create_()+"("+C.join(",")+")",this.type());if(this.option("reference")){let nt=C[1];C[1]="null",L=ut(""+this.create_()+"("+C.join(",")+")",this.type()),this.set({ctor:L}),L=Z(".",this.scope__().context(),this.option("reference")).c(),L="("+this.tvar()+"="+L+","+this.tvar()+"["+this.gsym("##up")+"]="+nt+","+this.tvar()+")";let Pt=this.option("tagdeclbody");if(Pt&&!N.tsc()){let F=Pt._head||(Pt._head=[]),D=ye.toValidIdentifier(this.option("reference").c()),U=this.option("ctor"),Y="let el="+U+`;
return (Object.defineProperty(this,'`+D+"',{value:el}),el);",V="get "+D+`(){
`+Y+`
}`;F.push(V)}}else L=""+this.tvar()+"="+L;this.option("assign")&&(L=Z("=",this.option("assign"),At(L)).c());let q=this.hasDynamicDescendants();if(this._consumedBy){if(t.inline&&!S&&(this.option("iife",!0),t.inline=!1),this.isShadowRoot()){let nt=""+this.cvar()+"["+this.osym()+"]";a(""+this.tvar()+"="+nt+" || ("+nt+"="+c.tvar()+".attachShadow({mode:'open'}))")}else if(this.isSlot()&&!this.hasChildren()){if(a(""+this.tvar()+"="+E),!(l instanceof Ke)){let nt=""+this.cvar()+"["+this.osym()+"]";a("("+nt+" = "+c.tvar()+this.domCall("insert")+"("+this.tvar()+","+this._flags+","+nt+"))")}}else if(this.isSlot()&&this._consumed.length==1)this._consumed[0].set({dynamic:!0,detached:!0}),this._consumed[0]._tvar=this.tvar(),this._consumed[0]._parent=l;else if(l instanceof Pr){this._bvar=this.tagvar("B");let nt=this.option("key");if(this.option("key"))if(this.isDynamicType()){a(""+this.owncvar()+"="+this.renderContextFn()+"("+this.option("key").c()+")");let Pt=""+this.owncvar()+".run("+this.type().c()+")";a("("+this.bvar()+"="+this.dvar()+"=1,"+this.tvar()+"="+Pt+") || ("+this.bvar()+"="+this.dvar()+"=0,"+this.owncvar()+".cache("+L+"))")}else{let Pt=""+this.parentCache()+".get("+this.kvar()+"="+this.option("key").c()+")";a("("+this.bvar()+"="+this.dvar()+"=1,"+this.tvar()+"="+Pt+") || ("+this.bvar()+"="+this.dvar()+"=0,"+this.parentCache()+".set("+this.kvar()+","+L+"))")}else if(l.isIndexed()){let Pt=""+this.parentCache()+"["+l.kvar()+"]";a("("+this.bvar()+"="+this.dvar()+"=1,"+this.tvar()+"="+Pt+") || ("+this.bvar()+"="+this.dvar()+"=0,"+Pt+"="+L+")")}else if(l.isKeyed())if(this.isDynamicType()){let Pt="("+this.owncvar()+"="+this.dynamicContextFn()+"("+this.type().osym()+","+l.kvar()+")).run("+this.type().c()+")";a("("+this.bvar()+"="+this.dvar()+"=1,"+this.tvar()+"="+Pt+") || ("+this.bvar()+"="+this.dvar()+"=0,"+this.owncvar()+".cache("+L+"))")}else{let Pt="("+this.kvar()+"="+this.renderContextFn()+"("+this.osym()+")).get("+l.kvar()+")";a("("+this.bvar()+"="+this.dvar()+"=1,"+this.tvar()+"="+Pt+") || ("+this.bvar()+"="+this.dvar()+"=0,"+this.kvar()+".set("+l.kvar()+","+L+"))")}this._ref=""+this.tvar(),a(""+this.bvar()+"||("+this.tvar()+"["+this.gsym("##up")+"]="+c.tvar()+")"),(this._dynamics.length||this._consumed.length&&O.length)&&(k=!0)}else if(!b)a("("+L+")");else if(S)this._ref=this.tvar(),this._bvar=l.bvar(),a(""+l.bvar()+" || ("+L+")");else{let nt=this.option("key"),Pt=this._cref||(this._cref=""+this.cvar()+"["+this.osym()+"]");if(T&&(this._bvar=this.tagvar("B")),this.isDynamicType()){a(nt?""+this.owncvar()+"="+this.dynamicContextFn()+"("+nt.osym()+","+nt.c()+")":""+this.owncvar()+"="+this.renderContextFn()+"("+this.type().osym()+")");let F=""+this.owncvar()+".run("+this.type().c()+")";a("("+this.bvar()+"="+this.dvar()+"=1,"+this.tvar()+"="+F+") || ("+this.bvar()+"="+this.dvar()+"=0,"+this.owncvar()+".cache("+L+"))")}else if(nt){a(""+this.owncvar()+"="+this.renderContextFn()+"("+nt.osym()+")");let F=""+this.owncvar()+".run("+nt.c()+")";a("("+this.bvar()+"="+this.dvar()+"=1,"+this.tvar()+"="+F+") || ("+this.bvar()+"="+this.dvar()+"=0,"+this.owncvar()+".cache("+L+"))")}else{let F=""+this.parentCache()+"["+this.osym()+"]";a(T?"("+this.bvar()+"="+this.dvar()+"=1,"+this.tvar()+"="+F+") || ("+this.bvar()+"="+this.dvar()+"=0,"+F+"="+L+")":"("+this.tvar()+"="+F+") || ("+F+"="+L+")")}this.isDetached()&&a(""+this.bvar()+"||("+this.tvar()+"["+this.gsym("##up")+"]="+c.tvar()+")"),this._ref=this.tvar(),x&&(k=!0),l instanceof Ke&&(k=!0)}k&&(this._cvar=this.tvar())}else if(this._ref=""+this.tvar(),this.isSelf())a(""+this.tvar()+"=this"),a(""+this.tvar()+this.domCall("open")+"()"),a("("+this.bvar()+"="+this.dvar()+"=1,"+this.tvar()+"["+this.osym()+"] === 1) || ("+this.bvar()+"="+this.dvar()+"=0,"+this.tvar()+"["+this.osym()+"]=1)"),this._cvar=this.tvar();else if(b){let nt=""+this.parentCache()+"["+this.osym()+"]";this.isDynamicType()&&this.isMemoized()?(this.option("key")?a(""+this.owncvar()+"="+this.dynamicContextFn()+"("+this.osym()+","+this.option("key").c()+")"):a(""+this.owncvar()+"="+this.renderContextFn()+"("+this.osym()+")"),L=""+thi
`:(nt+=Y.endif?"))":Y,F==Pt||n[F+1].endif||(nt+=`,
`));if(nt+=")",this.isSlot()&&this.hasChildren()){let F="";if(!(l instanceof Ke)){let D=""+this.cvar()+"["+this.osym()+"]",U=""+this.cvar()+"["+this.osym("_")+"]",Y=""+this.cvar()+"["+this.osym("__")+"]",V=""+this.tvar()+"==="+Y+" || ("+U+" = "+c.tvar()+this.domCall("insert")+"("+Y+"="+this.tvar()+","+this._flags+","+U+"))"}nt="("+this.tvar()+"="+E+"),(!"+this.tvar()+" || !"+this.tvar()+".hasChildNodes() && "+nt+"),("+F+")"}return nt}t.inline=d;let ee="";for(let nt=0,Pt=Ot(n),F=Pt.length,D;nt<F;nt++)D=Pt[nt],D.if?ee+="if("+D.if+`){
`:D.endif?ee+=`};
`:ee+=D+`;
`;if(this.isSlot()&&this.hasChildren()){let nt="";if(!(l instanceof Ke)){let Pt=""+this.cvar()+"["+this.osym()+"]",F=""+this.cvar()+"["+this.osym("_")+"]",D=""+this.cvar()+"["+this.osym("__")+"]";nt=""+this.tvar()+"==="+D+" || ("+F+" = "+c.tvar()+this.domCall("insert")+"("+D+"="+this.tvar()+","+this._flags+","+F+"))"}ee=""+this.tvar()+"="+E+`;
if(!`+this.tvar()+" || !"+this.tvar()+`.hasChildNodes()){
`+ee+`
}
`+nt}return this.option("iife")?(ee="(()=>{"+ee+";})()",this.option("return")&&(ee="return "+ee)):this.hasBlockScopedVariables()&&(ee="{"+ee+"}"),ee};function A1(){return Gt.apply(this,arguments)}I(A1,Gt);A.TagWrapper=A1;A1.prototype.visit=function(){return this.value()instanceof Array?this.value().map(function(t){return t.traverse()}):this.value().traverse(),this};A1.prototype.c=function(){return""+this.scope__().imba().c()+".getTagForDom("+this.value().c({expression:!0})+")"};function dn(t,e){this._nodes=t||[],this._options=e}I(dn,jt);A.Selector=dn;dn.prototype.add=function(t,e){return this.push(t),this};dn.prototype.isExpressable=function(){return!0};dn.prototype.visit=function(){let t=[];for(let e=0,r=Ot(this._nodes),i=r.length,s;e<i;e++)s=r[e],t.push(!(s instanceof wr)&&s.traverse());return t};dn.prototype.query=function(){var t="",e=[];for(let i=0,s=Ot(this.nodes()),n=s.length,o;i<n;i++){o=s[i];var r=o.c();o instanceof wr?e.push("'"+r.replace(/\'/g,'"')+"'"):e.push(r)}return e.join(" + ")};dn.prototype.toString=function(){return Ct.cary(this.nodes()).join("")};dn.prototype.js=function(t){var e=this.option("type"),r=Ct.c(this.query()),i=this.scope__().imba().c();return e=="%"?""+i+".q$("+r+","+t.scope().context().c({explicit:!0})+")":e=="%%"?""+i+".q$$("+r+","+t.scope().context().c({explicit:!0})+")":""+i+".q"+e+"("+r+")"};function Qd(){return Gt.apply(this,arguments)}I(Qd,Gt);A.SelectorPart=Qd;function oa(){return Gt.apply(this,arguments)}I(oa,Gt);A.Await=oa;oa.prototype.func=function(t){return this._func};oa.prototype.setFunc=function(t){return this._func=t,this};oa.prototype.js=function(t){return"await "+this.value().c()};oa.prototype.visit=function(t){this.value().traverse();var e=t.up(te);return e&&e.set({async:!0}),this;this.warn("toplevel await not allowed");var r=t.up(Dt),i=t.relative(r,1),s=t.relative(this,-1);if(this.setFunc(new I1([],[])),this.func().body().setNodes(r.defers(i,this)),this.func().scope().visit(),s instanceof Ge){s.left().traverse();var n=s.left().node();n instanceof De?this.func().params().at(0,!0,n.variable().name()):(s.setRight(this.func().params().at(0,!0)),this.func().body().unshift(s),this.func().scope().context())}return this.func().traverse(),this};function I1(t,e,r,i,s){I1.prototype.__super__.constructor.call(this,t,e,r,i,s)}I(I1,te);A.AsyncFunc=I1;I1.prototype.scopetype=function(){return la};function gr(t,e){this._name=t,this._alias=e}I(gr,X);A.ESMSpecifier=gr;gr.prototype.alias=function(t){return this._alias};gr.prototype.setAlias=function(t){return this._alias=t,this};gr.prototype.name=function(t){return this._name};gr.prototype.setName=function(t){return this._name=t,this};gr.prototype.loc=function(){return this._alias?this._alias.loc():this._name.loc()};gr.prototype.visit=function(t){return this._declaration=t.up(ni),this._declaration instanceof eo?this._importer=this._declaration:this._exporter=this._declaration,this._cname=ye.clearLocationMarkers(this._name.c()),this._key=this._alias?ye.clearLocationMarkers(this._alias.c()):this._cname,this._exporter?this._exporter.source()||(this._variable=this.scope__().root().lookup(this._cname)):this._variable=this.scope__().root().register(this._key,this,{type:"imported"}),this};gr.prototype.js=function(){let t=ye.toValidIdentifier(this._name.c()),e=this._alias&&ye.toValidIdentifier(this._alias.c());return e?""+t+" as "+e:""+t};function $d(){return gr.apply(this,arguments)}I($d,gr);A.ImportSpecifier=$d;function t_(){return gr.apply(this,arguments)}I(t_,gr);A.ImportNamespaceSpecifier=t_;function e_(){return gr.apply(this,arguments)}I(e_,gr);A.ExportSpecifier=e_;function r_(){return gr.apply(this,arguments)}I(r_,gr);A.ExportAllSpecifier=r_;function ip(){return gr.apply(this,arguments)}I(ip,gr);A.ImportDefaultSpecifier=ip;function v2(){return jt.apply(this,arguments)}I(v2,jt);A.ESMSpecifierList=v2;v2.prototype.js=function(){return"{"+v2.prototype.__super__.js.apply(this,arguments)+"}"};function ni(t,e,r){this.setup(),this._keyword=t,this._specifiers=e,this._source=r,this._defaults=e&&e.find(function(i){return i instanceof ip})}I(ni,qi);A.
import `+Ct.cary(this._specifiers).join(",")+" from 'data:text/asset;';"}return this._specifiers&&this._source?""+ut(this.keyword().c(),this.keyword())+" "+Ct.cary(this._specifiers).join(",")+" from "+e:""+ut(this.keyword().c(),this.keyword())+" "+e};eo.prototype.js=function(){return this.ownjs()};eo.prototype.push=function(t){let e=this._next||this;return this._up.replace(e,[e,Pe,this._next=t])};eo.prototype.visit=function(){var t;for(let e=0,r=Ot(this._specifiers),i=r.length;e<i;e++)(t=r[e])&&t.traverse&&t.traverse();this.scope__()._lastImport=this,this._up=this.up()};function sp(){return ni.apply(this,arguments)}I(sp,ni);A.ImportTypeDeclaration=sp;sp.prototype.js=function(){if(!N.tsc())return"";let t=this._source.c();if(this._defaults){let e="/** @typedef {import(SOURCE).default} NAME */true";return e=e.replace("SOURCE",t).replace("NAME",this._defaults.c()),e}else{let e=[];for(let r=0,i=Ot(this._specifiers[0].nodes()),s=i.length,n;r<s;r++){n=i[r];let o=n._name.c(),a=n._alias?n._alias.c():n._name.c(),l="/** @typedef {import("+t+")."+o+"} "+a+" */true";e.push(l)}return e.join(`;
`)}};function _n(){return ni.apply(this,arguments)}I(_n,ni);A.ExportDeclaration=_n;_n.prototype.visit=function(){var t;for(let e=0,r=Ot(this._specifiers),i=r.length;e<i;e++)(t=r[e])&&t.traverse&&t.traverse();return this};_n.prototype.js=function(){let t=ut(this.keyword().c(),this.keyword());if(this._specifiers&&this._source)return""+t+" "+Ct.cary(this._specifiers).join(",")+" from "+this._source.c();if(this._specifiers)return""+t+" "+Ct.cary(this._specifiers).join(",");if(this._source)return""+t+" "+this._source.c()};function i_(){return _n.apply(this,arguments)}I(i_,_n);A.ExportAllDeclaration=i_;function s_(){return _n.apply(this,arguments)}I(s_,_n);A.ExportNamedDeclaration=s_;function ps(t,e){this._name=t,this._scope=e,this._options={}}A.MixinReference=ps;ps.prototype.name=function(t){return this._name};ps.prototype.setName=function(t){return this._name=t,this};ps.prototype.scope=function(t){return this._scope};ps.prototype.setScope=function(t){return this._scope=t,this};ps.prototype.options=function(t){return this._options};ps.prototype.setOptions=function(t){return this._options=t,this};ps.prototype.rule=function(t){return this._rule};ps.prototype.setRule=function(t){return this._rule=t,this};function O1(){return X.apply(this,arguments)}I(O1,X);A.MixinExports=O1;O1.prototype.add=function(t,e){return this._mixins||(this._mixins={}),this._mixins[t]=e,this};O1.prototype.c=function(){return"export const mixins$ = "+Ct.compileRaw(this._mixins||{})};function Hi(){return Gt.apply(this,arguments)}I(Hi,Gt);A.Export=Hi;Hi.prototype.loc=function(){let t=this.option("keyword");return t&&t.region?t.region():Hi.prototype.__super__.loc.apply(this,arguments)};Hi.prototype.consume=function(t){return t instanceof sr?(this.option("return",!0),this):Hi.prototype.__super__.consume.apply(this,arguments)};Hi.prototype.visit=function(){return this.value().set({export:this.option("keyword")||this,return:this.option("return"),default:this.option("default")}),Hi.prototype.__super__.visit.apply(this,arguments)};Hi.prototype.js=function(t){var e=this;let r=e.option("default");if(e.value()instanceof jt&&e.value().map(function(i){return i.set({export:e})}),e.value()instanceof Ce||e.value()instanceof le)return e.value().c();if(e.value()instanceof Ge&&e.value().left()instanceof De){let i=ut("export",e.option("keyword")),s=r&&ut("default",e.option("default"));return r?""+i+" "+s+" "+e.value().c():""+i+" "+e.value().c()}if(r){let i=e.value().c();return"export default "+i}return e.value().c()};function M2(){return Gt.apply(this,arguments)}I(M2,Gt);A.Require=M2;M2.prototype.js=function(t){var e=this.value()instanceof Re?this.value().value():this.value(),r=e.c();return r=="require"?"require":"require("+r+")"};function mn(){mn.prototype.__super__.constructor.apply(this,arguments),this._key=String(this._value).slice(1,-1)}I(mn,Gt);A.EnvFlag=mn;mn.prototype.raw=function(){return this._raw==null?this._raw=N.env(""+this._key):this._raw};mn.prototype.isTruthy=function(){var t=this.raw();if(t!==void 0&&!(t instanceof X))return!!t};mn.prototype.loc=function(){return[0,0]};mn.prototype.c=function(){var t=this.raw(),e=t;return t!==void 0?typeof t=="string"||t instanceof String?t.match(/^\d+(\.\d+)?$/)?e=String(parseFloat(t)):e="'"+t+"'":t instanceof X?e=e.c():e=""+t:e="ENV_"+this._key,ut(e,this._value)};function Cs(){return X.apply(this,arguments)}I(Cs,X);A.StyleNode=Cs;function n_(){return Cs.apply(this,arguments)}I(n_,Cs);A.StyleSelector=n_;function xr(t,e){this._placeholders=[],this._selectors=t,this._body=e}I(xr,Cs);A.StyleRuleSet=xr;xr.prototype.isStatic=function(){return!0};xr.prototype.isGlobal=function(){return!!this.option("global")};xr.prototype.addPlaceholder=function(t){return this._placeholders.push(t),this};xr.prototype.placeholders=function(){return this._placeholders};xr.prototype.cssid=function(){return this._cssid||(this._cssid=""+N.root().sourceId()+"-"+this.oid())};xr.prototype.visit=function(t,e){let r=this._tagDeclaration=t.up(ar);this._css={},this._flag=t.up(br),this._tag=this._flag&&this._flag._tag;let i=String(this.option("name")||"");i[0
`)}if(N.tsc()&&this._placeholders.length){let e=[];for(let i=0,s=Ot(this.placeholders()),n=s.length;i<n;i++)e.push(s[i].runtimeValue().c());return N.isExpression()?"("+e.join(",")+")":e.join(`;
`)}return this.option("inClassBody")||this.option("inTagTree")||this.option("toplevel")?"":"'"+this._name+"'"};function R1(){return jt.apply(this,arguments)}I(R1,jt);A.StyleBody=R1;R1.prototype.visit=function(){let t=this._nodes,e=0,r;for(let i=0,s=Ot(t),n=s.length,o;i<n;i++)o=s[i],o instanceof sn&&(o._property._name||o._property.setName(r),r=o._property._name);for(;e<t.length;){let i=t[e],s=i.traverse();if(s!=i&&s instanceof Array){t.splice.apply(t,[].concat([e,1],Array.from(s)));continue}i==t[e]&&e++}return this};R1.prototype.toJSON=function(){return this.values()};function sn(t,e){this._property=t,this._expr=e instanceof os?e:new os(e)}I(sn,Cs);A.StyleDeclaration=sn;sn.prototype.clone=function(t,e){return e||(e=this._expr.clone()),(typeof e=="string"||typeof e=="number")&&(e=[e]),!(e instanceof Array)&&(!(e instanceof jt)||e instanceof j2)&&(e=[e]),new sn(this._property.clone(t),e)};sn.prototype.visit=function(t,e){var r=this,i;let s=t.theme(),n=t.parent(),o=String(r._property.name()),a=s.expandProperty(o);if(r._expr&&r._expr.traverse({rule:e.rule,rootRule:e.rootRule,decl:r,property:r._property}),a instanceof Array){n.replace(r,a.map(function(c){return r.clone(c)}));return}else a&&a!=o&&(r._property=r._property.clone(a));let l=String(a||o).replace(/-/g,"_");if(r._expr&&r._expr.traverse({decl:r,property:r._property}),s[l]&&!r.option("plain")){let c=s[l].apply(s,r._expr.toArray()),u=[];if(c instanceof Array)r._expr=new os(c);else if(c instanceof Object){for(let _,f=0,d=Object.keys(c),g=d.length,b;f<g;f++)if(b=d[f],_=c[b],b.indexOf("&")>=0){let S=new R1([]),y=new xr(At(b),S);u.push(y);for(let v,m=0,x=Object.keys(_),k=x.length,E;m<k;m++)E=x[m],v=_[E],S.add(r.clone(E,v))}else u.push(r.clone(b,_).set({plain:b==o||b==a}));n.replace(r,u);return}}if(r._expr&&(r._expr.traverse({decl:r,property:r._property}),r._expr.set({parens:!1})),e.styles){let c=r._property.toKey(),u=r._expr;e.selector&&(c=JSON.stringify([e.selector,c])),r._property.isUnit()&&r._property.number()!=1&&(u=At("calc("+u.c()+" / "+r._property.number()+")")),e.styles[c]&&(i=e.styles[c],delete e.styles[c]),e.styles[c]=u.c({property:r._property})}return r};sn.prototype.toCSS=function(){return""+this._property.c()+": "+Ct.cary(this._expr).join(" ")};sn.prototype.toJSON=function(){return this.toCSS()};function nr(t){var e;this._token=t;let r=String(this._token);r[0]=="#"&&(this._kind="color"),this._parts=r.replace(/(^|\b)\$/g,"--").split(/\b(?=[\^\.\@\!])/g);for(let i=0,s=Ot(this._parts),n=s.length;i<n;i++)this._parts[i]=s[i].replace(/^\.(?=[^\.])/,"@.");this._name=String(this._parts[0]),(e=this._name.match(/^(\d+)([a-zA-Z]+)$/))&&(this._number=parseInt(e[1]),this._unit=e[2]),this._name.match(/^[\#\w\-]/)||this._parts.unshift(this._name=null)}I(nr,Cs);A.StyleProperty=nr;nr.prototype.name=function(t){return this._name};nr.prototype.setName=function(t){return this._name=t,this};nr.prototype.number=function(t){return this._number};nr.prototype.setNumber=function(t){return this._number=t,this};nr.prototype.unit=function(t){return this._unit};nr.prototype.setUnit=function(t){return this._unit=t,this};nr.prototype.kind=function(t){return this._kind};nr.prototype.setKind=function(t){return this._kind=t,this};nr.prototype.setName=function(t){var e;return(e=t.match(/^(\d+)([a-zA-Z]+)$/))?(this._number=parseInt(e[1]),this._unit=e[2]):this._number=this._unit=null,this._name=t,this};nr.prototype.name=function(){return this._name||(this._name=String(this._parts[0]))};nr.prototype.clone=function(t){return new nr([t||this.name()].concat(this.modifiers()).join(""))};nr.prototype.addModifier=function(t){return this._parts.push(t),this};nr.prototype.isUnit=function(){return this._unit};nr.prototype.isColor=function(){return this._kind=="color"};nr.prototype.modifiers=function(){return this._parts.slice(1)};nr.prototype.toJSON=function(){return this.name()+this.modifiers().join("§")};nr.prototype.toString=function(){return this.name()+this.modifiers().join("§")};nr.prototype.toKey=function(){return[this.isUnit()?"--u_"+this._unit:this.isColor()?"--c_"+this._name.slice(1):this.name()]
Object.defineProperty(target,key,{value:value});
};`,unit:`(value,unit){
return value + unit;
};`,optNegIndex:"(value,index){ return value ? value[value.length + index] : null };",negIndex:"(value,index){ return value[value.length + index] };",extendTag:`(el,cls){
Object.defineProperties(el,Object.getOwnPropertyDescriptors(cls.prototype));
return el;
};`,inheritClass:`(cls){
Object.getPrototypeOf(cls.prototype).constructor?.inherited?.(cls);
};`,defineName:`(cls,name){
Object.defineProperty(cls,"name",{value:name,configurable:true});
};`,initField:`(target,key,o){
Object.defineProperty(target,key,o);
};`,watcher:`(k,w){
return { enumerable:true,
set(v){var o=this[k]; (v===o)||(this[k]=v,this[w]({value:v,oldValue:o}));},
get(){ return this[k] }
};
};`,decorate:`(decorators,target,key,desc){
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};`,contains:`(a,b){
var res = (b && b.indexOf) ? b.indexOf(a) : [].indexOf.call(a,b);
return res >= 0;
};`,requireDefault:`(obj){
return obj && obj.__esModule ? obj : { default: obj };
};`,virtualSuper:`(target){
var up = Object.getPrototypeOf(target);
var supers = Object.getOwnPropertyDescriptors(target);
const map = new WeakMap();
const obj = Object.defineProperties(Object.create(up), supers);
const proxy = {
apply: (self, key, ...params) => { return obj[key].apply(self, params) },
get: (self, key) => { return Reflect.get(obj, key, self); },
set: (self, key, value, receiver) => { return Reflect.set(obj, key, value, self);}
}
return function (s) {
return map.get(s) || map.set(s, new Proxy(s, proxy)) && map.get(s);
}
};`};zt.Helper=function(){return zt.apply(this,arguments)};I(zt.Helper,zt);zt.Helper.prototype.name=function(){return this.option("name")};zt.Helper.prototype.helper=function(){return this.option("helper")};for(let t,e=0,r=Object.keys(Pd),i=r.length,s;e<i;e++)s=r[e],t=Pd[s],zt[s]=function(){for(var n=arguments,o=n.length,a=new Array(o>0?o:0);o>0;)a[o-1]=n[--o];let l="function "+s+"$__"+t;return new zt.Helper(a).set({name:s+"$__",helper:l})};zt.Extend=function(){return zt.apply(this,arguments)};I(zt.Extend,zt);zt.Extend.prototype.helper=function(){return`function extend$__(target,ext){
// @ts-ignore
const descriptors = Object.getOwnPropertyDescriptors(ext);
delete descriptors.constructor;
// @ts-ignore
Object.defineProperties(target,descriptors);
return target;
};`};zt.Extend.prototype.js=function(t){return this.scope__().root().helper(this,this.helper()),"extend$__("+Ct.compact(Ct.cary(this.args())).join(",")+")"};zt.IndexOf=function(){return zt.apply(this,arguments)};I(zt.IndexOf,zt);zt.IndexOf.prototype.helper=function(){return`function idx$__(a,b){
return (b && b.indexOf) ? b.indexOf(a) : [].indexOf.call(a,b);
};`};zt.IndexOf.prototype.js=function(t){return this.scope__().root().helper(this,this.helper()),"idx$__("+this.args().map(function(e){return e.c()}).join(",")+")"};zt.Promisify=function(){return zt.apply(this,arguments)};I(zt.Promisify,zt);zt.Promisify.prototype.helper=function(){return`function promise$__(a){
if(a instanceof Array){
console.warn("await (Array) is deprecated - use await Promise.all(Array)");
return Promise.all(a);
} else {
return (a && a.then ? a : Promise.resolve(a));
}
}`};zt.Promisify.prototype.js=function(t){return this.scope__().root().helper(this,this.helper()),"promise$__("+this.args().map(function(e){return e.c()}).join(",")+")"};zt.Iterable=function(){return zt.apply(this,arguments)};I(zt.Iterable,zt);zt.Iterable.prototype.helper=function(){return"function iter$__(a){ let v; return a ? ((v=a.toIterable) ? v.call(a) : a) : a; };"};zt.Iterable.prototype.js=function(t){return this.args()[0]instanceof Be?this.args()[0].c():(this.scope__().root().helper(this,this.helper()),"iter$__("+this.args()[0].c()+")")};zt.IsFunction=function(){return zt.apply(this,arguments)};I(zt.IsFunction,zt);zt.IsFunction.prototype.js=function(t){return""+this.args()[0].c()};zt.Array=function(){return zt.apply(this,arguments)};I(zt.Array,zt);zt.Array.prototype.js=function(t){return"new Array("+this.args().map(function(e){return e.c()})+")"};function C1(t){return this._root=t,this._map=[],this}C1.prototype.add=function(t,e){return this._map[t]=e,this._map.indexOf(e)<0&&this._map.push(e),this};C1.prototype.lookup=function(t){return this._map[t]};C1.prototype.plain=function(){return JSON.parse(JSON.stringify(this._map))};C1.prototype.toJSON=function(){return this._map};function N1(t){return this._root=t,this._map={},this}N1.prototype.add=function(t,e){return this._map[t]=e,this};N1.prototype.register=function(t){var e=t.namepath();return this._map[e]||(this._map[e]=t),this};N1.prototype.plain=function(){return JSON.parse(JSON.stringify(this._map))};N1.prototype.toJSON=function(){return this._map};function Rt(t,e){this._nr=N.incr("scopes"),this._head=[],this._node=t,this._parent=e,this._vars=new Yi([]),this._entities=new C1(this),this._meta={},this._annotations=[],this._closure=this,this._virtual=!1,this._counter=0,this._varmap={},this._counters={},this._varpool=[],this._mixins={},this._refcounter=0,this._declListeners=[],this._level=(e?e._level:-1)+1,this.setup()}A.Scope=Rt;Rt.prototype.level=function(t){return this._level};Rt.prototype.setLevel=function(t){return this._level=t,this};Rt.prototype.context=function(t){return this._context};Rt.prototype.setContext=function(t){return this._context=t,this};Rt.prototype.node=function(t){return this._node};Rt.prototype.setNode=function(t){return this._node=t,this};Rt.prototype.parent=function(t){return this._parent};Rt.prototype.setParent=function(t){return this._parent=t,this};Rt.prototype.varmap=function(t){return this._varmap};Rt.prototype.setVarmap=function(t){return this._varmap=t,this};Rt.prototype.varpool=function(t){return this._varpool};Rt.prototype.setVarpool=function(t){return this._varpool=t,this};Rt.prototype.params=function(t){return this._params};Rt.prototype.setParams=function(t){return this._params=t,this};Rt.prototype.head=function(t){return this._head};Rt.prototype.setHead=function(t){return this._head=t,this};Rt.prototype.vars=function(t){return this._vars};Rt.prototype.setVars=function(t){return this._vars=t,this};Rt.prototype.counter=function(t){return this._counter};Rt.prototype.setCounter=function(t){return this._counter=t,this};Rt.prototype.entities=function(t){return this._entities};Rt.prototype.setEntities=function(t){return this._entities=t,this};Rt.prototype.p=function(){return N.loglevel()>0&&console.log.apply(console,arguments),this};Rt.prototype.oid=function(){return this._oid||(this._oid=N.generateId(""))};Rt.prototype.stack=function(){return N};Rt.prototype.kind=function(){return this._kind||(this._kind=this.constructor.name.replace("Scope","").toLowerCase())};Rt.prototype.runtime=function(){return this.root().runtime()};Rt.prototype.setup=function(){return this._selfless=!0};Rt.prototype.incr=function(t){t===void 0&&(t="i");var e=this._counters[t]||(this._counters[t]=0);return this._counters[t]++,e};Rt.prototype.nextShortRef=function(){return Ct.counterToShortRef(this._refcounter++)};Rt.prototype.memovar=function(t,e){this._memovars||(this._memovars={});let r=this._memovars[t];return r||(r=this._memovars[t]=this.declare(r,e)),r};Rt.prototype.mixin=function(t){return this._mixins[t]||(this._mixins[t]=new ps(t,this))};Rt.prototype.ca
/*body*/
`+e;return b2(this._helpers)&&(s=Ct.cary(this._helpers).join(`;
`)+`
`+s),s};function B2(){return Rt.apply(this,arguments)}I(B2,Rt);A.ModuleScope=B2;B2.prototype.setup=function(){return this._selfless=!1};B2.prototype.namepath=function(){return this._node.namepath()};function ji(){return Rt.apply(this,arguments)}I(ji,Rt);A.ClassScope=ji;ji.prototype.setup=function(){return this._selfless=!1};ji.prototype.namepath=function(){return this._node.namepath()};ji.prototype.virtualize=function(){var t=this.parent();for(let e=this._varmap,r,i=0,s=Object.keys(e),n=s.length,o;i<n;i++)o=s[i],r=e[o],r.resolve(t,!0);return this};ji.prototype.prototype=function(){return this._prototype||(this._prototype=new Gt(Z(".",this.context(),"prototype")))};function G2(){return ji.apply(this,arguments)}I(G2,ji);A.TagScope=G2;function l_(){return Rt.apply(this,arguments)}I(l_,Rt);A.ClosureScope=l_;function L1(){return Rt.apply(this,arguments)}I(L1,Rt);A.FunctionScope=L1;function z2(){return L1.apply(this,arguments)}I(z2,L1);A.IsolatedFunctionScope=z2;z2.prototype.lookup=function(t){this._lookups||(this._lookups={});var e=null;if(t=Ct.sym(t),this._varmap.hasOwnProperty(t))e=this._varmap[t];else if(e=this.parent()&&this.parent().lookup(t),e&&e.closure()==this.parent().closure()){this._leaks||(this._leaks=new Map),this._nonlocals||(this._nonlocals={}),this._nonlocals[t]=e;let r=this._leaks.get(e);r||this._leaks.set(e,r=new hp(this,t,e)),e=r}return e};function Bi(){return Rt.apply(this,arguments)}I(Bi,Rt);A.MethodScope=Bi;Bi.prototype.setup=function(){return this._selfless=!1};Bi.prototype.isInExtend=function(){return this.parent().isInExtend()};Bi.prototype.visit=function(){if(Bi.prototype.__super__.visit.apply(this,arguments),N.tsc()&&this.isInExtend()){let t=this.parent().closure().node();if(t._className){let e=this.context().reference(At("/** @type "+t._className.c()+" */(/** @type unknown */(this))"));this.context()._useReference=!0,e.c()}}return this};function ta(){return Rt.apply(this,arguments)}I(ta,Rt);A.FieldScope=ta;ta.prototype.setup=function(){return this._selfless=!1};ta.prototype.mergeScopeInto=function(t){for(let e=this._varmap,r,i=0,s=Object.keys(e),n=s.length,o;i<n;i++)o=s[i],r=e[o],o!="self"&&(r.resolve(t,!0),t.declare(r));return this._context&&this._context._reference&&(this._context._reference=t.context().reference()),!0};function la(){return Rt.apply(this,arguments)}I(la,Rt);A.LambdaScope=la;la.prototype.context=function(){return this._context||(this._context=this.parent().context().fromScope(this)),this._context};function $e(){return Rt.apply(this,arguments)}I($e,Rt);A.FlowScope=$e;$e.prototype.params=function(){if(this._parent)return this._parent.params()};$e.prototype.register=function(t,e,r){var i;return e===void 0&&(e=null),r===void 0&&(r={}),r.type!="let"&&r.type!="const"&&this.closure()!=this?((i=this.lookup(t))&&i.type()=="let"&&e&&e.warn("Variable already exists in block"),this.closure().register(t,e,r)):$e.prototype.__super__.register.call(this,t,e,r)};$e.prototype.autodeclare=function(t){return this.parent().autodeclare(t)};$e.prototype.closure=function(){return this._parent.closure()};$e.prototype.context=function(){return this._context||(this._context=this.parent().context())};$e.prototype.closeScope=function(){return this._context&&this._context.reference(),this};$e.prototype.temporary=function(t,e,r){return e===void 0&&(e={}),r===void 0&&(r=null),(this._systemscope||this.parent()).temporary(t,e,r)};function lp(){return $e.apply(this,arguments)}I(lp,$e);A.CatchScope=lp;function U2(){return $e.apply(this,arguments)}I(U2,$e);A.WhileScope=U2;U2.prototype.autodeclare=function(t){return this.vars().add(t)};function H2(){return $e.apply(this,arguments)}I(H2,$e);A.ForScope=H2;H2.prototype.autodeclare=function(t){return this.vars().add(t)};function up(){return $e.apply(this,arguments)}I(up,$e);A.IfScope=up;function P1(){return $e.apply(this,arguments)}I(P1,$e);A.BlockScope=P1;P1.prototype.region=function(){return this.node().region()};function cp(){return $e.apply(this,arguments)}I(cp,$e);A.TagBodyScope=cp;function Mt(t,e,r,i){this._ref=N._counter++,this._c=null,this._scope=t,this._name=e,t
`):""};Or.prototype.access=function(t,e){if(e===void 0&&(e=null),this._globalName)return At(""+ut(this._globalName,e)+"."+ns(t));let r=ns(t,{mark:!1});return this._exports[r]||(this._exports[r]=At(""+this._name+"_"+r))};Or.prototype.c=function(){return this._importAll||(this._importAll=!0),Or.prototype.__super__.c.apply(this,arguments)};function on(){return Or.apply(this,arguments)}I(on,Or);A.ImbaRuntime=on;on.prototype.configure=function(t){return t.runtime=="global"||N.tsc()?this._globalName="imba":t.runtime&&this.setPath(t.runtime),this};on.prototype.head=function(){return N.tsc()?"":on.prototype.__super__.head.apply(this,arguments)};on.prototype.c=function(){return this._importAll||(this._importAll=!0,N.current().warn("Referencing imba directly disables efficient tree-shaking")),this._c="imba"};function lr(t,e){this._scope=t,this._value=e,this._reference=null}I(lr,X);A.ScopeContext=lr;lr.prototype.scope=function(t){return this._scope};lr.prototype.setScope=function(t){return this._scope=t,this};lr.prototype.value=function(t){return this._value};lr.prototype.setValue=function(t){return this._value=t,this};lr.prototype.reference=function(t){return this._reference};lr.prototype.setReference=function(t){return this._reference=t,this};lr.prototype.namepath=function(){return this._scope.namepath()};lr.prototype.reference=function(t){return this._reference||(this._reference=this.scope().lookup("self")||this.scope().declare("self",t==null?new Rs:t))};lr.prototype.fromScope=function(t){return new ua(t,this)};lr.prototype.isConstant=function(){return!0};lr.prototype.c=function(){if(this._useReference&&this._reference)return this.reference().c();var t=this._value;return t?t.c():"this"};lr.prototype.cache=function(){return this};lr.prototype.proto=function(){return""+this.c()+".prototype"};lr.prototype.isGlobalContext=function(){return!1};function ua(t,e){this._scope=t,this._parent=e,this._reference=e.reference()}I(ua,lr);A.IndirectScopeContext=ua;ua.prototype.reference=function(){return this._reference};ua.prototype.c=function(){return this.reference().c()};ua.prototype.isGlobalContext=function(){return this._parent.isGlobalContext()};function ca(){return lr.apply(this,arguments)}I(ca,lr);A.RootScopeContext=ca;ca.prototype.reference=function(){return this._reference||(this._reference=this.scope().lookup("global"))};ca.prototype.c=function(t){return"globalThis";var e};ca.prototype.isGlobalContext=function(){return!0};function or(t,e){this._keyword=t,this._member=e,or.prototype.__super__.constructor.apply(this,arguments)}I(or,X);A.Super=or;or.prototype.member=function(t){return this._member};or.prototype.setMember=function(t){return this._member=t,this};or.prototype.args=function(t){return this._args};or.prototype.setArgs=function(t){return this._args=t,this};or.prototype.visit=function(){var t;return this._method=N.method(),this._up=N.parent(),(t=N.method())&&(t.set({supr:{node:N.blockpart(),block:N.block(),real:this}}),t.set({injectInitAfter:N.blockpart()})),this._method&&(this._class=N.up(le)),this.args()&&this.args().traverse(),this};or.prototype.startLoc=function(){return this._keyword&&this._keyword.startLoc()};or.prototype.endLoc=function(){return this._keyword&&this._keyword.endLoc()};or.callOp=function(t,e){let r=Z(".",At("super"),t);return Ve(r,e||[At("...arguments")])};or.prototype.c=function(){let t=this._method,e=this._up,r=At("super"),i,s=this.option("top"),n=t&&t.option("inExtension"),o=this.args();if(n&&this._class&&(r=Ve(this._class.virtualSuper(),[this.slf()])),!(e instanceof se||e instanceof ke)){if(t&&t.isConstructor()&&!this.member()){if(N.tsc()&&this._class&&!this._class.superclass())return o?"["+o.c()+"]":"";let a=this.option("target")||At("super"),l=this.option("args")||[At("...arguments")];return ut(Ve(a,o||l).c(),this._keyword)}else this.member()?i=Z(".",r,this.member()):t&&(i=Z(".",r,t.name()),t.isSetter()?i=Z("=",i,t.params().at(0)):t.isGetter()||o||(o=[At("...arguments")]));return o&&(i=Ve(i,o)),i?ut(i.c({mark:!1}),this._keyword):"/**/"}return this.member()?Z(".",r,this.member()).c():e instanceof ke&
`),Pe=A.BR=new ea(`
`),Ry=A.BR2=new ea(`
`),wm=A.SELF=new Vr,hr=A.THIS=At("this"),xm=A.PROTO=At("this.prototype"),m2=A.TRUE=new ln("true"),Lh=A.FALSE=new un("false"),Wo=A.UNDEFINED=new qn,Cy=A.NIL=new an,Ny=A.ARGUMENTS=new A2("arguments"),fp=A.EMPTY="",d1=A.NULL="null",Ly=A.RESERVED=["default","native","enum","with"],km=A.RESERVED_REGEX=/^(default|native|enum|with|new|char)$/});var h_={};ms(h_,{resolveConfigFile:()=>c_});function Sm(t){let e;return t?(e=t.toIterable)?e.call(t):t:[]}function dp(t,e){var r;if(t instanceof Array)for(let i=0,s=Sm(t),n=s.length;i<n;i++){let o=s[i];t[i]=dp(o,e)}else{if(typeof t=="string")return t.replace(/^\.\//,e+"/");if(typeof t=="object")for(let i=0,s=Object.keys(t),n=s.length,o,a;i<n;i++){o=s[i],a=t[o];let l=o.replace(/^\.\//,e+"/");t[l]=dp(a,e),l!=o&&(r=t[o],delete t[o])}}return t}function c_(t,{path:e,fs:r}){if(!e||!r||!t||t==e.dirname(t))return null;let i=e.resolve(t,"package.json");if(M1[i])return M1[i];if(M1[i]!==null&&r.existsSync(i)){let s=function(a,l){return typeof l=="string"&&l.match(/^\.\//)?e.resolve(t,l):l},n=JSON.parse(r.readFileSync(i,"utf8")),o=n.imba||(n.imba={});return dp(o,t),o.package=n,o.cwd||(o.cwd=t),M1[i]=o}else M1[i]=null;return c_(e.dirname(t),{path:e,fs:r})}var M1,p_=rr(()=>{M1={}});var m_=ae(xi=>{var wi={},Dy=Pa(),Tm=ko(),Em=E3(),K2=L3(),W2=xi.parser=P3().parser,Am=u_(),Im=(p_(),Zi(h_)).resolveConfigFile,f_=Il().ImbaParseError,d_=(Al(),Zi(El)),My=d_.Diagnostic,so=d_.Compilation,__=xi.lex=new Em.Lexer,Om=xi.Rewriter=K2.Rewriter,Vy=xi.helpers=Tm;K2=new Om;W2.lexer=__.jisonBridge();W2.yy=Am;so.prototype.lexer=__;so.prototype.rewriter=K2;so.prototype.parser=W2;xi.resolveConfig=wi.resolveConfig=function(t){t===void 0&&(t={});let e=t.sourcePath;return t.config||(t.config=Im(e,t)||{}),t};xi.deserialize=wi.deserialize=function(t,e){return e===void 0&&(e={}),so.deserialize(t,e)};xi.tokenize=wi.tokenize=function(t,e){return e===void 0&&(e={}),new so(t,e).tokenize()};xi.rewrite=wi.rewrite=function(t,e){return e===void 0&&(e={}),K2.rewrite(t,e)};xi.parse=wi.parse=function(t,e){e===void 0&&(e={}),e=wi.resolveConfig(e);var r=t instanceof Array?t:wi.tokenize(t,e);try{return W2.parse(r)}catch(i){throw i._code=t,e.sourcePath&&(i._sourcePath=e.sourcePath),i}};xi.compile=wi.compile=function(t,e){return e===void 0&&(e={}),new so(t,wi.resolveConfig(e)).compile()};xi.resolve=wi.resolve=function(t,e){return e===void 0&&(e={}),new so(t,wi.resolveConfig(e)).compile()};xi.analyze=wi.analyze=function(t,e){e===void 0&&(e={});var r;try{var i=wi.parse(t,e);r=i.analyze(e)}catch(s){if(!(s instanceof f_))if(s.lexer)s=new f_(s,{tokens:s.lexer.tokens,pos:s.lexer.pos});else throw s;r={warnings:[s]}}return r}});var Ns=al(m_());Ch();Yo();Uu();Wu();var y_={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}};var _p={},ha=class{static getTokenizer(e){return e=="xml"&&!_p[e]?this.createTokeniz
`&&(u="<i raw='"+JSON.stringify(u)+"'>"+g_(u||"")+"</i>"),r.push(u),(d=="end"||d=="close"||c.start)&&r.push("</b>")}}return r.join("")}Co();wl();wc();Va();var ig=l2,sg=mp;var export_compile=Ns.compile;var export_deserialize=Ns.deserialize;var export_helpers=Ns.helpers;var export_parse=Ns.parse;var export_parser=Ns.parser;var export_resolve=Ns.resolve;var export_resolveConfig=Ns.resolveConfig;var export_rewrite=Ns.rewrite;var export_tokenize=Ns.tokenize;export{Fn as aliases,export_compile as compile,export_deserialize as deserialize,a1 as fonts,export_helpers as helpers,qo as modifiers,export_parse as parse,Cm as parseAsset,export_parser as parser,sg as program,export_resolve as resolve,export_resolveConfig as resolveConfig,export_rewrite as rewrite,ig as selparser,export_tokenize as tokenize,pd as variants};