hugo-batsite/node_modules/prettier/parser-html.js

36 lines
158 KiB
JavaScript
Raw Normal View History

2022-05-27 15:11:53 +00:00
(function(e){if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var i=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};i.prettierPlugins=i.prettierPlugins||{},i.prettierPlugins.html=e()}})(function(){"use strict";var T=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var G=T((UD,Xr)=>{var Be=function(e){return e&&e.Math==Math&&e};Xr.exports=Be(typeof globalThis=="object"&&globalThis)||Be(typeof window=="object"&&window)||Be(typeof self=="object"&&self)||Be(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var se=T((GD,Hr)=>{Hr.exports=function(e){try{return!!e()}catch{return!0}}});var oe=T((VD,zr)=>{var As=se();zr.exports=!As(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var we=T((XD,Wr)=>{var vs=se();Wr.exports=!vs(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var ce=T((HD,Yr)=>{var _s=we(),Ne=Function.prototype.call;Yr.exports=_s?Ne.bind(Ne):function(){return Ne.apply(Ne,arguments)}});var Zr=T(Jr=>{"use strict";var Qr={}.propertyIsEnumerable,Kr=Object.getOwnPropertyDescriptor,Ss=Kr&&!Qr.call({1:2},1);Jr.f=Ss?function(r){var t=Kr(this,r);return!!t&&t.enumerable}:Qr});var Oe=T((WD,et)=>{et.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Q=T((YD,ut)=>{var rt=we(),tt=Function.prototype,ys=tt.bind,Je=tt.call,Ts=rt&&ys.bind(Je,Je);ut.exports=rt?function(e){return e&&Ts(e)}:function(e){return e&&function(){return Je.apply(e,arguments)}}});var qe=T((QD,st)=>{var nt=Q(),bs=nt({}.toString),Bs=nt("".slice);st.exports=function(e){return Bs(bs(e),8,-1)}});var it=T((KD,at)=>{var ws=G(),Ns=Q(),Os=se(),qs=qe(),Ze=ws.Object,Is=Ns("".split);at.exports=Os(function(){return!Ze("z").propertyIsEnumerable(0)})?function(e){return qs(e)=="String"?Is(e,""):Ze(e)}:Ze});var er=T((JD,ot)=>{var Rs=G(),xs=Rs.TypeError;ot.exports=function(e){if(e==null)throw xs("Can't call method on "+e);return e}});var Ie=T((ZD,ct)=>{var Ps=it(),ks=er();ct.exports=function(e){return Ps(ks(e))}});var K=T((el,Dt)=>{Dt.exports=function(e){return typeof e=="function"}});var De=T((rl,lt)=>{var Ls=K();lt.exports=function(e){return typeof e=="object"?e!==null:Ls(e)}});var me=T((tl,pt)=>{var rr=G(),Ms=K(),js=function(e){return Ms(e)?e:void 0};pt.exports=function(e,r){return arguments.length<2?js(rr[e]):rr[e]&&rr[e][r]}});var tr=T((ul,ht)=>{var $s=Q();ht.exports=$s({}.isPrototypeOf)});var Et=T((nl,ft)=>{var Us=me();ft.exports=Us("navigator","userAgent")||""});var vt=T((sl,At)=>{var Ft=G(),ur=Et(),dt=Ft.process,Ct=Ft.Deno,mt=dt&&dt.versions||Ct&&Ct.version,gt=mt&&mt.v8,te,Re;gt&&(te=gt.split("."),Re=te[0]>0&&te[0]<4?1:+(te[0]+te[1]));!Re&&ur&&(te=ur.match(/Edge\/(\d+)/),(!te||te[1]>=74)&&(te=ur.match(/Chrome\/(\d+)/),te&&(Re=+te[1])));At.exports=Re});var nr=T((al,St)=>{var _t=vt(),Gs=se();St.exports=!!Object.getOwnPropertySymbols&&!Gs(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&_t&&_t<41})});var sr=T((il,yt)=>{var Vs=nr();yt.exports=Vs&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var ar=T((ol,Tt)=>{var Xs=G(),Hs=me(),zs=K(),Ws=tr(),Ys=sr(),Qs=Xs.Object;Tt.exports=Ys?function(e){return typeof e=="symbol"}:function(e){var r=Hs("Symbol");return zs(r)&&Ws(r.prototype,Qs(e))}});var xe=T((cl,bt)=>{var Ks=G(),Js=Ks.String;bt.exports=function(e){try{return Js(e)}catch{return"Object"}}});var ge=T((Dl,Bt)=>{var Zs=G(),ea=K(),ra=xe(),ta=Zs.TypeError;Bt.exports=function(e){if(ea(e))return e;throw ta(ra(e)+" is not a function")}});var Pe=T((ll,wt)=>{var ua=ge();wt.exports=function(e,r){var t=e[r];return t==null?void 0:ua(t)}});var Ot=T((pl,Nt)=>{var na=G(),ir=ce(),or=K(),cr=De(),sa=na.TypeError;Nt.exports=function(e,r){var t,a;if(r==="string"&&or(t=e.toString)&&!cr(a=ir(t,e))||or(t=e.valueOf)&&!cr(a=ir(t,e))||r!=="string"&&or(t=e.toString)&&!cr(a=ir(t,e)))return a;throw sa("Can't convert object to primitive value")}});var It=T((hl,qt)=
`);return h===-1?d:d.substring(0,h)}e.stringify=F;function x(i){return typeof i=="function"&&i.hasOwnProperty("__forward_ref__")?i():i}e.resolveForwardRef=x;function A(i){return!!i&&typeof i.then=="function"}e.isPromise=A;var w=class{constructor(i){this.full=i;let d=i.split(".");this.major=d[0],this.minor=d[1],this.patch=d.slice(2).join(".")}};e.Version=w;var I=typeof window<"u"&&window,L=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,j=typeof globalThis<"u"&&globalThis,u=j||I||L;e.global=u}}),Wc=R({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(e){"use strict";P(),Object.defineProperty(e,"__esModule",{value:!0});var r=Hc(),t=zc(),a=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function D(h){return h.replace(/\W/g,"_")}e.sanitizeIdentifier=D;var n=0;function c(h){if(!h||!h.reference)return null;let _=h.reference;if(_ instanceof r.StaticSymbol)return _.name;if(_.__anonymousType)return _.__anonymousType;let k=t.stringify(_);return k.indexOf("(")>=0?(k="anonymous_".concat(n++),_.__anonymousType=k):k=D(k),k}e.identifierName=c;function E(h){let _=h.reference;return _ instanceof r.StaticSymbol?_.filePath:"./".concat(t.stringify(_))}e.identifierModuleUrl=E;function p(h,_){return"View_".concat(c({reference:h}),"_").concat(_)}e.viewClassName=p;function g(h){return"RenderType_".concat(c({reference:h}))}e.rendererTypeName=g;function s(h){return"HostView_".concat(c({reference:h}))}e.hostViewClassName=s;function o(h){return"".concat(c({reference:h}),"NgFactory")}e.componentFactoryName=o;var l;(function(h){h[h.Pipe=0]="Pipe",h[h.Directive=1]="Directive",h[h.NgModule=2]="NgModule",h[h.Injectable=3]="Injectable"})(l=e.CompileSummaryKind||(e.CompileSummaryKind={}));function C(h){return h.value!=null?D(h.value):c(h.identifier)}e.tokenName=C;function f(h){return h.identifier!=null?h.identifier.reference:h.value}e.tokenReference=f;var m=class{constructor(){let{moduleUrl:h,styles:_,styleUrls:k}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.moduleUrl=h||null,this.styles=A(_),this.styleUrls=A(k)}};e.CompileStylesheetMetadata=m;var b=class{constructor(h){let{encapsulation:_,template:k,templateUrl:$,htmlAst:W,styles:X,styleUrls:H,externalStylesheets:z,animations:J,ngContentSelectors:Z,interpolation:ee,isInline:S,preserveWhitespaces:y}=h;if(this.encapsulation=_,this.template=k,this.templateUrl=$,this.htmlAst=W,this.styles=A(X),this.styleUrls=A(H),this.externalStylesheets=A(z),this.animations=J?I(J):[],this.ngContentSelectors=Z||[],ee&&ee.length!=2)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=ee,this.isInline=S,this.preserveWhitespaces=y}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};e.CompileTemplateMetadata=b;var B=class{static create(h){let{isHost:_,type:k,isComponent:$,selector:W,exportAs:X,changeDetection:H,inputs:z,outputs:J,host:Z,providers:ee,viewProviders:S,queries:y,guards:N,viewQueries:q,entryComponents:M,template:U,componentViewType:V,rendererType:Y,componentFactory:ue}=h,Te={},be={},Ur={};Z!=null&&Object.keys(Z).forEach(re=>{let ne=Z[re],Ce=re.match(a);Ce===null?Ur[re]=ne:Ce[1]!=null?be[Ce[1]]=ne:Ce[2]!=null&&(Te[Ce[2]]=ne)});let Gr={};z!=null&&z.forEach(re=>{let ne=t.splitAtColon(re,[re,re]);Gr[ne[0]]=ne[1]});let Vr={};return J!=null&&J.forEach(re=>{let ne=t.splitAtColon(re,[re,re]);Vr[ne[0]]=ne[1]}),new B({isHost:_,type:k,isComponent:!!$,selector:W,exportAs:X,changeDetection:H,inputs:Gr,outputs:Vr,hostListeners:Te,hostProperties:be,hostAttributes:Ur,providers:ee,viewProviders:S,queries:y,guards:N,viewQueries:q,entryComponents:M,template:U,componentViewType:V,rendererType:Y,componentFactory:ue})}constructor(h){let{isHost:_,type:k,isComponent:$,selector:W,exportAs:X,changeDetection:H,inputs:z,outputs:J,hostListeners:Z,hostProperties:ee,hostAttributes:S,providers:y,viewProviders:N,queries:q,guards:M,viewQueries:U,entryComponents:V,template:Y,componentViewType:ue,rendererType:Te,componentFactory:be}=h;this
`&&++b==o)););for(m=0,b=0;m<s&&f<l.length-1&&(f++,m++,!(l[f]==`
`&&++b==o)););return{before:l.substring(C,this.offset),after:l.substring(this.offset,f+1)}}return null}};e.ParseLocation=a;var D=class{constructor(s,o){this.content=s,this.url=o}};e.ParseSourceFile=D;var n=class{constructor(s,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this.start=s,this.end=o,this.details=l}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};e.ParseSourceSpan=n,e.EMPTY_PARSE_LOCATION=new a(new D("",""),0,0,0),e.EMPTY_SOURCE_SPAN=new n(e.EMPTY_PARSE_LOCATION,e.EMPTY_PARSE_LOCATION);var c;(function(s){s[s.WARNING=0]="WARNING",s[s.ERROR=1]="ERROR"})(c=e.ParseErrorLevel||(e.ParseErrorLevel={}));var E=class{constructor(s,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:c.ERROR;this.span=s,this.msg=o,this.level=l}contextualMessage(){let s=this.span.start.getContext(100,3);return s?"".concat(this.msg,' ("').concat(s.before,"[").concat(c[this.level]," ->]").concat(s.after,'")'):this.msg}toString(){let s=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(s)}};e.ParseError=E;function p(s,o){let l=t.identifierModuleUrl(o),C=l!=null?"in ".concat(s," ").concat(t.identifierName(o)," in ").concat(l):"in ".concat(s," ").concat(t.identifierName(o)),f=new D("",C);return new n(new a(f,-1,-1,-1),new a(f,-1,-1,-1))}e.typeSourceSpan=p;function g(s,o,l){let C="in ".concat(s," ").concat(o," in ").concat(l),f=new D("",C);return new n(new a(f,-1,-1,-1),new a(f,-1,-1,-1))}e.r3JitTypeSourceSpan=g}}),Yc=R({"src/utils/front-matter/parse.js"(e,r){"use strict";P();var t=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function a(D){let n=D.match(t);if(!n)return{content:D};let{startDelimiter:c,language:E,value:p="",endDelimiter:g}=n.groups,s=E.trim()||"yaml";if(c==="+++"&&(s="toml"),s!=="yaml"&&c!==g)return{content:D};let[o]=n;return{frontMatter:{type:"front-matter",lang:s,value:p,startDelimiter:c,endDelimiter:g,raw:o.replace(/\n$/,"")},content:o.replace(/[^\n]/g," ")+D.slice(o.length)}}r.exports=a}}),Mr=R({"src/utils/get-last.js"(e,r){"use strict";P();var t=a=>a[a.length-1];r.exports=t}}),Qc=R({"src/common/parser-create-error.js"(e,r){"use strict";P();function t(a,D){let n=new SyntaxError(a+" ("+D.start.line+":"+D.start.column+")");return n.loc=D,n}r.exports=t}}),Kc=R({"vendors/escape-string-regexp.js"(e,r){P();var t=Object.defineProperty,a=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,c=(o,l)=>{for(var C in l)t(o,C,{get:l[C],enumerable:!0})},E=(o,l,C,f)=>{if(l&&typeof l=="object"||typeof l=="function")for(let m of D(l))!n.call(o,m)&&m!==C&&t(o,m,{get:()=>l[m],enumerable:!(f=a(l,m))||f.enumerable});return o},p=o=>E(t({},"__esModule",{value:!0}),o),g={};c(g,{default:()=>s}),r.exports=p(g);function s(o){if(typeof o!="string")throw new TypeError("Expected a string");return o.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}}}),cs=R({"node_modules/semver/internal/debug.js"(e,r){P();var t=typeof Se=="object"&&Se.env&&Se.env.NODE_DEBUG&&/\bsemver\b/i.test(Se.env.NODE_DEBUG)?function(){for(var a=arguments.length,D=new Array(a),n=0;n<a;n++)D[n]=arguments[n];return console.error("SEMVER",...D)}:()=>{};r.exports=t}}),Ds=R({"node_modules/semver/internal/constants.js"(e,r){P();var t="2.0.0",a=256,D=Number.MAX_SAFE_INTEGER||9007199254740991,n=16;r.exports={SEMVER_SPEC_VERSION:t,MAX_LENGTH:a,MAX_SAFE_INTEGER:D,MAX_SAFE_COMPONENT_LENGTH:n}}}),Jc=R({"node_modules/semver/internal/re.js"(e,r){P();var{MAX_SAFE_COMPONENT_LENGTH:t}=Ds(),a=cs();e=r.exports={};var D=e.re=[],n=e.src=[],c=e.t={},E=0,p=(g,s,o)=>{let l=E++;a(l,s),c[g]=l,n[l]=s,D[l]=new RegExp(s,o?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","[0-9]+"),p("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),p("MAINVERSION","(".concat(n[c.NUMERICIDENTIFIER],")\\.(").concat(n[c.NUMERICIDENTIFIER],")\\.(").concat(n[c.NUMERICIDENTIFIER],")")),p("MAINVER
Print (to stderr) where a cursor at the given position would move to after formatting.
This option cannot be used with --range-start and --range-end.
`]))),cliCategory:D},endOfLine:{since:"1.15.0",category:p,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:t(Kn||(Kn=de([`
Maintain existing
(mixed values within one file are normalised by looking at what's used after the first line)
`])))}]},filepath:{since:"1.4.0",category:g,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:c,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:g,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:c},parser:{since:"0.0.10",category:p,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:o=>typeof o=="string"||typeof o=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"acorn",since:"2.6.0",description:"JavaScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:p,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:o=>typeof o=="string"||typeof o=="object",cliName:"plugin",cliCategory:a},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:p,description:t(Jn||(Jn=de([`
Custom directory that contains prettier plugins in node_modules subdirectory.
Overrides default behavior when plugins are searched relatively to the location of Prettier.
Multiple values are accepted.
`]))),exception:o=>typeof o=="string"||typeof o=="object",cliName:"plugin-search-dir",cliCategory:a},printWidth:{since:"0.0.0",category:p,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:g,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:t(Zn||(Zn=de([`
Format code ending at a given character offset (exclusive).
The range will extend forwards to the end of the selected statement.
This option cannot be used with --cursor-offset.
`]))),cliCategory:D},rangeStart:{since:"1.4.0",category:g,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:t(es||(es=de([`
Format code starting at a given character offset.
The range will extend backwards to the start of the first line containing the selected statement.
This option cannot be used with --cursor-offset.
`]))),cliCategory:D},requirePragma:{since:"1.7.0",category:g,type:"boolean",default:!1,description:t(rs||(rs=de([`
Require either '@prettier' or '@format' to be present in the file's first docblock comment
in order for it to be formatted.
`]))),cliCategory:c},tabWidth:{type:"int",category:p,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:p,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:p,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};r.exports={CATEGORY_CONFIG:a,CATEGORY_EDITOR:D,CATEGORY_FORMAT:n,CATEGORY_OTHER:c,CATEGORY_OUTPUT:E,CATEGORY_GLOBAL:p,CATEGORY_SPECIAL:g,options:s}}}),oD=R({"src/main/support.js"(e,r){"use strict";P();var t={compare:jr(),lt:tD(),gte:uD()},a=nD(),D=sD().version,n=iD().options;function c(){let{plugins:p=[],showUnreleased:g=!1,showDeprecated:s=!1,showInternal:o=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=D.split("-",1)[0],C=p.flatMap(v=>v.languages||[]).filter(m),f=a(Object.assign({},...p.map(v=>{let{options:O}=v;return O}),n),"name").filter(v=>m(v)&&b(v)).sort((v,O)=>v.name===O.name?0:v.name<O.name?-1:1).map(B).map(v=>{v=Object.assign({},v),Array.isArray(v.default)&&(v.default=v.default.length===1?v.default[0].value:v.default.filter(m).sort((F,x)=>t.compare(x.since,F.since))[0].value),Array.isArray(v.choices)&&(v.choices=v.choices.filter(F=>m(F)&&b(F)),v.name==="parser"&&E(v,C,p));let O=Object.fromEntries(p.filter(F=>F.defaultOptions&&F.defaultOptions[v.name]!==void 0).map(F=>[F.name,F.defaultOptions[v.name]]));return Object.assign(Object.assign({},v),{},{pluginDefaults:O})});return{languages:C,options:f};function m(v){return g||!("since"in v)||v.since&&t.gte(l,v.since)}function b(v){return s||!("deprecated"in v)||v.deprecated&&t.lt(l,v.deprecated)}function B(v){if(o)return v;let{cliName:O,cliCategory:F,cliDescription:x}=v;return Gc(v,Uc)}}function E(p,g,s){let o=new Set(p.choices.map(l=>l.value));for(let l of g)if(l.parsers){for(let C of l.parsers)if(!o.has(C)){o.add(C);let f=s.find(b=>b.parsers&&b.parsers[C]),m=l.name;f&&f.name&&(m+=" (plugin: ".concat(f.name,")")),p.choices.push({value:C,description:m})}}}r.exports={getSupportInfo:c}}}),cD=R({"src/utils/is-non-empty-array.js"(e,r){"use strict";P();function t(a){return Array.isArray(a)&&a.length>0}r.exports=t}}),DD=R({"vendors/string-width.js"(e,r){P();var t=Object.create,a=Object.defineProperty,D=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,c=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,p=(F,x)=>function(){return x||(0,F[n(F)[0]])((x={exports:{}}).exports,x),x.exports},g=(F,x)=>{for(var A in x)a(F,A,{get:x[A],enumerable:!0})},s=(F,x,A,w)=>{if(x&&typeof x=="object"||typeof x=="function")for(let I of n(x))!E.call(F,I)&&I!==A&&a(F,I,{get:()=>x[I],enumerable:!(w=D(x,I))||w.enumerable});return F},o=(F,x,A)=>(A=F!=null?t(c(F)):{},s(x||!F||!F.__esModule?a(A,"default",{value:F,enumerable:!0}):A,F)),l=F=>s(a({},"__esModule",{value:!0}),F),C=p({"node_modules/emoji-regex/index.js"(F,x){"use strict";x.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC6
`)return D-2;if(E===`
`||E==="\r"||E==="\u2028"||E==="\u2029")return D-1}else{if(E==="\r"&&a.charAt(D+1)===`
`)return D+2;if(E===`
`||E==="\r"||E==="\u2028"||E==="\u2029")return D+1}return D}r.exports=t}}),pD=R({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(e,r){"use strict";P();var t=ls(),a=hs(),D=ps(),{skipSpaces:n}=$r();function c(E,p){let g=null,s=p;for(;s!==g;)g=s,s=n(E,s),s=t(E,s),s=D(E,s),s=a(E,s);return s}r.exports=c}}),fs=R({"src/common/util.js"(e,r){"use strict";P();var{default:t}=Kc(),a=Mr(),{getSupportInfo:D}=oD(),n=cD(),c=lD(),{skipWhitespace:E,skipSpaces:p,skipToLineEnd:g,skipEverythingButNewLine:s}=$r(),o=ls(),l=ps(),C=hs(),f=pD(),m=S=>S[S.length-2];function b(S){return(y,N,q)=>{let M=q&&q.backwards;if(N===!1)return!1;let{length:U}=y,V=N;for(;V>=0&&V<U;){let Y=y.charAt(V);if(S instanceof RegExp){if(!S.test(Y))return V}else if(!S.includes(Y))return V;M?V--:V++}return V===-1||V===U?V:!1}}function B(S,y){let N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},q=p(S,N.backwards?y-1:y,N),M=C(S,q,N);return q!==M}function v(S,y,N){for(let q=y;q<N;++q)if(S.charAt(q)===`
`)return!0;return!1}function O(S,y,N){let q=N(y)-1;q=p(S,q,{backwards:!0}),q=C(S,q,{backwards:!0}),q=p(S,q,{backwards:!0});let M=C(S,q,{backwards:!0});return q!==M}function F(S,y){let N=null,q=y;for(;q!==N;)N=q,q=g(S,q),q=o(S,q),q=p(S,q);return q=l(S,q),q=C(S,q),q!==!1&&B(S,q)}function x(S,y,N){return F(S,N(y))}function A(S,y,N){return f(S,N(y))}function w(S,y,N){return S.charAt(A(S,y,N))}function I(S,y){let N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return p(S,N.backwards?y-1:y,N)!==y}function L(S,y){let N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,q=0;for(let M=N;M<S.length;++M)S[M]===" "?q=q+y-q%y:q++;return q}function j(S,y){let N=S.lastIndexOf(`
`);return N===-1?0:L(S.slice(N+1).match(/^[\t ]*/)[0],y)}function u(S,y){let N={quote:'"',regex:/"/g,escaped:"&quot;"},q={quote:"'",regex:/'/g,escaped:"&apos;"},M=y==="'"?q:N,U=M===q?N:q,V=M;if(S.includes(M.quote)||S.includes(U.quote)){let Y=(S.match(M.regex)||[]).length,ue=(S.match(U.regex)||[]).length;V=Y>ue?U:M}return V}function i(S,y){let N=S.slice(1,-1),q=y.parser==="json"||y.parser==="json5"&&y.quoteProps==="preserve"&&!y.singleQuote?'"':y.__isInHtmlAttribute?"'":u(N,y.singleQuote?"'":'"').quote;return d(N,q,!(y.parser==="css"||y.parser==="less"||y.parser==="scss"||y.__embeddedInHtml))}function d(S,y,N){let q=y==='"'?"'":'"',M=/\\(.)|(["'])/gs,U=S.replace(M,(V,Y,ue)=>Y===q?Y:ue===y?"\\"+ue:ue||(N&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(Y)?Y:"\\"+Y));return y+U+y}function h(S){return S.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}function _(S,y){let N=S.match(new RegExp("(".concat(t(y),")+"),"g"));return N===null?0:N.reduce((q,M)=>Math.max(q,M.length/y.length),0)}function k(S,y){let N=S.match(new RegExp("(".concat(t(y),")+"),"g"));if(N===null)return 0;let q=new Map,M=0;for(let U of N){let V=U.length/y.length;q.set(V,!0),V>M&&(M=V)}for(let U=1;U<M;U++)if(!q.get(U))return U;return M+1}function $(S,y){(S.comments||(S.comments=[])).push(y),y.printed=!1,y.nodeDescription=ee(S)}function W(S,y){y.leading=!0,y.trailing=!1,$(S,y)}function X(S,y,N){y.leading=!1,y.trailing=!1,N&&(y.marker=N),$(S,y)}function H(S,y){y.leading=!1,y.trailing=!0,$(S,y)}function z(S,y){let{languages:N}=D({plugins:y.plugins}),q=N.find(M=>{let{name:U}=M;return U.toLowerCase()===S})||N.find(M=>{let{aliases:U}=M;return Array.isArray(U)&&U.includes(S)})||N.find(M=>{let{extensions:U}=M;return Array.isArray(U)&&U.includes(".".concat(S))});return q&&q.parsers[0]}function J(S){return S&&S.type==="front-matter"}function Z(S){let y=new WeakMap;return function(N){return y.has(N)||y.set(N,Symbol(S)),y.get(N)}}function ee(S){let y=S.type||S.kind||"(unknown type)",N=String(S.name||S.id&&(typeof S.id=="object"?S.id.name:S.id)||S.key&&(typeof S.key=="object"?S.key.name:S.key)||S.value&&(typeof S.value=="object"?"":String(S.value))||S.operator||"");return N.length>20&&(N=N.slice(0,19)+"\u2026"),y+(N?" "+N:"")}r.exports={inferParserByLanguage:z,getStringWidth:c,getMaxContinuousCount:_,getMinNotPresentContinuousCount:k,getPenultimate:m,getLast:a,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:f,getNextNonSpaceNonCommentCharacterIndex:A,getNextNonSpaceNonCommentCharacter:w,skip:b,skipWhitespace:E,skipSpaces:p,skipToLineEnd:g,skipEverythingButNewLine:s,skipInlineComment:o,skipTrailingComment:l,skipNewline:C,isNextLineEmptyAfterIndex:F,isNextLineEmpty:x,isPreviousLineEmpty:O,hasNewline:B,hasNewlineInRange:v,hasSpaces:I,getAlignmentSize:L,getIndentSize:j,getPreferredQuote:u,printString:i,printNumber:h,makeString:d,addLeadingComment:W,addDanglingComment:X,addTrailingComment:H,isFrontMatterNode:J,isNonEmptyArray:n,createGroupIdMapper:Z}}}),hD=R({"vendors/html-tag-names.json"(e,r){r.exports={htmlTagNames:["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","element","em","embed","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","section","select","shadow","slot","small","source","
`+D.replace(/^\s*\n/,"")}r.exports={hasPragma:t,insertPragma:a}}}),FD=R({"src/language-html/ast.js"(e,r){"use strict";P();var{isNonEmptyArray:t}=fs(),a=Mr(),D={attrs:!0,children:!0},n=class{constructor(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(let[s,o]of Object.entries(g))s in D?this._setNodes(s,o):this[s]=o}_setNodes(g,s){s!==this[g]&&(this[g]=E(s,this),g==="attrs"&&p(this,"attrMap",Object.fromEntries(this[g].map(o=>[o.fullName,o.value]))))}map(g){let s=null;for(let o in D){let l=this[o];if(l){let C=c(l,f=>f.map(g));s!==l&&(s||(s=new n({parent:this.parent})),s._setNodes(o,C))}}if(s)for(let o in this)o in D||(s[o]=this[o]);return g(s||this)}walk(g){for(let s in D){let o=this[s];if(o)for(let l=0;l<o.length;l++)o[l].walk(g)}g(this)}insertChildBefore(g,s){let o=new n(Object.assign(Object.assign({},s),{},{parent:this}));this.children.splice(this.children.indexOf(g),0,o)}removeChild(g){this.children.splice(this.children.indexOf(g),1)}replaceChild(g,s){let o=new n(Object.assign(Object.assign({},s),{},{parent:this}));this.children[this.children.indexOf(g)]=o}clone(){return new n(this)}setChildren(g){this._setNodes("children",g)}get firstChild(){return t(this.children)?this.children[0]:null}get lastChild(){return t(this.children)?a(this.children):null}get prev(){return this.parent?this.parent.children[this.parent.children.indexOf(this)-1]:null}get next(){return this.parent?this.parent.children[this.parent.children.indexOf(this)+1]:null}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}};function c(g,s){let o=g.map(s);return o.some((l,C)=>l!==g[C])?o:g}function E(g,s){let o=g.map(l=>l instanceof n?l.clone():new n(Object.assign(Object.assign({},l),{},{parent:s})));for(let l of o)l.parent=s;return o}function p(g,s,o){Object.defineProperty(g,s,{value:o,enumerable:!1})}r.exports={Node:n}}}),AD=R({"src/language-html/conditional-comment.js"(e,r){"use strict";P();var{ParseSourceSpan:t}=ye(),a=[{regex:/^(\[if([^\]]*)]>)(.*?)<!\s*\[endif]$/s,parse:n},{regex:/^\[if([^\]]*)]><!$/,parse:c},{regex:/^<!\s*\[endif]$/,parse:E}];function D(p,g){if(p.value)for(let{regex:s,parse:o}of a){let l=p.value.match(s);if(l)return o(p,g,l)}return null}function n(p,g,s){let[,o,l,C]=s,f=4+o.length,m=p.sourceSpan.start.moveBy(f),b=m.moveBy(C.length),[B,v]=(()=>{try{return[!0,g(C,m).children]}catch{let O={type:"text",value:C,sourceSpan:new t(m,b)};return[!1,[O]]}})();return{type:"ieConditionalComment",complete:B,children:v,condition:l.trim().replace(/\s+/g," "),sourceSpan:p.sourceSpan,startSourceSpan:new t(p.sourceSpan.start,m),endSourceSpan:new t(b,p.sourceSpan.end)}}function c(p,g,s){let[,o]=s;return{type:"ieConditionalStartComment",condition:o.trim().replace(/\s+/g," "),sourceSpan:p.sourceSpan}}function E(p){return{type:"ieConditionalEndComment",sourceSpan:p.sourceSpan}}r.exports={parseIeConditionalComment:D}}}),vD=R({"src/language-html/loc.js"(e,r){"use strict";P();function t(D){return D.sourceSpan.start.offset}function a(D){return D.sourceSpan.end.offset}r.exports={locStart:t,locEnd:a}}}),Ke=R({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/tags.js"(e){"use strict";P(),Object.defineProperty(e,"__esModule",{value:!0});var r;(function(p){p[p.RAW_TEXT=0]="RAW_TEXT",p[p.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",p[p.PARSABLE_DATA=2]="PARSABLE_DATA"})(r=e.TagContentType||(e.TagContentType={}));function t(p){if(p[0]!=":")return[null,p];let g=p.indexOf(":",1);if(g==-1)throw new Error('Unsupported format "'.concat(p,'" expecting ":namespace:name"'));return[p.slice(1,g),p.slice(g+1)]}e.splitNsName=t;function a(p){return t(p)[1]==="ng-container"}e.isNgContainer=a;function D(p){return t(p)[1]==="ng-content"}e.isNgContent=D;function n(p){return t(p)[1]==="ng-template"}e.isNgTemplate=n;function c(p){return p===null?null:t(p)[0]}e.getNsPrefix=c;function E(p,g){return p?":".concat(p,":").concat(g):g}e.mergeNsAndName=E,e.NAMED_ENTITIES={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u03
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u01
`)}tokenize(){for(;this._cursor.peek()!==r.$EOF;){let u=this._cursor.clone();try{if(this._attemptCharCode(r.$LT))if(this._attemptCharCode(r.$BANG))this._attemptStr("[CDATA[")?this._consumeCdata(u):this._attemptStr("--")?this._consumeComment(u):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(u):this._consumeBogusComment(u);else if(this._attemptCharCode(r.$SLASH))this._consumeTagClose(u);else{let i=this._cursor.clone();this._attemptCharCode(r.$QUESTION)?(this._cursor=i,this._consumeBogusComment(u)):this._consumeTagOpen(u)}else this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(i){this.handleError(i)}}return this._beginToken(n.EOF),this._endToken([]),new p(w(this.tokens),this.errors)}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(F(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===r.$RBRACE){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(u){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._cursor.clone();this._currentTokenStart=i,this._currentTokenType=u}_endToken(u){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._cursor.clone();if(this._currentTokenStart===null)throw new E("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(i));if(this._currentTokenType===null)throw new E("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let d=new c(this._currentTokenType,u,this._cursor.getSpan(this._currentTokenStart,this._leadingTriviaCodePoints));return this.tokens.push(d),this._currentTokenStart=null,this._currentTokenType=null,d}_createError(u,i){this._isInExpansionForm()&&(u+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let d=new E(u,this._currentTokenType,i);return this._currentTokenStart=null,this._currentTokenType=null,new C(d)}handleError(u){if(u instanceof j&&(u=this._createError(u.msg,this._cursor.getSpan(u.cursor))),u instanceof C)this.errors.push(u.error);else throw u}_attemptCharCode(u){return this._cursor.peek()===u?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(u){return x(this._cursor.peek(),u)?(this._cursor.advance(),!0):!1}_requireCharCode(u){let i=this._cursor.clone();if(!this._attemptCharCode(u))throw this._createError(o(this._cursor.peek()),this._cursor.getSpan(i))}_attemptStr(u){let i=u.length;if(this._cursor.charsLeft()<i)return!1;let d=this._cursor.clone();for(let h=0;h<i;h++)if(!this._attemptCharCode(u.charCodeAt(h)))return this._cursor=d,!1;return!0}_attemptStrCaseInsensitive(u){for(let i=0;i<u.length;i++)if(!this._attemptCharCodeCaseInsensitive(u.charCodeAt(i)))return!1;return!0}_requireStr(u){let i=this._cursor.clone();if(!this._attemptStr(u))throw this._createError(o(this._cursor.peek()),this._cursor.getSpan(i))}_requireStrCaseInsensitive(u){let i=this._cursor.clone();if(!this._attemptStrCaseInsensitive(u))throw this._createError(o(this._cursor.peek()),this._cursor.getSpan(i))}_attemptCharCodeUntilFn(u){for(;!u(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(u,i){let d=this._cursor.clone();if(this._attemptCharCodeUntilFn(u),this._cursor.clone().diff(d)<i)throw this._createError(o(this._cursor.peek()),this._cursor.getSpan(d))}_attemptUntilChar(u){for(;this._cursor.peek()!==u;)this._cursor.advance()}_readChar(u){if(u&&this._cursor.peek()===r.$AMPERSAND)return this._decodeEntity();{let i=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),i}}_decodeEntity(){let u=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(r.$HASH)){let i=this._attemptCharCode(r.$x)||this._attemptCharCode(r.$X),d=this._cursor.clone();if(this._attemptCharCodeUntilFn(v),this._cursor.peek()!=r.$SEMICOLON)throw this._createError(o(this._cursor.peek()),this._cursor.getSpan()
`){let l=this._getParentElement();l!=null&&l.children.length==0&&this.getTagDefinition(l.name).ignoreFirstLf&&(o=o.substring(1))}return o}_consumeText(s){let o=this._getText(s);o.length>0&&this._addToParent(new t.Text(o,s.sourceSpan))}_closeVoidElement(){let s=this._getParentElement();s&&this.getTagDefinition(s.name).isVoid&&this._elementStack.pop()}_consumeStartTag(s){let o=s.parts[0],l=s.parts[1],C=[];for(;this._peek.type===a.TokenType.ATTR_NAME;)C.push(this._consumeAttr(this._advance()));let f=this._getElementFullName(o,l,this._getParentElement()),m=!1;if(this._peek.type===a.TokenType.TAG_OPEN_END_VOID){this._advance(),m=!0;let F=this.getTagDefinition(f);this.canSelfClose||F.canSelfClose||D.getNsPrefix(f)!==null||F.isVoid||this._errors.push(n.create(f,s.sourceSpan,'Only void and foreign elements can be self closed "'.concat(s.parts[1],'"')))}else this._peek.type===a.TokenType.TAG_OPEN_END&&(this._advance(),m=!1);let b=this._peek.sourceSpan.start,B=new r.ParseSourceSpan(s.sourceSpan.start,b),v=new r.ParseSourceSpan(s.sourceSpan.start.moveBy(1),s.sourceSpan.end),O=new t.Element(f,C,[],B,B,void 0,v);this._pushElement(O),m&&(this._popElement(f),O.endSourceSpan=B)}_pushElement(s){let o=this._getParentElement();o&&this.getTagDefinition(o.name).isClosedByChild(s.name)&&this._elementStack.pop(),this._addToParent(s),this._elementStack.push(s)}_consumeEndTag(s){let o=this.allowHtmComponentClosingTags&&s.parts.length===0?null:this._getElementFullName(s.parts[0],s.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=s.sourceSpan),o&&this.getTagDefinition(o).isVoid)this._errors.push(n.create(o,s.sourceSpan,'Void elements do not have end tags "'.concat(s.parts[1],'"')));else if(!this._popElement(o)){let l='Unexpected closing tag "'.concat(o,'". 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(n.create(o,s.sourceSpan,l))}}_popElement(s){for(let o=this._elementStack.length-1;o>=0;o--){let l=this._elementStack[o];if(!s||(D.getNsPrefix(l.name)?l.name==s:l.name.toLowerCase()==s.toLowerCase()))return this._elementStack.splice(o,this._elementStack.length-o),!0;if(!this.getTagDefinition(l.name).closedByParent)return!1}return!1}_consumeAttr(s){let o=D.mergeNsAndName(s.parts[0],s.parts[1]),l=s.sourceSpan.end,C="",f,m;if(this._peek.type===a.TokenType.ATTR_QUOTE&&(m=this._advance().sourceSpan.start),this._peek.type===a.TokenType.ATTR_VALUE){let b=this._advance();C=b.parts[0],l=b.sourceSpan.end,f=b.sourceSpan}return this._peek.type===a.TokenType.ATTR_QUOTE&&(l=this._advance().sourceSpan.end,f=new r.ParseSourceSpan(m,l)),new t.Attribute(o,C,new r.ParseSourceSpan(s.sourceSpan.start,l),f,s.sourceSpan)}_getParentElement(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}_getParentElementSkippingContainers(){let s=null;for(let o=this._elementStack.length-1;o>=0;o--){if(!D.isNgContainer(this._elementStack[o].name))return{parent:this._elementStack[o],container:s};s=this._elementStack[o]}return{parent:null,container:s}}_addToParent(s){let o=this._getParentElement();o!=null?o.children.push(s):this._rootNodes.push(s)}_insertBeforeContainer(s,o,l){if(!o)this._addToParent(l),this._elementStack.push(l);else{if(s){let C=s.children.indexOf(o);s.children[C]=l}else this._rootNodes.push(l);l.children.push(o),this._elementStack.splice(this._elementStack.indexOf(o),0,l)}}_getElementFullName(s,o,l){return s===""&&(s=this.getTagDefinition(o).implicitNamespacePrefix||"",s===""&&l!=null&&(s=D.getNsPrefix(l.name))),D.mergeNsAndName(s,o)}};function g(s,o){return s.length>0&&s[s.length-1]===o}}}),bD=R({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/html_parser.js"(e){"use strict";P(),Object.defineProperty(e,"__esModule",{value:!0});var r=ds(),t=ns(),a=ns();e.ParseTreeResult=a.ParseTreeResult,e.TreeError=a.TreeError;var D=class extends t.Parser{constructor(){super(r.getHtmlTagDefinition)}parse(n,c,E){let p=arguments.length>3&&argum