imba
Version:
21 lines • 644 kB
JavaScript
var I3=Object.create,d1=Object.defineProperty,R3=Object.getPrototypeOf,N3=Object.prototype.hasOwnProperty,O3=Object.getOwnPropertyNames,C3=Object.getOwnPropertyDescriptor;var $i=t=>d1(t,"__esModule",{value:!0});var nr=(t,e)=>()=>(e||(e={exports:{}},t(e.exports,e)),e.exports),Bi=(t,e)=>{for(var r in e)d1(t,r,{get:e[r],enumerable:!0})},oo=(t,e,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of O3(e))!N3.call(t,i)&&i!=="default"&&d1(t,i,{get:()=>e[i],enumerable:!(r=C3(e,i))||r.enumerable});return t},m1=t=>oo($i(d1(t!=null?I3(R3(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var ta=nr(or=>{var Hi={},Ts=or.TOK={},T_=Ts.TERMINATOR=1,E_=Ts.IDENTIFIER=Ts.IVAR=2,A_=Ts.CONST=3,I_=Ts.VAR=4,R_=Ts.IF=5,N_=Ts.ELSE=6,O_=Ts.DEF=7;function Je(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}or.Token=Je;Je.prototype.type=function(){return this._type};Je.prototype.value=function(){return this._value};Je.prototype.traverse=function(){};Je.prototype.c=function(){return""+this._value};Je.prototype.prepend=function(t){return this._value=t+this._value,this};Je.prototype.toString=function(){return this._value};Je.prototype.charAt=function(t){return this._value.charAt(t)};Je.prototype.slice=function(t){return this._value.slice(t)};Je.prototype.cloneSlice=function(t,e){return new Je(e||this._type,this.slice(t),this._loc+t,this._len-t)};Je.prototype.region=function(){return[this._loc,this._loc+this._len]};Je.prototype.startLoc=function(){return this._loc};Je.prototype.endLoc=function(){return this._loc+this._len};Je.prototype.loc=function(){return[this._loc,this.endLoc()]};or.lex=Hi.lex=function(){var t=this.tokens[this.pos++],e;return t?(e=t._type,this.yytext=t):e="",e};or.token=Hi.token=function(t,e){return new Je(t,e,-1,0)};or.typ=Hi.typ=function(t){return t._type};or.val=Hi.val=function(t){return t._value};or.line=Hi.line=function(t){return t._line};or.loc=Hi.loc=function(t){return t._loc};or.setTyp=Hi.setTyp=function(t,e){return t._type=e};or.setVal=Hi.setVal=function(t,e){return t._value=e};or.setLine=Hi.setLine=function(t,e){return t._line=e};or.setLoc=Hi.setLoc=function(t,e){return t._loc=e};var L3=or.LBRACKET=new Je("{","{",0,0,0),D3=or.RBRACKET=new Je("}","}",0,0,0),F3=or.LPAREN=new Je("(","(",0,0,0),M3=or.RPAREN=new Je(")",")",0,0,0);L3.generated=!0;D3.generated=!0;F3.generated=!0;M3.generated=!0;var C_=or.INDENT=new Je("INDENT","2",0,0,0),L_=or.OUTDENT=new Je("OUTDENT","2",0,0,0)});var Eu=nr((exports,module)=>{(function(){"use strict";var root=typeof window=="object"?window:{},NODE_JS=!root.JS_SHA1_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS&&(root=global);var COMMON_JS=!root.JS_SHA1_NO_COMMON_JS&&typeof module=="object"&&module.exports,AMD=typeof define=="function"&&define.amd,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[],createOutputMethod=function(t){return function(e){return new Sha1(!0).update(e)[t]()}},createMethod=function(){var t=createOutputMethod("hex");t.create=function(){return new Sha1},t.update=function(i){return t.create().update(i)};for(var e=0;e<OUTPUT_TYPES.length;++e){var r=OUTPUT_TYPES[e];t[r]=createOutputMethod(r)}return t},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(t){if(typeof t=="string")return crypto.createHash("sha1").update(t,"utf8").digest("hex");if(t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(t.length===void 0)return method(t);return crypto.createHash("sha1").update(new Buffer(t)).digest("hex")};return nodeMethod};function Sha1(t){t?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Sha1.prototype.update=function(t){if(!this.finalized){var e=typeof t!="string";e&&t.constructor===root.ArrayBuffer&&(t=new Uint8Array(t));for(var r,i=0,s,n=t.length||0,o=this.blocks;i<n;){if(this.hashed&&(this.hashed=!1,o[0]=this.block,o[16]=o[1]=o[2]=o[3]=o[4]=o[5]=o[6]=o[7]=o[8]=o[9]=o[10]=o[11]=o[12]=o[13]=o[14]=o[15]=0),e)for(s=this.start;i<n&&s<64;++i)o[s>>2]|=t[i]<<SHIFT[s++&3];else for(s=this.start;i<n&&s<64;++i)r=t.charCodeAt(i),r<128?o[s>>2]|=r<<SHIFT[s++&3]:r<2048?(o[s>>2]|=(192|r>>6)<<SHIFT[s++&3],o[s>>2]|=(128|r&63)<<SHIFT[s++&3]):r<55296||r>=57344?(o[s>>2]|=(224|r>>12)<<SHIFT[s++&3],o[s>>2]|=(128|r>>6&63)<<SHIFT[s++&3],o[s>>2]|=(128|r&63)<<SHIFT[s++&3]):(r=65536+((r&1023)<<10|t.charCodeAt(++i)&1023),o[s>>2]|=(240|r>>18)<<SHIFT[s++&3],o[s>>2]|=(128|r>>12&63)<<SHIFT[s++&3],o[s>>2]|=(128|r>>6&63)<<SHIFT[s++&3],o[s>>2]|=(128|r&63)<<SHIFT[s++&3]);this.lastByteIndex=s,this.bytes+=s-this.start,s>=64?(this.block=o[16],this.start=s-64,this.hash(),this.hashed=!0):this.start=s}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha1.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[e&3],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha1.prototype.hash=function(){var t=this.h0,e=this.h1,r=this.h2,i=this.h3,s=this.h4,n,o,a,l=this.blocks;for(o=16;o<80;++o)a=l[o-3]^l[o-8]^l[o-14]^l[o-16],l[o]=a<<1|a>>>31;for(o=0;o<20;o+=5)n=e&r|~e&i,a=t<<5|t>>>27,s=a+n+s+1518500249+l[o]<<0,e=e<<30|e>>>2,n=t&e|~t&r,a=s<<5|s>>>27,i=a+n+i+1518500249+l[o+1]<<0,t=t<<30|t>>>2,n=s&t|~s&e,a=i<<5|i>>>27,r=a+n+r+1518500249+l[o+2]<<0,s=s<<30|s>>>2,n=i&s|~i&t,a=r<<5|r>>>27,e=a+n+e+1518500249+l[o+3]<<0,i=i<<30|i>>>2,n=r&i|~r&s,a=e<<5|e>>>27,t=a+n+t+1518500249+l[o+4]<<0,r=r<<30|r>>>2;for(;o<40;o+=5)n=e^r^i,a=t<<5|t>>>27,s=a+n+s+1859775393+l[o]<<0,e=e<<30|e>>>2,n=t^e^r,a=s<<5|s>>>27,i=a+n+i+1859775393+l[o+1]<<0,t=t<<30|t>>>2,n=s^t^e,a=i<<5|i>>>27,r=a+n+r+1859775393+l[o+2]<<0,s=s<<30|s>>>2,n=i^s^t,a=r<<5|r>>>27,e=a+n+e+1859775393+l[o+3]<<0,i=i<<30|i>>>2,n=r^i^s,a=e<<5|e>>>27,t=a+n+t+1859775393+l[o+4]<<0,r=r<<30|r>>>2;for(;o<60;o+=5)n=e&r|e&i|r&i,a=t<<5|t>>>27,s=a+n+s-1894007588+l[o]<<0,e=e<<30|e>>>2,n=t&e|t&r|e&r,a=s<<5|s>>>27,i=a+n+i-1894007588+l[o+1]<<0,t=t<<30|t>>>2,n=s&t|s&e|t&e,a=i<<5|i>>>27,r=a+n+r-1894007588+l[o+2]<<0,s=s<<30|s>>>2,n=i&s|i&t|s&t,a=r<<5|r>>>27,e=a+n+e-1894007588+l[o+3]<<0,i=i<<30|i>>>2,n=r&i|r&s|i&s,a=e<<5|e>>>27,t=a+n+t-1894007588+l[o+4]<<0,r=r<<30|r>>>2;for(;o<80;o+=5)n=e^r^i,a=t<<5|t>>>27,s=a+n+s-899497514+l[o]<<0,e=e<<30|e>>>2,n=t^e^r,a=s<<5|s>>>27,i=a+n+i-899497514+l[o+1]<<0,t=t<<30|t>>>2,n=s^t^e,a=i<<5|i>>>27,r=a+n+r-899497514+l[o+2]<<0,s=s<<30|s>>>2,n=i^s^t,a=r<<5|r>>>27,e=a+n+e-899497514+l[o+3]<<0,i=i<<30|i>>>2,n=r^i^s,a=e<<5|e>>>27,t=a+n+t-899497514+l[o+4]<<0,r=r<<30|r>>>2;this.h0=this.h0+t<<0,this.h1=this.h1+e<<0,this.h2=this.h2+r<<0,this.h3=this.h3+i<<0,this.h4=this.h4+s<<0},Sha1.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,i=this.h3,s=this.h4;return HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[t&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[e&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[r&15]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[i&15]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[s&15]},Sha1.prototype.toString=Sha1.prototype.hex,Sha1.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,i=this.h3,s=this.h4;return[t>>24&255,t>>16&255,t>>8&255,t&255,e>>24&255,e>>16&255,e>>8&255,e&255,r>>24&255,r>>16&255,r>>8&255,r&255,i>>24&255,i>>16&255,i>>8&255,i&255,s>>24&255,s>>16&255,s>>8&255,s&255]};var alphabet="0123456789abcdefghjkmnpqrtuvwxyz",alias={o:0,i:1,l:1,s:5};Sha1.prototype.b32=function(){for(var t=this.digest(),e=0,r=0,i="",s=0;s<t.length;){var n=t[s];if(e<0?r|=n>>-e:r=n<<e&248,e>3){e-=8,s+=1;continue}e<4&&(i+=alphabet[r>>3],e+=5)}return i=i+(e<0?alphabet[r>>3]:""),i},Sha1.prototype.array=Sha1.prototype.digest,Sha1.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(20),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),t};var exports=createMethod();COMMON_JS?module.exports=exports:(root.sha1=exports,AMD&&define(function(){return exports}))})()});var W2=nr(P3=>{$i(P3);Bi(P3,{InternalPrefixes:()=>Au,ReservedIdentifierRegex:()=>V3,ReservedPrefixes:()=>Iu,ToImbaMap:()=>Ou,ToJSMap:()=>Ru,toCustomTagIdentifier:()=>U3,toImbaIdentifier:()=>z3,toJSIdentifier:()=>Nu});var Au={TAG:"τ",FLIP:"ω",VALUE:"υ",CACHE:"ϲ",KEY:"κ",ANY:"φ",SYM:"ε",SEP:"ι",PRIVATE:"Ψ",B:"ι",T:"τ",C:"ρ",V:"υ",K:"κ",D:"Δ",H:"θ",EXTEND:"Ω"},Iu=new Set(Object.values(Au)),V3=new RegExp("^["+Array.from(Iu).join("")+"]","u"),Ru={"-":"Ξ","?":"Φ","#":"Ψ","@":"α"},j3=new RegExp("[-?#@]","gu"),G3=function(t){return Ru[t]};function Nu(t){return t.replace(j3,G3)}var Ou={Ξ:"-",Φ:"?",Ψ:"#",α:"@"},B3=new RegExp("[ΞΦΨα]","gu"),H3=function(t){return Ou[t]};function z3(t){return t.replace(B3,H3)}function U3(t){return"Γ"+Nu(t)}});var lo=nr(Ee=>{function J2(t){return t?t.toArray?t.toArray():t:[]}var ge={},Y3=Eu(),K3={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},ao=Ee.ansi={bold:function(t){return"[1m"+t+"[22m"},red:function(t){return"[31m"+t+"[39m"},green:function(t){return"[32m"+t+"[39m"},yellow:function(t){return"[33m"+t+"[39m"},blue:function(t){return"[94m"+t+"[39m"},gray:function(t){return"[90m"+t+"[39m"},white:function(t){return"[37m"+t+"[39m"},f:function(t,e){let r=K3[t];return"["+r[0]+"m"+e+"["+r[1]+"m"}};ao.warn=ao.yellow;ao.error=ao.red;var Cu=W2(),q3=Cu.toImbaIdentifier,X3=Cu.toJSIdentifier,W3="αβγδεζηθικλμνξοπρστυφχψω";Ee.brace=ge.brace=function(t){var e=t.match(/\n/);return e?"{"+t+`
}`:`{
`+t+`
}`};Ee.normalizeIndentation=ge.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};Ee.flatten=ge.flatten=function(t){var e=[];return t.forEach(function(r){return r instanceof Array?e.push.apply(e,ge.flatten(r)):e.push(r)}),e};Ee.clearLocationMarkers=ge.clearLocationMarkers=function(t){return t.replace(/\/\*\%([\w\|]*)\$\*\//g,"")};Ee.pascalCase=ge.pascalCase=function(t){return t.replace(/(^|[\-\_\s])(\w)/g,function(e,r,i){return i.toUpperCase()})};Ee.camelCase=ge.camelCase=function(t){return t=String(t),t.replace(/([\-\_\s])(\w)/g,function(e,r,i){return i.toUpperCase()})};Ee.dashToCamelCase=ge.dashToCamelCase=function(t){return t=String(t),t.indexOf("-")>=0&&(t=t.replace(/([\-\s])(\w)/g,function(e,r,i){return i.toUpperCase()})),t};Ee.snakeCase=ge.snakeCase=function(t){var t=t.replace(/([\-\s])(\w)/g,"_");return t.replace(/()([A-Z])/g,"_$1",function(e,r,i){return i.toUpperCase()})};Ee.dasherize=ge.dasherize=function(t){return t.replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase()};Ee.setterSym=ge.setterSym=function(t){return ge.dashToCamelCase("set-"+t)};Ee.quote=ge.quote=function(t){return'"'+t+'"'};Ee.singlequote=ge.singlequote=function(t){return"'"+t+"'"};Ee.isValidIdentifier=ge.isValidIdentifier=function(t){return!/[?-\s]/.test(t)&&t[0]!="#"};Ee.toValidIdentifier=ge.toValidIdentifier=function(t){return X3(t)};Ee.fromValidIdentifier=ge.fromValidIdentifier=function(t){return q3(t)};Ee.isSystemIdentifier=ge.isSystemIdentifier=function(t){return W3.indexOf(t[0])>=0};Ee.symbolize=ge.symbolize=function(t,e){return t=String(t),ge.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};Ee.indent=ge.indent=function(t){return String(t).replace(/^/g," ").replace(/\n/g,`
`).replace(/\n\t$/g,`
`)};Ee.bracketize=ge.bracketize=function(t,e){return e===void 0&&(e=!0),e&&(t=`
`+ge.indent(t)+`
`),"{"+t+"}"};Ee.parenthesize=ge.parenthesize=function(t){return"("+String(t)+")"};Ee.unionOfLocations=ge.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=Infinity,s=-Infinity;for(let n=0,o=J2(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]};Ee.locationToLineColMap=ge.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};Ee.markLineColForTokens=ge.markLineColForTokens=function(t,e){return ge};Ee.parseArgs=ge.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,p=0,c;p<t.length;){var d=t[p];if(p++,c=d.match(/^\-([a-zA-Z]+)(\=\S+)?$/)){l=null;let b=c[1].split("");for(let N=0,y=J2(b),v=y.length,_;N<v;N++){_=y[N];var f=i[_]||_;b[N]=f,o[f]=!0}b.length==1&&(l=b);continue}else if(c=d.match(/^\-\-([a-z0-9\-\_A-Z]+)(\=\S+)?$/)){var m=!0;f=c[1],f.indexOf("no-")==0&&(f=f.substr(3),m=!1),f=ge.dashToCamelCase(f),c[2]&&(m=c[2].slice(1)),o[f]=m,l=f;continue}else{var g=n[l];l&&n[l]||(l="main"),d.match(/^\d+$/)&&(d=parseInt(d)),m=o[l],m==!0||m==!1?o[l]=d:typeof m=="string"||m instanceof String||typeof m=="number"||m instanceof Number?o[l]=[m].concat(d):m instanceof Array?m.push(d):o[l]=d,g&&g.multi||(l="main")}}for(let b=0,N=J2(s),y=N.length;b<y;b++){let v=ge.dashToCamelCase(N[b]);for(let _,w=0,k=Object.keys(o),T=k.length,S;w<T;w++)if(S=k[w],_=o[S],S.indexOf(v)==0){let C=S.substr(v.length).replace(/^\w/,function(L){return L.toLowerCase()});C?(o[v]||(o[v]={}),o[v][C]=_):o[v]||(o[v]={})}}return(typeof(r=o.env)=="string"||r instanceof String)&&(o["ENV_"+o.env]=!0),o};Ee.printExcerpt=ge.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=ge.locationToLineColMap(t),p=l[e[0]]||[0,0],c=p[0],d=p[1],f=a[c],m=Math.max(0,c-o),g=Math.min(m+o+1+o,a.length);let b=c-m;for(var N=m,y=[];N<g;)y.push(a[N++]);var v=y;return s&&(v=v.map(function(w,k){let T=""+(m+k+1),S;for(;T.length<String(g).length;)T=" "+T;return k==b?(S=" -> "+T+" | "+w,i&&(S=ao.f(i,S))):(S=" "+T+" | "+w,i&&(S=ao.f("gray",S))),S})),v.join(`
`)};Ee.printWarning=ge.printWarning=function(t,e){let r=e.message,i=ge.printExcerpt(t,e.loc,{hl:"whiteBright",type:"warn",pad:1});return r+`
`+i};Ee.identifierForPath=ge.identifierForPath=function(t){var e=Y3.create();e.update(t);var r=e.b32().replace(/^\d+/,"");return r.slice(0,6)}});var b1=nr(Si=>{function J3(t){return t?t.toArray?t.toArray():t:[]}var Z2=Si.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"]],Lu=Si.INVERSES={};for(let t=0,e=Z2.length,r;t<e;t++)r=Z2[t],y1=r[0],g1=r[1],Lu[g1]=y1,Lu[y1]=g1,Z2[y1]=g1;var y1,g1,P_=Si.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"],V_=Si.TOK={TERMINATOR:"TERMINATOR",INDENT:"INDENT",OUTDENT:"OUTDENT",DEF_BODY:"DEF_BODY",THEN:"THEN",CATCH:"CATCH"},j_=Si.OPERATOR_ALIASES={and:"&&",or:"||",is:"==",isnt:"!=",isa:"instanceof"},G_=Si.HEREGEX_OMIT=/\s+(?:#.*)?/g,B_=Si.HEREGEX=/^\/{3}([\s\S]+?)\/{3}([a-z]{0,8})(?!\w)/,H_=Si.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},z_=Si.SYSVAR_PREFIX={TAG:"τ",FLIP:"ω",VALUE:"υ",CACHE:"ρ",KEY:"κ",ANY:"φ",B:"Θ",T:"τ",C:"ρ",V:"υ",K:"κ",D:"Δ"},v1=Si.TAG_TYPES={"":[-1,{id:1,className:"class",slot:1,part:1,elementTiming:"elementtiming"}],HTML:[-1,{title:1,lang:1,translate:1,dir:1,accessKey:"accesskey",draggable:1,spellcheck:1,autocapitalize:1,inputMode:"inputmode",style:1,tabIndex:"tabindex",enterKeyHint:"enterkeyhint"}],HTMLAnchor:[1,{target:1,download:1,ping:1,rel:1,relList:"rel",hreflang:1,type:1,referrerPolicy:"referrerpolicy",coords:1,charset:1,name:1,rev:1,shape:1,href:1}],HTMLArea:[1,{alt:1,coords:1,download:1,shape:1,target:1,ping:1,rel:1,relList:"rel",referrerPolicy:"referrerpolicy",href:1}],HTMLMedia:[1,{src:1,crossOrigin:"crossorigin",preload:1,controlsList:"controlslist"}],HTMLAudio:[4,{}],HTMLBase:[1,{href:1,target:1}],HTMLQuote:[1,{cite:1}],HTMLBody:[1,{text:1,link:1,vLink:"vlink",aLink:"alink",bgColor:"bgcolor",background:1}],HTMLBR:[1,{clear:1}],HTMLButton:[1,{formAction:"formaction",formEnctype:"formenctype",formMethod:"formmethod",formTarget:"formtarget",name:1,type:1,value:1}],HTMLCanvas:[1,{width:1,height:1}],HTMLTableCaption:[1,{align:1}],HTMLTableCol:[1,{span:1,align:1,ch:"char",chOff:"charoff",vAlign:"valign",width:1}],HTMLData:[1,{value:1}],HTMLDataList:[1,{}],HTMLMod:[1,{cite:1,dateTime:"datetime"}],HTMLDetails:[1,{}],HTMLDialog:[1,{}],HTMLDiv:[1,{align:1}],HTMLDList:[1,{}],HTMLEmbed:[1,{src:1,type:1,width:1,height:1,align:1,name:1}],HTMLFieldSet:[1,{name:1}],HTMLForm:[1,{acceptCharset:"accept-charset",action:1,autocomplete:1,enctype:1,encoding:"enctype",method:1,name:1,target:1}],HTMLHeading:[1,{align:1}],HTMLHead:[1,{}],HTMLHR:[1,{align:1,color:1,size:1,width:1}],HTMLHtml:[1,{version:1}],HTMLIFrame:[1,{src:1,srcdoc:1,name:1,sandbox:1,width:1,height:1,referrerPolicy:"referrerpolicy",csp:1,allow:1,align:1,scrolling:1,frameBorder:"frameborder",longDesc:"longdesc",marginHeight:"marginheight",marginWidth:"marginwidth",loading:1}],HTMLImage:[1,{alt:1,src:1,srcset:1,sizes:1,crossOrigin:"crossorigin",useMap:"usemap",width:1,height:1,referrerPolicy:"referrerpolicy",decoding:1,name:1,lowsrc:1,align:1,hspace:1,vspace:1,longDesc:"longdesc",border:1,loading:1}],HTMLInput:[1,{accept:1,alt:1,autocomplete:1,dirName:"dirname",formAction:"formaction",formEnctype:"formenctype",formMethod:"formmethod",formTarget:"formtarget",height:1,max:1,maxLength:"maxlength",min:1,minLength:"minlength",name:1,pattern:1,placeholder:1,src:1,step:1,type:1,defaultValue:"value",width:1,align:1,useMap:"usemap"}],HTMLLabel:[1,{htmlFor:"for"}],HTMLLegend:[1,{align:1}],HTMLLI:[1,{value:1,type:1}],HTMLLink:[1,{href:1,crossOrigin:"crossorigin",rel:1,relList:"rel",media:1,hreflang:1,type:1,as:1,referrerPolicy:"referrerpolicy",sizes:1,imageSrcset:"imagesrcset",imageSizes:"imagesizes",charset:1,rev:1,target:1,integrity:1}],HTMLMap:[1,{name:1}],HTMLMenu:[1,{}],HTMLMeta:[1,{name:1,httpEquiv:"http-equiv",content:1,scheme:1}],HTMLMeter:[1,{value:1,min:1,max:1,low:1,high:1,optimum:1}],HTMLObject:[1,{data:1,type:1,name:1,useMap:"usemap",width:1,height:1,align:1,archive:1,code:1,hspace:1,standby:1,vspace:1,codeBase:"codebase",codeType:"codetype",border:1}],HTMLOList:[1,{start:1,type:1}],HTMLOptGroup:[1,{label:1}],HTMLOption:[1,{label:1,value:1}],HTMLOutput:[1,{htmlFor:"for",name:1}],HTMLParagraph:[1,{align:1}],HTMLParam:[1,{name:1,value:1,type:1,valueType:"valuetype"}],HTMLPicture:[1,{}],HTMLPre:[1,{width:1}],HTMLProgress:[1,{value:1,max:1}],HTMLScript:[1,{src:1,type:1,charset:1,crossOrigin:"crossorigin",referrerPolicy:"referrerpolicy",event:1,htmlFor:"for",integrity:1}],HTMLSelect:[1,{autocomplete:1,name:1,size:1}],HTMLSlot:[1,{name:1}],HTMLSource:[1,{src:1,type:1,srcset:1,sizes:1,media:1}],HTMLSpan:[1,{}],HTMLStyle:[1,{media:1,type:1}],HTMLTable:[1,{align:1,border:1,frame:1,rules:1,summary:1,width:1,bgColor:"bgcolor",cellPadding:"cellpadding",cellSpacing:"cellspacing"}],HTMLTableSection:[1,{align:1,ch:"char",chOff:"charoff",vAlign:"valign"}],HTMLTableCell:[1,{colSpan:"colspan",rowSpan:"rowspan",headers:1,align:1,axis:1,height:1,width:1,ch:"char",chOff:"charoff",vAlign:"valign",bgColor:"bgcolor",abbr:1,scope:1}],HTMLTemplate:[1,{}],HTMLTextArea:[1,{autocomplete:1,cols:1,dirName:"dirname",maxLength:"maxlength",minLength:"minlength",name:1,placeholder:1,rows:1,wrap:1}],HTMLTime:[1,{dateTime:"datetime"}],HTMLTitle:[1,{}],HTMLTableRow:[1,{align:1,ch:"char",chOff:"charoff",vAlign:"valign",bgColor:"bgcolor"}],HTMLTrack:[1,{kind:1,src:1,srclang:1,label:1}],HTMLUList:[1,{type:1}],HTMLVideo:[4,{width:1,height:1,poster:1}],SVG:[-1,{}],SVGGraphics:[66,{transform:1}],SVGA:[67,{}],SVGAnimation:[66,{}],SVGAnimate:[69,{}],SVGAnimateMotion:[69,{}],SVGAnimateTransform:[69,{}],SVGGeometry:[67,{}],SVGCircle:[73,{cx:1,cy:1,r:1}],SVGClipPath:[67,{clipPathUnits:1}],SVGDefs:[67,{}],SVGDesc:[66,{}],SVGDiscard:[66,{}],SVGEllipse:[73,{cx:1,cy:1,rx:1,ry:1}],SVGFEBlend:[66,{mode:1,x:1,y:1,width:1,height:1}],SVGFEColorMatrix:[66,{type:1,values:1,x:1,y:1,width:1,height:1}],SVGFEComponentTransfer:[66,{x:1,y:1,width:1,height:1}],SVGFEComposite:[66,{operator:1,x:1,y:1,width:1,height:1}],SVGFEConvolveMatrix:[66,{orderX:1,orderY:1,kernelMatrix:1,divisor:1,edgeMode:1,x:1,y:1,width:1,height:1}],SVGFEDiffuseLighting:[66,{surfaceScale:1,diffuseConstant:1,x:1,y:1,width:1,height:1}],SVGFEDisplacementMap:[66,{xChannelSelector:1,yChannelSelector:1,x:1,y:1,width:1,height:1}],SVGFEDistantLight:[66,{}],SVGFEDropShadow:[66,{dx:1,dy:1,stdDeviationX:1,stdDeviationY:1,x:1,y:1,width:1,height:1}],SVGFEFlood:[66,{x:1,y:1,width:1,height:1}],SVGComponentTransferFunction:[66,{type:1,tableValues:1,slope:1,amplitude:1,exponent:1}],SVGFEFuncA:[90,{}],SVGFEFuncB:[90,{}],SVGFEFuncG:[90,{}],SVGFEFuncR:[90,{}],SVGFEGaussianBlur:[66,{x:1,y:1,width:1,height:1}],SVGFEImage:[66,{preserveAspectRatio:1,x:1,y:1,width:1,height:1}],SVGFEMerge:[66,{x:1,y:1,width:1,height:1}],SVGFEMergeNode:[66,{}],SVGFEMorphology:[66,{operator:1,x:1,y:1,width:1,height:1}],SVGFEOffset:[66,{x:1,y:1,width:1,height:1}],SVGFEPointLight:[66,{}],SVGFESpecularLighting:[66,{surfaceScale:1,specularConstant:1,specularExponent:1,x:1,y:1,width:1,height:1}],SVGFESpotLight:[66,{specularExponent:1}],SVGFETile:[66,{x:1,y:1,width:1,height:1}],SVGFETurbulence:[66,{numOctaves:1,stitchTiles:1,type:1,x:1,y:1,width:1,height:1}],SVGFilter:[66,{filterUnits:1,primitiveUnits:1,x:1,y:1,width:1,height:1}],SVGForeignObject:[67,{x:1,y:1,width:1,height:1}],SVGG:[67,{}],SVGImage:[67,{x:1,y:1,width:1,height:1,preserveAspectRatio:1}],SVGLine:[73,{x1:1,y1:1,x2:1,y2:1}],SVGGradient:[66,{gradientUnits:1,gradientTransform:1,spreadMethod:1}],SVGLinearGradient:[111,{x1:1,y1:1,x2:1,y2:1}],SVGMarker:[66,{refX:1,refY:1,markerUnits:1,markerWidth:1,markerHeight:1,orientType:1,orientAngle:1,viewBox:1,preserveAspectRatio:1}],SVGMask:[66,{maskUnits:1,maskContentUnits:1,x:1,y:1,width:1,height:1}],SVGMetadata:[66,{}],SVGMPath:[66,{}],SVGPath:[73,{}],SVGPattern:[66,{patternUnits:1,patternContentUnits:1,patternTransform:1,x:1,y:1,width:1,height:1,viewBox:1,preserveAspectRatio:1}],SVGPolygon:[73,{}],SVGPolyline:[73,{}],SVGRadialGradient:[111,{cx:1,cy:1,r:1,fx:1,fy:1,fr:1}],SVGRect:[73,{x:1,y:1,width:1,height:1,rx:1,ry:1}],SVGScript:[66,{}],SVGSet:[69,{}],SVGStop:[66,{}],SVGStyle:[66,{}],SVGSVG:[67,{x:1,y:1,width:1,height:1,viewBox:1,preserveAspectRatio:1}],SVGSwitch:[67,{}],SVGSymbol:[66,{viewBox:1,preserveAspectRatio:1}],SVGTextContent:[67,{textLength:1,lengthAdjust:1}],SVGTextPositioning:[130,{x:1,y:1,dx:1,dy:1,rotate:1}],SVGText:[131,{}],SVGTextPath:[130,{startOffset:1,method:1,spacing:1}],SVGTitle:[66,{}],SVGTSpan:[131,{}],SVGUse:[67,{x:1,y:1,width:1,height:1}],SVGView:[66,{viewBox:1,preserveAspectRatio:1}]},Q2=Si.TAG_NAMES={a:2,abbr:1,address:1,area:3,article:1,aside:1,audio:5,b:1,base:6,bdi:1,bdo:1,blockquote:7,body:8,br:9,button:10,canvas:11,caption:12,cite:1,code:1,col:13,colgroup:13,data:14,datalist:15,dd:1,del:16,details:17,dfn:1,dialog:18,div:19,dl:20,dt:1,em:1,embed:21,fieldset:22,figcaption:1,figure:1,footer:1,form:23,h1:24,h2:24,h3:24,h4:24,h5:24,h6:24,head:25,header:1,hgroup:1,hr:26,html:27,i:1,iframe:28,img:29,input:30,ins:16,kbd:1,label:31,legend:32,li:33,link:34,main:1,map:35,mark:1,menu:36,meta:37,meter:38,nav:1,noscript:1,object:39,ol:40,optgroup:41,option:42,output:43,p:44,param:45,picture:46,pre:47,progress:48,q:7,rp:1,rt:1,ruby:1,s:1,samp:1,script:49,section:1,select:50,slot:51,small:1,source:52,span:53,strike:1,strong:1,style:54,sub:1,summary:1,sup:1,table:55,tbody:56,td:57,template:58,textarea:59,tfoot:56,th:57,thead:56,time:60,title:61,tr:62,track:63,u:1,ul:64,var:1,video:65,wbr:1,svg_a:68,svg_animate:70,svg_animateMotion:71,svg_animateTransform:72,svg_audio:66,svg_canvas:66,svg_circle:74,svg_clipPath:75,svg_defs:76,svg_desc:77,svg_discard:78,svg_ellipse:79,svg_feBlend:80,svg_feColorMatrix:81,svg_feComponentTransfer:82,svg_feComposite:83,svg_feConvolveMatrix:84,svg_feDiffuseLighting:85,svg_feDisplacementMap:86,svg_feDistantLight:87,svg_feDropShadow:88,svg_feFlood:89,svg_feFuncA:91,svg_feFuncB:92,svg_feFuncG:93,svg_feFuncR:94,svg_feGaussianBlur:95,svg_feImage:96,svg_feMerge:97,svg_feMergeNode:98,svg_feMorphology:99,svg_feOffset:100,svg_fePointLight:101,svg_feSpecularLighting:102,svg_feSpotLight:103,svg_feTile:104,svg_feTurbulence:105,svg_filter:106,svg_foreignObject:107,svg_g:108,svg_iframe:66,svg_image:109,svg_line:110,svg_linearGradient:112,svg_marker:113,svg_mask:114,svg_metadata:115,svg_mpath:116,svg_path:117,svg_pattern:118,svg_polygon:119,svg_polyline:120,svg_radialGradient:121,svg_rect:122,svg_script:123,svg_set:124,svg_stop:125,svg_style:126,svg_svg:127,svg_switch:128,svg_symbol:129,svg_text:132,svg_textPath:133,svg_title:134,svg_tspan:135,svg_unknown:66,svg_use:136,svg_video:66,svg_view:137},$2=Object.keys(v1);for(let t=0,e=J3($2),r=e.length,i;t<r;t++){i=e[t];let s=v1[i];s.up=v1[$2[s[0]]],s.name=i+"Element"}for(let t,e=0,r=Object.keys(Q2),i=r.length,s;e<i;e++)s=r[e],t=Q2[s],Q2[s]=v1[$2[t]]});var bl=nr(_f=>{$i(_f);Bi(_f,{SourceMapper:()=>Fh});var Fh=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 N1=nr(df=>{$i(df);Bi(df,{Compilation:()=>Is,CompilationResult:()=>jh});var Mh=m1(require("path")),kl=bl(),Ph=Symbol.for("#__init__"),Kd=Symbol.for("#__initor__"),qd=Symbol.for("#__inited__"),Vh=Symbol.for("#doc"),xl={TOKENIZE:1,REWRITE:2,PARSE:4,TRAVERSE:8,COMPILE:16},Xd=new WeakMap,jh=class{},Is=class{static[Ph](){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 Is("",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=xl.TOKENIZE))==0?(this.flags|=e,!0):!1)try{Is.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(r){}return this.tokens}parse(){var e;if(this.tokenize(),((this.flags&(e=xl.PARSE))==0?(this.flags|=e,!0):!1)&&!this.erroredΦ){Is.current=this;try{this.ast=this.parser.parse(this.tokens,this)}catch(r){}}return this}compile(){var e;return this.parse(),((this.flags&(e=xl.COMPILE))==0?(this.flags|=e,!0):!1)&&(this.erroredΦ||(Is.current=this,this.result=this.ast.compile(this.options,this)),this.options.raiseErrors&&this.raiseErrors()),this}recompile(e={}){if(this.deserialized){let r=this.deserialized.js,i={};return i.js=kl.SourceMapper.run(r,e),i.css=kl.SourceMapper.run(this.deserialized.css||"",e),e.styles=="import"&&i.css.code&&(i.js.code+=`
import './`+Mh.default.basename(this.sourcePath)+".css'"),i}return{js:this.js}}addDiagnostic(e,r){r.severity||(r.severity=e);let i=new tl(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==ea.Error})}get warnings(){return this.diagnostics.filter(function(e){return e.severity==ea.Warning})}get info(){return this.diagnostics.filter(function(e){return e.severity==ea.Information})}get doc(){return this[Vh]||(this[Vh]=new gn(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}};Is[Ph]()});var O1=nr(wl=>{function Gh(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 Sl=lo(),Bh=new WeakMap;function Sr(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}Gh(Sr,Error);wl.ImbaParseError=Sr;Sr.wrap=function(t){return new this(t)};Object.defineProperty(Sr.prototype,"_options",{get:function(){return Bh.get(this)},configurable:!0});Object.defineProperty(Sr.prototype,"_options",{set:function(t){return Bh.set(this,t)},configurable:!0});Sr.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};Sr.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(Sr.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});Sr.prototype.desc=function(){var t=this._options;let e=this.message;return t.token&&t.token._loc==-1?"Syntax Error":e};Sr.prototype.loc=function(){var t;return this._loc||(t=this.start())&&t.region&&t.region()};Sr.prototype.toJSON=function(){var t=this._options,e=this.start();return{warn:!0,message:this.desc(),loc:this.loc()}};Sr.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};Sr.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=Sl.locationToLineColMap(s),l=a[n[0]]||[0,0],p=l[0],c=l[1],d=o[p];this.lineNumber=p+1,this.columnNumber=c;var f=Math.max(0,p-2),m=Math.min(f+5,o.length);let v=p-f;var g=f,b=function(_){return _};if(r){let _=this.severity=="warn"?"yellow":"red";(typeof r=="string"||r instanceof String)&&(_=r),b=function(w){return Sl.ansi[_](Sl.ansi.bold(w))}}for(var N=[];g<m;)N.push(d=o[g++]);var y=N;return e&&(y=y.map(function(_,w){let k=""+(f+w+1);for(;k.length<String(m).length;)k=" "+k;return w==v?" -> "+k+" | "+_:" "+k+" | "+_})),y[v]=b(y[v]),i&&y.unshift(b(this.message)),y.join(`
`)+`
`}catch(v){return""}};Sr.prototype.prettyMessage=function(){var t;return t=this.excerpt()};function ha(){return Sr.apply(this,arguments)}Gh(ha,Sr);wl.ImbaTraverseError=ha;ha.prototype.loc=function(){return this._loc};ha.prototype.excerpt=function(){var t=ha.prototype.__super__.excerpt.apply(this,arguments);return t+`
---
`+this.error.stack}});var Qh=nr(C1=>{function mf(t){return t&&(t.len instanceof Function?t.len():t.length)||0}function gr(t,e){return e&&e.indexOf?e.indexOf(t):[].indexOf.call(t,e)}function vn(t){return t?t.toArray?t.toArray():t:[]}function yf(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 _o=ta(),bn=_o.Token,Tl=b1().INVERSES,Zd=N1().Compilation,Qd=O1(),gf=lo(),vf=["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"],Hh={",":1,"\n":1,")":1,"]":1,"}":1,">":1," ":1},bf=["extend","local","global","prop","lazy"],kf=C1.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","const","await","import","and","or","is","isnt","not","yes","no","isa","case","nil","module","export","static","extend"],xf=["case","default","function","void","with","const","enum","native"],$d=vf.concat(xf),wf=/^((\$|##|#|@|\%)[\$\wA-Za-z_\-\x7f-\uffff][$\w\x7f-\uffff]*(\-[$\w\x7f-\uffff]+)*[\?]?|[$A-Za-z_][$\w\x7f-\uffff]*(\-[$\w\x7f-\uffff]+)*[\?]?)([^\n\S]*:)?/,Sf=/^import\s+(\{?[^\"\'\}]+\}?)(?=\s+from\s+)/,Tf=/^(\<)(?=[A-Za-z\#\.\%\$\[\{\@\>\(])/,zh=/^(\w[\w\d]*:)?(\w[\w\d]*)(-[\w\d]+)*/,Ef=/^#((\w[\w\d]*)(-[\w\d]+)*)/,Af=/^([%\$]{1,2})([\(])/,If=/^\:((([\*\@$\w\x7f-\uffff]+)+([\-\\\:][\w\x7f-\uffff]+)*)|==|\<=\>)/,Rf=/^\#[0-9a-fA-F]{3,8}/,Nf=/^(\-?\d*\.?\d+)([A-Za-z]+|\%)?(?![\d\w])/,Of=/^[\w\-\$]*\w[\w\-\$]*/,Cf=/^url\(([^\)]*)\)/,Uh=/^([\w\-\$\@\.\!]+)(?=\:([^\:]|$))/,Lf=/^0x[\da-f_]+|^0b[01_]+|^0o[\d_]+|^\-?(?:\d[_\d]*)\.?\d[_\d]*(?:e[+-]?\d+)?|^\-?\d*\.?\d+(?:e[+-]?\d+)?/i,Df=/^("""|''')([\s\S]*?)(?:\n[^\n\S]*)?\1/,Ff=/^(?:[-=]=>|!&|[&|~^]?=\?|[&|~^]=|\?\?=|===|---|->|=>|\/>|!==|\*\*=?|[-+*\/%<>&|^!?=]=|=<|>>>=?|([-+:])\1|([&|<>])\2=?|\?\.|\?\?|\.{2,3}|\*(?=[a-zA-Z\_]))/,Yh=/^[^\n\S]+/,Mf=/^###([^#][\s\S]*?)(?:###[^\n\S]*|(?:###)?$)/,Pf=/^\/\*([\s\S]*?)\*\//,Kh=/^(\s*)((#[ \t\!]|\/\/(?!\/))(.*)|#[ \t]?(?=\n|$))+/,Vf=/^[-=]=>/,jf=/^(?:\n[^\n\S]*)+/,Gf=/^'[^\\']*(?:\\.[^\\']*)*'/,qh=/^(\/(?![\s=])[^[\/\n\\]*(?:(?:\\[\s\S]|\[[^\]\n\\]*(?:\\[\s\S][^\]\n\\]*)*])[^[\/\n\\]*)*\/)([a-z]{0,8})(?!\w)/,Xh=/^\/{3}([\s\S]+?)\/{3}([a-z]{0,8})(?!\w)/,Wh=/\n/g,Bf=/\n+([^\n\S]*)/g,Hf=/\*\//,zf=/^\s*(?:,|\??\.(?![.\d])|(?:&&|\|\||and|or)[\n\s])/,Uf=/^\$\w+\$/,Yf=/^\$\d$/,Kf=["-=","+=","/=","*=","%=","||=","&&=","?=","??=","<<=",">>=",">>>=","&=","^=","|=","~=","=<","**=","=?","~=?","|=?","&=?","^=?"],Jh=["!","~","NEW","TYPEOF","DELETE"],qf=["&&","||","??","and","or"],Xf=["<<",">>",">>>"],Wf=["===","!==","==","!=","<",">","<=",">=","===","!==","&","|","^","!&"],Jf=["*","/","%","∪","∩","√"],Zf=["IN","OF","INSTANCEOF","ISA"],Qf=["NUMBER","REGEX","BOOL","TRUE","FALSE","++","--","]"],$f=["NUMBER","REGEX","BOOL","TRUE","FALSE","++","--","]",")","}","THIS","SELF","IDENTIFIER","STRING"],t0=["\\",".","UNARY","MATH","EXP","+","-","SHIFT","RELATION","COMPARE","THROW","EXTENDS"],e0=["IDENTIFIER","SYMBOLID","STRING","REGEX",")","]","INDEX_END","THIS","SUPER","TAG_END","IVAR","SELF","NEW","ARGVAR","SYMBOL","RETURN","INDEX_END","CALL_END"],r0=["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"],i0=["INDENT","OUTDENT","TERMINATOR"];function Zh(t,e,r){return this.message=t,this.file=e,this.line=r,this}yf(Zh,SyntaxError);C1.LexerError=Zh;var $r=function(t,e){return e===void 0&&(e=0),t[t.length-e-1]},s0=function(t,e){return t.split(e).length-1},n0=function(t,e){for(var r="";e>0;)e%2==1&&(r+=t),t+=t,e>>=1;return r},Ui=_o.typ,mo=_o.val,Rs=_o.setTyp,L1=_o.setVal;function Wt(){this.reset()}C1.Lexer=Wt;Wt.prototype.reset=function(){return this._code=null,this._chunk=null,this._opts=null,this._state={},this._indent=0,this._indebt=0,this._outdebt=0,this._indents=[],this._ends=[],this._contexts=[],this._scopes=[],this._nextScope=null,this._context=null,this._indentStyle=" ",this._inTag=!1,this._inStyle=0,this._tokens=[],this._seenFor=!1,this._loc=0,this._locOffset=0,this._end=null,this._char=null,this._bridge=null,this._last=null,this._lastTyp="",this._lastVal=null,this._script=null,this};Wt.prototype.jisonBridge=function(t){return this._bridge={lex:_o.lex,setInput:function(e){return this.tokens=e,this.pos=0},upcomingInput:function(){return""}}};Wt.prototype.tokenize=function(t,e,r){var i;if(r===void 0&&(r=null),t.length==0)return[];if(!e.inline){if(Yh.test(t)&&(t=`
`+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=vn(this._tokens),o=n.length,a;s<o;s++)a=n[s],a._type=="SYMBOLID"&&(a._type="IDENTIFIER");return this._tokens};Wt.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}};Wt.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};Wt.prototype.moveCaret=function(t){return this._loc+=t};Wt.prototype.context=function(){return this._ends[this._ends.length-1]};Wt.prototype.inContext=function(t){var e=this._contexts[this._contexts.length-1];return e&&e[t]};Wt.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 bn(e.id+"_START",t,this._last.region()[1],0),this._tokens.push(e.start)),this};Wt.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 bn(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]};Wt.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"};Wt.prototype.queueScope=function(t){return this._scopes[this._indents.length]=t,this};Wt.prototype.popScope=function(t){return this._scopes.pop(),this};Wt.prototype.getScope=function(){return this._scopes[this._indents.length-1]};Wt.prototype.scope=function(t,e){var r=this._ends.push(this._end=t);return this._contexts.push(e||null),t};Wt.prototype.closeSelector=function(){if(this._end=="%")return this.token("SELECTOR_END","%",0),this.pair("%")};Wt.prototype.openDef=function(){return this.pushEnd("DEF")};Wt.prototype.closeDef=function(){if(this.context()=="DEF"){var t=$r(this._tokens);if(Ui(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")}};Wt.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||Hh[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};Wt.prototype.tagDefContextToken=function(){var t;if(t=zh.exec(this._chunk))return this.token("TAG_TYPE",t[0],t[0].length),t[0].length;if(t=Ef.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};Wt.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)};Wt.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(Uh.exec(l)||Kh.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};Wt.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};Wt.prototype.lexStyleBody=function(){if(this._end=="%")return 0;let t=this._chunk[0];var e;let r=Uh.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=Rf.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=Nf.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=Cf.exec(this._chunk)){let s=e[0].length;return this.token("CSSURL",e[0],s),e[0].length}else if(e=Of.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};Wt.prototype.importsToken=function(){var t;return(t=Sf.exec(this._chunk))?(this.token("IMPORTS",t[1],t[1].length,7),t[0].length):0};Wt.prototype.tagToken=function(){var t,e;if(!(t=Tf.exec(this._chunk)))return 0;var e=vn(t),r=e[0],i=e[1],s=e[2];if(i=="<"){if(this.token("TAG_START","<",1),this.pushEnd(Tl.TAG_START),t=zh.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};Wt.prototype.selectorToken=function(){var t,e;if(this._end=="%"){for(var r=this._chunk[0],i=this._context,s=0,n="",o=!1;r=this._chunk[s++];)if(r==")"&&i.parens==0){o=!0;break}else if(r=="(")i.parens++,n+="(";else if(r==")")i.parens--,n+=")";else{if(r=="{")break;n+=r}return n&&this.token("SELECTOR_PART",n,s-1),o?(this.token("SELECTOR_END",")",1,s-1),this.pair("%"),s):s-1}if(!(e=Af.exec(this._chunk)))return 0;var t=vn(e),a=t[0],l=t[1],p=t[2];return p=="("?(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};Wt.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};Wt.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(gr(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=="lazy"||t=="css"||t=="constructor"||t=="declare"){var r=this.getScope(),i=r=="CLASS"||r=="TAG"||r=="EXTEND";if(t=="lazy"||t=="declare")return i&&gr(this._lastTyp,["INDENT","TERMINATOR","DECORATOR"])>=0;if(t=="constructor")return i&&gr(this._lastTyp,["INDENT","TERMINATOR","DECORATOR"])>=0;if(i)return!0}return kf.indexOf(t)>=0};Wt.prototype.identifierToken=function(){var t,e,r=this._ends.length>0?this._ends[this._ends.length-1]:null,i=this._ends.length>1?this._ends[this._ends.length-2]:null,s=r,n,o=!1,a=!1,l=r=="TAG_END"||i=="TAG_END"&&r=="OUTDENT";if(!(e=wf.exec(this._chunk)))return 0;var t=vn(e),p=t[0],c=t[1],n=t[2],d=t[3],f=t[4],m=t[5],g=c.length;if(c==="own"&&this.lastTokenType()=="FOR")return this.token("OWN",c,c.length),c.length;var b=$r(this._tokens),N=this._lastTyp;if(N=="#")return this.token("IDENTIFIER",c,g),g;var y=m||N=="."||N=="?.";m&&N=="?"&&(y=!1),c=="tag"&&this._chunk.indexOf("tag(")==0&&(y=!0),c=="css"&&/css\s\:\:/.exec(this._chunk)&&(p=c+" ",m=null,y=!1);var v=!1;if(n=="$"&&Yf.test(c))n="ARGVAR",c=c.substr(1);else if(n=="$"&&Uf.test(c))n="ENV_FLAG",c=c.toUpperCase();else if(n=="@")N=="."?n="IDENTIFIER":n="DECORATOR";else if(n=="#")n="SYMBOLID";else if(n=="##")n="SYMBOLID";else if(n=="%")n="MIXIN";else if(n=="$"&&!m)n="IDENTIFIER";else{if(c=="elif"&&!y)return this.token("ELSE","elif",c.length),this.token("IF","if"),c.length;n="IDENTIFIER"}if(!y&&(v=this.isKeyword(c)))if(typeof v=="string"?n=v:n=c.toUpperCase(),a=!0,n=="MODULE"&&(!/^module [a-zA-Z]/.test(this._chunk)||r=="TAG_ATTR")&&(n="IDENTIFIER"),n=="YES")n="TRUE";else if(n=="NO")n="FALSE";else if(n=="NIL")n="NULL";else if(n=="VAR"||n=="CONST"||n=="LET"){let S=this._lastTyp}else n=="IF"||n=="ELSE"||n=="TRUE"||n=="FALSE"||n=="NULL"||(n=="TAG"?this.pushEnd("TAG"):n=="DEF"||n=="GET"||n=="SET"?(n="DEF",this.openDef()):n=="CONSTRUCTOR"?(this.token("DEF","",0),n="IDENTIFIER",this.openDef()):n=="DO"?this.context()=="DEF"&&this.closeDef():n==="WHEN"&&i0.indexOf(this.lastTokenType())>=0?n="LEADING_WHEN":n==="FOR"?this._seenFor=!0:n==="UNLESS"?n="IF":Jh.indexOf(n)>=0?n="UNARY":Zf.indexOf(n)>=0&&(n!="INSTANCEOF"&&n!="ISA"&&this._seenFor?(n="FOR"+n,this._seenFor=!1):(n="RELATION",b._type=="UNARY"&&(b._type="NOT"))));if(!y)switch(this._lastVal=="export"&&c=="default"&&(Rs(b,"EXPORT"),n="DEFAULT"),c){case"!":case"not":{n="UNARY";break}case"==":case"!=":case"===":case"!==":case"is":case"isnt":{n="COMPARE";break}case"&&":case"||":case"and":case"or":case"??":{n="LOGIC";break