gant-core 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ "use strict";var t=Object.defineProperty,e=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})},r=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},n=(t,e,n)=>(r(t,e,"read from private field"),n?n.call(t):e.get(t)),a={};e(a,{languages:()=>$t,parsers:()=>Vt,printers:()=>un});var i=(t,e,r,n)=>{if(!t||null!=e)return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},s="string",o="array",l="cursor",c="indent",u="align",h="trim",p="group",d="fill",m="if-break",f="indent-if-break",g="line-suffix",y="line-suffix-boundary",b="line",v="label",S="break-parent",w=new Set([l,c,u,h,p,d,m,f,g,y,b,v,S]);var k=function(t){if("string"==typeof t)return s;if(Array.isArray(t))return o;if(!t)return;let{type:e}=t;return w.has(e)?e:void 0};function E(t){let e=null===t?"null":typeof t;if("string"!==e&&"object"!==e)return`Unexpected doc '${e}', \nExpected it to be 'string' or 'object'.`;if(k(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if("[object Object]"!==r)return`Unexpected doc '${r}'.`;let n=(t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t))([...w].map((t=>`'${t}'`)));return`Unexpected doc.type '${t.type}'.\nExpected it to be ${n}.`}var N=class extends Error{name="InvalidDocError";constructor(t){super(E(t)),this.doc=t}},T=()=>{};function P(t){return{type:c,contents:t}}function A(t,e={}){return T(e.expandedStates),{type:p,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function x(t){return function(t,e){return{type:u,contents:e,n:t}}(-1,t)}function D(t){return{type:d,parts:t}}function L(t,e="",r={}){return{type:m,breakContents:t,flatContents:e,groupId:r.groupId}}var C={type:S},_={type:b},q={type:b,soft:!0},I=[{type:b,hard:!0},C],B=[{type:b,hard:!0,literal:!0},C];function O(t,e){let r=[];for(let n=0;n<e.length;n++)0!==n&&r.push(t),r.push(e[n]);return r}var H=(t,e,r)=>{if(!t||null!=e)return Array.isArray(e)||"string"==typeof e?e[r<0?e.length+r:r]:e.at(r)};function $(t,e){if("string"==typeof t)return e(t);let r=new Map;return n(t);function n(t){if(r.has(t))return r.get(t);let a=function(t){switch(k(t)){case o:return e(t.map(n));case d:return e({...t,parts:t.parts.map(n)});case m:return e({...t,breakContents:n(t.breakContents),flatContents:n(t.flatContents)});case p:{let{expandedStates:r,contents:a}=t;return r?(r=r.map(n),a=r[0]):a=n(a),e({...t,contents:a,expandedStates:r})}case u:case c:case f:case v:case g:return e({...t,contents:n(t.contents)});case s:case l:case h:case y:case b:case S:return e(t);default:throw new N(t)}}(t);return r.set(t,a),a}}var V="'";var R=function(t,e){let r=!0===e||e===V?V:'"',n=r===V?'"':V,a=0,i=0;for(let e of t)e===r?a++:e===n&&i++;return a>i?n:r};var U;U=new WeakMap;var F=class{constructor(t){((t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)})(this,U,void 0),((t,e,n,a)=>{r(t,e,"write to private field"),a?a.call(t,n):e.set(t,n)})(this,U,new Set(t))}getLeadingWhitespaceCount(t){let e=n(this,U),r=0;for(let n=0;n<t.length&&e.has(t.charAt(n));n++)r++;return r}getTrailingWhitespaceCount(t){let e=n(this,U),r=0;for(let n=t.length-1;n>=0&&e.has(t.charAt(n));n--)r++;return r}getLeadingWhitespace(t){let e=this.getLeadingWhitespaceCount(t);return t.slice(0,e)}getTrailingWhitespace(t){let e=this.getTrailingWhitespaceCount(t);return t.slice(t.length-e)}hasLeadingWhitespace(t){return n(this,U).has(t.charAt(0))}hasTrailingWhitespace(t){return n(this,U).has(H(!1,t,-1))}trimStart(t){let e=this.getLeadingWhitespaceCount(t);return t.slice(e)}trimEnd(t){let e=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-e)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,e=!1){let r=`[${function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}([...n(this,U)].join(""))}]+`,a=new RegExp(e?`(${r})`:r);return t.split(a)}hasWhitespaceCharacter(t){let e=n(this,U);return Array.prototype.some.call(t,(t=>e.has(t)))}hasNonWhitespaceCharacter(t){let e=n(this,U);return Array.prototype.some.call(t,(t=>!e.has(t)))}isWhitespaceOnly(t){let e=n(this,U);return Array.prototype.every.call(t,(t=>e.has(t)))}},M=new F(["\t","\n","\f","\r"," "]);var z=function(t){return Array.isArray(t)&&t.length>0},j=class extends Error{name="UnexpectedNodeError";constructor(t,e,r="type"){super(`Unexpected ${e} node ${r}: ${JSON.stringify(t[r])}.`),this.node=t}};function G(t,e){if("TextNode"===t.type){let r=t.chars.trim();if(!r)return null;e.chars=M.split(r).join(" ")}"ElementNode"===t.type&&(delete e.startTag,delete e.parts,delete e.endTag,delete e.nameNode),("Block"===t.type||"ElementNode"===t.type)&&delete e.blockParamNodes,"AttrNode"===t.type&&"class"===t.name.toLowerCase()&&delete e.value}G.ignoredProperties=new Set(["loc","selfClosing"]);var W=G,K=null;function Q(t){if(null!==K&&(K.property,1)){let t=K;return K=Q.prototype=null,t}return K=Q.prototype=t??Object.create(null),new Q}for(let t=0;t<=10;t++)Q();var J=function(t,e="type"){return function(t){Q(t)}(t),function(r){let n=r[e],a=t[n];if(!Array.isArray(a))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return a}},Y=J({Program:["body"],Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],PartialStatement:["name","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],PathHead:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"],NamedBlock:["attributes","modifiers","children","comments"],SimpleElement:["attributes","modifiers","children","comments"],Component:["head","attributes","modifiers","children","comments"]});function X(t){return t.loc.start.offset}function Z(t){return t.loc.end.offset}var tt=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function et(t){return t.toUpperCase()===t}function rt(t){return!0===t.selfClosing||function(t){return tt.has(t.toLowerCase())&&!et(t[0])}(t.tag)||function(t){return"ElementNode"===t.type&&"string"==typeof t.tag&&!t.tag.startsWith(":")&&(et(t.tag[0])||t.tag.includes("."))}(t)&&t.children.every((t=>nt(t)))}function nt(t){return"TextNode"===t.type&&!/\S/.test(t.chars)}function at(t){return"MustacheCommentStatement"===(null==t?void 0:t.type)&&"string"==typeof t.value&&"prettier-ignore"===t.value.trim()}var it=2;function st(t,e){return X(t)-X(e)}function ot(t,e,r){let{node:n}=t,a=n.children.every((t=>nt(t)));return"ignore"===e.htmlWhitespaceSensitivity&&a?"":t.map((({isFirst:t})=>{let n=r();return t&&"ignore"===e.htmlWhitespaceSensitivity?[q,n]:n}),"children")}function lt(t){return rt(t)?L([q,"/>"],[" />",q]):L([q,">"],">")}function ct(t){var e;return[!1===t.escaped?"{{{":"{{",null!=(e=t.strip)&&e.open?"~":""]}function ut(t){var e;let r=!1===t.escaped?"}}}":"}}";return[null!=(e=t.strip)&&e.close?"~":"",r]}function ht(t){return[ct(t),t.openStrip.open?"~":"","#"]}function pt(t){let e=ut(t);return[t.openStrip.close?"~":"",e]}function dt(t){return[ct(t),t.closeStrip.open?"~":"","/"]}function mt(t){let e=ut(t);return[t.closeStrip.close?"~":"",e]}function ft(t){return[ct(t),t.inverseStrip.open?"~":""]}function gt(t){let e=ut(t);return[t.inverseStrip.close?"~":"",e]}function yt(t,e){let{node:r}=t,n=[],a=Ct(t,e);return a&&n.push(A(a)),z(r.program.blockParams)&&n.push(_t(r.program)),A([ht(r),Lt(t,e),n.length>0?P([_,O(_,n)]):"",q,pt(r)])}function bt(t,e){return["ignore"===e.htmlWhitespaceSensitivity?I:"",ft(t),"else",gt(t)]}function vt(t,e){let{node:r,grandparent:n}=t;return A([ft(n),["else"," ",n.inverse.body[0].path.parts[0]],P([_,A(Ct(t,e)),...z(r.program.blockParams)?[_,_t(r.program)]:[]]),q,gt(n)])}function St(t,e,r){let{node:n}=t;return"ignore"===r.htmlWhitespaceSensitivity?[wt(n)?q:I,dt(n),e("path"),mt(n)]:[dt(n),e("path"),mt(n)]}function wt(t){return"BlockStatement"===t.type&&t.program.body.every((t=>nt(t)))}function kt(t){return"BlockStatement"===t.type&&t.inverse}function Et(t,e,r){let{node:n}=t;if(wt(n))return"";let a=e("program");return"ignore"===r.htmlWhitespaceSensitivity?P([I,a]):P(a)}function Nt(t,e,r){let{node:n}=t,a=e("inverse"),i="ignore"===r.htmlWhitespaceSensitivity?[I,a]:a;return function(t){return kt(t)&&1===t.inverse.body.length&&"BlockStatement"===t.inverse.body[0].type&&t.inverse.body[0].path.parts[0]===t.path.parts[0]}(n)?i:kt(n)?[bt(n,r),P(i)]:""}function Tt(t){return O(_,M.split(t))}function Pt(t){return(t="string"==typeof t?t:"").split("\n").length-1}function At(t=0){return Array.from({length:Math.min(t,it)}).fill(I)}function xt(t,e){let r=Lt(t,e),n=Ct(t,e);return n?P([r,_,A(n)]):r}function Dt(t,e){let r=Lt(t,e),n=Ct(t,e);return n?[P([r,_,n]),q]:r}function Lt(t,e){return e("path")}function Ct(t,e){var r;let{node:n}=t,a=[];return n.params.length>0&&a.push(...t.map(e,"params")),(null==(r=n.hash)?void 0:r.pairs.length)>0&&a.push(e("hash")),0===a.length?"":O(_,a)}function _t(t){return["as |",t.blockParams.join(" "),"|"]}var qt=new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"),It=new Set(["true","false","null","undefined"]),Bt=(t,e)=>0!==e&&It.has(t)||/\s/.test(t)||/^\d/.test(t)||Array.prototype.some.call(t,(t=>qt.has(t)));var Ot={print:function(t,e,r){var n,a,s,o,l,c,u,h,p;let{node:d}=t;switch(d.type){case"Block":case"Program":case"Template":return A(t.map(r,"body"));case"ElementNode":{let a=A(function(t,e){let{node:r}=t,n=["attributes","modifiers","comments"].filter((t=>z(r[t]))),a=n.flatMap((t=>r[t])).sort(st);for(let r of n)t.each((({node:t})=>{let r=a.indexOf(t);a.splice(r,1,[_,e()])}),r);return z(r.blockParams)&&a.push(_,_t(r)),["<",r.tag,P(a),lt(r)]}(t,r)),i="ignore"===e.htmlWhitespaceSensitivity&&"ElementNode"===(null==(n=t.next)?void 0:n.type)?q:"";if(rt(d))return[a,i];let s=["</",d.tag,">"];return 0===d.children.length?[a,P(s),i]:"ignore"===e.htmlWhitespaceSensitivity?[a,P(ot(t,e,r)),I,P(s),i]:[a,P(A(ot(t,e,r))),P(s),i]}case"BlockStatement":return function(t){var e;let{grandparent:r,node:n}=t;return 1===(null==(e=null==r?void 0:r.inverse)?void 0:e.body.length)&&r.inverse.body[0]===n&&r.inverse.body[0].path.parts[0]===r.path.parts[0]}(t)?[vt(t,r),Et(t,r,e),Nt(t,r,e)]:[yt(t,r),A([Et(t,r,e),Nt(t,r,e),St(t,r,e)])];case"ElementModifierStatement":return A(["{{",Dt(t,r),"}}"]);case"MustacheStatement":return A([ct(d),Dt(t,r),ut(d)]);case"SubExpression":return A(["(",xt(t,r),q,")"]);case"AttrNode":{let{name:t,value:n}=d,a="TextNode"===n.type;if(a&&""===n.chars&&X(n)===Z(n))return t;let i=a?R(n.chars,e.singleQuote):"ConcatStatement"===n.type?R(n.parts.map((t=>"TextNode"===t.type?t.chars:"")).join(""),e.singleQuote):"",s=r("value");return[t,"=",i,"class"===t&&i?A(P(s)):s,i]}case"ConcatStatement":return t.map(r,"parts");case"Hash":return O(_,t.map(r,"pairs"));case"HashPair":return[d.key,"=",r("value")];case"TextNode":{let r=i(!1,d.chars,"{{","\\{{"),n=function(t){for(let e=0;e<2;e++){let r=t.getParentNode(e);if("AttrNode"===(null==r?void 0:r.type))return r.name.toLowerCase()}}(t);if(n){if("class"===n){let e=r.trim().split(/\s+/).join(" "),n=!1,i=!1;return"ConcatStatement"===t.parent.type&&("MustacheStatement"===(null==(a=t.previous)?void 0:a.type)&&/^\s/.test(r)&&(n=!0),"MustacheStatement"===(null==(s=t.next)?void 0:s.type)&&/\s$/.test(r)&&""!==e&&(i=!0)),[n?_:"",e,i?_:""]}return function(t,e=B){return $(t,(t=>"string"==typeof t?O(e,t.split("\n")):t))}(r)}let m=M.isWhitespaceOnly(r),{isFirst:f,isLast:g}=t;if("ignore"!==e.htmlWhitespaceSensitivity){let e=g&&"Template"===t.parent.type,n=f&&"Template"===t.parent.type;if(m){if(n||e)return"";let t=[_],a=Pt(r);return a&&(t=At(a)),g&&(t=t.map((t=>x(t)))),t}let a=M.getLeadingWhitespace(r),i=[];if(a){i=[_];let t=Pt(a);t&&(i=At(t)),r=r.slice(a.length)}let s=M.getTrailingWhitespace(r),o=[];if(s){if(!e){o=[_];let t=Pt(s);t&&(o=At(t)),g&&(o=o.map((t=>x(t))))}r=r.slice(0,-s.length)}return[...i,D(Tt(r)),...o]}let y=Pt(r),b=function(t){t="string"==typeof t?t:"";let e=(t.match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"";return Pt(e)}(r),v=function(t){t="string"==typeof t?t:"";let e=(t.match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"";return Pt(e)}(r);if((f||g)&&m&&("Block"===t.parent.type||"ElementNode"===t.parent.type||"Template"===t.parent.type))return"";m&&y?(b=Math.min(y,it),v=0):(("BlockStatement"===(null==(o=t.next)?void 0:o.type)||"ElementNode"===(null==(l=t.next)?void 0:l.type))&&(v=Math.max(v,1)),("BlockStatement"===(null==(c=t.previous)?void 0:c.type)||"ElementNode"===(null==(u=t.previous)?void 0:u.type))&&(b=Math.max(b,1)));let S="",w="";return 0===v&&"MustacheStatement"===(null==(h=t.next)?void 0:h.type)&&(w=" "),0===b&&"MustacheStatement"===(null==(p=t.previous)?void 0:p.type)&&(S=" "),f&&(b=0,S=""),g&&(v=0,w=""),M.hasLeadingWhitespace(r)&&(r=S+M.trimStart(r)),M.hasTrailingWhitespace(r)&&(r=M.trimEnd(r)+w),[...At(b),D(Tt(r)),...At(v)]}case"MustacheCommentStatement":{let t=X(d),r=Z(d),n="~"===e.originalText.charAt(t+2),a="~"===e.originalText.charAt(r-3),i=d.value.includes("}}")?"--":"";return["{{",n?"~":"","!",i,d.value,i,a?"~":"","}}"]}case"PathExpression":return function(t){if(t.data||1===t.parts.length&&t.original.includes("/"))return t.original;let{parts:e}=t;return t.this&&(e=["this",...e]),e.map(((t,e)=>Bt(t,e)?`[${t}]`:t)).join(".")}(d);case"BooleanLiteral":case"NumberLiteral":return String(d.value);case"CommentStatement":return["\x3c!--",d.value,"--\x3e"];case"StringLiteral":return function(t,e){let{node:{value:r}}=t,n=R(r,function(t){let{ancestors:e}=t,r=e.findIndex((t=>"SubExpression"!==t.type));return-1!==r&&"ConcatStatement"===e[r+1].type&&"AttrNode"===e[r+2].type}(t)?!e.singleQuote:e.singleQuote);return[n,i(!1,r,n,`\\${n}`),n]}(t,e);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new j(d,"Handlebars")}},massageAstNode:W,hasPrettierIgnore:function(t){return at(t.node)||t.isInArray&&("children"===t.key||"body"===t.key||"parts"===t.key)&&at(t.siblings[t.index-2])},getVisitorKeys:Y},Ht=Ot,$t=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}],Vt={};function Rt(t,e){if(!t)throw new Error(e||"assertion failure")}function Ut(t){if(null==t)throw new Error("Expected value to be present");return t}function Ft(t,e){if(null==t)throw new Error(e);return t}function Mt(t){return t.length>0}function zt(t,e="unexpected empty list"){if(!Mt(t))throw new Error(e)}function jt(t,e="unexpected empty list"){return zt(t,e),t}function Gt(t){return 0===t.length?void 0:t[t.length-1]}function Wt(t){return 0===t.length?void 0:t[0]}e(Vt,{glimmer:()=>cn});var Kt,Qt=((Kt={})[Kt.MAX_SMI=1073741823]="MAX_SMI",Kt[Kt.MIN_SMI=-1073741824]="MIN_SMI",Kt[Kt.SIGN_BIT=-536870913]="SIGN_BIT",Kt[Kt.MAX_INT=536870911]="MAX_INT",Kt[Kt.MIN_INT=-536870912]="MIN_INT",Kt[Kt.FALSE_HANDLE=0]="FALSE_HANDLE",Kt[Kt.TRUE_HANDLE=1]="TRUE_HANDLE",Kt[Kt.NULL_HANDLE=2]="NULL_HANDLE",Kt[Kt.UNDEFINED_HANDLE=3]="UNDEFINED_HANDLE",Kt[Kt.ENCODED_FALSE_HANDLE=0]="ENCODED_FALSE_HANDLE",Kt[Kt.ENCODED_TRUE_HANDLE=1]="ENCODED_TRUE_HANDLE",Kt[Kt.ENCODED_NULL_HANDLE=2]="ENCODED_NULL_HANDLE",Kt[Kt.ENCODED_UNDEFINED_HANDLE=3]="ENCODED_UNDEFINED_HANDLE",Kt);function Jt(t){return(t|=0)<0?function(t){return t&Qt.SIGN_BIT}(t):function(t){return~t}(t)}function Yt(t){return(t|=0)>Qt.SIGN_BIT?function(t){return~t}(t):function(t){return t|~Qt.SIGN_BIT}(t)}[1,-1].forEach((t=>Yt(Jt(t))));var Xt=Object.assign,Zt=console;var te=function(){var t=function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r},e=[2,44],r=[1,20],n=[5,14,15,19,29,34,39,44,47,48,52,56,60],a=[1,35],i=[1,38],s=[1,30],o=[1,31],l=[1,32],c=[1,33],u=[1,34],h=[1,37],p=[14,15,19,29,34,39,44,47,48,52,56,60],d=[14,15,19,29,34,44,47,48,52,56,60],m=[15,18],f=[14,15,19,29,34,47,48,52,56,60],g=[33,64,71,79,80,81,82,83,84],y=[23,33,55,64,67,71,74,79,80,81,82,83,84],b=[1,51],v=[23,33,55,64,67,71,74,79,80,81,82,83,84,86],S=[2,43],w=[55,64,71,79,80,81,82,83,84],k=[1,58],E=[1,59],N=[1,66],T=[33,64,71,74,79,80,81,82,83,84],P=[23,64,71,79,80,81,82,83,84],A=[1,76],x=[64,67,71,79,80,81,82,83,84],D=[33,74],L=[23,33,55,67,71,74],C=[1,106],_=[1,118],q=[71,76],I={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,expr:49,mustache_repetition0:50,mustache_option0:51,OPEN_UNESCAPED:52,mustache_repetition1:53,mustache_option1:54,CLOSE_UNESCAPED:55,OPEN_PARTIAL:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,sexpr:63,OPEN_SEXPR:64,sexpr_repetition0:65,sexpr_option0:66,CLOSE_SEXPR:67,hash:68,hash_repetition_plus0:69,hashSegment:70,ID:71,EQUALS:72,blockParams:73,OPEN_BLOCK_PARAMS:74,blockParams_repetition_plus0:75,CLOSE_BLOCK_PARAMS:76,path:77,dataName:78,STRING:79,NUMBER:80,BOOLEAN:81,UNDEFINED:82,NULL:83,DATA:84,pathSegments:85,SEP:86,$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",52:"OPEN_UNESCAPED",55:"CLOSE_UNESCAPED",56:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",64:"OPEN_SEXPR",67:"CLOSE_SEXPR",71:"ID",72:"EQUALS",74:"OPEN_BLOCK_PARAMS",76:"CLOSE_BLOCK_PARAMS",79:"STRING",80:"NUMBER",81:"BOOLEAN",82:"UNDEFINED",83:"NULL",84:"DATA",86:"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],[49,1],[49,1],[63,5],[68,1],[70,3],[73,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[78,2],[77,1],[85,3],[85,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],[50,0],[50,2],[51,0],[51,1],[53,0],[53,2],[54,0],[54,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[65,0],[65,2],[66,0],[66,1],[69,1],[69,2],[75,1],[75,2]],performAction:function(t,e,r,n,a,i,s){var o=i.length-1;switch(a){case 1:return i[o-1];case 2:this.$=n.prepareProgram(i[o]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:this.$=i[o];break;case 9:this.$={type:"CommentStatement",value:n.stripComment(i[o]),strip:n.stripFlags(i[o],i[o]),loc:n.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:i[o],value:i[o],loc:n.locInfo(this._$)};break;case 11:this.$=n.prepareRawBlock(i[o-2],i[o-1],i[o],this._$);break;case 12:this.$={path:i[o-3],params:i[o-2],hash:i[o-1]};break;case 13:this.$=n.prepareBlock(i[o-3],i[o-2],i[o-1],i[o],!1,this._$);break;case 14:this.$=n.prepareBlock(i[o-3],i[o-2],i[o-1],i[o],!0,this._$);break;case 15:this.$={open:i[o-5],path:i[o-4],params:i[o-3],hash:i[o-2],blockParams:i[o-1],strip:n.stripFlags(i[o-5],i[o])};break;case 16:case 17:this.$={path:i[o-4],params:i[o-3],hash:i[o-2],blockParams:i[o-1],strip:n.stripFlags(i[o-5],i[o])};break;case 18:this.$={strip:n.stripFlags(i[o-1],i[o-1]),program:i[o]};break;case 19:var l=n.prepareBlock(i[o-2],i[o-1],i[o],i[o],!1,this._$),c=n.prepareProgram([l],i[o-1].loc);c.chained=!0,this.$={strip:i[o-2].strip,program:c,chain:!0};break;case 21:this.$={path:i[o-1],strip:n.stripFlags(i[o-2],i[o])};break;case 22:case 23:this.$=n.prepareMustache(i[o-3],i[o-2],i[o-1],i[o-4],n.stripFlags(i[o-4],i[o]),this._$);break;case 24:this.$={type:"PartialStatement",name:i[o-3],params:i[o-2],hash:i[o-1],indent:"",strip:n.stripFlags(i[o-4],i[o]),loc:n.locInfo(this._$)};break;case 25:this.$=n.preparePartialBlock(i[o-2],i[o-1],i[o],this._$);break;case 26:this.$={path:i[o-3],params:i[o-2],hash:i[o-1],strip:n.stripFlags(i[o-4],i[o])};break;case 29:this.$={type:"SubExpression",path:i[o-3],params:i[o-2],hash:i[o-1],loc:n.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:i[o],loc:n.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:n.id(i[o-2]),value:i[o],loc:n.locInfo(this._$)};break;case 32:this.$=n.id(i[o-1]);break;case 35:this.$={type:"StringLiteral",value:i[o],original:i[o],loc:n.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(i[o]),original:Number(i[o]),loc:n.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===i[o],original:"true"===i[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 40:this.$=n.preparePath(!0,i[o],this._$);break;case 41:this.$=n.preparePath(!1,i[o],this._$);break;case 42:i[o-2].push({part:n.id(i[o]),original:i[o],separator:i[o-1]}),this.$=i[o-2];break;case 43:this.$=[{part:n.id(i[o]),original:i[o]}];break;case 44:case 46:case 48:case 56:case 62:case 68:case 76:case 80:case 84:case 88:case 92:this.$=[];break;case 45:case 47:case 49:case 57:case 63:case 69:case 77:case 81:case 85:case 89:case 93:case 97:case 99:i[o-1].push(i[o]);break;case 96:case 98:this.$=[i[o]]}},table:[t([5,14,15,19,29,34,48,52,56,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],52:[1,14],56:[1,18],60:[1,24]}),{1:[2,1]},t(n,[2,45]),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:26,49:25,63:27,64:a,71:i,77:28,78:29,79:s,80:o,81:l,82:c,83:u,84:h,85:36},{20:26,49:39,63:27,64:a,71:i,77:28,78:29,79:s,80:o,81:l,82:c,83:u,84:h,85:36},t(p,e,{6:3,4:40}),t(d,e,{6:3,4:41}),t(m,[2,46],{17:42}),{20:26,49:43,63:27,64:a,71:i,77:28,78:29,79:s,80:o,81:l,82:c,83:u,84:h,85:36},t(f,e,{6:3,4:44}),t([5,14,15,18,19,29,34,39,44,47,48,52,56,60],[2,10]),{20:45,71:i,77:28,78:29,79:s,80:o,81:l,82:c,83:u,84:h,85:36},{20:46,71:i,77:28,78:29,79:s,80:o,81:l,82:c,83:u,84:h,85:36},{20:47,71:i,77:28,78:29,79:s,80:o,81:l,82:c,83:u,84:h,85:36},{20:26,49:48,63:27,64:a,71:i,77:28,78:29,79:s,80:o,81:l,82:c,83:u,84:h,85:36},t(g,[2,76],{50:49}),t(y,[2,27]),t(y,[2,28]),t(y,[2,33]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),t(y,[2,38]),t(y,[2,39]),{20:26,49:50,63:27,64:a,71:i,77:28,78:29,79:s,80:o,81:l,82:c,83:u,84:h,85:36},t(y,[2,41],{86:b}),{71:i,85:52},t(v,S),t(w,[2,80],{53:53}),{25:54,38:56,39:k,43:57,44:E,45:55,47:[2,52]},{28:60,43:61,44:E,47:[2,54]},{13:63,15:r,18:[1,62]},t(g,[2,84],{57:64}),{26:65,47:N},t(T,[2,56],{30:67}),t(T,[2,62],{35:68}),t(P,[2,48],{21:69}),t(g,[2,88],{61:70}),{20:26,33:[2,78],49:72,51:71,63:27,64:a,68:73,69:74,70:75,71:A,77:28,78:29,79:s,80:o,81:l,82:c,83:u,84:h,85:36},t(x,[2,92],{65:77}),{71:[1,78]},t(y,[2,40],{86:b}),{20:26,49:80,54:79,55:[2,82],63:27,64:a,68:81,69:74,70:75,71:A,77:28,78:29,79:s,80:o,81:l,82:c,83:u,84:h,85:36},{26:82,47:N},{47:[2,53]},t(p,e,{6:3,4:83}),{47:[2,20]},{20:84,71:i,77:28,78:29,79:s,80:o,81:l,82:c,83:u,84:h,85:36},t(f,e,{6:3,4:85}),{26:86,47:N},{47:[2,55]},t(n,[2,11]),t(m,[2,47]),{20:26,33:[2,86],49:88,58:87,63:27,64:a,68:89,69:74,70:75,71:A,77:28,78:29,79:s,80:o,81:l,82:c,83:u,84:h,85:36},t(n,[2,25]),{20:90,71:i,77:28,78:29,79:s,80:o,81:l,82:c,83:u,84:h,85:36},t(D,[2,58],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,31:91,49:92,68:93,64:a,71:A,79:s,80:o,81:l,82:c,83:u,84:h}),t(D,[2,64],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,36:94,49:95,68:96,64:a,71:A,79:s,80:o,81:l,82:c,83:u,84:h}),{20:26,22:97,23:[2,50],49:98,63:27,64:a,68:99,69:74,70:75,71:A,77:28,78:29,79:s,80:o,81:l,82:c,83:u,84:h,85:36},{20:26,33:[2,90],49:101,62:100,63:27,64:a,68:102,69:74,70:75,71:A,77:28,78:29,79:s,80:o,81:l,82:c,83:u,84:h,85:36},{33:[1,103]},t(g,[2,77]),{33:[2,79]},t([23,33,55,67,74],[2,30],{70:104,71:[1,105]}),t(L,[2,96]),t(v,S,{72:C}),{20:26,49:108,63:27,64:a,66:107,67:[2,94],68:109,69:74,70:75,71:A,77:28,78:29,79:s,80:o,81:l,82:c,83:u,84:h,85:36},t(v,[2,42]),{55:[1,110]},t(w,[2,81]),{55:[2,83]},t(n,[2,13]),{38:56,39:k,43:57,44:E,45:112,46:111,47:[2,74]},t(T,[2,68],{40:113}),{47:[2,18]},t(n,[2,14]),{33:[1,114]},t(g,[2,85]),{33:[2,87]},{33:[1,115]},{32:116,33:[2,60],73:117,74:_},t(T,[2,57]),t(D,[2,59]),{33:[2,66],37:119,73:120,74:_},t(T,[2,63]),t(D,[2,65]),{23:[1,121]},t(P,[2,49]),{23:[2,51]},{33:[1,122]},t(g,[2,89]),{33:[2,91]},t(n,[2,22]),t(L,[2,97]),{72:C},{20:26,49:123,63:27,64:a,71:i,77:28,78:29,79:s,80:o,81:l,82:c,83:u,84:h,85:36},{67:[1,124]},t(x,[2,93]),{67:[2,95]},t(n,[2,23]),{47:[2,19]},{47:[2,75]},t(D,[2,70],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,41:125,49:126,68:127,64:a,71:A,79:s,80:o,81:l,82:c,83:u,84:h}),t(n,[2,24]),t(n,[2,21]),{33:[1,128]},{33:[2,61]},{71:[1,130],75:129},{33:[1,131]},{33:[2,67]},t(m,[2,12]),t(f,[2,26]),t(L,[2,31]),t(y,[2,29]),{33:[2,72],42:132,73:133,74:_},t(T,[2,69]),t(D,[2,71]),t(p,[2,15]),{71:[1,135],76:[1,134]},t(q,[2,98]),t(d,[2,16]),{33:[1,136]},{33:[2,73]},{33:[2,32]},t(q,[2,99]),t(p,[2,17])],defaultActions:{4:[2,1],55:[2,53],57:[2,20],61:[2,55],73:[2,79],81:[2,83],85:[2,18],89:[2,87],99:[2,51],102:[2,91],109:[2,95],111:[2,19],112:[2,75],117:[2,61],120:[2,67],133:[2,73],134:[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],a=[],i=this.table,s="",o=0,l=0,c=a.slice.call(arguments,1),u=Object.create(this.lexer),h={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(h.yy[p]=this.yy[p]);u.setInput(t,h.yy),h.yy.lexer=u,h.yy.parser=this,typeof u.yylloc>"u"&&(u.yylloc={});var d=u.yylloc;a.push(d);var m,f=u.options&&u.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var g,y,b,v,S,w,k,E,N,T={};;){if(b=r[r.length-1],this.defaultActions[b]?v=this.defaultActions[b]:((null===g||typeof g>"u")&&(m=void 0,"number"!=typeof(m=u.lex()||1)&&(m=e.symbols_[m]||m),g=m),v=i[b]&&i[b][g]),typeof v>"u"||!v.length||!v[0]){var P="";for(w in N=[],i[b])this.terminals_[w]&&w>2&&N.push("'"+this.terminals_[w]+"'");P=u.showPosition?"Parse error on line "+(o+1)+":\n"+u.showPosition()+"\nExpecting "+N.join(", ")+", got '"+(this.terminals_[g]||g)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==g?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(P,{text:u.match,token:this.terminals_[g]||g,line:u.yylineno,loc:d,expected:N})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+g);switch(v[0]){case 1:r.push(g),n.push(u.yytext),a.push(u.yylloc),r.push(v[1]),g=null,y?(g=y,y=null):(l=u.yyleng,s=u.yytext,o=u.yylineno,d=u.yylloc);break;case 2:if(k=this.productions_[v[1]][1],T.$=n[n.length-k],T._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},f&&(T._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),typeof(S=this.performAction.apply(T,[s,l,o,h.yy,v[1],n,a].concat(c)))<"u")return S;k&&(r=r.slice(0,-1*k*2),n=n.slice(0,-1*k),a=a.slice(0,-1*k)),r.push(this.productions_[v[1]][0]),n.push(T.$),a.push(T._$),E=i[r[r.length-2]][r[r.length-1]],r.push(E);break;case 3:return!0}}return!0}},B={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 a=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=[a[0],a[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,a;if(this.options.backtrack_lexer&&(a={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&&(a.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 i in a)this[i]=a[i];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 a=this._currentRules(),i=0;i<a.length;i++)if((r=this._input.match(this.rules[a[i]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=i,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,a[i])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,a[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(){return this.next()||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 a(t,r){return e.yytext=e.yytext.substring(t,e.yyleng-r+t)}switch(r){case 0:if("\\\\"===e.yytext.slice(-2)?(a(0,1),this.begin("mu")):"\\"===e.yytext.slice(-1)?(a(0,1),this.begin("emu")):this.begin("mu"),e.yytext)return 15;break;case 1:case 5: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:(a(5,9),18);case 6:case 22:return this.popState(),14;case 7:return 64;case 8:return 67;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 56;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 52;case 20:case 23:return 48;case 21:this.unput(e.yytext),this.popState(),this.begin("com");break;case 24:return 72;case 25:case 26:case 41:return 71;case 27:return 86;case 28:break;case 29:return this.popState(),55;case 30:return this.popState(),33;case 31:return e.yytext=a(1,2).replace(/\\"/g,'"'),79;case 32:return e.yytext=a(1,2).replace(/\\'/g,"'"),79;case 33:return 84;case 34:case 35:return 81;case 36:return 82;case 37:return 83;case 38:return 80;case 39:return 74;case 40:return 76;case 42:return e.yytext=e.yytext.replace(/\\([\\\]])/g,"$1"),71;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};function O(){this.yy={}}return I.lexer=B,O.prototype=I,I.Parser=O,new O}(),ee=te,re=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function ne(t,e){var r,n,a,i,s=e&&e.loc;s&&(r=s.start.line,n=s.end.line,a=s.start.column,i=s.end.column,t+=" - "+r+":"+a);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{s&&(this.lineNumber=r,this.endLineNumber=n,Object.defineProperty?(Object.defineProperty(this,"column",{value:a,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:i,enumerable:!0})):(this.column=a,this.endColumn=i))}catch{}}ne.prototype=new Error;var ae=ne;function ie(){this.parents=[]}function se(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function oe(t){se.call(this,t),this.acceptKey(t,"program"),this.acceptKey(t,"inverse")}function le(t){this.acceptRequired(t,"name"),this.acceptArray(t.params),this.acceptKey(t,"hash")}ie.prototype={constructor:ie,mutating:!1,acceptKey:function(t,e){var r=this.accept(t[e]);if(this.mutating){if(r&&!ie.prototype[r.type])throw new ae('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 ae(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 ae("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var e=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||e)return e;if(!1!==e)return t}},Program:function(t){this.acceptArray(t.body)},MustacheStatement:se,Decorator:se,BlockStatement:oe,DecoratorBlock:oe,PartialStatement:le,PartialBlockStatement:function(t){le.call(this,t),this.acceptKey(t,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:se,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")}};var ce=ie;function ue(t){void 0===t&&(t={}),this.options=t}function he(t,e,r){void 0===e&&(e=t.length);var n=t[e-1],a=t[e-2];return n?"ContentStatement"===n.type?(a||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original):void 0:r}function pe(t,e,r){void 0===e&&(e=-1);var n=t[e+1],a=t[e+2];return n?"ContentStatement"===n.type?(a||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original):void 0:r}function de(t,e,r){var n=t[null==e?0:e+1];if(n&&"ContentStatement"===n.type&&(r||!n.rightStripped)){var a=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==a}}function me(t,e,r){var n=t[null==e?t.length-1:e-1];if(n&&"ContentStatement"===n.type&&(r||!n.leftStripped)){var a=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==a,n.leftStripped}}ue.prototype=new ce,ue.prototype.Program=function(t){var e=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=t.body,a=0,i=n.length;a<i;a++){var s=n[a],o=this.accept(s);if(o){var l=he(n,a,r),c=pe(n,a,r),u=o.openStandalone&&l,h=o.closeStandalone&&c,p=o.inlineStandalone&&l&&c;o.close&&de(n,a,!0),o.open&&me(n,a,!0),e&&p&&(de(n,a),me(n,a)&&"PartialStatement"===s.type&&(s.indent=/([ \t]+$)/.exec(n[a-1].original)[1])),e&&u&&(de((s.program||s.inverse).body),me(n,a)),e&&h&&(de(n,a),me((s.inverse||s.program).body))}}return t},ue.prototype.BlockStatement=ue.prototype.DecoratorBlock=ue.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,a=r;if(r&&r.chained)for(n=r.body[0].program;a.chained;)a=a.body[a.body.length-1].program;var i={open:t.openStrip.open,close:t.closeStrip.close,openStandalone:pe(e.body),closeStandalone:he((n||e).body)};if(t.openStrip.close&&de(e.body,null,!0),r){var s=t.inverseStrip;s.open&&me(e.body,null,!0),s.close&&de(n.body,null,!0),t.closeStrip.open&&me(a.body,null,!0),!this.options.ignoreStandalone&&he(e.body)&&pe(n.body)&&(me(e.body),de(n.body))}else t.closeStrip.open&&me(e.body,null,!0);return i},ue.prototype.Decorator=ue.prototype.MustacheStatement=function(t){return t.strip},ue.prototype.PartialStatement=ue.prototype.CommentStatement=function(t){var e=t.strip||{};return{inlineStandalone:!0,open:e.open,close:e.close}};var fe=ue,ge={};function ye(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new ae(t.path.original+" doesn't match "+e,r)}}function be(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}function ve(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}function Se(t,e){return{open:"~"===t.charAt(2),close:"~"===e.charAt(e.length-3)}}function we(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function ke(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",a=[],i=0,s=0,o=e.length;s<o;s++){var l=e[s].part,c=e[s].original!==l;if(n+=(e[s].separator||"")+l,c||".."!==l&&"."!==l&&"this"!==l)a.push(l);else{if(a.length>0)throw new ae("Invalid path: "+n,{loc:r});".."===l&&i++}}return{type:"PathExpression",data:t,depth:i,parts:a,original:n,loc:r}}function Ee(t,e,r,n,a,i){var s=n.charAt(3)||n.charAt(2),o="{"!==s&&"&"!==s;return{type:/\*/.test(n)?"Decorator":"MustacheStatement",path:t,params:e,hash:r,escaped:o,strip:a,loc:this.locInfo(i)}}function Ne(t,e,r,n){ye(t,r);var a={type:"Program",body:e,strip:{},loc:n=this.locInfo(n)};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:a,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}function Te(t,e,r,n,a,i){n&&n.path&&ye(t,n);var s,o,l=/\*/.test(t.open);if(e.blockParams=t.blockParams,r){if(l)throw new ae("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),o=r.strip,s=r.program}return a&&(a=s,s=e,e=a),{type:l?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:s,openStrip:t.strip,inverseStrip:o,closeStrip:n&&n.strip,loc:this.locInfo(i)}}function Pe(t,e){if(!e&&t.length){var r=t[0].loc,n=t[t.length-1].loc;r&&n&&(e={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:t,strip:{},loc:e}}function Ae(t,e,r,n){return ye(t,r),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}e(ge,{SourceLocation:()=>be,id:()=>ve,prepareBlock:()=>Te,prepareMustache:()=>Ee,preparePartialBlock:()=>Ae,preparePath:()=>ke,prepareProgram:()=>Pe,prepareRawBlock:()=>Ne,stripComment:()=>we,stripFlags:()=>Se});var xe,De={};for(xe in ge)Object.prototype.hasOwnProperty.call(ge,xe)&&(De[xe]=ge[xe]);function Le(t,e){return"Program"===t.type?t:(ee.yy=De,ee.yy.locInfo=function(t){return new be(e&&e.srcName,t)},ee.parse(t))}function Ce(t,e){var r=Le(t,e);return new fe(e).accept(r)}var _e={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},qe=/^#[xX]([A-Fa-f0-9]+)$/,Ie=/^#([0-9]+)$/,Be=/^([A-Za-z0-9]+)$/,Oe=function(){function t(t){this.named=t}return t.prototype.parse=function(t){if(t){var e=t.match(qe);if(e)return String.fromCharCode(parseInt(e[1],16));if(e=t.match(Ie))return String.fromCharCode(parseInt(e[1],10));if(e=t.match(Be))return this.named[e[1]]}},t}(),He=/[\t\n\f ]/,$e=/[A-Za-z]/,Ve=/\r\n?/g;function Re(t){return He.test(t)}function Ue(t){return $e.test(t)}var Fe=function(){function t(t,e,r){void 0===r&&(r="precompile"),this.delegate=t,this.entityParser=e,this.mode=r,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var t=this.peek();if("<"!==t||this.isIgnoredEndTag()){if("precompile"===this.mode&&"\n"===t){var e=this.tagNameBuffer.toLowerCase();("pre"===e||"textarea"===e)&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var t=this.peek(),e=this.tagNameBuffer;"<"!==t||this.isIgnoredEndTag()?"&"===t&&"script"!==e&&"style"!==e?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(t)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var t=this.consume();"!"===t?this.transitionTo("markupDeclarationOpen"):"/"===t?this.transitionTo("endTagOpen"):("@"===t||":"===t||Ue(t))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(t))},markupDeclarationOpen:function(){var t=this.consume();"-"===t&&"-"===this.peek()?(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment()):"DOCTYPE"===t.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase()&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())},doctype:function(){Re(this.consume())&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var t=this.consume();Re(t)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(t.toLowerCase()))},doctypeName:function(){var t=this.consume();Re(t)?this.transitionTo("afterDoctypeName"):">"===t?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(t.toLowerCase())},afterDoctypeName:function(){var t=this.consume();if(!Re(t))if(">"===t)this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var e=t.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),r="PUBLIC"===e.toUpperCase(),n="SYSTEM"===e.toUpperCase();(r||n)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),r?this.transitionTo("afterDoctypePublicKeyword"):n&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var t=this.peek();Re(t)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):'"'===t?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):"'"===t?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):">"===t&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var t=this.consume();'"'===t?this.transitionTo("afterDoctypePublicIdentifier"):">"===t?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(t)},doctypePublicIdentifierSingleQuoted:function(){var t=this.consume();"'"===t?this.transitionTo("afterDoctypePublicIdentifier"):">"===t?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(t)},afterDoctypePublicIdentifier:function(){var t=this.consume();Re(t)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):">"===t?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===t?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===t&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var t=this.consume();Re(t)||(">"===t?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===t?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===t&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var t=this.consume();'"'===t?this.transitionTo("afterDoctypeSystemIdentifier"):">"===t?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(t)},doctypeSystemIdentifierSingleQuoted:function(){var t=this.consume();"'"===t?this.transitionTo("afterDoctypeSystemIdentifier"):">"===t?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(t)},afterDoctypeSystemIdentifier:function(){var t=this.consume();Re(t)||">"===t&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var t=this.consume();"-"===t?this.transitionTo("commentStartDash"):">"===t?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(t),this.transitionTo("comment"))},commentStartDash:function(){var t=this.consume();"-"===t?this.transitionTo("commentEnd"):">"===t?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var t=this.consume();"-"===t?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(t)},commentEndDash:function(){var t=this.consume();"-"===t?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+t),this.transitionTo("comment"))},commentEnd:function(){var t=this.consume();">"===t?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+t),this.transitionTo("comment"))},tagName:function(){var t=this.consume();Re(t)?this.transitionTo("beforeAttributeName"):"/"===t?this.transitionTo("selfClosingStartTag"):">"===t?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(t)},endTagName:function(){var t=this.consume();Re(t)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===t?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===t?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(t)},beforeAttributeName:function(){var t=this.peek();Re(t)?this.consume():"/"===t?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===t?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===t?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(t)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var t=this.peek();Re(t)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===t?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===t||"'"===t||"<"===t?(this.delegate.reportSyntaxError(t+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(t)):(this.consume(),this.delegate.appendToAttributeName(t))},afterAttributeName:function(){var t=this.peek();Re(t)?this.consume():"/"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===t?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(t))},beforeAttributeValue:function(){var t=this.peek();Re(t)?this.consume():'"'===t?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===t?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(t))},attributeValueDoubleQuoted:function(){var t=this.consume();'"'===t?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===t?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(t)},attributeValueSingleQuoted:function(){var t=this.consume();"'"===t?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===t?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(t)},attributeValueUnquoted:function(){var t=this.peek();Re(t)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===t?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===t?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===t?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(t))},afterAttributeValueQuoted:function(){var t=this.peek();Re(t)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===t?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===t?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var t=this.consume();("@"===t||":"===t||Ue(t))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(t))}},this.reset()}return t.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},t.prototype.transitionTo=function(t){this.state=t},t.prototype.tokenize=function(t){this.reset(),this.tokenizePart(t),this.tokenizeEOF()},t.prototype.tokenizePart=function(t){for(this.input+=function(t){return t.replace(Ve,"\n")}(t);this.index<this.input.length;){var e=this.states[this.state];if(void 0===e)throw new Error("unhandled state "+this.state);e.call(this)}},t.prototype.tokenizeEOF=function(){this.flushData()},t.prototype.flushData=function(){"data"===this.state&&(this.delegate.finishData(),this.transitionTo("beforeData"))},t.prototype.peek=function(){return this.input.charAt(this.index)},t.prototype.consume=function(){var t=this.peek();return this.index++,"\n"===t?(this.line++,this.column=0):this.column++,t},t.prototype.consumeCharRef=function(){var t=this.input.indexOf(";",this.index);if(-1!==t){var e=this.input.slice(this.index,t),r=this.entityParser.parse(e);if(r){for(var n=e.length;n;)this.consume(),n--;return this.consume(),r}}},t.prototype.markTagStart=function(){this.delegate.tagOpen()},t.prototype.appendToTagName=function(t){this.tagNameBuffer+=t,this.delegate.appendToTagName(t)},t.prototype.isIgnoredEndTag=function(){var t=this.tagNameBuffer;return"title"===t&&"</title>"!==this.input.substring(this.index,this.index+8)||"style"===t&&"</style>"!==this.input.substring(this.index,this.index+8)||"script"===t&&"<\/script>"!==this.input.substring(this.index,this.index+9)},t}(),Me=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),ze=Object.freeze({line:1,column:0}),je=Object.freeze({source:"(synthetic)",start:ze,end:ze}),Ge=Object.freeze({source:"(nonexistent)",start:ze,end:ze}),We=Object.freeze({source:"(broken)",start:ze,end:ze}),Ke=function(t){return t.CharPosition="CharPosition",t.HbsPosition="HbsPosition",t.InternalsSynthetic="InternalsSynthetic",t.NonExistent="NonExistent",t.Broken="Broken",t}({}),Qe="MATCH_ANY",Je="IS_INVISIBLE",Ye=class{_whens;constructor(t){this._whens=t}first(t){for(let e of this._whens){let r=e.match(t);if(Mt(r))return r[0]}return null}},Xe=class{_map=new Map;get(t,e){let r=this._map.get(t);return r||(r=e(),this._map.set(t,r),r)}add(t,e){this._map.set(t,e)}match(t){let e=function(t){switch(t){case Ke.Broken:case Ke.InternalsSynthetic:case Ke.NonExistent:return Je;default:return t}}(t),r=[],n=this._map.get(e),a=this._map.get(Qe);return n&&r.push(n),a&&r.push(a),r}};function Ze(t){return t(new tr).check()}var tr=class{_whens=new Xe;check(){return(t,e)=>this.matchFor(t.kind,e.kind)(t,e)}matchFor(t,e){let r=this._whens.match(t);Rt(Mt(r),`no match defined for (${t}, ${e}) and no AnyMatch defined either`);let n=new Ye(r).first(e);return Rt(null!==n,`no match defined for (${t}, ${e}) and no AnyMatch defined either`),n}when(t,e,r){return this._whens.get(t,(()=>new Xe)).add(e,r),this}};var er=class t{static synthetic(e){let r=rr.synthetic(e);return new t({loc:r,chars:e})}static load(e,r){return new t({loc:rr.load(e,r[1]),chars:r[0]})}chars;loc;constructor(t){this.loc=t.loc,this.chars=t.chars}getString(){return this.chars}serialize(){return[this.chars,this.loc.serialize()]}},rr=class t{static get NON_EXISTENT(){return new ir(Ke.NonExistent,Ge).wrap()}static load(e,r){return"number"==typeof r?t.forCharPositions(e,r,r):"string"==typeof r?t.synthetic(r):Array.isArray(r)?t.forCharPositions(e,r[0],r[1]):r===Ke.NonExistent?t.NON_EXISTENT:r===Ke.Broken?t.broken(We):void function(t,e="unexpected unreachable branch"){throw Zt.log("unreachable",t),Zt.log(`${e} :: ${JSON.stringify(t)} (${t})`),new Error("code reached unreachable")}(r)}static forHbsLoc(t,e){let r=new ur(t,e.start),n=new ur(t,e.end);return new ar(t,{start:r,end:n},e).wrap()}static forCharPositions(t,e,r){let n=new cr(t,e),a=new cr(t,r);return new nr(t,{start:n,end:a}).wrap()}static synthetic(t){return new ir(Ke.InternalsSynthetic,Ge,t).wrap()}static broken(t=We){return new ir(Ke.Broken,t).wrap()}isInvisible;constructor(t){this.data=t,this.isInvisible=t.kind!==Ke.CharPosition&&t.kind!==Ke.HbsPosition}getStart(){return this.data.getStart().wrap()}getEnd(){return this.data.getEnd().wrap()}get loc(){let t=this.data.toHbsSpan();return null===t?We: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 sr(t.data,this.data.getEnd())}withEnd(t){return sr(this.data.getStart(),t.data)}asString(){return this.data.asString()}toSlice(t){let e=this.data.asString();return new er({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 sr(this.data.getStart(),t.data.getEnd())}serialize(){return this.data.serialize()}slice({skipStart:t=0,skipEnd:e=0}){return sr(this.getStart().move(t).data,this.getEnd().move(-e).data)}sliceStartChars({skipStart:t=0,chars:e}){return sr(this.getStart().move(t).data,this.getStart().move(t+e).data)}sliceEndChars({skipEnd:t=0,chars:e}){return sr(this.getEnd().move(t-e).data,this.getStart().move(-t).data)}},nr=class{kind=Ke.CharPosition;_locPosSpan=null;constructor(t,e){this.source=t,this.charPositions=e}wrap(){return new rr(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=this._locPosSpan;if(null===t){let e=this.charPositions.start.toHbsPos(),r=this.charPositions.end.toHbsPos();t=this._locPosSpan=null===e||null===r?or:new ar(this.source,{start:e,end:r})}return t===or?null:t}serialize(){let{start:{charPos:t},end:{charPos:e}}=this.charPositions;return t===e?t:[t,e]}toCharPosSpan(){return this}},ar=class{kind=Ke.HbsPosition;_charPosSpan=null;_providedHbsLoc;constructor(t,e,r=null){this.source=t,this.hbsPositions=e,this._providedHbsLoc=r}serialize(){let t=this.toCharPosSpan();return null===t?Ke.Broken:t.wrap().serialize()}wrap(){return new rr(this)}updateProvided(t,e){this._providedHbsLoc&&(this._providedHbsLoc[e]=t),this._charPosSpan=null,this._providedHbsLoc={start:t,end:t}}locDidUpdate({start:t,end:e}){void 0!==t&&(this.updateProvided(t,"start"),this.hbsPositions.start=new ur(this.source,t,null)),void 0!==e&&(this.updateProvided(e,"end"),this.hbsPositions.end=new ur(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=this._charPosSpan;if(null===t){let e=this.hbsPositions.start.toCharPos(),r=this.hbsPositions.end.toCharPos();if(!e||!r)return t=this._charPosSpan=or,null;t=this._charPosSpan=new nr(this.source,{start:e,end:r})}return t===or?null:t}},ir=class{constructor(t,e,r=null){this.kind=t,this.loc=e,this.string=r}serialize(){switch(this.kind){case Ke.Broken:case Ke.NonExistent:return this.kind;case Ke.InternalsSynthetic:return this.string||""}}wrap(){return new rr(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 hr(this.kind,this.loc.start)}getEnd(){return new hr(this.kind,this.loc.end)}toCharPosSpan(){return this}toHbsSpan(){return null}toHbsLoc(){return We}},sr=Ze((t=>t.when(Ke.HbsPosition,Ke.HbsPosition,((t,e)=>new ar(t.source,{start:t,end:e}).wrap())).when(Ke.CharPosition,Ke.CharPosition,((t,e)=>new nr(t.source,{start:t,end:e}).wrap())).when(Ke.CharPosition,Ke.HbsPosition,((t,e)=>{let r=e.toCharPos();return null===r?new ir(Ke.Broken,We).wrap():sr(t,r)})).when(Ke.HbsPosition,Ke.CharPosition,((t,e)=>{let r=t.toCharPos();return null===r?new ir(Ke.Broken,We).wrap():sr(r,e)})).when(Je,Qe,(t=>new ir(t.kind,We).wrap())).when(Qe,Je,((t,e)=>new ir(e.kind,We).wrap())))),or="BROKEN",lr=class t{static forHbsPos(t,e){return new ur(t,e,null).wrap()}static broken(t=ze){return new hr(Ke.Broken,t).wrap()}constructor(t){this.data=t}get offset(){let t=this.data.toCharPos();return null===t?null:t.offset}eql(t){return pr(this.data,t.data)}until(t){return sr(this.data,t.data)}move(e){let r=this.data.toCharPos();if(null===r)return t.broken();{let n=r.offset+e;return r.source.check(n)?new cr(r.source,n).wrap():t.broken()}}collapsed(){return sr(this.data,this.data)}toJSON(){return this.data.toJSON()}},cr=class{kind=Ke.CharPosition;_locPos=null;constructor(t,e){this.source=t,this.charPos=e}toCharPos(){return this}toJSON(){let t=this.toHbsPos();return null===t?ze:t.toJSON()}wrap(){return new lr(this)}get offset(){return this.charPos}toHbsPos(){let t=this._locPos;if(null===t){let e=this.source.hbsPosFor(this.charPos);this._locPos=t=null===e?or:new ur(this.source,e,this.charPos)}return t===or?null:t}},ur=class{kind=Ke.HbsPosition;_charPos;constructor(t,e,r=null){this.source=t,this.hbsPos=e,this._charPos=null===r?null:new cr(t,r)}toCharPos(){let t=this._charPos;if(null===t){let e=this.source.charPosFor(this.hbsPos);this._charPos=t=null===e?or:new cr(this.source,e)}return t===or?null:t}toJSON(){return this.hbsPos}wrap(){return new lr(this)}toHbsPos(){return this}},hr=class{constructor(t,e){this.kind=t,this.pos=e}toCharPos(){return null}toJSON(){return this.pos}wrap(){return new lr(this)}get offset(){return null}},pr=Ze((t=>t.when(Ke.HbsPosition,Ke.HbsPosition,(({hbsPos:t},{hbsPos:e})=>t.column===e.column&&t.line===e.line)).when(Ke.CharPosition,Ke.CharPosition,(({charPos:t},{charPos:e})=>t===e)).when(Ke.CharPosition,Ke.HbsPosition,(({offset:t},e)=>{var r;return t===(null==(r=e.toCharPos())?void 0:r.offset)})).when(Ke.HbsPosition,Ke.CharPosition,((t,{offset:e})=>{var r;return(null==(r=t.toCharPos())?void 0:r.offset)===e})).when(Qe,Qe,(()=>!1)))),dr=class t{static from(e,r={}){var n;return new t(e,null==(n=r.meta)?void 0:n.moduleName)}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 lr.forHbsPos(this,{line:t,column:e})}spanFor({start:t,end:e}){return rr.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,a=0,i=0;for(;i<n;){let t=this.source.indexOf("\n",i);if(-1===t&&(t=this.source.length),a===e-1)return i+r>t?t:i+r;if(-1===t)return 0;a+=1,i=t+1}return n}};function mr(t,e){let{module:r,loc:n}=e,{line:a,column:i}=n.start,s=e.asString(),o=s?`\n\n|\n| ${s.split("\n").join("\n| ")}\n|\n\n`:"",l=new Error(`${t}: ${o}(error occurred in '${r}' @ line ${a} : column ${i})`);return l.name="SyntaxError",l.location=e,l.code=s,l}var fr={Program:["body"],Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],PartialStatement:["name","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],ElementStartNode:[],ElementPartNode:[],ElementEndNode:[],ElementNameNode:[],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],PathHead:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"],BlockParam:[],NamedBlock:["attributes","modifiers","children","comments"],SimpleElement:["attributes","modifiers","children","comments"],Component:["head","attributes","modifiers","children","comments"]},gr=function(){function t(t,e,r,n){let a=Error.call(this,t);this.key=n,this.message=t,this.node=e,this.parent=r,a.stack&&(this.stack=a.stack)}return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}();function yr(t,e,r){return new gr("Cannot remove a node unless it is part of an array",t,e,r)}function br(t,e){return new gr("Replacing and removing in key handlers is not yet supported.",t,null,e)}var vr=class{node;parent;parentKey;constructor(t,e=null,r=null){this.node=t,this.parent=e,this.parentKey=r}get parentNode(){return this.parent?this.parent.node:null}parents(){return{[Symbol.iterator]:()=>new Sr(this)}}},Sr=class{path;constructor(t){this.path=t}next(){return this.path.parent?(this.path=this.path.parent,{done:!1,value:this.path}):{done:!0,value:null}}};function wr(t){return"function"==typeof t?t:t.enter}function kr(t){if("function"!=typeof t)return t.exit}function Er(t,e){let r,n,a,{node:i,parent:s,parentKey:o}=e,l=function(t,e){if(("Template"===e||"Block"===e)&&t.Program)return t.Program;let r=t[e];return void 0!==r?r:t.All}(t,i.type);if(void 0!==l&&(r=wr(l),n=kr(l)),void 0!==r&&(a=r(i,e)),null!=a){if(JSON.stringify(i)!==JSON.stringify(a)){if(Array.isArray(a))return Pr(t,a,s,o),a;return Er(t,new vr(a,s,o))||a}a=void 0}if(void 0===a){let r=fr[i.type];for(let n=0;n<r.length;n++){Tr(t,l,e,r[n])}void 0!==n&&(a=n(i,e))}return a}function Nr(t,e,r){t[e]=r}function Tr(t,e,r,n){let a,i,{node:s}=r,o=function(t,e){return t[e]}(s,n);if(o){if(void 0!==e){let t=function(t,e){let r="function"!=typeof t?t.keys:void 0;if(void 0===r)return;let n=r[e];return void 0!==n?n:r.All}(e,n);void 0!==t&&(a=wr(t),i=kr(t))}if(void 0!==a&&void 0!==a(s,n))throw br(s,n);if(Array.isArray(o))Pr(t,o,r,n);else{let e=Er(t,new vr(o,r,n));void 0!==e&&function(t,e,r,n){if(null===n)throw yr(r,t,e);if(Array.isArray(n)){if(1!==n.length)throw 0===n.length?yr(r,t,e):function(t,e,r){return new gr("Cannot replace a node with multiple nodes unless it is part of an array",t,e,r)}(r,t,e);Nr(t,e,n[0])}else Nr(t,e,n)}(s,n,o,e)}if(void 0!==i&&void 0!==i(s,n))throw br(s,n)}}function Pr(t,e,r,n){for(let a=0;a<e.length;a++){let i=Ut(e[a]),s=Er(t,new vr(i,r,n));void 0!==s&&(a+=Ar(e,a,s)-1)}}function Ar(t,e,r){return null===r?(t.splice(e,1),0):Array.isArray(r)?(t.splice(e,1,...r),r.length):(t.splice(e,1,r),1)}function xr(t,e){Er(e,new vr(t))}var Dr,Lr=/[!"#%&'()*+./;<=>@[\\\]^`{|}~]/u;function Cr(t){let e=function(t){let e=t.attributes.length,r=[];for(let n=0;n<e;n++)r.push(Ut(t.attributes[n]).name);let n=r.indexOf("as");if(-1===n&&r.length>0&&"|"===Ut(r[r.length-1]).charAt(0))throw mr("Block parameters must be preceded by the `as` keyword, detected block parameters without `as`",t.loc);if(-1!==n&&e>n&&"|"===Ut(r[n+1]).charAt(0)){let a=r.slice(n).join(" ");if("|"!==a.charAt(a.length-1)||2!==Ft(a.match(/\|/gu),"block params must exist here").length)throw mr("Invalid block parameters syntax, '"+a+"'",t.loc);let i=[];for(let a=n+1;a<e;a++){let e=Ut(r[a]).replace(/\|/gu,"");if(""!==e){if(Lr.test(e))throw mr("Invalid identifier for block parameters, '"+e+"'",t.loc);let n=t.attributes[a].loc;r[a].startsWith("|")&&(n=n.slice({skipStart:1})),r[a].endsWith("|")&&(n=n.slice({skipEnd:1})),n.endPosition.column-n.startPosition.column>e.length&&(n=n.slice({skipEnd:n.endPosition.column-n.startPosition.column-e.length})),i.push({type:"BlockParam",value:e,loc:n})}}if(0===i.length)throw mr("Cannot use zero block parameters",t.loc);return t.attributes=t.attributes.slice(0,n),i}return null}(t);e&&(t.blockParamNodes=e,t.blockParams=e.map((t=>t.value)))}function _r(t,e){(function(t){switch(t.type){case"Block":case"Template":return t.body;case"ElementNode":return t.children}})(t).push(e)}function qr(t){return"StringLiteral"===t.type||"BooleanLiteral"===t.type||"NumberLiteral"===t.type||"NullLiteral"===t.type||"UndefinedLiteral"===t.type}function Ir(){return Dr||(Dr=new dr("","(synthetic)")),Dr}function Br(t){switch(t.type){case"AtHead":case"VarHead":return{original:t.name,parts:[t.name]};case"ThisHead":return{original:"this",parts:[]}}}function Or(t,e){let r,[n,...a]=jt(t.split("."));return r="this"===n?{type:"ThisHead",loc:Mr(e||null)}:"@"===n[0]?{type:"AtHead",name:n,loc:Mr(e||null)}:{type:"VarHead",name:n,loc:Mr(e||null)},{head:r,tail:a}}function Hr(t){return{type:"ThisHead",loc:Mr(t||null)}}function $r(t,e){return Rt("@"===t[0],"call builders.at() with a string that starts with '@'"),{type:"AtHead",name:t,loc:Mr(e||null)}}function Vr(t,e){return Rt("this"!==t,"You called builders.var() with 'this'. Call builders.this instead"),Rt("@"!==t[0],`You called builders.var() with '${t}'. Call builders.at('${t}') instead`),{type:"VarHead",name:t,loc:Mr(e||null)}}function Rr(t,e){if("string"!=typeof t){if("type"in t)return t;{let{head:r,tail:n}=Or(t.head,rr.broken());Rt(0===n.length,"builder.path({ head, tail }) should not be called with a head with dots in it");let{original:a}=Br(r);return new Gr([a,...n].join("."),r,n,Mr(e||null))}}let{head:r,tail:n}=Or(t,rr.broken());return new Gr(t,r,n,Mr(e||null))}function Ur(t,e,r){return{type:t,value:e,original:e,loc:Mr(r||null)}}function Fr(t,e){return{type:"Hash",pairs:t||[],loc:Mr(e||null)}}function Mr(...t){if(1===t.length){let e=t[0];return e&&"object"==typeof e?rr.forHbsLoc(Ir(),e):rr.forHbsLoc(Ir(),je)}{let[e,r,n,a,i]=t,s=i?new dr("",i):Ir();return rr.forHbsLoc(s,{start:{line:e,column:r},end:{line:n,column:a}})}}var zr={mustache:function(t,e,r,n,a,i){return"string"==typeof t&&(t=Rr(t)),{type:"MustacheStatement",path:t,params:e||[],hash:r||Fr([]),escaped:!n,trusting:!!n,loc:Mr(a||null),strip:i||{open:!1,close:!1}}},block:function(t,e,r,n,a,i,s,o,l){let c,u;return c="Template"===n.type?Xt({},n,{type:"Block"}):n,u=null!=a&&"Template"===a.type?Xt({},a,{type:"Block"}):a,{type:"BlockStatement",path:Rr(t),params:e||[],hash:r||Fr([]),program:c||null,inverse:u||null,loc:Mr(i||null),openStrip:s||{open:!1,close:!1},inverseStrip:o||{open:!1,close:!1},closeStrip:l||{open:!1,close:!1}}},partial:function(t,e,r,n,a){return{type:"PartialStatement",name:t,params:e||[],hash:r||Fr([]),indent:n||"",strip:{open:!1,close:!1},loc:Mr(a||null)}},comment:function(t,e){return{type:"CommentStatement",value:t,loc:Mr(e||null)}},mustacheComment:function(t,e){return{type:"MustacheCommentStatement",value:t,loc:Mr(e||null)}},element:function(t,e={}){let r,{attrs:n,blockParams:a,modifiers:i,comments:s,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,nameNode:{type:"ElementNameNode",value:t},startTag:{type:"ElementStartNode",value:t},endTag:{type:"ElementEndNode",value:c?"":t},parts:r.split(".").map((t=>({type:"ElementPartNode",value:t}))),selfClosing:c,attributes:n||[],blockParams:a||[],blockParamNodes:(null==a?void 0:a.map((t=>({type:"BlockParam",value:t}))))||[],modifiers:i||[],comments:s||[],children:o||[],loc:Mr(l||null)}},elementModifier:function(t,e,r,n){return{type:"ElementModifierStatement",path:Rr(t),params:e||[],hash:r||Fr([]),loc:Mr(n||null)}},attr:function(t,e,r){return{type:"AttrNode",name:t,value:e,loc:Mr(r||null)}},text:function(t,e){return{type:"TextNode",chars:t||"",loc:Mr(e||null)}},sexpr:function(t,e,r,n){return{type:"SubExpression",path:Rr(t),params:e||[],hash:r||Fr([]),loc:Mr(n||null)}},concat:function(t,e){if(!Mt(t))throw new Error("b.concat requires at least one part");return{type:"ConcatStatement",parts:t||[],loc:Mr(e||null)}},hash:Fr,pair:function(t,e,r){return{type:"HashPair",key:t,value:e,loc:Mr(r||null)}},literal:Ur,program:function(t,e,r){return{type:"Template",body:t||[],blockParams:e||[],loc:Mr(r||null)}},blockItself:function(t,e,r=!1,n){return{type:"Block",body:t||[],blockParams:e||[],blockParamNodes:(null==e?void 0:e.map((t=>({type:"BlockParam",value:t}))))||[],chained:r,loc:Mr(n||null)}},template:function(t,e,r){return{type:"Template",body:t||[],blockParams:e||[],loc:Mr(r||null)}},loc:Mr,pos:function(t,e){return{line:t,column:e}},path:Rr,fullPath:function(t,e,r){let{original:n,parts:a}=Br(t),i=[...n,...[...a,...e]].join(".");return new Gr(i,t,e,Mr(r||null))},head:function(t,e){return"@"===t[0]?$r(t,e):"this"===t?Hr(e):Vr(t,e)},at:$r,var:Vr,this:Hr,blockName:function(t,e){return{type:"NamedBlockName",name:t,loc:Mr(e||null)}},string:jr("StringLiteral"),boolean:jr("BooleanLiteral"),number:jr("NumberLiteral"),undefined:()=>Ur("UndefinedLiteral",void 0),null:()=>Ur("NullLiteral",null)};function jr(t){return function(e,r){return Ur(t,e,r)}}var Gr=class{type="PathExpression";parts;this=!1;data=!1;constructor(t,e,r,n){this.original=t,this.loc=n;let a=r.slice();"ThisHead"===e.type?this.this=!0:"AtHead"===e.type?(this.data=!0,a.unshift(e.name.slice(1))):a.unshift(e.name),this.parts=a}_head=void 0;get head(){if(this._head)return this._head;let t;this.this?t="this":this.data?t=`@${Wt(jt(this.parts))}`:(zt(this.parts),t=Wt(this.parts));let e=this.loc.collapse("start").sliceStartChars({chars:t.length}).loc;return this._head=zr.head(t,e)}get tail(){return this.this?this.parts:this.parts.slice(1)}},Wr={close:!1,open:!1};var Kr=new class{pos(t,e){return{line:t,column:e}}blockItself({body:t=[],blockParams:e=[],chained:r=!1,loc:n}){return{type:"Block",body:t,blockParams:e,blockParamNodes:null==e?void 0:e.map((t=>({type:"BlockParam",value:t}))),chained:r,loc:n}}template({body:t,blockParams:e,loc:r}){return{type:"Template",body:t||[],blockParams:e||[],loc:r}}mustache({path:t,params:e,hash:r,trusting:n,loc:a,strip:i=Wr}){return{type:"MustacheStatement",path:t,params:e,hash:r,escaped:!n,trusting:n,loc:a,strip:i||{open:!1,close:!1}}}block({path:t,params:e,hash:r,defaultBlock:n,elseBlock:a=null,loc:i,openStrip:s=Wr,inverseStrip:o=Wr,closeStrip:l=Wr}){return{type:"BlockStatement",path:t,params:e,hash:r,program:n,inverse:a,loc:i,openStrip:s,inverseStrip:o,closeStrip:l}}comment(t,e){return{type:"CommentStatement",value:t,loc:e}}mustacheComment(t,e){return{type:"MustacheCommentStatement",value:t,loc:e}}concat(t,e){return{type:"ConcatStatement",parts:t,loc:e}}element({tag:t,selfClosing:e,attrs:r,blockParams:n,modifiers:a,comments:i,children:s,loc:o}){return{type:"ElementNode",tag:t,nameNode:{type:"ElementNameNode",value:t},startTag:{type:"ElementStartNode",value:t},endTag:{type:"ElementEndNode",value:e?"":t},parts:t.split(".").map((t=>({type:"ElementPartNode",value:t}))),selfClosing:e,attributes:r||[],blockParams:n,blockParamNodes:n.map((t=>({type:"BlockParam",value:t})))||[],modifiers:a||[],comments:i||[],children:s||[],loc:o}}elementModifier({path:t,params:e,hash:r,loc:n}){return{type:"ElementModifierStatement",path:t,params:e,hash:r,loc:n}}attr({name:t,value:e,loc:r}){return{type:"AttrNode",name:t,value:e,loc:r}}text({chars:t,loc:e}){return{type:"TextNode",chars:t,loc:e}}sexpr({path:t,params:e,hash:r,loc:n}){return{type:"SubExpression",path:t,params:e,hash:r,loc:n}}path({head:t,tail:e,loc:r}){let{original:n}=function(t){switch(t.type){case"AtHead":case"VarHead":return{original:t.name,parts:[t.name]};case"ThisHead":return{original:"this",parts:[]}}}(t),a=[...n,...e].join(".");return new Gr(a,t,e,r)}head(t,e){return"@"===t[0]?this.atName(t,e):"this"===t?this.this(e):this.var(t,e)}this(t){return{type:"ThisHead",loc:t}}atName(t,e){return Rt("@"===t[0],"call builders.at() with a string that starts with '@'"),{type:"AtHead",name:t,loc:e}}var(t,e){return Rt("this"!==t,"You called builders.var() with 'this'. Call builders.this instead"),Rt("@"!==t[0],`You called builders.var() with '${t}'. Call builders.at('${t}') instead`),{type:"VarHead",name:t,loc:e}}hash(t,e){return{type:"Hash",pairs:t||[],loc:e}}pair({key:t,value:e,loc:r}){return{type:"HashPair",key:t,value:e,loc:r}}literal({type:t,value:e,loc:r}){return{type:t,value:e,original:e,loc:r}}undefined(){return this.literal({type:"UndefinedLiteral",value:void 0})}null(){return this.literal({type:"NullLiteral",value:null})}string(t,e){return this.literal({type:"StringLiteral",value:t,loc:e})}boolean(t,e){return this.literal({type:"BooleanLiteral",value:t,loc:e})}number(t,e){return this.literal({type:"NumberLiteral",value:t,loc:e})}},Qr=class{elementStack=[];lines;source;currentAttribute=null;currentNode=null;tokenizer;constructor(t,e=new Oe(_e),r="precompile"){this.source=t,this.lines=t.source.split(/\r\n?|\n/u),this.tokenizer=new Fe(this,e,r)}offset(){let{line:t,column:e}=this.tokenizer;return this.source.offsetFor(t,e)}pos({line:t,column:e}){return this.source.offsetFor(t,e)}finish(t){return Xt({},t,{loc:t.loc.until(this.offset())})}get currentAttr(){return Ft(this.currentAttribute,"expected attribute")}get currentTag(){let t=this.currentNode;return Rt(t&&("StartTag"===t.type||"EndTag"===t.type),"expected tag"),t}get currentStartTag(){let t=this.currentNode;return Rt(t&&"StartTag"===t.type,"expected start tag"),t}get currentEndTag(){let t=this.currentNode;return Rt(t&&"EndTag"===t.type,"expected end tag"),t}get currentComment(){let t=this.currentNode;return Rt(t&&"CommentStatement"===t.type,"expected a comment"),t}get currentData(){let t=this.currentNode;return Rt(t&&"TextNode"===t.type,"expected a text node"),t}acceptTemplate(t){return this[t.type](t)}acceptNode(t){return this[t.type](t)}currentElement(){return Gt(jt(this.elementStack))}sourceForNode(t,e){let r,n,a,i=t.loc.start.line-1,s=i-1,o=t.loc.start.column,l=[];for(e?(n=e.loc.end.line-1,a=e.loc.end.column):(n=t.loc.end.line-1,a=t.loc.end.column);s<n;)s++,r=Ut(this.lines[s]),s===i?i===n?l.push(r.slice(o,a)):l.push(r.slice(o)):s===n?l.push(r.slice(0,a)):l.push(r);return l.join("\n")}},Jr="beforeAttributeName",Yr=class extends Qr{get isTopLevel(){return 0===this.elementStack.length}Program(t){let e,r=[];e=this.isTopLevel?Kr.template({body:r,blockParams:t.blockParams,loc:this.source.spanFor(t.loc)}):Kr.blockItself({body:r,blockParams:t.blockParams,chained:t.chained,loc:this.source.spanFor(t.loc)});let n,a=t.body.length;if(this.elementStack.push(e),0===a)return this.elementStack.pop();for(n=0;n<a;n++)this.acceptNode(Ut(t.body[n]));let i=this.elementStack.pop();if(i!==e){let t=i;throw mr(`Unclosed element \`${t.tag}\``,t.loc)}return e}BlockStatement(t){if("comment"===this.tokenizer.state)return void this.appendToCommentData(this.sourceForNode(t));if("data"!==this.tokenizer.state&&"beforeData"!==this.tokenizer.state)throw mr("A block may only be used inside an HTML element or another block.",this.source.spanFor(t.loc));let{path:e,params:r,hash:n}=Xr(this,t);t.program.loc||(t.program.loc=Ge),t.inverse&&!t.inverse.loc&&(t.inverse.loc=Ge);let a=this.Program(t.program),i=t.inverse?this.Program(t.inverse):null,s=Kr.block({path:e,params:r,hash:n,defaultBlock:a,elseBlock:i,loc:this.source.spanFor(t.loc),openStrip:t.openStrip,inverseStrip:t.inverseStrip,closeStrip:t.closeStrip});!function(t,e){let r=[e.loc.getStart().offset,e.loc.getEnd().offset],n=t.slice(...r),a=r[0],i=n.indexOf("|")+1;a+=i,n=n.slice(i,-1),i=n.indexOf("|"),n=n.slice(0,i);for(let r of e.program.blockParamNodes){let e=[a+new RegExp(`\\b${r.value}\\b`).exec(n).index,0];e[1]=e[0]+r.value.length,r.loc=t.spanFor({start:t.hbsPosFor(e[0]),end:t.hbsPosFor(e[1])})}}(this.source,s),_r(this.currentElement(),s)}MustacheStatement(t){let{tokenizer:e}=this;if("comment"===e.state)return void this.appendToCommentData(this.sourceForNode(t));let r,{escaped:n,loc:a,strip:i}=t;if(qr(t.path))r=Kr.mustache({path:this.acceptNode(t.path),params:[],hash:Kr.hash([],this.source.spanFor(t.path.loc).collapse("end")),trusting:!n,loc:this.source.spanFor(a),strip:i});else{let{path:e,params:s,hash:o}=Xr(this,t);r=Kr.mustache({path:e,params:s,hash:o,trusting:!n,loc:this.source.spanFor(a),strip:i})}switch(e.state){case"tagOpen":case"tagName":throw mr("Cannot use mustaches in an elements tagname",r.loc);case"beforeAttributeName":Zr(this.currentStartTag,r);break;case"attributeName":case"afterAttributeName":this.beginAttributeValue(!1),this.finishAttributeValue(),Zr(this.currentStartTag,r),e.transitionTo(Jr);break;case"afterAttributeValueQuoted":Zr(this.currentStartTag,r),e.transitionTo(Jr);break;case"beforeAttributeValue":this.beginAttributeValue(!1),this.appendDynamicAttributeValuePart(r),e.transitionTo("attributeValueUnquoted");break;case"attributeValueDoubleQuoted":case"attributeValueSingleQuoted":case"attributeValueUnquoted":this.appendDynamicAttributeValuePart(r);break;default:_r(this.currentElement(),r)}return r}appendDynamicAttributeValuePart(t){this.finalizeTextPart();let e=this.currentAttr;e.isDynamic=!0,e.parts.push(t)}finalizeTextPart(){let t=this.currentAttr.currentPart;null!==t&&(this.currentAttr.parts.push(t),this.startTextPart())}startTextPart(){this.currentAttr.currentPart=null}ContentStatement(t){(function(t,e){let r=e.loc.start.line,n=e.loc.start.column,a=function(t,e){if(""===e)return{lines:t.split("\n").length-1,columns:0};let[r]=t.split(e),n=r.split(/\n/u),a=n.length-1;return{lines:a,columns:Ut(n[a]).length}}(e.original,e.value);r+=a.lines,a.lines?n=a.columns:n+=a.columns,t.line=r,t.column=n})(this.tokenizer,t),this.tokenizer.tokenizePart(t.value),this.tokenizer.flushData()}CommentStatement(t){let{tokenizer:e}=this;if("comment"===e.state)return this.appendToCommentData(this.sourceForNode(t)),null;let{value:r,loc:n}=t,a=Kr.mustacheComment(r,this.source.spanFor(n));switch(e.state){case"beforeAttributeName":case"afterAttributeName":this.currentStartTag.comments.push(a);break;case"beforeData":case"data":_r(this.currentElement(),a);break;default:throw mr(`Using a Handlebars comment when in the \`${e.state}\` state is not supported`,this.source.spanFor(t.loc))}return a}PartialStatement(t){throw mr("Handlebars partials are not supported",this.source.spanFor(t.loc))}PartialBlockStatement(t){throw mr("Handlebars partial blocks are not supported",this.source.spanFor(t.loc))}Decorator(t){throw mr("Handlebars decorators are not supported",this.source.spanFor(t.loc))}DecoratorBlock(t){throw mr("Handlebars decorator blocks are not supported",this.source.spanFor(t.loc))}SubExpression(t){let{path:e,params:r,hash:n}=Xr(this,t);return Kr.sexpr({path:e,params:r,hash:n,loc:this.source.spanFor(t.loc)})}PathExpression(t){let e,{original:r}=t;if(-1!==r.indexOf("/")){if("./"===r.slice(0,2))throw mr('Using "./" is not supported in Glimmer and unnecessary',this.source.spanFor(t.loc));if("../"===r.slice(0,3))throw mr('Changing context using "../" is not supported in Glimmer',this.source.spanFor(t.loc));if(-1!==r.indexOf("."))throw mr("Mixing '.' and '/' in paths is not supported in Glimmer; use only '.' to separate property paths",this.source.spanFor(t.loc));e=[t.parts.join("/")]}else{if("."===r)throw mr("'.' is not a supported path in Glimmer; check for a path with a trailing '.'",this.source.spanFor(t.loc));e=t.parts}let n,a=!1;if(/^this(?:\..+)?$/u.test(r)&&(a=!0),a)n={type:"ThisHead",loc:{start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+4}}};else if(t.data){let r=e.shift();if(void 0===r)throw mr("Attempted to parse a path expression, but it was not valid. Paths beginning with @ must start with a-z.",this.source.spanFor(t.loc));n={type:"AtHead",name:`@${r}`,loc:{start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+r.length+1}}}}else{let r=e.shift();if(void 0===r)throw mr("Attempted to parse a path expression, but it was not valid. Paths must start with a-z or A-Z.",this.source.spanFor(t.loc));n={type:"VarHead",name:r,loc:{start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+r.length}}}}return new Gr(t.original,n,e,this.source.spanFor(t.loc))}Hash(t){let e=t.pairs.map((t=>Kr.pair({key:t.key,value:this.acceptNode(t.value),loc:this.source.spanFor(t.loc)})));return Kr.hash(e,this.source.spanFor(t.loc))}StringLiteral(t){return Kr.literal({type:"StringLiteral",value:t.value,loc:t.loc})}BooleanLiteral(t){return Kr.literal({type:"BooleanLiteral",value:t.value,loc:t.loc})}NumberLiteral(t){return Kr.literal({type:"NumberLiteral",value:t.value,loc:t.loc})}UndefinedLiteral(t){return Kr.literal({type:"UndefinedLiteral",value:void 0,loc:t.loc})}NullLiteral(t){return Kr.literal({type:"NullLiteral",value:null,loc:t.loc})}};function Xr(t,e){if(e.path.type.endsWith("Literal")){let r=e.path,n="";throw n="BooleanLiteral"===r.type?r.original.toString():"StringLiteral"===r.type?`"${r.original}"`:"NullLiteral"===r.type?"null":"NumberLiteral"===r.type?r.value.toString():"undefined",mr(`${r.type} "${"StringLiteral"===r.type?r.original:n}" cannot be called as a sub-expression, replace (${n}) with ${n}`,t.source.spanFor(r.loc))}let r="PathExpression"===e.path.type?t.PathExpression(e.path):t.SubExpression(e.path),n=e.params?e.params.map((e=>t.acceptNode(e))):[],a=Mt(n)?Gt(n).loc:r.loc;return{path:r,params:n,hash:e.hash?t.Hash(e.hash):{type:"Hash",pairs:[],loc:t.source.spanFor(a).collapse("end")}}}function Zr(t,e){let{path:r,params:n,hash:a,loc:i}=e;if(qr(r)){let n=`{{${function(t){return"UndefinedLiteral"===t.type?"undefined":JSON.stringify(t.value)}(r)}}}`;throw mr(`In ${`<${t.name} ... ${n} ...`}, ${n} is not a valid modifier`,e.loc)}let s=Kr.elementModifier({path:r,params:n,hash:a,loc:i});t.modifiers.push(s)}var tn=class extends Yr{tagOpenLine=0;tagOpenColumn=0;reset(){this.currentNode=null}beginComment(){this.currentNode=Kr.comment("",this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn))}appendToCommentData(t){this.currentComment.value+=t}finishComment(){_r(this.currentElement(),this.finish(this.currentComment))}beginData(){this.currentNode=Kr.text({chars:"",loc:this.offset().collapsed()})}appendToData(t){this.currentData.chars+=t}finishData(){this.currentData.loc=this.currentData.loc.withEnd(this.offset()),_r(this.currentElement(),this.currentData)}tagOpen(){this.tagOpenLine=this.tokenizer.line,this.tagOpenColumn=this.tokenizer.column}beginStartTag(){this.currentNode={type:"StartTag",name:"",attributes:[],modifiers:[],comments:[],selfClosing:!1,loc:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}beginEndTag(){this.currentNode={type:"EndTag",name:"",attributes:[],modifiers:[],comments:[],selfClosing:!1,loc:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}finishTag(){let t=this.finish(this.currentTag);if("StartTag"===t.type){if(this.finishStartTag(),":"===t.name)throw mr("Invalid named block named detected, you may have created a named block without a name, or you may have began your name with a number. Named blocks must have names that are at least one character long, and begin with a lower case letter",this.source.spanFor({start:this.currentTag.loc.toJSON(),end:this.offset().toJSON()}));(Me.has(t.name)||t.selfClosing)&&this.finishEndTag(!0)}else"EndTag"===t.type&&this.finishEndTag(!1)}finishStartTag(){let{name:t,attributes:e,modifiers:r,comments:n,selfClosing:a,loc:i}=this.finish(this.currentStartTag),s=Kr.element({tag:t,selfClosing:a,attrs:e,modifiers:r,comments:n,children:[],blockParams:[],loc:i});s.startTag={type:"ElementStartNode",value:t,loc:i},s.nameNode={type:"ElementNameNode",value:t,loc:i.withStart(this.source.offsetFor(i.startPosition.line,i.startPosition.column+1)).withEnd(this.source.offsetFor(i.startPosition.line,i.startPosition.column+1+t.length))},function(t,e){let r=[e.loc.getStart().offset,e.loc.getEnd().offset],n=r[0],a=t.slice(...r);for(let i of e.parts){let e=[n+a.indexOf(i.value),0];e[1]=e[0]+i.value.length,a=t.slice(e[1],r[1]),n=e[1],i.loc=t.spanFor({start:t.hbsPosFor(e[0]),end:t.hbsPosFor(e[1])})}}(this.source,s),this.elementStack.push(s)}finishEndTag(t){let e=this.finish(this.currentTag),r=this.elementStack.pop();r.endTag={type:"ElementEndNode",loc:e.loc,value:r.selfClosing?"":e.name},this.validateEndTag(e,r,t);let n=this.currentElement();r.loc=r.loc.withEnd(this.offset()),Cr(r),_r(n,r)}markTagAsSelfClosing(){this.currentTag.selfClosing=!0}appendToTagName(t){this.currentTag.name+=t}beginAttribute(){let t=this.offset();this.currentAttribute={name:"",parts:[],currentPart:null,isQuoted:!1,isDynamic:!1,start:t,valueSpan:t.collapsed()}}appendToAttributeName(t){this.currentAttr.name+=t}beginAttributeValue(t){this.currentAttr.isQuoted=t,this.startTextPart(),this.currentAttr.valueSpan=this.offset().collapsed()}appendToAttributeValue(t){let e=this.currentAttr.parts,r=e[e.length-1],n=this.currentAttr.currentPart;if(n)n.chars+=t,n.loc=n.loc.withEnd(this.offset());else{let e=this.offset();e="\n"===t?r?r.loc.getEnd():this.currentAttr.valueSpan.getStart():e.move(-1),this.currentAttr.currentPart=Kr.text({chars:t,loc:e.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let t=this.currentTag,e=this.offset();if("EndTag"===t.type)throw mr("Invalid end tag: closing tag must not have attributes",this.source.spanFor({start:t.loc.toJSON(),end:e.toJSON()}));let{name:r,parts:n,start:a,isQuoted:i,isDynamic:s,valueSpan:o}=this.currentAttr,l=this.assembleAttributeValue(n,i,s,a.until(e));l.loc=o.withEnd(e);let c=Kr.attr({name:r,value:l,loc:a.until(e)});this.currentStartTag.attributes.push(c)}reportSyntaxError(t){throw mr(t,this.offset().collapsed())}assembleConcatenatedValue(t){for(let e of t)if("MustacheStatement"!==e.type&&"TextNode"!==e.type)throw mr(`Unsupported node in quoted attribute value: ${e.type}`,e.loc);zt(t,"the concatenation parts of an element should not be empty");let e=Wt(t),r=Gt(t);return Kr.concat(t,this.source.spanFor(e.loc).extend(this.source.spanFor(r.loc)))}validateEndTag(t,e,r){if(Me.has(t.name)&&!r)throw mr(`<${t.name}> elements do not need end tags. You should remove it`,t.loc);if(void 0===e.tag)throw mr(`Closing tag </${t.name}> without an open tag`,t.loc);if(e.tag!==t.name)throw mr(`Closing tag </${t.name}> did not match last open tag <${e.tag}> (on line ${e.loc.startPosition.line})`,t.loc)}assembleAttributeValue(t,e,r,n){if(r){if(e)return this.assembleConcatenatedValue(t);{zt(t);let[e,r]=t;if(void 0===r||"TextNode"===r.type&&"/"===r.chars)return e;throw mr("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'",n)}}return Mt(t)?t[0]:Kr.text({chars:"",loc:n})}},en={},rn=class extends Oe{constructor(){super({})}parse(){}};var nn=function(t){return t.Helper="Helper",t.Modifier="Modifier",t.Component="Component",t}({});nn.Helper,nn.Modifier,nn.Component;var an="\n",sn=function(){function t(t){this.length=t.length;for(var e=[0],r=0;r<t.length;)switch(t[r]){case an:r+=1,e.push(r);break;case"\r":t[r+=1]===an&&(r+=1),e.push(r);break;default:r++}this.offsets=e}return t.prototype.locationForIndex=function(t){if(t<0||t>this.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.length:this.offsets[t+1])-e},t}();var on=function(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)};function ln(t){let e=new sn(t),r=({line:t,column:r})=>e.indexForLocation({line:t-1,column:r});return()=>({name:"prettierParsePlugin",visitor:{All(t){(t=>{let{start:e,end:n}=t.loc;e.offset=r(e),n.offset=r(n)})(t),function(t){let e=t.children??t.body;if(e)for(let t=0;t<e.length-1;t++)"TextNode"===e[t].type&&"MustacheStatement"===e[t+1].type&&(e[t].chars=e[t].chars.replace(/\\$/,"\\\\"))}(t)}}})}var cn={parse:function(t){let e;try{e=function(t,e={}){var r,n;let a,i,s,o=e.mode||"precompile";"string"==typeof t?(a=new dr(t,null==(r=e.meta)?void 0:r.moduleName),i="codemod"===o?Le(t,e.parseOptions):Ce(t,e.parseOptions)):t instanceof dr?(a=t,i="codemod"===o?Le(t.source,e.parseOptions):Ce(t.source,e.parseOptions)):(a=new dr("",null==(n=e.meta)?void 0:n.moduleName),i=t),"codemod"===o&&(s=new rn);let l=rr.forCharPositions(a,0,a.source.length);i.loc={source:"(program)",start:l.startPosition,end:l.endPosition};let c=new tn(a,s,o).acceptTemplate(i);if(e.strictMode&&(c.blockParams=e.locals??[]),e&&e.plugins&&e.plugins.ast)for(let t of e.plugins.ast)xr(c,t(Xt({},e,{syntax:en},{plugins:void 0})).visitor);return c}(t,{mode:"codemod",plugins:{ast:[ln(t)]}})}catch(t){let e=function(t){let{location:e,hash:r}=t;if(e){let{start:t,end:r}=e;return"number"!=typeof r.line?{start:t}:e}if(r){let{loc:{last_line:t,last_column:e}}=r;return{start:{line:t,column:e+1}}}}(t);if(e){let r=function(t){let{message:e}=t,r=e.split("\n");return r.length>=4&&/^Parse error on line \d+:$/.test(r[0])&&/^-*\^$/.test(H(!1,r,-2))?H(!1,r,-1):r.length>=4&&/:\s?$/.test(r[0])&&/^\(error occurred in '.*?' @ line \d+ : column \d+\)$/.test(H(!1,r,-1))&&""===r[1]&&""===H(!1,r,-2)&&r.slice(2,-2).every((t=>t.startsWith("|")))?r[0].trim().slice(0,-1):e}(t);throw on(r,{loc:e,cause:t})}throw t}return e},astFormat:"glimmer",locStart:X,locEnd:Z},un={glimmer:Ht},hn=a;exports.default=hn,exports.languages=$t,exports.parsers=Vt,exports.printers=un;
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ "use strict";var e=Object.defineProperty,t=(t,n)=>{for(var i in n)e(t,i,{get:n[i],enumerable:!0})},n={};t(n,{languages:()=>Y,options:()=>J,parsers:()=>q,printers:()=>$e});var i=(e,t,n,i)=>{if(!e||null!=t)return t.replaceAll?t.replaceAll(n,i):n.global?t.replace(n,i):t.split(n).join(i)},r="indent",s="group",a="if-break",o="line",l=()=>{};function c(e){return{type:r,contents:e}}function u(e,t={}){return l(t.expandedStates),{type:s,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function p(e,t="",n={}){return{type:a,breakContents:e,flatContents:t,groupId:n.groupId}}var h={type:o},d={type:o,soft:!0},f=[{type:o,hard:!0},{type:"break-parent"}];function E(e,t){let n=[];for(let i=0;i<t.length;i++)0!==i&&n.push(e),n.push(t[i]);return n}function m(e){return(t,n,i)=>{let r=!(null==i||!i.backwards);if(!1===n)return!1;let{length:s}=t,a=n;for(;a>=0&&a<s;){let n=t.charAt(a);if(e instanceof RegExp){if(!e.test(n))return a}else if(!e.includes(n))return a;r?a--:a++}return(-1===a||a===s)&&a}}var T=m(" \t"),N=m(",; \t"),I=m(/[^\n\r]/);var y=function(e,t,n){let i=!(null==n||!n.backwards);if(!1===t)return!1;let r=e.charAt(t);if(i){if("\r"===e.charAt(t-1)&&"\n"===r)return t-2;if("\n"===r||"\r"===r||"\u2028"===r||"\u2029"===r)return t-1}else{if("\r"===r&&"\n"===e.charAt(t+1))return t+2;if("\n"===r||"\r"===r||"\u2028"===r||"\u2029"===r)return t+1}return t};var v=function(e,t,n={}){let i=T(e,n.backwards?t-1:t,n);return i!==y(e,i,n)};var x=function(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let n=t+2;n<e.length;++n)if("*"===e.charAt(n)&&"/"===e.charAt(n+1))return n+2;return t};var O=function(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?I(e,t):t)};var A=function(e,t){let n=null,i=t;for(;i!==n;)n=i,i=N(e,i),i=x(e,i),i=T(e,i);return i=O(e,i),i=y(e,i),!1!==i&&v(e,i)};var D=function(e){return Array.isArray(e)&&e.length>0},_=class extends Error{name="UnexpectedNodeError";constructor(e,t,n="type"){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},g=null;function k(e){if(null!==g&&(g.property,1)){let e=g;return g=k.prototype=null,e}return g=k.prototype=e??Object.create(null),new k}for(let e=0;e<=10;e++)k();var S,C,b=function(e,t="type"){return function(e){k(e)}(e),function(n){let i=n[t],r=e[i];if(!Array.isArray(r))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return r}},L=class{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},R=class{constructor(e,t,n,i,r,s){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},F={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};new Set(Object.keys(F)),(C=S||(S={})).QUERY="query",C.MUTATION="mutation",C.SUBSCRIPTION="subscription";var w=b(F,"kind");function P(e){return e.loc.start}function V(e){return e.loc.end}var U=function(e,t,n){let{node:i}=e;if(!i.description)return"";let r=[n("description")];return"InputValueDefinition"!==i.kind||i.description.block?r.push(f):r.push(h),r};function M(e,t,n){if(0===n.directives.length)return"";let i=E(h,e.map(t,"directives"));return"FragmentDefinition"===n.kind||"OperationDefinition"===n.kind?u([h,i]):[" ",u(c([d,i]))]}function B(e,t,n,i){return e.map((({isLast:e,node:i})=>{let r=n();return!e&&A(t.originalText,V(i))?[r,f]:r}),i)}function j(e,t){let{node:n}=e;return D(n.variableDefinitions)?u(["(",c([d,E([p("",", "),d],e.map(t,"variableDefinitions"))]),d,")"]):""}function K(e,t){"StringValue"===e.kind&&e.block&&!e.value.includes("\n")&&(t.value=t.value.trim())}K.ignoredProperties=new Set(["loc","comments"]);var $={print:function(e,t,n){let{node:r}=e;switch(r.kind){case"Document":return[...E(f,B(e,t,n,"definitions")),f];case"OperationDefinition":{let i="{"!==t.originalText[P(r)],s=!!r.name;return[i?r.operation:"",i&&s?[" ",n("name")]:"",i&&!s&&D(r.variableDefinitions)?" ":"",j(e,n),M(e,n,r),i||s?" ":"",n("selectionSet")]}case"FragmentDefinition":return["fragment ",n("name"),j(e,n)," on ",n("typeCondition"),M(e,n,r)," ",n("selectionSet")];case"SelectionSet":return["{",c([f,E(f,B(e,t,n,"selections"))]),f,"}"];case"Field":return u([r.alias?[n("alias"),": "]:"",n("name"),r.arguments.length>0?u(["(",c([d,E([p("",", "),d],B(e,t,n,"arguments"))]),d,")"]):"",M(e,n,r),r.selectionSet?" ":"",n("selectionSet")]);case"Name":case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"StringValue":if(r.block){let e=i(!1,r.value,'"""','\\"""').split("\n");return 1===e.length&&(e[0]=e[0].trim()),e.every((e=>""===e))&&(e.length=0),E(f,['"""',...e,'"""'])}return['"',i(!1,i(!1,r.value,/["\\]/g,"\\$&"),"\n","\\n"),'"'];case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return u(["[",c([d,E([p("",", "),d],e.map(n,"values"))]),d,"]"]);case"ObjectValue":{let i=t.bracketSpacing&&r.fields.length>0?" ":"";return u(["{",i,c([d,E([p("",", "),d],e.map(n,"fields"))]),d,p("",i),"}"])}case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),r.arguments.length>0?u(["(",c([d,E([p("",", "),d],B(e,t,n,"arguments"))]),d,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[n("variable"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",M(e,n,r)];case"ObjectTypeExtension":case"ObjectTypeDefinition":case"InputObjectTypeExtension":case"InputObjectTypeDefinition":case"InterfaceTypeExtension":case"InterfaceTypeDefinition":{let{kind:i}=r,s=[];return i.endsWith("TypeDefinition")?s.push(U(e,t,n)):s.push("extend "),i.startsWith("ObjectType")?s.push("type"):i.startsWith("InputObjectType")?s.push("input"):s.push("interface"),s.push(" ",n("name")),!i.startsWith("InputObjectType")&&r.interfaces.length>0&&s.push(" implements ",...function(e,t,n){let{node:i}=e,r=[],{interfaces:s}=i,a=e.map(n,"interfaces");for(let e=0;e<s.length;e++){let n=s[e];r.push(a[e]);let i=s[e+1];if(i){let e=t.originalText.slice(n.loc.end,i.loc.start).includes("#");r.push(" &",e?h:" ")}}return r}(e,t,n)),s.push(M(e,n,r)),r.fields.length>0&&s.push([" {",c([f,E(f,B(e,t,n,"fields"))]),f,"}"]),s}case"FieldDefinition":return[U(e,t,n),n("name"),r.arguments.length>0?u(["(",c([d,E([p("",", "),d],B(e,t,n,"arguments"))]),d,")"]):"",": ",n("type"),M(e,n,r)];case"DirectiveDefinition":return[U(e,t,n),"directive ","@",n("name"),r.arguments.length>0?u(["(",c([d,E([p("",", "),d],B(e,t,n,"arguments"))]),d,")"]):"",r.repeatable?" repeatable":""," on ",...E(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[U(e,t,n),"EnumTypeExtension"===r.kind?"extend ":"","enum ",n("name"),M(e,n,r),r.values.length>0?[" {",c([f,E(f,B(e,t,n,"values"))]),f,"}"]:""];case"EnumValueDefinition":return[U(e,t,n),n("name"),M(e,n,r)];case"InputValueDefinition":return[U(e,t,n),n("name"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",M(e,n,r)];case"SchemaExtension":return["extend schema",M(e,n,r),...r.operationTypes.length>0?[" {",c([f,E(f,B(e,t,n,"operationTypes"))]),f,"}"]:[]];case"SchemaDefinition":return[U(e,t,n),"schema",M(e,n,r)," {",r.operationTypes.length>0?c([f,E(f,B(e,t,n,"operationTypes"))]):"",f,"}"];case"OperationTypeDefinition":return[r.operation,": ",n("type")];case"FragmentSpread":return["...",n("name"),M(e,n,r)];case"InlineFragment":return["...",r.typeCondition?[" on ",n("typeCondition")]:"",M(e,n,r)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return u([U(e,t,n),u(["UnionTypeExtension"===r.kind?"extend ":"","union ",n("name"),M(e,n,r),r.types.length>0?[" =",p(""," "),c([p([h,"| "]),E([h,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[U(e,t,n),"ScalarTypeExtension"===r.kind?"extend ":"","scalar ",n("name"),M(e,n,r)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new _(r,"Graphql","kind")}},massageAstNode:K,hasPrettierIgnore:function(e){var t;let{node:n}=e;return null==(t=null==n?void 0:n.comments)?void 0:t.some((e=>"prettier-ignore"===e.value.trim()))},insertPragma:function(e){return"# @format\n\n"+e},printComment:function(e){let t=e.node;if("Comment"===t.kind)return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return"Comment"!==e.kind},getVisitorKeys:w},G=$,Y=[{linguistLanguageId:139,name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"]}],J={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."}},q={};function Q(e,t){if(!e)throw new Error(t??"Unexpected invariant triggered.")}t(q,{graphql:()=>Ke});var X=/\r\n|[\n\r]/g;function z(e,t){let n=0,i=1;for(let r of e.body.matchAll(X)){if("number"==typeof r.index||Q(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function H(e){return W(e.source,z(e.source,e.start))}function W(e,t){let n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,s=e.locationOffset.line-1,a=t.line+s,o=1===t.line?n:0,l=t.column+o,c=`${e.name}:${a}:${l}\n`,u=i.split(/\r\n|[\n\r]/g),p=u[r];if(p.length>120){let e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return c+Z([[`${a} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return c+Z([[a-1+" |",u[r-1]],[`${a} |`,p],["|","^".padStart(l)],[`${a+1} |`,u[r+1]]])}function Z(e){let t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}var ee,te,ne,ie=class e extends Error{constructor(t,...n){var i,r,s;let{nodes:a,source:o,positions:l,path:c,originalError:u,extensions:p}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(n);super(t),this.name="GraphQLError",this.path=c??void 0,this.originalError=u??void 0,this.nodes=re(Array.isArray(a)?a:a?[a]:void 0);let h=re(null===(i=this.nodes)||void 0===i?void 0:i.map((e=>e.loc)).filter((e=>null!=e)));this.source=o??(null==h||null===(r=h[0])||void 0===r?void 0:r.source),this.positions=l??(null==h?void 0:h.map((e=>e.start))),this.locations=l&&o?l.map((e=>z(o,e))):null==h?void 0:h.map((e=>z(e.source,e.start)));let d=function(e){return"object"==typeof e&&null!==e}(null==u?void 0:u.extensions)?null==u?void 0:u.extensions:void 0;this.extensions=null!==(s=p??d)&&void 0!==s?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let t of this.nodes)t.loc&&(e+="\n\n"+H(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+W(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}};function re(e){return void 0===e||0===e.length?void 0:e}function se(e,t,n){return new ie(`Syntax Error: ${n}`,{source:e,positions:[t]})}function ae(e){return 9===e||32===e}function oe(e){return e>=48&&e<=57}function le(e){return e>=97&&e<=122||e>=65&&e<=90}function ce(e){return le(e)||95===e}function ue(e){return le(e)||oe(e)||95===e}function pe(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let t=0;t<e.length;++t){var s;let a=e[t],o=he(a);o!==a.length&&(i=null!==(s=i)&&void 0!==s?s:t,r=t,0!==t&&o<n&&(n=o))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=i)&&void 0!==t?t:0,r+1)}function he(e){let t=0;for(;t<e.length&&ae(e.charCodeAt(t));)++t;return t}!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(ee||(ee={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(te||(te={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(ne||(ne={}));var de=class{constructor(e){let t=new R(ne.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==ne.EOF)do{if(e.next)e=e.next;else{let t=ye(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===ne.COMMENT);return e}};function fe(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Ee(e,t){return me(e.charCodeAt(t))&&Te(e.charCodeAt(t+1))}function me(e){return e>=55296&&e<=56319}function Te(e){return e>=56320&&e<=57343}function Ne(e,t){let n=e.source.body.codePointAt(t);if(void 0===n)return ne.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Ie(e,t,n,i,r){let s=e.line,a=1+n-e.lineStart;return new R(t,n,i,s,a,r)}function ye(e,t){let n=e.source.body,i=n.length,r=t;for(;r<i;){let t=n.charCodeAt(r);switch(t){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++e.line,e.lineStart=r;continue;case 13:10===n.charCodeAt(r+1)?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return ve(e,r);case 33:return Ie(e,ne.BANG,r,r+1);case 36:return Ie(e,ne.DOLLAR,r,r+1);case 38:return Ie(e,ne.AMP,r,r+1);case 40:return Ie(e,ne.PAREN_L,r,r+1);case 41:return Ie(e,ne.PAREN_R,r,r+1);case 46:if(46===n.charCodeAt(r+1)&&46===n.charCodeAt(r+2))return Ie(e,ne.SPREAD,r,r+3);break;case 58:return Ie(e,ne.COLON,r,r+1);case 61:return Ie(e,ne.EQUALS,r,r+1);case 64:return Ie(e,ne.AT,r,r+1);case 91:return Ie(e,ne.BRACKET_L,r,r+1);case 93:return Ie(e,ne.BRACKET_R,r,r+1);case 123:return Ie(e,ne.BRACE_L,r,r+1);case 124:return Ie(e,ne.PIPE,r,r+1);case 125:return Ie(e,ne.BRACE_R,r,r+1);case 34:return 34===n.charCodeAt(r+1)&&34===n.charCodeAt(r+2)?Ce(e,r):Ae(e,r)}if(oe(t)||45===t)return xe(e,r,t);if(ce(t))return be(e,r);throw se(e.source,r,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":fe(t)||Ee(n,r)?`Unexpected character: ${Ne(e,r)}.`:`Invalid character: ${Ne(e,r)}.`)}return Ie(e,ne.EOF,i,i)}function ve(e,t){let n=e.source.body,i=n.length,r=t+1;for(;r<i;){let e=n.charCodeAt(r);if(10===e||13===e)break;if(fe(e))++r;else{if(!Ee(n,r))break;r+=2}}return Ie(e,ne.COMMENT,t,r,n.slice(t+1,r))}function xe(e,t,n){let i=e.source.body,r=t,s=n,a=!1;if(45===s&&(s=i.charCodeAt(++r)),48===s){if(s=i.charCodeAt(++r),oe(s))throw se(e.source,r,`Invalid number, unexpected digit after 0: ${Ne(e,r)}.`)}else r=Oe(e,r,s),s=i.charCodeAt(r);if(46===s&&(a=!0,s=i.charCodeAt(++r),r=Oe(e,r,s),s=i.charCodeAt(r)),(69===s||101===s)&&(a=!0,s=i.charCodeAt(++r),(43===s||45===s)&&(s=i.charCodeAt(++r)),r=Oe(e,r,s),s=i.charCodeAt(r)),46===s||ce(s))throw se(e.source,r,`Invalid number, expected digit but got: ${Ne(e,r)}.`);return Ie(e,a?ne.FLOAT:ne.INT,t,r,i.slice(t,r))}function Oe(e,t,n){if(!oe(n))throw se(e.source,t,`Invalid number, expected digit but got: ${Ne(e,t)}.`);let i=e.source.body,r=t+1;for(;oe(i.charCodeAt(r));)++r;return r}function Ae(e,t){let n=e.source.body,i=n.length,r=t+1,s=r,a="";for(;r<i;){let i=n.charCodeAt(r);if(34===i)return a+=n.slice(s,r),Ie(e,ne.STRING,t,r+1,a);if(92!==i){if(10===i||13===i)break;if(fe(i))++r;else{if(!Ee(n,r))throw se(e.source,r,`Invalid character within String: ${Ne(e,r)}.`);r+=2}}else{a+=n.slice(s,r);let t=117===n.charCodeAt(r+1)?123===n.charCodeAt(r+2)?De(e,r):_e(e,r):Se(e,r);a+=t.value,r+=t.size,s=r}}throw se(e.source,r,"Unterminated string.")}function De(e,t){let n=e.source.body,i=0,r=3;for(;r<12;){let e=n.charCodeAt(t+r++);if(125===e){if(r<5||!fe(i))break;return{value:String.fromCodePoint(i),size:r}}if(i=i<<4|ke(e),i<0)break}throw se(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+r)}".`)}function _e(e,t){let n=e.source.body,i=ge(n,t+2);if(fe(i))return{value:String.fromCodePoint(i),size:6};if(me(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){let e=ge(n,t+8);if(Te(e))return{value:String.fromCodePoint(i,e),size:12}}throw se(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function ge(e,t){return ke(e.charCodeAt(t))<<12|ke(e.charCodeAt(t+1))<<8|ke(e.charCodeAt(t+2))<<4|ke(e.charCodeAt(t+3))}function ke(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Se(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw se(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Ce(e,t){let n=e.source.body,i=n.length,r=e.lineStart,s=t+3,a=s,o="",l=[];for(;s<i;){let i=n.charCodeAt(s);if(34===i&&34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)){o+=n.slice(a,s),l.push(o);let i=Ie(e,ne.BLOCK_STRING,t,s+3,pe(l).join("\n"));return e.line+=l.length-1,e.lineStart=r,i}if(92!==i||34!==n.charCodeAt(s+1)||34!==n.charCodeAt(s+2)||34!==n.charCodeAt(s+3))if(10!==i&&13!==i)if(fe(i))++s;else{if(!Ee(n,s))throw se(e.source,s,`Invalid character within String: ${Ne(e,s)}.`);s+=2}else o+=n.slice(a,s),l.push(o),13===i&&10===n.charCodeAt(s+1)?s+=2:++s,o="",a=s,r=s;else o+=n.slice(a,s),a=s+1,s+=4}throw se(e.source,s,"Unterminated string.")}function be(e,t){let n=e.source.body,i=n.length,r=t+1;for(;r<i;){if(!ue(n.charCodeAt(r)))break;++r}return Ie(e,ne.NAME,t,r,n.slice(t,r))}function Le(e,t){if(!e)throw new Error(t)}function Re(e){return Fe(e,[])}function Fe(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){let t=e.toJSON();if(t!==e)return"string"==typeof t?t:Fe(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),i=e.length-n,r=[];for(let i=0;i<n;++i)r.push(Fe(e[i],t));return 1===i?r.push("... 1 more item"):i>1&&r.push(`... ${i} more items`),"["+r.join(", ")+"]"}(e,n);return function(e,t){let n=Object.entries(e);return 0===n.length?"{}":t.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]":"{ "+n.map((([e,n])=>e+": "+Fe(n,t))).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}var we=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;let i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){let t=Re(e);throw new Error(`Cannot use ${i} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1},Pe=class{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||Le(!1,`Body must be a string. Received: ${Re(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Le(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Le(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};var Ve=class{constructor(e,t={}){let n=function(e){return we(e,Pe)}(e)?e:new Pe(e);this._lexer=new de(n),this._options=t,this._tokenCounter=0}parseName(){let e=this.expectToken(ne.NAME);return this.node(e,{kind:te.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:te.DOCUMENT,definitions:this.many(ne.SOF,this.parseDefinition,ne.EOF)})}parseDefinition(){if(this.peek(ne.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===ne.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw se(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e=this._lexer.token;if(this.peek(ne.BRACE_L))return this.node(e,{kind:te.OPERATION_DEFINITION,operation:S.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let t,n=this.parseOperationType();return this.peek(ne.NAME)&&(t=this.parseName()),this.node(e,{kind:te.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(ne.NAME);switch(e.value){case"query":return S.QUERY;case"mutation":return S.MUTATION;case"subscription":return S.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(ne.PAREN_L,this.parseVariableDefinition,ne.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:te.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(ne.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(ne.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(ne.DOLLAR),this.node(e,{kind:te.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:te.SELECTION_SET,selections:this.many(ne.BRACE_L,this.parseSelection,ne.BRACE_R)})}parseSelection(){return this.peek(ne.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,n=this._lexer.token,i=this.parseName();return this.expectOptionalToken(ne.COLON)?(e=i,t=this.parseName()):t=i,this.node(n,{kind:te.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(ne.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(ne.PAREN_L,t,ne.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(ne.COLON),this.node(t,{kind:te.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(ne.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(ne.NAME)?this.node(e,{kind:te.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:te.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:te.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:te.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case ne.BRACKET_L:return this.parseList(e);case ne.BRACE_L:return this.parseObject(e);case ne.INT:return this.advanceLexer(),this.node(t,{kind:te.INT,value:t.value});case ne.FLOAT:return this.advanceLexer(),this.node(t,{kind:te.FLOAT,value:t.value});case ne.STRING:case ne.BLOCK_STRING:return this.parseStringLiteral();case ne.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:te.BOOLEAN,value:!0});case"false":return this.node(t,{kind:te.BOOLEAN,value:!1});case"null":return this.node(t,{kind:te.NULL});default:return this.node(t,{kind:te.ENUM,value:t.value})}case ne.DOLLAR:if(e){if(this.expectToken(ne.DOLLAR),this._lexer.token.kind===ne.NAME){let e=this._lexer.token.value;throw se(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:te.STRING,value:e.value,block:e.kind===ne.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:te.LIST,values:this.any(ne.BRACKET_L,(()=>this.parseValueLiteral(e)),ne.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:te.OBJECT,fields:this.any(ne.BRACE_L,(()=>this.parseObjectField(e)),ne.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(ne.COLON),this.node(t,{kind:te.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(ne.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(ne.AT),this.node(t,{kind:te.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(ne.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(ne.BRACKET_R),e=this.node(t,{kind:te.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(ne.BANG)?this.node(t,{kind:te.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:te.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(ne.STRING)||this.peek(ne.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),i=this.many(ne.BRACE_L,this.parseOperationTypeDefinition,ne.BRACE_R);return this.node(e,{kind:te.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(ne.COLON);let n=this.parseNamedType();return this.node(e,{kind:te.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:te.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:te.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(ne.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(ne.BRACE_L,this.parseFieldDefinition,ne.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(ne.COLON);let r=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:te.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:s})}parseArgumentDefs(){return this.optionalMany(ne.PAREN_L,this.parseInputValueDef,ne.PAREN_R)}parseInputValueDef(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(ne.COLON);let i,r=this.parseTypeReference();this.expectOptionalToken(ne.EQUALS)&&(i=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(e,{kind:te.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:s})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:te.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:te.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(ne.EQUALS)?this.delimitedMany(ne.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:te.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(ne.BRACE_L,this.parseEnumValueDefinition,ne.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:te.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw se(this._lexer.source,this._lexer.token.start,`${Ue(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:te.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(ne.BRACE_L,this.parseInputValueDef,ne.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===ne.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),n=this.optionalMany(ne.BRACE_L,this.parseOperationTypeDefinition,ne.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:te.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:te.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:te.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:te.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:te.UNION_TYPE_EXTENSION,name:t,directives:n,types:i})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:te.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:te.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(ne.AT);let n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(e,{kind:te.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:s})}parseDirectiveLocations(){return this.delimitedMany(ne.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(ee,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new L(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw se(this._lexer.source,t.start,`Expected ${Me(e)}, found ${Ue(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind!==ne.NAME||t.value!==e)throw se(this._lexer.source,t.start,`Expected "${e}", found ${Ue(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===ne.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=e??this._lexer.token;return se(this._lexer.source,t.start,`Unexpected ${Ue(t)}.`)}any(e,t,n){this.expectToken(e);let i=[];for(;!this.expectOptionalToken(n);)i.push(t.call(this));return i}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==ne.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw se(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}};function Ue(e){let t=e.value;return Me(e.kind)+(null!=t?` "${t}"`:"")}function Me(e){return function(e){return e===ne.BANG||e===ne.DOLLAR||e===ne.AMP||e===ne.PAREN_L||e===ne.PAREN_R||e===ne.SPREAD||e===ne.COLON||e===ne.EQUALS||e===ne.AT||e===ne.BRACKET_L||e===ne.BRACKET_R||e===ne.BRACE_L||e===ne.PIPE||e===ne.BRACE_R}(e)?`"${e}"`:e}var Be=function(e,t){let n=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(n,t)};var je={allowLegacyFragmentVariables:!0};var Ke={parse:function(e){let t;try{t=function(e,t){return new Ve(e,t).parseDocument()}(e,je)}catch(e){throw function(e){if("GraphQLError"===(null==e?void 0:e.name)){let{message:t,locations:[n]}=e;return Be(t,{loc:{start:n},cause:e})}return e}(e)}return t.comments=function(e){let t=[],{startToken:n,endToken:i}=e.loc;for(let e=n;e!==i;e=e.next)"Comment"===e.kind&&t.push({...e,loc:{start:e.start,end:e.end}});return t}(t),t},astFormat:"graphql",hasPragma:function(e){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(e)},locStart:P,locEnd:V},$e={graphql:G},Ge=n;exports.default=Ge,exports.languages=Y,exports.options=J,exports.parsers=q,exports.printers=$e;