prettier
Version:
Prettier is an opinionated code formatter
14 lines • 140 kB
JavaScript
var Vs=Object.defineProperty;var _e=(e,t)=>{for(var r in t)Vs(e,r,{get:t[r],enumerable:!0})};var Ds={};_e(Ds,{languages:()=>ss,parsers:()=>br,printers:()=>wi});var Jt=(e,t)=>(r,n,...s)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,s);var Fs=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},Hs=Jt("replaceAll",function(){if(typeof this=="string")return Fs}),St=Hs;function Us(e){return this[e<0?this.length+e:e]}var Ms=Jt("at",function(){if(Array.isArray(this)||typeof this=="string")return Us}),V=Ms;var zs=()=>{},Dt=zs;var Ot="string",Bt="array",$t="cursor",kt="indent",Et="align",Xt="trim",vt="group",wt="fill",Tt="if-break",Zt="indent-if-break",te="line-suffix",ee="line-suffix-boundary",Q="line",re="label",xt="break-parent",se=new Set([$t,kt,Et,Xt,vt,wt,Tt,Zt,te,ee,Q,re,xt]);function Ys(e){if(typeof e=="string")return Ot;if(Array.isArray(e))return Bt;if(!e)return;let{type:t}=e;if(se.has(t))return t}var ne=Ys;var Gs=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Ks(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
Expected it to be 'string' or 'object'.`;if(ne(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Gs([...se].map(s=>`'${s}'`));return`Unexpected doc.type '${e.type}'.
Expected it to be ${n}.`}var De=class extends Error{name="InvalidDocError";constructor(t){super(Ks(t)),this.doc=t}},Cr=De;function Ws(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(ne(i)){case Bt:return t(i.map(n));case wt:return t({...i,parts:i.parts.map(n)});case Tt:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case vt:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(n),o=a[0]):o=n(o),t({...i,contents:o,expandedStates:a})}case Et:case kt:case Zt:case re:case te:return t({...i,contents:n(i.contents)});case Ot:case $t:case Xt:case ee:case Q:case xt:return t(i);default:throw new Cr(i)}}}function ie(e,t=Lr){return Ws(e,r=>typeof r=="string"?ct(t,r.split(`
`)):r)}var M=Dt,ae=Dt,_r=Dt,Dr=Dt;function F(e){return M(e),{type:kt,contents:e}}function js(e,t){return Dr(e),M(t),{type:Et,contents:t,n:e}}function Oe(e){return js(-1,e)}var Be={type:xt};function Ie(e){return _r(e),{type:wt,parts:e}}function B(e,t={}){return M(e),ae(t.expandedStates,!0),{type:vt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Re(e,t="",r={}){return M(e),t!==""&&M(t),{type:Tt,breakContents:e,flatContents:t,groupId:r.groupId}}function ct(e,t){M(e),ae(t);let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}var N={type:Q},H={type:Q,soft:!0},Qs={type:Q,hard:!0},ut=[Qs,Be],Js={type:Q,hard:!0,literal:!0},Lr=[Js,Be];function $s(e,t){let r=t===!0||t==="'"?"'":'"',n=r==="'"?'"':"'",s=0,i=0;for(let a of e)a===r?s++:a===n&&i++;return s>i?n:r}var oe=$s;function qe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Ve=class{#t;constructor(t){this.#t=new Set(t)}getLeadingWhitespaceCount(t){let r=this.#t,n=0;for(let s=0;s<t.length&&r.has(t.charAt(s));s++)n++;return n}getTrailingWhitespaceCount(t){let r=this.#t,n=0;for(let s=t.length-1;s>=0&&r.has(t.charAt(s));s--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return this.#t.has(t.charAt(0))}hasTrailingWhitespace(t){return this.#t.has(V(0,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${qe([...this.#t].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return t.split(s)}hasWhitespaceCharacter(t){let r=this.#t;return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=this.#t;return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=this.#t;return Array.prototype.every.call(t,n=>r.has(n))}#e(t){let r=Number.POSITIVE_INFINITY;for(let n of t.split(`
`)){if(n.length===0)continue;let s=this.getLeadingWhitespaceCount(n);if(s===0)return 0;n.length!==s&&s<r&&(r=s)}return r===Number.POSITIVE_INFINITY?0:r}dedentString(t){let r=this.#e(t);return r===0?t:t.split(`
`).map(n=>n.slice(r)).join(`
`)}},Or=Ve;var Xs=[" ",`
`,"\f","\r"," "],Zs=new Or(Xs),R=Zs;function tn(e){return Array.isArray(e)&&e.length>0}var It=tn;var Fe=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},Br=Fe;function Ir(e,t,r){if(e.type==="TextNode"){let n=e.chars.trim();if(!n)return null;r.tag==="style"&&r.children.length===1&&r.children[0]===e?t.chars="":t.chars=R.split(n).join(" ")}e.type==="ElementNode"&&(delete t.startTag,delete t.openTag,delete t.parts,delete t.endTag,delete t.closeTag,delete t.nameNode,delete t.body,delete t.blockParamNodes,delete t.params,delete t.path),e.type==="Block"&&(delete t.blockParamNodes,delete t.params),e.type==="AttrNode"&&e.name.toLowerCase()==="class"&&delete t.value,e.type==="PathExpression"&&(t.head=e.head.original)}Ir.ignoredProperties=new Set(["loc","selfClosing"]);var Rr=Ir;function en(e){let{node:t}=e;if(t.type!=="TextNode")return;let{parent:r}=e;if(!(r.type==="ElementNode"&&r.tag==="style"&&r.children.length===1&&r.children[0]===t))return;let n=r.attributes.find(s=>s.type==="AttrNode"&&s.name==="lang");if(!(n&&!(n.value.type==="TextNode"&&(n.value.chars===""||n.value.chars==="css"))))return async s=>{let i=t.chars;return i.trim()?await s(i,{parser:"css"}):""}}var qr=en;var Rt=null;function qt(e){if(Rt!==null&&typeof Rt.property){let t=Rt;return Rt=qt.prototype=null,t}return Rt=qt.prototype=e??Object.create(null),new qt}var rn=10;for(let e=0;e<=rn;e++)qt();function He(e){return qt(e)}function sn(e,t="type"){He(e);function r(n){let s=n[t],i=e[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var Vr=sn;var Fr={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]};var nn=Vr(Fr),Hr=nn;var ht=e=>e.loc.start.offset,Vt=e=>e.loc.end.offset;var Ur=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function zr(e){return e.toUpperCase()===e}function an(e){return e.type==="ElementNode"&&typeof e.tag=="string"&&!e.tag.startsWith(":")&&(zr(e.tag[0])||e.tag.includes("."))}function on(e){return Ur.has(e.toLowerCase())&&!zr(e[0])}function Ue(e){return e.selfClosing===!0||on(e.tag)||an(e)&&e.children.every(t=>le(t))}function le(e){return e.type==="TextNode"&&!/\S/u.test(e.chars)}function Mr(e){return e?.type==="MustacheCommentStatement"&&typeof e.value=="string"&&e.value.trim()==="prettier-ignore"}function Yr(e){return Mr(e.node)||e.isInArray&&(e.key==="children"||e.key==="body"||e.key==="parts")&&Mr(e.siblings[e.index-2])}var $r=2;function ln(e,t,r){let{node:n}=e;switch(n.type){case"Block":case"Program":case"Template":return B(e.map(r,"body"));case"ElementNode":{let s=t.htmlWhitespaceSensitivity!=="ignore",i=[!s&&e.previous?.type==="ElementNode"?H:"",B([un(e,r)])];if(Ue(n))return[i];let a=["</",n.tag,">"],o=n.tag==="style";if(n.children.length===0||(!s||o)&&n.children.every(h=>le(h)))return[i,a];let c=e.map(r,"children");return o||!s?[i,F([H,...c]),H,a]:[i,F(B(c)),a]}case"BlockStatement":return ts(e)?[bn(e,r),Wr(e,t,r),jr(e,t,r)]:[mn(e,r),B([Wr(e,t,r),jr(e,t,r),yn(e,t,r)])];case"ElementModifierStatement":return B(["{{",Jr(e,r),"}}"]);case"MustacheStatement":return B([ce(n),Jr(e,r),ue(n)]);case"SubExpression":return B(["(",Tn(e,r),H,")"]);case"AttrNode":{let{name:s,value:i}=n,a=i.type==="TextNode";if(a&&i.chars===""&&ht(i)===Vt(i))return s;let c=a?oe(i.chars,t.singleQuote):i.type==="ConcatStatement"?oe(i.parts.map(f=>f.type==="TextNode"?f.chars:"").join(""),t.singleQuote):"",h=r("value");return[s,"=",c,s==="class"&&c?B(F(h)):h,c]}case"ConcatStatement":return e.map(r,"parts");case"Hash":return ct(N,e.map(r,"pairs"));case"HashPair":return[n.key,"=",r("value")];case"TextNode":{let s=n.chars,{parent:i}=e;if(i.type==="ElementNode"){if(i.tag==="pre")return ie(s);if(i.tag==="style")return s=St(0,s,/^\n+/gu,""),s=R.trimEnd(s),s=R.dedentString(s),ie(s,ut)}s=St(0,s,"{{","\\{{");let a=Sn(e);if(a){if(a==="class"){let D=s.trim().split(/\s+/u).join(" "),I=!1,O=!1;return e.parent.type==="ConcatStatement"&&(e.previous?.type==="MustacheStatement"&&/^\s/u.test(s)&&(I=!0),e.next?.type==="MustacheStatement"&&/\s$/u.test(s)&&D!==""&&(O=!0)),[I?N:"",D,O?N:""]}return ie(s)}let o=R.isWhitespaceOnly(s),{isFirst:c,isLast:h}=e;if(t.htmlWhitespaceSensitivity!=="ignore"){let D=h&&e.parent.type==="Template",I=c&&e.parent.type==="Template";if(o){if(I||D)return"";let C=[N],$=Nt(s);return $&&(C=Ft($)),h&&(C=C.map(W=>Oe(W))),C}let O=R.getLeadingWhitespace(s),z=[];if(O){z=[N];let C=Nt(O);C&&(z=Ft(C)),s=s.slice(O.length)}let P=R.getTrailingWhitespace(s),U=[];if(P){if(!D){U=[N];let C=Nt(P);C&&(U=Ft(C)),h&&(U=U.map($=>Oe($)))}s=s.slice(0,-P.length)}return[...z,Ie(Qr(s)),...U]}let f=Nt(s),p=kn(s),g=En(s);if((c||h)&&o&&(e.parent.type==="Block"||e.parent.type==="ElementNode"||e.parent.type==="Template"))return"";o&&f?(p=Math.min(f,$r),g=0):((e.next?.type==="BlockStatement"||e.next?.type==="ElementNode")&&(g=Math.max(g,1)),(e.previous?.type==="BlockStatement"||e.previous?.type==="ElementNode")&&(p=Math.max(p,1)));let E="",T="";return g===0&&e.next?.type==="MustacheStatement"&&(T=" "),p===0&&e.previous?.type==="MustacheStatement"&&(E=" "),c&&(p=0,E=""),h&&(g=0,T=""),R.hasLeadingWhitespace(s)&&(s=E+R.trimStart(s)),R.hasTrailingWhitespace(s)&&(s=R.trimEnd(s)+T),[...Ft(p),Ie(Qr(s)),...Ft(g)]}case"MustacheCommentStatement":{let s=ht(n),i=Vt(n),a=t.originalText.charAt(s+2)==="~",o=t.originalText.charAt(i-3)==="~",c=n.value.includes("}}")?"--":"";return["{{",a?"~":"","!",c,n.value,c,o?"~":"","}}"]}case"PathExpression":return Pn(n);case"BooleanLiteral":return String(n.value);case"CommentStatement":return["<!--",n.value,"-->"];case"StringLiteral":return vn(e,t);case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";case"FrontMatter":case"AtHead":case"VarHead":case"ThisHead":default:throw new Br(n,"Handlebars")}}function cn(e,t){return ht(e)-ht(t)}function un(e,t){let{node:r}=e,n=["attributes","modifiers","comments"].filter(i=>It(r[i])),s=n.flatMap(i=>r[i]).sort(cn);for(let i of n)e.each(({node:a})=>{let o=s.indexOf(a);s.splice(o,1,[N,t()])},i);return It(r.blockParams)&&s.push(N,ze(r)),["<",r.tag,F(s),hn(r)]}function hn(e){return Ue(e)?Re([H,"/>"],[" />",H]):Re([H,">"],">")}function ce(e){let t=e.trusting?"{{{":"{{",r=e.strip?.open?"~":"";return[t,r]}function ue(e){let t=e.trusting?"}}}":"}}";return[e.strip?.close?"~":"",t]}function pn(e){let t=ce(e),r=e.openStrip.open?"~":"";return[t,r,"#"]}function fn(e){let t=ue(e);return[e.openStrip.close?"~":"",t]}function Gr(e){let t=ce(e),r=e.closeStrip.open?"~":"";return[t,r,"/"]}function Kr(e){let t=ue(e);return[e.closeStrip.close?"~":"",t]}function Xr(e){let t=ce(e),r=e.inverseStrip.open?"~":"";return[t,r]}function Zr(e){let t=ue(e);return[e.inverseStrip.close?"~":"",t]}function mn(e,t){let{node:r}=e,n=[],s=he(e,t);return s&&n.push(B(s)),It(r.program.blockParams)&&n.push(ze(r.program)),B([pn(r),Me(e,t),n.length>0?F([N,ct(N,n)]):"",H,fn(r)])}function dn(e,t){return[t.htmlWhitespaceSensitivity==="ignore"?ut:"",Xr(e),"else",Zr(e)]}var gn=({path:e},{path:t})=>[e,t].every(r=>r.type==="PathExpression"&&r.head.type==="VarHead")&&e.head.name===t.head.name;function ts(e){if(!e.match(r=>r.type==="BlockStatement",(r,n)=>n==="body"&&r.type==="Block"&&r.body.length===1,(r,n)=>n==="inverse"&&r.type==="BlockStatement"))return!1;let{node:t}=e;return t.path.type==="PathExpression"&&t.path.head.type==="VarHead"&&t.path.head.name==="if"||gn(t,e.grandparent)}function bn(e,t){let{node:r,grandparent:n}=e;return B([Xr(n),["else"," ",n.inverse.body[0].path.head.name],F([N,B(he(e,t)),...It(r.program.blockParams)?[N,ze(r.program)]:[]]),H,Zr(n)])}function yn(e,t,r){let{node:n}=e;return t.htmlWhitespaceSensitivity==="ignore"?[es(n)?H:ut,Gr(n),r("path"),Kr(n)]:[Gr(n),r("path"),Kr(n)]}function es(e){return e.type==="BlockStatement"&&e.program.body.every(t=>le(t))}function Wr(e,t,r){let{node:n}=e;if(es(n))return"";let s=r("program");return t.htmlWhitespaceSensitivity==="ignore"?F([ut,s]):F(s)}function jr(e,t,r){let{node:n}=e;if(!n.inverse)return"";let s=r("inverse"),i=t.htmlWhitespaceSensitivity==="ignore"?[ut,s]:s;return e.call(ts,"inverse","body",0)?i:[dn(n,t),F(i)]}function Qr(e){return ct(N,R.split(e))}function Sn(e){for(let t=0;t<2;t++){let r=e.getParentNode(t);if(r?.type==="AttrNode")return r.name.toLowerCase()}}function Nt(e){return e=typeof e=="string"?e:"",e.split(`
`).length-1}function kn(e){e=typeof e=="string"?e:"";let t=(e.match(/^([^\S\n\r]*[\n\r])+/gu)||[])[0]||"";return Nt(t)}function En(e){e=typeof e=="string"?e:"";let t=(e.match(/([\n\r][^\S\n\r]*)+$/gu)||[])[0]||"";return Nt(t)}function Ft(e=0){return Array.from({length:Math.min(e,$r)}).fill(ut)}function vn(e,t){let{node:{value:r}}=e,n=oe(r,wn(e)?!t.singleQuote:t.singleQuote);return[n,St(0,r,n,`\\${n}`),n]}function wn(e){let{ancestors:t}=e,r=t.findIndex(n=>n.type!=="SubExpression");return r!==-1&&t[r+1].type==="ConcatStatement"&&t[r+2].type==="AttrNode"}function Tn(e,t){let r=Me(e,t),n=he(e,t);return n?F([r,N,B(n)]):r}function Jr(e,t){let r=Me(e,t),n=he(e,t);return n?[F([r,N,n]),H]:r}function Me(e,t){return t("path")}function he(e,t){let{node:r}=e,n=[];return r.params.length>0&&n.push(...e.map(t,"params")),r.hash?.pairs.length>0&&n.push(t("hash")),n.length===0?"":ct(N,n)}function ze(e){return["as |",e.blockParams.join(" "),"|"]}var xn=new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"),Nn=new Set(["true","false","null","undefined"]),An=(e,t)=>t===0&&e.startsWith("@")?!1:t!==0&&Nn.has(e)||/\s/u.test(e)||/^\d/u.test(e)||Array.prototype.some.call(e,r=>xn.has(r));function Pn(e){return e.tail.length===0&&e.original.includes("/")?e.original:[e.head.original,...e.tail].map((r,n)=>An(r,n)?`[${r}]`:r).join(".")}var Cn={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},print:ln,massageAstNode:Rr,hasPrettierIgnore:Yr,getVisitorKeys:Hr,embed:qr},rs=Cn;var ss=[{name:"Handlebars",type:"markup",aceMode:"handlebars",extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aliases:["hbs","htmlbars"],parsers:["glimmer"],vscodeLanguageIds:["handlebars"],linguistLanguageId:155}];var br={};_e(br,{glimmer:()=>vi});var Ln=Object.freeze([]);function is(){return Ln}var mo=is(),go=is();var Ye=Object.assign;var ns=console;function as(e,t="unexpected unreachable branch"){throw ns.log("unreachable",e),ns.log(`${t} :: ${JSON.stringify(e)} (${e})`),new Error("code reached unreachable")}var _n=(function(){var e=function(X,b,S,y){for(S=S||{},y=X.length;y--;S[X[y]]=b);return S},t=[2,52],r=[1,20],n=[5,14,15,19,29,34,39,44,47,48,53,57,61],s=[1,44],i=[1,40],a=[1,43],o=[1,33],c=[1,34],h=[1,35],f=[1,36],p=[1,37],g=[1,42],E=[1,46],T=[14,15,19,29,34,39,44,47,48,53,57,61],D=[14,15,19,29,34,44,47,48,53,57,61],I=[15,18],O=[14,15,19,29,34,47,48,53,57,61],z=[33,67,73,75,84,85,86,87,88,89],P=[23,33,56,67,68,73,75,77,79,84,85,86,87,88,89],U=[1,62],C=[1,63],$=[23,33,56,68,73,79],W=[23,33,56,67,68,73,75,77,79,84,85,86,87,88,89,92,93],yr=[2,51],Sr=[1,64],kr=[67,73,75,77,84,85,86,87,88,89],Er=[56,67,73,75,84,85,86,87,88,89],vr=[1,75],Ee=[1,76],ve=[1,83],dt=[33,67,73,75,79,84,85,86,87,88,89],wr=[23,67,73,75,84,85,86,87,88,89],Tr=[67,68,73,75,84,85,86,87,88,89],gt=[33,79],we=[1,134],xr=[73,81],Te={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,hash:49,expr:50,mustache_repetition0:51,mustache_option0:52,OPEN_UNESCAPED:53,mustache_repetition1:54,mustache_option1:55,CLOSE_UNESCAPED:56,OPEN_PARTIAL:57,partial_repetition0:58,partial_option0:59,openPartialBlock:60,OPEN_PARTIAL_BLOCK:61,openPartialBlock_repetition0:62,openPartialBlock_option0:63,exprHead:64,arrayLiteral:65,sexpr:66,OPEN_SEXPR:67,CLOSE_SEXPR:68,sexpr_repetition0:69,sexpr_option0:70,hash_repetition_plus0:71,hashSegment:72,ID:73,EQUALS:74,OPEN_ARRAY:75,arrayLiteral_repetition0:76,CLOSE_ARRAY:77,blockParams:78,OPEN_BLOCK_PARAMS:79,blockParams_repetition_plus0:80,CLOSE_BLOCK_PARAMS:81,path:82,dataName:83,STRING:84,NUMBER:85,BOOLEAN:86,UNDEFINED:87,NULL:88,DATA:89,pathSegments:90,sep:91,SEP:92,PRIVATE_SEP:93,$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",53:"OPEN_UNESCAPED",56:"CLOSE_UNESCAPED",57:"OPEN_PARTIAL",61:"OPEN_PARTIAL_BLOCK",67:"OPEN_SEXPR",68:"CLOSE_SEXPR",73:"ID",74:"EQUALS",75:"OPEN_ARRAY",77:"CLOSE_ARRAY",79:"OPEN_BLOCK_PARAMS",81:"CLOSE_BLOCK_PARAMS",84:"STRING",85:"NUMBER",86:"BOOLEAN",87:"UNDEFINED",88:"NULL",89:"DATA",92:"SEP",93:"PRIVATE_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,3],[8,5],[8,5],[11,5],[12,3],[60,5],[50,1],[50,1],[64,1],[64,1],[66,3],[66,5],[49,1],[72,3],[65,3],[78,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[83,2],[91,1],[91,1],[82,3],[82,1],[90,3],[90,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],[51,0],[51,2],[52,0],[52,1],[54,0],[54,2],[55,0],[55,1],[58,0],[58,2],[59,0],[59,1],[62,0],[62,2],[63,0],[63,1],[69,0],[69,2],[70,0],[70,1],[71,1],[71,2],[76,0],[76,2],[80,1],[80,2]],performAction:function(b,S,y,m,w,l,bt){var u=l.length-1;switch(w){case 1:return l[u-1];case 2:this.$=m.prepareProgram(l[u]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 28:case 29:case 30:case 31:case 38:case 39:case 46:case 47:this.$=l[u];break;case 9:this.$={type:"CommentStatement",value:m.stripComment(l[u]),strip:m.stripFlags(l[u],l[u]),loc:m.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[u],value:l[u],loc:m.locInfo(this._$)};break;case 11:this.$=m.prepareRawBlock(l[u-2],l[u-1],l[u],this._$);break;case 12:this.$={path:l[u-3],params:l[u-2],hash:l[u-1]};break;case 13:this.$=m.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!1,this._$);break;case 14:this.$=m.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!0,this._$);break;case 15:this.$={open:l[u-5],path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:m.stripFlags(l[u-5],l[u])};break;case 16:case 17:this.$={path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:m.stripFlags(l[u-5],l[u])};break;case 18:this.$={strip:m.stripFlags(l[u-1],l[u-1]),program:l[u]};break;case 19:var Z=m.prepareBlock(l[u-2],l[u-1],l[u],l[u],!1,this._$),_t=m.prepareProgram([Z],l[u-1].loc);_t.chained=!0,this.$={strip:l[u-2].strip,program:_t,chain:!0};break;case 21:this.$={path:l[u-1],strip:m.stripFlags(l[u-2],l[u])};break;case 22:this.$=m.prepareMustache(m.syntax.hash(l[u-1],m.locInfo(this._$),{yy:m,syntax:"expr"}),[],void 0,l[u-2],m.stripFlags(l[u-2],l[u]),this._$);break;case 23:case 24:this.$=m.prepareMustache(l[u-3],l[u-2],l[u-1],l[u-4],m.stripFlags(l[u-4],l[u]),this._$);break;case 25:this.$={type:"PartialStatement",name:l[u-3],params:l[u-2],hash:l[u-1],indent:"",strip:m.stripFlags(l[u-4],l[u]),loc:m.locInfo(this._$)};break;case 26:this.$=m.preparePartialBlock(l[u-2],l[u-1],l[u],this._$);break;case 27:this.$={path:l[u-3],params:l[u-2],hash:l[u-1],strip:m.stripFlags(l[u-4],l[u])};break;case 32:this.$=m.syntax.hash(l[u-1],m.locInfo(this._$),{yy:m,syntax:"expr"});break;case 33:this.$={type:"SubExpression",path:l[u-3],params:l[u-2],hash:l[u-1],loc:m.locInfo(this._$)};break;case 34:this.$={type:"Hash",pairs:l[u],loc:m.locInfo(this._$)};break;case 35:this.$={type:"HashPair",key:m.id(l[u-2]),value:l[u],loc:m.locInfo(this._$)};break;case 36:this.$=m.syntax.square(l[u-1],m.locInfo(this._$),{yy:m,syntax:"expr"});break;case 37:this.$=m.id(l[u-1]);break;case 40:this.$={type:"StringLiteral",value:l[u],original:l[u],loc:m.locInfo(this._$)};break;case 41:this.$={type:"NumberLiteral",value:Number(l[u]),original:Number(l[u]),loc:m.locInfo(this._$)};break;case 42:this.$={type:"BooleanLiteral",value:l[u]==="true",original:l[u]==="true",loc:m.locInfo(this._$)};break;case 43:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:m.locInfo(this._$)};break;case 44:this.$={type:"NullLiteral",original:null,value:null,loc:m.locInfo(this._$)};break;case 45:this.$=m.preparePath(!0,!1,l[u],this._$);break;case 48:this.$=m.preparePath(!1,l[u-2],l[u],this._$);break;case 49:this.$=m.preparePath(!1,!1,l[u],this._$);break;case 50:l[u-2].push({part:m.id(l[u]),original:l[u],separator:l[u-1]}),this.$=l[u-2];break;case 51:this.$=[{part:m.id(l[u]),original:l[u]}];break;case 52:case 54:case 56:case 64:case 70:case 76:case 84:case 88:case 92:case 96:case 100:case 106:this.$=[];break;case 53:case 55:case 57:case 65:case 71:case 77:case 85:case 89:case 93:case 97:case 101:case 105:case 107:case 109:l[u-1].push(l[u]);break;case 104:case 108:this.$=[l[u]];break}},table:[e([5,14,15,19,29,34,48,53,57,61],t,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},e([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,60:19,14:[1,12],15:r,19:[1,23],29:[1,21],34:[1,22],48:[1,13],53:[1,14],57:[1,18],61:[1,24]}),{1:[2,1]},e(n,[2,53]),e(n,[2,3]),e(n,[2,4]),e(n,[2,5]),e(n,[2,6]),e(n,[2,7]),e(n,[2,8]),e(n,[2,9]),{20:28,49:25,50:26,64:29,65:38,66:39,67:s,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{20:28,50:45,64:29,65:38,66:39,67:s,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},e(T,t,{6:3,4:47}),e(D,t,{6:3,4:48}),e(I,[2,54],{17:49}),{20:28,50:50,64:29,65:38,66:39,67:s,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},e(O,t,{6:3,4:51}),e([5,14,15,18,19,29,34,39,44,47,48,53,57,61],[2,10]),{20:52,64:53,65:38,66:39,67:s,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{20:54,64:53,65:38,66:39,67:s,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{20:55,64:53,65:38,66:39,67:s,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{20:28,50:56,64:29,65:38,66:39,67:s,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{33:[1,57]},e(z,[2,84],{51:58}),e([23,33,56,68,79],[2,34],{72:59,73:[1,60]}),e(P,[2,28]),e(P,[2,29],{91:61,92:U,93:C}),e($,[2,104]),e(P,[2,38]),e(P,[2,39]),e(P,[2,40]),e(P,[2,41]),e(P,[2,42]),e(P,[2,43]),e(P,[2,44]),e(W,[2,30]),e(W,[2,31]),e([23,33,56,67,68,73,75,79,84,85,86,87,88,89,92,93],yr,{74:Sr}),e(P,[2,49],{91:65,92:U,93:C}),{73:E,90:66},e(kr,[2,106],{76:67}),{20:28,49:68,50:69,64:29,65:38,66:39,67:s,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},e(Er,[2,88],{54:70}),e(W,yr),{25:71,38:73,39:vr,43:74,44:Ee,45:72,47:[2,60]},{28:77,43:78,44:Ee,47:[2,62]},{13:80,15:r,18:[1,79]},e(z,[2,92],{58:81}),{26:82,47:ve},e(dt,[2,64],{30:84}),{91:61,92:U,93:C},e(dt,[2,70],{35:85}),e(wr,[2,56],{21:86}),e(z,[2,96],{62:87}),e(n,[2,22]),{20:28,33:[2,86],49:90,50:89,52:88,64:29,65:38,66:39,67:s,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},e($,[2,105]),{74:Sr},{73:E,90:91},{73:[2,46]},{73:[2,47]},{20:28,50:92,64:29,65:38,66:39,67:s,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{73:[1,93]},e(P,[2,45],{91:65,92:U,93:C}),{20:28,50:95,64:29,65:38,66:39,67:s,73:E,75:a,77:[1,94],82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{68:[1,96]},e(Tr,[2,100],{69:97}),{20:28,49:100,50:99,55:98,56:[2,90],64:29,65:38,66:39,67:s,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{26:101,47:ve},{47:[2,61]},e(T,t,{6:3,4:102}),{47:[2,20]},{20:103,64:53,65:38,66:39,67:s,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},e(O,t,{6:3,4:104}),{26:105,47:ve},{47:[2,63]},e(n,[2,11]),e(I,[2,55]),{20:28,33:[2,94],49:108,50:107,59:106,64:29,65:38,66:39,67:s,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},e(n,[2,26]),{20:109,64:53,65:38,66:39,67:s,73:E,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},e(gt,[2,66],{71:27,20:28,64:29,72:30,82:31,83:32,65:38,66:39,90:41,31:110,50:111,49:112,67:s,73:i,75:a,84:o,85:c,86:h,87:f,88:p,89:g}),e(gt,[2,72],{71:27,20:28,64:29,72:30,82:31,83:32,65:38,66:39,90:41,36:113,50:114,49:115,67:s,73:i,75:a,84:o,85:c,86:h,87:f,88:p,89:g}),{20:28,22:116,23:[2,58],49:118,50:117,64:29,65:38,66:39,67:s,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{20:28,33:[2,98],49:121,50:120,63:119,64:29,65:38,66:39,67:s,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{33:[1,122]},e(z,[2,85]),{33:[2,87]},e(P,[2,48],{91:65,92:U,93:C}),e($,[2,35]),e(W,[2,50]),e(W,[2,36]),e(kr,[2,107]),e(W,[2,32]),{20:28,49:125,50:124,64:29,65:38,66:39,67:s,68:[2,102],70:123,71:27,72:30,73:i,75:a,82:31,83:32,84:o,85:c,86:h,87:f,88:p,89:g,90:41},{56:[1,126]},e(Er,[2,89]),{56:[2,91]},e(n,[2,13]),{38:73,39:vr,43:74,44:Ee,45:128,46:127,47:[2,82]},e(dt,[2,76],{40:129}),{47:[2,18]},e(n,[2,14]),{33:[1,130]},e(z,[2,93]),{33:[2,95]},{33:[1,131]},{32:132,33:[2,68],78:133,79:we},e(dt,[2,65]),e(gt,[2,67]),{33:[2,74],37:135,78:136,79:we},e(dt,[2,71]),e(gt,[2,73]),{23:[1,137]},e(wr,[2,57]),{23:[2,59]},{33:[1,138]},e(z,[2,97]),{33:[2,99]},e(n,[2,23]),{68:[1,139]},e(Tr,[2,101]),{68:[2,103]},e(n,[2,24]),{47:[2,19]},{47:[2,83]},e(gt,[2,78],{71:27,20:28,64:29,72:30,82:31,83:32,65:38,66:39,90:41,41:140,50:141,49:142,67:s,73:i,75:a,84:o,85:c,86:h,87:f,88:p,89:g}),e(n,[2,25]),e(n,[2,21]),{33:[1,143]},{33:[2,69]},{73:[1,145],80:144},{33:[1,146]},{33:[2,75]},e(I,[2,12]),e(O,[2,27]),e(W,[2,33]),{33:[2,80],42:147,78:148,79:we},e(dt,[2,77]),e(gt,[2,79]),e(T,[2,15]),{73:[1,150],81:[1,149]},e(xr,[2,108]),e(D,[2,16]),{33:[1,151]},{33:[2,81]},{33:[2,37]},e(xr,[2,109]),e(T,[2,17])],defaultActions:{4:[2,1],62:[2,46],63:[2,47],72:[2,61],74:[2,20],78:[2,63],90:[2,87],100:[2,91],104:[2,18],108:[2,95],118:[2,59],121:[2,99],125:[2,103],127:[2,19],128:[2,83],133:[2,69],136:[2,75],148:[2,81],149:[2,37]},parseError:function(b,S){if(S.recoverable)this.trace(b);else{var y=new Error(b);throw y.hash=S,y}},parse:function(b){var S=this,y=[0],m=[],w=[null],l=[],bt=this.table,u="",Z=0,_t=0,Nr=0,Bs=2,Ar=1,Is=l.slice.call(arguments,1),x=Object.create(this.lexer),ot={yy:{}};for(var Ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ne)&&(ot.yy[Ne]=this.yy[Ne]);x.setInput(b,ot.yy),ot.yy.lexer=x,ot.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Ae=x.yylloc;l.push(Ae);var Rs=x.options&&x.options.ranges;typeof ot.yy.parseError=="function"?this.parseError=ot.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ti(Y){y.length=y.length-2*Y,w.length=w.length-Y,l.length=l.length-Y}for(var qs=function(){var Y;return Y=x.lex()||Ar,typeof Y!="number"&&(Y=S.symbols_[Y]||Y),Y},_,Pe,lt,q,xi,Ce,yt={},jt,j,Pr,Qt;;){if(lt=y[y.length-1],this.defaultActions[lt]?q=this.defaultActions[lt]:((_===null||typeof _>"u")&&(_=qs()),q=bt[lt]&&bt[lt][_]),typeof q>"u"||!q.length||!q[0]){var Le="";Qt=[];for(jt in bt[lt])this.terminals_[jt]&&jt>Bs&&Qt.push("'"+this.terminals_[jt]+"'");x.showPosition?Le="Parse error on line "+(Z+1)+`:
`+x.showPosition()+`
Expecting `+Qt.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Le="Parse error on line "+(Z+1)+": Unexpected "+(_==Ar?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Le,{text:x.match,token:this.terminals_[_]||_,line:x.yylineno,loc:Ae,expected:Qt})}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+lt+", token: "+_);switch(q[0]){case 1:y.push(_),w.push(x.yytext),l.push(x.yylloc),y.push(q[1]),_=null,Pe?(_=Pe,Pe=null):(_t=x.yyleng,u=x.yytext,Z=x.yylineno,Ae=x.yylloc,Nr>0&&Nr--);break;case 2:if(j=this.productions_[q[1]][1],yt.$=w[w.length-j],yt._$={first_line:l[l.length-(j||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(j||1)].first_column,last_column:l[l.length-1].last_column},Rs&&(yt._$.range=[l[l.length-(j||1)].range[0],l[l.length-1].range[1]]),Ce=this.performAction.apply(yt,[u,_t,Z,ot.yy,q[1],w,l].concat(Is)),typeof Ce<"u")return Ce;j&&(y=y.slice(0,-1*j*2),w=w.slice(0,-1*j),l=l.slice(0,-1*j)),y.push(this.productions_[q[1]][0]),w.push(yt.$),l.push(yt._$),Pr=bt[y[y.length-2]][y[y.length-1]],y.push(Pr);break;case 3:return!0}}return!0}},Os=(function(){var X={EOF:1,parseError:function(S,y){if(this.yy.parser)this.yy.parser.parseError(S,y);else throw new Error(S)},setInput:function(b,S){return this.yy=S||this.yy||{},this._input=b,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 b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var S=b.match(/(?:\r\n?|\n).*/g);return S?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},unput:function(b){var S=b.length,y=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-S),this.offset-=S;var m=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),y.length-1&&(this.yylineno-=y.length-1);var w=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:y?(y.length===m.length?this.yylloc.first_column:0)+m[m.length-y.length].length-y[0].length:this.yylloc.first_column-S},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-S]),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(b){this.unput(this.match.slice(b))},pastInput:function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var b=this.pastInput(),S=new Array(b.length+1).join("-");return b+this.upcomingInput()+`
`+S+"^"},test_match:function(b,S){var y,m,w;if(this.options.backtrack_lexer&&(w={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&&(w.yylloc.range=this.yylloc.range.slice(0))),m=b[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,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(b[0].length),this.matched+=b[0],y=this.performAction.call(this,this.yy,this,S,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),y)return y;if(this._backtrack){for(var l in w)this[l]=w[l];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var b,S,y,m;this._more||(this.yytext="",this.match="");for(var w=this._currentRules(),l=0;l<w.length;l++)if(y=this._input.match(this.rules[w[l]]),y&&(!S||y[0].length>S[0].length)){if(S=y,m=l,this.options.backtrack_lexer){if(b=this.test_match(y,w[l]),b!==!1)return b;if(this._backtrack){S=!1;continue}else return!1}else if(!this.options.flex)break}return S?(b=this.test_match(S,w[m]),b!==!1?b:!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 S=this.next();return S||this.lex()},begin:function(S){this.conditionStack.push(S)},popState:function(){var S=this.conditionStack.length-1;return S>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(S){return S=this.conditionStack.length-1-Math.abs(S||0),S>=0?this.conditionStack[S]:"INITIAL"},pushState:function(S){this.begin(S)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(S,y,m,w){function l(u,Z){return y.yytext=y.yytext.substring(u,y.yyleng-Z+u)}var bt=w;switch(m){case 0:if(y.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):y.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),y.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:(l(5,9),18);case 5:return 15;case 6:return this.popState(),14;break;case 7:return 67;case 8:return 68;case 9:if(S.syntax.square==="string")this.unput(y.yytext),this.begin("escl");else return 75;break;case 10:return 77;case 11:return 19;case 12:return this.popState(),this.begin("raw"),23;break;case 13:return 57;case 14:return 61;case 15:return 29;case 16:return 47;case 17:return this.popState(),44;break;case 18:return this.popState(),44;break;case 19:return 34;case 20:return 39;case 21:return 53;case 22:return 48;case 23:this.unput(y.yytext),this.popState(),this.begin("com");break;case 24:return this.popState(),14;break;case 25:return 48;case 26:return 74;case 27:return 73;case 28:return 73;case 29:return 93;case 30:return 92;case 31:break;case 32:return this.popState(),56;break;case 33:return this.popState(),33;break;case 34:return y.yytext=l(1,2).replace(/\\"/g,'"'),84;break;case 35:return y.yytext=l(1,2).replace(/\\'/g,"'"),84;break;case 36:return 89;case 37:return 86;case 38:return 86;case 39:return 87;case 40:return 88;case 41:return 85;case 42:return 79;case 43:return 81;case 44:return 73;case 45:return y.yytext=y.yytext.replace(/\\([\\\]])/g,"$1"),this.popState(),73;break;case 46:return"INVALID";case 47: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,46,47],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},escl:{rules:[45],inclusive:!1},INITIAL:{rules:[0,1,47],inclusive:!0}}};return X})();Te.lexer=Os;function xe(){this.yy={}}return xe.prototype=Te,Te.Parser=xe,new xe})(),Ht=_n;var Ge=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Ke(e,t){var r=t&&t.loc,n,s,i,a;r&&(n=r.start.line,s=r.end.line,i=r.start.column,a=r.end.column,e+=" - "+n+":"+i);for(var o=Error.prototype.constructor.call(this,e),c=0;c<Ge.length;c++)this[Ge[c]]=o[Ge[c]];Error.captureStackTrace&&Error.captureStackTrace(this,Ke);try{r&&(this.lineNumber=n,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:i,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=i,this.endColumn=a))}catch{}}Ke.prototype=new Error;var tt=Ke;function pe(){this.parents=[]}pe.prototype={constructor:pe,mutating:!1,acceptKey:function(e,t){var r=this.accept(e[t]);if(this.mutating){if(r&&!pe.prototype[r.type])throw new tt('Unexpected node type "'+r.type+'" found when accepting '+t+" on "+e.type);e[t]=r}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new tt(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,r=e.length;t<r;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,r--)},accept:function(e){if(e){if(!this[e.type])throw new tt("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||t)return t;if(t!==!1)return e}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:fe,Decorator:fe,BlockStatement:os,DecoratorBlock:os,PartialStatement:ls,PartialBlockStatement:function(e){ls.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:fe,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}};function fe(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function os(e){fe.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function ls(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}var cs=pe;function G(e){e===void 0&&(e={}),this.options=e}G.prototype=new cs;G.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,s=0,i=n.length;s<i;s++){var a=n[s],o=this.accept(a);if(o){var c=We(n,s,r),h=je(n,s,r),f=o.openStandalone&&c,p=o.closeStandalone&&h,g=o.inlineStandalone&&c&&h;o.close&&pt(n,s,!0),o.open&&et(n,s,!0),t&&g&&(pt(n,s),et(n,s)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[s-1].original)[1])),t&&f&&(pt((a.program||a.inverse).body),et(n,s)),t&&p&&(pt(n,s),et((a.inverse||a.program).body))}}return e};G.prototype.BlockStatement=G.prototype.DecoratorBlock=G.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.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 i={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:je(t.body),closeStandalone:We((n||t).body)};if(e.openStrip.close&&pt(t.body,null,!0),r){var a=e.inverseStrip;a.open&&et(t.body,null,!0),a.close&&pt(n.body,null,!0),e.closeStrip.open&&et(s.body,null,!0),!this.options.ignoreStandalone&&We(t.body)&&je(n.body)&&(et(t.body),pt(n.body))}else e.closeStrip.open&&et(t.body,null,!0);return i};G.prototype.Decorator=G.prototype.MustacheStatement=function(e){return e.strip};G.prototype.PartialStatement=G.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function We(e,t,r){t===void 0&&(t=e.length);var n=e[t-1],s=e[t-2];if(!n)return r;if(n.type==="ContentStatement")return(s||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}function je(e,t,r){t===void 0&&(t=-1);var n=e[t+1],s=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(s||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}function pt(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var s=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==s}}function et(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var s=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==s,n.leftStripped}}var us=G;var Ut={};_e(Ut,{SourceLocation:()=>Je,id:()=>On,prepareBlock:()=>Fn,prepareMustache:()=>qn,preparePartialBlock:()=>Un,preparePath:()=>Rn,prepareProgram:()=>Hn,prepareRawBlock:()=>Vn,stripComment:()=>In,stripFlags:()=>Bn});var Dn=function(e,t,r){if(r||arguments.length===2)for(var n=0,s=t.length,i;n<s;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))};function Qe(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new tt(e.path.original+" doesn't match "+t,r)}}function Je(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}function On(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function Bn(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function In(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function Rn(e,t,r,n){n=this.locInfo(n);var s;e?s="@":t?s=t.original+".":s="";for(var i=[],a=0,o=0,c=r.length;o<c;o++){var h=r[o].part,f=r[o].original!==h,p=r[o].separator,g=p===".#"?"#":"";if(s+=(p||"")+h,!f&&(h===".."||h==="."||h==="this")){if(i.length>0)throw new tt("Invalid path: "+s,{loc:n});h===".."&&a++}else i.push("".concat(g).concat(h))}var E=t||i.shift();return{type:"PathExpression",this:s.startsWith("this."),data:e,depth:a,head:E,tail:i,parts:E?Dn([E],i,!0):i,original:s,loc:n}}function qn(e,t,r,n,s,i){var a=n.charAt(3)||n.charAt(2),o=a!=="{"&&a!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:o,strip:s,loc:this.locInfo(i)}}function Vn(e,t,r,n){Qe(e,r),n=this.locInfo(n);var s={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:s,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}function Fn(e,t,r,n,s,i){n&&n.path&&Qe(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var o,c;if(r){if(a)throw new tt("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,o=r.program}return s&&(s=o,o=t,t=s),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:o,openStrip:e.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(i)}}function Hn(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function Un(e,t,r,n){return Qe(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}var hs={};for(me in Ut)Object.prototype.hasOwnProperty.call(Ut,me)&&(hs[me]=Ut[me]);var me;function de(e,t){var r,n,s;if(e.type==="Program")return e;Ht.yy=hs,Ht.yy.locInfo=function(o){return new Je(t&&t.srcName,o)};var i;typeof((r=t?.syntax)===null||r===void 0?void 0:r.square)=="function"?i=t.syntax.square:((n=t?.syntax)===null||n===void 0?void 0:n.square)==="node"?i=Mn:i="string";var a;return typeof((s=t?.syntax)===null||s===void 0?void 0:s.hash)=="function"?a=t.syntax.hash:a=zn,Ht.yy.syntax={square:i,hash:a},Ht.parse(e)}function Mn(e,t){return{type:"ArrayLiteral",items:e,loc:t}}function zn(e,t){return{type:"HashLiteral",pairs:e.pairs,loc:t}}function $e(e,t){var r=de(e,t),n=new us(t);return n.accept(r)}var fs={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",ci