UNPKG

140 kBJavaScriptView Raw
1var t,e,r=(function(t,e){var r="\n",n=function(){function t(t){this.string=t;for(var e=[0],n=0;n<t.length;)switch(t[n]){case r:n+=r.length,e.push(n);break;case"\r":t[n+="\r".length]===r&&(n+=r.length),e.push(n);break;default:n++}this.offsets=e}return t.prototype.locationForIndex=function(t){if(t<0||t>this.string.length)return null;for(var e=0,r=this.offsets;r[e+1]<=t;)e++;return{line:e,column:t-r[e]}},t.prototype.indexForLocation=function(t){var e=t.line,r=t.column;return e<0||e>=this.offsets.length||r<0||r>this.lengthOfLine(e)?null:this.offsets[e]+r},t.prototype.lengthOfLine=function(t){var e=this.offsets[t];return(t===this.offsets.length-1?this.string.length:this.offsets[t+1])-e},t}();e.__esModule=!0,e.default=n}(e={path:t,exports:{},require:function(t,r){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==r&&e.path)}},e.exports),e.exports);var n=function(t,e){const r=new SyntaxError(t+" ("+e.start.line+":"+e.start.column+")");return r.loc=e,r};var s={locStart:function(t){return t.loc.start.offset},locEnd:function(t){return t.loc.end.offset}};Object.freeze([]);function a(){return Object.create(null)}const{keys:i}=Object;function o(t){for(let e=1;e<arguments.length;e++){let r=arguments[e];if(null===r||"object"!=typeof r)continue;let n=i(r);for(let e=0;e<n.length;e++){let s=n[e];t[s]=r[s]}}return t}const l=(...t)=>t;function c(t){return t.length>0}function h(t,e="unexpected empty list"){if(!c(t))throw new Error(e)}const u=console;const p=Object.freeze({line:1,column:0}),d=Object.freeze({source:"(synthetic)",start:p,end:p}),m=(Object.freeze({source:"(temporary)",start:p,end:p}),Object.freeze({source:"(nonexistent)",start:p,end:p})),f=Object.freeze({source:"(broken)",start:p,end:p});class g{constructor(t){this.loc=t.loc,this.chars=t.chars}static synthetic(t){let e=U.synthetic(t);return new g({loc:e,chars:t})}static load(t,e){return new g({loc:U.load(t,e[1]),chars:e[0]})}getString(){return this.chars}serialize(){return[this.chars,this.loc.serialize()]}}var b,y,k,v=function(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r},w=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)};class S{constructor(t){b.set(this,void 0),v(this,b,t)}first(t){for(let e of w(this,b)){let r=e.match(t);if(c(r))return r[0]}return null}}b=new WeakMap;class E{constructor(){y.set(this,new Map)}get(t,e){let r=w(this,y).get(t);return r||(r=e(),w(this,y).set(t,r),r)}add(t,e){w(this,y).set(t,e)}match(t){let e=function(t){switch(t){case"Broken":case"InternalsSynthetic":case"NonExistent":return"IS_INVISIBLE";default:return t}}(t),r=[],n=w(this,y).get(e),s=w(this,y).get("MATCH_ANY");return n&&r.push(n),s&&r.push(s),r}}function x(t){return t(new N).check()}y=new WeakMap;class N{constructor(){k.set(this,new E)}check(){return(t,e)=>this.matchFor(t.kind,e.kind)(t,e)}matchFor(t,e){let r=w(this,k).match(t);return new S(r).first(e)}when(t,e,r){return w(this,k).get(t,(()=>new E)).add(e,r),this}}k=new WeakMap;var T,A,P=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},C=function(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r};class L{constructor(t){this.data=t}static forHbsPos(t,e){return new q(t,e,null).wrap()}static broken(t=p){return new O("Broken",t).wrap()}get offset(){let t=this.data.toCharPos();return null===t?null:t.offset}eql(t){return _(this.data,t.data)}until(t){return $(this.data,t.data)}move(t){let e=this.data.toCharPos();if(null===e)return L.broken();{let r=e.offset+t;return e.source.check(r)?new B(e.source,r).wrap():L.broken()}}collapsed(){return $(this.data,this.data)}toJSON(){return this.data.toJSON()}}class B{constructor(t,e){this.source=t,this.charPos=e,this.kind="CharPosition",T.set(this,null)}toCharPos(){return this}toJSON(){let t=this.toHbsPos();return null===t?p:t.toJSON()}wrap(){return new L(this)}get offset(){return this.charPos}toHbsPos(){let t=P(this,T);if(null===t){let e=this.source.hbsPosFor(this.charPos);C(this,T,t=null===e?"BROKEN":new q(this.source,e,this.charPos))}return"BROKEN"===t?null:t}}T=new WeakMap;class q{constructor(t,e,r=null){this.source=t,this.hbsPos=e,this.kind="HbsPosition",A.set(this,void 0),C(this,A,null===r?null:new B(t,r))}toCharPos(){let t=P(this,A);if(null===t){let e=this.source.charPosFor(this.hbsPos);C(this,A,t=null===e?"BROKEN":new B(this.source,e))}return"BROKEN"===t?null:t}toJSON(){return this.hbsPos}wrap(){return new L(this)}toHbsPos(){return this}}A=new WeakMap;class O{constructor(t,e){this.kind=t,this.pos=e}toCharPos(){return null}toJSON(){return this.pos}wrap(){return new L(this)}get offset(){return null}}const _=x((t=>t.when("HbsPosition","HbsPosition",(({hbsPos:t},{hbsPos:e})=>t.column===e.column&&t.line===e.line)).when("CharPosition","CharPosition",(({charPos:t},{charPos:e})=>t===e)).when("CharPosition","HbsPosition",(({offset:t},e)=>{var r;return t===(null===(r=e.toCharPos())||void 0===r?void 0:r.offset)})).when("HbsPosition","CharPosition",((t,{offset:e})=>{var r;return(null===(r=t.toCharPos())||void 0===r?void 0:r.offset)===e})).when("MATCH_ANY","MATCH_ANY",(()=>!1))));var D,H,R,V=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},I=function(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r};class U{constructor(t){this.data=t,this.isInvisible="CharPosition"!==t.kind&&"HbsPosition"!==t.kind}static get NON_EXISTENT(){return new z("NonExistent",m).wrap()}static load(t,e){return"number"==typeof e?U.forCharPositions(t,e,e):"string"==typeof e?U.synthetic(e):Array.isArray(e)?U.forCharPositions(t,e[0],e[1]):"NonExistent"===e?U.NON_EXISTENT:"Broken"===e?U.broken(f):void function(t,e="unexpected unreachable branch"){throw u.log("unreachable",t),u.log("".concat(e," :: ").concat(JSON.stringify(t)," (").concat(t,")")),new Error("code reached unreachable")}(e)}static forHbsLoc(t,e){let r=new q(t,e.start),n=new q(t,e.end);return new F(t,{start:r,end:n},e).wrap()}static forCharPositions(t,e,r){let n=new B(t,e),s=new B(t,r);return new M(t,{start:n,end:s}).wrap()}static synthetic(t){return new z("InternalsSynthetic",m,t).wrap()}static broken(t=f){return new z("Broken",t).wrap()}getStart(){return this.data.getStart().wrap()}getEnd(){return this.data.getEnd().wrap()}get loc(){let t=this.data.toHbsSpan();return null===t?f:t.toHbsLoc()}get module(){return this.data.getModule()}get startPosition(){return this.loc.start}get endPosition(){return this.loc.end}toJSON(){return this.loc}withStart(t){return $(t.data,this.data.getEnd())}withEnd(t){return $(this.data.getStart(),t.data)}asString(){return this.data.asString()}toSlice(t){let e=this.data.asString();return new g({loc:this,chars:t||e})}get start(){return this.loc.start}set start(t){this.data.locDidUpdate({start:t})}get end(){return this.loc.end}set end(t){this.data.locDidUpdate({end:t})}get source(){return this.module}collapse(t){switch(t){case"start":return this.getStart().collapsed();case"end":return this.getEnd().collapsed()}}extend(t){return $(this.data.getStart(),t.data.getEnd())}serialize(){return this.data.serialize()}slice({skipStart:t=0,skipEnd:e=0}){return $(this.getStart().move(t).data,this.getEnd().move(-e).data)}sliceStartChars({skipStart:t=0,chars:e}){return $(this.getStart().move(t).data,this.getStart().move(t+e).data)}sliceEndChars({skipEnd:t=0,chars:e}){return $(this.getEnd().move(t-e).data,this.getStart().move(-t).data)}}class M{constructor(t,e){this.source=t,this.charPositions=e,this.kind="CharPosition",D.set(this,null)}wrap(){return new U(this)}asString(){return this.source.slice(this.charPositions.start.charPos,this.charPositions.end.charPos)}getModule(){return this.source.module}getStart(){return this.charPositions.start}getEnd(){return this.charPositions.end}locDidUpdate(){}toHbsSpan(){let t=V(this,D);if(null===t){let e=this.charPositions.start.toHbsPos(),r=this.charPositions.end.toHbsPos();t=I(this,D,null===e||null===r?"BROKEN":new F(this.source,{start:e,end:r}))}return"BROKEN"===t?null:t}serialize(){let{start:{charPos:t},end:{charPos:e}}=this.charPositions;return t===e?t:[t,e]}toCharPosSpan(){return this}}D=new WeakMap;class F{constructor(t,e,r=null){this.source=t,this.hbsPositions=e,this.kind="HbsPosition",H.set(this,null),R.set(this,void 0),I(this,R,r)}serialize(){let t=this.toCharPosSpan();return null===t?"Broken":t.wrap().serialize()}wrap(){return new U(this)}updateProvided(t,e){V(this,R)&&(V(this,R)[e]=t),I(this,H,null),I(this,R,{start:t,end:t})}locDidUpdate({start:t,end:e}){void 0!==t&&(this.updateProvided(t,"start"),this.hbsPositions.start=new q(this.source,t,null)),void 0!==e&&(this.updateProvided(e,"end"),this.hbsPositions.end=new q(this.source,e,null))}asString(){let t=this.toCharPosSpan();return null===t?"":t.asString()}getModule(){return this.source.module}getStart(){return this.hbsPositions.start}getEnd(){return this.hbsPositions.end}toHbsLoc(){return{start:this.hbsPositions.start.hbsPos,end:this.hbsPositions.end.hbsPos}}toHbsSpan(){return this}toCharPosSpan(){let t=V(this,H);if(null===t){let e=this.hbsPositions.start.toCharPos(),r=this.hbsPositions.end.toCharPos();if(!e||!r)return t=I(this,H,"BROKEN"),null;t=I(this,H,new M(this.source,{start:e,end:r}))}return"BROKEN"===t?null:t}}H=new WeakMap,R=new WeakMap;class z{constructor(t,e,r=null){this.kind=t,this.loc=e,this.string=r}serialize(){switch(this.kind){case"Broken":case"NonExistent":return this.kind;case"InternalsSynthetic":return this.string||""}}wrap(){return new U(this)}asString(){return this.string||""}locDidUpdate({start:t,end:e}){void 0!==t&&(this.loc.start=t),void 0!==e&&(this.loc.end=e)}getModule(){return"an unknown module"}getStart(){return new O(this.kind,this.loc.start)}getEnd(){return new O(this.kind,this.loc.end)}toCharPosSpan(){return this}toHbsSpan(){return null}toHbsLoc(){return f}}const $=x((t=>t.when("HbsPosition","HbsPosition",((t,e)=>new F(t.source,{start:t,end:e}).wrap())).when("CharPosition","CharPosition",((t,e)=>new M(t.source,{start:t,end:e}).wrap())).when("CharPosition","HbsPosition",((t,e)=>{let r=e.toCharPos();return null===r?new z("Broken",f).wrap():$(t,r)})).when("HbsPosition","CharPosition",((t,e)=>{let r=t.toCharPos();return null===r?new z("Broken",f).wrap():$(r,e)})).when("IS_INVISIBLE","MATCH_ANY",(t=>new z(t.kind,f).wrap())).when("MATCH_ANY","IS_INVISIBLE",((t,e)=>new z(e.kind,f).wrap()))));class j{constructor(t,e="an unknown module"){this.source=t,this.module=e}check(t){return t>=0&&t<=this.source.length}slice(t,e){return this.source.slice(t,e)}offsetFor(t,e){return L.forHbsPos(this,{line:t,column:e})}spanFor({start:t,end:e}){return U.forHbsLoc(this,{start:{line:t.line,column:t.column},end:{line:e.line,column:e.column}})}hbsPosFor(t){let e=0,r=0;if(t>this.source.length)return null;for(;;){let n=this.source.indexOf("\n",r);if(t<=n||-1===n)return{line:e+1,column:t-r};e+=1,r=n+1}}charPosFor(t){let{line:e,column:r}=t,n=this.source.length,s=0,a=0;for(;;){if(a>=n)return n;let t=this.source.indexOf("\n",a);if(-1===t&&(t=this.source.length),s===e-1)return a+r>t?t:a+r;if(-1===t)return 0;s+=1,a=t+1}}}class G{constructor(t,e,r,n){this.original=t,this.loc=n,this.type="PathExpression",this.this=!1,this.data=!1;let s=r.slice();"ThisHead"===e.type?this.this=!0:"AtHead"===e.type?(this.data=!0,s.unshift(e.name.slice(1))):s.unshift(e.name),this.parts=s}get head(){let t;t=this.this?"this":this.data?"@".concat(this.parts[0]):this.parts[0];let e=this.loc.collapse("start").sliceStartChars({chars:t.length}).loc;return st.head(t,e)}get tail(){return this.this?this.parts:this.parts.slice(1)}}let K;function W(){return K||(K=new j("","(synthetic)")),K}function J(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 Q(t,e){let r,[n,...s]=t.split(".");return r="this"===n?{type:"ThisHead",loc:nt(e||null)}:"@"===n[0]?{type:"AtHead",name:n,loc:nt(e||null)}:{type:"VarHead",name:n,loc:nt(e||null)},{head:r,tail:s}}function Y(t){return{type:"ThisHead",loc:nt(t||null)}}function Z(t,e){return{type:"AtHead",name:t,loc:nt(e||null)}}function X(t,e){return{type:"VarHead",name:t,loc:nt(e||null)}}function tt(t,e){if("string"!=typeof t){if("type"in t)return t;{let{head:r,tail:n}=Q(t.head,U.broken()),{original:s}=J(r);return new G([s,...n].join("."),r,n,nt(e||null))}}let{head:r,tail:n}=Q(t,U.broken());return new G(t,r,n,nt(e||null))}function et(t,e,r){return{type:t,value:e,original:e,loc:nt(r||null)}}function rt(t,e){return{type:"Hash",pairs:t||[],loc:nt(e||null)}}function nt(...t){if(1===t.length){let e=t[0];return e&&"object"==typeof e?U.forHbsLoc(W(),e):U.forHbsLoc(W(),d)}{let[e,r,n,s,a]=t,i=a?new j("",a):W();return U.forHbsLoc(i,{start:{line:e,column:r},end:{line:n,column:s}})}}var st={mustache:function(t,e,r,n,s,a){return"string"==typeof t&&(t=tt(t)),{type:"MustacheStatement",path:t,params:e||[],hash:r||rt([]),escaped:!n,trusting:!!n,loc:nt(s||null),strip:a||{open:!1,close:!1}}},block:function(t,e,r,n,s,a,i,l,c){let h,u;return h="Template"===n.type?o({},n,{type:"Block"}):n,u=null!=s&&"Template"===s.type?o({},s,{type:"Block"}):s,{type:"BlockStatement",path:tt(t),params:e||[],hash:r||rt([]),program:h||null,inverse:u||null,loc:nt(a||null),openStrip:i||{open:!1,close:!1},inverseStrip:l||{open:!1,close:!1},closeStrip:c||{open:!1,close:!1}}},partial:function(t,e,r,n,s){return{type:"PartialStatement",name:t,params:e||[],hash:r||rt([]),indent:n||"",strip:{open:!1,close:!1},loc:nt(s||null)}},comment:function(t,e){return{type:"CommentStatement",value:t,loc:nt(e||null)}},mustacheComment:function(t,e){return{type:"MustacheCommentStatement",value:t,loc:nt(e||null)}},element:function(t,e){let r,{attrs:n,blockParams:s,modifiers:a,comments:i,children:o,loc:l}=e,c=!1;return"object"==typeof t?(c=t.selfClosing,r=t.name):"/"===t.slice(-1)?(r=t.slice(0,-1),c=!0):r=t,{type:"ElementNode",tag:r,selfClosing:c,attributes:n||[],blockParams:s||[],modifiers:a||[],comments:i||[],children:o||[],loc:l}},elementModifier:function(t,e,r,n){return{type:"ElementModifierStatement",path:tt(t),params:e||[],hash:r||rt([]),loc:nt(n||null)}},attr:function(t,e,r){return{type:"AttrNode",name:t,value:e,loc:nt(r||null)}},text:function(t,e){return{type:"TextNode",chars:t||"",loc:nt(e||null)}},sexpr:function(t,e,r,n){return{type:"SubExpression",path:tt(t),params:e||[],hash:r||rt([]),loc:nt(n||null)}},concat:function(t,e){if(!c(t))throw new Error("b.concat requires at least one part");return{type:"ConcatStatement",parts:t||[],loc:nt(e||null)}},hash:rt,pair:function(t,e,r){return{type:"HashPair",key:t,value:e,loc:nt(r||null)}},literal:et,program:function(t,e,r){return{type:"Template",body:t||[],blockParams:e||[],loc:nt(r||null)}},blockItself:function(t,e,r=!1,n){return{type:"Block",body:t||[],blockParams:e||[],chained:r,loc:nt(n||null)}},template:function(t,e,r){return{type:"Template",body:t||[],blockParams:e||[],loc:nt(r||null)}},loc:nt,pos:function(t,e){return{line:t,column:e}},path:tt,fullPath:function(t,e,r){let{original:n,parts:s}=J(t),a=[...n,...[...s,...e]].join(".");return new G(a,t,e,nt(r||null))},head:function(t,e){return"@"===t[0]?Z(t,e):"this"===t?Y(e):X(t,e)},at:Z,var:X,this:Y,blockName:function(t,e){return{type:"NamedBlockName",name:t,loc:nt(e||null)}},string:at("StringLiteral"),boolean:at("BooleanLiteral"),number:at("NumberLiteral"),undefined:()=>et("UndefinedLiteral",void 0),null:()=>et("NullLiteral",null)};function at(t){return function(e,r){return et(t,e,r)}}var it=Object.freeze({__proto__:null});class ot{resolution(){return 33}serialize(){return"Strict"}}const lt=new ot;class ct{constructor(t){this.ambiguity=t}static namespaced(t){return new ct({namespaces:[t],fallback:!1})}static fallback(){return new ct({namespaces:[],fallback:!0})}static append({invoke:t}){return new ct({namespaces:["Component","Helper"],fallback:!t})}static attr(){return new ct({namespaces:["Helper"],fallback:!0})}resolution(){if(0===this.ambiguity.namespaces.length)return 34;if(1!==this.ambiguity.namespaces.length)return this.ambiguity.fallback?35:36;if(this.ambiguity.fallback)return 37;switch(this.ambiguity.namespaces[0]){case"Helper":return 38;case"Modifier":return 39;case"Component":return 40}}serialize(){return 0===this.ambiguity.namespaces.length?"Loose":1===this.ambiguity.namespaces.length?this.ambiguity.fallback?["ambiguous","Attr"]:["ns",this.ambiguity.namespaces[0]]:this.ambiguity.fallback?["ambiguous","Append"]:["ambiguous","Invoke"]}}const ht=ct.fallback();function ut(t){if(void 0!==t){const e=t;return{fields:()=>class{constructor(t){this.type=e,this.loc=t.loc,pt(t,this)}}}}return{fields:()=>class{constructor(t){this.loc=t.loc,pt(t,this)}}}}function pt(t,e){for(let n of(r=t,Object.keys(r)))e[n]=t[n];var r}class dt extends(ut().fields()){static empty(t){return new dt({loc:t,positional:mt.empty(t),named:ft.empty(t)})}static named(t){return new dt({loc:t.loc,positional:mt.empty(t.loc.collapse("end")),named:t})}nth(t){return this.positional.nth(t)}get(t){return this.named.get(t)}isEmpty(){return this.positional.isEmpty()&&this.named.isEmpty()}}class mt extends(ut().fields()){static empty(t){return new mt({loc:t,exprs:[]})}get size(){return this.exprs.length}nth(t){return this.exprs[t]||null}isEmpty(){return 0===this.exprs.length}}class ft extends(ut().fields()){static empty(t){return new ft({loc:t,entries:[]})}get size(){return this.entries.length}get(t){let e=this.entries.filter((e=>e.name.chars===t))[0];return e?e.value:null}isEmpty(){return 0===this.entries.length}}class gt{constructor(t){this.loc=t.name.loc.extend(t.value.loc),this.name=t.name,this.value=t.value}}class bt extends(ut("HtmlAttr").fields()){}class yt extends(ut("SplatAttr").fields()){}class kt extends(ut().fields()){toNamedArgument(){return new gt({name:this.name,value:this.value})}}class vt extends(ut("ElementModifier").fields()){}var wt,St=function(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r},Et=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)};class xt{constructor(t=[]){wt.set(this,void 0),St(this,wt,t)}static range(t,e=U.NON_EXISTENT){return new xt(t.map(Nt)).getRangeOffset(e)}add(t){Et(this,wt).push(t)}getRangeOffset(t){if(0===Et(this,wt).length)return t;{let t=Et(this,wt)[0],e=Et(this,wt)[Et(this,wt).length-1];return t.extend(e)}}}function Nt(t){if(Array.isArray(t)){let e=t[0],r=t[t.length-1];return Nt(e).extend(Nt(r))}return t instanceof U?t:t.loc}function Tt(t){return!Array.isArray(t)||0!==t.length}wt=new WeakMap;class At extends(ut("GlimmerComment").fields()){}class Pt extends(ut("HtmlText").fields()){}class Ct extends(ut("HtmlComment").fields()){}class Lt extends(ut("AppendContent").fields()){get callee(){return"Call"===this.value.type?this.value.callee:this.value}get args(){return"Call"===this.value.type?this.value.args:dt.empty(this.value.loc.collapse("end"))}}class Bt extends(ut("InvokeBlock").fields()){}class qt extends(ut("InvokeComponent").fields()){get args(){let t=this.componentArgs.map((t=>t.toNamedArgument()));return dt.named(new ft({loc:xt.range(t,this.callee.loc.collapse("end")),entries:t}))}}class Ot extends(ut("SimpleElement").fields()){get args(){let t=this.componentArgs.map((t=>t.toNamedArgument()));return dt.named(new ft({loc:xt.range(t,this.tag.loc.collapse("end")),entries:t}))}}class _t extends(ut("Literal").fields()){toSlice(){return new g({loc:this.loc,chars:this.value})}}class Dt extends(ut("Path").fields()){}class Ht extends(ut("Call").fields()){}class Rt extends(ut("Interpolate").fields()){}class Vt extends(ut("This").fields()){}class It extends(ut("Arg").fields()){}class Ut extends(ut("Local").fields()){}class Mt extends(ut("Free").fields()){}class Ft extends(ut().fields()){}class zt extends(ut().fields()){}class $t extends(ut().fields()){get(t){return this.blocks.filter((e=>e.name.chars===t))[0]||null}}class jt extends(ut().fields()){get args(){let t=this.componentArgs.map((t=>t.toNamedArgument()));return dt.named(new ft({loc:xt.range(t,this.name.loc.collapse("end")),entries:t}))}}var Gt=Object.freeze({__proto__:null,StrictResolution:ot,STRICT_RESOLUTION:lt,LooseModeResolution:ct,ARGUMENT_RESOLUTION:ht,loadResolution:function(t){if("string"==typeof t)switch(t){case"Loose":return ct.fallback();case"Strict":return lt}switch(t[0]){case"ambiguous":switch(t[1]){case"Append":return ct.append({invoke:!1});case"Attr":return ct.attr();case"Invoke":return ct.append({invoke:!0})}case"ns":return ct.namespaced(t[1])}},node:ut,Args:dt,PositionalArguments:mt,NamedArguments:ft,NamedArgument:gt,HtmlAttr:bt,SplatAttr:yt,ComponentArg:kt,ElementModifier:vt,GlimmerComment:At,HtmlText:Pt,HtmlComment:Ct,AppendContent:Lt,InvokeBlock:Bt,InvokeComponent:qt,SimpleElement:Ot,LiteralExpression:_t,isLiteral:function(t,e){return"Literal"===t.type&&(void 0===e||("null"===e?null===t.value:typeof t.value===e))},PathExpression:Dt,CallExpression:Ht,InterpolateExpression:Rt,ThisReference:Vt,ArgReference:It,LocalVarReference:Ut,FreeVarReference:Mt,Template:Ft,Block:zt,NamedBlocks:$t,NamedBlock:jt});const Kt=/[\xA0"&]/,Wt=new RegExp(Kt.source,"g"),Jt=/[\xA0&<>]/,Qt=new RegExp(Jt.source,"g");function Yt(t){switch(t.charCodeAt(0)){case 160:return"&nbsp;";case 34:return"&quot;";case 38:return"&amp;";default:return t}}function Zt(t){switch(t.charCodeAt(0)){case 160:return"&nbsp;";case 38:return"&amp;";case 60:return"&lt;";case 62:return"&gt;";default:return t}}const Xt=Object.create(null);"area base br col command embed hr img input keygen link meta param source track wbr".split(" ").forEach((t=>{Xt[t]=!0}));const te=/\S/;class ee{constructor(t){this.buffer="",this.options=t}handledByOverride(t,e=!1){if(void 0!==this.options.override){let r=this.options.override(t,this.options);if("string"==typeof r)return e&&""!==r&&te.test(r[0])&&(r=" ".concat(r)),this.buffer+=r,!0}return!1}Node(t){switch(t.type){case"MustacheStatement":case"BlockStatement":case"PartialStatement":case"MustacheCommentStatement":case"CommentStatement":case"TextNode":case"ElementNode":case"AttrNode":case"Block":case"Template":return this.TopLevelStatement(t);case"StringLiteral":case"BooleanLiteral":case"NumberLiteral":case"UndefinedLiteral":case"NullLiteral":case"PathExpression":case"SubExpression":return this.Expression(t);case"Program":return this.Block(t);case"ConcatStatement":return this.ConcatStatement(t);case"Hash":return this.Hash(t);case"HashPair":return this.HashPair(t);case"ElementModifierStatement":return this.ElementModifierStatement(t)}}Expression(t){switch(t.type){case"StringLiteral":case"BooleanLiteral":case"NumberLiteral":case"UndefinedLiteral":case"NullLiteral":return this.Literal(t);case"PathExpression":return this.PathExpression(t);case"SubExpression":return this.SubExpression(t)}}Literal(t){switch(t.type){case"StringLiteral":return this.StringLiteral(t);case"BooleanLiteral":return this.BooleanLiteral(t);case"NumberLiteral":return this.NumberLiteral(t);case"UndefinedLiteral":return this.UndefinedLiteral(t);case"NullLiteral":return this.NullLiteral(t)}}TopLevelStatement(t){switch(t.type){case"MustacheStatement":return this.MustacheStatement(t);case"BlockStatement":return this.BlockStatement(t);case"PartialStatement":return this.PartialStatement(t);case"MustacheCommentStatement":return this.MustacheCommentStatement(t);case"CommentStatement":return this.CommentStatement(t);case"TextNode":return this.TextNode(t);case"ElementNode":return this.ElementNode(t);case"Block":case"Template":return this.Block(t);case"AttrNode":return this.AttrNode(t)}}Block(t){if(t.chained){t.body[0].chained=!0}this.handledByOverride(t)||this.TopLevelStatements(t.body)}TopLevelStatements(t){t.forEach((t=>this.TopLevelStatement(t)))}ElementNode(t){this.handledByOverride(t)||(this.OpenElementNode(t),this.TopLevelStatements(t.children),this.CloseElementNode(t))}OpenElementNode(t){this.buffer+="<".concat(t.tag),t.attributes.length&&t.attributes.forEach((t=>{this.buffer+=" ",this.AttrNode(t)})),t.modifiers.length&&t.modifiers.forEach((t=>{this.buffer+=" ",this.ElementModifierStatement(t)})),t.comments.length&&t.comments.forEach((t=>{this.buffer+=" ",this.MustacheCommentStatement(t)})),t.blockParams.length&&this.BlockParams(t.blockParams),t.selfClosing&&(this.buffer+=" /"),this.buffer+=">"}CloseElementNode(t){t.selfClosing||Xt[t.tag.toLowerCase()]||(this.buffer+="</".concat(t.tag,">"))}AttrNode(t){if(this.handledByOverride(t))return;let{name:e,value:r}=t;this.buffer+=e,("TextNode"!==r.type||r.chars.length>0)&&(this.buffer+="=",this.AttrNodeValue(r))}AttrNodeValue(t){"TextNode"===t.type?(this.buffer+='"',this.TextNode(t,!0),this.buffer+='"'):this.Node(t)}TextNode(t,e){var r;this.handledByOverride(t)||("raw"===this.options.entityEncoding?this.buffer+=t.chars:this.buffer+=e?(r=t.chars,Kt.test(r)?r.replace(Wt,Yt):r):function(t){return Jt.test(t)?t.replace(Qt,Zt):t}(t.chars))}MustacheStatement(t){this.handledByOverride(t)||(this.buffer+=t.escaped?"{{":"{{{",t.strip.open&&(this.buffer+="~"),this.Expression(t.path),this.Params(t.params),this.Hash(t.hash),t.strip.close&&(this.buffer+="~"),this.buffer+=t.escaped?"}}":"}}}")}BlockStatement(t){this.handledByOverride(t)||(t.chained?(this.buffer+=t.inverseStrip.open?"{{~":"{{",this.buffer+="else "):this.buffer+=t.openStrip.open?"{{~#":"{{#",this.Expression(t.path),this.Params(t.params),this.Hash(t.hash),t.program.blockParams.length&&this.BlockParams(t.program.blockParams),t.chained?this.buffer+=t.inverseStrip.close?"~}}":"}}":this.buffer+=t.openStrip.close?"~}}":"}}",this.Block(t.program),t.inverse&&(t.inverse.chained||(this.buffer+=t.inverseStrip.open?"{{~":"{{",this.buffer+="else",this.buffer+=t.inverseStrip.close?"~}}":"}}"),this.Block(t.inverse)),t.chained||(this.buffer+=t.closeStrip.open?"{{~/":"{{/",this.Expression(t.path),this.buffer+=t.closeStrip.close?"~}}":"}}"))}BlockParams(t){this.buffer+=" as |".concat(t.join(" "),"|")}PartialStatement(t){this.handledByOverride(t)||(this.buffer+="{{>",this.Expression(t.name),this.Params(t.params),this.Hash(t.hash),this.buffer+="}}")}ConcatStatement(t){this.handledByOverride(t)||(this.buffer+='"',t.parts.forEach((t=>{"TextNode"===t.type?this.TextNode(t,!0):this.Node(t)})),this.buffer+='"')}MustacheCommentStatement(t){this.handledByOverride(t)||(this.buffer+="{{!--".concat(t.value,"--}}"))}ElementModifierStatement(t){this.handledByOverride(t)||(this.buffer+="{{",this.Expression(t.path),this.Params(t.params),this.Hash(t.hash),this.buffer+="}}")}CommentStatement(t){this.handledByOverride(t)||(this.buffer+="\x3c!--".concat(t.value,"--\x3e"))}PathExpression(t){this.handledByOverride(t)||(this.buffer+=t.original)}SubExpression(t){this.handledByOverride(t)||(this.buffer+="(",this.Expression(t.path),this.Params(t.params),this.Hash(t.hash),this.buffer+=")")}Params(t){t.length&&t.forEach((t=>{this.buffer+=" ",this.Expression(t)}))}Hash(t){this.handledByOverride(t,!0)||t.pairs.forEach((t=>{this.buffer+=" ",this.HashPair(t)}))}HashPair(t){this.handledByOverride(t)||(this.buffer+=t.key,this.buffer+="=",this.Node(t.value))}StringLiteral(t){this.handledByOverride(t)||(this.buffer+=JSON.stringify(t.value))}BooleanLiteral(t){this.handledByOverride(t)||(this.buffer+=t.value)}NumberLiteral(t){this.handledByOverride(t)||(this.buffer+=t.value)}UndefinedLiteral(t){this.handledByOverride(t)||(this.buffer+="undefined")}NullLiteral(t){this.handledByOverride(t)||(this.buffer+="null")}print(t){let{options:e}=this;if(e.override){let r=e.override(t,e);if(void 0!==r)return r}return this.buffer="",this.Node(t),this.buffer}}var re=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function ne(t,e){var r,n,s,a,i=e&&e.loc;i&&(r=i.start.line,n=i.end.line,s=i.start.column,a=i.end.column,t+=" - "+r+":"+s);for(var o=Error.prototype.constructor.call(this,t),l=0;l<re.length;l++)this[re[l]]=o[re[l]];Error.captureStackTrace&&Error.captureStackTrace(this,ne);try{i&&(this.lineNumber=r,this.endLineNumber=n,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=s,this.endColumn=a))}catch(t){}}function se(){this.parents=[]}function ae(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function ie(t){ae.call(this,t),this.acceptKey(t,"program"),this.acceptKey(t,"inverse")}function oe(t){this.acceptRequired(t,"name"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function le(t){void 0===t&&(t={}),this.options=t}function ce(t,e,r){void 0===e&&(e=t.length);var n=t[e-1],s=t[e-2];return n?"ContentStatement"===n.type?(s||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original):void 0:r}function he(t,e,r){void 0===e&&(e=-1);var n=t[e+1],s=t[e+2];return n?"ContentStatement"===n.type?(s||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original):void 0:r}function ue(t,e,r){var n=t[null==e?0:e+1];if(n&&"ContentStatement"===n.type&&(r||!n.rightStripped)){var s=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==s}}function pe(t,e,r){var n=t[null==e?t.length-1:e-1];if(n&&"ContentStatement"===n.type&&(r||!n.leftStripped)){var s=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==s,n.leftStripped}}ne.prototype=new Error,se.prototype={constructor:se,mutating:!1,acceptKey:function(t,e){var r=this.accept(t[e]);if(this.mutating){if(r&&!se.prototype[r.type])throw new ne('Unexpected node type "'+r.type+'" found when accepting '+e+" on "+t.type);t[e]=r}},acceptRequired:function(t,e){if(this.acceptKey(t,e),!t[e])throw new ne(t.type+" requires "+e)},acceptArray:function(t){for(var e=0,r=t.length;e<r;e++)this.acceptKey(t,e),t[e]||(t.splice(e,1),e--,r--)},accept:function(t){if(t){if(!this[t.type])throw new ne("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var e=this[t.type](t);return this.current=this.parents.shift(),!this.mutating||e?e:!1!==e?t:void 0}},Program:function(t){this.acceptArray(t.body)},MustacheStatement:ae,Decorator:ae,BlockStatement:ie,DecoratorBlock:ie,PartialStatement:oe,PartialBlockStatement:function(t){oe.call(this,t),this.acceptKey(t,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:ae,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(t){this.acceptArray(t.pairs)},HashPair:function(t){this.acceptRequired(t,"value")}},le.prototype=new se,le.prototype.Program=function(t){var e=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=t.body,s=0,a=n.length;s<a;s++){var i=n[s],o=this.accept(i);if(o){var l=ce(n,s,r),c=he(n,s,r),h=o.openStandalone&&l,u=o.closeStandalone&&c,p=o.inlineStandalone&&l&&c;o.close&&ue(n,s,!0),o.open&&pe(n,s,!0),e&&p&&(ue(n,s),pe(n,s)&&"PartialStatement"===i.type&&(i.indent=/([ \t]+$)/.exec(n[s-1].original)[1])),e&&h&&(ue((i.program||i.inverse).body),pe(n,s)),e&&u&&(ue(n,s),pe((i.inverse||i.program).body))}}return t},le.prototype.BlockStatement=le.prototype.DecoratorBlock=le.prototype.PartialBlockStatement=function(t){this.accept(t.program),this.accept(t.inverse);var e=t.program||t.inverse,r=t.program&&t.inverse,n=r,s=r;if(r&&r.chained)for(n=r.body[0].program;s.chained;)s=s.body[s.body.length-1].program;var a={open:t.openStrip.open,close:t.closeStrip.close,openStandalone:he(e.body),closeStandalone:ce((n||e).body)};if(t.openStrip.close&&ue(e.body,null,!0),r){var i=t.inverseStrip;i.open&&pe(e.body,null,!0),i.close&&ue(n.body,null,!0),t.closeStrip.open&&pe(s.body,null,!0),!this.options.ignoreStandalone&&ce(e.body)&&he(n.body)&&(pe(e.body),ue(n.body))}else t.closeStrip.open&&pe(e.body,null,!0);return a},le.prototype.Decorator=le.prototype.MustacheStatement=function(t){return t.strip},le.prototype.PartialStatement=le.prototype.CommentStatement=function(t){var e=t.strip||{};return{inlineStandalone:!0,open:e.open,close:e.close}};var de=function(){var t=function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r},e=[2,46],r=[1,20],n=[5,14,15,19,29,34,39,44,47,48,51,55,60],s=[1,35],a=[1,28],i=[1,29],o=[1,30],l=[1,31],c=[1,32],h=[1,34],u=[14,15,19,29,34,39,44,47,48,51,55,60],p=[14,15,19,29,34,44,47,48,51,55,60],d=[15,18],m=[1,43],f=[14,15,19,29,34,47,48,51,55,60],g=[33,65,72,80,81,82,83,84,85],b=[23,33,54,65,68,72,75,80,81,82,83,84,85],y=[1,50],k=[23,33,54,65,68,72,75,80,81,82,83,84,85,87],v=[2,45],w=[54,65,72,80,81,82,83,84,85],S=[1,57],E=[1,58],x=[1,66],N=[33,65,72,75,80,81,82,83,84,85],T=[23,65,72,80,81,82,83,84,85],A=[1,78],P=[65,68,72,80,81,82,83,84,85],C=[33,75],L=[23,33,54,68,72,75],B=[1,108],q=[1,120],O=[72,77],_={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(t,e,r,n,s,a,i){var o=a.length-1;switch(s){case 1:return a[o-1];case 2:this.$=n.prepareProgram(a[o]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:case 40:case 41:this.$=a[o];break;case 9:this.$={type:"CommentStatement",value:n.stripComment(a[o]),strip:n.stripFlags(a[o],a[o]),loc:n.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:a[o],value:a[o],loc:n.locInfo(this._$)};break;case 11:this.$=n.prepareRawBlock(a[o-2],a[o-1],a[o],this._$);break;case 12:this.$={path:a[o-3],params:a[o-2],hash:a[o-1]};break;case 13:this.$=n.prepareBlock(a[o-3],a[o-2],a[o-1],a[o],!1,this._$);break;case 14:this.$=n.prepareBlock(a[o-3],a[o-2],a[o-1],a[o],!0,this._$);break;case 15:this.$={open:a[o-5],path:a[o-4],params:a[o-3],hash:a[o-2],blockParams:a[o-1],strip:n.stripFlags(a[o-5],a[o])};break;case 16:case 17:this.$={path:a[o-4],params:a[o-3],hash:a[o-2],blockParams:a[o-1],strip:n.stripFlags(a[o-5],a[o])};break;case 18:this.$={strip:n.stripFlags(a[o-1],a[o-1]),program:a[o]};break;case 19:var l=n.prepareBlock(a[o-2],a[o-1],a[o],a[o],!1,this._$),c=n.prepareProgram([l],a[o-1].loc);c.chained=!0,this.$={strip:a[o-2].strip,program:c,chain:!0};break;case 21:this.$={path:a[o-1],strip:n.stripFlags(a[o-2],a[o])};break;case 22:case 23:this.$=n.prepareMustache(a[o-3],a[o-2],a[o-1],a[o-4],n.stripFlags(a[o-4],a[o]),this._$);break;case 24:this.$={type:"PartialStatement",name:a[o-3],params:a[o-2],hash:a[o-1],indent:"",strip:n.stripFlags(a[o-4],a[o]),loc:n.locInfo(this._$)};break;case 25:this.$=n.preparePartialBlock(a[o-2],a[o-1],a[o],this._$);break;case 26:this.$={path:a[o-3],params:a[o-2],hash:a[o-1],strip:n.stripFlags(a[o-4],a[o])};break;case 29:this.$={type:"SubExpression",path:a[o-3],params:a[o-2],hash:a[o-1],loc:n.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:a[o],loc:n.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:n.id(a[o-2]),value:a[o],loc:n.locInfo(this._$)};break;case 32:this.$=n.id(a[o-1]);break;case 35:this.$={type:"StringLiteral",value:a[o],original:a[o],loc:n.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(a[o]),original:Number(a[o]),loc:n.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===a[o],original:"true"===a[o],loc:n.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:n.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:n.locInfo(this._$)};break;case 42:this.$=n.preparePath(!0,a[o],this._$);break;case 43:this.$=n.preparePath(!1,a[o],this._$);break;case 44:a[o-2].push({part:n.id(a[o]),original:a[o],separator:a[o-1]}),this.$=a[o-2];break;case 45:this.$=[{part:n.id(a[o]),original:a[o]}];break;case 46:case 48:case 50:case 58:case 64:case 70:case 78:case 82:case 86:case 90:case 94:this.$=[];break;case 47:case 49:case 51:case 59:case 65:case 71:case 79:case 83:case 87:case 91:case 95:case 99:case 101:a[o-1].push(a[o]);break;case 98:case 100:this.$=[a[o]]}},table:[t([5,14,15,19,29,34,48,51,55,60],e,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},t([5,39,44,47],[2,2],{7:5,8:6,9:7,10:8,11:9,12:10,13:11,24:15,27:16,16:17,59:19,14:[1,12],15:r,19:[1,23],29:[1,21],34:[1,22],48:[1,13],51:[1,14],55:[1,18],60:[1,24]}),{1:[2,1]},t(n,[2,47]),t(n,[2,3]),t(n,[2,4]),t(n,[2,5]),t(n,[2,6]),t(n,[2,7]),t(n,[2,8]),t(n,[2,9]),{20:25,72:s,78:26,79:27,80:a,81:i,82:o,83:l,84:c,85:h,86:33},{20:36,72:s,78:26,79:27,80:a,81:i,82:o,83:l,84:c,85:h,86:33},t(u,e,{6:3,4:37}),t(p,e,{6:3,4:38}),t(d,[2,48],{17:39}),{20:41,56:40,64:42,65:m,72:s,78:26,79:27,80:a,81:i,82:o,83:l,84:c,85:h,86:33},t(f,e,{6:3,4:44}),t([5,14,15,18,19,29,34,39,44,47,48,51,55,60],[2,10]),{20:45,72:s,78:26,79:27,80:a,81:i,82:o,83:l,84:c,85:h,86:33},{20:46,72:s,78:26,79:27,80:a,81:i,82:o,83:l,84:c,85:h,86:33},{20:47,72:s,78:26,79:27,80:a,81:i,82:o,83:l,84:c,85:h,86:33},{20:41,56:48,64:42,65:m,72:s,78:26,79:27,80:a,81:i,82:o,83:l,84:c,85:h,86:33},t(g,[2,78],{49:49}),t(b,[2,33]),t(b,[2,34]),t(b,[2,35]),t(b,[2,36]),t(b,[2,37]),t(b,[2,38]),t(b,[2,39]),t(b,[2,43],{87:y}),{72:s,86:51},t(k,v),t(w,[2,82],{52:52}),{25:53,38:55,39:S,43:56,44:E,45:54,47:[2,54]},{28:59,43:60,44:E,47:[2,56]},{13:62,15:r,18:[1,61]},t(g,[2,86],{57:63}),t(g,[2,40]),t(g,[2,41]),{20:64,72:s,78:26,79:27,80:a,81:i,82:o,83:l,84:c,85:h,86:33},{26:65,47:x},t(N,[2,58],{30:67}),t(N,[2,64],{35:68}),t(T,[2,50],{21:69}),t(g,[2,90],{61:70}),{20:74,33:[2,80],50:71,63:72,64:75,65:m,69:73,70:76,71:77,72:A,78:26,79:27,80:a,81:i,82:o,83:l,84:c,85:h,86:33},{72:[1,79]},t(b,[2,42],{87:y}),{20:74,53:80,54:[2,84],63:81,64:75,65:m,69:82,70:76,71:77,72:A,78:26,79:27,80:a,81:i,82:o,83:l,84:c,85:h,86:33},{26:83,47:x},{47:[2,55]},t(u,e,{6:3,4:84}),{47:[2,20]},{20:85,72:s,78:26,79:27,80:a,81:i,82:o,83:l,84:c,85:h,86:33},t(f,e,{6:3,4:86}),{26:87,47:x},{47:[2,57]},t(n,[2,11]),t(d,[2,49]),{20:74,33:[2,88],58:88,63:89,64:75,65:m,69:90,70:76,71:77,72:A,78:26,79:27,80:a,81:i,82:o,83:l,84:c,85:h,86:33},t(P,[2,94],{66:91}),t(n,[2,25]),{20:92,72:s,78:26,79:27,80:a,81:i,82:o,83:l,84:c,85:h,86:33},t(C,[2,60],{78:26,79:27,86:33,20:74,64:75,70:76,71:77,31:93,63:94,69:95,65:m,72:A,80:a,81:i,82:o,83:l,84:c,85:h}),t(C,[2,66],{78:26,79:27,86:33,20:74,64:75,70:76,71:77,36:96,63:97,69:98,65:m,72:A,80:a,81:i,82:o,83:l,84:c,85:h}),{20:74,22:99,23:[2,52],63:100,64:75,65:m,69:101,70:76,71:77,72:A,78:26,79:27,80:a,81:i,82:o,83:l,84:c,85:h,86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:m,69:104,70:76,71:77,72:A,78:26,79:27,80:a,81:i,82:o,83:l,84:c,85:h,86:33},{33:[1,105]},t(g,[2,79]),{33:[2,81]},t(b,[2,27]),t(b,[2,28]),t([23,33,54,68,75],[2,30],{71:106,72:[1,107]}),t(L,[2,98]),t(k,v,{73:B}),t(k,[2,44]),{54:[1,109]},t(w,[2,83]),{54:[2,85]},t(n,[2,13]),{38:55,39:S,43:56,44:E,45:111,46:110,47:[2,76]},t(N,[2,70],{40:112}),{47:[2,18]},t(n,[2,14]),{33:[1,113]},t(g,[2,87]),{33:[2,89]},{20:74,63:115,64:75,65:m,67:114,68:[2,96],69:116,70:76,71:77,72:A,78:26,79:27,80:a,81:i,82:o,83:l,84:c,85:h,86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:q},t(N,[2,59]),t(C,[2,61]),{33:[2,68],37:121,74:122,75:q},t(N,[2,65]),t(C,[2,67]),{23:[1,123]},t(T,[2,51]),{23:[2,53]},{33:[1,124]},t(g,[2,91]),{33:[2,93]},t(n,[2,22]),t(L,[2,99]),{73:B},{20:74,63:125,64:75,65:m,72:s,78:26,79:27,80:a,81:i,82:o,83:l,84:c,85:h,86:33},t(n,[2,23]),{47:[2,19]},{47:[2,77]},t(C,[2,72],{78:26,79:27,86:33,20:74,64:75,70:76,71:77,41:126,63:127,69:128,65:m,72:A,80:a,81:i,82:o,83:l,84:c,85:h}),t(n,[2,24]),{68:[1,129]},t(P,[2,95]),{68:[2,97]},t(n,[2,21]),{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},t(d,[2,12]),t(f,[2,26]),t(L,[2,31]),{33:[2,74],42:134,74:135,75:q},t(N,[2,71]),t(C,[2,73]),t(b,[2,29]),t(u,[2,15]),{72:[1,137],77:[1,136]},t(O,[2,100]),t(p,[2,16]),{33:[1,138]},{33:[2,75]},{33:[2,32]},t(O,[2,101]),t(u,[2,17])],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},parse:function(t){var e=this,r=[0],n=[null],s=[],a=this.table,i="",o=0,l=0,c=2,h=1,u=s.slice.call(arguments,1),p=Object.create(this.lexer),d={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(d.yy[m]=this.yy[m]);p.setInput(t,d.yy),d.yy.lexer=p,d.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var f=p.yylloc;s.push(f);var g=p.options&&p.options.ranges;"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,y,k,v,w,S,E,x,N=function(){var t;return"number"!=typeof(t=p.lex()||h)&&(t=e.symbols_[t]||t),t},T={};;){if(y=r[r.length-1],this.defaultActions[y]?k=this.defaultActions[y]:(null==b&&(b=N()),k=a[y]&&a[y][b]),void 0===k||!k.length||!k[0]){var A="";for(w in x=[],a[y])this.terminals_[w]&&w>c&&x.push("'"+this.terminals_[w]+"'");A=p.showPosition?"Parse error on line "+(o+1)+":\n"+p.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(o+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(A,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:f,expected:x})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+b);switch(k[0]){case 1:r.push(b),n.push(p.yytext),s.push(p.yylloc),r.push(k[1]),b=null,l=p.yyleng,i=p.yytext,o=p.yylineno,f=p.yylloc;break;case 2:if(S=this.productions_[k[1]][1],T.$=n[n.length-S],T._$={first_line:s[s.length-(S||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(S||1)].first_column,last_column:s[s.length-1].last_column},g&&(T._$.range=[s[s.length-(S||1)].range[0],s[s.length-1].range[1]]),void 0!==(v=this.performAction.apply(T,[i,l,o,d.yy,k[1],n,s].concat(u))))return v;S&&(r=r.slice(0,-1*S*2),n=n.slice(0,-1*S),s=s.slice(0,-1*S)),r.push(this.productions_[k[1]][0]),n.push(T.$),s.push(T._$),E=a[r[r.length-2]][r[r.length-1]],r.push(E);break;case 3:return!0}}return!0}},D={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,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 t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=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),r.length-1&&(this.yylineno-=r.length-1);var s=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:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var r,n,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var a in s)this[a]=s[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),a=0;a<s.length;a++)if((r=this._input.match(this.rules[s[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,s[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>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(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,r,n){function s(t,r){return e.yytext=e.yytext.substring(t,e.yyleng-r+t)}switch(r){case 0:if("\\\\"===e.yytext.slice(-2)?(s(0,1),this.begin("mu")):"\\"===e.yytext.slice(-1)?(s(0,1),this.begin("emu")):this.begin("mu"),e.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(s(5,9),18);case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;