1import{a as kv,b as Nv}from"./chunk-H2CPFRYG.js";import{a as Wg,b as Gg,c as Xg,d as Qg,e as bu,f as Yg,g as Kg,h as Jg,i as Tu,j as ku,k as Zg,l as ev,m as Nu,n as tv,o as nv,p as Iu,q as sv,r as rv,s as Wa,t as iv}from"./chunk-VPAJ6VJS.js";import{a as Tv}from"./chunk-M2RZQ7JE.js";import{a as ov,b as av,c as lv,d as cv,e as uv,f as pv,g as hv,h as fv,i as Du,j as dv,k as mv,l as Pu,m as gv,n as vv,o as Sv,p as yv,q as Ev,r as Mu,s as wv,t as Av,u as xv,v as _v,w as Cv,x as Ga,y as bv}from"./chunk-AZF3OOHU.js";import{a as Jm}from"./chunk-PINRYAXV.js";import{b as _i}from"./chunk-ZWBZMMIE.js";import{a as jg,b as zg}from"./chunk-ZXCKDMZW.js";import{a as Ns}from"./chunk-O7DFMKSV.js";import{a as Cg,b as xu,c as bg,d as Tg,e as _u,f as kg,g as Ng,h as Ha,i as Ig}from"./chunk-NTLWYPI3.js";import{a as Eg,b as wg,c as Ag,d as xg,e as _g,f as qa}from"./chunk-BYALUURH.js";import{a as Dg,b as Pg,c as Mg,d as Lg,e as Rg,f as Fg,g as Bg,h as ja,i as za}from"./chunk-LJGWWI3E.js";import{a as Og,b as $g,c as Cu,d as Ug,e as Vg,f as qg,g as Hg}from"./chunk-PQZ7XCV7.js";import{a as wu}from"./chunk-3E2WXENK.js";import{a as mt}from"./chunk-753FMR5I.js";import{a as eg,b as tg,c as ng,d as sg,e as rg,f as ig,g as og,h as ag,i as lg,j as cg,k as ug,l as pg,m as hg,n as Ua,o as fg,p as dg,q as mg,r as Au,s as gg,t as vg,u as Sg,v as yg,w as Va}from"./chunk-6ED4E75H.js";import"./chunk-DT6PFY74.js";import{a as Er}from"./chunk-WWA46EOS.js";import{a as hn}from"./chunk-LWHLMU4V.js";import{a as Ln}from"./chunk-KU56RSLW.js";import{a as K}from"./chunk-KKBIUXEM.js";import{Bb as Ym,Cb as Km,Db as Eu,Ia as Xm,d as Fm,e as Bm,f as Om,i as $m,j as Um,k as Vm,ka as Wm,m as qm,n as Hm,o as jm,p as zm,pa as Gm,qa as $a,yb as Qm}from"./chunk-WSZTWALB.js";import{a as Zm}from"./chunk-JRPM37RZ.js";import"./chunk-VQQTJHA2.js";import{$c as Ca,$f as lm,$g as dm,Ai as Ba,Bd as ba,Bi as Im,Cb as Zd,Dh as wm,Di as Dm,Eh as Am,Ei as Pm,Fi as Mm,Gb as em,Hh as xm,Ih as _m,Ii as Lm,Jf as Qn,Jh as Cm,Ji as Oa,Lg as cm,Me as Na,Mg as Ma,Mj as Rm,Ob as tm,Oe as Ia,Qc as nm,Rg as La,Sf as Pa,Sg as Yn,Sh as bm,Tg as yr,Th as Tm,Uc as sm,Ug as vu,Vg as Ra,Wc as V,Wg as um,Xg as pm,Y as qd,Yg as hm,Zg as Su,_c as rm,_f as am,_g as fm,a as $d,ad as im,ah as mm,b as Ud,bd as om,bh as gm,c as Vd,ch as vm,dh as Te,eh as Kn,fb as Wd,fh as Fa,ge as Ta,hb as Gd,ib as Xd,if as vr,ja as Hd,jb as Qd,jh as Sm,ka as jd,kb as Yd,lb as Kd,lf as Sr,mb as Jd,oa as zd,oh as ym,ph as yu,qe as pn,qh as Em,qi as km,ri as Nm,ue as en,uf as Da,vi as z,wi as Me,xi as W,ye as ka,yi as ke}from"./chunk-67MGYJMT.js";import{Ab as Ad,Cb as bs,D as nd,Da as pd,E as D,Ea as hd,F as sd,Gd as Dd,Ha as fd,Ia as dd,Ja as md,La as Sa,M as fa,Ma as gd,N as uu,Nc as fu,O as Ue,Ob as ya,Oc as du,Pb as Ts,Qb as ks,Qd as be,R as Q,Rb as Mn,Rd as Pd,S as ve,Sc as wa,T as rd,Ta as mr,Tc as mu,Td as Md,Ua as vd,Uc as kd,Ud as Ld,V as id,Vb as wi,Vd as Rd,Wb as Ai,Wd as Aa,Ya as pu,Yb as xd,Z as da,_a as Sd,_b as Ea,a as E,ae as xa,b as ce,c as Yf,cb as yd,d as Kf,db as Pn,fd as Nd,ga as od,gd as Id,ge as Fd,ha as ad,hb as Ed,he as Bd,i as Jf,ia as ma,ja as ld,k as yi,ka as dr,kc as _d,la as Ae,le as _a,ma as ga,o as Zf,oa as Nt,ob as wd,pa as va,pb as fe,pc as xi,pe as Od,q as ed,qa as cd,rc as hu,re as gr,s as ha,sa as ue,ua as Y,ue as gu,va as he,vc as Cd,w as td,wa as Ei,wc as bd,xa as st,xc as Td,ya as b,z as j,za as ud}from"./chunk-NBSSJHNN.js";var Iv=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*
1)`,"g"),Or=class n{element=null;classNames=[];attrs=[];notSelectors=[];static parse(e){let t=[],s=(l,c)=>{c.notSelectors.length>0&&!c.element&&c.classNames.length==0&&c.attrs.length==0&&(c.element="*"),l.push(c)},r=new n,i,o=r,a=!1;for(Iv.lastIndex=0;i=Iv.exec(e);){if(i[1]){if(a)throw new Error("Nesting :not in a selector is not allowed");a=!0,o=new n,r.notSelectors.push(o)}let l=i[2];if(l){let p=i[3];p==="#"?o.addAttribute("id",l.slice(1)):p==="."?o.addClassName(l.slice(1)):o.setElement(l)}let c=i[4];if(c&&o.addAttribute(o.unescapeAttribute(c),i[6]),i[7]&&(a=!1,o=r),i[8]){if(a)throw new Error("Multiple selectors in :not are not supported");s(t,r),r=o=new n}}return s(t,r),t}unescapeAttribute(e){let t="",s=!1;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i==="\\"){s=!0;continue}if(i==="$"&&!s)throw new Error(`Error in attribute selector "${e}". Unescaped "$" is not supported. Please escape with "\\$".`);s=!1,t+=i}return t}escapeAttribute(e){return e.replace(/\\/g,"\\\\").replace(/\$/g,"\\$")}isElementSelector(){return this.hasElementSelector()&&this.classNames.length==0&&this.attrs.length==0&&this.notSelectors.length===0}hasElementSelector(){return!!this.element}
1setElement(e=null){this.element=e}getAttrs(){let e=[];return this.classNames.length>0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)}addAttribute(e,t=""){this.attrs.push(e,t&&t.toLowerCase()||"")}addClassName(e){this.classNames.push(e.toLowerCase())}toString(){let e=this.element||"";if(this.classNames&&this.classNames.forEach(t=>e+=`.${t}`),this.attrs)for(let t=0;t<this.attrs.length;t+=2){let s=this.escapeAttribute(this.attrs[t]),r=this.attrs[t+1];e+=`[${s}${r?"="+r:""}]`}return this.notSelectors.forEach(t=>e+=`:not(${t})`),e}},pl=class n{static createNotMatcher(e){let t=new n;return t.addSelectables(e,null),t}_elementMap=new Map;_elementPartialMap=new Map;_classMap=new Map;_classPartialMap=new Map;_attrValueMap=new Map;_attrValuePartialMap=new Map;_listContexts=[];addSelectables(e,t){let s=null;e.length>1&&(s=new np(e),this._listContexts.push(s));for(let r=0;r<e.length;r++)this._addSelectable(e[r],t,s)}_addSelectable(e,t,s){let r=this,i=e.element,o=e.classNames,a=e.attrs,l=new sp(e,t,s);if(i&&(a.length===0&&o.length===0?this._addTerminal(r._elementMap,i,l):r=this._addPartial(r._elementPartialMap,i)),o)for(let c=0;c<o.length;c++){let p=a.length===0&&c===o.length-1,h=o[c];p?this._addTerminal(r._classMap,h,l):r=this._addPartial(r._classPartialMap,h)}
1if(a)for(let c=0;c<a.length;c+=2){let p=c===a.length-2,h=a[c],f=a[c+1];if(p){let g=r._attrValueMap,m=g.get(h);m||(m=new Map,g.set(h,m)),this._addTerminal(m,f,l)}else{let g=r._attrValuePartialMap,m=g.get(h);m||(m=new Map,g.set(h,m)),r=this._addPartial(m,f)}}}_addTerminal(e,t,s){let r=e.get(t);r||(r=[],e.set(t,r)),r.push(s)}_addPartial(e,t){let s=e.get(t);return s||(s=new n,e.set(t,s)),s}match(e,t){let s=!1,r=e.element,i=e.classNames,o=e.attrs;for(let a=0;a<this._listContexts.length;a++)this._listContexts[a].alreadyMatched=!1;if(s=this._matchTerminal(this._elementMap,r,e,t)||s,s=this._matchPartial(this._elementPartialMap,r,e,t)||s,i)for(let a=0;a<i.length;a++){let l=i[a];s=this._matchTerminal(this._classMap,l,e,t)||s,s=this._matchPartial(this._classPartialMap,l,e,t)||s}if(o)for(let a=0;a<o.length;a+=2){let l=o[a],c=o[a+1],p=this._attrValueMap.get(l);c&&(s=this._matchTerminal(p,"",e,t)||s),s=this._matchTerminal(p,c,e,t)||s;let h=this._attrValuePartialMap.get(l);c&&(s=this._matchPartial(h,"",e,t)||s),s=this._matchPartial(h,c,e,t)||s}return s}_matchTerminal(e,t,s,r){if(!e||typeof t!="string")return!1;let i=e.get(t)||[],o=e.get("*");if(o&&(i=i.concat(o)),i.length===0)return!1;let a,l=!1;for(let c=0;c<i.length;c++)a=i[c],l=a.finalize(s,r)||l;return l}_matchPartial(e,t,s,r){if(!e||typeof t!="string")return!1;let i=e.get(t);return i?i.match(s,r):!1}},np=class{selectors;alreadyMatched=!1;constructor(e){this.selectors=e}},sp=class{selector;cbContext;listContext;notSelectors;constructor(e,t,s){this.selector=e,this.cbContext=t,this.listContext=s,this.notSelectors=e.notSelectors}finalize(e,t){let s=!0;return this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)&&(s=!pl.createNotMatcher(this.notSelectors).match(e,null)),s&&t&&(!this.listContext||!this.listContext.alreadyMatched)&&(this.listContext&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),s}},hl=class{registry;constructor(e){this.registry=e}match(e){return this.registry.has(e)?this.registry.get(e):[]}},se=(function(n){return n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL",n[n.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",n})(se||{}),ol,Dv="svg",vx="math";function Sx(){return ol||(ol={},Jn(se.HTML,void 0,[["iframe",["srcdoc"]],["*",["innerHTML","outerHTML"]]]),Jn(se.STYLE,void 0,[["*",["style"]]]),Jn(se.URL,void 0,[["*",["formAction"]],["area",["href"]],["a",["href","xlink:href"]],["form",["action"]],["img",["src"]],["video",["src"]]]),Jn(se.URL,vx,[["annotation",["href","xlink:href"]],["annotation-xml",["href","xlink:href"]],["maction",["href","xlink:href"]],["malignmark",["href","xlink:href"]],["math",["href","xlink:href"]],["mroot",["href","xlink:href"]],["msqrt",["href","xlink:href"]],["merror",["href","xlink:href"]],["mfrac",["href","xlink:href"]],["mglyph",["href","xlink:href"]],["msub",["href","xlink:href"]],["msup",["href","xlink:href"]],["msubsup",["href","xlink:href"]],["mmultiscripts",["href","xlink:href"]],["mprescripts",["href","xlink:href"]],["mi",["href","xlink:href"]],["mn",["href","xlink:href"]],["mo",["href","xlink:href"]],["mpadded",["href","xlink:href"]],["mphantom",["href","xlink:href"]],["mrow",["href","xlink:href"]],["ms",["href","xlink:href"]],["mspace",["href","xlink:href"]],["mstyle",["href","xlink:href"]],["mtable",["href","xlink:href"]],["mtd",["href","xlink:href"]],["mtr",["href","xlink:href"]],["mtext",["href","xlink:href"]],["mover",["href","xlink:href"]],["munder",["href","xlink:href"]],["munderover",["href","xlink:href"]],["semantics",["href","xlink:href"]],["none",["href","xlink:href"]]]),Jn(se.RESOURCE_URL,void 0,[["base",["href"]],["embed",["src"]],["frame",["src"]],["iframe",["src"]],["link",["href"]],["object",["codebase","data"]]]),Jn(se.URL,Dv,[["a",["href","xlink:href"]]]),Jn(se.ATTRIBUTE_NO_BINDING,Dv,[["animate",["attributeName","values","to","from"]],["set",["to","attributeName"]],["animateMotion",["attributeName"]],["animateTransform",["attributeName"]]]),Jn(se.ATTRIBUTE_NO_BINDING,void 0,[["unknown",["attributeName","values","to","from","sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority"]],["iframe",["sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority"]]])),ol}function Jn(n,e,t){for(let[s,r]of t){let i=e&&s!=="*"&&s!=="unknown"?`:${e}:${s}`:s;i=i.toLowerCase();for(let o of r)ol[`${i}|${o.toLowerCase()}`]=n}}
1var is=(function(n){return n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",n[n.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",n})(is||{}),Dh=(function(n){return n[n.OnPush=0]="OnPush",n[n.Default=1]="Default",n[n.Eager=1]="Eager",n})(Dh||{}),Ri=(function(n){return n[n.None=0]="None",n[n.SignalBased=1]="SignalBased",n[n.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",n})(Ri||{}),Pv={name:"custom-elements"},Mv={name:"no-errors-schema"};function yx(n){let e=n.classNames&&n.classNames.length?[8,...n.classNames]:[];return[n.element&&n.element!=="*"?n.element:"",...n.attrs,...e]}function Ex(n){let e=n.classNames&&n.classNames.length?[8,...n.classNames]:[];return n.element?[5,n.element,...n.attrs,...e]:n.attrs.length?[3,...n.attrs,...e]:n.classNames&&n.classNames.length?[9,...n.classNames]:[]}function wx(n){let e=yx(n),t=n.notSelectors&&n.notSelectors.length?n.notSelectors.map(s=>Ex(s)):[];return e.concat(...t)}function Ph(n){return n?Or.parse(n).map(wx):[]}var Rn=(function(n){return n[n.Directive=0]="Directive",n[n.Component=1]="Component",n[n.Injectable=2]="Injectable",n[n.Pipe=3]="Pipe",n[n.NgModule=4]="NgModule",n})(Rn||{});var fl;function Ax(n){return bx(Cx(n.nodes).join("")+`[${n.meaning}]`)}function xx(n){return n.id||Cy(n)}function Cy(n){let e=new rp,t=n.nodes.map(s=>s.visit(e,null));return by(t.join(""),n.meaning)}var dl=class{visitText(e,t){return e.value}visitContainer(e,t){return`[${e.children.map(s=>s.visit(this)).join(", ")}]`}visitIcu(e,t){let s=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.expression}, ${e.type}, ${s.join(", ")}}`}visitTagPlaceholder(e,t){return e.isVoid?`<ph tag name="${e.startName}"/>`:`<ph tag name="${e.startName}">${e.children.map(s=>s.visit(this)).join(", ")}</ph name="${e.closeName}">`}visitPlaceholder(e,t){return e.value?`<ph name="${e.name}">${e.value}</ph>`:`<ph name="${e.name}"/>`}visitIcuPlaceholder(e,t){return`<ph icu name="${e.name}">${e.value.visit(this)}</ph>`}visitBlockPlaceholder(e,t){return`<ph block name="${e.startName}">${e.children.map(s=>s.visit(this)).join(", ")}</ph name="${e.closeName}">`}},_x=new dl;function Cx(n){return n.map(e=>e.visit(_x,null))}var rp=class extends dl{visitIcu(e){let t=Object.keys(e.cases).map(s=>`${s} {${e.cases[s].visit(this)}}`);return`{${e.type}, ${t.join(", ")}}`}};function bx(n){fl??=new TextEncoder;let e=[...fl.encode(n)],t=Nx(e,Mh.Big),s=e.length*8,r=new Uint32Array(80),i=1732584193,o=4023233417,a=2562383102,l=271733878,c=3285377520;t[s>>5]|=128<<24-s%32,t[(s+64>>9<<4)+15]=s;for(let p=0;p<t.length;p+=16){let h=i,f=o,g=a,m=l,y=c;for(let x=0;x<80;x++){x<16?r[x]=t[p+x]:r[x]=Lu(r[x-3]^r[x-8]^r[x-14]^r[x-16],1);let _=Tx(x,o,a,l),T=_[0],F=_[1],w=[Lu(i,5),T,c,F,r[x]].reduce(wr);c=l,l=a,a=Lu(o,30),o=i,i=w}i=wr(i,h),o=wr(o,f),a=wr(a,g),l=wr(l,m),c=wr(c,y)}return Ci(i)+Ci(o)+Ci(a)+Ci(l)+Ci(c)}function Ci(n){return(n>>>0).toString(16).padStart(8,"0")}function Tx(n,e,t,s){return n<20?[e&t|~e&s,1518500249]:n<40?[e^t^s,1859775393]:n<60?[e&t|e&s|t&s,2400959708]:[e^t^s,3395469782]}function Lv(n){fl??=new TextEncoder;let e=fl.encode(n),t=new DataView(e.buffer,e.byteOffset,e.byteLength),s=Rv(t,e.length,0),r=Rv(t,e.length,102072);return s==0&&(r==0||r==1)&&(s=s^319790063,r=r^-1801410264),BigInt.asUintN(32,BigInt(s))<<BigInt(32)|BigInt.asUintN(32,BigInt(r))}function by(n,e=""){let t=Lv(n);return e&&(t=BigInt.asUintN(64,t<<BigInt(1))|t>>BigInt(63)&BigInt(1),t+=Lv(e)),BigInt.asUintN(63,t).toString()}function Rv(n,e,t){let s=2654435769,r=2654435769,i=0,o=e-12;for(;i<=o;i+=12){s+=n.getUint32(i,!0),r+=n.getUint32(i+4,!0),t+=n.getUint32(i+8,!0);let l=Fv(s,r,t);s=l[0],r=l[1],t=l[2]}let a=e-i;return t+=e,a>=4?(s+=n.getUint32(i,!0),i+=4,a>=8?(r+=n.getUint32(i,!0),i+=4,a>=9&&(t+=n.getUint8(i++)<<8),a>=10&&(t+=n.getUint8(i++)<<16),a===11&&(t+=n.getUint8(i++)<<24)):(a>=5&&(r+=n.getUint8(i++)),a>=6&&(r+=n.getUint8(i++)<<8),a===7&&(r+=n.getUint8(i++)<<16))):(a>=1&&(s+=n.getUint8(i++)),a>=2&&(s+=n.getUint8(i++)<<8),a===3&&(s+=n.getUint8(i++)<<16)),Fv(s,r,t)[2]}
1function Fv(n,e,t){return n-=e,n-=t,n^=t>>>13,e-=t,e-=n,e^=n<<8,t-=n,t-=e,t^=e>>>13,n-=e,n-=t,n^=t>>>12,e-=t,e-=n,e^=n<<16,t-=n,t-=e,t^=e>>>5,n-=e,n-=t,n^=t>>>3,e-=t,e-=n,e^=n<<10,t-=n,t-=e,t^=e>>>15,[n,e,t]}var Mh=(function(n){return n[n.Little=0]="Little",n[n.Big=1]="Big",n})(Mh||{});function wr(n,e){return kx(n,e)[1]}function kx(n,e){let t=(n&65535)+(e&65535),s=(n>>>16)+(e>>>16)+(t>>>16);return[s>>>16,s<<16|t&65535]}function Lu(n,e){return n<<e|n>>>32-e}function Nx(n,e){let t=n.length+3>>>2,s=[];for(let r=0;r<t;r++)s[r]=Ix(n,r*4,e);return s}function Bv(n,e){return e>=n.length?0:n[e]}function Ix(n,e,t){let s=0;if(t===Mh.Big)for(let r=0;r<4;r++)s+=Bv(n,e+r)<<24-8*r;else for(let r=0;r<4;r++)s+=Bv(n,e+r)<<8*r;return s}var Ty=(function(n){return n[n.None=0]="None",n[n.Const=1]="Const",n})(Ty||{}),ml=class{modifiers;constructor(e=Ty.None){this.modifiers=e}hasModifier(e){return(this.modifiers&e)!==0}},Hn=(function(n){return n[n.Dynamic=0]="Dynamic",n[n.Bool=1]="Bool",n[n.String=2]="String",n[n.Int=3]="Int",n[n.Number=4]="Number",n[n.Function=5]="Function",n[n.Inferred=6]="Inferred",n[n.None=7]="None",n})(Hn||{}),wn=class extends ml{name;constructor(e,t){super(t),this.name=e}visitType(e,t){return e.visitBuiltinType(this,t)}},Yt=class extends ml{value;typeParams;constructor(e,t,s=null){super(t),this.value=e,this.typeParams=s}visitType(e,t){return e.visitExpressionType(this,t)}};var wt=new wn(Hn.Dynamic),tn=new wn(Hn.Inferred),Dx=new wn(Hn.Bool),QP=new wn(Hn.Int),Gs=new wn(Hn.Number),Lh=new wn(Hn.String),YP=new wn(Hn.Function),An=new wn(Hn.None),Yi=(function(n){return n[n.Minus=0]="Minus",n[n.Plus=1]="Plus",n})(Yi||{}),C=(function(n){return n[n.Equals=0]="Equals",n[n.NotEquals=1]="NotEquals",n[n.Assign=2]="Assign",n[n.Identical=3]="Identical",n[n.NotIdentical=4]="NotIdentical",n[n.Minus=5]="Minus",n[n.Plus=6]="Plus",n[n.Divide=7]="Divide",n[n.Multiply=8]="Multiply",n[n.Modulo=9]="Modulo",n[n.And=10]="And",n[n.Or=11]="Or",n[n.BitwiseOr=12]="BitwiseOr",n[n.BitwiseAnd=13]="BitwiseAnd",n[n.Lower=14]="Lower",n[n.LowerEquals=15]="LowerEquals",n[n.Bigger=16]="Bigger",n[n.BiggerEquals=17]="BiggerEquals",n[n.NullishCoalesce=18]="NullishCoalesce",n[n.Exponentiation=19]="Exponentiation",n[n.In=20]="In",n[n.InstanceOf=21]="InstanceOf",n[n.AdditionAssignment=22]="AdditionAssignment",n[n.SubtractionAssignment=23]="SubtractionAssignment",n[n.MultiplicationAssignment=24]="MultiplicationAssignment",n[n.DivisionAssignment=25]="DivisionAssignment",n[n.RemainderAssignment=26]="RemainderAssignment",n[n.ExponentiationAssignment=27]="ExponentiationAssignment",n[n.AndAssignment=28]="AndAssignment",n[n.OrAssignment=29]="OrAssignment",n[n.NullishCoalesceAssignment=30]="NullishCoalesceAssignment",n})(C||{});function Px(n,e){return n==null||e==null?n==e:n.isEquivalent(e)}function ky(n,e,t){let s=n.length;if(s!==e.length)return!1;for(let r=0;r<s;r++)if(!t(n[r],e[r]))return!1;return!0}function Rt(n,e){return ky(n,e,(t,s)=>t.isEquivalent(s))}var pe=class{type;sourceSpan;constructor(e,t){this.type=e||null,this.sourceSpan=t||null}prop(e,t){return new Ft(this,e,null,t)}key(e,t,s){return new Un(this,e,t,s)}callFn(e,t,s){return new At(this,e,null,t,s)}instantiate(e,t,s){return new Ji(this,e,t,s)}conditional(e,t=null,s){return new xn(this,e,t,null,s)}equals(e,t){return new ie(C.Equals,this,e,null,t)}notEquals(e,t){return new ie(C.NotEquals,this,e,null,t)}identical(e,t){return new ie(C.Identical,this,e,null,t)}notIdentical(e,t){return new ie(C.NotIdentical,this,e,null,t)}minus(e,t){return new ie(C.Minus,this,e,null,t)}plus(e,t){return new ie(C.Plus,this,e,null,t)}divide(e,t){return new ie(C.Divide,this,e,null,t)}multiply(e,t){return new ie(C.Multiply,this,e,null,t)}modulo(e,t){return new ie(C.Modulo,this,e,null,t)}power(e,t){return new ie(C.Exponentiation,this,e,null,t)}and(e,t){return new ie(C.And,this,e,null,t)}bitwiseOr(e,t){return new ie(C.BitwiseOr,this,e,null,t)}bitwiseAnd(e,t){return new ie(C.BitwiseAnd,this,e,null,t)}or(e,t){return new ie(C.Or,this,e,null,t)}lower(e,t){return new ie(C.Lower,this,e,null,t)}lowerEquals(e,t){return new ie(C.LowerEquals,this,e,null,t)}bigger(e,t){return new ie(C.Bigger,this,e,null,t)}biggerEquals(e,t){return new ie(C.BiggerEquals,this,e,null,t)}isBlank(e){return this.equals(Bx,e)}nullishCoalesce(e,t){return new ie(C.NullishCoalesce,this,e,null,t)}toStmt(){return new et(this,null)}},nn=class n extends pe{name;constructor(e,t,s){super(t,s),this.name=e}isEquivalent(e){return e instanceof n&&this.name===e.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadVarExpr(this,t)}clone(){return new n(this.name,this.type,this.sourceSpan)}set(e){return new ie(C.Assign,this,e,null,this.sourceSpan)}},$r=class n extends pe{expr;constructor(e,t,s){super(t,s),this.expr=e}visitExpression(e,t){return e.visitTypeofExpr(this,t)}isEquivalent(e){return e instanceof n&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new n(this.expr.clone())}},gl=class n extends pe{expr;constructor(e,t,s){super(t,s),this.expr=e}visitExpression(e,t){return e.visitVoidExpr(this,t)}isEquivalent(e){return e instanceof n&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new n(this.expr.clone())}},ne=class n extends pe{node;constructor(e,t,s){super(t,s),this.node=e}isEquivalent(e){return e instanceof n&&this.node===e.node}isConstant(){return!1}visitExpression(e,t){return e.visitWrappedNodeExpr(this,t)}clone(){return new n(this.node,this.type,this.sourceSpan)}},At=class n extends pe{fn;args;pure;constructor(e,t,s,r,i=!1){super(s,r),this.fn=e,this.args=t,this.pure=i}get receiver(){return this.fn}isEquivalent(e){return e instanceof n&&this.fn.isEquivalent(e.fn)&&Rt(this.args,e.args)&&this.pure===e.pure}isConstant(){return!1}visitExpression(e,t){return e.visitInvokeFunctionExpr(this,t)}clone(){return new n(this.fn.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan,this.pure)}},Ki=class n extends pe{tag;template;constructor(e,t,s,r){super(s,r),this.tag=e,this.template=t}isEquivalent(e){return e instanceof n&&this.tag.isEquivalent(e.tag)&&this.template.isEquivalent(e.template)}isConstant(){return!1}visitExpression(e,t){return e.visitTaggedTemplateLiteralExpr(this,t)}clone(){return new n(this.tag.clone(),this.template.clone(),this.type,this.sourceSpan)}},Ji=class n extends pe{classExpr;args;constructor(e,t,s,r){super(s,r),this.classExpr=e,this.args=t}isEquivalent(e){return e instanceof n&&this.classExpr.isEquivalent(e.classExpr)&&Rt(this.args,e.args)}isConstant(){return!1}visitExpression(e,t){return e.visitInstantiateExpr(this,t)}clone(){return new n(this.classExpr.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan)}},Ur=class n extends pe{body;flags;constructor(e,t,s){super(null,s),this.body=e,this.flags=t}isEquivalent(e){return e instanceof n&&this.body===e.body&&this.flags===e.flags}isConstant(){return!0}visitExpression(e,t){return e.visitRegularExpressionLiteral(this,t)}clone(){return new n(this.body,this.flags,this.sourceSpan)}},Ze=class n extends pe{value;constructor(e,t,s){super(t,s),this.value=e}isEquivalent(e){return e instanceof n&&this.value===e.value}isConstant(){return!0}visitExpression(e,t){return e.visitLiteralExpr(this,t)}clone(){return new n(this.value,this.type,this.sourceSpan)}},Zi=class n extends pe{elements;expressions;constructor(e,t,s){super(null,s),this.elements=e,this.expressions=t}isEquivalent(e){return e instanceof n&&ky(this.elements,e.elements,(t,s)=>t.text===s.text)&&Rt(this.expressions,e.expressions)}isConstant(){return!1}visitExpression(e,t){return e.visitTemplateLiteralExpr(this,t)}clone(){return new n(this.elements.map(e=>e.clone()),this.expressions.map(e=>e.clone()))}},vl=class n extends pe{text;rawText;constructor(e,t,s){super(Lh,t),this.text=e,this.rawText=s??ip(al(e))}visitExpression(e,t){return e.visitTemplateLiteralElementExpr(this,t)}isEquivalent(e){return e instanceof n&&e.text===this.text&&e.rawText===this.rawText}isConstant(){return!0}clone(){return new n(this.text,this.sourceSpan,this.rawText)}},$s=class{text;sourceSpan;constructor(e,t){this.text=e,this.sourceSpan=t}},Rr=class{text;sourceSpan;associatedMessage;constructor(e,t,s){this.text=e,this.sourceSpan=t,this.associatedMessage=s}},Mx="|",Ov="@@",Lx="\u241F",Sl=class n extends pe{metaBlock;messageParts;placeHolderNames;expressions;constructor(e,t,s,r,i){super(Lh,i),this.metaBlock=e,this.messageParts=t,this.placeHolderNames=s,this.expressions=r}isEquivalent(e){return!1}isConstant(){return!1}visitExpression(e,t){return e.visitLocalizedString(this,t)}clone(){return new n(this.metaBlock,this.messageParts,this.placeHolderNames,this.expressions.map(e=>e.clone()),this.sourceSpan)}serializeI18nHead(){let e=this.metaBlock.description||"";return this.metaBlock.meaning&&(e=`${this.metaBlock.meaning}${Mx}${e}`),this.metaBlock.customId&&(e=`${e}${Ov}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(t=>{e=`${e}${Lx}${t}`}),$v(e,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}getMessagePartSourceSpan(e){return this.messageParts[e]?.sourceSpan??this.sourceSpan}
1getPlaceholderSourceSpan(e){return this.placeHolderNames[e]?.sourceSpan??this.expressions[e]?.sourceSpan??this.sourceSpan}serializeI18nTemplatePart(e){let t=this.placeHolderNames[e-1],s=this.messageParts[e],r=t.text;return t.associatedMessage?.legacyIds.length===0&&(r+=`${Ov}${by(t.associatedMessage.messageString,t.associatedMessage.meaning)}`),$v(r,s.text,this.getMessagePartSourceSpan(e))}},al=n=>n.replace(/\\/g,"\\\\"),Rx=n=>n.replace(/^:/,"\\:"),Fx=n=>n.replace(/:/g,"\\:"),ip=n=>n.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function $v(n,e,t){return n===""?{cooked:e,raw:ip(Rx(al(e))),range:t}:{cooked:`:${n}:${e}`,raw:ip(`:${Fx(al(n))}:${al(e)}`),range:t}}var Xs=class n extends pe{value;typeParams;constructor(e,t,s=null,r){super(t,r),this.value=e,this.typeParams=s}isEquivalent(e){return e instanceof n&&this.value.name===e.value.name&&this.value.moduleName===e.value.moduleName}isConstant(){return!1}visitExpression(e,t){return e.visitExternalExpr(this,t)}clone(){return new n(this.value,this.type,this.typeParams,this.sourceSpan)}};var xn=class n extends pe{condition;falseCase;trueCase;constructor(e,t,s=null,r,i){super(r||t.type,i),this.condition=e,this.falseCase=s,this.trueCase=t}isEquivalent(e){return e instanceof n&&this.condition.isEquivalent(e.condition)&&this.trueCase.isEquivalent(e.trueCase)&&Px(this.falseCase,e.falseCase)}isConstant(){return!1}visitExpression(e,t){return e.visitConditionalExpr(this,t)}clone(){return new n(this.condition.clone(),this.trueCase.clone(),this.falseCase?.clone(),this.type,this.sourceSpan)}};var eo=class n extends pe{condition;constructor(e,t){super(Dx,t),this.condition=e}isEquivalent(e){return e instanceof n&&this.condition.isEquivalent(e.condition)}isConstant(){return!1}visitExpression(e,t){return e.visitNotExpr(this,t)}clone(){return new n(this.condition.clone(),this.sourceSpan)}},Oe=class n{name;type;constructor(e,t=null){this.name=e,this.type=t}isEquivalent(e){return this.name===e.name}clone(){return new n(this.name,this.type)}},cs=class n extends pe{params;statements;name;constructor(e,t,s,r,i){super(s,r),this.params=e,this.statements=t,this.name=i}isEquivalent(e){return(e instanceof n||e instanceof to)&&Rt(this.params,e.params)&&Rt(this.statements,e.statements)}isConstant(){return!1}visitExpression(e,t){return e.visitFunctionExpr(this,t)}toDeclStmt(e,t){return new to(e,this.params,this.statements,this.type,t,this.sourceSpan)}clone(){return new n(this.params.map(e=>e.clone()),this.statements,this.type,this.sourceSpan,this.name)}},lr=class op extends pe{params;body;constructor(e,t,s,r){super(s,r),this.params=e,this.body=t}isEquivalent(e){return!(e instanceof op)||!Rt(this.params,e.params)?!1:this.body instanceof pe&&e.body instanceof pe?this.body.isEquivalent(e.body):Array.isArray(this.body)&&Array.isArray(e.body)?Rt(this.body,e.body):!1}isConstant(){return!1}visitExpression(e,t){return e.visitArrowFunctionExpr(this,t)}clone(){return new op(this.params.map(e=>e.clone()),Array.isArray(this.body)?this.body:this.body.clone(),this.type,this.sourceSpan)}toDeclStmt(e,t){return new je(e,this,tn,t,this.sourceSpan)}},Qs=class n extends pe{operator;expr;parens;constructor(e,t,s,r,i=!0){super(s||Gs,r),this.operator=e,this.expr=t,this.parens=i}isEquivalent(e){return e instanceof n&&this.operator===e.operator&&this.expr.isEquivalent(e.expr)}isConstant(){return!1}visitExpression(e,t){return e.visitUnaryOperatorExpr(this,t)}clone(){return new n(this.operator,this.expr.clone(),this.type,this.sourceSpan,this.parens)}},sn=class n extends pe{expr;constructor(e,t,s){super(t,s),this.expr=e}visitExpression(e,t){return e.visitParenthesizedExpr(this,t)}isEquivalent(e){return e instanceof n&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new n(this.expr.clone())}},ie=class n extends pe{operator;rhs;lhs;constructor(e,t,s,r,i){super(r||t.type,i),this.operator=e,this.rhs=s,this.lhs=t}isEquivalent(e){return e instanceof n&&this.operator===e.operator&&this.lhs.isEquivalent(e.lhs)&&this.rhs.isEquivalent(e.rhs)}isConstant(){return!1}visitExpression(e,t){return e.visitBinaryOperatorExpr(this,t)}clone(){return new n(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan)}isAssignment(){let e=this.operator;return e===C.Assign||e===C.AdditionAssignment||e===C.SubtractionAssignment||e===C.MultiplicationAssignment||e===C.DivisionAssignment||e===C.RemainderAssignment||e===C.ExponentiationAssignment||e===C.AndAssignment||e===C.OrAssignment||e===C.NullishCoalesceAssignment}},Ft=class n extends pe{receiver;name;constructor(e,t,s,r){super(s,r),this.receiver=e,this.name=t}get index(){return this.name}isEquivalent(e){return e instanceof n&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadPropExpr(this,t)}set(e){return new ie(C.Assign,this.receiver.prop(this.name),e,null,this.sourceSpan)}clone(){return new n(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},Un=class n extends pe{receiver;index;constructor(e,t,s,r){super(s,r),this.receiver=e,this.index=t}isEquivalent(e){return e instanceof n&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)}isConstant(){return!1}visitExpression(e,t){return e.visitReadKeyExpr(this,t)}set(e){return new ie(C.Assign,this.receiver.key(this.index),e,null,this.sourceSpan)}clone(){return new n(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},_n=class n extends pe{entries;constructor(e,t,s){super(t,s),this.entries=e}isConstant(){return this.entries.every(e=>e.isConstant())}isEquivalent(e){return e instanceof n&&Rt(this.entries,e.entries)}visitExpression(e,t){return e.visitLiteralArrayExpr(this,t)}clone(){return new n(this.entries.map(e=>e.clone()),this.type,this.sourceSpan)}},Vr=class n{key;value;quoted;constructor(e,t,s){this.key=e,this.value=t,this.quoted=s}isEquivalent(e){return this.key===e.key&&this.value.isEquivalent(e.value)}clone(){return new n(this.key,this.value.clone(),this.quoted)}isConstant(){return this.value.isConstant()}},us=class n{expression;constructor(e){this.expression=e}isEquivalent(e){return e instanceof n&&this.expression.isEquivalent(e.expression)}clone(){return new n(this.expression.clone())}isConstant(){return this.expression.isConstant()}},rn=class n extends pe{entries;valueType=null;constructor(e,t,s){super(t,s),this.entries=e,t&&(this.valueType=t.valueType)}isEquivalent(e){return e instanceof n&&Rt(this.entries,e.entries)}isConstant(){return this.entries.every(e=>e.isConstant())}visitExpression(e,t){return e.visitLiteralMapExpr(this,t)}clone(){let e=this.entries.map(t=>t.clone());return new n(e,this.type,this.sourceSpan)}};var Ys=class n extends pe{expression;constructor(e,t){super(null,t),this.expression=e}isEquivalent(e){return e instanceof n&&this.expression.isEquivalent(e.expression)}isConstant(){return this.expression.isConstant()}visitExpression(e,t){return e.visitSpreadElementExpr(this,t)}clone(){return new n(this.expression.clone(),this.sourceSpan)}},qr=new Ze(null,null,null),Bx=new Ze(null,tn,null),Ke=(function(n){return n[n.None=0]="None",n[n.Final=1]="Final",n[n.Private=2]="Private",n[n.Exported=4]="Exported",n[n.Static=8]="Static",n})(Ke||{}),ap=class{text;multiline;trailingNewline;constructor(e,t,s){this.text=e,this.multiline=t,this.trailingNewline=s}toString(){return this.multiline?` ${this.text} `:this.text}},yl=class extends ap{tags;constructor(e){super("",!0,!0),this.tags=e}toString(){return qx(this.tags)}},Ks=class{modifiers;sourceSpan;leadingComments;constructor(e=Ke.None,t=null,s){this.modifiers=e,this.sourceSpan=t,this.leadingComments=s}hasModifier(e){return(this.modifiers&e)!==0}
1addLeadingComment(e){this.leadingComments=this.leadingComments??[],this.leadingComments.push(e)}},je=class n extends Ks{name;value;type;constructor(e,t,s,r,i,o){super(r,i,o),this.name=e,this.value=t,this.type=s||t&&t.type||null}isEquivalent(e){return e instanceof n&&this.name===e.name&&(this.value?!!e.value&&this.value.isEquivalent(e.value):!e.value)}visitStatement(e,t){return e.visitDeclareVarStmt(this,t)}},to=class n extends Ks{name;params;statements;type;constructor(e,t,s,r,i,o,a){super(i,o,a),this.name=e,this.params=t,this.statements=s,this.type=r||null}isEquivalent(e){return e instanceof n&&Rt(this.params,e.params)&&Rt(this.statements,e.statements)}visitStatement(e,t){return e.visitDeclareFunctionStmt(this,t)}},et=class n extends Ks{expr;constructor(e,t,s){super(Ke.None,t,s),this.expr=e}isEquivalent(e){return e instanceof n&&this.expr.isEquivalent(e.expr)}visitStatement(e,t){return e.visitExpressionStmt(this,t)}},$e=class n extends Ks{value;constructor(e,t=null,s){super(Ke.None,t,s),this.value=e}isEquivalent(e){return e instanceof n&&this.value.isEquivalent(e.value)}visitStatement(e,t){return e.visitReturnStmt(this,t)}},El=class n extends Ks{condition;trueCase;falseCase;constructor(e,t,s=[],r,i){super(Ke.None,r,i),this.condition=e,this.trueCase=t,this.falseCase=s}isEquivalent(e){return e instanceof n&&this.condition.isEquivalent(e.condition)&&Rt(this.trueCase,e.trueCase)&&Rt(this.falseCase,e.falseCase)}visitStatement(e,t){return e.visitIfStmt(this,t)}};function Ox(n=[]){return new yl(n)}function te(n,e,t){return new nn(n,e,t)}function I(n,e=null,t){return new Xs(n,null,e,t)}function Je(n,e,t){return new Yt(n,e,t)}function Qo(n){return new $r(n)}function me(n,e,t){return new _n(n,e,t)}function Kt(n,e=null){return new rn(n.map(t=>new Vr(t.key,t.value,t.quoted)),e,null)}function $x(n,e){return new eo(n,e)}function ps(n,e,t,s,r){return new cs(n,e,t,s,r)}function Bt(n,e,t,s){return new lr(n,e,t,s)}function yc(n,e,t,s,r){return new El(n,e,t,s,r)}function Ux(n,e,t,s){return new Ki(n,e,t,s)}function S(n,e,t){return new Ze(n,e,t)}function Vx(n,e,t,s,r){return new Sl(n,e,t,s,r)}function Uv(n){let e="";if(n.tagName&&(e+=` @${n.tagName}`),n.text){if(n.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');e+=" "+n.text.replace(/@/g,"\\@")}return e}function qx(n){if(n.length===0)return"";if(n.length===1&&n[0].tagName&&!n[0].text)return`*${Uv(n[0])} `;let e=`* 2`;for(let t of n)e+=" *",e+=Uv(t).replace(/\n/g,` 3 * `),e+=` 4`;return e+=" ",e}var Hx="_c",jx={},zx=50,wl=class n extends pe{resolved;original;shared=!1;constructor(e){super(e.type),this.resolved=e,this.original=e}visitExpression(e,t){return t===jx?this.original.visitExpression(e,t):this.resolved.visitExpression(e,t)}isEquivalent(e){return e instanceof n&&this.resolved.isEquivalent(e.resolved)}isConstant(){return!0}clone(){throw new Error("Not supported.")}fixup(e){this.resolved=e,this.shared=!0}},Al=class{isClosureCompilerEnabled;statements=[];literals=new Map;literalFactories=new Map;sharedConstants=new Map;_claimedNames=new Map;nextNameIndex=0;constructor(e=!1){this.isClosureCompilerEnabled=e}getConstLiteral(e,t){if(e instanceof Ze&&!Vv(e)||e instanceof wl)return e;let s=no.INSTANCE.keyOf(e),r=this.literals.get(s),i=!1;if(r||(r=new wl(e),this.literals.set(s,r),i=!0),!i&&!r.shared||i&&t){let o=this.freshName(),a,l;this.isClosureCompilerEnabled&&Vv(e)?(a=new cs([],[new $e(e)]),l=te(o).callFn([])):(a=e,l=te(o)),this.statements.push(new je(o,a,tn,Ke.Final)),r.fixup(l)}return r}getSharedConstant(e,t){let s=e.keyOf(t);if(!this.sharedConstants.has(s)){let r=this.freshName();this.sharedConstants.set(s,te(r)),this.statements.push(e.toSharedConstantDeclaration(r,t))}return this.sharedConstants.get(s)}getSharedFunctionReference(e,t,s=!0){let r=e instanceof lr;for(let o of this.statements)if(r&&o instanceof je&&o.value?.isEquivalent(e)||!r&&o instanceof to&&e instanceof cs&&e.isEquivalent(o))return te(o.name);let i=s?this.uniqueName(t):t;return this.statements.push(e instanceof cs?e.toDeclStmt(i,Ke.Final):new je(i,e,tn,Ke.Final,e.sourceSpan)),te(i)}uniqueName(e,t=!0){let s=this._claimedNames.get(e)??0,r=s===0&&!t?`${e}`:`${e}${s}`;return this._claimedNames.set(e,s+1),r}freshName(){return this.uniqueName(Hx)}},no=class n{static INSTANCE=new n;keyOf(e){if(e instanceof Ze&&typeof e.value=="string")return`"${e.value}"`;if(e instanceof Ze)return String(e.value);if(e instanceof Ur)return`/${e.body}
4/${e.flags??""}`;if(e instanceof _n){let t=[];for(let s of e.entries)t.push(this.keyOf(s));return`[${t.join(",")}]`}else if(e instanceof rn){let t=[];for(let s of e.entries)if(s instanceof us)t.push("..."+this.keyOf(s.expression));else{let r=s.key;s.quoted&&(r=`"${r}"`),t.push(r+":"+this.keyOf(s.value))}return`{${t.join(",")}}`}else{if(e instanceof Xs)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof nn)return`read(${e.name})`;if(e instanceof $r)return`typeof(${this.keyOf(e.expr)})`;if(e instanceof Ys)return`...${this.keyOf(e.expression)}`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}};function Vv(n){return n instanceof Ze&&typeof n.value=="string"&&n.value.length>=zx}var v="@angular/core",d=(()=>{class n{static core={name:null,moduleName:v};static namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:v};static namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:v};static namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:v};static element={name:"\u0275\u0275element",moduleName:v};static elementStart={name:"\u0275\u0275elementStart",moduleName:v};static elementEnd={name:"\u0275\u0275elementEnd",moduleName:v};static domElement={name:"\u0275\u0275domElement",moduleName:v};static domElementStart={name:"\u0275\u0275domElementStart",moduleName:v};static domElementEnd={name:"\u0275\u0275domElementEnd",moduleName:v};static domElementContainer={name:"\u0275\u0275domElementContainer",moduleName:v};static domElementContainerStart={name:"\u0275\u0275domElementContainerStart",moduleName:v};static domElementContainerEnd={name:"\u0275\u0275domElementContainerEnd",moduleName:v};static domTemplate={name:"\u0275\u0275domTemplate",moduleName:v};static domListener={name:"\u0275\u0275domListener",moduleName:v};static advance={name:"\u0275\u0275advance",moduleName:v};static syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:v};static syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:v};static attribute={name:"\u0275\u0275attribute",moduleName:v};static classProp={name:"\u0275\u0275classProp",moduleName:v};static elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:v};static elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:v};static elementContainer={name:"\u0275\u0275elementContainer",moduleName:v};static styleMap={name:"\u0275\u0275styleMap",moduleName:v};static classMap={name:"\u0275\u0275classMap",moduleName:v};static styleProp={name:"\u0275\u0275styleProp",moduleName:v};static interpolate={name:"\u0275\u0275interpolate",moduleName:v};static interpolate1={name:"\u0275\u0275interpolate1",moduleName:v};static interpolate2={name:"\u0275\u0275interpolate2",moduleName:v};static interpolate3={name:"\u0275\u0275interpolate3",moduleName:v};static interpolate4={name:"\u0275\u0275interpolate4",moduleName:v};static interpolate5={name:"\u0275\u0275interpolate5",moduleName:v};static interpolate6={name:"\u0275\u0275interpolate6",moduleName:v};static interpolate7={name:"\u0275\u0275interpolate7",moduleName:v};static interpolate8={name:"\u0275\u0275interpolate8",moduleName:v};static interpolateV={name:"\u0275\u0275interpolateV",moduleName:v};static nextContext={name:"\u0275\u0275nextContext",moduleName:v};static resetView={name:"\u0275\u0275resetView",moduleName:v};static templateCreate={name:"\u0275\u0275template",moduleName:v};static defer={name:"\u0275\u0275defer",moduleName:v};static deferWhen={name:"\u0275\u0275deferWhen",moduleName:v};static deferOnIdle={name:"\u0275\u0275deferOnIdle",moduleName:v};static deferOnImmediate={name:"\u0275\u0275deferOnImmediate",moduleName:v};static deferOnTimer={name:"\u0275\u0275deferOnTimer",moduleName:v};static deferOnHover={name:"\u0275\u0275deferOnHover",moduleName:v};static deferOnInteraction={name:"\u0275\u0275deferOnInteraction",moduleName:v};static deferOnViewport={name:"\u0275\u0275deferOnViewport",moduleName:v};static deferPrefetchWhen={name:"\u0275\u0275deferPrefetchWhen",moduleName:v};static deferPrefetchOnIdle={name:"\u0275\u0275deferPrefetchOnIdle",moduleName:v};static deferPrefetchOnImmediate={name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:v};static deferPrefetchOnTimer={name:"\u0275\u0275deferPrefetchOnTimer",moduleName:v};static deferPrefetchOnHover={name:"\u0275\u0275deferPrefetchOnHover",moduleName:v};static deferPrefetchOnInteraction={name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:v};static deferPrefetchOnViewport={name:"\u0275\u0275deferPrefetchOnViewport",moduleName:v};static deferHydrateWhen={name:"\u0275\u0275deferHydrateWhen",moduleName:v};static deferHydrateNever={name:"\u0275\u0275deferHydrateNever",moduleName:v};static deferHydrateOnIdle={name:"\u0275\u0275deferHydrateOnIdle",moduleName:v};static deferHydrateOnImmediate={name:"\u0275\u0275deferHydrateOnImmediate",moduleName:v};static deferHydrateOnTimer={name:"\u0275\u0275deferHydrateOnTimer",moduleName:v};static deferHydrateOnHover={name:"\u0275\u0275deferHydrateOnHover",moduleName:v};static deferHydrateOnInteraction={name:"\u0275\u0275deferHydrateOnInteraction",moduleName:v};static deferHydrateOnViewport={name:"\u0275\u0275deferHydrateOnViewport",moduleName:v};static deferEnableTimerScheduling={name:"\u0275\u0275deferEnableTimerScheduling",moduleName:v};static conditionalCreate={name:"\u0275\u0275conditionalCreate",moduleName:v};static conditionalBranchCreate={name:"\u0275\u0275conditionalBranchCreate",moduleName:v};static conditional={name:"\u0275\u0275conditional",moduleName:v};static repeater={name:"\u0275\u0275repeater",moduleName:v};static repeaterCreate={name:"\u0275\u0275repeaterCreate",moduleName:v};static repeaterTrackByIndex={name:"\u0275\u0275repeaterTrackByIndex",moduleName:v};static repeaterTrackByIdentity={name:"\u0275\u0275repeaterTrackByIdentity",moduleName:v};static componentInstance={name:"\u0275\u0275componentInstance",moduleName:v};static text={name:"\u0275\u0275text",moduleName:v};static enableBindings={name:"\u0275\u0275enableBindings",moduleName:v};static disableBindings={name:"\u0275\u0275disableBindings",moduleName:v};static getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:v};static textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:v};static textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:v};static textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:v};static textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:v};static textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:v};static textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:v};static textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:v};static textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:v};static textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:v};static textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:v};static restoreView={name:"\u0275\u0275restoreView",moduleName:v};static pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:v};static pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:v};static pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:v};static pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:v};static pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:v};static pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:v};static pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:v};static pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:v};static pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:v};static pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:v};static pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:v};static pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:v};static pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:v};static pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:v};static pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:v};static domProperty={name:"\u0275\u0275domProperty",moduleName:v};static ariaProperty={name:"\u0275\u0275ariaProperty",moduleName:v};static property={name:"\u0275\u0275property",moduleName:v};static control={name:"\u0275\u0275control",moduleName:v};static controlCreate={name:"\u0275\u0275controlCreate",moduleName:v};static animationEnterListener={name:"\u0275\u0275animateEnterListener",moduleName:v};static animationLeaveListener={name:"\u0275\u0275animateLeaveListener",moduleName:v};static animationEnter={name:"\u0275\u0275animateEnter",moduleName:v};static animationLeave={name:"\u0275\u0275animateLeave",moduleName:v};
4static i18n={name:"\u0275\u0275i18n",moduleName:v};static i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:v};static i18nExp={name:"\u0275\u0275i18nExp",moduleName:v};static i18nStart={name:"\u0275\u0275i18nStart",moduleName:v};static i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:v};static i18nApply={name:"\u0275\u0275i18nApply",moduleName:v};static i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:v};static pipe={name:"\u0275\u0275pipe",moduleName:v};static projection={name:"\u0275\u0275projection",moduleName:v};static projectionDef={name:"\u0275\u0275projectionDef",moduleName:v};static reference={name:"\u0275\u0275reference",moduleName:v};static inject={name:"\u0275\u0275inject",moduleName:v};static injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:v};static directiveInject={name:"\u0275\u0275directiveInject",moduleName:v};static invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:v};static invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:v};static templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:v};static forwardRef={name:"forwardRef",moduleName:v};static resolveForwardRef={name:"resolveForwardRef",moduleName:v};static replaceMetadata={name:"\u0275\u0275replaceMetadata",moduleName:v};static getReplaceMetadataURL={name:"\u0275\u0275getReplaceMetadataURL",moduleName:v};static \u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:v};static declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:v};static InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:v};static resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:v};static resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:v};static resolveBody={name:"\u0275\u0275resolveBody",moduleName:v};static getComponentDepsFactory={name:"\u0275\u0275getComponentDepsFactory",moduleName:v};static defineComponent={name:"\u0275\u0275defineComponent",moduleName:v};static declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:v};static setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:v};static ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:v};static ViewEncapsulation={name:"ViewEncapsulation",moduleName:v};static ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:v};static FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:v};static declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:v};static FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:v};static defineDirective={name:"\u0275\u0275defineDirective",moduleName:v};static declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:v};static DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:v};static InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:v};static InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:v};static defineInjector={name:"\u0275\u0275defineInjector",moduleName:v};static declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:v};static NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:v};static ModuleWithProviders={name:"ModuleWithProviders",moduleName:v};static defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:v};static declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:v};static setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:v};static registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:v};static PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:v};static definePipe={name:"\u0275\u0275definePipe",moduleName:v};static declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:v};static declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:v};static declareClassMetadataAsync={name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:v};static setClassMetadata={name:"\u0275setClassMetadata",moduleName:v};static setClassMetadataAsync={name:"\u0275setClassMetadataAsync",moduleName:v};static setClassDebugInfo={name:"\u0275setClassDebugInfo",moduleName:v};static queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:v};static viewQuery={name:"\u0275\u0275viewQuery",moduleName:v};static loadQuery={name:"\u0275\u0275loadQuery",moduleName:v};static contentQuery={name:"\u0275\u0275contentQuery",moduleName:v};static viewQuerySignal={name:"\u0275\u0275viewQuerySignal",moduleName:v};static contentQuerySignal={name:"\u0275\u0275contentQuerySignal",moduleName:v};static queryAdvance={name:"\u0275\u0275queryAdvance",moduleName:v};static twoWayProperty={name:"\u0275\u0275twoWayProperty",moduleName:v};static twoWayBindingSet={name:"\u0275\u0275twoWayBindingSet",moduleName:v};static twoWayListener={name:"\u0275\u0275twoWayListener",moduleName:v};static declareLet={name:"\u0275\u0275declareLet",moduleName:v};static storeLet={name:"\u0275\u0275storeLet",moduleName:v};static readContextLet={name:"\u0275\u0275readContextLet",moduleName:v};static arrowFunction={name:"\u0275\u0275arrowFunction",moduleName:v};static attachSourceLocations={name:"\u0275\u0275attachSourceLocations",moduleName:v};static NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:v};static ControlFeature={name:"\u0275\u0275ControlFeature",moduleName:v};static InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:v};static ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:v};static HostDirectivesFeature={name:"\u0275\u0275HostDirectivesFeature",moduleName:v};static ExternalStylesFeature={name:"\u0275\u0275ExternalStylesFeature",moduleName:v};static listener={name:"\u0275\u0275listener",moduleName:v};
4static getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:v};static sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:v};static sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:v};static validateAttribute={name:"\u0275\u0275validateAttribute",moduleName:v};static sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:v};static sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:v};static sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:v};static sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:v};static trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:v};static trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:v};static inputDecorator={name:"Input",moduleName:v};static outputDecorator={name:"Output",moduleName:v};static viewChildDecorator={name:"ViewChild",moduleName:v};static viewChildrenDecorator={name:"ViewChildren",moduleName:v};static contentChildDecorator={name:"ContentChild",moduleName:v};static contentChildrenDecorator={name:"ContentChildren",moduleName:v};static InputSignalBrandWriteType={name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:v};static UnwrapDirectiveSignalInputs={name:"\u0275UnwrapDirectiveSignalInputs",moduleName:v};static unwrapWritableSignal={name:"\u0275unwrapWritableSignal",moduleName:v};static assertType={name:"\u0275assertType",moduleName:v}}return n})(),Wx=/-+([a-z0-9])/g;function Gx(n){return n.replace(Wx,(...e)=>e[1].toUpperCase())}function Xx(n,e){return Ny(n,":",e)}function Qx(n,e){return Ny(n,".",e)}function Ny(n,e,t){let s=n.indexOf(e);return s==-1?t:[n.slice(0,s).trim(),n.slice(s+1).trim()]}function Yx(n){return n===void 0?null:n}function Kx(n){let e=[];for(let t=0;t<n.length;t++){let s=n.charCodeAt(t);if(s>=55296&&s<=56319&&n.length>t+1){let r=n.charCodeAt(t+1);r>=56320&&r<=57343&&(t++,s=(s-55296<<10)+r-56320+65536)}s<=127?e.push(s):s<=2047?e.push(s>>6&31|192,s&63|128):s<=65535?e.push(s>>12|224,s>>6&63|128,s&63|128):s<=2097151&&e.push(s>>18&7|240,s>>12&63|128,s>>6&63|128,s&63|128)}return e}function Iy(n){if(typeof n=="string")return n;if(Array.isArray(n))return`[${n.map(Iy).join(", ")}]`;if(n==null)return""+n;let e=n.overriddenName||n.name;if(e)return`${e}`;if(!n.toString)return"object";let t=n.toString();if(t==null)return""+t;let s=t.indexOf(` 5`);return s>=0?t.slice(0,s):t}var lp=class{full;major;minor;patch;constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}},Vi=globalThis,Jx=/^([1-9]|1[0-8])\./;function Dy(n){return n.startsWith("0.")?!0:!Jx.test(n)}var Zx=3,e_="# sourceMappingURL=data:application/json;base64,",cp=class{file;sourcesContent=new Map;lines=[];lastCol0=0;hasMappings=!1;constructor(e=null){this.file=e}addSource(e,t=null){return this.sourcesContent.has(e)||this.sourcesContent.set(e,t),this}addLine(){return this.lines.push([]),this.lastCol0=0,this}addMapping(e,t,s,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(t!=null&&!this.sourcesContent.has(t))throw new Error(`Unknown source file "${t}"`);if(e==null)throw new Error("The column in the generated code must be provided");if(e<this.lastCol0)throw new Error("Mapping should be added in output order");if(t&&(s==null||r==null))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=e,this.currentLine.push({col0:e,sourceUrl:t,sourceLine0:s,sourceCol0:r}),this}get currentLine(){return this.lines.slice(-1)[0]}toJSON(){if(!this.hasMappings)return null;let e=new Map,t=[],s=[];Array.from(this.sourcesContent.keys()).forEach((c,p)=>{e.set(c,p),t.push(c),s.push(this.sourcesContent.get(c)||null)});let r="",i=0,o=0,a=0,l=0;return this.lines.forEach(c=>{i=0,r+=c.map(p=>{let h=Xa(p.col0-i);return i=p.col0,p.sourceUrl!=null&&(h+=Xa(e.get(p.sourceUrl)-o),o=e.get(p.sourceUrl),h+=Xa(p.sourceLine0-a),a=p.sourceLine0,h+=Xa(p.sourceCol0-l),l=p.sourceCol0),h}).join(","),r+=";"}),r=r.slice(0,-1),{file:this.file||"",version:Zx,sourceRoot:"",sources:t,sourcesContent:s,mappings:r}}toJsComment(){return this.hasMappings?"//"+e_+t_(JSON.stringify(this,null,0)):""}};function t_(n){let e="",t=Kx(n);for(let s=0;s<t.length;){let r=t[s++],i=s<t.length?t[s++]:null,o=s<t.length?t[s++]:null;e+=Fi(r>>2),e+=Fi((r&3)<<4|(i===null?0:i>>4)),e+=i===null?"=":Fi((i&15)<<2|(o===null?0:o>>6)),e+=i===null||o===null?"=":Fi(o&63)}return e}function Xa(n){n=n<0?(-n<<1)+1:n<<1;let e="";do{let t=n&31;n=n>>5,n>
50&&(t=t|32),e+=Fi(t)}while(n>0);return e}var n_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Fi(n){if(n<0||n>=64)throw new Error("Can only encode value in the range [0, 63]");return n_[n]}var s_=/'|\\|\n|\r|\$/g,r_=/^[$A-Z_][0-9A-Z_$]*$/i,up=" ",xl=class{indent;partsLength=0;parts=[];srcSpans=[];constructor(e){this.indent=e}},i_=new Map([[C.And,"&&"],[C.Bigger,">"],[C.BiggerEquals,">="],[C.BitwiseOr,"|"],[C.BitwiseAnd,"&"],[C.Divide,"/"],[C.Assign,"="],[C.Equals,"=="],[C.Identical,"==="],[C.Lower,"<"],[C.LowerEquals,"<="],[C.Minus,"-"],[C.Modulo,"%"],[C.Exponentiation,"**"],[C.Multiply,"*"],[C.NotEquals,"!="],[C.NotIdentical,"!=="],[C.NullishCoalesce,"??"],[C.Or,"||"],[C.Plus,"+"],[C.In,"in"],[C.InstanceOf,"instanceof"],[C.AdditionAssignment,"+="],[C.SubtractionAssignment,"-="],[C.MultiplicationAssignment,"*="],[C.DivisionAssignment,"/="],[C.RemainderAssignment,"%="],[C.ExponentiationAssignment,"**="],[C.AndAssignment,"&&="],[C.OrAssignment,"||="],[C.NullishCoalesceAssignment,"??="]]),pp=class n{_indent;static createRoot(){return new n(0)}_lines;constructor(e){this._indent=e,this._lines=[new xl(e)]}get _currentLine(){return this._lines[this._lines.length-1]}println(e,t=""){this.print(e||null,t,!0)}lineIsEmpty(){return this._currentLine.parts.length===0}lineLength(){return this._currentLine.indent*up.length+this._currentLine.partsLength}print(e,t,s=!1){t.length>0&&(this._currentLine.parts.push(t),this._currentLine.partsLength+=t.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),s&&this._lines.push(new xl(this._indent))}removeEmptyLastLine(){this.lineIsEmpty()&&this._lines.pop()}incIndent(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}decIndent(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}toSource(){return this.sourceLines.map(e=>e.parts.length>0?qv(e.indent)+e.parts.join(""):"").join(` 6`)}toSourceMapGenerator(e,t=0){let s=new cp(e),r=!1,i=()=>{r||(s.addSource(e," ").addMapping(0,e,0,0),r=!0)};for(let o=0;o<t;o++)s.addLine(),i();return this.sourceLines.forEach((o,a)=>{s.addLine();let l=o.srcSpans,c=o.parts,p=o.indent*up.length,h=0;for(;h<l.length&&!l[h];)p+=c[h].length,h++;for(h<l.length&&a===0&&p===0?r=!0:i();h<l.length;){let f=l[h],g=f.start.file,m=f.start.line,y=f.start.col;for(s.addSource(g.url,g.content).addMapping(p,g.url,m,y),p+=c[h].length,h++;h<l.length&&(f===l[h]||!l[h]);)p+=c[h].length,h++}}),s}spanOf(e,t){let s=this._lines[e];if(s){let r=t-qv(s.indent).length;for(let i=0;i<s.parts.length;i++){let o=s.parts[i];if(o.length>r)return s.srcSpans[i];r-=o.length}}return null}get sourceLines(){return this._lines.length&&this._lines[this._lines.length-1].parts.length===0?this._lines.slice(0,-1):this._lines}},hp=class{_escapeDollarInStrings;lastIfCondition=null;constructor(e){this._escapeDollarInStrings=e}printLeadingComments(e,t){if(e.leadingComments!==void 0)for(let s of e.leadingComments)s instanceof yl?t.print(e,`/*${s.toString()}*/`,s.trailingNewline):s.multiline?t.print(e,`/* ${s.text} */`,s.trailingNewline):s.text.split(` 7`).forEach(r=>{t.println(e,`// ${r}`)})}visitExpressionStmt(e,t){return this.printLeadingComments(e,t),e.expr.visitExpression(this,t),t.println(e,";"),null}visitReturnStmt(e,t){return this.printLeadingComments(e,t),t.print(e,"return "),e.value.visitExpression(this,t),t.println(e,";"),null}visitIfStmt(e,t){this.printLeadingComments(e,t),t.print(e,"if ("),this.lastIfCondition=e.condition,e.condition.visitExpression(this,t),this.lastIfCondition=null,t.print(e,") {");let s=e.falseCase!=null&&e.falseCase.length>0;return e.trueCase.length<=1&&!s?(t.print(e," "),this.visitAllStatements(e.trueCase,t),t.removeEmptyLastLine(),t.print(e," ")):(t.println(),t.incIndent(),this.visitAllStatements(e.trueCase,t),t.decIndent(),s&&(t.println(e,"} else {"),t.incIndent(),this.visitAllStatements(e.falseCase,t),t.decIndent())),t.println(e,"}"),null}visitInvokeFunctionExpr(e,t){let s=e.fn instanceof lr;return s&&t.print(e.fn,"("),e.fn.visitExpression(this,t),s&&t.print(e.fn,")"),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null}visitTaggedTemplateLiteralExpr(e,t){return e.tag.visitExpression(this,t),e.template.visitExpression(this,t),null}visitTemplateLiteralExpr(e,t){t.print(e,"`");for(let s=0;s<e.elements.length;s++){e.elements[s].visitExpression(this,t);let r=s<e.expressions.length?e.expressions[s]:null;r!==null&&(t.print(r,"${"),r.visitExpression(this,t),t.print(r,"}"))}t.print(e,"`")}visitTemplateLiteralElementExpr(e,t){t.print(e,e.rawText)}visitWrappedNodeExpr(e,t){throw new Error("Abstract emitter cannot visit WrappedNodeExpr.")}visitTypeofExpr(e,t){t.print(e,"typeof "),e.expr.visitExpression(this,t)}visitVoidExpr(e,t){t.print(e,"void "),e.expr.visitExpression(this,t)}visitReadVarExpr(e,t){return t.print(e,e.name),null}visitInstantiateExpr(e,t){return t.print(e,"new "),e.classExpr.visitExpression(this,t),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null}visitLiteralExpr(e,t){let s=e.value;return typeof s=="string"?t.print(e,Rs(s,this._escapeDollarInStrings)):t.print(e,`${s}`),null}visitRegularExpressionLiteral(e,t){return t.print(e,`/${e.body}
7/${e.flags||""}`),null}visitLocalizedString(e,t){let s=e.serializeI18nHead();t.print(e,"$localize `"+s.raw);for(let r=1;r<e.messageParts.length;r++)t.print(e,"${"),e.expressions[r-1].visitExpression(this,t),t.print(e,`}${e.serializeI18nTemplatePart(r).raw}`);return t.print(e,"`"),null}visitConditionalExpr(e,t){return t.print(e,"("),e.condition.visitExpression(this,t),t.print(e,"? "),e.trueCase.visitExpression(this,t),t.print(e,": "),e.falseCase.visitExpression(this,t),t.print(e,")"),null}visitDynamicImportExpr(e,t){t.print(e,`import(${e.url})`)}visitNotExpr(e,t){return t.print(e,"!"),e.condition.visitExpression(this,t),null}visitUnaryOperatorExpr(e,t){let s;switch(e.operator){case Yi.Plus:s="+";break;case Yi.Minus:s="-";break;default:throw new Error(`Unknown operator ${e.operator}`)}let r=e!==this.lastIfCondition;return r&&t.print(e,"("),t.print(e,s),e.expr.visitExpression(this,t),r&&t.print(e,")"),null}visitBinaryOperatorExpr(e,t){let s=i_.get(e.operator);if(!s)throw new Error(`Unknown operator ${e.operator}`);let r=e!==this.lastIfCondition;return r&&t.print(e,"("),e.lhs.visitExpression(this,t),t.print(e,` ${s} `),e.rhs.visitExpression(this,t),r&&t.print(e,")"),null}visitReadPropExpr(e,t){return e.receiver.visitExpression(this,t),t.print(e,"."),t.print(e,e.name),null}visitReadKeyExpr(e,t){return e.receiver.visitExpression(this,t),t.print(e,"["),e.index.visitExpression(this,t),t.print(e,"]"),null}visitLiteralArrayExpr(e,t){return t.print(e,"["),this.visitAllExpressions(e.entries,t,","),t.print(e,"]"),null}visitLiteralMapExpr(e,t){return t.print(e,"{"),this.visitAllObjects(s=>{s instanceof us?(t.print(e,"..."),s.expression.visitExpression(this,t)):(t.print(e,`${Rs(s.key,this._escapeDollarInStrings,s.quoted)}:`),s.value.visitExpression(this,t))},e.entries,t,","),t.print(e,"}"),null}visitCommaExpr(e,t){return t.print(e,"("),this.visitAllExpressions(e.parts,t,","),t.print(e,")"),null}visitParenthesizedExpr(e,t){e.expr.visitExpression(this,t)}visitSpreadElementExpr(e,t){t.print(e,"..."),e.expression.visitExpression(this,t)}visitAllExpressions(e,t,s){this.visitAllObjects(r=>r.visitExpression(this,t),e,t,s)}visitAllObjects(e,t,s,r){let i=!1;for(let o=0;o<t.length;o++)o>0&&(s.lineLength()>80?(s.print(null,r,!0),i||(s.incIndent(),s.incIndent(),i=!0)):s.print(null,r,!1)),e(t[o]);i&&(s.decIndent(),s.decIndent())}visitAllStatements(e,t){e.forEach(s=>s.visitStatement(this,t))}};function Rs(n,e,t=!0){if(n==null)return null;let s=n.replace(s_,(...i)=>i[0]=="$"?e?"\\$":"$":i[0]==` 8`?"\\n":i[0]=="\r"?"\\r":`\\${i[0]}`);return t||!r_.test(s)?`'${s}'`:s}function qv(n){let e="";for(let t=0;t<n;t++)e+=up;return e}function Ec(n,e){if(e===0)return Je(n);let t=[];for(let s=0;s<e;s++)t.push(wt);return Je(n,void 0,t)}function o_(n,e){let t=Rs(e,!1,!1);return t!==e?`${n}[${t}]`:`${n}.${e}`}function a_(n){return l_("ngJitMode",n)}function l_(n,e){let t=new Xs({name:n,moduleName:null}),s=new ie(C.Identical,new $r(t),S("undefined")),r=new ie(C.Or,s,t,void 0,void 0);return new ie(C.And,r,e)}function qe(n){let e=new ne(n);return{value:e,type:e}}function Fs(n,e){let t=me(n.map(s=>s.value));return e?Bt([],t):t}function Rh(n,e){return{expression:n,forwardRef:e}}function c_({expression:n,forwardRef:e}){switch(e){case 0:case 1:return n;case 2:return u_(n)}}function u_(n){return I(d.forwardRef).callFn([Bt([],n)])}var _l=(function(n){return n[n.Class=0]="Class",n[n.Function=1]="Function",n})(_l||{});function Ps(n){let e=te("__ngFactoryType__"),t=null,s=jv(n)?e:new ie(C.Or,e,n.type.value),r=null;n.deps!==null?n.deps!=="invalid"&&(r=new Ji(s,Hv(n.deps,n.target))):(t=te(`\u0275${n.name}_BaseFactory`),r=t.callFn([s]));let i=[],o=null;function a(c){let p=te("__ngConditionalFactory__");i.push(new je(p.name,qr,tn));let h=r!==null?p.set(r).toStmt():I(d.invalidFactory).callFn([]).toStmt();return i.push(yc(e,[h],[p.set(c).toStmt()])),p}if(jv(n)){let c=Hv(n.delegateDeps,n.target),p=new(n.delegateType===_l.Class?Ji:At)(n.delegate,c);o=a(p)}else m_(n)?o=a(n.expression):o=r;if(o===null)i.push(I(d.invalidFactory).callFn([]).toStmt());else if(t!==null){let c=I(d.getInheritedFactory).callFn([n.type.value]),p=new ie(C.Or,t,t.set(c));i.push(new $e(p.callFn([s])))}else i.push(new $e(o));let l=ps([new Oe(e.name,wt)],i,tn,void 0,`${n.name}_Factory`);return t!==null&&(l=Bt([],[new je(t.name),new $e(l)]).callFn([],void 0,!0)),{expression:l,statements:[],type:p_(n)}}function p_(n){let e=n.deps!==null&&n.deps!=="invalid"?f_(n.deps):An;return Je(I(d.FactoryDeclaration,[Ec(n.type.type,n.typeArgumentCount),e]))}function Hv(n,e){return n.map((t,s)=>h_(t,e,s))}function h_(n,e,t){if(n.token===null)return I(d.invalidFactoryDep).callFn([S(t)]);if(n.attributeNameType===null){let s=0|(n.self?2:0)|(n.skipSelf?4:0)|(n.host?1:0)|(n.optional?8:0)|(e===Rn.Pipe?16:0),r=s!==0||n.optional?S(s):null,i=[n.token];r&&i.push(r);let o=g_(e);return I(o).callFn(i)}else return I(d.injectAttribute).callFn([n.token])}function f_(n){let e=!1,t=n.map(s=>{let r=d_(s);return r!==null?(e=!0,r):S(null)});return e?Je(me(t)):An}function d_(n){let e=[];return n.attributeNameType!==null&&e.push({key:"attribute",value:n.attributeNameType,quoted:!1}),n.optional&&e.push({key:"optional",value:S(!0),quoted:!1}),n.host&&e.push({key:"host",value:S(!0),quoted:!1}),n.self&&e.push({key:"self",value:S(!0),quoted:!1}),n.skipSelf&&e.push({key:"skipSelf",value:S(!0),quoted:!1}),e.length>0?Kt(e):null}function jv(n){return n.delegateType!==void 0}function m_(n){return n.expression!==void 0}function g_(n){switch(n){case Rn.Component:case Rn.Directive:case Rn.Pipe:return d.directiveInject;case Rn.NgModule:case Rn.Injectable:default:return d.inject}}var Js=class{start;end;constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new Mt(e+this.start,e+this.end)}},ye=class{span;sourceSpan;constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return"AST"}},so=class extends ye{nameSpan;constructor(e,t,s){super(e,t),this.nameSpan=s}},rt=class extends ye{visit(e,t=null){return e.visitEmptyExpr?.(this,t)}},Cn=class extends ye{visit(e,t=null){return e.visitImplicitReceiver(this,t)}},ro=class extends ye{visit(e,t=null){return e.visitThisReceiver?.(this,t)}},Hr=class extends ye{expressions;constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitChain(this,t)}},Cl=class extends ye{condition;trueExp;falseExp;constructor(e,t,s,r,i){super(e,t),this.condition=s,this.trueExp=r,this.falseExp=i}visit(e,t=null){return e.visitConditional(this,t)}},yn=class extends so{receiver;name;constructor(e,t,s,r,i){super(e,t,s),this.receiver=r,this.name=i}visit(e,t=null){return e.visitPropertyRead(this,t)}},io=class extends so{receiver;name;constructor(e,t,s,r,i){super(e,t,s),this.receiver=r,this.name=i}visit(e,t=null){return e.visitSafePropertyRead(this,t)}},Zs=class extends ye{receiver;key;constructor(e,t,s,r){super(e,t),this.receiver=s,this.key=r}visit(e,t=null){return e.visitKeyedRead(this,t)}},oo=class extends ye{receiver;key;constructor(e,t,s,r){super(e,t),this.receiver=s,this.key=r}visit(e,t=null){return e.visitSafeKeyedRead(this,t)}},ll=(function(n){return n[n.ReferencedByName=0]="ReferencedByName",n[n.ReferencedDirectly=1]="ReferencedDirectly",n})(ll||{}),bl=class extends so{exp;name;args;type;constructor(e,t,s,r,i,o,a){super(e,t,a),this.exp=s,this.name=r,this.args=i,this.type=o}visit(e,t=null){return e.visitPipe(this,t)}},vt=class extends ye{value;constructor(e,t,s){super(e,t),this.value=s}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}},ao=class extends ye{expressions;constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitLiteralArray(this,t)}},Tl=class extends ye{expression;constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitSpreadElement(this,t)}},er=class extends ye{keys;values;constructor(e,t,s,r){super(e,t),this.keys=s,this.values=r}visit(e,t=null){return e.visitLiteralMap(this,t)}},Yo=class extends ye{strings;expressions;constructor(e,t,s,r){super(e,t),this.strings=s,this.expressions=r}visit(e,t=null){return e.visitInterpolation(this,t)}},at=class extends ye{operation;left;right;constructor(e,t,s,r,i){super(e,t),this.operation=s,this.left=r,this.right=i}visit(e,t=null){return e.visitBinary(this,t)}static isAssignmentOperation(e){return e==="="||e==="+="||e==="-="||e==="*="||e==="/="||e==="%="||e==="**="||e==="&&="||e==="||="||e==="??="}},Fr=class n extends at{operator;expr;left=null;right=null;operation=null;static createMinus(e,t,s){return new n(e,t,"-",s,"-",new vt(e,t,0),s)}static createPlus(e,t,s){return new n(e,t,"+",s,"-",s,new vt(e,t,0))}constructor(e,t,s,r,i,o,a){super(e,t,i,o,a),this.operator=s,this.expr=r}visit(e,t=null){return e.visitUnary!==void 0?e.visitUnary(this,t):e.visitBinary(this,t)}},lo=class extends ye{expression;constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitPrefixNot(this,t)}},co=class extends ye{expression;constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitTypeofExpression(this,t)}},uo=class extends ye{expression;constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitVoidExpression(this,t)}},po=class extends ye{expression;constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitNonNullAssert(this,t)}},jr=class extends ye{receiver;args;argumentSpan;constructor(e,t,s,r,i){super(e,t),this.receiver=s,this.args=r,this.argumentSpan=i}visit(e,t=null){return e.visitCall(this,t)}},kl=class extends ye{receiver;args;argumentSpan;constructor(e,t,s,r,i){super(e,t),this.receiver=s,this.args=r,this.argumentSpan=i}visit(e,t=null){return e.visitSafeCall(this,t)}},ho=class extends ye{tag;template;constructor(e,t,s,r){super(e,t),this.tag=s,this.template=r}visit(e,t){return e.visitTaggedTemplateLiteral(this,t)}},fo=class extends ye{elements;expressions;constructor(e,t,s,r){super(e,t),this.elements=s,this.expressions=r}visit(e,t){return e.visitTemplateLiteral(this,t)}},Nl=class extends ye{text;constructor(e,t,s){super(e,t),this.text=s}visit(e,t){return e.visitTemplateLiteralElement(this,t)}},mo=class extends ye{expression;constructor(e,t,s){super(e,t),this.expression=s}visit(e,t){return e.visitParenthesizedExpression(this,t)}},fp=class{name;span;sourceSpan;constructor(e,t,s){this.name=e,this.span=t,this.sourceSpan=s}},Il=class extends ye{parameters;body;constructor(e,t,s,r){super(e,t),this.parameters=s,this.body=r}visit(e,t){return e.visitArrowFunction(this,t)}},Dl=class extends ye{body;flags;constructor(e,t,s,r){super(e,t),this.body=s,this.flags=r}visit(e,t){return e.visitRegularExpressionLiteral(this,t)}},Mt=class{start;end;constructor(e,t){this.start=e,this.end=t}},yt=class extends ye{ast;source;location;errors;constructor(e,t,s,r,i){super(new Js(0,t===null?0:t.length),new Mt(r,t===null?r:r+t.length)),this.ast=e,this.source=t,this.location=s,this.errors=i}visit(e,t=null){return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return`${this.source} in ${this.location}`}},go=class{sourceSpan;key;value;constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}},dp=class{sourceSpan;key;value;constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}},zr=class{visit(e,t){e.visit(this,t)}visitUnary(e,t){this.visit(e.expr,t)}visitBinary(e,t){this.visit(e.left,t),this.visit(e.right,t)}visitChain(e,t){this.visitAll(e.expressions,t)}visitConditional(e,t){this.visit(e.condition,t),this.visit(e.trueExp,t),this.visit(e.falseExp,t)}visitPipe(e,t){this.visit(e.exp,t),this.visitAll(e.args,t)}visitImplicitReceiver(e,t){}visitThisReceiver(e,t){}visitInterpolation(e,t){this.visitAll(e.expressions,t)}visitKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitLiteralPrimitive(e,t){}visitPrefixNot(e,t){this.visit(e.expression,t)}visitTypeofExpression(e,t){this.visit(e.expression,t)}visitVoidExpression(e,t){this.visit(e.expression,t)}visitNonNullAssert(e,t){this.visit(e.expression,t)}visitPropertyRead(e,t){this.visit(e.receiver,t)}visitSafePropertyRead(e,t){this.visit(e.receiver,t)}visitSafeKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitSafeCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitTemplateLiteral(e,t){for(let s=0;s<e.elements.length;s++){this.visit(e.elements[s],t);let r=s<e.expressions.length?e.expressions[s]:null;r!==null&&this.visit(r,t)}}visitTemplateLiteralElement(e,t){}visitTaggedTemplateLiteral(e,t){this.visit(e.tag,t),this.visit(e.template,t)}visitParenthesizedExpression(e,t){this.visit(e.expression,t)}visitArrowFunction(e,t){this.visit(e.body,t)}visitRegularExpressionLiteral(e,t){}visitSpreadElement(e,t){this.visit(e.expression,t)}visitEmptyExpr(e,t){}visitAll(e,t){for(let s of e)this.visit(s,t)}},Ir=class{name;expression;type;sourceSpan;keySpan;valueSpan;isLiteral;isLegacyAnimation;isAnimation;constructor(e,t,s,r,i,o){this.name=e,this.expression=t,this.type=s,this.sourceSpan=r,this.keySpan=i,this.valueSpan=o,this.isLiteral=this.t
8ype===mn.LITERAL_ATTR,this.isLegacyAnimation=this.type===mn.LEGACY_ANIMATION,this.isAnimation=this.type===mn.ANIMATION}},mn=(function(n){return n[n.DEFAULT=0]="DEFAULT",n[n.LITERAL_ATTR=1]="LITERAL_ATTR",n[n.LEGACY_ANIMATION=2]="LEGACY_ANIMATION",n[n.TWO_WAY=3]="TWO_WAY",n[n.ANIMATION=4]="ANIMATION",n})(mn||{}),ht=(function(n){return n[n.Regular=0]="Regular",n[n.LegacyAnimation=1]="LegacyAnimation",n[n.TwoWay=2]="TwoWay",n[n.Animation=3]="Animation",n})(ht||{}),Pl=class{name;targetOrPhase;type;handler;sourceSpan;handlerSpan;keySpan;constructor(e,t,s,r,i,o,a){this.name=e,this.targetOrPhase=t,this.type=s,this.handler=r,this.sourceSpan=i,this.handlerSpan=o,this.keySpan=a}},mp=class{name;value;sourceSpan;keySpan;valueSpan;constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i}},oe=(function(n){return n[n.Property=0]="Property",n[n.Attribute=1]="Attribute",n[n.Class=2]="Class",n[n.Style=3]="Style",n[n.LegacyAnimation=4]="LegacyAnimation",n[n.TwoWay=5]="TwoWay",n[n.Animation=6]="Animation",n})(oe||{}),Ml=class{name;type;securityContext;value;unit;sourceSpan;keySpan;valueSpan;constructor(e,t,s,r,i,o,a,l){this.name=e,this.type=t,this.securityContext=s,this.value=r,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=l}},gn=(function(n){return n[n.RAW_TEXT=0]="RAW_TEXT",n[n.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",n[n.PARSABLE_DATA=2]="PARSABLE_DATA",n})(gn||{});function ot(n,e=!0){if(n[0]!=":")return[null,n];let t=n.indexOf(":",1);if(t===-1){if(e)throw new Error(`Unsupported format "${n}" expecting ":namespace:name"`);return[null,n]}return[n.slice(1,t),n.slice(t+1)]}function zv(n){return ot(n)[1]==="ng-container"}function gp(n){return ot(n)[1]==="ng-content"}function v_(n){return ot(n)[1]==="ng-template"}function vp(n){return n===null?null:ot(n)[0]}function cl(n,e){return n?`:${n}:${e}`:e}var wc=class{value;sourceSpan;constructor(e,t){this.value=e,this.sourceSpan=t}visit(e){throw new Error("visit() not implemented for Comment")}},Bs=class{value;sourceSpan;constructor(e,t){this.value=e,this.sourceSpan=t}visit(e){return e.visitText(this)}},Wr=class{value;sourceSpan;i18n;constructor(e,t,s){this.value=e,this.sourceSpan=t,this.i18n=s}visit(e){return e.visitBoundText(this)}},Gr=class{name;value;sourceSpan;keySpan;valueSpan;i18n;constructor(e,t,s,r,i,o){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i,this.i18n=o}visit(e){return e.visitTextAttribute(this)}},Sp=class n{name;type;securityContext;value;unit;sourceSpan;keySpan;valueSpan;i18n;constructor(e,t,s,r,i,o,a,l,c){this.name=e,this.type=t,this.securityContext=s,this.value=r,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=l,this.i18n=c}static fromBoundElementProperty(e,t){if(e.keySpan===void 0)throw new Error(`Unexpected state: keySpan must be defined for bound attributes but was not for ${e.name}: ${e.sourceSpan}`);return new n(e.name,e.type,e.securityContext,e.value,e.unit,e.sourceSpan,e.keySpan,e.valueSpan,t)}visit(e){return e.visitBoundAttribute(this)}},yp=class n{name;type;handler;target;phase;sourceSpan;handlerSpan;keySpan;constructor(e,t,s,r,i,o,a,l){this.name=e,this.type=t,this.handler=s,this.target=r,this.phase=i,this.sourceSpan=o,this.handlerSpan=a,this.keySpan=l}static fromParsedEvent(e){let t=e.type===ht.Regular?e.targetOrPhase:null,s=e.type===ht.LegacyAnimation?e.targetOrPhase:null;if(e.keySpan===void 0)throw new Error(`Unexpected state: keySpan must be defined for bound event but was not for ${e.name}: ${e.sourceSpan}`);return new n(e.name,e.type,e.handler,t,s,e.sourceSpan,e.handlerSpan,e.keySpan)}visit(e){return e.visitBoundEvent(this)}},bn=class{name;attributes;inputs;outputs;directives;children;references;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;isVoid;i18n;constructor(e,t,s,r,i,o,a,l,c,p,h,f,g){this.name=e,this.attributes=t,this.inputs=s,this.outputs=r,this.directives=i,this.children=o,this.references=a,this.isSelfClosing=l,this.sourceSpan=c,this.startSourceSpan=p,this.endSourceSpan=h,this.isVoid=f,this.i18n=g}visit(e){return e.visitElement(this)}},Tn=class{nameSpan;sourceSpan;prefetchSpan;whenOrOnSourceSpan;hydrateSpan;constructor(e,t,s,r,i){this.nameSpan=e,this.sourceSpan=t,this.prefetchSpan=s,this.whenOrOnSourceSpan=r,this.hydrateSpan=i}visit(e){return e.visitDeferredTrigger(this)}},Ll=class extends Tn{value;constructor(e,t,s,r,i){super(null,t,s,r,i),this.value=e}},Ep=class extends Tn{},wp=class extends Tn{},Ap=class extends Tn{},Rl=class extends Tn{reference;constructor(e,t,s,r,i,o){super(t,s,r,i,o),this.reference=e}},xp=class extends Tn{delay;constructor(e,t,s,r,i,o){super(t,s,r,i,o),this.delay=e}},Fl=class extends Tn{reference;constructor(e,t,s,r,i,o){super(t,s,r,i,o),this.reference=e}},vo=class extends Tn{reference;options;constructor(e,t,s,r,i,o,a){super(s,r,i,o,a),this.reference=e,this.options=t}},xt=class{nameSpan;sourceSpan;startSourceSpan;endSourceSpan;constructor(e,t,s,r){this.nameSpan=e,this.sourceSpan=t,this.startSourceSpan=s,this.endSourceSpan=r}},So=class extends xt{children;minimumTime;i18n;constructor(e,t,s,r,i,o,a){super(s,r,i,o),this.children=e,this.minimumTime=t,this.i18n=a}visit(e){return e.visitDeferredBlockPlaceholder(this)}},yo=class extends xt{children;afterTime;minimumTime;i18n;constructor(e,t,s,r,i,o,a,l){super(r,i,o,a),this.children=e,this.afterTime=t,this.minimumTime=s,this.i18n=l}
8visit(e){return e.visitDeferredBlockLoading(this)}},Eo=class extends xt{children;i18n;constructor(e,t,s,r,i,o){super(t,s,r,i),this.children=e,this.i18n=o}visit(e){return e.visitDeferredBlockError(this)}},tr=class extends xt{children;placeholder;loading;error;mainBlockSpan;i18n;triggers;prefetchTriggers;hydrateTriggers;definedTriggers;definedPrefetchTriggers;definedHydrateTriggers;constructor(e,t,s,r,i,o,a,l,c,p,h,f,g){super(l,c,h,f),this.children=e,this.placeholder=i,this.loading=o,this.error=a,this.mainBlockSpan=p,this.i18n=g,this.triggers=t,this.prefetchTriggers=s,this.hydrateTriggers=r,this.definedTriggers=Object.keys(t),this.definedPrefetchTriggers=Object.keys(s),this.definedHydrateTriggers=Object.keys(r)}visit(e){return e.visitDeferredBlock(this)}visitAll(e){this.visitTriggers(this.definedHydrateTriggers,this.hydrateTriggers,e),this.visitTriggers(this.definedTriggers,this.triggers,e),this.visitTriggers(this.definedPrefetchTriggers,this.prefetchTriggers,e),Ru(e,this.children);let t=[this.placeholder,this.loading,this.error].filter(s=>s!==null);Ru(e,t)}visitTriggers(e,t,s){Ru(s,e.map(r=>t[r]))}},Bl=class extends xt{expression;groups;unknownBlocks;exhaustiveCheck;constructor(e,t,s,r,i,o,a,l){super(l,i,o,a),this.expression=e,this.groups=t,this.unknownBlocks=s,this.exhaustiveCheck=r}visit(e){return e.visitSwitchBlock(this)}},_p=class extends xt{expression;constructor(e,t,s,r,i){super(i,t,s,r),this.expression=e}visit(e){return e.visitSwitchBlockCase(this)}},wo=class extends xt{cases;children;i18n;constructor(e,t,s,r,i,o,a){super(o,s,r,i),this.cases=e,this.children=t,this.i18n=a}visit(e){return e.visitSwitchBlockCaseGroup(this)}},Cp=class extends xt{constructor(e,t,s,r){super(r,e,t,s)}visit(e){return e.visitSwitchExhaustiveCheck(this)}},Xr=class extends xt{item;expression;trackBy;trackKeywordSpan;contextVariables;children;empty;mainBlockSpan;i18n;constructor(e,t,s,r,i,o,a,l,c,p,h,f,g){super(f,l,p,h),this.item=e,this.expression=t,this.trackBy=s,this.trackKeywordSpan=r,this.contextVariables=i,this.children=o,this.empty=a,this.mainBlockSpan=c,this.i18n=g}visit(e){return e.visitForLoopBlock(this)}},Ao=class extends xt{children;i18n;constructor(e,t,s,r,i,o){super(i,t,s,r),this.children=e,this.i18n=o}visit(e){return e.visitForLoopBlockEmpty(this)}},Ol=class extends xt{branches;constructor(e,t,s,r,i){super(i,t,s,r),this.branches=e}visit(e){return e.visitIfBlock(this)}},Us=class extends xt{expression;children;expressionAlias;i18n;constructor(e,t,s,r,i,o,a,l){super(a,r,i,o),this.expression=e,this.children=t,this.expressionAlias=s,this.i18n=l}visit(e){return e.visitIfBlockBranch(this)}},$l=class{name;sourceSpan;nameSpan;constructor(e,t,s){this.name=e,this.sourceSpan=t,this.nameSpan=s}visit(e){return e.visitUnknownBlock(this)}},Fh=class{name;value;sourceSpan;nameSpan;valueSpan;constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.nameSpan=r,this.valueSpan=i}visit(e){return e.visitLetDeclaration(this)}},qi=class{componentName;tagName;fullName;attributes;inputs;outputs;directives;children;references;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;i18n;constructor(e,t,s,r,i,o,a,l,c,p,h,f,g,m){this.componentName=e,this.tagName=t,this.fullName=s,this.attributes=r,this.inputs=i,this.outputs=o,this.directives=a,this.children=l,this.references=c,this.isSelfClosing=p,this.sourceSpan=h,this.startSourceSpan=f,this.endSourceSpan=g,this.i18n=m}visit(e){return e.visitComponent(this)}},Py=class{name;attributes;inputs;outputs;references;sourceSpan;startSourceSpan;endSourceSpan;i18n;constructor(e,t,s,r,i,o,a,l,c){this.name=e,this.attributes=t,this.inputs=s,this.outputs=r,this.references=i,this.sourceSpan=o,this.startSourceSpan=a,this.endSourceSpan=l,this.i18n=c}visit(e){return e.visitDirective(this)}},Lt=class{tagName;attributes;inputs;outputs;directives;templateAttrs;children;references;variables;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;i18n;constructor(e,t,s,r,i,o,a,l,c,p,h,f,g,m){this.tagName=e,this.attributes=t,this.inputs=s,this.outputs=r,this.directives=i,this.templateAttrs=o,this.children=a,this.references=l,this.variables=c,this.isSelfClosing=p,this.sourceSpan=h,this.startSourceSpan=f,this.endSourceSpan=g,this.i18n=m}visit(e){return e.visitTemplate(this)}},Qr=class{selector;attributes;children;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;i18n;name="ng-content";constructor(e,t,s,r,i,o,a,l){this.selector=e,this.attributes=t,this.children=s,this.isSelfClosing=r,this.sourceSpan=i,this.startSourceSpan=o,this.endSourceSpan=a,this.i18n=l}
8visit(e){return e.visitContent(this)}},hs=class{name;value;sourceSpan;keySpan;valueSpan;constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i}visit(e){return e.visitVariable(this)}},xo=class{name;value;sourceSpan;keySpan;valueSpan;constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i}visit(e){return e.visitReference(this)}},My=class{vars;placeholders;sourceSpan;i18n;constructor(e,t,s,r){this.vars=e,this.placeholders=t,this.sourceSpan=s,this.i18n=r}visit(e){return e.visitIcu(this)}},_o=class{tagNames;bindings;listeners;sourceSpan;constructor(e,t,s,r){if(this.tagNames=e,this.bindings=t,this.listeners=s,this.sourceSpan=r,e.length===0)throw new Error("HostElement must have at least one tag name.")}visit(){throw new Error("HostElement cannot be visited")}};function Ru(n,e){let t=[];if(n.visit)for(let s of e)n.visit(s);else for(let s of e){let r=s.visit(n);r&&t.push(r)}return t}var ft=class{nodes;placeholders;placeholderToMessage;meaning;description;customId;sources;id;legacyIds=[];messageString;constructor(e,t,s,r,i,o){this.nodes=e,this.placeholders=t,this.placeholderToMessage=s,this.meaning=r,this.description=i,this.customId=o,this.id=this.customId,this.messageString=S_(this.nodes),e.length?this.sources=[{filePath:e[0].sourceSpan.start.file.url,startLine:e[0].sourceSpan.start.line+1,startCol:e[0].sourceSpan.start.col+1,endLine:e[e.length-1].sourceSpan.end.line+1,endCol:e[0].sourceSpan.start.col+1}]:this.sources=[]}},bi=class{value;sourceSpan;constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitText(this,t)}},On=class{children;sourceSpan;constructor(e,t){this.children=e,this.sourceSpan=t}visit(e,t){return e.visitContainer(this,t)}},Ul=class{expression;type;cases;sourceSpan;expressionPlaceholder;constructor(e,t,s,r,i){this.expression=e,this.type=t,this.cases=s,this.sourceSpan=r,this.expressionPlaceholder=i}visit(e,t){return e.visitIcu(this,t)}},fs=class{tag;attrs;startName;closeName;children;isVoid;sourceSpan;startSourceSpan;endSourceSpan;constructor(e,t,s,r,i,o,a,l,c){this.tag=e,this.attrs=t,this.startName=s,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=a,this.startSourceSpan=l,this.endSourceSpan=c}visit(e,t){return e.visitTagPlaceholder(this,t)}},Co=class{value;name;sourceSpan;constructor(e,t,s){this.value=e,this.name=t,this.sourceSpan=s}visit(e,t){return e.visitPlaceholder(this,t)}},Yr=class{value;name;sourceSpan;previousMessage;constructor(e,t,s){this.value=e,this.name=t,this.sourceSpan=s}visit(e,t){return e.visitIcuPlaceholder(this,t)}},ds=class{name;parameters;startName;closeName;children;sourceSpan;startSourceSpan;endSourceSpan;constructor(e,t,s,r,i,o,a,l){this.name=e,this.parameters=t,this.startName=s,this.closeName=r,this.children=i,this.sourceSpan=o,this.startSourceSpan=a,this.endSourceSpan=l}visit(e,t){return e.visitBlockPlaceholder(this,t)}};function S_(n){let e=new bp;return n.map(s=>s.visit(e)).join("")}var bp=class{visitText(e){return e.value}visitContainer(e){return e.children.map(t=>t.visit(this)).join("")}visitIcu(e){let t=Object.keys(e.cases).map(s=>`${s} {${e.cases[s].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${t.join(" ")}}`}visitTagPlaceholder(e){let t=e.children.map(s=>s.visit(this)).join("");return`{$${e.startName}}${t}{$${e.closeName}}`}visitPlaceholder(e){return`{$${e.name}}`}visitIcuPlaceholder(e){return`{$${e.name}}`}visitBlockPlaceholder(e){let t=e.children.map(s=>s.visit(this)).join("");return`{$${e.startName}}${t}{$${e.closeName}}`}};var y_=class{visitTag(e){let t=this._serializeAttributes(e.attrs);if(e.children.length==0)return`<${e.name}${t}/>`;let s=e.children.map(r=>r.visit(this));return`<${e.name}${t}>${s.join("")}</${e.name}>`}visitText(e){return e.value}visitDeclaration(e){return`<?xml${this._serializeAttributes(e.attrs)} ?>`}_serializeAttributes(e){let t=Object.keys(e).map(s=>`${s}="${e[s]}"`).join(" ");return t.length>0?" "+t:""}visitDoctype(e){return`<!DOCTYPE ${e.rootTag} [ 9${e.dtd} 10]>`}},lM=new y_;function E_(n){return n.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var Ly="i18n",Tp="i18n-",w_="VAR_";function Ry(n){return n===Ly||n.startsWith(Tp)}function A_(n){return n.attrs.some(e=>Ry(e.name))}function Fy(n){return n.nodes[0]}function Bh(n={},e){let t={};
10return n&&Object.keys(n).length&&Object.keys(n).forEach(s=>t[Ko(s,e)]=n[s]),t}function Ko(n,e=!0){let t=E_(n);if(!e)return t;let s=t.split("_");if(s.length===1)return n.toLowerCase();let r;/^\d+$/.test(s[s.length-1])&&(r=s.pop());let i=s.shift().toLowerCase();return s.length&&(i+=s.map(o=>o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join("")),r?`${i}_${r}`:i}var x_=/[-.]/,Oh="_t",Ot="ctx",ii="rf";function By(n,e){let t=null;return()=>(t||(n(new je(Oh,void 0,wt)),t=te(e)),t)}function Dr(n){return Array.isArray(n)?me(n.map(Dr)):S(n,tn)}function Wv(n,e){let t=Object.getOwnPropertyNames(n);return t.length===0?null:Kt(t.map(s=>{let r=n[s],i,o,a,l;if(typeof r=="string")i=s,a=s,o=r,l=Dr(o);else{a=s,i=r.classPropertyName,o=r.bindingPropertyName;let c=o!==i,p=r.transformFunction!==null,h=Ri.None;if(r.isSignal&&(h|=Ri.SignalBased),p&&(h|=Ri.HasDecoratorInputTransform),e&&(c||p||h!==Ri.None)){let f=[S(h),Dr(o)];(c||p)&&(f.push(Dr(i)),p&&f.push(r.transformFunction)),l=me(f)}else l=Dr(o)}return{key:a,quoted:x_.test(a),value:l}}))}var ms=class{values=[];set(e,t){if(t){let s=this.values.find(r=>r.key===e);s?s.value=t:this.values.push({key:e,value:t,quoted:!1})}}toLiteralMap(){return Kt(this.values)}};function __(n){let e=n instanceof bn?n.name:"ng-template",t=C_(n),s=new Or,r=ot(e)[1];return s.setElement(r),Object.getOwnPropertyNames(t).forEach(i=>{let o=ot(i)[1],a=t[i];s.addAttribute(o,a),i.toLowerCase()==="class"&&a.trim().split(/\s+/).forEach(c=>s.addClassName(c))}),s}function C_(n){let e={};return n instanceof Lt&&n.tagName!=="ng-template"?n.templateAttrs.forEach(t=>e[t.name]=""):(n.attributes.forEach(t=>{Ry(t.name)||(e[t.name]=t.value)}),n.inputs.forEach(t=>{(t.type===oe.Property||t.type===oe.TwoWay)&&(e[t.name]="")}),n.outputs.forEach(t=>{e[t.name]=""})),e}function Gv(n,e){let t=null,s={name:n.name,type:n.type,typeArgumentCount:n.typeArgumentCount,deps:[],target:Rn.Injectable};if(n.useClass!==void 0){let a=n.useClass.expression.isEquivalent(n.type.value),l;n.deps!==void 0&&(l=n.deps),l!==void 0?t=Ps(ce(E({},s),{delegate:n.useClass.expression,delegateDeps:l,delegateType:_l.Class})):a?t=Ps(s):t={statements:[],expression:Xv(n.type.value,n.useClass.expression,e)}}else n.useFactory!==void 0?n.deps!==void 0?t=Ps(ce(E({},s),{delegate:n.useFactory,delegateDeps:n.deps||[],delegateType:_l.Function})):t={statements:[],expression:Bt([],n.useFactory.callFn([]))}:n.useValue!==void 0?t=Ps(ce(E({},s),{expression:n.useValue.expression})):n.useExisting!==void 0?t=Ps(ce(E({},s),{expression:I(d.inject).callFn([n.useExisting.expression])})):t={statements:[],expression:Xv(n.type.value,n.type.value,e)};let r=n.type.value,i=new ms;return i.set("token",r),i.set("factory",t.expression),n.providedIn.expression.value!==null&&i.set("providedIn",c_(n.providedIn)),{expression:I(d.\u0275\u0275defineInjectable).callFn([i.toLiteralMap()],void 0,!0),type:b_(n),statements:t.statements}}function b_(n){return new Yt(I(d.InjectableDeclaration,[Ec(n.type.type,n.typeArgumentCount)]))}function Xv(n,e,t){if(n.node===e.node)return e.prop("\u0275fac");if(!t)return Qv(e);let s=I(d.resolveForwardRef).callFn([e]);return Qv(s)}function Qv(n){let e=new Oe("__ngFactoryType__",wt);return Bt([e],n.prop("\u0275fac").callFn([te(e.name)]))}var Xe=0,T_=8,$h=9,Vs=10,Oy=11,$y=12,Uh=13,Uy=32,kp=33,bo=34,Vy=35,Ac=36,k_=37,Vl=38,To=39,pt=40,Fe=41,Yv=42,qy=43,it=44,ql=45,Ds=46,Ht=47,vn=58,St=59,Br=60,We=61,Dt=62,Kv=63,Vh=48,N_=55,Hy=57,ws=65,I_=69,D_=70,P_=88,oi=90,En=91,qs=92,Fn=93,M_=94,As=95,nr=97,L_=98,R_=101,qh=102,jy=110,zy=114,Wy=116,Gy=117,Xy=118,Qy=120,Jo=122,Wt=123,Jv=124,ct=125,Yy=160,Ar=64,Np=96;function ko(n){return n>=$h&&n<=Uy||n==Yy}function jt(n){return Vh<=n&&n<=Hy}function gs(n){return n>=nr&&n<=Jo||n>=ws&&n<=oi}function F_(n){return n>=nr&&n<=qh||n>=ws&&n<=D_||jt(n)}function Hl(n){return n===Vs||n===Uh}function Zv(n){return Vh<=n&&n<=N_}function Hi(n){return n===To||n===bo||n===Np}var No=class n{file;offset;line;col;constructor(e,t,s,r){this.file=e,this.offset=t,this.line=s,this.col=r}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let t=this.file.content,s=t.length,r=this.offset,i=this.line,o=this.col;for(;r>0&&e<0;)if(r--,e++,t.charCodeAt(r)==Vs){i--;let l=t.substring(0,r-1).lastIndexOf(String.fromCharCode(Vs));o=l>0?r-l:r}else o--;for(;r<s&&e>0;){let a=t.charCodeAt(r);r++,e--,a==Vs?(i++,o=0):o++}return new n(this.file,r,i,o)}getContext(e,t){let s=this.file.content,r=this.offset;if(r!=null){r>s.length-1&&(r=s.length-1);let i=r,o=0,a=0;for(;o<e&&r>0&&(r--,o++,!(s[r]==` 11`&&++a==t)););for(o=0,a=0;o<e&&i<s.length-1&&(i++,o++,!(s[i]==` 12`&&++a==t)););return{before:s.substring(r,this.offset),after:s.substring(this.offset,i+1)}}return null}},jl=class{content;url;constructor(e,t){this.content=e,this.url=t}},$=class{start;end;fullStart;details;constructor(e,t,s=e,r=null){this.start=e,this.end=t,this.fullStart=s,this.details=r}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},as=(function(n){return n[n.WARNING=0]="WARNING",n[n.ERROR=1]="ERROR",n})(as||{}
12),R=class extends Error{span;msg;level;relatedError;constructor(e,t,s=as.ERROR,r){super(t),this.span=e,this.msg=t,this.level=s,this.relatedError=r,Object.setPrototypeOf(this,new.target.prototype)}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${as[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};function B_(n,e,t){let s=`in ${n} ${e} in ${t}`,r=new jl("",s);return new $(new No(r,-1,-1,-1),new No(r,-1,-1,-1))}var O_=0;function $_(n){if(!n||!n.reference)return null;let e=n.reference;if(e.__anonymousType)return e.__anonymousType;if(e.__forward_ref__)return"__forward_ref__";let t=Iy(e);return t.indexOf("(")>=0?(t=`anonymous_${O_++}`,e.__anonymousType=t):t=Ms(t),t}function Ms(n){return n.replace(/\W/g,"_")}var eS='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',Ip=class extends hp{constructor(){super(!1)}visitWrappedNodeExpr(e,t){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}visitDeclareVarStmt(e,t){return t.print(e,`var ${e.name}`),e.value&&(t.print(e," = "),e.value.visitExpression(this,t)),t.println(e,";"),null}visitTaggedTemplateLiteralExpr(e,t){let s=e.template.elements;return e.tag.visitExpression(this,t),t.print(e,`(${eS}(`),t.print(e,`[${s.map(r=>Rs(r.text,!1)).join(", ")}], `),t.print(e,`[${s.map(r=>Rs(r.rawText,!1)).join(", ")}])`),e.template.expressions.forEach(r=>{t.print(e,", "),r.visitExpression(this,t)}),t.print(e,")"),null}visitTemplateLiteralExpr(e,t){t.print(e,"`");for(let s=0;s<e.elements.length;s++){e.elements[s].visitExpression(this,t);let r=s<e.expressions.length?e.expressions[s]:null;r!==null&&(t.print(r,"${"),r.visitExpression(this,t),t.print(r,"}"))}t.print(e,"`")}visitTemplateLiteralElementExpr(e,t){return t.print(e,e.rawText),null}visitFunctionExpr(e,t){return t.print(e,`function${e.name?" "+e.name:""}(`),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print(e,"}"),null}visitArrowFunctionExpr(e,t){if(t.print(e,"("),this._visitParams(e.params,t),t.print(e,") =>"),Array.isArray(e.body))t.println(e,"{"),t.incIndent(),this.visitAllStatements(e.body,t),t.decIndent(),t.print(e,"}");else{let s=e.body instanceof rn;s&&t.print(e,"("),e.body.visitExpression(this,t),s&&t.print(e,")")}return null}visitDeclareFunctionStmt(e,t){return t.print(e,`function ${e.name}(`),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println(e,"}"),null}visitLocalizedString(e,t){t.print(e,`$localize(${eS}(`);let s=[e.serializeI18nHead()];for(let r=1;r<e.messageParts.length;r++)s.push(e.serializeI18nTemplatePart(r));return t.print(e,`[${s.map(r=>Rs(r.cooked,!1)).join(", ")}], `),t.print(e,`[${s.map(r=>Rs(r.raw,!1)).join(", ")}])`),e.expressions.forEach(r=>{t.print(e,", "),r.visitExpression(this,t)}),t.print(e,")"),null}_visitParams(e,t){this.visitAllObjects(s=>t.print(null,s.name),e,t,",")}},Qa;function U_(){if(Qa===void 0){let n=Vi.trustedTypes;if(Qa=null,n)try{Qa=n.createPolicy("angular#unsafe-jit",{createScript:e=>e})}catch(e){}}return Qa}function V_(n){return U_()?.createScript(n)||n}function tS(...n){if(!Vi.trustedTypes)return new Function(...n);let e=n.slice(0,-1).join(","),t=n[n.length-1],s=`(function anonymous(${e} 13) { ${t} 14})`,r=Vi.eval(V_(s));return r.bind===void 0?new Function(...n):(r.toString=()=>s,r.bind(Vi))}var Dp=class{evaluateStatements(e,t,s,r){let i=new Pp(s),o=pp.createRoot();return t.length>0&&!q_(t[0])&&(t=[S("use strict").toStmt(),...t]),i.visitAllStatements(t,o),i.createReturnStmt(o),this.evaluateCode(e,o,i.getArgs(),r)}evaluateCode(e,t,s,r){let i=`"use strict";${t.toSource()} 15//# sourceURL=${e}`,o=[],a=[];for(let c in s)a.push(s[c]),o.push(c);if(r){let c=tS(...o.concat("return null;")).toString(),p=c.slice(0,c.indexOf("return null;")).split(` 16`).length-1;i+=` 17${t.toSourceMapGenerator(e,p).toJsComment()}`}let l=tS(...o.concat(i));return this.executeFunction(l,a)}executeFunction(e,t){return e(...t)}},Pp=class extends Ip{refResolver;_evalArgNames=[];_evalArgValues=[];_evalExportedVars=[];constructor(e){super(),this.refResolver=e}createReturnStmt(e){new $e(new rn(this._evalExportedVars.map(s=>
17new Vr(s,te(s),!1)))).visitStatement(this,e)}getArgs(){let e={};for(let t=0;t<this._evalArgNames.length;t++)e[this._evalArgNames[t]]=this._evalArgValues[t];return e}visitExternalExpr(e,t){return this._emitReferenceToExternal(e,this.refResolver.resolveExternalReference(e.value),t),null}visitWrappedNodeExpr(e,t){return this._emitReferenceToExternal(e,e.node,t),null}visitDeclareVarStmt(e,t){return e.hasModifier(Ke.Exported)&&this._evalExportedVars.push(e.name),super.visitDeclareVarStmt(e,t)}visitDeclareFunctionStmt(e,t){return e.hasModifier(Ke.Exported)&&this._evalExportedVars.push(e.name),super.visitDeclareFunctionStmt(e,t)}_emitReferenceToExternal(e,t,s){let r=this._evalArgValues.indexOf(t);if(r===-1){r=this._evalArgValues.length,this._evalArgValues.push(t);let i=$_({reference:t})||"val";this._evalArgNames.push(`jit_${i}_${r}`)}s.print(e,this._evalArgNames[r])}};function q_(n){return n.isEquivalent(S("use strict").toStmt())}function nS(n){let e=new ms;n.providers!==null&&e.set("providers",n.providers),n.imports.length>0&&e.set("imports",me(n.imports));let t=I(d.defineInjector).callFn([e.toLiteralMap()],void 0,!0),s=H_(n);return{expression:t,type:s,statements:[]}}function H_(n){return new Yt(I(d.InjectorDeclaration,[new Yt(n.type.type)]))}var Mp=class{context;constructor(e){this.context=e}resolveExternalReference(e){if(e.moduleName!=="@angular/core")throw new Error(`Cannot resolve external reference to ${e.moduleName}, only references to @angular/core are supported.`);if(!this.context.hasOwnProperty(e.name))throw new Error(`No value provided for @angular/core symbol '${e.name}'.`);return this.context[e.name]}},zl=(function(n){return n[n.Inline=0]="Inline",n[n.SideEffect=1]="SideEffect",n[n.Omit=2]="Omit",n})(zl||{}),ls=(function(n){return n[n.Global=0]="Global",n[n.Local=1]="Local",n})(ls||{});function j_(n){let e=[],t=new ms;if(t.set("type",n.type.value),n.kind===ls.Global&&n.bootstrap.length>0&&t.set("bootstrap",Fs(n.bootstrap,n.containsForwardDecls)),n.selectorScopeMode===zl.Inline)n.declarations.length>0&&t.set("declarations",Fs(n.declarations,n.containsForwardDecls)),n.imports.length>0&&t.set("imports",Fs(n.imports,n.containsForwardDecls)),n.exports.length>0&&t.set("exports",Fs(n.exports,n.containsForwardDecls));else if(n.selectorScopeMode===zl.SideEffect){let i=G_(n);i!==null&&e.push(i)}n.schemas!==null&&n.schemas.length>0&&t.set("schemas",me(n.schemas.map(i=>i.value))),n.id!==null&&(t.set("id",n.id),e.push(I(d.registerNgModuleType).callFn([n.type.value,n.id]).toStmt()));let s=I(d.defineNgModule).callFn([t.toLiteralMap()],void 0,!0),r=W_(n);return{expression:s,type:r,statements:e}}function z_(n){let e=new ms;return e.set("type",new ne(n.type)),n.bootstrap!==void 0&&e.set("bootstrap",new ne(n.bootstrap)),n.declarations!==void 0&&e.set("declarations",new ne(n.declarations)),n.imports!==void 0&&e.set("imports",new ne(n.imports)),n.exports!==void 0&&e.set("exports",new ne(n.exports
17)),n.schemas!==void 0&&e.set("schemas",new ne(n.schemas)),n.id!==void 0&&e.set("id",new ne(n.id)),I(d.defineNgModule).callFn([e.toLiteralMap()])}function W_(n){if(n.kind===ls.Local)return new Yt(n.type.value);let{type:e,declarations:t,exports:s,imports:r,includeImportTypes:i,publicDeclarationTypes:o}=n;return new Yt(I(d.NgModuleDeclaration,[new Yt(e.type),o===null?Fu(t):X_(o),i?Fu(r):An,Fu(s)]))}function G_(n){let e=new ms;if(n.kind===ls.Global?n.declarations.length>0&&e.set("declarations",Fs(n.declarations,n.containsForwardDecls)):n.declarationsExpression&&e.set("declarations",n.declarationsExpression),n.kind===ls.Global?n.imports.length>0&&e.set("imports",Fs(n.imports,n.containsForwardDecls)):n.importsExpression&&e.set("imports",n.importsExpression),n.kind===ls.Global?n.exports.length>0&&e.set("exports",Fs(n.exports,n.containsForwardDecls)):n.exportsExpression&&e.set("exports",n.exportsExpression),n.kind===ls.Local&&n.bootstrapExpression&&e.set("bootstrap",n.bootstrapExpression),Object.keys(e.values).length===0)return null;let t=new At(I(d.setNgModuleScope),[n.type.value,e.toLiteralMap()]),s=a_(t),r=new cs([],[s.toStmt()]);return new At(r,[]).toStmt()}function Fu(n){let e=n.map(t=>Qo(t.type));return n.length>0?Je(me(e)):An}function X_(n){let e=n.map(t=>Qo(t));return n.length>0?Je(me(e)):An}function sS(n){let e=[];e.push({key:"name",value:S(n.pipeName??n.name),quoted:!1}),e.push({key:"type",value:n.type.value,quoted:!1}),e.push({key:"pure",value:S(n.pure),quoted:!1}),n.isStandalone===!1&&e.push({key:"standalone",value:S(!1),quoted:!1});
17let t=I(d.definePipe).callFn([Kt(e)],void 0,!0),s=Q_(n);return{expression:t,type:s,statements:[]}}function Q_(n){return new Yt(I(d.PipeDeclaration,[Ec(n.type.type,n.typeArgumentCount),new Yt(new Ze(n.pipeName)),new Yt(new Ze(n.isStandalone))]))}var Kr=(function(n){return n[n.Directive=0]="Directive",n[n.Pipe=1]="Pipe",n[n.NgModule=2]="NgModule",n})(Kr||{}),Y_=new Set(["inherit","initial","revert","unset","alternate","alternate-reverse","normal","reverse","backwards","both","forwards","none","paused","running","ease","ease-in","ease-in-out","ease-out","linear","step-start","step-end","end","jump-both","jump-end","jump-none","jump-start","start"]),K_=["@media","@supports","@document","@layer","@container","@scope","@starting-style"],Lp=class{shimCssText(e,t,s=""){let r=[];e=e.replace(fC,a=>{if(a.match(dC))r.push(a);else{let l=a.match(hC);r.push(l?.join("")??"")}return jh}),e=this._insertDirectives(e);let i=this._scopeCssText(e,t,s),o=0;return i.replace(mC,()=>r[o++])}_insertDirectives(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)}_scopeKeyframesRelatedCss(e,t){let s=new Set,r=Ya(e,i=>this._scopeLocalKeyframeDeclarations(i,t,s));return Ya(r,i=>this._scopeAnimationRule(i,t,s))}_scopeLocalKeyframeDeclarations(e,t,s){return ce(E({},e),{selector:e.selector.replace(/(^@(?:-webkit-)?keyframes(?:\s+))(['"]?)(.+)\2(\s*)$/,(r,i,o,a,l)=>(s.add(oS(a,o)),`${i}${o}${t}_${a}${o}${l}`))})}_scopeAnimationKeyframe(e,t,s){return e.replace(/^(\s*)(['"]?)(.+?)\2(\s*)$/,(r,i,o,a,l)=>(a=`${s.has(oS(a,o))?t+"_":""}${a}`,`${i}${o}${a}${o}${l}`))}_animationDeclarationKeyframesRe=/(^|\s+|,)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g;_scopeAnimationRule(e,t,s){let r=e.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation\s*:\s*),*([^;]+)/g,(i,o,a)=>o+a.replace(this._animationDeclarationKeyframesRe,(l,c,p="",h,f)=>h?`${c}${this._scopeAnimationKeyframe(`${p}${h}${p}`,t,s)}`:Y_.has(f)?l:`${c}${this._scopeAnimationKeyframe(f,t,s)}`));return r=r.replace(/((?:^|\s+|;)(?:-webkit-)?animation-name(?:\s*):(?:\s*))([^;]+)/g,(i,o,a)=>`${o}${a.split(",").map(l=>this._scopeAnimationKeyframe(l,t,s)).join(",")}`),ce(E({},e),{content:r})}_insertPolyfillDirectivesInCssText(e){return e.replace(Z_,function(...t){return t[2]+"{"})}_insertPolyfillRulesInCssText(e){return e.replace(eC,(...t)=>{let s=t[0].replace(t[1],"").replace(t[2],"");return t[4]+s})}_scopeCssText(e,t,s){let r=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),t&&(e=this._scopeKeyframesRelatedCss(e,t),e=this._scopeSelectors(e,t,s)),e=e+` 18`+r,e.trim()}_extractUnscopedRulesFromCssText(e){let t="",s;for(rS.lastIndex=0;(s=rS.exec(e))!==null;){let r=s[0].replace(s[2],"").replace(s[1],s[4]);t+=r+` 19 20`}return t}_convertColonHost(e){return e.replace(rC,(t,s,r)=>{if(s){let i=[];for(let o of this._splitOnTopLevelCommas(s,!0)){let a=o.trim();if(!a)break;let l=ss+a.replace(Wl,"")+r;i.push(l)}return i.join(",")}else return ss+r})}*_splitOnTopLevelCommas(e,t){let s=e.length,r=0,i=0;for(let o=0;o<s;o++){let a=e.charCodeAt(o);if(a===pt)r++;else if(a===Fe){if(r--,r<0&&t){yield e.slice(i,o);return}}else a===it&&r===0&&(yield e.slice(i,o),i=o+1)}yield e.slice(i)}_convertColonHostContext(e){let t=[];for(let s of this._splitOnTopLevelCommas(e,!1))t.push(this._convertColonHostContextInSelectorPart(s));return t.join(",")}_convertColonHostContextInSelectorPart(e){return e.replace(oC,(t,s)=>{let r=[[]],i=t.indexOf(kr);for(;i!==-1;){let o=t.substring(i+kr.length);if(!o||o[0]!=="("){t=o,i=t.indexOf(kr);continue}let a=[],l=0;for(let p of this._splitOnTopLevelCommas(o.substring(1),!0)){l=l+p.length+1;let h=p.trim();h&&a.push(h)}let c=r.length;bC(r,a.length);for(let p=0;p<a.length;p++)for(let h=0;h<c;h++)r[h+p*c].push(a[p]);t=o.substring(l+1),i=t.indexOf(kr)}return r.map(o=>CC(o,t,s)).join(", ")})}_convertShadowDOMSelectors(e){return lC.reduce((t,s)=>t.replace(s," "),e)}_scopeSelectors(e,t,s){return Ya(e,r=>{let i=r.selector,o=r.content;return r.selector[0]!=="@"?i=this._scopeSelector({selector:i,scopeSelector:t,hostSelector:s,isParentSelector:!0}
20):K_.some(a=>r.selector.startsWith(a))?o=this._scopeSelectors(r.content,t,s):(r.selector.startsWith("@font-face")||r.selector.startsWith("@page"))&&(o=this._stripScopingSelectors(r.content)),new Io(i,o)})}_stripScopingSelectors(e){return Ya(e,t=>{let s=t.selector.replace(iS," ").replace(Bu," ");return new Io(s,t.content)})}_safeSelector;_shouldScopeIndicator;_scopeSelector({selector:e,scopeSelector:t,hostSelector:s,isParentSelector:r=!1}){let i=/ ?,(?!(?:[^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\))) ?/;return e.split(i).map(o=>o.split(iS)).map(o=>{let[a,...l]=o;return[(p=>this._selectorNeedsScoping(p,t)?this._applySelectorScope({selector:p,scopeSelector:t,hostSelector:s,isParentSelector:r}):p)(a),...l].join(" ")}).join(", ")}_selectorNeedsScoping(e,t){return!this._makeScopeMatcher(t).test(e)}_makeScopeMatcher(e){let t=/\[/g,s=/\]/g;return e=e.replace(t,"\\[").replace(s,"\\]"),new RegExp("^("+e+")"+cC,"m")}_applySimpleSelectorScope(e,t,s){if(Pr.lastIndex=0,Pr.test(e)){let r=`[${s}]`,i=e;for(;i.match(Bu);)i=i.replace(Bu,(o,a)=>a.replace(/([^:\)]*)(:*)(.*)/,(l,c,p,h)=>c+r+p+h));return i.replace(Pr,r)}return t+" "+e}_applySelectorScope({selector:e,scopeSelector:t,hostSelector:s,isParentSelector:r}){let i=/\[is=([^\]]*)\]/g;t=t.replace(i,(y,...x)=>x[0]);let o=`[${t}]`,a=y=>{let x=y.trim();if(!x)return y;if(y.includes(ss)){if(x=this._applySimpleSelectorScope(y,t,s),!y.match(aC)){let[_,T,F,w]=x.match(/([^:]*)(:*)([\s\S]*)/);x=T+o+F+w}}else{let _=y.replace(Pr,"");if(_.length>0){let T=_.match(/([^:]*)(:*)([\s\S]*)/);T&&(x=T[1]+o+T[2]+T[3])}}return x},l=y=>{let x="",_=[],T;for(;(T=Ti.exec(y))!==null;){let F=1,w=Ti.lastIndex;for(;w<y.length;){let G=y[w];if(w++,G==="("){F++;continue}if(G===")"){if(F--,F===0)break;continue}}_.push(`${T[0]}${y.slice(Ti.lastIndex,w)}`),Ti.lastIndex=w}return _.join("")===y?x=_.map(F=>{let[w]=F.match(Ti)??[],G=F.slice(w?.length,-1);G.includes(ss)&&(this._shouldScopeIndicator=!0);let Z=this._scopeSelector({selector:G,scopeSelector:t,hostSelector:s});return`${w}${Z})`}).join(""):(this._shouldScopeIndicator=this._shouldScopeIndicator||y.includes(ss),x=this._shouldScopeIndicator?a(y):y),x};r&&(this._safeSelector=new Rp(e),e=this._safeSelector.content());let c="",p=0,h,f=/( |>|\+|~(?!=))(?!([^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\)))\s*/g,g=e.includes(ss);for((r||this._shouldScopeIndicator)&&(this._shouldScopeIndicator=!g);(h=f.exec(e))!==null;){let y=h[1],x=e.slice(p,h.index);if(x.match(/__esc-ph-(\d+)__/)&&e[h.index+1]?.match(/[a-fA-F\d]/))continue;let _=l(x);c+=`${_} ${y} `,p=f.lastIndex}let m=e.substring(p);return c+=l(m),this._safeSelector.restore(c)}_insertPolyfillHostInCssText(e){return e.replace(pC,kr).replace(uC,Wl)}},Rp=class{placeholders=[];index=0;_content;constructor(e){e=this._escapeRegexMatches(e,/(\[[^\]]*\])/g),e=e.replace(/(\\.)/g,(t,s)=>{let r=`__esc-ph-${this.index}__`;return this.placeholders.push(s),this.index++,r}),this._content=e.replace(sC,(t,s,r)=>{let i=`__ph-${this.index}__`;return this.placeholders.push(`(${r})`),this.index++,s+i})}restore(e){return e.replace(/__(?:ph|esc-ph)-(\d+)__/g,(t,s)=>this.placeholders[+s])}content(){return this._content}_escapeRegexMatches(e,t){return e.replace(t,(s,r)=>{let i=`__ph-${this.index}__`;return this.placeholders.push(r),this.index++,i})}},J_="(:(where|is)\\()?",Ti=/:(where|is)\(/gi,Z_=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,eC=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,rS=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Wl="-shadowcsshost",kr="-shadowcsscontext",Fp="[^)(]*",tC=String.raw`(?:\(${Fp}\)|${Fp})+?`,nC=String.raw`(?:\(${tC}\)|${Fp})+?`,Hh=String.raw`(?:\((${nC})\))`,sC=new RegExp(String.raw`(:nth-[-\w]+)`+Hh,"g"),rC=new RegExp(Wl+Hh+"?([^,{]*)","gim"),iC=kr+Hh+"?([^{]*)",oC=new RegExp(`${J_}(${iC})`,"gim"),ss=Wl+"-no-combinator",aC=new RegExp(`${ss}(?![^(]*\\))`,"g"),Bu=/-shadowcsshost-no-combinator([^\s,]*)/,lC=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],iS=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,cC="([>\\s~+[.,{:][\\s\\S]*)?$",Pr=/-shadowcsshost/gim,uC=/:host/gim,pC=/:host-context/gim,hC=/\r?\n/g,fC=/\/\*[\s\S]*?\*\//g,dC=/\/\*\s*#\s*source(Mapping)?URL=/g,jh="%COMMENT%",mC=new RegExp(jh,"g"),Ou="%BLOCK%",gC=new RegExp(`(\\s*(?:${jh}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),vC=new Map([["{","}"]]),Ky="%COMMA_IN_PLACEHOLDER%",Jy="%SEMI_IN_PLACEHOLDER%",Zy="%COLON_IN_PLACEHOLDER%",SC=new RegExp(Ky,"g"),yC=new RegExp(Jy,"g"),EC=new RegExp(Zy,"g"),Io=class{selector;content;constructor(e,t){this.selector=e,this.content=t}};function Ya(n,e){let t=xC(n),s=wC(t,vC,Ou),r=0,i=s.escapedString.replace(gC,(...o)=>{let a=o[2],l="",c=o[4],p="";c&&c.startsWith("{"+Ou)&&(l=s.blocks[r++],c=c.substring(Ou.length+1),p="{");let h=e(new Io(a,l));return`${o[1]}${h.selector}${o[3]}${p}${h.content}${c}`});return _C(i)}var Bp=class{escapedString;blocks;constructor(e,t){this.escapedString=e,this.blocks=t}};function wC(n,e,t){let s=[],r=[],i=0,o=0,a=-1,l,c;for(let p=0;p<n.length;p++){let h=n[p];h==="\\"?p++:h===c?(i--,i===0&&(r.push(n.substring(a,p)),s.push(t),o=p,a=-1,l=c=void 0)):h===l?i++:i===0&&e.has(h
20)&&(l=h,c=e.get(h),i=1,a=p+1,s.push(n.substring(o,a)))}return a!==-1?(r.push(n.substring(a)),s.push(t)):s.push(n.substring(o)),new Bp(s.join(""),r)}var AC={";":Jy,",":Ky,":":Zy};function xC(n){let e=n,t=null;for(let s=0;s<e.length;s++){let r=e[s];if(r==="\\")s++;else if(t!==null)if(r===t)t=null;else{let i=AC[r];i&&(e=`${e.substr(0,s)}${i}${e.substr(s+1)}`,s+=i.length-1)}else(r==="'"||r==='"')&&(t=r)}return e}function _C(n){let e=n.replace(SC,",");return e=e.replace(yC,";"),e=e.replace(EC,":"),e}function oS(n,e){return e?n.replace(/((?:^|[^\\])(?:\\\\)*)\\(?=['"])/g,"$1"):n}function CC(n,e,t=""){let s=ss;Pr.lastIndex=0;let r=Pr.test(e);if(n.length===0)return s+e;let i=[n.pop()||""];for(;n.length>0;){let o=i.length,a=n.pop();for(let l=0;l<o;l++){let c=i[l];i[o*2+l]=c+" "+a,i[o+l]=a+" "+c,i[l]=a+c}}return i.map(o=>r?`${t}${o}${e}`:`${t}${o}${s}${e}, ${t}${o} ${s}${e}`).join(",")}function bC(n,e){let t=n.length;for(let s=1;s<e;s++)for(let r=0;r<t;r++)n[r+s*t]=n[r].slice(0)}var u=(function(n){return n[n.ListEnd=0]="ListEnd",n[n.Statement=1]="Statement",n[n.Variable=2]="Variable",n[n.ElementStart=3]="ElementStart",n[n.Element=4]="Element",n[n.Template=5]="Template",n[n.ElementEnd=6]="ElementEnd",n[n.ContainerStart=7]="ContainerStart",n[n.Container=8]="Container",n[n.ContainerEnd=9]="ContainerEnd",n[n.DisableBindings=10]="DisableBindings",n[n.ConditionalCreate=11]="ConditionalCreate",n[n.ConditionalBranchCreate=12]="ConditionalBranchCreate",n[n.Conditional=13]="Conditional",n[n.EnableBindings=14]="EnableBindings",n[n.Text=15]="Text",n[n.Listener=16]="Listener",n[n.InterpolateText=17]="InterpolateText",n[n.Binding=18]="Binding",n[n.Property=19]="Property",n[n.StyleProp=20]="StyleProp",n[n.ClassProp=21]="ClassProp",n[n.StyleMap=22]="StyleMap",n[n.ClassMap=23]="ClassMap",n[n.Advance=24]="Advance",n[n.Pipe=25]="Pipe",n[n.Attribute=26]="Attribute",n[n.ExtractedAttribute=27]="ExtractedAttribute",n[n.Defer=28]="Defer",n[n.DeferOn=29]="DeferOn",n[n.DeferWhen=30]="DeferWhen",n[n.I18nMessage=31]="I18nMessage",n[n.DomProperty=32]="DomProperty",n[n.Namespace=33]="Namespace",n[n.ProjectionDef=34]="ProjectionDef",n[n.Projection=35]="Projection",n[n.RepeaterCreate=36]="RepeaterCreate",n[n.Repeater=37]="Repeater",n[n.TwoWayProperty=38]="TwoWayProperty",n[n.TwoWayListener=39]="TwoWayListener",n[n.DeclareLet=40]="DeclareLet",n[n.StoreLet=41]="StoreLet",n[n.I18nStart=42]="I18nStart",n[n.I18n=43]="I18n",n[n.I18nEnd=44]="I18nEnd",n[n.I18nExpression=45]="I18nExpression",n[n.I18nApply=46]="I18nApply",n[n.IcuStart=47]="IcuStart",n[n.IcuEnd=48]="IcuEnd",n[n.IcuPlaceholder=49]="IcuPlaceholder",n[n.I18nContext=50]="I18nContext",n[n.I18nAttributes=51]="I18nAttributes",n[n.SourceLocation=52]="SourceLocation",n[n.Animation=53]="Animation",n[n.AnimationString=54]="AnimationString",n[n.AnimationBinding=55]="AnimationBinding",n[n.AnimationListener=56]="AnimationListener",n[n.Control=57]="Control",n[n.ControlCreate=58]="ControlCreate",n})(u||{}),M=(function(n){return n[n.LexicalRead=0]="LexicalRead",n[n.Context=1]="Context",n[n.TrackContext=2]="TrackContext",n[n.ReadVariable=3]="ReadVariable",n[n.NextContext=4]="NextContext",n[n.Reference=5]="Reference",n[n.StoreLet=6]="StoreLet",n[n.ContextLetReference=7]="ContextLetReference",n[n.GetCurrentView=8]="GetCurrentView",n[n.RestoreView=9]="RestoreView",n[n.ResetView=10]="ResetView",n[n.PureFunctionExpr=11]="PureFunctionExpr",n[n.PureFunctionParameterExpr=12]="PureFunctionParameterExpr",n[n.PipeBinding=13]="PipeBinding",n[n.PipeBindingVariadic=14]="PipeBindingVariadic",n[n.SafePropertyRead=15]="SafePropertyRead",n[n.SafeKeyedRead=16]="SafeKeyedRead",n[n.SafeInvokeFunction=17]="SafeInvokeFunction",n[n.SafeTernaryExpr=18]="SafeTernaryExpr",n[n.EmptyExpr=19]="EmptyExpr",n[n.AssignTemporaryExpr=20]="AssignTemporaryExpr",n[n.ReadTemporaryExpr=21]="ReadTemporaryExpr",n[n.SlotLiteralExpr=22]="SlotLiteralExpr",n[n.ConditionalCase=23]="ConditionalCase",n[n.ConstCollected=24]="ConstCollected",n[n.TwoWayBindingSet=25]="TwoWayBindingSet",n[n.ArrowFunction=26]="ArrowFunction",n})(M||{}),Gt=(function(n){return n[n.None=0]="None",n[n.AlwaysInline=1]="AlwaysInline",n})(Gt||{}),Qe=(function(n){return n[n.Context=0]="Context",n[n.Identifier=1]="Identifier",n[n.SavedView=2]="SavedView",n[n.Alias=3]="Alias",n})(Qe||{}),P=(function(n){return n[n.Attribute=0]="Attribute",n[n.ClassName=1]="ClassName",n[n.StyleProperty=2]="StyleProperty",n[n.Property=3]="Property",n[n.Template=4]="Template",n[n.I18n=5]="I18n",n[n.LegacyAnimation=6]="LegacyAnimation",n[n.TwoWayProperty=7]="TwoWayProperty",n[n.Animation=8]="Animation",n})(P||{}),Do=(function(n){return n[n.Creation=0]="Creation",n[n.Postproccessing=1]="Postproccessing",n})(Do||{}),ai=(function(n){return n[n.I18nText=0]="I18nText",n[n.I18nAttribute=1]="I18nAttribute",n})(ai||{}),we=(function(n){return n[n.None=0]="None",n[n.ElementTag=1]="ElementTag",n[n.TemplateTag=2]="TemplateTag",n[n.OpenTag=4]="OpenTag",n[n.CloseTag=8]="CloseTag",n[n.ExpressionIndex=16]="ExpressionIndex",n})(we||{}),Be=(function(n){return n[n.HTML=0]="HTML",n[n.SVG=1]="SVG",n[n.Math=2]="Math",n})(Be||{}
20),Se=(function(n){return n[n.Idle=0]="Idle",n[n.Immediate=1]="Immediate",n[n.Timer=2]="Timer",n[n.Hover=3]="Hover",n[n.Interaction=4]="Interaction",n[n.Viewport=5]="Viewport",n[n.Never=6]="Never",n})(Se||{}),Os=(function(n){return n[n.RootI18n=0]="RootI18n",n[n.Icu=1]="Icu",n[n.Attr=2]="Attr",n})(Os||{}),Et=(function(n){return n[n.NgTemplate=0]="NgTemplate",n[n.Structural=1]="Structural",n[n.Block=2]="Block",n})(Et||{}),A=(()=>{class n{static nextListId=0;debugListId=n.nextListId++;head={kind:u.ListEnd,next:null,prev:null,debugListId:this.debugListId};tail={kind:u.ListEnd,next:null,prev:null,debugListId:this.debugListId};constructor(){this.head.next=this.tail,this.tail.prev=this.head}push(t){if(Array.isArray(t)){for(let r of t)this.push(r);return}n.assertIsNotEnd(t),n.assertIsUnowned(t),t.debugListId=this.debugListId;let s=this.tail.prev;t.prev=s,s.next=t,t.next=this.tail,this.tail.prev=t}prepend(t){if(t.length===0)return;for(let i of t)n.assertIsNotEnd(i),n.assertIsUnowned(i),i.debugListId=this.debugListId;let s=this.head.next,r=this.head;
20for(let i of t)r.next=i,i.prev=r,r=i;r.next=s,s.prev=r}*[Symbol.iterator](){let t=this.head.next;for(;t!==this.tail;){n.assertIsOwned(t,this.debugListId);let s=t.next;yield t,t=s}}*reversed(){let t=this.tail.prev;for(;t!==this.head;){n.assertIsOwned(t,this.debugListId);let s=t.prev;yield t,t=s}}static replace(t,s){n.assertIsNotEnd(t),n.assertIsNotEnd(s),n.assertIsOwned(t),n.assertIsUnowned(s),s.debugListId=t.debugListId,t.prev!==null&&(t.prev.next=s,s.prev=t.prev),t.next!==null&&(t.next.prev=s,s.next=t.next),t.debugListId=null,t.prev=null,t.next=null}static replaceWithMany(t,s){if(s.length===0){n.remove(t);return}n.assertIsNotEnd(t),n.assertIsOwned(t);let r=t.debugListId;t.debugListId=null;for(let p of s)n.assertIsNotEnd(p),n.assertIsUnowned(p);let{prev:i,next:o}=t;t.prev=null,t.next=null;let a=i;for(let p of s)n.assertIsUnowned(p),p.debugListId=r,a.next=p,p.prev=a,p.next=null,a=p;let l=s[0],c=a;i!==null&&(i.next=l,l.prev=i),o!==null&&(o.prev=c,c.next=o)}static remove(t){n.assertIsNotEnd(t),n.assertIsOwned(t),t.prev.next=t.next,t.next.prev=t.prev,t.debugListId=null,t.prev=null,t.next=null}static insertBefore(t,s){if(Array.isArray(t)){for(let r of t)n.insertBefore(r,s);return}if(n.assertIsOwned(s),s.prev===null)throw new Error("AssertionError: illegal operation on list start");n.assertIsNotEnd(t),n.assertIsUnowned(t),t.debugListId=s.debugListId,t.prev=null,s.prev.next=t,t.prev=s.prev,t.next=s,s.prev=t}static insertAfter(t,s){if(n.assertIsOwned(s),s.next===null)throw new Error("AssertionError: illegal operation on list end");n.assertIsNotEnd(t),n.assertIsUnowned(t),t.debugListId=s.debugListId,s.next.prev=t,t.next=s.next,t.prev=s,s.next=t}static assertIsUnowned(t){if(t.debugListId!==null)throw new Error(`AssertionError: illegal operation on owned node: ${u[t.kind]}`)}static assertIsOwned(t,s){if(t.debugListId===null)throw new Error(`AssertionError: illegal operation on unowned node: ${u[t.kind]}`);if(s!==void 0&&t.debugListId!==s)throw new Error(`AssertionError: node belongs to the wrong list (expected ${s}, actual ${t.debugListId})`)}static assertIsNotEnd(t){if(t.kind===u.ListEnd)throw new Error("AssertionError: illegal operation on list head or tail")}}return n})();function $t(n){return E({kind:u.Statement,statement:n},U)}function os(n,e,t,s){return E({kind:u.Variable,xref:n,variable:e,initializer:t,flags:s},U)}var U={debugListId:null,prev:null,next:null},eE=Symbol("ConsumesSlot"),zh=Symbol("DependsOnSlotContext"),cr=Symbol("ConsumesVars"),Zo=Symbol("UsesVarOffset"),Jt={[eE]:!0,numSlotsUsed:1},_t={[zh]:!0},Ct={[cr]:!0};function li(n){return n[eE]===!0}function Po(n){return n[zh]===!0}function $u(n){return n[cr]===!0}function aS(n){return n[Zo]===!0}function TC(n,e,t){return E(E(E({kind:u.InterpolateText,target:n,interpolation:e,sourceSpan:t},_t),Ct),U)}var Ie=class{strings;expressions;i18nPlaceholders;constructor(e,t,s){if(this.strings=e,this.expressions=t,this.i18nPlaceholders=s,s.length!==0&&s.length!==t.length)throw new Error(`Expected ${t.length} placeholders to match interpolation expression count, but got ${s.length}`)}};function sr(n,e,t,s,r,i,o,a,l,c,p){return E({kind:u.Binding,bindingKind:e,target:n,name:t,expression:s,unit:r,securityContext:i,isTextAttribute:o,isStructuralTemplateAttribute:a,templateKind:l,i18nContext:null,i18nMessage:c,sourceSpan:p},U)}function kC(n,e,t,s,r,i,o,a,l,c){return E(E(E({kind:u.Property,target:n,name:e,expression:t,bindingKind:s,securityContext:r,sanitizer:null,isStructuralTemplateAttribute:i,templateKind:o,i18nContext:a,i18nMessage:l,sourceSpan:c},_t),Ct),U)}function NC(n,e,t,s,r,i,o,a,l){return E(E(E({kind:u.TwoWayProperty,target:n,name:e,expression:t,securityContext:s,sanitizer:null,isStructuralTemplateAttribute:r,templateKind:i,i18nContext:o,i18nMessage:a,sourceSpan:l},_t),Ct),U)}function IC(n,e,t,s,r){return E(E(E({kind:u.StyleProp,target:n,name:e,expression:t,unit:s,sourceSpan:r},_t),Ct),U)}function DC(n,e,t,s){return E(E(E({kind:u.ClassProp,target:n,name:e,expression:t,sourceSpan:s},_t),Ct),U)}function PC(n,e,t){return E(E(E({kind:u.StyleMap,target:n,expression:e,sourceSpan:t},_t),Ct),U)}function MC(n,e,t){return E(E(E({kind:u.ClassMap,target:n,expression:e,sourceSpan:t},_t),Ct),U)}function lS(n,e,t,s,r,i,o,a,l,c){return E(E(E({kind:u.Attribute,target:n,namespace:e,name:t,expression:s,securityContext:r,sanitizer:null,isTextAttribute:i,isStru
20cturalTemplateAttribute:o,templateKind:a,i18nContext:null,i18nMessage:l,sourceSpan:c},_t),Ct),U)}function LC(n,e){return E({kind:u.Advance,delta:n,sourceSpan:e},U)}function tE(n,e,t,s){return E(E(E({kind:u.Conditional,target:n,test:e,conditions:t,processed:null,sourceSpan:s,contextValue:null},U),_t),Ct)}function RC(n,e,t,s){return E(E({kind:u.Repeater,target:n,targetSlot:e,collection:t,sourceSpan:s},U),_t)}function cS(n,e,t,s,r,i,o){return E({kind:u.AnimationBinding,name:n,target:e,animationKind:t,expression:s,i18nMessage:null,securityContext:r,sanitizer:null,sourceSpan:i,animationBindingKind:o},U)}function FC(n,e,t,s){return E(E(E({kind:u.DeferWhen,target:n,expr:e,modifier:t,sourceSpan:s},U),_t),Ct)}function nE(n,e,t,s,r,i,o,a,l,c,p){return E(E(E({kind:u.I18nExpression,context:n,target:e,i18nOwner:t,handle:s,expression:r,icuPlaceholder:i,i18nPlaceholder:o,resolutionTime:a,usage:l,name:c,sourceSpan:p},U),Ct),_t)}function BC(n,e,t){return E({kind:u.I18nApply,owner:n,handle:e,sourceSpan:t},U)}function OC(n,e,t,s){return E(E(E({kind:u.StoreLet,target:n,declaredName:e,value:t,sourceSpan:s},_t),Ct),U)}function $C(n,e){return E(E({kind:u.Control,sourceSpan:e,target:n},_t),U)}function kn(n){return n instanceof ge}var ge=class extends pe{constructor(e=null){super(null,e)}},Ge=class n extends ge{name;kind=M.LexicalRead;constructor(e){super(),this.name=e}visitExpression(e,t){}isEquivalent(e){return this.name===e.name}isConstant(){return!1}transformInternalExpressions(){}clone(){return new n(this.name)}},Gl=class n extends ge{target;targetSlot;offset;kind=M.Reference;constructor(e,t,s){super(),this.target=e,this.targetSlot=t,this.offset=s}visitExpression(){}isEquivalent(e){return e instanceof n&&e.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new n(this.target,this.targetSlot,this.offset)}},Mo=class n extends ge{target;value;sourceSpan;kind=M.StoreLet;[cr]=!0;[zh]=!0;constructor(e,t,s){super(),this.target=e,this.value=t,this.sourceSpan=s}visitExpression(){}isEquivalent(e){return e instanceof n&&e.target===this.target&&e.value.isEquivalent(this.value)}isConstant(){return!1}transformInternalExpressions(e,t){this.value=N(this.value,e,t)}clone(){return new n(this.target,this.value,this.sourceSpan)}},Lo=class n extends ge{target;targetSlot;kind=M.ContextLetReference;constructor(e,t){super(),this.target=e,this.targetSlot=t}visitExpression(){}isEquivalent(e){return e instanceof n&&e.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new n(this.target,this.targetSlot)}},vs=class n extends ge{view;kind=M.Context;constructor(e){super(),this.view=e}visitExpression(){}isEquivalent(e){return e instanceof n&&e.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new n(this.view)}},Op=class n extends ge{view;kind=M.TrackContext;constructor(e){super(),this.view=e}visitExpression(){}isEquivalent(e){return e instanceof n&&e.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new n(this.view)}},Xl=class n extends ge{kind=M.NextContext;steps=1;visitExpression(){}isEquivalent(e){return e instanceof n&&e.steps===this.steps}isConstant(){return!1}transformInternalExpressions(){}clone(){let e=new n;return e.steps=this.steps,e}},$p=class n extends ge{kind=M.GetCurrentView;constructor(){super()}visitExpression(){}isEquivalent(e){return e instanceof n}isConstant(){return!1}transformInternalExpressions(){}clone(){return new n}},Ro=class n extends ge{view;kind=M.RestoreView;constructor(e){super(),this.view=e}visitExpression(e,t){typeof this.view!="number"&&this.view.visitExpression(e,t)}isEquivalent(e){return!(e instanceof n)||typeof e.view!=typeof this.view?!1:typeof this.view=="number"?this.view===e.view:this.view.isEquivalent(e.view)}isConstant(){return!1}transformInternalExpressions(e,t){typeof this.view!="number"&&(this.view=N(this.view,e,t))}clone(){return new n(this.view instanceof pe?this.view.clone():this.view)}},Ql=class n extends ge{expr;kind=M.ResetView;constructor(e){super(),this.expr=e}visitExpression(e,t){this.expr.visitExpression(e,t)}isEquivalent(e){return e instanceof n&&this.expr.isEquivalent(e.expr)}isConstant(){return!1}transformInternalExpressions(e,t){this.expr=N(this.expr,e,t)}clone(){return new n(this.expr.clone())}},Yl=class n extends ge{target;value;kind=M.TwoWayBindingSet;constructor(e,t){super(),this.target=e,this.value=t}visitExpression(e,t){this.target.visitExpression(e,t),this.value.visitExpression(e,t)}isEquivalent(e){return this.target.isEquivalent(e.target)&&this.value.isEquivalent(e.value)}isConstant(){return!1}transformInternalExpressions(e,t){this.target=N(this.target,e,t),this.value=N(this.value,e,t)}clone(){return new n(this.target,this.value)}},$n=class n extends ge{xref;kind=M.ReadVariable;name=null;constructor(e){super(),this.xref=e}visitExpression(){}isEquivalent(e){return e instanceof n&&e.xref===this.xref}isConstant(){return!1}transformInternalExpressions(){}clone(){let e=new n(this.xref);return e.name=this.name,e}},rr=class n extends ge{kind=M.PureFunctionExpr;[cr]=!0;[Zo]=!0;varOffset=null;body;args;fn=null;constructor(e,t){super(),this.body=e,this.args=t}visitExpression(e,t){this.body?.visitExpression(e,t);for(let s of this.args)s.visitExpression(e,t)}isEquivalent(e){return!(e instanceof n)||e.args.length!==this.args.length?!1:e.body!==null&&this.body!==null&&e.body.isEquivalent(this.body)&&e.args.every((t,s)=>t.isEquivalent(this.args[s]))}isConstant(){return!1}transformInternalExpressions(e,t){this.body!==null?this.body=N(this.body,e,t|J.InChildOperation):this.fn!==null&&(this.fn=N(this.fn,e,t));for(let s=0;s<this.args.length;s++)this.args[s]=N(this.args[s],e,t)}clone(){let e=new n(this.body?.clone()??null,this.args.map(t=>t.clone()));
20return e.fn=this.fn?.clone()??null,e.varOffset=this.varOffset,e}},Ss=class n extends ge{index;kind=M.PureFunctionParameterExpr;constructor(e){super(),this.index=e}visitExpression(){}isEquivalent(e){return e instanceof n&&e.index===this.index}isConstant(){return!0}transformInternalExpressions(){}clone(){return new n(this.index)}},ir=class n extends ge{target;targetSlot;name;args;kind=M.PipeBinding;[cr]=!0;[Zo]=!0;varOffset=null;constructor(e,t,s,r){super(),this.target=e,this.targetSlot=t,this.name=s,this.args=r}visitExpression(e,t){for(let s of this.args)s.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){for(let s=0;s<this.args.length;s++)this.args[s]=N(this.args[s],e,t)}clone(){let e=new n(this.target,this.targetSlot,this.name,this.args.map(t=>t.clone()));return e.varOffset=this.varOffset,e}},Fo=class n extends ge{target;targetSlot;name;args;numArgs;kind=M.PipeBindingVariadic;[cr]=!0;[Zo]=!0;varOffset=null;constructor(e,t,s,r,i){super(),this.target=e,this.targetSlot=t,this.name=s,this.args=r,this.numArgs=i}visitExpression(e,t){this.args.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.args=N(this.args,e,t)}clone(){let e=new n(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return e.varOffset=this.varOffset,e}},Jr=class n extends ge{receiver;name;kind=M.SafePropertyRead;constructor(e,t){super(),this.receiver=e,this.name=t}get index(){return this.name}visitExpression(e,t){this.receiver.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.receiver=N(this.receiver,e,t)}clone(){return new n(this.receiver.clone(),this.name)}},Zr=class n extends ge{receiver;index;kind=M.SafeKeyedRead;constructor(e,t,s){super(s),this.receiver=e,this.index=t}visitExpression(e,t){this.receiver.visitExpression(e,t),this.index.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.receiver=N(this.receiver,e,t),this.index=N(this.index,e,t)}clone(){return new n(this.receiver.clone(),this.index.clone(),this.sourceSpan)}},or=class n extends ge{receiver;args;kind=M.SafeInvokeFunction;constructor(e,t){super(),this.receiver=e,this.args=t}visitExpression(e,t){this.receiver.visitExpression(e,t);for(let s of this.args)s.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.receiver=N(this.receiver,e,t);for(let s=0;s<this.args.length;s++)this.args[s]=N(this.args[s],e,t)}clone(){return new n(this.receiver.clone(),this.args.map(e=>e.clone()))}},ei=class n extends ge{guard;expr;kind=M.SafeTernaryExpr;constructor(e,t){super(),this.guard=e,this.expr=t}visitExpression(e,t){this.guard.visitExpression(e,t),this.expr.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.guard=N(this.guard,e,t),this.expr=N(this.expr,e,t)}clone(){return new n(this.guard.clone(),this.expr.clone())}},Bo=class n extends ge{kind=M.EmptyExpr;visitExpression(e,t){}isEquivalent(e){return e instanceof n}isConstant(){return!0}clone(){return new n}transformInternalExpressions(){}},Nn=class n extends ge{expr;xref;kind=M.AssignTemporaryExpr;name=null;constructor(e,t){super(),this.expr=e,this.xref=t}visitExpression(e,t){this.expr.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.expr=N(this.expr,e,t)}clone(){let e=new n(this.expr.clone(),this.xref);return e.name=this.name,e}},ys=class n extends ge{xref;kind=M.ReadTemporaryExpr;name=null;constructor(e){super(),this.xref=e}visitExpression(e,t){}isEquivalent(){return this.xref===this.xref}isConstant(){return!1}transformInternalExpressions(e,t){}clone(){let e=new n(this.xref);return e.name=this.name,e}},Kl=class n extends ge{slot;kind=M.SlotLiteralExpr;constructor(e){super(),this.slot=e}visitExpression(e,t){}isEquivalent(e){return e instanceof n&&e.slot===this.slot}isConstant(){return!0}clone(){return new n(this.slot)}transformInternalExpressions(){}},Jl=class n extends ge{expr;target;targetSlot;
20alias;kind=M.ConditionalCase;constructor(e,t,s,r=null){super(),this.expr=e,this.target=t,this.targetSlot=s,this.alias=r}visitExpression(e,t){this.expr!==null&&this.expr.visitExpression(e,t)}isEquivalent(e){return e instanceof n&&e.expr===this.expr}isConstant(){return!0}clone(){return new n(this.expr,this.target,this.targetSlot)}transformInternalExpressions(e,t){this.expr!==null&&(this.expr=N(this.expr,e,t))}},Oo=class n extends ge{expr;kind=M.ConstCollected;constructor(e){super(),this.expr=e}transformInternalExpressions(e,t){this.expr=e(this.expr,t)}visitExpression(e,t){this.expr.visitExpression(e,t)}isEquivalent(e){return e instanceof n?this.expr.isEquivalent(e.expr):!1}isConstant(){return this.expr.isConstant()}clone(){return new n(this.expr)}},Up=class n extends ge{parameters;body;kind=M.ArrowFunction;[cr]=!0;[Zo]=!0;contextName=Ot;currentViewName="view";varOffset=null;ops;constructor(e,t){super(),this.parameters=e,this.body=t,this.ops=new A,this.ops.push([$t(new $e(t,t.sourceSpan))])}visitExpression(e,t){for(let s of this.ops)Re(s,r=>{r.visitExpression(e,t)})}isEquivalent(e){return e instanceof n&&e.parameters.length===this.parameters.length&&e.parameters.every((t,s)=>t.isEquivalent(this.parameters[s]))&&e.body.isEquivalent(this.body)}isConstant(){return!1}transformInternalExpressions(e,t){for(let s of this.ops)De(s,e,t|(J.InChildOperation|J.InArrowFunctionOperation))}clone(){let e=new n(this.parameters,this.body);return e.varOffset=this.varOffset,e.ops=this.ops,e}};function Re(n,e){De(n,(t,s)=>(e(t,s),t),J.None)}var J=(function(n){return n[n.None=0]="None",n[n.InChildOperation=1]="InChildOperation",n[n.InArrowFunctionOperation=2]="InArrowFunctionOperation",n})(J||{});function Uu(n,e,t){for(let s=0;s<n.expressions.length;s++)n.expressions[s]=N(n.expressions[s],e,t)}function De(n,e,t){switch(n.kind){case u.StyleProp:case u.StyleMap:case u.ClassProp:case u.ClassMap:case u.AnimationString:case u.AnimationBinding:case u.Binding:n.expression instanceof Ie?Uu(n.expression,e,t):n.expression=N(n.expression,e,t);break;case u.Property:case u.DomProperty:case u.Attribute:n.expression instanceof Ie?Uu(n.expression,e,t):n.expression=N(n.expression,e,t),n.sanitizer=n.sanitizer&&N(n.sanitizer,e,t);break;case u.TwoWayProperty:n.expression=N(n.expression,e,t),n.sanitizer=n.sanitizer&&N(n.sanitizer,e,t);break;case u.I18nExpression:n.expression=N(n.expression,e,t);break;case u.InterpolateText:Uu(n.interpolation,e,t);break;case u.Statement:Zl(n.statement,e,t);break;case u.Variable:n.initializer=N(n.initializer,e,t);break;case u.Conditional:for(let s of n.conditions)s.expr!==null&&(s.expr=N(s.expr,e,t));n.processed!==null&&(n.processed=N(n.processed,e,t)),n.contextValue!==null&&(n.contextValue=N(n.contextValue,e,t));break;case u.Animation:case u.AnimationListener:case u.Listener:case u.TwoWayListener:for(let s of n.handlerOps)De(s,e,t|J.InChildOperation);break;case u.ExtractedAttribute:n.expression=n.expression&&N(n.expression,e,t),n.trustedValueFn=n.trustedValueFn&&N(n.trustedValueFn,e,t);break;case u.RepeaterCreate:if(n.trackByOps===null)n.track=N(n.track,e,t);else for(let s of n.trackByOps)De(s,e,t|J.InChildOperation);n.trackByFn!==null&&(n.trackByFn=N(n.trackByFn,e,t));break;case u.Repeater:n.collection=N(n.collection,e,t);break;case u.Defer:n.loadingConfig!==null&&(n.loadingConfig=N(n.loadingConfig,e,t)),n.placeholderConfig!==null&&(n.placeholderConfig=N(n.placeholderConfig,e,t)),n.resolverFn!==null&&(n.resolverFn=N(n.resolverFn,e,t));break;case u.I18nMessage:for(let[s,r]of n.params)n.params.set(s,N(r,e,t));for(let[s,r]of n.postprocessingParams)n.postprocessingParams.set(s,N(r,e,t));break;case u.DeferWhen:n.expr=N(n.expr,e,t);break;case u.StoreLet:n.value=N(n.value,e,t);break;case u.Advance:case u.Container:case u.ContainerEnd:case u.ContainerStart:case u.DeferOn:case u.DisableBindings:case u.Element:case u.ElementEnd:case u.ElementStart:case u.EnableBindings:case u.I18n:case u.I18nApply:case u.I18nContext:case u.I18nEnd:case u.I18nStart:case u.IcuEnd:case u.IcuStart:case u.Namespace:case u.Pipe:case u.Projection:case u.ProjectionDef:case u.Template:case u.Text:case u.I18nAttributes:case u.IcuPlaceholder:case u.DeclareLet
20:case u.SourceLocation:case u.ConditionalCreate:case u.ConditionalBranchCreate:case u.Control:case u.ControlCreate:break;default:throw new Error(`AssertionError: transformExpressionsInOp doesn't handle ${u[n.kind]}`)}}function N(n,e,t){if(n instanceof ge)n.transformInternalExpressions(e,t);else if(n instanceof ie)n.lhs=N(n.lhs,e,t),n.rhs=N(n.rhs,e,t);else if(n instanceof Qs)n.expr=N(n.expr,e,t);else if(n instanceof Ft)n.receiver=N(n.receiver,e,t);else if(n instanceof Un)n.receiver=N(n.receiver,e,t),n.index=N(n.index,e,t);else if(n instanceof At){n.fn=N(n.fn,e,t);for(let s=0;s<n.args.length;s++)n.args[s]=N(n.args[s],e,t)}else if(n instanceof _n)for(let s=0;s<n.entries.length;s++)n.entries[s]=N(n.entries[s],e,t);else if(n instanceof rn)for(let s of n.entries)s instanceof us?s.expression=N(s.expression,e,t):s.value=N(s.value,e,t);else if(n instanceof xn)n.condition=N(n.condition,e,t),n.trueCase=N(n.trueCase,e,t),n.falseCase!==null&&(n.falseCase=N(n.falseCase,e,t));else if(n instanceof $r)n.expr=N(n.expr,e,t);else if(n instanceof gl)n.expr=N(n.expr,e,t);else if(n instanceof Sl)for(let s=0;s<n.expressions.length;s++)n.expressions[s]=N(n.expressions[s],e,t);else if(n instanceof eo)n.condition=N(n.condition,e,t);else if(n instanceof Ki)n.tag=N(n.tag,e,t),n.template.expressions=n.template.expressions.map(s=>N(s,e,t));else if(n instanceof lr)if(Array.isArray(n.body))for(let s=0;s<n.body.length;s++)Zl(n.body[s],e,t|J.InChildOperation);else n.body=N(n.body,e,t|J.InChildOperation);else if(!(n instanceof ne)){if(n instanceof Zi)for(let s=0;s<n.expressions.length;s++)n.expressions[s]=N(n.expressions[s],e,t);else if(n instanceof sn)n.expr=N(n.expr,e,t);else if(n instanceof Ys)n.expression=N(n.expression,e,t);else if(!(n instanceof nn||n instanceof Xs||n instanceof Ze||n instanceof Ur))throw new Error(`Unhandled expression kind: ${n.constructor.name}`)}return e(n,t)}function Zl(n,e,t){if(n instanceof et)n.expr=N(n.expr,e,t);else if(n instanceof $e)n.value=N(n.value,e,t);else if(n instanceof je)n.value!==void 0&&(n.value=N(n.value,e,t));else if(n instanceof El){n.condition=N(n.condition,e,t);for(let s of n.trueCase)Zl(s,e,t);for(let s of n.falseCase)Zl(s,e,t)}else throw new Error(`Unhandled statement kind: ${n.constructor.name}`)}function sE(n){return n instanceof Ze&&typeof n.value=="string"}var tt=class{slot=null},UC=new Set([u.Element,u.ElementStart,u.Container,u.ContainerStart,u.Template,u.RepeaterCreate,u.ConditionalCreate,u.ConditionalBranchCreate]);function Es(n){return UC.has(n.kind)}function VC(n,e,t,s,r,i){return E(E({kind:u.ElementStart,xref:e,tag:n,handle:new tt,attributes:null,localRefs:[],nonBindable:!1,namespace:t,i18nPlaceholder:s,startSourceSpan:r,wholeSourceSpan:i},Jt),U)}function rE(n,e,t,s,r,i,o,a){return E(E({kind:u.Template,xref:n,templateKind:e,attributes:null,tag:t,handle:new tt,functionNameSuffix:s,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:r,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:a},Jt),U)}function iE(n,e,t,s,r,i,o,a){return E(E({kind:u.ConditionalCreate,xref:n,templateKind:e,attributes:null,tag:t,handle:new tt,functionNameSuffix:s,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:r,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:a},Jt),U)}function oE(n,e,t,s,r,i,o,a){return E(E({kind:u.ConditionalBranchCreate,xref:n,templateKind:e,attributes:null,tag:t,handle:new tt,functionNameSuffix:s,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:r,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:a},Jt),U)}function qC(n,e,t,s,r,i,o,a,l,c){return ce(E(E(E({kind:u.RepeaterCreate,attributes:null,xref:n,handle:new tt,emptyView:e,track:s,trackByFn:null,trackByOps:null,tag:t,emptyTag:i,emptyAttributes:null,functionNameSuffix:"For",namespace:Be.HTML,nonBindable:!1,localRefs:[],decls:null,vars:null,varNames:r,usesComponentInstance:!1,i18nPlaceholder:o,emptyI18nPlaceholder:a,startSourceSpan:l,wholeSourceSpan:c},Jt),U),Ct),{numSlotsUsed:e===null?2:3})}function HC(n,e){return E({kind:u.ElementEnd,xref:n,sourceSpan:e},U)}function jC(n){return E({kind:u.DisableBindings,xref:n},U)}function zC(n){return E({kind:u.EnableBindings,xref:n},U)}function aE(n,e,t,s){return E(E({kind:u.Text,xref:n,handle:new tt,initialValue:e,icuPlaceholder:t,sourceSpan:s},Jt),U)}function WC(n,e,t,s,r,i){return E({kind:u.AnimationString,name:n,target:e,animationKind:t,expression:s,i18nMessage:null,securityContext:r,sanitizer:null,sourceSpan:i},U)}function GC(n,e,t,s,r,i){let o=new A;return o.push(s),E({kind:u.Animation,name:n,target:e,animationKind:t,handlerOps:o,handlerFnName:null,i18nMessage:null,securityContext:r,sanitizer:null,sourceSpan:i},U)}function Wh(n,e,t,s,r,i,o,a,l){let c=new A;return c.push(r),E({kind:u.Listener,target:n,targetSlot:e,tag:s,hostListener:a,name:t,handlerOps:c,handlerFnName:null,consumesDollarEvent:!1,isLegacyAnimationListener:i!==null,legacyAnimationPhase:i,eventTarget:o,sourceSpan:l},U)}function lE(n,e,t,s,r,i,o,a,l){let c=new A;return c.push(r),E({kind:u.AnimationListener,target:n,targetSlot:e,tag:s,hostListener:a,name:t,animationKind:i,handlerOps:c,handlerFnName:null,consumesDollarEvent:!1,eventTarget:o,sourceSpan:l},U)}function cE(n,e,t,s,r,i){let o=new A;return o.push(r),E({kind:u.TwoWayListener,target:n,targetSlot:e,tag:s,name:t,handlerOps:o,handlerFnName:null,sourceSpan:i},U)}function XC(n,e,t){return E(E({kind:u.Pipe,xref:n,handle:e,name:t},U),Jt)}function QC(n){return E({kind:u.Namespace,active:n},U)}function YC(n){return E({kind:u.ProjectionDef,def:n},U)}function KC(n,e,t,s,r){return ce(E(E({kind:u.Projection,xref:n,handle:new tt,selector:e,i18nPlaceholder:t,fallbackView:s,projectionSlotIndex:0,attributes:null,localRefs:[],sourceSpan:r},U),Jt),{numSlotsUsed:s===null?1:2})}function Xt(n,e,t,s,r,i,o,a){return E({kind:u.ExtractedAttribute,target:n,bindingKind:e,namespace:t,name:s,expression:r,i18nContext:i,i18nMessage:o,securityContext:a,trustedValueFn:null},U)}function JC(n,e,t,s,r,i){return ce(E(E({kind:u.Defer,xref:n,handle:new tt,mainView:e,mainSlot:t,loadingView:null,loadingSlot:null,loadingConfig:null,loadingMinimumTime:null,loadingAfterTime:null,placeholderView:null,placeholderSlot:null,placeholderConfig:null,placeholderMinimumTime:null,errorView:null,errorSlot:null,ownResolverFn:s,resolverFn:r,flags:null,sourceSpan:i},U),Jt),{numSlotsUsed:2})}function ns(n,e,t,s){return E({kind:u.DeferOn,defer:n,trigger:e,modifier:t,sourceSpan:s},U)}function ZC(n,e,t){return E(E({kind:u.DeclareLet,xref:n,declaredName:e,sourceSpan:t,handle:new tt},Jt),U)}function e2(n,e,t,s,r,i,o,a){return E({kind:u.I18nMessage,xref:n,i18nContext:e,i18nBlock:t,message:s,messagePlaceholder:r,params:i,postprocessingParams:o,needsPostprocessing:a,subMessages:[]},U)}function xc(n,e,t,s){return E(E({kind:u.I18nStart,xref:n,handle:new tt,root:t??n,message:e,messageIndex:null,subTemplateIndex:null,context:null,sourceSpan:s},U),Jt)}function _c(n,e){return E({kind:u.I18nEnd,xref:n,sourceSpan:e},U)}function t2(n,e,t,s){return E({kind:u.IcuStart,xref:n,message:e,messagePlaceholder:t,context:null,sourceSpan:s},U)}function n2(n){return E({kind:u.IcuEnd,xref:n},U)}function s2(n,e,t){return E({kind:u.IcuPlaceholder,xref:n,name:e,strings:t,expressionPlaceholders:[]},U)}function Vu(n,e,t,s,r){if(t===null&&n!==Os.Attr)throw new Error("AssertionError: i18nBlock must be provided for non-attribute contexts.");return E({kind:u.I18nContext,contextKind:n,xref:e,i18nBlock:t,message:s,sourceSpan:r,params:new Map,postprocessingParams:new Map},U)}function uE(n,e,t){return E(E({kind:u.I18nAttributes,xref:n,handle:e,target:t,i18nAttributesConfig:null},U),Jt)}function r2(n,e){return E({kind:u.SourceLocation,templatePath:n,locations:e},U)}function i2(n){return E({kind:u.ControlCreate,sourceSpan:n},U)}function o2(n,e,t,s,r,i){return E(E({kind:u.DomProperty,name:n,expression:e,bindingKind:t,i18nContext:s,securityContext:r,sanitizer:null,sourceSpan:i},Ct),U)}var pE="CTX_REF_MARKER",k=(function(n){return n[n.Tmpl=0]="Tmpl",n[n.Host=1]="Host",n[n.Both=2]="Both",n})(k||{}),gt=(function(n){return n[n.Full=0]="Full",n[n.DomOnly=1]="DomOnly",n})(gt||{}),ec=class{componentName;pool;mode;constructor(e,t,s){this.componentName=e,this.pool=t,this.mode=s}kind=k.Both;allocateXrefId(){return this.nextXrefId++}nextXrefId=0},$o=class extends ec{relativeContextFilePath;i18nUseExternalIds;deferMeta;allDeferrableDepsFn;relativeTemplatePath;enableDebugLocations;constructor(e,t,s,r,i,o,a,l,c){super(e,t,s),this.relativeContextFilePath=r,this.i18nUseExternalIds=i,this.deferMeta=o,this.allDeferrableDepsFn=a,this.relativeTemplatePath=l,this.enableDebugLocations=c,this.root=new Qt(this,this.allocateXrefId(),null),this.views.set(this.root.xref,this.root)}kind=k.Tmpl;fnSuffix="Template";root;views=new Map;contentSelectors=null;allocateView(e){let t=new Qt(this,this.allocateXrefId(),e);return this.views.set(t.xref,t),t}get units(){return this.views.values()}addConst(e,t){for(let r=0;r<this.consts.length;r++)if(this.consts[r].isEquivalent(e))return r;let s=this.consts.length;
20return this.consts.push(e),t&&this.constsInitializers.push(...t),s}consts=[];constsInitializers=[]},tc=class{xref;constructor(e){this.xref=e}create=new A;update=new A;functions=new Set;fnName=null;vars=null;*ops(){for(let e of this.functions)for(let t of e.ops)yield t;for(let e of this.create)if(yield e,e.kind===u.Listener||e.kind===u.Animation||e.kind===u.AnimationListener||e.kind===u.TwoWayListener)for(let t of e.handlerOps)yield t;else if(e.kind===u.RepeaterCreate&&e.trackByOps!==null)for(let t of e.trackByOps)yield t;for(let e of this.update)yield e}},Qt=class extends tc{job;parent;constructor(e,t,s){super(t),this.job=e,this.parent=s}contextVariables=new Map;aliases=new Set;decls=null},nc=class extends ec{constructor(e,t,s){super(e,t,s),this.root=new Vp(this)}kind=k.Host;fnSuffix="HostBindings";root;get units(){return[this.root]}},Vp=class extends tc{job;constructor(e){super(0),this.job=e}attributes=null};function a2(n){for(let e of n.units)for(let t of e.ops())De(t,l2,J.None)}function l2(n){if(n instanceof At&&n.fn instanceof Ge&&n.fn.name==="$any"){if(n.args.length!==1)throw new Error("The $any builtin function expects exactly one argument.");return n.args[0]}return n}function c2(n){let e=new Map;for(let t of n.units)for(let s of t.create)s.kind===u.I18nContext&&e.set(s.xref,s);for(let t of n.units)for(let s of t.update)s.kind===u.I18nExpression&&u2(e,s)&&A.insertAfter(BC(s.i18nOwner,s.handle,null),s)}function u2(n,e){if(e.next?.kind!==u.I18nExpression)return!0;let t=n.get(e.context),s=n.get(e.next.context);if(t===void 0)throw new Error("AssertionError: expected an I18nContextOp to exist for the I18nExpressionOp's context");if(s===void 0)throw new Error("AssertionError: expected an I18nContextOp to exist for the next I18nExpressionOp's context");return t.i18nBlock!==null?t.i18nBlock!==s.i18nBlock:e.i18nOwner!==e.next.i18nOwner}function p2(n){for(let e of n.units){let t=e.update.head,s=[],r=null;for(let i of e.create){if(i.kind===u.I18nStart)r={blockXref:i.xref,lastSlotConsumer:i.xref};else if(i.kind===u.I18nEnd){for(let o of s)o.target=r.lastSlotConsumer,A.insertBefore(o,t);s.length=0,r=null}if(li(i))for(r!==null&&(r.lastSlotConsumer=i.xref);t.next!==null;){if(r!==null&&t.kind===u.I18nExpression&&t.usage===ai.I18nText&&t.i18nOwner===r.blockXref){let a=t;t=t.next,A.remove(a),s.push(a);continue}let o=!1;if(Po(t)&&t.target!==i.xref?o=!0:(t.kind===u.Statement||t.kind===u.Variable)&&Re(t,a=>{!o&&Po(a)&&a.target!==i.xref&&(o=!0)}),o)break;t=t.next}}}}function h2(n){if(!(!n.enableDebugLocations||n.relativeTemplatePath===null))for(let e of n.units){let t=[];for(let s of e.create)if(s.kind===u.ElementStart||s.kind===u.Element){let r=s.startSourceSpan.start;t.push({targetSlot:s.handle,offset:r.offset,line:r.line,column:r.col})}t.length>0&&e.create.push(r2(n.relativeTemplatePath,t))}}function hE(n){let e=new Map;for(let t of n.create)li(t)&&(e.set(t.xref,t),t.kind===u.RepeaterCreate&&t.emptyView!==null&&e.set(t.emptyView,t));return e}function f2(n){for(let e of n.units){let t=hE(e);for(let s of e.ops())switch(s.kind){case u.Attribute:d2(e,s,t);break;case u.Property:if(s.bindingKind!==P.LegacyAnimation&&s.bindingKind!==P.Animation){let r;s.i18nMessage!==null&&s.templateKind===null?r=P.I18n:s.isStructuralTemplateAttribute?r=P.Template:r=P.Property,A.insertBefore(Xt(s.target,r,null,s.name,null,null,null,s.securityContext),Nr(t,s.target))}break;case u.TwoWayProperty:A.insertBefore(Xt(s.target,P.TwoWayProperty,null,s.name,null,null,null,s.securityContext),Nr(t,s.target));break;case u.StyleProp:case u.ClassProp:s.expression instanceof Bo&&A.insertBefore(Xt(s.target,P.Property,null,s.name,null,null,null,se.STYLE),Nr(t,s.target));break;case u.Listener:if(!s.isLegacyAnimationListener){let r=Xt(s.target,P.Property,null,s.name,null,null,null,se.NONE);if(n.kind===k.Host)break;A.insertBefore(r,Nr(t,s.target))}break;case u.TwoWayListener:if(n.kind!==k.Host){let r=Xt(s.target,P.Property,null,s.name,null,null,null,se.NONE);A.insertBefore(r,Nr(t,s.target))}break}}}function Nr(n,e){let t=n.get(e);if(t===void 0)throw new Error("All attributes should have an element-like target.");return t}function d2(n,e,t){if(!(e.expression instanceof Ie)&&e.isTextAttribute){let s=Xt(e.target,e.isStructuralTemplateAttribute?P.Template:P.Attribute,e.namespace,e.name,e.expression,e.i18nContext,e.i18nMessage,e.securityContext);if(n.job.kind===k.Host)n.create.push(s);else{let r=Nr(t,e.target);A.insertBefore(s,r)}A.remove(e)}}var uS="aria-";function fE(n){return n.startsWith(uS)&&n.length>uS.length}function m2(n,e){let t=n.get(e);if(t===void 0)throw new Error("All attributes should have an element-like target.");return t}function g2(n){let e=new Map;for(let t of n.units)for(let s of t.create)Es(s)&&e.set(s.xref,s);for(let t of n.units)for(let s of t.ops())if(s.kind===u.Binding)switch(s.bindingKind){case P.Attribute:if(s.name==="ngNonBindable"){A.remove(s);let r=m2(e,s.target);r.nonBindable=!0}else if(s.name.startsWith("animate."))A.replace(s,cS(s.name,s.target,s.name==="animate.enter"?"enter":"leave",s.expression,s.securityContext,s.sourceSpan,
200));else{let[r,i]=ot(s.name);A.replace(s,lS(s.target,r,i,s.expression,s.securityContext,s.isTextAttribute,s.isStructuralTemplateAttribute,s.templateKind,s.i18nMessage,s.sourceSpan))}break;case P.Animation:A.replace(s,cS(s.name,s.target,s.name==="animate.enter"?"enter":"leave",s.expression,s.securityContext,s.sourceSpan,1));break;case P.Property:case P.LegacyAnimation:n.mode===gt.DomOnly&&fE(s.name)?A.replace(s,lS(s.target,null,s.name,s.expression,s.securityContext,!1,s.isStructuralTemplateAttribute,s.templateKind,s.i18nMessage,s.sourceSpan)):n.kind===k.Host?A.replace(s,o2(s.name,s.expression,s.bindingKind,s.i18nContext,s.securityContext,s.sourceSpan)):A.replace(s,kC(s.target,s.name,s.expression,s.bindingKind,s.securityContext,s.isStructuralTemplateAttribute,s.templateKind,s.i18nContext,s.i18nMessage,s.sourceSpan));break;case P.TwoWayProperty:if(!(s.expression instanceof pe))throw new Error(`Expected value of two-way property binding "${s.name}" to be an expression`);A.replace(s,NC(s.target,s.name,s.expression,s.securityContext,s.isStructuralTemplateAttribute,s.templateKind,s.i18nContext,s.i18nMessage,s.sourceSpan));break;case P.I18n:case P.ClassName:case P.StyleProperty:throw new Error(`Unhandled binding of kind ${P[s.bindingKind]}`)}}var pS=new Map([[d.ariaProperty,d.ariaProperty],[d.attribute,d.attribute],[d.classProp,d.classProp],[d.element,d.element],[d.elementContainer,d.elementContainer],[d.elementContainerEnd,d.elementContainerEnd],[d.elementContainerStart,d.elementContainerStart],[d.elementEnd,d.elementEnd],[d.elementStart,d.elementStart],[d.domProperty,d.domProperty],[d.i18nExp,d.i18nExp],[d.listener,d.listener],[d.listener,d.listener],[d.property,d.property],[d.styleProp,d.styleProp],[d.syntheticHostListener,d.syntheticHostListener],[d.syntheticHostProperty,d.syntheticHostProperty],[d.templateCreate,d.templateCreate],[d.twoWayProperty,d.twoWayProperty],[d.twoWayListener,d.twoWayListener],[d.declareLet,d.declareLet],[d.conditionalCreate,d.conditionalBranchCreate],[d.conditionalBranchCreate,d.conditionalBranchCreate],[d.domElement,d.domElement],[d.domElementStart,d.domElementStart],[d.domElementEnd,d.domElementEnd],[d.domElementContainer,d.domElementContainer],[d.domElementContainerStart,d.domElementContainerStart],[d.domElementContainerEnd,d.domElementContainerEnd],[d.domListener,d.domListener],[d.domTemplate,d.domTemplate],[d.animationEnter,d.animationEnter],[d.animationLeave,d.animationLeave],[d.animationEnterListener,d.animationEnterListener],[d.animationLeaveListener,d.animationLeaveListener]]),v2=256;function S2(n){for(let e of n.units)hS(e.create),hS(e.update)}function hS(n){let e=null;for(let t of n){if(t.kind!==u.Statement||!(t.statement instanceof et)){e=null;continue}if(!(t.statement.expr instanceof At)||!(t.statement.expr.fn instanceof Xs)){e=null;continue}let s=t.statement.expr.fn.value;if(!pS.has(s)){e=null;continue}if(e!==null&&pS.get(e.instruction)===s&&e.length<v2){let r=e.expression.callFn(t.statement.expr.args,t.statement.expr.sourceSpan,t.statement.expr.pure);e.expression=r,e.op.statement=r.toStmt(),e.length++,A.remove(t)}else e={op:t,instruction:s,expression:t.statement.expr,length:1}}}function y2(n){for(let e of n.units)for(let t of e.update)(t.kind===u.Attribute||t.kind===u.StyleProp||t.kind==u.StyleMap||t.kind===u.ClassMap)&&t.expression instanceof Ie&&t.expression.strings.length===2&&t.expression.strings.every(r=>r==="")&&(t.expression=t.expression.expressions[0])}function E2(n){for(let e of n.units)for(let t of e.ops()){if(t.kind!==u.Conditional)continue;let s,r=t.conditions.findIndex(a=>a.expr===null);if(r>=0){let a=t.conditions.splice(r,1)[0].targetSlot;s=new Kl(a)}else s=S(-1);let i=t.test==null?null:new Nn(t.test,n.allocateXrefId()),o=null;for(let a=t.conditions.length-1;a>=0;a--){let l=t.conditions[a];if(l.expr!==null){if(i!==null){let c=a===0?i:new ys(i.xref);l.expr=new ie(C.Identical,c,l.expr)}else l.alias!==null&&(o??=n.allocateXrefId(),l.expr=new Nn(l.expr,o),t.contextValue=new ys(o));s=new xn(l.expr,new Kl(l.targetSlot),s)}}t.processed=s,t.conditions=[]}}var w2=new Map([["&&",C.And],[">",C.Bigger],[">=",C.BiggerEquals],["|",C.BitwiseOr],["&",C.BitwiseAnd],["/",C.Divide],["=",C.Assign],["==",C.Equals],["===",C.Identical],["<",C.Lower],["<=",C.LowerEquals],["-",C.Minus],["%",C.Modulo],["**",C.Exponentiation],["*",C.Multiply],["!=",C.NotEquals],["!==",C.NotIdentical],["??",C.NullishCoalesce],["||",C.Or],["+",C.Plus],["in",C.In],["instanceof",C.InstanceOf],["+=",C.AdditionAssignment],["-=",C.SubtractionAssignment],["*=",C.MultiplicationAssignment],["/=",C.DivisionAssignment],["%=",C.RemainderAssignment],["**=",C.ExponentiationAssignment],["&&=",C.AndAssignment],["||=",C.OrAssignment],["??=",C.NullishCoalesceAssignment]]);function dE(n){let e=new Map([["svg",Be.SVG],["math",Be.Math]]);return n===null?Be.HTML:e.get(n)??Be.HTML}function A2(n){let e=new Map([["svg",Be.SVG],["math",Be.Math]]);for(let[t,s]of e.entries())if(s===n)return t;return null}
20function x2(n,e){return e===Be.HTML?n:`:${A2(e)}:${n}`}function ti(n){return Array.isArray(n)?me(n.map(ti)):S(n)}function _2(n){let e=new Map;for(let t of n.units)for(let s of t.create)if(s.kind===u.ExtractedAttribute){let r=e.get(s.target)||new qp;e.set(s.target,r),r.add(s.bindingKind,s.name,s.expression,s.namespace,s.trustedValueFn),A.remove(s)}if(n instanceof $o)for(let t of n.units)for(let s of t.create)if(s.kind==u.Projection){let r=e.get(s.xref);if(r!==void 0){let i=Hp(r);i.entries.length>0&&(s.attributes=n.pool.getConstLiteral(i,!0))}}else Es(s)&&(s.attributes=fS(n,e,s.xref),s.kind===u.RepeaterCreate&&s.emptyView!==null&&(s.emptyAttributes=fS(n,e,s.emptyView)));else if(n instanceof nc)for(let[t,s]of e.entries()){if(t!==n.root.xref)throw new Error("An attribute would be const collected into the host binding's template function, but is not associated with the root xref.");let r=Hp(s);r.entries.length>0&&(n.root.attributes=r)}}function fS(n,e,t){let s=e.get(t);if(s!==void 0){let r=Hp(s);if(r.entries.length>0)return n.addConst(r)}return null}var xr=Object.freeze([]),qp=class{known=new Map;byKind=new Map;propertyBindings=null;projectAs=null;get attributes(){return this.byKind.get(P.Attribute)??xr}get classes(){return this.byKind.get(P.ClassName)??xr}get styles(){return this.byKind.get(P.StyleProperty)??xr}get bindings(){return this.propertyBindings??xr}get template(){return this.byKind.get(P.Template)??xr}get i18n(){return this.byKind.get(P.I18n)??xr}isKnown(e,t){let s=this.known.get(e)??new Set;return this.known.set(e,s),s.has(t)?!0:(s.add(t),!1)}add(e,t,s,r,i){if(!(e===P.Attribute||e===P.ClassName||e===P.StyleProperty)&&this.isKnown(e,t))return;if(t==="ngProjectAs"){if(s===null||!(s instanceof Ze)||s.value==null||typeof s.value?.toString()!="string")throw Error("ngProjectAs must have a string literal value");this.projectAs=s.value.toString()}let a=this.arrayFor(e);if(a.push(...C2(r,t)),e===P.Attribute||e===P.StyleProperty){if(s===null)throw Error("Attribute, i18n attribute, & style element attributes must have a value");i!==null&&sE(s)?a.push(Ux(i,new Zi([new vl(s.value)],[]),void 0,s.sourceSpan)):a.push(s)}}arrayFor(e){return e===P.Property||e===P.TwoWayProperty?(this.propertyBindings??=[],this.propertyBindings):(this.byKind.has(e)||this.byKind.set(e,[]),this.byKind.get(e))}};function C2(n,e){let t=S(e);return n?[S(0),S(n),t]:[t]}function Hp({attributes:n,bindings:e,classes:t,i18n:s,projectAs:r,styles:i,template:o}){let a=[...n];if(r!==null){let l=Ph(r)[0];a.push(S(5),ti(l))}return t.length>0&&a.push(S(1),...t),i.length>0&&a.push(S(2),...i),e.length>0&&a.push(S(3),...e),o.length>0&&a.push(S(4),...o),s.length>0&&a.push(S(6),...s),me(a)}function b2(n,e){let t=n.get(e);if(t===void 0)throw new Error("All attributes should have an element-like target.");return t}function T2(n){let e=new Map;for(let t of n.units)for(let s of t.create)Es(s)&&e.set(s.xref,s);for(let t of n.units)for(let s of t.ops())if(s.kind===u.AnimationBinding){let r=k2(s);n.kind===k.Host?t.create.push(r):A.insertAfter(r,b2(e,s.target)),A.remove(s)}}function k2(n){if(n.animationBindingKind===0)return WC(n.name,n.target,n.name==="animate.enter"?"enter":"leave",n.expression,n.securityContext,n.sourceSpan);{let e=n.expression;return GC(n.name,n.target,n.name==="animate.enter"?"enter":"leave",[$t(new $e(e,e.sourceSpan))],n.securityContext,n.sourceSpan)}}function N2(n){let e=new Map;for(let t of n.units){for(let s of t.create)s.kind===u.I18nAttributes&&e.set(s.target,s);for(let s of t.update)switch(s.kind){case u.Property:case u.Attribute:if(s.i18nContext===null||!(s.expression instanceof Ie))continue;let r=e.get(s.target);if(r===void 0)throw new Error("AssertionError: An i18n attribute binding instruction requires the owning element to have an I18nAttributes create instruction");if(r.target!==s.target)throw new Error("AssertionError: Expected i18nAttributes target element to match binding target element");let i=[];for(let o=0;o<s.expression.expressions.length;o++){let a=s.expression.expressions[o];if(s.expression.i18nPlaceholders.length!==s.expression.expressions.length)throw new Error(`AssertionError: An i18n attribute binding instruction requires the same number of expressions and placeholders, but found ${s.expression.i18nPlaceholders.length} placeholders and ${s.expression.expressions.length} expressions`);i.push(nE(s.i18nContext,r.target,r.xref,r.handle,a,null,s.expression.i18nPlaceholders[o],Do.Creation,ai.I18nAttribute,s.name,s.sourceSpan))}A.replaceWithMany(s,i);break}}}function I2(n){let e=new Map;for(let r of n.units)for(let i of r.ops())switch(i.kind){case u.Binding:case u.Property:case u.Attribute:case u.ExtractedAttribute:if(i.i18nMessage===null)continue;if(!e.has(i.i18nMessage)){let o=Vu(Os.Attr,n.allocateXrefId(),null,i.i18nMessage,null);r.create.push(o),e.set(i.i18nMessage,o.xref)}i.i18nContext=e.get(i.i18nMessage);break}let t=new Map;for(let r of n.units)for(let i of r.create)switch(i.kind){case u.I18nStart:if(i.xref===i.root){let o=Vu(Os.RootI18n,n.allocateXrefId(),i.xref,i.message,null);r.create.push(o),i.context=o.xref,t.set(i.xref,o)}break}for(let r of n.units)for(let i of r.create)if(i.kind===u.I18nStart&&i.xref!==i.root){let o=t.get(i.root);
20if(o===void 0)throw Error("AssertionError: Root i18n block i18n context should have been created.");i.context=o.xref,t.set(i.xref,o)}let s=null;for(let r of n.units)for(let i of r.create)switch(i.kind){case u.I18nStart:s=i;break;case u.I18nEnd:s=null;break;case u.IcuStart:if(s===null)throw Error("AssertionError: Unexpected ICU outside of an i18n block.");if(i.message.id!==s.message.id){let o=Vu(Os.Icu,n.allocateXrefId(),s.root,i.message,null);r.create.push(o),i.context=o.xref}else i.context=s.context,t.get(s.xref).contextKind=Os.Icu;break}}function D2(n){let e=new Map;for(let t of n.units)for(let s of t.update.reversed())if(s.kind===u.Binding&&s.isTextAttribute){let r=e.get(s.target)||new Set;r.has(s.name)&&(s.name==="style"||s.name==="class")&&A.remove(s),r.add(s.name),e.set(s.target,r)}}function P2(n){for(let e of n.units)for(let t of e.create)t.kind===u.Defer&&(t.placeholderMinimumTime!==null&&(t.placeholderConfig=new Oo(ti([t.placeholderMinimumTime]))),(t.loadingMinimumTime!==null||t.loadingAfterTime!==null)&&(t.loadingConfig=new Oo(ti([t.loadingMinimumTime,t.loadingAfterTime]))))}function M2(n){let e=new Map;function t(r){if(e.has(r.xref))return e.get(r.xref);let i=new L2;for(let o of r.create)if(!(!Es(o)||o.localRefs===null)){if(!Array.isArray(o.localRefs))throw new Error("LocalRefs were already processed, but were needed to resolve defer targets.");for(let a of o.localRefs)a.target===""&&i.targets.set(a.name,{xref:o.xref,slot:o.handle})}return e.set(r.xref,i),i}function s(r,i,o){switch(i.trigger.kind){case Se.Idle:case Se.Never:case Se.Immediate:case Se.Timer:return;case Se.Hover:case Se.Interaction:case Se.Viewport:if(i.trigger.targetName===null){if(o===null)throw new Error("defer on trigger with no target name must have a placeholder block");let c=n.views.get(o);if(c==null)throw new Error("AssertionError: could not find placeholder view for defer on trigger");for(let p of c.create)if(li(p)&&(Es(p)||p.kind===u.Projection)){i.trigger.targetXref=p.xref,i.trigger.targetView=o,i.trigger.targetSlotViewSteps=-1,i.trigger.targetSlot=p.handle;return}return}let a=o!==null?n.views.get(o):r,l=o!==null?-1:0;for(;a!==null;){let c=t(a);if(c.targets.has(i.trigger.targetName)){let{xref:p,slot:h}=c.targets.get(i.trigger.targetName);i.trigger.targetXref=p,i.trigger.targetView=a.xref,i.trigger.targetSlotViewSteps=l,i.trigger.targetSlot=h;return}a=a.parent!==null?n.views.get(a.parent):null,l++}break;default:throw new Error(`Trigger kind ${i.trigger.kind} not handled`)}}for(let r of n.units){let i=new Map;for(let o of r.create)switch(o.kind){case u.Defer:i.set(o.xref,o);break;case u.DeferOn:let a=i.get(o.defer);s(r,o,o.modifier==="hydrate"?a.mainView:a.placeholderView);break}}}var L2=class{targets=new Map},R2=new Map([[u.ElementEnd,[u.ElementStart,u.Element]],[u.ContainerEnd,[u.ContainerStart,u.Container]],[u.I18nEnd,[u.I18nStart,u.I18n]]]),F2=new Set([u.Pipe]);function B2(n){for(let e of n.units)for(let t of e.create){let s=R2.get(t.kind);if(s===void 0)continue;let[r,i]=s,o=t.prev;for(;o!==null&&F2.has(o.kind);)o=o.prev;o!==null&&o.kind===r&&(o.kind=i,A.remove(t))}}function O2(n){for(let e of n.units)for(let t of e.ops())De(t,s=>j2(s,{job:n}),J.None),De(t,z2,J.None)}function It(n){return n instanceof Qs?It(n.expr):n instanceof ie?It(n.lhs)||It(n.rhs):n instanceof xn?n.falseCase&&It(n.falseCase)?!0:It(n.condition)||It(n.trueCase):n instanceof eo?It(n.condition):n instanceof Nn?It(n.expr):n instanceof Ft?It(n.receiver):n instanceof Un?It(n.receiver)||It(n.index):n instanceof sn?It(n.expr):n instanceof At||n instanceof _n||n instanceof rn||n instanceof or||n instanceof ir}function $2(n){let e=new Set;return N(n,t=>(t instanceof Nn&&e.add(t.xref),t),J.None),e}function U2(n,e,t){return N(n,s=>{if(s instanceof Nn&&e.has(s.xref)){let r=new ys(s.xref);return new Nn(r,r.xref)}return s},J.None),n}function _r(n,e,t){let s;if(It(n)){let r=t.job.allocateXrefId();s=[new Nn(n,r),new ys(r)]}else s=[n,n.clone()],U2(s[1],$2(s[0]));return new ei(s[0],e(s[1]))}function V2(n){return n instanceof Jr||n instanceof Zr||n instanceof or}function q2(n){return n instanceof Ft||n instanceof Un||n instanceof At}function mE(n){return V2(n)||q2(n)}function H2(n){if(mE(n)&&n.receiver instanceof ei){let e=n.receiver;for(;e.expr instanceof ei;)e=e.expr;return e}return null}function j2(n,e){if(!mE(n))return n;let t=H2(n);if(t){if(n instanceof At)return t.expr=t.expr.callFn(n.args),n.receiver;if(n instanceof Ft)return t.expr=t.expr.prop(n.name),n.receiver;if(n instanceof Un)return t.expr=t.expr.key(n.index),n.receiver;if(n instanceof or)return t.expr=_r(t.expr,s=>s.callFn(n.args),e),n.receiver;if(n instanceof Jr)return t.expr=_r(t.expr,s=>s.prop(n.name),e),n.receiver;if(n instanceof Zr)return t.expr=_r(t.expr,s=>s.key(n.index),e),n.receiver}else{if(n instanceof or)return _r(n.receiver,s=>s.callFn(n.args),e);if(n instanceof Jr)return _r(n.receiver,s=>s.prop(n.name),e);if(n instanceof Zr)return _r(n.receiver,s=>s.key(n.index),e)}return n}function z2(n){return n instanceof ei?new sn(new xn(new ie(C.Equals,n.guard,qr),qr,n.expr)):n}var dS="\uFFFD",W2="#",G2="*",X2="/",Q2=":",Y2="[",K2="]",J2="|";function Z2(n){let e=new Map,t=new Map,s=new Map;for(let i of n.units)for(let o of i.create)switch(o.kind){case u.I18nContext:let a=eb(n,o);i.create.push(a),e.set(o.xref,a),s.set(o.xref,o);break;case u.I18nStart:t.set(o.xref,o);break}let r=null;for(let i of n.units)for(let o of i.create)switch(o.kind){case u.IcuStart:r=o,A.remove(o);let a=s.get(o.context);if(a.contextKind!==Os.Icu)continue;let l=t.get(a.i18nBlock);if(l.context===a.xref)continue;let c=t.get(l.root),p=e.get(c.context);if(p===void 0)throw Error("AssertionError: ICU sub-message should belong to a root message.");let h=e.get(a.xref);h.messagePlaceholder=o.messagePlaceholder,p.subMessages.push(h.xref);break;case u.IcuEnd:r=null,A.remove(o);break;case u.IcuPlaceholder:if(r===null||r.context==null)throw Error("AssertionError: Unexpected ICU placeholder outside of i18n context");e.get(r.context).postprocessingParams.set(o.name,S(tb(o))),A.remove(o);break}}function eb(n,e,t){let s=mS(e.params),r=mS(e.postprocessingParams),i=[...e.params.values()].some(o=>o.length>1);return e2(n.allocateXrefId(),e.xref,e.i18nBlock,e.message,null,s,r,i)}function tb(n){if(n.strings.length!==n.expressionPlaceholders.length+1)throw Error(`AssertionError: Invalid ICU placeholder with ${n.strings.length} strings and ${n.expressionPlaceholders.length} expressions`);let e=n.expressionPlaceholders.map(Mr);return n.strings.flatMap((t,s)=>[t,e[s]||""]).join("")}function mS(n){let e=new Map;for(let[t,s]of n){let r=nb(s);r!==null&&e.set(t,S(r))}return e}function nb(n){if(n.length===0)return null;let e=n.map(t=>Mr(t));return e.length===1?e[0]:`${Y2}${e.join(J2)}${K2}`}function Mr(n){if(n.flags&we.ElementTag&&n.flags&we.TemplateTag){if(typeof n.value!="object")throw Error("AssertionError: Expected i18n param value to have an element and template slot");let r=Mr(ce(E({},n),{value:n.value.element,flags:n.flags&~we.TemplateTag})),i=Mr(ce(E({},n),{value:n.value.template,flags:n.flags&~we.ElementTag}));return n.flags&we.OpenTag&&n.flags&we.CloseTag?`${i}${r}${i}`:n.flags&we.CloseTag?`${r}${i}`:`${i}${r}`}if(n.flags&we.OpenTag&&n.flags&we.CloseTag)return`${Mr(ce(E({},n),{flags:n.flags&~we.CloseTag}))}${Mr(ce(E({},n),{flags:n.flags&~we.OpenTag}))}`;if(n.flags===we.None)return`${n.value}`;let e="",t="";n.flags&we.ElementTag?e=W2:n.flags&we.TemplateTag&&(e=G2),e!==""&&(t=n.flags&we.CloseTag?X2:"");let s=n.subTemplateIndex===null?"":`${Q2}${n.subTemplateIndex}`;return`${dS}${t}${e}${n.value}${s}${dS}`}
20function sb(n){for(let e of n.units){let t=new Map;for(let r of e.create){if(li(r)){if(r.handle.slot===null)throw new Error("AssertionError: expected slots to have been allocated before generating advance() calls")}else continue;t.set(r.xref,r.handle.slot)}let s=0;for(let r of e.update){let i=null;if(Po(r)?i=r:Re(r,a=>{i===null&&Po(a)&&(i=a)}),i===null)continue;if(!t.has(i.target))throw new Error(`AssertionError: reference to unknown slot for target ${i.target}`);let o=t.get(i.target);if(s!==o){let a=o-s;if(a<0)throw new Error("AssertionError: slot counter should never need to move backwards");A.insertBefore(LC(a,i.sourceSpan),r),s=o}}}}function rb(n){for(let e of n.units)for(let t of e.update){if(t.kind!==u.StoreLet)continue;let s={kind:Qe.Identifier,name:null,identifier:t.declaredName,local:!0};A.replace(t,os(n.allocateXrefId(),s,new Mo(t.target,t.value,t.sourceSpan),Gt.None))}}function ib(n){let t=[],s=0;for(let r of n.units)for(let i of r.create)i.kind===u.Projection&&(t.push(i.selector),i.projectionSlotIndex=s++);if(t.length>0){let r=null;if(t.length>1||t[0]!=="*"){let i=t.map(o=>o==="*"?o:Ph(o));r=n.pool.getConstLiteral(ti(i),!0)}n.contentSelectors=n.pool.getConstLiteral(ti(t),!0),n.root.create.prepend([YC(r)])}}function ob(n){Bi(n.root,null)}function Bi(n,e){let t=gS(n,e);for(let s of n.create)switch(s.kind){case u.ConditionalCreate:case u.ConditionalBranchCreate:case u.Template:Bi(n.job.views.get(s.xref),t);break;case u.Projection:s.fallbackView!==null&&Bi(n.job.views.get(s.fallbackView),t);break;case u.RepeaterCreate:Bi(n.job.views.get(s.xref),t),s.emptyView&&Bi(n.job.views.get(s.emptyView),t),s.trackByOps!==null&&s.trackByOps.prepend(Oi(n,t,!1));break;case u.Animation:case u.AnimationListener:case u.Listener:case u.TwoWayListener:s.handlerOps.prepend(Oi(n,t,!0));break}n.update.prepend(Oi(n,t,!1));for(let s of n.functions)s.ops.prepend(Oi(n,gS(n,e),!0))}function gS(n,e){let t={view:n.xref,viewContextVariable:{kind:Qe.Context,name:null,view:n.xref},contextVariables:new Map,aliases:n.aliases,references:[],letDeclarations:[],parent:e};for(let s of n.contextVariables.keys())t.contextVariables.set(s,{kind:Qe.Identifier,name:null,identifier:s,local:!1});for(let s of n.create)switch(s.kind){case u.ElementStart:case u.ConditionalCreate:case u.ConditionalBranchCreate:case u.Template:if(!Array.isArray(s.localRefs))throw new Error("AssertionError: expected localRefs to be an array");for(let r=0;r<s.localRefs.length;r++)t.references.push({name:s.localRefs[r].name,targetId:s.xref,targetSlot:s.handle,offset:r,variable:{kind:Qe.Identifier,name:null,identifier:s.localRefs[r].name,local:!1}});break;case u.DeclareLet:t.letDeclarations.push({targetId:s.xref,targetSlot:s.handle,variable:{kind:Qe.Identifier,name:null,identifier:s.declaredName,local:!1}});break}return t}function Oi(n,e,t){let s=[];e.view!==n.xref&&s.push(os(n.job.allocateXrefId(),e.viewContextVariable,new Xl,Gt.None));let r=n.job.views.get(e.view);for(let[i,o]of r.contextVariables){let a=new vs(e.view),l=o===pE?a:new Ft(a,o);s.push(os(n.job.allocateXrefId(),e.contextVariables.get(i),l,Gt.None))}for(let i of r.aliases)s.push(os(n.job.allocateXrefId(),i,i.expression.clone(),Gt.AlwaysInline));for(let i of e.references)s.push(os(n.job.allocateXrefId(),i.variable,new Gl(i.targetId,i.targetSlot,i.offset),Gt.None));if(e.view!==n.xref||t)for(let i of e.letDeclarations)s.push(os(n.job.allocateXrefId(),i.variable,new Lo(i.targetId,i.targetSlot),Gt.None));return e.parent!==null&&s.push(...Oi(n,e.parent,!1)),s}function ab(n){for(let e of n.units)for(let t of e.ops())De(t,s=>s instanceof Oo?S(n.addConst(s.expr)):s,J.None)}var vS="style.",SS="class.",lb="style!",yS="class!",ES="!important";function cb(n){for(let e of n.root.update)if(e.kind===u.Binding&&e.bindingKind===P.Property)if(e.name.endsWith(ES)&&(e.name=e.name.substring(0,e.name.length-ES.length)),e.name.startsWith(vS)){e.bindingKind=P.StyleProperty,e.name=e.name.substring(vS.length),ub(e.name)||(e.name=pb(e.name));let{property:t,suffix:s}=qu(e.name);e.name=t,e.unit=s}else e.name.startsWith(lb)?(e.bindingKind=P.StyleProperty,e.name="style"):e.name.startsWith(SS)?(e.bindingKind=P.ClassName,e.name=qu(e.name.substring(SS.length)).property):e.name.startsWith(yS)&&(e.bindingKind=P.ClassName,e.name=qu(e.name.substring(yS.length)).property)}function ub(n){return n.startsWith("--")}function pb(n){return n.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function qu(n){let e=n.indexOf("!important");e!==-1&&(n=e>0?n.substring(0,e):"");let t=null,s=n,r=n.lastIndexOf(".");return r>0&&(t=n.slice(r+1),s=n.substring(0,r)),{property:s,suffix:t}}function jp(n,e=!1){return Kt(Object.keys(n).map(t=>({key:t,quoted:e,value:n[t]})))}var zp=class{visitText(e){return e.value}visitContainer(e){return e.children.map(t=>t.visit(this)).join("")}visitIcu(e){let t=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${t.join(" ")}}`}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(t=>t.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitBlockPlaceholder(e){return`${this.formatPh(e.startName)}${e.children.map(t=>t.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitIcuPlaceholder(e,t){return this.formatPh(e.name)}formatPh(e){return`{${Ko(e,!1)}}`}},hb=new zp;function gE(n){return n.visit(hb)}var Vn=class{sourceSpan;i18n;constructor(e,t){this.sourceSpan=e,this.i18n=t}},ar=class extends Vn{value;tokens;constructor(e,t,s,r){super(t,r),this.value=e,this.tokens=s}visit(e,t){return e.visitText(this,t)}},Hs=class extends Vn{switchValue;type;cases;switchValueSourceSpan;constructor(e,t,s,r,i,o){super(r,o),this.switchValue=e,this.type=t,this.cases=s,this.switchValueSourceSpan=i}visit(e,t){return e.visitExpansion(this,t)}},sc=class{value;expression;sourceSpan;valueSourceSpan;expSourceSpan;constructor(e,t,s,r,i){this.value=e,this.expression=t,this.sourceSpan=s,this.valueSourceSpan=r,this.expSourceSpan=i}visit(e,t){return e.visitExpansionCase(this,t)}},Wp=class extends Vn{name;value;keySpan;valueSpan;valueTokens;constructor(e,t,s,r,i,o,a){super(s,a),this.name=e,this.value=t,this.keySpan=r,this.valueSpan=i,this.valueTokens=o}visit(e,t){return e.visitAttribute(this,t)}},qt=class extends Vn{name;attrs;directives;children;isSelfClosing;startSourceSpan;endSourceSpan;isVoid;constructor(e,t,s,r,i,o,a,l=null,c,p){super(o,p),this.name=e,this.attrs=t,this.directives=s,this.children=r,this.isSelfClosing=i,this.startSourceSpan=a,this.endSourceSpan=l,this.isVoid=c}visit(e,t){return e.visitElement(this,t)}},Uo=class{value;sourceSpan;constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitComment(this,t)}},zt=class extends Vn{name;parameters;children;nameSpan;startSourceSpan;endSourceSpan;constructor(e,t,s,r,i,o,a=null,l){super(r,l),this.name=e,this.parameters=t,this.children=s,this.nameSpan=i,this.startSourceSpan=o,this.endSourceSpan=a}visit(e,t){return e.visitBlock(this,t)}},lt=class extends Vn{componentName;tagName;fullName;attrs;directives;children;isSelfClosing;startSourceSpan;endSourceSpan;constructor(e,t,s,r,i,o,a,l,c,p=null,h){super(l,h),this.componentName=e,this.tagName=t,this.fullName=s,this.attrs=r,this.directives=i,this.children=o,this.isSelfClosing=a,this.startSourceSpan=c,this.endSourceSpan=p}visit(e,t){return e.visitComponent(this,t)}},Gp=class{name;attrs;sourceSpan;startSourceSpan;endSourceSpan;constructor(e,t,s,r,i=null){this.name=e,this.attrs=t,this.sourceSpan=s,this.startSourceSpan=r,this.endSourceSpan=i}visit(e,t){return e.visitDirective(this,t)}},rc=class{expression;sourceSpan;constructor(e,t){this.expression=e,this.sourceSpan=t}visit(e,t){return e.visitBlockParameter(this,t)}},ic=class{name;value;sourceSpan;nameSpan;valueSpan;constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.nameSpan=r,this.valueSpan=i}visit(e,t){return e.visitLetDeclaration(this,t)}};function xe(n,e,t=null){let s=[],r=n.visit?i=>n.visit(i,t)||i.visit(n,t):i=>i.visit(n,t);return e.forEach(i=>
20{let o=r(i);o&&s.push(o)}),s}var Vo={AElig:"\xC6",AMP:"&",amp:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xC5",angst:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212C",Bscr:"\u212C",bernou:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",breve:"\u02D8",Bumpeq:"\u224E",HumpDownHump:"\u224E",bump:"\u224E",CHcy:"\u0427",COPY:"\xA9",copy:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212D",Cfr:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",cedil:"\xB8",CenterDot:"\xB7",centerdot:"\xB7",middot:"\xB7",Chi:"\u03A7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201D",rdquo:"\u201D",rdquor:"\u201D",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2A74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222F",DoubleContourIntegral:"\u222F",ContourIntegral:"\u222E",conint:"\u222E",oint:"\u222E",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",asympeq:"\u224D",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",DoubleLeftTee:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",acute:"\xB4",DiacriticalDot:"\u02D9",dot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",dblac:"\u02DD",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02DC",tilde:"\u02DC",Diamond:"\u22C4",diam:"\u22C4",diamond:"\u22C4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DoubleDot:"\xA8",die:"\xA8",uml:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21D3",Downarrow:"\u21D3",dArr:"\u21D3",DoubleLeftArrow:"\u21D0",Leftarrow:"\u21D0",lArr:"\u21D0",DoubleLeftRightArrow:"\u21D4",Leftrightarrow:"\u21D4",hArr:"\u21D4",iff:"\u21D4",DoubleLongLeftArrow:"\u27F8",Longleftarrow:"\u27F8",xlArr:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",Longleftrightarrow:"\u27FA",xhArr:"\u27FA",DoubleLongRightArrow:"\u27F9",Longrightarrow:"\u27F9",xrArr:"\u27F9",DoubleRightArrow:"\u21D2",Implies:"\u21D2",Rightarrow:"\u21D2",rArr:"\u21D2",DoubleRightTee:"\u22A8",vDash:"\u22A8",DoubleUpArrow:"\u21D1",Uparrow:"\u21D1",uArr:"\u21D1",DoubleUpDownArrow:"\u21D5",Updownarrow:"\u21D5",vArr:"\u21D5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",duarr:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",leftharpoondown:"\u21BD",lhard:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",rhard:"\u21C1",rightharpoondown:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",top:"\u22A4",DownTeeArrow:"\u21A7",mapstodown:"\u21A7",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21CC",rightleftharpoons:"\u21CC",rlhar:"\u21CC",Escr:"\u2130",expectation:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}
20",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",blacksquare:"\u25AA",squarf:"\u25AA",squf:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",ggg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22DB",gel:"\u22DB",gtreqless:"\u22DB",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2A7E",geqslant:"\u2A7E",ges:"\u2A7E",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",NestedGreaterGreater:"\u226B",gg:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",caron:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",Poincareplane:"\u210C",HilbertSpace:"\u210B",Hscr:"\u210B",hamilt:"\u210B",Hopf:"\u210D",quaternions:"\u210D",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224F",bumpe:"\u224F",bumpeq:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xCC",Imacr:"\u012A",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222C",Integral:"\u222B",int:"\u222B",Intersection:"\u22C2",bigcap:"\u22C2",xcap:"\u22C2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219E",twoheadleftarrow:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",lang:"\u27E8",langle:"\u27E8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21E4",larrb:"\u21E4",LeftArrowRightArrow:"\u21C6",leftrightarrows:"\u21C6",lrarr:"\u21C6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27E6",lobrk:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",dharl:"\u21C3",downharpoonleft:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",lfloor:"\u230A",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",dashv:"\u22A3",LeftTeeArrow:"\u21A4",mapstoleft:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",vartriangleleft:"\u22B2",vltri:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",ltrie:"\u22B4",trianglelefteq:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",uharl:"\u21BF",upharpoonleft:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",leftharpoonup:"\u21BC",lharu:"\u21BC",LeftVectorBar:"\u2952",LessEqualGreater:"\u22DA",leg:"\u22DA",lesseqgtr:"\u22DA",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",leqslant:"\u2A7D",les:"\u2A7D",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",lAarr:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",longleftarrow:"\u27F5",xlarr:"\u27F5",LongLeftRightArrow:"\u27F7",longleftrightarrow:"\u27F7",xharr:"\u27F7",LongRightArrow:"\u27F6",longrightarrow:"\u27F6",xrarr:"\u27F6",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21B0",lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",NestedLessLess:"\u226A",ll:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1D544}",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",ZeroWidthSpace:"\u200B",NewLine:` 21`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",N
21otSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",vrtri:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",rtrie:"\u22B5",trianglerighteq:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",uharr:"\u21BE",upharpoonright:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",rharu:"\u21C0",rightharpoonup:"\u21C0",RightVectorBar:"\u2953",Ropf:"\u211D",reals:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",rAarr:"\u21DB",Rscr:"\u211B",realine:"\u211B",Rsh:"\u21B1",rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",radic:"\u221A",Square:"\u25A1",squ:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228F",sqsub:"\u228F",sqsubset:"\u228F",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",sstarf:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227B",sc:"\u227B",succ:"\u227B",SucceedsEqual:"\u2AB0",sce:"\u2AB0",succeq:"\u2AB0",SucceedsSlantEqual:"\u227D",sccue:"\u227D",succcurlyeq:"\u227D",SucceedsTilde:"\u227F",scsim:"\u227F",succsim:"\u227F",Sum:"\u2211",sum:"\u2211",Sup:"\u22D1",Supset:"\u22D1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xDE",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickS
21pace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223C",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",tdot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",lowbar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",bbrk:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",bigcup:"\u22C3",xcup:"\u22C3",UnionPlus:"\u228E",uplus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",udarr:"\u21C5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296E",udhar:"\u296E",UpTee:"\u22A5",bot:"\u22A5",bottom:"\u22A5",perp:"\u22A5",UpTeeArrow:"\u21A5",mapstoup:"\u21A5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",bigvee:"\u22C1",xvee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200A",hairsp:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",bigwedge:"\u22C0",xwedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",mstpos:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acy:"\u0430",aelig:"\xE6",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",and:"\u2227",wedge:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslo
21pe:"\u2A58",andv:"\u2A5A",ang:"\u2220",angle:"\u2220",ange:"\u29A4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",approxeq:"\u224A",apid:"\u224B",apos:"'",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",midast:"*",atilde:"\xE3",auml:"\xE4",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",bcong:"\u224C",backepsilon:"\u03F6",bepsi:"\u03F6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223D",bsim:"\u223D",backsimeq:"\u22CD",bsime:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23B6",bcy:"\u0431",bdquo:"\u201E",ldquor:"\u201E",bemptyv:"\u29B0",beta:"\u03B2",beth:"\u2136",between:"\u226C",twixt:"\u226C",bfr:"\u{1D51F}",bigcirc:"\u25EF",xcirc:"\u25EF",bigodot:"\u2A00",xodot:"\u2A00",bigoplus:"\u2A01",xoplus:"\u2A01",bigotimes:"\u2A02",xotime:"\u2A02",bigsqcup:"\u2A06",xsqcup:"\u2A06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25BD",xdtri:"\u25BD",bigtriangleup:"\u25B3",xutri:"\u25B3",biguplus:"\u2A04",xuplus:"\u2A04",bkarow:"\u290D",rbarr:"\u290D",blacklozenge:"\u29EB",lozf:"\u29EB",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",minusb:"\u229F",boxplus:"\u229E",plusb:"\u229E",boxtimes:"\u22A0",timesb:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2AAE",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cemptyv:"\u29B2",cent:"\xA2",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21BA",olarr:"\u21BA",circlearrowright:"\u21BB",orarr:"\u21BB",circledS:"\u24C8",oS:"\u24C8",circledast:"\u229B",oast:"\u229B",circledcirc:"\u229A",ocir:"\u229A",circleddash:"\u229D",odash:"\u229D",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2A6D",copf:"\u{1D554}",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",curlyeqprec:"\u22DE",cuesc:"\u22DF",curlyeqsucc:"\u22DF",cularr:"\u21B6",curvearrowleft:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curvearrowright:"\u21B7",curarrm:"\u293C",curlyvee:"\u22CE",cuvee:"\u22CE",curlywedge:"\u22CF",cuwed:"\u22CF",curren:"\xA4",cwint:"\u2231",cylcty:"\u232D",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290F",rBarr:"\u290F",dcaron:"\u010F",dcy:"\u0434",ddarr:"\u21CA",downdownarrows:"\u21CA",ddotseq:"\u2A77",eDDot:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03DD",gammad:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",llcorner:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22A
211",sdotb:"\u22A1",drcorn:"\u231F",lrcorner:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",triangledown:"\u25BF",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xEA",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044D",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",eqslantgtr:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",eqslantless:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",straightepsilon:"\u03F5",varepsilon:"\u03F5",equals:"=",equest:"\u225F",questeq:"\u225F",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212F",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",fork:"\u22D4",pitchfork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1D4BB}",gEl:"\u2A8C",gtreqqless:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gap:"\u2A86",gtrapprox:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gnsim:"\u22E7",gopf:"\u{1D558}",gscr:"\u210A",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtrdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrarr:"\u2978",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hardcy:"\u044A",harrcir:"\u2948",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",hbar:"\u210F",hslash:"\u210F",planck:"\u210F",plankv:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",larrhk:"\u21A9",hookrightarrow:"\u21AA",rarrhk:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xED",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",ifr:"\u{1D526}",igrave:"\xEC",iiiint:"\u2A0C",qint:"\u2A0C",iiint:"\u222D",tint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",imath:"\u0131",inodot:"\u0131",imof:"\u22B7",imped:"\u01B5",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",intcal:"\u22BA",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iquest:"\xBF",iscr:"\u{1D4BE}",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",kcedil
21:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAtail:"\u291B",lBarr:"\u290E",lEg:"\u2A8B",lesseqqgtr:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lambda:"\u03BB",langd:"\u2991",lap:"\u2A85",lessapprox:"\u2A85",laquo:"\xAB",larrbfs:"\u291F",larrfs:"\u291D",larrlp:"\u21AB",looparrowleft:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",leftarrowtail:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lcy:"\u043B",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21C7",llarr:"\u21C7",leftthreetimes:"\u22CB",lthree:"\u22CB",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessdot:"\u22D6",ltdot:"\u22D6",lfisht:"\u297C",lfr:"\u{1D529}",lgE:"\u2A91",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",longmapsto:"\u27FC",xmap:"\u27FC",looparrowright:"\u21AC",rarrlp:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",loz:"\u25CA",lozenge:"\u25CA",lpar:"(",lparlt:"\u2993",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsime:"\u2A8D",lsimg:"\u2A8F",lsquor:"\u201A",sbquo:"\u201A",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",triangleleft:"\u25C3",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",strns:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midcir:"\u2AF0",minus:"\u2212",minusdu:"\u2A2A",mlcp:"\u2ADB",models:"\u22A7",mopf:"\u{1D55E}",mscr:"\u{1D4C2}",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nLeftarrow:"\u21CD",nlArr:"\u21CD",nLeftrightarrow:"\u21CE",nhArr:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nRightarrow:"\u21CF",nrArr:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nacute:"\u0144",nang:"\u2220\u20D2",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",natur:"\u266E",natural:"\u266E",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",neArr:"\u21D7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1D52B}",nharr:"\u21AE",nleftrightarrow:"\u21AE",nhpar:"\u2AF2",nis:"\u22FC",nisd:"\u22FA",njcy:"\u045A",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219A",nleftarrow:"\u219A",nldr:"\u2025",nopf:"\u{1D55F}",not:"\xAC",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinvb:"\u22F7",notinvc:"\u22F6",notnivb:"\u22FE",notnivc:"\u22FD",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",nrarr:"\u219B",nrightarrow:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nscr:"\u{1D4C3}",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsubseteqq:"\u2AC5\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupseteqq:"\u2AC6\u0338",ntilde:"\xF1",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xF3",ocirc:"\xF4",ocy:"\u043E",odblac:"\u0151",odiv:"\u2A38",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",olcir:"\u29BE",olcross:"\u29BB",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",or:"\u2228",vee:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oslas
21h:"\xF8",osol:"\u2298",otilde:"\xF5",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",para:"\xB6",parsim:"\u2AF3",parsl:"\u2AFD",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",straightphi:"\u03D5",varphi:"\u03D5",phone:"\u260E",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",planckh:"\u210E",plus:"+",plusacir:"\u2A23",pluscir:"\u2A22",plusdu:"\u2A25",pluse:"\u2A72",plussim:"\u2A26",plustwo:"\u2A27",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",prE:"\u2AB3",prap:"\u2AB7",precapprox:"\u2AB7",precnapprox:"\u2AB9",prnap:"\u2AB9",precneqq:"\u2AB5",prnE:"\u2AB5",precnsim:"\u22E8",prnsim:"\u22E8",prime:"\u2032",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quatint:"\u2A16",quest:"?",rAtail:"\u291C",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",raemptyv:"\u29B3",rangd:"\u2992",range:"\u29A5",raquo:"\xBB",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rightarrowtail:"\u21A3",rarrw:"\u219D",rightsquigarrow:"\u219D",ratail:"\u291A",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21B3",rect:"\u25AD",rfisht:"\u297D",rfr:"\u{1D52F}",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",rightrightarrows:"\u21C9",rrarr:"\u21C9",rightthreetimes:"\u22CC",rthree:"\u22CC",ring:"\u02DA",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rsaquo:"\u203A",rscr:"\u{1D4C7}",rtimes:"\u22CA",rtri:"\u25B9",triangleright:"\u25B9",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",scE:"\u2AB4",scap:"\u2AB8",succapprox:"\u2AB8",scaron:"\u0161",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",succneqq:"\u2AB6",scnap:"\u2ABA",succnapprox:"\u2ABA",scnsim:"\u22E9",succnsim:"\u22E9",scpolint:"\u2A13",scy:"\u0441",sdot:"\u22C5",sdote:"\u2A66",seArr:"\u21D8",sect:"\xA7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1D530}",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",simdot:"\u2A6A",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",smashp:"\u2A33",smeparsl:"\u29E4",smile:"\u2323",ssmile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\uFE00",sqcups:"\u2294\uFE00",sscr:"\u{1D4C8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2AC5",subseteqq:"\u2AC5",subdot:"\u2ABD",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subsetneqq:"\u2ACB",subne:"\u228A",subsetneq:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supseteqq:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supsetneqq:"\u2ACC",supne:"\u228B",supsetneq:"\u228B",supplus:"\u2AC0",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1D531}",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",vartheta:"\u03D1",thorn:"\xFE",times:"\xD7",timesbar:"\u2A31",timesd:"\u2A30",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tprime:"\u2034",triangle:"\u25B5",utri:"\u25B5",triangleq:"\u225C",trie:"\u225C",tridot:"\u25EC",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",uHar:"\u2963",uacute:"\xFA",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uogon:"\u0173",uopf:"\u{1D566}",upsi:"\u03C5",upsilon:"\u03C5",upuparrows:"\u21C8",uuarr:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",uuml:"\xFC",uwangle:"\u29A7",vBar:"\u2AE8",vBarv:"\u2AE9",vangrt:"\u299C",varsubsetneq:"\u228A\uFE00",vsubne:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",vsubnE:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",vsupne:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vsupnE:"\u2ACC\uFE00",vcy:"\u0432",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",vfr:"\u{1D533}",vopf:"\u{1D567}",vscr:"\u{1D4CB}",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wscr:"\u{1D4CC}",xfr:"\u{1D535}",xi:"\u03BE",xnis:"\u22FB",xopf:"\u{1D569}",xscr:"\u{1D4CD}",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},vE="\uE500";Vo.ngsp=vE;var Xp=class{tokens;errors;nonNormalizedIcuExpressions;constructor(e,t,s){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=s}};function fb(n,e,t,s={}){let r=new Yp(new jl(n,e),t,s);return r.tokenize(),new Xp(xb(r.tokens),r.errors,r.nonNormalizedIcuExpressions)}var db=/\r\n?/g;function Cr(n){return`Unexpected character "${n===Xe?"EOF":String.fromCharCode(n)}"`}function wS(n){return`Unknown entity "${n}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function mb(n,e){return`Unable to parse entity "${e}" - ${n} character reference entities must end with ";"`}var Qp=(function(n){return n.HEX="hexadecimal",n.DEC="decimal",n})(Qp||{}),gb=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"],ki={start:"{{",end:"}}"},Yp=class{_getTagDefinition;_cursor;_tokenizeIcu;_leadingTriviaCodePoints;_currentTokenStart=null;_currentTokenType=null;_expansionCaseStack=[];_openDirectiveCount=0;_inInterpolation=!1;_preserveLineEndings;_i18nNormalizeLineEndingsInICUs;_tokenizeBlocks;_tokenizeLet;_selectorlessEnabled;tokens=[];errors=[];nonNormalizedIcuExpressions=[];constructor(e,t,s){this._getTagDefinition=t,this._tokenizeIcu=s.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=s.leadingTriviaChars&&s.leadingTriviaChars.map(i=>i.codePointAt(0)||0);let r=s.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=s.escapedString?new Kp(e,r):new oc(e,r),this._preserveLineEndings=s.preserveLineEndings||
21!1,this._i18nNormalizeLineEndingsInICUs=s.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=s.tokenizeBlocks??!0,this._tokenizeLet=s.tokenizeLet??!0,this._selectorlessEnabled=s.selectorlessEnabled??!1;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(db,` 22`)}tokenize(){for(;this._cursor.peek()!==Xe;){let e=this._cursor.clone();try{this._attemptCharCode(Br)?this._attemptCharCode(kp)?this._attemptCharCode(En)?this._consumeCdata(e):this._attemptCharCode(ql)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(Ht)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeLet&&this._cursor.peek()===Ar&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(ct)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(t){this.handleError(t)}}this._beginToken(41),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();return this._attemptCharCodeUntilFn(s=>ko(s)?!e:Ab(s)?(e=!0,!1):!0),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._requireCharCode(Ar),this._beginToken(24,e);let t=this._endToken([this._getBlockName()]);if(t.parts[0]==="default never"&&this._attemptCharCode(St)){this._beginToken(25),this._endToken([]),this._beginToken(26),this._endToken([]);return}if(this._cursor.peek()===pt)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Ce),this._attemptCharCode(Fe))this._attemptCharCodeUntilFn(Ce);else{t.type=28;return}this._attemptCharCode(Wt)?(this._beginToken(25),this._endToken([])):this._isBlockStart()&&(t.parts[0]==="case"||t.parts[0]==="default")?(this._beginToken(25),this._endToken([]),this._beginToken(26),this._endToken([])):t.type=28}_consumeBlockEnd(e){this._beginToken(26,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(xS);this._cursor.peek()!==Fe&&this._cursor.peek()!==Xe;){this._beginToken(27);let e=this._cursor.clone(),t=null,s=0;for(;this._cursor.peek()!==St&&this._cursor.peek()!==Xe||t!==null;){let r=this._cursor.peek();if(r===qs)this._cursor.advance();else if(r===t)t=null;else if(t===null&&Hi(r))t=r;else if(r===pt&&t===null)s++;else if(r===Fe&&t===null){if(s===0)break;s>0&&s--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(xS)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(29,e),ko(this._cursor.peek()))this._attemptCharCodeUntilFn(Ce);else{let r=this._endToken([this._cursor.getChars(e)]);r.type=32;return}let t=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Ce),!this._attemptCharCode(We)){t.type=32;return}this._attemptCharCodeUntilFn(r=>Ce(r)&&!Hl(r)),this._consumeLetDeclarationValue(),this._cursor.peek()===St?(this._beginToken(31),this._cursor.advance(),this._endToken([])):(t.type=32,t.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),t=!1;return this._attemptCharCodeUntilFn(s=>gs(s)||s===Ac||s===As||t&&jt(s)?(t=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(30,e);this._cursor.peek()!==Xe;){let t=this._cursor.peek();if(t===St)break;Hi(t)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(s=>s===qs?(this._cursor.advance(),!1):s===t)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(Eb(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===ct){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(this._currentTokenStart===null)throw new R(this._cursor.getSpan(t),"Programming error - attempted to end a token when there was no start to the token");if(this._currentTokenType===null)throw new R(this._cursor.getSpan(this._currentTokenStart),"Programming error - attempted to end a token which has no token type");let s={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(s),this._currentTokenStart=null,this._currentTokenType=null,s}_createError(e,t){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let s=new R(t,e);return this._currentTokenStart=null,this._currentTokenType=null,s}handleError(e){if(e instanceof qo&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof R)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return wb(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Cr(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return!1;let s=this._cursor.clone();for(let r=0;r<t;r++)if(!this._attemptCharCode(e.charCodeAt(r)))return this._cursor=s,!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(Cr(this._cursor.peek()),this._cursor.getSpan(t))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,t){let s=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(s)<t)throw this._createError(Cr(this._cursor.peek()),this._cursor.getSpan(s))}_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 s=this._cursor.clone();for(let r=0;r<t;r++){if(s.peek()!==e.charCodeAt(r))return!1;s.advance()}return!0}_isBlockStart(){return this._cursor.peek()===Ar&&gb.some(e=>this._peekStr(e))}_isLetStart(){return this._cursor.peek()===Ar&&this._peekStr("@let")}_consumeEntity(e){this._beginToken(9);let t=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(Vy)){let s=this._attemptCharCode(Qy)||this._attemptCharCode(P_),r=this._cursor.clone();if(this._attemptCharCodeUntilFn(Sb),this._cursor.peek()!=St){this._cursor.advance();let o=s?Qp.HEX:Qp.DEC;throw this._createError(mb(o,this._cursor.getChars(t)),this._cursor.getSpan())}let i=this._cursor.getChars(r);this._cursor.advance();try{let o=parseInt(i,s?16:10);this._endToken([String.fromCodePoint(o),this._cursor.getChars(t)])}catch(o){throw this._createError(wS(this._cursor.getChars(t)),this._cursor.getSpan())}}else{let s=this._cursor.clone();if(this._attemptCharCodeUntilFn(yb),this._cursor.peek()!=St)this._beginToken(e,t),this._cursor=s,this._endToken(["&"]);else{let r=this._cursor.getChars(s);this._cursor.advance();let i=Vo.hasOwnProperty(r)&&Vo[r];if(!i)throw this._createError(wS(r),this._cursor.getSpan(t));this._endToken([i,`&${r};`])}}}_consumeRawText(e,t){this._beginToken(e?6:7);let s=[];for(;;){let r=this._cursor.clone(),i=t();if(this._cursor=r,i)break;e&&this._cursor.peek()===Vl?(this._endToken([this._processCarriageReturns(s.join(""))]),s.length=0,this._consumeEntity(6),this._beginToken(6)):s.push(this._readChar())}this._endToken([this._processCarriageReturns(s.join(""))])}_consumeComment(e){this._beginToken(10,e),this._requireCharCode(ql),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e);let t=this._cursor.clone();this._attemptUntilChar(Dt);let s=this._cursor.getChars(t);this._cursor.advance(),this._endToken([s])}_consumePrefixAndName(e){let t=this._cursor.clone(),s="";for(;this._cursor.peek()!==vn&&!vb(this._cursor.peek());)this._cursor.advance();let r;this._cursor.peek()===vn?(s=this._cursor.getChars(t),this._cursor.advance(),r=this._cursor.clone()):r=t,this._requireCharCodeUntilFn(e,s===""?0:1);let i=this._cursor.getChars(r);return[s,i]}_consumeTagOpen(e){let t,s,r,i;try{if(this._selectorlessEnabled&&Ka(this._cursor.peek()))i=this._consumeComponentOpenStart(e),[r,s,t]=i.parts,s&&(r+=`:${s}`),t&&(r+=`:${t}`),this._attemptCharCodeUntilFn(Ce);else{if(!gs(this._cursor.peek()))throw this._createError(Cr(this._cursor.peek()),this._cursor.getSpan(e));i=this._consumeTagOpenStart(e),s=i.parts[0],t=r=i.parts[1],this._attemptCharCodeUntilFn(Ce)}for(;!CS(this._cursor.peek());)if(this._selectorlessEnabled&&this._cursor.peek()===Ar){let a=this._cursor.clone(),l=a.clone();l.advance(),Ka(l.peek())&&this._consumeDirective(a,l)}else this._consumeAttribute();i.type===33?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(a){if(a instanceof R){i?i.type=i.type===33?37:4:(this._beginToken(5,e),this._endToken(["<"]));return}throw a}let o=this._getTagDefinition(t).getContentType(s);o===gn.RAW_TEXT?this._consumeRawTextWithTagClose(i,r,!1):o===gn.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(i,r,!0)}_consumeRawTextWithTagClose(e,t,s){this._consumeRawText(s,()=>!this._attemptCharCode(Br)||!this._attemptCharCode(Ht)||(this._attemptCharCodeUntilFn(Ce),!this._attemptStrCaseInsensitive(t))?!1:(this._attemptCharCodeUntilFn(Ce),this._attemptCharCode(Dt))),this._beginToken(e.type===33?36:3),this._requireCharCodeUntilFn(r=>r===Dt,3),this._cursor.advance(),this._endToken(e.parts)}_consumeTagOpenStart(e){this._beginToken(0,e);let t=this._consumePrefixAndName(Is);return this._endToken(t)}_consumeComponentOpenStart(e){this._beginToken(33,e);let t=this._consumeComponentName();return this._endToken(t)}_consumeComponentName(){let e=this._cursor.clone();for(;_S(this._cursor.peek());)this._cursor.advance();let t=this._cursor.getChars(e),s="",r="";return this._cursor.peek()===vn&&(this._cursor.advance(),[s,r]=this._consumePrefixAndName(Is)),[t,s,r]}_consumeAttribute(){this._consumeAttributeName(),this._attemptCharCodeUntilFn(Ce),this._attemptCharCode(We)&&(this._attemptCharCodeUntilFn(Ce),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Ce)}_consumeAttributeName(){let e=this._cursor.peek();if(e===To||e===bo)throw this._createError(Cr(e),this._cursor.getSpan());this._beginToken(14);let t;if(this._openDirectiveCount>0){let r=0;t=i=>{if(this._openDirectiveCount>0){if(i===pt)r++;else if(i===Fe){if(r===0)return!0;r--}}return Is(i)}}else if(e===En){let r=0;t=i=>(i===En?r++:i===Fn&&r--,r<=0?Is(i):Hl(i))}else t=Is;let s=this._consumePrefixAndName(t);this._endToken(s)}_consumeAttributeValue(){if(this._cursor.peek()===To||this._cursor.peek()===bo){let e=this._cursor.peek();this._consumeQuote(e);let t=()=>this._cursor.peek()===e;this._consumeWithInterpolation(16,17,t,t),this._consumeQuote(e)}else{let e=()=>Is(this._cursor.peek());this._consumeWithInterpolation(16,17,e,e)}}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(Ht)?2:1;this._beginToken(e),this._requireCharCode(Dt),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(Ht)?35:34;this._beginToken(e),this._requireCharCode(Dt),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let s=e.clone();for(;s.peek()!==Dt&&!Ka(s.peek());)s.advance();if(Ka(s.peek())){this._beginToken(36,e);let r=this._consumeComponentName();this._attemptCharCodeUntilFn(Ce),this._requireCharCode(Dt),this._endToken(r);return}}this._beginToken(3,e),this._attemptCharCodeUntilFn(Ce);let t=this._consumePrefixAndName(Is);this._attemptCharCodeUntilFn(Ce),this._requireCharCode(Dt),this._endToken(t)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(Wt),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);let e=this._readUntil(it),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{let r=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(r)}this._requireCharCode(it),this._attemptCharCodeUntilFn(Ce),this._beginToken(7);let s=this._readUntil(it);this._endToken([s]),this._requireCharCode(it),this._attemptCharCodeUntilFn(Ce)}_consumeExpansionCaseStart(){this._beginToken(20);let e=this._readUntil(Wt).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Ce),this._beginToken(21),this._requireCharCode(Wt),this._endToken([]),this._attemptCharCodeUntilFn(Ce),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(ct),this._endToken([]),this._attemptCharCodeUntilFn(Ce),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(ct),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,s,r){this._beginToken(e);let i=[];for(;!s();){let o=this._cursor.clone();this._attemptStr(ki.start)?(this._endToken([this._processCarriageReturns(i.join(""))],o),i.length=0,this._consumeInterpolation(t,o,r),this._beginToken(e)):this._cursor.peek()===Vl?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1,this._endToken([this._processCarriageReturns(i.join(""))])}_consumeInterpolation(e,t,s){let r=[];this._beginToken(e,t),r.push(ki.start);let i=this._cursor.clone(),o=null,a=!1;for(;this._cursor.peek()!==Xe&&(s===null||!s());){let l=this._cursor.clone();
22if(this._isTagStart()){this._cursor=l,r.push(this._getProcessedChars(i,l)),this._endToken(r);return}if(o===null)if(this._attemptStr(ki.end)){r.push(this._getProcessedChars(i,l)),r.push(ki.end),this._endToken(r);return}else this._attemptStr("//")&&(a=!0);let c=this._cursor.peek();this._cursor.advance(),c===qs?this._cursor.advance():c===o?o=null:!a&&o===null&&Hi(c)&&(o=c)}r.push(this._getProcessedChars(i,this._cursor)),this._endToken(r)}_consumeDirective(e,t){for(this._requireCharCode(Ar),this._cursor.advance();_S(this._cursor.peek());)this._cursor.advance();this._beginToken(38,e);let s=this._cursor.getChars(t);if(this._endToken([s]),this._attemptCharCodeUntilFn(Ce),this._cursor.peek()===pt){for(this._openDirectiveCount++,this._beginToken(39),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Ce);!CS(this._cursor.peek())&&this._cursor.peek()!==Fe;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(Ce),this._openDirectiveCount--,this._cursor.peek()!==Fe){if(this._cursor.peek()===Dt||this._cursor.peek()===Ht)return;throw this._createError(Cr(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(40),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Ce)}}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===Xe||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===ct&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===ct))}
22_isTagStart(){if(this._cursor.peek()===Br){let e=this._cursor.clone();e.advance();let t=e.peek();if(nr<=t&&t<=Jo||ws<=t&&t<=oi||t===Ht||t===kp)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]===21}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===19}isExpansionFormStart(){if(this._cursor.peek()!==Wt)return!1;let e=this._cursor.clone(),t=this._attemptStr(ki.start);return this._cursor=e,!t}};function Ce(n){return!ko(n)||n===Xe}function Is(n){return ko(n)||n===Dt||n===Br||n===Ht||n===To||n===bo||n===We||n===Xe}function vb(n){return(n<nr||Jo<n)&&(n<ws||oi<n)&&(n<Vh||n>Hy)}function Sb(n){return n===St||n===Xe||!F_(n)}function yb(n){return n===St||n===Xe||!(gs(n)||jt(n))}function Eb(n){return n!==ct}function wb(n,e){return AS(n)===AS(e)}function AS(n){return n>=nr&&n<=Jo?n-nr+ws:n}function Ab(n){return gs(n)||jt(n)||n===As}function xS(n){return n!==St&&Ce(n)}function Ka(n){return n===As||n>=ws&&n<=oi}function _S(n){return gs(n)||jt(n)||n===As}function CS(n){return n===Ht||n===Dt||n===Br||n===Xe}function xb(n){let e=[],t;for(let s=0;s<n.length;s++){let r=n[s];t&&t.type===5&&r.type===5||t&&t.type===16&&r.type===16?(t.parts[0]+=r.parts[0],t.sourceSpan.end=r.sourceSpan.end):(t=r,e.push(t))}return e}var oc=class n{state;file;input;end;constructor(e,t){if(e instanceof n){this.file=e.file,this.input=e.input,this.end=e.end;let s=e.state;this.state={peek:s.peek,offset:s.offset,line:s.line,column:s.column}}else{if(!t)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=t.endPos,this.state={peek:-1,offset:t.startPos,line:t.startLine,column:t.startCol}}}clone(){return new n(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){e=e||this;let s=e;if(t)for(;this.diff(e)>0&&t.indexOf(e.peek())!==-1;)s===e&&(e=e.clone()),e.advance();let r=this.locationFromCursor(e),i=this.locationFromCursor(this),o=s!==e?this.locationFromCursor(s):r;return new $(r,i,o)}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 qo('Unexpected character "EOF"',this);let t=this.charAt(e.offset);t===Vs?(e.line++,e.column=0):Hl(t)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?Xe:this.charAt(e.offset)}locationFromCursor(e){return new No(e.file,e.state.offset,e.state.line,e.state.column)}},Kp=class n extends oc{internalState;constructor(e,t){e instanceof n?(super(e),this.internalState=E({},e.internalState)):(super(e,t),this.internalState=this.state)}
22advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new n(this)}getChars(e){let t=e.clone(),s="";for(;t.internalState.offset<this.internalState.offset;)s+=String.fromCodePoint(t.peek()),t.advance();return s}processEscapeSequence(){let e=()=>this.internalState.peek;if(e()===qs)if(this.internalState=E({},this.state),this.advanceState(this.internalState),e()===jy)this.state.peek=Vs;else if(e()===zy)this.state.peek=Uh;else if(e()===Xy)this.state.peek=Oy;else if(e()===Wy)this.state.peek=$h;else if(e()===L_)this.state.peek=T_;else if(e()===qh)this.state.peek=$y;else if(e()===Gy)if(this.advanceState(this.internalState),e()===Wt){this.advanceState(this.internalState);let t=this.clone(),s=0;for(;e()!==ct;)this.advanceState(this.internalState),s++;this.state.peek=this.decodeHexDigits(t,s)}else{let t=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(t,4)}else if(e()===Qy){this.advanceState(this.internalState);let t=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(t,2)}else if(Zv(e())){let t="",s=0,r=this.clone();for(;Zv(e())&&s<3;)r=this.clone(),t+=String.fromCodePoint(e()),this.advanceState(this.internalState),s++;this.state.peek=parseInt(t,8),this.internalState=r.internalState}else Hl(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,t){let s=this.input.slice(e.internalState.offset,e.internalState.offset+t),r=parseInt(s,16);if(isNaN(r))throw e.state=e.internalState,new qo("Invalid hexadecimal escape sequence",e);return r}},qo=class extends Error{msg;cursor;constructor(e,t){super(e),this.msg=e,this.cursor=t,Object.setPrototypeOf(this,new.target.prototype)}},Le=class n extends R{elementName;static create(e,t,s){return new n(e,t,s)}constructor(e,t,s){super(t,s),this.elementName=e}},ac=class{rootNodes;errors;constructor(e,t){this.rootNodes=e,this.errors=t}},_b=class{getTagDefinition;constructor(e){this.getTagDefinition=e}parse(e,t,s){let r=fb(e,t,this.getTagDefinition,s),i=new Jp(r.tokens,this.getTagDefinition);return i.build(),new ac(i.rootNodes,[...r.errors,...i.errors])}},Jp=class n{tokens;tagDefinitionResolver;_index=-1;_peek;_containerStack=[];rootNodes=[];errors=[];constructor(e,t){this.tokens=e,this.tagDefinitionResolver=t,this._advance()}build(){for(;this._peek.type!==41;)this._peek.type===0||this._peek.type===4?this._consumeElementStartTag(this._advance()):this._peek.type===3?this._consumeElementEndTag(this._advance()):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===19?this._consumeExpansion(this._advance()):this._peek.type===24?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===26?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===28?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===32?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===33||this._peek.type===37?this._consumeComponentStartTag(this._advance()):this._peek.type===36?this._consumeComponentEndTag(this._advance()):this._advance();for(let e of this._containerStack)e instanceof zt&&this.errors.push(Le.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){this._consumeText(this._advance()),this._advanceIf(13)}_consumeComment(e){let t=this._advanceIf(7),s=this._advanceIf(11),r=t!=null?t.parts[0].trim():null,i=s==null?e.sourceSpan:new $(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart);
22this._addToParent(new Uo(r,i))}_consumeExpansion(e){let t=this._advance(),s=this._advance(),r=[];for(;this._peek.type===20;){let o=this._parseExpansionCase();if(!o)return;r.push(o)}if(this._peek.type!==23){this.errors.push(Le.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let i=new $(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Hs(t.parts[0],s.parts[0],r,i,t.sourceSpan)),this._advance()}_parseExpansionCase(){let e=this._advance();if(this._peek.type!==21)return this.errors.push(Le.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let t=this._advance(),s=this._collectExpansionExpTokens(t);if(!s)return null;let r=this._advance();s.push({type:41,parts:[],sourceSpan:r.sourceSpan});let i=new n(s,this.tagDefinitionResolver);if(i.build(),i.errors.length>0)return this.errors=this.errors.concat(i.errors),null;let o=new $(e.sourceSpan.start,r.sourceSpan.end,e.sourceSpan.fullStart),a=new $(t.sourceSpan.start,r.sourceSpan.end,t.sourceSpan.fullStart);return new sc(e.parts[0],i.rootNodes,o,e.sourceSpan,a)}_collectExpansionExpTokens(e){let t=[],s=[21];for(;;){if((this._peek.type===19||this._peek.type===21)&&s.push(this._peek.type),this._peek.type===22)if(bS(s,21)){if(s.pop(),s.length===0)return t}else return this.errors.push(Le.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===23)if(bS(s,19))s.pop();else return this.errors.push(Le.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===41)return this.errors.push(Le.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}}_consumeText(e){let t=[e],s=e.sourceSpan,r=e.parts[0];if(r.length>0&&r[0]===` 23`){let i=this._getContainer();i!=null&&i.children.length===0&&this._getTagDefinition(i)?.ignoreFirstLf&&(r=r.substring(1),t[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[r]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),t.push(e),e.type===8?r+=e.parts.join("").replace(/&([^;]+);/g,TS):e.type===9?r+=e.parts[0]:r+=e.parts.join("");if(r.length>0){let i=e.sourceSpan;this._addToParent(new ar(r,new $(s.start,i.end,s.fullStart,s.details),t))}}_closeVoidElement(){let e=this._getContainer();e!==null&&this._getTagDefinition(e)?.isVoid&&this._containerStack.pop()}_consumeElementStartTag(e){let t=[],s=[];this._consumeAttributesAndDirectives(t,s);let r=this._getElementFullName(e,this._getClosestElementLikeParent()),i=this._getTagDefinition(r),o=!1;this._peek.type===2?(this._advance(),o=!0,i?.canSelfClose||vp(r)!==null||i?.isVoid||this.errors.push(Le.create(r,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))):this._peek.type===1&&(this._advance(),o=!1);let a=this._peek.sourceSpan.fullStart,l=new $(e.sourceSpan.start,a,e.sourceSpan.fullStart),c=new $(e.sourceSpan.start,a,e.sourceSpan.fullStart),p=new qt(r,t,s,[],o,l,c,void 0,i?.isVoid??!1),h=this._getContainer(),f=h!==null&&!!this._getTagDefinition(h)?.isClosedByChild(p.name);this._pushContainer(p,f),o?this._popContainer(r,qt,l):e.type===4&&(this._popContainer(r,qt,null),this.errors.push(Le.create(r,l,`Opening tag "${r}" not terminated.`)))}_consumeComponentStartTag(e){let t=e.parts[0],s=[],r=[];this._consumeAttributesAndDirectives(s,r);let i=this._getClosestElementLikeParent(),o=this._getComponentTagName(e,i),a=this._getComponentFullName(e,i),l=this._peek.type===35;this._advance();let c=this._peek.sourceSpan.fullStart,p=new $(e.sourceSpan.start,c,e.sourceSpan.fullStart),h=new $(e.sourceSpan.start,c,e.sourceSpan.fullStart),f=new lt(t,o,a,s,r,[],l,p,h,void 0),g=this._getContainer(),m=g!==null&&f.tagName!==null&&!!this._getTagDefinition(g)?.isClosedByChild(f.tagName);this._pushContainer(f,m),l?this._popContainer(a,lt,p):e.type===37&&(this._popContainer(a,lt,null),this.errors.push(Le.create(a,p,`Opening tag "${a}" not terminated.`)))}_consumeAttributesAndDirectives(e,t){for(;this._peek.type===14||this._peek.type===38;
23)this._peek.type===38?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,lt,e.sourceSpan)){let s=this._containerStack[this._containerStack.length-1],r;s instanceof lt&&s.componentName===e.parts[0]?r=`, did you mean "${s.fullName}"?`:r=". It may happen when the tag has already been closed by another tag.";let i=`Unexpected closing tag "${t}"${r}`;this.errors.push(Le.create(t,e.sourceSpan,i))}}_getTagDefinition(e){return typeof e=="string"?this.tagDefinitionResolver(e):e instanceof qt?this.tagDefinitionResolver(e.name):e instanceof lt&&e.tagName!==null?this.tagDefinitionResolver(e.tagName):null}_pushContainer(e,t){t&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeElementEndTag(e){let t=this._getElementFullName(e,this._getClosestElementLikeParent());if(this._getTagDefinition(t)?.isVoid)this.errors.push(Le.create(t,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(t,qt,e.sourceSpan)){let s=`Unexpected closing tag "${t}". 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(Le.create(t,e.sourceSpan,s))}}_popContainer(e,t,s){let r=!1;for(let i=this._containerStack.length-1;i>=0;i--){let o=this._containerStack[i];if(((o instanceof lt?o.fullName:o.name)===e||e===null)&&o instanceof t)return o.endSourceSpan=s,o.sourceSpan.end=s!==null?s.end:o.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!r;(o instanceof zt||!this._getTagDefinition(o)?.closedByParent)&&(r=!0)}return!1}_consumeAttr(e){let t=cl(e.parts[0],e.parts[1]),s=e.sourceSpan.end;this._peek.type===15&&this._advance();let r="",i=[],o,a;if(this._peek.type===16)for(o=this._peek.sourceSpan,a=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let p=this._advance();i.push(p),p.type===17?r+=p.parts.join("").replace(/&([^;]+);/g,TS):p.type===9?r+=p.parts[0]:r+=p.parts.join(""),a=s=p.sourceSpan.end}this._peek.type===15&&(s=this._advance().sourceSpan.end);let c=o&&a&&new $(o.start,a,o.fullStart);return new Wp(t,r,new $(e.sourceSpan.start,s,e.sourceSpan.fullStart),e.sourceSpan,c,i.length>0?i:void 0,void 0)}_consumeDirective(e){let t=[],s=e.sourceSpan.end,r=null;if(this._advance(),this._peek.type===39){for(s=this._peek.sourceSpan.end,this._advance();this._peek.type===14;)t.push(this._consumeAttr(this._advance()));this._peek.type===40?(r=this._peek.sourceSpan,this._advance()):this.errors.push(Le.create(null,e.sourceSpan,"Unterminated directive definition"))}let i=new $(e.sourceSpan.start,s,e.sourceSpan.fullStart),o=new $(i.start,r===null?e.sourceSpan.end:r.end,i.fullStart);return new Gp(e.parts[0],t,o,i,r)}_consumeBlockOpen(e){let t=[];for(;this._peek.type===27;){let a=this._advance();t.push(new rc(a.parts[0],a.sourceSpan))}this._peek.type===25&&this._advance();let s=this._peek.sourceSpan.fullStart,r=new $(e.sourceSpan.start,s,e.sourceSpan.fullStart),i=new $(e.sourceSpan.start,s,e.sourceSpan.fullStart),o=new zt(e.parts[0],t,[],r,e.sourceSpan,i);this._pushContainer(o,!1)}_consumeBlockClose(e){let t=this._containerStack.length,s=this._containerStack[t-1];if(!this._popContainer(null,zt,e.sourceSpan)){if(this._containerStack.length<t){let r=s instanceof lt?s.fullName:s.name;this.errors.push(Le.create(null,e.sourceSpan,`Unexpected closing block. The block may have been closed earlier. Did you forget to close the <${r}> element? If you meant to write the \`}\` character, you should use the "}" HTML entity instead.`));return}this.errors.push(Le.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 "}" HTML entity instead.'))}}_consumeIncompleteBlock(e){let t=[];for(;this._peek.type===27;){let a=this._advance();t.push(new rc(a.parts[0],a.sourceSpan))}let s=this._peek.sourceSpan.fullStart,r=new $(e.sourceSpan.start,s,e.sourceSpan.fullStart),i=new $(e.sourceSpan.start,s,e.sourceSpan.fullStart),o=new zt(e.parts[0],t,[],r,e.sourceSpan,i);this._pushContainer(o,!1),this._popContainer(null,zt,null),this.errors.push(Le.create(e.parts[0],r,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(e){let t=e.parts[0],s,r;if(this._peek.type!==30){this.errors.push(Le.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${t}". Declaration must have a value.`));return}else s=this._advance();if(this._peek.type!==31){this.errors.push(Le.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${t}". Declaration must be terminated with a semicolon.`));return}else r=this._advance();let i=r.sourceSpan.end,o=new $(e.sourceSpan.start,i,e.sourceSpan.fullStart),a=e.sourceSpan.toString().lastIndexOf(t),l=e.sourceSpan.start.moveBy(a),c=new $(l,e.sourceSpan.end),p=new ic(t,s.parts[0],o,c,s.sourceSpan);this._addToParent(p)}_consumeIncompleteLet(e){let t=e.parts[0]??"",s=t?` "${t}"`:"";if(t.length>0){let r=e.sourceSpan.toString().lastIndexOf(t),i=e.sourceSpan.start.moveBy(r),o=new $(i,e.sourceSpan.end),a=new $(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),l=new ic(t,"",e.sourceSpan,o,a);this._addToParent(l)}this.errors.push(Le.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${s}. @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 qt||t instanceof lt)return t}return null}_addToParent(e){let t=this._getContainer();t===null?this.rootNodes.push(e):t.children.push(e)}_getElementFullName(e,t){let s=this._getPrefix(e,t);return cl(s,e.parts[1])}_getComponentFullName(e,t){let s=e.parts[0],r=this._getComponentTagName(e,t);return r===null?s:r.startsWith(":")?s+r:`${s}:${r}`}_getComponentTagName(e,t){let s=this._getPrefix(e,t),r=e.parts[2];return!s&&!r?null:!s&&r?r:cl(s,r||"ng-component")}_getPrefix(e,t){let s,r;if(e.type===33||e.type===37||e.type===36?(s=e.parts[1],r=e.parts[2]):(s=e.parts[0],r=e.parts[1]),s=s||this._getTagDefinition(r)?.implicitNamespacePrefix||"",!s&&t){let i=t instanceof qt?t.name:t.tagName;if(i!==null){let o=ot(i)[1],a=this._getTagDefinition(o);a!==null&&!a.preventNamespaceInheritance&&(s=vp(i))}}return s}};function bS(n,e){return n.length>0&&n[n.length-1]===e}function TS(n,e){return Vo[e]!==void 0?Vo[e]||n:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):n}
23var SE="ngPreserveWhitespaces",kS=new Set(["pre","template","textarea","script","style"]),yE=` \f 24\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,Cb=new RegExp(`[^${yE}]`),bb=new RegExp(`[${yE}]{2,}`,"g");function NS(n){return n.some(e=>e.name===SE)}function EE(n){return n.replace(new RegExp(vE,"g")," ")}var lc=class{preserveSignificantWhitespace;originalNodeMap;requireContext;icuExpansionDepth=0;constructor(e,t,s=!0){this.preserveSignificantWhitespace=e,this.originalNodeMap=t,this.requireContext=s}visitElement(e,t){if(kS.has(e.name)||NS(e.attrs)){let r=new qt(e.name,fn(this,e.attrs),fn(this,e.directives),e.children,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n);return this.originalNodeMap?.set(r,e),r}let s=new qt(e.name,e.attrs,e.directives,fn(this,e.children),e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n);return this.originalNodeMap?.set(s,e),s}visitAttribute(e,t){return e.name!==SE?e:null}visitText(e,t){let s=e.value.match(Cb),r=t&&(t.prev instanceof Hs||t.next instanceof Hs);if(this.icuExpansionDepth>0&&this.preserveSignificantWhitespace)return e;if(s||r){let o=e.tokens.map(p=>p.type===5?Ib(p):p);if(!this.preserveSignificantWhitespace&&o.length>0){let p=o[0];o.splice(0,1,Tb(p,t));let h=o[o.length-1];o.splice(o.length-1,1,kb(h,t))}let a=AE(e.value),l=this.preserveSignificantWhitespace?a:Nb(a,t),c=new ar(l,e.sourceSpan,o,e.i18n);return this.originalNodeMap?.set(c,e),c}return null}visitComment(e,t){return e}visitExpansion(e,t){this.icuExpansionDepth++;let s;try{s=new Hs(e.switchValue,e.type,fn(this,e.cases),e.sourceSpan,e.switchValueSourceSpan,e.i18n)}finally{this.icuExpansionDepth--}return this.originalNodeMap?.set(s,e),s}visitExpansionCase(e,t){let s=new sc(e.value,fn(this,e.expression),e.sourceSpan,e.valueSourceSpan,e.expSourceSpan);return this.originalNodeMap?.set(s,e),s}visitBlock(e,t){let s=new zt(e.name,e.parameters,fn(this,e.children),e.sourceSpan,e.nameSpan,e.startSourceSpan,e.endSourceSpan);return this.originalNodeMap?.set(s,e),s}visitBlockParameter(e,t){return e}visitLetDeclaration(e,t){return e}visitComponent(e,t){if(e.tagName&&kS.has(e.tagName)||NS(e.attrs)){let r=new lt(e.componentName,e.tagName,e.fullName,fn(this,e.attrs),fn(this,e.directives),e.children,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return this.originalNodeMap?.set(r,e),r}let s=new lt(e.componentName,e.tagName,e.fullName,e.attrs,e.directives,fn(this,e.children),e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return this.originalNodeMap?.set(s,e),s}visitDirective(e,t){return e}visit(e,t){if(this.requireContext&&!t)throw new Error("WhitespaceVisitor requires context. Visit via `visitAllWithSiblings` to get this context.");return!1}};function Tb(n,e){return n.type!==5||!!e?.prev?n:wE(n,s=>s.trimStart())}function kb(n,e){return n.type!==5||!!e?.next?n:wE(n,s=>s.trimEnd())}function Nb(n,e){let t=!e?.prev,s=!e?.next,r=t?n.trimStart():n;return s?r.trimEnd():r}function Ib({type:n,parts:e,sourceSpan:t}){return{type:n,parts:[AE(e[0])],sourceSpan:t}}function wE({type:n,parts:e,sourceSpan:t},s){return{type:n,parts:[s(e[0])],sourceSpan:t}}function AE(n){return EE(n).replace(bb," ")}function fn(n,e){let t=[];return e.forEach((s,r)=>{let i={prev:e[r-1],next:e[r+1]},o=s.visit(n,i);o&&t.push(o)}),t}var B=(function(n){return n[n.Character=0]="Character",n[n.Identifier=1]="Identifier",n[n.PrivateIdentifier=2]="PrivateIdentifier",n[n.Keyword=3]="Keyword",n[n.String=4]="String",n[n.Operator=5]="Operator",n[n.Number=6]="Number",n[n.RegExpBody=7]="RegExpBody",n[n.RegExpFlags=8]="RegExpFlags",n[n.Error=9]="Error",n})(B||{}),js=(function(n){return n[n.Plain=0]="Plain",n[n.TemplateLiteralPart=1]="TemplateLiteralPart",n[n.TemplateLiteralEnd=2]="TemplateLiteralEnd",n})(js||{}),Db=["var","let","as","null","undefined","true","false","if","else","this","typeof","void","in","instanceof"],Ho=class{tokenize(e){return new Zp(e).scan()}},Ut=class{index;end;type;numValue;strValue;constructor(e,t,s,r,i){this.index=e,this.end=t,this.type=s,this.numValue=r,this.strValue=i}isCharacter(e){return this.type===B.Character&&this.numValue===e}isNumber(){return this.type===B.Number}isString(){return this.type===B.String}isOperator(e){return this.type===B.Operator&&this.strValue===e}isIdentifier(){return this.type===B.Identifier}isPrivateIdentifier(){return this.type===B.PrivateIdentifier}isKeyword(){return this.type===B.Keyword}isKeywordLet(){return this.type===B.Keyword&&this.strValue==="let"}isKeywordAs(){return this.type===B.Keyword&&this.strValue==="as"}isKeywordNull(){return this.type===B.Keyword&&this.strValue==="null"}isKeywordUndefined(){return this.type===B.Keyword&&this.strValue==="undefined"}isKeywordTrue(){return this.type===B.Keyword&&this.strValue==="true"}isKeywordFalse(){return this.type===B.Keyword&&this.strValue==="false"}isKeywordThis(){return this.type===B.Keyword&&this.strValue==="this"}isKeywordTypeof(){return this.type===B.Keyword&&this.strValue==="typeof"}isKeywordVoid(){return this.type===B.Keyword&&this.strValue==="void"}isKeywordIn(){return this.type===B.Keyword&&this.strValue==="in"}isKeywordInstanceOf(){return this.type===B.Keyword&&this.strValue==="instanceof"}isError(){return this.type===B.Error}isRegExpBody(){return this.type===B.RegExpBody}isRegExpFlags(){return this.type===B.RegExpFlags}toNumber(){return this.type===B.Number?this.numValue:-1}isTemplateLiteralPart(){return this.isString()&&this.kind===js.TemplateLiteralPart}isTemplateLiteralEnd(){return this.isString()&&this.kind===js.TemplateLiteralEnd}isTemplateLiteralInterpolationStart(){return this.isOperator("${")}toString(){switch(this.type){case B.Character:case B.Identifier:case B.Keyword:case B.Operator:case B.PrivateIdentifier:case B.String:case B.Error:case B.RegExpBody:case B.RegExpFlags:return this.strValue;case B.Number:return this.numValue.toString();default:return null}}},ji=class extends Ut{kind;
24constructor(e,t,s,r){super(e,t,B.String,0,s),this.kind=r}};function Ni(n,e,t){return new Ut(n,e,B.Character,t,String.fromCharCode(t))}function Pb(n,e,t){return new Ut(n,e,B.Identifier,0,t)}function Mb(n,e,t){return new Ut(n,e,B.PrivateIdentifier,0,t)}function Lb(n,e,t){return new Ut(n,e,B.Keyword,0,t)}function Zn(n,e,t){return new Ut(n,e,B.Operator,0,t)}function Rb(n,e,t){return new Ut(n,e,B.Number,t,"")}function Fb(n,e,t){return new Ut(n,e,B.Error,0,t)}function Bb(n,e,t){return new Ut(n,e,B.RegExpBody,0,t)}function Ob(n,e,t){return new Ut(n,e,B.RegExpFlags,0,t)}var Ii=new Ut(-1,-1,B.Character,0,""),Zp=class{input;tokens=[];length;peek=0;index=-1;braceStack=[];constructor(e){this.input=e,this.length=e.length,this.advance()}scan(){let e=this.scanToken();for(;e!==null;)this.tokens.push(e),e=this.scanToken();return this.tokens}advance(){this.peek=++this.index>=this.length?Xe:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,t=this.length,s=this.peek,r=this.index;for(;s<=Uy;)if(++r>=t){s=Xe;break}else s=e.charCodeAt(r);if(this.peek=s,this.index=r,r>=t)return null;if(IS(s))return this.scanIdentifier();if(jt(s))return this.scanNumber(r);let i=r;switch(s){case Ds:return this.advance(),jt(this.peek)?this.scanNumber(i):this.peek!==Ds?Ni(i,this.index,Ds):(this.advance(),this.peek===Ds?(this.advance(),Zn(i,this.index,"...")):this.error(`Unexpected character [${String.fromCharCode(s)}]`,0));case pt:case Fe:case En:case Fn:case it:case vn:case St:return this.scanCharacter(i,s);case Wt:return this.scanOpenBrace(i,s);case ct:return this.scanCloseBrace(i,s);case To:case bo:return this.scanString();case Np:return this.advance(),this.scanTemplateLiteralPart(i);case Vy:return this.scanPrivateIdentifier();case qy:return this.scanComplexOperator(i,"+",We,"=");case ql:return this.scanComplexOperator(i,"-",We,"=");case Ht:return this.isStartOfRegex()?this.scanRegex(r):this.scanComplexOperator(i,"/",We,"=");case k_:return this.scanComplexOperator(i,"%",We,"=");case M_:return this.scanOperator(i,"^");case Yv:return this.scanStar(i);case Kv:return this.scanQuestion(i);case Br:case Dt:return this.scanComplexOperator(i,String.fromCharCode(s),We,"=");case kp:return this.scanComplexOperator(i,"!",We,"=",We,"=");case We:return this.scanEquals(i);case Vl:return this.scanComplexOperator(i,"&",Vl,"&",We,"=");case Jv:return this.scanComplexOperator(i,"|",Jv,"|",We,"=");case Yy:for(;ko(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(s)}]`,0)}scanCharacter(e,t){return this.advance(),Ni(e,this.index,t)}scanOperator(e,t){return this.advance(),Zn(e,this.index,t)}scanOpenBrace(e,t){return this.braceStack.push("expression"),this.advance(),Ni(e,this.index,t)}scanCloseBrace(e,t){return this.advance(),this.braceStack.pop()==="interpolation"?(this.tokens.push(Ni(e,this.index,ct)),this.scanTemplateLiteralPart(this.index)):Ni(e,this.index,t)}scanComplexOperator(e,t,s,r,i,o){this.advance();let a=t;return this.peek==s&&(this.advance(),a+=r),i!=null&&this.peek==i&&(this.advance(),a+=o),Zn(e,this.index,a)}scanEquals(e){this.advance();let t="=";if(this.peek===We)this.advance(),t+="=";else if(this.peek===Dt)return this.advance(),t+=">",Zn(e,this.index,t);return this.peek===We&&(this.advance(),t+="="),Zn(e,this.index,t)}scanIdentifier(){let e=this.index;for(this.advance();DS(this.peek);)this.advance();let t=this.input.substring(e,this.index);return Db.indexOf(t)>-1?Lb(e,this.index,t):Pb(e,this.index,t)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!IS(this.peek))return this.error("Invalid character [#]",-1);for(;DS(this.peek);)this.advance();let t=this.input.substring(e,this.index);return Mb(e,this.index,t)}scanNumber(e){let t=this.index===e,s=!1;for(this.advance();;){if(!jt(this.peek))if(this.peek===As){if(!jt(this.input.charCodeAt(this.index-1))||!jt(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);s=!0}else if(this.peek===Ds)t=!1;else if($b(this.peek)){if(this.advance(),Ub(this.peek)&&this.advance(),!jt(this.peek))return this.error("Invalid exponent",-1);t=!1}else break;this.advance()}let r=this.input.substring(e,this.index);s&&(r=r.replace(/_/g,""));let i=t?qb(r):parseFloat(r);return Rb(e,this.index,i)}scanString(){let e=this.index,t=this.peek;this.advance();let s="",r=this.index,i=this.input;for(;this.peek!=t;)if(this.peek==qs){let a=this.scanStringBackslash(s,r);if(typeof a!="string")return a;s=a,r=this.index}else{if(this.peek==Xe)return this.error("Unterminated quote",0);this.advance()}let o=i.substring(r,this.index);return this.advance(),new ji(e,this.index,s+o,js.Plain)}scanQuestion(e){this.advance();let t="?";return this.peek===Kv?(t+="?",this.advance(),this.peek===We&&(t+="=",this.advance())):this.peek===Ds&&(t+=".",this.advance()),Zn(e,this.index,t)}scanTemplateLiteralPart(e){let t="",s=this.index;for(;this.peek!==Np;)if(this.peek===qs){let i=this.scanStringBackslash(t,s);
24if(typeof i!="string")return i;t=i,s=this.index}else if(this.peek===Ac){let i=this.index;if(this.advance(),this.peek===Wt)return this.braceStack.push("interpolation"),this.tokens.push(new ji(e,i,t+this.input.substring(s,i),js.TemplateLiteralPart)),this.advance(),Zn(i,this.index,this.input.substring(i,this.index))}else{if(this.peek===Xe)return this.error("Unterminated template literal",0);this.advance()}let r=this.input.substring(s,this.index);return this.advance(),new ji(e,this.index,t+r,js.TemplateLiteralEnd)}error(e,t){let s=this.index+t;return Fb(s,this.index,`Lexer Error: ${e} at column ${s} in expression [${this.input}]`)}scanStringBackslash(e,t){e+=this.input.substring(t,this.index);let s;if(this.advance(),this.peek===Gy){let r=this.input.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(r))s=parseInt(r,16);else return this.error(`Invalid unicode escape [\\u${r}]`,0);for(let i=0;i<5;i++)this.advance()}else s=Vb(this.peek),this.advance();return e+=String.fromCharCode(s),e}scanStar(e){this.advance();let t="*";return this.peek===Yv?(t+="*",this.advance(),this.peek===We&&(t+="=",this.advance())):this.peek===We&&(t+="=",this.advance()),Zn(e,this.index,t)}isStartOfRegex(){if(this.tokens.length===0)return!0;let e=this.tokens[this.tokens.length-1];if(e.isOperator("!")){let t=this.tokens.length>1?this.tokens[this.tokens.length-2]:null;return t===null||t.type!==B.Identifier&&!t.isCharacter(Fe)&&!t.isCharacter(Fn)}return e.type===B.Operator||e.isCharacter(pt)||e.isCharacter(En)||e.isCharacter(it)||e.isCharacter(vn)}scanRegex(e){this.advance();let t=this.index,s=!1,r=!1;for(;;){let l=this.peek;if(l===Xe)return this.error("Unterminated regular expression",0);if(s)s=!1;else if(l===qs)s=!0;else if(l===En)r=!0;else if(l===Fn)r=!1;else if(l===Ht&&!r)break;this.advance()}let i=this.input.substring(t,this.index);this.advance();let o=Bb(e,this.index,i),a=this.scanRegexFlags(this.index);return a!==null?(this.tokens.push(o),a):o}scanRegexFlags(e){if(!gs(this.peek))return null;for(;gs(this.peek);)this.advance();return Ob(e,this.index,this.input.substring(e,this.index))}};function IS(n){return nr<=n&&n<=Jo||ws<=n&&n<=oi||n==As||n==Ac}function DS(n){return gs(n)||jt(n)||n==As||n==Ac}function $b(n){return n==R_||n==I_}function Ub(n){return n==ql||n==qy}function Vb(n){switch(n){case jy:return Vs;case qh:return $y;case zy:return Uh;case Wy:return $h;case Xy:return Oy;default:return n}}function qb(n){let e=parseInt(n);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+n);return e}var eh=class{strings;expressions;offsets;constructor(e,t,s){this.strings=e,this.expressions=t,this.offsets=s}},th=class{templateBindings;warnings;errors;constructor(e,t,s){this.templateBindings=e,this.warnings=t,this.errors=s}};function rs(n){return n.start.toString()||"(unknown)"}var cc=class{_lexer;_supportsDirectPipeReferences;constructor(e,t=!1){this._lexer=e,this._supportsDirectPipeReferences=t}parseAction(e,t,s){let r=[];this._checkNoInterpolation(r,e,t);let{stripped:i}=this._stripComments(e),o=this._lexer.tokenize(i),a=new Ls(e,t,s,o,1,r,0,this._supportsDirectPipeReferences).parseChain();return new yt(a,e,rs(t),s,r)}parseBinding(e,t,s){let r=[],i=this._parseBindingAst(e,t,s,r);return new yt(i,e,rs(t),s,r)}checkSimpleExpression(e){let t=new nh;return e.visit(t),t.errors}parseSimpleBinding(e,t,s){let r=[],i=this._parseBindingAst(e,t,s,r),o=this.checkSimpleExpression(i);return o.length>0&&r.push(Lr(`Host binding expression cannot contain ${o.join(" ")}`,e,"",t)),new yt(i,e,rs(t),s,r)}_parseBindingAst(e,t,s,r){this._checkNoInterpolation(r,e,t);let{stripped:i}=this._stripComments(e),o=this._lexer.tokenize(i);return new Ls(e,t,s,o,0,r,0,this._supportsDirectPipeReferences).parseChain()}parseTemplateBindings(e,t,s,r,i){let o=this._lexer.tokenize(t),a=[];return new Ls(t,s,i,o,0,a,0,this._supportsDirectPipeReferences).parseTemplateBindings({source:e,span:new Mt(r,r+e.length)})}parseInterpolation(e,t,s,r){let i=[],{strings:o,expressions:a,offsets:l}=this.splitInterpolation(e,t,i,r);if(a.length===0)return null;let c=[];for(let p=0;p<a.length;++p){let h=r?.[p*2+1]?.sourceSpan,f=a[p].text,{stripped:g,hasComments:m}=this._stripComments(f),y=this._lexer.tokenize(g);if(m&&g.trim().length===0&&y.length===0){i.push(Lr("Interpolation expression cannot only contain a comment",e,`at column ${a[p].start} in`,t));continue}let x=new Ls(h?f:e,h||t,s,y,0,i,l[p],this._supportsDirectPipeReferences).parseChain();c.push(x)}return this.createInterpolationAst(o.map(p=>p.text),c,e,rs(t),s,i)}parseInterpolationExpression(e,t,s){let{stripped:r}=this._stripComments(e),i=this._lexer.tokenize(r),o=[],a=new Ls(e,t,s,i,0,o,0,this._supportsDirectPipeReferences).parseChain(),l=["",""];return this.createInterpolationAst(l,[a],e,rs(t),s,o)}createInterpolationAst(e,t,s,r,i,o){let a=new Js(0,s.length),l=new Yo(a,a.toAbsolute(i),e,t);return new yt(l,s,r,i,o)}splitInterpolation(e,t,s,r){let i=[],o=[],a=[],l=r?Hb(r):null,c=0,p=!1,h=!1,f="{{",g="}}";for(;c<e.length;)if(p){let m=c,y=m+f.length,x=this._getInterpolationEndIndex(e,g,y);if(x===-1){p=!1,h=!0;break}let _=x+g.length,T=e.substring(y,x);T.trim().length===0&&s.push(Lr("Blank expressions are not allowed in interpolated strings",e,`at column ${c} in`,t)),o.push({text:T,start:m,end:_});let w=(l?.get(m)??m)+f.length;a.push(w),c=_,p=!1}else{let m=c;c=e.indexOf(f,c),c===-1&&(c=e.length);let y=e.substring(m,c);i.push({text:y,start:m,end:c}),p=!0}if(!p)if(h){let m=i[i.length-1];m.text+=e.substring(c),m.end=e.length}else i.push({text:e.substring(c),start:c,end:e.length});return new eh(i,o,a)}wrapLiteralPrimitive(e,t,s){let r=new Js(0,e==null?0:e.length);return new yt(new vt(r,r.toAbsolute(s),e),e,typeof t=="string"?t:rs(t),s,[])}_stripComments(e){let t=this._commentStart(e);return t!=null?{stripped:e.substring(0,t),hasComments:!0}:{stripped:e,hasComments:!1}}_commentStart(e){let t=null;for(let s=0;s<e.length-1;s++){let r=e.charCodeAt(s),i=e.charCodeAt(s+1);if(r===Ht&&i==Ht&&t==null)return s;t===r?t=null:t==null&&Hi(r)&&(t=r)}return null}_checkNoInterpolation(e,t,s){let r=-1,i=-1;
24for(let o of this._forEachUnquotedChar(t,0))if(r===-1)t.startsWith("{{")&&(r=o);else if(i=this._getInterpolationEndIndex(t,"}}",o),i>-1)break;r>-1&&i>-1&&e.push(Lr("Got interpolation ({{}}) where expression was expected",t,`at column ${r} in`,s))}_getInterpolationEndIndex(e,t,s){for(let r of this._forEachUnquotedChar(e,s)){if(e.startsWith(t,r))return r;if(e.startsWith("//",r))return e.indexOf(t,r)}return-1}*_forEachUnquotedChar(e,t){let s=null,r=0;for(let i=t;i<e.length;i++){let o=e[i];Hi(e.charCodeAt(i))&&(s===null||s===o)&&r%2===0?s=s===null?o:null:s===null&&(yield i),r=o==="\\"?r+1:0}}},$i=(function(n){return n[n.None=0]="None",n[n.Writable=1]="Writable",n})($i||{}),PS=new Set(["d","g","i","m","s","u","v","y"]),Ls=class{input;parseSourceSpan;absoluteOffset;tokens;parseFlags;errors;offset;supportsDirectPipeReferences;rparensExpected=0;rbracketsExpected=0;rbracesExpected=0;context=$i.None;sourceSpanCache=new Map;index=0;constructor(e,t,s,r,i,o,a,l){this.input=e,this.parseSourceSpan=t,this.absoluteOffset=s,this.tokens=r,this.parseFlags=i,this.errors=o,this.offset=a,this.supportsDirectPipeReferences=l}peek(e){let t=this.index+e;return t<this.tokens.length?this.tokens[t]:Ii}get next(){return this.peek(0)}get atEOF(){return this.index>=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,t){let s=this.currentEndIndex;if(t!==void 0&&t>this.currentEndIndex&&(s=t),e>s){let r=s;s=e,e=r}return new Js(e,s)}sourceSpan(e,t){let s=`${e}@${this.inputIndex}:${t}`;return this.sourceSpanCache.has(s)||this.sourceSpanCache.set(s,this.span(e,t).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(s)}advance(){this.index++}withContext(e,t){this.context|=e;let s=t();return this.context^=e,s}consumeOptionalCharacter(e){return this.next.isCharacter(e)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return this.next.isOperator(e)?(this.advance(),!0):!1}isAssignmentOperator(e){return e.type===B.Operator&&at.isAssignmentOperation(e.strValue)}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===Ii?"end of input":`token ${e}`}expectIdentifierOrKeyword(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null):(this.advance(),e.toString())}expectIdentifierOrKeywordOrString(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()&&!e.isString()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),""):(this.advance(),e.toString())}parseChain(){let e=[],t=this.inputIndex;for(;this.index<this.tokens.length;){let s=this.parsePipe();if(e.push(s),this.consumeOptionalCharacter(St))for(this.parseFlags&1||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(St););else if(this.index<this.tokens.length){let r=this.index;if(this.error(`Unexpected token '${this.next}'`),this.index===r)break}}if(e.length===0){let s=this.offset,r=this.offset+this.input.length;return new rt(this.span(s,r),this.sourceSpan(s,r))}return e.length==1?e[0]:new Hr(this.span(t),this.sourceSpan(t),e)}parsePipe(){let e=this.inputIndex,t=this.parseExpression();if(this.consumeOptionalOperator("|")){this.parseFlags&1&&this.error("Cannot have a pipe in an action expression");do{let s=this.inputIndex,r=this.expectIdentifierOrKeyword(),i,o;r!==null?i=this.sourceSpan(s):(r="",o=this.next.index!==-1?this.next.index:this.input.length+this.offset,i=new Js(o,o).toAbsolute(this.absoluteOffset));let a=[];for(;this.consumeOptionalCharacter(vn);)a.push(this.parseExpression());let l;if(this.supportsDirectPipeReferences){let c=r.charCodeAt(0);l=c===As||c>=ws&&c<=oi?ll.ReferencedDirectly:ll.ReferencedByName}else l=ll.ReferencedByName;t=new bl(this.span(e),this.sourceSpan(e,o),t,r,a,l,i)}while(this.consumeOptionalOperator("|"))}return t}parseExpression(){return this.parseConditional()}parseConditional(){let e=this.inputIndex,t=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){let s=this.parsePipe(),r;if(this.consumeOptionalCharacter(vn))r=this.parsePipe();else{let i=this.inputIndex,o=this.input.substring(e,i);this.error(`Conditional expression ${o} requires all 3 expressions`),r=new rt(this.span(e),this.sourceSpan(e))}return new Cl(this.span(e),this.sourceSpan(e),t,s,r)}else return t}parseLogicalOr(){let e=this.inputIndex,t=this.parseLogicalAnd();for(;this.consumeOptionalOperator("||");){let s=this.parseLogicalAnd();t=new at(this.span(e),this.sourceSpan(e),"||",t,s)}return t}parseLogicalAnd(){let e=this.inputIndex,t=this.parseNullishCoalescing();for(;this.consumeOptionalOperator("&&");){let s=this.parseNullishCoalescing();t=new at(this.span(e),this.sourceSpan(e),"&&",t,s)}return t}parseNullishCoalescing(){let e=this.inputIndex,t=this.parseEquality();for(;this.consumeOptionalOperator("??");){let s=this.parseEquality();t=new at(this.span(e),this.sourceSpan(e),"??",t,s)}return t}parseEquality(){let e=this.inputIndex,t=this.parseRelational();for(;this.next.type==B.Operator;){let s=this.next.strValue;switch(s){case"==":case"===":case"!=":case"!==":this.advance();let r=this.parseRelational();t=new at(this.span(e),this.sourceSpan(e),s,t,r);continue}break}return t}parseRelational(){let e=this.inputIndex,t=this.parseAdditive();for(;this.next.type==B.Operator||this.next.isKeywordIn()||this.next.isKeywordInstanceOf();){let s=this.next.strValue;switch(s){case"<":case">":case"<=":case">=":case"in":case"instanceof":this.advance();let r=this.parseAdditive();t=new at(this.span(e),this.sourceSpan(e),s,t,r);continue}break}return t}parseAdditive(){let e=this.inputIndex,t=this.parseMultiplicative();for(;this.next.type==B.Operator;){let s=this.next.strValue;switch(s){case"+":case"-":this.advance();let r=this.parseMultiplicative();t=new at(this.span(e),this.sourceSpan(e),s,t,r);continue}break}return t}parseMultiplicative(){let e=this.inputIndex,t=this.parseExponentiation();for(;this.next.type==B.Operator;){let s=this.next.strValue;switch(s){case"*":case"%":case"/":this.advance();let r=this.parseExponentiation();t=new at(this.span(e),this.sourceSpan(e),s,t,r);continue}break}return t}parseExponentiation(){let e=this.inputIndex,t=this.parsePrefix();for(;this.next.type==B.Operator&&this.next.strValue==="**";){(t instanceof Fr||t instanceof lo||t instanceof co||t instanceof uo)&&this.error("Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence"),this.advance();let s=this.parseExponentiation();t=new at(this.span(e),this.sourceSpan(e),"**",t,s)}return t}parsePrefix(){if(this.next.type==B.Operator){let e=this.inputIndex,t=this.next.strValue,s;switch(t){case"+":return this.advance(),s=this.parsePrefix(),Fr.createPlus(this.span(e),this.sourceSpan(e),s);case"-":return this.advance(),s=this.parsePrefix(),Fr.createMinus(this.span(e),this.sourceSpan(e),s);case"!":return this.advance(),s=this.parsePrefix(),new lo(this.span(e),this.sourceSpan(e),s)}}else if(this.next.isKeywordTypeof()){let e=this.inputIndex;this.advance();let t=this.parsePrefix();return new co(this.span(e),this.sourceSpan(e),t)}else if(this.next.isKeywordVoid()){let e=this.inputIndex;this.advance();let t=this.parsePrefix();return new uo(this.span(e),this.sourceSpan(e),t)}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,t=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(Ds))t=this.parseAccessMember(t,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(pt)?t=this.parseCall(t,e,!0):t=this.consumeOptionalCharacter(En)?this.parseKeyedReadOrWrite(t,e,!0):this.parseAccessMember(t,e,!0);else if(this.consumeOptionalCharacter(En))t=this.parseKeyedReadOrWrite(t,e,!1);else if(this.consumeOptionalCharacter(pt))t=this.parseCall(t,e,!1);
24else if(this.consumeOptionalOperator("!"))t=new po(this.span(e),this.sourceSpan(e),t);else if(this.next.isTemplateLiteralEnd())t=this.parseNoInterpolationTaggedTemplateLiteral(t,e);else if(this.next.isTemplateLiteralPart())t=this.parseTaggedTemplateLiteral(t,e);else return t}parsePrimary(){let e=this.inputIndex;if(this.isArrowFunction())return this.parseArrowFunction(e);if(this.consumeOptionalCharacter(pt)){this.rparensExpected++;let t=this.parsePipe();return this.consumeOptionalCharacter(Fe)||(this.error("Missing closing parentheses"),this.consumeOptionalCharacter(Fe)),this.rparensExpected--,new mo(this.span(e),this.sourceSpan(e),t)}else{if(this.next.isKeywordNull())return this.advance(),new vt(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new vt(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new vt(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new vt(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordIn())return this.advance(),new vt(this.span(e),this.sourceSpan(e),"in");if(this.next.isKeywordThis())return this.advance(),new ro(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(En))return this.parseLiteralArray(e);if(this.next.isCharacter(Wt))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new Cn(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let t=this.next.toNumber();return this.advance(),new vt(this.span(e),this.sourceSpan(e),t)}else{if(this.next.isTemplateLiteralEnd())return this.parseNoInterpolationTemplateLiteral();if(this.next.isTemplateLiteralPart())return this.parseTemplateLiteral();if(this.next.isString()&&this.next.kind===js.Plain){let t=this.next.toString();return this.advance(),new vt(this.span(e),this.sourceSpan(e),t)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new rt(this.span(e),this.sourceSpan(e))):this.next.isRegExpBody()?this.parseRegularExpressionLiteral():this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new rt(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new rt(this.span(e),this.sourceSpan(e)))}}}parseLiteralArray(e){this.rbracketsExpected++;let t=[];do if(this.next.isOperator("..."))t.push(this.parseSpreadElement());else if(!this.next.isCharacter(Fn))t.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(it));return this.rbracketsExpected--,this.expectCharacter(Fn),new ao(this.span(e),this.sourceSpan(e),t)}parseLiteralMap(){let e=[],t=[],s=this.inputIndex;if(this.expectCharacter(Wt),!this.consumeOptionalCharacter(ct)){this.rbracesExpected++;do{let r=this.inputIndex;if(this.next.isOperator("...")){this.advance(),e.push({kind:"spread",span:this.span(r),sourceSpan:this.sourceSpan(r)}),t.push(this.parsePipe());continue}let i=this.next.isString(),o=this.expectIdentifierOrKeywordOrString(),a=this.span(r),l=this.sourceSpan(r),c={kind:"property",key:o,quoted:i,span:a,sourceSpan:l};e.push(c),i?(this.expectCharacter(vn),t.push(this.parsePipe())):this.consumeOptionalCharacter(vn)?t.push(this.parsePipe()):(c.isShorthandInitialized=!0,t.push(new yn(a,l,l,new Cn(a,l),o)))}while(this.consumeOptionalCharacter(it)&&!this.next.isCharacter(ct));this.rbracesExpected--,this.expectCharacter(ct)}return new er(this.span(s),this.sourceSpan(s),e,t)}parseAccessMember(e,t,s){let r=this.inputIndex,i=this.withContext($i.Writable,()=>{let a=this.expectIdentifierOrKeyword()??"";return a.length===0&&this.error("Expected identifier for property access",e.span.end),a}),o=this.sourceSpan(r);if(s)return this.isAssignmentOperator(this.next)?(this.advance(),this.error("The '?.' operator cannot be used in the assignment"),new rt(this.span(t),this.sourceSpan(t))):new io(this.span(t),this.sourceSpan(t),o,e,i);if(this.isAssignmentOperator(this.next)){let a=this.next.strValue;if(!(this.parseFlags&1))return this.advance(),this.error("Bindings cannot contain assignments"),new rt(this.span(t),this.sourceSpan(t));let l=new yn(this.span(t),this.sourceSpan(t),o,e,i);this.advance();let c=this.parseConditional();return new at(this.span(t),this.sourceSpan(t),a,l,c)}else return new yn(this.span(t),this.sourceSpan(t),o,e,i)}parseCall(e,t,s){let r=this.inputIndex;this.rparensExpected++;let i=this.parseCallArguments(),o=this.span(r,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(Fe),this.rparensExpected--;let a=this.span(t),l=this.sourceSpan(t);
24return s?new kl(a,l,e,i,o):new jr(a,l,e,i,o)}parseCallArguments(){if(this.next.isCharacter(Fe))return[];let e=[];do e.push(this.next.isOperator("...")?this.parseSpreadElement():this.parsePipe());while(this.consumeOptionalCharacter(it));return e}parseSpreadElement(){this.next.isOperator("...")||this.error("Spread element must start with '...' operator");let e=this.inputIndex;this.advance();let t=this.parsePipe(),s=this.span(e),r=this.sourceSpan(e);return new Tl(s,r,t)}expectTemplateBindingKey(){let e="",t=!1,s=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),t=this.consumeOptionalOperator("-"),t&&(e+="-");while(t);return{source:e,span:new Mt(s,s+e.length)}}parseTemplateBindings(e){let t=[];for(t.push(...this.parseDirectiveKeywordBindings(e));this.index<this.tokens.length;){let s=this.parseLetBinding();if(s)t.push(s);else{let r=this.expectTemplateBindingKey(),i=this.parseAsBinding(r);i?t.push(i):(r.source=e.source+r.source.charAt(0).toUpperCase()+r.source.substring(1),t.push(...this.parseDirectiveKeywordBindings(r)))}this.consumeStatementTerminator()}return new th(t,[],this.errors)}parseKeyedReadOrWrite(e,t,s){return this.withContext($i.Writable,()=>{this.rbracketsExpected++;let r=this.parsePipe();if(r instanceof rt&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(Fn),this.isAssignmentOperator(this.next)){let i=this.next.strValue;if(s)this.advance(),this.error("The '?.' operator cannot be used in the assignment");else{let o=new Zs(this.span(t),this.sourceSpan(t),e,r);this.advance();let a=this.parseConditional();return new at(this.span(t),this.sourceSpan(t),i,o,a)}}else return s?new oo(this.span(t),this.sourceSpan(t),e,r):new Zs(this.span(t),this.sourceSpan(t),e,r);return new rt(this.span(t),this.sourceSpan(t))})}parseDirectiveKeywordBindings(e){let t=[];this.consumeOptionalCharacter(vn);let s=this.getDirectiveBoundTarget(),r=this.currentAbsoluteOffset,i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),r=this.currentAbsoluteOffset);let o=new Mt(e.span.start,r);return t.push(new dp(o,e,s)),i&&t.push(i),t}getDirectiveBoundTarget(){if(this.next===Ii||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:t,end:s}=e.span,r=this.input.substring(t,s);return new yt(e,r,rs(this.parseSourceSpan),this.absoluteOffset+t,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let t=this.expectTemplateBindingKey();this.consumeStatementTerminator();let s=new Mt(e.span.start,this.currentAbsoluteOffset);return new go(s,t,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let t=this.expectTemplateBindingKey(),s=null;this.consumeOptionalOperator("=")&&(s=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let r=new Mt(e,this.currentAbsoluteOffset);return new go(r,t,s)}parseNoInterpolationTaggedTemplateLiteral(e,t){let s=this.parseNoInterpolationTemplateLiteral();return new ho(this.span(t),this.sourceSpan(t),e,s)}parseNoInterpolationTemplateLiteral(){let e=this.next.strValue,t=this.inputIndex;this.advance();let s=this.span(t),r=this.sourceSpan(t);return new fo(s,r,[new Nl(s,r,e)],[])}parseTaggedTemplateLiteral(e,t){let s=this.parseTemplateLiteral();return new ho(this.span(t),this.sourceSpan(t),e,s)}parseTemplateLiteral(){let e=[],t=[],s=this.inputIndex;for(;this.next!==Ii;){let r=this.next;if(r.isTemplateLiteralPart()||r.isTemplateLiteralEnd()){let i=this.inputIndex;if(this.advance(),e.push(new Nl(this.span(i),this.sourceSpan(i),r.strValue)),r.isTemplateLiteralEnd())break}else if(r.isTemplateLiteralInterpolationStart()){this.advance(),this.rbracesExpected++;let i=this.parsePipe();i instanceof rt?this.error("Template literal interpolation cannot be empty"):t.push(i),this.rbracesExpected--}else this.advance()}return new fo(this.span(s),this.sourceSpan(s),e,t)}parseRegularExpressionLiteral(){let e=this.next;if(this.advance(),!e.isRegExpBody())return new rt(this.span(this.inputIndex),this.sourceSpan(this.inputIndex));let t=null;if(this.next.isRegExpFlags()){t=this.next,this.advance();let i=new Set;for(let o=0;o<t.strValue.length;o++){let a=t.strValue[o];PS.has(a)?i.has(a)?this.error(`Duplicate regular expression flag "${a}"`,t.index+o):i.add(a):this.error(`Unsupported regular expression flag "${a}". The supported flags are: `+Array.from(PS,l=>`"${l}"`).join(", "),t.index+o)}}let s=e.index,r=t?t.end:e.end;return new Dl(this.span(s,r),this.sourceSpan(s,r),e.strValue,t?t.strValue:null)}parseArrowFunction(e){let t;if(this.next.isIdentifier()){let r=this.next;this.advance(),t=[this.getArrowFunctionIdentifierArg(r)]}else this.next.isCharacter(pt)?(this.rparensExpected++,this.advance(),t=this.parseArrowFunctionParameters(),this.rparensExpected--):(t=[],this.error(`Unexpected token ${this.next}`));this.expectOperator("=>");let s;if(this.next.isCharacter(Wt))this.error("Multi-line arrow functions are not supported. If you meant to return an object literal, wrap it with parentheses."),s=new rt(this.span(e),this.sourceSpan(e));else{let r=this.parseFlags;this.parseFlags=1,s=this.parseExpression(),this.parseFlags=r}return new Il(this.span(e),this.sourceSpan(e),t,s)}parseArrowFunctionParameters(){let e=[];
24if(!this.consumeOptionalCharacter(Fe))for(;this.next!==Ii;)if(this.next.isIdentifier()){let t=this.next;if(this.advance(),e.push(this.getArrowFunctionIdentifierArg(t)),this.consumeOptionalCharacter(Fe))break;this.expectCharacter(it)}else{this.error(`Unexpected token ${this.next}`);break}return e}getArrowFunctionIdentifierArg(e){return new fp(e.strValue,this.span(e.index),this.sourceSpan(e.index))}isArrowFunction(){let e=this.index,t=this.tokens;if(e>t.length-2)return!1;if(t[e].isIdentifier()&&t[e+1].isOperator("=>"))return!0;if(t[e].isCharacter(pt)){let s=e+1;for(s;s<t.length&&!(!t[s].isIdentifier()&&!t[s].isCharacter(it));s++);return s<t.length-1&&t[s].isCharacter(Fe)&&t[s+1].isOperator("=>")}return!1}consumeStatementTerminator(){this.consumeOptionalCharacter(St)||this.consumeOptionalCharacter(it)}error(e,t=this.index){this.errors.push(Lr(e,this.input,this.getErrorLocationText(t),this.parseSourceSpan)),this.skip()}getErrorLocationText(e){return e<this.tokens.length?`at column ${this.tokens[e].index+1} in`:"at the end of the expression"}_reportErrorForPrivateIdentifier(e,t){let s=`Private identifiers are not supported. Unexpected private identifier: ${e}`;t!==null&&(s+=`, ${t}`),this.error(s)}skip(){let e=this.next;for(;this.index<this.tokens.length&&!e.isCharacter(St)&&!e.isOperator("|")&&(this.rparensExpected<=0||!e.isCharacter(Fe))&&(this.rbracesExpected<=0||!e.isCharacter(ct))&&(this.rbracketsExpected<=0||!e.isCharacter(Fn))&&(!(this.context&$i.Writable)||!this.isAssignmentOperator(e));)this.next.isError()&&this.errors.push(Lr(this.next.toString(),this.input,this.getErrorLocationText(this.next.index),this.parseSourceSpan)),this.advance(),e=this.next}};function Lr(n,e,t,s){t.length>0&&(t=` ${t} `);let r=rs(s),i=`Parser Error: ${n}${t}[${e}] in ${r}`;return new R(s,i)}var nh=class extends zr{errors=[];visitPipe(){this.errors.push("pipes")}};function Hb(n){let e=new Map,t=0,s=0,r=0;for(;r<n.length;){let i=n[r];if(i.type===9){let[o,a]=i.parts;t+=a.length,s+=o.length}else{let o=i.parts.reduce((a,l)=>a+l.length,0);s+=o,t+=o}e.set(s,t),r++}return e}function jb(n){return n.visit(new sh)}var sh=class{visitUnary(e,t){return`${e.operator}${e.expr.visit(this,t)}`}visitBinary(e,t){return`${e.left.visit(this,t)} ${e.operation} ${e.right.visit(this,t)}`}visitChain(e,t){return e.expressions.map(s=>s.visit(this,t)).join("; ")}visitConditional(e,t){return`${e.condition.visit(this,t)} ? ${e.trueExp.visit(this,t)} : ${e.falseExp.visit(this,t)}`}visitThisReceiver(){return"this"}visitImplicitReceiver(){return""}visitInterpolation(e,t){return Wb(e.strings,e.expressions.map(s=>s.visit(this,t))).join("")}visitKeyedRead(e,t){return`${e.receiver.visit(this,t)}[${e.key.visit(this,t)}]`}visitLiteralArray(e,t){return`[${e.expressions.map(s=>s.visit(this,t)).join(", ")}]`}visitLiteralMap(e,t){return`{${zb(e.keys.map(s=>s.kind==="spread"?"...":s.quoted?`'${s.key}'`:s.key),e.values.map(s=>s.visit(this,t))).map(([s,r])=>`${s}: ${r}`).join(", ")}}`}visitLiteralPrimitive(e){if(e.value===null)return"null";switch(typeof e.value){case"number":case"boolean":return e.value.toString();case"undefined":return"undefined";case"string":return`'${e.value.replace(/'/g,"\\'")}'`;default:throw new Error(`Unsupported primitive type: ${e.value}`)}}visitPipe(e,t){return`${e.exp.visit(this,t)} | ${e.name}`}visitPrefixNot(e,t){return`!${e.expression.visit(this,t)}`}visitNonNullAssert(e,t){return`${e.expression.visit(this,t)}!`}visitPropertyRead(e,t){return e.receiver instanceof Cn||e.receiver instanceof ro?e.name:`${e.receiver.visit(this,t)}.${e.name}`}visitSafePropertyRead(e,t){return`${e.receiver.visit(this,t)}?.${e.name}`}visitSafeKeyedRead(e,t){return`${e.receiver.visit(this,t)}?.[${e.key.visit(this,t)}]`}visitCall(e,t){return`${e.receiver.visit(this,t)}(${e.args.map(s=>s.visit(this,t)).join(", ")})`}visitSafeCall(e,t){return`${e.receiver.visit(this,t)}?.(${e.args.map(s=>s.visit(this,t)).join(", ")})`}visitTypeofExpression(e,t){return`typeof ${e.expression.visit(this,t)}`}visitVoidExpression(e,t){return`void ${e.expression.visit(this,t)}`}visitRegularExpressionLiteral(e,t){return`/${e.body}
24/${e.flags||""}`}visitArrowFunction(e,t){let s;return e.parameters.length===1?s=e.parameters[0].name:s=`(${e.parameters.map(r=>r.name).join(", ")})`,`${s} => ${e.body.visit(this,t)}`}visitASTWithSource(e,t){return e.ast.visit(this,t)}visitTemplateLiteral(e,t){let s="";for(let r=0;r<e.elements.length;r++){s+=e.elements[r].visit(this,t);let i=r<e.expressions.length?e.expressions[r]:null;i!==null&&(s+="${"+i.visit(this,t)+"}")}return"`"+s+"`"}visitTemplateLiteralElement(e,t){return e.text}visitTaggedTemplateLiteral(e,t){return e.tag.visit(this,t)+e.template.visit(this,t)}visitSpreadElement(e,t){return`...${e.expression.visit(this,t)}`}visitParenthesizedExpression(e,t){return"("+e.expression.visit(this,t)+")"}};function zb(n,e){if(n.length!==e.length)throw new Error("Array lengths must match");return n.map((t,s)=>[t,e[s]])}function Wb(n,e){let t=[];for(let s=0;s<Math.max(n.length,e.length);s++)s<n.length&&t.push(n[s]),s<e.length&&t.push(e[s]);return t}var Cc="svg",bc="math",rh=class{},Gb="boolean",Xb="number",Qb="string",Yb="object";function Di(n){let e=n.toLowerCase(),[t,s]=ot(e,!1);return t===Cc||t===bc?`:${t}:${s}`:s}var Kb=["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtom
24ic,%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,*auxcl
24ick,*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,*auxcl
24ick,*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:|"],xE=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"})),Jb=Array.from(xE).reduce((n,[e,t])=>(n.set(e,t),n),new Map),ni=class extends rh{_schema=new Map;_eventSchema=new Map;constructor(){super(),Kb.forEach(e=>{let t=new Map,s=new Set,[r,i]=e.split("|"),o=i.split(","),[a,l]=r.split("^");a.split(",").forEach(p=>{this._schema.set(p.toLowerCase(),t),this._eventSchema.set(p.toLowerCase(),s)});let c=l&&this._schema.get(l.toLowerCase());if(c){for(let[p,h]of c)t.set(p,h);for(let p of this._eventSchema.get(l.toLowerCase()))s.add(p)}o.forEach(p=>{if(p.length>0)switch(p[0]){case"*":s.add(p.substring(1));break;case"!":t.set(p.substring(1),Gb);break;case"#":t.set(p.substring(1),Xb);break;case"%":t.set(p.substring(1),Yb);break;default:t.set(p,Qb)}})})}hasProperty(e,t,s){if(s.some(o=>o.name===Mv.name))return!0;let r=Di(e);if(r.includes("-")){if(zv(r)||gp(r))return!1;if(s.some(o=>o.name===Pv.name))return!0}return(this._schema.get(r)||this._schema.get("unknown")).has(t)}hasElement(e,t){if(t.some(r=>r.name===Mv.name))return!0;let s=Di(e);return s.includes("-")&&(zv(s)||gp(s)||t.some(r=>r.name===Pv.name))?!0:this._schema.has(s)}
24securityContext(e,t,s){s&&(t=this.getMappedPropName(t));let r=Di(e);t=t.toLowerCase();let i=Sx();return i[r+"|"+t]??i["*|"+t]??se.NONE}getMappedPropName(e){return xE.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)})=... 25If '${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=Di(e),s=this._schema.get(t)||this._schema.get("unknown");return Array.from(s.keys()).map(r=>Jb.get(r)??r)}allKnownEventsOfElement(e){let t=Di(e);return Array.from(this._eventSchema.get(t)??[])}normalizeAnimationStyleProperty(e){return Gx(e)}normalizeAnimationStyleValue(e,t,s){let r="",i=s.toString().trim(),o=null;if(Zb(e)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&(o=`Please provide a CSS unit value for ${t}:${s}`)}return{error:o,value:i+r}}};function Zb(n){switch(n){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}}var ee=class{closedByChildren={};contentType;closedByParent=!1;implicitNamespacePrefix;isVoid;ignoreFirstLf;canSelfClose;preventNamespaceInheritance;constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:s=gn.PARSABLE_DATA,closedByParent:r=!1,isVoid:i=!1,ignoreFirstLf:o=!1,preventNamespaceInheritance:a=!1,canSelfClose:l=!1}={}){e&&e.length>0&&e.forEach(c=>this.closedByChildren[c]=!0),this.isVoid=i,this.closedByParent=r||i,this.implicitNamespacePrefix=t||null,this.contentType=s,this.ignoreFirstLf=o,this.preventNamespaceInheritance=a,this.canSelfClose=l??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},MS,br;function ih(n){return br||(MS=new ee({canSelfClose:!0}),br=Object.assign(Object.create(null),{base:new ee({isVoid:!0}),meta:new ee({isVoid:!0}),area:new ee({isVoid:!0}),embed:new ee({isVoid:!0}),link:new ee({isVoid:!0}),img:new ee({isVoid:!0}),input:new ee({isVoid:!0}),param:new ee({isVoid:!0}),hr:new ee({isVoid:!0}),br:new ee({isVoid:!0}),source:new ee({isVoid:!0}),track:new ee({isVoid:!0}),wbr:new ee({isVoid:!0}),p:new ee({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 ee({closedByChildren:["tbody","tfoot"]}),tbody:new ee({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new ee({closedByChildren:["tbody"],closedByParent:!0}),tr:new ee({closedByChildren:["tr"],closedByParent:!0}),td:new ee({closedByChildren:["td","th"],closedByParent:!0}),th:new ee({closedByChildren:["td","th"],closedByParent:!0}),col:new ee({isVoid:!0}),svg:new ee({implicitNamespacePrefix:"svg"}),foreignObject:new ee({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new ee({implicitNamespacePrefix:"math"}),li:new ee({closedByChildren:["li"],closedByParent:!0}),dt:new ee({closedByChildren:["dt","dd"]}),dd:new ee({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new ee({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new ee({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new ee({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new ee({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new ee({closedByChildren:["optgroup"],closedByParent:!0}),option:new ee({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new ee({ignoreFirstLf:!0}),listing:new ee({ignoreFirstLf:!0}),style:new ee({contentType:gn.RAW_TEXT}),script:new ee({contentType:gn.RAW_TEXT}),title:new ee({contentType:{default:gn.ESCAPABLE_RAW_TEXT,svg:gn.PARSABLE_DATA}}),textarea:new ee({contentType:gn.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}
25),new ni().allKnownElementNames().forEach(e=>{!br[e]&&vp(e)===null&&(br[e]=new ee({canSelfClose:!1}))})),br[n]??br[n.toLowerCase()]??MS}var LS={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},oh=class{_placeHolderNameCounts={};_signatureToName={};getStartTagPlaceholderName(e,t,s){let r=this._hashTag(e,t,s);if(this._signatureToName[r])return this._signatureToName[r];let i=e.toUpperCase(),o=LS[i]||`TAG_${i}`,a=this._generateUniqueName(s?o:`START_${o}`);return this._signatureToName[r]=a,a}getCloseTagPlaceholderName(e){let t=this._hashClosingTag(e);if(this._signatureToName[t])return this._signatureToName[t];let s=e.toUpperCase(),r=LS[s]||`TAG_${s}`,i=this._generateUniqueName(`CLOSE_${r}`);return this._signatureToName[t]=i,i}getPlaceholderName(e,t){let s=e.toUpperCase(),r=`PH: ${s}=${t}`;if(this._signatureToName[r])return this._signatureToName[r];let i=this._generateUniqueName(s);return this._signatureToName[r]=i,i}getUniquePlaceholder(e){return this._generateUniqueName(e.toUpperCase())}getStartBlockPlaceholderName(e,t){let s=this._hashBlock(e,t);if(this._signatureToName[s])return this._signatureToName[s];let r=this._generateUniqueName(`START_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[s]=r,r}getCloseBlockPlaceholderName(e){let t=this._hashClosingBlock(e);if(this._signatureToName[t])return this._signatureToName[t];let s=this._generateUniqueName(`CLOSE_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[t]=s,s}_hashTag(e,t,s){let r=`<${e}`,i=Object.keys(t).sort().map(a=>` ${a}=${t[a]}`).join(""),o=s?"/>":`></${e}>`;return r+i+o}_hashClosingTag(e){return this._hashTag(`/${e}`,{},!1)}_hashBlock(e,t){let s=t.length===0?"":` (${t.sort().join("; ")})`;return`@${e}${s} {}`}_hashClosingBlock(e){return this._hashBlock(`close_${e}`,[])}_toSnakeCase(e){return e.toUpperCase().replace(/[^A-Z0-9]/g,"_")}_generateUniqueName(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;let s=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=s+1,`${e}_${s}`}},eT=new cc(new Ho);function tT(n,e){let t=new ah(eT,n,e);return(s,r,i,o,a)=>t.toI18nMessage(s,r,i,o,a)}function nT(n,e){return e}var ah=class{_expressionParser;_retainEmptyTokens;_preserveExpressionWhitespace;constructor(e,t,s){this._expressionParser=e,this._retainEmptyTokens=t,this._preserveExpressionWhitespace=s}toI18nMessage(e,t="",s="",r="",i){let o={isIcu:e.length==1&&e[0]instanceof Hs,icuDepth:0,placeholderRegistry:new oh,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:i||nT},a=xe(this,e,o);return new ft(a,o.placeholderToContent,o.placeholderToMessage,t,s,r)}visitElement(e,t){return this._visitElementLike(e,t)}visitComponent(e,t){return this._visitElementLike(e,t)}visitDirective(e,t){throw new Error("Unreachable code")}visitAttribute(e,t){let s=e.valueTokens===void 0||e.valueTokens.length===1?new bi(e.value,e.valueSpan||e.sourceSpan):this._visitTextWithInterpolation(e.valueTokens,e.valueSpan||e.sourceSpan,t,e.i18n);return t.visitNodeFn(e,s)}visitText(e,t){let s=e.tokens.length===1?new bi(e.value,e.sourceSpan):this._visitTextWithInterpolation(e.tokens,e.sourceSpan,t,e.i18n);return t.visitNodeFn(e,s)}visitComment(e,t){return null}visitExpansion(e,t){t.icuDepth++;let s={},r=new Ul(e.switchValue,e.type,s,e.sourceSpan);if(e.cases.forEach(a=>{s[a.value]=new On(a.expression.map(l=>l.visit(this,t)),a.expSourceSpan)}),t.icuDepth--,t.isIcu||t.icuDepth>0){let a=t.placeholderRegistry.getUniquePlaceholder(`VAR_${e.type}`);return r.expressionPlaceholder=a,t.placeholderToContent[a]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},t.visitNodeFn(e,r)}let i=t.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());t.placeholderToMessage[i]=this.toI18nMessage([e],"","","",void 0);let o=new Yr(r,i,e.sourceSpan);return t.visitNodeFn(e,o)}visitExpansionCase(e,t){throw new Error("Unreachable code")}visitBlock(e,t){let s=xe(this,e.children,t);
25if(e.name==="switch")return new On(s,e.sourceSpan);let r=e.parameters.map(l=>l.expression),i=t.placeholderRegistry.getStartBlockPlaceholderName(e.name,r),o=t.placeholderRegistry.getCloseBlockPlaceholderName(e.name);t.placeholderToContent[i]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan},t.placeholderToContent[o]={text:e.endSourceSpan?e.endSourceSpan.toString():"}",sourceSpan:e.endSourceSpan??e.sourceSpan};let a=new ds(e.name,r,i,o,s,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return t.visitNodeFn(e,a)}visitBlockParameter(e,t){throw new Error("Unreachable code")}visitLetDeclaration(e,t){return null}_visitElementLike(e,t){let s=xe(this,e.children,t),r={},i=h=>{r[h.name]=h.value},o,a;e instanceof qt?(o=e.name,a=ih(e.name).isVoid):(o=e.fullName,a=e.tagName?ih(e.tagName).isVoid:!1),e.attrs.forEach(i),e.directives.forEach(h=>h.attrs.forEach(i));let l=t.placeholderRegistry.getStartTagPlaceholderName(o,r,a);t.placeholderToContent[l]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};let c="";a||(c=t.placeholderRegistry.getCloseTagPlaceholderName(o),t.placeholderToContent[c]={text:`</${o}>`,sourceSpan:e.endSourceSpan??e.sourceSpan});let p=new fs(o,r,l,c,s,a,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return t.visitNodeFn(e,p)}_visitTextWithInterpolation(e,t,s,r){let i=[],o=!1;for(let a of e)switch(a.type){case 8:case 17:o=!0;let[l,c,p]=a.parts,h=aT(c)||"INTERPOLATION",f=s.placeholderRegistry.getPlaceholderName(h,c);if(this._preserveExpressionWhitespace)s.placeholderToContent[f]={text:a.parts.join(""),sourceSpan:a.sourceSpan},i.push(new Co(c,f,a.sourceSpan));else{let g=this.normalizeExpression(a);s.placeholderToContent[f]={text:`${l}${g}${p}`,sourceSpan:a.sourceSpan},i.push(new Co(g,f,a.sourceSpan))}break;default:if(a.parts[0].length>0||this._retainEmptyTokens){let g=i[i.length-1];g instanceof bi?(g.value+=a.parts[0],g.sourceSpan=new $(g.sourceSpan.start,a.sourceSpan.end,g.sourceSpan.fullStart,g.sourceSpan.details)):i.push(new bi(a.parts[0],a.sourceSpan))}else this._retainEmptyTokens&&i.push(new bi(a.parts[0],a.sourceSpan));break}return o?(sT(i,r),new On(i,t)):i[0]}normalizeExpression(e){let t=e.parts[1],s=this._expressionParser.parseBinding(t,e.sourceSpan,e.sourceSpan.start.offset);return jb(s)}};function sT(n,e){if(e instanceof ft&&(rT(e),e=e.nodes[0]),e instanceof On){iT(e.children,n);for(let t=0;t<n.length;t++)n[t].sourceSpan=e.children[t].sourceSpan}}function rT(n){let e=n.nodes;if(e.length!==1||!(e[0]instanceof On))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}function iT(n,e){if(n.length!==e.length)throw new Error(` 26The number of i18n message children changed between first and second pass. 27 28First pass (${n.length} tokens): 29${n.map(t=>`"${t.sourceSpan.toString()}"`).join(` 30`)} 31 32Second pass (${e.length} tokens): 33${e.map(t=>`"${t.sourceSpan.toString()}"`).join(` 34`)} 35 `.trim());if(n.some((t,s)=>e[s].constructor!==t.constructor))throw new Error("The types of the i18n message children changed between first and second pass.")}var oT=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function aT(n){return n.split(oT)[2]}var RS=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","iframe|src","object|codebase","object|data"]);function FS(n,e){return n=n.toLowerCase(),e=e.toLowerCase(),RS.has(n+"|"+e)||RS.has("*|"+e)}var lT=n=>(e,t)=>{let s=n.get(e)??e;return s instanceof Vn&&(t instanceof Yr&&s.i18n instanceof ft&&(t.previousMessage=s.i18n),s.i18n=t),t},uc=class{keepI18nAttrs;enableI18nLegacyMessageIdFormat;preserveSignificantWhitespace;retainEmptyTokens;hasI18nMeta=!1;_errors=[];constructor(e=!1,t=!1,s=!0,r=!s){this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=t,this.preserveSignificantWhitespace=s,this.retainEmptyTokens=r}_generateI18nMessage(e,t="",s){let{meaning:r,description:i,customId:o}=this._parseMetadata(t),l=tT(this.retainEmptyTokens,this.preserveSignificantWhitespace)(e,r,i,o,s);return this._setMessageId(l,t),this._setLegacyIds(l,t),l}visitAllWithErrors(e){let t=e.map(s=>s.visit(this,null));return new ac(t,this._errors)}visitElement(e){return this._visitElementLike(e),e}visitComponent(e,t){return this._visitElementLike(e),e}visitExpansion(e,t){let s,r=e.i18n;if(this.hasI18nMeta=!0,r instanceof Yr){let i=r.name;
35s=this._generateI18nMessage([e],r);let o=Fy(s);o.name=i,t!==null&&(t.placeholderToMessage[i]=s)}else s=this._generateI18nMessage([e],t||r);return e.i18n=s,e}visitText(e){return e}visitAttribute(e){return e}visitComment(e){return e}visitExpansionCase(e){return e}visitBlock(e,t){return xe(this,e.children,t),e}visitBlockParameter(e,t){return e}visitLetDeclaration(e,t){return e}visitDirective(e,t){return e}_visitElementLike(e){let t;if(A_(e)){this.hasI18nMeta=!0;let s=[],r={};for(let i of e.attrs)if(i.name===Ly){let o=e.i18n||i.value,a=new Map,l=this.preserveSignificantWhitespace?e.children:fn(new lc(!1,a),e.children);t=this._generateI18nMessage(l,o,lT(a)),t.nodes.length===0&&(t=void 0),e.i18n=t}else if(i.name.startsWith(Tp)){let o=i.name.slice(Tp.length),a;e instanceof lt?a=e.tagName===null?!1:FS(e.tagName,o):a=FS(e.name,o),a?this._reportError(i,`Translating attribute '${o}' is disallowed for security reasons.`):r[o]=i.value}else s.push(i);if(Object.keys(r).length)for(let i of s){let o=r[i.name];o!==void 0&&i.value&&(i.i18n=this._generateI18nMessage([i],i.i18n||o))}this.keepI18nAttrs||(e.attrs=s)}xe(this,e.children,t)}_parseMetadata(e){return typeof e=="string"?pT(e):e instanceof ft?e:{}}_setMessageId(e,t){e.id||(e.id=t instanceof ft&&t.id||xx(e))}_setLegacyIds(e,t){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[Ax(e),Cy(e)];else if(typeof t!="string"){let s=t instanceof ft?t:t instanceof Yr?t.previousMessage:void 0;e.legacyIds=s?s.legacyIds:[]}}_reportError(e,t){this._errors.push(new R(e.sourceSpan,t))}},cT="|",uT="@@";function pT(n=""){let e,t,s;if(n=n.trim(),n){let r=n.indexOf(uT),i=n.indexOf(cT),o;[o,e]=r>-1?[n.slice(0,r),n.slice(r+2)]:[n,""],[t,s]=i>-1?[o.slice(0,i),o.slice(i+1)]:["",o]}return{customId:e,meaning:t,description:s}}function hT(n){let e=[];return n.description?e.push({tagName:"desc",text:n.description}):e.push({tagName:"suppress",text:"{msgDescriptions}"}),n.meaning&&e.push({tagName:"meaning",text:n.meaning}),Ox(e)}var fT="goog.getMsg";function dT(n,e,t,s){let r=gT(e),i=[S(r)];Object.keys(s).length&&(i.push(jp(Bh(s,!0),!0)),i.push(jp({original_code:Kt(Object.keys(s).map(l=>({key:Ko(l),quoted:!0,value:e.placeholders[l]?S(e.placeholders[l].sourceSpan.toString()):S(e.placeholderToMessage[l].nodes.map(c=>c.sourceSpan.toString()).join(""))})))})));let o=new je(t.name,te(fT).callFn(i),tn,Ke.Final);o.addLeadingComment(hT(e));let a=new et(n.set(t));return[o,a]}var lh=class{formatPh(e){return`{$${Ko(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(t=>t.visit(this)).join("")}visitIcu(e){return gE(e)}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(t=>t.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitBlockPlaceholder(e){return`${this.formatPh(e.startName)}${e.children.map(t=>t.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitIcuPlaceholder(e,t){return this.formatPh(e.name)}},mT=new lh;function gT(n){return n.nodes.map(e=>e.visit(mT,null)).join("")}function vT(n,e,t){let{messageParts:s,placeHolders:r}=ST(e),i=yT(e),o=r.map(c=>t[c.text]),a=Vx(e,s,r,o,i),l=n.set(a);return[new et(l)]}var ch=class{placeholderToMessage;pieces;constructor(e,t){this.placeholderToMessage=e,this.pieces=t}visitText(e){if(this.pieces[this.pieces.length-1]instanceof $s)this.pieces[this.pieces.length-1].text+=e.value;else{let t=new $(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new $s(e.value,t))}}visitContainer(e){e.children.forEach(t=>t.visit(this))}visitIcu(e){this.pieces.push(new $s(gE(e),e.sourceSpan))}visitTagPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.isVoid||(e.children.forEach(t=>t.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,e.endSourceSpan??e.sourceSpan)))}visitPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan))}visitBlockPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.children.forEac
35h(t=>t.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,e.endSourceSpan??e.sourceSpan))}visitIcuPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan,this.placeholderToMessage[e.name]))}createPlaceholderPiece(e,t,s){return new Rr(Ko(e,!1),t,s)}};function ST(n){let e=[],t=new ch(n.placeholderToMessage,e);return n.nodes.forEach(s=>s.visit(t)),ET(e)}function yT(n){let e=n.nodes[0],t=n.nodes[n.nodes.length-1];return new $(e.sourceSpan.fullStart,t.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}function ET(n){let e=[],t=[];n[0]instanceof Rr&&e.push(Hu(n[0].sourceSpan.start));for(let s=0;s<n.length;s++){let r=n[s];r instanceof $s?e.push(r):(t.push(r),n[s-1]instanceof Rr&&e.push(Hu(n[s-1].sourceSpan.end)))}return n[n.length-1]instanceof Rr&&e.push(Hu(n[n.length-1].sourceSpan.end)),{messageParts:e,placeHolders:t}}function Hu(n){return new $s("",new $(n,n))}var BS="ngI18nClosureMode",wT="i18n_",AT="I18N_EXP_",OS="\uFFFD",xT="MSG_";function $S(n){return`${xT}${n}`.toUpperCase()}function _T(n){return new je(n.name,void 0,tn,void 0,n.sourceSpan)}function CT(n){let e=n.relativeContextFilePath.replace(/[^A-Za-z0-9]/g,"_").toUpperCase()+"_",t=new Map,s=new Map,r=new Map,i=new Map;for(let l of n.units)for(let c of l.ops())if(c.kind===u.ExtractedAttribute&&c.i18nContext!==null){let p=t.get(c.i18nContext)??[];p.push(c),t.set(c.i18nContext,p)}else if(c.kind===u.I18nAttributes)s.set(c.target,c);else if(c.kind===u.I18nExpression&&c.usage===ai.I18nAttribute){let p=r.get(c.target)??[];p.push(c),r.set(c.target,p)}else c.kind===u.I18nMessage&&i.set(c.xref,c);let o=new Map,a=new Map;for(let l of n.units)for(let c of l.create)if(c.kind===u.I18nMessage){if(c.messagePlaceholder===null){let{mainVar:p,statements:h}=_E(n,e,i,c);if(c.i18nBlock!==null){let f=n.addConst(p,h);a.set(c.i18nBlock,f)}else{n.constsInitializers.push(...h),o.set(c.i18nContext,p);let f=t.get(c.i18nContext);if(f!==void 0)for(let g of f)g.expression=p.clone()}}A.remove(c)}for(let l of n.units)for(let c of l.create)if(Es(c)){let p=s.get(c.xref);if(p===void 0)continue;let h=r.get(c.xref);if(h===void 0)throw new Error("AssertionError: Could not find any i18n expressions associated with an I18nAttributes instruction");let f=new Set;h=h.filter(m=>{let y=f.has(m.name);return f.add(m.name),!y});let g=h.flatMap(m=>{let y=o.get(m.context);if(y===void 0)throw new Error("AssertionError: Could not find i18n expression's value");return[S(m.name),y]});p.i18nAttributesConfig=n.addConst(new _n(g))}for(let l of n.units)for(let c of l.create)if(c.kind===u.I18nStart){let p=a.get(c.root);if(p===void 0)throw new Error("AssertionError: Could not find corresponding i18n block index for an i18n message op; was an i18n message incorrectly assumed to correspond to an attribute?");c.messageIndex=p}}function _E(n,e,t,s){let r=[],i=new Map;for(let c of s.subMessages){let p=t.get(c),{mainVar:h,statements:f}=_E(n,e,t,p);r.push(...f);let g=i.get(p.messagePlaceholder)??[];g.push(h),i.set(p.messagePlaceholder,g)}bT(s,i),s.params=new Map([...s.params.entries()].sort());let o=te(n.pool.uniqueName(wT)),a=NT(n.pool,s.message.id,e,n.i18nUseExternalIds),l;if(s.needsPostprocessing||s.postprocessingParams.size>0){let c=Object.fromEntries([...s.postprocessingParams.entries()].sort()),p=Bh(c,!1),h=[];s.postprocessingParams.size>0&&h.push(jp(p,!0)),l=f=>I(d.i18nPostprocess).callFn([f,...h])}return r.push(...TT(s.message,o,a,s.params,l)),{mainVar:o,statements:r}}function bT(n,e){for(let[t,s]of e)s.length===1?n.params.set(t,s[0]):(n.params.set(t,S(`${OS}${AT}${t}${OS}`)),n.postprocessingParams.set(t,me(s)))}function TT(n,e,t,s,r){let i=Object.fromEntries(s),o=[_T(e),yc(kT(),dT(e,n,t,i),vT(e,n,Bh(i,!1)))];return r&&o.push(new et(e.set(r(e)))),o}function kT(){return Qo(te(BS)).notIdentical(S("undefined",Lh)).and(te(BS))}function NT(n,e,t,s){let r,i=t;if(s){let o=$S("EXTERNAL_"),a=n.uniqueName(i);r=`${o}${Ms(e)}$$${a}`}else{let o=$S(i);r=n.uniqueName(o)}return te(r)}function IT(n){for(let e of n.units){let t=null,s=null,r=new Map,i=new Map,o=new Map;for(let a of e.create)switch(a.kind){case u.I18nStart:if(a.context===null)throw Error("I18n op should have its context set.");t=a;break;case u.I18nEnd:t=null;break;case u.IcuStart:if(a.context===null)throw Error("Icu op should have its context set.");s=a;break;case u.IcuEnd:s=null;break;case u.Text:if(t!==null)if(r.set(a.xref,t),i.set(a.xref,s),a.icuPlaceholder!==null){let l=s2(n.allocateXrefId(),a.icuPlaceholder,[a.initialValue]);A.replace(a,l),o.set(a.xref,l)}
35else A.remove(a);break}for(let a of e.update)switch(a.kind){case u.InterpolateText:if(!r.has(a.target))continue;let l=r.get(a.target),c=i.get(a.target),p=o.get(a.target),h=c?c.context:l.context,f=c?Do.Postproccessing:Do.Creation,g=[];for(let m=0;m<a.interpolation.expressions.length;m++){let y=a.interpolation.expressions[m];g.push(nE(h,l.xref,l.xref,l.handle,y,p?.xref??null,a.interpolation.i18nPlaceholders[m]??null,f,ai.I18nText,"",y.sourceSpan??a.sourceSpan))}A.replaceWithMany(a,g),p!==void 0&&(p.strings=a.interpolation.strings);break}}}function DT(n){for(let e of n.units)for(let t of e.create)switch(t.kind){case u.ElementStart:case u.ConditionalCreate:case u.ConditionalBranchCreate:case u.Template:if(!Array.isArray(t.localRefs))throw new Error("AssertionError: expected localRefs to be an array still");if(t.numSlotsUsed+=t.localRefs.length,t.localRefs.length>0){let s=PT(t.localRefs);t.localRefs=n.addConst(s)}else t.localRefs=null;break}}function PT(n){let e=[];for(let t of n)e.push(S(t.name),S(t.target));return me(e)}function MT(n){for(let e of n.units){let t=Be.HTML;for(let s of e.create)s.kind===u.ElementStart&&s.namespace!==t&&(A.insertBefore(QC(s.namespace),s),t=s.namespace)}}function LT(n){let e=[],t=0,s=0,r=0,i=0,o=0,a=null;for(;t<n.length;)switch(n.charCodeAt(t++)){case 40:s++;break;case 41:s--;break;case 39:r===0?r=39:r===39&&n.charCodeAt(t-1)!==92&&(r=0);break;case 34:r===0?r=34:r===34&&n.charCodeAt(t-1)!==92&&(r=0);break;case 58:!a&&s===0&&r===0&&(a=CE(n.substring(o,t-1).trim()),i=t);break;case 59:if(a&&i>0&&s===0&&r===0){let c=n.substring(i,t-1).trim();e.push(a,c),o=t,i=0,a=null}break}if(a&&i){let l=n.slice(i).trim();e.push(a,l)}return e}function CE(n){return n.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function RT(n){let e=new Map;for(let t of n.units)for(let s of t.create)Es(s)&&e.set(s.xref,s);for(let t of n.units)for(let s of t.create)if(s.kind===u.ExtractedAttribute&&s.bindingKind===P.Attribute&&sE(s.expression)){let r=e.get(s.target);if(r!==void 0&&(r.kind===u.Template||r.kind===u.ConditionalCreate||r.kind===u.ConditionalBranchCreate)&&r.templateKind===Et.Structural)continue;if(s.name==="style"){let i=LT(s.expression.value);for(let o=0;o<i.length-1;o+=2)A.insertBefore(Xt(s.target,P.StyleProperty,null,i[o],S(i[o+1]),null,null,se.STYLE),s);A.remove(s)}else if(s.name==="class"){let i=s.expression.value.trim().split(/\s+/g);for(let o of i)A.insertBefore(Xt(s.target,P.ClassName,null,o,null,null,null,se.NONE),s);A.remove(s)}}}function FT(n){Ui(n.root,n.componentName,{index:0})}function Ui(n,e,t){n.fnName===null&&(n.fnName=n.job.pool.uniqueName(Ms(`${e}_${n.job.fnSuffix}`),!1));let s=new Map;for(let r of n.ops())switch(r.kind){case u.Property:case u.DomProperty:r.bindingKind===P.LegacyAnimation&&(r.name="@"+r.name);break;case u.Animation:if(r.handlerFnName===null){let c=r.name.replace(".","");r.handlerFnName=`${n.fnName}_${c}_cb`,r.handlerFnName=Ms(r.handlerFnName)}break;case u.AnimationListener:if(r.handlerFnName!==null)break;if(!r.hostListener&&r.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let i=r.name.replace(".","");r.hostListener?r.handlerFnName=`${e}_${i}_HostBindingHandler`:r.handlerFnName=`${n.fnName}_${r.tag.replace("-","_")}_${i}_${r.targetSlot.slot}_listener`,r.handlerFnName=Ms(r.handlerFnName);break;case u.Listener:if(r.handlerFnName!==null)break;if(!r.hostListener&&r.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let o="";r.isLegacyAnimationListener&&(r.name=`@${r.name}.${r.legacyAnimationPhase}`,o="animation"),r.hostListener?r.handlerFnName=`${e}_${o}${r.name}_HostBindingHandler`:r.handlerFnName=`${n.fnName}_${r.tag.replace("-","_")}_${o}${r.name}_${r.targetSlot.slot}_listener`,r.handlerFnName=Ms(r.handlerFnName);break;case u.TwoWayListener:if(r.handlerFnName!==null)break;if(r.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");r.handlerFnName=Ms(`${n.fnName}_${r.tag.replace("-","_")}_${r.name}_${r.targetSlot.slot}_listener`);break;case u.Variable:s.set(r.xref,BT(r.variable,t));break;case u.RepeaterCreate:if(!(n instanceof Qt))throw new Error("AssertionError: must be compiling a component");if(r.handle.slot===null)throw new Error("Expected slot to be assigned");if(r.emptyView!==null){let c=n.job.views.get(r.emptyView);Ui(c,`${e}_${r.functionNameSuffix}Empty_${r.handle.slot+2}`,t)}Ui(n.job.views.get(r.xref),`${e}_${r.functionNameSuffix}_${r.handle.slot+1}`,t);break;case u.Projection:if(!(n instanceof Qt))throw new Error("AssertionError: must be compiling a component");if(r.handle.slot===null)throw new Error("Expected slot to be assigned");if(r.fallbackView!==null){let c=n.job.views.get(r.fallbackView);Ui(c,`${e}_ProjectionFallback_${r.handle.slot}`,t)}break;case u.ConditionalCreate:case u.ConditionalBranchCreate:case u.Template:if(!(n instanceof Qt))throw new Error("AssertionError: must be compiling a component");let a=n.job.views.get(r.xref);if(r.handle.slot===null)throw new Error("Expected slot to be assigned");let l=r.functionNameSuffix.length===0?"":`_${r.functionNameSuffix}`;Ui(a,`${e}${l}_${r.handle.slot}`,t);break;case u.StyleProp:r.name=US(OT(r.name));break;case u.ClassProp:r.name=US(r.name);break}for(let r of n.ops())Re(r,i=>{if(!(!(i instanceof $n)||i.name!==null)){if(!s.has(i.xref))throw new Error(`Variable ${i.xref} not yet named`);i.name=s.get(i.xref)}})}function BT(n,e){if(n.name===null)switch(n.kind){case Qe.Context:n.name=`ctx_r${e.index++}`;break;case Qe.Identifier:let t=n.identifier===Ot?"i":"";n.name=`${n.identifier}_${t}r${++e.index}`;break;default:n.name=`_r${++e.index}`;break}return n.name}function OT(n){return n.startsWith("--")?n:CE(n)}function US(n){let e=n.indexOf("!important");return e>-1?n.substring(0,e):n}function $T(n){for(let e of n.units){for(let t of e.functions)ju(t.ops);for(let t of e.create)(t.kind===u.Listener||t.kind===u.Animation||t.kind===u.AnimationListener||t.kind===u.TwoWayListener)&&ju(t.handlerOps);ju(e.update)}}function ju(n){for(let e of n){if(e.kind!==u.Statement||!(e.statement instanceof et)||!(e.statement.expr instanceof Xl))continue;let t=e.statement.expr.steps,s=!0;for(let r=e.next;r.kind!==u.ListEnd&&s;r=r.next)Re(r,(i,o)=>
35{if(!kn(i))return i;if(s&&!(o&J.InChildOperation))switch(i.kind){case M.NextContext:i.steps+=t,A.remove(e),s=!1;break;case M.GetCurrentView:case M.Reference:case M.ContextLetReference:s=!1;break}})}}var UT="ng-container";function VT(n){for(let e of n.units){let t=new Set;for(let s of e.create)s.kind===u.ElementStart&&s.tag===UT&&(s.kind=u.ContainerStart,t.add(s.xref)),s.kind===u.ElementEnd&&t.has(s.xref)&&(s.kind=u.ContainerEnd)}}function qT(n,e){let t=n.get(e);if(t===void 0)throw new Error("All attributes should have an element-like target.");return t}function HT(n){let e=new Map;for(let t of n.units)for(let s of t.create)Es(s)&&e.set(s.xref,s);for(let t of n.units)for(let s of t.create)(s.kind===u.ElementStart||s.kind===u.ContainerStart)&&s.nonBindable&&A.insertAfter(jC(s.xref),s),(s.kind===u.ElementEnd||s.kind===u.ContainerEnd)&&qT(e,s.xref).nonBindable&&A.insertBefore(zC(s.xref),s)}function Sn(n){return e=>e.kind===n}function zi(n,e){return t=>t.kind===n&&e===t.expression instanceof Ie}function jT(n){return n.kind===u.Listener&&!(n.hostListener&&n.isLegacyAnimationListener)||n.kind===u.TwoWayListener||n.kind===u.Animation||n.kind===u.AnimationListener}function zT(n){return(n.kind===u.Property||n.kind===u.TwoWayProperty)&&!(n.expression instanceof Ie)}var WT=[{test:n=>n.kind===u.Listener&&n.hostListener&&n.isLegacyAnimationListener},{test:jT}],GT=[{test:Sn(u.StyleMap),transform:pc},{test:Sn(u.ClassMap),transform:pc},{test:Sn(u.StyleProp)},{test:Sn(u.ClassProp)},{test:zi(u.Attribute,!0)},{test:zi(u.Property,!0)},{test:zT},{test:zi(u.Attribute,!1)},{test:Sn(u.Control)}],XT=[{test:zi(u.DomProperty,!0)},{test:zi(u.DomProperty,!1)},{test:Sn(u.Attribute)},{test:Sn(u.StyleMap),transform:pc},{test:Sn(u.ClassMap),transform:pc},{test:Sn(u.StyleProp)},{test:Sn(u.ClassProp)}],VS=new Set([u.Listener,u.TwoWayListener,u.AnimationListener,u.StyleMap,u.ClassMap,u.StyleProp,u.ClassProp,u.Property,u.TwoWayProperty,u.DomProperty,u.Attribute,u.Animation,u.Control]);function QT(n){for(let e of n.units){qS(e.create,WT);let t=e.job.kind===k.Host?XT:GT;qS(e.update,t)}}function qS(n,e){let t=[],s=null;for(let r of n){let i=Po(r)?r.target:null;(!VS.has(r.kind)||i!==s&&s!==null&&i!==null)&&(A.insertBefore(HS(t,e),r),t=[],s=null),VS.has(r.kind)&&(t.push(r),A.remove(r),s=i??s)}n.push(HS(t,e))}function HS(n,e){let t=Array.from(e,()=>new Array);for(let s of n){let r=e.findIndex(i=>i.test(s));t[r].push(s)}return t.flatMap((s,r)=>{let i=e[r].transform;return i?i(s):s})}function pc(n){return n.slice(n.length-1)}function YT(n){for(let e of n.units){let t=hE(e);for(let s of e.ops())if(s.kind===u.Binding){let r=JT(t,s.target);KT(s.name)&&r.kind===u.Projection&&A.remove(s)}}}function KT(n){return n.toLowerCase()==="select"}function JT(n,e){let t=n.get(e);if(t===void 0)throw new Error("All attributes should have an slottable target.");return t}function ZT(n){for(let e of n.units)e0(e)}function e0(n){for(let e of n.update)Re(e,(t,s)=>{if(!kn(t)||t.kind!==M.PipeBinding)return;if(s&J.InChildOperation)throw new Error("AssertionError: pipe bindings should not appear in child expressions");if(e.target==null)throw new Error("AssertionError: expected slot handle to be assigned for pipe creation");t0(n,e.target,t)})}function t0(n,e,t){for(let s=n.create.head.next;s.kind!==u.ListEnd;s=s.next){if(!li(s)||s.xref!==e)continue;for(;s.next.kind===u.Pipe;)s=s.next;let r=XC(t.target,t.targetSlot,t.name);A.insertBefore(r,s.next);return}throw new Error(`AssertionError: unable to find insertion point for pipe ${t.name}`)}function n0(n){for(let e of n.units)for(let t of e.update)De(t,s=>!(s instanceof ir)||s.args.length<=4?s:new Fo(s.target,s.targetSlot,s.name,me(s.args),s.args.length),J.None)}function s0(n){bE(n.root,0)}function bE(n,e){let t=null;for(let s of n.create)switch(s.kind){case u.I18nStart:s.subTemplateIndex=e===0?null:e,t=s;break;case u.I18nEnd:t.subTemplateIndex===null&&(e=0),t=null;break;case u.ConditionalCreate:case u.ConditionalBranchCreate:case u.Template:e=Ja(n.job.views.get(s.xref),t,s.i18nPlaceholder,e);break;case u.RepeaterCreate:let r=n.job.views.get(s.xref);e=Ja(r,t,s.i18nPlaceholder,e),s.emptyView!==null&&(e=Ja(n.job.views.get(s.emptyView),t,s.emptyI18nPlaceholder,e));break;case u.Projection:s.fallbackView!==null&&(e=Ja(n.job.views.get(s.fallbackView),t,s.fallbackViewI18nPlaceholder,e));break}return e}function Ja(n,e,t,s){if(t!==void 0){if(e===null)throw Error("Expected template with i18n placeholder to be in an i18n block.");s++,r0(n,e)}return bE(n,s)}function r0(n,e){if(n.create.head.next?.kind!==u.I18nStart){let t=n.job.allocateXrefId();A.insertAfter(xc(t,e.message,e.root,null),n.create.head),A.insertBefore(_c(t,null),n.create.tail)}}function i0(n){for(let e of n.units)for(let t of e.ops())Re(t,s=>{if(!(s instanceof rr)||s.body===null)return;let r=new uh(s.args.length);s.fn=n.pool.getSharedConstant(r,s.body),s.body=null})}var uh=class extends no{numArgs;constructor(e){super(),this.numArgs=e}keyOf(e){return e instanceof Ss?`param(${e.index})`:super.keyOf(e)}toSharedConstantDeclaration(e,t){let s=[];for(let i=0;i<this.numArgs;i++)s.push(new Oe("a"+i,wt));let r=N(t,i=>i instanceof Ss?te("a"+i.index):i,J.None);return new je(e,new lr(s,r),void 0,Ke.Final)}};function o0(n){for(let e of n.units)for(let t of e.update)De(t,(s,r)=>r&J.InChildOperation?s:s instanceof _n?a0(s):s instanceof rn?l0(s):s,J.None)}function a0(n){let e=[],t=[];for(let s of n.entries){if(s instanceof Ys){if(s.expression.isConstant())e.push(s);else{let r=t.length;t.push(s.expression),e.push(new Ys(new Ss(r)))}continue}if(s.isConstant())e.push(s);else{let r=t.length;t.push(s),e.push(new Ss(r))}}return new rr(me(e),t)}function l0(n){let e=[],t=[];for(let s of n.entries){if(s instanceof us){if(s.expression.isConstant())e.push(s);else{let r=t.length;t.push(s.expression),e.push(new us(new Ss(r)))}continue}if(s.value.isConstant())e.push(s);else{let r=t.length;t.push(s.value),e.push(new Vr(s.key,new Ss(r),s.quoted))}}return new rr(new rn(e),t)}function c0(n){for(let e of n.units)for(let t of e.ops())De(t,s=>s instanceof Ur&&(s.flags===null||!s.flags.includes("g"))?n.pool.getSharedConstant(new ph,s):s,J.None)}var ph=class extends no{toSharedConstantDeclaration(e,t){return new je(e,t,void 0,Ke.Final)}};function u0(n,e,t,s,r){return xs(d.element,n,e,t,s,r)}function p0(n,e,t,s,r){return xs(d.elementStart,n,e,t,s,r)}function xs(n,e,t,s,r,i){let o=[S(e)];return t!==null&&o.push(S(t)),r!==null?o.push(S(s),S(r)):s!==null&&o.push(S(s)),q(n,o,i)}function TE(n,e,t,s,r,i,o,a,l){let c=[S(e),t,S(s),S(r),S(i),S(o)];for(a!==null&&(c.push(S(a)),c.push(I(d.templateRefExtractor)));c[c.length-1].isEquivalent(qr);)c.pop();return q(n,c,l)}function Gh(n,e,t,s,r){let i=[S(e)];return t instanceof Ie?i.push(ci(t,r)):i.push(t),s!==null&&i.push(s),q(n,i,r)}function h0(n){return q(d.elementEnd,[],n)}function f0(n,e,t,s){return xs(d.elementContainerStart,n,null,e,t,s)}function d0(n,e,t,s){return xs(d.elementContainer,n,null,e,t,s)}function m0(){return q(d.elementContainerEnd,[],null)}function g0(n,e,t,s,r,i,o,a){return TE(d.templateCreate,n,e,t,s,r,i,o,a)}function v0(){return q(d.disableBindings,[],null)}function S0(){return q(d.enableBindings,[],null)}function y0(n,e,t,s,r){let i=[S(n),e];return t!==null&&i.push(I(t)),q(s?d.syntheticHostListener:d.listener,i,r)}function jS(n,e){return I(d.twoWayBindingSet).callFn([n,e])}function E0(n,e,t){return q(d.twoWayListener,[S(n),e],t)}function w0(n,e){return q(d.pipe,[S(n),S(e)],null)}function A0(){return q(d.namespaceHTML,[],null)}function x0(){return q(d.namespaceSVG,[],null)}function _0(){return q(d.namespaceMathML,[],null)}function C0(n,e){return q(d.advance,n>1?[S(n)]:[],e)}function b0(n){return I(d.reference).callFn([S(n)])}function T0(n){return I(d.nextContext).callFn(n===1?[]:[S(n)])}function k0(){return I(d.getCurrentView).callFn([])}function N0(n){return I(d.restoreView).callFn([n])}function I0(n){return I(d.resetView).callFn([n])}function D0(n,e,t){let s=[S(n,null)];return e!==""&&s.push(S(e)),q(d.text,s,t)}function P0(n,e,t,s,r,i,o,a,l,c,p){let h=[S(n),S(e),t??S(null),S(s),S(r),S(i),o??S(null),a??S(null),l?I(d.deferEnableTimerScheduling):S(null),S(p)],f;for(;(f=h[h.length-1])!==null&&f instanceof Ze&&f.value===null;)h.pop();return q(d.defer,h,c)}
35var M0=new Map([[Se.Idle,{none:d.deferOnIdle,prefetch:d.deferPrefetchOnIdle,hydrate:d.deferHydrateOnIdle}],[Se.Immediate,{none:d.deferOnImmediate,prefetch:d.deferPrefetchOnImmediate,hydrate:d.deferHydrateOnImmediate}],[Se.Timer,{none:d.deferOnTimer,prefetch:d.deferPrefetchOnTimer,hydrate:d.deferHydrateOnTimer}],[Se.Hover,{none:d.deferOnHover,prefetch:d.deferPrefetchOnHover,hydrate:d.deferHydrateOnHover}],[Se.Interaction,{none:d.deferOnInteraction,prefetch:d.deferPrefetchOnInteraction,hydrate:d.deferHydrateOnInteraction}],[Se.Viewport,{none:d.deferOnViewport,prefetch:d.deferPrefetchOnViewport,hydrate:d.deferHydrateOnViewport}],[Se.Never,{none:d.deferHydrateNever,prefetch:d.deferHydrateNever,hydrate:d.deferHydrateNever}]]);function L0(n,e,t,s){let r=M0.get(n)?.[t];if(r===void 0)throw new Error(`Unable to determine instruction for trigger ${n}`);return q(r,e,s)}function R0(n){return q(d.projectionDef,n?[n]:[],null)}function F0(n,e,t,s,r,i,o){let a=[S(n)];return(e!==0||t!==null||s!==null)&&(a.push(S(e)),t!==null&&a.push(t),s!==null&&(t===null&&a.push(S(null)),a.push(te(s),S(r),S(i)))),q(d.projection,a,o)}function B0(n,e,t,s){let r=[S(n),S(e)];return t!==null&&r.push(S(t)),q(d.i18nStart,r,s)}function O0(n,e,t,s,r,i,o,a){let l=[S(n),e,S(t),S(s),S(r),S(i)];for(o!==null&&(l.push(S(o)),l.push(I(d.templateRefExtractor)));l[l.length-1].isEquivalent(qr);)l.pop();return q(d.conditionalCreate,l,a)}function $0(n,e,t,s,r,i,o,a){let l=[S(n),e,S(t),S(s),S(r),S(i)];for(o!==null&&(l.push(S(o)),l.push(I(d.templateRefExtractor)));l[l.length-1].isEquivalent(qr);)l.pop();return q(d.conditionalBranchCreate,l,a)}function U0(n,e,t,s,r,i,o,a,l,c,p,h,f,g){let m=[S(n),te(e),S(t),S(s),S(r),S(i),o];return(a||l!==null)&&(m.push(S(a)),l!==null&&(m.push(te(l),S(c),S(p)),(h!==null||f!==null)&&m.push(S(h)),f!==null&&m.push(S(f)))),q(d.repeaterCreate,m,g)}function V0(n,e){return q(d.repeater,[n],e)}function q0(n,e,t){return n==="prefetch"?q(d.deferPrefetchWhen,[e],t):n==="hydrate"?q(d.deferHydrateWhen,[e],t):q(d.deferWhen,[e],t)}function H0(n,e){return q(d.declareLet,[S(n)],e)}function j0(n,e){return I(d.storeLet).callFn([n],e)}function z0(n){return I(d.readContextLet).callFn([S(n)])}function W0(n,e,t,s){let r=[S(n),S(e)];return t&&r.push(S(t)),q(d.i18n,r,s)}function G0(n){return q(d.i18nEnd,[],n)}function X0(n,e){let t=[S(n),S(e)];return q(d.i18nAttributes,t,null)}function Q0(n,e,t){return Gh(d.ariaProperty,n,e,null,t)}function Y0(n,e,t,s){return Gh(d.property,n,e,t,s)}function K0(n){return q(d.control,[],n)}function J0(n){return q(d.controlCreate,[],n)}function Z0(n,e,t,s){let r=[S(n),e];return t!==null&&r.push(t),q(d.twoWayProperty,r,s)}function ek(n,e,t,s,r){let i=[S(n)];return e instanceof Ie?i.push(ci(e,r)):i.push(e),(t!==null||s!==null)&&i.push(t??S(null)),s!==null&&i.push(S(s)),q(d.attribute,i,null)}function tk(n,e,t,s){let r=[S(n)];return e instanceof Ie?r.push(ci(e,s)):r.push(e),t!==null&&r.push(S(t)),q(d.styleProp,r,s)}function nk(n,e,t){return q(d.classProp,[S(n),e],t)}function sk(n,e){let t=n instanceof Ie?ci(n,e):n;return q(d.styleMap,[t],e)}function rk(n,e){let t=n instanceof Ie?ci(n,e):n;return q(d.classMap,[t],e)}function ik(n,e,t,s,r){return xs(d.domElement,n,e,t,s,r)}function ok(n,e,t,s,r){return xs(d.domElementStart,n,e,t,s,r)}function ak(n){return q(d.domElementEnd,[],n)}function lk(n,e,t,s){return xs(d.domElementContainerStart,n,null,e,t,s)}function ck(n,e,t,s){return xs(d.domElementContainer,n,null,e,t,s)}function uk(){return q(d.domElementContainerEnd,[],null)}function pk(n,e,t,s){let r=[S(n),e];return t!==null&&r.push(I(t)),q(d.domListener,r,s)}function hk(n,e,t,s,r,i,o,a){return TE(d.domTemplate,n,e,t,s,r,i,o,a)}var zS=[d.pipeBind1,d.pipeBind2,d.pipeBind3,d.pipeBind4];function fk(n,e,t){if(t.length<1||t.length>zS.length)throw new Error("pipeBind() argument count out of bounds");let s=zS[t.length-1];return I(s).callFn([S(n),S(e),...t])}function dk(n,e,t){return I(d.pipeBindV).callFn([S(n),S(e),t])}function mk(n,e,t){let s=kE(n,e);return Ik(Tk,[],s,t)}function gk(n,e){return q(d.i18nExp,[n],e)}function vk(n,e){return q(d.i18nApply,[S(n)],e)}function Sk(n,e,t,s){return Gh(d.domProperty,n,e,t,s)}function yk(n,e,t,s){let r=[e];t!==null&&r.push(t);let i=n==="enter"?d.animationEnter:d.animationLeave;return q(i,r,s)}function Ek(n,e,t,s){let i=[e instanceof Ie?ci(e,s):e];t!==null&&i.push(t);let o=n==="enter"?d.animationEnter:d.animationLeave;return q(o,i,s)}function wk(n,e,t,s){let r=[e],i=n==="enter"?d.animationEnterListener:d.animationLeaveListener;return q(i,r,s)}function Ak(n,e,t){return q(d.syntheticHostProperty,[S(n),e],t)}function xk(n,e,t){return Xh(Nk,[S(n),e],t,null)}function _k(n,e){return q(d.attachSourceLocations,[S(n),e],null)}function Ck(n,e,t){return I(d.arrowFunction).callFn([S(n),e,t])}function kE(n,e){if(n.length<1||e.length!==n.length-1)throw new Error("AssertionError: expected specific shape of args for strings/expressions in interpolation");let t=[];if(e.length===1&&n[0]===""&&n[1]==="")t.push(e[0]);else{let s;for(s=0;s<e.length;s++)t.push(S(n[s]),e[s]);t.push(S(n[s]))}return t}function ci(n,e){let t=kE(n.strings,n.expressions);return Xh(kk,[],t,e)}function q(n,e,t){let s=I(n).callFn(e,t);return $t(new et(s,t))}function bk(n,e,t){let s=[n];return e!==null&&s.push(e),q(d.conditional,s,t)}var Tk={constant:[d.textInterpolate,d.textInterpolate1,d.textInterpolate2,d.textInterpolate3,d.textInterpolate4,d.textInterpolate5,d.textInterpolate6,d.textInterpolate7,d.textInterpolate8],variable:d.textInterpolateV,mapping:n=>{if(n%2===0)throw new Error("Expected odd number of arguments");return(n-1)/2}},kk={constant:[d.interpolate,d.interpolate1,d.interpolate2,d.interpolate3,d.interpolate4,d.interpolate5,d.interpolate6,d.interpolate7,d.interpolate8],variable:d.interpolateV,mapping:n=>{if(n%2===0)throw new Error("Expected odd number of arguments");return(n-1)/2}},Nk={constant:[d.pureFunction0,d.pureFunction1,d.pureFunction2,d.pureFunction3,d.pureFunction4,d.pureFunction5,d.pureFunction6,d.pureFunction7,d.pureFunction8],variable:d.pureFunctionV,mapping:n=>n};function Xh(n,e,t,s){let r=n.mapping(t.length),i=t.at(-1);if(t.length>1&&i instanceof Ze&&i.value===""&&t.pop(),r<n.constant.length)return I(n.constant[r]).callFn([...e,...t],s);if(n.variable!==null)return I(n.variable).callFn([...e,me(t)],s);throw new Error("AssertionError: unable to call variadic function")}function Ik(n,e,t,s){return $t(Xh(n,e,t,s).toStmt())}var Dk=new Map([["window",d.resolveWindow],["document",d.resolveDocument],["body",d.resolveBody]]),Pk=new Map([["class","className"],["for","htmlFor"],["formaction","formAction"],["innerHtml","innerHTML"],["readonly","readOnly"],["tabindex","tabIndex"]]);function Mk(n){for(let e of n.units)Lk(e,e.create),Tc(e,e.update)}function Lk(n,e){for(let t of e)switch(De(t,s=>NE(n,s),J.None),t.kind){case u.Text:A.replace(t,D0(t.handle.slot,t.initialValue,t.sourceSpan));break;case u.ElementStart:A.replace(t,n.job.mode===gt.DomOnly?ok(t.handle.slot,t.tag,t.attributes,t.localRefs,t.startSourceSpan):p0(t.handle.slot,t.tag,t.attributes,t.localRefs,t.startSourceSpan));break;case u.Element:A.replace(t,n.job.mode===gt.DomOnly?ik(t.handle.slot,t.tag,t.attributes,t.localRefs,t.wholeSourceSpan):u0(t.handle.slot,t.tag,t.attributes,t.localRefs,t.wholeSourceSpan));break;case u.ElementEnd:A.replace(t,n.job.mode===gt.DomOnly?ak(t.sourceSpan):h0(t.sourceSpan));break;case u.ContainerStart:A.replace(t,n.job.mode===gt.DomOnly?lk(t.handle.slot,t.attributes,t.localRefs,t.startSourceSpan):f0(t.handle.slot,t.attributes,t.localRefs,t.startSourceSpan));break;case u.Container:A.replace(t,n.job.mode===gt.DomOnly?ck(t.handle.slot,t.attributes,t.localRefs,t.wholeSourceSpan):d0(t.handle.slot,t.attributes,t.localRefs,t.wholeSourceSpan));break;case u.ContainerEnd:A.replace(t,n.job.mode===gt.DomOnly?uk():m0());break;case u.I18nStart:A.replace(t,B0(t.handle.slot,t.messageIndex,t.subTemplateIndex,t.sourceSpan));break;case u.I18nEnd:A.replace(t,G0(t.sourceSpan));break;case u.I18n:A.replace(t,W0(t.handle.slot,t.messageIndex,t.subTemplateIndex,t.sourceSpan));break;case u.I18nAttributes:if(t.i18nAttributesConfig===null)throw new Error("AssertionError: i18nAttributesConfig was not set");A.replace(t,X0(t.handle.slot,t.i18nAttributesConfig));break;case u.Template:if(!(n instanceof Qt))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(t.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let s=n.job.views.get(t.xref);A.replace(t,t.templateKind===Et.Block||n.job.mode===gt.DomOnly?hk(t.handle.slot,te(s.fnName),s.decls,s.vars,t.tag,t.attributes,t.localRefs,t.startSourceSpan):g0(t.handle.slot,te(s.fnName),s.decls,s.vars,t.tag,t.attributes,t.localRefs,t.startSourceSpan));break;case u.DisableBindings:A.replace(t,v0());break;case u.EnableBindings:A.replace(t,S0());break;case u.Pipe:A.replace(t,w0(t.handle.slot,t.name));break;
35case u.DeclareLet:A.replace(t,H0(t.handle.slot,t.sourceSpan));break;case u.AnimationString:A.replace(t,Ek(t.animationKind,t.expression,t.sanitizer,t.sourceSpan));break;case u.Animation:let r=Za(n,t.handlerFnName,t.handlerOps,!1);A.replace(t,yk(t.animationKind,r,t.sanitizer,t.sourceSpan));break;case u.AnimationListener:let i=Za(n,t.handlerFnName,t.handlerOps,t.consumesDollarEvent);A.replace(t,wk(t.animationKind,i,null,t.sourceSpan));break;case u.Listener:let o=Za(n,t.handlerFnName,t.handlerOps,t.consumesDollarEvent),a=t.eventTarget?Dk.get(t.eventTarget):null;if(a===void 0)throw new Error(`Unexpected global target '${t.eventTarget}' defined for '${t.name}' event. Supported list of global targets: window,document,body.`);A.replace(t,n.job.mode===gt.DomOnly&&!t.hostListener&&!t.isLegacyAnimationListener?pk(t.name,o,a,t.sourceSpan):y0(t.name,o,a,t.hostListener&&t.isLegacyAnimationListener,t.sourceSpan));break;case u.TwoWayListener:A.replace(t,E0(t.name,Za(n,t.handlerFnName,t.handlerOps,!0),t.sourceSpan));break;case u.Variable:if(t.variable.name===null)throw new Error(`AssertionError: unnamed variable ${t.xref}`);A.replace(t,$t(new je(t.variable.name,t.initializer,void 0,Ke.Final)));break;case u.Namespace:switch(t.active){case Be.HTML:A.replace(t,A0());break;case Be.SVG:A.replace(t,x0());break;case Be.Math:A.replace(t,_0());break}break;case u.Defer:let l=!!t.loadingMinimumTime||!!t.loadingAfterTime||!!t.placeholderMinimumTime;A.replace(t,P0(t.handle.slot,t.mainSlot.slot,t.resolverFn,t.loadingSlot?.slot??null,t.placeholderSlot?.slot??null,t.errorSlot?.slot??null,t.loadingConfig,t.placeholderConfig,l,t.sourceSpan,t.flags));break;case u.DeferOn:let c=[];switch(t.trigger.kind){case Se.Never:case Se.Idle:case Se.Immediate:break;case Se.Timer:c=[S(t.trigger.delay)];break;case Se.Viewport:t.modifier==="hydrate"?c=t.trigger.options?[t.trigger.options]:[]:(c=[S(t.trigger.targetSlot?.slot??null)],t.trigger.targetSlotViewSteps!==0?c.push(S(t.trigger.targetSlotViewSteps)):t.trigger.options&&c.push(S(null)),t.trigger.options&&c.push(t.trigger.options));break;case Se.Interaction:case Se.Hover:t.modifier==="hydrate"?c=[]:(c=[S(t.trigger.targetSlot?.slot??null)],t.trigger.targetSlotViewSteps!==0&&c.push(S(t.trigger.targetSlotViewSteps)));break;default:throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${t.trigger.kind}`)}A.replace(t,L0(t.trigger.kind,c,t.modifier,t.sourceSpan));break;case u.ProjectionDef:A.replace(t,R0(t.def));break;case u.Projection:if(t.handle.slot===null)throw new Error("No slot was assigned for project instruction");let p=null,h=null,f=null;if(t.fallbackView!==null){if(!(n instanceof Qt))throw new Error("AssertionError: must be compiling a component");let w=n.job.views.get(t.fallbackView);if(w===void 0)throw new Error("AssertionError: projection had fallback view xref, but fallback view was not found");if(w.fnName===null||w.decls===null||w.vars===null)throw new Error("AssertionError: expected projection fallback view to have been named and counted");p=w.fnName,h=w.decls,f=w.vars}A.replace(t,F0(t.handle.slot,t.projectionSlotIndex,t.attributes,p,h,f,t.sourceSpan));break;case u.ConditionalCreate:if(!(n instanceof Qt))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(t.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let g=n.job.views.get(t.xref);A.replace(t,O0(t.handle.slot,te(g.fnName),g.decls,g.vars,t.tag,t.attributes,t.localRefs,t.startSourceSpan));break;case u.ConditionalBranchCreate:if(!(n instanceof Qt))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(t.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let m=n.job.views.get(t.xref);A.replace(t,$0(t.handle.slot,te(m.fnName),m.decls,m.vars,t.tag,t.attributes,t.localRefs,t.startSourceSpan));break;case u.RepeaterCreate:if(t.handle.slot===null)throw new Error("No slot was assigned for repeater instruction");if(!(n instanceof Qt))throw new Error("AssertionError: must be compiling a component");let y=n.job.views.get(t.xref);if(y.fnName===null)throw new Error("AssertionError: expected repeater primary view to have been named");let x=null,_=null,T=null;if(t.emptyView!==null){let w=n.job.views.get(t.emptyView);if(w===void 0)throw new Error("AssertionError: repeater had empty view xref, but empty view was not found");if(w.fnName===null||w.decls===null||w.vars===null)throw new Error("AssertionError: expected repeater empty view to have been named and counted");x=w.fnName,_=w.decls,T=w.vars}A.replace(t,U0(t.handle.slot,y.fnName,t.decls,t.vars,t.tag,t.attributes,Bk(n,t),t.usesComponentInstance,x,_,T,t.emptyTag,t.emptyAttributes,t.wholeSourceSpan));break;case u.SourceLocation:let F=me(t.locations.map(({targetSlot:w,offset:G,line:Z,column:de})=>
35{if(w.slot===null)throw new Error("No slot was assigned for source location");return me([S(w.slot),S(G),S(Z),S(de)])}));A.replace(t,_k(t.templatePath,F));break;case u.ControlCreate:A.replace(t,J0(t.sourceSpan));break;case u.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${u[t.kind]}`)}}function Tc(n,e){for(let t of e)switch(De(t,s=>NE(n,s),J.None),t.kind){case u.Advance:A.replace(t,C0(t.delta,t.sourceSpan));break;case u.Property:A.replace(t,n.job.mode===gt.DomOnly&&t.bindingKind!==P.LegacyAnimation&&t.bindingKind!==P.Animation?WS(t):Rk(t));break;case u.Control:A.replace(t,Fk(t));break;case u.TwoWayProperty:A.replace(t,Z0(t.name,t.expression,t.sanitizer,t.sourceSpan));break;case u.StyleProp:A.replace(t,tk(t.name,t.expression,t.unit,t.sourceSpan));break;case u.ClassProp:A.replace(t,nk(t.name,t.expression,t.sourceSpan));break;case u.StyleMap:A.replace(t,sk(t.expression,t.sourceSpan));break;case u.ClassMap:A.replace(t,rk(t.expression,t.sourceSpan));break;case u.I18nExpression:A.replace(t,gk(t.expression,t.sourceSpan));break;case u.I18nApply:A.replace(t,vk(t.handle.slot,t.sourceSpan));break;case u.InterpolateText:A.replace(t,mk(t.interpolation.strings,t.interpolation.expressions,t.sourceSpan));break;case u.Attribute:A.replace(t,ek(t.name,t.expression,t.sanitizer,t.namespace,t.sourceSpan));break;case u.DomProperty:if(t.expression instanceof Ie)throw new Error("not yet handled");t.bindingKind===P.LegacyAnimation||t.bindingKind===P.Animation?A.replace(t,Ak(t.name,t.expression,t.sourceSpan)):A.replace(t,WS(t));break;case u.Variable:if(t.variable.name===null)throw new Error(`AssertionError: unnamed variable ${t.xref}`);A.replace(t,$t(new je(t.variable.name,t.initializer,void 0,Ke.Final)));break;case u.Conditional:if(t.processed===null)throw new Error("Conditional test was not set.");A.replace(t,bk(t.processed,t.contextValue,t.sourceSpan));break;case u.Repeater:A.replace(t,V0(t.collection,t.sourceSpan));break;case u.DeferWhen:A.replace(t,q0(t.modifier,t.expr,t.sourceSpan));break;case u.StoreLet:throw new Error(`AssertionError: unexpected storeLet ${t.declaredName}`);case u.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of update op ${u[t.kind]}`)}}function WS(n){return Sk(Pk.get(n.name)??n.name,n.expression,n.sanitizer,n.sourceSpan)}function Rk(n){return fE(n.name)?Q0(n.name,n.expression,n.sourceSpan):Y0(n.name,n.expression,n.sanitizer,n.sourceSpan)}function Fk(n){return K0(n.sourceSpan)}function NE(n,e){if(!kn(e))return e;switch(e.kind){case M.NextContext:return T0(e.steps);case M.Reference:return b0(e.targetSlot.slot+1+e.offset);case M.LexicalRead:throw new Error(`AssertionError: unresolved LexicalRead of ${e.name}`);case M.TwoWayBindingSet:throw new Error("AssertionError: unresolved TwoWayBindingSet");case M.RestoreView:if(typeof e.view=="number")throw new Error("AssertionError: unresolved RestoreView");return N0(e.view);case M.ResetView:return I0(e.expr);case M.GetCurrentView:return k0();case M.ReadVariable:if(e.name===null)throw new Error(`Read of unnamed variable ${e.xref}`);return te(e.name);case M.ReadTemporaryExpr:if(e.name===null)throw new Error(`Read of unnamed temporary ${e.xref}`);return te(e.name);case M.AssignTemporaryExpr:if(e.name===null)throw new Error(`Assign of unnamed temporary ${e.xref}`);return te(e.name).set(e.expr);case M.PureFunctionExpr:if(e.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");return xk(e.varOffset,e.fn,e.args);case M.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case M.PipeBinding:return fk(e.targetSlot.slot,e.varOffset,e.args);case M.PipeBindingVariadic:return dk(e.targetSlot.slot,e.varOffset,e.args);case M.SlotLiteralExpr:return S(e.slot.slot);case M.ContextLetReference:return z0(e.targetSlot.slot);case M.StoreLet:return j0(e.value,e.sourceSpan);case M.TrackContext:return te("this");case M.ArrowFunction:if(e.varOffset===null)throw new Error("AssertionError: variable offset was not assigned to arrow function");return Ck(e.varOffset,n.job.pool.getSharedFunctionReference(Ok(n,e),"arrowFn"),te(Ot));default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${M[e.kind]}`)}}function Za(n,e,t,s){Tc(n,t);let r=[];for(let o of t){if(o.kind!==u.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${u[o.kind]}`);r.push(o.statement)}let i=[];return s&&i.push(new Oe("$event",wt)),ps(i,r,void 0,void 0,e)}function Bk(n,e){if(e.trackByFn!==null)return e.trackByFn;let t=[new Oe("$index",Gs),new Oe("$item",wt)],s;if(e.trackByOps===null)s=e.usesComponentInstance?ps(t,[new $e(e.track)]):Bt(t,e.track);else{Tc(n,e.trackByOps);let r=[];for(let i of e.trackByOps){if(i.kind!==u.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${u[i.kind]}`);r.push(i.statement)}s=e.usesComponentInstance||r.length!==1||!(r[0]instanceof $e)?ps(t,r):Bt(t,r[0].value)}return e.trackByFn=n.job.pool.getSharedFunctionReference(s,"_forTrack"),e.trackByFn}function Ok(n,e){Tc(n,e.ops);let t=[];for(let r of e.ops){if(r.kind!==u.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${u[r.kind]}`);t.push(r.statement)}let s=t.length===1&&t[0]instanceof $e?t[0].value:t;return Bt([new Oe(e.contextName,wt),new Oe(e.currentViewName,wt)],Bt(e.parameters,s))}function $k(n){for(let e of n.units)for(let t of e.update)switch(t.kind){case u.Attribute:case u.Binding:case u.ClassProp:case u.ClassMap:case u.Property:case u.StyleProp:case u.StyleMap:t.expression instanceof Bo&&A.remove(t);break}}function Uk(n){for(let e of n.units)for(let t of e.create)switch(t.kind){case u.I18nContext:A.remove(t);break;case u.I18nStart:t.context=null;break}}function Vk(n){for(let e of n.units)for(let t of e.update){if(t.kind!==u.Variable||t.variable.kind!==Qe.Identifier||!(t.initializer instanceof Mo))continue;
35let s=t.variable.identifier,r=t;for(;r&&r.kind!==u.ListEnd;)De(r,i=>i instanceof Ge&&i.name===s?S(void 0):i,J.None),r=r.prev}}function qk(n){for(let e of n.units){let t=new Set;for(let s of e.update)s.kind===u.I18nExpression&&t.add(s.i18nOwner);for(let s of e.create)switch(s.kind){case u.I18nAttributes:if(t.has(s.xref))continue;A.remove(s)}}}function Hk(n){for(let e of n.units){for(let t of e.functions)Wi(e,t.ops);Wi(e,e.create),Wi(e,e.update)}}function Wi(n,e){let t=new Map;t.set(n.xref,te(Ot));for(let s of e)switch(s.kind){case u.Variable:s.variable.kind===Qe.Context&&t.set(s.variable.view,new $n(s.xref));break;case u.Animation:case u.AnimationListener:case u.Listener:case u.TwoWayListener:Wi(n,s.handlerOps);break;case u.RepeaterCreate:s.trackByOps!==null&&Wi(n,s.trackByOps);break}n===n.job.root&&t.set(n.xref,te(Ot));for(let s of e)De(s,r=>{if(r instanceof vs){if(!t.has(r.view))throw new Error(`No context found for reference to view ${r.view} from view ${n.xref}`);return t.get(r.view)}else return r},J.None)}function jk(n){for(let e of n.units)for(let t of e.create)if(t.kind===u.Defer){if(t.resolverFn!==null)continue;if(t.ownResolverFn!==null){if(t.handle.slot===null)throw new Error("AssertionError: slot must be assigned before extracting defer deps functions");let s=e.fnName?.replace("_Template","");t.resolverFn=n.pool.getSharedFunctionReference(t.ownResolverFn,`${s}_Defer_${t.handle.slot}_DepsFn`,!1)}}}function zk(n){for(let e of n.units)GS(e.create),GS(e.update)}function GS(n){for(let e of n)(e.kind===u.Listener||e.kind===u.TwoWayListener||e.kind===u.AnimationListener)&&De(e,t=>t instanceof Ge&&t.name==="$event"?((e.kind===u.Listener||e.kind===u.AnimationListener)&&(e.consumesDollarEvent=!0),new nn(t.name)):t,J.InChildOperation)}function Wk(n){let e=new Map,t=new Map;for(let s of n.units)for(let r of s.create)switch(r.kind){case u.I18nContext:e.set(r.xref,r);break;case u.ElementStart:t.set(r.xref,r);break}dn(n,n.root,e,t)}function dn(n,e,t,s,r){let i=null,o=new Map;for(let a of e.create)switch(a.kind){case u.I18nStart:if(!a.context)throw Error("Could not find i18n context for i18n op");i={i18nBlock:a,i18nContext:t.get(a.context)};break;case u.I18nEnd:i=null;break;case u.ElementStart:if(a.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");XS(a,i.i18nContext,i.i18nBlock,r),r&&a.i18nPlaceholder.closeName&&o.set(a.xref,r),r=void 0}break;case u.ElementEnd:let l=s.get(a.xref);if(l&&l.i18nPlaceholder!==void 0){if(i===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");QS(l,i.i18nContext,i.i18nBlock,o.get(a.xref)),o.delete(a.xref)}break;case u.Projection:if(a.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");XS(a,i.i18nContext,i.i18nBlock,r),QS(a,i.i18nContext,i.i18nBlock,r),r=void 0}if(a.fallbackView!==null){let f=n.views.get(a.fallbackView);if(a.fallbackViewI18nPlaceholder===void 0)dn(n,f,t,s);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");el(n,f,a.handle.slot,a.fallbackViewI18nPlaceholder,i.i18nContext,i.i18nBlock,r),dn(n,f,t,s),tl(n,f,a.handle.slot,a.fallbackViewI18nPlaceholder,i.i18nContext,i.i18nBlock,r),r=void 0}}break;case u.ConditionalCreate:case u.ConditionalBranchCreate:case u.Template:let c=n.views.get(a.xref);if(a.i18nPlaceholder===void 0)dn(n,c,t,s);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");a.templateKind===Et.Structural?dn(n,c,t,s,a):(el(n,c,a.handle.slot,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,r),dn(n,c,t,s),tl(n,c,a.handle.slot,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,r),r=void 0)}break;case u.RepeaterCreate:if(r!==void 0)throw Error("AssertionError: Unexpected structural directive associated with @for block");let p=a.handle.slot+1,h=n.views.get(a.xref);if(a.i18nPlaceholder===void 0)dn(n,h,t,s);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");el(n,h,p,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,r),dn(n,h,t,s),tl(n,h,p,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,r),r=void 0}if(a.emptyView!==null){let f=a.handle.slot+2,g=n.views.get(a.emptyView);if(a.emptyI18nPlaceholder===void 0)dn(n,g,t,s);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");el(n,g,f,a.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,r),dn(n,g,t,s),tl(n,g,f,a.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,r),r=void 0}}break}}function XS(n,e,t,s){let{startName:r,closeName:i}=n.i18nPlaceholder,o=we.ElementTag|we.OpenTag,a=n.handle.slot;s!==void 0&&(o|=we.TemplateTag,a={element:a,template:s.handle.slot}),i||(o|=we.CloseTag),si(e.params,r,a,t.subTemplateIndex,o)}function QS(n,e,t,s){let{closeName:r}=n.i18nPlaceholder;if(r){let i=we.ElementTag|we.CloseTag,o=n.handle.slot;s!==void 0&&(i|=we.TemplateTag,o={element:o,template:s.handle.slot}),si(e.params,r,o,t.subTemplateIndex,i)}}function el(n,e,t,s,r,i,o){let{startName:a,closeName:l}=s,c=we.TemplateTag|we.OpenTag;l||(c|=we.CloseTag),o!==void 0&&si(r.params,a,o.handle.slot,i.subTemplateIndex,c),si(r.params,a,t,IE(n,i,e),c)}function tl(n,e,t,s,r,i,o){let{closeName:a}=s,l=we.TemplateTag|we.CloseTag;a&&(si(r.params,a,t,IE(n,i,e),l),o!==void 0&&si(r.params,a,o.handle.slot,i.subTemplateIndex,l))}function IE(n,e,t){for(let s of t.create)if(s.kind===u.I18nStart)return s.subTemplateIndex;return e.subTemplateIndex}function si(n,e,t,s,r){let i=n.get(e)??[];i.push({value:t,subTemplateIndex:s,flags:r}),n.set(e,i)}function Gk(n){let e=new Map,t=new Map,s=new Map;for(let o of n.units)for(let a of o.create)switch(a.kind){case u.I18nStart:e.set(a.xref,a.subTemplateIndex);break;case u.I18nContext:t.set(a.xref,a);break;case u.IcuPlaceholder:s.set(a.xref,a);break}let r=new Map,i=o=>o.usage===ai.I18nText?o.i18nOwner:o.context;
35for(let o of n.units)for(let a of o.update)if(a.kind===u.I18nExpression){let l=r.get(i(a))||0,c=e.get(a.i18nOwner)??null,p={value:l,subTemplateIndex:c,flags:we.ExpressionIndex};Xk(a,p,t,s),r.set(i(a),l+1)}}function Xk(n,e,t,s){if(n.i18nPlaceholder!==null){let r=t.get(n.context),i=n.resolutionTime===Do.Creation?r.params:r.postprocessingParams,o=i.get(n.i18nPlaceholder)||[];o.push(e),i.set(n.i18nPlaceholder,o)}n.icuPlaceholder!==null&&s.get(n.icuPlaceholder)?.expressionPlaceholders.push(e)}function Qk(n){let e=new Map;for(let t of n.units)for(let s of t.ops())if(s.kind===u.ElementStart||s.kind===u.Template){let r=s.tag??"";switch(s.namespace){case Be.SVG:r=`:${Cc}:${r}`;break;case Be.Math:r=`:${bc}:${r}`;break}e.set(s.xref,r)}for(let t of n.units)for(let s of t.create)if(s.kind===u.ExtractedAttribute&&s.i18nContext!==null&&s.expression!==null){let r=e.get(s.target)??"",i=s.expression;switch(s.securityContext){case se.HTML:i=I(d.sanitizeHtml).callFn([i]);break;case se.STYLE:i=I(d.sanitizeStyle).callFn([i]);break;case se.SCRIPT:i=I(d.sanitizeScript).callFn([i]);break;case se.URL:i=I(d.sanitizeUrl).callFn([i]);break;case se.RESOURCE_URL:i=I(d.sanitizeResourceUrl).callFn([i]);break;case se.ATTRIBUTE_NO_BINDING:i=I(d.validateAttribute).callFn([i,S(r),S(s.name)]);break}s.expression=i}}function Yk(n){for(let e of n.units){for(let t of e.functions)Gi(e,t.ops,null);Gi(e,e.create,null),Gi(e,e.update,null)}}function Gi(n,e,t){let s=new Map,r=new Map;for(let i of e)switch(i.kind){case u.Variable:switch(i.variable.kind){case Qe.Identifier:if(i.variable.local){if(r.has(i.variable.identifier))continue;r.set(i.variable.identifier,i.xref)}else if(s.has(i.variable.identifier))continue;s.set(i.variable.identifier,i.xref);break;case Qe.Alias:if(s.has(i.variable.identifier))continue;s.set(i.variable.identifier,i.xref);break;case Qe.SavedView:t={view:i.variable.view,variable:i.xref};break}break;case u.Animation:case u.AnimationListener:case u.Listener:case u.TwoWayListener:Gi(n,i.handlerOps,t);break;case u.RepeaterCreate:i.trackByOps!==null&&Gi(n,i.trackByOps,t);break}for(let i of e)i.kind===u.Listener||i.kind===u.TwoWayListener||i.kind===u.Animation||i.kind===u.AnimationListener||De(i,o=>{if(o instanceof Ge)return r.has(o.name)?new $n(r.get(o.name)):s.has(o.name)?new $n(s.get(o.name)):new Ft(new vs(n.job.root.xref),o.name);if(o instanceof Ro&&typeof o.view=="number"){if(t===null||t.view!==o.view)throw new Error(`AssertionError: no saved view ${o.view} from view ${n.xref}`);return o.view=new $n(t.variable),o}else return o},J.None);for(let i of e)Re(i,o=>{if(o instanceof Ge)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${o.name}`)})}var Kk=new Map([[se.HTML,d.sanitizeHtml],[se.RESOURCE_URL,d.sanitizeResourceUrl],[se.SCRIPT,d.sanitizeScript],[se.STYLE,d.sanitizeStyle],[se.URL,d.sanitizeUrl],[se.ATTRIBUTE_NO_BINDING,d.validateAttribute]]),Jk=new Map([[se.HTML,d.trustConstantHtml],[se.RESOURCE_URL,d.trustConstantResourceUrl]]);function Zk(n){for(let e of n.units){if(n.kind!==k.Host){for(let t of e.create)if(t.kind===u.ExtractedAttribute){let s=Jk.get(YS(t.securityContext))??null;t.trustedValueFn=s!==null?I(s):null}}for(let t of e.update)switch(t.kind){case u.Property:case u.Attribute:case u.DomProperty:case u.TwoWayProperty:let s=null;Array.isArray(t.securityContext)&&t.securityContext.length===2&&t.securityContext.includes(se.URL)&&t.securityContext.includes(se.RESOURCE_URL)?s=d.sanitizeUrlOrResourceUrl:s=Kk.get(YS(t.securityContext))??null,t.sanitizer=s!==null?I(s):null;break}}}function YS(n){if(Array.isArray(n)){if(n.length>1)throw Error("AssertionError: Ambiguous security context");return n[0]||se.NONE}return n}function e1(n){for(let e of n.units){for(let t of e.functions)KS(n,e,t.ops)&&JS(e,t.ops,te(t.currentViewName));e.create.prepend([os(e.job.allocateXrefId(),{kind:Qe.SavedView,name:null,view:e.xref},new $p,Gt.None)]);for(let t of e.create)(t.kind===u.Listener||t.kind===u.TwoWayListener||t.kind===u.Animation||t.kind===u.AnimationListener)&&KS(n,e,t.handlerOps)&&JS(e,t.handlerOps,e.xref)}}function KS(n,e,t){let s=e!==n.root;if(!s)for(let r of t)Re(r,i=>{(i instanceof Gl||i instanceof Lo)&&(s=!0)});return s}
35function JS(n,e,t){e.prepend([os(n.job.allocateXrefId(),{kind:Qe.Context,name:null,view:n.xref},new Ro(t),Gt.None)]);for(let s of e)s.kind===u.Statement&&s.statement instanceof $e&&(s.statement.value=new Ql(s.statement.value))}function t1(n){let e=new Map;for(let t of n.units){let s=0;for(let r of t.create)li(r)&&(r.handle.slot=s,e.set(r.xref,r.handle.slot),s+=r.numSlotsUsed);t.decls=s}for(let t of n.units)for(let s of t.ops())if(s.kind===u.Template||s.kind===u.ConditionalCreate||s.kind===u.ConditionalBranchCreate||s.kind===u.RepeaterCreate){let r=n.views.get(s.xref);s.decls=r.decls}}function n1(n){let e=new Set,t=new Map;for(let s of n.units)for(let r of s.ops())r.kind===u.DeclareLet&&t.set(r.xref,r),Re(r,i=>{i instanceof Lo&&e.add(i.target)});for(let s of n.units)for(let r of s.update)De(r,i=>i instanceof Mo&&!e.has(i.target)?(s1(i)||A.remove(t.get(i.target)),i.value):i,J.None)}function s1(n){let e=!1;return N(n,t=>((t instanceof ir||t instanceof Fo)&&(e=!0),t),J.None),e}function r1(n){let e=new Set;for(let t of n.units)for(let s of t.ops())Re(s,r=>{if(r instanceof ie)switch(r.operator){case C.Exponentiation:i1(r,e);break;case C.NullishCoalesce:o1(r,e);break;case C.And:case C.Or:a1(r,e)}});for(let t of n.units)for(let s of t.ops())De(s,r=>r instanceof sn?e.has(r)?r:r.expr:r,J.None)}function i1(n,e){n.lhs instanceof sn&&n.lhs.expr instanceof Qs&&e.add(n.lhs)}function o1(n,e){n.lhs instanceof sn&&(ZS(n.lhs.expr)||n.lhs.expr instanceof xn)&&e.add(n.lhs),n.rhs instanceof sn&&(ZS(n.rhs.expr)||n.rhs.expr instanceof xn)&&e.add(n.rhs)}function a1(n,e){n.lhs instanceof sn&&n.lhs.expr instanceof ie&&n.lhs.expr.operator===C.NullishCoalesce&&e.add(n.lhs)}function ZS(n){return n instanceof ie&&(n.operator===C.And||n.operator===C.Or)}function l1(n){for(let e of n.units)for(let t of e.update)if(t.kind===u.Binding)switch(t.bindingKind){case P.ClassName:if(t.expression instanceof Ie)throw new Error("Unexpected interpolation in ClassName binding");A.replace(t,DC(t.target,t.name,t.expression,t.sourceSpan));break;case P.StyleProperty:A.replace(t,IC(t.target,t.name,t.expression,t.unit,t.sourceSpan));break;case P.Property:case P.Template:t.name==="style"?A.replace(t,PC(t.target,t.expression,t.sourceSpan)):t.name==="class"&&A.replace(t,MC(t.target,t.expression,t.sourceSpan));break}}function c1(n){for(let e of n.units){e.create.prepend(Xi(e.create)),e.update.prepend(Xi(e.update));for(let t of e.functions)t.ops.prepend(Xi(t.ops))}}function Xi(n){let e=0,t=[];for(let s of n){let r=new Map;Re(s,(c,p)=>{p&J.InChildOperation||c instanceof ys&&r.set(c.xref,c)});let i=0,o=new Set,a=new Set,l=new Map;Re(s,(c,p)=>{p&J.InChildOperation||(c instanceof Nn?(o.has(c.xref)||(o.add(c.xref),l.set(c.xref,`tmp_${e}_${i++}`)),ey(l,c)):c instanceof ys&&(r.get(c.xref)===c&&(a.add(c.xref),i--),ey(l,c)))}),t.push(...Array.from(new Set(l.values())).map(c=>$t(new je(c)))),e++,s.kind===u.Listener||s.kind===u.Animation||s.kind===u.AnimationListener||s.kind===u.TwoWayListener?s.handlerOps.prepend(Xi(s.handlerOps)):s.kind===u.RepeaterCreate&&s.trackByOps!==null&&s.trackByOps.prepend(Xi(s.trackByOps))}return t}function ey(n,e){let t=n.get(e.xref);if(t===void 0)throw new Error(`Found xref with unassigned name: ${e.xref}`);e.name=t}function u1(n){for(let e of n.units)for(let t of e.create)if(t.kind===u.RepeaterCreate)if(t.track instanceof nn&&t.track.name==="$index")t.trackByFn=I(d.repeaterTrackByIndex);else if(t.track instanceof nn&&t.track.name==="$item")t.trackByFn=I(d.repeaterTrackByIdentity);else if(p1(n.root.xref,t.track))t.usesComponentInstance=!0,t.track.receiver.receiver.view===e.xref?t.trackByFn=t.track.receiver:(t.trackByFn=I(d.componentInstance).callFn([]).prop(t.track.receiver.name),t.track=t.trackByFn);else{t.track=N(t.track,r=>{if(r instanceof ir||r instanceof Fo)throw new Error("Illegal State: Pipes are not allowed in this context");return r instanceof vs?(t.usesComponentInstance=!0,new Op(r.view)):r},J.None);let s=new A;s.push($t(new $e(t.track,t.track.sourceSpan))),t.trackByOps=s}}function p1(n,e){if(!(e instanceof At)||e.args.length===0||e.args.length>2||!(e.receiver instanceof Ft&&e.receiver.receiver instanceof vs)||e.receiver.receiver.view!==n)return!1;let[t,s]=e.args;return!(t instanceof nn)||t.name!=="$index"?!1:e.args.length===1?!0:!(!(s instanceof nn)||s.name!=="$item")}function h1(n){for(let e of n.units)for(let t of e.create)t.kind===u.RepeaterCreate&&(t.track=N(t.track,s=>
35{if(s instanceof Ge){if(t.varNames.$index.has(s.name))return te("$index");if(s.name===t.varNames.$implicit)return te("$item")}return s},J.None))}function f1(n){for(let e of n.units)for(let t of e.create)t.kind===u.TwoWayListener&&De(t,s=>{if(!(s instanceof Yl))return s;let{target:r,value:i}=s;if(r instanceof Ft||r instanceof Un)return jS(r,i).or(r.set(i));if(r instanceof $n)return jS(r,i);throw new Error("Unsupported expression in two-way action binding.")},J.InChildOperation)}function d1(n){for(let e of n.units){let t=0;for(let i of e.ops())$u(i)&&(t+=m1(i));let s=i=>{kn(i)&&(i instanceof rr||(aS(i)&&(i.varOffset=t),$u(i)&&(t+=ty(i))))},r=i=>{!kn(i)||!(i instanceof rr)||(aS(i)&&(i.varOffset=t),$u(i)&&(t+=ty(i)))};for(let i of e.create)Re(i,s);for(let i of e.update)Re(i,s);for(let i of e.create)Re(i,r);for(let i of e.update)Re(i,r);e.vars=t}if(n instanceof $o)for(let e of n.units)for(let t of e.create){if(t.kind!==u.Template&&t.kind!==u.RepeaterCreate&&t.kind!==u.ConditionalCreate&&t.kind!==u.ConditionalBranchCreate)continue;let s=n.views.get(t.xref);t.vars=s.vars}}function m1(n){let e;switch(n.kind){case u.Attribute:return e=1,n.expression instanceof Ie&&!g1(n.expression)&&(e+=n.expression.expressions.length),e;case u.Property:case u.DomProperty:return e=1,n.expression instanceof Ie&&(e+=n.expression.expressions.length),e;case u.Control:return 2;case u.TwoWayProperty:return 1;case u.StyleProp:case u.ClassProp:case u.StyleMap:case u.ClassMap:return e=2,n.expression instanceof Ie&&(e+=n.expression.expressions.length),e;case u.InterpolateText:return n.interpolation.expressions.length;case u.I18nExpression:case u.Conditional:case u.DeferWhen:case u.StoreLet:return 1;case u.RepeaterCreate:return n.emptyView?1:0;default:throw new Error(`Unhandled op: ${u[n.kind]}`)}}function ty(n){switch(n.kind){case M.PureFunctionExpr:return 1+n.args.length;case M.PipeBinding:return 1+n.args.length;case M.PipeBindingVariadic:return 1+n.numArgs;case M.StoreLet:case M.ArrowFunction:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${n.constructor.name}`)}}function g1(n){return!(n.expressions.length!==1||n.strings.length!==2||n.strings[0]!==""||n.strings[1]!=="")}function v1(n){for(let e of n.units){for(let t of e.functions)Pi(t.ops);Pi(e.create),Pi(e.update);for(let t of e.create)t.kind===u.Listener||t.kind===u.Animation||t.kind===u.AnimationListener||t.kind===u.TwoWayListener?Pi(t.handlerOps):t.kind===u.RepeaterCreate&&t.trackByOps!==null&&Pi(t.trackByOps);for(let t of e.functions)Mi(t.ops,null),ny(t.ops);for(let t of e.create)t.kind===u.Listener||t.kind===u.Animation||t.kind===u.AnimationListener||t.kind===u.TwoWayListener?(Mi(t.handlerOps,nl),ny(t.handlerOps)):t.kind===u.RepeaterCreate&&t.trackByOps!==null&&Mi(t.trackByOps,nl);Mi(e.create,nl),Mi(e.update,nl)}}var He=(function(n){return n[n.None=0]="None",n[n.ViewContextRead=1]="ViewContextRead",n[n.ViewContextWrite=2]="ViewContextWrite",n[n.SideEffectful=4]="SideEffectful",n})(He||{});function nl(n){return!(n&J.InArrowFunctionOperation)}function Pi(n){let e=new Map;for(let t of n)t.kind===u.Variable&&t.flags&Gt.AlwaysInline&&(Re(t,s=>{if(kn(s)&&Qh(s)!==He.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(t.xref,t)),De(t,s=>s instanceof $n&&e.has(s.xref)?e.get(s.xref).initializer.clone():s,J.None);for(let t of e.values())A.remove(t)}function Mi(n,e){let t=new Map,s=new Map,r=new Set,i=new Map;for(let c of n){if(c.kind===u.Variable){if(t.has(c.xref)||s.has(c.xref))throw new Error(`Should not see two declarations of the same variable: ${c.xref}`);t.set(c.xref,c),s.set(c.xref,0)}i.set(c,S1(c,e)),y1(c,s,r,e)}let o=!1;for(let c of n.reversed()){let p=i.get(c);if(c.kind===u.Variable&&s.get(c.xref)===0){if(o&&p.fences&He.ViewContextWrite||p.fences&He.SideEffectful){let h=$t(c.initializer.toStmt());i.set(h,p),A.replace(c,h)}else E1(c,s),A.remove(c);i.delete(c),t.delete(c.xref),s.delete(c.xref);continue}p.fences&He.ViewContextRead&&(o=!0)}let a=[];for(let[c,p]of s){let f=!!(t.get(c).flags&Gt.AlwaysInline);p!==1||f||r.has(c)||a.push(c)}let l;for(;l=a.pop();){let c=t.get(l),p=i.get(c);if(!!(c.flags&Gt.AlwaysInline))throw new Error("AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.");for(let f=c.next;f.kind!==u.ListEnd;f=f.next){let g=i.get(f);if(g.variablesUsed.has(l)){if(!A1(c,f))break;if(w1(l,c.initializer,f,p.fences)){g.variablesUsed.delete(l);for(let m of p.variablesUsed)g.variablesUsed.add(m);g.fences|=p.fences,t.delete(l),s.delete(l),i.delete(c),A.remove(c)}break}if(!DE(g.fences,p.fences))break}}}function Qh(n){switch(n.kind){case M.NextContext:return He.ViewContextRead|He.ViewContextWrite;case M.RestoreView:return He.ViewContextRead|He.ViewContextWrite|He.SideEffectful;case M.StoreLet:return He.SideEffectful;case M.Reference:case M.ContextLetReference:return He.ViewContextRead;default:return He.None}}function S1(n,e){let t=He.None,s=new Set;return Re(n,(r,i)=>{!kn(r)||e!==null&&!e(i)||(r.kind===M.ReadVariable?s.add(r.xref):t|=Qh(r))}),{fences:t,variablesUsed:s}}function y1(n,e,t,s){Re(n,(r,i)=>{if(!kn(r)||s!==null&&!s(i)||r.kind!==M.ReadVariable)return;let o=e.get(r.xref);o!==void 0&&(e.set(r.xref,o+1),i&J.InChildOperation&&t.add(r.xref))})}function E1(n,e){Re(n,t=>{if(!kn(t)||t.kind!==M.ReadVariable)return;let s=e.get(t.xref);if(s!==void 0){if(s===0)throw new Error(`Inaccurate variable count: ${t.xref} - found another read but count is already 0`);e.set(t.xref,s-1)}})}function DE(n,e){if(n&He.ViewContextWrite){if(e&He.ViewContextRead)return!1}else if(n&He.ViewContextRead&&e&He.ViewContextWrite)return!1;return!0}function w1(n,e,t,s){let r=!1,i=!0;return De(t,(o,a)=>
35{if(!kn(o)||r||!i)return o;if(a&J.InChildOperation&&s&He.ViewContextRead)return o;switch(o.kind){case M.ReadVariable:if(o.xref===n)return r=!0,e;break;default:let l=Qh(o);i=i&&DE(l,s);break}return o},J.None),r}function A1(n,e){switch(n.variable.kind){case Qe.Identifier:return n.initializer instanceof nn&&n.initializer.name===Ot;case Qe.Context:return e.kind===u.Variable;default:return!0}}function ny(n){let e=n.head.next,t=n.tail.prev;e!==null&&t!==null&&e.next===t&&e.kind===u.Statement&&e.statement instanceof et&&e.statement.expr instanceof Ro&&t.kind===u.Statement&&t.statement instanceof $e&&t.statement.value instanceof Ql&&(A.remove(e),t.statement.value=t.statement.value.expr)}function x1(n){for(let e of n.units){let t=null,s=null;for(let r of e.create)switch(r.kind){case u.I18nStart:t=r;break;case u.I18nEnd:t=null;break;case u.IcuStart:t===null&&(s=n.allocateXrefId(),A.insertBefore(xc(s,r.message,void 0,null),r));break;case u.IcuEnd:s!==null&&(A.insertAfter(_c(s,null),r),s=null);break}}}function _1(n){for(let e of n.units){for(let t of e.create)t.kind!==u.Animation&&t.kind!==u.AnimationListener&&t.kind!==u.Listener&&t.kind!==u.TwoWayListener&&sy(e,t);for(let t of e.update)sy(e,t)}}function sy(n,e){De(e,(t,s)=>{if(!(t instanceof lr)||s&J.InChildOperation)return t;if(Array.isArray(t.body))throw new Error("AssertionError: unexpected multi-line arrow function");let r=new Up(t.params,t.body);return n.functions.add(r),r},J.None)}var C1=new Set(["formField"]);function b1(n){for(let e of n.units)T1(e)}function T1(n){for(let e of n.update)e.kind===u.Property&&C1.has(e.name)&&D1(n,e)}var k1=new Set([u.Container,u.ContainerStart,u.ContainerEnd,u.Element,u.ElementStart,u.ElementEnd,u.Template]);function N1(n){return k1.has(n.kind)}function I1(n,e){let t=null;for(let s of n.create)!N1(s)||s.xref!==e||(t=s);return t}function D1(n,e){let t=I1(n,e.target);if(t===null)throw new Error(`No create instruction found for control target ${e.target}`);let s=i2(e.sourceSpan);A.insertAfter(s,t),A.insertAfter($C(e.target,e.sourceSpan),e)}var P1=[{kind:k.Tmpl,fn:YT},{kind:k.Both,fn:c0},{kind:k.Host,fn:cb},{kind:k.Tmpl,fn:MT},{kind:k.Tmpl,fn:s0},{kind:k.Tmpl,fn:x1},{kind:k.Both,fn:D2},{kind:k.Both,fn:l1},{kind:k.Both,fn:g2},{kind:k.Tmpl,fn:b1},{kind:k.Both,fn:T2},{kind:k.Both,fn:f2},{kind:k.Tmpl,fn:I2},{kind:k.Both,fn:RT},{kind:k.Tmpl,fn:$k},{kind:k.Both,fn:y2},{kind:k.Both,fn:QT},{kind:k.Tmpl,fn:E2},{kind:k.Tmpl,fn:ZT},{kind:k.Tmpl,fn:P2},{kind:k.Tmpl,fn:n0},{kind:k.Both,fn:_1},{kind:k.Both,fn:o0},{kind:k.Tmpl,fn:ib},{kind:k.Tmpl,fn:rb},{kind:k.Tmpl,fn:ob},{kind:k.Tmpl,fn:e1},{kind:k.Both,fn:a2},{kind:k.Both,fn:zk},{kind:k.Tmpl,fn:h1},{kind:k.Tmpl,fn:Vk},{kind:k.Both,fn:Yk},{kind:k.Tmpl,fn:M2},{kind:k.Tmpl,fn:f1},{kind:k.Tmpl,fn:u1},{kind:k.Both,fn:Hk},{kind:k.Both,fn:Zk},{kind:k.Tmpl,fn:DT},{kind:k.Both,fn:O2},{kind:k.Both,fn:r1},{kind:k.Both,fn:c1},{kind:k.Both,fn:v1},{kind:k.Both,fn:n1},{kind:k.Tmpl,fn:IT},{kind:k.Tmpl,fn:N2},{kind:k.Tmpl,fn:qk},{kind:k.Tmpl,fn:p2},{kind:k.Tmpl,fn:c2},{kind:k.Tmpl,fn:t1},{kind:k.Tmpl,fn:Wk},{kind:k.Tmpl,fn:Gk},{kind:k.Tmpl,fn:Z2},{kind:k.Tmpl,fn:CT},{kind:k.Tmpl,fn:Qk},{kind:k.Tmpl,fn:ab},{kind:k.Both,fn:_2},{kind:k.Tmpl,fn:Uk},{kind:k.Both,fn:d1},{kind:k.Tmpl,fn:sb},{kind:k.Both,fn:FT},{kind:k.Tmpl,fn:jk},{kind:k.Tmpl,fn:$T},{kind:k.Tmpl,fn:VT},{kind:k.Tmpl,fn:B2},{kind:k.Tmpl,fn:h2},{kind:k.Tmpl,fn:HT},{kind:k.Both,fn:i0},{kind:k.Both,fn:Mk},{kind:k.Both,fn:S2}];function PE(n,e){for(let t of P1)(t.kind===e||t.kind===k.Both)&&t.fn(n)}function M1(n,e){let t=LE(n.root);return ME(n.root,e),t}function ME(n,e){for(let t of n.job.units){if(t.parent!==n.xref)continue;ME(t,e);let s=LE(t);e.statements.push(s.toDeclStmt(s.name))}}function LE(n){if(n.fnName===null)throw new Error(`AssertionError: view ${n.xref} is unnamed`);let e=[];for(let i of n.create){if(i.kind!==u.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${u[i.kind]}`);e.push(i.statement)}let t=[];for(let i of n.update){if(i.kind!==u.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${u[i.kind]}`);t.push(i.statement)}let s=hc(1,e),r=hc(2,t);return ps([new Oe(ii,Gs),new Oe(Ot,wt)],[...s,...r],void 0,void 0,n.fnName)}function hc(n,e){return e.length===0?[]:[yc(new ie(C.BitwiseAnd,te(ii),S(n)),e)]}function L1(n){if(n.root.fnName===null)throw new Error("AssertionError: host binding function is unnamed");let e=[];for(let i of n.root.create){if(i.kind!==u.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${u[i.kind]}`);e.push(i.statement)}let t=[];for(let i of n.root.update){if(i.kind!==u.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${u[i.kind]}`);t.push(i.statement)}if(e.length===0&&t.length===0)return null;let s=hc(1,e),r=hc(2,t);return ps([new Oe(ii,Gs),new Oe(Ot,wt)],[...s,...r],void 0,void 0,n.root.fnName)}var zs=new ni,Ws="ng-template",R1="animate.";function ul(n){return n instanceof ft}function F1(n){return ul(n)&&n.nodes.length===1&&n.nodes[0]instanceof Ul}function B1(n,e,t,s,r,i,o,a,l,c){let p=new $o(n,t,s,r,i,o,a,l,c);return qn(p.root,e),p}function O1(n,e,t){let s=new nc(n.componentName,t,gt.DomOnly);for(let r of n.properties??[]){let i=P.Property;r.name.startsWith("attr.")&&(r.name=r.name.substring(5),i=P.Attribute),r.isLegacyAnimation&&(i=P.LegacyAnimation),r.isAnimation&&(i=P.Animation);let o=e.calcPossibleSecurityContexts(n.componentSelector,r.name,i===P.Attribute).filter(a=>a!==se.NONE);$1(s,r,i,o)}for(let[r,i]of Object.entries(n.attributes)??[]){let o=e.calcPossibleSecurityContexts(n.componentSelector,r,!0).filter(a=>a!==se.NONE);U1(s,r,i,o)}for(let r of n.events??[])V1(s,r);return s}function $1(n,e,t,s){let r,i=e.expression.ast;i instanceof Yo?r=new Ie(i.strings,i.expressions.map(o=>X(o,n,e.sourceSpan)),[]):r=X(i,n,e.sourceSpan),n.root.update.push(sr(n.root.xref,t,e.name,r,null,s,!1,!1,null,null,e.sourceSpan))}function U1(n,e,t,s){let r=sr(n.root.xref,P.Attribute,e,t,null,s,!0,!1,null,null,t.sourceSpan);n.root.update.push(r)}function V1(n,e){let t;if(e.type===ht.Animation)t=lE(n.root.xref,new tt,e.name,null,jo(n.root,e.handler,e.handlerSpan),e.name.endsWith("enter")?"enter":"leave",e.targetOrPhase,!0,e.sourceSpan);else{let[s,r]=e.type!==ht.LegacyAnimation?[null,e.targetOrPhase]:[e.targetOrPhase,null];t=Wh(n.root.xref,new tt,e.name,null,jo(n.root,e.handler,e.handlerSpan),s,r,!0,e.sourceSpan)}n.root.create.push(t)}function qn(n,e){for(let t of e)if(t instanceof bn)q1(n,t);else if(t instanceof Lt)H1(n,t);else if(t instanceof Qr)j1(n,t);else if(t instanceof Bs)RE(n,t,null);else if(t instanceof Wr)FE(n,t,null);else if(t instanceof Ol)z1(n,t);else if(t instanceof Bl)W1(n,t);else if(t instanceof tr)G1(n,t);else if(t instanceof My)Q1(n,t);else if(t instanceof Xr)Y1(n,t);else if(t instanceof Fh)J1(n,t);else if(!(t instanceof qi))throw new Error(`Unsupported template node: ${t.constructor.name}`)}function q1(n,e){if(e.i18n!==void 0&&!(e.i18n instanceof ft||e.i18n instanceof fs))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let t=n.job.allocateXrefId(),[s,r]=ot(e.name),i=VC(r,t,dE(s),e.i18n instanceof fs?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);n.create.push(i),eN(n,i,e),$E(i,e);let o=null;e.i18n instanceof ft&&(o=n.job.allocateXrefId(),n.create.push(xc(o,e.i18n,void 0,e.startSourceSpan))),qn(n,e.children);let a=HC(t,e.endSourceSpan??e.startSourceSpan);n.create.push(a),o!==null&&A.insertBefore(_c(o,e.endSourceSpan??e.startSourceSpan),a)}function H1(n,e){if(e.i18n!==void 0&&!(e.i18n instanceof ft||e.i18n instanceof fs))throw Error(`Unhandled i18n metadata type for template: ${e.i18n.constructor.name}`);let t=n.job.allocateView(n.xref),s=e.tagName,r="";e.tagName&&([r,s]=ot(e.tagName));let i=e.i18n instanceof fs?e.i18n:void 0,o=dE(r),a=s===null?"":x2(s,o),l=Z1(e)?Et.NgTemplate:Et.Structural,c=rE(t.xref,l,s,a,o,i,e.startSourceSpan,e.sourceSpan);n.create.push(c),tN(n,c,e,l),$E(c,e),qn(t,e.children);for(let{name:p,value:h}of e.variables)t.contextVariables.set(p,h!==""?h:"$implicit");if(l===Et.NgTemplate&&e.i18n instanceof ft){let p=n.job.allocateXrefId();A.insertAfter(xc(p,e.i18n,void 0,e.startSourceSpan),t.create.head),A.insertBefore(_c(p,e.endSourceSpan??e.startSourceSpan),t.create.tail)}}function j1(n,e){if(e.i18n!==void 0&&!(e.i18n instanceof fs))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let t=null;e.children.some(i=>!(i instanceof wc)&&(!(i instanceof Bs)||i.value.trim().length>0))&&(t=n.job.allocateView(n.xref),qn(t,e.children));let s=n.job.allocateXrefId(),r=KC(s,e.selector,e.i18n,t?.xref??null,e.sourceSpan);for(let i of e.attributes){let o=zs.securityContext(e.name,i.name,!0);n.update.push(sr(r.xref,P.Attribute,i.name,S(i.value),null,o,!0,!1,null,Bn(i.i18n),i.sourceSpan))}n.create.push(r)}function RE(n,e,t){n.create.push(aE(n.job.allocateXrefId(),e.value,t,e.sourceSpan))}function FE(n,e,t){let s=e.value;if(s instanceof yt&&(s=s.ast),!(s instanceof Yo))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${s.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof On))throw Error(`Unhandled i18n metadata type for text interpolation: ${e.i18n?.constructor.name}`);let r=e.i18n instanceof On?e.i18n.children.filter(o=>o instanceof Co).map(o=>o.name):[];if(r.length>0&&r.length!==s.expressions.length)throw Error(`Unexpected number of i18n placeholders (${s.expressions.length}) for BoundText with ${s.expressions.length} expressions`);let i=n.job.allocateXrefId();n.create.push(aE(i,"",t,e.sourceSpan)),n.update.push(TC(i,new Ie(s.strings,s.expressions.map(o=>X(o,n.job,null)),r),e.sourceSpan))}function z1(n,e){let t=null,s=[];for(let r=0;r<e.branches.length;r++){let i=e.branches[r],o=n.job.allocateView(n.xref),a=fc(n,o.xref,i);i.expressionAlias!==null&&o.contextVariables.set(i.expressionAlias.name,pE);let l;if(i.i18n!==void 0){if(!(i.i18n instanceof ds))throw Error(`Unhandled i18n metadata type for if block: ${i.i18n?.constructor.name}`);l=i.i18n}let p=(r===0?iE:oE)(o.xref,Et.Block,a,"Conditional",Be.HTML,l,i.startSourceSpan,i.sourceSpan);n.create.push(p),t===null&&(t=o.xref);let h=i.expression?X(i.expression,n.job,null):null,f=new Jl(h,p.xref,p.handle,i.expressionAlias);s.push(f),qn(o,i.children)}n.update.push(tE(t,null,s,e.sourceSpan))}function W1(n,e){if(e.groups.length===0)return;let t=null,s=[];for(let r=0;r<e.groups.length;r++){let i=e.groups[r],o=n.job.allocateView(n.xref),a=fc(n,o.xref,i),l;if(i.i18n!==void 0){if(!(i.i18n instanceof ds))throw Error(`Unhandled i18n metadata type for switch block: ${i.i18n?.constructor.name}`);l=i.i18n}let p=(r===0?iE:oE)(o.xref,Et.Block,a,"Case",Be.HTML,l,i.startSourceSpan,i.sourceSpan);n.create.push(p),t===null&&(t=o.xref);for(let h of i.cases){let f=h.expression?X(h.expression,n.job,e.
35startSourceSpan):null,g=new Jl(f,p.xref,p.handle);s.push(g)}qn(o,i.children)}n.update.push(tE(t,X(e.expression,n.job,null),s,e.sourceSpan))}function sl(n,e,t,s,r){if(t!==void 0&&!(t instanceof ds))throw Error("Unhandled i18n metadata type for defer block");if(s===void 0)return null;let i=n.job.allocateView(n.xref);qn(i,s);let o=rE(i.xref,Et.Block,null,`Defer${e}`,Be.HTML,t,r,r);return n.create.push(o),o}function G1(n,e){let t=null;if(n.job.deferMeta.mode===0){if(!n.job.deferMeta.blocks.has(e))throw new Error("AssertionError: unable to find a dependency function for this deferred block");t=n.job.deferMeta.blocks.get(e)??null}let s=sl(n,"",e.i18n,e.children,e.sourceSpan),r=sl(n,"Loading",e.loading?.i18n,e.loading?.children,e.loading?.sourceSpan),i=sl(n,"Placeholder",e.placeholder?.i18n,e.placeholder?.children,e.placeholder?.sourceSpan),o=sl(n,"Error",e.error?.i18n,e.error?.children,e.error?.sourceSpan),a=n.job.allocateXrefId(),l=JC(a,s.xref,s.handle,t,n.job.allDeferrableDepsFn,e.sourceSpan);l.placeholderView=i?.xref??null,l.placeholderSlot=i?.handle??null,l.loadingSlot=r?.handle??null,l.errorSlot=o?.handle??null,l.placeholderMinimumTime=e.placeholder?.minimumTime??null,l.loadingMinimumTime=e.loading?.minimumTime??null,l.loadingAfterTime=e.loading?.afterTime??null,l.flags=X1(e),n.create.push(l);let c=[],p=[];zu("hydrate",e.hydrateTriggers,c,p,n,a),zu("none",e.triggers,c,p,n,a),zu("prefetch",e.prefetchTriggers,c,p,n,a),c.some(f=>f.modifier==="none")||p.some(f=>f.modifier==="none")||c.push(ns(a,{kind:Se.Idle},"none",null)),n.create.push(c),n.update.push(p)}function X1(n){return Object.keys(n.hydrateTriggers).length>0?1:null}function zu(n,e,t,s,r,i){if(e.idle!==void 0){let o=ns(i,{kind:Se.Idle},n,e.idle.sourceSpan);t.push(o)}if(e.immediate!==void 0){let o=ns(i,{kind:Se.Immediate},n,e.immediate.sourceSpan);t.push(o)}if(e.timer!==void 0){let o=ns(i,{kind:Se.Timer,delay:e.timer.delay},n,e.timer.sourceSpan);t.push(o)}if(e.hover!==void 0){let o=ns(i,{kind:Se.Hover,targetName:e.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},n,e.hover.sourceSpan);t.push(o)}if(e.interaction!==void 0){let o=ns(i,{kind:Se.Interaction,targetName:e.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},n,e.interaction.sourceSpan);t.push(o)}if(e.viewport!==void 0){let o=ns(i,{kind:Se.Viewport,targetName:e.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null,options:e.viewport.options?X(e.viewport.options,r.job,e.viewport.sourceSpan):null},n,e.viewport.sourceSpan);t.push(o)}if(e.never!==void 0){let o=ns(i,{kind:Se.Never},n,e.never.sourceSpan);t.push(o)}if(e.when!==void 0){if(e.when.value instanceof Yo)throw new Error("Unexpected interpolation in defer block when trigger");let o=FC(i,X(e.when.value,r.job,e.when.sourceSpan),n,e.when.sourceSpan);s.push(o)}}function Q1(n,e){if(e.i18n instanceof ft&&F1(e.i18n)){let t=n.job.allocateXrefId();n.create.push(t2(t,e.i18n,Fy(e.i18n).name,null));for(let[s,r]of Object.entries(E(E({},e.vars),e.placeholders)))r instanceof Wr?FE(n,r,s):RE(n,r,s);n.create.push(n2(t))}else throw Error(`Unhandled i18n metadata type for ICU: ${e.i18n?.constructor.name}`)}function Y1(n,e){let t=n.job.allocateView(n.xref),s=`\u0275$index_${t.xref}`,r=`\u0275$count_${t.xref}`,i=new Set;t.contextVariables.set(e.item.name,e.item.value);for(let _ of e.contextVariables)_.value==="$index"&&i.add(_.name),_.name==="$index"?t.contextVariables.set("$index",_.value).set(s,_.value):_.name==="$count"?t.contextVariables.set("$count",_.value).set(r,_.value):t.aliases.add({kind:Qe.Alias,name:null,identifier:_.name,expression:K1(_,s,r)});let o=Ve(e.trackBy.span,e.sourceSpan),a=X(e.trackBy,n.job,o);qn(t,e.children);let l=null,c=null;e.empty!==null&&(l=n.job.allocateView(n.xref),qn(l,e.empty.children),c=fc(n,l.xref,e.empty));let p={$index:i,$implicit:e.item.name};if(e.i18n!==void 0&&!(e.i18n instanceof ds))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(e.empty?.i18n!==void 0&&!(e.empty.i18n instanceof ds))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let h=e.i18n,f=e.empty?.i18n,g=fc(n,t.xref,e),m=qC(t.xref,l?.xref??null,g,a,p,c,h,f,e.startSourceSpan,e.sourceSpan);n.create.push(m);let y=X(e.expression,n.job,Ve(e.expression.span,e.sourceSpan)),x=RC(m.xref,m.handle,y,e.sourceSpan);n.update.push(x)}function K1(n,e,t){switch(n.value){case"$index":return new Ge(e);case"$count":return new Ge(t);case"$first":return new Ge(e).identical(S(0));case"$last":return new Ge(e).identical(new Ge(t).minus(S(1)));case"$even":return new Ge(e).modulo(S(2)).identical(S(0));case"$odd":return new Ge(e).modulo(S(2)).notIdentical(S(0));default:throw new Error(`AssertionError: unknown @for loop variable ${n.value}`)}}function J1(n,e){let t=n.job.allocateXrefId();n.create.push(ZC(t,e.name,e.sourceSpan)),n.update.push(OC(t,e.name,X(e.value,n.job,e.valueSpan),e.sourceSpan))}function X(n,e,t){if(n instanceof yt)return X(n.ast,e,t);if(n instanceof yn)return n.receiver instanceof Cn?new Ge(n.name):new Ft(X(n.receiver,e,t),n.name,null,Ve(n.span,t));if(n instanceof jr){if(n.receiver instanceof Cn)throw new Error("Unexpected ImplicitReceiver");return new At(X(n.receiver,e,t),n.args.map(s=>X(s,e,t)),void 0,Ve(n.span,t))}else{if(n instanceof vt)return S(n.value,void 0,Ve(n.span,t));if(n instanceof Fr)switch(n.operator){case"+":return new Qs(Yi.Plus,X(n.expr,e,t),void 0,Ve(n.span,t));case"-":return new Qs(Yi.Minus,X(n.expr,e,t),void 0,Ve(n.span,t));default:throw new Error(`AssertionError: unknown unary operator ${n.operator}`)}else if(n instanceof at){let s=w2.get(n.operation);if(s===void 0)throw new Error(`AssertionError: unknown binary operator ${n.operation}`);return new ie(s,X(n.left,e,t),X(n.right,e,t),void 0,Ve(n.span,t))}else{if(n instanceof ro)return new vs(e.root.xref);if(n instanceof Zs)return new Un(X(n.receiver,e,t),X(n.key,e,t),void 0,Ve(n.span,t));if(n instanceof Hr)throw new Error("AssertionError: Chain in unknown context");if(n instanceof er){let s=n.keys.map((r,i)=>{let o=X(n.values[i],e,t);return r.kind==="spread"?new us(o):new Vr(r.key,o,r.quoted)});return new rn(s,void 0,Ve(n.span,t))}else{if(n instanceof ao)return new _n(n.expressions.map(s=>X(s,e,t)));if(n instanceof Cl)return new xn(X(n.condition,e,t),X(n.trueExp,e,t),X(n.falseExp,e,t),void 0,Ve(n.span,t));if(n instanceof po)return X(n.expression,e,t);if(n instanceof bl)return new ir(e.allocateXrefId(),new tt,n.name,[X(n.exp,e,t),...n.args.map(s=>X(s,e,t))]);if(n instanceof oo)return new Zr(X(n.receiver,e,t),X(n.key,e,t),Ve(n.span,t));if(n instanceof io)return new Jr(X(n.receiver,e,t),n.name);if(n instanceof kl)return new or(X(n.receiver,e,t),n.args.map(s=>X(s,e,t)));if(n instanceof rt)return new Bo(Ve(n.span,t));if(n instanceof lo)return $x(X(n.expression,e,t),Ve(n.span,t));if(n instanceof co)return Qo(X(n.expression,e,t));if(n instanceof uo)return new gl(X(n.expression,e,t),void 0,Ve(n.span,t));if(n instanceof fo)return ry(n,e,t);if(n instanceof ho)return new Ki(X(n.tag,e,t),ry(n.template,e,t),void 0,Ve(n.span,t));if(n instanceof mo)return new sn(X(n.expression,e,t),void 0,Ve(n.span,t));if(n instanceof Dl)return new Ur(n.body,n.flags,t);
35if(n instanceof Tl)return new Ys(X(n.expression,e,t));if(n instanceof Il)return sN(Bt(n.parameters.map(s=>new Oe(s.name,wt)),X(n.body,e,t)));throw new Error(`Unhandled expression type "${n.constructor.name}" in file "${t?.start.file.url}"`)}}}}function ry(n,e,t){return new Zi(n.elements.map(s=>new vl(s.text,Ve(s.span,t))),n.expressions.map(s=>X(s,e,t)),Ve(n.span,t))}function hh(n,e,t,s){let r;return e instanceof Yo?r=new Ie(e.strings,e.expressions.map(i=>X(i,n,null)),Object.keys(Bn(t)?.placeholders??{})):e instanceof ye?r=X(e,n,null):r=S(e),r}var BE=new Map([[oe.Property,P.Property],[oe.TwoWay,P.TwoWayProperty],[oe.Attribute,P.Attribute],[oe.Class,P.ClassName],[oe.Style,P.StyleProperty],[oe.LegacyAnimation,P.LegacyAnimation],[oe.Animation,P.Animation]]);function Z1(n){return ot(n.tagName??"")[1]===Ws}function Bn(n){if(n==null)return null;if(!(n instanceof ft))throw Error(`Expected i18n meta to be a Message, but got: ${n.constructor.name}`);return n}function eN(n,e,t){let s=new Array,r=new Set;for(let i of t.attributes){let[o,a]=ot(t.name),l=o;if(!o)switch(e.namespace){case Be.SVG:l=Cc;break;case Be.Math:l=bc;break}let c=zs.securityContext(l?`:${l}:${a}`:a,i.name,!0);s.push(sr(e.xref,P.Attribute,i.name,hh(n.job,i.value,i.i18n),null,c,!0,!1,null,Bn(i.i18n),i.sourceSpan)),i.i18n&&r.add(i.name)}for(let i of t.inputs)r.has(i.name)&&console.error(`On component ${n.job.componentName}, the binding ${i.name} is both an i18n attribute and a property. You may want to remove the property binding. This will become a compilation error in future versions of Angular.`),s.push(sr(e.xref,BE.get(i.type),i.name,hh(n.job,zo(i.value),i.i18n),i.unit,i.securityContext,!1,!1,null,Bn(i.i18n)??null,i.sourceSpan));n.create.push(s.filter(i=>i?.kind===u.ExtractedAttribute)),n.update.push(s.filter(i=>i?.kind===u.Binding));for(let i of t.outputs){if(i.type===ht.LegacyAnimation&&i.phase===null)throw Error("Animation listener should have a phase");i.type===ht.TwoWay?n.create.push(cE(e.xref,e.handle,i.name,e.tag,OE(n,i.handler,i.handlerSpan),i.sourceSpan)):i.type===ht.Animation?n.create.push(lE(e.xref,e.handle,i.name,e.tag,jo(n,i.handler,i.handlerSpan),i.name.endsWith("enter")?"enter":"leave",i.target,!1,i.sourceSpan)):n.create.push(Wh(e.xref,e.handle,i.name,e.tag,jo(n,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))}s.some(i=>i?.i18nMessage)!==null&&n.create.push(uE(n.job.allocateXrefId(),new tt,e.xref))}function tN(n,e,t,s){let r=new Array;for(let i of t.templateAttrs)if(i instanceof Gr){let o=zs.securityContext(Ws,i.name,!0);r.push(rl(n,e.xref,oe.Attribute,i.name,i.value,null,o,!0,s,Bn(i.i18n),i.sourceSpan))}else r.push(rl(n,e.xref,i.type,i.name,zo(i.value),i.unit,i.securityContext,!0,s,Bn(i.i18n),i.sourceSpan));for(let i of t.attributes){let o=zs.securityContext(Ws,i.name,!0);r.push(rl(n,e.xref,oe.Attribute,i.name,i.value,null,o,!1,s,Bn(i.i18n),i.sourceSpan))}for(let i of t.inputs)r.push(rl(n,e.xref,i.type,i.name,zo(i.value),i.unit,i.securityContext,!1,s,Bn(i.i18n),i.sourceSpan));n.create.push(r.filter(i=>i?.kind===u.ExtractedAttribute)),n.update.push(r.filter(i=>i?.kind===u.Binding));for(let i of t.outputs){if(i.type===ht.LegacyAnimation&&i.phase===null)throw Error("Animation listener should have a phase");if(s===Et.NgTemplate&&(i.type===ht.TwoWay?n.create.push(cE(e.xref,e.handle,i.name,e.tag,OE(n,i.handler,i.handlerSpan),i.sourceSpan)):n.create.push(Wh(e.xref,e.handle,i.name,e.tag,jo(n,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))),s===Et.Structural&&i.type!==ht.LegacyAnimation){let o=zs.securityContext(Ws,i.name,!1);n.create.push(Xt(e.xref,P.Property,null,i.name,null,null,null,o))}}r.some(i=>i?.i18nMessage)!==null&&n.create.push(uE(n.job.allocateXrefId(),new tt,e.xref))}function rl(n,e,t,s,r,i,o,a,l,c,p){let h=typeof r=="string";if(l===Et.Structural){if(!a)switch(t){case oe.Property:case oe.Class:case oe.Style:return Xt(e,P.Property,null,s,null,null,c,o);case oe.TwoWay:return Xt(e,P.TwoWayProperty,null,s,null,null,c,o)}if(!h&&(t===oe.Attribute||t===oe.LegacyAnimation||t===oe.Animation))return null}let f=BE.get(t);return l===Et.NgTemplate&&(t===oe.Class||t===oe.Style||t===oe.Attribute&&!h)&&(f=P.Property),sr(e,f,s,hh(n.job,r,c),i,o,h,a,l,c,p)}function jo(n,e,t){e=zo(e);let s=new Array,r=e instanceof Hr?e.expressions:[e];if(r.length===0)throw new Error("Expected listener to have non-empty expression list.");let i=r.map(a=>X(a,n.job,t)),o=i.pop();return s.push(...i.map(a=>
35$t(new et(a,a.sourceSpan)))),s.push($t(new $e(o,o.sourceSpan))),s}function OE(n,e,t){e=zo(e);let s=new Array;if(e instanceof Hr)if(e.expressions.length===1)e=e.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let r=X(e,n.job,t),i=new Ge("$event"),o=new Yl(r,i);return s.push($t(new et(o))),s.push($t(new $e(i))),s}function zo(n){return n instanceof yt?n.ast:n}function $E(n,e){nN(n.localRefs);for(let{name:t,value:s}of e.references)n.localRefs.push({name:t,target:s})}function nN(n){if(!Array.isArray(n))throw new Error("AssertionError: expected an array")}function Ve(n,e){if(e===null)return null;let t=e.start.moveBy(n.start),s=e.start.moveBy(n.end),r=e.fullStart.moveBy(n.start);return new $(t,s,r)}function fc(n,e,t){let s=null;for(let r of t.children)if(!(r instanceof wc||r instanceof Fh)){if(s!==null)return null;if(r instanceof bn||r instanceof Lt&&r.tagName!==null)s=r;else return null}if(s!==null){for(let i of s.attributes)if(!i.name.startsWith(R1)){let o=zs.securityContext(Ws,i.name,!0);n.update.push(sr(e,P.Attribute,i.name,S(i.value),null,o,!0,!1,null,Bn(i.i18n),i.sourceSpan))}for(let i of s.inputs)if(i.type!==oe.LegacyAnimation&&i.type!==oe.Animation&&i.type!==oe.Attribute){let o=zs.securityContext(Ws,i.name,!0);n.create.push(Xt(e,P.Property,null,i.name,null,null,null,o))}let r=s instanceof bn?s.name:s.tagName;return r===Ws?null:r}return null}function sN(n){let e=new Set(n.params.map(t=>t.name));return N(n,t=>{if(t instanceof lr)for(let s of t.params)e.add(s.name);else if(t instanceof Ge&&e.has(t.name))return te(t.name);return t},J.None)}var rN=!1;function iN(){return rN}function dc(n,e){return yc(te(ii).bitwiseAnd(S(n),null),e)}function oN(n){return(n.descendants?1:0)|(n.static?2:0)|(n.emitDistinctChangesOnly?4:0)}function aN(n,e){if(Array.isArray(n.predicate)){let t=[];return n.predicate.forEach(s=>{let r=s.split(",").map(i=>S(i.trim()));t.push(...r)}),e.getConstLiteral(me(t),!0)}else switch(n.predicate.forwardRef){case 0:case 2:return n.predicate.expression;case 1:return I(d.resolveForwardRef).callFn([n.predicate.expression])}}function UE(n,e,t){let s=[];return t!==void 0&&s.push(...t),n.isSignal&&s.push(new Ft(te(Ot),n.propertyName)),s.push(aN(n,e),S(oN(n))),n.read&&s.push(n.read),s}var Yh=Symbol("queryAdvancePlaceholder");function VE(n){let e=[],t=0,s=()=>{t>0&&(e.unshift(I(d.queryAdvance).callFn(t===1?[]:[S(t)]).toStmt()),t=0)};for(let r=n.length-1;r>=0;r--){let i=n[r];i===Yh?t++:(s(),e.unshift(i))}return s(),e}function lN(n,e,t){let s=[],r=[],i=By(c=>r.push(c),Oh),o=null,a=null;
35n.forEach(c=>{let p=UE(c,e);if(c.isSignal?(o??=I(d.viewQuerySignal),o=o.callFn(p)):(a??=I(d.viewQuery),a=a.callFn(p)),c.isSignal){r.push(Yh);return}let h=i(),f=I(d.loadQuery).callFn([]),g=I(d.queryRefresh).callFn([h.set(f)]),m=te(Ot).prop(c.propertyName).set(c.first?h.prop("first"):h);r.push(g.and(m).toStmt())}),o!==null&&s.push(new et(o)),a!==null&&s.push(new et(a));let l=t?`${t}_Query`:null;return ps([new Oe(ii,Gs),new Oe(Ot,wt)],[dc(1,s),dc(2,VE(r))],tn,null,l)}function cN(n,e,t){let s=[],r=[],i=By(c=>r.push(c),Oh),o=null,a=null;for(let c of n){let p=UE(c,e,[te("dirIndex")]);if(c.isSignal?(o??=I(d.contentQuerySignal),o=o.callFn(p)):(a??=I(d.contentQuery),a=a.callFn(p)),c.isSignal){r.push(Yh);continue}let h=i(),f=I(d.loadQuery).callFn([]),g=I(d.queryRefresh).callFn([h.set(f)]),m=te(Ot).prop(c.propertyName).set(c.first?h.prop("first"):h);r.push(g.and(m).toStmt())}o!==null&&s.push(new et(o)),a!==null&&s.push(new et(a));let l=t?`${t}_ContentQueries`:null;return ps([new Oe(ii,Gs),new Oe(Ot,wt),new Oe("dirIndex",Gs)],[dc(1,s),dc(2,VE(r))],tn,null,l)}var fh=class extends _b{constructor(){super(ih)}parse(e,t,s){return super.parse(e,t,s)}},il=".",uN="attr",Wu="animate",pN="class",hN="style",fN="*",Gu="animate-",dh=class{_exprParser;_schemaRegistry;errors;constructor(e,t,s){this._exprParser=e,this._schemaRegistry=t,this.errors=s}createBoundHostProperties(e,t){let s=[];for(let r of Object.keys(e)){let i=e[r];typeof i=="string"?this.parsePropertyBinding(r,i,!0,!1,t,t.start.offset,void 0,[],s,t):this._reportError(`Value of the host property binding "${r}" needs to be a string representing an expression but got "${i}" (${typeof i})`,t)}return s}createDirectiveHostEventAsts(e,t){let s=[];for(let r of Object.keys(e)){let i=e[r];typeof i=="string"?this.parseEvent(r,i,!1,t,t,[],s,t):this._reportError(`Value of the host listener "${r}" needs to be a string representing an expression but got "${i}" (${typeof i})`,t)}return s}parseInterpolation(e,t,s){let r=t.fullStart.offset;try{let i=this._exprParser.parseInterpolation(e,t,r,s);return i&&this.errors.push(...i.errors),i}catch(i){return this._reportError(`${i}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",t,r)}}parseInterpolationExpression(e,t){let s=t.start.offset;try{let r=this._exprParser.parseInterpolationExpression(e,t,s);return r&&this.errors.push(...r.errors),r}catch(r){return this._reportError(`${r}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",t,s)}}parseInlineTemplateBinding(e,t,s,r,i,o,a,l){let c=s.start.offset+fN.length,p=this._parseTemplateBindings(e,t,s,c,r);for(let h of p){let f=es(s,h.sourceSpan),g=h.key.source,m=es(s,h.key.span);if(h instanceof go){let y=h.value?h.value.source:"$implicit",x=h.value?es(s,h.value.span):void 0;a.push(new mp(g,y,f,m,x))}else if(h.value){let y=l?f:s,x=es(s,h.value.ast.sourceSpan);this._parsePropertyAst(g,h.value,!1,y,m,x,i,o)}else i.push([g,""]),this.parseLiteralAttr(g,null,m,r,void 0,i,o,m)}}_parseTemplateBindings(e,t,s,r,i){try{let o=this._exprParser.parseTemplateBindings(e,t,s,r,i);return o.errors.forEach(a=>
35this.errors.push(a)),o.warnings.forEach(a=>{this._reportError(a,s,as.WARNING)}),o.templateBindings}catch(o){return this._reportError(`${o}`,s),[]}}parseLiteralAttr(e,t,s,r,i,o,a,l){Xu(e)?(e=e.substring(1),l!==void 0&&(l=es(l,new Mt(l.start.offset+1,l.end.offset))),t&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',s,as.ERROR),this._parseLegacyAnimation(e,t,s,r,l,i,o,a)):a.push(new Ir(e,this._exprParser.wrapLiteralPrimitive(t,"",r),mn.LITERAL_ATTR,s,l,i))}parsePropertyBinding(e,t,s,r,i,o,a,l,c,p){e.length===0&&this._reportError("Property name is missing in binding",i);let h=!1;e.startsWith(Gu)?(h=!0,e=e.substring(Gu.length),p!==void 0&&(p=es(p,new Mt(p.start.offset+Gu.length,p.end.offset)))):Xu(e)&&(h=!0,e=e.substring(1),p!==void 0&&(p=es(p,new Mt(p.start.offset+1,p.end.offset)))),h?this._parseLegacyAnimation(e,t,i,o,p,a,l,c):e.startsWith(`${Wu}${il}`)?this._parseAnimation(e,this.parseBinding(t,s,a||i,o),i,p,a,l,c):this._parsePropertyAst(e,this.parseBinding(t,s,a||i,o),r,i,p,a,l,c)}parsePropertyInterpolation(e,t,s,r,i,o,a,l){let c=this.parseInterpolation(t,r||s,l);return c?(this._parsePropertyAst(e,c,!1,s,a,r,i,o),!0):!1}_parsePropertyAst(e,t,s,r,i,o,a,l){a.push([e,t.source]),l.push(new Ir(e,t,s?mn.TWO_WAY:mn.DEFAULT,r,i,o))}_parseAnimation(e,t,s,r,i,o,a){o.push([e,t.source]),a.push(new Ir(e,t,mn.ANIMATION,s,r,i))}_parseLegacyAnimation(e,t,s,r,i,o,a,l){e.length===0&&this._reportError("Animation trigger is missing",s);let c=this.parseBinding(t||"undefined",!1,o||s,r);a.push([e,c.source]),l.push(new Ir(e,c,mn.LEGACY_ANIMATION,s,i,o))}parseBinding(e,t,s,r){try{let i=t?this._exprParser.parseSimpleBinding(e,s,r):this._exprParser.parseBinding(e,s,r);return i&&this.errors.push(...i.errors),i}catch(i){return this._reportError(`${i}`,s),this._exprParser.wrapLiteralPrimitive("ERROR",s,r)}}createBoundElementProperty(e,t,s=!1,r=!0){if(t.isLegacyAnimation)return new Ml(t.name,oe.LegacyAnimation,se.NONE,t.expression,null,t.sourceSpan,t.keySpan,t.valueSpan);let i=null,o,a=null,l=t.name.split(il),c;if(l.length>1)if(l[0]==uN){a=l.slice(1).join(il),s||this._validatePropertyOrAttributeName(a,t.sourceSpan,!0),c=Qu(this._schemaRegistry,e,a,!0);let p=a.indexOf(":");if(p>-1){let h=a.substring(0,p),f=a.substring(p+1);a=cl(h,f)}o=oe.Attribute}else l[0]==pN?(a=l[1],o=oe.Class,c=[se.NONE]):l[0]==hN?(i=l.length>2?l[2]:null,a=l[1],o=oe.Style,c=[se.STYLE]):l[0]==Wu&&(a=t.name,o=oe.Animation,c=[se.NONE]);if(a===null){let p=this._schemaRegistry.getMappedPropName(t.name);a=r?p:t.name,c=Qu(this._schemaRegistry,e,p,!1),o=t.type===mn.TWO_WAY?oe.TwoWay:oe.Property,s||this._validatePropertyOrAttributeName(p,t.sourceSpan,!1)}return new Ml(a,o,c[0],t.expression,i,t.sourceSpan,t.keySpan,t.valueSpan)}parseEvent(e,t,s,r,i,o,a,l){e.length===0&&this._reportError("Event name is missing in binding",r),Xu(e)?(e=e.slice(1),l!==void 0&&(l=es(l,new Mt(l.start.offset+1,l.end.offset))),this._parseLegacyAnimationEvent(e,t,r,i,a,l)):this._parseRegularEvent(e,t,s,r,i,o,a,l)}calcPossibleSecurityContexts(e,t,s){let r=this._schemaRegistry.getMappedPropName(t);return Qu(this._schemaRegistry,e,r,s)}parseEventListenerName(e){let[t,s]=Xx(e,[null,e]);return{eventName:s,target:t}}parseLegacyAnimationEventName(e){let t=Qx(e,[e,null]);return{eventName:t[0],phase:t[1]===null?null:t[1].toLowerCase()}}_parseLegacyAnimationEvent(e,t,s,r,i,o){let{eventName:a,phase:l}=this.parseLegacyAnimationEventName(e),c=this._parseAction(t,r);i.push(new Pl(a,l,ht.LegacyAnimation,c,s,r,o)),a.length===0&&this._reportError("Animation event name is missing in binding",s),l?l!=="start"&&l!=="done"&&this._reportError(`The provided animation output phase value "${l}" for "@${a}" is not supported (use start or done)`,s):this._reportError(`The animation trigger output event (@${a}) is missing its phase value name (start or done are currently supported)`,s)}_parseRegularEvent(e,t,s,r,i,o,a,l){let{eventName:c,target:p}=this.parseEventListenerName(e),h=this.errors.length,f=this._parseAction(t,i),g=this.errors.length===
35h;o.push([e,f.source]),s&&g&&!this._isAllowedAssignmentEvent(f)&&this._reportError("Unsupported expression in a two-way binding",r);let m=ht.Regular;s&&(m=ht.TwoWay),e.startsWith(`${Wu}${il}`)&&(m=ht.Animation),a.push(new Pl(c,p,m,f,r,i,l))}_parseAction(e,t){let s=t&&t.start?t.start.offset:0;try{let r=this._exprParser.parseAction(e,t,s);return r&&this.errors.push(...r.errors),!r||r.ast instanceof rt?(this._reportError("Empty expressions are not allowed",t),this._exprParser.wrapLiteralPrimitive("ERROR",t,s)):r}catch(r){return this._reportError(`${r}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",t,s)}}_reportError(e,t,s=as.ERROR){this.errors.push(new R(t,e,s))}_validatePropertyOrAttributeName(e,t,s){let r=s?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);r.error&&this._reportError(r.msg,t,as.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof yt?this._isAllowedAssignmentEvent(e.ast):e instanceof po?this._isAllowedAssignmentEvent(e.expression):e instanceof jr&&e.args.length===1&&e.receiver instanceof yn&&e.receiver.name==="$any"&&e.receiver.receiver instanceof Cn?this._isAllowedAssignmentEvent(e.args[0]):(e instanceof yn||e instanceof Zs)&&!mh(e)}};function mh(n){return n instanceof io||n instanceof oo?!0:n instanceof mo?mh(n.expression):n instanceof yn||n instanceof Zs||n instanceof jr?mh(n.receiver):!1}function Xu(n){return n[0]=="@"}function Qu(n,e,t,s){let r,[i,o]=e?ot(e,!1):[null,e],a=c=>
35{let[p,h]=ot(c,!1),f=p??i,g=f?`:${f}:${h}`:h;return n.securityContext(g,t,s)},l=n.allKnownElementNames();return o===null?r=l.map(a):(r=[],Or.parse(o).forEach(c=>{let p=c.element?[c.element]:l;if(c.element&&!n.hasElement(c.element,[])){let g=`:${Cc}:${c.element}`,m=`:${bc}:${c.element}`;n.hasElement(g,[])?p=[g]:n.hasElement(m,[])&&(p=[m])}let h=new Set(c.notSelectors.filter(g=>g.isElementSelector()).map(g=>g.element?.toLowerCase())),f=p.filter(g=>{let m=g.toLowerCase();return!h.has(m)&&!h.has(ot(m)[1])});r.push(...f.map(a))})),r.length===0?[se.NONE]:Array.from(new Set(r)).sort()}function es(n,e){let t=e.start-n.start.offset,s=e.end-n.end.offset;return new $(n.start.moveBy(t),n.end.moveBy(s),n.fullStart.moveBy(t),n.details)}function dN(n){if(n==null||n.length===0||n[0]=="/")return!1;let e=n.match(mN);return e===null||e[1]=="package"||e[1]=="asset"}var mN=/^([^:/?#]+):/,gN="select",vN="link",SN="rel",yN="href",EN="stylesheet",wN="style",AN=new Set([":svg:script","script"]),xN="ngNonBindable",_N="ngProjectAs";function qE(n){let e=null,t=null,s=null,r=!1,i="";for(let l of n.attrs){let c=l.name.toLowerCase();c==gN?e=l.value:c==yN?t=l.value:c==SN?s=l.value:l.name==xN?r=!0:l.name==_N&&l.value.length>0&&(i=l.value)}e||="*";let o=n.name.toLowerCase(),a=Pt.OTHER;return gp(o)?a=Pt.NG_CONTENT:wN===o?a=Pt.STYLE:AN.has(o)?a=Pt.SCRIPT:o==vN&&s==EN&&(a=Pt.STYLESHEET),new gh(a,e,t,r,i)}var Pt=(function(n){return n[n.NG_CONTENT=0]="NG_CONTENT",n[n.STYLE=1]="STYLE",n[n.STYLESHEET=2]="STYLESHEET",n[n.SCRIPT=3]="SCRIPT",n[n.OTHER=4]="OTHER",n})(Pt||{}),gh=class{type;selectAttr;hrefAttr;nonBindable;projectAs;constructor(e,t,s,r,i){this.type=e,this.selectAttr=t,this.hrefAttr=s,this.nonBindable=r,this.projectAs=i}},CN=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,bN=/^track\s+([\S\s]*)/,TN=/^(as\s+)(.*)/,kc=/^else[^\S\r\n]+if/,kN=/^let\s+([\S\s]*)/,NN=/^[$A-Z_][0-9A-Z_$]*$/i,iy=/(\s*)(\S+)(\s*)/,Qi=new Set(["$index","$first","$last","$even","$odd","$count"]);function oy(n){return n==="empty"}function ay(n){return n==="else"||kc.test(n)}function IN(n,e,t,s){let r=FN(e),i=[],o=ly(n,r,s);o!==null&&i.push(new Us(o.expression,xe(t,n.children,n.children),o.expressionAlias,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.nameSpan,n.i18n));for(let h of e)if(kc.test(h.name)){let f=ly(h,r,s);if(f!==null){let g=xe(t,h.children,h.children);i.push(new Us(f.expression,g,f.expressionAlias,h.sourceSpan,h.startSourceSpan,h.endSourceSpan,h.nameSpan,h.i18n))}}else if(h.name==="else"){let f=xe(t,h.children,h.children);i.push(new Us(null,f,null,h.sourceSpan,h.startSourceSpan,h.endSourceSpan,h.nameSpan,h.i18n))}let a=i.length>0?i[0].startSourceSpan:n.startSourceSpan,l=i.length>0?i[i.length-1].endSourceSpan:n.endSourceSpan,c=n.sourceSpan,p=i[i.length-1];return p!==void 0&&(c=new $(a.start,p.sourceSpan.end)),{node:new Ol(i,c,n.startSourceSpan,l,n.nameSpan),errors:r}}function DN(n,e,t,s){let r=[],i=MN(n,r,s),o=null,a=null;for(let l of e)l.name==="empty"?a!==null?r.push(new R(l.sourceSpan,"@for loop can only have one @empty block")):l.parameters.length>0?r.push(new R(l.sourceSpan,"@empty block cannot have parameters")):a=new Ao(xe(t,l.children,l.children),l.sourceSpan,l.startSourceSpan,l.endSourceSpan,l.nameSpan,l.i18n):r.push(new R(l.sourceSpan,`Unrecognized @for loop block "${l.name}"`));if(i!==null)if(i.trackBy===null)r.push(new R(n.startSourceSpan,'@for loop must have a "track" expression'));else{let l=a?.endSourceSpan??n.endSourceSpan,c=new $(n.sourceSpan.start,l?.end??n.sourceSpan.end);LN(i.trackBy.expression,i.trackBy.keywordSpan,r),o=new Xr(i.itemName,i.expression,i.trackBy.expression,i.trackBy.keywordSpan,i.context,xe(t,n.children,n.children),a,c,n.sourceSpan,n.startSourceSpan,l,n.nameSpan,n.i18n)}return{node:o,errors:r}}function PN(n,e,t){let s=BN(n),r=n.parameters.length>0?Wo(n.parameters[0],t):t.parseBinding("",!1,n.sourceSpan,0),i=[],o=[],a=[],l=null,c=null;for(let h of n.children){if(!(h instanceof zt))continue;if((h.name!=="case"||h.parameters.length===0)&&h.name!=="default"&&h.name!=="default never"){o.push(new $l(h.name,h.sourceSpan,h.nameSpan));continue}c!==null&&s.push(new R(h.sourceSpan,'@default block with "never" parameter must be the last case in a switch'));let f=h.name==="case",g=null;if(f)g=Wo(h.parameters[0],t);else if(h.name==="default never"){(h.children.length>0||h.endSourceSpan!==null&&h.endSourceSpan.start.offset!==h.endSourceSpan.end.offset)&&s.push(new R(h.sourceSpan,'@default block with "never" parameter cannot have a body')),a.length>0&&s.push(new R(h.sourceSpan,'A @case block with no body cannot be followed by a @default block with "never" parameter')),c=new Cp(h.sourceSpan,h.startSourceSpan,h.endSourceSpan,h.nameSpan);continue}let m=new _p(g,h.sourceSpan,h.startSourceSpan,h.endSourceSpan,h.nameSpan);if(a.push(m),h.children.length===0&&h.endSourceSpan!==null&&h.endSourceSpan.start.offset===h.endSourceSpan.end.offset){l===null&&(l=h.sourceSpan);continue}let x=h.sourceSpan,_=h.startSourceSpan;l!==null&&(x=new $(l.start,h.sourceSpan.end),_=new $(l.start,h.startSourceSpan.end),l=null);let T=new wo(a,xe(e,h.children,h.children),x,_,h.endSourceSpan,h.nameSpan,h.i18n);i.push(T),a=[]}return{node:new Bl(r,i,o,c,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.nameSpan),errors:s}}function MN(n,e,t){if(n.parameters.length===0)return e.push(new R(n.startSourceSpan,"@for loop does not have an expression")),null;let[s,...r]=n.parameters,i=ON(s,e)?.match(CN);if(!i||i[2].trim().length===0)return e.push(new R(s.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;let[,o,a]=i;Qi.has(o)&&e.push(new R(s.sourceSpan,`@for loop item name cannot be one of ${Array.from(Qi).join(", ")}.`));let l=s.expression.split(" ")[0],c=new $(s.sourceSpan.start,s.sourceSpan.start.moveBy(l.length)),p={itemName:new hs(o,"$implicit",c,c),trackBy:null,expression:Wo(s,t,a),context:Array.from(Qi,h=>{let f=new $(n.startSourceSpan.end,n.startSourceSpan.end);return new hs(h,h,f,f)})};for(let h of r){let f=h.expression.match(kN);if(f!==null){let m=new $(h.sourceSpan.start.moveBy(f[0].length-f[1].length),h.sourceSpan.end);RN(h.sourceSpan,f[1],m,o,p.context,e);continue}let g=h.expression.match(bN);if(g!==null){if(p.trackBy!==null)e.push(new R(h.sourceSpan,'@for loop can only have one "track" expression'));else{let m=Wo(h,t,g[1]);m.ast instanceof rt&&e.push(new R(n.startSourceSpan,'@for loop must have a "track" expression'));let y=new $(h.sourceSpan.start,h.sourceSpan.start.moveBy(5));p.trackBy={expression:m,keywordSpan:y}}continue}e.push(new R(h.sourceSpan,`Unrecognized @for loop parameter "${h.expression}"`))}return p}function LN(n,e,t){let s=new vh;n.ast.visit(s),s.hasPipe&&t.push(new R(e,"Cannot use pipes in track expressions"))}function RN(n,e,t,s,r,i){let o=e.split(","),a=t.start;for(let l of o){let c=l.split("="),p=c.length===2?c[0].trim():"",h=c.length===2?c[1].trim():"";if(p.length===0||h.length===0)i.push(new R(n,'Invalid @for loop "let" parameter. Parameter should match the pattern "<name> = <variable name>"'));else if(!Qi.has(h))i.push(new R(n,`Unknown "let" parameter variable "${h}". The allowed variables are: ${Array.from(Qi).join(", ")}`));else if(p===s)i.push(new R(n,`Invalid @for loop "let" parameter. Variable c
35annot be called "${s}"`));else if(r.some(f=>f.name===p))i.push(new R(n,`Duplicate "let" parameter variable "${h}"`));else{let[,f,g]=c[0].match(iy)??[],m=f!==void 0&&c.length===2?new $(a.moveBy(f.length),a.moveBy(f.length+g.length)):t,y;if(c.length===2){let[,_,T]=c[1].match(iy)??[];y=_!==void 0?new $(a.moveBy(c[0].length+1+_.length),a.moveBy(c[0].length+1+_.length+T.length)):void 0}let x=new $(m.start,y?.end??m.end);r.push(new hs(p,h,x,m,y))}a=a.moveBy(l.length+1)}}function FN(n){let e=[],t=!1;for(let s=0;s<n.length;s++){let r=n[s];r.name==="else"?(t?e.push(new R(r.startSourceSpan,"Conditional can only have one @else block")):n.length>1&&s<n.length-1?e.push(new R(r.startSourceSpan,"@else block must be last inside the conditional")):r.parameters.length>0&&e.push(new R(r.startSourceSpan,"@else block cannot have parameters")),t=!0):kc.test(r.name)||e.push(new R(r.startSourceSpan,`Unrecognized conditional block @${r.name}`))}return e}function BN(n){let e=[],t=!1;if(n.parameters.length!==1)return e.push(new R(n.startSourceSpan,"@switch block must have exactly one parameter")),e;for(let s of n.children)if(!(s instanceof Uo||s instanceof ar&&s.value.trim().length===0)){if(!(s instanceof zt)||s.name!=="case"&&s.name!=="default"&&s.name!=="default never"){e.push(new R(s.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}s.name==="default never"?(t&&e.push(new R(s.startSourceSpan,"@switch block can only have one @default block")),t=!0):s.name==="default"?(t?e.push(new R(s.startSourceSpan,"@switch block can only have one @default block")):s.parameters.length>0&&e.push(new R(s.startSourceSpan,"@default block cannot have parameters")),t=!0):s.name==="case"&&s.parameters.length!==1&&e.push(new R(s.startSourceSpan,"@case block must have exactly one parameter"))}return e}function Wo(n,e,t){let s,r;return typeof t=="string"?(s=Math.max(0,n.expression.lastIndexOf(t)),r=s+t.length):(s=0,r=n.expression.length),e.parseBinding(n.expression.slice(s,r),!1,n.sourceSpan,n.sourceSpan.start.offset+s)}function ly(n,e,t){if(n.parameters.length===0)return e.push(new R(n.startSourceSpan,"Conditional block does not have an expression")),null;let s=Wo(n.parameters[0],t),r=null;for(let i=1;i<n.parameters.length;i++){let o=n.parameters[i],a=o.expression.match(TN);if(a===null)e.push(new R(o.sourceSpan,`Unrecognized conditional parameter "${o.expression}"`));else if(n.name!=="if"&&!kc.test(n.name))e.push(new R(o.sourceSpan,'"as" expression is only allowed on `@if` and `@else if` blocks'));else if(r!==null)e.push(new R(o.sourceSpan,'Conditional can only have one "as" expression'));else{let l=a[2].trim();if(NN.test(l)){let c=o.sourceSpan.start.moveBy(a[1].length),p=new $(c,c.moveBy(l.length));r=new hs(l,l,p,p)}else e.push(new R(o.sourceSpan,'"as" expression must be a valid JavaScript identifier'))}}return{expression:s,expressionAlias:r}}function ON(n,e){let t=n.expression,s=/^\s$/,r=0,i=0,o=t.length-1;for(let a=0;a<t.length;a++){let l=t[a];if(l==="(")i=a+1,r++;else{if(s.test(l))continue;break}}if(r===0)return t;for(let a=t.length-1;a>-1;a--){let l=t[a];if(l===")"){if(o=a,r--,r===0)break}else{if(s.test(l))continue;break}}return r!==0?(e.push(new R(n.sourceSpan,"Unclosed parentheses in expression")),null):t.slice(i,o)}var vh=class extends zr{hasPipe=!1;visitPipe(){this.hasPipe=!0}},$N=/^\d+\.?\d*(ms|s)?$/,UN=/^\s$/,cy=new Map([[Wt,ct],[En,Fn],[pt,Fe]]),ut=(function(n){return n.IDLE="idle",n.TIMER="timer",n.INTERACTION="interaction",n.IMMEDIATE="immediate",n.HOVER="hover",n.VIEWPORT="viewport",n.NEVER="never",n})(ut||{});function VN({expression:n,sourceSpan:e},t,s){let r=n.indexOf("never"),i=new $(e.start.moveBy(r),e.start.moveBy(r+5)),o=Kh(n,e),a=Jh(n,e);r===-1?s.push(new R(e,'Could not find "never" keyword in expression')):Zh("never",t,s,new Ep(i,e,o,null,a))}function Yu({expression:n,sourceSpan:e},t,s,r){let i=n.indexOf("when"),o=new $(e.start.moveBy(i),e.start.moveBy(i+4)),a=Kh(n,e),l=Jh(n,e);if(i===-1)r.push(new R(e,'Could not find "when" keyword in expression'));else{let c=Go(n,i+1),p=t.parseBinding(n.slice(c),!1,e,e.start.offset+c);Zh("when",s,r,new Ll(p,e,a,o,l))}}function Ku({expression:n,sourceSpan:e},t,s,r,i){let o=n.indexOf("on"),a=new $(e.start.moveBy(o),e.start.moveBy(o+2)),l=Kh(n,e),c=Jh(n,e);if(o===-1)r.push(new R(e,'Could not find "on" keyword in expression'));else{let p=Go(n,o+1),h=n.startsWith("hydrate");new Sh(n,t,p,e,s,r,h?QN:XN,h,l,a,c).parse()}}function Kh(n,e){return n.startsWith("prefetch")?new $(e.start,e.start.moveBy(8)):null}function Jh(n,e){return n.startsWith("hydrate")?new $(e.start,e.start.moveBy(7)):null}var Sh=class{expression;bindingParser;start;span;triggers;errors;validator;isHydrationTrigger;prefetchSpan;onSourceSpan;hydrateSpan;index=0;tokens;constructor(e,t,s,r,i,o,a,l,c,p,h){this.expression=e,this.bindingParser=t,this.start=s,this.span=r,this.triggers=i,this.errors=o,this.validator=a,this.isHydrationTrigger=l,this.prefetchSpan=c,this.onSourceSpan=p,this.hydrateSpan=h,this.tokens=new Ho().tokenize(e.slice(s))}parse(){for(;this.tokens.length>0&&this.index<this.tokens.length;){let e=this.token();if(!e.isIdentifier()){this.unexpectedToken(e);break}if(this.isFollowedByOrLast(it))this.consumeTrigger(e,[]),this.advance();else if(this.isFollowedByOrLast(pt)){this.advance();let t=this.errors.length,s=this.consumeParameters();if(this.errors.length!==t)break;this.consumeTrigger(e,s),this.advance()}else this.index<this.tokens.length-1&&this.unexpectedToken(this.tokens[this.index+1]);this.advance()}}advance(){this.index++}isFollowedByOrLast(e){return this.index===this.tokens.length-1?!0:this.tokens[this.index+1].isCharacter(e)}token(){return this.tokens[Math.min(this.index,this.tokens.length-1)]}consumeTrigger(e,t){let s=this.span.start.moveBy(this.start+e.index-this.tokens[0].index),r=new $(s,s.moveBy(e.strValue.length)),i=s.moveBy(this.token().end-e.index),o=e.index===0,a=o?this.onSourceSpan:null,l=o?this.prefetchSpan:null,c=o?this.hydrateSpan:null,p=new $(o?this.span.start:s,i);try{switch(e.toString()){case ut.IDLE:this.trackTrigger("idle",qN(t,r,p,l,a,c));break;case ut.TIMER:this.trackTrigger("timer",HN(t,r,p,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case ut.INTERACTION:this.trackTrigger("interaction",WN(t,r,p,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case ut.IMMEDIATE:this.trackTrigger("immediate",jN(t,r,p,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case ut.HOVER:this.trackTrigger("hover",zN(t,r,p,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case ut.VIEWPORT:this.trackTrigger("viewport",GN(this.start,this.isHydrationTrigger,this.bindingParser,t,r,p,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;default:throw new Error(`Unrecognized trigger type "${e}"`)}}catch(h){this.error(e,h.message)}}consumeParameters(){let e=[];
35if(!this.token().isCharacter(pt))return this.unexpectedToken(this.token()),e;this.advance();let t=[],s=[];for(;this.index<this.tokens.length;){let r=this.token();if(r.isCharacter(Fe)&&t.length===0){s.length&&e.push({expression:this.tokenRangeText(s),start:s[0].index});break}if(r.type===B.Character&&cy.has(r.numValue)&&t.push(cy.get(r.numValue)),t.length>0&&r.isCharacter(t[t.length-1])&&t.pop(),t.length===0&&r.isCharacter(it)&&s.length>0){e.push({expression:this.tokenRangeText(s),start:s[0].index}),this.advance(),s=[];continue}s.push(r),this.advance()}return(!this.token().isCharacter(Fe)||t.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(it)&&this.unexpectedToken(this.tokens[this.index+1]),e}tokenRangeText(e){return e.length===0?"":this.expression.slice(this.start+e[0].index,this.start+e[e.length-1].end)}trackTrigger(e,t){Zh(e,this.triggers,this.errors,t)}error(e,t){let s=this.span.start.moveBy(this.start+e.index),r=s.moveBy(e.end-e.index);this.errors.push(new R(new $(s,r),t))}unexpectedToken(e){this.error(e,`Unexpected token "${e}"`)}};function Zh(n,e,t,s){e[n]?t.push(new R(s.sourceSpan,`Duplicate "${n}" trigger is not allowed`)):e[n]=s}function qN(n,e,t,s,r,i){if(n.length>0)throw new Error(`"${ut.IDLE}" trigger cannot have parameters`);return new wp(e,t,s,r,i)}function HN(n,e,t,s,r,i){if(n.length!==1)throw new Error(`"${ut.TIMER}" trigger must have exactly one parameter`);let o=mc(n[0].expression);if(o===null)throw new Error(`Could not parse time value of trigger "${ut.TIMER}"`);return new xp(o,e,t,s,r,i)}function jN(n,e,t,s,r,i){if(n.length>0)throw new Error(`"${ut.IMMEDIATE}" trigger cannot have parameters`);return new Ap(e,t,s,r,i)}function zN(n,e,t,s,r,i,o){return o(ut.HOVER,n),new Rl(n[0]?.expression??null,e,t,s,r,i)}function WN(n,e,t,s,r,i,o){return o(ut.INTERACTION,n),new Fl(n[0]?.expression??null,e,t,s,r,i)}function GN(n,e,t,s,r,i,o,a,l,c){c(ut.VIEWPORT,s);let p,h;if(s.length===0)p=h=null;else if(!s[0].expression.startsWith("{"))p=s[0].expression,h=null;else{let f=t.parseBinding(s[0].expression,!1,i,i.start.offset+n+s[0].start);if(f.ast instanceof er){if(f.ast.keys.some(m=>m.kind==="spread"))throw new Error("Spread operator are not allowed in this context");if(f.ast.keys.some(m=>m.kind==="property"&&m.key==="root"))throw new Error('The "root" option is not supported in the options parameter of the "viewport" trigger')}else throw new Error('Options parameter of the "viewport" trigger must be an object literal');let g=f.ast.keys.findIndex(m=>m.kind==="property"&&m.key==="trigger");if(g===-1)p=null,h=f.ast;else{let m=f.ast.values[g],y=(x,_)=>_!==g;if(!(m instanceof yn)||!(m.receiver instanceof Cn))throw new Error('"trigger" option of the "viewport" trigger must be an identifier');p=m.name,h=new er(f.ast.span,f.ast.sourceSpan,f.ast.keys.filter(y),f.ast.values.filter(y))}}if(e&&p!==null)throw new Error('"viewport" hydration trigger cannot have a "trigger"');if(h){let f=yh.findDynamicNode(h);if(f!==null)throw new Error(`Options of the "viewport" trigger must be an object literal containing only literal values, but "${f.constructor.name}" was found`)}return new vo(p,h,r,i,o,a,l)}function XN(n,e){if(e.length>1)throw new Error(`"${n}" trigger can only have zero or one parameters`)}function QN(n,e){if(n===ut.VIEWPORT){if(e.length>1)throw new Error(`Hydration trigger "${n}" cannot have more than one parameter`);return}if(e.length>0)throw new Error(`Hydration trigger "${n}" cannot have parameters`)}function Go(n,e=0){let t=!1;for(let s=e;s<n.length;s++)if(UN.test(n[s]))t=!0;else if(t)return s;return-1}function mc(n){let e=n.match($N);if(!e)return null;let[t,s]=e;return parseFloat(t)*(s==="s"?1e3:1)}var yh=class n extends zr{dynamicNode=null;static findDynamicNode(e){let t=new n;return t.visit(e),t.dynamicNode}visit(e){!(e instanceof yt)&&!(e instanceof vt)&&!(e instanceof ao)&&!(e instanceof er)?this.dynamicNode=e:super.visit(e)}},YN=/^prefetch\s+when\s/,KN=/^prefetch\s+on\s/,JN=/^hydrate\s+when\s/,ZN=/^hydrate\s+on\s/,eI=/^hydrate\s+never(\s*)$/,HE=/^minimum\s/,tI=/^after\s/,nI=/^when\s/,sI=/^on\s/;function Eh(n){return n==="placeholder"||n==="loading"||n==="error"}function rI(n,e,t,s){let r=[],{placeholder:i,loading:o,error:a}=iI(e,r,t),{triggers:l,prefetchTriggers:c,hydrateTriggers:p}=cI(n,s,r),h=n.endSourceSpan,f=n.sourceSpan.end;if(e.length>0){let y=e[e.length-1];h=y.endSourceSpan,f=y.sourceSpan.end}let g=new $(n.sourceSpan.start,f);return{node:new tr(xe(t,n.children,n.children),l,c,p,i,o,a,n.nameSpan,g,n.sourceSpan,n.startSourceSpan,h,n.i18n),errors:r}}function iI(n,e,t){let s=null,r=null,i=null;
35for(let o of n)try{if(!Eh(o.name)){e.push(new R(o.startSourceSpan,`Unrecognized block "@${o.name}"`));break}switch(o.name){case"placeholder":s!==null?e.push(new R(o.startSourceSpan,"@defer block can only have one @placeholder block")):s=oI(o,t);break;case"loading":r!==null?e.push(new R(o.startSourceSpan,"@defer block can only have one @loading block")):r=aI(o,t);break;case"error":i!==null?e.push(new R(o.startSourceSpan,"@defer block can only have one @error block")):i=lI(o,t);break}}catch(a){e.push(new R(o.startSourceSpan,a.message))}return{placeholder:s,loading:r,error:i}}function oI(n,e){let t=null;for(let s of n.parameters)if(HE.test(s.expression)){if(t!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let r=mc(s.expression.slice(Go(s.expression)));if(r===null)throw new Error('Could not parse time value of parameter "minimum"');t=r}else throw new Error(`Unrecognized parameter in @placeholder block: "${s.expression}"`);return new So(xe(e,n.children,n.children),t,n.nameSpan,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.i18n)}function aI(n,e){let t=null,s=null;for(let r of n.parameters)if(tI.test(r.expression)){if(t!=null)throw new Error('@loading block can only have one "after" parameter');let i=mc(r.expression.slice(Go(r.expression)));if(i===null)throw new Error('Could not parse time value of parameter "after"');t=i}else if(HE.test(r.expression)){if(s!=null)throw new Error('@loading block can only have one "minimum" parameter');let i=mc(r.expression.slice(Go(r.expression)));if(i===null)throw new Error('Could not parse time value of parameter "minimum"');s=i}else throw new Error(`Unrecognized parameter in @loading block: "${r.expression}"`);return new yo(xe(e,n.children,n.children),t,s,n.nameSpan,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.i18n)}function lI(n,e){if(n.parameters.length>0)throw new Error("@error block cannot have parameters");return new Eo(xe(e,n.children,n.children),n.nameSpan,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.i18n)}function cI(n,e,t,s){let r={},i={},o={};for(let a of n.parameters)nI.test(a.expression)?Yu(a,e,r,t):sI.test(a.expression)?Ku(a,e,r,t):YN.test(a.expression)?Yu(a,e,i,t):KN.test(a.expression)?Ku(a,e,i,t):JN.test(a.expression)?Yu(a,e,o,t):ZN.test(a.expression)?Ku(a,e,o,t):eI.test(a.expression)?VN(a,o,t):t.push(new R(a.sourceSpan,"Unrecognized trigger"));return o.never&&Object.keys(o).length>1&&t.push(new R(n.startSourceSpan,"Cannot specify additional `hydrate` triggers if `hydrate never` is present")),{triggers:r,prefetchTriggers:i,hydrateTriggers:o}}var uI=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,uy=1,py=2,hy=3,fy=4,dy=5,pI=6,Li=7,ts={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},Ju="*",hI=new Set(["link","style","script","ng-template","ng-container","ng-content"]),fI=new Set(["ngProjectAs","ngNonBindable"]);function dI(n,e,t){let s=new wh(e,t),r=xe(s,n,n),i=e.errors.concat(s.errors),o={nodes:r,errors:i,styleUrls:s.styleUrls,styles:s.styles,ngContentSelectors:s.ngContentSelectors};return t.collectCommentNodes&&(o.commentNodes=s.commentNodes),o}var wh=class{bindingParser;options;errors=[];styles=[];styleUrls=[];ngContentSelectors=[];commentNodes=[];inI18nBlock=!1;processedNodes=new Set;constructor(e,t){this.bindingParser=e,this.options=t}visitElement(e){let t=ul(e.i18n);t&&(this.inI18nBlock&&this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0);let s=qE(e);if(s.type===Pt.SCRIPT)return null;if(s.type===Pt.STYLE){let _=mI(e);return _!==null&&this.styles.push(_),null}else if(s.type===Pt.STYLESHEET&&dN(s.hrefAttr))return this.styleUrls.push(s.hrefAttr),null;let r=v_(e.name),{attributes:i,boundEvents:o,references:a,variables:l,templateVariables:c,elementHasInlineTemplate:p,parsedProperties:h,templateParsedProperties:f,i18nAttrsMeta:g}=this.prepareAttributes(e.attrs,r),m=this.extractDirectives(e),y;s.nonBindable?y=xe(my,e.children).flat(1/0):y=xe(this,e.children,e.children);let x;if(s.type===Pt.NG_CONTENT){let _=s.selectAttr,T=e.attrs.map(F=>
35this.visitAttribute(F));x=new Qr(_,T,y,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n),this.ngContentSelectors.push(_)}else if(r){let _=this.categorizePropertyAttributes(e.name,h,g);x=new Lt(e.name,i,_.bound,o,m,[],y,a,l,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{let _=this.categorizePropertyAttributes(e.name,h,g);if(e.name==="ng-container")for(let T of _.bound)T.type===oe.Attribute&&this.reportError("Attribute bindings are not supported on ng-container. Use property bindings instead.",T.sourceSpan);x=new bn(e.name,i,_.bound,o,m,y,a,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n)}return p&&(x=this.wrapInTemplate(x,f,c,g,r,t)),t&&(this.inI18nBlock=!1),x}visitAttribute(e){return new Gr(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return this.processedNodes.has(e)?null:this._visitTextWithInterpolation(e.value,e.sourceSpan,e.tokens,e.i18n)}visitExpansion(e){if(!e.i18n)return null;if(!ul(e.i18n))throw new Error(`Invalid type "${e.i18n.constructor}" for "i18n" property of ${e.sourceSpan.toString()}. Expected a "Message"`);let t=e.i18n,s={},r={};return Object.keys(t.placeholders).forEach(i=>{let o=t.placeholders[i];if(i.startsWith(w_)){let a=i.trim(),l=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);s[a]=new Wr(l,o.sourceSpan)}else r[i]=this._visitTextWithInterpolation(o.text,o.sourceSpan,null)}),new My(s,r,e.sourceSpan,t)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new wc(e.value||"",e.sourceSpan)),null}visitLetDeclaration(e,t){let s=this.bindingParser.parseBinding(e.value,!1,e.valueSpan,e.valueSpan.start.offset);return s.errors.length===0&&s.ast instanceof rt&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new Fh(e.name,s,e.sourceSpan,e.nameSpan,e.valueSpan)}visitComponent(e){let t=ul(e.i18n);if(t&&(this.inI18nBlock&&this.reportError("Cannot mark a component as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0),e.tagName!==null&&hI.has(e.tagName))return this.reportError(`Tag name "${e.tagName}" cannot be used as a component tag`,e.startSourceSpan),null;let{attributes:s,boundEvents:r,references:i,templateVariables:o,elementHasInlineTemplate:a,parsedProperties:l,templateParsedProperties:c,i18nAttrsMeta:p}=this.prepareAttributes(e.attrs,!1);this.validateSelectorlessReferences(i);let h=this.extractDirectives(e),f;e.attrs.find(y=>y.name==="ngNonBindable")?f=xe(my,e.children).flat(1/0):f=xe(this,e.children,e.children);let g=this.categorizePropertyAttributes(e.tagName,l,p),m=new qi(e.componentName,e.tagName,e.fullName,s,g.bound,r,h,f,i,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return a&&(m=this.wrapInTemplate(m,c,o,p,!1,t)),t&&(this.inI18nBlock=!1),m}visitDirective(){return null}visitBlockParameter(){return null}visitBlock(e,t){let s=Array.isArray(t)?t.indexOf(e):-1;if(s===-1)throw new Error("Visitor invoked incorrectly. Expecting visitBlock to be invoked siblings array as its context");if(this.processedNodes.has(e))return null;let r=null;switch(e.name){case"defer":r=rI(e,this.findConnectedBlocks(s,t,Eh),this,this.bindingParser);break;case"switch":r=PN(e,this,this.bindingParser);break;case"for":r=DN(e,this.findConnectedBlocks(s,t,oy),this,this.bindingParser);break;case"if":r=IN(e,this.findConnectedBlocks(s,t,ay),this,this.bindingParser);break;default:let i;Eh(e.name)?(i=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):oy(e.name)?(i=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):ay(e.name)?(i=`@${e.name} block can only be used after an @if or @else if block.`,this.processedNodes.add(e)):i=`Unrecognized block @${e.name}.`,r={node:new $l(e.name,e.sourceSpan,e.nameSpan),errors:[new R(e.sourceSpan,i)]};break}return this.errors.push(...r.errors),r.node}findConnectedBlocks(e,t,s){let r=[];for(let i=e+1;i<t.length;i++){let o=t[i];if(!(o instanceof Uo)){if(o instanceof ar&&o.value.trim().length===0){this.processedNodes.add(o);continue}if(!(o instanceof zt)||!s(o.name))break;r.push(o),this.processedNodes.add(o)}}return r}categorizePropertyAttributes(e,t,s){let r=[],i=[];return t.forEach(o=>{let a=s[o.name];if(o.isLiteral)i.push(new Gr(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,a));else{let l=o.name.toLowerCase().startsWith("attr.on"),c=this.bindingParser.createBoundElementProperty(e,o,!l,!1);r.push(Sp.fromBoundElementProperty(c,a))}}),{bound:r,literal:i}}prepareAttributes(e,t){let s=[],r=[],i=[],o=[],a=[],l={},c=[],p=[],h=!1;for(let f of e){let g=!1,m=gy(f.name),y=!1;if(f.i18n&&(l[f.name]=f.i18n),m.startsWith(Ju)){h&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",f.s
35ourceSpan),y=!0,h=!0;let x=f.value,_=m.substring(Ju.length),T=[],F=f.valueSpan?f.valueSpan.fullStart.offset:f.sourceSpan.fullStart.offset+f.name.length;this.bindingParser.parseInlineTemplateBinding(_,x,f.sourceSpan,F,[],c,T,!0),p.push(...T.map(w=>new hs(w.name,w.value,w.sourceSpan,w.keySpan,w.valueSpan)))}else g=this.parseAttribute(t,f,[],s,r,i,o);!g&&!y&&a.push(this.visitAttribute(f))}return{attributes:a,boundEvents:r,references:o,variables:i,templateVariables:p,elementHasInlineTemplate:h,parsedProperties:s,templateParsedProperties:c,i18nAttrsMeta:l}}parseAttribute(e,t,s,r,i,o,a){let l=gy(t.name),c=t.value,p=t.sourceSpan,h=t.valueSpan?t.valueSpan.fullStart.offset:p.fullStart.offset;function f(_,T,F){let w=t.name.length-l.length,G=_.start.moveBy(T.length+w),Z=G.moveBy(F.length);return new $(G,Z,G,F)}let g=l.match(uI);if(g){if(g[uy]!=null){let _=g[Li],T=f(p,g[uy],_);this.bindingParser.parsePropertyBinding(_,c,!1,!1,p,h,t.valueSpan,s,r,T)}else if(g[py])if(e){let _=g[Li],T=f(p,g[py],_);this.parseVariable(_,c,p,T,t.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',p);else if(g[hy]){let _=g[Li],T=f(p,g[hy],_);this.parseReference(_,c,p,T,t.valueSpan,a)}else if(g[fy]){let _=[],T=g[Li],F=f(p,g[fy],T);this.bindingParser.parseEvent(T,c,!1,p,t.valueSpan||p,s,_,F),Zu(_,i)}else if(g[dy]){let _=g[Li],T=f(p,g[dy],_);this.bindingParser.parsePropertyBinding(_,c,!1,!0,p,h,t.valueSpan,s,r,T),this.parseAssignmentEvent(_,c,p,t.valueSpan,s,i,T,h)}else if(g[pI]){let _=f(p,"",l);this.bindingParser.parseLiteralAttr(l,c,p,h,t.valueSpan,s,r,_)}return!0}let m=null;if(l.startsWith(ts.BANANA_BOX.start)?m=ts.BANANA_BOX:l.startsWith(ts.PROPERTY.start)?m=ts.PROPERTY:l.startsWith(ts.EVENT.start)&&(m=ts.EVENT),m!==null&&l.endsWith(m.end)&&l.length>m.start.length+m.end.length){let _=l.substring(m.start.length,l.length-m.end.length),T=f(p,m.start,_);if(m.start===ts.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(_,c,!1,!0,p,h,t.valueSpan,s,r,T),this.parseAssignmentEvent(_,c,p,t.valueSpan,s,i,T,h);else if(m.start===ts.PROPERTY.start)this.bindingParser.parsePropertyBinding(_,c,!1,!1,p,h,t.valueSpan,s,r,T);else{let F=[];this.bindingParser.parseEvent(_,c,!1,p,t.valueSpan||p,s,F,T),Zu(F,i)}return!0}let y=f(p,"",l);return this.bindingParser.parsePropertyInterpolation(l,c,p,t.valueSpan,s,r,y,t.valueTokens??null)}extractDirectives(e){let t=e instanceof lt?e.tagName:e.name,s=[],r=new Set;for(let i of e.directives){let o=!1;for(let g of i.attrs)g.name.startsWith(Ju)?(o=!0,this.reportError(`Shorthand template syntax "${g.name}" is not supported inside a directive context`,g.sourceSpan)):fI.has(g.name)&&(o=!0,this.reportError(`Attribute "${g.name}" is not supported in a directive context`,g.sourceSpan));if(!o&&r.has(i.name)&&(o=!0,this.reportError(`Cannot apply directive "${i.name}" multiple times on the same element`,i.sourceSpan)),o)continue;let{attributes:a,parsedProperties:l,boundEvents:c,references:p,i18nAttrsMeta:h}=this.prepareAttributes(i.attrs,!1);this.validateSelectorlessReferences(p);let{bound:f}=this.categorizePropertyAttributes(t,l,h);for(let g of f)g.type!==oe.Property&&g.type!==oe.TwoWay&&(o=!0,this.reportError("Binding is not supported in a directive context",g.sourceSpan));o||(r.add(i.name),s.push(new Py(i.name,a,f,c,p,i.sourceSpan,i.startSourceSpan,i.endSourceSpan,void 0)))}return s}filterAnimationAttributes(e){return e.filter(t=>!t.name.startsWith("animate."))}filterAnimationInputs(e){return e.filter(t=>t.type!==oe.Animation)}wrapInTemplate(e,t,s,r,i,o){let a=this.categorizePropertyAttributes("ng-template",t,r),l=[];a.literal.forEach(f=>l.push(f)),a.bound.forEach(f=>l.push(f));let c={attributes:[],inputs:[],outputs:[]};(e instanceof bn||e instanceof qi)&&(c.attributes.push(...this.filterAnimationAttributes(e.attributes)),c.inputs.push(...this.filterAnimationInputs(e.inputs)),c.outputs.push(...e.outputs));let p=i&&o?void 0:e.i18n,h;return e instanceof qi?h=e.tagName:e instanceof Lt?h=null:h=e.name,new Lt(h,c.attributes,c.inputs,c.outputs,[],l,[e],[],s,!1,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,p)}_visitTextWithInterpolation(e,t,s,r){let i=EE(e),o=this.bindingParser.parseInterpolation(i,t,s);return o?new Wr(o,t,r):new Bs(i,t)}parseVariable(e,t,s,r,i,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',s):e.length===0&&this.reportError("Variable does not have a name",s),o.push(new hs(e,t,s,r,i))}parseReference(e,t,s,r,i,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',s):e.length===0?this.reportError("Reference does not have a name",s):o.some(a=>a.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,s),o.push(new xo(e,t,s,r,i))}parseAssignmentEvent(e,t,s,r,i,o,a,l){let c=[];this.bindingParser.parseEvent(`${e}Change`,t,!0,s,r||s,i,c,a),Zu(c,o)}validateSelectorlessReferences(e){if(e.length===0)return;let t=new Set;for(let s of e)s.value.length>0?this.reportError("Cannot specify a value for a local reference in this context",s.valueSpan||s.sourceSpan):t.has(s.name)?this.reportError("Duplicate reference names are not allowed",s.sourceSpan):t.add(s.name)}reportError(e,t,s=as.ERROR){this.errors.push(new R(t,e,s))}},Ah=class{visitElement(e){let t=qE(e);if(t.type===Pt.SCRIPT||t.type===Pt.STYLE||t.type===Pt.STYLESHEET)return null;let s=xe(this,e.children,null);return new bn(e.name,xe(this,e.attrs),[],[],[],s,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid)}visitComment(e){return null}visitAttribute(e){return new Gr(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new Bs(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,t){let s=[new Bs(e.startSourceSpan.toString(),e.startSourceSpan),...xe(this,e.children)];return e.endSourceSpan!==null&&s.push(new Bs(e.endSourceSpan.toString(),e.endSourceSpan)),s}visitBlockParameter(e,t){return null}visitLetDeclaration(e,t){return new Bs(`@let ${e.name} = ${e.value};`,e.sourceSpan)}visitComponent(e,t){let s=xe(this,e.children,null);return new bn(e.fullName,xe(this,e.attrs),[],[],[],s,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,!1)}visitDirective(e,t){return null}},my=new Ah;function gy(n){return/^data-/i.test(n)?n.substring(5):n}function Zu(n,e){e.push(...n.map(t=>yp.fromParsedEvent(t)))}function mI(n){return n.children.length!==1||!(n.children[0]instanceof ar)?null:n.children[0].value}var gI=[" ",` 36`,"\r"," "];function vI(n,e,t={}
36){let{preserveWhitespaces:s,enableI18nLegacyMessageIdFormat:r}=t,i=t.enableSelectorless??!1,o=gc(i),l=new fh().parse(n,e,ce(E({leadingTriviaChars:gI},t),{tokenizeExpansionForms:!0,tokenizeBlocks:t.enableBlockSyntax??!0,tokenizeLet:t.enableLetSyntax??!0,selectorlessEnabled:i}));if(!t.alwaysAttemptHtmlToR3AstConversion&&l.errors&&l.errors.length>0){let w={preserveWhitespaces:s,errors:l.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return t.collectCommentNodes&&(w.commentNodes=[]),w}let c=l.rootNodes,p=!(t.preserveSignificantWhitespace??!0),h=new uc(!s,r,t.preserveSignificantWhitespace,p),f=h.visitAllWithErrors(c);if(!t.alwaysAttemptHtmlToR3AstConversion&&f.errors&&f.errors.length>0){let w={preserveWhitespaces:s,errors:f.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return t.collectCommentNodes&&(w.commentNodes=[]),w}c=f.rootNodes,s||(c=xe(new lc(!0,void 0,!1),c),h.hasI18nMeta&&(c=xe(new uc(!1,void 0,!0,p),c)));let{nodes:g,errors:m,styleUrls:y,styles:x,ngContentSelectors:_,commentNodes:T}=dI(c,o,{collectCommentNodes:!!t.collectCommentNodes});m.push(...l.errors,...f.errors);let F={preserveWhitespaces:s,errors:m.length>0?m:null,nodes:g,styleUrls:y,styles:x,ngContentSelectors:_};return t.collectCommentNodes&&(F.commentNodes=T),F}var SI=new ni;function gc(n=!1){return new dh(new cc(new Ho,n),SI,[])}var jE="%COMP%",yI=`_nghost-${jE}`,EI=`_ngcontent-${jE}`;function zE(n,e,t){let s=new ms,r=Ph(n.selector);return s.set("type",n.type.value),r.length>0&&s.set("selectors",Dr(r)),n.queries.length>0&&s.set("contentQueries",cN(n.queries,e,n.name)),n.viewQueries.length&&s.set("viewQuery",lN(n.viewQueries,e,n.name)),s.set("hostBindings",kI(n.host,n.typeSourceSpan,t,e,n.selector||"",n.name,s)),s.set("inputs",Wv(n.inputs,!0)),s.set("outputs",Wv(n.outputs)),n.exportAs!==null&&s.set("exportAs",me(n.exportAs.map(i=>S(i)))),n.isStandalone===!1&&s.set("standalone",S(!1)),n.isSignal&&s.set("signals",S(!0)),s}function WE(n,e){let t=[],s=e.providers,r=e.viewProviders;if(s||r){let i=[s||new _n([])];r&&i.push(r),t.push(I(d.ProvidersFeature).callFn(i))}if(e.hostDirectives?.length&&t.push(I(d.HostDirectivesFeature).callFn([MI(e.hostDirectives)])),e.usesInheritance&&t.push(I(d.InheritDefinitionFeature)),e.lifecycle.usesOnChanges&&t.push(I(d.NgOnChangesFeature)),e.controlCreate!==null&&t.push(I(d.ControlFeature).callFn([S(e.controlCreate.passThroughInput)])),"externalStyles"in e&&e.externalStyles?.length){let i=e.externalStyles.map(o=>S(o));t.push(I(d.ExternalStylesFeature).callFn([me(i)]))}t.length&&n.set("features",me(t))}function wI(n,e,t){let s=zE(n,e,t);WE(s,n);let r=I(d.defineDirective).callFn([s.toLiteralMap()],void 0,!0),i=TI(n);return{expression:r,type:i,statements:[]}}function AI(n,e,t){let s=zE(n,e,t);WE(s,n);let r=n.selector&&Or.parse(n.selector),i=r&&r[0];if(i){let m=i.getAttrs();m.length&&s.set("attrs",e.getConstLiteral(me(m.map(y=>y!=null?S(y):S(void 0))),!0))}let o=n.name,a=null;if(n.defer.mode===1&&n.defer.dependenciesFn!==null){let m=`${o}_DeferFn`;e.statements.push(new je(m,n.defer.dependenciesFn,void 0,Ke.Final)),a=te(m)}let l=n.isStandalone&&!n.hasDirectiveDependencies?gt.DomOnly:gt.Full,c=B1(n.name,n.template.nodes,e,l,n.relativeContextFilePath,n.i18nUseExternalIds,n.defer,a,n.relativeTemplatePath,iN());PE(c,k.Tmpl);let p=M1(c,e);if(c.contentSelectors!==null&&s.set("ngContentSelectors",c.contentSelectors),s.set("decls",S(c.root.decls)),s.set("vars",S(c.root.vars)),c.consts.length>0&&(c.constsInitializers.length>0?s.set("consts",Bt([],[...c.constsInitializers,new $e(me(c.consts))])):s.set("consts",me(c.consts))),s.set("template",p),n.declarationListEmitMode!==3&&n.declarations.length>0)s.set("dependencies",_I(me(n.declarations.map(m=>m.type)),n.declarationListEmitMode));else if(n.declarationListEmitMode===3){let m=[n.type.value];n.rawImports&&m.push(n.rawImports),s.set("dependencies",I(d.getComponentDepsFactory).callFn(m))}n.encapsulation===null&&(n.encapsulation=is.Emulated);let h=!!n.externalStyles?.length;if(n.styles&&n.styles.length){let y=(n.encapsulation==is.Emulated?PI(n.styles,EI,yI):n.styles).reduce((x,_)=>(_.trim().length>0&&x.push(e.getConstLiteral(S(_))),x),[]);y.length>0&&(h=!0,s.set("styles",me(y)))}!h&&n.encapsulation===is.Emulated&&(n.encapsulation=is.None),n.encapsulation!==is.Emulated&&s.set("encapsulation",S(n.encapsulation)),n.animations!==null&&s.set("data",Kt([{key:"animation",value:n.animations,quoted:!1}])),n.changeDetection!==null&&(typeof n.changeDetection=="number"&&n.changeDetection!==Dh.Default?s.set("changeDetection",S(n.changeDetection)):typeof n.changeDetection=="object"&&s.set("changeDetection",n.changeDetection));let f=I(d.defineComponent).callFn([s.toLiteralMap()],void 0,!0),g=xI(n);return{expression:f,type:g,statements:[]}}function xI(n){let e=GE(n);return e.push(_h(n.template.ngContentSelectors)),e.push(Je(S(n.isStandalone))),e.push(XE(n)),n.isSignal&&e.push(Je(S(n.isSignal))),Je(I(d.ComponentDeclaration,e))}function _I(n,e){switch(e){case 0:return n;case 1:return Bt([],n);case 2:let t=n.prop("map").callFn([I(d.resolveForwardRef)]);return Bt([],t);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function CI(n){return Je(S(n))}function xh(n){let e=Object.keys(n).map(t=>{let s=Array.isArray(n[t])?n[t][0]:n[t];return{key:t,value:S(s),quoted:!0}});return Kt(e)}function _h(n){return n.length>0?Je(me(n.map(e=>S(e)))):An}function GE(n){let e=n.selector!==null?n.selector.replace(/\n/g,""):null;return[Ec(n.type.type,n.typeArgumentCount),e!==null?CI(e):An,n.exportAs!==null?_h(n.exportAs):An,Je(bI(n)),Je(xh(n.outputs)),_h(n.queries.map(t=>t.propertyName))]}function bI(n){return Kt(Object.keys(n.inputs).map(e=>{let t=n.inputs[e],s=[{key:"alias",value:S(t.bindingPropertyName),quoted:!0},{key:"required",value:S(t.required),quoted:!0}];
36return t.isSignal&&s.push({key:"isSignal",value:S(t.isSignal),quoted:!0}),{key:e,value:Kt(s),quoted:!0}}))}function TI(n){let e=GE(n);return e.push(An),e.push(Je(S(n.isStandalone))),e.push(XE(n)),n.isSignal&&e.push(Je(S(n.isSignal))),Je(I(d.DirectiveDeclaration,e))}function kI(n,e,t,s,r,i,o){let a=t.createBoundHostProperties(n.properties,e),l=t.createDirectiveHostEventAsts(n.listeners,e);n.specialAttributes.styleAttr&&(n.attributes.style=S(n.specialAttributes.styleAttr)),n.specialAttributes.classAttr&&(n.attributes.class=S(n.specialAttributes.classAttr));let c=O1({componentName:i,componentSelector:r,properties:a,events:l,attributes:n.attributes},t,s);PE(c,k.Host),o.set("hostAttrs",c.root.attributes);let p=c.root.vars;return p!==null&&p>0&&o.set("hostVars",S(p)),L1(c)}function NI(n){let e={},t={},s={},r={};for(let i of Object.keys(n)){let o=n[i];if(i.startsWith("(")&&i.endsWith(")")){if(typeof o!="string")throw new Error("Event binding must be string");t[i.slice(1,-1)]=o}else if(i.startsWith("[")&&i.endsWith("]")){if(typeof o!="string")throw new Error("Property binding must be string");s[i.slice(1,-1)]=o}else switch(i){case"class":if(typeof o!="string")throw new Error("Class binding must be string");r.classAttr=o;break;case"style":if(typeof o!="string")throw new Error("Style binding must be string");r.styleAttr=o;break;default:typeof o=="string"?e[i]=S(o):e[i]=o}}return{attributes:e,listeners:t,properties:s,specialAttributes:r}}function II(n,e){let t=gc();return t.createDirectiveHostEventAsts(n.listeners,e),t.createBoundHostProperties(n.properties,e),DI(n,t,e),t.errors}function DI(n,e,t){for(let s in n.properties){let r=s.startsWith("attr."),i=r?s.slice(5):s;if(i.toLowerCase().startsWith("on")){let o=r?"attribute":"property",a=`(${i.slice(2)})=...`,l=`Binding to event ${o} '${i}' is disallowed for security reasons, please use ${a}`;r||(l+=` 37If '${s}' is a directive input, make sure the directive is imported by the current module.`),e.errors.push(new R(t,l))}}}function PI(n,e,t){let s=new Lp;return n.map(r=>s.shimCssText(r,e,t))}function XE(n){return n.hostDirectives?.length?Je(me(n.hostDirectives.map(e=>Kt([{key:"directive",value:Qo(e.directive.type),quoted:!1},{key:"inputs",value:xh(e.inputs||{}),quoted:!1},{key:"outputs",value:xh(e.outputs||{}),quoted:!1}])))):An}function MI(n){let e=[],t=!1;for(let s of n){if(!s.inputs&&!s.outputs)e.push(s.directive.type);else{let r=[{key:"directive",value:s.directive.type,quoted:!1}];if(s.inputs){let i=vy(s.inputs);i&&r.push({key:"inputs",value:i,quoted:!1})}if(s.outputs){let i=vy(s.outputs);i&&r.push({key:"outputs",value:i,quoted:!1})}e.push(Kt(r))}s.isForwardReference&&(t=!0)}return t?new cs([],[new $e(me(e))]):me(e)}function vy(n){let e=[];for(let t in n)n.hasOwnProperty(t)&&e.push(S(t),S(n[t]));return e.length>0?me(e):null}var Ch=class extends zr{visit(e){e instanceof yt?this.visit(e.ast):e.visit(this)}visitElement(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitTemplate(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.templateAttrs),this.visitAllTemplateNodes(e.variables),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitContent(e){this.visitAllTemplateNodes(e.children)}visitBoundAttribute(e){this.visit(e.value)}visitBoundEvent(e){this.visit(e.handler)}visitBoundText(e){this.visit(e.value)}visitIcu(e){Object.keys(e.vars).forEach(t=>this.visit(e.vars[t])),Object.keys(e.placeholders).forEach(t=>this.visit(e.placeholders[t]))}visitDeferredBlock(e){e.visitAll(this)}visitDeferredTrigger(e){e instanceof Ll?this.visit(e.value):e instanceof vo&&e.options!==null&&this.visit(e.options)}visitDeferredBlockPlaceholder(e){this.visitAllTemplateNodes(e.children)}visitDeferredBlockError(e){this.visitAllTemplateNodes(e.children)}visitDeferredBlockLoading(e){this.visitAllTemplateNodes(e.children)}visitSwitchBlock(e){this.visit(e.expression),this.visitAllTemplateNodes(e.groups)}visitSwitchBlockCase(e){e.expression&&this.visit(e.expression)}visitSwitchBlockCaseGroup(e){this.visitAllTemplateNodes(e.cases),this.visitAllTemplateNodes(e.children)}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){e.item.visit(this),this.visitAllTemplateNodes(e.contextVariables),this.visit(e.expression),this.visitAllTemplateNodes(e.children),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.visitAllTemplateNodes(e.children)}visitIfBlock(e){this.visitAllTemplateNodes(e.branches)}visitIfBlockBranch(e){e.expression&&this.visit(e.expression),e.expressionAlias?.visit(this),this.visitAllTemplateNodes(e.children)}visitLetDeclaration(e){this.visit(e.value)}visitComponent(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitDirective(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.references)}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitText(e){}visitUnknownBlock(e){}visitAllTemplateNodes(e){for(let t of e)this.visit(t)}};var bh=class{directiveMatcher;constructor(e){this.directiveMatcher=e}bind(e){if(!e.template&&!e.host)throw new Error("Empty bound targets are not supported");let t=new Map,s=[],r=new Set,i=new Map,o=new Map,a=new Map,l=new Map,c=new Map,p=new Map,h=new Set,f=new Set,g=[];if(e.template){let m=vc.apply(e.template);LI(m,a),Th.apply(e.template,this.directiveMatcher,t,s,r,i,o),Sc.applyWithScope(e.template,m,l,c,p,h,f,g)}return e.host&&(t.set(e.host.node,e.host.directives),Sc.applyWithScope(e.host.node,vc.apply(e.host.node),l,c,p,h,f,g)),new kh(e,t,s,r,i,o,l,c,p,a,h,f,g)}},vc=class n{parentScope;rootNode;namedEntities=new Map;elementLikeInScope=new Set;childScopes=new Map;isDeferred;constructor(e,t){this.parentScope=e,this.rootNode=t,this.isDeferred=e!==null&&e.isDeferred?!0:t instanceof tr}static newRootScope(){return new n(null,null)}static apply(e){let t=n.newRootScope();
37return t.ingest(e),t}ingest(e){e instanceof Lt?(e.variables.forEach(t=>this.visitVariable(t)),e.children.forEach(t=>t.visit(this))):e instanceof Us?(e.expressionAlias!==null&&this.visitVariable(e.expressionAlias),e.children.forEach(t=>t.visit(this))):e instanceof Xr?(this.visitVariable(e.item),e.contextVariables.forEach(t=>this.visitVariable(t)),e.children.forEach(t=>t.visit(this))):e instanceof wo||e instanceof Ao||e instanceof tr||e instanceof Eo||e instanceof So||e instanceof yo||e instanceof Qr?e.children.forEach(t=>t.visit(this)):e instanceof _o||e.forEach(t=>t.visit(this))}visitElement(e){this.visitElementLike(e)}visitTemplate(e){e.directives.forEach(t=>t.visit(this)),e.references.forEach(t=>this.visitReference(t)),this.ingestScopedNode(e)}visitVariable(e){this.maybeDeclare(e)}visitReference(e){this.maybeDeclare(e)}visitDeferredBlock(e){this.ingestScopedNode(e),e.placeholder?.visit(this),e.loading?.visit(this),e.error?.visit(this)}visitDeferredBlockPlaceholder(e){this.ingestScopedNode(e)}visitDeferredBlockError(e){this.ingestScopedNode(e)}visitDeferredBlockLoading(e){this.ingestScopedNode(e)}visitSwitchBlock(e){e.groups.forEach(t=>t.visit(this))}visitSwitchBlockCase(e){}visitSwitchBlockCaseGroup(e){this.ingestScopedNode(e)}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){this.ingestScopedNode(e),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.ingestScopedNode(e)}visitIfBlock(e){e.branches.forEach(t=>t.visit(this))}visitIfBlockBranch(e){this.ingestScopedNode(e)}visitContent(e){this.ingestScopedNode(e)}visitLetDeclaration(e){this.maybeDeclare(e)}visitComponent(e){this.visitElementLike(e)}visitDirective(e){e.references.forEach(t=>this.visitReference(t))}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundText(e){}visitText(e){}visitTextAttribute(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}visitElementLike(e){e.directives.forEach(t=>t.visit(this)),e.references.forEach(t=>this.visitReference(t)),e.children.forEach(t=>t.visit(this)),this.elementLikeInScope.add(e)}maybeDeclare(e){this.namedEntities.has(e.name)||this.namedEntities.set(e.name,e)}lookup(e){return this.namedEntities.has(e)?this.namedEntities.get(e):this.parentScope!==null?this.parentScope.lookup(e):null}getChildScope(e){let t=this.childScopes.get(e);if(t===void 0)throw new Error(`Assertion error: child scope for ${e} not found`);return t}ingestScopedNode(e){let t=new n(this,e);t.ingest(e),this.childScopes.set(e,t)}},Th=class n{directiveMatcher;directives;eagerDirectives;missingDirectives;bindings;references;isInDeferBlock=!1;constructor(e,t,s,r,i,o){this.directiveMatcher=e,this.directives=t,this.eagerDirectives=s,this.missingDirectives=r,this.bindings=i,this.references=o}static apply(e,t,s,r,i,o,a){new n(t,s,r,i,o,a).ingest(e)}ingest(e){e.forEach(t=>t.visit(this))}visitElement(e){this.visitElementOrTemplate(e)}visitTemplate(e){this.visitElementOrTemplate(e)}visitDeferredBlock(e){let t=this.isInDeferBlock;this.isInDeferBlock=!0,e.children.forEach(s=>s.visit(this)),this.isInDeferBlock=t,e.placeholder?.visit(this),e.loading?.visit(this),e.error?.visit(this)}visitDeferredBlockPlaceholder(e){e.children.forEach(t=>t.visit(this))}visitDeferredBlockError(e){e.children.forEach(t=>t.visit(this))}visitDeferredBlockLoading(e){e.children.forEach(t=>t.visit(this))}visitSwitchBlock(e){e.groups.forEach(t=>t.visit(this))}visitSwitchBlockCase(e){}visitSwitchBlockCaseGroup(e){e.children.forEach(t=>t.visit(this))}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){e.item.visit(this),e.contextVariables.forEac
37h(t=>t.visit(this)),e.children.forEach(t=>t.visit(this)),e.empty?.visit(this)}visitForLoopBlockEmpty(e){e.children.forEach(t=>t.visit(this))}visitIfBlock(e){e.branches.forEach(t=>t.visit(this))}visitIfBlockBranch(e){e.expressionAlias?.visit(this),e.children.forEach(t=>t.visit(this))}visitContent(e){e.children.forEach(t=>t.visit(this))}visitComponent(e){if(this.directiveMatcher instanceof hl){let t=this.directiveMatcher.match(e.componentName);t.length>0?this.trackSelectorlessMatchesAndDirectives(e,t):this.missingDirectives.add(e.componentName)}e.directives.forEach(t=>t.visit(this)),e.children.forEach(t=>t.visit(this))}visitDirective(e){if(this.directiveMatcher instanceof hl){let t=this.directiveMatcher.match(e.name);t.length>0?this.trackSelectorlessMatchesAndDirectives(e,t):this.missingDirectives.add(e.name)}}visitElementOrTemplate(e){if(this.directiveMatcher instanceof pl){let t=[],s=__(e);this.directiveMatcher.match(s,(r,i)=>t.push(...i)),this.trackSelectorBasedBindingsAndDirectives(e,t)}else e.references.forEach(t=>{t.value.trim()===""&&this.references.set(t,e)});e.directives.forEach(t=>t.visit(this)),e.children.forEach(t=>t.visit(this))}trackMatchedDirectives(e,t){t.length>0&&(this.directives.set(e,t),this.isInDeferBlock||this.eagerDirectives.push(...t))}trackSelectorlessMatchesAndDirectives(e,t){if(t.length===0)return;this.trackMatchedDirectives(e,t);let s=(r,i,o)=>{r[o].hasBindingPropertyName(i.name)&&this.bindings.set(i,r)};for(let r of t)e.inputs.forEach(i=>s(r,i,"inputs")),e.attributes.forEach(i=>s(r,i,"inputs")),e.outputs.forEach(i=>s(r,i,"outputs"));e.references.forEach(r=>this.references.set(r,{directive:t[0],node:e}))}trackSelectorBasedBindingsAndDirectives(e,t){this.trackMatchedDirectives(e,t),e.references.forEach(r=>{let i=null;if(r.value.trim()==="")i=t.find(o=>o.isComponent)||null;else if(i=t.find(o=>o.exportAs!==null&&o.exportAs.some(a=>a===r.value))||null,i===null)return;i!==null?this.references.set(r,{directive:i,node:e}):this.references.set(r,e)});let s=(r,i)=>{let o=t.find(l=>l[i].hasBindingPropertyName(r.name)),a=o!==void 0?o:e;this.bindings.set(r,a)};e.inputs.forEach(r=>s(r,"inputs")),e.attributes.forEach(r=>s(r,"inputs")),e instanceof Lt&&e.templateAttrs.forEach(r=>s(r,"inputs")),e.outputs.forEach(r=>s(r,"outputs"))}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundAttributeOrEvent(e){}visitText(e){}visitBoundText(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}visitLetDeclaration(e){}},Sc=class n extends Ch{bindings;symbols;usedPipes;eagerPipes;deferBlocks;nestingLevel;scope;rootNode;level;visitNode=e=>e.visit(this);constructor(e,t,s,r,i,o,a,l,c){super(),this.bindings=e,this.symbols=t,this.usedPipes=s,this.eagerPipes=r,this.deferBlocks=i,this.nestingLevel=o,this.scope=a,this.rootNode=l,this.level=c}static applyWithScope(e,t,s,r,i,o,a,l){let c=e instanceof Lt?e:null;new n(s,r,o,a,l,i,t,c,0).ingest(e)}
37ingest(e){if(e instanceof Lt)e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Us)e.expressionAlias!==null&&this.visitNode(e.expressionAlias),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Xr)this.visitNode(e.item),e.contextVariables.forEach(t=>this.visitNode(t)),e.trackBy.visit(this),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof tr){if(this.scope.rootNode!==e)throw new Error(`Assertion error: resolved incorrect scope for deferred block ${e}`);this.deferBlocks.push([e,this.scope]),e.children.forEach(t=>t.visit(this)),this.nestingLevel.set(e,this.level)}else e instanceof wo||e instanceof Ao||e instanceof Eo||e instanceof So||e instanceof yo||e instanceof Qr?(e.children.forEach(t=>t.visit(this)),this.nestingLevel.set(e,this.level)):e instanceof _o?this.nestingLevel.set(e,0):e.forEach(this.visitNode)}visitTemplate(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.directives.forEach(this.visitNode),e.templateAttrs.forEach(this.visitNode),e.references.forEach(this.visitNode),this.ingestScopedNode(e)}visitVariable(e){this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitReference(e){this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitDeferredBlock(e){this.ingestScopedNode(e),e.triggers.when?.value.visit(this),e.prefetchTriggers.when?.value.visit(this),e.hydrateTriggers.when?.value.visit(this),e.hydrateTriggers.never?.visit(this),e.placeholder&&this.visitNode(e.placeholder),e.loading&&this.visitNode(e.loading),e.error&&this.visitNode(e.error)}visitDeferredBlockPlaceholder(e){this.ingestScopedNode(e)}visitDeferredBlockError(e){this.ingestScopedNode(e)}visitDeferredBlockLoading(e){this.ingestScopedNode(e)}visitSwitchBlockCase(e){e.expression?.visit(this)}visitSwitchBlockCaseGroup(e){e.cases.forEach(t=>t.visit(this)),this.ingestScopedNode(e)}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){e.expression.visit(this),this.ingestScopedNode(e),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.ingestScopedNode(e)}visitIfBlockBranch(e){e.expression?.visit(this),this.ingestScopedNode(e)}visitContent(e){this.ingestScopedNode(e)}visitLetDeclaration(e){super.visitLetDeclaration(e),this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitPipe(e,t){return this.usedPipes.add(e.name),this.scope.isDeferred||this.eagerPipes.add(e.name),super.visitPipe(e,t)}visitPropertyRead(e,t){return this.maybeMap(e,e.name),super.visitPropertyRead(e,t)}visitSafePropertyRead(e,t){return this.maybeMap(e,e.name),super.visitSafePropertyRead(e,t)}ingestScopedNode(e){let t=this.scope.getChildScope(e);new n(this.bindings,this.symbols,this.usedPipes,this.eagerPipes,this.deferBlocks,this.nestingLevel,t,e,this.level+1).ingest(e)}maybeMap(e,t){if(!(e.receiver instanceof Cn))return;let s=this.scope.lookup(t);s!==null&&this.bindings.set(e,s)}},kh=class{target;directives;eagerDirectives;missingDirectives;bindings;references;exprTargets;symbols;nestingLevel;scopedNodeEntities;usedPipes;eagerPipes;deferredBlocks;deferredScopes;constructor(e,t,s,r,i,o,a,l,c,p,h,f,g){this.target=e,this.directives=t,this.eagerDirectives=s,this.missingDirectives=r,this.bindings=i,this.references=o,this.exprTargets=a,this.symbols=l,this.nestingLevel=c,this.scopedNodeEntities=p,this.usedPipes=h,this.eagerPipes=f,this.deferredBlocks=g.map(m=>m[0]),this.deferredScopes=new Map(g)}getEntitiesInScope(e){return this.scopedNodeEntities.get(e)??new Set}getDirectivesOfNode(e){return this.directives.get(e)||null}getReferenceTarget(e){return this.references.get(e)||null}getConsumerOfBinding(e){return this.bindings.get(e)||null}getExpressionTarget(e){return this.exprTargets.get(e)||null}getDefinitionNodeOfSymbol(e){return this.symbols.get(e)||null}getNestingLevel(e){return this.nestingLevel.get(e)||0}getUsedDirectives(){let e=new Set;return this.directives.forEach(t=>t.forEach(s=>e.add(s))),Array.from(e.values())}getEagerlyUsedDirectives(){let e=new Set(this.eagerDirectives);return Array.from(e.values())}getUsedPipes(){return Array.from(this.usedPipes)}getEagerlyUsedPipes(){return Array.from(this.eagerPipes)}getDeferBlocks(){return this.deferredBlocks}getDeferredTriggerTarget(e,t){if(!(t instanceof Fl)&&!(t instanceof vo)&&!(t instanceof Rl))return null;let s=t.reference;if(s===null){let i=null;if(e.placeholder!==null){for(let o of e.placeholder.children)if(!(o instanceof wc)){if(i!==null)return null;o instanceof bn&&(i=o)}}return i}let r=this.findEntityInScope(e,s);if(r instanceof xo&&this.getDefinitionNodeOfSymbol(r)!==e){let i=this.getReferenceTarget(r);if(i!==null)return this.referenceTargetToElement(i)}if(e.placeholder!==null){let i=this.findEntityInScope(e.placeholder,s),o=i instanceof xo?this.getReferenceTarget(i):null;if(o!==null)return this.referenceTargetToElement(o)}return null}isDeferred(e){for(let t of this.deferredBlocks){if(!this.deferredScopes.has(t))continue;let s=[this.deferredScopes.get(t)];for(;s.length>0;){let r=s.pop();if(r.elementLikeInScope.has(e))return!0;s.push(...r.childScopes.values())}}return!1}referencedDirectiveExists(e){return!this.missingDirectives.has(e)}findEntityInScope(e,t){let s=this.getEntitiesInScope(e);for(let r of s)if(r.name===t)return r;return null}referenceTargetToElement(e){return e instanceof bn?e:e instanceof Lt||e.node instanceof qi||e.node instanceof Py||e.node instanceof _o?null:this.referenceTargetToElement(e.node)}};function LI(n,e){let t=new Map;function s(i){if(t.has(i.rootNode))return t.get(i.rootNode);let o=i.namedEntities,a;return i.parentScope!==null?a=new Map([...s(i.parentScope),...o]):a=new Map(o),t.set(i.rootNode,a),a}let r=[n];for(;r.length>0;){let i=r.pop();for(let o of i.childScopes.values())r.push(o);s(i)}
37for(let[i,o]of t)e.set(i,new Set(o.values()))}var ri=class{},Nh=class{jitEvaluator;FactoryTarget=Rn;ResourceLoader=ri;elementSchemaRegistry=new ni;constructor(e=new Dp){this.jitEvaluator=e}compilePipe(e,t,s){let r={name:s.name,type:qe(s.type),typeArgumentCount:0,pipeName:s.pipeName,pure:s.pure,isStandalone:s.isStandalone},i=sS(r);return this.jitExpression(i.expression,e,t,[])}compilePipeDeclaration(e,t,s){let r=KI(s),i=sS(r);return this.jitExpression(i.expression,e,t,[])}compileInjectable(e,t,s){let{expression:r,statements:i}=Gv({name:s.name,type:qe(s.type),typeArgumentCount:s.typeArgumentCount,providedIn:xy(s.providedIn),useClass:Tr(s,"useClass"),useFactory:Ay(s,"useFactory"),useValue:Tr(s,"useValue"),useExisting:Tr(s,"useExisting"),deps:s.deps?.map(JE)},!0);return this.jitExpression(r,e,t,i)}compileInjectableDeclaration(e,t,s){let{expression:r,statements:i}=Gv({name:s.type.name,type:qe(s.type),typeArgumentCount:0,providedIn:xy(s.providedIn),useClass:Tr(s,"useClass"),useFactory:Ay(s,"useFactory"),useValue:Tr(s,"useValue"),useExisting:Tr(s,"useExisting"),deps:s.deps?.map(_y)},!0);return this.jitExpression(r,e,t,i)}compileInjector(e,t,s){let r={type:qe(s.type),providers:s.providers&&s.providers.length>0?new ne(s.providers):null,imports:s.imports.map(o=>new ne(o))},i=nS(r);return this.jitExpression(i.expression,e,t,[])}compileInjectorDeclaration(e,t,s){let r=JI(s),i=nS(r);return this.jitExpression(i.expression,e,t,[])}compileNgModule(e,t,s){let r={kind:ls.Global,type:qe(s.type),bootstrap:s.bootstrap.map(qe),declarations:s.declarations.map(qe),publicDeclarationTypes:null,imports:s.imports.map(qe),includeImportTypes:!0,exports:s.exports.map(qe),selectorScopeMode:zl.Inline,containsForwardDecls:!1,schemas:s.schemas?s.schemas.map(qe):null,id:s.id?new ne(s.id):null},i=j_(r);return this.jitExpression(i.expression,e,t,[])}compileNgModuleDeclaration(e,t,s){let r=z_(s);return this.jitExpression(r,e,t,[])}compileDirective(e,t,s){let r=Ey(s);return this.compileDirectiveFromMeta(e,t,r)}compileDirectiveDeclaration(e,t,s){let r=this.createParseSourceSpan("Directive",s.type.name,t),i=YE(s,r);return this.compileDirectiveFromMeta(e,t,i)}compileDirectiveFromMeta(e,t,s){let r=new Al,i=gc(),o=wI(s,r,i);return this.jitExpression(o.expression,e,t,r.statements)}compileComponent(e,t,s){let{template:r,defer:i}=KE(s.template,s.name,t,s.preserveWhitespaces,void 0),o=ce(E(E({},s),Ey(s)),{selector:s.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:r,declarations:s.declarations.map(OI),declarationListEmitMode:0,defer:i,styles:[...s.styles,...r.styles],encapsulation:s.encapsulation,changeDetection:s.changeDetection??null,animations:s.animations!=null?new ne(s.animations):null,viewProviders:s.viewProviders!=null?new ne(s.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null}),a=`ng:///${s.name}.js`;return this.compileComponentFromMeta(e,a,o)}compileComponentDeclaration(e,t,s){let r=this.createParseSourceSpan("Component",s.type.name,t),i=BI(s,r,t);return this.compileComponentFromMeta(e,t,i)}compileComponentFromMeta(e,t,s){let r=new Al,i=gc(),o=AI(s,r,i);return this.jitExpression(o.expression,e,t,r.statements)}compileFactory(e,t,s){let r=Ps({name:s.name,type:qe(s.type),typeArgumentCount:s.typeArgumentCount,deps:VI(s.deps),target:s.target});return this.jitExpression(r.expression,e,t,r.statements)}compileFactoryDeclaration(e,t,s){let r=Ps({name:s.type.name,type:qe(s.type),typeArgumentCount:0,deps:Array.isArray(s.deps)?s.deps.map(_y):s.deps,target:s.target});return this.jitExpression(r.expression,e,t,r.statements)}createParseSourceSpan(e,t,s){return B_(e,t,s)}jitExpression(e,t,s,r){let i=[...r,new je("$def",e,void 0,Ke.Exported)];return this.jitEvaluator.evaluateStatements(s,i,new Mp(t),!0).$def}};function Sy(n){return ce(E({},n),{isSignal:n.isSignal,predicate:QE(n.predicate),read:n.read?new ne(n.read):null,static:n.static,emitDistinctChangesOnly:n.emitDistinctChangesOnly})}function yy(n){return{propertyName:n.propertyName,first:n.first??!1,predicate:QE(n.predicate),descendants:n.descendants??!1,read:n.read?new ne(n.read):null,
37static:n.static??!1,emitDistinctChangesOnly:n.emitDistinctChangesOnly??!0,isSignal:!!n.isSignal}}function QE(n){return Array.isArray(n)?n:Rh(new ne(n),1)}function Ey(n){let e=YI(n.inputs||[]),t=tp(n.outputs||[]),s=n.propMetadata,r={},i={};for(let a in s)s.hasOwnProperty(a)&&s[a].forEach(l=>{WI(l)?r[a]={bindingPropertyName:l.alias||a,classPropertyName:a,required:l.required||!1,isSignal:!!l.isSignal,transformFunction:l.transform!=null?new ne(l.transform):null}:GI(l)&&(i[a]=l.alias||a)});let o=n.hostDirectives?.length?n.hostDirectives.map(a=>typeof a=="function"?{directive:qe(a),inputs:null,outputs:null,isForwardReference:!1}:{directive:qe(a.directive),isForwardReference:!1,inputs:a.inputs?tp(a.inputs):null,outputs:a.outputs?tp(a.outputs):null}):null;return ce(E({},n),{typeArgumentCount:0,typeSourceSpan:n.typeSourceSpan,type:qe(n.type),deps:null,host:E({},HI(n.propMetadata,n.typeSourceSpan,n.host)),inputs:E(E({},e),r),outputs:E(E({},t),i),queries:n.queries.map(Sy),providers:n.providers!=null?new ne(n.providers):null,viewQueries:n.viewQueries.map(Sy),hostDirectives:o})}function YE(n,e){let t=n.hostDirectives?.length?n.hostDirectives.map(s=>({directive:qe(s.directive),isForwardReference:!1,inputs:s.inputs?wy(s.inputs):null,outputs:s.outputs?wy(s.outputs):null})):null;return{name:n.type.name,type:qe(n.type),typeSourceSpan:e,selector:n.selector??null,inputs:n.inputs?XI(n.inputs):{},outputs:n.outputs??{},host:RI(n.host),queries:(n.queries??[]).map(yy),viewQueries:(n.viewQueries??[]).map(yy),providers:n.providers!==void 0?new ne(n.providers):null,exportAs:n.exportAs??null,usesInheritance:n.usesInheritance??!1,controlCreate:n.controlCreate??null,lifecycle:{usesOnChanges:n.usesOnChanges??!1},deps:null,typeArgumentCount:0,isStandalone:n.isStandalone??Dy(n.version),isSignal:n.isSignal??!1,hostDirectives:t}}function RI(n={}){return{attributes:FI(n.attributes??{}),listeners:n.listeners??{},properties:n.properties??{},specialAttributes:{classAttr:n.classAttribute,styleAttr:n.styleAttribute}}}function wy(n){let e=null;for(let t=1;t<n.length;t+=2)e=e||{},e[n[t-1]]=n[t];return e}function FI(n){let e={};for(let t of Object.keys(n))e[t]=new ne(n[t]);return e}function BI(n,e,t){let{template:s,defer:r}=KE(n.template,n.type.name,t,n.preserveWhitespaces??!1,n.deferBlockDependencies),i=[];if(n.dependencies)for(let a of n.dependencies)switch(a.kind){case"directive":case"component":i.push(ep(a));break;case"pipe":i.push(UI(a));break}else(n.components||n.directives||n.pipes)&&(n.components&&i.push(...n.components.map(a=>ep(a,!0))),n.directives&&i.push(...n.directives.map(a=>
37ep(a))),n.pipes&&i.push(...$I(n.pipes)));let o=i.some(({kind:a})=>a===Kr.Directive||a===Kr.NgModule);return ce(E({},YE(n,e)),{template:s,styles:n.styles??[],declarations:i,viewProviders:n.viewProviders!==void 0?new ne(n.viewProviders):null,animations:n.animations!==void 0?new ne(n.animations):null,defer:r,changeDetection:n.changeDetection??Dh.Default,encapsulation:n.encapsulation??is.Emulated,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null,hasDirectiveDependencies:o})}function OI(n){return ce(E({},n),{type:new ne(n.type)})}function ep(n,e=null){return{kind:Kr.Directive,isComponent:e||n.kind==="component",selector:n.selector,type:new ne(n.type),inputs:n.inputs??[],outputs:n.outputs??[],exportAs:n.exportAs??null}}function $I(n){return n?Object.keys(n).map(e=>({kind:Kr.Pipe,name:e,type:new ne(n[e])})):[]}function UI(n){return{kind:Kr.Pipe,name:n.name,type:new ne(n.type)}}function KE(n,e,t,s,r){let i=vI(n,t,{preserveWhitespaces:s});if(i.errors!==null){let l=i.errors.map(c=>c.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${l}`)}let a=new bh(null).bind({template:i.nodes});return{template:i,defer:qI(a,r)}}function Tr(n,e){if(n.hasOwnProperty(e))return Rh(new ne(n[e]),0)}function Ay(n,e){if(n.hasOwnProperty(e))return new ne(n[e])}function xy(n){let e=typeof n=="function"?new ne(n):new Ze(n??null);return Rh(e,0)}function VI(n){return n==null?null:n.map(JE)}function JE(n){let e=n.attribute!=null,t=n.token===null?null:new ne(n.token),s=e?new ne(n.attribute):t;return ZE(s,e,n.host,n.optional,n.self,n.skipSelf)}function _y(n){let e=n.attribute??!1,t=n.token===null?null:new ne(n.token);return ZE(t,e,n.host??!1,n.optional??!1,n.self??!1,n.skipSelf??!1)}function ZE(n,e,t,s,r,i){let o=e?S("unknown"):null;return{token:n,attributeNameType:o,host:t,optional:s,self:r,skipSelf:i}}function qI(n,e){let t=n.getDeferBlocks(),s=new Map;for(let r=0;r<t.length;r++){let i=e?.[r];s.set(t[r],i?new ne(i):null)}return{mode:0,blocks:s}}function HI(n,e,t){let s=NI(t||{});for(let i in n)n.hasOwnProperty(i)&&n[i].forEach(o=>{jI(o)?s.properties[o.hostPropertyName||i]=o_("this",i):zI(o)&&(s.listeners[o.eventName||i]=`${i}(${(o.args||[]).join(",")})`)}
37);let r=II(s,e);if(r.length)throw new Error(r.map(i=>i.msg).join(` 38`));return s}function jI(n){return n.ngMetadataName==="HostBinding"}function zI(n){return n.ngMetadataName==="HostListener"}function WI(n){return n.ngMetadataName==="Input"}function GI(n){return n.ngMetadataName==="Output"}function XI(n){return Object.keys(n).reduce((e,t)=>{let s=n[t];return typeof s=="string"||Array.isArray(s)?e[t]=QI(s):e[t]={bindingPropertyName:s.publicName,classPropertyName:t,transformFunction:s.transformFunction!==null?new ne(s.transformFunction):null,required:s.isRequired,isSignal:s.isSignal},e},{})}function QI(n){return typeof n=="string"?{bindingPropertyName:n,classPropertyName:n,transformFunction:null,required:!1,isSignal:!1}:{bindingPropertyName:n[0],classPropertyName:n[1],transformFunction:n[2]?new ne(n[2]):null,required:!1,isSignal:!1}}function YI(n){return n.reduce((e,t)=>{if(typeof t=="string"){let[s,r]=ew(t);e[r]={bindingPropertyName:s,classPropertyName:r,required:!1,isSignal:!1,transformFunction:null}}else e[t.name]={bindingPropertyName:t.alias||t.name,classPropertyName:t.name,required:t.required||!1,isSignal:!1,transformFunction:t.transform!=null?new ne(t.transform):null};return e},{})}function tp(n){return n.reduce((e,t)=>{let[s,r]=ew(t);return e[r]=s,e},{})}function ew(n){let[e,t]=n.split(":",2).map(s=>s.trim());return[t??e,e]}function KI(n){return{name:n.type.name,type:qe(n.type),typeArgumentCount:0,pipeName:n.name,deps:null,pure:n.pure??!0,isStandalone:n.isStandalone??Dy(n.version)}}function JI(n){return{name:n.type.name,type:qe(n.type),providers:n.providers!==void 0&&n.providers.length>0?new ne(n.providers):null,imports:n.imports!==void 0?n.imports.map(e=>new ne(e)):[]}}function ZI(n){let e=n.ng||(n.ng={});e.\u0275compilerFacade=new Nh}var Xo=class{defaultEncapsulation;preserveWhitespaces;strictInjectionParameters;constructor({defaultEncapsulation:e=is.Emulated,preserveWhitespaces:t,strictInjectionParameters:s}={}){this.defaultEncapsulation=e,this.preserveWhitespaces=eD(Yx(t)),this.strictInjectionParameters=s===!0}};function eD(n,e=!1){return n===null?e:n}var Ih=class{closedByParent=!1;implicitNamespacePrefix=null;isVoid=!1;ignoreFirstLf=!1;canSelfClose=!0;preventNamespaceInheritance=!1;requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return gn.PARSABLE_DATA}},pM=new Ih;var hM=new lp("21.2.18");ZI(Vi);var tD=[{provide:wa,useFactory:()=>new wa}],ef=class{_defaultOptions;constructor(e){let t={defaultEncapsulation:Sd.Emulated};this._defaultOptions=[t,...e]}createCompiler(e=[]){let t=nD(this._defaultOptions.concat(e));return fd.create({providers:[tD,{provide:Xo,useFactory:()=>new Xo({defaultEncapsulation:t.defaultEncapsulation,preserveWhitespaces:t.preserveWhitespaces}),deps:[]},t.providers]}).get(wa)}};function nD(n){return{defaultEncapsulation:tw(n.map(e=>e.defaultEncapsulation)),providers:sD(n.map(e=>e.providers)),preserveWhitespaces:tw(n.map(e=>e.preserveWhitespaces))}}function tw(n){for(let e=n.length-1;e>=0;e--)if(n[e]!==void 0)return n[e]}function sD(n){let e=[];return n.forEach(t=>t&&e.push(...t)),e}var rD=(()=>{class n extends ri{get(t){let s,r,i=new Promise((a,l)=>{s=a,r=l}),o=new XMLHttpRequest;return o.open("GET",t,!0),o.responseType="text",o.onload=function(){let a=o.response,l=o.status;l===0&&(l=a?200:0),200<=l&&l<=300?s(a):r(`Failed to load ${t}`)},o.onerror=function(){r(`Failed to load ${t}`)},o.send(),i}static \u0275fac=(()=>{let t;return function(r){return(t||(t=mr(n)))(r||n)}})();static \u0275prov=Y({token:n,factory:n.\u0275fac})}return n})(),iD=[{provide:mu,useValue:{providers:[{provide:ri,useClass:rD,deps:[]}]},multi:!0},{provide:kd,useClass:ef,deps:[mu]}],nw=Id(Rd,"browserDynamic",iD);function Nc(n){switch(n.responseType){case"json":return"response"in n?n.response:JSON.parse(n.responseText);case"document":return n.responseXML;default:return"response"in n?n.response:n.responseText}}var Ic=class{constructor(e,t,s,r="download_load"){this.originalEvent=e,this.xhr=t,this.request=s,this.type=r;let{status:i,responseType:o}=t;this.status=i??0,this.responseType=o??"";let a=t.getAllResponseHeaders();this.responseHeaders=a?a.split(` 39`).reduce((p,h)=>{let f=h.indexOf(": ");return p[h.slice(0,f)]=h.slice(f+2),p},{}):{},this.response=Nc(t);let{loaded:l,total:c}=e;this.loaded=l,this.total=c}};var ea=Jf(n=>function(t,s,r){this.message=t,this.name="AjaxError",this.xhr=s,this.request=r,this.status=s.status,this.responseType=s.responseType;let i;try{i=Nc(s)}catch(o){i=s.responseText}this.response=i}),sw=(()=>{function n(e,t){return ea.call(this,"ajax timeout",e,t),this.name="AjaxTimeoutError",this}return n.prototype=Object.create(ea.prototype),n})();function oD(n,e){return jn({method:"GET",url:n,headers:e})}function aD(n,e,t){return jn({method:"POST",url:n,body:e,headers:t})}function lD(n,e){return jn({method:"DELETE",url:n,headers:e})}function cD(n,e,t){return jn({method:"PUT",url:n,body:e,headers:t})}function uD(n,e,t){return jn({method:"PATCH",url:n,body:e,headers:t})}var pD=D(n=>n.response);function hD(n,e){return pD(jn({method:"GET",url:n,headers:e}))}var jn=(()=>{let n=e=>dD(typeof e=="string"?{url:e}:e);return n.get=oD,n.post=aD,n.delete=lD,n.put=cD,n.patch=uD,n.getJSON=hD,n})(),fD="upload",rw="download",tf="loadstart",nf="progress",iw="load";function dD(n){return new yi(e=>{var t,s;let r=Object.assign({async:!0,crossDomain:!1,withCredentials:!1,method:"GET",timeout:0,responseType:"json"},n),{queryParams:i,body:o,headers:a}=r,l=r.url;if(!l)throw new TypeError("url is required");if(i){let w;if(l.includes("?")){let G=l.split("?");if(2<G.length)throw new TypeError("invalid url");
39w=new URLSearchParams(G[1]),new URLSearchParams(i).forEach((Z,de)=>w.set(de,Z)),l=G[0]+"?"+w}else w=new URLSearchParams(i),l=l+"?"+w}let c={};if(a)for(let w in a)a.hasOwnProperty(w)&&(c[w.toLowerCase()]=a[w]);let p=r.crossDomain;!p&&!("x-requested-with"in c)&&(c["x-requested-with"]="XMLHttpRequest");let{withCredentials:h,xsrfCookieName:f,xsrfHeaderName:g}=r;if((h||!p)&&f&&g){let w=(s=(t=document?.cookie.match(new RegExp(`(^|;\\s*)(${f})=([^;]*)`)))===null||t===void 0?void 0:t.pop())!==null&&s!==void 0?s:"";w&&(c[g]=w)}let m=mD(o,c),y=Object.assign(Object.assign({},r),{url:l,headers:c,body:m}),x;x=n.createXHR?n.createXHR():new XMLHttpRequest;{let{progressSubscriber:w,includeDownloadProgress:G=!1,includeUploadProgress:Z=!1}=n,de=(Pe,_e)=>{x.addEventListener(Pe,()=>{var Ye;let cn=_e();(Ye=w?.error)===null||Ye===void 0||Ye.call(w,cn),e.error(cn)})};de("timeout",()=>new sw(x,y)),de("abort",()=>new ea("aborted",x,y));let Ee=(Pe,_e)=>new Ic(_e,x,y,`${Pe}_${_e.type}`),dt=(Pe,_e,Ye)=>{Pe.addEventListener(_e,cn=>{e.next(Ee(Ye,cn))})};Z&&[tf,nf,iw].forEach(Pe=>dt(x.upload,Pe,fD)),w&&[tf,nf].forEach(Pe=>x.upload.addEventListener(Pe,_e=>{var Ye;return(Ye=w?.next)===null||Ye===void 0?void 0:Ye.call(w,_e)})),G&&[tf,nf].forEach(Pe=>dt(x,Pe,rw));let Dn=Pe=>{let _e="ajax error"+(Pe?" "+Pe:"");e.error(new ea(_e,x,y))};x.addEventListener("error",Pe=>{var _e;(_e=w?.error)===null||_e===void 0||_e.call(w,Pe),Dn()}),x.addEventListener(iw,Pe=>{var _e,Ye;let{status:cn}=x;if(cn<400){(_e=w?.complete)===null||_e===void 0||_e.call(w);let Si;try{Si=Ee(rw,Pe)}catch(L){e.error(L);return}e.next(Si),e.complete()}else(Ye=w?.error)===null||Ye===void 0||Ye.call(w,Pe),Dn(cn)})}let{user:_,method:T,async:F}=y;_?x.open(T,l,F,_,y.password):x.open(T,l,F),F&&(x.timeout=y.timeout,x.responseType=y.responseType),"withCredentials"in x&&(x.withCredentials=y.withCredentials);for(let w in c)c.hasOwnProperty(w)&&x.setRequestHeader(w,c[w]);return m?x.send(m):x.send(),()=>{x&&x.readyState!==4&&x.abort()}})}function mD(n,e){var t;if(!n||typeof n=="string"||wD(n)||AD(n)||vD(n)||SD(n)||yD(n)||xD(n))return n;if(ED(n))return n.buffer;if(typeof n=="object")return e["content-type"]=(t=e["content-type"])!==null&&t!==void 0?t:"application/json;charset=utf-8",JSON.stringify(n);throw new TypeError("Unknown body type")}var gD=Object.prototype.toString;function sf(n,e){return gD.call(n)===`[object ${e}]`}function vD(n){return sf(n,"ArrayBuffer")}function SD(n){return sf(n,"File")}function yD(n){return sf(n,"Blob")}function ED(n){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(n)}function wD(n){return typeof FormData<"u"&&n instanceof FormData}function AD(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}function xD(n){return typeof ReadableStream<"u"&&n instanceof ReadableStream}var re=(function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n})(re||{}),on="*";function ow(n,e=null){return{type:re.Sequence,steps:n,options:e}}function rf(n){return{type:re.Style,styles:n,offset:null}}var zn=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e
vendor: 60,695 bytes, line 39
39=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},ui=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,s=0,r=0,i=this.players.length;i==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==i&&this._onFinish()}),o.onDestroy(()=>{++s==i&&this._onDestroy()}),o.onStart(()=>{++r==i&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(s=>{let r=s.totalTime?Math.min(1,t/s.totalTime):1;s.setPosition(r)})}getPosition(){let e=this.players.reduce((t,s)=>t===null||s.totalTime>t.totalTime?s:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},ta="!";function aw(n){return new ue(3e3,!1)}function _D(){return new ue(3100,!1)}function CD(){return new ue(3101,!1)}function bD(n){return new ue(3001,!1)}function TD(n){return new ue(3003,!1)}function kD(n){return new ue(3004,!1)}function cw(n,e){return new ue(3005,!1)}function uw(){return new ue(3006,!1)}function pw(){return new ue(3007,!1)}function hw(n,e){return new ue(3008,!1)}function fw(n){return new ue(3002,!1)}function dw(n,e,t,s,r){return new ue(3010,!1)}function mw(){return new ue(3011,!1)}function gw(){return new ue(3012,!1)}function vw(){return new ue(3200,!1)}function Sw(){return new ue(3202,!1)}function yw(){return new ue(3013,!1)}function Ew(n){return new ue(3014,!1)}function ww(n){return new ue(3015,!1)}function Aw(n){return new ue(3016,!1)}function xw(n,e){return new ue(3404,!1)}function ND(n){return new ue(3502,!1)}function _w(n){return new ue(3503,!1)}function Cw(){return new ue(3300,!1)}function bw(n){return new ue(3504,!1)}function Tw(n){return new ue(3301,!1)}function kw(n,e){return new ue(3302,!1)}function Nw(n){return new ue(3303,!1)}function Iw(n,e){return new ue(3400,!1)}function Dw(n){return new ue(3401,!1)}function Pw(n){return new ue(3402,!1)}function Mw(n,e){return new ue(3505,!1)}function Wn(n){switch(n.length){case 0:return new zn;case 1:return n[0];default:return new ui(n)}}function cf(n,e,t=new Map,s=new Map){let r=[],i=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),p=c==o,h=p&&a||new Map;l.forEach((f,g)=>{let m=g,y=f;if(g!=="offset")switch(m=n.normalizePropertyName(m,r),y){case ta:y=t.get(g);break;case on:y=s.get(g);break;default:y=n.normalizeStyleValue(g,m,y,r);break}h.set(m,y)}),p||i.push(h),a=h,o=c}),r.length)throw ND(r);return i}function Dc(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&of(t,"start",n)));break;case"done":n.onDone(()=>s(t&&of(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&of(t,"destroy",n)));break}}function of(n,e,t){let s=t.totalTime,r=!!t.disabled,i=Pc(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s??n.totalTime,r),o=n._data;return o!=null&&(i._data=o),i}function Pc(n,e,t,s,r="",i=0,o){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:r,totalTime:i,disabled:!!o}}function bt(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function uf(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var ID=typeof document>"u"?null:document.documentElement;function Mc(n){let e=n.parentNode||n.host||null;return e===ID?null:e}function DD(n){return n.substring(1,6)=="ebkit"}var ur=null,lw=!1;function Lw(n){ur||(ur=PD()||{},lw=ur.style?"WebkitAppearance"in ur.style:!1);let e=!0;return ur.style&&!DD(n)&&(e=n in ur.style,!e&&lw&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in ur.style)),e}function PD(){return typeof document<"u"?document.body:null}function pf(n,e){for(;e;){if(e===n)return!0;e=Mc(e)}return!1}function hf(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var MD=1e3,ff="{{",LD="}}",df="ng-enter",Lc="ng-leave",na="ng-trigger",sa=".ng-trigger",mf="ng-animating",Rc=".ng-animating";function In(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:af(parseFloat(e[1]),e[2])}function af(n,e){return e==="s"?n*MD:n}function ra(n,e,t){return n.hasOwnProperty("duration")?n:FD(n,e,t)}var RD=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function FD(n,e,t){let s,r=0,i="";if(typeof n=="string"){let o=n.match(RD);if(o===null)return e.push(aw(n)),{duration:0,delay:0,easing:""};s=af(parseFloat(o[1]),o[2]);let a=o[3];a!=null&&(r=af(parseFloat(a),o[4]));let l=o[5];l&&(i=l)}else s=n;if(!t){let o=!1,a=e.length;s<0&&(e.push(_D()),o=!0),r<0&&(e.push(CD()),o=!0),o&&e.splice(a,0,aw(n))}return{duration:s,delay:r,easing:i}}function Rw(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function an(n,e,t){e.forEach((s,r)=>{let i=Fc(r);t&&!t.has(r)&&t.set(r,n.style[i]),n.style[i]=s})}function _s(n,e){e.forEach((t,s)=>{let r=Fc(s);n.style[r]=""})}function pi(n){return Array.isArray(n)?n.length==1?n[0]:ow(n):n}function Fw(n,e,t){let s=e.params||{},r=gf(n);r.length&&r.forEach(i=>{s.hasOwnProperty(i)||t.push(bD(i))})}var lf=new RegExp(`${ff}\\s*(.+?)\\s*${LD}`,"g");function gf(n){let e=[];if(typeof n=="string"){let t;for(;t=lf.exec(n);)e.push(t[1]);lf.lastIndex=0}return e}function hi(n,e,t){let s=`${n}`,r=s.replace(lf,(i,o)=>{let a=e[o];return a==null&&(t.push(TD(o)),a=""),a.toString()});return r==s?n:r}var BD=/-+([a-z0-9])/g;function Fc(n){return n.replace(BD,(...e)=>e[1].toUpperCase())}function Bw(n,e){return n===0||e===0}function Ow(n,e,t){if(t.size&&e.length){let s=e[0],r=[];if(t.forEach((i,o)=>{s.has(o)||r.push(o),s.set(o,i)}),r.length)for(let i=1;i<e.length;i++){let o=e[i];r.forEach(a=>o.set(a,Bc(n,a)))}}return e}function Tt(n,e,t){switch(e.type){case re.Trigger:return n.visitTrigger(e,t);case re.State:return n.visitState(e,t);case re.Transition:return n.visitTransition(e,t);case re.Sequence:return n.visitSequence(e,t);case re.Group:return n.visitGroup(e,t);case re.Animate:return n.visitAnimate(e,t);case re.Keyframes:return n.visitKeyframes(e,t);case re.Style:return n.visitStyle(e,t);case re.Reference:return n.visitReference(e,t);case re.AnimateChild:return n.visitAnimateChild(e,t);case re.AnimateRef:return n.visitAnimateRef(e,t);case re.Query:return n.visitQuery(e,t);case re.Stagger:return n.visitStagger(e,t);default:throw kD(e.type)}}function Bc(n,e){return window.getComputedStyle(n)[e]}var Mf=(()=>{class n{validateStyleProperty(t){return Lw(t)}containsElement(t,s){return pf(t,s)}getParentElement(t){return Mc(t)}query(t,s,r){return hf(t,s,r)}computeStyle(t,s,r){return r||""}animate(t,s,r,i,o,a=[],l){return new zn(r,i)}static \u0275fac=function(s){return new(s||n)};static \u0275prov=Y({token:n,factory:n.\u0275fac})}return n})(),hr=class{static NOOP=new Mf},fr=class{};var OD=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),qc=class extends fr{normalizePropertyName(e,t){return Fc(e)}normalizeStyleValue(e,t,s,r){let i="",o=s.toString().trim();if(OD.has(t)&&s!==0&&s!=="0")if(typeof s=="number")i="px";else{let a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(cw(e,s))}return o+i}};var Hc="*";function $D(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>UD(s,t,e)):t.push(n),t}function UD(n,e,t){if(n[0]==":"){let l=VD(n,t);if(typeof l=="function"){e.push(l);return}n=l}let s=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(ww(n)),e;let r=s[1],i=s[2],o=s[3];e.push($w(r,o));let a=r==Hc&&o==Hc;i[0]=="<"&&!a&&e.push($w(o,r))}function VD(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s)<parseFloat(t);default:return e.push(Aw(n)),"* => *"}}var Oc=new Set(["true","1"]),$c=new Set(["false","0"]);function $w(n,e){let t=Oc.has(n)||$c.has(n),s=Oc.has(e)||$c.has(e);return(r,i)=>{let o=n==Hc||n==r,a=e==Hc||e==i;return!o&&t&&typeof r=="boolean"&&(o=r?Oc.has(n):$c.has(n)),!a&&s&&typeof i=="boolean"&&(a=i?Oc.has(e):$c.has(e)),o&&a}}var Qw=":self",qD=new RegExp(`s*${Qw}s*,?`,"g");function Yw(n,e,t,s){return new Af(n).build(e,t,s)}var Uw="",Af=class{_driver;constructor(e){this._driver=e}build(e,t,s){let r=new xf(t);return this._resetContextStyleTimingState(r),Tt(this,pi(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=Uw,e.collectedStyles=new Map,e.collectedStyles.set(Uw,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,r=t.depCount=0,i=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(uw()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==re.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(p=>{l.name=p,i.push(this.visitState(l,t))}),l.name=c}else if(a.type==re.Transition){let l=this.visitTransition(a,t);s+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(pw())}),{type:re.Trigger,name:e.name,states:i,transitions:o,queryCount:s,depCount:r,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(s.containsDynamicStyles){let i=new Set,o=r||{};s.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{gf(l).forEach(c=>{o.hasOwnProperty(c)||i.add(c)})})}),i.size&&t.errors.push(hw(e.name,[...i.values()]))}return{type:re.State,name:e.name,style:s,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=Tt(this,pi(e.animation),t),r=$D(e.expr,t.errors);return{type:re.Transition,matchers:r,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:pr(e.options)}}visitSequence(e,t){return{type:re.Sequence,steps:e.steps.map(s=>Tt(this,s,t)),options:pr(e.options)}}visitGroup(e,t){let s=t.currentTime,r=0,i=e.steps.map(o=>{t.currentTime=s;let a=Tt(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:re.Group,steps:i,options:pr(e.options)}}visitAnimate(e,t){let s=WD(e.timings,t.errors);t.currentAnimateTimings=s;let r,i=e.styles?e.styles:rf({});if(i.type==re.Keyframes)r=this.visitKeyframes(i,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};s.easing&&(c.easing=s.easing),o=rf(c)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:re.Animate,timings:s,style:r,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===on?s.push(a):t.errors.push(fw(a)):s.push(new Map(Object.entries(a)));let i=!1,o=null;return s.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!i)){for(let l of a.values())if(l.toString().indexOf(ff)>=0){i=!0;break}}}),{type:re.Style,styles:s,easing:o,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,r=t.currentTime,i=t.currentTime;s&&i>0&&(i-=s.duration+s.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),p=c.get(l),h=!0;p&&(i!=r&&i>=p.startTime&&r<=p.endTime&&(t.errors.push(dw(l,p.startTime,p.endTime,i,r)),h=!1),i=p.startTime),h&&c.set(l,{startTime:i,endTime:r}),t.options&&Fw(a,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:re.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(mw()),s;let r=1,i=0,o=[],a=!1,l=!1,c=0,p=e.steps.map(_=>{let T=this._makeStyleAst(_,t),F=T.offset!=null?T.offset:zD(T.styles),w=0;return F!=null&&(i++,w=T.offset=F),l=l||w<0||w>1,a=a||w<c,c=w,o.push(w),T});l&&t.errors.push(gw()),a&&t.errors.push(vw());let h=e.steps.length,f=0;i>0&&i<h?t.errors.push(Sw()):i==0&&(f=r/(h-1));let g=h-1,m=t.currentTime,y=t.currentAnimateTimings,x=y.duration;return p.forEach((_,T)=>{let F=f>0?T==g?1:f*T:o[T],w=F*x;t.currentTime=m+y.delay+w,y.duration=w,this._validateStyleAst(_,t),_.offset=F,s.styles.push(_)}),s}visitReference(e,t){return{type:re.Reference,animation:Tt(this,pi(e.animation),t),options:pr(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:re.AnimateChild,options:pr(e.options)}}visitAnimateRef(e,t){return{type:re.AnimateRef,animation:this.visitReference(e.animation,t),options:pr(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[i,o]=HD(e.selector);t.currentQuerySelector=s.length?s+" "+i:i,bt(t.collectedStyles,t.currentQuerySelector,new Map);let a=Tt(this,pi(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:re.Query,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:pr(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(yw());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:ra(e.timings,t.errors,!0);return{type:re.Stagger,animation:Tt(this,pi(e.animation),t),timings:s,options:null}}};function HD(n){let e=!!n.split(/\s*,\s*/).find(t=>t==Qw);return e&&(n=n.replace(qD,"")),n=n.replace(/@\*/g,sa).replace(/@\w+/g,t=>sa+"-"+t.slice(1)).replace(/:animating/g,Rc),[n,e]}function jD(n){return n?E({},n):null}var xf=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function zD(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function WD(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let i=ra(n,e).duration;return vf(i,0,"")}let t=n;if(t.split(/\s+/).some(i=>i.charAt(0)=="{"&&i.charAt(1)=="{")){let i=vf(0,0,"");return i.dynamic=!0,i.strValue=t,i}let r=ra(t,e);return vf(r.duration,r.delay,r.easing)}function pr(n){return n?(n=E({},n),n.params&&(n.params=jD(n.params))):n={},n}function vf(n,e,t){return{duration:n,delay:e,easing:t}}function Lf(n,e,t,s,r,i,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:r,delay:i,totalTime:r+i,easing:o,subTimeline:a}}var oa=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},GD=1,XD=":enter",QD=new RegExp(XD,"g"),YD=":leave",KD=new RegExp(YD,"g");function Kw(n,e,t,s,r,i=new Map,o=new Map,a,l,c=[]){return new _f().buildKeyframes(n,e,t,s,r,i,o,a,l,c)}var _f=class{buildKeyframes(e,t,s,r,i,o,a,l,c,p=[]){c=c||new oa;let h=new Cf(e,t,c,r,i,p,[]);h.options=l;let f=l.delay?In(l.delay):0;h.currentTimeline.delayNextStep(f),h.currentTimeline.setStyles([o],null,h.errors,l),Tt(this,s,h);let g=h.timelines.filter(m=>m.containsAnimation());if(g.length&&a.size){let m;for(let y=g.length-1;y>=0;y--){let x=g[y];if(x.element===t){m=x;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,h.errors,l)}return g.length?g.map(m=>m.buildKeyframes()):[Lf(t,[],[],[],0,f,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(s,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let r of e){let i=r?.delay;if(i){let o=typeof i=="number"?i:In(hi(i,r?.params??{},t.errors));s.delayNextStep(o)}}}_visitSubInstructions(e,t,s){let i=t.currentTimeline.currentTime,o=s.duration!=null?In(s.duration):null,a=s.delay!=null?In(s.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);i=Math.max(i,c.duration+c.delay)}),i}visitReference(e,t){t.updateOptions(e.options,!0),Tt(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,r=t,i=e.options;if(i&&(i.params||i.delay)&&(r=t.createSubContext(i),r.transformIntoNewTimeline(),i.delay!=null)){r.previousNode.type==re.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=jc);let o=In(i.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Tt(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>s&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],r=t.currentTimeline.currentTime,i=e.options&&e.options.delay?In(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);i&&a.delayNextStep(i),Tt(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),s.push(a.currentTimeline)}),s.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,r=t.params?hi(s,t.params,t.errors):s;return ra(r,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),r.snapshotCurrentStyles());let i=e.style;i.type==re.Keyframes?this.visitKeyframes(i,t):(t.incrementTime(s.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,r=t.currentAnimateTimings;!r&&s.hasCurrentStyleProperties()&&s.forwardFrame();let i=r&&r.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(i):s.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,r=t.currentTimeline.duration,i=s.duration,a=t.createSubContext().currentTimeline;a.easing=s.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*i),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+i),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,r=e.options||{},i=r.delay?In(r.delay):0;i&&(t.previousNode.type===re.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=jc);let o=s,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,p)=>{t.currentQueryIndex=p;let h=t.createSubContext(e.options,c);i&&h.delayNextStep(i),c===t.element&&(l=h.currentTimeline),Tt(this,e.animation,h),h.currentTimeline.applyStylesToKeyframe();let f=h.currentTimeline.currentTime;o=Math.max(o,f)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":l=a-l;break;case"full":l=s.currentStaggerTime;break}let p=t.currentTimeline;l&&p.delayNextStep(l);let h=p.currentTime;Tt(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=r.currentTime-h+(r.startTime-s.currentTimeline.startTime)}},jc={},Cf=class n{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=jc;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,s,r,i,o,a,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=a,this.currentTimeline=l||new zc(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,r=this.options;s.duration!=null&&(r.duration=In(s.duration)),s.delay!=null&&(r.delay=In(s.delay));let i=s.params;if(i){let o=r.params;o||(o=this.options.params={}),Object.keys(i).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=hi(i[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(r=>{s[r]=t[r]})}}return e}createSubContext(e=null,t,s){let r=t||this.element,i=new n(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,s||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=jc,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},i=new bf(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,r,i,o){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(QD,"."+this._enterClassName),e=e.replace(KD,"."+this._leaveClassName);let l=s!=1,c=this._driver.query(this.element,e,l);s!==0&&(c=s<0?c.slice(c.length+s,c.length):c.slice(0,s)),a.push(...c)}return!i&&a.length==0&&o.push(Ew(t)),a}},zc=class n{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,s,r){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=GD,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||on),this._currentKeyframe.set(t,on);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,r){t&&this._previousKeyframe.set("easing",t);let i=r&&r.params||{},o=JD(e,this._globalTimelineStyles);for(let[a,l]of o){let c=hi(l,i,s);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??on),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let r=this._styleSummary.get(s);(!r||t.time>r.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((p,h)=>{p===ta?e.add(h):p===on&&t.add(h)}),s||c.set("offset",l/this.duration),r.push(c)});let i=[...e.values()],o=[...t.values()];if(s){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Lf(this.element,r,i,o,this.duration,this.startTime,this.easing,!1)}},bf=class extends zc{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,s,r,i,o,a=!1){super(e,t,o.delay),this.keyframes=s,this.preStyleProps=r,this.postStyleProps=i,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){let i=[],o=s+t,a=t/o,l=new Map(e[0]);l.set("offset",0),i.push(l);let c=new Map(e[0]);c.set("offset",Vw(a)),i.push(c);let p=e.length-1;for(let h=1;h<=p;h++){let f=new Map(e[h]),g=f.get("offset"),m=t+g*s;f.set("offset",Vw(m/o)),i.push(f)}s=o,t=0,r="",e=i}return Lf(this.element,e,this.preStyleProps,this.postStyleProps,s,t,r,!0)}};function Vw(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function JD(n,e){let t=new Map,s;return n.forEach(r=>{if(r==="*"){s??=e.keys();for(let i of s)t.set(i,on)}else for(let[i,o]of r)t.set(i,o)}),t}function qw(n,e,t,s,r,i,o,a,l,c,p,h,f){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:i,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:p,totalTime:h,errors:f}}var Sf={},Wc=class{_triggerName;ast;_stateStyles;constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,r){return ZD(this.ast.matchers,e,t,s,r)}buildStyles(e,t,s){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,s):new Map}build(e,t,s,r,i,o,a,l,c,p){let h=[],f=this.ast.options&&this.ast.options.params||Sf,g=a&&a.params||Sf,m=this.buildStyles(s,g,h),y=l&&l.params||Sf,x=this.buildStyles(r,y,h),_=new Set,T=new Map,F=new Map,w=r==="void",G={params:Jw(y,f),delay:this.ast.options?.delay},Z=p?[]:Kw(e,t,this.ast.animation,i,o,m,x,G,c,h),de=0;return Z.forEach(Ee=>{de=Math.max(Ee.duration+Ee.delay,de)}),h.length?qw(t,this._triggerName,s,r,w,m,x,[],[],T,F,de,h):(Z.forEach(Ee=>{let dt=Ee.element,Dn=bt(T,dt,new Set);Ee.preStyleProps.forEach(_e=>Dn.add(_e));let Pe=bt(F,dt,new Set);Ee.postStyleProps.forEach(_e=>Pe.add(_e)),dt!==t&&_.add(dt)}),qw(t,this._triggerName,s,r,w,m,x,Z,[..._.values()],T,F,de))}};function ZD(n,e,t,s,r){return n.some(i=>i(e,t,s,r))}function Jw(n,e){let t=E({},e);return Object.entries(n).forEach(([s,r])=>{r!=null&&(t[s]=r)}),t}var Tf=class{styles;defaultParams;normalizer;constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,r=Jw(e,this.defaultParams);return this.styles.styles.forEach(i=>{typeof i!="string"&&i.forEach((o,a)=>{o&&(o=hi(o,r,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),s.set(a,o)})}),s}};function eP(n,e,t){return new kf(n,e,t)}var kf=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,t.states.forEach(r=>{let i=r.options&&r.options.params||{};this.states.set(r.name,new Tf(r.style,i,s))}),Hw(this.states,"true","1"),Hw(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Wc(e,r,this.states))}),this.fallbackTransition=tP(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,r){return this.transitionFactories.find(o=>o.match(e,t,s,r))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function tP(n,e,t){let s=[(o,a)=>!0],r={type:re.Sequence,steps:[],options:null},i={type:re.Transition,animation:r,matchers:s,options:null,queryCount:0,depCount:0};return new Wc(n,i,e)}function Hw(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var nP=new oa,Nf=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s}register(e,t){let s=[],r=[],i=Yw(this._driver,t,s,r);if(s.length)throw _w(s);this._animations.set(e,i)}_buildPlayer(e,t,s){let r=e.element,i=cf(this._normalizer,e.keyframes,t,s);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let r=[],i=this._animations.get(e),o,a=new Map;if(i?(o=Kw(this._driver,t,i,df,Lc,new Map,new Map,s,nP,r),o.forEach(p=>{let h=bt(a,p.element,new Map);p.postStyleProps.forEach(f=>h.set(f,null))})):(r.push(Cw()),o=[]),r.length)throw bw(r);a.forEach((p,h)=>{p.forEach((f,g)=>{p.set(g,this._driver.computeStyle(h,g,on))})});let l=o.map(p=>{let h=a.get(p.element);return this._buildPlayer(p,new Map,h)}),c=Wn(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Tw(e);return t}listen(e,t,s,r){let i=Pc(t,"","","");return Dc(this._getPlayer(e),s,i,r),()=>{}}command(e,t,s,r){if(s=="register"){this.register(e,r[0]);return}if(s=="create"){let o=r[0]||{};this.create(e,t,o);return}let i=this._getPlayer(e);switch(s){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},jw="ng-animate-queued",sP=".ng-animate-queued",yf="ng-animate-disabled",rP=".ng-animate-disabled",iP="ng-star-inserted",oP=".ng-star-inserted",aP=[],Zw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},lP={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ln="__ng_removed",aa=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),r=s?e.value:e;if(this.value=uP(r),s){let i=e,{value:o}=i,a=Kf(i,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(r=>{s[r]==null&&(s[r]=t[r])})}}},ia="void",Ef=new aa(ia),If=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this._hostClassName="ng-tns-"+e,Zt(t,this._hostClassName)}listen(e,t,s,r){if(!this._triggers.has(t))throw kw(s,t);if(s==null||s.length==0)throw Nw(t);if(!pP(s))throw Iw(s,t);let i=bt(this._elementListeners,e,[]),o={name:t,phase:s,callback:r};i.push(o);let a=bt(this._engine.statesByElement,e,new Map);return a.has(t)||(Zt(e,na),Zt(e,na+"-"+t),a.set(t,Ef)),()=>{this._engine.afterFlush(()=>{let l=i.indexOf(o);l>=0&&i.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Dw(e);return t}trigger(e,t,s,r=!0){let i=this._getTrigger(t),o=new la(this.id,t,e),a=this._engine.statesByElement.get(e);a||(Zt(e,na),Zt(e,na+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new aa(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Ef),!(c.value===ia)&&l.value===c.value){if(!dP(l.params,c.params)){let y=[],x=i.matchStyles(l.value,l.params,y),_=i.matchStyles(c.value,c.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{_s(e,x),an(e,_)})}return}let f=bt(this._engine.playersByElement,e,[]);f.forEach(y=>{y.namespaceId==this.id&&y.triggerName==t&&y.queued&&y.destroy()});let g=i.matchTransition(l.value,c.value,e,c.params),m=!1;if(!g){if(!r)return;g=i.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:g,fromState:l,toState:c,player:o,isFallbackTransition:m}),m||(Zt(e,jw),o.onStart(()=>{fi(e,jw)})),o.onDone(()=>{let y=this.players.indexOf(o);y>=0&&this.players.splice(y,1);let x=this._engine.playersByElement.get(e);if(x){let _=x.indexOf(o);_>=0&&x.splice(_,1)}}),this.players.push(o),f.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,sa,!0);s.forEach(r=>{if(r[ln])return;let i=this._engine.fetchNamespacesByElement(r);i.size?i.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,s,r){let i=this._engine.statesByElement.get(e),o=new Map;if(i){let a=[];if(i.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let p=this.trigger(e,c,ia,r);p&&a.push(p)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),s&&Wn(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let r=new Set;t.forEach(i=>{let o=i.name;if(r.has(o))return;r.add(o);let l=this._triggers.get(o).fallbackTransition,c=s.get(o)||Ef,p=new aa(ia),h=new la(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:p,player:h,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(s.totalAnimations){let i=s.players.length?s.playersByQueriedElement.get(e):[];if(i&&i.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(s.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)s.markElementAsRemoved(this.id,e,!1,t);else{let i=e[ln];(!i||i===Zw)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){Zt(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let r=s.player;if(r.destroyed)return;let i=s.element,o=this._elementListeners.get(i);o&&o.forEach(a=>{if(a.name==s.triggerName){let l=Pc(i,s.triggerName,s.fromState.value,s.toState.value);l._data=e,Dc(s.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(s)}),this._queue=[],t.sort((s,r)=>{let i=s.transition.ast.depCount,o=r.transition.ast.depCount;return i==0||o==0?i-o:this._engine.driver.containsElement(s.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Df=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new If(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,r=this.namespacesByHostElement;if(s.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=r.get(a);if(l){let c=s.indexOf(l);s.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||s.unshift(e)}else s.push(e);return r.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let r=this._namespaceLookup[e];r&&r.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let r=this._namespaceList.indexOf(s);r>=0&&this._namespaceList.splice(r,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let r of s.values())if(r.namespaceId){let i=this._fetchNamespace(r.namespaceId);i&&t.add(i)}}return t}trigger(e,t,s,r){if(Uc(t)){let i=this._fetchNamespace(e);if(i)return i.trigger(t,s,r),!0}return!1}insertNode(e,t,s,r){if(!Uc(t))return;let i=t[ln];if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,s)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Zt(e,yf)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),fi(e,yf))}removeNode(e,t,s){if(Uc(t)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let i=this.namespacesByHostElement.get(t);i&&i.id!==e&&i.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,r,i){this.collectedLeaveElements.push(t),t[ln]={namespaceId:e,setForRemoval:r,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,t,s,r,i){return Uc(t)?this._fetchNamespace(e).listen(t,s,r,i):()=>{}}_buildInstruction(e,t,s,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,r,e.fromState.options,e.toState.options,t,i)}destroyInnerAnimations(e){let t=this.driver.query(e,sa,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Rc,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Wn(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[ln];if(t&&t.setForRemoval){if(e[ln]=Zw,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(yf)&&this.markElementAsDisabled(e,!1),this.driver.query(e,rP,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,r)=>this._balanceNamespaceList(s,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;s<this.collectedEnterElements.length;s++){let r=this.collectedEnterElements[s];Zt(r,iP)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let s=[];try{t=this._flushAnimations(s,e)}finally{for(let r=0;r<s.length;r++)s[r]()}}else for(let s=0;s<this.collectedLeaveElements.length;s++){let r=this.collectedLeaveElements[s];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(s=>s()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?Wn(t).onDone(()=>{s.forEach(r=>r())}):s.forEach(r=>r())}}reportError(e){throw Pw(e)}_flushAnimations(e,t){let s=new oa,r=[],i=new Map,o=[],a=new Map,l=new Map,c=new Map,p=new Set;this.disabledNodes.forEach(L=>{p.add(L);let O=this.driver.query(L,sP,!0);for(let H=0;H<O.length;H++)p.add(O[H])});let h=this.bodyNode,f=Array.from(this.statesByElement.keys()),g=Gw(f,this.collectedEnterElements),m=new Map,y=0;g.forEach((L,O)=>{let H=df+y++;m.set(O,H),L.forEach(le=>Zt(le,H))});let x=[],_=new Set,T=new Set;for(let L=0;L<this.collectedLeaveElements.length;L++){let O=this.collectedLeaveElements[L],H=O[ln];H&&H.setForRemoval&&(x.push(O),_.add(O),H.hasAnimation?this.driver.query(O,oP,!0).forEach(le=>_.add(le)):T.add(O))}let F=new Map,w=Gw(f,Array.from(_));w.forEach((L,O)=>{let H=Lc+y++;F.set(O,H),L.forEach(le=>Zt(le,H))}),e.push(()=>{g.forEach((L,O)=>{let H=m.get(O);L.forEach(le=>fi(le,H))}),w.forEach((L,O)=>{let H=F.get(O);L.forEach(le=>fi(le,H))}),x.forEach(L=>{this.processLeaveNode(L)})});let G=[],Z=[];for(let L=this._namespaceList.length-1;L>=0;L--)this._namespaceList[L].drainQueuedTransitions(t).forEach(H=>{let le=H.player,ze=H.element;if(G.push(le),this.collectedEnterElements.length){let nt=ze[ln];if(nt&&nt.setForMove){if(nt.previousTriggersValues&&nt.previousTriggersValues.has(H.triggerName)){let Cs=nt.previousTriggersValues.get(H.triggerName),Vt=this.statesByElement.get(H.element);if(Vt&&Vt.has(H.triggerName)){let pa=Vt.get(H.triggerName);pa.value=Cs,Vt.set(H.triggerName,pa)}}le.destroy();return}}let un=!h||!this.driver.containsElement(h,ze),kt=F.get(ze),Xn=m.get(ze),Ne=this._buildInstruction(H,s,Xn,kt,un);if(Ne.errors&&Ne.errors.length){Z.push(Ne);return}if(un){le.onStart(()=>_s(ze,Ne.fromStyles)),le.onDestroy(()=>an(ze,Ne.toStyles)),r.push(le);return}if(H.isFallbackTransition){le.onStart(()=>_s(ze,Ne.fromStyles)),le.onDestroy(()=>an(ze,Ne.toStyles)),r.push(le);return}let Qf=[];Ne.timelines.forEach(nt=>{nt.stretchStartingKeyframe=!0,this.disabledNodes.has(nt.element)||Qf.push(nt)}),Ne.timelines=Qf,s.append(ze,Ne.timelines);let gx={instruction:Ne,player:le,element:ze};o.push(gx),Ne.queriedElements.forEach(nt=>bt(a,nt,[]).push(le)),Ne.preStyleProps.forEach((nt,Cs)=>{if(nt.size){let Vt=l.get(Cs);Vt||l.set(Cs,Vt=new Set),nt.forEach((pa,cu)=>Vt.add(cu))}}),Ne.postStyleProps.forEach((nt,Cs)=>{let Vt=c.get(Cs);Vt||c.set(Cs,Vt=new Set),nt.forEach((pa,cu)=>Vt.add(cu))})});if(Z.length){let L=[];Z.forEach(O=>{L.push(Mw(O.triggerName,O.errors))}),G.forEach(O=>O.destroy()),this.reportError(L)}let de=new Map,Ee=new Map;o.forEach(L=>{let O=L.element;s.has(O)&&(Ee.set(O,O),this._beforeAnimationBuild(L.player.namespaceId,L.instruction,de))}),r.forEach(L=>{let O=L.element;this._getPreviousPlayers(O,!1,L.namespaceId,L.triggerName,null).forEach(le=>{bt(de,O,[]).push(le),le.destroy()})});let dt=x.filter(L=>Xw(L,l,c)),Dn=new Map;Ww(Dn,this.driver,T,c,on).forEach(L=>{Xw(L,l,c)&&dt.push(L)});let _e=new Map;g.forEach((L,O)=>{Ww(_e,this.driver,new Set(L),l,ta)}),dt.forEach(L=>{let O=Dn.get(L),H=_e.get(L);Dn.set(L,new Map([...O?.entries()??[],...H?.entries()??[]]))});let Ye=[],cn=[],Si={};o.forEach(L=>{let{element:O,player:H,instruction:le}=L;if(s.has(O)){if(p.has(O)){H.onDestroy(()=>an(O,le.toStyles)),H.disabled=!0,H.overrideTotalTime(le.totalTime),r.push(H);return}let ze=Si;if(Ee.size>1){let kt=O,Xn=[];for(;kt=kt.parentNode;){let Ne=Ee.get(kt);if(Ne){ze=Ne;break}Xn.push(kt)}Xn.forEach(Ne=>Ee.set(Ne,ze))}let un=this._buildAnimation(H.namespaceId,le,de,i,_e,Dn);if(H.setRealPlayer(un),ze===Si)Ye.push(H);else{let kt=this.playersByElement.get(ze);kt&&kt.length&&(H.parentPlayer=Wn(kt)),r.push(H)}}else _s(O,le.fromStyles),H.onDestroy(()=>an(O,le.toStyles)),cn.push(H),p.has(O)&&r.push(H)}),cn.forEach(L=>{let O=i.get(L.element);if(O&&O.length){let H=Wn(O);L.setRealPlayer(H)}}),r.forEach(L=>{L.parentPlayer?L.syncPlayerEvents(L.parentPlayer):L.destroy()});for(let L=0;L<x.length;L++){let O=x[L],H=O[ln];if(fi(O,Lc),H&&H.hasAnimation)continue;let le=[];if(a.size){let un=a.get(O);un&&un.length&&le.push(...un);let kt=this.driver.query(O,Rc,!0);for(let Xn=0;Xn<kt.length;Xn++){let Ne=a.get(kt[Xn]);Ne&&Ne.length&&le.push(...Ne)}}let ze=le.filter(un=>!un.destroyed);ze.length?hP(this,O,ze):this.processLeaveNode(O)}return x.length=0,Ye.forEach(L=>{this.players.push(L),L.onDone(()=>{L.destroy();let O=this.players.indexOf(L);this.players.splice(O,1)}),L.play()}),Ye}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,r,i){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!i||i==ia;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(s||r)&&(o=o.filter(a=>!(s&&s!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,s){let r=t.triggerName,i=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:r;for(let l of t.timelines){let c=l.element,p=c!==i,h=bt(s,c,[]);this._getPreviousPlayers(c,p,o,a,t.toState).forEach(g=>{let m=g.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),g.destroy(),h.push(g)})}_s(i,t.fromStyles)}_buildAnimation(e,t,s,r,i,o){let a=t.triggerName,l=t.element,c=[],p=new Set,h=new Set,f=t.timelines.map(m=>{let y=m.element;p.add(y);let x=y[ln];if(x&&x.removedBeforeQueried)return new zn(m.duration,m.delay);let _=y!==l,T=fP((s.get(y)||aP).map(de=>de.getRealPlayer())).filter(de=>{let Ee=de;return Ee.element?Ee.element===y:!1}),F=i.get(y),w=o.get(y),G=cf(this._normalizer,m.keyframes,F,w),Z=this._buildPlayer(m,G,T);if(m.subTimeline&&r&&h.add(y),_){let de=new la(e,a,y);de.setRealPlayer(Z),c.push(de)}return Z});c.forEach(m=>{bt(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>cP(this.playersByQueriedElement,m.element,m))}),p.forEach(m=>Zt(m,mf));let g=Wn(f);return g.onDestroy(()=>{p.forEach(m=>fi(m,mf)),an(l,t.toStyles)}),h.forEach(m=>{bt(r,m,[]).push(g)}),g}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new zn(e.duration,e.delay)}},la=class{namespaceId;triggerName;element;_player=new zn;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(r=>Dc(e,s,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){bt(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function cP(n,e,t){let s=n.get(e);if(s){if(s.length){let r=s.indexOf(t);s.splice(r,1)}s.length==0&&n.delete(e)}return s}function uP(n){return n??null}function Uc(n){return n&&n.nodeType===1}function pP(n){return n=="start"||n=="done"}function zw(n,e){let t=n.style.display;return n.style.display=e??"none",t}function Ww(n,e,t,s,r){let i=[];t.forEach(l=>i.push(zw(l)));let o=[];s.forEach((l,c)=>{let p=new Map;l.forEach(h=>{let f=e.computeStyle(c,h,r);p.set(h,f),(!f||f.length==0)&&(c[ln]=lP,o.push(c))}),n.set(c,p)});let a=0;return t.forEach(l=>zw(l,i[a++])),o}function Gw(n,e){let t=new Map;if(n.forEach(a=>t.set(a,[])),e.length==0)return t;let s=1,r=new Set(e),i=new Map;function o(a){if(!a)return s;let l=i.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:r.has(c)?l=s:l=o(c),i.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==s&&t.get(l).push(a)}),t}function Zt(n,e){n.classList?.add(e)}function fi(n,e){n.classList?.remove(e)}function hP(n,e,t){Wn(t).onDone(()=>n.processLeaveNode(e))}function fP(n){let e=[];return eA(n,e),e}function eA(n,e){for(let t=0;t<n.length;t++){let s=n[t];s instanceof ui?eA(s.players,e):e.push(s)}}function dP(n,e){let t=Object.keys(n),s=Object.keys(e);if(t.length!=s.length)return!1;for(let r=0;r<t.length;r++){let i=t[r];if(!e.hasOwnProperty(i)||n[i]!==e[i])return!1}return!0}function Xw(n,e,t){let s=t.get(n);if(!s)return!1;let r=e.get(n);return r?s.forEach(i=>r.add(i)):e.set(n,s),t.delete(n),!0}var di=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,s){this._driver=t,this._normalizer=s,this._transitionEngine=new Df(e.body,t,s),this._timelineEngine=new Nf(e.body,t,s),this._transitionEngine.onRemovalComplete=(r,i)=>this.onRemovalComplete(r,i)}registerTrigger(e,t,s,r,i){let o=e+"-"+r,a=this._triggerCache[o];if(!a){let l=[],c=[],p=Yw(this._driver,i,l,c);if(l.length)throw xw(r,l);a=eP(r,p,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,r){this._transitionEngine.insertNode(e,t,s,r)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,r){if(s.charAt(0)=="@"){let[i,o]=uf(s),a=r;this._timelineEngine.command(i,t,o,a)}else this._transitionEngine.trigger(e,t,s,r)}listen(e,t,s,r,i){if(s.charAt(0)=="@"){let[o,a]=uf(s);return this._timelineEngine.listen(o,t,a,i)}return this._transitionEngine.listen(e,t,s,r,i)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function mP(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=wf(e[0]),e.length>1&&(s=wf(e[e.length-1]))):e instanceof Map&&(t=wf(e)),t||s?new gP(n,t,s):null}var gP=(()=>{class n{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,s,r){this._element=t,this._startStyles=s,this._endStyles=r;let i=n.initialStylesByElement.get(t);i||n.initialStylesByElement.set(t,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&an(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(an(this._element,this._initialStyles),this._endStyles&&(an(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(_s(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(_s(this._element,this._endStyles),this._endStyles=null),an(this._element,this._initialStyles),this._state=3)}}return n})();function wf(n){let e=null;return n.forEach((t,s)=>{vP(s)&&(e=e||new Map,e.set(s,t))}),e}function vP(n){return n==="display"||n==="position"}var Gc=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,s,r){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=r,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let e=this.keyframes,t=this._triggerWebAnimation(this.element,e,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=e.length?e[e.length-1]:new Map;let s=()=>this._onFinish();return t.addEventListener("finish",s),this.onDestroy(()=>{t.removeEventListener("finish",s)}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){let r=this._convertKeyframesToObject(t);try{return e.animate(r,s)}catch(i){return null}}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){let e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),e.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish())}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer?.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,r)=>{r!=="offset"&&e.set(r,this._finished?s:Bc(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},Xc=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return pf(e,t)}getParentElement(e){return Mc(e)}query(e,t,s){return hf(e,t,s)}computeStyle(e,t,s){return Bc(e,t)}animate(e,t,s,r,i,o=[]){let a=r==0?"both":"forwards",l={duration:s,delay:r,fill:a};i&&(l.easing=i);let c=new Map,p=o.filter(g=>g instanceof Gc);Bw(s,r)&&p.forEach(g=>{g.currentSnapshot.forEach((m,y)=>c.set(y,m))});let h=Rw(t).map(g=>new Map(g));h=Ow(e,h,c);let f=mP(e,h);return new Gc(e,h,l,f)}};var Vc="@",tA="@.disabled",Qc=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,s,r){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,r=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,s,r){if(r){this.delegate.removeChild(e,t,s,r);return}this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,r){this.delegate.setAttribute(e,t,s,r)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,r){this.delegate.setStyle(e,t,s,r)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==Vc&&t==tA?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s,r){return this.delegate.listen(e,t,s,r)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Pf=class extends Qc{factory;constructor(e,t,s,r,i){super(t,s,r,i),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==Vc?t.charAt(1)=="."&&t==tA?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s,r){if(t.charAt(0)==Vc){let i=SP(e),o=t.slice(1),a="";return o.charAt(0)!=Vc&&([o,a]=yP(o)),this.engine.listen(this.namespaceId,i,o,a,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,s,l)})}return this.delegate.listen(e,t,s,r)}};function SP(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function yP(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var Yc=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,t.onRemovalComplete=(r,i)=>{i?.removeChild(null,r)}}createRenderer(e,t){let r=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,p=c.get(r);if(!p){let h=()=>c.delete(r);p=new Qc("",r,this.engine,h),c.set(r,p)}return p}let i=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>
39{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(i,o,e,c.name,c)};return t.data.animation.forEach(a),new Pf(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(s));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(i=>{let[o,a]=i;o(a)}),this._animationCallbacksBuffer=[]})}),r.push([t,s])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};var wP=(()=>{class n extends di{constructor(t,s,r){super(t,s,r)}ngOnDestroy(){this.flush()}static \u0275fac=function(s){return new(s||n)(st(dd),st(hr),st(fr))};static \u0275prov=Y({token:n,factory:n.\u0275fac})}return n})();function AP(){return new qc}function xP(){return new Yc(b(Ld),b(di),b(Sa))}var sA=[{provide:fr,useFactory:AP},{provide:di,useClass:wP},{provide:Ed,useFactory:xP}],_P=[{provide:hr,useClass:Mf},{provide:pu,useValue:"NoopAnimations"},...sA],nA=[{provide:hr,useFactory:()=>new Xc},{provide:pu,useFactory:()=>"BrowserAnimations"},...sA],rA=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?_P:nA}}static \u0275fac=function(s){return new(s||n)};static \u0275mod=fe({type:n});static \u0275inj=he({providers:nA,imports:[Aa]})}return n})();function CP(n){let e=n,t=Math.floor(Math.abs(n)),s=n.toString().replace(/^[^.]*\.?/,"").length;return t===1&&s===0?1:5}var iA=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],void 0,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",void 0,void 0,void 0],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",CP];var oA=new Map([[Sr.PAYMENTS_ADMIN,`/${K.member}`],[Sr.PAYMENTS_EDITOR,`/${K.member}`],[Sr.PAYMENTS_APPROVER,`/${K.member}`],[Sr.PAYMENTS_VIEWER,`/${K.member}`],[Sr.PAYMENTS_DEVELOPER,`/${K.administration}`]]),bP=[{path:"",pathMatch:"full",canMatch:[Lm.CanMatch],component:Eu,data:{defaultPath:`/${K.member}`}},{path:K.member,loadChildren:()=>import("./chunk-7MJXPJQZ.js").then(n=>n.MemberModule),canMatch:[Oa.CanMatch],data:{requiredScopes:[V.FIAT_ACCOUNT_READ,V.VIRTUAL_ACCOUNT_READ,V.PAYMENT_READ,V.CONVERSION_READ,V.PAYEE_READ,V.MEMBER_DETAILS_READ]}},{path:K.emt,loadChildren:()=>import("./chunk-OVUYW2E3.js").then(n=>n.EmtModule),canMatch:[Oa.CanMatch,Jm.CanMatch],data:{serviceOffering:en.EMT_WALLET,requiredScopes:[V.EMT_PAYEE_READ,V.EMT_WALLET_READ]}},{path:K.rfi,loadChildren:()=>import("./chunk-F5I6YO2U.js").then(n=>n.RFIS_ROUTES),canActivate:[wu],data:E({},wu.data("enableComplianceCasesManagement",!0))},{path:K.endUsers,loadChildren:()=>import("./chunk-EK7GJ63N.js").then(n=>n.EndUsersModule),canMatch:[Oa.CanMatch],data:{requiredScopes:[V.BUSINESS_END_USER_READ,V.INDIVIDUAL_END_USER_READ,V.VIRTUAL_ACCOUNT_READ,V.PAYMENT_READ]}},{path:K.administration,loadChildren:()=>import("./chunk-BHI4AZXM.js").then(n=>n.AdministrationModule)},{path:K.accessDenied,component:Km},{path:"**",component:Eu}],aA=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=fe({type:n})}static{this.\u0275inj=he({imports:[gu.forRoot(bP),gu]})}}return n})();var mi=Yn("[Platform Users] Load Platform User Info"),Kc=Yn("[Platform Users] Load Platform User Info Success",yr()),Jc=Yn("[Platform Users] Load Platform User Info Failure",yr());var Zc="platform-users",TP={platformUser:null},cA=Fa(TP,Kn(mi,n=>n),Kn(Kc,(n,e)=>ce(E({},n),{platformUser:e.data})),Kn(Jc,n=>n));var kP=vm(Zc),pA=gm(kP,n=>n.platformUser);var hA=(()=>{class n{constructor(){this.store=b(mm),this.platformUserInfo$=this.store.select(pA)}loadPlatformUserInfo(){this.store.dispatch(mi())}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var fA=(()=>{class n{constructor(){this.router=b(gr),this.config=b(hn)}initialize(){let t=this.config.googleAnalyticsId;if(!t||this.config.env==="PROD"){console.error(`Google Analytics not initialized for ${this.config.env}.`);return}this.onRouteChange();let s=document.createElement("script");
39s.async=!0,s.src=`https://www.googletagmanager.com/gtag/js?id=${t}`,document.head.appendChild(s);let r=document.createElement("script");r.innerHTML=` 40 window.dataLayer = window.dataLayer || []; 41 function gtag(){dataLayer.push(arguments);} 42 gtag('js', new Date()); 43 gtag('config', '${t}'); 44 `,document.head.appendChild(r)}onRouteChange(){this.router.events.subscribe(t=>{t instanceof _a&>ag("event","page_view",{page_path:t.urlAfterRedirects})})}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var gi=(()=>{class n extends Em{constructor(){super(...arguments),this.config=b(rm),this.destroyRef=b(md),this.messageSubscription=null,this.payeeIn4EyesCheck$=this.messages$.pipe(Ue(t=>t.event===yu.PayeeInFourEyesCheck)),this.paymentIn4EyesCheck$=this.messages$.pipe(Ue(t=>t.event===yu.PaymentInFourEyesCheck))}initialize(){this.messageSubscription?.unsubscribe(),this.connectStream(`${this.config.baseUrl}/api/v1/notifications/subscribe`),this.messageSubscription=this.messages$.subscribe(),this.destroyRef.onDestroy(()=>{this.messageSubscription?.unsubscribe(),this.closeStream()})}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=mr(n)))(r||n)}})()}static{this.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var dA=(()=>{class n{constructor(){this.paymentsAwaitingApprovalApiService=b(am),this.serviceOfferingsService=b(Er),this.scopesService=b(Ba),this.config=b(hn),this.sseNotificationService=b(gi),this.paymentsApprovalsCounter$=this.scopesService.hasRequiredScope([V.PAYMENT_AWAITING_APPROVAL_READ]).pipe(Ue(t=>t),da(),Ae(()=>this.fetchPaymentsTrigger$()),Ae(()=>this.serviceOfferingsService.hasServiceOffering(en.FOUR_EYES_CHECK)),Ae(t=>t?this.fetchPaymentsApprovalsCounter():j(0)),dr(0),ma())}fetchPaymentsTrigger$(){return this.config.enableSSE?this.sseNotificationService.paymentIn4EyesCheck$.pipe(va(5e3,void 0,{leading:!0,trailing:!0}),dr(null)):fa(0,5e3)}fetchPaymentsApprovalsCounter(){let t={limit:0};return this.paymentsAwaitingApprovalApiService.loadPaymentsAwaitingApprovalHEAD(t).pipe(D(s=>s.pagination?.totalCount??0),Q(()=>j(0)))}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var mA=(()=>{class n{constructor(){this.payeesAwaitingApprovalApiService=b(lm),this.serviceOfferingsService=b(Er),this.scopesService=b(Ba),this.config=b(hn),this.sseNotificationService=b(gi),this.payeesApprovalsCounter$=this.scopesService.hasRequiredScope([V.PAYEE_AWAITING_APPROVAL_READ]).pipe(Ue(t=>t),da(),Ae(()=>this.fetchPayeesTrigger$()),Ae(()=>this.serviceOfferingsService.hasServiceOffering(en.FOUR_EYES_CHECK)),Ae(t=>t?this.fetchPayeesApprovalsCounter():j(0)),dr(0),ma())}fetchPayeesTrigger$(){return this.config.enableSSE?this.sseNotificationService.payeeIn4EyesCheck$.pipe(va(5e3,void 0,{leading:!0,trailing:!0}),dr(null)):fa(0,5e3)}fetchPayeesApprovalsCounter(){let t={limit:0};return this.payeesAwaitingApprovalApiService.loadPayeesAwaitingApprovalHEAD(t).pipe(D(s=>s.pagination?.totalCount??0),Q(()=>j(0)))}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var gA=(()=>{class n{onBeforeUnload(t){t&&this.canDeactivateService.hasUnsavedChanges()&&(t.preventDefault(),t.returnValue=!0)}constructor(){this.router=b(gr),this.themeService=b(Fm),this.authStoreService=b(ym),this.memberStoreService=b(ig),this.platformUsersStoreService=b(hA),this.serviceOfferingsService=b(Er),this.elementRef=b(vd),this.uiService=b(Bm),this.settings=b(Ca),this.virtualAccountsApiService=b(Qn),this.config=b(hn),this.canDeactivateService=b(La),this.googleAnalyticsService=b(fA),this.translate=b(_m),this.keys=b(Zm),this.paymentsCountersService=b(dA),this.payeesCountersService=b(mA),this.sseNotificationService=b(gi),this.maintenanceNotificationService=b(Nm),this.memberInfo$=this.memberStoreService.memberInfo$,this.platformUserInfo$=this.platformUsersStoreService.platformUserInfo$,this.username$=this.authStoreService.username$,this.menuItems=this.createMenuItems(),this.footerItems=this.createFooterItems(),this.translate.addLangs(["en"]),this.translate.use("en"),this.googleAnalyticsService.initialize()}ngOnInit(){this.uiService.removeVersionAnnotation(this.elementRef),this.themeService.currentTheme$.subscribe(t=>{this.isDarkMode=t==="dark"}),this.memberStoreService.loadMemberInfo(),this.platformUsersStoreService.loadPlatformUserInfo(),this.maintenanceNotificationService.startPolling(),this.config.enableSSE&&this.sseNotificationService.initialize()}createMenuItems(){return[this.createMemberMenuItem(),this.createEmtMenuItem(),this.createEndUsersMenuItem(),...this.config.enableComplianceCasesManagement?[{path:[K.rfi],label:this.keys.PAGE_RFI,icon:"info-circle",scopes:[]}]:[],this.createAdministrationMenuItem()]}createEmtMenuItem(){return{label:this.keys.EMT,icon:"gold",scopes:[V.EMT_PAYEE_READ,V.EMT_WALLET_READ,V.EMT_PAYMENTS_READ],isOpened:this.isEMTSectionActive(),disabled:this.serviceOfferingsService.hasServiceOffering(en.EMT_WALLET).pipe(D(t=>!t)),children:[{path:[K.emt,_i.emtPayees],icon:"branches",label:this.keys.EMT_PAYEES,scopes:[V.EMT_PAYEE_READ]},{path:[K.emt,_i.emtWallets],icon:"wallet",label:this.keys.EMT_WALLETS,scopes:[V.EMT_WALLET_READ]},{path:[K.emt,_i.emtPayments],icon:"dollar",label:this.keys.EMT_PAYMENTS,scopes:[V.EMT_PAYMENTS_READ]}]}}createMemberMenuItem(){return{label:"PAGE_MEMBER",icon:"global",scopes:[V.FIAT_ACCOUNT_READ,V.VIRTUAL_ACCOUNT_READ,V.PAYMENT_READ,V.CONVERSION_READ,V.PAYEE_READ,V.MEMBER_DETAILS_READ],isOpened:this.isMembersSectionActive(),counter:this.getMemberCounters$(),children:[{path:[K.member,Ln.fiatAccounts],icon:"bank",label:"PAGE_FIAT_ACCOUNTS",scopes:[V.FIAT_ACCOUNT_READ]},{path:[K.member,Ln.virtualAccounts],icon:"cluster",label:"PAGE_VIRTUAL_ACCOUNTS",scopes:[V.VIRTUAL_ACCOUNT_READ]},...this.config.enableConnectedAccounts?[{path:[K.member,Ln.connectedAccounts],icon:"sisternode",label:"PAGE_CONNECTED_ACCOUNTS",disabled:this.serviceOfferingsService.hasServiceOffering(en.CONNECTED_ACCOUNT_FOR_MEMBER).pipe(D(t=>!t)),scopes:[V.CONNECTED_ACCOUNT_READ]}]:[],{path:[K.member,Ln.payments],icon:"dollar",label:"PAGE_PAYMENTS",counter:this.paymentsCountersService.paymentsApprovalsCounter$,scopes:[V.PAYMENT_READ]},{path:[K.member,Ln.conversions],icon:"swap",label:"PAGE_CONVERSIONS",disabled:this.serviceOfferingsService.hasServiceOffering(en.CONVERSION).pipe(D(t=>!t)),scopes:[V.CONVERSION_READ]},{path:[K.member,Ln.businesses],icon:"deployment-unit",label:this.keys.BUSINESSES,scopes:[V.MEMBER_DETAILS_READ]},{path:[K.member,Ln.payees],icon:"branches",label:"PAGE_PAYEES",counter:this.payeesCountersService.payeesApprovalsCounter$,scopes:[V.PAYEE_READ]}]}}getMemberCounters$(){return sd([this.paymentsCountersService.paymentsApprovalsCounter$,this.payeesCountersService.payeesApprovalsCounter$]).pipe(D(([t,s])=>t+s))}noVirtualAccountsOwnedByEndUsersExists(){let t={limit:1,"owner.type":[nm.END_USER]};return this.virtualAccountsApiService.loadVirtualAccounts(t).pipe(D(s=>s.data?.length===0))}createEndUsersMenuItem(){return{label:"PAGE_END_USERS",icon:"team",scopes:[V.BUSINESS_END_USER_READ,V.INDIVIDUAL_END_USER_READ,V.VIRTUAL_ACCOUNT_READ,V.PAYMENT_READ],roleOperator:cm.OR,isOpened:this.isEndUsersSectionActive(),children:[{path:[K.endUsers,Ns.allEndUsers],icon:"team",label:"PAGE_END_USERS",
44scopes:[V.BUSINESS_END_USER_READ,V.INDIVIDUAL_END_USER_READ]},{path:[K.endUsers,Ns.allVirtualAccounts],icon:"cluster",label:"PAGE_VIRTUAL_ACCOUNTS",scopes:[V.VIRTUAL_ACCOUNT_READ],disabled:this.noVirtualAccountsOwnedByEndUsersExists()},{path:[K.endUsers,Ns.allPayments],icon:"dollar",label:"PAGE_PAYMENTS",scopes:[V.PAYMENT_READ]}]}}createAdministrationMenuItem(){return{label:"PAGE_ADMINISTRATION",icon:"code",isOpened:this.isAdministrationSectionActive(),children:[{path:[K.administration,mt.applicationSettings],icon:"setting",label:"APPLICATION_SETTINGS.APPLICATION_SETTINGS"},{path:[K.administration,mt.fileManagement],scopes:[V.PAYMENTS_DOCUMENT_READ],icon:"folder",label:this.keys.FILE_MANAGEMENT},{path:[K.administration,mt.faq],icon:"read",label:this.keys.FAQ},{path:[K.administration,mt.approvalProcesses],scopes:[V.FOUR_EYES_RULE_READ],icon:"file-protect",label:this.keys.APPROVAL_PROCESSES.APPROVAL_PROCESSES,disabled:this.serviceOfferingsService.hasServiceOffering(en.FOUR_EYES_CHECK).pipe(D(t=>!t))},{path:[K.administration,mt.apiKeys],scopes:[V.API_CLIENT_READ],icon:"solution",label:"PAGE_API_KEYS"},{path:[K.administration,mt.webhooks],scopes:[V.PAYMENTS_WEBHOOK_READ],icon:"share-alt",label:"PAGE_WEBHOOKS"},{path:[K.administration,mt.platformUsers],icon:"user",label:"PAGE_PLATFORM_USERS",
44scopes:[V.PLATFORM_USER_READ]},{path:[K.administration,mt.memberSettings],icon:"setting",label:"PAGE_MEMBER_SETTINGS",scopes:[V.MEMBER_REVIEW_SETTINGS_READ]}]}}isMembersSectionActive(){return this.currentRoute$().pipe(D(t=>Object.values(Ln).map(s=>`/${K.member}/${s}`).some(s=>t.includes(s))))}isEMTSectionActive(){return this.currentRoute$().pipe(D(t=>Object.values(_i).map(s=>`/${K.emt}/${s}`).some(s=>t.includes(s))))}isEndUsersSectionActive(){return this.currentRoute$().pipe(D(t=>{let s=K.endUsers;return[`/${s}/${Ns.allEndUsers}`,`/${s}/${Ns.allVirtualAccounts}`,`/${s}/${Ns.allPayments}`].some(i=>t.includes(i))}))}isAdministrationSectionActive(){return this.currentRoute$().pipe(D(t=>Object.values(mt).map(s=>`/${K.administration}/${s}`).some(s=>t.includes(s))))}currentRoute$(){return this.router.events.pipe(Ue(t=>t instanceof _a),D(()=>this.router.url.toString()))}createFooterItems(){let t={label:"API_DOCS",icon:"question-circle",href:this.config.urls.apiDocs},s={label:"SHARE_FEEDBACK",icon:"message",href:this.config.urls.feedback},r={label:"SUPPORT",icon:"comment",href:this.config.urls.support};return[...this.config.urls.apiDocs?[t]:[],...this.config.urls.feedback?[s]:[],...this.config.urls.support?[r]:[]]}toggleTheme(){this.themeService.toggleTheme()}signOut(t){t.preventDefault(),t.stopPropagation(),this.authStoreService.logout(Sm.User)}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275cmp=wd({type:n,selectors:[["dsb-root"]],hostBindings:function(s,r){s&1&&Ea("beforeunload",function(o){return r.onBeforeUnload(o)},yd)},standalone:!1,decls:28,vars:18,consts:[["profile","nzDropdownMenu"],[3,"menuItems","footerItems"],["session-bar",""],["logo-icon",""],["width","64","height","64","alt","Dashboard Logo",1,"w-full","h-full","object-contain",3,"ngSrc"],["logo-text",""],[1,"logo-text-gradient","drop-shadow-sm","uppercase","font-bold","text-lg","leading-none","tracking-tighter"],["top-bar-buttons",""],[3,"ngModelChange","ngModel"],["nzType","vertical",1,"!ml-6"],["nz-button","","nzType","default","nzShape","circle","nz-dropdown","",1,"ml-4",3,"nzDropdownMenu","nzTrigger"],["nz-icon","","nzType","user"],["nz-menu",""],[1,"px-[12px]","py-2"],["nz-menu-divider",""],["nz-menu-item","",1,"justify-end",3,"click"],["nz-icon","","nzType","logout","nzTheme","outline",1,"ml-2"]],template:function(s,r){if(s&1){let i=xd();Ts(0,"ui-layout",1),wi(1,2),Mn(2,"commons-session-bar"),Ai(),wi(3,3),Mn(4,"img",4),Ai(),wi(5,5),Ts(6,"span",6),xi(7," Payments"),Mn(8,"br"),xi(9,"Dashboard "),ks(),Ai(),wi(10,7),Ts(11,"nz-switch",8),Td("ngModelChange",function(a){return pd(i),bd(r.isDarkMode,a)||(r.isDarkMode=a),hd(a)}),Ea("ngModelChange",function(){return r.toggleTheme()}),ks(),Mn(12,"nz-divider",9),Ts(13,"button",10),Mn(14,"span",11),ks(),Ts(15,"nz-dropdown-menu",null,0)(17,"div",12)(18,"div",13),xi(19),fu(20,"async"),ks(),Mn(21,"div",14),Ts(22,"ul")(23,"li",15),Ea("click",function(a){return r.signOut(a)}),xi(24),fu(25,"translate"),Mn(26,"span",16),ks()()()(),Ai(),ks(),Mn(27,"ui-can-deactivate-modal")}if(s&2){let i=_d(16);ya("menuItems",r.menuItems)("footerItems",r.footerItems),Pn(4),ya("ngSrc",r.isDarkMode?"https://cdn.fiatrepublic.com/apps/dashboard/fr_eagle_dark.svg":"https://cdn.fiatrepublic.com/apps/dashboard/fr_eagle.svg"),bs("data-cy","logo-icon"),Pn(2),bs("data-cy","logo-text"),Pn(5),Cd("ngModel",r.isDarkMode),bs("data-cy","toggle-dark-mode-button"),Pn(2),ya("nzDropdownMenu",i)("nzTrigger","click"),bs("data-cy","profile-dropdown-button"),Pn(5),bs("data-cy","profile-dropdown-username"),Pn(),hu(" ",du(20,14,r.username$)," "),Pn(4),bs("data-cy","profile-dropdown-sign-out-button"),Pn(),hu(" ",du(25,16,"SIGN_OUT")," ")}},dependencies:[Zd,em,Pm,jm,$a,Gd,Wd,Xd,Yd,Kd,Hd,jg,wm,qm,Um,Vm,Md,Dd,Cm],encapsulation:2})}}return n})();var Gn={production:!0,sentry:{dsn:"https://074ae371a23844449db964e28e877786@o4503924049117184.ingest.sentry.io/4503924053311489",debug:!1,tracingOrigin:"/dashboard"}};var eu=Yn("[Settings] Load Settings"),tu=Yn("[Settings] Load Settings Success",yr()),nu=Yn("[Settings] Load Settings Failure",yr());var SA="settings",NP={},su=Fa(NP,Kn(eu,n=>n),Kn(tu,n=>n),Kn(nu,n=>n));var yA={endUsers:Wa,developers:Ga,payees:ja,fiatAccounts:Ua,payments:Ha,settings:su},EA=Gn.production?[]:[];var ua="PERFORM_ACTION",DP="REFRESH",bA="RESET",TA="ROLLBACK",kA="COMMIT",NA="SWEEP",IA="TOGGLE_ACTION",PP="SET_ACTIONS_ACTIVE",DA="JUMP_TO_STATE",PA="JUMP_TO_ACTION",Gf="IMPORT_STATE",MA="LOCK_CHANGES",LA="PAUSE_RECORDING",vi=class{constructor(e,t){if(this.action=e,this.timestamp=t,this.type=ua,typeof e.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}},Rf=class{constructor(){this.type=DP}},Ff=class{constructor(e){this.timestamp=e,this.type=bA}},Bf=class{constructor(e){this.timestamp=e,this.type=TA}}
44,Of=class{constructor(e){this.timestamp=e,this.type=kA}},$f=class{constructor(){this.type=NA}},Uf=class{constructor(e){this.id=e,this.type=IA}};var Vf=class{constructor(e){this.index=e,this.type=DA}},qf=class{constructor(e){this.actionId=e,this.type=PA}},Hf=class{constructor(e){this.nextLiftedState=e,this.type=Gf}},jf=class{constructor(e){this.status=e,this.type=MA}},zf=class{constructor(e){this.status=e,this.type=LA}};var au=new Ei("@ngrx/store-devtools Options"),wA=new Ei("@ngrx/store-devtools Initial Config");function RA(){return null}var MP="NgRx Store DevTools";function LP(n){let e={maxAge:!1,monitor:RA,actionSanitizer:void 0,stateSanitizer:void 0,name:MP,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},t=typeof n=="function"?n():n,s=t.logOnly?{pause:!0,export:!0,test:!0}:!1,r=t.features||s||e.features;r.import===!0&&(r.import="custom");let i=Object.assign({},e,{features:r},t);if(i.maxAge&&i.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${i.maxAge}`);return i}function AA(n,e){return n.filter(t=>e.indexOf(t)<0)}function FA(n){let{computedStates:e,currentStateIndex:t}=n;if(t>=e.length){let{state:r}=e[e.length-1];return r}let{state:s}=e[t];return s}function ca(n){return new vi(n,+Date.now())}function RP(n,e){return Object.keys(e).reduce((t,s)=>{let r=Number(s);return t[r]=BA(n,e[r],r),t},{})}function BA(n,e,t){return ce(E({},e),{action:n(e.action,t)})}function FP(n,e){return e.map((t,s)=>({state:OA(n,t.state,s),error:t.error}))}function OA(n,e,t){return n(e,t)}function $A(n){return n.predicate||n.actionsSafelist||n.actionsBlocklist}function BP(n,e,t,s){let r=[],i={},o=[];return n.stagedActionIds.forEach((a,l)=>{let c=n.actionsById[a];c&&(l&&Xf(n.computedStates[l],c,e,t,s)||(i[a]=c,r.push(a),o.push(n.computedStates[l])))}),ce(E({},n),{stagedActionIds:r,actionsById:i,computedStates:o})}function Xf(n,e,t,s,r){let i=t&&!t(n,e.action),o=s&&!e.action.type.match(s.map(l=>xA(l)).join("|")),a=r&&e.action.type.match(r.map(l=>xA(l)).join("|"));return i||o||a}function xA(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function UA(n){return{ngZone:n?b(Sa):null,connectInZone:n}}var lu=(()=>{class n extends Ra{static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=mr(n)))(r||n)}})()}static{this.\u0275prov=Y({token:n,factory:n.\u0275fac})}}return n})(),ru={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},Wf=new Ei("@ngrx/store-devtools Redux Devtools Extension"),VA=(()=>{class n{constructor(t,s,r){this.config=s,this.dispatcher=r,this.zoneConfig=UA(this.config.connectInZone),this.devtoolsExtension=t,this.createActionStreams()}notify(t,s){if(this.devtoolsExtension)if(t.type===ua){if(s.isLocked||s.isPaused)return;let r=FA(s);if($A(this.config)&&Xf(r,t,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let i=this.config.stateSanitizer?OA(this.config.stateSanitizer,r,s.currentStateIndex):r,o=this.config.actionSanitizer?BA(this.config.actionSanitizer,t,s.nextActionId):t;this.sendToReduxDevtools(()=>this.extensionConnection.send(o,i))}else{let r=ce(E({},s),{stagedActionIds:s.stagedActionIds,actionsById:this.config.actionSanitizer?RP(this.config.actionSanitizer,s.actionsById):s.actionsById,computedStates:this.config.stateSanitizer?FP(this.config.stateSanitizer,s.computedStates):s.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,r,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new yi(t=>{let s=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=s,s.init(),s.subscribe(r=>t.next(r)),s.unsubscribe}):ha}createActionStreams(){let t=this.createChangesObservable().pipe(ad()),s=t.pipe(Ue(c=>c.type===ru.START)),r=t.pipe(Ue(c=>c.type===ru.STOP)),i=t.pipe(Ue(c=>c.type===ru.DISPATCH),D(c=>this.unwrapAction(c.payload)),ve(c=>c.type===Gf?this.dispatcher.pipe(Ue(p=>p.type===Su),nd(1e3),rd(1e3),D(()=>c),Q(()=>j(c)),id(1)):j(c))),a=t.pipe(Ue(c=>c.type===ru.ACTION),D(c=>this.unwrapAction(c.payload))).pipe(ga(r)),l=i.pipe(ga(r));this.start$=s.pipe(ga(r)),this.actions$=this.start$.pipe(Ae(()=>a)),this.liftedActions$=this.start$.pipe(Ae(()=>l))}unwrapAction(t){return typeof t=="string"?(0,eval)(`(${t})`):t}getExtensionConfig(t){let s={name:t.name,features:t.features,serialize:t.serialize,autoPause:t.autoPause??!1,trace:t.trace??!1,traceLimit:t.traceLimit??75};return t.maxAge!==!1&&(s.maxAge=t.maxAge),s}sendToReduxDevtools(t){try{t()}catch(s){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",s)}}static{this.\u0275fac=function(s){return new(s||n)(st(Wf),st(au),st(lu))}}static{this.\u0275prov=Y({token:n,factory:n.\u0275fac})}}return n})(),ou={type:vu},OP="@ngrx/store-devtools/recompute",$P={type:OP};function qA(n,e,t,s,r){if(s)return{state:t,error:"Interrupted by an error up the chain"};let i=t,o;try{i=n(t,e)}catch(a){o=a.toString(),r.handleError(a)}return{state:i,error:o}}function iu(n,e,t,s,r,i,o,a,l){if(e>=n.length&&n.length===i.length)return n;let c=n.slice(0,e),p=i.length-(l?1:0);for(let h=e;h<p;h++){let f=i[h],g=r[f].action,m=c[h-1],y=m?m.state:s,x=m?m.error:void 0,T=o.indexOf(f)>-1?m:qA(t,g,y,x,a);c.push(T)}return l&&c.push(n[n.length-1]),c}function UP(n,e){return{monitorState:e(void 0,{}),nextActionId:1,actionsById:{0:ca(ou)},stagedActionIds:[0],skippedActionIds:[],committedState:n,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function VP(n,e,t,s,r={}){return i=>(o,a)=>{let{monitorState:l,actionsById:c,nextActionId:p,stagedActionIds:h,skippedActionIds:f,committedState:g,currentStateIndex:m,computedStates:y,isLocked:x,isPaused:_}=o||e;o||(c=Object.create(c));function T(G){let Z=G,de=h.slice(1,Z+1);for(let Ee=0;Ee<de.length;Ee++)if(y[Ee+1].error){Z=Ee,de=h.slice(1,Z+1);break}else delete c[de[Ee]];f=f.filter(Ee=>de.indexOf(Ee)===-1),h=[0,...h.slice(Z+1)],g=y[Z].state,y=y.slice(Z),m=m>Z?m-Z:0}function F(){c={0:ca(ou)},p=1,h=[0],f=[],g=y[m].state,m=0,y=[]}let w=0;switch(a.type){case MA:{x=a.status,w=1/0;break}case LA:{_=a.status,_?(h=[...h,p],c[p]=new vi({type:"@ngrx/devtools/pause"},+Date.now()),p++,w=h.length-1,y=y.concat(y[y.length-1]),m===h.length-2&&m++,w=1/0):F();break}case bA:{c={0:ca(ou)},p=1,h=[0],f=[],g=n,m=0,y=[];break}case kA:{F();break}case TA:{c={0:ca(ou)},p=1,h=[0],f=[],m=0,y=[];break}case IA:{let{id:G}=a;f.indexOf(G)===-1?f=[G,...f]:f=f.filter(de=>de!==G),w=h.indexOf(G);break}case PP:{let{start:G,end:Z,active:de}=a,Ee=[];for(let dt=G;dt<Z;dt++)Ee.push(dt);de?f=AA(f,Ee):f=[...f,...Ee],w=h.indexOf(G);break}case DA:{m=a.index,w=1/0;break}case PA:{let G=h.indexOf(a.actionId);G!==-1&&(m=G),w=1/0;break}case NA:{h=AA(h,f),f=[],m=Math.min(m,h.length-1);break}case ua:{if(x)return o||e;if(_||o&&Xf(o.computedStates[m],a,r.predicate,r.actionsSafelist,r.actionsBlocklist)){let Z=y[y.length-1];y=[...y.slice(0,-1),qA(i,a.action,Z.state,Z.error,t)],w=1/0;break}r.maxAge&&h.length===r.maxAge&&T(1),m===h.length-1&&m++;let G=p++;c[G]=a,h=[...h,G],w=h.length-1;break}case Gf:{({monitorState:l,actionsById:c,nextActionId:p,stagedActionIds:h,skippedActionIds:f,committedState:g,currentStateIndex:m,computedStates:y,isLocked:x,isPaused:_}=a.nextLiftedState);break}case vu:{w=0,r.maxAge&&h.length>r.maxAge&&(y=iu(y,w,i,g,c,h,f,t,_),T(h.length-r.maxAge),w=1/0);break}case Su:{if(y.filter(Z=>Z.error).length>0)w=0,r.maxAge&&h.length>r.maxAge&&(y=iu(y,w,i,g,c,h,f,t,_),T(h.length-r.maxAge),w=1/0);else{if(!_&&!x){m===h.length-1&&m++;let Z=p++;c[Z]=new vi(a,+Date.now()),h=[...h,Z],w=h.length-1,y=iu(y,w,i,g,c,h,f,t,_)}y=y.map(Z=>ce(E({},Z),{state:i(Z.state,$P)})),m=h.length-1,r.maxAge&&h.length>r.maxAge&&T(h.length-r.maxAge),w=1/0}break}default:{w=1/0;break}}return y=iu(y,w,i,g,c,h,f,t,_),l=s(l,a),{monitorState:l,actionsById:c,nextActionId:p,stagedActionIds:h,skippedActionIds:f,committedState:g,currentStateIndex:m,computedStates:y,isLocked:x,isPaused:_}}}var _A=(()=>{class n{constructor(t,s,r,i,o,a,l,c){let p=UP(l,c.monitor),h=VP(l,p,a,c.monitor,c),f=uu(uu(s.asObservable().pipe(ld(1)),i.actions$).pipe(D(ca)),t,i.liftedActions$).pipe(td(ed)),g=r.pipe(D(h)),m=UA(c.connectInZone),y=new Zf(1);this.liftedStateSubscription=f.pipe(cd(g),CA(m),od(({state:T},[F,w])=>{let G=w(T,F);return F.type!==ua&&$A(c)&&(G=BP(G,c.predicate,c.actionsSafelist,c.actionsBlocklist)),i.notify(F,G),{state:G,action:F}},{state:p,action:null})).subscribe(({state:T,action:F})=>{if(y.next(T),F.type===ua){let w=F.action;o.next(w)}}),this.extensionStartSubscription=i.start$.pipe(CA(m)).subscribe(()=>{this.refresh()});let x=y.asObservable(),_=x.pipe(D(FA));Object.defineProperty(_,"state",{value:qd(_,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=t,this.liftedState=x,this.state=_}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(t){this.dispatcher.next(t)}next(t){this.dispatcher.next(t)}error(t){}complete(){}performAction(t){this.dispatch(new vi(t,+Date.now()))}refresh(){this.dispatch(new Rf)}reset(){this.dispatch(new Ff(+Date.now()))}rollback(){this.dispatch(new Bf(+Date.now()))}commit(){this.dispatch(new Of(+Date.now()))}sweep(){this.dispatch(new $f)}toggleAction(t){this.dispatch(new Uf(t))}jumpToAction(t){this.dispatch(new qf(t))}jumpToState(t){this.dispatch(new Vf(t))}importState(t){this.dispatch(new Hf(t))}lockChanges(t){this.dispatch(new jf(t))}pauseRecording(t){this.dispatch(new zf(t))}static{this.\u0275fac=function(s){return new(s||n)(st(lu),st(Ra),st(pm),st(VA),st(fm),st(gd),st(um),st(au))}}static{this.\u0275prov=Y({token:n,factory:n.\u0275fac})}}return n})();function CA({ngZone:n,connectInZone:e}){return t=>e?new yi(s=>t.subscribe({next:r=>n.run(()=>s.next(r)),error:r=>n.run(()=>s.error(r)),complete:()=>n.run(()=>s.complete())})):t}var qP=new Ei("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function HP(n,e){return!!n||e.monitor!==RA}function jP(){let n="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[n]<"u"?window[n]:null}function zP(n){return n.state}function WP(n={}){return ud([VA,lu,_A,{provide:wA,useValue:n},{provide:qP,deps:[Wf,au],useFactory:HP},{provide:Wf,useFactory:jP},{provide:au,deps:[wA],useFactory:LP},{provide:dm,deps:[_A],useFactory:zP},{provide:hm,useExisting:lu}])}var HA=(()=>{class n{static instrument(t={}){return{ngModule:n,providers:[WP(t)]}}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=fe({type:n})}static{this.\u0275inj=he({})}}return n})();var jA=(()=>{class n{constructor(){this.actions$=b(Me),this.paymentsApiService=b(vr),this.paymentsStoreService=b(Ig),this.fiatAccountsStoreService=b(fg),this.virtualAccountsStoreService=b(Va),this.payeesStoreService=b(za),this.payersStoreService=b(qa),this.filesService=b(Ma),this.loadPayments$=z(()=>this.actions$.pipe(W(Cg),ve(({params:t,loadExtendedData:s})=>this.paymentsApiService.loadPayments(t).pipe(D(r=>xu({data:r,loadExtendedData:s})),Q(r=>j(bg({error:r}))))))),this.loadPaymentsSuccess$=z(()=>this.actions$.pipe(W(xu),Nt(({data:t,loadExtendedData:s})=>{if(!s)return;let{fiat_account:r,payee:i,payer:o,virtual_account:a}=this.paymentsStoreService.getExtensionRelatedDataIds(t);r&&this.fiatAccountsStoreService.loadFiatAccounts({offset:0,limit:r.length,id:r}),i&&this.payeesStoreService.loadPayees({offset:0,limit:i.length,id:i}),o&&this.payersStoreService.loadPayers({offset:0,limit:o.length,id:o}),a&&this.virtualAccountsStoreService.loadVirtualAccounts({offset:0,limit:a.length,id:a})})),{dispatch:!1}),this.exportToCSV$=z(()=>this.actions$.pipe(W(Tg),ve(({params:t})=>this.paymentsApiService.requestCSV(t).pipe(Ue(s=>s.type===xa.Response),D(s=>{let r=this.filesService.getFileSettings(s.headers),i=s.body;return _u({settings:r,file:i})}),Q(s=>j(kg({error:s}))))))),this.exportToCSVSuccess$=z(()=>this.actions$.pipe(W(_u),Nt(({settings:t,file:s})=>{this.filesService.download(t,s)})),{dispatch:!1})}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=Y({token:n,factory:n.\u0275fac})}}return n})();var zA=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=fe({type:n})}static{this.\u0275inj=he({providers:[vr],imports:[be,Te.forFeature
44(Ng,Ha),ke.forFeature([jA])]})}}return n})();var WA=(()=>{class n{constructor(){this.actions$=b(Me),this.endUsersApiService=b(Ta),this.fiatAccountsApiService=b(pn),this.virtualAccountsApiService=b(Qn),this.virtualAccountsStoreService=b(Va),this.paymentsApiService=b(vr),this.endUsersStoreService=b(iv),this.payeesStoreService=b(za),this.payersStoreService=b(qa),this.filesService=b(Ma),this.loadEndUsers$=z(()=>this.actions$.pipe(W(Wg),ve(({params:t})=>this.endUsersApiService.loadEndUsers(t).pipe(D(s=>Gg({data:s})),Q(s=>j(Xg({error:s}))))))),this.loadAllFiatAccounts$=z(()=>this.actions$.pipe(W(Qg),ve(({params:t,loadExtendedData:s})=>this.fiatAccountsApiService.loadFiatAccounts(t).pipe(D(r=>bu({data:r,loadExtendedData:s})),Q(r=>j(Yg({error:r}))))))),this.loadAllFiatAccountsSuccess$=z(()=>this.actions$.pipe(W(bu),Nt(({data:t,loadExtendedData:s})=>{if(s){let{end_user:r}=this.endUsersStoreService.getAllAccountsExtensionRelatedDataIds(t);r&&this.endUsersStoreService.loadEndUsers({offset:0,limit:r.length,id:r})}})),{dispatch:!1}),this.loadAllVirtualAccounts$=z(()=>this.actions$.pipe(W(Kg),ve(({params:t})=>this.virtualAccountsApiService.loadVirtualAccounts(t).pipe(D(s=>Tu({data:s,params:t})),Q(s=>j(Jg({error:s}))))))),this.extendWithMasterAccountData$=z(()=>this.actions$.pipe(W(Tu),Ae(({params:t,data:s})=>this.getRelatedAccountData(s,t?.limit).pipe(D(r=>({data:s?.data?.map(o=>{let a=r.find(l=>l.id===o.masterFiatAccountId);return ce(E({},o),{masterFiatAccount:a})}),pagination:s?.pagination})),D(r=>ku({data:r})),Q(r=>j(Zg({error:r}))))))),this.extendWithMasterAccountDataSuccess$=z(()=>this.actions$.pipe(W(ku),Nt(({data:t})=>{let{end_user:s}=this.endUsersStoreService.getAllAccountsExtensionRelatedDataIds(t);s&&this.endUsersStoreService.loadEndUsers({offset:0,limit:s.length,id:s})})),{dispatch:!1}),this.loadAllPayments$=z(()=>this.actions$.pipe(W(ev),ve(({params:t,loadExtendedData:s})=>this.paymentsApiService.loadPayments(t).pipe(D(r=>Nu({data:r,loadExtendedData:s})),Q(r=>j(tv({error:r}))))))),this.loadAllPaymentsSuccess$=z(()=>this.actions$.pipe(W(Nu),Nt(({data:t,loadExtendedData:s})=>{if(!s)return;let{fiat_account:r,payee:i,payer:o,virtual_account:a}=this.endUsersStoreService.getExtensionRelatedDataIds(t);r&&this.endUsersStoreService.loadAllFiatAccounts({offset:0,limit:r.length,id:r}),i&&this.payeesStoreService.loadPayees({offset:0,limit:i.length,id:i}),o&&this.payersStoreService.loadPayers({offset:0,limit:o.length,id:o}),a&&this.virtualAccountsStoreService.loadVirtualAccounts({offset:0,limit:a.length,id:a})})),{dispatch:!1}),this.exportToCSV$=z(()=>this.actions$.pipe(W(nv),ve(({params:t})=>this.paymentsApiService.requestCSV(t).pipe(Ue(s=>s.type===xa.Response),D(s=>{let r=this.filesService.getFileSettings(s.headers),i=s.body;return Iu({settings:r,file:i})}),Q(s=>j(sv({error:s}))))))),this.exportToCSVSuccess$=z(()=>this.actions$.pipe(W(Iu),Nt(({settings:t,file:s})=>{this.filesService.download(t,s)})),{dispatch:!1})}getRelatedAccountData(t,s){let r=t?.data?.map(i=>i.masterFiatAccountId);return this.fiatAccountsApiService.loadFiatAccounts({limit:s,id:r}).pipe(D(i=>i.data))}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=Y({token:n,factory:n.\u0275fac})}}return n})();var GA=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=fe({type:n})}static{this.\u0275inj=he({providers:[Ta],imports:[be,Te.forFeature(rv,Wa),ke.forFeature([WA])]})}}return n})();var XA=(()=>{class n{constructor(){this.actions$=b(Me),this.router=b(gr),this.activatedRoute=b(Od),this.apiKeysApiService=b(sm),this.webhooksApiService=b(Pa),this.developersStoreService=b(bv),this.modalService=b(Wm),this.canDeactivateService=b(La),this.loadWebhooks$=z(()=>this.actions$.pipe(W(ov),ve(({params:t})=>this.webhooksApiService.loadWebhooks(t).pipe(D(s=>av({data:s})),Q(s=>j(lv({error:s}))))))),this.updateWebhook$=z(()=>this.actions$.pipe(W(cv),ve(({id:t,webhookPartial:s})=>this.webhooksApiService.updateWebhook(t,s).pipe(D(r=>uv({data:r})),Q(r=>j(pv({error:r}))))))),this.editWebhook$=z(()=>this.actions$.pipe(W(hv),Nt(({id:t})=>this.redirectToWebhookEditForm(t))),{dispatch:!1}),this.deleteWebhook$=z(()=>this.actions$.pipe(W(fv),ve(({id:t})=>this.webhooksApiService.deleteWebhook(t).pipe(D(()=>Du({id:t})),Q(s=>j(dv({error:s}))))))),this.deleteWebhookSuccess$=z(()=>this.actions$.pipe(W(Du),Nt(()=>{this.redirectToWebhooksList()})),{dispatch:!1}),this.revealSecretKey$=z(()=>this.actions$.pipe(W(mv),ve(({id:t})=>this.webhooksApiService.readWebhook(t).pipe(Ae(s=>this.webhooksApiService.revealSecretKey(t).pipe(D(r=>Pu({webhook:s,secret:r})),Q(r=>j(gv({error:r}))))))))),this.revealSecretKeySuccess$=z(()=>this.actions$.pipe(W(Pu),Nt(({webhook:t,secret:s})=>{this.modalService.info({nzTitle:"Reveal Secret Key",nzContent:Nv,nzMaskClosable:!1,nzWidth:460,nzClosable:!1,nzOkText:"Close",nzData:{webhook:t,secret:s}})})),{dispatch:!1}),this.loadApiKeys$=z(()=>this.actions$.pipe(W(vv),ve(({params:t})=>this.apiKeysApiService.loadApiKeys(t).pipe(D(s=>Sv({data:s})),Q(s=>j(yv({error:s}))))))),this.createApiKey$=z(()=>this.actions$.pipe(W(Ev),ve(({params:t})=>this.apiKeysApiService.createApiKey(t).pipe(D(s=>Mu({data:s})),Q(s=>(this.developersStoreService.createApiKeyInProgress.next(!1),j(wv({error:s})))))))),this.createApiKeySuccess$=z(()=>this.actions$.pipe(W(Mu),Nt(({data:t})=>{this.canDeactivateService.unregisterAllForms(),this.developersStoreService.createApiKeyInProgress.next(!1),this.modalService.success({nzTitle:"API Key created",
44nzContent:Tv,nzMaskClosable:!1,nzWidth:460,nzClosable:!1,nzOkText:"Close",nzData:{data:t},nzOnOk:()=>this.redirectToApiKeysList()})})),{dispatch:!1}),this.deleteApiKey$=z(()=>this.actions$.pipe(W(Av),ve(({id:t})=>this.apiKeysApiService.deleteApiKey(t).pipe(D(()=>xv({id:t})),Q(s=>j(_v({error:s})))))))}redirectToWebhookEditForm(t){this.router.navigate(["/",K.administration,mt.webhooks,kv.endpoint,t],{relativeTo:this.activatedRoute})}redirectToWebhooksList(){this.router.navigate(["/",K.administration,mt.webhooks],{relativeTo:this.activatedRoute})}redirectToApiKeysList(){this.router.navigate(["/",K.administration,mt.apiKeys],{relativeTo:this.activatedRoute})}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=Y({token:n,factory:n.\u0275fac})}}return n})();var QA=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=fe({type:n})}static{this.\u0275inj=he({providers:[Pa],imports:[be,Te.forFeature(Cv,Ga),ke.forFeature([XA])]})}}return n})();var YA=(()=>{class n{constructor(){this.actions$=b(Me),this.payeesApiService=b(Na),this.loadPayees$=z(()=>this.actions$.pipe(W(Dg),ve(({params:t})=>this.payeesApiService.loadPayees(t).pipe(D(s=>Pg({data:s})),Q(s=>j(Mg({error:s}))))))),this.deletePayee$=z(()=>this.actions$.pipe(W(Lg),ve(({id:t})=>this.payeesApiService.deletePayee(t).pipe(D(()=>Rg({id:t})),Q(s=>j(Fg({error:s})))))))}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=Y({token:n,factory:n.\u0275fac})}}return n})();var KA=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=fe({type:n})}static{this.\u0275inj=he({providers:[Na],imports:[be,Te.forFeature(Bg,ja),ke.forFeature([YA])]})}}return n})();var JA=(()=>{class n{constructor(){this.actions$=b(Me),this.payersApiService=b(Ia),this.loadPayers$=z(()=>this.actions$.pipe(W(Eg),ve(({params:t})=>this.payersApiService.loadPayers(t).pipe(D(s=>wg({data:s})),Q(s=>j(Ag({error:s})))))))}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=Y({token:n,factory:n.\u0275fac})}}return n})();var ZA=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=fe({type:n})}static{this.\u0275inj=he({providers:[Ia],imports:[be,Te.forFeature(xg,_g),ke.forFeature([JA])]})}}return n})();var ex=(()=>{class n{constructor(){this.actions$=b(Me),this.fiatAccountsApiService=b(pn),this.loadFiatAccounts$=z(()=>this.actions$.pipe(W(og),Ae(({params:t})=>this.fiatAccountsApiService.loadFiatAccounts(t).pipe(D(s=>ag({data:s})),Q(s=>j(lg({error:s}))))))),this.updateFiatAccount$=z(()=>this.actions$.pipe(W(cg),Ae(({fiatAccountId:t,params:s})=>this.fiatAccountsApiService.updateFiatAccount(t,s).pipe(D(()=>t))),Ae(t=>j(ug({fiatAccountId:t}))),Q(t=>j(pg({error:t})))))}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=Y({token:n,factory:n.\u0275fac})}}return n})();var tx=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=fe({type:n})}static{this.\u0275inj=he({providers:[pn],imports:[be,Te.forFeature(hg,Ua),ke.forFeature([ex])]})}}return n})();var nx=(()=>{class n{constructor(){this.actions$=b(Me),this.loadSettings$=z(()=>this.actions$.pipe(W(eu),ve(()=>ha.pipe(D(t=>tu({data:t})),Q(t=>j(nu({error:t})))))))}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=Y({token:n,factory:n.\u0275fac})}}return n})();var sx=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=fe({type:n})}static{this.\u0275inj=he({imports:[be,Te.forFeature(SA,su),ke.forFeature([nx])]})}}return n})();var rx=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=Y({token:n,factory:n.\u0275fac})}}return n})();var ix=(()=>{class n{constructor(){this.actions$=b(Me),this.memberApiService=b(ka),this.loadMemberInfo$=z(()=>this.actions$.pipe(W(eg),ve(()=>this.memberApiService.loadMemberInfo().pipe(D(t=>tg({data:t})),Q(t=>j(ng({error:t})))))))}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=Y({token:n,factory:n.\u0275fac})}}return n})();var ox=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=fe({type:n})}static{this.\u0275inj=he({providers:[ka],imports:[be,Te.forFeature
44(sg,rg),ke.forFeature([ix])]})}}return n})();var ax=(()=>{class n{constructor(){this.actions$=b(Me),this.platformUsersApiService=b(Da),this.loadPlatformUserInfo$=z(()=>this.actions$.pipe(W(mi),ve(()=>this.platformUsersApiService.loadCurrentUser().pipe(D(t=>Kc({data:t})),Q(t=>j(Jc({error:t})))))))}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=Y({token:n,factory:n.\u0275fac})}}return n})();var lx=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=fe({type:n})}static{this.\u0275inj=he({providers:[Da],imports:[be,Te.forFeature(Zc,cA),ke.forFeature([ax])]})}}return n})();var cx=(()=>{class n{constructor(){this.actions$=b(Me),this.virtualAccountsApiService=b(Qn),this.fiatAccountsApiService=b(pn),this.loadVirtualAccounts$=z(()=>this.actions$.pipe(W(dg),Ae(({params:t})=>this.virtualAccountsApiService.loadVirtualAccounts(t).pipe(D(s=>Au({data:s,params:t})),Q(s=>j(mg({error:s}))))))),this.extendWithMasterAccountData$=z(()=>this.actions$.pipe(W(Au),Ae(({params:t,data:s})=>this.getRelatedAccountData(s,t?.limit).pipe(D(r=>({data:s?.data?.map(o=>{let a=r.find(l=>l.id===o.masterFiatAccountId);return ce(E({},o),{masterFiatAccount:a})}),pagination:s?.pagination})),D(r=>gg({data:r})),Q(r=>j(vg({error:r})))))))}getRelatedAccountData(t,s){let r=t?.data?.map(i=>i.masterFiatAccountId);return this.fiatAccountsApiService.loadFiatAccounts({limit:s,id:r}).pipe(D(i=>i.data))}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=Y({token:n,factory:n.\u0275fac})}}return n})();var ux=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=fe({type:n})}static{this.\u0275inj=he({providers:[Qn],imports:[be,Te.forFeature(Sg,yg),ke.forFeature([cx])]})}}return n})();var px=(()=>{class n{constructor(){this.actions$=b(Me),this.conversionsApiService=b(ba),this.fiatAccountsApiService=b(pn),this.loadConversions$=z(()=>this.actions$.pipe(W(Og),Ae(({params:t})=>this.conversionsApiService.loadConversions(t).pipe(D(s=>Cu({conversions:s})),Q(s=>j($g({error:s}))))))),this.extendWithFiatAccountsData$=z(()=>this.actions$.pipe(W(Cu),Ae(({conversions:t})=>{let s=t?.data?.map(o=>o.fromId),r=t?.data?.map(o=>o.toId),i=[...new Set([...s,...r])];return this.fiatAccountsApiService.loadFiatAccounts({offset:0,id:i}).pipe(D(o=>({data:t?.data?.map(l=>{let c=o.data.find(h=>h.id===l.fromId),p=o.data.find(h=>h.id===l.toId);return ce(E({},l),{fromFiatAccount:c,toFiatAccount:p})}),pagination:t?.pagination})),D(o=>Ug({data:o})),Q(o=>j(Vg({error:o}))))})))}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=Y({token:n,factory:n.\u0275fac})}}return n})();var hx=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=fe({type:n})}static{this.\u0275inj=he({providers:[ba],imports:[be,Te.forFeature(qg,Hg),ke.forFeature([px])]})}}return n})();var fx=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=fe({type:n})}static{this.\u0275inj=he({imports:[be,Te.forRoot(yA,{metaReducers:EA}),ke.forRoot([rx]),Gn.production?[]:HA.instrument(),zA,GA,QA,KA,ZA,tx,ux,sx,ox,lx,hx]})}}return n})();var dx="0a000be949a138";var GP=Yf({
44"../assets/i18n/en.ts":()=>import("./chunk-L4LXN6HB.js")
44});Pd(iA);var XP=typeof window<"u"&&!!window.Cypress,mx=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=fe({type:n,bootstrap:[gA]})}static{this.\u0275inj=he({providers:[Qm,...XP?[zd()]:[],{provide:Tm,useValue:bm},{provide:Im,useValue:oA},{provide:om,useValue:dx},{provide:Ca,useValue:im},{provide:xm,useValue:t=>GP(`../assets/i18n/${t}.ts`)},Ad(()=>(s=>()=>s.registerCustomIcons())(b(Om))()),Dm.provide(),Fd(Bd())],imports:[Aa,rA,aA,tm,fx,Mm.forRoot(),Rm.forRoot(),Ym,zm,$a,km,Xm,Qd,Jd,jd,zg,Gm,$m,Am,Hm]})}}return n})();Ud(window.location.hostname,Gn.sentry);Gn.production&&void 0;jn.getJSON("config").pipe($d("dashboard",Gn.sentry),D(hn.fromApi),D(n=>[...n.provide(),...Vd(Gn.sentry)]),D(nw),Ae(n=>n.bootstrapModule(mx,{applicationProviders:[Nd()]}))).subscribe({error:console.error});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.