gant-core 2.0.2 → 2.0.5
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.
- package/CHANGELOG.md +18 -0
- package/bin/index.js +21 -1
- package/bin/styletext-loader.mjs +30 -0
- package/lib/cli/config/index.js +155 -2
- package/lib/cli/config/index.mjs +3 -0
- package/lib/cli/copyfiles/index.js +33 -2
- package/lib/cli/copyfiles/index.mjs +3 -0
- package/lib/cli/create/config/index.js +1226 -4
- package/lib/cli/create/config/index.mjs +11 -0
- package/lib/cli/create/index.js +4 -2
- package/lib/cli/create/index.mjs +3 -0
- package/lib/cli/create/module/index.js +33214 -2
- package/lib/cli/create/module/index.mjs +3 -0
- package/lib/cli/i18n/index.js +22179 -3
- package/lib/cli/i18n/index.mjs +10 -0
- package/lib/cli/i18n/utils.js +180 -2
- package/lib/cli/i18n/utils.mjs +3 -0
- package/lib/cli/index.js +3655 -2
- package/lib/cli/index.mjs +3 -0
- package/lib/cli/routes/index.js +75 -2
- package/lib/cli/routes/index.mjs +3 -0
- package/lib/cli/tsconfig/index.js +70 -2
- package/lib/cli/tsconfig/index.mjs +3 -0
- package/lib/cli/utils/detectPort.js +120 -2
- package/lib/cli/utils/detectPort.mjs +3 -0
- package/lib/cli/utils/getJavascriptfile.js +14 -2
- package/lib/cli/utils/getJavascriptfile.mjs +3 -0
- package/lib/cli/utils/index.js +4948 -2
- package/lib/cli/utils/index.mjs +3 -0
- package/lib/cli/webpack/Webpack.js +60 -2
- package/lib/cli/webpack/Webpack.mjs +3 -0
- package/lib/cli/webpack/config/analyzer.config.js +17 -2
- package/lib/cli/webpack/config/analyzer.config.mjs +3 -0
- package/lib/cli/webpack/config/browsers.js +13 -2
- package/lib/cli/webpack/config/browsers.mjs +3 -0
- package/lib/cli/webpack/config/cssRules.js +80 -2
- package/lib/cli/webpack/config/cssRules.mjs +3 -0
- package/lib/cli/webpack/config/default.config.js +179 -2
- package/lib/cli/webpack/config/default.config.mjs +3 -0
- package/lib/cli/webpack/config/development.config.js +45 -2
- package/lib/cli/webpack/config/development.config.mjs +3 -0
- package/lib/cli/webpack/config/framework/index.js +25 -2
- package/lib/cli/webpack/config/framework/index.mjs +3 -0
- package/lib/cli/webpack/config/framework/react.js +23 -2
- package/lib/cli/webpack/config/framework/react.mjs +3 -0
- package/lib/cli/webpack/config/framework/vue.js +33 -2
- package/lib/cli/webpack/config/framework/vue.mjs +3 -0
- package/lib/cli/webpack/config/index.js +23 -2
- package/lib/cli/webpack/config/index.mjs +3 -0
- package/lib/cli/webpack/config/production.config.js +74 -2
- package/lib/cli/webpack/config/production.config.mjs +3 -0
- package/lib/cli/webpack/plugins/copy.js +20 -2
- package/lib/cli/webpack/plugins/copy.mjs +3 -0
- package/lib/cli/webpack/plugins/index.js +4 -2
- package/lib/cli/webpack/plugins/index.mjs +3 -0
- package/package.json +2 -2
- package/rollup.config.js +5 -4
- package/.changeset/README.md +0 -8
- package/.changeset/config.json +0 -11
- package/lib/cli/acorn.js +0 -3
- package/lib/cli/angular.js +0 -3
- package/lib/cli/babel.js +0 -3
- package/lib/cli/estree.js +0 -3
- package/lib/cli/flow.js +0 -3
- package/lib/cli/glimmer.js +0 -3
- package/lib/cli/graphql.js +0 -3
- package/lib/cli/html.js +0 -3
- package/lib/cli/markdown.js +0 -3
- package/lib/cli/meriyah.js +0 -3
- package/lib/cli/msmain.js +0 -65
- package/lib/cli/postcss.js +0 -3
- package/lib/cli/typescript.js +0 -3
- package/lib/cli/yaml.js +0 -3
package/lib/cli/glimmer.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
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={};e(r,{languages:()=>$r,parsers:()=>Ur,printers:()=>Gr});var n=(t,e)=>(r,n,...a)=>1|r&&null==n?void 0:(e.call(n)??n[t]).apply(n,a),a=String.prototype.replaceAll??function(t,e){return t.global?this.replace(t,e):this.split(t).join(e)},s=n("replaceAll",function(){if("string"==typeof this)return a});function i(t){return this[t<0?this.length+t:t]}var o=n("at",function(){if(Array.isArray(this)||"string"==typeof this)return i}),l=()=>{},c="string",u="array",h="cursor",p="indent",d="align",m="trim",f="group",g="fill",y="if-break",b="indent-if-break",v="line-suffix",S="line-suffix-boundary",w="line",k="label",T="break-parent",E=new Set([h,p,d,m,f,g,y,b,v,S,w,k,T]);var N=function(t){if("string"==typeof t)return c;if(Array.isArray(t))return u;if(!t)return;let{type:e}=t;return E.has(e)?e:void 0};function P(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(N(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))([...E].map(t=>`'${t}'`));return`Unexpected doc.type '${t.type}'.\nExpected it to be ${n}.`}var x=class extends Error{name="InvalidDocError";constructor(t){super(P(t)),this.doc=t}};function A(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(N(t)){case u:return e(t.map(n));case g:return e({...t,parts:t.parts.map(n)});case y:return e({...t,breakContents:n(t.breakContents),flatContents:n(t.flatContents)});case f:{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 d:case p:case b:case k:case v:return e({...t,contents:n(t.contents)});case c:case h:case m:case S:case w:case T:return e(t);default:throw new x(t)}}(t);return r.set(t,a),a}}function D(t,e=F){return A(t,t=>"string"==typeof t?R(e,t.split("\n")):t)}var C=l;function L(t){return{type:p,contents:t}}function q(t){return function(t,e){return{type:d,contents:e,n:t}}(-1,t)}var _={type:T};function I(t){return{type:g,parts:t}}function O(t,e={}){return C(e.expandedStates),{type:f,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function B(t,e="",r={}){return{type:y,breakContents:t,flatContents:e,groupId:r.groupId}}function R(t,e){let r=[];for(let n=0;n<e.length;n++)0!==n&&r.push(t),r.push(e[n]);return r}var V={type:w},$={type:w,soft:!0},U=[{type:w,hard:!0},_],F=[{type:w,hard:!0,literal:!0},_],H=Object.freeze({character:"'",codePoint:39}),z=Object.freeze({character:'"',codePoint:34}),M=Object.freeze({preferred:H,alternate:z}),j=Object.freeze({preferred:z,alternate:H});var G=function(t,e){let{preferred:r,alternate:n}=!0===e||"'"===e?M:j,{length:a}=t,s=0,i=0;for(let e=0;e<a;e++){let a=t.charCodeAt(e);a===r.codePoint?s++:a===n.codePoint&&i++}return(s>i?n:r).character};var W=new class{#t;constructor(t){this.#t=new Set(t)}getLeadingWhitespaceCount(t){let e=this.#t,r=0;for(let n=0;n<t.length&&e.has(t.charAt(n));n++)r++;return r}getTrailingWhitespaceCount(t){let e=this.#t,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 this.#t.has(t.charAt(0))}hasTrailingWhitespace(t){return this.#t.has(o(0,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")}([...this.#t].join(""))}]+`,n=new RegExp(e?`(${r})`:r,"u");return t.split(n)}hasWhitespaceCharacter(t){let e=this.#t;return Array.prototype.some.call(t,t=>e.has(t))}hasNonWhitespaceCharacter(t){let e=this.#t;return Array.prototype.some.call(t,t=>!e.has(t))}isWhitespaceOnly(t){let e=this.#t;return Array.prototype.every.call(t,t=>e.has(t))}#e(t){let e=Number.POSITIVE_INFINITY;for(let r of t.split("\n")){if(0===r.length)continue;let t=this.getLeadingWhitespaceCount(r);if(0===t)return 0;r.length!==t&&t<e&&(e=t)}return e===Number.POSITIVE_INFINITY?0:e}dedentString(t){let e=this.#e(t);return 0===e?t:t.split("\n").map(t=>t.slice(e)).join("\n")}}(["\t","\n","\f","\r"," "]);var K=function(t){return Array.isArray(t)&&t.length>0},Q=class extends Error{name="UnexpectedNodeError";constructor(t,e,r="type"){super(`Unexpected ${e} node ${r}: ${JSON.stringify(t[r])}.`),this.node=t}};function J(t,e,r){if("TextNode"===t.type){let n=t.chars.trim();if(!n)return null;"style"===r.tag&&1===r.children.length&&r.children[0]===t?e.chars="":e.chars=W.split(n).join(" ")}"ElementNode"===t.type&&(delete e.startTag,delete e.openTag,delete e.parts,delete e.endTag,delete e.closeTag,delete e.nameNode,delete e.body,delete e.blockParamNodes,delete e.params,delete e.path),"Block"===t.type&&(delete e.blockParamNodes,delete e.params),"AttrNode"===t.type&&"class"===t.name.toLowerCase()&&delete e.value,"PathExpression"===t.type&&(e.head=t.head.original)}J.ignoredProperties=new Set(["loc","selfClosing"]);var Y=J;var Z=function(t){let{node:e}=t;if("TextNode"!==e.type)return;let{parent:r}=t;if("ElementNode"!==r.type||"style"!==r.tag||1!==r.children.length||r.children[0]!==e)return;let n=r.attributes.find(t=>"AttrNode"===t.type&&"lang"===t.name);return n&&("TextNode"!==n.value.type||""!==n.value.chars&&"css"!==n.value.chars)?void 0:async t=>{let r=e.chars;return r.trim()?await t(r,{parser:"css"}):""}},X=null;function tt(t){if(null!==X&&(X.property,1)){let t=X;return X=tt.prototype=null,t}return X=tt.prototype=t??Object.create(null),new tt}for(let t=0;t<=10;t++)tt();var et=function(t,e="type"){return function(t){tt(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}},rt=Object.assign,nt=console;var at=function(){var t=function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r},e=[2,52],r=[1,20],n=[5,14,15,19,29,34,39,44,47,48,53,57,61],a=[1,44],s=[1,40],i=[1,43],o=[1,33],l=[1,34],c=[1,35],u=[1,36],h=[1,37],p=[1,42],d=[1,46],m=[14,15,19,29,34,39,44,47,48,53,57,61],f=[14,15,19,29,34,44,47,48,53,57,61],g=[15,18],y=[14,15,19,29,34,47,48,53,57,61],b=[33,67,73,75,84,85,86,87,88,89],v=[23,33,56,67,68,73,75,77,79,84,85,86,87,88,89],S=[1,62],w=[1,63],k=[23,33,56,68,73,79],T=[23,33,56,67,68,73,75,77,79,84,85,86,87,88,89,92,93],E=[2,51],N=[1,64],P=[67,73,75,77,84,85,86,87,88,89],x=[56,67,73,75,84,85,86,87,88,89],A=[1,75],D=[1,76],C=[1,83],L=[33,67,73,75,79,84,85,86,87,88,89],q=[23,67,73,75,84,85,86,87,88,89],_=[67,68,73,75,84,85,86,87,88,89],I=[33,79],O=[1,134],B=[73,81],R={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,hash:49,expr:50,mustache_repetition0:51,mustache_option0:52,OPEN_UNESCAPED:53,mustache_repetition1:54,mustache_option1:55,CLOSE_UNESCAPED:56,OPEN_PARTIAL:57,partial_repetition0:58,partial_option0:59,openPartialBlock:60,OPEN_PARTIAL_BLOCK:61,openPartialBlock_repetition0:62,openPartialBlock_option0:63,exprHead:64,arrayLiteral:65,sexpr:66,OPEN_SEXPR:67,CLOSE_SEXPR:68,sexpr_repetition0:69,sexpr_option0:70,hash_repetition_plus0:71,hashSegment:72,ID:73,EQUALS:74,OPEN_ARRAY:75,arrayLiteral_repetition0:76,CLOSE_ARRAY:77,blockParams:78,OPEN_BLOCK_PARAMS:79,blockParams_repetition_plus0:80,CLOSE_BLOCK_PARAMS:81,path:82,dataName:83,STRING:84,NUMBER:85,BOOLEAN:86,UNDEFINED:87,NULL:88,DATA:89,pathSegments:90,sep:91,SEP:92,PRIVATE_SEP:93,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",53:"OPEN_UNESCAPED",56:"CLOSE_UNESCAPED",57:"OPEN_PARTIAL",61:"OPEN_PARTIAL_BLOCK",67:"OPEN_SEXPR",68:"CLOSE_SEXPR",73:"ID",74:"EQUALS",75:"OPEN_ARRAY",77:"CLOSE_ARRAY",79:"OPEN_BLOCK_PARAMS",81:"CLOSE_BLOCK_PARAMS",84:"STRING",85:"NUMBER",86:"BOOLEAN",87:"UNDEFINED",88:"NULL",89:"DATA",92:"SEP",93:"PRIVATE_SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,3],[8,5],[8,5],[11,5],[12,3],[60,5],[50,1],[50,1],[64,1],[64,1],[66,3],[66,5],[49,1],[72,3],[65,3],[78,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[83,2],[91,1],[91,1],[82,3],[82,1],[90,3],[90,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[51,0],[51,2],[52,0],[52,1],[54,0],[54,2],[55,0],[55,1],[58,0],[58,2],[59,0],[59,1],[62,0],[62,2],[63,0],[63,1],[69,0],[69,2],[70,0],[70,1],[71,1],[71,2],[76,0],[76,2],[80,1],[80,2]],performAction:function(t,e,r,n,a,s,i){var o=s.length-1;switch(a){case 1:return s[o-1];case 2:this.$=n.prepareProgram(s[o]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 28:case 29:case 30:case 31:case 38:case 39:case 46:case 47:this.$=s[o];break;case 9:this.$={type:"CommentStatement",value:n.stripComment(s[o]),strip:n.stripFlags(s[o],s[o]),loc:n.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:s[o],value:s[o],loc:n.locInfo(this._$)};break;case 11:this.$=n.prepareRawBlock(s[o-2],s[o-1],s[o],this._$);break;case 12:this.$={path:s[o-3],params:s[o-2],hash:s[o-1]};break;case 13:this.$=n.prepareBlock(s[o-3],s[o-2],s[o-1],s[o],!1,this._$);break;case 14:this.$=n.prepareBlock(s[o-3],s[o-2],s[o-1],s[o],!0,this._$);break;case 15:this.$={open:s[o-5],path:s[o-4],params:s[o-3],hash:s[o-2],blockParams:s[o-1],strip:n.stripFlags(s[o-5],s[o])};break;case 16:case 17:this.$={path:s[o-4],params:s[o-3],hash:s[o-2],blockParams:s[o-1],strip:n.stripFlags(s[o-5],s[o])};break;case 18:this.$={strip:n.stripFlags(s[o-1],s[o-1]),program:s[o]};break;case 19:var l=n.prepareBlock(s[o-2],s[o-1],s[o],s[o],!1,this._$),c=n.prepareProgram([l],s[o-1].loc);c.chained=!0,this.$={strip:s[o-2].strip,program:c,chain:!0};break;case 21:this.$={path:s[o-1],strip:n.stripFlags(s[o-2],s[o])};break;case 22:this.$=n.prepareMustache(n.syntax.hash(s[o-1],n.locInfo(this._$),{yy:n,syntax:"expr"}),[],void 0,s[o-2],n.stripFlags(s[o-2],s[o]),this._$);break;case 23:case 24:this.$=n.prepareMustache(s[o-3],s[o-2],s[o-1],s[o-4],n.stripFlags(s[o-4],s[o]),this._$);break;case 25:this.$={type:"PartialStatement",name:s[o-3],params:s[o-2],hash:s[o-1],indent:"",strip:n.stripFlags(s[o-4],s[o]),loc:n.locInfo(this._$)};break;case 26:this.$=n.preparePartialBlock(s[o-2],s[o-1],s[o],this._$);break;case 27:this.$={path:s[o-3],params:s[o-2],hash:s[o-1],strip:n.stripFlags(s[o-4],s[o])};break;case 32:this.$=n.syntax.hash(s[o-1],n.locInfo(this._$),{yy:n,syntax:"expr"});break;case 33:this.$={type:"SubExpression",path:s[o-3],params:s[o-2],hash:s[o-1],loc:n.locInfo(this._$)};break;case 34:this.$={type:"Hash",pairs:s[o],loc:n.locInfo(this._$)};break;case 35:this.$={type:"HashPair",key:n.id(s[o-2]),value:s[o],loc:n.locInfo(this._$)};break;case 36:this.$=n.syntax.square(s[o-1],n.locInfo(this._$),{yy:n,syntax:"expr"});break;case 37:this.$=n.id(s[o-1]);break;case 40:this.$={type:"StringLiteral",value:s[o],original:s[o],loc:n.locInfo(this._$)};break;case 41:this.$={type:"NumberLiteral",value:Number(s[o]),original:Number(s[o]),loc:n.locInfo(this._$)};break;case 42:this.$={type:"BooleanLiteral",value:"true"===s[o],original:"true"===s[o],loc:n.locInfo(this._$)};break;case 43:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:n.locInfo(this._$)};break;case 44:this.$={type:"NullLiteral",original:null,value:null,loc:n.locInfo(this._$)};break;case 45:this.$=n.preparePath(!0,!1,s[o],this._$);break;case 48:this.$=n.preparePath(!1,s[o-2],s[o],this._$);break;case 49:this.$=n.preparePath(!1,!1,s[o],this._$);break;case 50:s[o-2].push({part:n.id(s[o]),original:s[o],separator:s[o-1]}),this.$=s[o-2];break;case 51:this.$=[{part:n.id(s[o]),original:s[o]}];break;case 52:case 54:case 56:case 64:case 70:case 76:case 84:case 88:case 92:case 96:case 100:case 106:this.$=[];break;case 53:case 55:case 57:case 65:case 71:case 77:case 85:case 89:case 93:case 97:case 101:case 105:case 107:case 109:s[o-1].push(s[o]);break;case 104:case 108:this.$=[s[o]]}},table:[t([5,14,15,19,29,34,48,53,57,61],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,60:19,14:[1,12],15:r,19:[1,23],29:[1,21],34:[1,22],48:[1,13],53:[1,14],57:[1,18],61:[1,24]}),{1:[2,1]},t(n,[2,53]),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:28,49:25,50:26,64:29,65:38,66:39,67:a,71:27,72:30,73:s,75:i,82:31,83:32,84:o,85:l,86:c,87:u,88:h,89:p,90:41},{20:28,50:45,64:29,65:38,66:39,67:a,73:d,75:i,82:31,83:32,84:o,85:l,86:c,87:u,88:h,89:p,90:41},t(m,e,{6:3,4:47}),t(f,e,{6:3,4:48}),t(g,[2,54],{17:49}),{20:28,50:50,64:29,65:38,66:39,67:a,73:d,75:i,82:31,83:32,84:o,85:l,86:c,87:u,88:h,89:p,90:41},t(y,e,{6:3,4:51}),t([5,14,15,18,19,29,34,39,44,47,48,53,57,61],[2,10]),{20:52,64:53,65:38,66:39,67:a,73:d,75:i,82:31,83:32,84:o,85:l,86:c,87:u,88:h,89:p,90:41},{20:54,64:53,65:38,66:39,67:a,73:d,75:i,82:31,83:32,84:o,85:l,86:c,87:u,88:h,89:p,90:41},{20:55,64:53,65:38,66:39,67:a,73:d,75:i,82:31,83:32,84:o,85:l,86:c,87:u,88:h,89:p,90:41},{20:28,50:56,64:29,65:38,66:39,67:a,73:d,75:i,82:31,83:32,84:o,85:l,86:c,87:u,88:h,89:p,90:41},{33:[1,57]},t(b,[2,84],{51:58}),t([23,33,56,68,79],[2,34],{72:59,73:[1,60]}),t(v,[2,28]),t(v,[2,29],{91:61,92:S,93:w}),t(k,[2,104]),t(v,[2,38]),t(v,[2,39]),t(v,[2,40]),t(v,[2,41]),t(v,[2,42]),t(v,[2,43]),t(v,[2,44]),t(T,[2,30]),t(T,[2,31]),t([23,33,56,67,68,73,75,79,84,85,86,87,88,89,92,93],E,{74:N}),t(v,[2,49],{91:65,92:S,93:w}),{73:d,90:66},t(P,[2,106],{76:67}),{20:28,49:68,50:69,64:29,65:38,66:39,67:a,71:27,72:30,73:s,75:i,82:31,83:32,84:o,85:l,86:c,87:u,88:h,89:p,90:41},t(x,[2,88],{54:70}),t(T,E),{25:71,38:73,39:A,43:74,44:D,45:72,47:[2,60]},{28:77,43:78,44:D,47:[2,62]},{13:80,15:r,18:[1,79]},t(b,[2,92],{58:81}),{26:82,47:C},t(L,[2,64],{30:84}),{91:61,92:S,93:w},t(L,[2,70],{35:85}),t(q,[2,56],{21:86}),t(b,[2,96],{62:87}),t(n,[2,22]),{20:28,33:[2,86],49:90,50:89,52:88,64:29,65:38,66:39,67:a,71:27,72:30,73:s,75:i,82:31,83:32,84:o,85:l,86:c,87:u,88:h,89:p,90:41},t(k,[2,105]),{74:N},{73:d,90:91},{73:[2,46]},{73:[2,47]},{20:28,50:92,64:29,65:38,66:39,67:a,73:d,75:i,82:31,83:32,84:o,85:l,86:c,87:u,88:h,89:p,90:41},{73:[1,93]},t(v,[2,45],{91:65,92:S,93:w}),{20:28,50:95,64:29,65:38,66:39,67:a,73:d,75:i,77:[1,94],82:31,83:32,84:o,85:l,86:c,87:u,88:h,89:p,90:41},{68:[1,96]},t(_,[2,100],{69:97}),{20:28,49:100,50:99,55:98,56:[2,90],64:29,65:38,66:39,67:a,71:27,72:30,73:s,75:i,82:31,83:32,84:o,85:l,86:c,87:u,88:h,89:p,90:41},{26:101,47:C},{47:[2,61]},t(m,e,{6:3,4:102}),{47:[2,20]},{20:103,64:53,65:38,66:39,67:a,73:d,75:i,82:31,83:32,84:o,85:l,86:c,87:u,88:h,89:p,90:41},t(y,e,{6:3,4:104}),{26:105,47:C},{47:[2,63]},t(n,[2,11]),t(g,[2,55]),{20:28,33:[2,94],49:108,50:107,59:106,64:29,65:38,66:39,67:a,71:27,72:30,73:s,75:i,82:31,83:32,84:o,85:l,86:c,87:u,88:h,89:p,90:41},t(n,[2,26]),{20:109,64:53,65:38,66:39,67:a,73:d,75:i,82:31,83:32,84:o,85:l,86:c,87:u,88:h,89:p,90:41},t(I,[2,66],{71:27,20:28,64:29,72:30,82:31,83:32,65:38,66:39,90:41,31:110,50:111,49:112,67:a,73:s,75:i,84:o,85:l,86:c,87:u,88:h,89:p}),t(I,[2,72],{71:27,20:28,64:29,72:30,82:31,83:32,65:38,66:39,90:41,36:113,50:114,49:115,67:a,73:s,75:i,84:o,85:l,86:c,87:u,88:h,89:p}),{20:28,22:116,23:[2,58],49:118,50:117,64:29,65:38,66:39,67:a,71:27,72:30,73:s,75:i,82:31,83:32,84:o,85:l,86:c,87:u,88:h,89:p,90:41},{20:28,33:[2,98],49:121,50:120,63:119,64:29,65:38,66:39,67:a,71:27,72:30,73:s,75:i,82:31,83:32,84:o,85:l,86:c,87:u,88:h,89:p,90:41},{33:[1,122]},t(b,[2,85]),{33:[2,87]},t(v,[2,48],{91:65,92:S,93:w}),t(k,[2,35]),t(T,[2,50]),t(T,[2,36]),t(P,[2,107]),t(T,[2,32]),{20:28,49:125,50:124,64:29,65:38,66:39,67:a,68:[2,102],70:123,71:27,72:30,73:s,75:i,82:31,83:32,84:o,85:l,86:c,87:u,88:h,89:p,90:41},{56:[1,126]},t(x,[2,89]),{56:[2,91]},t(n,[2,13]),{38:73,39:A,43:74,44:D,45:128,46:127,47:[2,82]},t(L,[2,76],{40:129}),{47:[2,18]},t(n,[2,14]),{33:[1,130]},t(b,[2,93]),{33:[2,95]},{33:[1,131]},{32:132,33:[2,68],78:133,79:O},t(L,[2,65]),t(I,[2,67]),{33:[2,74],37:135,78:136,79:O},t(L,[2,71]),t(I,[2,73]),{23:[1,137]},t(q,[2,57]),{23:[2,59]},{33:[1,138]},t(b,[2,97]),{33:[2,99]},t(n,[2,23]),{68:[1,139]},t(_,[2,101]),{68:[2,103]},t(n,[2,24]),{47:[2,19]},{47:[2,83]},t(I,[2,78],{71:27,20:28,64:29,72:30,82:31,83:32,65:38,66:39,90:41,41:140,50:141,49:142,67:a,73:s,75:i,84:o,85:l,86:c,87:u,88:h,89:p}),t(n,[2,25]),t(n,[2,21]),{33:[1,143]},{33:[2,69]},{73:[1,145],80:144},{33:[1,146]},{33:[2,75]},t(g,[2,12]),t(y,[2,27]),t(T,[2,33]),{33:[2,80],42:147,78:148,79:O},t(L,[2,77]),t(I,[2,79]),t(m,[2,15]),{73:[1,150],81:[1,149]},t(B,[2,108]),t(f,[2,16]),{33:[1,151]},{33:[2,81]},{33:[2,37]},t(B,[2,109]),t(m,[2,17])],defaultActions:{4:[2,1],62:[2,46],63:[2,47],72:[2,61],74:[2,20],78:[2,63],90:[2,87],100:[2,91],104:[2,18],108:[2,95],118:[2,59],121:[2,99],125:[2,103],127:[2,19],128:[2,83],133:[2,69],136:[2,75],148:[2,81],149:[2,37]},parseError:function(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=[],s=this.table,i="",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=u.options&&u.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var f,g,y,b,v,S,w,k,T,E=function(){var t;return"number"!=typeof(t=u.lex()||1)&&(t=e.symbols_[t]||t),t},N={};;){if(y=r[r.length-1],this.defaultActions[y]?b=this.defaultActions[y]:((null===f||typeof f>"u")&&(f=E()),b=s[y]&&s[y][f]),typeof b>"u"||!b.length||!b[0]){var P="";for(S in T=[],s[y])this.terminals_[S]&&S>2&&T.push("'"+this.terminals_[S]+"'");P=u.showPosition?"Parse error on line "+(o+1)+":\n"+u.showPosition()+"\nExpecting "+T.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(P,{text:u.match,token:this.terminals_[f]||f,line:u.yylineno,loc:d,expected:T})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+f);switch(b[0]){case 1:r.push(f),n.push(u.yytext),a.push(u.yylloc),r.push(b[1]),f=null,g?(f=g,g=null):(l=u.yyleng,i=u.yytext,o=u.yylineno,d=u.yylloc);break;case 2:if(w=this.productions_[b[1]][1],N.$=n[n.length-w],N._$={first_line:a[a.length-(w||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(w||1)].first_column,last_column:a[a.length-1].last_column},m&&(N._$.range=[a[a.length-(w||1)].range[0],a[a.length-1].range[1]]),typeof(v=this.performAction.apply(N,[i,l,o,h.yy,b[1],n,a].concat(c)))<"u")return v;w&&(r=r.slice(0,-1*w*2),n=n.slice(0,-1*w),a=a.slice(0,-1*w)),r.push(this.productions_[b[1]][0]),n.push(N.$),a.push(N._$),k=s[r[r.length-2]][r[r.length-1]],r.push(k);break;case 3:return!0}}return!0}},V={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 s in a)this[s]=a[s];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(),s=0;s<a.length;s++)if((r=this._input.match(this.rules[a[s]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,a[s])))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 24:return this.popState(),14;case 7:return 67;case 8:return 68;case 9:if("string"!==t.syntax.square)return 75;this.unput(e.yytext),this.begin("escl");break;case 10:return 77;case 11:return 19;case 12:return this.popState(),this.begin("raw"),23;case 13:return 57;case 14:return 61;case 15:return 29;case 16:return 47;case 17:case 18:return this.popState(),44;case 19:return 34;case 20:return 39;case 21:return 53;case 22:case 25:return 48;case 23:this.unput(e.yytext),this.popState(),this.begin("com");break;case 26:return 74;case 27:case 28:case 44:return 73;case 29:return 93;case 30:return 92;case 31:break;case 32:return this.popState(),56;case 33:return this.popState(),33;case 34:return e.yytext=a(1,2).replace(/\\"/g,'"'),84;case 35:return e.yytext=a(1,2).replace(/\\'/g,"'"),84;case 36:return 89;case 37:case 38:return 86;case 39:return 87;case 40:return 88;case 41:return 85;case 42:return 79;case 43:return 81;case 45:return e.yytext=e.yytext.replace(/\\([\\\]])/g,"$1"),this.popState(),73;case 46:return"INVALID";case 47:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)\]|])))/,/^(?:\.#)/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)\]])))/,/^(?:false(?=([~}\s)\]])))/,/^(?:undefined(?=([~}\s)\]])))/,/^(?:null(?=([~}\s)\]])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)\]])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)\]|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,46,47],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},escl:{rules:[45],inclusive:!1},INITIAL:{rules:[0,1,47],inclusive:!0}}};function $(){this.yy={}}return R.lexer=V,$.prototype=R,R.Parser=$,new $}(),st=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function it(t,e){var r,n,a,s,i=e&&e.loc;i&&(r=i.start.line,n=i.end.line,a=i.start.column,s=i.end.column,t+=" - "+r+":"+a);for(var o=Error.prototype.constructor.call(this,t),l=0;l<st.length;l++)this[st[l]]=o[st[l]];Error.captureStackTrace&&Error.captureStackTrace(this,it);try{i&&(this.lineNumber=r,this.endLineNumber=n,Object.defineProperty?(Object.defineProperty(this,"column",{value:a,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:s,enumerable:!0})):(this.column=a,this.endColumn=s))}catch{}}it.prototype=new Error;var ot=it;function lt(){this.parents=[]}function ct(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function ut(t){ct.call(this,t),this.acceptKey(t,"program"),this.acceptKey(t,"inverse")}function ht(t){this.acceptRequired(t,"name"),this.acceptArray(t.params),this.acceptKey(t,"hash")}lt.prototype={constructor:lt,mutating:!1,acceptKey:function(t,e){var r=this.accept(t[e]);if(this.mutating){if(r&&!lt.prototype[r.type])throw new ot('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 ot(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 ot("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:ct,Decorator:ct,BlockStatement:ut,DecoratorBlock:ut,PartialStatement:ht,PartialBlockStatement:function(t){ht.call(this,t),this.acceptKey(t,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:ct,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 pt=lt;function dt(t){void 0===t&&(t={}),this.options=t}function mt(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 ft(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 gt(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 yt(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}}dt.prototype=new pt,dt.prototype.Program=function(t){var e=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=t.body,a=0,s=n.length;a<s;a++){var i=n[a],o=this.accept(i);if(o){var l=mt(n,a,r),c=ft(n,a,r),u=o.openStandalone&&l,h=o.closeStandalone&&c,p=o.inlineStandalone&&l&&c;o.close&>(n,a,!0),o.open&&yt(n,a,!0),e&&p&&(gt(n,a),yt(n,a)&&"PartialStatement"===i.type&&(i.indent=/([ \t]+$)/.exec(n[a-1].original)[1])),e&&u&&(gt((i.program||i.inverse).body),yt(n,a)),e&&h&&(gt(n,a),yt((i.inverse||i.program).body))}}return t},dt.prototype.BlockStatement=dt.prototype.DecoratorBlock=dt.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 s={open:t.openStrip.open,close:t.closeStrip.close,openStandalone:ft(e.body),closeStandalone:mt((n||e).body)};if(t.openStrip.close&>(e.body,null,!0),r){var i=t.inverseStrip;i.open&&yt(e.body,null,!0),i.close&>(n.body,null,!0),t.closeStrip.open&&yt(a.body,null,!0),!this.options.ignoreStandalone&&mt(e.body)&&ft(n.body)&&(yt(e.body),gt(n.body))}else t.closeStrip.open&&yt(e.body,null,!0);return s},dt.prototype.Decorator=dt.prototype.MustacheStatement=function(t){return t.strip},dt.prototype.PartialStatement=dt.prototype.CommentStatement=function(t){var e=t.strip||{};return{inlineStandalone:!0,open:e.open,close:e.close}};var bt=dt,vt={};e(vt,{SourceLocation:()=>kt,id:()=>Tt,prepareBlock:()=>Dt,prepareMustache:()=>xt,preparePartialBlock:()=>Lt,preparePath:()=>Pt,prepareProgram:()=>Ct,prepareRawBlock:()=>At,stripComment:()=>Nt,stripFlags:()=>Et});var St=function(t,e,r){for(var n,a=0,s=e.length;a<s;a++)(n||!(a in e))&&(n||(n=Array.prototype.slice.call(e,0,a)),n[a]=e[a]);return t.concat(n||Array.prototype.slice.call(e))};function wt(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new ot(t.path.original+" doesn't match "+e,r)}}function kt(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 Tt(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}function Et(t,e){return{open:"~"===t.charAt(2),close:"~"===e.charAt(e.length-3)}}function Nt(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function Pt(t,e,r,n){var a;n=this.locInfo(n),a=t?"@":e?e.original+".":"";for(var s=[],i=0,o=0,l=r.length;o<l;o++){var c=r[o].part,u=r[o].original!==c,h=r[o].separator,p=".#"===h?"#":"";if(a+=(h||"")+c,u||".."!==c&&"."!==c&&"this"!==c)s.push("".concat(p).concat(c));else{if(s.length>0)throw new ot("Invalid path: "+a,{loc:n});".."===c&&i++}}var d=e||s.shift();return{type:"PathExpression",this:a.startsWith("this."),data:t,depth:i,head:d,tail:s,parts:d?St([d],s):s,original:a,loc:n}}function xt(t,e,r,n,a,s){var i=n.charAt(3)||n.charAt(2),o="{"!==i&&"&"!==i;return{type:/\*/.test(n)?"Decorator":"MustacheStatement",path:t,params:e,hash:r,escaped:o,strip:a,loc:this.locInfo(s)}}function At(t,e,r,n){wt(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 Dt(t,e,r,n,a,s){n&&n.path&&wt(t,n);var i,o,l=/\*/.test(t.open);if(e.blockParams=t.blockParams,r){if(l)throw new ot("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),o=r.strip,i=r.program}return a&&(a=i,i=e,e=a),{type:l?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:i,openStrip:t.strip,inverseStrip:o,closeStrip:n&&n.strip,loc:this.locInfo(s)}}function Ct(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 Lt(t,e,r,n){return wt(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)}}var qt,_t={};for(qt in vt)Object.prototype.hasOwnProperty.call(vt,qt)&&(_t[qt]=vt[qt]);function It(t,e){var r,n,a,s,i;return"Program"===t.type?t:(at.yy=_t,at.yy.locInfo=function(t){return new kt(e&&e.srcName,t)},s="function"==typeof(null===(r=e?.syntax)||void 0===r?void 0:r.square)?e.syntax.square:"node"===(null===(n=e?.syntax)||void 0===n?void 0:n.square)?Ot:"string",i="function"==typeof(null===(a=e?.syntax)||void 0===a?void 0:a.hash)?e.syntax.hash:Bt,at.yy.syntax={square:s,hash:i},at.parse(t))}function Ot(t,e){return{type:"ArrayLiteral",items:t,loc:e}}function Bt(t,e){return{type:"HashLiteral",pairs:t.pairs,loc:e}}function Rt(t,e){var r=It(t,e);return new bt(e).accept(r)}var Vt={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:""},$t=/^#[xX]([A-Fa-f0-9]+)$/,Ut=/^#([0-9]+)$/,Ft=/^([A-Za-z0-9]+)$/,Ht=function(){function t(t){this.named=t}return t.prototype.parse=function(t){if(t){var e=t.match($t);if(e)return String.fromCharCode(parseInt(e[1],16));if(e=t.match(Ut))return String.fromCharCode(parseInt(e[1],10));if(e=t.match(Ft))return this.named[e[1]]}},t}(),zt=/[\t\n\f ]/,Mt=/[A-Za-z]/,jt=/\r\n?/g;function Gt(t){return zt.test(t)}function Wt(t){return Mt.test(t)}var Kt=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||Wt(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(){Gt(this.consume())&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var t=this.consume();Gt(t)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(t.toLowerCase()))},doctypeName:function(){var t=this.consume();Gt(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(!Gt(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();Gt(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();Gt(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();Gt(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();Gt(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();Gt(t)?this.transitionTo("beforeAttributeName"):"/"===t?this.transitionTo("selfClosingStartTag"):">"===t?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(t)},endTagName:function(){var t=this.consume();Gt(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();Gt(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();Gt(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();Gt(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();Gt(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();Gt(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();Gt(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||Wt(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(jt,"\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}(),Qt=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function Jt(t){return!!t&&t.length>0}function Yt(t){return 0===t.length?void 0:t[t.length-1]}var Zt=Object.freeze({line:1,column:0}),Xt=Object.freeze({source:"(synthetic)",start:Zt,end:Zt}),te=Object.freeze({source:"(nonexistent)",start:Zt,end:Zt}),ee=Object.freeze({source:"(broken)",start:Zt,end:Zt}),re=class{constructor(t){this._whens=t}first(t){for(let e of this._whens){let r=e.match(t);if(Jt(r))return r[0]}return null}},ne=class{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"Broken":case"InternalsSynthetic":case"NonExistent":return"IS_INVISIBLE";default:return t}}(t),r=[],n=this._map.get(e),a=this._map.get("MATCH_ANY");return n&&r.push(n),a&&r.push(a),r}constructor(){this._map=new Map}};function ae(t){return t(new se).validate()}var se=class{validate(){return(t,e)=>this.matchFor(t.kind,e.kind)(t,e)}matchFor(t,e){let r=this._whens.match(t);return Jt(r),new re(r).first(e)}when(t,e,r){return this._whens.get(t,()=>new ne).add(e,r),this}constructor(){this._whens=new ne}},ie=class t{static synthetic(e){let r=oe.synthetic(e);return new t({loc:r,chars:e})}static load(e,r){return new t({loc:oe.load(e,r[1]),chars:r[0]})}constructor(t){this.loc=t.loc,this.chars=t.chars}getString(){return this.chars}serialize(){return[this.chars,this.loc.serialize()]}},oe=class t{static get NON_EXISTENT(){return new ue("NonExistent",te).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]):"NonExistent"===r?t.NON_EXISTENT:"Broken"===r?t.broken(ee):void function(t,e="unexpected unreachable branch"){throw nt.log("unreachable",t),nt.log(`${e} :: ${JSON.stringify(t)} (${t})`),new Error("code reached unreachable")}(r)}static forHbsLoc(t,e){let r=new fe(t,e.start),n=new fe(t,e.end);return new ce(t,{start:r,end:n},e).wrap()}static forCharPositions(t,e,r){let n=new me(t,e),a=new me(t,r);return new le(t,{start:n,end:a}).wrap()}static synthetic(t){return new ue("InternalsSynthetic",te,t).wrap()}static broken(t=ee){return new ue("Broken",t).wrap()}constructor(t){var e;this.data=t,this.isInvisible="CharPosition"!==(e=t.kind)&&"HbsPosition"!==e}getStart(){return this.data.getStart().wrap()}getEnd(){return this.data.getEnd().wrap()}get loc(){let t=this.data.toHbsSpan();return null===t?ee: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 he(t.data,this.data.getEnd())}withEnd(t){return he(this.data.getStart(),t.data)}asString(){return this.data.asString()}toSlice(t){let e=this.data.asString();return JSON.stringify(e),JSON.stringify(t),new ie({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 he(this.data.getStart(),t.data.getEnd())}serialize(){return this.data.serialize()}slice({skipStart:t=0,skipEnd:e=0}){return he(this.getStart().move(t).data,this.getEnd().move(-e).data)}sliceStartChars({skipStart:t=0,chars:e}){return he(this.getStart().move(t).data,this.getStart().move(t+e).data)}sliceEndChars({skipEnd:t=0,chars:e}){return he(this.getEnd().move(t-e).data,this.getStart().move(-t).data)}},le=class{#t;constructor(t,e){this.source=t,this.charPositions=e,this.kind="CharPosition",this.#t=null}wrap(){return new oe(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.#t;if(null===t){let e=this.charPositions.start.toHbsPos(),r=this.charPositions.end.toHbsPos();t=this.#t=null===e||null===r?pe:new ce(this.source,{start:e,end:r})}return t===pe?null:t}serialize(){let{start:{charPos:t},end:{charPos:e}}=this.charPositions;return t===e?t:[t,e]}toCharPosSpan(){return this}},ce=class{#t;#e;constructor(t,e,r=null){this.source=t,this.hbsPositions=e,this.kind="HbsPosition",this.#t=null,this.#e=r}serialize(){let t=this.toCharPosSpan();return null===t?"Broken":t.wrap().serialize()}wrap(){return new oe(this)}updateProvided(t,e){this.#e&&(this.#e[e]=t),this.#t=null,this.#e={start:t,end:t}}locDidUpdate({start:t,end:e}){void 0!==t&&(this.updateProvided(t,"start"),this.hbsPositions.start=new fe(this.source,t,null)),void 0!==e&&(this.updateProvided(e,"end"),this.hbsPositions.end=new fe(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.#t;if(null===t){let e=this.hbsPositions.start.toCharPos(),r=this.hbsPositions.end.toCharPos();if(!e||!r)return t=this.#t=pe,null;t=this.#t=new le(this.source,{start:e,end:r})}return t===pe?null:t}},ue=class{constructor(t,e,r=null){this.kind=t,this.loc=e,this.string=r}serialize(){switch(this.kind){case"Broken":case"NonExistent":return this.kind;case"InternalsSynthetic":return this.string||""}}wrap(){return new oe(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 ge(this.kind,this.loc.start)}getEnd(){return new ge(this.kind,this.loc.end)}toCharPosSpan(){return this}toHbsSpan(){return null}toHbsLoc(){return ee}},he=ae(t=>t.when("HbsPosition","HbsPosition",(t,e)=>new ce(t.source,{start:t,end:e}).wrap()).when("CharPosition","CharPosition",(t,e)=>new le(t.source,{start:t,end:e}).wrap()).when("CharPosition","HbsPosition",(t,e)=>{let r=e.toCharPos();return null===r?new ue("Broken",ee).wrap():he(t,r)}).when("HbsPosition","CharPosition",(t,e)=>{let r=t.toCharPos();return null===r?new ue("Broken",ee).wrap():he(r,e)}).when("IS_INVISIBLE","MATCH_ANY",t=>new ue(t.kind,ee).wrap()).when("MATCH_ANY","IS_INVISIBLE",(t,e)=>new ue(e.kind,ee).wrap())),pe="BROKEN",de=class t{static forHbsPos(t,e){return new fe(t,e,null).wrap()}static broken(t=Zt){return new ge("Broken",t).wrap()}constructor(t){this.data=t}get offset(){let t=this.data.toCharPos();return null===t?null:t.offset}eql(t){return ye(this.data,t.data)}until(t){return he(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.validate(n)?new me(r.source,n).wrap():t.broken()}}collapsed(){return he(this.data,this.data)}toJSON(){return this.data.toJSON()}},me=class{constructor(t,e){this.source=t,this.charPos=e,this.kind="CharPosition",this._locPos=null}toCharPos(){return this}toJSON(){let t=this.toHbsPos();return null===t?Zt:t.toJSON()}wrap(){return new de(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?pe:new fe(this.source,e,this.charPos)}return t===pe?null:t}},fe=class{constructor(t,e,r=null){this.source=t,this.hbsPos=e,this.kind="HbsPosition",this._charPos=null===r?null:new me(t,r)}toCharPos(){let t=this._charPos;if(null===t){let e=this.source.charPosFor(this.hbsPos);this._charPos=t=null===e?pe:new me(this.source,e)}return t===pe?null:t}toJSON(){return this.hbsPos}wrap(){return new de(this)}toHbsPos(){return this}},ge=class{constructor(t,e){this.kind=t,this.pos=e}toCharPos(){return null}toJSON(){return this.pos}wrap(){return new de(this)}get offset(){return null}},ye=ae(t=>t.when("HbsPosition","HbsPosition",({hbsPos:t},{hbsPos:e})=>t.column===e.column&&t.line===e.line).when("CharPosition","CharPosition",({charPos:t},{charPos:e})=>t===e).when("CharPosition","HbsPosition",({offset:t},e)=>t===e.toCharPos()?.offset).when("HbsPosition","CharPosition",(t,{offset:e})=>t.toCharPos()?.offset===e).when("MATCH_ANY","MATCH_ANY",()=>!1)),be=class t{static from(e,r={}){return new t(e,r.meta?.moduleName)}constructor(t,e="an unknown module"){this.source=t,this.module=e}validate(t){return t>=0&&t<=this.source.length}slice(t,e){return this.source.slice(t,e)}offsetFor(t,e){return de.forHbsPos(this,{line:t,column:e})}spanFor({start:t,end:e}){return oe.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,s=0;for(;s<n;){let t=this.source.indexOf("\n",s);if(-1===t&&(t=this.source.length),a===e-1)return s+r>t?t:s+r;if(-1===t)return 0;a+=1,s=t+1}return n}};function ve(t,e){let{module:r,loc:n}=e,{line:a,column:s}=n.start,i=e.asString(),o=i?`\n\n|\n| ${i.split("\n").join("\n| ")}\n|\n\n`:"",l=new Error(`${t}: ${o}(error occurred in '${r}' @ line ${a} : column ${s})`);return l.name="SyntaxError",l.location=e,l.code=i,l}var Se={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]},we=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 ke(t,e,r){return new we("Cannot remove a node unless it is part of an array",t,e,r)}function Te(t,e){return new we("Replacing and removing in key handlers is not yet supported.",t,null,e)}var Ee,Ne=class{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 Pe(this)}}},Pe=class{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 xe(t){return"function"==typeof t?t:t.enter}function Ae(t){return"function"==typeof t?void 0:t.exit}function De(t,e){let r,n,a,{node:s,parent:i,parentKey:o}=e,l=function(t,e){if(t.Program&&("Template"===e&&!t.Template||"Block"===e&&!t.Block))return t.Program;let r=t[e];return void 0!==r?r:t.All}(t,s.type);if(void 0!==l&&(r=xe(l),n=Ae(l)),void 0!==r&&(a=r(s,e)),null!=a){if(JSON.stringify(s)!==JSON.stringify(a))return Array.isArray(a)?(qe(t,a,i,o),a):De(t,new Ne(a,i,o))||a;a=void 0}if(void 0===a){let r=Se[s.type];for(let n=0;n<r.length;n++)Le(t,l,e,r[n]);void 0!==n&&(a=n(s,e))}return a}function Ce(t,e,r){t[e]=r}function Le(t,e,r,n){let a,s,{node:i}=r,o=i[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=xe(t),s=Ae(t))}if(void 0!==a&&void 0!==a(i,n))throw Te(i,n);if(Array.isArray(o))qe(t,o,r,n);else{let e=De(t,new Ne(o,r,n));void 0!==e&&function(t,e,r,n){if(null===n)throw ke(r,t,e);if(Array.isArray(n)){if(1!==n.length)throw 0===n.length?ke(r,t,e):function(t,e,r){return new we("Cannot replace a node with multiple nodes unless it is part of an array",t,e,r)}(r,t,e);Ce(t,e,n[0])}else Ce(t,e,n)}(i,n,o,e)}if(void 0!==s&&void 0!==s(i,n))throw Te(i,n)}}function qe(t,e,r,n){for(let a=0;a<e.length;a++){let s=e[a],i=De(t,new Ne(s,r,n));void 0!==i&&(a+=_e(e,a,i)-1)}}function _e(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 Ie(t,e){De(e,new Ne(t))}function Oe(t,e){(function(t){switch(t.type){case"Block":case"Template":return t.body;case"ElementNode":return t.children}})(t).push(e)}function Be(t){return"StringLiteral"===t.type||"BooleanLiteral"===t.type||"NumberLiteral"===t.type||"NullLiteral"===t.type||"UndefinedLiteral"===t.type}function Re(){return Ee||(Ee=new be("","(synthetic)")),Ee}function Ve(t,e,r){return ze.literal({type:t,value:e,loc:$e(r||null)})}function $e(...t){if(1===t.length){let e=t[0];return e&&"object"==typeof e?oe.forHbsLoc(Re(),e):oe.forHbsLoc(Re(),Xt)}{let[e,r,n,a,s]=t,i=s?new be("",s):Re();return oe.forHbsLoc(i,{start:{line:e,column:r},end:{line:n||e,column:a||r}})}}var Ue=function(t,e){return ze.head({original:t,loc:$e(e||null)})};Fe("StringLiteral"),Fe("BooleanLiteral"),Fe("NumberLiteral");function Fe(t){return function(e,r){return Ve(t,e,r)}}var He={close:!1,open:!1},ze=new class{pos({line:t,column:e}){return{line:t,column:e}}blockItself({body:t,params:e,chained:r=!1,loc:n}){return{type:"Block",body:t,params:e,get blockParams(){return this.params.map(t=>t.name)},set blockParams(t){this.params=t.map(t=>ze.var({name:t,loc:oe.synthetic(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:s=He}){return function({path:t,params:e,hash:r,trusting:n,strip:a,loc:s}){let i={type:"MustacheStatement",path:t,params:e,hash:r,trusting:n,strip:a,loc:s};return Object.defineProperty(i,"escaped",{enumerable:!1,get(){return!this.trusting},set(t){this.trusting=!t}}),i}({path:t,params:e,hash:r,trusting:n,strip:s,loc:a})}block({path:t,params:e,hash:r,defaultBlock:n,elseBlock:a=null,loc:s,openStrip:i=He,inverseStrip:o=He,closeStrip:l=He}){return{type:"BlockStatement",path:t,params:e,hash:r,program:n,inverse:a,loc:s,openStrip:i,inverseStrip:o,closeStrip:l}}comment({value:t,loc:e}){return{type:"CommentStatement",value:t,loc:e}}mustacheComment({value:t,loc:e}){return{type:"MustacheCommentStatement",value:t,loc:e}}concat({parts:t,loc:e}){return{type:"ConcatStatement",parts:t,loc:e}}element({path:t,selfClosing:e,attributes:r,modifiers:n,params:a,comments:s,children:i,openTag:o,closeTag:l,loc:c}){let u=e;return{type:"ElementNode",path:t,attributes:r,modifiers:n,params:a,comments:s,children:i,openTag:o,closeTag:l,loc:c,get tag(){return this.path.original},set tag(t){this.path.original=t},get blockParams(){return this.params.map(t=>t.name)},set blockParams(t){this.params=t.map(t=>ze.var({name:t,loc:oe.synthetic(t)}))},get selfClosing(){return u},set selfClosing(t){u=t,this.closeTag=t?null:oe.synthetic(`</${this.tag}>`)}}}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}){return function({head:t,tail:e,loc:r}){let n={type:"PathExpression",head:t,tail:e,get original(){return[this.head.original,...this.tail].join(".")},set original(t){let[e,...r]=t.split(".");this.head=Ue(e,this.head.loc),this.tail=r},loc:r};return Object.defineProperty(n,"parts",{enumerable:!1,get(){let t=this.original.split(".");return"this"===t[0]?t.shift():t[0].startsWith("@")&&(t[0]=t[0].slice(1)),Object.freeze(t)},set(t){let e=[...t];"this"===e[0]||e[0]?.startsWith("@")||("ThisHead"===this.head.type?e.unshift("this"):"AtHead"===this.head.type&&(e[0]=`@${e[0]}`)),this.original=e.join(".")}}),Object.defineProperty(n,"this",{enumerable:!1,get(){return"ThisHead"===this.head.type}}),Object.defineProperty(n,"data",{enumerable:!1,get(){return"AtHead"===this.head.type}}),n}({head:t,tail:e,loc:r})}head({original:t,loc:e}){return"this"===t?this.this({loc:e}):"@"===t[0]?this.atName({name:t,loc:e}):this.var({name:t,loc:e})}this({loc:t}){return{type:"ThisHead",get original(){return"this"},loc:t}}atName({name:t,loc:e}){let r="",n={type:"AtHead",get name(){return r},set name(t){t[0],t.indexOf("."),r=t},get original(){return this.name},set original(t){this.name=t},loc:e};return n.name=t,n}var({name:t,loc:e}){let r="",n={type:"VarHead",get name(){return r},set name(t){t[0],t.indexOf("."),r=t},get original(){return this.name},set original(t){this.name=t},loc:e};return n.name=t,n}hash({pairs:t,loc: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 function({type:t,value:e,loc:r}){let n={type:t,value:e,loc:r};return Object.defineProperty(n,"original",{enumerable:!1,get(){return this.value},set(t){this.value=t}}),n}({type:t,value:e,loc:r})}},Me=class{constructor(t,e=new Ht(Vt),r="precompile"){this.elementStack=[],this.currentAttribute=null,this.currentNode=null,this.source=t,this.lines=t.source.split(/\r\n?|\n/u),this.tokenizer=new Kt(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 rt({},t,{loc:t.start.until(this.offset())})}get currentAttr(){return this.currentAttribute}get currentTag(){let t=this.currentNode;return t&&("StartTag"===t.type||t.type),t}get currentStartTag(){let t=this.currentNode;return t&&t.type,t}get currentEndTag(){let t=this.currentNode;return t&&t.type,t}get currentComment(){let t=this.currentNode;return t&&t.type,t}get currentData(){let t=this.currentNode;return t&&t.type,t}acceptNode(t){return this[t.type](t)}currentElement(){return Yt(this.elementStack)}sourceForNode(t,e){let r,n,a,s=t.loc.start.line-1,i=s-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);i<n;)i++,r=this.lines[i],i===s?s===n?l.push(r.slice(o,a)):l.push(r.slice(o)):i===n?l.push(r.slice(0,a)):l.push(r);return l.join("\n")}},je=class extends Me{parse(t,e){t.loc;let r=ze.template({body:[],blockParams:e,loc:this.source.spanFor(t.loc)}),n=this.parseProgram(r,t);return this.pendingError?.eof(n.loc.getEnd()),n}Program(t,e){t.loc;let r=ze.blockItself({body:[],params:e,chained:t.chained,loc:this.source.spanFor(t.loc)});return this.parseProgram(r,t)}parseProgram(t,e){if(0===e.body.length)return t;let r;try{this.elementStack.push(t);for(let t of e.body)this.acceptNode(t)}finally{r=this.elementStack.pop()}if(t!==r){if("ElementNode"===r?.type)throw ve(`Unclosed element \`${r.tag}\``,r.loc);t.type}return t}BlockStatement(t){if("comment"===this.tokenizer.state)return t.loc,void this.appendToCommentData(this.sourceForNode(t));if("data"!==this.tokenizer.state&&"beforeData"!==this.tokenizer.state)throw ve("A block may only be used inside an HTML element or another block.",this.source.spanFor(t.loc));let e,{path:r,params:n,hash:a}=Ge(this,t),s=this.source.spanFor(t.loc),i=[];if(t.program.blockParams?.length){let r=a.loc.collapse("end");r=t.program.loc?r.withEnd(this.source.spanFor(t.program.loc).getStart()):t.program.body[0]?r.withEnd(this.source.spanFor(t.program.body[0].loc).getStart()):r.withEnd(s.getEnd()),e=Ke(this.source,t,r);let n=r.asString(),o=n.indexOf("|")+1,l=n.indexOf("|",o);for(let e of t.program.blockParams){let t,a;t=o>=l?-1:n.indexOf(e,o),-1===t||t+e.length>l?(o=l,a=this.source.spanFor(te)):(o=t,a=r.sliceStartChars({skipStart:o,chars:e.length}),o+=e.length),i.push(ze.var({name:e,loc:a}))}}else e=Ke(this.source,t,s);let o=this.Program(e.program,i),l=e.inverse?this.Program(e.inverse,[]):null,c=ze.block({path:r,params:n,hash:a,defaultBlock:o,elseBlock:l,loc:this.source.spanFor(t.loc),openStrip:t.openStrip,inverseStrip:t.inverseStrip,closeStrip:t.closeStrip});Oe(this.currentElement(),c)}MustacheStatement(t){this.pendingError?.mustache(this.source.spanFor(t.loc));let{tokenizer:e}=this;if("comment"===e.state)return void this.appendToCommentData(this.sourceForNode(t));let r,{escaped:n,loc:a,strip:s}=t;if("original"in t.path&&"...attributes"===t.path.original)throw ve("Illegal use of ...attributes",this.source.spanFor(t.loc));if(Be(t.path))r=ze.mustache({path:this.acceptNode(t.path),params:[],hash:ze.hash({pairs:[],loc:this.source.spanFor(t.path.loc).collapse("end")}),trusting:!n,loc:this.source.spanFor(a),strip:s});else{let{path:e,params:i,hash:o}=Ge(this,t);r=ze.mustache({path:e,params:i,hash:o,trusting:!n,loc:this.source.spanFor(a),strip:s})}switch(e.state){case"tagOpen":case"tagName":throw ve("Cannot use mustaches in an elements tagname",r.loc);case"beforeAttributeName":We(this.currentStartTag,r);break;case"attributeName":case"afterAttributeName":this.beginAttributeValue(!1),this.finishAttributeValue(),We(this.currentStartTag,r),e.transitionTo("beforeAttributeName");break;case"afterAttributeValueQuoted":We(this.currentStartTag,r),e.transitionTo("beforeAttributeName");break;case"beforeAttributeValue":this.beginAttributeValue(!1),this.appendDynamicAttributeValuePart(r),e.transitionTo("attributeValueUnquoted");break;case"attributeValueDoubleQuoted":case"attributeValueSingleQuoted":case"attributeValueUnquoted":this.appendDynamicAttributeValuePart(r);break;default:Oe(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: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=ze.mustacheComment({value:r,loc:this.source.spanFor(n)});switch(e.state){case"beforeAttributeName":case"afterAttributeName":this.currentStartTag.comments.push(a);break;case"beforeData":case"data":Oe(this.currentElement(),a);break;default:throw ve(`Using a Handlebars comment when in the \`${e.state}\` state is not supported`,this.source.spanFor(t.loc))}return a}PartialStatement(t){throw ve("Handlebars partials are not supported",this.source.spanFor(t.loc))}PartialBlockStatement(t){throw ve("Handlebars partial blocks are not supported",this.source.spanFor(t.loc))}Decorator(t){throw ve("Handlebars decorators are not supported",this.source.spanFor(t.loc))}DecoratorBlock(t){throw ve("Handlebars decorator blocks are not supported",this.source.spanFor(t.loc))}SubExpression(t){let{path:e,params:r,hash:n}=Ge(this,t);return ze.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 ve('Using "./" is not supported in Glimmer and unnecessary',this.source.spanFor(t.loc));if("../"===r.slice(0,3))throw ve('Changing context using "../" is not supported in Glimmer',this.source.spanFor(t.loc));if(-1!==r.indexOf("."))throw ve("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 ve("'.' 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=ze.this({loc:this.source.spanFor({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 ve("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=ze.atName({name:`@${r}`,loc:this.source.spanFor({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 ve("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=ze.var({name:r,loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+r.length}})})}return ze.path({head:n,tail:e,loc:this.source.spanFor(t.loc)})}Hash(t){let e=t.pairs.map(t=>ze.pair({key:t.key,value:this.acceptNode(t.value),loc:this.source.spanFor(t.loc)}));return ze.hash({pairs:e,loc:this.source.spanFor(t.loc)})}StringLiteral(t){return ze.literal({type:"StringLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}BooleanLiteral(t){return ze.literal({type:"BooleanLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}NumberLiteral(t){return ze.literal({type:"NumberLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}UndefinedLiteral(t){return ze.literal({type:"UndefinedLiteral",value:void 0,loc:this.source.spanFor(t.loc)})}NullLiteral(t){return ze.literal({type:"NullLiteral",value:null,loc:this.source.spanFor(t.loc)})}constructor(...t){super(...t),this.pendingError=null}};function Ge(t,e){let r;switch(e.path.type){case"PathExpression":r=t.PathExpression(e.path);break;case"SubExpression":r=t.SubExpression(e.path);break;case"StringLiteral":case"UndefinedLiteral":case"NullLiteral":case"NumberLiteral":case"BooleanLiteral":{let r;throw r="BooleanLiteral"===e.path.type?e.path.original.toString():"StringLiteral"===e.path.type?`"${e.path.original}"`:"NullLiteral"===e.path.type?"null":"NumberLiteral"===e.path.type?e.path.value.toString():"undefined",ve(`${e.path.type} "${"StringLiteral"===e.path.type?e.path.original:r}" cannot be called as a sub-expression, replace (${r}) with ${r}`,t.source.spanFor(e.path.loc))}}let n=e.params.map(e=>t.acceptNode(e)),a=Jt(n)?Yt(n).loc:r.loc;return{path:r,params:n,hash:e.hash?t.Hash(e.hash):ze.hash({pairs:[],loc:t.source.spanFor(a).collapse("end")})}}function We(t,e){let{path:r,params:n,hash:a,loc:s}=e;if(Be(r)){let n=`{{${i=r,"UndefinedLiteral"===i.type?"undefined":JSON.stringify(i.value)}}}`;throw ve(`In <${t.name} ... ${n} ..., ${n} is not a valid modifier`,e.loc)}var i;let o=ze.elementModifier({path:r,params:n,hash:a,loc:s});t.modifiers.push(o)}function Ke(t,e,r){if(!e.program.loc){let n=o(0,e.program.body,0),a=o(0,e.program.body,-1);if(n&&a)e.program.loc={...n.loc,end:a.loc.end};else{let n=t.spanFor(e.loc);e.program.loc=r.withEnd(n.getEnd())}}let n=t.spanFor(e.program.loc).getEnd();return e.inverse&&!e.inverse.loc&&(e.inverse.loc=n.collapsed()),e}function Qe(t){return/[\t\n\f ]/u.test(t)}var Je=class extends je{reset(){this.currentNode=null}beginComment(){this.currentNode={type:"CommentStatement",value:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}appendToCommentData(t){this.currentComment.value+=t}finishComment(){Oe(this.currentElement(),ze.comment(this.finish(this.currentComment)))}beginData(){this.currentNode={type:"TextNode",chars:"",start:this.offset()}}appendToData(t){this.currentData.chars+=t}finishData(){Oe(this.currentElement(),ze.text(this.finish(this.currentData)))}tagOpen(){this.tagOpenLine=this.tokenizer.line,this.tagOpenColumn=this.tokenizer.column}beginStartTag(){this.currentNode={type:"StartTag",name:"",nameStart:null,nameEnd:null,attributes:[],modifiers:[],comments:[],params:[],selfClosing:!1,start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}beginEndTag(){this.currentNode={type:"EndTag",name:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}finishTag(){let t=this.finish(this.currentTag);if("StartTag"===t.type){if(this.finishStartTag(),":"===t.name)throw ve("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.start.toJSON(),end:this.offset().toJSON()}));(Qt.has(t.name)||t.selfClosing)&&this.finishEndTag(!0)}else t.type,t.type,this.finishEndTag(!1)}finishStartTag(){let{name:t,nameStart:e,nameEnd:r}=this.currentStartTag,n=e.until(r),[a,...s]=t.split("."),i=ze.path({head:ze.head({original:a,loc:n.sliceStartChars({chars:a.length})}),tail:s,loc:n}),{attributes:o,modifiers:l,comments:c,params:u,selfClosing:h,loc:p}=this.finish(this.currentStartTag),d=ze.element({path:i,selfClosing:h,attributes:o,modifiers:l,comments:c,params:u,children:[],openTag:p,closeTag:h?null:oe.broken(),loc:p});this.elementStack.push(d)}finishEndTag(t){let{start:e}=this.currentTag,r=this.finish(this.currentTag),n=this.elementStack.pop();this.validateEndTag(r,n,t);let a=this.currentElement();t?n.closeTag=null:n.selfClosing?n.closeTag:n.closeTag=e.until(this.offset()),n.loc=n.loc.withEnd(this.offset()),Oe(a,ze.element(n))}markTagAsSelfClosing(){let t=this.currentTag;if("StartTag"!==t.type)throw ve("Invalid end tag: closing tag must not be self-closing",this.source.spanFor({start:t.start.toJSON(),end:this.offset().toJSON()}));t.selfClosing=!0}appendToTagName(t){let e=this.currentTag;if(e.name+=t,"StartTag"===e.type){let t=this.offset();null===e.nameStart&&(e.nameEnd,e.nameStart=t.move(-1)),e.nameEnd=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,"as"===this.currentAttr.name&&this.parsePossibleBlockParams()}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=ze.text({chars:t,loc:e.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let t=this.currentTag,e=this.offset();if("EndTag"===t.type)throw ve("Invalid end tag: closing tag must not have attributes",this.source.spanFor({start:t.start.toJSON(),end:e.toJSON()}));let{name:r,parts:n,start:a,isQuoted:s,isDynamic:i,valueSpan:o}=this.currentAttr;if(r.startsWith("|")&&0===n.length&&!s&&!i)throw ve("Invalid block parameters syntax: block parameters must be preceded by the `as` keyword",a.until(a.move(r.length)));let l=this.assembleAttributeValue(n,s,i,a.until(e));l.loc=o.withEnd(e);let c=ze.attr({name:r,value:l,loc:a.until(e)});this.currentStartTag.attributes.push(c)}parsePossibleBlockParams(){let t=/[!"#%&'()*+./;<=>@[\\\]^`{|}~]/u;this.tokenizer.state;let e,r=this.currentStartTag,n=this.currentAttr,a={state:"PossibleAs"},s={PossibleAs:t=>{if(a.state,Qe(t))a={state:"BeforeStartPipe"},this.tokenizer.transitionTo("afterAttributeName"),this.tokenizer.consume();else{if("|"===t)throw ve('Invalid block parameters syntax: expecting at least one space character between "as" and "|"',n.start.until(this.offset().move(1)));a={state:"Done"}}},BeforeStartPipe:t=>{a.state,Qe(t)?this.tokenizer.consume():"|"===t?(a={state:"BeforeBlockParamName"},this.tokenizer.transitionTo("beforeAttributeName"),this.tokenizer.consume()):a={state:"Done"}},BeforeBlockParamName:t=>{if(a.state,Qe(t))this.tokenizer.consume();else if(""===t)a={state:"Done"},this.pendingError={mustache(t){throw ve("Invalid block parameters syntax: mustaches cannot be used inside parameters list",t)},eof(t){throw ve('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',n.start.until(t))}};else if("|"===t){if(0===r.params.length)throw ve("Invalid block parameters syntax: empty parameters list, expecting at least one identifier",n.start.until(this.offset().move(1)));a={state:"AfterEndPipe"},this.tokenizer.consume()}else{if(">"===t||"/"===t)throw ve('Invalid block parameters syntax: incomplete parameters list, expecting "|" but the tag was closed prematurely',n.start.until(this.offset().move(1)));a={state:"BlockParamName",name:t,start:this.offset()},this.tokenizer.consume()}},BlockParamName:e=>{if(a.state,""===e)a={state:"Done"},this.pendingError={mustache(t){throw ve("Invalid block parameters syntax: mustaches cannot be used inside parameters list",t)},eof(t){throw ve('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',n.start.until(t))}};else if("|"===e||Qe(e)){let n=a.start.until(this.offset());if("this"===a.name||t.test(a.name))throw ve(`Invalid block parameters syntax: invalid identifier name \`${a.name}\``,n);r.params.push(ze.var({name:a.name,loc:n})),a="|"===e?{state:"AfterEndPipe"}:{state:"BeforeBlockParamName"},this.tokenizer.consume()}else{if(">"===e||"/"===e)throw ve('Invalid block parameters syntax: expecting "|" but the tag was closed prematurely',n.start.until(this.offset().move(1)));a.name+=e,this.tokenizer.consume()}},AfterEndPipe:t=>{a.state,Qe(t)?this.tokenizer.consume():""===t?(a={state:"Done"},this.pendingError={mustache(t){throw ve("Invalid block parameters syntax: modifiers cannot follow parameters list",t)},eof(t){throw ve('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',n.start.until(t))}}):">"===t||"/"===t?a={state:"Done"}:(a={state:"Error",message:'Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',start:this.offset()},this.tokenizer.consume())},Error:t=>{if(a.state,""===t||"/"===t||">"===t||Qe(t))throw ve(a.message,a.start.until(this.offset()));this.tokenizer.consume()},Done:()=>{}};do{e=this.tokenizer.peek(),s[a.state](e)}while("Done"!==a.state&&""!==e);a.state}reportSyntaxError(t){throw ve(t,this.offset().collapsed())}assembleConcatenatedValue(t){let e=0===(n=t).length?void 0:n[0],r=Yt(t);var n;return ze.concat({parts:t,loc:this.source.spanFor(e.loc).extend(this.source.spanFor(r.loc))})}validateEndTag(t,e,r){if(Qt.has(t.name)&&!r)throw ve(`<${t.name}> elements do not need end tags. You should remove it`,t.loc);if("ElementNode"!==e.type)throw ve(`Closing tag </${t.name}> without an open tag`,t.loc);if(e.tag!==t.name)throw ve(`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);{let[e,r]=t;if(void 0===r||"TextNode"===r.type&&"/"===r.chars)return e;throw ve("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 Jt(t)?t[0]:ze.text({chars:"",loc:n})}constructor(...t){super(...t),this.tagOpenLine=0,this.tagOpenColumn=0}},Ye={},Ze=class extends Ht{constructor(){super({})}parse(){}};var Xe=et(Se),tr=t=>t.loc.start.offset,er=t=>t.loc.end.offset,rr=new Set([...Qt]);function nr(t){return t.toUpperCase()===t}function ar(t){return!0===t.selfClosing||function(t){return rr.has(t.toLowerCase())&&!nr(t[0])}(t.tag)||function(t){return"ElementNode"===t.type&&"string"==typeof t.tag&&!t.tag.startsWith(":")&&(nr(t.tag[0])||t.tag.includes("."))}(t)&&t.children.every(t=>sr(t))}function sr(t){return"TextNode"===t.type&&!/\S/u.test(t.chars)}function ir(t){return"MustacheCommentStatement"===t?.type&&"string"==typeof t.value&&"prettier-ignore"===t.value.trim()}function or(t,e){return tr(t)-tr(e)}function lr(t,e){let{node:r}=t,n=["attributes","modifiers","comments"].filter(t=>K(r[t])),a=n.flatMap(t=>r[t]).sort(or);for(let r of n)t.each(({node:t})=>{let r=a.indexOf(t);a.splice(r,1,[V,e()])},r);return K(r.blockParams)&&a.push(V,Ir(r)),["<",r.tag,L(a),cr(r)]}function cr(t){return ar(t)?B([$,"/>"],[" />",$]):B([$,">"],">")}function ur(t){return[t.trusting?"{{{":"{{",t.strip?.open?"~":""]}function hr(t){let e=t.trusting?"}}}":"}}";return[t.strip?.close?"~":"",e]}function pr(t){return[ur(t),t.openStrip.open?"~":"","#"]}function dr(t){let e=hr(t);return[t.openStrip.close?"~":"",e]}function mr(t){return[ur(t),t.closeStrip.open?"~":"","/"]}function fr(t){let e=hr(t);return[t.closeStrip.close?"~":"",e]}function gr(t){return[ur(t),t.inverseStrip.open?"~":""]}function yr(t){let e=hr(t);return[t.inverseStrip.close?"~":"",e]}function br(t,e){let{node:r}=t,n=[],a=_r(t,e);return a&&n.push(O(a)),K(r.program.blockParams)&&n.push(Ir(r.program)),O([pr(r),qr(t,e),n.length>0?L([V,R(V,n)]):"",$,dr(r)])}function vr(t,e){return["ignore"===e.htmlWhitespaceSensitivity?U:"",gr(t),"else",yr(t)]}var Sr=({path:t},{path:e})=>[t,e].every(t=>"PathExpression"===t.type&&"VarHead"===t.head.type)&&t.head.name===e.head.name;function wr(t){if(!t.match(t=>"BlockStatement"===t.type,(t,e)=>"body"===e&&"Block"===t.type&&1===t.body.length,(t,e)=>"inverse"===e&&"BlockStatement"===t.type))return!1;let{node:e}=t;return"PathExpression"===e.path.type&&"VarHead"===e.path.head.type&&"if"===e.path.head.name||Sr(e,t.grandparent)}function kr(t,e){let{node:r,grandparent:n}=t;return O([gr(n),["else"," ",n.inverse.body[0].path.head.name],L([V,O(_r(t,e)),...K(r.program.blockParams)?[V,Ir(r.program)]:[]]),$,yr(n)])}function Tr(t,e,r){let{node:n}=t;return"ignore"===e.htmlWhitespaceSensitivity?[Er(n)?$:U,mr(n),r("path"),fr(n)]:[mr(n),r("path"),fr(n)]}function Er(t){return"BlockStatement"===t.type&&t.program.body.every(t=>sr(t))}function Nr(t,e,r){let{node:n}=t;if(Er(n))return"";let a=r("program");return"ignore"===e.htmlWhitespaceSensitivity?L([U,a]):L(a)}function Pr(t,e,r){let{node:n}=t;if(!n.inverse)return"";let a=r("inverse"),s="ignore"===e.htmlWhitespaceSensitivity?[U,a]:a;return t.call(wr,"inverse","body",0)?s:[vr(n,e),L(s)]}function xr(t){return R(V,W.split(t))}function Ar(t){return(t="string"==typeof t?t:"").split("\n").length-1}function Dr(t=0){return Array.from({length:Math.min(t,2)}).fill(U)}function Cr(t,e){let r=qr(t,e),n=_r(t,e);return n?L([r,V,O(n)]):r}function Lr(t,e){let r=qr(t,e),n=_r(t,e);return n?[L([r,V,n]),$]:r}function qr(t,e){return e("path")}function _r(t,e){let{node:r}=t,n=[];return r.params.length>0&&n.push(...t.map(e,"params")),r.hash?.pairs.length>0&&n.push(e("hash")),0===n.length?"":R(V,n)}function Ir(t){return["as |",t.blockParams.join(" "),"|"]}var Or=new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"),Br=new Set(["true","false","null","undefined"]),Rr=(t,e)=>(0!==e||!t.startsWith("@"))&&(0!==e&&Br.has(t)||/\s/u.test(t)||/^\d/u.test(t)||Array.prototype.some.call(t,t=>Or.has(t)));var Vr={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},print:function(t,e,r){let{node:n}=t;switch(n.type){case"Block":case"Program":case"Template":return O(t.map(r,"body"));case"ElementNode":{let a="ignore"!==e.htmlWhitespaceSensitivity,s=[a||"ElementNode"!==t.previous?.type?"":$,O([lr(t,r)])];if(ar(n))return[s];let i=["</",n.tag,">"],o="style"===n.tag;if(0===n.children.length||(!a||o)&&n.children.every(t=>sr(t)))return[s,i];let l=t.map(r,"children");return o||!a?[s,L([$,...l]),$,i]:[s,L(O(l)),i]}case"BlockStatement":return wr(t)?[kr(t,r),Nr(t,e,r),Pr(t,e,r)]:[br(t,r),O([Nr(t,e,r),Pr(t,e,r),Tr(t,e,r)])];case"ElementModifierStatement":return O(["{{",Lr(t,r),"}}"]);case"MustacheStatement":return O([ur(n),Lr(t,r),hr(n)]);case"SubExpression":return O(["(",Cr(t,r),$,")"]);case"AttrNode":{let{name:t,value:a}=n,s="TextNode"===a.type;if(s&&""===a.chars&&tr(a)===er(a))return t;let i=s?G(a.chars,e.singleQuote):"ConcatStatement"===a.type?G(a.parts.map(t=>"TextNode"===t.type?t.chars:"").join(""),e.singleQuote):"",o=r("value");return[t,"=",i,"class"===t&&i?O(L(o)):o,i]}case"ConcatStatement":return t.map(r,"parts");case"Hash":return R(V,t.map(r,"pairs"));case"HashPair":return[n.key,"=",r("value")];case"TextNode":{let r=n.chars,{parent:a}=t;if("ElementNode"===a.type){if("pre"===a.tag)return D(r);if("style"===a.tag)return r=s(0,r,/^\n+/gu,""),r=W.trimEnd(r),r=W.dedentString(r),D(r,U)}r=s(0,r,"{{","\\{{");let i=function(t){for(let e=0;e<2;e++){let r=t.getParentNode(e);if("AttrNode"===r?.type)return r.name.toLowerCase()}}(t);if(i){if("class"===i){let e=r.trim().split(/\s+/u).join(" "),n=!1,a=!1;return"ConcatStatement"===t.parent.type&&("MustacheStatement"===t.previous?.type&&/^\s/u.test(r)&&(n=!0),"MustacheStatement"===t.next?.type&&/\s$/u.test(r)&&""!==e&&(a=!0)),[n?V:"",e,a?V:""]}return D(r)}let o=W.isWhitespaceOnly(r),{isFirst:l,isLast:c}=t;if("ignore"!==e.htmlWhitespaceSensitivity){let e=c&&"Template"===t.parent.type,n=l&&"Template"===t.parent.type;if(o){if(n||e)return"";let t=[V],a=Ar(r);return a&&(t=Dr(a)),c&&(t=t.map(t=>q(t))),t}let a=W.getLeadingWhitespace(r),s=[];if(a){s=[V];let t=Ar(a);t&&(s=Dr(t)),r=r.slice(a.length)}let i=W.getTrailingWhitespace(r),u=[];if(i){if(!e){u=[V];let t=Ar(i);t&&(u=Dr(t)),c&&(u=u.map(t=>q(t)))}r=r.slice(0,-i.length)}return[...s,I(xr(r)),...u]}let u=Ar(r),h=function(t){t="string"==typeof t?t:"";let e=(t.match(/^([^\S\n\r]*[\n\r])+/gu)||[])[0]||"";return Ar(e)}(r),p=function(t){t="string"==typeof t?t:"";let e=(t.match(/([\n\r][^\S\n\r]*)+$/gu)||[])[0]||"";return Ar(e)}(r);if((l||c)&&o&&("Block"===t.parent.type||"ElementNode"===t.parent.type||"Template"===t.parent.type))return"";o&&u?(h=Math.min(u,2),p=0):(("BlockStatement"===t.next?.type||"ElementNode"===t.next?.type)&&(p=Math.max(p,1)),("BlockStatement"===t.previous?.type||"ElementNode"===t.previous?.type)&&(h=Math.max(h,1)));let d="",m="";return 0===p&&"MustacheStatement"===t.next?.type&&(m=" "),0===h&&"MustacheStatement"===t.previous?.type&&(d=" "),l&&(h=0,d=""),c&&(p=0,m=""),W.hasLeadingWhitespace(r)&&(r=d+W.trimStart(r)),W.hasTrailingWhitespace(r)&&(r=W.trimEnd(r)+m),[...Dr(h),I(xr(r)),...Dr(p)]}case"MustacheCommentStatement":{let t=tr(n),r=er(n),a="~"===e.originalText.charAt(t+2),s="~"===e.originalText.charAt(r-3),i=n.value.includes("}}")?"--":"";return["{{",a?"~":"","!",i,n.value,i,s?"~":"","}}"]}case"PathExpression":return function(t){return 0===t.tail.length&&t.original.includes("/")?t.original:[t.head.original,...t.tail].map((t,e)=>Rr(t,e)?`[${t}]`:t).join(".")}(n);case"BooleanLiteral":case"NumberLiteral":return String(n.value);case"CommentStatement":return["\x3c!--",n.value,"--\x3e"];case"StringLiteral":return function(t,e){let{node:{value:r}}=t,n=G(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,s(0,r,n,`\\${n}`),n]}(t,e);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Q(n,"Handlebars")}},massageAstNode:Y,hasPrettierIgnore:function(t){return ir(t.node)||t.isInArray&&("children"===t.key||"body"===t.key||"parts"===t.key)&&ir(t.siblings[t.index-2])},getVisitorKeys:Xe,embed:Z},$r=[{name:"Handlebars",type:"markup",aceMode:"handlebars",extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aliases:["hbs","htmlbars"],parsers:["glimmer"],vscodeLanguageIds:["handlebars"],linguistLanguageId:155}],Ur={};e(Ur,{glimmer:()=>jr});var Fr=function(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)},Hr=Symbol.for("PRETTIER_IS_FRONT_MATTER");var zr=function(t){let e=function(t){let e=t.slice(0,3);if("---"!==e&&"+++"!==e)return;let r=t.indexOf("\n",3);if(-1===r)return;let n=t.slice(3,r).trim(),a=t.indexOf(`\n${e}`,r),s=n;if(s||(s="+++"===e?"toml":"yaml"),-1===a&&"---"===e&&"yaml"===s&&(a=t.indexOf("\n...",r)),-1===a)return;let i=a+1+3,l=t.charAt(i+1);if(!/\s?/u.test(l))return;let c,u=t.slice(0,i);return{language:s,explicitLanguage:n||null,value:t.slice(r+1,a),startDelimiter:e,endDelimiter:u.slice(-3),raw:u,start:{line:1,column:0,index:0},end:{index:u.length,get line(){return c??(c=u.split("\n")),c.length},get column(){return c??(c=u.split("\n")),o(0,c,-1).length}},[Hr]:!0}}(t);return e?{frontMatter:e,get content(){let{raw:r}=e;return s(0,r,/[^\n]/gu," ")+t.slice(r.length)}}:{content:t}};var Mr={mode:"codemod",plugins:{ast:[()=>({name:"glimmerPrettierParsePlugin",visitor:{All(t){(t=>{let{start:e,end:r}=t.loc;e.offset=t.loc.getStart().offset,r.offset=t.loc.getEnd().offset})(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(/\\$/u,"\\\\"))}(t)}}})]}};var jr={parse:function(t){let e,{frontMatter:r,content:n}=zr(t);try{e=function(t,e={}){let r,n,a,s=e.mode||"precompile";"string"==typeof t?(r=new be(t,e.meta?.moduleName),n="codemod"===s?It(t,e.parseOptions):Rt(t,e.parseOptions)):t instanceof be?(r=t,n="codemod"===s?It(t.source,e.parseOptions):Rt(t.source,e.parseOptions)):(r=new be("",e.meta?.moduleName),n=t),"codemod"===s&&(a=new Ze);let i=oe.forCharPositions(r,0,r.source.length);n.loc={source:"(program)",start:i.startPosition,end:i.endPosition};let o=new Je(r,a,s).parse(n,e.locals??[]);if(e.plugins?.ast)for(let t of e.plugins.ast)Ie(o,t(rt({},e,{syntax:Ye},{plugins:void 0})).visitor);return o}(n,Mr)}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+:$/u.test(r[0])&&/^-*\^$/u.test(o(0,r,-2))?o(0,r,-1):r.length>=4&&/:\s?$/u.test(r[0])&&/^\(error occurred in '.*?' @ line \d+ : column \d+\)$/u.test(o(0,r,-1))&&""===r[1]&&""===o(0,r,-2)&&r.slice(2,-2).every(t=>t.startsWith("|"))?r[0].trim().slice(0,-1):e}(t);throw Fr(r,{loc:e,cause:t})}throw t}if(r){let t={...r,type:"FrontMatter",loc:{start:{...r.start,offset:r.start.index},end:{...r.end,offset:r.end.index}}};e.body.unshift(t)}return e},astFormat:"glimmer",locStart:tr,locEnd:er},Gr={glimmer:Vr};exports.default=r,exports.languages=$r,exports.parsers=Ur,exports.printers=Gr;
|
|
3
|
-
//# sourceMappingURL=glimmer.js.map
|
package/lib/cli/graphql.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
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:()=>X,options:()=>z,parsers:()=>H,printers:()=>Je});var i,r,s=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},a=(i="replaceAll",r=function(){if("string"==typeof this)return s},(e,t,...n)=>1|e&&null==t?void 0:(r.call(t)??t[i]).apply(t,n)),o="line",l=()=>{};function c(e){return{type:"indent",contents:e}}function u(e,t={}){return l(t.expandedStates),{type:"group",id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function p(e,t="",n={}){return{type:"if-break",breakContents:e,flatContents:t,groupId:n.groupId}}function h(e,t){let n=[];for(let i=0;i<t.length;i++)0!==i&&n.push(e),n.push(t[i]);return n}var d={type:o},f={type:o,soft:!0},E=[{type:o,hard:!0},{type:"break-parent"}];function m(e){return(t,n,i)=>{let r=!!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]/u),y=e=>"\n"===e||"\r"===e||"\u2028"===e||"\u2029"===e;var O=function(e,t,n){let i=!!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(y(r))return t-1}else{if("\r"===r&&"\n"===e.charAt(t+1))return t+2;if(y(r))return t+1}return t};var A=function(e,t,n={}){let i=T(e,n.backwards?t-1:t,n);return i!==O(e,i,n)};var D=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 v=function(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?I(e,t):t)};var x=function(e,t){let n=null,i=t;for(;i!==n;)n=i,i=N(e,i),i=D(e,i),i=T(e,i);return i=v(e,i),i=O(e,i),!1!==i&&A(e,i)};var _=function(e){return Array.isArray(e)&&e.length>0},k=class extends Error{name="UnexpectedNodeError";constructor(e,t,n="type"){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},g=k,C=null;function S(e){if(null!==C&&(C.property,1)){let e=C;return C=S.prototype=null,e}return C=S.prototype=e??Object.create(null),new S}for(let e=0;e<=10;e++)S();var R,b=function(e,t="type"){return function(e){S(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}}},F=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}}},w={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","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:["description","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"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]};new Set(Object.keys(w)),function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(R||(R={}));var P={...w};for(let e of["ArgumentCoordinate","DirectiveArgumentCoordinate","DirectiveCoordinate","MemberCoordinate","TypeCoordinate"])delete P[e];var M=b(P,"kind"),U=e=>e.loc.start,V=e=>e.loc.end,B=/^\s*#[^\S\n]*@(?:noformat|noprettier)\s*(?:\n|$)/u,j=/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/u;var K=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(E):r.push(d),r};function $(e,t,n){if(0===n.directives.length)return"";let i=h(d,e.map(t,"directives"));return"FragmentDefinition"===n.kind||"OperationDefinition"===n.kind?u([d,i]):[" ",u(c([f,i]))]}function G(e,t,n,i){return e.map(({isLast:e,node:i})=>{let r=n();return!e&&x(t.originalText,V(i))?[r,E]:r},i)}function Y(e,t){let{node:n}=e;return _(n.variableDefinitions)?u(["(",c([f,h([p("",", "),f],e.map(t,"variableDefinitions"))]),f,")"]):""}function q(e,t){"StringValue"===e.kind&&e.block&&!e.value.includes("\n")&&(t.value=e.value.trim())}q.ignoredProperties=new Set(["loc","comments"]);var J={print:function(e,t,n){let{node:i}=e;switch(i.kind){case"Document":return[...h(E,G(e,t,n,"definitions")),E];case"OperationDefinition":{let r="{"!==t.originalText[U(i)],s=!!i.name;return[K(e,t,n),r?i.operation:"",r&&s?[" ",n("name")]:"",r&&!s&&_(i.variableDefinitions)?" ":"",Y(e,n),$(e,n,i),r||s?" ":"",n("selectionSet")]}case"FragmentDefinition":return[K(e,t,n),"fragment ",n("name"),Y(e,n)," on ",n("typeCondition"),$(e,n,i)," ",n("selectionSet")];case"SelectionSet":return["{",c([E,h(E,G(e,t,n,"selections"))]),E,"}"];case"Field":return u([i.alias?[n("alias"),": "]:"",n("name"),i.arguments.length>0?u(["(",c([f,h([p("",", "),f],G(e,t,n,"arguments"))]),f,")"]):"",$(e,n,i),i.selectionSet?" ":"",n("selectionSet")]);case"Name":case"IntValue":case"FloatValue":case"EnumValue":return i.value;case"StringValue":if(i.block){let e=a(0,i.value,'"""','\\"""').split("\n");return 1===e.length&&(e[0]=e[0].trim()),e.every(e=>""===e)&&(e.length=0),h(E,['"""',...e,'"""'])}return['"',a(0,a(0,i.value,/["\\]/gu,"\\$&"),"\n","\\n"),'"'];case"BooleanValue":return i.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return u(["[",c([f,h([p("",", "),f],e.map(n,"values"))]),f,"]"]);case"ObjectValue":{let r=t.bracketSpacing&&i.fields.length>0?" ":"";return u(["{",r,c([f,h([p("",", "),f],e.map(n,"fields"))]),f,p("",r),"}"])}case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),i.arguments.length>0?u(["(",c([f,h([p("",", "),f],G(e,t,n,"arguments"))]),f,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[K(e,t,n),n("variable"),": ",n("type"),i.defaultValue?[" = ",n("defaultValue")]:"",$(e,n,i)];case"ObjectTypeExtension":case"ObjectTypeDefinition":case"InputObjectTypeExtension":case"InputObjectTypeDefinition":case"InterfaceTypeExtension":case"InterfaceTypeDefinition":{let{kind:r}=i,s=[];return r.endsWith("TypeDefinition")?s.push(K(e,t,n)):s.push("extend "),r.startsWith("ObjectType")?s.push("type"):r.startsWith("InputObjectType")?s.push("input"):s.push("interface"),s.push(" ",n("name")),!r.startsWith("InputObjectType")&&i.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?d:" ")}}return r}(e,t,n)),s.push($(e,n,i)),i.fields.length>0&&s.push([" {",c([E,h(E,G(e,t,n,"fields"))]),E,"}"]),s}case"FieldDefinition":return[K(e,t,n),n("name"),i.arguments.length>0?u(["(",c([f,h([p("",", "),f],G(e,t,n,"arguments"))]),f,")"]):"",": ",n("type"),$(e,n,i)];case"DirectiveDefinition":return[K(e,t,n),"directive ","@",n("name"),i.arguments.length>0?u(["(",c([f,h([p("",", "),f],G(e,t,n,"arguments"))]),f,")"]):"",i.repeatable?" repeatable":""," on ",...h(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[K(e,t,n),"EnumTypeExtension"===i.kind?"extend ":"","enum ",n("name"),$(e,n,i),i.values.length>0?[" {",c([E,h(E,G(e,t,n,"values"))]),E,"}"]:""];case"EnumValueDefinition":return[K(e,t,n),n("name"),$(e,n,i)];case"InputValueDefinition":return[K(e,t,n),n("name"),": ",n("type"),i.defaultValue?[" = ",n("defaultValue")]:"",$(e,n,i)];case"SchemaExtension":return["extend schema",$(e,n,i),...i.operationTypes.length>0?[" {",c([E,h(E,G(e,t,n,"operationTypes"))]),E,"}"]:[]];case"SchemaDefinition":return[K(e,t,n),"schema",$(e,n,i)," {",i.operationTypes.length>0?c([E,h(E,G(e,t,n,"operationTypes"))]):"",E,"}"];case"OperationTypeDefinition":return[i.operation,": ",n("type")];case"FragmentSpread":return["...",n("name"),$(e,n,i)];case"InlineFragment":return["...",i.typeCondition?[" on ",n("typeCondition")]:"",$(e,n,i)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return u([K(e,t,n),u(["UnionTypeExtension"===i.kind?"extend ":"","union ",n("name"),$(e,n,i),i.types.length>0?[" =",p(""," "),c([p([d,"| "]),h([d,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[K(e,t,n),"ScalarTypeExtension"===i.kind?"extend ":"","scalar ",n("name"),$(e,n,i)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new g(i,"Graphql","kind")}},massageAstNode:q,hasPrettierIgnore:function(e){let{node:t}=e;return t?.comments?.some(e=>"prettier-ignore"===e.value.trim())},insertPragma:e=>`# @format\n\n${e}`,printComment:function({node:e}){if("Comment"===e.kind)return"#"+e.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(e))},canAttachComment:function(e){return"Comment"!==e.kind},getVisitorKeys:M},Q=J,X=[{name:"GraphQL",type:"data",aceMode:"graphqlschema",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",parsers:["graphql"],vscodeLanguageIds:["graphql"],linguistLanguageId:139}],z={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."}},H={};function W(e,t){throw new Error("Unexpected invariant triggered.")}t(H,{graphql:()=>qe});var Z=/\r\n|[\n\r]/g;function ee(e,t){let n=0,i=1;for(let r of e.body.matchAll(Z)){if("number"==typeof r.index||W(),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function te(e){return ne(e.source,ee(e.source,e.start))}function ne(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+ie([[`${a} |`,n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return c+ie([[a-1+" |",u[r-1]],[`${a} |`,p],["|","^".padStart(l)],[`${a+1} |`,u[r+1]]])}function ie(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 re,se,ae,oe=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=le(Array.isArray(a)?a:a?[a]:void 0);let h=le(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??h?.map(e=>e.start),this.locations=l&&o?l.map(e=>ee(o,e)):h?.map(e=>ee(e.source,e.start));let d=function(e){return"object"==typeof e&&null!==e}(u?.extensions)?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"+te(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+ne(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 le(e){return void 0===e||0===e.length?void 0:e}function ce(e,t,n){return new oe(`Syntax Error: ${n}`,{source:e,positions:[t]})}function ue(e){return 9===e||32===e}function pe(e){return e>=48&&e<=57}function he(e){return e>=97&&e<=122||e>=65&&e<=90}function de(e){return he(e)||95===e}function fe(e){return he(e)||pe(e)||95===e}function Ee(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=me(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 me(e){let t=0;for(;t<e.length&&ue(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"}(re||(re={})),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",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"}(se||(se={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",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"}(ae||(ae={}));var Te=class{constructor(e){let t=new F(ae.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!==ae.EOF)do{if(e.next)e=e.next;else{let t=ve(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===ae.COMMENT);return e}};function Ne(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Ie(e,t){return ye(e.charCodeAt(t))&&Oe(e.charCodeAt(t+1))}function ye(e){return e>=55296&&e<=56319}function Oe(e){return e>=56320&&e<=57343}function Ae(e,t){let n=e.source.body.codePointAt(t);if(void 0===n)return ae.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function De(e,t,n,i,r){let s=e.line,a=1+n-e.lineStart;return new F(t,n,i,s,a,r)}function ve(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 xe(e,r);case 33:return De(e,ae.BANG,r,r+1);case 36:return De(e,ae.DOLLAR,r,r+1);case 38:return De(e,ae.AMP,r,r+1);case 40:return De(e,ae.PAREN_L,r,r+1);case 41:return De(e,ae.PAREN_R,r,r+1);case 46:if(46===n.charCodeAt(r+1)&&46===n.charCodeAt(r+2))return De(e,ae.SPREAD,r,r+3);break;case 58:return De(e,ae.COLON,r,r+1);case 61:return De(e,ae.EQUALS,r,r+1);case 64:return De(e,ae.AT,r,r+1);case 91:return De(e,ae.BRACKET_L,r,r+1);case 93:return De(e,ae.BRACKET_R,r,r+1);case 123:return De(e,ae.BRACE_L,r,r+1);case 124:return De(e,ae.PIPE,r,r+1);case 125:return De(e,ae.BRACE_R,r,r+1);case 34:return 34===n.charCodeAt(r+1)&&34===n.charCodeAt(r+2)?Fe(e,r):ge(e,r)}if(pe(t)||45===t)return _e(e,r,t);if(de(t))return we(e,r);throw ce(e.source,r,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":Ne(t)||Ie(n,r)?`Unexpected character: ${Ae(e,r)}.`:`Invalid character: ${Ae(e,r)}.`)}return De(e,ae.EOF,i,i)}function xe(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(Ne(e))++r;else{if(!Ie(n,r))break;r+=2}}return De(e,ae.COMMENT,t,r,n.slice(t+1,r))}function _e(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),pe(s))throw ce(e.source,r,`Invalid number, unexpected digit after 0: ${Ae(e,r)}.`)}else r=ke(e,r,s),s=i.charCodeAt(r);if(46===s&&(a=!0,s=i.charCodeAt(++r),r=ke(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=ke(e,r,s),s=i.charCodeAt(r)),46===s||de(s))throw ce(e.source,r,`Invalid number, expected digit but got: ${Ae(e,r)}.`);return De(e,a?ae.FLOAT:ae.INT,t,r,i.slice(t,r))}function ke(e,t,n){if(!pe(n))throw ce(e.source,t,`Invalid number, expected digit but got: ${Ae(e,t)}.`);let i=e.source.body,r=t+1;for(;pe(i.charCodeAt(r));)++r;return r}function ge(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),De(e,ae.STRING,t,r+1,a);if(92===i){a+=n.slice(s,r);let t=117===n.charCodeAt(r+1)?123===n.charCodeAt(r+2)?Ce(e,r):Se(e,r):Le(e,r);a+=t.value,r+=t.size,s=r;continue}if(10===i||13===i)break;if(Ne(i))++r;else{if(!Ie(n,r))throw ce(e.source,r,`Invalid character within String: ${Ae(e,r)}.`);r+=2}}throw ce(e.source,r,"Unterminated string.")}function Ce(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||!Ne(i))break;return{value:String.fromCodePoint(i),size:r}}if(i=i<<4|be(e),i<0)break}throw ce(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+r)}".`)}function Se(e,t){let n=e.source.body,i=Re(n,t+2);if(Ne(i))return{value:String.fromCodePoint(i),size:6};if(ye(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){let e=Re(n,t+8);if(Oe(e))return{value:String.fromCodePoint(i,e),size:12}}throw ce(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function Re(e,t){return be(e.charCodeAt(t))<<12|be(e.charCodeAt(t+1))<<8|be(e.charCodeAt(t+2))<<4|be(e.charCodeAt(t+3))}function be(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Le(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 ce(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Fe(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=De(e,ae.BLOCK_STRING,t,s+3,Ee(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(Ne(i))++s;else{if(!Ie(n,s))throw ce(e.source,s,`Invalid character within String: ${Ae(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 ce(e.source,s,"Unterminated string.")}function we(e,t){let n=e.source.body,i=n.length,r=t+1;for(;r<i;){if(!fe(n.charCodeAt(r)))break;++r}return De(e,ae.NAME,t,r,n.slice(t,r))}function Pe(e,t){throw new Error(t)}function Me(e){return Ue(e,[])}function Ue(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:Ue(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(Ue(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+": "+Ue(n,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}var Ve=globalThis.process&&!0?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=Me(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},Be=class{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||Pe(0,`Body must be a string. Received: ${Me(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Pe(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Pe(0,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};var je=class{constructor(e,t={}){let{lexer:n,...i}=t;if(n)this._lexer=n;else{let t=function(e){return Ve(e,Be)}(e)?e:new Be(e);this._lexer=new Te(t)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(ae.NAME);return this.node(e,{kind:se.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:se.DOCUMENT,definitions:this.many(ae.SOF,this.parseDefinition,ae.EOF)})}parseDefinition(){if(this.peek(ae.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===ae.BRACE_L)throw ce(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===ae.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()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw ce(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e=this._lexer.token;if(this.peek(ae.BRACE_L))return this.node(e,{kind:se.OPERATION_DEFINITION,operation:R.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let t,n=this.parseDescription(),i=this.parseOperationType();return this.peek(ae.NAME)&&(t=this.parseName()),this.node(e,{kind:se.OPERATION_DEFINITION,operation:i,description:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(ae.NAME);switch(e.value){case"query":return R.QUERY;case"mutation":return R.MUTATION;case"subscription":return R.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(ae.PAREN_L,this.parseVariableDefinition,ae.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:se.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(ae.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(ae.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(ae.DOLLAR),this.node(e,{kind:se.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:se.SELECTION_SET,selections:this.many(ae.BRACE_L,this.parseSelection,ae.BRACE_R)})}parseSelection(){return this.peek(ae.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,n=this._lexer.token,i=this.parseName();return this.expectOptionalToken(ae.COLON)?(e=i,t=this.parseName()):t=i,this.node(n,{kind:se.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(ae.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(ae.PAREN_L,t,ae.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(ae.COLON),this.node(t,{kind:se.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(ae.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(ae.NAME)?this.node(e,{kind:se.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:se.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:se.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:se.FRAGMENT_DEFINITION,description:t,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 ae.BRACKET_L:return this.parseList(e);case ae.BRACE_L:return this.parseObject(e);case ae.INT:return this.advanceLexer(),this.node(t,{kind:se.INT,value:t.value});case ae.FLOAT:return this.advanceLexer(),this.node(t,{kind:se.FLOAT,value:t.value});case ae.STRING:case ae.BLOCK_STRING:return this.parseStringLiteral();case ae.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:se.BOOLEAN,value:!0});case"false":return this.node(t,{kind:se.BOOLEAN,value:!1});case"null":return this.node(t,{kind:se.NULL});default:return this.node(t,{kind:se.ENUM,value:t.value})}case ae.DOLLAR:if(e){if(this.expectToken(ae.DOLLAR),this._lexer.token.kind===ae.NAME){let e=this._lexer.token.value;throw ce(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:se.STRING,value:e.value,block:e.kind===ae.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:se.LIST,values:this.any(ae.BRACKET_L,()=>this.parseValueLiteral(e),ae.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:se.OBJECT,fields:this.any(ae.BRACE_L,()=>this.parseObjectField(e),ae.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(ae.COLON),this.node(t,{kind:se.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(ae.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(ae.AT),this.node(t,{kind:se.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(ae.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(ae.BRACKET_R),e=this.node(t,{kind:se.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(ae.BANG)?this.node(t,{kind:se.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:se.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(ae.STRING)||this.peek(ae.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(ae.BRACE_L,this.parseOperationTypeDefinition,ae.BRACE_R);return this.node(e,{kind:se.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(ae.COLON);let n=this.parseNamedType();return this.node(e,{kind:se.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:se.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:se.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(ae.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(ae.BRACE_L,this.parseFieldDefinition,ae.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(ae.COLON);let r=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:se.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:s})}parseArgumentDefs(){return this.optionalMany(ae.PAREN_L,this.parseInputValueDef,ae.PAREN_R)}parseInputValueDef(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(ae.COLON);let i,r=this.parseTypeReference();this.expectOptionalToken(ae.EQUALS)&&(i=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(e,{kind:se.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:se.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:se.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(ae.EQUALS)?this.delimitedMany(ae.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:se.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(ae.BRACE_L,this.parseEnumValueDefinition,ae.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:se.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 ce(this._lexer.source,this._lexer.token.start,`${Ke(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:se.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(ae.BRACE_L,this.parseInputValueDef,ae.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===ae.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(ae.BRACE_L,this.parseOperationTypeDefinition,ae.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:se.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:se.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:se.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:se.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:se.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:se.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:se.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(ae.AT);let n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(e,{kind:se.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:s})}parseDirectiveLocations(){return this.delimitedMany(ae.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(re,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e,t,n=this._lexer.token,i=this.expectOptionalToken(ae.AT),r=this.parseName();return!i&&this.expectOptionalToken(ae.DOT)&&(e=this.parseName()),(i||e)&&this.expectOptionalToken(ae.PAREN_L)&&(t=this.parseName(),this.expectToken(ae.COLON),this.expectToken(ae.PAREN_R)),i?t?this.node(n,{kind:se.DIRECTIVE_ARGUMENT_COORDINATE,name:r,argumentName:t}):this.node(n,{kind:se.DIRECTIVE_COORDINATE,name:r}):e?t?this.node(n,{kind:se.ARGUMENT_COORDINATE,name:r,fieldName:e,argumentName:t}):this.node(n,{kind:se.MEMBER_COORDINATE,name:r,memberName:e}):this.node(n,{kind:se.TYPE_COORDINATE,name:r})}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 ce(this._lexer.source,t.start,`Expected ${$e(e)}, found ${Ke(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind!==ae.NAME||t.value!==e)throw ce(this._lexer.source,t.start,`Expected "${e}", found ${Ke(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===ae.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=e??this._lexer.token;return ce(this._lexer.source,t.start,`Unexpected ${Ke(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(t.kind!==ae.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw ce(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}};function Ke(e){let t=e.value;return $e(e.kind)+(null!=t?` "${t}"`:"")}function $e(e){return function(e){return e===ae.BANG||e===ae.DOLLAR||e===ae.AMP||e===ae.PAREN_L||e===ae.PAREN_R||e===ae.DOT||e===ae.SPREAD||e===ae.COLON||e===ae.EQUALS||e===ae.AT||e===ae.BRACKET_L||e===ae.BRACKET_R||e===ae.BRACE_L||e===ae.PIPE||e===ae.BRACE_R}(e)?`"${e}"`:e}var Ge=function(e,t){let n=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(n,t)};var Ye={allowLegacyFragmentVariables:!0};var qe={parse:function(e){let t;try{t=function(e,t){let n=new je(e,t),i=n.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:n.tokenCount}),i}(e,Ye)}catch(e){throw function(e){if("GraphQLError"===e?.name){let{message:t,locations:[n]}=e;return Ge(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:e=>j.test(e),hasIgnorePragma:e=>B.test(e),locStart:U,locEnd:V},Je={graphql:Q};exports.default=n,exports.languages=X,exports.options=z,exports.parsers=H,exports.printers=Je;
|
|
3
|
-
//# sourceMappingURL=graphql.js.map
|