hugo-batsite/node_modules/prettier/esm/parser-glimmer.mjs

28 lines
188 KiB
JavaScript
Raw Normal View History

2022-05-27 15:11:53 +00:00
"use strict";var xe=Object.getOwnPropertyNames,nt=(t,m)=>function(){return t&&(m=(0,t[xe(t)[0]])(t=0)),m},F=(t,m)=>function(){return m||(0,t[xe(t)[0]])((m={exports:{}}).exports,m),m.exports},I=nt({"<define:process>"(){}}),it=F({"node_modules/lines-and-columns/build/index.cjs"(t){"use strict";I(),t.__esModule=!0,t.LinesAndColumns=void 0;var m=`
`,h="\r",d=function(){function c(l){this.length=l.length;for(var e=[0],r=0;r<l.length;)switch(l[r]){case m:r+=m.length,e.push(r);break;case h:r+=h.length,l[r]===m&&(r+=m.length),e.push(r);break;default:r++;break}this.offsets=e}return c.prototype.locationForIndex=function(l){if(l<0||l>this.length)return null;for(var e=0,r=this.offsets;r[e+1]<=l;)e++;var u=l-r[e];return{line:e,column:u}},c.prototype.indexForLocation=function(l){var e=l.line,r=l.column;return e<0||e>=this.offsets.length||r<0||r>this.lengthOfLine(e)?null:this.offsets[e]+r},c.prototype.lengthOfLine=function(l){var e=this.offsets[l],r=l===this.offsets.length-1?this.length:this.offsets[l+1];return r-e},c}();t.LinesAndColumns=d}}),at=F({"src/common/parser-create-error.js"(t,m){"use strict";I();function h(d,c){let l=new SyntaxError(d+" ("+c.start.line+":"+c.start.column+")");return l.loc=c,l}m.exports=h}}),st=F({"src/language-handlebars/loc.js"(t,m){"use strict";I();function h(c){return c.loc.start.offset}function d(c){return c.loc.end.offset}m.exports={locStart:h,locEnd:d}}}),fe=F({"node_modules/@glimmer/env/dist/commonjs/es5/index.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0});var m=t.DEBUG=!1,h=t.CI=!1}}),ut=F({"node_modules/@glimmer/util/dist/commonjs/es2017/lib/array-utils.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.emptyArray=h,t.isEmptyArray=l,t.EMPTY_NUMBER_ARRAY=t.EMPTY_STRING_ARRAY=t.EMPTY_ARRAY=void 0;var m=Object.freeze([]);t.EMPTY_ARRAY=m;function h(){return m}var d=h();t.EMPTY_STRING_ARRAY=d;var c=h();t.EMPTY_NUMBER_ARRAY=c;function l(e){return e===m}}}),Pe=F({"node_modules/@glimmer/util/dist/commonjs/es2017/lib/assert.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.debugAssert=h,t.prodAssert=d,t.deprecate=c,t.default=void 0;var m=X();function h(e,r){if(!e)throw new Error(r||"assertion failure")}function d(){}function c(e){m.LOCAL_LOGGER.warn("DEPRECATION: ".concat(e))}var l=h;t.default=l}}),ot=F({"node_modules/@glimmer/util/dist/commonjs/es2017/lib/collections.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.dict=m,t.isDict=h,t.isObject=d,t.StackImpl=void 0;function m(){return Object.create(null)}function h(l){return l!=null}function d(l){return typeof l=="function"||typeof l=="object"&&l!==null}var c=class{constructor(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.current=null,this.stack=l}get size(){return this.stack.length}push(l){this.current=l,this.stack.push(l)}pop(){let l=this.stack.pop(),e=this.stack.length;return this.current=e===0?null:this.stack[e-1],l===void 0?null:l}nth(l){let e=this.stack.length;return e<l?null:this.stack[e-l]}isEmpty(){return this.stack.length===0}toArray(){return this.stack}};t.StackImpl=c}}),lt=F({"node_modules/@glimmer/util/dist/commonjs/es2017/lib/dom.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.clearElement=m;function m(h){let d=h.firstChild;for(;d;){let c=d.nextSibling;h.removeChild(d),d=c}}}}),ct=F({"node_modules/@glimmer/util/dist/commonjs/es2017/lib/is-serialization-first-node.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.isSerializationFirstNode=h,t.SERIALIZATION_FIRST_NODE_STRING=void 0;var m="%+b:0%";t.SERIALIZATION_FIRST_NODE_STRING=m;function h(d){return d.nodeValue===m}}}),ht=F({"node_modules/@glimmer/util/dist/commonjs/es2017/lib/object-utils.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.fillNulls=h,t.values=d,t.assign=void 0;var m=Object.assign;t.assign=m;function h(c){let l=new Array(c);for(let e=0;e<c;e++)l[e]=null;return l}function d(c){let l=[];for(let e in c)l.push(c[e]);return l}}}),je=F({"node_modules/@glimmer/util/dist/commonjs/es2017/lib/intern.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;function m(h){let d={};d[h]=1;for(let c in d)if(c===h)return c;return h}}}),me=F({"node_modules/@glimmer/util/dist/commonjs/es2017/lib/platform-utils.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.keys=l,t.unwrap=e,t.expe
`);for(;r.length&&r[0].match(/^\s*$/);)r.shift();for(;r.length&&r[r.length-1].match(/^\s*$/);)r.pop();let u=1/0;for(let n of r){let a=n.match(/^\s*/)[0].length;u=Math.min(u,a)}let p=[];for(let n of r)p.push(n.slice(u));return p.join(`
`)}}}),pt=F({"node_modules/@glimmer/util/dist/commonjs/es2017/lib/immediate.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.isHandle=h,t.isNonPrimitiveHandle=d,t.constants=c,t.isSmallInt=l,t.encodeNegative=e,t.decodeNegative=r,t.encodePositive=u,t.decodePositive=p,t.encodeHandle=n,t.decodeHandle=a,t.encodeImmediate=s,t.decodeImmediate=i;var m=Pe();function h(o){return o>=0}function d(o){return o>3}function c(){for(var o=arguments.length,b=new Array(o),P=0;P<o;P++)b[P]=arguments[P];return[!1,!0,null,void 0,...b]}function l(o){return o%1===0&&o<=536870911&&o>=-536870912}function e(o){return o&-536870913}function r(o){return o|536870912}function u(o){return~o}function p(o){return~o}function n(o){return o}function a(o){return o}function s(o){return o|=0,o<0?e(o):u(o)}function i(o){return o|=0,o>-536870913?p(o):r(o)}[1,2,3].forEach(o=>o),[1,-1].forEach(o=>i(s(o)))}}),ft=F({"node_modules/@glimmer/util/dist/commonjs/es2017/lib/template.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.unwrapHandle=m,t.unwrapTemplate=h,t.extractHandle=d,t.isOkHandle=c,t.isErrHandle=l;function m(e){if(typeof e=="number")return e;{let r=e.errors[0];throw new Error("Compile Error: ".concat(r.problem," @ ").concat(r.span.start,"..").concat(r.span.end))}}function h(e){if(e.result==="error")throw new Error("Compile Error: ".concat(e.problem," @ ").concat(e.span.start,"..").concat(e.span.end));return e}function d(e){return typeof e=="number"?e:e.handle}function c(e){return typeof e=="number"}function l(e){return typeof e=="number"}}}),mt=F({"node_modules/@glimmer/util/dist/commonjs/es2017/lib/weak-set.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var m=typeof WeakSet=="function"?WeakSet:class{constructor(){this._map=new WeakMap}add(d){return this._map.set(d,!0),this}delete(d){return this._map.delete(d)}has(d){return this._map.has(d)}};t.default=m}}),gt=F({"node_modules/@glimmer/util/dist/commonjs/es2017/lib/simple-cast.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.castToSimple=h,t.castToBrowser=d,t.checkNode=r;var m=me();function h(p){return l(p)||e(p),p}function d(p,n){if(p==null)return null;if(typeof document===void 0)throw new Error("Attempted to cast to a browser node in a non-browser context");if(l(p))return p;if(p.ownerDocument!==document)throw new Error("Attempted to cast to a browser node with a node that was not created from this document");return r(p,n)}function c(p,n){return new Error("cannot cast a ".concat(p," into ").concat(n))}function l(p){return p.nodeType===9}function e(p){return p.nodeType===1}function r(p,n){let a=!1;if(p!==null)if(typeof n=="string")a=u(p,n);else if(Array.isArray(n))a=n.some(s=>u(p,s));else throw(0,m.unreachable)();if(a)return p;throw c("SimpleElement(".concat(p,")"),n)}function u(p,n){switch(n){case"NODE":return!0;case"HTML":return p instanceof HTMLElement;case"SVG":return p instanceof SVGElement;case"ELEMENT":return p instanceof Element;default:if(n.toUpperCase()===n)throw new Error("BUG: this code is missing handling for a generic node type");return p instanceof Element&&p.tagName.toLowerCase()===n}}}}),bt=F({"node_modules/@glimmer/util/dist/commonjs/es2017/lib/present.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.isPresent=m,t.ifPresent=h,t.toPresentOption=d,t.assertPresent=c,t.mapPresent=l;function m(e){return e.length>0}function h(e,r,u){return m(e)?r(e):u()}function d(e){return m(e)?e:null}function c(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"unexpected empty list";if(!m(e))throw new Error(r)}function l(e,r){if(e===null)return null;let u=[];for(let p of e)u.push(r(p));return u}}}),vt=F({"node_modules/@glimmer/util/dist/commonjs/es2017/lib/untouchable-this.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var m=fe(),h=me();function d(c){let l=null;if(m.DEBUG&&h.HAS_NATIVE_PROXY){let e=r=>{throw new Error("You accessed `this.".concat(String(r),"` from a function passed to the ").concat(c,", but the fun
`,r);if(l<=u||u===-1)return{line:e+1,column:l-r};e+=1,r=u+1}}charPosFor(l){let{line:e,column:r}=l,p=this.source.length,n=0,a=0;for(;;){if(a>=p)return p;let s=this.source.indexOf(`
`,a);if(s===-1&&(s=this.source.length),n===e-1){if(a+r>s)return s;if(m.DEBUG){let i=this.hbsPosFor(a+r)}return a+r}else{if(s===-1)return 0;n+=1,a=s+1}}}};t.Source=c}}),we=F({"node_modules/@glimmer/syntax/dist/commonjs/es2017/lib/v1/legacy-interop.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.PathExpressionImplV1=void 0;var m=h(ke());function h(c){return c&&c.__esModule?c:{default:c}}var d=class{constructor(c,l,e,r){this.original=c,this.loc=r,this.type="PathExpression",this.this=!1,this.data=!1,this._head=void 0;let u=e.slice();l.type==="ThisHead"?this.this=!0:l.type==="AtHead"?(this.data=!0,u.unshift(l.name.slice(1))):u.unshift(l.name),this.parts=u}get head(){if(this._head)return this._head;let c;this.this?c="this":this.data?c="@".concat(this.parts[0]):c=this.parts[0];let l=this.loc.collapse("start").sliceStartChars({chars:c.length}).loc;return this._head=m.default.head(c,l)}get tail(){return this.this?this.parts:this.parts.slice(1)}};t.PathExpressionImplV1=d}}),ke=F({"node_modules/@glimmer/syntax/dist/commonjs/es2017/lib/v1/public-builders.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var m=X(),h=ge(),d=De(),c=ue(),l=we(),e;function r(){return e||(e=new d.Source("","(synthetic)")),e}function u(T,N,k,B,O,q){return typeof T=="string"&&(T=f(T)),{type:"MustacheStatement",path:T,params:N||[],hash:k||S([]),escaped:!B,trusting:!!B,loc:U(O||null),strip:q||{open:!1,close:!1}}}function p(T,N,k,B,O,q,z,y,Q){let D,$;return B.type==="Template"?D=(0,m.assign)({},B,{type:"Block"}):D=B,O!=null&&O.type==="Template"?$=(0,m.assign)({},O,{type:"Block"}):$=O,{type:"BlockStatement",path:f(T),params:N||[],hash:k||S([]),program:D||null,inverse:$||null,loc:U(q||null),openStrip:z||{open:!1,close:!1},inverseStrip:y||{open:!1,close:!1},closeStrip:Q||{open:!1,close:!1}}}function n(T,N,k,B){return{type:"ElementModifierStatement",path:f(T),params:N||[],hash:k||S([]),loc:U(B||null)}}function a(T,N,k,B,O){return{type:"PartialStatement",name:T,params:N||[],hash:k||S([]),indent:B||"",strip:{open:!1,close:!1},loc:U(O||null)}}function s(T,N){return{type:"CommentStatement",value:T,loc:U(N||null)}}function i(T,N){return{type:"MustacheCommentStatement",value:T,loc:U(N||null)}}function o(T,N){if(!(0,m.isPresent)(T))throw new Error("b.concat requires at least one part");return{type:"ConcatStatement",parts:T||[],loc:U(N||null)}}function b(T){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{attrs:k,blockParams:B,modifiers:O,comments:q,children:z,loc:y}=N,Q,D=!1;return typeof T=="object"?(D=T.selfClosing,Q=T.name):T.slice(-1)==="/"?(Q=T.slice(0,-1),D=!0):Q=T,{type:"ElementNode",tag:Q,selfClosing:D,attributes:k||[],blockParams:B||[],modifiers:O||[],comments:q||[],children:z||[],loc:U(y||null)}}function P(T,N,k){return{type:"AttrNode",name:T,value:N,loc:U(k||null)}}function A(T,N){return{type:"TextNode",chars:T||"",loc:U(N||null)}}function v(T,N,k,B){return{type:"SubExpression",path:f(T),params:N||[],hash:k||S([]),loc:U(B||null)}}function _(T){switch(T.type){case"AtHead":return{original:T.name,parts:[T.name]};case"ThisHead":return{original:"this",parts:[]};case"VarHead":return{original:T.name,parts:[T.name]}}}function E(T,N){let[k,...B]=T.split("."),O;return k==="this"?O={type:"ThisHead",loc:U(N||null)}:k[0]==="@"?O={type:"AtHead",name:k,loc:U(N||null)}:O={type:"VarHead",name:k,loc:U(N||null)},{head:O,tail:B}}function g(T){return{type:"ThisHead",loc:U(T||null)}}function L(T,N){return{type:"AtHead",name:T,loc:U(N||null)}}function j(T,N){return{type:"VarHead",name:T,loc:U(N||null)}}function x(T,N){return T[0]==="@"?L(T,N):T==="this"?g(N):j(T,N)}function w(T,N){return{type:"NamedBlockName",name:T,loc:U(N||null)}}function H(T,N,k){let{original:B,parts:O}=_(T),q=[...O,...N],z=[...B,...q].join(".");return new l.PathExpressionImplV1(z,T,N,U(k||null))}function f(T,N){if(typeof T!="string"){if("type"in T)return T;{let{head:O,tail:q}=E(T.head,c.SourceSpan.broken()),{original:z}=_(O);return new l.PathExpressionImplV1([z,...q].join("."),O,q,U(N||null))}}let{head:k,tail:B}=E(T,c.SourceSpan.
`+Y.showPosition()+`
Expecting `+pe.join(", ")+", got '"+(this.terminals_[J]||J)+"'":Ce="Parse error on line "+($+1)+": Unexpected "+(J==Re?"end of input":"'"+(this.terminals_[J]||J)+"'"),this.parseError(Ce,{text:Y.match,token:this.terminals_[J]||J,line:Y.yylineno,loc:Ee,expected:pe})}if(ee[0]instanceof Array&&ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ae+", token: "+J);switch(ee[0]){case 1:O.push(J),z.push(Y.yytext),y.push(Y.yylloc),O.push(ee[1]),J=null,_e?(J=_e,_e=null):(oe=Y.yyleng,D=Y.yytext,$=Y.yylineno,Ee=Y.yylloc,Ie>0&&Ie--);break;case 2:if(re=this.productions_[ee[1]][1],se.$=z[z.length-re],se._$={first_line:y[y.length-(re||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(re||1)].first_column,last_column:y[y.length-1].last_column},tt&&(se._$.range=[y[y.length-(re||1)].range[0],y[y.length-1].range[1]]),Se=this.performAction.apply(se,[D,oe,$,ie.yy,ee[1],z,y].concat(et)),typeof Se<"u")return Se;re&&(O=O.slice(0,-1*re*2),z=z.slice(0,-1*re),y=y.slice(0,-1*re)),O.push(this.productions_[ee[1]][0]),z.push(se.$),y.push(se._$),qe=Q[O[O.length-2]][O[O.length-1]],O.push(qe);break;case 3:return!0}}return!0}},W=function(){var N={EOF:1,parseError:function(B,O){if(this.yy.parser)this.yy.parser.parseError(B,O);else throw new Error(B)},setInput:function(k,B){return this.yy=B||this.yy||{},this._input=k,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var k=this._input[0];this.yytext+=k,this.yyleng++,this.offset++,this.match+=k,this.matched+=k;var B=k.match(/(?:\r\n?|\n).*/g);return B?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),k},unput:function(k){var B=k.length,O=k.split(/(?:\r\n?|\n)/g);this._input=k+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-B),this.offset-=B;var q=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),O.length-1&&(this.yylineno-=O.length-1);var z=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:O?(O.length===q.length?this.yylloc.first_column:0)+q[q.length-O.length].length-O[0].length:this.yylloc.first_column-B},this.options.ranges&&(this.yylloc.range=[z[0],z[0]+this.yyleng-B]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(k){this.unput(this.match.slice(k))},pastInput:function(){var k=this.matched.substr(0,this.matched.length-this.match.length);return(k.length>20?"...":"")+k.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var k=this.match;return k.length<20&&(k+=this._input.substr(0,20-k.length)),(k.substr(0,20)+(k.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var k=this.pastInput(),B=new Array(k.length+1).join("-");return k+this.upcomingInput()+`
`+B+"^"},test_match:function(k,B){var O,q,z;if(this.options.backtrack_lexer&&(z={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(z.yylloc.range=this.yylloc.range.slice(0))),q=k[0].match(/(?:\r\n?|\n).*/g),q&&(this.yylineno+=q.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:q?q[q.length-1].length-q[q.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+k[0].length},this.yytext+=k[0],this.match+=k[0],this.matches=k,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(k[0].length),this.matched+=k[0],O=this.performAction.call(this,this.yy,this,B,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),O)return O;if(this._backtrack){for(var y in z)this[y]=z[y];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var k,B,O,q;this._more||(this.yytext="",this.match="");for(var z=this._currentRules(),y=0;y<z.length;y++)if(O=this._input.match(this.rules[z[y]]),O&&(!B||O[0].length>B[0].length)){if(B=O,q=y,this.options.backtrack_lexer){if(k=this.test_match(O,z[y]),k!==!1)return k;if(this._backtrack){B=!1;continue}else return!1}else if(!this.options.flex)break}return B?(k=this.test_match(B,z[q]),k!==!1?k:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var B=this.next();return B||this.lex()},begin:function(B){this.conditionStack.push(B)},popState:function(){var B=this.conditionStack.length-1;return B>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(B){return B=this.conditionStack.length-1-Math.abs(B||0),B>=0?this.conditionStack[B]:"INITIAL"},pushState:function(B){this.begin(B)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(B,O,q,z){function y(D,$){return O.yytext=O.yytext.substring(D,O.yyleng-$+D)}var Q=z;switch(q){case 0:if(O.yytext.slice(-2)==="\\\\"?(y(0,1),this.begin("mu")):O.yytext.slice(-1)==="\\"?(y(0,1),this.begin("emu")):this.begin("mu"),O.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(y(5,9),18);case 5:return 15;case 6:return this.popState(),14;break;case 7:return 64;case 8:return 67;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 56;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 52;case 20:return 48;case 21:this.unput(O.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 72;case 25:return 71;case 26:return 71;case 27:return 86;case 28:break;case 29:return this.popState(),55;break;case 30:return this.popState(),33;break;case 31:return O.yytext=y(1,2).replace(/\\"/g,'"'),79;break;case 32:return O.yytext=y(1,2).replace(/\\'/g,"'"),79;break;case 33:return 84;case 34:return 81;case 35:return 81;case 36:return 82;case 37:return 83;case 38:return 80;case 39:return 74;case 40:return 76;case 41:return 71;case 42:return O.yytext=O.yytext.replace(/\\([\\\]])/g,"$1"),71;break;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return N}();Z.lexer=W;function T(){this.yy={}}return T.prototype=Z,Z.Parser=T,new T}();t.default=m}}),Bt=F({"node_modules/@handlebars/parser/dist/cjs/printer.js"(t){"use strict";I();var m=t&&t.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0}),t.PrintVisitor=t.print=void 0;var h=m(Oe());function d(l){return new c().accept(l)}t.print=d;function c(){this.padding=0}t.PrintVisitor=c,c.prototype=new h.default,c.prototype.pad=function(l){for(var e="",r=0,u=this.p
`,e},c.prototype.Program=function(l){var e="",r=l.body,u,p;if(l.blockParams){var n="BLOCK PARAMS: [";for(u=0,p=l.blockParams.length;u<p;u++)n+=" "+l.blockParams[u];n+=" ]",e+=this.pad(n)}for(u=0,p=r.length;u<p;u++)e+=this.accept(r[u]);return this.padding--,e},c.prototype.MustacheStatement=function(l){return this.pad("{{ "+this.SubExpression(l)+" }}")},c.prototype.Decorator=function(l){return this.pad("{{ DIRECTIVE "+this.SubExpression(l)+" }}")},c.prototype.BlockStatement=c.prototype.DecoratorBlock=function(l){var e="";return e+=this.pad((l.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(l)),l.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(l.program),this.padding--),l.inverse&&(l.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(l.inverse),this.padding--,l.program&&this.padding--),this.padding--,e},c.prototype.PartialStatement=function(l){var e="PARTIAL:"+l.name.original;return l.params[0]&&(e+=" "+this.accept(l.params[0])),l.hash&&(e+=" "+this.accept(l.hash)),this.pad("{{> "+e+" }}")},c.prototype.PartialBlockStatement=function(l){var e="PARTIAL BLOCK:"+l.name.original;return l.params[0]&&(e+=" "+this.accept(l.params[0])),l.hash&&(e+=" "+this.accept(l.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(l.program),this.padding--,this.pad("{{> "+e+" }}")},c.prototype.ContentStatement=function(l){return this.pad("CONTENT[ '"+l.value+"' ]")},c.prototype.CommentStatement=function(l){return this.pad("{{! '"+l.value+"' }}")},c.prototype.SubExpression=function(l){for(var e=l.params,r=[],u,p=0,n=e.length;p<n;p++)r.push(this.accept(e[p]));return e="["+r.join(", ")+"]",u=l.hash?" "+this.accept(l.hash):"",this.accept(l.path)+" "+e+u},c.prototype.PathExpression=function(l){var e=l.parts.join("/");return(l.data?"@":"")+"PATH:"+e},c.prototype.StringLiteral=function(l){return'"'+l.value+'"'},c.prototype.NumberLiteral=function(l){return"NUMBER{"+l.value+"}"},c.prototype.BooleanLiteral=function(l){return"BOOLEAN{"+l.value+"}"},c.prototype.UndefinedLiteral=function(){return"UNDEFINED"},c.prototype.NullLiteral=function(){return"NULL"},c.prototype.Hash=function(l){for(var e=l.pairs,r=[],u=0,p=e.length;u<p;u++)r.push(this.accept(e[u]));return"HASH{"+r.join(", ")+"}"},c.prototype.HashPair=function(l){return l.key+"="+this.accept(l.value)}}}),Ot=F({"node_modules/@handlebars/parser/dist/cjs/helpers.js"(t){"use strict";I();var m=t&&t.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0}),t.preparePartialBlock=t.prepareProgram=t.prepareBlock=t.prepareRawBlock=t.prepareMustache=t.preparePath=t.stripComment=t.stripFlags=t.id=t.SourceLocation=void 0;var h=m(Be());function d(o,b){if(b=b.path?b.path.original:b,o.path.original!==b){var P={loc:o.path.loc};throw new h.default(o.path.original+" doesn't match "+b,P)}}function c(o,b){this.source=o,this.start={line:b.first_line,column:b.first_column},this.end={line:b.last_line,column:b.last_column}}t.SourceLocation=c;function l(o){return/^\[.*\]$/.test(o)?o.substring(1,o.length-1):o}t.id=l;function e(o,b){return{open:o.charAt(2)==="~",close:b.charAt(b.length-3)==="~"}}t.stripFlags=e;function r(o){return o.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}t.stripComment=r;function u(o,b,P){P=this.locInfo(P);for(var A=o?"@":"",v=[],_=0,E=0,g=b.length;E<g;E++){var L=b[E].part,j=b[E].original!==L;if(A+=(b[E].separator||"")+L,!j&&(L===".."||L==="."||L==="this")){if(v.length>0)throw new h.default("Invalid path: "+A,{loc:P});L===".."&&_++}else v.push(L)}return{type:"PathExpression",data:o,depth:_,parts:v,original:A,loc:P}}t.preparePath=u;function p(o,b,P,A,v,_){var E=A.charAt(3)||A.charAt(2),g=E!=="{"&&E!=="&",L=/\*/.test(A);return{type:L?"Decorator":"MustacheStatement",path:o,params:b,hash:P,escaped:g,strip:v,loc:this.locInfo(_)}}t.prepareMustache=p;function n(o,b,P,A){d(o,P),A=this.locInfo(A);var v={type:"Program",body:b,strip:{},loc:A};return{type:"BlockStatement",path:o.path,params:o.params,hash:o.hash,program:v,openStrip:{},inverseStrip:{},close
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u01
`)}var o=function(){function A(v,_,E){E===void 0&&(E="precompile"),this.delegate=v,this.entityParser=_,this.mode=E,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var g=this.peek();if(g==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&g===`
`){var L=this.tagNameBuffer.toLowerCase();(L==="pre"||L==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var g=this.peek(),L=this.tagNameBuffer;g==="<"&&!this.isIgnoredEndTag()?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):g==="&"&&L!=="script"&&L!=="style"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(g))},tagOpen:function(){var g=this.consume();g==="!"?this.transitionTo("markupDeclarationOpen"):g==="/"?this.transitionTo("endTagOpen"):(g==="@"||g===":"||s(g))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(g))},markupDeclarationOpen:function(){var g=this.consume();if(g==="-"&&this.peek()==="-")this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment();else{var L=g.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase();L==="DOCTYPE"&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())}},doctype:function(){var g=this.consume();a(g)&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var g=this.consume();a(g)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(g.toLowerCase()))},doctypeName:function(){var g=this.consume();a(g)?this.transitionTo("afterDoctypeName"):g===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(g.toLowerCase())},afterDoctypeName:function(){var g=this.consume();if(!a(g))if(g===">")this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var L=g.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),j=L.toUpperCase()==="PUBLIC",x=L.toUpperCase()==="SYSTEM";(j||x)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),j?this.transitionTo("afterDoctypePublicKeyword"):x&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var g=this.peek();a(g)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):g==='"'?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):g==="'"?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):g===">"&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var g=this.consume();g==='"'?this.transitionTo("afterDoctypePublicIdentifier"):g===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(g)},doctypePublicIdentifierSingleQuoted:function(){var g=this.consume();g==="'"?this.transitionTo("afterDoctypePublicIdentifier"):g===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(g)},afterDoctypePublicIdentifier:function(){var g=this.consume();a(g)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):g===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):g==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):g==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var g=this.consume();a(g)||(g===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):g==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):g==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var g=this.consume();g==='"'?this.transitionTo("afterDoctypeSystemIdentifier"):g===">"?(this.delegate.endDoctype&&this.delegate
`?(this.line++,this.column=0):this.column++,v},A.prototype.consumeCharRef=function(){var v=this.input.indexOf(";",this.index);if(v!==-1){var _=this.input.slice(this.index,v),E=this.entityParser.parse(_);if(E){for(var g=_.length;g;)this.consume(),g--;return this.consume(),E}}},A.prototype.markTagStart=function(){this.delegate.tagOpen()},A.prototype.appendToTagName=function(v){this.tagNameBuffer+=v,this.delegate.appendToTagName(v)},A.prototype.isIgnoredEndTag=function(){var v=this.tagNameBuffer;return v==="title"&&this.input.substring(this.index,this.index+8)!=="</title>"||v==="style"&&this.input.substring(this.index,this.index+8)!=="</style>"||v==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},A}(),b=function(){function A(v,_){_===void 0&&(_={}),this.options=_,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new o(this,v,_.mode),this._currentAttribute=void 0}return A.prototype.tokenize=function(v){return this.tokens=[],this.tokenizer.tokenize(v),this.tokens},A.prototype.tokenizePart=function(v){return this.tokens=[],this.tokenizer.tokenizePart(v),this.tokens},A.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},A.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},A.prototype.current=function(){var v=this.token;if(v===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return v;for(var _=0;_<arguments.length;_++)if(v.type===arguments[_])return v;throw new Error("token type was unexpectedly "+v.type)},A.prototype.push=function(v){this.token=v,this.tokens.push(v)},A.prototype.currentAttribute=function(){return this._currentAttribute},A.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},A.prototype.beginDoctype=function(){this.push({type:"Doctype",name:""})},A.prototype.appendToDoctypeName=function(v){this.current("Doctype").name+=v},A.prototype.appendToDoctypePublicIdentifier=function(v){var _=this.current("Doctype");_.publicIdentifier===void 0?_.publicIdentifier=v:_.publicIdentifier+=v},A.prototype.appendToDoctypeSystemIdentifier=function(v){var _=this.current("Doctype");_.systemIdentifier===void 0?_.systemIdentifier=v:_.systemIdentifier+=v},A.prototype.endDoctype=function(){this.addLocInfo()},A.prototype.beginData=function(){this.push({type:"Chars",chars:""})},A.prototype.appendToData=function(v){this.current("Chars").chars+=v},A.prototype.finishData=function(){this.addLocInfo()},A.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},A.prototype.appendToCommentData=function(v){this.current("Comment").chars+=v},A.prototype.finishComment=function(){this.addLocInfo()},A.prototype.tagOpen=function(){},A.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},A.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},A.prototype.finishTag=function(){this.addLocInfo()},A.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},A.prototype.appendToTagName=function(v){this.current("StartTag","EndTag").tagName+=v},A.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},A.prototype.appendToAttributeName=function(v){this.currentAttribute()[0]+=v},A.prototype.beginAttributeValue=function(v){this.currentAttribute()[2]=v},A.prototype.appendToAttributeValue=function(v){this.currentAttribute()[1]+=v},A.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},A.prototype.reportSyntaxError=function(v){this.current().syntaxError=v},A}();function P(A,v){var _=new b(new r(d),v);return _.tokenize(A)}h.HTML5NamedCharRefs=d,h.EntityParser=r,h.EventedTokenizer=o,h.Tokenizer=b,h.tokenize=P,Object.defineProperty(h,"__esModule",{value:!0})})}}),We=F({"node_modules/@glimmer/syntax/dist/commonjs/es2017/lib/generatio
|
| `.concat(u.split(`
`).join(`
| `),`
|
`):"",n=new Error("".concat(h,": ").concat(p,"(error occurred in '").concat(c,"' @ line ").concat(e," : column ").concat(r,")"));return n.name="SyntaxError",n.location=d,n.code=u,n}}}),Ft=F({"node_modules/@glimmer/syntax/dist/commonjs/es2017/lib/v1/visitor-keys.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var m=X(),h={Program:(0,m.tuple)("body"),Template:(0,m.tuple)("body"),Block:(0,m.tuple)("body"),MustacheStatement:(0,m.tuple)("path","params","hash"),BlockStatement:(0,m.tuple)("path","params","hash","program","inverse"),ElementModifierStatement:(0,m.tuple)("path","params","hash"),PartialStatement:(0,m.tuple)("name","params","hash"),CommentStatement:(0,m.tuple)(),MustacheCommentStatement:(0,m.tuple)(),ElementNode:(0,m.tuple)("attributes","modifiers","children","comments"),AttrNode:(0,m.tuple)("value"),TextNode:(0,m.tuple)(),ConcatStatement:(0,m.tuple)("parts"),SubExpression:(0,m.tuple)("path","params","hash"),PathExpression:(0,m.tuple)(),PathHead:(0,m.tuple)(),StringLiteral:(0,m.tuple)(),BooleanLiteral:(0,m.tuple)(),NumberLiteral:(0,m.tuple)(),NullLiteral:(0,m.tuple)(),UndefinedLiteral:(0,m.tuple)(),Hash:(0,m.tuple)("pairs"),HashPair:(0,m.tuple)("value"),NamedBlock:(0,m.tuple)("attributes","modifiers","children","comments"),SimpleElement:(0,m.tuple)("attributes","modifiers","children","comments"),Component:(0,m.tuple)("head","attributes","modifiers","children","comments")},d=h;t.default=d}}),Ye=F({"node_modules/@glimmer/syntax/dist/commonjs/es2017/lib/traversal/errors.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.cannotRemoveNode=d,t.cannotReplaceNode=c,t.cannotReplaceOrRemoveInKeyHandlerYet=l,t.default=void 0;var m=function(){e.prototype=Object.create(Error.prototype),e.prototype.constructor=e;function e(r,u,p,n){let a=Error.call(this,r);this.key=n,this.message=r,this.node=u,this.parent=p,this.stack=a.stack}return e}(),h=m;t.default=h;function d(e,r,u){return new m("Cannot remove a node unless it is part of an array",e,r,u)}function c(e,r,u){return new m("Cannot replace a node with multiple nodes unless it is part of an array",e,r,u)}function l(e,r){return new m("Replacing and removing in key handlers is not yet supported.",e,null,r)}}}),Qe=F({"node_modules/@glimmer/syntax/dist/commonjs/es2017/lib/traversal/path.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var m=class{constructor(d){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this.node=d,this.parent=c,this.parentKey=l}get parentNode(){return this.parent?this.parent.node:null}parents(){return{[Symbol.iterator]:()=>new h(this)}}};t.default=m;var h=class{constructor(d){this.path=d}next(){return this.path.parent?(this.path=this.path.parent,{done:!1,value:this.path}):{done:!0,value:null}}}}}),Ne=F({"node_modules/@glimmer/syntax/dist/commonjs/es2017/lib/traversal/traverse.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.default=A;var m=X(),h=l(Ft()),d=Ye(),c=l(Qe());function l(v){return v&&v.__esModule?v:{default:v}}function e(v){return typeof v=="function"?v:v.enter}function r(v){if(typeof v!="function")return v.exit}function u(v,_){let E=typeof v!="function"?v.keys:void 0;if(E===void 0)return;let g=E[_];return g!==void 0?g:E.All}function p(v,_){if((_==="Template"||_==="Block")&&v.Program)return v.Program;let E=v[_];return E!==void 0?E:v.All}function n(v,_){let{node:E,parent:g,parentKey:L}=_,j=p(v,E.type),x,w;j!==void 0&&(x=e(j),w=r(j));let H;if(x!==void 0&&(H=x(E,_)),H!=null)if(JSON.stringify(E)===JSON.stringify(H))H=void 0;else{if(Array.isArray(H))return o(v,H,g,L),H;{let f=new c.default(H,g,L);return n(v,f)||H}}if(H===void 0){let f=h.default[E.type];for(let C=0;C<f.length;C++){let S=f[C];i(v,j,_,S)}w!==void 0&&(H=w(E,_))}return H}function a(v,_){return v[_]}function s(v,_,E){v[_]=E}function i(v,_,E,g){let{node:L}=E,j=a(L,g);if(!j)return;let x,w;if(_!==void 0){let H=u(_,g);H!==void 0&&(x=e(H),w=r(H))}if(x!==void 0&&x(L,g)!==void 0)throw(0,d.canno
`)}};t.Parser=d}}),Rt=F({"node_modules/@glimmer/syntax/dist/commonjs/es2017/lib/parser/handlebars-node-visitors.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.HandlebarsNodeVisitors=void 0;var m=It(),h=ge(),d=he(),c=ye(),l=we(),e=r(Le());function r(i){return i&&i.__esModule?i:{default:i}}var u=class extends m.Parser{get isTopLevel(){return this.elementStack.length===0}Program(i){let o=[],b;this.isTopLevel?b=e.default.template({body:o,blockParams:i.blockParams,loc:this.source.spanFor(i.loc)}):b=e.default.blockItself({body:o,blockParams:i.blockParams,chained:i.chained,loc:this.source.spanFor(i.loc)});let P,A=i.body.length;if(this.elementStack.push(b),A===0)return this.elementStack.pop();for(P=0;P<A;P++)this.acceptNode(i.body[P]);let v=this.elementStack.pop();if(v!==b){let _=v;throw(0,d.generateSyntaxError)("Unclosed element `".concat(_.tag,"`"),_.loc)}return b}BlockStatement(i){if(this.tokenizer.state==="comment"){this.appendToCommentData(this.sourceForNode(i));return}if(this.tokenizer.state!=="data"&&this.tokenizer.state!=="beforeData")throw(0,d.generateSyntaxError)("A block may only be used inside an HTML element or another block.",this.source.spanFor(i.loc));let{path:o,params:b,hash:P}=a(this,i);i.program.loc||(i.program.loc=h.NON_EXISTENT_LOCATION),i.inverse&&!i.inverse.loc&&(i.inverse.loc=h.NON_EXISTENT_LOCATION);let A=this.Program(i.program),v=i.inverse?this.Program(i.inverse):null,_=e.default.block({path:o,params:b,hash:P,defaultBlock:A,elseBlock:v,loc:this.source.spanFor(i.loc),openStrip:i.openStrip,inverseStrip:i.inverseStrip,closeStrip:i.closeStrip}),E=this.currentElement();(0,c.appendChild)(E,_)}MustacheStatement(i){let{tokenizer:o}=this;if(o.state==="comment"){this.appendToCommentData(this.sourceForNode(i));return}let b,{escaped:P,loc:A,strip:v}=i;if((0,c.isHBSLiteral)(i.path))b=e.default.mustache({path:this.acceptNode(i.path),params:[],hash:e.default.hash([],this.source.spanFor(i.path.loc).collapse("end")),trusting:!P,loc:this.source.spanFor(A),strip:v});else{let{path:_,params:E,hash:g}=a(this,i);b=e.default.mustache({path:_,params:E,hash:g,trusting:!P,loc:this.source.spanFor(A),strip:v})}switch(o.state){case"tagOpen":case"tagName":throw(0,d.generateSyntaxError)("Cannot use mustaches in an elements tagname",b.loc);case"beforeAttributeName":s(this.currentStartTag,b);break;case"attributeName":case"afterAttributeName":this.beginAttributeValue(!1),this.finishAttributeValue(),s(this.currentStartTag,b),o.transitionTo("beforeAttributeName");break;case"afterAttributeValueQuoted":s(this.currentStartTag,b),o.transitionTo("beforeAttributeName");break;case"beforeAttributeValue":this.beginAttributeValue(!1),this.appendDynamicAttributeValuePart(b),o.transitionTo("attributeValueUnquoted");break;case"attributeValueDoubleQuoted":case"attributeValueSingleQuoted":case"attributeValueUnquoted":this.appendDynamicAttributeValuePart(b);break;default:(0,c.appendChild)(this.currentElement(),b)}return b}appendDynamicAttributeValuePart(i){this.finalizeTextPart();let o=this.currentAttr;o.isDynamic=!0,o.parts.push(i)}finalizeTextPart(){let o=this.currentAttr.currentPart;o!==null&&(this.currentAttr.parts.push(o),this.startTextPart())}startTextPart(){this.currentAttr.currentPart=null}ContentStatement(i){n(this.tokenizer,i),this.tokenizer.tokenizePart(i.value),this.tokenizer.flushData()}CommentStatement(i){let{tokenizer:o}=this;if(o.state==="comment")return this.appendToCommentData(this.sourceForNode(i)),null;let{value:b,loc:P}=i,A=e.default.mustacheComment(b,this.source.spanFor(P));switch(o.state){case"beforeAttributeName":case"afterAttributeName":this.currentStartTag.comments.push(A);break;case"beforeData":case"data":(0,c.appendChild)(this.currentElement(),A);break;default:throw(0,d.generateSyntaxError)("Using a Handlebars comment when in the `".concat(o.state,"` state is not supported"),this.source.spanFor(i.loc))}return A}PartialStatement(i){throw(0,d.generateSyntaxError)("Handlebars partials are not supported",this.source.spanFor(i.loc))}PartialBlockStatement(i){throw(0,d.generateSyntaxError)("Handlebars part
`).length-1,columns:0};let P=i.split(o)[0].split(/\n/),A=P.length-1;return{lines:A,columns:P[A].length}}function n(i,o){let b=o.loc.start.line,P=o.loc.start.column,A=p(o.original,o.value);b=b+A.lines,A.lines?P=A.columns:P=P+A.columns,i.line=b,i.column=P}function a(i,o){let b=o.path.type==="PathExpression"?i.PathExpression(o.path):i.SubExpression(o.path),P=o.params?o.params.map(_=>i.acceptNode(_)):[],A=P.length>0?P[P.length-1].loc:b.loc,v=o.hash?i.Hash(o.hash):{type:"Hash",pairs:[],loc:i.source.spanFor(A).collapse("end")};return{path:b,params:P,hash:v}}function s(i,o){let{path:b,params:P,hash:A,loc:v}=o;if((0,c.isHBSLiteral)(b)){let E="{{".concat((0,c.printLiteral)(b),"}}"),g="<".concat(i.name," ... ").concat(E," ...");throw(0,d.generateSyntaxError)("In ".concat(g,", ").concat(E," is not a valid modifier"),o.loc)}let _=e.default.elementModifier({path:b,params:P,hash:A,loc:v});i.modifiers.push(_)}}}),Fe=F({"node_modules/@glimmer/syntax/dist/commonjs/es2017/lib/parser/tokenizer-event-handlers.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.preprocess=_,t.TokenizerEventHandlers=void 0;var m=X(),h=Lt(),d=Ke(),c=b(We()),l=Te(),e=De(),r=ue(),u=he(),p=b(Ne()),n=b(Je()),a=ye(),s=b(Le()),i=b(ke()),o=Rt();function b(E){return E&&E.__esModule?E:{default:E}}var P=class extends o.HandlebarsNodeVisitors{constructor(){super(...arguments);this.tagOpenLine=0,this.tagOpenColumn=0}reset(){this.currentNode=null}beginComment(){this.currentNode=s.default.comment("",this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn))}appendToCommentData(E){this.currentComment.value+=E}finishComment(){(0,a.appendChild)(this.currentElement(),this.finish(this.currentComment))}beginData(){this.currentNode=s.default.text({chars:"",loc:this.offset().collapsed()})}appendToData(E){this.currentData.chars+=E}finishData(){this.currentData.loc=this.currentData.loc.withEnd(this.offset()),(0,a.appendChild)(this.currentElement(),this.currentData)}tagOpen(){this.tagOpenLine=this.tokenizer.line,this.tagOpenColumn=this.tokenizer.column}beginStartTag(){this.currentNode={type:"StartTag",name:"",attributes:[],modifiers:[],comments:[],selfClosing:!1,loc:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}beginEndTag(){this.currentNode={type:"EndTag",name:"",attributes:[],modifiers:[],comments:[],selfClosing:!1,loc:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}finishTag(){let E=this.finish(this.currentTag);if(E.type==="StartTag"){if(this.finishStartTag(),E.name===":")throw(0,u.generateSyntaxError)("Invalid named block named detected, you may have created a named block without a name, or you may have began your name with a number. Named blocks must have names that are at least one character long, and begin with a lower case letter",this.source.spanFor({start:this.currentTag.loc.toJSON(),end:this.offset().toJSON()}));(l.voidMap[E.name]||E.selfClosing)&&this.finishEndTag(!0)}else E.type==="EndTag"&&this.finishEndTag(!1)}finishStartTag(){let{name:E,attributes:g,modifiers:L,comments:j,selfClosing:x,loc:w}=this.finish(this.currentStartTag),H=s.default.element({tag:E,selfClosing:x,attrs:g,modifiers:L,comments:j,children:[],blockParams:[],loc:w});this.elementStack.push(H)}finishEndTag(E){let g=this.finish(this.currentTag),L=this.elementStack.pop(),j=this.currentElement();this.validateEndTag(g,L,E),L.loc=L.loc.withEnd(this.offset()),(0,a.parseElementBlockParams)(L),(0,a.appendChild)(j,L)}markTagAsSelfClosing(){this.currentTag.selfClosing=!0}appendToTagName(E){this.currentTag.name+=E}beginAttribute(){let E=this.offset();this.currentAttribute={name:"",parts:[],currentPart:null,isQuoted:!1,isDynamic:!1,start:E,valueSpan:E.collapsed()}}appendToAttributeName(E){this.currentAttr.name+=E}beginAttributeValue(E){this.currentAttr.isQuoted=E,this.startTextPart(),this.currentAttr.valueSpan=this.offset().collapsed()}appendToAttributeValue(E){let g=this.currentAttr.parts,L=g[g.length-1],j=this.currentAttr.currentPart;if(j)j.chars+=E,j.loc=j.loc.withEnd(this.offset());else{let x=this.offset();E===`
`?x=L?L.loc.getEnd():this.currentAttr.valueSpan.getStart():x=x.move(-1),this.currentAttr.currentPart=s.default.text({chars:E,loc:x.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let E=this.currentTag,g=this.offset();if(E.type==="EndTag")throw(0,u.generateSyntaxError)("Invalid end tag: closing tag must not have attributes",this.source.spanFor({start:E.loc.toJSON(),end:g.toJSON()}));let{name:L,parts:j,start:x,isQuoted:w,isDynamic:H,valueSpan:f}=this.currentAttr,C=this.assembleAttributeValue(j,w,H,x.until(g));C.loc=f.withEnd(g);let S=s.default.attr({name:L,value:C,loc:x.until(g)});this.currentStartTag.attributes.push(S)}reportSyntaxError(E){throw(0,u.generateSyntaxError)(E,this.offset().collapsed())}assembleConcatenatedValue(E){for(let j=0;j<E.length;j++){let x=E[j];if(x.type!=="MustacheStatement"&&x.type!=="TextNode")throw(0,u.generateSyntaxError)("Unsupported node in quoted attribute value: "+x.type,x.loc)}(0,m.assertPresent)(E,"the concatenation parts of an element should not be empty");let g=E[0],L=E[E.length-1];return s.default.concat(E,this.source.spanFor(g.loc).extend(this.source.spanFor(L.loc)))}validateEndTag(E,g,L){let j;if(l.voidMap[E.name]&&!L?j="<".concat(E.name,"> elements do not need end tags. You should remove it"):g.tag===void 0?j="Closing tag </".concat(E.name,"> without an open tag"):g.tag!==E.name&&(j="Closing tag </".concat(E.name,"> did not match last open tag <").concat(g.tag,"> (on line ").concat(g.loc.startPosition.line,")")),j)throw(0,u.generateSyntaxError)(j,E.loc)}assembleAttributeValue(E,g,L,j){if(L){if(g)return this.assembleConcatenatedValue(E);if(E.length===1||E.length===2&&E[1].type==="TextNode"&&E[1].chars==="/")return E[0];throw(0,u.generateSyntaxError)("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'",j)}else return E.length>0?E[0]:s.default.text({chars:"",loc:j})}};t.TokenizerEventHandlers=P;var A={parse:_,builders:i.default,print:c.default,traverse:p.default,Walker:n.default},v=class extends d.EntityParser{constructor(){super({})}parse(){}};function _(E){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var L,j,x;let w=g.mode||"precompile",H,f;typeof E=="string"?(H=new e.Source(E,(L=g.meta)===null||L===void 0?void 0:L.moduleName),w==="codemod"?f=(0,h.parseWithoutProcessing)(E,g.parseOptions):f=(0,h.parse)(E,g.parseOptions)):E instanceof e.Source?(H=E,w==="codemod"?f=(0,h.parseWithoutProcessing)(E.source,g.parseOptions):f=(0,h.parse)(E.source,g.parseOptions)):(H=new e.Source("",(j=g.meta)===null||j===void 0?void 0:j.moduleName),f=E);let C;w==="codemod"&&(C=new v);let S=r.SourceSpan.forCharPositions(H,0,H.source.length);f.loc={source:"(program)",start:S.startPosition,end:S.endPosition};let R=new P(H,C,w).acceptTemplate(f);if(g.strictMode&&(R.blockParams=(x=g.locals)!==null&&x!==void 0?x:[]),g&&g.plugins&&g.plugins.ast)for(let M=0,V=g.plugins.ast.length;M<V;M++){let G=g.plugins.ast[M],K=(0,m.assign)({},g,{syntax:A},{plugins:void 0}),U=G(K);(0,p.default)(R,U.visitor)}return R}}}),Xe=F({"node_modules/@glimmer/syntax/dist/commonjs/es2017/lib/symbol-table.js"(t){"use strict";I(),Object.defineProperty(t,"__esModule",{value:!0}),t.BlockSymbolTable=t.ProgramSymbolTable=t.SymbolTable=void 0;var m=X(),h=ye(),d=class{static top(e,r){return new c(e,r)}child(e){let r=e.map(u=>this.allocate(u));return new l(this,e,r)}};t.SymbolTable=d;var c=class extends d{constructor(e,r){super();this.templateLocals=e,this.customizeComponentName=r,this.symbols=[],this.upvars=[],this.size=1,this.named=(0,m.dict)(),this.blocks=(0,m.dict)(),this.usedTemplateLocals=[],this._hasEval=!1}getUsedTemplateLocals(){return this.usedTemplateLocals}setHasEval(){this._hasEval=!0}get hasEval(){return this._hasEval}has(e){return this.templateLocals.indexOf(e)!==-1}get(e){let r=this.usedTemplateLocals.indexOf(e);return r!==-1?[r,!0]:(r=this.usedTemplateLocals.length,this.usedTemplateLocals.push(e),[r,!0])}getLocalsMap(){return(0,m.dict)()}getEvalInfo(){let e=this.getLocalsMap();return Object.keys(e).m