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.
Files changed (73) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/bin/index.js +21 -1
  3. package/bin/styletext-loader.mjs +30 -0
  4. package/lib/cli/config/index.js +155 -2
  5. package/lib/cli/config/index.mjs +3 -0
  6. package/lib/cli/copyfiles/index.js +33 -2
  7. package/lib/cli/copyfiles/index.mjs +3 -0
  8. package/lib/cli/create/config/index.js +1226 -4
  9. package/lib/cli/create/config/index.mjs +11 -0
  10. package/lib/cli/create/index.js +4 -2
  11. package/lib/cli/create/index.mjs +3 -0
  12. package/lib/cli/create/module/index.js +33214 -2
  13. package/lib/cli/create/module/index.mjs +3 -0
  14. package/lib/cli/i18n/index.js +22179 -3
  15. package/lib/cli/i18n/index.mjs +10 -0
  16. package/lib/cli/i18n/utils.js +180 -2
  17. package/lib/cli/i18n/utils.mjs +3 -0
  18. package/lib/cli/index.js +3655 -2
  19. package/lib/cli/index.mjs +3 -0
  20. package/lib/cli/routes/index.js +75 -2
  21. package/lib/cli/routes/index.mjs +3 -0
  22. package/lib/cli/tsconfig/index.js +70 -2
  23. package/lib/cli/tsconfig/index.mjs +3 -0
  24. package/lib/cli/utils/detectPort.js +120 -2
  25. package/lib/cli/utils/detectPort.mjs +3 -0
  26. package/lib/cli/utils/getJavascriptfile.js +14 -2
  27. package/lib/cli/utils/getJavascriptfile.mjs +3 -0
  28. package/lib/cli/utils/index.js +4948 -2
  29. package/lib/cli/utils/index.mjs +3 -0
  30. package/lib/cli/webpack/Webpack.js +60 -2
  31. package/lib/cli/webpack/Webpack.mjs +3 -0
  32. package/lib/cli/webpack/config/analyzer.config.js +17 -2
  33. package/lib/cli/webpack/config/analyzer.config.mjs +3 -0
  34. package/lib/cli/webpack/config/browsers.js +13 -2
  35. package/lib/cli/webpack/config/browsers.mjs +3 -0
  36. package/lib/cli/webpack/config/cssRules.js +80 -2
  37. package/lib/cli/webpack/config/cssRules.mjs +3 -0
  38. package/lib/cli/webpack/config/default.config.js +179 -2
  39. package/lib/cli/webpack/config/default.config.mjs +3 -0
  40. package/lib/cli/webpack/config/development.config.js +45 -2
  41. package/lib/cli/webpack/config/development.config.mjs +3 -0
  42. package/lib/cli/webpack/config/framework/index.js +25 -2
  43. package/lib/cli/webpack/config/framework/index.mjs +3 -0
  44. package/lib/cli/webpack/config/framework/react.js +23 -2
  45. package/lib/cli/webpack/config/framework/react.mjs +3 -0
  46. package/lib/cli/webpack/config/framework/vue.js +33 -2
  47. package/lib/cli/webpack/config/framework/vue.mjs +3 -0
  48. package/lib/cli/webpack/config/index.js +23 -2
  49. package/lib/cli/webpack/config/index.mjs +3 -0
  50. package/lib/cli/webpack/config/production.config.js +74 -2
  51. package/lib/cli/webpack/config/production.config.mjs +3 -0
  52. package/lib/cli/webpack/plugins/copy.js +20 -2
  53. package/lib/cli/webpack/plugins/copy.mjs +3 -0
  54. package/lib/cli/webpack/plugins/index.js +4 -2
  55. package/lib/cli/webpack/plugins/index.mjs +3 -0
  56. package/package.json +2 -2
  57. package/rollup.config.js +5 -4
  58. package/.changeset/README.md +0 -8
  59. package/.changeset/config.json +0 -11
  60. package/lib/cli/acorn.js +0 -3
  61. package/lib/cli/angular.js +0 -3
  62. package/lib/cli/babel.js +0 -3
  63. package/lib/cli/estree.js +0 -3
  64. package/lib/cli/flow.js +0 -3
  65. package/lib/cli/glimmer.js +0 -3
  66. package/lib/cli/graphql.js +0 -3
  67. package/lib/cli/html.js +0 -3
  68. package/lib/cli/markdown.js +0 -3
  69. package/lib/cli/meriyah.js +0 -3
  70. package/lib/cli/msmain.js +0 -65
  71. package/lib/cli/postcss.js +0 -3
  72. package/lib/cli/typescript.js +0 -3
  73. package/lib/cli/yaml.js +0 -3
