jest-preset-angular
Version:
Jest preset configuration for Angular projects
94 lines • 666 kB
JavaScript
var _E=Object.create;var Qi=Object.defineProperty,RE=Object.defineProperties,PE=Object.getOwnPropertyDescriptor,LE=Object.getOwnPropertyDescriptors,ME=Object.getOwnPropertyNames,df=Object.getOwnPropertySymbols,OE=Object.getPrototypeOf,mf=Object.prototype.hasOwnProperty,FE=Object.prototype.propertyIsEnumerable;var gf=Math.pow,Pc=(t,e,n)=>e in t?Qi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,C=(t,e)=>{for(var n in e||(e={}))mf.call(e,n)&&Pc(t,n,e[n]);if(df)for(var n of df(e))FE.call(e,n)&&Pc(t,n,e[n]);return t},de=(t,e)=>RE(t,LE(e));var BE=(t,e,n)=>()=>{if(n)throw n[0];try{return t&&(e=t(t=0)),e}catch(r){throw n=[r],r}};var ee=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(n){throw e=0,n}},$E=(t,e)=>{for(var n in e)Qi(t,n,{get:e[n],enumerable:!0})},yf=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ME(e))!mf.call(t,s)&&s!==n&&Qi(t,s,{get:()=>e[s],enumerable:!(r=PE(e,s))||r.enumerable});return t};var I=(t,e,n)=>(n=t!=null?_E(OE(t)):{},yf(e||!t||!t.__esModule?Qi(n,"default",{value:t,enumerable:!0}):n,t)),UE=t=>yf(Qi({},"__esModule",{value:!0}),t);var l=(t,e,n)=>Pc(t,typeof e!="symbol"?e+"":e,n);var M,N=BE(()=>{M=require("url").pathToFileURL(__filename)});var Hi=ee((R$,uv)=>{"use strict";N();var hP="2.0.0",fP=Number.MAX_SAFE_INTEGER||9007199254740991,dP=16,mP=250,gP=["major","premajor","minor","preminor","patch","prepatch","prerelease"];uv.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:dP,MAX_SAFE_BUILD_LENGTH:mP,MAX_SAFE_INTEGER:fP,RELEASE_TYPES:gP,SEMVER_SPEC_VERSION:hP,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Aa=ee((L$,pv)=>{"use strict";N();var yP=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};pv.exports=yP});var qi=ee((Hn,hv)=>{"use strict";N();var{MAX_SAFE_COMPONENT_LENGTH:Lh,MAX_SAFE_BUILD_LENGTH:vP,MAX_LENGTH:SP}=Hi(),EP=Aa();Hn=hv.exports={};var wP=Hn.re=[],TP=Hn.safeRe=[],$=Hn.src=[],CP=Hn.safeSrc=[],U=Hn.t={},xP=0,Mh="[a-zA-Z0-9-]",NP=[["\\s",1],["\\d",SP],[Mh,vP]],IP=t=>{for(let[e,n]of NP)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},se=(t,e,n)=>{let r=IP(e),s=xP++;EP(t,s,e),U[t]=s,$[s]=e,CP[s]=r,wP[s]=new RegExp(e,n?"g":void 0),TP[s]=new RegExp(r,n?"g":void 0)};se("NUMERICIDENTIFIER","0|[1-9]\\d*");se("NUMERICIDENTIFIERLOOSE","\\d+");se("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Mh}*`);se("MAINVERSION",`(${$[U.NUMERICIDENTIFIER]})\\.(${$[U.NUMERICIDENTIFIER]})\\.(${$[U.NUMERICIDENTIFIER]})`);se("MAINVERSIONLOOSE",`(${$[U.NUMERICIDENTIFIERLOOSE]})\\.(${$[U.NUMERICIDENTIFIERLOOSE]})\\.(${$[U.NUMERICIDENTIFIERLOOSE]})`);se("PRERELEASEIDENTIFIER",`(?:${$[U.NONNUMERICIDENTIFIER]}|${$[U.NUMERICIDENTIFIER]})`);se("PRERELEASEIDENTIFIERLOOSE",`(?:${$[U.NONNUMERICIDENTIFIER]}|${$[U.NUMERICIDENTIFIERLOOSE]})`);se("PRERELEASE",`(?:-(${$[U.PRERELEASEIDENTIFIER]}(?:\\.${$[U.PRERELEASEIDENTIFIER]})*))`);se("PRERELEASELOOSE",`(?:-?(${$[U.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${$[U.PRERELEASEIDENTIFIERLOOSE]})*))`);se("BUILDIDENTIFIER",`${Mh}+`);se("BUILD",`(?:\\+(${$[U.BUILDIDENTIFIER]}(?:\\.${$[U.BUILDIDENTIFIER]})*))`);se("FULLPLAIN",`v?${$[U.MAINVERSION]}${$[U.PRERELEASE]}?${$[U.BUILD]}?`);se("FULL",`^${$[U.FULLPLAIN]}$`);se("LOOSEPLAIN",`[v=\\s]*${$[U.MAINVERSIONLOOSE]}${$[U.PRERELEASELOOSE]}?${$[U.BUILD]}?`);se("LOOSE",`^${$[U.LOOSEPLAIN]}$`);se("GTLT","((?:<|>)?=?)");se("XRANGEIDENTIFIERLOOSE",`${$[U.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);se("XRANGEIDENTIFIER",`${$[U.NUMERICIDENTIFIER]}|x|X|\\*`);se("XRANGEPLAIN",`[v=\\s]*(${$[U.XRANGEIDENTIFIER]})(?:\\.(${$[U.XRANGEIDENTIFIER]})(?:\\.(${$[U.XRANGEIDENTIFIER]})(?:${$[U.PRERELEASE]})?${$[U.BUILD]}?)?)?`);se("XRANGEPLAINLOOSE",`[v=\\s]*(${$[U.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$[U.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$[U.XRANGEIDENTIFIERLOOSE]})(?:${$[U.PRERELEASELOOSE]})?${$[U.BUILD]}?)?)?`);se("XRANGE",`^${$[U.GTLT]}\\s*${$[U.XRANGEPLAIN]}$`);se("XRANGELOOSE",`^${$[U.GTLT]}\\s*${$[U.XRANGEPLAINLOOSE]}$`);se("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Lh}})(?:\\.(\\d{1,${Lh}}))?(?:\\.(\\d{1,${Lh}}))?`);se("COERCE",`${$[U.COERCEPLAIN]}(?:$|[^\\d])`);se("COERCEFULL",$[U.COERCEPLAIN]+`(?:${$[U.PRERELEASE]})?(?:${$[U.BUILD]})?(?:$|[^\\d])`);se("COERCERTL",$[U.COERCE],!0);se("COERCERTLFULL",$[U.COERCEFULL],!0);se("LONETILDE","(?:~>?)");se("TILDETRIM",`(\\s*)${$[U.LONETILDE]}\\s+`,!0);Hn.tildeTrimReplace="$1~";se("TILDE",`^${$[U.LONETILDE]}${$[U.XRANGEPLAIN]}$`);se("TILDELOOSE",`^${$[U.LONETILDE]}${$[U.XRANGEPLAINLOOSE]}$`);se("LONECARET","(?:\\^)");se("CARETTRIM",`(\\s*)${$[U.LONECARET]}\\s+`,!0);Hn.caretTrimReplace="$1^";se("CARET",`^${$[U.LONECARET]}${$[U.XRANGEPLAIN]}$`);se("CARETLOOSE",`^${$[U.LONECARET]}${$[U.XRANGEPLAINLOOSE]}$`);se("COMPARATORLOOSE",`^${$[U.GTLT]}\\s*(${$[U.LOOSEPLAIN]})$|^$`);se("COMPARATOR",`^${$[U.GTLT]}\\s*(${$[U.FULLPLAIN]})$|^$`);se("COMPARATORTRIM",`(\\s*)${$[U.GTLT]}\\s*(${$[U.LOOSEPLAIN]}|${$[U.XRANGEPLAIN]})`,!0);Hn.comparatorTrimReplace="$1$2$3";se("HYPHENRANGE",`^\\s*(${$[U.XRANGEPLAIN]})\\s+-\\s+(${$[U.XRANGEPLAIN]})\\s*$`);se("HYPHENRANGELOOSE",`^\\s*(${$[U.XRANGEPLAINLOOSE]})\\s+-\\s+(${$[U.XRANGEPLAINLOOSE]})\\s*$`);se("STAR","(<|>)?=?\\s*\\*");se("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");se("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var vc=ee((F$,fv)=>{"use strict";N();var AP=Object.freeze({loose:!0}),bP=Object.freeze({}),DP=t=>t?typeof t!="object"?AP:t:bP;fv.exports=DP});var Oh=ee(($$,gv)=>{"use strict";N();var dv=/^[0-9]+$/,mv=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let n=dv.test(t),r=dv.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:t<e?-1:1},kP=(t,e)=>mv(e,t);gv.exports={compareIdentifiers:mv,rcompareIdentifiers:kP}});var ht=ee((V$,vv)=>{"use strict";N();var Sc=Aa(),{MAX_LENGTH:yv,MAX_SAFE_INTEGER:Ec}=Hi(),{safeRe:wc,t:Tc}=qi(),_P=vc(),{compareIdentifiers:Fh}=Oh(),RP=(t,e)=>{let n=e.split(".");if(n.length>t.length)return!1;for(let r=0;r<n.length;r++)if(Fh(t[r],n[r])!==0)return!1;return!0},Bh=class t{constructor(e,n){if(n=_P(n),e instanceof t){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>yv)throw new TypeError(`version is longer than ${yv} characters`);Sc("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let r=e.trim().match(n.loose?wc[Tc.LOOSE]:wc[Tc.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Ec||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ec||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ec||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<Ec)return i}return s}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Sc("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let n=0;do{let r=this.prerelease[n],s=e.prerelease[n];if(Sc("prerelease compare",n,r,s),r===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(r===void 0)return-1;if(r===s)continue;return Fh(r,s)}while(++n)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let n=0;do{let r=this.build[n],s=e.build[n];if(Sc("build compare",n,r,s),r===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(r===void 0)return-1;if(r===s)continue;return Fh(r,s)}while(++n)}inc(e,n,r){if(e.startsWith("pre")){if(!n&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(n){let s=`-${n}`.match(this.options.loose?wc[Tc.PRERELEASELOOSE]:wc[Tc.PRERELEASE]);if(!s||s[1]!==n)throw new Error(`invalid identifier: ${n}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,r),this.inc("pre",n,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,r),this.inc("pre",n,r);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(r)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(n){let i=[n,s];if(r===!1&&(i=[n]),RP(this.prerelease,n)){let o=this.prerelease[n.split(".").length];isNaN(o)&&(this.prerelease=i)}else this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};vv.exports=Bh});var Jr=ee((H$,Ev)=>{"use strict";N();var Sv=ht(),PP=(t,e,n=!1)=>{if(t instanceof Sv)return t;try{return new Sv(t,e)}catch(r){if(!n)return null;throw r}};Ev.exports=PP});var Tv=ee((W$,wv)=>{"use strict";N();var LP=Jr(),MP=(t,e)=>{let n=LP(t,e);return n?n.version:null};wv.exports=MP});var xv=ee((z$,Cv)=>{"use strict";N();var OP=Jr(),FP=(t,e)=>{let n=OP(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};Cv.exports=FP});var Av=ee((X$,Iv)=>{"use strict";N();var Nv=ht(),BP=(t,e,n,r,s)=>{typeof n=="string"&&(s=r,r=n,n=void 0);try{return new Nv(t instanceof Nv?t.version:t,n).inc(e,r,s).version}catch(i){return null}};Iv.exports=BP});var kv=ee((Q$,Dv)=>{"use strict";N();var bv=Jr(),$P=(t,e)=>{let n=bv(t,null,!0),r=bv(e,null,!0),s=n.compare(r);if(s===0)return null;let i=s>0,o=i?n:r,a=i?r:n,c=!!o.prerelease.length;if(!!a.prerelease.length&&!c){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}let f=c?"pre":"";return n.major!==r.major?f+"major":n.minor!==r.minor?f+"minor":n.patch!==r.patch?f+"patch":"prerelease"};Dv.exports=$P});var Rv=ee((Z$,_v)=>{"use strict";N();var UP=ht(),VP=(t,e)=>new UP(t,e).major;_v.exports=VP});var Lv=ee((tU,Pv)=>{"use strict";N();var GP=ht(),HP=(t,e)=>new GP(t,e).minor;Pv.exports=HP});var Ov=ee((rU,Mv)=>{"use strict";N();var qP=ht(),WP=(t,e)=>new qP(t,e).patch;Mv.exports=WP});var Bv=ee((iU,Fv)=>{"use strict";N();var jP=Jr(),zP=(t,e)=>{let n=jP(t,e);return n&&n.prerelease.length?n.prerelease:null};Fv.exports=zP});var dn=ee((aU,Uv)=>{"use strict";N();var $v=ht(),KP=(t,e,n)=>new $v(t,n).compare(new $v(e,n));Uv.exports=KP});var Gv=ee((cU,Vv)=>{"use strict";N();var XP=dn(),YP=(t,e,n)=>XP(e,t,n);Vv.exports=YP});var qv=ee((pU,Hv)=>{"use strict";N();var QP=dn(),JP=(t,e)=>QP(t,e,!0);Hv.exports=JP});var Cc=ee((fU,jv)=>{"use strict";N();var Wv=ht(),ZP=(t,e,n)=>{let r=new Wv(t,n),s=new Wv(e,n);return r.compare(s)||r.compareBuild(s)};jv.exports=ZP});var Kv=ee((mU,zv)=>{"use strict";N();var eL=Cc(),tL=(t,e)=>t.sort((n,r)=>eL(n,r,e));zv.exports=tL});var Yv=ee((yU,Xv)=>{"use strict";N();var nL=Cc(),rL=(t,e)=>t.sort((n,r)=>nL(r,n,e));Xv.exports=rL});var ba=ee((SU,Qv)=>{"use strict";N();var sL=dn(),iL=(t,e,n)=>sL(t,e,n)>0;Qv.exports=iL});var xc=ee((wU,Jv)=>{"use strict";N();var oL=dn(),aL=(t,e,n)=>oL(t,e,n)<0;Jv.exports=aL});var $h=ee((CU,Zv)=>{"use strict";N();var lL=dn(),cL=(t,e,n)=>lL(t,e,n)===0;Zv.exports=cL});var Uh=ee((NU,eS)=>{"use strict";N();var uL=dn(),pL=(t,e,n)=>uL(t,e,n)!==0;eS.exports=pL});var Nc=ee((AU,tS)=>{"use strict";N();var hL=dn(),fL=(t,e,n)=>hL(t,e,n)>=0;tS.exports=fL});var Ic=ee((DU,nS)=>{"use strict";N();var dL=dn(),mL=(t,e,n)=>dL(t,e,n)<=0;nS.exports=mL});var Vh=ee((_U,rS)=>{"use strict";N();var gL=$h(),yL=Uh(),vL=ba(),SL=Nc(),EL=xc(),wL=Ic(),TL=(t,e,n,r)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return gL(t,n,r);case"!=":return yL(t,n,r);case">":return vL(t,n,r);case">=":return SL(t,n,r);case"<":return EL(t,n,r);case"<=":return wL(t,n,r);default:throw new TypeError(`Invalid operator: ${e}`)}};rS.exports=TL});var iS=ee((PU,sS)=>{"use strict";N();var CL=ht(),xL=Jr(),{safeRe:Ac,t:bc}=qi(),NL=(t,e)=>{if(t instanceof CL)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let n=null;if(!e.rtl)n=t.match(e.includePrerelease?Ac[bc.COERCEFULL]:Ac[bc.COERCE]);else{let c=e.includePrerelease?Ac[bc.COERCERTLFULL]:Ac[bc.COERCERTL],u;for(;(u=c.exec(t))&&(!n||n.index+n[0].length!==t.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),c.lastIndex=u.index+u[1].length+u[2].length;c.lastIndex=-1}if(n===null)return null;let r=n[2],s=n[3]||"0",i=n[4]||"0",o=e.includePrerelease&&n[5]?`-${n[5]}`:"",a=e.includePrerelease&&n[6]?`+${n[6]}`:"";return xL(`${r}.${s}.${i}${o}${a}`,e)};sS.exports=NL});var aS=ee((MU,oS)=>{"use strict";N();var IL=Jr(),AL=Hi(),bL=ht(),DL=(t,e,n)=>{if(!AL.RELEASE_TYPES.includes(e))return null;let r=kL(t,n);return r&&_L(r,e)},kL=(t,e)=>{let n=t instanceof bL?t.version:t;return IL(n,e)},_L=(t,e)=>{if(RL(e))return t.version;switch(t.prerelease=[],e){case"major":t.minor=0,t.patch=0;break;case"minor":t.patch=0;break}return t.format()},RL=t=>t.startsWith("pre");oS.exports=DL});var cS=ee((FU,lS)=>{"use strict";N();var Gh=class{constructor(){this.max=1e3,this.map=new Map}get(e){let n=this.map.get(e);if(n!==void 0)return this.map.delete(e),this.map.set(e,n),n}delete(e){return this.map.delete(e)}set(e,n){if(!this.delete(e)&&n!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,n)}return this}};lS.exports=Gh});var mn=ee(($U,fS)=>{"use strict";N();var PL=/\s+/g,Hh=class t{constructor(e,n){if(n=ML(n),e instanceof t)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new t(e.raw,n);if(e instanceof qh)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e.trim().replace(PL," "),this.set=this.raw.split("||").map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let r=this.set[0];if(this.set=this.set.filter(s=>!pS(s[0])),this.set.length===0)this.set=[r];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&qL(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let n=this.set[e];for(let r=0;r<n.length;r++)r>0&&(this.formatted+=" "),this.formatted+=n[r].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(HL,"");let r=((this.options.includePrerelease&&VL)|(this.options.loose&&GL))+":"+e,s=uS.get(r);if(s)return s;let i=this.options.loose,o=i?Ft[ft.HYPHENRANGELOOSE]:Ft[ft.HYPHENRANGE];e=e.replace(o,tM(this.options.includePrerelease)),xe("hyphen replace",e),e=e.replace(Ft[ft.COMPARATORTRIM],BL),xe("comparator trim",e),e=e.replace(Ft[ft.TILDETRIM],$L),xe("tilde trim",e),e=e.replace(Ft[ft.CARETTRIM],UL),xe("caret trim",e);let a=e.split(" ").map(h=>WL(h,this.options)).join(" ").split(/\s+/).map(h=>eM(h,this.options));i&&(a=a.filter(h=>(xe("loose invalid filter",h,this.options),!!h.match(Ft[ft.COMPARATORLOOSE])))),xe("range list",a);let c=new Map,u=a.map(h=>new qh(h,this.options));for(let h of u){if(pS(h))return[h];c.set(h.value,h)}c.size>1&&c.has("")&&c.delete("");let f=[...c.values()];return uS.set(r,f),f}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(r=>hS(r,n)&&e.set.some(s=>hS(s,n)&&r.every(i=>s.every(o=>i.intersects(o,n)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new OL(e,this.options)}catch(n){return!1}for(let n=0;n<this.set.length;n++)if(nM(this.set[n],e,this.options))return!0;return!1}};fS.exports=Hh;var LL=cS(),uS=new LL,ML=vc(),qh=Da(),xe=Aa(),OL=ht(),{safeRe:Ft,src:FL,t:ft,comparatorTrimReplace:BL,tildeTrimReplace:$L,caretTrimReplace:UL}=qi(),{FLAG_INCLUDE_PRERELEASE:VL,FLAG_LOOSE:GL}=Hi(),HL=new RegExp(FL[ft.BUILD],"g"),pS=t=>t.value==="<0.0.0-0",qL=t=>t.value==="",hS=(t,e)=>{let n=!0,r=t.slice(),s=r.pop();for(;n&&r.length;)n=r.every(i=>s.intersects(i,e)),s=r.pop();return n},WL=(t,e)=>(t=t.replace(Ft[ft.BUILD],""),xe("comp",t,e),t=XL(t,e),xe("caret",t),t=zL(t,e),xe("tildes",t),t=QL(t,e),xe("xrange",t),t=ZL(t,e),xe("stars",t),t),rt=t=>!t||t.toLowerCase()==="x"||t==="*",jL=(t,e,n)=>rt(t)&&!rt(e)||rt(e)&&n&&!rt(n),zL=(t,e)=>t.trim().split(/\s+/).map(n=>KL(n,e)).join(" "),KL=(t,e)=>{let n=e.loose?Ft[ft.TILDELOOSE]:Ft[ft.TILDE],r=e.includePrerelease?"-0":"";return t.replace(n,(s,i,o,a,c)=>{xe("tilde",t,s,i,o,a,c);let u;return rt(i)?u="":rt(o)?u=`>=${i}.0.0${r} <${+i+1}.0.0-0`:rt(a)?u=`>=${i}.${o}.0${r} <${i}.${+o+1}.0-0`:c?(xe("replaceTilde pr",c),u=`>=${i}.${o}.${a}-${c} <${i}.${+o+1}.0-0`):u=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`,xe("tilde return",u),u})},XL=(t,e)=>t.trim().split(/\s+/).map(n=>YL(n,e)).join(" "),YL=(t,e)=>{xe("caret",t,e);let n=e.loose?Ft[ft.CARETLOOSE]:Ft[ft.CARET],r=e.includePrerelease?"-0":"";return t.replace(n,(s,i,o,a,c)=>{xe("caret",t,s,i,o,a,c);let u;return rt(i)?u="":rt(o)?u=`>=${i}.0.0${r} <${+i+1}.0.0-0`:rt(a)?i==="0"?u=`>=${i}.${o}.0${r} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.0${r} <${+i+1}.0.0-0`:c?(xe("replaceCaret pr",c),i==="0"?o==="0"?u=`>=${i}.${o}.${a}-${c} <${i}.${o}.${+a+1}-0`:u=`>=${i}.${o}.${a}-${c} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${a}-${c} <${+i+1}.0.0-0`):(xe("no pr"),i==="0"?o==="0"?u=`>=${i}.${o}.${a} <${i}.${o}.${+a+1}-0`:u=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${a} <${+i+1}.0.0-0`),xe("caret return",u),u})},QL=(t,e)=>(xe("replaceXRanges",t,e),t.split(/\s+/).map(n=>JL(n,e)).join(" ")),JL=(t,e)=>{t=t.trim();let n=e.loose?Ft[ft.XRANGELOOSE]:Ft[ft.XRANGE];return t.replace(n,(r,s,i,o,a,c)=>{if(xe("xRange",t,r,s,i,o,a,c),jL(i,o,a))return t;let u=rt(i),f=u||rt(o),h=f||rt(a),p=h;return s==="="&&p&&(s=""),c=e.includePrerelease?"-0":"",u?s===">"||s==="<"?r="<0.0.0-0":r="*":s&&p?(f&&(o=0),a=0,s===">"?(s=">=",f?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):s==="<="&&(s="<",f?i=+i+1:o=+o+1),s==="<"&&(c="-0"),r=`${s+i}.${o}.${a}${c}`):f?r=`>=${i}.0.0${c} <${+i+1}.0.0-0`:h&&(r=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),xe("xRange return",r),r})},ZL=(t,e)=>(xe("replaceStars",t,e),t.trim().replace(Ft[ft.STAR],"")),eM=(t,e)=>(xe("replaceGTE0",t,e),t.trim().replace(Ft[e.includePrerelease?ft.GTE0PRE:ft.GTE0],"")),tM=t=>(e,n,r,s,i,o,a,c,u,f,h,p)=>(rt(r)?n="":rt(s)?n=`>=${r}.0.0${t?"-0":""}`:rt(i)?n=`>=${r}.${s}.0${t?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,rt(u)?c="":rt(f)?c=`<${+u+1}.0.0-0`:rt(h)?c=`<${u}.${+f+1}.0-0`:p?c=`<=${u}.${f}.${h}-${p}`:t?c=`<${u}.${f}.${+h+1}-0`:c=`<=${c}`,`${n} ${c}`.trim()),nM=(t,e,n)=>{for(let r=0;r<t.length;r++)if(!t[r].test(e))return!1;if(e.prerelease.length&&!n.includePrerelease){for(let r=0;r<t.length;r++)if(xe(t[r].semver),t[r].semver!==qh.ANY&&t[r].semver.prerelease.length>0){let s=t[r].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var Da=ee((VU,SS)=>{"use strict";N();var ka=Symbol("SemVer ANY"),zh=class t{static get ANY(){return ka}constructor(e,n){if(n=dS(n),e instanceof t){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),jh("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===ka?this.value="":this.value=this.operator+this.semver.version,jh("comp",this)}parse(e){let n=this.options.loose?mS[gS.COMPARATORLOOSE]:mS[gS.COMPARATOR],r=e.match(n);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new yS(r[2],this.options.loose):this.semver=ka}toString(){return this.value}test(e){if(jh("Comparator.test",e,this.options.loose),this.semver===ka||e===ka)return!0;if(typeof e=="string")try{e=new yS(e,this.options)}catch(n){return!1}return Wh(e,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new vS(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new vS(this.value,n).test(e.semver):(n=dS(n),n.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Wh(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Wh(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};SS.exports=zh;var dS=vc(),{safeRe:mS,t:gS}=qi(),Wh=Vh(),jh=Aa(),yS=ht(),vS=mn()});var _a=ee((HU,ES)=>{"use strict";N();var rM=mn(),sM=(t,e,n)=>{try{e=new rM(e,n)}catch(r){return!1}return e.test(t)};ES.exports=sM});var TS=ee((WU,wS)=>{"use strict";N();var iM=mn(),oM=(t,e)=>new iM(t,e).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));wS.exports=oM});var xS=ee((zU,CS)=>{"use strict";N();var aM=ht(),lM=mn(),cM=(t,e,n)=>{let r=null,s=null,i=null;try{i=new lM(e,n)}catch(o){return null}return t.forEach(o=>{i.test(o)&&(!r||s.compare(o)===-1)&&(r=o,s=new aM(r,n))}),r};CS.exports=cM});var IS=ee((XU,NS)=>{"use strict";N();var uM=ht(),pM=mn(),hM=(t,e,n)=>{let r=null,s=null,i=null;try{i=new pM(e,n)}catch(o){return null}return t.forEach(o=>{i.test(o)&&(!r||s.compare(o)===1)&&(r=o,s=new uM(r,n))}),r};NS.exports=hM});var DS=ee((QU,bS)=>{"use strict";N();var Kh=ht(),fM=mn(),AS=ba(),dM=(t,e)=>{t=new fM(t,e);let n=new Kh("0.0.0");if(t.test(n)||(n=new Kh("0.0.0-0"),t.test(n)))return n;n=null;for(let r=0;r<t.set.length;++r){let s=t.set[r],i=null;s.forEach(o=>{let a=new Kh(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!i||AS(a,i))&&(i=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!n||AS(n,i))&&(n=i)}return n&&t.test(n)?n:null};bS.exports=dM});var _S=ee((ZU,kS)=>{"use strict";N();var mM=mn(),gM=(t,e)=>{try{return new mM(t,e).range||"*"}catch(n){return null}};kS.exports=gM});var Dc=ee((t8,MS)=>{"use strict";N();var yM=ht(),LS=Da(),{ANY:vM}=LS,SM=mn(),EM=_a(),RS=ba(),PS=xc(),wM=Ic(),TM=Nc(),CM=(t,e,n,r)=>{t=new yM(t,r),e=new SM(e,r);let s,i,o,a,c;switch(n){case">":s=RS,i=wM,o=PS,a=">",c=">=";break;case"<":s=PS,i=TM,o=RS,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(EM(t,e,r))return!1;for(let u=0;u<e.set.length;++u){let f=e.set[u],h=null,p=null;if(f.forEach(g=>{g.semver===vM&&(g=new LS(">=0.0.0")),h=h||g,p=p||g,s(g.semver,h.semver,r)?h=g:o(g.semver,p.semver,r)&&(p=g)}),h.operator===a||h.operator===c||(!p.operator||p.operator===a)&&i(t,p.semver))return!1;if(p.operator===c&&o(t,p.semver))return!1}return!0};MS.exports=CM});var FS=ee((r8,OS)=>{"use strict";N();var xM=Dc(),NM=(t,e,n)=>xM(t,e,">",n);OS.exports=NM});var $S=ee((i8,BS)=>{"use strict";N();var IM=Dc(),AM=(t,e,n)=>IM(t,e,"<",n);BS.exports=AM});var GS=ee((a8,VS)=>{"use strict";N();var US=mn(),bM=(t,e,n)=>(t=new US(t,n),e=new US(e,n),t.intersects(e,n));VS.exports=bM});var qS=ee((c8,HS)=>{"use strict";N();var DM=_a(),kM=dn();HS.exports=(t,e,n)=>{let r=[],s=null,i=null,o=t.sort((f,h)=>kM(f,h,n));for(let f of o)DM(f,e,n)?(i=f,s||(s=f)):(i&&r.push([s,i]),i=null,s=null);s&&r.push([s,null]);let a=[];for(let[f,h]of r)f===h?a.push(f):!h&&f===o[0]?a.push("*"):h?f===o[0]?a.push(`<=${h}`):a.push(`${f} - ${h}`):a.push(`>=${f}`);let c=a.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return c.length<u.length?c:e}});var YS=ee((p8,XS)=>{"use strict";N();var WS=mn(),Qh=Da(),{ANY:Xh}=Qh,Yh=_a(),Jh=dn(),_M=(t,e,n={})=>{if(t===e)return!0;t=new WS(t,n),e=new WS(e,n);let r=!1;e:for(let s of t.set){for(let i of e.set){let o=PM(s,i,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},RM=[new Qh(">=0.0.0-0")],jS=[new Qh(">=0.0.0")],PM=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Xh){if(e.length===1&&e[0].semver===Xh)return!0;n.includePrerelease?t=RM:t=jS}if(e.length===1&&e[0].semver===Xh){if(n.includePrerelease)return!0;e=jS}let r=new Set,s,i;for(let g of t)g.operator===">"||g.operator===">="?s=zS(s,g,n):g.operator==="<"||g.operator==="<="?i=KS(i,g,n):r.add(g.semver);if(r.size>1)return null;let o;if(s&&i){if(o=Jh(s.semver,i.semver,n),o>0)return null;if(o===0&&(s.operator!==">="||i.operator!=="<="))return null}for(let g of r){if(s&&!Yh(g,String(s),n)||i&&!Yh(g,String(i),n))return null;for(let y of e)if(!Yh(g,String(y),n))return!1;return!0}let a,c,u,f,h=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1,p=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;h&&h.prerelease.length===1&&i.operator==="<"&&h.prerelease[0]===0&&(h=!1);for(let g of e){if(f=f||g.operator===">"||g.operator===">=",u=u||g.operator==="<"||g.operator==="<=",s){if(p&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===p.major&&g.semver.minor===p.minor&&g.semver.patch===p.patch&&(p=!1),g.operator===">"||g.operator===">="){if(a=zS(s,g,n),a===g&&a!==s)return!1}else if(s.operator===">="&&!g.test(s.semver))return!1}if(i){if(h&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===h.major&&g.semver.minor===h.minor&&g.semver.patch===h.patch&&(h=!1),g.operator==="<"||g.operator==="<="){if(c=KS(i,g,n),c===g&&c!==i)return!1}else if(i.operator==="<="&&!g.test(i.semver))return!1}if(!g.operator&&(i||s)&&o!==0)return!1}return!(s&&u&&!i&&o!==0||i&&f&&!s&&o!==0||p||h)},zS=(t,e,n)=>{if(!t)return e;let r=Jh(t.semver,e.semver,n);return r>0?t:r<0||e.operator===">"&&t.operator===">="?e:t},KS=(t,e,n)=>{if(!t)return e;let r=Jh(t.semver,e.semver,n);return r<0?t:r>0||e.operator==="<"&&t.operator==="<="?e:t};XS.exports=_M});var eE=ee((f8,ZS)=>{"use strict";N();var Zh=qi(),QS=Hi(),LM=ht(),JS=Oh(),MM=Jr(),OM=Tv(),FM=xv(),BM=Av(),$M=kv(),UM=Rv(),VM=Lv(),GM=Ov(),HM=Bv(),qM=dn(),WM=Gv(),jM=qv(),zM=Cc(),KM=Kv(),XM=Yv(),YM=ba(),QM=xc(),JM=$h(),ZM=Uh(),eO=Nc(),tO=Ic(),nO=Vh(),rO=iS(),sO=aS(),iO=Da(),oO=mn(),aO=_a(),lO=TS(),cO=xS(),uO=IS(),pO=DS(),hO=_S(),fO=Dc(),dO=FS(),mO=$S(),gO=GS(),yO=qS(),vO=YS();ZS.exports={parse:MM,valid:OM,clean:FM,inc:BM,diff:$M,major:UM,minor:VM,patch:GM,prerelease:HM,compare:qM,rcompare:WM,compareLoose:jM,compareBuild:zM,sort:KM,rsort:XM,gt:YM,lt:QM,eq:JM,neq:ZM,gte:eO,lte:tO,cmp:nO,coerce:rO,truncate:sO,Comparator:iO,Range:oO,satisfies:aO,toComparators:lO,maxSatisfying:cO,minSatisfying:uO,minVersion:pO,validRange:hO,outside:fO,gtr:dO,ltr:mO,intersects:gO,simplifyRange:yO,subset:vO,SemVer:LM,re:Zh.re,src:Zh.src,tokens:Zh.t,SEMVER_SPEC_VERSION:QS.SEMVER_SPEC_VERSION,RELEASE_TYPES:QS.RELEASE_TYPES,compareIdentifiers:JS.compareIdentifiers,rcompareIdentifiers:JS.rcompareIdentifiers}});var c1={};$E(c1,{angularJitApplicationTransform:()=>yc});module.exports=UE(c1);N();N();var AE=require("module");N();var Ty=require("module");N();var vf=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g"),Ar=class t{constructor(){l(this,"element",null);l(this,"classNames",[]);l(this,"attrs",[]);l(this,"notSelectors",[])}static parse(e){let n=[],r=(c,u)=>{u.notSelectors.length>0&&!u.element&&u.classNames.length==0&&u.attrs.length==0&&(u.element="*"),c.push(u)},s=new t,i,o=s,a=!1;for(vf.lastIndex=0;i=vf.exec(e);){if(i[1]){if(a)throw new Error("Nesting :not in a selector is not allowed");a=!0,o=new t,s.notSelectors.push(o)}let c=i[2];if(c){let f=i[3];f==="#"?o.addAttribute("id",c.slice(1)):f==="."?o.addClassName(c.slice(1)):o.setElement(c)}let u=i[4];if(u&&o.addAttribute(o.unescapeAttribute(u),i[6]),i[7]&&(a=!1,o=s),i[8]){if(a)throw new Error("Multiple selectors in :not are not supported");r(n,s),s=o=new t}}return r(n,s),n}unescapeAttribute(e){let n="",r=!1;for(let s=0;s<e.length;s++){let i=e.charAt(s);if(i==="\\"){r=!0;continue}if(i==="$"&&!r)throw new Error(`Error in attribute selector "${e}". Unescaped "$" is not supported. Please escape with "\\$".`);r=!1,n+=i}return n}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}setElement(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,n=""){this.attrs.push(e,n&&n.toLowerCase()||"")}addClassName(e){this.classNames.push(e.toLowerCase())}toString(){let e=this.element||"";if(this.classNames&&this.classNames.forEach(n=>e+=`.${n}`),this.attrs)for(let n=0;n<this.attrs.length;n+=2){let r=this.escapeAttribute(this.attrs[n]),s=this.attrs[n+1];e+=`[${r}${s?"="+s:""}]`}return this.notSelectors.forEach(n=>e+=`:not(${n})`),e}},li=class t{constructor(){l(this,"_elementMap",new Map);l(this,"_elementPartialMap",new Map);l(this,"_classMap",new Map);l(this,"_classPartialMap",new Map);l(this,"_attrValueMap",new Map);l(this,"_attrValuePartialMap",new Map);l(this,"_listContexts",[])}static createNotMatcher(e){let n=new t;return n.addSelectables(e,null),n}addSelectables(e,n){let r=null;e.length>1&&(r=new eu(e),this._listContexts.push(r));for(let s=0;s<e.length;s++)this._addSelectable(e[s],n,r)}_addSelectable(e,n,r){let s=this,i=e.element,o=e.classNames,a=e.attrs,c=new tu(e,n,r);if(i&&(a.length===0&&o.length===0?this._addTerminal(s._elementMap,i,c):s=this._addPartial(s._elementPartialMap,i)),o)for(let u=0;u<o.length;u++){let f=a.length===0&&u===o.length-1,h=o[u];f?this._addTerminal(s._classMap,h,c):s=this._addPartial(s._classPartialMap,h)}if(a)for(let u=0;u<a.length;u+=2){let f=u===a.length-2,h=a[u],p=a[u+1];if(f){let g=s._attrValueMap,y=g.get(h);y||(y=new Map,g.set(h,y)),this._addTerminal(y,p,c)}else{let g=s._attrValuePartialMap,y=g.get(h);y||(y=new Map,g.set(h,y)),s=this._addPartial(y,p)}}}_addTerminal(e,n,r){let s=e.get(n);s||(s=[],e.set(n,s)),s.push(r)}_addPartial(e,n){let r=e.get(n);return r||(r=new t,e.set(n,r)),r}match(e,n){let r=!1,s=e.element,i=e.classNames,o=e.attrs;for(let a=0;a<this._listContexts.length;a++)this._listContexts[a].alreadyMatched=!1;if(r=this._matchTerminal(this._elementMap,s,e,n)||r,r=this._matchPartial(this._elementPartialMap,s,e,n)||r,i)for(let a=0;a<i.length;a++){let c=i[a];r=this._matchTerminal(this._classMap,c,e,n)||r,r=this._matchPartial(this._classPartialMap,c,e,n)||r}if(o)for(let a=0;a<o.length;a+=2){let c=o[a],u=o[a+1],f=this._attrValueMap.get(c);u&&(r=this._matchTerminal(f,"",e,n)||r),r=this._matchTerminal(f,u,e,n)||r;let h=this._attrValuePartialMap.get(c);u&&(r=this._matchPartial(h,"",e,n)||r),r=this._matchPartial(h,u,e,n)||r}return r}_matchTerminal(e,n,r,s){if(!e||typeof n!="string")return!1;let i=e.get(n)||[],o=e.get("*");if(o&&(i=i.concat(o)),i.length===0)return!1;let a,c=!1;for(let u=0;u<i.length;u++)a=i[u],c=a.finalize(r,s)||c;return c}_matchPartial(e,n,r,s){if(!e||typeof n!="string")return!1;let i=e.get(n);return i?i.match(r,s):!1}},eu=class{constructor(e){l(this,"selectors");l(this,"alreadyMatched",!1);this.selectors=e}},tu=class{constructor(e,n,r){l(this,"selector");l(this,"cbContext");l(this,"listContext");l(this,"notSelectors");this.selector=e,this.cbContext=n,this.listContext=r,this.notSelectors=e.notSelectors}finalize(e,n){let r=!0;return this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)&&(r=!li.createNotMatcher(this.notSelectors).match(e,null)),r&&n&&(!this.listContext||!this.listContext.alreadyMatched)&&(this.listContext&&(this.listContext.alreadyMatched=!0),n(this.selector,this.cbContext)),r}},br=class{constructor(e){l(this,"registry");this.registry=e}match(e){return this.registry.has(e)?this.registry.get(e):[]}},ne;(function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING"})(ne||(ne={}));var rs,nu="svg",VE="math",ru="",Sf="*",su=()=>Object.create(null);function GE(){return rs||(rs=su(),dr(ne.HTML,void 0,[["iframe",["srcdoc"]],["*",["innerHTML","outerHTML"]]]),dr(ne.STYLE,void 0,[["*",["style"]]]),dr(ne.URL,void 0,[["*",["formAction"]],["area",["href"]],["a",["href","xlink:href"]],["form",["action"]]]),dr(ne.URL,VE,[["*",["href","xlink:href"]]]),dr(ne.RESOURCE_URL,void 0,[["base",["href"]],["embed",["src"]],["frame",["src"]],["iframe",["src"]],["link",["href"]],["object",["codebase","data"]]]),dr(ne.URL,nu,[["a",["href","xlink:href"]]]),dr(ne.ATTRIBUTE_NO_BINDING,nu,[["animate",["attributeName","values","to","from"]],["set",["to","attributeName"]],["animateMotion",["attributeName"]],["animateTransform",["attributeName"]]]),dr(ne.ATTRIBUTE_NO_BINDING,void 0,[["unknown",["attributeName","values","to","from","sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority","credentialless"]],["iframe",["sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority","credentialless"]]]),rs)}function dr(t,e,n){var s,i;let r=e!=null?e:ru;for(let[o,a]of n){let c=o.toLowerCase();for(let u of a){let f=u.toLowerCase(),h=(s=rs[f])!=null?s:rs[f]=su(),p=(i=h[r])!=null?i:h[r]=su();p[c]=t}}}function HE(t,e,n){var a,c;let s=GE()[e.toLowerCase()];if(!s)return ne.NONE;let i=t.toLowerCase(),o;if(n){let u=s[n];u&&(o=(a=u[i])!=null?a:u[Sf])}if(o===void 0){let u=s[ru];u&&(o=(c=u[i])!=null?c:u[Sf])}if(o===void 0&&(!n||n===ru)){let u=s[nu];u&&(o=u[i])}return o!=null?o:ne.NONE}var An;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t[t.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom"})(An||(An={}));var Za;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t[t.Eager=1]="Eager"})(Za||(Za={}));var Xs;(function(t){t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Xs||(Xs={}));var el={name:"custom-elements"},tl={name:"no-errors-schema"};var Ef;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(Ef||(Ef={}));function qE(t){let e=t.classNames&&t.classNames.length?[8,...t.classNames]:[];return[t.element&&t.element!=="*"?t.element:"",...t.attrs,...e]}function WE(t){let e=t.classNames&&t.classNames.length?[8,...t.classNames]:[];return t.element?[5,t.element,...t.attrs,...e]:t.attrs.length?[3,...t.attrs,...e]:t.classNames&&t.classNames.length?[9,...t.classNames]:[]}function jE(t){let e=qE(t),n=t.notSelectors&&t.notSelectors.length?t.notSelectors.map(r=>WE(r)):[];return e.concat(...n)}function Lp(t){return t?Ar.parse(t).map(jE):[]}var yt;(function(t){t[t.Directive=0]="Directive",t[t.Component=1]="Component",t[t.Injectable=2]="Injectable",t[t.Pipe=3]="Pipe",t[t.NgModule=4]="NgModule",t[t.Service=5]="Service"})(yt||(yt={}));var wf;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(wf||(wf={}));var Tf;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t[t.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom"})(Tf||(Tf={}));var bn;function zE(t){return QE(YE(t.nodes).join("")+`[${t.meaning}]`)}function KE(t){return t.id||bm(t)}function bm(t){let e=new iu,n=t.nodes.map(r=>r.visit(e,null));return Dm(n.join(""),t.meaning)}var nl=class{visitText(e,n){return e.value}visitContainer(e,n){return`[${e.children.map(r=>r.visit(this)).join(", ")}]`}visitIcu(e,n){let r=Object.keys(e.cases).map(s=>`${s} {${e.cases[s].visit(this)}}`);return`{${e.expression}, ${e.type}, ${r.join(", ")}}`}visitTagPlaceholder(e,n){return e.isVoid?`<ph tag name="${e.startName}"/>`:`<ph tag name="${e.startName}">${e.children.map(r=>r.visit(this)).join(", ")}</ph name="${e.closeName}">`}visitPlaceholder(e,n){return e.value?`<ph name="${e.name}">${e.value}</ph>`:`<ph name="${e.name}"/>`}visitIcuPlaceholder(e,n){return`<ph icu name="${e.name}">${e.value.visit(this)}</ph>`}visitBlockPlaceholder(e,n){return`<ph block name="${e.startName}">${e.children.map(r=>r.visit(this)).join(", ")}</ph name="${e.closeName}">`}},XE=new nl;function YE(t){return t.map(e=>e.visit(XE,null))}var iu=class extends nl{visitIcu(e){let n=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.type}, ${n.join(", ")}}`}};function QE(t){bn!=null||(bn=new TextEncoder);let e=[...bn.encode(t)],n=ew(e,rl.Big),r=e.length*8,s=new Uint32Array(80),i=1732584193,o=4023233417,a=2562383102,c=271733878,u=3285377520;n[r>>5]|=128<<24-r%32,n[(r+64>>9<<4)+15]=r;for(let f=0;f<n.length;f+=16){let h=i,p=o,g=a,y=c,E=u;for(let w=0;w<80;w++){w<16?s[w]=n[f+w]:s[w]=Lc(s[w-3]^s[w-8]^s[w-14]^s[w-16],1);let A=JE(w,o,a,c),k=A[0],_=A[1],H=[Lc(i,5),k,u,_,s[w]].reduce($s);u=c,c=a,a=Lc(o,30),o=i,i=H}i=$s(i,h),o=$s(o,p),a=$s(a,g),c=$s(c,y),u=$s(u,E)}return Ji(i)+Ji(o)+Ji(a)+Ji(c)+Ji(u)}function Ji(t){return(t>>>0).toString(16).padStart(8,"0")}function JE(t,e,n,r){return t<20?[e&n|~e&r,1518500249]:t<40?[e^n^r,1859775393]:t<60?[e&n|e&r|n&r,2400959708]:[e^n^r,3395469782]}function Cf(t){bn!=null||(bn=new TextEncoder);let e=bn.encode(t),n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=xf(n,e.length,0),s=xf(n,e.length,102072);return r==0&&(s==0||s==1)&&(r=r^319790063,s=s^-1801410264),BigInt.asUintN(32,BigInt(r))<<BigInt(32)|BigInt.asUintN(32,BigInt(s))}function Dm(t,e=""){let n=Cf(t);return e&&(n=BigInt.asUintN(64,n<<BigInt(1))|n>>BigInt(63)&BigInt(1),n+=Cf(e)),BigInt.asUintN(63,n).toString()}function xf(t,e,n){let r=2654435769,s=2654435769,i=0,o=e-12;for(;i<=o;i+=12){r+=t.getUint32(i,!0),s+=t.getUint32(i+4,!0),n+=t.getUint32(i+8,!0);let c=Nf(r,s,n);r=c[0],s=c[1],n=c[2]}let a=e-i;return n+=e,a>=4?(r+=t.getUint32(i,!0),i+=4,a>=8?(s+=t.getUint32(i,!0),i+=4,a>=9&&(n+=t.getUint8(i++)<<8),a>=10&&(n+=t.getUint8(i++)<<16),a===11&&(n+=t.getUint8(i++)<<24)):(a>=5&&(s+=t.getUint8(i++)),a>=6&&(s+=t.getUint8(i++)<<8),a===7&&(s+=t.getUint8(i++)<<16))):(a>=1&&(r+=t.getUint8(i++)),a>=2&&(r+=t.getUint8(i++)<<8),a===3&&(r+=t.getUint8(i++)<<16)),Nf(r,s,n)[2]}function Nf(t,e,n){return t-=e,t-=n,t^=n>>>13,e-=n,e-=t,e^=t<<8,n-=t,n-=e,n^=e>>>13,t-=e,t-=n,t^=n>>>12,e-=n,e-=t,e^=t<<16,n-=t,n-=e,n^=e>>>5,t-=e,t-=n,t^=n>>>3,e-=n,e-=t,e^=t<<10,n-=t,n-=e,n^=e>>>15,[t,e,n]}var rl;(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(rl||(rl={}));function $s(t,e){return ZE(t,e)[1]}function ZE(t,e){let n=(t&65535)+(e&65535),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|n&65535]}function Lc(t,e){return t<<e|t>>>32-e}function ew(t,e){let n=t.length+3>>>2,r=[];for(let s=0;s<n;s++)r[s]=tw(t,s*4,e);return r}function If(t,e){return e>=t.length?0:t[e]}function tw(t,e,n){let r=0;if(n===rl.Big)for(let s=0;s<4;s++)r+=If(t,e+s)<<24-8*s;else for(let s=0;s<4;s++)r+=If(t,e+s)<<8*s;return r}var sl;(function(t){t[t.None=0]="None",t[t.Const=1]="Const"})(sl||(sl={}));var Dr=class{constructor(e=sl.None){l(this,"modifiers");this.modifiers=e}hasModifier(e){return(this.modifiers&e)!==0}},Ve;(function(t){t[t.Dynamic=0]="Dynamic",t[t.Bool=1]="Bool",t[t.String=2]="String",t[t.Int=3]="Int",t[t.Number=4]="Number",t[t.Function=5]="Function",t[t.Inferred=6]="Inferred",t[t.None=7]="None"})(Ve||(Ve={}));var Sn=class extends Dr{constructor(n,r){super(r);l(this,"name");this.name=n}visitType(n,r){return n.visitBuiltinType(this,r)}},vt=class extends Dr{constructor(n,r,s=null){super(r);l(this,"value");l(this,"typeParams");this.value=n,this.typeParams=s}visitType(n,r){return n.visitExpressionType(this,r)}},ou=class extends Dr{constructor(n,r){super(r);l(this,"of");this.of=n}visitType(n,r){return n.visitArrayType(this,r)}},au=class extends Dr{constructor(n,r){super(r);l(this,"valueType");this.valueType=n||null}visitType(n,r){return n.visitMapType(this,r)}},To=class extends Dr{constructor(n,r){super(r);l(this,"type");this.type=n}visitType(n,r){return n.visitTransplantedType(this,r)}},X=new Sn(Ve.Dynamic),kr=new Sn(Ve.Inferred),km=new Sn(Ve.Bool),nw=new Sn(Ve.Int),_r=new Sn(Ve.Number),Hl=new Sn(Ve.String),rw=new Sn(Ve.Function),Gt=new Sn(Ve.None),Ln;(function(t){t[t.Minus=0]="Minus",t[t.Plus=1]="Plus"})(Ln||(Ln={}));var T;(function(t){t[t.Equals=0]="Equals",t[t.NotEquals=1]="NotEquals",t[t.Assign=2]="Assign",t[t.Identical=3]="Identical",t[t.NotIdentical=4]="NotIdentical",t[t.Minus=5]="Minus",t[t.Plus=6]="Plus",t[t.Divide=7]="Divide",t[t.Multiply=8]="Multiply",t[t.Modulo=9]="Modulo",t[t.And=10]="And",t[t.Or=11]="Or",t[t.BitwiseOr=12]="BitwiseOr",t[t.BitwiseAnd=13]="BitwiseAnd",t[t.Lower=14]="Lower",t[t.LowerEquals=15]="LowerEquals",t[t.Bigger=16]="Bigger",t[t.BiggerEquals=17]="BiggerEquals",t[t.NullishCoalesce=18]="NullishCoalesce",t[t.Exponentiation=19]="Exponentiation",t[t.In=20]="In",t[t.InstanceOf=21]="InstanceOf",t[t.AdditionAssignment=22]="AdditionAssignment",t[t.SubtractionAssignment=23]="SubtractionAssignment",t[t.MultiplicationAssignment=24]="MultiplicationAssignment",t[t.DivisionAssignment=25]="DivisionAssignment",t[t.RemainderAssignment=26]="RemainderAssignment",t[t.ExponentiationAssignment=27]="ExponentiationAssignment",t[t.AndAssignment=28]="AndAssignment",t[t.OrAssignment=29]="OrAssignment",t[t.NullishCoalesceAssignment=30]="NullishCoalesceAssignment"})(T||(T={}));function _m(t,e){return t==null||e==null?t==e:t.isEquivalent(e)}function Rm(t,e,n){let r=t.length;if(r!==e.length)return!1;for(let s=0;s<r;s++)if(!n(t[s],e[s]))return!1;return!0}function Pt(t,e){return Rm(t,e,(n,r)=>n.isEquivalent(r))}var ae=class{constructor(e,n,r){l(this,"leadingComments");l(this,"type");l(this,"sourceSpan");this.leadingComments=r,this.type=e||null,this.sourceSpan=n||null}prop(e,n){return new We(this,e,null,n)}key(e,n,r){return new qt(this,e,n,r)}callFn(e,n,r,s){return new Ae(this,e,null,n,r,s)}instantiate(e,n,r,s){return new ui(this,e,n,r)}conditional(e,n=null,r,s){return new Ht(this,e,n,null,r)}equals(e,n){return new oe(T.Equals,this,e,null,n)}notEquals(e,n){return new oe(T.NotEquals,this,e,null,n)}identical(e,n){return new oe(T.Identical,this,e,null,n)}notIdentical(e,n){return new oe(T.NotIdentical,this,e,null,n)}minus(e,n){return new oe(T.Minus,this,e,null,n)}plus(e,n){return new oe(T.Plus,this,e,null,n)}divide(e,n){return new oe(T.Divide,this,e,null,n)}multiply(e,n){return new oe(T.Multiply,this,e,null,n)}modulo(e,n){return new oe(T.Modulo,this,e,null,n)}power(e,n){return new oe(T.Exponentiation,this,e,null,n)}and(e,n){return new oe(T.And,this,e,null,n)}bitwiseOr(e,n){return new oe(T.BitwiseOr,this,e,null,n)}bitwiseAnd(e,n){return new oe(T.BitwiseAnd,this,e,null,n)}or(e,n){return new oe(T.Or,this,e,null,n)}lower(e,n){return new oe(T.Lower,this,e,null,n)}lowerEquals(e,n){return new oe(T.LowerEquals,this,e,null,n)}bigger(e,n){return new oe(T.Bigger,this,e,null,n)}biggerEquals(e,n){return new oe(T.BiggerEquals,this,e,null,n)}isBlank(e){return this.equals(Pm,e)}nullishCoalesce(e,n){return new oe(T.NullishCoalesce,this,e,null,n)}toStmt(e){return new at(this,null,e)}},cn=class t extends ae{constructor(n,r,s,i){super(r,s,i);l(this,"name");this.name=n}isEquivalent(n){return n instanceof t&&this.name===n.name}isConstant(){return!1}visitExpression(n,r){return n.visitReadVarExpr(this,r)}clone(){return new t(this.name,this.type,this.sourceSpan)}set(n){return new oe(T.Assign,this,n,null,this.sourceSpan)}},Qn=class t extends ae{constructor(n,r,s,i){super(r,s,i);l(this,"expr");this.expr=n}visitExpression(n,r){return n.visitTypeofExpr(this,r)}isEquivalent(n){return n instanceof t&&n.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}},ci=class t extends ae{constructor(n,r,s,i){super(r,s,i);l(this,"expr");this.expr=n}visitExpression(n,r){return n.visitVoidExpr(this,r)}isEquivalent(n){return n instanceof t&&n.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}},z=class t extends ae{constructor(n,r,s,i){super(r,s,i);l(this,"node");this.node=n}isEquivalent(n){return n instanceof t&&this.node===n.node}isConstant(){return!1}visitExpression(n,r){return n.visitWrappedNodeExpr(this,r)}clone(){return new t(this.node,this.type,this.sourceSpan)}},Ae=class t extends ae{constructor(n,r,s,i,o=!1,a,c=!1){super(s,i,a);l(this,"fn");l(this,"args");l(this,"pure");l(this,"isOptional");this.fn=n,this.args=r,this.pure=o,this.isOptional=c}get receiver(){return this.fn}isEquivalent(n){return n instanceof t&&this.fn.isEquivalent(n.fn)&&Pt(this.args,n.args)&&this.pure===n.pure}isConstant(){return!1}visitExpression(n,r){return n.visitInvokeFunctionExpr(this,r)}clone(){return new t(this.fn.clone(),this.args.map(n=>n.clone()),this.type,this.sourceSpan,this.pure,[],this.isOptional)}},gs=class t extends ae{constructor(n,r,s,i,o){super(s,i,o);l(this,"tag");l(this,"template");this.tag=n,this.template=r}isEquivalent(n){return n instanceof t&&this.tag.isEquivalent(n.tag)&&this.template.isEquivalent(n.template)}isConstant(){return!1}visitExpression(n,r){return n.visitTaggedTemplateLiteralExpr(this,r)}clone(){return new t(this.tag.clone(),this.template.clone(),this.type,this.sourceSpan)}},ui=class t extends ae{constructor(n,r,s,i,o){super(s,i,o);l(this,"classExpr");l(this,"args");this.classExpr=n,this.args=r}isEquivalent(n){return n instanceof t&&this.classExpr.isEquivalent(n.classExpr)&&Pt(this.args,n.args)}isConstant(){return!1}visitExpression(n,r){return n.visitInstantiateExpr(this,r)}clone(){return new t(this.classExpr.clone(),this.args.map(n=>n.clone()),this.type,this.sourceSpan)}},ys=class t extends ae{constructor(n,r,s,i){super(null,s,i);l(this,"body");l(this,"flags");this.body=n,this.flags=r}isEquivalent(n){return n instanceof t&&this.body===n.body&&this.flags===n.flags}isConstant(){return!0}visitExpression(n,r){return n.visitRegularExpressionLiteral(this,r)}clone(){return new t(this.body,this.flags,this.sourceSpan)}},Be=class t extends ae{constructor(n,r,s,i){super(r,s,i);l(this,"value");this.value=n}isEquivalent(n){return n instanceof t&&this.value===n.value}isConstant(){return!0}visitExpression(n,r){return n.visitLiteralExpr(this,r)}clone(){return new t(this.value,this.type,this.sourceSpan)}},pi=class t extends ae{constructor(n,r,s,i){super(null,s,i);l(this,"elements");l(this,"expressions");this.elements=n,this.expressions=r}isEquivalent(n){return n instanceof t&&Rm(this.elements,n.elements,(r,s)=>r.text===s.text)&&Pt(this.expressions,n.expressions)}isConstant(){return!1}visitExpression(n,r){return n.visitTemplateLiteralExpr(this,r)}clone(){return new t(this.elements.map(n=>n.clone()),this.expressions.map(n=>n.clone()))}},Co=class t extends ae{constructor(n,r,s,i){super(Hl,r,i);l(this,"text");l(this,"rawText");this.text=n,this.rawText=s!=null?s:lu(Ka(n))}visitExpression(n,r){return n.visitTemplateLiteralElementExpr(this,r)}isEquivalent(n){return n instanceof t&&n.text===this.text&&n.rawText===this.rawText}isConstant(){return!0}clone(){return new t(this.text,this.sourceSpan,this.rawText)}},xr=class{constructor(e,n){l(this,"text");l(this,"sourceSpan");this.text=e,this.sourceSpan=n}},as=class{constructor(e,n,r){l(this,"text");l(this,"sourceSpan");l(this,"associatedMessage");this.text=e,this.sourceSpan=n,this.associatedMessage=r}},sw="|",Af="@@",iw="\u241F",xo=class t extends ae{constructor(n,r,s,i,o,a){super(Hl,o,a);l(this,"metaBlock");l(this,"messageParts");l(this,"placeHolderNames");l(this,"expressions");this.metaBlock=n,this.messageParts=r,this.placeHolderNames=s,this.expressions=i}isEquivalent(n){return!1}isConstant(){return!1}visitExpression(n,r){return n.visitLocalizedString(this,r)}clone(){return new t(this.metaBlock,this.messageParts,this.placeHolderNames,this.expressions.map(n=>n.clone()),this.sourceSpan)}serializeI18nHead(){let n=this.metaBlock.description||"";return this.metaBlock.meaning&&(n=`${this.metaBlock.meaning}${sw}${n}`),this.metaBlock.customId&&(n=`${n}${Af}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(r=>{n=`${n}${iw}${r}`}),bf(n,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}getMessagePartSourceSpan(n){var r,s;return(s=(r=this.messageParts[n])==null?void 0:r.sourceSpan)!=null?s:this.sourceSpan}getPlaceholderSourceSpan(n){var r,s,i,o;return(o=(i=(r=this.placeHolderNames[n])==null?void 0:r.sourceSpan)!=null?i:(s=this.expressions[n])==null?void 0:s.sourceSpan)!=null?o:this.sourceSpan}serializeI18nTemplatePart(n){var o;let r=this.placeHolderNames[n-1],s=this.messageParts[n],i=r.text;return((o=r.associatedMessage)==null?void 0:o.legacyIds.length)===0&&(i+=`${Af}${Dm(r.associatedMessage.messageString,r.associatedMessage.meaning)}`),bf(i,s.text,this.getMessagePartSourceSpan(n))}},Ka=t=>t.replace(/\\/g,"\\\\"),ow=t=>t.replace(/^:/,"\\:"),aw=t=>t.replace(/:/g,"\\:"),lu=t=>t.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function bf(t,e,n){return t===""?{cooked:e,raw:lu(ow(Ka(e))),range:n}:{cooked:`:${t}:${e}`,raw:lu(`:${aw(Ka(t))}:${Ka(e)}`),range:n}}var ot=class t extends ae{constructor(n,r,s=null,i,o){super(r,i,o);l(this,"value");l(this,"typeParams");this.value=n,this.typeParams=s}isEquivalent(n){return n instanceof t&&this.value.name===n.value.name&&this.value.moduleName===n.value.moduleName}isConstant(){return!1}visitExpression(n,r){return n.visitExternalExpr(this,r)}clone(){return new t(this.value,this.type,this.typeParams,this.sourceSpan)}},No=class{constructor(e,n){l(this,"moduleName");l(this,"name");this.moduleName=e,this.name=n}},Ht=class t extends ae{constructor(n,r,s=null,i,o,a){super(i||r.type,o,a);l(this,"condition");l(this,"falseCase");l(this,"trueCase");this.condition=n,this.falseCase=s,this.trueCase=r}isEquivalent(n){return n instanceof t&&this.condition.isEquivalent(n.condition)&&this.trueCase.isEquivalent(n.trueCase)&&_m(this.falseCase,n.falseCase)}isConstant(){return!1}visitExpression(n,r){return n.visitConditionalExpr(this,r)}clone(){var n;return new t(this.condition.clone(),this.trueCase.clone(),(n=this.falseCase)==null?void 0:n.clone(),this.type,this.sourceSpan)}},cu=class t extends ae{constructor(n,r,s,i){super(null,r,i);l(this,"url");l(this,"urlComment");this.url=n,this.urlComment=s}isEquivalent(n){return n instanceof t&&this.url===n.url&&this.urlComment===n.urlComment}isConstant(){return!1}visitExpression(n,r){return n.visitDynamicImportExpr(this,r)}clone(){return new t(typeof this.url=="string"?this.url:this.url.clone(),this.sourceSpan,this.urlComment)}},vs=class t extends ae{constructor(n,r,s){super(km,r,s);l(this,"condition");this.condition=n}isEquivalent(n){return n instanceof t&&this.condition.isEquivalent(n.condition)}isConstant(){return!1}visitExpression(n,r){return n.visitNotExpr(this,r)}clone(){return new t(this.condition.clone(),this.sourceSpan)}},He=class t{constructor(e,n=null){l(this,"name");l(this,"type");this.name=e,this.type=n}isEquivalent(e){return this.name===e.name}clone(){return new t(this.name,this.type)}},Kt=class t extends ae{constructor(n,r,s,i,o,a){super(s,i,a);l(this,"params");l(this,"statements");l(this,"name");this.params=n,this.statements=r,this.name=o}isEquivalent(n){return(n instanceof t||n instanceof hi)&&Pt(this.params,n.params)&&Pt(this.statements,n.statements)}isConstant(){return!1}visitExpression(n,r){return n.visitFunctionExpr(this,r)}toDeclStmt(n,r){return new hi(n,this.params,this.statements,this.type,r,this.sourceSpan)}clone(){return new t(this.params.map(n=>n.clone()),this.statements,this.type,this.sourceSpan,this.name)}},Xt=class uu extends ae{constructor(n,r,s,i,o){super(s,i,o);l(this,"params");l(this,"body");this.params=n,this.body=r}isEquivalent(n){return!(n instanceof uu)||!Pt(this.params,n.params)?!1:this.body instanceof ae&&n.body instanceof ae?this.body.isEquivalent(n.body):Array.isArray(this.body)&&Array.isArray(n.body)?Pt(this.body,n.body):!1}isConstant(){return!1}visitExpression(n,r){return n.visitArrowFunctionExpr(this,r)}clone(){return new uu(this.params.map(n=>n.clone()),Array.isArray(this.body)?this.body:this.body.clone(),this.type,this.sourceSpan)}toDeclStmt(n,r){return new Ze(n,this,kr,r,this.sourceSpan)}},Mn=class t extends ae{constructor(n,r,s,i,o=!0,a){super(s||_r,i,a);l(this,"operator");l(this,"expr");l(this,"parens");this.operator=n,this.expr=r,this.parens=o}isEquivalent(n){return n instanceof t&&this.operator===n.operator&&this.expr.isEquivalent(n.expr)}isConstant(){return!1}visitExpression(n,r){return n.visitUnaryOperatorExpr(this,r)}clone(){return new t(this.operator,this.expr.clone(),this.type,this.sourceSpan,this.parens)}},St=class t extends ae{constructor(n,r,s,i){super(r,s,i);l(this,"expr");this.expr=n}visitExpression(n,r){return n.visitParenthesizedExpr(this,r)}isEquivalent(n){return n instanceof t&&n.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}},oe=class t extends ae{constructor(n,r,s,i,o,a){super(i||r.type,o,a);l(this,"operator");l(this,"rhs");l(this,"lhs");this.operator=n,this.rhs=s,this.lhs=r}isEquivalent(n){return n instanceof t&&this.operator===n.operator&&this.lhs.isEquivalent(n.lhs)&&this.rhs.isEquivalent(n.rhs)}isConstant(){return!1}visitExpression(n,r){return n.visitBinaryOperatorExpr(this,r)}clone(){return new t(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan)}isAssignment(){let n=this.operator;return n===T.Assign||n===T.AdditionAssignment||n===T.SubtractionAssignment||n===T.MultiplicationAssignment||n===T.DivisionAssignment||n===T.RemainderAssignment||n===T.ExponentiationAssignment||n===T.AndAssignment||n===T.OrAssignment||n===T.NullishCoalesceAssignment}},We=class t extends ae{constructor(n,r,s,i,o,a=!1){super(s,i,o);l(this,"receiver");l(this,"name");l(this,"isOptional");this.receiver=n,this.name=r,this.isOptional=a}get index(){return this.name}isEquivalent(n){return n instanceof t&&this.receiver.isEquivalent(n.receiver)&&this.name===n.name&&this.isOptional===n.isOptional}isConstant(){return!1}visitExpression(n,r){return n.visitReadPropExpr(this,r)}set(n){return new oe(T.Assign,this.receiver.prop(this.name),n,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.name,this.type,this.sourceSpan,[],this.isOptional)}},qt=class t extends ae{constructor(n,r,s,i,o,a=!1){super(s,i,o);l(this,"receiver");l(this,"index");l(this,"isOptional");this.receiver=n,this.index=r,this.isOptional=a}isEquivalent(n){return n instanceof t&&this.receiver.isEquivalent(n.receiver)&&this.index.isEquivalent(n.index)&&this.isOptional===n.isOptional}isConstant(){return!1}visitExpression(n,r){return n.visitReadKeyExpr(this,r)}set(n){return new oe(T.Assign,this.receiver.key(this.index),n,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan,[],this.isOptional)}},Wt=class t extends ae{constructor(n,r,s,i){super(r,s,i);l(this,"entries");this.entries=n}isConstant(){return this.entries.every(n=>n.isConstant())}isEquivalent(n){return n instanceof t&&Pt(this.entries,n.entries)}visitExpression(n,r){return n.visitLiteralArrayExpr(this,r)}clone(){return new t(this.entries.map(n=>n.clone()),this.type,this.sourceSpan)}},Rr=class t{constructor(e,n,r,s){l(this,"key");l(this,"value");l(this,"quoted");l(this,"leadingComments");this.key=e,this.value=n,this.quoted=r,this.leadingComments=s}isEquivalent(e){return this.key===e.key&&this.value.isEquivalent(e.value)}clone(){return new t(this.key,this.value.clone(),this.quoted,this.leadingComments?[...this.leadingComments]:void 0)}isConstant(){return this.value.isConstant()}},En=class t{constructor(e){l(this,"expression");this.expression=e}isEquivalent(e){return e instanceof t&&this.expression.isEquivalent(e.expression)}clone(){return new t(this.expression.clone())}isConstant(){return this.expression.isConstant()}},un=class t extends ae{constructor(n,r,s,i){super(r,s,i);l(this,"entries");l(this,"valueType",null);this.entries=n,r&&(this.valueType=r.valueType)}isEquivalent(n){return n instanceof t&&Pt(this.entries,n.entries)}isConstant(){return this.entries.every(n=>n.isConstant())}visitExpression(n,r){return n.visitLiteralMapExpr(this,r)}clone(){let n=this.entries.map(r=>r.clone());return new t(n,this.type,this.sourceSpan)}},il=class t extends ae{constructor(n,r,s){super(n[n.length-1].type,r,s);l(this,"parts");this.parts=n}isEquivalent(n){return n instanceof t&&Pt(this.parts,n.parts)}isConstant(){return!1}visitExpression(n,r){return n.visitCommaExpr(this,r)}clone(){return new t(this.parts.map(n=>n.clone()))}},Pr=class t extends ae{constructor(n,r,s){super(null,r,s);l(this,"expression");this.expression=n}isEquivalent(n){return n instanceof t&&this.expression.isEquivalent(n.expression)}isConstant(){return this.expression.isConstant()}visitExpression(n,r){return n.visitSpreadElementExpr(this,r)}clone(){return new t(this.expression.clone(),this.sourceSpan)}},Lr=new Be(null,null,null),Pm=new Be(null,kr,null),Fe;(function(t){t[t.None=0]="None",t[t.Final=1]="Final",t[t.Private=2]="Private",t[t.Exported=4]="Exported",t[t.Static=8]="Static"})(Fe||(Fe={}));var Io=class{constructor(e,n,r){l(this,"text");l(this,"multiline");l(this,"trailingNewline");this.text=e,this.multiline=n,this.trailingNewline=r}toString(){return this.multiline?` ${this.text} `:this.text}},Ao=class extends Io{constructor(n){super("",!0,!0);l(this,"tags");this.tags=n}toString(){return fw(this.tags)}},Mr=class{constructor(e=Fe.None,n=null,r){l(this,"modifiers");l(this,"sourceSpan");l(this,"leadingComments");this.modifiers=e,this.sourceSpan=n,this.leadingComments=r}hasModifier(e){return(this.modifiers&e)!==0}addLeadingComment(e){var n;this.leadingComments=(n=this.leadingComments)!=null?n:[],this.leadingComments.push(e)}},Ze=class t extends Mr{constructor(n,r,s,i,o,a){super(i,o,a);l(this,"name");l(this,"value");l(this,"type");this.name=n,this.value=r,this.type=s||null}isEquivalent(n){return n instanceof t&&this.name===n.name&&(this.value?!!n.value&&this.value.isEquivalent(n.value):!n.value)}visitStatement(n,r){return n.visitDeclareVarStmt(this,r)}},hi=class t extends Mr{constructor(n,r,s,i,o,a,c){super(o,a,c);l(this,"name");l(this,"params");l(this,"statements");l(this,"type");this.name=n,this.params=r,this.statements=s,this.type=i||null}isEquivalent(n){return n instanceof t&&Pt(this.params,n.params)&&Pt(this.statements,n.statements)}visitStatement(n,r){return n.visitDeclareFunctionStmt(this,r)}},at=class t extends Mr{constructor(n,r,s){super(Fe.None,r,s);l(this,"expr");this.expr=n}isEquivalent(n){return n instanceof t&&this.expr.isEquivalent(n.expr)}visitStatement(n,r){return n.visitExpressionStmt(this,r)}},Pe=class t extends Mr{constructor(n,r=null,s){super(Fe.None,r,s);l(this,"value");this.value=n}isEquivalent(n){return n instanceof t&&this.value.isEquivalent(n.value)}visitStatement(n,r){return n.visitReturnStmt(this,r)}},bo=class t extends Mr{constructor(n,r,s=[],i,o){super(Fe.None,i,o);l(this,"condition");l(this,"trueCase");l(this,"falseCase");this.condition=n,this.trueCase=r,this.falseCase=s}isEquivalent(n){return n instanceof t&&this.condition.isEquivalent(n.condition)&&Pt(this.trueCase,n.trueCase)&&Pt(this.falseCase,n.falseCase)}visitStatement(n,r){return n.visitIfStmt(this,r)}},lw=class{visitType(e,n){return e}visitExpression(e,n){return e.type&&e.type.visitType(this,n),e}visitBuiltinType(e,n){return this.visitType(e,n)}visitExpressionType(e,n){return e.value.visitExpression(this,n),e.typeParams!==null&&e.typeParams.forEach(r=>this.visitType(r,n)),this.visitType(e,n)}visitArrayType(e,n){return this.visitType(e,n)}visitMapType(e,n){return this.visitType(e,n)}visitTransplantedType(e,n){return e}visitWrappedNodeExpr(e,n){return e}visitReadVarExpr(e,n){return this.visitExpression(e,n)}visitDynamicImportExpr(e,n){return this.visitExpression(e,n)}visitInvokeFunctionExpr(e,n){return e.fn.visitExpression(this,n),this.visitAllExpressions(e.args,n),this.visitExpression(e,n)}visitTaggedTemplateLiteralExpr(e,n){return e.tag.visitExpression(this,n),e.template.visitExpression(this,n),this.visitExpression(e,n)}visitInstantiateExpr(e,n){return e.classExpr.visitExpression(this,n),this.visitAllExpressions(e.args,n),this.visitExpression(e,n)}visitLiteralExpr(e,n){return this.visitExpression(e,n)}visitRegularExpressionLiteral(e,n){return this.visitExpression(e,n)}visitLocalizedString(e,n){return this.visitExpression(e,n)}visitExternalExpr(e,n){return e.typeParams&&e.typeParams.forEach(r=>r.visitType(this,n)),this.visitExpression(e,n)}visitConditionalExpr(e,n){return e.condition.visitExpression(this,n),e.trueCase.visitExpression(this,n),e.falseCase.visitExpression(this,n),this.visitExpression(e,n)}visitNotExpr(e,n){return e.condition.visitExpression(this,n),this.visitExpression(e,n)}visitFunctionExpr(e,n){return this.visitAllStatements(e.statements,n),this.visitExpression(e,n)}visitArrowFunctionExpr(e,n){return Array.isArray(e.body)?this.visitAllStatements(e.body,n):e.body.visitExpression(this,n),this.visitExpression(e,n)}visitUnaryOperatorExpr(e,n){return e.expr.visitExpression(this,n),this.visitExpression(e,n)}visitTypeofExpr(e,n){return e.expr.visitExpression(this,n),this.visitExpression(e,n)}visitVoidExpr(e,n){return e.expr.visitExpression(this,n),this.visitExpression(e,n)}visitBinaryOperatorExpr(e,n){return e.lhs.visitExpression(this,n),e.rhs.visitExpression(this,n),this.visitExpression(e,n)}visitReadPropExpr(e,n){return e.receiver.visitExpression(this,n),this.visitExpression(e,n)}visitReadKeyExpr(e,n){return e.receiver.visitExpression(this,n),e.index.visitExpression(this,n),this.visitExpression(e,n)}visitLiteralArrayExpr(e,n){return this.visitAllExpressions(e.entries,n),this.visitExpression(e,n)}visitLiteralMapExpr(e,n){return e.entries.forEach(r=>{r instanceof En?r.expression.visitExpression(this,n):r.value.visitExpression(this,n)}),this.visitExpression(e,n)}visitCommaExpr(e,n){return this.visitAllExpressions(e.parts,n),this.visitExpression(e,n)}visitTemplateLiteralExpr(e,n){return this.visitAllExpressions(e.elements,n),this.visitAllExpressions(e.expressions,n),this.visitExpression(e,n)}visitTemplateLiteralElementExpr(e,n){return this.visitExpression(e,n)}visitParenthesizedExpr(e,n){return e.expr.visitExpression(this,n),this.visitExpression(e,n)}visitSpreadElementExpr(e,n){return e.expression.visitExpression(this,n),this.visitExpression(e,n)}visitAllExpressions(e,n){e.forEach(r=>r.visitExpression(this,n))}visitDeclareVarStmt(e,n){return e.value&&e.value.visitExpression(this,n),e.type&&e.type.visitType(this,n),e}visitDeclareFunctionStmt(e,n){return this.visitAllStatements(e.statements,n),e.type&&e.type.visitType(this,n),e}visitExpressionStmt(e,n){return e.expr.visitExpression(this,n),e}visitReturnStmt(e,n){return e.value.visitExpression(this,n),e}visitIfStmt(e,n){return e.condition.visitExpression(this,n),this.visitAllStatements(e.trueCase,n),this.visitAllStatements(e.falseCase,n),e}visitAllStatements(e,n){e.forEach(r=>r.visitStatement(this,n))}};function Mp(t,e=!1,n=!0){return new Io(t,e,n)}function Lm(t=[]){return new Ao(t)}function Z(t,e,n,r){return new cn(t,e,n,r)}function R(t,e=null,n){return new ot(t,null,e,n)}function cw(t,e,n){return t!=null?qe(R(t,e,null),n):null}function qe(t,e,n){return new vt(t,e,n)}function uw(t,e){return new To(t,e)}function Ri(t){return new Qn(t)}function pe(t,e,n){return new Wt(t,e,n)}function Et(t,e=null){return new un(t.map(n=>new Rr(n.key,n.value,n.quoted)),e,null)}function pw(t,e,n,r){return new Mn(t,e,n,r)}function Mm(t,e){return new vs(t,e)}function Jn(t,e,n,r,s){return new Kt(t,e,n,r,s)}function wt(t,e,n,r){return new Xt(t,e,n,r)}function va(t,e,n,r,s){return new bo(t,e,n,r,s)}function Om(t,e,n,r){return new gs(t,e,n,r)}function S(t,e,n){return new Be(t,e,n)}function Fm(t,e,n,r,s){return new xo(t,e,n,r,s)}function hw(t){return t instanceof Be&&t.value===null}function Df(t){let e="";if(t.tagName&&(e+=` @${t.tagName}`),t.text){if(t.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');e+=" "+t.text.replace(/@/g,"\\@")}return e}function fw(t){if(t.length===0)return"";if(t.length===1&&t[0].tagName&&!t[0].text)return`*${Df(t[0])} `;let e=`*
`;for(let n of t)e+=" *",e+=Df(n).replace(/\n/g,`
* `),e+=`
`;return e+=" ",e}var jr=Object.freeze({__proto__:null,ArrayType:ou,ArrowFunctionExpr:Xt,BOOL_TYPE:km,get BinaryOperator(){return T},BinaryOperatorExpr:oe,BuiltinType:Sn,get BuiltinTypeName(){return Ve},CommaExpr:il,ConditionalExpr:Ht,DYNAMIC_TYPE:X,DeclareFunctionStmt:hi,DeclareVarStmt:Ze,DynamicImportExpr:cu,Expression:ae,ExpressionStatement:at,ExpressionType:vt,ExternalExpr:ot,ExternalReference:No,FUNCTION_TYPE:rw,FnParam:He,FunctionExpr:Kt,INFERRED_TYPE:kr,INT_TYPE:nw,IfStmt:bo,InstantiateExpr:ui,InvokeFunctionExpr:Ae,JSDocComment:Ao,LeadingComment:Io,LiteralArrayExpr:Wt,LiteralExpr:Be,LiteralMapExpr:un,LiteralMapPropertyAssignment:Rr,LiteralMapSpreadAssignment:En,LiteralPiece:xr,LocalizedString:xo,MapType:au,NONE_TYPE:Gt,NULL_EXPR:Lr,NUMBER_TYPE:_r,NotExpr:vs,ParenthesizedExpr:St,PlaceholderPiece:as,ReadKeyExpr:qt,ReadPropExpr:We,ReadVarExpr:cn,RecursiveAstVisitor:lw,RegularExpressionLiteralExpr:ys,ReturnStatement:Pe,STRING_TYPE:Hl,SpreadElementExpr:Pr,Statement:Mr,get StmtModifier(){return Fe},TYPED_NULL_EXPR:Pm,TaggedTemplateLiteralExpr:gs,TemplateLiteralElementExpr:Co,TemplateLiteralExpr:pi,TransplantedType:To,Type:Dr,get TypeModifier(){return sl},TypeofExpr:Qn,get UnaryOperator(){return Ln},UnaryOperatorExpr:Mn,VoidExpr:ci,WrappedNodeExpr:z,areAllEquivalent:Pt,arrowFn:wt,expressionType:qe,fn:Jn,ifStmt:va,importExpr:R,importType:cw,isNull:hw,jsDocComment:Lm,leadingComment:Mp,literal:S,literalArr:pe,literalMap:Et,localizedString:Fm,not:Mm,nullSafeIsEquivalent:_m,taggedTemplate:Om,transplantedType:uw,typeofExpr:Ri,unary:pw,variable:Z}),dw="_c",mw={},gw=50,ol=class t extends ae{constructor(n){super(n.type);l(this,"resolved");l(this,"original");l(this,"shared",!1);this.resolved=n,this.original=n}visitExpression(n,r){return r===mw?this.original.visitExpression(n,r):this.resolved.visitExpression(n,r)}isEquivalent(n){return n instanceof t&&this.resolved.isEquivalent(n.resolved)}isConstant(){return!0}clone(){throw new Error("Not supported.")}fixup(n){this.resolved=n,this.shared=!0}},fi=class{constructor(e=!1){l(this,"isClosureCompilerEnabled");l(this,"statements",[]);l(this,"literals",new Map);l(this,"sharedConstants",new Map);l(this,"_claimedNames",new Map);this.isClosureCompilerEnabled=e}getConstLiteral(e,n){if(e instanceof Be&&!kf(e)||e instanceof ol)return e;let r=Do.INSTANCE.keyOf(e),s=this.literals.get(r),i=!1;if(s||(s=new ol(e),this.literals.set(r,s),i=!0),!i&&!s.shared||i&&n){let o=this.freshName(),a,c;this.isClosureCompilerEnabled&&kf(e)?(a=new Kt([],[new Pe(e)],X),c=Z(o).callFn([])):(a=e,c=Z(o)),this.statements.push(new Ze(o,a,kr,Fe.Final)),s.fixup(c)}return s}getSharedConstant(e,n){let r=e.keyOf(n);if(!this.sharedConstants.has(r)){let s=this.freshName();this.sharedConstants.set(r,Z(s)),this.statements.push(e.toSharedConstantDeclaration(s,n))}return this.sharedConstants.get(r)}getSharedFunctionReference(e,n,r=!0){var o;let s=e instanceof Xt;for(let a of this.statements)if(s&&a instanceof Ze&&((o=a.value)!=null&&o.isEquivalent(e))||!s&&a instanceof hi&&e instanceof Kt&&e.isEquivalent(a))return Z(a.name);let i=r?this.uniqueName(n):n;return this.statements.push(e instanceof Kt?e.toDeclStmt(i,Fe.Final):new Ze(i,e,kr,Fe.Final,e.sourceSpan)),Z(i)}uniqueName(e,n=!0){var i;let r=(i=this._claimedNames.get(e))!=null?i:0,s=r===0&&!n?`${e}`:`${e}${r}`;return this._claimedNames.set(e,r+1),s}freshName(){return this.uniqueName(dw)}},Gl=class Gl{keyOf(e){var n;if(e instanceof Be&&typeof e.value=="string")return`"${e.value}"`;if(e instanceof Be)return String(e.value);if(e instanceof ys)return`/${e.body}/${(n=e.flags)!=null?n:""}`;if(e instanceof Wt){let r=[];for(let s of e.entries)r.push(this.keyOf(s));return`[${r.join(",")}]`}else if(e instanceof un){let r=[];for(let s of e.entries)if(s instanceof En)r.push("..."+this.keyOf(s.expression));else{let i=s.key;s.quoted&&(i=`"${i}"`),r.push(i+":"+this.keyOf(s.value))}return`{${r.join(",")}}`}else{if(e instanceof ot)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof cn)return`read(${e.name})`;if(e instanceof Qn)return`typeof(${this.keyOf(e.expr)})`;if(e instanceof Pr)return`...${this.keyOf(e.expression)}`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}};l(Gl,"INSTANCE",new Gl);var Do=Gl;function kf(t){return t instanceof Be&&typeof t.value=="string"&&t.value.length>=gw}var v="@angular/core",m=class{};l(m,"core",{name:null,moduleName:v}),l(m,"namespaceHTML",{name:"\u0275\u0275namespaceHTML",moduleName:v}),l(m,"namespaceMathML",{name:"\u0275\u0275namespaceMathML",moduleName:v}),l(m,"namespaceSVG",{name:"\u0275\u0275namespaceSVG",moduleName:v}),l(m,"element",{name:"\u0275\u0275element",moduleName:v}),l(m,"elementStart",{name:"\u0275\u0275elementStart",moduleName:v}),l(m,"elementEnd",{name:"\u0275\u0275elementEnd",moduleName:v}),l(m,"foreignComponent",{name:"\u0275\u0275foreignComponent",moduleName:v}),l(m,"foreignContent",{name:"\u0275\u0275foreignContent",moduleName:v}),l(m,"foreignContentFn",{name:"\u0275\u0275foreignContentFn",moduleName:v}),l(m,"domElement",{name:"\u0275\u0275domElement",moduleName:v}),l(m,"domElementStart",{name:"\u0275\u0275domElementStart",moduleName:v}),l(m,"domElementEnd",{name:"\u0275\u0275domElementEnd",moduleName:v}),l(m,"domElementContainer",{name:"\u0275\u0275domElementContainer",moduleName:v}),l(m,"domElementContainerStart",{name:"\u0275\u0275domElementContainerStart",moduleName:v}),l(m,"domElementContainerEnd",{name:"\u0275\u0275domElementContainerEnd",moduleName:v}),l(m,"domTemplate",{name:"\u0275\u0275domTemplate",moduleName:v}),l(m,"domListener",{name:"\u0275\u0275domListener",moduleName:v}),l(m,"advance",{name:"\u0275\u0275advance",moduleName:v}),l(m,"syntheticHostProperty",{name:"\u0275\u0275syntheticHostProperty",moduleName:v}),l(m,"syntheticHostListener",{name:"\u0275\u0275syntheticHostListener",moduleName:v}),l(m,"attribute",{name:"\u0275\u0275attribute",moduleName:v}),l(m,"classProp",{name:"\u0275\u0275classProp",moduleName:v}),l(m,"elementContainerStart",{name:"\u0275\u0275elementContainerStart",moduleName:v}),l(m,"elementContainerEnd",{name:"\u0275\u0275elementContainerEnd",moduleName:v}),l(m,"elementContainer",{name:"\u0275\u0275elementContainer",moduleName:v}),l(m,"styleMap",{name:"\u0275\u0275styleMap",moduleName:v}),l(m,"classMap",{name:"\u0275\u0275classMap",moduleName:v}),l(m,"styleProp",{name:"\u0275\u0275styleProp",moduleName:v}),l(m,"interpolate",{name:"\u0275\u0275interpolate",moduleName:v}),l(m,"interpolate1",{name:"\u0275\u0275interpolate1",moduleName:v}),l(m,"interpolate2",{name:"\u0275\u0275interpolate2",moduleName:v}),l(m,"interpolate3",{name:"\u0275\u0275interpolate3",moduleName:v}),l(m,"interpolate4",{name:"\u0275\u0275interpolate4",moduleName:v}),l(m,"interpolate5",{name:"\u0275\u0275interpolate5",moduleName:v}),l(m,"interpolate6",{name:"\u0275\u0275interpolate6",moduleName:v}),l(m,"interpolate7",{name:"\u0275\u0275interpolate7",moduleName:v}),l(m,"interpolate8",{name:"\u0275\u0275interpolate8",moduleName:v}),l(m,"interpolateV",{name:"\u0275\u0275interpolateV",moduleName:v}),l(m,"nextContext",{name:"\u0275\u0275nextContext",moduleName:v}),l(m,"resetView",{name:"\u0275\u0275resetView",moduleName:v}),l(m,"templateCreate",{name:"\u0275\u0275template",moduleName:v}),l(m,"defer",{name:"\u0275\u0275defer",moduleName:v}),l(m,"deferWhen",{name:"\u0275\u0275deferWhen",moduleName:v}),l(m,"deferOnIdle",{name:"\u0275\u0275deferOnIdle",moduleName:v}),l(m,"deferOnImmediate",{name:"\u0275\u0275deferOnImmediate",moduleName:v}),l(m,"deferOnTimer",{name:"\u0275\u0275deferOnTimer",moduleName:v}),l(m,"deferOnHover",{name:"\u0275\u0275deferOnHover",moduleName:v}),l(m,"deferOnInteraction",{name:"\u0275\u0275deferOnInteraction",moduleName:v}),l(m,"deferOnViewport",{name:"\u0275\u0275deferOnViewport",moduleName:v}),l(m,"deferPrefetchWhen",{name:"\u0275\u0275deferPrefetchWhen",moduleName:v}),l(m,"deferPrefetchOnIdle",{name:"\u0275\u0275deferPrefetchOnIdle",moduleName:v}),l(m,"deferPrefetchOnImmediate",{name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:v}),l(m,"deferPrefetchOnTimer",{name:"\u0275\u0275deferPrefetchOnTimer",moduleName:v}),l(m,"deferPrefetchOnHover",{name:"\u0275\u0275deferPrefetchOnHover",moduleName:v}),l(m,"deferPrefetchOnInteraction",{name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:v}),l(m,"deferPrefetchOnViewport",{name:"\u0275\u0275deferPrefetchOnViewport",moduleName:v}),l(m,"deferHydrateWhen",{name:"\u0275\u0275deferHydrateWhen",moduleName:v}),l(m,"deferHydrateNever",{name:"\u0275\u0275deferHydrateNever",moduleName:v}),l(m,"deferHydrateOnIdle",{name:"\u0275\u0275deferHydrateOnIdle",moduleName:v}),l(m,"deferHydrateOnImmediate",{name:"\u0275\u0275deferHydrateOnImmediate",moduleName:v}),l(m,"deferHydrateOnTimer",{name:"\u0275\u0275deferHydrateOnTimer",moduleName:v}),l(m,"deferHydrateOnHover",{name:"\u0275\u0275deferHydrateOnHover",moduleName:v}),l(m,"deferHydrateOnInteraction",{name:"\u0275\u0275deferHydrateOnInteraction",moduleName:v}),l(m,"deferHydrateOnViewport",{name:"\u0275\u0275deferHydrateOnViewport",moduleName:v}),l(m,"deferEnableTimerScheduling",{name:"\u0275\u0275deferEnableTimerScheduling",moduleName:v}),l(m,"enableIncrementalHydrationRuntime",{name:"\u0275\u0275enableIncrementalHydrationRuntime",moduleName:v}),l(m,"conditionalCreate",{name:"\u0275\u0275conditionalCreate",moduleName:v}),l(m,"conditionalBranchCreate",{name:"\u0275\u0275conditionalBranchCreate",moduleName:v}),l(m,"conditional",{name:"\u0275\u0275conditional",moduleName:v}),l(m,"boundaryCreate",{name:"\u0275\u0275boundaryCreate",moduleName:v}),l(m,"boundaryUpdate",{name:"\u0275\u0275boundaryUpdate",moduleName:v}),l(m,"getBoundary",{name:"\u0275\u0275getBoundary",moduleName:v}),l(m,"repeater",{name:"\u0275\u0275repeater",moduleName:v}),l(m,"repeaterCreate",{name:"\u0275\u0275repeaterCreate",moduleName:v}),l(m,"repeaterTrackByIndex",{name:"\u0275\u0275repeaterTrackByIndex",moduleName:v}),l(m,"repeaterTrackByIdentity",{name:"\u0275\u0275repeaterTrackByIdentity",moduleName:v}),l(m,"componentInstance",{name:"\u0275\u0275componentInstance",moduleName:v}),l(m,"text",{name:"\u0275\u0275text",moduleName:v}),l(m,"enableBindings",{name:"\u0275\u0275enableBindings",moduleName:v}),l(m,"disableBindings",{name:"\u0275\u0275disableBindings",moduleName:v}),l(m,"getCurrentView",{name:"\u0275\u0275getCurrentView",moduleName:v}),l(m,"textInterpolate",{name:"\u0275\u0275textInterpolate",moduleName:v}),l(m,"textInterpolate1",{name:"\u0275\u0275textInterpolate1",moduleName:v}),l(m,"textInterpolate2",{name:"\u0275\u0275textInterpolate2",moduleName:v}),l(m,"textInterpolate3",{name:"\u0275\u0275textInterpolate3",moduleName:v}),l(m,"textInterpolate4",{name:"\u0275\u0275textInterpolate4",moduleName:v}),l(m,"textInterpolate5",{name:"\u0275\u0275textInterpolate5",moduleName:v}),l(m,"textInterpolate6",{name:"\u0275\u0275textInterpolate6",moduleName:v}),l(m,"textInterpolate7",{name:"\u0275\u0275textInterpolate7",moduleName:v}),l(m,"textInterpolate8",{name:"\u0275\u0275textInterpolate8",moduleName:v}),l(m,"textInterpolateV",{name:"\u0275\u0275textInterpolateV",moduleName:v}),l(m,"restoreView",{name:"\u0275\u0275restoreView",moduleName:v}),l(m,"pureFunction0",{name:"\u0275\u0275pureFunction0",moduleName:v}),l(m,"pureFunction1",{name:"\u0275\u0275pureFunction1",moduleName:v}),l(m,"pureFunction2",{name:"\u0275\u0275pureFunction2",moduleName:v}),l(m,"pureFunction3",{name:"\u0275\u0275pureFunction3",moduleName:v}),l(m,"pureFunction4",{name:"\u0275\u0275pureFunction4",moduleName:v}),l(m,"pureFunction5",{name:"\u0275\u0275pureFunction5",moduleName:v}),l(m,"pureFunction6",{name:"\u0275\u0275pureFunction6",moduleName:v}),l(m,"pureFunction7",{name:"\u0275\u0275pureFunction7",moduleName:v}),l(m,"pureFunction8",{name:"\u0275\u0275pureFunction8",moduleName:v}),l(m,"pureFunctionV",{name:"\u0275\u0275pureFunctionV",moduleName:v}),l(m,"pipeBind1",{name:"\u0275\u0275pipeBind1",moduleName:v}),l(m,"pipeBind2",{name:"\u0275\u0275pipeBind2",moduleName:v}),l(m,"pipeBind3",{name:"\u0275\u0275pipeBind3",moduleName:v}),l(m,"pipeBind4",{name:"\u0275\u0275pipeBind4",moduleName:v}),l(m,"pipeBindV",{name:"\u0275\u0275pipeBindV",moduleName:v}),l(m,"domProperty",{name:"\u0275\u0275domProperty",moduleName:v}),l(m,"ariaProperty",{name:"\u0275\u0275ariaProperty",moduleName:v}),l(m,"property",{name:"\u0275\u0275property",moduleName:v}),l(m,"control",{name:"\u0275\u0275control",moduleName:v}),l(m,"controlCreate",{name:"\u0275\u0275controlCreate",moduleName:v}),l(m,"animationEnterListener",{name:"\u0275\u0275animateEnterListener",moduleName:v}),l(m,"animationLeaveListener",{name:"\u0275\u0275animateLeaveListener",moduleName:v}),l(m,"animationEnter",{name:"\u0275\u0275animateEnter",moduleName:v}),l(m,"animationLeave",{name:"\u0275\u0275animateLeave",moduleName:v}),l(m,"i18n",{name:"\u0275\u0275i18n",moduleName:v}),l(m,"i18nAttributes",{name:"\u0275\u0275i18nAttributes",moduleName:v}),l(m,"i18nExp",{name:"\u0275\u0275i18nExp",moduleName:v}),l(m,"i18nStart",{name:"\u0275\u0275i18nStart",moduleName:v}),l(m,"i18nEnd",{name:"\u0275\u0275i18nEnd",moduleName:v}),l(m,"i18nApply",{name:"\u0275\u0275i18nApply",moduleName:v}),l(m,"i18nPostprocess",{name:"\u0275\u0275i18nPostprocess",moduleName:v}),l(m,"pipe",{name:"\u0275\u0275pipe",moduleName:v}),l(m,"projection",{name:"\u0275\u0275projection",moduleName:v}),l(m,"projectionDef",{name:"\u0275\u0275projectionDef",moduleName:v}),l(m,"reference",{name:"\u0275\u0275reference",moduleName:v}),l(m,"inject",{name:"\u0275\u0275inject",moduleName:v}),l(m,"injectAttribute",{name:"\u0275\u0275injectAttribute",moduleName:v}),l(m,"directiveInject",{name:"\u0275\u0275directiveInject",moduleName:v}),l(m,"invalidFactory",{name:"\u0275\u0275invalidFactory",moduleName:v}),l(m,"invalidFactoryDep",{name:"\u0275\u0275invalidFactoryDep",moduleName:v}),l(m,"templateRefExtractor",{name:"\u0275\u0275templateRefExtractor",moduleName:v}),l(m,"forwardRef",{name:"forwardRef",moduleName:v}),l(m,"resolveForwardRef",{name:"resolveForwardRef",moduleName:v}),l(m,"replaceMetadata",{name:"\u0275\u0275replaceMetadata",moduleName:v}),l(m,"getReplaceMetadataURL",{name:"\u0275\u0275getReplaceMetadataURL",moduleName:v}),l(m,"\u0275\u0275defineInjectable",{name:"\u0275\u0275defineInjectable",moduleName:v}),l(m,"declareInjectable",{name:"\u0275\u0275ngDeclareInjectable",moduleName:v}),l(m,"InjectableDeclaration",{name:"\u0275\u0275InjectableDeclaration",moduleName:v}),l(m,"defineService",{name:"\u0275\u0275defineService",moduleName:v}),l(m,"declareService",{name:"\u0275\u0275ngDeclareService",moduleName:v}),l(m,"resolveWindow",{name:"\u0275\u0275resolveWindow",moduleName:v}),l(m,"resolveDocument",{name:"\u0275\u0275resolveDocument",moduleName:v}),l(m,"resolveBody",{name:"\u0275\u0275resolveBody",moduleName:v}),l(m,"getComponentDepsFactory",{name:"\u0275\u0275getComponentDepsFactory",moduleName:v}),l(m,"defineComponent",{name:"\u0275\u0275defineComponent",moduleName:v}),l(m,"declareComponent",{name:"\u0275\u0275ngDeclareComponent",moduleName:v}),l(m,"setComponentScope",{name:"\u0275\u0275setComponentScope",moduleName:v}),l(m,"ChangeDetectionStrategy",{name:"ChangeDetectionStrategy",moduleName:v}),l(m,"ViewEncapsulation",{name:"ViewEncapsulation",moduleName:v}),l(m,"ComponentDeclaration",{name:"\u0275\u0275ComponentDeclaration",moduleName:v}),l(m,"FactoryDeclaration",{name:"\u0275\u0275FactoryDeclaration",moduleName:v}),l(m,"declareFactory",{name:"\u0275\u0275ngDeclareFactory",moduleName:v}),l(m,"FactoryTarget",{name:"\u0275\u0275FactoryTarget",moduleName:v}),l(m,"defineDirective",{name:"\u0275\u0275defineDirective",moduleName:v}),l(m,"declareDirective",{name:"\u0275\u0275ngDeclareDirective",moduleName:v}),l(m,"DirectiveDeclaration",{name:"\u0275\u0275DirectiveDeclaration",moduleName:v}),l(m,"InjectorDef",{name:"\u0275\u0275InjectorDef",moduleName:v}),l(m,"InjectorDeclaration",{name:"\u0275\u0275InjectorDeclaration",moduleName:v}),l(m,"defineInjector",{name:"\u0275\u0275defineInjector",moduleName:v}),l(m,"declareInjector",{name:"\u0275\u0275ngDeclareInjector",moduleName:v}),l(m,"NgModuleDeclaration",{name:"\u0275\u0275NgModuleDeclaration",moduleName:v}),l(m,"ModuleWithProviders",{name:"ModuleWithProviders",moduleName:v}),l(m,"defineNgModule",{name:"\u0275\u0275defineNgModule",moduleName:v}),l(m,"declareNgModule",{name:"\u0275\u0275ngDeclareNgModule",moduleName:v}),l(m,"setNgModuleScope",{name:"\u0275\u0275setNgModuleScope",moduleName:v}),l(m,"registerNgModuleType",{name:"\u0275\u0275registerNgModuleType",moduleName:v}),l(m,"PipeDeclaration",{name:"\u0275\u0275PipeDeclaration",moduleName:v}),l(m,"definePipe",{name:"\u0275\u0275definePipe",moduleName:v}),l(m,"declarePipe",{name:"\u0275\u0275ngDeclarePipe",moduleName:v}),l(m,"declareClassMetadata",{name:"\u0275\u0275ngDeclareClassMetadata",moduleName:v}),l(m,"declareClassMetadataAsync",{name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:v}),l(m,"setClassMetadata",{name:"\u0275setClassMetadata",moduleName:v}),l(m,"setClassMetadataAsync",{name:"\u0275setClassMetadataAsync",moduleName:v}),l(m,"setClassDebugInfo",{name:"\u0275setClassDebugInfo",moduleName:v}),l(m,"queryRefresh",{name:"\u0275\u0275queryRefresh",moduleName:v}),l(m,"viewQuery",{name:"\u0275\u0275viewQuery",moduleName:v}),l(m,"loadQuery",{name:"\u0275\u0275loadQuery",moduleName:v}),l(m,"contentQuery",{name:"\u0275\u0275contentQuery",moduleName:v}),l(m,"viewQuerySignal",{name:"\u0275\u0275viewQuerySignal",moduleName:v}),l(m,"contentQuerySignal",{name:"\u0275\u0275contentQuerySignal",moduleName:v}),l(m,"queryAdvance",{name:"\u0275\u0275queryAdvance",moduleName:v}),l(m,"twoWayProperty",{name:"\u0275\u0275twoWayProperty",moduleName:v}),l(m,"twoWayBindingSet",{name:"\u0275\u0275twoWayBindingSet",moduleName:v}),l(m,"twoWayListener",{name:"\u0275\u0275twoWayListener",moduleName:v}),l(m,"declareLet",{name:"\u0275\u0275declareLet",moduleName:v}),l(m,"storeLet",{name:"\u0275\u0275storeLet",moduleName:v}),l(m,"readContextLet",{name:"\u0275\u0275readContextLet",moduleName:v}),l(m,"arrowFunction",{name:"\u0275\u0275arrowFunction",moduleName:v}),l(m,"attachSourceLocations",{name:"\u0275\u0275attachSourceLocations",moduleName:v}),l(m,"NgOnChangesFeature",{name:"\u0275\u0275NgOnChangesFeature",moduleName:v}),l(m,"ControlFeature",{name:"\u0275\u0275ControlFeature",moduleName:v}),l(m,"InheritDefinitionFeature",{name:"\u0275\u0275InheritDefinitionFeature",moduleName:v}),l(m,"ProvidersFeature",{name:"\u0275\u0275ProvidersFeature",moduleName:v}),l(m,"HostDirectivesFeature",{name:"\u0275\u0275HostDirectivesFeature",moduleName:v}),l(m,"ExternalStylesFeature",{name:"\u0275\u0275ExternalStylesFeature",moduleName:v}),l(m,"listener",{name:"\u0275\u0275listener",moduleName:v}),l(m,"getInheritedFactory",{name:"\u0275\u0275getInheritedFactory",moduleName:v}),l(m,"sanitizeHtml",{name:"\u0275\u0275sanitizeHtml",moduleName:v}),l(m,"sanitizeStyle",{name:"\u0275\u0275sanitizeStyle",moduleName:v}),l(m,"validateAttribute",{name:"\u0275\u0275validateAttribute",moduleName:v}),l(m,"sanitizeResourceUrl",{name:"\u0275\u0275sanitizeResourceUrl",moduleName:v}),l(m,"sanitizeScript",{name:"\u0275\u0275sanitizeScript",moduleName:v}),l(m,"sanitizeUrl",{name:"\u0275\u0275sanitizeUrl",moduleName:v}),l(m,"sanitizeUrlOrResourceUrl",{name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:v}),l(m,"trustConstantHtml",{name:"\u0275\u0275trustConstantHtml",moduleName:v}),l(m,"trustConstantResourceUrl",{name:"\u0275\u0275trustConstantResourceUrl",moduleName:v}),l(m,"inputDecorator",{name:"Input",moduleName:v}),l(m,"outputDecorator",{name:"Output",moduleName:v}),l(m,"viewChildDecorator",{name:"ViewChild",moduleName:v}),l(m,"viewChildrenDecorator",{name:"ViewChildren",moduleName:v}),l(m,"contentChildDecorator",{name:"ContentChild",moduleName:v}),l(m,"contentChildrenDecorator",{name:"ContentChildren",moduleName:v}),l(m,"InputSignalBrandWriteType",{name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:v}),l(m,"UnwrapDirectiveSignalInputs",{name:"\u0275UnwrapDirectiveSignalInputs",moduleName:v}),l(m,"unwrapWritableSignal",{name:"\u0275unwrapWritableSignal",moduleName:v}),l(m,"assertType",{name:"\u0275assertType",moduleName:v});var yw=/-+([a-z0-9])/g;function vw(t){return t.replace(yw,(...e)=>e[1].toUpperCase())}function Sw(t,e){return Bm(t,":",e)}function Ew(t,e){return Bm(t,".",e)}function Bm(t,e,n){let r=t.indexOf(e);return r==-1?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function ww(t){let e=[];for(let n=0;n<t.length;n++){let r=t.charCodeAt(n);if(r>=55296&&r<=56319&&t.length>n+1){let s=t.charCodeAt(n+1);s>=56320&&s<=57343&&(n++,r=(r-55296<<10)+s-56320+65536)}r<=127?e.push(r):r<=2047?e.push(r>>6&31|192,r&63|128):r<=65535?e.push(r>>12|224,r>>6&63|128,r&63|128):r<=2097151&&e.push(r>>18&7|240,r>>12&63|128,r>>6&63|128,r&63|128)}return e}function $m(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map($m).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;if(!t.toString)return"object";let n=t.toString();if(n==null)return""+n;let r=n.indexOf(`
`);return r>=0?n.slice(0,r):n}var ko=class{constructor(e){l(this,"full");l(this,"major");l(this,"minor");l(this,"patch");this.full=e;let n=e.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}},po=globalThis,Tw=/^([1-9]|1[0-8])\./;function Um(t){return t.startsWith("0.")?!0:!Tw.test(t)}function Op(t){return t.startsWith("--global--")?"--"+t.substring(10):"--%NS%"+t.substring(2)}var Cw=3,xw="# sourceMappingURL=data:application/json;base64,",pu=class{constructor(e=null){l(this,"file");l(this,"sourcesContent",new Map);l(this,"lines",[]);l(this,"lastCol0",0);l(this,"hasMappings",!1);this.file=e}addSource(e,n=null){return this.sourcesContent.has(e)||this.sourcesContent.set(e,n),this}addLine(){return this.lines.push([]),this.lastCol0=0,this}addMapping(e,n,r,s){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(n!=null&&!this.sourcesContent.has(n))throw new Error(`Unknown source file "${n}"`);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(n&&(r==null||s==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:n,sourceLine0:r,sourceCol0:s}),this}get currentLine(){return this.lines.slice(-1)[0]}toJSON(){if(!this.hasMappings)return null;let e=new Map,n=[],r=[];Array.from(this.sourcesContent.keys()).forEach((u,f)=>{e.set(u,f),n.push(u),r.push(this.sourcesContent.get(u)||null)});let s="",i=0,o=0,a=0,c=0;return this.lines.forEach(u=>{i=0,s+=u.map(f=>{let h=Ra(f.col0-i);return i=f.col0,f.sourceUrl!=null&&(h+=Ra(e.get(f.sourceUrl)-o),o=e.get(f.sourceUrl),h+=Ra(f.sourceLine0-a),a=f.sourceLine0,h+=Ra(f.sourceCol0-c),c=f.sourceCol0),h}).join(","),s+=";"}),s=s.slice(0,-1),{file:this.file||"",version:Cw,sourceRoot:"",sources:n,sourcesContent:r,mappings:s}}toJsComment(){return this.hasMappings?"//"+xw+Nw(JSON.stringify(this,null,0)):""}};function Nw(t){let e="",n=ww(t);for(let r=0;r<n.length;){let s=n[r++],i=r<n.length?n[r++]:null,o=r<n.length?n[r++]:null;e+=lo(s>>2),e+=lo((s&3)<<4|(i===null?0:i>>4)),e+=i===null?"=":lo((i&15)<<2|(o===null?0:o>>6)),e+=i===null||o===null?"=":lo(o&63)}return e}function Ra(t){t=t<0?(-t<<1)+1:t<<1;let e="";do{let n=t&31;t=t>>5,t>0&&(n=n|32),e+=lo(n)}while(t>0);return e}var Iw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function lo(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return Iw[t]}var Aw=/'|\\|\n|\r/g,bw=/^[$A-Z_][0-9A-Z_$]*$/i,Pa=" ",ho=class{constructor(e){l(this,"indent");l(this,"partsLength",0);l(this,"parts",[]);l(this,"srcSpans",[]);this.indent=e}},Dw=new Map([[T.And,"&&"],[T.Bigger,">"],[T.BiggerEquals,">="],[T.BitwiseOr,"|"],[T.BitwiseAnd,"&"],[T.Divide,"/"],[T.Assign,"="],[T.Equals,"=="],[T.Identical,"==="],[T.Lower,"<"],[T.LowerEquals,"<="],[T.Minus,"-"],[T.Modulo,"%"],[T.Exponentiation,"**"],[T.Multiply,"*"],[T.NotEquals,"!="],[T.NotIdentical,"!=="],[T.NullishCoalesce,"??"],[T.Or,"||"],[T.Plus,"+"],[T.In,"in"],[T.InstanceOf,"instanceof"],[T.AdditionAssignment,"+="],[T.SubtractionAssignment,"-="],[T.MultiplicationAssignment,"*="],[T.DivisionAssignment,"/="],[T.RemainderAssignment,"%="],[T.ExponentiationAssignment,"**="],[T.AndAssignment,"&&="],[T.OrAssignment,"||="],[T.NullishCoalesceAssignment,"??="]]),hu=class t{constructor(e){l(this,"_indent");l(this,"_lines");this._indent=e,this._lines=[new ho(e)]}static createRoot(){return new t(0)}get _currentLine(){return this._lines[this._lines.length-1]}println(e,n=""){this.print(e||null,n,!0)}lineIsEmpty(){return this._currentLine.parts.length===0}lineLength(){return this._currentLine.indent*Pa.length+this._currentLine.partsLength}print(e,n,r=!1){n.length>0&&(this._currentLine.parts.push(n),this._currentLine.partsLength+=n.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),r&&this._lines.push(new ho(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?Pa.repeat(e.indent)+e.parts.join(""):"").join(`
`)}toSourceMapGenerator(e,n=0){let r=new pu(e),s=!1,i=()=>{s||(r.addSource(e," ").addMapping(0,e,0,0),s=!0)};for(let o=0;o<n;o++)r.addLine(),i();return this.sourceLines.forEach((o,a)=>{r.addLine();let c=o.srcSpans,u=o.parts,f=o.indent*Pa.length,h=0;for(;h<c.length&&!c[h];)f+=u[h].length,h++;for(h<c.length&&a===0&&f===0?s=!0:i();h<c.length;){let p=c[h],g=p.start.file,y=p.start.line,E=p.start.col;for(r.addSource(g.url,g.content).addMapping(f,g.url,y,E),f+=u[h].length,h++;h<c.length&&(p===c[h]||!c[h]);)f+=u[h].length,h++}}),r}spanOf(e,n){let r=this._lines[e];if(r){let s=n-Pa.repeat(r.indent).length;for(let i=0;i<r.parts.length;i++){let o=r.parts[i];if(o.length>s)return r.srcSpans[i];s-=o.length}}return null}addUniqueSingleLineComment(e){let n=this._lines.length-2,r=`//${e}`;if(n>=0&&this._lines[n].parts.length===1&&this._lines[n].parts[0]===r)return;let s=new ho(this._currentLine.indent);s.parts.push(r),s.partsLength=r.length,s.srcSpans.push(null),this._lines.splice(this._lines.length-1,0,s)}get sourceLines(){return this._lines.length&&this._lines[this._lines.length-1].parts.length===0?this._lines.slice(0,-1):this._lines}},fu=class{constructor(e,n){l(this,"printComments");l(this,"printTypes");l(this,"lastIfCondition",null);this.printComments=e,this.printTypes=n}visitExpressionStmt(e,n){this.printLeadingComments(e,n),e.expr.visitExpression(this,n),n.println(e,";")}visitReturnStmt(e,n){this.printLeadingComments(e,n),n.print(e,"return "),e.value.visitExpression(this,n),n.println(e,";")}visitIfStmt(e,n){this.printLeadingComments(e,n),n.print(e,"if ("),this.lastIfCondition=e.condition,e.condition.visitExpression(this,n),this.lastIfCondition=null,n.print(e,") {");let r=e.falseCase!=null&&e.falseCase.length>0;e.trueCase.length<=1&&!r?(n.print(e," "),this.visitAllStatements(e.trueCase,n),n.removeEmptyLastLine(),n.print(e," ")):(n.println(),n.incIndent(),this.visitAllStatements(e.trueCase,n),n.decIndent(),r&&(n.println(e,"} else {"),n.incIndent(),this.visitAllStatements(e.falseCase,n),n.decIndent())),n.println(e,"}")}visitDeclareVarStmt(e,n){var s;let r=e.hasModifier(Fe.Final)?"const":"let";this.printLeadingComments(e,n),n.print(e,`${r} ${e.name}`),(s=e.type)==null||s.visitType(this,n),e.value&&(n.print(e," = "),e.value.visitExpression(this,n)),n.println(e,";")}visitInvokeFunctionExpr(e,n){this.printLeadingComments(e,n);let r=this.shouldParenthesize(e.fn,e);r&&n.print(e.fn,"("),e.fn.visitExpression(this,n),r&&n.print(e.fn,")"),n.print(e,e.isOptional?"?.(":"("),this.visitAllExpressions(e.args,n,","),n.print(e,")")}visitTaggedTemplateLiteralExpr(e,n){this.printLeadingComments(e,n),e.tag.visitExpression(this,n),e.template.visitExpression(this,n)}visitTemplateLiteralExpr(e,n){this.printLeadingComments(e,n),n.print(e,"`");for(let r=0;r<e.elements.length;r++){e.elements[r].visitExpression(this,n);let s=r<e.expressions.length?e.expressions[r]:null;s!==null&&(n.print(s,"${"),s.visitExpression(this,n),n.print(s,"}"))}n.print(e,"`")}visitTemplateLiteralElementExpr(e,n){this.printLeadingComments(e,n),n.print(e,e.rawText)}visitTypeofExpr(e,n){this.printLeadingComments(e,n),n.print(e,"typeof "),e.expr.visitExpression(this,n)}visitVoidExpr(e,n){this.printLeadingComments(e,n),n.print(e,"void "),e.expr.visitExpression(this,n)}visitReadVarExpr(e,n){this.printLeadingComments(e,n),n.print(e,e.name)}visitInstantiateExpr(e,n){this.printLeadingComments(e,n),n.print(e,"new "),e.classExpr.visitExpression(this,n),n.print(e,"("),this.visitAllExpressions(e.args,n,","),n.print(e,")")}visitLiteralExpr(e,n){this.printLeadingComments(e,n);let r=e.value;typeof r=="string"?n.print(e,Tr(r)):n.print(e,`${r}`)}visitRegularExpressionLiteral(e,n){this.printLeadingComments(e,n),n.print(e,`/${e.body}/${e.flags||""}`)}visitLocalizedString(e,n){this.printLeadingComments(e,n);let r=e.serializeI18nHead();n.print(e,"$localize `"+r.raw);for(let s=1;s<e.messageParts.length;s++)n.print(e,"${"),e.expressions[s-1].visitExpression(this,n),n.print(e,`}${e.serializeI18nTemplatePart(s).raw}`);n.print(e,"`")}visitConditionalExpr(e,n){var r;this.printLeadingComments(e,n),n.print(e,"("),e.condition.visitExpression(this,n),n.print(e," ? "),e.trueCase.visitExpression(this,n),n.print(e," : "),(r=e.falseCase)==null||r.visitExpression(this,n),n.print(e,")")}visitDynamicImportExpr(e,n){this.printLeadingComments(e,n),n.print(e,"import("),typeof e.url=="string"?n.print(e,Tr(e.url,!0)):e.url.visitExpression(this,n),n.print(e,")")}visitNotExpr(e,n){this.printLeadingComments(e,n),n.print(e,"!"),e.condition.visitExpression(this,n)}visitFunctionExpr(e,n){var r;this.printLeadingComments(e,n),n.print(e,`function${e.name?" "+e.name:""}(`),this.visitParams(e.params,n),n.print(e,")"),(r=e.type)==null||r.visitType(this,n),n.print(e," {"),n.println(e),n.incIndent(),this.visitAllStatements(e.statements,n),n.decIndent(),n.println(e,"}")}visitArrowFunctionExpr(e,n){var r;if(this.printLeadingComments(e,n),n.print(e,"("),this.visitParams(e.params,n),n.print(e,")"),(r=e.type)==null||r.visitType(this,n),n.print(e," => "),Array.isArray(e.body))n.print(e,"{"),n.println(e),n.incIndent(),this.visitAllStatements(e.body,n),n.decIndent(),n.println(e,"}");else{let s=this.shouldParenthesize(e.body,e);s&&n.print(e,"("),e.body.visitExpression(this,n),s&&n.print(e,")")}}visitDeclareFunctionStmt(e,n){var r;this.printLeadingComments(e,n),n.print(e,`function ${e.name}(`),this.visitParams(e.params,n),n.print(e,")"),(r=e.type)==null||r.visitType(this,n),n.print(e," {"),n.println(e),n.incIndent(),this.visitAllStatements(e.statements,n),n.decIndent(),n.println(e,"}")}visitUnaryOperatorExpr(e,n){this.printLeadingComments(e,n);let r;switch(e.operator){case Ln.Plus:r="+";break;case Ln.Minus:r="-";break;default:throw new Error(`Unknown operator ${e.operator}`)}let s=e!==this.lastIfCondition;s&&n.print(e,"("),n.print(e,r),e.expr.visitExpression(this,n),s&&n.print(e,")")}visitBinaryOperatorExpr(e,n){this.printLeadingComments(e,n);let r=Dw.get(e.operator);if(!r)throw new Error(`Unknown operator ${e.operator}`);let s=e!==this.lastIfCondition;s&&n.print(e,"("),e.lhs.visitExpression(this,n),n.print(e,` ${r} `),e.rhs.visitExpression(this,n),s&&n.print(e,")")}visitReadPropExpr(e,n){this.printLeadingComments(e,n),e.receiver.visitExpression(this,n),n.print(e,e.isOptional?"?.":"."),n.print(e,e.name)}visitReadKeyExpr(e,n){this.printLeadingComments(e,n),e.receiver.visitExpression(this,n),n.print(e,e.isOptional?"?.[":"["),e.index.visitExpression(this,n),n.print(e,"]")}visitLiteralArrayExpr(e,n){this.printLeadingComments(e,n),n.print(e,"["),this.visitAllExpressions(e.entries,n,", "),n.print(e,"]")}visitLiteralMapExpr(e,n){this.printLeadingComments(e,n),n.print(e,"{");for(let r=0;r<e.entries.length;r++){let s=e.entries[r];if(s instanceof En)r>0&&n.print(e,", ",!1),n.print(e,"..."),s.expression.visitExpression(this,n);else{let i=this.printComments&&s.leadingComments!==void 0&&s.leadingComments.length>0;r>0?n.print(e,i?",":", ",i):i&&n.println(e),this.printLeadingComments(s,n),n.print(e,`${Tr(s.key,s.quoted)}: `),s.value.visitExpression(this,n)}}n.print(e,"}")}visitCommaExpr(e,n){this.printLeadingComments(e,n),n.print(e,"("),this.visitAllExpressions(e.parts,n,", "),n.print(e,")")}visitParenthesizedExpr(e,n){if(this.printLeadingComments(e,n),e===this.lastIfCondition)this.lastIfCondition=e.expr,e.expr.visitExpression(this,n);else{let r=!(e.expr instanceof oe)&&!(e.expr instanceof Mn)&&!(e.expr instanceof Ht)&&!(e.expr instanceof il)&&!(e.expr instanceof St);r&&n.print(e,"("),e.expr.visitExpression(this,n),r&&n.print(e,")")}}visitSpreadElementExpr(e,n){this.printLeadingComments(e,n),n.print(e,"..."),e.expression.visitExpression(this,n)}visitBuiltinType(e,n){if(this.printTypes)switch(e.name){case Ve.Bool:n.print(null,": boolean");break;case Ve.Dynamic:n.print(null,": any");break;case Ve.Int:case Ve.Number:n.print(null,": number");break;case Ve.String:n.print(null,": string");break;case Ve.None:n.print(null,": void");break;case Ve.Inferred:break;case Ve.Function:n.print(null,": Function");break;default:n.print(null,": any");break}}visitExpressionType(e,n){this.printTypes&&(n.print(null,": "),e.value.visitExpression(this,n),e.typeParams&&e.typeParams.length>0&&(n.print(null,"<"),this.visitAllObjects(r=>r.visitType(this,n),e.typeParams,n,","),n.print(null,">")))}visitArrayType(e,n){this.printTypes&&(n.print(null,": "),e.of.visitType(this,n),n.print(null,"[]"))}visitMapType(e,n){this.printTypes&&(n.print(null,": { [key: string]: "),e.valueType?e.valueType.visitType(this,n):n.print(null,"any"),n.print(null,"}"))}visitTransplantedType(e,n){throw new Error("TransplantedType nodes are not supported")}visitAllExpressions(e,n,r){this.visitAllObjects(s=>s.visitExpression(this,n),e,n,r)}visitAllObjects(e,n,r,s){for(let i=0;i<n.length;i++)i>0&&r.print(null,s,!1),e(n[i])}visitAllStatements(e,n){e.forEach(r=>r.visitStatement(this,n))}visitParams(e,n){this.visitAllObjects(r=>{var s;n.print(null,r.name),(s=r.type)==null||s.visitType(this,n)},e,n,", ")}shouldParenthesize(e,n){return(e instanceof Xt||e instanceof Kt)&&n instanceof Ae||e instanceof un&&n instanceof Xt}printLeadingComments(e,n){if(!(!this.printComments||e.leadingComments===void 0))for(let r of e.leadingComments)r instanceof Ao?n.print(e,`/*${r.toString()}*/`,r.trailingNewline):r.multiline?n.print(e,`/* ${r.text} */`,r.trailingNewline):r.text.split(`
`).forEach(s=>n.println(e,`// ${s}`))}};function Tr(t,e=!0){if(t==null)return null;let n=t.replace(Aw,(...s)=>s[0]==`
`?"\\n":s[0]=="\r"?"\\r":`\\${s[0]}`);return e||!bw.test(n)?`'${n}'`:n}var Ke=0,kw=8,Fp=9,ls=10,Vm=11,Gm=12,Bp=13,Hm=32,du=33,_o=34,qm=35,ql=36,_w=37,al=38,Ro=39,_t=40,Xe=41,mu=42,Wm=43,mt=44,ll=45,es=46,zt=47,Dn=58,Ut=59,ri=60,st=61,Nt=62,Ys=63,$p=48,Rw=55,jm=57,zr=65,Pw=69,Lw=70,Mw=88,Pi=90,_n=91,cs=92,jn=93,Ow=94,Kr=95,Ss=97,Fw=98,Bw=101,Up=102,zm=110,Km=114,Xm=116,Ym=117,Qm=118,Jm=120,Sa=122,an=123,_f=124,Dt=125,Zm=160,Us=64,gu=96;function Po(t){return t>=Fp&&t<=Hm||t==Zm}function sn(t){return $p<=t&&t<=jm}function Or(t){return t>=Ss&&t<=Sa||t>=zr&&t<=Pi}function $w(t){return t>=Ss&&t<=Up||t>=zr&&t<=Lw||sn(t)}function fo(t){return t===ls||t===Bp}function Rf(t){return $p<=t&&t<=Rw}function mo(t){return t===Ro||t===_o||t===gu}var Es=class t{constructor(e,n,r,s){l(this,"file");l(this,"offset");l(this,"line");l(this,"col");this.file=e,this.offset=n,this.line=r,this.col=s}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let n=this.file.content,r=n.length,s=this.offset,i=this.line,o=this.col;for(;s>0&&e<0;)if(s--,e++,n.charCodeAt(s)==ls){i--;let c=n.substring(0,s-1).lastIndexOf(String.fromCharCode(ls));o=c>0?s-c:s}else o--;for(;s<r&&e>0;){let a=n.charCodeAt(s);s++,e--,a==ls?(i++,o=0):o++}return new t(this.file,s,i,o)}getContext(e,n){let r=this.file.content,s=this.offset;if(s!=null){s>r.length-1&&(s=r.length-1);let i=s,o=0,a=0;for(;o<e&&s>0&&(s--,o++,!(r[s]==`
`&&++a==n)););for(o=0,a=0;o<e&&i<r.length-1&&(i++,o++,!(r[i]==`
`&&++a==n)););return{before:r.substring(s,this.offset),after:r.substring(this.offset,i+1)}}return null}},ws=class{constructor(e,n){l(this,"content");l(this,"url");this.content=e,this.url=n}},G=class{constructor(e,n,r=e,s=null){l(this,"start");l(this,"end");l(this,"fullStart");l(this,"details");this.start=e,this.end=n,this.fullStart=r,this.details=s}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},zn;(function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"})(zn||(zn={}));var L=class extends Error{constructor(n,r,s=zn.ERROR,i){super(r);l(this,"span");l(this,"msg");l(this,"level");l(this,"relatedError");this.span=n,this.msg=r,this.level=s,this.relatedError=i,Object.setPrototypeOf(this,new.target.prototype)}contextualMessage(){let n=this.span.start.getContext(100,3);return n?`${this.msg} ("${n.before}[${zn[this.level]} ->]${n.after}")`:this.msg}toString(){let n=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${n}`}};function Uw(t,e,n){let r=`in ${t} ${e} in ${n}`,s=new ws("",r);return new G(new Es(s,-1,-1,-1),new Es(s,-1,-1,-1))}var Vw=0;function Gw(t){if(!t||!t.reference)return null;let e=t.reference;if(e.__anonymousType)return e.__anonymousType;if(e.__forward_ref__)return"__forward_ref__";let n=$m(e);return n.indexOf("(")>=0?(n=`anonymous_${Vw++}`,e.__anonymousType=n):n=ts(n),n}function ts(t){return t.replace(/\W/g,"_")}var Ts=class{constructor(e,n){l(this,"start");l(this,"end");this.start=e,this.end=n}toAbsolute(e){return new it(e+this.start,e+this.end)}},le=class{constructor(e,n){l(this,"span");l(this,"sourceSpan");this.span=e,this.sourceSpan=n}toString(){return"AST"}},di=class extends le{constructor(n,r,s){super(n,r);l(this,"nameSpan");this.nameSpan=s}},ct=class extends le{visit(e,n=null){var r;return(r=e.visitEmptyExpr)==null?void 0:r.call(e,this,n)}},pn=class extends le{visit(e,n=null){return e.visitImplicitReceiver(this,n)}},Cs=class extends le{visit(e,n=null){var r;return(r=e.visitThisReceiver)==null?void 0:r.call(e,this,n)}},Fr=class extends le{constructor(n,r,s){super(n,r);l(this,"expressions");this.expressions=s}visit(n,r=null){return n.visitChain(this,r)}},Br=class extends le{constructor(n,r,s,i,o){super(n,r);l(this,"condition");l(this,"trueExp");l(this,"falseExp");this.condition=s,this.trueExp=i,this.falseExp=o}visit(n,r=null){return n.visitConditional(this,r)}},we=class extends di{constructor(n,r,s,i,o){super(n,r,s);l(this,"receiver");l(this,"name");this.receiver=i,this.name=o}visit(n,r=null){return n.visitPropertyRead(this,r)}},lt=class extends di{constructor(n,r,s,i,o){super(n,r,s);l(this,"receiver");l(this,"name");this.receiver=i,this.name=o}visit(n,r=null){return n.visitSafePropertyRead(this,r)}},Zn=class extends le{constructor(n,r,s,i){super(n,r);l(this,"receiver");l(this,"key");this.receiver=s,this.key=i}visit(n,r=null){return n.visitKeyedRead(this,r)}},er=class extends le{constructor(n,r,s,i){super(n,r);l(this,"receiver");l(this,"key");this.receiver=s,this.key=i}visit(n,r=null){return n.visitSafeKeyedRead(this,r)}},si;(function(t){t[t.ReferencedByName=0]="ReferencedByName",t[t.ReferencedDirectly=1]="ReferencedDirectly"})(si||(si={}));var mi=class extends di{constructor(n,r,s,i,o,a,c){super(n,r,c);l(this,"exp");l(this,"name");l(this,"args");l(this,"type");this.exp=s,this.name=i,this.args=o,this.type=a}visit(n,r=null){return n.visitPipe(this,r)}},gt=class extends le{constructor(n,r,s){super(n,r);l(this,"value");this.value=s}visit(n,r=null){return n.visitLiteralPrimitive(this,r)}},Lo=class extends le{constructor(n,r,s){super(n,r);l(this,"expressions");this.expressions=s}visit(n,r=null){return n.visitLiteralArray(this,r)}},cl=class extends le{constructor(n,r,s){super(n,r);l(this,"expression");this.expression=s}visit(n,r=null){return n.visitSpreadElement(this,r)}},xs=class extends le{constructor(n,r,s,i){super(n,r);l(this,"keys");l(this,"values");this.keys=s,this.values=i}visit(n,r=null){return n.visitLiteralMap(this,r)}},cr=class extends le{constructor(n,r,s,i){super(n,r);l(this,"strings");l(this,"expressions");this.strings=s,this.expressions=i}visit(n,r=null){return n.visitInterpolation(this,r)}},Re=class extends le{constructor(n,r,s,i,o){super(n,r);l(this,"operation");l(this,"left");l(this,"right");this.operation=s,this.left=i,this.right=o}visit(n,r=null){return n.visitBinary(this,r)}static isAssignmentOperation(n){return n==="="||n==="+="||n==="-="||n==="*="||n==="/="||n==="%="||n==="**="||n==="&&="||n==="||="||n==="??="}},ii=class t extends Re{constructor(n,r,s,i,o,a,c){super(n,r,o,a,c);l(this,"operator");l(this,"expr");l(this,"left",null);l(this,"right",null);l(this,"operation",null);this.operator=s,this.expr=i}static createMinus(n,r,s){return new t(n,r,"-",s,"-",new gt(n,r,0),s)}static createPlus(n,r,s){return new t(n,r,"+",s,"-",s,new gt(n,r,0))}visit(n,r=null){return n.visitUnary!==void 0?n.visitUnary(this,r):n.visitBinary(this,r)}},On=class extends le{constructor(n,r,s){super(n,r);l(this,"expression");this.expression=s}visit(n,r=null){return n.visitPrefixNot(this,r)}},Mo=class extends le{constructor(n,r,s){super(n,r);l(this,"expression");this.expression=s}visit(n,r=null){return n.visitTypeofExpression(this,r)}},Oo=class extends le{constructor(n,r,s){super(n,r);l(this,"expression");this.expression=s}visit(n,r=null){return n.visitVoidExpression(this,r)}},tr=class extends le{constructor(n,r,s){super(n,r);l(this,"expression");this.expression=s}visit(n,r=null){return n.visitNonNullAssert(this,r)}},wn=class extends le{constructor(n,r,s,i,o){super(n,r);l(this,"receiver");l(this,"args");l(this,"argumentSpan");this.receiver=s,this.args=i,this.argumentSpan=o}visit(n,r=null){return n.visitCall(this,r)}},hn=class extends le{constructor(n,r,s,i,o){super(n,r);l(this,"receiver");l(this,"args");l(this,"argumentSpan");this.receiver=s,this.args=i,this.argumentSpan=o}visit(n,r=null){return n.visitSafeCall(this,r)}},Fo=class extends le{constructor(n,r,s,i){super(n,r);l(this,"tag");l(this,"template");this.tag=s,this.template=i}visit(n,r){return n.visitTaggedTemplateLiteral(this,r)}},Bo=class extends le{constructor(n,r,s,i){super(n,r);l(this,"elements");l(this,"expressions");this.elements=s,this.expressions=i}visit(n,r){return n.visitTemplateLiteral(this,r)}},ul=class extends le{constructor(n,r,s){super(n,r);l(this,"text");this.text=s}visit(n,r){return n.visitTemplateLiteralElement(this,r)}},nr=class extends le{constructor(n,r,s){super(n,r);l(this,"expression");this.expression=s}visit(n,r){return n.visitParenthesizedExpression(this,r)}},yu=class{constructor(e,n,r){l(this,"name");l(this,"span");l(this,"sourceSpan");this.name=e,this.span=n,this.sourceSpan=r}},gi=class extends le{constructor(n,r,s,i){super(n,r);l(this,"parameters");l(this,"body");this.parameters=s,this.body=i}visit(n,r){return n.visitArrowFunction(this,r)}},pl=class extends le{constructor(n,r,s,i){super(n,r);l(this,"body");l(this,"flags");this.body=s,this.flags=i}visit(n,r){return n.visitRegularExpressionLiteral(this,r)}},it=class{constructor(e,n){l(this,"start");l(this,"end");this.start=e,this.end=n}},Ne=class extends le{constructor(n,r,s,i,o){super(new Ts(0,r===null?0:r.length),new it(i,r===null?i:i+r.length));l(this,"ast");l(this,"source");l(this,"location");l(this,"errors");this.ast=n,this.source=r,this.location=s,this.errors=o}visit(n,r=null){return n.visitASTWithSource?n.visitASTWithSource(this,r):this.ast.visit(n,r)}toString(){return`${this.source} in ${this.location}`}},$o=class{constructor(e,n,r){l(this,"sourceSpan");l(this,"key");l(this,"value");this.sourceSpan=e,this.key=n,this.value=r}},vu=class{constructor(e,n,r){l(this,"sourceSpan");l(this,"key");l(this,"value");this.sourceSpan=e,this.key=n,this.value=r}},Ns=class{visit(e,n){e.visit(this,n)}visitUnary(e,n){this.visit(e.expr,n)}visitBinary(e,n){this.visit(e.left,n),this.visit(e.right,n)}visitChain(e,n){this.visitAll(e.expressions,n)}visitConditional(e,n){this.visit(e.condition,n),this.visit(e.trueExp,n),this.visit(e.falseExp,n)}visitPipe(e,n){this.visit(e.exp,n),this.visitAll(e.args,n)}visitImplicitReceiver(e,n){}visitThisReceiver(e,n){}visitInterpolation(e,n){this.visitAll(e.expressions,n)}visitKeyedRead(e,n){this.visit(e.receiver,n),this.visit(e.key,n)}visitLiteralArray(e,n){this.visitAll(e.expressions,n)}visitLiteralMap(e,n){this.visitAll(e.values,n)}visitLiteralPrimitive(e,n){}visitPrefixNot(e,n){this.visit(e.expression,n)}visitTypeofExpression(e,n){this.visit(e.expression,n)}visitVoidExpression(e,n){this.visit(e.expression,n)}visitNonNullAssert(e,n){this.visit(e.expression,n)}visitPropertyRead(e,n){this.visit(e.receiver,n)}visitSafePropertyRead(e,n){this.visit(e.receiver,n)}visitSafeKeyedRead(e,n){this.visit(e.receiver,n),this.visit(e.key,n)}visitCall(e,n){this.visit(e.receiver,n),this.visitAll(e.args,n)}visitSafeCall(e,n){this.visit(e.receiver,n),this.visitAll(e.args,n)}visitTemplateLiteral(e,n){for(let r=0;r<e.elements.length;r++){this.visit(e.elements[r],n);let s=r<e.expressions.length?e.expressions[r]:null;s!==null&&this.visit(s,n)}}visitTemplateLiteralElement(e,n){}visitTaggedTemplateLiteral(e,n){this.visit(e.tag,n),this.visit(e.template,n)}visitParenthesizedExpression(e,n){this.visit(e.expression,n)}visitArrowFunction(e,n){this.visit(e.body,n)}visitRegularExpressionLiteral(e,n){}visitSpreadElement(e,n){this.visit(e.expression,n)}visitEmptyExpr(e,n){}visitAll(e,n){for(let r of e)this.visit(r,n)}},Qs=class{constructor(e,n,r,s,i,o){l(this,"name");l(this,"expression");l(this,"type");l(this,"sourceSpan");l(this,"keySpan");l(this,"valueSpan");l(this,"isLiteral");l(this,"isLegacyAnimation");l(this,"isAnimation");this.name=e,this.expression=n,this.type=r,this.sourceSpan=s,this.keySpan=i,this.valueSpan=o,this.isLiteral=this.type===gn.LITERAL_ATTR,this.isLegacyAnimation=this.type===gn.LEGACY_ANIMATION,this.isAnimation=this.type===gn.ANIMATION}},gn;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.LITERAL_ATTR=1]="LITERAL_ATTR",t[t.LEGACY_ANIMATION=2]="LEGACY_ANIMATION",t[t.TWO_WAY=3]="TWO_WAY",t[t.ANIMATION=4]="ANIMATION"})(gn||(gn={}));var Je;(function(t){t[t.Regular=0]="Regular",t[t.LegacyAnimation=1]="LegacyAnimation",t[t.TwoWay=2]="TwoWay",t[t.Animation=3]="Animation"})(Je||(Je={}));var hl=class{constructor(e,n,r,s,i,o,a){l(this,"name");l(this,"targetOrPhase");l(this,"type");l(this,"handler");l(this,"sourceSpan");l(this,"handlerSpan");l(this,"keySpan");this.name=e,this.targetOrPhase=n,this.type=r,this.handler=s,this.sourceSpan=i,this.handlerSpan=o,this.keySpan=a}},Su=class{constructor(e,n,r,s,i){l(this,"name");l(this,"value");l(this,"sourceSpan");l(this,"keySpan");l(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i}},J;(function(t){t[t.Property=0]="Property",t[t.Attribute=1]="Attribute",t[t.Class=2]="Class",t[t.Style=3]="Style",t[t.LegacyAnimation=4]="LegacyAnimation",t[t.TwoWay=5]="TwoWay",t[t.Animation=6]="Animation"})(J||(J={}));var fl=class{constructor(e,n,r,s,i,o,a,c){l(this,"name");l(this,"type");l(this,"securityContext");l(this,"value");l(this,"unit");l(this,"sourceSpan");l(this,"keySpan");l(this,"valueSpan");this.name=e,this.type=n,this.securityContext=r,this.value=s,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=c}},ss=class{constructor(e,n){l(this,"value");l(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e){throw new Error("visit() not implemented for Comment")}},is=class{constructor(e,n){l(this,"value");l(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e){return e.visitText(this)}},yi=class{constructor(e,n,r){l(this,"value");l(this,"sourceSpan");l(this,"i18n");this.value=e,this.sourceSpan=n,this.i18n=r}visit(e){return e.visitBoundText(this)}},fn=class{constructor(e,n,r,s,i,o){l(this,"name");l(this,"value");l(this,"sourceSpan");l(this,"keySpan");l(this,"valueSpan");l(this,"i18n");this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i,this.i18n=o}visit(e){return e.visitTextAttribute(this)}},Tn=class t{constructor(e,n,r,s,i,o,a,c,u){l(this,"name");l(this,"type");l(this,"securityContext");l(this,"value");l(this,"unit");l(this,"sourceSpan");l(this,"keySpan");l(this,"valueSpan");l(this,"i18n");this.name=e,this.type=n,this.securityContext=r,this.value=s,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=c,this.i18n=u}static fromBoundElementProperty(e,n){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 t(e.name,e.type,e.securityContext,e.value,e.unit,e.sourceSpan,e.keySpan,e.valueSpan,n)}visit(e){return e.visitBoundAttribute(this)}},Fn=class t{constructor(e,n,r,s,i,o,a,c){l(this,"name");l(this,"type");l(this,"handler");l(this,"target");l(this,"phase");l(this,"sourceSpan");l(this,"handlerSpan");l(this,"keySpan");this.name=e,this.type=n,this.handler=r,this.target=s,this.phase=i,this.sourceSpan=o,this.handlerSpan=a,this.keySpan=c}static fromParsedEvent(e){let n=e.type===Je.Regular?e.targetOrPhase:null,r=e.type===Je.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 t(e.name,e.type,e.handler,n,r,e.sourceSpan,e.handlerSpan,e.keySpan)}visit(e){return e.visitBoundEvent(this)}},Tt=class{constructor(e,n,r,s,i,o,a,c,u,f,h,p,g){l(this,"name");l(this,"attributes");l(this,"inputs");l(this,"outputs");l(this,"directives");l(this,"children");l(this,"references");l(this,"isSelfClosing");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");l(this,"isVoid");l(this,"i18n");this.name=e,this.attributes=n,this.inputs=r,this.outputs=s,this.directives=i,this.children=o,this.references=a,this.isSelfClosing=c,this.sourceSpan=u,this.startSourceSpan=f,this.endSourceSpan=h,this.isVoid=p,this.i18n=g}visit(e){return e.visitElement(this)}},Bn=class{constructor(e,n,r,s,i){l(this,"nameSpan");l(this,"sourceSpan");l(this,"prefetchSpan");l(this,"whenOrOnSourceSpan");l(this,"hydrateSpan");this.nameSpan=e,this.sourceSpan=n,this.prefetchSpan=r,this.whenOrOnSourceSpan=s,this.hydrateSpan=i}visit(e){return e.visitDeferredTrigger(this)}},dl=class extends Bn{constructor(n,r,s,i,o){super(null,r,s,i,o);l(this,"value");this.value=n}},Eu=class extends Bn{},vi=class extends Bn{constructor(n,r,s,i,o,a){super(n,r,s,i,o);l(this,"timeout");this.timeout=a}},Si=class extends Bn{},Is=class extends Bn{constructor(n,r,s,i,o,a){super(r,s,i,o,a);l(this,"reference");this.reference=n}},rr=class extends Bn{constructor(n,r,s,i,o,a){super(r,s,i,o,a);l(this,"delay");this.delay=n}},As=class extends Bn{constructor(n,r,s,i,o,a){super(r,s,i,o,a);l(this,"reference");this.reference=n}},$r=class extends Bn{constructor(n,r,s,i,o,a,c){super(s,i,o,a,c);l(this,"reference");l(this,"options");this.reference=n,this.options=r}},pt=class{constructor(e,n,r,s){l(this,"nameSpan");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");this.nameSpan=e,this.sourceSpan=n,this.startSourceSpan=r,this.endSourceSpan=s}},Uo=class extends pt{constructor(n,r,s,i,o,a,c){super(s,i,o,a);l(this,"children");l(this,"minimumTime");l(this,"i18n");this.children=n,this.minimumTime=r,this.i18n=c}visit(n){return n.visitDeferredBlockPlaceholder(this)}},Vo=class extends pt{constructor(n,r,s,i,o,a,c,u){super(i,o,a,c);l(this,"children");l(this,"afterTime");l(this,"minimumTime");l(this,"i18n");this.children=n,this.afterTime=r,this.minimumTime=s,this.i18n=u}visit(n){return n.visitDeferredBlockLoading(this)}},Go=class extends pt{constructor(n,r,s,i,o,a){super(r,s,i,o);l(this,"children");l(this,"i18n");this.children=n,this.i18n=a}visit(n){return n.visitDeferredBlockError(this)}},bs=class extends pt{constructor(n,r,s,i,o,a,c,u){super(i,o,a,c);l(this,"name");l(this,"variables");l(this,"children");l(this,"i18n");this.name=n,this.variables=r,this.children=s,this.i18n=u}visit(n){return n.visitContentBlock(this)}},Ei=class extends pt{constructor(n,r,s,i,o,a,c,u){super(s,i,a,c);l(this,"children");l(this,"errorBlocks");l(this,"mainBlockSpan");l(this,"i18n");this.children=n,this.errorBlocks=r,this.mainBlockSpan=o,this.i18n=u}visit(n){return n.visitBoundaryBlock(this)}},Ho=class extends pt{constructor(n,r,s,i,o,a,c,u){super(i,o,a,c);l(this,"children");l(this,"contextVariables");l(this,"expression");l(this,"i18n");this.children=n,this.contextVariables=r,this.expression=s,this.i18n=u}visit(n){return n.visitBoundaryErrorBlock(this)}},Rn=class extends pt{constructor(n,r,s,i,o,a,c,u,f,h,p,g,y,E){super(u,f,p,g);l(this,"children");l(this,"placeholder");l(this,"loading");l(this,"error");l(this,"mainBlockSpan");l(this,"definedName");l(this,"i18n");l(this,"triggers");l(this,"prefetchTriggers");l(this,"hydrateTriggers");l(this,"definedTriggers");l(this,"definedPrefetchTriggers");l(this,"definedHydrateTriggers");this.children=n,this.placeholder=o,this.loading=a,this.error=c,this.mainBlockSpan=h,this.definedName=y,this.i18n=E,this.triggers=r,this.prefetchTriggers=s,this.hydrateTriggers=i,this.definedTriggers=Object.keys(r),this.definedPrefetchTriggers=Object.keys(s),this.definedHydrateTriggers=Object.keys(i)}visit(n){return n.visitDeferredBlock(this)}visitAll(n){this.visitTriggers(this.definedHydrateTriggers,this.hydrateTriggers,n),this.visitTriggers(this.definedTriggers,this.triggers,n),this.visitTriggers(this.definedPrefetchTriggers,this.prefetchTriggers,n),oi(n,this.children);let r=[this.placeholder,this.loading,this.error].filter(s=>s!==null);oi(n,r)}visitTriggers(n,r,s){oi(s,n.map(i=>r[i]))}},wi=class extends pt{constructor(n,r,s,i,o,a,c,u){super(u,o,a,c);l(this,"expression");l(this,"groups");l(this,"unknownBlocks");l(this,"exhaustiveCheck");this.expression=n,this.groups=r,this.unknownBlocks=s,this.exhaustiveCheck=i}visit(n){return n.visitSwitchBlock(this)}},wu=class extends pt{constructor(n,r,s,i,o){super(o,r,s,i);l(this,"expression");this.expression=n}visit(n){return n.visitSwitchBlockCase(this)}},qo=class extends pt{constructor(n,r,s,i,o,a,c){super(a,s,i,o);l(this,"cases");l(this,"children");l(this,"i18n");this.cases=n,this.children=r,this.i18n=c}visit(n){return n.visitSwitchBlockCaseGroup(this)}},Tu=class extends pt{constructor(n,r,s,i,o){super(o,r,s,i);l(this,"expression");this.expression=n}visit(n){return n.visitSwitchExhaustiveCheck(this)}},Ur=class extends pt{constructor(n,r,s,i,o,a,c,u,f,h,p,g,y){super(g,u,h,p);l(this,"item");l(this,"expression");l(this,"trackBy");l(this,"trackKeywordSpan");l(this,"contextVariables");l(this,"children");l(this,"empty");l(this,"mainBlockSpan");l(this,"i18n");this.item=n,this.expression=r,this.trackBy=s,this.trackKeywordSpan=i,this.contextVariables=o,this.children=a,this.empty=c,this.mainBlockSpan=f,this.i18n=y}visit(n){return n.visitForLoopBlock(this)}},Wo=class extends pt{constructor(n,r,s,i,o,a){super(o,r,s,i);l(this,"children");l(this,"i18n");this.children=n,this.i18n=a}visit(n){return n.visitForLoopBlockEmpty(this)}},Ti=class extends pt{constructor(n,r,s,i,o){super(o,r,s,i);l(this,"branches");this.branches=n}visit(n){return n.visitIfBlock(this)}},us=class extends pt{constructor(n,r,s,i,o,a,c,u){super(c,i,o,a);l(this,"expression");l(this,"children");l(this,"expressionAlias");l(this,"i18n");this.expression=n,this.children=r,this.expressionAlias=s,this.i18n=u}visit(n){return n.visitIfBlockBranch(this)}},ml=class{constructor(e,n,r){l(this,"name");l(this,"sourceSpan");l(this,"nameSpan");this.name=e,this.sourceSpan=n,this.nameSpan=r}visit(e){return e.visitUnknownBlock(this)}},ur=class{constructor(e,n,r,s,i){l(this,"name");l(this,"value");l(this,"sourceSpan");l(this,"nameSpan");l(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=r,this.nameSpan=s,this.valueSpan=i}visit(e){return e.visitLetDeclaration(this)}},ps=class{constructor(e,n,r,s,i,o,a,c,u,f,h,p,g,y){l(this,"componentName");l(this,"tagName");l(this,"fullName");l(this,"attributes");l(this,"inputs");l(this,"outputs");l(this,"directives");l(this,"children");l(this,"references");l(this,"isSelfClosing");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");l(this,"i18n");this.componentName=e,this.tagName=n,this.fullName=r,this.attributes=s,this.inputs=i,this.outputs=o,this.directives=a,this.children=c,this.references=u,this.isSelfClosing=f,this.sourceSpan=h,this.startSourceSpan=p,this.endSourceSpan=g,this.i18n=y}visit(e){return e.visitComponent(this)}},Wl=class{constructor(e,n,r,s,i,o,a,c,u){l(this,"name");l(this,"attributes");l(this,"inputs");l(this,"outputs");l(this,"references");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");l(this,"i18n");this.name=e,this.attributes=n,this.inputs=r,this.outputs=s,this.references=i,this.sourceSpan=o,this.startSourceSpan=a,this.endSourceSpan=c,this.i18n=u}visit(e){return e.visitDirective(this)}},Le=class{constructor(e,n,r,s,i,o,a,c,u,f,h,p,g,y){l(this,"tagName");l(this,"attributes");l(this,"inputs");l(this,"outputs");l(this,"directives");l(this,"templateAttrs");l(this,"children");l(this,"references");l(this,"variables");l(this,"isSelfClosing");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");l(this,"i18n");this.tagName=e,this.attributes=n,this.inputs=r,this.outputs=s,this.directives=i,this.templateAttrs=o,this.children=a,this.references=c,this.variables=u,this.isSelfClosing=f,this.sourceSpan=h,this.startSourceSpan=p,this.endSourceSpan=g,this.i18n=y}visit(e){return e.visitTemplate(this)}},Ci=class{constructor(e,n,r,s,i,o,a,c){l(this,"selector");l(this,"attributes");l(this,"children");l(this,"isSelfClosing");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");l(this,"i18n");l(this,"name","ng-content");this.selector=e,this.attributes=n,this.children=r,this.isSelfClosing=s,this.sourceSpan=i,this.startSourceSpan=o,this.endSourceSpan=a,this.i18n=c}visit(e){return e.visitContent(this)}},Yt=class{constructor(e,n,r,s,i){l(this,"name");l(this,"value");l(this,"sourceSpan");l(this,"keySpan");l(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i}visit(e){return e.visitVariable(this)}},Ds=class{constructor(e,n,r,s,i){l(this,"name");l(this,"value");l(this,"sourceSpan");l(this,"keySpan");l(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i}visit(e){return e.visitReference(this)}},eg=class{constructor(e,n,r,s){l(this,"vars");l(this,"placeholders");l(this,"sourceSpan");l(this,"i18n");this.vars=e,this.placeholders=n,this.sourceSpan=r,this.i18n=s}visit(e){return e.visitIcu(this)}},jo=class{constructor(e,n,r,s){l(this,"tagNames");l(this,"bindings");l(this,"listeners");l(this,"sourceSpan");if(this.tagNames=e,this.bindings=n,this.listeners=r,this.sourceSpan=s,e.length===0)throw new Error("HostElement must have at least one tag name.")}visit(){throw new Error("HostElement cannot be visited")}};function oi(t,e){let n=[];if(t.visit)for(let r of e)t.visit(r);else for(let r of e){let s=r.visit(t);s&&n.push(s)}return n}var Pf=/(\s*)(\S+)(\s*)/,Hw=/[-.]/,jl=/^[$A-Z_][0-9A-Z_$]*$/i,Vp=/^let\s+([\S\s]*)/;function tg(t,e,n,r,s,i,o,a){var f,h,p;let c=e.split(","),u=n.start;for(let g of c){let y=g.split("="),E=y[0].trim(),w=y.length===2?y[1].trim():a!=null?a:"";if(E.length===0||w.length===0)s.push(new L(t,`Invalid ${o} "let" parameter. Parameter should match the pattern "<name> = <variable name>"`));else if(!jl.test(E))s.push(new L(t,'"let" parameter must be a valid JavaScript identifier'));else{i(E,w,t);let[,A,k]=(f=y[0].match(Pf))!=null?f:[],_=A!==void 0?new G(u.moveBy(A.length),u.moveBy(A.length+k.length)):n,H;if(y.length===2){let[,te,Se]=(h=y[1].match(Pf))!=null?h:[];H=te!==void 0?new G(u.moveBy(y[0].length+1+te.length),u.moveBy(y[0].length+1+te.length+Se.length)):void 0}let q=new G(_.start,(p=H==null?void 0:H.end)!=null?p:_.end);r.push(new Yt(E,w,q,_,H))}u=u.moveBy(g.length+1)}}function Gp(t,e){if(e===0)return qe(t);let n=[];for(let r=0;r<e;r++)n.push(X);return qe(t,void 0,n)}function ng(t,e){let n=Tr(e,!1);return n!==e?`${t}[${n}]`:`${t}.${e}`}function qw(t){return Ww("ngJitMode",t)}function Ww(t,e){let n=new ot({name:t,moduleName:null}),r=new oe(T.Identical,new Qn(n),S("undefined")),s=new oe(T.Or,r,n,void 0,void 0);return new oe(T.And,s,e)}function Ue(t){let e=new z(t);return{value:e,type:e}}function os(t,e){let n=pe(t.map(r=>r.value));return e?wt([],n,X):n}function zo(){return Mp("@ts-ignore",!0,!0)}function Ea(t){return Hw.test(t)}function Os(t,e){return{expression:t,forwardRef:e}}function jw({expression:t,forwardRef:e}){switch(e){case 0:case 1:return t;case 2:return zw(t)}}function zw(t){return R(m.forwardRef).callFn([wt([],t,X)])}var Ko;(function(t){t[t.Class=0]="Class",t[t.Function=1]="Function"})(Ko||(Ko={}));function wr(t){let e=Z("__ngFactoryType__"),n=null,r=Mf(t)?e:new oe(T.Or,e,t.type.value),s=null,i=t.deps!==null&&t.deps!=="invalid"&&t.deps.length>0?[zo()]:void 0;t.deps!==null?t.deps!=="invalid"&&(s=new ui(r,Lf(t.deps,t.target))):(n=Z(`\u0275${t.name}_BaseFactory`),s=n.callFn([r]));let o=[],a=null;function c(f){let h=Z("__ngConditionalFactory__");o.push(new Ze(h.name,Lr,X));let p=s!==null?h.set(s).toStmt(i):R(m.invalidFactory).callFn([]).toStmt();return o.push(va(e,[p],[h.set(f).toStmt([zo()])])),h}if(Mf(t)){let f=Lf(t.delegateDeps,t.target),h=new(t.delegateType===Ko.Class?ui:Ae)(t.delegate,f);a=c(h)}else Jw(t)?a=c(t.expression):a=s;if(a===null)o.push(R(m.invalidFactory).callFn([]).toStmt());else if(n!==null){let f=R(m.getInheritedFactory).callFn([t.type.value]),h=new oe(T.Or,n,n.set(f));o.push(new Pe(h.callFn([r])))}else o.push(new Pe(a,null,i));let u=Jn([new He(e.name,X)],o,X,void 0,`${t.name}_Factory`);return n!==null&&(u=wt([],[new Ze(n.name,void 0,X),new Pe(u)],X).callFn([],void 0,!0)),{expression:u,statements:[],type:Kw(t)}}function Kw(t){let e=t.deps!==null&&t.deps!=="invalid"?Yw(t.deps):Gt;return qe(R(m.FactoryDeclaration,[Gp(t.type.type,t.typeArgumentCount),e]))}function Lf(t,e){return t.map((n,r)=>Xw(n,e,r))}function Xw(t,e,n){if(t.token===null)return R(m.invalidFactoryDep).callFn([S(n)]);if(t.attributeNameType===null){let r=0|(t.self?2:0)|(t.skipSelf?4:0)|(t.host?1:0)|(t.optional?8:0)|(e===yt.Pipe?16:0),s=r!==0||t.optional?S(r):null,i=[t.token];s&&i.push(s);let o=Zw(e);return R(o).callFn(i)}else return R(m.injectAttribute).callFn([t.token])}function Yw(t){let e=!1,n=t.map(r=>{let s=Qw(r);return s!==null?(e=!0,s):S(null)});return e?qe(pe(n)):Gt}function Qw(t){let e=[];return t.attributeNameType!==null&&e.push({key:"attribute",value:t.attributeNameType,quoted:!1}),t.optional&&e.push({key:"optional",value:S(!0),quoted:!1}),t.host&&e.push({key:"host",value:S(!0),quoted:!1}),t.self&&e.push({key:"self",value:S(!0),quoted:!1}),t.skipSelf&&e.push({key:"skipSelf",value:S(!0),quoted:!1}),e.length>0?Et(e):null}function Mf(t){return t.delegateType!==void 0}function Jw(t){return t.expression!==void 0}function Zw(t){switch(t){case yt.Component:case yt.Directive:case yt.Pipe:return m.directiveInject;case yt.NgModule:case yt.Injectable:default:return m.inject}}var yn;(function(t){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA"})(yn||(yn={}));function tt(t,e=!0){if(t[0]!=":")return[null,t];let n=t.indexOf(":",1);if(n===-1){if(e)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[null,t]}return[t.slice(1,n),t.slice(n+1)]}function Of(t){return tt(t)[1]==="ng-container"}function Cu(t){return tt(t)[1]==="ng-content"}function Li(t){return tt(t)[1]==="ng-template"}function xu(t){return t===null?null:tt(t)[0]}function Xa(t,e){return t?`:${t}:${e}`:e}var Rt=class{constructor(e,n,r,s,i,o){l(this,"nodes");l(this,"placeholders");l(this,"placeholderToMessage");l(this,"meaning");l(this,"description");l(this,"customId");l(this,"sources");l(this,"id");l(this,"legacyIds",[]);l(this,"messageString");this.nodes=e,this.placeholders=n,this.placeholderToMessage=r,this.meaning=s,this.description=i,this.customId=o,this.id=this.customId,this.messageString=eT(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=[]}},Zi=class{constructor(e,n){l(this,"value");l(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e,n){return e.visitText(this,n)}},Xn=class{constructor(e,n){l(this,"children");l(this,"sourceSpan");this.children=e,this.sourceSpan=n}visit(e,n){return e.visitContainer(this,n)}},gl=class{constructor(e,n,r,s,i){l(this,"expression");l(this,"type");l(this,"cases");l(this,"sourceSpan");l(this,"expressionPlaceholder");this.expression=e,this.type=n,this.cases=r,this.sourceSpan=s,this.expressionPlaceholder=i}visit(e,n){return e.visitIcu(this,n)}},Vr=class{constructor(e,n,r,s,i,o,a,c,u){l(this,"tag");l(this,"attrs");l(this,"startName");l(this,"closeName");l(this,"children");l(this,"isVoid");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");this.tag=e,this.attrs=n,this.startName=r,this.closeName=s,this.children=i,this.isVoid=o,this.sourceSpan=a,this.startSourceSpan=c,this.endSourceSpan=u}visit(e,n){return e.visitTagPlaceholder(this,n)}},Xo=class{constructor(e,n,r){l(this,"value");l(this,"name");l(this,"sourceSpan");this.value=e,this.name=n,this.sourceSpan=r}visit(e,n){return e.visitPlaceholder(this,n)}},xi=class{constructor(e,n,r){l(this,"value");l(this,"name");l(this,"sourceSpan");l(this,"previousMessage");this.value=e,this.name=n,this.sourceSpan=r}visit(e,n){return e.visitIcuPlaceholder(this,n)}},Gr=class{constructor(e,n,r,s,i,o,a,c){l(this,"name");l(this,"parameters");l(this,"startName");l(this,"closeName");l(this,"children");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");this.name=e,this.parameters=n,this.startName=r,this.closeName=s,this.children=i,this.sourceSpan=o,this.startSourceSpan=a,this.endSourceSpan=c}visit(e,n){return e.visitBlockPlaceholder(this,n)}};function eT(t){let e=new Nu;return t.map(r=>r.visit(e)).join("")}var Nu=class{visitText(e){return e.value}visitContainer(e){return e.children.map(n=>n.visit(this)).join("")}visitIcu(e){let n=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${n.join(" ")}}`}visitTagPlaceholder(e){let n=e.children.map(r=>r.visit(this)).join("");return`{$${e.startName}}${n}{$${e.closeName}}`}visitPlaceholder(e){return`{$${e.name}}`}visitIcuPlaceholder(e){return`{$${e.name}}`}visitBlockPlaceholder(e){let n=e.children.map(r=>r.visit(this)).join("");return`{$${e.startName}}${n}{$${e.closeName}}`}};var tT=class{visitTag(e){let n=this._serializeAttributes(e.attrs);if(e.children.length==0)return`<${e.name}${n}/>`;let r=e.children.map(s=>s.visit(this));return`<${e.name}${n}>${r.join("")}</${e.name}>`}visitText(e){return e.value}visitDeclaration(e){return`<?xml${this._serializeAttributes(e.attrs)} ?>`}_serializeAttributes(e){let n=Object.keys(e).map(r=>`${r}="${e[r]}"`).join(" ");return n.length>0?" "+n:""}visitDoctype(e){return`<!DOCTYPE ${e.rootTag} [
${e.dtd}
]>`}},x1=new tT;function nT(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var rg="i18n",Iu="i18n-",rT="VAR_";function sg(t){return t===rg||t.startsWith(Iu)}function sT(t){return t.attrs.some(e=>sg(e.name))}function ig(t){return t.nodes[0]}function Hp(t={},e){let n={};return t&&Object.keys(t).length&&Object.keys(t).forEach(r=>n[wa(r,e)]=t[r]),n}function wa(t,e=!0){let n=nT(t);if(!e)return n;let r=n.split("_");if(r.length===1)return t.toLowerCase();let s;/^\d+$/.test(r[r.length-1])&&(s=r.pop());let i=r.shift().toLowerCase();return r.length&&(i+=r.map(o=>o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join("")),s?`${i}_${s}`:i}var qp="_t",Qt="ctx",Mi="rf";function og(t,e){let n=null;return()=>(n||(t(new Ze(qp,void 0,X)),n=Z(e)),n)}function Js(t){return Array.isArray(t)?pe(t.map(Js)):S(t,kr)}function Ff(t,e){let n=Object.getOwnPropertyNames(t);return n.length===0?null:Et(n.map(r=>{let s=t[r],i,o,a,c;if(typeof s=="string")i=r,a=r,o=s,c=Js(o);else{a=r,i=s.classPropertyName,o=s.bindingPropertyName;let u=o!==i,f=s.transformFunction!==null,h=Xs.None;if(s.isSignal&&(h|=Xs.SignalBased),f&&(h|=Xs.HasDecoratorInputTransform),e&&(u||f||h!==Xs.None)){let p=[S(h),Js(o)];(u||f)&&(p.push(Js(i)),f&&p.push(s.transformFunction)),c=pe(p)}else c=Js(o)}return{key:a,quoted:Ea(a),value:c}}))}var sr=class{constructor(){l(this,"values",[])}set(e,n){if(n){let r=this.values.find(s=>s.key===e);r?r.value=n:this.values.push({key:e,value:n,quoted:!1})}}toLiteralMap(){return Et(this.values)}};function iT(t){let e=t instanceof Tt?t.name:"ng-template",n=oT(t),r=new Ar,s=tt(e)[1];return r.setElement(s),Object.getOwnPropertyNames(n).forEach(i=>{let o=tt(i)[1],a=n[i];r.addAttribute(o,a),i.toLowerCase()==="class"&&a.trim().split(/\s+/).forEach(u=>r.addClassName(u))}),r}function oT(t){let e={};return t instanceof Le&&(!t.tagName||!Li(t.tagName))?t.templateAttrs.forEach(n=>e[n.name]=""):(t.attributes.forEach(n=>{sg(n.name)||(e[n.name]=n.value)}),t.inputs.forEach(n=>{(n.type===J.Property||n.type===J.TwoWay)&&(e[n.name]="")}),t.outputs.forEach(n=>{e[n.name]=""})),e}function Au(t,e){let n=null,r={name:t.name,type:t.type,typeArgumentCount:t.typeArgumentCount,deps:[],target:yt.Injectable};if(t.useClass!==void 0){let a=t.useClass.expression.isEquivalent(t.type.value),c;t.deps!==void 0&&(c=t.deps),c!==void 0?n=wr(de(C({},r),{delegate:t.useClass.expression,delegateDeps:c,delegateType:Ko.Class})):a?n=wr(r):n={statements:[],expression:bu(t.type.value,t.useClass.expression,e)}}else t.useFactory!==void 0?t.deps!==void 0?n=wr(de(C({},r),{delegate:t.useFactory,delegateDeps:t.deps||[],delegateType:Ko.Function})):n={statements:[],expression:wt([],t.useFactory.callFn([]),X)}:t.useValue!==void 0?n=wr(de(C({},r),{expression:t.useValue.expression})):t.useExisting!==void 0?n=wr(de(C({},r),{expression:R(m.inject).callFn([t.useExisting.expression])})):n={statements:[],expression:bu(t.type.value,t.type.value,e)};let s=t.type.value,i=new sr;return i.set("token",s),i.set("factory",n.expression),t.providedIn.expression.value!==null&&i.set("providedIn",jw(t.providedIn)),{expression:R(m.\u0275\u0275defineInjectable).callFn([i.toLiteralMap()],void 0,!0),type:ag(),statements:n.statements}}function ag(t,e){return new vt(R(m.InjectableDeclaration,[X]))}function bu(t,e,n){if(t.node===e.node)return e.prop("\u0275fac");if(!n)return Bf(e);let r=R(m.resolveForwardRef).callFn([e]);return Bf(r)}function Bf(t){let e=new He("__ngFactoryType__",X);return wt([e],t.prop("\u0275fac").callFn([Z(e.name)]),X)}var Wp=!1,$f='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',Du=class extends fu{constructor(){super(!1,!1)}visitWrappedNodeExpr(e,n){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}visitDeclareVarStmt(e,n){n.print(e,`var ${e.name}`),e.value&&(n.print(e," = "),e.value.visitExpression(this,n)),n.println(e,";")}visitTaggedTemplateLiteralExpr(e,n){let r=e.template.elements;e.tag.visitExpression(this,n),n.print(e,`(${$f}(`),n.print(e,`[${r.map(s=>Tr(s.text)).join(", ")}], `),n.print(e,`[${r.map(s=>Tr(s.rawText)).join(", ")}])`),e.template.expressions.forEach(s=>{n.print(e,", "),s.visitExpression(this,n)}),n.print(e,")")}visitTemplateLiteralExpr(e,n){n.print(e,"`");for(let r=0;r<e.elements.length;r++){e.elements[r].visitExpression(this,n);let s=r<e.expressions.length?e.expressions[r]:null;s!==null&&(n.print(s,"${"),s.visitExpression(this,n),n.print(s,"}"))}n.print(e,"`")}visitTemplateLiteralElementExpr(e,n){n.print(e,e.rawText)}visitLocalizedString(e,n){n.print(e,`$localize(${$f}(`);let r=[e.serializeI18nHead()];for(let s=1;s<e.messageParts.length;s++)r.push(e.serializeI18nTemplatePart(s));n.print(e,`[${r.map(s=>Tr(s.cooked)).join(", ")}], `),n.print(e,`[${r.map(s=>Tr(s.raw)).join(", ")}])`),e.expressions.forEach(s=>{n.print(e,", "),s.visitExpression(this,n)}),n.print(e,")")}},La;function aT(){if(La===void 0){let t=po.trustedTypes;if(La=null,t)try{La=t.createPolicy("angular#unsafe-jit",{createScript:e=>e})}catch(e){}}return La}function lT(t){var e;return((e=aT())==null?void 0:e.createScript(t))||t}function Uf(...t){if(!po.trustedTypes)return new Function(...t);let e=t.slice(0,-1).join(","),n=t[t.length-1],r=`(function anonymous(${e}
) { ${n}
})`,s=po.eval(lT(r));return s.bind===void 0?new Function(...t):(s.toString=()=>r,s.bind(po))}var ku=class{evaluateStatements(e,n,r,s){let i=new _u(r),o=hu.createRoot();return n.length>0&&!cT(n[0])&&(n=[S("use strict").toStmt(),...n]),i.visitAllStatements(n,o),i.createReturnStmt(o),this.evaluateCode(e,o,i.getArgs(),s)}evaluateCode(e,n,r,s){let i=`"use strict";${n.toSource()}
//# sourceURL=${e}`,o=[],a=[];for(let u in r)a.push(r[u]),o.push(u);if(s){let u=Uf(...o.concat("return null;")).toString(),f=u.slice(0,u.indexOf("return null;")).split(`
`).length-1;i+=`
${n.toSourceMapGenerator(e,f).toJsComment()}`}let c=Uf(...o.concat(i));return this.executeFunction(c,a)}executeFunction(e,n){return e(...n)}},_u=class extends Du{constructor(n){super();l(this,"refResolver");l(this,"_evalArgNames",[]);l(this,"_evalArgValues",[]);l(this,"_evalExportedVars",[]);this.refResolver=n}createReturnStmt(n){new Pe(new un(this._evalExportedVars.map(s=>new Rr(s,Z(s),!1)))).visitStatement(this,n)}getArgs(){let n={};for(let r=0;r<this._evalArgNames.length;r++)n[this._evalArgNames[r]]=this._evalArgValues[r];return n}visitExternalExpr(n,r){return this._emitReferenceToExternal(n,this.refResolver.resolveExternalReference(n.value),r),null}visitWrappedNodeExpr(n,r){return this._emitReferenceToExternal(n,n.node,r),null}visitDeclareVarStmt(n,r){return n.hasModifier(Fe.Exported)&&this._evalExportedVars.push(n.name),super.visitDeclareVarStmt(n,r)}visitDeclareFunctionStmt(n,r){return n.hasModifier(Fe.Exported)&&this._evalExportedVars.push(n.name),super.visitDeclareFunctionStmt(n,r)}_emitReferenceToExternal(n,r,s){let i=this._evalArgValues.indexOf(r);if(i===-1){i=this._evalArgValues.length,this._evalArgValues.push(r);let o=Gw({reference:r})||"val";this._evalArgNames.push(`jit_${o}_${i}`)}s.print(n,this._evalArgNames[i])}};function cT(t){return t.isEquivalent(S("use strict").toStmt())}function Ru(t){let e=new sr;t.providers!==null&&e.set("providers",t.providers),t.imports.length>0&&e.set("imports",pe(t.imports));let n=R(m.defineInjector).callFn([e.toLiteralMap()],void 0,!0),r=uT(t);return{expression:n,type:r,statements:[]}}function uT(t){return new vt(R(m.InjectorDeclaration,[new vt(t.type.type)]))}var Pu=class{constructor(e){l(this,"context");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(!Object.hasOwn(this.context,e.name))throw new Error(`No value provided for @angular/core symbol '${e.name}'.`);return this.context[e.name]}},Ni;(function(t){t[t.Inline=0]="Inline",t[t.SideEffect=1]="SideEffect",t[t.Omit=2]="Omit"})(Ni||(Ni={}));var $t;(function(t){t[t.Global=0]="Global",t[t.Local=1]="Local",t[t.Isolated=2]="Isolated"})($t||($t={}));function lg(t){let e=[],n=new sr;if(n.set("type",t.type.value),t.kind===$t.Global&&t.bootstrap.length>0&&n.set("bootstrap",os(t.bootstrap,t.containsForwardDecls)),t.selectorScopeMode===Ni.Inline)t.declarations.length>0&&n.set("declarations",os(t.declarations,t.containsForwardDecls)),t.imports.length>0&&n.set("imports",os(t.imports,t.containsForwardDecls)),t.exports.length>0&&n.set("exports",os(t.exports,t.containsForwardDecls));else if(t.selectorScopeMode===Ni.SideEffect){let i=fT(t);i!==null&&e.push(i)}t.schemas!==null&&t.schemas.length>0&&n.set("schemas",pe(t.schemas.map(i=>i.value))),t.id!==null&&(n.set("id",t.id),e.push(R(m.registerNgModuleType).callFn([t.type.value,t.id]).toStmt()));let r=R(m.defineNgModule).callFn([n.toLiteralMap()],void 0,!0),s=hT(t);return{expression:r,type:s,statements:e}}function pT(t){let e=new sr;return e.set("type",new z(t.type)),t.bootstrap!==void 0&&e.set("bootstrap",new z(t.bootstrap)),t.declarations!==void 0&&e.set("declarations",new z(t.declarations)),t.imports!==void 0&&e.set("imports",new z(t.imports)),t.exports!==void 0&&e.set("exports",new z(t.exports)),t.schemas!==void 0&&e.set("schemas",new z(t.schemas)),t.id!==void 0&&e.set("id",new z(t.id)),R(m.defineNgModule).callFn([e.toLiteralMap()])}function hT(t){if(t.kind===$t.Local)return new vt(t.type.value);if(t.kind===$t.Isolated)return new vt(R(m.NgModuleDeclaration,[new vt(t.type.type),Gt,t.importsExpression?qe(t.importsExpression):Gt,t.exportsExpression?qe(t.exportsExpression):Gt]));let{type:e,declarations:n,exports:r,imports:s,includeImportTypes:i,publicDeclarationTypes:o}=t;return new vt(R(m.NgModuleDeclaration,[new vt(e.type),o===null?Mc(n):dT(o),i?Mc(s):Gt,Mc(r)]))}function fT(t){let e=new sr;if(t.kind===$t.Global?t.declarations.length>0&&e.set("declarations",os(t.declarations,t.containsForwardDecls)):t.kind===$t.Local&&t.declarationsExpression&&e.set("declarations",t.declarationsExpression),t.kind===$t.Global?t.imports.length>0&&e.set("imports",os(t.imports,t.containsForwardDecls)):t.kind===$t.Local&&t.importsExpression&&e.set("imports",t.importsExpression),t.kind===$t.Global?t.exports.length>0&&e.set("exports",os(t.exports,t.containsForwardDecls)):t.kind===$t.Local&&t.exportsExpression&&e.set("exports",t.exportsExpression),t.kind===$t.Local&&t.bootstrapExpression&&e.set("bootstrap",t.bootstrapExpression),Object.keys(e.values).length===0)return null;let n=new Ae(R(m.setNgModuleScope),[t.type.value,e.toLiteralMap()]),r=qw(n),s=new Kt([],[r.toStmt()],X);return new Ae(s,[]).toStmt()}function Mc(t){let e=t.map(n=>Ri(n.type));return t.length>0?qe(pe(e)):Gt}function dT(t){let e=t.map(n=>Ri(n));return t.length>0?qe(pe(e)):Gt}function Lu(t){var s;let e=[];e.push({key:"name",value:S((s=t.pipeName)!=null?s:t.name),quoted:!1}),e.push({key:"type",value:t.type.value,quoted:!1}),e.push({key:"pure",value:S(t.pure),quoted:!1}),t.isStandalone===!1&&e.push({key:"standalone",value:S(!1),quoted:!1});let n=R(m.definePipe).callFn([Et(e)],void 0,!0),r=mT(t);return{expression:n,type:r,statements:[]}}function mT(t){return new vt(R(m.PipeDeclaration,[Gp(t.type.type,t.typeArgumentCount),new vt(new Be(t.pipeName)),new vt(new Be(t.isStandalone))]))}var ir;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(ir||(ir={}));var gT=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"]),yT=["@media","@supports","@document","@layer","@container","@scope","@starting-style"],Mu=class{constructor(){l(this,"_animationDeclarationKeyframesRe",/(^|\s+|,)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g);l(this,"_safeSelector");l(this,"_shouldScopeIndicator")}shimCssText(e,n,r=""){let s=[];e=e.replace(_T,a=>{var c;if(a.match(RT))s.push(a);else{let u=a.match(kT);s.push((c=u==null?void 0:u.join(""))!=null?c:"")}return zp});let i=this._scopeCssText(e,n,r),o=0;return i.replace(PT,()=>s[o++])}_scopeKeyframesRelatedCss(e,n){let r=new Set,s=Ma(e,i=>this._scopeLocalKeyframeDeclarations(i,n,r));return Ma(s,i=>this._scopeAnimationRule(i,n,r))}_scopeLocalKeyframeDeclarations(e,n,r){return de(C({},e),{selector:e.selector.replace(/(^@(?:-webkit-)?keyframes(?:\s+))(['"]?)(.+)\2(\s*)$/,(s,i,o,a,c)=>(r.add(Gf(a,o)),`${i}${o}${n}_${a}${o}${c}`))})}_scopeAnimationKeyframe(e,n,r){return e.replace(/^(\s*)(['"]?)(.+?)\2(\s*)$/,(s,i,o,a,c)=>(a=`${r.has(Gf(a,o))?n+"_":""}${a}`,`${i}${o}${a}${o}${c}`))}_scopeAnimationRule(e,n,r){let s=e.content.replace(/((?:^|[\s;{])(?:-webkit-)?animation\s*:\s*)([^;}]+)/g,(i,o,a)=>o+a.replace(this._animationDeclarationKeyframesRe,(c,u,f="",h,p)=>h?`${u}${this._scopeAnimationKeyframe(`${f}${h}${f}`,n,r)}`:gT.has(p)?c:`${u}${this._scopeAnimationKeyframe(p,n,r)}`));return s=s.replace(/((?:^|[\s;{])(?:-webkit-)?animation-name(?:\s*):(?:\s*))([^;}]+)/g,(i,o,a)=>`${o}${a.split(",").map(c=>this._scopeAnimationKeyframe(c,n,r)).join(",")}`),de(C({},e),{content:s})}_scopeCssText(e,n,r){return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),n&&(e=this._scopeKeyframesRelatedCss(e,n),e=this._scopeSelectors(e,n,r)),e.trim()}_convertColonHost(e){return e.replace(TT,(n,r,s)=>{if(r){let i=[...this._splitOnTopLevelCommas(r,!0)];if(i.length>1)return":host("+r+")"+s;let o=i[0].trim();if(o)return Sr+o.replace(yl,"")+s}return Sr+s})}*_splitOnTopLevelCommas(e,n){let r=e.length,s=0,i=0;for(let o=0;o<r;o++){let a=e.charCodeAt(o);if(a===_t)s++;else if(a===Xe){if(s--,s<0&&n){yield e.slice(i,o);return}}else a===mt&&s===0&&(yield e.slice(i,o),i=o+1)}yield e.slice(i)}_convertColonHostContext(e){let n=[];for(let r of this._splitOnTopLevelCommas(e,!1))n.push(this._convertColonHostContextInSelectorPart(r));return n.join(",")}_convertColonHostContextInSelectorPart(e){return e.replace(xT,(n,r)=>{let s=[[]],i=n.indexOf(js);for(;i!==-1;){let o=n.substring(i+js.length);if(!o||o[0]!=="("){n=o,i=n.indexOf(js);continue}let a=[],c=0;for(let f of this._splitOnTopLevelCommas(o.substring(1),!0)){c=c+f.length+1;let h=f.trim();h&&a.push(h)}let u=s.length;KT(s,a.length);for(let f=0;f<a.length;f++)for(let h=0;h<u;h++)s[h+f*u].push(a[f]);n=o.substring(c+1),i=n.indexOf(js)}return s.map(o=>zT(o,n,r)).join(", ")})}_scopeSelectors(e,n,r){return Ma(e,s=>{let i=s.selector,o=s.content;if(s.selector[0]!=="@"){if(s.isBlock){let c=i.split(Vf).some(u=>IT.test(u));i=this._scopeSelector({selector:i,scopeSelector:n,hostSelector:r,isParentSelector:!0}),o=!c&&s.content.includes("{")?this._scopeSelectors(s.content,n,r):this._stripScopingSelectors(s.content)}}else yT.some(a=>s.selector.startsWith(a))?o=this._scopeSelectors(s.content,n,r):(s.selector.startsWith("@font-face")||s.selector.startsWith("@page"))&&(o=this._stripScopingSelectors(s.content));return new Yo(i,o,s.isBlock)})}_stripScopingSelectors(e){return Ma(e,n=>{let r=n.selector.replace(Bu," ").replace(Oc," ");return new Yo(r,n.content,n.isBlock)})}_scopeSelector({selector:e,scopeSelector:n,hostSelector:r,isParentSelector:s=!1}){return e.split(Vf).map(i=>i.split(Bu)).map(i=>{let[o,...a]=i;return[(u=>this._selectorNeedsScoping(u,n)?this._applySelectorScope({selector:u,scopeSelector:n,hostSelector:r,isParentSelector:s}):u)(o),...a].join(" ")}).join(", ")}_selectorNeedsScoping(e,n){return!this._makeScopeMatcher(n).test(e)}_makeScopeMatcher(e){let n=/\[/g,r=/\]/g;return e=e.replace(n,"\\[").replace(r,"\\]"),new RegExp("^("+e+")"+AT,"m")}_applySimpleSelectorScope(e,n,r){if(Zs.lastIndex=0,Zs.test(e)){let s=`[${r}]`,i=e;for(;i.match(Oc);)i=i.replace(Oc,(o,a)=>a.replace(/([^:\)]*)(:*)(.*)/,(c,u,f,h)=>u+s+f+h));return i.replace(Zs,s)}return n+" "+e}_applySelectorScope({selector:e,scopeSelector:n,hostSelector:r,isParentSelector:s}){var E;let i=/\[is=([^\]]*)\]/g;n=n.replace(i,(w,...A)=>A[0]);let o=`[${n}]`,a=w=>{let A=w.trim();if(!A||A==="&")return w;if(w.includes(Sr)){if(A=this._applySimpleSelectorScope(w,n,r),!w.match(NT)){let[k,_,H,q]=A.match(/([^:]*)(:*)([\s\S]*)/);A=_+o+H+q}}else{let k=w.replace(Zs,"");if(k.length>0){let _=k.match(/([^:]*)(:*)([\s\S]*)/);_&&(A=_[1]+o+_[2]+_[3])}}return A},c=w=>{let A="",k=[],_;for(;(_=eo.exec(w))!==null;){let H=1,q=eo.lastIndex;for(;q<w.length;){let te=w[q];if(q++,te==="("){H++;continue}if(te===")"){if(H--,H===0)break;continue}}k.push(`${_[0]}${w.slice(eo.lastIndex,q)}`),eo.lastIndex=q}return k.join("")===w?A=k.map(H=>{var Ee;let[q]=(Ee=H.match(eo))!=null?Ee:[],te=H.slice(q==null?void 0:q.length,-1);te.includes(Sr)&&(this._shouldScopeIndicator=!0);let Se=this._scopeSelector({selector:te,scopeSelector:n,hostSelector:r});return`${q}${Se})`}).join(""):(this._shouldScopeIndicator=this._shouldScopeIndicator||w.includes(Sr),A=this._shouldScopeIndicator?a(w):w),A};s&&(this._safeSelector=new Ou(e),e=this._safeSelector.content());let u="",f=0,h,p=/( |>|\+|~(?!=))(?!([^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\)))\s*/g,g=e.includes(Sr);for((s||this._shouldScopeIndicator)&&(this._shouldScopeIndicator=!g);(h=p.exec(e))!==null;){let w=h[1],A=e.slice(f,h.index);if(A.match(/__esc-ph-(\d+)__/)&&((E=e[h.index+1])!=null&&E.match(/[a-fA-F\d]/)))continue;let k=c(A);u+=`${k} ${w} `,f=p.lastIndex}let y=e.substring(f);return u+=c(y),this._safeSelector.restore(u)}_insertPolyfillHostInCssText(e){return e.replace(DT,js).replace(bT,yl)}},Ou=class{constructor(e){l(this,"placeholders",[]);l(this,"index",0);l(this,"_content");e=this._escapeRegexMatches(e,/(\[[^\]]*\])/g),e=e.replace(/(\\.)/g,(n,r)=>{let s=`__esc-ph-${this.index}__`;return this.placeholders.push(r),this.index++,s}),this._content=e.replace(wT,(n,r,s)=>{let i=`__ph-${this.index}__`;return this.placeholders.push(`(${s})`),this.index++,r+i})}restore(e){return e.replace(/__(?:ph|esc-ph)-(\d+)__/g,(n,r)=>this.placeholders[+r])}content(){return this._content}_escapeRegexMatches(e,n){return e.replace(n,(r,s)=>{let i=`__ph-${this.index}__`;return this.placeholders.push(s),this.index++,i})}},vT="(:(where|is)\\()?",eo=/:(where|is)\(/gi,yl="-shadowcsshost",js="-shadowcsscontext",Fu="[^)(]*",ST=String.raw`(?:\(${Fu}\)|${Fu})+?`,ET=String.raw`(?:\(${ST}\)|${Fu})+?`,jp=String.raw`(?:\((${ET})\))`,wT=new RegExp(String.raw`(:nth-[-\w]+)`+jp,"g"),TT=new RegExp(yl+jp+"?([^,{]*)","gim"),CT=js+jp+"([^{]*)",xT=new RegExp(`${vT}(${CT})`,"gim"),Sr=yl+"-no-combinator",NT=new RegExp(`${Sr}(?![^(]*\\))`,"g"),Oc=/-shadowcsshost-no-combinator([^\s,]*)/,Bu=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,IT=new RegExp(Bu.source),Vf=/ ?,(?!(?:[^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\))) ?/,AT="([>\\s~+[.,{:][\\s\\S]*)?$",Zs=/-shadowcsshost/gim,bT=/:host(?!\-context)/gim,DT=/:host-context(?=\(\s*[^)\s])/gim,kT=/\r?\n/g,_T=/\/\*[\s\S]*?\*\//g,RT=/\/\*\s*#\s*source(Mapping)?URL=/g,zp="%COMMENT%",PT=new RegExp(zp,"g"),Fc="%BLOCK%",LT=new RegExp(`(\\s*(?:${zp}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;)|$)`,"g"),MT=new Map([["{","}"]]),cg="%COMMA_IN_PLACEHOLDER%",ug="%SEMI_IN_PLACEHOLDER%",pg="%COLON_IN_PLACEHOLDER%",hg="%LBRACE_IN_PLACEHOLDER%",fg="%RBRACE_IN_PLACEHOLDER%",OT=new RegExp(cg,"g"),FT=new RegExp(ug,"g"),BT=new RegExp(pg,"g"),$T=new RegExp(hg,"g"),UT=new RegExp(fg,"g"),VT=/(var\(\s*|@property\s+)?(--(?:[a-zA-Z0-9_-]|[^\x00-\x7F])+)(\s*:)?/g;function GT(t){return t.replace(VT,(e,n,r,s)=>!n&&!s?e:(n!=null?n:"")+Op(r)+(s!=null?s:""))}var Yo=class{constructor(e,n,r){l(this,"selector");l(this,"content");l(this,"isBlock");this.selector=e,this.content=n,this.isBlock=r}};function Ma(t,e){let n=WT(t),r=HT(n,MT,Fc),s=0,i=r.escapedString.replace(LT,(...o)=>{let a=o[2],c="",u=o[4],f="",h=!1;u&&u.startsWith("{"+Fc)&&(c=r.blocks[s++],u=u.substring(Fc.length+1),f="{",h=!0);let p=e(new Yo(a,c,h));return`${o[1]}${p.selector}${o[3]}${f}${p.content}${u}`});return jT(i)}var $u=class{constructor(e,n){l(this,"escapedString");l(this,"blocks");this.escapedString=e,this.blocks=n}};function HT(t,e,n){let r=[],s=[],i=0,o=0,a=-1,c,u;for(let f=0;f<t.length;f++){let h=t[f];h==="\\"?f++:h===u?(i--,i===0&&(s.push(t.substring(a,f)),r.push(n),o=f,a=-1,c=u=void 0)):h===c?i++:i===0&&e.has(h)&&(c=h,u=e.get(h),i=1,a=f+1,r.push(t.substring(o,a)))}return a!==-1?(s.push(t.substring(a)),r.push(n)):r.push(t.substring(o)),new $u(r.join(""),s)}var qT={";":ug,",":cg,":":pg,"{":hg,"}":fg};function WT(t){let e=t,n=null;for(let r=0;r<e.length;r++){let s=e[r];if(s==="\\")r++;else if(n!==null)if(s===n)n=null;else{let i=qT[s];i&&(e=`${e.substr(0,r)}${i}${e.substr(r+1)}`,r+=i.length-1)}else(s==="'"||s==='"')&&(n=s)}return e}function jT(t){let e=t.replace(OT,",");return e=e.replace(FT,";"),e=e.replace(BT,":"),e=e.replace($T,"{"),e=e.replace(UT,"}"),e}function Gf(t,e){return e?t.replace(/((?:^|[^\\])(?:\\\\)*)\\(?=['"])/g,"$1"):t}function zT(t,e,n=""){let r=Sr;Zs.lastIndex=0;let s=Zs.test(e);if(t.length===0)return r+e;let i=[t.pop()||""];for(;t.length>0;){let o=i.length,a=t.pop();for(let c=0;c<o;c++){let u=i[c];i[o*2+c]=u+" "+a,i[o+c]=a+" "+u,i[c]=a+u}}return i.map(o=>s?`${n}${o}${e}`:`${n}${o}${r}${e}, ${n}${o} ${r}${e}`).join(",")}function KT(t,e){let n=t.length;for(let r=1;r<e;r++)for(let s=0;s<n;s++)t[s+r*n]=t[s].slice(0)}var d;(function(t){t[t.ListEnd=0]="ListEnd",t[t.Statement=1]="Statement",t[t.Variable=2]="Variable",t[t.ElementStart=3]="ElementStart",t[t.Element=4]="Element",t[t.ForeignComponent=5]="ForeignComponent",t[t.Template=6]="Template",t[t.ElementEnd=7]="ElementEnd",t[t.ContainerStart=8]="ContainerStart",t[t.Container=9]="Container",t[t.ContainerEnd=10]="ContainerEnd",t[t.DisableBindings=11]="DisableBindings",t[t.ConditionalCreate=12]="ConditionalCreate",t[t.ConditionalBranchCreate=13]="ConditionalBranchCreate",t[t.Conditional=14]="Conditional",t[t.BoundaryCreate=15]="BoundaryCreate",t[t.BoundaryErrorCreate=16]="BoundaryErrorCreate",t[t.Boundary=17]="Boundary",t[t.EnableBindings=18]="EnableBindings",t[t.Text=19]="Text",t[t.Listener=20]="Listener",t[t.InterpolateText=21]="InterpolateText",t[t.Binding=22]="Binding",t[t.Property=23]="Property",t[t.StyleProp=24]="StyleProp",t[t.ClassProp=25]="ClassProp",t[t.StyleMap=26]="StyleMap",t[t.ClassMap=27]="ClassMap",t[t.Advance=28]="Advance",t[t.Pipe=29]="Pipe",t[t.Attribute=30]="Attribute",t[t.ExtractedAttribute=31]="ExtractedAttribute",t[t.Defer=32]="Defer",t[t.DeferOn=33]="DeferOn",t[t.DeferWhen=34]="DeferWhen",t[t.I18nMessage=35]="I18nMessage",t[t.DomProperty=36]="DomProperty",t[t.Namespace=37]="Namespace",t[t.ProjectionDef=38]="ProjectionDef",t[t.EnableIncrementalHydrationRuntime=39]="EnableIncrementalHydrationRuntime",t[t.Projection=40]="Projection",t[t.Content=41]="Content",t[t.RepeaterCreate=42]="RepeaterCreate",t[t.Repeater=43]="Repeater",t[t.TwoWayProperty=44]="TwoWayProperty",t[t.TwoWayListener=45]="TwoWayListener",t[t.DeclareLet=46]="DeclareLet",t[t.StoreLet=47]="StoreLet",t[t.I18nStart=48]="I18nStart",t[t.I18n=49]="I18n",t[t.I18nEnd=50]="I18nEnd",t[t.I18nExpression=51]="I18nExpression",t[t.I18nApply=52]="I18nApply",t[t.IcuStart=53]="IcuStart",t[t.IcuEnd=54]="IcuEnd",t[t.IcuPlaceholder=55]="IcuPlaceholder",t[t.I18nContext=56]="I18nContext",t[t.I18nAttributes=57]="I18nAttributes",t[t.SourceLocation=58]="SourceLocation",t[t.Animation=59]="Animation",t[t.AnimationString=60]="AnimationString",t[t.AnimationBinding=61]="AnimationBinding",t[t.AnimationListener=62]="AnimationListener",t[t.Control=63]="Control",t[t.ControlCreate=64]="ControlCreate"})(d||(d={}));var F;(function(t){t[t.LexicalRead=0]="LexicalRead",t[t.Context=1]="Context",t[t.TrackContext=2]="TrackContext",t[t.ReadVariable=3]="ReadVariable",t[t.NextContext=4]="NextContext",t[t.Reference=5]="Reference",t[t.StoreLet=6]="StoreLet",t[t.ContextLetReference=7]="ContextLetReference",t[t.BoundaryState=8]="BoundaryState",t[t.GetCurrentView=9]="GetCurrentView",t[t.RestoreView=10]="RestoreView",t[t.ResetView=11]="ResetView",t[t.PureFunctionExpr=12]="PureFunctionExpr",t[t.PureFunctionParameterExpr=13]="PureFunctionParameterExpr",t[t.PipeBinding=14]="PipeBinding",t[t.PipeBindingVariadic=15]="PipeBindingVariadic",t[t.SafePropertyRead=16]="SafePropertyRead",t[t.SafeKeyedRead=17]="SafeKeyedRead",t[t.SafeNavigationMigration=18]="SafeNavigationMigration",t[t.SafeTernaryExpr=19]="SafeTernaryExpr",t[t.EmptyExpr=20]="EmptyExpr",t[t.AssignTemporaryExpr=21]="AssignTemporaryExpr",t[t.ReadTemporaryExpr=22]="ReadTemporaryExpr",t[t.SlotLiteralExpr=23]="SlotLiteralExpr",t[t.ConditionalCase=24]="ConditionalCase",t[t.ConstCollected=25]="ConstCollected",t[t.TwoWayBindingSet=26]="TwoWayBindingSet",t[t.ForeignContent=27]="ForeignContent",t[t.ArrowFunction=28]="ArrowFunction"})(F||(F={}));var kt;(function(t){t[t.None=0]="None",t[t.AlwaysInline=1]="AlwaysInline"})(kt||(kt={}));var Te;(function(t){t[t.Context=0]="Context",t[t.Identifier=1]="Identifier",t[t.SavedView=2]="SavedView",t[t.Alias=3]="Alias",t[t.BoundaryState=4]="BoundaryState"})(Te||(Te={}));var O;(function(t){t[t.Attribute=0]="Attribute",t[t.ClassName=1]="ClassName",t[t.StyleProperty=2]="StyleProperty",t[t.Property=3]="Property",t[t.Template=4]="Template",t[t.I18n=5]="I18n",t[t.LegacyAnimation=6]="LegacyAnimation",t[t.TwoWayProperty=7]="TwoWayProperty",t[t.Animation=8]="Animation"})(O||(O={}));var Ii;(function(t){t[t.Creation=0]="Creation",t[t.Postproccessing=1]="Postproccessing"})(Ii||(Ii={}));var ks;(function(t){t[t.I18nText=0]="I18nText",t[t.I18nAttribute=1]="I18nAttribute"})(ks||(ks={}));var he;(function(t){t[t.None=0]="None",t[t.ElementTag=1]="ElementTag",t[t.TemplateTag=2]="TemplateTag",t[t.OpenTag=4]="OpenTag",t[t.CloseTag=8]="CloseTag",t[t.ExpressionIndex=16]="ExpressionIndex"})(he||(he={}));var Ie;(function(t){t[t.HTML=0]="HTML",t[t.SVG=1]="SVG",t[t.Math=2]="Math"})(Ie||(Ie={}));var ue;(function(t){t[t.Idle=0]="Idle",t[t.Immediate=1]="Immediate",t[t.Timer=2]="Timer",t[t.Hover=3]="Hover",t[t.Interaction=4]="Interaction",t[t.Viewport=5]="Viewport",t[t.Never=6]="Never"})(ue||(ue={}));var Cr;(function(t){t[t.RootI18n=0]="RootI18n",t[t.Icu=1]="Icu",t[t.Attr=2]="Attr"})(Cr||(Cr={}));var nt;(function(t){t[t.NgTemplate=0]="NgTemplate",t[t.Structural=1]="Structural",t[t.Block=2]="Block"})(nt||(nt={}));var me=class me{constructor(){l(this,"debugListId",me.nextListId++);l(this,"head",{kind:d.ListEnd,next:null,prev:null,debugListId:this.debugListId});l(this,"tail",{kind:d.ListEnd,next:null,prev:null,debugListId:this.debugListId});this.head.next=this.tail,this.tail.prev=this.head}push(e){if(Array.isArray(e)){for(let r of e)this.push(r);return}me.assertIsNotEnd(e),me.assertIsUnowned(e),e.debugListId=this.debugListId;let n=this.tail.prev;e.prev=n,n.next=e,e.next=this.tail,this.tail.prev=e}prepend(e){if(e.length===0)return;for(let s of e)me.assertIsNotEnd(s),me.assertIsUnowned(s),s.debugListId=this.debugListId;let n=this.head.next,r=this.head;for(let s of e)r.next=s,s.prev=r,r=s;r.next=n,n.prev=r}*[Symbol.iterator](){let e=this.head.next;for(;e!==this.tail;){me.assertIsOwned(e,this.debugListId);let n=e.next;yield e,e=n}}*reversed(){let e=this.tail.prev;for(;e!==this.head;){me.assertIsOwned(e,this.debugListId);let n=e.prev;yield e,e=n}}static replace(e,n){me.assertIsNotEnd(e),me.assertIsNotEnd(n),me.assertIsOwned(e),me.assertIsUnowned(n),n.debugListId=e.debugListId,e.prev!==null&&(e.prev.next=n,n.prev=e.prev),e.next!==null&&(e.next.prev=n,n.next=e.next),e.debugListId=null,e.prev=null,e.next=null}static replaceWithMany(e,n){if(n.length===0){me.remove(e);return}me.assertIsNotEnd(e),me.assertIsOwned(e);let r=e.debugListId;e.debugListId=null;for(let u of n)me.assertIsNotEnd(u),me.assertIsUnowned(u);let{prev:s,next:i}=e;e.prev=null,e.next=null;let o=s;for(let u of n)me.assertIsUnowned(u),u.debugListId=r,o.next=u,u.prev=o,u.next=null,o=u;let a=n[0],c=o;s!==null&&(s.next=a,a.prev=s),i!==null&&(i.prev=c,c.next=i)}static remove(e){me.assertIsNotEnd(e),me.assertIsOwned(e),e.prev.next=e.next,e.next.prev=e.prev,e.debugListId=null,e.prev=null,e.next=null}static insertBefore(e,n){if(Array.isArray(e)){for(let r of e)me.insertBefore(r,n);return}if(me.assertIsOwned(n),n.prev===null)throw new Error("AssertionError: illegal operation on list start");me.assertIsNotEnd(e),me.assertIsUnowned(e),e.debugListId=n.debugListId,e.prev=null,n.prev.next=e,e.prev=n.prev,e.next=n,n.prev=e}static insertAfter(e,n){if(me.assertIsOwned(n),n.next===null)throw new Error("AssertionError: illegal operation on list end");me.assertIsNotEnd(e),me.assertIsUnowned(e),e.debugListId=n.debugListId,n.next.prev=e,e.next=n.next,e.prev=n,n.next=e}static assertIsUnowned(e){if(e.debugListId!==null)throw new Error(`AssertionError: illegal operation on owned node: ${d[e.kind]}`)}static assertIsOwned(e,n){if(e.debugListId===null)throw new Error(`AssertionError: illegal operation on unowned node: ${d[e.kind]}`);if(n!==void 0&&e.debugListId!==n)throw new Error(`AssertionError: node belongs to the wrong list (expected ${n}, actual ${e.debugListId})`)}static assertIsNotEnd(e){if(e.kind===d.ListEnd)throw new Error("AssertionError: illegal operation on list head or tail")}};l(me,"nextListId",0);var x=me;function Jt(t){return C({kind:d.Statement,statement:t},W)}function In(t,e,n,r){return C({kind:d.Variable,xref:t,variable:e,initializer:n,flags:r},W)}var W={debugListId:null,prev:null,next:null},dg=Symbol("ConsumesSlot"),Kp=Symbol("DependsOnSlotContext"),Fs=Symbol("ConsumesVars"),Ta=Symbol("UsesVarOffset"),Lt={[dg]:!0,numSlotsUsed:1},Mt={[Kp]:!0},Ot={[Fs]:!0};function Oi(t){return t[dg]===!0}function Qo(t){return t[Kp]===!0}function Bc(t){return t[Fs]===!0}function Hf(t){return t[Ta]===!0}function XT(t,e,n){return C(C(C({kind:d.InterpolateText,target:t,interpolation:e,sourceSpan:n},Mt),Ot),W)}var Me=class{constructor(e,n,r){l(this,"strings");l(this,"expressions");l(this,"i18nPlaceholders");if(this.strings=e,this.expressions=n,this.i18nPlaceholders=r,r.length!==0&&r.length!==n.length)throw new Error(`Expected ${n.length} placeholders to match interpolation expression count, but got ${r.length}`)}};function _s(t,e,n,r,s,i,o,a,c,u,f){return C({kind:d.Binding,bindingKind:e,target:t,name:n,expression:r,unit:s,securityContext:i,isTextAttribute:o,isStructuralTemplateAttribute:a,templateKind:c,i18nContext:null,i18nMessage:u,sourceSpan:f},W)}function YT(t,e,n,r,s,i,o,a,c,u){return C(C(C({kind:d.Property,target:t,name:e,expression:n,bindingKind:r,securityContext:s,sanitizer:null,isStructuralTemplateAttribute:i,templateKind:o,i18nContext:a,i18nMessage:c,sourceSpan:u},Mt),Ot),W)}function QT(t,e,n,r,s,i,o,a,c){return C(C(C({kind:d.TwoWayProperty,target:t,name:e,expression:n,securityContext:r,sanitizer:null,isStructuralTemplateAttribute:s,templateKind:i,i18nContext:o,i18nMessage:a,sourceSpan:c},Mt),Ot),W)}function JT(t,e,n,r,s){return C(C(C({kind:d.StyleProp,target:t,name:e,expression:n,unit:r,sourceSpan:s},Mt),Ot),W)}function ZT(t,e,n,r){return C(C(C({kind:d.ClassProp,target:t,name:e,expression:n,sourceSpan:r},Mt),Ot),W)}function eC(t,e,n){return C(C(C({kind:d.StyleMap,target:t,expression:e,sourceSpan:n},Mt),Ot),W)}function tC(t,e,n){return C(C(C({kind:d.ClassMap,target:t,expression:e,sourceSpan:n},Mt),Ot),W)}function qf(t,e,n,r,s,i,o,a,c,u){return C(C(C({kind:d.Attribute,target:t,namespace:e,name:n,expression:r,securityContext:s,sanitizer:null,isTextAttribute:i,isStructuralTemplateAttribute:o,templateKind:a,i18nContext:null,i18nMessage:c,sourceSpan:u},Mt),Ot),W)}function nC(t,e){return C({kind:d.Advance,delta:t,sourceSpan:e},W)}function mg(t,e,n,r){return C(C(C({kind:d.Conditional,target:t,test:e,conditions:n,processed:null,sourceSpan:r,contextValue:null},W),Mt),Ot)}function rC(t,e,n,r,s,i){return C(C(C({kind:d.Boundary,target:t,targetSlot:e,primaryTarget:n,guarded:r,conditions:s,processed:null,sourceSpan:i},W),Mt),Ot)}function sC(t,e,n,r){return C(C({kind:d.Repeater,target:t,targetSlot:e,collection:n,sourceSpan:r},W),Mt)}function Wf(t,e,n,r,s,i,o){return C({kind:d.AnimationBinding,name:t,target:e,animationKind:n,expression:r,i18nMessage:null,securityContext:s,sanitizer:null,sourceSpan:i,animationBindingKind:o},W)}function iC(t,e,n,r){return C(C(C({kind:d.DeferWhen,target:t,expr:e,modifier:n,sourceSpan:r},W),Mt),Ot)}function gg(t,e,n,r,s,i,o,a,c,u,f){return C(C(C({kind:d.I18nExpression,context:t,target:e,i18nOwner:n,handle:r,expression:s,icuPlaceholder:i,i18nPlaceholder:o,resolutionTime:a,usage:c,name:u,sourceSpan:f},W),Ot),Mt)}function oC(t,e,n){return C({kind:d.I18nApply,owner:t,handle:e,sourceSpan:n},W)}function aC(t,e,n,r){return C(C(C({kind:d.StoreLet,target:t,declaredName:e,value:n,sourceSpan:r},Mt),Ot),W)}function lC(t,e){return C(C({kind:d.Control,sourceSpan:e,target:t},Mt),W)}function $n(t){return t instanceof ce}var ce=class extends ae{constructor(e=null){super(null,e)}},Qe=class t extends ce{constructor(n){super();l(this,"name");l(this,"kind",F.LexicalRead);this.name=n}visitExpression(n,r){}isEquivalent(n){return this.name===n.name}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.name)}},vl=class t extends ce{constructor(n,r,s){super();l(this,"target");l(this,"targetSlot");l(this,"offset");l(this,"kind",F.Reference);this.target=n,this.targetSlot=r,this.offset=s}visitExpression(){}isEquivalent(n){return n instanceof t&&n.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.target,this.targetSlot,this.offset)}},Uu=class t extends ce{constructor(n,r,s){super();l(this,"childrenViewXref");l(this,"childrenViewHandle");l(this,"foreignComponentConstIndex");l(this,"kind",F.ForeignContent);this.childrenViewXref=n,this.childrenViewHandle=r,this.foreignComponentConstIndex=s}visitExpression(){}isEquivalent(n){return n instanceof t&&n.childrenViewXref===this.childrenViewXref&&n.foreignComponentConstIndex===this.foreignComponentConstIndex}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.childrenViewXref,this.childrenViewHandle,this.foreignComponentConstIndex)}},Jo=class t extends ce{constructor(n){super();l(this,"xref");l(this,"kind",F.BoundaryState);l(this,"name",null);this.xref=n}visitExpression(){}isEquivalent(n){return n instanceof t&&n.xref===this.xref}isConstant(){return!1}transformInternalExpressions(){}clone(){let n=new t(this.xref);return n.name=this.name,n}},fm,dm,mm,Zo=class t extends(mm=ce,dm=Fs,fm=Kp,mm){constructor(n,r,s){super();l(this,"target");l(this,"value");l(this,"sourceSpan");l(this,"kind",F.StoreLet);l(this,dm,!0);l(this,fm,!0);this.target=n,this.value=r,this.sourceSpan=s}visitExpression(){}isEquivalent(n){return n instanceof t&&n.target===this.target&&n.value.isEquivalent(this.value)}isConstant(){return!1}transformInternalExpressions(n,r){this.value=P(this.value,n,r)}clone(){return new t(this.target,this.value,this.sourceSpan)}},ea=class t extends ce{constructor(n,r){super();l(this,"target");l(this,"targetSlot");l(this,"kind",F.ContextLetReference);this.target=n,this.targetSlot=r}visitExpression(){}isEquivalent(n){return n instanceof t&&n.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.target,this.targetSlot)}},or=class t extends ce{constructor(n){super();l(this,"view");l(this,"kind",F.Context);this.view=n}visitExpression(){}isEquivalent(n){return n instanceof t&&n.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.view)}},Vu=class t extends ce{constructor(n){super();l(this,"view");l(this,"kind",F.TrackContext);this.view=n}visitExpression(){}isEquivalent(n){return n instanceof t&&n.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.view)}},Sl=class t extends ce{constructor(){super(...arguments);l(this,"kind",F.NextContext);l(this,"steps",1)}visitExpression(){}isEquivalent(n){return n instanceof t&&n.steps===this.steps}isConstant(){return!1}transformInternalExpressions(){}clone(){let n=new t;return n.steps=this.steps,n}},Gu=class t extends ce{constructor(){super();l(this,"kind",F.GetCurrentView)}visitExpression(){}isEquivalent(n){return n instanceof t}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t}},ta=class t extends ce{constructor(n){super();l(this,"view");l(this,"kind",F.RestoreView);this.view=n}visitExpression(n,r){typeof this.view!="number"&&this.view.visitExpression(n,r)}isEquivalent(n){return!(n instanceof t)||typeof n.view!=typeof this.view?!1:typeof this.view=="number"?this.view===n.view:this.view.isEquivalent(n.view)}isConstant(){return!1}transformInternalExpressions(n,r){typeof this.view!="number"&&(this.view=P(this.view,n,r))}clone(){return new t(this.view instanceof ae?this.view.clone():this.view)}},El=class t extends ce{constructor(n){super();l(this,"expr");l(this,"kind",F.ResetView);this.expr=n}visitExpression(n,r){this.expr.visitExpression(n,r)}isEquivalent(n){return n instanceof t&&this.expr.isEquivalent(n.expr)}isConstant(){return!1}transformInternalExpressions(n,r){this.expr=P(this.expr,n,r)}clone(){return new t(this.expr.clone())}},wl=class t extends ce{constructor(n,r){super();l(this,"target");l(this,"value");l(this,"kind",F.TwoWayBindingSet);this.target=n,this.value=r}visitExpression(n,r){this.target.visitExpression(n,r),this.value.visitExpression(n,r)}isEquivalent(n){return this.target.isEquivalent(n.target)&&this.value.isEquivalent(n.value)}isConstant(){return!1}transformInternalExpressions(n,r){this.target=P(this.target,n,r),this.value=P(this.value,n,r)}clone(){return new t(this.target,this.value)}},vn=class t extends ce{constructor(n){super();l(this,"xref");l(this,"kind",F.ReadVariable);l(this,"name",null);this.xref=n}visitExpression(){}isEquivalent(n){return n instanceof t&&n.xref===this.xref}isConstant(){return!1}transformInternalExpressions(){}clone(){let n=new t(this.xref);return n.name=this.name,n}},gm,ym,vm,Rs=class t extends(vm=ce,ym=Fs,gm=Ta,vm){constructor(n,r){super();l(this,"kind",F.PureFunctionExpr);l(this,ym,!0);l(this,gm,!0);l(this,"varOffset",null);l(this,"body");l(this,"args");l(this,"fn",null);this.body=n,this.args=r}visitExpression(n,r){var s;(s=this.body)==null||s.visitExpression(n,r);for(let i of this.args)i.visitExpression(n,r)}isEquivalent(n){return!(n instanceof t)||n.args.length!==this.args.length?!1:n.body!==null&&this.body!==null&&n.body.isEquivalent(this.body)&&n.args.every((r,s)=>r.isEquivalent(this.args[s]))}isConstant(){return!1}transformInternalExpressions(n,r){this.body!==null?this.body=P(this.body,n,r|Y.InChildOperation):this.fn!==null&&(this.fn=P(this.fn,n,r));for(let s=0;s<this.args.length;s++)this.args[s]=P(this.args[s],n,r)}clone(){var r,s,i,o;let n=new t((s=(r=this.body)==null?void 0:r.clone())!=null?s:null,this.args.map(a=>a.clone()));return n.fn=(o=(i=this.fn)==null?void 0:i.clone())!=null?o:null,n.varOffset=this.varOffset,n}},Hr=class t extends ce{constructor(n){super();l(this,"index");l(this,"kind",F.PureFunctionParameterExpr);this.index=n}visitExpression(){}isEquivalent(n){return n instanceof t&&n.index===this.index}isConstant(){return!0}transformInternalExpressions(){}clone(){return new t(this.index)}},Sm,Em,wm,Ps=class t extends(wm=ce,Em=Fs,Sm=Ta,wm){constructor(n,r,s,i){super();l(this,"target");l(this,"targetSlot");l(this,"name");l(this,"args");l(this,"kind",F.PipeBinding);l(this,Em,!0);l(this,Sm,!0);l(this,"varOffset",null);this.target=n,this.targetSlot=r,this.name=s,this.args=i}visitExpression(n,r){for(let s of this.args)s.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){for(let s=0;s<this.args.length;s++)this.args[s]=P(this.args[s],n,r)}clone(){let n=new t(this.target,this.targetSlot,this.name,this.args.map(r=>r.clone()));return n.varOffset=this.varOffset,n}},Tm,Cm,xm,na=class t extends(xm=ce,Cm=Fs,Tm=Ta,xm){constructor(n,r,s,i,o){super();l(this,"target");l(this,"targetSlot");l(this,"name");l(this,"args");l(this,"numArgs");l(this,"kind",F.PipeBindingVariadic);l(this,Cm,!0);l(this,Tm,!0);l(this,"varOffset",null);this.target=n,this.targetSlot=r,this.name=s,this.args=i,this.numArgs=o}visitExpression(n,r){this.args.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){this.args=P(this.args,n,r)}clone(){let n=new t(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return n.varOffset=this.varOffset,n}},hs=class t extends ce{constructor(n,r){super();l(this,"receiver");l(this,"name");l(this,"kind",F.SafePropertyRead);this.receiver=n,this.name=r}get index(){return this.name}visitExpression(n,r){this.receiver.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){this.receiver=P(this.receiver,n,r)}clone(){return new t(this.receiver.clone(),this.name)}},fs=class t extends ce{constructor(n,r,s){super(s);l(this,"receiver");l(this,"index");l(this,"kind",F.SafeKeyedRead);this.receiver=n,this.index=r}visitExpression(n,r){this.receiver.visitExpression(n,r),this.index.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){this.receiver=P(this.receiver,n,r),this.index=P(this.index,n,r)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.sourceSpan)}},ra=class t extends ce{constructor(n){super();l(this,"expr");l(this,"kind",F.SafeNavigationMigration);this.expr=n}visitExpression(n,r){this.expr.visitExpression(n,r)}isEquivalent(n){return n instanceof t&&this.expr.isEquivalent(n.expr)}isConstant(){return this.expr.isConstant()}transformInternalExpressions(n,r){this.expr=P(this.expr,n,r|Y.InSafeNavigationMigration)}clone(){return new t(this.expr.clone())}},Ai=class t extends ce{constructor(n,r){super();l(this,"guard");l(this,"expr");l(this,"kind",F.SafeTernaryExpr);this.guard=n,this.expr=r}visitExpression(n,r){this.guard.visitExpression(n,r),this.expr.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){this.guard=P(this.guard,n,r),this.expr=P(this.expr,n,r)}clone(){return new t(this.guard.clone(),this.expr.clone())}},sa=class t extends ce{constructor(){super(...arguments);l(this,"kind",F.EmptyExpr)}visitExpression(n,r){}isEquivalent(n){return n instanceof t}isConstant(){return!0}clone(){return new t}transformInternalExpressions(){}},Un=class t extends ce{constructor(n,r){super();l(this,"expr");l(this,"xref");l(this,"kind",F.AssignTemporaryExpr);l(this,"name",null);this.expr=n,this.xref=r}visitExpression(n,r){this.expr.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){this.expr=P(this.expr,n,r)}clone(){let n=new t(this.expr.clone(),this.xref);return n.name=this.name,n}},qr=class t extends ce{constructor(n){super();l(this,"xref");l(this,"kind",F.ReadTemporaryExpr);l(this,"name",null);this.xref=n}visitExpression(n,r){}isEquivalent(){return this.xref===this.xref}isConstant(){return!1}transformInternalExpressions(n,r){}clone(){let n=new t(this.xref);return n.name=this.name,n}},Nr=class t extends ce{constructor(n){super();l(this,"slot");l(this,"kind",F.SlotLiteralExpr);this.slot=n}visitExpression(n,r){}isEquivalent(n){return n instanceof t&&n.slot===this.slot}isConstant(){return!0}clone(){return new t(this.slot)}transformInternalExpressions(){}},bi=class t extends ce{constructor(n,r,s,i=null){super();l(this,"expr");l(this,"target");l(this,"targetSlot");l(this,"alias");l(this,"kind",F.ConditionalCase);this.expr=n,this.target=r,this.targetSlot=s,this.alias=i}visitExpression(n,r){this.expr!==null&&this.expr.visitExpression(n,r)}isEquivalent(n){return n instanceof t&&n.expr===this.expr}isConstant(){return!0}clone(){return new t(this.expr,this.target,this.targetSlot)}transformInternalExpressions(n,r){this.expr!==null&&(this.expr=P(this.expr,n,r))}},ia=class t extends ce{constructor(n){super();l(this,"expr");l(this,"kind",F.ConstCollected);this.expr=n}transformInternalExpressions(n,r){this.expr=n(this.expr,r)}visitExpression(n,r){this.expr.visitExpression(n,r)}isEquivalent(n){return n instanceof t?this.expr.isEquivalent(n.expr):!1}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr)}},Nm,Im,Am,Hu=class t extends(Am=ce,Im=Fs,Nm=Ta,Am){constructor(n,r){super();l(this,"parameters");l(this,"body");l(this,"kind",F.ArrowFunction);l(this,Im,!0);l(this,Nm,!0);l(this,"contextName",Qt);l(this,"currentViewName","view");l(this,"varOffset",null);l(this,"ops");this.parameters=n,this.body=r,this.ops=new x,this.ops.push([Jt(new Pe(r,r.sourceSpan))])}visitExpression(n,r){for(let s of this.ops)Ge(s,i=>{i.visitExpression(n,r)})}isEquivalent(n){return n instanceof t&&n.parameters.length===this.parameters.length&&n.parameters.every((r,s)=>r.isEquivalent(this.parameters[s]))&&n.body.isEquivalent(this.body)}isConstant(){return!1}transformInternalExpressions(n,r){for(let s of this.ops)Ce(s,n,r|(Y.InChildOperation|Y.InArrowFunctionOperation))}clone(){let n=new t(this.parameters,this.body);return n.varOffset=this.varOffset,n.ops=this.ops,n}};function Ge(t,e){Ce(t,(n,r)=>(e(n,r),n),Y.None)}var Y;(function(t){t[t.None=0]="None",t[t.InChildOperation=1]="InChildOperation",t[t.InArrowFunctionOperation=2]="InArrowFunctionOperation",t[t.InSafeNavigationMigration=4]="InSafeNavigationMigration"})(Y||(Y={}));function $c(t,e,n){for(let r=0;r<t.expressions.length;r++)t.expressions[r]=P(t.expressions[r],e,n)}function Ce(t,e,n){switch(t.kind){case d.StyleProp:case d.StyleMap:case d.ClassProp:case d.ClassMap:case d.AnimationString:case d.AnimationBinding:case d.Binding:t.expression instanceof Me?$c(t.expression,e,n):t.expression=P(t.expression,e,n);break;case d.Property:case d.DomProperty:case d.Attribute:t.expression instanceof Me?$c(t.expression,e,n):t.expression=P(t.expression,e,n),t.sanitizer=t.sanitizer&&P(t.sanitizer,e,n);break;case d.TwoWayProperty:t.expression=P(t.expression,e,n),t.sanitizer=t.sanitizer&&P(t.sanitizer,e,n);break;case d.I18nExpression:t.expression=P(t.expression,e,n);break;case d.InterpolateText:$c(t.interpolation,e,n);break;case d.Statement:oa(t.statement,e,n);break;case d.Variable:t.initializer=P(t.initializer,e,n);break;case d.Conditional:for(let r of t.conditions)r.expr!==null&&(r.expr=P(r.expr,e,n));t.processed!==null&&(t.processed=P(t.processed,e,n)),t.contextValue!==null&&(t.contextValue=P(t.contextValue,e,n));break;case d.Boundary:for(let r of t.conditions)r.expr!==null&&(r.expr=P(r.expr,e,n));t.processed!==null&&(t.processed=P(t.processed,e,n));break;case d.Animation:case d.AnimationListener:case d.Listener:case d.TwoWayListener:for(let r of t.handlerOps)Ce(r,e,n|Y.InChildOperation);break;case d.ExtractedAttribute:t.expression=t.expression&&P(t.expression,e,n),t.trustedValueFn=t.trustedValueFn&&P(t.trustedValueFn,e,n);break;case d.RepeaterCreate:if(t.trackByOps===null)t.track=P(t.track,e,n);else for(let r of t.trackByOps)Ce(r,e,n|Y.InChildOperation);t.trackByFn!==null&&(t.trackByFn=P(t.trackByFn,e,n));break;case d.Repeater:t.collection=P(t.collection,e,n);break;case d.Defer:t.loadingConfig!==null&&(t.loadingConfig=P(t.loadingConfig,e,n)),t.placeholderConfig!==null&&(t.placeholderConfig=P(t.placeholderConfig,e,n)),t.resolverFn!==null&&(t.resolverFn=P(t.resolverFn,e,n));break;case d.I18nMessage:for(let[r,s]of t.params)t.params.set(r,P(s,e,n));for(let[r,s]of t.postprocessingParams)t.postprocessingParams.set(r,P(s,e,n));break;case d.DeferWhen:t.expr=P(t.expr,e,n);break;case d.StoreLet:t.value=P(t.value,e,n);break;case d.ForeignComponent:for(let[r,s]of t.props)t.props.set(r,P(s,e,n));break;case d.Advance:case d.Container:case d.ContainerEnd:case d.ContainerStart:case d.DeferOn:case d.DisableBindings:case d.Element:case d.ElementEnd:case d.ElementStart:case d.EnableBindings:case d.I18n:case d.I18nApply:case d.I18nContext:case d.I18nEnd:case d.I18nStart:case d.IcuEnd:case d.IcuStart:case d.Namespace:case d.Pipe:case d.Projection:case d.ProjectionDef:case d.EnableIncrementalHydrationRuntime:case d.Template:case d.Content:case d.Text:case d.I18nAttributes:case d.IcuPlaceholder:case d.DeclareLet:case d.SourceLocation:case d.ConditionalCreate:case d.ConditionalBranchCreate:case d.Control:case d.ControlCreate:case d.BoundaryCreate:case d.BoundaryErrorCreate:break;default:throw new Error(`AssertionError: transformExpressionsInOp doesn't handle ${d[t.kind]}`)}}function P(t,e,n){if(t instanceof ce)t.transformInternalExpressions(e,n);else if(t instanceof oe)t.lhs=P(t.lhs,e,n),t.rhs=P(t.rhs,e,n);else if(t instanceof Mn)t.expr=P(t.expr,e,n);else if(t instanceof We)t.receiver=P(t.receiver,e,n);else if(t instanceof qt)t.receiver=P(t.receiver,e,n),t.index=P(t.index,e,n);else if(t instanceof Ae){t.fn=P(t.fn,e,n);for(let r=0;r<t.args.length;r++)t.args[r]=P(t.args[r],e,n)}else if(t instanceof Wt)for(let r=0;r<t.entries.length;r++)t.entries[r]=P(t.entries[r],e,n);else if(t instanceof un)for(let r of t.entries)r instanceof En?r.expression=P(r.expression,e,n):r.value=P(r.value,e,n);else if(t instanceof Ht)t.condition=P(t.condition,e,n),t.trueCase=P(t.trueCase,e,n),t.falseCase!==null&&(t.falseCase=P(t.falseCase,e,n));else if(t instanceof Qn)t.expr=P(t.expr,e,n);else if(t instanceof ci)t.expr=P(t.expr,e,n);else if(t instanceof xo)for(let r=0;r<t.expressions.length;r++)t.expressions[r]=P(t.expressions[r],e,n);else if(t instanceof vs)t.condition=P(t.condition,e,n);else if(t instanceof gs)t.tag=P(t.tag,e,n),t.template.expressions=t.template.expressions.map(r=>P(r,e,n));else if(t instanceof Xt)if(Array.isArray(t.body))for(let r=0;r<t.body.length;r++)oa(t.body[r],e,n|Y.InChildOperation);else t.body=P(t.body,e,n|Y.InChildOperation);else if(!(t instanceof z)){if(t instanceof pi)for(let r=0;r<t.expressions.length;r++)t.expressions[r]=P(t.expressions[r],e,n);else if(t instanceof St)t.expr=P(t.expr,e,n);else if(t instanceof Pr)t.expression=P(t.expression,e,n);else if(t instanceof Kt)for(let r=0;r<t.statements.length;r++)oa(t.statements[r],e,n);else if(!(t instanceof cn||t instanceof ot||t instanceof Be||t instanceof ys))throw new Error(`Unhandled expression kind: ${t.constructor.name}`)}return e(t,n)}function oa(t,e,n){if(t instanceof at)t.expr=P(t.expr,e,n);else if(t instanceof Pe)t.value=P(t.value,e,n);else if(t instanceof Ze)t.value!==void 0&&(t.value=P(t.value,e,n));else if(t instanceof bo){t.condition=P(t.condition,e,n);for(let r of t.trueCase)oa(r,e,n);for(let r of t.falseCase)oa(r,e,n)}else throw new Error(`Unhandled statement kind: ${t.constructor.name}`)}function yg(t){return t instanceof Be&&typeof t.value=="string"}var et=class{constructor(){l(this,"slot",null)}},cC=new Set([d.Element,d.ElementStart,d.Container,d.ContainerStart,d.Template,d.RepeaterCreate,d.ConditionalCreate,d.ConditionalBranchCreate,d.BoundaryCreate]);function Wr(t){return cC.has(t.kind)}function uC(t,e,n,r,s,i){return C(C({kind:d.ElementStart,xref:e,tag:t,handle:new et,attributes:null,localRefs:[],nonBindable:!1,namespace:n,i18nPlaceholder:r,startSourceSpan:s,wholeSourceSpan:i},Lt),W)}function pC(t,e,n,r){return C(C({kind:d.ForeignComponent,xref:t,handle:new et,constIndex:e,props:n,sourceSpan:r},Lt),W)}function jf(t,e,n,r,s){return C({kind:d.Content,target:t,propertyName:n,view:e,startSourceSpan:r,sourceSpan:s},W)}function Xp(t,e,n,r,s,i,o,a){return C(C({kind:d.Template,xref:t,templateKind:e,attributes:null,tag:n,handle:new et,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:a},Lt),W)}function vg(t,e,n,r,s,i,o,a){return C(C({kind:d.ConditionalCreate,xref:t,templateKind:e,attributes:null,tag:n,handle:new et,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:a},Lt),W)}function Yp(t,e,n,r,s,i,o,a){return C(C({kind:d.ConditionalBranchCreate,xref:t,templateKind:e,attributes:null,tag:n,handle:new et,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:a},Lt),W)}function hC(t,e,n,r,s,i,o,a){return C(C({kind:d.BoundaryCreate,xref:t,templateKind:e,attributes:null,tag:n,handle:new et,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:a},Lt),W)}function fC(t,e,n,r,s,i,o,a){return C(C({kind:d.BoundaryErrorCreate,xref:t,templateKind:e,handle:new et,functionNameSuffix:n,decls:null,vars:null,i18nPlaceholder:r,startSourceSpan:s,wholeSourceSpan:i,boundaryXref:o,contextVariables:a},Lt),W)}function dC(t,e,n,r,s,i,o,a,c,u){return de(C(C(C({kind:d.RepeaterCreate,attributes:null,xref:t,handle:new et,emptyView:e,track:r,trackByFn:null,trackByOps:null,tag:n,emptyTag:i,emptyAttributes:null,functionNameSuffix:"For",namespace:Ie.HTML,nonBindable:!1,localRefs:[],decls:null,vars:null,varNames:s,usesComponentInstance:!1,i18nPlaceholder:o,emptyI18nPlaceholder:a,startSourceSpan:c,wholeSourceSpan:u},Lt),W),Ot),{numSlotsUsed:e===null?2:3})}function mC(t,e){return C({kind:d.ElementEnd,xref:t,sourceSpan:e},W)}function gC(t){return C({kind:d.DisableBindings,xref:t},W)}function yC(t){return C({kind:d.EnableBindings,xref:t},W)}function Sg(t,e,n,r){return C(C({kind:d.Text,xref:t,handle:new et,initialValue:e,icuPlaceholder:n,sourceSpan:r},Lt),W)}function vC(t,e,n,r,s,i){return C({kind:d.AnimationString,name:t,target:e,animationKind:n,expression:r,i18nMessage:null,securityContext:s,sanitizer:null,sourceSpan:i},W)}function SC(t,e,n,r,s,i){let o=new x;return o.push(r),C({kind:d.Animation,name:t,target:e,animationKind:n,handlerOps:o,handlerFnName:null,i18nMessage:null,securityContext:s,sanitizer:null,sourceSpan:i},W)}function Qp(t,e,n,r,s,i,o,a,c){let u=new x;return u.push(s),C({kind:d.Listener,target:t,targetSlot:e,tag:r,hostListener:a,name:n,handlerOps:u,handlerFnName:null,consumesDollarEvent:!1,isLegacyAnimationListener:i!==null,legacyAnimationPhase:i,eventTarget:o,sourceSpan:c},W)}function Eg(t,e,n,r,s,i,o,a,c){let u=new x;return u.push(s),C({kind:d.AnimationListener,target:t,targetSlot:e,tag:r,hostListener:a,name:n,animationKind:i,handlerOps:u,handlerFnName:null,consumesDollarEvent:!1,eventTarget:o,sourceSpan:c},W)}function wg(t,e,n,r,s,i){let o=new x;return o.push(s),C({kind:d.TwoWayListener,target:t,targetSlot:e,tag:r,name:n,handlerOps:o,handlerFnName:null,sourceSpan:i},W)}function EC(t,e,n){return C(C({kind:d.Pipe,xref:t,handle:e,name:n},W),Lt)}function wC(t){return C({kind:d.Namespace,active:t},W)}function TC(t){return C({kind:d.ProjectionDef,def:t},W)}function CC(t){return C({kind:d.EnableIncrementalHydrationRuntime,sourceSpan:t},W)}function xC(t,e,n,r,s){return de(C(C({kind:d.Projection,xref:t,handle:new et,selector:e,i18nPlaceholder:n,fallbackView:r,projectionSlotIndex:0,attributes:null,localRefs:[],sourceSpan:s},W),Lt),{numSlotsUsed:r===null?1:2})}function ln(t,e,n,r,s,i,o,a){return C({kind:d.ExtractedAttribute,target:t,bindingKind:e,namespace:n,name:r,expression:s,i18nContext:i,i18nMessage:o,securityContext:a,trustedValueFn:null},W)}function NC(t,e,n,r,s,i){return de(C(C({kind:d.Defer,xref:t,handle:new et,mainView:e,mainSlot:n,loadingView:null,loadingSlot:null,loadingConfig:null,loadingMinimumTime:null,loadingAfterTime:null,placeholderView:null,placeholderSlot:null,placeholderConfig:null,placeholderMinimumTime:null,errorView:null,errorSlot:null,ownResolverFn:r,resolverFn:s,flags:null,sourceSpan:i},W),Lt),{numSlotsUsed:2})}function vr(t,e,n,r){return C({kind:d.DeferOn,defer:t,trigger:e,modifier:n,sourceSpan:r},W)}function IC(t,e,n){return C(C({kind:d.DeclareLet,xref:t,declaredName:e,sourceSpan:n,handle:new et},Lt),W)}function AC(t,e,n,r,s,i,o,a){return C({kind:d.I18nMessage,xref:t,i18nContext:e,i18nBlock:n,message:r,messagePlaceholder:s,params:i,postprocessingParams:o,needsPostprocessing:a,subMessages:[],requiresExtraction:null},W)}function zl(t,e,n,r){return C(C({kind:d.I18nStart,xref:t,handle:new et,root:n!=null?n:t,message:e,messageIndex:null,subTemplateIndex:null,context:null,sourceSpan:r},W),Lt)}function Kl(t,e){return C({kind:d.I18nEnd,xref:t,sourceSpan:e},W)}function bC(t,e,n,r){return C({kind:d.IcuStart,xref:t,message:e,messagePlaceholder:n,context:null,sourceSpan:r},W)}function DC(t){return C({kind:d.IcuEnd,xref:t},W)}function kC(t,e,n){return C({kind:d.IcuPlaceholder,xref:t,name:e,strings:n,expressionPlaceholders:[]},W)}function Uc(t,e,n,r,s){if(n===null&&t!==Cr.Attr)throw new Error("AssertionError: i18nBlock must be provided for non-attribute contexts.");return C({kind:d.I18nContext,contextKind:t,xref:e,i18nBlock:n,message:r,sourceSpan:s,params:new Map,postprocessingParams:new Map},W)}function Tg(t,e,n){return C(C({kind:d.I18nAttributes,xref:t,handle:e,target:n,i18nAttributesConfig:null},W),Lt)}function _C(t,e){return C({kind:d.SourceLocation,templatePath:t,locations:e},W)}function RC(t){return C({kind:d.ControlCreate,sourceSpan:t},W)}function PC(t,e,n,r,s,i){return C(C({kind:d.DomProperty,name:t,expression:e,bindingKind:n,i18nContext:r,securityContext:s,sanitizer:null,sourceSpan:i},Ot),W)}var Cg="CTX_REF_MARKER",D;(function(t){t[t.Tmpl=0]="Tmpl",t[t.Host=1]="Host",t[t.Both=2]="Both"})(D||(D={}));var At;(function(t){t[t.Full=0]="Full",t[t.DomOnly=1]="DomOnly"})(At||(At={}));var Tl=class{constructor(e,n,r,s){l(this,"componentName");l(this,"pool");l(this,"mode");l(this,"legacyOptionalChaining");l(this,"kind",D.Both);l(this,"nextXrefId",0);this.componentName=e,this.pool=n,this.mode=r,this.legacyOptionalChaining=s}allocateXrefId(){return this.nextXrefId++}},aa=class extends Tl{constructor(n,r,s,i,o,a,c,u,f,h,p){super(n,r,s,h);l(this,"relativeContextFilePath");l(this,"i18nUseExternalIds");l(this,"deferMeta");l(this,"allDeferrableDepsFn");l(this,"relativeTemplatePath");l(this,"enableDebugLocations");l(this,"foreignImports");l(this,"foreignMatcher");l(this,"kind",D.Tmpl);l(this,"fnSuffix","Template");l(this,"root");l(this,"views",new Map);l(this,"contentSelectors",null);l(this,"consts",[]);l(this,"constsInitializers",[]);if(this.relativeContextFilePath=i,this.i18nUseExternalIds=o,this.deferMeta=a,this.allDeferrableDepsFn=c,this.relativeTemplatePath=u,this.enableDebugLocations=f,this.foreignImports=p,this.root=new bt(this,this.allocateXrefId(),null),this.views.set(this.root.xref,this.root),p&&p.length>0){let g=new Map;for(let y of p)g.set(y.name,[y]);this.foreignMatcher=new br(g)}else this.foreignMatcher=null}getForeignComponent(n){if(this.foreignMatcher===null)return null;let r=this.foreignMatcher.match(n.name);return r.length>0?r[0]:null}allocateView(n){let r=new bt(this,this.allocateXrefId(),n);return this.views.set(r.xref,r),r}get units(){return this.views.values()}addConst(n,r){for(let i=0;i<this.consts.length;i++)if(this.consts[i].isEquivalent(n))return i;let s=this.consts.length;return this.consts.push(n),r&&this.constsInitializers.push(...r),s}},Cl=class{constructor(e){l(this,"xref");l(this,"create",new x);l(this,"update",new x);l(this,"functions",new Set);l(this,"fnName",null);l(this,"vars",null);this.xref=e}*ops(){for(let e of this.functions)for(let n of e.ops)yield n;for(let e of this.create)if(yield e,e.kind===d.Listener||e.kind===d.Animation||e.kind===d.AnimationListener||e.kind===d.TwoWayListener)for(let n of e.handlerOps)yield n;else if(e.kind===d.RepeaterCreate&&e.trackByOps!==null)for(let n of e.trackByOps)yield n;for(let e of this.update)yield e}},bt=class extends Cl{constructor(n,r,s){super(r);l(this,"job");l(this,"parent");l(this,"contextVariables",new Map);l(this,"aliases",new Set);l(this,"decls",null);this.job=n,this.parent=s}},xl=class extends Tl{constructor(n,r,s,i){super(n,r,s,i);l(this,"kind",D.Host);l(this,"fnSuffix","HostBindings");l(this,"root");this.root=new qu(this)}get units(){return[this.root]}},qu=class extends Cl{constructor(n){super(0);l(this,"job");l(this,"attributes",null);this.job=n}};function LC(t){for(let e of t.units)for(let n of e.ops())Ce(n,MC,Y.None)}function MC(t){if(t instanceof Ae&&t.fn instanceof Qe&&t.fn.name==="$any"){if(t.args.length!==1)throw new Error("The $any builtin function expects exactly one argument.");return t.args[0]}return t}function OC(t){let e=new Map;for(let n of t.units)for(let r of n.create)r.kind===d.I18nContext&&e.set(r.xref,r);for(let n of t.units)for(let r of n.update)r.kind===d.I18nExpression&&FC(e,r)&&x.insertAfter(oC(r.i18nOwner,r.handle,null),r)}function FC(t,e){var s;if(((s=e.next)==null?void 0:s.kind)!==d.I18nExpression)return!0;let n=t.get(e.context),r=t.get(e.next.context);if(n===void 0)throw new Error("AssertionError: expected an I18nContextOp to exist for the I18nExpressionOp's context");if(r===void 0)throw new Error("AssertionError: expected an I18nContextOp to exist for the next I18nExpressionOp's context");return n.i18nBlock!==null?n.i18nBlock!==r.i18nBlock:e.i18nOwner!==e.next.i18nOwner}function BC(t){for(let e of t.units){let n=e.update.head,r=[],s=null;for(let i of e.create){if(i.kind===d.I18nStart)s={blockXref:i.xref,lastSlotConsumer:i.xref};else if(i.kind===d.I18nEnd){for(let o of r)o.target=s.lastSlotConsumer,x.insertBefore(o,n);r.length=0,s=null}if(Oi(i))for(s!==null&&(s.lastSlotConsumer=i.xref);n.next!==null;){if(s!==null&&n.kind===d.I18nExpression&&n.usage===ks.I18nText&&n.i18nOwner===s.blockXref){let a=n;n=n.next,x.remove(a),r.push(a);continue}let o=!1;if(Qo(n)&&n.target!==i.xref?o=!0:(n.kind===d.Statement||n.kind===d.Variable)&&Ge(n,a=>{!o&&Qo(a)&&a.target!==i.xref&&(o=!0)}),o)break;n=n.next}}}}function $C(t){if(!(!t.enableDebugLocations||t.relativeTemplatePath===null))for(let e of t.units){let n=[];for(let r of e.create)if(r.kind===d.ElementStart||r.kind===d.Element){let s=r.startSourceSpan.start;n.push({targetSlot:r.handle,offset:s.offset,line:s.line,column:s.col})}n.length>0&&e.create.push(_C(t.relativeTemplatePath,n))}}function xg(t){let e=new Map;for(let n of t.create)Oi(n)&&(e.set(n.xref,n),n.kind===d.RepeaterCreate&&n.emptyView!==null&&e.set(n.emptyView,n));return e}function UC(t){for(let e of t.units){let n=xg(e);for(let r of e.ops())switch(r.kind){case d.Attribute:VC(e,r,n);break;case d.Property:if(r.bindingKind!==O.LegacyAnimation&&r.bindingKind!==O.Animation){let s;r.i18nMessage!==null&&r.templateKind===null?s=O.I18n:r.isStructuralTemplateAttribute?s=O.Template:s=O.Property,x.insertBefore(ln(r.target,s,null,r.name,null,null,null,r.securityContext),zs(n,r.target))}break;case d.TwoWayProperty:x.insertBefore(ln(r.target,O.TwoWayProperty,null,r.name,null,null,null,r.securityContext),zs(n,r.target));break;case d.StyleProp:case d.ClassProp:r.expression instanceof sa&&x.insertBefore(ln(r.target,O.Property,null,r.name,null,null,null,ne.STYLE),zs(n,r.target));break;case d.Listener:if(!r.isLegacyAnimationListener){let s=ln(r.target,O.Property,null,r.name,null,null,null,ne.NONE);if(t.kind===D.Host)break;x.insertBefore(s,zs(n,r.target))}break;case d.TwoWayListener:if(t.kind!==D.Host){let s=ln(r.target,O.Property,null,r.name,null,null,null,ne.NONE);x.insertBefore(s,zs(n,r.target))}break}}}function zs(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an element-like target.");return n}function VC(t,e,n){if(!(e.expression instanceof Me)&&e.isTextAttribute){let r=ln(e.target,e.isStructuralTemplateAttribute?O.Template:O.Attribute,e.namespace,e.name,e.expression,e.i18nContext,e.i18nMessage,e.securityContext);if(t.job.kind===D.Host)t.create.push(r);else{let s=zs(n,e.target);x.insertBefore(r,s)}x.remove(e)}}var zf="aria-";function Ng(t){return t.startsWith(zf)&&t.length>zf.length}function GC(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an element-like target.");return n}function HC(t){let e=new Map;for(let n of t.units)for(let r of n.create)Wr(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.ops())if(r.kind===d.Binding)switch(r.bindingKind){case O.Attribute:if(r.name==="ngNonBindable"){x.remove(r);let s=GC(e,r.target);s.nonBindable=!0}else if(r.name.startsWith("animate."))x.replace(r,Wf(r.name,r.target,r.name==="animate.enter"?"enter":"leave",r.expression,r.securityContext,r.sourceSpan,0));else{let[s,i]=tt(r.name);x.replace(r,qf(r.target,s,i,r.expression,r.securityContext,r.isTextAttribute,r.isStructuralTemplateAttribute,r.templateKind,r.i18nMessage,r.sourceSpan))}break;case O.Animation:x.replace(r,Wf(r.name,r.target,r.name==="animate.enter"?"enter":"leave",r.expression,r.securityContext,r.sourceSpan,1));break;case O.Property:case O.LegacyAnimation:t.mode===At.DomOnly&&Ng(r.name)?x.replace(r,qf(r.target,null,r.name,r.expression,r.securityContext,!1,r.isStructuralTemplateAttribute,r.templateKind,r.i18nMessage,r.sourceSpan)):t.kind===D.Host?x.replace(r,PC(r.name,r.expression,r.bindingKind,r.i18nContext,r.securityContext,r.sourceSpan)):x.replace(r,YT(r.target,r.name,r.expression,r.bindingKind,r.securityContext,r.isStructuralTemplateAttribute,r.templateKind,r.i18nContext,r.i18nMessage,r.sourceSpan));break;case O.TwoWayProperty:if(!(r.expression instanceof ae))throw new Error(`Expected value of two-way property binding "${r.name}" to be an expression`);x.replace(r,QT(r.target,r.name,r.expression,r.securityContext,r.isStructuralTemplateAttribute,r.templateKind,r.i18nContext,r.i18nMessage,r.sourceSpan));break;case O.I18n:case O.ClassName:case O.StyleProperty:throw new Error(`Unhandled binding of kind ${O[r.bindingKind]}`)}}var Kf=new Map([[m.ariaProperty,m.ariaProperty],[m.attribute,m.attribute],[m.classProp,m.classProp],[m.element,m.element],[m.elementContainer,m.elementContainer],[m.elementContainerEnd,m.elementContainerEnd],[m.elementContainerStart,m.elementContainerStart],[m.elementEnd,m.elementEnd],[m.elementStart,m.elementStart],[m.domProperty,m.domProperty],[m.i18nExp,m.i18nExp],[m.listener,m.listener],[m.listener,m.listener],[m.property,m.property],[m.styleProp,m.styleProp],[m.syntheticHostListener,m.syntheticHostListener],[m.syntheticHostProperty,m.syntheticHostProperty],[m.templateCreate,m.templateCreate],[m.twoWayProperty,m.twoWayProperty],[m.twoWayListener,m.twoWayListener],[m.declareLet,m.declareLet],[m.conditionalCreate,m.conditionalBranchCreate],[m.conditionalBranchCreate,m.conditionalBranchCreate],[m.domElement,m.domElement],[m.domElementStart,m.domElementStart],[m.domElementEnd,m.domElementEnd],[m.domElementContainer,m.domElementContainer],[m.domElementContainerStart,m.domElementContainerStart],[m.domElementContainerEnd,m.domElementContainerEnd],[m.domListener,m.domListener],[m.domTemplate,m.domTemplate],[m.animationEnter,m.animationEnter],[m.animationLeave,m.animationLeave],[m.animationEnterListener,m.animationEnterListener],[m.animationLeaveListener,m.animationLeaveListener]]),qC=256;function WC(t){for(let e of t.units)Xf(e.create),Xf(e.update)}function Xf(t){let e=null;for(let n of t){if(n.kind!==d.Statement||!(n.statement instanceof at)){e=null;continue}if(!(n.statement.expr instanceof Ae)||!(n.statement.expr.fn instanceof ot)){e=null;continue}let r=n.statement.expr.fn.value;if(!Kf.has(r)){e=null;continue}if(e!==null&&Kf.get(e.instruction)===r&&e.length<qC){let s=e.expression.callFn(n.statement.expr.args,n.statement.expr.sourceSpan,n.statement.expr.pure);e.expression=s,e.op.statement=s.toStmt(),e.length++,x.remove(n)}else e={op:n,instruction:r,expression:n.statement.expr,length:1}}}function jC(t){for(let e of t.units)for(let n of e.update)(n.kind===d.Attribute||n.kind===d.StyleProp||n.kind==d.StyleMap||n.kind===d.ClassMap)&&n.expression instanceof Me&&n.expression.strings.length===2&&n.expression.strings.every(s=>s==="")&&(n.expression=n.expression.expressions[0])}function zC(t){for(let e of t.units)for(let n of e.ops()){if(n.kind!==d.Conditional)continue;let r,s=n.conditions.findIndex(a=>a.expr===null);if(s>=0){let a=n.conditions.splice(s,1)[0].targetSlot;r=new Nr(a)}else r=S(-1);let i=n.test!=null?new Un(n.test,t.allocateXrefId()):null,o=null;for(let a=n.conditions.length-1;a>=0;a--){let c=n.conditions[a];if(c.expr!==null){if(i!==null){let u=a===0?i:new qr(i.xref);c.expr=new oe(T.Identical,u,c.expr)}else c.alias!==null&&(o!=null||(o=t.allocateXrefId()),c.expr=new Un(c.expr,o),n.contextValue=new qr(o));r=new Ht(c.expr,new Nr(c.targetSlot),r)}}n.processed=r,n.conditions=[]}}function KC(t){for(let e of t.units)for(let n of e.update)if(n.kind===d.Boundary){let r=n.target,s=new Jo(r),i=new We(s,"error"),o=new oe(T.Identical,i,Lr),a=n.conditions,c=a.find(h=>h.expr===null),u=c?new Nr(c.targetSlot):S(-1),f=a.filter(h=>h.expr!==null);for(let h=f.length-1;h>=0;h--){let p=f[h],g=p.expr,y=Array.from(e.create).find(E=>E.kind===d.BoundaryErrorCreate&&E.xref===p.target);if(y!==void 0){let E=y.contextVariables.filter(w=>w.value==="$error").map(w=>w.name);E.length>0&&(g=P(g,w=>w instanceof Qe&&E.includes(w.name)?i:w,Y.None))}u=new Ht(g,new Nr(p.targetSlot),u)}n.processed=new Ht(o,new Nr(n.guarded.targetSlot),u)}}var XC=new Map([["&&",T.And],[">",T.Bigger],[">=",T.BiggerEquals],["|",T.BitwiseOr],["&",T.BitwiseAnd],["/",T.Divide],["=",T.Assign],["==",T.Equals],["===",T.Identical],["<",T.Lower],["<=",T.LowerEquals],["-",T.Minus],["%",T.Modulo],["**",T.Exponentiation],["*",T.Multiply],["!=",T.NotEquals],["!==",T.NotIdentical],["??",T.NullishCoalesce],["||",T.Or],["+",T.Plus],["in",T.In],["instanceof",T.InstanceOf],["+=",T.AdditionAssignment],["-=",T.SubtractionAssignment],["*=",T.MultiplicationAssignment],["/=",T.DivisionAssignment],["%=",T.RemainderAssignment],["**=",T.ExponentiationAssignment],["&&=",T.AndAssignment],["||=",T.OrAssignment],["??=",T.NullishCoalesceAssignment]]);function Ig(t){var n;let e=new Map([["svg",Ie.SVG],["math",Ie.Math]]);return t===null?Ie.HTML:(n=e.get(t))!=null?n:Ie.HTML}function YC(t){let e=new Map([["svg",Ie.SVG],["math",Ie.Math]]);for(let[n,r]of e.entries())if(r===t)return n;return null}function QC(t,e){return e===Ie.HTML?t:`:${YC(e)}:${t}`}function Di(t){return Array.isArray(t)?pe(t.map(Di)):S(t)}function JC(t){let e=new Map;for(let n of t.units)for(let r of n.create)if(r.kind===d.ExtractedAttribute){let s=e.get(r.target)||new Wu;e.set(r.target,s),s.add(r.bindingKind,r.name,r.expression,r.namespace,r.trustedValueFn),x.remove(r)}if(t instanceof aa)for(let n of t.units)for(let r of n.create)if(r.kind==d.Projection){let s=e.get(r.xref);if(s!==void 0){let i=ju(s);i.entries.length>0&&(r.attributes=t.pool.getConstLiteral(i,!0))}}else Wr(r)&&(r.attributes=Yf(t,e,r.xref),r.kind===d.RepeaterCreate&&r.emptyView!==null&&(r.emptyAttributes=Yf(t,e,r.emptyView)));else if(t instanceof xl)for(let[n,r]of e.entries()){if(n!==t.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 s=ju(r);s.entries.length>0&&(t.root.attributes=s)}}function Yf(t,e,n){let r=e.get(n);if(r!==void 0){let s=ju(r);if(s.entries.length>0)return t.addConst(s)}return null}var Vs=Object.freeze([]),Wu=class{constructor(){l(this,"known",new Map);l(this,"byKind",new Map);l(this,"propertyBindings",null);l(this,"projectAs",null)}get attributes(){var e;return(e=this.byKind.get(O.Attribute))!=null?e:Vs}get classes(){var e;return(e=this.byKind.get(O.ClassName))!=null?e:Vs}get styles(){var e;return(e=this.byKind.get(O.StyleProperty))!=null?e:Vs}get bindings(){var e;return(e=this.propertyBindings)!=null?e:Vs}get template(){var e;return(e=this.byKind.get(O.Template))!=null?e:Vs}get i18n(){var e;return(e=this.byKind.get(O.I18n))!=null?e:Vs}isKnown(e,n){var s;let r=(s=this.known.get(e))!=null?s:new Set;return this.known.set(e,r),r.has(n)?!0:(r.add(n),!1)}add(e,n,r,s,i){var c;if(!(e===O.Attribute||e===O.ClassName||e===O.StyleProperty)&&this.isKnown(e,n))return;if(n==="ngProjectAs"){if(r===null||!(r instanceof Be)||r.value==null||typeof((c=r.value)==null?void 0:c.toString())!="string")throw Error("ngProjectAs must have a string literal value");this.projectAs=r.value.toString()}let a=this.arrayFor(e);if(a.push(...ZC(s,n)),e===O.Attribute||e===O.StyleProperty){if(r===null)throw Error("Attribute, i18n attribute, & style element attributes must have a value");i!==null&&yg(r)?a.push(Om(i,new pi([new Co(r.value)],[]),void 0,r.sourceSpan)):a.push(r)}}arrayFor(e){var n;return e===O.Property||e===O.TwoWayProperty?((n=this.propertyBindings)!=null||(this.propertyBindings=[]),this.propertyBindings):(this.byKind.has(e)||this.byKind.set(e,[]),this.byKind.get(e))}};function ZC(t,e){let n=S(e);return t?[S(0),S(t),n]:[n]}function ju({attributes:t,bindings:e,classes:n,i18n:r,projectAs:s,styles:i,template:o}){let a=[...t];if(s!==null){let c=Lp(s)[0];a.push(S(5),Di(c))}return n.length>0&&a.push(S(1),...n),i.length>0&&a.push(S(2),...i),e.length>0&&a.push(S(3),...e),o.length>0&&a.push(S(4),...o),r.length>0&&a.push(S(6),...r),pe(a)}var ex=new Map([["formField",new Set([d.Property])],["formControl",new Set([d.Property])],["formControlName",new Set([d.Property,d.Attribute])],["ngModel",new Set([d.Attribute,d.Property,d.TwoWayProperty])]]);function tx(t){for(let e of t.units)nx(e)}function nx(t){for(let e of t.update){if(e.kind!==d.Property&&e.kind!==d.TwoWayProperty&&e.kind!==d.Attribute)continue;let n=ex.get(e.name);n!==void 0&&n.has(e.kind)&&ox(t,e)}}var rx=new Set([d.Container,d.ContainerStart,d.Element,d.ElementStart]);function sx(t){return rx.has(t.kind)}function ix(t,e){for(let n of t.create)if(sx(n)&&n.xref===e)return n;return null}function ox(t,e){let n=ix(t,e.target);if(n===null)return;let r=RC(e.sourceSpan);x.insertAfter(r,n),x.insertAfter(lC(e.target,e.sourceSpan),e)}function ax(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an element-like target.");return n}function lx(t){let e=new Map;for(let n of t.units)for(let r of n.create)Wr(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.ops())if(r.kind===d.AnimationBinding){let s=cx(r);t.kind===D.Host?n.create.push(s):x.insertAfter(s,ax(e,r.target)),x.remove(r)}}function cx(t){if(t.animationBindingKind===0)return vC(t.name,t.target,t.name==="animate.enter"?"enter":"leave",t.expression,t.securityContext,t.sourceSpan);{let e=t.expression;return SC(t.name,t.target,t.name==="animate.enter"?"enter":"leave",[Jt(new Pe(e,e.sourceSpan))],t.securityContext,t.sourceSpan)}}function ux(t){let e=new Map;for(let n of t.units){for(let r of n.create)r.kind===d.I18nAttributes&&e.set(r.target,r);for(let r of n.update)switch(r.kind){case d.Property:case d.Attribute:if(r.i18nContext===null||!(r.expression instanceof Me))continue;let s=e.get(r.target);if(s===void 0)throw new Error("AssertionError: An i18n attribute binding instruction requires the owning element to have an I18nAttributes create instruction");if(s.target!==r.target)throw new Error("AssertionError: Expected i18nAttributes target element to match binding target element");let i=[];for(let o=0;o<r.expression.expressions.length;o++){let a=r.expression.expressions[o];if(r.expression.i18nPlaceholders.length!==r.expression.expressions.length)throw new Error(`AssertionError: An i18n attribute binding instruction requires the same number of expressions and placeholders, but found ${r.expression.i18nPlaceholders.length} placeholders and ${r.expression.expressions.length} expressions`);i.push(gg(r.i18nContext,s.target,s.xref,s.handle,a,null,r.expression.i18nPlaceholders[o],Ii.Creation,ks.I18nAttribute,r.name,r.sourceSpan))}x.replaceWithMany(r,i);break}}}function px(t){let e=new Map;for(let s of t.units)for(let i of s.ops())switch(i.kind){case d.Binding:case d.Property:case d.Attribute:case d.ExtractedAttribute:if(i.i18nMessage===null)continue;if(!e.has(i.i18nMessage)){let o=Uc(Cr.Attr,t.allocateXrefId(),null,i.i18nMessage,null);s.create.push(o),e.set(i.i18nMessage,o.xref)}i.i18nContext=e.get(i.i18nMessage);break}let n=new Map;for(let s of t.units)for(let i of s.create)switch(i.kind){case d.I18nStart:if(i.xref===i.root){let o=Uc(Cr.RootI18n,t.allocateXrefId(),i.xref,i.message,null);s.create.push(o),i.context=o.xref,n.set(i.xref,o)}break}for(let s of t.units)for(let i of s.create)if(i.kind===d.I18nStart&&i.xref!==i.root){let o=n.get(i.root);if(o===void 0)throw Error("AssertionError: Root i18n block i18n context should have been created.");i.context=o.xref,n.set(i.xref,o)}let r=null;for(let s of t.units)for(let i of s.create)switch(i.kind){case d.I18nStart:r=i;break;case d.I18nEnd:r=null;break;case d.IcuStart:if(r===null)throw Error("AssertionError: Unexpected ICU outside of an i18n block.");if(i.message.id!==r.message.id){let o=Uc(Cr.Icu,t.allocateXrefId(),r.root,i.message,null);s.create.push(o),i.context=o.xref}else i.context=r.context,n.get(r.xref).contextKind=Cr.Icu;break}}function hx(t){let e=new Map;for(let n of t.units)for(let r of n.update.reversed())if(r.kind===d.Binding&&r.isTextAttribute){let s=e.get(r.target)||new Set;s.has(r.name)&&(r.name==="style"||r.name==="class")&&x.remove(r),s.add(r.name),e.set(r.target,s)}}function fx(t){for(let e of t.units)for(let n of e.create)n.kind===d.Defer&&(n.placeholderMinimumTime!==null&&(n.placeholderConfig=new ia(Di([n.placeholderMinimumTime]))),(n.loadingMinimumTime!==null||n.loadingAfterTime!==null)&&(n.loadingConfig=new ia(Di([n.loadingMinimumTime,n.loadingAfterTime]))))}function dx(t){for(let e of t.units)for(let n of e.create)if(n.kind===d.Defer&&n.flags!==null&&(n.flags&1)!==0){x.insertBefore(CC(n.sourceSpan),n);break}}function mx(t){let e=new Map;function n(s){if(e.has(s.xref))return e.get(s.xref);let i=new gx;for(let o of s.create)if(!(!Wr(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(s.xref,i),i}function r(s,i,o){let a=i.trigger.kind;switch(a){case ue.Idle:case ue.Never:case ue.Immediate:case ue.Timer:return;case ue.Hover:case ue.Interaction:case ue.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 f=t.views.get(o);if(f==null)throw new Error("AssertionError: could not find placeholder view for defer on trigger");for(let h of f.create)if(Oi(h)&&(Wr(h)||h.kind===d.Projection)){i.trigger.targetXref=h.xref,i.trigger.targetView=o,i.trigger.targetSlotViewSteps=-1,i.trigger.targetSlot=h.handle;return}return}let c=o!==null?t.views.get(o):s,u=o!==null?-1:0;for(;c!==null;){let f=n(c);if(f.targets.has(i.trigger.targetName)){let{xref:h,slot:p}=f.targets.get(i.trigger.targetName);i.trigger.targetXref=h,i.trigger.targetView=c.xref,i.trigger.targetSlotViewSteps=u,i.trigger.targetSlot=p;return}c=c.parent!==null?t.views.get(c.parent):null,u++}break;default:{let f=a;throw new Error(`Trigger kind ${f} not handled`)}}}for(let s of t.units){let i=new Map;for(let o of s.create)switch(o.kind){case d.Defer:i.set(o.xref,o);break;case d.DeferOn:let a=i.get(o.defer);r(s,o,o.modifier==="hydrate"?a.mainView:a.placeholderView);break}}}var gx=class{constructor(){l(this,"targets",new Map)}},yx=new Map([[d.ElementEnd,[d.ElementStart,d.Element]],[d.ContainerEnd,[d.ContainerStart,d.Container]],[d.I18nEnd,[d.I18nStart,d.I18n]]]),vx=new Set([d.Pipe]);function Sx(t){for(let e of t.units)for(let n of e.create){let r=yx.get(n.kind);if(r===void 0)continue;let[s,i]=r,o=n.prev;for(;o!==null&&vx.has(o.kind);)o=o.prev;o!==null&&o.kind===s&&(o.kind=i,x.remove(n))}}function Ex(t){for(let e of t.units)for(let n of e.ops())Ce(n,(r,s)=>Ix(r,{job:t},s),Y.None),Ce(n,Ax,Y.None)}function Bt(t){return t instanceof Mn?Bt(t.expr):t instanceof oe?Bt(t.lhs)||Bt(t.rhs):t instanceof Ht?t.falseCase&&Bt(t.falseCase)?!0:Bt(t.condition)||Bt(t.trueCase):t instanceof vs?Bt(t.condition):t instanceof Un?Bt(t.expr):t instanceof We?Bt(t.receiver):t instanceof qt?Bt(t.receiver)||Bt(t.index):t instanceof St||t instanceof ra?Bt(t.expr):t instanceof Ae||t instanceof Wt||t instanceof un||t instanceof Ps}function wx(t){let e=new Set;return P(t,n=>(n instanceof Un&&e.add(n.xref),n),Y.None),e}function Tx(t,e,n){return P(t,r=>{if(r instanceof Un&&e.has(r.xref)){let s=new qr(r.xref);return new Un(s,s.xref)}return r},Y.None),t}function Gs(t,e,n){let r;if(Bt(t)){let s=n.job.allocateXrefId();r=[new Un(t,s),new qr(s)]}else r=[t,t.clone()],Tx(r[1],wx(r[0]));return new Ai(r[0],e(r[1]))}function Cx(t){return t instanceof hs||t instanceof fs||t instanceof Ae&&t.isOptional}function xx(t){return t instanceof We||t instanceof qt||t instanceof Ae&&!t.isOptional}function Ag(t){return Cx(t)||xx(t)}function Nx(t){if(Ag(t)&&t.receiver instanceof Ai){let e=t.receiver;for(;e.expr instanceof Ai;)e=e.expr;return e}return null}function Ix(t,e,n){if(t instanceof ra)return t.expr;if(!(e.job.legacyOptionalChaining||(n&Y.InSafeNavigationMigration)!==0))return t instanceof hs?new We(t.receiver,t.name,null,t.sourceSpan,[],!0):t instanceof fs?new qt(t.receiver,t.index,null,t.sourceSpan,[],!0):t;if(!Ag(t))return t;let s=Nx(t);if(s){if(t instanceof Ae&&!t.isOptional)return s.expr=s.expr.callFn(t.args),t.receiver;if(t instanceof We)return s.expr=s.expr.prop(t.name),t.receiver;if(t instanceof qt)return s.expr=s.expr.key(t.index),t.receiver;if(t instanceof Ae&&t.isOptional)return s.expr=Gs(s.expr,i=>i.callFn(t.args),e),t.receiver;if(t instanceof hs)return s.expr=Gs(s.expr,i=>i.prop(t.name),e),t.receiver;if(t instanceof fs)return s.expr=Gs(s.expr,i=>i.key(t.index),e),t.receiver}else{if(t instanceof Ae&&t.isOptional)return Gs(t.receiver,i=>i.callFn(t.args),e);if(t instanceof hs)return Gs(t.receiver,i=>i.prop(t.name),e);if(t instanceof fs)return Gs(t.receiver,i=>i.key(t.index),e)}return t}function Ax(t){return t instanceof Ai?new St(new Ht(new oe(T.Equals,t.guard,Lr),Lr,t.expr)):t}var Qf="\uFFFD",bx="#",Dx="*",kx="/",_x=":",Rx="[",Px="]",Lx="|";function Mx(t){let e=new Map,n=new Map,r=new Map;for(let i of t.units)for(let o of i.create)switch(o.kind){case d.I18nContext:let a=Ox(t,o);i.create.push(a),e.set(o.xref,a),r.set(o.xref,o);break;case d.I18nStart:n.set(o.xref,o);break}let s=null;for(let i of t.units)for(let o of i.create)switch(o.kind){case d.IcuStart:s=o,x.remove(o);let a=r.get(o.context);if(a.contextKind!==Cr.Icu)continue;let c=n.get(a.i18nBlock);if(c.context===a.xref)continue;let u=n.get(c.root),f=e.get(u.context);if(f===void 0)throw Error("AssertionError: ICU sub-message should belong to a root message.");let h=e.get(a.xref);h.messagePlaceholder=o.messagePlaceholder,f.subMessages.push(h.xref);break;case d.IcuEnd:s=null,x.remove(o);break;case d.IcuPlaceholder:if(s===null||s.context==null)throw Error("AssertionError: Unexpected ICU placeholder outside of i18n context");e.get(s.context).postprocessingParams.set(o.name,S(Fx(o))),x.remove(o);break}}function Ox(t,e,n){let r=Jf(e.params),s=Jf(e.postprocessingParams),i=[...e.params.values()].some(o=>o.length>1);return AC(t.allocateXrefId(),e.xref,e.i18nBlock,e.message,null,r,s,i)}function Fx(t){if(t.strings.length!==t.expressionPlaceholders.length+1)throw Error(`AssertionError: Invalid ICU placeholder with ${t.strings.length} strings and ${t.expressionPlaceholders.length} expressions`);let e=t.expressionPlaceholders.map(ei);return t.strings.flatMap((n,r)=>[n,e[r]||""]).join("")}function Jf(t){let e=new Map;for(let[n,r]of t){let s=Bx(r);s!==null&&e.set(n,S(s))}return e}function Bx(t){if(t.length===0)return null;let e=t.map(n=>ei(n));return e.length===1?e[0]:`${Rx}${e.join(Lx)}${Px}`}function ei(t){if(t.flags&he.ElementTag&&t.flags&he.TemplateTag){if(typeof t.value!="object")throw Error("AssertionError: Expected i18n param value to have an element and template slot");let s=ei(de(C({},t),{value:t.value.element,flags:t.flags&~he.TemplateTag})),i=ei(de(C({},t),{value:t.value.template,flags:t.flags&~he.ElementTag}));return t.flags&he.OpenTag&&t.flags&he.CloseTag?`${i}${s}${i}`:t.flags&he.CloseTag?`${s}${i}`:`${i}${s}`}if(t.flags&he.OpenTag&&t.flags&he.CloseTag)return`${ei(de(C({},t),{flags:t.flags&~he.CloseTag}))}${ei(de(C({},t),{flags:t.flags&~he.OpenTag}))}`;if(t.flags===he.None)return`${t.value}`;let e="",n="";t.flags&he.ElementTag?e=bx:t.flags&he.TemplateTag&&(e=Dx),e!==""&&(n=t.flags&he.CloseTag?kx:"");let r=t.subTemplateIndex===null?"":`${_x}${t.subTemplateIndex}`;return`${Qf}${n}${e}${t.value}${r}${Qf}`}function $x(t){for(let e of t.units){let n=new Map;for(let s of e.create){if(Oi(s)){if(s.handle.slot===null)throw new Error("AssertionError: expected slots to have been allocated before generating advance() calls")}else continue;n.set(s.xref,s.handle.slot)}let r=0;for(let s of e.update){let i=null;if(Qo(s)?i=s:Ge(s,a=>{i===null&&Qo(a)&&(i=a)}),i===null)continue;if(!n.has(i.target))throw new Error(`AssertionError: reference to unknown slot for target ${i.target}`);let o=n.get(i.target);if(r!==o){let a=o-r;if(a<0)throw new Error("AssertionError: slot counter should never need to move backwards");x.insertBefore(nC(a,i.sourceSpan),s),r=o}}}}function Ux(t){for(let e of t.units){for(let n of e.create)n.kind!==d.Animation&&n.kind!==d.AnimationListener&&n.kind!==d.Listener&&n.kind!==d.TwoWayListener&&Zf(e,n);for(let n of e.update)Zf(e,n)}}function Zf(t,e){Ce(e,(n,r)=>{if(!(n instanceof Xt)||r&Y.InChildOperation)return n;if(Array.isArray(n.body))throw new Error("AssertionError: unexpected multi-line arrow function");let s=new Hu(n.params,n.body);return t.functions.add(s),s},Y.None)}function Vx(t){for(let e of t.units)for(let n of e.update){if(n.kind!==d.StoreLet)continue;let r={kind:Te.Identifier,name:null,identifier:n.declaredName,local:!0};x.replace(n,In(t.allocateXrefId(),r,new Zo(n.target,n.value,n.sourceSpan),kt.None))}}function Gx(t){let n=[],r=0;for(let s of t.units)for(let i of s.create)i.kind===d.Projection&&(n.push(i.selector),i.projectionSlotIndex=r++);if(n.length>0){let s=null;if(n.length>1||n[0]!=="*"){let i=n.map(o=>o==="*"?o:Lp(o));s=t.pool.getConstLiteral(Di(i),!0)}t.contentSelectors=t.pool.getConstLiteral(Di(n),!0),t.root.create.prepend([TC(s)])}}function Hx(t,e,n,r,s){return Xr(m.element,t,e,n,r,s)}function qx(t,e,n,r,s){return Xr(m.elementStart,t,e,n,r,s)}function Wx(t,e,n,r){let s=[S(t),e];return n!==null&&s.push(n),K(m.foreignComponent,s,r)}function jx(t,e,n){return R(n?m.foreignContentFn:m.foreignContent).callFn([S(t),S(e)])}function Xr(t,e,n,r,s,i){let o=[S(e)];return n!==null&&o.push(S(n)),s!==null?o.push(S(r),S(s)):r!==null&&o.push(S(r)),K(t,o,i)}function bg(t,e,n,r,s,i,o,a,c){let u=[S(e),n,S(r),S(s),S(i),S(o)];for(a!==null&&(u.push(S(a)),u.push(R(m.templateRefExtractor)));u[u.length-1].isEquivalent(Lr);)u.pop();return K(t,u,c)}function Jp(t,e,n,r,s){let i=[S(e)];return n instanceof Me?i.push(Fi(n,s)):i.push(n),r!==null&&i.push(r),K(t,i,s)}function zx(t){return K(m.elementEnd,[],t)}function Kx(t,e,n,r){return Xr(m.elementContainerStart,t,null,e,n,r)}function Xx(t,e,n,r){return Xr(m.elementContainer,t,null,e,n,r)}function Yx(){return K(m.elementContainerEnd,[],null)}function Qx(t,e,n,r,s,i,o,a){return bg(m.templateCreate,t,e,n,r,s,i,o,a)}function Jx(){return K(m.disableBindings,[],null)}function Zx(){return K(m.enableBindings,[],null)}function eN(t,e,n,r,s){let i=[S(t),e];return n!==null&&i.push(R(n)),K(r?m.syntheticHostListener:m.listener,i,s)}function ed(t,e){return R(m.twoWayBindingSet).callFn([t,e])}function tN(t,e,n){return K(m.twoWayListener,[S(t),e],n)}function nN(t,e){return K(m.pipe,[S(t),S(e)],null)}function rN(){return K(m.namespaceHTML,[],null)}function sN(){return K(m.namespaceSVG,[],null)}function iN(){return K(m.namespaceMathML,[],null)}function oN(t,e){return K(m.advance,t>1?[S(t)]:[],e)}function aN(t){return R(m.reference).callFn([S(t)])}function lN(t){return R(m.nextContext).callFn(t===1?[]:[S(t)])}function cN(){return R(m.getCurrentView).callFn([])}function uN(t){return R(m.restoreView).callFn([t])}function pN(t){return R(m.resetView).callFn([t])}function hN(t,e,n){let r=[S(t,null)];return e!==""&&r.push(S(e)),K(m.text,r,n)}function fN(t,e,n,r,s,i,o,a,c,u,f){let h=[S(t),S(e),n!=null?n:S(null),S(r),S(s),S(i),o!=null?o:S(null),a!=null?a:S(null),c?R(m.deferEnableTimerScheduling):S(null),S(f)],p;for(;(p=h[h.length-1])!==null&&p instanceof Be&&p.value===null;)h.pop();return K(m.defer,h,u)}function dN(t){return K(m.enableIncrementalHydrationRuntime,[],t)}var mN=new Map([[ue.Idle,{none:m.deferOnIdle,prefetch:m.deferPrefetchOnIdle,hydrate:m.deferHydrateOnIdle}],[ue.Immediate,{none:m.deferOnImmediate,prefetch:m.deferPrefetchOnImmediate,hydrate:m.deferHydrateOnImmediate}],[ue.Timer,{none:m.deferOnTimer,prefetch:m.deferPrefetchOnTimer,hydrate:m.deferHydrateOnTimer}],[ue.Hover,{none:m.deferOnHover,prefetch:m.deferPrefetchOnHover,hydrate:m.deferHydrateOnHover}],[ue.Interaction,{none:m.deferOnInteraction,prefetch:m.deferPrefetchOnInteraction,hydrate:m.deferHydrateOnInteraction}],[ue.Viewport,{none:m.deferOnViewport,prefetch:m.deferPrefetchOnViewport,hydrate:m.deferHydrateOnViewport}],[ue.Never,{none:m.deferHydrateNever,prefetch:m.deferHydrateNever,hydrate:m.deferHydrateNever}]]);function gN(t,e,n,r){var i;let s=(i=mN.get(t))==null?void 0:i[n];if(s===void 0)throw new Error(`Unable to determine instruction for trigger ${t}`);return K(s,e,r)}function yN(t){return K(m.projectionDef,t?[t]:[],null)}function vN(t,e,n,r,s,i,o){let a=[S(t)];return(e!==0||n!==null||r!==null)&&(a.push(S(e)),n!==null&&a.push(n),r!==null&&(n===null&&a.push(S(null)),a.push(Z(r),S(s),S(i)))),K(m.projection,a,o)}function SN(t,e,n,r){let s=[S(t),S(e)];return n!==null&&s.push(S(n)),K(m.i18nStart,s,r)}function EN(t,e,n,r,s,i,o,a){let c=[S(t),e,S(n),S(r),S(s),S(i)];for(o!==null&&(c.push(S(o)),c.push(R(m.templateRefExtractor)));c[c.length-1].isEquivalent(Lr);)c.pop();return K(m.conditionalCreate,c,a)}function td(t,e,n,r,s,i,o,a){let c=[S(t),e,S(n),S(r),S(s),S(i)];for(o!==null&&(c.push(S(o)),c.push(R(m.templateRefExtractor)));c[c.length-1].isEquivalent(Lr);)c.pop();return K(m.conditionalBranchCreate,c,a)}function wN(t,e){return K(m.boundaryCreate,[S(t)],e)}function TN(t){return R(m.getBoundary).callFn([t])}function CN(t,e,n,r){let s=[t,e,n];return K(m.boundaryUpdate,s,r)}function xN(t,e,n,r,s,i,o,a,c,u,f,h,p,g){let y=[S(t),Z(e),S(n),S(r),S(s),S(i),o];return(a||c!==null)&&(y.push(S(a)),c!==null&&(y.push(Z(c),S(u),S(f)),(h!==null||p!==null)&&y.push(S(h)),p!==null&&y.push(S(p)))),K(m.repeaterCreate,y,g)}function NN(t,e){return K(m.repeater,[t],e)}function IN(t,e,n){return t==="prefetch"?K(m.deferPrefetchWhen,[e],n):t==="hydrate"?K(m.deferHydrateWhen,[e],n):K(m.deferWhen,[e],n)}function AN(t,e){return K(m.declareLet,[S(t)],e)}function bN(t,e){return R(m.storeLet).callFn([t],e)}function DN(t){return R(m.readContextLet).callFn([S(t)])}function kN(t,e,n,r){let s=[S(t),S(e)];return n&&s.push(S(n)),K(m.i18n,s,r)}function _N(t){return K(m.i18nEnd,[],t)}function RN(t,e){let n=[S(t),S(e)];return K(m.i18nAttributes,n,null)}function PN(t,e,n){return Jp(m.ariaProperty,t,e,null,n)}function LN(t,e,n,r){return Jp(m.property,t,e,n,r)}function MN(t){return K(m.control,[],t)}function ON(t){return K(m.controlCreate,[],t)}function FN(t,e,n,r){let s=[S(t),e];return n!==null&&s.push(n),K(m.twoWayProperty,s,r)}function BN(t,e,n,r,s){let i=[S(t)];return e instanceof Me?i.push(Fi(e,s)):i.push(e),(n!==null||r!==null)&&i.push(n!=null?n:S(null)),r!==null&&i.push(S(r)),K(m.attribute,i,null)}function $N(t,e,n,r){let s=[S(t)];return e instanceof Me?s.push(Fi(e,r)):s.push(e),n!==null&&s.push(S(n)),K(m.styleProp,s,r)}function UN(t,e,n){return K(m.classProp,[S(t),e],n)}function VN(t,e){let n=t instanceof Me?Fi(t,e):t;return K(m.styleMap,[n],e)}function GN(t,e){let n=t instanceof Me?Fi(t,e):t;return K(m.classMap,[n],e)}function HN(t,e,n,r,s){return Xr(m.domElement,t,e,n,r,s)}function qN(t,e,n,r,s){return Xr(m.domElementStart,t,e,n,r,s)}function WN(t){return K(m.domElementEnd,[],t)}function jN(t,e,n,r){return Xr(m.domElementContainerStart,t,null,e,n,r)}function zN(t,e,n,r){return Xr(m.domElementContainer,t,null,e,n,r)}function KN(){return K(m.domElementContainerEnd,[],null)}function XN(t,e,n,r){let s=[S(t),e];return n!==null&&s.push(R(n)),K(m.domListener,s,r)}function YN(t,e,n,r,s,i,o,a){return bg(m.domTemplate,t,e,n,r,s,i,o,a)}var nd=[m.pipeBind1,m.pipeBind2,m.pipeBind3,m.pipeBind4];function QN(t,e,n){if(n.length<1||n.length>nd.length)throw new Error("pipeBind() argument count out of bounds");let r=nd[n.length-1];return R(r).callFn([S(t),S(e),...n])}function JN(t,e,n){return R(m.pipeBindV).callFn([S(t),S(e),n])}function ZN(t,e,n){let r=Dg(t,e);return dI(pI,[],r,n)}function eI(t,e){return K(m.i18nExp,[t],e)}function tI(t,e){return K(m.i18nApply,[S(t)],e)}function nI(t,e,n,r){return Jp(m.domProperty,t,e,n,r)}function rI(t,e,n,r){let s=[e];n!==null&&s.push(n);let i=t==="enter"?m.animationEnter:m.animationLeave;return K(i,s,r)}function sI(t,e,n,r){let i=[e instanceof Me?Fi(e,r):e];n!==null&&i.push(n);let o=t==="enter"?m.animationEnter:m.animationLeave;return K(o,i,r)}function iI(t,e,n,r){let s=[e],i=t==="enter"?m.animationEnterListener:m.animationLeaveListener;return K(i,s,r)}function oI(t,e,n){return K(m.syntheticHostProperty,[S(t),e],n)}function aI(t,e,n){return Zp(fI,[S(t),e],n,null)}function lI(t,e){return K(m.attachSourceLocations,[S(t),e],null)}function cI(t,e,n){return R(m.arrowFunction).callFn([S(t),e,n])}function Dg(t,e){if(t.length<1||e.length!==t.length-1)throw new Error("AssertionError: expected specific shape of args for strings/expressions in interpolation");let n=[];if(e.length===1&&t[0]===""&&t[1]==="")n.push(e[0]);else{let r;for(r=0;r<e.length;r++)n.push(S(t[r]),e[r]);n.push(S(t[r]))}return n}function Fi(t,e){let n=Dg(t.strings,t.expressions);return Zp(hI,[],n,e)}function K(t,e,n){let r=R(t).callFn(e,n);return Jt(new at(r,n))}function uI(t,e,n){let r=[t];return e!==null&&r.push(e),K(m.conditional,r,n)}var pI={constant:[m.textInterpolate,m.textInterpolate1,m.textInterpolate2,m.textInterpolate3,m.textInterpolate4,m.textInterpolate5,m.textInterpolate6,m.textInterpolate7,m.textInterpolate8],variable:m.textInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},hI={constant:[m.interpolate,m.interpolate1,m.interpolate2,m.interpolate3,m.interpolate4,m.interpolate5,m.interpolate6,m.interpolate7,m.interpolate8],variable:m.interpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},fI={constant:[m.pureFunction0,m.pureFunction1,m.pureFunction2,m.pureFunction3,m.pureFunction4,m.pureFunction5,m.pureFunction6,m.pureFunction7,m.pureFunction8],variable:m.pureFunctionV,mapping:t=>t};function Zp(t,e,n,r){let s=t.mapping(n.length),i=n.at(-1);if(n.length>1&&i instanceof Be&&i.value===""&&n.pop(),s<t.constant.length)return R(t.constant[s]).callFn([...e,...n],r);if(t.variable!==null)return R(t.variable).callFn([...e,pe(n)],r);throw new Error("AssertionError: unable to call variadic function")}function dI(t,e,n,r){return Jt(Zp(t,e,n,r).toStmt())}function mI(t){co(t.root,null)}function co(t,e){let n=rd(t,e);for(let r of t.create)switch(r.kind){case d.ConditionalCreate:case d.ConditionalBranchCreate:case d.BoundaryErrorCreate:case d.Template:co(t.job.views.get(r.xref),n);break;case d.Projection:r.fallbackView!==null&&co(t.job.views.get(r.fallbackView),n);break;case d.RepeaterCreate:co(t.job.views.get(r.xref),n),r.emptyView&&co(t.job.views.get(r.emptyView),n),r.trackByOps!==null&&r.trackByOps.prepend(Ks(t,n,!1));break;case d.Animation:case d.AnimationListener:case d.Listener:case d.TwoWayListener:r.handlerOps.prepend(Ks(t,n,!0));break}t.create.prepend(Ks(t,n,!1)),t.update.prepend(Ks(t,n,!1));for(let r of t.functions)r.ops.prepend(Ks(t,rd(t,e),!0))}function rd(t,e){let n={view:t.xref,viewContextVariable:{kind:Te.Context,name:null,view:t.xref},contextVariables:new Map,aliases:t.aliases,references:[],letDeclarations:[],boundaryVariables:new Map,parent:e};for(let r of t.contextVariables.keys())n.contextVariables.set(r,{kind:Te.Identifier,name:null,identifier:r,local:!1});for(let r of t.create)switch(r.kind){case d.ElementStart:case d.ConditionalCreate:case d.ConditionalBranchCreate:case d.Template:if(!Array.isArray(r.localRefs))throw new Error("AssertionError: expected localRefs to be an array");for(let o=0;o<r.localRefs.length;o++)n.references.push({name:r.localRefs[o].name,targetId:r.xref,targetSlot:r.handle,offset:o,variable:{kind:Te.Identifier,name:null,identifier:r.localRefs[o].name,local:!1}});break;case d.BoundaryCreate:n.boundaryVariables.set(r.xref,{variable:{kind:Te.BoundaryState,name:null,boundaryXref:r.xref},handle:r.handle});break;case d.DeclareLet:n.letDeclarations.push({targetId:r.xref,targetSlot:r.handle,variable:{kind:Te.Identifier,name:null,identifier:r.declaredName,local:!1}});break;case d.BoundaryErrorCreate:let s=new Jo(r.boundaryXref),i=new We(s,"error");for(let o of r.contextVariables)o.value==="$error"&&t.aliases.add({kind:Te.Alias,name:null,identifier:o.name,expression:i});break}return n}function Ks(t,e,n){let r=[];e.view!==t.xref&&r.push(In(t.job.allocateXrefId(),e.viewContextVariable,new Sl,kt.None));let s=t.job.views.get(e.view);for(let[i,o]of s.contextVariables){let a=new or(e.view),c;o===Cg?c=a:typeof o=="number"?c=new qt(a,S(o)):c=new We(a,o),r.push(In(t.job.allocateXrefId(),e.contextVariables.get(i),c,kt.None))}for(let i of s.aliases)r.push(In(t.job.allocateXrefId(),i,i.expression.clone(),kt.AlwaysInline));for(let[i,{variable:o,handle:a}]of e.boundaryVariables)r.push(In(t.job.allocateXrefId(),o,TN(new Nr(a)),kt.None));for(let i of e.references)r.push(In(t.job.allocateXrefId(),i.variable,new vl(i.targetId,i.targetSlot,i.offset),kt.None));if(e.view!==t.xref||n)for(let i of e.letDeclarations)r.push(In(t.job.allocateXrefId(),i.variable,new ea(i.targetId,i.targetSlot),kt.None));return e.parent!==null&&r.push(...Ks(t,e.parent,!1)),r}function gI(t){for(let e of t.units)for(let n of e.ops())Ce(n,r=>r instanceof ia?S(t.addConst(r.expr)):r,Y.None)}var sd="style.",id="class.",yI="style!",od="class!",ad="!important";function vI(t){for(let e of t.root.update)if(e.kind===d.Binding&&e.bindingKind===O.Property)if(e.name.endsWith(ad)&&(e.name=e.name.substring(0,e.name.length-ad.length)),e.name.startsWith(sd)){e.bindingKind=O.StyleProperty,e.name=e.name.substring(sd.length),SI(e.name)?e.name=Op(e.name):e.name=EI(e.name);let{property:n,suffix:r}=Vc(e.name);e.name=n,e.unit=r}else e.name.startsWith(yI)?(e.bindingKind=O.StyleProperty,e.name="style"):e.name.startsWith(id)?(e.bindingKind=O.ClassName,e.name=Vc(e.name.substring(id.length)).property):e.name.startsWith(od)&&(e.bindingKind=O.ClassName,e.name=Vc(e.name.substring(od.length)).property)}function SI(t){return t.startsWith("--")}function EI(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function Vc(t){let e=t.indexOf("!important");e!==-1&&(t=e>0?t.substring(0,e):"");let n=null,r=t,s=t.lastIndexOf(".");return s>0&&(n=t.slice(s+1),r=t.substring(0,s)),{property:r,suffix:n}}function zu(t,e=!1){return Et(Object.keys(t).map(n=>({key:n,quoted:e,value:t[n]})))}var Ku=class{visitText(e){return e.value}visitContainer(e){return e.children.map(n=>n.visit(this)).join("")}visitIcu(e){let n=Object.keys(e.cases).map(s=>`${s} {${e.cases[s].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${n.join(" ")}}`}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(n=>n.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitBlockPlaceholder(e){return`${this.formatPh(e.startName)}${e.children.map(n=>n.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitIcuPlaceholder(e,n){return this.formatPh(e.name)}formatPh(e){return`{${wa(e,!1)}}`}},wI=new Ku;function kg(t){return t.visit(wI)}var ar=class{constructor(e,n){l(this,"sourceSpan");l(this,"i18n");this.sourceSpan=e,this.i18n=n}},Ls=class extends ar{constructor(n,r,s,i){super(r,i);l(this,"value");l(this,"tokens");this.value=n,this.tokens=s}visit(n,r){return n.visitText(this,r)}},ds=class extends ar{constructor(n,r,s,i,o,a){super(i,a);l(this,"switchValue");l(this,"type");l(this,"cases");l(this,"switchValueSourceSpan");this.switchValue=n,this.type=r,this.cases=s,this.switchValueSourceSpan=o}visit(n,r){return n.visitExpansion(this,r)}},Nl=class{constructor(e,n,r,s,i){l(this,"value");l(this,"expression");l(this,"sourceSpan");l(this,"valueSourceSpan");l(this,"expSourceSpan");this.value=e,this.expression=n,this.sourceSpan=r,this.valueSourceSpan=s,this.expSourceSpan=i}visit(e,n){return e.visitExpansionCase(this,n)}},Xu=class extends ar{constructor(n,r,s,i,o,a,c){super(s,c);l(this,"name");l(this,"value");l(this,"keySpan");l(this,"valueSpan");l(this,"valueTokens");this.name=n,this.value=r,this.keySpan=i,this.valueSpan=o,this.valueTokens=a}visit(n,r){return n.visitAttribute(this,r)}},Yu=class{constructor(e,n,r){l(this,"value");l(this,"type");l(this,"sourceSpan");this.value=e,this.type=n,this.sourceSpan=r}visit(e,n){return e.visitStartTagComment?e.visitStartTagComment(this,n):void 0}},rn=class extends ar{constructor(n,r,s,i,o,a,c,u=null,f,h,p=[]){super(a,h);l(this,"name");l(this,"attrs");l(this,"directives");l(this,"children");l(this,"isSelfClosing");l(this,"startSourceSpan");l(this,"endSourceSpan");l(this,"isVoid");l(this,"comments");this.name=n,this.attrs=r,this.directives=s,this.children=i,this.isSelfClosing=o,this.startSourceSpan=c,this.endSourceSpan=u,this.isVoid=f,this.comments=p}visit(n,r){return n.visitElement(this,r)}},la=class{constructor(e,n){l(this,"value");l(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e,n){return e.visitComment(this,n)}},on=class extends ar{constructor(n,r,s,i,o,a,c=null,u){super(i,u);l(this,"name");l(this,"parameters");l(this,"children");l(this,"nameSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");this.name=n,this.parameters=r,this.children=s,this.nameSpan=o,this.startSourceSpan=a,this.endSourceSpan=c}visit(n,r){return n.visitBlock(this,r)}},It=class extends ar{constructor(n,r,s,i,o,a,c,u,f,h=null,p,g=[]){super(u,p);l(this,"componentName");l(this,"tagName");l(this,"fullName");l(this,"attrs");l(this,"directives");l(this,"children");l(this,"isSelfClosing");l(this,"startSourceSpan");l(this,"endSourceSpan");l(this,"comments");this.componentName=n,this.tagName=r,this.fullName=s,this.attrs=i,this.directives=o,this.children=a,this.isSelfClosing=c,this.startSourceSpan=f,this.endSourceSpan=h,this.comments=g}visit(n,r){return n.visitComponent(this,r)}},Qu=class{constructor(e,n,r,s,i=null){l(this,"name");l(this,"attrs");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");this.name=e,this.attrs=n,this.sourceSpan=r,this.startSourceSpan=s,this.endSourceSpan=i}visit(e,n){return e.visitDirective(this,n)}},Il=class{constructor(e,n){l(this,"expression");l(this,"sourceSpan");this.expression=e,this.sourceSpan=n}visit(e,n){return e.visitBlockParameter(this,n)}},Al=class{constructor(e,n,r,s,i){l(this,"name");l(this,"value");l(this,"sourceSpan");l(this,"nameSpan");l(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=r,this.nameSpan=s,this.valueSpan=i}visit(e,n){return e.visitLetDeclaration(this,n)}};function fe(t,e,n=null){let r=[],s=t.visit?i=>t.visit(i,n)||i.visit(t,n):i=>i.visit(t,n);return e.forEach(i=>{let o=s(i);o&&r.push(o)}),r}var eh=new Map([["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}"],["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",`
`],["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"],["NotSucceedsTilde","\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"],["ThickSpace","\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"],["andslope","\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","\u22A1"],["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","\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"],["oslash","\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"]]),_g="\uE500";eh.set("ngsp",_g);var Ju=class{constructor(e,n,r){l(this,"tokens");l(this,"errors");l(this,"nonNormalizedIcuExpressions");this.tokens=e,this.errors=n,this.nonNormalizedIcuExpressions=r}};function TI(t,e,n,r={}){let s=new Zu(new ws(t,e),n,r);return s.tokenize(),new Ju(LI(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}var CI=/\r\n?/g;function Hs(t){return`Unexpected character "${t===Ke?"EOF":String.fromCharCode(t)}"`}function ld(t){return`Unknown entity "${t}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function xI(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var bl;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(bl||(bl={}));var NI=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@boundary","@error","@content"],to={start:"{{",end:"}}"},II=/^default[^\S\r\n]+never/,AI=/^else[^\S\r\n]+if/,Zu=class{constructor(e,n,r){l(this,"_getTagDefinition");l(this,"_cursor");l(this,"_tokenizeIcu");l(this,"_leadingTriviaCodePoints");l(this,"_currentTokenStart",null);l(this,"_currentTokenType",null);l(this,"_expansionCaseStack",[]);l(this,"_openDirectiveCount",0);l(this,"_inInterpolation",!1);l(this,"_preserveLineEndings");l(this,"_i18nNormalizeLineEndingsInICUs");l(this,"_tokenizeBlocks");l(this,"_tokenizeLet");l(this,"_selectorlessEnabled");l(this,"tokens",[]);l(this,"errors",[]);l(this,"nonNormalizedIcuExpressions",[]);var i,o,a;this._getTagDefinition=n,this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map(c=>c.codePointAt(0)||0);let s=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new ep(e,s):new Dl(e,s),this._preserveLineEndings=r.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=r.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=(i=r.tokenizeBlocks)!=null?i:!0,this._tokenizeLet=(o=r.tokenizeLet)!=null?o:!0,this._selectorlessEnabled=(a=r.selectorlessEnabled)!=null?a:!1;try{this._cursor.init()}catch(c){this.handleError(c)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(CI,`
`)}tokenize(){for(;this._cursor.peek()!==Ke;){let e=this._cursor.clone();try{this._attemptCharCode(ri)?this._attemptCharCode(du)?this._attemptCharCode(_n)?this._consumeCdata(e):this._attemptCharCode(ll)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(zt)?this._consumeTagClose(e):this._attemptCharCode(Ys)?this._consumeProcessingInstruction(e):this._consumeTagOpen(e):this._tokenizeLet&&this._cursor.peek()===Us&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(Dt)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(n){this.handleError(n)}}this._beginToken(43),this._endToken([])}_getBlockName(){let e=!1,n=this._cursor.clone();this._attemptCharCodeUntilFn(s=>Po(s)?!e:PI(s)?(e=!0,!1):!0);let r=this._cursor.getChars(n).trim();return AI.test(r)?r="else if":II.test(r)&&(r="default never"),r}_consumeBlockStart(e){this._requireCharCode(Us),this._beginToken(25,e);let n=this._endToken([this._getBlockName()]);if(this._cursor.peek()===_t)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(ge),this._attemptCharCode(Xe))this._attemptCharCodeUntilFn(ge);else{n.type=29;return}if(n.parts[0]==="default never"&&this._attemptCharCode(Ut)){this._beginToken(26),this._endToken([]),this._beginToken(27),this._endToken([]);return}this._attemptCharCode(an)?(this._beginToken(26),this._endToken([])):this._isBlockStart()&&(n.parts[0]==="case"||n.parts[0]==="default")?(this._beginToken(26),this._endToken([]),this._beginToken(27),this._endToken([])):n.type=29}_consumeBlockEnd(e){this._beginToken(27,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(ud);this._cursor.peek()!==Xe&&this._cursor.peek()!==Ke;){this._beginToken(28);let e=this._cursor.clone(),n=null,r=0;for(;this._cursor.peek()!==Ut&&this._cursor.peek()!==Ke||n!==null;){let s=this._cursor.peek();if(s===cs)this._cursor.advance();else if(s===n)n=null;else if(n===null&&mo(s))n=s;else if(s===_t&&n===null)r++;else if(s===Xe&&n===null){if(r===0)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(ud)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(30,e),Po(this._cursor.peek()))this._attemptCharCodeUntilFn(ge);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=33;return}let n=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(ge),!this._attemptCharCode(st)){n.type=33;return}this._attemptCharCodeUntilFn(s=>ge(s)&&!fo(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===Ut?(this._beginToken(32),this._cursor.advance(),this._endToken([])):(n.type=33,n.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),n=!1;return this._attemptCharCodeUntilFn(r=>Or(r)||r===ql||r===Kr||n&&sn(r)?(n=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();this._beginToken(31,e),this._attemptUntilIgnoreQuotes(n=>n===Ut),this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(_I(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===Dt){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,n=this._cursor.clone()){this._currentTokenStart=n,this._currentTokenType=e}_endToken(e,n){if(this._currentTokenStart===null)throw new L(this._cursor.getSpan(n),"Programming error - attempted to end a token when there was no start to the token");if(this._currentTokenType===null)throw new L(this._cursor.getSpan(this._currentTokenStart),"Programming error - attempted to end a token which has no token type");let r={type:this._currentTokenType,parts:e,sourceSpan:(n!=null?n:this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r}_createError(e,n){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let r=new L(n,e);return this._currentTokenStart=null,this._currentTokenType=null,r}handleError(e){if(e instanceof ca&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof L)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return RI(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let n=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Hs(this._cursor.peek()),this._cursor.getSpan(n))}_attemptStr(e){let n=e.length;if(this._cursor.charsLeft()<n)return!1;let r=this._cursor.clone();for(let s=0;s<n;s++)if(!this._attemptCharCode(e.charCodeAt(s)))return this._cursor=r,!1;return!0}_attemptStrCaseInsensitive(e){for(let n=0;n<e.length;n++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(n)))return!1;return!0}_requireStr(e){let n=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(Hs(this._cursor.peek()),this._cursor.getSpan(n))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,n){let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(r)<n)throw this._createError(Hs(this._cursor.peek()),this._cursor.getSpan(r))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_attemptUntilIgnoreQuotes(e){for(;this._cursor.peek()!==Ke;){let n=this._cursor.peek();if(e(n))break;mo(n)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(r=>r===cs?(this._cursor.advance(),!1):r===n)),this._cursor.advance()}}_readChar(){let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_peekStr(e){let n=e.length;if(this._cursor.charsLeft()<n)return!1;let r=this._cursor.clone();for(let s=0;s<n;s++){if(r.peek()!==e.charCodeAt(s))return!1;r.advance()}return!0}_isBlockStart(){return this._cursor.peek()===Us&&NI.some(e=>this._peekStr(e))}_isLetStart(){return this._cursor.peek()===Us&&this._peekStr("@let")}_consumeEntity(e){this._beginToken(9);let n=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(qm)){let r=this._attemptCharCode(Jm)||this._attemptCharCode(Mw),s=this._cursor.clone();if(this._attemptCharCodeUntilFn(DI),this._cursor.peek()!=Ut){this._cursor.advance();let o=r?bl.HEX:bl.DEC;throw this._createError(xI(o,this._cursor.getChars(n)),this._cursor.getSpan())}let i=this._cursor.getChars(s);this._cursor.advance();try{let o=parseInt(i,r?16:10);this._endToken([String.fromCodePoint(o),this._cursor.getChars(n)])}catch(o){throw this._createError(ld(this._cursor.getChars(n)),this._cursor.getSpan())}}else{let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(kI),this._cursor.peek()!=Ut)this._beginToken(e,n),this._cursor=r,this._endToken(["&"]);else{let s=this._cursor.getChars(r);this._cursor.advance();let i=eh.get(s);if(!i)throw this._createError(ld(s),this._cursor.getSpan(n));this._endToken([i,`&${s};`])}}}_consumeRawText(e,n){this._beginToken(e?6:7);let r=[];for(;;){let s=this._cursor.clone(),i=n();if(this._cursor=s,i)break;e&&this._cursor.peek()===al?(this._endToken([this._processCarriageReturns(r.join(""))]),r.length=0,this._consumeEntity(6),this._beginToken(6)):r.push(this._readChar())}this._endToken([this._processCarriageReturns(r.join(""))])}_consumeComment(e){this._beginToken(10,e),this._requireCharCode(ll),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeCdata(e){this._beginToken(13,e),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(14),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(19,e);let n=this._cursor.clone();this._attemptUntilChar(Nt);let r=this._cursor.getChars(n);this._cursor.advance(),this._endToken([r])}_consumeProcessingInstruction(e){this._beginToken(42,e);let n=this._cursor.clone();this._attemptUntilIgnoreQuotes(i=>i===Ys||i===Nt);let r=this._cursor.peek(),s=this._cursor.getChars(n);this._cursor.advance(),r===Ys&&this._requireCharCode(Nt),this._endToken([s])}_consumePrefixAndName(e){let n=this._cursor.clone(),r="";for(;this._cursor.peek()!==Dn&&!bI(this._cursor.peek());)this._cursor.advance();let s;this._cursor.peek()===Dn?(r=this._cursor.getChars(n),this._cursor.advance(),s=this._cursor.clone()):s=n,this._requireCharCodeUntilFn(e,r===""?0:1);let i=this._cursor.getChars(s);return[r,i]}_consumeSingleLineComment(e){let n=this._cursor.clone();this._attemptCharCodeUntilFn(i=>fo(i)||i===Ke);let r=this._cursor.clone(),s=r.getChars(n);this._beginToken(12,e),this._endToken([s,"single"],r),this._attemptCharCodeUntilFn(ge)}_consumeMultiLineComment(e){let n=this._cursor.clone();this._attemptCharCodeUntilFn(o=>{if(o===Ke)return!0;if(o===mu){let a=this._cursor.clone();return a.advance(),a.peek()===zt}return!1});let r=this._cursor.clone(),s=r.getChars(n),i=r;this._attemptStr("*/")&&(i=this._cursor.clone(),this._attemptCharCodeUntilFn(ge)),this._beginToken(12,e),this._endToken([s,"multi"],i)}_consumeTagOpen(e){let n,r,s,i;try{if(this._selectorlessEnabled&&Oa(this._cursor.peek()))i=this._consumeComponentOpenStart(e),[s,r,n]=i.parts,r&&(s+=`:${r}`),n&&(s+=`:${n}`),this._attemptCharCodeUntilFn(ge);else{if(!Or(this._cursor.peek()))throw this._createError(Hs(this._cursor.peek()),this._cursor.getSpan(e));i=this._consumeTagOpenStart(e),r=i.parts[0],n=s=i.parts[1],this._attemptCharCodeUntilFn(ge)}for(;;){let a=this._cursor.clone();if(this._attemptStr("//")){this._consumeSingleLineComment(a);continue}if(this._attemptStr("/*")){this._consumeMultiLineComment(a);continue}if(hd(this._cursor.peek()))break;if(this._selectorlessEnabled&&this._cursor.peek()===Us){let c=this._cursor.clone(),u=c.clone();u.advance(),Oa(u.peek())&&this._consumeDirective(c,u)}else this._consumeAttribute()}i.type===34?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(a){if(a instanceof L){i?i.type=i.type===34?38:4:(this._beginToken(5,e),this._endToken(["<"]));return}throw a}let o=this._getTagDefinition(n).getContentType(r);o===yn.RAW_TEXT?this._consumeRawTextWithTagClose(i,s,!1):o===yn.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(i,s,!0)}_consumeRawTextWithTagClose(e,n,r){this._consumeRawText(r,()=>!this._attemptCharCode(ri)||!this._attemptCharCode(zt)||(this._attemptCharCodeUntilFn(ge),!this._attemptStrCaseInsensitive(n))?!1:(this._attemptCharCodeUntilFn(ge),this._attemptCharCode(Nt))),this._beginToken(e.type===34?37:3),this._requireCharCodeUntilFn(s=>s===Nt,3),this._cursor.advance(),this._endToken(e.parts)}_consumeTagOpenStart(e){this._beginToken(0,e);let n=this._consumePrefixAndName(Zr);return this._endToken(n)}_consumeComponentOpenStart(e){this._beginToken(34,e);let n=this._consumeComponentName();return this._endToken(n)}_consumeComponentName(){let e=this._cursor.clone();for(;pd(this._cursor.peek());)this._cursor.advance();let n=this._cursor.getChars(e),r="",s="";return this._cursor.peek()===Dn&&(this._cursor.advance(),[r,s]=this._consumePrefixAndName(Zr)),[n,r,s]}_consumeAttribute(){this._consumeAttributeName(),this._attemptCharCodeUntilFn(ge),this._attemptCharCode(st)&&(this._attemptCharCodeUntilFn(ge),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(ge)}_consumeAttributeName(){let e=this._cursor.peek();if(e===Ro||e===_o)throw this._createError(Hs(e),this._cursor.getSpan());this._beginToken(15);let n;if(this._openDirectiveCount>0){let s=0;n=i=>{if(this._openDirectiveCount>0){if(i===_t)s++;else if(i===Xe){if(s===0)return!0;s--}}return Zr(i)}}else if(e===_n){let s=0;n=i=>(i===_n?s++:i===jn&&s--,s<=0?Zr(i):fo(i))}else n=Zr;let r=this._consumePrefixAndName(n);this._endToken(r)}_consumeAttributeValue(){if(this._cursor.peek()===Ro||this._cursor.peek()===_o){let e=this._cursor.peek();this._consumeQuote(e);let n=()=>this._cursor.peek()===e;this._consumeWithInterpolation(17,18,n,n),this._consumeQuote(e)}else{let e=()=>Zr(this._cursor.peek());this._consumeWithInterpolation(17,18,e,e)}}_consumeQuote(e){this._beginToken(16),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(zt)?2:1;this._beginToken(e),this._requireCharCode(Nt),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(zt)?36:35;this._beginToken(e),this._requireCharCode(Nt),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let r=e.clone();for(;r.peek()!==Nt&&!Oa(r.peek());)r.advance();if(Oa(r.peek())){this._beginToken(37,e);let s=this._consumeComponentName();this._attemptCharCodeUntilFn(ge),this._requireCharCode(Nt),this._endToken(s);return}}this._beginToken(3,e),this._attemptCharCodeUntilFn(ge);let n=this._consumePrefixAndName(Zr);this._attemptCharCodeUntilFn(ge),this._requireCharCode(Nt),this._endToken(n)}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(an),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let e=this._readUntil(mt),n=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([n]);else{let s=this._endToken([e]);n!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(mt),this._attemptCharCodeUntilFn(ge),this._beginToken(7);let r=this._readUntil(mt);this._endToken([r]),this._requireCharCode(mt),this._attemptCharCodeUntilFn(ge)}_consumeExpansionCaseStart(){this._beginToken(21);let e=this._readUntil(an).trim();this._endToken([e]),this._attemptCharCodeUntilFn(ge),this._beginToken(22),this._requireCharCode(an),this._endToken([]),this._attemptCharCodeUntilFn(ge),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(Dt),this._endToken([]),this._attemptCharCodeUntilFn(ge),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(Dt),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,n,r,s){this._beginToken(e);let i=[];for(;!r();){let o=this._cursor.clone();this._attemptStr(to.start)?(this._endToken([this._processCarriageReturns(i.join(""))],o),i.length=0,this._consumeInterpolation(n,o,s),this._beginToken(e)):this._cursor.peek()===al?(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,n,r){let s=[];this._beginToken(e,n),s.push(to.start);let i=this._cursor.clone(),o=null,a=!1;for(;this._cursor.peek()!==Ke&&(r===null||!r());){let c=this._cursor.clone();if(this._isTagStart()){this._cursor=c,s.push(this._getProcessedChars(i,c)),this._endToken(s);return}if(o===null)if(this._attemptStr(to.end)){s.push(this._getProcessedChars(i,c)),s.push(to.end),this._endToken(s);return}else this._attemptStr("//")&&(a=!0);let u=this._cursor.peek();this._cursor.advance(),u===cs?this._cursor.advance():u===o?o=null:!a&&o===null&&mo(u)&&(o=u)}s.push(this._getProcessedChars(i,this._cursor)),this._endToken(s)}_consumeDirective(e,n){for(this._requireCharCode(Us),this._cursor.advance();pd(this._cursor.peek());)this._cursor.advance();this._beginToken(39,e);let r=this._cursor.getChars(n);if(this._endToken([r]),this._attemptCharCodeUntilFn(ge),this._cursor.peek()===_t){for(this._openDirectiveCount++,this._beginToken(40),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(ge);!hd(this._cursor.peek())&&this._cursor.peek()!==Xe;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(ge),this._openDirectiveCount--,this._cursor.peek()!==Xe){if(this._cursor.peek()===Nt||this._cursor.peek()===zt)return;throw this._createError(Hs(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(41),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(ge)}}_getProcessedChars(e,n){return this._processCarriageReturns(n.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===Ke||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===Dt&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===Dt))}_isTagStart(){if(this._cursor.peek()===ri){let e=this._cursor.clone();e.advance();let n=e.peek();if(Ss<=n&&n<=Sa||zr<=n&&n<=Pi||n===zt||n===du||n===Ys)return!0}return!1}_readUntil(e){let n=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(n)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==an)return!1;let e=this._cursor.clone(),n=this._attemptStr(to.start);return this._cursor=e,!n}};function ge(t){return!Po(t)||t===Ke}function Zr(t){return Po(t)||t===Nt||t===ri||t===zt||t===Ro||t===_o||t===st||t===Ke}function bI(t){return(t<Ss||Sa<t)&&(t<zr||Pi<t)&&(t<$p||t>jm)}function DI(t){return t===Ut||t===Ke||!$w(t)}function kI(t){return t===Ut||t===Ke||!(Or(t)||sn(t))}function _I(t){return t!==Dt}function RI(t,e){return cd(t)===cd(e)}function cd(t){return t>=Ss&&t<=Sa?t-Ss+zr:t}function PI(t){return Or(t)||sn(t)||t===Kr}function ud(t){return t!==Ut&&ge(t)}function Oa(t){return t===Kr||t>=zr&&t<=Pi}function pd(t){return Or(t)||sn(t)||t===Kr}function hd(t){return t===zt||t===Nt||t===ri||t===Ke}function LI(t){let e=[],n;for(let r=0;r<t.length;r++){let s=t[r];n&&n.type===5&&s.type===5||n&&n.type===17&&s.type===17?(n.parts[0]+=s.parts[0],n.sourceSpan.end=s.sourceSpan.end):(n=s,e.push(n))}return e}var Dl=class t{constructor(e,n){l(this,"state");l(this,"file");l(this,"input");l(this,"end");if(e instanceof t){this.file=e.file,this.input=e.input,this.end=e.end;let r=e.state;this.state={peek:r.peek,offset:r.offset,line:r.line,column:r.column}}else{if(!n)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=n.endPos,this.state={peek:-1,offset:n.startPos,line:n.startLine,column:n.startCol}}}clone(){return new t(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,n){e=e||this;let r=e;if(n)for(;this.diff(e)>0&&n.indexOf(e.peek())!==-1;)r===e&&(e=e.clone()),e.advance();let s=this.locationFromCursor(e),i=this.locationFromCursor(this),o=r!==e?this.locationFromCursor(r):s;return new G(s,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 ca('Unexpected character "EOF"',this);let n=this.charAt(e.offset);n===ls?(e.line++,e.column=0):fo(n)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?Ke:this.charAt(e.offset)}locationFromCursor(e){return new Es(e.file,e.state.offset,e.state.line,e.state.column)}},ep=class t extends Dl{constructor(n,r){var e=(...R1)=>(super(...R1),l(this,"internalState"),this);n instanceof t?(e(n),this.internalState=C({},n.internalState)):(e(n,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new t(this)}getChars(n){let r=n.clone(),s="";for(;r.internalState.offset<this.internalState.offset;)s+=String.fromCodePoint(r.peek()),r.advance();return s}processEscapeSequence(){let n=()=>this.internalState.peek;if(n()===cs)if(this.internalState=C({},this.state),this.advanceState(this.internalState),n()===zm)this.state.peek=ls;else if(n()===Km)this.state.peek=Bp;else if(n()===Qm)this.state.peek=Vm;else if(n()===Xm)this.state.peek=Fp;else if(n()===Fw)this.state.peek=kw;else if(n()===Up)this.state.peek=Gm;else if(n()===Ym)if(this.advanceState(this.internalState),n()===an){this.advanceState(this.internalState);let r=this.clone(),s=0;for(;n()!==Dt;)this.advanceState(this.internalState),s++;this.state.peek=this.decodeHexDigits(r,s)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(n()===Jm){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(Rf(n())){let r="",s=0,i=this.clone();for(;Rf(n())&&s<3;)i=this.clone(),r+=String.fromCodePoint(n()),this.advanceState(this.internalState),s++;this.state.peek=parseInt(r,8),this.internalState=i.internalState}else fo(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(n,r){let s=this.input.slice(n.internalState.offset,n.internalState.offset+r),i=parseInt(s,16);if(isNaN(i))throw n.state=n.internalState,new ca("Invalid hexadecimal escape sequence",n);return i}},ca=class extends Error{constructor(n,r){super(n);l(this,"msg");l(this,"cursor");this.msg=n,this.cursor=r,Object.setPrototypeOf(this,new.target.prototype)}},$e=class t extends L{constructor(n,r,s){super(r,s);l(this,"elementName");this.elementName=n}static create(n,r,s){return new t(n,r,s)}},kl=class{constructor(e,n){l(this,"rootNodes");l(this,"errors");this.rootNodes=e,this.errors=n}},MI=class{constructor(e){l(this,"getTagDefinition");this.getTagDefinition=e}parse(e,n,r){let s=TI(e,n,this.getTagDefinition,r),i=new tp(s.tokens,this.getTagDefinition);return i.build(),new kl(i.rootNodes,[...s.errors,...i.errors])}},tp=class t{constructor(e,n){l(this,"tokens");l(this,"tagDefinitionResolver");l(this,"_index",-1);l(this,"_peek");l(this,"_containerStack",[]);l(this,"rootNodes",[]);l(this,"errors",[]);this.tokens=e,this.tagDefinitionResolver=n,this._advance()}build(){for(;this._peek.type!==43;)this._peek.type===0||this._peek.type===4?this._consumeElementStartTag(this._advance()):this._peek.type===3?this._consumeElementEndTag(this._advance()):this._peek.type===13?(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===20?this._consumeExpansion(this._advance()):this._peek.type===25?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===27?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===30?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===33?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===34||this._peek.type===38?this._consumeComponentStartTag(this._advance()):this._peek.type===37?this._consumeComponentEndTag(this._advance()):this._advance();for(let e of this._containerStack)e instanceof on&&this.errors.push($e.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(14)}_consumeComment(e){let n=this._advanceIf(7),r=this._advanceIf(11),s=n!=null?n.parts[0].trim():null,i=r==null?e.sourceSpan:new G(e.sourceSpan.start,r.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new la(s,i))}_consumeExpansion(e){let n=this._advance(),r=this._advance(),s=[];for(;this._peek.type===21;){let o=this._parseExpansionCase();if(!o)return;s.push(o)}if(this._peek.type!==24){this.errors.push($e.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let i=new G(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new ds(n.parts[0],r.parts[0],s,i,n.sourceSpan)),this._advance()}_parseExpansionCase(){let e=this._advance();if(this._peek.type!==22)return this.errors.push($e.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;let s=this._advance();r.push({type:43,parts:[],sourceSpan:s.sourceSpan});let i=new t(r,this.tagDefinitionResolver);if(i.build(),i.errors.length>0)return this.errors=this.errors.concat(i.errors),null;let o=new G(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart),a=new G(n.sourceSpan.start,s.sourceSpan.end,n.sourceSpan.fullStart);return new Nl(e.parts[0],i.rootNodes,o,e.sourceSpan,a)}_collectExpansionExpTokens(e){let n=[],r=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&r.push(this._peek.type),this._peek.type===23)if(fd(r,22)){if(r.pop(),r.length===0)return n}else return this.errors.push($e.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(fd(r,20))r.pop();else return this.errors.push($e.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===43)return this.errors.push($e.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.push(this._advance())}}_consumeText(e){var i;let n=[e],r=e.sourceSpan,s=e.parts[0];if(s.length>0&&s[0]===`
`){let o=this._getContainer();o!=null&&o.children.length===0&&((i=this._getTagDefinition(o))!=null&&i.ignoreFirstLf)&&(s=s.substring(1),n[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[s]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),n.push(e),e.type===8?s+=e.parts.join("").replace(/&([^;]+);/g,dd):e.type===9?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let o=e.sourceSpan;this._addToParent(new Ls(s,new G(r.start,o.end,r.fullStart,r.details),n))}}_closeVoidElement(){var n;let e=this._getContainer();e!==null&&((n=this._getTagDefinition(e))!=null&&n.isVoid)&&this._containerStack.pop()}_consumeElementStartTag(e){var y,E;let n=[],r=[],s=[];this._consumeAttributesAndDirectives(n,r,s);let i=this._getElementFullName(e,this._getClosestElementLikeParent()),o=this._getTagDefinition(i),a=!1;this._peek.type===2?(this._advance(),a=!0,o!=null&&o.canSelfClose||xu(i)!==null||o!=null&&o.isVoid||this.errors.push($e.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))):this._peek.type===1&&(this._advance(),a=!1);let c=this._peek.sourceSpan.fullStart,u=new G(e.sourceSpan.start,c,e.sourceSpan.fullStart),f=new G(e.sourceSpan.start,c,e.sourceSpan.fullStart),h=new rn(i,n,r,[],a,u,f,void 0,(y=o==null?void 0:o.isVoid)!=null?y:!1,void 0,s),p=this._getContainer(),g=p!==null&&!!((E=this._getTagDefinition(p))!=null&&E.isClosedByChild(h.name));this._pushContainer(h,g),a?this._popContainer(i,rn,u):e.type===4&&(this._popContainer(i,rn,null),this.errors.push($e.create(i,u,`Opening tag "${i}" not terminated.`)))}_consumeComponentStartTag(e){var w;let n=e.parts[0],r=[],s=[],i=[];this._consumeAttributesAndDirectives(r,s,i);let o=this._getClosestElementLikeParent(),a=this._getComponentTagName(e,o),c=this._getComponentFullName(e,o),u=this._peek.type===36;this._advance();let f=this._peek.sourceSpan.fullStart,h=new G(e.sourceSpan.start,f,e.sourceSpan.fullStart),p=new G(e.sourceSpan.start,f,e.sourceSpan.fullStart),g=new It(n,a,c,r,s,[],u,h,p,void 0,void 0,i),y=this._getContainer(),E=y!==null&&g.tagName!==null&&!!((w=this._getTagDefinition(y))!=null&&w.isClosedByChild(g.tagName));this._pushContainer(g,E),u?this._popContainer(c,It,h):e.type===38&&(this._popContainer(c,It,null),this.errors.push($e.create(c,h,`Opening tag "${c}" not terminated.`)))}_consumeAttributesAndDirectives(e,n,r){for(;this._peek.type===15||this._peek.type===39||this._peek.type===12;)if(this._peek.type===39)n.push(this._consumeDirective(this._peek));else if(this._peek.type===15)e.push(this._consumeAttr(this._advance()));else{let s=this._advance();r.push(new Yu(s.parts[0],s.parts[1],s.sourceSpan))}}_consumeComponentEndTag(e){let n=this._getComponentFullName(e,this._getClosestElementLikeParent());if(!this._popContainer(n,It,e.sourceSpan)){let r=this._containerStack[this._containerStack.length-1],s;r instanceof It&&r.componentName===e.parts[0]?s=`, did you mean "${r.fullName}"?`:s=". It may happen when the tag has already been closed by another tag.";let i=`Unexpected closing tag "${n}"${s}`;this.errors.push($e.create(n,e.sourceSpan,i))}}_getTagDefinition(e){return typeof e=="string"?this.tagDefinitionResolver(e):e instanceof rn?this.tagDefinitionResolver(e.name):e instanceof It&&e.tagName!==null?this.tagDefinitionResolver(e.tagName):null}_pushContainer(e,n){n&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeElementEndTag(e){var r;let n=this._getElementFullName(e,this._getClosestElementLikeParent());if((r=this._getTagDefinition(n))!=null&&r.isVoid)this.errors.push($e.create(n,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(n,rn,e.sourceSpan)){let s=`Unexpected closing tag "${n}". 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($e.create(n,e.sourceSpan,s))}}_popContainer(e,n,r){var i;let s=!1;for(let o=this._containerStack.length-1;o>=0;o--){let a=this._containerStack[o];if(((a instanceof It?a.fullName:a.name)===e||e===null)&&a instanceof n)return a.endSourceSpan=r,a.sourceSpan.end=r!==null?r.end:a.sourceSpan.end,this._containerStack.splice(o,this._containerStack.length-o),!s;(a instanceof on||!((i=this._getTagDefinition(a))!=null&&i.closedByParent))&&(s=!0)}return!1}_consumeAttr(e){let n=Xa(e.parts[0],e.parts[1]),r=e.sourceSpan.end;this._peek.type===16&&this._advance();let s="",i=[],o,a;if(this._peek.type===17)for(o=this._peek.sourceSpan,a=this._peek.sourceSpan.end;this._peek.type===17||this._peek.type===18||this._peek.type===9;){let f=this._advance();i.push(f),f.type===18?s+=f.parts.join("").replace(/&([^;]+);/g,dd):f.type===9?s+=f.parts[0]:s+=f.parts.join(""),a=r=f.sourceSpan.end}this._peek.type===16&&(r=this._advance().sourceSpan.end);let u=o&&a&&new G(o.start,a,o.fullStart);return new Xu(n,s,new G(e.sourceSpan.start,r,e.sourceSpan.fullStart),e.sourceSpan,u,i.length>0?i:void 0,void 0)}_consumeDirective(e){let n=[],r=e.sourceSpan.end,s=null;if(this._advance(),this._peek.type===40){for(r=this._peek.sourceSpan.end,this._advance();this._peek.type===15;)n.push(this._consumeAttr(this._advance()));this._peek.type===41?(s=this._peek.sourceSpan,this._advance()):this.errors.push($e.create(null,e.sourceSpan,"Unterminated directive definition"))}let i=new G(e.sourceSpan.start,r,e.sourceSpan.fullStart),o=new G(i.start,s===null?e.sourceSpan.end:s.end,i.fullStart);return new Qu(e.parts[0],n,o,i,s)}_consumeBlockOpen(e){let n=[];for(;this._peek.type===28;){let a=this._advance();n.push(new Il(a.parts[0],a.sourceSpan))}this._peek.type===26&&this._advance();let r=this._peek.sourceSpan.fullStart,s=new G(e.sourceSpan.start,r,e.sourceSpan.fullStart),i=new G(e.sourceSpan.start,r,e.sourceSpan.fullStart),o=new on(e.parts[0],n,[],s,e.sourceSpan,i);this._pushContainer(o,!1)}_consumeBlockClose(e){let n=this._containerStack.length,r=this._containerStack[n-1];if(!this._popContainer(null,on,e.sourceSpan)){if(this._containerStack.length<n){let s=r instanceof It?r.fullName:r.name;this.errors.push($e.create(null,e.sourceSpan,`Unexpected closing block. The block may have been closed earlier. Did you forget to close the <${s}> element? If you meant to write the \`}\` character, you should use the "}" HTML entity instead.`));return}this.errors.push($e.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 n=[];for(;this._peek.type===28;){let a=this._advance();n.push(new Il(a.parts[0],a.sourceSpan))}let r=this._peek.sourceSpan.fullStart,s=new G(e.sourceSpan.start,r,e.sourceSpan.fullStart),i=new G(e.sourceSpan.start,r,e.sourceSpan.fullStart),o=new on(e.parts[0],n,[],s,e.sourceSpan,i);this._pushContainer(o,!1),this._popContainer(null,on,null),this.errors.push($e.create(e.parts[0],s,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(e){let n=e.parts[0],r,s;if(this._peek.type!==31){this.errors.push($e.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${n}". Declaration must have a value.`));return}else r=this._advance();if(this._peek.type!==32){this.errors.push($e.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${n}". Declaration must be terminated with a semicolon.`));return}else s=this._advance();let i=s.sourceSpan.end,o=new G(e.sourceSpan.start,i,e.sourceSpan.fullStart),a=e.sourceSpan.toString().lastIndexOf(n),c=e.sourceSpan.start.moveBy(a),u=new G(c,e.sourceSpan.end),f=new Al(n,r.parts[0],o,u,r.sourceSpan);this._addToParent(f)}_consumeIncompleteLet(e){var s;let n=(s=e.parts[0])!=null?s:"",r=n?` "${n}"`:"";if(n.length>0){let i=e.sourceSpan.toString().lastIndexOf(n),o=e.sourceSpan.start.moveBy(i),a=new G(o,e.sourceSpan.end),c=new G(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),u=new Al(n,"",e.sourceSpan,a,c);this._addToParent(u)}this.errors.push($e.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${r}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let e=this._containerStack.length-1;e>-1;e--){let n=this._containerStack[e];if(n instanceof rn||n instanceof It)return n}return null}_addToParent(e){let n=this._getContainer();n===null?this.rootNodes.push(e):n.children.push(e)}_getElementFullName(e,n){let r=this._getPrefix(e,n);return Xa(r,e.parts[1])}_getComponentFullName(e,n){let r=e.parts[0],s=this._getComponentTagName(e,n);return s===null?r:s.startsWith(":")?r+s:`${r}:${s}`}_getComponentTagName(e,n){let r=this._getPrefix(e,n),s=e.parts[2];return!r&&!s?null:!r&&s?s:Xa(r,s||"ng-component")}_getPrefix(e,n){var i;let r,s;if(e.type===34||e.type===38||e.type===37?(r=e.parts[1],s=e.parts[2]):(r=e.parts[0],s=e.parts[1]),r=r||((i=this._getTagDefinition(s))==null?void 0:i.implicitNamespacePrefix)||"",!r&&n){let o=n instanceof rn?n.name:n.tagName;if(o!==null){let a=tt(o)[1],c=this._getTagDefinition(a);c!==null&&!c.preventNamespaceInheritance&&(r=xu(o))}}return r}};function fd(t,e){return t.length>0&&t[t.length-1]===e}function dd(t,e){let n=eh.get(e);return 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)):t)}var Rg="ngPreserveWhitespaces",md=new Set(["pre","template","textarea","script","style"]),Pg=` \f
\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,OI=new RegExp(`[^${Pg}]`),FI=new RegExp(`[${Pg}]{2,}`,"g");function gd(t){return t.some(e=>e.name===Rg)}function Lg(t){return t.replace(new RegExp(_g,"g")," ")}var _l=class{constructor(e,n,r=!0){l(this,"preserveSignificantWhitespace");l(this,"originalNodeMap");l(this,"requireContext");l(this,"icuExpansionDepth",0);this.preserveSignificantWhitespace=e,this.originalNodeMap=n,this.requireContext=r}visitElement(e,n){var s,i;if(md.has(e.name)||gd(e.attrs)){let o=new rn(e.name,xn(this,e.attrs),xn(this,e.directives),e.children,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n,e.comments);return(s=this.originalNodeMap)==null||s.set(o,e),o}let r=new rn(e.name,e.attrs,e.directives,xn(this,e.children),e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n,e.comments);return(i=this.originalNodeMap)==null||i.set(r,e),r}visitAttribute(e,n){return e.name!==Rg?e:null}visitText(e,n){var o;let r=e.value.match(OI),s=n&&(n.prev instanceof ds||n.next instanceof ds);if(this.icuExpansionDepth>0&&this.preserveSignificantWhitespace)return e;if(r||s){let a=e.tokens.map(h=>h.type===5?VI(h):h);if(!this.preserveSignificantWhitespace&&a.length>0){let h=a[0];a.splice(0,1,BI(h,n));let p=a[a.length-1];a.splice(a.length-1,1,$I(p,n))}let c=Og(e.value),u=this.preserveSignificantWhitespace?c:UI(c,n),f=new Ls(u,e.sourceSpan,a,e.i18n);return(o=this.originalNodeMap)==null||o.set(f,e),f}return null}visitComment(e,n){return e}visitExpansion(e,n){var s;this.icuExpansionDepth++;let r;try{r=new ds(e.switchValue,e.type,xn(this,e.cases),e.sourceSpan,e.switchValueSourceSpan,e.i18n)}finally{this.icuExpansionDepth--}return(s=this.originalNodeMap)==null||s.set(r,e),r}visitExpansionCase(e,n){var s;let r=new Nl(e.value,xn(this,e.expression),e.sourceSpan,e.valueSourceSpan,e.expSourceSpan);return(s=this.originalNodeMap)==null||s.set(r,e),r}visitBlock(e,n){var s;let r=new on(e.name,e.parameters,xn(this,e.children),e.sourceSpan,e.nameSpan,e.startSourceSpan,e.endSourceSpan);return(s=this.originalNodeMap)==null||s.set(r,e),r}visitBlockParameter(e,n){return e}visitLetDeclaration(e,n){return e}visitComponent(e,n){var s,i;if(e.tagName&&md.has(e.tagName)||gd(e.attrs)){let o=new It(e.componentName,e.tagName,e.fullName,xn(this,e.attrs),xn(this,e.directives),e.children,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n,e.comments);return(s=this.originalNodeMap)==null||s.set(o,e),o}let r=new It(e.componentName,e.tagName,e.fullName,e.attrs,e.directives,xn(this,e.children),e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n,e.comments);return(i=this.originalNodeMap)==null||i.set(r,e),r}visitDirective(e,n){return e}visit(e,n){if(this.requireContext&&!n)throw new Error("WhitespaceVisitor requires context. Visit via `visitAllWithSiblings` to get this context.");return!1}};function BI(t,e){return t.type!==5||!!(e!=null&&e.prev)?t:Mg(t,r=>r.trimStart())}function $I(t,e){return t.type!==5||!!(e!=null&&e.next)?t:Mg(t,r=>r.trimEnd())}function UI(t,e){let n=!(e!=null&&e.prev),r=!(e!=null&&e.next),s=n?t.trimStart():t;return r?s.trimEnd():s}function VI({type:t,parts:e,sourceSpan:n}){return{type:t,parts:[Og(e[0])],sourceSpan:n}}function Mg({type:t,parts:e,sourceSpan:n},r){return{type:t,parts:[r(e[0])],sourceSpan:n}}function Og(t){return Lg(t).replace(FI," ")}function xn(t,e){let n=[];return e.forEach((r,s)=>{let i={prev:e[s-1],next:e[s+1]},o=r.visit(t,i);o&&n.push(o)}),n}var j;(function(t){t[t.Character=0]="Character",t[t.Identifier=1]="Identifier",t[t.PrivateIdentifier=2]="PrivateIdentifier",t[t.Keyword=3]="Keyword",t[t.String=4]="String",t[t.Operator=5]="Operator",t[t.Number=6]="Number",t[t.RegExpBody=7]="RegExpBody",t[t.RegExpFlags=8]="RegExpFlags",t[t.Error=9]="Error"})(j||(j={}));var Ir;(function(t){t[t.Plain=0]="Plain",t[t.TemplateLiteralPart=1]="TemplateLiteralPart",t[t.TemplateLiteralEnd=2]="TemplateLiteralEnd"})(Ir||(Ir={}));var GI=["var","let","as","null","undefined","true","false","if","else","this","typeof","void","in","instanceof"],ua=class{tokenize(e){return new np(e).scan()}},Zt=class{constructor(e,n,r,s,i){l(this,"index");l(this,"end");l(this,"type");l(this,"numValue");l(this,"strValue");this.index=e,this.end=n,this.type=r,this.numValue=s,this.strValue=i}isCharacter(e){return this.type===j.Character&&this.numValue===e}isNumber(){return this.type===j.Number}isString(){return this.type===j.String}isOperator(e){return this.type===j.Operator&&this.strValue===e}isIdentifier(){return this.type===j.Identifier}isPrivateIdentifier(){return this.type===j.PrivateIdentifier}isKeyword(){return this.type===j.Keyword}isKeywordLet(){return this.type===j.Keyword&&this.strValue==="let"}isKeywordAs(){return this.type===j.Keyword&&this.strValue==="as"}isKeywordNull(){return this.type===j.Keyword&&this.strValue==="null"}isKeywordUndefined(){return this.type===j.Keyword&&this.strValue==="undefined"}isKeywordTrue(){return this.type===j.Keyword&&this.strValue==="true"}isKeywordFalse(){return this.type===j.Keyword&&this.strValue==="false"}isKeywordThis(){return this.type===j.Keyword&&this.strValue==="this"}isKeywordTypeof(){return this.type===j.Keyword&&this.strValue==="typeof"}isKeywordVoid(){return this.type===j.Keyword&&this.strValue==="void"}isKeywordIn(){return this.type===j.Keyword&&this.strValue==="in"}isKeywordInstanceOf(){return this.type===j.Keyword&&this.strValue==="instanceof"}isError(){return this.type===j.Error}isRegExpBody(){return this.type===j.RegExpBody}isRegExpFlags(){return this.type===j.RegExpFlags}toNumber(){return this.type===j.Number?this.numValue:-1}isTemplateLiteralPart(){return this.isString()&&this.kind===Ir.TemplateLiteralPart}isTemplateLiteralEnd(){return this.isString()&&this.kind===Ir.TemplateLiteralEnd}isTemplateLiteralInterpolationStart(){return this.isOperator("${")}toString(){switch(this.type){case j.Character:case j.Identifier:case j.Keyword:case j.Operator:case j.PrivateIdentifier:case j.String:case j.Error:case j.RegExpBody:case j.RegExpFlags:return this.strValue;case j.Number:return this.numValue.toString();default:return null}}},go=class extends Zt{constructor(n,r,s,i){super(n,r,j.String,0,s);l(this,"kind");this.kind=i}};function no(t,e,n){return new Zt(t,e,j.Character,n,String.fromCharCode(n))}function HI(t,e,n){return new Zt(t,e,j.Identifier,0,n)}function qI(t,e,n){return new Zt(t,e,j.PrivateIdentifier,0,n)}function WI(t,e,n){return new Zt(t,e,j.Keyword,0,n)}function mr(t,e,n){return new Zt(t,e,j.Operator,0,n)}function jI(t,e,n){return new Zt(t,e,j.Number,n,"")}function zI(t,e,n){return new Zt(t,e,j.Error,0,n)}function KI(t,e,n){return new Zt(t,e,j.RegExpBody,0,n)}function XI(t,e,n){return new Zt(t,e,j.RegExpFlags,0,n)}var ro=new Zt(-1,-1,j.Character,0,""),np=class{constructor(e){l(this,"input");l(this,"tokens",[]);l(this,"length");l(this,"peek",0);l(this,"index",-1);l(this,"braceStack",[]);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?Ke:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,n=this.length,r=this.peek,s=this.index;for(;r<=Hm;)if(++s>=n){r=Ke;break}else r=e.charCodeAt(s);if(this.peek=r,this.index=s,s>=n)return null;if(yd(r))return this.scanIdentifier();if(sn(r))return this.scanNumber(s);let i=s;switch(r){case es:return this.advance(),sn(this.peek)?this.scanNumber(i):this.peek!==es?no(i,this.index,es):(this.advance(),this.peek===es?(this.advance(),mr(i,this.index,"...")):this.error(`Unexpected character [${String.fromCharCode(r)}]`,0));case _t:case Xe:case _n:case jn:case mt:case Dn:case Ut:return this.scanCharacter(i,r);case an:return this.scanOpenBrace(i,r);case Dt:return this.scanCloseBrace(i,r);case Ro:case _o:return this.scanString();case gu:return this.advance(),this.scanTemplateLiteralPart(i);case qm:return this.scanPrivateIdentifier();case Wm:return this.scanComplexOperator(i,"+",st,"=");case ll:return this.scanComplexOperator(i,"-",st,"=");case zt:return this.isStartOfRegex()?this.scanRegex(s):this.scanComplexOperator(i,"/",st,"=");case _w:return this.scanComplexOperator(i,"%",st,"=");case Ow:return this.scanOperator(i,"^");case mu:return this.scanStar(i);case Ys:return this.scanQuestion(i);case ri:case Nt:return this.scanComplexOperator(i,String.fromCharCode(r),st,"=");case du:return this.scanComplexOperator(i,"!",st,"=",st,"=");case st:return this.scanEquals(i);case al:return this.scanComplexOperator(i,"&",al,"&",st,"=");case _f:return this.scanComplexOperator(i,"|",_f,"|",st,"=");case Zm:for(;Po(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(r)}]`,0)}scanCharacter(e,n){return this.advance(),no(e,this.index,n)}scanOperator(e,n){return this.advance(),mr(e,this.index,n)}scanOpenBrace(e,n){return this.braceStack.push("expression"),this.advance(),no(e,this.index,n)}scanCloseBrace(e,n){return this.advance(),this.braceStack.pop()==="interpolation"?(this.tokens.push(no(e,this.index,Dt)),this.scanTemplateLiteralPart(this.index)):no(e,this.index,n)}scanComplexOperator(e,n,r,s,i,o){this.advance();let a=n;return this.peek==r&&(this.advance(),a+=s),i!=null&&this.peek==i&&(this.advance(),a+=o),mr(e,this.index,a)}scanEquals(e){this.advance();let n="=";if(this.peek===st)this.advance(),n+="=";else if(this.peek===Nt)return this.advance(),n+=">",mr(e,this.index,n);return this.peek===st&&(this.advance(),n+="="),mr(e,this.index,n)}scanIdentifier(){let e=this.index;for(this.advance();vd(this.peek);)this.advance();let n=this.input.substring(e,this.index);return GI.indexOf(n)>-1?WI(e,this.index,n):HI(e,this.index,n)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!yd(this.peek))return this.error("Invalid character [#]",-1);for(;vd(this.peek);)this.advance();let n=this.input.substring(e,this.index);return qI(e,this.index,n)}scanNumber(e){let n=this.index===e,r=!1;for(this.advance();;){if(!sn(this.peek))if(this.peek===Kr){if(!sn(this.input.charCodeAt(this.index-1))||!sn(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);r=!0}else if(this.peek===es)n=!1;else if(YI(this.peek)){if(this.advance(),QI(this.peek)&&this.advance(),!sn(this.peek))return this.error("Invalid exponent",-1);n=!1}else break;this.advance()}let s=this.input.substring(e,this.index);r&&(s=s.replace(/_/g,""));let i=n?ZI(s):parseFloat(s);return jI(e,this.index,i)}scanString(){let e=this.index,n=this.peek;this.advance();let r="",s=this.index,i=this.input;for(;this.peek!=n;)if(this.peek==cs){let a=this.scanStringBackslash(r,s);if(typeof a!="string")return a;r=a,s=this.index}else{if(this.peek==Ke)return this.error("Unterminated quote",0);this.advance()}let o=i.substring(s,this.index);return this.advance(),new go(e,this.index,r+o,Ir.Plain)}scanQuestion(e){this.advance();let n="?";return this.peek===Ys?(n+="?",this.advance(),this.peek===st&&(n+="=",this.advance())):this.peek===es&&(n+=".",this.advance()),mr(e,this.index,n)}scanTemplateLiteralPart(e){let n="",r=this.index;for(;this.peek!==gu;)if(this.peek===cs){let i=this.scanStringBackslash(n,r);if(typeof i!="string")return i;n=i,r=this.index}else if(this.peek===ql){let i=this.index;if(this.advance(),this.peek===an)return this.braceStack.push("interpolation"),this.tokens.push(new go(e,i,n+this.input.substring(r,i),Ir.TemplateLiteralPart)),this.advance(),mr(i,this.index,this.input.substring(i,this.index))}else{if(this.peek===Ke)return this.error("Unterminated template literal",0);this.advance()}let s=this.input.substring(r,this.index);return this.advance(),new go(e,this.index,n+s,Ir.TemplateLiteralEnd)}error(e,n){let r=this.index+n;return zI(r,this.index,`Lexer Error: ${e} at column ${r} in expression [${this.input}]`)}scanStringBackslash(e,n){e+=this.input.substring(n,this.index);let r;if(this.advance(),this.peek===Ym){let s=this.input.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(s))r=parseInt(s,16);else return this.error(`Invalid unicode escape [\\u${s}]`,0);for(let i=0;i<5;i++)this.advance()}else r=JI(this.peek),this.advance();return e+=String.fromCharCode(r),e}scanStar(e){this.advance();let n="*";return this.peek===mu?(n+="*",this.advance(),this.peek===st&&(n+="=",this.advance())):this.peek===st&&(n+="=",this.advance()),mr(e,this.index,n)}isStartOfRegex(){if(this.tokens.length===0)return!0;let e=this.tokens[this.tokens.length-1];if(e.isOperator("!")){let n=this.tokens.length>1?this.tokens[this.tokens.length-2]:null;return n===null||n.type!==j.Identifier&&!n.isCharacter(Xe)&&!n.isCharacter(jn)}return e.type===j.Operator||e.isCharacter(_t)||e.isCharacter(_n)||e.isCharacter(mt)||e.isCharacter(Dn)}scanRegex(e){this.advance();let n=this.index,r=!1,s=!1;for(;;){let c=this.peek;if(c===Ke)return this.error("Unterminated regular expression",0);if(r)r=!1;else if(c===cs)r=!0;else if(c===_n)s=!0;else if(c===jn)s=!1;else if(c===zt&&!s)break;this.advance()}let i=this.input.substring(n,this.index);this.advance();let o=KI(e,this.index,i),a=this.scanRegexFlags(this.index);return a!==null?(this.tokens.push(o),a):o}scanRegexFlags(e){if(!Or(this.peek))return null;for(;Or(this.peek);)this.advance();return XI(e,this.index,this.input.substring(e,this.index))}};function yd(t){return Ss<=t&&t<=Sa||zr<=t&&t<=Pi||t==Kr||t==ql}function vd(t){return Or(t)||sn(t)||t==Kr||t==ql}function YI(t){return t==Bw||t==Pw}function QI(t){return t==ll||t==Wm}function JI(t){switch(t){case zm:return ls;case Up:return Gm;case Km:return Bp;case Xm:return Fp;case Qm:return Vm;default:return t}}function ZI(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var rp=class{constructor(e,n,r){l(this,"strings");l(this,"expressions");l(this,"offsets");this.strings=e,this.expressions=n,this.offsets=r}},sp=class{constructor(e,n,r){l(this,"templateBindings");l(this,"warnings");l(this,"errors");this.templateBindings=e,this.warnings=n,this.errors=r}};function Er(t){return t.start.toString()||"(unknown)"}var Rl=class{constructor(e,n=!1){l(this,"_lexer");l(this,"_supportsDirectPipeReferences");this._lexer=e,this._supportsDirectPipeReferences=n}parseAction(e,n,r){let s=[];this._checkNoInterpolation(s,e,n);let{stripped:i}=this._stripComments(e),o=this._lexer.tokenize(i),a=new ns(e,n,r,o,1,s,0,this._supportsDirectPipeReferences).parseChain();return new Ne(a,e,Er(n),r,s)}parseBinding(e,n,r){let s=[],i=this._parseBindingAst(e,n,r,s);return new Ne(i,e,Er(n),r,s)}checkSimpleExpression(e){let n=new ip;return e.visit(n),n.errors}parseSimpleBinding(e,n,r){let s=[],i=this._parseBindingAst(e,n,r,s),o=this.checkSimpleExpression(i);return o.length>0&&s.push(ni(`Host binding expression cannot contain ${o.join(" ")}`,e,"",n)),new Ne(i,e,Er(n),r,s)}_parseBindingAst(e,n,r,s){this._checkNoInterpolation(s,e,n);let{stripped:i}=this._stripComments(e),o=this._lexer.tokenize(i);return new ns(e,n,r,o,0,s,0,this._supportsDirectPipeReferences).parseChain()}parseTemplateBindings(e,n,r,s,i){let o=this._lexer.tokenize(n),a=[];return new ns(n,r,i,o,0,a,0,this._supportsDirectPipeReferences).parseTemplateBindings({source:e,span:new it(s,s+e.length)})}parseInterpolation(e,n,r,s){var f;let i=[],{strings:o,expressions:a,offsets:c}=this.splitInterpolation(e,n,i,s);if(a.length===0)return null;let u=[];for(let h=0;h<a.length;++h){let p=(f=s==null?void 0:s[h*2+1])==null?void 0:f.sourceSpan,g=a[h].text,{stripped:y,hasComments:E}=this._stripComments(g),w=this._lexer.tokenize(y);if(E&&y.trim().length===0&&w.length===0){i.push(ni("Interpolation expression cannot only contain a comment",e,`at column ${a[h].start} in`,n));continue}let A=new ns(p?g:e,p||n,r,w,0,i,c[h],this._supportsDirectPipeReferences).parseChain();u.push(A)}return this.createInterpolationAst(o.map(h=>h.text),u,e,Er(n),r,i)}parseInterpolationExpression(e,n,r){let{stripped:s}=this._stripComments(e),i=this._lexer.tokenize(s),o=[],a=new ns(e,n,r,i,0,o,0,this._supportsDirectPipeReferences).parseChain(),c=["",""];return this.createInterpolationAst(c,[a],e,Er(n),r,o)}createInterpolationAst(e,n,r,s,i,o){let a=new Ts(0,r.length),c=new cr(a,a.toAbsolute(i),e,n);return new Ne(c,r,s,i,o)}splitInterpolation(e,n,r,s){var y;let i=[],o=[],a=[],c=s?eA(s):null,u=0,f=!1,h=!1,p="{{",g="}}";for(;u<e.length;)if(f){let E=u,w=E+p.length,A=this._getInterpolationEndIndex(e,g,w);if(A===-1){f=!1,h=!0;break}let k=A+g.length,_=e.substring(w,A);_.trim().length===0&&r.push(ni("Blank expressions are not allowed in interpolated strings",e,`at column ${u} in`,n)),o.push({text:_,start:E,end:k});let q=((y=c==null?void 0:c.get(E))!=null?y:E)+p.length;a.push(q),u=k,f=!1}else{let E=u;u=e.indexOf(p,u),u===-1&&(u=e.length);let w=e.substring(E,u);i.push({text:w,start:E,end:u}),f=!0}if(!f)if(h){let E=i[i.length-1];E.text+=e.substring(u),E.end=e.length}else i.push({text:e.substring(u),start:u,end:e.length});return new rp(i,o,a)}wrapLiteralPrimitive(e,n,r){let s=new Ts(0,e==null?0:e.length);return new Ne(new gt(s,s.toAbsolute(r),e),e,typeof n=="string"?n:Er(n),r,[])}_stripComments(e){let n=this._commentStart(e);return n!=null?{stripped:e.substring(0,n),hasComments:!0}:{stripped:e,hasComments:!1}}_commentStart(e){let n=null;for(let r=0;r<e.length-1;r++){let s=e.charCodeAt(r),i=e.charCodeAt(r+1);if(s===zt&&i==zt&&n==null)return r;n===s?n=null:n==null&&mo(s)&&(n=s)}return null}_checkNoInterpolation(e,n,r){let s=-1,i=-1;for(let o of this._forEachUnquotedChar(n,0))if(s===-1)n.startsWith("{{")&&(s=o);else if(i=this._getInterpolationEndIndex(n,"}}",o),i>-1)break;s>-1&&i>-1&&e.push(ni("Got interpolation ({{}}) where expression was expected",n,`at column ${s} in`,r))}_getInterpolationEndIndex(e,n,r){for(let s of this._forEachUnquotedChar(e,r)){if(e.startsWith(n,s))return s;if(e.startsWith("//",s))return e.indexOf(n,s)}return-1}*_forEachUnquotedChar(e,n){let r=null,s=0;for(let i=n;i<e.length;i++){let o=e[i];mo(e.charCodeAt(i))&&(r===null||r===o)&&s%2===0?r=r===null?o:null:r===null&&(yield i),s=o==="\\"?s+1:0}}},ti;(function(t){t[t.None=0]="None",t[t.Writable=1]="Writable"})(ti||(ti={}));var Sd=new Set(["d","g","i","m","s","u","v","y"]),ns=class{constructor(e,n,r,s,i,o,a,c){l(this,"input");l(this,"parseSourceSpan");l(this,"absoluteOffset");l(this,"tokens");l(this,"parseFlags");l(this,"errors");l(this,"offset");l(this,"supportsDirectPipeReferences");l(this,"rparensExpected",0);l(this,"rbracketsExpected",0);l(this,"rbracesExpected",0);l(this,"context",ti.None);l(this,"sourceSpanCache",new Map);l(this,"index",0);this.input=e,this.parseSourceSpan=n,this.absoluteOffset=r,this.tokens=s,this.parseFlags=i,this.errors=o,this.offset=a,this.supportsDirectPipeReferences=c}peek(e){let n=this.index+e;return n<this.tokens.length?this.tokens[n]:ro}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,n){let r=this.currentEndIndex;if(n!==void 0&&n>this.currentEndIndex&&(r=n),e>r){let s=r;r=e,e=s}return new Ts(e,r)}sourceSpan(e,n){let r=`${e}@${this.inputIndex}:${n}`;return this.sourceSpanCache.has(r)||this.sourceSpanCache.set(r,this.span(e,n).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(r)}advance(){this.index++}withContext(e,n){this.context|=e;let r=n();return this.context^=e,r}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===j.Operator&&Re.isAssignmentOperation(e.strValue)}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===ro?"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=[],n=this.inputIndex;for(;this.index<this.tokens.length;){let r=this.parsePipe();if(e.push(r),this.consumeOptionalCharacter(Ut))for(this.parseFlags&1||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(Ut););else if(this.index<this.tokens.length){let s=this.index;if(this.error(`Unexpected token '${this.next}'`),this.index===s)break}}if(e.length===0){let r=this.offset,s=this.offset+this.input.length;return new ct(this.span(r,s),this.sourceSpan(r,s))}return e.length==1?e[0]:new Fr(this.span(n),this.sourceSpan(n),e)}parsePipe(){let e=this.inputIndex,n=this.parseExpression();if(this.consumeOptionalOperator("|")){this.parseFlags&1&&this.error("Cannot have a pipe in an action expression");do{let r=this.inputIndex,s=this.expectIdentifierOrKeyword(),i,o;s!==null?i=this.sourceSpan(r):(s="",o=this.next.index!==-1?this.next.index:this.input.length+this.offset,i=new Ts(o,o).toAbsolute(this.absoluteOffset));let a=[];for(;this.consumeOptionalCharacter(Dn);)a.push(this.parseExpression());let c;if(this.supportsDirectPipeReferences){let u=s.charCodeAt(0);c=u===Kr||u>=zr&&u<=Pi?si.ReferencedDirectly:si.ReferencedByName}else c=si.ReferencedByName;n=new mi(this.span(e),this.sourceSpan(e,o),n,s,a,c,i)}while(this.consumeOptionalOperator("|"))}return n}parseExpression(){return this.parseConditional()}parseConditional(){let e=this.inputIndex,n=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){let r=this.parsePipe(),s;if(this.consumeOptionalCharacter(Dn))s=this.parsePipe();else{let i=this.inputIndex,o=this.input.substring(e,i);this.error(`Conditional expression ${o} requires all 3 expressions`),s=new ct(this.span(e),this.sourceSpan(e))}return new Br(this.span(e),this.sourceSpan(e),n,r,s)}else return n}parseLogicalOr(){let e=this.inputIndex,n=this.parseLogicalAnd();for(;this.consumeOptionalOperator("||");){let r=this.parseLogicalAnd();n=new Re(this.span(e),this.sourceSpan(e),"||",n,r)}return n}parseLogicalAnd(){let e=this.inputIndex,n=this.parseNullishCoalescing();for(;this.consumeOptionalOperator("&&");){let r=this.parseNullishCoalescing();n=new Re(this.span(e),this.sourceSpan(e),"&&",n,r)}return n}parseNullishCoalescing(){let e=this.inputIndex,n=this.parseEquality();for(;this.consumeOptionalOperator("??");){let r=this.parseEquality();n=new Re(this.span(e),this.sourceSpan(e),"??",n,r)}return n}parseEquality(){let e=this.inputIndex,n=this.parseRelational();for(;this.next.type==j.Operator;){let r=this.next.strValue;switch(r){case"==":case"===":case"!=":case"!==":this.advance();let s=this.parseRelational();n=new Re(this.span(e),this.sourceSpan(e),r,n,s);continue}break}return n}parseRelational(){let e=this.inputIndex,n=this.parseAdditive();for(;this.next.type==j.Operator||this.next.isKeywordIn()||this.next.isKeywordInstanceOf();){let r=this.next.strValue;switch(r){case"<":case">":case"<=":case">=":case"in":case"instanceof":this.advance();let s=this.parseAdditive();n=new Re(this.span(e),this.sourceSpan(e),r,n,s);continue}break}return n}parseAdditive(){let e=this.inputIndex,n=this.parseMultiplicative();for(;this.next.type==j.Operator;){let r=this.next.strValue;switch(r){case"+":case"-":this.advance();let s=this.parseMultiplicative();n=new Re(this.span(e),this.sourceSpan(e),r,n,s);continue}break}return n}parseMultiplicative(){let e=this.inputIndex,n=this.parseExponentiation();for(;this.next.type==j.Operator;){let r=this.next.strValue;switch(r){case"*":case"%":case"/":this.advance();let s=this.parseExponentiation();n=new Re(this.span(e),this.sourceSpan(e),r,n,s);continue}break}return n}parseExponentiation(){let e=this.inputIndex,n=this.parsePrefix();for(;this.next.type==j.Operator&&this.next.strValue==="**";){(n instanceof ii||n instanceof On||n instanceof Mo||n instanceof Oo)&&this.error("Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence"),this.advance();let r=this.parseExponentiation();n=new Re(this.span(e),this.sourceSpan(e),"**",n,r)}return n}parsePrefix(){if(this.next.type==j.Operator){let e=this.inputIndex,n=this.next.strValue,r;switch(n){case"+":return this.advance(),r=this.parsePrefix(),ii.createPlus(this.span(e),this.sourceSpan(e),r);case"-":return this.advance(),r=this.parsePrefix(),ii.createMinus(this.span(e),this.sourceSpan(e),r);case"!":return this.advance(),r=this.parsePrefix(),new On(this.span(e),this.sourceSpan(e),r)}}else if(this.next.isKeywordTypeof()){let e=this.inputIndex;this.advance();let n=this.parsePrefix();return new Mo(this.span(e),this.sourceSpan(e),n)}else if(this.next.isKeywordVoid()){let e=this.inputIndex;this.advance();let n=this.parsePrefix();return new Oo(this.span(e),this.sourceSpan(e),n)}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,n=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(es))n=this.parseAccessMember(n,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(_t)?n=this.parseCall(n,e,!0):n=this.consumeOptionalCharacter(_n)?this.parseKeyedReadOrWrite(n,e,!0):this.parseAccessMember(n,e,!0);else if(this.consumeOptionalCharacter(_n))n=this.parseKeyedReadOrWrite(n,e,!1);else if(this.consumeOptionalCharacter(_t))n=this.parseCall(n,e,!1);else if(this.consumeOptionalOperator("!"))n=new tr(this.span(e),this.sourceSpan(e),n);else if(this.next.isTemplateLiteralEnd())n=this.parseNoInterpolationTaggedTemplateLiteral(n,e);else if(this.next.isTemplateLiteralPart())n=this.parseTaggedTemplateLiteral(n,e);else return n}parsePrimary(){let e=this.inputIndex;if(this.isArrowFunction())return this.parseArrowFunction(e);if(this.consumeOptionalCharacter(_t)){this.rparensExpected++;let n=this.parsePipe();return this.consumeOptionalCharacter(Xe)||(this.error("Missing closing parentheses"),this.consumeOptionalCharacter(Xe)),this.rparensExpected--,new nr(this.span(e),this.sourceSpan(e),n)}else{if(this.next.isKeywordNull())return this.advance(),new gt(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new gt(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new gt(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new gt(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new Cs(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(_n))return this.parseLiteralArray(e);if(this.next.isCharacter(an))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new pn(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let n=this.next.toNumber();return this.advance(),new gt(this.span(e),this.sourceSpan(e),n)}else{if(this.next.isTemplateLiteralEnd())return this.parseNoInterpolationTemplateLiteral();if(this.next.isTemplateLiteralPart())return this.parseTemplateLiteral();if(this.next.isString()&&this.next.kind===Ir.Plain){let n=this.next.toString();return this.advance(),new gt(this.span(e),this.sourceSpan(e),n)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new ct(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 ct(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new ct(this.span(e),this.sourceSpan(e)))}}}parseLiteralArray(e){this.rbracketsExpected++;let n=[];do if(this.next.isOperator("..."))n.push(this.parseSpreadElement());else if(!this.next.isCharacter(jn))n.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(mt));return this.rbracketsExpected--,this.expectCharacter(jn),new Lo(this.span(e),this.sourceSpan(e),n)}parseLiteralMap(){let e=[],n=[],r=this.inputIndex;if(this.expectCharacter(an),!this.consumeOptionalCharacter(Dt)){this.rbracesExpected++;do{let s=this.inputIndex;if(this.next.isOperator("...")){this.advance(),e.push({kind:"spread",span:this.span(s),sourceSpan:this.sourceSpan(s)}),n.push(this.parsePipe());continue}let i=this.next.isString(),o=this.expectIdentifierOrKeywordOrString(),a=this.span(s),c=this.sourceSpan(s),u={kind:"property",key:o,quoted:i,span:a,sourceSpan:c};e.push(u),i?(this.expectCharacter(Dn),n.push(this.parsePipe())):this.consumeOptionalCharacter(Dn)?n.push(this.parsePipe()):(u.isShorthandInitialized=!0,n.push(new we(a,c,c,new pn(a,c),o)))}while(this.consumeOptionalCharacter(mt)&&!this.next.isCharacter(Dt));this.rbracesExpected--,this.expectCharacter(Dt)}return new xs(this.span(r),this.sourceSpan(r),e,n)}parseAccessMember(e,n,r){let s=this.inputIndex,i=this.withContext(ti.Writable,()=>{var c;let a=(c=this.expectIdentifierOrKeyword())!=null?c:"";return a.length===0&&this.error("Expected identifier for property access",e.span.end),a}),o=this.sourceSpan(s);if(r)return this.isAssignmentOperator(this.next)?(this.advance(),this.error("The '?.' operator cannot be used in the assignment"),new ct(this.span(n),this.sourceSpan(n))):new lt(this.span(n),this.sourceSpan(n),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 ct(this.span(n),this.sourceSpan(n));let c=new we(this.span(n),this.sourceSpan(n),o,e,i);this.advance();let u=this.parseConditional();return new Re(this.span(n),this.sourceSpan(n),a,c,u)}else return new we(this.span(n),this.sourceSpan(n),o,e,i)}parseCall(e,n,r){let s=this.inputIndex;this.rparensExpected++;let i=this.parseCallArguments(),o=this.span(s,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(Xe),this.rparensExpected--;let a=this.span(n),c=this.sourceSpan(n);return r?new hn(a,c,e,i,o):new wn(a,c,e,i,o)}parseCallArguments(){if(this.next.isCharacter(Xe))return[];let e=[];do e.push(this.next.isOperator("...")?this.parseSpreadElement():this.parsePipe());while(this.consumeOptionalCharacter(mt));return e}parseSpreadElement(){this.next.isOperator("...")||this.error("Spread element must start with '...' operator");let e=this.inputIndex;this.advance();let n=this.parsePipe(),r=this.span(e),s=this.sourceSpan(e);return new cl(r,s,n)}expectTemplateBindingKey(){let e="",n=!1,r=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),n=this.consumeOptionalOperator("-"),n&&(e+="-");while(n);return{source:e,span:new it(r,r+e.length)}}parseTemplateBindings(e){let n=[];for(n.push(...this.parseDirectiveKeywordBindings(e));this.index<this.tokens.length;){let r=this.parseLetBinding();if(r)n.push(r);else{let s=this.expectTemplateBindingKey(),i=this.parseAsBinding(s);i?n.push(i):(s.source=e.source+s.source.charAt(0).toUpperCase()+s.source.substring(1),n.push(...this.parseDirectiveKeywordBindings(s)))}this.consumeStatementTerminator()}return new sp(n,[],this.errors)}parseKeyedReadOrWrite(e,n,r){return this.withContext(ti.Writable,()=>{this.rbracketsExpected++;let s=this.parsePipe();if(s instanceof ct&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(jn),this.isAssignmentOperator(this.next)){let i=this.next.strValue;if(r)this.advance(),this.error("The '?.' operator cannot be used in the assignment");else{let o=new Zn(this.span(n),this.sourceSpan(n),e,s);this.advance();let a=this.parseConditional();return new Re(this.span(n),this.sourceSpan(n),i,o,a)}}else return r?new er(this.span(n),this.sourceSpan(n),e,s):new Zn(this.span(n),this.sourceSpan(n),e,s);return new ct(this.span(n),this.sourceSpan(n))})}parseDirectiveKeywordBindings(e){let n=[];this.consumeOptionalCharacter(Dn);let r=this.getDirectiveBoundTarget(),s=this.currentAbsoluteOffset,i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),s=this.currentAbsoluteOffset);let o=new it(e.span.start,s);return n.push(new vu(o,e,r)),i&&n.push(i),n}getDirectiveBoundTarget(){if(this.next===ro||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:n,end:r}=e.span,s=this.input.substring(n,r);return new Ne(e,s,Er(this.parseSourceSpan),this.absoluteOffset+n,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let n=this.expectTemplateBindingKey();this.consumeStatementTerminator();let r=new it(e.span.start,this.currentAbsoluteOffset);return new $o(r,n,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let n=this.expectTemplateBindingKey(),r=null;this.consumeOptionalOperator("=")&&(r=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let s=new it(e,this.currentAbsoluteOffset);return new $o(s,n,r)}parseNoInterpolationTaggedTemplateLiteral(e,n){let r=this.parseNoInterpolationTemplateLiteral();return new Fo(this.span(n),this.sourceSpan(n),e,r)}parseNoInterpolationTemplateLiteral(){let e=this.next.strValue,n=this.inputIndex;this.advance();let r=this.span(n),s=this.sourceSpan(n);return new Bo(r,s,[new ul(r,s,e)],[])}parseTaggedTemplateLiteral(e,n){let r=this.parseTemplateLiteral();return new Fo(this.span(n),this.sourceSpan(n),e,r)}parseTemplateLiteral(){let e=[],n=[],r=this.inputIndex;for(;this.next!==ro;){let s=this.next;if(s.isTemplateLiteralPart()||s.isTemplateLiteralEnd()){let i=this.inputIndex;if(this.advance(),e.push(new ul(this.span(i),this.sourceSpan(i),s.strValue)),s.isTemplateLiteralEnd())break}else if(s.isTemplateLiteralInterpolationStart()){this.advance(),this.rbracesExpected++;let i=this.parsePipe();i instanceof ct&&this.error("Template literal interpolation cannot be empty"),n.push(i),this.rbracesExpected--}else this.advance()}return new Bo(this.span(r),this.sourceSpan(r),e,n)}parseRegularExpressionLiteral(){let e=this.next;if(this.advance(),!e.isRegExpBody())return new ct(this.span(this.inputIndex),this.sourceSpan(this.inputIndex));let n=null;if(this.next.isRegExpFlags()){n=this.next,this.advance();let i=new Set;for(let o=0;o<n.strValue.length;o++){let a=n.strValue[o];Sd.has(a)?i.has(a)?this.error(`Duplicate regular expression flag "${a}"`,n.index+o):i.add(a):this.error(`Unsupported regular expression flag "${a}". The supported flags are: `+Array.from(Sd,c=>`"${c}"`).join(", "),n.index+o)}}let r=e.index,s=n?n.end:e.end;return new pl(this.span(r,s),this.sourceSpan(r,s),e.strValue,n?n.strValue:null)}parseArrowFunction(e){let n;if(this.next.isIdentifier()){let s=this.next;this.advance(),n=[this.getArrowFunctionIdentifierArg(s)]}else this.next.isCharacter(_t)?(this.rparensExpected++,this.advance(),n=this.parseArrowFunctionParameters(),this.rparensExpected--):(n=[],this.error(`Unexpected token ${this.next}`));this.expectOperator("=>");let r;if(this.next.isCharacter(an))this.error("Multi-line arrow functions are not supported. If you meant to return an object literal, wrap it with parentheses."),r=new ct(this.span(e),this.sourceSpan(e));else{let s=this.parseFlags;this.parseFlags=1,r=this.parseExpression(),this.parseFlags=s}return new gi(this.span(e),this.sourceSpan(e),n,r)}parseArrowFunctionParameters(){let e=[];if(!this.consumeOptionalCharacter(Xe))for(;this.next!==ro;)if(this.next.isIdentifier()){let n=this.next;if(this.advance(),e.push(this.getArrowFunctionIdentifierArg(n)),this.consumeOptionalCharacter(Xe))break;this.expectCharacter(mt)}else{this.error(`Unexpected token ${this.next}`);break}return e}getArrowFunctionIdentifierArg(e){return new yu(e.strValue,this.span(e.index),this.sourceSpan(e.index))}isArrowFunction(){let e=this.index,n=this.tokens;if(e>n.length-2)return!1;if(n[e].isIdentifier()&&n[e+1].isOperator("=>"))return!0;if(n[e].isCharacter(_t)){let r=e+1;for(r;r<n.length&&!(!n[r].isIdentifier()&&!n[r].isCharacter(mt));r++);return r<n.length-1&&n[r].isCharacter(Xe)&&n[r+1].isOperator("=>")}return!1}consumeStatementTerminator(){this.consumeOptionalCharacter(Ut)||this.consumeOptionalCharacter(mt)}error(e,n=this.index){this.errors.push(ni(e,this.input,this.getErrorLocationText(n),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,n){let r=`Private identifiers are not supported. Unexpected private identifier: ${e}`;n!==null&&(r+=`, ${n}`),this.error(r)}skip(){let e=this.next;for(;this.index<this.tokens.length&&!e.isCharacter(Ut)&&!e.isOperator("|")&&(this.rparensExpected<=0||!e.isCharacter(Xe))&&(this.rbracesExpected<=0||!e.isCharacter(Dt))&&(this.rbracketsExpected<=0||!e.isCharacter(jn))&&(!(this.context&ti.Writable)||!this.isAssignmentOperator(e));)this.next.isError()&&this.errors.push(ni(this.next.toString(),this.input,this.getErrorLocationText(this.next.index),this.parseSourceSpan)),this.advance(),e=this.next}};function ni(t,e,n,r){n.length>0&&(n=` ${n} `);let s=Er(r),i=`Parser Error: ${t}${n}[${e}] in ${s}`;return new L(r,i)}var ip=class extends Ns{constructor(){super(...arguments);l(this,"errors",[])}visitPipe(){this.errors.push("pipes")}};function eA(t){let e=new Map,n=0,r=0,s=0;for(;s<t.length;){let i=t[s];if(i.type===9){let[o,a]=i.parts;n+=a.length,r+=o.length}else{let o=i.parts.reduce((a,c)=>a+c.length,0);r+=o,n+=o}e.set(r,n),s++}return e}function tA(t){return t.visit(new op)}var op=class{visitUnary(e,n){return`${e.operator}${e.expr.visit(this,n)}`}visitBinary(e,n){return`${e.left.visit(this,n)} ${e.operation} ${e.right.visit(this,n)}`}visitChain(e,n){return e.expressions.map(r=>r.visit(this,n)).join("; ")}visitConditional(e,n){return`${e.condition.visit(this,n)} ? ${e.trueExp.visit(this,n)} : ${e.falseExp.visit(this,n)}`}visitThisReceiver(){return"this"}visitImplicitReceiver(){return""}visitInterpolation(e,n){return rA(e.strings,e.expressions.map(r=>r.visit(this,n))).join("")}visitKeyedRead(e,n){return`${e.receiver.visit(this,n)}[${e.key.visit(this,n)}]`}visitLiteralArray(e,n){return`[${e.expressions.map(r=>r.visit(this,n)).join(", ")}]`}visitLiteralMap(e,n){return`{${nA(e.keys.map(r=>r.kind==="spread"?"...":r.quoted?`'${r.key}'`:r.key),e.values.map(r=>r.visit(this,n))).map(([r,s])=>`${r}: ${s}`).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,n){return`${e.exp.visit(this,n)} | ${e.name}`}visitPrefixNot(e,n){return`!${e.expression.visit(this,n)}`}visitNonNullAssert(e,n){return`${e.expression.visit(this,n)}!`}visitPropertyRead(e,n){return e.receiver instanceof pn||e.receiver instanceof Cs?e.name:`${e.receiver.visit(this,n)}.${e.name}`}visitSafePropertyRead(e,n){return`${e.receiver.visit(this,n)}?.${e.name}`}visitSafeKeyedRead(e,n){return`${e.receiver.visit(this,n)}?.[${e.key.visit(this,n)}]`}visitCall(e,n){return`${e.receiver.visit(this,n)}(${e.args.map(r=>r.visit(this,n)).join(", ")})`}visitSafeCall(e,n){return`${e.receiver.visit(this,n)}?.(${e.args.map(r=>r.visit(this,n)).join(", ")})`}visitTypeofExpression(e,n){return`typeof ${e.expression.visit(this,n)}`}visitVoidExpression(e,n){return`void ${e.expression.visit(this,n)}`}visitRegularExpressionLiteral(e,n){return`/${e.body}/${e.flags||""}`}visitArrowFunction(e,n){let r;return e.parameters.length===1?r=e.parameters[0].name:r=`(${e.parameters.map(s=>s.name).join(", ")})`,`${r} => ${e.body.visit(this,n)}`}visitASTWithSource(e,n){return e.ast.visit(this,n)}visitTemplateLiteral(e,n){let r="";for(let s=0;s<e.elements.length;s++){r+=e.elements[s].visit(this,n);let i=s<e.expressions.length?e.expressions[s]:null;i!==null&&(r+="${"+i.visit(this,n)+"}")}return"`"+r+"`"}visitTemplateLiteralElement(e,n){return e.text}visitTaggedTemplateLiteral(e,n){return e.tag.visit(this,n)+e.template.visit(this,n)}visitSpreadElement(e,n){return`...${e.expression.visit(this,n)}`}visitParenthesizedExpression(e,n){return"("+e.expression.visit(this,n)+")"}};function nA(t,e){if(t.length!==e.length)throw new Error("Array lengths must match");return t.map((n,r)=>[n,e[r]])}function rA(t,e){let n=[];for(let r=0;r<Math.max(t.length,e.length);r++)r<t.length&&n.push(t[r]),r<e.length&&n.push(e[r]);return n}var Xl="svg",Yl="math",ap=class{},sA="boolean",iA="number",oA="string",aA="object";function Fa(t){let e=t.toLowerCase(),[n,r]=tt(e,!1);return n===Xl||n===Yl?`:${n}:${r}`:r}var lA=["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","geolocation^[HTMLElement]|accuracymode,!autolocate,*location,*promptaction,*promptdismiss,*validationstatuschange,!watch","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,!credentialless,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","selectedcontent^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","search^[HTMLELement]|","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],Fg=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"})),cA=Array.from(Fg).reduce((t,[e,n])=>(t.set(e,n),t),new Map),en=class extends ap{constructor(){super();l(this,"_schema",new Map);l(this,"_eventSchema",new Map);l(this,"_allKnownEvents",null);lA.forEach(n=>{let r=new Map,s=new Set,[i,o]=n.split("|"),a=o.split(","),[c,u]=i.split("^");c.split(",").forEach(h=>{this._schema.set(h.toLowerCase(),r),this._eventSchema.set(h.toLowerCase(),s)});let f=u&&this._schema.get(u.toLowerCase());if(f){for(let[h,p]of f)r.set(h,p);for(let h of this._eventSchema.get(u.toLowerCase()))s.add(h)}a.forEach(h=>{if(h.length>0)switch(h[0]){case"*":s.add(h.substring(1));break;case"!":r.set(h.substring(1),sA);break;case"#":r.set(h.substring(1),iA);break;case"%":r.set(h.substring(1),aA);break;default:r.set(h,oA)}})})}hasProperty(n,r,s){if(s.some(a=>a.name===tl.name))return!0;let i=Fa(n);if(i.includes("-")){if(Of(i)||Cu(i))return!1;if(s.some(a=>a.name===el.name))return!0}return(this._schema.get(i)||this._schema.get("unknown")).has(r)}hasElement(n,r){if(r.some(i=>i.name===tl.name))return!0;let s=Fa(n);return s.includes("-")&&(Of(s)||Cu(s)||r.some(i=>i.name===el.name))?!0:this._schema.has(s)}securityContext(n,r,s){s&&(r=this.getMappedPropName(r));let[i,o]=tt(n,!1);return HE(o,r,i)}getMappedPropName(n){var r;return(r=Fg.get(n))!=null?r:n}getDefaultComponentElementName(){return"ng-component"}validateProperty(n){return n.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${n}' is disallowed for security reasons, please use (${n.slice(2)})=...
If '${n}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(n){return n.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${n}' is disallowed for security reasons, please use (${n.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(n){let r=Fa(n),s=this._schema.get(r)||this._schema.get("unknown");return Array.from(s.keys()).map(i=>{var o;return(o=cA.get(i))!=null?o:i})}allKnownEventsOfElement(n){var s;let r=Fa(n);return Array.from((s=this._eventSchema.get(r))!=null?s:[])}isKnownEventOfAnyElement(n){var r;return(r=this._allKnownEvents)!=null||(this._allKnownEvents=new Set(Array.from(this._eventSchema.values()).flatMap(s=>Array.from(s)))),this._allKnownEvents.has(n.toLowerCase())}normalizeAnimationStyleProperty(n){return vw(n)}normalizeAnimationStyleValue(n,r,s){let i="",o=s.toString().trim(),a=null;if(uA(n)&&s!==0&&s!=="0")if(typeof s=="number")i="px";else{let c=s.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&c[1].length==0&&(a=`Please provide a CSS unit value for ${r}:${s}`)}return{error:a,value:o+i}}};function uA(t){switch(t){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 re=class{constructor({closedByChildren:e,implicitNamespacePrefix:n,contentType:r=yn.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:o=!1,preventNamespaceInheritance:a=!1,canSelfClose:c=!1}={}){l(this,"closedByChildren",{});l(this,"contentType");l(this,"closedByParent",!1);l(this,"implicitNamespacePrefix");l(this,"isVoid");l(this,"ignoreFirstLf");l(this,"canSelfClose");l(this,"preventNamespaceInheritance");e&&e.length>0&&e.forEach(u=>this.closedByChildren[u]=!0),this.isVoid=i,this.closedByParent=s||i,this.implicitNamespacePrefix=n||null,this.contentType=r,this.ignoreFirstLf=o,this.preventNamespaceInheritance=a,this.canSelfClose=c!=null?c:i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){if(typeof this.contentType=="object"){let n=e===void 0?void 0:this.contentType[e];return n!=null?n:this.contentType.default}return this.contentType}},Ed,qs;function lp(t){var e,n;return qs||(Ed=new re({canSelfClose:!0}),qs=Object.assign(Object.create(null),{base:new re({isVoid:!0}),meta:new re({isVoid:!0}),area:new re({isVoid:!0}),embed:new re({isVoid:!0}),link:new re({isVoid:!0}),img:new re({isVoid:!0}),input:new re({isVoid:!0}),param:new re({isVoid:!0}),hr:new re({isVoid:!0}),br:new re({isVoid:!0}),source:new re({isVoid:!0}),track:new re({isVoid:!0}),wbr:new re({isVoid:!0}),p:new re({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 re({closedByChildren:["tbody","tfoot"]}),tbody:new re({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new re({closedByChildren:["tbody"],closedByParent:!0}),tr:new re({closedByChildren:["tr"],closedByParent:!0}),td:new re({closedByChildren:["td","th"],closedByParent:!0}),th:new re({closedByChildren:["td","th"],closedByParent:!0}),col:new re({isVoid:!0}),svg:new re({implicitNamespacePrefix:"svg"}),foreignObject:new re({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new re({implicitNamespacePrefix:"math"}),li:new re({closedByChildren:["li"],closedByParent:!0}),dt:new re({closedByChildren:["dt","dd"]}),dd:new re({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new re({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new re({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new re({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new re({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new re({closedByChildren:["optgroup"],closedByParent:!0}),option:new re({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new re({ignoreFirstLf:!0}),listing:new re({ignoreFirstLf:!0}),style:new re({contentType:yn.RAW_TEXT}),script:new re({contentType:yn.RAW_TEXT}),title:new re({contentType:{default:yn.ESCAPABLE_RAW_TEXT,svg:yn.PARSABLE_DATA}}),textarea:new re({contentType:yn.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new en().allKnownElementNames().forEach(r=>{!qs[r]&&xu(r)===null&&(qs[r]=new re({canSelfClose:!1}))})),(n=(e=qs[t])!=null?e:qs[t.toLowerCase()])!=null?n:Ed}var wd={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"},cp=class{constructor(){l(this,"_placeHolderNameCounts",{});l(this,"_signatureToName",{})}getStartTagPlaceholderName(e,n,r){let s=this._hashTag(e,n,r);if(this._signatureToName[s])return this._signatureToName[s];let i=e.toUpperCase(),o=wd[i]||`TAG_${i}`,a=this._generateUniqueName(r?o:`START_${o}`);return this._signatureToName[s]=a,a}getCloseTagPlaceholderName(e){let n=this._hashClosingTag(e);if(this._signatureToName[n])return this._signatureToName[n];let r=e.toUpperCase(),s=wd[r]||`TAG_${r}`,i=this._generateUniqueName(`CLOSE_${s}`);return this._signatureToName[n]=i,i}getPlaceholderName(e,n){let r=e.toUpperCase(),s=`PH: ${r}=${n}`;if(this._signatureToName[s])return this._signatureToName[s];let i=this._generateUniqueName(r);return this._signatureToName[s]=i,i}getUniquePlaceholder(e){return this._generateUniqueName(e.toUpperCase())}getStartBlockPlaceholderName(e,n){let r=this._hashBlock(e,n);if(this._signatureToName[r])return this._signatureToName[r];let s=this._generateUniqueName(`START_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[r]=s,s}getCloseBlockPlaceholderName(e){let n=this._hashClosingBlock(e);if(this._signatureToName[n])return this._signatureToName[n];let r=this._generateUniqueName(`CLOSE_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[n]=r,r}_hashTag(e,n,r){let s=`<${e}`,i=Object.keys(n).sort().map(a=>` ${a}=${n[a]}`).join(""),o=r?"/>":`></${e}>`;return s+i+o}_hashClosingTag(e){return this._hashTag(`/${e}`,{},!1)}_hashBlock(e,n){let r=n.length===0?"":` (${n.sort().join("; ")})`;return`@${e}${r} {}`}_hashClosingBlock(e){return this._hashBlock(`close_${e}`,[])}_toSnakeCase(e){return e.toUpperCase().replace(/[^A-Z0-9]/g,"_")}_generateUniqueName(e){if(!Object.hasOwn(this._placeHolderNameCounts,e))return this._placeHolderNameCounts[e]=1,e;let r=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=r+1,`${e}_${r}`}},pA=new Rl(new ua);function hA(t,e){let n=new up(pA,t,e);return(r,s,i,o,a)=>n.toI18nMessage(r,s,i,o,a)}function fA(t,e){return e}var up=class{constructor(e,n,r){l(this,"_expressionParser");l(this,"_retainEmptyTokens");l(this,"_preserveExpressionWhitespace");this._expressionParser=e,this._retainEmptyTokens=n,this._preserveExpressionWhitespace=r}toI18nMessage(e,n="",r="",s="",i){let o={isIcu:e.length==1&&e[0]instanceof ds,icuDepth:0,placeholderRegistry:new cp,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:i||fA},a=fe(this,e,o);return new Rt(a,o.placeholderToContent,o.placeholderToMessage,n,r,s)}visitElement(e,n){return this._visitElementLike(e,n)}visitComponent(e,n){return this._visitElementLike(e,n)}visitDirective(e,n){throw new Error("Unreachable code")}visitAttribute(e,n){let r=e.valueTokens===void 0||e.valueTokens.length===1?new Zi(e.value,e.valueSpan||e.sourceSpan):this._visitTextWithInterpolation(e.valueTokens,e.valueSpan||e.sourceSpan,n,e.i18n);return n.visitNodeFn(e,r)}visitText(e,n){let r=e.tokens.length===1?new Zi(e.value,e.sourceSpan):this._visitTextWithInterpolation(e.tokens,e.sourceSpan,n,e.i18n);return n.visitNodeFn(e,r)}visitComment(e,n){return null}visitExpansion(e,n){n.icuDepth++;let r={},s=new gl(e.switchValue,e.type,r,e.sourceSpan);if(e.cases.forEach(a=>{r[a.value]=new Xn(a.expression.map(c=>c.visit(this,n)),a.expSourceSpan)}),n.icuDepth--,n.isIcu||n.icuDepth>0){let a=n.placeholderRegistry.getUniquePlaceholder(`VAR_${e.type}`);return s.expressionPlaceholder=a,n.placeholderToContent[a]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},n.visitNodeFn(e,s)}let i=n.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());n.placeholderToMessage[i]=this.toI18nMessage([e],"","","",void 0);let o=new xi(s,i,e.sourceSpan);return n.visitNodeFn(e,o)}visitExpansionCase(e,n){throw new Error("Unreachable code")}visitBlock(e,n){var c;let r=fe(this,e.children,n);if(e.name==="switch")return new Xn(r,e.sourceSpan);let s=e.parameters.map(u=>u.expression),i=n.placeholderRegistry.getStartBlockPlaceholderName(e.name,s),o=n.placeholderRegistry.getCloseBlockPlaceholderName(e.name);n.placeholderToContent[i]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan},n.placeholderToContent[o]={text:e.endSourceSpan?e.endSourceSpan.toString():"}",sourceSpan:(c=e.endSourceSpan)!=null?c:e.sourceSpan};let a=new Gr(e.name,s,i,o,r,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return n.visitNodeFn(e,a)}visitBlockParameter(e,n){throw new Error("Unreachable code")}visitLetDeclaration(e,n){return null}_visitElementLike(e,n){var h;let r=fe(this,e.children,n),s={},i=p=>{s[p.name]=p.value},o,a;e instanceof rn?(o=e.name,a=lp(e.name).isVoid):(o=e.fullName,a=e.tagName?lp(e.tagName).isVoid:!1),e.attrs.forEach(i),e.directives.forEach(p=>p.attrs.forEach(i));let c=n.placeholderRegistry.getStartTagPlaceholderName(o,s,a);n.placeholderToContent[c]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};let u="";a||(u=n.placeholderRegistry.getCloseTagPlaceholderName(o),n.placeholderToContent[u]={text:`</${o}>`,sourceSpan:(h=e.endSourceSpan)!=null?h:e.sourceSpan});let f=new Vr(o,s,c,u,r,a,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return n.visitNodeFn(e,f)}_visitTextWithInterpolation(e,n,r,s){let i=[],o=!1;for(let a of e)switch(a.type){case 8:case 18:o=!0;let[c,u,f]=a.parts,h=vA(u)||"INTERPOLATION",p=r.placeholderRegistry.getPlaceholderName(h,u);if(this._preserveExpressionWhitespace)r.placeholderToContent[p]={text:a.parts.join(""),sourceSpan:a.sourceSpan},i.push(new Xo(u,p,a.sourceSpan));else{let g=this.normalizeExpression(a);r.placeholderToContent[p]={text:`${c}${g}${f}`,sourceSpan:a.sourceSpan},i.push(new Xo(g,p,a.sourceSpan))}break;default:if(a.parts[0].length>0||this._retainEmptyTokens){let g=i[i.length-1];g instanceof Zi?(g.value+=a.parts[0],g.sourceSpan=new G(g.sourceSpan.start,a.sourceSpan.end,g.sourceSpan.fullStart,g.sourceSpan.details)):i.push(new Zi(a.parts[0],a.sourceSpan))}else this._retainEmptyTokens&&i.push(new Zi(a.parts[0],a.sourceSpan));break}return o?(dA(i,s),new Xn(i,n)):i[0]}normalizeExpression(e){let n=e.parts[1],r=this._expressionParser.parseBinding(n,e.sourceSpan,e.sourceSpan.start.offset);return tA(r)}};function dA(t,e){if(e instanceof Rt&&(mA(e),e=e.nodes[0]),e instanceof Xn){gA(e.children,t);for(let n=0;n<t.length;n++)t[n].sourceSpan=e.children[n].sourceSpan}}function mA(t){let e=t.nodes;if(e.length!==1||!(e[0]instanceof Xn))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}function gA(t,e){if(t.length!==e.length)throw new Error(`
The number of i18n message children changed between first and second pass.
First pass (${t.length} tokens):
${t.map(n=>`"${n.sourceSpan.toString()}"`).join(`
`)}
Second pass (${e.length} tokens):
${e.map(n=>`"${n.sourceSpan.toString()}"`).join(`
`)}
`.trim());if(t.some((n,r)=>e[r].constructor!==n.constructor))throw new Error("The types of the i18n message children changed between first and second pass.")}var yA=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function vA(t){return t.split(yA)[2]}var Td=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","iframe|src","object|codebase","object|data"]);function Cd(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),Td.has(t+"|"+e)||Td.has("*|"+e)}var SA=t=>(e,n)=>{var s;let r=(s=t.get(e))!=null?s:e;return r instanceof ar&&(n instanceof xi&&r.i18n instanceof Rt&&(n.previousMessage=r.i18n),r.i18n=n),n},Pl=class{constructor(e=!1,n=!1,r=!0,s=!r){l(this,"keepI18nAttrs");l(this,"enableI18nLegacyMessageIdFormat");l(this,"preserveSignificantWhitespace");l(this,"retainEmptyTokens");l(this,"hasI18nMeta",!1);l(this,"_errors",[]);this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=n,this.preserveSignificantWhitespace=r,this.retainEmptyTokens=s}_generateI18nMessage(e,n="",r){let{meaning:s,description:i,customId:o}=this._parseMetadata(n),c=hA(this.retainEmptyTokens,this.preserveSignificantWhitespace)(e,s,i,o,r);return this._setMessageId(c,n),this._setLegacyIds(c,n),c}visitAllWithErrors(e){let n=e.map(r=>r.visit(this,null));return new kl(n,this._errors)}visitElement(e){return this._visitElementLike(e),e}visitComponent(e,n){return this._visitElementLike(e),e}visitExpansion(e,n){let r,s=e.i18n;if(this.hasI18nMeta=!0,s instanceof xi){let i=s.name;r=this._generateI18nMessage([e],s);let o=ig(r);o.name=i,n!==null&&(n.placeholderToMessage[i]=r)}else r=this._generateI18nMessage([e],n||s);return e.i18n=r,e}visitText(e){return e}visitAttribute(e){return e}visitComment(e){return e}visitExpansionCase(e){return e}visitBlock(e,n){return fe(this,e.children,n),e}visitBlockParameter(e,n){return e}visitLetDeclaration(e,n){return e}visitDirective(e,n){return e}_visitElementLike(e){let n;if(sT(e)){this.hasI18nMeta=!0;let r=[],s={};for(let i of e.attrs)if(i.name===rg){let o=e.i18n||i.value,a=new Map,c=this.preserveSignificantWhitespace?e.children:xn(new _l(!1,a),e.children);n=this._generateI18nMessage(c,o,SA(a)),n.nodes.length===0&&(n=void 0),e.i18n=n}else if(i.name.startsWith(Iu)){let o=i.name.slice(Iu.length),a;e instanceof It?a=e.tagName===null?!1:Cd(e.tagName,o):a=Cd(e.name,o),a||xA(o)?this._reportError(i,`Translating attribute '${o}' is disallowed for security reasons.`):s[o]=i.value}else r.push(i);if(Object.keys(s).length)for(let i of r){let o=s[i.name];o!==void 0&&i.value&&(i.i18n=this._generateI18nMessage([i],i.i18n||o))}this.keepI18nAttrs||(e.attrs=r)}fe(this,e.children,n)}_parseMetadata(e){return typeof e=="string"?TA(e):e instanceof Rt?e:{}}_setMessageId(e,n){e.id||(e.id=n instanceof Rt&&n.id||KE(e))}_setLegacyIds(e,n){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[zE(e),bm(e)];else if(typeof n!="string"){let r=n instanceof Rt?n:n instanceof xi?n.previousMessage:void 0;e.legacyIds=r?r.legacyIds:[]}}_reportError(e,n){this._errors.push(new L(e.sourceSpan,n))}},EA="|",wA="@@";function TA(t=""){let e,n,r;if(t=t.trim(),t){let s=t.indexOf(wA),i=t.indexOf(EA),o;[o,e]=s>-1?[t.slice(0,s),t.slice(s+2)]:[t,""],[n,r]=i>-1?[o.slice(0,i),o.slice(i+1)]:["",o]}return{customId:e,meaning:n,description:r}}function CA(t){let e=[];return t.description?e.push({tagName:"desc",text:t.description}):e.push({tagName:"suppress",text:"{msgDescriptions}"}),t.meaning&&e.push({tagName:"meaning",text:t.meaning}),Lm(e)}function xA(t){let e=t.toLowerCase();return e.length>2&&e!=="only"&&e.startsWith("on")}function NA(t,e,n,r){let s=AA(e),i=[S(s)];Object.keys(r).length&&(i.push(zu(Hp(r,!0),!0)),i.push(zu({original_code:Et(Object.keys(r).map(c=>({key:wa(c),quoted:!0,value:e.placeholders[c]?S(e.placeholders[c].sourceSpan.toString()):S(e.placeholderToMessage[c].nodes.map(u=>u.sourceSpan.toString()).join(""))})))})));let o=new Ze(n.name,Z("goog").prop("getMsg").callFn(i,null,void 0,[zo()]),kr,Fe.Final);o.addLeadingComment(CA(e));let a=new at(t.set(n));return[o,a]}var pp=class{formatPh(e){return`{$${wa(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(n=>n.visit(this)).join("")}visitIcu(e){return kg(e)}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(n=>n.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitBlockPlaceholder(e){return`${this.formatPh(e.startName)}${e.children.map(n=>n.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitIcuPlaceholder(e,n){return this.formatPh(e.name)}},IA=new pp;function AA(t){return t.nodes.map(e=>e.visit(IA,null)).join("")}function bA(t,e,n){let{messageParts:r,placeHolders:s}=DA(e),i=kA(e),o=s.map(u=>n[u.text]),a=Fm(e,r,s,o,i),c=t.set(a);return[new at(c,null,[zo()])]}var hp=class{constructor(e,n){l(this,"placeholderToMessage");l(this,"pieces");this.placeholderToMessage=e,this.pieces=n}visitText(e){if(this.pieces[this.pieces.length-1]instanceof xr)this.pieces[this.pieces.length-1].text+=e.value;else{let n=new G(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new xr(e.value,n))}}visitContainer(e){e.children.forEach(n=>n.visit(this))}visitIcu(e){this.pieces.push(new xr(kg(e),e.sourceSpan))}visitTagPlaceholder(e){var n,r;this.pieces.push(this.createPlaceholderPiece(e.startName,(n=e.startSourceSpan)!=null?n:e.sourceSpan)),e.isVoid||(e.children.forEach(s=>s.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,(r=e.endSourceSpan)!=null?r:e.sourceSpan)))}visitPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan))}visitBlockPlaceholder(e){var n,r;this.pieces.push(this.createPlaceholderPiece(e.startName,(n=e.startSourceSpan)!=null?n:e.sourceSpan)),e.children.forEach(s=>s.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,(r=e.endSourceSpan)!=null?r:e.sourceSpan))}visitIcuPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan,this.placeholderToMessage[e.name]))}createPlaceholderPiece(e,n,r){return new as(wa(e,!1),n,r)}};function DA(t){let e=[],n=new hp(t.placeholderToMessage,e);return t.nodes.forEach(r=>r.visit(n)),_A(e)}function kA(t){let e=t.nodes[0],n=t.nodes[t.nodes.length-1];return new G(e.sourceSpan.fullStart,n.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}function _A(t){let e=[],n=[];t[0]instanceof as&&e.push(Gc(t[0].sourceSpan.start));for(let r=0;r<t.length;r++){let s=t[r];s instanceof xr?e.push(s):(n.push(s),t[r-1]instanceof as&&e.push(Gc(t[r-1].sourceSpan.end)))}return t[t.length-1]instanceof as&&e.push(Gc(t[t.length-1].sourceSpan.end)),{messageParts:e,placeHolders:n}}function Gc(t){return new xr("",new G(t,t))}var xd="ngI18nClosureMode",Nd="i18n_",RA="I18N_EXP_",Id="\uFFFD",PA="MSG_",LA=250;function Ad(t){return`${PA}${t}`.toUpperCase()}function MA(t){return new Ze(t.name,void 0,kr,void 0,t.sourceSpan)}function OA(t){var c,u;let e=t.relativeContextFilePath.replace(/[^A-Za-z0-9]/g,"_").toUpperCase()+"_",n=new Map,r=new Map,s=new Map,i=new Map;for(let f of t.units)for(let h of f.ops())if(h.kind===d.ExtractedAttribute&&h.i18nContext!==null){let p=(c=n.get(h.i18nContext))!=null?c:[];p.push(h),n.set(h.i18nContext,p)}else if(h.kind===d.I18nAttributes)r.set(h.target,h);else if(h.kind===d.I18nExpression&&h.usage===ks.I18nAttribute){let p=(u=s.get(h.target))!=null?u:[];p.push(h),s.set(h.target,p)}else h.kind===d.I18nMessage&&(h.requiresExtraction===null&&(h.requiresExtraction=i.size>=LA),i.set(h.xref,h));let o=new Map,a=new Map;for(let f of t.units)for(let h of f.create)if(h.kind===d.I18nMessage){if(h.messagePlaceholder===null){let{value:p,statements:g}=Bg(t,e,i,h);if(h.i18nBlock!==null){let y=t.addConst(p,g);a.set(h.i18nBlock,y)}else{t.constsInitializers.push(...g),o.set(h.i18nContext,p);let y=n.get(h.i18nContext);if(y!==void 0)for(let E of y)E.expression=p.clone()}}x.remove(h)}for(let f of t.units)for(let h of f.create)if(Wr(h)){let p=r.get(h.xref);if(p===void 0)continue;let g=s.get(h.xref);if(g===void 0)throw new Error("AssertionError: Could not find any i18n expressions associated with an I18nAttributes instruction");let y=new Set;g=g.filter(w=>{let A=y.has(w.name);return y.add(w.name),!A});let E=g.flatMap(w=>{let A=o.get(w.context);if(A===void 0)throw new Error("AssertionError: Could not find i18n expression's value");return[S(w.name),A]});p.i18nAttributesConfig=t.addConst(new Wt(E))}for(let f of t.units)for(let h of f.create)if(h.kind===d.I18nStart){let p=a.get(h.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?");h.messageIndex=p}}function Bg(t,e,n,r){var u;let s=[],i=new Map;for(let f of r.subMessages){let h=n.get(f),{value:p,statements:g}=Bg(t,e,n,h);s.push(...g);let y=(u=i.get(h.messagePlaceholder))!=null?u:[];y.push(p),i.set(h.messagePlaceholder,y)}FA(r,i),r.params=new Map([...r.params.entries()].sort());let o=$A(t.pool,r.message.id,e,t.i18nUseExternalIds),a;if(r.needsPostprocessing||r.postprocessingParams.size>0){let f=Object.fromEntries([...r.postprocessingParams.entries()].sort()),h=Hp(f,!1),p=[];r.postprocessingParams.size>0&&p.push(zu(h,!0)),a=g=>R(m.i18nPostprocess).callFn([g,...p])}if(r.requiresExtraction===null)throw new Error("AssertionError: requiresExtraction of a message operation was not computed");let c;if(r.requiresExtraction){let f=t.pool.uniqueName(Nd),h=Z("msg"),p=bd(r.message,h,o,r.params,a);p.push(new Pe(h)),t.pool.statements.push(new Kt([],p,X).toDeclStmt(f,Fe.Final)),c=Z(f).callFn([])}else{let f=Z(t.pool.uniqueName(Nd),X);c=f,s.push(...bd(r.message,f,o,r.params,a))}return{value:c,statements:s}}function FA(t,e){for(let[n,r]of e)r.length===1?t.params.set(n,r[0]):(t.params.set(n,S(`${Id}${RA}${n}${Id}`)),t.postprocessingParams.set(n,pe(r)))}function bd(t,e,n,r,s){let i=Object.fromEntries(r),o=[MA(e),va(BA(),NA(e,t,n,i),bA(e,t,Hp(i,!1)))];return s&&o.push(new at(e.set(s(e)))),o}function BA(){return Ri(Z(xd)).notIdentical(S("undefined",Hl)).and(Z(xd))}function $A(t,e,n,r){let s,i=n;if(r){let o=Ad("EXTERNAL_"),a=t.uniqueName(i);s=`${o}${ts(e)}$$${a}`}else{let o=Ad(i);s=t.uniqueName(o)}return Z(s)}function UA(t){var e,n,r;for(let s of t.units){let i=null,o=null,a=new Map,c=new Map,u=new Map;for(let f of s.create)switch(f.kind){case d.I18nStart:if(f.context===null)throw Error("I18n op should have its context set.");i=f;break;case d.I18nEnd:i=null;break;case d.IcuStart:if(f.context===null)throw Error("Icu op should have its context set.");o=f;break;case d.IcuEnd:o=null;break;case d.Text:if(i!==null)if(a.set(f.xref,i),c.set(f.xref,o),f.icuPlaceholder!==null){let h=kC(t.allocateXrefId(),f.icuPlaceholder,[f.initialValue]);x.replace(f,h),u.set(f.xref,h)}else x.remove(f);break}for(let f of s.update)switch(f.kind){case d.InterpolateText:if(!a.has(f.target))continue;let h=a.get(f.target),p=c.get(f.target),g=u.get(f.target),y=p?p.context:h.context,E=p?Ii.Postproccessing:Ii.Creation,w=[];for(let A=0;A<f.interpolation.expressions.length;A++){let k=f.interpolation.expressions[A];w.push(gg(y,h.xref,h.xref,h.handle,k,(e=g==null?void 0:g.xref)!=null?e:null,(n=f.interpolation.i18nPlaceholders[A])!=null?n:null,E,ks.I18nText,"",(r=k.sourceSpan)!=null?r:f.sourceSpan))}x.replaceWithMany(f,w),g!==void 0&&(g.strings=f.interpolation.strings);break}}}function VA(t){for(let e of t.units)for(let n of e.create)switch(n.kind){case d.ElementStart:case d.ConditionalCreate:case d.ConditionalBranchCreate:case d.Template:if(!Array.isArray(n.localRefs))throw new Error("AssertionError: expected localRefs to be an array still");if(n.numSlotsUsed+=n.localRefs.length,n.localRefs.length>0){let r=GA(n.localRefs);n.localRefs=t.addConst(r)}else n.localRefs=null;break}}function GA(t){let e=[];for(let n of t)e.push(S(n.name),S(n.target));return pe(e)}function HA(t){for(let e of t.units){let n=Ie.HTML;for(let r of e.create)r.kind===d.ElementStart&&r.namespace!==n&&(x.insertBefore(wC(r.namespace),r),n=r.namespace)}}function qA(t){let e=[],n=0,r=0,s=0,i=0,o=0,a=null;for(;n<t.length;)switch(t.charCodeAt(n++)){case 40:r++;break;case 41:r--;break;case 39:s===0?s=39:s===39&&t.charCodeAt(n-1)!==92&&(s=0);break;case 34:s===0?s=34:s===34&&t.charCodeAt(n-1)!==92&&(s=0);break;case 58:!a&&r===0&&s===0&&(a=$g(t.substring(o,n-1).trim()),i=n);break;case 59:if(a&&i>0&&r===0&&s===0){let u=t.substring(i,n-1).trim();e.push(a,u),o=n,i=0,a=null}break}if(a&&i){let c=t.slice(i).trim();e.push(a,c)}return e}function $g(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function WA(t){let e=new Map;for(let n of t.units)for(let r of n.create)Wr(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.create)if(r.kind===d.ExtractedAttribute&&r.bindingKind===O.Attribute&&yg(r.expression)){let s=e.get(r.target);if(s!==void 0&&(s.kind===d.Template||s.kind===d.ConditionalCreate||s.kind===d.ConditionalBranchCreate)&&s.templateKind===nt.Structural)continue;if(r.name==="style"){let i=qA(r.expression.value);for(let o=0;o<i.length-1;o+=2)x.insertBefore(ln(r.target,O.StyleProperty,null,i[o],S(i[o+1]),null,null,ne.STYLE),r);x.remove(r)}else if(r.name==="class"){let i=r.expression.value.trim().split(/\s+/g);for(let o of i)x.insertBefore(ln(r.target,O.ClassName,null,o,null,null,null,ne.NONE),r);x.remove(r)}}}function jA(t){uo(t.root,t.componentName,{index:0})}function uo(t,e,n){t.fnName===null&&(t.fnName=t.job.pool.uniqueName(ts(`${e}_${t.job.fnSuffix}`),!1));let r=new Map;for(let s of t.ops())switch(s.kind){case d.Property:case d.DomProperty:s.bindingKind===O.LegacyAnimation&&(s.name="@"+s.name);break;case d.Animation:if(s.handlerFnName===null){let u=s.name.replace(".","");s.handlerFnName=`${t.fnName}_${u}_cb`,s.handlerFnName=ts(s.handlerFnName)}break;case d.AnimationListener:if(s.handlerFnName!==null)break;if(!s.hostListener&&s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let i=s.name.replace(".","");s.hostListener?s.handlerFnName=`${e}_${i}_HostBindingHandler`:s.handlerFnName=`${t.fnName}_${s.tag.replace("-","_")}_${i}_${s.targetSlot.slot}_listener`,s.handlerFnName=ts(s.handlerFnName);break;case d.Listener:if(s.handlerFnName!==null)break;if(!s.hostListener&&s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let o="";s.isLegacyAnimationListener&&(s.name=`@${s.name}.${s.legacyAnimationPhase}`,o="animation"),s.hostListener?s.handlerFnName=`${e}_${o}${s.name}_HostBindingHandler`:s.handlerFnName=`${t.fnName}_${s.tag.replace("-","_")}_${o}${s.name}_${s.targetSlot.slot}_listener`,s.handlerFnName=ts(s.handlerFnName);break;case d.TwoWayListener:if(s.handlerFnName!==null)break;if(s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");s.handlerFnName=ts(`${t.fnName}_${s.tag.replace("-","_")}_${s.name}_${s.targetSlot.slot}_listener`);break;case d.Variable:r.set(s.xref,zA(s.variable,n));break;case d.RepeaterCreate:if(!(t instanceof bt))throw new Error("AssertionError: must be compiling a component");if(s.handle.slot===null)throw new Error("Expected slot to be assigned");if(s.emptyView!==null){let u=t.job.views.get(s.emptyView);uo(u,`${e}_${s.functionNameSuffix}Empty_${s.handle.slot+2}`,n)}uo(t.job.views.get(s.xref),`${e}_${s.functionNameSuffix}_${s.handle.slot+1}`,n);break;case d.Projection:if(!(t instanceof bt))throw new Error("AssertionError: must be compiling a component");if(s.handle.slot===null)throw new Error("Expected slot to be assigned");if(s.fallbackView!==null){let u=t.job.views.get(s.fallbackView);uo(u,`${e}_ProjectionFallback_${s.handle.slot}`,n)}break;case d.ConditionalCreate:case d.ConditionalBranchCreate:case d.BoundaryErrorCreate:case d.Template:if(!(t instanceof bt))throw new Error("AssertionError: must be compiling a component");let a=t.job.views.get(s.xref);if(s.handle.slot===null)throw new Error("Expected slot to be assigned");let c=s.functionNameSuffix.length===0?"":`_${s.functionNameSuffix}`;uo(a,`${e}${c}_${s.handle.slot}`,n);break;case d.StyleProp:s.name=Dd(KA(s.name));break;case d.ClassProp:s.name=Dd(s.name);break}for(let s of t.ops())Ge(s,i=>{if(!(!(i instanceof vn)||i.name!==null)){if(!r.has(i.xref))throw new Error(`Variable ${i.xref} not yet named`);i.name=r.get(i.xref)}})}function zA(t,e){if(t.name===null)switch(t.kind){case Te.Context:t.name=`ctx_r${e.index++}`;break;case Te.Identifier:let n=t.identifier===Qt?"i":"";t.name=`${t.identifier}_${n}r${++e.index}`;break;case Te.BoundaryState:t.name=`bnd_r${++e.index}`;break;default:t.name=`_r${++e.index}`;break}return t.name}function KA(t){return t.startsWith("--")?t:$g(t)}function Dd(t){let e=t.indexOf("!important");return e>-1?t.substring(0,e):t}function XA(t){for(let e of t.units){for(let n of e.functions)Ba(n.ops);for(let n of e.create)(n.kind===d.Listener||n.kind===d.Animation||n.kind===d.AnimationListener||n.kind===d.TwoWayListener)&&Ba(n.handlerOps);Ba(e.create),Ba(e.update)}}function Ba(t){for(let e of t){if(e.kind!==d.Statement||!(e.statement instanceof at)||!(e.statement.expr instanceof Sl))continue;let n=e.statement.expr.steps,r=!0;for(let s=e.next;s.kind!==d.ListEnd&&r;s=s.next)Ge(s,(i,o)=>{if(!$n(i))return i;if(r&&!(o&Y.InChildOperation))switch(i.kind){case F.NextContext:i.steps+=n,x.remove(e),r=!1;break;case F.GetCurrentView:case F.Reference:case F.ContextLetReference:r=!1;break}})}}var YA="ng-container";function QA(t){for(let e of t.units){let n=new Set;for(let r of e.create)r.kind===d.ElementStart&&r.tag===YA&&(r.kind=d.ContainerStart,n.add(r.xref)),r.kind===d.ElementEnd&&n.has(r.xref)&&(r.kind=d.ContainerEnd)}}function JA(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an element-like target.");return n}function ZA(t){let e=new Map;for(let n of t.units)for(let r of n.create)Wr(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.create)(r.kind===d.ElementStart||r.kind===d.ContainerStart)&&r.nonBindable&&x.insertAfter(gC(r.xref),r),(r.kind===d.ElementEnd||r.kind===d.ContainerEnd)&&JA(e,r.xref).nonBindable&&x.insertBefore(yC(r.xref),r)}function kn(t){return e=>e.kind===t}function yo(t,e){return n=>n.kind===t&&e===n.expression instanceof Me}function eb(t){return t.kind===d.Listener&&!(t.hostListener&&t.isLegacyAnimationListener)||t.kind===d.TwoWayListener||t.kind===d.Animation||t.kind===d.AnimationListener}function tb(t){return(t.kind===d.Property||t.kind===d.TwoWayProperty)&&!(t.expression instanceof Me)}var nb=[{test:t=>t.kind===d.Listener&&t.hostListener&&t.isLegacyAnimationListener},{test:eb}],rb=[{test:kn(d.StyleMap),transform:Ll},{test:kn(d.ClassMap),transform:Ll},{test:kn(d.StyleProp)},{test:kn(d.ClassProp)},{test:yo(d.Attribute,!0)},{test:yo(d.Property,!0)},{test:tb},{test:yo(d.Attribute,!1)},{test:kn(d.Control)}],sb=[{test:yo(d.DomProperty,!0)},{test:yo(d.DomProperty,!1)},{test:kn(d.Attribute)},{test:kn(d.StyleMap),transform:Ll},{test:kn(d.ClassMap),transform:Ll},{test:kn(d.StyleProp)},{test:kn(d.ClassProp)}],kd=new Set([d.Listener,d.TwoWayListener,d.AnimationListener,d.StyleMap,d.ClassMap,d.StyleProp,d.ClassProp,d.Property,d.TwoWayProperty,d.DomProperty,d.Attribute,d.Animation,d.Control]);function ib(t){for(let e of t.units){_d(e.create,nb);let n=e.job.kind===D.Host?sb:rb;_d(e.update,n)}}function _d(t,e){let n=[],r=null;for(let s of t){let i=Qo(s)?s.target:null;(!kd.has(s.kind)||i!==r&&r!==null&&i!==null)&&(x.insertBefore(Rd(n,e),s),n=[],r=null),kd.has(s.kind)&&(n.push(s),x.remove(s),r=i!=null?i:r)}t.push(Rd(n,e))}function Rd(t,e){let n=Array.from(e,()=>new Array);for(let r of t){let s=e.findIndex(i=>i.test(r));n[s].push(r)}return n.flatMap((r,s)=>{let i=e[s].transform;return i?i(r):r})}function Ll(t){return t.slice(t.length-1)}function ob(t){for(let e of t.units){let n=xg(e);for(let r of e.ops())if(r.kind===d.Binding){let s=lb(n,r.target);ab(r.name)&&s.kind===d.Projection&&x.remove(r)}}}function ab(t){return t.toLowerCase()==="select"}function lb(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an slottable target.");return n}function cb(t){for(let e of t.units)ub(e)}function ub(t){for(let e of t.update)Ge(e,(n,r)=>{if(!$n(n)||n.kind!==F.PipeBinding)return;if(r&Y.InChildOperation)throw new Error("AssertionError: pipe bindings should not appear in child expressions");let s=e.target;if(s==null)throw new Error("AssertionError: expected slot handle to be assigned for pipe creation");pb(t,s,n)})}function pb(t,e,n){for(let r=t.create.head.next;r.kind!==d.ListEnd;r=r.next){if(!Oi(r)||r.xref!==e)continue;for(;r.next.kind===d.Pipe;)r=r.next;let s=EC(n.target,n.targetSlot,n.name);x.insertBefore(s,r.next);return}throw new Error(`AssertionError: unable to find insertion point for pipe ${n.name}`)}function hb(t){for(let e of t.units)for(let n of e.update)Ce(n,r=>!(r instanceof Ps)||r.args.length<=4?r:new na(r.target,r.targetSlot,r.name,pe(r.args),r.args.length),Y.None)}function fb(t){Ug(t.root,0)}function Ug(t,e){let n=null;for(let r of t.create)switch(r.kind){case d.I18nStart:r.subTemplateIndex=e===0?null:e,n=r;break;case d.I18nEnd:n.subTemplateIndex===null&&(e=0),n=null;break;case d.ConditionalCreate:case d.ConditionalBranchCreate:case d.Template:e=$a(t.job.views.get(r.xref),n,r.i18nPlaceholder,e);break;case d.RepeaterCreate:let s=t.job.views.get(r.xref);e=$a(s,n,r.i18nPlaceholder,e),r.emptyView!==null&&(e=$a(t.job.views.get(r.emptyView),n,r.emptyI18nPlaceholder,e));break;case d.Projection:r.fallbackView!==null&&(e=$a(t.job.views.get(r.fallbackView),n,r.fallbackViewI18nPlaceholder,e));break}return e}function $a(t,e,n,r){if(n!==void 0){if(e===null)throw Error("Expected template with i18n placeholder to be in an i18n block.");r++,db(t,e)}return Ug(t,r)}function db(t,e){var n;if(((n=t.create.head.next)==null?void 0:n.kind)!==d.I18nStart){let r=t.job.allocateXrefId();x.insertAfter(zl(r,e.message,e.root,null),t.create.head),x.insertBefore(Kl(r,null),t.create.tail)}}function mb(t){for(let e of t.units)for(let n of e.ops())Ge(n,r=>{if(!(r instanceof Rs)||r.body===null)return;let s=new fp(r.args.length);r.fn=t.pool.getSharedConstant(s,r.body),r.body=null})}var fp=class extends Do{constructor(n){super();l(this,"numArgs");this.numArgs=n}keyOf(n){return n instanceof Hr?`param(${n.index})`:super.keyOf(n)}toSharedConstantDeclaration(n,r){let s=[];for(let o=0;o<this.numArgs;o++)s.push(new He("a"+o,X));let i=P(r,o=>o instanceof Hr?Z("a"+o.index):o,Y.None);return new Ze(n,new Xt(s,i,X),void 0,Fe.Final)}};function gb(t){for(let e of t.units)for(let n of e.update)Ce(n,(r,s)=>s&Y.InChildOperation?r:r instanceof Wt?yb(r):r instanceof un?vb(r):r,Y.None)}function yb(t){let e=[],n=[];for(let r of t.entries){if(r instanceof Pr){if(r.expression.isConstant())e.push(r);else{let s=n.length;n.push(r.expression),e.push(new Pr(new Hr(s)))}continue}if(r.isConstant())e.push(r);else{let s=n.length;n.push(r),e.push(new Hr(s))}}return new Rs(pe(e),n)}function vb(t){let e=[],n=[];for(let r of t.entries){if(r instanceof En){if(r.expression.isConstant())e.push(r);else{let s=n.length;n.push(r.expression),e.push(new En(new Hr(s)))}continue}if(r.value.isConstant())e.push(r);else{let s=n.length;n.push(r.value),e.push(new Rr(r.key,new Hr(s),r.quoted))}}return new Rs(new un(e),n)}var Sb=new Set(["d","i","m","s","u","v"]);function Eb(t){for(let e of t.units)for(let n of e.ops())Ce(n,r=>r instanceof ys&&wb(r)?t.pool.getSharedConstant(new dp,r):r,Y.None)}function wb(t){if(!t.flags)return!0;for(let e=0;e<t.flags.length;e++)if(!Sb.has(t.flags[e]))return!1;return!0}var dp=class extends Do{toSharedConstantDeclaration(e,n){return new Ze(e,n,void 0,Fe.Final)}},Tb=new Map([["window",m.resolveWindow],["document",m.resolveDocument],["body",m.resolveBody]]),Cb=new Map([["class","className"],["for","htmlFor"],["formaction","formAction"],["innerHtml","innerHTML"],["readonly","readOnly"],["tabindex","tabIndex"]]);function xb(t){for(let e of t.units)Nb(e,e.create),Ql(e,e.update)}function Nb(t,e){var n,r,s,i,o,a,c,u,f,h;for(let p of e)switch(Ce(p,g=>Vg(t,g),Y.None),p.kind){case d.Text:x.replace(p,hN(p.handle.slot,p.initialValue,p.sourceSpan));break;case d.ElementStart:x.replace(p,t.job.mode===At.DomOnly?qN(p.handle.slot,p.tag,p.attributes,p.localRefs,p.startSourceSpan):qx(p.handle.slot,p.tag,p.attributes,p.localRefs,p.startSourceSpan));break;case d.Element:x.replace(p,t.job.mode===At.DomOnly?HN(p.handle.slot,p.tag,p.attributes,p.localRefs,p.wholeSourceSpan):Hx(p.handle.slot,p.tag,p.attributes,p.localRefs,p.wholeSourceSpan));break;case d.ForeignComponent:let g=p.props.size>0?Et(Array.from(p.props.entries()).map(([_e,Rc])=>({key:_e,value:Rc,quoted:Ea(_e)}))):null,y=g!==null?wt([],g,X):null;x.replace(p,Wx(p.handle.slot,S(p.constIndex),y,p.sourceSpan));break;case d.ElementEnd:x.replace(p,t.job.mode===At.DomOnly?WN(p.sourceSpan):zx(p.sourceSpan));break;case d.ContainerStart:x.replace(p,t.job.mode===At.DomOnly?jN(p.handle.slot,p.attributes,p.localRefs,p.startSourceSpan):Kx(p.handle.slot,p.attributes,p.localRefs,p.startSourceSpan));break;case d.Container:x.replace(p,t.job.mode===At.DomOnly?zN(p.handle.slot,p.attributes,p.localRefs,p.wholeSourceSpan):Xx(p.handle.slot,p.attributes,p.localRefs,p.wholeSourceSpan));break;case d.ContainerEnd:x.replace(p,t.job.mode===At.DomOnly?KN():Yx());break;case d.I18nStart:x.replace(p,SN(p.handle.slot,p.messageIndex,p.subTemplateIndex,p.sourceSpan));break;case d.I18nEnd:x.replace(p,_N(p.sourceSpan));break;case d.I18n:x.replace(p,kN(p.handle.slot,p.messageIndex,p.subTemplateIndex,p.sourceSpan));break;case d.I18nAttributes:if(p.i18nAttributesConfig===null)throw new Error("AssertionError: i18nAttributesConfig was not set");x.replace(p,RN(p.handle.slot,p.i18nAttributesConfig));break;case d.Template:if(!(t instanceof bt))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(p.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let E=t.job.views.get(p.xref);x.replace(p,p.templateKind===nt.Block||t.job.mode===At.DomOnly?YN(p.handle.slot,Z(E.fnName),E.decls,E.vars,p.tag,p.attributes,p.localRefs,p.startSourceSpan):Qx(p.handle.slot,Z(E.fnName),E.decls,E.vars,p.tag,p.attributes,p.localRefs,p.startSourceSpan));break;case d.DisableBindings:x.replace(p,Jx());break;case d.EnableBindings:x.replace(p,Zx());break;case d.Pipe:x.replace(p,nN(p.handle.slot,p.name));break;case d.DeclareLet:x.replace(p,AN(p.handle.slot,p.sourceSpan));break;case d.AnimationString:x.replace(p,sI(p.animationKind,p.expression,p.sanitizer,p.sourceSpan));break;case d.Animation:let w=Ua(t,p.handlerFnName,p.handlerOps,!1);x.replace(p,rI(p.animationKind,w,p.sanitizer,p.sourceSpan));break;case d.AnimationListener:let A=Ua(t,p.handlerFnName,p.handlerOps,p.consumesDollarEvent);x.replace(p,iI(p.animationKind,A,null,p.sourceSpan));break;case d.Listener:let k=Ua(t,p.handlerFnName,p.handlerOps,p.consumesDollarEvent),_=p.eventTarget?Tb.get(p.eventTarget):null;if(_===void 0)throw new Error(`Unexpected global target '${p.eventTarget}' defined for '${p.name}' event. Supported list of global targets: window,document,body.`);x.replace(p,t.job.mode===At.DomOnly&&!p.hostListener&&!p.isLegacyAnimationListener?XN(p.name,k,_,p.sourceSpan):eN(p.name,k,_,p.hostListener&&p.isLegacyAnimationListener,p.sourceSpan));break;case d.TwoWayListener:x.replace(p,tN(p.name,Ua(t,p.handlerFnName,p.handlerOps,!0),p.sourceSpan));break;case d.Variable:if(p.variable.name===null)throw new Error(`AssertionError: unnamed variable ${p.xref}`);x.replace(p,Jt(new Ze(p.variable.name,p.initializer,X,Fe.Final)));break;case d.Namespace:switch(p.active){case Ie.HTML:x.replace(p,rN());break;case Ie.SVG:x.replace(p,sN());break;case Ie.Math:x.replace(p,iN());break}break;case d.Defer:let H=!!p.loadingMinimumTime||!!p.loadingAfterTime||!!p.placeholderMinimumTime;x.replace(p,fN(p.handle.slot,p.mainSlot.slot,p.resolverFn,(r=(n=p.loadingSlot)==null?void 0:n.slot)!=null?r:null,(i=(s=p.placeholderSlot)==null?void 0:s.slot)!=null?i:null,(a=(o=p.errorSlot)==null?void 0:o.slot)!=null?a:null,p.loadingConfig,p.placeholderConfig,H,p.sourceSpan,p.flags));break;case d.DeferOn:let q=[],te=p.trigger.kind;switch(te){case ue.Never:case ue.Immediate:break;case ue.Idle:p.trigger.timeout!=null&&(q=[S(p.trigger.timeout)]);break;case ue.Timer:q=[S(p.trigger.delay)];break;case ue.Viewport:p.modifier==="hydrate"?q=p.trigger.options?[p.trigger.options]:[]:(q=[S((u=(c=p.trigger.targetSlot)==null?void 0:c.slot)!=null?u:null)],p.trigger.targetSlotViewSteps!==0?q.push(S(p.trigger.targetSlotViewSteps)):p.trigger.options&&q.push(S(null)),p.trigger.options&&q.push(p.trigger.options));break;case ue.Interaction:case ue.Hover:p.modifier==="hydrate"?q=[]:(q=[S((h=(f=p.trigger.targetSlot)==null?void 0:f.slot)!=null?h:null)],p.trigger.targetSlotViewSteps!==0&&q.push(S(p.trigger.targetSlotViewSteps)));break;default:{let _e=te;throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${_e}`)}}x.replace(p,gN(p.trigger.kind,q,p.modifier,p.sourceSpan));break;case d.ProjectionDef:x.replace(p,yN(p.def));break;case d.EnableIncrementalHydrationRuntime:x.replace(p,dN(p.sourceSpan));break;case d.Projection:if(p.handle.slot===null)throw new Error("No slot was assigned for project instruction");let Se=null,Ee=null,dt=null;if(p.fallbackView!==null){if(!(t instanceof bt))throw new Error("AssertionError: must be compiling a component");let _e=t.job.views.get(p.fallbackView);if(_e===void 0)throw new Error("AssertionError: projection had fallback view xref, but fallback view was not found");if(_e.fnName===null||_e.decls===null||_e.vars===null)throw new Error("AssertionError: expected projection fallback view to have been named and counted");Se=_e.fnName,Ee=_e.decls,dt=_e.vars}x.replace(p,vN(p.handle.slot,p.projectionSlotIndex,p.attributes,Se,Ee,dt,p.sourceSpan));break;case d.ConditionalCreate:if(!(t instanceof bt))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(p.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let fr=t.job.views.get(p.xref);x.replace(p,EN(p.handle.slot,Z(fr.fnName),fr.decls,fr.vars,p.tag,p.attributes,p.localRefs,p.startSourceSpan));break;case d.ConditionalBranchCreate:if(!(t instanceof bt))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(p.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let qn=t.job.views.get(p.xref);x.replace(p,td(p.handle.slot,Z(qn.fnName),qn.decls,qn.vars,p.tag,p.attributes,p.localRefs,p.startSourceSpan));break;case d.BoundaryErrorCreate:if(!(t instanceof bt))throw new Error("AssertionError: must be compiling a component");let Wn=t.job.views.get(p.xref);x.replace(p,td(p.handle.slot,Z(Wn.fnName),Wn.decls,Wn.vars,null,null,null,p.startSourceSpan));break;case d.BoundaryCreate:if(!(t instanceof bt))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(p.localRefs)&&p.localRefs.length>0)throw new Error("AssertionError: local refs array should have been extracted into a constant");x.replace(p,wN(p.handle.slot,p.startSourceSpan));break;case d.RepeaterCreate:if(p.handle.slot===null)throw new Error("No slot was assigned for repeater instruction");if(!(t instanceof bt))throw new Error("AssertionError: must be compiling a component");let Ki=t.job.views.get(p.xref);if(Ki.fnName===null)throw new Error("AssertionError: expected repeater primary view to have been named");let Xi=null,Yi=null,Bs=null;if(p.emptyView!==null){let _e=t.job.views.get(p.emptyView);if(_e===void 0)throw new Error("AssertionError: repeater had empty view xref, but empty view was not found");if(_e.fnName===null||_e.decls===null||_e.vars===null)throw new Error("AssertionError: expected repeater empty view to have been named and counted");Xi=_e.fnName,Yi=_e.decls,Bs=_e.vars}x.replace(p,xN(p.handle.slot,Ki.fnName,p.decls,p.vars,p.tag,p.attributes,bb(t,p),p.usesComponentInstance,Xi,Yi,Bs,p.emptyTag,p.emptyAttributes,p.wholeSourceSpan));break;case d.SourceLocation:let bE=pe(p.locations.map(({targetSlot:_e,offset:Rc,line:DE,column:kE})=>{if(_e.slot===null)throw new Error("No slot was assigned for source location");return pe([S(_e.slot),S(Rc),S(DE),S(kE)])}));x.replace(p,lI(p.templatePath,bE));break;case d.ControlCreate:x.replace(p,ON(p.sourceSpan));break;case d.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${d[p.kind]}`)}}function Ql(t,e){for(let n of e)switch(Ce(n,r=>Vg(t,r),Y.None),n.kind){case d.Advance:x.replace(n,oN(n.delta,n.sourceSpan));break;case d.Property:x.replace(n,t.job.mode===At.DomOnly&&n.bindingKind!==O.LegacyAnimation&&n.bindingKind!==O.Animation?Pd(n):Ib(n));break;case d.Control:x.replace(n,Ab(n));break;case d.TwoWayProperty:x.replace(n,FN(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case d.StyleProp:x.replace(n,$N(n.name,n.expression,n.unit,n.sourceSpan));break;case d.ClassProp:x.replace(n,UN(n.name,n.expression,n.sourceSpan));break;case d.StyleMap:x.replace(n,VN(n.expression,n.sourceSpan));break;case d.ClassMap:x.replace(n,GN(n.expression,n.sourceSpan));break;case d.I18nExpression:x.replace(n,eI(n.expression,n.sourceSpan));break;case d.I18nApply:x.replace(n,tI(n.handle.slot,n.sourceSpan));break;case d.InterpolateText:x.replace(n,ZN(n.interpolation.strings,n.interpolation.expressions,n.sourceSpan));break;case d.Attribute:x.replace(n,BN(n.name,n.expression,n.sanitizer,n.namespace,n.sourceSpan));break;case d.DomProperty:if(n.expression instanceof Me)throw new Error("not yet handled");n.bindingKind===O.LegacyAnimation||n.bindingKind===O.Animation?x.replace(n,oI(n.name,n.expression,n.sourceSpan)):x.replace(n,Pd(n));break;case d.Variable:if(n.variable.name===null)throw new Error(`AssertionError: unnamed variable ${n.xref}`);x.replace(n,Jt(new Ze(n.variable.name,n.initializer,X,Fe.Final)));break;case d.Conditional:if(n.processed===null)throw new Error("Conditional test was not set.");x.replace(n,uI(n.processed,n.contextValue,n.sourceSpan));break;case d.Boundary:if(n.processed===null)throw new Error("Boundary test was not set.");let r=n.targetSlot.slot;if(r===null)throw new Error("AssertionError: Boundary target slot not found");let s=n.guarded.targetSlot.slot;if(s===null)throw new Error("AssertionError: Primary slot not found for boundary");x.replace(n,CN(S(r),n.processed,S(s),n.sourceSpan));break;case d.Repeater:x.replace(n,NN(n.collection,n.sourceSpan));break;case d.DeferWhen:x.replace(n,IN(n.modifier,n.expr,n.sourceSpan));break;case d.StoreLet:throw new Error(`AssertionError: unexpected storeLet ${n.declaredName}`);case d.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of update op ${d[n.kind]}`)}}function Pd(t){var e;return nI((e=Cb.get(t.name))!=null?e:t.name,t.expression,t.sanitizer,t.sourceSpan)}function Ib(t){return Ng(t.name)?PN(t.name,t.expression,t.sourceSpan):LN(t.name,t.expression,t.sanitizer,t.sourceSpan)}function Ab(t){return MN(t.sourceSpan)}function Vg(t,e){if(!$n(e))return e;switch(e.kind){case F.NextContext:return lN(e.steps);case F.Reference:return aN(e.targetSlot.slot+1+e.offset);case F.ForeignContent:if(!(t instanceof bt))throw new Error("AssertionError: must be compiling a component");let n=t.job.views.get(e.childrenViewXref).contextVariables.size>0;return jx(e.childrenViewHandle.slot,e.foreignComponentConstIndex,n);case F.LexicalRead:throw new Error(`AssertionError: unresolved LexicalRead of ${e.name}`);case F.TwoWayBindingSet:throw new Error("AssertionError: unresolved TwoWayBindingSet");case F.RestoreView:if(typeof e.view=="number")throw new Error("AssertionError: unresolved RestoreView");return uN(e.view);case F.ResetView:return pN(e.expr);case F.GetCurrentView:return cN();case F.ReadVariable:if(e.name===null)throw new Error(`Read of unnamed variable ${e.xref}`);return Z(e.name);case F.ReadTemporaryExpr:if(e.name===null)throw new Error(`Read of unnamed temporary ${e.xref}`);return Z(e.name);case F.AssignTemporaryExpr:if(e.name===null)throw new Error(`Assign of unnamed temporary ${e.xref}`);return Z(e.name).set(e.expr);case F.PureFunctionExpr:if(e.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");return aI(e.varOffset,e.fn,e.args);case F.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case F.PipeBinding:return QN(e.targetSlot.slot,e.varOffset,e.args);case F.PipeBindingVariadic:return JN(e.targetSlot.slot,e.varOffset,e.args);case F.SlotLiteralExpr:return S(e.slot.slot);case F.ContextLetReference:return DN(e.targetSlot.slot);case F.StoreLet:return bN(e.value,e.sourceSpan);case F.TrackContext:return Z("this");case F.ArrowFunction:if(e.varOffset===null)throw new Error("AssertionError: variable offset was not assigned to arrow function");return cI(e.varOffset,t.job.pool.getSharedFunctionReference(Db(t,e),"arrowFn"),Z(Qt));default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${F[e.kind]}`)}}function Ua(t,e,n,r){Ql(t,n);let s=[];for(let o of n){if(o.kind!==d.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${d[o.kind]}`);s.push(o.statement)}let i=[];return r&&i.push(new He("$event",X)),Jn(i,s,X,void 0,e)}function bb(t,e){if(e.trackByFn!==null)return e.trackByFn;let n=[new He("$index",_r),new He("$item",X)],r;if(e.trackByOps===null)r=e.usesComponentInstance?Jn(n,[new Pe(e.track)],X):wt(n,e.track,X);else{Ql(t,e.trackByOps);let s=[];for(let i of e.trackByOps){if(i.kind!==d.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${d[i.kind]}`);s.push(i.statement)}r=e.usesComponentInstance||s.length!==1||!(s[0]instanceof Pe)?Jn(n,s,X):wt(n,s[0].value,X)}return e.trackByFn=t.job.pool.getSharedFunctionReference(r,"_forTrack"),e.trackByFn}function Db(t,e){Ql(t,e.ops);let n=[];for(let s of e.ops){if(s.kind!==d.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${d[s.kind]}`);n.push(s.statement)}let r=n.length===1&&n[0]instanceof Pe?n[0].value:n;return wt([new He(e.contextName,X),new He(e.currentViewName,X)],wt(e.parameters,r,X),X)}function kb(t){for(let e of t.units)for(let n of e.update)switch(n.kind){case d.Attribute:case d.Binding:case d.ClassProp:case d.ClassMap:case d.Property:case d.StyleProp:case d.StyleMap:n.expression instanceof sa&&x.remove(n);break}}function _b(t){for(let e of t.units)for(let n of e.create)switch(n.kind){case d.I18nContext:x.remove(n);break;case d.I18nStart:n.context=null;break}}function Rb(t){for(let e of t.units)for(let n of e.update){if(n.kind!==d.Variable||n.variable.kind!==Te.Identifier||!(n.initializer instanceof Zo))continue;let r=n.variable.identifier,s=n;for(;s&&s.kind!==d.ListEnd;)Ce(s,i=>i instanceof Qe&&i.name===r?S(void 0):i,Y.None),s=s.prev}}function Pb(t){for(let e of t.units){let n=new Set;for(let r of e.update)r.kind===d.I18nExpression&&n.add(r.i18nOwner);for(let r of e.create)switch(r.kind){case d.I18nAttributes:if(n.has(r.xref))continue;x.remove(r)}}}function Lb(t){for(let e of t.units)Mb(e)}function Mb(t){let e=new Map;for(let n of t.ops())if(n.kind===d.Variable&&n.variable.kind===Te.BoundaryState){let r=n.variable;e.set(r.boundaryXref,n.xref)}for(let n of t.ops())Ce(n,r=>{if(r instanceof Jo){let s=e.get(r.xref);if(s===void 0)throw new Error(`Could not find variable for boundary ${r.xref}`);return new vn(s)}return r},Y.None)}function Ob(t){for(let e of t.units){for(let n of e.functions)vo(e,n.ops);vo(e,e.create),vo(e,e.update)}}function vo(t,e){let n=new Map;n.set(t.xref,Z(Qt));for(let r of e)switch(r.kind){case d.Variable:r.variable.kind===Te.Context&&n.set(r.variable.view,new vn(r.xref));break;case d.Animation:case d.AnimationListener:case d.Listener:case d.TwoWayListener:vo(t,r.handlerOps);break;case d.RepeaterCreate:r.trackByOps!==null&&vo(t,r.trackByOps);break}t===t.job.root&&n.set(t.xref,Z(Qt));for(let r of e)Ce(r,s=>{if(s instanceof or){if(!n.has(s.view))throw new Error(`No context found for reference to view ${s.view} from view ${t.xref}`);return n.get(s.view)}else return s},Y.None)}function Fb(t){var e;for(let n of t.units)for(let r of n.create)if(r.kind===d.Defer){if(r.resolverFn!==null)continue;if(r.ownResolverFn!==null){if(r.handle.slot===null)throw new Error("AssertionError: slot must be assigned before extracting defer deps functions");let s=(e=n.fnName)==null?void 0:e.replace("_Template","");r.resolverFn=t.pool.getSharedFunctionReference(r.ownResolverFn,`${s}_Defer_${r.handle.slot}_DepsFn`,!1)}}}function Bb(t){for(let e of t.units)Ld(e.create),Ld(e.update)}function Ld(t){for(let e of t)(e.kind===d.Listener||e.kind===d.TwoWayListener||e.kind===d.AnimationListener)&&Ce(e,n=>n instanceof Qe&&n.name==="$event"?((e.kind===d.Listener||e.kind===d.AnimationListener)&&(e.consumesDollarEvent=!0),new cn(n.name)):n,Y.InChildOperation)}function $b(t){for(let e of t.units){let n=new Map;for(let r of e.create)r.kind===d.ForeignComponent&&n.set(r.xref,r);for(let r of e.create){if(r.kind!==d.Content)continue;let s=n.get(r.target);if(s===void 0)throw new Error("AssertionError: ContentOp target not found");let i=r.propertyName.charAt(0).toUpperCase()+r.propertyName.slice(1),o=Xp(r.view,nt.NgTemplate,null,i,Ie.HTML,void 0,r.startSourceSpan,r.sourceSpan);x.replace(r,o);let a=new Uu(o.xref,o.handle,s.constIndex),c=t.allocateXrefId(),u={kind:Te.Identifier,name:null,identifier:r.propertyName,local:!0},f=In(c,u,a,kt.None);x.insertBefore(f,s),s.props.set(r.propertyName,new vn(c))}}}function Ub(t){let e=new Map,n=new Map;for(let r of t.units)for(let s of r.create)switch(s.kind){case d.I18nContext:e.set(s.xref,s);break;case d.ElementStart:n.set(s.xref,s);break}Nn(t,t.root,e,n)}function Nn(t,e,n,r,s){let i=null,o=new Map;for(let a of e.create)switch(a.kind){case d.I18nStart:if(!a.context)throw Error("Could not find i18n context for i18n op");i={i18nBlock:a,i18nContext:n.get(a.context)};break;case d.I18nEnd:i=null;break;case d.ElementStart:if(a.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Md(a,i.i18nContext,i.i18nBlock,s),s&&a.i18nPlaceholder.closeName&&o.set(a.xref,s),s=void 0}break;case d.ElementEnd:let c=r.get(a.xref);if(c&&c.i18nPlaceholder!==void 0){if(i===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");Od(c,i.i18nContext,i.i18nBlock,o.get(a.xref)),o.delete(a.xref)}break;case d.Projection:if(a.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Md(a,i.i18nContext,i.i18nBlock,s),Od(a,i.i18nContext,i.i18nBlock,s),s=void 0}if(a.fallbackView!==null){let p=t.views.get(a.fallbackView);if(a.fallbackViewI18nPlaceholder===void 0)Nn(t,p,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Va(t,p,a.handle.slot,a.fallbackViewI18nPlaceholder,i.i18nContext,i.i18nBlock,s),Nn(t,p,n,r),Ga(t,p,a.handle.slot,a.fallbackViewI18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}}break;case d.ConditionalCreate:case d.ConditionalBranchCreate:case d.Template:let u=t.views.get(a.xref);if(a.i18nPlaceholder===void 0)Nn(t,u,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");a.templateKind===nt.Structural?Nn(t,u,n,r,a):(Va(t,u,a.handle.slot,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),Nn(t,u,n,r),Ga(t,u,a.handle.slot,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0)}break;case d.RepeaterCreate:if(s!==void 0)throw Error("AssertionError: Unexpected structural directive associated with @for block");let f=a.handle.slot+1,h=t.views.get(a.xref);if(a.i18nPlaceholder===void 0)Nn(t,h,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Va(t,h,f,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),Nn(t,h,n,r),Ga(t,h,f,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}if(a.emptyView!==null){let p=a.handle.slot+2,g=t.views.get(a.emptyView);if(a.emptyI18nPlaceholder===void 0)Nn(t,g,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Va(t,g,p,a.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),Nn(t,g,n,r),Ga(t,g,p,a.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}}break}}function Md(t,e,n,r){let{startName:s,closeName:i}=t.i18nPlaceholder,o=he.ElementTag|he.OpenTag,a=t.handle.slot;r!==void 0&&(o|=he.TemplateTag,a={element:a,template:r.handle.slot}),i||(o|=he.CloseTag),ki(e.params,s,a,n.subTemplateIndex,o)}function Od(t,e,n,r){let{closeName:s}=t.i18nPlaceholder;if(s){let i=he.ElementTag|he.CloseTag,o=t.handle.slot;r!==void 0&&(i|=he.TemplateTag,o={element:o,template:r.handle.slot}),ki(e.params,s,o,n.subTemplateIndex,i)}}function Va(t,e,n,r,s,i,o){let{startName:a,closeName:c}=r,u=he.TemplateTag|he.OpenTag;c||(u|=he.CloseTag),o!==void 0&&ki(s.params,a,o.handle.slot,i.subTemplateIndex,u),ki(s.params,a,n,Gg(t,i,e),u)}function Ga(t,e,n,r,s,i,o){let{closeName:a}=r,c=he.TemplateTag|he.CloseTag;a&&(ki(s.params,a,n,Gg(t,i,e),c),o!==void 0&&ki(s.params,a,o.handle.slot,i.subTemplateIndex,c))}function Gg(t,e,n){for(let r of n.create)if(r.kind===d.I18nStart)return r.subTemplateIndex;return e.subTemplateIndex}function ki(t,e,n,r,s){var o;let i=(o=t.get(e))!=null?o:[];i.push({value:n,subTemplateIndex:r,flags:s}),t.set(e,i)}function Vb(t){var o;let e=new Map,n=new Map,r=new Map;for(let a of t.units)for(let c of a.create)switch(c.kind){case d.I18nStart:e.set(c.xref,c.subTemplateIndex);break;case d.I18nContext:n.set(c.xref,c);break;case d.IcuPlaceholder:r.set(c.xref,c);break}let s=new Map,i=a=>a.usage===ks.I18nText?a.i18nOwner:a.context;for(let a of t.units)for(let c of a.update)if(c.kind===d.I18nExpression){let u=s.get(i(c))||0,f=(o=e.get(c.i18nOwner))!=null?o:null,h={value:u,subTemplateIndex:f,flags:he.ExpressionIndex};Gb(c,h,n,r),s.set(i(c),u+1)}}function Gb(t,e,n,r){if(t.i18nPlaceholder!==null){let s=n.get(t.context),i=t.resolutionTime===Ii.Creation?s.params:s.postprocessingParams,o=i.get(t.i18nPlaceholder)||[];o.push(e),i.set(t.i18nPlaceholder,o)}if(t.icuPlaceholder!==null){let s=r.get(t.icuPlaceholder);s==null||s.expressionPlaceholders.push(e)}}function Hb(t){var n,r;let e=new Map;for(let s of t.units)for(let i of s.ops())if(i.kind===d.ElementStart||i.kind===d.Template){let o=(n=i.tag)!=null?n:"";switch(i.namespace){case Ie.SVG:o=`:${Xl}:${o}`;break;case Ie.Math:o=`:${Yl}:${o}`;break}e.set(i.xref,o)}for(let s of t.units)for(let i of s.create)if(i.kind===d.ExtractedAttribute&&i.i18nContext!==null&&i.expression!==null){let o=(r=e.get(i.target))!=null?r:"",a=i.expression;switch(i.securityContext){case ne.HTML:a=R(m.sanitizeHtml).callFn([a]);break;case ne.STYLE:a=R(m.sanitizeStyle).callFn([a]);break;case ne.SCRIPT:a=R(m.sanitizeScript).callFn([a]);break;case ne.URL:a=R(m.sanitizeUrl).callFn([a]);break;case ne.RESOURCE_URL:a=R(m.sanitizeResourceUrl).callFn([a]);break;case ne.ATTRIBUTE_NO_BINDING:a=R(m.validateAttribute).callFn([a,S(o),S(i.name)]);break}i.expression=a}}function qb(t){for(let e of t.units){for(let n of e.functions)So(e,n.ops,null);So(e,e.create,null),So(e,e.update,null)}}function So(t,e,n){let r=new Map,s=new Map;for(let i of e)switch(i.kind){case d.Variable:switch(i.variable.kind){case Te.Identifier:if(i.variable.local){if(s.has(i.variable.identifier))continue;s.set(i.variable.identifier,i.xref)}else if(r.has(i.variable.identifier))continue;r.set(i.variable.identifier,i.xref);break;case Te.Alias:if(r.has(i.variable.identifier))continue;r.set(i.variable.identifier,i.xref);break;case Te.SavedView:n={view:i.variable.view,variable:i.xref};break}break;case d.Animation:case d.AnimationListener:case d.Listener:case d.TwoWayListener:So(t,i.handlerOps,n);break;case d.RepeaterCreate:i.trackByOps!==null&&So(t,i.trackByOps,n);break}for(let i of e)i.kind===d.Listener||i.kind===d.TwoWayListener||i.kind===d.Animation||i.kind===d.AnimationListener||Ce(i,o=>{if(o instanceof Qe)return s.has(o.name)?new vn(s.get(o.name)):r.has(o.name)?new vn(r.get(o.name)):new We(new or(t.job.root.xref),o.name);if(o instanceof ta&&typeof o.view=="number"){if(n===null||n.view!==o.view)throw new Error(`AssertionError: no saved view ${o.view} from view ${t.xref}`);return o.view=new vn(n.variable),o}else return o},Y.None);for(let i of e)Ge(i,o=>{if(o instanceof Qe)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${o.name}`)})}var Wb=new Map([[ne.HTML,m.sanitizeHtml],[ne.RESOURCE_URL,m.sanitizeResourceUrl],[ne.SCRIPT,m.sanitizeScript],[ne.STYLE,m.sanitizeStyle],[ne.URL,m.sanitizeUrl],[ne.ATTRIBUTE_NO_BINDING,m.validateAttribute]]),jb=new Map([[ne.HTML,m.trustConstantHtml],[ne.RESOURCE_URL,m.trustConstantResourceUrl]]);function zb(t){var e,n;for(let r of t.units){if(t.kind!==D.Host){for(let s of r.create)if(s.kind===d.ExtractedAttribute){let i=(e=jb.get(Fd(s.securityContext)))!=null?e:null;s.trustedValueFn=i!==null?R(i):null}}for(let s of r.update)switch(s.kind){case d.Property:case d.Attribute:case d.DomProperty:case d.TwoWayProperty:let i=null;Array.isArray(s.securityContext)&&Kb(s.securityContext)?i=m.sanitizeUrlOrResourceUrl:i=(n=Wb.get(Fd(s.securityContext)))!=null?n:null,s.sanitizer=i!==null?R(i):null;break}}}function Kb(t){let e=!1,n=!1,r=!1;for(let s of t)switch(s){case ne.URL:e=!0;break;case ne.RESOURCE_URL:n=!0;break;case ne.NONE:r=!0;break;default:return!1}return(e||n)&&r||e&&n}function Fd(t){var n,r;if(!Array.isArray(t))return t;if(t.length<2)return(n=t[0])!=null?n:ne.NONE;let e=t.filter(s=>s!==ne.NONE);if(e.length>1)throw Error("AssertionError: Ambiguous security context");return(r=e[0])!=null?r:ne.NONE}function Xb(t){for(let e of t.units)for(let n of e.ops())Ce(n,r=>Yb(r),Y.None)}function Yb(t){if(t instanceof Ae&&t.fn instanceof Qe&&t.fn.name==="$safeNavigationMigration"){if(t.args.length!==1)throw new Error("The $safeNavigationMigration builtin function expects exactly one argument.");return new ra(t.args[0])}return t}function Qb(t){for(let e of t.units){for(let n of e.functions)Bd(t,e,n.ops)&&$d(e,n.ops,Z(n.currentViewName));e.create.prepend([In(e.job.allocateXrefId(),{kind:Te.SavedView,name:null,view:e.xref},new Gu,kt.None)]);for(let n of e.create)(n.kind===d.Listener||n.kind===d.TwoWayListener||n.kind===d.Animation||n.kind===d.AnimationListener)&&Bd(t,e,n.handlerOps)&&$d(e,n.handlerOps,e.xref)}}function Bd(t,e,n){let r=e!==t.root;if(!r)for(let s of n)Ge(s,i=>{(i instanceof vl||i instanceof ea)&&(r=!0)});return r}function $d(t,e,n){e.prepend([In(t.job.allocateXrefId(),{kind:Te.Context,name:null,view:t.xref},new ta(n),kt.None)]);for(let r of e)r.kind===d.Statement&&r.statement instanceof Pe&&(r.statement.value=new El(r.statement.value))}function Jb(t){for(let e of t.units){let n=0;for(let r of e.create)Oi(r)&&(r.handle.slot=n,n+=r.numSlotsUsed);e.decls=n}for(let e of t.units)for(let n of e.ops())if(n.kind===d.Template||n.kind===d.ConditionalCreate||n.kind===d.ConditionalBranchCreate||n.kind===d.RepeaterCreate){let r=t.views.get(n.xref);n.decls=r.decls}}function Zb(t){let e=new Set,n=new Map;for(let r of t.units)for(let s of r.ops())s.kind===d.DeclareLet&&n.set(s.xref,s),Ge(s,i=>{i instanceof ea&&e.add(i.target)});for(let r of t.units)for(let s of r.update)Ce(s,i=>i instanceof Zo&&!e.has(i.target)?(eD(i)||x.remove(n.get(i.target)),i.value):i,Y.None)}function eD(t){let e=!1;return P(t,n=>((n instanceof Ps||n instanceof na)&&(e=!0),n),Y.None),e}function tD(t){let e=new Set;for(let n of t.units)for(let r of n.ops())Ge(r,s=>{if(s instanceof oe)switch(iD(s,e),s.operator){case T.Exponentiation:nD(s,e);break;case T.NullishCoalesce:rD(s,e);break;case T.And:case T.Or:sD(s,e)}else s instanceof We||s instanceof qt?Hc(s.receiver,e):s instanceof Ae?Hc(s.fn,e):s instanceof gs&&Hc(s.tag,e)});for(let n of t.units)for(let r of n.ops())Ce(r,s=>s instanceof St?e.has(s)?s:s.expr:s,Y.None)}function nD(t,e){t.lhs instanceof St&&(t.lhs.expr instanceof Mn||Hg(t.lhs.expr))&&e.add(t.lhs)}function rD(t,e){t.lhs instanceof St&&(Ud(t.lhs.expr)||t.lhs.expr instanceof Ht)&&e.add(t.lhs),t.rhs instanceof St&&(Ud(t.rhs.expr)||t.rhs.expr instanceof Ht)&&e.add(t.rhs)}function sD(t,e){t.lhs instanceof St&&t.lhs.expr instanceof oe&&t.lhs.expr.operator===T.NullishCoalesce&&e.add(t.lhs)}function Ud(t){return t instanceof oe&&(t.operator===T.And||t.operator===T.Or)}function Hc(t,e){t instanceof St&&(Hg(t.expr)||t.expr instanceof Xt||t.expr instanceof Be&&typeof t.expr.value=="number")&&e.add(t)}function iD(t,e){t.lhs instanceof St&&t.lhs.expr instanceof Xt&&e.add(t.lhs),!t.isAssignment()&&t.rhs instanceof St&&t.rhs.expr instanceof Xt&&e.add(t.rhs)}function Hg(t){return t instanceof vs||t instanceof Qn||t instanceof ci}function oD(t){for(let e of t.units)for(let n of e.update)if(n.kind===d.Binding)switch(n.bindingKind){case O.ClassName:if(n.expression instanceof Me)throw new Error("Unexpected interpolation in ClassName binding");x.replace(n,ZT(n.target,n.name,n.expression,n.sourceSpan));break;case O.StyleProperty:x.replace(n,JT(n.target,n.name,n.expression,n.unit,n.sourceSpan));break;case O.Property:case O.Template:n.name==="style"?x.replace(n,eC(n.target,n.expression,n.sourceSpan)):n.name==="class"&&x.replace(n,tC(n.target,n.expression,n.sourceSpan));break}}function aD(t){for(let e of t.units){e.create.prepend(Eo(e.create)),e.update.prepend(Eo(e.update));for(let n of e.functions)n.ops.prepend(Eo(n.ops))}}function Eo(t){let e=0,n=[];for(let r of t){let s=new Map;Ge(r,(c,u)=>{u&Y.InChildOperation||c instanceof qr&&s.set(c.xref,c)});let i=0,o=new Set,a=new Map;Ge(r,(c,u)=>{u&Y.InChildOperation||(c instanceof Un?(o.has(c.xref)||(o.add(c.xref),a.set(c.xref,`tmp_${e}_${i++}`)),Vd(a,c)):c instanceof qr&&(s.get(c.xref)===c&&i--,Vd(a,c)))}),n.push(...Array.from(new Set(a.values())).map(c=>Jt(new Ze(c)))),e++,r.kind===d.Listener||r.kind===d.Animation||r.kind===d.AnimationListener||r.kind===d.TwoWayListener?r.handlerOps.prepend(Eo(r.handlerOps)):r.kind===d.RepeaterCreate&&r.trackByOps!==null&&r.trackByOps.prepend(Eo(r.trackByOps))}return n}function Vd(t,e){let n=t.get(e.xref);if(n===void 0)throw new Error(`Found xref with unassigned name: ${e.xref}`);e.name=n}function lD(t){for(let e of t.units)for(let n of e.create)if(n.kind===d.RepeaterCreate)if(n.track instanceof cn&&n.track.name==="$index")n.trackByFn=R(m.repeaterTrackByIndex);else if(n.track instanceof cn&&n.track.name==="$item")n.trackByFn=R(m.repeaterTrackByIdentity);else if(cD(t.root.xref,n.track))n.usesComponentInstance=!0,n.track.receiver.receiver.view===e.xref?n.trackByFn=n.track.receiver:(n.trackByFn=R(m.componentInstance).callFn([]).prop(n.track.receiver.name),n.track=n.trackByFn);else{n.track=P(n.track,s=>{if(s instanceof Ps||s instanceof na)throw new Error("Illegal State: Pipes are not allowed in this context");return s instanceof or?(n.usesComponentInstance=!0,new Vu(s.view)):s},Y.None);let r=new x;r.push(Jt(new Pe(n.track,n.track.sourceSpan,[zo()]))),n.trackByOps=r}}function cD(t,e){if(!(e instanceof Ae)||e.args.length===0||e.args.length>2||!(e.receiver instanceof We&&e.receiver.receiver instanceof or)||e.receiver.receiver.view!==t)return!1;let[n,r]=e.args;return!(n instanceof cn)||n.name!=="$index"?!1:e.args.length===1?!0:!(!(r instanceof cn)||r.name!=="$item")}function uD(t){for(let e of t.units)for(let n of e.create)n.kind===d.RepeaterCreate&&(n.track=P(n.track,r=>{if(r instanceof Qe){if(n.varNames.$index.has(r.name))return Z("$index");if(r.name===n.varNames.$implicit)return Z("$item")}return r},Y.None))}function pD(t){for(let e of t.units)for(let n of e.create)n.kind===d.TwoWayListener&&Ce(n,r=>{if(!(r instanceof wl))return r;let{target:s,value:i}=r;if(s instanceof We||s instanceof qt)return ed(s,i).or(s.set(i));if(s instanceof vn)return ed(s,i);throw new Error("Unsupported expression in two-way action binding.")},Y.InChildOperation)}function hD(t){for(let e of t.units){let n=0;for(let i of e.ops())Bc(i)&&(n+=fD(i));let r=i=>{$n(i)&&(i instanceof Rs||(Hf(i)&&(i.varOffset=n),Bc(i)&&(n+=Gd(i))))},s=i=>{!$n(i)||!(i instanceof Rs)||(Hf(i)&&(i.varOffset=n),Bc(i)&&(n+=Gd(i)))};for(let i of e.create)Ge(i,r);for(let i of e.update)Ge(i,r);for(let i of e.create)Ge(i,s);for(let i of e.update)Ge(i,s);e.vars=n}if(t instanceof aa)for(let e of t.units)for(let n of e.create){if(n.kind!==d.Template&&n.kind!==d.RepeaterCreate&&n.kind!==d.ConditionalCreate&&n.kind!==d.ConditionalBranchCreate)continue;let r=t.views.get(n.xref);n.vars=r.vars}}function fD(t){let e;switch(t.kind){case d.Attribute:return e=1,t.expression instanceof Me&&!dD(t.expression)&&(e+=t.expression.expressions.length),e;case d.Property:case d.DomProperty:return e=1,t.expression instanceof Me&&(e+=t.expression.expressions.length),e;case d.Control:return 2;case d.TwoWayProperty:return 1;case d.StyleProp:case d.ClassProp:case d.StyleMap:case d.ClassMap:return e=2,t.expression instanceof Me&&(e+=t.expression.expressions.length),e;case d.InterpolateText:return t.interpolation.expressions.length;case d.I18nExpression:case d.Conditional:case d.Boundary:case d.DeferWhen:case d.StoreLet:return 1;case d.RepeaterCreate:return t.emptyView?1:0;default:throw new Error(`Unhandled op: ${d[t.kind]}`)}}function Gd(t){switch(t.kind){case F.PureFunctionExpr:return 1+t.args.length;case F.PipeBinding:return 1+t.args.length;case F.PipeBindingVariadic:return 1+t.numArgs;case F.StoreLet:case F.ArrowFunction:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${t.constructor.name}`)}}function dD(t){return!(t.expressions.length!==1||t.strings.length!==2||t.strings[0]!==""||t.strings[1]!=="")}function mD(t){for(let e of t.units){for(let n of e.functions)so(n.ops);so(e.create),so(e.update);for(let n of e.create)n.kind===d.Listener||n.kind===d.Animation||n.kind===d.AnimationListener||n.kind===d.TwoWayListener?so(n.handlerOps):n.kind===d.RepeaterCreate&&n.trackByOps!==null&&so(n.trackByOps);for(let n of e.functions)io(n.ops,null),Hd(n.ops);for(let n of e.create)n.kind===d.Listener||n.kind===d.Animation||n.kind===d.AnimationListener||n.kind===d.TwoWayListener?(io(n.handlerOps,Ha),Hd(n.handlerOps)):n.kind===d.RepeaterCreate&&n.trackByOps!==null&&io(n.trackByOps,Ha);io(e.create,Ha),io(e.update,Ha)}}var Ye;(function(t){t[t.None=0]="None",t[t.ViewContextRead=1]="ViewContextRead",t[t.ViewContextWrite=2]="ViewContextWrite",t[t.SideEffectful=4]="SideEffectful"})(Ye||(Ye={}));function Ha(t){return!(t&Y.InArrowFunctionOperation)}function so(t){let e=new Map;for(let n of t)n.kind===d.Variable&&n.flags&kt.AlwaysInline&&(Ge(n,r=>{if($n(r)&&th(r)!==Ye.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(n.xref,n)),Ce(n,r=>r instanceof vn&&e.has(r.xref)?e.get(r.xref).initializer.clone():r,Y.None);for(let n of e.values())x.remove(n)}function io(t,e){let n=new Map,r=new Map,s=new Set,i=new Map;for(let u of t){if(u.kind===d.Variable){if(n.has(u.xref)||r.has(u.xref))throw new Error(`Should not see two declarations of the same variable: ${u.xref}`);n.set(u.xref,u),r.set(u.xref,0)}i.set(u,gD(u,e)),yD(u,r,s,e)}let o=!1;for(let u of t.reversed()){let f=i.get(u);if(u.kind===d.Variable&&r.get(u.xref)===0){if(o&&f.fences&Ye.ViewContextWrite||f.fences&Ye.SideEffectful){let h=Jt(u.initializer.toStmt());i.set(h,f),x.replace(u,h)}else vD(u,r),x.remove(u);i.delete(u),n.delete(u.xref),r.delete(u.xref);continue}f.fences&Ye.ViewContextRead&&(o=!0)}let a=[];for(let[u,f]of r){let p=!!(n.get(u).flags&kt.AlwaysInline);f!==1||p||s.has(u)||a.push(u)}let c;for(;c=a.pop();){let u=n.get(c),f=i.get(u);if(!!(u.flags&kt.AlwaysInline))throw new Error("AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.");for(let p=u.next;p.kind!==d.ListEnd;p=p.next){let g=i.get(p);if(g.variablesUsed.has(c)){if(!ED(u,p))break;if(SD(c,u.initializer,p,f.fences)){g.variablesUsed.delete(c);for(let y of f.variablesUsed)g.variablesUsed.add(y);g.fences|=f.fences,n.delete(c),r.delete(c),i.delete(u),x.remove(u)}break}if(!qg(g.fences,f.fences))break}}}function th(t){switch(t.kind){case F.NextContext:return Ye.ViewContextRead|Ye.ViewContextWrite;case F.RestoreView:return Ye.ViewContextRead|Ye.ViewContextWrite|Ye.SideEffectful;case F.StoreLet:return Ye.SideEffectful;case F.Reference:case F.ContextLetReference:return Ye.ViewContextRead;default:return Ye.None}}function gD(t,e){let n=Ye.None,r=new Set;return Ge(t,(s,i)=>{!$n(s)||e!==null&&!e(i)||(s.kind===F.ReadVariable?r.add(s.xref):i&Y.InChildOperation||(n|=th(s)))}),{fences:n,variablesUsed:r}}function yD(t,e,n,r){Ge(t,(s,i)=>{if(!$n(s)||r!==null&&!r(i)||s.kind!==F.ReadVariable)return;let o=e.get(s.xref);o!==void 0&&(e.set(s.xref,o+1),i&Y.InChildOperation&&n.add(s.xref))})}function vD(t,e){Ge(t,n=>{if(!$n(n)||n.kind!==F.ReadVariable)return;let r=e.get(n.xref);if(r!==void 0){if(r===0)throw new Error(`Inaccurate variable count: ${n.xref} - found another read but count is already 0`);e.set(n.xref,r-1)}})}function qg(t,e){if(t&Ye.ViewContextWrite){if(e&Ye.ViewContextRead)return!1}else if(t&Ye.ViewContextRead&&e&Ye.ViewContextWrite)return!1;return!0}function SD(t,e,n,r){let s=!1,i=!0;return Ce(n,(o,a)=>{if(!$n(o)||s||!i)return o;if(a&Y.InChildOperation&&r&Ye.ViewContextRead)return o;switch(o.kind){case F.ReadVariable:if(o.xref===t)return s=!0,e;break;default:let c=th(o);i=i&&qg(c,r);break}return o},Y.None),s}function ED(t,e){switch(t.variable.kind){case Te.Identifier:return t.initializer instanceof cn&&t.initializer.name===Qt;case Te.Context:return e.kind===d.Variable;default:return!0}}function Hd(t){let e=t.head.next,n=t.tail.prev;e!==null&&n!==null&&e.next===n&&e.kind===d.Statement&&e.statement instanceof at&&e.statement.expr instanceof ta&&n.kind===d.Statement&&n.statement instanceof Pe&&n.statement.value instanceof El&&(x.remove(e),n.statement.value=n.statement.value.expr)}function wD(t){for(let e of t.units){let n=null,r=null;for(let s of e.create)switch(s.kind){case d.I18nStart:n=s;break;case d.I18nEnd:n=null;break;case d.IcuStart:n===null&&(r=t.allocateXrefId(),x.insertBefore(zl(r,s.message,void 0,null),s));break;case d.IcuEnd:r!==null&&(x.insertAfter(Kl(r,null),s),r=null);break}}}var TD=[{kind:D.Tmpl,fn:$b},{kind:D.Tmpl,fn:ob},{kind:D.Both,fn:Eb},{kind:D.Host,fn:vI},{kind:D.Tmpl,fn:HA},{kind:D.Tmpl,fn:fb},{kind:D.Tmpl,fn:wD},{kind:D.Both,fn:hx},{kind:D.Both,fn:oD},{kind:D.Both,fn:HC},{kind:D.Tmpl,fn:tx},{kind:D.Both,fn:lx},{kind:D.Both,fn:UC},{kind:D.Tmpl,fn:px},{kind:D.Both,fn:WA},{kind:D.Tmpl,fn:kb},{kind:D.Both,fn:jC},{kind:D.Both,fn:ib},{kind:D.Tmpl,fn:zC},{kind:D.Tmpl,fn:KC},{kind:D.Tmpl,fn:cb},{kind:D.Tmpl,fn:fx},{kind:D.Tmpl,fn:dx},{kind:D.Tmpl,fn:hb},{kind:D.Both,fn:Ux},{kind:D.Both,fn:gb},{kind:D.Tmpl,fn:Gx},{kind:D.Tmpl,fn:Vx},{kind:D.Tmpl,fn:mI},{kind:D.Tmpl,fn:Lb},{kind:D.Tmpl,fn:Qb},{kind:D.Both,fn:LC},{kind:D.Both,fn:Xb},{kind:D.Both,fn:Bb},{kind:D.Tmpl,fn:uD},{kind:D.Tmpl,fn:Rb},{kind:D.Both,fn:qb},{kind:D.Tmpl,fn:mx},{kind:D.Tmpl,fn:pD},{kind:D.Tmpl,fn:lD},{kind:D.Both,fn:Ob},{kind:D.Both,fn:zb},{kind:D.Tmpl,fn:VA},{kind:D.Both,fn:Ex},{kind:D.Both,fn:tD},{kind:D.Both,fn:aD},{kind:D.Both,fn:mD},{kind:D.Both,fn:Zb},{kind:D.Tmpl,fn:UA},{kind:D.Tmpl,fn:ux},{kind:D.Tmpl,fn:Pb},{kind:D.Tmpl,fn:BC},{kind:D.Tmpl,fn:OC},{kind:D.Tmpl,fn:Jb},{kind:D.Tmpl,fn:Ub},{kind:D.Tmpl,fn:Vb},{kind:D.Tmpl,fn:Mx},{kind:D.Tmpl,fn:OA},{kind:D.Tmpl,fn:Hb},{kind:D.Tmpl,fn:gI},{kind:D.Both,fn:JC},{kind:D.Tmpl,fn:_b},{kind:D.Both,fn:hD},{kind:D.Tmpl,fn:$x},{kind:D.Both,fn:jA},{kind:D.Tmpl,fn:Fb},{kind:D.Tmpl,fn:XA},{kind:D.Tmpl,fn:QA},{kind:D.Tmpl,fn:Sx},{kind:D.Tmpl,fn:$C},{kind:D.Tmpl,fn:ZA},{kind:D.Both,fn:mb},{kind:D.Both,fn:xb},{kind:D.Both,fn:WC}];function Wg(t,e){for(let n of TD)(n.kind===e||n.kind===D.Both)&&n.fn(t)}function CD(t,e){let n=zg(t.root);return jg(t.root,e),n}function jg(t,e){for(let n of t.job.units){if(n.parent!==t.xref)continue;jg(n,e);let r=zg(n);e.statements.push(r.toDeclStmt(r.name))}}function zg(t){if(t.fnName===null)throw new Error(`AssertionError: view ${t.xref} is unnamed`);let e=[];for(let i of t.create){if(i.kind!==d.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${d[i.kind]}`);e.push(i.statement)}let n=[];for(let i of t.update){if(i.kind!==d.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${d[i.kind]}`);n.push(i.statement)}let r=Ml(1,e),s=Ml(2,n);return Jn([new He(Mi,_r),new He(Qt,X)],[...r,...s],X,void 0,t.fnName)}function Ml(t,e){return e.length===0?[]:[va(new oe(T.BitwiseAnd,Z(Mi),S(t)),e)]}function xD(t){if(t.root.fnName===null)throw new Error("AssertionError: host binding function is unnamed");let e=[];for(let i of t.root.create){if(i.kind!==d.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${d[i.kind]}`);e.push(i.statement)}let n=[];for(let i of t.root.update){if(i.kind!==d.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${d[i.kind]}`);n.push(i.statement)}if(e.length===0&&n.length===0)return null;let r=Ml(1,e),s=Ml(2,n);return Jn([new He(Mi,_r),new He(Qt,X)],[...r,...s],X,void 0,t.root.fnName)}var qa=".",ND="attr",qc="animate",ID="class",AD="style",bD="*",Wc="animate-",mp=class{constructor(e,n,r){l(this,"_exprParser");l(this,"_schemaRegistry");l(this,"errors");this._exprParser=e,this._schemaRegistry=n,this.errors=r}createBoundHostProperties(e,n){let r=[];for(let s of Object.keys(e)){let i=e[s];typeof i=="string"?this.parsePropertyBinding(s,i,!0,!1,n,n.start.offset,void 0,[],r,n):this._reportError(`Value of the host property binding "${s}" needs to be a string representing an expression but got "${i}" (${typeof i})`,n)}return r}createDirectiveHostEventAsts(e,n){let r=[];for(let s of Object.keys(e)){let i=e[s];typeof i=="string"?this.parseEvent(s,i,!1,n,n,[],r,n):this._reportError(`Value of the host listener "${s}" needs to be a string representing an expression but got "${i}" (${typeof i})`,n)}return r}parseInterpolation(e,n,r){let s=n.fullStart.offset;try{let i=this._exprParser.parseInterpolation(e,n,s,r);return i&&this.errors.push(...i.errors),i}catch(i){return this._reportError(`${i}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,s)}}parseInterpolationExpression(e,n){let r=n.start.offset;try{let s=this._exprParser.parseInterpolationExpression(e,n,r);return s&&this.errors.push(...s.errors),s}catch(s){return this._reportError(`${s}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)}}parseInlineTemplateBinding(e,n,r,s,i,o,a,c){let u=r.start.offset+bD.length,f=this._parseTemplateBindings(e,n,r,u,s);for(let h of f){let p=gr(r,h.sourceSpan),g=h.key.source,y=gr(r,h.key.span);if(h instanceof $o){let E=h.value?h.value.source:"$implicit",w=h.value?gr(r,h.value.span):void 0;a.push(new Su(g,E,p,y,w))}else if(h.value){let E=c?p:r,w=gr(r,h.value.ast.sourceSpan);this._parsePropertyAst(g,h.value,!1,E,y,w,i,o)}else i.push([g,""]),this.parseLiteralAttr(g,null,y,s,void 0,i,o,y)}}_parseTemplateBindings(e,n,r,s,i){try{let o=this._exprParser.parseTemplateBindings(e,n,r,s,i);return o.errors.forEach(a=>this.errors.push(a)),o.warnings.forEach(a=>{this._reportError(a,r,zn.WARNING)}),o.templateBindings}catch(o){return this._reportError(`${o}`,r),[]}}parseLiteralAttr(e,n,r,s,i,o,a,c){jc(e)?(e=e.substring(1),c!==void 0&&(c=gr(c,new it(c.start.offset+1,c.end.offset))),n&&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.',r,zn.ERROR),this._parseLegacyAnimation(e,n,r,s,c,i,o,a)):a.push(new Qs(e,this._exprParser.wrapLiteralPrimitive(n,"",s),gn.LITERAL_ATTR,r,c,i))}parsePropertyBinding(e,n,r,s,i,o,a,c,u,f){e.length===0&&this._reportError("Property name is missing in binding",i);let h=!1;e.startsWith(Wc)?(h=!0,e=e.substring(Wc.length),f!==void 0&&(f=gr(f,new it(f.start.offset+Wc.length,f.end.offset)))):jc(e)&&(h=!0,e=e.substring(1),f!==void 0&&(f=gr(f,new it(f.start.offset+1,f.end.offset)))),h?this._parseLegacyAnimation(e,n,i,o,f,a,c,u):e.startsWith(`${qc}${qa}`)?this._parseAnimation(e,this.parseBinding(n,r,a||i,o),i,f,a,c,u):this._parsePropertyAst(e,this.parseBinding(n,r,a||i,o),s,i,f,a,c,u)}parsePropertyInterpolation(e,n,r,s,i,o,a,c){let u=this.parseInterpolation(n,s||r,c);return u?(this._parsePropertyAst(e,u,!1,r,a,s,i,o),!0):!1}_parsePropertyAst(e,n,r,s,i,o,a,c){a.push([e,n.source]),c.push(new Qs(e,n,r?gn.TWO_WAY:gn.DEFAULT,s,i,o))}_parseAnimation(e,n,r,s,i,o,a){o.push([e,n.source]),a.push(new Qs(e,n,gn.ANIMATION,r,s,i))}_parseLegacyAnimation(e,n,r,s,i,o,a,c){e.length===0&&this._reportError("Animation trigger is missing",r);let u=this.parseBinding(n||"undefined",!1,o||r,s);a.push([e,u.source]),c.push(new Qs(e,u,gn.LEGACY_ANIMATION,r,i,o))}parseBinding(e,n,r,s){try{let i=n?this._exprParser.parseSimpleBinding(e,r,s):this._exprParser.parseBinding(e,r,s);return i&&this.errors.push(...i.errors),i}catch(i){return this._reportError(`${i}`,r),this._exprParser.wrapLiteralPrimitive("ERROR",r,s)}}createBoundElementProperty(e,n,r=!1,s=!0){if(n.isLegacyAnimation)return new fl(n.name,J.LegacyAnimation,ne.NONE,n.expression,null,n.sourceSpan,n.keySpan,n.valueSpan);let i=null,o,a=null,c=n.name.split(qa),u;if(c.length>1)if(c[0]==ND){a=c.slice(1).join(qa),r||this._validatePropertyOrAttributeName(a,n.sourceSpan,!0),u=Ya(this._schemaRegistry,e,a,!0);let f=a.indexOf(":");if(f>-1){let h=a.substring(0,f),p=a.substring(f+1);a=Xa(h,p)}o=J.Attribute}else if(c[0]==ID)a=c[1],o=J.Class,u=[ne.NONE];else if(c[0]==AD){i=c.length>2?c[2]:null;let f=c[1];if(!f.startsWith("--"))a=f;else try{a=Op(f)}catch(h){this._reportError(h.message,n.sourceSpan)}o=J.Style,u=[ne.STYLE]}else c[0]==qc&&(a=n.name,o=J.Animation,u=[ne.NONE]);if(a===null){let f=this._schemaRegistry.getMappedPropName(n.name);a=s?f:n.name,u=Ya(this._schemaRegistry,e,f,!1),o=n.type===gn.TWO_WAY?J.TwoWay:J.Property,r||this._validatePropertyOrAttributeName(f,n.sourceSpan,!1)}return new fl(a,o,u[0],n.expression,i,n.sourceSpan,n.keySpan,n.valueSpan)}parseEvent(e,n,r,s,i,o,a,c){e.length===0&&this._reportError("Event name is missing in binding",s),jc(e)?(e=e.slice(1),c!==void 0&&(c=gr(c,new it(c.start.offset+1,c.end.offset))),this._parseLegacyAnimationEvent(e,n,s,i,a,c)):this._parseRegularEvent(e,n,r,s,i,o,a,c)}calcPossibleSecurityContexts(e,n,r){let s=this._schemaRegistry.getMappedPropName(n);return Ya(this._schemaRegistry,e,s,r)}parseEventListenerName(e){let[n,r]=Sw(e,[null,e]);return{eventName:r,target:n}}parseLegacyAnimationEventName(e){let n=Ew(e,[e,null]);return{eventName:n[0],phase:n[1]===null?null:n[1].toLowerCase()}}_parseLegacyAnimationEvent(e,n,r,s,i,o){let{eventName:a,phase:c}=this.parseLegacyAnimationEventName(e),u=this._parseAction(n,s);i.push(new hl(a,c,Je.LegacyAnimation,u,r,s,o)),a.length===0&&this._reportError("Animation event name is missing in binding",r),c?c!=="start"&&c!=="done"&&this._reportError(`The provided animation output phase value "${c}" for "@${a}" is not supported (use start or done)`,r):this._reportError(`The animation trigger output event (@${a}) is missing its phase value name (start or done are currently supported)`,r)}_parseRegularEvent(e,n,r,s,i,o,a,c){let{eventName:u,target:f}=this.parseEventListenerName(e),h=this.errors.length,p=this._parseAction(n,i),g=this.errors.length===h;o.push([e,p.source]),r&&g&&!this._isAllowedAssignmentEvent(p)&&this._reportError("Unsupported expression in a two-way binding",s);let y=Je.Regular;r&&(y=Je.TwoWay),e.startsWith(`${qc}${qa}`)&&(y=Je.Animation),a.push(new hl(u,f,y,p,s,i,c))}_parseAction(e,n){let r=n&&n.start?n.start.offset:0;try{let s=this._exprParser.parseAction(e,n,r);return s&&this.errors.push(...s.errors),!s||s.ast instanceof ct?(this._reportError("Empty expressions are not allowed",n),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)):s}catch(s){return this._reportError(`${s}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)}}_reportError(e,n,r=zn.ERROR){this.errors.push(new L(n,e,r))}_validatePropertyOrAttributeName(e,n,r){let s=r?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);s.error&&this._reportError(s.msg,n,zn.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof Ne?this._isAllowedAssignmentEvent(e.ast):e instanceof tr?this._isAllowedAssignmentEvent(e.expression):e instanceof wn&&e.args.length===1&&e.receiver instanceof we&&e.receiver.name==="$any"&&e.receiver.receiver instanceof pn?this._isAllowedAssignmentEvent(e.args[0]):(e instanceof we||e instanceof Zn)&&!gp(e)}};function gp(t){return t instanceof lt||t instanceof er?!0:t instanceof nr?gp(t.expression):t instanceof we||t instanceof Zn||t instanceof wn?gp(t.receiver):!1}function jc(t){return t[0]=="@"}function Ya(t,e,n,r){let s,[i,o]=e?tt(e,!1):[null,e],a=u=>{let[f,h]=tt(u,!1),p=f!=null?f:i,g=p?`:${p}:${h}`:h;return t.securityContext(g,n,r)},c=t.allKnownElementNames();return o===null?s=c.map(a):(s=[],Ar.parse(o).forEach(u=>{let f=u.element?[u.element]:c;if(u.element&&!t.hasElement(u.element,[])){let g=`:${Xl}:${u.element}`,y=`:${Yl}:${u.element}`;t.hasElement(g,[])?f=[g]:t.hasElement(y,[])&&(f=[y])}let h=new Set(u.notSelectors.filter(g=>g.isElementSelector()).map(g=>{var y;return(y=g.element)==null?void 0:y.toLowerCase()})),p=f.filter(g=>{let y=g.toLowerCase();return!h.has(y)&&!h.has(tt(y)[1])});s.push(...p.map(a))})),s.length===0?[ne.NONE]:Array.from(new Set(s)).sort()}function gr(t,e){let n=e.start-t.start.offset,r=e.end-t.end.offset;return new G(t.start.moveBy(n),t.end.moveBy(r),t.fullStart.moveBy(n),t.details)}var Yn=new en,ms="ng-template",DD="animate.";function Qa(t){return t instanceof Rt}function kD(t){return Qa(t)&&t.nodes.length===1&&t.nodes[0]instanceof gl}function _D(t,e,n,r,s,i,o,a,c,u,f,h){let p=new aa(t,n,r,s,i,o,a,c,u,f,h);return tn(p.root,e),p}function RD(t,e,n){var s,i,o;let r=new xl(t.componentName,n,At.DomOnly,t.legacyOptionalChaining);for(let a of(s=t.properties)!=null?s:[]){let c=O.Property;a.name.startsWith("attr.")&&(a.name=a.name.substring(5),c=O.Attribute),a.isLegacyAnimation&&(c=O.LegacyAnimation),a.isAnimation&&(c=O.Animation);let u=qd(e,t.componentSelector,a.name,c===O.Attribute);PD(r,a,c,u)}for(let[a,c]of(i=Object.entries(t.attributes))!=null?i:[]){let u=qd(e,t.componentSelector,a,!0);LD(r,a,c,u)}for(let a of(o=t.events)!=null?o:[])MD(r,a);return r}function qd(t,e,n,r){let s=t.calcPossibleSecurityContexts(e,n,r),i=Ya(Yn,null,Yn.getMappedPropName(n),r),o=i.filter(u=>u!==ne.NONE),a=o.length;return a!==i.length&&a>0||o.some(u=>!s.includes(u))?i:s.filter(u=>u!==ne.NONE)}function PD(t,e,n,r){let s,i=e.expression.ast;i instanceof cr?s=new Me(i.strings,i.expressions.map(o=>Q(o,t,e.sourceSpan)),[]):s=Q(i,t,e.sourceSpan),t.root.update.push(_s(t.root.xref,n,e.name,s,null,r,!1,!1,null,null,e.sourceSpan))}function LD(t,e,n,r){let s=_s(t.root.xref,O.Attribute,e,n,null,r,!0,!1,null,null,n.sourceSpan);t.root.update.push(s)}function MD(t,e){let n;if(e.type===Je.Animation)n=Eg(t.root.xref,new et,e.name,null,pa(t.root,e.handler,e.handlerSpan),e.name.endsWith("enter")?"enter":"leave",e.targetOrPhase,!0,e.sourceSpan);else{let[r,s]=e.type!==Je.LegacyAnimation?[null,e.targetOrPhase]:[e.targetOrPhase,null];n=Qp(t.root.xref,new et,e.name,null,pa(t.root,e.handler,e.handlerSpan),r,s,!0,e.sourceSpan)}t.root.create.push(n)}function tn(t,e){for(let n of e)if(n instanceof Tt)OD(t,n);else if(n instanceof Le)BD(t,n);else if(n instanceof Ci)$D(t,n);else if(n instanceof is)Kg(t,n,null);else if(n instanceof yi)Xg(t,n,null);else if(n instanceof Ti)UD(t,n);else if(n instanceof wi)GD(t,n);else if(n instanceof Rn)HD(t,n);else if(n instanceof eg)WD(t,n);else if(n instanceof Ur)jD(t,n);else if(n instanceof ur)KD(t,n);else if(n instanceof Ei)VD(t,n);else if(!(n instanceof ps))throw new Error(`Unsupported template node: ${n.constructor.name}`)}function OD(t,e){var u,f;if(e.i18n!==void 0&&!(e.i18n instanceof Rt||e.i18n instanceof Vr))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=t.job.allocateXrefId(),r=t.job.getForeignComponent(e);if(r){FD(t,n,e,r);return}let[s,i]=tt(e.name),o=uC(i,n,Ig(s),e.i18n instanceof Vr?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);t.create.push(o),YD(t,o,e),Jg(o,e);let a=null;e.i18n instanceof Rt&&(a=t.job.allocateXrefId(),t.create.push(zl(a,e.i18n,void 0,e.startSourceSpan))),tn(t,e.children);let c=mC(n,(u=e.endSourceSpan)!=null?u:e.startSourceSpan);t.create.push(c),a!==null&&x.insertBefore(Kl(a,(f=e.endSourceSpan)!=null?f:e.startSourceSpan),c)}function FD(t,e,n,r){let s=new Map;for(let c of n.attributes)s.set(c.name,S(c.value));for(let c of n.inputs)s.set(c.name,Q(c.value,t.job,c.sourceSpan));let i=[],o=[];for(let c of n.children)c instanceof bs?i.push(c):o.push(c);for(let c of i){let u=t.job.allocateView(t.xref);for(let f=0;f<c.variables.length;f++)u.contextVariables.set(c.variables[f].name,f);tn(u,c.children),t.create.push(jf(e,u.xref,c.name,c.startSourceSpan,c.sourceSpan))}if(o.length>0){let c=t.job.allocateView(t.xref);tn(c,o),t.create.push(jf(e,c.xref,"children",n.startSourceSpan,n.sourceSpan))}let a=t.job.addConst(r.component);t.create.push(pC(e,a,s,n.startSourceSpan))}function BD(t,e){var f;if(e.i18n!==void 0&&!(e.i18n instanceof Rt||e.i18n instanceof Vr))throw Error(`Unhandled i18n metadata type for template: ${e.i18n.constructor.name}`);let n=t.job.allocateView(t.xref),r=e.tagName,s="";e.tagName&&([s,r]=tt(e.tagName));let i=e.i18n instanceof Vr?e.i18n:void 0,o=Ig(s),a=r===null?"":QC(r,o),c=XD(e)?nt.NgTemplate:nt.Structural,u=Xp(n.xref,c,r,a,o,i,e.startSourceSpan,e.sourceSpan);t.create.push(u),QD(t,u,e,c),Jg(u,e),tn(n,e.children);for(let{name:h,value:p}of e.variables)n.contextVariables.set(h,p!==""?p:"$implicit");if(c===nt.NgTemplate&&e.i18n instanceof Rt){let h=t.job.allocateXrefId();x.insertAfter(zl(h,e.i18n,void 0,e.startSourceSpan),n.create.head),x.insertBefore(Kl(h,(f=e.endSourceSpan)!=null?f:e.startSourceSpan),n.create.tail)}}function $D(t,e){var i;if(e.i18n!==void 0&&!(e.i18n instanceof Vr))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=null;e.children.some(o=>!(o instanceof ss)&&(!(o instanceof is)||o.value.trim().length>0))&&(n=t.job.allocateView(t.xref),tn(n,e.children));let r=t.job.allocateXrefId(),s=xC(r,e.selector,e.i18n,(i=n==null?void 0:n.xref)!=null?i:null,e.sourceSpan);for(let o of e.attributes){let a=Yn.securityContext(e.name,o.name,!0);t.update.push(_s(s.xref,O.Attribute,o.name,S(o.value),null,a,!0,!1,null,Kn(o.i18n),o.sourceSpan))}t.create.push(s)}function Kg(t,e,n){t.create.push(Sg(t.job.allocateXrefId(),e.value,n,e.sourceSpan))}function Xg(t,e,n){var o;let r=e.value;if(r instanceof Ne&&(r=r.ast),!(r instanceof cr))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${r.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof Xn))throw Error(`Unhandled i18n metadata type for text interpolation: ${(o=e.i18n)==null?void 0:o.constructor.name}`);let s=e.i18n instanceof Xn?e.i18n.children.filter(a=>a instanceof Xo).map(a=>a.name):[];if(s.length>0&&s.length!==r.expressions.length)throw Error(`Unexpected number of i18n placeholders (${r.expressions.length}) for BoundText with ${r.expressions.length} expressions`);let i=t.job.allocateXrefId();t.create.push(Sg(i,"",n,e.sourceSpan)),t.update.push(XT(i,new Me(r.strings,r.expressions.map(a=>Q(a,t.job,null)),s),e.sourceSpan))}function UD(t,e){var s;let n=null,r=[];for(let i=0;i<e.branches.length;i++){let o=e.branches[i],a=t.job.allocateView(t.xref),c=fa(t,a.xref,o);o.expressionAlias!==null&&a.contextVariables.set(o.expressionAlias.name,Cg);let u;if(o.i18n!==void 0){if(!(o.i18n instanceof Gr))throw Error(`Unhandled i18n metadata type for if block: ${(s=o.i18n)==null?void 0:s.constructor.name}`);u=o.i18n}let h=(i===0?vg:Yp)(a.xref,nt.Block,c,"Conditional",Ie.HTML,u,o.startSourceSpan,o.sourceSpan);t.create.push(h),n===null&&(n=a.xref);let p=o.expression?Q(o.expression,t.job,null):null,g=new bi(p,h.xref,h.handle,o.expressionAlias);r.push(g),tn(a,o.children)}t.update.push(mg(n,null,r,e.sourceSpan))}function VD(t,e){let n=t.job.allocateView(t.xref),r=fa(t,n.xref,e),s=hC(t.job.allocateXrefId(),nt.Block,r,"Boundary",Ie.HTML,void 0,e.startSourceSpan,e.sourceSpan);t.create.push(s);let i=Yp(n.xref,nt.Block,r,"Primary",Ie.HTML,void 0,e.startSourceSpan,e.sourceSpan);t.create.push(i);let o=[];for(let c of e.errorBlocks){let u=t.job.allocateView(t.xref),f=fC(u.xref,nt.Block,"Error",void 0,c.startSourceSpan,c.sourceSpan,s.xref,c.contextVariables);t.create.push(f);let h=c.expression?Q(c.expression,t.job,null):null,p=c.contextVariables.find(y=>y.value==="$error"),g=new bi(h,f.xref,f.handle,p||null);o.push(g);for(let y of c.contextVariables)u.aliases.add({kind:Te.Alias,name:null,identifier:y.name,expression:new We(new or(u.xref),y.value)});tn(u,c.children)}let a=new bi(null,i.xref,i.handle,null);tn(n,e.children),t.update.push(rC(s.xref,s.handle,i.xref,a,o,e.sourceSpan))}function GD(t,e){var s;if(e.groups.length===0)return;let n=null,r=[];for(let i=0;i<e.groups.length;i++){let o=e.groups[i],a=t.job.allocateView(t.xref),c=fa(t,a.xref,o),u;if(o.i18n!==void 0){if(!(o.i18n instanceof Gr))throw Error(`Unhandled i18n metadata type for switch block: ${(s=o.i18n)==null?void 0:s.constructor.name}`);u=o.i18n}let h=(i===0?vg:Yp)(a.xref,nt.Block,c,"Case",Ie.HTML,u,o.startSourceSpan,o.sourceSpan);t.create.push(h),n===null&&(n=a.xref);for(let p of o.cases){let g=p.expression?Q(p.expression,t.job,e.startSourceSpan):null,y=new bi(g,h.xref,h.handle);r.push(y)}tn(a,o.children)}t.update.push(mg(n,Q(e.expression,t.job,null),r,e.sourceSpan))}function Wa(t,e,n,r,s){if(n!==void 0&&!(n instanceof Gr))throw Error("Unhandled i18n metadata type for defer block");if(r===void 0)return null;let i=t.job.allocateView(t.xref);tn(i,r);let o=Xp(i.xref,nt.Block,null,`Defer${e}`,Ie.HTML,n,s,s);return t.create.push(o),o}function HD(t,e){var p,g,y,E,w,A,k,_,H,q,te,Se,Ee,dt,fr,qn,Wn,Ki,Xi,Yi;let n=null;if(t.job.deferMeta.mode===0){if(!t.job.deferMeta.blocks.has(e))throw new Error("AssertionError: unable to find a dependency function for this deferred block");n=(p=t.job.deferMeta.blocks.get(e))!=null?p:null}let r=Wa(t,"",e.i18n,e.children,e.sourceSpan),s=Wa(t,"Loading",(g=e.loading)==null?void 0:g.i18n,(y=e.loading)==null?void 0:y.children,(E=e.loading)==null?void 0:E.sourceSpan),i=Wa(t,"Placeholder",(w=e.placeholder)==null?void 0:w.i18n,(A=e.placeholder)==null?void 0:A.children,(k=e.placeholder)==null?void 0:k.sourceSpan),o=Wa(t,"Error",(_=e.error)==null?void 0:_.i18n,(H=e.error)==null?void 0:H.children,(q=e.error)==null?void 0:q.sourceSpan),a=t.job.allocateXrefId(),c=NC(a,r.xref,r.handle,n,t.job.allDeferrableDepsFn,e.sourceSpan);c.placeholderView=(te=i==null?void 0:i.xref)!=null?te:null,c.placeholderSlot=(Se=i==null?void 0:i.handle)!=null?Se:null,c.loadingSlot=(Ee=s==null?void 0:s.handle)!=null?Ee:null,c.errorSlot=(dt=o==null?void 0:o.handle)!=null?dt:null,c.placeholderMinimumTime=(qn=(fr=e.placeholder)==null?void 0:fr.minimumTime)!=null?qn:null,c.loadingMinimumTime=(Ki=(Wn=e.loading)==null?void 0:Wn.minimumTime)!=null?Ki:null,c.loadingAfterTime=(Yi=(Xi=e.loading)==null?void 0:Xi.afterTime)!=null?Yi:null,c.flags=qD(e),t.create.push(c);let u=[],f=[];zc("hydrate",e.hydrateTriggers,u,f,t,a),zc("none",e.triggers,u,f,t,a),zc("prefetch",e.prefetchTriggers,u,f,t,a),u.some(Bs=>Bs.modifier==="none")||f.some(Bs=>Bs.modifier==="none")||u.push(vr(a,{kind:ue.Idle,timeout:null},"none",null)),t.create.push(u),t.update.push(f)}function qD(t){return Object.keys(t.hydrateTriggers).length>0?1:null}function zc(t,e,n,r,s,i){var o;if(e.idle!==void 0){let a=vr(i,{kind:ue.Idle,timeout:(o=e.idle.timeout)!=null?o:null},t,e.idle.sourceSpan);n.push(a)}if(e.immediate!==void 0){let a=vr(i,{kind:ue.Immediate},t,e.immediate.sourceSpan);n.push(a)}if(e.timer!==void 0){let a=vr(i,{kind:ue.Timer,delay:e.timer.delay},t,e.timer.sourceSpan);n.push(a)}if(e.hover!==void 0){let a=vr(i,{kind:ue.Hover,targetName:e.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.hover.sourceSpan);n.push(a)}if(e.interaction!==void 0){let a=vr(i,{kind:ue.Interaction,targetName:e.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.interaction.sourceSpan);n.push(a)}if(e.viewport!==void 0){let a=vr(i,{kind:ue.Viewport,targetName:e.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null,options:e.viewport.options?Q(e.viewport.options,s.job,e.viewport.sourceSpan):null},t,e.viewport.sourceSpan);n.push(a)}if(e.never!==void 0){let a=vr(i,{kind:ue.Never},t,e.never.sourceSpan);n.push(a)}if(e.when!==void 0){if(e.when.value instanceof cr)throw new Error("Unexpected interpolation in defer block when trigger");let a=iC(i,Q(e.when.value,s.job,e.when.sourceSpan),t,e.when.sourceSpan);r.push(a)}}function WD(t,e){var n;if(e.i18n instanceof Rt&&kD(e.i18n)){let r=t.job.allocateXrefId();t.create.push(bC(r,e.i18n,ig(e.i18n).name,null));for(let[s,i]of Object.entries(C(C({},e.vars),e.placeholders)))i instanceof yi?Xg(t,i,s):Kg(t,i,s);t.create.push(DC(r))}else throw Error(`Unhandled i18n metadata type for ICU: ${(n=e.i18n)==null?void 0:n.constructor.name}`)}function jD(t,e){var w,A,k;let n=t.job.allocateView(t.xref),r=`\u0275$index_${n.xref}`,s=`\u0275$count_${n.xref}`,i=new Set;n.contextVariables.set(e.item.name,e.item.value);for(let _ of e.contextVariables)_.value==="$index"&&i.add(_.name),_.name==="$index"?n.contextVariables.set("$index",_.value).set(r,_.value):_.name==="$count"?n.contextVariables.set("$count",_.value).set(s,_.value):n.aliases.add({kind:Te.Alias,name:null,identifier:_.name,expression:zD(_,r,s)});let o;e.trackBy===null?o=Z("$index"):o=Q(e.trackBy,t.job,ze(e.trackBy.span,e.sourceSpan)),tn(n,e.children);let a=null,c=null;e.empty!==null&&(a=t.job.allocateView(t.xref),tn(a,e.empty.children),c=fa(t,a.xref,e.empty));let u={$index:i,$implicit:e.item.name};if(e.i18n!==void 0&&!(e.i18n instanceof Gr))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(((w=e.empty)==null?void 0:w.i18n)!==void 0&&!(e.empty.i18n instanceof Gr))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let f=e.i18n,h=(A=e.empty)==null?void 0:A.i18n,p=fa(t,n.xref,e),g=dC(n.xref,(k=a==null?void 0:a.xref)!=null?k:null,p,o,u,c,f,h,e.startSourceSpan,e.sourceSpan);t.create.push(g);let y=Q(e.expression,t.job,ze(e.expression.span,e.sourceSpan)),E=sC(g.xref,g.handle,y,e.sourceSpan);t.update.push(E)}function zD(t,e,n){switch(t.value){case"$index":return new Qe(e);case"$count":return new Qe(n);case"$first":return new Qe(e).identical(S(0));case"$last":return new Qe(e).identical(new Qe(n).minus(S(1)));case"$even":return new Qe(e).modulo(S(2)).identical(S(0));case"$odd":return new Qe(e).modulo(S(2)).notIdentical(S(0));default:throw new Error(`AssertionError: unknown @for loop variable ${t.value}`)}}function KD(t,e){let n=t.job.allocateXrefId();t.create.push(IC(n,e.name,e.sourceSpan)),t.update.push(aC(n,e.name,Q(e.value,t.job,e.valueSpan),e.sourceSpan))}function Q(t,e,n){if(t instanceof Ne)return Q(t.ast,e,n);if(t instanceof we)return t.receiver instanceof pn?new Qe(t.name):new We(Q(t.receiver,e,n),t.name,null,ze(t.span,n));if(t instanceof wn){if(t.receiver instanceof pn)throw new Error("Unexpected ImplicitReceiver");return new Ae(Q(t.receiver,e,n),t.args.map(r=>Q(r,e,n)),void 0,ze(t.span,n))}else{if(t instanceof gt)return S(t.value,void 0,ze(t.span,n));if(t instanceof ii)switch(t.operator){case"+":return new Mn(Ln.Plus,Q(t.expr,e,n),void 0,ze(t.span,n));case"-":return new Mn(Ln.Minus,Q(t.expr,e,n),void 0,ze(t.span,n));default:throw new Error(`AssertionError: unknown unary operator ${t.operator}`)}else if(t instanceof Re){let r=XC.get(t.operation);if(r===void 0)throw new Error(`AssertionError: unknown binary operator ${t.operation}`);return new oe(r,Q(t.left,e,n),Q(t.right,e,n),void 0,ze(t.span,n))}else{if(t instanceof Cs)return new or(e.root.xref);if(t instanceof Zn)return new qt(Q(t.receiver,e,n),Q(t.key,e,n),void 0,ze(t.span,n));if(t instanceof Fr)throw new Error("AssertionError: Chain in unknown context");if(t instanceof xs){let r=t.keys.map((s,i)=>{let o=Q(t.values[i],e,n);return s.kind==="spread"?new En(o):new Rr(s.key,o,s.quoted)});return new un(r,void 0,ze(t.span,n))}else{if(t instanceof Lo)return new Wt(t.expressions.map(r=>Q(r,e,n)));if(t instanceof Br)return new Ht(Q(t.condition,e,n),Q(t.trueExp,e,n),Q(t.falseExp,e,n),void 0,ze(t.span,n));if(t instanceof tr)return Q(t.expression,e,n);if(t instanceof mi)return new Ps(e.allocateXrefId(),new et,t.name,[Q(t.exp,e,n),...t.args.map(r=>Q(r,e,n))]);if(t instanceof er)return new fs(Q(t.receiver,e,n),Q(t.key,e,n),ze(t.span,n));if(t instanceof lt)return new hs(Q(t.receiver,e,n),t.name);if(t instanceof hn)return new Ae(Q(t.receiver,e,n),t.args.map(r=>Q(r,e,n)),null,ze(t.span,n),!1,[],!0);if(t instanceof ct)return new sa(ze(t.span,n));if(t instanceof On)return Mm(Q(t.expression,e,n),ze(t.span,n));if(t instanceof Mo)return Ri(Q(t.expression,e,n));if(t instanceof Oo)return new ci(Q(t.expression,e,n),void 0,ze(t.span,n));if(t instanceof Bo)return Wd(t,e,n);if(t instanceof Fo)return new gs(Q(t.tag,e,n),Wd(t.template,e,n),void 0,ze(t.span,n));if(t instanceof nr)return new St(Q(t.expression,e,n),void 0,ze(t.span,n));if(t instanceof pl)return new ys(t.body,t.flags,n);if(t instanceof cl)return new Pr(Q(t.expression,e,n));if(t instanceof gi)return ZD(wt(t.parameters.map(r=>new He(r.name,X)),Q(t.body,e,n),X));throw new Error(`Unhandled expression type "${t.constructor.name}" in file "${n==null?void 0:n.start.file.url}"`)}}}}function Wd(t,e,n){return new pi(t.elements.map(r=>new Co(r.text,ze(r.span,n))),t.expressions.map(r=>Q(r,e,n)),ze(t.span,n))}function yp(t,e,n,r){var i,o;let s;return e instanceof cr?s=new Me(e.strings,e.expressions.map(a=>Q(a,t,null)),Object.keys((o=(i=Kn(n))==null?void 0:i.placeholders)!=null?o:{})):e instanceof le?s=Q(e,t,null):s=S(e),s}var Yg=new Map([[J.Property,O.Property],[J.TwoWay,O.TwoWayProperty],[J.Attribute,O.Attribute],[J.Class,O.ClassName],[J.Style,O.StyleProperty],[J.LegacyAnimation,O.LegacyAnimation],[J.Animation,O.Animation]]);function XD(t){var e;return tt((e=t.tagName)!=null?e:"")[1]===ms}function Kn(t){if(t==null)return null;if(!(t instanceof Rt))throw Error(`Expected i18n meta to be a Message, but got: ${t.constructor.name}`);return t}function YD(t,e,n){var i;let r=new Array,s=new Set;for(let o of n.attributes){let[a,c]=tt(n.name),u=a;if(!a)switch(e.namespace){case Ie.SVG:u=Xl;break;case Ie.Math:u=Yl;break}let f=Yn.securityContext(u?`:${u}:${c}`:c,o.name,!0);r.push(_s(e.xref,O.Attribute,o.name,yp(t.job,o.value,o.i18n),null,f,!0,!1,null,Kn(o.i18n),o.sourceSpan)),o.i18n&&s.add(o.name)}for(let o of n.inputs)s.has(o.name)&&console.error(`On component ${t.job.componentName}, the binding ${o.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.`),r.push(_s(e.xref,Yg.get(o.type),o.name,yp(t.job,ha(o.value),o.i18n),o.unit,o.securityContext,!1,!1,null,(i=Kn(o.i18n))!=null?i:null,o.sourceSpan));t.create.push(r.filter(o=>(o==null?void 0:o.kind)===d.ExtractedAttribute)),t.update.push(r.filter(o=>(o==null?void 0:o.kind)===d.Binding));for(let o of n.outputs){if(o.type===Je.LegacyAnimation&&o.phase===null)throw Error("Animation listener should have a phase");o.type===Je.TwoWay?t.create.push(wg(e.xref,e.handle,o.name,e.tag,Qg(t,o.handler,o.handlerSpan),o.sourceSpan)):o.type===Je.Animation?t.create.push(Eg(e.xref,e.handle,o.name,e.tag,pa(t,o.handler,o.handlerSpan),o.name.endsWith("enter")?"enter":"leave",o.target,!1,o.sourceSpan)):t.create.push(Qp(e.xref,e.handle,o.name,e.tag,pa(t,o.handler,o.handlerSpan),o.phase,o.target,!1,o.sourceSpan))}r.some(o=>o==null?void 0:o.i18nMessage)!==null&&t.create.push(Tg(t.job.allocateXrefId(),new et,e.xref))}function QD(t,e,n,r){let s=new Array;for(let i of n.templateAttrs)if(i instanceof fn){let o=Yn.securityContext(ms,i.name,!0);s.push(ja(t,e.xref,J.Attribute,i.name,i.value,null,o,!0,r,Kn(i.i18n),i.sourceSpan))}else s.push(ja(t,e.xref,i.type,i.name,ha(i.value),i.unit,i.securityContext,!0,r,Kn(i.i18n),i.sourceSpan));for(let i of n.attributes){let o=Yn.securityContext(ms,i.name,!0);s.push(ja(t,e.xref,J.Attribute,i.name,i.value,null,o,!1,r,Kn(i.i18n),i.sourceSpan))}for(let i of n.inputs)s.push(ja(t,e.xref,i.type,i.name,ha(i.value),i.unit,i.securityContext,!1,r,Kn(i.i18n),i.sourceSpan));t.create.push(s.filter(i=>(i==null?void 0:i.kind)===d.ExtractedAttribute)),t.update.push(s.filter(i=>(i==null?void 0:i.kind)===d.Binding));for(let i of n.outputs){if(i.type===Je.LegacyAnimation&&i.phase===null)throw Error("Animation listener should have a phase");if(r===nt.NgTemplate&&(i.type===Je.TwoWay?t.create.push(wg(e.xref,e.handle,i.name,e.tag,Qg(t,i.handler,i.handlerSpan),i.sourceSpan)):t.create.push(Qp(e.xref,e.handle,i.name,e.tag,pa(t,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))),r===nt.Structural&&i.type!==Je.LegacyAnimation){let o=Yn.securityContext(ms,i.name,!1);t.create.push(ln(e.xref,O.Property,null,i.name,null,null,null,o))}}s.some(i=>i==null?void 0:i.i18nMessage)!==null&&t.create.push(Tg(t.job.allocateXrefId(),new et,e.xref))}function ja(t,e,n,r,s,i,o,a,c,u,f){let h=typeof s=="string";if(c===nt.Structural){if(!a)switch(n){case J.Property:case J.Class:case J.Style:return ln(e,O.Property,null,r,null,null,u,o);case J.TwoWay:return ln(e,O.TwoWayProperty,null,r,null,null,u,o)}if(!h&&(n===J.Attribute||n===J.LegacyAnimation||n===J.Animation))return null}let p=Yg.get(n);return c===nt.NgTemplate&&(n===J.Class||n===J.Style||n===J.Attribute&&!h)&&(p=O.Property),_s(e,p,r,yp(t.job,s,u),i,o,h,a,c,u,f)}function pa(t,e,n){e=ha(e);let r=new Array,s=e instanceof Fr?e.expressions:[e];if(s.length===0)throw new Error("Expected listener to have non-empty expression list.");let i=s.map(a=>Q(a,t.job,n)),o=i.pop();return r.push(...i.map(a=>Jt(new at(a,a.sourceSpan)))),r.push(Jt(new Pe(o,o.sourceSpan))),r}function Qg(t,e,n){e=ha(e);let r=new Array;if(e instanceof Fr)if(e.expressions.length===1)e=e.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let s=Q(e,t.job,n),i=new Qe("$event"),o=new wl(s,i);return r.push(Jt(new at(o))),r.push(Jt(new Pe(i))),r}function ha(t){return t instanceof Ne?t.ast:t}function Jg(t,e){JD(t.localRefs);for(let{name:n,value:r}of e.references)t.localRefs.push({name:n,target:r})}function JD(t){if(!Array.isArray(t))throw new Error("AssertionError: expected an array")}function ze(t,e){if(e===null)return null;let n=e.start.moveBy(t.start),r=e.start.moveBy(t.end),s=e.fullStart.moveBy(t.start);return new G(n,r,s)}function fa(t,e,n){let r=null;for(let s of n.children)if(!(s instanceof ss||s instanceof ur)){if(r!==null)return null;if(s instanceof Tt&&t.job.getForeignComponent(s)===null||s instanceof Le&&s.tagName!==null)r=s;else return null}if(r!==null){for(let o of r.attributes)if(!o.name.startsWith(DD)){let a=Yn.securityContext(ms,o.name,!0);t.update.push(_s(e,O.Attribute,o.name,S(o.value),null,a,!0,!1,null,Kn(o.i18n),o.sourceSpan))}for(let o of r.inputs)if(o.type!==J.LegacyAnimation&&o.type!==J.Animation&&o.type!==J.Attribute){let a=Yn.securityContext(ms,o.name,!0);t.create.push(ln(e,O.Property,null,o.name,null,null,null,a))}let s=r instanceof Tt?r.name:r.tagName,i=s?tt(s)[1]:null;return i===ms?null:i}return null}function ZD(t){let e=new Set(t.params.map(n=>n.name));return P(t,n=>{if(n instanceof Xt)for(let r of n.params)e.add(r.name);else if(n instanceof Qe&&e.has(n.name))return Z(n.name);return n},Y.None)}var ek=!1;function Ol(t,e){return va(Z(Mi).bitwiseAnd(S(t),null),e)}function tk(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function nk(t,e){if(Array.isArray(t.predicate)){let n=[];return t.predicate.forEach(r=>{let s=r.split(",").map(i=>S(i.trim()));n.push(...s)}),e.getConstLiteral(pe(n),!0)}else switch(t.predicate.forwardRef){case 0:case 2:return t.predicate.expression;case 1:return R(m.resolveForwardRef).callFn([t.predicate.expression])}}function Zg(t,e,n){let r=[];return n!==void 0&&r.push(...n),t.isSignal&&r.push(new We(Z(Qt),t.propertyName)),r.push(nk(t,e),S(tk(t))),t.read&&r.push(t.read),r}var nh=Symbol("queryAdvancePlaceholder");function ey(t){let e=[],n=0,r=()=>{n>0&&(e.unshift(R(m.queryAdvance).callFn(n===1?[]:[S(n)]).toStmt()),n=0)};for(let s=t.length-1;s>=0;s--){let i=t[s];i===nh?n++:(r(),e.unshift(i))}return r(),e}function rk(t,e,n){let r=[],s=[],i=og(u=>s.push(u),qp),o=null,a=null;t.forEach(u=>{let f=Zg(u,e);if(u.isSignal?(o!=null||(o=R(m.viewQuerySignal)),o=o.callFn(f)):(a!=null||(a=R(m.viewQuery)),a=a.callFn(f)),u.isSignal){s.push(nh);return}let h=i(),p=R(m.loadQuery).callFn([]),g=R(m.queryRefresh).callFn([h.set(p)]),y=Z(Qt).prop(u.propertyName).set(u.first?h.prop("first"):h);s.push(g.and(y).toStmt())}),o!==null&&r.push(new at(o)),a!==null&&r.push(new at(a));let c=n?`${n}_Query`:null;return Jn([new He(Mi,_r),new He(Qt,X)],[Ol(1,r),Ol(2,ey(s))],X,null,c)}function sk(t,e,n){let r=[],s=[],i=og(u=>s.push(u),qp),o=null,a=null;for(let u of t){let f=Zg(u,e,[Z("dirIndex")]);if(u.isSignal?(o!=null||(o=R(m.contentQuerySignal)),o=o.callFn(f)):(a!=null||(a=R(m.contentQuery)),a=a.callFn(f)),u.isSignal){s.push(nh);continue}let h=i(),p=R(m.loadQuery).callFn([]),g=R(m.queryRefresh).callFn([h.set(p)]),y=Z(Qt).prop(u.propertyName).set(u.first?h.prop("first"):h);s.push(g.and(y).toStmt())}o!==null&&r.push(new at(o)),a!==null&&r.push(new at(a));let c=n?`${n}_ContentQueries`:null;return Jn([new He(Mi,_r),new He(Qt,X),new He("dirIndex",_r)],[Ol(1,r),Ol(2,ey(s))],X,null,c)}var Fl=class extends MI{constructor(){super(lp)}parse(e,n,r){return super.parse(e,n,r)}};function ik(t){if(t==null||t.length===0||t[0]=="/")return!1;let e=t.match(ok);return e===null||e[1]=="package"||e[1]=="asset"}var ok=/^([^:/?#]+):/,ak="select",lk="link",ck="rel",uk="href",pk="stylesheet",hk="style",fk="script",dk="ngNonBindable",mk="ngProjectAs";function ty(t){let e=null,n=null,r=null,s=!1,i="";for(let u of t.attrs){let f=u.name.toLowerCase();f==ak?e=u.value:f==uk?n=u.value:f==ck?r=u.value:u.name==dk?s=!0:u.name==mk&&u.value.length>0&&(i=u.value)}e||(e="*");let o=t.name.toLowerCase(),a=tt(o)[1],c=Vt.OTHER;return Cu(o)?c=Vt.NG_CONTENT:hk===o?c=Vt.STYLE:fk===a?c=Vt.SCRIPT:o==lk&&r==pk&&(c=Vt.STYLESHEET),new vp(c,e,n,s,i)}var Vt;(function(t){t[t.NG_CONTENT=0]="NG_CONTENT",t[t.STYLE=1]="STYLE",t[t.STYLESHEET=2]="STYLESHEET",t[t.SCRIPT=3]="SCRIPT",t[t.OTHER=4]="OTHER"})(Vt||(Vt={}));var vp=class{constructor(e,n,r,s,i){l(this,"type");l(this,"selectAttr");l(this,"hrefAttr");l(this,"nonBindable");l(this,"projectAs");this.type=e,this.selectAttr=n,this.hrefAttr=r,this.nonBindable=s,this.projectAs=i}},gk=/^(when\s+)(.*)/;function jd(t){return t==="error"}function yk(t,e,n,r){let s=[],i=[];t.parameters.length>0&&s.push(new L(t.sourceSpan,"@boundary block cannot have parameters"));for(let h=0;h<e.length;h++){let p=e[h];if(p.name!=="error"){s.push(new L(p.sourceSpan,`Unrecognized @boundary connected block @${p.name}`));continue}let g=new G(p.startSourceSpan.end,p.startSourceSpan.end),y=[new Yt("$error","$error",g,g,g),new Yt("$reset","$reset",g,g,g)],E=null;for(let w of p.parameters){let A=w.expression.match(Vp),k=w.expression.match(/^\s*[$A-Z_][0-9A-Z_$]*\s*=/i)!==null;if(A!==null||k){let H=A!==null?A[1]:w.expression,q=A!==null?new G(w.sourceSpan.start.moveBy(A[0].length-A[1].length),w.sourceSpan.end):w.sourceSpan;tg(w.sourceSpan,H,q,y,s,(te,Se,Ee)=>{Se!=="$error"&&Se!=="$reset"?s.push(new L(Ee,`Unknown context variable "${Se}". Only "$error" and "$reset" are allowed`)):y.some(dt=>dt.name===te)&&s.push(new L(Ee,`Duplicate "let" parameter variable "${te}"`))},"@error block","$error");continue}let _=w.expression.match(gk);if(_){if(E!==null)s.push(new L(w.sourceSpan,'@error block can only have one "when" expression'));else{let H=w.expression.indexOf(_[2]),q=H+_[2].length;E=r.parseBinding(w.expression.slice(H,q),!1,w.sourceSpan,w.sourceSpan.start.offset+H).ast}continue}s.push(new L(w.sourceSpan,`Unrecognized @error block parameter "${w.expression}"`))}i.push(new Ho(fe(n,p.children,p.children),y,E,p.nameSpan,p.sourceSpan,p.startSourceSpan,p.endSourceSpan,p.i18n))}let o=!1;for(let h=0;h<i.length;h++){let p=i[h];p.expression===null&&(o?s.push(new L(p.sourceSpan,"@boundary block can only have one unconditional @error block")):h!==i.length-1&&s.push(new L(p.sourceSpan,"Unconditional @error block must be the last @error block in the boundary chain")),o=!0)}let a=t.sourceSpan,c=i[i.length-1];c!==void 0&&(a=new G(t.startSourceSpan.start,c.sourceSpan.end));let u=i.length>0?i[i.length-1].endSourceSpan:t.endSourceSpan;return{node:new Ei(fe(n,t.children,t.children),i,t.nameSpan,a,t.sourceSpan,t.startSourceSpan,u,t.i18n),errors:s}}function vk(t,e){let n=[];if(t.parameters.length<1||t.parameters.length>2)return n.push(new L(t.startSourceSpan,'@content block must have one or two parameters, e.g. "@content(header)" or "@content(items; let item, index)"')),{node:null,errors:n};let r=t.parameters[0],s=r.expression.trim();if(s.includes(","))return n.push(new L(t.startSourceSpan,"@content block must have exactly one name parameter")),{node:null,errors:n};if(!jl.test(s))return n.push(new L(r.sourceSpan,"@content name must be a valid JavaScript identifier")),{node:null,errors:n};let i=Sk(t,n);return i===null?{node:null,errors:n}:{node:new bs(s,i,fe(e,t.children,t.children),t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n),errors:n}}function Sk(t,e){let n=[];if(t.parameters.length<2)return n;let r=t.parameters[1],i=r.expression.trim().match(Vp);if(!i)return e.push(new L(r.sourceSpan,'@content block variables must start with "let", e.g. "let item, index"')),null;let o=i[1].split(",").map(h=>h.trim()),a=i[1],c=r.expression.indexOf(a),u=r.sourceSpan.start.moveBy(c),f=0;for(let h of o){if(h===""){e.push(new L(r.sourceSpan,"Invalid variable name in @content block"));continue}let p,g=a.indexOf(h,f),y=u.moveBy(g);if(h.includes("=")){let E=h.indexOf("="),w=h.substring(0,E).trim(),A=new G(y,y.moveBy(h.length));e.push(new L(A,"@content block variables cannot be assigned a value")),h=w,p=new G(y,y.moveBy(h.length))}else p=new G(y,y.moveBy(h.length));if(!jl.test(h)){e.push(new L(p,`Variable name "${h}" must be a valid JavaScript identifier`)),f=g+h.length;continue}if(n.some(E=>E.name===h)){e.push(new L(p,`Duplicate variable name "${h}" in @content block`)),f=g+h.length;continue}n.push(new Yt(h,"",p,p)),f=g+h.length}return n}var Ek=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,wk=/^track\s+([\S\s]*)/,Tk=/^(as\s+)(.*)/,oo=new Set(["$index","$first","$last","$even","$odd","$count"]);function zd(t){return t==="empty"}function Kd(t){return t==="else"||t==="else if"}function Ck(t,e,n,r){let s=bk(e),i=[],o=Xd(t,s,r);o!==null&&i.push(new us(o.expression,fe(n,t.children,t.children),o.expressionAlias,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan,t.i18n));for(let h of e)if(h.name==="else if"){let p=Xd(h,s,r);if(p!==null){let g=fe(n,h.children,h.children);i.push(new us(p.expression,g,p.expressionAlias,h.sourceSpan,h.startSourceSpan,h.endSourceSpan,h.nameSpan,h.i18n))}}else if(h.name==="else"){let p=fe(n,h.children,h.children);i.push(new us(null,p,null,h.sourceSpan,h.startSourceSpan,h.endSourceSpan,h.nameSpan,h.i18n))}let a=i.length>0?i[0].startSourceSpan:t.startSourceSpan,c=i.length>0?i[i.length-1].endSourceSpan:t.endSourceSpan,u=t.sourceSpan,f=i[i.length-1];return f!==void 0&&(u=new G(a.start,f.sourceSpan.end)),{node:new Ti(i,u,t.startSourceSpan,c,t.nameSpan),errors:s}}function xk(t,e,n,r){var c,u;let s=[],i=Ik(t,s,r),o=null,a=null;for(let f of e)f.name==="empty"?a!==null?s.push(new L(f.sourceSpan,"@for loop can only have one @empty block")):f.parameters.length>0?s.push(new L(f.sourceSpan,"@empty block cannot have parameters")):a=new Wo(fe(n,f.children,f.children),f.sourceSpan,f.startSourceSpan,f.endSourceSpan,f.nameSpan,f.i18n):s.push(new L(f.sourceSpan,`Unrecognized @for loop block "${f.name}"`));if(i!==null){let f=(c=a==null?void 0:a.endSourceSpan)!=null?c:t.endSourceSpan,h=new G(t.sourceSpan.start,(u=f==null?void 0:f.end)!=null?u:t.sourceSpan.end),p,g;i.trackBy===null?(p=g=null,s.push(new L(t.startSourceSpan,'@for loop must have a "track" expression'))):(p=i.trackBy.expression,g=i.trackBy.keywordSpan,Ak(i.trackBy.expression,i.trackBy.keywordSpan,s)),o=new Ur(i.itemName,i.expression,p,g,i.context,fe(n,t.children,t.children),a,h,t.sourceSpan,t.startSourceSpan,f,t.nameSpan,t.i18n)}return{node:o,errors:s}}function Nk(t,e,n){let r=Dk(t),s=t.parameters.length>0?ai(t.parameters[0],n):n.parseBinding("",!1,t.sourceSpan,0),i=[],o=[],a=[],c=null,u=null;for(let h of t.children){if(!(h instanceof on))continue;if((h.name!=="case"||h.parameters.length===0)&&h.name!=="default"&&h.name!=="default never"){o.push(new ml(h.name,h.sourceSpan,h.nameSpan));continue}u!==null&&r.push(new L(h.sourceSpan,'@default block with "never" parameter must be the last case in a switch'));let p=h.name==="case",g=null;if(p)g=ai(h.parameters[0],n);else if(h.name==="default never"){h.parameters.length>0&&(g=ai(h.parameters[0],n)),(h.children.length>0||h.endSourceSpan!==null&&h.endSourceSpan.start.offset!==h.endSourceSpan.end.offset)&&r.push(new L(h.sourceSpan,'@default block with "never" parameter cannot have a body')),a.length>0&&r.push(new L(h.sourceSpan,'A @case block with no body cannot be followed by a @default block with "never" parameter')),u=new Tu(g,h.sourceSpan,h.startSourceSpan,h.endSourceSpan,h.nameSpan);continue}let y=new wu(g,h.sourceSpan,h.startSourceSpan,h.endSourceSpan,h.nameSpan);if(a.push(y),h.children.length===0&&h.endSourceSpan!==null&&h.endSourceSpan.start.offset===h.endSourceSpan.end.offset){c===null&&(c=h.sourceSpan);continue}let w=h.sourceSpan,A=h.startSourceSpan;c!==null&&(w=new G(c.start,h.sourceSpan.end),A=new G(c.start,h.startSourceSpan.end),c=null);let k=new qo(a,fe(e,h.children,h.children),w,A,h.endSourceSpan,h.nameSpan,h.i18n);i.push(k),a=[]}return{node:new wi(s,i,o,u,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan),errors:r}}function Ik(t,e,n){var h;if(t.parameters.length===0)return e.push(new L(t.startSourceSpan,"@for loop does not have an expression")),null;let[r,...s]=t.parameters,i=(h=kk(r,e))==null?void 0:h.match(Ek);if(!i||i[2].trim().length===0)return e.push(new L(r.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;let[,o,a]=i;oo.has(o)&&e.push(new L(r.sourceSpan,`@for loop item name cannot be one of ${Array.from(oo).join(", ")}.`));let c=r.expression.split(" ")[0],u=new G(r.sourceSpan.start,r.sourceSpan.start.moveBy(c.length)),f={itemName:new Yt(o,"$implicit",u,u),trackBy:null,expression:ai(r,n,a),context:Array.from(oo,p=>{let g=new G(t.startSourceSpan.end,t.startSourceSpan.end);return new Yt(p,p,g,g)})};for(let p of s){let g=p.expression.match(Vp);if(g!==null){let E=new G(p.sourceSpan.start.moveBy(g[0].length-g[1].length),p.sourceSpan.end);tg(p.sourceSpan,g[1],E,f.context,e,(w,A,k)=>{oo.has(A)?w===o?e.push(new L(k,`Invalid @for loop "let" parameter. Variable cannot be called "${o}"`)):f.context.some(_=>_.name===w)&&e.push(new L(k,`Duplicate "let" parameter variable "${A}"`)):e.push(new L(k,`Unknown "let" parameter variable "${A}". The allowed variables are: ${Array.from(oo).join(", ")}`))},"@for loop");continue}let y=p.expression.match(wk);if(y!==null){if(f.trackBy!==null)e.push(new L(p.sourceSpan,'@for loop can only have one "track" expression'));else{let E=ai(p,n,y[1]);E.ast instanceof ct&&e.push(new L(t.startSourceSpan,'@for loop must have a "track" expression'));let w=new G(p.sourceSpan.start,p.sourceSpan.start.moveBy(5));f.trackBy={expression:E,keywordSpan:w}}continue}e.push(new L(p.sourceSpan,`Unrecognized @for loop parameter "${p.expression}"`))}return f}function Ak(t,e,n){let r=new Sp;t.ast.visit(r),r.hasPipe&&n.push(new L(e,"Cannot use pipes in track expressions"))}function bk(t){let e=[],n=!1;for(let r=0;r<t.length;r++){let s=t[r];s.name==="else"?(n?e.push(new L(s.startSourceSpan,"Conditional can only have one @else block")):t.length>1&&r<t.length-1?e.push(new L(s.startSourceSpan,"@else block must be last inside the conditional")):s.parameters.length>0&&e.push(new L(s.startSourceSpan,"@else block cannot have parameters")),n=!0):s.name!=="else if"&&e.push(new L(s.startSourceSpan,`Unrecognized conditional block @${s.name}`))}return e}function Dk(t){let e=[],n=!1;if(t.parameters.length!==1)return e.push(new L(t.startSourceSpan,"@switch block must have exactly one parameter")),e;for(let r of t.children)if(!(r instanceof la||r instanceof Ls&&r.value.trim().length===0)){if(!(r instanceof on)||r.name!=="case"&&r.name!=="default"&&r.name!=="default never"){e.push(new L(r.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}r.name==="default never"?(n&&e.push(new L(r.startSourceSpan,"@switch block can only have one @default block")),n=!0):r.name==="default"?(n?e.push(new L(r.startSourceSpan,"@switch block can only have one @default block")):r.parameters.length>0&&e.push(new L(r.startSourceSpan,"@default block cannot have parameters")),n=!0):r.name==="case"&&r.parameters.length!==1&&e.push(new L(r.startSourceSpan,"@case block must have exactly one parameter"))}return e}function ai(t,e,n){let r,s;return typeof n=="string"?(r=Math.max(0,t.expression.lastIndexOf(n)),s=r+n.length):(r=0,s=t.expression.length),e.parseBinding(t.expression.slice(r,s),!1,t.sourceSpan,t.sourceSpan.start.offset+r)}function Xd(t,e,n){if(t.parameters.length===0)return e.push(new L(t.startSourceSpan,"Conditional block does not have an expression")),null;let r=ai(t.parameters[0],n),s=null;for(let i=1;i<t.parameters.length;i++){let o=t.parameters[i],a=o.expression.match(Tk);if(a===null)e.push(new L(o.sourceSpan,`Unrecognized conditional parameter "${o.expression}"`));else if(t.name!=="if"&&t.name!=="else if")e.push(new L(o.sourceSpan,'"as" expression is only allowed on `@if` and `@else if` blocks'));else if(s!==null)e.push(new L(o.sourceSpan,'Conditional can only have one "as" expression'));else{let c=a[2].trim();if(jl.test(c)){let u=o.sourceSpan.start.moveBy(a[1].length),f=new G(u,u.moveBy(c.length));s=new Yt(c,c,f,f)}else e.push(new L(o.sourceSpan,'"as" expression must be a valid JavaScript identifier'))}}return{expression:r,expressionAlias:s}}function kk(t,e){let n=t.expression,r=/^\s$/,s=0,i=0,o=n.length-1;for(let a=0;a<n.length;a++){let c=n[a];if(c==="(")i=a+1,s++;else{if(r.test(c))continue;break}}if(s===0)return n;for(let a=n.length-1;a>-1;a--){let c=n[a];if(c===")"){if(o=a,s--,s===0)break}else{if(r.test(c))continue;break}}return s!==0?(e.push(new L(t.sourceSpan,"Unclosed parentheses in expression")),null):n.slice(i,o)}var Sp=class extends Ns{constructor(){super(...arguments);l(this,"hasPipe",!1)}visitPipe(){this.hasPipe=!0}},_k=/^\d+\.?\d*(ms|s)?$/,Rk=/^\s$/,Yd=new Map([[an,Dt],[_n,jn],[_t,Xe]]),ut;(function(t){t.IDLE="idle",t.TIMER="timer",t.INTERACTION="interaction",t.IMMEDIATE="immediate",t.HOVER="hover",t.VIEWPORT="viewport",t.NEVER="never"})(ut||(ut={}));function Pk({expression:t,sourceSpan:e},n,r){let s=t.indexOf("never"),i=new G(e.start.moveBy(s),e.start.moveBy(s+5)),o=rh(t,e),a=sh(t,e);s===-1?r.push(new L(e,'Could not find "never" keyword in expression')):ih("never",n,r,new Eu(i,e,o,null,a))}function Kc({expression:t,sourceSpan:e},n,r,s){let i=t.indexOf("when"),o=new G(e.start.moveBy(i),e.start.moveBy(i+4)),a=rh(t,e),c=sh(t,e);if(i===-1)s.push(new L(e,'Could not find "when" keyword in expression'));else{let u=da(t,i+1),f=n.parseBinding(t.slice(u),!1,e,e.start.offset+u);ih("when",r,s,new dl(f,e,a,o,c))}}function Xc({expression:t,sourceSpan:e},n,r,s,i){let o=t.indexOf("on"),a=new G(e.start.moveBy(o),e.start.moveBy(o+2)),c=rh(t,e),u=sh(t,e);if(o===-1)s.push(new L(e,'Could not find "on" keyword in expression'));else{let f=da(t,o+1),h=t.startsWith("hydrate");new Ep(t,n,f,e,r,s,h?Vk:Uk,h,c,a,u).parse()}}function rh(t,e){return t.startsWith("prefetch")?new G(e.start,e.start.moveBy(8)):null}function sh(t,e){return t.startsWith("hydrate")?new G(e.start,e.start.moveBy(7)):null}var Ep=class{constructor(e,n,r,s,i,o,a,c,u,f,h){l(this,"expression");l(this,"bindingParser");l(this,"start");l(this,"span");l(this,"triggers");l(this,"errors");l(this,"validator");l(this,"isHydrationTrigger");l(this,"prefetchSpan");l(this,"onSourceSpan");l(this,"hydrateSpan");l(this,"index",0);l(this,"tokens");this.expression=e,this.bindingParser=n,this.start=r,this.span=s,this.triggers=i,this.errors=o,this.validator=a,this.isHydrationTrigger=c,this.prefetchSpan=u,this.onSourceSpan=f,this.hydrateSpan=h,this.tokens=new ua().tokenize(e.slice(r))}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(mt))this.consumeTrigger(e,[]),this.advance();else if(this.isFollowedByOrLast(_t)){this.advance();let n=this.errors.length,r=this.consumeParameters();if(this.errors.length!==n)break;this.consumeTrigger(e,r),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,n){let r=this.span.start.moveBy(this.start+e.index-this.tokens[0].index),s=new G(r,r.moveBy(e.strValue.length)),i=r.moveBy(this.token().end-e.index),o=e.index===0,a=o?this.onSourceSpan:null,c=o?this.prefetchSpan:null,u=o?this.hydrateSpan:null,f=new G(o?this.span.start:r,i);try{switch(e.toString()){case ut.IDLE:this.trackTrigger("idle",Lk(n,s,f,c,a,u));break;case ut.TIMER:this.trackTrigger("timer",Mk(n,s,f,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case ut.INTERACTION:this.trackTrigger("interaction",Bk(n,s,f,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case ut.IMMEDIATE:this.trackTrigger("immediate",Ok(n,s,f,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case ut.HOVER:this.trackTrigger("hover",Fk(n,s,f,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case ut.VIEWPORT:this.trackTrigger("viewport",$k(this.start,this.isHydrationTrigger,this.bindingParser,n,s,f,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=[];if(!this.token().isCharacter(_t))return this.unexpectedToken(this.token()),e;this.advance();let n=[],r=[];for(;this.index<this.tokens.length;){let s=this.token();if(s.isCharacter(Xe)&&n.length===0){r.length&&e.push({expression:this.tokenRangeText(r),start:r[0].index});break}if(s.type===j.Character&&Yd.has(s.numValue)&&n.push(Yd.get(s.numValue)),n.length>0&&s.isCharacter(n[n.length-1])&&n.pop(),n.length===0&&s.isCharacter(mt)&&r.length>0){e.push({expression:this.tokenRangeText(r),start:r[0].index}),this.advance(),r=[];continue}r.push(s),this.advance()}return(!this.token().isCharacter(Xe)||n.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(mt)&&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,n){ih(e,this.triggers,this.errors,n)}error(e,n){let r=this.span.start.moveBy(this.start+e.index),s=r.moveBy(e.end-e.index);this.errors.push(new L(new G(r,s),n))}unexpectedToken(e){this.error(e,`Unexpected token "${e}"`)}};function ih(t,e,n,r){e[t]?n.push(new L(r.sourceSpan,`Duplicate "${t}" trigger is not allowed`)):e[t]=r}function Lk(t,e,n,r,s,i){if(t.length>1)throw new Error(`"${ut.IDLE}" trigger can only have zero or one parameters`);let o=null;if(t[0]&&(o=ma(t[0].expression),o===null))throw new Error(`Could not parse time value of trigger "${ut.IDLE}"`);return new vi(e,n,r,s,i,o)}function Mk(t,e,n,r,s,i){if(t.length!==1)throw new Error(`"${ut.TIMER}" trigger must have exactly one parameter`);let o=ma(t[0].expression);if(o===null)throw new Error(`Could not parse time value of trigger "${ut.TIMER}"`);return new rr(o,e,n,r,s,i)}function Ok(t,e,n,r,s,i){if(t.length>0)throw new Error(`"${ut.IMMEDIATE}" trigger cannot have parameters`);return new Si(e,n,r,s,i)}function Fk(t,e,n,r,s,i,o){var a,c;return o(ut.HOVER,t),new Is((c=(a=t[0])==null?void 0:a.expression)!=null?c:null,e,n,r,s,i)}function Bk(t,e,n,r,s,i,o){var a,c;return o(ut.INTERACTION,t),new As((c=(a=t[0])==null?void 0:a.expression)!=null?c:null,e,n,r,s,i)}function $k(t,e,n,r,s,i,o,a,c,u){u(ut.VIEWPORT,r);let f,h;if(r.length===0)f=h=null;else if(!r[0].expression.startsWith("{"))f=r[0].expression,h=null;else{let p=n.parseBinding(r[0].expression,!1,i,i.start.offset+t+r[0].start);if(p.ast instanceof xs){if(p.ast.keys.some(y=>y.kind==="spread"))throw new Error("Spread operator are not allowed in this context");if(p.ast.keys.some(y=>y.kind==="property"&&y.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=p.ast.keys.findIndex(y=>y.kind==="property"&&y.key==="trigger");if(g===-1)f=null,h=p.ast;else{let y=p.ast.values[g],E=(w,A)=>A!==g;if(!(y instanceof we)||!(y.receiver instanceof pn))throw new Error('"trigger" option of the "viewport" trigger must be an identifier');f=y.name,h=new xs(p.ast.span,p.ast.sourceSpan,p.ast.keys.filter(E),p.ast.values.filter(E))}}if(e&&f!==null)throw new Error('"viewport" hydration trigger cannot have a "trigger"');if(h){let p=wp.findDynamicNode(h);if(p!==null)throw new Error(`Options of the "viewport" trigger must be an object literal containing only literal values, but "${p.constructor.name}" was found`)}return new $r(f,h,s,i,o,a,c)}function Uk(t,e){if(e.length>1)throw new Error(`"${t}" trigger can only have zero or one parameters`)}function Vk(t,e){if(t===ut.VIEWPORT){if(e.length>1)throw new Error(`Hydration trigger "${t}" cannot have more than one parameter`);return}if(e.length>0)throw new Error(`Hydration trigger "${t}" cannot have parameters`)}function da(t,e=0){let n=!1;for(let r=e;r<t.length;r++)if(Rk.test(t[r]))n=!0;else if(n)return r;return-1}function ma(t){let e=t.match(_k);if(!e)return null;let[n,r]=e;return parseFloat(n)*(r==="s"?1e3:1)}var wp=class t extends Ns{constructor(){super(...arguments);l(this,"dynamicNode",null)}static findDynamicNode(n){let r=new t;return r.visit(n),r.dynamicNode}visit(n){!(n instanceof Ne)&&!(n instanceof gt)&&!(n instanceof Lo)&&!(n instanceof xs)?this.dynamicNode=n:super.visit(n)}},Gk=/^prefetch\s+when\s/,Hk=/^prefetch\s+on\s/,qk=/^hydrate\s+when\s/,Wk=/^hydrate\s+on\s/,jk=/^hydrate\s+never(\s*)$/,ny=/^minimum\s/,zk=/^after\s/,Kk=/^when\s/,Xk=/^on\s/,Yk=/^name\s+/;function Tp(t){return t==="placeholder"||t==="loading"||t==="error"}function Qk(t,e,n,r){let s=[],{placeholder:i,loading:o,error:a}=Jk(e,s,n),{triggers:c,prefetchTriggers:u,hydrateTriggers:f,definedName:h}=n_(t,r,s),p=t.endSourceSpan,g=t.sourceSpan.end;if(e.length>0){let w=e[e.length-1];p=w.endSourceSpan,g=w.sourceSpan.end}let y=new G(t.sourceSpan.start,g);return{node:new Rn(fe(n,t.children,t.children),c,u,f,i,o,a,t.nameSpan,y,t.sourceSpan,t.startSourceSpan,p,h,t.i18n),errors:s}}function Jk(t,e,n){let r=null,s=null,i=null;for(let o of t)try{if(!Tp(o.name)){e.push(new L(o.startSourceSpan,`Unrecognized block "@${o.name}"`));break}switch(o.name){case"placeholder":r!==null?e.push(new L(o.startSourceSpan,"@defer block can only have one @placeholder block")):r=Zk(o,n);break;case"loading":s!==null?e.push(new L(o.startSourceSpan,"@defer block can only have one @loading block")):s=e_(o,n);break;case"error":i!==null?e.push(new L(o.startSourceSpan,"@defer block can only have one @error block")):i=t_(o,n);break}}catch(a){e.push(new L(o.startSourceSpan,a.message))}return{placeholder:r,loading:s,error:i}}function Zk(t,e){let n=null;for(let r of t.parameters)if(ny.test(r.expression)){if(n!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let s=ma(r.expression.slice(da(r.expression)));if(s===null)throw new Error('Could not parse time value of parameter "minimum"');n=s}else throw new Error(`Unrecognized parameter in @placeholder block: "${r.expression}"`);return new Uo(fe(e,t.children,t.children),n,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function e_(t,e){let n=null,r=null;for(let s of t.parameters)if(zk.test(s.expression)){if(n!=null)throw new Error('@loading block can only have one "after" parameter');let i=ma(s.expression.slice(da(s.expression)));if(i===null)throw new Error('Could not parse time value of parameter "after"');n=i}else if(ny.test(s.expression)){if(r!=null)throw new Error('@loading block can only have one "minimum" parameter');let i=ma(s.expression.slice(da(s.expression)));if(i===null)throw new Error('Could not parse time value of parameter "minimum"');r=i}else throw new Error(`Unrecognized parameter in @loading block: "${s.expression}"`);return new Vo(fe(e,t.children,t.children),n,r,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function t_(t,e){if(t.parameters.length>0)throw new Error("@error block cannot have parameters");return new Go(fe(e,t.children,t.children),t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function n_(t,e,n,r){let s={},i={},o={},a=null;for(let c of t.parameters)if(Kk.test(c.expression))Kc(c,e,s,n);else if(Xk.test(c.expression))Xc(c,e,s,n);else if(Gk.test(c.expression))Kc(c,e,i,n);else if(Hk.test(c.expression))Xc(c,e,i,n);else if(qk.test(c.expression))Kc(c,e,o,n);else if(Wk.test(c.expression))Xc(c,e,o,n);else if(jk.test(c.expression))Pk(c,o,n);else if(Yk.test(c.expression))if(a!==null)n.push(new L(c.sourceSpan,"Cannot specify multiple name parameters"));else{let u=c.expression.slice(5).trim();u.startsWith("'")||u.startsWith('"')||u.endsWith("'")||u.endsWith('"')?n.push(new L(c.sourceSpan,"Block names cannot be quoted in @defer blocks")):/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(u)?a=u:n.push(new L(c.sourceSpan,`Invalid block name "${u}"`))}else n.push(new L(c.sourceSpan,"Unrecognized trigger"));return o.never&&Object.keys(o).length>1&&n.push(new L(t.startSourceSpan,"Cannot specify additional `hydrate` triggers if `hydrate never` is present")),{triggers:s,prefetchTriggers:i,hydrateTriggers:o,definedName:a}}var r_=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,Qd=1,Jd=2,Zd=3,em=4,tm=5,s_=6,ao=7,yr={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},Yc="*",i_=new Set(["link","style","script","ng-template","ng-container","ng-content"]),o_=new Set(["ngProjectAs","ngNonBindable"]);function a_(t,e,n){let r=new Cp(e,n),s=fe(r,t,t),i=e.errors.concat(r.errors),o={nodes:s,errors:i,styleUrls:r.styleUrls,styles:r.styles,ngContentSelectors:r.ngContentSelectors};return n.collectCommentNodes&&(o.commentNodes=r.commentNodes),o}var Cp=class{constructor(e,n){l(this,"bindingParser");l(this,"options");l(this,"errors",[]);l(this,"styles",[]);l(this,"styleUrls",[]);l(this,"ngContentSelectors",[]);l(this,"commentNodes",[]);l(this,"inI18nBlock",!1);l(this,"processedNodes",new Set);this.bindingParser=e,this.options=n}visitElement(e){let n=Qa(e.i18n);n&&(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 r=ty(e);if(r.type===Vt.SCRIPT)return null;if(r.type===Vt.STYLE){let A=l_(e);return A!==null&&this.styles.push(A),null}else if(r.type===Vt.STYLESHEET&&ik(r.hrefAttr))return this.styleUrls.push(r.hrefAttr),null;let s=Li(e.name),{attributes:i,boundEvents:o,references:a,variables:c,templateVariables:u,elementHasInlineTemplate:f,parsedProperties:h,templateParsedProperties:p,i18nAttrsMeta:g}=this.prepareAttributes(e.attrs,s),y=this.extractDirectives(e),E;r.nonBindable?E=fe(nm,e.children).flat(1/0):E=fe(this,e.children,e.children);let w;if(r.type===Vt.NG_CONTENT){let A=r.selectAttr,k=e.attrs.map(_=>this.visitAttribute(_));w=new Ci(A,k,E,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n),this.ngContentSelectors.push(A)}else if(s){let A=this.categorizePropertyAttributes(e.name,h,g);w=new Le(e.name,i,A.bound,o,y,[],E,a,c,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{let A=this.categorizePropertyAttributes(e.name,h,g);if(e.name==="ng-container")for(let k of A.bound)k.type===J.Attribute&&this.reportError("Attribute bindings are not supported on ng-container. Use property bindings instead.",k.sourceSpan);w=new Tt(e.name,i,A.bound,o,y,E,a,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n)}return this.options.collectCommentNodes&&e.comments.forEach(A=>{this.commentNodes.push(new ss(A.value||"",A.sourceSpan))}),f&&(w=this.wrapInTemplate(w,p,u,g,s,n)),n&&(this.inI18nBlock=!1),w}visitAttribute(e){return new fn(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(!Qa(e.i18n))throw new Error(`Invalid type "${e.i18n.constructor}" for "i18n" property of ${e.sourceSpan.toString()}. Expected a "Message"`);let n=e.i18n,r={},s={};return Object.keys(n.placeholders).forEach(i=>{let o=n.placeholders[i];if(i.startsWith(rT)){let a=i.trim(),c=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);r[a]=new yi(c,o.sourceSpan)}else s[i]=this._visitTextWithInterpolation(o.text,o.sourceSpan,null)}),new eg(r,s,e.sourceSpan,n)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new ss(e.value||"",e.sourceSpan)),null}visitStartTagComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new ss(e.value||"",e.sourceSpan)),null}visitLetDeclaration(e,n){let r=this.bindingParser.parseBinding(e.value,!1,e.valueSpan,e.valueSpan.start.offset);return r.errors.length===0&&r.ast instanceof ct&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new ur(e.name,r,e.sourceSpan,e.nameSpan,e.valueSpan)}visitComponent(e){let n=Qa(e.i18n);if(n&&(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&&i_.has(e.tagName))return this.reportError(`Tag name "${e.tagName}" cannot be used as a component tag`,e.startSourceSpan),null;let{attributes:r,boundEvents:s,references:i,templateVariables:o,elementHasInlineTemplate:a,parsedProperties:c,templateParsedProperties:u,i18nAttrsMeta:f}=this.prepareAttributes(e.attrs,!1);this.validateSelectorlessReferences(i);let h=this.extractDirectives(e),p;e.attrs.find(E=>E.name==="ngNonBindable")?p=fe(nm,e.children).flat(1/0):p=fe(this,e.children,e.children);let g=this.categorizePropertyAttributes(e.tagName,c,f),y=new ps(e.componentName,e.tagName,e.fullName,r,g.bound,s,h,p,i,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return this.options.collectCommentNodes&&e.comments.forEach(E=>{this.commentNodes.push(new ss(E.value||"",E.sourceSpan))}),a&&(y=this.wrapInTemplate(y,u,o,f,!1,n)),n&&(this.inI18nBlock=!1),y}visitDirective(){return null}visitBlockParameter(){return null}visitBlock(e,n){let r=Array.isArray(n)?n.indexOf(e):-1;if(r===-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 s=null;switch(e.name){case"defer":s=Qk(e,this.findConnectedBlocks(r,n,Tp),this,this.bindingParser);break;case"switch":s=Nk(e,this,this.bindingParser);break;case"content":s=vk(e,this);break;case"for":s=xk(e,this.findConnectedBlocks(r,n,zd),this,this.bindingParser);break;case"if":s=Ck(e,this.findConnectedBlocks(r,n,Kd),this,this.bindingParser);break;case"boundary":s=yk(e,this.findConnectedBlocks(r,n,jd),this,this.bindingParser);break;default:let i;jd(e.name)?(i=`@${e.name} block can only be used after an @defer or @boundary block.`,this.processedNodes.add(e)):Tp(e.name)?(i=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):zd(e.name)?(i=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):Kd(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}.`,s={node:new ml(e.name,e.sourceSpan,e.nameSpan),errors:[new L(e.sourceSpan,i)]};break}return this.errors.push(...s.errors),s.node}findConnectedBlocks(e,n,r){let s=[];for(let i=e+1;i<n.length;i++){let o=n[i];if(!(o instanceof la)){if(o instanceof Ls&&o.value.trim().length===0){this.processedNodes.add(o);continue}if(!(o instanceof on)||!r(o.name))break;s.push(o),this.processedNodes.add(o)}}return s}categorizePropertyAttributes(e,n,r){let s=[],i=[];return n.forEach(o=>{let a=r[o.name];if(o.isLiteral)i.push(new fn(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,a));else{let c=o.name.toLowerCase().startsWith("attr.on"),u=this.bindingParser.createBoundElementProperty(e,o,!c,!1);s.push(Tn.fromBoundElementProperty(u,a))}}),{bound:s,literal:i}}prepareAttributes(e,n){let r=[],s=[],i=[],o=[],a=[],c={},u=[],f=[],h=!1;for(let p of e){let g=!1,y=!1;if(p.i18n&&(c[p.name]=p.i18n),p.name.startsWith(Yc)){h&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",p.sourceSpan),y=!0,h=!0;let E=p.value,w=p.name.substring(Yc.length),A=[],k=p.valueSpan?p.valueSpan.fullStart.offset:p.sourceSpan.fullStart.offset+p.name.length;this.bindingParser.parseInlineTemplateBinding(w,E,p.sourceSpan,k,[],u,A,!0),f.push(...A.map(_=>new Yt(_.name,_.value,_.sourceSpan,_.keySpan,_.valueSpan)))}else g=this.parseAttribute(n,p,[],r,s,i,o);!g&&!y&&a.push(this.visitAttribute(p))}return{attributes:a,boundEvents:s,references:o,variables:i,templateVariables:f,elementHasInlineTemplate:h,parsedProperties:r,templateParsedProperties:u,i18nAttrsMeta:c}}parseAttribute(e,n,r,s,i,o,a){var A;let c=n.name,u=n.value,f=n.sourceSpan,h=n.valueSpan?n.valueSpan.fullStart.offset:f.fullStart.offset;function p(k,_,H){let q=k.start.moveBy(_.length),te=q.moveBy(H.length);return new G(q,te,q,H)}let g=c.match(r_);if(g){if(g[Qd]!=null){let k=g[ao],_=p(f,g[Qd],k);this.bindingParser.parsePropertyBinding(k,u,!1,!1,f,h,n.valueSpan,r,s,_)}else if(g[Jd])if(e){let k=g[ao],_=p(f,g[Jd],k);this.parseVariable(k,u,f,_,n.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',f);else if(g[Zd]){let k=g[ao],_=p(f,g[Zd],k);this.parseReference(k,u,f,_,n.valueSpan,a)}else if(g[em]){let k=[],_=g[ao],H=p(f,g[em],_);this.bindingParser.parseEvent(_,u,!1,f,n.valueSpan||f,r,k,H),Qc(k,i)}else if(g[tm]){let k=g[ao],_=p(f,g[tm],k);this.bindingParser.parsePropertyBinding(k,u,!1,!0,f,h,n.valueSpan,r,s,_),this.parseAssignmentEvent(k,u,f,n.valueSpan,r,i,_,h)}else if(g[s_]){let k=p(f,"",c);this.bindingParser.parseLiteralAttr(c,u,f,h,n.valueSpan,r,s,k)}return!0}let y=null;if(c.startsWith(yr.BANANA_BOX.start)?y=yr.BANANA_BOX:c.startsWith(yr.PROPERTY.start)?y=yr.PROPERTY:c.startsWith(yr.EVENT.start)&&(y=yr.EVENT),y!==null&&c.endsWith(y.end)&&c.length>y.start.length+y.end.length){let k=c.substring(y.start.length,c.length-y.end.length),_=p(f,y.start,k);if(y.start===yr.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(k,u,!1,!0,f,h,n.valueSpan,r,s,_),this.parseAssignmentEvent(k,u,f,n.valueSpan,r,i,_,h);else if(y.start===yr.PROPERTY.start)this.bindingParser.parsePropertyBinding(k,u,!1,!1,f,h,n.valueSpan,r,s,_);else{let H=[];this.bindingParser.parseEvent(k,u,!1,f,n.valueSpan||f,r,H,_),Qc(H,i)}return!0}let E=p(f,"",c);return this.bindingParser.parsePropertyInterpolation(c,u,f,n.valueSpan,r,s,E,(A=n.valueTokens)!=null?A:null)}extractDirectives(e){let n=e instanceof It?e.tagName:e.name,r=[],s=new Set;for(let i of e.directives){let o=!1;for(let g of i.attrs)g.name.startsWith(Yc)?(o=!0,this.reportError(`Shorthand template syntax "${g.name}" is not supported inside a directive context`,g.sourceSpan)):o_.has(g.name)&&(o=!0,this.reportError(`Attribute "${g.name}" is not supported in a directive context`,g.sourceSpan));if(!o&&s.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:c,boundEvents:u,references:f,i18nAttrsMeta:h}=this.prepareAttributes(i.attrs,!1);this.validateSelectorlessReferences(f);let{bound:p}=this.categorizePropertyAttributes(n,c,h);for(let g of p)g.type!==J.Property&&g.type!==J.TwoWay&&(o=!0,this.reportError("Binding is not supported in a directive context",g.sourceSpan));o||(s.add(i.name),r.push(new Wl(i.name,a,p,u,f,i.sourceSpan,i.startSourceSpan,i.endSourceSpan,void 0)))}return r}filterAnimationAttributes(e){return e.filter(n=>!n.name.startsWith("animate."))}filterAnimationInputs(e){return e.filter(n=>n.type!==J.Animation)}wrapInTemplate(e,n,r,s,i,o){let a=this.categorizePropertyAttributes("ng-template",n,s),c=[];a.literal.forEach(p=>c.push(p)),a.bound.forEach(p=>c.push(p));let u={attributes:[],inputs:[],outputs:[]};(e instanceof Tt||e instanceof ps)&&(u.attributes.push(...this.filterAnimationAttributes(e.attributes)),u.inputs.push(...this.filterAnimationInputs(e.inputs)),u.outputs.push(...e.outputs));let f=i&&o?void 0:e.i18n,h;return e instanceof ps?h=e.tagName:e instanceof Le?h=null:h=e.name,new Le(h,u.attributes,u.inputs,u.outputs,[],c,[e],[],r,!1,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,f)}_visitTextWithInterpolation(e,n,r,s){let i=Lg(e),o=this.bindingParser.parseInterpolation(i,n,r);return o?new yi(o,n,s):new is(i,n)}parseVariable(e,n,r,s,i,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',r):e.length===0&&this.reportError("Variable does not have a name",r),o.push(new Yt(e,n,r,s,i))}parseReference(e,n,r,s,i,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',r):e.length===0?this.reportError("Reference does not have a name",r):o.some(a=>a.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,r),o.push(new Ds(e,n,r,s,i))}parseAssignmentEvent(e,n,r,s,i,o,a,c){let u=[];this.bindingParser.parseEvent(`${e}Change`,n,!0,r,s||r,i,u,a),Qc(u,o)}validateSelectorlessReferences(e){if(e.length===0)return;let n=new Set;for(let r of e)r.value.length>0?this.reportError("Cannot specify a value for a local reference in this context",r.valueSpan||r.sourceSpan):n.has(r.name)?this.reportError("Duplicate reference names are not allowed",r.sourceSpan):n.add(r.name)}reportError(e,n,r=zn.ERROR){this.errors.push(new L(n,e,r))}},xp=class{visitElement(e){let n=ty(e);if(n.type===Vt.SCRIPT||n.type===Vt.STYLE||n.type===Vt.STYLESHEET)return null;let r=fe(this,e.children,null);return new Tt(e.name,fe(this,e.attrs),[],[],[],r,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid)}visitComment(e){return null}visitAttribute(e){return new fn(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new is(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,n){let r=[new is(e.startSourceSpan.toString(),e.startSourceSpan),...fe(this,e.children)];return e.endSourceSpan!==null&&r.push(new is(e.endSourceSpan.toString(),e.endSourceSpan)),r}visitBlockParameter(e,n){return null}visitLetDeclaration(e,n){return new is(`@let ${e.name} = ${e.value};`,e.sourceSpan)}visitComponent(e,n){let r=fe(this,e.children,null);return new Tt(e.fullName,fe(this,e.attrs),[],[],[],r,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,!1)}visitDirective(e,n){return null}},nm=new xp;function Qc(t,e){e.push(...t.map(n=>Fn.fromParsedEvent(n)))}function l_(t){return t.children.length!==1||!(t.children[0]instanceof Ls)?null:t.children[0].value}var c_=[" ",`
`,"\r"," "];function ry(t,e,n={}){var H,q,te,Se;let{preserveWhitespaces:r,enableI18nLegacyMessageIdFormat:s}=n,i=(H=n.enableSelectorless)!=null?H:!1,o=_i(i),c=new Fl().parse(t,e,de(C({leadingTriviaChars:c_},n),{tokenizeExpansionForms:!0,tokenizeBlocks:(q=n.enableBlockSyntax)!=null?q:!0,tokenizeLet:(te=n.enableLetSyntax)!=null?te:!0,selectorlessEnabled:i}));if(!n.alwaysAttemptHtmlToR3AstConversion&&c.errors&&c.errors.length>0){let Ee={preserveWhitespaces:r,errors:c.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(Ee.commentNodes=[]),Ee}let u=c.rootNodes,f=!((Se=n.preserveSignificantWhitespace)==null||Se),h=new Pl(!r,s,n.preserveSignificantWhitespace,f),p=h.visitAllWithErrors(u);if(!n.alwaysAttemptHtmlToR3AstConversion&&p.errors&&p.errors.length>0){let Ee={preserveWhitespaces:r,errors:p.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(Ee.commentNodes=[]),Ee}u=p.rootNodes,r||(u=fe(new _l(!0,void 0,!1),u),h.hasI18nMeta&&(u=fe(new Pl(!1,void 0,!0,f),u)));let{nodes:g,errors:y,styleUrls:E,styles:w,ngContentSelectors:A,commentNodes:k}=a_(u,o,{collectCommentNodes:!!n.collectCommentNodes});y.push(...c.errors,...p.errors);let _={preserveWhitespaces:r,errors:y.length>0?y:null,nodes:g,styleUrls:E,styles:w,ngContentSelectors:A};return n.collectCommentNodes&&(_.commentNodes=k),_}var u_=new en;function _i(t=!1){return new mp(new Rl(new ua,t),u_,[])}var sy="%COMP%",p_=`_nghost-${sy}`,h_=`_ngcontent-${sy}`;function iy(t,e,n){let r=new sr,s=Lp(t.selector);return r.set("type",t.type.value),s.length>0&&r.set("selectors",Js(s)),t.queries.length>0&&r.set("contentQueries",sk(t.queries,e,t.name)),t.viewQueries.length&&r.set("viewQuery",rk(t.viewQueries,e,t.name)),r.set("hostBindings",v_(t.host,t.typeSourceSpan,n,e,t.selector||"",t.name,r,t.legacyOptionalChaining)),r.set("inputs",Ff(t.inputs,!0)),r.set("outputs",Ff(t.outputs)),t.exportAs!==null&&r.set("exportAs",pe(t.exportAs.map(i=>S(i)))),t.isStandalone===!1&&r.set("standalone",S(!1)),t.isSignal&&r.set("signals",S(!0)),r}function oy(t,e){var i,o;let n=[],r=e.providers,s=e.viewProviders;if(r||s){let a=[r||new Wt([])];s&&a.push(s),n.push(R(m.ProvidersFeature).callFn(a))}if((i=e.hostDirectives)!=null&&i.length&&n.push(R(m.HostDirectivesFeature).callFn([w_(e.hostDirectives)])),e.usesInheritance&&n.push(R(m.InheritDefinitionFeature)),e.lifecycle.usesOnChanges&&n.push(R(m.NgOnChangesFeature)),e.controlCreate!==null&&n.push(R(m.ControlFeature).callFn([S(e.controlCreate.passThroughInput)])),"externalStyles"in e&&((o=e.externalStyles)!=null&&o.length)){let a=e.externalStyles.map(c=>S(c));n.push(R(m.ExternalStylesFeature).callFn([pe(a)]))}n.length&&t.set("features",pe(n))}function ay(t,e,n){let r=iy(t,e,n);oy(r,t);let s=R(m.defineDirective).callFn([r.toLiteralMap()],void 0,!0),i=y_(t);return{expression:s,type:i,statements:[]}}function ly(t,e,n){var p;let r=iy(t,e,n);oy(r,t);let s=t.name,i=null;if(t.defer.mode===1&&t.defer.dependenciesFn!==null){let g=`${s}_DeferFn`;e.statements.push(new Ze(g,t.defer.dependenciesFn,void 0,Fe.Final)),i=Z(g)}let o=t.isStandalone&&!t.hasDirectiveDependencies?At.DomOnly:At.Full,a=_D(t.name,t.template.nodes,e,o,t.relativeContextFilePath,t.i18nUseExternalIds,t.defer,i,t.relativeTemplatePath,t.enableTemplateSourceLocations||ek,t.legacyOptionalChaining,t.foreignImports);Wg(a,D.Tmpl);let c=CD(a,e);if(a.contentSelectors!==null&&r.set("ngContentSelectors",a.contentSelectors),r.set("decls",S(a.root.decls)),r.set("vars",S(a.root.vars)),a.consts.length>0&&(a.constsInitializers.length>0?r.set("consts",wt([],[...a.constsInitializers,new Pe(pe(a.consts))],X)):r.set("consts",pe(a.consts))),r.set("template",c),t.declarationListEmitMode!==3&&t.declarations.length>0)r.set("dependencies",d_(pe(t.declarations.map(g=>g.type)),t.declarationListEmitMode));else if(t.declarationListEmitMode===3){let g=[t.type.value];t.rawImports&&g.push(t.rawImports),r.set("dependencies",R(m.getComponentDepsFactory).callFn(g))}t.encapsulation===null&&(t.encapsulation=An.Emulated);let u=!!((p=t.externalStyles)!=null&&p.length);if(t.styles&&t.styles.length){let g=t.styles.map(w=>GT(w)),E=(t.encapsulation==An.Emulated?E_(g,h_,p_):g).reduce((w,A)=>(A.trim().length>0&&w.push(e.getConstLiteral(S(A))),w),[]);E.length>0&&(u=!0,r.set("styles",pe(E)))}!u&&t.encapsulation===An.Emulated&&(t.encapsulation=An.None),t.encapsulation!==An.Emulated&&r.set("encapsulation",S(t.encapsulation)),t.animations!==null&&r.set("data",Et([{key:"animation",value:t.animations,quoted:!1}])),t.changeDetection!==null&&(typeof t.changeDetection=="number"&&t.changeDetection!==Za.OnPush?r.set("changeDetection",S(t.changeDetection)):typeof t.changeDetection=="object"&&r.set("changeDetection",t.changeDetection));let f=R(m.defineComponent).callFn([r.toLiteralMap()],void 0,!0),h=f_(t);return{expression:f,type:h,statements:[]}}function f_(t){let e=cy(t);return e.push(Ip(t.template.ngContentSelectors)),e.push(qe(S(t.isStandalone))),e.push(hy(t)),t.isSignal&&e.push(qe(S(t.isSignal))),qe(R(m.ComponentDeclaration,e))}function d_(t,e){switch(e){case 0:return t;case 1:return wt([],t,X);case 2:let n=t.prop("map").callFn([R(m.resolveForwardRef)]);return wt([],n,X);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function m_(t){return qe(S(t))}function Np(t){let e=Object.keys(t).map(n=>{let r=Array.isArray(t[n])?t[n][0]:t[n];return{key:n,value:S(r),quoted:!0}});return Et(e)}function Ip(t){return t.length>0?qe(pe(t.map(e=>S(e)))):Gt}function cy(t){let e=t.selector!==null?t.selector.replace(/\n/g,""):null;return[Gp(t.type.type,t.typeArgumentCount),e!==null?m_(e):Gt,t.exportAs!==null?Ip(t.exportAs):Gt,qe(g_(t)),qe(Np(t.outputs)),Ip(t.queries.map(n=>n.propertyName))]}function g_(t){return Et(Object.keys(t.inputs).map(e=>{let n=t.inputs[e],r=[{key:"alias",value:S(n.bindingPropertyName),quoted:!0},{key:"required",value:S(n.required),quoted:!0}];return n.isSignal&&r.push({key:"isSignal",value:S(n.isSignal),quoted:!0}),{key:e,value:Et(r),quoted:!0}}))}function y_(t){let e=cy(t);return e.push(Gt),e.push(qe(S(t.isStandalone))),e.push(hy(t)),t.isSignal&&e.push(qe(S(t.isSignal))),qe(R(m.DirectiveDeclaration,e))}function v_(t,e,n,r,s,i,o,a){let c=n.createBoundHostProperties(t.properties,e),u=n.createDirectiveHostEventAsts(t.listeners,e);t.specialAttributes.styleAttr&&(t.attributes.style=S(t.specialAttributes.styleAttr)),t.specialAttributes.classAttr&&(t.attributes.class=S(t.specialAttributes.classAttr));let f=RD({componentName:i,componentSelector:s,properties:c,events:u,attributes:t.attributes,legacyOptionalChaining:a},n,r);Wg(f,D.Host),o.set("hostAttrs",f.root.attributes);let h=f.root.vars;return h!==null&&h>0&&o.set("hostVars",S(h)),xD(f)}function uy(t){let e={},n={},r={},s={};for(let i of Object.keys(t)){let o=t[i];if(i.startsWith("(")&&i.endsWith(")")){if(typeof o!="string")throw new Error("Event binding must be string");n[i.slice(1,-1)]=o}else if(i.startsWith("[")&&i.endsWith("]")){if(typeof o!="string")throw new Error("Property binding must be string");r[i.slice(1,-1)]=o}else switch(i){case"class":if(typeof o!="string")throw new Error("Class binding must be string");s.classAttr=o;break;case"style":if(typeof o!="string")throw new Error("Style binding must be string");s.styleAttr=o;break;default:typeof o=="string"?e[i]=S(o):e[i]=o}}return{attributes:e,listeners:n,properties:r,specialAttributes:s}}function py(t,e){let n=_i();return n.createDirectiveHostEventAsts(t.listeners,e),n.createBoundHostProperties(t.properties,e),S_(t,n,e),n.errors}function S_(t,e,n){for(let r in t.properties){let s=r.startsWith("attr."),i=s?r.slice(5):r;if(i.toLowerCase().startsWith("on")){let o=s?"attribute":"property",a=`(${i.slice(2)})=...`,c=`Binding to event ${o} '${i}' is disallowed for security reasons, please use ${a}`;s||(c+=`
If '${r}' is a directive input, make sure the directive is imported by the current module.`),e.errors.push(new L(n,c))}}}function E_(t,e,n){let r=new Mu;return t.map(s=>r.shimCssText(s,e,n))}function hy(t){var e;return(e=t.hostDirectives)!=null&&e.length?qe(pe(t.hostDirectives.map(n=>Et([{key:"directive",value:Ri(n.directive.type),quoted:!1},{key:"inputs",value:Np(n.inputs||{}),quoted:!1},{key:"outputs",value:Np(n.outputs||{}),quoted:!1}])))):Gt}function w_(t){let e=[],n=!1;for(let r of t){if(!r.inputs&&!r.outputs)e.push(r.directive.type);else{let s=[{key:"directive",value:r.directive.type,quoted:!1}];if(r.inputs){let i=rm(r.inputs);i&&s.push({key:"inputs",value:i,quoted:!1})}if(r.outputs){let i=rm(r.outputs);i&&s.push({key:"outputs",value:i,quoted:!1})}e.push(Et(s))}r.isForwardReference&&(n=!0)}return n?new Kt([],[new Pe(pe(e))],X):pe(e)}function rm(t){let e=[];for(let n in t)Object.hasOwn(t,n)&&e.push(S(n),S(t[n]));return e.length>0?pe(e):null}var Ms=class extends Ns{visit(e){e instanceof Ne?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)}visitContentBlock(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(n=>this.visit(e.vars[n])),Object.keys(e.placeholders).forEach(n=>this.visit(e.placeholders[n]))}visitDeferredBlock(e){e.visitAll(this)}visitDeferredTrigger(e){e instanceof dl?this.visit(e.value):e instanceof $r&&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){var n;this.visit(e.expression),this.visitAllTemplateNodes(e.groups),(n=e.exhaustiveCheck)==null||n.visit(this)}visitSwitchBlockCase(e){e.expression&&this.visit(e.expression)}visitSwitchBlockCaseGroup(e){this.visitAllTemplateNodes(e.cases),this.visitAllTemplateNodes(e.children)}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){var n;e.item.visit(this),this.visitAllTemplateNodes(e.contextVariables),this.visit(e.expression),this.visitAllTemplateNodes(e.children),(n=e.empty)==null||n.visit(this)}visitForLoopBlockEmpty(e){this.visitAllTemplateNodes(e.children)}visitIfBlock(e){this.visitAllTemplateNodes(e.branches)}visitIfBlockBranch(e){var n;e.expression&&this.visit(e.expression),(n=e.expressionAlias)==null||n.visit(this),this.visitAllTemplateNodes(e.children)}visitBoundaryBlock(e){this.visitAllTemplateNodes(e.children),this.visitAllTemplateNodes(e.errorBlocks)}visitBoundaryErrorBlock(e){this.visitAllTemplateNodes(e.contextVariables),e.expression&&this.visit(e.expression),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 n of e)this.visit(n)}},lr=class t{constructor(e){l(this,"forwardMap");l(this,"reverseMap");this.forwardMap=e,this.reverseMap=T_(e)}static empty(){return new t(new Map)}static fromMappedObject(e){let n=new Map;for(let r of Object.keys(e)){let s=e[r],i;typeof s=="string"?i={classPropertyName:r,bindingPropertyName:s,isSignal:!1}:i=s,n.set(r,i)}return new t(n)}static merge(e,n){let r=new Map(e.forwardMap.entries());for(let[s,i]of n.forwardMap)r.set(s,i);return new t(r)}get classPropertyNames(){return Array.from(this.forwardMap.keys())}get propertyNames(){return Array.from(this.reverseMap.keys())}hasBindingPropertyName(e){return this.reverseMap.has(e)}getByBindingPropertyName(e){return this.reverseMap.has(e)?this.reverseMap.get(e):null}getByClassPropertyName(e){return this.forwardMap.has(e)?this.forwardMap.get(e):null}toDirectMappedObject(){let e={};for(let[n,r]of this.forwardMap)e[n]=r.bindingPropertyName;return e}toJointMappedObject(e){let n={};for(let[r,s]of this.forwardMap)n[r]=e(s);return n}*[Symbol.iterator](){for(let e of this.forwardMap.values())yield e}};function T_(t){let e=new Map;for(let[n,r]of t)e.has(r.bindingPropertyName)||e.set(r.bindingPropertyName,[]),e.get(r.bindingPropertyName).push(r);return e}var Pn;(function(t){t[t.Selector=0]="Selector",t[t.HostDirective=1]="HostDirective"})(Pn||(Pn={}));var ga=class{constructor(e,n=null){l(this,"directiveMatcher");l(this,"foreignComponentMatcher");this.directiveMatcher=e,this.foreignComponentMatcher=n}bind(e){if(!e.template&&!e.host)throw new Error("Empty bound targets are not supported");let n=new Map,r=new Map,s=[],i=new Set,o=new Map,a=new Map,c=new Map,u=new Map,f=new Map,h=new Map,p=new Set,g=new Set,y=[],E=new Map,w=new Map;if(e.template){let A=sm.apply(e.template);C_(A,c),Ap.apply(e.template,this.directiveMatcher,this.foreignComponentMatcher,n,r,s,i,o,a,w),Bl.applyWithScope(e.template,A,u,f,h,p,g,y,E)}return e.host&&(n.set(e.host.node,e.host.directives),Bl.applyWithScope(e.host.node,sm.apply(e.host.node),u,f,h,p,g,y,E)),new bp(e,n,r,s,i,o,a,u,f,h,c,p,g,y,E,w)}},sm=class Ja{constructor(e,n){l(this,"parentScope");l(this,"rootNode");l(this,"namedEntities",new Map);l(this,"elementLikeInScope",new Set);l(this,"childScopes",new Map);l(this,"isDeferred");this.parentScope=e,this.rootNode=n,this.isDeferred=e!==null&&e.isDeferred?!0:n instanceof Rn}static newRootScope(){return new Ja(null,null)}static apply(e){let n=Ja.newRootScope();return n.ingest(e),n}ingest(e){e instanceof Le?(e.variables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof us?(e.expressionAlias!==null&&this.visitVariable(e.expressionAlias),e.children.forEach(n=>n.visit(this))):e instanceof Ur?(this.visitVariable(e.item),e.contextVariables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof Ho?(e.contextVariables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof qo||e instanceof Wo||e instanceof Rn||e instanceof Go||e instanceof Uo||e instanceof Vo||e instanceof bs||e instanceof Ei||e instanceof Ci?e.children.forEach(n=>n.visit(this)):e instanceof jo||e.forEach(n=>n.visit(this))}visitElement(e){this.visitElementLike(e)}visitTemplate(e){this.elementLikeInScope.add(e),e.directives.forEach(n=>n.visit(this)),e.references.forEach(n=>this.visitReference(n)),this.ingestScopedNode(e)}visitVariable(e){this.maybeDeclare(e)}visitReference(e){this.maybeDeclare(e)}visitDeferredBlock(e){var n,r,s;this.ingestScopedNode(e),(n=e.placeholder)==null||n.visit(this),(r=e.loading)==null||r.visit(this),(s=e.error)==null||s.visit(this)}visitDeferredBlockPlaceholder(e){this.ingestScopedNode(e)}visitDeferredBlockError(e){this.ingestScopedNode(e)}visitDeferredBlockLoading(e){this.ingestScopedNode(e)}visitBoundaryBlock(e){this.ingestScopedNode(e),e.errorBlocks.forEach(n=>n.visit(this))}visitBoundaryErrorBlock(e){this.ingestScopedNode(e)}visitSwitchBlock(e){e.groups.forEach(n=>n.visit(this))}visitSwitchBlockCase(e){}visitSwitchBlockCaseGroup(e){this.ingestScopedNode(e)}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){var n;this.ingestScopedNode(e),(n=e.empty)==null||n.visit(this)}visitForLoopBlockEmpty(e){this.ingestScopedNode(e)}visitIfBlock(e){e.branches.forEach(n=>n.visit(this))}visitIfBlockBranch(e){this.ingestScopedNode(e)}visitContent(e){this.ingestScopedNode(e)}visitContentBlock(e){this.ingestScopedNode(e)}visitLetDeclaration(e){this.maybeDeclare(e)}visitComponent(e){this.visitElementLike(e)}visitDirective(e){this.elementLikeInScope.add(e),e.references.forEach(n=>this.visitReference(n))}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundText(e){}visitText(e){}visitTextAttribute(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}visitElementLike(e){e.directives.forEach(n=>n.visit(this)),e.references.forEach(n=>this.visitReference(n)),e.children.forEach(n=>n.visit(this)),this.elementLikeInScope.add(e)}getEnclosingDeferBlocks(){let e=[],n=this;for(;n!==null;)n.rootNode instanceof Rn&&e.push(n.rootNode),n=n.parentScope;return e.reverse()}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 n=this.childScopes.get(e);if(n===void 0)throw new Error(`Assertion error: child scope for ${e} not found`);return n}ingestScopedNode(e){let n=new Ja(this,e);n.ingest(e),this.childScopes.set(e,n)}},Ap=class t{constructor(e,n,r,s,i,o,a,c,u){l(this,"directiveMatcher");l(this,"foreignMatcher");l(this,"directives");l(this,"foreignComponents");l(this,"eagerDirectives");l(this,"missingDirectives");l(this,"bindings");l(this,"references");l(this,"conflictingHostDirectiveBindings");l(this,"isInDeferBlock",!1);this.directiveMatcher=e,this.foreignMatcher=n,this.directives=r,this.foreignComponents=s,this.eagerDirectives=i,this.missingDirectives=o,this.bindings=a,this.references=c,this.conflictingHostDirectiveBindings=u}static apply(e,n,r,s,i,o,a,c,u,f){new t(n,r,s,i,o,a,c,u,f).ingest(e)}ingest(e){e.forEach(n=>n.visit(this))}visitElement(e){this.visitElementOrTemplate(e)}visitTemplate(e){this.visitElementOrTemplate(e)}visitDeferredBlock(e){var r,s,i;let n=this.isInDeferBlock;this.isInDeferBlock=!0,e.children.forEach(o=>o.visit(this)),this.isInDeferBlock=n,(r=e.placeholder)==null||r.visit(this),(s=e.loading)==null||s.visit(this),(i=e.error)==null||i.visit(this)}visitDeferredBlockPlaceholder(e){e.children.forEach(n=>n.visit(this))}visitDeferredBlockError(e){e.children.forEach(n=>n.visit(this))}visitDeferredBlockLoading(e){e.children.forEach(n=>n.visit(this))}visitBoundaryBlock(e){e.children.forEach(n=>n.visit(this)),e.errorBlocks.forEach(n=>n.visit(this))}visitBoundaryErrorBlock(e){e.children.forEach(n=>n.visit(this))}visitSwitchBlock(e){e.groups.forEach(n=>n.visit(this))}visitSwitchBlockCase(e){}visitSwitchBlockCaseGroup(e){e.children.forEach(n=>n.visit(this))}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){var n;e.item.visit(this),e.contextVariables.forEach(r=>r.visit(this)),e.children.forEach(r=>r.visit(this)),(n=e.empty)==null||n.visit(this)}visitForLoopBlockEmpty(e){e.children.forEach(n=>n.visit(this))}visitIfBlock(e){e.branches.forEach(n=>n.visit(this))}visitIfBlockBranch(e){var n;(n=e.expressionAlias)==null||n.visit(this),e.children.forEach(r=>r.visit(this))}visitContent(e){e.children.forEach(n=>n.visit(this))}visitContentBlock(e){e.children.forEach(n=>n.visit(this))}visitComponent(e){if(this.directiveMatcher instanceof br){let n=this.directiveMatcher.match(e.componentName);n.length>0?this.trackSelectorlessMatchesAndDirectives(e,n):this.missingDirectives.add(e.componentName)}e.directives.forEach(n=>n.visit(this)),e.children.forEach(n=>n.visit(this))}visitDirective(e){if(this.directiveMatcher instanceof br){let n=this.directiveMatcher.match(e.name);n.length>0?this.trackSelectorlessMatchesAndDirectives(e,n):this.missingDirectives.add(e.name)}}visitElementOrTemplate(e){let n=[];if(this.directiveMatcher instanceof li){let r=iT(e);this.directiveMatcher.match(r,(s,i)=>n.push(...i)),this.trackSelectorBasedBindingsAndDirectives(e,n)}else e.references.forEach(r=>{r.value.trim()===""&&this.references.set(r,e)});if(this.foreignMatcher&&e instanceof Tt){let r=this.foreignMatcher.match(e.name);if(r.length>0){if(n.length>0)throw new Error(`Conflict: Element '${e.name}' matches both an Angular directive and a foreign component.`);this.foreignComponents.set(e,r[0])}}e.directives.forEach(r=>r.visit(this)),e.children.forEach(r=>r.visit(this))}trackMatchedDirectives(e,n){if(n.length>0){let r=this.dedupeAndMergeDirectives(e,n);this.directives.set(e,r),this.isInDeferBlock||this.eagerDirectives.push(...r)}}dedupeAndMergeDirectives(e,n){if(n.length===0||n.every(o=>o.matchSource===Pn.Selector))return n;let r=new Set,s=new Map,i=new Map;for(let o of n)o.matchSource===Pn.Selector?r.add(o.ref.key):(s.has(o.ref.key)||s.set(o.ref.key,[]),s.get(o.ref.key).push(o));for(let[o,a]of s.entries()){if(r.has(o))continue;if(a.length===1){i.set(o,a[0]);continue}let c={},u={};for(let f of a)this.mergeMapping(e,f,"input",c,f.inputs),this.mergeMapping(e,f,"output",u,f.outputs);i.set(o,de(C({},a[0]),{inputs:lr.fromMappedObject(c),outputs:lr.fromMappedObject(u)}))}return n.reduce((o,a)=>(a.matchSource===Pn.Selector?o.push(a):i.has(a.ref.key)&&(o.push(i.get(a.ref.key)),i.delete(a.ref.key)),o),[])}mergeMapping(e,n,r,s,i){for(let o of i){let a=s[o.classPropertyName];if(!a){s[o.classPropertyName]=o;continue}if(a.bindingPropertyName===o.bindingPropertyName&&a.classPropertyName===o.classPropertyName&&a.isSignal===o.isSignal)continue;this.conflictingHostDirectiveBindings.has(e)||this.conflictingHostDirectiveBindings.set(e,[]);let c=this.conflictingHostDirectiveBindings.get(e),u=c.find(f=>f.directive.ref.key===n.ref.key&&f.kind===r&&f.classPropertyName===o.classPropertyName);u||(u={directive:n,kind:r,classPropertyName:a.classPropertyName,conflictingAliases:new Set([a.bindingPropertyName])},c.push(u)),u.conflictingAliases.add(o.bindingPropertyName)}}trackSelectorlessMatchesAndDirectives(e,n){if(n.length===0)return;this.trackMatchedDirectives(e,n);let r=(s,i,o)=>{s[o].hasBindingPropertyName(i.name)&&this.bindings.set(i,s)};for(let s of n)e.inputs.forEach(i=>r(s,i,"inputs")),e.attributes.forEach(i=>r(s,i,"inputs")),e.outputs.forEach(i=>r(s,i,"outputs"));e.references.forEach(s=>this.references.set(s,{directive:n[0],node:e}))}trackSelectorBasedBindingsAndDirectives(e,n){this.trackMatchedDirectives(e,n),e.references.forEach(s=>{let i=null;if(s.value.trim()==="")i=n.find(o=>o.isComponent)||null;else if(i=n.find(o=>o.exportAs!==null&&o.exportAs.some(a=>a===s.value))||null,i===null)return;i!==null?this.references.set(s,{directive:i,node:e}):this.references.set(s,e)});let r=(s,i)=>{let o=n.find(c=>c[i].hasBindingPropertyName(s.name)),a=o!==void 0?o:e;this.bindings.set(s,a)};e.inputs.forEach(s=>r(s,"inputs")),e.attributes.forEach(s=>r(s,"inputs")),e instanceof Le&&e.templateAttrs.forEach(s=>r(s,"inputs")),e.outputs.forEach(s=>r(s,"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){}},Bl=class t extends Ms{constructor(n,r,s,i,o,a,c,u,f,h){super();l(this,"bindings");l(this,"symbols");l(this,"usedPipes");l(this,"eagerPipes");l(this,"deferBlocks");l(this,"nestingLevel");l(this,"scope");l(this,"rootNode");l(this,"level");l(this,"pipes");l(this,"visitNode",n=>n.visit(this));this.bindings=n,this.symbols=r,this.usedPipes=s,this.eagerPipes=i,this.deferBlocks=o,this.nestingLevel=a,this.scope=c,this.rootNode=u,this.level=f,this.pipes=h}static applyWithScope(n,r,s,i,o,a,c,u,f){let h=n instanceof Le?n:null;new t(s,i,a,c,u,o,r,h,0,f).ingest(n)}ingest(n){var r,s;if(n instanceof Le)n.variables.forEach(this.visitNode),n.children.forEach(this.visitNode),this.nestingLevel.set(n,this.level);else if(n instanceof us)n.expressionAlias!==null&&this.visitNode(n.expressionAlias),n.children.forEach(this.visitNode),this.nestingLevel.set(n,this.level);else if(n instanceof Ur)this.visitNode(n.item),n.contextVariables.forEach(i=>this.visitNode(i)),(r=n.trackBy)==null||r.visit(this),n.children.forEach(this.visitNode),this.nestingLevel.set(n,this.level);else if(n instanceof Rn){if(this.scope.rootNode!==n)throw new Error(`Assertion error: resolved incorrect scope for deferred block ${n}`);this.deferBlocks.push([n,this.scope]),n.children.forEach(i=>i.visit(this)),this.nestingLevel.set(n,this.level)}else n instanceof Ho?(n.contextVariables.forEach(i=>this.visitNode(i)),(s=n.expression)==null||s.visit(this),n.children.forEach(i=>i.visit(this)),this.nestingLevel.set(n,this.level)):n instanceof qo||n instanceof Wo||n instanceof Go||n instanceof Uo||n instanceof Vo||n instanceof bs||n instanceof Ei||n instanceof Ci?(n.children.forEach(i=>i.visit(this)),this.nestingLevel.set(n,this.level)):n instanceof jo?this.nestingLevel.set(n,0):n.forEach(this.visitNode)}visitTemplate(n){n.inputs.forEach(this.visitNode),n.outputs.forEach(this.visitNode),n.directives.forEach(this.visitNode),n.templateAttrs.forEach(this.visitNode),n.references.forEach(this.visitNode),this.ingestScopedNode(n)}visitVariable(n){this.rootNode!==null&&this.symbols.set(n,this.rootNode)}visitReference(n){this.rootNode!==null&&this.symbols.set(n,this.rootNode)}visitDeferredBlock(n){var r,s,i,o;this.ingestScopedNode(n),(r=n.triggers.when)==null||r.value.visit(this),(s=n.prefetchTriggers.when)==null||s.value.visit(this),(i=n.hydrateTriggers.when)==null||i.value.visit(this),(o=n.hydrateTriggers.never)==null||o.visit(this),n.placeholder&&this.visitNode(n.placeholder),n.loading&&this.visitNode(n.loading),n.error&&this.visitNode(n.error)}visitDeferredBlockPlaceholder(n){this.ingestScopedNode(n)}visitDeferredBlockError(n){this.ingestScopedNode(n)}visitDeferredBlockLoading(n){this.ingestScopedNode(n)}visitBoundaryBlock(n){this.ingestScopedNode(n),n.errorBlocks.forEach(r=>r.visit(this))}visitBoundaryErrorBlock(n){this.ingestScopedNode(n)}visitSwitchBlockCase(n){var r;(r=n.expression)==null||r.visit(this)}visitSwitchBlockCaseGroup(n){n.cases.forEach(r=>r.visit(this)),this.ingestScopedNode(n)}visitSwitchExhaustiveCheck(n){var r;(r=n.expression)==null||r.visit(this)}visitForLoopBlock(n){var r;n.expression.visit(this),this.ingestScopedNode(n),(r=n.empty)==null||r.visit(this)}visitForLoopBlockEmpty(n){this.ingestScopedNode(n)}visitIfBlockBranch(n){var r;(r=n.expression)==null||r.visit(this),this.ingestScopedNode(n)}visitContent(n){this.ingestScopedNode(n)}visitContentBlock(n){this.ingestScopedNode(n)}visitLetDeclaration(n){super.visitLetDeclaration(n),this.rootNode!==null&&this.symbols.set(n,this.rootNode)}visitPipe(n,r){return this.usedPipes.add(n.name),this.scope.isDeferred||this.eagerPipes.add(n.name),this.pipes.set(n,this.scope.getEnclosingDeferBlocks()),super.visitPipe(n,r)}visitPropertyRead(n,r){return this.maybeMap(n,n.name),super.visitPropertyRead(n,r)}visitSafePropertyRead(n,r){return this.maybeMap(n,n.name),super.visitSafePropertyRead(n,r)}ingestScopedNode(n){let r=this.scope.getChildScope(n);new t(this.bindings,this.symbols,this.usedPipes,this.eagerPipes,this.deferBlocks,this.nestingLevel,r,n,this.level+1,this.pipes).ingest(n)}maybeMap(n,r){if(!(n.receiver instanceof pn))return;let s=this.scope.lookup(r);s!==null&&this.bindings.set(n,s)}},bp=class{constructor(e,n,r,s,i,o,a,c,u,f,h,p,g,y,E,w){l(this,"target");l(this,"directives");l(this,"foreignComponents");l(this,"eagerDirectives");l(this,"missingDirectives");l(this,"bindings");l(this,"references");l(this,"exprTargets");l(this,"symbols");l(this,"nestingLevel");l(this,"scopedNodeEntities");l(this,"usedPipes");l(this,"eagerPipes");l(this,"pipes");l(this,"conflictingHostDirectiveBindings");l(this,"deferredBlocks");l(this,"deferredScopes");this.target=e,this.directives=n,this.foreignComponents=r,this.eagerDirectives=s,this.missingDirectives=i,this.bindings=o,this.references=a,this.exprTargets=c,this.symbols=u,this.nestingLevel=f,this.scopedNodeEntities=h,this.usedPipes=p,this.eagerPipes=g,this.pipes=E,this.conflictingHostDirectiveBindings=w,this.deferredBlocks=y.map(A=>A[0]),this.deferredScopes=new Map(y)}getEntitiesInScope(e){var n;return(n=this.scopedNodeEntities.get(e))!=null?n:new Set}getDirectivesOfNode(e){return this.directives.get(e)||null}getForeignComponent(e){return this.foreignComponents.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(n=>n.forEach(r=>e.add(r))),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,n){if(!(n instanceof As)&&!(n instanceof $r)&&!(n instanceof Is))return null;let r=n.reference;if(r===null){let i=null;if(e.placeholder!==null){for(let o of e.placeholder.children)if(!(o instanceof ss)){if(i!==null)return null;o instanceof Tt&&(i=o)}}return i}let s=this.findEntityInScope(e,r);if(s instanceof Ds&&this.getDefinitionNodeOfSymbol(s)!==e){let i=this.getReferenceTarget(s);if(i!==null)return this.referenceTargetToElement(i)}if(e.placeholder!==null){let i=this.findEntityInScope(e.placeholder,r),o=i instanceof Ds?this.getReferenceTarget(i):null;if(o!==null)return this.referenceTargetToElement(o)}return null}isDeferred(e){return this.getDeferBlocksOfNode(e).length>0}getDeferBlocksOfNode(e){let n=[];for(let r of this.deferredBlocks){if(!this.deferredScopes.has(r))continue;let s=[this.deferredScopes.get(r)];for(;s.length>0;){let i=s.pop();if(i.elementLikeInScope.has(e)){n.push(r);break}s.push(...i.childScopes.values())}}return n}getDeferBlocksOfPipe(e){var n;return(n=this.pipes.get(e))!=null?n:[]}referencedDirectiveExists(e){return!this.missingDirectives.has(e)}getConflictingHostDirectiveBindings(e){return this.conflictingHostDirectiveBindings.get(e)||null}findEntityInScope(e,n){let r=this.getEntitiesInScope(e);for(let s of r)if(s.name===n)return s;return null}referenceTargetToElement(e){return e instanceof Tt?e:e instanceof Le||e.node instanceof ps||e.node instanceof Wl||e.node instanceof jo?null:this.referenceTargetToElement(e.node)}};function C_(t,e){let n=new Map;function r(i){if(n.has(i.rootNode))return n.get(i.rootNode);let o=i.namedEntities,a;return i.parentScope!==null?a=new Map([...r(i.parentScope),...o]):a=new Map(o),n.set(i.rootNode,a),a}let s=[t];for(;s.length>0;){let i=s.pop();for(let o of i.childScopes.values())s.push(o);r(i)}for(let[i,o]of n)e.set(i,new Set(o.values()))}var Dp=class{};function kp(t,e){let n=new sr;return n.set("token",t.type.value),n.set("factory",t.factory===void 0?bu(t.type.value,t.type.value,e):wt([],t.factory.callFn([]),X)),t.autoProvided===!1&&n.set("autoProvided",S(!1)),{expression:R(m.defineService).callFn([n.toLiteralMap()],void 0,!0),type:ag(),statements:[]}}var _p=class{constructor(e=new ku){l(this,"jitEvaluator");l(this,"FactoryTarget",yt);l(this,"ResourceLoader",Dp);l(this,"elementSchemaRegistry",new en);this.jitEvaluator=e}compilePipe(e,n,r){let s={name:r.name,type:Ue(r.type),typeArgumentCount:0,pipeName:r.pipeName,pure:r.pure,isStandalone:r.isStandalone},i=Lu(s);return this.jitExpression(i.expression,e,n,[])}compilePipeDeclaration(e,n,r){let s=V_(r),i=Lu(s);return this.jitExpression(i.expression,e,n,[])}compileInjectable(e,n,r){var o;let{expression:s,statements:i}=Au({name:r.name,type:Ue(r.type),typeArgumentCount:r.typeArgumentCount,providedIn:cm(r.providedIn),useClass:Ws(r,"useClass"),useFactory:za(r,"useFactory"),useValue:Ws(r,"useValue"),useExisting:Ws(r,"useExisting"),deps:(o=r.deps)==null?void 0:o.map(gy)},!0);return this.jitExpression(s,e,n,i)}compileInjectableDeclaration(e,n,r){var o;let{expression:s,statements:i}=Au({name:r.type.name,type:Ue(r.type),typeArgumentCount:0,providedIn:cm(r.providedIn),useClass:Ws(r,"useClass"),useFactory:za(r,"useFactory"),useValue:Ws(r,"useValue"),useExisting:Ws(r,"useExisting"),deps:(o=r.deps)==null?void 0:o.map(um)},!0);return this.jitExpression(s,e,n,i)}compileInjector(e,n,r){let s={type:Ue(r.type),providers:r.providers&&r.providers.length>0?new z(r.providers):null,imports:r.imports.map(o=>new z(o))},i=Ru(s);return this.jitExpression(i.expression,e,n,[])}compileInjectorDeclaration(e,n,r){let s=G_(r),i=Ru(s);return this.jitExpression(i.expression,e,n,[])}compileNgModule(e,n,r){let s={kind:$t.Global,type:Ue(r.type),bootstrap:r.bootstrap.map(Ue),declarations:r.declarations.map(Ue),publicDeclarationTypes:null,imports:r.imports.map(Ue),includeImportTypes:!0,exports:r.exports.map(Ue),selectorScopeMode:Ni.Inline,containsForwardDecls:!1,schemas:r.schemas?r.schemas.map(Ue):null,id:r.id?new z(r.id):null},i=lg(s);return this.jitExpression(i.expression,e,n,[])}compileNgModuleDeclaration(e,n,r){let s=pT(r);return this.jitExpression(s,e,n,[])}compileDirective(e,n,r){let s=am(r);return this.compileDirectiveFromMeta(e,n,s)}compileDirectiveDeclaration(e,n,r){let s=this.createParseSourceSpan("Directive",r.type.name,n),i=dy(r,s);return this.compileDirectiveFromMeta(e,n,i)}compileService(e,n,r){let{expression:s,statements:i}=kp({type:Ue(r.type),autoProvided:r.autoProvided,factory:r.factory?za(r,"factory"):void 0},!0);return this.jitExpression(s,e,n,i)}compileServiceDeclaration(e,n,r){let{expression:s,statements:i}=kp({type:Ue(r.type),autoProvided:r.autoProvided,factory:r.factory?za(r,"factory"):void 0},!0);return this.jitExpression(s,e,n,i)}compileDirectiveFromMeta(e,n,r){let s=new fi,i=_i(),o=ay(r,s,i);return this.jitExpression(o.expression,e,n,s.statements)}compileComponent(e,n,r){var c;let{template:s,defer:i}=my(r.template,r.name,n,r.preserveWhitespaces,void 0),o=de(C(C({},r),am(r)),{selector:r.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,declarations:r.declarations.map(A_),declarationListEmitMode:0,defer:i,styles:[...r.styles,...s.styles],encapsulation:r.encapsulation,changeDetection:(c=r.changeDetection)!=null?c:null,animations:r.animations!=null?new z(r.animations):null,viewProviders:r.viewProviders!=null?new z(r.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null,foreignImports:null,enableTemplateSourceLocations:!1}),a=`ng:///${r.name}.js`;return this.compileComponentFromMeta(e,a,o)}compileComponentDeclaration(e,n,r){let s=this.createParseSourceSpan("Component",r.type.name,n),i=I_(r,s,n);return this.compileComponentFromMeta(e,n,i)}compileComponentFromMeta(e,n,r){let s=new fi,i=_i(),o=ly(r,s,i);return this.jitExpression(o.expression,e,n,s.statements)}compileFactory(e,n,r){let s=wr({name:r.name,type:Ue(r.type),typeArgumentCount:r.typeArgumentCount,deps:__(r.deps),target:r.target});return this.jitExpression(s.expression,e,n,s.statements)}compileFactoryDeclaration(e,n,r){let s=wr({name:r.type.name,type:Ue(r.type),typeArgumentCount:0,deps:Array.isArray(r.deps)?r.deps.map(um):r.deps,target:r.target});return this.jitExpression(s.expression,e,n,s.statements)}createParseSourceSpan(e,n,r){return Uw(e,n,r)}jitExpression(e,n,r,s){let i=[...s,new Ze("$def",e,void 0,Fe.Exported)];return this.jitEvaluator.evaluateStatements(r,i,new Pu(n),!0).$def}};function im(t){return de(C({},t),{isSignal:t.isSignal,predicate:fy(t.predicate),read:t.read?new z(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly})}function om(t){var e,n,r,s;return{propertyName:t.propertyName,first:(e=t.first)!=null?e:!1,predicate:fy(t.predicate),descendants:(n=t.descendants)!=null?n:!1,read:t.read?new z(t.read):null,static:(r=t.static)!=null?r:!1,emitDistinctChangesOnly:(s=t.emitDistinctChangesOnly)!=null?s:!0,isSignal:!!t.isSignal}}function fy(t){return Array.isArray(t)?t:Os(new z(t),1)}function am(t){var a;let e=U_(t.inputs||[]),n=Zc(t.outputs||[]),r=t.propMetadata,s={},i={};for(let c in r)Object.hasOwn(r,c)&&r[c].forEach(u=>{O_(u)?s[c]={bindingPropertyName:u.alias||c,classPropertyName:c,required:u.required||!1,isSignal:!!u.isSignal,transformFunction:u.transform!=null?new z(u.transform):null}:F_(u)&&(i[c]=u.alias||c)});let o=(a=t.hostDirectives)!=null&&a.length?t.hostDirectives.map(c=>typeof c=="function"?{directive:Ue(c),inputs:null,outputs:null,isForwardReference:!1}:{directive:Ue(c.directive),isForwardReference:!1,inputs:c.inputs?Zc(c.inputs):null,outputs:c.outputs?Zc(c.outputs):null}):null;return de(C({},t),{typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:Ue(t.type),deps:null,host:C({},P_(t.propMetadata,t.typeSourceSpan,t.host)),inputs:C(C({},e),s),outputs:C(C({},n),i),queries:t.queries.map(im),providers:t.providers!=null?new z(t.providers):null,viewQueries:t.viewQueries.map(im),hostDirectives:o})}function dy(t,e){var r,s,i,o,a,c,u,f,h,p,g,y;let n=(r=t.hostDirectives)!=null&&r.length?t.hostDirectives.map(E=>({directive:Ue(E.directive),isForwardReference:!1,inputs:E.inputs?lm(E.inputs):null,outputs:E.outputs?lm(E.outputs):null})):null;return{name:t.type.name,type:Ue(t.type),typeSourceSpan:e,selector:(s=t.selector)!=null?s:null,inputs:t.inputs?B_(t.inputs):{},outputs:(i=t.outputs)!=null?i:{},host:x_(t.host),queries:((o=t.queries)!=null?o:[]).map(om),viewQueries:((a=t.viewQueries)!=null?a:[]).map(om),providers:t.providers!==void 0?new z(t.providers):null,exportAs:(c=t.exportAs)!=null?c:null,usesInheritance:(u=t.usesInheritance)!=null?u:!1,controlCreate:(f=t.controlCreate)!=null?f:null,lifecycle:{usesOnChanges:(h=t.usesOnChanges)!=null?h:!1},deps:null,typeArgumentCount:0,isStandalone:(p=t.isStandalone)!=null?p:Um(t.version),isSignal:(g=t.isSignal)!=null?g:!1,hostDirectives:n,legacyOptionalChaining:(y=t.legacyOptionalChaining)!=null?y:Wp}}function x_(t={}){var e,n,r;return{attributes:N_((e=t.attributes)!=null?e:{}),listeners:(n=t.listeners)!=null?n:{},properties:(r=t.properties)!=null?r:{},specialAttributes:{classAttr:t.classAttribute,styleAttr:t.styleAttribute}}}function lm(t){let e=null;for(let n=1;n<t.length;n+=2)e=e||{},e[t[n-1]]=t[n];return e}function N_(t){let e={};for(let n of Object.keys(t))e[n]=new z(t[n]);return e}function I_(t,e,n){var a,c,u,f,h;let{template:r,defer:s}=my(t.template,t.type.name,n,(a=t.preserveWhitespaces)!=null?a:!1,t.deferBlockDependencies),i=[];if(t.dependencies)for(let p of t.dependencies)switch(p.kind){case"directive":case"component":i.push(Jc(p));break;case"pipe":i.push(D_(p));break;case"ngmodule":i.push(k_(p));break}else(t.components||t.directives||t.pipes)&&(t.components&&i.push(...t.components.map(p=>Jc(p,!0))),t.directives&&i.push(...t.directives.map(p=>Jc(p))),t.pipes&&i.push(...b_(t.pipes)));let o=i.some(({kind:p})=>p===ir.Directive||p===ir.NgModule);return de(C({},dy(t,e)),{template:r,styles:(c=t.styles)!=null?c:[],declarations:i,viewProviders:t.viewProviders!==void 0?new z(t.viewProviders):null,animations:t.animations!==void 0?new z(t.animations):null,defer:s,changeDetection:(u=t.changeDetection)!=null?u:Za.OnPush,encapsulation:(f=t.encapsulation)!=null?f:An.Emulated,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null,hasDirectiveDependencies:o,legacyOptionalChaining:(h=t.legacyOptionalChaining)!=null?h:Wp,foreignImports:null,enableTemplateSourceLocations:!1})}function A_(t){return de(C({},t),{type:new z(t.type)})}function Jc(t,e=null){var n,r,s;return{kind:ir.Directive,isComponent:e||t.kind==="component",selector:t.selector,type:new z(t.type),inputs:(n=t.inputs)!=null?n:[],outputs:(r=t.outputs)!=null?r:[],exportAs:(s=t.exportAs)!=null?s:null}}function b_(t){return t?Object.keys(t).map(e=>({kind:ir.Pipe,name:e,type:new z(t[e])})):[]}function D_(t){return{kind:ir.Pipe,name:t.name,type:new z(t.type)}}function k_(t){return{kind:ir.NgModule,type:new z(t.type)}}function my(t,e,n,r,s){let i=ry(t,n,{preserveWhitespaces:r});if(i.errors!==null){let c=i.errors.map(u=>u.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${c}`)}let a=new ga(null).bind({template:i.nodes});return{template:i,defer:R_(a,s)}}function Ws(t,e){if(Object.hasOwn(t,e))return Os(new z(t[e]),0)}function za(t,e){if(Object.hasOwn(t,e))return new z(t[e])}function cm(t){let e=typeof t=="function"?new z(t):new Be(t!=null?t:null);return Os(e,0)}function __(t){return t==null?null:t.map(gy)}function gy(t){let e=t.attribute!=null,n=t.token===null?null:new z(t.token),r=e?new z(t.attribute):n;return yy(r,e,t.host,t.optional,t.self,t.skipSelf)}function um(t){var r,s,i,o,a;let e=(r=t.attribute)!=null?r:!1,n=t.token===null?null:new z(t.token);return yy(n,e,(s=t.host)!=null?s:!1,(i=t.optional)!=null?i:!1,(o=t.self)!=null?o:!1,(a=t.skipSelf)!=null?a:!1)}function yy(t,e,n,r,s,i){let o=e?S("unknown"):null;return{token:t,attributeNameType:o,host:n,optional:r,self:s,skipSelf:i}}function R_(t,e){let n=t.getDeferBlocks(),r=new Map;for(let s=0;s<n.length;s++){let i=e==null?void 0:e[s];r.set(n[s],i?new z(i):null)}return{mode:0,blocks:r}}function P_(t,e,n){let r=uy(n||{});for(let i in t)Object.hasOwn(t,i)&&t[i].forEach(o=>{L_(o)?r.properties[o.hostPropertyName||i]=ng("this",i):M_(o)&&(r.listeners[o.eventName||i]=`${i}(${(o.args||[]).join(",")})`)});let s=py(r,e);if(s.length)throw new Error(s.map(i=>i.msg).join(`
`));return r}function L_(t){return t.ngMetadataName==="HostBinding"}function M_(t){return t.ngMetadataName==="HostListener"}function O_(t){return t.ngMetadataName==="Input"}function F_(t){return t.ngMetadataName==="Output"}function B_(t){return Object.keys(t).reduce((e,n)=>{let r=t[n];return typeof r=="string"||Array.isArray(r)?e[n]=$_(r):e[n]={bindingPropertyName:r.publicName,classPropertyName:n,transformFunction:r.transformFunction!==null?new z(r.transformFunction):null,required:r.isRequired,isSignal:r.isSignal},e},{})}function $_(t){return typeof t=="string"?{bindingPropertyName:t,classPropertyName:t,transformFunction:null,required:!1,isSignal:!1}:{bindingPropertyName:t[0],classPropertyName:t[1],transformFunction:t[2]?new z(t[2]):null,required:!1,isSignal:!1}}function U_(t){return t.reduce((e,n)=>{if(typeof n=="string"){let[r,s]=vy(n);e[s]={bindingPropertyName:r,classPropertyName:s,required:!1,isSignal:!1,transformFunction:null}}else e[n.name]={bindingPropertyName:n.alias||n.name,classPropertyName:n.name,required:n.required||!1,isSignal:!1,transformFunction:n.transform!=null?new z(n.transform):null};return e},{})}function Zc(t){return t.reduce((e,n)=>{let[r,s]=vy(n);return e[s]=r,e},{})}function vy(t){let[e,n]=t.split(":",2).map(r=>r.trim());return[n!=null?n:e,e]}function V_(t){var e,n;return{name:t.type.name,type:Ue(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:(e=t.pure)!=null?e:!0,isStandalone:(n=t.isStandalone)!=null?n:Um(t.version)}}function G_(t){return{name:t.type.name,type:Ue(t.type),providers:t.providers!==void 0&&t.providers.length>0?new z(t.providers):null,imports:t.imports!==void 0?t.imports.map(e=>new z(e)):[]}}function H_(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new _p}var pm;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(pm||(pm={}));var Rp=class{constructor(){l(this,"closedByParent",!1);l(this,"implicitNamespacePrefix",null);l(this,"isVoid",!1);l(this,"ignoreFirstLf",!1);l(this,"canSelfClose",!0);l(this,"preventNamespaceInheritance",!1)}requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return yn.PARSABLE_DATA}},A1=new Rp;var Bi=new ko("22.2.2");var $l;(function(t){t.DIAGNOSTIC="D",t.EXPRESSION_TYPE_IDENTIFIER="T"})($l||($l={}));var ya;(function(t){t.DIRECTIVE="DIR",t.HOST_DIRECTIVE="HOSTDIR",t.COMPONENT_COMPLETION="COMPCOMP",t.EVENT_PARAMETER="EP",t.VARIABLE_AS_EXPRESSION="VAE"})(ya||(ya={}));var Pp;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning"})(Pp||(Pp={}));var Ul;(function(t){t[t.UseEmitter=0]="UseEmitter",t[t.CopyClassNodes=1]="CopyClassNodes",t[t.FallbackToAny=2]="FallbackToAny"})(Ul||(Ul={}));var wo=class wo{static veWillInferAnyFor(e){let n=wo.SINGLETON;return e instanceof wn?e.visit(n):e.receiver.visit(n)}visitUnary(e){return e.expr.visit(this)}visitBinary(e){return e.left.visit(this)||e.right.visit(this)}visitChain(){return!1}visitConditional(e){return e.condition.visit(this)||e.trueExp.visit(this)||e.falseExp.visit(this)}visitCall(){return!0}visitSafeCall(){return!1}visitImplicitReceiver(){return!1}visitThisReceiver(){return!1}visitInterpolation(e){return e.expressions.some(n=>n.visit(this))}visitKeyedRead(){return!1}visitLiteralArray(){return!0}visitLiteralMap(){return!0}visitLiteralPrimitive(){return!1}visitPipe(){return!0}visitPrefixNot(e){return e.expression.visit(this)}visitTypeofExpression(e){return e.expression.visit(this)}visitVoidExpression(e){return e.expression.visit(this)}visitNonNullAssert(e){return e.expression.visit(this)}visitPropertyRead(){return!1}visitSafePropertyRead(){return!1}visitSafeKeyedRead(){return!1}visitTemplateLiteral(){return!1}visitTemplateLiteralElement(){return!1}visitTaggedTemplateLiteral(){return!1}visitParenthesizedExpression(e){return e.expression.visit(this)}visitRegularExpressionLiteral(){return!1}visitSpreadElement(e){return e.expression.visit(this)}visitArrowFunction(e,n){return!1}};l(wo,"SINGLETON",new wo);var hm=wo;var q_=["errors","dirty","disabled","disabledReasons","hidden","invalid","name","pending","readonly","touched","max","maxLength","min","minLength","pattern","required"],b1=new Set([...q_,"value","checked"]);var D1=new en;var k1=new en;var Vl;(function(t){t[t.Property=0]="Property",t[t.Method=1]="Method",t[t.Element=2]="Element",t[t.Template=3]="Template",t[t.Attribute=4]="Attribute",t[t.Reference=5]="Reference",t[t.Variable=6]="Variable",t[t.LetDeclaration=7]="LetDeclaration",t[t.Component=8]="Component",t[t.Directive=9]="Directive",t[t.Input=10]="Input",t[t.Output=11]="Output",t[t.Pipe=12]="Pipe"})(Vl||(Vl={}));H_(po);var L1=(0,Ty.createRequire)(M);N();var dE=require("module");N();var hE=require("module");N();var Qy=require("module");N();var By=require("module");N();var Cy=require("module");var B1=(0,Cy.createRequire)(M);var $1=new Map([[Ln.Minus,"-"],[Ln.Plus,"+"]]),U1=new Map([[T.And,"&&"],[T.Bigger,">"],[T.BiggerEquals,">="],[T.BitwiseAnd,"&"],[T.BitwiseOr,"|"],[T.Divide,"/"],[T.Equals,"=="],[T.Identical,"==="],[T.Lower,"<"],[T.LowerEquals,"<="],[T.Minus,"-"],[T.Modulo,"%"],[T.Multiply,"*"],[T.NotEquals,"!="],[T.NotIdentical,"!=="],[T.Or,"||"],[T.Plus,"+"],[T.NullishCoalesce,"??"],[T.Exponentiation,"**"],[T.In,"in"],[T.InstanceOf,"instanceof"],[T.Assign,"="],[T.AdditionAssignment,"+="],[T.SubtractionAssignment,"-="],[T.MultiplicationAssignment,"*="],[T.DivisionAssignment,"/="],[T.RemainderAssignment,"%="],[T.ExponentiationAssignment,"**="],[T.AndAssignment,"&&="],[T.OrAssignment,"||="],[T.NullishCoalesceAssignment,"??="]]);N();var xy=require("module");var z_=I(require("typescript"),1),K_=I(require("typescript"),1);var q1=(0,xy.createRequire)(M),Ny=class{exists(t){throw ye()}readFile(t){throw ye()}readFileBuffer(t){throw ye()}writeFile(t,e,n){throw ye()}removeFile(t){throw ye()}symlink(t,e){throw ye()}readdir(t){throw ye()}lstat(t){throw ye()}stat(t){throw ye()}pwd(){throw ye()}chdir(t){throw ye()}extname(t){throw ye()}copyFile(t,e){throw ye()}moveFile(t,e){throw ye()}ensureDir(t){throw ye()}removeDeep(t){throw ye()}isCaseSensitive(){throw ye()}resolve(...t){throw ye()}dirname(t){throw ye()}join(t,...e){throw ye()}isRoot(t){throw ye()}isRooted(t){throw ye()}relative(t,e){throw ye()}basename(t,e){throw ye()}realpath(t){throw ye()}getDefaultLibLocation(){throw ye()}normalize(t){throw ye()}};function ye(){return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.")}var j_=new Ny;function Iy(t){j_=t}var $i=I(require("typescript"),1),J_=I(require("typescript"),1);var Z_=I(require("typescript"),1),yh=I(require("typescript"),1),xa=I(require("typescript"),1),V=I(require("typescript"),1),De=I(require("typescript"),1),Zl=I(require("typescript"),1);var ec=I(require("typescript"),1),g0=I(require("typescript"),1),y0=I(require("typescript"),1),v0=I(require("typescript"),1),S0=I(require("typescript"),1);var E0=I(require("typescript"),1),w0=I(require("typescript"),1);var be=I(require("typescript"),1),ch=I(require("typescript"),1),hr=I(require("typescript"),1),Hy=I(require("typescript"),1),pr=I(require("typescript"),1),A0=I(require("typescript"),1);var b0=I(require("typescript"),1),D0=I(require("typescript"),1),k0=I(require("typescript"),1);var _0=I(require("typescript"),1);var R0=I(require("typescript"),1),P0=I(require("typescript"),1);var L0=I(require("typescript"),1);var M0=I(require("typescript"),1),O0=I(require("typescript"),1),F0=I(require("typescript"),1);var B0=I(require("typescript"),1),$0=I(require("typescript"),1);var Z1=(0,By.createRequire)(M),B;(function(t){t[t.DECORATOR_ARG_NOT_LITERAL=-1001]="DECORATOR_ARG_NOT_LITERAL",t[t.DECORATOR_ARITY_WRONG=1002]="DECORATOR_ARITY_WRONG",t[t.DECORATOR_NOT_CALLED=1003]="DECORATOR_NOT_CALLED",t[t.DECORATOR_UNEXPECTED=1005]="DECORATOR_UNEXPECTED",t[t.DECORATOR_COLLISION=1006]="DECORATOR_COLLISION",t[t.VALUE_HAS_WRONG_TYPE=1010]="VALUE_HAS_WRONG_TYPE",t[t.VALUE_NOT_LITERAL=1011]="VALUE_NOT_LITERAL",t[t.DUPLICATE_DECORATED_PROPERTIES=1012]="DUPLICATE_DECORATED_PROPERTIES",t[t.INITIALIZER_API_WITH_DISALLOWED_DECORATOR=1050]="INITIALIZER_API_WITH_DISALLOWED_DECORATOR",t[t.INITIALIZER_API_DECORATOR_METADATA_COLLISION=1051]="INITIALIZER_API_DECORATOR_METADATA_COLLISION",t[t.INITIALIZER_API_NO_REQUIRED_FUNCTION=1052]="INITIALIZER_API_NO_REQUIRED_FUNCTION",t[t.INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY=1053]="INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY",t[t.DUPLICATE_BINDING_NAME=1054]="DUPLICATE_BINDING_NAME",t[t.INCORRECTLY_DECLARED_ON_STATIC_MEMBER=1100]="INCORRECTLY_DECLARED_ON_STATIC_MEMBER",t[t.COMPONENT_MISSING_TEMPLATE=2001]="COMPONENT_MISSING_TEMPLATE",t[t.PIPE_MISSING_NAME=2002]="PIPE_MISSING_NAME",t[t.PARAM_MISSING_TOKEN=-2003]="PARAM_MISSING_TOKEN",t[t.DIRECTIVE_MISSING_SELECTOR=2004]="DIRECTIVE_MISSING_SELECTOR",t[t.UNDECORATED_PROVIDER=2005]="UNDECORATED_PROVIDER",t[t.DIRECTIVE_INHERITS_UNDECORATED_CTOR=2006]="DIRECTIVE_INHERITS_UNDECORATED_CTOR",t[t.UNDECORATED_CLASS_USING_ANGULAR_FEATURES=2007]="UNDECORATED_CLASS_USING_ANGULAR_FEATURES",t[t.COMPONENT_RESOURCE_NOT_FOUND=2008]="COMPONENT_RESOURCE_NOT_FOUND",t[t.COMPONENT_INVALID_SHADOW_DOM_SELECTOR=-2009]="COMPONENT_INVALID_SHADOW_DOM_SELECTOR",t[t.COMPONENT_NOT_STANDALONE=2010]="COMPONENT_NOT_STANDALONE",t[t.COMPONENT_IMPORT_NOT_STANDALONE=2011]="COMPONENT_IMPORT_NOT_STANDALONE",t[t.COMPONENT_UNKNOWN_IMPORT=2012]="COMPONENT_UNKNOWN_IMPORT",t[t.HOST_DIRECTIVE_INVALID=2013]="HOST_DIRECTIVE_INVALID",t[t.HOST_DIRECTIVE_NOT_STANDALONE=2014]="HOST_DIRECTIVE_NOT_STANDALONE",t[t.HOST_DIRECTIVE_COMPONENT=2015]="HOST_DIRECTIVE_COMPONENT",t[t.INJECTABLE_INHERITS_INVALID_CONSTRUCTOR=2016]="INJECTABLE_INHERITS_INVALID_CONSTRUCTOR",t[t.HOST_DIRECTIVE_UNDEFINED_BINDING=2017]="HOST_DIRECTIVE_UNDEFINED_BINDING",t[t.HOST_DIRECTIVE_CONFLICTING_ALIAS=2018]="HOST_DIRECTIVE_CONFLICTING_ALIAS",t[t.HOST_DIRECTIVE_MISSING_REQUIRED_BINDING=2019]="HOST_DIRECTIVE_MISSING_REQUIRED_BINDING",t[t.CONFLICTING_INPUT_TRANSFORM=2020]="CONFLICTING_INPUT_TRANSFORM",t[t.COMPONENT_INVALID_STYLE_URLS=2021]="COMPONENT_INVALID_STYLE_URLS",t[t.COMPONENT_UNKNOWN_DEFERRED_IMPORT=2022]="COMPONENT_UNKNOWN_DEFERRED_IMPORT",t[t.NON_STANDALONE_NOT_ALLOWED=2023]="NON_STANDALONE_NOT_ALLOWED",t[t.MISSING_NAMED_TEMPLATE_DEPENDENCY=2024]="MISSING_NAMED_TEMPLATE_DEPENDENCY",t[t.INCORRECT_NAMED_TEMPLATE_DEPENDENCY_TYPE=2025]="INCORRECT_NAMED_TEMPLATE_DEPENDENCY_TYPE",t[t.UNSUPPORTED_SELECTORLESS_COMPONENT_FIELD=2026]="UNSUPPORTED_SELECTORLESS_COMPONENT_FIELD",t[t.COMPONENT_ANIMATIONS_CONFLICT=2027]="COMPONENT_ANIMATIONS_CONFLICT",t[t.SERVICE_CONSTRUCTOR_DI=2028]="SERVICE_CONSTRUCTOR_DI",t[t.SYMBOL_NOT_EXPORTED=3001]="SYMBOL_NOT_EXPORTED",t[t.IMPORT_CYCLE_DETECTED=-3003]="IMPORT_CYCLE_DETECTED",t[t.IMPORT_GENERATION_FAILURE=3004]="IMPORT_GENERATION_FAILURE",t[t.CONFIG_FLAT_MODULE_NO_INDEX=4001]="CONFIG_FLAT_MODULE_NO_INDEX",t[t.CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK=4002]="CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK",t[t.CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES=4003]="CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES",t[t.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL=4004]="CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL",t[t.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK=4005]="CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK",t[t.CONFIG_EMIT_DECLARATION_ONLY_UNSUPPORTED=4006]="CONFIG_EMIT_DECLARATION_ONLY_UNSUPPORTED",t[t.HOST_BINDING_PARSE_ERROR=5001]="HOST_BINDING_PARSE_ERROR",t[t.TEMPLATE_PARSE_ERROR=5002]="TEMPLATE_PARSE_ERROR",t[t.NGMODULE_INVALID_DECLARATION=6001]="NGMODULE_INVALID_DECLARATION",t[t.NGMODULE_INVALID_IMPORT=6002]="NGMODULE_INVALID_IMPORT",t[t.NGMODULE_INVALID_EXPORT=6003]="NGMODULE_INVALID_EXPORT",t[t.NGMODULE_INVALID_REEXPORT=6004]="NGMODULE_INVALID_REEXPORT",t[t.NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC=6005]="NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC",t[t.NGMODULE_REEXPORT_NAME_COLLISION=6006]="NGMODULE_REEXPORT_NAME_COLLISION",t[t.NGMODULE_DECLARATION_NOT_UNIQUE=6007]="NGMODULE_DECLARATION_NOT_UNIQUE",t[t.NGMODULE_DECLARATION_IS_STANDALONE=6008]="NGMODULE_DECLARATION_IS_STANDALONE",t[t.NGMODULE_BOOTSTRAP_IS_STANDALONE=6009]="NGMODULE_BOOTSTRAP_IS_STANDALONE",t[t.WARN_NGMODULE_ID_UNNECESSARY=-6100]="WARN_NGMODULE_ID_UNNECESSARY",t[t.SCHEMA_INVALID_ELEMENT=-8001]="SCHEMA_INVALID_ELEMENT",t[t.SCHEMA_INVALID_ATTRIBUTE=-8002]="SCHEMA_INVALID_ATTRIBUTE",t[t.MISSING_REFERENCE_TARGET=-8003]="MISSING_REFERENCE_TARGET",t[t.MISSING_PIPE=8004]="MISSING_PIPE",t[t.WRITE_TO_READ_ONLY_VARIABLE=8005]="WRITE_TO_READ_ONLY_VARIABLE",t[t.DUPLICATE_VARIABLE_DECLARATION=8006]="DUPLICATE_VARIABLE_DECLARATION",t[t.SPLIT_TWO_WAY_BINDING=8007]="SPLIT_TWO_WAY_BINDING",t[t.MISSING_REQUIRED_INPUTS=8008]="MISSING_REQUIRED_INPUTS",t[t.ILLEGAL_FOR_LOOP_TRACK_ACCESS=8009]="ILLEGAL_FOR_LOOP_TRACK_ACCESS",t[t.INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT=8010]="INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT",t[t.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION=-8011]="CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION",t[t.DEFERRED_PIPE_USED_EAGERLY=8012]="DEFERRED_PIPE_USED_EAGERLY",t[t.DEFERRED_DIRECTIVE_USED_EAGERLY=8013]="DEFERRED_DIRECTIVE_USED_EAGERLY",t[t.DEFERRED_DEPENDENCY_IMPORTED_EAGERLY=8014]="DEFERRED_DEPENDENCY_IMPORTED_EAGERLY",t[t.ILLEGAL_LET_WRITE=8015]="ILLEGAL_LET_WRITE",t[t.LET_USED_BEFORE_DEFINITION=8016]="LET_USED_BEFORE_DEFINITION",t[t.CONFLICTING_LET_DECLARATION=8017]="CONFLICTING_LET_DECLARATION",t[t.UNCLAIMED_DIRECTIVE_BINDING=8018]="UNCLAIMED_DIRECTIVE_BINDING",t[t.DEFER_IMPLICIT_TRIGGER_MISSING_PLACEHOLDER=8019]="DEFER_IMPLICIT_TRIGGER_MISSING_PLACEHOLDER",t[t.DEFER_IMPLICIT_TRIGGER_INVALID_PLACEHOLDER=8020]="DEFER_IMPLICIT_TRIGGER_INVALID_PLACEHOLDER",t[t.DEFER_TRIGGER_MISCONFIGURATION=8021]="DEFER_TRIGGER_MISCONFIGURATION",t[t.FORM_FIELD_UNSUPPORTED_BINDING=8022]="FORM_FIELD_UNSUPPORTED_BINDING",t[t.MULTIPLE_MATCHING_COMPONENTS=-8023]="MULTIPLE_MATCHING_COMPONENTS",t[t.CONFLICTING_HOST_DIRECTIVE_BINDING=-8024]="CONFLICTING_HOST_DIRECTIVE_BINDING",t[t.FOREIGN_COMPONENT_UNSUPPORTED_BINDING=8025]="FOREIGN_COMPONENT_UNSUPPORTED_BINDING",t[t.INVALID_CONTENT_PLACEMENT=8026]="INVALID_CONTENT_PLACEMENT",t[t.FOREIGN_COMPONENT_CONTENT_UNNECESSARY_FOR_CHILDREN=8027]="FOREIGN_COMPONENT_CONTENT_UNNECESSARY_FOR_CHILDREN",t[t.CONFLICTING_CONTENT_DECLARATION=8028]="CONFLICTING_CONTENT_DECLARATION",t[t.CONFLICTING_CONTENT_AND_PROPERTY=8029]="CONFLICTING_CONTENT_AND_PROPERTY",t[t.UNCLAIMED_EVENT_BINDING=8030]="UNCLAIMED_EVENT_BINDING",t[t.INVALID_BANANA_IN_BOX=8101]="INVALID_BANANA_IN_BOX",t[t.NULLISH_COALESCING_NOT_NULLABLE=8102]="NULLISH_COALESCING_NOT_NULLABLE",t[t.MISSING_CONTROL_FLOW_DIRECTIVE=8103]="MISSING_CONTROL_FLOW_DIRECTIVE",t[t.TEXT_ATTRIBUTE_NOT_BINDING=8104]="TEXT_ATTRIBUTE_NOT_BINDING",t[t.MISSING_NGFOROF_LET=8105]="MISSING_NGFOROF_LET",t[t.SUFFIX_NOT_SUPPORTED=8106]="SUFFIX_NOT_SUPPORTED",t[t.OPTIONAL_CHAIN_NOT_NULLABLE=8107]="OPTIONAL_CHAIN_NOT_NULLABLE",t[t.SKIP_HYDRATION_NOT_STATIC=8108]="SKIP_HYDRATION_NOT_STATIC",t[t.INTERPOLATED_SIGNAL_NOT_INVOKED=8109]="INTERPOLATED_SIGNAL_NOT_INVOKED",t[t.UNSUPPORTED_INITIALIZER_API_USAGE=8110]="UNSUPPORTED_INITIALIZER_API_USAGE",t[t.UNINVOKED_FUNCTION_IN_EVENT_BINDING=8111]="UNINVOKED_FUNCTION_IN_EVENT_BINDING",t[t.UNUSED_LET_DECLARATION=8112]="UNUSED_LET_DECLARATION",t[t.UNUSED_STANDALONE_IMPORTS=8113]="UNUSED_STANDALONE_IMPORTS",t[t.UNPARENTHESIZED_NULLISH_COALESCING=8114]="UNPARENTHESIZED_NULLISH_COALESCING",t[t.UNINVOKED_TRACK_FUNCTION=8115]="UNINVOKED_TRACK_FUNCTION",t[t.MISSING_STRUCTURAL_DIRECTIVE=8116]="MISSING_STRUCTURAL_DIRECTIVE",t[t.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION=8117]="UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION",t[t.FORBIDDEN_REQUIRED_INITIALIZER_INVOCATION=8118]="FORBIDDEN_REQUIRED_INITIALIZER_INVOCATION",t[t.INLINE_TCB_REQUIRED=8900]="INLINE_TCB_REQUIRED",t[t.INLINE_TYPE_CTOR_REQUIRED=8901]="INLINE_TYPE_CTOR_REQUIRED",t[t.INJECTABLE_DUPLICATE_PROV=9001]="INJECTABLE_DUPLICATE_PROV",t[t.SUGGEST_STRICT_TEMPLATES=10001]="SUGGEST_STRICT_TEMPLATES",t[t.SUGGEST_SUBOPTIMAL_TYPE_INFERENCE=10002]="SUGGEST_SUBOPTIMAL_TYPE_INFERENCE",t[t.LOCAL_COMPILATION_UNRESOLVED_CONST=11001]="LOCAL_COMPILATION_UNRESOLVED_CONST",t[t.LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION=11003]="LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION",t[t.DEFER_BLOCK_MISSING_NAME_PARAMETER=11100]="DEFER_BLOCK_MISSING_NAME_PARAMETER",t[t.DEFER_BLOCK_UNKNOWN_NAME_PARAMETER=11101]="DEFER_BLOCK_UNKNOWN_NAME_PARAMETER",t[t.DEFER_BLOCK_INVALID_NAME_PARAMETER=11102]="DEFER_BLOCK_INVALID_NAME_PARAMETER"})(B||(B={}));var $y=(()=>{let t=Bi.full;return`https://${t.includes("-next")||t.includes("-rc")||t==="22.2.2"?"next":`v${Bi.major}`}.angular.dev`})(),r2=`${$y}/errors`;var Uy=99,s2=String(Uy).length;function sc(t){let e=Math.abs(t);return-(Uy*gf(10,Q_(e))+e)}function Q_(t){return String(t).length}var Vn=class extends Error{constructor(e,n,r,s){super(`FatalDiagnosticError: Code: ${e}, Message: ${$i.default.flattenDiagnosticMessageText(r,`
`)}`);l(this,"code");l(this,"node");l(this,"diagnosticMessage");l(this,"relatedInformation");l(this,"_isFatalDiagnosticError",!0);this.code=e,this.node=n,this.diagnosticMessage=r,this.relatedInformation=s,Object.setPrototypeOf(this,new.target.prototype)}toDiagnostic(){return mh(this.code,this.node,this.diagnosticMessage,this.relatedInformation)}};function mh(t,e,n,r,s=$i.default.DiagnosticCategory.Error){return e=$i.default.getOriginalNode(e),{category:s,code:sc(t),file:$i.default.getOriginalNode(e).getSourceFile(),start:e.getStart(void 0,!1),length:e.getWidth(),messageText:n,relatedInformation:r}}function gh(t,e){return{category:$i.default.DiagnosticCategory.Message,code:0,messageText:t,next:e}}var je;(function(t){t.INVALID_BANANA_IN_BOX="invalidBananaInBox",t.NULLISH_COALESCING_NOT_NULLABLE="nullishCoalescingNotNullable",t.OPTIONAL_CHAIN_NOT_NULLABLE="optionalChainNotNullable",t.MISSING_CONTROL_FLOW_DIRECTIVE="missingControlFlowDirective",t.MISSING_STRUCTURAL_DIRECTIVE="missingStructuralDirective",t.TEXT_ATTRIBUTE_NOT_BINDING="textAttributeNotBinding",t.UNINVOKED_FUNCTION_IN_EVENT_BINDING="uninvokedFunctionInEventBinding",t.MISSING_NGFOROF_LET="missingNgForOfLet",t.SUFFIX_NOT_SUPPORTED="suffixNotSupported",t.SKIP_HYDRATION_NOT_STATIC="skipHydrationNotStatic",t.INTERPOLATED_SIGNAL_NOT_INVOKED="interpolatedSignalNotInvoked",t.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION="controlFlowPreventingContentProjection",t.UNUSED_LET_DECLARATION="unusedLetDeclaration",t.UNINVOKED_TRACK_FUNCTION="uninvokedTrackFunction",t.UNUSED_STANDALONE_IMPORTS="unusedStandaloneImports",t.UNPARENTHESIZED_NULLISH_COALESCING="unparenthesizedNullishCoalescing",t.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION="uninvokedFunctionInTextInterpolation",t.DEFER_TRIGGER_MISCONFIGURATION="deferTriggerMisconfiguration"})(je||(je={}));var ah;(function(t){t[t.None=0]="None",t[t.ForceNewImport=1]="ForceNewImport",t[t.NoAliasing=2]="NoAliasing",t[t.AllowTypeImports=4]="AllowTypeImports",t[t.AllowRelativeDtsImports=8]="AllowRelativeDtsImports",t[t.AllowAmbientReferences=16]="AllowAmbientReferences"})(ah||(ah={}));var lh;(function(t){t[t.Success=0]="Success",t[t.Failed=1]="Failed"})(lh||(lh={}));function e0(t){return xa.default.isIdentifier(t)||xa.default.isPropertyAccessExpression(t)&&xa.default.isIdentifier(t.expression)&&xa.default.isIdentifier(t.name)}var Yr;(function(t){t[t.Constructor=0]="Constructor",t[t.Getter=1]="Getter",t[t.Setter=2]="Setter",t[t.Property=3]="Property",t[t.Method=4]="Method"})(Yr||(Yr={}));var ve;(function(t){t[t.PublicWritable=0]="PublicWritable",t[t.PublicReadonly=1]="PublicReadonly",t[t.Protected=2]="Protected",t[t.Private=3]="Private",t[t.EcmaScriptPrivate=4]="EcmaScriptPrivate"})(ve||(ve={}));var Vy={};function ic(t){return yh.default.isClassDeclaration(t)&&t0(t.name)}function t0(t){return t!==void 0&&yh.default.isIdentifier(t)}function vh(t){switch(t){case ve.EcmaScriptPrivate:return"ES private";case ve.Private:return"private";case ve.Protected:return"protected";case ve.PublicReadonly:return"public readonly";case ve.PublicWritable:default:return"public"}}function n0(t,e,n){var u,f;if(t===null)return o0();if(!De.default.isTypeReferenceNode(t))return Ca(t);let r=a0(t,e);if(r===null)return s0(t);let{local:s,decl:i}=r,o=!1;if(i.valueDeclaration===void 0||i.flags&De.default.SymbolFlags.ConstEnum){let h=null;if(i.declarations!==void 0&&i.declarations.length>0&&(h=i.declarations[0]),!n||h&&[De.default.SyntaxKind.TypeParameter,De.default.SyntaxKind.TypeAliasDeclaration,De.default.SyntaxKind.InterfaceDeclaration].includes(h.kind))return r0(t,h);o=!0}let a=s.declarations&&s.declarations[0];if(a!==void 0){if(De.default.isImportClause(a)&&a.name!==void 0)return a.phaseModifier===De.default.SyntaxKind.TypeKeyword?Jl(t,a):De.default.isImportDeclaration(a.parent)?{kind:0,expression:a.name,defaultImportStatement:a.parent,valueUnverified:o}:Ca(t);if(De.default.isImportSpecifier(a)){if(a.isTypeOnly)return Jl(t,a);if(a.parent.parent.phaseModifier===De.default.SyntaxKind.TypeKeyword)return Jl(t,a.parent.parent);let h=(a.propertyName||a.name).text,[p,...g]=r.symbolNames,y=a.parent.parent.parent;if(!De.default.isImportDeclaration(y))return Ca(t);let E=Ay(y);return{kind:1,valueDeclaration:(u=i.valueDeclaration)!=null?u:null,moduleName:E,importedName:h,valueUnverified:o,nestedPath:g}}else if(De.default.isNamespaceImport(a)){if(a.parent.phaseModifier===De.default.SyntaxKind.TypeKeyword)return Jl(t,a.parent);if(r.symbolNames.length===1)return i0(t,a.parent);let[h,p,...g]=r.symbolNames,y=a.parent.parent;if(!De.default.isImportDeclaration(y))return Ca(t);let E=Ay(y);return{kind:1,valueDeclaration:(f=i.valueDeclaration)!=null?f:null,moduleName:E,importedName:p,valueUnverified:o,nestedPath:g}}}let c=Gy(t);return c!==null?{kind:0,expression:c,defaultImportStatement:null,valueUnverified:o}:Ca(t)}function Ca(t){return{kind:2,reason:{kind:5,typeNode:t}}}function r0(t,e){return{kind:2,reason:{kind:1,typeNode:t,decl:e}}}function Jl(t,e){return{kind:2,reason:{kind:2,typeNode:t,node:e}}}function s0(t){return{kind:2,reason:{kind:3,typeNode:t}}}function i0(t,e){return{kind:2,reason:{kind:4,typeNode:t,importClause:e}}}function o0(){return{kind:2,reason:{kind:0}}}function Gy(t){return De.default.isTypeReferenceNode(t)?Sh(t.typeName):null}function a0(t,e){let n=t.typeName,r=e.getSymbolAtLocation(n);if(r===void 0)return null;let s=r,i=n,o=[];for(;De.default.isQualifiedName(i);)o.unshift(i.right.text),i=i.left;if(o.unshift(i.text),i!==n){let c=e.getSymbolAtLocation(i);c!==void 0&&(s=c)}let a=r;return r.flags&De.default.SymbolFlags.Alias&&(a=e.getAliasedSymbol(r)),{local:s,decl:a,symbolNames:o}}function Sh(t){if(De.default.isQualifiedName(t)){let e=Sh(t.left);return e!==null?De.default.factory.createPropertyAccessExpression(e,t.right):null}else if(De.default.isIdentifier(t)){let e=De.default.setOriginalNode(De.default.factory.createIdentifier(t.text),t);return e.parent=t.parent,e}else return null}function Ay(t){if(!De.default.isStringLiteral(t.moduleSpecifier))throw new Error("not a module specifier");return t.moduleSpecifier.text}var Eh=class{constructor(t,e=!1,n=!1){l(this,"checker");l(this,"isLocalCompilation");l(this,"skipPrivateValueDeclarationTypes");this.checker=t,this.isLocalCompilation=e,this.skipPrivateValueDeclarationTypes=n}getDecoratorsOfDeclaration(t){let e=V.default.canHaveDecorators(t)?V.default.getDecorators(t):void 0;return e!==void 0&&e.length?e.map(n=>this._reflectDecorator(n)).filter(n=>n!==null):null}getMembersOfClass(t){return by(t).members.map(n=>{let r=wh(n);return r===null?null:de(C({},r),{decorators:this.getDecoratorsOfDeclaration(n)})}).filter(n=>n!==null)}getConstructorParameters(t){let e=by(t),n=e.getSourceFile().isDeclarationFile,r=e.members.find(s=>V.default.isConstructorDeclaration(s)&&(n||s.body!==void 0));return r===void 0?null:r.parameters.map(s=>{let i=Dy(s.name),o=this.getDecoratorsOfDeclaration(s),a=s.type||null,c=a;if(c&&V.default.isUnionTypeNode(c)){let f=c.types.filter(h=>!(V.default.isLiteralTypeNode(h)&&h.literal.kind===V.default.SyntaxKind.NullKeyword));f.length===1&&(c=f[0])}let u=n0(c,this.checker,this.isLocalCompilation);return{name:i,nameNode:s.name,typeValueReference:u,typeNode:a,decorators:o}})}getImportOfIdentifier(t){let e=this.getDirectImportOfIdentifier(t);return e!==null?e:V.default.isQualifiedName(t.parent)&&t.parent.right===t?this.getImportOfNamespacedIdentifier(t,p0(t.parent)):V.default.isPropertyAccessExpression(t.parent)&&t.parent.name===t?this.getImportOfNamespacedIdentifier(t,h0(t.parent)):null}getExportsOfModule(t){if(!V.default.isSourceFile(t))throw new Error("getExportsOfModule() called on non-SourceFile in TS code");let e=this.checker.getSymbolAtLocation(t);if(e===void 0)return null;let n=new Map;return this.checker.getExportsOfModule(e).forEach(r=>{let s=this.getDeclarationOfSymbol(r,null);s!==null&&n.set(r.name,s)}),n}isClass(t){return ic(t)}hasBaseClass(t){return this.getBaseClassExpression(t)!==null}getBaseClassExpression(t){if(!(V.default.isClassDeclaration(t)||V.default.isClassExpression(t))||t.heritageClauses===void 0)return null;let e=t.heritageClauses.find(r=>r.token===V.default.SyntaxKind.ExtendsKeyword);if(e===void 0)return null;let n=e.types[0];return n===void 0?null:n.expression}getDeclarationOfIdentifier(t){let e=this.checker.getSymbolAtLocation(t);return e===void 0?null:this.getDeclarationOfSymbol(e,t)}getDefinitionOfFunction(t){if(!V.default.isFunctionDeclaration(t)&&!V.default.isMethodDeclaration(t)&&!V.default.isFunctionExpression(t)&&!V.default.isArrowFunction(t))return null;let e=null;t.body!==void 0&&(e=V.default.isBlock(t.body)?Array.from(t.body.statements):[V.default.factory.createReturnStatement(t.body)]);let n=this.checker.getTypeAtLocation(t),r=this.checker.getSignaturesOfType(n,V.default.SignatureKind.Call);return{node:t,body:e,signatureCount:r.length,typeParameters:t.typeParameters===void 0?null:Array.from(t.typeParameters),parameters:t.parameters.map(s=>{let i=Dy(s.name),o=s.initializer||null;return{name:i,node:s,initializer:o,type:s.type||null}})}}getGenericArityOfClass(t){return V.default.isClassDeclaration(t)?t.typeParameters!==void 0?t.typeParameters.length:0:null}getVariableValue(t){return t.initializer||null}isStaticallyExported(t){let e=t;V.default.isVariableDeclaration(t)&&V.default.isVariableDeclarationList(t.parent)&&(e=t.parent.parent);let n=V.default.canHaveModifiers(e)?V.default.getModifiers(e):void 0;return n!==void 0&&n.some(s=>s.kind===V.default.SyntaxKind.ExportKeyword)?!0:e.parent===void 0||!V.default.isSourceFile(e.parent)?!1:this.getLocalExportedDeclarationsOfSourceFile(t.getSourceFile()).has(t)}getDirectImportOfIdentifier(t){let e=this.checker.getSymbolAtLocation(t);if(e===void 0||e.declarations===void 0||e.declarations.length!==1)return null;let n=e.declarations[0],r=f0(n);return r===null||!V.default.isStringLiteral(r.moduleSpecifier)?null:{from:r.moduleSpecifier.text,name:d0(n,t),node:r}}getImportOfNamespacedIdentifier(t,e){if(e===null)return null;let n=this.checker.getSymbolAtLocation(e);if(!n||n.declarations===void 0)return null;let r=n.declarations.length===1?n.declarations[0]:null;if(!r)return null;let s=V.default.isNamespaceImport(r)?r:null;if(!s)return null;let i=s.parent.parent;return!V.default.isImportDeclaration(i)||!V.default.isStringLiteral(i.moduleSpecifier)?null:{from:i.moduleSpecifier.text,name:t.text,node:i}}getDeclarationOfSymbol(t,e){let n;if(t.valueDeclaration!==void 0?n=t.valueDeclaration:t.declarations!==void 0&&t.declarations.length>0&&(n=t.declarations[0]),n!==void 0&&V.default.isShorthandPropertyAssignment(n)){let s=this.checker.getShorthandAssignmentValueSymbol(n);return s===void 0?null:this.getDeclarationOfSymbol(s,e)}else if(n!==void 0&&V.default.isExportSpecifier(n)){let s=this.checker.getExportSpecifierLocalTargetSymbol(n);return s===void 0?null:this.getDeclarationOfSymbol(s,e)}let r=e&&this.getImportOfIdentifier(e);for(;t.flags&V.default.SymbolFlags.Alias;)t=this.checker.getAliasedSymbol(t);return t.valueDeclaration!==void 0&&(!this.skipPrivateValueDeclarationTypes||!u0(this.checker,t))?{node:t.valueDeclaration,viaModule:this._viaModule(t.valueDeclaration,e,r)}:t.declarations!==void 0&&t.declarations.length>0?{node:t.declarations[0],viaModule:this._viaModule(t.declarations[0],e,r)}:null}_reflectDecorator(t){let e=t.expression,n=null;if(V.default.isCallExpression(e)&&(n=Array.from(e.arguments),e=e.expression),!e0(e))return null;let r=V.default.isIdentifier(e)?e:e.name,s=this.getImportOfIdentifier(r);return{name:r.text,identifier:e,import:s,node:t,args:n}}getLocalExportedDeclarationsOfSourceFile(t){let e=t;if(e[oh]!==void 0)return e[oh];let n=new Set;e[oh]=n;let r=this.checker.getSymbolAtLocation(e);if(r===void 0||r.exports===void 0)return n;let s=r.exports.values(),i=s.next();for(;i.done!==!0;){let o=i.value;o.flags&V.default.SymbolFlags.Alias&&(o=this.checker.getAliasedSymbol(o)),o.valueDeclaration!==void 0&&o.valueDeclaration.getSourceFile()===t&&n.add(o.valueDeclaration),i=s.next()}return n}_viaModule(t,e,n){return n===null&&e!==null&&t.getSourceFile()!==e.getSourceFile()?Vy:n!==null&&n.from!==null&&!n.from.startsWith(".")?n.from:null}};function l0(t){let e=V.default.getModifiers(t),n=!1,r=!1,s=ve.PublicWritable;if(e!==void 0)for(let i of e)switch(i.kind){case V.default.SyntaxKind.StaticKeyword:n=!0;break;case V.default.SyntaxKind.PrivateKeyword:s=ve.Private;break;case V.default.SyntaxKind.ProtectedKeyword:s=ve.Protected;break;case V.default.SyntaxKind.ReadonlyKeyword:r=!0;break}return r&&s===ve.PublicWritable&&(s=ve.PublicReadonly),t.name!==void 0&&V.default.isPrivateIdentifier(t.name)&&(s=ve.EcmaScriptPrivate),{accessLevel:s,isStatic:n}}function wh(t){let e=null,n=null,r=null,s=null;if(V.default.isPropertyDeclaration(t))e=Yr.Property,n=t.initializer||null;else if(V.default.isGetAccessorDeclaration(t))e=Yr.Getter;else if(V.default.isSetAccessorDeclaration(t))e=Yr.Setter;else if(V.default.isMethodDeclaration(t))e=Yr.Method;else if(V.default.isConstructorDeclaration(t))e=Yr.Constructor;else return null;if(V.default.isConstructorDeclaration(t))r="constructor";else if(V.default.isIdentifier(t.name))r=t.name.text,s=t.name;else if(V.default.isStringLiteral(t.name))r=t.name.text,s=t.name;else if(V.default.isPrivateIdentifier(t.name))r=t.name.text,s=t.name;else return null;let{accessLevel:i,isStatic:o}=l0(t);return{node:t,implementation:t,kind:e,type:t.type||null,accessLevel:i,name:r,nameNode:s,value:n,isStatic:o}}function oc(t){let e=new Map;return t.properties.forEach(n=>{if(V.default.isPropertyAssignment(n)){let r=c0(n.name);if(r===null)return;e.set(r,n.initializer)}else if(V.default.isShorthandPropertyAssignment(n))e.set(n.name.text,n.name);else return}),e}function by(t){if(!V.default.isClassDeclaration(t))throw new Error(`Reflecting on a ${V.default.SyntaxKind[t.kind]} instead of a ClassDeclaration.`);return t}function Dy(t){return V.default.isIdentifier(t)?t.text:null}function c0(t){return V.default.isIdentifier(t)||V.default.isStringLiteral(t)||V.default.isNumericLiteral(t)?t.text:null}function u0(t,e){var n;if(e.valueDeclaration!==void 0){let r=t.getTypeOfSymbolAtLocation(e,e.valueDeclaration);return((n=r==null?void 0:r.symbol)==null?void 0:n.name.startsWith("\u0275"))===!0}return!1}function p0(t){for(;V.default.isQualifiedName(t.left);)t=t.left;return V.default.isIdentifier(t.left)?t.left:null}function h0(t){for(;V.default.isPropertyAccessExpression(t.expression);)t=t.expression;return V.default.isIdentifier(t.expression)?t.expression:null}function f0(t){let e=t.parent;for(;e&&!V.default.isSourceFile(e);){if(V.default.isImportDeclaration(e))return e;e=e.parent}return null}function d0(t,e){return V.default.isImportSpecifier(t)?(t.propertyName!==void 0?t.propertyName:t.name).text:e.text}var oh=Symbol("LocalExportedDeclarations"),Th=class{constructor(){l(this,"fileToNamedImports",new WeakMap);l(this,"fileToNamespaceImports",new WeakMap)}isPotentialReferenceToNamedImport(t,e,n){let r=t.getSourceFile();this.scanImports(r);let i=this.fileToNamedImports.get(r).get(n),o=i==null?void 0:i.get(e);return o!==void 0&&o.has(t.text)}isPotentialReferenceToNamespaceImport(t,e){var s,i;let n=t.getSourceFile();return this.scanImports(n),(i=(s=this.fileToNamespaceImports.get(n).get(e))==null?void 0:s.has(t.text))!=null?i:!1}hasNamedImport(t,e,n){this.scanImports(t);let s=this.fileToNamedImports.get(t).get(n);return s!==void 0&&s.has(e)}hasNamespaceImport(t,e){return this.scanImports(t),this.fileToNamespaceImports.get(t).has(e)}scanImports(t){var r,s;if(this.fileToNamedImports.has(t)&&this.fileToNamespaceImports.has(t))return;let e=new Map,n=new Map;this.fileToNamedImports.set(t,e),this.fileToNamespaceImports.set(t,n);for(let i of t.statements){if(!Zl.default.isImportDeclaration(i)||!Zl.default.isStringLiteralLike(i.moduleSpecifier)||((r=i.importClause)==null?void 0:r.namedBindings)===void 0)continue;let o=i.moduleSpecifier.text;if(Zl.default.isNamespaceImport(i.importClause.namedBindings))n.has(o)||n.set(o,new Set),n.get(o).add(i.importClause.namedBindings.name.text);else for(let a of i.importClause.namedBindings.elements){let c=a.name.text,u=a.propertyName===void 0?c:a.propertyName.text;e.has(o)||e.set(o,new Map);let f=e.get(o);f.has(u)||f.set(u,new Set),(s=f.get(u))==null||s.add(c)}}}};var ky=Symbol("patchedReferencedAliases");function Ch(t){m0(t)||_y();let e=t.getEmitResolver();if(e===void 0)return null;let n=e[ky];if(n!==void 0)return n;let r=e.isReferencedAliasDeclaration;r===void 0&&_y();let s=new Set;return e.isReferencedAliasDeclaration=function(i,...o){return xh(i)&&s.has(i)?!0:r.call(e,i,...o)},e[ky]=s}function xh(t){return ec.default.isImportSpecifier(t)||ec.default.isNamespaceImport(t)||ec.default.isImportClause(t)}function m0(t){return t.getEmitResolver!==void 0}function _y(){throw Error(`Angular compiler is incompatible with this version of the TypeScript compiler.
If you recently updated TypeScript and this issue surfaces now, consider downgrading.
Please report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.`)}var Na;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(Na||(Na={}));function T0(){let t=new Set,e=(r,s)=>t.has(`${r.fileName}@@${s}`),n=(r,s)=>t.add(`${r.fileName}@@${s}`);return(r,s)=>{let i=r;if(i.identifiers===void 0)throw new Error("Source file unexpectedly lacks map of parsed `identifiers`.");let o=u=>!i.identifiers.has(u)&&!e(i,u);if(o(s))return n(i,s),null;let a=null,c=1;do a=`${s}_${c++}`;while(!o(a));return n(i,a),ch.default.factory.createUniqueName(a,ch.default.GeneratedIdentifierFlags.Optimistic)}}function C0(t,e){return n=>{let{affectedFiles:r,newImports:s,updatedImports:i,reusedOriginalAliasDeclarations:o,deletedImports:a}=t.finalize();if(o.size>0){let u=Ch(n);u!==null&&o.forEach(f=>u.add(f))}if(e!==void 0)for(let[u,f]of e.entries())f.length>0&&r.add(u);let c=u=>{if(!hr.default.isImportDeclaration(u))return u;if(a.has(u))return;if(u.importClause===void 0||!hr.default.isImportClause(u.importClause))return u;let f=u.importClause;if(f.namedBindings===void 0||!hr.default.isNamedImports(f.namedBindings)||!i.has(f.namedBindings))return u;let h=n.factory.updateImportClause(f,f.phaseModifier,f.name,i.get(f.namedBindings)),p=n.factory.updateImportDeclaration(u,u.modifiers,h,u.moduleSpecifier,u.attributes);return hr.default.setOriginalNode(p,{importClause:h,kind:p.kind}),p};return u=>{var g,y;if(!r.has(u.fileName))return u;u=hr.default.visitEachChild(u,c,n);let f=(g=e==null?void 0:e.get(u.fileName))!=null?g:[],h=[],p=[];for(let E of u.statements)x0(E)?h.push(E):p.push(E);return n.factory.updateSourceFile(u,[...h,...(y=s.get(u.fileName))!=null?y:[],...f,...p],u.isDeclarationFile,u.referencedFiles,u.typeReferenceDirectives,u.hasNoDefaultLib,u.libReferenceDirectives)}}}function x0(t){return hr.default.isImportDeclaration(t)||hr.default.isImportEqualsDeclaration(t)||hr.default.isNamespaceImport(t)}function N0(t,e){let n=qy(e),r=t.directReuseCache.get(n);if(r!==void 0)return r;let s=t.namespaceImportReuseCache.get(e.exportModuleSpecifier);return s===void 0?null:e.exportSymbolName===null?s:[s,Hy.default.factory.createIdentifier(e.exportSymbolName)]}function Ry(t,e,n){e.directReuseCache.set(qy(t),n),t.exportSymbolName===null&&!Array.isArray(n)&&e.namespaceImportReuseCache.set(t.exportModuleSpecifier,n)}function qy(t){return`${t.requestedFile.fileName}:${t.exportModuleSpecifier}:${t.exportSymbolName}${t.unsafeAliasOverride?":"+t.unsafeAliasOverride:""}`}function I0(t,e,n){let r=null;for(let a=e.statements.length-1;a>=0;a--){let c=e.statements[a];if(!(!pr.default.isImportDeclaration(c)||!pr.default.isStringLiteral(c.moduleSpecifier)||!c.importClause||c.importClause.phaseModifier===pr.default.SyntaxKind.TypeKeyword||c.moduleSpecifier.text!==n.exportModuleSpecifier)&&c.importClause.namedBindings){let f=c.importClause.namedBindings;if(pr.default.isNamespaceImport(f))return t.reusedAliasDeclarations.add(f),n.exportSymbolName===null?f.name:[f.name,pr.default.factory.createIdentifier(n.exportSymbolName)];if(pr.default.isNamedImports(f)&&n.exportSymbolName!==null){let h=f.elements.find(p=>{var y;let g;return n.unsafeAliasOverride?g=((y=p.propertyName)==null?void 0:y.text)===n.exportSymbolName&&p.name.text===n.unsafeAliasOverride:g=p.propertyName?p.propertyName.text===n.exportSymbolName:p.name.text===n.exportSymbolName,!p.isTypeOnly&&g});if(h!==void 0)return t.reusedAliasDeclarations.add(h),h.name;r=c}}}if(r===null||n.exportSymbolName===null)return null;t.updatedImports.has(r)||t.updatedImports.set(r,[]);let s=t.updatedImports.get(r),i=pr.default.factory.createIdentifier(n.exportSymbolName),o=n.unsafeAliasOverride?pr.default.factory.createIdentifier(n.unsafeAliasOverride):t.generateUniqueIdentifier(e,n.exportSymbolName);return s.push({propertyName:i,fileUniqueAlias:o}),o!=null?o:i}var Nh=class{constructor(t={}){l(this,"newImports",new Map);l(this,"removedImports",new Map);l(this,"nextUniqueIndex",0);l(this,"config");l(this,"reuseSourceFileImportsTracker");l(this,"reuseGeneratedImportsTracker",{directReuseCache:new Map,namespaceImportReuseCache:new Map});var e,n,r,s,i,o;this.config={shouldUseSingleQuotes:(e=t.shouldUseSingleQuotes)!=null?e:(()=>!1),rewriter:(n=t.rewriter)!=null?n:null,disableOriginalSourceFileReuse:(r=t.disableOriginalSourceFileReuse)!=null?r:!1,forceGenerateNamespacesForNewImports:(s=t.forceGenerateNamespacesForNewImports)!=null?s:!1,namespaceImportPrefix:(i=t.namespaceImportPrefix)!=null?i:"i",generateUniqueIdentifier:(o=t.generateUniqueIdentifier)!=null?o:T0()},this.reuseSourceFileImportsTracker={generateUniqueIdentifier:this.config.generateUniqueIdentifier,reusedAliasDeclarations:new Set,updatedImports:new Map}}addSideEffectImport(t,e){this.config.rewriter!==null&&(e=this.config.rewriter.rewriteSpecifier(e,t.fileName)),this._getNewImportsTrackerForFile(t).sideEffectImports.add(e)}addImport(t){var r,s;this.config.rewriter!==null&&(t.exportSymbolName!==null&&(t.exportSymbolName=this.config.rewriter.rewriteSymbol(t.exportSymbolName,t.exportModuleSpecifier)),t.exportModuleSpecifier=this.config.rewriter.rewriteSpecifier(t.exportModuleSpecifier,t.requestedFile.fileName)),t.exportSymbolName!==null&&!t.asTypeReference&&((s=(r=this.removedImports.get(t.requestedFile))==null?void 0:r.get(t.exportModuleSpecifier))==null||s.delete(t.exportSymbolName));let e=N0(this.reuseGeneratedImportsTracker,t);if(e!==null)return Py(!!t.asTypeReference,e);let n=this._generateNewImport(t);return Ry(t,this.reuseGeneratedImportsTracker,n),Py(!!t.asTypeReference,n)}removeImport(t,e,n){let r=this.removedImports.get(t);r||(r=new Map,this.removedImports.set(t,r));let s=r.get(n);s||(s=new Set,r.set(n,s)),s.add(e)}_generateNewImport(t){var f;let{requestedFile:e}=t,n=this.config.disableOriginalSourceFileReuse,r=this.config.forceGenerateNamespacesForNewImports;if(!n){let h=I0(this.reuseSourceFileImportsTracker,e,t);if(h!==null)return h}let{namedImports:s,namespaceImports:i}=this._getNewImportsTrackerForFile(e);if(t.exportSymbolName===null||r){let h=`${this.config.namespaceImportPrefix}${this.nextUniqueIndex++}`;this.config.rewriter&&(h=this.config.rewriter.rewriteNamespaceImportIdentifier(h,t.exportModuleSpecifier));let p=be.default.factory.createNamespaceImport((f=this.config.generateUniqueIdentifier(e,h))!=null?f:be.default.factory.createIdentifier(h));return i.set(t.exportModuleSpecifier,p),Ry(de(C({},t),{exportSymbolName:null}),this.reuseGeneratedImportsTracker,p.name),t.exportSymbolName!==null?[p.name,be.default.factory.createIdentifier(t.exportSymbolName)]:p.name}s.has(t.exportModuleSpecifier)||s.set(t.exportModuleSpecifier,[]);let o=be.default.factory.createIdentifier(t.exportSymbolName),a=t.unsafeAliasOverride?null:this.config.generateUniqueIdentifier(e,t.exportSymbolName),c,u;return t.unsafeAliasOverride?(c=!0,u=be.default.factory.createIdentifier(t.unsafeAliasOverride)):a!==null?(c=!0,u=a):(c=!1,u=o),s.get(t.exportModuleSpecifier).push(be.default.factory.createImportSpecifier(!1,c?o:void 0,u)),u}finalize(){let t=new Set,e=new Map,n=new Map,r=new Set,s=new Map,i=(o,a)=>{t.add(o),n.has(o)?n.get(o).push(a):n.set(o,[a])};return this.reuseSourceFileImportsTracker.updatedImports.forEach((o,a)=>{let c=a.getSourceFile(),u=a.importClause.namedBindings,f=a.moduleSpecifier.text,h=u.elements.concat(o.map(({propertyName:p,fileUniqueAlias:g})=>be.default.factory.createImportSpecifier(!1,g!==null?p:void 0,g!=null?g:p))).filter(p=>this._canAddSpecifier(c,f,p));t.add(c.fileName),h.length===0?r.add(a):e.set(u,be.default.factory.updateNamedImports(u,h))}),this.removedImports.forEach((o,a)=>{var u;if(o.size===0)return;let c=s.get(a);c||(c=a.statements.filter(be.default.isImportDeclaration),s.set(a,c));for(let f of c){if(!((u=f.importClause)!=null&&u.namedBindings)||!be.default.isNamedImports(f.importClause.namedBindings)||this.reuseSourceFileImportsTracker.updatedImports.has(f)||r.has(f))continue;let h=f.importClause.namedBindings,p=f.moduleSpecifier.text,g=h.elements.filter(y=>this._canAddSpecifier(a,p,y));g.length===0?(t.add(a.fileName),r.add(f)):g.length!==h.elements.length&&(t.add(a.fileName),e.set(h,be.default.factory.updateNamedImports(h,g)))}}),this.newImports.forEach(({namedImports:o,namespaceImports:a,sideEffectImports:c},u)=>{let f=this.config.shouldUseSingleQuotes(u),h=u.fileName;c.forEach(p=>{i(h,be.default.factory.createImportDeclaration(void 0,void 0,be.default.factory.createStringLiteral(p)))}),a.forEach((p,g)=>{let y=be.default.factory.createImportDeclaration(void 0,be.default.factory.createImportClause(void 0,void 0,p),be.default.factory.createStringLiteral(g,f));be.default.setOriginalNode(p.name,y),i(h,y)}),o.forEach((p,g)=>{let y=p.filter(E=>this._canAddSpecifier(u,g,E));if(y.length>0){let E=be.default.factory.createImportDeclaration(void 0,be.default.factory.createImportClause(void 0,void 0,be.default.factory.createNamedImports(y)),be.default.factory.createStringLiteral(g,f));i(h,E)}})}),{affectedFiles:t,newImports:n,updatedImports:e,reusedOriginalAliasDeclarations:this.reuseSourceFileImportsTracker.reusedAliasDeclarations,deletedImports:r}}toTsTransform(t){return C0(this,t)}transformTsFile(t,e,n){let r=n?new Map([[e.fileName,n]]):void 0;return this.toTsTransform(r)(t)(e)}_getNewImportsTrackerForFile(t){return this.newImports.has(t)||this.newImports.set(t,{namespaceImports:new Map,namedImports:new Map,sideEffectImports:new Set}),this.newImports.get(t)}_canAddSpecifier(t,e,n){var r,s;return!((s=(r=this.removedImports.get(t))==null?void 0:r.get(e))!=null&&s.has((n.propertyName||n.name).text))}};function Py(t,e){return t?Array.isArray(e)?be.default.factory.createQualifiedName(e[0],e[1]):e:Array.isArray(e)?be.default.factory.createPropertyAccessExpression(e[0],e[1]):e}var Ly;(function(t){t.CLOSURE="* @pureOrBreakMyCode ",t.TERSER="@__PURE__"})(Ly||(Ly={}));var h2=`${$l.DIAGNOSTIC}:ignore`;var Ui;(function(t){t[t.SingleFile=0]="SingleFile",t[t.WholeProgram=1]="WholeProgram"})(Ui||(Ui={}));var tc;(function(t){t[t.Reference=0]="Reference",t[t.Variable=1]="Variable",t[t.LetDeclaration=2]="LetDeclaration"})(tc||(tc={}));var nc;(function(t){t[t.NgModule=0]="NgModule",t[t.Standalone=1]="Standalone"})(nc||(nc={}));var rc;(function(t){t[t.Normal=0]="Normal",t[t.ForceDirect=1]="ForceDirect"})(rc||(rc={}));var ke;(function(t){t[t.Input=0]="Input",t[t.Output=1]="Output",t[t.Binding=2]="Binding",t[t.Reference=3]="Reference",t[t.Variable=4]="Variable",t[t.Directive=5]="Directive",t[t.Element=6]="Element",t[t.Template=7]="Template",t[t.Expression=8]="Expression",t[t.DomBinding=9]="DomBinding",t[t.Pipe=10]="Pipe",t[t.LetDeclaration=11]="LetDeclaration",t[t.SelectorlessComponent=12]="SelectorlessComponent",t[t.SelectorlessDirective=13]="SelectorlessDirective"})(ke||(ke={}));var d2=new en;var S2=[m.InputSignalBrandWriteType],uh;(function(t){t[t.MustInline=0]="MustInline",t[t.ShouldInlineForGenericBounds=1]="ShouldInlineForGenericBounds",t[t.None=2]="None"})(uh||(uh={}));var b=I(require("typescript"),1);var Gn=I(require("typescript"),1),lR=I(require("typescript"),1),cR=I(require("typescript"),1);var uR=I(require("typescript"),1);var pR=I(require("typescript"),1),hR=I(require("typescript"),1),fR=I(require("typescript"),1);var dR=I(require("typescript"),1);var mR=I(require("typescript"),1),gR=I(require("typescript"),1);var yR=I(require("typescript"),1);var vR=I(require("typescript"),1);var nn=I(require("typescript"),1),Dh=I(require("typescript"),1);var Cn=I(require("typescript"),1),kR=I(require("typescript"),1),_R=I(require("typescript"),1);var RR=I(require("typescript"),1);var PR=I(require("typescript"),1),LR=I(require("typescript"),1);var MR=I(require("typescript"),1);var OR=I(require("typescript"),1),FR=I(require("typescript"),1);var BR=I(require("typescript"),1);var $R=I(require("typescript"),1),UR=I(require("typescript"),1);var ie=I(require("typescript"),1),VR=I(require("typescript"),1);var GR=I(require("typescript"),1);var HR=I(require("typescript"),1);var qR=I(require("typescript"),1);N();var Wy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",U0=new Uint8Array(64),V0=new Uint8Array(128);for(let t=0;t<Wy.length;t++){let e=Wy.charCodeAt(t);U0[t]=e,V0[e]=t}var b2=1024*16;var XR=I(require("typescript"),1);var YR=I(require("typescript"),1);var QR=I(require("typescript"),1),JR=I(require("typescript"),1);var ZR=I(require("typescript"),1);var eP=I(require("typescript"),1);var tP=I(require("typescript"),1);var nP=I(require("typescript"),1);var rP=I(require("typescript"),1),Qr=I(require("typescript"),1),cc=I(require("typescript"),1),lv=I(require("typescript"),1);var LB=(0,Qy.createRequire)(M);function Ih(t,e){return e||t.import!==null&&t.import.from==="@angular/core"}var Jy="!Array<{type: !Function, args: (undefined|!Array<?>)}>";function Zy(t,e){let n=[],r=t.expression;switch(r.kind){case b.default.SyntaxKind.Identifier:n.push(b.default.factory.createPropertyAssignment("type",r));break;case b.default.SyntaxKind.CallExpression:let s=r;if(n.push(b.default.factory.createPropertyAssignment("type",s.expression)),s.arguments.length){let i=[];for(let a of s.arguments)i.push(a);let o=b.default.factory.createArrayLiteralExpression(b.default.factory.createNodeArray(i,!0));n.push(b.default.factory.createPropertyAssignment("args",o))}break;default:e.push({file:t.getSourceFile(),start:t.getStart(),length:t.getEnd()-t.getStart(),messageText:`${b.default.SyntaxKind[t.kind]} not implemented in gathering decorator metadata.`,category:b.default.DiagnosticCategory.Error,code:0});break}return b.default.factory.createObjectLiteralExpression(n)}function tR(t,e,n,r){let s=[];for(let a of n){if(!a.type&&a.decorators.length===0){s.push(b.default.factory.createNull());continue}let c=a.type?ev(e,a.type):void 0,u=[b.default.factory.createPropertyAssignment("type",c||b.default.factory.createIdentifier("undefined"))],f=[];for(let h of a.decorators)f.push(Zy(h,t));f.length&&u.push(b.default.factory.createPropertyAssignment("decorators",b.default.factory.createArrayLiteralExpression(f))),s.push(b.default.factory.createObjectLiteralExpression(u))}let i=b.default.factory.createArrowFunction(void 0,void 0,[],void 0,b.default.factory.createToken(b.default.SyntaxKind.EqualsGreaterThanToken),b.default.factory.createArrayLiteralExpression(s,!0)),o=b.default.factory.createPropertyDeclaration([b.default.factory.createToken(b.default.SyntaxKind.StaticKeyword)],"ctorParameters",void 0,void 0,i);return r&&b.default.setSyntheticLeadingComments(o,[{kind:b.default.SyntaxKind.MultiLineCommentTrivia,text:["*"," * @type {function(): !Array<(null|{"," * type: ?,",` * decorators: (undefined|${Jy}),`," * })>}"," * @nocollapse"," "].join(`
`),pos:-1,end:-1,hasTrailingNewLine:!0}]),o}function ev(t,e){let n=e.kind;switch(b.default.isLiteralTypeNode(e)&&(n=e.literal.kind),n){case b.default.SyntaxKind.FunctionType:case b.default.SyntaxKind.ConstructorType:return b.default.factory.createIdentifier("Function");case b.default.SyntaxKind.ArrayType:case b.default.SyntaxKind.TupleType:return b.default.factory.createIdentifier("Array");case b.default.SyntaxKind.TypePredicate:case b.default.SyntaxKind.TrueKeyword:case b.default.SyntaxKind.FalseKeyword:case b.default.SyntaxKind.BooleanKeyword:return b.default.factory.createIdentifier("Boolean");case b.default.SyntaxKind.StringLiteral:case b.default.SyntaxKind.StringKeyword:return b.default.factory.createIdentifier("String");case b.default.SyntaxKind.ObjectKeyword:return b.default.factory.createIdentifier("Object");case b.default.SyntaxKind.NumberKeyword:case b.default.SyntaxKind.NumericLiteral:return b.default.factory.createIdentifier("Number");case b.default.SyntaxKind.TypeReference:return t(e.typeName);case b.default.SyntaxKind.UnionType:let s=e.types.filter(i=>!(b.default.isLiteralTypeNode(i)&&i.literal.kind===b.default.SyntaxKind.NullKeyword));return s.length===1?ev(t,s[0]):void 0;default:return}}function nR(t,e){return e.flags&b.default.SymbolFlags.Alias&&(e=t.getAliasedSymbol(e)),(e.flags&b.default.SymbolFlags.Value&b.default.SymbolFlags.ConstEnumExcludes)!==0}function tv(t,e,n,r,s,i){function o(c,u){s&&b.default.setSyntheticLeadingComments(c,[{kind:b.default.SyntaxKind.MultiLineCommentTrivia,text:`* @type {${u}} `,pos:-1,end:-1,hasTrailingNewLine:!0}])}function a(c,u){let f=[];for(let[g,y]of u.entries())f.push(b.default.factory.createPropertyAssignment(g,b.default.factory.createArrayLiteralExpression(y.map(E=>Zy(E,c)))));let h=b.default.factory.createObjectLiteralExpression(f,!0),p=b.default.factory.createPropertyDeclaration([b.default.factory.createToken(b.default.SyntaxKind.StaticKeyword)],"propDecorators",void 0,void 0,h);return o(p,`!Object<string, ${Jy}>`),p}return c=>{let u=Ch(c);function f(E){let w=t.getSymbolAtLocation(E);if(!w||!nR(t,w)||!w.declarations||w.declarations.length===0)return;if(b.default.isQualifiedName(E)){let k=f(E.left);return k===void 0?void 0:b.default.factory.createPropertyAccessExpression(k,E.right)}let A=w.declarations[0];return xh(A)&&(u==null||u.add(A),A.name!==void 0)?b.default.setOriginalNode(b.default.factory.createIdentifier(A.name.text),A.name):b.default.setOriginalNode(b.default.factory.createIdentifier(E.text),E)}function h(E){E=b.default.visitEachChild(E,y,c);let w=[],A=[],k=e.getDecoratorsOfDeclaration(E)||[];for(let q of k){let te=q.node;if(!Ih(q,r)){w.push(te);continue}A.push(te)}if(!A.length)return[void 0,E,[]];if(!E.name||!b.default.isIdentifier(E.name))return n.push({file:E.getSourceFile(),start:E.getStart(),length:E.getEnd()-E.getStart(),messageText:"Cannot process decorators for class element with non-analyzable name.",category:b.default.DiagnosticCategory.Error,code:0}),[void 0,E,[]];let _=b.default.canHaveModifiers(E)?b.default.getModifiers(E):void 0,H;return(w.length||_!=null&&_.length)&&(H=b.default.setTextRange(b.default.factory.createNodeArray([...w,..._||[]]),E.modifiers)),[E.name.text,rR(E,H),A]}function p(E){E=b.default.visitEachChild(E,y,c);let w=[],A=E.parameters,k=[];for(let H of A){let q=[],te={decorators:[],type:null},Se=e.getDecoratorsOfDeclaration(H)||[];for(let qn of Se){let Wn=qn.node;if(!Ih(qn,r)){q.push(Wn);continue}te.decorators.push(Wn)}H.type&&(te.type=H.type),k.push(te);let Ee,dt=b.default.getModifiers(H);(q.length||dt!=null&&dt.length)&&(Ee=[...q,...dt||[]]);let fr=b.default.factory.updateParameterDeclaration(H,Ee,H.dotDotDotToken,H.name,H.questionToken,H.type,H.initializer);w.push(fr)}return[b.default.factory.updateConstructorDeclaration(E,b.default.getModifiers(E),w,E.body),k]}function g(E){let w=[],A=new Map,k=null;for(let te of E.members){switch(te.kind){case b.default.SyntaxKind.PropertyDeclaration:case b.default.SyntaxKind.GetAccessor:case b.default.SyntaxKind.SetAccessor:case b.default.SyntaxKind.MethodDeclaration:{let[Se,Ee,dt]=h(te);w.push(Ee),Se&&A.set(Se,dt);continue}case b.default.SyntaxKind.Constructor:{if(!te.body)break;let[Ee,dt]=p(te);k=dt,w.push(Ee);continue}default:break}w.push(b.default.visitEachChild(te,y,c))}let H=(e.getDecoratorsOfDeclaration(E)||[]).some(te=>Ih(te,r));k&&(H||k.some(te=>!!te.decorators.length))&&w.push(tR(n,f,k,s)),A.size&&w.push(a(n,A));let q=b.default.setTextRange(b.default.factory.createNodeArray(w,E.members.hasTrailingComma),E.members);return b.default.factory.updateClassDeclaration(E,E.modifiers,E.name,E.typeParameters,E.heritageClauses,q)}function y(E){return b.default.isClassDeclaration(E)&&(i===void 0||i(E))?g(E):b.default.visitEachChild(E,y,c)}return E=>b.default.visitEachChild(E,y,c)}}function rR(t,e){let n;if(b.default.isMethodDeclaration(t))n=b.default.factory.createMethodDeclaration(e,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body);else if(b.default.isPropertyDeclaration(t))n=b.default.factory.createPropertyDeclaration(e,t.name,t.questionToken,t.type,t.initializer);else if(b.default.isGetAccessor(t))n=b.default.factory.createGetAccessorDeclaration(e,t.name,t.parameters,t.type,t.body);else if(b.default.isSetAccessor(t))n=b.default.factory.createSetAccessorDeclaration(e,t.name,t.parameters,t.body);else throw new Error(`Unsupported decorated member with kind ${b.default.SyntaxKind[t.kind]}`);return b.default.setOriginalNode(n,t)}var sR="@angular/core";function nv(t){return t.import!==null&&t.import.from===sR}function Ia(t,e,n){return n?t.name===e:nv(t)?t.import.name===e:!1}function rv(t,e,n){return t.filter(r=>{var i;let s=n?r.name:(i=r.import)==null?void 0:i.name;return s===void 0||!e.includes(s)?!1:n||nv(r)})}function sv(t){for(;Gn.default.isAsExpression(t)||Gn.default.isParenthesizedExpression(t);)t=t.expression;return t}function iR(t){if(t=sv(t),!Gn.default.isArrowFunction(t)&&!Gn.default.isFunctionExpression(t))return null;let e=t.body;if(Gn.default.isBlock(e)){if(e.statements.length!==1)return null;let n=e.statements[0];return!Gn.default.isReturnStatement(n)||n.expression===void 0?null:n.expression}else return e}function oR(t,e){if(t=sv(t),!Gn.default.isCallExpression(t)||t.arguments.length!==1)return null;let n=Gn.default.isPropertyAccessExpression(t.expression)?t.expression.name:t.expression;if(!Gn.default.isIdentifier(n))return null;let r=iR(t.arguments[0]);if(r===null)return null;let s=e.getImportOfIdentifier(n);return s===null||s.from!=="@angular/core"||s.name!=="forwardRef"?null:r}var Ah;(function(t){t[t.FULL=0]="FULL",t[t.PARTIAL=1]="PARTIAL",t[t.LOCAL=2]="LOCAL"})(Ah||(Ah={}));var bh;(function(t){t[t.PRIMARY=0]="PRIMARY",t[t.SHARED=1]="SHARED",t[t.WEAK=2]="WEAK"})(bh||(bh={}));var Vi;(function(t){t[t.Unaccounted=0]="Unaccounted",t[t.Setup=1]="Setup",t[t.TypeScriptProgramCreate=2]="TypeScriptProgramCreate",t[t.Reconciliation=3]="Reconciliation",t[t.ResourceUpdate=4]="ResourceUpdate",t[t.TypeScriptDiagnostics=5]="TypeScriptDiagnostics",t[t.Analysis=6]="Analysis",t[t.Resolve=7]="Resolve",t[t.CycleDetection=8]="CycleDetection",t[t.TcbGeneration=9]="TcbGeneration",t[t.TcbUpdateProgram=10]="TcbUpdateProgram",t[t.TypeScriptEmit=11]="TypeScriptEmit",t[t.Compile=12]="Compile",t[t.TtcAutocompletion=13]="TtcAutocompletion",t[t.TtcDiagnostics=14]="TtcDiagnostics",t[t.TtcSuggestionDiagnostics=15]="TtcSuggestionDiagnostics",t[t.TtcSymbol=16]="TtcSymbol",t[t.LsReferencesAndRenames=17]="LsReferencesAndRenames",t[t.LsQuickInfo=18]="LsQuickInfo",t[t.LsDefinition=19]="LsDefinition",t[t.LsCompletions=20]="LsCompletions",t[t.LsTcb=21]="LsTcb",t[t.LsDiagnostics=22]="LsDiagnostics",t[t.LsSuggestionDiagnostics=23]="LsSuggestionDiagnostics",t[t.LsComponentLocations=24]="LsComponentLocations",t[t.LsSignatureHelp=25]="LsSignatureHelp",t[t.OutliningSpans=26]="OutliningSpans",t[t.LsCodeFixes=27]="LsCodeFixes",t[t.LsCodeFixesAll=28]="LsCodeFixesAll",t[t.LSComputeApplicableRefactorings=29]="LSComputeApplicableRefactorings",t[t.LSApplyRefactoring=30]="LSApplyRefactoring",t[t.LSSemanticClassification=31]="LSSemanticClassification",t[t.LAST=32]="LAST"})(Vi||(Vi={}));var ac;(function(t){t[t.InputDtsFile=0]="InputDtsFile",t[t.InputTsFile=1]="InputTsFile",t[t.AnalyzeComponent=2]="AnalyzeComponent",t[t.AnalyzeDirective=3]="AnalyzeDirective",t[t.AnalyzeInjectable=4]="AnalyzeInjectable",t[t.AnalyzeNgModule=5]="AnalyzeNgModule",t[t.AnalyzePipe=6]="AnalyzePipe",t[t.AnalyzeService=7]="AnalyzeService",t[t.TraitAnalyze=8]="TraitAnalyze",t[t.TraitReuseAnalysis=9]="TraitReuseAnalysis",t[t.SourceFilePhysicalChange=10]="SourceFilePhysicalChange",t[t.SourceFileLogicalChange=11]="SourceFileLogicalChange",t[t.SourceFileReuseAnalysis=12]="SourceFileReuseAnalysis",t[t.GenerateTcb=13]="GenerateTcb",t[t.SkipGenerateTcbNoInline=14]="SkipGenerateTcbNoInline",t[t.ReuseTypeCheckFile=15]="ReuseTypeCheckFile",t[t.UpdateTypeCheckProgram=16]="UpdateTypeCheckProgram",t[t.EmitSkipSourceFile=17]="EmitSkipSourceFile",t[t.EmitSourceFile=18]="EmitSourceFile",t[t.LAST=19]="LAST"})(ac||(ac={}));var lc;(function(t){t[t.Initial=0]="Initial",t[t.TypeScriptProgramCreate=1]="TypeScriptProgramCreate",t[t.PreAnalysis=2]="PreAnalysis",t[t.Analysis=3]="Analysis",t[t.Resolve=4]="Resolve",t[t.TtcGeneration=5]="TtcGeneration",t[t.TtcUpdateProgram=6]="TtcUpdateProgram",t[t.PreEmit=7]="PreEmit",t[t.Emit=8]="Emit",t[t.LAST=9]="LAST"})(lc||(lc={}));var aR=class{eventCount(){}memory(){}phase(){return Vi.Unaccounted}inPhase(t,e){return e()}reset(){}},BB=new aR;var jy;(function(t){t[t.Pending=0]="Pending",t[t.Analyzed=1]="Analyzed",t[t.Resolved=2]="Resolved",t[t.Skipped=3]="Skipped"})(jy||(jy={}));function hc({api:t,call:e},n){if(!t.allowedAccessLevels.includes(n.accessLevel))throw new Vn(B.INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY,e,gh(`Cannot use "${t.functionName}" on a class member that is declared as ${vh(n.accessLevel)}.`,[gh("Update the class field to be either: "+t.allowedAccessLevels.map(r=>vh(r)).join(", "))]))}function Gi(t,e,n,r){if(nn.default.isAsExpression(e)||nn.default.isParenthesizedExpression(e))return Gi(t,e.expression,n,r);if(!nn.default.isCallExpression(e))return null;let s=SR(e,t,r)||ER(e,t,r)||wR(e,t,r);if(s===null)return null;let{api:i,apiReference:o,isRequired:a}=s,c=n.getImportOfIdentifier(o);return c===null||i.functionName!==c.name||i.owningModule!==c.from?null:{api:i,call:e,isRequired:a}}function SR(t,e,n){let r=t.expression;if(!nn.default.isIdentifier(r))return null;let s=e.find(i=>n.isPotentialReferenceToNamedImport(r,i.functionName,i.owningModule));return s===void 0?null:{api:s,apiReference:r,isRequired:!1}}function ER(t,e,n){let r=t.expression;if(!nn.default.isPropertyAccessExpression(r)||!nn.default.isIdentifier(r.expression)||r.name.text!=="required")return null;let s=r.expression,i=e.find(o=>n.isPotentialReferenceToNamedImport(s,o.functionName,o.owningModule));return i===void 0?null:{api:i,apiReference:s,isRequired:!0}}function wR(t,e,n){let r=t.expression;if(!nn.default.isPropertyAccessExpression(r))return null;let s=null,i,o=!1;if(nn.default.isIdentifier(r.expression)&&nn.default.isIdentifier(r.name)){let a=r.expression;s=r.name,i=e.find(c=>r.name.text===c.functionName&&n.isPotentialReferenceToNamespaceImport(a,c.owningModule))}else if(nn.default.isPropertyAccessExpression(r.expression)&&nn.default.isIdentifier(r.expression.expression)&&nn.default.isIdentifier(r.expression.name)&&r.name.text==="required"){let a=r.expression.name.text,c=r.expression.expression;s=r.expression.name,i=e.find(u=>u.functionName===a&&n.isPotentialReferenceToNamespaceImport(c,u.owningModule)),o=!0}return i===void 0||s===null?null:{api:i,apiReference:s,isRequired:o}}function Rh(t){if(!Dh.default.isObjectLiteralExpression(t))throw new Vn(B.VALUE_HAS_WRONG_TYPE,t,"Argument needs to be an object literal that is statically analyzable.");let e=oc(t),n;if(e.has("alias")){let r=e.get("alias");if(!Dh.default.isStringLiteralLike(r))throw new Vn(B.VALUE_HAS_WRONG_TYPE,r,"Alias needs to be a string that is statically analyzable.");n=r.text}return{alias:n}}var fc={functionName:"input",owningModule:"@angular/core",allowedAccessLevels:[ve.PublicWritable,ve.PublicReadonly,ve.Protected]};function TR(t,e,n){var a;if(t.value===null)return null;let r=Gi([fc],t.value,e,n);if(r===null)return null;hc(r,t);let s=r.isRequired?r.call.arguments[0]:r.call.arguments[1],i=s!==void 0?Rh(s):null,o=t.name;return{isSignal:!0,classPropertyName:o,bindingPropertyName:(a=i==null?void 0:i.alias)!=null?a:o,required:r.isRequired,transform:null}}var dc={functionName:"model",owningModule:"@angular/core",allowedAccessLevels:[ve.PublicWritable,ve.PublicReadonly,ve.Protected]};function CR(t,e,n){var c;if(t.value===null)return null;let r=Gi([dc],t.value,e,n);if(r===null)return null;hc(r,t);let s=r.isRequired?r.call.arguments[0]:r.call.arguments[1],i=s!==void 0?Rh(s):null,o=t.name,a=(c=i==null?void 0:i.alias)!=null?c:o;return{call:r.call,input:{isSignal:!0,transform:null,classPropertyName:o,bindingPropertyName:a,required:r.isRequired},output:{isSignal:!1,classPropertyName:o,bindingPropertyName:a+"Change"}}}var zy=[ve.PublicWritable,ve.PublicReadonly,ve.Protected],Ph=[{functionName:"output",owningModule:"@angular/core",allowedAccessLevels:zy},{functionName:"outputFromObservable",owningModule:"@angular/core/rxjs-interop",allowedAccessLevels:zy}];function xR(t,e,n){var a;if(t.value===null)return null;let r=Gi(Ph,t.value,e,n);if(r===null)return null;if(r.isRequired)throw new Vn(B.INITIALIZER_API_NO_REQUIRED_FUNCTION,r.call,'Output does not support ".required()".');hc(r,t);let s=r.api.functionName==="output"?r.call.arguments[0]:r.call.arguments[1],i=s!==void 0?Rh(s):null,o=t.name;return{call:r.call,metadata:{isSignal:!1,classPropertyName:o,bindingPropertyName:(a=i==null?void 0:i.alias)!=null?a:o}}}var NR=["viewChild","viewChildren","contentChild","contentChildren"],mc=NR.map(t=>({functionName:t,owningModule:"@angular/core",allowedAccessLevels:[ve.PublicWritable,ve.PublicReadonly,ve.Protected,ve.Private]})),IR=t=>t!=="contentChildren";function AR(t,e,n){if(t.value===null)return null;let r=Gi(mc,t.value,e,n);if(r===null)return null;hc(r,t);let{functionName:s}=r.api,i=s==="viewChild"||s==="contentChild",o=r.call.arguments[0];if(o===void 0)throw new Vn(B.VALUE_HAS_WRONG_TYPE,r.call,"No locator specified.");let a=r.call.arguments[1];if(a!==void 0&&!Cn.default.isObjectLiteralExpression(a))throw new Vn(B.VALUE_HAS_WRONG_TYPE,a,"Argument needs to be an object literal.");let c=a&&oc(a),u=c!=null&&c.has("read")?iv(c.get("read")):null,f=c!=null&&c.has("descendants")?DR(c.get("descendants")):IR(s);return{name:s,call:r.call,metadata:{isSignal:!0,propertyName:t.name,static:!1,emitDistinctChangesOnly:!0,predicate:bR(o,e),first:i,read:u,descendants:f}}}function bR(t,e){let n=oR(t,e);return n!==null&&(t=n),Cn.default.isStringLiteralLike(t)?[t.text]:Os(new jr.WrappedNodeExpr(t),n!==null?2:0)}function iv(t){if(Cn.default.isExpressionWithTypeArguments(t)||Cn.default.isParenthesizedExpression(t)||Cn.default.isAsExpression(t))return iv(t.expression);if(Cn.default.isPropertyAccessExpression(t)&&Cn.default.isIdentifier(t.expression)||Cn.default.isIdentifier(t))return new jr.WrappedNodeExpr(t);throw new Vn(B.VALUE_NOT_LITERAL,t,'Query "read" option expected a literal class reference.')}function DR(t){if(t.kind===Cn.default.SyntaxKind.TrueKeyword)return!0;if(t.kind===Cn.default.SyntaxKind.FalseKeyword)return!1;throw new Vn(B.VALUE_HAS_WRONG_TYPE,t,'Expected "descendants" option to be a boolean literal.')}var ov=["ViewChild","ViewChildren","ContentChild","ContentChildren"],YB=new Set(ov);var kh;(function(t){t[t.InlineOps=0]="InlineOps",t[t.Error=1]="Error",t[t.CopySourceToTcb=2]="CopySourceToTcb"})(kh||(kh={}));var Ky;(function(t){t[t.Complete=0]="Complete",t[t.Incremental=1]="Incremental"})(Ky||(Ky={}));var _h;(function(t){t[t.NgModule=0]="NgModule",t[t.Standalone=1]="Standalone",t[t.Selectorless=2]="Selectorless"})(_h||(_h={}));var o$=class extends jr.RecursiveAstVisitor{constructor(){super(...arguments);l(this,"allReads",new Set);l(this,"namespaceReads",new Set);l(this,"addAllTopLevelIdentifiers",e=>{ie.default.isIdentifier(e)&&this.isTopLevelIdentifierReference(e)?this.allReads.add(e):ie.default.forEachChild(e,this.addAllTopLevelIdentifiers)})}visitExternalExpr(e,n){e.value.moduleName!==null&&this.namespaceReads.add(e.value.moduleName),super.visitExternalExpr(e,n)}visitReadVarExpr(e,n){this.allReads.add(e),super.visitReadVarExpr(e,n)}visitWrappedNodeExpr(e,n){this.isTypeScriptNode(e.node)&&this.addAllTopLevelIdentifiers(e.node),super.visitWrappedNodeExpr(e,n)}isTopLevelIdentifierReference(e){let n=e,r=n.parent;if(!r)return!1;if(ie.default.isParenthesizedExpression(r)&&r.expression===n)for(;r&&ie.default.isParenthesizedExpression(r);)n=r,r=r.parent;return ie.default.isSourceFile(r)?!0:ie.default.isCallExpression(r)?r.expression===n||r.arguments.includes(n):ie.default.isExpressionStatement(r)||ie.default.isPropertyAccessExpression(r)||ie.default.isComputedPropertyName(r)||ie.default.isTemplateSpan(r)||ie.default.isSpreadAssignment(r)||ie.default.isSpreadElement(r)||ie.default.isAwaitExpression(r)||ie.default.isNonNullExpression(r)||ie.default.isIfStatement(r)||ie.default.isDoStatement(r)||ie.default.isWhileStatement(r)||ie.default.isSwitchStatement(r)||ie.default.isCaseClause(r)||ie.default.isThrowStatement(r)||ie.default.isNewExpression(r)||ie.default.isExpressionWithTypeArguments(r)?r.expression===n:ie.default.isArrayLiteralExpression(r)?r.elements.includes(n):ie.default.isPropertyAssignment(r)||ie.default.isParameter(r)||ie.default.isBindingElement(r)||ie.default.isPropertyDeclaration(r)||ie.default.isEnumMember(r)?r.initializer===n:ie.default.isVariableDeclaration(r)?r.name===n||r.initializer===n:ie.default.isClassDeclaration(r)||ie.default.isFunctionDeclaration(r)||ie.default.isShorthandPropertyAssignment(r)?r.name===n:ie.default.isElementAccessExpression(r)?r.expression===n||r.argumentExpression===n:ie.default.isBinaryExpression(r)?r.left===n||r.right===n:ie.default.isForInStatement(r)||ie.default.isForOfStatement(r)?r.expression===n||r.initializer===n:ie.default.isForStatement(r)?r.condition===n||r.initializer===n||r.incrementor===n:ie.default.isArrowFunction(r)?r.body===n:ie.default.isImportSpecifier(r)||ie.default.isExportSpecifier(r)?(r.propertyName||r.name)===n:ie.default.isConditionalExpression(r)?r.condition===n||r.whenFalse===n||r.whenTrue===n:!1}isTypeScriptNode(e){return!!e&&typeof e.kind=="number"}};var WR=class extends Error{constructor(e,n){super(`[MagicString] ${e}`,n);l(this,"name","MagicStringError")}};function jR(){if(typeof globalThis!="undefined"&&typeof globalThis.btoa=="function")return e=>globalThis.btoa(unescape(encodeURIComponent(e)));let t=globalThis.Buffer;return t?e=>t.from(e,"utf-8").toString("base64"):()=>{throw new WR("unsupported environment: `btoa` or `Buffer` is required")}}var h$=jR();var zR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f$=(()=>{let t=new Uint8Array(64);for(let e=0;e<64;e++)t[e]=zR.charCodeAt(e);return t})();var KR=16384;var d$=new Uint8Array(KR);var m$=new TextDecoder;var E$=new en;function gc(t,e,n,r,s){let i=cc.default.isIdentifier(n.identifier)?n.identifier:n.identifier.expression;return t.createPropertyAccessExpression(e.addImport({exportModuleSpecifier:"@angular/core",exportSymbolName:null,requestedFile:r}),cc.default.setOriginalNode(t.createIdentifier(s),i))}function av(t,e){return t.createAsExpression(e,t.createKeywordTypeNode(cc.default.SyntaxKind.AnyKeyword))}var sP=(t,e,n,r,s,i,o,a)=>{var h,p;if((h=n.getDecoratorsOfDeclaration(t.node))!=null&&h.some(g=>Ia(g,"Input",a)))return t.node;let c=TR(t,n,s);if(c===null)return t.node;let u={isSignal:r.createTrue(),alias:r.createStringLiteral(c.bindingPropertyName),required:c.required?r.createTrue():r.createFalse(),transform:r.createIdentifier("undefined")},f=r.createDecorator(r.createCallExpression(gc(r,i,o,e,"Input"),void 0,[av(r,r.createObjectLiteralExpression(Object.entries(u).map(([g,y])=>r.createPropertyAssignment(g,y))))]));return r.updatePropertyDeclaration(t.node,[f,...(p=t.node.modifiers)!=null?p:[]],t.name,t.node.questionToken,t.node.type,t.node.initializer)},iP=(t,e,n,r,s,i,o,a)=>{var p,g;if((p=n.getDecoratorsOfDeclaration(t.node))!=null&&p.some(y=>Ia(y,"Input",a)||Ia(y,"Output",a)))return t.node;let c=CR(t,n,s);if(c===null)return t.node;let u=r.createObjectLiteralExpression([r.createPropertyAssignment("isSignal",c.input.isSignal?r.createTrue():r.createFalse()),r.createPropertyAssignment("alias",r.createStringLiteral(c.input.bindingPropertyName)),r.createPropertyAssignment("required",c.input.required?r.createTrue():r.createFalse())]),f=Xy("Input",r.createAsExpression(u,r.createKeywordTypeNode(lv.default.SyntaxKind.AnyKeyword)),o,r,e,i),h=Xy("Output",r.createStringLiteral(c.output.bindingPropertyName),o,r,e,i);return r.updatePropertyDeclaration(t.node,[f,h,...(g=t.node.modifiers)!=null?g:[]],t.node.name,t.node.questionToken,t.node.type,t.node.initializer)};function Xy(t,e,n,r,s,i){let o=gc(r,i,n,s,t);return r.createDecorator(r.createCallExpression(o,void 0,[e]))}var oP=(t,e,n,r,s,i,o,a)=>{var f,h;if((f=n.getDecoratorsOfDeclaration(t.node))!=null&&f.some(p=>Ia(p,"Output",a)))return t.node;let c=xR(t,n,s);if(c===null)return t.node;let u=r.createDecorator(r.createCallExpression(gc(r,i,o,e,"Output"),void 0,[r.createStringLiteral(c.metadata.bindingPropertyName)]));return r.updatePropertyDeclaration(t.node,[u,...(h=t.node.modifiers)!=null?h:[]],t.node.name,t.node.questionToken,t.node.type,t.node.initializer)},aP={viewChild:"ViewChild",viewChildren:"ViewChildren",contentChild:"ContentChild",contentChildren:"ContentChildren"},lP=(t,e,n,r,s,i,o,a)=>{var g;let c=n.getDecoratorsOfDeclaration(t.node),u=c&&rv(c,ov,a);if(u!==null&&u.length>0)return t.node;let f=AR(t,n,s);if(f===null)return t.node;let h=f.call.arguments,p=r.createDecorator(r.createCallExpression(gc(r,i,o,e,aP[f.name]),void 0,[f.call.arguments[0],av(r,r.createObjectLiteralExpression([...h.length>1?[r.createSpreadAssignment(h[1])]:[],r.createPropertyAssignment("isSignal",r.createTrue())]))]));return r.updatePropertyDeclaration(t.node,[p,...(g=t.node.modifiers)!=null?g:[]],t.node.name,t.node.questionToken,t.node.type,t.node.initializer)},cP=["Directive","Component"],uP=[sP,oP,lP,iP];function cv(t,e,n,r){return s=>i=>{let o=new Nh;return i=Qr.default.visitNode(i,pP(s,t,o,e,n,r),Qr.default.isSourceFile),o.transformTsFile(s,i)}}function pP(t,e,n,r,s,i){let o=a=>{var c;if(Qr.default.isClassDeclaration(a)&&a.name!==void 0){let u=Qr.default.getOriginalNode(a,Qr.default.isClassDeclaration),f=(c=e.getDecoratorsOfDeclaration(u))==null?void 0:c.find(h=>cP.some(p=>Ia(h,p,s)));if(f!==void 0&&(i===void 0||i(a))){let h=!1,p=u.getSourceFile(),g=a.members.map(y=>{if(!Qr.default.isPropertyDeclaration(y))return y;let E=wh(y);if(E===null)return y;for(let w of uP){let A=w(de(C({},E),{node:y}),p,e,t.factory,r,n,f,s);if(A!==E.node)return h=!0,A}return y});if(h)return t.factory.updateClassDeclaration(a,a.modifiers,a.name,a.typeParameters,a.heritageClauses,g)}}return Qr.default.visitEachChild(a,o,t)};return o}function yc(t,e=!1,n){let r=t.getTypeChecker(),s=new Eh(r),i=new Th,o=tv(r,s,[],e,!1,n),a=cv(s,i,e,n);return c=>u=>(u=a(c)(u),u=o(c)(u),u)}var xO=I(require("typescript"),1),NO=I(require("typescript"),1),IO=I(require("typescript"),1),AO=I(require("typescript"),1),bO=I(require("typescript"),1),DO=I(require("typescript"),1),kO=I(require("typescript"),1),_O=I(require("typescript"),1),RO=I(require("typescript"),1),PO=I(require("typescript"),1),LO=I(require("typescript"),1),MO=I(require("typescript"),1),OO=I(require("typescript"),1),FO=I(require("typescript"),1);var BO=I(require("typescript"),1),$O=I(require("typescript"),1),UO=I(require("typescript"),1),VO=I(require("typescript"),1),GO=I(require("typescript"),1);var af=I(require("typescript"),1);var lf=I(require("typescript"),1);var cf=I(require("typescript"),1);var ji=I(require("typescript"),1);var OF=I(require("typescript"),1);var BF=I(require("typescript"),1),$F=I(require("typescript"),1),UF=I(require("typescript"),1),VF=I(require("typescript"),1);var GF=I(require("typescript"),1),HF=I(eE(),1),qF=I(require("typescript"),1);var CV=(0,hE.createRequire)(M),nf;(function(t){t.Block="block",t.Component="component",t.Constant="constant",t.Decorator="decorator",t.Directive="directive",t.Element="element",t.Enum="enum",t.Function="function",t.Interface="interface",t.NgModule="ng_module",t.Pipe="pipe",t.TypeAlias="type_alias",t.UndecoratedClass="undecorated_class",t.InitializerApiFunction="initializer_api_function",t.Namespace="namespace"})(nf||(nf={}));var rf;(function(t){t.Property="property",t.Method="method",t.Getter="getter",t.Setter="setter",t.EnumItem="enum_item",t.Interface="interface",t.TypeAlias="type_alias"})(rf||(rf={}));var sf;(function(t){t.Class="class",t.Member="member",t.Parameter="parameter"})(sf||(sf={}));var of;(function(t){t.Abstract="abstract",t.Static="static",t.Readonly="readonly",t.Protected="protected",t.Optional="optional",t.Input="input",t.Output="output",t.Inherited="override"})(of||(of={}));var tE;(function(t){t[t.Fresh=0]="Fresh",t[t.Delta=1]="Delta",t[t.Analyzed=2]="Analyzed"})(tE||(tE={}));var nE;(function(t){t[t.Analysis=0]="Analysis",t[t.TypeCheckAndEmit=1]="TypeCheckAndEmit"})(nE||(nE={}));var rE;(function(t){t.Warning="warning",t.Error="error",t.Suppress="suppress"})(rE||(rE={}));var HO=".$ngresource$",bV=HO+".ts";var qO=new Set(["WritableSignal","Signal","InputSignal","InputSignalWithTransform","ModelSignal"]);function sE(t,e){let n=null;if("tcbLocation"in t?n=t.tcbLocation:"localVarLocation"in t&&(n=t.localVarLocation),n===null)return!1;let r=e.getTypeOfSymbol({tcbLocation:n});return r?(t.kind===ke.Expression||t.kind===ke.Variable||t.kind===ke.LetDeclaration)&&(r.symbol!==void 0&&iE(r.symbol)||r.aliasSymbol!==void 0&&iE(r.aliasSymbol)):!1}function iE(t){let e=t.getDeclarations();return e!==void 0&&e.some(n=>{let r=n.getSourceFile().fileName;return(af.default.isInterfaceDeclaration(n)||af.default.isTypeAliasDeclaration(n))&&qO.has(n.name.text)&&(r.includes("@angular/core")||r.includes("angular2/rc/packages/core")||r.includes("bin/packages/core"))})}var Ct=class{run(t,e,n){return new WO(t,e,this).getDiagnostics(n)}},WO=class extends Ms{constructor(e,n,r){super();l(this,"ctx");l(this,"component");l(this,"check");l(this,"diagnostics",[]);this.ctx=e,this.component=n,this.check=r}visit(e){this.diagnostics.push(...this.check.visitNode(this.ctx,this.component,e)),super.visit(e)}visitTemplate(e){let n=e.tagName&&Li(e.tagName);this.visitAllTemplateNodes(e.attributes),n&&(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)}getDiagnostics(e){return this.diagnostics=[],this.visitAllTemplateNodes(e),this.diagnostics}};function _c(t){return t instanceof Zn?!0:t instanceof lt||t instanceof er||t instanceof hn?_c(t.receiver):t instanceof nr||t instanceof tr?_c(t.expression):!1}var jO=`https://${Bi.major!=="0"?`v${Bi.major}.`:""}angular.dev/extended-diagnostics`;function Oe(t,e){let n=`NG${Math.abs(t)}`,r=`${n}${e?": "+e:""}`,i=!r.match(/[.,;!?\n]$/)?".":"";return`${r}${i} Find more at ${jO}/${n}`}var zO=new Set(["set","update","asReadonly"]),KO=new Set(["name","length","prototype"]),XO=class extends Ct{constructor(){super(...arguments);l(this,"code",B.INTERPOLATED_SIGNAL_NOT_INVOKED)}visitNode(e,n,r){if(r instanceof cr)return r.expressions.map(s=>s instanceof On?s.expression:s).filter(s=>s instanceof we).flatMap(s=>kc(e,s,n));if(r instanceof Tt&&r.inputs.length>0){if(e.templateTypeChecker.getForeignComponent(n,r)!==null)return[];let s=e.templateTypeChecker.getDirectivesOfNode(n,r);return r.inputs.flatMap(i=>ef(e,n,s,i))}else if(r instanceof Le&&r.tagName&&Li(r.tagName)){let s=e.templateTypeChecker.getDirectivesOfNode(n,r),i=r.inputs.flatMap(a=>ef(e,n,s,a)),o=r.templateAttrs.flatMap(a=>a instanceof Tn?ef(e,n,s,a):[]);return i.concat(o)}else{if(r instanceof Ti)return r.branches.map(s=>s.expression).filter(s=>s instanceof Ne).map(s=>{let i=s.ast;return i instanceof On?i.expression:i}).filter(s=>s instanceof we).flatMap(s=>kc(e,s,n));if(r instanceof wi&&r.expression instanceof Ne){let s=r.expression.ast instanceof On?r.expression.ast.expression:r.expression.ast;if(s instanceof we)return kc(e,s,n)}}return[]}};function ef(t,e,n,r){if(n!==null&&n.some(i=>i.inputs.getByBindingPropertyName(r.name)!==null))return[];if(!(r.value instanceof Ne))return[];let s=Wi(r.value.ast);return(r.type===J.Property||r.type===J.Class||r.type===J.Style||r.type===J.Attribute||r.type===J.Animation||r.type===J.LegacyAnimation)&&s.length>0?s.flatMap(i=>kc(t,i,e)):[]}function Wi(t){return t instanceof On?t.expression instanceof we?[t.expression]:[]:t instanceof we?[t]:t instanceof Br?[...Wi(t.condition),...Wi(t.trueExp),...Wi(t.falseExp)]:t instanceof nr||t instanceof tr?Wi(t.expression):[]}function YO(t){return KO.has(t)}function QO(t){return zO.has(t)}function kc(t,e,n){let r=t.templateTypeChecker.getSymbolOfNode(e,n);if(r!==null&&(r.kind===ke.Expression||r.kind===ke.LetDeclaration||r.kind===ke.Variable)&&sE(r,t.templateTypeChecker)){let i=r.kind===ke.Expression?t.templateTypeChecker.getSourceMappingAtTcbLocation(r.tcbLocation).span:e.nameSpan,o=Oe(B.INTERPOLATED_SIGNAL_NOT_INVOKED,`${e.name} is a function and should be invoked: ${e.name}()}`);return[t.makeTemplateDiagnostic(i,o)]}if(!YO(e.name)&&!QO(e.name))return[];if(!(e.receiver instanceof we))return[];let s=t.templateTypeChecker.getSymbolOfNode(e.receiver,n);if(s!==null&&(s.kind===ke.Expression||s.kind===ke.LetDeclaration||s.kind===ke.Variable)&&sE(s,t.templateTypeChecker)){let i=s.kind===ke.Expression?t.templateTypeChecker.getSourceMappingAtTcbLocation(s.tcbLocation).span:e.receiver.nameSpan,o=Oe(B.INTERPOLATED_SIGNAL_NOT_INVOKED,`${e.receiver.name} is a function and should be invoked: ${e.receiver.name}()`);return[t.makeTemplateDiagnostic(i,o)]}return[]}var JO={code:B.INTERPOLATED_SIGNAL_NOT_INVOKED,name:je.INTERPOLATED_SIGNAL_NOT_INVOKED,create:()=>new XO},ZO=class extends Ct{constructor(){super(...arguments);l(this,"code",B.INVALID_BANANA_IN_BOX)}visitNode(e,n,r){if(!(r instanceof Fn))return[];let s=r.name;if(!s.startsWith("[")||!s.endsWith("]"))return[];let o=r.sourceSpan.toString().replace(`(${s})`,`[(${s.slice(1,-1)})]`);return[e.makeTemplateDiagnostic(r.sourceSpan,Oe(B.INVALID_BANANA_IN_BOX,`In the two-way binding syntax the parentheses should be inside the brackets, ex. '${o}'`))]}},eF={code:B.INVALID_BANANA_IN_BOX,name:je.INVALID_BANANA_IN_BOX,create:()=>new ZO},oE=new Map([["ngIf",{directive:"NgIf",builtIn:"@if"}],["ngFor",{directive:"NgFor",builtIn:"@for"}],["ngSwitchCase",{directive:"NgSwitchCase",builtIn:"@switch with @case"}],["ngSwitchDefault",{directive:"NgSwitchDefault",builtIn:"@switch with @default"}]]),tF=class extends Ct{constructor(){super(...arguments);l(this,"code",B.MISSING_CONTROL_FLOW_DIRECTIVE)}run(e,n,r){let s=e.templateTypeChecker.getDirectiveMetadata(n);return!s||!s.isStandalone?[]:super.run(e,n,r)}visitNode(e,n,r){if(!(r instanceof Le))return[];let s=r.templateAttrs.find(f=>oE.has(f.name));if(!s)return[];let i=e.templateTypeChecker.getDirectivesOfNode(n,r);if(i!=null&&i.length)return[];let o=s.keySpan||s.sourceSpan,a=oE.get(s.name),c=Oe(B.MISSING_CONTROL_FLOW_DIRECTIVE,`The \`*${s.name}\` directive was used in the template, but neither the \`${a==null?void 0:a.directive}\` directive nor the \`CommonModule\` was imported. Use Angular's built-in control flow ${a==null?void 0:a.builtIn} or make sure that either the \`${a==null?void 0:a.directive}\` directive or the \`CommonModule\` is included in the \`@Component.imports\` array of this component.`);return[e.makeTemplateDiagnostic(o,c)]}},nF={code:B.MISSING_CONTROL_FLOW_DIRECTIVE,name:je.MISSING_CONTROL_FLOW_DIRECTIVE,create:t=>new tF},rF=class extends Ct{constructor(){super(...arguments);l(this,"code",B.MISSING_NGFOROF_LET)}visitNode(e,n,r){let s=r instanceof Le;if(!(r instanceof Le))return[];if(r.templateAttrs.length===0)return[];let i=r.templateAttrs.find(c=>c.name==="ngFor");if(i===void 0)return[];if(r.variables.length>0)return[];let o=Oe(B.MISSING_NGFOROF_LET,"Your ngFor is missing a value. Did you forget to add the `let` keyword?");return[e.makeTemplateDiagnostic(i.sourceSpan,o)]}},sF={code:B.MISSING_NGFOROF_LET,name:je.MISSING_NGFOROF_LET,create:()=>new rF},iF=new Set(["ngIf","ngFor","ngForOf","ngForTrackBy","ngSwitchCase","ngSwitchDefault","ngIfThen","ngIfElse"]),oF=class extends Ct{constructor(){super(...arguments);l(this,"code",B.MISSING_STRUCTURAL_DIRECTIVE)}run(e,n,r){let s=e.templateTypeChecker.getDirectiveMetadata(n);return!s||!s.isStandalone?[]:super.run(e,n,r)}visitNode(e,n,r){if(!(r instanceof Le))return[];let s=r.templateAttrs.find(u=>!iF.has(u.name));if(!s)return[];let i=e.templateTypeChecker.getDirectivesOfNode(n,r);if(i==null?void 0:i.some(u=>{var f;return(f=u.selector)==null?void 0:f.includes(`[${s.name}]`)}))return[];let a=s.keySpan||s.sourceSpan,c=Oe(B.MISSING_STRUCTURAL_DIRECTIVE,`A structural directive \`${s.name}\` was used in the template without a corresponding import in the component. Make sure that the directive is included in the \`@Component.imports\` array of this component.`);return[e.makeTemplateDiagnostic(a,c)]}},aF={code:B.MISSING_STRUCTURAL_DIRECTIVE,name:je.MISSING_STRUCTURAL_DIRECTIVE,create:()=>new oF},lF=class extends Ct{constructor(e){super();l(this,"noUncheckedIndexedAccess");l(this,"code",B.NULLISH_COALESCING_NOT_NULLABLE);this.noUncheckedIndexedAccess=e}visitNode(e,n,r){if(!(r instanceof Re)||r.operation!=="??")return[];if(!this.noUncheckedIndexedAccess&&_c(r.left))return[];let s=e.templateTypeChecker.getSymbolOfNode(r.left,n);if(s===null||s.kind!==ke.Expression)return[];let i=e.templateTypeChecker.getTypeOfSymbol(s);if(!i||i.flags&(lf.default.TypeFlags.Any|lf.default.TypeFlags.Unknown))return[];if(i.getNonNullableType()!==i)return[];let o=e.templateTypeChecker.getSymbolOfNode(r,n);if(o.kind!==ke.Expression)return[];let a=e.templateTypeChecker.getSourceMappingAtTcbLocation(o.tcbLocation);return a===null?[]:[e.makeTemplateDiagnostic(a.span,Oe(B.NULLISH_COALESCING_NOT_NULLABLE,"The left side of this nullish coalescing operation does not include 'null' or 'undefined' in its type, therefore the '??' operator can be safely removed."))]}},cF={code:B.NULLISH_COALESCING_NOT_NULLABLE,name:je.NULLISH_COALESCING_NOT_NULLABLE,create:t=>{if(!(t.strictNullChecks===void 0?!!t.strict:!!t.strictNullChecks))return null;let n=!!t.noUncheckedIndexedAccess;return new lF(n)}},uF=class extends Ct{constructor(e){super();l(this,"noUncheckedIndexedAccess");l(this,"code",B.OPTIONAL_CHAIN_NOT_NULLABLE);this.noUncheckedIndexedAccess=e}visitNode(e,n,r){if(!(r instanceof hn)&&!(r instanceof lt)&&!(r instanceof er))return[];if(!this.noUncheckedIndexedAccess&&_c(r.receiver))return[];let s=e.templateTypeChecker.getSymbolOfNode(r.receiver,n);if(s===null||s.kind!==ke.Expression)return[];let i=e.templateTypeChecker.getTypeOfSymbol(s);if(!i||i.flags&(cf.default.TypeFlags.Any|cf.default.TypeFlags.Unknown))return[];if(i.getNonNullableType()!==i)return[];let o=e.templateTypeChecker.getSymbolOfNode(r,n);if(o.kind!==ke.Expression)return[];let a=e.templateTypeChecker.getSourceMappingAtTcbLocation(o.tcbLocation);if(a===null)return[];let c=r instanceof lt?"the '?.' operator can be replaced with the '.' operator":"the '?.' operator can be safely removed";return[e.makeTemplateDiagnostic(a.span,Oe(B.OPTIONAL_CHAIN_NOT_NULLABLE,`The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore ${c}`))]}},pF={code:B.OPTIONAL_CHAIN_NOT_NULLABLE,name:je.OPTIONAL_CHAIN_NOT_NULLABLE,create:t=>{if(!(t.strictNullChecks===void 0?!!t.strict:!!t.strictNullChecks))return null;let n=!!t.noUncheckedIndexedAccess;return new uF(n)}},aE="ngSkipHydration",hF=class extends Ct{constructor(){super(...arguments);l(this,"code",B.SKIP_HYDRATION_NOT_STATIC)}visitNode(e,n,r){if(r instanceof Tn&&r.name===aE){let i=Oe(B.SKIP_HYDRATION_NOT_STATIC,"ngSkipHydration should not be used as a binding");return[e.makeTemplateDiagnostic(r.sourceSpan,i)]}let s=["true",""];if(r instanceof fn&&r.name===aE&&!s.includes(r.value)&&r.value!==void 0){let i=Oe(B.SKIP_HYDRATION_NOT_STATIC,`ngSkipHydration only accepts "true" or "" as value or no value at all. For example 'ngSkipHydration="true"' or 'ngSkipHydration'`);return[e.makeTemplateDiagnostic(r.sourceSpan,i)]}return[]}},fF={code:B.SKIP_HYDRATION_NOT_STATIC,name:je.SKIP_HYDRATION_NOT_STATIC,create:()=>new hF},fE=["px","%","em"],dF=Oe(B.SUFFIX_NOT_SUPPORTED,`The ${fE.map(t=>`'.${t}'`).join(", ")} suffixes are only supported on style bindings`),mF=class extends Ct{constructor(){super(...arguments);l(this,"code",B.SUFFIX_NOT_SUPPORTED)}visitNode(e,n,r){return r instanceof Tn?r.type!==J.Attribute||!fE.some(s=>r.name.endsWith(`.${s}`))?[]:[e.makeTemplateDiagnostic(r.keySpan,dF)]:[]}},gF={code:B.SUFFIX_NOT_SUPPORTED,name:je.SUFFIX_NOT_SUPPORTED,create:()=>new mF},yF=class extends Ct{constructor(){super(...arguments);l(this,"code",B.TEXT_ATTRIBUTE_NOT_BINDING)}visitNode(e,n,r){if(!(r instanceof fn))return[];let s=r.name;if(!s.startsWith("attr.")&&!s.startsWith("style.")&&!s.startsWith("class."))return[];let i;if(s.startsWith("attr.")){let a=s.replace("attr.","");i="Static attributes should be written without the 'attr.' prefix.",r.value&&(i+=` For example, ${a}="${r.value}".`)}else{let a=`[${s}]`,c=r.value==="true"||r.value==="false"?r.value:`'${r.value}'`;i="Attribute, style, and class bindings should be enclosed with square braces.",r.value&&(i+=` For example, '${a}="${c}"'.`),i=Oe(B.TEXT_ATTRIBUTE_NOT_BINDING,i)}return[e.makeTemplateDiagnostic(r.sourceSpan,i)]}},vF={code:B.TEXT_ATTRIBUTE_NOT_BINDING,name:je.TEXT_ATTRIBUTE_NOT_BINDING,create:()=>new yF},SF=class extends Ct{constructor(){super(...arguments);l(this,"code",B.UNINVOKED_FUNCTION_IN_EVENT_BINDING)}visitNode(e,n,r){if(!(r instanceof Fn))return[];if(r.type!==Je.Regular&&r.type!==Je.LegacyAnimation)return[];if(!(r.handler instanceof Ne))return[];let s=r.handler.source||"";if(r.handler.ast instanceof Fr)return r.handler.ast.expressions.flatMap(i=>tf(i,n,r,s,e));if(r.handler.ast instanceof Br){let{trueExp:i,falseExp:o}=r.handler.ast;return[i,o].flatMap(a=>tf(a,n,r,s,e))}return tf(r.handler.ast,n,r,s,e)}};function tf(t,e,n,r,s){var o;if(t instanceof wn||t instanceof hn)return[];if(t instanceof gi)return[s.makeTemplateDiagnostic(n.sourceSpan,"Arrow function will not be invoked in this event listener. Did you intend to call a method?")];if(!(t instanceof we)&&!(t instanceof lt))return[];let i=s.templateTypeChecker.getSymbolOfNode(t,e);if(i!==null&&i.kind===ke.Expression){let a=s.templateTypeChecker.getTypeOfSymbol(i);if(a&&((o=a.getCallSignatures())==null?void 0:o.length)>0){let c=EF(t,r),u=Oe(B.UNINVOKED_FUNCTION_IN_EVENT_BINDING,`Function in event binding should be invoked: ${c}()`);return[s.makeTemplateDiagnostic(n.sourceSpan,u)]}}return[]}function EF(t,e){return e.substring(t.span.start,t.span.end)}var wF={code:B.UNINVOKED_FUNCTION_IN_EVENT_BINDING,name:je.UNINVOKED_FUNCTION_IN_EVENT_BINDING,create:()=>new SF},TF=class extends Ct{constructor(){super(...arguments);l(this,"code",B.UNPARENTHESIZED_NULLISH_COALESCING)}visitNode(e,n,r){if(r instanceof Re&&(r.operation==="&&"||r.operation==="||")&&(r.left instanceof Re&&r.left.operation==="??"||r.right instanceof Re&&r.right.operation==="??")){let s=e.templateTypeChecker.getSymbolOfNode(r,n);if((s==null?void 0:s.kind)!==ke.Expression)return[];let i=e.templateTypeChecker.getSourceMappingAtTcbLocation(s.tcbLocation);return i===null?[]:[e.makeTemplateDiagnostic(i.span,Oe(B.UNPARENTHESIZED_NULLISH_COALESCING,"Parentheses are required to disambiguate precedence when mixing '??' with '&&' and '||'"))]}return[]}},CF={code:B.UNPARENTHESIZED_NULLISH_COALESCING,name:je.UNPARENTHESIZED_NULLISH_COALESCING,create:()=>new TF},xF=class extends Ct{constructor(){super(...arguments);l(this,"code",B.UNUSED_LET_DECLARATION);l(this,"analysis",new Map)}run(e,n,r){super.run(e,n,r);let s=[],{allLetDeclarations:i,usedLetDeclarations:o}=this.getAnalysis(n);for(let a of i)o.has(a)||s.push(e.makeTemplateDiagnostic(a.sourceSpan,Oe(B.UNUSED_LET_DECLARATION,`@let ${a.name} is declared but its value is never read.`)));return this.analysis.clear(),s}visitNode(e,n,r){if(r instanceof ur)this.getAnalysis(n).allLetDeclarations.add(r);else if(r instanceof le){let s=r instanceof Ne?r.ast:r,i=e.templateTypeChecker.getExpressionTarget(s,n);i!==null&&i instanceof ur&&this.getAnalysis(n).usedLetDeclarations.add(i)}return[]}getAnalysis(e){return this.analysis.has(e)||this.analysis.set(e,{allLetDeclarations:new Set,usedLetDeclarations:new Set}),this.analysis.get(e)}},NF={code:B.UNUSED_LET_DECLARATION,name:je.UNUSED_LET_DECLARATION,create:()=>new xF},IF=class extends Ct{constructor(){super(...arguments);l(this,"code",B.UNINVOKED_TRACK_FUNCTION)}visitNode(e,n,r){if(!(r instanceof Ur)||!r.trackBy)return[];if(r.trackBy.ast instanceof wn||r.trackBy.ast instanceof hn)return[];if(!(r.trackBy.ast instanceof we)&&!(r.trackBy.ast instanceof lt))return[];let s=e.templateTypeChecker.getSymbolOfNode(r.trackBy.ast,n);if(s!==null&&s.kind===ke.Expression){let i=e.templateTypeChecker.getTypeOfSymbol(s);if(i){let o=i.getCallSignatures();if(o.length>0){let a=o.some(f=>f.parameters.length>0),c=e.templateTypeChecker.getTsSymbolOfSymbol(s),u=AF(c,o);if(a||u){let f=bF(r.trackBy.ast,r.trackBy.source||""),h=Oe(B.UNINVOKED_TRACK_FUNCTION,`The track function in the @for block should be invoked: ${f}(/* arguments */)`);return[e.makeTemplateDiagnostic(r.sourceSpan,h)]}}}}return[]}};function AF(t,e){if(t!==null){if((t.flags&ji.default.SymbolFlags.Method)!==0)return!0;let n=t.getDeclarations();if(n!==void 0&&n.some(r=>ji.default.isMethodDeclaration(r)||ji.default.isMethodSignature(r)))return!0}return e.some(n=>n.declaration!==void 0&&(ji.default.isMethodDeclaration(n.declaration)||ji.default.isMethodSignature(n.declaration)))}function bF(t,e){return e.substring(t.span.start,t.span.end)}var DF={code:B.UNINVOKED_TRACK_FUNCTION,name:je.UNINVOKED_TRACK_FUNCTION,create:()=>new IF},kF=class extends Ct{constructor(){super(...arguments);l(this,"code",B.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION)}visitNode(e,n,r){return r instanceof cr?r.expressions.flatMap(s=>_F(s,n,e)):[]}};function _F(t,e,n){var s;if(!(t instanceof we)&&!(t instanceof lt))return[];let r=n.templateTypeChecker.getSymbolOfNode(t,e);if(r!==null&&r.kind===ke.Expression){let i=n.templateTypeChecker.getTypeOfSymbol(r);if(i&&((s=i.getCallSignatures())==null?void 0:s.length)>0){let o=Oe(B.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION,`Function in text interpolation should be invoked: ${t.name}()`),a=n.templateTypeChecker.getSourceMappingAtTcbLocation(r.tcbLocation);return[n.makeTemplateDiagnostic(a.span,o)]}}return[]}var RF={code:B.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION,name:je.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION,create:()=>new kF};function PF(t,e){let n=t===null||t.keys.length===0,r=e===null||e.keys.length===0;if(n&&r)return!0;if(n||r||t.keys.length!==e.keys.length)return!1;let s=new Map;for(let i=0;i<e.keys.length;i++){let o=e.keys[i];if(o.kind!=="property")continue;let a=e.values[i];s.set(o.key,a instanceof gt?a.value:null)}for(let i=0;i<t.keys.length;i++){let o=t.keys[i];if(o.kind!=="property")continue;let a=t.values[i],c=a instanceof gt?a.value:null;if(!s.has(o.key)||s.get(o.key)!==c)return!1}return!0}function lE(t){return t instanceof rr?t.delay:t.timeout}function cE(t){return t instanceof rr?`timer(${t.delay}ms)`:t.timeout===null?"idle":`idle(${t.timeout}ms)`}var LF=class extends Ct{constructor(){super(...arguments);l(this,"code",B.DEFER_TRIGGER_MISCONFIGURATION)}visitNode(e,n,r){var f,h,p;if(!(r instanceof Rn))return[];let s=Object.keys(r.triggers),i=Object.keys(r.prefetchTriggers),o=s.map(g=>r.triggers[g]).filter(g=>g!=null),a=i.map(g=>r.prefetchTriggers[g]).filter(g=>g!=null),c=[];if(o.some(g=>g instanceof Si)&&(o.length>1&&c.push(e.makeTemplateDiagnostic(r.sourceSpan,Oe(B.DEFER_TRIGGER_MISCONFIGURATION,"The 'immediate' trigger makes additional triggers redundant."))),a.length>0&&c.push(e.makeTemplateDiagnostic(r.sourceSpan,Oe(B.DEFER_TRIGGER_MISCONFIGURATION,"Prefetch triggers have no effect because 'immediate' executes earlier.")))),o.length===0&&a.length>0&&c.push(e.makeTemplateDiagnostic(r.sourceSpan,Oe(B.DEFER_TRIGGER_MISCONFIGURATION,"Define a main trigger when using 'prefetch' triggers. Without an explicit main trigger, @defer defaults to 'idle' and prefetch may have no effect."))),o.length===1&&a.length>0){let g=o[0];for(let y of a){let E=g instanceof rr&&y instanceof rr,w=g instanceof vi&&y instanceof vi;if(E||w){let H=lE(g),q=lE(y),te=H==null&&q==null,Se=H!=null&&q!=null&&q>=H;if(!te&&!Se)continue;let Ee=`The Prefetch '${cE(y)}' is not scheduled before the main '${cE(g)}', so it won't run prior to rendering. Lower the prefetch timing or remove it.`;c.push(e.makeTemplateDiagnostic((f=y.sourceSpan)!=null?f:r.sourceSpan,Oe(B.DEFER_TRIGGER_MISCONFIGURATION,Ee)));continue}let A=g instanceof Is&&y instanceof Is,k=g instanceof As&&y instanceof As,_=g instanceof $r&&y instanceof $r;if(A||k||_){let H=g.reference===y.reference,q=_?PF(g.options,y.options):!0;if(H&&q){let Se=`Prefetch '${g.constructor.name.replace("DeferredTrigger","").toLowerCase()}' matches the main trigger and provides no benefit. Remove the prefetch modifier.`;c.push(e.makeTemplateDiagnostic((h=y.sourceSpan)!=null?h:r.sourceSpan,Oe(B.DEFER_TRIGGER_MISCONFIGURATION,Se)))}continue}if(g.constructor===y.constructor&&!(g instanceof rr)){let q=`Prefetch '${g instanceof Si?"immediate":g.constructor.name.replace("DeferredTrigger","").toLowerCase()}' matches the main trigger and provides no benefit. Remove the prefetch modifier.`;c.push(e.makeTemplateDiagnostic((p=y.sourceSpan)!=null?p:r.sourceSpan,Oe(B.DEFER_TRIGGER_MISCONFIGURATION,q)))}}}return c}},MF={code:B.DEFER_TRIGGER_MISCONFIGURATION,name:je.DEFER_TRIGGER_MISCONFIGURATION,create:()=>new LF};var FF=[eF,cF,pF,nF,vF,sF,aF,gF,JO,wF,NF,fF,CF,DF,RF,MF],zV=new Set([je.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION,je.UNUSED_STANDALONE_IMPORTS,...FF.map(t=>t.name)]);var XV=[fc,dc,...Ph,...mc];var YV=[fc,dc,...mc];var uE;(function(t){t[t.Fresh=0]="Fresh",t[t.IncrementalTypeScript=1]="IncrementalTypeScript",t[t.IncrementalResource=2]="IncrementalResource"})(uE||(uE={}));var JF=I(require("typescript"),1);var ZF=I(require("typescript"),1);var mE=I(require("typescript"),1),e1=I(require("typescript"),1),t1=I(require("typescript"),1);var N3=(0,dE.createRequire)(M);var uf;(function(t){t[t.DTS=1]="DTS",t[t.JS=2]="JS",t[t.Metadata=4]="Metadata",t[t.I18nBundle=8]="I18nBundle",t[t.Codegen=16]="Codegen",t[t.Default=19]="Default",t[t.All=31]="All"})(uf||(uf={}));var R3=mE.default.version;N();var gE=require("module");var O3=(0,gE.createRequire)(M),pf;(function(t){t[t.debug=0]="debug",t[t.info=1]="info",t[t.warn=2]="warn",t[t.error=3]="error"})(pf||(pf={}));var hf="\x1B[0m",n1="\x1B[31m",r1="\x1B[33m",s1="\x1B[36m",F3=`${s1}Debug:${hf}`,B3=`${r1}Warning:${hf}`,$3=`${n1}Error:${hf}`;N();var TE=require("module");N();var yE=require("module"),zi=(0,yE.createRequire)(M),vE=(t=>typeof zi!="undefined"?zi:typeof Proxy!="undefined"?new Proxy(t,{get:(e,n)=>(typeof zi!="undefined"?zi:e)[n]}):t)(function(t){if(typeof zi!="undefined")return zi.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var xt=I(require("fs"),1),CE=require("module"),jt=I(require("path"),1),xE=I(require("url"),1);var W3=(0,TE.createRequire)(M),i1=class{pwd(){return this.normalize(process.cwd())}chdir(t){process.chdir(t)}resolve(...t){return this.normalize(jt.resolve(...t))}dirname(t){return this.normalize(jt.dirname(t))}join(t,...e){return this.normalize(jt.join(t,...e))}isRoot(t){return this.dirname(t)===this.normalize(t)}isRooted(t){return jt.isAbsolute(t)}relative(t,e){return this.normalize(jt.relative(t,e))}basename(t,e){return jt.basename(t,e)}extname(t){return jt.extname(t)}normalize(t){return t.replace(/\\/g,"/")}},ff=typeof __filename!="undefined",NE=ff?null:M,EE,wE,SE=ff?__filename:(wE=(EE=xE.fileURLToPath)==null?void 0:EE(NE))!=null?wE:null,o1=class extends i1{constructor(){super(...arguments);l(this,"_caseSensitive")}isCaseSensitive(){return this._caseSensitive===void 0&&(this._caseSensitive=SE!==null?!xt.default.existsSync(this.normalize(a1(SE))):!0),this._caseSensitive}exists(e){return xt.default.existsSync(e)}readFile(e){return xt.default.readFileSync(e,"utf8")}readFileBuffer(e){return xt.default.readFileSync(e)}readdir(e){return xt.default.readdirSync(e)}lstat(e){return xt.default.lstatSync(e)}stat(e){return xt.default.statSync(e)}realpath(e){return this.resolve(xt.default.realpathSync(e))}getDefaultLibLocation(){let e=ff?vE:(0,CE.createRequire)(NE);return this.resolve(e.resolve("typescript"),"..")}},IE=class extends o1{writeFile(t,e,n=!1){xt.default.writeFileSync(t,e,n?{flag:"wx"}:void 0)}removeFile(t){xt.default.unlinkSync(t)}symlink(t,e){xt.default.symlinkSync(t,e)}copyFile(t,e){xt.default.copyFileSync(t,e)}moveFile(t,e){xt.default.renameSync(t,e)}ensureDir(t){xt.default.mkdirSync(t,{recursive:!0})}removeDeep(t){xt.default.rmdirSync(t,{recursive:!0})}};function a1(t){return t.replace(/\w/g,e=>e.toUpperCase()===e?e.toLowerCase():e.toUpperCase())}var AG=(0,AE.createRequire)(M),$G=new ko("22.2.2"),l1={ngDevMode:!1,ngI18nClosureMode:!1},UG=de(C({},l1),{ngJitMode:!1});Iy(new IE);0&&(module.exports={angularJitApplicationTransform});
/*! Bundled license information:
@angular/compiler/fesm2022/compiler.mjs:
(**
* @license Angular v22.2.2
* (c) 2010-2026 Google LLC. https://angular.dev/
* License: MIT
*)
@angular/compiler/fesm2022/compiler.mjs:
(**
*
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*)
@angular/compiler-cli/bundles/chunk-ZJBQUE3A.js:
@angular/compiler-cli/bundles/chunk-SYR74ZNK.js:
@angular/compiler-cli/bundles/chunk-UTWH365F.js:
@angular/compiler-cli/bundles/chunk-6DY4AC5C.js:
@angular/compiler-cli/bundles/chunk-SEJGUMO2.js:
@angular/compiler-cli/bundles/chunk-KWAGEHJJ.js:
@angular/compiler-cli/bundles/index.js:
(**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*)
@angular/compiler-cli/bundles/chunk-FNLXTIAY.js:
@angular/compiler-cli/bundles/chunk-ECVLQ2SD.js:
@angular/compiler-cli/bundles/chunk-XQQEZSMN.js:
(**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*)
(*!
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*)
*/