package/lib/cli/html.js DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";var e=Object.defineProperty,t=e=>{throw TypeError(e)},r=(t,r)=>{for(var n in r)e(t,n,{get:r[n],enumerable:!0})},n=(t,r,n)=>((t,r,n)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n)(t,"symbol"!=typeof r?r+"":r,n),a=(e,r,n)=>(((e,r,n)=>{r.has(e)||t("Cannot "+n)})(e,r,"read from private field"),n?n.call(e):r.get(e)),i={};r(i,{languages:()=>Yn,options:()=>Zn,parsers:()=>ea,printers:()=>Pa});var s=(e,t)=>(r,n,...a)=>1|r&&null==n?void 0:(t.call(n)??n[e]).apply(n,a),o=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},l=s("replaceAll",function(){if("string"==typeof this)return o});function c(e){return this[e<0?this.length+e:e]}var u=s("at",function(){if(Array.isArray(this)||"string"==typeof this)return c}),p=()=>{},h="string",d="array",m="cursor",g="indent",f="align",_="trim",v="group",S="fill",T="if-break",k="indent-if-break",C="line-suffix",E="line-suffix-boundary",b="line",w="label",y="break-parent",x=new Set([m,g,f,_,v,S,T,k,C,E,b,w,y]);var N=function(e){if("string"==typeof e)return h;if(Array.isArray(e))return d;if(!e)return;let{type:t}=e;return x.has(t)?t:void 0};function L(e){let t=null===e?"null":typeof e;if("string"!==t&&"object"!==t)return`Unexpected doc '${t}', \nExpected it to be 'string' or 'object'.`;if(N(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if("[object Object]"!==r)return`Unexpected doc '${r}'.`;let n=(e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e))([...x].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'.\nExpected it to be ${n}.`}var A=class extends Error{name="InvalidDocError";constructor(e){super(L(e)),this.doc=e}};function O(e,t){if("string"==typeof e)return t(e);let r=new Map;return n(e);function n(e){if(r.has(e))return r.get(e);let a=function(e){switch(N(e)){case d:return t(e.map(n));case S:return t({...e,parts:e.parts.map(n)});case T:return t({...e,breakContents:n(e.breakContents),flatContents:n(e.flatContents)});case v:{let{expandedStates:r,contents:a}=e;return r?(r=r.map(n),a=r[0]):a=n(a),t({...e,contents:a,expandedStates:r})}case f:case g:case k:case w:case C:return t({...e,contents:n(e.contents)});case h:case m:case _:case E:case b:case y:return t(e);default:throw new A(e)}}(e);return r.set(e,a),a}}function P(e,t=z){return O(e,e=>"string"==typeof e?F(t,e.split("\n")):e)}var I=p;function D(e){return{type:g,contents:e}}function R(e){return function(e,t){return{type:f,contents:t,n:e}}(Number.NEGATIVE_INFINITY,e)}var M={type:y};function q(e){return{type:S,parts:e}}function B(e,t={}){return I(t.expandedStates),{type:v,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function H(e,t="",r={}){return{type:T,breakContents:e,flatContents:t,groupId:r.groupId}}function F(e,t){let r=[];for(let n=0;n<t.length;n++)0!==n&&r.push(e),r.push(t[n]);return r}var U={type:b},V={type:b,soft:!0},W=[{type:b,hard:!0},M],z=[{type:b,hard:!0,literal:!0},M],$=Object.freeze({character:"'",codePoint:39}),j=Object.freeze({character:'"',codePoint:34}),X=Object.freeze({preferred:$,alternate:j}),G=Object.freeze({preferred:j,alternate:$});var K=function(e,t){let{preferred:r,alternate:n}=!0===t||"'"===t?X:G,{length:a}=e,i=0,s=0;for(let t=0;t<a;t++){let a=e.charCodeAt(t);a===r.codePoint?i++:a===n.codePoint&&s++}return(i>s?n:r).character};var Y=class{#e;constructor(e){this.#e=new Set(e)}getLeadingWhitespaceCount(e){let t=this.#e,r=0;for(let n=0;n<e.length&&t.has(e.charAt(n));n++)r++;return r}getTrailingWhitespaceCount(e){let t=this.#e,r=0;for(let n=e.length-1;n>=0&&t.has(e.charAt(n));n--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return this.#e.has(e.charAt(0))}hasTrailingWhitespace(e){return this.#e.has(u(0,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let r=`[${function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}([...this.#e].join(""))}]+`,n=new RegExp(t?`(${r})`:r,"u");return e.split(n)}hasWhitespaceCharacter(e){let t=this.#e;return Array.prototype.some.call(e,e=>t.has(e))}hasNonWhitespaceCharacter(e){let t=this.#e;return Array.prototype.some.call(e,e=>!t.has(e))}isWhitespaceOnly(e){let t=this.#e;return Array.prototype.every.call(e,e=>t.has(e))}#t(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split("\n")){if(0===r.length)continue;let e=this.getLeadingWhitespaceCount(r);if(0===e)return 0;r.length!==e&&e<t&&(t=e)}return t===Number.POSITIVE_INFINITY?0:t}dedentString(e){let t=this.#t(e);return 0===t?e:e.split("\n").map(e=>e.slice(t)).join("\n")}},J=new Y(["\t","\n","\f","\r"," "]),Q=class extends Error{name="UnexpectedNodeError";constructor(e,t,r="type"){super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},Z=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),ee=new Set(["if","else if","for","switch","case"]);function te(e,t,r){if("text"===e.kind||"comment"===e.kind)return null;if("yaml"===e.kind&&delete t.value,"attribute"===e.kind){let{fullName:n,value:a}=e;"style"===n||"class"===n||"srcset"===n&&("img"===r.fullName||"source"===r.fullName)||"allow"===n&&"iframe"===r.fullName||n.startsWith("on")||n.startsWith("@")||n.startsWith(":")||n.startsWith(".")||n.startsWith("#")||n.startsWith("v-")||"vars"===n&&"style"===r.fullName||("setup"===n||"generic"===n)&&"script"===r.fullName||"slot-scope"===n||n.startsWith("(")||n.startsWith("[")||n.startsWith("*")||n.startsWith("bind")||n.startsWith("i18n")||n.startsWith("on-")||n.startsWith("ng-")||a?.includes("{{")?delete t.value:a&&(t.value=l(0,a,/'|&quot;|&apos;/gu,'"'))}if("docType"===e.kind&&(t.value=l(0,e.value.toLowerCase(),/\s+/gu," ")),"angularControlFlowBlock"===e.kind&&e.parameters?.children)for(let r of t.parameters.children)ee.has(e.name)?delete r.expression:r.expression=r.expression.trim();"angularIcuExpression"===e.kind&&(t.switchValue=e.switchValue.trim()),"angularLetDeclarationInitializer"===e.kind&&delete t.value,"element"===e.kind&&e.isVoid&&!e.isSelfClosing&&(t.isSelfClosing=!0)}te.ignoredProperties=Z;var re=te;function ne(e,t=!0){return[D([V,e]),t?V:""]}function ae(e,t){let r="NGRoot"===e.type?"NGMicrosyntax"===e.node.type&&1===e.node.body.length&&"NGMicrosyntaxExpression"===e.node.body[0].type?e.node.body[0].expression:e.node:"JsExpressionRoot"===e.type?e.node:e;return r&&("ObjectExpression"===r.type||"ArrayExpression"===r.type||("__vue_expression"===t.parser||"__vue_ts_expression"===t.parser||"__ng_binding"===t.parser||"__ng_directive"===t.parser)&&("TemplateLiteral"===r.type||"StringLiteral"===r.type))}async function ie(e,t,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let a=!0;n&&(r.__onHtmlBindingRoot=(e,t)=>{a=n(e,t)});let i=await t(e,r,t);return a?B(i):ne(i)}var se=function(e,t,r,n){let{node:a}=r,i=n.originalText.slice(a.sourceSpan.start.offset,a.sourceSpan.end.offset);return/^\s*$/u.test(i)?"":ie(i,e,{parser:"__ng_directive",__isInHtmlAttribute:!1},ae)},oe=Array.prototype.toReversed??function(){return[...this].reverse()},le=s("toReversed",function(){if(Array.isArray(this))return oe});var ce=function(){let e=globalThis,t=e.Deno?.build?.os;return"string"==typeof t?"windows"===t:e.navigator?.platform?.startsWith("Win")??e.process?.platform?.startsWith("win")??!1}();function ue(e){if("file:"!==(e=e instanceof URL?e:new URL(e)).protocol)throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function pe(e){return ce?function(e){e=ue(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return""!==e.hostname&&(t=`\\\\${e.hostname}${t}`),t}(e):function(e){return e=ue(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}(e)}var he=function(e){return Array.isArray(e)&&e.length>0};function de(e,t){if(!t)return;let r=(e=>String(e).split(/[/\\]/u).pop())(t).toLowerCase();return e.find(({filenames:e})=>e?.some(e=>e.toLowerCase()===r))??e.find(({extensions:e})=>e?.some(e=>r.endsWith(e)))}function me(e,t){if(t){if((e=>String(e).startsWith("file:"))(t))try{t=pe(t)}catch{return}if("string"==typeof t)return e.find(({isSupported:e})=>e?.({filepath:t}))}}var ge=function(e,t){let r=le(0,e.plugins).flatMap(e=>e.languages??[]);return(function(e,t){if(t)return e.find(({name:e})=>e.toLowerCase()===t)??e.find(({aliases:e})=>e?.includes(t))??e.find(({extensions:e})=>e?.includes(`.${t}`))}(r,t.language)??de(r,t.physicalFile)??de(r,t.file)??me(r,t.physicalFile)??me(r,t.file)??void 0)?.parsers[0]},fe=Symbol.for("PRETTIER_IS_FRONT_MATTER");var _e=function(e){return!!e?.[fe]};var ve=function(e){let t=function(e){let t=e.slice(0,3);if("---"!==t&&"+++"!==t)return;let r=e.indexOf("\n",3);if(-1===r)return;let n=e.slice(3,r).trim(),a=e.indexOf(`\n${t}`,r),i=n;if(i||(i="+++"===t?"toml":"yaml"),-1===a&&"---"===t&&"yaml"===i&&(a=e.indexOf("\n...",r)),-1===a)return;let s=a+1+3,o=e.charAt(s+1);if(!/\s?/u.test(o))return;let l,c=e.slice(0,s);return{language:i,explicitLanguage:n||null,value:e.slice(r+1,a),startDelimiter:t,endDelimiter:c.slice(-3),raw:c,start:{line:1,column:0,index:0},end:{index:c.length,get line(){return l??(l=c.split("\n")),l.length},get column(){return l??(l=c.split("\n")),u(0,l,-1).length}},[fe]:!0}}(e);return t?{frontMatter:t,get content(){let{raw:r}=t;return l(0,r,/[^\n]/gu," ")+e.slice(r.length)}}:{content:e}},Se={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",select:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",option:"block",optgroup:"block"},Te={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};var ke=function(e){return"element"===e.kind&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)},Ce=e=>(e=>l(0,e,/^[\t\f\r ]*\n/gu,""))(J.trimEnd(e)),Ee=e=>{let t=e,r=J.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=J.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}};function be(e,t){return!!("ieConditionalComment"===e.kind&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||"ieConditionalComment"===e.kind&&!e.complete||ze(e)&&e.children.some(e=>"text"!==e.kind&&"interpolation"!==e.kind)||Je(e,t)&&!xe(e,t)&&"interpolation"!==e.kind)}function we(e){return!("attribute"===e.kind||!e.parent||!e.prev)&&function(e){return"comment"===e.kind&&"prettier-ignore"===e.value.trim()}(e.prev)}function ye(e){return"text"===e.kind||"comment"===e.kind}function xe(e,t){return"element"===e.kind&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||"svg:script"===e.fullName||"mj-style"===e.fullName&&"mjml"===t.parser||ke(e)&&("script"===e.name||"style"===e.name))}function Ne(e){return $e(e).startsWith("pre")}function Le(e,t){let r=!(_e(e)||"angularControlFlowBlock"===e.kind||("text"!==e.kind&&"interpolation"!==e.kind||!e.prev||"text"!==e.prev.kind&&"interpolation"!==e.prev.kind)&&(!e.parent||"none"===e.parent.cssDisplay||!ze(e.parent)&&(!e.prev&&("root"===e.parent.kind||ze(e)&&e.parent||xe(e.parent,t)||Ke(e.parent,t)||!function(e){return!We(e)&&"inline-block"!==e}(e.parent.cssDisplay))||e.prev&&!function(e){return!We(e)}(e.prev.cssDisplay))));return r&&!e.prev&&e.parent?.tagDefinition?.ignoreFirstLf?"interpolation"===e.kind:r}function Ae(e,t){return!_e(e)&&"angularControlFlowBlock"!==e.kind&&(!("text"!==e.kind&&"interpolation"!==e.kind||!e.next||"text"!==e.next.kind&&"interpolation"!==e.next.kind)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!ze(e.parent)||!(!e.next&&("root"===e.parent.kind||ze(e)&&e.parent||xe(e.parent,t)||Ke(e.parent,t)||!function(e){return!We(e)&&"inline-block"!==e}(e.parent.cssDisplay))||e.next&&!function(e){return!We(e)}(e.next.cssDisplay))))}function Oe(e,t){return function(e){return!We(e)&&"inline-block"!==e}(e.cssDisplay)&&!xe(e,t)}function Pe(e){return _e(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function Ie(e){return De(e)||"element"===e.kind&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some(e=>function(e){return e.children?.some(e=>"text"!==e.kind)}(e)))||e.firstChild&&e.firstChild===e.lastChild&&"text"!==e.firstChild.kind&&qe(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||Be(e.lastChild))}function De(e){return"element"===e.kind&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function Re(e){return He(e)||e.prev&&function(e){return He(e)||"element"===e.kind&&"br"===e.fullName||Me(e)}(e.prev)||Me(e)}function Me(e){return qe(e)&&Be(e)}function qe(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:"root"===e.parent.kind||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function Be(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:"root"===e.parent.kind||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function He(e){switch(e.kind){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function Fe(e){return e.lastChild?Fe(e.lastChild):e}function Ue(e){if(e)switch(e){case"module":case"text/javascript":case"text/babel":case"text/jsx":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(e.endsWith("json")||e.endsWith("importmap")||"speculationrules"===e)return"json"}}function Ve(e,t){return function(e,t){let{name:r,attrMap:n}=e;if("script"!==r||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:a,lang:i}=e.attrMap;return i||a?ge(t,{language:i})??Ue(a):"babel"}(e,t)??function(e,t){if("style"===e.name){let{lang:r}=e.attrMap;return r?ge(t,{language:r}):"css"}if("mj-style"===e.name&&"mjml"===t.parser)return"css"}(e,t)??function(e,t){if(!Je(e,t))return;let{attrMap:r}=e;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:a}=r;return ge(t,{language:a})??Ue(n)}(e,t)}function We(e){return"block"===e||"list-item"===e||e.startsWith("table")}function ze(e){return $e(e).startsWith("pre")}function $e(e){return"element"!==e.kind||e.namespace&&!ke(e)||!Object.prototype.hasOwnProperty.call(Te,e.name)?"normal":Te[e.name]}function je(e){return l(0,l(0,e,"&apos;","'"),"&quot;",'"')}function Xe(e){return je(e.value)}var Ge=new Set(["template","style","script"]);function Ke(e,t){return Ye(e,t)&&!Ge.has(e.fullName)}function Ye(e,t){return"vue"===t.parser&&"element"===e.kind&&"root"===e.parent.kind&&"html"!==e.fullName.toLowerCase()}function Je(e,t){return Ye(e,t)&&(Ke(e,t)||e.attrMap.lang&&"html"!==e.attrMap.lang)}function Qe(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?P(t):P(J.dedentString(Ce(t)),W):F(U,J.split(t))}function Ze(e,t){return Ye(e,t)&&"script"===e.name}function et(e,t){if(function(e){let{valueSpan:t,value:r}=e;return t.end.offset-t.start.offset===r.length+2}(e))return!1;let{value:r}=e;return/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r)||"lwc"===t.parser&&r.startsWith("{")&&r.endsWith("}")}var tt=/\{\{(.+?)\}\}/su;var rt=e=>(t,r,n)=>ie(Xe(n.node),t,{parser:e},ae),nt=[{test(e){let t=e.node.fullName;return t.startsWith("(")&&t.endsWith(")")||t.startsWith("on-")},print:rt("__ng_action")},{test(e){let t=e.node.fullName;return t.startsWith("[")&&t.endsWith("]")||/^bind(?:on)?-/u.test(t)||/^ng-(?:if|show|hide|class|style)$/u.test(t)},print:rt("__ng_binding")},{test:e=>e.node.fullName.startsWith("*"),print:rt("__ng_directive")},{test:e=>/^i18n(?:-.+)?$/u.test(e.node.fullName),print:function(e,t,{node:r}){let n=Xe(r);return ne(q(Qe(r,n.trim())),!n.includes("@@"))}},{test:({node:{value:e}})=>tt.test(e),print:async function(e,t,r){let n=Xe(r.node),a=[];for(let[t,r]of n.split(tt).entries())if(t%2==0)a.push(P(r));else try{a.push(B(["{{",D([U,await ie(r,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),U,"}}"]))}catch{a.push("{{",P(r),"}}")}return a}}].map(({test:e,print:t})=>({test:(t,r)=>"angular"===r.parser&&e(t),print:t}));var at=nt,it=new Set(["onabort","onafterprint","onauxclick","onbeforeinput","onbeforematch","onbeforeprint","onbeforetoggle","onbeforeunload","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncommand","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpagereveal","onpageshow","onpageswap","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onrejectionhandled","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"]);var st=function(e){let t=[];for(let r of e.split(";")){if(r=J.trim(r),!r)continue;let[e,...n]=J.split(r);t.push({name:e,value:n})}return t};function ot(e){return"\t"===e||"\n"===e||"\f"===e||"\r"===e||" "===e}var lt=/^[ \t\n\r\u000c]+/,ct=/^[, \t\n\r\u000c]+/,ut=/^[^ \t\n\r\u000c]+/,pt=/[,]+$/,ht=/^\d+$/,dt=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;var mt=function(e){let t,r,n,a,i,s,o=e.length,l=0;function c(t){let r,n=t.exec(e.substring(l));if(n)return[r]=n,l+=r.length,r}let u=[];for(;;){if(c(ct),l>=o){if(0===u.length)throw new Error("Must contain one or more image candidate strings.");return u}s=l,t=c(ut),r=[],","===t.slice(-1)?(t=t.replace(pt,""),h()):p()}function p(){for(c(lt),n="",a="in descriptor";;){if(i=e.charAt(l),"in descriptor"===a)if(ot(i))n&&(r.push(n),n="",a="after descriptor");else{if(","===i)return l+=1,n&&r.push(n),void h();if("("===i)n+=i,a="in parens";else{if(""===i)return n&&r.push(n),void h();n+=i}}else if("in parens"===a)if(")"===i)n+=i,a="in descriptor";else{if(""===i)return r.push(n),void h();n+=i}else if("after descriptor"===a&&!ot(i)){if(""===i)return void h();a="in descriptor",l-=1}l+=1}}function h(){let n,a,i,o,l,c,p,h,d,m=!1,g={};for(o=0;o<r.length;o++)l=r[o],c=l[l.length-1],p=l.substring(0,l.length-1),h=parseInt(p,10),d=parseFloat(p),ht.test(p)&&"w"===c?((n||a)&&(m=!0),0===h?m=!0:n=h):dt.test(p)&&"x"===c?((n||a||i)&&(m=!0),d<0?m=!0:a=d):ht.test(p)&&"h"===c?((i||a)&&(m=!0),0===h?m=!0:i=h):m=!0;if(m)throw new Error(`Invalid srcset descriptor found in "${e}" at "${l}".`);g.source={value:t,startOffset:s},n&&(g.width={value:n}),a&&(g.density={value:a}),i&&(g.height={value:i}),u.push(g)}},gt={width:"w",height:"h",density:"x"},ft=Object.keys(gt);var _t=new WeakMap;var vt=function(e,t){let{root:r}=e;return _t.has(r)||_t.set(r,r.children.some(e=>Ze(e,t)&&["ts","typescript"].includes(e.attrMap.lang))),_t.get(r)};var St=[{test:e=>"v-for"===e.node.fullName,print:async function(e,t,r,n){let a=Xe(r.node),{left:i,operator:s,right:o}=function(e){let t=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,a=e.match(t);if(!a)return;let i={for:a[3].trim()};if(!i.for)return;let s=l(0,a[1].trim(),n,""),o=s.match(r);o?(i.alias=s.replace(r,""),i.iterator1=o[1].trim(),o[2]&&(i.iterator2=o[2].trim())):i.alias=s;let c=[i.alias,i.iterator1,i.iterator2];if(!c.some((e,t)=>!e&&(0===t||c.slice(t+1).some(Boolean))))return{left:c.filter(Boolean).join(","),operator:a[2],right:i.for}}(a),c=vt(r,n);return[B(await ie(`function _(${i}) {}`,e,{parser:c?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",s," ",await ie(o,e,{parser:c?"__ts_expression":"__js_expression"})]}},{test:(e,t)=>"generic"===e.node.fullName&&Ze(e.parent,t),print:function(e,t,r){return ie(`type T<${Xe(r.node)}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},ae)}},{test:({node:e},t)=>function(e){let t=e.fullName;return"#"===t.charAt(0)||"slot-scope"===t||"v-slot"===t||t.startsWith("v-slot:")}(e)||function(e,t){let r=e.parent;if(!Ye(r,t))return!1;let n=r.fullName,a=e.fullName;return"script"===n&&"setup"===a||"style"===n&&"vars"===a}(e,t),print:function(e,t,r,n){return ie(`function _(${Xe(r.node)}) {}`,e,{parser:vt(r,n)?"babel-ts":"babel",__isVueBindings:!0})}},{test(e){let t=e.node.fullName;return t.startsWith("@")||t.startsWith("v-on:")},print:async function(e,t,r,n){try{return await Tt(e,t,r,n)}catch(e){if("BABEL_PARSER_SYNTAX_ERROR"!==e.cause?.code)throw e}let a=Xe(r.node),i=vt(r,n)?"__vue_ts_event_binding":"__vue_event_binding";return ie(a,e,{parser:i},ae)}},{test(e){let t=e.node.fullName;return t.startsWith(":")||t.startsWith(".")||t.startsWith("v-bind:")},print:function(e,t,r,n){let a=Xe(r.node),i=vt(r,n)?"__vue_ts_expression":"__vue_expression";return ie(a,e,{parser:i},ae)}},{test:e=>e.node.fullName.startsWith("v-"),print:Tt}].map(({test:e,print:t})=>({test:(t,r)=>"vue"===r.parser&&e(t,r),print:t}));function Tt(e,t,r,n){return ie(Xe(r.node),e,{parser:vt(r,n)?"__ts_expression":"__js_expression"},ae)}var kt=[{test:e=>"srcset"===e.node.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName),print:function(e,t,r){let n=Xe(r.node),a=mt(n),i=ft.filter(e=>a.some(t=>Object.prototype.hasOwnProperty.call(t,e)));if(i.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[s]=i,o=gt[s],l=a.map(e=>e.source.value),c=Math.max(...l.map(e=>e.length)),u=a.map(e=>e[s]?String(e[s].value):""),p=u.map(e=>{let t=e.indexOf(".");return-1===t?e.length:t}),h=Math.max(...p);return ne(F([",",U],l.map((e,t)=>{let r=[e],n=u[t];if(n){let a=c-e.length+1,i=h-p[t],s=" ".repeat(a+i);r.push(H(s," "),n+o)}return r})))}},{test:({node:e},t)=>"style"===e.fullName&&!t.parentParser&&!e.value.includes("{{"),print:async(e,t,r)=>ne(await e(Xe(r.node),{parser:"css",__isHTMLStyleAttribute:!0}))},{test:({node:e},t)=>it.has(e.fullName)&&!t.parentParser&&!e.value.includes("{{"),print:(e,t,r)=>ie(Xe(r.node),e,{parser:"babel",__isHtmlInlineEventHandler:!0},()=>!1)},{test:({node:e},t)=>!t.parentParser&&"class"===e.fullName&&!e.value.includes("{{"),print:(e,t,r)=>Xe(r.node).trim().split(/\s+/u).join(" ")},{test:({node:e},t)=>"allow"===e.fullName&&!t.parentParser&&"iframe"===e.parent.fullName&&!e.value.includes("{{"),print:function(e,t,r){let{node:n}=r,a=st(Xe(n));return 0===a.length?[""]:ne(a.map(({name:e,value:t},r)=>[[e,...t].join(" "),r===a.length-1?H(";"):[";",U]]))}},...St,...at].map(({test:e,print:t})=>({test:e,print:Ct(t)}));function Ct(e){return async(t,r,n,a)=>{let i=await e(t,r,n,a);if(i)return i=O(i,e=>"string"==typeof e?l(0,e,'"',"&quot;"):e),[n.node.rawName,'="',B(i),'"']}}var Et=function(e,t){let{node:r}=e,{value:n}=r;if(n)return et(r,t)?[r.rawName,"=",n]:kt.find(({test:r})=>r(e,t))?.print},bt=e=>e.sourceSpan.start.offset,wt=e=>e.sourceSpan.end.offset;function yt(e,t){return[e.isSelfClosing?"":xt(e,t),Nt(e,t)]}function xt(e,t){return e.lastChild&&Mt(e.lastChild)?"":[Lt(e,t),Ot(e,t)]}function Nt(e,t){return(e.next?Dt(e.next):Rt(e.parent))?"":[Pt(e,t),At(e,t)]}function Lt(e,t){return Rt(e)?Pt(e.lastChild,t):""}function At(e,t){return Mt(e)?Ot(e.parent,t):qt(e)?$t(e.next,t):""}function Ot(e,t){if(It(e,t))return"";switch(e.kind){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return`</${e.rawName}`}}function Pt(e,t){if(It(e,t))return"";switch(e.kind){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]--\x3e";case"ieConditionalStartComment":return"]>\x3c!--\x3e";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function It(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(we(e)||be(e.parent,t))}function Dt(e){return e.prev&&"docType"!==e.prev.kind&&"angularControlFlowBlock"!==e.kind&&!ye(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Rt(e){return e.lastChild?.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!ye(Fe(e.lastChild))&&!ze(e)}function Mt(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&ye(Fe(e))}function qt(e){return e.next&&!ye(e.next)&&ye(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function Bt(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Ht(e,t,r){let{node:n}=e;if(!he(n.attrs))return n.isSelfClosing?" ":"";let a="comment"===n.prev?.kind&&function(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return!!t&&(!t[1]||t[1].split(/\s+/u))}(n.prev.value),i="boolean"==typeof a?()=>a:Array.isArray(a)?e=>a.includes(e.rawName):()=>!1,s=e.map(({node:e})=>i(e)?P(t.originalText.slice(bt(e),wt(e))):r(),"attrs"),o="element"===n.kind&&"script"===n.fullName&&1===n.attrs.length&&"src"===n.attrs[0].fullName&&0===n.children.length,l=t.singleAttributePerLine&&n.attrs.length>1&&!Ye(n,t)?W:U,c=[D([o?" ":U,F(l,s)])];return n.firstChild&&Bt(n.firstChild)||n.isSelfClosing&&Rt(n.parent)||o?c.push(n.isSelfClosing?" ":""):c.push(t.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?U:V),c}function Ft(e){return e.firstChild&&Bt(e.firstChild)?"":jt(e)}function Ut(e,t,r){let{node:n}=e;return[Vt(n,t),Ht(e,t,r),n.isSelfClosing?"":Ft(n)]}function Vt(e,t){return e.prev&&qt(e.prev)?"":[Wt(e,t),$t(e,t)]}function Wt(e,t){return Bt(e)?jt(e.parent):Dt(e)?Pt(e.prev,t):""}var zt="<!doctype";function $t(e,t){switch(e.kind){case"ieConditionalComment":case"ieConditionalStartComment":return`\x3c!--[if ${e.condition}`;case"ieConditionalEndComment":return"\x3c!--<!";case"interpolation":return"{{";case"docType":{if("html"===e.value){let{filepath:e}=t;if(e&&/\.html?$/u.test(e))return zt}let r=bt(e);return t.originalText.slice(r,r+zt.length)}case"angularIcuExpression":return"{";case"element":if(e.condition)return`\x3c!--[if ${e.condition}]>\x3c!--\x3e<${e.rawName}`;default:return`<${e.rawName}`}}function jt(e){switch(e.kind){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--<![endif]--\x3e";default:return">"}}var Xt=function(e,t){if(!e.endSourceSpan)return"";let r=e.startSourceSpan.end.offset;e.firstChild&&Bt(e.firstChild)&&(r-=jt(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&Mt(e.lastChild)?n+=Ot(e,t).length:Rt(e)&&(n-=Pt(e.lastChild,t).length),t.originalText.slice(r,n)},Gt=new Set(["if","else if","for","switch","case"]);var Kt=function(e,t){let{node:r}=e;switch(r.kind){case"element":if(xe(r,t)||"interpolation"===r.kind)return;if(!r.isSelfClosing&&Je(r,t)){let n=Ve(r,t);return n?async(a,i)=>{let s=Xt(r,t),o=/^\s*$/u.test(s),l="";return o||(l=await a(Ce(s),{parser:n,__embeddedInHtml:!0}),o=""===l),[Wt(r,t),B(Ut(e,t,i)),o?"":W,l,o?"":W,yt(r,t),At(r,t)]}:void 0}break;case"text":if(xe(r.parent,t)){let e=Ve(r.parent,t);if(e)return async n=>{let a="markdown"===e?J.dedentString(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,i={parser:e,__embeddedInHtml:!0};if("html"===t.parser&&"babel"===e){let e="script",{attrMap:t}=r.parent;t&&("module"===t.type||("text/babel"===t.type||"text/jsx"===t.type)&&"module"===t["data-type"])&&(e="module"),i.__babelSourceType=e}return[M,Wt(r,t),await n(a,i),At(r,t)]}}else if("interpolation"===r.parent.kind)return async n=>{let a={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return"angular"===t.parser?a.parser="__ng_interpolation":"vue"===t.parser?a.parser=vt(e,t)?"__vue_ts_expression":"__vue_expression":a.parser="__js_expression",[D([U,await n(r.value,a)]),r.parent.next&&Dt(r.parent.next)?" ":U]};break;case"attribute":return Et(e,t);case"angularControlFlowBlockParameters":return Gt.has(e.parent.name)?se:void 0;case"angularLetDeclarationInitializer":return e=>ie(r.value,e,{parser:"__ng_binding",__isInHtmlAttribute:!1})}},Yt=null;function Jt(e){if(null!==Yt&&(Yt.property,1)){let e=Yt;return Yt=Jt.prototype=null,e}return Yt=Jt.prototype=e??Object.create(null),new Jt}for(let e=0;e<=10;e++)Jt();var Qt=function(e,t="type"){return function(e){Jt(e)}(e),function(r){let n=r[t],a=e[n];if(!Array.isArray(a))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return a}},Zt=[["children"],[]],er=Qt({root:Zt[0],element:["attrs","children"],ieConditionalComment:Zt[0],ieConditionalStartComment:Zt[1],ieConditionalEndComment:Zt[1],interpolation:Zt[0],text:Zt[0],docType:Zt[1],comment:Zt[1],attribute:Zt[1],cdata:Zt[1],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:Zt[0],angularControlFlowBlockParameter:Zt[1],angularLetDeclaration:["init"],angularLetDeclarationInitializer:Zt[1],angularIcuExpression:["cases"],angularIcuCase:["expression"]},"kind"),tr=/^\s*<!--\s*@(?:noformat|noprettier)\s*-->/u,rr=/^\s*<!--\s*@(?:format|prettier)\s*-->/u,nr=e=>rr.test(e),ar=e=>tr.test(e),ir=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function sr(e){let t=wt(e);return"element"===e.kind&&!e.endSourceSpan&&he(e.children)?Math.max(t,sr(u(0,e.children,-1))):t}function or(e,t,r){let n=e.node;if(we(n)){let e=sr(n);return[Wt(n,t),P(J.trimEnd(t.originalText.slice(bt(n)+(n.prev&&qt(n.prev)?$t(n).length:0),e-(n.next&&Dt(n.next)?Pt(n,t).length:0)))),At(n,t)]}return r()}function lr(e,t){return ye(e)&&ye(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?Re(t)?W:U:"":Re(t)?W:V:qt(e)&&(we(t)||t.firstChild||t.isSelfClosing||"element"===t.kind&&t.attrs.length>0)||"element"===e.kind&&e.isSelfClosing&&Dt(t)?"":!t.isLeadingSpaceSensitive||Re(t)||Dt(t)&&e.lastChild&&Mt(e.lastChild)&&e.lastChild.lastChild&&Mt(e.lastChild.lastChild)?W:t.hasLeadingSpaces?U:V}function cr(e,t,r){let{node:n}=e;if(De(n))return[M,...e.map(()=>{let n=e.node,a=n.prev?lr(n.prev,n):"";return[a?[a,Pe(n.prev)?W:""]:"",or(e,t,r)]},"children")];let a=n.children.map(()=>Symbol(""));return e.map(({node:n,index:i})=>{if(ye(n)){if(n.prev&&ye(n.prev)){let a=lr(n.prev,n);if(a)return Pe(n.prev)?[W,W,or(e,t,r)]:[a,or(e,t,r)]}return or(e,t,r)}let s=[],o=[],l=[],c=[],u=n.prev?lr(n.prev,n):"",p=n.next?lr(n,n.next):"";return u&&(Pe(n.prev)?s.push(W,W):u===W?s.push(W):ye(n.prev)?o.push(u):o.push(H("",V,{groupId:a[i-1]}))),p&&(Pe(n)?ye(n.next)&&c.push(W,W):p===W?ye(n.next)&&c.push(W):l.push(p)),[...s,B([...o,B([or(e,t,r),...l],{id:a[i]})]),...c]},"children")}function ur(e,t,r){let{node:n}=e,a=[];if(function(e){let{previous:t}=e;return"angularControlFlowBlock"===t?.kind&&!we(t)&&!pr(t)}(e)&&a.push("} "),a.push("@",n.name),dr(n))return a.push(";"),a;if(n.parameters&&a.push(" (",B(r("parameters")),")"),!function(e){return hr(e)&&e.endSourceSpan&&e.endSourceSpan.start.offset===e.endSourceSpan.end.offset}(n)){a.push(" {");let i=pr(n);n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,a.push(D([W,cr(e,t,r)])),i&&a.push(W,"}")):i&&a.push("}")}return B(a,{shouldBreak:!0})}function pr(e){return!("angularControlFlowBlock"===e.next?.kind&&ir.get(e.name)?.has(e.next.name))}var hr=e=>"angularControlFlowBlock"===e?.kind&&("case"===e.name||"default"===e.name),dr=e=>"angularControlFlowBlock"===e?.kind&&"default never"===e.name;function mr(e,t,r){let{node:n}=e;if(be(n,t))return[Wt(n,t),B(Ut(e,t,r)),P(Xt(n,t)),...yt(n,t),At(n,t)];let a=1===n.children.length&&("interpolation"===n.firstChild.kind||"angularIcuExpression"===n.firstChild.kind)&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),s=a=>B([B(Ut(e,t,r),{id:i}),a,yt(n,t)]);return 0===n.children.length?s(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?U:""):s([Ie(n)?M:"",(o=[a?H(V,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?U:"text"===n.firstChild.kind&&n.isWhitespaceSensitive&&n.isIndentationSensitive?R(V):V,cr(e,t,r)],a?function(e,t){return{type:k,contents:e,groupId:t.groupId,negate:t.negate}}(o,{groupId:i}):!xe(n,t)&&!Ke(n,t)||"root"!==n.parent.kind||"vue"!==t.parser||t.vueIndentScriptAndStyle?D(o):o),(n.next?Dt(n.next):Rt(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":a?H(V,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?U:("comment"===n.lastChild.kind||"text"===n.lastChild.kind&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":V]);var o}var gr,fr=((gr={})[gr.RAW_TEXT=0]="RAW_TEXT",gr[gr.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",gr[gr.PARSABLE_DATA=2]="PARSABLE_DATA",gr);function _r(e,t=!0){if(":"!=e[0])return[null,e];let r=e.indexOf(":",1);if(-1===r){if(t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[null,e]}return[e.slice(1,r),e.slice(r+1)]}function vr(e){return"ng-container"===_r(e)[1]}function Sr(e){return"ng-content"===_r(e)[1]}function Tr(e){return null===e?null:_r(e)[0]}function kr(e,t){return e?`:${e}:${t}`:t}var Cr,Er="custom-elements",br="no-errors-schema",wr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e}({}),yr=/-+([a-z0-9])/g;function xr(){return Cr||(Cr={},Nr(wr.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Nr(wr.STYLE,["*|style"]),Nr(wr.URL,["*|formAction","area|href","a|href","a|xlink:href","form|action","annotation|href","annotation|xlink:href","annotation-xml|href","annotation-xml|xlink:href","maction|href","maction|xlink:href","malignmark|href","malignmark|xlink:href","math|href","math|xlink:href","mroot|href","mroot|xlink:href","msqrt|href","msqrt|xlink:href","merror|href","merror|xlink:href","mfrac|href","mfrac|xlink:href","mglyph|href","mglyph|xlink:href","msub|href","msub|xlink:href","msup|href","msup|xlink:href","msubsup|href","msubsup|xlink:href","mmultiscripts|href","mmultiscripts|xlink:href","mprescripts|href","mprescripts|xlink:href","mi|href","mi|xlink:href","mn|href","mn|xlink:href","mo|href","mo|xlink:href","mpadded|href","mpadded|xlink:href","mphantom|href","mphantom|xlink:href","mrow|href","mrow|xlink:href","ms|href","ms|xlink:href","mspace|href","mspace|xlink:href","mstyle|href","mstyle|xlink:href","mtable|href","mtable|xlink:href","mtd|href","mtd|xlink:href","mtr|href","mtr|xlink:href","mtext|href","mtext|xlink:href","mover|href","mover|xlink:href","munder|href","munder|xlink:href","munderover|href","munderover|xlink:href","semantics|href","semantics|xlink:href","none|href","none|xlink:href","img|src","video|src"]),Nr(wr.RESOURCE_URL,["base|href","embed|src","frame|src","iframe|src","link|href","object|codebase","object|data","script|src","script|href","script|xlink:href"]),Nr(wr.ATTRIBUTE_NO_BINDING,["animate|attributeName","animate|values","animate|to","animate|from","set|to","set|attributeName","animateMotion|attributeName","animateTransform|attributeName","unknown|attributeName","unknown|values","unknown|to","unknown|from","iframe|sandbox","iframe|allow","iframe|allowFullscreen","iframe|referrerPolicy","iframe|csp","iframe|fetchPriority","unknown|sandbox","unknown|allow","unknown|allowFullscreen","unknown|referrerPolicy","unknown|csp","unknown|fetchPriority"])),Cr}function Nr(e,t){for(let r of t)Cr[r.toLowerCase()]=e}var Lr=class{},Ar=["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","geolocation^[HTMLElement]|accuracymode,!autolocate,*location,*promptaction,*promptdismiss,*validationstatuschange,!watch","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","selectedcontent^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","search^[HTMLELement]|","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],Or=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex","aria-activedescendant":"ariaActiveDescendantElement","aria-atomic":"ariaAtomic","aria-autocomplete":"ariaAutoComplete","aria-busy":"ariaBusy","aria-checked":"ariaChecked","aria-colcount":"ariaColCount","aria-colindex":"ariaColIndex","aria-colindextext":"ariaColIndexText","aria-colspan":"ariaColSpan","aria-controls":"ariaControlsElements","aria-current":"ariaCurrent","aria-describedby":"ariaDescribedByElements","aria-description":"ariaDescription","aria-details":"ariaDetailsElements","aria-disabled":"ariaDisabled","aria-errormessage":"ariaErrorMessageElements","aria-expanded":"ariaExpanded","aria-flowto":"ariaFlowToElements","aria-haspopup":"ariaHasPopup","aria-hidden":"ariaHidden","aria-invalid":"ariaInvalid","aria-keyshortcuts":"ariaKeyShortcuts","aria-label":"ariaLabel","aria-labelledby":"ariaLabelledByElements","aria-level":"ariaLevel","aria-live":"ariaLive","aria-modal":"ariaModal","aria-multiline":"ariaMultiLine","aria-multiselectable":"ariaMultiSelectable","aria-orientation":"ariaOrientation","aria-owns":"ariaOwnsElements","aria-placeholder":"ariaPlaceholder","aria-posinset":"ariaPosInSet","aria-pressed":"ariaPressed","aria-readonly":"ariaReadOnly","aria-required":"ariaRequired","aria-roledescription":"ariaRoleDescription","aria-rowcount":"ariaRowCount","aria-rowindex":"ariaRowIndex","aria-rowindextext":"ariaRowIndexText","aria-rowspan":"ariaRowSpan","aria-selected":"ariaSelected","aria-setsize":"ariaSetSize","aria-sort":"ariaSort","aria-valuemax":"ariaValueMax","aria-valuemin":"ariaValueMin","aria-valuenow":"ariaValueNow","aria-valuetext":"ariaValueText"})),Pr=Array.from(Or).reduce((e,[t,r])=>(e.set(t,r),e),new Map),Ir=class extends Lr{_schema=new Map;_eventSchema=new Map;constructor(){super(),Ar.forEach(e=>{let t=new Map,r=new Set,[n,a]=e.split("|"),i=a.split(","),[s,o]=n.split("^");s.split(",").forEach(e=>{this._schema.set(e.toLowerCase(),t),this._eventSchema.set(e.toLowerCase(),r)});let l=o&&this._schema.get(o.toLowerCase());if(l){for(let[e,r]of l)t.set(e,r);for(let e of this._eventSchema.get(o.toLowerCase()))r.add(e)}i.forEach(e=>{if(e.length>0)switch(e[0]){case"*":r.add(e.substring(1));break;case"!":t.set(e.substring(1),"boolean");break;case"#":t.set(e.substring(1),"number");break;case"%":t.set(e.substring(1),"object");break;default:t.set(e,"string")}})})}hasProperty(e,t,r){if(r.some(e=>e.name===br))return!0;if(e.indexOf("-")>-1){if(vr(e)||Sr(e))return!1;if(r.some(e=>e.name===Er))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(t)}hasElement(e,t){return!!(t.some(e=>e.name===br)||e.indexOf("-")>-1&&(vr(e)||Sr(e)||t.some(e=>e.name===Er)))||this._schema.has(e.toLowerCase())}securityContext(e,t,r){r&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let n=xr()[e+"|"+t];return n||(n=xr()["*|"+t],n||wr.NONE)}getMappedPropName(e){return Or.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...\nIf '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(t.keys()).map(e=>Pr.get(e)??e)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return function(e){return e.replace(yr,(...e)=>e[1].toUpperCase())}(e)}normalizeAnimationStyleValue(e,t,r){let n="",a=r.toString().trim(),i=null;if(function(e){switch(e){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}(e)&&0!==r&&"0"!==r)if("number"==typeof r)n="px";else{let e=r.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&(i=`Please provide a CSS unit value for ${t}:${r}`)}return{error:i,value:a+n}}};var Dr,Rr,Mr=class{closedByChildren={};contentType;closedByParent=!1;implicitNamespacePrefix;isVoid;ignoreFirstLf;canSelfClose;preventNamespaceInheritance;constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:r=fr.PARSABLE_DATA,closedByParent:n=!1,isVoid:a=!1,ignoreFirstLf:i=!1,preventNamespaceInheritance:s=!1,canSelfClose:o=!1}={}){e&&e.length>0&&e.forEach(e=>this.closedByChildren[e]=!0),this.isVoid=a,this.closedByParent=n||a,this.implicitNamespacePrefix=t||null,this.contentType=r,this.ignoreFirstLf=i,this.preventNamespaceInheritance=s,this.canSelfClose=o??a}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return"object"==typeof this.contentType?(void 0===e?void 0:this.contentType[e])??this.contentType.default:this.contentType}};function qr(e){return Rr||(Dr=new Mr({canSelfClose:!0}),Rr=Object.assign(Object.create(null),{base:new Mr({isVoid:!0}),meta:new Mr({isVoid:!0}),area:new Mr({isVoid:!0}),embed:new Mr({isVoid:!0}),link:new Mr({isVoid:!0}),img:new Mr({isVoid:!0}),input:new Mr({isVoid:!0}),param:new Mr({isVoid:!0}),hr:new Mr({isVoid:!0}),br:new Mr({isVoid:!0}),source:new Mr({isVoid:!0}),track:new Mr({isVoid:!0}),wbr:new Mr({isVoid:!0}),p:new Mr({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new Mr({closedByChildren:["tbody","tfoot"]}),tbody:new Mr({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Mr({closedByChildren:["tbody"],closedByParent:!0}),tr:new Mr({closedByChildren:["tr"],closedByParent:!0}),td:new Mr({closedByChildren:["td","th"],closedByParent:!0}),th:new Mr({closedByChildren:["td","th"],closedByParent:!0}),col:new Mr({isVoid:!0}),svg:new Mr({implicitNamespacePrefix:"svg"}),foreignObject:new Mr({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new Mr({implicitNamespacePrefix:"math"}),li:new Mr({closedByChildren:["li"],closedByParent:!0}),dt:new Mr({closedByChildren:["dt","dd"]}),dd:new Mr({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Mr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Mr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Mr({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Mr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Mr({closedByChildren:["optgroup"],closedByParent:!0}),option:new Mr({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Mr({ignoreFirstLf:!0}),listing:new Mr({ignoreFirstLf:!0}),style:new Mr({contentType:fr.RAW_TEXT}),script:new Mr({contentType:fr.RAW_TEXT}),title:new Mr({contentType:{default:fr.ESCAPABLE_RAW_TEXT,svg:fr.PARSABLE_DATA}}),textarea:new Mr({contentType:fr.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),(new Ir).allKnownElementNames().forEach(e=>{!Rr[e]&&null===Tr(e)&&(Rr[e]=new Mr({canSelfClose:!1}))})),Rr[e]??Dr}var Br=class e{constructor(e,t,r,n){this.file=e,this.offset=t,this.line=r,this.col=n}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(t){let r=this.file.content,n=r.length,a=this.offset,i=this.line,s=this.col;for(;a>0&&t<0;)if(a--,t++,10==r.charCodeAt(a)){i--;let e=r.substring(0,a-1).lastIndexOf("\n");s=e>0?a-e:a}else s--;for(;a<n&&t>0;){let e=r.charCodeAt(a);a++,t--,10==e?(i++,s=0):s++}return new e(this.file,a,i,s)}getContext(e,t){let r=this.file.content,n=this.offset;if(null!=n){n>r.length-1&&(n=r.length-1);let a=n,i=0,s=0;for(;i<e&&n>0&&(n--,i++,"\n"!=r[n]||++s!=t););for(i=0,s=0;i<e&&a<r.length-1&&(a++,i++,"\n"!=r[a]||++s!=t););return{before:r.substring(n,this.offset),after:r.substring(this.offset,a+1)}}return null}},Hr=class{constructor(e,t){this.content=e,this.url=t}},Fr=class{constructor(e,t,r=e,n=null){this.start=e,this.end=t,this.fullStart=r,this.details=n}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Ur=function(e){return e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR",e}({}),Vr=class extends Error{constructor(e,t,r=Ur.ERROR,n){super(t),this.span=e,this.msg=t,this.level=r,this.relatedError=n,Object.setPrototypeOf(this,new.target.prototype)}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${Ur[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}},Wr=class{constructor(e,t){this.sourceSpan=e,this.i18n=t}},zr=class extends Wr{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r}visit(e,t){return e.visitText(this,t)}kind="text"},$r=class extends Wr{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r}visit(e,t){return e.visitCdata(this,t)}kind="cdata"},jr=class extends Wr{constructor(e,t,r,n,a,i){super(n,i),this.switchValue=e,this.type=t,this.cases=r,this.switchValueSourceSpan=a}visit(e,t){return e.visitExpansion(this,t)}kind="expansion"},Xr=class{constructor(e,t,r,n,a){this.value=e,this.expression=t,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=a}visit(e,t){return e.visitExpansionCase(this,t)}kind="expansionCase"},Gr=class extends Wr{constructor(e,t,r,n,a,i,s){super(r,s),this.name=e,this.value=t,this.keySpan=n,this.valueSpan=a,this.valueTokens=i}visit(e,t){return e.visitAttribute(this,t)}kind="attribute";get nameSpan(){return this.keySpan}},Kr=class extends Wr{constructor(e,t,r,n,a,i,s,o=null,l=null,c,u){super(i,u),this.name=e,this.attrs=t,this.directives=r,this.children=n,this.isSelfClosing=a,this.startSourceSpan=s,this.endSourceSpan=o,this.nameSpan=l,this.isVoid=c}visit(e,t){return e.visitElement(this,t)}kind="element"},Yr=class{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitComment(this,t)}kind="comment"},Jr=class{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitDocType(this,t)}kind="docType"},Qr=class extends Wr{constructor(e,t,r,n,a,i,s=null,o){super(n,o),this.name=e,this.parameters=t,this.children=r,this.nameSpan=a,this.startSourceSpan=i,this.endSourceSpan=s}visit(e,t){return e.visitBlock(this,t)}kind="block"},Zr=class extends Wr{constructor(e,t,r,n,a,i,s,o,l,c=null,u){super(o,u),this.componentName=e,this.tagName=t,this.fullName=r,this.attrs=n,this.directives=a,this.children=i,this.isSelfClosing=s,this.startSourceSpan=l,this.endSourceSpan=c}visit(e,t){return e.visitComponent(this,t)}kind="component"},en=class{constructor(e,t,r,n,a=null){this.name=e,this.attrs=t,this.sourceSpan=r,this.startSourceSpan=n,this.endSourceSpan=a}visit(e,t){return e.visitDirective(this,t)}kind="directive"},tn=class{constructor(e,t){this.expression=e,this.sourceSpan=t}visit(e,t){return e.visitBlockParameter(this,t)}kind="blockParameter";startSourceSpan=null;endSourceSpan=null},rn=class{constructor(e,t,r,n,a){this.name=e,this.value=t,this.sourceSpan=r,this.nameSpan=n,this.valueSpan=a}visit(e,t){return e.visitLetDeclaration(this,t)}kind="letDeclaration";startSourceSpan=null;endSourceSpan=null};function nn(e,t,r=null){let n=[],a=e.visit?t=>e.visit(t,r)||t.visit(e,r):t=>t.visit(e,r);return t.forEach(e=>{let t=a(e);t&&n.push(t)}),n}var an=class{constructor(){}visitElement(e,t){this.visitChildren(t,t=>{t(e.attrs),t(e.directives),t(e.children)})}visitAttribute(e,t){}visitText(e,t){}visitCdata(e,t){}visitComment(e,t){}visitDocType(e,t){}visitExpansion(e,t){return this.visitChildren(t,t=>{t(e.cases)})}visitExpansionCase(e,t){}visitBlock(e,t){this.visitChildren(t,t=>{t(e.parameters),t(e.children)})}visitBlockParameter(e,t){}visitLetDeclaration(e,t){}visitComponent(e,t){this.visitChildren(t,t=>{t(e.attrs),t(e.children)})}visitDirective(e,t){this.visitChildren(t,t=>{t(e.attrs)})}visitChildren(e,t){let r=[],n=this;return t(function(t){t&&r.push(nn(n,t,e))}),Array.prototype.concat.apply([],r)}},sn={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",af:"⁡",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"𝔻",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"⁣",ic:"⁣",InvisibleTimes:"⁢",it:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",ZeroWidthSpace:"​",NewLine:"\n",Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",nbsp:" ",Nopf:"ℕ",naturals:"ℕ",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"ℙ",primes:"ℙ",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"ℚ",rationals:"ℚ",Qscr:"𝒬",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",Rfr:"ℜ",real:"ℜ",realpart:"ℜ",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"ℝ",reals:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"ℛ",realine:"ℛ",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"𝕊",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"𝒮",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"𝕋",TripleDot:"⃛",tdot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",bigvee:"⋁",xvee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",mid:"∣",shortmid:"∣",smid:"∣",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:" ",hairsp:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"𝕒",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"𝒶",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"‵",bprime:"‵",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"𝔟",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"𝕔",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"‐",hyphen:"‐",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"ℯ",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"𝒻",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"𝕘",gscr:"ℊ",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"𝔦",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iquest:"¿",iscr:"𝒾",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"𝔩",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsime:"⪍",lsimg:"⪏",lsquor:"‚",sbquo:"‚",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"𝔪",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"𝕞",mscr:"𝓂",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"𝔫",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"𝕟",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"𝓃",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"𝕠",opar:"⦷",operp:"⦹",or:"∨",vee:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",oscr:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"𝕡",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"∶",rbbrk:"❳",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"𝔯",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"𝓇",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"𝔰",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"𝓈",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"𝔱",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"𝕦",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",xfr:"𝔵",xi:"ξ",xnis:"⋻",xopf:"𝕩",xscr:"𝓍",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌",ngsp:""},on=function(e){return e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.INCOMPLETE_TAG_OPEN=4]="INCOMPLETE_TAG_OPEN",e[e.TEXT=5]="TEXT",e[e.ESCAPABLE_RAW_TEXT=6]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=7]="RAW_TEXT",e[e.INTERPOLATION=8]="INTERPOLATION",e[e.ENCODED_ENTITY=9]="ENCODED_ENTITY",e[e.COMMENT_START=10]="COMMENT_START",e[e.COMMENT_END=11]="COMMENT_END",e[e.CDATA_START=12]="CDATA_START",e[e.CDATA_END=13]="CDATA_END",e[e.ATTR_NAME=14]="ATTR_NAME",e[e.ATTR_QUOTE=15]="ATTR_QUOTE",e[e.ATTR_VALUE_TEXT=16]="ATTR_VALUE_TEXT",e[e.ATTR_VALUE_INTERPOLATION=17]="ATTR_VALUE_INTERPOLATION",e[e.DOC_TYPE_START=18]="DOC_TYPE_START",e[e.DOC_TYPE_END=19]="DOC_TYPE_END",e[e.EXPANSION_FORM_START=20]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=21]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=22]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=23]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=24]="EXPANSION_FORM_END",e[e.BLOCK_OPEN_START=25]="BLOCK_OPEN_START",e[e.BLOCK_OPEN_END=26]="BLOCK_OPEN_END",e[e.BLOCK_CLOSE=27]="BLOCK_CLOSE",e[e.BLOCK_PARAMETER=28]="BLOCK_PARAMETER",e[e.INCOMPLETE_BLOCK_OPEN=29]="INCOMPLETE_BLOCK_OPEN",e[e.LET_START=30]="LET_START",e[e.LET_VALUE=31]="LET_VALUE",e[e.LET_END=32]="LET_END",e[e.INCOMPLETE_LET=33]="INCOMPLETE_LET",e[e.COMPONENT_OPEN_START=34]="COMPONENT_OPEN_START",e[e.COMPONENT_OPEN_END=35]="COMPONENT_OPEN_END",e[e.COMPONENT_OPEN_END_VOID=36]="COMPONENT_OPEN_END_VOID",e[e.COMPONENT_CLOSE=37]="COMPONENT_CLOSE",e[e.INCOMPLETE_COMPONENT_OPEN=38]="INCOMPLETE_COMPONENT_OPEN",e[e.DIRECTIVE_NAME=39]="DIRECTIVE_NAME",e[e.DIRECTIVE_OPEN=40]="DIRECTIVE_OPEN",e[e.DIRECTIVE_CLOSE=41]="DIRECTIVE_CLOSE",e[e.EOF=42]="EOF",e}({});function ln(e){return e>=9&&e<=32||160==e}function cn(e){return 48<=e&&e<=57}function un(e){return e>=97&&e<=122||e>=65&&e<=90}function pn(e){return 10===e||13===e}function hn(e){return 48<=e&&e<=55}function dn(e){return 39===e||34===e||96===e}var mn=class{constructor(e,t,r){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=r}};function gn(e,t,r,n={}){let a=new En(new Hr(e,t),r,n);return a.tokenize(),new mn(function(e){let t,r=[];for(let n=0;n<e.length;n++){let a=e[n];t&&t.type===on.TEXT&&a.type===on.TEXT||t&&t.type===on.ATTR_VALUE_TEXT&&a.type===on.ATTR_VALUE_TEXT?(t.parts[0]+=a.parts[0],t.sourceSpan.end=a.sourceSpan.end):(t=a,r.push(t))}return r}(a.tokens),a.errors,a.nonNormalizedIcuExpressions)}var fn=/\r\n?/g;function _n(e){return`Unexpected character "${0===e?"EOF":String.fromCharCode(e)}"`}function vn(e){return`Unknown entity "${e}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}var Sn=function(e){return e.HEX="hexadecimal",e.DEC="decimal",e}(Sn||{}),Tn=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"],kn="{{",Cn="}}",En=class{_cursor;_tokenizeIcu;_leadingTriviaCodePoints;_canSelfClose;_allowHtmComponentClosingTags;_currentTokenStart=null;_currentTokenType=null;_expansionCaseStack=[];_openDirectiveCount=0;_inInterpolation=!1;_preserveLineEndings;_i18nNormalizeLineEndingsInICUs;_fullNameStack=[];_tokenizeBlocks;_tokenizeLet;_selectorlessEnabled;tokens=[];errors=[];nonNormalizedIcuExpressions=[];constructor(e,t,r){this._getTagContentType=t,this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map(e=>e.codePointAt(0)||0),this._canSelfClose=r.canSelfClose||!1,this._allowHtmComponentClosingTags=r.allowHtmComponentClosingTags||!1;let n=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new Rn(e,n):new Dn(e,n),this._preserveLineEndings=r.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=r.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=r.tokenizeBlocks??!0,this._tokenizeLet=r.tokenizeLet??!0,this._selectorlessEnabled=r.selectorlessEnabled??!1;try{this._cursor.init()}catch(e){this.handleError(e)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(fn,"\n")}tokenize(){for(;0!==this._cursor.peek();){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let t=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=t,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&64===this._cursor.peek()&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):!this._tokenizeBlocks||this._inInterpolation||this._isInExpansionCase()||this._isInExpansionForm()||!this._attemptCharCode(125)?this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(on.TEXT,on.INTERPOLATION,()=>this._isTextEnd(),()=>this._isTagStart()):this._consumeBlockEnd(e)}catch(e){this.handleError(e)}}this._beginToken(on.EOF),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();return this._attemptCharCodeUntilFn(t=>ln(t)?!e:!function(e){return un(e)||cn(e)||95===e}(t)||(e=!0,!1)),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._requireCharCode(64),this._beginToken(on.BLOCK_OPEN_START,e);let t=this._endToken([this._getBlockName()]);if(40===this._cursor.peek()){if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(bn),!this._attemptCharCode(41))return void(t.type=on.INCOMPLETE_BLOCK_OPEN);this._attemptCharCodeUntilFn(bn)}if("default never"===t.parts[0]&&this._attemptCharCode(59))return this._beginToken(on.BLOCK_OPEN_END),this._endToken([]),this._beginToken(on.BLOCK_CLOSE),void this._endToken([]);this._attemptCharCode(123)?(this._beginToken(on.BLOCK_OPEN_END),this._endToken([])):!this._isBlockStart()||"case"!==t.parts[0]&&"default"!==t.parts[0]?t.type=on.INCOMPLETE_BLOCK_OPEN:(this._beginToken(on.BLOCK_OPEN_END),this._endToken([]),this._beginToken(on.BLOCK_CLOSE),this._endToken([]))}_consumeBlockEnd(e){this._beginToken(on.BLOCK_CLOSE,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(An);41!==this._cursor.peek()&&0!==this._cursor.peek();){this._beginToken(on.BLOCK_PARAMETER);let e=this._cursor.clone(),t=null,r=0;for(;59!==this._cursor.peek()&&0!==this._cursor.peek()||null!==t;){let e=this._cursor.peek();if(92===e)this._cursor.advance();else if(e===t)t=null;else if(null===t&&dn(e))t=e;else if(40===e&&null===t)r++;else if(41===e&&null===t){if(0===r)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(An)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(on.LET_START,e),!ln(this._cursor.peek())){return void(this._endToken([this._cursor.getChars(e)]).type=on.INCOMPLETE_LET)}this._attemptCharCodeUntilFn(bn);let t=this._endToken([this._getLetDeclarationName()]);this._attemptCharCodeUntilFn(bn),this._attemptCharCode(61)?(this._attemptCharCodeUntilFn(e=>bn(e)&&!pn(e)),this._consumeLetDeclarationValue(),59===this._cursor.peek()?(this._beginToken(on.LET_END),this._endToken([]),this._cursor.advance()):(t.type=on.INCOMPLETE_LET,t.sourceSpan=this._cursor.getSpan(e))):t.type=on.INCOMPLETE_LET}_getLetDeclarationName(){let e=this._cursor.clone(),t=!1;return this._attemptCharCodeUntilFn(e=>!(un(e)||36===e||95===e||t&&cn(e))||(t=!0,!1)),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(on.LET_VALUE,e);0!==this._cursor.peek();){let e=this._cursor.peek();if(59===e)break;dn(e)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(t=>92===t?(this._cursor.advance(),!1):t===e)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(function(e){return 125!==e}(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._cursor.peek()){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(null===this._currentTokenStart)throw new Vr(this._cursor.getSpan(t),"Programming error - attempted to end a token when there was no start to the token");if(null===this._currentTokenType)throw new Vr(this._cursor.getSpan(this._currentTokenStart),"Programming error - attempted to end a token which has no token type");let r={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r}_createError(e,t){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');let r=new Vr(t,e);return this._currentTokenStart=null,this._currentTokenType=null,r}handleError(e){if(e instanceof Mn&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof Vr))throw e;this.errors.push(e)}_attemptCharCode(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)}_attemptCharCodeCaseInsensitive(e){return!!function(e,t){return Ln(e)===Ln(t)}(this._cursor.peek(),e)&&(this._cursor.advance(),!0)}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(_n(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return!1;let r=this._cursor.clone();for(let n=0;n<t;n++)if(!this._attemptCharCode(e.charCodeAt(n)))return this._cursor=r,!1;return!0}_attemptStrCaseInsensitive(e){for(let t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return!1;return!0}_requireStr(e){let t=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(_n(this._cursor.peek()),this._cursor.getSpan(t))}_requireStrCaseInsensitive(e){let t=this._cursor.clone();if(!this._attemptStrCaseInsensitive(e))throw this._createError(_n(this._cursor.peek()),this._cursor.getSpan(t))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,t){let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(r)<t)throw this._createError(_n(this._cursor.peek()),this._cursor.getSpan(r))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(){let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_peekStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return!1;let r=this._cursor.clone();for(let n=0;n<t;n++){if(r.peek()!==e.charCodeAt(n))return!1;r.advance()}return!0}_isBlockStart(){return 64===this._cursor.peek()&&Tn.some(e=>this._peekStr(e))}_isLetStart(){return 64===this._cursor.peek()&&this._peekStr("@let")}_consumeEntity(e){this._beginToken(on.ENCODED_ENTITY);let t=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let e=this._attemptCharCode(120)||this._attemptCharCode(88),r=this._cursor.clone();if(this._attemptCharCodeUntilFn(xn),59!=this._cursor.peek()){this._cursor.advance();let r=e?Sn.HEX:Sn.DEC;throw this._createError(function(e,t){return`Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}(r,this._cursor.getChars(t)),this._cursor.getSpan())}let n=this._cursor.getChars(r);this._cursor.advance();try{let r=parseInt(n,e?16:10);this._endToken([String.fromCodePoint(r),this._cursor.getChars(t)])}catch{throw this._createError(vn(this._cursor.getChars(t)),this._cursor.getSpan())}}else{let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(Nn),59!=this._cursor.peek())this._beginToken(e,t),this._cursor=r,this._endToken(["&"]);else{let e=this._cursor.getChars(r);this._cursor.advance();let n=sn.hasOwnProperty(e)&&sn[e];if(!n)throw this._createError(vn(e),this._cursor.getSpan(t));this._endToken([n,`&${e};`])}}}_consumeRawText(e,t){this._beginToken(e?on.ESCAPABLE_RAW_TEXT:on.RAW_TEXT);let r=[];for(;;){let n=this._cursor.clone(),a=t();if(this._cursor=n,a)break;e&&38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(r.join(""))]),r.length=0,this._consumeEntity(on.ESCAPABLE_RAW_TEXT),this._beginToken(on.ESCAPABLE_RAW_TEXT)):r.push(this._readChar())}this._endToken([this._processCarriageReturns(r.join(""))])}_consumeComment(e){this._beginToken(on.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("--\x3e")),this._beginToken(on.COMMENT_END),this._requireStr("--\x3e"),this._endToken([])}_consumeBogusComment(e){this._beginToken(on.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>62===this._cursor.peek()),this._beginToken(on.COMMENT_END),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(on.CDATA_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(on.CDATA_END),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(on.DOC_TYPE_START,e),this._endToken([]),this._consumeRawText(!1,()=>62===this._cursor.peek()),this._beginToken(on.DOC_TYPE_END),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(e){let t,r=this._cursor.clone(),n="";for(;58!==this._cursor.peek()&&!yn(this._cursor.peek());)this._cursor.advance();return 58===this._cursor.peek()?(n=this._cursor.getChars(r),this._cursor.advance(),t=this._cursor.clone()):t=r,this._requireCharCodeUntilFn(e,""===n?0:1),[n,this._cursor.getChars(t)]}_consumeSingleLineComment(){this._attemptCharCodeUntilFn(e=>pn(e)||0===e),this._attemptCharCodeUntilFn(bn)}_consumeMultiLineComment(){this._attemptCharCodeUntilFn(e=>{if(0===e)return!0;if(42===e){let e=this._cursor.clone();return e.advance(),47===e.peek()}return!1}),this._attemptStr("*/")&&this._attemptCharCodeUntilFn(bn)}_consumeTagOpen(e){let t,r,n,a,i=[];try{if(this._selectorlessEnabled&&On(this._cursor.peek()))a=this._consumeComponentOpenStart(e),[n,r,t]=a.parts,r&&(n+=`:${r}`),t&&(n+=`:${t}`),this._attemptCharCodeUntilFn(bn);else{if(!un(this._cursor.peek()))throw this._createError(_n(this._cursor.peek()),this._cursor.getSpan(e));a=this._consumeTagOpenStart(e),r=a.parts[0],t=n=a.parts[1],this._attemptCharCodeUntilFn(bn)}for(;;)if(this._attemptStr("//"))this._consumeSingleLineComment();else if(this._attemptStr("/*"))this._consumeMultiLineComment();else{if(In(this._cursor.peek()))break;if(this._selectorlessEnabled&&64===this._cursor.peek()){let e=this._cursor.clone(),t=e.clone();t.advance(),On(t.peek())&&this._consumeDirective(e,t)}else{let e=this._consumeAttribute();i.push(e)}}a.type===on.COMPONENT_OPEN_START?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(t){if(t instanceof Vr)return void(a?a.type=a.type===on.COMPONENT_OPEN_START?on.INCOMPLETE_COMPONENT_OPEN:on.INCOMPLETE_TAG_OPEN:(this._beginToken(on.TEXT,e),this._endToken(["<"])));throw t}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===on.TAG_OPEN_END_VOID)return;let s=this._getTagContentType(t,r,this._fullNameStack.length>0,i);this._handleFullNameStackForTagOpen(r,t),s===fr.RAW_TEXT?this._consumeRawTextWithTagClose(r,a,n,!1):s===fr.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,a,n,!0)}_consumeRawTextWithTagClose(e,t,r,n){this._consumeRawText(n,()=>!!(this._attemptCharCode(60)&&this._attemptCharCode(47)&&(this._attemptCharCodeUntilFn(bn),this._attemptStrCaseInsensitive(e&&t.type!==on.COMPONENT_OPEN_START?`${e}:${r}`:r)))&&(this._attemptCharCodeUntilFn(bn),this._attemptCharCode(62))),this._beginToken(t.type===on.COMPONENT_OPEN_START?on.COMPONENT_CLOSE:on.TAG_CLOSE),this._requireCharCodeUntilFn(e=>62===e,3),this._cursor.advance(),this._endToken(t.parts),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(on.TAG_OPEN_START,e);let t=this._consumePrefixAndName(wn);return this._endToken(t)}_consumeComponentOpenStart(e){this._beginToken(on.COMPONENT_OPEN_START,e);let t=this._consumeComponentName();return this._endToken(t)}_consumeComponentName(){let e=this._cursor.clone();for(;Pn(this._cursor.peek());)this._cursor.advance();let t=this._cursor.getChars(e),r="",n="";return 58===this._cursor.peek()&&(this._cursor.advance(),[r,n]=this._consumePrefixAndName(wn)),[t,r,n]}_consumeAttribute(){let e,[t,r]=this._consumeAttributeName();return this._attemptCharCodeUntilFn(bn),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(bn),e=this._consumeAttributeValue()),this._attemptCharCodeUntilFn(bn),{prefix:t,name:r,value:e}}_consumeAttributeName(){let e,t=this._cursor.peek();if(39===t||34===t)throw this._createError(_n(t),this._cursor.getSpan());if(this._beginToken(on.ATTR_NAME),this._openDirectiveCount>0){let t=0;e=e=>{if(this._openDirectiveCount>0)if(40===e)t++;else if(41===e){if(0===t)return!0;t--}return wn(e)}}else if(91===t){let t=0;e=e=>(91===e?t++:93===e&&t--,t<=0?wn(e):pn(e))}else e=wn;let r=this._consumePrefixAndName(e);return this._endToken(r),r}_consumeAttributeValue(){let e;if(39===this._cursor.peek()||34===this._cursor.peek()){let t=this._cursor.peek();this._consumeQuote(t);let r=()=>this._cursor.peek()===t;e=this._consumeWithInterpolation(on.ATTR_VALUE_TEXT,on.ATTR_VALUE_INTERPOLATION,r,r),this._consumeQuote(t)}else{let t=()=>wn(this._cursor.peek());e=this._consumeWithInterpolation(on.ATTR_VALUE_TEXT,on.ATTR_VALUE_INTERPOLATION,t,t)}return e}_consumeQuote(e){this._beginToken(on.ATTR_QUOTE),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?on.TAG_OPEN_END_VOID:on.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(47)?on.COMPONENT_OPEN_END_VOID:on.COMPONENT_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let t=e.clone();for(;62!==t.peek()&&!On(t.peek());)t.advance();if(On(t.peek())){this._beginToken(on.COMPONENT_CLOSE,e);let t=this._consumeComponentName();return this._attemptCharCodeUntilFn(bn),this._requireCharCode(62),void this._endToken(t)}}if(this._beginToken(on.TAG_CLOSE,e),this._attemptCharCodeUntilFn(bn),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(bn),this._requireCharCode(62),this._endToken([]);else{let[e,t]=this._consumePrefixAndName(wn);this._attemptCharCodeUntilFn(bn),this._requireCharCode(62),this._endToken([e,t]),this._handleFullNameStackForTagClose(e,t)}}_consumeExpansionFormStart(){this._beginToken(on.EXPANSION_FORM_START),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(on.EXPANSION_FORM_START),this._beginToken(on.RAW_TEXT);let e=this._readUntil(44),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{let r=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(r)}this._requireCharCode(44),this._attemptCharCodeUntilFn(bn),this._beginToken(on.RAW_TEXT);let r=this._readUntil(44);this._endToken([r]),this._requireCharCode(44),this._attemptCharCodeUntilFn(bn)}_consumeExpansionCaseStart(){this._beginToken(on.EXPANSION_CASE_VALUE);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(bn),this._beginToken(on.EXPANSION_CASE_EXP_START),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(bn),this._expansionCaseStack.push(on.EXPANSION_CASE_EXP_START)}_consumeExpansionCaseEnd(){this._beginToken(on.EXPANSION_CASE_EXP_END),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(bn),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(on.EXPANSION_FORM_END),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,r,n){this._beginToken(e);let a=[];for(;!r();){let r=this._cursor.clone();this._attemptStr(kn)?(this._endToken([this._processCarriageReturns(a.join(""))],r),a.length=0,this._consumeInterpolation(t,r,n),this._beginToken(e)):38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(a.join(""))]),a.length=0,this._consumeEntity(e),this._beginToken(e)):a.push(this._readChar())}this._inInterpolation=!1;let i=this._processCarriageReturns(a.join(""));return this._endToken([i]),i}_consumeInterpolation(e,t,r){let n=[];this._beginToken(e,t),n.push(kn);let a=this._cursor.clone(),i=null,s=!1;for(;0!==this._cursor.peek()&&(null===r||!r());){let e=this._cursor.clone();if(this._isTagStart())return this._cursor=e,n.push(this._getProcessedChars(a,e)),void this._endToken(n);if(null===i){if(this._attemptStr(Cn))return n.push(this._getProcessedChars(a,e)),n.push(Cn),void this._endToken(n);this._attemptStr("//")&&(s=!0)}let t=this._cursor.peek();this._cursor.advance(),92===t?this._cursor.advance():t===i?i=null:!s&&null===i&&dn(t)&&(i=t)}n.push(this._getProcessedChars(a,this._cursor)),this._endToken(n)}_consumeDirective(e,t){for(this._requireCharCode(64),this._cursor.advance();Pn(this._cursor.peek());)this._cursor.advance();this._beginToken(on.DIRECTIVE_NAME,e);let r=this._cursor.getChars(t);if(this._endToken([r]),this._attemptCharCodeUntilFn(bn),40===this._cursor.peek()){for(this._openDirectiveCount++,this._beginToken(on.DIRECTIVE_OPEN),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(bn);!In(this._cursor.peek())&&41!==this._cursor.peek();)this._consumeAttribute();if(this._attemptCharCodeUntilFn(bn),this._openDirectiveCount--,41!==this._cursor.peek()){if(62===this._cursor.peek()||47===this._cursor.peek())return;throw this._createError(_n(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(on.DIRECTIVE_CLOSE),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(bn)}}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||0===this._cursor.peek()||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||125===this._cursor.peek()&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||125===this._cursor.peek()))}_isTagStart(){if(60===this._cursor.peek()){let e=this._cursor.clone();e.advance();let t=e.peek();if(97<=t&&t<=122||65<=t&&t<=90||47===t||33===t)return!0}return!1}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===on.EXPANSION_CASE_EXP_START}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===on.EXPANSION_FORM_START}isExpansionFormStart(){if(123!==this._cursor.peek())return!1;let e=this._cursor.clone(),t=this._attemptStr(kn);return this._cursor=e,!t}_handleFullNameStackForTagOpen(e,t){let r=kr(e,t);(0===this._fullNameStack.length||this._fullNameStack[this._fullNameStack.length-1]===r)&&this._fullNameStack.push(r)}_handleFullNameStackForTagClose(e,t){let r=kr(e,t);0!==this._fullNameStack.length&&this._fullNameStack[this._fullNameStack.length-1]===r&&this._fullNameStack.pop()}};function bn(e){return!ln(e)||0===e}function wn(e){return ln(e)||62===e||60===e||47===e||39===e||34===e||61===e||0===e}function yn(e){return(e<97||122<e)&&(e<65||90<e)&&(e<48||e>57)}function xn(e){return 59===e||0===e||!function(e){return e>=97&&e<=102||e>=65&&e<=70||cn(e)}(e)}function Nn(e){return 59===e||0===e||!(un(e)||cn(e))}function Ln(e){return e>=97&&e<=122?e-97+65:e}function An(e){return 59!==e&&bn(e)}function On(e){return 95===e||e>=65&&e<=90}function Pn(e){return un(e)||cn(e)||95===e}function In(e){return 47===e||62===e||60===e||0===e}var Dn=class e{state;file;input;end;constructor(t,r){if(t instanceof e){this.file=t.file,this.input=t.input,this.end=t.end;let e=t.state;this.state={peek:e.peek,offset:e.offset,line:e.line,column:e.column}}else{if(!r)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=t,this.input=t.content,this.end=r.endPos,this.state={peek:-1,offset:r.startPos,line:r.startLine,column:r.startCol}}}clone(){return new e(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,t){let r=e=e||this;if(t)for(;this.diff(e)>0&&-1!==t.indexOf(e.peek());)r===e&&(e=e.clone()),e.advance();let n=this.locationFromCursor(e);return new Fr(n,this.locationFromCursor(this),r!==e?this.locationFromCursor(r):n)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new Mn('Unexpected character "EOF"',this);let t=this.charAt(e.offset);10===t?(e.line++,e.column=0):pn(t)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new Br(e.file,e.state.offset,e.state.line,e.state.column)}},Rn=class e extends Dn{internalState;constructor(t,r){t instanceof e?(super(t),this.internalState={...t.internalState}):(super(t,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new e(this)}getChars(e){let t=e.clone(),r="";for(;t.internalState.offset<this.internalState.offset;)r+=String.fromCodePoint(t.peek()),t.advance();return r}processEscapeSequence(){let e=()=>this.internalState.peek;if(92===e())if(this.internalState={...this.state},this.advanceState(this.internalState),110===e())this.state.peek=10;else if(114===e())this.state.peek=13;else if(118===e())this.state.peek=11;else if(116===e())this.state.peek=9;else if(98===e())this.state.peek=8;else if(102===e())this.state.peek=12;else if(117===e())if(this.advanceState(this.internalState),123===e()){this.advanceState(this.internalState);let t=this.clone(),r=0;for(;125!==e();)this.advanceState(this.internalState),r++;this.state.peek=this.decodeHexDigits(t,r)}else{let e=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,4)}else if(120===e()){this.advanceState(this.internalState);let e=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,2)}else if(hn(e())){let t="",r=0,n=this.clone();for(;hn(e())&&r<3;)n=this.clone(),t+=String.fromCodePoint(e()),this.advanceState(this.internalState),r++;this.state.peek=parseInt(t,8),this.internalState=n.internalState}else pn(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,t){let r=this.input.slice(e.internalState.offset,e.internalState.offset+t),n=parseInt(r,16);if(isNaN(n))throw e.state=e.internalState,new Mn("Invalid hexadecimal escape sequence",e);return n}},Mn=class extends Error{constructor(e,t){super(e),this.msg=e,this.cursor=t,Object.setPrototypeOf(this,new.target.prototype)}},qn=class e extends Vr{static create(t,r,n){return new e(t,r,n)}constructor(e,t,r){super(t,r),this.elementName=e}},Bn=class{constructor(e,t){this.rootNodes=e,this.errors=t}},Hn=class{constructor(e){this.getTagDefinition=e}parse(e,t,r,n=!1,a){let i=e=>(t,...r)=>e(t.toLowerCase(),...r),s=n?this.getTagDefinition:i(this.getTagDefinition),o=e=>s(e).getContentType(),l=n?a:i(a),c=gn(e,t,a?(e,t,r,n)=>{let a=l(e,t,r,n);return void 0!==a?a:o(e)}:o,r),u=r&&r.canSelfClose||!1,p=r&&r.allowHtmComponentClosingTags||!1,h=new Fn(c.tokens,s,u,p,n);return h.build(),new Bn(h.rootNodes,[...c.errors,...h.errors])}},Fn=class e{_index=-1;_peek;_containerStack=[];rootNodes=[];errors=[];constructor(e,t,r,n,a){this.tokens=e,this.tagDefinitionResolver=t,this.canSelfClose=r,this.allowHtmComponentClosingTags=n,this.isTagNameCaseSensitive=a,this._advance()}build(){for(;this._peek.type!==on.EOF;)this._peek.type===on.TAG_OPEN_START||this._peek.type===on.INCOMPLETE_TAG_OPEN?this._consumeElementStartTag(this._advance()):this._peek.type===on.TAG_CLOSE?(this._closeVoidElement(),this._consumeElementEndTag(this._advance())):this._peek.type===on.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===on.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===on.TEXT||this._peek.type===on.RAW_TEXT||this._peek.type===on.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===on.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._peek.type===on.BLOCK_OPEN_START?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===on.BLOCK_CLOSE?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===on.INCOMPLETE_BLOCK_OPEN?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===on.LET_START?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===on.DOC_TYPE_START?this._consumeDocType(this._advance()):this._peek.type===on.INCOMPLETE_LET?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===on.COMPONENT_OPEN_START||this._peek.type===on.INCOMPLETE_COMPONENT_OPEN?this._consumeComponentStartTag(this._advance()):this._peek.type===on.COMPONENT_CLOSE?this._consumeComponentEndTag(this._advance()):this._advance();for(let e of this._containerStack)e instanceof Qr&&this.errors.push(qn.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}_advanceIf(e){return this._peek.type===e?this._advance():null}_consumeCdata(e){let t=this._advance(),r=this._getText(t),n=this._advanceIf(on.CDATA_END);this._addToParent(new $r(r,new Fr(e.sourceSpan.start,(n||t).sourceSpan.end),[t]))}_consumeComment(e){let t=this._advanceIf(on.RAW_TEXT),r=this._advanceIf(on.COMMENT_END),n=null!=t?t.parts[0].trim():null,a=null==r?e.sourceSpan:new Fr(e.sourceSpan.start,r.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Yr(n,a))}_consumeDocType(e){let t=this._advanceIf(on.RAW_TEXT),r=this._advanceIf(on.DOC_TYPE_END),n=null!=t?t.parts[0].trim():null,a=new Fr(e.sourceSpan.start,(r||t||e).sourceSpan.end);this._addToParent(new Jr(n,a))}_consumeExpansion(e){let t=this._advance(),r=this._advance(),n=[];for(;this._peek.type===on.EXPANSION_CASE_VALUE;){let e=this._parseExpansionCase();if(!e)return;n.push(e)}if(this._peek.type!==on.EXPANSION_FORM_END)return void this.errors.push(qn.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));let a=new Fr(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new jr(t.parts[0],r.parts[0],n,a,t.sourceSpan)),this._advance()}_parseExpansionCase(){let t=this._advance();if(this._peek.type!==on.EXPANSION_CASE_EXP_START)return this.errors.push(qn.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let r=this._advance(),n=this._collectExpansionExpTokens(r);if(!n)return null;let a=this._advance();n.push({type:on.EOF,parts:[],sourceSpan:a.sourceSpan});let i=new e(n,this.tagDefinitionResolver,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(i.build(),i.errors.length>0)return this.errors=this.errors.concat(i.errors),null;let s=new Fr(t.sourceSpan.start,a.sourceSpan.end,t.sourceSpan.fullStart),o=new Fr(r.sourceSpan.start,a.sourceSpan.end,r.sourceSpan.fullStart);return new Xr(t.parts[0],i.rootNodes,s,t.sourceSpan,o)}_collectExpansionExpTokens(e){let t=[],r=[on.EXPANSION_CASE_EXP_START];for(;;){if((this._peek.type===on.EXPANSION_FORM_START||this._peek.type===on.EXPANSION_CASE_EXP_START)&&r.push(this._peek.type),this._peek.type===on.EXPANSION_CASE_EXP_END){if(!Un(r,on.EXPANSION_CASE_EXP_START))return this.errors.push(qn.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(r.pop(),0===r.length)return t}if(this._peek.type===on.EXPANSION_FORM_END){if(!Un(r,on.EXPANSION_FORM_START))return this.errors.push(qn.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.pop()}if(this._peek.type===on.EOF)return this.errors.push(qn.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}}_getText(e){let t=e.parts[0];if(t.length>0&&"\n"==t[0]){var r;let e=this._getClosestElementLikeParent();null!=e&&0==e.children.length&&null!==(r=this._getTagDefinition(e))&&void 0!==r&&r.ignoreFirstLf&&(t=t.substring(1))}return t}_consumeText(e){let t=[e],r=e.sourceSpan,n=e.parts[0];if(n.length>0&&"\n"===n[0]){var a;let r=this._getContainer();null!=r&&0===r.children.length&&null!==(a=this._getTagDefinition(r))&&void 0!==a&&a.ignoreFirstLf&&(n=n.substring(1),t[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[n]})}for(;this._peek.type===on.INTERPOLATION||this._peek.type===on.TEXT||this._peek.type===on.ENCODED_ENTITY;)e=this._advance(),t.push(e),e.type===on.INTERPOLATION?n+=e.parts.join("").replace(/&([^;]+);/g,Vn):e.type===on.ENCODED_ENTITY?n+=e.parts[0]:n+=e.parts.join("");if(n.length>0){let a=e.sourceSpan;this._addToParent(new zr(n,new Fr(r.start,a.end,r.fullStart,r.details),t))}}_closeVoidElement(){var e;let t=this._getContainer();null!==t&&null!==(e=this._getTagDefinition(t))&&void 0!==e&&e.isVoid&&this._containerStack.pop()}_consumeElementStartTag(e){var t;let r=[],n=[];this._consumeAttributesAndDirectives(r,n);let a=this._getElementFullName(e,this._getClosestElementLikeParent()),i=this._getTagDefinition(a),s=!1;if(this._peek.type===on.TAG_OPEN_END_VOID){this._advance(),s=!0;let t=this._getTagDefinition(a);this.canSelfClose||t?.canSelfClose||null!==Tr(a)||t?.isVoid||this.errors.push(qn.create(a,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===on.TAG_OPEN_END&&(this._advance(),s=!1);let o=this._peek.sourceSpan.fullStart,l=new Fr(e.sourceSpan.start,o,e.sourceSpan.fullStart),c=new Fr(e.sourceSpan.start,o,e.sourceSpan.fullStart),u=new Fr(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),p=new Kr(a,r,n,[],s,l,c,void 0,u,i?.isVoid??!1),h=this._getContainer(),d=null!==h&&!(null===(t=this._getTagDefinition(h))||void 0===t||!t.isClosedByChild(p.name));this._pushContainer(p,d),s?this._popContainer(a,Kr,l):e.type===on.INCOMPLETE_TAG_OPEN&&(this._popContainer(a,Kr,null),this.errors.push(qn.create(a,l,`Opening tag "${a}" not terminated.`)))}_consumeComponentStartTag(e){var t;let r=e.parts[0],n=[],a=[];this._consumeAttributesAndDirectives(n,a);let i=this._getClosestElementLikeParent(),s=this._getComponentTagName(e,i),o=this._getComponentFullName(e,i),l=this._peek.type===on.COMPONENT_OPEN_END_VOID;this._advance();let c=this._peek.sourceSpan.fullStart,u=new Fr(e.sourceSpan.start,c,e.sourceSpan.fullStart),p=new Zr(r,s,o,n,a,[],l,u,new Fr(e.sourceSpan.start,c,e.sourceSpan.fullStart),void 0),h=this._getContainer(),d=null!==h&&null!==p.tagName&&!(null===(t=this._getTagDefinition(h))||void 0===t||!t.isClosedByChild(p.tagName));this._pushContainer(p,d),l?this._popContainer(o,Zr,u):e.type===on.INCOMPLETE_COMPONENT_OPEN&&(this._popContainer(o,Zr,null),this.errors.push(qn.create(o,u,`Opening tag "${o}" not terminated.`)))}_consumeAttributesAndDirectives(e,t){for(;this._peek.type===on.ATTR_NAME||this._peek.type===on.DIRECTIVE_NAME;)this._peek.type===on.DIRECTIVE_NAME?t.push(this._consumeDirective(this._peek)):e.push(this._consumeAttr(this._advance()))}_consumeComponentEndTag(e){let t=this._getComponentFullName(e,this._getClosestElementLikeParent());if(!this._popContainer(t,Zr,e.sourceSpan)){let r,n=this._containerStack[this._containerStack.length-1];r=n instanceof Zr&&n.componentName===e.parts[0]?`, did you mean "${n.fullName}"?`:". It may happen when the tag has already been closed by another tag.";let a=`Unexpected closing tag "${t}"${r}`;this.errors.push(qn.create(t,e.sourceSpan,a))}}_getTagDefinition(e){return"string"==typeof e?this.tagDefinitionResolver(e):e instanceof Kr?this.tagDefinitionResolver(e.name):e instanceof Zr&&null!==e.tagName?this.tagDefinitionResolver(e.tagName):null}_pushContainer(e,t){t&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeElementEndTag(e){var t;let r=this.allowHtmComponentClosingTags&&0===e.parts.length?null:this._getElementFullName(e,this._getClosestElementLikeParent());if(r&&null!==(t=this._getTagDefinition(r))&&void 0!==t&&t.isVoid)this.errors.push(qn.create(r,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(r,Kr,e.sourceSpan)){let t=`Unexpected closing tag "${r}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(qn.create(r,e.sourceSpan,t))}}_popContainer(e,t,r){let n=!1;for(let i=this._containerStack.length-1;i>=0;i--){var a;let s=this._containerStack[i],o=s instanceof Zr?s.fullName:s.name;if(Tr(o)?o===e:(o===e||null===e)&&s instanceof t)return s.endSourceSpan=r,s.sourceSpan.end=null!==r?r.end:s.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!n;(s instanceof Qr||null===(a=this._getTagDefinition(s))||void 0===a||!a.closedByParent)&&(n=!0)}return!1}_consumeAttr(e){let t,r=kr(e.parts[0],e.parts[1]),n=e.sourceSpan.end;this._peek.type===on.ATTR_QUOTE&&(t=this._advance());let a,i,s="",o=[];if(this._peek.type===on.ATTR_VALUE_TEXT)for(a=this._peek.sourceSpan,i=this._peek.sourceSpan.end;this._peek.type===on.ATTR_VALUE_TEXT||this._peek.type===on.ATTR_VALUE_INTERPOLATION||this._peek.type===on.ENCODED_ENTITY;){let e=this._advance();o.push(e),e.type===on.ATTR_VALUE_INTERPOLATION?s+=e.parts.join("").replace(/&([^;]+);/g,Vn):e.type===on.ENCODED_ENTITY?s+=e.parts[0]:s+=e.parts.join(""),i=n=e.sourceSpan.end}this._peek.type===on.ATTR_QUOTE&&(i=n=this._advance().sourceSpan.end);let l=a&&i&&new Fr(t?.sourceSpan.start??a.start,i,t?.sourceSpan.fullStart??a.fullStart);return new Gr(r,s,new Fr(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,l,o.length>0?o:void 0,void 0)}_consumeDirective(e){let t=[],r=e.sourceSpan.end,n=null;if(this._advance(),this._peek.type===on.DIRECTIVE_OPEN){for(r=this._peek.sourceSpan.end,this._advance();this._peek.type===on.ATTR_NAME;)t.push(this._consumeAttr(this._advance()));this._peek.type===on.DIRECTIVE_CLOSE?(n=this._peek.sourceSpan,this._advance()):this.errors.push(qn.create(null,e.sourceSpan,"Unterminated directive definition"))}let a=new Fr(e.sourceSpan.start,r,e.sourceSpan.fullStart),i=new Fr(a.start,null===n?e.sourceSpan.end:n.end,a.fullStart);return new en(e.parts[0],t,i,a,n)}_consumeBlockOpen(e){let t=[];for(;this._peek.type===on.BLOCK_PARAMETER;){let e=this._advance();t.push(new tn(e.parts[0],e.sourceSpan))}this._peek.type===on.BLOCK_OPEN_END&&this._advance();let r=this._peek.sourceSpan.fullStart,n=new Fr(e.sourceSpan.start,r,e.sourceSpan.fullStart),a=new Fr(e.sourceSpan.start,r,e.sourceSpan.fullStart),i=new Qr(e.parts[0],t,[],n,e.sourceSpan,a);this._pushContainer(i,!1)}_consumeBlockClose(e){let t=this._containerStack.length,r=this._containerStack[t-1];if(!this._popContainer(null,Qr,e.sourceSpan)){if(this._containerStack.length<t){let t=r instanceof Zr?r.fullName:r.name;return void this.errors.push(qn.create(null,e.sourceSpan,`Unexpected closing block. The block may have been closed earlier. Did you forget to close the <${t}> element? If you meant to write the \`}\` character, you should use the "&#125;" HTML entity instead.`))}this.errors.push(qn.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the `}` character, you should use the "&#125;" HTML entity instead.'))}}_consumeIncompleteBlock(e){let t=[];for(;this._peek.type===on.BLOCK_PARAMETER;){let e=this._advance();t.push(new tn(e.parts[0],e.sourceSpan))}let r=this._peek.sourceSpan.fullStart,n=new Fr(e.sourceSpan.start,r,e.sourceSpan.fullStart),a=new Fr(e.sourceSpan.start,r,e.sourceSpan.fullStart),i=new Qr(e.parts[0],t,[],n,e.sourceSpan,a);this._pushContainer(i,!1),this._popContainer(null,Qr,null),this.errors.push(qn.create(e.parts[0],n,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`))}_consumeLet(e){let t,r,n=e.parts[0];if(this._peek.type!==on.LET_VALUE)return void this.errors.push(qn.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${n}". Declaration must have a value.`));if(t=this._advance(),this._peek.type!==on.LET_END)return void this.errors.push(qn.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${n}". Declaration must be terminated with a semicolon.`));r=this._advance();let a=r.sourceSpan.fullStart,i=new Fr(e.sourceSpan.start,a,e.sourceSpan.fullStart),s=e.sourceSpan.toString().lastIndexOf(n),o=new Fr(e.sourceSpan.start.moveBy(s),e.sourceSpan.end),l=new rn(n,t.parts[0],i,o,t.sourceSpan);this._addToParent(l)}_consumeIncompleteLet(e){let t=e.parts[0]??"",r=t?` "${t}"`:"";if(t.length>0){let r=e.sourceSpan.toString().lastIndexOf(t),n=new Fr(e.sourceSpan.start.moveBy(r),e.sourceSpan.end),a=new Fr(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),i=new rn(t,"",e.sourceSpan,n,a);this._addToParent(i)}this.errors.push(qn.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${r}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let e=this._containerStack.length-1;e>-1;e--){let t=this._containerStack[e];if(t instanceof Kr||t instanceof Zr)return t}return null}_addToParent(e){let t=this._getContainer();null===t?this.rootNodes.push(e):t.children.push(e)}_getElementFullName(e,t){return kr(this._getPrefix(e,t),e.parts[1])}_getComponentFullName(e,t){let r=e.parts[0],n=this._getComponentTagName(e,t);return null===n?r:n.startsWith(":")?r+n:`${r}:${n}`}_getComponentTagName(e,t){let r=this._getPrefix(e,t),n=e.parts[2];return r||n?!r&&n?n:kr(r,n||"ng-component"):null}_getPrefix(e,t){var r;let n,a;if(e.type===on.COMPONENT_OPEN_START||e.type===on.INCOMPLETE_COMPONENT_OPEN||e.type===on.COMPONENT_CLOSE?(n=e.parts[1],a=e.parts[2]):(n=e.parts[0],a=e.parts[1]),n=n||(null===(r=this._getTagDefinition(a))||void 0===r?void 0:r.implicitNamespacePrefix)||"",!n&&t){let e=t instanceof Kr?t.name:t.tagName;if(null!==e){let t=_r(e)[1],r=this._getTagDefinition(t);null!==r&&!r.preventNamespaceInheritance&&(n=Tr(e))}}return n}};function Un(e,t){return e.length>0&&e[e.length-1]===t}function Vn(e,t){return void 0!==sn[t]?sn[t]||e:/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):e}var Wn,zn=class extends Hn{constructor(){super(qr)}parse(e,t,r,n=!1,a){return super.parse(e,t,r,n,a)}};function $n(e,t={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:a=!1,getTagContentType:i,tokenizeAngularBlocks:s=!1,tokenizeAngularLetDeclaration:o=!1,enableAngularSelectorlessSyntax:l=!1}=t;return Wn??(Wn=new zn),Wn.parse(e,"angular-html-parser",{tokenizeExpansionForms:s,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:s,tokenizeLet:o,selectorlessEnabled:l},a,i)}var jn=[function(e){e.walk(e=>{if("element"===e.kind&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&"text"===e.children[0].kind&&"\n"===e.children[0].value[0]){let t=e.children[0];1===t.value.length?e.removeChild(t):t.value=t.value.slice(1)}})},function(e){let t=e=>"element"===e.kind&&"ieConditionalStartComment"===e.prev?.kind&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&"ieConditionalEndComment"===e.firstChild?.kind&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;e.walk(e=>{if(e.children)for(let r=0;r<e.children.length;r++){let n=e.children[r];if(!t(n))continue;let a=n.prev,i=n.firstChild;e.removeChild(a),r--;let s=new Fr(a.sourceSpan.start,i.sourceSpan.end),o=new Fr(s.start,n.sourceSpan.end);n.condition=a.condition,n.sourceSpan=o,n.startSourceSpan=s,n.removeChild(i)}})},function(e){return function(e,t,r){e.walk(e=>{if(e.children)for(let n=0;n<e.children.length;n++){let a=e.children[n];if("text"!==a.kind&&!t(a))continue;"text"!==a.kind&&(a.kind="text",a.value=r(a));let i=a.prev;!i||"text"!==i.kind||(i.value+=a.value,i.sourceSpan=new Fr(i.sourceSpan.start,a.sourceSpan.end),e.removeChild(a),n--)}})}(e,e=>"cdata"===e.kind,e=>`<![CDATA[${e.value}]]>`)},function(e,t){if("html"===t.parser)return;let r=/\{\{(.+?)\}\}/su;e.walk(e=>{if(function(e,t){return e.children&&!xe(e,t)}(e,t))for(let t of e.children){if("text"!==t.kind)continue;let n=t.sourceSpan.start,a=null,i=t.value.split(r);for(let r=0;r<i.length;r++,n=a){let s=i[r];r%2!=0?(a=n.moveBy(s.length+4),e.insertChildBefore(t,{kind:"interpolation",sourceSpan:new Fr(n,a),children:0===s.length?[]:[{kind:"text",value:s,sourceSpan:new Fr(n.moveBy(2),a.moveBy(-2))}]})):(a=n.moveBy(s.length),s.length>0&&e.insertChildBefore(t,{kind:"text",value:s,sourceSpan:new Fr(n,a)}))}e.removeChild(t)}})},function(e,t){e.walk(e=>{let r=e.$children;if(!r)return;if(0===r.length||1===r.length&&"text"===r[0].kind&&0===J.trim(r[0].value).length)return e.hasDanglingSpaces=r.length>0,void(e.$children=[]);let n=function(e,t){return xe(e,t)||"interpolation"===e.kind||Ne(e)}(e,t),a=Ne(e);if(!n)for(let t=0;t<r.length;t++){let n=r[t];if("text"!==n.kind)continue;let{leadingWhitespace:a,text:i,trailingWhitespace:s}=Ee(n.value),o=n.prev,l=n.next;i?(n.value=i,n.sourceSpan=new Fr(n.sourceSpan.start.moveBy(a.length),n.sourceSpan.end.moveBy(-s.length)),a&&(o&&(o.hasTrailingSpaces=!0),n.hasLeadingSpaces=!0),s&&(n.hasTrailingSpaces=!0,l&&(l.hasLeadingSpaces=!0))):(e.removeChild(n),t--,(a||s)&&(o&&(o.hasTrailingSpaces=!0),l&&(l.hasLeadingSpaces=!0)))}e.isWhitespaceSensitive=n,e.isIndentationSensitive=a})},function(e,t){e.walk(e=>{e.cssDisplay=function(e,t){if(Ye(e,t))return"block";if("comment"===e.prev?.kind){let t=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(t)return t[1]}let r=!1;if("element"===e.kind&&"svg"===e.namespace){if(!function(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}(e,e=>"svg:foreignObject"===e.fullName))return"svg"===e.name?"inline-block":"block";r=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:if("element"===e.kind&&(!e.namespace||r||ke(e))&&Object.prototype.hasOwnProperty.call(Se,e.name))return Se[e.name]}return"inline"}(e,t)})},function(e){e.walk(e=>{e.isSelfClosing=!e.children||"element"===e.kind&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)})},function(e,t){e.walk(e=>{"element"===e.kind&&(e.hasHtmComponentClosingTag=e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset)))})},function(e,t){e.walk(e=>{let{children:r}=e;if(r){if(0===r.length)return void(e.isDanglingSpaceSensitive=Oe(e,t));for(let e of r)e.isLeadingSpaceSensitive=Le(e,t),e.isTrailingSpaceSensitive=Ae(e,t);for(let e=0;e<r.length;e++){let t=r[e];t.isLeadingSpaceSensitive=(0===e||t.prev.isTrailingSpaceSensitive)&&t.isLeadingSpaceSensitive,t.isTrailingSpaceSensitive=(e===r.length-1||t.next.isLeadingSpaceSensitive)&&t.isTrailingSpaceSensitive}}})},function(e){let t=e=>"element"===e.kind&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.kind&&!J.hasWhitespaceCharacter(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&"text"===e.prev?.kind&&"text"===e.next?.kind;e.walk(e=>{if(e.children)for(let r=0;r<e.children.length;r++){let n=e.children[r];if(!t(n))continue;let a=n.prev,i=n.next;a.value+=`<${n.rawName}>`+n.firstChild.value+`</${n.rawName}>`+i.value,a.sourceSpan=new Fr(a.sourceSpan.start,i.sourceSpan.end),a.isTrailingSpaceSensitive=i.isTrailingSpaceSensitive,a.hasTrailingSpaces=i.hasTrailingSpaces,e.removeChild(n),r--,e.removeChild(i)}})}];var Xn=function(e,t){for(let r of jn)r(e,t);return e};var Gn={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},preprocess:Xn,print:function(e,t,r){let{node:n}=e;switch(n.kind){case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(n),[B(cr(e,t,r)),W];case"element":case"ieConditionalComment":return mr(e,t,r);case"angularControlFlowBlock":return ur(e,t,r);case"angularControlFlowBlockParameters":return function(e,t,r){return[D([V,F([";",U],e.map(r,"children"))]),V]}(e,0,r);case"angularControlFlowBlockParameter":return J.trim(n.expression);case"angularLetDeclaration":return B(["@let ",B([n.id," =",B(D([U,r("init")]))]),";"]);case"angularLetDeclarationInitializer":return n.value;case"angularIcuExpression":return function(e,t,r){let{node:n}=e;return[Vt(n,t),B([n.switchValue.trim(),", ",n.type,n.cases.length>0?[",",D([U,F(U,e.map(r,"cases"))])]:"",V]),Nt(n,t)]}(e,t,r);case"angularIcuCase":return function(e,t,r){let{node:n}=e;return[n.value," {",B([D([V,e.map(({node:e,isLast:t})=>{let n=[r()];return"text"===e.kind&&(e.hasLeadingSpaces&&n.unshift(U),e.hasTrailingSpaces&&!t&&n.push(U)),n},"expression")]),V]),"}"]}(e,0,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Vt(n),Nt(n)];case"interpolation":return[Vt(n,t),...e.map(r,"children"),Nt(n,t)];case"text":{if("interpolation"===n.parent.kind){let e=/\n[^\S\n]*$/u,t=e.test(n.value);return[P(t?n.value.replace(e,""):n.value),t?W:""]}let e=Wt(n,t),r=Qe(n),a=At(n,t);return r[0]=[e,r[0]],r.push([r.pop(),a]),q(r)}case"docType":return[B([Vt(n,t)," ",l(0,n.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),Nt(n,t)];case"comment":return[Wt(n,t),P(t.originalText.slice(bt(n),wt(n))),At(n,t)];case"attribute":{if(null===n.value)return n.rawName;let e=je(n.value),r=et(n,t)?"":K(e,'"');return[n.rawName,"=",r,P('"'===r?l(0,e,'"',"&quot;"):l(0,e,"'","&apos;")),r]}default:throw new Q(n,"HTML")}},insertPragma:e=>`\x3c!-- @format --\x3e\n\n${e}`,massageAstNode:re,embed:Kt,getVisitorKeys:er},Kn=Gn,Yn=[{name:"Angular",type:"markup",aceMode:"html",extensions:[".component.html"],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["angular"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"HTML",type:"markup",aceMode:"html",extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["html"],vscodeLanguageIds:["html"],linguistLanguageId:146},{name:"Lightning Web Components",type:"markup",aceMode:"html",extensions:[],tmScope:"text.html.basic",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"MJML",type:"markup",aceMode:"html",extensions:[".mjml"],tmScope:"text.mjml.basic",aliases:["MJML","mjml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["mjml"],filenames:[],vscodeLanguageIds:["mjml"],linguistLanguageId:146},{name:"Vue",type:"markup",aceMode:"vue",extensions:[".vue"],tmScope:"source.vue",codemirrorMode:"vue",codemirrorMimeType:"text/x-vue",parsers:["vue"],vscodeLanguageIds:["vue"],linguistLanguageId:391}],Jn={bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Qn="HTML",Zn={bracketSameLine:Jn.bracketSameLine,htmlWhitespaceSensitivity:{category:Qn,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:Jn.singleAttributePerLine,vueIndentScriptAndStyle:{category:Qn,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},ea={};r(ea,{angular:()=>La,html:()=>ya,lwc:()=>Oa,mjml:()=>Na,vue:()=>Aa});var ta=function(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)},ra={canSelfClose:!0,normalizeTagName:!1,normalizeAttributeName:!1,allowHtmComponentClosingTags:!1,isTagNameCaseSensitive:!1,shouldParseFrontMatter:!0};function na(e){return{...ra,...e}}function aa(e){let{canSelfClose:t,allowHtmComponentClosingTags:r,isTagNameCaseSensitive:n,shouldParseAsRawText:a,tokenizeAngularBlocks:i,tokenizeAngularLetDeclaration:s}=e;return{canSelfClose:t,allowHtmComponentClosingTags:r,isTagNameCaseSensitive:n,getTagContentType:a?(...e)=>a(...e)?fr.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:i,tokenizeAngularLetDeclaration:s}}var ia,sa,oa,la=new Map([["*",new Set(["accesskey","autocapitalize","autocorrect","autofocus","class","contenteditable","dir","draggable","enterkeyhint","exportparts","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","part","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["command","commandfor","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["closedby","open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alpha","alt","autocomplete","checked","colorspace","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]),ca=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fencedframe","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","selectedcontent","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),ua={attrs:!0,children:!0,cases:!0,expression:!0},pa=new Set(["parent"]);ia=new WeakSet,sa=function(){return"angularIcuCase"===this.kind?"expression":"angularIcuExpression"===this.kind?"cases":"children"},oa=function(){return this.parent?.$children??[]};var ha=class e{constructor(e={}){((e,r,n)=>{r.has(e)?t("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,n)})(this,ia),n(this,"kind"),n(this,"parent");for(let t of new Set([...pa,...Object.keys(e)]))this.setProperty(t,e[t]);if(_e(e))for(let t of Object.getOwnPropertySymbols(e))this.setProperty(t,e[t])}setProperty(e,t){if(this[e]!==t){if(e in ua&&(t=t.map(e=>this.createChild(e))),!pa.has(e))return void(this[e]=t);Object.defineProperty(this,e,{value:t,enumerable:!1,configurable:!0})}}map(t){let r;for(let n in ua){let a=this[n];if(a){let i=da(a,e=>e.map(t));r!==a&&(r||(r=new e({parent:this.parent})),r.setProperty(n,i))}}if(r)for(let e in this)e in ua||(r[e]=this[e]);return t(r||this)}walk(e){for(let t in ua){let r=this[t];if(r)for(let t=0;t<r.length;t++)r[t].walk(e)}e(this)}createChild(t){let r=t instanceof e?t.clone():new e(t);return r.setProperty("parent",this),r}insertChildBefore(e,t){let r=this.$children;r.splice(r.indexOf(e),0,this.createChild(t))}removeChild(e){let t=this.$children;t.splice(t.indexOf(e),1)}replaceChild(e,t){let r=this.$children;r[r.indexOf(e)]=this.createChild(t)}clone(){return new e(this)}get $children(){return this[a(this,ia,sa)]}set $children(e){this[a(this,ia,sa)]=e}get firstChild(){return this.$children?.[0]}get lastChild(){return u(1,this.$children,-1)}get prev(){let e=a(this,ia,oa);return e[e.indexOf(this)-1]}get next(){let e=a(this,ia,oa);return e[e.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(e=>[e.fullName,e.value]))}};function da(e,t){let r=e.map(t);return r.some((t,r)=>t!==e[r])?r:e}var ma=[{regex:/^(?<openingTagSuffix>\[if(?<condition>[^\]]*)\]>)(?<data>.*?)<!\s*\[endif\]$/su,parse:function(e,t,r){let{openingTagSuffix:n,condition:a,data:i}=t.groups,s=4+n.length,o=e.sourceSpan.start.moveBy(s),c=o.moveBy(i.length),[u,p]=(()=>{try{return[!0,r(i,o).children]}catch{return[!1,[{kind:"text",value:i,sourceSpan:new Fr(o,c)}]]}})();return{kind:"ieConditionalComment",complete:u,children:p,condition:l(0,a.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan,startSourceSpan:new Fr(e.sourceSpan.start,o),endSourceSpan:new Fr(c,e.sourceSpan.end)}}},{regex:/^\[if(?<condition>[^\]]*)\]><!$/u,parse:function(e,t){let{condition:r}=t.groups;return{kind:"ieConditionalStartComment",condition:l(0,r.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan}}},{regex:/^<!\s*\[endif\]$/u,parse:function(e){return{kind:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}}];var ga=class extends an{visitExpansionCase(e,t){"angular"===t.parseOptions.name&&this.visitChildren(t,t=>{t(e.expression)})}visit(e,{parseOptions:t}){(function(e){switch(e.kind){case"element":va(e);for(let t of e.attrs)va(t),t.valueSpan?(t.value=t.valueSpan.toString(),/["']/u.test(t.value[0])&&(t.value=t.value.slice(1,-1))):t.value=null;break;case"comment":e.value=e.sourceSpan.toString().slice(4,-3);break;case"text":e.value=e.sourceSpan.toString()}})(e),function(e,t){if("element"===e.kind){let r=qr(t.isTagNameCaseSensitive?e.name:e.name.toLowerCase());!e.namespace||e.namespace===r.implicitNamespacePrefix||ke(e)?e.tagDefinition=r:e.tagDefinition=qr("")}}(e,t),function(e,t){if("element"===e.kind&&(t.normalizeTagName&&(!e.namespace||e.namespace===e.tagDefinition.implicitNamespacePrefix||ke(e))&&(e.name=_a(e.name,e=>ca.has(e))),t.normalizeAttributeName))for(let t of e.attrs)t.namespace||(t.name=_a(t.name,t=>la.has(e.name)&&(la.get("*").has(t)||la.get(e.name).has(t))))}(e,t),function(e){e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new Fr(e.sourceSpan.start,e.endSourceSpan.end))}(e)}};function fa(e,t,r,n){nn(new ga,e.children,{parseOptions:r}),t&&e.children.unshift(t);let a=new ha(e);return a.walk(e=>{if("comment"===e.kind){let t=function(e,t){if(e.value)for(let{regex:r,parse:n}of ma){let a=e.value.match(r);if(a)return n(e,a,t)}return null}(e,n);t&&e.parent.replaceChild(e,t)}(function(e){if("block"===e.kind){if(e.name=l(0,e.name.toLowerCase(),/\s+/gu," ").trim(),e.kind="angularControlFlowBlock",!he(e.parameters))return void delete e.parameters;for(let t of e.parameters)t.kind="angularControlFlowBlockParameter";e.parameters={kind:"angularControlFlowBlockParameters",children:e.parameters,sourceSpan:new Fr(e.parameters[0].sourceSpan.start,u(0,e.parameters,-1).sourceSpan.end)}}})(e),function(e){"letDeclaration"===e.kind&&(e.kind="angularLetDeclaration",e.id=e.name,e.init={kind:"angularLetDeclarationInitializer",sourceSpan:new Fr(e.valueSpan.start,e.valueSpan.end),value:e.value},delete e.name,delete e.value)}(e),function(e){"expansion"===e.kind&&(e.kind="angularIcuExpression"),"expansionCase"===e.kind&&(e.kind="angularIcuCase")}(e)}),a}function _a(e,t){let r=e.toLowerCase();return t(r)?r:e}function va(e){let t=e.name.startsWith(":")?e.name.slice(1).split(":")[0]:null,r=e.nameSpan.toString(),n=null!==t&&r.startsWith(`${t}:`),a=n?r.slice(t.length+1):r;e.name=a,e.namespace=t,e.hasExplicitNamespace=n}function Sa(e,t){let{rootNodes:r,errors:n}=$n(e,aa(t));return n.length>0&&Ca(n[0]),{parseOptions:t,rootNodes:r}}function Ta(e,t){let r=aa(t),{rootNodes:n,errors:a}=$n(e,r);if(n.some(e=>"docType"===e.kind&&"html"===e.value||"element"===e.kind&&"html"===e.name.toLowerCase()))return Sa(e,ba);let i,s=()=>i??(i=$n(e,{...r,getTagContentType:void 0})),o=e=>{let{offset:t}=e.startSourceSpan.start;return s().rootNodes.find(e=>"element"===e.kind&&e.startSourceSpan.start.offset===t)??e};for(let[e,t]of n.entries())if("element"===t.kind)if(t.isVoid)a=s().errors,n[e]=o(t);else if(ka(t)){let{endSourceSpan:r,startSourceSpan:a}=t,i=s().errors.find(e=>e.span.start.offset>a.start.offset&&e.span.start.offset<r.end.offset);i&&Ca(i),n[e]=o(t)}return a.length>0&&Ca(a[0]),{parseOptions:t,rootNodes:n}}function ka(e){if("element"!==e.kind||"template"!==e.name)return!1;let t=e.attrs.find(e=>"lang"===e.name)?.value;return!t||"html"===t}function Ca(e){let{msg:t,span:{start:r,end:n}}=e;throw ta(t,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:e})}function Ea(e,t,r,n={}){let a,{frontMatter:i,content:s}=r.shouldParseFrontMatter?ve(e):{content:e},o=new Hr(e,n.filepath),c=new Br(o,0,0,0),p=c.moveBy(e.length),{parseOptions:h,rootNodes:d}=t(s,r),m={kind:"root",sourceSpan:new Fr(c,p),children:d};if(i){let[e,t]=[i.start,i.end].map(e=>new Br(o,e.index,e.line-1,e.column));a={...i,kind:"frontMatter",sourceSpan:new Fr(e,t)}}return fa(m,a,h,(r,a)=>function(e,t,r,n,a,i){let{offset:s}=n,o=Ea(l(0,t.slice(0,s),/[^\n]/gu," ")+r,e,{...a,shouldParseFrontMatter:!1},i);o.sourceSpan=new Fr(n,u(0,o.children,-1).sourceSpan.end);let c=o.children[0];return c.length===s?o.children.shift():(c.sourceSpan=new Fr(c.sourceSpan.start.moveBy(s),c.sourceSpan.end),c.value=c.value.slice(s)),o}(t,e,r,a,h,n))}var ba=na({name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0});function wa(e){let t=na(e),r="vue"===t.name?Ta:Sa;return{parse:(e,n)=>Ea(e,r,t,n),hasPragma:nr,hasIgnorePragma:ar,astFormat:"html",locStart:bt,locEnd:wt}}var ya=wa(ba),xa=new Set(["mj-style","mj-raw"]),Na=wa({...ba,name:"mjml",shouldParseAsRawText:e=>xa.has(e)}),La=wa({name:"angular",tokenizeAngularBlocks:!0,tokenizeAngularLetDeclaration:!0}),Aa=wa({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText:(e,t,r,n)=>"html"!==e.toLowerCase()&&!r&&("template"!==e||n.some(({name:e,value:t})=>"lang"===e&&"html"!==t&&""!==t&&void 0!==t))}),Oa=wa({name:"lwc",canSelfClose:!1}),Pa={html:Kn};exports.default=i,exports.languages=Yn,exports.options=Zn,exports.parsers=ea,exports.printers=Pa;
3
- //# sourceMappingURL=html.js.map