jest-preset-angular 14.5.2 → 15.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/build/environments/jest-jsdom-env.js +17 -7
- package/build/presets/index.d.ts +0 -39
- package/build/presets/index.js +1 -28
- package/build/serializers/no-ng-attributes.js +4 -0
- package/build/transformers/jit_transform.js +34 -34
- package/package.json +25 -25
- package/presets/index.d.ts +0 -19
- package/presets/index.js +0 -24
- package/build/config/global-setup.d.ts +0 -1
- package/build/config/global-setup.js +0 -21
- package/build/utils/ngcc-jest-processor.d.ts +0 -1
- package/build/utils/ngcc-jest-processor.js +0 -75
- package/global-setup.js +0 -1
- package/global-setup.mjs +0 -3
- package/presets/defaults/jest-preset.js +0 -1
- package/presets/defaults-esm/jest-preset.js +0 -1
- package/setup-jest.js +0 -32
- package/setup-jest.mjs +0 -25
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
"use strict";var NS=Object.create;var yi=Object.defineProperty,bS=Object.defineProperties,DS=Object.getOwnPropertyDescriptor,_S=Object.getOwnPropertyDescriptors,kS=Object.getOwnPropertyNames,Th=Object.getOwnPropertySymbols,RS=Object.getPrototypeOf,xh=Object.prototype.hasOwnProperty,PS=Object.prototype.propertyIsEnumerable;var Rl=(t,e,n)=>e in t?yi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,T=(t,e)=>{for(var n in e||(e={}))xh.call(e,n)&&Rl(t,n,e[n]);if(Th)for(var n of Th(e))PS.call(e,n)&&Rl(t,n,e[n]);return t},ye=(t,e)=>bS(t,_S(e));var MS=(t,e)=>()=>(t&&(e=t(t=0)),e);var K=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),LS=(t,e)=>{for(var n in e)yi(t,n,{get:e[n],enumerable:!0})},Ch=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of kS(e))!xh.call(t,s)&&s!==n&&yi(t,s,{get:()=>e[s],enumerable:!(r=DS(e,s))||r.enumerable});return t};var I=(t,e,n)=>(n=t!=null?NS(RS(t)):{},Ch(e||!t||!t.__esModule?yi(n,"default",{value:t,enumerable:!0}):n,t)),OS=t=>Ch(yi({},"__esModule",{value:!0}),t);var a=(t,e,n)=>Rl(t,typeof e!="symbol"?e+"":e,n);var M,C=MS(()=>{"use strict";M=require("url").pathToFileURL(__filename)});var Po=K((V2,Ty)=>{C();var hk="2.0.0",fk=Number.MAX_SAFE_INTEGER||9007199254740991,dk=16,mk=250,gk=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Ty.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:dk,MAX_SAFE_BUILD_LENGTH:mk,MAX_SAFE_INTEGER:fk,RELEASE_TYPES:gk,SEMVER_SPEC_VERSION:hk,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Mo=K((H2,xy)=>{C();var yk=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};xy.exports=yk});var fi=K((rr,Cy)=>{C();var{MAX_SAFE_COMPONENT_LENGTH:Gp,MAX_SAFE_BUILD_LENGTH:vk,MAX_LENGTH:Sk}=Po(),Ek=Mo();rr=Cy.exports={};var wk=rr.re=[],Tk=rr.safeRe=[],L=rr.src=[],O=rr.t={},xk=0,Wp="[a-zA-Z0-9-]",Ck=[["\\s",1],["\\d",Sk],[Wp,vk]],Ak=t=>{for(let[e,n]of Ck)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},Z=(t,e,n)=>{let r=Ak(e),s=xk++;Ek(t,s,e),O[t]=s,L[s]=e,wk[s]=new RegExp(e,n?"g":void 0),Tk[s]=new RegExp(r,n?"g":void 0)};Z("NUMERICIDENTIFIER","0|[1-9]\\d*");Z("NUMERICIDENTIFIERLOOSE","\\d+");Z("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Wp}*`);Z("MAINVERSION",`(${L[O.NUMERICIDENTIFIER]})\\.(${L[O.NUMERICIDENTIFIER]})\\.(${L[O.NUMERICIDENTIFIER]})`);Z("MAINVERSIONLOOSE",`(${L[O.NUMERICIDENTIFIERLOOSE]})\\.(${L[O.NUMERICIDENTIFIERLOOSE]})\\.(${L[O.NUMERICIDENTIFIERLOOSE]})`);Z("PRERELEASEIDENTIFIER",`(?:${L[O.NUMERICIDENTIFIER]}|${L[O.NONNUMERICIDENTIFIER]})`);Z("PRERELEASEIDENTIFIERLOOSE",`(?:${L[O.NUMERICIDENTIFIERLOOSE]}|${L[O.NONNUMERICIDENTIFIER]})`);Z("PRERELEASE",`(?:-(${L[O.PRERELEASEIDENTIFIER]}(?:\\.${L[O.PRERELEASEIDENTIFIER]})*))`);Z("PRERELEASELOOSE",`(?:-?(${L[O.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${L[O.PRERELEASEIDENTIFIERLOOSE]})*))`);Z("BUILDIDENTIFIER",`${Wp}+`);Z("BUILD",`(?:\\+(${L[O.BUILDIDENTIFIER]}(?:\\.${L[O.BUILDIDENTIFIER]})*))`);Z("FULLPLAIN",`v?${L[O.MAINVERSION]}${L[O.PRERELEASE]}?${L[O.BUILD]}?`);Z("FULL",`^${L[O.FULLPLAIN]}$`);Z("LOOSEPLAIN",`[v=\\s]*${L[O.MAINVERSIONLOOSE]}${L[O.PRERELEASELOOSE]}?${L[O.BUILD]}?`);Z("LOOSE",`^${L[O.LOOSEPLAIN]}$`);Z("GTLT","((?:<|>)?=?)");Z("XRANGEIDENTIFIERLOOSE",`${L[O.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Z("XRANGEIDENTIFIER",`${L[O.NUMERICIDENTIFIER]}|x|X|\\*`);Z("XRANGEPLAIN",`[v=\\s]*(${L[O.XRANGEIDENTIFIER]})(?:\\.(${L[O.XRANGEIDENTIFIER]})(?:\\.(${L[O.XRANGEIDENTIFIER]})(?:${L[O.PRERELEASE]})?${L[O.BUILD]}?)?)?`);Z("XRANGEPLAINLOOSE",`[v=\\s]*(${L[O.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[O.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[O.XRANGEIDENTIFIERLOOSE]})(?:${L[O.PRERELEASELOOSE]})?${L[O.BUILD]}?)?)?`);Z("XRANGE",`^${L[O.GTLT]}\\s*${L[O.XRANGEPLAIN]}$`);Z("XRANGELOOSE",`^${L[O.GTLT]}\\s*${L[O.XRANGEPLAINLOOSE]}$`);Z("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Gp}})(?:\\.(\\d{1,${Gp}}))?(?:\\.(\\d{1,${Gp}}))?`);Z("COERCE",`${L[O.COERCEPLAIN]}(?:$|[^\\d])`);Z("COERCEFULL",L[O.COERCEPLAIN]+`(?:${L[O.PRERELEASE]})?(?:${L[O.BUILD]})?(?:$|[^\\d])`);Z("COERCERTL",L[O.COERCE],!0);Z("COERCERTLFULL",L[O.COERCEFULL],!0);Z("LONETILDE","(?:~>?)");Z("TILDETRIM",`(\\s*)${L[O.LONETILDE]}\\s+`,!0);rr.tildeTrimReplace="$1~";Z("TILDE",`^${L[O.LONETILDE]}${L[O.XRANGEPLAIN]}$`);Z("TILDELOOSE",`^${L[O.LONETILDE]}${L[O.XRANGEPLAINLOOSE]}$`);Z("LONECARET","(?:\\^)");Z("CARETTRIM",`(\\s*)${L[O.LONECARET]}\\s+`,!0);rr.caretTrimReplace="$1^";Z("CARET",`^${L[O.LONECARET]}${L[O.XRANGEPLAIN]}$`);Z("CARETLOOSE",`^${L[O.LONECARET]}${L[O.XRANGEPLAINLOOSE]}$`);Z("COMPARATORLOOSE",`^${L[O.GTLT]}\\s*(${L[O.LOOSEPLAIN]})$|^$`);Z("COMPARATOR",`^${L[O.GTLT]}\\s*(${L[O.FULLPLAIN]})$|^$`);Z("COMPARATORTRIM",`(\\s*)${L[O.GTLT]}\\s*(${L[O.LOOSEPLAIN]}|${L[O.XRANGEPLAIN]})`,!0);rr.comparatorTrimReplace="$1$2$3";Z("HYPHENRANGE",`^\\s*(${L[O.XRANGEPLAIN]})\\s+-\\s+(${L[O.XRANGEPLAIN]})\\s*$`);Z("HYPHENRANGELOOSE",`^\\s*(${L[O.XRANGEPLAINLOOSE]})\\s+-\\s+(${L[O.XRANGEPLAINLOOSE]})\\s*$`);Z("STAR","(<|>)?=?\\s*\\*");Z("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Z("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var wl=K((j2,Ay)=>{C();var Ik=Object.freeze({loose:!0}),Nk=Object.freeze({}),bk=t=>t?typeof t!="object"?Ik:t:Nk;Ay.exports=bk});var jp=K((z2,by)=>{C();var Iy=/^[0-9]+$/,Ny=(t,e)=>{let n=Iy.test(t),r=Iy.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:t<e?-1:1},Dk=(t,e)=>Ny(e,t);by.exports={compareIdentifiers:Ny,rcompareIdentifiers:Dk}});var ct=K((Y2,Ry)=>{C();var Tl=Mo(),{MAX_LENGTH:Dy,MAX_SAFE_INTEGER:xl}=Po(),{safeRe:_y,t:ky}=fi(),_k=wl(),{compareIdentifiers:di}=jp(),Kp=class t{constructor(e,n){if(n=_k(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>Dy)throw new TypeError(`version is longer than ${Dy} characters`);Tl("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let r=e.trim().match(n.loose?_y[ky.LOOSE]:_y[ky.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>xl||this.major<0)throw new TypeError("Invalid major version");if(this.minor>xl||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>xl||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<xl)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(Tl("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)),di(this.major,e.major)||di(this.minor,e.minor)||di(this.patch,e.patch)}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(Tl("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 di(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(Tl("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 di(r,s)}while(++n)}inc(e,n,r){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"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(!n&&r===!1)throw new Error("invalid increment argument: identifier is empty");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];r===!1&&(i=[n]),di(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):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}};Ry.exports=Kp});var ds=K((J2,My)=>{C();var Py=ct(),kk=(t,e,n=!1)=>{if(t instanceof Py)return t;try{return new Py(t,e)}catch(r){if(!n)return null;throw r}};My.exports=kk});var Oy=K((e1,Ly)=>{C();var Rk=ds(),Pk=(t,e)=>{let n=Rk(t,e);return n?n.version:null};Ly.exports=Pk});var By=K((n1,Fy)=>{C();var Mk=ds(),Lk=(t,e)=>{let n=Mk(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};Fy.exports=Lk});var Vy=K((s1,Uy)=>{C();var $y=ct(),Ok=(t,e,n,r,s)=>{typeof n=="string"&&(s=r,r=n,n=void 0);try{return new $y(t instanceof $y?t.version:t,n).inc(e,r,s).version}catch(i){return null}};Uy.exports=Ok});var Gy=K((o1,Hy)=>{C();var qy=ds(),Fk=(t,e)=>{let n=qy(t,null,!0),r=qy(e,null,!0),s=n.compare(r);if(s===0)return null;let i=s>0,o=i?n:r,l=i?r:n,c=!!o.prerelease.length;if(!!l.prerelease.length&&!c)return!l.patch&&!l.minor?"major":o.patch?"patch":o.minor?"minor":"major";let p=c?"pre":"";return n.major!==r.major?p+"major":n.minor!==r.minor?p+"minor":n.patch!==r.patch?p+"patch":"prerelease"};Hy.exports=Fk});var jy=K((l1,Wy)=>{C();var Bk=ct(),$k=(t,e)=>new Bk(t,e).major;Wy.exports=$k});var zy=K((u1,Ky)=>{C();var Uk=ct(),Vk=(t,e)=>new Uk(t,e).minor;Ky.exports=Vk});var Yy=K((h1,Xy)=>{C();var qk=ct(),Hk=(t,e)=>new qk(t,e).patch;Xy.exports=Hk});var Jy=K((d1,Qy)=>{C();var Gk=ds(),Wk=(t,e)=>{let n=Gk(t,e);return n&&n.prerelease.length?n.prerelease:null};Qy.exports=Wk});var Zt=K((g1,ev)=>{C();var Zy=ct(),jk=(t,e,n)=>new Zy(t,n).compare(new Zy(e,n));ev.exports=jk});var nv=K((v1,tv)=>{C();var Kk=Zt(),zk=(t,e,n)=>Kk(e,t,n);tv.exports=zk});var sv=K((E1,rv)=>{C();var Xk=Zt(),Yk=(t,e)=>Xk(t,e,!0);rv.exports=Yk});var Cl=K((T1,ov)=>{C();var iv=ct(),Qk=(t,e,n)=>{let r=new iv(t,n),s=new iv(e,n);return r.compare(s)||r.compareBuild(s)};ov.exports=Qk});var lv=K((C1,av)=>{C();var Jk=Cl(),Zk=(t,e)=>t.sort((n,r)=>Jk(n,r,e));av.exports=Zk});var uv=K((I1,cv)=>{C();var eR=Cl(),tR=(t,e)=>t.sort((n,r)=>eR(r,n,e));cv.exports=tR});var Lo=K((b1,pv)=>{C();var nR=Zt(),rR=(t,e,n)=>nR(t,e,n)>0;pv.exports=rR});var Al=K((_1,hv)=>{C();var sR=Zt(),iR=(t,e,n)=>sR(t,e,n)<0;hv.exports=iR});var zp=K((R1,fv)=>{C();var oR=Zt(),aR=(t,e,n)=>oR(t,e,n)===0;fv.exports=aR});var Xp=K((M1,dv)=>{C();var lR=Zt(),cR=(t,e,n)=>lR(t,e,n)!==0;dv.exports=cR});var Il=K((O1,mv)=>{C();var uR=Zt(),pR=(t,e,n)=>uR(t,e,n)>=0;mv.exports=pR});var Nl=K((B1,gv)=>{C();var hR=Zt(),fR=(t,e,n)=>hR(t,e,n)<=0;gv.exports=fR});var Yp=K((U1,yv)=>{C();var dR=zp(),mR=Xp(),gR=Lo(),yR=Il(),vR=Al(),SR=Nl(),ER=(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 dR(t,n,r);case"!=":return mR(t,n,r);case">":return gR(t,n,r);case">=":return yR(t,n,r);case"<":return vR(t,n,r);case"<=":return SR(t,n,r);default:throw new TypeError(`Invalid operator: ${e}`)}};yv.exports=ER});var Sv=K((q1,vv)=>{C();var wR=ct(),TR=ds(),{safeRe:bl,t:Dl}=fi(),xR=(t,e)=>{if(t instanceof wR)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?bl[Dl.COERCEFULL]:bl[Dl.COERCE]);else{let c=e.includePrerelease?bl[Dl.COERCERTLFULL]:bl[Dl.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]}`:"",l=e.includePrerelease&&n[6]?`+${n[6]}`:"";return TR(`${r}.${s}.${i}${o}${l}`,e)};vv.exports=xR});var wv=K((G1,Ev)=>{C();var Qp=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}};Ev.exports=Qp});var en=K((j1,Av)=>{C();var CR=/\s+/g,Jp=class t{constructor(e,n){if(n=IR(n),e instanceof t)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new t(e.raw,n);if(e instanceof Zp)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(CR," "),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=>!xv(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&&PR(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){let r=((this.options.includePrerelease&&kR)|(this.options.loose&&RR))+":"+e,s=Tv.get(r);if(s)return s;let i=this.options.loose,o=i?Dt[Et.HYPHENRANGELOOSE]:Dt[Et.HYPHENRANGE];e=e.replace(o,HR(this.options.includePrerelease)),Ne("hyphen replace",e),e=e.replace(Dt[Et.COMPARATORTRIM],bR),Ne("comparator trim",e),e=e.replace(Dt[Et.TILDETRIM],DR),Ne("tilde trim",e),e=e.replace(Dt[Et.CARETTRIM],_R),Ne("caret trim",e);let l=e.split(" ").map(d=>MR(d,this.options)).join(" ").split(/\s+/).map(d=>qR(d,this.options));i&&(l=l.filter(d=>(Ne("loose invalid filter",d,this.options),!!d.match(Dt[Et.COMPARATORLOOSE])))),Ne("range list",l);let c=new Map,u=l.map(d=>new Zp(d,this.options));for(let d of u){if(xv(d))return[d];c.set(d.value,d)}c.size>1&&c.has("")&&c.delete("");let p=[...c.values()];return Tv.set(r,p),p}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(r=>Cv(r,n)&&e.set.some(s=>Cv(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 NR(e,this.options)}catch(n){return!1}for(let n=0;n<this.set.length;n++)if(GR(this.set[n],e,this.options))return!0;return!1}};Av.exports=Jp;var AR=wv(),Tv=new AR,IR=wl(),Zp=Oo(),Ne=Mo(),NR=ct(),{safeRe:Dt,t:Et,comparatorTrimReplace:bR,tildeTrimReplace:DR,caretTrimReplace:_R}=fi(),{FLAG_INCLUDE_PRERELEASE:kR,FLAG_LOOSE:RR}=Po(),xv=t=>t.value==="<0.0.0-0",PR=t=>t.value==="",Cv=(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},MR=(t,e)=>(Ne("comp",t,e),t=FR(t,e),Ne("caret",t),t=LR(t,e),Ne("tildes",t),t=$R(t,e),Ne("xrange",t),t=VR(t,e),Ne("stars",t),t),wt=t=>!t||t.toLowerCase()==="x"||t==="*",LR=(t,e)=>t.trim().split(/\s+/).map(n=>OR(n,e)).join(" "),OR=(t,e)=>{let n=e.loose?Dt[Et.TILDELOOSE]:Dt[Et.TILDE];return t.replace(n,(r,s,i,o,l)=>{Ne("tilde",t,r,s,i,o,l);let c;return wt(s)?c="":wt(i)?c=`>=${s}.0.0 <${+s+1}.0.0-0`:wt(o)?c=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:l?(Ne("replaceTilde pr",l),c=`>=${s}.${i}.${o}-${l} <${s}.${+i+1}.0-0`):c=`>=${s}.${i}.${o} <${s}.${+i+1}.0-0`,Ne("tilde return",c),c})},FR=(t,e)=>t.trim().split(/\s+/).map(n=>BR(n,e)).join(" "),BR=(t,e)=>{Ne("caret",t,e);let n=e.loose?Dt[Et.CARETLOOSE]:Dt[Et.CARET],r=e.includePrerelease?"-0":"";return t.replace(n,(s,i,o,l,c)=>{Ne("caret",t,s,i,o,l,c);let u;return wt(i)?u="":wt(o)?u=`>=${i}.0.0${r} <${+i+1}.0.0-0`:wt(l)?i==="0"?u=`>=${i}.${o}.0${r} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.0${r} <${+i+1}.0.0-0`:c?(Ne("replaceCaret pr",c),i==="0"?o==="0"?u=`>=${i}.${o}.${l}-${c} <${i}.${o}.${+l+1}-0`:u=`>=${i}.${o}.${l}-${c} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${l}-${c} <${+i+1}.0.0-0`):(Ne("no pr"),i==="0"?o==="0"?u=`>=${i}.${o}.${l}${r} <${i}.${o}.${+l+1}-0`:u=`>=${i}.${o}.${l}${r} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${l} <${+i+1}.0.0-0`),Ne("caret return",u),u})},$R=(t,e)=>(Ne("replaceXRanges",t,e),t.split(/\s+/).map(n=>UR(n,e)).join(" ")),UR=(t,e)=>{t=t.trim();let n=e.loose?Dt[Et.XRANGELOOSE]:Dt[Et.XRANGE];return t.replace(n,(r,s,i,o,l,c)=>{Ne("xRange",t,r,s,i,o,l,c);let u=wt(i),p=u||wt(o),d=p||wt(l),m=d;return s==="="&&m&&(s=""),c=e.includePrerelease?"-0":"",u?s===">"||s==="<"?r="<0.0.0-0":r="*":s&&m?(p&&(o=0),l=0,s===">"?(s=">=",p?(i=+i+1,o=0,l=0):(o=+o+1,l=0)):s==="<="&&(s="<",p?i=+i+1:o=+o+1),s==="<"&&(c="-0"),r=`${s+i}.${o}.${l}${c}`):p?r=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(r=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),Ne("xRange return",r),r})},VR=(t,e)=>(Ne("replaceStars",t,e),t.trim().replace(Dt[Et.STAR],"")),qR=(t,e)=>(Ne("replaceGTE0",t,e),t.trim().replace(Dt[e.includePrerelease?Et.GTE0PRE:Et.GTE0],"")),HR=t=>(e,n,r,s,i,o,l,c,u,p,d,m)=>(wt(r)?n="":wt(s)?n=`>=${r}.0.0${t?"-0":""}`:wt(i)?n=`>=${r}.${s}.0${t?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,wt(u)?c="":wt(p)?c=`<${+u+1}.0.0-0`:wt(d)?c=`<${u}.${+p+1}.0-0`:m?c=`<=${u}.${p}.${d}-${m}`:t?c=`<${u}.${p}.${+d+1}-0`:c=`<=${c}`,`${n} ${c}`.trim()),GR=(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(Ne(t[r].semver),t[r].semver!==Zp.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 Oo=K((z1,kv)=>{C();var Fo=Symbol("SemVer ANY"),nh=class t{static get ANY(){return Fo}constructor(e,n){if(n=Iv(n),e instanceof t){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),th("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===Fo?this.value="":this.value=this.operator+this.semver.version,th("comp",this)}parse(e){let n=this.options.loose?Nv[bv.COMPARATORLOOSE]:Nv[bv.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 Dv(r[2],this.options.loose):this.semver=Fo}toString(){return this.value}test(e){if(th("Comparator.test",e,this.options.loose),this.semver===Fo||e===Fo)return!0;if(typeof e=="string")try{e=new Dv(e,this.options)}catch(n){return!1}return eh(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 _v(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new _v(this.value,n).test(e.semver):(n=Iv(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("=")||eh(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||eh(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};kv.exports=nh;var Iv=wl(),{safeRe:Nv,t:bv}=fi(),eh=Yp(),th=Mo(),Dv=ct(),_v=en()});var Bo=K((Y1,Rv)=>{C();var WR=en(),jR=(t,e,n)=>{try{e=new WR(e,n)}catch(r){return!1}return e.test(t)};Rv.exports=jR});var Mv=K((J1,Pv)=>{C();var KR=en(),zR=(t,e)=>new KR(t,e).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));Pv.exports=zR});var Ov=K((eB,Lv)=>{C();var XR=ct(),YR=en(),QR=(t,e,n)=>{let r=null,s=null,i=null;try{i=new YR(e,n)}catch(o){return null}return t.forEach(o=>{i.test(o)&&(!r||s.compare(o)===-1)&&(r=o,s=new XR(r,n))}),r};Lv.exports=QR});var Bv=K((nB,Fv)=>{C();var JR=ct(),ZR=en(),eP=(t,e,n)=>{let r=null,s=null,i=null;try{i=new ZR(e,n)}catch(o){return null}return t.forEach(o=>{i.test(o)&&(!r||s.compare(o)===1)&&(r=o,s=new JR(r,n))}),r};Fv.exports=eP});var Vv=K((sB,Uv)=>{C();var rh=ct(),tP=en(),$v=Lo(),nP=(t,e)=>{t=new tP(t,e);let n=new rh("0.0.0");if(t.test(n)||(n=new rh("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 l=new rh(o.semver.version);switch(o.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!i||$v(l,i))&&(i=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!n||$v(n,i))&&(n=i)}return n&&t.test(n)?n:null};Uv.exports=nP});var Hv=K((oB,qv)=>{C();var rP=en(),sP=(t,e)=>{try{return new rP(t,e).range||"*"}catch(n){return null}};qv.exports=sP});var _l=K((lB,Kv)=>{C();var iP=ct(),jv=Oo(),{ANY:oP}=jv,aP=en(),lP=Bo(),Gv=Lo(),Wv=Al(),cP=Nl(),uP=Il(),pP=(t,e,n,r)=>{t=new iP(t,r),e=new aP(e,r);let s,i,o,l,c;switch(n){case">":s=Gv,i=cP,o=Wv,l=">",c=">=";break;case"<":s=Wv,i=uP,o=Gv,l="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(lP(t,e,r))return!1;for(let u=0;u<e.set.length;++u){let p=e.set[u],d=null,m=null;if(p.forEach(g=>{g.semver===oP&&(g=new jv(">=0.0.0")),d=d||g,m=m||g,s(g.semver,d.semver,r)?d=g:o(g.semver,m.semver,r)&&(m=g)}),d.operator===l||d.operator===c||(!m.operator||m.operator===l)&&i(t,m.semver))return!1;if(m.operator===c&&o(t,m.semver))return!1}return!0};Kv.exports=pP});var Xv=K((uB,zv)=>{C();var hP=_l(),fP=(t,e,n)=>hP(t,e,">",n);zv.exports=fP});var Qv=K((hB,Yv)=>{C();var dP=_l(),mP=(t,e,n)=>dP(t,e,"<",n);Yv.exports=mP});var eS=K((dB,Zv)=>{C();var Jv=en(),gP=(t,e,n)=>(t=new Jv(t,n),e=new Jv(e,n),t.intersects(e,n));Zv.exports=gP});var nS=K((gB,tS)=>{C();var yP=Bo(),vP=Zt();tS.exports=(t,e,n)=>{let r=[],s=null,i=null,o=t.sort((p,d)=>vP(p,d,n));for(let p of o)yP(p,e,n)?(i=p,s||(s=p)):(i&&r.push([s,i]),i=null,s=null);s&&r.push([s,null]);let l=[];for(let[p,d]of r)p===d?l.push(p):!d&&p===o[0]?l.push("*"):d?p===o[0]?l.push(`<=${d}`):l.push(`${p} - ${d}`):l.push(`>=${p}`);let c=l.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return c.length<u.length?c:e}});var lS=K((vB,aS)=>{C();var rS=en(),ih=Oo(),{ANY:sh}=ih,$o=Bo(),oh=Zt(),SP=(t,e,n={})=>{if(t===e)return!0;t=new rS(t,n),e=new rS(e,n);let r=!1;e:for(let s of t.set){for(let i of e.set){let o=wP(s,i,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},EP=[new ih(">=0.0.0-0")],sS=[new ih(">=0.0.0")],wP=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===sh){if(e.length===1&&e[0].semver===sh)return!0;n.includePrerelease?t=EP:t=sS}if(e.length===1&&e[0].semver===sh){if(n.includePrerelease)return!0;e=sS}let r=new Set,s,i;for(let g of t)g.operator===">"||g.operator===">="?s=iS(s,g,n):g.operator==="<"||g.operator==="<="?i=oS(i,g,n):r.add(g.semver);if(r.size>1)return null;let o;if(s&&i){if(o=oh(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&&!$o(g,String(s),n)||i&&!$o(g,String(i),n))return null;for(let E of e)if(!$o(g,String(E),n))return!1;return!0}let l,c,u,p,d=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1,m=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;d&&d.prerelease.length===1&&i.operator==="<"&&d.prerelease[0]===0&&(d=!1);for(let g of e){if(p=p||g.operator===">"||g.operator===">=",u=u||g.operator==="<"||g.operator==="<=",s){if(m&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===m.major&&g.semver.minor===m.minor&&g.semver.patch===m.patch&&(m=!1),g.operator===">"||g.operator===">="){if(l=iS(s,g,n),l===g&&l!==s)return!1}else if(s.operator===">="&&!$o(s.semver,String(g),n))return!1}if(i){if(d&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===d.major&&g.semver.minor===d.minor&&g.semver.patch===d.patch&&(d=!1),g.operator==="<"||g.operator==="<="){if(c=oS(i,g,n),c===g&&c!==i)return!1}else if(i.operator==="<="&&!$o(i.semver,String(g),n))return!1}if(!g.operator&&(i||s)&&o!==0)return!1}return!(s&&u&&!i&&o!==0||i&&p&&!s&&o!==0||m||d)},iS=(t,e,n)=>{if(!t)return e;let r=oh(t.semver,e.semver,n);return r>0?t:r<0||e.operator===">"&&t.operator===">="?e:t},oS=(t,e,n)=>{if(!t)return e;let r=oh(t.semver,e.semver,n);return r<0?t:r>0||e.operator==="<"&&t.operator==="<="?e:t};aS.exports=SP});var hS=K((EB,pS)=>{C();var ah=fi(),cS=Po(),TP=ct(),uS=jp(),xP=ds(),CP=Oy(),AP=By(),IP=Vy(),NP=Gy(),bP=jy(),DP=zy(),_P=Yy(),kP=Jy(),RP=Zt(),PP=nv(),MP=sv(),LP=Cl(),OP=lv(),FP=uv(),BP=Lo(),$P=Al(),UP=zp(),VP=Xp(),qP=Il(),HP=Nl(),GP=Yp(),WP=Sv(),jP=Oo(),KP=en(),zP=Bo(),XP=Mv(),YP=Ov(),QP=Bv(),JP=Vv(),ZP=Hv(),eM=_l(),tM=Xv(),nM=Qv(),rM=eS(),sM=nS(),iM=lS();pS.exports={parse:xP,valid:CP,clean:AP,inc:IP,diff:NP,major:bP,minor:DP,patch:_P,prerelease:kP,compare:RP,rcompare:PP,compareLoose:MP,compareBuild:LP,sort:OP,rsort:FP,gt:BP,lt:$P,eq:UP,neq:VP,gte:qP,lte:HP,cmp:GP,coerce:WP,Comparator:jP,Range:KP,satisfies:zP,toComparators:XP,maxSatisfying:YP,minSatisfying:QP,minVersion:JP,validRange:ZP,outside:eM,gtr:tM,ltr:nM,intersects:rM,simplifyRange:sM,subset:iM,SemVer:TP,re:ah.re,src:ah.src,tokens:ah.t,SEMVER_SPEC_VERSION:cS.SEMVER_SPEC_VERSION,RELEASE_TYPES:cS.RELEASE_TYPES,compareIdentifiers:uS.compareIdentifiers,rcompareIdentifiers:uS.rcompareIdentifiers}});var mL={};LS(mL,{angularJitApplicationTransform:()=>Ro});module.exports=OS(mL);C();C();var IS=require("module");C();var Ey=require("module");C();var hy=require("module");C();var Qg=require("module");C();var Ig=require("module");C();var Nh=require("module");C();var Ah=require("module"),gs=(0,Ah.createRequire)(M),FS=Object.defineProperty,BS=(t,e,n)=>e in t?FS(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ih=(t=>typeof gs!="undefined"?gs:typeof Proxy!="undefined"?new Proxy(t,{get:(e,n)=>(typeof gs!="undefined"?gs:e)[n]}):t)(function(t){if(typeof gs!="undefined")return gs.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')}),Pl=(t,e,n)=>(BS(t,typeof e!="symbol"?e+"":e,n),n);var VS=I(require("typescript"),1),ot=I(require("fs"),1),Dh=require("module"),Tt=I(require("path"),1),_h=require("url"),jS=I(require("typescript"),1);var EL=(0,Nh.createRequire)(M);var $S=class{exists(t){throw Se()}readFile(t){throw Se()}readFileBuffer(t){throw Se()}writeFile(t,e,n){throw Se()}removeFile(t){throw Se()}symlink(t,e){throw Se()}readdir(t){throw Se()}lstat(t){throw Se()}stat(t){throw Se()}pwd(){throw Se()}chdir(t){throw Se()}extname(t){throw Se()}copyFile(t,e){throw Se()}moveFile(t,e){throw Se()}ensureDir(t){throw Se()}removeDeep(t){throw Se()}isCaseSensitive(){throw Se()}resolve(...t){throw Se()}dirname(t){throw Se()}join(t,...e){throw Se()}isRoot(t){throw Se()}isRooted(t){throw Se()}relative(t,e){throw Se()}basename(t,e){throw Se()}realpath(t){throw Se()}getDefaultLibLocation(){throw Se()}normalize(t){throw Se()}};function Se(){return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.")}var US=new $S;function bh(t){US=t}var TL=Symbol("AbsolutePath");var qS=class{pwd(){return this.normalize(process.cwd())}chdir(t){process.chdir(t)}resolve(...t){return this.normalize(Tt.resolve(...t))}dirname(t){return this.normalize(Tt.dirname(t))}join(t,...e){return this.normalize(Tt.join(t,...e))}isRoot(t){return this.dirname(t)===this.normalize(t)}isRooted(t){return Tt.isAbsolute(t)}relative(t,e){return this.normalize(Tt.relative(t,e))}basename(t,e){return Tt.basename(t,e)}extname(t){return Tt.extname(t)}normalize(t){return t.replace(/\\/g,"/")}},Ml=typeof __filename!="undefined",kh=Ml?null:M,HS=Ml?__filename:(0,_h.fileURLToPath)(kh),GS=class extends qS{constructor(){super(...arguments);a(this,"_caseSensitive")}isCaseSensitive(){return this._caseSensitive===void 0&&(this._caseSensitive=!ot.default.existsSync(this.normalize(WS(HS)))),this._caseSensitive}exists(e){return ot.default.existsSync(e)}readFile(e){return ot.default.readFileSync(e,"utf8")}readFileBuffer(e){return ot.default.readFileSync(e)}readdir(e){return ot.default.readdirSync(e)}lstat(e){return ot.default.lstatSync(e)}stat(e){return ot.default.statSync(e)}realpath(e){return this.resolve(ot.default.realpathSync(e))}getDefaultLibLocation(){let e=Ml?Ih:(0,Dh.createRequire)(kh);return this.resolve(e.resolve("typescript"),"..")}},Rh=class extends GS{writeFile(t,e,n=!1){ot.default.writeFileSync(t,e,n?{flag:"wx"}:void 0)}removeFile(t){ot.default.unlinkSync(t)}symlink(t,e){ot.default.symlinkSync(t,e)}copyFile(t,e){ot.default.copyFileSync(t,e)}moveFile(t,e){ot.default.renameSync(t,e)}ensureDir(t){ot.default.mkdirSync(t,{recursive:!0})}removeDeep(t){ot.default.rmdirSync(t,{recursive:!0})}};function WS(t){return t.replace(/\w/g,e=>e.toUpperCase()===e?e.toLowerCase():e.toUpperCase())}var ci=I(require("typescript"),1),F=I(require("typescript"),1),xo=I(require("typescript"),1),Fe=I(require("typescript"),1),mp=I(require("typescript"),1),bg=I(require("typescript"),1);C();var Ph=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g"),sn=class t{constructor(){a(this,"element",null);a(this,"classNames",[]);a(this,"attrs",[]);a(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,l=!1;for(Ph.lastIndex=0;i=Ph.exec(e);){if(i[1]){if(l)throw new Error("Nesting :not in a selector is not allowed");l=!0,o=new t,s.notSelectors.push(o)}let c=i[2];if(c){let p=i[3];p==="#"?o.addAttribute("id",c.slice(1)):p==="."?o.addClassName(c.slice(1)):o.setElement(c)}let u=i[4];if(u&&o.addAttribute(o.unescapeAttribute(u),i[6]),i[7]&&(l=!1,o=s),i[8]){if(l)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}},gr=class t{constructor(){a(this,"_elementMap",new Map);a(this,"_elementPartialMap",new Map);a(this,"_classMap",new Map);a(this,"_classPartialMap",new Map);a(this,"_attrValueMap",new Map);a(this,"_attrValuePartialMap",new Map);a(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 oc(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,l=e.attrs,c=new ac(e,n,r);if(i&&(l.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 p=l.length===0&&u===o.length-1,d=o[u];p?this._addTerminal(s._classMap,d,c):s=this._addPartial(s._classPartialMap,d)}if(l)for(let u=0;u<l.length;u+=2){let p=u===l.length-2,d=l[u],m=l[u+1];if(p){let g=s._attrValueMap,E=g.get(d);E||(E=new Map,g.set(d,E)),this._addTerminal(E,m,c)}else{let g=s._attrValuePartialMap,E=g.get(d);E||(E=new Map,g.set(d,E)),s=this._addPartial(E,m)}}}_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 l=0;l<this._listContexts.length;l++)this._listContexts[l].alreadyMatched=!1;if(r=this._matchTerminal(this._elementMap,s,e,n)||r,r=this._matchPartial(this._elementPartialMap,s,e,n)||r,i)for(let l=0;l<i.length;l++){let c=i[l];r=this._matchTerminal(this._classMap,c,e,n)||r,r=this._matchPartial(this._classPartialMap,c,e,n)||r}if(o)for(let l=0;l<o.length;l+=2){let c=o[l],u=o[l+1],p=this._attrValueMap.get(c);u&&(r=this._matchTerminal(p,"",e,n)||r),r=this._matchTerminal(p,u,e,n)||r;let d=this._attrValuePartialMap.get(c);u&&(r=this._matchPartial(d,"",e,n)||r),r=this._matchPartial(d,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 l,c=!1;for(let u=0;u<i.length;u++)l=i[u],c=l.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}},oc=class{constructor(e){a(this,"selectors");a(this,"alreadyMatched",!1);this.selectors=e}},ac=class{constructor(e,n,r){a(this,"selector");a(this,"cbContext");a(this,"listContext");a(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=!gr.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}};var Sn;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"})(Sn||(Sn={}));var Qo;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"})(Qo||(Qo={}));var As;(function(t){t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(As||(As={}));var lc={name:"custom-elements"},cc={name:"no-errors-schema"};var ve;(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"})(ve||(ve={}));var Mh;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(Mh||(Mh={}));function KS(t){let e=t.classNames&&t.classNames.length?[8,...t.classNames]:[];return[t.element&&t.element!=="*"?t.element:"",...t.attrs,...e]}function zS(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 XS(t){let e=KS(t),n=t.notSelectors&&t.notSelectors.length?t.notSelectors.map(r=>zS(r)):[];return e.concat(...n)}function Mu(t){return t?sn.parse(t).map(XS):[]}var fr;function YS(t){return eE(ZS(t.nodes).join("")+`[${t.meaning}]`)}function QS(t){return t.id||Id(t)}function Id(t){let e=new uc,n=t.nodes.map(r=>r.visit(e,null));return Nd(n.join(""),t.meaning)}var Jo=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}">`}},JS=new Jo;function ZS(t){return t.map(e=>e.visit(JS,null))}var uc=class extends Jo{visitIcu(e){let n=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.type}, ${n.join(", ")}}`}};function eE(t){fr!=null||(fr=new TextEncoder);let e=[...fr.encode(t)],n=rE(e,Zo.Big),r=e.length*8,s=new Uint32Array(80),i=1732584193,o=4023233417,l=2562383102,c=271733878,u=3285377520;n[r>>5]|=128<<24-r%32,n[(r+64>>9<<4)+15]=r;for(let p=0;p<n.length;p+=16){let d=i,m=o,g=l,E=c,w=u;for(let x=0;x<80;x++){x<16?s[x]=n[p+x]:s[x]=Ll(s[x-3]^s[x-8]^s[x-14]^s[x-16],1);let _=tE(x,o,l,c),D=_[0],H=_[1],V=[Ll(i,5),D,u,H,s[x]].reduce(ys);u=c,c=l,l=Ll(o,30),o=i,i=V}i=ys(i,d),o=ys(o,m),l=ys(l,g),c=ys(c,E),u=ys(u,w)}return vi(i)+vi(o)+vi(l)+vi(c)+vi(u)}function vi(t){return(t>>>0).toString(16).padStart(8,"0")}function tE(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 Lh(t){fr!=null||(fr=new TextEncoder);let e=fr.encode(t),n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=Oh(n,e.length,0),s=Oh(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 Nd(t,e=""){let n=Lh(t);return e&&(n=BigInt.asUintN(64,n<<BigInt(1))|n>>BigInt(63)&BigInt(1),n+=Lh(e)),BigInt.asUintN(63,n).toString()}function Oh(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=Fh(r,s,n);r=c[0],s=c[1],n=c[2]}let l=e-i;return n+=e,l>=4?(r+=t.getUint32(i,!0),i+=4,l>=8?(s+=t.getUint32(i,!0),i+=4,l>=9&&(n+=t.getUint8(i++)<<8),l>=10&&(n+=t.getUint8(i++)<<16),l===11&&(n+=t.getUint8(i++)<<24)):(l>=5&&(s+=t.getUint8(i++)),l>=6&&(s+=t.getUint8(i++)<<8),l===7&&(s+=t.getUint8(i++)<<16))):(l>=1&&(r+=t.getUint8(i++)),l>=2&&(r+=t.getUint8(i++)<<8),l===3&&(r+=t.getUint8(i++)<<16)),Fh(r,s,n)[2]}function Fh(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 Zo;(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(Zo||(Zo={}));function ys(t,e){return nE(t,e)[1]}function nE(t,e){let n=(t&65535)+(e&65535),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|n&65535]}function Ll(t,e){return t<<e|t>>>32-e}function rE(t,e){let n=t.length+3>>>2,r=[];for(let s=0;s<n;s++)r[s]=sE(t,s*4,e);return r}function Bh(t,e){return e>=t.length?0:t[e]}function sE(t,e,n){let r=0;if(n===Zo.Big)for(let s=0;s<4;s++)r+=Bh(t,e+s)<<24-8*s;else for(let s=0;s<4;s++)r+=Bh(t,e+s)<<8*s;return r}var Mi;(function(t){t[t.None=0]="None",t[t.Const=1]="Const"})(Mi||(Mi={}));var yr=class{constructor(e=Mi.None){a(this,"modifiers");this.modifiers=e}hasModifier(e){return(this.modifiers&e)!==0}},Xt;(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"})(Xt||(Xt={}));var on=class extends yr{constructor(n,r){super(r);a(this,"name");this.name=n}visitType(n,r){return n.visitBuiltinType(this,r)}},ht=class extends yr{constructor(n,r,s=null){super(r);a(this,"value");a(this,"typeParams");this.value=n,this.typeParams=s}visitType(n,r){return n.visitExpressionType(this,r)}},pc=class extends yr{constructor(n,r){super(r);a(this,"of");this.of=n}visitType(n,r){return n.visitArrayType(this,r)}},hc=class extends yr{constructor(n,r){super(r);a(this,"valueType");this.valueType=n||null}visitType(n,r){return n.visitMapType(this,r)}},Ms=class extends yr{constructor(n,r){super(r);a(this,"type");this.type=n}visitType(n,r){return n.visitTransplantedType(this,r)}},_r=new on(Xt.Dynamic),Pt=new on(Xt.Inferred),bd=new on(Xt.Bool),iE=new on(Xt.Int),Za=new on(Xt.Number),Lu=new on(Xt.String),oE=new on(Xt.Function),an=new on(Xt.None),Cn;(function(t){t[t.Minus=0]="Minus",t[t.Plus=1]="Plus"})(Cn||(Cn={}));var b;(function(t){t[t.Equals=0]="Equals",t[t.NotEquals=1]="NotEquals",t[t.Identical=2]="Identical",t[t.NotIdentical=3]="NotIdentical",t[t.Minus=4]="Minus",t[t.Plus=5]="Plus",t[t.Divide=6]="Divide",t[t.Multiply=7]="Multiply",t[t.Modulo=8]="Modulo",t[t.And=9]="And",t[t.Or=10]="Or",t[t.BitwiseOr=11]="BitwiseOr",t[t.BitwiseAnd=12]="BitwiseAnd",t[t.Lower=13]="Lower",t[t.LowerEquals=14]="LowerEquals",t[t.Bigger=15]="Bigger",t[t.BiggerEquals=16]="BiggerEquals",t[t.NullishCoalesce=17]="NullishCoalesce"})(b||(b={}));function Dd(t,e){return t==null||e==null?t==e:t.isEquivalent(e)}function _d(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 dt(t,e){return _d(t,e,(n,r)=>n.isEquivalent(r))}var pe=class{constructor(e,n){a(this,"type");a(this,"sourceSpan");this.type=e||null,this.sourceSpan=n||null}prop(e,n){return new mt(this,e,null,n)}key(e,n,r){return new An(this,e,n,r)}callFn(e,n,r){return new nt(this,e,null,n,r)}instantiate(e,n,r){return new Os(this,e,n,r)}conditional(e,n=null,r){return new ln(this,e,n,null,r)}equals(e,n){return new le(b.Equals,this,e,null,n)}notEquals(e,n){return new le(b.NotEquals,this,e,null,n)}identical(e,n){return new le(b.Identical,this,e,null,n)}notIdentical(e,n){return new le(b.NotIdentical,this,e,null,n)}minus(e,n){return new le(b.Minus,this,e,null,n)}plus(e,n){return new le(b.Plus,this,e,null,n)}divide(e,n){return new le(b.Divide,this,e,null,n)}multiply(e,n){return new le(b.Multiply,this,e,null,n)}modulo(e,n){return new le(b.Modulo,this,e,null,n)}and(e,n){return new le(b.And,this,e,null,n)}bitwiseOr(e,n,r=!0){return new le(b.BitwiseOr,this,e,null,n,r)}bitwiseAnd(e,n,r=!0){return new le(b.BitwiseAnd,this,e,null,n,r)}or(e,n){return new le(b.Or,this,e,null,n)}lower(e,n){return new le(b.Lower,this,e,null,n)}lowerEquals(e,n){return new le(b.LowerEquals,this,e,null,n)}bigger(e,n){return new le(b.Bigger,this,e,null,n)}biggerEquals(e,n){return new le(b.BiggerEquals,this,e,null,n)}isBlank(e){return this.equals(kd,e)}nullishCoalesce(e,n){return new le(b.NullishCoalesce,this,e,null,n)}toStmt(){return new Lt(this,null)}},Mt=class t extends pe{constructor(n,r,s){super(r,s);a(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 Li(this.name,n,null,this.sourceSpan)}},jr=class t extends pe{constructor(n,r,s){super(r,s);a(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())}},G=class t extends pe{constructor(n,r,s){super(r,s);a(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)}},Li=class t extends pe{constructor(n,r,s,i){super(s||r.type,i);a(this,"name");a(this,"value");this.name=n,this.value=r}isEquivalent(n){return n instanceof t&&this.name===n.name&&this.value.isEquivalent(n.value)}isConstant(){return!1}visitExpression(n,r){return n.visitWriteVarExpr(this,r)}clone(){return new t(this.name,this.value.clone(),this.type,this.sourceSpan)}toDeclStmt(n,r){return new rt(this.name,this.value,n,r,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(Pt,Ue.Final)}},Ls=class t extends pe{constructor(n,r,s,i,o){super(i||s.type,o);a(this,"receiver");a(this,"index");a(this,"value");this.receiver=n,this.index=r,this.value=s}isEquivalent(n){return n instanceof t&&this.receiver.isEquivalent(n.receiver)&&this.index.isEquivalent(n.index)&&this.value.isEquivalent(n.value)}isConstant(){return!1}visitExpression(n,r){return n.visitWriteKeyExpr(this,r)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.value.clone(),this.type,this.sourceSpan)}},Kr=class t extends pe{constructor(n,r,s,i,o){super(i||s.type,o);a(this,"receiver");a(this,"name");a(this,"value");this.receiver=n,this.name=r,this.value=s}isEquivalent(n){return n instanceof t&&this.receiver.isEquivalent(n.receiver)&&this.name===n.name&&this.value.isEquivalent(n.value)}isConstant(){return!1}visitExpression(n,r){return n.visitWritePropExpr(this,r)}clone(){return new t(this.receiver.clone(),this.name,this.value.clone(),this.type,this.sourceSpan)}},nt=class t extends pe{constructor(n,r,s,i,o=!1){super(s,i);a(this,"fn");a(this,"args");a(this,"pure");this.fn=n,this.args=r,this.pure=o}get receiver(){return this.fn}isEquivalent(n){return n instanceof t&&this.fn.isEquivalent(n.fn)&&dt(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)}},Oi=class t extends pe{constructor(n,r,s,i){super(s,i);a(this,"tag");a(this,"template");this.tag=n,this.template=r}isEquivalent(n){return n instanceof t&&this.tag.isEquivalent(n.tag)&&_d(this.template.elements,n.template.elements,(r,s)=>r.text===s.text)&&dt(this.template.expressions,n.template.expressions)}isConstant(){return!1}visitExpression(n,r){return n.visitTaggedTemplateExpr(this,r)}clone(){return new t(this.tag.clone(),this.template.clone(),this.type,this.sourceSpan)}},Os=class t extends pe{constructor(n,r,s,i){super(s,i);a(this,"classExpr");a(this,"args");this.classExpr=n,this.args=r}isEquivalent(n){return n instanceof t&&this.classExpr.isEquivalent(n.classExpr)&&dt(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)}},Pe=class t extends pe{constructor(n,r,s){super(r,s);a(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)}},ea=class t{constructor(e,n){a(this,"elements");a(this,"expressions");this.elements=e,this.expressions=n}clone(){return new t(this.elements.map(e=>e.clone()),this.expressions.map(e=>e.clone()))}},ta=class t{constructor(e,n,r){a(this,"text");a(this,"sourceSpan");a(this,"rawText");var s;this.text=e,this.sourceSpan=n,this.rawText=(s=r!=null?r:n==null?void 0:n.toString())!=null?s:fc(zo(e))}clone(){return new t(this.text,this.sourceSpan,this.rawText)}},mr=class{constructor(e,n){a(this,"text");a(this,"sourceSpan");this.text=e,this.sourceSpan=n}},Vr=class{constructor(e,n,r){a(this,"text");a(this,"sourceSpan");a(this,"associatedMessage");this.text=e,this.sourceSpan=n,this.associatedMessage=r}},aE="|",$h="@@",lE="\u241F",Fi=class t extends pe{constructor(n,r,s,i,o){super(Lu,o);a(this,"metaBlock");a(this,"messageParts");a(this,"placeHolderNames");a(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}${aE}${n}`),this.metaBlock.customId&&(n=`${n}${$h}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(r=>{n=`${n}${lE}${r}`}),Uh(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+=`${$h}${Nd(r.associatedMessage.messageString,r.associatedMessage.meaning)}`),Uh(i,s.text,this.getMessagePartSourceSpan(n))}},zo=t=>t.replace(/\\/g,"\\\\"),cE=t=>t.replace(/^:/,"\\:"),uE=t=>t.replace(/:/g,"\\:"),fc=t=>t.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function Uh(t,e,n){return t===""?{cooked:e,raw:fc(cE(zo(e))),range:n}:{cooked:`:${t}:${e}`,raw:fc(`:${uE(zo(t))}:${zo(e)}`),range:n}}var Ye=class t extends pe{constructor(n,r,s=null,i){super(r,i);a(this,"value");a(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)}},na=class{constructor(e,n){a(this,"moduleName");a(this,"name");this.moduleName=e,this.name=n}},ln=class t extends pe{constructor(n,r,s=null,i,o){super(i||r.type,o);a(this,"condition");a(this,"falseCase");a(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)&&Dd(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)}},dc=class t extends pe{constructor(n,r,s){super(null,r);a(this,"url");a(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)}},Fs=class t extends pe{constructor(n,r){super(bd,r);a(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)}},je=class t{constructor(e,n=null){a(this,"name");a(this,"type");this.name=e,this.type=n}isEquivalent(e){return this.name===e.name}clone(){return new t(this.name,this.type)}},Tn=class t extends pe{constructor(n,r,s,i,o){super(s,i);a(this,"params");a(this,"statements");a(this,"name");this.params=n,this.statements=r,this.name=o}isEquivalent(n){return(n instanceof t||n instanceof $s)&&dt(this.params,n.params)&&dt(this.statements,n.statements)}isConstant(){return!1}visitExpression(n,r){return n.visitFunctionExpr(this,r)}toDeclStmt(n,r){return new $s(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)}},Gn=class t extends pe{constructor(n,r,s,i){super(s,i);a(this,"params");a(this,"body");this.params=n,this.body=r}isEquivalent(n){return!(n instanceof t)||!dt(this.params,n.params)?!1:this.body instanceof pe&&n.body instanceof pe?this.body.isEquivalent(n.body):Array.isArray(this.body)&&Array.isArray(n.body)?dt(this.body,n.body):!1}isConstant(){return!1}visitExpression(n,r){return n.visitArrowFunctionExpr(this,r)}clone(){return new t(this.params.map(n=>n.clone()),Array.isArray(this.body)?this.body:this.body.clone(),this.type,this.sourceSpan)}toDeclStmt(n,r){return new rt(n,this,Pt,r,this.sourceSpan)}},vr=class t extends pe{constructor(n,r,s,i,o=!0){super(s||Za,i);a(this,"operator");a(this,"expr");a(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)}},le=class t extends pe{constructor(n,r,s,i,o,l=!0){super(i||r.type,o);a(this,"operator");a(this,"rhs");a(this,"parens");a(this,"lhs");this.operator=n,this.rhs=s,this.parens=l,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,this.parens)}},mt=class t extends pe{constructor(n,r,s,i){super(s,i);a(this,"receiver");a(this,"name");this.receiver=n,this.name=r}get index(){return this.name}isEquivalent(n){return n instanceof t&&this.receiver.isEquivalent(n.receiver)&&this.name===n.name}isConstant(){return!1}visitExpression(n,r){return n.visitReadPropExpr(this,r)}set(n){return new Kr(this.receiver,this.name,n,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},An=class t extends pe{constructor(n,r,s,i){super(s,i);a(this,"receiver");a(this,"index");this.receiver=n,this.index=r}isEquivalent(n){return n instanceof t&&this.receiver.isEquivalent(n.receiver)&&this.index.isEquivalent(n.index)}isConstant(){return!1}visitExpression(n,r){return n.visitReadKeyExpr(this,r)}set(n){return new Ls(this.receiver,this.index,n,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},gt=class t extends pe{constructor(n,r,s){super(r,s);a(this,"entries");this.entries=n}isConstant(){return this.entries.every(n=>n.isConstant())}isEquivalent(n){return n instanceof t&&dt(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)}},zr=class t{constructor(e,n,r){a(this,"key");a(this,"value");a(this,"quoted");this.key=e,this.value=n,this.quoted=r}isEquivalent(e){return this.key===e.key&&this.value.isEquivalent(e.value)}clone(){return new t(this.key,this.value.clone(),this.quoted)}},Yt=class t extends pe{constructor(n,r,s){super(r,s);a(this,"entries");a(this,"valueType",null);this.entries=n,r&&(this.valueType=r.valueType)}isEquivalent(n){return n instanceof t&&dt(this.entries,n.entries)}isConstant(){return this.entries.every(n=>n.value.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)}},mc=class t extends pe{constructor(n,r){super(n[n.length-1].type,r);a(this,"parts");this.parts=n}isEquivalent(n){return n instanceof t&&dt(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()))}},Bs=new Pe(null,null,null),kd=new Pe(null,Pt,null),Ue;(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"})(Ue||(Ue={}));var Bi=class{constructor(e,n,r){a(this,"text");a(this,"multiline");a(this,"trailingNewline");this.text=e,this.multiline=n,this.trailingNewline=r}toString(){return this.multiline?` ${this.text} `:this.text}},$i=class extends Bi{constructor(n){super("",!0,!0);a(this,"tags");this.tags=n}toString(){return mE(this.tags)}},Sr=class{constructor(e=Ue.None,n=null,r){a(this,"modifiers");a(this,"sourceSpan");a(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)}},rt=class t extends Sr{constructor(n,r,s,i,o,l){super(i,o,l);a(this,"name");a(this,"value");a(this,"type");this.name=n,this.value=r,this.type=s||r&&r.type||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)}},$s=class t extends Sr{constructor(n,r,s,i,o,l,c){super(o,l,c);a(this,"name");a(this,"params");a(this,"statements");a(this,"type");this.name=n,this.params=r,this.statements=s,this.type=i||null}isEquivalent(n){return n instanceof t&&dt(this.params,n.params)&&dt(this.statements,n.statements)}visitStatement(n,r){return n.visitDeclareFunctionStmt(this,r)}},Lt=class t extends Sr{constructor(n,r,s){super(Ue.None,r,s);a(this,"expr");this.expr=n}isEquivalent(n){return n instanceof t&&this.expr.isEquivalent(n.expr)}visitStatement(n,r){return n.visitExpressionStmt(this,r)}},Xe=class t extends Sr{constructor(n,r=null,s){super(Ue.None,r,s);a(this,"value");this.value=n}isEquivalent(n){return n instanceof t&&this.value.isEquivalent(n.value)}visitStatement(n,r){return n.visitReturnStmt(this,r)}},Ui=class t extends Sr{constructor(n,r,s=[],i,o){super(Ue.None,i,o);a(this,"condition");a(this,"trueCase");a(this,"falseCase");this.condition=n,this.trueCase=r,this.falseCase=s}isEquivalent(n){return n instanceof t&&this.condition.isEquivalent(n.condition)&&dt(this.trueCase,n.trueCase)&&dt(this.falseCase,n.falseCase)}visitStatement(n,r){return n.visitIfStmt(this,r)}},gc=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}visitTypeofExpr(e,n){return this.visitExpression(e,n)}visitReadVarExpr(e,n){return this.visitExpression(e,n)}visitWriteVarExpr(e,n){return e.value.visitExpression(this,n),this.visitExpression(e,n)}visitWriteKeyExpr(e,n){return e.receiver.visitExpression(this,n),e.index.visitExpression(this,n),e.value.visitExpression(this,n),this.visitExpression(e,n)}visitWritePropExpr(e,n){return e.receiver.visitExpression(this,n),e.value.visitExpression(this,n),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)}visitTaggedTemplateExpr(e,n){return e.tag.visitExpression(this,n),this.visitAllExpressions(e.template.expressions,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)}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)}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.value.visitExpression(this,n)),this.visitExpression(e,n)}visitCommaExpr(e,n){return this.visitAllExpressions(e.parts,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 Rd(t,e=!1,n=!0){return new Bi(t,e,n)}function Pd(t=[]){return new $i(t)}function Y(t,e,n){return new Mt(t,e,n)}function B(t,e=null,n){return new Ye(t,null,e,n)}function pE(t,e,n){return t!=null?Ke(B(t,e,null),n):null}function Ke(t,e,n){return new ht(t,e,n)}function hE(t,e){return new Ms(t,e)}function ri(t){return new jr(t)}function ue(t,e,n){return new gt(t,e,n)}function st(t,e=null){return new Yt(t.map(n=>new zr(n.key,n.value,n.quoted)),e,null)}function fE(t,e,n,r){return new vr(t,e,n,r)}function Md(t,e){return new Fs(t,e)}function Wn(t,e,n,r,s){return new Tn(t,e,n,r,s)}function Qt(t,e,n,r){return new Gn(t,e,n,r)}function vo(t,e,n,r,s){return new Ui(t,e,n,r,s)}function Ld(t,e,n,r){return new Oi(t,e,n,r)}function v(t,e,n){return new Pe(t,e,n)}function Od(t,e,n,r,s){return new Fi(t,e,n,r,s)}function dE(t){return t instanceof Pe&&t.value===null}function Vh(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 mE(t){if(t.length===0)return"";if(t.length===1&&t[0].tagName&&!t[0].text)return`*${Vh(t[0])} `;let e=`*
|
|
2
|
-
`;for(let n of t)e+=" *",e+=
|
|
1
|
+
"use strict";var MS=Object.create;var Ei=Object.defineProperty,LS=Object.defineProperties,OS=Object.getOwnPropertyDescriptor,FS=Object.getOwnPropertyDescriptors,BS=Object.getOwnPropertyNames,Dh=Object.getOwnPropertySymbols,$S=Object.getPrototypeOf,_h=Object.prototype.hasOwnProperty,US=Object.prototype.propertyIsEnumerable;var ql=(t,e,n)=>e in t?Ei(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,T=(t,e)=>{for(var n in e||(e={}))_h.call(e,n)&&ql(t,n,e[n]);if(Dh)for(var n of Dh(e))US.call(e,n)&&ql(t,n,e[n]);return t},ye=(t,e)=>LS(t,FS(e));var VS=(t,e)=>()=>(t&&(e=t(t=0)),e);var z=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),qS=(t,e)=>{for(var n in e)Ei(t,n,{get:e[n],enumerable:!0})},kh=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of BS(e))!_h.call(t,s)&&s!==n&&Ei(t,s,{get:()=>e[s],enumerable:!(r=OS(e,s))||r.enumerable});return t};var I=(t,e,n)=>(n=t!=null?MS($S(t)):{},kh(e||!t||!t.__esModule?Ei(n,"default",{value:t,enumerable:!0}):n,t)),HS=t=>kh(Ei({},"__esModule",{value:!0}),t);var a=(t,e,n)=>ql(t,typeof e!="symbol"?e+"":e,n);var M,C=VS(()=>{"use strict";M=require("url").pathToFileURL(__filename)});var $o=z((XF,by)=>{C();var yk="2.0.0",vk=Number.MAX_SAFE_INTEGER||9007199254740991,Sk=16,Ek=250,wk=["major","premajor","minor","preminor","patch","prepatch","prerelease"];by.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Sk,MAX_SAFE_BUILD_LENGTH:Ek,MAX_SAFE_INTEGER:vk,RELEASE_TYPES:wk,SEMVER_SPEC_VERSION:yk,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Uo=z((QF,Dy)=>{C();var Tk=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Dy.exports=Tk});var gi=z((Ln,_y)=>{C();var{MAX_SAFE_COMPONENT_LENGTH:Qp,MAX_SAFE_BUILD_LENGTH:xk,MAX_LENGTH:Ck}=$o(),Ak=Uo();Ln=_y.exports={};var Ik=Ln.re=[],Nk=Ln.safeRe=[],L=Ln.src=[],bk=Ln.safeSrc=[],O=Ln.t={},Dk=0,Jp="[a-zA-Z0-9-]",_k=[["\\s",1],["\\d",Ck],[Jp,xk]],kk=t=>{for(let[e,n]of _k)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},ee=(t,e,n)=>{let r=kk(e),s=Dk++;Ak(t,s,e),O[t]=s,L[s]=e,bk[s]=r,Ik[s]=new RegExp(e,n?"g":void 0),Nk[s]=new RegExp(r,n?"g":void 0)};ee("NUMERICIDENTIFIER","0|[1-9]\\d*");ee("NUMERICIDENTIFIERLOOSE","\\d+");ee("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Jp}*`);ee("MAINVERSION",`(${L[O.NUMERICIDENTIFIER]})\\.(${L[O.NUMERICIDENTIFIER]})\\.(${L[O.NUMERICIDENTIFIER]})`);ee("MAINVERSIONLOOSE",`(${L[O.NUMERICIDENTIFIERLOOSE]})\\.(${L[O.NUMERICIDENTIFIERLOOSE]})\\.(${L[O.NUMERICIDENTIFIERLOOSE]})`);ee("PRERELEASEIDENTIFIER",`(?:${L[O.NUMERICIDENTIFIER]}|${L[O.NONNUMERICIDENTIFIER]})`);ee("PRERELEASEIDENTIFIERLOOSE",`(?:${L[O.NUMERICIDENTIFIERLOOSE]}|${L[O.NONNUMERICIDENTIFIER]})`);ee("PRERELEASE",`(?:-(${L[O.PRERELEASEIDENTIFIER]}(?:\\.${L[O.PRERELEASEIDENTIFIER]})*))`);ee("PRERELEASELOOSE",`(?:-?(${L[O.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${L[O.PRERELEASEIDENTIFIERLOOSE]})*))`);ee("BUILDIDENTIFIER",`${Jp}+`);ee("BUILD",`(?:\\+(${L[O.BUILDIDENTIFIER]}(?:\\.${L[O.BUILDIDENTIFIER]})*))`);ee("FULLPLAIN",`v?${L[O.MAINVERSION]}${L[O.PRERELEASE]}?${L[O.BUILD]}?`);ee("FULL",`^${L[O.FULLPLAIN]}$`);ee("LOOSEPLAIN",`[v=\\s]*${L[O.MAINVERSIONLOOSE]}${L[O.PRERELEASELOOSE]}?${L[O.BUILD]}?`);ee("LOOSE",`^${L[O.LOOSEPLAIN]}$`);ee("GTLT","((?:<|>)?=?)");ee("XRANGEIDENTIFIERLOOSE",`${L[O.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ee("XRANGEIDENTIFIER",`${L[O.NUMERICIDENTIFIER]}|x|X|\\*`);ee("XRANGEPLAIN",`[v=\\s]*(${L[O.XRANGEIDENTIFIER]})(?:\\.(${L[O.XRANGEIDENTIFIER]})(?:\\.(${L[O.XRANGEIDENTIFIER]})(?:${L[O.PRERELEASE]})?${L[O.BUILD]}?)?)?`);ee("XRANGEPLAINLOOSE",`[v=\\s]*(${L[O.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[O.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[O.XRANGEIDENTIFIERLOOSE]})(?:${L[O.PRERELEASELOOSE]})?${L[O.BUILD]}?)?)?`);ee("XRANGE",`^${L[O.GTLT]}\\s*${L[O.XRANGEPLAIN]}$`);ee("XRANGELOOSE",`^${L[O.GTLT]}\\s*${L[O.XRANGEPLAINLOOSE]}$`);ee("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Qp}})(?:\\.(\\d{1,${Qp}}))?(?:\\.(\\d{1,${Qp}}))?`);ee("COERCE",`${L[O.COERCEPLAIN]}(?:$|[^\\d])`);ee("COERCEFULL",L[O.COERCEPLAIN]+`(?:${L[O.PRERELEASE]})?(?:${L[O.BUILD]})?(?:$|[^\\d])`);ee("COERCERTL",L[O.COERCE],!0);ee("COERCERTLFULL",L[O.COERCEFULL],!0);ee("LONETILDE","(?:~>?)");ee("TILDETRIM",`(\\s*)${L[O.LONETILDE]}\\s+`,!0);Ln.tildeTrimReplace="$1~";ee("TILDE",`^${L[O.LONETILDE]}${L[O.XRANGEPLAIN]}$`);ee("TILDELOOSE",`^${L[O.LONETILDE]}${L[O.XRANGEPLAINLOOSE]}$`);ee("LONECARET","(?:\\^)");ee("CARETTRIM",`(\\s*)${L[O.LONECARET]}\\s+`,!0);Ln.caretTrimReplace="$1^";ee("CARET",`^${L[O.LONECARET]}${L[O.XRANGEPLAIN]}$`);ee("CARETLOOSE",`^${L[O.LONECARET]}${L[O.XRANGEPLAINLOOSE]}$`);ee("COMPARATORLOOSE",`^${L[O.GTLT]}\\s*(${L[O.LOOSEPLAIN]})$|^$`);ee("COMPARATOR",`^${L[O.GTLT]}\\s*(${L[O.FULLPLAIN]})$|^$`);ee("COMPARATORTRIM",`(\\s*)${L[O.GTLT]}\\s*(${L[O.LOOSEPLAIN]}|${L[O.XRANGEPLAIN]})`,!0);Ln.comparatorTrimReplace="$1$2$3";ee("HYPHENRANGE",`^\\s*(${L[O.XRANGEPLAIN]})\\s+-\\s+(${L[O.XRANGEPLAIN]})\\s*$`);ee("HYPHENRANGELOOSE",`^\\s*(${L[O.XRANGEPLAINLOOSE]})\\s+-\\s+(${L[O.XRANGEPLAINLOOSE]})\\s*$`);ee("STAR","(<|>)?=?\\s*\\*");ee("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ee("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var _l=z((e1,ky)=>{C();var Rk=Object.freeze({loose:!0}),Pk=Object.freeze({}),Mk=t=>t?typeof t!="object"?Rk:t:Pk;ky.exports=Mk});var Zp=z((n1,My)=>{C();var Ry=/^[0-9]+$/,Py=(t,e)=>{let n=Ry.test(t),r=Ry.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:t<e?-1:1},Lk=(t,e)=>Py(e,t);My.exports={compareIdentifiers:Py,rcompareIdentifiers:Lk}});var ut=z((s1,By)=>{C();var kl=Uo(),{MAX_LENGTH:Ly,MAX_SAFE_INTEGER:Rl}=$o(),{safeRe:Oy,safeSrc:Fy,t:Pl}=gi(),Ok=_l(),{compareIdentifiers:yi}=Zp(),eh=class t{constructor(e,n){if(n=Ok(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>Ly)throw new TypeError(`version is longer than ${Ly} characters`);kl("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let r=e.trim().match(n.loose?Oy[Pl.LOOSE]:Oy[Pl.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>Rl||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Rl||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Rl||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<Rl)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(kl("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)),yi(this.major,e.major)||yi(this.minor,e.minor)||yi(this.patch,e.patch)}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(kl("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 yi(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(kl("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 yi(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=new RegExp(`^${this.options.loose?Fy[Pl.PRERELEASELOOSE]:Fy[Pl.PRERELEASE]}$`),i=`-${n}`.match(s);if(!i||i[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];r===!1&&(i=[n]),yi(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):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}};By.exports=eh});var ms=z((o1,Uy)=>{C();var $y=ut(),Fk=(t,e,n=!1)=>{if(t instanceof $y)return t;try{return new $y(t,e)}catch(r){if(!n)return null;throw r}};Uy.exports=Fk});var qy=z((l1,Vy)=>{C();var Bk=ms(),$k=(t,e)=>{let n=Bk(t,e);return n?n.version:null};Vy.exports=$k});var Gy=z((u1,Hy)=>{C();var Uk=ms(),Vk=(t,e)=>{let n=Uk(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};Hy.exports=Vk});var Ky=z((h1,jy)=>{C();var Wy=ut(),qk=(t,e,n,r,s)=>{typeof n=="string"&&(s=r,r=n,n=void 0);try{return new Wy(t instanceof Wy?t.version:t,n).inc(e,r,s).version}catch(i){return null}};jy.exports=qk});var Yy=z((d1,Xy)=>{C();var zy=ms(),Hk=(t,e)=>{let n=zy(t,null,!0),r=zy(e,null,!0),s=n.compare(r);if(s===0)return null;let i=s>0,o=i?n:r,l=i?r:n,c=!!o.prerelease.length;if(!!l.prerelease.length&&!c){if(!l.patch&&!l.minor)return"major";if(l.compareMain(o)===0)return l.minor&&!l.patch?"minor":"patch"}let p=c?"pre":"";return n.major!==r.major?p+"major":n.minor!==r.minor?p+"minor":n.patch!==r.patch?p+"patch":"prerelease"};Xy.exports=Hk});var Jy=z((g1,Qy)=>{C();var Gk=ut(),Wk=(t,e)=>new Gk(t,e).major;Qy.exports=Wk});var ev=z((v1,Zy)=>{C();var jk=ut(),Kk=(t,e)=>new jk(t,e).minor;Zy.exports=Kk});var nv=z((E1,tv)=>{C();var zk=ut(),Xk=(t,e)=>new zk(t,e).patch;tv.exports=Xk});var sv=z((T1,rv)=>{C();var Yk=ms(),Qk=(t,e)=>{let n=Yk(t,e);return n&&n.prerelease.length?n.prerelease:null};rv.exports=Qk});var Zt=z((C1,ov)=>{C();var iv=ut(),Jk=(t,e,n)=>new iv(t,n).compare(new iv(e,n));ov.exports=Jk});var lv=z((I1,av)=>{C();var Zk=Zt(),eR=(t,e,n)=>Zk(e,t,n);av.exports=eR});var uv=z((b1,cv)=>{C();var tR=Zt(),nR=(t,e)=>tR(t,e,!0);cv.exports=nR});var Ml=z((_1,hv)=>{C();var pv=ut(),rR=(t,e,n)=>{let r=new pv(t,n),s=new pv(e,n);return r.compare(s)||r.compareBuild(s)};hv.exports=rR});var dv=z((R1,fv)=>{C();var sR=Ml(),iR=(t,e)=>t.sort((n,r)=>sR(n,r,e));fv.exports=iR});var gv=z((M1,mv)=>{C();var oR=Ml(),aR=(t,e)=>t.sort((n,r)=>oR(r,n,e));mv.exports=aR});var Vo=z((O1,yv)=>{C();var lR=Zt(),cR=(t,e,n)=>lR(t,e,n)>0;yv.exports=cR});var Ll=z((B1,vv)=>{C();var uR=Zt(),pR=(t,e,n)=>uR(t,e,n)<0;vv.exports=pR});var th=z((U1,Sv)=>{C();var hR=Zt(),fR=(t,e,n)=>hR(t,e,n)===0;Sv.exports=fR});var nh=z((q1,Ev)=>{C();var dR=Zt(),mR=(t,e,n)=>dR(t,e,n)!==0;Ev.exports=mR});var Ol=z((G1,wv)=>{C();var gR=Zt(),yR=(t,e,n)=>gR(t,e,n)>=0;wv.exports=yR});var Fl=z((j1,Tv)=>{C();var vR=Zt(),SR=(t,e,n)=>vR(t,e,n)<=0;Tv.exports=SR});var rh=z((z1,xv)=>{C();var ER=th(),wR=nh(),TR=Vo(),xR=Ol(),CR=Ll(),AR=Fl(),IR=(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 ER(t,n,r);case"!=":return wR(t,n,r);case">":return TR(t,n,r);case">=":return xR(t,n,r);case"<":return CR(t,n,r);case"<=":return AR(t,n,r);default:throw new TypeError(`Invalid operator: ${e}`)}};xv.exports=IR});var Av=z((Y1,Cv)=>{C();var NR=ut(),bR=ms(),{safeRe:Bl,t:$l}=gi(),DR=(t,e)=>{if(t instanceof NR)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?Bl[$l.COERCEFULL]:Bl[$l.COERCE]);else{let c=e.includePrerelease?Bl[$l.COERCERTLFULL]:Bl[$l.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]}`:"",l=e.includePrerelease&&n[6]?`+${n[6]}`:"";return bR(`${r}.${s}.${i}${o}${l}`,e)};Cv.exports=DR});var Nv=z((J1,Iv)=>{C();var sh=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}};Iv.exports=sh});var en=z((eB,kv)=>{C();var _R=/\s+/g,ih=class t{constructor(e,n){if(n=RR(n),e instanceof t)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new t(e.raw,n);if(e instanceof oh)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(_R," "),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=>!Dv(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&&$R(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){let r=((this.options.includePrerelease&&FR)|(this.options.loose&&BR))+":"+e,s=bv.get(r);if(s)return s;let i=this.options.loose,o=i?kt[Tt.HYPHENRANGELOOSE]:kt[Tt.HYPHENRANGE];e=e.replace(o,XR(this.options.includePrerelease)),Ne("hyphen replace",e),e=e.replace(kt[Tt.COMPARATORTRIM],MR),Ne("comparator trim",e),e=e.replace(kt[Tt.TILDETRIM],LR),Ne("tilde trim",e),e=e.replace(kt[Tt.CARETTRIM],OR),Ne("caret trim",e);let l=e.split(" ").map(d=>UR(d,this.options)).join(" ").split(/\s+/).map(d=>zR(d,this.options));i&&(l=l.filter(d=>(Ne("loose invalid filter",d,this.options),!!d.match(kt[Tt.COMPARATORLOOSE])))),Ne("range list",l);let c=new Map,u=l.map(d=>new oh(d,this.options));for(let d of u){if(Dv(d))return[d];c.set(d.value,d)}c.size>1&&c.has("")&&c.delete("");let p=[...c.values()];return bv.set(r,p),p}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(r=>_v(r,n)&&e.set.some(s=>_v(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 PR(e,this.options)}catch(n){return!1}for(let n=0;n<this.set.length;n++)if(YR(this.set[n],e,this.options))return!0;return!1}};kv.exports=ih;var kR=Nv(),bv=new kR,RR=_l(),oh=qo(),Ne=Uo(),PR=ut(),{safeRe:kt,t:Tt,comparatorTrimReplace:MR,tildeTrimReplace:LR,caretTrimReplace:OR}=gi(),{FLAG_INCLUDE_PRERELEASE:FR,FLAG_LOOSE:BR}=$o(),Dv=t=>t.value==="<0.0.0-0",$R=t=>t.value==="",_v=(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},UR=(t,e)=>(Ne("comp",t,e),t=HR(t,e),Ne("caret",t),t=VR(t,e),Ne("tildes",t),t=WR(t,e),Ne("xrange",t),t=KR(t,e),Ne("stars",t),t),xt=t=>!t||t.toLowerCase()==="x"||t==="*",VR=(t,e)=>t.trim().split(/\s+/).map(n=>qR(n,e)).join(" "),qR=(t,e)=>{let n=e.loose?kt[Tt.TILDELOOSE]:kt[Tt.TILDE];return t.replace(n,(r,s,i,o,l)=>{Ne("tilde",t,r,s,i,o,l);let c;return xt(s)?c="":xt(i)?c=`>=${s}.0.0 <${+s+1}.0.0-0`:xt(o)?c=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:l?(Ne("replaceTilde pr",l),c=`>=${s}.${i}.${o}-${l} <${s}.${+i+1}.0-0`):c=`>=${s}.${i}.${o} <${s}.${+i+1}.0-0`,Ne("tilde return",c),c})},HR=(t,e)=>t.trim().split(/\s+/).map(n=>GR(n,e)).join(" "),GR=(t,e)=>{Ne("caret",t,e);let n=e.loose?kt[Tt.CARETLOOSE]:kt[Tt.CARET],r=e.includePrerelease?"-0":"";return t.replace(n,(s,i,o,l,c)=>{Ne("caret",t,s,i,o,l,c);let u;return xt(i)?u="":xt(o)?u=`>=${i}.0.0${r} <${+i+1}.0.0-0`:xt(l)?i==="0"?u=`>=${i}.${o}.0${r} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.0${r} <${+i+1}.0.0-0`:c?(Ne("replaceCaret pr",c),i==="0"?o==="0"?u=`>=${i}.${o}.${l}-${c} <${i}.${o}.${+l+1}-0`:u=`>=${i}.${o}.${l}-${c} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${l}-${c} <${+i+1}.0.0-0`):(Ne("no pr"),i==="0"?o==="0"?u=`>=${i}.${o}.${l}${r} <${i}.${o}.${+l+1}-0`:u=`>=${i}.${o}.${l}${r} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${l} <${+i+1}.0.0-0`),Ne("caret return",u),u})},WR=(t,e)=>(Ne("replaceXRanges",t,e),t.split(/\s+/).map(n=>jR(n,e)).join(" ")),jR=(t,e)=>{t=t.trim();let n=e.loose?kt[Tt.XRANGELOOSE]:kt[Tt.XRANGE];return t.replace(n,(r,s,i,o,l,c)=>{Ne("xRange",t,r,s,i,o,l,c);let u=xt(i),p=u||xt(o),d=p||xt(l),m=d;return s==="="&&m&&(s=""),c=e.includePrerelease?"-0":"",u?s===">"||s==="<"?r="<0.0.0-0":r="*":s&&m?(p&&(o=0),l=0,s===">"?(s=">=",p?(i=+i+1,o=0,l=0):(o=+o+1,l=0)):s==="<="&&(s="<",p?i=+i+1:o=+o+1),s==="<"&&(c="-0"),r=`${s+i}.${o}.${l}${c}`):p?r=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(r=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),Ne("xRange return",r),r})},KR=(t,e)=>(Ne("replaceStars",t,e),t.trim().replace(kt[Tt.STAR],"")),zR=(t,e)=>(Ne("replaceGTE0",t,e),t.trim().replace(kt[e.includePrerelease?Tt.GTE0PRE:Tt.GTE0],"")),XR=t=>(e,n,r,s,i,o,l,c,u,p,d,m)=>(xt(r)?n="":xt(s)?n=`>=${r}.0.0${t?"-0":""}`:xt(i)?n=`>=${r}.${s}.0${t?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,xt(u)?c="":xt(p)?c=`<${+u+1}.0.0-0`:xt(d)?c=`<${u}.${+p+1}.0-0`:m?c=`<=${u}.${p}.${d}-${m}`:t?c=`<${u}.${p}.${+d+1}-0`:c=`<=${c}`,`${n} ${c}`.trim()),YR=(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(Ne(t[r].semver),t[r].semver!==oh.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 qo=z((nB,Fv)=>{C();var Ho=Symbol("SemVer ANY"),ch=class t{static get ANY(){return Ho}constructor(e,n){if(n=Rv(n),e instanceof t){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),lh("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===Ho?this.value="":this.value=this.operator+this.semver.version,lh("comp",this)}parse(e){let n=this.options.loose?Pv[Mv.COMPARATORLOOSE]:Pv[Mv.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 Lv(r[2],this.options.loose):this.semver=Ho}toString(){return this.value}test(e){if(lh("Comparator.test",e,this.options.loose),this.semver===Ho||e===Ho)return!0;if(typeof e=="string")try{e=new Lv(e,this.options)}catch(n){return!1}return ah(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 Ov(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new Ov(this.value,n).test(e.semver):(n=Rv(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("=")||ah(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||ah(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Fv.exports=ch;var Rv=_l(),{safeRe:Pv,t:Mv}=gi(),ah=rh(),lh=Uo(),Lv=ut(),Ov=en()});var Go=z((sB,Bv)=>{C();var QR=en(),JR=(t,e,n)=>{try{e=new QR(e,n)}catch(r){return!1}return e.test(t)};Bv.exports=JR});var Uv=z((oB,$v)=>{C();var ZR=en(),eP=(t,e)=>new ZR(t,e).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));$v.exports=eP});var qv=z((lB,Vv)=>{C();var tP=ut(),nP=en(),rP=(t,e,n)=>{let r=null,s=null,i=null;try{i=new nP(e,n)}catch(o){return null}return t.forEach(o=>{i.test(o)&&(!r||s.compare(o)===-1)&&(r=o,s=new tP(r,n))}),r};Vv.exports=rP});var Gv=z((uB,Hv)=>{C();var sP=ut(),iP=en(),oP=(t,e,n)=>{let r=null,s=null,i=null;try{i=new iP(e,n)}catch(o){return null}return t.forEach(o=>{i.test(o)&&(!r||s.compare(o)===1)&&(r=o,s=new sP(r,n))}),r};Hv.exports=oP});var Kv=z((hB,jv)=>{C();var uh=ut(),aP=en(),Wv=Vo(),lP=(t,e)=>{t=new aP(t,e);let n=new uh("0.0.0");if(t.test(n)||(n=new uh("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 l=new uh(o.semver.version);switch(o.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!i||Wv(l,i))&&(i=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!n||Wv(n,i))&&(n=i)}return n&&t.test(n)?n:null};jv.exports=lP});var Xv=z((dB,zv)=>{C();var cP=en(),uP=(t,e)=>{try{return new cP(t,e).range||"*"}catch(n){return null}};zv.exports=uP});var Ul=z((gB,Zv)=>{C();var pP=ut(),Jv=qo(),{ANY:hP}=Jv,fP=en(),dP=Go(),Yv=Vo(),Qv=Ll(),mP=Fl(),gP=Ol(),yP=(t,e,n,r)=>{t=new pP(t,r),e=new fP(e,r);let s,i,o,l,c;switch(n){case">":s=Yv,i=mP,o=Qv,l=">",c=">=";break;case"<":s=Qv,i=gP,o=Yv,l="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(dP(t,e,r))return!1;for(let u=0;u<e.set.length;++u){let p=e.set[u],d=null,m=null;if(p.forEach(g=>{g.semver===hP&&(g=new Jv(">=0.0.0")),d=d||g,m=m||g,s(g.semver,d.semver,r)?d=g:o(g.semver,m.semver,r)&&(m=g)}),d.operator===l||d.operator===c||(!m.operator||m.operator===l)&&i(t,m.semver))return!1;if(m.operator===c&&o(t,m.semver))return!1}return!0};Zv.exports=yP});var tS=z((vB,eS)=>{C();var vP=Ul(),SP=(t,e,n)=>vP(t,e,">",n);eS.exports=SP});var rS=z((EB,nS)=>{C();var EP=Ul(),wP=(t,e,n)=>EP(t,e,"<",n);nS.exports=wP});var oS=z((TB,iS)=>{C();var sS=en(),TP=(t,e,n)=>(t=new sS(t,n),e=new sS(e,n),t.intersects(e,n));iS.exports=TP});var lS=z((CB,aS)=>{C();var xP=Go(),CP=Zt();aS.exports=(t,e,n)=>{let r=[],s=null,i=null,o=t.sort((p,d)=>CP(p,d,n));for(let p of o)xP(p,e,n)?(i=p,s||(s=p)):(i&&r.push([s,i]),i=null,s=null);s&&r.push([s,null]);let l=[];for(let[p,d]of r)p===d?l.push(p):!d&&p===o[0]?l.push("*"):d?p===o[0]?l.push(`<=${d}`):l.push(`${p} - ${d}`):l.push(`>=${p}`);let c=l.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return c.length<u.length?c:e}});var dS=z((IB,fS)=>{C();var cS=en(),hh=qo(),{ANY:ph}=hh,Wo=Go(),fh=Zt(),AP=(t,e,n={})=>{if(t===e)return!0;t=new cS(t,n),e=new cS(e,n);let r=!1;e:for(let s of t.set){for(let i of e.set){let o=NP(s,i,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},IP=[new hh(">=0.0.0-0")],uS=[new hh(">=0.0.0")],NP=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===ph){if(e.length===1&&e[0].semver===ph)return!0;n.includePrerelease?t=IP:t=uS}if(e.length===1&&e[0].semver===ph){if(n.includePrerelease)return!0;e=uS}let r=new Set,s,i;for(let g of t)g.operator===">"||g.operator===">="?s=pS(s,g,n):g.operator==="<"||g.operator==="<="?i=hS(i,g,n):r.add(g.semver);if(r.size>1)return null;let o;if(s&&i){if(o=fh(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&&!Wo(g,String(s),n)||i&&!Wo(g,String(i),n))return null;for(let E of e)if(!Wo(g,String(E),n))return!1;return!0}let l,c,u,p,d=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1,m=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;d&&d.prerelease.length===1&&i.operator==="<"&&d.prerelease[0]===0&&(d=!1);for(let g of e){if(p=p||g.operator===">"||g.operator===">=",u=u||g.operator==="<"||g.operator==="<=",s){if(m&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===m.major&&g.semver.minor===m.minor&&g.semver.patch===m.patch&&(m=!1),g.operator===">"||g.operator===">="){if(l=pS(s,g,n),l===g&&l!==s)return!1}else if(s.operator===">="&&!Wo(s.semver,String(g),n))return!1}if(i){if(d&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===d.major&&g.semver.minor===d.minor&&g.semver.patch===d.patch&&(d=!1),g.operator==="<"||g.operator==="<="){if(c=hS(i,g,n),c===g&&c!==i)return!1}else if(i.operator==="<="&&!Wo(i.semver,String(g),n))return!1}if(!g.operator&&(i||s)&&o!==0)return!1}return!(s&&u&&!i&&o!==0||i&&p&&!s&&o!==0||m||d)},pS=(t,e,n)=>{if(!t)return e;let r=fh(t.semver,e.semver,n);return r>0?t:r<0||e.operator===">"&&t.operator===">="?e:t},hS=(t,e,n)=>{if(!t)return e;let r=fh(t.semver,e.semver,n);return r<0?t:r>0||e.operator==="<"&&t.operator==="<="?e:t};fS.exports=AP});var vS=z((bB,yS)=>{C();var dh=gi(),mS=$o(),bP=ut(),gS=Zp(),DP=ms(),_P=qy(),kP=Gy(),RP=Ky(),PP=Yy(),MP=Jy(),LP=ev(),OP=nv(),FP=sv(),BP=Zt(),$P=lv(),UP=uv(),VP=Ml(),qP=dv(),HP=gv(),GP=Vo(),WP=Ll(),jP=th(),KP=nh(),zP=Ol(),XP=Fl(),YP=rh(),QP=Av(),JP=qo(),ZP=en(),eM=Go(),tM=Uv(),nM=qv(),rM=Gv(),sM=Kv(),iM=Xv(),oM=Ul(),aM=tS(),lM=rS(),cM=oS(),uM=lS(),pM=dS();yS.exports={parse:DP,valid:_P,clean:kP,inc:RP,diff:PP,major:MP,minor:LP,patch:OP,prerelease:FP,compare:BP,rcompare:$P,compareLoose:UP,compareBuild:VP,sort:qP,rsort:HP,gt:GP,lt:WP,eq:jP,neq:KP,gte:zP,lte:XP,cmp:YP,coerce:QP,Comparator:JP,Range:ZP,satisfies:eM,toComparators:tM,maxSatisfying:nM,minSatisfying:rM,minVersion:sM,validRange:iM,outside:oM,gtr:aM,ltr:lM,intersects:cM,simplifyRange:uM,subset:pM,SemVer:bP,re:dh.re,src:dh.src,tokens:dh.t,SEMVER_SPEC_VERSION:mS.SEMVER_SPEC_VERSION,RELEASE_TYPES:mS.RELEASE_TYPES,compareIdentifiers:gS.compareIdentifiers,rcompareIdentifiers:gS.rcompareIdentifiers}});var xL={};qS(xL,{angularJitApplicationTransform:()=>Bo});module.exports=HS(xL);C();C();var PS=require("module");C();var Iy=require("module");C();var vy=require("module");C();var ry=require("module");C();var Rg=require("module");C();var Mh=require("module");C();var Rh=require("module"),ys=(0,Rh.createRequire)(M),GS=Object.defineProperty,WS=(t,e,n)=>e in t?GS(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ph=(t=>typeof ys!="undefined"?ys:typeof Proxy!="undefined"?new Proxy(t,{get:(e,n)=>(typeof ys!="undefined"?ys:e)[n]}):t)(function(t){if(typeof ys!="undefined")return ys.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')}),Hl=(t,e,n)=>(WS(t,typeof e!="symbol"?e+"":e,n),n);var zS=I(require("typescript"),1),at=I(require("fs"),1),Oh=require("module"),Ct=I(require("path"),1),Fh=require("url"),ZS=I(require("typescript"),1);var bL=(0,Mh.createRequire)(M);var jS=class{exists(t){throw Ee()}readFile(t){throw Ee()}readFileBuffer(t){throw Ee()}writeFile(t,e,n){throw Ee()}removeFile(t){throw Ee()}symlink(t,e){throw Ee()}readdir(t){throw Ee()}lstat(t){throw Ee()}stat(t){throw Ee()}pwd(){throw Ee()}chdir(t){throw Ee()}extname(t){throw Ee()}copyFile(t,e){throw Ee()}moveFile(t,e){throw Ee()}ensureDir(t){throw Ee()}removeDeep(t){throw Ee()}isCaseSensitive(){throw Ee()}resolve(...t){throw Ee()}dirname(t){throw Ee()}join(t,...e){throw Ee()}isRoot(t){throw Ee()}isRooted(t){throw Ee()}relative(t,e){throw Ee()}basename(t,e){throw Ee()}realpath(t){throw Ee()}getDefaultLibLocation(){throw Ee()}normalize(t){throw Ee()}};function Ee(){return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.")}var KS=new jS;function Lh(t){KS=t}var _L=Symbol("AbsolutePath");var XS=class{pwd(){return this.normalize(process.cwd())}chdir(t){process.chdir(t)}resolve(...t){return this.normalize(Ct.resolve(...t))}dirname(t){return this.normalize(Ct.dirname(t))}join(t,...e){return this.normalize(Ct.join(t,...e))}isRoot(t){return this.dirname(t)===this.normalize(t)}isRooted(t){return Ct.isAbsolute(t)}relative(t,e){return this.normalize(Ct.relative(t,e))}basename(t,e){return Ct.basename(t,e)}extname(t){return Ct.extname(t)}normalize(t){return t.replace(/\\/g,"/")}},Gl=typeof __filename!="undefined",Bh=Gl?null:M,YS=Gl?__filename:(0,Fh.fileURLToPath)(Bh),QS=class extends XS{constructor(){super(...arguments);a(this,"_caseSensitive")}isCaseSensitive(){return this._caseSensitive===void 0&&(this._caseSensitive=!at.default.existsSync(this.normalize(JS(YS)))),this._caseSensitive}exists(e){return at.default.existsSync(e)}readFile(e){return at.default.readFileSync(e,"utf8")}readFileBuffer(e){return at.default.readFileSync(e)}readdir(e){return at.default.readdirSync(e)}lstat(e){return at.default.lstatSync(e)}stat(e){return at.default.statSync(e)}realpath(e){return this.resolve(at.default.realpathSync(e))}getDefaultLibLocation(){let e=Gl?Ph:(0,Oh.createRequire)(Bh);return this.resolve(e.resolve("typescript"),"..")}},$h=class extends QS{writeFile(t,e,n=!1){at.default.writeFileSync(t,e,n?{flag:"wx"}:void 0)}removeFile(t){at.default.unlinkSync(t)}symlink(t,e){at.default.symlinkSync(t,e)}copyFile(t,e){at.default.copyFileSync(t,e)}moveFile(t,e){at.default.renameSync(t,e)}ensureDir(t){at.default.mkdirSync(t,{recursive:!0})}removeDeep(t){at.default.rmdirSync(t,{recursive:!0})}};function JS(t){return t.replace(/\w/g,e=>e.toUpperCase()===e?e.toLowerCase():e.toUpperCase())}var hi=I(require("typescript"),1),F=I(require("typescript"),1),Do=I(require("typescript"),1),Fe=I(require("typescript"),1),Tp=I(require("typescript"),1),Mg=I(require("typescript"),1);C();var Uh=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g"),on=class t{constructor(){a(this,"element",null);a(this,"classNames",[]);a(this,"attrs",[]);a(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,l=!1;for(Uh.lastIndex=0;i=Uh.exec(e);){if(i[1]){if(l)throw new Error("Nesting :not in a selector is not allowed");l=!0,o=new t,s.notSelectors.push(o)}let c=i[2];if(c){let p=i[3];p==="#"?o.addAttribute("id",c.slice(1)):p==="."?o.addClassName(c.slice(1)):o.setElement(c)}let u=i[4];if(u&&o.addAttribute(o.unescapeAttribute(u),i[6]),i[7]&&(l=!1,o=s),i[8]){if(l)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}},yr=class t{constructor(){a(this,"_elementMap",new Map);a(this,"_elementPartialMap",new Map);a(this,"_classMap",new Map);a(this,"_classPartialMap",new Map);a(this,"_attrValueMap",new Map);a(this,"_attrValuePartialMap",new Map);a(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 dc(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,l=e.attrs,c=new mc(e,n,r);if(i&&(l.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 p=l.length===0&&u===o.length-1,d=o[u];p?this._addTerminal(s._classMap,d,c):s=this._addPartial(s._classPartialMap,d)}if(l)for(let u=0;u<l.length;u+=2){let p=u===l.length-2,d=l[u],m=l[u+1];if(p){let g=s._attrValueMap,E=g.get(d);E||(E=new Map,g.set(d,E)),this._addTerminal(E,m,c)}else{let g=s._attrValuePartialMap,E=g.get(d);E||(E=new Map,g.set(d,E)),s=this._addPartial(E,m)}}}_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 l=0;l<this._listContexts.length;l++)this._listContexts[l].alreadyMatched=!1;if(r=this._matchTerminal(this._elementMap,s,e,n)||r,r=this._matchPartial(this._elementPartialMap,s,e,n)||r,i)for(let l=0;l<i.length;l++){let c=i[l];r=this._matchTerminal(this._classMap,c,e,n)||r,r=this._matchPartial(this._classPartialMap,c,e,n)||r}if(o)for(let l=0;l<o.length;l+=2){let c=o[l],u=o[l+1],p=this._attrValueMap.get(c);u&&(r=this._matchTerminal(p,"",e,n)||r),r=this._matchTerminal(p,u,e,n)||r;let d=this._attrValuePartialMap.get(c);u&&(r=this._matchPartial(d,"",e,n)||r),r=this._matchPartial(d,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 l,c=!1;for(let u=0;u<i.length;u++)l=i[u],c=l.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}},dc=class{constructor(e){a(this,"selectors");a(this,"alreadyMatched",!1);this.selectors=e}},mc=class{constructor(e,n,r){a(this,"selector");a(this,"cbContext");a(this,"listContext");a(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=!yr.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}};var wn;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"})(wn||(wn={}));var ia;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"})(ia||(ia={}));var Is;(function(t){t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Is||(Is={}));var gc={name:"custom-elements"},yc={name:"no-errors-schema"};var ve;(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"})(ve||(ve={}));var Vh;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(Vh||(Vh={}));function eE(t){let e=t.classNames&&t.classNames.length?[8,...t.classNames]:[];return[t.element&&t.element!=="*"?t.element:"",...t.attrs,...e]}function tE(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 nE(t){let e=eE(t),n=t.notSelectors&&t.notSelectors.length?t.notSelectors.map(r=>tE(r)):[];return e.concat(...n)}function Hu(t){return t?on.parse(t).map(nE):[]}var fr;function rE(t){return aE(oE(t.nodes).join("")+`[${t.meaning}]`)}function sE(t){return t.id||Rd(t)}function Rd(t){let e=new vc,n=t.nodes.map(r=>r.visit(e,null));return Pd(n.join(""),t.meaning)}var oa=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}">`}},iE=new oa;function oE(t){return t.map(e=>e.visit(iE,null))}var vc=class extends oa{visitIcu(e){let n=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.type}, ${n.join(", ")}}`}};function aE(t){fr!=null||(fr=new TextEncoder);let e=[...fr.encode(t)],n=uE(e,aa.Big),r=e.length*8,s=new Uint32Array(80),i=1732584193,o=4023233417,l=2562383102,c=271733878,u=3285377520;n[r>>5]|=128<<24-r%32,n[(r+64>>9<<4)+15]=r;for(let p=0;p<n.length;p+=16){let d=i,m=o,g=l,E=c,w=u;for(let x=0;x<80;x++){x<16?s[x]=n[p+x]:s[x]=Wl(s[x-3]^s[x-8]^s[x-14]^s[x-16],1);let k=lE(x,o,l,c),_=k[0],H=k[1],V=[Wl(i,5),_,u,H,s[x]].reduce(vs);u=c,c=l,l=Wl(o,30),o=i,i=V}i=vs(i,d),o=vs(o,m),l=vs(l,g),c=vs(c,E),u=vs(u,w)}return wi(i)+wi(o)+wi(l)+wi(c)+wi(u)}function wi(t){return(t>>>0).toString(16).padStart(8,"0")}function lE(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 qh(t){fr!=null||(fr=new TextEncoder);let e=fr.encode(t),n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=Hh(n,e.length,0),s=Hh(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 Pd(t,e=""){let n=qh(t);return e&&(n=BigInt.asUintN(64,n<<BigInt(1))|n>>BigInt(63)&BigInt(1),n+=qh(e)),BigInt.asUintN(63,n).toString()}function Hh(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=Gh(r,s,n);r=c[0],s=c[1],n=c[2]}let l=e-i;return n+=e,l>=4?(r+=t.getUint32(i,!0),i+=4,l>=8?(s+=t.getUint32(i,!0),i+=4,l>=9&&(n+=t.getUint8(i++)<<8),l>=10&&(n+=t.getUint8(i++)<<16),l===11&&(n+=t.getUint8(i++)<<24)):(l>=5&&(s+=t.getUint8(i++)),l>=6&&(s+=t.getUint8(i++)<<8),l===7&&(s+=t.getUint8(i++)<<16))):(l>=1&&(r+=t.getUint8(i++)),l>=2&&(r+=t.getUint8(i++)<<8),l===3&&(r+=t.getUint8(i++)<<16)),Gh(r,s,n)[2]}function Gh(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 aa;(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(aa||(aa={}));function vs(t,e){return cE(t,e)[1]}function cE(t,e){let n=(t&65535)+(e&65535),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|n&65535]}function Wl(t,e){return t<<e|t>>>32-e}function uE(t,e){let n=t.length+3>>>2,r=[];for(let s=0;s<n;s++)r[s]=pE(t,s*4,e);return r}function Wh(t,e){return e>=t.length?0:t[e]}function pE(t,e,n){let r=0;if(n===aa.Big)for(let s=0;s<4;s++)r+=Wh(t,e+s)<<24-8*s;else for(let s=0;s<4;s++)r+=Wh(t,e+s)<<8*s;return r}var Bi;(function(t){t[t.None=0]="None",t[t.Const=1]="Const"})(Bi||(Bi={}));var vr=class{constructor(e=Bi.None){a(this,"modifiers");this.modifiers=e}hasModifier(e){return(this.modifiers&e)!==0}},Xt;(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"})(Xt||(Xt={}));var an=class extends vr{constructor(n,r){super(r);a(this,"name");this.name=n}visitType(n,r){return n.visitBuiltinType(this,r)}},ft=class extends vr{constructor(n,r,s=null){super(r);a(this,"value");a(this,"typeParams");this.value=n,this.typeParams=s}visitType(n,r){return n.visitExpressionType(this,r)}},Sc=class extends vr{constructor(n,r){super(r);a(this,"of");this.of=n}visitType(n,r){return n.visitArrayType(this,r)}},Ec=class extends vr{constructor(n,r){super(r);a(this,"valueType");this.valueType=n||null}visitType(n,r){return n.visitMapType(this,r)}},Os=class extends vr{constructor(n,r){super(r);a(this,"type");this.type=n}visitType(n,r){return n.visitTransplantedType(this,r)}},kr=new an(Xt.Dynamic),Lt=new an(Xt.Inferred),Md=new an(Xt.Bool),hE=new an(Xt.Int),ol=new an(Xt.Number),al=new an(Xt.String),fE=new an(Xt.Function),ln=new an(Xt.None),An;(function(t){t[t.Minus=0]="Minus",t[t.Plus=1]="Plus"})(An||(An={}));var b;(function(t){t[t.Equals=0]="Equals",t[t.NotEquals=1]="NotEquals",t[t.Identical=2]="Identical",t[t.NotIdentical=3]="NotIdentical",t[t.Minus=4]="Minus",t[t.Plus=5]="Plus",t[t.Divide=6]="Divide",t[t.Multiply=7]="Multiply",t[t.Modulo=8]="Modulo",t[t.And=9]="And",t[t.Or=10]="Or",t[t.BitwiseOr=11]="BitwiseOr",t[t.BitwiseAnd=12]="BitwiseAnd",t[t.Lower=13]="Lower",t[t.LowerEquals=14]="LowerEquals",t[t.Bigger=15]="Bigger",t[t.BiggerEquals=16]="BiggerEquals",t[t.NullishCoalesce=17]="NullishCoalesce"})(b||(b={}));function Ld(t,e){return t==null||e==null?t==e:t.isEquivalent(e)}function Od(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 mt(t,e){return Od(t,e,(n,r)=>n.isEquivalent(r))}var ce=class{constructor(e,n){a(this,"type");a(this,"sourceSpan");this.type=e||null,this.sourceSpan=n||null}prop(e,n){return new gt(this,e,null,n)}key(e,n,r){return new In(this,e,n,r)}callFn(e,n,r){return new rt(this,e,null,n,r)}instantiate(e,n,r){return new Bs(this,e,n,r)}conditional(e,n=null,r){return new cn(this,e,n,null,r)}equals(e,n){return new le(b.Equals,this,e,null,n)}notEquals(e,n){return new le(b.NotEquals,this,e,null,n)}identical(e,n){return new le(b.Identical,this,e,null,n)}notIdentical(e,n){return new le(b.NotIdentical,this,e,null,n)}minus(e,n){return new le(b.Minus,this,e,null,n)}plus(e,n){return new le(b.Plus,this,e,null,n)}divide(e,n){return new le(b.Divide,this,e,null,n)}multiply(e,n){return new le(b.Multiply,this,e,null,n)}modulo(e,n){return new le(b.Modulo,this,e,null,n)}and(e,n){return new le(b.And,this,e,null,n)}bitwiseOr(e,n,r=!0){return new le(b.BitwiseOr,this,e,null,n,r)}bitwiseAnd(e,n,r=!0){return new le(b.BitwiseAnd,this,e,null,n,r)}or(e,n){return new le(b.Or,this,e,null,n)}lower(e,n){return new le(b.Lower,this,e,null,n)}lowerEquals(e,n){return new le(b.LowerEquals,this,e,null,n)}bigger(e,n){return new le(b.Bigger,this,e,null,n)}biggerEquals(e,n){return new le(b.BiggerEquals,this,e,null,n)}isBlank(e){return this.equals(Fd,e)}nullishCoalesce(e,n){return new le(b.NullishCoalesce,this,e,null,n)}toStmt(){return new Ft(this,null)}},Ot=class t extends ce{constructor(n,r,s){super(r,s);a(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 $i(this.name,n,null,this.sourceSpan)}},Kr=class t extends ce{constructor(n,r,s){super(r,s);a(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())}},G=class t extends ce{constructor(n,r,s){super(r,s);a(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)}},$i=class t extends ce{constructor(n,r,s,i){super(s||r.type,i);a(this,"name");a(this,"value");this.name=n,this.value=r}isEquivalent(n){return n instanceof t&&this.name===n.name&&this.value.isEquivalent(n.value)}isConstant(){return!1}visitExpression(n,r){return n.visitWriteVarExpr(this,r)}clone(){return new t(this.name,this.value.clone(),this.type,this.sourceSpan)}toDeclStmt(n,r){return new st(this.name,this.value,n,r,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(Lt,Ue.Final)}},Fs=class t extends ce{constructor(n,r,s,i,o){super(i||s.type,o);a(this,"receiver");a(this,"index");a(this,"value");this.receiver=n,this.index=r,this.value=s}isEquivalent(n){return n instanceof t&&this.receiver.isEquivalent(n.receiver)&&this.index.isEquivalent(n.index)&&this.value.isEquivalent(n.value)}isConstant(){return!1}visitExpression(n,r){return n.visitWriteKeyExpr(this,r)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.value.clone(),this.type,this.sourceSpan)}},zr=class t extends ce{constructor(n,r,s,i,o){super(i||s.type,o);a(this,"receiver");a(this,"name");a(this,"value");this.receiver=n,this.name=r,this.value=s}isEquivalent(n){return n instanceof t&&this.receiver.isEquivalent(n.receiver)&&this.name===n.name&&this.value.isEquivalent(n.value)}isConstant(){return!1}visitExpression(n,r){return n.visitWritePropExpr(this,r)}clone(){return new t(this.receiver.clone(),this.name,this.value.clone(),this.type,this.sourceSpan)}},rt=class t extends ce{constructor(n,r,s,i,o=!1){super(s,i);a(this,"fn");a(this,"args");a(this,"pure");this.fn=n,this.args=r,this.pure=o}get receiver(){return this.fn}isEquivalent(n){return n instanceof t&&this.fn.isEquivalent(n.fn)&&mt(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)}},Ui=class t extends ce{constructor(n,r,s,i){super(s,i);a(this,"tag");a(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)}},Bs=class t extends ce{constructor(n,r,s,i){super(s,i);a(this,"classExpr");a(this,"args");this.classExpr=n,this.args=r}isEquivalent(n){return n instanceof t&&this.classExpr.isEquivalent(n.classExpr)&&mt(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)}},Pe=class t extends ce{constructor(n,r,s){super(r,s);a(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)}},$s=class t extends ce{constructor(n,r,s){super(null,s);a(this,"elements");a(this,"expressions");this.elements=n,this.expressions=r}isEquivalent(n){return n instanceof t&&Od(this.elements,n.elements,(r,s)=>r.text===s.text)&&mt(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()))}},Vi=class t extends ce{constructor(n,r,s){var i;super(al,r);a(this,"text");a(this,"rawText");this.text=n,this.rawText=(i=s!=null?s:r==null?void 0:r.toString())!=null?i:wc(na(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)}},mr=class{constructor(e,n){a(this,"text");a(this,"sourceSpan");this.text=e,this.sourceSpan=n}},qr=class{constructor(e,n,r){a(this,"text");a(this,"sourceSpan");a(this,"associatedMessage");this.text=e,this.sourceSpan=n,this.associatedMessage=r}},dE="|",jh="@@",mE="\u241F",qi=class t extends ce{constructor(n,r,s,i,o){super(al,o);a(this,"metaBlock");a(this,"messageParts");a(this,"placeHolderNames");a(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}${dE}${n}`),this.metaBlock.customId&&(n=`${n}${jh}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(r=>{n=`${n}${mE}${r}`}),Kh(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+=`${jh}${Pd(r.associatedMessage.messageString,r.associatedMessage.meaning)}`),Kh(i,s.text,this.getMessagePartSourceSpan(n))}},na=t=>t.replace(/\\/g,"\\\\"),gE=t=>t.replace(/^:/,"\\:"),yE=t=>t.replace(/:/g,"\\:"),wc=t=>t.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function Kh(t,e,n){return t===""?{cooked:e,raw:wc(gE(na(e))),range:n}:{cooked:`:${t}:${e}`,raw:wc(`:${yE(na(t))}:${na(e)}`),range:n}}var Qe=class t extends ce{constructor(n,r,s=null,i){super(r,i);a(this,"value");a(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)}},la=class{constructor(e,n){a(this,"moduleName");a(this,"name");this.moduleName=e,this.name=n}},cn=class t extends ce{constructor(n,r,s=null,i,o){super(i||r.type,o);a(this,"condition");a(this,"falseCase");a(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)&&Ld(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)}},Tc=class t extends ce{constructor(n,r,s){super(null,r);a(this,"url");a(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)}},Us=class t extends ce{constructor(n,r){super(Md,r);a(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)}},ze=class t{constructor(e,n=null){a(this,"name");a(this,"type");this.name=e,this.type=n}isEquivalent(e){return this.name===e.name}clone(){return new t(this.name,this.type)}},xn=class t extends ce{constructor(n,r,s,i,o){super(s,i);a(this,"params");a(this,"statements");a(this,"name");this.params=n,this.statements=r,this.name=o}isEquivalent(n){return(n instanceof t||n instanceof qs)&&mt(this.params,n.params)&&mt(this.statements,n.statements)}isConstant(){return!1}visitExpression(n,r){return n.visitFunctionExpr(this,r)}toDeclStmt(n,r){return new qs(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)}},Wn=class t extends ce{constructor(n,r,s,i){super(s,i);a(this,"params");a(this,"body");this.params=n,this.body=r}isEquivalent(n){return!(n instanceof t)||!mt(this.params,n.params)?!1:this.body instanceof ce&&n.body instanceof ce?this.body.isEquivalent(n.body):Array.isArray(this.body)&&Array.isArray(n.body)?mt(this.body,n.body):!1}isConstant(){return!1}visitExpression(n,r){return n.visitArrowFunctionExpr(this,r)}clone(){return new t(this.params.map(n=>n.clone()),Array.isArray(this.body)?this.body:this.body.clone(),this.type,this.sourceSpan)}toDeclStmt(n,r){return new st(n,this,Lt,r,this.sourceSpan)}},Sr=class t extends ce{constructor(n,r,s,i,o=!0){super(s||ol,i);a(this,"operator");a(this,"expr");a(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)}},le=class t extends ce{constructor(n,r,s,i,o,l=!0){super(i||r.type,o);a(this,"operator");a(this,"rhs");a(this,"parens");a(this,"lhs");this.operator=n,this.rhs=s,this.parens=l,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,this.parens)}},gt=class t extends ce{constructor(n,r,s,i){super(s,i);a(this,"receiver");a(this,"name");this.receiver=n,this.name=r}get index(){return this.name}isEquivalent(n){return n instanceof t&&this.receiver.isEquivalent(n.receiver)&&this.name===n.name}isConstant(){return!1}visitExpression(n,r){return n.visitReadPropExpr(this,r)}set(n){return new zr(this.receiver,this.name,n,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},In=class t extends ce{constructor(n,r,s,i){super(s,i);a(this,"receiver");a(this,"index");this.receiver=n,this.index=r}isEquivalent(n){return n instanceof t&&this.receiver.isEquivalent(n.receiver)&&this.index.isEquivalent(n.index)}isConstant(){return!1}visitExpression(n,r){return n.visitReadKeyExpr(this,r)}set(n){return new Fs(this.receiver,this.index,n,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},yt=class t extends ce{constructor(n,r,s){super(r,s);a(this,"entries");this.entries=n}isConstant(){return this.entries.every(n=>n.isConstant())}isEquivalent(n){return n instanceof t&&mt(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)}},Xr=class t{constructor(e,n,r){a(this,"key");a(this,"value");a(this,"quoted");this.key=e,this.value=n,this.quoted=r}isEquivalent(e){return this.key===e.key&&this.value.isEquivalent(e.value)}clone(){return new t(this.key,this.value.clone(),this.quoted)}},Yt=class t extends ce{constructor(n,r,s){super(r,s);a(this,"entries");a(this,"valueType",null);this.entries=n,r&&(this.valueType=r.valueType)}isEquivalent(n){return n instanceof t&&mt(this.entries,n.entries)}isConstant(){return this.entries.every(n=>n.value.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)}},xc=class t extends ce{constructor(n,r){super(n[n.length-1].type,r);a(this,"parts");this.parts=n}isEquivalent(n){return n instanceof t&&mt(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()))}},Vs=new Pe(null,null,null),Fd=new Pe(null,Lt,null),Ue;(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"})(Ue||(Ue={}));var Hi=class{constructor(e,n,r){a(this,"text");a(this,"multiline");a(this,"trailingNewline");this.text=e,this.multiline=n,this.trailingNewline=r}toString(){return this.multiline?` ${this.text} `:this.text}},Gi=class extends Hi{constructor(n){super("",!0,!0);a(this,"tags");this.tags=n}toString(){return TE(this.tags)}},Er=class{constructor(e=Ue.None,n=null,r){a(this,"modifiers");a(this,"sourceSpan");a(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)}},st=class t extends Er{constructor(n,r,s,i,o,l){super(i,o,l);a(this,"name");a(this,"value");a(this,"type");this.name=n,this.value=r,this.type=s||r&&r.type||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)}},qs=class t extends Er{constructor(n,r,s,i,o,l,c){super(o,l,c);a(this,"name");a(this,"params");a(this,"statements");a(this,"type");this.name=n,this.params=r,this.statements=s,this.type=i||null}isEquivalent(n){return n instanceof t&&mt(this.params,n.params)&&mt(this.statements,n.statements)}visitStatement(n,r){return n.visitDeclareFunctionStmt(this,r)}},Ft=class t extends Er{constructor(n,r,s){super(Ue.None,r,s);a(this,"expr");this.expr=n}isEquivalent(n){return n instanceof t&&this.expr.isEquivalent(n.expr)}visitStatement(n,r){return n.visitExpressionStmt(this,r)}},Ye=class t extends Er{constructor(n,r=null,s){super(Ue.None,r,s);a(this,"value");this.value=n}isEquivalent(n){return n instanceof t&&this.value.isEquivalent(n.value)}visitStatement(n,r){return n.visitReturnStmt(this,r)}},Wi=class t extends Er{constructor(n,r,s=[],i,o){super(Ue.None,i,o);a(this,"condition");a(this,"trueCase");a(this,"falseCase");this.condition=n,this.trueCase=r,this.falseCase=s}isEquivalent(n){return n instanceof t&&this.condition.isEquivalent(n.condition)&&mt(this.trueCase,n.trueCase)&&mt(this.falseCase,n.falseCase)}visitStatement(n,r){return n.visitIfStmt(this,r)}},Cc=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}visitTypeofExpr(e,n){return this.visitExpression(e,n)}visitReadVarExpr(e,n){return this.visitExpression(e,n)}visitWriteVarExpr(e,n){return e.value.visitExpression(this,n),this.visitExpression(e,n)}visitWriteKeyExpr(e,n){return e.receiver.visitExpression(this,n),e.index.visitExpression(this,n),e.value.visitExpression(this,n),this.visitExpression(e,n)}visitWritePropExpr(e,n){return e.receiver.visitExpression(this,n),e.value.visitExpression(this,n),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)}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)}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.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)}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 Bd(t,e=!1,n=!0){return new Hi(t,e,n)}function $d(t=[]){return new Gi(t)}function Y(t,e,n){return new Ot(t,e,n)}function $(t,e=null,n){return new Qe(t,null,e,n)}function vE(t,e,n){return t!=null?Xe($(t,e,null),n):null}function Xe(t,e,n){return new ft(t,e,n)}function SE(t,e){return new Os(t,e)}function oi(t){return new Kr(t)}function pe(t,e,n){return new yt(t,e,n)}function it(t,e=null){return new Yt(t.map(n=>new Xr(n.key,n.value,n.quoted)),e,null)}function EE(t,e,n,r){return new Sr(t,e,n,r)}function Ud(t,e){return new Us(t,e)}function jn(t,e,n,r,s){return new xn(t,e,n,r,s)}function Qt(t,e,n,r){return new Wn(t,e,n,r)}function Co(t,e,n,r,s){return new Wi(t,e,n,r,s)}function Vd(t,e,n,r){return new Ui(t,e,n,r)}function v(t,e,n){return new Pe(t,e,n)}function qd(t,e,n,r,s){return new qi(t,e,n,r,s)}function wE(t){return t instanceof Pe&&t.value===null}function zh(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 TE(t){if(t.length===0)return"";if(t.length===1&&t[0].tagName&&!t[0].text)return`*${zh(t[0])} `;let e=`*
|
|
2
|
+
`;for(let n of t)e+=" *",e+=zh(n).replace(/\n/g,`
|
|
3
3
|
* `),e+=`
|
|
4
|
-
`;return e+=" ",e}var kr=Object.freeze({__proto__:null,get TypeModifier(){return Mi},Type:yr,get BuiltinTypeName(){return Xt},BuiltinType:on,ExpressionType:ht,ArrayType:pc,MapType:hc,TransplantedType:Ms,DYNAMIC_TYPE:_r,INFERRED_TYPE:Pt,BOOL_TYPE:bd,INT_TYPE:iE,NUMBER_TYPE:Za,STRING_TYPE:Lu,FUNCTION_TYPE:oE,NONE_TYPE:an,get UnaryOperator(){return Cn},get BinaryOperator(){return b},nullSafeIsEquivalent:Dd,areAllEquivalent:dt,Expression:pe,ReadVarExpr:Mt,TypeofExpr:jr,WrappedNodeExpr:G,WriteVarExpr:Li,WriteKeyExpr:Ls,WritePropExpr:Kr,InvokeFunctionExpr:nt,TaggedTemplateExpr:Oi,InstantiateExpr:Os,LiteralExpr:Pe,TemplateLiteral:ea,TemplateLiteralElement:ta,LiteralPiece:mr,PlaceholderPiece:Vr,LocalizedString:Fi,ExternalExpr:Ye,ExternalReference:na,ConditionalExpr:ln,DynamicImportExpr:dc,NotExpr:Fs,FnParam:je,FunctionExpr:Tn,ArrowFunctionExpr:Gn,UnaryOperatorExpr:vr,BinaryOperatorExpr:le,ReadPropExpr:mt,ReadKeyExpr:An,LiteralArrayExpr:gt,LiteralMapEntry:zr,LiteralMapExpr:Yt,CommaExpr:mc,NULL_EXPR:Bs,TYPED_NULL_EXPR:kd,get StmtModifier(){return Ue},LeadingComment:Bi,JSDocComment:$i,Statement:Sr,DeclareVarStmt:rt,DeclareFunctionStmt:$s,ExpressionStatement:Lt,ReturnStatement:Xe,IfStmt:Ui,RecursiveAstVisitor:gc,leadingComment:Rd,jsDocComment:Pd,variable:Y,importExpr:B,importType:pE,expressionType:Ke,transplantedType:hE,typeofExpr:ri,literalArr:ue,literalMap:st,unary:fE,not:Md,fn:Wn,arrowFn:Qt,ifStmt:vo,taggedTemplate:Ld,literal:v,localizedString:Od,isNull:dE}),gE="_c",qh=Y("<unknown>"),yE={},vE=50,ra=class t extends pe{constructor(n){super(n.type);a(this,"resolved");a(this,"original");a(this,"shared",!1);this.resolved=n,this.original=n}visitExpression(n,r){return r===yE?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}},Us=class{constructor(e=!1){a(this,"isClosureCompilerEnabled");a(this,"statements",[]);a(this,"literals",new Map);a(this,"literalFactories",new Map);a(this,"sharedConstants",new Map);a(this,"_claimedNames",new Map);a(this,"nextNameIndex",0);this.isClosureCompilerEnabled=e}getConstLiteral(e,n){if(e instanceof Pe&&!Hh(e)||e instanceof ra)return e;let r=Rs.INSTANCE.keyOf(e),s=this.literals.get(r),i=!1;if(s||(s=new ra(e),this.literals.set(r,s),i=!0),!i&&!s.shared||i&&n){let o=this.freshName(),l,c;this.isClosureCompilerEnabled&&Hh(e)?(l=Y(o).set(new Tn([],[new Xe(e)])),c=Y(o).callFn([])):(l=Y(o).set(e),c=Y(o)),this.statements.push(l.toDeclStmt(Pt,Ue.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,Y(s)),this.statements.push(e.toSharedConstantDeclaration(s,n))}return this.sharedConstants.get(r)}getLiteralFactory(e){if(e instanceof gt){let n=e.entries.map(s=>s.isConstant()?s:qh),r=Rs.INSTANCE.keyOf(ue(n));return this._getLiteralFactory(r,e.entries,s=>ue(s))}else{let n=st(e.entries.map(s=>({key:s.key,value:s.value.isConstant()?s.value:qh,quoted:s.quoted}))),r=Rs.INSTANCE.keyOf(n);return this._getLiteralFactory(r,e.entries.map(s=>s.value),s=>st(s.map((i,o)=>({key:e.entries[o].key,value:i,quoted:e.entries[o].quoted}))))}}getSharedFunctionReference(e,n,r=!0){var o;let s=e instanceof Gn;for(let l of this.statements)if(s&&l instanceof rt&&((o=l.value)!=null&&o.isEquivalent(e))||!s&&l instanceof $s&&e instanceof Tn&&e.isEquivalent(l))return Y(l.name);let i=r?this.uniqueName(n):n;return this.statements.push(e instanceof Tn?e.toDeclStmt(i,Ue.Final):new rt(i,e,Pt,Ue.Final,e.sourceSpan)),Y(i)}_getLiteralFactory(e,n,r){let s=this.literalFactories.get(e),i=n.filter(o=>!o.isConstant());if(!s){let o=n.map((p,d)=>p.isConstant()?this.getConstLiteral(p,!0):Y(`a${d}`)),l=o.filter(SE).map(p=>new je(p.name,_r)),c=Qt(l,r(o),Pt),u=this.freshName();this.statements.push(Y(u).set(c).toDeclStmt(Pt,Ue.Final)),s=Y(u),this.literalFactories.set(e,s)}return{literalFactory:s,literalFactoryArguments: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(gE)}},Ja=class Ja{keyOf(e){if(e instanceof Pe&&typeof e.value=="string")return`"${e.value}"`;if(e instanceof Pe)return String(e.value);if(e instanceof gt){let n=[];for(let r of e.entries)n.push(this.keyOf(r));return`[${n.join(",")}]`}else if(e instanceof Yt){let n=[];for(let r of e.entries){let s=r.key;r.quoted&&(s=`"${s}"`),n.push(s+":"+this.keyOf(r.value))}return`{${n.join(",")}}`}else{if(e instanceof Ye)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof Mt)return`read(${e.name})`;if(e instanceof jr)return`typeof(${this.keyOf(e.expr)})`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}};a(Ja,"INSTANCE",new Ja);var Rs=Ja;function SE(t){return t instanceof Mt}function Hh(t){return t instanceof Pe&&typeof t.value=="string"&&t.value.length>=vE}var y="@angular/core",h=class{};a(h,"NEW_METHOD","factory"),a(h,"TRANSFORM_METHOD","transform"),a(h,"PATCH_DEPS","patchedDeps"),a(h,"core",{name:null,moduleName:y}),a(h,"namespaceHTML",{name:"\u0275\u0275namespaceHTML",moduleName:y}),a(h,"namespaceMathML",{name:"\u0275\u0275namespaceMathML",moduleName:y}),a(h,"namespaceSVG",{name:"\u0275\u0275namespaceSVG",moduleName:y}),a(h,"element",{name:"\u0275\u0275element",moduleName:y}),a(h,"elementStart",{name:"\u0275\u0275elementStart",moduleName:y}),a(h,"elementEnd",{name:"\u0275\u0275elementEnd",moduleName:y}),a(h,"advance",{name:"\u0275\u0275advance",moduleName:y}),a(h,"syntheticHostProperty",{name:"\u0275\u0275syntheticHostProperty",moduleName:y}),a(h,"syntheticHostListener",{name:"\u0275\u0275syntheticHostListener",moduleName:y}),a(h,"attribute",{name:"\u0275\u0275attribute",moduleName:y}),a(h,"attributeInterpolate1",{name:"\u0275\u0275attributeInterpolate1",moduleName:y}),a(h,"attributeInterpolate2",{name:"\u0275\u0275attributeInterpolate2",moduleName:y}),a(h,"attributeInterpolate3",{name:"\u0275\u0275attributeInterpolate3",moduleName:y}),a(h,"attributeInterpolate4",{name:"\u0275\u0275attributeInterpolate4",moduleName:y}),a(h,"attributeInterpolate5",{name:"\u0275\u0275attributeInterpolate5",moduleName:y}),a(h,"attributeInterpolate6",{name:"\u0275\u0275attributeInterpolate6",moduleName:y}),a(h,"attributeInterpolate7",{name:"\u0275\u0275attributeInterpolate7",moduleName:y}),a(h,"attributeInterpolate8",{name:"\u0275\u0275attributeInterpolate8",moduleName:y}),a(h,"attributeInterpolateV",{name:"\u0275\u0275attributeInterpolateV",moduleName:y}),a(h,"classProp",{name:"\u0275\u0275classProp",moduleName:y}),a(h,"elementContainerStart",{name:"\u0275\u0275elementContainerStart",moduleName:y}),a(h,"elementContainerEnd",{name:"\u0275\u0275elementContainerEnd",moduleName:y}),a(h,"elementContainer",{name:"\u0275\u0275elementContainer",moduleName:y}),a(h,"styleMap",{name:"\u0275\u0275styleMap",moduleName:y}),a(h,"styleMapInterpolate1",{name:"\u0275\u0275styleMapInterpolate1",moduleName:y}),a(h,"styleMapInterpolate2",{name:"\u0275\u0275styleMapInterpolate2",moduleName:y}),a(h,"styleMapInterpolate3",{name:"\u0275\u0275styleMapInterpolate3",moduleName:y}),a(h,"styleMapInterpolate4",{name:"\u0275\u0275styleMapInterpolate4",moduleName:y}),a(h,"styleMapInterpolate5",{name:"\u0275\u0275styleMapInterpolate5",moduleName:y}),a(h,"styleMapInterpolate6",{name:"\u0275\u0275styleMapInterpolate6",moduleName:y}),a(h,"styleMapInterpolate7",{name:"\u0275\u0275styleMapInterpolate7",moduleName:y}),a(h,"styleMapInterpolate8",{name:"\u0275\u0275styleMapInterpolate8",moduleName:y}),a(h,"styleMapInterpolateV",{name:"\u0275\u0275styleMapInterpolateV",moduleName:y}),a(h,"classMap",{name:"\u0275\u0275classMap",moduleName:y}),a(h,"classMapInterpolate1",{name:"\u0275\u0275classMapInterpolate1",moduleName:y}),a(h,"classMapInterpolate2",{name:"\u0275\u0275classMapInterpolate2",moduleName:y}),a(h,"classMapInterpolate3",{name:"\u0275\u0275classMapInterpolate3",moduleName:y}),a(h,"classMapInterpolate4",{name:"\u0275\u0275classMapInterpolate4",moduleName:y}),a(h,"classMapInterpolate5",{name:"\u0275\u0275classMapInterpolate5",moduleName:y}),a(h,"classMapInterpolate6",{name:"\u0275\u0275classMapInterpolate6",moduleName:y}),a(h,"classMapInterpolate7",{name:"\u0275\u0275classMapInterpolate7",moduleName:y}),a(h,"classMapInterpolate8",{name:"\u0275\u0275classMapInterpolate8",moduleName:y}),a(h,"classMapInterpolateV",{name:"\u0275\u0275classMapInterpolateV",moduleName:y}),a(h,"styleProp",{name:"\u0275\u0275styleProp",moduleName:y}),a(h,"stylePropInterpolate1",{name:"\u0275\u0275stylePropInterpolate1",moduleName:y}),a(h,"stylePropInterpolate2",{name:"\u0275\u0275stylePropInterpolate2",moduleName:y}),a(h,"stylePropInterpolate3",{name:"\u0275\u0275stylePropInterpolate3",moduleName:y}),a(h,"stylePropInterpolate4",{name:"\u0275\u0275stylePropInterpolate4",moduleName:y}),a(h,"stylePropInterpolate5",{name:"\u0275\u0275stylePropInterpolate5",moduleName:y}),a(h,"stylePropInterpolate6",{name:"\u0275\u0275stylePropInterpolate6",moduleName:y}),a(h,"stylePropInterpolate7",{name:"\u0275\u0275stylePropInterpolate7",moduleName:y}),a(h,"stylePropInterpolate8",{name:"\u0275\u0275stylePropInterpolate8",moduleName:y}),a(h,"stylePropInterpolateV",{name:"\u0275\u0275stylePropInterpolateV",moduleName:y}),a(h,"nextContext",{name:"\u0275\u0275nextContext",moduleName:y}),a(h,"resetView",{name:"\u0275\u0275resetView",moduleName:y}),a(h,"templateCreate",{name:"\u0275\u0275template",moduleName:y}),a(h,"defer",{name:"\u0275\u0275defer",moduleName:y}),a(h,"deferWhen",{name:"\u0275\u0275deferWhen",moduleName:y}),a(h,"deferOnIdle",{name:"\u0275\u0275deferOnIdle",moduleName:y}),a(h,"deferOnImmediate",{name:"\u0275\u0275deferOnImmediate",moduleName:y}),a(h,"deferOnTimer",{name:"\u0275\u0275deferOnTimer",moduleName:y}),a(h,"deferOnHover",{name:"\u0275\u0275deferOnHover",moduleName:y}),a(h,"deferOnInteraction",{name:"\u0275\u0275deferOnInteraction",moduleName:y}),a(h,"deferOnViewport",{name:"\u0275\u0275deferOnViewport",moduleName:y}),a(h,"deferPrefetchWhen",{name:"\u0275\u0275deferPrefetchWhen",moduleName:y}),a(h,"deferPrefetchOnIdle",{name:"\u0275\u0275deferPrefetchOnIdle",moduleName:y}),a(h,"deferPrefetchOnImmediate",{name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:y}),a(h,"deferPrefetchOnTimer",{name:"\u0275\u0275deferPrefetchOnTimer",moduleName:y}),a(h,"deferPrefetchOnHover",{name:"\u0275\u0275deferPrefetchOnHover",moduleName:y}),a(h,"deferPrefetchOnInteraction",{name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:y}),a(h,"deferPrefetchOnViewport",{name:"\u0275\u0275deferPrefetchOnViewport",moduleName:y}),a(h,"deferHydrateWhen",{name:"\u0275\u0275deferHydrateWhen",moduleName:y}),a(h,"deferHydrateNever",{name:"\u0275\u0275deferHydrateNever",moduleName:y}),a(h,"deferHydrateOnIdle",{name:"\u0275\u0275deferHydrateOnIdle",moduleName:y}),a(h,"deferHydrateOnImmediate",{name:"\u0275\u0275deferHydrateOnImmediate",moduleName:y}),a(h,"deferHydrateOnTimer",{name:"\u0275\u0275deferHydrateOnTimer",moduleName:y}),a(h,"deferHydrateOnHover",{name:"\u0275\u0275deferHydrateOnHover",moduleName:y}),a(h,"deferHydrateOnInteraction",{name:"\u0275\u0275deferHydrateOnInteraction",moduleName:y}),a(h,"deferHydrateOnViewport",{name:"\u0275\u0275deferHydrateOnViewport",moduleName:y}),a(h,"deferEnableTimerScheduling",{name:"\u0275\u0275deferEnableTimerScheduling",moduleName:y}),a(h,"conditional",{name:"\u0275\u0275conditional",moduleName:y}),a(h,"repeater",{name:"\u0275\u0275repeater",moduleName:y}),a(h,"repeaterCreate",{name:"\u0275\u0275repeaterCreate",moduleName:y}),a(h,"repeaterTrackByIndex",{name:"\u0275\u0275repeaterTrackByIndex",moduleName:y}),a(h,"repeaterTrackByIdentity",{name:"\u0275\u0275repeaterTrackByIdentity",moduleName:y}),a(h,"componentInstance",{name:"\u0275\u0275componentInstance",moduleName:y}),a(h,"text",{name:"\u0275\u0275text",moduleName:y}),a(h,"enableBindings",{name:"\u0275\u0275enableBindings",moduleName:y}),a(h,"disableBindings",{name:"\u0275\u0275disableBindings",moduleName:y}),a(h,"getCurrentView",{name:"\u0275\u0275getCurrentView",moduleName:y}),a(h,"textInterpolate",{name:"\u0275\u0275textInterpolate",moduleName:y}),a(h,"textInterpolate1",{name:"\u0275\u0275textInterpolate1",moduleName:y}),a(h,"textInterpolate2",{name:"\u0275\u0275textInterpolate2",moduleName:y}),a(h,"textInterpolate3",{name:"\u0275\u0275textInterpolate3",moduleName:y}),a(h,"textInterpolate4",{name:"\u0275\u0275textInterpolate4",moduleName:y}),a(h,"textInterpolate5",{name:"\u0275\u0275textInterpolate5",moduleName:y}),a(h,"textInterpolate6",{name:"\u0275\u0275textInterpolate6",moduleName:y}),a(h,"textInterpolate7",{name:"\u0275\u0275textInterpolate7",moduleName:y}),a(h,"textInterpolate8",{name:"\u0275\u0275textInterpolate8",moduleName:y}),a(h,"textInterpolateV",{name:"\u0275\u0275textInterpolateV",moduleName:y}),a(h,"restoreView",{name:"\u0275\u0275restoreView",moduleName:y}),a(h,"pureFunction0",{name:"\u0275\u0275pureFunction0",moduleName:y}),a(h,"pureFunction1",{name:"\u0275\u0275pureFunction1",moduleName:y}),a(h,"pureFunction2",{name:"\u0275\u0275pureFunction2",moduleName:y}),a(h,"pureFunction3",{name:"\u0275\u0275pureFunction3",moduleName:y}),a(h,"pureFunction4",{name:"\u0275\u0275pureFunction4",moduleName:y}),a(h,"pureFunction5",{name:"\u0275\u0275pureFunction5",moduleName:y}),a(h,"pureFunction6",{name:"\u0275\u0275pureFunction6",moduleName:y}),a(h,"pureFunction7",{name:"\u0275\u0275pureFunction7",moduleName:y}),a(h,"pureFunction8",{name:"\u0275\u0275pureFunction8",moduleName:y}),a(h,"pureFunctionV",{name:"\u0275\u0275pureFunctionV",moduleName:y}),a(h,"pipeBind1",{name:"\u0275\u0275pipeBind1",moduleName:y}),a(h,"pipeBind2",{name:"\u0275\u0275pipeBind2",moduleName:y}),a(h,"pipeBind3",{name:"\u0275\u0275pipeBind3",moduleName:y}),a(h,"pipeBind4",{name:"\u0275\u0275pipeBind4",moduleName:y}),a(h,"pipeBindV",{name:"\u0275\u0275pipeBindV",moduleName:y}),a(h,"hostProperty",{name:"\u0275\u0275hostProperty",moduleName:y}),a(h,"property",{name:"\u0275\u0275property",moduleName:y}),a(h,"propertyInterpolate",{name:"\u0275\u0275propertyInterpolate",moduleName:y}),a(h,"propertyInterpolate1",{name:"\u0275\u0275propertyInterpolate1",moduleName:y}),a(h,"propertyInterpolate2",{name:"\u0275\u0275propertyInterpolate2",moduleName:y}),a(h,"propertyInterpolate3",{name:"\u0275\u0275propertyInterpolate3",moduleName:y}),a(h,"propertyInterpolate4",{name:"\u0275\u0275propertyInterpolate4",moduleName:y}),a(h,"propertyInterpolate5",{name:"\u0275\u0275propertyInterpolate5",moduleName:y}),a(h,"propertyInterpolate6",{name:"\u0275\u0275propertyInterpolate6",moduleName:y}),a(h,"propertyInterpolate7",{name:"\u0275\u0275propertyInterpolate7",moduleName:y}),a(h,"propertyInterpolate8",{name:"\u0275\u0275propertyInterpolate8",moduleName:y}),a(h,"propertyInterpolateV",{name:"\u0275\u0275propertyInterpolateV",moduleName:y}),a(h,"i18n",{name:"\u0275\u0275i18n",moduleName:y}),a(h,"i18nAttributes",{name:"\u0275\u0275i18nAttributes",moduleName:y}),a(h,"i18nExp",{name:"\u0275\u0275i18nExp",moduleName:y}),a(h,"i18nStart",{name:"\u0275\u0275i18nStart",moduleName:y}),a(h,"i18nEnd",{name:"\u0275\u0275i18nEnd",moduleName:y}),a(h,"i18nApply",{name:"\u0275\u0275i18nApply",moduleName:y}),a(h,"i18nPostprocess",{name:"\u0275\u0275i18nPostprocess",moduleName:y}),a(h,"pipe",{name:"\u0275\u0275pipe",moduleName:y}),a(h,"projection",{name:"\u0275\u0275projection",moduleName:y}),a(h,"projectionDef",{name:"\u0275\u0275projectionDef",moduleName:y}),a(h,"reference",{name:"\u0275\u0275reference",moduleName:y}),a(h,"inject",{name:"\u0275\u0275inject",moduleName:y}),a(h,"injectAttribute",{name:"\u0275\u0275injectAttribute",moduleName:y}),a(h,"directiveInject",{name:"\u0275\u0275directiveInject",moduleName:y}),a(h,"invalidFactory",{name:"\u0275\u0275invalidFactory",moduleName:y}),a(h,"invalidFactoryDep",{name:"\u0275\u0275invalidFactoryDep",moduleName:y}),a(h,"templateRefExtractor",{name:"\u0275\u0275templateRefExtractor",moduleName:y}),a(h,"forwardRef",{name:"forwardRef",moduleName:y}),a(h,"resolveForwardRef",{name:"resolveForwardRef",moduleName:y}),a(h,"replaceMetadata",{name:"\u0275\u0275replaceMetadata",moduleName:y}),a(h,"\u0275\u0275defineInjectable",{name:"\u0275\u0275defineInjectable",moduleName:y}),a(h,"declareInjectable",{name:"\u0275\u0275ngDeclareInjectable",moduleName:y}),a(h,"InjectableDeclaration",{name:"\u0275\u0275InjectableDeclaration",moduleName:y}),a(h,"resolveWindow",{name:"\u0275\u0275resolveWindow",moduleName:y}),a(h,"resolveDocument",{name:"\u0275\u0275resolveDocument",moduleName:y}),a(h,"resolveBody",{name:"\u0275\u0275resolveBody",moduleName:y}),a(h,"getComponentDepsFactory",{name:"\u0275\u0275getComponentDepsFactory",moduleName:y}),a(h,"defineComponent",{name:"\u0275\u0275defineComponent",moduleName:y}),a(h,"declareComponent",{name:"\u0275\u0275ngDeclareComponent",moduleName:y}),a(h,"setComponentScope",{name:"\u0275\u0275setComponentScope",moduleName:y}),a(h,"ChangeDetectionStrategy",{name:"ChangeDetectionStrategy",moduleName:y}),a(h,"ViewEncapsulation",{name:"ViewEncapsulation",moduleName:y}),a(h,"ComponentDeclaration",{name:"\u0275\u0275ComponentDeclaration",moduleName:y}),a(h,"FactoryDeclaration",{name:"\u0275\u0275FactoryDeclaration",moduleName:y}),a(h,"declareFactory",{name:"\u0275\u0275ngDeclareFactory",moduleName:y}),a(h,"FactoryTarget",{name:"\u0275\u0275FactoryTarget",moduleName:y}),a(h,"defineDirective",{name:"\u0275\u0275defineDirective",moduleName:y}),a(h,"declareDirective",{name:"\u0275\u0275ngDeclareDirective",moduleName:y}),a(h,"DirectiveDeclaration",{name:"\u0275\u0275DirectiveDeclaration",moduleName:y}),a(h,"InjectorDef",{name:"\u0275\u0275InjectorDef",moduleName:y}),a(h,"InjectorDeclaration",{name:"\u0275\u0275InjectorDeclaration",moduleName:y}),a(h,"defineInjector",{name:"\u0275\u0275defineInjector",moduleName:y}),a(h,"declareInjector",{name:"\u0275\u0275ngDeclareInjector",moduleName:y}),a(h,"NgModuleDeclaration",{name:"\u0275\u0275NgModuleDeclaration",moduleName:y}),a(h,"ModuleWithProviders",{name:"ModuleWithProviders",moduleName:y}),a(h,"defineNgModule",{name:"\u0275\u0275defineNgModule",moduleName:y}),a(h,"declareNgModule",{name:"\u0275\u0275ngDeclareNgModule",moduleName:y}),a(h,"setNgModuleScope",{name:"\u0275\u0275setNgModuleScope",moduleName:y}),a(h,"registerNgModuleType",{name:"\u0275\u0275registerNgModuleType",moduleName:y}),a(h,"PipeDeclaration",{name:"\u0275\u0275PipeDeclaration",moduleName:y}),a(h,"definePipe",{name:"\u0275\u0275definePipe",moduleName:y}),a(h,"declarePipe",{name:"\u0275\u0275ngDeclarePipe",moduleName:y}),a(h,"declareClassMetadata",{name:"\u0275\u0275ngDeclareClassMetadata",moduleName:y}),a(h,"declareClassMetadataAsync",{name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:y}),a(h,"setClassMetadata",{name:"\u0275setClassMetadata",moduleName:y}),a(h,"setClassMetadataAsync",{name:"\u0275setClassMetadataAsync",moduleName:y}),a(h,"setClassDebugInfo",{name:"\u0275setClassDebugInfo",moduleName:y}),a(h,"queryRefresh",{name:"\u0275\u0275queryRefresh",moduleName:y}),a(h,"viewQuery",{name:"\u0275\u0275viewQuery",moduleName:y}),a(h,"loadQuery",{name:"\u0275\u0275loadQuery",moduleName:y}),a(h,"contentQuery",{name:"\u0275\u0275contentQuery",moduleName:y}),a(h,"viewQuerySignal",{name:"\u0275\u0275viewQuerySignal",moduleName:y}),a(h,"contentQuerySignal",{name:"\u0275\u0275contentQuerySignal",moduleName:y}),a(h,"queryAdvance",{name:"\u0275\u0275queryAdvance",moduleName:y}),a(h,"twoWayProperty",{name:"\u0275\u0275twoWayProperty",moduleName:y}),a(h,"twoWayBindingSet",{name:"\u0275\u0275twoWayBindingSet",moduleName:y}),a(h,"twoWayListener",{name:"\u0275\u0275twoWayListener",moduleName:y}),a(h,"declareLet",{name:"\u0275\u0275declareLet",moduleName:y}),a(h,"storeLet",{name:"\u0275\u0275storeLet",moduleName:y}),a(h,"readContextLet",{name:"\u0275\u0275readContextLet",moduleName:y}),a(h,"attachSourceLocations",{name:"\u0275\u0275attachSourceLocations",moduleName:y}),a(h,"NgOnChangesFeature",{name:"\u0275\u0275NgOnChangesFeature",moduleName:y}),a(h,"InheritDefinitionFeature",{name:"\u0275\u0275InheritDefinitionFeature",moduleName:y}),a(h,"CopyDefinitionFeature",{name:"\u0275\u0275CopyDefinitionFeature",moduleName:y}),a(h,"ProvidersFeature",{name:"\u0275\u0275ProvidersFeature",moduleName:y}),a(h,"HostDirectivesFeature",{name:"\u0275\u0275HostDirectivesFeature",moduleName:y}),a(h,"InputTransformsFeatureFeature",{name:"\u0275\u0275InputTransformsFeature",moduleName:y}),a(h,"ExternalStylesFeature",{name:"\u0275\u0275ExternalStylesFeature",moduleName:y}),a(h,"listener",{name:"\u0275\u0275listener",moduleName:y}),a(h,"getInheritedFactory",{name:"\u0275\u0275getInheritedFactory",moduleName:y}),a(h,"sanitizeHtml",{name:"\u0275\u0275sanitizeHtml",moduleName:y}),a(h,"sanitizeStyle",{name:"\u0275\u0275sanitizeStyle",moduleName:y}),a(h,"sanitizeResourceUrl",{name:"\u0275\u0275sanitizeResourceUrl",moduleName:y}),a(h,"sanitizeScript",{name:"\u0275\u0275sanitizeScript",moduleName:y}),a(h,"sanitizeUrl",{name:"\u0275\u0275sanitizeUrl",moduleName:y}),a(h,"sanitizeUrlOrResourceUrl",{name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:y}),a(h,"trustConstantHtml",{name:"\u0275\u0275trustConstantHtml",moduleName:y}),a(h,"trustConstantResourceUrl",{name:"\u0275\u0275trustConstantResourceUrl",moduleName:y}),a(h,"validateIframeAttribute",{name:"\u0275\u0275validateIframeAttribute",moduleName:y}),a(h,"InputSignalBrandWriteType",{name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:y}),a(h,"UnwrapDirectiveSignalInputs",{name:"\u0275UnwrapDirectiveSignalInputs",moduleName:y}),a(h,"unwrapWritableSignal",{name:"\u0275unwrapWritableSignal",moduleName:y});var EE=/-+([a-z0-9])/g;function wE(t){return t.replace(EE,(...e)=>e[1].toUpperCase())}function TE(t,e){return Fd(t,":",e)}function xE(t,e){return Fd(t,".",e)}function Fd(t,e,n){let r=t.indexOf(e);return r==-1?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function CE(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 Bd(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Bd).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;if(!t.toString)return"object";let e=t.toString();if(e==null)return""+e;let n=e.indexOf(`
|
|
5
|
-
`);return n===-1?e:e.substring(0,n)}var
|
|
6
|
-
`)}toSourceMapGenerator(e,n=0){let r=new
|
|
7
|
-
`).forEach(s=>{n.println(e,`// ${s}`)})}visitExpressionStmt(e,n){return this.printLeadingComments(e,n),e.expr.visitExpression(this,n),n.println(e,";"),null}visitReturnStmt(e,n){return this.printLeadingComments(e,n),n.print(e,"return "),e.value.visitExpression(this,n),n.println(e,";"),null}visitIfStmt(e,n){this.printLeadingComments(e,n),n.print(e,"if ("),e.condition.visitExpression(this,n),n.print(e,") {");let r=e.falseCase!=null&&e.falseCase.length>0;return 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,"}"),null}visitWriteVarExpr(e,n){let r=n.lineIsEmpty();return r||n.print(e,"("),n.print(e,`${e.name} = `),e.value.visitExpression(this,n),r||n.print(e,")"),null}visitWriteKeyExpr(e,n){let r=n.lineIsEmpty();return r||n.print(e,"("),e.receiver.visitExpression(this,n),n.print(e,"["),e.index.visitExpression(this,n),n.print(e,"] = "),e.value.visitExpression(this,n),r||n.print(e,")"),null}visitWritePropExpr(e,n){let r=n.lineIsEmpty();return r||n.print(e,"("),e.receiver.visitExpression(this,n),n.print(e,`.${e.name} = `),e.value.visitExpression(this,n),r||n.print(e,")"),null}visitInvokeFunctionExpr(e,n){let r=e.fn instanceof
|
|
8
|
-
`?"\\n":i[0]=="\r"?"\\r":`\\${i[0]}`);return n||!kE.test(r)?`'${r}'`:r}function Gh(t){let e="";for(let n=0;n<t;n++)e+=vc;return e}function el(t,e){if(e===0)return Ke(t);let n=[];for(let r=0;r<e;r++)n.push(_r);return Ke(t,void 0,n)}function Ud(t,e){let n=Br(e,!1,!1);return n!==e?`${t}[${n}]`:`${t}.${e}`}function RE(t){return PE("ngJitMode",t)}function PE(t,e){let n=new Ye({name:t,moduleName:null}),r=new le(b.Identical,new jr(n),v("undefined")),s=new le(b.Or,r,n,void 0,void 0,!0);return new le(b.And,s,e)}function Ge(t){let e=new G(t);return{value:e,type:e}}function $r(t,e){let n=ue(t.map(r=>r.value));return e?Qt([],n):n}function ls(t,e){return{expression:t,forwardRef:e}}function ME({expression:t,forwardRef:e}){switch(e){case 0:case 1:return t;case 2:return LE(t)}}function LE(t){return B(h.forwardRef).callFn([Qt([],t)])}var qi;(function(t){t[t.Class=0]="Class",t[t.Function=1]="Function"})(qi||(qi={}));var pt;(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"})(pt||(pt={}));function ur(t){let e=Y("__ngFactoryType__"),n=null,r=jh(t)?e:new le(b.Or,e,t.type.value),s=null;t.deps!==null?t.deps!=="invalid"&&(s=new Os(r,Wh(t.deps,t.target))):(n=Y(`\u0275${t.name}_BaseFactory`),s=n.callFn([r]));let i=[],o=null;function l(u){let p=Y("__ngConditionalFactory__");i.push(p.set(Bs).toDeclStmt());let d=s!==null?p.set(s).toStmt():B(h.invalidFactory).callFn([]).toStmt();return i.push(vo(e,[d],[p.set(u).toStmt()])),p}if(jh(t)){let u=Wh(t.delegateDeps,t.target),p=new(t.delegateType===qi.Class?Os:nt)(t.delegate,u);o=l(p)}else UE(t)?o=l(t.expression):o=s;if(o===null)i.push(B(h.invalidFactory).callFn([]).toStmt());else if(n!==null){let u=B(h.getInheritedFactory).callFn([t.type.value]),p=new le(b.Or,n,n.set(u));i.push(new Xe(p.callFn([r])))}else i.push(new Xe(o));let c=Wn([new je(e.name,_r)],i,Pt,void 0,`${t.name}_Factory`);return n!==null&&(c=Qt([],[new rt(n.name),new Xe(c)]).callFn([],void 0,!0)),{expression:c,statements:[],type:OE(t)}}function OE(t){let e=t.deps!==null&&t.deps!=="invalid"?BE(t.deps):an;return Ke(B(h.FactoryDeclaration,[el(t.type.type,t.typeArgumentCount),e]))}function Wh(t,e){return t.map((n,r)=>FE(n,e,r))}function FE(t,e,n){if(t.token===null)return B(h.invalidFactoryDep).callFn([v(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===pt.Pipe?16:0),s=r!==0||t.optional?v(r):null,i=[t.token];s&&i.push(s);let o=VE(e);return B(o).callFn(i)}else return B(h.injectAttribute).callFn([t.token])}function BE(t){let e=!1,n=t.map(r=>{let s=$E(r);return s!==null?(e=!0,s):v(null)});return e?Ke(ue(n)):an}function $E(t){let e=[];return t.attributeNameType!==null&&e.push({key:"attribute",value:t.attributeNameType,quoted:!1}),t.optional&&e.push({key:"optional",value:v(!0),quoted:!1}),t.host&&e.push({key:"host",value:v(!0),quoted:!1}),t.self&&e.push({key:"self",value:v(!0),quoted:!1}),t.skipSelf&&e.push({key:"skipSelf",value:v(!0),quoted:!1}),e.length>0?st(e):null}function jh(t){return t.delegateType!==void 0}function UE(t){return t.expression!==void 0}function VE(t){switch(t){case pt.Component:case pt.Directive:case pt.Pipe:return h.directiveInject;case pt.NgModule:case pt.Injectable:default:return h.inject}}var Vs=class{constructor(e,n,r,s){a(this,"input");a(this,"errLocation");a(this,"ctxLocation");a(this,"message");this.input=n,this.errLocation=r,this.ctxLocation=s,this.message=`Parser Error: ${e} ${r} [${n}] in ${s}`}},Xr=class{constructor(e,n){a(this,"start");a(this,"end");this.start=e,this.end=n}toAbsolute(e){return new et(e+this.start,e+this.end)}},xe=class{constructor(e,n){a(this,"span");a(this,"sourceSpan");this.span=e,this.sourceSpan=n}toString(){return"AST"}},Yr=class extends xe{constructor(n,r,s){super(n,r);a(this,"nameSpan");this.nameSpan=s}},ze=class extends xe{visit(e,n=null){}},Re=class extends xe{visit(e,n=null){return e.visitImplicitReceiver(this,n)}},cn=class extends Re{visit(e,n=null){var r;return(r=e.visitThisReceiver)==null?void 0:r.call(e,this,n)}},Er=class extends xe{constructor(n,r,s){super(n,r);a(this,"expressions");this.expressions=s}visit(n,r=null){return n.visitChain(this,r)}},qs=class extends xe{constructor(n,r,s,i,o){super(n,r);a(this,"condition");a(this,"trueExp");a(this,"falseExp");this.condition=s,this.trueExp=i,this.falseExp=o}visit(n,r=null){return n.visitConditional(this,r)}},Me=class extends Yr{constructor(n,r,s,i,o){super(n,r,s);a(this,"receiver");a(this,"name");this.receiver=i,this.name=o}visit(n,r=null){return n.visitPropertyRead(this,r)}},jn=class extends Yr{constructor(n,r,s,i,o,l){super(n,r,s);a(this,"receiver");a(this,"name");a(this,"value");this.receiver=i,this.name=o,this.value=l}visit(n,r=null){return n.visitPropertyWrite(this,r)}},yt=class extends Yr{constructor(n,r,s,i,o){super(n,r,s);a(this,"receiver");a(this,"name");this.receiver=i,this.name=o}visit(n,r=null){return n.visitSafePropertyRead(this,r)}},Hi=class extends xe{constructor(n,r,s,i){super(n,r);a(this,"receiver");a(this,"key");this.receiver=s,this.key=i}visit(n,r=null){return n.visitKeyedRead(this,r)}},wr=class extends xe{constructor(n,r,s,i){super(n,r);a(this,"receiver");a(this,"key");this.receiver=s,this.key=i}visit(n,r=null){return n.visitSafeKeyedRead(this,r)}},ia=class extends xe{constructor(n,r,s,i,o){super(n,r);a(this,"receiver");a(this,"key");a(this,"value");this.receiver=s,this.key=i,this.value=o}visit(n,r=null){return n.visitKeyedWrite(this,r)}},Qr=class extends Yr{constructor(n,r,s,i,o,l){super(n,r,l);a(this,"exp");a(this,"name");a(this,"args");this.exp=s,this.name=i,this.args=o}visit(n,r=null){return n.visitPipe(this,r)}},Gt=class extends xe{constructor(n,r,s){super(n,r);a(this,"value");this.value=s}visit(n,r=null){return n.visitLiteralPrimitive(this,r)}},oa=class extends xe{constructor(n,r,s){super(n,r);a(this,"expressions");this.expressions=s}visit(n,r=null){return n.visitLiteralArray(this,r)}},aa=class extends xe{constructor(n,r,s,i){super(n,r);a(this,"keys");a(this,"values");this.keys=s,this.values=i}visit(n,r=null){return n.visitLiteralMap(this,r)}},Kn=class extends xe{constructor(n,r,s,i){super(n,r);a(this,"strings");a(this,"expressions");this.strings=s,this.expressions=i}visit(n,r=null){return n.visitInterpolation(this,r)}},_t=class extends xe{constructor(n,r,s,i,o){super(n,r);a(this,"operation");a(this,"left");a(this,"right");this.operation=s,this.left=i,this.right=o}visit(n,r=null){return n.visitBinary(this,r)}},Gi=class t extends _t{constructor(n,r,s,i,o,l,c){super(n,r,o,l,c);a(this,"operator");a(this,"expr");a(this,"left",null);a(this,"right",null);a(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)}},la=class extends xe{constructor(n,r,s){super(n,r);a(this,"expression");this.expression=s}visit(n,r=null){return n.visitPrefixNot(this,r)}},ca=class extends xe{constructor(n,r,s){super(n,r);a(this,"expression");this.expression=s}visit(n,r=null){return n.visitTypeofExpression(this,r)}},Wi=class extends xe{constructor(n,r,s){super(n,r);a(this,"expression");this.expression=s}visit(n,r=null){return n.visitNonNullAssert(this,r)}},un=class extends xe{constructor(n,r,s,i,o){super(n,r);a(this,"receiver");a(this,"args");a(this,"argumentSpan");this.receiver=s,this.args=i,this.argumentSpan=o}visit(n,r=null){return n.visitCall(this,r)}},In=class extends xe{constructor(n,r,s,i,o){super(n,r);a(this,"receiver");a(this,"args");a(this,"argumentSpan");this.receiver=s,this.args=i,this.argumentSpan=o}visit(n,r=null){return n.visitSafeCall(this,r)}},et=class{constructor(e,n){a(this,"start");a(this,"end");this.start=e,this.end=n}},Ce=class extends xe{constructor(n,r,s,i,o){super(new Xr(0,r===null?0:r.length),new et(i,r===null?i:i+r.length));a(this,"ast");a(this,"source");a(this,"location");a(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}`}},ji=class{constructor(e,n,r){a(this,"sourceSpan");a(this,"key");a(this,"value");this.sourceSpan=e,this.key=n,this.value=r}},wc=class{constructor(e,n,r){a(this,"sourceSpan");a(this,"key");a(this,"value");this.sourceSpan=e,this.key=n,this.value=r}},Tr=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)}visitKeyedWrite(e,n){this.visit(e.receiver,n),this.visit(e.key,n),this.visit(e.value,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)}visitNonNullAssert(e,n){this.visit(e.expression,n)}visitPropertyRead(e,n){this.visit(e.receiver,n)}visitPropertyWrite(e,n){this.visit(e.receiver,n),this.visit(e.value,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)}visitAll(e,n){for(let r of e)this.visit(r,n)}},Ii=class{constructor(e,n,r,s,i,o){a(this,"name");a(this,"expression");a(this,"type");a(this,"sourceSpan");a(this,"keySpan");a(this,"valueSpan");a(this,"isLiteral");a(this,"isAnimation");this.name=e,this.expression=n,this.type=r,this.sourceSpan=s,this.keySpan=i,this.valueSpan=o,this.isLiteral=this.type===Ln.LITERAL_ATTR,this.isAnimation=this.type===Ln.ANIMATION}},Ln;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.LITERAL_ATTR=1]="LITERAL_ATTR",t[t.ANIMATION=2]="ANIMATION",t[t.TWO_WAY=3]="TWO_WAY"})(Ln||(Ln={}));var Oe;(function(t){t[t.Regular=0]="Regular",t[t.Animation=1]="Animation",t[t.TwoWay=2]="TwoWay"})(Oe||(Oe={}));var ua=class{constructor(e,n,r,s,i,o,l){a(this,"name");a(this,"targetOrPhase");a(this,"type");a(this,"handler");a(this,"sourceSpan");a(this,"handlerSpan");a(this,"keySpan");this.name=e,this.targetOrPhase=n,this.type=r,this.handler=s,this.sourceSpan=i,this.handlerSpan=o,this.keySpan=l}},Tc=class{constructor(e,n,r,s,i){a(this,"name");a(this,"value");a(this,"sourceSpan");a(this,"keySpan");a(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.Animation=4]="Animation",t[t.TwoWay=5]="TwoWay"})(J||(J={}));var pa=class{constructor(e,n,r,s,i,o,l,c){a(this,"name");a(this,"type");a(this,"securityContext");a(this,"value");a(this,"unit");a(this,"sourceSpan");a(this,"keySpan");a(this,"valueSpan");this.name=e,this.type=n,this.securityContext=r,this.value=s,this.unit=i,this.sourceSpan=o,this.keySpan=l,this.valueSpan=c}},tn;(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"})(tn||(tn={}));function pn(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 Kh(t){return pn(t)[1]==="ng-container"}function xc(t){return pn(t)[1]==="ng-content"}function qE(t){return pn(t)[1]==="ng-template"}function Cc(t){return t===null?null:pn(t)[0]}function Ac(t,e){return t?`:${t}:${e}`:e}var Hs=class{constructor(e,n){a(this,"value");a(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e){throw new Error("visit() not implemented for Comment")}},nn=class{constructor(e,n){a(this,"value");a(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e){return e.visitText(this)}},zn=class{constructor(e,n,r){a(this,"value");a(this,"sourceSpan");a(this,"i18n");this.value=e,this.sourceSpan=n,this.i18n=r}visit(e){return e.visitBoundText(this)}},Ot=class{constructor(e,n,r,s,i,o){a(this,"name");a(this,"value");a(this,"sourceSpan");a(this,"keySpan");a(this,"valueSpan");a(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)}},Ft=class t{constructor(e,n,r,s,i,o,l,c,u){a(this,"name");a(this,"type");a(this,"securityContext");a(this,"value");a(this,"unit");a(this,"sourceSpan");a(this,"keySpan");a(this,"valueSpan");a(this,"i18n");this.name=e,this.type=n,this.securityContext=r,this.value=s,this.unit=i,this.sourceSpan=o,this.keySpan=l,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)}},Xn=class t{constructor(e,n,r,s,i,o,l,c){a(this,"name");a(this,"type");a(this,"handler");a(this,"target");a(this,"phase");a(this,"sourceSpan");a(this,"handlerSpan");a(this,"keySpan");this.name=e,this.type=n,this.handler=r,this.target=s,this.phase=i,this.sourceSpan=o,this.handlerSpan=l,this.keySpan=c}static fromParsedEvent(e){let n=e.type===Oe.Regular?e.targetOrPhase:null,r=e.type===Oe.Animation?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)}},de=class{constructor(e,n,r,s,i,o,l,c,u,p){a(this,"name");a(this,"attributes");a(this,"inputs");a(this,"outputs");a(this,"children");a(this,"references");a(this,"sourceSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");a(this,"i18n");this.name=e,this.attributes=n,this.inputs=r,this.outputs=s,this.children=i,this.references=o,this.sourceSpan=l,this.startSourceSpan=c,this.endSourceSpan=u,this.i18n=p}visit(e){return e.visitElement(this)}},Nn=class{constructor(e,n,r,s,i){a(this,"nameSpan");a(this,"sourceSpan");a(this,"prefetchSpan");a(this,"whenOrOnSourceSpan");a(this,"hydrateSpan");this.nameSpan=e,this.sourceSpan=n,this.prefetchSpan=r,this.whenOrOnSourceSpan=s,this.hydrateSpan=i}visit(e){return e.visitDeferredTrigger(this)}},Gs=class extends Nn{constructor(n,r,s,i,o){super(null,r,s,i,o);a(this,"value");this.value=n}},Ic=class extends Nn{},Nc=class extends Nn{},bc=class extends Nn{},ha=class extends Nn{constructor(n,r,s,i,o,l){super(r,s,i,o,l);a(this,"reference");this.reference=n}},Dc=class extends Nn{constructor(n,r,s,i,o,l){super(r,s,i,o,l);a(this,"delay");this.delay=n}},fa=class extends Nn{constructor(n,r,s,i,o,l){super(r,s,i,o,l);a(this,"reference");this.reference=n}},da=class extends Nn{constructor(n,r,s,i,o,l){super(r,s,i,o,l);a(this,"reference");this.reference=n}},Jt=class{constructor(e,n,r,s){a(this,"nameSpan");a(this,"sourceSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");this.nameSpan=e,this.sourceSpan=n,this.startSourceSpan=r,this.endSourceSpan=s}},Ki=class extends Jt{constructor(n,r,s,i,o,l,c){super(s,i,o,l);a(this,"children");a(this,"minimumTime");a(this,"i18n");this.children=n,this.minimumTime=r,this.i18n=c}visit(n){return n.visitDeferredBlockPlaceholder(this)}},zi=class extends Jt{constructor(n,r,s,i,o,l,c,u){super(i,o,l,c);a(this,"children");a(this,"afterTime");a(this,"minimumTime");a(this,"i18n");this.children=n,this.afterTime=r,this.minimumTime=s,this.i18n=u}visit(n){return n.visitDeferredBlockLoading(this)}},Xi=class extends Jt{constructor(n,r,s,i,o,l){super(r,s,i,o);a(this,"children");a(this,"i18n");this.children=n,this.i18n=l}visit(n){return n.visitDeferredBlockError(this)}},Yn=class extends Jt{constructor(n,r,s,i,o,l,c,u,p,d,m,g,E){super(u,p,m,g);a(this,"children");a(this,"placeholder");a(this,"loading");a(this,"error");a(this,"mainBlockSpan");a(this,"i18n");a(this,"triggers");a(this,"prefetchTriggers");a(this,"hydrateTriggers");a(this,"definedTriggers");a(this,"definedPrefetchTriggers");a(this,"definedHydrateTriggers");this.children=n,this.placeholder=o,this.loading=l,this.error=c,this.mainBlockSpan=d,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),Ol(n,this.children);let r=[this.placeholder,this.loading,this.error].filter(s=>s!==null);Ol(n,r)}visitTriggers(n,r,s){Ol(s,n.map(i=>r[i]))}},Jr=class extends Jt{constructor(n,r,s,i,o,l,c){super(c,i,o,l);a(this,"expression");a(this,"cases");a(this,"unknownBlocks");this.expression=n,this.cases=r,this.unknownBlocks=s}visit(n){return n.visitSwitchBlock(this)}},Yi=class extends Jt{constructor(n,r,s,i,o,l,c){super(l,s,i,o);a(this,"expression");a(this,"children");a(this,"i18n");this.expression=n,this.children=r,this.i18n=c}visit(n){return n.visitSwitchBlockCase(this)}},bn=class extends Jt{constructor(n,r,s,i,o,l,c,u,p,d,m,g,E){super(g,u,d,m);a(this,"item");a(this,"expression");a(this,"trackBy");a(this,"trackKeywordSpan");a(this,"contextVariables");a(this,"children");a(this,"empty");a(this,"mainBlockSpan");a(this,"i18n");this.item=n,this.expression=r,this.trackBy=s,this.trackKeywordSpan=i,this.contextVariables=o,this.children=l,this.empty=c,this.mainBlockSpan=p,this.i18n=E}visit(n){return n.visitForLoopBlock(this)}},Qi=class extends Jt{constructor(n,r,s,i,o,l){super(o,r,s,i);a(this,"children");a(this,"i18n");this.children=n,this.i18n=l}visit(n){return n.visitForLoopBlockEmpty(this)}},Zr=class extends Jt{constructor(n,r,s,i,o){super(o,r,s,i);a(this,"branches");this.branches=n}visit(n){return n.visitIfBlock(this)}},Un=class extends Jt{constructor(n,r,s,i,o,l,c,u){super(c,i,o,l);a(this,"expression");a(this,"children");a(this,"expressionAlias");a(this,"i18n");this.expression=n,this.children=r,this.expressionAlias=s,this.i18n=u}visit(n){return n.visitIfBlockBranch(this)}},ma=class{constructor(e,n,r){a(this,"name");a(this,"sourceSpan");a(this,"nameSpan");this.name=e,this.sourceSpan=n,this.nameSpan=r}visit(e){return e.visitUnknownBlock(this)}},it=class{constructor(e,n,r,s,i){a(this,"name");a(this,"value");a(this,"sourceSpan");a(this,"nameSpan");a(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=r,this.nameSpan=s,this.valueSpan=i}visit(e){return e.visitLetDeclaration(this)}},he=class{constructor(e,n,r,s,i,o,l,c,u,p,d,m){a(this,"tagName");a(this,"attributes");a(this,"inputs");a(this,"outputs");a(this,"templateAttrs");a(this,"children");a(this,"references");a(this,"variables");a(this,"sourceSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");a(this,"i18n");this.tagName=e,this.attributes=n,this.inputs=r,this.outputs=s,this.templateAttrs=i,this.children=o,this.references=l,this.variables=c,this.sourceSpan=u,this.startSourceSpan=p,this.endSourceSpan=d,this.i18n=m}visit(e){return e.visitTemplate(this)}},xr=class{constructor(e,n,r,s,i){a(this,"selector");a(this,"attributes");a(this,"children");a(this,"sourceSpan");a(this,"i18n");a(this,"name","ng-content");this.selector=e,this.attributes=n,this.children=r,this.sourceSpan=s,this.i18n=i}visit(e){return e.visitContent(this)}},vt=class{constructor(e,n,r,s,i){a(this,"name");a(this,"value");a(this,"sourceSpan");a(this,"keySpan");a(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i}visit(e){return e.visitVariable(this)}},Dn=class{constructor(e,n,r,s,i){a(this,"name");a(this,"value");a(this,"sourceSpan");a(this,"keySpan");a(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i}visit(e){return e.visitReference(this)}},Ws=class{constructor(e,n,r,s){a(this,"vars");a(this,"placeholders");a(this,"sourceSpan");a(this,"i18n");this.vars=e,this.placeholders=n,this.sourceSpan=r,this.i18n=s}visit(e){return e.visitIcu(this)}};function Ol(t,e){let n=[];if(t.visit)for(let r of e)t.visit(r)||r.visit(t);else for(let r of e){let s=r.visit(t);s&&n.push(s)}return n}var ft=class{constructor(e,n,r,s,i,o){a(this,"nodes");a(this,"placeholders");a(this,"placeholderToMessage");a(this,"meaning");a(this,"description");a(this,"customId");a(this,"sources");a(this,"id");a(this,"legacyIds",[]);a(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=HE(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=[]}},Or=class{constructor(e,n){a(this,"value");a(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e,n){return e.visitText(this,n)}},Vn=class{constructor(e,n){a(this,"children");a(this,"sourceSpan");this.children=e,this.sourceSpan=n}visit(e,n){return e.visitContainer(this,n)}},ga=class{constructor(e,n,r,s,i){a(this,"expression");a(this,"type");a(this,"cases");a(this,"sourceSpan");a(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)}},Cr=class{constructor(e,n,r,s,i,o,l,c,u){a(this,"tag");a(this,"attrs");a(this,"startName");a(this,"closeName");a(this,"children");a(this,"isVoid");a(this,"sourceSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");this.tag=e,this.attrs=n,this.startName=r,this.closeName=s,this.children=i,this.isVoid=o,this.sourceSpan=l,this.startSourceSpan=c,this.endSourceSpan=u}visit(e,n){return e.visitTagPlaceholder(this,n)}},Ji=class{constructor(e,n,r){a(this,"value");a(this,"name");a(this,"sourceSpan");this.value=e,this.name=n,this.sourceSpan=r}visit(e,n){return e.visitPlaceholder(this,n)}},js=class{constructor(e,n,r){a(this,"value");a(this,"name");a(this,"sourceSpan");a(this,"previousMessage");this.value=e,this.name=n,this.sourceSpan=r}visit(e,n){return e.visitIcuPlaceholder(this,n)}},Ar=class{constructor(e,n,r,s,i,o,l,c){a(this,"name");a(this,"parameters");a(this,"startName");a(this,"closeName");a(this,"children");a(this,"sourceSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");this.name=e,this.parameters=n,this.startName=r,this.closeName=s,this.children=i,this.sourceSpan=o,this.startSourceSpan=l,this.endSourceSpan=c}visit(e,n){return e.visitBlockPlaceholder(this,n)}};function HE(t){let e=new _c;return t.map(r=>r.visit(e)).join("")}var _c=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 kc=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} [
|
|
4
|
+
`;return e+=" ",e}var Rr=Object.freeze({__proto__:null,get TypeModifier(){return Bi},Type:vr,get BuiltinTypeName(){return Xt},BuiltinType:an,ExpressionType:ft,ArrayType:Sc,MapType:Ec,TransplantedType:Os,DYNAMIC_TYPE:kr,INFERRED_TYPE:Lt,BOOL_TYPE:Md,INT_TYPE:hE,NUMBER_TYPE:ol,STRING_TYPE:al,FUNCTION_TYPE:fE,NONE_TYPE:ln,get UnaryOperator(){return An},get BinaryOperator(){return b},nullSafeIsEquivalent:Ld,areAllEquivalent:mt,Expression:ce,ReadVarExpr:Ot,TypeofExpr:Kr,WrappedNodeExpr:G,WriteVarExpr:$i,WriteKeyExpr:Fs,WritePropExpr:zr,InvokeFunctionExpr:rt,TaggedTemplateLiteralExpr:Ui,InstantiateExpr:Bs,LiteralExpr:Pe,TemplateLiteralExpr:$s,TemplateLiteralElementExpr:Vi,LiteralPiece:mr,PlaceholderPiece:qr,LocalizedString:qi,ExternalExpr:Qe,ExternalReference:la,ConditionalExpr:cn,DynamicImportExpr:Tc,NotExpr:Us,FnParam:ze,FunctionExpr:xn,ArrowFunctionExpr:Wn,UnaryOperatorExpr:Sr,BinaryOperatorExpr:le,ReadPropExpr:gt,ReadKeyExpr:In,LiteralArrayExpr:yt,LiteralMapEntry:Xr,LiteralMapExpr:Yt,CommaExpr:xc,NULL_EXPR:Vs,TYPED_NULL_EXPR:Fd,get StmtModifier(){return Ue},LeadingComment:Hi,JSDocComment:Gi,Statement:Er,DeclareVarStmt:st,DeclareFunctionStmt:qs,ExpressionStatement:Ft,ReturnStatement:Ye,IfStmt:Wi,RecursiveAstVisitor:Cc,leadingComment:Bd,jsDocComment:$d,variable:Y,importExpr:$,importType:vE,expressionType:Xe,transplantedType:SE,typeofExpr:oi,literalArr:pe,literalMap:it,unary:EE,not:Ud,fn:jn,arrowFn:Qt,ifStmt:Co,taggedTemplate:Vd,literal:v,localizedString:qd,isNull:wE}),xE="_c",Xh=Y("<unknown>"),CE={},AE=50,ca=class t extends ce{constructor(n){super(n.type);a(this,"resolved");a(this,"original");a(this,"shared",!1);this.resolved=n,this.original=n}visitExpression(n,r){return r===CE?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}},Hs=class{constructor(e=!1){a(this,"isClosureCompilerEnabled");a(this,"statements",[]);a(this,"literals",new Map);a(this,"literalFactories",new Map);a(this,"sharedConstants",new Map);a(this,"_claimedNames",new Map);a(this,"nextNameIndex",0);this.isClosureCompilerEnabled=e}getConstLiteral(e,n){if(e instanceof Pe&&!Yh(e)||e instanceof ca)return e;let r=Ps.INSTANCE.keyOf(e),s=this.literals.get(r),i=!1;if(s||(s=new ca(e),this.literals.set(r,s),i=!0),!i&&!s.shared||i&&n){let o=this.freshName(),l,c;this.isClosureCompilerEnabled&&Yh(e)?(l=Y(o).set(new xn([],[new Ye(e)])),c=Y(o).callFn([])):(l=Y(o).set(e),c=Y(o)),this.statements.push(l.toDeclStmt(Lt,Ue.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,Y(s)),this.statements.push(e.toSharedConstantDeclaration(s,n))}return this.sharedConstants.get(r)}getLiteralFactory(e){if(e instanceof yt){let n=e.entries.map(s=>s.isConstant()?s:Xh),r=Ps.INSTANCE.keyOf(pe(n));return this._getLiteralFactory(r,e.entries,s=>pe(s))}else{let n=it(e.entries.map(s=>({key:s.key,value:s.value.isConstant()?s.value:Xh,quoted:s.quoted}))),r=Ps.INSTANCE.keyOf(n);return this._getLiteralFactory(r,e.entries.map(s=>s.value),s=>it(s.map((i,o)=>({key:e.entries[o].key,value:i,quoted:e.entries[o].quoted}))))}}getSharedFunctionReference(e,n,r=!0){var o;let s=e instanceof Wn;for(let l of this.statements)if(s&&l instanceof st&&((o=l.value)!=null&&o.isEquivalent(e))||!s&&l instanceof qs&&e instanceof xn&&e.isEquivalent(l))return Y(l.name);let i=r?this.uniqueName(n):n;return this.statements.push(e instanceof xn?e.toDeclStmt(i,Ue.Final):new st(i,e,Lt,Ue.Final,e.sourceSpan)),Y(i)}_getLiteralFactory(e,n,r){let s=this.literalFactories.get(e),i=n.filter(o=>!o.isConstant());if(!s){let o=n.map((p,d)=>p.isConstant()?this.getConstLiteral(p,!0):Y(`a${d}`)),l=o.filter(IE).map(p=>new ze(p.name,kr)),c=Qt(l,r(o),Lt),u=this.freshName();this.statements.push(Y(u).set(c).toDeclStmt(Lt,Ue.Final)),s=Y(u),this.literalFactories.set(e,s)}return{literalFactory:s,literalFactoryArguments: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(xE)}},il=class il{keyOf(e){if(e instanceof Pe&&typeof e.value=="string")return`"${e.value}"`;if(e instanceof Pe)return String(e.value);if(e instanceof yt){let n=[];for(let r of e.entries)n.push(this.keyOf(r));return`[${n.join(",")}]`}else if(e instanceof Yt){let n=[];for(let r of e.entries){let s=r.key;r.quoted&&(s=`"${s}"`),n.push(s+":"+this.keyOf(r.value))}return`{${n.join(",")}}`}else{if(e instanceof Qe)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof Ot)return`read(${e.name})`;if(e instanceof Kr)return`typeof(${this.keyOf(e.expr)})`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}};a(il,"INSTANCE",new il);var Ps=il;function IE(t){return t instanceof Ot}function Yh(t){return t instanceof Pe&&typeof t.value=="string"&&t.value.length>=AE}var y="@angular/core",h=class{};a(h,"NEW_METHOD","factory"),a(h,"TRANSFORM_METHOD","transform"),a(h,"PATCH_DEPS","patchedDeps"),a(h,"core",{name:null,moduleName:y}),a(h,"namespaceHTML",{name:"\u0275\u0275namespaceHTML",moduleName:y}),a(h,"namespaceMathML",{name:"\u0275\u0275namespaceMathML",moduleName:y}),a(h,"namespaceSVG",{name:"\u0275\u0275namespaceSVG",moduleName:y}),a(h,"element",{name:"\u0275\u0275element",moduleName:y}),a(h,"elementStart",{name:"\u0275\u0275elementStart",moduleName:y}),a(h,"elementEnd",{name:"\u0275\u0275elementEnd",moduleName:y}),a(h,"advance",{name:"\u0275\u0275advance",moduleName:y}),a(h,"syntheticHostProperty",{name:"\u0275\u0275syntheticHostProperty",moduleName:y}),a(h,"syntheticHostListener",{name:"\u0275\u0275syntheticHostListener",moduleName:y}),a(h,"attribute",{name:"\u0275\u0275attribute",moduleName:y}),a(h,"attributeInterpolate1",{name:"\u0275\u0275attributeInterpolate1",moduleName:y}),a(h,"attributeInterpolate2",{name:"\u0275\u0275attributeInterpolate2",moduleName:y}),a(h,"attributeInterpolate3",{name:"\u0275\u0275attributeInterpolate3",moduleName:y}),a(h,"attributeInterpolate4",{name:"\u0275\u0275attributeInterpolate4",moduleName:y}),a(h,"attributeInterpolate5",{name:"\u0275\u0275attributeInterpolate5",moduleName:y}),a(h,"attributeInterpolate6",{name:"\u0275\u0275attributeInterpolate6",moduleName:y}),a(h,"attributeInterpolate7",{name:"\u0275\u0275attributeInterpolate7",moduleName:y}),a(h,"attributeInterpolate8",{name:"\u0275\u0275attributeInterpolate8",moduleName:y}),a(h,"attributeInterpolateV",{name:"\u0275\u0275attributeInterpolateV",moduleName:y}),a(h,"classProp",{name:"\u0275\u0275classProp",moduleName:y}),a(h,"elementContainerStart",{name:"\u0275\u0275elementContainerStart",moduleName:y}),a(h,"elementContainerEnd",{name:"\u0275\u0275elementContainerEnd",moduleName:y}),a(h,"elementContainer",{name:"\u0275\u0275elementContainer",moduleName:y}),a(h,"styleMap",{name:"\u0275\u0275styleMap",moduleName:y}),a(h,"styleMapInterpolate1",{name:"\u0275\u0275styleMapInterpolate1",moduleName:y}),a(h,"styleMapInterpolate2",{name:"\u0275\u0275styleMapInterpolate2",moduleName:y}),a(h,"styleMapInterpolate3",{name:"\u0275\u0275styleMapInterpolate3",moduleName:y}),a(h,"styleMapInterpolate4",{name:"\u0275\u0275styleMapInterpolate4",moduleName:y}),a(h,"styleMapInterpolate5",{name:"\u0275\u0275styleMapInterpolate5",moduleName:y}),a(h,"styleMapInterpolate6",{name:"\u0275\u0275styleMapInterpolate6",moduleName:y}),a(h,"styleMapInterpolate7",{name:"\u0275\u0275styleMapInterpolate7",moduleName:y}),a(h,"styleMapInterpolate8",{name:"\u0275\u0275styleMapInterpolate8",moduleName:y}),a(h,"styleMapInterpolateV",{name:"\u0275\u0275styleMapInterpolateV",moduleName:y}),a(h,"classMap",{name:"\u0275\u0275classMap",moduleName:y}),a(h,"classMapInterpolate1",{name:"\u0275\u0275classMapInterpolate1",moduleName:y}),a(h,"classMapInterpolate2",{name:"\u0275\u0275classMapInterpolate2",moduleName:y}),a(h,"classMapInterpolate3",{name:"\u0275\u0275classMapInterpolate3",moduleName:y}),a(h,"classMapInterpolate4",{name:"\u0275\u0275classMapInterpolate4",moduleName:y}),a(h,"classMapInterpolate5",{name:"\u0275\u0275classMapInterpolate5",moduleName:y}),a(h,"classMapInterpolate6",{name:"\u0275\u0275classMapInterpolate6",moduleName:y}),a(h,"classMapInterpolate7",{name:"\u0275\u0275classMapInterpolate7",moduleName:y}),a(h,"classMapInterpolate8",{name:"\u0275\u0275classMapInterpolate8",moduleName:y}),a(h,"classMapInterpolateV",{name:"\u0275\u0275classMapInterpolateV",moduleName:y}),a(h,"styleProp",{name:"\u0275\u0275styleProp",moduleName:y}),a(h,"stylePropInterpolate1",{name:"\u0275\u0275stylePropInterpolate1",moduleName:y}),a(h,"stylePropInterpolate2",{name:"\u0275\u0275stylePropInterpolate2",moduleName:y}),a(h,"stylePropInterpolate3",{name:"\u0275\u0275stylePropInterpolate3",moduleName:y}),a(h,"stylePropInterpolate4",{name:"\u0275\u0275stylePropInterpolate4",moduleName:y}),a(h,"stylePropInterpolate5",{name:"\u0275\u0275stylePropInterpolate5",moduleName:y}),a(h,"stylePropInterpolate6",{name:"\u0275\u0275stylePropInterpolate6",moduleName:y}),a(h,"stylePropInterpolate7",{name:"\u0275\u0275stylePropInterpolate7",moduleName:y}),a(h,"stylePropInterpolate8",{name:"\u0275\u0275stylePropInterpolate8",moduleName:y}),a(h,"stylePropInterpolateV",{name:"\u0275\u0275stylePropInterpolateV",moduleName:y}),a(h,"nextContext",{name:"\u0275\u0275nextContext",moduleName:y}),a(h,"resetView",{name:"\u0275\u0275resetView",moduleName:y}),a(h,"templateCreate",{name:"\u0275\u0275template",moduleName:y}),a(h,"defer",{name:"\u0275\u0275defer",moduleName:y}),a(h,"deferWhen",{name:"\u0275\u0275deferWhen",moduleName:y}),a(h,"deferOnIdle",{name:"\u0275\u0275deferOnIdle",moduleName:y}),a(h,"deferOnImmediate",{name:"\u0275\u0275deferOnImmediate",moduleName:y}),a(h,"deferOnTimer",{name:"\u0275\u0275deferOnTimer",moduleName:y}),a(h,"deferOnHover",{name:"\u0275\u0275deferOnHover",moduleName:y}),a(h,"deferOnInteraction",{name:"\u0275\u0275deferOnInteraction",moduleName:y}),a(h,"deferOnViewport",{name:"\u0275\u0275deferOnViewport",moduleName:y}),a(h,"deferPrefetchWhen",{name:"\u0275\u0275deferPrefetchWhen",moduleName:y}),a(h,"deferPrefetchOnIdle",{name:"\u0275\u0275deferPrefetchOnIdle",moduleName:y}),a(h,"deferPrefetchOnImmediate",{name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:y}),a(h,"deferPrefetchOnTimer",{name:"\u0275\u0275deferPrefetchOnTimer",moduleName:y}),a(h,"deferPrefetchOnHover",{name:"\u0275\u0275deferPrefetchOnHover",moduleName:y}),a(h,"deferPrefetchOnInteraction",{name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:y}),a(h,"deferPrefetchOnViewport",{name:"\u0275\u0275deferPrefetchOnViewport",moduleName:y}),a(h,"deferHydrateWhen",{name:"\u0275\u0275deferHydrateWhen",moduleName:y}),a(h,"deferHydrateNever",{name:"\u0275\u0275deferHydrateNever",moduleName:y}),a(h,"deferHydrateOnIdle",{name:"\u0275\u0275deferHydrateOnIdle",moduleName:y}),a(h,"deferHydrateOnImmediate",{name:"\u0275\u0275deferHydrateOnImmediate",moduleName:y}),a(h,"deferHydrateOnTimer",{name:"\u0275\u0275deferHydrateOnTimer",moduleName:y}),a(h,"deferHydrateOnHover",{name:"\u0275\u0275deferHydrateOnHover",moduleName:y}),a(h,"deferHydrateOnInteraction",{name:"\u0275\u0275deferHydrateOnInteraction",moduleName:y}),a(h,"deferHydrateOnViewport",{name:"\u0275\u0275deferHydrateOnViewport",moduleName:y}),a(h,"deferEnableTimerScheduling",{name:"\u0275\u0275deferEnableTimerScheduling",moduleName:y}),a(h,"conditional",{name:"\u0275\u0275conditional",moduleName:y}),a(h,"repeater",{name:"\u0275\u0275repeater",moduleName:y}),a(h,"repeaterCreate",{name:"\u0275\u0275repeaterCreate",moduleName:y}),a(h,"repeaterTrackByIndex",{name:"\u0275\u0275repeaterTrackByIndex",moduleName:y}),a(h,"repeaterTrackByIdentity",{name:"\u0275\u0275repeaterTrackByIdentity",moduleName:y}),a(h,"componentInstance",{name:"\u0275\u0275componentInstance",moduleName:y}),a(h,"text",{name:"\u0275\u0275text",moduleName:y}),a(h,"enableBindings",{name:"\u0275\u0275enableBindings",moduleName:y}),a(h,"disableBindings",{name:"\u0275\u0275disableBindings",moduleName:y}),a(h,"getCurrentView",{name:"\u0275\u0275getCurrentView",moduleName:y}),a(h,"textInterpolate",{name:"\u0275\u0275textInterpolate",moduleName:y}),a(h,"textInterpolate1",{name:"\u0275\u0275textInterpolate1",moduleName:y}),a(h,"textInterpolate2",{name:"\u0275\u0275textInterpolate2",moduleName:y}),a(h,"textInterpolate3",{name:"\u0275\u0275textInterpolate3",moduleName:y}),a(h,"textInterpolate4",{name:"\u0275\u0275textInterpolate4",moduleName:y}),a(h,"textInterpolate5",{name:"\u0275\u0275textInterpolate5",moduleName:y}),a(h,"textInterpolate6",{name:"\u0275\u0275textInterpolate6",moduleName:y}),a(h,"textInterpolate7",{name:"\u0275\u0275textInterpolate7",moduleName:y}),a(h,"textInterpolate8",{name:"\u0275\u0275textInterpolate8",moduleName:y}),a(h,"textInterpolateV",{name:"\u0275\u0275textInterpolateV",moduleName:y}),a(h,"restoreView",{name:"\u0275\u0275restoreView",moduleName:y}),a(h,"pureFunction0",{name:"\u0275\u0275pureFunction0",moduleName:y}),a(h,"pureFunction1",{name:"\u0275\u0275pureFunction1",moduleName:y}),a(h,"pureFunction2",{name:"\u0275\u0275pureFunction2",moduleName:y}),a(h,"pureFunction3",{name:"\u0275\u0275pureFunction3",moduleName:y}),a(h,"pureFunction4",{name:"\u0275\u0275pureFunction4",moduleName:y}),a(h,"pureFunction5",{name:"\u0275\u0275pureFunction5",moduleName:y}),a(h,"pureFunction6",{name:"\u0275\u0275pureFunction6",moduleName:y}),a(h,"pureFunction7",{name:"\u0275\u0275pureFunction7",moduleName:y}),a(h,"pureFunction8",{name:"\u0275\u0275pureFunction8",moduleName:y}),a(h,"pureFunctionV",{name:"\u0275\u0275pureFunctionV",moduleName:y}),a(h,"pipeBind1",{name:"\u0275\u0275pipeBind1",moduleName:y}),a(h,"pipeBind2",{name:"\u0275\u0275pipeBind2",moduleName:y}),a(h,"pipeBind3",{name:"\u0275\u0275pipeBind3",moduleName:y}),a(h,"pipeBind4",{name:"\u0275\u0275pipeBind4",moduleName:y}),a(h,"pipeBindV",{name:"\u0275\u0275pipeBindV",moduleName:y}),a(h,"hostProperty",{name:"\u0275\u0275hostProperty",moduleName:y}),a(h,"property",{name:"\u0275\u0275property",moduleName:y}),a(h,"propertyInterpolate",{name:"\u0275\u0275propertyInterpolate",moduleName:y}),a(h,"propertyInterpolate1",{name:"\u0275\u0275propertyInterpolate1",moduleName:y}),a(h,"propertyInterpolate2",{name:"\u0275\u0275propertyInterpolate2",moduleName:y}),a(h,"propertyInterpolate3",{name:"\u0275\u0275propertyInterpolate3",moduleName:y}),a(h,"propertyInterpolate4",{name:"\u0275\u0275propertyInterpolate4",moduleName:y}),a(h,"propertyInterpolate5",{name:"\u0275\u0275propertyInterpolate5",moduleName:y}),a(h,"propertyInterpolate6",{name:"\u0275\u0275propertyInterpolate6",moduleName:y}),a(h,"propertyInterpolate7",{name:"\u0275\u0275propertyInterpolate7",moduleName:y}),a(h,"propertyInterpolate8",{name:"\u0275\u0275propertyInterpolate8",moduleName:y}),a(h,"propertyInterpolateV",{name:"\u0275\u0275propertyInterpolateV",moduleName:y}),a(h,"i18n",{name:"\u0275\u0275i18n",moduleName:y}),a(h,"i18nAttributes",{name:"\u0275\u0275i18nAttributes",moduleName:y}),a(h,"i18nExp",{name:"\u0275\u0275i18nExp",moduleName:y}),a(h,"i18nStart",{name:"\u0275\u0275i18nStart",moduleName:y}),a(h,"i18nEnd",{name:"\u0275\u0275i18nEnd",moduleName:y}),a(h,"i18nApply",{name:"\u0275\u0275i18nApply",moduleName:y}),a(h,"i18nPostprocess",{name:"\u0275\u0275i18nPostprocess",moduleName:y}),a(h,"pipe",{name:"\u0275\u0275pipe",moduleName:y}),a(h,"projection",{name:"\u0275\u0275projection",moduleName:y}),a(h,"projectionDef",{name:"\u0275\u0275projectionDef",moduleName:y}),a(h,"reference",{name:"\u0275\u0275reference",moduleName:y}),a(h,"inject",{name:"\u0275\u0275inject",moduleName:y}),a(h,"injectAttribute",{name:"\u0275\u0275injectAttribute",moduleName:y}),a(h,"directiveInject",{name:"\u0275\u0275directiveInject",moduleName:y}),a(h,"invalidFactory",{name:"\u0275\u0275invalidFactory",moduleName:y}),a(h,"invalidFactoryDep",{name:"\u0275\u0275invalidFactoryDep",moduleName:y}),a(h,"templateRefExtractor",{name:"\u0275\u0275templateRefExtractor",moduleName:y}),a(h,"forwardRef",{name:"forwardRef",moduleName:y}),a(h,"resolveForwardRef",{name:"resolveForwardRef",moduleName:y}),a(h,"replaceMetadata",{name:"\u0275\u0275replaceMetadata",moduleName:y}),a(h,"\u0275\u0275defineInjectable",{name:"\u0275\u0275defineInjectable",moduleName:y}),a(h,"declareInjectable",{name:"\u0275\u0275ngDeclareInjectable",moduleName:y}),a(h,"InjectableDeclaration",{name:"\u0275\u0275InjectableDeclaration",moduleName:y}),a(h,"resolveWindow",{name:"\u0275\u0275resolveWindow",moduleName:y}),a(h,"resolveDocument",{name:"\u0275\u0275resolveDocument",moduleName:y}),a(h,"resolveBody",{name:"\u0275\u0275resolveBody",moduleName:y}),a(h,"getComponentDepsFactory",{name:"\u0275\u0275getComponentDepsFactory",moduleName:y}),a(h,"defineComponent",{name:"\u0275\u0275defineComponent",moduleName:y}),a(h,"declareComponent",{name:"\u0275\u0275ngDeclareComponent",moduleName:y}),a(h,"setComponentScope",{name:"\u0275\u0275setComponentScope",moduleName:y}),a(h,"ChangeDetectionStrategy",{name:"ChangeDetectionStrategy",moduleName:y}),a(h,"ViewEncapsulation",{name:"ViewEncapsulation",moduleName:y}),a(h,"ComponentDeclaration",{name:"\u0275\u0275ComponentDeclaration",moduleName:y}),a(h,"FactoryDeclaration",{name:"\u0275\u0275FactoryDeclaration",moduleName:y}),a(h,"declareFactory",{name:"\u0275\u0275ngDeclareFactory",moduleName:y}),a(h,"FactoryTarget",{name:"\u0275\u0275FactoryTarget",moduleName:y}),a(h,"defineDirective",{name:"\u0275\u0275defineDirective",moduleName:y}),a(h,"declareDirective",{name:"\u0275\u0275ngDeclareDirective",moduleName:y}),a(h,"DirectiveDeclaration",{name:"\u0275\u0275DirectiveDeclaration",moduleName:y}),a(h,"InjectorDef",{name:"\u0275\u0275InjectorDef",moduleName:y}),a(h,"InjectorDeclaration",{name:"\u0275\u0275InjectorDeclaration",moduleName:y}),a(h,"defineInjector",{name:"\u0275\u0275defineInjector",moduleName:y}),a(h,"declareInjector",{name:"\u0275\u0275ngDeclareInjector",moduleName:y}),a(h,"NgModuleDeclaration",{name:"\u0275\u0275NgModuleDeclaration",moduleName:y}),a(h,"ModuleWithProviders",{name:"ModuleWithProviders",moduleName:y}),a(h,"defineNgModule",{name:"\u0275\u0275defineNgModule",moduleName:y}),a(h,"declareNgModule",{name:"\u0275\u0275ngDeclareNgModule",moduleName:y}),a(h,"setNgModuleScope",{name:"\u0275\u0275setNgModuleScope",moduleName:y}),a(h,"registerNgModuleType",{name:"\u0275\u0275registerNgModuleType",moduleName:y}),a(h,"PipeDeclaration",{name:"\u0275\u0275PipeDeclaration",moduleName:y}),a(h,"definePipe",{name:"\u0275\u0275definePipe",moduleName:y}),a(h,"declarePipe",{name:"\u0275\u0275ngDeclarePipe",moduleName:y}),a(h,"declareClassMetadata",{name:"\u0275\u0275ngDeclareClassMetadata",moduleName:y}),a(h,"declareClassMetadataAsync",{name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:y}),a(h,"setClassMetadata",{name:"\u0275setClassMetadata",moduleName:y}),a(h,"setClassMetadataAsync",{name:"\u0275setClassMetadataAsync",moduleName:y}),a(h,"setClassDebugInfo",{name:"\u0275setClassDebugInfo",moduleName:y}),a(h,"queryRefresh",{name:"\u0275\u0275queryRefresh",moduleName:y}),a(h,"viewQuery",{name:"\u0275\u0275viewQuery",moduleName:y}),a(h,"loadQuery",{name:"\u0275\u0275loadQuery",moduleName:y}),a(h,"contentQuery",{name:"\u0275\u0275contentQuery",moduleName:y}),a(h,"viewQuerySignal",{name:"\u0275\u0275viewQuerySignal",moduleName:y}),a(h,"contentQuerySignal",{name:"\u0275\u0275contentQuerySignal",moduleName:y}),a(h,"queryAdvance",{name:"\u0275\u0275queryAdvance",moduleName:y}),a(h,"twoWayProperty",{name:"\u0275\u0275twoWayProperty",moduleName:y}),a(h,"twoWayBindingSet",{name:"\u0275\u0275twoWayBindingSet",moduleName:y}),a(h,"twoWayListener",{name:"\u0275\u0275twoWayListener",moduleName:y}),a(h,"declareLet",{name:"\u0275\u0275declareLet",moduleName:y}),a(h,"storeLet",{name:"\u0275\u0275storeLet",moduleName:y}),a(h,"readContextLet",{name:"\u0275\u0275readContextLet",moduleName:y}),a(h,"attachSourceLocations",{name:"\u0275\u0275attachSourceLocations",moduleName:y}),a(h,"NgOnChangesFeature",{name:"\u0275\u0275NgOnChangesFeature",moduleName:y}),a(h,"InheritDefinitionFeature",{name:"\u0275\u0275InheritDefinitionFeature",moduleName:y}),a(h,"CopyDefinitionFeature",{name:"\u0275\u0275CopyDefinitionFeature",moduleName:y}),a(h,"ProvidersFeature",{name:"\u0275\u0275ProvidersFeature",moduleName:y}),a(h,"HostDirectivesFeature",{name:"\u0275\u0275HostDirectivesFeature",moduleName:y}),a(h,"ExternalStylesFeature",{name:"\u0275\u0275ExternalStylesFeature",moduleName:y}),a(h,"listener",{name:"\u0275\u0275listener",moduleName:y}),a(h,"getInheritedFactory",{name:"\u0275\u0275getInheritedFactory",moduleName:y}),a(h,"sanitizeHtml",{name:"\u0275\u0275sanitizeHtml",moduleName:y}),a(h,"sanitizeStyle",{name:"\u0275\u0275sanitizeStyle",moduleName:y}),a(h,"sanitizeResourceUrl",{name:"\u0275\u0275sanitizeResourceUrl",moduleName:y}),a(h,"sanitizeScript",{name:"\u0275\u0275sanitizeScript",moduleName:y}),a(h,"sanitizeUrl",{name:"\u0275\u0275sanitizeUrl",moduleName:y}),a(h,"sanitizeUrlOrResourceUrl",{name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:y}),a(h,"trustConstantHtml",{name:"\u0275\u0275trustConstantHtml",moduleName:y}),a(h,"trustConstantResourceUrl",{name:"\u0275\u0275trustConstantResourceUrl",moduleName:y}),a(h,"validateIframeAttribute",{name:"\u0275\u0275validateIframeAttribute",moduleName:y}),a(h,"InputSignalBrandWriteType",{name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:y}),a(h,"UnwrapDirectiveSignalInputs",{name:"\u0275UnwrapDirectiveSignalInputs",moduleName:y}),a(h,"unwrapWritableSignal",{name:"\u0275unwrapWritableSignal",moduleName:y});var NE=/-+([a-z0-9])/g;function bE(t){return t.replace(NE,(...e)=>e[1].toUpperCase())}function DE(t,e){return Hd(t,":",e)}function _E(t,e){return Hd(t,".",e)}function Hd(t,e,n){let r=t.indexOf(e);return r==-1?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function kE(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 Gd(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Gd).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;if(!t.toString)return"object";let e=t.toString();if(e==null)return""+e;let n=e.indexOf(`
|
|
5
|
+
`);return n===-1?e:e.substring(0,n)}var ji=class{constructor(e){a(this,"full");a(this,"major");a(this,"minor");a(this,"patch");this.full=e;let n=e.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}},Di=globalThis;var RE=/^([1-9]|1[0-8])\./;function Wd(t){return t.startsWith("0.")?!0:!RE.test(t)}var PE=3,ME="# sourceMappingURL=data:application/json;base64,",Ac=class{constructor(e=null){a(this,"file");a(this,"sourcesContent",new Map);a(this,"lines",[]);a(this,"lastCol0",0);a(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,p)=>{e.set(u,p),n.push(u),r.push(this.sourcesContent.get(u)||null)});let s="",i=0,o=0,l=0,c=0;return this.lines.forEach(u=>{i=0,s+=u.map(p=>{let d=jo(p.col0-i);return i=p.col0,p.sourceUrl!=null&&(d+=jo(e.get(p.sourceUrl)-o),o=e.get(p.sourceUrl),d+=jo(p.sourceLine0-l),l=p.sourceLine0,d+=jo(p.sourceCol0-c),c=p.sourceCol0),d}).join(","),s+=";"}),s=s.slice(0,-1),{file:this.file||"",version:PE,sourceRoot:"",sources:n,sourcesContent:r,mappings:s}}toJsComment(){return this.hasMappings?"//"+ME+LE(JSON.stringify(this,null,0)):""}};function LE(t){let e="",n=kE(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+=Ii(s>>2),e+=Ii((s&3)<<4|(i===null?0:i>>4)),e+=i===null?"=":Ii((i&15)<<2|(o===null?0:o>>6)),e+=i===null||o===null?"=":Ii(o&63)}return e}function jo(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+=Ii(n)}while(t>0);return e}var OE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Ii(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return OE[t]}var FE=/'|\\|\n|\r|\$/g,BE=/^[$A-Z_][0-9A-Z_$]*$/i,Ic=" ",ua=class{constructor(e){a(this,"indent");a(this,"partsLength",0);a(this,"parts",[]);a(this,"srcSpans",[]);this.indent=e}},Nc=class t{constructor(e){a(this,"_indent");a(this,"_lines");this._indent=e,this._lines=[new ua(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*Ic.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 ua(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?Qh(e.indent)+e.parts.join(""):"").join(`
|
|
6
|
+
`)}toSourceMapGenerator(e,n=0){let r=new Ac(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,l)=>{r.addLine();let c=o.srcSpans,u=o.parts,p=o.indent*Ic.length,d=0;for(;d<c.length&&!c[d];)p+=u[d].length,d++;for(d<c.length&&l===0&&p===0?s=!0:i();d<c.length;){let m=c[d],g=m.start.file,E=m.start.line,w=m.start.col;for(r.addSource(g.url,g.content).addMapping(p,g.url,E,w),p+=u[d].length,d++;d<c.length&&(m===c[d]||!c[d]);)p+=u[d].length,d++}}),r}spanOf(e,n){let r=this._lines[e];if(r){let s=n-Qh(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}get sourceLines(){return this._lines.length&&this._lines[this._lines.length-1].parts.length===0?this._lines.slice(0,-1):this._lines}},bc=class{constructor(e){a(this,"_escapeDollarInStrings");this._escapeDollarInStrings=e}printLeadingComments(e,n){if(e.leadingComments!==void 0)for(let r of e.leadingComments)r instanceof Gi?n.print(e,`/*${r.toString()}*/`,r.trailingNewline):r.multiline?n.print(e,`/* ${r.text} */`,r.trailingNewline):r.text.split(`
|
|
7
|
+
`).forEach(s=>{n.println(e,`// ${s}`)})}visitExpressionStmt(e,n){return this.printLeadingComments(e,n),e.expr.visitExpression(this,n),n.println(e,";"),null}visitReturnStmt(e,n){return this.printLeadingComments(e,n),n.print(e,"return "),e.value.visitExpression(this,n),n.println(e,";"),null}visitIfStmt(e,n){this.printLeadingComments(e,n),n.print(e,"if ("),e.condition.visitExpression(this,n),n.print(e,") {");let r=e.falseCase!=null&&e.falseCase.length>0;return 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,"}"),null}visitWriteVarExpr(e,n){let r=n.lineIsEmpty();return r||n.print(e,"("),n.print(e,`${e.name} = `),e.value.visitExpression(this,n),r||n.print(e,")"),null}visitWriteKeyExpr(e,n){let r=n.lineIsEmpty();return r||n.print(e,"("),e.receiver.visitExpression(this,n),n.print(e,"["),e.index.visitExpression(this,n),n.print(e,"] = "),e.value.visitExpression(this,n),r||n.print(e,")"),null}visitWritePropExpr(e,n){let r=n.lineIsEmpty();return r||n.print(e,"("),e.receiver.visitExpression(this,n),n.print(e,`.${e.name} = `),e.value.visitExpression(this,n),r||n.print(e,")"),null}visitInvokeFunctionExpr(e,n){let r=e.fn instanceof Wn;return r&&n.print(e.fn,"("),e.fn.visitExpression(this,n),r&&n.print(e.fn,")"),n.print(e,"("),this.visitAllExpressions(e.args,n,","),n.print(e,")"),null}visitTaggedTemplateLiteralExpr(e,n){return e.tag.visitExpression(this,n),e.template.visitExpression(this,n),null}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)}visitWrappedNodeExpr(e,n){throw new Error("Abstract emitter cannot visit WrappedNodeExpr.")}visitTypeofExpr(e,n){n.print(e,"typeof "),e.expr.visitExpression(this,n)}visitReadVarExpr(e,n){return n.print(e,e.name),null}visitInstantiateExpr(e,n){return n.print(e,"new "),e.classExpr.visitExpression(this,n),n.print(e,"("),this.visitAllExpressions(e.args,n,","),n.print(e,")"),null}visitLiteralExpr(e,n){let r=e.value;return typeof r=="string"?n.print(e,$r(r,this._escapeDollarInStrings)):n.print(e,`${r}`),null}visitLocalizedString(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}`);return n.print(e,"`"),null}visitConditionalExpr(e,n){return n.print(e,"("),e.condition.visitExpression(this,n),n.print(e,"? "),e.trueCase.visitExpression(this,n),n.print(e,": "),e.falseCase.visitExpression(this,n),n.print(e,")"),null}visitDynamicImportExpr(e,n){n.print(e,`import(${e.url})`)}visitNotExpr(e,n){return n.print(e,"!"),e.condition.visitExpression(this,n),null}visitUnaryOperatorExpr(e,n){let r;switch(e.operator){case An.Plus:r="+";break;case An.Minus:r="-";break;default:throw new Error(`Unknown operator ${e.operator}`)}return e.parens&&n.print(e,"("),n.print(e,r),e.expr.visitExpression(this,n),e.parens&&n.print(e,")"),null}visitBinaryOperatorExpr(e,n){let r;switch(e.operator){case b.Equals:r="==";break;case b.Identical:r="===";break;case b.NotEquals:r="!=";break;case b.NotIdentical:r="!==";break;case b.And:r="&&";break;case b.BitwiseOr:r="|";break;case b.BitwiseAnd:r="&";break;case b.Or:r="||";break;case b.Plus:r="+";break;case b.Minus:r="-";break;case b.Divide:r="/";break;case b.Multiply:r="*";break;case b.Modulo:r="%";break;case b.Lower:r="<";break;case b.LowerEquals:r="<=";break;case b.Bigger:r=">";break;case b.BiggerEquals:r=">=";break;case b.NullishCoalesce:r="??";break;default:throw new Error(`Unknown operator ${e.operator}`)}return e.parens&&n.print(e,"("),e.lhs.visitExpression(this,n),n.print(e,` ${r} `),e.rhs.visitExpression(this,n),e.parens&&n.print(e,")"),null}visitReadPropExpr(e,n){return e.receiver.visitExpression(this,n),n.print(e,"."),n.print(e,e.name),null}visitReadKeyExpr(e,n){return e.receiver.visitExpression(this,n),n.print(e,"["),e.index.visitExpression(this,n),n.print(e,"]"),null}visitLiteralArrayExpr(e,n){return n.print(e,"["),this.visitAllExpressions(e.entries,n,","),n.print(e,"]"),null}visitLiteralMapExpr(e,n){return n.print(e,"{"),this.visitAllObjects(r=>{n.print(e,`${$r(r.key,this._escapeDollarInStrings,r.quoted)}:`),r.value.visitExpression(this,n)},e.entries,n,","),n.print(e,"}"),null}visitCommaExpr(e,n){return n.print(e,"("),this.visitAllExpressions(e.parts,n,","),n.print(e,")"),null}visitAllExpressions(e,n,r){this.visitAllObjects(s=>s.visitExpression(this,n),e,n,r)}visitAllObjects(e,n,r,s){let i=!1;for(let o=0;o<n.length;o++)o>0&&(r.lineLength()>80?(r.print(null,s,!0),i||(r.incIndent(),r.incIndent(),i=!0)):r.print(null,s,!1)),e(n[o]);i&&(r.decIndent(),r.decIndent())}visitAllStatements(e,n){e.forEach(r=>r.visitStatement(this,n))}};function $r(t,e,n=!0){if(t==null)return null;let r=t.replace(FE,(...i)=>i[0]=="$"?e?"\\$":"$":i[0]==`
|
|
8
|
+
`?"\\n":i[0]=="\r"?"\\r":`\\${i[0]}`);return n||!BE.test(r)?`'${r}'`:r}function Qh(t){let e="";for(let n=0;n<t;n++)e+=Ic;return e}function ll(t,e){if(e===0)return Xe(t);let n=[];for(let r=0;r<e;r++)n.push(kr);return Xe(t,void 0,n)}function jd(t,e){let n=$r(e,!1,!1);return n!==e?`${t}[${n}]`:`${t}.${e}`}function $E(t){return UE("ngJitMode",t)}function UE(t,e){let n=new Qe({name:t,moduleName:null}),r=new le(b.Identical,new Kr(n),v("undefined")),s=new le(b.Or,r,n,void 0,void 0,!0);return new le(b.And,s,e)}function We(t){let e=new G(t);return{value:e,type:e}}function Ur(t,e){let n=pe(t.map(r=>r.value));return e?Qt([],n):n}function cs(t,e){return{expression:t,forwardRef:e}}function VE({expression:t,forwardRef:e}){switch(e){case 0:case 1:return t;case 2:return qE(t)}}function qE(t){return $(h.forwardRef).callFn([Qt([],t)])}var Ki;(function(t){t[t.Class=0]="Class",t[t.Function=1]="Function"})(Ki||(Ki={}));var ht;(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"})(ht||(ht={}));function ur(t){let e=Y("__ngFactoryType__"),n=null,r=Zh(t)?e:new le(b.Or,e,t.type.value),s=null;t.deps!==null?t.deps!=="invalid"&&(s=new Bs(r,Jh(t.deps,t.target))):(n=Y(`\u0275${t.name}_BaseFactory`),s=n.callFn([r]));let i=[],o=null;function l(u){let p=Y("__ngConditionalFactory__");i.push(p.set(Vs).toDeclStmt());let d=s!==null?p.set(s).toStmt():$(h.invalidFactory).callFn([]).toStmt();return i.push(Co(e,[d],[p.set(u).toStmt()])),p}if(Zh(t)){let u=Jh(t.delegateDeps,t.target),p=new(t.delegateType===Ki.Class?Bs:rt)(t.delegate,u);o=l(p)}else KE(t)?o=l(t.expression):o=s;if(o===null)i.push($(h.invalidFactory).callFn([]).toStmt());else if(n!==null){let u=$(h.getInheritedFactory).callFn([t.type.value]),p=new le(b.Or,n,n.set(u));i.push(new Ye(p.callFn([r])))}else i.push(new Ye(o));let c=jn([new ze(e.name,kr)],i,Lt,void 0,`${t.name}_Factory`);return n!==null&&(c=Qt([],[new st(n.name),new Ye(c)]).callFn([],void 0,!0)),{expression:c,statements:[],type:HE(t)}}function HE(t){let e=t.deps!==null&&t.deps!=="invalid"?WE(t.deps):ln;return Xe($(h.FactoryDeclaration,[ll(t.type.type,t.typeArgumentCount),e]))}function Jh(t,e){return t.map((n,r)=>GE(n,e,r))}function GE(t,e,n){if(t.token===null)return $(h.invalidFactoryDep).callFn([v(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===ht.Pipe?16:0),s=r!==0||t.optional?v(r):null,i=[t.token];s&&i.push(s);let o=zE(e);return $(o).callFn(i)}else return $(h.injectAttribute).callFn([t.token])}function WE(t){let e=!1,n=t.map(r=>{let s=jE(r);return s!==null?(e=!0,s):v(null)});return e?Xe(pe(n)):ln}function jE(t){let e=[];return t.attributeNameType!==null&&e.push({key:"attribute",value:t.attributeNameType,quoted:!1}),t.optional&&e.push({key:"optional",value:v(!0),quoted:!1}),t.host&&e.push({key:"host",value:v(!0),quoted:!1}),t.self&&e.push({key:"self",value:v(!0),quoted:!1}),t.skipSelf&&e.push({key:"skipSelf",value:v(!0),quoted:!1}),e.length>0?it(e):null}function Zh(t){return t.delegateType!==void 0}function KE(t){return t.expression!==void 0}function zE(t){switch(t){case ht.Component:case ht.Directive:case ht.Pipe:return h.directiveInject;case ht.NgModule:case ht.Injectable:default:return h.inject}}var Gs=class{constructor(e,n,r,s){a(this,"input");a(this,"errLocation");a(this,"ctxLocation");a(this,"message");this.input=n,this.errLocation=r,this.ctxLocation=s,this.message=`Parser Error: ${e} ${r} [${n}] in ${s}`}},Yr=class{constructor(e,n){a(this,"start");a(this,"end");this.start=e,this.end=n}toAbsolute(e){return new tt(e+this.start,e+this.end)}},Se=class{constructor(e,n){a(this,"span");a(this,"sourceSpan");this.span=e,this.sourceSpan=n}toString(){return"AST"}},Qr=class extends Se{constructor(n,r,s){super(n,r);a(this,"nameSpan");this.nameSpan=s}},je=class extends Se{visit(e,n=null){}},Re=class extends Se{visit(e,n=null){return e.visitImplicitReceiver(this,n)}},un=class extends Re{visit(e,n=null){var r;return(r=e.visitThisReceiver)==null?void 0:r.call(e,this,n)}},wr=class extends Se{constructor(n,r,s){super(n,r);a(this,"expressions");this.expressions=s}visit(n,r=null){return n.visitChain(this,r)}},Ws=class extends Se{constructor(n,r,s,i,o){super(n,r);a(this,"condition");a(this,"trueExp");a(this,"falseExp");this.condition=s,this.trueExp=i,this.falseExp=o}visit(n,r=null){return n.visitConditional(this,r)}},Me=class extends Qr{constructor(n,r,s,i,o){super(n,r,s);a(this,"receiver");a(this,"name");this.receiver=i,this.name=o}visit(n,r=null){return n.visitPropertyRead(this,r)}},Kn=class extends Qr{constructor(n,r,s,i,o,l){super(n,r,s);a(this,"receiver");a(this,"name");a(this,"value");this.receiver=i,this.name=o,this.value=l}visit(n,r=null){return n.visitPropertyWrite(this,r)}},vt=class extends Qr{constructor(n,r,s,i,o){super(n,r,s);a(this,"receiver");a(this,"name");this.receiver=i,this.name=o}visit(n,r=null){return n.visitSafePropertyRead(this,r)}},zi=class extends Se{constructor(n,r,s,i){super(n,r);a(this,"receiver");a(this,"key");this.receiver=s,this.key=i}visit(n,r=null){return n.visitKeyedRead(this,r)}},Tr=class extends Se{constructor(n,r,s,i){super(n,r);a(this,"receiver");a(this,"key");this.receiver=s,this.key=i}visit(n,r=null){return n.visitSafeKeyedRead(this,r)}},pa=class extends Se{constructor(n,r,s,i,o){super(n,r);a(this,"receiver");a(this,"key");a(this,"value");this.receiver=s,this.key=i,this.value=o}visit(n,r=null){return n.visitKeyedWrite(this,r)}},Jr=class extends Qr{constructor(n,r,s,i,o,l){super(n,r,l);a(this,"exp");a(this,"name");a(this,"args");this.exp=s,this.name=i,this.args=o}visit(n,r=null){return n.visitPipe(this,r)}},Gt=class extends Se{constructor(n,r,s){super(n,r);a(this,"value");this.value=s}visit(n,r=null){return n.visitLiteralPrimitive(this,r)}},ha=class extends Se{constructor(n,r,s){super(n,r);a(this,"expressions");this.expressions=s}visit(n,r=null){return n.visitLiteralArray(this,r)}},fa=class extends Se{constructor(n,r,s,i){super(n,r);a(this,"keys");a(this,"values");this.keys=s,this.values=i}visit(n,r=null){return n.visitLiteralMap(this,r)}},zn=class extends Se{constructor(n,r,s,i){super(n,r);a(this,"strings");a(this,"expressions");this.strings=s,this.expressions=i}visit(n,r=null){return n.visitInterpolation(this,r)}},Rt=class extends Se{constructor(n,r,s,i,o){super(n,r);a(this,"operation");a(this,"left");a(this,"right");this.operation=s,this.left=i,this.right=o}visit(n,r=null){return n.visitBinary(this,r)}},Xi=class t extends Rt{constructor(n,r,s,i,o,l,c){super(n,r,o,l,c);a(this,"operator");a(this,"expr");a(this,"left",null);a(this,"right",null);a(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)}},da=class extends Se{constructor(n,r,s){super(n,r);a(this,"expression");this.expression=s}visit(n,r=null){return n.visitPrefixNot(this,r)}},ma=class extends Se{constructor(n,r,s){super(n,r);a(this,"expression");this.expression=s}visit(n,r=null){return n.visitTypeofExpression(this,r)}},Yi=class extends Se{constructor(n,r,s){super(n,r);a(this,"expression");this.expression=s}visit(n,r=null){return n.visitNonNullAssert(this,r)}},pn=class extends Se{constructor(n,r,s,i,o){super(n,r);a(this,"receiver");a(this,"args");a(this,"argumentSpan");this.receiver=s,this.args=i,this.argumentSpan=o}visit(n,r=null){return n.visitCall(this,r)}},Nn=class extends Se{constructor(n,r,s,i,o){super(n,r);a(this,"receiver");a(this,"args");a(this,"argumentSpan");this.receiver=s,this.args=i,this.argumentSpan=o}visit(n,r=null){return n.visitSafeCall(this,r)}},Qi=class extends Se{constructor(n,r,s,i){super(n,r);a(this,"elements");a(this,"expressions");this.elements=s,this.expressions=i}visit(n,r){return n.visitTemplateLiteral(this,r)}},ga=class extends Se{constructor(n,r,s){super(n,r);a(this,"text");this.text=s}visit(n,r){return n.visitTemplateLiteralElement(this,r)}},tt=class{constructor(e,n){a(this,"start");a(this,"end");this.start=e,this.end=n}},Ce=class extends Se{constructor(n,r,s,i,o){super(new Yr(0,r===null?0:r.length),new tt(i,r===null?i:i+r.length));a(this,"ast");a(this,"source");a(this,"location");a(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}`}},Ji=class{constructor(e,n,r){a(this,"sourceSpan");a(this,"key");a(this,"value");this.sourceSpan=e,this.key=n,this.value=r}},Dc=class{constructor(e,n,r){a(this,"sourceSpan");a(this,"key");a(this,"value");this.sourceSpan=e,this.key=n,this.value=r}},xr=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)}visitKeyedWrite(e,n){this.visit(e.receiver,n),this.visit(e.key,n),this.visit(e.value,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)}visitNonNullAssert(e,n){this.visit(e.expression,n)}visitPropertyRead(e,n){this.visit(e.receiver,n)}visitPropertyWrite(e,n){this.visit(e.receiver,n),this.visit(e.value,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){}visitAll(e,n){for(let r of e)this.visit(r,n)}},_i=class{constructor(e,n,r,s,i,o){a(this,"name");a(this,"expression");a(this,"type");a(this,"sourceSpan");a(this,"keySpan");a(this,"valueSpan");a(this,"isLiteral");a(this,"isAnimation");this.name=e,this.expression=n,this.type=r,this.sourceSpan=s,this.keySpan=i,this.valueSpan=o,this.isLiteral=this.type===On.LITERAL_ATTR,this.isAnimation=this.type===On.ANIMATION}},On;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.LITERAL_ATTR=1]="LITERAL_ATTR",t[t.ANIMATION=2]="ANIMATION",t[t.TWO_WAY=3]="TWO_WAY"})(On||(On={}));var Oe;(function(t){t[t.Regular=0]="Regular",t[t.Animation=1]="Animation",t[t.TwoWay=2]="TwoWay"})(Oe||(Oe={}));var ya=class{constructor(e,n,r,s,i,o,l){a(this,"name");a(this,"targetOrPhase");a(this,"type");a(this,"handler");a(this,"sourceSpan");a(this,"handlerSpan");a(this,"keySpan");this.name=e,this.targetOrPhase=n,this.type=r,this.handler=s,this.sourceSpan=i,this.handlerSpan=o,this.keySpan=l}},_c=class{constructor(e,n,r,s,i){a(this,"name");a(this,"value");a(this,"sourceSpan");a(this,"keySpan");a(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.Animation=4]="Animation",t[t.TwoWay=5]="TwoWay"})(J||(J={}));var va=class{constructor(e,n,r,s,i,o,l,c){a(this,"name");a(this,"type");a(this,"securityContext");a(this,"value");a(this,"unit");a(this,"sourceSpan");a(this,"keySpan");a(this,"valueSpan");this.name=e,this.type=n,this.securityContext=r,this.value=s,this.unit=i,this.sourceSpan=o,this.keySpan=l,this.valueSpan=c}},tn;(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"})(tn||(tn={}));function hn(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 ef(t){return hn(t)[1]==="ng-container"}function kc(t){return hn(t)[1]==="ng-content"}function XE(t){return hn(t)[1]==="ng-template"}function Rc(t){return t===null?null:hn(t)[0]}function Pc(t,e){return t?`:${t}:${e}`:e}var js=class{constructor(e,n){a(this,"value");a(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e){throw new Error("visit() not implemented for Comment")}},rn=class{constructor(e,n){a(this,"value");a(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e){return e.visitText(this)}},Xn=class{constructor(e,n,r){a(this,"value");a(this,"sourceSpan");a(this,"i18n");this.value=e,this.sourceSpan=n,this.i18n=r}visit(e){return e.visitBoundText(this)}},St=class{constructor(e,n,r,s,i,o){a(this,"name");a(this,"value");a(this,"sourceSpan");a(this,"keySpan");a(this,"valueSpan");a(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)}},Et=class t{constructor(e,n,r,s,i,o,l,c,u){a(this,"name");a(this,"type");a(this,"securityContext");a(this,"value");a(this,"unit");a(this,"sourceSpan");a(this,"keySpan");a(this,"valueSpan");a(this,"i18n");this.name=e,this.type=n,this.securityContext=r,this.value=s,this.unit=i,this.sourceSpan=o,this.keySpan=l,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)}},Yn=class t{constructor(e,n,r,s,i,o,l,c){a(this,"name");a(this,"type");a(this,"handler");a(this,"target");a(this,"phase");a(this,"sourceSpan");a(this,"handlerSpan");a(this,"keySpan");this.name=e,this.type=n,this.handler=r,this.target=s,this.phase=i,this.sourceSpan=o,this.handlerSpan=l,this.keySpan=c}static fromParsedEvent(e){let n=e.type===Oe.Regular?e.targetOrPhase:null,r=e.type===Oe.Animation?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)}},de=class{constructor(e,n,r,s,i,o,l,c,u,p){a(this,"name");a(this,"attributes");a(this,"inputs");a(this,"outputs");a(this,"children");a(this,"references");a(this,"sourceSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");a(this,"i18n");this.name=e,this.attributes=n,this.inputs=r,this.outputs=s,this.children=i,this.references=o,this.sourceSpan=l,this.startSourceSpan=c,this.endSourceSpan=u,this.i18n=p}visit(e){return e.visitElement(this)}},bn=class{constructor(e,n,r,s,i){a(this,"nameSpan");a(this,"sourceSpan");a(this,"prefetchSpan");a(this,"whenOrOnSourceSpan");a(this,"hydrateSpan");this.nameSpan=e,this.sourceSpan=n,this.prefetchSpan=r,this.whenOrOnSourceSpan=s,this.hydrateSpan=i}visit(e){return e.visitDeferredTrigger(this)}},Ks=class extends bn{constructor(n,r,s,i,o){super(null,r,s,i,o);a(this,"value");this.value=n}},Mc=class extends bn{},Lc=class extends bn{},Oc=class extends bn{},Sa=class extends bn{constructor(n,r,s,i,o,l){super(r,s,i,o,l);a(this,"reference");this.reference=n}},Fc=class extends bn{constructor(n,r,s,i,o,l){super(r,s,i,o,l);a(this,"delay");this.delay=n}},Ea=class extends bn{constructor(n,r,s,i,o,l){super(r,s,i,o,l);a(this,"reference");this.reference=n}},wa=class extends bn{constructor(n,r,s,i,o,l){super(r,s,i,o,l);a(this,"reference");this.reference=n}},Jt=class{constructor(e,n,r,s){a(this,"nameSpan");a(this,"sourceSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");this.nameSpan=e,this.sourceSpan=n,this.startSourceSpan=r,this.endSourceSpan=s}},Zi=class extends Jt{constructor(n,r,s,i,o,l,c){super(s,i,o,l);a(this,"children");a(this,"minimumTime");a(this,"i18n");this.children=n,this.minimumTime=r,this.i18n=c}visit(n){return n.visitDeferredBlockPlaceholder(this)}},eo=class extends Jt{constructor(n,r,s,i,o,l,c,u){super(i,o,l,c);a(this,"children");a(this,"afterTime");a(this,"minimumTime");a(this,"i18n");this.children=n,this.afterTime=r,this.minimumTime=s,this.i18n=u}visit(n){return n.visitDeferredBlockLoading(this)}},to=class extends Jt{constructor(n,r,s,i,o,l){super(r,s,i,o);a(this,"children");a(this,"i18n");this.children=n,this.i18n=l}visit(n){return n.visitDeferredBlockError(this)}},Qn=class extends Jt{constructor(n,r,s,i,o,l,c,u,p,d,m,g,E){super(u,p,m,g);a(this,"children");a(this,"placeholder");a(this,"loading");a(this,"error");a(this,"mainBlockSpan");a(this,"i18n");a(this,"triggers");a(this,"prefetchTriggers");a(this,"hydrateTriggers");a(this,"definedTriggers");a(this,"definedPrefetchTriggers");a(this,"definedHydrateTriggers");this.children=n,this.placeholder=o,this.loading=l,this.error=c,this.mainBlockSpan=d,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),jl(n,this.children);let r=[this.placeholder,this.loading,this.error].filter(s=>s!==null);jl(n,r)}visitTriggers(n,r,s){jl(s,n.map(i=>r[i]))}},Zr=class extends Jt{constructor(n,r,s,i,o,l,c){super(c,i,o,l);a(this,"expression");a(this,"cases");a(this,"unknownBlocks");this.expression=n,this.cases=r,this.unknownBlocks=s}visit(n){return n.visitSwitchBlock(this)}},no=class extends Jt{constructor(n,r,s,i,o,l,c){super(l,s,i,o);a(this,"expression");a(this,"children");a(this,"i18n");this.expression=n,this.children=r,this.i18n=c}visit(n){return n.visitSwitchBlockCase(this)}},Dn=class extends Jt{constructor(n,r,s,i,o,l,c,u,p,d,m,g,E){super(g,u,d,m);a(this,"item");a(this,"expression");a(this,"trackBy");a(this,"trackKeywordSpan");a(this,"contextVariables");a(this,"children");a(this,"empty");a(this,"mainBlockSpan");a(this,"i18n");this.item=n,this.expression=r,this.trackBy=s,this.trackKeywordSpan=i,this.contextVariables=o,this.children=l,this.empty=c,this.mainBlockSpan=p,this.i18n=E}visit(n){return n.visitForLoopBlock(this)}},ro=class extends Jt{constructor(n,r,s,i,o,l){super(o,r,s,i);a(this,"children");a(this,"i18n");this.children=n,this.i18n=l}visit(n){return n.visitForLoopBlockEmpty(this)}},es=class extends Jt{constructor(n,r,s,i,o){super(o,r,s,i);a(this,"branches");this.branches=n}visit(n){return n.visitIfBlock(this)}},Vn=class extends Jt{constructor(n,r,s,i,o,l,c,u){super(c,i,o,l);a(this,"expression");a(this,"children");a(this,"expressionAlias");a(this,"i18n");this.expression=n,this.children=r,this.expressionAlias=s,this.i18n=u}visit(n){return n.visitIfBlockBranch(this)}},Ta=class{constructor(e,n,r){a(this,"name");a(this,"sourceSpan");a(this,"nameSpan");this.name=e,this.sourceSpan=n,this.nameSpan=r}visit(e){return e.visitUnknownBlock(this)}},ot=class{constructor(e,n,r,s,i){a(this,"name");a(this,"value");a(this,"sourceSpan");a(this,"nameSpan");a(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=r,this.nameSpan=s,this.valueSpan=i}visit(e){return e.visitLetDeclaration(this)}},he=class{constructor(e,n,r,s,i,o,l,c,u,p,d,m){a(this,"tagName");a(this,"attributes");a(this,"inputs");a(this,"outputs");a(this,"templateAttrs");a(this,"children");a(this,"references");a(this,"variables");a(this,"sourceSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");a(this,"i18n");this.tagName=e,this.attributes=n,this.inputs=r,this.outputs=s,this.templateAttrs=i,this.children=o,this.references=l,this.variables=c,this.sourceSpan=u,this.startSourceSpan=p,this.endSourceSpan=d,this.i18n=m}visit(e){return e.visitTemplate(this)}},Cr=class{constructor(e,n,r,s,i){a(this,"selector");a(this,"attributes");a(this,"children");a(this,"sourceSpan");a(this,"i18n");a(this,"name","ng-content");this.selector=e,this.attributes=n,this.children=r,this.sourceSpan=s,this.i18n=i}visit(e){return e.visitContent(this)}},wt=class{constructor(e,n,r,s,i){a(this,"name");a(this,"value");a(this,"sourceSpan");a(this,"keySpan");a(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i}visit(e){return e.visitVariable(this)}},_n=class{constructor(e,n,r,s,i){a(this,"name");a(this,"value");a(this,"sourceSpan");a(this,"keySpan");a(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i}visit(e){return e.visitReference(this)}},zs=class{constructor(e,n,r,s){a(this,"vars");a(this,"placeholders");a(this,"sourceSpan");a(this,"i18n");this.vars=e,this.placeholders=n,this.sourceSpan=r,this.i18n=s}visit(e){return e.visitIcu(this)}};function jl(t,e){let n=[];if(t.visit)for(let r of e)t.visit(r)||r.visit(t);else for(let r of e){let s=r.visit(t);s&&n.push(s)}return n}var dt=class{constructor(e,n,r,s,i,o){a(this,"nodes");a(this,"placeholders");a(this,"placeholderToMessage");a(this,"meaning");a(this,"description");a(this,"customId");a(this,"sources");a(this,"id");a(this,"legacyIds",[]);a(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=YE(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=[]}},Fr=class{constructor(e,n){a(this,"value");a(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e,n){return e.visitText(this,n)}},qn=class{constructor(e,n){a(this,"children");a(this,"sourceSpan");this.children=e,this.sourceSpan=n}visit(e,n){return e.visitContainer(this,n)}},xa=class{constructor(e,n,r,s,i){a(this,"expression");a(this,"type");a(this,"cases");a(this,"sourceSpan");a(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)}},Ar=class{constructor(e,n,r,s,i,o,l,c,u){a(this,"tag");a(this,"attrs");a(this,"startName");a(this,"closeName");a(this,"children");a(this,"isVoid");a(this,"sourceSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");this.tag=e,this.attrs=n,this.startName=r,this.closeName=s,this.children=i,this.isVoid=o,this.sourceSpan=l,this.startSourceSpan=c,this.endSourceSpan=u}visit(e,n){return e.visitTagPlaceholder(this,n)}},so=class{constructor(e,n,r){a(this,"value");a(this,"name");a(this,"sourceSpan");this.value=e,this.name=n,this.sourceSpan=r}visit(e,n){return e.visitPlaceholder(this,n)}},Xs=class{constructor(e,n,r){a(this,"value");a(this,"name");a(this,"sourceSpan");a(this,"previousMessage");this.value=e,this.name=n,this.sourceSpan=r}visit(e,n){return e.visitIcuPlaceholder(this,n)}},Ir=class{constructor(e,n,r,s,i,o,l,c){a(this,"name");a(this,"parameters");a(this,"startName");a(this,"closeName");a(this,"children");a(this,"sourceSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");this.name=e,this.parameters=n,this.startName=r,this.closeName=s,this.children=i,this.sourceSpan=o,this.startSourceSpan=l,this.endSourceSpan=c}visit(e,n){return e.visitBlockPlaceholder(this,n)}};function YE(t){let e=new Bc;return t.map(r=>r.visit(e)).join("")}var Bc=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 $c=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} [
|
|
9
9
|
${e.dtd}
|
|
10
|
-
]>`}},
|
|
10
|
+
]>`}},BL=new $c;function QE(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var Kd="i18n",Uc="i18n-",JE="VAR_";function zd(t){return t===Kd||t.startsWith(Uc)}function ZE(t){return t.attrs.some(e=>zd(e.name))}function Xd(t){return t.nodes[0]}function Gu(t={},e){let n={};return t&&Object.keys(t).length&&Object.keys(t).forEach(r=>n[Ao(r,e)]=t[r]),n}function Ao(t,e=!0){let n=QE(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 ew=/[-.]/,Wu="_t",io="ctx",ju="rf";function Yd(t,e){let n=null;return()=>(n||(t(new st(Wu,void 0,kr)),n=Y(e)),n)}function Ns(t){return Array.isArray(t)?pe(t.map(Ns)):v(t,Lt)}function tf(t,e){let n=Object.getOwnPropertyNames(t);return n.length===0?null:it(n.map(r=>{let s=t[r],i,o,l,c;if(typeof s=="string")i=r,l=r,o=s,c=Ns(o);else{l=r,i=s.classPropertyName,o=s.bindingPropertyName;let u=o!==i,p=s.transformFunction!==null,d=Is.None;if(s.isSignal&&(d|=Is.SignalBased),p&&(d|=Is.HasDecoratorInputTransform),e&&(u||p||d!==Is.None)){let m=[v(d),Ns(o)];(u||p)&&(m.push(Ns(i)),p&&m.push(s.transformFunction)),c=pe(m)}else c=Ns(o)}return{key:l,quoted:ew.test(l),value:c}}))}var Nr=class{constructor(){a(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 it(this.values)}};function Ku(t){let e=t instanceof de?t.name:"ng-template",n=tw(t),r=new on,s=hn(e)[1];return r.setElement(s),Object.getOwnPropertyNames(n).forEach(i=>{let o=hn(i)[1],l=n[i];r.addAttribute(o,l),i.toLowerCase()==="class"&&l.trim().split(/\s+/).forEach(u=>r.addClassName(u))}),r}function tw(t){let e={};return t instanceof he&&t.tagName!=="ng-template"?t.templateAttrs.forEach(n=>e[n.name]=""):(t.attributes.forEach(n=>{zd(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 Vc(t,e){let n=null,r={name:t.name,type:t.type,typeArgumentCount:t.typeArgumentCount,deps:[],target:ht.Injectable};if(t.useClass!==void 0){let l=t.useClass.expression.isEquivalent(t.type.value),c;t.deps!==void 0&&(c=t.deps),c!==void 0?n=ur(ye(T({},r),{delegate:t.useClass.expression,delegateDeps:c,delegateType:Ki.Class})):l?n=ur(r):n={statements:[],expression:nf(t.type.value,t.useClass.expression,e)}}else t.useFactory!==void 0?t.deps!==void 0?n=ur(ye(T({},r),{delegate:t.useFactory,delegateDeps:t.deps||[],delegateType:Ki.Function})):n={statements:[],expression:Qt([],t.useFactory.callFn([]))}:t.useValue!==void 0?n=ur(ye(T({},r),{expression:t.useValue.expression})):t.useExisting!==void 0?n=ur(ye(T({},r),{expression:$(h.inject).callFn([t.useExisting.expression])})):n={statements:[],expression:nf(t.type.value,t.type.value,e)};let s=t.type.value,i=new Nr;return i.set("token",s),i.set("factory",n.expression),t.providedIn.expression.value!==null&&i.set("providedIn",VE(t.providedIn)),{expression:$(h.\u0275\u0275defineInjectable).callFn([i.toLiteralMap()],void 0,!0),type:nw(t),statements:n.statements}}function nw(t){return new ft($(h.InjectableDeclaration,[ll(t.type.type,t.typeArgumentCount)]))}function nf(t,e,n){if(t.node===e.node)return e.prop("\u0275fac");if(!n)return rf(e);let r=$(h.resolveForwardRef).callFn([e]);return rf(r)}function rf(t){let e=new ze("__ngFactoryType__",kr);return Qt([e],t.prop("\u0275fac").callFn([Y(e.name)]))}var rw=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function sw(t,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${t}' to be an array, [start, end].`);if(e!=null){let n=e[0],r=e[1];rw.forEach(s=>{if(s.test(n)||s.test(r))throw new Error(`['${n}', '${r}'] contains unusable interpolation symbol.`)})}}var oo=class t{constructor(e,n){a(this,"start");a(this,"end");this.start=e,this.end=n}static fromArray(e){return e?(sw("interpolation",e),new t(e[0],e[1])):jt}},jt=new oo("{{","}}"),iw=new Set(["switch"]),Ze=0,ow=8,zu=9,Hr=10,Qd=11,Jd=12,Xu=13,Zd=32,qc=33,ao=34,em=35,cl=36,aw=37,Ca=38,lo=39,Hn=40,sn=41,lw=42,tm=43,zt=44,Aa=45,xs=46,Fn=47,pr=58,Pt=59,bs=60,Vr=61,lr=62,sf=63,Yu=48,cw=55,nm=57,ai=65,uw=69,pw=70,hw=88,ul=90,Ms=91,Ls=92,Ds=93,fw=94,Io=95,ts=97,dw=98,mw=101,Qu=102,rm=110,sm=114,im=116,om=117,am=118,lm=120,No=122,nn=123,of=124,At=125,cm=160;var Kl=64,Hc=96;function co(t){return t>=zu&&t<=Zd||t==cm}function En(t){return Yu<=t&&t<=nm}function uo(t){return t>=ts&&t<=No||t>=ai&&t<=ul}function gw(t){return t>=ts&&t<=Qu||t>=ai&&t<=pw||En(t)}function Ju(t){return t===Hr||t===Xu}function af(t){return Yu<=t&&t<=cw}function ki(t){return t===lo||t===ao||t===Hc}var ns=class t{constructor(e,n,r,s){a(this,"file");a(this,"offset");a(this,"line");a(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)==Hr){i--;let c=n.substring(0,s-1).lastIndexOf(String.fromCharCode(Hr));o=c>0?s-c:s}else o--;for(;s<r&&e>0;){let l=n.charCodeAt(s);s++,e--,l==Hr?(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,l=0;for(;o<e&&s>0&&(s--,o++,!(r[s]==`
|
|
11
11
|
`&&++l==n)););for(o=0,l=0;o<e&&i<r.length-1&&(i++,o++,!(r[i]==`
|
|
12
|
-
`&&++l==n)););return{before:r.substring(s,this.offset),after:r.substring(this.offset,i+1)}}return null}},
|
|
12
|
+
`&&++l==n)););return{before:r.substring(s,this.offset),after:r.substring(this.offset,i+1)}}return null}},rs=class{constructor(e,n){a(this,"content");a(this,"url");this.content=e,this.url=n}},W=class{constructor(e,n,r=e,s=null){a(this,"start");a(this,"end");a(this,"fullStart");a(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)}},$n;(function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"})($n||($n={}));var j=class{constructor(e,n,r=$n.ERROR,s){a(this,"span");a(this,"msg");a(this,"level");a(this,"relatedError");this.span=e,this.msg=n,this.level=r,this.relatedError=s}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${$n[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};function yw(t,e,n){let r=`in ${t} ${e} in ${n}`,s=new rs("",r);return new W(new ns(s,-1,-1,-1),new ns(s,-1,-1,-1))}var vw=0;function Sw(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=Gd(e);return n.indexOf("(")>=0?(n=`anonymous_${vw++}`,e.__anonymousType=n):n=Ri(n),n}function Ri(t){return t.replace(/\W/g,"_")}var lf='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',Gc=class extends bc{constructor(){super(!1)}visitWrappedNodeExpr(e,n){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}visitDeclareVarStmt(e,n){return n.print(e,`var ${e.name}`),e.value&&(n.print(e," = "),e.value.visitExpression(this,n)),n.println(e,";"),null}visitTaggedTemplateLiteralExpr(e,n){let r=e.template.elements;return e.tag.visitExpression(this,n),n.print(e,`(${lf}(`),n.print(e,`[${r.map(s=>$r(s.text,!1)).join(", ")}], `),n.print(e,`[${r.map(s=>$r(s.rawText,!1)).join(", ")}])`),e.template.expressions.forEach(s=>{n.print(e,", "),s.visitExpression(this,n)}),n.print(e,")"),null}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){return n.print(e,e.rawText),null}visitFunctionExpr(e,n){return n.print(e,`function${e.name?" "+e.name:""}(`),this._visitParams(e.params,n),n.println(e,") {"),n.incIndent(),this.visitAllStatements(e.statements,n),n.decIndent(),n.print(e,"}"),null}visitArrowFunctionExpr(e,n){if(n.print(e,"("),this._visitParams(e.params,n),n.print(e,") =>"),Array.isArray(e.body))n.println(e,"{"),n.incIndent(),this.visitAllStatements(e.body,n),n.decIndent(),n.print(e,"}");else{let r=e.body instanceof Yt;r&&n.print(e,"("),e.body.visitExpression(this,n),r&&n.print(e,")")}return null}visitDeclareFunctionStmt(e,n){return n.print(e,`function ${e.name}(`),this._visitParams(e.params,n),n.println(e,") {"),n.incIndent(),this.visitAllStatements(e.statements,n),n.decIndent(),n.println(e,"}"),null}visitLocalizedString(e,n){n.print(e,`$localize(${lf}(`);let r=[e.serializeI18nHead()];for(let s=1;s<e.messageParts.length;s++)r.push(e.serializeI18nTemplatePart(s));return n.print(e,`[${r.map(s=>$r(s.cooked,!1)).join(", ")}], `),n.print(e,`[${r.map(s=>$r(s.raw,!1)).join(", ")}])`),e.expressions.forEach(s=>{n.print(e,", "),s.visitExpression(this,n)}),n.print(e,")"),null}_visitParams(e,n){this.visitAllObjects(r=>n.print(null,r.name),e,n,",")}},Ko;function Ew(){if(Ko===void 0){let t=Di.trustedTypes;if(Ko=null,t)try{Ko=t.createPolicy("angular#unsafe-jit",{createScript:e=>e})}catch(e){}}return Ko}function ww(t){var e;return((e=Ew())==null?void 0:e.createScript(t))||t}function cf(...t){if(!Di.trustedTypes)return new Function(...t);let e=t.slice(0,-1).join(","),n=t[t.length-1],r=`(function anonymous(${e}
|
|
13
13
|
) { ${n}
|
|
14
|
-
})`,s=
|
|
15
|
-
//# sourceURL=${e}`,o=[],l=[];for(let u in r)l.push(r[u]),o.push(u);if(s){let u=
|
|
14
|
+
})`,s=Di.eval(ww(r));return s.bind===void 0?new Function(...t):(s.toString=()=>r,s.bind(Di))}var Wc=class{evaluateStatements(e,n,r,s){let i=new jc(r),o=Nc.createRoot();return n.length>0&&!Tw(n[0])&&(n=[v("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()}
|
|
15
|
+
//# sourceURL=${e}`,o=[],l=[];for(let u in r)l.push(r[u]),o.push(u);if(s){let u=cf(...o.concat("return null;")).toString(),p=u.slice(0,u.indexOf("return null;")).split(`
|
|
16
16
|
`).length-1;i+=`
|
|
17
|
-
${n.toSourceMapGenerator(e,p).toJsComment()}`}let c=
|
|
18
|
-
`)}return
|
|
19
|
-
`+s,e.trim()}_extractUnscopedRulesFromCssText(e){let n="",r;for(
|
|
20
|
-
|
|
21
|
-
`}return n}_convertColonHost(e){return e.replace(bw,(n,r,s)=>{if(r){let i=[],o=r.split(",").map(l=>l.trim());for(let l of o){if(!l)break;let c=cr+l.replace(Sa,"")+s;i.push(c)}return i.join(",")}else return cr+s})}_convertColonHostContext(e){let n=e.length,r=0,s=0,i="";for(let o=0;o<n;o++){let l=e[o];if(l===","&&r===0){i+=this._convertColonHostContextInSelectorPart(e.slice(s,o))+",",s=o+1;continue}if(o===n-1){i+=this._convertColonHostContextInSelectorPart(e.slice(s));break}l==="("?r++:l===")"&&r--}return i}_convertColonHostContextInSelectorPart(e){return e.replace(Dw,(n,r)=>{var o;let s=[[]],i;for(;i=_w.exec(n);){let l=((o=i[1])!=null?o:"").trim().split(",").map(u=>u.trim()).filter(u=>u!==""),c=s.length;Yw(s,l.length);for(let u=0;u<l.length;u++)for(let p=0;p<c;p++)s[p+u*c].push(l[u]);n=i[2]}return s.map(l=>Xw(l,n,r)).join(", ")})}_convertShadowDOMSelectors(e){return Rw.reduce((n,r)=>n.replace(r," "),e)}_scopeSelectors(e,n,r){return qo(e,s=>{let i=s.selector,o=s.content;return s.selector[0]!=="@"?i=this._scopeSelector({selector:i,scopeSelector:n,hostSelector:r,isParentSelector:!0}):Cw.some(l=>s.selector.startsWith(l))?o=this._scopeSelectors(s.content,n,r):(s.selector.startsWith("@font-face")||s.selector.startsWith("@page"))&&(o=this._stripScopingSelectors(s.content)),new io(i,o)})}_stripScopingSelectors(e){return qo(e,n=>{let r=n.selector.replace(rf," ").replace($l," ");return new io(r,n.content)})}_scopeSelector({selector:e,scopeSelector:n,hostSelector:r,isParentSelector:s=!1}){let i=/ ?,(?!(?:[^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\))) ?/;return e.split(i).map(o=>o.split(rf)).map(o=>{let[l,...c]=o;return[(p=>this._selectorNeedsScoping(p,n)?this._applySelectorScope({selector:p,scopeSelector:n,hostSelector:r,isParentSelector:s}):p)(l),...c].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+")"+Pw,"m")}_applySimpleSelectorScope(e,n,r){if(Ds.lastIndex=0,Ds.test(e)){let s=`[${r}]`,i=e;for(;i.match($l);)i=i.replace($l,(o,l)=>l.replace(/([^:\)]*)(:*)(.*)/,(c,u,p,d)=>u+s+p+d));return i.replace(Ds,s)}return n+" "+e}_applySelectorScope({selector:e,scopeSelector:n,hostSelector:r,isParentSelector:s}){var w;let i=/\[is=([^\]]*)\]/g;n=n.replace(i,(x,..._)=>_[0]);let o=`[${n}]`,l=x=>{let _=x.trim();if(!_)return x;if(x.includes(cr)){if(_=this._applySimpleSelectorScope(x,n,r),!x.match(kw)){let[D,H,V,ee]=_.match(/([^:]*)(:*)([\s\S]*)/);_=H+o+V+ee}}else{let D=x.replace(Ds,"");if(D.length>0){let H=D.match(/([^:]*)(:*)([\s\S]*)/);H&&(_=H[1]+o+H[2]+H[3])}}return _},c=x=>{let _="",D=[],H;for(;(H=Si.exec(x))!==null;){let V=1,ee=Si.lastIndex;for(;ee<x.length;){let ae=x[ee];if(ee++,ae==="("){V++;continue}if(ae===")"){if(V--,V===0)break;continue}}D.push(`${H[0]}${x.slice(Si.lastIndex,ee)}`),Si.lastIndex=ee}return D.join("")===x?_=D.map(V=>{var Be;let[ee]=(Be=V.match(Si))!=null?Be:[],ae=V.slice(ee==null?void 0:ee.length,-1);ae.includes(cr)&&(this._shouldScopeIndicator=!0);let oe=this._scopeSelector({selector:ae,scopeSelector:n,hostSelector:r});return`${ee}${oe})`}).join(""):(this._shouldScopeIndicator=this._shouldScopeIndicator||x.includes(cr),_=this._shouldScopeIndicator?l(x):x),_};s&&(this._safeSelector=new qc(e),e=this._safeSelector.content());let u="",p=0,d,m=/( |>|\+|~(?!=))(?!([^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\)))\s*/g,g=e.includes(cr);for((s||this._shouldScopeIndicator)&&(this._shouldScopeIndicator=!g);(d=m.exec(e))!==null;){let x=d[1],_=e.slice(p,d.index);if(_.match(/__esc-ph-(\d+)__/)&&((w=e[d.index+1])!=null&&w.match(/[a-fA-F\d]/)))continue;let D=c(_);u+=`${D} ${x} `,p=m.lastIndex}let E=e.substring(p);return u+=c(E),this._safeSelector.restore(u)}_insertPolyfillHostInCssText(e){return e.replace(Lw,im).replace(Mw,Sa)}},qc=class{constructor(e){a(this,"placeholders",[]);a(this,"index",0);a(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(/(:nth-[-\w]+)(\([^)]+\))/g,(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})}},Aw="(:(where|is)\\()?",Si=/:(where|is)\(/gi,Iw=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Nw=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,nf=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Sa="-shadowcsshost",im="-shadowcsscontext",om="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))",bw=new RegExp(Sa+om+"?([^,{]*)","gim"),am=im+om+"?([^{]*)",Dw=new RegExp(`${Aw}(${am})`,"gim"),_w=new RegExp(am,"im"),cr=Sa+"-no-combinator",kw=new RegExp(`${cr}(?![^(]*\\))`,"g"),$l=/-shadowcsshost-no-combinator([^\s,]*)/,Rw=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],rf=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,Pw="([>\\s~+[.,{:][\\s\\S]*)?$",Ds=/-shadowcsshost/gim,Mw=/:host/gim,Lw=/:host-context/gim,Ow=/\r?\n/g,Fw=/\/\*[\s\S]*?\*\//g,Bw=/\/\*\s*#\s*source(Mapping)?URL=/g,ju="%COMMENT%",$w=new RegExp(ju,"g"),Ul="%BLOCK%",Uw=new RegExp(`(\\s*(?:${ju}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),Vw=new Map([["{","}"]]),lm="%COMMA_IN_PLACEHOLDER%",cm="%SEMI_IN_PLACEHOLDER%",um="%COLON_IN_PLACEHOLDER%",qw=new RegExp(lm,"g"),Hw=new RegExp(cm,"g"),Gw=new RegExp(um,"g"),io=class{constructor(e,n){a(this,"selector");a(this,"content");this.selector=e,this.content=n}};function qo(t,e){let n=Kw(t),r=Ww(n,Vw,Ul),s=0,i=r.escapedString.replace(Uw,(...o)=>{let l=o[2],c="",u=o[4],p="";u&&u.startsWith("{"+Ul)&&(c=r.blocks[s++],u=u.substring(Ul.length+1),p="{");let d=e(new io(l,c));return`${o[1]}${d.selector}${o[3]}${p}${d.content}${u}`});return zw(i)}var Hc=class{constructor(e,n){a(this,"escapedString");a(this,"blocks");this.escapedString=e,this.blocks=n}};function Ww(t,e,n){let r=[],s=[],i=0,o=0,l=-1,c,u;for(let p=0;p<t.length;p++){let d=t[p];d==="\\"?p++:d===u?(i--,i===0&&(s.push(t.substring(l,p)),r.push(n),o=p,l=-1,c=u=void 0)):d===c?i++:i===0&&e.has(d)&&(c=d,u=e.get(d),i=1,l=p+1,r.push(t.substring(o,l)))}return l!==-1?(s.push(t.substring(l)),r.push(n)):r.push(t.substring(o)),new Hc(r.join(""),s)}var jw={";":cm,",":lm,":":um};function Kw(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=jw[s];i&&(e=`${e.substr(0,r)}${i}${e.substr(r+1)}`,r+=i.length-1)}else(s==="'"||s==='"')&&(n=s)}return e}function zw(t){let e=t.replace(qw,",");return e=e.replace(Hw,";"),e=e.replace(Gw,":"),e}function sf(t,e){return e?t.replace(/((?:^|[^\\])(?:\\\\)*)\\(?=['"])/g,"$1"):t}function Xw(t,e,n=""){let r=cr;Ds.lastIndex=0;let s=Ds.test(e);if(t.length===0)return r+e;let i=[t.pop()||""];for(;t.length>0;){let o=i.length,l=t.pop();for(let c=0;c<o;c++){let u=i[c];i[o*2+c]=u+" "+l,i[o+c]=l+" "+u,i[c]=l+u}}return i.map(o=>s?`${n}${o}${e}`:`${n}${o}${r}${e}, ${n}${o} ${r}${e}`).join(",")}function Yw(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 f;(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.Template=5]="Template",t[t.ElementEnd=6]="ElementEnd",t[t.ContainerStart=7]="ContainerStart",t[t.Container=8]="Container",t[t.ContainerEnd=9]="ContainerEnd",t[t.DisableBindings=10]="DisableBindings",t[t.Conditional=11]="Conditional",t[t.EnableBindings=12]="EnableBindings",t[t.Text=13]="Text",t[t.Listener=14]="Listener",t[t.InterpolateText=15]="InterpolateText",t[t.Binding=16]="Binding",t[t.Property=17]="Property",t[t.StyleProp=18]="StyleProp",t[t.ClassProp=19]="ClassProp",t[t.StyleMap=20]="StyleMap",t[t.ClassMap=21]="ClassMap",t[t.Advance=22]="Advance",t[t.Pipe=23]="Pipe",t[t.Attribute=24]="Attribute",t[t.ExtractedAttribute=25]="ExtractedAttribute",t[t.Defer=26]="Defer",t[t.DeferOn=27]="DeferOn",t[t.DeferWhen=28]="DeferWhen",t[t.I18nMessage=29]="I18nMessage",t[t.HostProperty=30]="HostProperty",t[t.Namespace=31]="Namespace",t[t.ProjectionDef=32]="ProjectionDef",t[t.Projection=33]="Projection",t[t.RepeaterCreate=34]="RepeaterCreate",t[t.Repeater=35]="Repeater",t[t.TwoWayProperty=36]="TwoWayProperty",t[t.TwoWayListener=37]="TwoWayListener",t[t.DeclareLet=38]="DeclareLet",t[t.StoreLet=39]="StoreLet",t[t.I18nStart=40]="I18nStart",t[t.I18n=41]="I18n",t[t.I18nEnd=42]="I18nEnd",t[t.I18nExpression=43]="I18nExpression",t[t.I18nApply=44]="I18nApply",t[t.IcuStart=45]="IcuStart",t[t.IcuEnd=46]="IcuEnd",t[t.IcuPlaceholder=47]="IcuPlaceholder",t[t.I18nContext=48]="I18nContext",t[t.I18nAttributes=49]="I18nAttributes",t[t.SourceLocation=50]="SourceLocation"})(f||(f={}));var $;(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.GetCurrentView=8]="GetCurrentView",t[t.RestoreView=9]="RestoreView",t[t.ResetView=10]="ResetView",t[t.PureFunctionExpr=11]="PureFunctionExpr",t[t.PureFunctionParameterExpr=12]="PureFunctionParameterExpr",t[t.PipeBinding=13]="PipeBinding",t[t.PipeBindingVariadic=14]="PipeBindingVariadic",t[t.SafePropertyRead=15]="SafePropertyRead",t[t.SafeKeyedRead=16]="SafeKeyedRead",t[t.SafeInvokeFunction=17]="SafeInvokeFunction",t[t.SafeTernaryExpr=18]="SafeTernaryExpr",t[t.EmptyExpr=19]="EmptyExpr",t[t.AssignTemporaryExpr=20]="AssignTemporaryExpr",t[t.ReadTemporaryExpr=21]="ReadTemporaryExpr",t[t.SlotLiteralExpr=22]="SlotLiteralExpr",t[t.ConditionalCase=23]="ConditionalCase",t[t.ConstCollected=24]="ConstCollected",t[t.TwoWayBindingSet=25]="TwoWayBindingSet"})($||($={}));var Rt;(function(t){t[t.None=0]="None",t[t.AlwaysInline=1]="AlwaysInline"})(Rt||(Rt={}));var We;(function(t){t[t.Context=0]="Context",t[t.Identifier=1]="Identifier",t[t.SavedView=2]="SavedView",t[t.Alias=3]="Alias"})(We||(We={}));var It;(function(t){t[t.Normal=0]="Normal",t[t.TemplateDefinitionBuilder=1]="TemplateDefinitionBuilder"})(It||(It={}));var U;(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.Animation=6]="Animation",t[t.TwoWayProperty=7]="TwoWayProperty"})(U||(U={}));var Xs;(function(t){t[t.Creation=0]="Creation",t[t.Postproccessing=1]="Postproccessing"})(Xs||(Xs={}));var rs;(function(t){t[t.I18nText=0]="I18nText",t[t.I18nAttribute=1]="I18nAttribute"})(rs||(rs={}));var me;(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"})(me||(me={}));var tt;(function(t){t[t.HTML=0]="HTML",t[t.SVG=1]="SVG",t[t.Math=2]="Math"})(tt||(tt={}));var fe;(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"})(fe||(fe={}));var dr;(function(t){t[t.RootI18n=0]="RootI18n",t[t.Icu=1]="Icu",t[t.Attr=2]="Attr"})(dr||(dr={}));var At;(function(t){t[t.NgTemplate=0]="NgTemplate",t[t.Structural=1]="Structural",t[t.Block=2]="Block"})(At||(At={}));var pm=Symbol("ConsumesSlot"),Ku=Symbol("DependsOnSlotContext"),ii=Symbol("ConsumesVars"),nl=Symbol("UsesVarOffset"),kn={[pm]:!0,numSlotsUsed:1},Bt={[Ku]:!0},bt={[ii]:!0};function oi(t){return t[pm]===!0}function Ea(t){return t[Ku]===!0}function Vl(t){return t[ii]===!0}function of(t){return t[nl]===!0}function hn(t){return T({kind:f.Statement,statement:t},X)}function hr(t,e,n,r){return T({kind:f.Variable,xref:t,variable:e,initializer:n,flags:r},X)}var X={debugListId:null,prev:null,next:null};function Qw(t,e,n){return T(T(T({kind:f.InterpolateText,target:t,interpolation:e,sourceSpan:n},Bt),bt),X)}var Le=class{constructor(e,n,r){a(this,"strings");a(this,"expressions");a(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 ss(t,e,n,r,s,i,o,l,c,u,p){return T({kind:f.Binding,bindingKind:e,target:t,name:n,expression:r,unit:s,securityContext:i,isTextAttribute:o,isStructuralTemplateAttribute:l,templateKind:c,i18nContext:null,i18nMessage:u,sourceSpan:p},X)}function Jw(t,e,n,r,s,i,o,l,c,u){return T(T(T({kind:f.Property,target:t,name:e,expression:n,isAnimationTrigger:r,securityContext:s,sanitizer:null,isStructuralTemplateAttribute:i,templateKind:o,i18nContext:l,i18nMessage:c,sourceSpan:u},Bt),bt),X)}function Zw(t,e,n,r,s,i,o,l,c){return T(T(T({kind:f.TwoWayProperty,target:t,name:e,expression:n,securityContext:r,sanitizer:null,isStructuralTemplateAttribute:s,templateKind:i,i18nContext:o,i18nMessage:l,sourceSpan:c},Bt),bt),X)}function eT(t,e,n,r,s){return T(T(T({kind:f.StyleProp,target:t,name:e,expression:n,unit:r,sourceSpan:s},Bt),bt),X)}function tT(t,e,n,r){return T(T(T({kind:f.ClassProp,target:t,name:e,expression:n,sourceSpan:r},Bt),bt),X)}function nT(t,e,n){return T(T(T({kind:f.StyleMap,target:t,expression:e,sourceSpan:n},Bt),bt),X)}function rT(t,e,n){return T(T(T({kind:f.ClassMap,target:t,expression:e,sourceSpan:n},Bt),bt),X)}function sT(t,e,n,r,s,i,o,l,c,u){return T(T(T({kind:f.Attribute,target:t,namespace:e,name:n,expression:r,securityContext:s,sanitizer:null,isTextAttribute:i,isStructuralTemplateAttribute:o,templateKind:l,i18nContext:null,i18nMessage:c,sourceSpan:u},Bt),bt),X)}function iT(t,e){return T({kind:f.Advance,delta:t,sourceSpan:e},X)}function hm(t,e,n,r){return T(T(T({kind:f.Conditional,target:t,test:e,conditions:n,processed:null,sourceSpan:r,contextValue:null},X),Bt),bt)}function oT(t,e,n,r){return T(T({kind:f.Repeater,target:t,targetSlot:e,collection:n,sourceSpan:r},X),Bt)}function aT(t,e,n,r){return T(T(T({kind:f.DeferWhen,target:t,expr:e,modifier:n,sourceSpan:r},X),Bt),bt)}function fm(t,e,n,r,s,i,o,l,c,u,p){return T(T(T({kind:f.I18nExpression,context:t,target:e,i18nOwner:n,handle:r,expression:s,icuPlaceholder:i,i18nPlaceholder:o,resolutionTime:l,usage:c,name:u,sourceSpan:p},X),bt),Bt)}function lT(t,e,n){return T({kind:f.I18nApply,owner:t,handle:e,sourceSpan:n},X)}function cT(t,e,n,r){return T(T(T({kind:f.StoreLet,target:t,declaredName:e,value:n,sourceSpan:r},Bt),bt),X)}function _n(t){return t instanceof ge}var ge=class extends pe{constructor(e=null){super(null,e)}},Ze=class t extends ge{constructor(n){super();a(this,"name");a(this,"kind",$.LexicalRead);this.name=n}visitExpression(n,r){}isEquivalent(n){return this.name===n.name}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.name)}},wa=class t extends ge{constructor(n,r,s){super();a(this,"target");a(this,"targetSlot");a(this,"offset");a(this,"kind",$.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)}},dd,md,gd,oo=class t extends(gd=ge,md=ii,dd=Ku,gd){constructor(n,r,s){super();a(this,"target");a(this,"value");a(this,"sourceSpan");a(this,"kind",$.StoreLet);a(this,md,!0);a(this,dd,!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)}},ao=class t extends ge{constructor(n,r){super();a(this,"target");a(this,"targetSlot");a(this,"kind",$.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)}},Qn=class t extends ge{constructor(n){super();a(this,"view");a(this,"kind",$.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)}},Gc=class t extends ge{constructor(n){super();a(this,"view");a(this,"kind",$.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)}},Ta=class t extends ge{constructor(){super();a(this,"kind",$.NextContext);a(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}},Wc=class t extends ge{constructor(){super();a(this,"kind",$.GetCurrentView)}visitExpression(){}isEquivalent(n){return n instanceof t}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t}},xa=class t extends ge{constructor(n){super();a(this,"view");a(this,"kind",$.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 pe?this.view.clone():this.view)}},jc=class t extends ge{constructor(n){super();a(this,"expr");a(this,"kind",$.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())}},Ca=class t extends ge{constructor(n,r){super();a(this,"target");a(this,"value");a(this,"kind",$.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)}},Hn=class t extends ge{constructor(n){super();a(this,"xref");a(this,"kind",$.ReadVariable);a(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}},yd,vd,Sd,is=class t extends(Sd=ge,vd=ii,yd=nl,Sd){constructor(n,r){super();a(this,"kind",$.PureFunctionExpr);a(this,vd,!0);a(this,yd,!0);a(this,"varOffset",null);a(this,"body");a(this,"args");a(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|ce.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(l=>l.clone()));return n.fn=(o=(i=this.fn)==null?void 0:i.clone())!=null?o:null,n.varOffset=this.varOffset,n}},Ys=class t extends ge{constructor(n){super();a(this,"index");a(this,"kind",$.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)}},Ed,wd,Td,os=class t extends(Td=ge,wd=ii,Ed=nl,Td){constructor(n,r,s,i){super();a(this,"target");a(this,"targetSlot");a(this,"name");a(this,"args");a(this,"kind",$.PipeBinding);a(this,wd,!0);a(this,Ed,!0);a(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}},xd,Cd,Ad,Aa=class t extends(Ad=ge,Cd=ii,xd=nl,Ad){constructor(n,r,s,i,o){super();a(this,"target");a(this,"targetSlot");a(this,"name");a(this,"args");a(this,"numArgs");a(this,"kind",$.PipeBindingVariadic);a(this,Cd,!0);a(this,xd,!0);a(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}},Qs=class t extends ge{constructor(n,r){super();a(this,"receiver");a(this,"name");a(this,"kind",$.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)}},Js=class t extends ge{constructor(n,r,s){super(s);a(this,"receiver");a(this,"index");a(this,"kind",$.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)}},Nr=class t extends ge{constructor(n,r){super();a(this,"receiver");a(this,"args");a(this,"kind",$.SafeInvokeFunction);this.receiver=n,this.args=r}visitExpression(n,r){this.receiver.visitExpression(n,r);for(let s of this.args)s.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){this.receiver=P(this.receiver,n,r);for(let s=0;s<this.args.length;s++)this.args[s]=P(this.args[s],n,r)}clone(){return new t(this.receiver.clone(),this.args.map(n=>n.clone()))}},Zs=class t extends ge{constructor(n,r){super();a(this,"guard");a(this,"expr");a(this,"kind",$.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())}},lo=class t extends ge{constructor(){super(...arguments);a(this,"kind",$.EmptyExpr)}visitExpression(n,r){}isEquivalent(n){return n instanceof t}isConstant(){return!0}clone(){return new t}transformInternalExpressions(){}},fn=class t extends ge{constructor(n,r){super();a(this,"expr");a(this,"xref");a(this,"kind",$.AssignTemporaryExpr);a(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}},Jn=class t extends ge{constructor(n){super();a(this,"xref");a(this,"kind",$.ReadTemporaryExpr);a(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}},Ia=class t extends ge{constructor(n){super();a(this,"slot");a(this,"kind",$.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(){}},Na=class t extends ge{constructor(n,r,s,i=null){super();a(this,"expr");a(this,"target");a(this,"targetSlot");a(this,"alias");a(this,"kind",$.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))}},co=class t extends ge{constructor(n){super();a(this,"expr");a(this,"kind",$.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)}};function lt(t,e){Ve(t,(n,r)=>(e(n,r),n),ce.None)}var ce;(function(t){t[t.None=0]="None",t[t.InChildOperation=1]="InChildOperation"})(ce||(ce={}));function ql(t,e,n){for(let r=0;r<t.expressions.length;r++)t.expressions[r]=P(t.expressions[r],e,n)}function Ve(t,e,n){switch(t.kind){case f.StyleProp:case f.StyleMap:case f.ClassProp:case f.ClassMap:case f.Binding:t.expression instanceof Le?ql(t.expression,e,n):t.expression=P(t.expression,e,n);break;case f.Property:case f.HostProperty:case f.Attribute:t.expression instanceof Le?ql(t.expression,e,n):t.expression=P(t.expression,e,n),t.sanitizer=t.sanitizer&&P(t.sanitizer,e,n);break;case f.TwoWayProperty:t.expression=P(t.expression,e,n),t.sanitizer=t.sanitizer&&P(t.sanitizer,e,n);break;case f.I18nExpression:t.expression=P(t.expression,e,n);break;case f.InterpolateText:ql(t.interpolation,e,n);break;case f.Statement:ba(t.statement,e,n);break;case f.Variable:t.initializer=P(t.initializer,e,n);break;case f.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 f.Listener:case f.TwoWayListener:for(let r of t.handlerOps)Ve(r,e,n|ce.InChildOperation);break;case f.ExtractedAttribute:t.expression=t.expression&&P(t.expression,e,n),t.trustedValueFn=t.trustedValueFn&&P(t.trustedValueFn,e,n);break;case f.RepeaterCreate:if(t.trackByOps===null)t.track=P(t.track,e,n);else for(let r of t.trackByOps)Ve(r,e,n|ce.InChildOperation);t.trackByFn!==null&&(t.trackByFn=P(t.trackByFn,e,n));break;case f.Repeater:t.collection=P(t.collection,e,n);break;case f.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 f.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 f.DeferWhen:t.expr=P(t.expr,e,n);break;case f.StoreLet:t.value=P(t.value,e,n);break;case f.Advance:case f.Container:case f.ContainerEnd:case f.ContainerStart:case f.DeferOn:case f.DisableBindings:case f.Element:case f.ElementEnd:case f.ElementStart:case f.EnableBindings:case f.I18n:case f.I18nApply:case f.I18nContext:case f.I18nEnd:case f.I18nStart:case f.IcuEnd:case f.IcuStart:case f.Namespace:case f.Pipe:case f.Projection:case f.ProjectionDef:case f.Template:case f.Text:case f.I18nAttributes:case f.IcuPlaceholder:case f.DeclareLet:case f.SourceLocation:break;default:throw new Error(`AssertionError: transformExpressionsInOp doesn't handle ${f[t.kind]}`)}}function P(t,e,n){if(t instanceof ge)t.transformInternalExpressions(e,n);else if(t instanceof le)t.lhs=P(t.lhs,e,n),t.rhs=P(t.rhs,e,n);else if(t instanceof vr)t.expr=P(t.expr,e,n);else if(t instanceof mt)t.receiver=P(t.receiver,e,n);else if(t instanceof An)t.receiver=P(t.receiver,e,n),t.index=P(t.index,e,n);else if(t instanceof Kr)t.receiver=P(t.receiver,e,n),t.value=P(t.value,e,n);else if(t instanceof Ls)t.receiver=P(t.receiver,e,n),t.index=P(t.index,e,n),t.value=P(t.value,e,n);else if(t instanceof nt){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 gt)for(let r=0;r<t.entries.length;r++)t.entries[r]=P(t.entries[r],e,n);else if(t instanceof Yt)for(let r=0;r<t.entries.length;r++)t.entries[r].value=P(t.entries[r].value,e,n);else if(t instanceof ln)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 jr)t.expr=P(t.expr,e,n);else if(t instanceof Li)t.value=P(t.value,e,n);else if(t instanceof Fi)for(let r=0;r<t.expressions.length;r++)t.expressions[r]=P(t.expressions[r],e,n);else if(t instanceof Fs)t.condition=P(t.condition,e,n);else if(t instanceof Oi)t.tag=P(t.tag,e,n),t.template.expressions=t.template.expressions.map(r=>P(r,e,n));else if(t instanceof Gn)if(Array.isArray(t.body))for(let r=0;r<t.body.length;r++)ba(t.body[r],e,n);else t.body=P(t.body,e,n);else if(!(t instanceof G)){if(!(t instanceof Mt||t instanceof Ye||t instanceof Pe))throw new Error(`Unhandled expression kind: ${t.constructor.name}`)}return e(t,n)}function ba(t,e,n){if(t instanceof Lt)t.expr=P(t.expr,e,n);else if(t instanceof Xe)t.value=P(t.value,e,n);else if(t instanceof rt)t.value!==void 0&&(t.value=P(t.value,e,n));else if(t instanceof Ui){t.condition=P(t.condition,e,n);for(let r of t.trueCase)ba(r,e,n);for(let r of t.falseCase)ba(r,e,n)}else throw new Error(`Unhandled statement kind: ${t.constructor.name}`)}function dm(t){return t instanceof Pe&&typeof t.value=="string"}var Ee=class Ee{constructor(){a(this,"debugListId",Ee.nextListId++);a(this,"head",{kind:f.ListEnd,next:null,prev:null,debugListId:this.debugListId});a(this,"tail",{kind:f.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}Ee.assertIsNotEnd(e),Ee.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)Ee.assertIsNotEnd(s),Ee.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;){Ee.assertIsOwned(e,this.debugListId);let n=e.next;yield e,e=n}}*reversed(){let e=this.tail.prev;for(;e!==this.head;){Ee.assertIsOwned(e,this.debugListId);let n=e.prev;yield e,e=n}}static replace(e,n){Ee.assertIsNotEnd(e),Ee.assertIsNotEnd(n),Ee.assertIsOwned(e),Ee.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){Ee.remove(e);return}Ee.assertIsNotEnd(e),Ee.assertIsOwned(e);let r=e.debugListId;e.debugListId=null;for(let u of n)Ee.assertIsNotEnd(u),Ee.assertIsUnowned(u);let{prev:s,next:i}=e;e.prev=null,e.next=null;let o=s;for(let u of n)this.assertIsUnowned(u),u.debugListId=r,o.next=u,u.prev=o,u.next=null,o=u;let l=n[0],c=o;s!==null&&(s.next=l,l.prev=s),i!==null&&(i.prev=c,c.next=i)}static remove(e){Ee.assertIsNotEnd(e),Ee.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)this.insertBefore(r,n);return}if(Ee.assertIsOwned(n),n.prev===null)throw new Error("AssertionError: illegal operation on list start");Ee.assertIsNotEnd(e),Ee.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(Ee.assertIsOwned(n),n.next===null)throw new Error("AssertionError: illegal operation on list end");Ee.assertIsNotEnd(e),Ee.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: ${f[e.kind]}`)}static assertIsOwned(e,n){if(e.debugListId===null)throw new Error(`AssertionError: illegal operation on unowned node: ${f[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===f.ListEnd)throw new Error("AssertionError: illegal operation on list head or tail")}};a(Ee,"nextListId",0);var A=Ee,Nt=class{constructor(){a(this,"slot",null)}},uT=new Set([f.Element,f.ElementStart,f.Container,f.ContainerStart,f.Template,f.RepeaterCreate]);function br(t){return uT.has(t.kind)}function pT(t,e,n,r,s,i){return T(T({kind:f.ElementStart,xref:e,tag:t,handle:new Nt,attributes:null,localRefs:[],nonBindable:!1,namespace:n,i18nPlaceholder:r,startSourceSpan:s,wholeSourceSpan:i},kn),X)}function rl(t,e,n,r,s,i,o,l){return T(T({kind:f.Template,xref:t,templateKind:e,attributes:null,tag:n,handle:new Nt,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:l},kn),X)}function hT(t,e,n,r,s,i,o,l,c,u){return ye(T(T(T({kind:f.RepeaterCreate,attributes:null,xref:t,handle:new Nt,emptyView:e,track:r,trackByFn:null,trackByOps:null,tag:n,emptyTag:i,emptyAttributes:null,functionNameSuffix:"For",namespace:tt.HTML,nonBindable:!1,localRefs:[],decls:null,vars:null,varNames:s,usesComponentInstance:!1,i18nPlaceholder:o,emptyI18nPlaceholder:l,startSourceSpan:c,wholeSourceSpan:u},kn),X),bt),{numSlotsUsed:e===null?2:3})}function fT(t,e){return T({kind:f.ElementEnd,xref:t,sourceSpan:e},X)}function dT(t){return T({kind:f.DisableBindings,xref:t},X)}function mT(t){return T({kind:f.EnableBindings,xref:t},X)}function mm(t,e,n,r){return T(T({kind:f.Text,xref:t,handle:new Nt,initialValue:e,icuPlaceholder:n,sourceSpan:r},kn),X)}function zu(t,e,n,r,s,i,o,l,c){let u=new A;return u.push(s),T({kind:f.Listener,target:t,targetSlot:e,tag:r,hostListener:l,name:n,handlerOps:u,handlerFnName:null,consumesDollarEvent:!1,isAnimationListener:i!==null,animationPhase:i,eventTarget:o,sourceSpan:c},X)}function gm(t,e,n,r,s,i){let o=new A;return o.push(s),T({kind:f.TwoWayListener,target:t,targetSlot:e,tag:r,name:n,handlerOps:o,handlerFnName:null,sourceSpan:i},X)}function ym(t,e,n){return T(T({kind:f.Pipe,xref:t,handle:e,name:n},X),kn)}function gT(t){return T({kind:f.Namespace,active:t},X)}function yT(t){return T({kind:f.ProjectionDef,def:t},X)}function vT(t,e,n,r,s){return ye(T(T({kind:f.Projection,xref:t,handle:new Nt,selector:e,i18nPlaceholder:n,fallbackView:r,projectionSlotIndex:0,attributes:null,localRefs:[],sourceSpan:s},X),kn),{numSlotsUsed:r===null?1:2})}function Kt(t,e,n,r,s,i,o,l){return T({kind:f.ExtractedAttribute,target:t,bindingKind:e,namespace:n,name:r,expression:s,i18nContext:i,i18nMessage:o,securityContext:l,trustedValueFn:null},X)}function ST(t,e,n,r,s,i){return ye(T(T({kind:f.Defer,xref:t,handle:new Nt,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},X),kn),{numSlotsUsed:2})}function or(t,e,n,r){return T({kind:f.DeferOn,defer:t,trigger:e,modifier:n,sourceSpan:r},X)}function ET(t,e,n){return T(T({kind:f.DeclareLet,xref:t,declaredName:e,sourceSpan:n,handle:new Nt},kn),X)}function wT(t,e,n,r,s,i,o,l){return T({kind:f.I18nMessage,xref:t,i18nContext:e,i18nBlock:n,message:r,messagePlaceholder:s,params:i,postprocessingParams:o,needsPostprocessing:l,subMessages:[]},X)}function sl(t,e,n,r){return T(T({kind:f.I18nStart,xref:t,handle:new Nt,root:n!=null?n:t,message:e,messageIndex:null,subTemplateIndex:null,context:null,sourceSpan:r},X),kn)}function il(t,e){return T({kind:f.I18nEnd,xref:t,sourceSpan:e},X)}function TT(t,e,n,r){return T({kind:f.IcuStart,xref:t,message:e,messagePlaceholder:n,context:null,sourceSpan:r},X)}function xT(t){return T({kind:f.IcuEnd,xref:t},X)}function CT(t,e,n){return T({kind:f.IcuPlaceholder,xref:t,name:e,strings:n,expressionPlaceholders:[]},X)}function Hl(t,e,n,r,s){if(n===null&&t!==dr.Attr)throw new Error("AssertionError: i18nBlock must be provided for non-attribute contexts.");return T({kind:f.I18nContext,contextKind:t,xref:e,i18nBlock:n,message:r,sourceSpan:s,params:new Map,postprocessingParams:new Map},X)}function vm(t,e,n){return T(T({kind:f.I18nAttributes,xref:t,handle:e,target:n,i18nAttributesConfig:null},X),kn)}function AT(t,e){return T({kind:f.SourceLocation,templatePath:t,locations:e},X)}function IT(t,e,n,r,s,i){return T(T({kind:f.HostProperty,name:t,expression:e,isAnimationTrigger:n,i18nContext:r,securityContext:s,sanitizer:null,sourceSpan:i},bt),X)}var Sm="CTX_REF_MARKER",k;(function(t){t[t.Tmpl=0]="Tmpl",t[t.Host=1]="Host",t[t.Both=2]="Both"})(k||(k={}));var Da=class{constructor(e,n,r){a(this,"componentName");a(this,"pool");a(this,"compatibility");a(this,"kind",k.Both);a(this,"nextXrefId",0);this.componentName=e,this.pool=n,this.compatibility=r}allocateXrefId(){return this.nextXrefId++}},uo=class extends Da{constructor(n,r,s,i,o,l,c,u,p){super(n,r,s);a(this,"relativeContextFilePath");a(this,"i18nUseExternalIds");a(this,"deferMeta");a(this,"allDeferrableDepsFn");a(this,"relativeTemplatePath");a(this,"enableDebugLocations");a(this,"kind",k.Tmpl);a(this,"fnSuffix","Template");a(this,"root");a(this,"views",new Map);a(this,"contentSelectors",null);a(this,"consts",[]);a(this,"constsInitializers",[]);this.relativeContextFilePath=i,this.i18nUseExternalIds=o,this.deferMeta=l,this.allDeferrableDepsFn=c,this.relativeTemplatePath=u,this.enableDebugLocations=p,this.root=new xn(this,this.allocateXrefId(),null),this.views.set(this.root.xref,this.root)}allocateView(n){let r=new xn(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}},_a=class{constructor(e){a(this,"xref");a(this,"create",new A);a(this,"update",new A);a(this,"fnName",null);a(this,"vars",null);this.xref=e}*ops(){for(let e of this.create)if(yield e,e.kind===f.Listener||e.kind===f.TwoWayListener)for(let n of e.handlerOps)yield n;else if(e.kind===f.RepeaterCreate&&e.trackByOps!==null)for(let n of e.trackByOps)yield n;for(let e of this.update)yield e}},xn=class extends _a{constructor(n,r,s){super(r);a(this,"job");a(this,"parent");a(this,"contextVariables",new Map);a(this,"aliases",new Set);a(this,"decls",null);this.job=n,this.parent=s}},ka=class extends Da{constructor(n,r,s){super(n,r,s);a(this,"kind",k.Host);a(this,"fnSuffix","HostBindings");a(this,"root");this.root=new Kc(this)}get units(){return[this.root]}},Kc=class extends _a{constructor(n){super(0);a(this,"job");a(this,"attributes",null);this.job=n}};function NT(t){for(let e of t.units)for(let n of e.ops())Ve(n,bT,ce.None)}function bT(t){if(t instanceof nt&&t.fn instanceof Ze&&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 DT(t){let e=new Map;for(let n of t.units)for(let r of n.create)r.kind===f.I18nContext&&e.set(r.xref,r);for(let n of t.units)for(let r of n.update)r.kind===f.I18nExpression&&_T(e,r)&&A.insertAfter(lT(r.i18nOwner,r.handle,null),r)}function _T(t,e){var s;if(((s=e.next)==null?void 0:s.kind)!==f.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 kT(t){for(let e of t.units){let n=e.update.head,r=[],s=null;for(let i of e.create){if(i.kind===f.I18nStart)s={blockXref:i.xref,lastSlotConsumer:i.xref};else if(i.kind===f.I18nEnd){for(let o of r)o.target=s.lastSlotConsumer,A.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===f.I18nExpression&&n.usage===rs.I18nText&&n.i18nOwner===s.blockXref){let o=n;n=n.next,A.remove(o),r.push(o);continue}if(Ea(n)&&n.target!==i.xref)break;n=n.next}}}}function Xu(t){let e=new Map;for(let n of t.create)oi(n)&&(e.set(n.xref,n),n.kind===f.RepeaterCreate&&n.emptyView!==null&&e.set(n.emptyView,n));return e}function RT(t){for(let e of t.units){let n=Xu(e);for(let r of e.ops())switch(r.kind){case f.Attribute:PT(e,r,n);break;case f.Property:if(!r.isAnimationTrigger){let s;r.i18nMessage!==null&&r.templateKind===null?s=U.I18n:r.isStructuralTemplateAttribute?s=U.Template:s=U.Property,A.insertBefore(Kt(r.target,s,null,r.name,null,null,null,r.securityContext),xs(n,r.target))}break;case f.TwoWayProperty:A.insertBefore(Kt(r.target,U.TwoWayProperty,null,r.name,null,null,null,r.securityContext),xs(n,r.target));break;case f.StyleProp:case f.ClassProp:e.job.compatibility===It.TemplateDefinitionBuilder&&r.expression instanceof lo&&A.insertBefore(Kt(r.target,U.Property,null,r.name,null,null,null,ve.STYLE),xs(n,r.target));break;case f.Listener:if(!r.isAnimationListener){let s=Kt(r.target,U.Property,null,r.name,null,null,null,ve.NONE);if(t.kind===k.Host){if(t.compatibility)break;e.create.push(s)}else A.insertBefore(s,xs(n,r.target))}break;case f.TwoWayListener:if(t.kind!==k.Host){let s=Kt(r.target,U.Property,null,r.name,null,null,null,ve.NONE);A.insertBefore(s,xs(n,r.target))}break}}}function xs(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 PT(t,e,n){if(e.expression instanceof Le)return;let r=e.isTextAttribute||e.expression.isConstant();if(t.job.compatibility===It.TemplateDefinitionBuilder&&r&&(r=e.isTextAttribute),r){let s=Kt(e.target,e.isStructuralTemplateAttribute?U.Template:U.Attribute,e.namespace,e.name,e.expression,e.i18nContext,e.i18nMessage,e.securityContext);if(t.job.kind===k.Host)t.create.push(s);else{let i=xs(n,e.target);A.insertBefore(s,i)}A.remove(e)}}function MT(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 LT(t){let e=new Map;for(let n of t.units)for(let r of n.create)br(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.ops())if(r.kind===f.Binding)switch(r.bindingKind){case U.Attribute:if(r.name==="ngNonBindable"){A.remove(r);let s=MT(e,r.target);s.nonBindable=!0}else{let[s,i]=pn(r.name);A.replace(r,sT(r.target,s,i,r.expression,r.securityContext,r.isTextAttribute,r.isStructuralTemplateAttribute,r.templateKind,r.i18nMessage,r.sourceSpan))}break;case U.Property:case U.Animation:t.kind===k.Host?A.replace(r,IT(r.name,r.expression,r.bindingKind===U.Animation,r.i18nContext,r.securityContext,r.sourceSpan)):A.replace(r,Jw(r.target,r.name,r.expression,r.bindingKind===U.Animation,r.securityContext,r.isStructuralTemplateAttribute,r.templateKind,r.i18nContext,r.i18nMessage,r.sourceSpan));break;case U.TwoWayProperty:if(!(r.expression instanceof pe))throw new Error(`Expected value of two-way property binding "${r.name}" to be an expression`);A.replace(r,Zw(r.target,r.name,r.expression,r.securityContext,r.isStructuralTemplateAttribute,r.templateKind,r.i18nContext,r.i18nMessage,r.sourceSpan));break;case U.I18n:case U.ClassName:case U.StyleProperty:throw new Error(`Unhandled binding of kind ${U[r.bindingKind]}`)}}var OT=new Set([h.attribute,h.classProp,h.element,h.elementContainer,h.elementContainerEnd,h.elementContainerStart,h.elementEnd,h.elementStart,h.hostProperty,h.i18nExp,h.listener,h.listener,h.property,h.styleProp,h.stylePropInterpolate1,h.stylePropInterpolate2,h.stylePropInterpolate3,h.stylePropInterpolate4,h.stylePropInterpolate5,h.stylePropInterpolate6,h.stylePropInterpolate7,h.stylePropInterpolate8,h.stylePropInterpolateV,h.syntheticHostListener,h.syntheticHostProperty,h.templateCreate,h.twoWayProperty,h.twoWayListener,h.declareLet]),FT=256;function BT(t){for(let e of t.units)af(e.create),af(e.update)}function af(t){let e=null;for(let n of t){if(n.kind!==f.Statement||!(n.statement instanceof Lt)){e=null;continue}if(!(n.statement.expr instanceof nt)||!(n.statement.expr.fn instanceof Ye)){e=null;continue}let r=n.statement.expr.fn.value;if(!OT.has(r)){e=null;continue}if(e!==null&&e.instruction===r&&e.length<FT){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++,A.remove(n)}else e={op:n,instruction:r,expression:n.statement.expr,length:1}}}function $T(t){for(let e of t.units)for(let n of e.update)n.kind===f.Attribute&&n.expression instanceof Le&&n.expression.strings.length===2&&n.expression.strings.every(s=>s==="")&&(n.expression=n.expression.expressions[0])}function UT(t){for(let e of t.units)for(let n of e.ops()){if(n.kind!==f.Conditional)continue;let r,s=n.conditions.findIndex(o=>o.expr===null);if(s>=0){let o=n.conditions.splice(s,1)[0].targetSlot;r=new Ia(o)}else r=v(-1);let i=n.test==null?null:new fn(n.test,t.allocateXrefId());for(let o=n.conditions.length-1;o>=0;o--){let l=n.conditions[o];if(l.expr!==null){if(i!==null){let c=o===0?i:new Jn(i.xref);l.expr=new le(b.Identical,c,l.expr)}else if(l.alias!==null){let c=t.allocateXrefId();l.expr=new fn(l.expr,c),n.contextValue=new Jn(c)}r=new ln(l.expr,new Ia(l.targetSlot),r)}}n.processed=r,n.conditions=[]}}var VT=new Map([["&&",b.And],[">",b.Bigger],[">=",b.BiggerEquals],["|",b.BitwiseOr],["&",b.BitwiseAnd],["/",b.Divide],["==",b.Equals],["===",b.Identical],["<",b.Lower],["<=",b.LowerEquals],["-",b.Minus],["%",b.Modulo],["*",b.Multiply],["!=",b.NotEquals],["!==",b.NotIdentical],["??",b.NullishCoalesce],["||",b.Or],["+",b.Plus]]);function Em(t){var n;let e=new Map([["svg",tt.SVG],["math",tt.Math]]);return t===null?tt.HTML:(n=e.get(t))!=null?n:tt.HTML}function qT(t){let e=new Map([["svg",tt.SVG],["math",tt.Math]]);for(let[n,r]of e.entries())if(r===t)return n;return null}function HT(t,e){return e===tt.HTML?t:`:${qT(e)}:${t}`}function ei(t){return Array.isArray(t)?ue(t.map(ei)):v(t)}function GT(t){let e=new Map;for(let n of t.units)for(let r of n.create)if(r.kind===f.ExtractedAttribute){let s=e.get(r.target)||new zc(t.compatibility);e.set(r.target,s),s.add(r.bindingKind,r.name,r.expression,r.namespace,r.trustedValueFn),A.remove(r)}if(t instanceof uo)for(let n of t.units)for(let r of n.create)if(r.kind==f.Projection){let s=e.get(r.xref);if(s!==void 0){let i=Xc(s);i.entries.length>0&&(r.attributes=i)}}else br(r)&&(r.attributes=lf(t,e,r.xref),r.kind===f.RepeaterCreate&&r.emptyView!==null&&(r.emptyAttributes=lf(t,e,r.emptyView)));else if(t instanceof ka)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=Xc(r);s.entries.length>0&&(t.root.attributes=s)}}function lf(t,e,n){let r=e.get(n);if(r!==void 0){let s=Xc(r);if(s.entries.length>0)return t.addConst(s)}return null}var vs=Object.freeze([]),zc=class{constructor(e){a(this,"compatibility");a(this,"known",new Map);a(this,"byKind",new Map);a(this,"propertyBindings",null);a(this,"projectAs",null);this.compatibility=e}get attributes(){var e;return(e=this.byKind.get(U.Attribute))!=null?e:vs}get classes(){var e;return(e=this.byKind.get(U.ClassName))!=null?e:vs}get styles(){var e;return(e=this.byKind.get(U.StyleProperty))!=null?e:vs}get bindings(){var e;return(e=this.propertyBindings)!=null?e:vs}get template(){var e;return(e=this.byKind.get(U.Template))!=null?e:vs}get i18n(){var e;return(e=this.byKind.get(U.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(!(this.compatibility===It.TemplateDefinitionBuilder&&(e===U.Attribute||e===U.ClassName||e===U.StyleProperty))&&this.isKnown(e,n))return;if(n==="ngProjectAs"){if(r===null||!(r instanceof Pe)||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 l=this.arrayFor(e);if(l.push(...WT(s,n)),e===U.Attribute||e===U.StyleProperty){if(r===null)throw Error("Attribute, i18n attribute, & style element attributes must have a value");if(i!==null){if(!dm(r))throw Error("AssertionError: extracted attribute value should be string literal");l.push(Ld(i,new ea([new ta(r.value)],[]),void 0,r.sourceSpan))}else l.push(r)}}arrayFor(e){var n;return e===U.Property||e===U.TwoWayProperty?((n=this.propertyBindings)!=null||(this.propertyBindings=[]),this.propertyBindings):(this.byKind.has(e)||this.byKind.set(e,[]),this.byKind.get(e))}};function WT(t,e){let n=v(e);return t?[v(0),v(t),n]:[n]}function Xc({attributes:t,bindings:e,classes:n,i18n:r,projectAs:s,styles:i,template:o}){let l=[...t];if(s!==null){let c=Mu(s)[0];l.push(v(5),ei(c))}return n.length>0&&l.push(v(1),...n),i.length>0&&l.push(v(2),...i),e.length>0&&l.push(v(3),...e),o.length>0&&l.push(v(4),...o),r.length>0&&l.push(v(6),...r),ue(l)}function jT(t){let e=new Map;for(let n of t.units){for(let r of n.create)r.kind===f.I18nAttributes&&e.set(r.target,r);for(let r of n.update)switch(r.kind){case f.Property:case f.Attribute:if(r.i18nContext===null||!(r.expression instanceof Le))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 l=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(fm(r.i18nContext,s.target,s.xref,s.handle,l,null,r.expression.i18nPlaceholders[o],Xs.Creation,rs.I18nAttribute,r.name,r.sourceSpan))}A.replaceWithMany(r,i);break}}}function KT(t){var e;for(let n of t.units)for(let r of n.create)if(r.kind===f.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 zT(t){let e=new Map;for(let s of t.units)for(let i of s.ops())switch(i.kind){case f.Binding:case f.Property:case f.Attribute:case f.ExtractedAttribute:if(i.i18nMessage===null)continue;if(!e.has(i.i18nMessage)){let o=Hl(dr.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 f.I18nStart:if(i.xref===i.root){let o=Hl(dr.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===f.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 f.I18nStart:r=i;break;case f.I18nEnd:r=null;break;case f.IcuStart:if(r===null)throw Error("AssertionError: Unexpected ICU outside of an i18n block.");if(i.message.id!==r.message.id){let o=Hl(dr.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=dr.Icu;break}}function XT(t){let e=new Map;for(let n of t.units)for(let r of n.update.reversed())if(r.kind===f.Binding&&r.isTextAttribute){let s=e.get(r.target)||new Set;s.has(r.name)&&t.compatibility===It.TemplateDefinitionBuilder&&(r.name==="style"||r.name==="class")&&A.remove(r),s.add(r.name),e.set(r.target,s)}}function YT(t){for(let e of t.units)for(let n of e.create)n.kind===f.Defer&&(n.placeholderMinimumTime!==null&&(n.placeholderConfig=new co(ei([n.placeholderMinimumTime]))),(n.loadingMinimumTime!==null||n.loadingAfterTime!==null)&&(n.loadingConfig=new co(ei([n.loadingMinimumTime,n.loadingAfterTime]))))}function QT(t){let e=new Map;function n(s){if(e.has(s.xref))return e.get(s.xref);let i=new Yc;for(let o of s.create)if(!(!br(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 l of o.localRefs)l.target===""&&i.targets.set(l.name,{xref:o.xref,slot:o.handle})}return e.set(s.xref,i),i}function r(s,i,o){switch(i.trigger.kind){case fe.Idle:case fe.Never:case fe.Immediate:case fe.Timer:return;case fe.Hover:case fe.Interaction:case fe.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 u=t.views.get(o);if(u==null)throw new Error("AssertionError: could not find placeholder view for defer on trigger");for(let p of u.create)if(oi(p)&&(br(p)||p.kind===f.Projection)){i.trigger.targetXref=p.xref,i.trigger.targetView=o,i.trigger.targetSlotViewSteps=-1,i.trigger.targetSlot=p.handle;return}return}let l=o!==null?t.views.get(o):s,c=o!==null?-1:0;for(;l!==null;){let u=n(l);if(u.targets.has(i.trigger.targetName)){let{xref:p,slot:d}=u.targets.get(i.trigger.targetName);i.trigger.targetXref=p,i.trigger.targetView=l.xref,i.trigger.targetSlotViewSteps=c,i.trigger.targetSlot=d;return}l=l.parent!==null?t.views.get(l.parent):null,c++}break;default:throw new Error(`Trigger kind ${i.trigger.kind} not handled`)}}for(let s of t.units){let i=new Map;for(let o of s.create)switch(o.kind){case f.Defer:i.set(o.xref,o);break;case f.DeferOn:let l=i.get(o.defer);r(s,o,o.modifier==="hydrate"?l.mainView:l.placeholderView);break}}}var Yc=class{constructor(){a(this,"targets",new Map)}},JT=new Map([[f.ElementEnd,[f.ElementStart,f.Element]],[f.ContainerEnd,[f.ContainerStart,f.Container]],[f.I18nEnd,[f.I18nStart,f.I18n]]]),ZT=new Set([f.Pipe]);function ex(t){for(let e of t.units)for(let n of e.create){let r=JT.get(n.kind);if(r===void 0)continue;let[s,i]=r,o=n.prev;for(;o!==null&&ZT.has(o.kind);)o=o.prev;o!==null&&o.kind===s&&(o.kind=i,A.remove(n))}}function tx(t){for(let e of t.units)for(let n of e.ops())Ve(n,r=>ax(r,{job:t}),ce.None),Ve(n,lx,ce.None)}var kL=[nt,gt,Yt,Nr,os].map(t=>t.constructor.name);function qt(t){return t instanceof vr?qt(t.expr):t instanceof le?qt(t.lhs)||qt(t.rhs):t instanceof ln?t.falseCase&&qt(t.falseCase)?!0:qt(t.condition)||qt(t.trueCase):t instanceof Fs?qt(t.condition):t instanceof fn?qt(t.expr):t instanceof mt?qt(t.receiver):t instanceof An?qt(t.receiver)||qt(t.index):t instanceof nt||t instanceof gt||t instanceof Yt||t instanceof Nr||t instanceof os}function nx(t){let e=new Set;return P(t,n=>(n instanceof fn&&e.add(n.xref),n),ce.None),e}function rx(t,e,n){return P(t,r=>{if(r instanceof fn&&e.has(r.xref)){let s=new Jn(r.xref);return n.job.compatibility===It.TemplateDefinitionBuilder?new fn(s,s.xref):s}return r},ce.None),t}function Ss(t,e,n){let r;if(qt(t)){let s=n.job.allocateXrefId();r=[new fn(t,s),new Jn(s)]}else r=[t,t.clone()],rx(r[1],nx(r[0]),n);return new Zs(r[0],e(r[1]))}function sx(t){return t instanceof Qs||t instanceof Js||t instanceof Nr}function ix(t){return t instanceof mt||t instanceof An||t instanceof nt}function wm(t){return sx(t)||ix(t)}function ox(t){if(wm(t)&&t.receiver instanceof Zs){let e=t.receiver;for(;e.expr instanceof Zs;)e=e.expr;return e}return null}function ax(t,e){if(!wm(t))return t;let n=ox(t);if(n){if(t instanceof nt)return n.expr=n.expr.callFn(t.args),t.receiver;if(t instanceof mt)return n.expr=n.expr.prop(t.name),t.receiver;if(t instanceof An)return n.expr=n.expr.key(t.index),t.receiver;if(t instanceof Nr)return n.expr=Ss(n.expr,r=>r.callFn(t.args),e),t.receiver;if(t instanceof Qs)return n.expr=Ss(n.expr,r=>r.prop(t.name),e),t.receiver;if(t instanceof Js)return n.expr=Ss(n.expr,r=>r.key(t.index),e),t.receiver}else{if(t instanceof Nr)return Ss(t.receiver,r=>r.callFn(t.args),e);if(t instanceof Qs)return Ss(t.receiver,r=>r.prop(t.name),e);if(t instanceof Js)return Ss(t.receiver,r=>r.key(t.index),e)}return t}function lx(t){return t instanceof Zs?new ln(new le(b.Equals,t.guard,Bs),Bs,t.expr):t}var cf="\uFFFD",cx="#",ux="*",px="/",hx=":",fx="[",dx="]",mx="|";function gx(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 f.I18nContext:let l=yx(t,o);i.create.push(l),e.set(o.xref,l),r.set(o.xref,o);break;case f.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 f.IcuStart:s=o,A.remove(o);let l=r.get(o.context);if(l.contextKind!==dr.Icu)continue;let c=n.get(l.i18nBlock);if(c.context===l.xref)continue;let u=n.get(c.root),p=e.get(u.context);if(p===void 0)throw Error("AssertionError: ICU sub-message should belong to a root message.");let d=e.get(l.xref);d.messagePlaceholder=o.messagePlaceholder,p.subMessages.push(d.xref);break;case f.IcuEnd:s=null,A.remove(o);break;case f.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,v(vx(o))),A.remove(o);break}}function yx(t,e,n){let r=uf(e.params),s=uf(e.postprocessingParams),i=[...e.params.values()].some(o=>o.length>1);return wT(t.allocateXrefId(),e.xref,e.i18nBlock,e.message,n!=null?n:null,r,s,i)}function vx(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(_s);return t.strings.flatMap((n,r)=>[n,e[r]||""]).join("")}function uf(t){let e=new Map;for(let[n,r]of t){let s=Sx(r);s!==null&&e.set(n,v(s))}return e}function Sx(t){if(t.length===0)return null;let e=t.map(n=>_s(n));return e.length===1?e[0]:`${fx}${e.join(mx)}${dx}`}function _s(t){if(t.flags&me.ElementTag&&t.flags&me.TemplateTag){if(typeof t.value!="object")throw Error("AssertionError: Expected i18n param value to have an element and template slot");let s=_s(ye(T({},t),{value:t.value.element,flags:t.flags&~me.TemplateTag})),i=_s(ye(T({},t),{value:t.value.template,flags:t.flags&~me.ElementTag}));return t.flags&me.OpenTag&&t.flags&me.CloseTag?`${i}${s}${i}`:t.flags&me.CloseTag?`${s}${i}`:`${i}${s}`}if(t.flags&me.OpenTag&&t.flags&me.CloseTag)return`${_s(ye(T({},t),{flags:t.flags&~me.CloseTag}))}${_s(ye(T({},t),{flags:t.flags&~me.OpenTag}))}`;if(t.flags===me.None)return`${t.value}`;let e="",n="";t.flags&me.ElementTag?e=cx:t.flags&me.TemplateTag&&(e=ux),e!==""&&(n=t.flags&me.CloseTag?px:"");let r=t.subTemplateIndex===null?"":`${hx}${t.subTemplateIndex}`;return`${cf}${n}${e}${t.value}${r}${cf}`}function Ex(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(Ea(s)?i=s:lt(s,l=>{i===null&&Ea(l)&&(i=l)}),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 l=o-r;if(l<0)throw new Error("AssertionError: slot counter should never need to move backwards");A.insertBefore(iT(l,i.sourceSpan),s),r=o}}}}function wx(t){let e=t.compatibility===It.TemplateDefinitionBuilder,n=[],r=0;for(let s of t.units)for(let i of s.create)i.kind===f.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:Mu(o));s=t.pool.getConstLiteral(ei(i),e)}t.contentSelectors=t.pool.getConstLiteral(ei(n),e),t.root.create.prepend([yT(s)])}}function Tx(t){xi(t.root,null)}function xi(t,e){let n=xx(t,e);for(let r of t.create)switch(r.kind){case f.Template:xi(t.job.views.get(r.xref),n);break;case f.Projection:r.fallbackView!==null&&xi(t.job.views.get(r.fallbackView),n);break;case f.RepeaterCreate:xi(t.job.views.get(r.xref),n),r.emptyView&&xi(t.job.views.get(r.emptyView),n),r.trackByOps!==null&&r.trackByOps.prepend(Xo(t,n,!1));break;case f.Listener:case f.TwoWayListener:r.handlerOps.prepend(Xo(t,n,!0));break}t.update.prepend(Xo(t,n,!1))}function xx(t,e){let n={view:t.xref,viewContextVariable:{kind:We.Context,name:null,view:t.xref},contextVariables:new Map,aliases:t.aliases,references:[],letDeclarations:[],parent:e};for(let r of t.contextVariables.keys())n.contextVariables.set(r,{kind:We.Identifier,name:null,identifier:r,local:!1});for(let r of t.create)switch(r.kind){case f.ElementStart:case f.Template:if(!Array.isArray(r.localRefs))throw new Error("AssertionError: expected localRefs to be an array");for(let s=0;s<r.localRefs.length;s++)n.references.push({name:r.localRefs[s].name,targetId:r.xref,targetSlot:r.handle,offset:s,variable:{kind:We.Identifier,name:null,identifier:r.localRefs[s].name,local:!1}});break;case f.DeclareLet:n.letDeclarations.push({targetId:r.xref,targetSlot:r.handle,variable:{kind:We.Identifier,name:null,identifier:r.declaredName,local:!1}});break}return n}function Xo(t,e,n){let r=[];e.view!==t.xref&&r.push(hr(t.job.allocateXrefId(),e.viewContextVariable,new Ta,Rt.None));let s=t.job.views.get(e.view);for(let[i,o]of s.contextVariables){let l=new Qn(e.view),c=o===Sm?l:new mt(l,o);r.push(hr(t.job.allocateXrefId(),e.contextVariables.get(i),c,Rt.None))}for(let i of s.aliases)r.push(hr(t.job.allocateXrefId(),i,i.expression.clone(),Rt.AlwaysInline));for(let i of e.references)r.push(hr(t.job.allocateXrefId(),i.variable,new wa(i.targetId,i.targetSlot,i.offset),Rt.None));if(e.view!==t.xref||n)for(let i of e.letDeclarations)r.push(hr(t.job.allocateXrefId(),i.variable,new ao(i.targetId,i.targetSlot),Rt.None));return e.parent!==null&&r.push(...Xo(t,e.parent,!1)),r}function Cx(t){for(let e of t.units)for(let n of e.ops())Ve(n,r=>r instanceof co?v(t.addConst(r.expr)):r,ce.None)}var pf="style.",hf="class.",Ax="style!",ff="class!",df="!important";function Ix(t){for(let e of t.root.update)if(e.kind===f.Binding&&e.bindingKind===U.Property)if(e.name.endsWith(df)&&(e.name=e.name.substring(0,e.name.length-df.length)),e.name.startsWith(pf)){e.bindingKind=U.StyleProperty,e.name=e.name.substring(pf.length),Nx(e.name)||(e.name=bx(e.name));let{property:n,suffix:r}=Gl(e.name);e.name=n,e.unit=r}else e.name.startsWith(Ax)?(e.bindingKind=U.StyleProperty,e.name="style"):e.name.startsWith(hf)?(e.bindingKind=U.ClassName,e.name=Gl(e.name.substring(hf.length)).property):e.name.startsWith(ff)&&(e.bindingKind=U.ClassName,e.name=Gl(e.name.substring(ff.length)).property)}function Nx(t){return t.startsWith("--")}function bx(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function Gl(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 Qc(t,e=!1){return st(Object.keys(t).map(n=>({key:n,quoted:e,value:t[n]})))}var Jc=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`{${So(e,!1)}}`}},Dx=new Jc;function Tm(t){return t.visit(Dx)}var Dr=class{constructor(e,n){a(this,"sourceSpan");a(this,"i18n");this.sourceSpan=e,this.i18n=n}},as=class extends Dr{constructor(n,r,s,i){super(r,i);a(this,"value");a(this,"tokens");this.value=n,this.tokens=s}visit(n,r){return n.visitText(this,r)}},Hr=class extends Dr{constructor(n,r,s,i,o,l){super(i,l);a(this,"switchValue");a(this,"type");a(this,"cases");a(this,"switchValueSourceSpan");this.switchValue=n,this.type=r,this.cases=s,this.switchValueSourceSpan=o}visit(n,r){return n.visitExpansion(this,r)}},Ra=class{constructor(e,n,r,s,i){a(this,"value");a(this,"expression");a(this,"sourceSpan");a(this,"valueSourceSpan");a(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)}},Zc=class extends Dr{constructor(n,r,s,i,o,l,c){super(s,c);a(this,"name");a(this,"value");a(this,"keySpan");a(this,"valueSpan");a(this,"valueTokens");this.name=n,this.value=r,this.keySpan=i,this.valueSpan=o,this.valueTokens=l}visit(n,r){return n.visitAttribute(this,r)}},Ht=class extends Dr{constructor(n,r,s,i,o,l=null,c){super(i,c);a(this,"name");a(this,"attrs");a(this,"children");a(this,"startSourceSpan");a(this,"endSourceSpan");this.name=n,this.attrs=r,this.children=s,this.startSourceSpan=o,this.endSourceSpan=l}visit(n,r){return n.visitElement(this,r)}},po=class{constructor(e,n){a(this,"value");a(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e,n){return e.visitComment(this,n)}},Wt=class extends Dr{constructor(n,r,s,i,o,l,c=null,u){super(i,u);a(this,"name");a(this,"parameters");a(this,"children");a(this,"nameSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");this.name=n,this.parameters=r,this.children=s,this.nameSpan=o,this.startSourceSpan=l,this.endSourceSpan=c}visit(n,r){return n.visitBlock(this,r)}},Pa=class{constructor(e,n){a(this,"expression");a(this,"sourceSpan");this.expression=e,this.sourceSpan=n}visit(e,n){return e.visitBlockParameter(this,n)}},Ma=class{constructor(e,n,r,s,i){a(this,"name");a(this,"value");a(this,"sourceSpan");a(this,"nameSpan");a(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 _e(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 La={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:`
|
|
22
|
-
`,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"},xm="\uE500";La.ngsp=xm;var _i=class extends j{constructor(n,r,s){super(s,n);a(this,"tokenType");this.tokenType=r}},eu=class{constructor(e,n,r){a(this,"tokens");a(this,"errors");a(this,"nonNormalizedIcuExpressions");this.tokens=e,this.errors=n,this.nonNormalizedIcuExpressions=r}};function _x(t,e,n,r={}){let s=new tu(new ns(t,e),n,r);return s.tokenize(),new eu($x(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}var kx=/\r\n?/g;function Ei(t){return`Unexpected character "${t===at?"EOF":String.fromCharCode(t)}"`}function mf(t){return`Unknown entity "${t}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function Rx(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var Oa;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(Oa||(Oa={}));var ki=class{constructor(e){a(this,"error");this.error=e}},tu=class{constructor(e,n,r){a(this,"_getTagDefinition");a(this,"_cursor");a(this,"_tokenizeIcu");a(this,"_interpolationConfig");a(this,"_leadingTriviaCodePoints");a(this,"_currentTokenStart",null);a(this,"_currentTokenType",null);a(this,"_expansionCaseStack",[]);a(this,"_inInterpolation",!1);a(this,"_preserveLineEndings");a(this,"_i18nNormalizeLineEndingsInICUs");a(this,"_tokenizeBlocks");a(this,"_tokenizeLet");a(this,"tokens",[]);a(this,"errors",[]);a(this,"nonNormalizedIcuExpressions",[]);var i,o;this._getTagDefinition=n,this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._interpolationConfig=r.interpolationConfig||jt,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map(l=>l.codePointAt(0)||0);let s=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new nu(e,s):new Fa(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;try{this._cursor.init()}catch(l){this.handleError(l)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(kx,`
|
|
23
|
-
`)}tokenize(){for(;this._cursor.peek()!==at;){let e=this._cursor.clone();try{this._attemptCharCode(Ns)?this._attemptCharCode(Mc)?this._attemptCharCode(Ps)?this._consumeCdata(e):this._attemptCharCode(va)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(On)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeLet&&this._cursor.peek()===Fl&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(Fl)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(xt)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(n){this.handleError(n)}}this._beginToken(33),this._endToken([])}_getBlockName(){let e=!1,n=this._cursor.clone();return this._attemptCharCodeUntilFn(r=>ro(r)?!e:Bx(r)?(e=!0,!1):!0),this._cursor.getChars(n).trim()}_consumeBlockStart(e){this._beginToken(24,e);let n=this._endToken([this._getBlockName()]);if(this._cursor.peek()===qn)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(He),this._attemptCharCode(rn))this._attemptCharCodeUntilFn(He);else{n.type=28;return}this._attemptCharCode(En)?(this._beginToken(25),this._endToken([])):n.type=28}_consumeBlockEnd(e){this._beginToken(26,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(vf);this._cursor.peek()!==rn&&this._cursor.peek()!==at;){this._beginToken(27);let e=this._cursor.clone(),n=null,r=0;for(;this._cursor.peek()!==kt&&this._cursor.peek()!==at||n!==null;){let s=this._cursor.peek();if(s===Ni)this._cursor.advance();else if(s===n)n=null;else if(n===null&&bi(s))n=s;else if(s===qn&&n===null)r++;else if(s===rn&&n===null){if(r===0)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(vf)}}_consumeLetDeclaration(e){if(this._beginToken(29,e),ro(this._cursor.peek()))this._attemptCharCodeUntilFn(He);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=32;return}let n=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(He),!this._attemptCharCode(Ur)){n.type=32;return}this._attemptCharCodeUntilFn(s=>He(s)&&!Wu(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===kt?(this._beginToken(31),this._endToken([]),this._cursor.advance()):(n.type=32,n.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),n=!1;return this._attemptCharCodeUntilFn(r=>so(r)||r===qu||r===Eo||n&&vn(r)?(n=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(30,e);this._cursor.peek()!==at;){let n=this._cursor.peek();if(n===kt)break;bi(n)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(r=>r===Ni?(this._cursor.advance(),!1):r===n)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(Ox(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===xt){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 _i("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(n));if(this._currentTokenType===null)throw new _i("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));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 _i(e,this._currentTokenType,n);return this._currentTokenStart=null,this._currentTokenType=null,new ki(r)}handleError(e){if(e instanceof ho&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof ki)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return Fx(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let n=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Ei(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(Ei(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(Ei(this._cursor.peek()),this._cursor.getSpan(r))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(){let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_consumeEntity(e){this._beginToken(9);let n=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(zd)){let r=this._attemptCharCode(nm)||this._attemptCharCode(iw),s=this._cursor.clone();if(this._attemptCharCodeUntilFn(Mx),this._cursor.peek()!=kt){this._cursor.advance();let o=r?Oa.HEX:Oa.DEC;throw this._createError(Rx(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.fromCharCode(o),this._cursor.getChars(n)])}catch(o){throw this._createError(mf(this._cursor.getChars(n)),this._cursor.getSpan())}}else{let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(Lx),this._cursor.peek()!=kt)this._beginToken(e,n),this._cursor=r,this._endToken(["&"]);else{let s=this._cursor.getChars(r);this._cursor.advance();let i=La[s];if(!i)throw this._createError(mf(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()===ya?(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(va),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e);let n=this._cursor.clone();this._attemptUntilChar(lr);let r=this._cursor.getChars(n);this._cursor.advance(),this._endToken([r])}_consumePrefixAndName(){let e=this._cursor.clone(),n="";for(;this._cursor.peek()!==pr&&!Px(this._cursor.peek());)this._cursor.advance();let r;this._cursor.peek()===pr?(n=this._cursor.getChars(e),this._cursor.advance(),r=this._cursor.clone()):r=e,this._requireCharCodeUntilFn(gf,n===""?0:1);let s=this._cursor.getChars(r);return[n,s]}_consumeTagOpen(e){let n,r,s;try{if(!so(this._cursor.peek()))throw this._createError(Ei(this._cursor.peek()),this._cursor.getSpan(e));for(s=this._consumeTagOpenStart(e),r=s.parts[0],n=s.parts[1],this._attemptCharCodeUntilFn(He);this._cursor.peek()!==On&&this._cursor.peek()!==lr&&this._cursor.peek()!==Ns&&this._cursor.peek()!==at;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(He),this._attemptCharCode(Ur)&&(this._attemptCharCodeUntilFn(He),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(He);this._consumeTagOpenEnd()}catch(o){if(o instanceof ki){s?s.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw o}let i=this._getTagDefinition(n).getContentType(r);i===tn.RAW_TEXT?this._consumeRawTextWithTagClose(r,n,!1):i===tn.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,n,!0)}_consumeRawTextWithTagClose(e,n,r){this._consumeRawText(r,()=>!this._attemptCharCode(Ns)||!this._attemptCharCode(On)||(this._attemptCharCodeUntilFn(He),!this._attemptStrCaseInsensitive(n))?!1:(this._attemptCharCodeUntilFn(He),this._attemptCharCode(lr))),this._beginToken(3),this._requireCharCodeUntilFn(s=>s===lr,3),this._cursor.advance(),this._endToken([e,n])}_consumeTagOpenStart(e){this._beginToken(0,e);let n=this._consumePrefixAndName();return this._endToken(n)}_consumeAttributeName(){let e=this._cursor.peek();if(e===no||e===to)throw this._createError(Ei(e),this._cursor.getSpan());this._beginToken(14);let n=this._consumePrefixAndName();this._endToken(n)}_consumeAttributeValue(){if(this._cursor.peek()===no||this._cursor.peek()===to){let e=this._cursor.peek();this._consumeQuote(e);let n=()=>this._cursor.peek()===e;this._consumeWithInterpolation(16,17,n,n),this._consumeQuote(e)}else{let e=()=>gf(this._cursor.peek());this._consumeWithInterpolation(16,17,e,e)}}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(On)?2:1;this._beginToken(e),this._requireCharCode(lr),this._endToken([])}_consumeTagClose(e){this._beginToken(3,e),this._attemptCharCodeUntilFn(He);let n=this._consumePrefixAndName();this._attemptCharCodeUntilFn(He),this._requireCharCode(lr),this._endToken(n)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(En),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);let e=this._readUntil(zt),n=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([n]);else{let s=this._endToken([e]);n!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(zt),this._attemptCharCodeUntilFn(He),this._beginToken(7);let r=this._readUntil(zt);this._endToken([r]),this._requireCharCode(zt),this._attemptCharCodeUntilFn(He)}_consumeExpansionCaseStart(){this._beginToken(20);let e=this._readUntil(En).trim();this._endToken([e]),this._attemptCharCodeUntilFn(He),this._beginToken(21),this._requireCharCode(En),this._endToken([]),this._attemptCharCodeUntilFn(He),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(xt),this._endToken([]),this._attemptCharCodeUntilFn(He),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(xt),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,n,r,s){this._beginToken(e);let i=[];for(;!r();){let o=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(""))],o),i.length=0,this._consumeInterpolation(n,o,s),this._beginToken(e)):this._cursor.peek()===ya?(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(this._interpolationConfig.start);let i=this._cursor.clone(),o=null,l=!1;for(;this._cursor.peek()!==at&&(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(this._interpolationConfig.end)){s.push(this._getProcessedChars(i,c)),s.push(this._interpolationConfig.end),this._endToken(s);return}else this._attemptStr("//")&&(l=!0);let u=this._cursor.peek();this._cursor.advance(),u===Ni?this._cursor.advance():u===o?o=null:!l&&o===null&&bi(u)&&(o=u)}s.push(this._getProcessedChars(i,this._cursor)),this._endToken(s)}_getProcessedChars(e,n){return this._processCarriageReturns(n.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===at||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===xt&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._cursor.peek()===Fl||this._cursor.peek()===xt))}_isTagStart(){if(this._cursor.peek()===Ns){let e=this._cursor.clone();e.advance();let n=e.peek();if(es<=n&&n<=wo||si<=n&&n<=tl||n===On||n===Mc)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]===21}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===19}isExpansionFormStart(){if(this._cursor.peek()!==En)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),n=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!n}return!0}};function He(t){return!ro(t)||t===at}function gf(t){return ro(t)||t===lr||t===Ns||t===On||t===no||t===to||t===Ur||t===at}function Px(t){return(t<es||wo<t)&&(t<si||tl<t)&&(t<Hu||t>Yd)}function Mx(t){return t===kt||t===at||!uw(t)}function Lx(t){return t===kt||t===at||!so(t)}function Ox(t){return t!==xt}function Fx(t,e){return yf(t)===yf(e)}function yf(t){return t>=es&&t<=wo?t-es+si:t}function Bx(t){return so(t)||vn(t)||t===Eo}function vf(t){return t!==kt&&He(t)}function $x(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===16&&s.type===16?(n.parts[0]+=s.parts[0],n.sourceSpan.end=s.sourceSpan.end):(n=s,e.push(n))}return e}var Fa=class t{constructor(e,n){a(this,"state");a(this,"file");a(this,"input");a(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 W(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 ho('Unexpected character "EOF"',this);let n=this.charAt(e.offset);n===qr?(e.line++,e.column=0):Wu(n)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?at:this.charAt(e.offset)}locationFromCursor(e){return new ts(e.file,e.state.offset,e.state.line,e.state.column)}},nu=class t extends Fa{constructor(n,r){var e=(...LL)=>(super(...LL),a(this,"internalState"),this);n instanceof t?(e(n),this.internalState=T({},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()===Ni)if(this.internalState=T({},this.state),this.advanceState(this.internalState),n()===Qd)this.state.peek=qr;else if(n()===Jd)this.state.peek=Vu;else if(n()===tm)this.state.peek=Wd;else if(n()===Zd)this.state.peek=Uu;else if(n()===aw)this.state.peek=ZE;else if(n()===Gu)this.state.peek=jd;else if(n()===em)if(this.advanceState(this.internalState),n()===En){this.advanceState(this.internalState);let r=this.clone(),s=0;for(;n()!==xt;)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()===nm){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(Zh(n())){let r="",s=0,i=this.clone();for(;Zh(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 Wu(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 ho("Invalid hexadecimal escape sequence",n);return i}},ho=class{constructor(e,n){a(this,"msg");a(this,"cursor");this.msg=e,this.cursor=n}},Qe=class t extends j{constructor(n,r,s){super(r,s);a(this,"elementName");this.elementName=n}static create(n,r,s){return new t(n,r,s)}},Ba=class{constructor(e,n){a(this,"rootNodes");a(this,"errors");this.rootNodes=e,this.errors=n}},ru=class{constructor(e){a(this,"getTagDefinition");this.getTagDefinition=e}parse(e,n,r){let s=_x(e,n,this.getTagDefinition,r),i=new su(s.tokens,this.getTagDefinition);return i.build(),new Ba(i.rootNodes,s.errors.concat(i.errors))}},su=class t{constructor(e,n){a(this,"tokens");a(this,"getTagDefinition");a(this,"_index",-1);a(this,"_peek");a(this,"_containerStack",[]);a(this,"rootNodes",[]);a(this,"errors",[]);this.tokens=e,this.getTagDefinition=n,this._advance()}build(){for(;this._peek.type!==33;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?this._consumeEndTag(this._advance()):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===19?this._consumeExpansion(this._advance()):this._peek.type===24?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===26?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===28?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===32?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let e of this._containerStack)e instanceof Wt&&this.errors.push(Qe.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}_advanceIf(e){return this._peek.type===e?this._advance():null}_consumeCdata(e){this._consumeText(this._advance()),this._advanceIf(13)}_consumeComment(e){let n=this._advanceIf(7),r=this._advanceIf(11),s=n!=null?n.parts[0].trim():null,i=r==null?e.sourceSpan:new W(e.sourceSpan.start,r.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new po(s,i))}_consumeExpansion(e){let n=this._advance(),r=this._advance(),s=[];for(;this._peek.type===20;){let o=this._parseExpansionCase();if(!o)return;s.push(o)}if(this._peek.type!==23){this.errors.push(Qe.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let i=new W(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Hr(n.parts[0],r.parts[0],s,i,n.sourceSpan)),this._advance()}_parseExpansionCase(){let e=this._advance();if(this._peek.type!==21)return this.errors.push(Qe.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:33,parts:[],sourceSpan:s.sourceSpan});let i=new t(r,this.getTagDefinition);if(i.build(),i.errors.length>0)return this.errors=this.errors.concat(i.errors),null;let o=new W(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart),l=new W(n.sourceSpan.start,s.sourceSpan.end,n.sourceSpan.fullStart);return new Ra(e.parts[0],i.rootNodes,o,e.sourceSpan,l)}_collectExpansionExpTokens(e){let n=[],r=[21];for(;;){if((this._peek.type===19||this._peek.type===21)&&r.push(this._peek.type),this._peek.type===22)if(Sf(r,21)){if(r.pop(),r.length===0)return n}else return this.errors.push(Qe.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===23)if(Sf(r,19))r.pop();else return this.errors.push(Qe.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===33)return this.errors.push(Qe.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.push(this._advance())}}_consumeText(e){let n=[e],r=e.sourceSpan,s=e.parts[0];if(s.length>0&&s[0]===`
|
|
24
|
-
`){let i=this._getContainer();i!=null&&i.children.length===0&&this.getTagDefinition(i.name).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,
|
|
25
|
-
\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,Vx=new RegExp(`[^${Am}]`),qx=new RegExp(`[${Am}]{2,}`,"g");function Hx(t){return t.some(e=>e.name===Cm)}function Im(t){return t.replace(new RegExp(xm,"g")," ")}var $a=class{constructor(e,n,r=!0){a(this,"preserveSignificantWhitespace");a(this,"originalNodeMap");a(this,"requireContext");a(this,"icuExpansionDepth",0);this.preserveSignificantWhitespace=e,this.originalNodeMap=n,this.requireContext=r}visitElement(e,n){var s,i;if(Ux.has(e.name)||Hx(e.attrs)){let o=new Ht(e.name,Cs(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return(s=this.originalNodeMap)==null||s.set(o,e),o}let r=new Ht(e.name,e.attrs,Cs(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return(i=this.originalNodeMap)==null||i.set(r,e),r}visitAttribute(e,n){return e.name!==Cm?e:null}visitText(e,n){var o;let r=e.value.match(Vx),s=n&&(n.prev instanceof Hr||n.next instanceof Hr);if(this.icuExpansionDepth>0&&this.preserveSignificantWhitespace)return e;if(r||s){let l=e.tokens.map(d=>d.type===5?Kx(d):d);if(!this.preserveSignificantWhitespace&&l.length>0){let d=l[0];l.splice(0,1,Gx(d,n));let m=l[l.length-1];l.splice(l.length-1,1,Wx(m,n))}let c=bm(e.value),u=this.preserveSignificantWhitespace?c:jx(c,n),p=new as(u,e.sourceSpan,l,e.i18n);return(o=this.originalNodeMap)==null||o.set(p,e),p}return null}visitComment(e,n){return e}visitExpansion(e,n){var s;this.icuExpansionDepth++;let r;try{r=new Hr(e.switchValue,e.type,Cs(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 Ra(e.value,Cs(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 Wt(e.name,e.parameters,Cs(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}visit(e,n){if(this.requireContext&&!n)throw new Error("WhitespaceVisitor requires context. Visit via `visitAllWithSiblings` to get this context.");return!1}};function Gx(t,e){return t.type!==5||!!(e!=null&&e.prev)?t:Nm(t,r=>r.trimStart())}function Wx(t,e){return t.type!==5||!!(e!=null&&e.next)?t:Nm(t,r=>r.trimEnd())}function jx(t,e){let n=!(e!=null&&e.prev),r=!(e!=null&&e.next),s=n?t.trimStart():t;return r?s.trimEnd():s}function Kx({type:t,parts:e,sourceSpan:n}){return{type:t,parts:[bm(e[0])],sourceSpan:n}}function Nm({type:t,parts:e,sourceSpan:n},r){return{type:t,parts:[r(e[0])],sourceSpan:n}}function bm(t){return Im(t).replace(qx," ")}function Cs(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 te;(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.Error=7]="Error"})(te||(te={}));var zx=["var","let","as","null","undefined","true","false","if","else","this","typeof"],fo=class{tokenize(e){let n=new iu(e),r=[],s=n.scanToken();for(;s!=null;)r.push(s),s=n.scanToken();return r}},dn=class{constructor(e,n,r,s,i){a(this,"index");a(this,"end");a(this,"type");a(this,"numValue");a(this,"strValue");this.index=e,this.end=n,this.type=r,this.numValue=s,this.strValue=i}isCharacter(e){return this.type==te.Character&&this.numValue==e}isNumber(){return this.type==te.Number}isString(){return this.type==te.String}isOperator(e){return this.type==te.Operator&&this.strValue==e}isIdentifier(){return this.type==te.Identifier}isPrivateIdentifier(){return this.type==te.PrivateIdentifier}isKeyword(){return this.type==te.Keyword}isKeywordLet(){return this.type==te.Keyword&&this.strValue=="let"}isKeywordAs(){return this.type==te.Keyword&&this.strValue=="as"}isKeywordNull(){return this.type==te.Keyword&&this.strValue=="null"}isKeywordUndefined(){return this.type==te.Keyword&&this.strValue=="undefined"}isKeywordTrue(){return this.type==te.Keyword&&this.strValue=="true"}isKeywordFalse(){return this.type==te.Keyword&&this.strValue=="false"}isKeywordThis(){return this.type==te.Keyword&&this.strValue=="this"}isKeywordTypeof(){return this.type===te.Keyword&&this.strValue==="typeof"}isError(){return this.type==te.Error}toNumber(){return this.type==te.Number?this.numValue:-1}toString(){switch(this.type){case te.Character:case te.Identifier:case te.Keyword:case te.Operator:case te.PrivateIdentifier:case te.String:case te.Error:return this.strValue;case te.Number:return this.numValue.toString();default:return null}}};function wf(t,e,n){return new dn(t,e,te.Character,n,String.fromCharCode(n))}function Xx(t,e,n){return new dn(t,e,te.Identifier,0,n)}function Yx(t,e,n){return new dn(t,e,te.PrivateIdentifier,0,n)}function Qx(t,e,n){return new dn(t,e,te.Keyword,0,n)}function Wl(t,e,n){return new dn(t,e,te.Operator,0,n)}function Jx(t,e,n){return new dn(t,e,te.String,0,n)}function Zx(t,e,n){return new dn(t,e,te.Number,n,"")}function eC(t,e,n){return new dn(t,e,te.Error,0,n)}var jl=new dn(-1,-1,te.Character,0,""),iu=class{constructor(e){a(this,"input");a(this,"length");a(this,"peek",0);a(this,"index",-1);this.input=e,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?at:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,n=this.length,r=this.peek,s=this.index;for(;r<=Kd;)if(++s>=n){r=at;break}else r=e.charCodeAt(s);if(this.peek=r,this.index=s,s>=n)return null;if(Tf(r))return this.scanIdentifier();if(vn(r))return this.scanNumber(s);let i=s;switch(r){case Ts:return this.advance(),vn(this.peek)?this.scanNumber(i):wf(i,this.index,Ts);case qn:case rn:case En:case xt:case Ps:case bs:case zt:case pr:case kt:return this.scanCharacter(i,r);case no:case to:return this.scanString();case zd:return this.scanPrivateIdentifier();case Xd:case va:case tw:case On:case ew:case ow:return this.scanOperator(i,String.fromCharCode(r));case Qh:return this.scanQuestion(i);case Ns:case lr:return this.scanComplexOperator(i,String.fromCharCode(r),Ur,"=");case Mc:case Ur:return this.scanComplexOperator(i,String.fromCharCode(r),Ur,"=",Ur,"=");case ya:return this.scanComplexOperator(i,"&",ya,"&");case Jh:return this.scanComplexOperator(i,"|",Jh,"|");case rm:for(;ro(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(r)}]`,0)}scanCharacter(e,n){return this.advance(),wf(e,this.index,n)}scanOperator(e,n){return this.advance(),Wl(e,this.index,n)}scanComplexOperator(e,n,r,s,i,o){this.advance();let l=n;return this.peek==r&&(this.advance(),l+=s),i!=null&&this.peek==i&&(this.advance(),l+=o),Wl(e,this.index,l)}scanIdentifier(){let e=this.index;for(this.advance();xf(this.peek);)this.advance();let n=this.input.substring(e,this.index);return zx.indexOf(n)>-1?Qx(e,this.index,n):Xx(e,this.index,n)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!Tf(this.peek))return this.error("Invalid character [#]",-1);for(;xf(this.peek);)this.advance();let n=this.input.substring(e,this.index);return Yx(e,this.index,n)}scanNumber(e){let n=this.index===e,r=!1;for(this.advance();;){if(!vn(this.peek))if(this.peek===Eo){if(!vn(this.input.charCodeAt(this.index-1))||!vn(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);r=!0}else if(this.peek===Ts)n=!1;else if(tC(this.peek)){if(this.advance(),nC(this.peek)&&this.advance(),!vn(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?sC(s):parseFloat(s);return Zx(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==Ni){r+=i.substring(s,this.index);let l;if(this.advance(),this.peek==em){let c=i.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(c))l=parseInt(c,16);else return this.error(`Invalid unicode escape [\\u${c}]`,0);for(let u=0;u<5;u++)this.advance()}else l=rC(this.peek),this.advance();r+=String.fromCharCode(l),s=this.index}else{if(this.peek==at)return this.error("Unterminated quote",0);this.advance()}let o=i.substring(s,this.index);return this.advance(),Jx(e,this.index,r+o)}scanQuestion(e){this.advance();let n="?";return(this.peek===Qh||this.peek===Ts)&&(n+=this.peek===Ts?".":"?",this.advance()),Wl(e,this.index,n)}error(e,n){let r=this.index+n;return eC(r,this.index,`Lexer Error: ${e} at column ${r} in expression [${this.input}]`)}};function Tf(t){return es<=t&&t<=wo||si<=t&&t<=tl||t==Eo||t==qu}function xf(t){return so(t)||vn(t)||t==Eo||t==qu}function tC(t){return t==lw||t==rw}function nC(t){return t==va||t==Xd}function rC(t){switch(t){case Qd:return qr;case Gu:return jd;case Jd:return Vu;case Zd:return Uu;case tm:return Wd;default:return t}}function sC(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var ou=class{constructor(e,n,r){a(this,"strings");a(this,"expressions");a(this,"offsets");this.strings=e,this.expressions=n,this.offsets=r}},au=class{constructor(e,n,r){a(this,"templateBindings");a(this,"warnings");a(this,"errors");this.templateBindings=e,this.warnings=n,this.errors=r}},Ua=class{constructor(e){a(this,"_lexer");a(this,"errors",[]);this._lexer=e}parseAction(e,n,r,s=jt){this._checkNoInterpolation(e,n,s);let i=this._stripComments(e),o=this._lexer.tokenize(i),l=new Fr(e,n,r,o,1,this.errors,0).parseChain();return new Ce(l,e,n,r,this.errors)}parseBinding(e,n,r,s=jt){let i=this._parseBindingAst(e,n,r,s);return new Ce(i,e,n,r,this.errors)}checkSimpleExpression(e){let n=new lu;return e.visit(n),n.errors}parseSimpleBinding(e,n,r,s=jt){let i=this._parseBindingAst(e,n,r,s),o=this.checkSimpleExpression(i);return o.length>0&&this._reportError(`Host binding expression cannot contain ${o.join(" ")}`,e,n),new Ce(i,e,n,r,this.errors)}_reportError(e,n,r,s){this.errors.push(new Vs(e,n,r,s))}_parseBindingAst(e,n,r,s){this._checkNoInterpolation(e,n,s);let i=this._stripComments(e),o=this._lexer.tokenize(i);return new Fr(e,n,r,o,0,this.errors,0).parseChain()}parseTemplateBindings(e,n,r,s,i){let o=this._lexer.tokenize(n);return new Fr(n,r,i,o,0,this.errors,0).parseTemplateBindings({source:e,span:new et(s,s+e.length)})}parseInterpolation(e,n,r,s,i=jt){let{strings:o,expressions:l,offsets:c}=this.splitInterpolation(e,n,s,i);if(l.length===0)return null;let u=[];for(let p=0;p<l.length;++p){let d=l[p].text,m=this._stripComments(d),g=this._lexer.tokenize(m),E=new Fr(e,n,r,g,0,this.errors,c[p]).parseChain();u.push(E)}return this.createInterpolationAst(o.map(p=>p.text),u,e,n,r)}parseInterpolationExpression(e,n,r){let s=this._stripComments(e),i=this._lexer.tokenize(s),o=new Fr(e,n,r,i,0,this.errors,0).parseChain(),l=["",""];return this.createInterpolationAst(l,[o],e,n,r)}createInterpolationAst(e,n,r,s,i){let o=new Xr(0,r.length),l=new Kn(o,o.toAbsolute(i),e,n);return new Ce(l,r,s,i,this.errors)}splitInterpolation(e,n,r,s=jt){var E;let i=[],o=[],l=[],c=r?iC(r):null,u=0,p=!1,d=!1,{start:m,end:g}=s;for(;u<e.length;)if(p){let w=u,x=w+m.length,_=this._getInterpolationEndIndex(e,g,x);if(_===-1){p=!1,d=!0;break}let D=_+g.length,H=e.substring(x,_);H.trim().length===0&&this._reportError("Blank expressions are not allowed in interpolated strings",e,`at column ${u} in`,n),o.push({text:H,start:w,end:D});let ee=((E=c==null?void 0:c.get(w))!=null?E:w)+m.length;l.push(ee),u=D,p=!1}else{let w=u;u=e.indexOf(m,u),u===-1&&(u=e.length);let x=e.substring(w,u);i.push({text:x,start:w,end:u}),p=!0}if(!p)if(d){let w=i[i.length-1];w.text+=e.substring(u),w.end=e.length}else i.push({text:e.substring(u),start:u,end:e.length});return new ou(i,o,l)}wrapLiteralPrimitive(e,n,r){let s=new Xr(0,e==null?0:e.length);return new Ce(new Gt(s,s.toAbsolute(r),e),e,n,r,this.errors)}_stripComments(e){let n=this._commentStart(e);return n!=null?e.substring(0,n):e}_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===On&&i==On&&n==null)return r;n===s?n=null:n==null&&bi(s)&&(n=s)}return null}_checkNoInterpolation(e,n,{start:r,end:s}){let i=-1,o=-1;for(let l of this._forEachUnquotedChar(e,0))if(i===-1)e.startsWith(r)&&(i=l);else if(o=this._getInterpolationEndIndex(e,s,l),o>-1)break;i>-1&&o>-1&&this._reportError(`Got interpolation (${r}${s}) where expression was expected`,e,`at column ${i} in`,n)}_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];bi(e.charCodeAt(i))&&(r===null||r===o)&&s%2===0?r=r===null?o:null:r===null&&(yield i),s=o==="\\"?s+1:0}}},ks;(function(t){t[t.None=0]="None",t[t.Writable=1]="Writable"})(ks||(ks={}));var Fr=class{constructor(e,n,r,s,i,o,l){a(this,"input");a(this,"location");a(this,"absoluteOffset");a(this,"tokens");a(this,"parseFlags");a(this,"errors");a(this,"offset");a(this,"rparensExpected",0);a(this,"rbracketsExpected",0);a(this,"rbracesExpected",0);a(this,"context",ks.None);a(this,"sourceSpanCache",new Map);a(this,"index",0);this.input=e,this.location=n,this.absoluteOffset=r,this.tokens=s,this.parseFlags=i,this.errors=o,this.offset=l}peek(e){let n=this.index+e;return n<this.tokens.length?this.tokens[n]:jl}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 Xr(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}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===jl?"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(kt))for(this.parseFlags&1||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(kt););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 ze(this.span(r,s),this.sourceSpan(r,s))}return e.length==1?e[0]:new Er(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 Xr(o,o).toAbsolute(this.absoluteOffset));let l=[];for(;this.consumeOptionalCharacter(pr);)l.push(this.parseExpression());n=new Qr(this.span(e),this.sourceSpan(e,o),n,s,l,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(pr))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 ze(this.span(e),this.sourceSpan(e))}return new qs(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 _t(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 _t(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 _t(this.span(e),this.sourceSpan(e),"??",n,r)}return n}parseEquality(){let e=this.inputIndex,n=this.parseRelational();for(;this.next.type==te.Operator;){let r=this.next.strValue;switch(r){case"==":case"===":case"!=":case"!==":this.advance();let s=this.parseRelational();n=new _t(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==te.Operator;){let r=this.next.strValue;switch(r){case"<":case">":case"<=":case">=":this.advance();let s=this.parseAdditive();n=new _t(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==te.Operator;){let r=this.next.strValue;switch(r){case"+":case"-":this.advance();let s=this.parseMultiplicative();n=new _t(this.span(e),this.sourceSpan(e),r,n,s);continue}break}return n}parseMultiplicative(){let e=this.inputIndex,n=this.parsePrefix();for(;this.next.type==te.Operator;){let r=this.next.strValue;switch(r){case"*":case"%":case"/":this.advance();let s=this.parsePrefix();n=new _t(this.span(e),this.sourceSpan(e),r,n,s);continue}break}return n}parsePrefix(){if(this.next.type==te.Operator){let e=this.inputIndex,n=this.next.strValue,r;switch(n){case"+":return this.advance(),r=this.parsePrefix(),Gi.createPlus(this.span(e),this.sourceSpan(e),r);case"-":return this.advance(),r=this.parsePrefix(),Gi.createMinus(this.span(e),this.sourceSpan(e),r);case"!":return this.advance(),r=this.parsePrefix(),new la(this.span(e),this.sourceSpan(e),r)}}else if(this.next.isKeywordTypeof()){this.advance();let e=this.inputIndex,n=this.parsePrefix();return new ca(this.span(e),this.sourceSpan(e),n)}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,n=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(Ts))n=this.parseAccessMember(n,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(qn)?n=this.parseCall(n,e,!0):n=this.consumeOptionalCharacter(Ps)?this.parseKeyedReadOrWrite(n,e,!0):this.parseAccessMember(n,e,!0);else if(this.consumeOptionalCharacter(Ps))n=this.parseKeyedReadOrWrite(n,e,!1);else if(this.consumeOptionalCharacter(qn))n=this.parseCall(n,e,!1);else if(this.consumeOptionalOperator("!"))n=new Wi(this.span(e),this.sourceSpan(e),n);else return n}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(qn)){this.rparensExpected++;let n=this.parsePipe();return this.rparensExpected--,this.expectCharacter(rn),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 cn(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(Ps)){this.rbracketsExpected++;let n=this.parseExpressionList(bs);return this.rbracketsExpected--,this.expectCharacter(bs),new oa(this.span(e),this.sourceSpan(e),n)}else{if(this.next.isCharacter(En))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new Re(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.isString()){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 ze(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new ze(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new ze(this.span(e),this.sourceSpan(e)))}}}parseExpressionList(e){let n=[];do if(!this.next.isCharacter(e))n.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(zt));return n}parseLiteralMap(){let e=[],n=[],r=this.inputIndex;if(this.expectCharacter(En),!this.consumeOptionalCharacter(xt)){this.rbracesExpected++;do{let s=this.inputIndex,i=this.next.isString(),o=this.expectIdentifierOrKeywordOrString(),l={key:o,quoted:i};if(e.push(l),i)this.expectCharacter(pr),n.push(this.parsePipe());else if(this.consumeOptionalCharacter(pr))n.push(this.parsePipe());else{l.isShorthandInitialized=!0;let c=this.span(s),u=this.sourceSpan(s);n.push(new Me(c,u,u,new Re(c,u),o))}}while(this.consumeOptionalCharacter(zt)&&!this.next.isCharacter(xt));this.rbracesExpected--,this.expectCharacter(xt)}return new aa(this.span(r),this.sourceSpan(r),e,n)}parseAccessMember(e,n,r){let s=this.inputIndex,i=this.withContext(ks.Writable,()=>{var u;let c=(u=this.expectIdentifierOrKeyword())!=null?u:"";return c.length===0&&this.error("Expected identifier for property access",e.span.end),c}),o=this.sourceSpan(s),l;if(r)this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),l=new ze(this.span(n),this.sourceSpan(n))):l=new yt(this.span(n),this.sourceSpan(n),o,e,i);else if(this.consumeOptionalOperator("=")){if(!(this.parseFlags&1))return this.error("Bindings cannot contain assignments"),new ze(this.span(n),this.sourceSpan(n));let c=this.parseConditional();l=new jn(this.span(n),this.sourceSpan(n),o,e,i,c)}else l=new Me(this.span(n),this.sourceSpan(n),o,e,i);return l}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(rn),this.rparensExpected--;let l=this.span(n),c=this.sourceSpan(n);return r?new In(l,c,e,i,o):new un(l,c,e,i,o)}parseCallArguments(){if(this.next.isCharacter(rn))return[];let e=[];do e.push(this.parsePipe());while(this.consumeOptionalCharacter(zt));return e}expectTemplateBindingKey(){let e="",n=!1,r=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),n=this.consumeOptionalOperator("-"),n&&(e+="-");while(n);return{source:e,span:new et(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 au(n,[],this.errors)}parseKeyedReadOrWrite(e,n,r){return this.withContext(ks.Writable,()=>{this.rbracketsExpected++;let s=this.parsePipe();if(s instanceof ze&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(bs),this.consumeOptionalOperator("="))if(r)this.error("The '?.' operator cannot be used in the assignment");else{let i=this.parseConditional();return new ia(this.span(n),this.sourceSpan(n),e,s,i)}else return r?new wr(this.span(n),this.sourceSpan(n),e,s):new Hi(this.span(n),this.sourceSpan(n),e,s);return new ze(this.span(n),this.sourceSpan(n))})}parseDirectiveKeywordBindings(e){let n=[];this.consumeOptionalCharacter(pr);let r=this.getDirectiveBoundTarget(),s=this.currentAbsoluteOffset,i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),s=this.currentAbsoluteOffset);let o=new et(e.span.start,s);return n.push(new wc(o,e,r)),i&&n.push(i),n}getDirectiveBoundTarget(){if(this.next===jl||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:n,end:r}=e.span,s=this.input.substring(n,r);return new Ce(e,s,this.location,this.absoluteOffset+n,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let n=this.expectTemplateBindingKey();this.consumeStatementTerminator();let r=new et(e.span.start,this.currentAbsoluteOffset);return new ji(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 et(e,this.currentAbsoluteOffset);return new ji(s,n,r)}consumeStatementTerminator(){this.consumeOptionalCharacter(kt)||this.consumeOptionalCharacter(zt)}error(e,n=null){this.errors.push(new Vs(e,this.input,this.locationText(n),this.location)),this.skip()}locationText(e=null){return e==null&&(e=this.index),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(kt)&&!e.isOperator("|")&&(this.rparensExpected<=0||!e.isCharacter(rn))&&(this.rbracesExpected<=0||!e.isCharacter(xt))&&(this.rbracketsExpected<=0||!e.isCharacter(bs))&&(!(this.context&ks.Writable)||!e.isOperator("="));)this.next.isError()&&this.errors.push(new Vs(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}},lu=class extends Tr{constructor(){super(...arguments);a(this,"errors",[])}visitPipe(){this.errors.push("pipes")}};function iC(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,l]=i.parts;n+=l.length,r+=o.length}else{let o=i.parts.reduce((l,c)=>l+c.length,0);r+=o,n+=o}e.set(r,n),s++}return e}function oC(t){return t.visit(new cu)}var cu=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 lC(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)}]`}visitKeyedWrite(e,n){return`${e.receiver.visit(this,n)}[${e.key.visit(this,n)}] = ${e.value.visit(this,n)}`}visitLiteralArray(e,n){return`[${e.expressions.map(r=>r.visit(this,n)).join(", ")}]`}visitLiteralMap(e,n){return`{${aC(e.keys.map(r=>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 Re?e.name:`${e.receiver.visit(this,n)}.${e.name}`}visitPropertyWrite(e,n){return e.receiver instanceof Re?`${e.name} = ${e.value.visit(this,n)}`:`${e.receiver.visit(this,n)}.${e.name} = ${e.value.visit(this,n)}`}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)}`}visitASTWithSource(e,n){return e.ast.visit(this,n)}};function aC(t,e){if(t.length!==e.length)throw new Error("Array lengths must match");return t.map((n,r)=>[n,e[r]])}function lC(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 Yo;function Cf(){return Yo||(Yo={},Ho(ve.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Ho(ve.STYLE,["*|style"]),Ho(ve.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),Ho(ve.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),Yo}function Ho(t,e){for(let n of e)Yo[n.toLowerCase()]=t}var cC=new Set(["sandbox","allow","allowfullscreen","referrerpolicy","csp","fetchpriority"]);function uC(t){return cC.has(t.toLowerCase())}var uu=class{},pC="boolean",hC="number",fC="string",dC="object",mC=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%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,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","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","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:|"],Dm=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),gC=Array.from(Dm).reduce((t,[e,n])=>(t.set(e,n),t),new Map),mn=class extends uu{constructor(){super();a(this,"_schema",new Map);a(this,"_eventSchema",new Map);mC.forEach(n=>{let r=new Map,s=new Set,[i,o]=n.split("|"),l=o.split(","),[c,u]=i.split("^");c.split(",").forEach(d=>{this._schema.set(d.toLowerCase(),r),this._eventSchema.set(d.toLowerCase(),s)});let p=u&&this._schema.get(u.toLowerCase());if(p){for(let[d,m]of p)r.set(d,m);for(let d of this._eventSchema.get(u.toLowerCase()))s.add(d)}l.forEach(d=>{if(d.length>0)switch(d[0]){case"*":s.add(d.substring(1));break;case"!":r.set(d.substring(1),pC);break;case"#":r.set(d.substring(1),hC);break;case"%":r.set(d.substring(1),dC);break;default:r.set(d,fC)}})})}hasProperty(n,r,s){if(s.some(o=>o.name===cc.name))return!0;if(n.indexOf("-")>-1){if(Kh(n)||xc(n))return!1;if(s.some(o=>o.name===lc.name))return!0}return(this._schema.get(n.toLowerCase())||this._schema.get("unknown")).has(r)}hasElement(n,r){return r.some(s=>s.name===cc.name)||n.indexOf("-")>-1&&(Kh(n)||xc(n)||r.some(s=>s.name===lc.name))?!0:this._schema.has(n.toLowerCase())}securityContext(n,r,s){s&&(r=this.getMappedPropName(r)),n=n.toLowerCase(),r=r.toLowerCase();let i=Cf()[n+"|"+r];return i||(i=Cf()["*|"+r],i||ve.NONE)}getMappedPropName(n){var r;return(r=Dm.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)})=...
|
|
26
|
-
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=this._schema.get(n.toLowerCase())||this._schema.get("unknown");return Array.from(r.keys()).map(s=>{var i;return(i=gC.get(s))!=null?i:s})}allKnownEventsOfElement(n){var r;return Array.from((r=this._eventSchema.get(n.toLowerCase()))!=null?r:[])}normalizeAnimationStyleProperty(n){return wE(n)}normalizeAnimationStyleValue(n,r,s){let i="",o=s.toString().trim(),l=null;if(yC(n)&&s!==0&&s!=="0")if(typeof s=="number")i="px";else{let c=s.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&c[1].length==0&&(l=`Please provide a CSS unit value for ${r}:${s}`)}return{error:l,value:o+i}}};function yC(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 Q=class{constructor({closedByChildren:e,implicitNamespacePrefix:n,contentType:r=tn.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:o=!1,preventNamespaceInheritance:l=!1,canSelfClose:c=!1}={}){a(this,"closedByChildren",{});a(this,"contentType");a(this,"closedByParent",!1);a(this,"implicitNamespacePrefix");a(this,"isVoid");a(this,"ignoreFirstLf");a(this,"canSelfClose");a(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=l,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}},Af,Es;function _m(t){var e,n;return Es||(Af=new Q({canSelfClose:!0}),Es=Object.assign(Object.create(null),{base:new Q({isVoid:!0}),meta:new Q({isVoid:!0}),area:new Q({isVoid:!0}),embed:new Q({isVoid:!0}),link:new Q({isVoid:!0}),img:new Q({isVoid:!0}),input:new Q({isVoid:!0}),param:new Q({isVoid:!0}),hr:new Q({isVoid:!0}),br:new Q({isVoid:!0}),source:new Q({isVoid:!0}),track:new Q({isVoid:!0}),wbr:new Q({isVoid:!0}),p:new Q({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 Q({closedByChildren:["tbody","tfoot"]}),tbody:new Q({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Q({closedByChildren:["tbody"],closedByParent:!0}),tr:new Q({closedByChildren:["tr"],closedByParent:!0}),td:new Q({closedByChildren:["td","th"],closedByParent:!0}),th:new Q({closedByChildren:["td","th"],closedByParent:!0}),col:new Q({isVoid:!0}),svg:new Q({implicitNamespacePrefix:"svg"}),foreignObject:new Q({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new Q({implicitNamespacePrefix:"math"}),li:new Q({closedByChildren:["li"],closedByParent:!0}),dt:new Q({closedByChildren:["dt","dd"]}),dd:new Q({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Q({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Q({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Q({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Q({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Q({closedByChildren:["optgroup"],closedByParent:!0}),option:new Q({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Q({ignoreFirstLf:!0}),listing:new Q({ignoreFirstLf:!0}),style:new Q({contentType:tn.RAW_TEXT}),script:new Q({contentType:tn.RAW_TEXT}),title:new Q({contentType:{default:tn.ESCAPABLE_RAW_TEXT,svg:tn.PARSABLE_DATA}}),textarea:new Q({contentType:tn.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new mn().allKnownElementNames().forEach(r=>{!Es[r]&&Cc(r)===null&&(Es[r]=new Q({canSelfClose:!1}))})),(n=(e=Es[t])!=null?e:Es[t.toLowerCase()])!=null?n:Af}var If={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"},pu=class{constructor(){a(this,"_placeHolderNameCounts",{});a(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=If[i]||`TAG_${i}`,l=this._generateUniqueName(r?o:`START_${o}`);return this._signatureToName[s]=l,l}getCloseTagPlaceholderName(e){let n=this._hashClosingTag(e);if(this._signatureToName[n])return this._signatureToName[n];let r=e.toUpperCase(),s=If[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(l=>` ${l}=${n[l]}`).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(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;let r=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=r+1,`${e}_${r}`}},vC=new Ua(new fo);function SC(t,e,n,r){let s=new hu(vC,t,e,n,r);return(i,o,l,c,u)=>s.toI18nMessage(i,o,l,c,u)}function EC(t,e){return e}var hu=class{constructor(e,n,r,s,i){a(this,"_expressionParser");a(this,"_interpolationConfig");a(this,"_containerBlocks");a(this,"_retainEmptyTokens");a(this,"_preserveExpressionWhitespace");this._expressionParser=e,this._interpolationConfig=n,this._containerBlocks=r,this._retainEmptyTokens=s,this._preserveExpressionWhitespace=i}toI18nMessage(e,n="",r="",s="",i){let o={isIcu:e.length==1&&e[0]instanceof Hr,icuDepth:0,placeholderRegistry:new pu,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:i||EC},l=_e(this,e,o);return new ft(l,o.placeholderToContent,o.placeholderToMessage,n,r,s)}visitElement(e,n){var u;let r=_e(this,e.children,n),s={};e.attrs.forEach(p=>{s[p.name]=p.value});let i=_m(e.name).isVoid,o=n.placeholderRegistry.getStartTagPlaceholderName(e.name,s,i);n.placeholderToContent[o]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};let l="";i||(l=n.placeholderRegistry.getCloseTagPlaceholderName(e.name),n.placeholderToContent[l]={text:`</${e.name}>`,sourceSpan:(u=e.endSourceSpan)!=null?u:e.sourceSpan});let c=new Cr(e.name,s,o,l,r,i,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return n.visitNodeFn(e,c)}visitAttribute(e,n){let r=e.valueTokens===void 0||e.valueTokens.length===1?new Or(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 Or(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 ga(e.switchValue,e.type,r,e.sourceSpan);if(e.cases.forEach(l=>{r[l.value]=new Vn(l.expression.map(c=>c.visit(this,n)),l.expSourceSpan)}),n.icuDepth--,n.isIcu||n.icuDepth>0){let l=n.placeholderRegistry.getUniquePlaceholder(`VAR_${e.type}`);return s.expressionPlaceholder=l,n.placeholderToContent[l]={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 js(s,i,e.sourceSpan);return n.visitNodeFn(e,o)}visitExpansionCase(e,n){throw new Error("Unreachable code")}visitBlock(e,n){var c;let r=_e(this,e.children,n);if(this._containerBlocks.has(e.name))return new Vn(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 l=new Ar(e.name,s,i,o,r,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return n.visitNodeFn(e,l)}visitBlockParameter(e,n){throw new Error("Unreachable code")}visitLetDeclaration(e,n){return null}_visitTextWithInterpolation(e,n,r,s){let i=[],o=!1;for(let l of e)switch(l.type){case 8:case 17:o=!0;let[c,u,p]=l.parts,d=AC(u)||"INTERPOLATION",m=r.placeholderRegistry.getPlaceholderName(d,u);if(this._preserveExpressionWhitespace)r.placeholderToContent[m]={text:l.parts.join(""),sourceSpan:l.sourceSpan},i.push(new Ji(u,m,l.sourceSpan));else{let g=this.normalizeExpression(l);r.placeholderToContent[m]={text:`${c}${g}${p}`,sourceSpan:l.sourceSpan},i.push(new Ji(g,m,l.sourceSpan))}break;default:if(l.parts[0].length>0||this._retainEmptyTokens){let g=i[i.length-1];g instanceof Or?(g.value+=l.parts[0],g.sourceSpan=new W(g.sourceSpan.start,l.sourceSpan.end,g.sourceSpan.fullStart,g.sourceSpan.details)):i.push(new Or(l.parts[0],l.sourceSpan))}else this._retainEmptyTokens&&i.push(new Or(l.parts[0],l.sourceSpan));break}return o?(wC(i,s),new Vn(i,n)):i[0]}normalizeExpression(e){let n=e.parts[1],r=this._expressionParser.parseBinding(n,e.sourceSpan.start.toString(),e.sourceSpan.start.offset,this._interpolationConfig);return oC(r)}};function wC(t,e){if(e instanceof ft&&(TC(e),e=e.nodes[0]),e instanceof Vn){xC(e.children,t);for(let n=0;n<t.length;n++)t[n].sourceSpan=e.children[n].sourceSpan}}function TC(t){let e=t.nodes;if(e.length!==1||!(e[0]instanceof Vn))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}function xC(t,e){if(t.length!==e.length)throw new Error(`
|
|
17
|
+
${n.toSourceMapGenerator(e,p).toJsComment()}`}let c=cf(...o.concat(i));return this.executeFunction(c,l)}executeFunction(e,n){return e(...n)}},jc=class extends Gc{constructor(n){super();a(this,"refResolver");a(this,"_evalArgNames",[]);a(this,"_evalArgValues",[]);a(this,"_evalExportedVars",[]);this.refResolver=n}createReturnStmt(n){new Ye(new Yt(this._evalExportedVars.map(s=>new Xr(s,Y(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(Ue.Exported)&&this._evalExportedVars.push(n.name),super.visitDeclareVarStmt(n,r)}visitDeclareFunctionStmt(n,r){return n.hasModifier(Ue.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=Sw({reference:r})||"val";this._evalArgNames.push(`jit_${o}_${i}`)}s.print(n,this._evalArgNames[i])}};function Tw(t){return t.isEquivalent(v("use strict").toStmt())}function Kc(t){let e=new Nr;t.providers!==null&&e.set("providers",t.providers),t.imports.length>0&&e.set("imports",pe(t.imports));let n=$(h.defineInjector).callFn([e.toLiteralMap()],void 0,!0),r=xw(t);return{expression:n,type:r,statements:[]}}function xw(t){return new ft($(h.InjectorDeclaration,[new ft(t.type.type)]))}var zc=class{constructor(e){a(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(!this.context.hasOwnProperty(e.name))throw new Error(`No value provided for @angular/core symbol '${e.name}'.`);return this.context[e.name]}},Ys;(function(t){t[t.Inline=0]="Inline",t[t.SideEffect=1]="SideEffect",t[t.Omit=2]="Omit"})(Ys||(Ys={}));var Tn;(function(t){t[t.Global=0]="Global",t[t.Local=1]="Local"})(Tn||(Tn={}));function um(t){let e=[],n=new Nr;if(n.set("type",t.type.value),t.kind===Tn.Global&&t.bootstrap.length>0&&n.set("bootstrap",Ur(t.bootstrap,t.containsForwardDecls)),t.selectorScopeMode===Ys.Inline)t.declarations.length>0&&n.set("declarations",Ur(t.declarations,t.containsForwardDecls)),t.imports.length>0&&n.set("imports",Ur(t.imports,t.containsForwardDecls)),t.exports.length>0&&n.set("exports",Ur(t.exports,t.containsForwardDecls));else if(t.selectorScopeMode===Ys.SideEffect){let i=Iw(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($(h.registerNgModuleType).callFn([t.type.value,t.id]).toStmt()));let r=$(h.defineNgModule).callFn([n.toLiteralMap()],void 0,!0),s=Aw(t);return{expression:r,type:s,statements:e}}function Cw(t){let e=new Nr;return e.set("type",new G(t.type)),t.bootstrap!==void 0&&e.set("bootstrap",new G(t.bootstrap)),t.declarations!==void 0&&e.set("declarations",new G(t.declarations)),t.imports!==void 0&&e.set("imports",new G(t.imports)),t.exports!==void 0&&e.set("exports",new G(t.exports)),t.schemas!==void 0&&e.set("schemas",new G(t.schemas)),t.id!==void 0&&e.set("id",new G(t.id)),$(h.defineNgModule).callFn([e.toLiteralMap()])}function Aw(t){if(t.kind===Tn.Local)return new ft(t.type.value);let{type:e,declarations:n,exports:r,imports:s,includeImportTypes:i,publicDeclarationTypes:o}=t;return new ft($(h.NgModuleDeclaration,[new ft(e.type),o===null?zl(n):Nw(o),i?zl(s):ln,zl(r)]))}function Iw(t){let e=new Nr;if(t.kind===Tn.Global?t.declarations.length>0&&e.set("declarations",Ur(t.declarations,t.containsForwardDecls)):t.declarationsExpression&&e.set("declarations",t.declarationsExpression),t.kind===Tn.Global?t.imports.length>0&&e.set("imports",Ur(t.imports,t.containsForwardDecls)):t.importsExpression&&e.set("imports",t.importsExpression),t.kind===Tn.Global?t.exports.length>0&&e.set("exports",Ur(t.exports,t.containsForwardDecls)):t.exportsExpression&&e.set("exports",t.exportsExpression),t.kind===Tn.Local&&t.bootstrapExpression&&e.set("bootstrap",t.bootstrapExpression),Object.keys(e.values).length===0)return null;let n=new rt($(h.setNgModuleScope),[t.type.value,e.toLiteralMap()]),r=$E(n),s=new xn([],[r.toStmt()]);return new rt(s,[]).toStmt()}function zl(t){let e=t.map(n=>oi(n.type));return t.length>0?Xe(pe(e)):ln}function Nw(t){let e=t.map(n=>oi(n));return t.length>0?Xe(pe(e)):ln}function Xc(t){let e=[];e.push({key:"name",value:v(t.pipeName),quoted:!1}),e.push({key:"type",value:t.type.value,quoted:!1}),e.push({key:"pure",value:v(t.pure),quoted:!1}),t.isStandalone===!1&&e.push({key:"standalone",value:v(!1),quoted:!1});let n=$(h.definePipe).callFn([it(e)],void 0,!0),r=bw(t);return{expression:n,type:r,statements:[]}}function bw(t){return new ft($(h.PipeDeclaration,[ll(t.type.type,t.typeArgumentCount),new ft(new Pe(t.pipeName)),new ft(new Pe(t.isStandalone))]))}var Qs;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(Qs||(Qs={}));var Dw=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"]),_w=["@media","@supports","@document","@layer","@container","@scope","@starting-style"],Yc=class{constructor(){a(this,"_animationDeclarationKeyframesRe",/(^|\s+|,)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g);a(this,"_safeSelector");a(this,"_shouldScopeIndicator")}shimCssText(e,n,r=""){let s=[];e=e.replace(Hw,l=>{var c;if(l.match(Gw))s.push(l);else{let u=l.match(qw);s.push(((c=u==null?void 0:u.join(""))!=null?c:"")+`
|
|
18
|
+
`)}return Zu}),e=this._insertDirectives(e);let i=this._scopeCssText(e,n,r),o=0;return i.replace(Ww,()=>s[o++])}_insertDirectives(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)}_scopeKeyframesRelatedCss(e,n){let r=new Set,s=zo(e,i=>this._scopeLocalKeyframeDeclarations(i,n,r));return zo(s,i=>this._scopeAnimationRule(i,n,r))}_scopeLocalKeyframeDeclarations(e,n,r){return ye(T({},e),{selector:e.selector.replace(/(^@(?:-webkit-)?keyframes(?:\s+))(['"]?)(.+)\2(\s*)$/,(s,i,o,l,c)=>(r.add(hf(l,o)),`${i}${o}${n}_${l}${o}${c}`))})}_scopeAnimationKeyframe(e,n,r){return e.replace(/^(\s*)(['"]?)(.+?)\2(\s*)$/,(s,i,o,l,c)=>(l=`${r.has(hf(l,o))?n+"_":""}${l}`,`${i}${o}${l}${o}${c}`))}_scopeAnimationRule(e,n,r){let s=e.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation\s*:\s*),*([^;]+)/g,(i,o,l)=>o+l.replace(this._animationDeclarationKeyframesRe,(c,u,p="",d,m)=>d?`${u}${this._scopeAnimationKeyframe(`${p}${d}${p}`,n,r)}`:Dw.has(m)?c:`${u}${this._scopeAnimationKeyframe(m,n,r)}`));return s=s.replace(/((?:^|\s+|;)(?:-webkit-)?animation-name(?:\s*):(?:\s*))([^;]+)/g,(i,o,l)=>`${o}${l.split(",").map(c=>this._scopeAnimationKeyframe(c,n,r)).join(",")}`),ye(T({},e),{content:s})}_insertPolyfillDirectivesInCssText(e){return e.replace(Rw,function(...n){return n[2]+"{"})}_insertPolyfillRulesInCssText(e){return e.replace(Pw,(...n)=>{let r=n[0].replace(n[1],"").replace(n[2],"");return n[4]+r})}_scopeCssText(e,n,r){let s=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),n&&(e=this._scopeKeyframesRelatedCss(e,n),e=this._scopeSelectors(e,n,r)),e=e+`
|
|
19
|
+
`+s,e.trim()}_extractUnscopedRulesFromCssText(e){let n="",r;for(uf.lastIndex=0;(r=uf.exec(e))!==null;){let s=r[0].replace(r[2],"").replace(r[1],r[4]);n+=s+`
|
|
20
|
+
|
|
21
|
+
`}return n}_convertColonHost(e){return e.replace(Mw,(n,r,s)=>{if(r){let i=[],o=r.split(",").map(l=>l.trim());for(let l of o){if(!l)break;let c=cr+l.replace(Ia,"")+s;i.push(c)}return i.join(",")}else return cr+s})}_convertColonHostContext(e){let n=e.length,r=0,s=0,i="";for(let o=0;o<n;o++){let l=e[o];if(l===","&&r===0){i+=this._convertColonHostContextInSelectorPart(e.slice(s,o))+",",s=o+1;continue}if(o===n-1){i+=this._convertColonHostContextInSelectorPart(e.slice(s));break}l==="("?r++:l===")"&&r--}return i}_convertColonHostContextInSelectorPart(e){return e.replace(Lw,(n,r)=>{var o;let s=[[]],i;for(;i=Ow.exec(n);){let l=((o=i[1])!=null?o:"").trim().split(",").map(u=>u.trim()).filter(u=>u!==""),c=s.length;nT(s,l.length);for(let u=0;u<l.length;u++)for(let p=0;p<c;p++)s[p+u*c].push(l[u]);n=i[2]}return s.map(l=>tT(l,n,r)).join(", ")})}_convertShadowDOMSelectors(e){return Bw.reduce((n,r)=>n.replace(r," "),e)}_scopeSelectors(e,n,r){return zo(e,s=>{let i=s.selector,o=s.content;return s.selector[0]!=="@"?i=this._scopeSelector({selector:i,scopeSelector:n,hostSelector:r,isParentSelector:!0}):_w.some(l=>s.selector.startsWith(l))?o=this._scopeSelectors(s.content,n,r):(s.selector.startsWith("@font-face")||s.selector.startsWith("@page"))&&(o=this._stripScopingSelectors(s.content)),new po(i,o)})}_stripScopingSelectors(e){return zo(e,n=>{let r=n.selector.replace(pf," ").replace(Xl," ");return new po(r,n.content)})}_scopeSelector({selector:e,scopeSelector:n,hostSelector:r,isParentSelector:s=!1}){let i=/ ?,(?!(?:[^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\))) ?/;return e.split(i).map(o=>o.split(pf)).map(o=>{let[l,...c]=o;return[(p=>this._selectorNeedsScoping(p,n)?this._applySelectorScope({selector:p,scopeSelector:n,hostSelector:r,isParentSelector:s}):p)(l),...c].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+")"+$w,"m")}_applySimpleSelectorScope(e,n,r){if(_s.lastIndex=0,_s.test(e)){let s=`[${r}]`,i=e;for(;i.match(Xl);)i=i.replace(Xl,(o,l)=>l.replace(/([^:\)]*)(:*)(.*)/,(c,u,p,d)=>u+s+p+d));return i.replace(_s,s)}return n+" "+e}_applySelectorScope({selector:e,scopeSelector:n,hostSelector:r,isParentSelector:s}){var w;let i=/\[is=([^\]]*)\]/g;n=n.replace(i,(x,...k)=>k[0]);let o=`[${n}]`,l=x=>{let k=x.trim();if(!k)return x;if(x.includes(cr)){if(k=this._applySimpleSelectorScope(x,n,r),!x.match(Fw)){let[_,H,V,te]=k.match(/([^:]*)(:*)([\s\S]*)/);k=H+o+V+te}}else{let _=x.replace(_s,"");if(_.length>0){let H=_.match(/([^:]*)(:*)([\s\S]*)/);H&&(k=H[1]+o+H[2]+H[3])}}return k},c=x=>{let k="",_=[],H;for(;(H=Ti.exec(x))!==null;){let V=1,te=Ti.lastIndex;for(;te<x.length;){let ae=x[te];if(te++,ae==="("){V++;continue}if(ae===")"){if(V--,V===0)break;continue}}_.push(`${H[0]}${x.slice(Ti.lastIndex,te)}`),Ti.lastIndex=te}return _.join("")===x?k=_.map(V=>{var Be;let[te]=(Be=V.match(Ti))!=null?Be:[],ae=V.slice(te==null?void 0:te.length,-1);ae.includes(cr)&&(this._shouldScopeIndicator=!0);let oe=this._scopeSelector({selector:ae,scopeSelector:n,hostSelector:r});return`${te}${oe})`}).join(""):(this._shouldScopeIndicator=this._shouldScopeIndicator||x.includes(cr),k=this._shouldScopeIndicator?l(x):x),k};s&&(this._safeSelector=new Qc(e),e=this._safeSelector.content());let u="",p=0,d,m=/( |>|\+|~(?!=))(?!([^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\)))\s*/g,g=e.includes(cr);for((s||this._shouldScopeIndicator)&&(this._shouldScopeIndicator=!g);(d=m.exec(e))!==null;){let x=d[1],k=e.slice(p,d.index);if(k.match(/__esc-ph-(\d+)__/)&&((w=e[d.index+1])!=null&&w.match(/[a-fA-F\d]/)))continue;let _=c(k);u+=`${_} ${x} `,p=m.lastIndex}let E=e.substring(p);return u+=c(E),this._safeSelector.restore(u)}_insertPolyfillHostInCssText(e){return e.replace(Vw,pm).replace(Uw,Ia)}},Qc=class{constructor(e){a(this,"placeholders",[]);a(this,"index",0);a(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(/(:nth-[-\w]+)(\([^)]+\))/g,(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})}},kw="(:(where|is)\\()?",Ti=/:(where|is)\(/gi,Rw=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Pw=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,uf=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Ia="-shadowcsshost",pm="-shadowcsscontext",hm="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))",Mw=new RegExp(Ia+hm+"?([^,{]*)","gim"),fm=pm+hm+"?([^{]*)",Lw=new RegExp(`${kw}(${fm})`,"gim"),Ow=new RegExp(fm,"im"),cr=Ia+"-no-combinator",Fw=new RegExp(`${cr}(?![^(]*\\))`,"g"),Xl=/-shadowcsshost-no-combinator([^\s,]*)/,Bw=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],pf=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,$w="([>\\s~+[.,{:][\\s\\S]*)?$",_s=/-shadowcsshost/gim,Uw=/:host/gim,Vw=/:host-context/gim,qw=/\r?\n/g,Hw=/\/\*[\s\S]*?\*\//g,Gw=/\/\*\s*#\s*source(Mapping)?URL=/g,Zu="%COMMENT%",Ww=new RegExp(Zu,"g"),Yl="%BLOCK%",jw=new RegExp(`(\\s*(?:${Zu}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),Kw=new Map([["{","}"]]),dm="%COMMA_IN_PLACEHOLDER%",mm="%SEMI_IN_PLACEHOLDER%",gm="%COLON_IN_PLACEHOLDER%",zw=new RegExp(dm,"g"),Xw=new RegExp(mm,"g"),Yw=new RegExp(gm,"g"),po=class{constructor(e,n){a(this,"selector");a(this,"content");this.selector=e,this.content=n}};function zo(t,e){let n=Zw(t),r=Qw(n,Kw,Yl),s=0,i=r.escapedString.replace(jw,(...o)=>{let l=o[2],c="",u=o[4],p="";u&&u.startsWith("{"+Yl)&&(c=r.blocks[s++],u=u.substring(Yl.length+1),p="{");let d=e(new po(l,c));return`${o[1]}${d.selector}${o[3]}${p}${d.content}${u}`});return eT(i)}var Jc=class{constructor(e,n){a(this,"escapedString");a(this,"blocks");this.escapedString=e,this.blocks=n}};function Qw(t,e,n){let r=[],s=[],i=0,o=0,l=-1,c,u;for(let p=0;p<t.length;p++){let d=t[p];d==="\\"?p++:d===u?(i--,i===0&&(s.push(t.substring(l,p)),r.push(n),o=p,l=-1,c=u=void 0)):d===c?i++:i===0&&e.has(d)&&(c=d,u=e.get(d),i=1,l=p+1,r.push(t.substring(o,l)))}return l!==-1?(s.push(t.substring(l)),r.push(n)):r.push(t.substring(o)),new Jc(r.join(""),s)}var Jw={";":mm,",":dm,":":gm};function Zw(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=Jw[s];i&&(e=`${e.substr(0,r)}${i}${e.substr(r+1)}`,r+=i.length-1)}else(s==="'"||s==='"')&&(n=s)}return e}function eT(t){let e=t.replace(zw,",");return e=e.replace(Xw,";"),e=e.replace(Yw,":"),e}function hf(t,e){return e?t.replace(/((?:^|[^\\])(?:\\\\)*)\\(?=['"])/g,"$1"):t}function tT(t,e,n=""){let r=cr;_s.lastIndex=0;let s=_s.test(e);if(t.length===0)return r+e;let i=[t.pop()||""];for(;t.length>0;){let o=i.length,l=t.pop();for(let c=0;c<o;c++){let u=i[c];i[o*2+c]=u+" "+l,i[o+c]=l+" "+u,i[c]=l+u}}return i.map(o=>s?`${n}${o}${e}`:`${n}${o}${r}${e}, ${n}${o} ${r}${e}`).join(",")}function nT(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 f;(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.Template=5]="Template",t[t.ElementEnd=6]="ElementEnd",t[t.ContainerStart=7]="ContainerStart",t[t.Container=8]="Container",t[t.ContainerEnd=9]="ContainerEnd",t[t.DisableBindings=10]="DisableBindings",t[t.Conditional=11]="Conditional",t[t.EnableBindings=12]="EnableBindings",t[t.Text=13]="Text",t[t.Listener=14]="Listener",t[t.InterpolateText=15]="InterpolateText",t[t.Binding=16]="Binding",t[t.Property=17]="Property",t[t.StyleProp=18]="StyleProp",t[t.ClassProp=19]="ClassProp",t[t.StyleMap=20]="StyleMap",t[t.ClassMap=21]="ClassMap",t[t.Advance=22]="Advance",t[t.Pipe=23]="Pipe",t[t.Attribute=24]="Attribute",t[t.ExtractedAttribute=25]="ExtractedAttribute",t[t.Defer=26]="Defer",t[t.DeferOn=27]="DeferOn",t[t.DeferWhen=28]="DeferWhen",t[t.I18nMessage=29]="I18nMessage",t[t.HostProperty=30]="HostProperty",t[t.Namespace=31]="Namespace",t[t.ProjectionDef=32]="ProjectionDef",t[t.Projection=33]="Projection",t[t.RepeaterCreate=34]="RepeaterCreate",t[t.Repeater=35]="Repeater",t[t.TwoWayProperty=36]="TwoWayProperty",t[t.TwoWayListener=37]="TwoWayListener",t[t.DeclareLet=38]="DeclareLet",t[t.StoreLet=39]="StoreLet",t[t.I18nStart=40]="I18nStart",t[t.I18n=41]="I18n",t[t.I18nEnd=42]="I18nEnd",t[t.I18nExpression=43]="I18nExpression",t[t.I18nApply=44]="I18nApply",t[t.IcuStart=45]="IcuStart",t[t.IcuEnd=46]="IcuEnd",t[t.IcuPlaceholder=47]="IcuPlaceholder",t[t.I18nContext=48]="I18nContext",t[t.I18nAttributes=49]="I18nAttributes",t[t.SourceLocation=50]="SourceLocation"})(f||(f={}));var B;(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.GetCurrentView=8]="GetCurrentView",t[t.RestoreView=9]="RestoreView",t[t.ResetView=10]="ResetView",t[t.PureFunctionExpr=11]="PureFunctionExpr",t[t.PureFunctionParameterExpr=12]="PureFunctionParameterExpr",t[t.PipeBinding=13]="PipeBinding",t[t.PipeBindingVariadic=14]="PipeBindingVariadic",t[t.SafePropertyRead=15]="SafePropertyRead",t[t.SafeKeyedRead=16]="SafeKeyedRead",t[t.SafeInvokeFunction=17]="SafeInvokeFunction",t[t.SafeTernaryExpr=18]="SafeTernaryExpr",t[t.EmptyExpr=19]="EmptyExpr",t[t.AssignTemporaryExpr=20]="AssignTemporaryExpr",t[t.ReadTemporaryExpr=21]="ReadTemporaryExpr",t[t.SlotLiteralExpr=22]="SlotLiteralExpr",t[t.ConditionalCase=23]="ConditionalCase",t[t.ConstCollected=24]="ConstCollected",t[t.TwoWayBindingSet=25]="TwoWayBindingSet"})(B||(B={}));var Mt;(function(t){t[t.None=0]="None",t[t.AlwaysInline=1]="AlwaysInline"})(Mt||(Mt={}));var Ke;(function(t){t[t.Context=0]="Context",t[t.Identifier=1]="Identifier",t[t.SavedView=2]="SavedView",t[t.Alias=3]="Alias"})(Ke||(Ke={}));var bt;(function(t){t[t.Normal=0]="Normal",t[t.TemplateDefinitionBuilder=1]="TemplateDefinitionBuilder"})(bt||(bt={}));var U;(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.Animation=6]="Animation",t[t.TwoWayProperty=7]="TwoWayProperty"})(U||(U={}));var Js;(function(t){t[t.Creation=0]="Creation",t[t.Postproccessing=1]="Postproccessing"})(Js||(Js={}));var ss;(function(t){t[t.I18nText=0]="I18nText",t[t.I18nAttribute=1]="I18nAttribute"})(ss||(ss={}));var me;(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"})(me||(me={}));var nt;(function(t){t[t.HTML=0]="HTML",t[t.SVG=1]="SVG",t[t.Math=2]="Math"})(nt||(nt={}));var fe;(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"})(fe||(fe={}));var dr;(function(t){t[t.RootI18n=0]="RootI18n",t[t.Icu=1]="Icu",t[t.Attr=2]="Attr"})(dr||(dr={}));var Nt;(function(t){t[t.NgTemplate=0]="NgTemplate",t[t.Structural=1]="Structural",t[t.Block=2]="Block"})(Nt||(Nt={}));var ym=Symbol("ConsumesSlot"),ep=Symbol("DependsOnSlotContext"),li=Symbol("ConsumesVars"),pl=Symbol("UsesVarOffset"),Rn={[ym]:!0,numSlotsUsed:1},Bt={[ep]:!0},_t={[li]:!0};function ci(t){return t[ym]===!0}function Na(t){return t[ep]===!0}function Ql(t){return t[li]===!0}function ff(t){return t[pl]===!0}function fn(t){return T({kind:f.Statement,statement:t},X)}function hr(t,e,n,r){return T({kind:f.Variable,xref:t,variable:e,initializer:n,flags:r},X)}var X={debugListId:null,prev:null,next:null};function rT(t,e,n){return T(T(T({kind:f.InterpolateText,target:t,interpolation:e,sourceSpan:n},Bt),_t),X)}var Le=class{constructor(e,n,r){a(this,"strings");a(this,"expressions");a(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 is(t,e,n,r,s,i,o,l,c,u,p){return T({kind:f.Binding,bindingKind:e,target:t,name:n,expression:r,unit:s,securityContext:i,isTextAttribute:o,isStructuralTemplateAttribute:l,templateKind:c,i18nContext:null,i18nMessage:u,sourceSpan:p},X)}function sT(t,e,n,r,s,i,o,l,c,u){return T(T(T({kind:f.Property,target:t,name:e,expression:n,isAnimationTrigger:r,securityContext:s,sanitizer:null,isStructuralTemplateAttribute:i,templateKind:o,i18nContext:l,i18nMessage:c,sourceSpan:u},Bt),_t),X)}function iT(t,e,n,r,s,i,o,l,c){return T(T(T({kind:f.TwoWayProperty,target:t,name:e,expression:n,securityContext:r,sanitizer:null,isStructuralTemplateAttribute:s,templateKind:i,i18nContext:o,i18nMessage:l,sourceSpan:c},Bt),_t),X)}function oT(t,e,n,r,s){return T(T(T({kind:f.StyleProp,target:t,name:e,expression:n,unit:r,sourceSpan:s},Bt),_t),X)}function aT(t,e,n,r){return T(T(T({kind:f.ClassProp,target:t,name:e,expression:n,sourceSpan:r},Bt),_t),X)}function lT(t,e,n){return T(T(T({kind:f.StyleMap,target:t,expression:e,sourceSpan:n},Bt),_t),X)}function cT(t,e,n){return T(T(T({kind:f.ClassMap,target:t,expression:e,sourceSpan:n},Bt),_t),X)}function uT(t,e,n,r,s,i,o,l,c,u){return T(T(T({kind:f.Attribute,target:t,namespace:e,name:n,expression:r,securityContext:s,sanitizer:null,isTextAttribute:i,isStructuralTemplateAttribute:o,templateKind:l,i18nContext:null,i18nMessage:c,sourceSpan:u},Bt),_t),X)}function pT(t,e){return T({kind:f.Advance,delta:t,sourceSpan:e},X)}function vm(t,e,n,r){return T(T(T({kind:f.Conditional,target:t,test:e,conditions:n,processed:null,sourceSpan:r,contextValue:null},X),Bt),_t)}function hT(t,e,n,r){return T(T({kind:f.Repeater,target:t,targetSlot:e,collection:n,sourceSpan:r},X),Bt)}function fT(t,e,n,r){return T(T(T({kind:f.DeferWhen,target:t,expr:e,modifier:n,sourceSpan:r},X),Bt),_t)}function Sm(t,e,n,r,s,i,o,l,c,u,p){return T(T(T({kind:f.I18nExpression,context:t,target:e,i18nOwner:n,handle:r,expression:s,icuPlaceholder:i,i18nPlaceholder:o,resolutionTime:l,usage:c,name:u,sourceSpan:p},X),_t),Bt)}function dT(t,e,n){return T({kind:f.I18nApply,owner:t,handle:e,sourceSpan:n},X)}function mT(t,e,n,r){return T(T(T({kind:f.StoreLet,target:t,declaredName:e,value:n,sourceSpan:r},Bt),_t),X)}function kn(t){return t instanceof ge}var ge=class extends ce{constructor(e=null){super(null,e)}},et=class t extends ge{constructor(n){super();a(this,"name");a(this,"kind",B.LexicalRead);this.name=n}visitExpression(n,r){}isEquivalent(n){return this.name===n.name}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.name)}},ba=class t extends ge{constructor(n,r,s){super();a(this,"target");a(this,"targetSlot");a(this,"offset");a(this,"kind",B.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)}},Ed,wd,Td,ho=class t extends(Td=ge,wd=li,Ed=ep,Td){constructor(n,r,s){super();a(this,"target");a(this,"value");a(this,"sourceSpan");a(this,"kind",B.StoreLet);a(this,wd,!0);a(this,Ed,!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)}},fo=class t extends ge{constructor(n,r){super();a(this,"target");a(this,"targetSlot");a(this,"kind",B.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)}},Jn=class t extends ge{constructor(n){super();a(this,"view");a(this,"kind",B.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)}},Zc=class t extends ge{constructor(n){super();a(this,"view");a(this,"kind",B.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)}},Da=class t extends ge{constructor(){super();a(this,"kind",B.NextContext);a(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}},eu=class t extends ge{constructor(){super();a(this,"kind",B.GetCurrentView)}visitExpression(){}isEquivalent(n){return n instanceof t}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t}},_a=class t extends ge{constructor(n){super();a(this,"view");a(this,"kind",B.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 ce?this.view.clone():this.view)}},tu=class t extends ge{constructor(n){super();a(this,"expr");a(this,"kind",B.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())}},ka=class t extends ge{constructor(n,r){super();a(this,"target");a(this,"value");a(this,"kind",B.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)}},Gn=class t extends ge{constructor(n){super();a(this,"xref");a(this,"kind",B.ReadVariable);a(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}},xd,Cd,Ad,os=class t extends(Ad=ge,Cd=li,xd=pl,Ad){constructor(n,r){super();a(this,"kind",B.PureFunctionExpr);a(this,Cd,!0);a(this,xd,!0);a(this,"varOffset",null);a(this,"body");a(this,"args");a(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|ue.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(l=>l.clone()));return n.fn=(o=(i=this.fn)==null?void 0:i.clone())!=null?o:null,n.varOffset=this.varOffset,n}},Zs=class t extends ge{constructor(n){super();a(this,"index");a(this,"kind",B.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)}},Id,Nd,bd,as=class t extends(bd=ge,Nd=li,Id=pl,bd){constructor(n,r,s,i){super();a(this,"target");a(this,"targetSlot");a(this,"name");a(this,"args");a(this,"kind",B.PipeBinding);a(this,Nd,!0);a(this,Id,!0);a(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}},Dd,_d,kd,Ra=class t extends(kd=ge,_d=li,Dd=pl,kd){constructor(n,r,s,i,o){super();a(this,"target");a(this,"targetSlot");a(this,"name");a(this,"args");a(this,"numArgs");a(this,"kind",B.PipeBindingVariadic);a(this,_d,!0);a(this,Dd,!0);a(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}},ei=class t extends ge{constructor(n,r){super();a(this,"receiver");a(this,"name");a(this,"kind",B.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)}},ti=class t extends ge{constructor(n,r,s){super(s);a(this,"receiver");a(this,"index");a(this,"kind",B.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)}},br=class t extends ge{constructor(n,r){super();a(this,"receiver");a(this,"args");a(this,"kind",B.SafeInvokeFunction);this.receiver=n,this.args=r}visitExpression(n,r){this.receiver.visitExpression(n,r);for(let s of this.args)s.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){this.receiver=P(this.receiver,n,r);for(let s=0;s<this.args.length;s++)this.args[s]=P(this.args[s],n,r)}clone(){return new t(this.receiver.clone(),this.args.map(n=>n.clone()))}},ni=class t extends ge{constructor(n,r){super();a(this,"guard");a(this,"expr");a(this,"kind",B.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())}},mo=class t extends ge{constructor(){super(...arguments);a(this,"kind",B.EmptyExpr)}visitExpression(n,r){}isEquivalent(n){return n instanceof t}isConstant(){return!0}clone(){return new t}transformInternalExpressions(){}},dn=class t extends ge{constructor(n,r){super();a(this,"expr");a(this,"xref");a(this,"kind",B.AssignTemporaryExpr);a(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}},Zn=class t extends ge{constructor(n){super();a(this,"xref");a(this,"kind",B.ReadTemporaryExpr);a(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}},Pa=class t extends ge{constructor(n){super();a(this,"slot");a(this,"kind",B.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(){}},Ma=class t extends ge{constructor(n,r,s,i=null){super();a(this,"expr");a(this,"target");a(this,"targetSlot");a(this,"alias");a(this,"kind",B.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))}},go=class t extends ge{constructor(n){super();a(this,"expr");a(this,"kind",B.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)}};function lt(t,e){Ve(t,(n,r)=>(e(n,r),n),ue.None)}var ue;(function(t){t[t.None=0]="None",t[t.InChildOperation=1]="InChildOperation"})(ue||(ue={}));function Jl(t,e,n){for(let r=0;r<t.expressions.length;r++)t.expressions[r]=P(t.expressions[r],e,n)}function Ve(t,e,n){switch(t.kind){case f.StyleProp:case f.StyleMap:case f.ClassProp:case f.ClassMap:case f.Binding:t.expression instanceof Le?Jl(t.expression,e,n):t.expression=P(t.expression,e,n);break;case f.Property:case f.HostProperty:case f.Attribute:t.expression instanceof Le?Jl(t.expression,e,n):t.expression=P(t.expression,e,n),t.sanitizer=t.sanitizer&&P(t.sanitizer,e,n);break;case f.TwoWayProperty:t.expression=P(t.expression,e,n),t.sanitizer=t.sanitizer&&P(t.sanitizer,e,n);break;case f.I18nExpression:t.expression=P(t.expression,e,n);break;case f.InterpolateText:Jl(t.interpolation,e,n);break;case f.Statement:La(t.statement,e,n);break;case f.Variable:t.initializer=P(t.initializer,e,n);break;case f.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 f.Listener:case f.TwoWayListener:for(let r of t.handlerOps)Ve(r,e,n|ue.InChildOperation);break;case f.ExtractedAttribute:t.expression=t.expression&&P(t.expression,e,n),t.trustedValueFn=t.trustedValueFn&&P(t.trustedValueFn,e,n);break;case f.RepeaterCreate:if(t.trackByOps===null)t.track=P(t.track,e,n);else for(let r of t.trackByOps)Ve(r,e,n|ue.InChildOperation);t.trackByFn!==null&&(t.trackByFn=P(t.trackByFn,e,n));break;case f.Repeater:t.collection=P(t.collection,e,n);break;case f.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 f.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 f.DeferWhen:t.expr=P(t.expr,e,n);break;case f.StoreLet:t.value=P(t.value,e,n);break;case f.Advance:case f.Container:case f.ContainerEnd:case f.ContainerStart:case f.DeferOn:case f.DisableBindings:case f.Element:case f.ElementEnd:case f.ElementStart:case f.EnableBindings:case f.I18n:case f.I18nApply:case f.I18nContext:case f.I18nEnd:case f.I18nStart:case f.IcuEnd:case f.IcuStart:case f.Namespace:case f.Pipe:case f.Projection:case f.ProjectionDef:case f.Template:case f.Text:case f.I18nAttributes:case f.IcuPlaceholder:case f.DeclareLet:case f.SourceLocation:break;default:throw new Error(`AssertionError: transformExpressionsInOp doesn't handle ${f[t.kind]}`)}}function P(t,e,n){if(t instanceof ge)t.transformInternalExpressions(e,n);else if(t instanceof le)t.lhs=P(t.lhs,e,n),t.rhs=P(t.rhs,e,n);else if(t instanceof Sr)t.expr=P(t.expr,e,n);else if(t instanceof gt)t.receiver=P(t.receiver,e,n);else if(t instanceof In)t.receiver=P(t.receiver,e,n),t.index=P(t.index,e,n);else if(t instanceof zr)t.receiver=P(t.receiver,e,n),t.value=P(t.value,e,n);else if(t instanceof Fs)t.receiver=P(t.receiver,e,n),t.index=P(t.index,e,n),t.value=P(t.value,e,n);else if(t instanceof rt){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 yt)for(let r=0;r<t.entries.length;r++)t.entries[r]=P(t.entries[r],e,n);else if(t instanceof Yt)for(let r=0;r<t.entries.length;r++)t.entries[r].value=P(t.entries[r].value,e,n);else if(t instanceof cn)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 Kr)t.expr=P(t.expr,e,n);else if(t instanceof $i)t.value=P(t.value,e,n);else if(t instanceof qi)for(let r=0;r<t.expressions.length;r++)t.expressions[r]=P(t.expressions[r],e,n);else if(t instanceof Us)t.condition=P(t.condition,e,n);else if(t instanceof Ui)t.tag=P(t.tag,e,n),t.template.expressions=t.template.expressions.map(r=>P(r,e,n));else if(t instanceof Wn)if(Array.isArray(t.body))for(let r=0;r<t.body.length;r++)La(t.body[r],e,n);else t.body=P(t.body,e,n);else if(!(t instanceof G)){if(t instanceof $s)for(let r=0;r<t.expressions.length;r++)t.expressions[r]=P(t.expressions[r],e,n);else if(!(t instanceof Ot||t instanceof Qe||t instanceof Pe))throw new Error(`Unhandled expression kind: ${t.constructor.name}`)}return e(t,n)}function La(t,e,n){if(t instanceof Ft)t.expr=P(t.expr,e,n);else if(t instanceof Ye)t.value=P(t.value,e,n);else if(t instanceof st)t.value!==void 0&&(t.value=P(t.value,e,n));else if(t instanceof Wi){t.condition=P(t.condition,e,n);for(let r of t.trueCase)La(r,e,n);for(let r of t.falseCase)La(r,e,n)}else throw new Error(`Unhandled statement kind: ${t.constructor.name}`)}function Em(t){return t instanceof Pe&&typeof t.value=="string"}var we=class we{constructor(){a(this,"debugListId",we.nextListId++);a(this,"head",{kind:f.ListEnd,next:null,prev:null,debugListId:this.debugListId});a(this,"tail",{kind:f.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}we.assertIsNotEnd(e),we.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)we.assertIsNotEnd(s),we.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;){we.assertIsOwned(e,this.debugListId);let n=e.next;yield e,e=n}}*reversed(){let e=this.tail.prev;for(;e!==this.head;){we.assertIsOwned(e,this.debugListId);let n=e.prev;yield e,e=n}}static replace(e,n){we.assertIsNotEnd(e),we.assertIsNotEnd(n),we.assertIsOwned(e),we.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){we.remove(e);return}we.assertIsNotEnd(e),we.assertIsOwned(e);let r=e.debugListId;e.debugListId=null;for(let u of n)we.assertIsNotEnd(u),we.assertIsUnowned(u);let{prev:s,next:i}=e;e.prev=null,e.next=null;let o=s;for(let u of n)this.assertIsUnowned(u),u.debugListId=r,o.next=u,u.prev=o,u.next=null,o=u;let l=n[0],c=o;s!==null&&(s.next=l,l.prev=s),i!==null&&(i.prev=c,c.next=i)}static remove(e){we.assertIsNotEnd(e),we.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)this.insertBefore(r,n);return}if(we.assertIsOwned(n),n.prev===null)throw new Error("AssertionError: illegal operation on list start");we.assertIsNotEnd(e),we.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(we.assertIsOwned(n),n.next===null)throw new Error("AssertionError: illegal operation on list end");we.assertIsNotEnd(e),we.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: ${f[e.kind]}`)}static assertIsOwned(e,n){if(e.debugListId===null)throw new Error(`AssertionError: illegal operation on unowned node: ${f[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===f.ListEnd)throw new Error("AssertionError: illegal operation on list head or tail")}};a(we,"nextListId",0);var A=we,Dt=class{constructor(){a(this,"slot",null)}},gT=new Set([f.Element,f.ElementStart,f.Container,f.ContainerStart,f.Template,f.RepeaterCreate]);function Dr(t){return gT.has(t.kind)}function yT(t,e,n,r,s,i){return T(T({kind:f.ElementStart,xref:e,tag:t,handle:new Dt,attributes:null,localRefs:[],nonBindable:!1,namespace:n,i18nPlaceholder:r,startSourceSpan:s,wholeSourceSpan:i},Rn),X)}function hl(t,e,n,r,s,i,o,l){return T(T({kind:f.Template,xref:t,templateKind:e,attributes:null,tag:n,handle:new Dt,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:l},Rn),X)}function vT(t,e,n,r,s,i,o,l,c,u){return ye(T(T(T({kind:f.RepeaterCreate,attributes:null,xref:t,handle:new Dt,emptyView:e,track:r,trackByFn:null,trackByOps:null,tag:n,emptyTag:i,emptyAttributes:null,functionNameSuffix:"For",namespace:nt.HTML,nonBindable:!1,localRefs:[],decls:null,vars:null,varNames:s,usesComponentInstance:!1,i18nPlaceholder:o,emptyI18nPlaceholder:l,startSourceSpan:c,wholeSourceSpan:u},Rn),X),_t),{numSlotsUsed:e===null?2:3})}function ST(t,e){return T({kind:f.ElementEnd,xref:t,sourceSpan:e},X)}function ET(t){return T({kind:f.DisableBindings,xref:t},X)}function wT(t){return T({kind:f.EnableBindings,xref:t},X)}function wm(t,e,n,r){return T(T({kind:f.Text,xref:t,handle:new Dt,initialValue:e,icuPlaceholder:n,sourceSpan:r},Rn),X)}function tp(t,e,n,r,s,i,o,l,c){let u=new A;return u.push(s),T({kind:f.Listener,target:t,targetSlot:e,tag:r,hostListener:l,name:n,handlerOps:u,handlerFnName:null,consumesDollarEvent:!1,isAnimationListener:i!==null,animationPhase:i,eventTarget:o,sourceSpan:c},X)}function Tm(t,e,n,r,s,i){let o=new A;return o.push(s),T({kind:f.TwoWayListener,target:t,targetSlot:e,tag:r,name:n,handlerOps:o,handlerFnName:null,sourceSpan:i},X)}function xm(t,e,n){return T(T({kind:f.Pipe,xref:t,handle:e,name:n},X),Rn)}function TT(t){return T({kind:f.Namespace,active:t},X)}function xT(t){return T({kind:f.ProjectionDef,def:t},X)}function CT(t,e,n,r,s){return ye(T(T({kind:f.Projection,xref:t,handle:new Dt,selector:e,i18nPlaceholder:n,fallbackView:r,projectionSlotIndex:0,attributes:null,localRefs:[],sourceSpan:s},X),Rn),{numSlotsUsed:r===null?1:2})}function Kt(t,e,n,r,s,i,o,l){return T({kind:f.ExtractedAttribute,target:t,bindingKind:e,namespace:n,name:r,expression:s,i18nContext:i,i18nMessage:o,securityContext:l,trustedValueFn:null},X)}function AT(t,e,n,r,s,i){return ye(T(T({kind:f.Defer,xref:t,handle:new Dt,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},X),Rn),{numSlotsUsed:2})}function or(t,e,n,r){return T({kind:f.DeferOn,defer:t,trigger:e,modifier:n,sourceSpan:r},X)}function IT(t,e,n){return T(T({kind:f.DeclareLet,xref:t,declaredName:e,sourceSpan:n,handle:new Dt},Rn),X)}function NT(t,e,n,r,s,i,o,l){return T({kind:f.I18nMessage,xref:t,i18nContext:e,i18nBlock:n,message:r,messagePlaceholder:s,params:i,postprocessingParams:o,needsPostprocessing:l,subMessages:[]},X)}function fl(t,e,n,r){return T(T({kind:f.I18nStart,xref:t,handle:new Dt,root:n!=null?n:t,message:e,messageIndex:null,subTemplateIndex:null,context:null,sourceSpan:r},X),Rn)}function dl(t,e){return T({kind:f.I18nEnd,xref:t,sourceSpan:e},X)}function bT(t,e,n,r){return T({kind:f.IcuStart,xref:t,message:e,messagePlaceholder:n,context:null,sourceSpan:r},X)}function DT(t){return T({kind:f.IcuEnd,xref:t},X)}function _T(t,e,n){return T({kind:f.IcuPlaceholder,xref:t,name:e,strings:n,expressionPlaceholders:[]},X)}function Zl(t,e,n,r,s){if(n===null&&t!==dr.Attr)throw new Error("AssertionError: i18nBlock must be provided for non-attribute contexts.");return T({kind:f.I18nContext,contextKind:t,xref:e,i18nBlock:n,message:r,sourceSpan:s,params:new Map,postprocessingParams:new Map},X)}function Cm(t,e,n){return T(T({kind:f.I18nAttributes,xref:t,handle:e,target:n,i18nAttributesConfig:null},X),Rn)}function kT(t,e){return T({kind:f.SourceLocation,templatePath:t,locations:e},X)}function RT(t,e,n,r,s,i){return T(T({kind:f.HostProperty,name:t,expression:e,isAnimationTrigger:n,i18nContext:r,securityContext:s,sanitizer:null,sourceSpan:i},_t),X)}var Am="CTX_REF_MARKER",R;(function(t){t[t.Tmpl=0]="Tmpl",t[t.Host=1]="Host",t[t.Both=2]="Both"})(R||(R={}));var Oa=class{constructor(e,n,r){a(this,"componentName");a(this,"pool");a(this,"compatibility");a(this,"kind",R.Both);a(this,"nextXrefId",0);this.componentName=e,this.pool=n,this.compatibility=r}allocateXrefId(){return this.nextXrefId++}},yo=class extends Oa{constructor(n,r,s,i,o,l,c,u,p){super(n,r,s);a(this,"relativeContextFilePath");a(this,"i18nUseExternalIds");a(this,"deferMeta");a(this,"allDeferrableDepsFn");a(this,"relativeTemplatePath");a(this,"enableDebugLocations");a(this,"kind",R.Tmpl);a(this,"fnSuffix","Template");a(this,"root");a(this,"views",new Map);a(this,"contentSelectors",null);a(this,"consts",[]);a(this,"constsInitializers",[]);this.relativeContextFilePath=i,this.i18nUseExternalIds=o,this.deferMeta=l,this.allDeferrableDepsFn=c,this.relativeTemplatePath=u,this.enableDebugLocations=p,this.root=new Cn(this,this.allocateXrefId(),null),this.views.set(this.root.xref,this.root)}allocateView(n){let r=new Cn(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}},Fa=class{constructor(e){a(this,"xref");a(this,"create",new A);a(this,"update",new A);a(this,"fnName",null);a(this,"vars",null);this.xref=e}*ops(){for(let e of this.create)if(yield e,e.kind===f.Listener||e.kind===f.TwoWayListener)for(let n of e.handlerOps)yield n;else if(e.kind===f.RepeaterCreate&&e.trackByOps!==null)for(let n of e.trackByOps)yield n;for(let e of this.update)yield e}},Cn=class extends Fa{constructor(n,r,s){super(r);a(this,"job");a(this,"parent");a(this,"contextVariables",new Map);a(this,"aliases",new Set);a(this,"decls",null);this.job=n,this.parent=s}},Ba=class extends Oa{constructor(n,r,s){super(n,r,s);a(this,"kind",R.Host);a(this,"fnSuffix","HostBindings");a(this,"root");this.root=new nu(this)}get units(){return[this.root]}},nu=class extends Fa{constructor(n){super(0);a(this,"job");a(this,"attributes",null);this.job=n}};function PT(t){for(let e of t.units)for(let n of e.ops())Ve(n,MT,ue.None)}function MT(t){if(t instanceof rt&&t.fn instanceof et&&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 LT(t){let e=new Map;for(let n of t.units)for(let r of n.create)r.kind===f.I18nContext&&e.set(r.xref,r);for(let n of t.units)for(let r of n.update)r.kind===f.I18nExpression&&OT(e,r)&&A.insertAfter(dT(r.i18nOwner,r.handle,null),r)}function OT(t,e){var s;if(((s=e.next)==null?void 0:s.kind)!==f.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 FT(t){for(let e of t.units){let n=e.update.head,r=[],s=null;for(let i of e.create){if(i.kind===f.I18nStart)s={blockXref:i.xref,lastSlotConsumer:i.xref};else if(i.kind===f.I18nEnd){for(let o of r)o.target=s.lastSlotConsumer,A.insertBefore(o,n);r.length=0,s=null}if(ci(i))for(s!==null&&(s.lastSlotConsumer=i.xref);n.next!==null;){if(s!==null&&n.kind===f.I18nExpression&&n.usage===ss.I18nText&&n.i18nOwner===s.blockXref){let o=n;n=n.next,A.remove(o),r.push(o);continue}if(Na(n)&&n.target!==i.xref)break;n=n.next}}}}function np(t){let e=new Map;for(let n of t.create)ci(n)&&(e.set(n.xref,n),n.kind===f.RepeaterCreate&&n.emptyView!==null&&e.set(n.emptyView,n));return e}function BT(t){for(let e of t.units){let n=np(e);for(let r of e.ops())switch(r.kind){case f.Attribute:$T(e,r,n);break;case f.Property:if(!r.isAnimationTrigger){let s;r.i18nMessage!==null&&r.templateKind===null?s=U.I18n:r.isStructuralTemplateAttribute?s=U.Template:s=U.Property,A.insertBefore(Kt(r.target,s,null,r.name,null,null,null,r.securityContext),Cs(n,r.target))}break;case f.TwoWayProperty:A.insertBefore(Kt(r.target,U.TwoWayProperty,null,r.name,null,null,null,r.securityContext),Cs(n,r.target));break;case f.StyleProp:case f.ClassProp:e.job.compatibility===bt.TemplateDefinitionBuilder&&r.expression instanceof mo&&A.insertBefore(Kt(r.target,U.Property,null,r.name,null,null,null,ve.STYLE),Cs(n,r.target));break;case f.Listener:if(!r.isAnimationListener){let s=Kt(r.target,U.Property,null,r.name,null,null,null,ve.NONE);if(t.kind===R.Host){if(t.compatibility)break;e.create.push(s)}else A.insertBefore(s,Cs(n,r.target))}break;case f.TwoWayListener:if(t.kind!==R.Host){let s=Kt(r.target,U.Property,null,r.name,null,null,null,ve.NONE);A.insertBefore(s,Cs(n,r.target))}break}}}function Cs(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 $T(t,e,n){if(e.expression instanceof Le)return;let r=e.isTextAttribute||e.expression.isConstant();if(t.job.compatibility===bt.TemplateDefinitionBuilder&&r&&(r=e.isTextAttribute),r){let s=Kt(e.target,e.isStructuralTemplateAttribute?U.Template:U.Attribute,e.namespace,e.name,e.expression,e.i18nContext,e.i18nMessage,e.securityContext);if(t.job.kind===R.Host)t.create.push(s);else{let i=Cs(n,e.target);A.insertBefore(s,i)}A.remove(e)}}function UT(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 VT(t){let e=new Map;for(let n of t.units)for(let r of n.create)Dr(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.ops())if(r.kind===f.Binding)switch(r.bindingKind){case U.Attribute:if(r.name==="ngNonBindable"){A.remove(r);let s=UT(e,r.target);s.nonBindable=!0}else{let[s,i]=hn(r.name);A.replace(r,uT(r.target,s,i,r.expression,r.securityContext,r.isTextAttribute,r.isStructuralTemplateAttribute,r.templateKind,r.i18nMessage,r.sourceSpan))}break;case U.Property:case U.Animation:t.kind===R.Host?A.replace(r,RT(r.name,r.expression,r.bindingKind===U.Animation,r.i18nContext,r.securityContext,r.sourceSpan)):A.replace(r,sT(r.target,r.name,r.expression,r.bindingKind===U.Animation,r.securityContext,r.isStructuralTemplateAttribute,r.templateKind,r.i18nContext,r.i18nMessage,r.sourceSpan));break;case U.TwoWayProperty:if(!(r.expression instanceof ce))throw new Error(`Expected value of two-way property binding "${r.name}" to be an expression`);A.replace(r,iT(r.target,r.name,r.expression,r.securityContext,r.isStructuralTemplateAttribute,r.templateKind,r.i18nContext,r.i18nMessage,r.sourceSpan));break;case U.I18n:case U.ClassName:case U.StyleProperty:throw new Error(`Unhandled binding of kind ${U[r.bindingKind]}`)}}var qT=new Set([h.attribute,h.classProp,h.element,h.elementContainer,h.elementContainerEnd,h.elementContainerStart,h.elementEnd,h.elementStart,h.hostProperty,h.i18nExp,h.listener,h.listener,h.property,h.styleProp,h.stylePropInterpolate1,h.stylePropInterpolate2,h.stylePropInterpolate3,h.stylePropInterpolate4,h.stylePropInterpolate5,h.stylePropInterpolate6,h.stylePropInterpolate7,h.stylePropInterpolate8,h.stylePropInterpolateV,h.syntheticHostListener,h.syntheticHostProperty,h.templateCreate,h.twoWayProperty,h.twoWayListener,h.declareLet]),HT=256;function GT(t){for(let e of t.units)df(e.create),df(e.update)}function df(t){let e=null;for(let n of t){if(n.kind!==f.Statement||!(n.statement instanceof Ft)){e=null;continue}if(!(n.statement.expr instanceof rt)||!(n.statement.expr.fn instanceof Qe)){e=null;continue}let r=n.statement.expr.fn.value;if(!qT.has(r)){e=null;continue}if(e!==null&&e.instruction===r&&e.length<HT){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++,A.remove(n)}else e={op:n,instruction:r,expression:n.statement.expr,length:1}}}function WT(t){for(let e of t.units)for(let n of e.update)n.kind===f.Attribute&&n.expression instanceof Le&&n.expression.strings.length===2&&n.expression.strings.every(s=>s==="")&&(n.expression=n.expression.expressions[0])}function jT(t){for(let e of t.units)for(let n of e.ops()){if(n.kind!==f.Conditional)continue;let r,s=n.conditions.findIndex(o=>o.expr===null);if(s>=0){let o=n.conditions.splice(s,1)[0].targetSlot;r=new Pa(o)}else r=v(-1);let i=n.test==null?null:new dn(n.test,t.allocateXrefId());for(let o=n.conditions.length-1;o>=0;o--){let l=n.conditions[o];if(l.expr!==null){if(i!==null){let c=o===0?i:new Zn(i.xref);l.expr=new le(b.Identical,c,l.expr)}else if(l.alias!==null){let c=t.allocateXrefId();l.expr=new dn(l.expr,c),n.contextValue=new Zn(c)}r=new cn(l.expr,new Pa(l.targetSlot),r)}}n.processed=r,n.conditions=[]}}var KT=new Map([["&&",b.And],[">",b.Bigger],[">=",b.BiggerEquals],["|",b.BitwiseOr],["&",b.BitwiseAnd],["/",b.Divide],["==",b.Equals],["===",b.Identical],["<",b.Lower],["<=",b.LowerEquals],["-",b.Minus],["%",b.Modulo],["*",b.Multiply],["!=",b.NotEquals],["!==",b.NotIdentical],["??",b.NullishCoalesce],["||",b.Or],["+",b.Plus]]);function Im(t){var n;let e=new Map([["svg",nt.SVG],["math",nt.Math]]);return t===null?nt.HTML:(n=e.get(t))!=null?n:nt.HTML}function zT(t){let e=new Map([["svg",nt.SVG],["math",nt.Math]]);for(let[n,r]of e.entries())if(r===t)return n;return null}function XT(t,e){return e===nt.HTML?t:`:${zT(e)}:${t}`}function ri(t){return Array.isArray(t)?pe(t.map(ri)):v(t)}function YT(t){let e=new Map;for(let n of t.units)for(let r of n.create)if(r.kind===f.ExtractedAttribute){let s=e.get(r.target)||new ru(t.compatibility);e.set(r.target,s),s.add(r.bindingKind,r.name,r.expression,r.namespace,r.trustedValueFn),A.remove(r)}if(t instanceof yo)for(let n of t.units)for(let r of n.create)if(r.kind==f.Projection){let s=e.get(r.xref);if(s!==void 0){let i=su(s);i.entries.length>0&&(r.attributes=i)}}else Dr(r)&&(r.attributes=mf(t,e,r.xref),r.kind===f.RepeaterCreate&&r.emptyView!==null&&(r.emptyAttributes=mf(t,e,r.emptyView)));else if(t instanceof Ba)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=su(r);s.entries.length>0&&(t.root.attributes=s)}}function mf(t,e,n){let r=e.get(n);if(r!==void 0){let s=su(r);if(s.entries.length>0)return t.addConst(s)}return null}var Ss=Object.freeze([]),ru=class{constructor(e){a(this,"compatibility");a(this,"known",new Map);a(this,"byKind",new Map);a(this,"propertyBindings",null);a(this,"projectAs",null);this.compatibility=e}get attributes(){var e;return(e=this.byKind.get(U.Attribute))!=null?e:Ss}get classes(){var e;return(e=this.byKind.get(U.ClassName))!=null?e:Ss}get styles(){var e;return(e=this.byKind.get(U.StyleProperty))!=null?e:Ss}get bindings(){var e;return(e=this.propertyBindings)!=null?e:Ss}get template(){var e;return(e=this.byKind.get(U.Template))!=null?e:Ss}get i18n(){var e;return(e=this.byKind.get(U.I18n))!=null?e:Ss}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(!(this.compatibility===bt.TemplateDefinitionBuilder&&(e===U.Attribute||e===U.ClassName||e===U.StyleProperty))&&this.isKnown(e,n))return;if(n==="ngProjectAs"){if(r===null||!(r instanceof Pe)||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 l=this.arrayFor(e);if(l.push(...QT(s,n)),e===U.Attribute||e===U.StyleProperty){if(r===null)throw Error("Attribute, i18n attribute, & style element attributes must have a value");if(i!==null){if(!Em(r))throw Error("AssertionError: extracted attribute value should be string literal");l.push(Vd(i,new $s([new Vi(r.value)],[]),void 0,r.sourceSpan))}else l.push(r)}}arrayFor(e){var n;return e===U.Property||e===U.TwoWayProperty?((n=this.propertyBindings)!=null||(this.propertyBindings=[]),this.propertyBindings):(this.byKind.has(e)||this.byKind.set(e,[]),this.byKind.get(e))}};function QT(t,e){let n=v(e);return t?[v(0),v(t),n]:[n]}function su({attributes:t,bindings:e,classes:n,i18n:r,projectAs:s,styles:i,template:o}){let l=[...t];if(s!==null){let c=Hu(s)[0];l.push(v(5),ri(c))}return n.length>0&&l.push(v(1),...n),i.length>0&&l.push(v(2),...i),e.length>0&&l.push(v(3),...e),o.length>0&&l.push(v(4),...o),r.length>0&&l.push(v(6),...r),pe(l)}function JT(t){let e=new Map;for(let n of t.units){for(let r of n.create)r.kind===f.I18nAttributes&&e.set(r.target,r);for(let r of n.update)switch(r.kind){case f.Property:case f.Attribute:if(r.i18nContext===null||!(r.expression instanceof Le))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 l=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(Sm(r.i18nContext,s.target,s.xref,s.handle,l,null,r.expression.i18nPlaceholders[o],Js.Creation,ss.I18nAttribute,r.name,r.sourceSpan))}A.replaceWithMany(r,i);break}}}function ZT(t){var e;for(let n of t.units)for(let r of n.create)if(r.kind===f.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 ex(t){let e=new Map;for(let s of t.units)for(let i of s.ops())switch(i.kind){case f.Binding:case f.Property:case f.Attribute:case f.ExtractedAttribute:if(i.i18nMessage===null)continue;if(!e.has(i.i18nMessage)){let o=Zl(dr.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 f.I18nStart:if(i.xref===i.root){let o=Zl(dr.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===f.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 f.I18nStart:r=i;break;case f.I18nEnd:r=null;break;case f.IcuStart:if(r===null)throw Error("AssertionError: Unexpected ICU outside of an i18n block.");if(i.message.id!==r.message.id){let o=Zl(dr.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=dr.Icu;break}}function tx(t){let e=new Map;for(let n of t.units)for(let r of n.update.reversed())if(r.kind===f.Binding&&r.isTextAttribute){let s=e.get(r.target)||new Set;s.has(r.name)&&t.compatibility===bt.TemplateDefinitionBuilder&&(r.name==="style"||r.name==="class")&&A.remove(r),s.add(r.name),e.set(r.target,s)}}function nx(t){for(let e of t.units)for(let n of e.create)n.kind===f.Defer&&(n.placeholderMinimumTime!==null&&(n.placeholderConfig=new go(ri([n.placeholderMinimumTime]))),(n.loadingMinimumTime!==null||n.loadingAfterTime!==null)&&(n.loadingConfig=new go(ri([n.loadingMinimumTime,n.loadingAfterTime]))))}function rx(t){let e=new Map;function n(s){if(e.has(s.xref))return e.get(s.xref);let i=new iu;for(let o of s.create)if(!(!Dr(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 l of o.localRefs)l.target===""&&i.targets.set(l.name,{xref:o.xref,slot:o.handle})}return e.set(s.xref,i),i}function r(s,i,o){switch(i.trigger.kind){case fe.Idle:case fe.Never:case fe.Immediate:case fe.Timer:return;case fe.Hover:case fe.Interaction:case fe.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 u=t.views.get(o);if(u==null)throw new Error("AssertionError: could not find placeholder view for defer on trigger");for(let p of u.create)if(ci(p)&&(Dr(p)||p.kind===f.Projection)){i.trigger.targetXref=p.xref,i.trigger.targetView=o,i.trigger.targetSlotViewSteps=-1,i.trigger.targetSlot=p.handle;return}return}let l=o!==null?t.views.get(o):s,c=o!==null?-1:0;for(;l!==null;){let u=n(l);if(u.targets.has(i.trigger.targetName)){let{xref:p,slot:d}=u.targets.get(i.trigger.targetName);i.trigger.targetXref=p,i.trigger.targetView=l.xref,i.trigger.targetSlotViewSteps=c,i.trigger.targetSlot=d;return}l=l.parent!==null?t.views.get(l.parent):null,c++}break;default:throw new Error(`Trigger kind ${i.trigger.kind} not handled`)}}for(let s of t.units){let i=new Map;for(let o of s.create)switch(o.kind){case f.Defer:i.set(o.xref,o);break;case f.DeferOn:let l=i.get(o.defer);r(s,o,o.modifier==="hydrate"?l.mainView:l.placeholderView);break}}}var iu=class{constructor(){a(this,"targets",new Map)}},sx=new Map([[f.ElementEnd,[f.ElementStart,f.Element]],[f.ContainerEnd,[f.ContainerStart,f.Container]],[f.I18nEnd,[f.I18nStart,f.I18n]]]),ix=new Set([f.Pipe]);function ox(t){for(let e of t.units)for(let n of e.create){let r=sx.get(n.kind);if(r===void 0)continue;let[s,i]=r,o=n.prev;for(;o!==null&&ix.has(o.kind);)o=o.prev;o!==null&&o.kind===s&&(o.kind=i,A.remove(n))}}function ax(t){for(let e of t.units)for(let n of e.ops())Ve(n,r=>fx(r,{job:t}),ue.None),Ve(n,dx,ue.None)}var $L=[rt,yt,Yt,br,as].map(t=>t.constructor.name);function qt(t){return t instanceof Sr?qt(t.expr):t instanceof le?qt(t.lhs)||qt(t.rhs):t instanceof cn?t.falseCase&&qt(t.falseCase)?!0:qt(t.condition)||qt(t.trueCase):t instanceof Us?qt(t.condition):t instanceof dn?qt(t.expr):t instanceof gt?qt(t.receiver):t instanceof In?qt(t.receiver)||qt(t.index):t instanceof rt||t instanceof yt||t instanceof Yt||t instanceof br||t instanceof as}function lx(t){let e=new Set;return P(t,n=>(n instanceof dn&&e.add(n.xref),n),ue.None),e}function cx(t,e,n){return P(t,r=>{if(r instanceof dn&&e.has(r.xref)){let s=new Zn(r.xref);return n.job.compatibility===bt.TemplateDefinitionBuilder?new dn(s,s.xref):s}return r},ue.None),t}function Es(t,e,n){let r;if(qt(t)){let s=n.job.allocateXrefId();r=[new dn(t,s),new Zn(s)]}else r=[t,t.clone()],cx(r[1],lx(r[0]),n);return new ni(r[0],e(r[1]))}function ux(t){return t instanceof ei||t instanceof ti||t instanceof br}function px(t){return t instanceof gt||t instanceof In||t instanceof rt}function Nm(t){return ux(t)||px(t)}function hx(t){if(Nm(t)&&t.receiver instanceof ni){let e=t.receiver;for(;e.expr instanceof ni;)e=e.expr;return e}return null}function fx(t,e){if(!Nm(t))return t;let n=hx(t);if(n){if(t instanceof rt)return n.expr=n.expr.callFn(t.args),t.receiver;if(t instanceof gt)return n.expr=n.expr.prop(t.name),t.receiver;if(t instanceof In)return n.expr=n.expr.key(t.index),t.receiver;if(t instanceof br)return n.expr=Es(n.expr,r=>r.callFn(t.args),e),t.receiver;if(t instanceof ei)return n.expr=Es(n.expr,r=>r.prop(t.name),e),t.receiver;if(t instanceof ti)return n.expr=Es(n.expr,r=>r.key(t.index),e),t.receiver}else{if(t instanceof br)return Es(t.receiver,r=>r.callFn(t.args),e);if(t instanceof ei)return Es(t.receiver,r=>r.prop(t.name),e);if(t instanceof ti)return Es(t.receiver,r=>r.key(t.index),e)}return t}function dx(t){return t instanceof ni?new cn(new le(b.Equals,t.guard,Vs),Vs,t.expr):t}var gf="\uFFFD",mx="#",gx="*",yx="/",vx=":",Sx="[",Ex="]",wx="|";function Tx(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 f.I18nContext:let l=xx(t,o);i.create.push(l),e.set(o.xref,l),r.set(o.xref,o);break;case f.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 f.IcuStart:s=o,A.remove(o);let l=r.get(o.context);if(l.contextKind!==dr.Icu)continue;let c=n.get(l.i18nBlock);if(c.context===l.xref)continue;let u=n.get(c.root),p=e.get(u.context);if(p===void 0)throw Error("AssertionError: ICU sub-message should belong to a root message.");let d=e.get(l.xref);d.messagePlaceholder=o.messagePlaceholder,p.subMessages.push(d.xref);break;case f.IcuEnd:s=null,A.remove(o);break;case f.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,v(Cx(o))),A.remove(o);break}}function xx(t,e,n){let r=yf(e.params),s=yf(e.postprocessingParams),i=[...e.params.values()].some(o=>o.length>1);return NT(t.allocateXrefId(),e.xref,e.i18nBlock,e.message,n!=null?n:null,r,s,i)}function Cx(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(ks);return t.strings.flatMap((n,r)=>[n,e[r]||""]).join("")}function yf(t){let e=new Map;for(let[n,r]of t){let s=Ax(r);s!==null&&e.set(n,v(s))}return e}function Ax(t){if(t.length===0)return null;let e=t.map(n=>ks(n));return e.length===1?e[0]:`${Sx}${e.join(wx)}${Ex}`}function ks(t){if(t.flags&me.ElementTag&&t.flags&me.TemplateTag){if(typeof t.value!="object")throw Error("AssertionError: Expected i18n param value to have an element and template slot");let s=ks(ye(T({},t),{value:t.value.element,flags:t.flags&~me.TemplateTag})),i=ks(ye(T({},t),{value:t.value.template,flags:t.flags&~me.ElementTag}));return t.flags&me.OpenTag&&t.flags&me.CloseTag?`${i}${s}${i}`:t.flags&me.CloseTag?`${s}${i}`:`${i}${s}`}if(t.flags&me.OpenTag&&t.flags&me.CloseTag)return`${ks(ye(T({},t),{flags:t.flags&~me.CloseTag}))}${ks(ye(T({},t),{flags:t.flags&~me.OpenTag}))}`;if(t.flags===me.None)return`${t.value}`;let e="",n="";t.flags&me.ElementTag?e=mx:t.flags&me.TemplateTag&&(e=gx),e!==""&&(n=t.flags&me.CloseTag?yx:"");let r=t.subTemplateIndex===null?"":`${vx}${t.subTemplateIndex}`;return`${gf}${n}${e}${t.value}${r}${gf}`}function Ix(t){for(let e of t.units){let n=new Map;for(let s of e.create){if(ci(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(Na(s)?i=s:lt(s,l=>{i===null&&Na(l)&&(i=l)}),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 l=o-r;if(l<0)throw new Error("AssertionError: slot counter should never need to move backwards");A.insertBefore(pT(l,i.sourceSpan),s),r=o}}}}function Nx(t){let e=t.compatibility===bt.TemplateDefinitionBuilder,n=[],r=0;for(let s of t.units)for(let i of s.create)i.kind===f.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:Hu(o));s=t.pool.getConstLiteral(ri(i),e)}t.contentSelectors=t.pool.getConstLiteral(ri(n),e),t.root.create.prepend([xT(s)])}}function bx(t){Ni(t.root,null)}function Ni(t,e){let n=Dx(t,e);for(let r of t.create)switch(r.kind){case f.Template:Ni(t.job.views.get(r.xref),n);break;case f.Projection:r.fallbackView!==null&&Ni(t.job.views.get(r.fallbackView),n);break;case f.RepeaterCreate:Ni(t.job.views.get(r.xref),n),r.emptyView&&Ni(t.job.views.get(r.emptyView),n),r.trackByOps!==null&&r.trackByOps.prepend(ra(t,n,!1));break;case f.Listener:case f.TwoWayListener:r.handlerOps.prepend(ra(t,n,!0));break}t.update.prepend(ra(t,n,!1))}function Dx(t,e){let n={view:t.xref,viewContextVariable:{kind:Ke.Context,name:null,view:t.xref},contextVariables:new Map,aliases:t.aliases,references:[],letDeclarations:[],parent:e};for(let r of t.contextVariables.keys())n.contextVariables.set(r,{kind:Ke.Identifier,name:null,identifier:r,local:!1});for(let r of t.create)switch(r.kind){case f.ElementStart:case f.Template:if(!Array.isArray(r.localRefs))throw new Error("AssertionError: expected localRefs to be an array");for(let s=0;s<r.localRefs.length;s++)n.references.push({name:r.localRefs[s].name,targetId:r.xref,targetSlot:r.handle,offset:s,variable:{kind:Ke.Identifier,name:null,identifier:r.localRefs[s].name,local:!1}});break;case f.DeclareLet:n.letDeclarations.push({targetId:r.xref,targetSlot:r.handle,variable:{kind:Ke.Identifier,name:null,identifier:r.declaredName,local:!1}});break}return n}function ra(t,e,n){let r=[];e.view!==t.xref&&r.push(hr(t.job.allocateXrefId(),e.viewContextVariable,new Da,Mt.None));let s=t.job.views.get(e.view);for(let[i,o]of s.contextVariables){let l=new Jn(e.view),c=o===Am?l:new gt(l,o);r.push(hr(t.job.allocateXrefId(),e.contextVariables.get(i),c,Mt.None))}for(let i of s.aliases)r.push(hr(t.job.allocateXrefId(),i,i.expression.clone(),Mt.AlwaysInline));for(let i of e.references)r.push(hr(t.job.allocateXrefId(),i.variable,new ba(i.targetId,i.targetSlot,i.offset),Mt.None));if(e.view!==t.xref||n)for(let i of e.letDeclarations)r.push(hr(t.job.allocateXrefId(),i.variable,new fo(i.targetId,i.targetSlot),Mt.None));return e.parent!==null&&r.push(...ra(t,e.parent,!1)),r}function _x(t){for(let e of t.units)for(let n of e.ops())Ve(n,r=>r instanceof go?v(t.addConst(r.expr)):r,ue.None)}var vf="style.",Sf="class.",kx="style!",Ef="class!",wf="!important";function Rx(t){for(let e of t.root.update)if(e.kind===f.Binding&&e.bindingKind===U.Property)if(e.name.endsWith(wf)&&(e.name=e.name.substring(0,e.name.length-wf.length)),e.name.startsWith(vf)){e.bindingKind=U.StyleProperty,e.name=e.name.substring(vf.length),Px(e.name)||(e.name=Mx(e.name));let{property:n,suffix:r}=ec(e.name);e.name=n,e.unit=r}else e.name.startsWith(kx)?(e.bindingKind=U.StyleProperty,e.name="style"):e.name.startsWith(Sf)?(e.bindingKind=U.ClassName,e.name=ec(e.name.substring(Sf.length)).property):e.name.startsWith(Ef)&&(e.bindingKind=U.ClassName,e.name=ec(e.name.substring(Ef.length)).property)}function Px(t){return t.startsWith("--")}function Mx(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function ec(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 ou(t,e=!1){return it(Object.keys(t).map(n=>({key:n,quoted:e,value:t[n]})))}var au=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`{${Ao(e,!1)}}`}},Lx=new au;function bm(t){return t.visit(Lx)}var _r=class{constructor(e,n){a(this,"sourceSpan");a(this,"i18n");this.sourceSpan=e,this.i18n=n}},ls=class extends _r{constructor(n,r,s,i){super(r,i);a(this,"value");a(this,"tokens");this.value=n,this.tokens=s}visit(n,r){return n.visitText(this,r)}},Gr=class extends _r{constructor(n,r,s,i,o,l){super(i,l);a(this,"switchValue");a(this,"type");a(this,"cases");a(this,"switchValueSourceSpan");this.switchValue=n,this.type=r,this.cases=s,this.switchValueSourceSpan=o}visit(n,r){return n.visitExpansion(this,r)}},$a=class{constructor(e,n,r,s,i){a(this,"value");a(this,"expression");a(this,"sourceSpan");a(this,"valueSourceSpan");a(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)}},lu=class extends _r{constructor(n,r,s,i,o,l,c){super(s,c);a(this,"name");a(this,"value");a(this,"keySpan");a(this,"valueSpan");a(this,"valueTokens");this.name=n,this.value=r,this.keySpan=i,this.valueSpan=o,this.valueTokens=l}visit(n,r){return n.visitAttribute(this,r)}},Ht=class extends _r{constructor(n,r,s,i,o,l=null,c){super(i,c);a(this,"name");a(this,"attrs");a(this,"children");a(this,"startSourceSpan");a(this,"endSourceSpan");this.name=n,this.attrs=r,this.children=s,this.startSourceSpan=o,this.endSourceSpan=l}visit(n,r){return n.visitElement(this,r)}},vo=class{constructor(e,n){a(this,"value");a(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e,n){return e.visitComment(this,n)}},Wt=class extends _r{constructor(n,r,s,i,o,l,c=null,u){super(i,u);a(this,"name");a(this,"parameters");a(this,"children");a(this,"nameSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");this.name=n,this.parameters=r,this.children=s,this.nameSpan=o,this.startSourceSpan=l,this.endSourceSpan=c}visit(n,r){return n.visitBlock(this,r)}},Ua=class{constructor(e,n){a(this,"expression");a(this,"sourceSpan");this.expression=e,this.sourceSpan=n}visit(e,n){return e.visitBlockParameter(this,n)}},Va=class{constructor(e,n,r,s,i){a(this,"name");a(this,"value");a(this,"sourceSpan");a(this,"nameSpan");a(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 _e(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 qa={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:`
|
|
22
|
+
`,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"},Dm="\uE500";qa.ngsp=Dm;var Pi=class extends j{constructor(n,r,s){super(s,n);a(this,"tokenType");this.tokenType=r}},cu=class{constructor(e,n,r){a(this,"tokens");a(this,"errors");a(this,"nonNormalizedIcuExpressions");this.tokens=e,this.errors=n,this.nonNormalizedIcuExpressions=r}};function Ox(t,e,n,r={}){let s=new uu(new rs(t,e),n,r);return s.tokenize(),new cu(Wx(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}var Fx=/\r\n?/g;function xi(t){return`Unexpected character "${t===Ze?"EOF":String.fromCharCode(t)}"`}function Tf(t){return`Unknown entity "${t}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function Bx(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var Ha;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(Ha||(Ha={}));var Mi=class{constructor(e){a(this,"error");this.error=e}},uu=class{constructor(e,n,r){a(this,"_getTagDefinition");a(this,"_cursor");a(this,"_tokenizeIcu");a(this,"_interpolationConfig");a(this,"_leadingTriviaCodePoints");a(this,"_currentTokenStart",null);a(this,"_currentTokenType",null);a(this,"_expansionCaseStack",[]);a(this,"_inInterpolation",!1);a(this,"_preserveLineEndings");a(this,"_i18nNormalizeLineEndingsInICUs");a(this,"_tokenizeBlocks");a(this,"_tokenizeLet");a(this,"tokens",[]);a(this,"errors",[]);a(this,"nonNormalizedIcuExpressions",[]);var i,o;this._getTagDefinition=n,this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._interpolationConfig=r.interpolationConfig||jt,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map(l=>l.codePointAt(0)||0);let s=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new pu(e,s):new Ga(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;try{this._cursor.init()}catch(l){this.handleError(l)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(Fx,`
|
|
23
|
+
`)}tokenize(){for(;this._cursor.peek()!==Ze;){let e=this._cursor.clone();try{this._attemptCharCode(bs)?this._attemptCharCode(qc)?this._attemptCharCode(Ms)?this._consumeCdata(e):this._attemptCharCode(Aa)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(Fn)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeLet&&this._cursor.peek()===Kl&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(Kl)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(At)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(n){this.handleError(n)}}this._beginToken(33),this._endToken([])}_getBlockName(){let e=!1,n=this._cursor.clone();return this._attemptCharCodeUntilFn(r=>co(r)?!e:Gx(r)?(e=!0,!1):!0),this._cursor.getChars(n).trim()}_consumeBlockStart(e){this._beginToken(24,e);let n=this._endToken([this._getBlockName()]);if(this._cursor.peek()===Hn)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(He),this._attemptCharCode(sn))this._attemptCharCodeUntilFn(He);else{n.type=28;return}this._attemptCharCode(nn)?(this._beginToken(25),this._endToken([])):n.type=28}_consumeBlockEnd(e){this._beginToken(26,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Af);this._cursor.peek()!==sn&&this._cursor.peek()!==Ze;){this._beginToken(27);let e=this._cursor.clone(),n=null,r=0;for(;this._cursor.peek()!==Pt&&this._cursor.peek()!==Ze||n!==null;){let s=this._cursor.peek();if(s===Ls)this._cursor.advance();else if(s===n)n=null;else if(n===null&&ki(s))n=s;else if(s===Hn&&n===null)r++;else if(s===sn&&n===null){if(r===0)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Af)}}_consumeLetDeclaration(e){if(this._beginToken(29,e),co(this._cursor.peek()))this._attemptCharCodeUntilFn(He);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=32;return}let n=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(He),!this._attemptCharCode(Vr)){n.type=32;return}this._attemptCharCodeUntilFn(s=>He(s)&&!Ju(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===Pt?(this._beginToken(31),this._endToken([]),this._cursor.advance()):(n.type=32,n.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),n=!1;return this._attemptCharCodeUntilFn(r=>uo(r)||r===cl||r===Io||n&&En(r)?(n=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(30,e);this._cursor.peek()!==Ze;){let n=this._cursor.peek();if(n===Pt)break;ki(n)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(r=>r===Ls?(this._cursor.advance(),!1):r===n)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(qx(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===At){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 Pi("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(n));if(this._currentTokenType===null)throw new Pi("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));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 Pi(e,this._currentTokenType,n);return this._currentTokenStart=null,this._currentTokenType=null,new Mi(r)}handleError(e){if(e instanceof So&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof Mi)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return Hx(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let n=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(xi(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(xi(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(xi(this._cursor.peek()),this._cursor.getSpan(r))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(){let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_consumeEntity(e){this._beginToken(9);let n=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(em)){let r=this._attemptCharCode(lm)||this._attemptCharCode(hw),s=this._cursor.clone();if(this._attemptCharCodeUntilFn(Ux),this._cursor.peek()!=Pt){this._cursor.advance();let o=r?Ha.HEX:Ha.DEC;throw this._createError(Bx(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.fromCharCode(o),this._cursor.getChars(n)])}catch(o){throw this._createError(Tf(this._cursor.getChars(n)),this._cursor.getSpan())}}else{let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(Vx),this._cursor.peek()!=Pt)this._beginToken(e,n),this._cursor=r,this._endToken(["&"]);else{let s=this._cursor.getChars(r);this._cursor.advance();let i=qa[s];if(!i)throw this._createError(Tf(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()===Ca?(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(Aa),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e);let n=this._cursor.clone();this._attemptUntilChar(lr);let r=this._cursor.getChars(n);this._cursor.advance(),this._endToken([r])}_consumePrefixAndName(){let e=this._cursor.clone(),n="";for(;this._cursor.peek()!==pr&&!$x(this._cursor.peek());)this._cursor.advance();let r;this._cursor.peek()===pr?(n=this._cursor.getChars(e),this._cursor.advance(),r=this._cursor.clone()):r=e,this._requireCharCodeUntilFn(xf,n===""?0:1);let s=this._cursor.getChars(r);return[n,s]}_consumeTagOpen(e){let n,r,s;try{if(!uo(this._cursor.peek()))throw this._createError(xi(this._cursor.peek()),this._cursor.getSpan(e));for(s=this._consumeTagOpenStart(e),r=s.parts[0],n=s.parts[1],this._attemptCharCodeUntilFn(He);this._cursor.peek()!==Fn&&this._cursor.peek()!==lr&&this._cursor.peek()!==bs&&this._cursor.peek()!==Ze;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(He),this._attemptCharCode(Vr)&&(this._attemptCharCodeUntilFn(He),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(He);this._consumeTagOpenEnd()}catch(o){if(o instanceof Mi){s?s.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw o}let i=this._getTagDefinition(n).getContentType(r);i===tn.RAW_TEXT?this._consumeRawTextWithTagClose(r,n,!1):i===tn.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,n,!0)}_consumeRawTextWithTagClose(e,n,r){this._consumeRawText(r,()=>!this._attemptCharCode(bs)||!this._attemptCharCode(Fn)||(this._attemptCharCodeUntilFn(He),!this._attemptStrCaseInsensitive(n))?!1:(this._attemptCharCodeUntilFn(He),this._attemptCharCode(lr))),this._beginToken(3),this._requireCharCodeUntilFn(s=>s===lr,3),this._cursor.advance(),this._endToken([e,n])}_consumeTagOpenStart(e){this._beginToken(0,e);let n=this._consumePrefixAndName();return this._endToken(n)}_consumeAttributeName(){let e=this._cursor.peek();if(e===lo||e===ao)throw this._createError(xi(e),this._cursor.getSpan());this._beginToken(14);let n=this._consumePrefixAndName();this._endToken(n)}_consumeAttributeValue(){if(this._cursor.peek()===lo||this._cursor.peek()===ao){let e=this._cursor.peek();this._consumeQuote(e);let n=()=>this._cursor.peek()===e;this._consumeWithInterpolation(16,17,n,n),this._consumeQuote(e)}else{let e=()=>xf(this._cursor.peek());this._consumeWithInterpolation(16,17,e,e)}}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(Fn)?2:1;this._beginToken(e),this._requireCharCode(lr),this._endToken([])}_consumeTagClose(e){this._beginToken(3,e),this._attemptCharCodeUntilFn(He);let n=this._consumePrefixAndName();this._attemptCharCodeUntilFn(He),this._requireCharCode(lr),this._endToken(n)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(nn),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);let e=this._readUntil(zt),n=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([n]);else{let s=this._endToken([e]);n!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(zt),this._attemptCharCodeUntilFn(He),this._beginToken(7);let r=this._readUntil(zt);this._endToken([r]),this._requireCharCode(zt),this._attemptCharCodeUntilFn(He)}_consumeExpansionCaseStart(){this._beginToken(20);let e=this._readUntil(nn).trim();this._endToken([e]),this._attemptCharCodeUntilFn(He),this._beginToken(21),this._requireCharCode(nn),this._endToken([]),this._attemptCharCodeUntilFn(He),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(At),this._endToken([]),this._attemptCharCodeUntilFn(He),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(At),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,n,r,s){this._beginToken(e);let i=[];for(;!r();){let o=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(""))],o),i.length=0,this._consumeInterpolation(n,o,s),this._beginToken(e)):this._cursor.peek()===Ca?(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(this._interpolationConfig.start);let i=this._cursor.clone(),o=null,l=!1;for(;this._cursor.peek()!==Ze&&(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(this._interpolationConfig.end)){s.push(this._getProcessedChars(i,c)),s.push(this._interpolationConfig.end),this._endToken(s);return}else this._attemptStr("//")&&(l=!0);let u=this._cursor.peek();this._cursor.advance(),u===Ls?this._cursor.advance():u===o?o=null:!l&&o===null&&ki(u)&&(o=u)}s.push(this._getProcessedChars(i,this._cursor)),this._endToken(s)}_getProcessedChars(e,n){return this._processCarriageReturns(n.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===Ze||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===At&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._cursor.peek()===Kl||this._cursor.peek()===At))}_isTagStart(){if(this._cursor.peek()===bs){let e=this._cursor.clone();e.advance();let n=e.peek();if(ts<=n&&n<=No||ai<=n&&n<=ul||n===Fn||n===qc)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]===21}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===19}isExpansionFormStart(){if(this._cursor.peek()!==nn)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),n=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!n}return!0}};function He(t){return!co(t)||t===Ze}function xf(t){return co(t)||t===lr||t===bs||t===Fn||t===lo||t===ao||t===Vr||t===Ze}function $x(t){return(t<ts||No<t)&&(t<ai||ul<t)&&(t<Yu||t>nm)}function Ux(t){return t===Pt||t===Ze||!gw(t)}function Vx(t){return t===Pt||t===Ze||!uo(t)}function qx(t){return t!==At}function Hx(t,e){return Cf(t)===Cf(e)}function Cf(t){return t>=ts&&t<=No?t-ts+ai:t}function Gx(t){return uo(t)||En(t)||t===Io}function Af(t){return t!==Pt&&He(t)}function Wx(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===16&&s.type===16?(n.parts[0]+=s.parts[0],n.sourceSpan.end=s.sourceSpan.end):(n=s,e.push(n))}return e}var Ga=class t{constructor(e,n){a(this,"state");a(this,"file");a(this,"input");a(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 W(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 So('Unexpected character "EOF"',this);let n=this.charAt(e.offset);n===Hr?(e.line++,e.column=0):Ju(n)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?Ze:this.charAt(e.offset)}locationFromCursor(e){return new ns(e.file,e.state.offset,e.state.line,e.state.column)}},pu=class t extends Ga{constructor(n,r){var e=(...HL)=>(super(...HL),a(this,"internalState"),this);n instanceof t?(e(n),this.internalState=T({},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()===Ls)if(this.internalState=T({},this.state),this.advanceState(this.internalState),n()===rm)this.state.peek=Hr;else if(n()===sm)this.state.peek=Xu;else if(n()===am)this.state.peek=Qd;else if(n()===im)this.state.peek=zu;else if(n()===dw)this.state.peek=ow;else if(n()===Qu)this.state.peek=Jd;else if(n()===om)if(this.advanceState(this.internalState),n()===nn){this.advanceState(this.internalState);let r=this.clone(),s=0;for(;n()!==At;)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()===lm){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(af(n())){let r="",s=0,i=this.clone();for(;af(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 Ju(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 So("Invalid hexadecimal escape sequence",n);return i}},So=class{constructor(e,n){a(this,"msg");a(this,"cursor");this.msg=e,this.cursor=n}},Je=class t extends j{constructor(n,r,s){super(r,s);a(this,"elementName");this.elementName=n}static create(n,r,s){return new t(n,r,s)}},Wa=class{constructor(e,n){a(this,"rootNodes");a(this,"errors");this.rootNodes=e,this.errors=n}},hu=class{constructor(e){a(this,"getTagDefinition");this.getTagDefinition=e}parse(e,n,r){let s=Ox(e,n,this.getTagDefinition,r),i=new fu(s.tokens,this.getTagDefinition);return i.build(),new Wa(i.rootNodes,s.errors.concat(i.errors))}},fu=class t{constructor(e,n){a(this,"tokens");a(this,"getTagDefinition");a(this,"_index",-1);a(this,"_peek");a(this,"_containerStack",[]);a(this,"rootNodes",[]);a(this,"errors",[]);this.tokens=e,this.getTagDefinition=n,this._advance()}build(){for(;this._peek.type!==33;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?this._consumeEndTag(this._advance()):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===19?this._consumeExpansion(this._advance()):this._peek.type===24?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===26?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===28?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===32?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let e of this._containerStack)e instanceof Wt&&this.errors.push(Je.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}_advanceIf(e){return this._peek.type===e?this._advance():null}_consumeCdata(e){this._consumeText(this._advance()),this._advanceIf(13)}_consumeComment(e){let n=this._advanceIf(7),r=this._advanceIf(11),s=n!=null?n.parts[0].trim():null,i=r==null?e.sourceSpan:new W(e.sourceSpan.start,r.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new vo(s,i))}_consumeExpansion(e){let n=this._advance(),r=this._advance(),s=[];for(;this._peek.type===20;){let o=this._parseExpansionCase();if(!o)return;s.push(o)}if(this._peek.type!==23){this.errors.push(Je.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let i=new W(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Gr(n.parts[0],r.parts[0],s,i,n.sourceSpan)),this._advance()}_parseExpansionCase(){let e=this._advance();if(this._peek.type!==21)return this.errors.push(Je.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:33,parts:[],sourceSpan:s.sourceSpan});let i=new t(r,this.getTagDefinition);if(i.build(),i.errors.length>0)return this.errors=this.errors.concat(i.errors),null;let o=new W(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart),l=new W(n.sourceSpan.start,s.sourceSpan.end,n.sourceSpan.fullStart);return new $a(e.parts[0],i.rootNodes,o,e.sourceSpan,l)}_collectExpansionExpTokens(e){let n=[],r=[21];for(;;){if((this._peek.type===19||this._peek.type===21)&&r.push(this._peek.type),this._peek.type===22)if(If(r,21)){if(r.pop(),r.length===0)return n}else return this.errors.push(Je.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===23)if(If(r,19))r.pop();else return this.errors.push(Je.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===33)return this.errors.push(Je.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.push(this._advance())}}_consumeText(e){let n=[e],r=e.sourceSpan,s=e.parts[0];if(s.length>0&&s[0]===`
|
|
24
|
+
`){let i=this._getContainer();i!=null&&i.children.length===0&&this.getTagDefinition(i.name).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,Nf):e.type===9?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let i=e.sourceSpan;this._addToParent(new ls(s,new W(r.start,i.end,r.fullStart,r.details),n))}}_closeVoidElement(){let e=this._getContainer();e instanceof Ht&&this.getTagDefinition(e.name).isVoid&&this._containerStack.pop()}_consumeStartTag(e){let[n,r]=e.parts,s=[];for(;this._peek.type===14;)s.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(n,r,this._getClosestParentElement()),o=!1;if(this._peek.type===2){this._advance(),o=!0;let m=this.getTagDefinition(i);m.canSelfClose||Rc(i)!==null||m.isVoid||this.errors.push(Je.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),o=!1);let l=this._peek.sourceSpan.fullStart,c=new W(e.sourceSpan.start,l,e.sourceSpan.fullStart),u=new W(e.sourceSpan.start,l,e.sourceSpan.fullStart),p=new Ht(i,s,[],c,u,void 0),d=this._getContainer();this._pushContainer(p,d instanceof Ht&&this.getTagDefinition(d.name).isClosedByChild(p.name)),o?this._popContainer(i,Ht,c):e.type===4&&(this._popContainer(i,Ht,null),this.errors.push(Je.create(i,c,`Opening tag "${i}" not terminated.`)))}_pushContainer(e,n){n&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeEndTag(e){let n=this._getElementFullName(e.parts[0],e.parts[1],this._getClosestParentElement());if(this.getTagDefinition(n).isVoid)this.errors.push(Je.create(n,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(n,Ht,e.sourceSpan)){let r=`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(Je.create(n,e.sourceSpan,r))}}_popContainer(e,n,r){let s=!1;for(let i=this._containerStack.length-1;i>=0;i--){let o=this._containerStack[i];if((o.name===e||e===null)&&o instanceof n)return o.endSourceSpan=r,o.sourceSpan.end=r!==null?r.end:o.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!s;(o instanceof Wt||o instanceof Ht&&!this.getTagDefinition(o.name).closedByParent)&&(s=!0)}return!1}_consumeAttr(e){let n=Pc(e.parts[0],e.parts[1]),r=e.sourceSpan.end;this._peek.type===15&&this._advance();let s="",i=[],o,l;if(this._peek.type===16)for(o=this._peek.sourceSpan,l=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let p=this._advance();i.push(p),p.type===17?s+=p.parts.join("").replace(/&([^;]+);/g,Nf):p.type===9?s+=p.parts[0]:s+=p.parts.join(""),l=r=p.sourceSpan.end}this._peek.type===15&&(r=this._advance().sourceSpan.end);let u=o&&l&&new W(o.start,l,o.fullStart);return new lu(n,s,new W(e.sourceSpan.start,r,e.sourceSpan.fullStart),e.sourceSpan,u,i.length>0?i:void 0,void 0)}_consumeBlockOpen(e){let n=[];for(;this._peek.type===27;){let l=this._advance();n.push(new Ua(l.parts[0],l.sourceSpan))}this._peek.type===25&&this._advance();let r=this._peek.sourceSpan.fullStart,s=new W(e.sourceSpan.start,r,e.sourceSpan.fullStart),i=new W(e.sourceSpan.start,r,e.sourceSpan.fullStart),o=new Wt(e.parts[0],n,[],s,e.sourceSpan,i);this._pushContainer(o,!1)}_consumeBlockClose(e){this._popContainer(null,Wt,e.sourceSpan)||this.errors.push(Je.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===27;){let l=this._advance();n.push(new Ua(l.parts[0],l.sourceSpan))}let r=this._peek.sourceSpan.fullStart,s=new W(e.sourceSpan.start,r,e.sourceSpan.fullStart),i=new W(e.sourceSpan.start,r,e.sourceSpan.fullStart),o=new Wt(e.parts[0],n,[],s,e.sourceSpan,i);this._pushContainer(o,!1),this._popContainer(null,Wt,null),this.errors.push(Je.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!==30){this.errors.push(Je.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${n}". Declaration must have a value.`));return}else r=this._advance();if(this._peek.type!==31){this.errors.push(Je.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.fullStart,o=new W(e.sourceSpan.start,i,e.sourceSpan.fullStart),l=e.sourceSpan.toString().lastIndexOf(n),c=e.sourceSpan.start.moveBy(l),u=new W(c,e.sourceSpan.end),p=new Va(n,r.parts[0],o,u,r.sourceSpan);this._addToParent(p)}_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),l=new W(o,e.sourceSpan.end),c=new W(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),u=new Va(n,"",e.sourceSpan,l,c);this._addToParent(u)}this.errors.push(Je.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}_getClosestParentElement(){for(let e=this._containerStack.length-1;e>-1;e--)if(this._containerStack[e]instanceof Ht)return this._containerStack[e];return null}_addToParent(e){let n=this._getContainer();n===null?this.rootNodes.push(e):n.children.push(e)}_getElementFullName(e,n,r){if(e===""&&(e=this.getTagDefinition(n).implicitNamespacePrefix||"",e===""&&r!=null)){let s=hn(r.name)[1];this.getTagDefinition(s).preventNamespaceInheritance||(e=Rc(r.name))}return Pc(e,n)}};function If(t,e){return t.length>0&&t[t.length-1]===e}function Nf(t,e){return qa[e]!==void 0?qa[e]||t:/^#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 _m="ngPreserveWhitespaces",jx=new Set(["pre","template","textarea","script","style"]),km=` \f
|
|
25
|
+
\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,Kx=new RegExp(`[^${km}]`),zx=new RegExp(`[${km}]{2,}`,"g");function Xx(t){return t.some(e=>e.name===_m)}function Rm(t){return t.replace(new RegExp(Dm,"g")," ")}var ja=class{constructor(e,n,r=!0){a(this,"preserveSignificantWhitespace");a(this,"originalNodeMap");a(this,"requireContext");a(this,"icuExpansionDepth",0);this.preserveSignificantWhitespace=e,this.originalNodeMap=n,this.requireContext=r}visitElement(e,n){var s,i;if(jx.has(e.name)||Xx(e.attrs)){let o=new Ht(e.name,As(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return(s=this.originalNodeMap)==null||s.set(o,e),o}let r=new Ht(e.name,e.attrs,As(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return(i=this.originalNodeMap)==null||i.set(r,e),r}visitAttribute(e,n){return e.name!==_m?e:null}visitText(e,n){var o;let r=e.value.match(Kx),s=n&&(n.prev instanceof Gr||n.next instanceof Gr);if(this.icuExpansionDepth>0&&this.preserveSignificantWhitespace)return e;if(r||s){let l=e.tokens.map(d=>d.type===5?Zx(d):d);if(!this.preserveSignificantWhitespace&&l.length>0){let d=l[0];l.splice(0,1,Yx(d,n));let m=l[l.length-1];l.splice(l.length-1,1,Qx(m,n))}let c=Mm(e.value),u=this.preserveSignificantWhitespace?c:Jx(c,n),p=new ls(u,e.sourceSpan,l,e.i18n);return(o=this.originalNodeMap)==null||o.set(p,e),p}return null}visitComment(e,n){return e}visitExpansion(e,n){var s;this.icuExpansionDepth++;let r;try{r=new Gr(e.switchValue,e.type,As(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 $a(e.value,As(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 Wt(e.name,e.parameters,As(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}visit(e,n){if(this.requireContext&&!n)throw new Error("WhitespaceVisitor requires context. Visit via `visitAllWithSiblings` to get this context.");return!1}};function Yx(t,e){return t.type!==5||!!(e!=null&&e.prev)?t:Pm(t,r=>r.trimStart())}function Qx(t,e){return t.type!==5||!!(e!=null&&e.next)?t:Pm(t,r=>r.trimEnd())}function Jx(t,e){let n=!(e!=null&&e.prev),r=!(e!=null&&e.next),s=n?t.trimStart():t;return r?s.trimEnd():s}function Zx({type:t,parts:e,sourceSpan:n}){return{type:t,parts:[Mm(e[0])],sourceSpan:n}}function Pm({type:t,parts:e,sourceSpan:n},r){return{type:t,parts:[r(e[0])],sourceSpan:n}}function Mm(t){return Rm(t).replace(zx," ")}function As(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 ne;(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.Error=7]="Error"})(ne||(ne={}));var gr;(function(t){t[t.Plain=0]="Plain",t[t.TemplateLiteralPart=1]="TemplateLiteralPart",t[t.TemplateLiteralEnd=2]="TemplateLiteralEnd"})(gr||(gr={}));var eC=["var","let","as","null","undefined","true","false","if","else","this","typeof"],Eo=class{tokenize(e){return new du(e).scan()}},mn=class{constructor(e,n,r,s,i){a(this,"index");a(this,"end");a(this,"type");a(this,"numValue");a(this,"strValue");this.index=e,this.end=n,this.type=r,this.numValue=s,this.strValue=i}isCharacter(e){return this.type===ne.Character&&this.numValue===e}isNumber(){return this.type===ne.Number}isString(){return this.type===ne.String}isOperator(e){return this.type===ne.Operator&&this.strValue===e}isIdentifier(){return this.type===ne.Identifier}isPrivateIdentifier(){return this.type===ne.PrivateIdentifier}isKeyword(){return this.type===ne.Keyword}isKeywordLet(){return this.type===ne.Keyword&&this.strValue==="let"}isKeywordAs(){return this.type===ne.Keyword&&this.strValue==="as"}isKeywordNull(){return this.type===ne.Keyword&&this.strValue==="null"}isKeywordUndefined(){return this.type===ne.Keyword&&this.strValue==="undefined"}isKeywordTrue(){return this.type===ne.Keyword&&this.strValue==="true"}isKeywordFalse(){return this.type===ne.Keyword&&this.strValue==="false"}isKeywordThis(){return this.type===ne.Keyword&&this.strValue==="this"}isKeywordTypeof(){return this.type===ne.Keyword&&this.strValue==="typeof"}isError(){return this.type===ne.Error}toNumber(){return this.type===ne.Number?this.numValue:-1}isTemplateLiteralPart(){return this.isString()&&this.kind===gr.TemplateLiteralPart}isTemplateLiteralEnd(){return this.isString()&&this.kind===gr.TemplateLiteralEnd}isTemplateLiteralInterpolationStart(){return this.isOperator("${")}isTemplateLiteralInterpolationEnd(){return this.isOperator("}")}toString(){switch(this.type){case ne.Character:case ne.Identifier:case ne.Keyword:case ne.Operator:case ne.PrivateIdentifier:case ne.String:case ne.Error:return this.strValue;case ne.Number:return this.numValue.toString();default:return null}}},Li=class extends mn{constructor(n,r,s,i){super(n,r,ne.String,0,s);a(this,"kind");this.kind=i}};function Xo(t,e,n){return new mn(t,e,ne.Character,n,String.fromCharCode(n))}function tC(t,e,n){return new mn(t,e,ne.Identifier,0,n)}function nC(t,e,n){return new mn(t,e,ne.PrivateIdentifier,0,n)}function rC(t,e,n){return new mn(t,e,ne.Keyword,0,n)}function Ci(t,e,n){return new mn(t,e,ne.Operator,0,n)}function sC(t,e,n){return new mn(t,e,ne.Number,n,"")}function iC(t,e,n){return new mn(t,e,ne.Error,0,n)}var Yo=new mn(-1,-1,ne.Character,0,""),du=class{constructor(e){a(this,"input");a(this,"tokens",[]);a(this,"length");a(this,"peek",0);a(this,"index",-1);a(this,"literalInterpolationDepth",0);a(this,"braceDepth",0);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?Ze:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,n=this.length,r=this.peek,s=this.index;for(;r<=Zd;)if(++s>=n){r=Ze;break}else r=e.charCodeAt(s);if(this.peek=r,this.index=s,s>=n)return null;if(bf(r))return this.scanIdentifier();if(En(r))return this.scanNumber(s);let i=s;switch(r){case xs:return this.advance(),En(this.peek)?this.scanNumber(i):Xo(i,this.index,xs);case Hn:case sn:case Ms:case Ds:case zt:case pr:case Pt:return this.scanCharacter(i,r);case nn:return this.scanOpenBrace(i,r);case At:return this.scanCloseBrace(i,r);case lo:case ao:return this.scanString();case Hc:return this.advance(),this.scanTemplateLiteralPart(i);case em:return this.scanPrivateIdentifier();case tm:case Aa:case lw:case Fn:case aw:case fw:return this.scanOperator(i,String.fromCharCode(r));case sf:return this.scanQuestion(i);case bs:case lr:return this.scanComplexOperator(i,String.fromCharCode(r),Vr,"=");case qc:case Vr:return this.scanComplexOperator(i,String.fromCharCode(r),Vr,"=",Vr,"=");case Ca:return this.scanComplexOperator(i,"&",Ca,"&");case of:return this.scanComplexOperator(i,"|",of,"|");case cm:for(;co(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(r)}]`,0)}scanCharacter(e,n){return this.advance(),Xo(e,this.index,n)}scanOperator(e,n){return this.advance(),Ci(e,this.index,n)}scanOpenBrace(e,n){return this.braceDepth++,this.advance(),Xo(e,this.index,n)}scanCloseBrace(e,n){return this.advance(),this.braceDepth===0&&this.literalInterpolationDepth>0?(this.literalInterpolationDepth--,this.tokens.push(Ci(e,this.index,"}")),this.scanTemplateLiteralPart(this.index)):(this.braceDepth--,Xo(e,this.index,n))}scanComplexOperator(e,n,r,s,i,o){this.advance();let l=n;return this.peek==r&&(this.advance(),l+=s),i!=null&&this.peek==i&&(this.advance(),l+=o),Ci(e,this.index,l)}scanIdentifier(){let e=this.index;for(this.advance();Df(this.peek);)this.advance();let n=this.input.substring(e,this.index);return eC.indexOf(n)>-1?rC(e,this.index,n):tC(e,this.index,n)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!bf(this.peek))return this.error("Invalid character [#]",-1);for(;Df(this.peek);)this.advance();let n=this.input.substring(e,this.index);return nC(e,this.index,n)}scanNumber(e){let n=this.index===e,r=!1;for(this.advance();;){if(!En(this.peek))if(this.peek===Io){if(!En(this.input.charCodeAt(this.index-1))||!En(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);r=!0}else if(this.peek===xs)n=!1;else if(oC(this.peek)){if(this.advance(),aC(this.peek)&&this.advance(),!En(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?cC(s):parseFloat(s);return sC(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==Ls){let l=this.scanStringBackslash(r,s);if(typeof l!="string")return l;r=l,s=this.index}else{if(this.peek==Ze)return this.error("Unterminated quote",0);this.advance()}let o=i.substring(s,this.index);return this.advance(),new Li(e,this.index,r+o,gr.Plain)}scanQuestion(e){this.advance();let n="?";return(this.peek===sf||this.peek===xs)&&(n+=this.peek===xs?".":"?",this.advance()),Ci(e,this.index,n)}scanTemplateLiteralPart(e){let n="",r=this.index;for(;this.peek!==Hc;)if(this.peek===Ls){let i=this.scanStringBackslash(n,r);if(typeof i!="string")return i;n=i,r=this.index}else if(this.peek===cl){let i=this.index;if(this.advance(),this.peek===nn)return this.literalInterpolationDepth++,this.tokens.push(new Li(e,i,n+this.input.substring(r,i),gr.TemplateLiteralPart)),this.advance(),Ci(i,this.index,this.input.substring(i,this.index))}else{if(this.peek===Ze)return this.error("Unterminated template literal",0);this.advance()}let s=this.input.substring(r,this.index);return this.advance(),new Li(e,this.index,n+s,gr.TemplateLiteralEnd)}error(e,n){let r=this.index+n;return iC(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===om){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=lC(this.peek),this.advance();return e+=String.fromCharCode(r),e}};function bf(t){return ts<=t&&t<=No||ai<=t&&t<=ul||t==Io||t==cl}function Df(t){return uo(t)||En(t)||t==Io||t==cl}function oC(t){return t==mw||t==uw}function aC(t){return t==Aa||t==tm}function lC(t){switch(t){case rm:return Hr;case Qu:return Jd;case sm:return Xu;case im:return zu;case am:return Qd;default:return t}}function cC(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var mu=class{constructor(e,n,r){a(this,"strings");a(this,"expressions");a(this,"offsets");this.strings=e,this.expressions=n,this.offsets=r}},gu=class{constructor(e,n,r){a(this,"templateBindings");a(this,"warnings");a(this,"errors");this.templateBindings=e,this.warnings=n,this.errors=r}},Ka=class{constructor(e){a(this,"_lexer");a(this,"errors",[]);this._lexer=e}parseAction(e,n,r,s=jt){this._checkNoInterpolation(e,n,s);let i=this._stripComments(e),o=this._lexer.tokenize(i),l=new Br(e,n,r,o,1,this.errors,0).parseChain();return new Ce(l,e,n,r,this.errors)}parseBinding(e,n,r,s=jt){let i=this._parseBindingAst(e,n,r,s);return new Ce(i,e,n,r,this.errors)}checkSimpleExpression(e){let n=new yu;return e.visit(n),n.errors}parseSimpleBinding(e,n,r,s=jt){let i=this._parseBindingAst(e,n,r,s),o=this.checkSimpleExpression(i);return o.length>0&&this._reportError(`Host binding expression cannot contain ${o.join(" ")}`,e,n),new Ce(i,e,n,r,this.errors)}_reportError(e,n,r,s){this.errors.push(new Gs(e,n,r,s))}_parseBindingAst(e,n,r,s){this._checkNoInterpolation(e,n,s);let i=this._stripComments(e),o=this._lexer.tokenize(i);return new Br(e,n,r,o,0,this.errors,0).parseChain()}parseTemplateBindings(e,n,r,s,i){let o=this._lexer.tokenize(n);return new Br(n,r,i,o,0,this.errors,0).parseTemplateBindings({source:e,span:new tt(s,s+e.length)})}parseInterpolation(e,n,r,s,i=jt){let{strings:o,expressions:l,offsets:c}=this.splitInterpolation(e,n,s,i);if(l.length===0)return null;let u=[];for(let p=0;p<l.length;++p){let d=l[p].text,m=this._stripComments(d),g=this._lexer.tokenize(m),E=new Br(e,n,r,g,0,this.errors,c[p]).parseChain();u.push(E)}return this.createInterpolationAst(o.map(p=>p.text),u,e,n,r)}parseInterpolationExpression(e,n,r){let s=this._stripComments(e),i=this._lexer.tokenize(s),o=new Br(e,n,r,i,0,this.errors,0).parseChain(),l=["",""];return this.createInterpolationAst(l,[o],e,n,r)}createInterpolationAst(e,n,r,s,i){let o=new Yr(0,r.length),l=new zn(o,o.toAbsolute(i),e,n);return new Ce(l,r,s,i,this.errors)}splitInterpolation(e,n,r,s=jt){var E;let i=[],o=[],l=[],c=r?uC(r):null,u=0,p=!1,d=!1,{start:m,end:g}=s;for(;u<e.length;)if(p){let w=u,x=w+m.length,k=this._getInterpolationEndIndex(e,g,x);if(k===-1){p=!1,d=!0;break}let _=k+g.length,H=e.substring(x,k);H.trim().length===0&&this._reportError("Blank expressions are not allowed in interpolated strings",e,`at column ${u} in`,n),o.push({text:H,start:w,end:_});let te=((E=c==null?void 0:c.get(w))!=null?E:w)+m.length;l.push(te),u=_,p=!1}else{let w=u;u=e.indexOf(m,u),u===-1&&(u=e.length);let x=e.substring(w,u);i.push({text:x,start:w,end:u}),p=!0}if(!p)if(d){let w=i[i.length-1];w.text+=e.substring(u),w.end=e.length}else i.push({text:e.substring(u),start:u,end:e.length});return new mu(i,o,l)}wrapLiteralPrimitive(e,n,r){let s=new Yr(0,e==null?0:e.length);return new Ce(new Gt(s,s.toAbsolute(r),e),e,n,r,this.errors)}_stripComments(e){let n=this._commentStart(e);return n!=null?e.substring(0,n):e}_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===Fn&&i==Fn&&n==null)return r;n===s?n=null:n==null&&ki(s)&&(n=s)}return null}_checkNoInterpolation(e,n,{start:r,end:s}){let i=-1,o=-1;for(let l of this._forEachUnquotedChar(e,0))if(i===-1)e.startsWith(r)&&(i=l);else if(o=this._getInterpolationEndIndex(e,s,l),o>-1)break;i>-1&&o>-1&&this._reportError(`Got interpolation (${r}${s}) where expression was expected`,e,`at column ${i} in`,n)}_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];ki(e.charCodeAt(i))&&(r===null||r===o)&&s%2===0?r=r===null?o:null:r===null&&(yield i),s=o==="\\"?s+1:0}}},Rs;(function(t){t[t.None=0]="None",t[t.Writable=1]="Writable"})(Rs||(Rs={}));var Br=class{constructor(e,n,r,s,i,o,l){a(this,"input");a(this,"location");a(this,"absoluteOffset");a(this,"tokens");a(this,"parseFlags");a(this,"errors");a(this,"offset");a(this,"rparensExpected",0);a(this,"rbracketsExpected",0);a(this,"rbracesExpected",0);a(this,"context",Rs.None);a(this,"sourceSpanCache",new Map);a(this,"index",0);this.input=e,this.location=n,this.absoluteOffset=r,this.tokens=s,this.parseFlags=i,this.errors=o,this.offset=l}peek(e){let n=this.index+e;return n<this.tokens.length?this.tokens[n]:Yo}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 Yr(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}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===Yo?"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(Pt))for(this.parseFlags&1||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(Pt););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 je(this.span(r,s),this.sourceSpan(r,s))}return e.length==1?e[0]:new wr(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 Yr(o,o).toAbsolute(this.absoluteOffset));let l=[];for(;this.consumeOptionalCharacter(pr);)l.push(this.parseExpression());n=new Jr(this.span(e),this.sourceSpan(e,o),n,s,l,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(pr))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 je(this.span(e),this.sourceSpan(e))}return new Ws(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 Rt(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 Rt(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 Rt(this.span(e),this.sourceSpan(e),"??",n,r)}return n}parseEquality(){let e=this.inputIndex,n=this.parseRelational();for(;this.next.type==ne.Operator;){let r=this.next.strValue;switch(r){case"==":case"===":case"!=":case"!==":this.advance();let s=this.parseRelational();n=new Rt(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==ne.Operator;){let r=this.next.strValue;switch(r){case"<":case">":case"<=":case">=":this.advance();let s=this.parseAdditive();n=new Rt(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==ne.Operator;){let r=this.next.strValue;switch(r){case"+":case"-":this.advance();let s=this.parseMultiplicative();n=new Rt(this.span(e),this.sourceSpan(e),r,n,s);continue}break}return n}parseMultiplicative(){let e=this.inputIndex,n=this.parsePrefix();for(;this.next.type==ne.Operator;){let r=this.next.strValue;switch(r){case"*":case"%":case"/":this.advance();let s=this.parsePrefix();n=new Rt(this.span(e),this.sourceSpan(e),r,n,s);continue}break}return n}parsePrefix(){if(this.next.type==ne.Operator){let e=this.inputIndex,n=this.next.strValue,r;switch(n){case"+":return this.advance(),r=this.parsePrefix(),Xi.createPlus(this.span(e),this.sourceSpan(e),r);case"-":return this.advance(),r=this.parsePrefix(),Xi.createMinus(this.span(e),this.sourceSpan(e),r);case"!":return this.advance(),r=this.parsePrefix(),new da(this.span(e),this.sourceSpan(e),r)}}else if(this.next.isKeywordTypeof()){this.advance();let e=this.inputIndex,n=this.parsePrefix();return new ma(this.span(e),this.sourceSpan(e),n)}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,n=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(xs))n=this.parseAccessMember(n,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(Hn)?n=this.parseCall(n,e,!0):n=this.consumeOptionalCharacter(Ms)?this.parseKeyedReadOrWrite(n,e,!0):this.parseAccessMember(n,e,!0);else if(this.consumeOptionalCharacter(Ms))n=this.parseKeyedReadOrWrite(n,e,!1);else if(this.consumeOptionalCharacter(Hn))n=this.parseCall(n,e,!1);else if(this.consumeOptionalOperator("!"))n=new Yi(this.span(e),this.sourceSpan(e),n);else return n}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(Hn)){this.rparensExpected++;let n=this.parsePipe();return this.rparensExpected--,this.expectCharacter(sn),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 un(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(Ms)){this.rbracketsExpected++;let n=this.parseExpressionList(Ds);return this.rbracketsExpected--,this.expectCharacter(Ds),new ha(this.span(e),this.sourceSpan(e),n)}else{if(this.next.isCharacter(nn))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new Re(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(e);if(this.next.isTemplateLiteralPart())return this.parseTemplateLiteral();if(this.next.isString()&&this.next.kind===gr.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 je(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new je(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new je(this.span(e),this.sourceSpan(e)))}}}}parseExpressionList(e){let n=[];do if(!this.next.isCharacter(e))n.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(zt));return n}parseLiteralMap(){let e=[],n=[],r=this.inputIndex;if(this.expectCharacter(nn),!this.consumeOptionalCharacter(At)){this.rbracesExpected++;do{let s=this.inputIndex,i=this.next.isString(),o=this.expectIdentifierOrKeywordOrString(),l={key:o,quoted:i};if(e.push(l),i)this.expectCharacter(pr),n.push(this.parsePipe());else if(this.consumeOptionalCharacter(pr))n.push(this.parsePipe());else{l.isShorthandInitialized=!0;let c=this.span(s),u=this.sourceSpan(s);n.push(new Me(c,u,u,new Re(c,u),o))}}while(this.consumeOptionalCharacter(zt)&&!this.next.isCharacter(At));this.rbracesExpected--,this.expectCharacter(At)}return new fa(this.span(r),this.sourceSpan(r),e,n)}parseAccessMember(e,n,r){let s=this.inputIndex,i=this.withContext(Rs.Writable,()=>{var u;let c=(u=this.expectIdentifierOrKeyword())!=null?u:"";return c.length===0&&this.error("Expected identifier for property access",e.span.end),c}),o=this.sourceSpan(s),l;if(r)this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),l=new je(this.span(n),this.sourceSpan(n))):l=new vt(this.span(n),this.sourceSpan(n),o,e,i);else if(this.consumeOptionalOperator("=")){if(!(this.parseFlags&1))return this.error("Bindings cannot contain assignments"),new je(this.span(n),this.sourceSpan(n));let c=this.parseConditional();l=new Kn(this.span(n),this.sourceSpan(n),o,e,i,c)}else l=new Me(this.span(n),this.sourceSpan(n),o,e,i);return l}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(sn),this.rparensExpected--;let l=this.span(n),c=this.sourceSpan(n);return r?new Nn(l,c,e,i,o):new pn(l,c,e,i,o)}parseCallArguments(){if(this.next.isCharacter(sn))return[];let e=[];do e.push(this.parsePipe());while(this.consumeOptionalCharacter(zt));return e}expectTemplateBindingKey(){let e="",n=!1,r=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),n=this.consumeOptionalOperator("-"),n&&(e+="-");while(n);return{source:e,span:new tt(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 gu(n,[],this.errors)}parseKeyedReadOrWrite(e,n,r){return this.withContext(Rs.Writable,()=>{this.rbracketsExpected++;let s=this.parsePipe();if(s instanceof je&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(Ds),this.consumeOptionalOperator("="))if(r)this.error("The '?.' operator cannot be used in the assignment");else{let i=this.parseConditional();return new pa(this.span(n),this.sourceSpan(n),e,s,i)}else return r?new Tr(this.span(n),this.sourceSpan(n),e,s):new zi(this.span(n),this.sourceSpan(n),e,s);return new je(this.span(n),this.sourceSpan(n))})}parseDirectiveKeywordBindings(e){let n=[];this.consumeOptionalCharacter(pr);let r=this.getDirectiveBoundTarget(),s=this.currentAbsoluteOffset,i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),s=this.currentAbsoluteOffset);let o=new tt(e.span.start,s);return n.push(new Dc(o,e,r)),i&&n.push(i),n}getDirectiveBoundTarget(){if(this.next===Yo||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:n,end:r}=e.span,s=this.input.substring(n,r);return new Ce(e,s,this.location,this.absoluteOffset+n,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let n=this.expectTemplateBindingKey();this.consumeStatementTerminator();let r=new tt(e.span.start,this.currentAbsoluteOffset);return new Ji(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 tt(e,this.currentAbsoluteOffset);return new Ji(s,n,r)}parseNoInterpolationTemplateLiteral(e){let n=this.next.strValue;this.advance();let r=this.span(e),s=this.sourceSpan(e);return new Qi(r,s,[new ga(r,s,n)],[])}parseTemplateLiteral(){let e=this.inputIndex,n=[],r=[];for(;this.next!==Yo;){let s=this.next;if(s.isTemplateLiteralPart()||s.isTemplateLiteralEnd()){if(n.push(new ga(this.span(this.inputIndex),this.sourceSpan(this.inputIndex),s.strValue)),this.advance(),s.isTemplateLiteralEnd())break}else if(s.isTemplateLiteralInterpolationStart()){this.advance();let i=this.parsePipe();i instanceof je?this.error("Template literal interpolation cannot be empty"):r.push(i)}else this.advance()}return new Qi(this.span(e),this.sourceSpan(e),n,r)}consumeStatementTerminator(){this.consumeOptionalCharacter(Pt)||this.consumeOptionalCharacter(zt)}error(e,n=null){this.errors.push(new Gs(e,this.input,this.locationText(n),this.location)),this.skip()}locationText(e=null){return e==null&&(e=this.index),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(Pt)&&!e.isOperator("|")&&(this.rparensExpected<=0||!e.isCharacter(sn))&&(this.rbracesExpected<=0||!e.isCharacter(At))&&(this.rbracketsExpected<=0||!e.isCharacter(Ds))&&(!(this.context&Rs.Writable)||!e.isOperator("="));)this.next.isError()&&this.errors.push(new Gs(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}},yu=class extends xr{constructor(){super(...arguments);a(this,"errors",[])}visitPipe(){this.errors.push("pipes")}};function uC(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,l]=i.parts;n+=l.length,r+=o.length}else{let o=i.parts.reduce((l,c)=>l+c.length,0);r+=o,n+=o}e.set(r,n),s++}return e}function pC(t){return t.visit(new vu)}var vu=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 fC(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)}]`}visitKeyedWrite(e,n){return`${e.receiver.visit(this,n)}[${e.key.visit(this,n)}] = ${e.value.visit(this,n)}`}visitLiteralArray(e,n){return`[${e.expressions.map(r=>r.visit(this,n)).join(", ")}]`}visitLiteralMap(e,n){return`{${hC(e.keys.map(r=>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 Re?e.name:`${e.receiver.visit(this,n)}.${e.name}`}visitPropertyWrite(e,n){return e.receiver instanceof Re?`${e.name} = ${e.value.visit(this,n)}`:`${e.receiver.visit(this,n)}.${e.name} = ${e.value.visit(this,n)}`}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)}`}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}};function hC(t,e){if(t.length!==e.length)throw new Error("Array lengths must match");return t.map((n,r)=>[n,e[r]])}function fC(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 sa;function _f(){return sa||(sa={},Qo(ve.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Qo(ve.STYLE,["*|style"]),Qo(ve.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),Qo(ve.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),sa}function Qo(t,e){for(let n of e)sa[n.toLowerCase()]=t}var dC=new Set(["sandbox","allow","allowfullscreen","referrerpolicy","csp","fetchpriority"]);function mC(t){return dC.has(t.toLowerCase())}var Su=class{},gC="boolean",yC="number",vC="string",SC="object",EC=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%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,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","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","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:|"],Lm=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),wC=Array.from(Lm).reduce((t,[e,n])=>(t.set(e,n),t),new Map),gn=class extends Su{constructor(){super();a(this,"_schema",new Map);a(this,"_eventSchema",new Map);EC.forEach(n=>{let r=new Map,s=new Set,[i,o]=n.split("|"),l=o.split(","),[c,u]=i.split("^");c.split(",").forEach(d=>{this._schema.set(d.toLowerCase(),r),this._eventSchema.set(d.toLowerCase(),s)});let p=u&&this._schema.get(u.toLowerCase());if(p){for(let[d,m]of p)r.set(d,m);for(let d of this._eventSchema.get(u.toLowerCase()))s.add(d)}l.forEach(d=>{if(d.length>0)switch(d[0]){case"*":s.add(d.substring(1));break;case"!":r.set(d.substring(1),gC);break;case"#":r.set(d.substring(1),yC);break;case"%":r.set(d.substring(1),SC);break;default:r.set(d,vC)}})})}hasProperty(n,r,s){if(s.some(o=>o.name===yc.name))return!0;if(n.indexOf("-")>-1){if(ef(n)||kc(n))return!1;if(s.some(o=>o.name===gc.name))return!0}return(this._schema.get(n.toLowerCase())||this._schema.get("unknown")).has(r)}hasElement(n,r){return r.some(s=>s.name===yc.name)||n.indexOf("-")>-1&&(ef(n)||kc(n)||r.some(s=>s.name===gc.name))?!0:this._schema.has(n.toLowerCase())}securityContext(n,r,s){s&&(r=this.getMappedPropName(r)),n=n.toLowerCase(),r=r.toLowerCase();let i=_f()[n+"|"+r];return i||(i=_f()["*|"+r],i||ve.NONE)}getMappedPropName(n){var r;return(r=Lm.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)})=...
|
|
26
|
+
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=this._schema.get(n.toLowerCase())||this._schema.get("unknown");return Array.from(r.keys()).map(s=>{var i;return(i=wC.get(s))!=null?i:s})}allKnownEventsOfElement(n){var r;return Array.from((r=this._eventSchema.get(n.toLowerCase()))!=null?r:[])}normalizeAnimationStyleProperty(n){return bE(n)}normalizeAnimationStyleValue(n,r,s){let i="",o=s.toString().trim(),l=null;if(TC(n)&&s!==0&&s!=="0")if(typeof s=="number")i="px";else{let c=s.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&c[1].length==0&&(l=`Please provide a CSS unit value for ${r}:${s}`)}return{error:l,value:o+i}}};function TC(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 Q=class{constructor({closedByChildren:e,implicitNamespacePrefix:n,contentType:r=tn.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:o=!1,preventNamespaceInheritance:l=!1,canSelfClose:c=!1}={}){a(this,"closedByChildren",{});a(this,"contentType");a(this,"closedByParent",!1);a(this,"implicitNamespacePrefix");a(this,"isVoid");a(this,"ignoreFirstLf");a(this,"canSelfClose");a(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=l,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}},kf,ws;function Om(t){var e,n;return ws||(kf=new Q({canSelfClose:!0}),ws=Object.assign(Object.create(null),{base:new Q({isVoid:!0}),meta:new Q({isVoid:!0}),area:new Q({isVoid:!0}),embed:new Q({isVoid:!0}),link:new Q({isVoid:!0}),img:new Q({isVoid:!0}),input:new Q({isVoid:!0}),param:new Q({isVoid:!0}),hr:new Q({isVoid:!0}),br:new Q({isVoid:!0}),source:new Q({isVoid:!0}),track:new Q({isVoid:!0}),wbr:new Q({isVoid:!0}),p:new Q({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 Q({closedByChildren:["tbody","tfoot"]}),tbody:new Q({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Q({closedByChildren:["tbody"],closedByParent:!0}),tr:new Q({closedByChildren:["tr"],closedByParent:!0}),td:new Q({closedByChildren:["td","th"],closedByParent:!0}),th:new Q({closedByChildren:["td","th"],closedByParent:!0}),col:new Q({isVoid:!0}),svg:new Q({implicitNamespacePrefix:"svg"}),foreignObject:new Q({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new Q({implicitNamespacePrefix:"math"}),li:new Q({closedByChildren:["li"],closedByParent:!0}),dt:new Q({closedByChildren:["dt","dd"]}),dd:new Q({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Q({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Q({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Q({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Q({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Q({closedByChildren:["optgroup"],closedByParent:!0}),option:new Q({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Q({ignoreFirstLf:!0}),listing:new Q({ignoreFirstLf:!0}),style:new Q({contentType:tn.RAW_TEXT}),script:new Q({contentType:tn.RAW_TEXT}),title:new Q({contentType:{default:tn.ESCAPABLE_RAW_TEXT,svg:tn.PARSABLE_DATA}}),textarea:new Q({contentType:tn.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new gn().allKnownElementNames().forEach(r=>{!ws[r]&&Rc(r)===null&&(ws[r]=new Q({canSelfClose:!1}))})),(n=(e=ws[t])!=null?e:ws[t.toLowerCase()])!=null?n:kf}var Rf={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"},Eu=class{constructor(){a(this,"_placeHolderNameCounts",{});a(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=Rf[i]||`TAG_${i}`,l=this._generateUniqueName(r?o:`START_${o}`);return this._signatureToName[s]=l,l}getCloseTagPlaceholderName(e){let n=this._hashClosingTag(e);if(this._signatureToName[n])return this._signatureToName[n];let r=e.toUpperCase(),s=Rf[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(l=>` ${l}=${n[l]}`).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(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;let r=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=r+1,`${e}_${r}`}},xC=new Ka(new Eo);function CC(t,e,n,r){let s=new wu(xC,t,e,n,r);return(i,o,l,c,u)=>s.toI18nMessage(i,o,l,c,u)}function AC(t,e){return e}var wu=class{constructor(e,n,r,s,i){a(this,"_expressionParser");a(this,"_interpolationConfig");a(this,"_containerBlocks");a(this,"_retainEmptyTokens");a(this,"_preserveExpressionWhitespace");this._expressionParser=e,this._interpolationConfig=n,this._containerBlocks=r,this._retainEmptyTokens=s,this._preserveExpressionWhitespace=i}toI18nMessage(e,n="",r="",s="",i){let o={isIcu:e.length==1&&e[0]instanceof Gr,icuDepth:0,placeholderRegistry:new Eu,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:i||AC},l=_e(this,e,o);return new dt(l,o.placeholderToContent,o.placeholderToMessage,n,r,s)}visitElement(e,n){var u;let r=_e(this,e.children,n),s={};e.attrs.forEach(p=>{s[p.name]=p.value});let i=Om(e.name).isVoid,o=n.placeholderRegistry.getStartTagPlaceholderName(e.name,s,i);n.placeholderToContent[o]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};let l="";i||(l=n.placeholderRegistry.getCloseTagPlaceholderName(e.name),n.placeholderToContent[l]={text:`</${e.name}>`,sourceSpan:(u=e.endSourceSpan)!=null?u:e.sourceSpan});let c=new Ar(e.name,s,o,l,r,i,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return n.visitNodeFn(e,c)}visitAttribute(e,n){let r=e.valueTokens===void 0||e.valueTokens.length===1?new Fr(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 Fr(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 xa(e.switchValue,e.type,r,e.sourceSpan);if(e.cases.forEach(l=>{r[l.value]=new qn(l.expression.map(c=>c.visit(this,n)),l.expSourceSpan)}),n.icuDepth--,n.isIcu||n.icuDepth>0){let l=n.placeholderRegistry.getUniquePlaceholder(`VAR_${e.type}`);return s.expressionPlaceholder=l,n.placeholderToContent[l]={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 Xs(s,i,e.sourceSpan);return n.visitNodeFn(e,o)}visitExpansionCase(e,n){throw new Error("Unreachable code")}visitBlock(e,n){var c;let r=_e(this,e.children,n);if(this._containerBlocks.has(e.name))return new qn(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 l=new Ir(e.name,s,i,o,r,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return n.visitNodeFn(e,l)}visitBlockParameter(e,n){throw new Error("Unreachable code")}visitLetDeclaration(e,n){return null}_visitTextWithInterpolation(e,n,r,s){let i=[],o=!1;for(let l of e)switch(l.type){case 8:case 17:o=!0;let[c,u,p]=l.parts,d=_C(u)||"INTERPOLATION",m=r.placeholderRegistry.getPlaceholderName(d,u);if(this._preserveExpressionWhitespace)r.placeholderToContent[m]={text:l.parts.join(""),sourceSpan:l.sourceSpan},i.push(new so(u,m,l.sourceSpan));else{let g=this.normalizeExpression(l);r.placeholderToContent[m]={text:`${c}${g}${p}`,sourceSpan:l.sourceSpan},i.push(new so(g,m,l.sourceSpan))}break;default:if(l.parts[0].length>0||this._retainEmptyTokens){let g=i[i.length-1];g instanceof Fr?(g.value+=l.parts[0],g.sourceSpan=new W(g.sourceSpan.start,l.sourceSpan.end,g.sourceSpan.fullStart,g.sourceSpan.details)):i.push(new Fr(l.parts[0],l.sourceSpan))}else this._retainEmptyTokens&&i.push(new Fr(l.parts[0],l.sourceSpan));break}return o?(IC(i,s),new qn(i,n)):i[0]}normalizeExpression(e){let n=e.parts[1],r=this._expressionParser.parseBinding(n,e.sourceSpan.start.toString(),e.sourceSpan.start.offset,this._interpolationConfig);return pC(r)}};function IC(t,e){if(e instanceof dt&&(NC(e),e=e.nodes[0]),e instanceof qn){bC(e.children,t);for(let n=0;n<t.length;n++)t[n].sourceSpan=e.children[n].sourceSpan}}function NC(t){let e=t.nodes;if(e.length!==1||!(e[0]instanceof qn))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}function bC(t,e){if(t.length!==e.length)throw new Error(`
|
|
27
27
|
The number of i18n message children changed between first and second pass.
|
|
28
28
|
|
|
29
29
|
First pass (${t.length} tokens):
|
|
@@ -33,16 +33,16 @@ ${t.map(n=>`"${n.sourceSpan.toString()}"`).join(`
|
|
|
33
33
|
Second pass (${e.length} tokens):
|
|
34
34
|
${e.map(n=>`"${n.sourceSpan.toString()}"`).join(`
|
|
35
35
|
`)}
|
|
36
|
-
`.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 CC=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function AC(t){return t.split(CC)[2]}var fu=class extends j{constructor(e,n){super(e,n)}},Nf=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function IC(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),Nf.has(t+"|"+e)||Nf.has("*|"+e)}var NC=t=>(e,n)=>{var s;let r=(s=t.get(e))!=null?s:e;return r instanceof Dr&&(n instanceof js&&r.i18n instanceof ft&&(n.previousMessage=r.i18n),r.i18n=n),n},Va=class{constructor(e=jt,n=!1,r=!1,s=JE,i=!0,o=!i){a(this,"interpolationConfig");a(this,"keepI18nAttrs");a(this,"enableI18nLegacyMessageIdFormat");a(this,"containerBlocks");a(this,"preserveSignificantWhitespace");a(this,"retainEmptyTokens");a(this,"hasI18nMeta",!1);a(this,"_errors",[]);this.interpolationConfig=e,this.keepI18nAttrs=n,this.enableI18nLegacyMessageIdFormat=r,this.containerBlocks=s,this.preserveSignificantWhitespace=i,this.retainEmptyTokens=o}_generateI18nMessage(e,n="",r){let{meaning:s,description:i,customId:o}=this._parseMetadata(n),c=SC(this.interpolationConfig,this.containerBlocks,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 Ba(n,this._errors)}visitElement(e){let n;if(jE(e)){this.hasI18nMeta=!0;let r=[],s={};for(let i of e.attrs)if(i.name===Vd){let o=e.i18n||i.value,l=new Map,c=this.preserveSignificantWhitespace?e.children:Cs(new $a(!1,l),e.children);n=this._generateI18nMessage(c,o,NC(l)),n.nodes.length===0&&(n=void 0),e.i18n=n}else if(i.name.startsWith(Rc)){let o=i.name.slice(Rc.length);IC(e.name,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)}return _e(this,e.children,n),e}visitExpansion(e,n){let r,s=e.i18n;if(this.hasI18nMeta=!0,s instanceof js){let i=s.name;r=this._generateI18nMessage([e],s);let o=Hd(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 _e(this,e.children,n),e}visitBlockParameter(e,n){return e}visitLetDeclaration(e,n){return e}_parseMetadata(e){return typeof e=="string"?_C(e):e instanceof ft?e:{}}_setMessageId(e,n){e.id||(e.id=n instanceof ft&&n.id||QS(e))}_setLegacyIds(e,n){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[YS(e),Id(e)];else if(typeof n!="string"){let r=n instanceof ft?n:n instanceof js?n.previousMessage:void 0;e.legacyIds=r?r.legacyIds:[]}}_reportError(e,n){this._errors.push(new fu(e.sourceSpan,n))}},bC="|",DC="@@";function _C(t=""){let e,n,r;if(t=t.trim(),t){let s=t.indexOf(DC),i=t.indexOf(bC),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 kC(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}),Pd(e)}var RC="goog.getMsg";function PC(t,e,n,r){let s=LC(e),i=[v(s)];Object.keys(r).length&&(i.push(Qc(Ou(r,!0),!0)),i.push(Qc({original_code:st(Object.keys(r).map(c=>({key:So(c),quoted:!0,value:e.placeholders[c]?v(e.placeholders[c].sourceSpan.toString()):v(e.placeholderToMessage[c].nodes.map(u=>u.sourceSpan.toString()).join(""))})))})));let o=n.set(Y(RC).callFn(i)).toConstDecl();o.addLeadingComment(kC(e));let l=new Lt(t.set(n));return[o,l]}var du=class{formatPh(e){return`{$${So(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(n=>n.visit(this)).join("")}visitIcu(e){return Tm(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)}},MC=new du;function LC(t){return t.nodes.map(e=>e.visit(MC,null)).join("")}function OC(t,e,n){let{messageParts:r,placeHolders:s}=FC(e),i=BC(e),o=s.map(u=>n[u.text]),l=Od(e,r,s,o,i),c=t.set(l);return[new Lt(c)]}var mu=class{constructor(e,n){a(this,"placeholderToMessage");a(this,"pieces");this.placeholderToMessage=e,this.pieces=n}visitText(e){if(this.pieces[this.pieces.length-1]instanceof mr)this.pieces[this.pieces.length-1].text+=e.value;else{let n=new W(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new mr(e.value,n))}}visitContainer(e){e.children.forEach(n=>n.visit(this))}visitIcu(e){this.pieces.push(new mr(Tm(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 Vr(So(e,!1),n,r)}};function FC(t){let e=[],n=new mu(t.placeholderToMessage,e);return t.nodes.forEach(r=>r.visit(n)),$C(e)}function BC(t){let e=t.nodes[0],n=t.nodes[t.nodes.length-1];return new W(e.sourceSpan.fullStart,n.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}function $C(t){let e=[],n=[];t[0]instanceof Vr&&e.push(Kl(t[0].sourceSpan.start));for(let r=0;r<t.length;r++){let s=t[r];s instanceof mr?e.push(s):(n.push(s),t[r-1]instanceof Vr&&e.push(Kl(t[r-1].sourceSpan.end)))}return t[t.length-1]instanceof Vr&&e.push(Kl(t[t.length-1].sourceSpan.end)),{messageParts:e,placeHolders:n}}function Kl(t){return new mr("",new W(t,t))}var bf="ngI18nClosureMode",UC="i18n_",VC="I18N_EXP_",Df="\uFFFD",qC="MSG_";function _f(t){return`${qC}${t}`.toUpperCase()}function HC(t){return new rt(t.name,void 0,Pt,void 0,t.sourceSpan)}function GC(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 p of t.units)for(let d of p.ops())if(d.kind===f.ExtractedAttribute&&d.i18nContext!==null){let m=(c=n.get(d.i18nContext))!=null?c:[];m.push(d),n.set(d.i18nContext,m)}else if(d.kind===f.I18nAttributes)r.set(d.target,d);else if(d.kind===f.I18nExpression&&d.usage===rs.I18nAttribute){let m=(u=s.get(d.target))!=null?u:[];m.push(d),s.set(d.target,m)}else d.kind===f.I18nMessage&&i.set(d.xref,d);let o=new Map,l=new Map;for(let p of t.units)for(let d of p.create)if(d.kind===f.I18nMessage){if(d.messagePlaceholder===null){let{mainVar:m,statements:g}=km(t,e,i,d);if(d.i18nBlock!==null){let E=t.addConst(m,g);l.set(d.i18nBlock,E)}else{t.constsInitializers.push(...g),o.set(d.i18nContext,m);let E=n.get(d.i18nContext);if(E!==void 0)for(let w of E)w.expression=m.clone()}}A.remove(d)}for(let p of t.units)for(let d of p.create)if(br(d)){let m=r.get(d.xref);if(m===void 0)continue;let g=s.get(d.xref);if(g===void 0)throw new Error("AssertionError: Could not find any i18n expressions associated with an I18nAttributes instruction");let E=new Set;g=g.filter(x=>{let _=E.has(x.name);return E.add(x.name),!_});let w=g.flatMap(x=>{let _=o.get(x.context);if(_===void 0)throw new Error("AssertionError: Could not find i18n expression's value");return[v(x.name),_]});m.i18nAttributesConfig=t.addConst(new gt(w))}for(let p of t.units)for(let d of p.create)if(d.kind===f.I18nStart){let m=l.get(d.root);if(m===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?");d.messageIndex=m}}function km(t,e,n,r){var u;let s=[],i=new Map;for(let p of r.subMessages){let d=n.get(p),{mainVar:m,statements:g}=km(t,e,n,d);s.push(...g);let E=(u=i.get(d.messagePlaceholder))!=null?u:[];E.push(m),i.set(d.messagePlaceholder,E)}WC(r,i),r.params=new Map([...r.params.entries()].sort());let o=Y(t.pool.uniqueName(UC)),l=zC(t.pool,r.message.id,e,t.i18nUseExternalIds),c;if(r.needsPostprocessing||r.postprocessingParams.size>0){let p=Object.fromEntries([...r.postprocessingParams.entries()].sort()),d=Ou(p,!1),m=[];r.postprocessingParams.size>0&&m.push(Qc(d,!0)),c=g=>B(h.i18nPostprocess).callFn([g,...m])}return s.push(...jC(r.message,o,l,r.params,c)),{mainVar:o,statements:s}}function WC(t,e){for(let[n,r]of e)r.length===1?t.params.set(n,r[0]):(t.params.set(n,v(`${Df}${VC}${n}${Df}`)),t.postprocessingParams.set(n,ue(r)))}function jC(t,e,n,r,s){let i=Object.fromEntries(r),o=[HC(e),vo(KC(),PC(e,t,n,i),OC(e,t,Ou(i,!1)))];return s&&o.push(new Lt(e.set(s(e)))),o}function KC(){return ri(Y(bf)).notIdentical(v("undefined",Lu)).and(Y(bf))}function zC(t,e,n,r){let s,i=n;if(r){let o=_f("EXTERNAL_"),l=t.uniqueName(i);s=`${o}${Di(e)}$$${l}`}else{let o=_f(i);s=t.uniqueName(o)}return Y(s)}function XC(t){var e,n,r;for(let s of t.units){let i=null,o=null,l=new Map,c=new Map,u=new Map;for(let p of s.create)switch(p.kind){case f.I18nStart:if(p.context===null)throw Error("I18n op should have its context set.");i=p;break;case f.I18nEnd:i=null;break;case f.IcuStart:if(p.context===null)throw Error("Icu op should have its context set.");o=p;break;case f.IcuEnd:o=null;break;case f.Text:if(i!==null)if(l.set(p.xref,i),c.set(p.xref,o),p.icuPlaceholder!==null){let d=CT(t.allocateXrefId(),p.icuPlaceholder,[p.initialValue]);A.replace(p,d),u.set(p.xref,d)}else A.remove(p);break}for(let p of s.update)switch(p.kind){case f.InterpolateText:if(!l.has(p.target))continue;let d=l.get(p.target),m=c.get(p.target),g=u.get(p.target),E=m?m.context:d.context,w=m?Xs.Postproccessing:Xs.Creation,x=[];for(let _=0;_<p.interpolation.expressions.length;_++){let D=p.interpolation.expressions[_];x.push(fm(E,d.xref,d.xref,d.handle,D,(e=g==null?void 0:g.xref)!=null?e:null,(n=p.interpolation.i18nPlaceholders[_])!=null?n:null,w,rs.I18nText,"",(r=D.sourceSpan)!=null?r:p.sourceSpan))}A.replaceWithMany(p,x),g!==void 0&&(g.strings=p.interpolation.strings);break}}}function YC(t){for(let e of t.units)for(let n of e.create)switch(n.kind){case f.ElementStart:case f.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=QC(n.localRefs);n.localRefs=t.addConst(r)}else n.localRefs=null;break}}function QC(t){let e=[];for(let n of t)e.push(v(n.name),v(n.target));return ue(e)}function JC(t){for(let e of t.units){let n=tt.HTML;for(let r of e.create)r.kind===f.ElementStart&&r.namespace!==n&&(A.insertBefore(gT(r.namespace),r),n=r.namespace)}}function ZC(t){let e=[],n=0,r=0,s=0,i=0,o=0,l=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:!l&&r===0&&s===0&&(l=Rm(t.substring(o,n-1).trim()),i=n);break;case 59:if(l&&i>0&&r===0&&s===0){let u=t.substring(i,n-1).trim();e.push(l,u),o=n,i=0,l=null}break}if(l&&i){let c=t.slice(i).trim();e.push(l,c)}return e}function Rm(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function eA(t){let e=new Map;for(let n of t.units)for(let r of n.create)br(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.create)if(r.kind===f.ExtractedAttribute&&r.bindingKind===U.Attribute&&dm(r.expression)){let s=e.get(r.target);if(s!==void 0&&s.kind===f.Template&&s.templateKind===At.Structural)continue;if(r.name==="style"){let i=ZC(r.expression.value);for(let o=0;o<i.length-1;o+=2)A.insertBefore(Kt(r.target,U.StyleProperty,null,i[o],v(i[o+1]),null,null,ve.STYLE),r);A.remove(r)}else if(r.name==="class"){let i=r.expression.value.trim().split(/\s+/g);for(let o of i)A.insertBefore(Kt(r.target,U.ClassName,null,o,null,null,null,ve.NONE),r);A.remove(r)}}}function tA(t){Ci(t.root,t.componentName,{index:0},t.compatibility===It.TemplateDefinitionBuilder)}function Ci(t,e,n,r){t.fnName===null&&(t.fnName=t.job.pool.uniqueName(Di(`${e}_${t.job.fnSuffix}`),!1));let s=new Map;for(let i of t.ops())switch(i.kind){case f.Property:case f.HostProperty:i.isAnimationTrigger&&(i.name="@"+i.name);break;case f.Listener:if(i.handlerFnName!==null)break;if(!i.hostListener&&i.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let o="";i.isAnimationListener&&(i.name=`@${i.name}.${i.animationPhase}`,o="animation"),i.hostListener?i.handlerFnName=`${e}_${o}${i.name}_HostBindingHandler`:i.handlerFnName=`${t.fnName}_${i.tag.replace("-","_")}_${o}${i.name}_${i.targetSlot.slot}_listener`,i.handlerFnName=Di(i.handlerFnName);break;case f.TwoWayListener:if(i.handlerFnName!==null)break;if(i.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");i.handlerFnName=Di(`${t.fnName}_${i.tag.replace("-","_")}_${i.name}_${i.targetSlot.slot}_listener`);break;case f.Variable:s.set(i.xref,nA(t,i.variable,n));break;case f.RepeaterCreate:if(!(t instanceof xn))throw new Error("AssertionError: must be compiling a component");if(i.handle.slot===null)throw new Error("Expected slot to be assigned");if(i.emptyView!==null){let u=t.job.views.get(i.emptyView);Ci(u,`${e}_${i.functionNameSuffix}Empty_${i.handle.slot+2}`,n,r)}Ci(t.job.views.get(i.xref),`${e}_${i.functionNameSuffix}_${i.handle.slot+1}`,n,r);break;case f.Projection:if(!(t instanceof xn))throw new Error("AssertionError: must be compiling a component");if(i.handle.slot===null)throw new Error("Expected slot to be assigned");if(i.fallbackView!==null){let u=t.job.views.get(i.fallbackView);Ci(u,`${e}_ProjectionFallback_${i.handle.slot}`,n,r)}break;case f.Template:if(!(t instanceof xn))throw new Error("AssertionError: must be compiling a component");let l=t.job.views.get(i.xref);if(i.handle.slot===null)throw new Error("Expected slot to be assigned");let c=i.functionNameSuffix.length===0?"":`_${i.functionNameSuffix}`;Ci(l,`${e}${c}_${i.handle.slot}`,n,r);break;case f.StyleProp:i.name=rA(i.name),r&&(i.name=kf(i.name));break;case f.ClassProp:r&&(i.name=kf(i.name));break}for(let i of t.ops())lt(i,o=>{if(!(!(o instanceof Hn)||o.name!==null)){if(!s.has(o.xref))throw new Error(`Variable ${o.xref} not yet named`);o.name=s.get(o.xref)}})}function nA(t,e,n){if(e.name===null)switch(e.kind){case We.Context:e.name=`ctx_r${n.index++}`;break;case We.Identifier:if(t.job.compatibility===It.TemplateDefinitionBuilder){let r=e.identifier==="ctx"?"i":"";e.name=`${e.identifier}_${r}r${++n.index}`}else e.name=`${e.identifier}_i${n.index++}`;break;default:e.name=`_r${++n.index}`;break}return e.name}function rA(t){return t.startsWith("--")?t:Rm(t)}function kf(t){let e=t.indexOf("!important");return e>-1?t.substring(0,e):t}function sA(t){for(let e of t.units){for(let n of e.create)(n.kind===f.Listener||n.kind===f.TwoWayListener)&&Rf(n.handlerOps);Rf(e.update)}}function Rf(t){for(let e of t){if(e.kind!==f.Statement||!(e.statement instanceof Lt)||!(e.statement.expr instanceof Ta))continue;let n=e.statement.expr.steps,r=!0;for(let s=e.next;s.kind!==f.ListEnd&&r;s=s.next)lt(s,(i,o)=>{if(!_n(i))return i;if(r&&!(o&ce.InChildOperation))switch(i.kind){case $.NextContext:i.steps+=n,A.remove(e),r=!1;break;case $.GetCurrentView:case $.Reference:case $.ContextLetReference:r=!1;break}})}}var iA="ng-container";function oA(t){for(let e of t.units){let n=new Set;for(let r of e.create)r.kind===f.ElementStart&&r.tag===iA&&(r.kind=f.ContainerStart,n.add(r.xref)),r.kind===f.ElementEnd&&n.has(r.xref)&&(r.kind=f.ContainerEnd)}}function aA(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 lA(t){let e=new Map;for(let n of t.units)for(let r of n.create)br(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.create)(r.kind===f.ElementStart||r.kind===f.ContainerStart)&&r.nonBindable&&A.insertAfter(dT(r.xref),r),(r.kind===f.ElementEnd||r.kind===f.ContainerEnd)&&aA(e,r.xref).nonBindable&&A.insertBefore(mT(r.xref),r)}function cA(t){for(let e of t.units)for(let n of e.ops())Ve(n,r=>{if(!(r instanceof le)||r.operator!==b.NullishCoalesce)return r;let s=new fn(r.lhs.clone(),t.allocateXrefId()),i=new Jn(s.xref);return new ln(new le(b.And,new le(b.NotIdentical,s,Bs),new le(b.NotIdentical,i,new Pe(void 0))),i.clone(),r.rhs)},ce.None)}function Fn(t){return e=>e.kind===t}function Ri(t,e){return n=>n.kind===t&&e===n.expression instanceof Le}function uA(t){return t.kind===f.Listener&&!(t.hostListener&&t.isAnimationListener)||t.kind===f.TwoWayListener}function pA(t){return(t.kind===f.Property||t.kind===f.TwoWayProperty)&&!(t.expression instanceof Le)}var hA=[{test:t=>t.kind===f.Listener&&t.hostListener&&t.isAnimationListener},{test:uA}],fA=[{test:Fn(f.StyleMap),transform:qa},{test:Fn(f.ClassMap),transform:qa},{test:Fn(f.StyleProp)},{test:Fn(f.ClassProp)},{test:Ri(f.Attribute,!0)},{test:Ri(f.Property,!0)},{test:pA},{test:Ri(f.Attribute,!1)}],dA=[{test:Ri(f.HostProperty,!0)},{test:Ri(f.HostProperty,!1)},{test:Fn(f.Attribute)},{test:Fn(f.StyleMap),transform:qa},{test:Fn(f.ClassMap),transform:qa},{test:Fn(f.StyleProp)},{test:Fn(f.ClassProp)}],Pf=new Set([f.Listener,f.TwoWayListener,f.StyleMap,f.ClassMap,f.StyleProp,f.ClassProp,f.Property,f.TwoWayProperty,f.HostProperty,f.Attribute]);function mA(t){for(let e of t.units){Mf(e.create,hA);let n=e.job.kind===k.Host?dA:fA;Mf(e.update,n)}}function Mf(t,e){let n=[],r=null;for(let s of t){let i=Ea(s)?s.target:null;(!Pf.has(s.kind)||i!==r&&r!==null&&i!==null)&&(A.insertBefore(Lf(n,e),s),n=[],r=null),Pf.has(s.kind)&&(n.push(s),A.remove(s),r=i!=null?i:r)}t.push(Lf(n,e))}function Lf(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 qa(t){return t.slice(t.length-1)}function gA(t){for(let e of t.units){let n=Xu(e);for(let r of e.ops())switch(r.kind){case f.Binding:let s=vA(n,r.target);yA(r.name)&&s.kind===f.Projection&&A.remove(r);break}}}function yA(t){return t.toLowerCase()==="select"}function vA(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an slottable target.");return n}function SA(t){for(let e of t.units)EA(e)}function EA(t){for(let e of t.update)lt(e,(n,r)=>{if(_n(n)&&n.kind===$.PipeBinding){if(r&ce.InChildOperation)throw new Error("AssertionError: pipe bindings should not appear in child expressions");if(t.job.compatibility){if(e.target==null)throw new Error("AssertionError: expected slot handle to be assigned for pipe creation");wA(t,e.target,n)}else t.create.push(ym(n.target,n.targetSlot,n.name))}})}function wA(t,e,n){for(let r=t.create.head.next;r.kind!==f.ListEnd;r=r.next){if(!oi(r)||r.xref!==e)continue;for(;r.next.kind===f.Pipe;)r=r.next;let s=ym(n.target,n.targetSlot,n.name);A.insertBefore(s,r.next);return}throw new Error(`AssertionError: unable to find insertion point for pipe ${n.name}`)}function TA(t){for(let e of t.units)for(let n of e.update)Ve(n,r=>!(r instanceof os)||r.args.length<=4?r:new Aa(r.target,r.targetSlot,r.name,ue(r.args),r.args.length),ce.None)}function xA(t){Pm(t.root,0)}function Pm(t,e){let n=null;for(let r of t.create)switch(r.kind){case f.I18nStart:r.subTemplateIndex=e===0?null:e,n=r;break;case f.I18nEnd:n.subTemplateIndex===null&&(e=0),n=null;break;case f.Template:e=zl(t.job.views.get(r.xref),n,r.i18nPlaceholder,e);break;case f.RepeaterCreate:let s=t.job.views.get(r.xref);e=zl(s,n,r.i18nPlaceholder,e),r.emptyView!==null&&(e=zl(t.job.views.get(r.emptyView),n,r.emptyI18nPlaceholder,e));break}return e}function zl(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++,CA(t,e)}return Pm(t,r)}function CA(t,e){var n;if(((n=t.create.head.next)==null?void 0:n.kind)!==f.I18nStart){let r=t.job.allocateXrefId();A.insertAfter(sl(r,e.message,e.root,null),t.create.head),A.insertBefore(il(r,null),t.create.tail)}}function AA(t){for(let e of t.units)for(let n of e.ops())lt(n,r=>{if(!(r instanceof is)||r.body===null)return;let s=new gu(r.args.length);r.fn=t.pool.getSharedConstant(s,r.body),r.body=null})}var gu=class extends Rs{constructor(n){super();a(this,"numArgs");this.numArgs=n}keyOf(n){return n instanceof Ys?`param(${n.index})`:super.keyOf(n)}toSharedConstantDeclaration(n,r){let s=[];for(let o=0;o<this.numArgs;o++)s.push(new je("a"+o));let i=P(r,o=>o instanceof Ys?Y("a"+o.index):o,ce.None);return new rt(n,new Gn(s,i),void 0,Ue.Final)}};function IA(t){for(let e of t.units)for(let n of e.update)Ve(n,(r,s)=>s&ce.InChildOperation?r:r instanceof gt?NA(r):r instanceof Yt?bA(r):r,ce.None)}function NA(t){let e=[],n=[];for(let r of t.entries)if(r.isConstant())e.push(r);else{let s=n.length;n.push(r),e.push(new Ys(s))}return new is(ue(e),n)}function bA(t){let e=[],n=[];for(let r of t.entries)if(r.value.isConstant())e.push(r);else{let s=n.length;n.push(r.value),e.push(new zr(r.key,new Ys(s),r.quoted))}return new is(st(e),n)}function DA(t,e,n,r,s){return ol(h.element,t,e,n,r,s)}function _A(t,e,n,r,s){return ol(h.elementStart,t,e,n,r,s)}function ol(t,e,n,r,s,i){let o=[v(e)];return n!==null&&o.push(v(n)),s!==null?o.push(v(r),v(s)):r!==null&&o.push(v(r)),ne(t,o,i)}function kA(t){return ne(h.elementEnd,[],t)}function RA(t,e,n,r){return ol(h.elementContainerStart,t,null,e,n,r)}function PA(t,e,n,r){return ol(h.elementContainer,t,null,e,n,r)}function MA(){return ne(h.elementContainerEnd,[],null)}function LA(t,e,n,r,s,i,o,l){let c=[v(t),e,v(n),v(r),v(s),v(i)];for(o!==null&&(c.push(v(o)),c.push(B(h.templateRefExtractor)));c[c.length-1].isEquivalent(Bs);)c.pop();return ne(h.templateCreate,c,l)}function OA(){return ne(h.disableBindings,[],null)}function FA(){return ne(h.enableBindings,[],null)}function BA(t,e,n,r,s){let i=[v(t),e];return n!==null&&(i.push(v(!1)),i.push(B(n))),ne(r?h.syntheticHostListener:h.listener,i,s)}function Of(t,e){return B(h.twoWayBindingSet).callFn([t,e])}function $A(t,e,n){return ne(h.twoWayListener,[v(t),e],n)}function UA(t,e){return ne(h.pipe,[v(t),v(e)],null)}function VA(){return ne(h.namespaceHTML,[],null)}function qA(){return ne(h.namespaceSVG,[],null)}function HA(){return ne(h.namespaceMathML,[],null)}function GA(t,e){return ne(h.advance,t>1?[v(t)]:[],e)}function WA(t){return B(h.reference).callFn([v(t)])}function jA(t){return B(h.nextContext).callFn(t===1?[]:[v(t)])}function KA(){return B(h.getCurrentView).callFn([])}function zA(t){return B(h.restoreView).callFn([t])}function XA(t){return B(h.resetView).callFn([t])}function YA(t,e,n){let r=[v(t,null)];return e!==""&&r.push(v(e)),ne(h.text,r,n)}function QA(t,e,n,r,s,i,o,l,c,u,p){let d=[v(t),v(e),n!=null?n:v(null),v(r),v(s),v(i),o!=null?o:v(null),l!=null?l:v(null),c?B(h.deferEnableTimerScheduling):v(null),v(p)],m;for(;(m=d[d.length-1])!==null&&m instanceof Pe&&m.value===null;)d.pop();return ne(h.defer,d,u)}var JA=new Map([[fe.Idle,{none:h.deferOnIdle,prefetch:h.deferPrefetchOnIdle,hydrate:h.deferHydrateOnIdle}],[fe.Immediate,{none:h.deferOnImmediate,prefetch:h.deferPrefetchOnImmediate,hydrate:h.deferHydrateOnImmediate}],[fe.Timer,{none:h.deferOnTimer,prefetch:h.deferPrefetchOnTimer,hydrate:h.deferHydrateOnTimer}],[fe.Hover,{none:h.deferOnHover,prefetch:h.deferPrefetchOnHover,hydrate:h.deferHydrateOnHover}],[fe.Interaction,{none:h.deferOnInteraction,prefetch:h.deferPrefetchOnInteraction,hydrate:h.deferHydrateOnInteraction}],[fe.Viewport,{none:h.deferOnViewport,prefetch:h.deferPrefetchOnViewport,hydrate:h.deferHydrateOnViewport}],[fe.Never,{none:h.deferHydrateNever,prefetch:h.deferHydrateNever,hydrate:h.deferHydrateNever}]]);function ZA(t,e,n,r){var i;let s=(i=JA.get(t))==null?void 0:i[n];if(s===void 0)throw new Error(`Unable to determine instruction for trigger ${t}`);return ne(s,e.map(o=>v(o)),r)}function eI(t){return ne(h.projectionDef,t?[t]:[],null)}function tI(t,e,n,r,s,i,o){let l=[v(t)];return(e!==0||n!==null||r!==null)&&(l.push(v(e)),n!==null&&l.push(n),r!==null&&(n===null&&l.push(v(null)),l.push(Y(r),v(s),v(i)))),ne(h.projection,l,o)}function nI(t,e,n,r){let s=[v(t),v(e)];return n!==null&&s.push(v(n)),ne(h.i18nStart,s,r)}function rI(t,e,n,r,s,i,o,l,c,u,p,d,m,g){let E=[v(t),Y(e),v(n),v(r),v(s),v(i),o];return(l||c!==null)&&(E.push(v(l)),c!==null&&(E.push(Y(c),v(u),v(p)),(d!==null||m!==null)&&E.push(v(d)),m!==null&&E.push(v(m)))),ne(h.repeaterCreate,E,g)}function sI(t,e){return ne(h.repeater,[t],e)}function iI(t,e,n){return t==="prefetch"?ne(h.deferPrefetchWhen,[e],n):t==="hydrate"?ne(h.deferHydrateWhen,[e],n):ne(h.deferWhen,[e],n)}function oI(t,e){return ne(h.declareLet,[v(t)],e)}function aI(t,e){return B(h.storeLet).callFn([t],e)}function lI(t){return B(h.readContextLet).callFn([v(t)])}function cI(t,e,n,r){let s=[v(t),v(e)];return n&&s.push(v(n)),ne(h.i18n,s,r)}function uI(t){return ne(h.i18nEnd,[],t)}function pI(t,e){let n=[v(t),v(e)];return ne(h.i18nAttributes,n,null)}function hI(t,e,n,r){let s=[v(t),e];return n!==null&&s.push(n),ne(h.property,s,r)}function fI(t,e,n,r){let s=[v(t),e];return n!==null&&s.push(n),ne(h.twoWayProperty,s,r)}function dI(t,e,n,r){let s=[v(t),e];return(n!==null||r!==null)&&s.push(n!=null?n:v(null)),r!==null&&s.push(v(r)),ne(h.attribute,s,null)}function mI(t,e,n,r){let s=[v(t),e];return n!==null&&s.push(v(n)),ne(h.styleProp,s,r)}function gI(t,e,n){return ne(h.classProp,[v(t),e],n)}function yI(t,e){return ne(h.styleMap,[t],e)}function vI(t,e){return ne(h.classMap,[t],e)}var Ff=[h.pipeBind1,h.pipeBind2,h.pipeBind3,h.pipeBind4];function SI(t,e,n){if(n.length<1||n.length>Ff.length)throw new Error("pipeBind() argument count out of bounds");let r=Ff[n.length-1];return B(r).callFn([v(t),v(e),...n])}function EI(t,e,n){return B(h.pipeBindV).callFn([v(t),v(e),n])}function wI(t,e,n){let r=ai(t,e);return li(MI,[],r,[],n)}function TI(t,e){return ne(h.i18nExp,[t],e)}function xI(t,e){return ne(h.i18nApply,[v(t)],e)}function CI(t,e,n,r,s){let i=ai(e,n),o=[];return r!==null&&o.push(r),li(LI,[v(t)],i,o,s)}function AI(t,e,n,r,s){let i=ai(e,n),o=[];return r!==null&&o.push(r),li(FI,[v(t)],i,o,s)}function II(t,e,n,r,s){let i=ai(e,n),o=[];return r!==null&&o.push(v(r)),li(OI,[v(t)],i,o,s)}function NI(t,e,n){let r=ai(t,e);return li(BI,[],r,[],n)}function bI(t,e,n){let r=ai(t,e);return li($I,[],r,[],n)}function DI(t,e,n,r){let s=[v(t),e];return n!==null&&s.push(n),ne(h.hostProperty,s,r)}function _I(t,e,n){return ne(h.syntheticHostProperty,[v(t),e],n)}function kI(t,e,n){return Mm(UI,[v(t),e],n,[],null)}function RI(t,e){return ne(h.attachSourceLocations,[v(t),e],null)}function ai(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(v(t[r]),e[r]);n.push(v(t[r]))}return n}function ne(t,e,n){let r=B(t).callFn(e,n);return hn(new Lt(r,n))}function PI(t,e,n){let r=[t];return e!==null&&r.push(e),ne(h.conditional,r,n)}var MI={constant:[h.textInterpolate,h.textInterpolate1,h.textInterpolate2,h.textInterpolate3,h.textInterpolate4,h.textInterpolate5,h.textInterpolate6,h.textInterpolate7,h.textInterpolate8],variable:h.textInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},LI={constant:[h.propertyInterpolate,h.propertyInterpolate1,h.propertyInterpolate2,h.propertyInterpolate3,h.propertyInterpolate4,h.propertyInterpolate5,h.propertyInterpolate6,h.propertyInterpolate7,h.propertyInterpolate8],variable:h.propertyInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},OI={constant:[h.styleProp,h.stylePropInterpolate1,h.stylePropInterpolate2,h.stylePropInterpolate3,h.stylePropInterpolate4,h.stylePropInterpolate5,h.stylePropInterpolate6,h.stylePropInterpolate7,h.stylePropInterpolate8],variable:h.stylePropInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},FI={constant:[h.attribute,h.attributeInterpolate1,h.attributeInterpolate2,h.attributeInterpolate3,h.attributeInterpolate4,h.attributeInterpolate5,h.attributeInterpolate6,h.attributeInterpolate7,h.attributeInterpolate8],variable:h.attributeInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},BI={constant:[h.styleMap,h.styleMapInterpolate1,h.styleMapInterpolate2,h.styleMapInterpolate3,h.styleMapInterpolate4,h.styleMapInterpolate5,h.styleMapInterpolate6,h.styleMapInterpolate7,h.styleMapInterpolate8],variable:h.styleMapInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},$I={constant:[h.classMap,h.classMapInterpolate1,h.classMapInterpolate2,h.classMapInterpolate3,h.classMapInterpolate4,h.classMapInterpolate5,h.classMapInterpolate6,h.classMapInterpolate7,h.classMapInterpolate8],variable:h.classMapInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},UI={constant:[h.pureFunction0,h.pureFunction1,h.pureFunction2,h.pureFunction3,h.pureFunction4,h.pureFunction5,h.pureFunction6,h.pureFunction7,h.pureFunction8],variable:h.pureFunctionV,mapping:t=>t};function Mm(t,e,n,r,s){let i=t.mapping(n.length);if(i<t.constant.length)return B(t.constant[i]).callFn([...e,...n,...r],s);if(t.variable!==null)return B(t.variable).callFn([...e,ue(n),...r],s);throw new Error("AssertionError: unable to call variadic function")}function li(t,e,n,r,s){return hn(Mm(t,e,n,r,s).toStmt())}var VI=new Map([["window",h.resolveWindow],["document",h.resolveDocument],["body",h.resolveBody]]);function qI(t){for(let e of t.units)HI(e,e.create),Yu(e,e.update)}function HI(t,e){var n,r,s,i,o,l,c;for(let u of e)switch(Ve(u,Lm,ce.None),u.kind){case f.Text:A.replace(u,YA(u.handle.slot,u.initialValue,u.sourceSpan));break;case f.ElementStart:A.replace(u,_A(u.handle.slot,u.tag,u.attributes,u.localRefs,u.startSourceSpan));break;case f.Element:A.replace(u,DA(u.handle.slot,u.tag,u.attributes,u.localRefs,u.wholeSourceSpan));break;case f.ElementEnd:A.replace(u,kA(u.sourceSpan));break;case f.ContainerStart:A.replace(u,RA(u.handle.slot,u.attributes,u.localRefs,u.startSourceSpan));break;case f.Container:A.replace(u,PA(u.handle.slot,u.attributes,u.localRefs,u.wholeSourceSpan));break;case f.ContainerEnd:A.replace(u,MA());break;case f.I18nStart:A.replace(u,nI(u.handle.slot,u.messageIndex,u.subTemplateIndex,u.sourceSpan));break;case f.I18nEnd:A.replace(u,uI(u.sourceSpan));break;case f.I18n:A.replace(u,cI(u.handle.slot,u.messageIndex,u.subTemplateIndex,u.sourceSpan));break;case f.I18nAttributes:if(u.i18nAttributesConfig===null)throw new Error("AssertionError: i18nAttributesConfig was not set");A.replace(u,pI(u.handle.slot,u.i18nAttributesConfig));break;case f.Template:if(!(t instanceof xn))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(u.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let p=t.job.views.get(u.xref);A.replace(u,LA(u.handle.slot,Y(p.fnName),p.decls,p.vars,u.tag,u.attributes,u.localRefs,u.startSourceSpan));break;case f.DisableBindings:A.replace(u,OA());break;case f.EnableBindings:A.replace(u,FA());break;case f.Pipe:A.replace(u,UA(u.handle.slot,u.name));break;case f.DeclareLet:A.replace(u,oI(u.handle.slot,u.sourceSpan));break;case f.Listener:let d=Bf(t,u.handlerFnName,u.handlerOps,u.consumesDollarEvent),m=u.eventTarget?VI.get(u.eventTarget):null;if(m===void 0)throw new Error(`Unexpected global target '${u.eventTarget}' defined for '${u.name}' event. Supported list of global targets: window,document,body.`);A.replace(u,BA(u.name,d,m,u.hostListener&&u.isAnimationListener,u.sourceSpan));break;case f.TwoWayListener:A.replace(u,$A(u.name,Bf(t,u.handlerFnName,u.handlerOps,!0),u.sourceSpan));break;case f.Variable:if(u.variable.name===null)throw new Error(`AssertionError: unnamed variable ${u.xref}`);A.replace(u,hn(new rt(u.variable.name,u.initializer,void 0,Ue.Final)));break;case f.Namespace:switch(u.active){case tt.HTML:A.replace(u,VA());break;case tt.SVG:A.replace(u,qA());break;case tt.Math:A.replace(u,HA());break}break;case f.Defer:let g=!!u.loadingMinimumTime||!!u.loadingAfterTime||!!u.placeholderMinimumTime;A.replace(u,QA(u.handle.slot,u.mainSlot.slot,u.resolverFn,(r=(n=u.loadingSlot)==null?void 0:n.slot)!=null?r:null,(i=(s=u.placeholderSlot)==null?void 0:s.slot)!=null?i:null,(l=(o=u.errorSlot)==null?void 0:o.slot)!=null?l:null,u.loadingConfig,u.placeholderConfig,g,u.sourceSpan,u.flags));break;case f.DeferOn:let E=[];switch(u.trigger.kind){case fe.Never:case fe.Idle:case fe.Immediate:break;case fe.Timer:E=[u.trigger.delay];break;case fe.Interaction:case fe.Hover:case fe.Viewport:if(u.modifier==="hydrate")E=[];else{if(((c=u.trigger.targetSlot)==null?void 0:c.slot)==null||u.trigger.targetSlotViewSteps===null)throw new Error(`Slot or view steps not set in trigger reification for trigger kind ${u.trigger.kind}`);E=[u.trigger.targetSlot.slot],u.trigger.targetSlotViewSteps!==0&&E.push(u.trigger.targetSlotViewSteps)}break;default:throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${u.trigger.kind}`)}A.replace(u,ZA(u.trigger.kind,E,u.modifier,u.sourceSpan));break;case f.ProjectionDef:A.replace(u,eI(u.def));break;case f.Projection:if(u.handle.slot===null)throw new Error("No slot was assigned for project instruction");let w=null,x=null,_=null;if(u.fallbackView!==null){if(!(t instanceof xn))throw new Error("AssertionError: must be compiling a component");let oe=t.job.views.get(u.fallbackView);if(oe===void 0)throw new Error("AssertionError: projection had fallback view xref, but fallback view was not found");if(oe.fnName===null||oe.decls===null||oe.vars===null)throw new Error("AssertionError: expected projection fallback view to have been named and counted");w=oe.fnName,x=oe.decls,_=oe.vars}A.replace(u,tI(u.handle.slot,u.projectionSlotIndex,u.attributes,w,x,_,u.sourceSpan));break;case f.RepeaterCreate:if(u.handle.slot===null)throw new Error("No slot was assigned for repeater instruction");if(!(t instanceof xn))throw new Error("AssertionError: must be compiling a component");let D=t.job.views.get(u.xref);if(D.fnName===null)throw new Error("AssertionError: expected repeater primary view to have been named");let H=null,V=null,ee=null;if(u.emptyView!==null){let oe=t.job.views.get(u.emptyView);if(oe===void 0)throw new Error("AssertionError: repeater had empty view xref, but empty view was not found");if(oe.fnName===null||oe.decls===null||oe.vars===null)throw new Error("AssertionError: expected repeater empty view to have been named and counted");H=oe.fnName,V=oe.decls,ee=oe.vars}A.replace(u,rI(u.handle.slot,D.fnName,u.decls,u.vars,u.tag,u.attributes,GI(t,u),u.usesComponentInstance,H,V,ee,u.emptyTag,u.emptyAttributes,u.wholeSourceSpan));break;case f.SourceLocation:let ae=ue(u.locations.map(({targetSlot:oe,offset:Be,line:Vt,column:ms})=>{if(oe.slot===null)throw new Error("No slot was assigned for source location");return ue([v(oe.slot),v(Be),v(Vt),v(ms)])}));A.replace(u,RI(u.templatePath,ae));break;case f.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${f[u.kind]}`)}}function Yu(t,e){for(let n of e)switch(Ve(n,Lm,ce.None),n.kind){case f.Advance:A.replace(n,GA(n.delta,n.sourceSpan));break;case f.Property:n.expression instanceof Le?A.replace(n,CI(n.name,n.expression.strings,n.expression.expressions,n.sanitizer,n.sourceSpan)):A.replace(n,hI(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case f.TwoWayProperty:A.replace(n,fI(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case f.StyleProp:n.expression instanceof Le?A.replace(n,II(n.name,n.expression.strings,n.expression.expressions,n.unit,n.sourceSpan)):A.replace(n,mI(n.name,n.expression,n.unit,n.sourceSpan));break;case f.ClassProp:A.replace(n,gI(n.name,n.expression,n.sourceSpan));break;case f.StyleMap:n.expression instanceof Le?A.replace(n,NI(n.expression.strings,n.expression.expressions,n.sourceSpan)):A.replace(n,yI(n.expression,n.sourceSpan));break;case f.ClassMap:n.expression instanceof Le?A.replace(n,bI(n.expression.strings,n.expression.expressions,n.sourceSpan)):A.replace(n,vI(n.expression,n.sourceSpan));break;case f.I18nExpression:A.replace(n,TI(n.expression,n.sourceSpan));break;case f.I18nApply:A.replace(n,xI(n.handle.slot,n.sourceSpan));break;case f.InterpolateText:A.replace(n,wI(n.interpolation.strings,n.interpolation.expressions,n.sourceSpan));break;case f.Attribute:n.expression instanceof Le?A.replace(n,AI(n.name,n.expression.strings,n.expression.expressions,n.sanitizer,n.sourceSpan)):A.replace(n,dI(n.name,n.expression,n.sanitizer,n.namespace));break;case f.HostProperty:if(n.expression instanceof Le)throw new Error("not yet handled");n.isAnimationTrigger?A.replace(n,_I(n.name,n.expression,n.sourceSpan)):A.replace(n,DI(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case f.Variable:if(n.variable.name===null)throw new Error(`AssertionError: unnamed variable ${n.xref}`);A.replace(n,hn(new rt(n.variable.name,n.initializer,void 0,Ue.Final)));break;case f.Conditional:if(n.processed===null)throw new Error("Conditional test was not set.");A.replace(n,PI(n.processed,n.contextValue,n.sourceSpan));break;case f.Repeater:A.replace(n,sI(n.collection,n.sourceSpan));break;case f.DeferWhen:A.replace(n,iI(n.modifier,n.expr,n.sourceSpan));break;case f.StoreLet:throw new Error(`AssertionError: unexpected storeLet ${n.declaredName}`);case f.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of update op ${f[n.kind]}`)}}function Lm(t){if(!_n(t))return t;switch(t.kind){case $.NextContext:return jA(t.steps);case $.Reference:return WA(t.targetSlot.slot+1+t.offset);case $.LexicalRead:throw new Error(`AssertionError: unresolved LexicalRead of ${t.name}`);case $.TwoWayBindingSet:throw new Error("AssertionError: unresolved TwoWayBindingSet");case $.RestoreView:if(typeof t.view=="number")throw new Error("AssertionError: unresolved RestoreView");return zA(t.view);case $.ResetView:return XA(t.expr);case $.GetCurrentView:return KA();case $.ReadVariable:if(t.name===null)throw new Error(`Read of unnamed variable ${t.xref}`);return Y(t.name);case $.ReadTemporaryExpr:if(t.name===null)throw new Error(`Read of unnamed temporary ${t.xref}`);return Y(t.name);case $.AssignTemporaryExpr:if(t.name===null)throw new Error(`Assign of unnamed temporary ${t.xref}`);return Y(t.name).set(t.expr);case $.PureFunctionExpr:if(t.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");return kI(t.varOffset,t.fn,t.args);case $.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case $.PipeBinding:return SI(t.targetSlot.slot,t.varOffset,t.args);case $.PipeBindingVariadic:return EI(t.targetSlot.slot,t.varOffset,t.args);case $.SlotLiteralExpr:return v(t.slot.slot);case $.ContextLetReference:return lI(t.targetSlot.slot);case $.StoreLet:return aI(t.value,t.sourceSpan);case $.TrackContext:return Y("this");default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${$[t.kind]}`)}}function Bf(t,e,n,r){Yu(t,n);let s=[];for(let o of n){if(o.kind!==f.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${f[o.kind]}`);s.push(o.statement)}let i=[];return r&&i.push(new je("$event")),Wn(i,s,void 0,void 0,e)}function GI(t,e){if(e.trackByFn!==null)return e.trackByFn;let n=[new je("$index"),new je("$item")],r;if(e.trackByOps===null)r=e.usesComponentInstance?Wn(n,[new Xe(e.track)]):Qt(n,e.track);else{Yu(t,e.trackByOps);let s=[];for(let i of e.trackByOps){if(i.kind!==f.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${f[i.kind]}`);s.push(i.statement)}r=e.usesComponentInstance||s.length!==1||!(s[0]instanceof Xe)?Wn(n,s):Qt(n,s[0].value)}return e.trackByFn=t.job.pool.getSharedFunctionReference(r,"_forTrack"),e.trackByFn}function WI(t){for(let e of t.units)for(let n of e.update)switch(n.kind){case f.Attribute:case f.Binding:case f.ClassProp:case f.ClassMap:case f.Property:case f.StyleProp:case f.StyleMap:n.expression instanceof lo&&A.remove(n);break}}function jI(t){for(let e of t.units)for(let n of e.create)switch(n.kind){case f.I18nContext:A.remove(n);break;case f.I18nStart:n.context=null;break}}function KI(t){for(let e of t.units){let n=new Set;for(let r of e.update)switch(r.kind){case f.I18nExpression:n.add(r.i18nOwner)}for(let r of e.create)switch(r.kind){case f.I18nAttributes:if(n.has(r.xref))continue;A.remove(r)}}}function zI(t){for(let e of t.units)Ha(e,e.create),Ha(e,e.update)}function Ha(t,e){let n=new Map;n.set(t.xref,Y("ctx"));for(let r of e)switch(r.kind){case f.Variable:switch(r.variable.kind){case We.Context:n.set(r.variable.view,new Hn(r.xref));break}break;case f.Listener:case f.TwoWayListener:Ha(t,r.handlerOps);break;case f.RepeaterCreate:r.trackByOps!==null&&Ha(t,r.trackByOps);break}t===t.job.root&&n.set(t.xref,Y("ctx"));for(let r of e)Ve(r,s=>{if(s instanceof Qn){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},ce.None)}function XI(t){for(let e of t.units)$f(e.create),$f(e.update)}function $f(t){for(let e of t)(e.kind===f.Listener||e.kind===f.TwoWayListener)&&Ve(e,n=>n instanceof Ze&&n.name==="$event"?(e.kind===f.Listener&&(e.consumesDollarEvent=!0),new Mt(n.name)):n,ce.InChildOperation)}function YI(t){let e=new Map,n=new Map;for(let r of t.units)for(let s of r.create)switch(s.kind){case f.I18nContext:e.set(s.xref,s);break;case f.ElementStart:n.set(s.xref,s);break}ar(t,t.root,e,n)}function ar(t,e,n,r,s){let i=null,o=new Map;for(let l of e.create)switch(l.kind){case f.I18nStart:if(!l.context)throw Error("Could not find i18n context for i18n op");i={i18nBlock:l,i18nContext:n.get(l.context)};break;case f.I18nEnd:i=null;break;case f.ElementStart:if(l.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Uf(l,i.i18nContext,i.i18nBlock,s),s&&l.i18nPlaceholder.closeName&&o.set(l.xref,s),s=void 0}break;case f.ElementEnd:let c=r.get(l.xref);if(c&&c.i18nPlaceholder!==void 0){if(i===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");Vf(c,i.i18nContext,i.i18nBlock,o.get(l.xref)),o.delete(l.xref)}break;case f.Projection:if(l.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Uf(l,i.i18nContext,i.i18nBlock,s),Vf(l,i.i18nContext,i.i18nBlock,s),s=void 0}break;case f.Template:let u=t.views.get(l.xref);if(l.i18nPlaceholder===void 0)ar(t,u,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");l.templateKind===At.Structural?ar(t,u,n,r,l):(Xl(t,u,l.handle.slot,l.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),ar(t,u,n,r),Yl(t,u,l.handle.slot,l.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0)}break;case f.RepeaterCreate:if(s!==void 0)throw Error("AssertionError: Unexpected structural directive associated with @for block");let p=l.handle.slot+1,d=t.views.get(l.xref);if(l.i18nPlaceholder===void 0)ar(t,d,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Xl(t,d,p,l.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),ar(t,d,n,r),Yl(t,d,p,l.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}if(l.emptyView!==null){let m=l.handle.slot+2,g=t.views.get(l.emptyView);if(l.emptyI18nPlaceholder===void 0)ar(t,g,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Xl(t,g,m,l.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),ar(t,g,n,r),Yl(t,g,m,l.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}}break}}function Uf(t,e,n,r){let{startName:s,closeName:i}=t.i18nPlaceholder,o=me.ElementTag|me.OpenTag,l=t.handle.slot;r!==void 0&&(o|=me.TemplateTag,l={element:l,template:r.handle.slot}),i||(o|=me.CloseTag),ti(e.params,s,l,n.subTemplateIndex,o)}function Vf(t,e,n,r){let{closeName:s}=t.i18nPlaceholder;if(s){let i=me.ElementTag|me.CloseTag,o=t.handle.slot;r!==void 0&&(i|=me.TemplateTag,o={element:o,template:r.handle.slot}),ti(e.params,s,o,n.subTemplateIndex,i)}}function Xl(t,e,n,r,s,i,o){let{startName:l,closeName:c}=r,u=me.TemplateTag|me.OpenTag;c||(u|=me.CloseTag),o!==void 0&&ti(s.params,l,o.handle.slot,i.subTemplateIndex,u),ti(s.params,l,n,Om(t,i,e),u)}function Yl(t,e,n,r,s,i,o){let{closeName:l}=r,c=me.TemplateTag|me.CloseTag;l&&(ti(s.params,l,n,Om(t,i,e),c),o!==void 0&&ti(s.params,l,o.handle.slot,i.subTemplateIndex,c))}function Om(t,e,n){for(let r of n.create)if(r.kind===f.I18nStart)return r.subTemplateIndex;return e.subTemplateIndex}function ti(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 QI(t){var o;let e=new Map,n=new Map,r=new Map;for(let l of t.units)for(let c of l.create)switch(c.kind){case f.I18nStart:e.set(c.xref,c.subTemplateIndex);break;case f.I18nContext:n.set(c.xref,c);break;case f.IcuPlaceholder:r.set(c.xref,c);break}let s=new Map,i=l=>l.usage===rs.I18nText?l.i18nOwner:l.context;for(let l of t.units)for(let c of l.update)if(c.kind===f.I18nExpression){let u=s.get(i(c))||0,p=(o=e.get(c.i18nOwner))!=null?o:null,d={value:u,subTemplateIndex:p,flags:me.ExpressionIndex};JI(c,d,n,r),s.set(i(c),u+1)}}function JI(t,e,n,r){if(t.i18nPlaceholder!==null){let s=n.get(t.context),i=t.resolutionTime===Xs.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 ZI(t){for(let e of t.units)Ga(e,e.create,null),Ga(e,e.update,null)}function Ga(t,e,n){let r=new Map,s=new Map;for(let i of e)switch(i.kind){case f.Variable:switch(i.variable.kind){case We.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 We.Alias:if(r.has(i.variable.identifier))continue;r.set(i.variable.identifier,i.xref);break;case We.SavedView:n={view:i.variable.view,variable:i.xref};break}break;case f.Listener:case f.TwoWayListener:Ga(t,i.handlerOps,n);break;case f.RepeaterCreate:i.trackByOps!==null&&Ga(t,i.trackByOps,n);break}for(let i of e)i.kind==f.Listener||i.kind===f.TwoWayListener||Ve(i,o=>{if(o instanceof Ze)return s.has(o.name)?new Hn(s.get(o.name)):r.has(o.name)?new Hn(r.get(o.name)):new mt(new Qn(t.job.root.xref),o.name);if(o instanceof xa&&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 Hn(n.variable),o}else return o},ce.None);for(let i of e)lt(i,o=>{if(o instanceof Ze)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${o.name}`)})}var eN=new Map([[ve.HTML,h.sanitizeHtml],[ve.RESOURCE_URL,h.sanitizeResourceUrl],[ve.SCRIPT,h.sanitizeScript],[ve.STYLE,h.sanitizeStyle],[ve.URL,h.sanitizeUrl]]),tN=new Map([[ve.HTML,h.trustConstantHtml],[ve.RESOURCE_URL,h.trustConstantResourceUrl]]);function nN(t){var e,n;for(let r of t.units){let s=Xu(r);if(t.kind!==k.Host){for(let i of r.create)if(i.kind===f.ExtractedAttribute){let o=(e=tN.get(qf(i.securityContext)))!=null?e:null;i.trustedValueFn=o!==null?B(o):null}}for(let i of r.update)switch(i.kind){case f.Property:case f.Attribute:case f.HostProperty:let o=null;if(Array.isArray(i.securityContext)&&i.securityContext.length===2&&i.securityContext.indexOf(ve.URL)>-1&&i.securityContext.indexOf(ve.RESOURCE_URL)>-1?o=h.sanitizeUrlOrResourceUrl:o=(n=eN.get(qf(i.securityContext)))!=null?n:null,i.sanitizer=o!==null?B(o):null,i.sanitizer===null){let l=!1;if(t.kind===k.Host||i.kind===f.HostProperty)l=!0;else{let c=s.get(i.target);if(c===void 0||!br(c))throw Error("Property should have an element-like owner");l=rN(c)}l&&uC(i.name)&&(i.sanitizer=B(h.validateIframeAttribute))}break}}}function rN(t){var e;return t.kind===f.ElementStart&&((e=t.tag)==null?void 0:e.toLowerCase())==="iframe"}function qf(t){if(Array.isArray(t)){if(t.length>1)throw Error("AssertionError: Ambiguous security context");return t[0]||ve.NONE}return t}function sN(t){for(let e of t.units)for(let n of e.create)n.kind===f.TwoWayListener&&Ve(n,r=>{if(!(r instanceof Ca))return r;let{target:s,value:i}=r;if(s instanceof mt||s instanceof An)return Of(s,i).or(s.set(i));if(s instanceof Hn)return Of(s,i);throw new Error("Unsupported expression in two-way action binding.")},ce.InChildOperation)}function iN(t){for(let e of t.units){e.create.prepend([hr(e.job.allocateXrefId(),{kind:We.SavedView,name:null,view:e.xref},new Wc,Rt.None)]);for(let n of e.create){if(n.kind!==f.Listener&&n.kind!==f.TwoWayListener)continue;let r=e!==t.root;if(!r)for(let s of n.handlerOps)lt(s,i=>{(i instanceof wa||i instanceof ao)&&(r=!0)});r&&oN(e,n)}}}function oN(t,e){e.handlerOps.prepend([hr(t.job.allocateXrefId(),{kind:We.Context,name:null,view:t.xref},new xa(t.xref),Rt.None)]);for(let n of e.handlerOps)n.kind===f.Statement&&n.statement instanceof Xe&&(n.statement.value=new jc(n.statement.value))}function aN(t){let e=new Map;for(let n of t.units){let r=0;for(let s of n.create)oi(s)&&(s.handle.slot=r,e.set(s.xref,s.handle.slot),r+=s.numSlotsUsed);n.decls=r}for(let n of t.units)for(let r of n.ops())if(r.kind===f.Template||r.kind===f.RepeaterCreate){let s=t.views.get(r.xref);r.decls=s.decls}}function lN(t){for(let e of t.units)for(let n of e.update)if(n.kind===f.Binding)switch(n.bindingKind){case U.ClassName:if(n.expression instanceof Le)throw new Error("Unexpected interpolation in ClassName binding");A.replace(n,tT(n.target,n.name,n.expression,n.sourceSpan));break;case U.StyleProperty:A.replace(n,eT(n.target,n.name,n.expression,n.unit,n.sourceSpan));break;case U.Property:case U.Template:n.name==="style"?A.replace(n,nT(n.target,n.expression,n.sourceSpan)):n.name==="class"&&A.replace(n,rT(n.target,n.expression,n.sourceSpan));break}}function cN(t){for(let e of t.units)e.create.prepend(Wa(e.create)),e.update.prepend(Wa(e.update))}function Wa(t){let e=0,n=[];for(let r of t){let s=new Map;lt(r,(u,p)=>{p&ce.InChildOperation||u instanceof Jn&&s.set(u.xref,u)});let i=0,o=new Set,l=new Set,c=new Map;lt(r,(u,p)=>{p&ce.InChildOperation||(u instanceof fn?(o.has(u.xref)||(o.add(u.xref),c.set(u.xref,`tmp_${e}_${i++}`)),Hf(c,u)):u instanceof Jn&&(s.get(u.xref)===u&&(l.add(u.xref),i--),Hf(c,u)))}),n.push(...Array.from(new Set(c.values())).map(u=>hn(new rt(u)))),e++,r.kind===f.Listener||r.kind===f.TwoWayListener?r.handlerOps.prepend(Wa(r.handlerOps)):r.kind===f.RepeaterCreate&&r.trackByOps!==null&&r.trackByOps.prepend(Wa(r.trackByOps))}return n}function Hf(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 uN(t){for(let e of t.units)for(let n of e.create)if(n.kind===f.RepeaterCreate)if(n.track instanceof Mt&&n.track.name==="$index")n.trackByFn=B(h.repeaterTrackByIndex);else if(n.track instanceof Mt&&n.track.name==="$item")n.trackByFn=B(h.repeaterTrackByIdentity);else if(pN(t.root.xref,n.track))n.usesComponentInstance=!0,n.track.receiver.receiver.view===e.xref?n.trackByFn=n.track.receiver:(n.trackByFn=B(h.componentInstance).callFn([]).prop(n.track.receiver.name),n.track=n.trackByFn);else{n.track=P(n.track,s=>{if(s instanceof os||s instanceof Aa)throw new Error("Illegal State: Pipes are not allowed in this context");return s instanceof Qn?(n.usesComponentInstance=!0,new Gc(s.view)):s},ce.None);let r=new A;r.push(hn(new Xe(n.track,n.track.sourceSpan))),n.trackByOps=r}}function pN(t,e){if(!(e instanceof nt)||e.args.length===0||e.args.length>2||!(e.receiver instanceof mt&&e.receiver.receiver instanceof Qn)||e.receiver.receiver.view!==t)return!1;let[n,r]=e.args;return!(n instanceof Mt)||n.name!=="$index"?!1:e.args.length===1?!0:!(!(r instanceof Mt)||r.name!=="$item")}function hN(t){for(let e of t.units)for(let n of e.create)n.kind===f.RepeaterCreate&&(n.track=P(n.track,r=>{if(r instanceof Ze){if(n.varNames.$index.has(r.name))return Y("$index");if(r.name===n.varNames.$implicit)return Y("$item")}return r},ce.None))}function fN(t){for(let e of t.units){let n=0;for(let r of e.ops())Vl(r)&&(n+=dN(r));for(let r of e.ops())lt(r,s=>{_n(s)&&(t.compatibility===It.TemplateDefinitionBuilder&&s instanceof is||(of(s)&&(s.varOffset=n),Vl(s)&&(n+=Gf(s))))});if(t.compatibility===It.TemplateDefinitionBuilder)for(let r of e.ops())lt(r,s=>{!_n(s)||!(s instanceof is)||(of(s)&&(s.varOffset=n),Vl(s)&&(n+=Gf(s)))});e.vars=n}if(t instanceof uo)for(let e of t.units)for(let n of e.create){if(n.kind!==f.Template&&n.kind!==f.RepeaterCreate)continue;let r=t.views.get(n.xref);n.vars=r.vars}}function dN(t){let e;switch(t.kind){case f.Property:case f.HostProperty:case f.Attribute:return e=1,t.expression instanceof Le&&!mN(t.expression)&&(e+=t.expression.expressions.length),e;case f.TwoWayProperty:return 1;case f.StyleProp:case f.ClassProp:case f.StyleMap:case f.ClassMap:return e=2,t.expression instanceof Le&&(e+=t.expression.expressions.length),e;case f.InterpolateText:return t.interpolation.expressions.length;case f.I18nExpression:case f.Conditional:case f.DeferWhen:case f.StoreLet:return 1;case f.RepeaterCreate:return t.emptyView?1:0;default:throw new Error(`Unhandled op: ${f[t.kind]}`)}}function Gf(t){switch(t.kind){case $.PureFunctionExpr:return 1+t.args.length;case $.PipeBinding:return 1+t.args.length;case $.PipeBindingVariadic:return 1+t.numArgs;case $.StoreLet:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${t.constructor.name}`)}}function mN(t){return!(t.expressions.length!==1||t.strings.length!==2||t.strings[0]!==""||t.strings[1]!=="")}function gN(t){for(let e of t.units){Go(e.create),Go(e.update);for(let n of e.create)n.kind===f.Listener||n.kind===f.TwoWayListener?Go(n.handlerOps):n.kind===f.RepeaterCreate&&n.trackByOps!==null&&Go(n.trackByOps);Wo(e.create,t.compatibility),Wo(e.update,t.compatibility);for(let n of e.create)n.kind===f.Listener||n.kind===f.TwoWayListener?Wo(n.handlerOps,t.compatibility):n.kind===f.RepeaterCreate&&n.trackByOps!==null&&Wo(n.trackByOps,t.compatibility)}}var $e;(function(t){t[t.None=0]="None",t[t.ViewContextRead=1]="ViewContextRead",t[t.ViewContextWrite=2]="ViewContextWrite",t[t.SideEffectful=4]="SideEffectful"})($e||($e={}));function Go(t){let e=new Map;for(let n of t)n.kind===f.Variable&&n.flags&Rt.AlwaysInline&&(lt(n,r=>{if(_n(r)&&Qu(r)!==$e.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(n.xref,n)),Ve(n,r=>r instanceof Hn&&e.has(r.xref)?e.get(r.xref).initializer.clone():r,ce.None);for(let n of e.values())A.remove(n)}function Wo(t,e){let n=new Map,r=new Map,s=new Set,i=new Map;for(let u of t){if(u.kind===f.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,yN(u)),vN(u,r,s)}let o=!1;for(let u of t.reversed()){let p=i.get(u);if(u.kind===f.Variable&&r.get(u.xref)===0){if(o&&p.fences&$e.ViewContextWrite||p.fences&$e.SideEffectful){let d=hn(u.initializer.toStmt());i.set(d,p),A.replace(u,d)}else SN(u,r),A.remove(u);i.delete(u),n.delete(u.xref),r.delete(u.xref);continue}p.fences&$e.ViewContextRead&&(o=!0)}let l=[];for(let[u,p]of r){let m=!!(n.get(u).flags&Rt.AlwaysInline);p!==1||m||s.has(u)||l.push(u)}let c;for(;c=l.pop();){let u=n.get(c),p=i.get(u);if(!!(u.flags&Rt.AlwaysInline))throw new Error("AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.");for(let m=u.next;m.kind!==f.ListEnd;m=m.next){let g=i.get(m);if(g.variablesUsed.has(c)){if(e===It.TemplateDefinitionBuilder&&!wN(u,m))break;if(EN(c,u.initializer,m,p.fences)){g.variablesUsed.delete(c);for(let E of p.variablesUsed)g.variablesUsed.add(E);g.fences|=p.fences,n.delete(c),r.delete(c),i.delete(u),A.remove(u)}break}if(!Fm(g.fences,p.fences))break}}}function Qu(t){switch(t.kind){case $.NextContext:return $e.ViewContextRead|$e.ViewContextWrite;case $.RestoreView:return $e.ViewContextRead|$e.ViewContextWrite|$e.SideEffectful;case $.StoreLet:return $e.SideEffectful;case $.Reference:case $.ContextLetReference:return $e.ViewContextRead;default:return $e.None}}function yN(t){let e=$e.None,n=new Set;return lt(t,r=>{if(_n(r))switch(r.kind){case $.ReadVariable:n.add(r.xref);break;default:e|=Qu(r)}}),{fences:e,variablesUsed:n}}function vN(t,e,n){lt(t,(r,s)=>{if(!_n(r)||r.kind!==$.ReadVariable)return;let i=e.get(r.xref);i!==void 0&&(e.set(r.xref,i+1),s&ce.InChildOperation&&n.add(r.xref))})}function SN(t,e){lt(t,n=>{if(!_n(n)||n.kind!==$.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 Fm(t,e){if(t&$e.ViewContextWrite){if(e&$e.ViewContextRead)return!1}else if(t&$e.ViewContextRead&&e&$e.ViewContextWrite)return!1;return!0}function EN(t,e,n,r){let s=!1,i=!0;return Ve(n,(o,l)=>{if(!_n(o)||s||!i)return o;if(l&ce.InChildOperation&&r&$e.ViewContextRead)return o;switch(o.kind){case $.ReadVariable:if(o.xref===t)return s=!0,e;break;default:let c=Qu(o);i=i&&Fm(c,r);break}return o},ce.None),s}function wN(t,e){switch(t.variable.kind){case We.Identifier:return t.initializer instanceof Mt&&t.initializer.name==="ctx";case We.Context:return e.kind===f.Variable;default:return!0}}function TN(t){for(let e of t.units){let n=null,r=null;for(let s of e.create)switch(s.kind){case f.I18nStart:n=s;break;case f.I18nEnd:n=null;break;case f.IcuStart:n===null&&(r=t.allocateXrefId(),A.insertBefore(sl(r,s.message,void 0,null),s));break;case f.IcuEnd:r!==null&&(A.insertAfter(il(r,null),s),r=null);break}}}function xN(t){let e=new Set;for(let n of t.units)for(let r of n.ops())lt(r,s=>{s instanceof ao&&e.add(s.target)});for(let n of t.units)for(let r of n.update)Ve(r,s=>s instanceof oo&&!e.has(s.target)?s.value:s,ce.None)}function CN(t){for(let e of t.units)for(let n of e.update){if(n.kind!==f.Variable||n.variable.kind!==We.Identifier||!(n.initializer instanceof oo))continue;let r=n.variable.identifier,s=n;for(;s&&s.kind!==f.ListEnd;)Ve(s,i=>i instanceof Ze&&i.name===r?v(void 0):i,ce.None),s=s.prev}}function AN(t){for(let e of t.units)for(let n of e.update){if(n.kind!==f.StoreLet)continue;let r={kind:We.Identifier,name:null,identifier:n.declaredName,local:!0};A.replace(n,hr(t.allocateXrefId(),r,new oo(n.target,n.value,n.sourceSpan),Rt.None))}}function IN(t){if(!(!t.enableDebugLocations||t.relativeTemplatePath===null))for(let e of t.units){let n=[];for(let r of e.create)if(r.kind===f.ElementStart||r.kind===f.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(AT(t.relativeTemplatePath,n))}}var NN=[{kind:k.Tmpl,fn:gA},{kind:k.Host,fn:Ix},{kind:k.Tmpl,fn:JC},{kind:k.Tmpl,fn:xA},{kind:k.Tmpl,fn:TN},{kind:k.Both,fn:XT},{kind:k.Both,fn:lN},{kind:k.Both,fn:LT},{kind:k.Both,fn:RT},{kind:k.Tmpl,fn:zT},{kind:k.Both,fn:eA},{kind:k.Tmpl,fn:WI},{kind:k.Both,fn:$T},{kind:k.Both,fn:mA},{kind:k.Tmpl,fn:UT},{kind:k.Tmpl,fn:SA},{kind:k.Tmpl,fn:YT},{kind:k.Tmpl,fn:XC},{kind:k.Tmpl,fn:jT},{kind:k.Tmpl,fn:KI},{kind:k.Tmpl,fn:kT},{kind:k.Tmpl,fn:DT},{kind:k.Tmpl,fn:TA},{kind:k.Both,fn:IA},{kind:k.Tmpl,fn:wx},{kind:k.Tmpl,fn:AN},{kind:k.Tmpl,fn:Tx},{kind:k.Tmpl,fn:iN},{kind:k.Both,fn:NT},{kind:k.Both,fn:XI},{kind:k.Tmpl,fn:hN},{kind:k.Tmpl,fn:CN},{kind:k.Both,fn:ZI},{kind:k.Tmpl,fn:QT},{kind:k.Tmpl,fn:sN},{kind:k.Tmpl,fn:uN},{kind:k.Both,fn:zI},{kind:k.Both,fn:nN},{kind:k.Tmpl,fn:YC},{kind:k.Both,fn:cA},{kind:k.Both,fn:tx},{kind:k.Both,fn:cN},{kind:k.Both,fn:gN},{kind:k.Both,fn:xN},{kind:k.Tmpl,fn:aN},{kind:k.Tmpl,fn:YI},{kind:k.Tmpl,fn:QI},{kind:k.Tmpl,fn:gx},{kind:k.Tmpl,fn:GC},{kind:k.Tmpl,fn:Cx},{kind:k.Both,fn:GT},{kind:k.Tmpl,fn:jI},{kind:k.Both,fn:fN},{kind:k.Tmpl,fn:Ex},{kind:k.Both,fn:tA},{kind:k.Tmpl,fn:KT},{kind:k.Tmpl,fn:sA},{kind:k.Tmpl,fn:oA},{kind:k.Tmpl,fn:ex},{kind:k.Tmpl,fn:IN},{kind:k.Tmpl,fn:lA},{kind:k.Both,fn:AA},{kind:k.Both,fn:qI},{kind:k.Both,fn:BT}];function Bm(t,e){for(let n of NN)(n.kind===e||n.kind===k.Both)&&n.fn(t)}function bN(t,e){let n=Um(t.root);return $m(t.root,e),n}function $m(t,e){for(let n of t.job.units){if(n.parent!==t.xref)continue;$m(n,e);let r=Um(n);e.statements.push(r.toDeclStmt(r.name))}}function Um(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!==f.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${f[i.kind]}`);e.push(i.statement)}let n=[];for(let i of t.update){if(i.kind!==f.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${f[i.kind]}`);n.push(i.statement)}let r=ja(1,e),s=ja(2,n);return Wn([new je("rf"),new je("ctx")],[...r,...s],void 0,void 0,t.fnName)}function ja(t,e){return e.length===0?[]:[vo(new le(b.BitwiseAnd,Y("rf"),v(t)),e)]}function DN(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!==f.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${f[i.kind]}`);e.push(i.statement)}let n=[];for(let i of t.root.update){if(i.kind!==f.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${f[i.kind]}`);n.push(i.statement)}if(e.length===0&&n.length===0)return null;let r=ja(1,e),s=ja(2,n);return Wn([new je("rf"),new je("ctx")],[...r,...s],void 0,void 0,t.root.fnName)}var Vm=It.TemplateDefinitionBuilder,Gr=new mn,Wr="ng-template";function yu(t){return t instanceof ft}function _N(t){return yu(t)&&t.nodes.length===1&&t.nodes[0]instanceof ga}function kN(t,e,n,r,s,i,o,l,c){let u=new uo(t,n,Vm,r,s,i,o,l,c);return Zn(u.root,e),u}function RN(t,e,n){var s,i,o;let r=new ka(t.componentName,n,Vm);for(let l of(s=t.properties)!=null?s:[]){let c=U.Property;l.name.startsWith("attr.")&&(l.name=l.name.substring(5),c=U.Attribute),l.isAnimation&&(c=U.Animation);let u=e.calcPossibleSecurityContexts(t.componentSelector,l.name,c===U.Attribute).filter(p=>p!==ve.NONE);PN(r,l,c,u)}for(let[l,c]of(i=Object.entries(t.attributes))!=null?i:[]){let u=e.calcPossibleSecurityContexts(t.componentSelector,l,!0).filter(p=>p!==ve.NONE);MN(r,l,c,u)}for(let l of(o=t.events)!=null?o:[])LN(r,l);return r}function PN(t,e,n,r){let s,i=e.expression.ast;i instanceof Kn?s=new Le(i.strings,i.expressions.map(o=>z(o,t,e.sourceSpan)),[]):s=z(i,t,e.sourceSpan),t.root.update.push(ss(t.root.xref,n,e.name,s,null,r,!1,!1,null,null,e.sourceSpan))}function MN(t,e,n,r){let s=ss(t.root.xref,U.Attribute,e,n,null,r,!0,!1,null,null,n.sourceSpan);t.root.update.push(s)}function LN(t,e){let[n,r]=e.type!==Oe.Animation?[null,e.targetOrPhase]:[e.targetOrPhase,null],s=zu(t.root.xref,new Nt,e.name,null,Ju(t.root,e.handler,e.handlerSpan),n,r,!0,e.sourceSpan);t.root.create.push(s)}function Zn(t,e){for(let n of e)if(n instanceof de)ON(t,n);else if(n instanceof he)FN(t,n);else if(n instanceof xr)BN(t,n);else if(n instanceof nn)qm(t,n,null);else if(n instanceof zn)Hm(t,n,null);else if(n instanceof Zr)$N(t,n);else if(n instanceof Jr)UN(t,n);else if(n instanceof Yn)VN(t,n);else if(n instanceof Ws)HN(t,n);else if(n instanceof bn)GN(t,n);else if(n instanceof it)jN(t,n);else throw new Error(`Unsupported template node: ${n.constructor.name}`)}function ON(t,e){var c,u;if(e.i18n!==void 0&&!(e.i18n instanceof ft||e.i18n instanceof Cr))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=t.job.allocateXrefId(),[r,s]=pn(e.name),i=pT(s,n,Em(r),e.i18n instanceof Cr?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);t.create.push(i),zN(t,i,e),jm(i,e);let o=null;e.i18n instanceof ft&&(o=t.job.allocateXrefId(),t.create.push(sl(o,e.i18n,void 0,e.startSourceSpan))),Zn(t,e.children);let l=fT(n,(c=e.endSourceSpan)!=null?c:e.startSourceSpan);t.create.push(l),o!==null&&A.insertBefore(il(o,(u=e.endSourceSpan)!=null?u:e.startSourceSpan),l)}function FN(t,e){var p;if(e.i18n!==void 0&&!(e.i18n instanceof ft||e.i18n instanceof Cr))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]=pn(e.tagName));let i=e.i18n instanceof Cr?e.i18n:void 0,o=Em(s),l=r===null?"":HT(r,o),c=KN(e)?At.NgTemplate:At.Structural,u=rl(n.xref,c,r,l,o,i,e.startSourceSpan,e.sourceSpan);t.create.push(u),XN(t,u,e,c),jm(u,e),Zn(n,e.children);for(let{name:d,value:m}of e.variables)n.contextVariables.set(d,m!==""?m:"$implicit");if(c===At.NgTemplate&&e.i18n instanceof ft){let d=t.job.allocateXrefId();A.insertAfter(sl(d,e.i18n,void 0,e.startSourceSpan),n.create.head),A.insertBefore(il(d,(p=e.endSourceSpan)!=null?p:e.startSourceSpan),n.create.tail)}}function BN(t,e){var i;if(e.i18n!==void 0&&!(e.i18n instanceof Cr))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=null;e.children.some(o=>!(o instanceof Hs)&&(!(o instanceof nn)||o.value.trim().length>0))&&(n=t.job.allocateView(t.xref),Zn(n,e.children));let r=t.job.allocateXrefId(),s=vT(r,e.selector,e.i18n,(i=n==null?void 0:n.xref)!=null?i:null,e.sourceSpan);for(let o of e.attributes){let l=Gr.securityContext(e.name,o.name,!0);t.update.push(ss(s.xref,U.Attribute,o.name,v(o.value),null,l,!0,!1,null,$n(o.i18n),o.sourceSpan))}t.create.push(s)}function qm(t,e,n){t.create.push(mm(t.job.allocateXrefId(),e.value,n,e.sourceSpan))}function Hm(t,e,n){var l;let r=e.value;if(r instanceof Ce&&(r=r.ast),!(r instanceof Kn))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${r.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof Vn))throw Error(`Unhandled i18n metadata type for text interpolation: ${(l=e.i18n)==null?void 0:l.constructor.name}`);let s=e.i18n instanceof Vn?e.i18n.children.filter(c=>c instanceof Ji).map(c=>c.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(mm(i,"",n,e.sourceSpan));let o=t.job.compatibility?null:e.sourceSpan;t.update.push(Qw(i,new Le(r.strings,r.expressions.map(c=>z(c,t.job,o)),s),e.sourceSpan))}function $N(t,e){var s;let n=null,r=[];for(let i=0;i<e.branches.length;i++){let o=e.branches[i],l=t.job.allocateView(t.xref),c=Ka(t,l.xref,o);o.expressionAlias!==null&&l.contextVariables.set(o.expressionAlias.name,Sm);let u;if(o.i18n!==void 0){if(!(o.i18n instanceof Ar))throw Error(`Unhandled i18n metadata type for if block: ${(s=o.i18n)==null?void 0:s.constructor.name}`);u=o.i18n}let p=rl(l.xref,At.Block,c,"Conditional",tt.HTML,u,o.startSourceSpan,o.sourceSpan);t.create.push(p),n===null&&(n=l.xref);let d=o.expression?z(o.expression,t.job,null):null,m=new Na(d,p.xref,p.handle,o.expressionAlias);r.push(m),Zn(l,o.children)}t.update.push(hm(n,null,r,e.sourceSpan))}function UN(t,e){var s;if(e.cases.length===0)return;let n=null,r=[];for(let i of e.cases){let o=t.job.allocateView(t.xref),l=Ka(t,o.xref,i),c;if(i.i18n!==void 0){if(!(i.i18n instanceof Ar))throw Error(`Unhandled i18n metadata type for switch block: ${(s=i.i18n)==null?void 0:s.constructor.name}`);c=i.i18n}let u=rl(o.xref,At.Block,l,"Case",tt.HTML,c,i.startSourceSpan,i.sourceSpan);t.create.push(u),n===null&&(n=o.xref);let p=i.expression?z(i.expression,t.job,e.startSourceSpan):null,d=new Na(p,u.xref,u.handle);r.push(d),Zn(o,i.children)}t.update.push(hm(n,z(e.expression,t.job,null),r,e.sourceSpan))}function jo(t,e,n,r,s){if(n!==void 0&&!(n instanceof Ar))throw Error("Unhandled i18n metadata type for defer block");if(r===void 0)return null;let i=t.job.allocateView(t.xref);Zn(i,r);let o=rl(i.xref,At.Block,null,`Defer${e}`,tt.HTML,n,s,s);return t.create.push(o),o}function VN(t,e){var m,g,E,w,x,_,D,H,V,ee,ae,oe,Be,Vt,ms,mi,gi,Sh,Eh,wh;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=(m=t.job.deferMeta.blocks.get(e))!=null?m:null}let r=jo(t,"",e.i18n,e.children,e.sourceSpan),s=jo(t,"Loading",(g=e.loading)==null?void 0:g.i18n,(E=e.loading)==null?void 0:E.children,(w=e.loading)==null?void 0:w.sourceSpan),i=jo(t,"Placeholder",(x=e.placeholder)==null?void 0:x.i18n,(_=e.placeholder)==null?void 0:_.children,(D=e.placeholder)==null?void 0:D.sourceSpan),o=jo(t,"Error",(H=e.error)==null?void 0:H.i18n,(V=e.error)==null?void 0:V.children,(ee=e.error)==null?void 0:ee.sourceSpan),l=t.job.allocateXrefId(),c=ST(l,r.xref,r.handle,n,t.job.allDeferrableDepsFn,e.sourceSpan);c.placeholderView=(ae=i==null?void 0:i.xref)!=null?ae:null,c.placeholderSlot=(oe=i==null?void 0:i.handle)!=null?oe:null,c.loadingSlot=(Be=s==null?void 0:s.handle)!=null?Be:null,c.errorSlot=(Vt=o==null?void 0:o.handle)!=null?Vt:null,c.placeholderMinimumTime=(mi=(ms=e.placeholder)==null?void 0:ms.minimumTime)!=null?mi:null,c.loadingMinimumTime=(Sh=(gi=e.loading)==null?void 0:gi.minimumTime)!=null?Sh:null,c.loadingAfterTime=(wh=(Eh=e.loading)==null?void 0:Eh.afterTime)!=null?wh:null,c.flags=qN(e),t.create.push(c);let u=[],p=[];Ql("hydrate",e.hydrateTriggers,u,p,t,l),Ql("none",e.triggers,u,p,t,l),Ql("prefetch",e.prefetchTriggers,u,p,t,l),u.some(kl=>kl.modifier==="none")||p.some(kl=>kl.modifier==="none")||u.push(or(l,{kind:fe.Idle},"none",null)),t.create.push(u),t.update.push(p)}function qN(t){return Object.keys(t.hydrateTriggers).length>0?1:null}function Ql(t,e,n,r,s,i){if(e.idle!==void 0){let o=or(i,{kind:fe.Idle},t,e.idle.sourceSpan);n.push(o)}if(e.immediate!==void 0){let o=or(i,{kind:fe.Immediate},t,e.immediate.sourceSpan);n.push(o)}if(e.timer!==void 0){let o=or(i,{kind:fe.Timer,delay:e.timer.delay},t,e.timer.sourceSpan);n.push(o)}if(e.hover!==void 0){let o=or(i,{kind:fe.Hover,targetName:e.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.hover.sourceSpan);n.push(o)}if(e.interaction!==void 0){let o=or(i,{kind:fe.Interaction,targetName:e.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.interaction.sourceSpan);n.push(o)}if(e.viewport!==void 0){let o=or(i,{kind:fe.Viewport,targetName:e.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.viewport.sourceSpan);n.push(o)}if(e.never!==void 0){let o=or(i,{kind:fe.Never},t,e.never.sourceSpan);n.push(o)}if(e.when!==void 0){if(e.when.value instanceof Kn)throw new Error("Unexpected interpolation in defer block when trigger");let o=aT(i,z(e.when.value,s.job,e.when.sourceSpan),t,e.when.sourceSpan);r.push(o)}}function HN(t,e){var n;if(e.i18n instanceof ft&&_N(e.i18n)){let r=t.job.allocateXrefId();t.create.push(TT(r,e.i18n,Hd(e.i18n).name,null));for(let[s,i]of Object.entries(T(T({},e.vars),e.placeholders)))i instanceof zn?Hm(t,i,s):qm(t,i,s);t.create.push(xT(r))}else throw Error(`Unhandled i18n metadata type for ICU: ${(n=e.i18n)==null?void 0:n.constructor.name}`)}function GN(t,e){var _,D,H;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 V of e.contextVariables)V.value==="$index"&&i.add(V.name),V.name==="$index"?n.contextVariables.set("$index",V.value).set(r,V.value):V.name==="$count"?n.contextVariables.set("$count",V.value).set(s,V.value):n.aliases.add({kind:We.Alias,name:null,identifier:V.name,expression:WN(V,r,s)});let o=Je(e.trackBy.span,e.sourceSpan),l=z(e.trackBy,t.job,o);Zn(n,e.children);let c=null,u=null;e.empty!==null&&(c=t.job.allocateView(t.xref),Zn(c,e.empty.children),u=Ka(t,c.xref,e.empty));let p={$index:i,$implicit:e.item.name};if(e.i18n!==void 0&&!(e.i18n instanceof Ar))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(((_=e.empty)==null?void 0:_.i18n)!==void 0&&!(e.empty.i18n instanceof Ar))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let d=e.i18n,m=(D=e.empty)==null?void 0:D.i18n,g=Ka(t,n.xref,e),E=hT(n.xref,(H=c==null?void 0:c.xref)!=null?H:null,g,l,p,u,d,m,e.startSourceSpan,e.sourceSpan);t.create.push(E);let w=z(e.expression,t.job,Je(e.expression.span,e.sourceSpan)),x=oT(E.xref,E.handle,w,e.sourceSpan);t.update.push(x)}function WN(t,e,n){switch(t.value){case"$index":return new Ze(e);case"$count":return new Ze(n);case"$first":return new Ze(e).identical(v(0));case"$last":return new Ze(e).identical(new Ze(n).minus(v(1)));case"$even":return new Ze(e).modulo(v(2)).identical(v(0));case"$odd":return new Ze(e).modulo(v(2)).notIdentical(v(0));default:throw new Error(`AssertionError: unknown @for loop variable ${t.value}`)}}function jN(t,e){let n=t.job.allocateXrefId();t.create.push(ET(n,e.name,e.sourceSpan)),t.update.push(cT(n,e.name,z(e.value,t.job,e.valueSpan),e.sourceSpan))}function z(t,e,n){if(t instanceof Ce)return z(t.ast,e,n);if(t instanceof Me)return t.receiver instanceof Re&&!(t.receiver instanceof cn)?new Ze(t.name):new mt(z(t.receiver,e,n),t.name,null,Je(t.span,n));if(t instanceof jn)return t.receiver instanceof Re?new Kr(new Qn(e.root.xref),t.name,z(t.value,e,n),null,Je(t.span,n)):new Kr(z(t.receiver,e,n),t.name,z(t.value,e,n),void 0,Je(t.span,n));if(t instanceof ia)return new Ls(z(t.receiver,e,n),z(t.key,e,n),z(t.value,e,n),void 0,Je(t.span,n));if(t instanceof un){if(t.receiver instanceof Re)throw new Error("Unexpected ImplicitReceiver");return new nt(z(t.receiver,e,n),t.args.map(r=>z(r,e,n)),void 0,Je(t.span,n))}else{if(t instanceof Gt)return v(t.value,void 0,Je(t.span,n));if(t instanceof Gi)switch(t.operator){case"+":return new vr(Cn.Plus,z(t.expr,e,n),void 0,Je(t.span,n));case"-":return new vr(Cn.Minus,z(t.expr,e,n),void 0,Je(t.span,n));default:throw new Error(`AssertionError: unknown unary operator ${t.operator}`)}else if(t instanceof _t){let r=VT.get(t.operation);if(r===void 0)throw new Error(`AssertionError: unknown binary operator ${t.operation}`);return new le(r,z(t.left,e,n),z(t.right,e,n),void 0,Je(t.span,n))}else{if(t instanceof cn)return new Qn(e.root.xref);if(t instanceof Hi)return new An(z(t.receiver,e,n),z(t.key,e,n),void 0,Je(t.span,n));if(t instanceof Er)throw new Error("AssertionError: Chain in unknown context");if(t instanceof aa){let r=t.keys.map((s,i)=>{let o=t.values[i];return new zr(s.key,z(o,e,n),s.quoted)});return new Yt(r,void 0,Je(t.span,n))}else{if(t instanceof oa)return new gt(t.expressions.map(r=>z(r,e,n)));if(t instanceof qs)return new ln(z(t.condition,e,n),z(t.trueExp,e,n),z(t.falseExp,e,n),void 0,Je(t.span,n));if(t instanceof Wi)return z(t.expression,e,n);if(t instanceof Qr)return new os(e.allocateXrefId(),new Nt,t.name,[z(t.exp,e,n),...t.args.map(r=>z(r,e,n))]);if(t instanceof wr)return new Js(z(t.receiver,e,n),z(t.key,e,n),Je(t.span,n));if(t instanceof yt)return new Qs(z(t.receiver,e,n),t.name);if(t instanceof In)return new Nr(z(t.receiver,e,n),t.args.map(r=>z(r,e,n)));if(t instanceof ze)return new lo(Je(t.span,n));if(t instanceof la)return Md(z(t.expression,e,n),Je(t.span,n));if(t instanceof ca)return ri(z(t.expression,e,n));throw new Error(`Unhandled expression type "${t.constructor.name}" in file "${n==null?void 0:n.start.file.url}"`)}}}}function vu(t,e,n,r){var i,o;let s;return e instanceof Kn?s=new Le(e.strings,e.expressions.map(l=>z(l,t,r!=null?r:null)),Object.keys((o=(i=$n(n))==null?void 0:i.placeholders)!=null?o:{})):e instanceof xe?s=z(e,t,r!=null?r:null):s=v(e),s}var Gm=new Map([[J.Property,U.Property],[J.TwoWay,U.TwoWayProperty],[J.Attribute,U.Attribute],[J.Class,U.ClassName],[J.Style,U.StyleProperty],[J.Animation,U.Animation]]);function KN(t){var e;return pn((e=t.tagName)!=null?e:"")[1]===Wr}function $n(t){if(t==null)return null;if(!(t instanceof ft))throw Error(`Expected i18n meta to be a Message, but got: ${t.constructor.name}`);return t}function zN(t,e,n){var i;let r=new Array,s=new Set;for(let o of n.attributes){let l=Gr.securityContext(n.name,o.name,!0);r.push(ss(e.xref,U.Attribute,o.name,vu(t.job,o.value,o.i18n),null,l,!0,!1,null,$n(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(ss(e.xref,Gm.get(o.type),o.name,vu(t.job,mo(o.value),o.i18n),o.unit,o.securityContext,!1,!1,null,(i=$n(o.i18n))!=null?i:null,o.sourceSpan));t.create.push(r.filter(o=>(o==null?void 0:o.kind)===f.ExtractedAttribute)),t.update.push(r.filter(o=>(o==null?void 0:o.kind)===f.Binding));for(let o of n.outputs){if(o.type===Oe.Animation&&o.phase===null)throw Error("Animation listener should have a phase");o.type===Oe.TwoWay?t.create.push(gm(e.xref,e.handle,o.name,e.tag,Wm(t,o.handler,o.handlerSpan),o.sourceSpan)):t.create.push(zu(e.xref,e.handle,o.name,e.tag,Ju(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(vm(t.job.allocateXrefId(),new Nt,e.xref))}function XN(t,e,n,r){let s=new Array;for(let i of n.templateAttrs)if(i instanceof Ot){let o=Gr.securityContext(Wr,i.name,!0);s.push(Ko(t,e.xref,J.Attribute,i.name,i.value,null,o,!0,r,$n(i.i18n),i.sourceSpan))}else s.push(Ko(t,e.xref,i.type,i.name,mo(i.value),i.unit,i.securityContext,!0,r,$n(i.i18n),i.sourceSpan));for(let i of n.attributes){let o=Gr.securityContext(Wr,i.name,!0);s.push(Ko(t,e.xref,J.Attribute,i.name,i.value,null,o,!1,r,$n(i.i18n),i.sourceSpan))}for(let i of n.inputs)s.push(Ko(t,e.xref,i.type,i.name,mo(i.value),i.unit,i.securityContext,!1,r,$n(i.i18n),i.sourceSpan));t.create.push(s.filter(i=>(i==null?void 0:i.kind)===f.ExtractedAttribute)),t.update.push(s.filter(i=>(i==null?void 0:i.kind)===f.Binding));for(let i of n.outputs){if(i.type===Oe.Animation&&i.phase===null)throw Error("Animation listener should have a phase");if(r===At.NgTemplate&&(i.type===Oe.TwoWay?t.create.push(gm(e.xref,e.handle,i.name,e.tag,Wm(t,i.handler,i.handlerSpan),i.sourceSpan)):t.create.push(zu(e.xref,e.handle,i.name,e.tag,Ju(t,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))),r===At.Structural&&i.type!==Oe.Animation){let o=Gr.securityContext(Wr,i.name,!1);t.create.push(Kt(e.xref,U.Property,null,i.name,null,null,null,o))}}s.some(i=>i==null?void 0:i.i18nMessage)!==null&&t.create.push(vm(t.job.allocateXrefId(),new Nt,e.xref))}function Ko(t,e,n,r,s,i,o,l,c,u,p){let d=typeof s=="string";if(c===At.Structural){if(!l)switch(n){case J.Property:case J.Class:case J.Style:return Kt(e,U.Property,null,r,null,null,u,o);case J.TwoWay:return Kt(e,U.TwoWayProperty,null,r,null,null,u,o)}if(!d&&(n===J.Attribute||n===J.Animation))return null}let m=Gm.get(n);return c===At.NgTemplate&&(n===J.Class||n===J.Style||n===J.Attribute&&!d)&&(m=U.Property),ss(e,m,r,vu(t.job,s,u),i,o,d,l,c,u,p)}function Ju(t,e,n){e=mo(e);let r=new Array,s=e instanceof Er?e.expressions:[e];if(s.length===0)throw new Error("Expected listener to have non-empty expression list.");let i=s.map(l=>z(l,t.job,n)),o=i.pop();return r.push(...i.map(l=>hn(new Lt(l,l.sourceSpan)))),r.push(hn(new Xe(o,o.sourceSpan))),r}function Wm(t,e,n){e=mo(e);let r=new Array;if(e instanceof Er)if(e.expressions.length===1)e=e.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let s=z(e,t.job,n),i=new Ze("$event"),o=new Ca(s,i);return r.push(hn(new Lt(o))),r.push(hn(new Xe(i))),r}function mo(t){return t instanceof Ce?t.ast:t}function jm(t,e){YN(t.localRefs);for(let{name:n,value:r}of e.references)t.localRefs.push({name:n,target:r})}function YN(t){if(!Array.isArray(t))throw new Error("AssertionError: expected an array")}function Je(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 W(n,r,s)}function Ka(t,e,n){let r=null;for(let s of n.children)if(!(s instanceof Hs||s instanceof it)){if(r!==null)return null;if(s instanceof de||s instanceof he&&s.tagName!==null)r=s;else return null}if(r!==null){for(let i of r.attributes){let o=Gr.securityContext(Wr,i.name,!0);t.update.push(ss(e,U.Attribute,i.name,v(i.value),null,o,!0,!1,null,$n(i.i18n),i.sourceSpan))}for(let i of r.inputs)if(i.type!==J.Animation&&i.type!==J.Attribute){let o=Gr.securityContext(Wr,i.name,!0);t.create.push(Kt(e,U.Property,null,i.name,null,null,null,o))}let s=r instanceof de?r.name:r.tagName;return s===Wr?null:s}return null}var QN=!1;function JN(){return QN}function za(t,e){return vo(Y(Bu).bitwiseAnd(v(t),null,!1),e)}function ZN(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function eb(t,e){if(Array.isArray(t.predicate)){let n=[];return t.predicate.forEach(r=>{let s=r.split(",").map(i=>v(i.trim()));n.push(...s)}),e.getConstLiteral(ue(n),!0)}else switch(t.predicate.forwardRef){case 0:case 2:return t.predicate.expression;case 1:return B(h.resolveForwardRef).callFn([t.predicate.expression])}}function Km(t,e,n,r){let s=[];r!==void 0&&s.push(...r),t.isSignal&&s.push(new mt(Y(Zi),t.propertyName)),s.push(eb(t,e),v(ZN(t))),t.read&&s.push(t.read);let i=t.isSignal?n.signalBased:n.nonSignal;return B(i).callFn(s)}var Zu=Symbol("queryAdvancePlaceholder");function zm(t){let e=[],n=0,r=()=>{n>0&&(e.unshift(B(h.queryAdvance).callFn(n===1?[]:[v(n)]).toStmt()),n=0)};for(let s=t.length-1;s>=0;s--){let i=t[s];i===Zu?n++:(r(),e.unshift(i))}return r(),e}function tb(t,e,n){let r=[],s=[],i=Gd(l=>s.push(l),Fu);t.forEach(l=>{let c=Km(l,e,{signalBased:h.viewQuerySignal,nonSignal:h.viewQuery});if(r.push(c.toStmt()),l.isSignal){s.push(Zu);return}let u=i(),p=B(h.loadQuery).callFn([]),d=B(h.queryRefresh).callFn([u.set(p)]),m=Y(Zi).prop(l.propertyName).set(l.first?u.prop("first"):u);s.push(d.and(m).toStmt())});let o=n?`${n}_Query`:null;return Wn([new je(Bu,Za),new je(Zi,null)],[za(1,r),za(2,zm(s))],Pt,null,o)}function nb(t,e,n){let r=[],s=[],i=Gd(l=>s.push(l),Fu);for(let l of t){if(r.push(Km(l,e,{nonSignal:h.contentQuery,signalBased:h.contentQuerySignal},[Y("dirIndex")]).toStmt()),l.isSignal){s.push(Zu);continue}let c=i(),u=B(h.loadQuery).callFn([]),p=B(h.queryRefresh).callFn([c.set(u)]),d=Y(Zi).prop(l.propertyName).set(l.first?c.prop("first"):c);s.push(p.and(d).toStmt())}let o=n?`${n}_ContentQueries`:null;return Wn([new je(Bu,Za),new je(Zi,null),new je("dirIndex",null)],[za(1,r),za(2,zm(s))],Pt,null,o)}var Xa=class extends ru{constructor(){super(_m)}parse(e,n,r){return super.parse(e,n,r)}},Wf=".",rb="attr",sb="class",ib="style",ob="*",Jl="animate-",Su=class{constructor(e,n,r,s){a(this,"_exprParser");a(this,"_interpolationConfig");a(this,"_schemaRegistry");a(this,"errors");this._exprParser=e,this._interpolationConfig=n,this._schemaRegistry=r,this.errors=s}get interpolationConfig(){return this._interpolationConfig}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.start.toString(),i=n.fullStart.offset;try{let o=this._exprParser.parseInterpolation(e,s,i,r,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,n),o}catch(o){return this._reportError(`${o}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",s,i)}}parseInterpolationExpression(e,n){let r=n.start.toString(),s=n.start.offset;try{let i=this._exprParser.parseInterpolationExpression(e,r,s);return i&&this._reportExpressionParserErrors(i.errors,n),i}catch(i){return this._reportError(`${i}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",r,s)}}parseInlineTemplateBinding(e,n,r,s,i,o,l,c){let u=r.start.offset+ob.length,p=this._parseTemplateBindings(e,n,r,u,s);for(let d of p){let m=sr(r,d.sourceSpan),g=d.key.source,E=sr(r,d.key.span);if(d instanceof ji){let w=d.value?d.value.source:"$implicit",x=d.value?sr(r,d.value.span):void 0;l.push(new Tc(g,w,m,E,x))}else if(d.value){let w=c?m:r,x=sr(r,d.value.ast.sourceSpan);this._parsePropertyAst(g,d.value,!1,w,E,x,i,o)}else i.push([g,""]),this.parseLiteralAttr(g,null,E,s,void 0,i,o,E)}}_parseTemplateBindings(e,n,r,s,i){let o=r.start.toString();try{let l=this._exprParser.parseTemplateBindings(e,n,o,s,i);return this._reportExpressionParserErrors(l.errors,r),l.warnings.forEach(c=>{this._reportError(c,r,Bn.WARNING)}),l.templateBindings}catch(l){return this._reportError(`${l}`,r),[]}}parseLiteralAttr(e,n,r,s,i,o,l,c){Zl(e)?(e=e.substring(1),c!==void 0&&(c=sr(c,new et(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,Bn.ERROR),this._parseAnimation(e,n,r,s,c,i,o,l)):l.push(new Ii(e,this._exprParser.wrapLiteralPrimitive(n,"",s),Ln.LITERAL_ATTR,r,c,i))}parsePropertyBinding(e,n,r,s,i,o,l,c,u,p){e.length===0&&this._reportError("Property name is missing in binding",i);let d=!1;e.startsWith(Jl)?(d=!0,e=e.substring(Jl.length),p!==void 0&&(p=sr(p,new et(p.start.offset+Jl.length,p.end.offset)))):Zl(e)&&(d=!0,e=e.substring(1),p!==void 0&&(p=sr(p,new et(p.start.offset+1,p.end.offset)))),d?this._parseAnimation(e,n,i,o,p,l,c,u):this._parsePropertyAst(e,this.parseBinding(n,r,l||i,o),s,i,p,l,c,u)}parsePropertyInterpolation(e,n,r,s,i,o,l,c){let u=this.parseInterpolation(n,s||r,c);return u?(this._parsePropertyAst(e,u,!1,r,l,s,i,o),!0):!1}_parsePropertyAst(e,n,r,s,i,o,l,c){l.push([e,n.source]),c.push(new Ii(e,n,r?Ln.TWO_WAY:Ln.DEFAULT,s,i,o))}_parseAnimation(e,n,r,s,i,o,l,c){e.length===0&&this._reportError("Animation trigger is missing",r);let u=this.parseBinding(n||"undefined",!1,o||r,s);l.push([e,u.source]),c.push(new Ii(e,u,Ln.ANIMATION,r,i,o))}parseBinding(e,n,r,s){let i=(r&&r.start||"(unknown)").toString();try{let o=n?this._exprParser.parseSimpleBinding(e,i,s,this._interpolationConfig):this._exprParser.parseBinding(e,i,s,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,r),o}catch(o){return this._reportError(`${o}`,r),this._exprParser.wrapLiteralPrimitive("ERROR",i,s)}}createBoundElementProperty(e,n,r=!1,s=!0){if(n.isAnimation)return new pa(n.name,J.Animation,ve.NONE,n.expression,null,n.sourceSpan,n.keySpan,n.valueSpan);let i=null,o,l=null,c=n.name.split(Wf),u;if(c.length>1)if(c[0]==rb){l=c.slice(1).join(Wf),r||this._validatePropertyOrAttributeName(l,n.sourceSpan,!0),u=ec(this._schemaRegistry,e,l,!0);let p=l.indexOf(":");if(p>-1){let d=l.substring(0,p),m=l.substring(p+1);l=Ac(d,m)}o=J.Attribute}else c[0]==sb?(l=c[1],o=J.Class,u=[ve.NONE]):c[0]==ib&&(i=c.length>2?c[2]:null,l=c[1],o=J.Style,u=[ve.STYLE]);if(l===null){let p=this._schemaRegistry.getMappedPropName(n.name);l=s?p:n.name,u=ec(this._schemaRegistry,e,p,!1),o=n.type===Ln.TWO_WAY?J.TwoWay:J.Property,r||this._validatePropertyOrAttributeName(p,n.sourceSpan,!1)}return new pa(l,o,u[0],n.expression,i,n.sourceSpan,n.keySpan,n.valueSpan)}parseEvent(e,n,r,s,i,o,l,c){e.length===0&&this._reportError("Event name is missing in binding",s),Zl(e)?(e=e.slice(1),c!==void 0&&(c=sr(c,new et(c.start.offset+1,c.end.offset))),this._parseAnimationEvent(e,n,s,i,l,c)):this._parseRegularEvent(e,n,r,s,i,o,l,c)}calcPossibleSecurityContexts(e,n,r){let s=this._schemaRegistry.getMappedPropName(n);return ec(this._schemaRegistry,e,s,r)}_parseAnimationEvent(e,n,r,s,i,o){let l=xE(e,[e,""]),c=l[0],u=l[1].toLowerCase(),p=this._parseAction(n,s);i.push(new ua(c,u,Oe.Animation,p,r,s,o)),c.length===0&&this._reportError("Animation event name is missing in binding",r),u?u!=="start"&&u!=="done"&&this._reportError(`The provided animation output phase value "${u}" for "@${c}" is not supported (use start or done)`,r):this._reportError(`The animation trigger output event (@${c}) is missing its phase value name (start or done are currently supported)`,r)}_parseRegularEvent(e,n,r,s,i,o,l,c){let[u,p]=TE(e,[null,e]),d=this.errors.length,m=this._parseAction(n,i),g=this.errors.length===d;o.push([e,m.source]),r&&g&&!this._isAllowedAssignmentEvent(m)&&this._reportError("Unsupported expression in a two-way binding",s),l.push(new ua(p,u,r?Oe.TwoWay:Oe.Regular,m,s,i,c))}_parseAction(e,n){let r=(n&&n.start||"(unknown").toString(),s=n&&n.start?n.start.offset:0;try{let i=this._exprParser.parseAction(e,r,s,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,n),!i||i.ast instanceof ze?(this._reportError("Empty expressions are not allowed",n),this._exprParser.wrapLiteralPrimitive("ERROR",r,s)):i}catch(i){return this._reportError(`${i}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",r,s)}}_reportError(e,n,r=Bn.ERROR,s){this.errors.push(new j(n,e,r,s))}_reportExpressionParserErrors(e,n){for(let r of e)this._reportError(r.message,n,void 0,r)}_validatePropertyOrAttributeName(e,n,r){let s=r?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);s.error&&this._reportError(s.msg,n,Bn.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof Ce?this._isAllowedAssignmentEvent(e.ast):e instanceof Wi?this._isAllowedAssignmentEvent(e.expression):e instanceof un&&e.args.length===1&&e.receiver instanceof Me&&e.receiver.name==="$any"&&e.receiver.receiver instanceof Re&&!(e.receiver.receiver instanceof cn)?this._isAllowedAssignmentEvent(e.args[0]):e instanceof Me||e instanceof Hi}};function Zl(t){return t[0]=="@"}function ec(t,e,n,r){let s=[];return sn.parse(e).forEach(i=>{let o=i.element?[i.element]:t.allKnownElementNames(),l=new Set(i.notSelectors.filter(u=>u.isElementSelector()).map(u=>u.element)),c=o.filter(u=>!l.has(u));s.push(...c.map(u=>t.securityContext(u,n,r)))}),s.length===0?[ve.NONE]:Array.from(new Set(s)).sort()}function sr(t,e){let n=e.start-t.start.offset,r=e.end-t.end.offset;return new W(t.start.moveBy(n),t.end.moveBy(r),t.fullStart.moveBy(n),t.details)}function ab(t){if(t==null||t.length===0||t[0]=="/")return!1;let e=t.match(lb);return e===null||e[1]=="package"||e[1]=="asset"}var lb=/^([^:/?#]+):/,cb="select",ub="link",pb="rel",hb="href",fb="stylesheet",db="style",mb="script",gb="ngNonBindable",yb="ngProjectAs";function Xm(t){let e=null,n=null,r=null,s=!1,i="";t.attrs.forEach(c=>{let u=c.name.toLowerCase();u==cb?e=c.value:u==hb?n=c.value:u==pb?r=c.value:c.name==gb?s=!0:c.name==yb&&c.value.length>0&&(i=c.value)}),e=vb(e);let o=t.name.toLowerCase(),l=Ct.OTHER;return xc(o)?l=Ct.NG_CONTENT:o==db?l=Ct.STYLE:o==mb?l=Ct.SCRIPT:o==ub&&r==fb&&(l=Ct.STYLESHEET),new Eu(l,e,n,s,i)}var Ct;(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"})(Ct||(Ct={}));var Eu=class{constructor(e,n,r,s,i){a(this,"type");a(this,"selectAttr");a(this,"hrefAttr");a(this,"nonBindable");a(this,"projectAs");this.type=e,this.selectAttr=n,this.hrefAttr=r,this.nonBindable=s,this.projectAs=i}};function vb(t){return t===null||t.length===0?"*":t}var Sb=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,Eb=/^track\s+([\S\s]*)/,wb=/^(as\s)+(.*)/,ep=/^else[^\S\r\n]+if/,Tb=/^let\s+([\S\s]*)/,jf=/(\s*)(\S+)(\s*)/,Pi=new Set(["$index","$first","$last","$even","$odd","$count"]);function Kf(t){return t==="empty"}function zf(t){return t==="else"||ep.test(t)}function xb(t,e,n,r){let s=bb(e),i=[],o=Xf(t,s,r);o!==null&&i.push(new Un(o.expression,_e(n,t.children,t.children),o.expressionAlias,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan,t.i18n));for(let d of e)if(ep.test(d.name)){let m=Xf(d,s,r);if(m!==null){let g=_e(n,d.children,d.children);i.push(new Un(m.expression,g,m.expressionAlias,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}}else if(d.name==="else"){let m=_e(n,d.children,d.children);i.push(new Un(null,m,null,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}let l=i.length>0?i[0].startSourceSpan:t.startSourceSpan,c=i.length>0?i[i.length-1].endSourceSpan:t.endSourceSpan,u=t.sourceSpan,p=i[i.length-1];return p!==void 0&&(u=new W(l.start,p.sourceSpan.end)),{node:new Zr(i,u,t.startSourceSpan,c,t.nameSpan),errors:s}}function Cb(t,e,n,r){var c,u;let s=[],i=Ib(t,s,r),o=null,l=null;for(let p of e)p.name==="empty"?l!==null?s.push(new j(p.sourceSpan,"@for loop can only have one @empty block")):p.parameters.length>0?s.push(new j(p.sourceSpan,"@empty block cannot have parameters")):l=new Qi(_e(n,p.children,p.children),p.sourceSpan,p.startSourceSpan,p.endSourceSpan,p.nameSpan,p.i18n):s.push(new j(p.sourceSpan,`Unrecognized @for loop block "${p.name}"`));if(i!==null)if(i.trackBy===null)s.push(new j(t.startSourceSpan,'@for loop must have a "track" expression'));else{let p=(c=l==null?void 0:l.endSourceSpan)!=null?c:t.endSourceSpan,d=new W(t.sourceSpan.start,(u=p==null?void 0:p.end)!=null?u:t.sourceSpan.end);o=new bn(i.itemName,i.expression,i.trackBy.expression,i.trackBy.keywordSpan,i.context,_e(n,t.children,t.children),l,d,t.sourceSpan,t.startSourceSpan,p,t.nameSpan,t.i18n)}return{node:o,errors:s}}function Ab(t,e,n){let r=Db(t),s=t.parameters.length>0?go(t.parameters[0],n):n.parseBinding("",!1,t.sourceSpan,0),i=[],o=[],l=null;for(let c of t.children){if(!(c instanceof Wt))continue;if((c.name!=="case"||c.parameters.length===0)&&c.name!=="default"){o.push(new ma(c.name,c.sourceSpan,c.nameSpan));continue}let u=c.name==="case"?go(c.parameters[0],n):null,p=new Yi(u,_e(e,c.children,c.children),c.sourceSpan,c.startSourceSpan,c.endSourceSpan,c.nameSpan,c.i18n);u===null?l=p:i.push(p)}return l!==null&&i.push(l),{node:new Jr(s,i,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan),errors:r}}function Ib(t,e,n){var d;if(t.parameters.length===0)return e.push(new j(t.startSourceSpan,"@for loop does not have an expression")),null;let[r,...s]=t.parameters,i=(d=_b(r,e))==null?void 0:d.match(Sb);if(!i||i[2].trim().length===0)return e.push(new j(r.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;let[,o,l]=i;Pi.has(o)&&e.push(new j(r.sourceSpan,`@for loop item name cannot be one of ${Array.from(Pi).join(", ")}.`));let c=r.expression.split(" ")[0],u=new W(r.sourceSpan.start,r.sourceSpan.start.moveBy(c.length)),p={itemName:new vt(o,"$implicit",u,u),trackBy:null,expression:go(r,n,l),context:Array.from(Pi,m=>{let g=new W(t.startSourceSpan.end,t.startSourceSpan.end);return new vt(m,m,g,g)})};for(let m of s){let g=m.expression.match(Tb);if(g!==null){let w=new W(m.sourceSpan.start.moveBy(g[0].length-g[1].length),m.sourceSpan.end);Nb(m.sourceSpan,g[1],w,o,p.context,e);continue}let E=m.expression.match(Eb);if(E!==null){if(p.trackBy!==null)e.push(new j(m.sourceSpan,'@for loop can only have one "track" expression'));else{let w=go(m,n,E[1]);w.ast instanceof ze&&e.push(new j(t.startSourceSpan,'@for loop must have a "track" expression'));let x=new W(m.sourceSpan.start,m.sourceSpan.start.moveBy(5));p.trackBy={expression:w,keywordSpan:x}}continue}e.push(new j(m.sourceSpan,`Unrecognized @for loop parameter "${m.expression}"`))}return p}function Nb(t,e,n,r,s,i){var c,u,p;let o=e.split(","),l=n.start;for(let d of o){let m=d.split("="),g=m.length===2?m[0].trim():"",E=m.length===2?m[1].trim():"";if(g.length===0||E.length===0)i.push(new j(t,'Invalid @for loop "let" parameter. Parameter should match the pattern "<name> = <variable name>"'));else if(!Pi.has(E))i.push(new j(t,`Unknown "let" parameter variable "${E}". The allowed variables are: ${Array.from(Pi).join(", ")}`));else if(g===r)i.push(new j(t,`Invalid @for loop "let" parameter. Variable cannot be called "${r}"`));else if(s.some(w=>w.name===g))i.push(new j(t,`Duplicate "let" parameter variable "${E}"`));else{let[,w,x]=(c=m[0].match(jf))!=null?c:[],_=w!==void 0&&m.length===2?new W(l.moveBy(w.length),l.moveBy(w.length+x.length)):n,D;if(m.length===2){let[,V,ee]=(u=m[1].match(jf))!=null?u:[];D=V!==void 0?new W(l.moveBy(m[0].length+1+V.length),l.moveBy(m[0].length+1+V.length+ee.length)):void 0}let H=new W(_.start,(p=D==null?void 0:D.end)!=null?p:_.end);s.push(new vt(g,E,H,_,D))}l=l.moveBy(d.length+1)}}function bb(t){let e=[],n=!1;for(let r=0;r<t.length;r++){let s=t[r];s.name==="else"?(n?e.push(new j(s.startSourceSpan,"Conditional can only have one @else block")):t.length>1&&r<t.length-1?e.push(new j(s.startSourceSpan,"@else block must be last inside the conditional")):s.parameters.length>0&&e.push(new j(s.startSourceSpan,"@else block cannot have parameters")),n=!0):ep.test(s.name)||e.push(new j(s.startSourceSpan,`Unrecognized conditional block @${s.name}`))}return e}function Db(t){let e=[],n=!1;if(t.parameters.length!==1)return e.push(new j(t.startSourceSpan,"@switch block must have exactly one parameter")),e;for(let r of t.children)if(!(r instanceof po||r instanceof as&&r.value.trim().length===0)){if(!(r instanceof Wt)||r.name!=="case"&&r.name!=="default"){e.push(new j(r.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}r.name==="default"?(n?e.push(new j(r.startSourceSpan,"@switch block can only have one @default block")):r.parameters.length>0&&e.push(new j(r.startSourceSpan,"@default block cannot have parameters")),n=!0):r.name==="case"&&r.parameters.length!==1&&e.push(new j(r.startSourceSpan,"@case block must have exactly one parameter"))}return e}function go(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 Xf(t,e,n){if(t.parameters.length===0)return e.push(new j(t.startSourceSpan,"Conditional block does not have an expression")),null;let r=go(t.parameters[0],n),s=null;for(let i=1;i<t.parameters.length;i++){let o=t.parameters[i],l=o.expression.match(wb);if(l===null)e.push(new j(o.sourceSpan,`Unrecognized conditional parameter "${o.expression}"`));else if(t.name!=="if")e.push(new j(o.sourceSpan,'"as" expression is only allowed on the primary @if block'));else if(s!==null)e.push(new j(o.sourceSpan,'Conditional can only have one "as" expression'));else{let c=l[2].trim(),u=o.sourceSpan.start.moveBy(l[1].length),p=new W(u,u.moveBy(c.length));s=new vt(c,c,p,p)}}return{expression:r,expressionAlias:s}}function _b(t,e){let n=t.expression,r=/^\s$/,s=0,i=0,o=n.length-1;for(let l=0;l<n.length;l++){let c=n[l];if(c==="(")i=l+1,s++;else{if(r.test(c))continue;break}}if(s===0)return n;for(let l=n.length-1;l>-1;l--){let c=n[l];if(c===")"){if(o=l,s--,s===0)break}else{if(r.test(c))continue;break}}return s!==0?(e.push(new j(t.sourceSpan,"Unclosed parentheses in expression")),null):n.slice(i,o)}var kb=/^\d+\.?\d*(ms|s)?$/,Rb=/^\s$/,Yf=new Map([[En,xt],[Ps,bs],[qn,rn]]),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 Pb({expression:t,sourceSpan:e},n,r){let s=t.indexOf("never"),i=new W(e.start.moveBy(s),e.start.moveBy(s+5)),o=tp(t,e),l=np(t,e);s===-1?r.push(new j(e,'Could not find "never" keyword in expression')):rp("never",n,r,new Ic(i,e,o,null,l))}function tc({expression:t,sourceSpan:e},n,r,s){let i=t.indexOf("when"),o=new W(e.start.moveBy(i),e.start.moveBy(i+4)),l=tp(t,e),c=np(t,e);if(i===-1)s.push(new j(e,'Could not find "when" keyword in expression'));else{let u=yo(t,i+1),p=n.parseBinding(t.slice(u),!1,e,e.start.offset+u);rp("when",r,s,new Gs(p,e,l,o,c))}}function nc({expression:t,sourceSpan:e},n,r,s){let i=t.indexOf("on"),o=new W(e.start.moveBy(i),e.start.moveBy(i+2)),l=tp(t,e),c=np(t,e);if(i===-1)r.push(new j(e,'Could not find "on" keyword in expression'));else{let u=yo(t,i+1);new wu(t,u,e,n,r,t.startsWith("hydrate")?Vb:Ub,s,l,o,c).parse()}}function tp(t,e){return t.startsWith("prefetch")?new W(e.start,e.start.moveBy(8)):null}function np(t,e){return t.startsWith("hydrate")?new W(e.start,e.start.moveBy(7)):null}var wu=class{constructor(e,n,r,s,i,o,l,c,u,p){a(this,"expression");a(this,"start");a(this,"span");a(this,"triggers");a(this,"errors");a(this,"validator");a(this,"placeholder");a(this,"prefetchSpan");a(this,"onSourceSpan");a(this,"hydrateSpan");a(this,"index",0);a(this,"tokens");this.expression=e,this.start=n,this.span=r,this.triggers=s,this.errors=i,this.validator=o,this.placeholder=l,this.prefetchSpan=c,this.onSourceSpan=u,this.hydrateSpan=p,this.tokens=new fo().tokenize(e.slice(n))}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(zt))this.consumeTrigger(e,[]),this.advance();else if(this.isFollowedByOrLast(qn)){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 W(r,r.moveBy(e.strValue.length)),i=r.moveBy(this.token().end-e.index),o=e.index===0,l=o?this.onSourceSpan:null,c=o?this.prefetchSpan:null,u=o?this.hydrateSpan:null,p=new W(o?this.span.start:r,i);try{switch(e.toString()){case ut.IDLE:this.trackTrigger("idle",Mb(n,s,p,c,l,u));break;case ut.TIMER:this.trackTrigger("timer",Lb(n,s,p,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case ut.INTERACTION:this.trackTrigger("interaction",Bb(n,s,p,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.placeholder,this.validator));break;case ut.IMMEDIATE:this.trackTrigger("immediate",Ob(n,s,p,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case ut.HOVER:this.trackTrigger("hover",Fb(n,s,p,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.placeholder,this.validator));break;case ut.VIEWPORT:this.trackTrigger("viewport",$b(n,s,p,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.placeholder,this.validator));break;default:throw new Error(`Unrecognized trigger type "${e}"`)}}catch(d){this.error(e,d.message)}}consumeParameters(){let e=[];if(!this.token().isCharacter(qn))return this.unexpectedToken(this.token()),e;this.advance();let n=[],r="";for(;this.index<this.tokens.length;){let s=this.token();if(s.isCharacter(rn)&&n.length===0){r.length&&e.push(r);break}if(s.type===te.Character&&Yf.has(s.numValue)&&n.push(Yf.get(s.numValue)),n.length>0&&s.isCharacter(n[n.length-1])&&n.pop(),n.length===0&&s.isCharacter(zt)&&r.length>0){e.push(r),r="",this.advance();continue}r+=this.tokenText(),this.advance()}return(!this.token().isCharacter(rn)||n.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(zt)&&this.unexpectedToken(this.tokens[this.index+1]),e}tokenText(){return this.expression.slice(this.start+this.token().index,this.start+this.token().end)}trackTrigger(e,n){rp(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 j(new W(r,s),n))}unexpectedToken(e){this.error(e,`Unexpected token "${e}"`)}};function rp(t,e,n,r){e[t]?n.push(new j(r.sourceSpan,`Duplicate "${t}" trigger is not allowed`)):e[t]=r}function Mb(t,e,n,r,s,i){if(t.length>0)throw new Error(`"${ut.IDLE}" trigger cannot have parameters`);return new Nc(e,n,r,s,i)}function Lb(t,e,n,r,s,i){if(t.length!==1)throw new Error(`"${ut.TIMER}" trigger must have exactly one parameter`);let o=Ya(t[0]);if(o===null)throw new Error(`Could not parse time value of trigger "${ut.TIMER}"`);return new Dc(o,e,n,r,s,i)}function Ob(t,e,n,r,s,i){if(t.length>0)throw new Error(`"${ut.IMMEDIATE}" trigger cannot have parameters`);return new bc(e,n,r,s,i)}function Fb(t,e,n,r,s,i,o,l){var c;return l(ut.HOVER,t,o),new ha((c=t[0])!=null?c:null,e,n,r,s,i)}function Bb(t,e,n,r,s,i,o,l){var c;return l(ut.INTERACTION,t,o),new fa((c=t[0])!=null?c:null,e,n,r,s,i)}function $b(t,e,n,r,s,i,o,l){var c;return l(ut.VIEWPORT,t,o),new da((c=t[0])!=null?c:null,e,n,r,s,i)}function Ub(t,e,n){if(e.length>1)throw new Error(`"${t}" trigger can only have zero or one parameters`);if(e.length===0){if(n===null)throw new Error(`"${t}" trigger with no parameters can only be placed on an @defer that has a @placeholder block`);if(n.children.length!==1||!(n.children[0]instanceof de))throw new Error(`"${t}" trigger with no parameters can only be placed on an @defer that has a @placeholder block with exactly one root element node`)}}function Vb(t,e){if(e.length>0)throw new Error(`Hydration trigger "${t}" cannot have parameters`)}function yo(t,e=0){let n=!1;for(let r=e;r<t.length;r++)if(Rb.test(t[r]))n=!0;else if(n)return r;return-1}function Ya(t){let e=t.match(kb);if(!e)return null;let[n,r]=e;return parseFloat(n)*(r==="s"?1e3:1)}var qb=/^prefetch\s+when\s/,Hb=/^prefetch\s+on\s/,Gb=/^hydrate\s+when\s/,Wb=/^hydrate\s+on\s/,jb=/^hydrate\s+never(\s*)$/,Ym=/^minimum\s/,Kb=/^after\s/,zb=/^when\s/,Xb=/^on\s/;function Tu(t){return t==="placeholder"||t==="loading"||t==="error"}function Yb(t,e,n,r){let s=[],{placeholder:i,loading:o,error:l}=Qb(e,s,n),{triggers:c,prefetchTriggers:u,hydrateTriggers:p}=tD(t,r,s,i),d=t.endSourceSpan,m=t.sourceSpan.end;if(e.length>0){let w=e[e.length-1];d=w.endSourceSpan,m=w.sourceSpan.end}let g=new W(t.sourceSpan.start,m);return{node:new Yn(_e(n,t.children,t.children),c,u,p,i,o,l,t.nameSpan,g,t.sourceSpan,t.startSourceSpan,d,t.i18n),errors:s}}function Qb(t,e,n){let r=null,s=null,i=null;for(let o of t)try{if(!Tu(o.name)){e.push(new j(o.startSourceSpan,`Unrecognized block "@${o.name}"`));break}switch(o.name){case"placeholder":r!==null?e.push(new j(o.startSourceSpan,"@defer block can only have one @placeholder block")):r=Jb(o,n);break;case"loading":s!==null?e.push(new j(o.startSourceSpan,"@defer block can only have one @loading block")):s=Zb(o,n);break;case"error":i!==null?e.push(new j(o.startSourceSpan,"@defer block can only have one @error block")):i=eD(o,n);break}}catch(l){e.push(new j(o.startSourceSpan,l.message))}return{placeholder:r,loading:s,error:i}}function Jb(t,e){let n=null;for(let r of t.parameters)if(Ym.test(r.expression)){if(n!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let s=Ya(r.expression.slice(yo(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 Ki(_e(e,t.children,t.children),n,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Zb(t,e){let n=null,r=null;for(let s of t.parameters)if(Kb.test(s.expression)){if(n!=null)throw new Error('@loading block can only have one "after" parameter');let i=Ya(s.expression.slice(yo(s.expression)));if(i===null)throw new Error('Could not parse time value of parameter "after"');n=i}else if(Ym.test(s.expression)){if(r!=null)throw new Error('@loading block can only have one "minimum" parameter');let i=Ya(s.expression.slice(yo(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 zi(_e(e,t.children,t.children),n,r,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function eD(t,e){if(t.parameters.length>0)throw new Error("@error block cannot have parameters");return new Xi(_e(e,t.children,t.children),t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function tD(t,e,n,r){let s={},i={},o={};for(let l of t.parameters)zb.test(l.expression)?tc(l,e,s,n):Xb.test(l.expression)?nc(l,s,n,r):qb.test(l.expression)?tc(l,e,i,n):Hb.test(l.expression)?nc(l,i,n,r):Gb.test(l.expression)?tc(l,e,o,n):Wb.test(l.expression)?nc(l,o,n,r):jb.test(l.expression)?Pb(l,o,n):n.push(new j(l.sourceSpan,"Unrecognized trigger"));return o.never&&Object.keys(o).length>1&&n.push(new j(t.startSourceSpan,"Cannot specify additional `hydrate` triggers if `hydrate never` is present")),{triggers:s,prefetchTriggers:i,hydrateTriggers:o}}var nD=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,Qf=1,Jf=2,Zf=3,ed=4,td=5,rD=6,wi=7,ir={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},nd="*";function sD(t,e,n){let r=new xu(e,n),s=_e(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 xu=class{constructor(e,n){a(this,"bindingParser");a(this,"options");a(this,"errors",[]);a(this,"styles",[]);a(this,"styleUrls",[]);a(this,"ngContentSelectors",[]);a(this,"commentNodes",[]);a(this,"inI18nBlock",!1);a(this,"processedNodes",new Set);this.bindingParser=e,this.options=n}visitElement(e){let n=yu(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=Xm(e);if(r.type===Ct.SCRIPT)return null;if(r.type===Ct.STYLE){let x=oD(e);return x!==null&&this.styles.push(x),null}else if(r.type===Ct.STYLESHEET&&ab(r.hrefAttr))return this.styleUrls.push(r.hrefAttr),null;let s=qE(e.name),i=[],o=[],l=[],c=[],u=[],p={},d=[],m=[],g=!1;for(let x of e.attrs){let _=!1,D=rd(x.name),H=!1;if(x.i18n&&(p[x.name]=x.i18n),D.startsWith(nd)){g&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",x.sourceSpan),H=!0,g=!0;let V=x.value,ee=D.substring(nd.length),ae=[],oe=x.valueSpan?x.valueSpan.start.offset:x.sourceSpan.start.offset+x.name.length;this.bindingParser.parseInlineTemplateBinding(ee,V,x.sourceSpan,oe,[],d,ae,!0),m.push(...ae.map(Be=>new vt(Be.name,Be.value,Be.sourceSpan,Be.keySpan,Be.valueSpan)))}else _=this.parseAttribute(s,x,[],i,o,l,c);!_&&!H&&u.push(this.visitAttribute(x))}let E;r.nonBindable?E=_e(iD,e.children).flat(1/0):E=_e(this,e.children,e.children);let w;if(r.type===Ct.NG_CONTENT){let x=r.selectAttr,_=e.attrs.map(D=>this.visitAttribute(D));w=new xr(x,_,E,e.sourceSpan,e.i18n),this.ngContentSelectors.push(x)}else if(s){let x=this.extractAttributes(e.name,i,p);w=new he(e.name,u,x.bound,o,[],E,c,l,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{let x=this.extractAttributes(e.name,i,p);w=new de(e.name,u,x.bound,o,E,c,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(g){let x=this.extractAttributes("ng-template",d,p),_=[];x.literal.forEach(ee=>_.push(ee)),x.bound.forEach(ee=>_.push(ee));let D=w instanceof de?{attributes:w.attributes,inputs:w.inputs,outputs:w.outputs}:{attributes:[],inputs:[],outputs:[]},H=s&&n?void 0:e.i18n,V=w instanceof he?null:w.name;w=new he(V,D.attributes,D.inputs,D.outputs,_,[w],[],m,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,H)}return n&&(this.inI18nBlock=!1),w}visitAttribute(e){return new Ot(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(!yu(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(WE)){let l=i.trim(),c=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);r[l]=new zn(c,o.sourceSpan)}else s[i]=this._visitTextWithInterpolation(o.text,o.sourceSpan,null)}),new Ws(r,s,e.sourceSpan,n)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new Hs(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 ze&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new it(e.name,r,e.sourceSpan,e.nameSpan,e.valueSpan)}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=Yb(e,this.findConnectedBlocks(r,n,Tu),this,this.bindingParser);break;case"switch":s=Ab(e,this,this.bindingParser);break;case"for":s=Cb(e,this.findConnectedBlocks(r,n,Kf),this,this.bindingParser);break;case"if":s=xb(e,this.findConnectedBlocks(r,n,zf),this,this.bindingParser);break;default:let i;Tu(e.name)?(i=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):Kf(e.name)?(i=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):zf(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 ma(e.name,e.sourceSpan,e.nameSpan),errors:[new j(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 po)){if(o instanceof as&&o.value.trim().length===0){this.processedNodes.add(o);continue}if(!(o instanceof Wt)||!r(o.name))break;s.push(o),this.processedNodes.add(o)}}return s}extractAttributes(e,n,r){let s=[],i=[];return n.forEach(o=>{let l=r[o.name];if(o.isLiteral)i.push(new Ot(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,l));else{let c=this.bindingParser.createBoundElementProperty(e,o,!0,!1);s.push(Ft.fromBoundElementProperty(c,l))}}),{bound:s,literal:i}}parseAttribute(e,n,r,s,i,o,l){var _;let c=rd(n.name),u=n.value,p=n.sourceSpan,d=n.valueSpan?n.valueSpan.start.offset:p.start.offset;function m(D,H,V){let ee=n.name.length-c.length,ae=D.start.moveBy(H.length+ee),oe=ae.moveBy(V.length);return new W(ae,oe,ae,V)}let g=c.match(nD);if(g){if(g[Qf]!=null){let D=g[wi],H=m(p,g[Qf],D);this.bindingParser.parsePropertyBinding(D,u,!1,!1,p,d,n.valueSpan,r,s,H)}else if(g[Jf])if(e){let D=g[wi],H=m(p,g[Jf],D);this.parseVariable(D,u,p,H,n.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',p);else if(g[Zf]){let D=g[wi],H=m(p,g[Zf],D);this.parseReference(D,u,p,H,n.valueSpan,l)}else if(g[ed]){let D=[],H=g[wi],V=m(p,g[ed],H);this.bindingParser.parseEvent(H,u,!1,p,n.valueSpan||p,r,D,V),rc(D,i)}else if(g[td]){let D=g[wi],H=m(p,g[td],D);this.bindingParser.parsePropertyBinding(D,u,!1,!0,p,d,n.valueSpan,r,s,H),this.parseAssignmentEvent(D,u,p,n.valueSpan,r,i,H)}else if(g[rD]){let D=m(p,"",c);this.bindingParser.parseLiteralAttr(c,u,p,d,n.valueSpan,r,s,D)}return!0}let E=null;if(c.startsWith(ir.BANANA_BOX.start)?E=ir.BANANA_BOX:c.startsWith(ir.PROPERTY.start)?E=ir.PROPERTY:c.startsWith(ir.EVENT.start)&&(E=ir.EVENT),E!==null&&c.endsWith(E.end)&&c.length>E.start.length+E.end.length){let D=c.substring(E.start.length,c.length-E.end.length),H=m(p,E.start,D);if(E.start===ir.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(D,u,!1,!0,p,d,n.valueSpan,r,s,H),this.parseAssignmentEvent(D,u,p,n.valueSpan,r,i,H);else if(E.start===ir.PROPERTY.start)this.bindingParser.parsePropertyBinding(D,u,!1,!1,p,d,n.valueSpan,r,s,H);else{let V=[];this.bindingParser.parseEvent(D,u,!1,p,n.valueSpan||p,r,V,H),rc(V,i)}return!0}let w=m(p,"",c);return this.bindingParser.parsePropertyInterpolation(c,u,p,n.valueSpan,r,s,w,(_=n.valueTokens)!=null?_:null)}_visitTextWithInterpolation(e,n,r,s){let i=Im(e),o=this.bindingParser.parseInterpolation(i,n,r);return o?new zn(o,n,s):new nn(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 vt(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(l=>l.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,r),o.push(new Dn(e,n,r,s,i))}parseAssignmentEvent(e,n,r,s,i,o,l){let c=[];this.bindingParser.parseEvent(`${e}Change`,n,!0,r,s||r,i,c,l),rc(c,o)}reportError(e,n,r=Bn.ERROR){this.errors.push(new j(n,e,r))}},Cu=class{visitElement(e){let n=Xm(e);if(n.type===Ct.SCRIPT||n.type===Ct.STYLE||n.type===Ct.STYLESHEET)return null;let r=_e(this,e.children,null);return new de(e.name,_e(this,e.attrs),[],[],r,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitComment(e){return null}visitAttribute(e){return new Ot(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new nn(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,n){let r=[new nn(e.startSourceSpan.toString(),e.startSourceSpan),..._e(this,e.children)];return e.endSourceSpan!==null&&r.push(new nn(e.endSourceSpan.toString(),e.endSourceSpan)),r}visitBlockParameter(e,n){return null}visitLetDeclaration(e,n){return new nn(`@let ${e.name} = ${e.value};`,e.sourceSpan)}},iD=new Cu;function rd(t){return/^data-/i.test(t)?t.substring(5):t}function rc(t,e){e.push(...t.map(n=>Xn.fromParsedEvent(n)))}function oD(t){return t.children.length!==1||!(t.children[0]instanceof as)?null:t.children[0].value}var aD=[" ",`
|
|
37
|
-
`,"\r"," "];function Qm(t,e,n={}){var V,ee,ae;let{interpolationConfig:r,preserveWhitespaces:s,enableI18nLegacyMessageIdFormat:i}=n,o=ni(r),c=new Xa().parse(t,e,ye(T({leadingTriviaChars:aD},n),{tokenizeExpansionForms:!0,tokenizeBlocks:(V=n.enableBlockSyntax)!=null?V:!0,tokenizeLet:(ee=n.enableLetSyntax)!=null?ee:!0}));if(!n.alwaysAttemptHtmlToR3AstConversion&&c.errors&&c.errors.length>0){let oe={interpolationConfig:r,preserveWhitespaces:s,errors:c.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(oe.commentNodes=[]),oe}let u=c.rootNodes,p=!((ae=n.preserveSignificantWhitespace)==null||ae),d=new Va(r,!s,i,void 0,n.preserveSignificantWhitespace,p),m=d.visitAllWithErrors(u);if(!n.alwaysAttemptHtmlToR3AstConversion&&m.errors&&m.errors.length>0){let oe={interpolationConfig:r,preserveWhitespaces:s,errors:m.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(oe.commentNodes=[]),oe}u=m.rootNodes,s||(u=_e(new $a(!0,void 0,!1),u),d.hasI18nMeta&&(u=_e(new Va(r,!1,void 0,void 0,!0,p),u)));let{nodes:g,errors:E,styleUrls:w,styles:x,ngContentSelectors:_,commentNodes:D}=sD(u,o,{collectCommentNodes:!!n.collectCommentNodes});E.push(...c.errors,...m.errors);let H={interpolationConfig:r,preserveWhitespaces:s,errors:E.length>0?E:null,nodes:g,styleUrls:w,styles:x,ngContentSelectors:_};return n.collectCommentNodes&&(H.commentNodes=D),H}var lD=new mn;function ni(t=jt){return new Su(new Ua(new fo),t,lD,[])}var Jm="%COMP%",cD=`_nghost-${Jm}`,uD=`_ngcontent-${Jm}`;function Zm(t,e,n){let r=new Ir,s=Mu(t.selector);return r.set("type",t.type.value),s.length>0&&r.set("selectors",Is(s)),t.queries.length>0&&r.set("contentQueries",nb(t.queries,e,t.name)),t.viewQueries.length&&r.set("viewQuery",tb(t.viewQueries,e,t.name)),r.set("hostBindings",gD(t.host,t.typeSourceSpan,n,e,t.selector||"",t.name,r)),r.set("inputs",zh(t.inputs,!0)),r.set("outputs",zh(t.outputs)),t.exportAs!==null&&r.set("exportAs",ue(t.exportAs.map(i=>v(i)))),t.isStandalone===!1&&r.set("standalone",v(!1)),t.isSignal&&r.set("signals",v(!0)),r}function eg(t,e){var o,l;let n=[],r=e.providers,s=e.viewProviders,i=Object.keys(e.inputs);if(r||s){let c=[r||new gt([])];s&&c.push(s),n.push(B(h.ProvidersFeature).callFn(c))}for(let c of i)if(e.inputs[c].transformFunction!==null){n.push(B(h.InputTransformsFeatureFeature));break}if((o=e.hostDirectives)!=null&&o.length&&n.push(B(h.HostDirectivesFeature).callFn([SD(e.hostDirectives)])),e.usesInheritance&&n.push(B(h.InheritDefinitionFeature)),e.fullInheritance&&n.push(B(h.CopyDefinitionFeature)),e.lifecycle.usesOnChanges&&n.push(B(h.NgOnChangesFeature)),"externalStyles"in e&&((l=e.externalStyles)!=null&&l.length)){let c=e.externalStyles.map(u=>v(u));n.push(B(h.ExternalStylesFeature).callFn([ue(c)]))}n.length&&t.set("features",ue(n))}function tg(t,e,n){let r=Zm(t,e,n);eg(r,t);let s=B(h.defineDirective).callFn([r.toLiteralMap()],void 0,!0),i=mD(t);return{expression:s,type:i,statements:[]}}function ng(t,e,n){var g;let r=Zm(t,e,n);eg(r,t);let s=t.selector&&sn.parse(t.selector),i=s&&s[0];if(i){let E=i.getAttrs();E.length&&r.set("attrs",e.getConstLiteral(ue(E.map(w=>w!=null?v(w):v(void 0))),!0))}let o=t.name,l=null;if(t.defer.mode===1&&t.defer.dependenciesFn!==null){let E=`${o}_DeferFn`;e.statements.push(new rt(E,t.defer.dependenciesFn,void 0,Ue.Final)),l=Y(E)}let c=kN(t.name,t.template.nodes,e,t.relativeContextFilePath,t.i18nUseExternalIds,t.defer,l,t.relativeTemplatePath,JN());Bm(c,k.Tmpl);let u=bN(c,e);if(c.contentSelectors!==null&&r.set("ngContentSelectors",c.contentSelectors),r.set("decls",v(c.root.decls)),r.set("vars",v(c.root.vars)),c.consts.length>0&&(c.constsInitializers.length>0?r.set("consts",Qt([],[...c.constsInitializers,new Xe(ue(c.consts))])):r.set("consts",ue(c.consts))),r.set("template",u),t.declarationListEmitMode!==3&&t.declarations.length>0)r.set("dependencies",hD(ue(t.declarations.map(E=>E.type)),t.declarationListEmitMode));else if(t.declarationListEmitMode===3){let E=[t.type.value];t.rawImports&&E.push(t.rawImports),r.set("dependencies",B(h.getComponentDepsFactory).callFn(E))}t.encapsulation===null&&(t.encapsulation=Sn.Emulated);let p=!!((g=t.externalStyles)!=null&&g.length);if(t.styles&&t.styles.length){let w=(t.encapsulation==Sn.Emulated?vD(t.styles,uD,cD):t.styles).reduce((x,_)=>(_.trim().length>0&&x.push(e.getConstLiteral(v(_))),x),[]);w.length>0&&(p=!0,r.set("styles",ue(w)))}!p&&t.encapsulation===Sn.Emulated&&(t.encapsulation=Sn.None),t.encapsulation!==Sn.Emulated&&r.set("encapsulation",v(t.encapsulation)),t.animations!==null&&r.set("data",st([{key:"animation",value:t.animations,quoted:!1}])),t.changeDetection!==null&&(typeof t.changeDetection=="number"&&t.changeDetection!==Qo.Default?r.set("changeDetection",v(t.changeDetection)):typeof t.changeDetection=="object"&&r.set("changeDetection",t.changeDetection));let d=B(h.defineComponent).callFn([r.toLiteralMap()],void 0,!0),m=pD(t);return{expression:d,type:m,statements:[]}}function pD(t){let e=rg(t);return e.push(Iu(t.template.ngContentSelectors)),e.push(Ke(v(t.isStandalone))),e.push(og(t)),t.isSignal&&e.push(Ke(v(t.isSignal))),Ke(B(h.ComponentDeclaration,e))}function hD(t,e){switch(e){case 0:return t;case 1:return Qt([],t);case 2:let n=t.prop("map").callFn([B(h.resolveForwardRef)]);return Qt([],n);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function fD(t){return Ke(v(t))}function Au(t){let e=Object.keys(t).map(n=>{let r=Array.isArray(t[n])?t[n][0]:t[n];return{key:n,value:v(r),quoted:!0}});return st(e)}function Iu(t){return t.length>0?Ke(ue(t.map(e=>v(e)))):an}function rg(t){let e=t.selector!==null?t.selector.replace(/\n/g,""):null;return[el(t.type.type,t.typeArgumentCount),e!==null?fD(e):an,t.exportAs!==null?Iu(t.exportAs):an,Ke(dD(t)),Ke(Au(t.outputs)),Iu(t.queries.map(n=>n.propertyName))]}function dD(t){return st(Object.keys(t.inputs).map(e=>{let n=t.inputs[e],r=[{key:"alias",value:v(n.bindingPropertyName),quoted:!0},{key:"required",value:v(n.required),quoted:!0}];return n.isSignal&&r.push({key:"isSignal",value:v(n.isSignal),quoted:!0}),{key:e,value:st(r),quoted:!0}}))}function mD(t){let e=rg(t);return e.push(an),e.push(Ke(v(t.isStandalone))),e.push(og(t)),t.isSignal&&e.push(Ke(v(t.isSignal))),Ke(B(h.DirectiveDeclaration,e))}function gD(t,e,n,r,s,i,o){let l=n.createBoundHostProperties(t.properties,e),c=n.createDirectiveHostEventAsts(t.listeners,e);t.specialAttributes.styleAttr&&(t.attributes.style=v(t.specialAttributes.styleAttr)),t.specialAttributes.classAttr&&(t.attributes.class=v(t.specialAttributes.classAttr));let u=RN({componentName:i,componentSelector:s,properties:l,events:c,attributes:t.attributes},n,r);Bm(u,k.Host),o.set("hostAttrs",u.root.attributes);let p=u.root.vars;return p!==null&&p>0&&o.set("hostVars",v(p)),DN(u)}var yD=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function sg(t){let e={},n={},r={},s={};for(let i of Object.keys(t)){let o=t[i],l=i.match(yD);if(l===null)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]=v(o):e[i]=o}else if(l[1]!=null){if(typeof o!="string")throw new Error("Property binding must be string");r[l[1]]=o}else if(l[2]!=null){if(typeof o!="string")throw new Error("Event binding must be string");n[l[2]]=o}}return{attributes:e,listeners:n,properties:r,specialAttributes:s}}function ig(t,e){let n=ni();return n.createDirectiveHostEventAsts(t.listeners,e),n.createBoundHostProperties(t.properties,e),n.errors}function vD(t,e,n){let r=new Vc;return t.map(s=>r.shimCssText(s,e,n))}function og(t){var e;return(e=t.hostDirectives)!=null&&e.length?Ke(ue(t.hostDirectives.map(n=>st([{key:"directive",value:ri(n.directive.type),quoted:!1},{key:"inputs",value:Au(n.inputs||{}),quoted:!1},{key:"outputs",value:Au(n.outputs||{}),quoted:!1}])))):an}function SD(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=sd(r.inputs);i&&s.push({key:"inputs",value:i,quoted:!1})}if(r.outputs){let i=sd(r.outputs);i&&s.push({key:"outputs",value:i,quoted:!1})}e.push(st(s))}r.isForwardReference&&(n=!0)}return n?new Tn([],[new Xe(ue(e))]):ue(e)}function sd(t){let e=[];for(let n in t)t.hasOwnProperty(n)&&e.push(v(n),v(t[n]));return e.length>0?ue(e):null}var Qa=class{constructor(e){a(this,"directiveMatcher");this.directiveMatcher=e}bind(e){if(!e.template)throw new Error("Binding without a template not yet supported");let n=Nu.apply(e.template),r=ED(n),{directives:s,eagerDirectives:i,bindings:o,references:l}=bu.apply(e.template,this.directiveMatcher),{expressions:c,symbols:u,nestingLevel:p,usedPipes:d,eagerPipes:m,deferBlocks:g}=Du.applyWithScope(e.template,n);return new _u(e,s,i,o,l,c,u,p,r,d,m,g)}},Nu=class t{constructor(e,n){a(this,"parentScope");a(this,"rootNode");a(this,"namedEntities",new Map);a(this,"elementsInScope",new Set);a(this,"childScopes",new Map);a(this,"isDeferred");this.parentScope=e,this.rootNode=n,this.isDeferred=e!==null&&e.isDeferred?!0:n instanceof Yn}static newRootScope(){return new t(null,null)}static apply(e){let n=t.newRootScope();return n.ingest(e),n}ingest(e){e instanceof he?(e.variables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof Un?(e.expressionAlias!==null&&this.visitVariable(e.expressionAlias),e.children.forEach(n=>n.visit(this))):e instanceof bn?(this.visitVariable(e.item),e.contextVariables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof Yi||e instanceof Qi||e instanceof Yn||e instanceof Xi||e instanceof Ki||e instanceof zi||e instanceof xr?e.children.forEach(n=>n.visit(this)):e.forEach(n=>n.visit(this))}visitElement(e){e.references.forEach(n=>this.visitReference(n)),e.children.forEach(n=>n.visit(this)),this.elementsInScope.add(e)}visitTemplate(e){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)}visitSwitchBlock(e){e.cases.forEach(n=>n.visit(this))}visitSwitchBlockCase(e){this.ingestScopedNode(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)}visitLetDeclaration(e){this.maybeDeclare(e)}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundText(e){}visitText(e){}visitTextAttribute(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}maybeDeclare(e){this.namedEntities.has(e.name)||this.namedEntities.set(e.name,e)}lookup(e){return this.namedEntities.has(e)?this.namedEntities.get(e):this.parentScope!==null?this.parentScope.lookup(e):null}getChildScope(e){let 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 t(this,e);n.ingest(e),this.childScopes.set(e,n)}},bu=class t{constructor(e,n,r,s,i){a(this,"matcher");a(this,"directives");a(this,"eagerDirectives");a(this,"bindings");a(this,"references");a(this,"isInDeferBlock",!1);this.matcher=e,this.directives=n,this.eagerDirectives=r,this.bindings=s,this.references=i}static apply(e,n){let r=new Map,s=new Map,i=new Map,o=[];return new t(n,r,o,s,i).ingest(e),{directives:r,eagerDirectives:o,bindings:s,references:i}}ingest(e){e.forEach(n=>n.visit(this))}visitElement(e){this.visitElementOrTemplate(e)}visitTemplate(e){this.visitElementOrTemplate(e)}visitElementOrTemplate(e){let n=$u(e),r=[];this.matcher.match(n,(i,o)=>r.push(...o)),r.length>0&&(this.directives.set(e,r),this.isInDeferBlock||this.eagerDirectives.push(...r)),e.references.forEach(i=>{let o=null;if(i.value.trim()==="")o=r.find(l=>l.isComponent)||null;else if(o=r.find(l=>l.exportAs!==null&&l.exportAs.some(c=>c===i.value))||null,o===null)return;o!==null?this.references.set(i,{directive:o,node:e}):this.references.set(i,e)});let s=(i,o)=>{let l=r.find(u=>u[o].hasBindingPropertyName(i.name)),c=l!==void 0?l:e;this.bindings.set(i,c)};e.inputs.forEach(i=>s(i,"inputs")),e.attributes.forEach(i=>s(i,"inputs")),e instanceof he&&e.templateAttrs.forEach(i=>s(i,"inputs")),e.outputs.forEach(i=>s(i,"outputs")),e.children.forEach(i=>i.visit(this))}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))}visitSwitchBlock(e){e.cases.forEach(n=>n.visit(this))}visitSwitchBlockCase(e){e.children.forEach(n=>n.visit(this))}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))}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundAttributeOrEvent(e){}visitText(e){}visitBoundText(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}visitLetDeclaration(e){}},Du=class t extends Tr{constructor(n,r,s,i,o,l,c,u,p){super();a(this,"bindings");a(this,"symbols");a(this,"usedPipes");a(this,"eagerPipes");a(this,"deferBlocks");a(this,"nestingLevel");a(this,"scope");a(this,"rootNode");a(this,"level");a(this,"visitNode");this.bindings=n,this.symbols=r,this.usedPipes=s,this.eagerPipes=i,this.deferBlocks=o,this.nestingLevel=l,this.scope=c,this.rootNode=u,this.level=p,this.visitNode=d=>d.visit(this)}visit(n,r){n instanceof xe?n.visit(this,r):n.visit(this)}static applyWithScope(n,r){let s=new Map,i=new Map,o=new Map,l=new Set,c=new Set,u=n instanceof he?n:null,p=[];return new t(s,i,l,c,p,o,r,u,0).ingest(n),{expressions:s,symbols:i,nestingLevel:o,usedPipes:l,eagerPipes:c,deferBlocks:p}}ingest(n){if(n instanceof he)n.variables.forEach(this.visitNode),n.children.forEach(this.visitNode),this.nestingLevel.set(n,this.level);else if(n instanceof Un)n.expressionAlias!==null&&this.visitNode(n.expressionAlias),n.children.forEach(this.visitNode),this.nestingLevel.set(n,this.level);else if(n instanceof bn)this.visitNode(n.item),n.contextVariables.forEach(r=>this.visitNode(r)),n.trackBy.visit(this),n.children.forEach(this.visitNode),this.nestingLevel.set(n,this.level);else if(n instanceof Yn){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(r=>r.visit(this)),this.nestingLevel.set(n,this.level)}else n instanceof Yi||n instanceof Qi||n instanceof Xi||n instanceof Ki||n instanceof zi||n instanceof xr?(n.children.forEach(r=>r.visit(this)),this.nestingLevel.set(n,this.level)):n.forEach(this.visitNode)}visitElement(n){n.inputs.forEach(this.visitNode),n.outputs.forEach(this.visitNode),n.children.forEach(this.visitNode),n.references.forEach(this.visitNode)}visitTemplate(n){n.inputs.forEach(this.visitNode),n.outputs.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)}visitText(n){}visitTextAttribute(n){}visitUnknownBlock(n){}visitDeferredTrigger(){}visitIcu(n){Object.keys(n.vars).forEach(r=>n.vars[r].visit(this)),Object.keys(n.placeholders).forEach(r=>n.placeholders[r].visit(this))}visitBoundAttribute(n){n.value.visit(this)}visitBoundEvent(n){n.handler.visit(this)}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)}visitSwitchBlock(n){n.expression.visit(this),n.cases.forEach(this.visitNode)}visitSwitchBlockCase(n){var r;(r=n.expression)==null||r.visit(this),this.ingestScopedNode(n)}visitForLoopBlock(n){var r;n.expression.visit(this),this.ingestScopedNode(n),(r=n.empty)==null||r.visit(this)}visitForLoopBlockEmpty(n){this.ingestScopedNode(n)}visitIfBlock(n){n.branches.forEach(r=>r.visit(this))}visitIfBlockBranch(n){var r;(r=n.expression)==null||r.visit(this),this.ingestScopedNode(n)}visitContent(n){this.ingestScopedNode(n)}visitBoundText(n){n.value.visit(this)}visitLetDeclaration(n){n.value.visit(this),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),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)}visitPropertyWrite(n,r){return this.maybeMap(n,n.name),super.visitPropertyWrite(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).ingest(n)}maybeMap(n,r){if(!(n.receiver instanceof Re)||n.receiver instanceof cn)return;let s=this.scope.lookup(r);s!==null&&this.bindings.set(n,s)}},_u=class{constructor(e,n,r,s,i,o,l,c,u,p,d,m){a(this,"target");a(this,"directives");a(this,"eagerDirectives");a(this,"bindings");a(this,"references");a(this,"exprTargets");a(this,"symbols");a(this,"nestingLevel");a(this,"scopedNodeEntities");a(this,"usedPipes");a(this,"eagerPipes");a(this,"deferredBlocks");a(this,"deferredScopes");this.target=e,this.directives=n,this.eagerDirectives=r,this.bindings=s,this.references=i,this.exprTargets=o,this.symbols=l,this.nestingLevel=c,this.scopedNodeEntities=u,this.usedPipes=p,this.eagerPipes=d,this.deferredBlocks=m.map(g=>g[0]),this.deferredScopes=new Map(m)}getEntitiesInScope(e){var n;return(n=this.scopedNodeEntities.get(e))!=null?n:new Set}getDirectivesOfNode(e){return this.directives.get(e)||null}getReferenceTarget(e){return this.references.get(e)||null}getConsumerOfBinding(e){return this.bindings.get(e)||null}getExpressionTarget(e){return this.exprTargets.get(e)||null}getDefinitionNodeOfSymbol(e){return this.symbols.get(e)||null}getNestingLevel(e){return this.nestingLevel.get(e)||0}getUsedDirectives(){let e=new Set;return this.directives.forEach(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 fa)&&!(n instanceof da)&&!(n instanceof ha))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 Hs)){if(i!==null)return null;o instanceof de&&(i=o)}}return i}let s=this.findEntityInScope(e,r);if(s instanceof Dn&&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 Dn?this.getReferenceTarget(i):null;if(o!==null)return this.referenceTargetToElement(o)}return null}isDeferred(e){for(let n of this.deferredBlocks){if(!this.deferredScopes.has(n))continue;let r=[this.deferredScopes.get(n)];for(;r.length>0;){let s=r.pop();if(s.elementsInScope.has(e))return!0;r.push(...s.childScopes.values())}}return!1}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 de?e:e instanceof he?null:this.referenceTargetToElement(e.node)}};function ED(t){let e=new Map;function n(i){if(e.has(i.rootNode))return e.get(i.rootNode);let o=i.namedEntities,l;return i.parentScope!==null?l=new Map([...n(i.parentScope),...o]):l=new Map(o),e.set(i.rootNode,l),l}let r=[t];for(;r.length>0;){let i=r.pop();for(let o of i.childScopes.values())r.push(o);n(i)}let s=new Map;for(let[i,o]of e)s.set(i,new Set(o.values()));return s}var ku=class{},Ru=class{constructor(e=new Oc){a(this,"jitEvaluator");a(this,"FactoryTarget",pt);a(this,"ResourceLoader",ku);a(this,"elementSchemaRegistry",new mn);this.jitEvaluator=e}compilePipe(e,n,r){let s={name:r.name,type:Ge(r.type),typeArgumentCount:0,deps:null,pipeName:r.pipeName,pure:r.pure,isStandalone:r.isStandalone},i=Uc(s);return this.jitExpression(i.expression,e,n,[])}compilePipeDeclaration(e,n,r){let s=FD(r),i=Uc(s);return this.jitExpression(i.expression,e,n,[])}compileInjectable(e,n,r){var o;let{expression:s,statements:i}=Pc({name:r.name,type:Ge(r.type),typeArgumentCount:r.typeArgumentCount,providedIn:ud(r.providedIn),useClass:ws(r,"useClass"),useFactory:cd(r,"useFactory"),useValue:ws(r,"useValue"),useExisting:ws(r,"useExisting"),deps:(o=r.deps)==null?void 0:o.map(ug)},!0);return this.jitExpression(s,e,n,i)}compileInjectableDeclaration(e,n,r){var o;let{expression:s,statements:i}=Pc({name:r.type.name,type:Ge(r.type),typeArgumentCount:0,providedIn:ud(r.providedIn),useClass:ws(r,"useClass"),useFactory:cd(r,"useFactory"),useValue:ws(r,"useValue"),useExisting:ws(r,"useExisting"),deps:(o=r.deps)==null?void 0:o.map(pd)},!0);return this.jitExpression(s,e,n,i)}compileInjector(e,n,r){let s={name:r.name,type:Ge(r.type),providers:r.providers&&r.providers.length>0?new G(r.providers):null,imports:r.imports.map(o=>new G(o))},i=Bc(s);return this.jitExpression(i.expression,e,n,[])}compileInjectorDeclaration(e,n,r){let s=BD(r),i=Bc(s);return this.jitExpression(i.expression,e,n,[])}compileNgModule(e,n,r){let s={kind:wn.Global,type:Ge(r.type),bootstrap:r.bootstrap.map(Ge),declarations:r.declarations.map(Ge),publicDeclarationTypes:null,imports:r.imports.map(Ge),includeImportTypes:!0,exports:r.exports.map(Ge),selectorScopeMode:Ks.Inline,containsForwardDecls:!1,schemas:r.schemas?r.schemas.map(Ge):null,id:r.id?new G(r.id):null},i=sm(s);return this.jitExpression(i.expression,e,n,[])}compileNgModuleDeclaration(e,n,r){let s=vw(r);return this.jitExpression(s,e,n,[])}compileDirective(e,n,r){let s=ad(r);return this.compileDirectiveFromMeta(e,n,s)}compileDirectiveDeclaration(e,n,r){let s=this.createParseSourceSpan("Directive",r.type.name,n),i=lg(r,s);return this.compileDirectiveFromMeta(e,n,i)}compileDirectiveFromMeta(e,n,r){let s=new Us,i=ni(),o=tg(r,s,i);return this.jitExpression(o.expression,e,n,s.statements)}compileComponent(e,n,r){var u;let{template:s,interpolation:i,defer:o}=cg(r.template,r.name,n,r.preserveWhitespaces,r.interpolation,void 0),l=ye(T(T({},r),ad(r)),{selector:r.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,declarations:r.declarations.map(CD),declarationListEmitMode:0,defer:o,styles:[...r.styles,...s.styles],encapsulation:r.encapsulation,interpolation:i,changeDetection:(u=r.changeDetection)!=null?u:null,animations:r.animations!=null?new G(r.animations):null,viewProviders:r.viewProviders!=null?new G(r.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null}),c=`ng:///${r.name}.js`;return this.compileComponentFromMeta(e,c,l)}compileComponentDeclaration(e,n,r){let s=this.createParseSourceSpan("Component",r.type.name,n),i=xD(r,s,n);return this.compileComponentFromMeta(e,n,i)}compileComponentFromMeta(e,n,r){let s=new Us,i=ni(r.interpolation),o=ng(r,s,i);return this.jitExpression(o.expression,e,n,s.statements)}compileFactory(e,n,r){let s=ur({name:r.name,type:Ge(r.type),typeArgumentCount:r.typeArgumentCount,deps:ND(r.deps),target:r.target});return this.jitExpression(s.expression,e,n,s.statements)}compileFactoryDeclaration(e,n,r){let s=ur({name:r.type.name,type:Ge(r.type),typeArgumentCount:0,deps:Array.isArray(r.deps)?r.deps.map(pd):r.deps,target:r.target});return this.jitExpression(s.expression,e,n,s.statements)}createParseSourceSpan(e,n,r){return pw(e,n,r)}jitExpression(e,n,r,s){let i=[...s,new rt("$def",e,void 0,Ue.Exported)];return this.jitEvaluator.evaluateStatements(r,i,new $c(n),!0).$def}};function id(t){return ye(T({},t),{isSignal:t.isSignal,predicate:ag(t.predicate),read:t.read?new G(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly})}function od(t){var e,n,r,s;return{propertyName:t.propertyName,first:(e=t.first)!=null?e:!1,predicate:ag(t.predicate),descendants:(n=t.descendants)!=null?n:!1,read:t.read?new G(t.read):null,static:(r=t.static)!=null?r:!1,emitDistinctChangesOnly:(s=t.emitDistinctChangesOnly)!=null?s:!0,isSignal:!!t.isSignal}}function ag(t){return Array.isArray(t)?t:ls(new G(t),1)}function ad(t){var l;let e=OD(t.inputs||[]),n=ic(t.outputs||[]),r=t.propMetadata,s={},i={};for(let c in r)r.hasOwnProperty(c)&&r[c].forEach(u=>{RD(u)?s[c]={bindingPropertyName:u.alias||c,classPropertyName:c,required:u.required||!1,isSignal:!!u.isSignal,transformFunction:u.transform!=null?new G(u.transform):null}:PD(u)&&(i[c]=u.alias||c)});let o=(l=t.hostDirectives)!=null&&l.length?t.hostDirectives.map(c=>typeof c=="function"?{directive:Ge(c),inputs:null,outputs:null,isForwardReference:!1}:{directive:Ge(c.directive),isForwardReference:!1,inputs:c.inputs?ic(c.inputs):null,outputs:c.outputs?ic(c.outputs):null}):null;return ye(T({},t),{typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:Ge(t.type),deps:null,host:T({},DD(t.propMetadata,t.typeSourceSpan,t.host)),inputs:T(T({},e),s),outputs:T(T({},n),i),queries:t.queries.map(id),providers:t.providers!=null?new G(t.providers):null,viewQueries:t.viewQueries.map(id),fullInheritance:!1,hostDirectives:o})}function lg(t,e){var r,s,i,o,l,c,u,p,d,m;let n=(r=t.hostDirectives)!=null&&r.length?t.hostDirectives.map(g=>({directive:Ge(g.directive),isForwardReference:!1,inputs:g.inputs?ld(g.inputs):null,outputs:g.outputs?ld(g.outputs):null})):null;return{name:t.type.name,type:Ge(t.type),typeSourceSpan:e,selector:(s=t.selector)!=null?s:null,inputs:t.inputs?MD(t.inputs):{},outputs:(i=t.outputs)!=null?i:{},host:wD(t.host),queries:((o=t.queries)!=null?o:[]).map(od),viewQueries:((l=t.viewQueries)!=null?l:[]).map(od),providers:t.providers!==void 0?new G(t.providers):null,exportAs:(c=t.exportAs)!=null?c:null,usesInheritance:(u=t.usesInheritance)!=null?u:!1,lifecycle:{usesOnChanges:(p=t.usesOnChanges)!=null?p:!1},deps:null,typeArgumentCount:0,fullInheritance:!1,isStandalone:(d=t.isStandalone)!=null?d:$d(t.version),isSignal:(m=t.isSignal)!=null?m:!1,hostDirectives:n}}function wD(t={}){var e,n,r;return{attributes:TD((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 ld(t){let e=null;for(let n=1;n<t.length;n+=2)e=e||{},e[t[n-1]]=t[n];return e}function TD(t){let e={};for(let n of Object.keys(t))e[n]=new G(t[n]);return e}function xD(t,e,n){var l,c,u,p;let{template:r,interpolation:s,defer:i}=cg(t.template,t.type.name,n,(l=t.preserveWhitespaces)!=null?l:!1,t.interpolation,t.deferBlockDependencies),o=[];if(t.dependencies)for(let d of t.dependencies)switch(d.kind){case"directive":case"component":o.push(sc(d));break;case"pipe":o.push(ID(d));break}else(t.components||t.directives||t.pipes)&&(t.components&&o.push(...t.components.map(d=>sc(d,!0))),t.directives&&o.push(...t.directives.map(d=>sc(d))),t.pipes&&o.push(...AD(t.pipes)));return ye(T({},lg(t,e)),{template:r,styles:(c=t.styles)!=null?c:[],declarations:o,viewProviders:t.viewProviders!==void 0?new G(t.viewProviders):null,animations:t.animations!==void 0?new G(t.animations):null,defer:i,changeDetection:(u=t.changeDetection)!=null?u:Qo.Default,encapsulation:(p=t.encapsulation)!=null?p:Sn.Emulated,interpolation:s,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null})}function CD(t){return ye(T({},t),{type:new G(t.type)})}function sc(t,e=null){var n,r,s;return{kind:zs.Directive,isComponent:e||t.kind==="component",selector:t.selector,type:new G(t.type),inputs:(n=t.inputs)!=null?n:[],outputs:(r=t.outputs)!=null?r:[],exportAs:(s=t.exportAs)!=null?s:null}}function AD(t){return t?Object.keys(t).map(e=>({kind:zs.Pipe,name:e,type:new G(t[e])})):[]}function ID(t){return{kind:zs.Pipe,name:t.name,type:new G(t.type)}}function cg(t,e,n,r,s,i){let o=s?eo.fromArray(s):jt,l=Qm(t,n,{preserveWhitespaces:r,interpolationConfig:o});if(l.errors!==null){let p=l.errors.map(d=>d.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${p}`)}let u=new Qa(new gr).bind({template:l.nodes});return{template:l,interpolation:o,defer:bD(u,i)}}function ws(t,e){if(t.hasOwnProperty(e))return ls(new G(t[e]),0)}function cd(t,e){if(t.hasOwnProperty(e))return new G(t[e])}function ud(t){let e=typeof t=="function"?new G(t):new Pe(t!=null?t:null);return ls(e,0)}function ND(t){return t==null?null:t.map(ug)}function ug(t){let e=t.attribute!=null,n=t.token===null?null:new G(t.token),r=e?new G(t.attribute):n;return pg(r,e,t.host,t.optional,t.self,t.skipSelf)}function pd(t){var r,s,i,o,l;let e=(r=t.attribute)!=null?r:!1,n=t.token===null?null:new G(t.token);return pg(n,e,(s=t.host)!=null?s:!1,(i=t.optional)!=null?i:!1,(o=t.self)!=null?o:!1,(l=t.skipSelf)!=null?l:!1)}function pg(t,e,n,r,s,i){let o=e?v("unknown"):null;return{token:t,attributeNameType:o,host:n,optional:r,self:s,skipSelf:i}}function bD(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 G(i):null)}return{mode:0,blocks:r}}function DD(t,e,n){let r=sg(n||{}),s=ig(r,e);if(s.length)throw new Error(s.map(i=>i.msg).join(`
|
|
38
|
-
`));for(let i in t)t.hasOwnProperty(i)&&t[i].forEach(o=>{
|
|
39
|
-
`)}`);a(this,"code");a(this,"node");a(this,"diagnosticMessage");a(this,"relatedInformation");a(this,"_isFatalDiagnosticError",!0);this.code=e,this.node=n,this.diagnosticMessage=r,this.relatedInformation=s,Object.setPrototypeOf(this,new.target.prototype)}toDiagnostic(){return hp(this.code,this.node,this.diagnosticMessage,this.relatedInformation)}};function hp(t,e,n,r,s=ci.default.DiagnosticCategory.Error){return e=ci.default.getOriginalNode(e),{category:s,code:ul(t),file:ci.default.getOriginalNode(e).getSourceFile(),start:e.getStart(void 0,!1),length:e.getWidth(),messageText:n,relatedInformation:r}}function fp(t,e){return{category:ci.default.DiagnosticCategory.Message,code:0,messageText:t,next:e}}var qD=new Set([re.DECORATOR_ARG_NOT_LITERAL,re.IMPORT_CYCLE_DETECTED,re.PARAM_MISSING_TOKEN,re.SCHEMA_INVALID_ELEMENT,re.SCHEMA_INVALID_ATTRIBUTE,re.MISSING_REFERENCE_TARGET,re.COMPONENT_INVALID_SHADOW_DOM_SELECTOR,re.WARN_NGMODULE_ID_UNNECESSARY]);var St;(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.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.UNUSED_STANDALONE_IMPORTS="unusedStandaloneImports"})(St||(St={}));function HD(t){return xo.default.isIdentifier(t)||xo.default.isPropertyAccessExpression(t)&&xo.default.isIdentifier(t.expression)&&xo.default.isIdentifier(t.name)}var Pr;(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"})(Pr||(Pr={}));var we;(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"})(we||(we={}));var cs={};function GD(t,e,n){var r,s;if(t===null)return zD();if(!Fe.default.isTypeReferenceNode(t))return To(t);let i=XD(t,e);if(i===null)return jD(t);let{local:o,decl:l}=i;if(l.valueDeclaration===void 0||l.flags&Fe.default.SymbolFlags.ConstEnum){let p=null;if(l.declarations!==void 0&&l.declarations.length>0&&(p=l.declarations[0]),!n||p&&[Fe.default.SyntaxKind.TypeParameter,Fe.default.SyntaxKind.TypeAliasDeclaration,Fe.default.SyntaxKind.InterfaceDeclaration].includes(p.kind))return WD(t,p)}let c=o.declarations&&o.declarations[0];if(c!==void 0){if(Fe.default.isImportClause(c)&&c.name!==void 0)return c.isTypeOnly?al(t,c):Fe.default.isImportDeclaration(c.parent)?{kind:0,expression:c.name,defaultImportStatement:c.parent}:To(t);if(Fe.default.isImportSpecifier(c)){if(c.isTypeOnly)return al(t,c);if(c.parent.parent.isTypeOnly)return al(t,c.parent.parent);let p=(c.propertyName||c.name).text,[d,...m]=i.symbolNames,g=c.parent.parent.parent;if(!Fe.default.isImportDeclaration(g))return To(t);let E=dg(g);return{kind:1,valueDeclaration:(r=l.valueDeclaration)!=null?r:null,moduleName:E,importedName:p,nestedPath:m}}else if(Fe.default.isNamespaceImport(c)){if(c.parent.isTypeOnly)return al(t,c.parent);if(i.symbolNames.length===1)return KD(t,c.parent);let[p,d,...m]=i.symbolNames,g=c.parent.parent;if(!Fe.default.isImportDeclaration(g))return To(t);let E=dg(g);return{kind:1,valueDeclaration:(s=l.valueDeclaration)!=null?s:null,moduleName:E,importedName:d,nestedPath:m}}}let u=Ng(t);return u!==null?{kind:0,expression:u,defaultImportStatement:null}:To(t)}function To(t){return{kind:2,reason:{kind:5,typeNode:t}}}function WD(t,e){return{kind:2,reason:{kind:1,typeNode:t,decl:e}}}function al(t,e){return{kind:2,reason:{kind:2,typeNode:t,node:e}}}function jD(t){return{kind:2,reason:{kind:3,typeNode:t}}}function KD(t,e){return{kind:2,reason:{kind:4,typeNode:t,importClause:e}}}function zD(){return{kind:2,reason:{kind:0}}}function Ng(t){return Fe.default.isTypeReferenceNode(t)?dp(t.typeName):null}function XD(t,e){let n=t.typeName,r=e.getSymbolAtLocation(n);if(r===void 0)return null;let s=r,i=n,o=[];for(;Fe.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 l=r;return r.flags&Fe.default.SymbolFlags.Alias&&(l=e.getAliasedSymbol(r)),{local:s,decl:l,symbolNames:o}}function dp(t){if(Fe.default.isQualifiedName(t)){let e=dp(t.left);return e!==null?Fe.default.factory.createPropertyAccessExpression(e,t.right):null}else if(Fe.default.isIdentifier(t)){let e=Fe.default.setOriginalNode(Fe.default.factory.createIdentifier(t.text),t);return e.parent=t.parent,e}else return null}function dg(t){if(!Fe.default.isStringLiteral(t.moduleSpecifier))throw new Error("not a module specifier");return t.moduleSpecifier.text}function gp(t){return mp.default.isClassDeclaration(t)&&YD(t.name)}function YD(t){return t!==void 0&&mp.default.isIdentifier(t)}function yp(t){switch(t){case we.EcmaScriptPrivate:return"ES private";case we.Private:return"private";case we.Protected:return"protected";case we.PublicReadonly:return"public readonly";case we.PublicWritable:default:return"public"}}var vp=class{constructor(t,e=!1,n=!1){a(this,"checker");a(this,"isLocalCompilation");a(this,"skipPrivateValueDeclarationTypes");this.checker=t,this.isLocalCompilation=e,this.skipPrivateValueDeclarationTypes=n}getDecoratorsOfDeclaration(t){let e=F.default.canHaveDecorators(t)?F.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 mg(t).members.map(n=>{let r=Sp(n);return r===null?null:ye(T({},r),{decorators:this.getDecoratorsOfDeclaration(n)})}).filter(n=>n!==null)}getConstructorParameters(t){let e=mg(t),n=e.getSourceFile().isDeclarationFile,r=e.members.find(s=>F.default.isConstructorDeclaration(s)&&(n||s.body!==void 0));return r===void 0?null:r.parameters.map(s=>{let i=gg(s.name),o=this.getDecoratorsOfDeclaration(s),l=s.type||null,c=l;if(c&&F.default.isUnionTypeNode(c)){let p=c.types.filter(d=>!(F.default.isLiteralTypeNode(d)&&d.literal.kind===F.default.SyntaxKind.NullKeyword));p.length===1&&(c=p[0])}let u=GD(c,this.checker,this.isLocalCompilation);return{name:i,nameNode:s.name,typeValueReference:u,typeNode:l,decorators:o}})}getImportOfIdentifier(t){let e=this.getDirectImportOfIdentifier(t);return e!==null?e:F.default.isQualifiedName(t.parent)&&t.parent.right===t?this.getImportOfNamespacedIdentifier(t,e0(t.parent)):F.default.isPropertyAccessExpression(t.parent)&&t.parent.name===t?this.getImportOfNamespacedIdentifier(t,t0(t.parent)):null}getExportsOfModule(t){if(!F.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 gp(t)}hasBaseClass(t){return this.getBaseClassExpression(t)!==null}getBaseClassExpression(t){if(!(F.default.isClassDeclaration(t)||F.default.isClassExpression(t))||t.heritageClauses===void 0)return null;let e=t.heritageClauses.find(r=>r.token===F.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(!F.default.isFunctionDeclaration(t)&&!F.default.isMethodDeclaration(t)&&!F.default.isFunctionExpression(t)&&!F.default.isArrowFunction(t))return null;let e=null;t.body!==void 0&&(e=F.default.isBlock(t.body)?Array.from(t.body.statements):[F.default.factory.createReturnStatement(t.body)]);let n=this.checker.getTypeAtLocation(t),r=this.checker.getSignaturesOfType(n,F.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=gg(s.name),o=s.initializer||null;return{name:i,node:s,initializer:o,type:s.type||null}})}}getGenericArityOfClass(t){return F.default.isClassDeclaration(t)?t.typeParameters!==void 0?t.typeParameters.length:0:null}getVariableValue(t){return t.initializer||null}isStaticallyExported(t){let e=t;F.default.isVariableDeclaration(t)&&F.default.isVariableDeclarationList(t.parent)&&(e=t.parent.parent);let n=F.default.canHaveModifiers(e)?F.default.getModifiers(e):void 0;return n!==void 0&&n.some(s=>s.kind===F.default.SyntaxKind.ExportKeyword)?!0:e.parent===void 0||!F.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=n0(n);return r===null||!F.default.isStringLiteral(r.moduleSpecifier)?null:{from:r.moduleSpecifier.text,name:r0(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=F.default.isNamespaceImport(r)?r:null;if(!s)return null;let i=s.parent.parent;return!F.default.isImportDeclaration(i)||!F.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&&F.default.isShorthandPropertyAssignment(n)){let s=this.checker.getShorthandAssignmentValueSymbol(n);return s===void 0?null:this.getDeclarationOfSymbol(s,e)}else if(n!==void 0&&F.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&F.default.SymbolFlags.Alias;)t=this.checker.getAliasedSymbol(t);return t.valueDeclaration!==void 0&&(!this.skipPrivateValueDeclarationTypes||!ZD(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(F.default.isCallExpression(e)&&(n=Array.from(e.arguments),e=e.expression),!HD(e))return null;let r=F.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[sp]!==void 0)return e[sp];let n=new Set;e[sp]=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&F.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()?cs:n!==null&&n.from!==null&&!n.from.startsWith(".")?n.from:null}};function QD(t){let e=F.default.getModifiers(t),n=!1,r=!1,s=we.PublicWritable;if(e!==void 0)for(let i of e)switch(i.kind){case F.default.SyntaxKind.StaticKeyword:n=!0;break;case F.default.SyntaxKind.PrivateKeyword:s=we.Private;break;case F.default.SyntaxKind.ProtectedKeyword:s=we.Protected;break;case F.default.SyntaxKind.ReadonlyKeyword:r=!0;break}return r&&s===we.PublicWritable&&(s=we.PublicReadonly),t.name!==void 0&&F.default.isPrivateIdentifier(t.name)&&(s=we.EcmaScriptPrivate),{accessLevel:s,isStatic:n}}function Sp(t){let e=null,n=null,r=null,s=null;if(F.default.isPropertyDeclaration(t))e=Pr.Property,n=t.initializer||null;else if(F.default.isGetAccessorDeclaration(t))e=Pr.Getter;else if(F.default.isSetAccessorDeclaration(t))e=Pr.Setter;else if(F.default.isMethodDeclaration(t))e=Pr.Method;else if(F.default.isConstructorDeclaration(t))e=Pr.Constructor;else return null;if(F.default.isConstructorDeclaration(t))r="constructor";else if(F.default.isIdentifier(t.name))r=t.name.text,s=t.name;else if(F.default.isStringLiteral(t.name))r=t.name.text,s=t.name;else if(F.default.isPrivateIdentifier(t.name))r=t.name.text,s=t.name;else return null;let{accessLevel:i,isStatic:o}=QD(t);return{node:t,implementation:t,kind:e,type:t.type||null,accessLevel:i,name:r,nameNode:s,value:n,isStatic:o}}function Ep(t){let e=new Map;return t.properties.forEach(n=>{if(F.default.isPropertyAssignment(n)){let r=JD(n.name);if(r===null)return;e.set(r,n.initializer)}else if(F.default.isShorthandPropertyAssignment(n))e.set(n.name.text,n.name);else return}),e}function mg(t){if(!F.default.isClassDeclaration(t))throw new Error(`Reflecting on a ${F.default.SyntaxKind[t.kind]} instead of a ClassDeclaration.`);return t}function gg(t){return F.default.isIdentifier(t)?t.text:null}function JD(t){return F.default.isIdentifier(t)||F.default.isStringLiteral(t)||F.default.isNumericLiteral(t)?t.text:null}function ZD(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 e0(t){for(;F.default.isQualifiedName(t.left);)t=t.left;return F.default.isIdentifier(t.left)?t.left:null}function t0(t){for(;F.default.isPropertyAccessExpression(t.expression);)t=t.expression;return F.default.isIdentifier(t.expression)?t.expression:null}function n0(t){let e=t.parent;for(;e&&!F.default.isSourceFile(e);){if(F.default.isImportDeclaration(e))return e;e=e.parent}return null}function r0(t,e){return F.default.isImportSpecifier(t)?(t.propertyName!==void 0?t.propertyName:t.name).text:e.text}var sp=Symbol("LocalExportedDeclarations");function op(t){return t.name!==void 0&&bg.default.isIdentifier(t.name)?t.name:null}var us=class{constructor(t,e=null){a(this,"node");a(this,"bestGuessOwningModule");a(this,"identifiers",[]);a(this,"synthetic",!1);a(this,"_alias",null);a(this,"isAmbient");this.node=t,e===cs?(this.isAmbient=!0,this.bestGuessOwningModule=null):(this.isAmbient=!1,this.bestGuessOwningModule=e);let n=op(t);n!==null&&this.identifiers.push(n)}get ownedByModuleGuess(){return this.bestGuessOwningModule!==null?this.bestGuessOwningModule.specifier:null}get hasOwningModuleGuess(){return this.bestGuessOwningModule!==null}get debugName(){let t=op(this.node);return t!==null?t.text:null}get alias(){return this._alias}addIdentifier(t){this.identifiers.push(t)}getIdentityIn(t){return this.identifiers.find(e=>e.getSourceFile()===t)||null}getIdentityInExpression(t){let e=t.getSourceFile();return this.identifiers.find(n=>n.getSourceFile()!==e?!1:n.pos>=t.pos&&n.end<=t.end)||null}getOriginForDiagnostics(t,e=t){let n=this.getIdentityInExpression(t);return n!==null?n:e}cloneWithAlias(t){let e=new us(this.node,this.isAmbient?cs:this.bestGuessOwningModule);return e.identifiers=[...this.identifiers],e._alias=t,e}cloneWithNoIdentifiers(){let t=new us(this.node,this.isAmbient?cs:this.bestGuessOwningModule);return t._alias=this._alias,t.identifiers=[],t}};var ap;(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"})(ap||(ap={}));var lp;(function(t){t[t.Success=0]="Success",t[t.Failed=1]="Failed"})(lp||(lp={}));var yg=Symbol("patchedReferencedAliases");function wp(t){i0(t)||vg();let e=t.getEmitResolver(),n=e[yg];if(n!==void 0)return n;let r=e.isReferencedAliasDeclaration;r===void 0&&vg();let s=new Set;return e.isReferencedAliasDeclaration=function(i,...o){return Tp(i)&&s.has(i)?!0:r.call(e,i,...o)},e[yg]=s}function Tp(t){return ll.default.isImportSpecifier(t)||ll.default.isNamespaceImport(t)||ll.default.isImportClause(t)}function i0(t){return t.getEmitResolver!==void 0}function vg(){throw Error(`Angular compiler is incompatible with this version of the TypeScript compiler.
|
|
36
|
+
`.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 DC=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function _C(t){return t.split(DC)[2]}var Tu=class extends j{constructor(e,n){super(e,n)}},Pf=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function kC(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),Pf.has(t+"|"+e)||Pf.has("*|"+e)}var RC=t=>(e,n)=>{var s;let r=(s=t.get(e))!=null?s:e;return r instanceof _r&&(n instanceof Xs&&r.i18n instanceof dt&&(n.previousMessage=r.i18n),r.i18n=n),n},za=class{constructor(e=jt,n=!1,r=!1,s=iw,i=!0,o=!i){a(this,"interpolationConfig");a(this,"keepI18nAttrs");a(this,"enableI18nLegacyMessageIdFormat");a(this,"containerBlocks");a(this,"preserveSignificantWhitespace");a(this,"retainEmptyTokens");a(this,"hasI18nMeta",!1);a(this,"_errors",[]);this.interpolationConfig=e,this.keepI18nAttrs=n,this.enableI18nLegacyMessageIdFormat=r,this.containerBlocks=s,this.preserveSignificantWhitespace=i,this.retainEmptyTokens=o}_generateI18nMessage(e,n="",r){let{meaning:s,description:i,customId:o}=this._parseMetadata(n),c=CC(this.interpolationConfig,this.containerBlocks,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 Wa(n,this._errors)}visitElement(e){let n;if(ZE(e)){this.hasI18nMeta=!0;let r=[],s={};for(let i of e.attrs)if(i.name===Kd){let o=e.i18n||i.value,l=new Map,c=this.preserveSignificantWhitespace?e.children:As(new ja(!1,l),e.children);n=this._generateI18nMessage(c,o,RC(l)),n.nodes.length===0&&(n=void 0),e.i18n=n}else if(i.name.startsWith(Uc)){let o=i.name.slice(Uc.length);kC(e.name,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)}return _e(this,e.children,n),e}visitExpansion(e,n){let r,s=e.i18n;if(this.hasI18nMeta=!0,s instanceof Xs){let i=s.name;r=this._generateI18nMessage([e],s);let o=Xd(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 _e(this,e.children,n),e}visitBlockParameter(e,n){return e}visitLetDeclaration(e,n){return e}_parseMetadata(e){return typeof e=="string"?LC(e):e instanceof dt?e:{}}_setMessageId(e,n){e.id||(e.id=n instanceof dt&&n.id||sE(e))}_setLegacyIds(e,n){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[rE(e),Rd(e)];else if(typeof n!="string"){let r=n instanceof dt?n:n instanceof Xs?n.previousMessage:void 0;e.legacyIds=r?r.legacyIds:[]}}_reportError(e,n){this._errors.push(new Tu(e.sourceSpan,n))}},PC="|",MC="@@";function LC(t=""){let e,n,r;if(t=t.trim(),t){let s=t.indexOf(MC),i=t.indexOf(PC),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 OC(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}),$d(e)}var FC="goog.getMsg";function BC(t,e,n,r){let s=UC(e),i=[v(s)];Object.keys(r).length&&(i.push(ou(Gu(r,!0),!0)),i.push(ou({original_code:it(Object.keys(r).map(c=>({key:Ao(c),quoted:!0,value:e.placeholders[c]?v(e.placeholders[c].sourceSpan.toString()):v(e.placeholderToMessage[c].nodes.map(u=>u.sourceSpan.toString()).join(""))})))})));let o=n.set(Y(FC).callFn(i)).toConstDecl();o.addLeadingComment(OC(e));let l=new Ft(t.set(n));return[o,l]}var xu=class{formatPh(e){return`{$${Ao(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(n=>n.visit(this)).join("")}visitIcu(e){return bm(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)}},$C=new xu;function UC(t){return t.nodes.map(e=>e.visit($C,null)).join("")}function VC(t,e,n){let{messageParts:r,placeHolders:s}=qC(e),i=HC(e),o=s.map(u=>n[u.text]),l=qd(e,r,s,o,i),c=t.set(l);return[new Ft(c)]}var Cu=class{constructor(e,n){a(this,"placeholderToMessage");a(this,"pieces");this.placeholderToMessage=e,this.pieces=n}visitText(e){if(this.pieces[this.pieces.length-1]instanceof mr)this.pieces[this.pieces.length-1].text+=e.value;else{let n=new W(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new mr(e.value,n))}}visitContainer(e){e.children.forEach(n=>n.visit(this))}visitIcu(e){this.pieces.push(new mr(bm(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 qr(Ao(e,!1),n,r)}};function qC(t){let e=[],n=new Cu(t.placeholderToMessage,e);return t.nodes.forEach(r=>r.visit(n)),GC(e)}function HC(t){let e=t.nodes[0],n=t.nodes[t.nodes.length-1];return new W(e.sourceSpan.fullStart,n.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}function GC(t){let e=[],n=[];t[0]instanceof qr&&e.push(tc(t[0].sourceSpan.start));for(let r=0;r<t.length;r++){let s=t[r];s instanceof mr?e.push(s):(n.push(s),t[r-1]instanceof qr&&e.push(tc(t[r-1].sourceSpan.end)))}return t[t.length-1]instanceof qr&&e.push(tc(t[t.length-1].sourceSpan.end)),{messageParts:e,placeHolders:n}}function tc(t){return new mr("",new W(t,t))}var Mf="ngI18nClosureMode",WC="i18n_",jC="I18N_EXP_",Lf="\uFFFD",KC="MSG_";function Of(t){return`${KC}${t}`.toUpperCase()}function zC(t){return new st(t.name,void 0,Lt,void 0,t.sourceSpan)}function XC(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 p of t.units)for(let d of p.ops())if(d.kind===f.ExtractedAttribute&&d.i18nContext!==null){let m=(c=n.get(d.i18nContext))!=null?c:[];m.push(d),n.set(d.i18nContext,m)}else if(d.kind===f.I18nAttributes)r.set(d.target,d);else if(d.kind===f.I18nExpression&&d.usage===ss.I18nAttribute){let m=(u=s.get(d.target))!=null?u:[];m.push(d),s.set(d.target,m)}else d.kind===f.I18nMessage&&i.set(d.xref,d);let o=new Map,l=new Map;for(let p of t.units)for(let d of p.create)if(d.kind===f.I18nMessage){if(d.messagePlaceholder===null){let{mainVar:m,statements:g}=Fm(t,e,i,d);if(d.i18nBlock!==null){let E=t.addConst(m,g);l.set(d.i18nBlock,E)}else{t.constsInitializers.push(...g),o.set(d.i18nContext,m);let E=n.get(d.i18nContext);if(E!==void 0)for(let w of E)w.expression=m.clone()}}A.remove(d)}for(let p of t.units)for(let d of p.create)if(Dr(d)){let m=r.get(d.xref);if(m===void 0)continue;let g=s.get(d.xref);if(g===void 0)throw new Error("AssertionError: Could not find any i18n expressions associated with an I18nAttributes instruction");let E=new Set;g=g.filter(x=>{let k=E.has(x.name);return E.add(x.name),!k});let w=g.flatMap(x=>{let k=o.get(x.context);if(k===void 0)throw new Error("AssertionError: Could not find i18n expression's value");return[v(x.name),k]});m.i18nAttributesConfig=t.addConst(new yt(w))}for(let p of t.units)for(let d of p.create)if(d.kind===f.I18nStart){let m=l.get(d.root);if(m===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?");d.messageIndex=m}}function Fm(t,e,n,r){var u;let s=[],i=new Map;for(let p of r.subMessages){let d=n.get(p),{mainVar:m,statements:g}=Fm(t,e,n,d);s.push(...g);let E=(u=i.get(d.messagePlaceholder))!=null?u:[];E.push(m),i.set(d.messagePlaceholder,E)}YC(r,i),r.params=new Map([...r.params.entries()].sort());let o=Y(t.pool.uniqueName(WC)),l=ZC(t.pool,r.message.id,e,t.i18nUseExternalIds),c;if(r.needsPostprocessing||r.postprocessingParams.size>0){let p=Object.fromEntries([...r.postprocessingParams.entries()].sort()),d=Gu(p,!1),m=[];r.postprocessingParams.size>0&&m.push(ou(d,!0)),c=g=>$(h.i18nPostprocess).callFn([g,...m])}return s.push(...QC(r.message,o,l,r.params,c)),{mainVar:o,statements:s}}function YC(t,e){for(let[n,r]of e)r.length===1?t.params.set(n,r[0]):(t.params.set(n,v(`${Lf}${jC}${n}${Lf}`)),t.postprocessingParams.set(n,pe(r)))}function QC(t,e,n,r,s){let i=Object.fromEntries(r),o=[zC(e),Co(JC(),BC(e,t,n,i),VC(e,t,Gu(i,!1)))];return s&&o.push(new Ft(e.set(s(e)))),o}function JC(){return oi(Y(Mf)).notIdentical(v("undefined",al)).and(Y(Mf))}function ZC(t,e,n,r){let s,i=n;if(r){let o=Of("EXTERNAL_"),l=t.uniqueName(i);s=`${o}${Ri(e)}$$${l}`}else{let o=Of(i);s=t.uniqueName(o)}return Y(s)}function eA(t){var e,n,r;for(let s of t.units){let i=null,o=null,l=new Map,c=new Map,u=new Map;for(let p of s.create)switch(p.kind){case f.I18nStart:if(p.context===null)throw Error("I18n op should have its context set.");i=p;break;case f.I18nEnd:i=null;break;case f.IcuStart:if(p.context===null)throw Error("Icu op should have its context set.");o=p;break;case f.IcuEnd:o=null;break;case f.Text:if(i!==null)if(l.set(p.xref,i),c.set(p.xref,o),p.icuPlaceholder!==null){let d=_T(t.allocateXrefId(),p.icuPlaceholder,[p.initialValue]);A.replace(p,d),u.set(p.xref,d)}else A.remove(p);break}for(let p of s.update)switch(p.kind){case f.InterpolateText:if(!l.has(p.target))continue;let d=l.get(p.target),m=c.get(p.target),g=u.get(p.target),E=m?m.context:d.context,w=m?Js.Postproccessing:Js.Creation,x=[];for(let k=0;k<p.interpolation.expressions.length;k++){let _=p.interpolation.expressions[k];x.push(Sm(E,d.xref,d.xref,d.handle,_,(e=g==null?void 0:g.xref)!=null?e:null,(n=p.interpolation.i18nPlaceholders[k])!=null?n:null,w,ss.I18nText,"",(r=_.sourceSpan)!=null?r:p.sourceSpan))}A.replaceWithMany(p,x),g!==void 0&&(g.strings=p.interpolation.strings);break}}}function tA(t){for(let e of t.units)for(let n of e.create)switch(n.kind){case f.ElementStart:case f.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=nA(n.localRefs);n.localRefs=t.addConst(r)}else n.localRefs=null;break}}function nA(t){let e=[];for(let n of t)e.push(v(n.name),v(n.target));return pe(e)}function rA(t){for(let e of t.units){let n=nt.HTML;for(let r of e.create)r.kind===f.ElementStart&&r.namespace!==n&&(A.insertBefore(TT(r.namespace),r),n=r.namespace)}}function sA(t){let e=[],n=0,r=0,s=0,i=0,o=0,l=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:!l&&r===0&&s===0&&(l=Bm(t.substring(o,n-1).trim()),i=n);break;case 59:if(l&&i>0&&r===0&&s===0){let u=t.substring(i,n-1).trim();e.push(l,u),o=n,i=0,l=null}break}if(l&&i){let c=t.slice(i).trim();e.push(l,c)}return e}function Bm(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function iA(t){let e=new Map;for(let n of t.units)for(let r of n.create)Dr(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.create)if(r.kind===f.ExtractedAttribute&&r.bindingKind===U.Attribute&&Em(r.expression)){let s=e.get(r.target);if(s!==void 0&&s.kind===f.Template&&s.templateKind===Nt.Structural)continue;if(r.name==="style"){let i=sA(r.expression.value);for(let o=0;o<i.length-1;o+=2)A.insertBefore(Kt(r.target,U.StyleProperty,null,i[o],v(i[o+1]),null,null,ve.STYLE),r);A.remove(r)}else if(r.name==="class"){let i=r.expression.value.trim().split(/\s+/g);for(let o of i)A.insertBefore(Kt(r.target,U.ClassName,null,o,null,null,null,ve.NONE),r);A.remove(r)}}}function oA(t){bi(t.root,t.componentName,{index:0},t.compatibility===bt.TemplateDefinitionBuilder)}function bi(t,e,n,r){t.fnName===null&&(t.fnName=t.job.pool.uniqueName(Ri(`${e}_${t.job.fnSuffix}`),!1));let s=new Map;for(let i of t.ops())switch(i.kind){case f.Property:case f.HostProperty:i.isAnimationTrigger&&(i.name="@"+i.name);break;case f.Listener:if(i.handlerFnName!==null)break;if(!i.hostListener&&i.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let o="";i.isAnimationListener&&(i.name=`@${i.name}.${i.animationPhase}`,o="animation"),i.hostListener?i.handlerFnName=`${e}_${o}${i.name}_HostBindingHandler`:i.handlerFnName=`${t.fnName}_${i.tag.replace("-","_")}_${o}${i.name}_${i.targetSlot.slot}_listener`,i.handlerFnName=Ri(i.handlerFnName);break;case f.TwoWayListener:if(i.handlerFnName!==null)break;if(i.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");i.handlerFnName=Ri(`${t.fnName}_${i.tag.replace("-","_")}_${i.name}_${i.targetSlot.slot}_listener`);break;case f.Variable:s.set(i.xref,aA(t,i.variable,n));break;case f.RepeaterCreate:if(!(t instanceof Cn))throw new Error("AssertionError: must be compiling a component");if(i.handle.slot===null)throw new Error("Expected slot to be assigned");if(i.emptyView!==null){let u=t.job.views.get(i.emptyView);bi(u,`${e}_${i.functionNameSuffix}Empty_${i.handle.slot+2}`,n,r)}bi(t.job.views.get(i.xref),`${e}_${i.functionNameSuffix}_${i.handle.slot+1}`,n,r);break;case f.Projection:if(!(t instanceof Cn))throw new Error("AssertionError: must be compiling a component");if(i.handle.slot===null)throw new Error("Expected slot to be assigned");if(i.fallbackView!==null){let u=t.job.views.get(i.fallbackView);bi(u,`${e}_ProjectionFallback_${i.handle.slot}`,n,r)}break;case f.Template:if(!(t instanceof Cn))throw new Error("AssertionError: must be compiling a component");let l=t.job.views.get(i.xref);if(i.handle.slot===null)throw new Error("Expected slot to be assigned");let c=i.functionNameSuffix.length===0?"":`_${i.functionNameSuffix}`;bi(l,`${e}${c}_${i.handle.slot}`,n,r);break;case f.StyleProp:i.name=lA(i.name),r&&(i.name=Ff(i.name));break;case f.ClassProp:r&&(i.name=Ff(i.name));break}for(let i of t.ops())lt(i,o=>{if(!(!(o instanceof Gn)||o.name!==null)){if(!s.has(o.xref))throw new Error(`Variable ${o.xref} not yet named`);o.name=s.get(o.xref)}})}function aA(t,e,n){if(e.name===null)switch(e.kind){case Ke.Context:e.name=`ctx_r${n.index++}`;break;case Ke.Identifier:if(t.job.compatibility===bt.TemplateDefinitionBuilder){let r=e.identifier==="ctx"?"i":"";e.name=`${e.identifier}_${r}r${++n.index}`}else e.name=`${e.identifier}_i${n.index++}`;break;default:e.name=`_r${++n.index}`;break}return e.name}function lA(t){return t.startsWith("--")?t:Bm(t)}function Ff(t){let e=t.indexOf("!important");return e>-1?t.substring(0,e):t}function cA(t){for(let e of t.units){for(let n of e.create)(n.kind===f.Listener||n.kind===f.TwoWayListener)&&Bf(n.handlerOps);Bf(e.update)}}function Bf(t){for(let e of t){if(e.kind!==f.Statement||!(e.statement instanceof Ft)||!(e.statement.expr instanceof Da))continue;let n=e.statement.expr.steps,r=!0;for(let s=e.next;s.kind!==f.ListEnd&&r;s=s.next)lt(s,(i,o)=>{if(!kn(i))return i;if(r&&!(o&ue.InChildOperation))switch(i.kind){case B.NextContext:i.steps+=n,A.remove(e),r=!1;break;case B.GetCurrentView:case B.Reference:case B.ContextLetReference:r=!1;break}})}}var uA="ng-container";function pA(t){for(let e of t.units){let n=new Set;for(let r of e.create)r.kind===f.ElementStart&&r.tag===uA&&(r.kind=f.ContainerStart,n.add(r.xref)),r.kind===f.ElementEnd&&n.has(r.xref)&&(r.kind=f.ContainerEnd)}}function hA(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 fA(t){let e=new Map;for(let n of t.units)for(let r of n.create)Dr(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.create)(r.kind===f.ElementStart||r.kind===f.ContainerStart)&&r.nonBindable&&A.insertAfter(ET(r.xref),r),(r.kind===f.ElementEnd||r.kind===f.ContainerEnd)&&hA(e,r.xref).nonBindable&&A.insertBefore(wT(r.xref),r)}function dA(t){for(let e of t.units)for(let n of e.ops())Ve(n,r=>{if(!(r instanceof le)||r.operator!==b.NullishCoalesce)return r;let s=new dn(r.lhs.clone(),t.allocateXrefId()),i=new Zn(s.xref);return new cn(new le(b.And,new le(b.NotIdentical,s,Vs),new le(b.NotIdentical,i,new Pe(void 0))),i.clone(),r.rhs)},ue.None)}function Bn(t){return e=>e.kind===t}function Oi(t,e){return n=>n.kind===t&&e===n.expression instanceof Le}function mA(t){return t.kind===f.Listener&&!(t.hostListener&&t.isAnimationListener)||t.kind===f.TwoWayListener}function gA(t){return(t.kind===f.Property||t.kind===f.TwoWayProperty)&&!(t.expression instanceof Le)}var yA=[{test:t=>t.kind===f.Listener&&t.hostListener&&t.isAnimationListener},{test:mA}],vA=[{test:Bn(f.StyleMap),transform:Xa},{test:Bn(f.ClassMap),transform:Xa},{test:Bn(f.StyleProp)},{test:Bn(f.ClassProp)},{test:Oi(f.Attribute,!0)},{test:Oi(f.Property,!0)},{test:gA},{test:Oi(f.Attribute,!1)}],SA=[{test:Oi(f.HostProperty,!0)},{test:Oi(f.HostProperty,!1)},{test:Bn(f.Attribute)},{test:Bn(f.StyleMap),transform:Xa},{test:Bn(f.ClassMap),transform:Xa},{test:Bn(f.StyleProp)},{test:Bn(f.ClassProp)}],$f=new Set([f.Listener,f.TwoWayListener,f.StyleMap,f.ClassMap,f.StyleProp,f.ClassProp,f.Property,f.TwoWayProperty,f.HostProperty,f.Attribute]);function EA(t){for(let e of t.units){Uf(e.create,yA);let n=e.job.kind===R.Host?SA:vA;Uf(e.update,n)}}function Uf(t,e){let n=[],r=null;for(let s of t){let i=Na(s)?s.target:null;(!$f.has(s.kind)||i!==r&&r!==null&&i!==null)&&(A.insertBefore(Vf(n,e),s),n=[],r=null),$f.has(s.kind)&&(n.push(s),A.remove(s),r=i!=null?i:r)}t.push(Vf(n,e))}function Vf(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 Xa(t){return t.slice(t.length-1)}function wA(t){for(let e of t.units){let n=np(e);for(let r of e.ops())switch(r.kind){case f.Binding:let s=xA(n,r.target);TA(r.name)&&s.kind===f.Projection&&A.remove(r);break}}}function TA(t){return t.toLowerCase()==="select"}function xA(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an slottable target.");return n}function CA(t){for(let e of t.units)AA(e)}function AA(t){for(let e of t.update)lt(e,(n,r)=>{if(kn(n)&&n.kind===B.PipeBinding){if(r&ue.InChildOperation)throw new Error("AssertionError: pipe bindings should not appear in child expressions");if(t.job.compatibility){if(e.target==null)throw new Error("AssertionError: expected slot handle to be assigned for pipe creation");IA(t,e.target,n)}else t.create.push(xm(n.target,n.targetSlot,n.name))}})}function IA(t,e,n){for(let r=t.create.head.next;r.kind!==f.ListEnd;r=r.next){if(!ci(r)||r.xref!==e)continue;for(;r.next.kind===f.Pipe;)r=r.next;let s=xm(n.target,n.targetSlot,n.name);A.insertBefore(s,r.next);return}throw new Error(`AssertionError: unable to find insertion point for pipe ${n.name}`)}function NA(t){for(let e of t.units)for(let n of e.update)Ve(n,r=>!(r instanceof as)||r.args.length<=4?r:new Ra(r.target,r.targetSlot,r.name,pe(r.args),r.args.length),ue.None)}function bA(t){$m(t.root,0)}function $m(t,e){let n=null;for(let r of t.create)switch(r.kind){case f.I18nStart:r.subTemplateIndex=e===0?null:e,n=r;break;case f.I18nEnd:n.subTemplateIndex===null&&(e=0),n=null;break;case f.Template:e=nc(t.job.views.get(r.xref),n,r.i18nPlaceholder,e);break;case f.RepeaterCreate:let s=t.job.views.get(r.xref);e=nc(s,n,r.i18nPlaceholder,e),r.emptyView!==null&&(e=nc(t.job.views.get(r.emptyView),n,r.emptyI18nPlaceholder,e));break}return e}function nc(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++,DA(t,e)}return $m(t,r)}function DA(t,e){var n;if(((n=t.create.head.next)==null?void 0:n.kind)!==f.I18nStart){let r=t.job.allocateXrefId();A.insertAfter(fl(r,e.message,e.root,null),t.create.head),A.insertBefore(dl(r,null),t.create.tail)}}function _A(t){for(let e of t.units)for(let n of e.ops())lt(n,r=>{if(!(r instanceof os)||r.body===null)return;let s=new Au(r.args.length);r.fn=t.pool.getSharedConstant(s,r.body),r.body=null})}var Au=class extends Ps{constructor(n){super();a(this,"numArgs");this.numArgs=n}keyOf(n){return n instanceof Zs?`param(${n.index})`:super.keyOf(n)}toSharedConstantDeclaration(n,r){let s=[];for(let o=0;o<this.numArgs;o++)s.push(new ze("a"+o));let i=P(r,o=>o instanceof Zs?Y("a"+o.index):o,ue.None);return new st(n,new Wn(s,i),void 0,Ue.Final)}};function kA(t){for(let e of t.units)for(let n of e.update)Ve(n,(r,s)=>s&ue.InChildOperation?r:r instanceof yt?RA(r):r instanceof Yt?PA(r):r,ue.None)}function RA(t){let e=[],n=[];for(let r of t.entries)if(r.isConstant())e.push(r);else{let s=n.length;n.push(r),e.push(new Zs(s))}return new os(pe(e),n)}function PA(t){let e=[],n=[];for(let r of t.entries)if(r.value.isConstant())e.push(r);else{let s=n.length;n.push(r.value),e.push(new Xr(r.key,new Zs(s),r.quoted))}return new os(it(e),n)}function MA(t,e,n,r,s){return ml(h.element,t,e,n,r,s)}function LA(t,e,n,r,s){return ml(h.elementStart,t,e,n,r,s)}function ml(t,e,n,r,s,i){let o=[v(e)];return n!==null&&o.push(v(n)),s!==null?o.push(v(r),v(s)):r!==null&&o.push(v(r)),re(t,o,i)}function OA(t){return re(h.elementEnd,[],t)}function FA(t,e,n,r){return ml(h.elementContainerStart,t,null,e,n,r)}function BA(t,e,n,r){return ml(h.elementContainer,t,null,e,n,r)}function $A(){return re(h.elementContainerEnd,[],null)}function UA(t,e,n,r,s,i,o,l){let c=[v(t),e,v(n),v(r),v(s),v(i)];for(o!==null&&(c.push(v(o)),c.push($(h.templateRefExtractor)));c[c.length-1].isEquivalent(Vs);)c.pop();return re(h.templateCreate,c,l)}function VA(){return re(h.disableBindings,[],null)}function qA(){return re(h.enableBindings,[],null)}function HA(t,e,n,r,s){let i=[v(t),e];return n!==null&&(i.push(v(!1)),i.push($(n))),re(r?h.syntheticHostListener:h.listener,i,s)}function qf(t,e){return $(h.twoWayBindingSet).callFn([t,e])}function GA(t,e,n){return re(h.twoWayListener,[v(t),e],n)}function WA(t,e){return re(h.pipe,[v(t),v(e)],null)}function jA(){return re(h.namespaceHTML,[],null)}function KA(){return re(h.namespaceSVG,[],null)}function zA(){return re(h.namespaceMathML,[],null)}function XA(t,e){return re(h.advance,t>1?[v(t)]:[],e)}function YA(t){return $(h.reference).callFn([v(t)])}function QA(t){return $(h.nextContext).callFn(t===1?[]:[v(t)])}function JA(){return $(h.getCurrentView).callFn([])}function ZA(t){return $(h.restoreView).callFn([t])}function eI(t){return $(h.resetView).callFn([t])}function tI(t,e,n){let r=[v(t,null)];return e!==""&&r.push(v(e)),re(h.text,r,n)}function nI(t,e,n,r,s,i,o,l,c,u,p){let d=[v(t),v(e),n!=null?n:v(null),v(r),v(s),v(i),o!=null?o:v(null),l!=null?l:v(null),c?$(h.deferEnableTimerScheduling):v(null),v(p)],m;for(;(m=d[d.length-1])!==null&&m instanceof Pe&&m.value===null;)d.pop();return re(h.defer,d,u)}var rI=new Map([[fe.Idle,{none:h.deferOnIdle,prefetch:h.deferPrefetchOnIdle,hydrate:h.deferHydrateOnIdle}],[fe.Immediate,{none:h.deferOnImmediate,prefetch:h.deferPrefetchOnImmediate,hydrate:h.deferHydrateOnImmediate}],[fe.Timer,{none:h.deferOnTimer,prefetch:h.deferPrefetchOnTimer,hydrate:h.deferHydrateOnTimer}],[fe.Hover,{none:h.deferOnHover,prefetch:h.deferPrefetchOnHover,hydrate:h.deferHydrateOnHover}],[fe.Interaction,{none:h.deferOnInteraction,prefetch:h.deferPrefetchOnInteraction,hydrate:h.deferHydrateOnInteraction}],[fe.Viewport,{none:h.deferOnViewport,prefetch:h.deferPrefetchOnViewport,hydrate:h.deferHydrateOnViewport}],[fe.Never,{none:h.deferHydrateNever,prefetch:h.deferHydrateNever,hydrate:h.deferHydrateNever}]]);function sI(t,e,n,r){var i;let s=(i=rI.get(t))==null?void 0:i[n];if(s===void 0)throw new Error(`Unable to determine instruction for trigger ${t}`);return re(s,e.map(o=>v(o)),r)}function iI(t){return re(h.projectionDef,t?[t]:[],null)}function oI(t,e,n,r,s,i,o){let l=[v(t)];return(e!==0||n!==null||r!==null)&&(l.push(v(e)),n!==null&&l.push(n),r!==null&&(n===null&&l.push(v(null)),l.push(Y(r),v(s),v(i)))),re(h.projection,l,o)}function aI(t,e,n,r){let s=[v(t),v(e)];return n!==null&&s.push(v(n)),re(h.i18nStart,s,r)}function lI(t,e,n,r,s,i,o,l,c,u,p,d,m,g){let E=[v(t),Y(e),v(n),v(r),v(s),v(i),o];return(l||c!==null)&&(E.push(v(l)),c!==null&&(E.push(Y(c),v(u),v(p)),(d!==null||m!==null)&&E.push(v(d)),m!==null&&E.push(v(m)))),re(h.repeaterCreate,E,g)}function cI(t,e){return re(h.repeater,[t],e)}function uI(t,e,n){return t==="prefetch"?re(h.deferPrefetchWhen,[e],n):t==="hydrate"?re(h.deferHydrateWhen,[e],n):re(h.deferWhen,[e],n)}function pI(t,e){return re(h.declareLet,[v(t)],e)}function hI(t,e){return $(h.storeLet).callFn([t],e)}function fI(t){return $(h.readContextLet).callFn([v(t)])}function dI(t,e,n,r){let s=[v(t),v(e)];return n&&s.push(v(n)),re(h.i18n,s,r)}function mI(t){return re(h.i18nEnd,[],t)}function gI(t,e){let n=[v(t),v(e)];return re(h.i18nAttributes,n,null)}function yI(t,e,n,r){let s=[v(t),e];return n!==null&&s.push(n),re(h.property,s,r)}function vI(t,e,n,r){let s=[v(t),e];return n!==null&&s.push(n),re(h.twoWayProperty,s,r)}function SI(t,e,n,r){let s=[v(t),e];return(n!==null||r!==null)&&s.push(n!=null?n:v(null)),r!==null&&s.push(v(r)),re(h.attribute,s,null)}function EI(t,e,n,r){let s=[v(t),e];return n!==null&&s.push(v(n)),re(h.styleProp,s,r)}function wI(t,e,n){return re(h.classProp,[v(t),e],n)}function TI(t,e){return re(h.styleMap,[t],e)}function xI(t,e){return re(h.classMap,[t],e)}var Hf=[h.pipeBind1,h.pipeBind2,h.pipeBind3,h.pipeBind4];function CI(t,e,n){if(n.length<1||n.length>Hf.length)throw new Error("pipeBind() argument count out of bounds");let r=Hf[n.length-1];return $(r).callFn([v(t),v(e),...n])}function AI(t,e,n){return $(h.pipeBindV).callFn([v(t),v(e),n])}function II(t,e,n){let r=ui(t,e);return pi($I,[],r,[],n)}function NI(t,e){return re(h.i18nExp,[t],e)}function bI(t,e){return re(h.i18nApply,[v(t)],e)}function DI(t,e,n,r,s){let i=ui(e,n),o=[];return r!==null&&o.push(r),pi(UI,[v(t)],i,o,s)}function _I(t,e,n,r,s){let i=ui(e,n),o=[];return r!==null&&o.push(r),pi(qI,[v(t)],i,o,s)}function kI(t,e,n,r,s){let i=ui(e,n),o=[];return r!==null&&o.push(v(r)),pi(VI,[v(t)],i,o,s)}function RI(t,e,n){let r=ui(t,e);return pi(HI,[],r,[],n)}function PI(t,e,n){let r=ui(t,e);return pi(GI,[],r,[],n)}function MI(t,e,n,r){let s=[v(t),e];return n!==null&&s.push(n),re(h.hostProperty,s,r)}function LI(t,e,n){return re(h.syntheticHostProperty,[v(t),e],n)}function OI(t,e,n){return Um(WI,[v(t),e],n,[],null)}function FI(t,e){return re(h.attachSourceLocations,[v(t),e],null)}function ui(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(v(t[r]),e[r]);n.push(v(t[r]))}return n}function re(t,e,n){let r=$(t).callFn(e,n);return fn(new Ft(r,n))}function BI(t,e,n){let r=[t];return e!==null&&r.push(e),re(h.conditional,r,n)}var $I={constant:[h.textInterpolate,h.textInterpolate1,h.textInterpolate2,h.textInterpolate3,h.textInterpolate4,h.textInterpolate5,h.textInterpolate6,h.textInterpolate7,h.textInterpolate8],variable:h.textInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},UI={constant:[h.propertyInterpolate,h.propertyInterpolate1,h.propertyInterpolate2,h.propertyInterpolate3,h.propertyInterpolate4,h.propertyInterpolate5,h.propertyInterpolate6,h.propertyInterpolate7,h.propertyInterpolate8],variable:h.propertyInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},VI={constant:[h.styleProp,h.stylePropInterpolate1,h.stylePropInterpolate2,h.stylePropInterpolate3,h.stylePropInterpolate4,h.stylePropInterpolate5,h.stylePropInterpolate6,h.stylePropInterpolate7,h.stylePropInterpolate8],variable:h.stylePropInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},qI={constant:[h.attribute,h.attributeInterpolate1,h.attributeInterpolate2,h.attributeInterpolate3,h.attributeInterpolate4,h.attributeInterpolate5,h.attributeInterpolate6,h.attributeInterpolate7,h.attributeInterpolate8],variable:h.attributeInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},HI={constant:[h.styleMap,h.styleMapInterpolate1,h.styleMapInterpolate2,h.styleMapInterpolate3,h.styleMapInterpolate4,h.styleMapInterpolate5,h.styleMapInterpolate6,h.styleMapInterpolate7,h.styleMapInterpolate8],variable:h.styleMapInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},GI={constant:[h.classMap,h.classMapInterpolate1,h.classMapInterpolate2,h.classMapInterpolate3,h.classMapInterpolate4,h.classMapInterpolate5,h.classMapInterpolate6,h.classMapInterpolate7,h.classMapInterpolate8],variable:h.classMapInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},WI={constant:[h.pureFunction0,h.pureFunction1,h.pureFunction2,h.pureFunction3,h.pureFunction4,h.pureFunction5,h.pureFunction6,h.pureFunction7,h.pureFunction8],variable:h.pureFunctionV,mapping:t=>t};function Um(t,e,n,r,s){let i=t.mapping(n.length);if(i<t.constant.length)return $(t.constant[i]).callFn([...e,...n,...r],s);if(t.variable!==null)return $(t.variable).callFn([...e,pe(n),...r],s);throw new Error("AssertionError: unable to call variadic function")}function pi(t,e,n,r,s){return fn(Um(t,e,n,r,s).toStmt())}var jI=new Map([["window",h.resolveWindow],["document",h.resolveDocument],["body",h.resolveBody]]);function KI(t){for(let e of t.units)zI(e,e.create),rp(e,e.update)}function zI(t,e){var n,r,s,i,o,l,c;for(let u of e)switch(Ve(u,Vm,ue.None),u.kind){case f.Text:A.replace(u,tI(u.handle.slot,u.initialValue,u.sourceSpan));break;case f.ElementStart:A.replace(u,LA(u.handle.slot,u.tag,u.attributes,u.localRefs,u.startSourceSpan));break;case f.Element:A.replace(u,MA(u.handle.slot,u.tag,u.attributes,u.localRefs,u.wholeSourceSpan));break;case f.ElementEnd:A.replace(u,OA(u.sourceSpan));break;case f.ContainerStart:A.replace(u,FA(u.handle.slot,u.attributes,u.localRefs,u.startSourceSpan));break;case f.Container:A.replace(u,BA(u.handle.slot,u.attributes,u.localRefs,u.wholeSourceSpan));break;case f.ContainerEnd:A.replace(u,$A());break;case f.I18nStart:A.replace(u,aI(u.handle.slot,u.messageIndex,u.subTemplateIndex,u.sourceSpan));break;case f.I18nEnd:A.replace(u,mI(u.sourceSpan));break;case f.I18n:A.replace(u,dI(u.handle.slot,u.messageIndex,u.subTemplateIndex,u.sourceSpan));break;case f.I18nAttributes:if(u.i18nAttributesConfig===null)throw new Error("AssertionError: i18nAttributesConfig was not set");A.replace(u,gI(u.handle.slot,u.i18nAttributesConfig));break;case f.Template:if(!(t instanceof Cn))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(u.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let p=t.job.views.get(u.xref);A.replace(u,UA(u.handle.slot,Y(p.fnName),p.decls,p.vars,u.tag,u.attributes,u.localRefs,u.startSourceSpan));break;case f.DisableBindings:A.replace(u,VA());break;case f.EnableBindings:A.replace(u,qA());break;case f.Pipe:A.replace(u,WA(u.handle.slot,u.name));break;case f.DeclareLet:A.replace(u,pI(u.handle.slot,u.sourceSpan));break;case f.Listener:let d=Gf(t,u.handlerFnName,u.handlerOps,u.consumesDollarEvent),m=u.eventTarget?jI.get(u.eventTarget):null;if(m===void 0)throw new Error(`Unexpected global target '${u.eventTarget}' defined for '${u.name}' event. Supported list of global targets: window,document,body.`);A.replace(u,HA(u.name,d,m,u.hostListener&&u.isAnimationListener,u.sourceSpan));break;case f.TwoWayListener:A.replace(u,GA(u.name,Gf(t,u.handlerFnName,u.handlerOps,!0),u.sourceSpan));break;case f.Variable:if(u.variable.name===null)throw new Error(`AssertionError: unnamed variable ${u.xref}`);A.replace(u,fn(new st(u.variable.name,u.initializer,void 0,Ue.Final)));break;case f.Namespace:switch(u.active){case nt.HTML:A.replace(u,jA());break;case nt.SVG:A.replace(u,KA());break;case nt.Math:A.replace(u,zA());break}break;case f.Defer:let g=!!u.loadingMinimumTime||!!u.loadingAfterTime||!!u.placeholderMinimumTime;A.replace(u,nI(u.handle.slot,u.mainSlot.slot,u.resolverFn,(r=(n=u.loadingSlot)==null?void 0:n.slot)!=null?r:null,(i=(s=u.placeholderSlot)==null?void 0:s.slot)!=null?i:null,(l=(o=u.errorSlot)==null?void 0:o.slot)!=null?l:null,u.loadingConfig,u.placeholderConfig,g,u.sourceSpan,u.flags));break;case f.DeferOn:let E=[];switch(u.trigger.kind){case fe.Never:case fe.Idle:case fe.Immediate:break;case fe.Timer:E=[u.trigger.delay];break;case fe.Interaction:case fe.Hover:case fe.Viewport:if(u.modifier==="hydrate")E=[];else{if(((c=u.trigger.targetSlot)==null?void 0:c.slot)==null||u.trigger.targetSlotViewSteps===null)throw new Error(`Slot or view steps not set in trigger reification for trigger kind ${u.trigger.kind}`);E=[u.trigger.targetSlot.slot],u.trigger.targetSlotViewSteps!==0&&E.push(u.trigger.targetSlotViewSteps)}break;default:throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${u.trigger.kind}`)}A.replace(u,sI(u.trigger.kind,E,u.modifier,u.sourceSpan));break;case f.ProjectionDef:A.replace(u,iI(u.def));break;case f.Projection:if(u.handle.slot===null)throw new Error("No slot was assigned for project instruction");let w=null,x=null,k=null;if(u.fallbackView!==null){if(!(t instanceof Cn))throw new Error("AssertionError: must be compiling a component");let oe=t.job.views.get(u.fallbackView);if(oe===void 0)throw new Error("AssertionError: projection had fallback view xref, but fallback view was not found");if(oe.fnName===null||oe.decls===null||oe.vars===null)throw new Error("AssertionError: expected projection fallback view to have been named and counted");w=oe.fnName,x=oe.decls,k=oe.vars}A.replace(u,oI(u.handle.slot,u.projectionSlotIndex,u.attributes,w,x,k,u.sourceSpan));break;case f.RepeaterCreate:if(u.handle.slot===null)throw new Error("No slot was assigned for repeater instruction");if(!(t instanceof Cn))throw new Error("AssertionError: must be compiling a component");let _=t.job.views.get(u.xref);if(_.fnName===null)throw new Error("AssertionError: expected repeater primary view to have been named");let H=null,V=null,te=null;if(u.emptyView!==null){let oe=t.job.views.get(u.emptyView);if(oe===void 0)throw new Error("AssertionError: repeater had empty view xref, but empty view was not found");if(oe.fnName===null||oe.decls===null||oe.vars===null)throw new Error("AssertionError: expected repeater empty view to have been named and counted");H=oe.fnName,V=oe.decls,te=oe.vars}A.replace(u,lI(u.handle.slot,_.fnName,u.decls,u.vars,u.tag,u.attributes,XI(t,u),u.usesComponentInstance,H,V,te,u.emptyTag,u.emptyAttributes,u.wholeSourceSpan));break;case f.SourceLocation:let ae=pe(u.locations.map(({targetSlot:oe,offset:Be,line:Vt,column:gs})=>{if(oe.slot===null)throw new Error("No slot was assigned for source location");return pe([v(oe.slot),v(Be),v(Vt),v(gs)])}));A.replace(u,FI(u.templatePath,ae));break;case f.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${f[u.kind]}`)}}function rp(t,e){for(let n of e)switch(Ve(n,Vm,ue.None),n.kind){case f.Advance:A.replace(n,XA(n.delta,n.sourceSpan));break;case f.Property:n.expression instanceof Le?A.replace(n,DI(n.name,n.expression.strings,n.expression.expressions,n.sanitizer,n.sourceSpan)):A.replace(n,yI(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case f.TwoWayProperty:A.replace(n,vI(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case f.StyleProp:n.expression instanceof Le?A.replace(n,kI(n.name,n.expression.strings,n.expression.expressions,n.unit,n.sourceSpan)):A.replace(n,EI(n.name,n.expression,n.unit,n.sourceSpan));break;case f.ClassProp:A.replace(n,wI(n.name,n.expression,n.sourceSpan));break;case f.StyleMap:n.expression instanceof Le?A.replace(n,RI(n.expression.strings,n.expression.expressions,n.sourceSpan)):A.replace(n,TI(n.expression,n.sourceSpan));break;case f.ClassMap:n.expression instanceof Le?A.replace(n,PI(n.expression.strings,n.expression.expressions,n.sourceSpan)):A.replace(n,xI(n.expression,n.sourceSpan));break;case f.I18nExpression:A.replace(n,NI(n.expression,n.sourceSpan));break;case f.I18nApply:A.replace(n,bI(n.handle.slot,n.sourceSpan));break;case f.InterpolateText:A.replace(n,II(n.interpolation.strings,n.interpolation.expressions,n.sourceSpan));break;case f.Attribute:n.expression instanceof Le?A.replace(n,_I(n.name,n.expression.strings,n.expression.expressions,n.sanitizer,n.sourceSpan)):A.replace(n,SI(n.name,n.expression,n.sanitizer,n.namespace));break;case f.HostProperty:if(n.expression instanceof Le)throw new Error("not yet handled");n.isAnimationTrigger?A.replace(n,LI(n.name,n.expression,n.sourceSpan)):A.replace(n,MI(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case f.Variable:if(n.variable.name===null)throw new Error(`AssertionError: unnamed variable ${n.xref}`);A.replace(n,fn(new st(n.variable.name,n.initializer,void 0,Ue.Final)));break;case f.Conditional:if(n.processed===null)throw new Error("Conditional test was not set.");A.replace(n,BI(n.processed,n.contextValue,n.sourceSpan));break;case f.Repeater:A.replace(n,cI(n.collection,n.sourceSpan));break;case f.DeferWhen:A.replace(n,uI(n.modifier,n.expr,n.sourceSpan));break;case f.StoreLet:throw new Error(`AssertionError: unexpected storeLet ${n.declaredName}`);case f.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of update op ${f[n.kind]}`)}}function Vm(t){if(!kn(t))return t;switch(t.kind){case B.NextContext:return QA(t.steps);case B.Reference:return YA(t.targetSlot.slot+1+t.offset);case B.LexicalRead:throw new Error(`AssertionError: unresolved LexicalRead of ${t.name}`);case B.TwoWayBindingSet:throw new Error("AssertionError: unresolved TwoWayBindingSet");case B.RestoreView:if(typeof t.view=="number")throw new Error("AssertionError: unresolved RestoreView");return ZA(t.view);case B.ResetView:return eI(t.expr);case B.GetCurrentView:return JA();case B.ReadVariable:if(t.name===null)throw new Error(`Read of unnamed variable ${t.xref}`);return Y(t.name);case B.ReadTemporaryExpr:if(t.name===null)throw new Error(`Read of unnamed temporary ${t.xref}`);return Y(t.name);case B.AssignTemporaryExpr:if(t.name===null)throw new Error(`Assign of unnamed temporary ${t.xref}`);return Y(t.name).set(t.expr);case B.PureFunctionExpr:if(t.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");return OI(t.varOffset,t.fn,t.args);case B.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case B.PipeBinding:return CI(t.targetSlot.slot,t.varOffset,t.args);case B.PipeBindingVariadic:return AI(t.targetSlot.slot,t.varOffset,t.args);case B.SlotLiteralExpr:return v(t.slot.slot);case B.ContextLetReference:return fI(t.targetSlot.slot);case B.StoreLet:return hI(t.value,t.sourceSpan);case B.TrackContext:return Y("this");default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${B[t.kind]}`)}}function Gf(t,e,n,r){rp(t,n);let s=[];for(let o of n){if(o.kind!==f.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${f[o.kind]}`);s.push(o.statement)}let i=[];return r&&i.push(new ze("$event")),jn(i,s,void 0,void 0,e)}function XI(t,e){if(e.trackByFn!==null)return e.trackByFn;let n=[new ze("$index"),new ze("$item")],r;if(e.trackByOps===null)r=e.usesComponentInstance?jn(n,[new Ye(e.track)]):Qt(n,e.track);else{rp(t,e.trackByOps);let s=[];for(let i of e.trackByOps){if(i.kind!==f.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${f[i.kind]}`);s.push(i.statement)}r=e.usesComponentInstance||s.length!==1||!(s[0]instanceof Ye)?jn(n,s):Qt(n,s[0].value)}return e.trackByFn=t.job.pool.getSharedFunctionReference(r,"_forTrack"),e.trackByFn}function YI(t){for(let e of t.units)for(let n of e.update)switch(n.kind){case f.Attribute:case f.Binding:case f.ClassProp:case f.ClassMap:case f.Property:case f.StyleProp:case f.StyleMap:n.expression instanceof mo&&A.remove(n);break}}function QI(t){for(let e of t.units)for(let n of e.create)switch(n.kind){case f.I18nContext:A.remove(n);break;case f.I18nStart:n.context=null;break}}function JI(t){for(let e of t.units){let n=new Set;for(let r of e.update)switch(r.kind){case f.I18nExpression:n.add(r.i18nOwner)}for(let r of e.create)switch(r.kind){case f.I18nAttributes:if(n.has(r.xref))continue;A.remove(r)}}}function ZI(t){for(let e of t.units)Ya(e,e.create),Ya(e,e.update)}function Ya(t,e){let n=new Map;n.set(t.xref,Y("ctx"));for(let r of e)switch(r.kind){case f.Variable:switch(r.variable.kind){case Ke.Context:n.set(r.variable.view,new Gn(r.xref));break}break;case f.Listener:case f.TwoWayListener:Ya(t,r.handlerOps);break;case f.RepeaterCreate:r.trackByOps!==null&&Ya(t,r.trackByOps);break}t===t.job.root&&n.set(t.xref,Y("ctx"));for(let r of e)Ve(r,s=>{if(s instanceof Jn){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},ue.None)}function eN(t){for(let e of t.units)Wf(e.create),Wf(e.update)}function Wf(t){for(let e of t)(e.kind===f.Listener||e.kind===f.TwoWayListener)&&Ve(e,n=>n instanceof et&&n.name==="$event"?(e.kind===f.Listener&&(e.consumesDollarEvent=!0),new Ot(n.name)):n,ue.InChildOperation)}function tN(t){let e=new Map,n=new Map;for(let r of t.units)for(let s of r.create)switch(s.kind){case f.I18nContext:e.set(s.xref,s);break;case f.ElementStart:n.set(s.xref,s);break}ar(t,t.root,e,n)}function ar(t,e,n,r,s){let i=null,o=new Map;for(let l of e.create)switch(l.kind){case f.I18nStart:if(!l.context)throw Error("Could not find i18n context for i18n op");i={i18nBlock:l,i18nContext:n.get(l.context)};break;case f.I18nEnd:i=null;break;case f.ElementStart:if(l.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");jf(l,i.i18nContext,i.i18nBlock,s),s&&l.i18nPlaceholder.closeName&&o.set(l.xref,s),s=void 0}break;case f.ElementEnd:let c=r.get(l.xref);if(c&&c.i18nPlaceholder!==void 0){if(i===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");Kf(c,i.i18nContext,i.i18nBlock,o.get(l.xref)),o.delete(l.xref)}break;case f.Projection:if(l.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");jf(l,i.i18nContext,i.i18nBlock,s),Kf(l,i.i18nContext,i.i18nBlock,s),s=void 0}break;case f.Template:let u=t.views.get(l.xref);if(l.i18nPlaceholder===void 0)ar(t,u,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");l.templateKind===Nt.Structural?ar(t,u,n,r,l):(rc(t,u,l.handle.slot,l.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),ar(t,u,n,r),sc(t,u,l.handle.slot,l.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0)}break;case f.RepeaterCreate:if(s!==void 0)throw Error("AssertionError: Unexpected structural directive associated with @for block");let p=l.handle.slot+1,d=t.views.get(l.xref);if(l.i18nPlaceholder===void 0)ar(t,d,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");rc(t,d,p,l.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),ar(t,d,n,r),sc(t,d,p,l.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}if(l.emptyView!==null){let m=l.handle.slot+2,g=t.views.get(l.emptyView);if(l.emptyI18nPlaceholder===void 0)ar(t,g,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");rc(t,g,m,l.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),ar(t,g,n,r),sc(t,g,m,l.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}}break}}function jf(t,e,n,r){let{startName:s,closeName:i}=t.i18nPlaceholder,o=me.ElementTag|me.OpenTag,l=t.handle.slot;r!==void 0&&(o|=me.TemplateTag,l={element:l,template:r.handle.slot}),i||(o|=me.CloseTag),si(e.params,s,l,n.subTemplateIndex,o)}function Kf(t,e,n,r){let{closeName:s}=t.i18nPlaceholder;if(s){let i=me.ElementTag|me.CloseTag,o=t.handle.slot;r!==void 0&&(i|=me.TemplateTag,o={element:o,template:r.handle.slot}),si(e.params,s,o,n.subTemplateIndex,i)}}function rc(t,e,n,r,s,i,o){let{startName:l,closeName:c}=r,u=me.TemplateTag|me.OpenTag;c||(u|=me.CloseTag),o!==void 0&&si(s.params,l,o.handle.slot,i.subTemplateIndex,u),si(s.params,l,n,qm(t,i,e),u)}function sc(t,e,n,r,s,i,o){let{closeName:l}=r,c=me.TemplateTag|me.CloseTag;l&&(si(s.params,l,n,qm(t,i,e),c),o!==void 0&&si(s.params,l,o.handle.slot,i.subTemplateIndex,c))}function qm(t,e,n){for(let r of n.create)if(r.kind===f.I18nStart)return r.subTemplateIndex;return e.subTemplateIndex}function si(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 nN(t){var o;let e=new Map,n=new Map,r=new Map;for(let l of t.units)for(let c of l.create)switch(c.kind){case f.I18nStart:e.set(c.xref,c.subTemplateIndex);break;case f.I18nContext:n.set(c.xref,c);break;case f.IcuPlaceholder:r.set(c.xref,c);break}let s=new Map,i=l=>l.usage===ss.I18nText?l.i18nOwner:l.context;for(let l of t.units)for(let c of l.update)if(c.kind===f.I18nExpression){let u=s.get(i(c))||0,p=(o=e.get(c.i18nOwner))!=null?o:null,d={value:u,subTemplateIndex:p,flags:me.ExpressionIndex};rN(c,d,n,r),s.set(i(c),u+1)}}function rN(t,e,n,r){if(t.i18nPlaceholder!==null){let s=n.get(t.context),i=t.resolutionTime===Js.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 sN(t){for(let e of t.units)Qa(e,e.create,null),Qa(e,e.update,null)}function Qa(t,e,n){let r=new Map,s=new Map;for(let i of e)switch(i.kind){case f.Variable:switch(i.variable.kind){case Ke.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 Ke.Alias:if(r.has(i.variable.identifier))continue;r.set(i.variable.identifier,i.xref);break;case Ke.SavedView:n={view:i.variable.view,variable:i.xref};break}break;case f.Listener:case f.TwoWayListener:Qa(t,i.handlerOps,n);break;case f.RepeaterCreate:i.trackByOps!==null&&Qa(t,i.trackByOps,n);break}for(let i of e)i.kind==f.Listener||i.kind===f.TwoWayListener||Ve(i,o=>{if(o instanceof et)return s.has(o.name)?new Gn(s.get(o.name)):r.has(o.name)?new Gn(r.get(o.name)):new gt(new Jn(t.job.root.xref),o.name);if(o instanceof _a&&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 Gn(n.variable),o}else return o},ue.None);for(let i of e)lt(i,o=>{if(o instanceof et)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${o.name}`)})}var iN=new Map([[ve.HTML,h.sanitizeHtml],[ve.RESOURCE_URL,h.sanitizeResourceUrl],[ve.SCRIPT,h.sanitizeScript],[ve.STYLE,h.sanitizeStyle],[ve.URL,h.sanitizeUrl]]),oN=new Map([[ve.HTML,h.trustConstantHtml],[ve.RESOURCE_URL,h.trustConstantResourceUrl]]);function aN(t){var e,n;for(let r of t.units){let s=np(r);if(t.kind!==R.Host){for(let i of r.create)if(i.kind===f.ExtractedAttribute){let o=(e=oN.get(zf(i.securityContext)))!=null?e:null;i.trustedValueFn=o!==null?$(o):null}}for(let i of r.update)switch(i.kind){case f.Property:case f.Attribute:case f.HostProperty:let o=null;if(Array.isArray(i.securityContext)&&i.securityContext.length===2&&i.securityContext.indexOf(ve.URL)>-1&&i.securityContext.indexOf(ve.RESOURCE_URL)>-1?o=h.sanitizeUrlOrResourceUrl:o=(n=iN.get(zf(i.securityContext)))!=null?n:null,i.sanitizer=o!==null?$(o):null,i.sanitizer===null){let l=!1;if(t.kind===R.Host||i.kind===f.HostProperty)l=!0;else{let c=s.get(i.target);if(c===void 0||!Dr(c))throw Error("Property should have an element-like owner");l=lN(c)}l&&mC(i.name)&&(i.sanitizer=$(h.validateIframeAttribute))}break}}}function lN(t){var e;return t.kind===f.ElementStart&&((e=t.tag)==null?void 0:e.toLowerCase())==="iframe"}function zf(t){if(Array.isArray(t)){if(t.length>1)throw Error("AssertionError: Ambiguous security context");return t[0]||ve.NONE}return t}function cN(t){for(let e of t.units)for(let n of e.create)n.kind===f.TwoWayListener&&Ve(n,r=>{if(!(r instanceof ka))return r;let{target:s,value:i}=r;if(s instanceof gt||s instanceof In)return qf(s,i).or(s.set(i));if(s instanceof Gn)return qf(s,i);throw new Error("Unsupported expression in two-way action binding.")},ue.InChildOperation)}function uN(t){for(let e of t.units){e.create.prepend([hr(e.job.allocateXrefId(),{kind:Ke.SavedView,name:null,view:e.xref},new eu,Mt.None)]);for(let n of e.create){if(n.kind!==f.Listener&&n.kind!==f.TwoWayListener)continue;let r=e!==t.root;if(!r)for(let s of n.handlerOps)lt(s,i=>{(i instanceof ba||i instanceof fo)&&(r=!0)});r&&pN(e,n)}}}function pN(t,e){e.handlerOps.prepend([hr(t.job.allocateXrefId(),{kind:Ke.Context,name:null,view:t.xref},new _a(t.xref),Mt.None)]);for(let n of e.handlerOps)n.kind===f.Statement&&n.statement instanceof Ye&&(n.statement.value=new tu(n.statement.value))}function hN(t){let e=new Map;for(let n of t.units){let r=0;for(let s of n.create)ci(s)&&(s.handle.slot=r,e.set(s.xref,s.handle.slot),r+=s.numSlotsUsed);n.decls=r}for(let n of t.units)for(let r of n.ops())if(r.kind===f.Template||r.kind===f.RepeaterCreate){let s=t.views.get(r.xref);r.decls=s.decls}}function fN(t){for(let e of t.units)for(let n of e.update)if(n.kind===f.Binding)switch(n.bindingKind){case U.ClassName:if(n.expression instanceof Le)throw new Error("Unexpected interpolation in ClassName binding");A.replace(n,aT(n.target,n.name,n.expression,n.sourceSpan));break;case U.StyleProperty:A.replace(n,oT(n.target,n.name,n.expression,n.unit,n.sourceSpan));break;case U.Property:case U.Template:n.name==="style"?A.replace(n,lT(n.target,n.expression,n.sourceSpan)):n.name==="class"&&A.replace(n,cT(n.target,n.expression,n.sourceSpan));break}}function dN(t){for(let e of t.units)e.create.prepend(Ja(e.create)),e.update.prepend(Ja(e.update))}function Ja(t){let e=0,n=[];for(let r of t){let s=new Map;lt(r,(u,p)=>{p&ue.InChildOperation||u instanceof Zn&&s.set(u.xref,u)});let i=0,o=new Set,l=new Set,c=new Map;lt(r,(u,p)=>{p&ue.InChildOperation||(u instanceof dn?(o.has(u.xref)||(o.add(u.xref),c.set(u.xref,`tmp_${e}_${i++}`)),Xf(c,u)):u instanceof Zn&&(s.get(u.xref)===u&&(l.add(u.xref),i--),Xf(c,u)))}),n.push(...Array.from(new Set(c.values())).map(u=>fn(new st(u)))),e++,r.kind===f.Listener||r.kind===f.TwoWayListener?r.handlerOps.prepend(Ja(r.handlerOps)):r.kind===f.RepeaterCreate&&r.trackByOps!==null&&r.trackByOps.prepend(Ja(r.trackByOps))}return n}function Xf(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 mN(t){for(let e of t.units)for(let n of e.create)if(n.kind===f.RepeaterCreate)if(n.track instanceof Ot&&n.track.name==="$index")n.trackByFn=$(h.repeaterTrackByIndex);else if(n.track instanceof Ot&&n.track.name==="$item")n.trackByFn=$(h.repeaterTrackByIdentity);else if(gN(t.root.xref,n.track))n.usesComponentInstance=!0,n.track.receiver.receiver.view===e.xref?n.trackByFn=n.track.receiver:(n.trackByFn=$(h.componentInstance).callFn([]).prop(n.track.receiver.name),n.track=n.trackByFn);else{n.track=P(n.track,s=>{if(s instanceof as||s instanceof Ra)throw new Error("Illegal State: Pipes are not allowed in this context");return s instanceof Jn?(n.usesComponentInstance=!0,new Zc(s.view)):s},ue.None);let r=new A;r.push(fn(new Ye(n.track,n.track.sourceSpan))),n.trackByOps=r}}function gN(t,e){if(!(e instanceof rt)||e.args.length===0||e.args.length>2||!(e.receiver instanceof gt&&e.receiver.receiver instanceof Jn)||e.receiver.receiver.view!==t)return!1;let[n,r]=e.args;return!(n instanceof Ot)||n.name!=="$index"?!1:e.args.length===1?!0:!(!(r instanceof Ot)||r.name!=="$item")}function yN(t){for(let e of t.units)for(let n of e.create)n.kind===f.RepeaterCreate&&(n.track=P(n.track,r=>{if(r instanceof et){if(n.varNames.$index.has(r.name))return Y("$index");if(r.name===n.varNames.$implicit)return Y("$item")}return r},ue.None))}function vN(t){for(let e of t.units){let n=0;for(let r of e.ops())Ql(r)&&(n+=SN(r));for(let r of e.ops())lt(r,s=>{kn(s)&&(t.compatibility===bt.TemplateDefinitionBuilder&&s instanceof os||(ff(s)&&(s.varOffset=n),Ql(s)&&(n+=Yf(s))))});if(t.compatibility===bt.TemplateDefinitionBuilder)for(let r of e.ops())lt(r,s=>{!kn(s)||!(s instanceof os)||(ff(s)&&(s.varOffset=n),Ql(s)&&(n+=Yf(s)))});e.vars=n}if(t instanceof yo)for(let e of t.units)for(let n of e.create){if(n.kind!==f.Template&&n.kind!==f.RepeaterCreate)continue;let r=t.views.get(n.xref);n.vars=r.vars}}function SN(t){let e;switch(t.kind){case f.Property:case f.HostProperty:case f.Attribute:return e=1,t.expression instanceof Le&&!EN(t.expression)&&(e+=t.expression.expressions.length),e;case f.TwoWayProperty:return 1;case f.StyleProp:case f.ClassProp:case f.StyleMap:case f.ClassMap:return e=2,t.expression instanceof Le&&(e+=t.expression.expressions.length),e;case f.InterpolateText:return t.interpolation.expressions.length;case f.I18nExpression:case f.Conditional:case f.DeferWhen:case f.StoreLet:return 1;case f.RepeaterCreate:return t.emptyView?1:0;default:throw new Error(`Unhandled op: ${f[t.kind]}`)}}function Yf(t){switch(t.kind){case B.PureFunctionExpr:return 1+t.args.length;case B.PipeBinding:return 1+t.args.length;case B.PipeBindingVariadic:return 1+t.numArgs;case B.StoreLet:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${t.constructor.name}`)}}function EN(t){return!(t.expressions.length!==1||t.strings.length!==2||t.strings[0]!==""||t.strings[1]!=="")}function wN(t){for(let e of t.units){Jo(e.create),Jo(e.update);for(let n of e.create)n.kind===f.Listener||n.kind===f.TwoWayListener?Jo(n.handlerOps):n.kind===f.RepeaterCreate&&n.trackByOps!==null&&Jo(n.trackByOps);Zo(e.create,t.compatibility),Zo(e.update,t.compatibility);for(let n of e.create)n.kind===f.Listener||n.kind===f.TwoWayListener?Zo(n.handlerOps,t.compatibility):n.kind===f.RepeaterCreate&&n.trackByOps!==null&&Zo(n.trackByOps,t.compatibility)}}var $e;(function(t){t[t.None=0]="None",t[t.ViewContextRead=1]="ViewContextRead",t[t.ViewContextWrite=2]="ViewContextWrite",t[t.SideEffectful=4]="SideEffectful"})($e||($e={}));function Jo(t){let e=new Map;for(let n of t)n.kind===f.Variable&&n.flags&Mt.AlwaysInline&&(lt(n,r=>{if(kn(r)&&sp(r)!==$e.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(n.xref,n)),Ve(n,r=>r instanceof Gn&&e.has(r.xref)?e.get(r.xref).initializer.clone():r,ue.None);for(let n of e.values())A.remove(n)}function Zo(t,e){let n=new Map,r=new Map,s=new Set,i=new Map;for(let u of t){if(u.kind===f.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,TN(u)),xN(u,r,s)}let o=!1;for(let u of t.reversed()){let p=i.get(u);if(u.kind===f.Variable&&r.get(u.xref)===0){if(o&&p.fences&$e.ViewContextWrite||p.fences&$e.SideEffectful){let d=fn(u.initializer.toStmt());i.set(d,p),A.replace(u,d)}else CN(u,r),A.remove(u);i.delete(u),n.delete(u.xref),r.delete(u.xref);continue}p.fences&$e.ViewContextRead&&(o=!0)}let l=[];for(let[u,p]of r){let m=!!(n.get(u).flags&Mt.AlwaysInline);p!==1||m||s.has(u)||l.push(u)}let c;for(;c=l.pop();){let u=n.get(c),p=i.get(u);if(!!(u.flags&Mt.AlwaysInline))throw new Error("AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.");for(let m=u.next;m.kind!==f.ListEnd;m=m.next){let g=i.get(m);if(g.variablesUsed.has(c)){if(e===bt.TemplateDefinitionBuilder&&!IN(u,m))break;if(AN(c,u.initializer,m,p.fences)){g.variablesUsed.delete(c);for(let E of p.variablesUsed)g.variablesUsed.add(E);g.fences|=p.fences,n.delete(c),r.delete(c),i.delete(u),A.remove(u)}break}if(!Hm(g.fences,p.fences))break}}}function sp(t){switch(t.kind){case B.NextContext:return $e.ViewContextRead|$e.ViewContextWrite;case B.RestoreView:return $e.ViewContextRead|$e.ViewContextWrite|$e.SideEffectful;case B.StoreLet:return $e.SideEffectful;case B.Reference:case B.ContextLetReference:return $e.ViewContextRead;default:return $e.None}}function TN(t){let e=$e.None,n=new Set;return lt(t,r=>{if(kn(r))switch(r.kind){case B.ReadVariable:n.add(r.xref);break;default:e|=sp(r)}}),{fences:e,variablesUsed:n}}function xN(t,e,n){lt(t,(r,s)=>{if(!kn(r)||r.kind!==B.ReadVariable)return;let i=e.get(r.xref);i!==void 0&&(e.set(r.xref,i+1),s&ue.InChildOperation&&n.add(r.xref))})}function CN(t,e){lt(t,n=>{if(!kn(n)||n.kind!==B.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 Hm(t,e){if(t&$e.ViewContextWrite){if(e&$e.ViewContextRead)return!1}else if(t&$e.ViewContextRead&&e&$e.ViewContextWrite)return!1;return!0}function AN(t,e,n,r){let s=!1,i=!0;return Ve(n,(o,l)=>{if(!kn(o)||s||!i)return o;if(l&ue.InChildOperation&&r&$e.ViewContextRead)return o;switch(o.kind){case B.ReadVariable:if(o.xref===t)return s=!0,e;break;default:let c=sp(o);i=i&&Hm(c,r);break}return o},ue.None),s}function IN(t,e){switch(t.variable.kind){case Ke.Identifier:return t.initializer instanceof Ot&&t.initializer.name==="ctx";case Ke.Context:return e.kind===f.Variable;default:return!0}}function NN(t){for(let e of t.units){let n=null,r=null;for(let s of e.create)switch(s.kind){case f.I18nStart:n=s;break;case f.I18nEnd:n=null;break;case f.IcuStart:n===null&&(r=t.allocateXrefId(),A.insertBefore(fl(r,s.message,void 0,null),s));break;case f.IcuEnd:r!==null&&(A.insertAfter(dl(r,null),s),r=null);break}}}function bN(t){let e=new Set;for(let n of t.units)for(let r of n.ops())lt(r,s=>{s instanceof fo&&e.add(s.target)});for(let n of t.units)for(let r of n.update)Ve(r,s=>s instanceof ho&&!e.has(s.target)?s.value:s,ue.None)}function DN(t){for(let e of t.units)for(let n of e.update){if(n.kind!==f.Variable||n.variable.kind!==Ke.Identifier||!(n.initializer instanceof ho))continue;let r=n.variable.identifier,s=n;for(;s&&s.kind!==f.ListEnd;)Ve(s,i=>i instanceof et&&i.name===r?v(void 0):i,ue.None),s=s.prev}}function _N(t){for(let e of t.units)for(let n of e.update){if(n.kind!==f.StoreLet)continue;let r={kind:Ke.Identifier,name:null,identifier:n.declaredName,local:!0};A.replace(n,hr(t.allocateXrefId(),r,new ho(n.target,n.value,n.sourceSpan),Mt.None))}}function kN(t){if(!(!t.enableDebugLocations||t.relativeTemplatePath===null))for(let e of t.units){let n=[];for(let r of e.create)if(r.kind===f.ElementStart||r.kind===f.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(kT(t.relativeTemplatePath,n))}}var RN=[{kind:R.Tmpl,fn:wA},{kind:R.Host,fn:Rx},{kind:R.Tmpl,fn:rA},{kind:R.Tmpl,fn:bA},{kind:R.Tmpl,fn:NN},{kind:R.Both,fn:tx},{kind:R.Both,fn:fN},{kind:R.Both,fn:VT},{kind:R.Both,fn:BT},{kind:R.Tmpl,fn:ex},{kind:R.Both,fn:iA},{kind:R.Tmpl,fn:YI},{kind:R.Both,fn:WT},{kind:R.Both,fn:EA},{kind:R.Tmpl,fn:jT},{kind:R.Tmpl,fn:CA},{kind:R.Tmpl,fn:nx},{kind:R.Tmpl,fn:eA},{kind:R.Tmpl,fn:JT},{kind:R.Tmpl,fn:JI},{kind:R.Tmpl,fn:FT},{kind:R.Tmpl,fn:LT},{kind:R.Tmpl,fn:NA},{kind:R.Both,fn:kA},{kind:R.Tmpl,fn:Nx},{kind:R.Tmpl,fn:_N},{kind:R.Tmpl,fn:bx},{kind:R.Tmpl,fn:uN},{kind:R.Both,fn:PT},{kind:R.Both,fn:eN},{kind:R.Tmpl,fn:yN},{kind:R.Tmpl,fn:DN},{kind:R.Both,fn:sN},{kind:R.Tmpl,fn:rx},{kind:R.Tmpl,fn:cN},{kind:R.Tmpl,fn:mN},{kind:R.Both,fn:ZI},{kind:R.Both,fn:aN},{kind:R.Tmpl,fn:tA},{kind:R.Both,fn:dA},{kind:R.Both,fn:ax},{kind:R.Both,fn:dN},{kind:R.Both,fn:wN},{kind:R.Both,fn:bN},{kind:R.Tmpl,fn:hN},{kind:R.Tmpl,fn:tN},{kind:R.Tmpl,fn:nN},{kind:R.Tmpl,fn:Tx},{kind:R.Tmpl,fn:XC},{kind:R.Tmpl,fn:_x},{kind:R.Both,fn:YT},{kind:R.Tmpl,fn:QI},{kind:R.Both,fn:vN},{kind:R.Tmpl,fn:Ix},{kind:R.Both,fn:oA},{kind:R.Tmpl,fn:ZT},{kind:R.Tmpl,fn:cA},{kind:R.Tmpl,fn:pA},{kind:R.Tmpl,fn:ox},{kind:R.Tmpl,fn:kN},{kind:R.Tmpl,fn:fA},{kind:R.Both,fn:_A},{kind:R.Both,fn:KI},{kind:R.Both,fn:GT}];function Gm(t,e){for(let n of RN)(n.kind===e||n.kind===R.Both)&&n.fn(t)}function PN(t,e){let n=jm(t.root);return Wm(t.root,e),n}function Wm(t,e){for(let n of t.job.units){if(n.parent!==t.xref)continue;Wm(n,e);let r=jm(n);e.statements.push(r.toDeclStmt(r.name))}}function jm(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!==f.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${f[i.kind]}`);e.push(i.statement)}let n=[];for(let i of t.update){if(i.kind!==f.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${f[i.kind]}`);n.push(i.statement)}let r=Za(1,e),s=Za(2,n);return jn([new ze("rf"),new ze("ctx")],[...r,...s],void 0,void 0,t.fnName)}function Za(t,e){return e.length===0?[]:[Co(new le(b.BitwiseAnd,Y("rf"),v(t)),e)]}function MN(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!==f.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${f[i.kind]}`);e.push(i.statement)}let n=[];for(let i of t.root.update){if(i.kind!==f.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${f[i.kind]}`);n.push(i.statement)}if(e.length===0&&n.length===0)return null;let r=Za(1,e),s=Za(2,n);return jn([new ze("rf"),new ze("ctx")],[...r,...s],void 0,void 0,t.root.fnName)}var Km=bt.TemplateDefinitionBuilder,Wr=new gn,jr="ng-template";function Iu(t){return t instanceof dt}function LN(t){return Iu(t)&&t.nodes.length===1&&t.nodes[0]instanceof xa}function ON(t,e,n,r,s,i,o,l,c){let u=new yo(t,n,Km,r,s,i,o,l,c);return er(u.root,e),u}function FN(t,e,n){var s,i,o;let r=new Ba(t.componentName,n,Km);for(let l of(s=t.properties)!=null?s:[]){let c=U.Property;l.name.startsWith("attr.")&&(l.name=l.name.substring(5),c=U.Attribute),l.isAnimation&&(c=U.Animation);let u=e.calcPossibleSecurityContexts(t.componentSelector,l.name,c===U.Attribute).filter(p=>p!==ve.NONE);BN(r,l,c,u)}for(let[l,c]of(i=Object.entries(t.attributes))!=null?i:[]){let u=e.calcPossibleSecurityContexts(t.componentSelector,l,!0).filter(p=>p!==ve.NONE);$N(r,l,c,u)}for(let l of(o=t.events)!=null?o:[])UN(r,l);return r}function BN(t,e,n,r){let s,i=e.expression.ast;i instanceof zn?s=new Le(i.strings,i.expressions.map(o=>K(o,t,e.sourceSpan)),[]):s=K(i,t,e.sourceSpan),t.root.update.push(is(t.root.xref,n,e.name,s,null,r,!1,!1,null,null,e.sourceSpan))}function $N(t,e,n,r){let s=is(t.root.xref,U.Attribute,e,n,null,r,!0,!1,null,null,n.sourceSpan);t.root.update.push(s)}function UN(t,e){let[n,r]=e.type!==Oe.Animation?[null,e.targetOrPhase]:[e.targetOrPhase,null],s=tp(t.root.xref,new Dt,e.name,null,ip(t.root,e.handler,e.handlerSpan),n,r,!0,e.sourceSpan);t.root.create.push(s)}function er(t,e){for(let n of e)if(n instanceof de)VN(t,n);else if(n instanceof he)qN(t,n);else if(n instanceof Cr)HN(t,n);else if(n instanceof rn)zm(t,n,null);else if(n instanceof Xn)Xm(t,n,null);else if(n instanceof es)GN(t,n);else if(n instanceof Zr)WN(t,n);else if(n instanceof Qn)jN(t,n);else if(n instanceof zs)zN(t,n);else if(n instanceof Dn)XN(t,n);else if(n instanceof ot)QN(t,n);else throw new Error(`Unsupported template node: ${n.constructor.name}`)}function VN(t,e){var c,u;if(e.i18n!==void 0&&!(e.i18n instanceof dt||e.i18n instanceof Ar))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=t.job.allocateXrefId(),[r,s]=hn(e.name),i=yT(s,n,Im(r),e.i18n instanceof Ar?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);t.create.push(i),ZN(t,i,e),Jm(i,e);let o=null;e.i18n instanceof dt&&(o=t.job.allocateXrefId(),t.create.push(fl(o,e.i18n,void 0,e.startSourceSpan))),er(t,e.children);let l=ST(n,(c=e.endSourceSpan)!=null?c:e.startSourceSpan);t.create.push(l),o!==null&&A.insertBefore(dl(o,(u=e.endSourceSpan)!=null?u:e.startSourceSpan),l)}function qN(t,e){var p;if(e.i18n!==void 0&&!(e.i18n instanceof dt||e.i18n instanceof Ar))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]=hn(e.tagName));let i=e.i18n instanceof Ar?e.i18n:void 0,o=Im(s),l=r===null?"":XT(r,o),c=JN(e)?Nt.NgTemplate:Nt.Structural,u=hl(n.xref,c,r,l,o,i,e.startSourceSpan,e.sourceSpan);t.create.push(u),eb(t,u,e,c),Jm(u,e),er(n,e.children);for(let{name:d,value:m}of e.variables)n.contextVariables.set(d,m!==""?m:"$implicit");if(c===Nt.NgTemplate&&e.i18n instanceof dt){let d=t.job.allocateXrefId();A.insertAfter(fl(d,e.i18n,void 0,e.startSourceSpan),n.create.head),A.insertBefore(dl(d,(p=e.endSourceSpan)!=null?p:e.startSourceSpan),n.create.tail)}}function HN(t,e){var i;if(e.i18n!==void 0&&!(e.i18n instanceof Ar))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=null;e.children.some(o=>!(o instanceof js)&&(!(o instanceof rn)||o.value.trim().length>0))&&(n=t.job.allocateView(t.xref),er(n,e.children));let r=t.job.allocateXrefId(),s=CT(r,e.selector,e.i18n,(i=n==null?void 0:n.xref)!=null?i:null,e.sourceSpan);for(let o of e.attributes){let l=Wr.securityContext(e.name,o.name,!0);t.update.push(is(s.xref,U.Attribute,o.name,v(o.value),null,l,!0,!1,null,Un(o.i18n),o.sourceSpan))}t.create.push(s)}function zm(t,e,n){t.create.push(wm(t.job.allocateXrefId(),e.value,n,e.sourceSpan))}function Xm(t,e,n){var l;let r=e.value;if(r instanceof Ce&&(r=r.ast),!(r instanceof zn))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${r.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof qn))throw Error(`Unhandled i18n metadata type for text interpolation: ${(l=e.i18n)==null?void 0:l.constructor.name}`);let s=e.i18n instanceof qn?e.i18n.children.filter(c=>c instanceof so).map(c=>c.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(wm(i,"",n,e.sourceSpan));let o=t.job.compatibility?null:e.sourceSpan;t.update.push(rT(i,new Le(r.strings,r.expressions.map(c=>K(c,t.job,o)),s),e.sourceSpan))}function GN(t,e){var s;let n=null,r=[];for(let i=0;i<e.branches.length;i++){let o=e.branches[i],l=t.job.allocateView(t.xref),c=el(t,l.xref,o);o.expressionAlias!==null&&l.contextVariables.set(o.expressionAlias.name,Am);let u;if(o.i18n!==void 0){if(!(o.i18n instanceof Ir))throw Error(`Unhandled i18n metadata type for if block: ${(s=o.i18n)==null?void 0:s.constructor.name}`);u=o.i18n}let p=hl(l.xref,Nt.Block,c,"Conditional",nt.HTML,u,o.startSourceSpan,o.sourceSpan);t.create.push(p),n===null&&(n=l.xref);let d=o.expression?K(o.expression,t.job,null):null,m=new Ma(d,p.xref,p.handle,o.expressionAlias);r.push(m),er(l,o.children)}t.update.push(vm(n,null,r,e.sourceSpan))}function WN(t,e){var s;if(e.cases.length===0)return;let n=null,r=[];for(let i of e.cases){let o=t.job.allocateView(t.xref),l=el(t,o.xref,i),c;if(i.i18n!==void 0){if(!(i.i18n instanceof Ir))throw Error(`Unhandled i18n metadata type for switch block: ${(s=i.i18n)==null?void 0:s.constructor.name}`);c=i.i18n}let u=hl(o.xref,Nt.Block,l,"Case",nt.HTML,c,i.startSourceSpan,i.sourceSpan);t.create.push(u),n===null&&(n=o.xref);let p=i.expression?K(i.expression,t.job,e.startSourceSpan):null,d=new Ma(p,u.xref,u.handle);r.push(d),er(o,i.children)}t.update.push(vm(n,K(e.expression,t.job,null),r,e.sourceSpan))}function ea(t,e,n,r,s){if(n!==void 0&&!(n instanceof Ir))throw Error("Unhandled i18n metadata type for defer block");if(r===void 0)return null;let i=t.job.allocateView(t.xref);er(i,r);let o=hl(i.xref,Nt.Block,null,`Defer${e}`,nt.HTML,n,s,s);return t.create.push(o),o}function jN(t,e){var m,g,E,w,x,k,_,H,V,te,ae,oe,Be,Vt,gs,vi,Si,Ih,Nh,bh;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=(m=t.job.deferMeta.blocks.get(e))!=null?m:null}let r=ea(t,"",e.i18n,e.children,e.sourceSpan),s=ea(t,"Loading",(g=e.loading)==null?void 0:g.i18n,(E=e.loading)==null?void 0:E.children,(w=e.loading)==null?void 0:w.sourceSpan),i=ea(t,"Placeholder",(x=e.placeholder)==null?void 0:x.i18n,(k=e.placeholder)==null?void 0:k.children,(_=e.placeholder)==null?void 0:_.sourceSpan),o=ea(t,"Error",(H=e.error)==null?void 0:H.i18n,(V=e.error)==null?void 0:V.children,(te=e.error)==null?void 0:te.sourceSpan),l=t.job.allocateXrefId(),c=AT(l,r.xref,r.handle,n,t.job.allDeferrableDepsFn,e.sourceSpan);c.placeholderView=(ae=i==null?void 0:i.xref)!=null?ae:null,c.placeholderSlot=(oe=i==null?void 0:i.handle)!=null?oe:null,c.loadingSlot=(Be=s==null?void 0:s.handle)!=null?Be:null,c.errorSlot=(Vt=o==null?void 0:o.handle)!=null?Vt:null,c.placeholderMinimumTime=(vi=(gs=e.placeholder)==null?void 0:gs.minimumTime)!=null?vi:null,c.loadingMinimumTime=(Ih=(Si=e.loading)==null?void 0:Si.minimumTime)!=null?Ih:null,c.loadingAfterTime=(bh=(Nh=e.loading)==null?void 0:Nh.afterTime)!=null?bh:null,c.flags=KN(e),t.create.push(c);let u=[],p=[];ic("hydrate",e.hydrateTriggers,u,p,t,l),ic("none",e.triggers,u,p,t,l),ic("prefetch",e.prefetchTriggers,u,p,t,l),u.some(Vl=>Vl.modifier==="none")||p.some(Vl=>Vl.modifier==="none")||u.push(or(l,{kind:fe.Idle},"none",null)),t.create.push(u),t.update.push(p)}function KN(t){return Object.keys(t.hydrateTriggers).length>0?1:null}function ic(t,e,n,r,s,i){if(e.idle!==void 0){let o=or(i,{kind:fe.Idle},t,e.idle.sourceSpan);n.push(o)}if(e.immediate!==void 0){let o=or(i,{kind:fe.Immediate},t,e.immediate.sourceSpan);n.push(o)}if(e.timer!==void 0){let o=or(i,{kind:fe.Timer,delay:e.timer.delay},t,e.timer.sourceSpan);n.push(o)}if(e.hover!==void 0){let o=or(i,{kind:fe.Hover,targetName:e.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.hover.sourceSpan);n.push(o)}if(e.interaction!==void 0){let o=or(i,{kind:fe.Interaction,targetName:e.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.interaction.sourceSpan);n.push(o)}if(e.viewport!==void 0){let o=or(i,{kind:fe.Viewport,targetName:e.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.viewport.sourceSpan);n.push(o)}if(e.never!==void 0){let o=or(i,{kind:fe.Never},t,e.never.sourceSpan);n.push(o)}if(e.when!==void 0){if(e.when.value instanceof zn)throw new Error("Unexpected interpolation in defer block when trigger");let o=fT(i,K(e.when.value,s.job,e.when.sourceSpan),t,e.when.sourceSpan);r.push(o)}}function zN(t,e){var n;if(e.i18n instanceof dt&&LN(e.i18n)){let r=t.job.allocateXrefId();t.create.push(bT(r,e.i18n,Xd(e.i18n).name,null));for(let[s,i]of Object.entries(T(T({},e.vars),e.placeholders)))i instanceof Xn?Xm(t,i,s):zm(t,i,s);t.create.push(DT(r))}else throw Error(`Unhandled i18n metadata type for ICU: ${(n=e.i18n)==null?void 0:n.constructor.name}`)}function XN(t,e){var k,_,H;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 V of e.contextVariables)V.value==="$index"&&i.add(V.name),V.name==="$index"?n.contextVariables.set("$index",V.value).set(r,V.value):V.name==="$count"?n.contextVariables.set("$count",V.value).set(s,V.value):n.aliases.add({kind:Ke.Alias,name:null,identifier:V.name,expression:YN(V,r,s)});let o=Ge(e.trackBy.span,e.sourceSpan),l=K(e.trackBy,t.job,o);er(n,e.children);let c=null,u=null;e.empty!==null&&(c=t.job.allocateView(t.xref),er(c,e.empty.children),u=el(t,c.xref,e.empty));let p={$index:i,$implicit:e.item.name};if(e.i18n!==void 0&&!(e.i18n instanceof Ir))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(((k=e.empty)==null?void 0:k.i18n)!==void 0&&!(e.empty.i18n instanceof Ir))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let d=e.i18n,m=(_=e.empty)==null?void 0:_.i18n,g=el(t,n.xref,e),E=vT(n.xref,(H=c==null?void 0:c.xref)!=null?H:null,g,l,p,u,d,m,e.startSourceSpan,e.sourceSpan);t.create.push(E);let w=K(e.expression,t.job,Ge(e.expression.span,e.sourceSpan)),x=hT(E.xref,E.handle,w,e.sourceSpan);t.update.push(x)}function YN(t,e,n){switch(t.value){case"$index":return new et(e);case"$count":return new et(n);case"$first":return new et(e).identical(v(0));case"$last":return new et(e).identical(new et(n).minus(v(1)));case"$even":return new et(e).modulo(v(2)).identical(v(0));case"$odd":return new et(e).modulo(v(2)).notIdentical(v(0));default:throw new Error(`AssertionError: unknown @for loop variable ${t.value}`)}}function QN(t,e){let n=t.job.allocateXrefId();t.create.push(IT(n,e.name,e.sourceSpan)),t.update.push(mT(n,e.name,K(e.value,t.job,e.valueSpan),e.sourceSpan))}function K(t,e,n){if(t instanceof Ce)return K(t.ast,e,n);if(t instanceof Me)return t.receiver instanceof Re&&!(t.receiver instanceof un)?new et(t.name):new gt(K(t.receiver,e,n),t.name,null,Ge(t.span,n));if(t instanceof Kn)return t.receiver instanceof Re?new zr(new Jn(e.root.xref),t.name,K(t.value,e,n),null,Ge(t.span,n)):new zr(K(t.receiver,e,n),t.name,K(t.value,e,n),void 0,Ge(t.span,n));if(t instanceof pa)return new Fs(K(t.receiver,e,n),K(t.key,e,n),K(t.value,e,n),void 0,Ge(t.span,n));if(t instanceof pn){if(t.receiver instanceof Re)throw new Error("Unexpected ImplicitReceiver");return new rt(K(t.receiver,e,n),t.args.map(r=>K(r,e,n)),void 0,Ge(t.span,n))}else{if(t instanceof Gt)return v(t.value,void 0,Ge(t.span,n));if(t instanceof Xi)switch(t.operator){case"+":return new Sr(An.Plus,K(t.expr,e,n),void 0,Ge(t.span,n));case"-":return new Sr(An.Minus,K(t.expr,e,n),void 0,Ge(t.span,n));default:throw new Error(`AssertionError: unknown unary operator ${t.operator}`)}else if(t instanceof Rt){let r=KT.get(t.operation);if(r===void 0)throw new Error(`AssertionError: unknown binary operator ${t.operation}`);return new le(r,K(t.left,e,n),K(t.right,e,n),void 0,Ge(t.span,n))}else{if(t instanceof un)return new Jn(e.root.xref);if(t instanceof zi)return new In(K(t.receiver,e,n),K(t.key,e,n),void 0,Ge(t.span,n));if(t instanceof wr)throw new Error("AssertionError: Chain in unknown context");if(t instanceof fa){let r=t.keys.map((s,i)=>{let o=t.values[i];return new Xr(s.key,K(o,e,n),s.quoted)});return new Yt(r,void 0,Ge(t.span,n))}else{if(t instanceof ha)return new yt(t.expressions.map(r=>K(r,e,n)));if(t instanceof Ws)return new cn(K(t.condition,e,n),K(t.trueExp,e,n),K(t.falseExp,e,n),void 0,Ge(t.span,n));if(t instanceof Yi)return K(t.expression,e,n);if(t instanceof Jr)return new as(e.allocateXrefId(),new Dt,t.name,[K(t.exp,e,n),...t.args.map(r=>K(r,e,n))]);if(t instanceof Tr)return new ti(K(t.receiver,e,n),K(t.key,e,n),Ge(t.span,n));if(t instanceof vt)return new ei(K(t.receiver,e,n),t.name);if(t instanceof Nn)return new br(K(t.receiver,e,n),t.args.map(r=>K(r,e,n)));if(t instanceof je)return new mo(Ge(t.span,n));if(t instanceof da)return Ud(K(t.expression,e,n),Ge(t.span,n));if(t instanceof ma)return oi(K(t.expression,e,n));if(t instanceof Qi)return new $s(t.elements.map(r=>new Vi(r.text,Ge(r.span,n))),t.expressions.map(r=>K(r,e,n)),Ge(t.span,n));throw new Error(`Unhandled expression type "${t.constructor.name}" in file "${n==null?void 0:n.start.file.url}"`)}}}}function Nu(t,e,n,r){var i,o;let s;return e instanceof zn?s=new Le(e.strings,e.expressions.map(l=>K(l,t,r!=null?r:null)),Object.keys((o=(i=Un(n))==null?void 0:i.placeholders)!=null?o:{})):e instanceof Se?s=K(e,t,r!=null?r:null):s=v(e),s}var Ym=new Map([[J.Property,U.Property],[J.TwoWay,U.TwoWayProperty],[J.Attribute,U.Attribute],[J.Class,U.ClassName],[J.Style,U.StyleProperty],[J.Animation,U.Animation]]);function JN(t){var e;return hn((e=t.tagName)!=null?e:"")[1]===jr}function Un(t){if(t==null)return null;if(!(t instanceof dt))throw Error(`Expected i18n meta to be a Message, but got: ${t.constructor.name}`);return t}function ZN(t,e,n){var i;let r=new Array,s=new Set;for(let o of n.attributes){let l=Wr.securityContext(n.name,o.name,!0);r.push(is(e.xref,U.Attribute,o.name,Nu(t.job,o.value,o.i18n),null,l,!0,!1,null,Un(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(is(e.xref,Ym.get(o.type),o.name,Nu(t.job,wo(o.value),o.i18n),o.unit,o.securityContext,!1,!1,null,(i=Un(o.i18n))!=null?i:null,o.sourceSpan));t.create.push(r.filter(o=>(o==null?void 0:o.kind)===f.ExtractedAttribute)),t.update.push(r.filter(o=>(o==null?void 0:o.kind)===f.Binding));for(let o of n.outputs){if(o.type===Oe.Animation&&o.phase===null)throw Error("Animation listener should have a phase");o.type===Oe.TwoWay?t.create.push(Tm(e.xref,e.handle,o.name,e.tag,Qm(t,o.handler,o.handlerSpan),o.sourceSpan)):t.create.push(tp(e.xref,e.handle,o.name,e.tag,ip(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(Cm(t.job.allocateXrefId(),new Dt,e.xref))}function eb(t,e,n,r){let s=new Array;for(let i of n.templateAttrs)if(i instanceof St){let o=Wr.securityContext(jr,i.name,!0);s.push(ta(t,e.xref,J.Attribute,i.name,i.value,null,o,!0,r,Un(i.i18n),i.sourceSpan))}else s.push(ta(t,e.xref,i.type,i.name,wo(i.value),i.unit,i.securityContext,!0,r,Un(i.i18n),i.sourceSpan));for(let i of n.attributes){let o=Wr.securityContext(jr,i.name,!0);s.push(ta(t,e.xref,J.Attribute,i.name,i.value,null,o,!1,r,Un(i.i18n),i.sourceSpan))}for(let i of n.inputs)s.push(ta(t,e.xref,i.type,i.name,wo(i.value),i.unit,i.securityContext,!1,r,Un(i.i18n),i.sourceSpan));t.create.push(s.filter(i=>(i==null?void 0:i.kind)===f.ExtractedAttribute)),t.update.push(s.filter(i=>(i==null?void 0:i.kind)===f.Binding));for(let i of n.outputs){if(i.type===Oe.Animation&&i.phase===null)throw Error("Animation listener should have a phase");if(r===Nt.NgTemplate&&(i.type===Oe.TwoWay?t.create.push(Tm(e.xref,e.handle,i.name,e.tag,Qm(t,i.handler,i.handlerSpan),i.sourceSpan)):t.create.push(tp(e.xref,e.handle,i.name,e.tag,ip(t,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))),r===Nt.Structural&&i.type!==Oe.Animation){let o=Wr.securityContext(jr,i.name,!1);t.create.push(Kt(e.xref,U.Property,null,i.name,null,null,null,o))}}s.some(i=>i==null?void 0:i.i18nMessage)!==null&&t.create.push(Cm(t.job.allocateXrefId(),new Dt,e.xref))}function ta(t,e,n,r,s,i,o,l,c,u,p){let d=typeof s=="string";if(c===Nt.Structural){if(!l)switch(n){case J.Property:case J.Class:case J.Style:return Kt(e,U.Property,null,r,null,null,u,o);case J.TwoWay:return Kt(e,U.TwoWayProperty,null,r,null,null,u,o)}if(!d&&(n===J.Attribute||n===J.Animation))return null}let m=Ym.get(n);return c===Nt.NgTemplate&&(n===J.Class||n===J.Style||n===J.Attribute&&!d)&&(m=U.Property),is(e,m,r,Nu(t.job,s,u),i,o,d,l,c,u,p)}function ip(t,e,n){e=wo(e);let r=new Array,s=e instanceof wr?e.expressions:[e];if(s.length===0)throw new Error("Expected listener to have non-empty expression list.");let i=s.map(l=>K(l,t.job,n)),o=i.pop();return r.push(...i.map(l=>fn(new Ft(l,l.sourceSpan)))),r.push(fn(new Ye(o,o.sourceSpan))),r}function Qm(t,e,n){e=wo(e);let r=new Array;if(e instanceof wr)if(e.expressions.length===1)e=e.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let s=K(e,t.job,n),i=new et("$event"),o=new ka(s,i);return r.push(fn(new Ft(o))),r.push(fn(new Ye(i))),r}function wo(t){return t instanceof Ce?t.ast:t}function Jm(t,e){tb(t.localRefs);for(let{name:n,value:r}of e.references)t.localRefs.push({name:n,target:r})}function tb(t){if(!Array.isArray(t))throw new Error("AssertionError: expected an array")}function Ge(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 W(n,r,s)}function el(t,e,n){let r=null;for(let s of n.children)if(!(s instanceof js||s instanceof ot)){if(r!==null)return null;if(s instanceof de||s instanceof he&&s.tagName!==null)r=s;else return null}if(r!==null){for(let i of r.attributes){let o=Wr.securityContext(jr,i.name,!0);t.update.push(is(e,U.Attribute,i.name,v(i.value),null,o,!0,!1,null,Un(i.i18n),i.sourceSpan))}for(let i of r.inputs)if(i.type!==J.Animation&&i.type!==J.Attribute){let o=Wr.securityContext(jr,i.name,!0);t.create.push(Kt(e,U.Property,null,i.name,null,null,null,o))}let s=r instanceof de?r.name:r.tagName;return s===jr?null:s}return null}var nb=!1;function rb(){return nb}function tl(t,e){return Co(Y(ju).bitwiseAnd(v(t),null,!1),e)}function sb(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function ib(t,e){if(Array.isArray(t.predicate)){let n=[];return t.predicate.forEach(r=>{let s=r.split(",").map(i=>v(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 $(h.resolveForwardRef).callFn([t.predicate.expression])}}function Zm(t,e,n,r){let s=[];r!==void 0&&s.push(...r),t.isSignal&&s.push(new gt(Y(io),t.propertyName)),s.push(ib(t,e),v(sb(t))),t.read&&s.push(t.read);let i=t.isSignal?n.signalBased:n.nonSignal;return $(i).callFn(s)}var op=Symbol("queryAdvancePlaceholder");function eg(t){let e=[],n=0,r=()=>{n>0&&(e.unshift($(h.queryAdvance).callFn(n===1?[]:[v(n)]).toStmt()),n=0)};for(let s=t.length-1;s>=0;s--){let i=t[s];i===op?n++:(r(),e.unshift(i))}return r(),e}function ob(t,e,n){let r=[],s=[],i=Yd(l=>s.push(l),Wu);t.forEach(l=>{let c=Zm(l,e,{signalBased:h.viewQuerySignal,nonSignal:h.viewQuery});if(r.push(c.toStmt()),l.isSignal){s.push(op);return}let u=i(),p=$(h.loadQuery).callFn([]),d=$(h.queryRefresh).callFn([u.set(p)]),m=Y(io).prop(l.propertyName).set(l.first?u.prop("first"):u);s.push(d.and(m).toStmt())});let o=n?`${n}_Query`:null;return jn([new ze(ju,ol),new ze(io,null)],[tl(1,r),tl(2,eg(s))],Lt,null,o)}function ab(t,e,n){let r=[],s=[],i=Yd(l=>s.push(l),Wu);for(let l of t){if(r.push(Zm(l,e,{nonSignal:h.contentQuery,signalBased:h.contentQuerySignal},[Y("dirIndex")]).toStmt()),l.isSignal){s.push(op);continue}let c=i(),u=$(h.loadQuery).callFn([]),p=$(h.queryRefresh).callFn([c.set(u)]),d=Y(io).prop(l.propertyName).set(l.first?c.prop("first"):c);s.push(p.and(d).toStmt())}let o=n?`${n}_ContentQueries`:null;return jn([new ze(ju,ol),new ze(io,null),new ze("dirIndex",null)],[tl(1,r),tl(2,eg(s))],Lt,null,o)}var nl=class extends hu{constructor(){super(Om)}parse(e,n,r){return super.parse(e,n,r)}},Qf=".",lb="attr",cb="class",ub="style",pb="*",oc="animate-",bu=class{constructor(e,n,r,s){a(this,"_exprParser");a(this,"_interpolationConfig");a(this,"_schemaRegistry");a(this,"errors");this._exprParser=e,this._interpolationConfig=n,this._schemaRegistry=r,this.errors=s}get interpolationConfig(){return this._interpolationConfig}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.start.toString(),i=n.fullStart.offset;try{let o=this._exprParser.parseInterpolation(e,s,i,r,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,n),o}catch(o){return this._reportError(`${o}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",s,i)}}parseInterpolationExpression(e,n){let r=n.start.toString(),s=n.start.offset;try{let i=this._exprParser.parseInterpolationExpression(e,r,s);return i&&this._reportExpressionParserErrors(i.errors,n),i}catch(i){return this._reportError(`${i}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",r,s)}}parseInlineTemplateBinding(e,n,r,s,i,o,l,c){let u=r.start.offset+pb.length,p=this._parseTemplateBindings(e,n,r,u,s);for(let d of p){let m=sr(r,d.sourceSpan),g=d.key.source,E=sr(r,d.key.span);if(d instanceof Ji){let w=d.value?d.value.source:"$implicit",x=d.value?sr(r,d.value.span):void 0;l.push(new _c(g,w,m,E,x))}else if(d.value){let w=c?m:r,x=sr(r,d.value.ast.sourceSpan);this._parsePropertyAst(g,d.value,!1,w,E,x,i,o)}else i.push([g,""]),this.parseLiteralAttr(g,null,E,s,void 0,i,o,E)}}_parseTemplateBindings(e,n,r,s,i){let o=r.start.toString();try{let l=this._exprParser.parseTemplateBindings(e,n,o,s,i);return this._reportExpressionParserErrors(l.errors,r),l.warnings.forEach(c=>{this._reportError(c,r,$n.WARNING)}),l.templateBindings}catch(l){return this._reportError(`${l}`,r),[]}}parseLiteralAttr(e,n,r,s,i,o,l,c){ac(e)?(e=e.substring(1),c!==void 0&&(c=sr(c,new tt(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,$n.ERROR),this._parseAnimation(e,n,r,s,c,i,o,l)):l.push(new _i(e,this._exprParser.wrapLiteralPrimitive(n,"",s),On.LITERAL_ATTR,r,c,i))}parsePropertyBinding(e,n,r,s,i,o,l,c,u,p){e.length===0&&this._reportError("Property name is missing in binding",i);let d=!1;e.startsWith(oc)?(d=!0,e=e.substring(oc.length),p!==void 0&&(p=sr(p,new tt(p.start.offset+oc.length,p.end.offset)))):ac(e)&&(d=!0,e=e.substring(1),p!==void 0&&(p=sr(p,new tt(p.start.offset+1,p.end.offset)))),d?this._parseAnimation(e,n,i,o,p,l,c,u):this._parsePropertyAst(e,this.parseBinding(n,r,l||i,o),s,i,p,l,c,u)}parsePropertyInterpolation(e,n,r,s,i,o,l,c){let u=this.parseInterpolation(n,s||r,c);return u?(this._parsePropertyAst(e,u,!1,r,l,s,i,o),!0):!1}_parsePropertyAst(e,n,r,s,i,o,l,c){l.push([e,n.source]),c.push(new _i(e,n,r?On.TWO_WAY:On.DEFAULT,s,i,o))}_parseAnimation(e,n,r,s,i,o,l,c){e.length===0&&this._reportError("Animation trigger is missing",r);let u=this.parseBinding(n||"undefined",!1,o||r,s);l.push([e,u.source]),c.push(new _i(e,u,On.ANIMATION,r,i,o))}parseBinding(e,n,r,s){let i=(r&&r.start||"(unknown)").toString();try{let o=n?this._exprParser.parseSimpleBinding(e,i,s,this._interpolationConfig):this._exprParser.parseBinding(e,i,s,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,r),o}catch(o){return this._reportError(`${o}`,r),this._exprParser.wrapLiteralPrimitive("ERROR",i,s)}}createBoundElementProperty(e,n,r=!1,s=!0){if(n.isAnimation)return new va(n.name,J.Animation,ve.NONE,n.expression,null,n.sourceSpan,n.keySpan,n.valueSpan);let i=null,o,l=null,c=n.name.split(Qf),u;if(c.length>1)if(c[0]==lb){l=c.slice(1).join(Qf),r||this._validatePropertyOrAttributeName(l,n.sourceSpan,!0),u=lc(this._schemaRegistry,e,l,!0);let p=l.indexOf(":");if(p>-1){let d=l.substring(0,p),m=l.substring(p+1);l=Pc(d,m)}o=J.Attribute}else c[0]==cb?(l=c[1],o=J.Class,u=[ve.NONE]):c[0]==ub&&(i=c.length>2?c[2]:null,l=c[1],o=J.Style,u=[ve.STYLE]);if(l===null){let p=this._schemaRegistry.getMappedPropName(n.name);l=s?p:n.name,u=lc(this._schemaRegistry,e,p,!1),o=n.type===On.TWO_WAY?J.TwoWay:J.Property,r||this._validatePropertyOrAttributeName(p,n.sourceSpan,!1)}return new va(l,o,u[0],n.expression,i,n.sourceSpan,n.keySpan,n.valueSpan)}parseEvent(e,n,r,s,i,o,l,c){e.length===0&&this._reportError("Event name is missing in binding",s),ac(e)?(e=e.slice(1),c!==void 0&&(c=sr(c,new tt(c.start.offset+1,c.end.offset))),this._parseAnimationEvent(e,n,s,i,l,c)):this._parseRegularEvent(e,n,r,s,i,o,l,c)}calcPossibleSecurityContexts(e,n,r){let s=this._schemaRegistry.getMappedPropName(n);return lc(this._schemaRegistry,e,s,r)}_parseAnimationEvent(e,n,r,s,i,o){let l=_E(e,[e,""]),c=l[0],u=l[1].toLowerCase(),p=this._parseAction(n,s);i.push(new ya(c,u,Oe.Animation,p,r,s,o)),c.length===0&&this._reportError("Animation event name is missing in binding",r),u?u!=="start"&&u!=="done"&&this._reportError(`The provided animation output phase value "${u}" for "@${c}" is not supported (use start or done)`,r):this._reportError(`The animation trigger output event (@${c}) is missing its phase value name (start or done are currently supported)`,r)}_parseRegularEvent(e,n,r,s,i,o,l,c){let[u,p]=DE(e,[null,e]),d=this.errors.length,m=this._parseAction(n,i),g=this.errors.length===d;o.push([e,m.source]),r&&g&&!this._isAllowedAssignmentEvent(m)&&this._reportError("Unsupported expression in a two-way binding",s),l.push(new ya(p,u,r?Oe.TwoWay:Oe.Regular,m,s,i,c))}_parseAction(e,n){let r=(n&&n.start||"(unknown").toString(),s=n&&n.start?n.start.offset:0;try{let i=this._exprParser.parseAction(e,r,s,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,n),!i||i.ast instanceof je?(this._reportError("Empty expressions are not allowed",n),this._exprParser.wrapLiteralPrimitive("ERROR",r,s)):i}catch(i){return this._reportError(`${i}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",r,s)}}_reportError(e,n,r=$n.ERROR,s){this.errors.push(new j(n,e,r,s))}_reportExpressionParserErrors(e,n){for(let r of e)this._reportError(r.message,n,void 0,r)}_validatePropertyOrAttributeName(e,n,r){let s=r?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);s.error&&this._reportError(s.msg,n,$n.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof Ce?this._isAllowedAssignmentEvent(e.ast):e instanceof Yi?this._isAllowedAssignmentEvent(e.expression):e instanceof pn&&e.args.length===1&&e.receiver instanceof Me&&e.receiver.name==="$any"&&e.receiver.receiver instanceof Re&&!(e.receiver.receiver instanceof un)?this._isAllowedAssignmentEvent(e.args[0]):e instanceof Me||e instanceof zi}};function ac(t){return t[0]=="@"}function lc(t,e,n,r){let s=[];return on.parse(e).forEach(i=>{let o=i.element?[i.element]:t.allKnownElementNames(),l=new Set(i.notSelectors.filter(u=>u.isElementSelector()).map(u=>u.element)),c=o.filter(u=>!l.has(u));s.push(...c.map(u=>t.securityContext(u,n,r)))}),s.length===0?[ve.NONE]:Array.from(new Set(s)).sort()}function sr(t,e){let n=e.start-t.start.offset,r=e.end-t.end.offset;return new W(t.start.moveBy(n),t.end.moveBy(r),t.fullStart.moveBy(n),t.details)}function hb(t){if(t==null||t.length===0||t[0]=="/")return!1;let e=t.match(fb);return e===null||e[1]=="package"||e[1]=="asset"}var fb=/^([^:/?#]+):/,db="select",mb="link",gb="rel",yb="href",vb="stylesheet",Sb="style",Eb="script",wb="ngNonBindable",Tb="ngProjectAs";function tg(t){let e=null,n=null,r=null,s=!1,i="";t.attrs.forEach(c=>{let u=c.name.toLowerCase();u==db?e=c.value:u==yb?n=c.value:u==gb?r=c.value:c.name==wb?s=!0:c.name==Tb&&c.value.length>0&&(i=c.value)}),e=xb(e);let o=t.name.toLowerCase(),l=It.OTHER;return kc(o)?l=It.NG_CONTENT:o==Sb?l=It.STYLE:o==Eb?l=It.SCRIPT:o==mb&&r==vb&&(l=It.STYLESHEET),new Du(l,e,n,s,i)}var It;(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"})(It||(It={}));var Du=class{constructor(e,n,r,s,i){a(this,"type");a(this,"selectAttr");a(this,"hrefAttr");a(this,"nonBindable");a(this,"projectAs");this.type=e,this.selectAttr=n,this.hrefAttr=r,this.nonBindable=s,this.projectAs=i}};function xb(t){return t===null||t.length===0?"*":t}var Cb=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,Ab=/^track\s+([\S\s]*)/,Ib=/^(as\s)+(.*)/,ap=/^else[^\S\r\n]+if/,Nb=/^let\s+([\S\s]*)/,Jf=/(\s*)(\S+)(\s*)/,Fi=new Set(["$index","$first","$last","$even","$odd","$count"]);function Zf(t){return t==="empty"}function ed(t){return t==="else"||ap.test(t)}function bb(t,e,n,r){let s=Pb(e),i=[],o=td(t,s,r);o!==null&&i.push(new Vn(o.expression,_e(n,t.children,t.children),o.expressionAlias,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan,t.i18n));for(let d of e)if(ap.test(d.name)){let m=td(d,s,r);if(m!==null){let g=_e(n,d.children,d.children);i.push(new Vn(m.expression,g,m.expressionAlias,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}}else if(d.name==="else"){let m=_e(n,d.children,d.children);i.push(new Vn(null,m,null,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}let l=i.length>0?i[0].startSourceSpan:t.startSourceSpan,c=i.length>0?i[i.length-1].endSourceSpan:t.endSourceSpan,u=t.sourceSpan,p=i[i.length-1];return p!==void 0&&(u=new W(l.start,p.sourceSpan.end)),{node:new es(i,u,t.startSourceSpan,c,t.nameSpan),errors:s}}function Db(t,e,n,r){var c,u;let s=[],i=kb(t,s,r),o=null,l=null;for(let p of e)p.name==="empty"?l!==null?s.push(new j(p.sourceSpan,"@for loop can only have one @empty block")):p.parameters.length>0?s.push(new j(p.sourceSpan,"@empty block cannot have parameters")):l=new ro(_e(n,p.children,p.children),p.sourceSpan,p.startSourceSpan,p.endSourceSpan,p.nameSpan,p.i18n):s.push(new j(p.sourceSpan,`Unrecognized @for loop block "${p.name}"`));if(i!==null)if(i.trackBy===null)s.push(new j(t.startSourceSpan,'@for loop must have a "track" expression'));else{let p=(c=l==null?void 0:l.endSourceSpan)!=null?c:t.endSourceSpan,d=new W(t.sourceSpan.start,(u=p==null?void 0:p.end)!=null?u:t.sourceSpan.end);o=new Dn(i.itemName,i.expression,i.trackBy.expression,i.trackBy.keywordSpan,i.context,_e(n,t.children,t.children),l,d,t.sourceSpan,t.startSourceSpan,p,t.nameSpan,t.i18n)}return{node:o,errors:s}}function _b(t,e,n){let r=Mb(t),s=t.parameters.length>0?To(t.parameters[0],n):n.parseBinding("",!1,t.sourceSpan,0),i=[],o=[],l=null;for(let c of t.children){if(!(c instanceof Wt))continue;if((c.name!=="case"||c.parameters.length===0)&&c.name!=="default"){o.push(new Ta(c.name,c.sourceSpan,c.nameSpan));continue}let u=c.name==="case"?To(c.parameters[0],n):null,p=new no(u,_e(e,c.children,c.children),c.sourceSpan,c.startSourceSpan,c.endSourceSpan,c.nameSpan,c.i18n);u===null?l=p:i.push(p)}return l!==null&&i.push(l),{node:new Zr(s,i,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan),errors:r}}function kb(t,e,n){var d;if(t.parameters.length===0)return e.push(new j(t.startSourceSpan,"@for loop does not have an expression")),null;let[r,...s]=t.parameters,i=(d=Lb(r,e))==null?void 0:d.match(Cb);if(!i||i[2].trim().length===0)return e.push(new j(r.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;let[,o,l]=i;Fi.has(o)&&e.push(new j(r.sourceSpan,`@for loop item name cannot be one of ${Array.from(Fi).join(", ")}.`));let c=r.expression.split(" ")[0],u=new W(r.sourceSpan.start,r.sourceSpan.start.moveBy(c.length)),p={itemName:new wt(o,"$implicit",u,u),trackBy:null,expression:To(r,n,l),context:Array.from(Fi,m=>{let g=new W(t.startSourceSpan.end,t.startSourceSpan.end);return new wt(m,m,g,g)})};for(let m of s){let g=m.expression.match(Nb);if(g!==null){let w=new W(m.sourceSpan.start.moveBy(g[0].length-g[1].length),m.sourceSpan.end);Rb(m.sourceSpan,g[1],w,o,p.context,e);continue}let E=m.expression.match(Ab);if(E!==null){if(p.trackBy!==null)e.push(new j(m.sourceSpan,'@for loop can only have one "track" expression'));else{let w=To(m,n,E[1]);w.ast instanceof je&&e.push(new j(t.startSourceSpan,'@for loop must have a "track" expression'));let x=new W(m.sourceSpan.start,m.sourceSpan.start.moveBy(5));p.trackBy={expression:w,keywordSpan:x}}continue}e.push(new j(m.sourceSpan,`Unrecognized @for loop parameter "${m.expression}"`))}return p}function Rb(t,e,n,r,s,i){var c,u,p;let o=e.split(","),l=n.start;for(let d of o){let m=d.split("="),g=m.length===2?m[0].trim():"",E=m.length===2?m[1].trim():"";if(g.length===0||E.length===0)i.push(new j(t,'Invalid @for loop "let" parameter. Parameter should match the pattern "<name> = <variable name>"'));else if(!Fi.has(E))i.push(new j(t,`Unknown "let" parameter variable "${E}". The allowed variables are: ${Array.from(Fi).join(", ")}`));else if(g===r)i.push(new j(t,`Invalid @for loop "let" parameter. Variable cannot be called "${r}"`));else if(s.some(w=>w.name===g))i.push(new j(t,`Duplicate "let" parameter variable "${E}"`));else{let[,w,x]=(c=m[0].match(Jf))!=null?c:[],k=w!==void 0&&m.length===2?new W(l.moveBy(w.length),l.moveBy(w.length+x.length)):n,_;if(m.length===2){let[,V,te]=(u=m[1].match(Jf))!=null?u:[];_=V!==void 0?new W(l.moveBy(m[0].length+1+V.length),l.moveBy(m[0].length+1+V.length+te.length)):void 0}let H=new W(k.start,(p=_==null?void 0:_.end)!=null?p:k.end);s.push(new wt(g,E,H,k,_))}l=l.moveBy(d.length+1)}}function Pb(t){let e=[],n=!1;for(let r=0;r<t.length;r++){let s=t[r];s.name==="else"?(n?e.push(new j(s.startSourceSpan,"Conditional can only have one @else block")):t.length>1&&r<t.length-1?e.push(new j(s.startSourceSpan,"@else block must be last inside the conditional")):s.parameters.length>0&&e.push(new j(s.startSourceSpan,"@else block cannot have parameters")),n=!0):ap.test(s.name)||e.push(new j(s.startSourceSpan,`Unrecognized conditional block @${s.name}`))}return e}function Mb(t){let e=[],n=!1;if(t.parameters.length!==1)return e.push(new j(t.startSourceSpan,"@switch block must have exactly one parameter")),e;for(let r of t.children)if(!(r instanceof vo||r instanceof ls&&r.value.trim().length===0)){if(!(r instanceof Wt)||r.name!=="case"&&r.name!=="default"){e.push(new j(r.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}r.name==="default"?(n?e.push(new j(r.startSourceSpan,"@switch block can only have one @default block")):r.parameters.length>0&&e.push(new j(r.startSourceSpan,"@default block cannot have parameters")),n=!0):r.name==="case"&&r.parameters.length!==1&&e.push(new j(r.startSourceSpan,"@case block must have exactly one parameter"))}return e}function To(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 td(t,e,n){if(t.parameters.length===0)return e.push(new j(t.startSourceSpan,"Conditional block does not have an expression")),null;let r=To(t.parameters[0],n),s=null;for(let i=1;i<t.parameters.length;i++){let o=t.parameters[i],l=o.expression.match(Ib);if(l===null)e.push(new j(o.sourceSpan,`Unrecognized conditional parameter "${o.expression}"`));else if(t.name!=="if")e.push(new j(o.sourceSpan,'"as" expression is only allowed on the primary @if block'));else if(s!==null)e.push(new j(o.sourceSpan,'Conditional can only have one "as" expression'));else{let c=l[2].trim(),u=o.sourceSpan.start.moveBy(l[1].length),p=new W(u,u.moveBy(c.length));s=new wt(c,c,p,p)}}return{expression:r,expressionAlias:s}}function Lb(t,e){let n=t.expression,r=/^\s$/,s=0,i=0,o=n.length-1;for(let l=0;l<n.length;l++){let c=n[l];if(c==="(")i=l+1,s++;else{if(r.test(c))continue;break}}if(s===0)return n;for(let l=n.length-1;l>-1;l--){let c=n[l];if(c===")"){if(o=l,s--,s===0)break}else{if(r.test(c))continue;break}}return s!==0?(e.push(new j(t.sourceSpan,"Unclosed parentheses in expression")),null):n.slice(i,o)}var Ob=/^\d+\.?\d*(ms|s)?$/,Fb=/^\s$/,nd=new Map([[nn,At],[Ms,Ds],[Hn,sn]]),pt;(function(t){t.IDLE="idle",t.TIMER="timer",t.INTERACTION="interaction",t.IMMEDIATE="immediate",t.HOVER="hover",t.VIEWPORT="viewport",t.NEVER="never"})(pt||(pt={}));function Bb({expression:t,sourceSpan:e},n,r){let s=t.indexOf("never"),i=new W(e.start.moveBy(s),e.start.moveBy(s+5)),o=lp(t,e),l=cp(t,e);s===-1?r.push(new j(e,'Could not find "never" keyword in expression')):up("never",n,r,new Mc(i,e,o,null,l))}function cc({expression:t,sourceSpan:e},n,r,s){let i=t.indexOf("when"),o=new W(e.start.moveBy(i),e.start.moveBy(i+4)),l=lp(t,e),c=cp(t,e);if(i===-1)s.push(new j(e,'Could not find "when" keyword in expression'));else{let u=xo(t,i+1),p=n.parseBinding(t.slice(u),!1,e,e.start.offset+u);up("when",r,s,new Ks(p,e,l,o,c))}}function uc({expression:t,sourceSpan:e},n,r,s){let i=t.indexOf("on"),o=new W(e.start.moveBy(i),e.start.moveBy(i+2)),l=lp(t,e),c=cp(t,e);if(i===-1)r.push(new j(e,'Could not find "on" keyword in expression'));else{let u=xo(t,i+1);new _u(t,u,e,n,r,t.startsWith("hydrate")?jb:Wb,s,l,o,c).parse()}}function lp(t,e){return t.startsWith("prefetch")?new W(e.start,e.start.moveBy(8)):null}function cp(t,e){return t.startsWith("hydrate")?new W(e.start,e.start.moveBy(7)):null}var _u=class{constructor(e,n,r,s,i,o,l,c,u,p){a(this,"expression");a(this,"start");a(this,"span");a(this,"triggers");a(this,"errors");a(this,"validator");a(this,"placeholder");a(this,"prefetchSpan");a(this,"onSourceSpan");a(this,"hydrateSpan");a(this,"index",0);a(this,"tokens");this.expression=e,this.start=n,this.span=r,this.triggers=s,this.errors=i,this.validator=o,this.placeholder=l,this.prefetchSpan=c,this.onSourceSpan=u,this.hydrateSpan=p,this.tokens=new Eo().tokenize(e.slice(n))}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(zt))this.consumeTrigger(e,[]),this.advance();else if(this.isFollowedByOrLast(Hn)){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 W(r,r.moveBy(e.strValue.length)),i=r.moveBy(this.token().end-e.index),o=e.index===0,l=o?this.onSourceSpan:null,c=o?this.prefetchSpan:null,u=o?this.hydrateSpan:null,p=new W(o?this.span.start:r,i);try{switch(e.toString()){case pt.IDLE:this.trackTrigger("idle",$b(n,s,p,c,l,u));break;case pt.TIMER:this.trackTrigger("timer",Ub(n,s,p,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case pt.INTERACTION:this.trackTrigger("interaction",Hb(n,s,p,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.placeholder,this.validator));break;case pt.IMMEDIATE:this.trackTrigger("immediate",Vb(n,s,p,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case pt.HOVER:this.trackTrigger("hover",qb(n,s,p,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.placeholder,this.validator));break;case pt.VIEWPORT:this.trackTrigger("viewport",Gb(n,s,p,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.placeholder,this.validator));break;default:throw new Error(`Unrecognized trigger type "${e}"`)}}catch(d){this.error(e,d.message)}}consumeParameters(){let e=[];if(!this.token().isCharacter(Hn))return this.unexpectedToken(this.token()),e;this.advance();let n=[],r="";for(;this.index<this.tokens.length;){let s=this.token();if(s.isCharacter(sn)&&n.length===0){r.length&&e.push(r);break}if(s.type===ne.Character&&nd.has(s.numValue)&&n.push(nd.get(s.numValue)),n.length>0&&s.isCharacter(n[n.length-1])&&n.pop(),n.length===0&&s.isCharacter(zt)&&r.length>0){e.push(r),r="",this.advance();continue}r+=this.tokenText(),this.advance()}return(!this.token().isCharacter(sn)||n.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(zt)&&this.unexpectedToken(this.tokens[this.index+1]),e}tokenText(){return this.expression.slice(this.start+this.token().index,this.start+this.token().end)}trackTrigger(e,n){up(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 j(new W(r,s),n))}unexpectedToken(e){this.error(e,`Unexpected token "${e}"`)}};function up(t,e,n,r){e[t]?n.push(new j(r.sourceSpan,`Duplicate "${t}" trigger is not allowed`)):e[t]=r}function $b(t,e,n,r,s,i){if(t.length>0)throw new Error(`"${pt.IDLE}" trigger cannot have parameters`);return new Lc(e,n,r,s,i)}function Ub(t,e,n,r,s,i){if(t.length!==1)throw new Error(`"${pt.TIMER}" trigger must have exactly one parameter`);let o=rl(t[0]);if(o===null)throw new Error(`Could not parse time value of trigger "${pt.TIMER}"`);return new Fc(o,e,n,r,s,i)}function Vb(t,e,n,r,s,i){if(t.length>0)throw new Error(`"${pt.IMMEDIATE}" trigger cannot have parameters`);return new Oc(e,n,r,s,i)}function qb(t,e,n,r,s,i,o,l){var c;return l(pt.HOVER,t,o),new Sa((c=t[0])!=null?c:null,e,n,r,s,i)}function Hb(t,e,n,r,s,i,o,l){var c;return l(pt.INTERACTION,t,o),new Ea((c=t[0])!=null?c:null,e,n,r,s,i)}function Gb(t,e,n,r,s,i,o,l){var c;return l(pt.VIEWPORT,t,o),new wa((c=t[0])!=null?c:null,e,n,r,s,i)}function Wb(t,e,n){if(e.length>1)throw new Error(`"${t}" trigger can only have zero or one parameters`);if(e.length===0){if(n===null)throw new Error(`"${t}" trigger with no parameters can only be placed on an @defer that has a @placeholder block`);if(n.children.length!==1||!(n.children[0]instanceof de))throw new Error(`"${t}" trigger with no parameters can only be placed on an @defer that has a @placeholder block with exactly one root element node`)}}function jb(t,e){if(e.length>0)throw new Error(`Hydration trigger "${t}" cannot have parameters`)}function xo(t,e=0){let n=!1;for(let r=e;r<t.length;r++)if(Fb.test(t[r]))n=!0;else if(n)return r;return-1}function rl(t){let e=t.match(Ob);if(!e)return null;let[n,r]=e;return parseFloat(n)*(r==="s"?1e3:1)}var Kb=/^prefetch\s+when\s/,zb=/^prefetch\s+on\s/,Xb=/^hydrate\s+when\s/,Yb=/^hydrate\s+on\s/,Qb=/^hydrate\s+never(\s*)$/,ng=/^minimum\s/,Jb=/^after\s/,Zb=/^when\s/,eD=/^on\s/;function ku(t){return t==="placeholder"||t==="loading"||t==="error"}function tD(t,e,n,r){let s=[],{placeholder:i,loading:o,error:l}=nD(e,s,n),{triggers:c,prefetchTriggers:u,hydrateTriggers:p}=oD(t,r,s,i),d=t.endSourceSpan,m=t.sourceSpan.end;if(e.length>0){let w=e[e.length-1];d=w.endSourceSpan,m=w.sourceSpan.end}let g=new W(t.sourceSpan.start,m);return{node:new Qn(_e(n,t.children,t.children),c,u,p,i,o,l,t.nameSpan,g,t.sourceSpan,t.startSourceSpan,d,t.i18n),errors:s}}function nD(t,e,n){let r=null,s=null,i=null;for(let o of t)try{if(!ku(o.name)){e.push(new j(o.startSourceSpan,`Unrecognized block "@${o.name}"`));break}switch(o.name){case"placeholder":r!==null?e.push(new j(o.startSourceSpan,"@defer block can only have one @placeholder block")):r=rD(o,n);break;case"loading":s!==null?e.push(new j(o.startSourceSpan,"@defer block can only have one @loading block")):s=sD(o,n);break;case"error":i!==null?e.push(new j(o.startSourceSpan,"@defer block can only have one @error block")):i=iD(o,n);break}}catch(l){e.push(new j(o.startSourceSpan,l.message))}return{placeholder:r,loading:s,error:i}}function rD(t,e){let n=null;for(let r of t.parameters)if(ng.test(r.expression)){if(n!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let s=rl(r.expression.slice(xo(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 Zi(_e(e,t.children,t.children),n,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function sD(t,e){let n=null,r=null;for(let s of t.parameters)if(Jb.test(s.expression)){if(n!=null)throw new Error('@loading block can only have one "after" parameter');let i=rl(s.expression.slice(xo(s.expression)));if(i===null)throw new Error('Could not parse time value of parameter "after"');n=i}else if(ng.test(s.expression)){if(r!=null)throw new Error('@loading block can only have one "minimum" parameter');let i=rl(s.expression.slice(xo(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 eo(_e(e,t.children,t.children),n,r,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function iD(t,e){if(t.parameters.length>0)throw new Error("@error block cannot have parameters");return new to(_e(e,t.children,t.children),t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function oD(t,e,n,r){let s={},i={},o={};for(let l of t.parameters)Zb.test(l.expression)?cc(l,e,s,n):eD.test(l.expression)?uc(l,s,n,r):Kb.test(l.expression)?cc(l,e,i,n):zb.test(l.expression)?uc(l,i,n,r):Xb.test(l.expression)?cc(l,e,o,n):Yb.test(l.expression)?uc(l,o,n,r):Qb.test(l.expression)?Bb(l,o,n):n.push(new j(l.sourceSpan,"Unrecognized trigger"));return o.never&&Object.keys(o).length>1&&n.push(new j(t.startSourceSpan,"Cannot specify additional `hydrate` triggers if `hydrate never` is present")),{triggers:s,prefetchTriggers:i,hydrateTriggers:o}}var aD=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,rd=1,sd=2,id=3,od=4,ad=5,lD=6,Ai=7,ir={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},ld="*";function cD(t,e,n){let r=new Ru(e,n),s=_e(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 Ru=class{constructor(e,n){a(this,"bindingParser");a(this,"options");a(this,"errors",[]);a(this,"styles",[]);a(this,"styleUrls",[]);a(this,"ngContentSelectors",[]);a(this,"commentNodes",[]);a(this,"inI18nBlock",!1);a(this,"processedNodes",new Set);this.bindingParser=e,this.options=n}visitElement(e){let n=Iu(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=tg(e);if(r.type===It.SCRIPT)return null;if(r.type===It.STYLE){let x=pD(e);return x!==null&&this.styles.push(x),null}else if(r.type===It.STYLESHEET&&hb(r.hrefAttr))return this.styleUrls.push(r.hrefAttr),null;let s=XE(e.name),i=[],o=[],l=[],c=[],u=[],p={},d=[],m=[],g=!1;for(let x of e.attrs){let k=!1,_=cd(x.name),H=!1;if(x.i18n&&(p[x.name]=x.i18n),_.startsWith(ld)){g&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",x.sourceSpan),H=!0,g=!0;let V=x.value,te=_.substring(ld.length),ae=[],oe=x.valueSpan?x.valueSpan.start.offset:x.sourceSpan.start.offset+x.name.length;this.bindingParser.parseInlineTemplateBinding(te,V,x.sourceSpan,oe,[],d,ae,!0),m.push(...ae.map(Be=>new wt(Be.name,Be.value,Be.sourceSpan,Be.keySpan,Be.valueSpan)))}else k=this.parseAttribute(s,x,[],i,o,l,c);!k&&!H&&u.push(this.visitAttribute(x))}let E;r.nonBindable?E=_e(uD,e.children).flat(1/0):E=_e(this,e.children,e.children);let w;if(r.type===It.NG_CONTENT){let x=r.selectAttr,k=e.attrs.map(_=>this.visitAttribute(_));w=new Cr(x,k,E,e.sourceSpan,e.i18n),this.ngContentSelectors.push(x)}else if(s){let x=this.extractAttributes(e.name,i,p);w=new he(e.name,u,x.bound,o,[],E,c,l,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{let x=this.extractAttributes(e.name,i,p);w=new de(e.name,u,x.bound,o,E,c,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(g){let x=this.extractAttributes("ng-template",d,p),k=[];x.literal.forEach(te=>k.push(te)),x.bound.forEach(te=>k.push(te));let _=w instanceof de?{attributes:w.attributes,inputs:w.inputs,outputs:w.outputs}:{attributes:[],inputs:[],outputs:[]},H=s&&n?void 0:e.i18n,V=w instanceof he?null:w.name;w=new he(V,_.attributes,_.inputs,_.outputs,k,[w],[],m,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,H)}return n&&(this.inI18nBlock=!1),w}visitAttribute(e){return new St(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(!Iu(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(JE)){let l=i.trim(),c=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);r[l]=new Xn(c,o.sourceSpan)}else s[i]=this._visitTextWithInterpolation(o.text,o.sourceSpan,null)}),new zs(r,s,e.sourceSpan,n)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new js(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 je&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new ot(e.name,r,e.sourceSpan,e.nameSpan,e.valueSpan)}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=tD(e,this.findConnectedBlocks(r,n,ku),this,this.bindingParser);break;case"switch":s=_b(e,this,this.bindingParser);break;case"for":s=Db(e,this.findConnectedBlocks(r,n,Zf),this,this.bindingParser);break;case"if":s=bb(e,this.findConnectedBlocks(r,n,ed),this,this.bindingParser);break;default:let i;ku(e.name)?(i=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):Zf(e.name)?(i=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):ed(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 Ta(e.name,e.sourceSpan,e.nameSpan),errors:[new j(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 vo)){if(o instanceof ls&&o.value.trim().length===0){this.processedNodes.add(o);continue}if(!(o instanceof Wt)||!r(o.name))break;s.push(o),this.processedNodes.add(o)}}return s}extractAttributes(e,n,r){let s=[],i=[];return n.forEach(o=>{let l=r[o.name];if(o.isLiteral)i.push(new St(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,l));else{let c=this.bindingParser.createBoundElementProperty(e,o,!0,!1);s.push(Et.fromBoundElementProperty(c,l))}}),{bound:s,literal:i}}parseAttribute(e,n,r,s,i,o,l){var k;let c=cd(n.name),u=n.value,p=n.sourceSpan,d=n.valueSpan?n.valueSpan.start.offset:p.start.offset;function m(_,H,V){let te=n.name.length-c.length,ae=_.start.moveBy(H.length+te),oe=ae.moveBy(V.length);return new W(ae,oe,ae,V)}let g=c.match(aD);if(g){if(g[rd]!=null){let _=g[Ai],H=m(p,g[rd],_);this.bindingParser.parsePropertyBinding(_,u,!1,!1,p,d,n.valueSpan,r,s,H)}else if(g[sd])if(e){let _=g[Ai],H=m(p,g[sd],_);this.parseVariable(_,u,p,H,n.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',p);else if(g[id]){let _=g[Ai],H=m(p,g[id],_);this.parseReference(_,u,p,H,n.valueSpan,l)}else if(g[od]){let _=[],H=g[Ai],V=m(p,g[od],H);this.bindingParser.parseEvent(H,u,!1,p,n.valueSpan||p,r,_,V),pc(_,i)}else if(g[ad]){let _=g[Ai],H=m(p,g[ad],_);this.bindingParser.parsePropertyBinding(_,u,!1,!0,p,d,n.valueSpan,r,s,H),this.parseAssignmentEvent(_,u,p,n.valueSpan,r,i,H)}else if(g[lD]){let _=m(p,"",c);this.bindingParser.parseLiteralAttr(c,u,p,d,n.valueSpan,r,s,_)}return!0}let E=null;if(c.startsWith(ir.BANANA_BOX.start)?E=ir.BANANA_BOX:c.startsWith(ir.PROPERTY.start)?E=ir.PROPERTY:c.startsWith(ir.EVENT.start)&&(E=ir.EVENT),E!==null&&c.endsWith(E.end)&&c.length>E.start.length+E.end.length){let _=c.substring(E.start.length,c.length-E.end.length),H=m(p,E.start,_);if(E.start===ir.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(_,u,!1,!0,p,d,n.valueSpan,r,s,H),this.parseAssignmentEvent(_,u,p,n.valueSpan,r,i,H);else if(E.start===ir.PROPERTY.start)this.bindingParser.parsePropertyBinding(_,u,!1,!1,p,d,n.valueSpan,r,s,H);else{let V=[];this.bindingParser.parseEvent(_,u,!1,p,n.valueSpan||p,r,V,H),pc(V,i)}return!0}let w=m(p,"",c);return this.bindingParser.parsePropertyInterpolation(c,u,p,n.valueSpan,r,s,w,(k=n.valueTokens)!=null?k:null)}_visitTextWithInterpolation(e,n,r,s){let i=Rm(e),o=this.bindingParser.parseInterpolation(i,n,r);return o?new Xn(o,n,s):new rn(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 wt(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(l=>l.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,r),o.push(new _n(e,n,r,s,i))}parseAssignmentEvent(e,n,r,s,i,o,l){let c=[];this.bindingParser.parseEvent(`${e}Change`,n,!0,r,s||r,i,c,l),pc(c,o)}reportError(e,n,r=$n.ERROR){this.errors.push(new j(n,e,r))}},Pu=class{visitElement(e){let n=tg(e);if(n.type===It.SCRIPT||n.type===It.STYLE||n.type===It.STYLESHEET)return null;let r=_e(this,e.children,null);return new de(e.name,_e(this,e.attrs),[],[],r,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitComment(e){return null}visitAttribute(e){return new St(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new rn(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,n){let r=[new rn(e.startSourceSpan.toString(),e.startSourceSpan),..._e(this,e.children)];return e.endSourceSpan!==null&&r.push(new rn(e.endSourceSpan.toString(),e.endSourceSpan)),r}visitBlockParameter(e,n){return null}visitLetDeclaration(e,n){return new rn(`@let ${e.name} = ${e.value};`,e.sourceSpan)}},uD=new Pu;function cd(t){return/^data-/i.test(t)?t.substring(5):t}function pc(t,e){e.push(...t.map(n=>Yn.fromParsedEvent(n)))}function pD(t){return t.children.length!==1||!(t.children[0]instanceof ls)?null:t.children[0].value}var hD=[" ",`
|
|
37
|
+
`,"\r"," "];function rg(t,e,n={}){var V,te,ae;let{interpolationConfig:r,preserveWhitespaces:s,enableI18nLegacyMessageIdFormat:i}=n,o=ii(r),c=new nl().parse(t,e,ye(T({leadingTriviaChars:hD},n),{tokenizeExpansionForms:!0,tokenizeBlocks:(V=n.enableBlockSyntax)!=null?V:!0,tokenizeLet:(te=n.enableLetSyntax)!=null?te:!0}));if(!n.alwaysAttemptHtmlToR3AstConversion&&c.errors&&c.errors.length>0){let oe={interpolationConfig:r,preserveWhitespaces:s,errors:c.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(oe.commentNodes=[]),oe}let u=c.rootNodes,p=!((ae=n.preserveSignificantWhitespace)==null||ae),d=new za(r,!s,i,void 0,n.preserveSignificantWhitespace,p),m=d.visitAllWithErrors(u);if(!n.alwaysAttemptHtmlToR3AstConversion&&m.errors&&m.errors.length>0){let oe={interpolationConfig:r,preserveWhitespaces:s,errors:m.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(oe.commentNodes=[]),oe}u=m.rootNodes,s||(u=_e(new ja(!0,void 0,!1),u),d.hasI18nMeta&&(u=_e(new za(r,!1,void 0,void 0,!0,p),u)));let{nodes:g,errors:E,styleUrls:w,styles:x,ngContentSelectors:k,commentNodes:_}=cD(u,o,{collectCommentNodes:!!n.collectCommentNodes});E.push(...c.errors,...m.errors);let H={interpolationConfig:r,preserveWhitespaces:s,errors:E.length>0?E:null,nodes:g,styleUrls:w,styles:x,ngContentSelectors:k};return n.collectCommentNodes&&(H.commentNodes=_),H}var fD=new gn;function ii(t=jt){return new bu(new Ka(new Eo),t,fD,[])}var sg="%COMP%",dD=`_nghost-${sg}`,mD=`_ngcontent-${sg}`;function ig(t,e,n){let r=new Nr,s=Hu(t.selector);return r.set("type",t.type.value),s.length>0&&r.set("selectors",Ns(s)),t.queries.length>0&&r.set("contentQueries",ab(t.queries,e,t.name)),t.viewQueries.length&&r.set("viewQuery",ob(t.viewQueries,e,t.name)),r.set("hostBindings",wD(t.host,t.typeSourceSpan,n,e,t.selector||"",t.name,r)),r.set("inputs",tf(t.inputs,!0)),r.set("outputs",tf(t.outputs)),t.exportAs!==null&&r.set("exportAs",pe(t.exportAs.map(i=>v(i)))),t.isStandalone===!1&&r.set("standalone",v(!1)),t.isSignal&&r.set("signals",v(!0)),r}function og(t,e){var i,o;let n=[],r=e.providers,s=e.viewProviders;if(r||s){let l=[r||new yt([])];s&&l.push(s),n.push($(h.ProvidersFeature).callFn(l))}if((i=e.hostDirectives)!=null&&i.length&&n.push($(h.HostDirectivesFeature).callFn([CD(e.hostDirectives)])),e.usesInheritance&&n.push($(h.InheritDefinitionFeature)),e.fullInheritance&&n.push($(h.CopyDefinitionFeature)),e.lifecycle.usesOnChanges&&n.push($(h.NgOnChangesFeature)),"externalStyles"in e&&((o=e.externalStyles)!=null&&o.length)){let l=e.externalStyles.map(c=>v(c));n.push($(h.ExternalStylesFeature).callFn([pe(l)]))}n.length&&t.set("features",pe(n))}function ag(t,e,n){let r=ig(t,e,n);og(r,t);let s=$(h.defineDirective).callFn([r.toLiteralMap()],void 0,!0),i=ED(t);return{expression:s,type:i,statements:[]}}function lg(t,e,n){var g;let r=ig(t,e,n);og(r,t);let s=t.selector&&on.parse(t.selector),i=s&&s[0];if(i){let E=i.getAttrs();E.length&&r.set("attrs",e.getConstLiteral(pe(E.map(w=>w!=null?v(w):v(void 0))),!0))}let o=t.name,l=null;if(t.defer.mode===1&&t.defer.dependenciesFn!==null){let E=`${o}_DeferFn`;e.statements.push(new st(E,t.defer.dependenciesFn,void 0,Ue.Final)),l=Y(E)}let c=ON(t.name,t.template.nodes,e,t.relativeContextFilePath,t.i18nUseExternalIds,t.defer,l,t.relativeTemplatePath,rb());Gm(c,R.Tmpl);let u=PN(c,e);if(c.contentSelectors!==null&&r.set("ngContentSelectors",c.contentSelectors),r.set("decls",v(c.root.decls)),r.set("vars",v(c.root.vars)),c.consts.length>0&&(c.constsInitializers.length>0?r.set("consts",Qt([],[...c.constsInitializers,new Ye(pe(c.consts))])):r.set("consts",pe(c.consts))),r.set("template",u),t.declarationListEmitMode!==3&&t.declarations.length>0)r.set("dependencies",yD(pe(t.declarations.map(E=>E.type)),t.declarationListEmitMode));else if(t.declarationListEmitMode===3){let E=[t.type.value];t.rawImports&&E.push(t.rawImports),r.set("dependencies",$(h.getComponentDepsFactory).callFn(E))}t.encapsulation===null&&(t.encapsulation=wn.Emulated);let p=!!((g=t.externalStyles)!=null&&g.length);if(t.styles&&t.styles.length){let w=(t.encapsulation==wn.Emulated?xD(t.styles,mD,dD):t.styles).reduce((x,k)=>(k.trim().length>0&&x.push(e.getConstLiteral(v(k))),x),[]);w.length>0&&(p=!0,r.set("styles",pe(w)))}!p&&t.encapsulation===wn.Emulated&&(t.encapsulation=wn.None),t.encapsulation!==wn.Emulated&&r.set("encapsulation",v(t.encapsulation)),t.animations!==null&&r.set("data",it([{key:"animation",value:t.animations,quoted:!1}])),t.changeDetection!==null&&(typeof t.changeDetection=="number"&&t.changeDetection!==ia.Default?r.set("changeDetection",v(t.changeDetection)):typeof t.changeDetection=="object"&&r.set("changeDetection",t.changeDetection));let d=$(h.defineComponent).callFn([r.toLiteralMap()],void 0,!0),m=gD(t);return{expression:d,type:m,statements:[]}}function gD(t){let e=cg(t);return e.push(Lu(t.template.ngContentSelectors)),e.push(Xe(v(t.isStandalone))),e.push(hg(t)),t.isSignal&&e.push(Xe(v(t.isSignal))),Xe($(h.ComponentDeclaration,e))}function yD(t,e){switch(e){case 0:return t;case 1:return Qt([],t);case 2:let n=t.prop("map").callFn([$(h.resolveForwardRef)]);return Qt([],n);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function vD(t){return Xe(v(t))}function Mu(t){let e=Object.keys(t).map(n=>{let r=Array.isArray(t[n])?t[n][0]:t[n];return{key:n,value:v(r),quoted:!0}});return it(e)}function Lu(t){return t.length>0?Xe(pe(t.map(e=>v(e)))):ln}function cg(t){let e=t.selector!==null?t.selector.replace(/\n/g,""):null;return[ll(t.type.type,t.typeArgumentCount),e!==null?vD(e):ln,t.exportAs!==null?Lu(t.exportAs):ln,Xe(SD(t)),Xe(Mu(t.outputs)),Lu(t.queries.map(n=>n.propertyName))]}function SD(t){return it(Object.keys(t.inputs).map(e=>{let n=t.inputs[e],r=[{key:"alias",value:v(n.bindingPropertyName),quoted:!0},{key:"required",value:v(n.required),quoted:!0}];return n.isSignal&&r.push({key:"isSignal",value:v(n.isSignal),quoted:!0}),{key:e,value:it(r),quoted:!0}}))}function ED(t){let e=cg(t);return e.push(ln),e.push(Xe(v(t.isStandalone))),e.push(hg(t)),t.isSignal&&e.push(Xe(v(t.isSignal))),Xe($(h.DirectiveDeclaration,e))}function wD(t,e,n,r,s,i,o){let l=n.createBoundHostProperties(t.properties,e),c=n.createDirectiveHostEventAsts(t.listeners,e);t.specialAttributes.styleAttr&&(t.attributes.style=v(t.specialAttributes.styleAttr)),t.specialAttributes.classAttr&&(t.attributes.class=v(t.specialAttributes.classAttr));let u=FN({componentName:i,componentSelector:s,properties:l,events:c,attributes:t.attributes},n,r);Gm(u,R.Host),o.set("hostAttrs",u.root.attributes);let p=u.root.vars;return p!==null&&p>0&&o.set("hostVars",v(p)),MN(u)}var TD=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function ug(t){let e={},n={},r={},s={};for(let i of Object.keys(t)){let o=t[i],l=i.match(TD);if(l===null)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]=v(o):e[i]=o}else if(l[1]!=null){if(typeof o!="string")throw new Error("Property binding must be string");r[l[1]]=o}else if(l[2]!=null){if(typeof o!="string")throw new Error("Event binding must be string");n[l[2]]=o}}return{attributes:e,listeners:n,properties:r,specialAttributes:s}}function pg(t,e){let n=ii();return n.createDirectiveHostEventAsts(t.listeners,e),n.createBoundHostProperties(t.properties,e),n.errors}function xD(t,e,n){let r=new Yc;return t.map(s=>r.shimCssText(s,e,n))}function hg(t){var e;return(e=t.hostDirectives)!=null&&e.length?Xe(pe(t.hostDirectives.map(n=>it([{key:"directive",value:oi(n.directive.type),quoted:!1},{key:"inputs",value:Mu(n.inputs||{}),quoted:!1},{key:"outputs",value:Mu(n.outputs||{}),quoted:!1}])))):ln}function CD(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=ud(r.inputs);i&&s.push({key:"inputs",value:i,quoted:!1})}if(r.outputs){let i=ud(r.outputs);i&&s.push({key:"outputs",value:i,quoted:!1})}e.push(it(s))}r.isForwardReference&&(n=!0)}return n?new xn([],[new Ye(pe(e))]):pe(e)}function ud(t){let e=[];for(let n in t)t.hasOwnProperty(n)&&e.push(v(n),v(t[n]));return e.length>0?pe(e):null}var sl=class{constructor(e){a(this,"directiveMatcher");this.directiveMatcher=e}bind(e){if(!e.template)throw new Error("Binding without a template not yet supported");let n=Ou.apply(e.template),r=AD(n),{directives:s,eagerDirectives:i,bindings:o,references:l}=Fu.apply(e.template,this.directiveMatcher),{expressions:c,symbols:u,nestingLevel:p,usedPipes:d,eagerPipes:m,deferBlocks:g}=Bu.applyWithScope(e.template,n);return new $u(e,s,i,o,l,c,u,p,r,d,m,g)}},Ou=class t{constructor(e,n){a(this,"parentScope");a(this,"rootNode");a(this,"namedEntities",new Map);a(this,"elementsInScope",new Set);a(this,"childScopes",new Map);a(this,"isDeferred");this.parentScope=e,this.rootNode=n,this.isDeferred=e!==null&&e.isDeferred?!0:n instanceof Qn}static newRootScope(){return new t(null,null)}static apply(e){let n=t.newRootScope();return n.ingest(e),n}ingest(e){e instanceof he?(e.variables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof Vn?(e.expressionAlias!==null&&this.visitVariable(e.expressionAlias),e.children.forEach(n=>n.visit(this))):e instanceof Dn?(this.visitVariable(e.item),e.contextVariables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof no||e instanceof ro||e instanceof Qn||e instanceof to||e instanceof Zi||e instanceof eo||e instanceof Cr?e.children.forEach(n=>n.visit(this)):e.forEach(n=>n.visit(this))}visitElement(e){e.references.forEach(n=>this.visitReference(n)),e.children.forEach(n=>n.visit(this)),this.elementsInScope.add(e)}visitTemplate(e){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)}visitSwitchBlock(e){e.cases.forEach(n=>n.visit(this))}visitSwitchBlockCase(e){this.ingestScopedNode(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)}visitLetDeclaration(e){this.maybeDeclare(e)}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundText(e){}visitText(e){}visitTextAttribute(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}maybeDeclare(e){this.namedEntities.has(e.name)||this.namedEntities.set(e.name,e)}lookup(e){return this.namedEntities.has(e)?this.namedEntities.get(e):this.parentScope!==null?this.parentScope.lookup(e):null}getChildScope(e){let 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 t(this,e);n.ingest(e),this.childScopes.set(e,n)}},Fu=class t{constructor(e,n,r,s,i){a(this,"matcher");a(this,"directives");a(this,"eagerDirectives");a(this,"bindings");a(this,"references");a(this,"isInDeferBlock",!1);this.matcher=e,this.directives=n,this.eagerDirectives=r,this.bindings=s,this.references=i}static apply(e,n){let r=new Map,s=new Map,i=new Map,o=[];return new t(n,r,o,s,i).ingest(e),{directives:r,eagerDirectives:o,bindings:s,references:i}}ingest(e){e.forEach(n=>n.visit(this))}visitElement(e){this.visitElementOrTemplate(e)}visitTemplate(e){this.visitElementOrTemplate(e)}visitElementOrTemplate(e){let n=Ku(e),r=[];this.matcher.match(n,(i,o)=>r.push(...o)),r.length>0&&(this.directives.set(e,r),this.isInDeferBlock||this.eagerDirectives.push(...r)),e.references.forEach(i=>{let o=null;if(i.value.trim()==="")o=r.find(l=>l.isComponent)||null;else if(o=r.find(l=>l.exportAs!==null&&l.exportAs.some(c=>c===i.value))||null,o===null)return;o!==null?this.references.set(i,{directive:o,node:e}):this.references.set(i,e)});let s=(i,o)=>{let l=r.find(u=>u[o].hasBindingPropertyName(i.name)),c=l!==void 0?l:e;this.bindings.set(i,c)};e.inputs.forEach(i=>s(i,"inputs")),e.attributes.forEach(i=>s(i,"inputs")),e instanceof he&&e.templateAttrs.forEach(i=>s(i,"inputs")),e.outputs.forEach(i=>s(i,"outputs")),e.children.forEach(i=>i.visit(this))}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))}visitSwitchBlock(e){e.cases.forEach(n=>n.visit(this))}visitSwitchBlockCase(e){e.children.forEach(n=>n.visit(this))}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))}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundAttributeOrEvent(e){}visitText(e){}visitBoundText(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}visitLetDeclaration(e){}},Bu=class t extends xr{constructor(n,r,s,i,o,l,c,u,p){super();a(this,"bindings");a(this,"symbols");a(this,"usedPipes");a(this,"eagerPipes");a(this,"deferBlocks");a(this,"nestingLevel");a(this,"scope");a(this,"rootNode");a(this,"level");a(this,"visitNode");this.bindings=n,this.symbols=r,this.usedPipes=s,this.eagerPipes=i,this.deferBlocks=o,this.nestingLevel=l,this.scope=c,this.rootNode=u,this.level=p,this.visitNode=d=>d.visit(this)}visit(n,r){n instanceof Se?n.visit(this,r):n.visit(this)}static applyWithScope(n,r){let s=new Map,i=new Map,o=new Map,l=new Set,c=new Set,u=n instanceof he?n:null,p=[];return new t(s,i,l,c,p,o,r,u,0).ingest(n),{expressions:s,symbols:i,nestingLevel:o,usedPipes:l,eagerPipes:c,deferBlocks:p}}ingest(n){if(n instanceof he)n.variables.forEach(this.visitNode),n.children.forEach(this.visitNode),this.nestingLevel.set(n,this.level);else if(n instanceof Vn)n.expressionAlias!==null&&this.visitNode(n.expressionAlias),n.children.forEach(this.visitNode),this.nestingLevel.set(n,this.level);else if(n instanceof Dn)this.visitNode(n.item),n.contextVariables.forEach(r=>this.visitNode(r)),n.trackBy.visit(this),n.children.forEach(this.visitNode),this.nestingLevel.set(n,this.level);else if(n instanceof Qn){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(r=>r.visit(this)),this.nestingLevel.set(n,this.level)}else n instanceof no||n instanceof ro||n instanceof to||n instanceof Zi||n instanceof eo||n instanceof Cr?(n.children.forEach(r=>r.visit(this)),this.nestingLevel.set(n,this.level)):n.forEach(this.visitNode)}visitElement(n){n.inputs.forEach(this.visitNode),n.outputs.forEach(this.visitNode),n.children.forEach(this.visitNode),n.references.forEach(this.visitNode)}visitTemplate(n){n.inputs.forEach(this.visitNode),n.outputs.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)}visitText(n){}visitTextAttribute(n){}visitUnknownBlock(n){}visitDeferredTrigger(){}visitIcu(n){Object.keys(n.vars).forEach(r=>n.vars[r].visit(this)),Object.keys(n.placeholders).forEach(r=>n.placeholders[r].visit(this))}visitBoundAttribute(n){n.value.visit(this)}visitBoundEvent(n){n.handler.visit(this)}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)}visitSwitchBlock(n){n.expression.visit(this),n.cases.forEach(this.visitNode)}visitSwitchBlockCase(n){var r;(r=n.expression)==null||r.visit(this),this.ingestScopedNode(n)}visitForLoopBlock(n){var r;n.expression.visit(this),this.ingestScopedNode(n),(r=n.empty)==null||r.visit(this)}visitForLoopBlockEmpty(n){this.ingestScopedNode(n)}visitIfBlock(n){n.branches.forEach(r=>r.visit(this))}visitIfBlockBranch(n){var r;(r=n.expression)==null||r.visit(this),this.ingestScopedNode(n)}visitContent(n){this.ingestScopedNode(n)}visitBoundText(n){n.value.visit(this)}visitLetDeclaration(n){n.value.visit(this),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),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)}visitPropertyWrite(n,r){return this.maybeMap(n,n.name),super.visitPropertyWrite(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).ingest(n)}maybeMap(n,r){if(!(n.receiver instanceof Re)||n.receiver instanceof un)return;let s=this.scope.lookup(r);s!==null&&this.bindings.set(n,s)}},$u=class{constructor(e,n,r,s,i,o,l,c,u,p,d,m){a(this,"target");a(this,"directives");a(this,"eagerDirectives");a(this,"bindings");a(this,"references");a(this,"exprTargets");a(this,"symbols");a(this,"nestingLevel");a(this,"scopedNodeEntities");a(this,"usedPipes");a(this,"eagerPipes");a(this,"deferredBlocks");a(this,"deferredScopes");this.target=e,this.directives=n,this.eagerDirectives=r,this.bindings=s,this.references=i,this.exprTargets=o,this.symbols=l,this.nestingLevel=c,this.scopedNodeEntities=u,this.usedPipes=p,this.eagerPipes=d,this.deferredBlocks=m.map(g=>g[0]),this.deferredScopes=new Map(m)}getEntitiesInScope(e){var n;return(n=this.scopedNodeEntities.get(e))!=null?n:new Set}getDirectivesOfNode(e){return this.directives.get(e)||null}getReferenceTarget(e){return this.references.get(e)||null}getConsumerOfBinding(e){return this.bindings.get(e)||null}getExpressionTarget(e){return this.exprTargets.get(e)||null}getDefinitionNodeOfSymbol(e){return this.symbols.get(e)||null}getNestingLevel(e){return this.nestingLevel.get(e)||0}getUsedDirectives(){let e=new Set;return this.directives.forEach(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 Ea)&&!(n instanceof wa)&&!(n instanceof Sa))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 js)){if(i!==null)return null;o instanceof de&&(i=o)}}return i}let s=this.findEntityInScope(e,r);if(s instanceof _n&&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 _n?this.getReferenceTarget(i):null;if(o!==null)return this.referenceTargetToElement(o)}return null}isDeferred(e){for(let n of this.deferredBlocks){if(!this.deferredScopes.has(n))continue;let r=[this.deferredScopes.get(n)];for(;r.length>0;){let s=r.pop();if(s.elementsInScope.has(e))return!0;r.push(...s.childScopes.values())}}return!1}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 de?e:e instanceof he?null:this.referenceTargetToElement(e.node)}};function AD(t){let e=new Map;function n(i){if(e.has(i.rootNode))return e.get(i.rootNode);let o=i.namedEntities,l;return i.parentScope!==null?l=new Map([...n(i.parentScope),...o]):l=new Map(o),e.set(i.rootNode,l),l}let r=[t];for(;r.length>0;){let i=r.pop();for(let o of i.childScopes.values())r.push(o);n(i)}let s=new Map;for(let[i,o]of e)s.set(i,new Set(o.values()));return s}var Uu=class{},Vu=class{constructor(e=new Wc){a(this,"jitEvaluator");a(this,"FactoryTarget",ht);a(this,"ResourceLoader",Uu);a(this,"elementSchemaRegistry",new gn);this.jitEvaluator=e}compilePipe(e,n,r){let s={name:r.name,type:We(r.type),typeArgumentCount:0,deps:null,pipeName:r.pipeName,pure:r.pure,isStandalone:r.isStandalone},i=Xc(s);return this.jitExpression(i.expression,e,n,[])}compilePipeDeclaration(e,n,r){let s=qD(r),i=Xc(s);return this.jitExpression(i.expression,e,n,[])}compileInjectable(e,n,r){var o;let{expression:s,statements:i}=Vc({name:r.name,type:We(r.type),typeArgumentCount:r.typeArgumentCount,providedIn:gd(r.providedIn),useClass:Ts(r,"useClass"),useFactory:md(r,"useFactory"),useValue:Ts(r,"useValue"),useExisting:Ts(r,"useExisting"),deps:(o=r.deps)==null?void 0:o.map(gg)},!0);return this.jitExpression(s,e,n,i)}compileInjectableDeclaration(e,n,r){var o;let{expression:s,statements:i}=Vc({name:r.type.name,type:We(r.type),typeArgumentCount:0,providedIn:gd(r.providedIn),useClass:Ts(r,"useClass"),useFactory:md(r,"useFactory"),useValue:Ts(r,"useValue"),useExisting:Ts(r,"useExisting"),deps:(o=r.deps)==null?void 0:o.map(yd)},!0);return this.jitExpression(s,e,n,i)}compileInjector(e,n,r){let s={name:r.name,type:We(r.type),providers:r.providers&&r.providers.length>0?new G(r.providers):null,imports:r.imports.map(o=>new G(o))},i=Kc(s);return this.jitExpression(i.expression,e,n,[])}compileInjectorDeclaration(e,n,r){let s=HD(r),i=Kc(s);return this.jitExpression(i.expression,e,n,[])}compileNgModule(e,n,r){let s={kind:Tn.Global,type:We(r.type),bootstrap:r.bootstrap.map(We),declarations:r.declarations.map(We),publicDeclarationTypes:null,imports:r.imports.map(We),includeImportTypes:!0,exports:r.exports.map(We),selectorScopeMode:Ys.Inline,containsForwardDecls:!1,schemas:r.schemas?r.schemas.map(We):null,id:r.id?new G(r.id):null},i=um(s);return this.jitExpression(i.expression,e,n,[])}compileNgModuleDeclaration(e,n,r){let s=Cw(r);return this.jitExpression(s,e,n,[])}compileDirective(e,n,r){let s=fd(r);return this.compileDirectiveFromMeta(e,n,s)}compileDirectiveDeclaration(e,n,r){let s=this.createParseSourceSpan("Directive",r.type.name,n),i=dg(r,s);return this.compileDirectiveFromMeta(e,n,i)}compileDirectiveFromMeta(e,n,r){let s=new Hs,i=ii(),o=ag(r,s,i);return this.jitExpression(o.expression,e,n,s.statements)}compileComponent(e,n,r){var u;let{template:s,interpolation:i,defer:o}=mg(r.template,r.name,n,r.preserveWhitespaces,r.interpolation,void 0),l=ye(T(T({},r),fd(r)),{selector:r.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,declarations:r.declarations.map(DD),declarationListEmitMode:0,defer:o,styles:[...r.styles,...s.styles],encapsulation:r.encapsulation,interpolation:i,changeDetection:(u=r.changeDetection)!=null?u:null,animations:r.animations!=null?new G(r.animations):null,viewProviders:r.viewProviders!=null?new G(r.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null}),c=`ng:///${r.name}.js`;return this.compileComponentFromMeta(e,c,l)}compileComponentDeclaration(e,n,r){let s=this.createParseSourceSpan("Component",r.type.name,n),i=bD(r,s,n);return this.compileComponentFromMeta(e,n,i)}compileComponentFromMeta(e,n,r){let s=new Hs,i=ii(r.interpolation),o=lg(r,s,i);return this.jitExpression(o.expression,e,n,s.statements)}compileFactory(e,n,r){let s=ur({name:r.name,type:We(r.type),typeArgumentCount:r.typeArgumentCount,deps:RD(r.deps),target:r.target});return this.jitExpression(s.expression,e,n,s.statements)}compileFactoryDeclaration(e,n,r){let s=ur({name:r.type.name,type:We(r.type),typeArgumentCount:0,deps:Array.isArray(r.deps)?r.deps.map(yd):r.deps,target:r.target});return this.jitExpression(s.expression,e,n,s.statements)}createParseSourceSpan(e,n,r){return yw(e,n,r)}jitExpression(e,n,r,s){let i=[...s,new st("$def",e,void 0,Ue.Exported)];return this.jitEvaluator.evaluateStatements(r,i,new zc(n),!0).$def}};function pd(t){return ye(T({},t),{isSignal:t.isSignal,predicate:fg(t.predicate),read:t.read?new G(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly})}function hd(t){var e,n,r,s;return{propertyName:t.propertyName,first:(e=t.first)!=null?e:!1,predicate:fg(t.predicate),descendants:(n=t.descendants)!=null?n:!1,read:t.read?new G(t.read):null,static:(r=t.static)!=null?r:!1,emitDistinctChangesOnly:(s=t.emitDistinctChangesOnly)!=null?s:!0,isSignal:!!t.isSignal}}function fg(t){return Array.isArray(t)?t:cs(new G(t),1)}function fd(t){var l;let e=VD(t.inputs||[]),n=fc(t.outputs||[]),r=t.propMetadata,s={},i={};for(let c in r)r.hasOwnProperty(c)&&r[c].forEach(u=>{FD(u)?s[c]={bindingPropertyName:u.alias||c,classPropertyName:c,required:u.required||!1,isSignal:!!u.isSignal,transformFunction:u.transform!=null?new G(u.transform):null}:BD(u)&&(i[c]=u.alias||c)});let o=(l=t.hostDirectives)!=null&&l.length?t.hostDirectives.map(c=>typeof c=="function"?{directive:We(c),inputs:null,outputs:null,isForwardReference:!1}:{directive:We(c.directive),isForwardReference:!1,inputs:c.inputs?fc(c.inputs):null,outputs:c.outputs?fc(c.outputs):null}):null;return ye(T({},t),{typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:We(t.type),deps:null,host:T({},MD(t.propMetadata,t.typeSourceSpan,t.host)),inputs:T(T({},e),s),outputs:T(T({},n),i),queries:t.queries.map(pd),providers:t.providers!=null?new G(t.providers):null,viewQueries:t.viewQueries.map(pd),fullInheritance:!1,hostDirectives:o})}function dg(t,e){var r,s,i,o,l,c,u,p,d,m;let n=(r=t.hostDirectives)!=null&&r.length?t.hostDirectives.map(g=>({directive:We(g.directive),isForwardReference:!1,inputs:g.inputs?dd(g.inputs):null,outputs:g.outputs?dd(g.outputs):null})):null;return{name:t.type.name,type:We(t.type),typeSourceSpan:e,selector:(s=t.selector)!=null?s:null,inputs:t.inputs?$D(t.inputs):{},outputs:(i=t.outputs)!=null?i:{},host:ID(t.host),queries:((o=t.queries)!=null?o:[]).map(hd),viewQueries:((l=t.viewQueries)!=null?l:[]).map(hd),providers:t.providers!==void 0?new G(t.providers):null,exportAs:(c=t.exportAs)!=null?c:null,usesInheritance:(u=t.usesInheritance)!=null?u:!1,lifecycle:{usesOnChanges:(p=t.usesOnChanges)!=null?p:!1},deps:null,typeArgumentCount:0,fullInheritance:!1,isStandalone:(d=t.isStandalone)!=null?d:Wd(t.version),isSignal:(m=t.isSignal)!=null?m:!1,hostDirectives:n}}function ID(t={}){var e,n,r;return{attributes:ND((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 dd(t){let e=null;for(let n=1;n<t.length;n+=2)e=e||{},e[t[n-1]]=t[n];return e}function ND(t){let e={};for(let n of Object.keys(t))e[n]=new G(t[n]);return e}function bD(t,e,n){var l,c,u,p;let{template:r,interpolation:s,defer:i}=mg(t.template,t.type.name,n,(l=t.preserveWhitespaces)!=null?l:!1,t.interpolation,t.deferBlockDependencies),o=[];if(t.dependencies)for(let d of t.dependencies)switch(d.kind){case"directive":case"component":o.push(hc(d));break;case"pipe":o.push(kD(d));break}else(t.components||t.directives||t.pipes)&&(t.components&&o.push(...t.components.map(d=>hc(d,!0))),t.directives&&o.push(...t.directives.map(d=>hc(d))),t.pipes&&o.push(..._D(t.pipes)));return ye(T({},dg(t,e)),{template:r,styles:(c=t.styles)!=null?c:[],declarations:o,viewProviders:t.viewProviders!==void 0?new G(t.viewProviders):null,animations:t.animations!==void 0?new G(t.animations):null,defer:i,changeDetection:(u=t.changeDetection)!=null?u:ia.Default,encapsulation:(p=t.encapsulation)!=null?p:wn.Emulated,interpolation:s,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null})}function DD(t){return ye(T({},t),{type:new G(t.type)})}function hc(t,e=null){var n,r,s;return{kind:Qs.Directive,isComponent:e||t.kind==="component",selector:t.selector,type:new G(t.type),inputs:(n=t.inputs)!=null?n:[],outputs:(r=t.outputs)!=null?r:[],exportAs:(s=t.exportAs)!=null?s:null}}function _D(t){return t?Object.keys(t).map(e=>({kind:Qs.Pipe,name:e,type:new G(t[e])})):[]}function kD(t){return{kind:Qs.Pipe,name:t.name,type:new G(t.type)}}function mg(t,e,n,r,s,i){let o=s?oo.fromArray(s):jt,l=rg(t,n,{preserveWhitespaces:r,interpolationConfig:o});if(l.errors!==null){let p=l.errors.map(d=>d.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${p}`)}let u=new sl(new yr).bind({template:l.nodes});return{template:l,interpolation:o,defer:PD(u,i)}}function Ts(t,e){if(t.hasOwnProperty(e))return cs(new G(t[e]),0)}function md(t,e){if(t.hasOwnProperty(e))return new G(t[e])}function gd(t){let e=typeof t=="function"?new G(t):new Pe(t!=null?t:null);return cs(e,0)}function RD(t){return t==null?null:t.map(gg)}function gg(t){let e=t.attribute!=null,n=t.token===null?null:new G(t.token),r=e?new G(t.attribute):n;return yg(r,e,t.host,t.optional,t.self,t.skipSelf)}function yd(t){var r,s,i,o,l;let e=(r=t.attribute)!=null?r:!1,n=t.token===null?null:new G(t.token);return yg(n,e,(s=t.host)!=null?s:!1,(i=t.optional)!=null?i:!1,(o=t.self)!=null?o:!1,(l=t.skipSelf)!=null?l:!1)}function yg(t,e,n,r,s,i){let o=e?v("unknown"):null;return{token:t,attributeNameType:o,host:n,optional:r,self:s,skipSelf:i}}function PD(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 G(i):null)}return{mode:0,blocks:r}}function MD(t,e,n){let r=ug(n||{}),s=pg(r,e);if(s.length)throw new Error(s.map(i=>i.msg).join(`
|
|
38
|
+
`));for(let i in t)t.hasOwnProperty(i)&&t[i].forEach(o=>{LD(o)?r.properties[o.hostPropertyName||i]=jd("this",i):OD(o)&&(r.listeners[o.eventName||i]=`${i}(${(o.args||[]).join(",")})`)});return r}function LD(t){return t.ngMetadataName==="HostBinding"}function OD(t){return t.ngMetadataName==="HostListener"}function FD(t){return t.ngMetadataName==="Input"}function BD(t){return t.ngMetadataName==="Output"}function $D(t){return Object.keys(t).reduce((e,n)=>{let r=t[n];return typeof r=="string"||Array.isArray(r)?e[n]=UD(r):e[n]={bindingPropertyName:r.publicName,classPropertyName:n,transformFunction:r.transformFunction!==null?new G(r.transformFunction):null,required:r.isRequired,isSignal:r.isSignal},e},{})}function UD(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 G(t[2]):null,required:!1,isSignal:!1}}function VD(t){return t.reduce((e,n)=>{if(typeof n=="string"){let[r,s]=vg(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 G(n.transform):null};return e},{})}function fc(t){return t.reduce((e,n)=>{let[r,s]=vg(n);return e[s]=r,e},{})}function vg(t){let[e,n]=t.split(":",2).map(r=>r.trim());return[n!=null?n:e,e]}function qD(t){var e,n;return{name:t.type.name,type:We(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:(e=t.pure)!=null?e:!0,isStandalone:(n=t.isStandalone)!=null?n:Wd(t.version)}}function HD(t){return{name:t.type.name,type:We(t.type),providers:t.providers!==void 0&&t.providers.length>0?new G(t.providers):null,imports:t.imports!==void 0?t.imports.map(e=>new G(e)):[]}}function GD(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new Vu}var UL=new ji("19.2.0");var vd;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(vd||(vd={}));var qu=class{constructor(){a(this,"closedByParent",!1);a(this,"implicitNamespacePrefix",null);a(this,"isVoid",!1);a(this,"ignoreFirstLf",!1);a(this,"canSelfClose",!0);a(this,"preventNamespaceInheritance",!1)}requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return tn.PARSABLE_DATA}},VL=new qu;var Sd;(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"})(Sd||(Sd={}));GD(Di);var c0=I(require("typescript"),1),yl=I(require("typescript"),1),p0=I(require("typescript"),1),vl=I(require("typescript"),1),h0=I(require("typescript"),1),be=I(require("typescript"),1),gp=I(require("typescript"),1),tr=I(require("typescript"),1),Lg=I(require("typescript"),1),Pr=I(require("typescript"),1);var Ae=I(require("typescript"),1);var v0=I(require("typescript"),1),S0=I(require("typescript"),1),Ie=I(require("typescript"),1);var jL=(0,Rg.createRequire)(M),Z;(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.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.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.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.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.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.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"})(Z||(Z={}));function Sl(t){return parseInt("-99"+t)}var nr=class extends Error{constructor(e,n,r,s){super(`FatalDiagnosticError: Code: ${e}, Message: ${hi.default.flattenDiagnosticMessageText(r,`
|
|
39
|
+
`)}`);a(this,"code");a(this,"node");a(this,"diagnosticMessage");a(this,"relatedInformation");a(this,"_isFatalDiagnosticError",!0);this.code=e,this.node=n,this.diagnosticMessage=r,this.relatedInformation=s,Object.setPrototypeOf(this,new.target.prototype)}toDiagnostic(){return Sp(this.code,this.node,this.diagnosticMessage,this.relatedInformation)}};function Sp(t,e,n,r,s=hi.default.DiagnosticCategory.Error){return e=hi.default.getOriginalNode(e),{category:s,code:Sl(t),file:hi.default.getOriginalNode(e).getSourceFile(),start:e.getStart(void 0,!1),length:e.getWidth(),messageText:n,relatedInformation:r}}function Ep(t,e){return{category:hi.default.DiagnosticCategory.Message,code:0,messageText:t,next:e}}var KD=new Set([Z.DECORATOR_ARG_NOT_LITERAL,Z.IMPORT_CYCLE_DETECTED,Z.PARAM_MISSING_TOKEN,Z.SCHEMA_INVALID_ELEMENT,Z.SCHEMA_INVALID_ATTRIBUTE,Z.MISSING_REFERENCE_TARGET,Z.COMPONENT_INVALID_SHADOW_DOM_SELECTOR,Z.WARN_NGMODULE_ID_UNNECESSARY]);var ct;(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.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.UNUSED_STANDALONE_IMPORTS="unusedStandaloneImports"})(ct||(ct={}));function zD(t){return Do.default.isIdentifier(t)||Do.default.isPropertyAccessExpression(t)&&Do.default.isIdentifier(t.expression)&&Do.default.isIdentifier(t.name)}var Mr;(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"})(Mr||(Mr={}));var Te;(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"})(Te||(Te={}));var us={};function XD(t,e,n){var r,s;if(t===null)return ZD();if(!Fe.default.isTypeReferenceNode(t))return bo(t);let i=e0(t,e);if(i===null)return QD(t);let{local:o,decl:l}=i;if(l.valueDeclaration===void 0||l.flags&Fe.default.SymbolFlags.ConstEnum){let p=null;if(l.declarations!==void 0&&l.declarations.length>0&&(p=l.declarations[0]),!n||p&&[Fe.default.SyntaxKind.TypeParameter,Fe.default.SyntaxKind.TypeAliasDeclaration,Fe.default.SyntaxKind.InterfaceDeclaration].includes(p.kind))return YD(t,p)}let c=o.declarations&&o.declarations[0];if(c!==void 0){if(Fe.default.isImportClause(c)&&c.name!==void 0)return c.isTypeOnly?gl(t,c):Fe.default.isImportDeclaration(c.parent)?{kind:0,expression:c.name,defaultImportStatement:c.parent}:bo(t);if(Fe.default.isImportSpecifier(c)){if(c.isTypeOnly)return gl(t,c);if(c.parent.parent.isTypeOnly)return gl(t,c.parent.parent);let p=(c.propertyName||c.name).text,[d,...m]=i.symbolNames,g=c.parent.parent.parent;if(!Fe.default.isImportDeclaration(g))return bo(t);let E=Eg(g);return{kind:1,valueDeclaration:(r=l.valueDeclaration)!=null?r:null,moduleName:E,importedName:p,nestedPath:m}}else if(Fe.default.isNamespaceImport(c)){if(c.parent.isTypeOnly)return gl(t,c.parent);if(i.symbolNames.length===1)return JD(t,c.parent);let[p,d,...m]=i.symbolNames,g=c.parent.parent;if(!Fe.default.isImportDeclaration(g))return bo(t);let E=Eg(g);return{kind:1,valueDeclaration:(s=l.valueDeclaration)!=null?s:null,moduleName:E,importedName:d,nestedPath:m}}}let u=Pg(t);return u!==null?{kind:0,expression:u,defaultImportStatement:null}:bo(t)}function bo(t){return{kind:2,reason:{kind:5,typeNode:t}}}function YD(t,e){return{kind:2,reason:{kind:1,typeNode:t,decl:e}}}function gl(t,e){return{kind:2,reason:{kind:2,typeNode:t,node:e}}}function QD(t){return{kind:2,reason:{kind:3,typeNode:t}}}function JD(t,e){return{kind:2,reason:{kind:4,typeNode:t,importClause:e}}}function ZD(){return{kind:2,reason:{kind:0}}}function Pg(t){return Fe.default.isTypeReferenceNode(t)?wp(t.typeName):null}function e0(t,e){let n=t.typeName,r=e.getSymbolAtLocation(n);if(r===void 0)return null;let s=r,i=n,o=[];for(;Fe.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 l=r;return r.flags&Fe.default.SymbolFlags.Alias&&(l=e.getAliasedSymbol(r)),{local:s,decl:l,symbolNames:o}}function wp(t){if(Fe.default.isQualifiedName(t)){let e=wp(t.left);return e!==null?Fe.default.factory.createPropertyAccessExpression(e,t.right):null}else if(Fe.default.isIdentifier(t)){let e=Fe.default.setOriginalNode(Fe.default.factory.createIdentifier(t.text),t);return e.parent=t.parent,e}else return null}function Eg(t){if(!Fe.default.isStringLiteral(t.moduleSpecifier))throw new Error("not a module specifier");return t.moduleSpecifier.text}function xp(t){return Tp.default.isClassDeclaration(t)&&t0(t.name)}function t0(t){return t!==void 0&&Tp.default.isIdentifier(t)}function Cp(t){switch(t){case Te.EcmaScriptPrivate:return"ES private";case Te.Private:return"private";case Te.Protected:return"protected";case Te.PublicReadonly:return"public readonly";case Te.PublicWritable:default:return"public"}}var Ap=class{constructor(t,e=!1,n=!1){a(this,"checker");a(this,"isLocalCompilation");a(this,"skipPrivateValueDeclarationTypes");this.checker=t,this.isLocalCompilation=e,this.skipPrivateValueDeclarationTypes=n}getDecoratorsOfDeclaration(t){let e=F.default.canHaveDecorators(t)?F.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 wg(t).members.map(n=>{let r=Ip(n);return r===null?null:ye(T({},r),{decorators:this.getDecoratorsOfDeclaration(n)})}).filter(n=>n!==null)}getConstructorParameters(t){let e=wg(t),n=e.getSourceFile().isDeclarationFile,r=e.members.find(s=>F.default.isConstructorDeclaration(s)&&(n||s.body!==void 0));return r===void 0?null:r.parameters.map(s=>{let i=Tg(s.name),o=this.getDecoratorsOfDeclaration(s),l=s.type||null,c=l;if(c&&F.default.isUnionTypeNode(c)){let p=c.types.filter(d=>!(F.default.isLiteralTypeNode(d)&&d.literal.kind===F.default.SyntaxKind.NullKeyword));p.length===1&&(c=p[0])}let u=XD(c,this.checker,this.isLocalCompilation);return{name:i,nameNode:s.name,typeValueReference:u,typeNode:l,decorators:o}})}getImportOfIdentifier(t){let e=this.getDirectImportOfIdentifier(t);return e!==null?e:F.default.isQualifiedName(t.parent)&&t.parent.right===t?this.getImportOfNamespacedIdentifier(t,i0(t.parent)):F.default.isPropertyAccessExpression(t.parent)&&t.parent.name===t?this.getImportOfNamespacedIdentifier(t,o0(t.parent)):null}getExportsOfModule(t){if(!F.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 xp(t)}hasBaseClass(t){return this.getBaseClassExpression(t)!==null}getBaseClassExpression(t){if(!(F.default.isClassDeclaration(t)||F.default.isClassExpression(t))||t.heritageClauses===void 0)return null;let e=t.heritageClauses.find(r=>r.token===F.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(!F.default.isFunctionDeclaration(t)&&!F.default.isMethodDeclaration(t)&&!F.default.isFunctionExpression(t)&&!F.default.isArrowFunction(t))return null;let e=null;t.body!==void 0&&(e=F.default.isBlock(t.body)?Array.from(t.body.statements):[F.default.factory.createReturnStatement(t.body)]);let n=this.checker.getTypeAtLocation(t),r=this.checker.getSignaturesOfType(n,F.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=Tg(s.name),o=s.initializer||null;return{name:i,node:s,initializer:o,type:s.type||null}})}}getGenericArityOfClass(t){return F.default.isClassDeclaration(t)?t.typeParameters!==void 0?t.typeParameters.length:0:null}getVariableValue(t){return t.initializer||null}isStaticallyExported(t){let e=t;F.default.isVariableDeclaration(t)&&F.default.isVariableDeclarationList(t.parent)&&(e=t.parent.parent);let n=F.default.canHaveModifiers(e)?F.default.getModifiers(e):void 0;return n!==void 0&&n.some(s=>s.kind===F.default.SyntaxKind.ExportKeyword)?!0:e.parent===void 0||!F.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=a0(n);return r===null||!F.default.isStringLiteral(r.moduleSpecifier)?null:{from:r.moduleSpecifier.text,name:l0(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=F.default.isNamespaceImport(r)?r:null;if(!s)return null;let i=s.parent.parent;return!F.default.isImportDeclaration(i)||!F.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&&F.default.isShorthandPropertyAssignment(n)){let s=this.checker.getShorthandAssignmentValueSymbol(n);return s===void 0?null:this.getDeclarationOfSymbol(s,e)}else if(n!==void 0&&F.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&F.default.SymbolFlags.Alias;)t=this.checker.getAliasedSymbol(t);return t.valueDeclaration!==void 0&&(!this.skipPrivateValueDeclarationTypes||!s0(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(F.default.isCallExpression(e)&&(n=Array.from(e.arguments),e=e.expression),!zD(e))return null;let r=F.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[pp]!==void 0)return e[pp];let n=new Set;e[pp]=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&F.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()?us:n!==null&&n.from!==null&&!n.from.startsWith(".")?n.from:null}};function n0(t){let e=F.default.getModifiers(t),n=!1,r=!1,s=Te.PublicWritable;if(e!==void 0)for(let i of e)switch(i.kind){case F.default.SyntaxKind.StaticKeyword:n=!0;break;case F.default.SyntaxKind.PrivateKeyword:s=Te.Private;break;case F.default.SyntaxKind.ProtectedKeyword:s=Te.Protected;break;case F.default.SyntaxKind.ReadonlyKeyword:r=!0;break}return r&&s===Te.PublicWritable&&(s=Te.PublicReadonly),t.name!==void 0&&F.default.isPrivateIdentifier(t.name)&&(s=Te.EcmaScriptPrivate),{accessLevel:s,isStatic:n}}function Ip(t){let e=null,n=null,r=null,s=null;if(F.default.isPropertyDeclaration(t))e=Mr.Property,n=t.initializer||null;else if(F.default.isGetAccessorDeclaration(t))e=Mr.Getter;else if(F.default.isSetAccessorDeclaration(t))e=Mr.Setter;else if(F.default.isMethodDeclaration(t))e=Mr.Method;else if(F.default.isConstructorDeclaration(t))e=Mr.Constructor;else return null;if(F.default.isConstructorDeclaration(t))r="constructor";else if(F.default.isIdentifier(t.name))r=t.name.text,s=t.name;else if(F.default.isStringLiteral(t.name))r=t.name.text,s=t.name;else if(F.default.isPrivateIdentifier(t.name))r=t.name.text,s=t.name;else return null;let{accessLevel:i,isStatic:o}=n0(t);return{node:t,implementation:t,kind:e,type:t.type||null,accessLevel:i,name:r,nameNode:s,value:n,isStatic:o}}function Np(t){let e=new Map;return t.properties.forEach(n=>{if(F.default.isPropertyAssignment(n)){let r=r0(n.name);if(r===null)return;e.set(r,n.initializer)}else if(F.default.isShorthandPropertyAssignment(n))e.set(n.name.text,n.name);else return}),e}function wg(t){if(!F.default.isClassDeclaration(t))throw new Error(`Reflecting on a ${F.default.SyntaxKind[t.kind]} instead of a ClassDeclaration.`);return t}function Tg(t){return F.default.isIdentifier(t)?t.text:null}function r0(t){return F.default.isIdentifier(t)||F.default.isStringLiteral(t)||F.default.isNumericLiteral(t)?t.text:null}function s0(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 i0(t){for(;F.default.isQualifiedName(t.left);)t=t.left;return F.default.isIdentifier(t.left)?t.left:null}function o0(t){for(;F.default.isPropertyAccessExpression(t.expression);)t=t.expression;return F.default.isIdentifier(t.expression)?t.expression:null}function a0(t){let e=t.parent;for(;e&&!F.default.isSourceFile(e);){if(F.default.isImportDeclaration(e))return e;e=e.parent}return null}function l0(t,e){return F.default.isImportSpecifier(t)?(t.propertyName!==void 0?t.propertyName:t.name).text:e.text}var pp=Symbol("LocalExportedDeclarations");function fp(t){return t.name!==void 0&&Mg.default.isIdentifier(t.name)?t.name:null}var ps=class{constructor(t,e=null){a(this,"node");a(this,"bestGuessOwningModule");a(this,"identifiers",[]);a(this,"synthetic",!1);a(this,"_alias",null);a(this,"isAmbient");this.node=t,e===us?(this.isAmbient=!0,this.bestGuessOwningModule=null):(this.isAmbient=!1,this.bestGuessOwningModule=e);let n=fp(t);n!==null&&this.identifiers.push(n)}get ownedByModuleGuess(){return this.bestGuessOwningModule!==null?this.bestGuessOwningModule.specifier:null}get hasOwningModuleGuess(){return this.bestGuessOwningModule!==null}get debugName(){let t=fp(this.node);return t!==null?t.text:null}get alias(){return this._alias}addIdentifier(t){this.identifiers.push(t)}getIdentityIn(t){return this.identifiers.find(e=>e.getSourceFile()===t)||null}getIdentityInExpression(t){let e=t.getSourceFile();return this.identifiers.find(n=>n.getSourceFile()!==e?!1:n.pos>=t.pos&&n.end<=t.end)||null}getOriginForDiagnostics(t,e=t){let n=this.getIdentityInExpression(t);return n!==null?n:e}cloneWithAlias(t){let e=new ps(this.node,this.isAmbient?us:this.bestGuessOwningModule);return e.identifiers=[...this.identifiers],e._alias=t,e}cloneWithNoIdentifiers(){let t=new ps(this.node,this.isAmbient?us:this.bestGuessOwningModule);return t._alias=this._alias,t.identifiers=[],t}};var dp;(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"})(dp||(dp={}));var mp;(function(t){t[t.Success=0]="Success",t[t.Failed=1]="Failed"})(mp||(mp={}));var xg=Symbol("patchedReferencedAliases");function bp(t){u0(t)||Cg();let e=t.getEmitResolver();if(e===void 0)return null;let n=e[xg];if(n!==void 0)return n;let r=e.isReferencedAliasDeclaration;r===void 0&&Cg();let s=new Set;return e.isReferencedAliasDeclaration=function(i,...o){return Dp(i)&&s.has(i)?!0:r.call(e,i,...o)},e[xg]=s}function Dp(t){return yl.default.isImportSpecifier(t)||yl.default.isNamespaceImport(t)||yl.default.isImportClause(t)}function u0(t){return t.getEmitResolver!==void 0}function Cg(){throw Error(`Angular compiler is incompatible with this version of the TypeScript compiler.
|
|
40
40
|
|
|
41
41
|
If you recently updated TypeScript and this issue surfaces now, consider downgrading.
|
|
42
42
|
|
|
43
|
-
Please report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.`)}var qL=Symbol("DefaultImportDeclaration");var xp=class{constructor(){a(this,"fileToNamedImports",new WeakMap);a(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 n,r;let s=t.getSourceFile();return this.scanImports(s),(r=(n=this.fileToNamespaceImports.get(s).get(e))==null?void 0:n.has(t.text))!=null?r:!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 e,n;if(this.fileToNamedImports.has(t)&&this.fileToNamespaceImports.has(t))return;let r=new Map,s=new Map;this.fileToNamedImports.set(t,r),this.fileToNamespaceImports.set(t,s);for(let i of t.statements){if(!cl.default.isImportDeclaration(i)||!cl.default.isStringLiteralLike(i.moduleSpecifier)||((e=i.importClause)==null?void 0:e.namedBindings)===void 0)continue;let o=i.moduleSpecifier.text;if(cl.default.isNamespaceImport(i.importClause.namedBindings))s.has(o)||s.set(o,new Set),s.get(o).add(i.importClause.namedBindings.name.text);else for(let l of i.importClause.namedBindings.elements){let c=l.name.text,u=l.propertyName===void 0?c:l.propertyName.text;r.has(o)||r.set(o,new Map);let p=r.get(o);p.has(u)||p.set(u,new Set),(n=p.get(u))==null||n.add(c)}}}};function l0(){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 l=null,c=1;do l=`${s}_${c++}`;while(!o(l));return n(i,l),cp.default.factory.createUniqueName(l,cp.default.GeneratedIdentifierFlags.Optimistic)}}function c0(t,e){return n=>{let{affectedFiles:r,newImports:s,updatedImports:i,reusedOriginalAliasDeclarations:o,deletedImports:l}=t.finalize();if(o.size>0){let u=wp(n);o.forEach(p=>u.add(p))}if(e!==void 0)for(let[u,p]of e.entries())p.length>0&&r.add(u);let c=u=>{if(!er.default.isImportDeclaration(u))return u;if(l.has(u))return;if(u.importClause===void 0||!er.default.isImportClause(u.importClause))return u;let p=u.importClause;if(p.namedBindings===void 0||!er.default.isNamedImports(p.namedBindings)||!i.has(p.namedBindings))return u;let d=n.factory.updateImportClause(p,p.isTypeOnly,p.name,i.get(p.namedBindings)),m=n.factory.updateImportDeclaration(u,u.modifiers,d,u.moduleSpecifier,u.attributes);return er.default.setOriginalNode(m,{importClause:d,kind:m.kind}),m};return u=>{var p,d;if(!r.has(u.fileName))return u;u=er.default.visitEachChild(u,c,n);let m=(p=e==null?void 0:e.get(u.fileName))!=null?p:[],g=[],E=[];for(let w of u.statements)u0(w)?g.push(w):E.push(w);return n.factory.updateSourceFile(u,[...g,...(d=s.get(u.fileName))!=null?d:[],...m,...E],u.isDeclarationFile,u.referencedFiles,u.typeReferenceDirectives,u.hasNoDefaultLib,u.libReferenceDirectives)}}}function u0(t){return er.default.isImportDeclaration(t)||er.default.isImportEqualsDeclaration(t)||er.default.isNamespaceImport(t)}function p0(t,e){let n=_g(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,Dg.default.factory.createIdentifier(e.exportSymbolName)]}function Sg(t,e,n){e.directReuseCache.set(_g(t),n),t.exportSymbolName===null&&!Array.isArray(n)&&e.namespaceImportReuseCache.set(t.exportModuleSpecifier,n)}function _g(t){return`${t.requestedFile.fileName}:${t.exportModuleSpecifier}:${t.exportSymbolName}${t.unsafeAliasOverride?":"+t.unsafeAliasOverride:""}`}function h0(t,e,n){let r=null;for(let l=e.statements.length-1;l>=0;l--){let c=e.statements[l];if(!(!Rr.default.isImportDeclaration(c)||!Rr.default.isStringLiteral(c.moduleSpecifier)||!c.importClause||c.importClause.isTypeOnly||c.moduleSpecifier.text!==n.exportModuleSpecifier)&&c.importClause.namedBindings){let p=c.importClause.namedBindings;if(Rr.default.isNamespaceImport(p))return t.reusedAliasDeclarations.add(p),n.exportSymbolName===null?p.name:[p.name,Rr.default.factory.createIdentifier(n.exportSymbolName)];if(Rr.default.isNamedImports(p)&&n.exportSymbolName!==null){let d=p.elements.find(m=>{var g;let E;return n.unsafeAliasOverride?E=((g=m.propertyName)==null?void 0:g.text)===n.exportSymbolName&&m.name.text===n.unsafeAliasOverride:E=m.propertyName?m.propertyName.text===n.exportSymbolName:m.name.text===n.exportSymbolName,!m.isTypeOnly&&E});if(d!==void 0)return t.reusedAliasDeclarations.add(d),d.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=Rr.default.factory.createIdentifier(n.exportSymbolName),o=n.unsafeAliasOverride?Rr.default.factory.createIdentifier(n.unsafeAliasOverride):t.generateUniqueIdentifier(e,n.exportSymbolName);return s.push({propertyName:i,fileUniqueAlias:o}),o!=null?o:i}var Cp=class{constructor(t={}){a(this,"newImports",new Map);a(this,"removedImports",new Map);a(this,"nextUniqueIndex",0);a(this,"config");a(this,"reuseSourceFileImportsTracker");a(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:l0()},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 e,n;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&&((n=(e=this.removedImports.get(t.requestedFile))==null?void 0:e.get(t.exportModuleSpecifier))==null||n.delete(t.exportSymbolName));let r=p0(this.reuseGeneratedImportsTracker,t);if(r!==null)return Eg(!!t.asTypeReference,r);let s=this._generateNewImport(t);return Sg(t,this.reuseGeneratedImportsTracker,s),Eg(!!t.asTypeReference,s)}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 e;let{requestedFile:n}=t,r=this.config.disableOriginalSourceFileReuse,s=this.config.forceGenerateNamespacesForNewImports;if(!r){let d=h0(this.reuseSourceFileImportsTracker,n,t);if(d!==null)return d}let{namedImports:i,namespaceImports:o}=this._getNewImportsTrackerForFile(n);if(t.exportSymbolName===null||s){let d=`${this.config.namespaceImportPrefix}${this.nextUniqueIndex++}`;this.config.rewriter&&(d=this.config.rewriter.rewriteNamespaceImportIdentifier(d,t.exportModuleSpecifier));let m=be.default.factory.createNamespaceImport((e=this.config.generateUniqueIdentifier(n,d))!=null?e:be.default.factory.createIdentifier(d));return o.set(t.exportModuleSpecifier,m),Sg(ye(T({},t),{exportSymbolName:null}),this.reuseGeneratedImportsTracker,m.name),t.exportSymbolName!==null?[m.name,be.default.factory.createIdentifier(t.exportSymbolName)]:m.name}i.has(t.exportModuleSpecifier)||i.set(t.exportModuleSpecifier,[]);let l=be.default.factory.createIdentifier(t.exportSymbolName),c=t.unsafeAliasOverride?null:this.config.generateUniqueIdentifier(n,t.exportSymbolName),u,p;return t.unsafeAliasOverride?(u=!0,p=be.default.factory.createIdentifier(t.unsafeAliasOverride)):c!==null?(u=!0,p=c):(u=!1,p=l),i.get(t.exportModuleSpecifier).push(be.default.factory.createImportSpecifier(!1,u?l:void 0,p)),p}finalize(){let t=new Set,e=new Map,n=new Map,r=new Set,s=new Map,i=(o,l)=>{t.add(o),n.has(o)?n.get(o).push(l):n.set(o,[l])};return this.reuseSourceFileImportsTracker.updatedImports.forEach((o,l)=>{let c=l.getSourceFile(),u=l.importClause.namedBindings,p=l.moduleSpecifier.text,d=u.elements.concat(o.map(({propertyName:m,fileUniqueAlias:g})=>be.default.factory.createImportSpecifier(!1,g!==null?m:void 0,g!=null?g:m))).filter(m=>this._canAddSpecifier(c,p,m));t.add(c.fileName),d.length===0?r.add(l):e.set(u,be.default.factory.updateNamedImports(u,d))}),this.removedImports.forEach((o,l)=>{var c;if(o.size===0)return;let u=s.get(l);u||(u=l.statements.filter(be.default.isImportDeclaration),s.set(l,u));for(let p of u){if(!((c=p.importClause)!=null&&c.namedBindings)||!be.default.isNamedImports(p.importClause.namedBindings)||this.reuseSourceFileImportsTracker.updatedImports.has(p)||r.has(p))continue;let d=p.importClause.namedBindings,m=p.moduleSpecifier.text,g=d.elements.filter(E=>this._canAddSpecifier(l,m,E));g.length===0?(t.add(l.fileName),r.add(p)):g.length!==d.elements.length&&(t.add(l.fileName),e.set(d,be.default.factory.updateNamedImports(d,g)))}}),this.newImports.forEach(({namedImports:o,namespaceImports:l,sideEffectImports:c},u)=>{let p=this.config.shouldUseSingleQuotes(u),d=u.fileName;c.forEach(m=>{i(d,be.default.factory.createImportDeclaration(void 0,void 0,be.default.factory.createStringLiteral(m)))}),l.forEach((m,g)=>{let E=be.default.factory.createImportDeclaration(void 0,be.default.factory.createImportClause(!1,void 0,m),be.default.factory.createStringLiteral(g,p));be.default.setOriginalNode(m.name,E),i(d,E)}),o.forEach((m,g)=>{let E=m.filter(w=>this._canAddSpecifier(u,g,w));if(E.length>0){let w=be.default.factory.createImportDeclaration(void 0,be.default.factory.createImportClause(!1,void 0,be.default.factory.createNamedImports(E)),be.default.factory.createStringLiteral(g,p));i(d,w)}})}),{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 Eg(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 HL=new Map([[Cn.Minus,"-"],[Cn.Plus,"+"]]),GL=new Map([[b.And,"&&"],[b.Bigger,">"],[b.BiggerEquals,">="],[b.BitwiseAnd,"&"],[b.BitwiseOr,"|"],[b.Divide,"/"],[b.Equals,"=="],[b.Identical,"==="],[b.Lower,"<"],[b.LowerEquals,"<="],[b.Minus,"-"],[b.Modulo,"%"],[b.Multiply,"*"],[b.NotEquals,"!="],[b.NotIdentical,"!=="],[b.Or,"||"],[b.Plus,"+"],[b.NullishCoalesce,"??"]]);var ip={};function kg(t,e){return n(t);function n(i){return r(i)!==ip}function r(i){return Ae.default.isImportTypeNode(i)||Ae.default.isTypeReferenceNode(i)&&!s(i)?ip:Ae.default.forEachChild(i,r)}function s(i){return e(i)?i.typeArguments===void 0||i.typeArguments.every(n):!1}}var Rg=class{constructor(t){a(this,"translator");this.translator=t}emitType(t){let e=n=>{let r=s=>{if(Ae.default.isImportTypeNode(s))throw new Error("Unable to emit import type");if(Ae.default.isTypeReferenceNode(s))return this.emitTypeReference(s);if(Ae.default.isLiteralExpression(s)){let i;if(Ae.default.isStringLiteral(s))i=Ae.default.factory.createStringLiteral(s.text);else if(Ae.default.isNumericLiteral(s))i=Ae.default.factory.createNumericLiteral(s.text);else if(Ae.default.isBigIntLiteral(s))i=Ae.default.factory.createBigIntLiteral(s.text);else if(Ae.default.isNoSubstitutionTemplateLiteral(s))i=Ae.default.factory.createNoSubstitutionTemplateLiteral(s.text,s.rawText);else if(Ae.default.isRegularExpressionLiteral(s))i=Ae.default.factory.createRegularExpressionLiteral(s.text);else throw new Error(`Unsupported literal kind ${Ae.default.SyntaxKind[s.kind]}`);return Ae.default.setTextRange(i,{pos:-1,end:-1}),i}else return Ae.default.visitEachChild(s,r,n)};return s=>Ae.default.visitNode(s,r,Ae.default.isTypeNode)};return Ae.default.transform(t,[e]).transformed[0]}emitTypeReference(t){let e=this.translator(t);if(e===null)throw new Error("Unable to emit an unresolved reference");let n;return t.typeArguments!==void 0&&(n=Ae.default.factory.createNodeArray(t.typeArguments.map(r=>this.emitType(r)))),Ae.default.factory.updateTypeReferenceNode(t,e.typeName,n)}};var wg;(function(t){t.CLOSURE="* @pureOrBreakMyCode ",t.TERSER="@__PURE__"})(wg||(wg={}));var WL={"+":Ie.default.SyntaxKind.PlusToken,"-":Ie.default.SyntaxKind.MinusToken,"!":Ie.default.SyntaxKind.ExclamationToken},jL={"&&":Ie.default.SyntaxKind.AmpersandAmpersandToken,">":Ie.default.SyntaxKind.GreaterThanToken,">=":Ie.default.SyntaxKind.GreaterThanEqualsToken,"&":Ie.default.SyntaxKind.AmpersandToken,"|":Ie.default.SyntaxKind.BarToken,"/":Ie.default.SyntaxKind.SlashToken,"==":Ie.default.SyntaxKind.EqualsEqualsToken,"===":Ie.default.SyntaxKind.EqualsEqualsEqualsToken,"<":Ie.default.SyntaxKind.LessThanToken,"<=":Ie.default.SyntaxKind.LessThanEqualsToken,"-":Ie.default.SyntaxKind.MinusToken,"%":Ie.default.SyntaxKind.PercentToken,"*":Ie.default.SyntaxKind.AsteriskToken,"!=":Ie.default.SyntaxKind.ExclamationEqualsToken,"!==":Ie.default.SyntaxKind.ExclamationEqualsEqualsToken,"||":Ie.default.SyntaxKind.BarBarToken,"+":Ie.default.SyntaxKind.PlusToken,"??":Ie.default.SyntaxKind.QuestionQuestionToken},KL={const:Ie.default.NodeFlags.Const,let:Ie.default.NodeFlags.Let,var:Ie.default.NodeFlags.None};C();var Pg=require("module");var rO=(0,Pg.createRequire)(M),ui;(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.TtcSymbol=15]="TtcSymbol",t[t.LsReferencesAndRenames=16]="LsReferencesAndRenames",t[t.LsQuickInfo=17]="LsQuickInfo",t[t.LsDefinition=18]="LsDefinition",t[t.LsCompletions=19]="LsCompletions",t[t.LsTcb=20]="LsTcb",t[t.LsDiagnostics=21]="LsDiagnostics",t[t.LsComponentLocations=22]="LsComponentLocations",t[t.LsSignatureHelp=23]="LsSignatureHelp",t[t.OutliningSpans=24]="OutliningSpans",t[t.LAST=25]="LAST",t[t.LsCodeFixes=26]="LsCodeFixes",t[t.LsCodeFixesAll=27]="LsCodeFixesAll",t[t.LSComputeApplicableRefactorings=28]="LSComputeApplicableRefactorings",t[t.LSApplyRefactoring=29]="LSApplyRefactoring"})(ui||(ui={}));var pl;(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.TraitAnalyze=7]="TraitAnalyze",t[t.TraitReuseAnalysis=8]="TraitReuseAnalysis",t[t.SourceFilePhysicalChange=9]="SourceFilePhysicalChange",t[t.SourceFileLogicalChange=10]="SourceFileLogicalChange",t[t.SourceFileReuseAnalysis=11]="SourceFileReuseAnalysis",t[t.GenerateTcb=12]="GenerateTcb",t[t.SkipGenerateTcbNoInline=13]="SkipGenerateTcbNoInline",t[t.ReuseTypeCheckFile=14]="ReuseTypeCheckFile",t[t.UpdateTypeCheckProgram=15]="UpdateTypeCheckProgram",t[t.EmitSkipSourceFile=16]="EmitSkipSourceFile",t[t.EmitSourceFile=17]="EmitSourceFile",t[t.LAST=18]="LAST"})(pl||(pl={}));var hl;(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"})(hl||(hl={}));var m0=class{eventCount(){}memory(){}phase(){return ui.Unaccounted}inPhase(t,e){return e()}reset(){}},sO=new m0;var Rn=I(require("typescript"),1),Te=I(require("typescript"),1),N0=I(require("typescript"),1);var b0=I(require("typescript"),1),D0=I(require("typescript"),1),_0=I(require("typescript"),1),k0=I(require("typescript"),1),R0=I(require("typescript"),1),P0=I(require("typescript"),1),M0=I(require("typescript"),1);var L0=I(require("typescript"),1),O0=I(require("typescript"),1);var F0=I(require("typescript"),1);var B0=I(require("typescript"),1);var $0=I(require("typescript"),1),U0=I(require("typescript"),1);var V0=I(require("typescript"),1);var q0=I(require("typescript"),1);var H0=I(require("typescript"),1);var G0=I(require("typescript"),1),gn=I(require("typescript"),1),_p=I(require("typescript"),1);var yn=I(require("typescript"),1);var J0=I(require("typescript"),1),Z0=I(require("typescript"),1);var e_=I(require("typescript"),1);var n_=I(require("typescript"),1),r_=I(require("typescript"),1),s_=I(require("typescript"),1);var i_=I(require("typescript"),1);var No=I(require("typescript"),1);C();var Mg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g0=new Uint8Array(64),y0=new Uint8Array(128);for(let t=0;t<Mg.length;t++){let e=Mg.charCodeAt(t);g0[t]=e,y0[e]=t}var cO=1024*16;var a_=I(require("typescript"),1);var l_=I(require("typescript"),1),c_=I(require("typescript"),1);var ie=I(require("typescript"),1);var d_=I(require("typescript"),1);var m_=I(require("typescript"),1),Ao=I(require("typescript"),1);var S_=I(require("typescript"),1),E_=I(require("typescript"),1);var S=I(require("typescript"),1);var Do=I(require("typescript"),1);var R=I(require("typescript"),1),X_=I(require("typescript"),1);var Y_=I(require("typescript"),1);var se=I(require("typescript"),1);var Q_=I(require("typescript"),1);var J_=I(require("typescript"),1);var Z_=I(require("typescript"),1);var zO=(0,Qg.createRequire)(M),C0="@angular/core";function Jg(t){return t.import!==null&&t.import.from===C0}function hi(t,e,n){return n?t.name===e:Jg(t)?t.import.name===e:!1}function Zg(t,e,n){return t.filter(r=>{var s;let i=n?r.name:(s=r.import)==null?void 0:s.name;return i===void 0||!e.includes(i)?!1:n||Jg(r)})}function ey(t){for(;Rn.default.isAsExpression(t)||Rn.default.isParenthesizedExpression(t);)t=t.expression;return t}function A0(t){if(t=ey(t),!Rn.default.isArrowFunction(t)&&!Rn.default.isFunctionExpression(t))return null;let e=t.body;if(Rn.default.isBlock(e)){if(e.statements.length!==1)return null;let n=e.statements[0];return!Rn.default.isReturnStatement(n)||n.expression===void 0?null:n.expression}else return e}function I0(t,e){if(t=ey(t),!Rn.default.isCallExpression(t)||t.arguments.length!==1)return null;let n=Rn.default.isPropertyAccessExpression(t.expression)?t.expression.name:t.expression;if(!Rn.default.isIdentifier(n))return null;let r=A0(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}function qe(t){return{op:t,literal:!0}}function Lg(t){return{op:t,literal:!1}}var eF=new Map([[Te.default.SyntaxKind.PlusToken,qe((t,e)=>t+e)],[Te.default.SyntaxKind.MinusToken,qe((t,e)=>t-e)],[Te.default.SyntaxKind.AsteriskToken,qe((t,e)=>t*e)],[Te.default.SyntaxKind.SlashToken,qe((t,e)=>t/e)],[Te.default.SyntaxKind.PercentToken,qe((t,e)=>t%e)],[Te.default.SyntaxKind.AmpersandToken,qe((t,e)=>t&e)],[Te.default.SyntaxKind.BarToken,qe((t,e)=>t|e)],[Te.default.SyntaxKind.CaretToken,qe((t,e)=>t^e)],[Te.default.SyntaxKind.LessThanToken,qe((t,e)=>t<e)],[Te.default.SyntaxKind.LessThanEqualsToken,qe((t,e)=>t<=e)],[Te.default.SyntaxKind.GreaterThanToken,qe((t,e)=>t>e)],[Te.default.SyntaxKind.GreaterThanEqualsToken,qe((t,e)=>t>=e)],[Te.default.SyntaxKind.EqualsEqualsToken,qe((t,e)=>t==e)],[Te.default.SyntaxKind.EqualsEqualsEqualsToken,qe((t,e)=>t===e)],[Te.default.SyntaxKind.ExclamationEqualsToken,qe((t,e)=>t!=e)],[Te.default.SyntaxKind.ExclamationEqualsEqualsToken,qe((t,e)=>t!==e)],[Te.default.SyntaxKind.LessThanLessThanToken,qe((t,e)=>t<<e)],[Te.default.SyntaxKind.GreaterThanGreaterThanToken,qe((t,e)=>t>>e)],[Te.default.SyntaxKind.GreaterThanGreaterThanGreaterThanToken,qe((t,e)=>t>>>e)],[Te.default.SyntaxKind.AsteriskAsteriskToken,qe((t,e)=>Math.pow(t,e))],[Te.default.SyntaxKind.AmpersandAmpersandToken,Lg((t,e)=>t&&e)],[Te.default.SyntaxKind.BarBarToken,Lg((t,e)=>t||e)]]),tF=new Map([[Te.default.SyntaxKind.TildeToken,t=>~t],[Te.default.SyntaxKind.MinusToken,t=>-t],[Te.default.SyntaxKind.PlusToken,t=>+t],[Te.default.SyntaxKind.ExclamationToken,t=>!t]]);var ml;(function(t){t[t.SingleFile=0]="SingleFile",t[t.WholeProgram=1]="WholeProgram"})(ml||(ml={}));var Og;(function(t){t[t.NgModule=0]="NgModule",t[t.Standalone=1]="Standalone"})(Og||(Og={}));var Fg;(function(t){t[t.Normal=0]="Normal",t[t.ForceDirect=1]="ForceDirect"})(Fg||(Fg={}));var Bg;(function(t){t[t.Reference=0]="Reference",t[t.Variable=1]="Variable",t[t.LetDeclaration=2]="LetDeclaration"})(Bg||(Bg={}));var Ut;(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"})(Ut||(Ut={}));var Np;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(Np||(Np={}));var $g;(function(t){t[t.Selector=0]="Selector",t[t.HostDirective=1]="HostDirective"})($g||($g={}));var bp;(function(t){t[t.FULL=0]="FULL",t[t.PARTIAL=1]="PARTIAL",t[t.LOCAL=2]="LOCAL"})(bp||(bp={}));var Ug;(function(t){t[t.PRIMARY=0]="PRIMARY",t[t.SHARED=1]="SHARED",t[t.WEAK=2]="WEAK"})(Ug||(Ug={}));var Vg;(function(t){t[t.Pending=0]="Pending",t[t.Analyzed=1]="Analyzed",t[t.Resolved=2]="Resolved",t[t.Skipped=3]="Skipped"})(Vg||(Vg={}));var Dp;(function(t){t[t.NgModule=0]="NgModule",t[t.Standalone=1]="Standalone"})(Dp||(Dp={}));function vl({api:t,call:e},n){if(!t.allowedAccessLevels.includes(n.accessLevel))throw new tr(re.INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY,e,fp(`Cannot use "${t.functionName}" on a class member that is declared as ${yp(n.accessLevel)}.`,[fp("Update the class field to be either: "+t.allowedAccessLevels.map(r=>yp(r)).join(", "))]))}function _o(t,e,n,r){if(!gn.default.isCallExpression(e))return null;let s=W0(e,t,r)||j0(e,t,r)||K0(e,t,r);if(s===null)return null;let{api:i,apiReference:o,isRequired:l}=s,c=n.getImportOfIdentifier(o);return c===null||i.functionName!==c.name||i.owningModule!==c.from?null:{api:i,call:e,isRequired:l}}function W0(t,e,n){let r=t.expression;if(!gn.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 j0(t,e,n){let r=t.expression;if(!gn.default.isPropertyAccessExpression(r)||!gn.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 K0(t,e,n){let r=t.expression;if(!gn.default.isPropertyAccessExpression(r))return null;let s=null,i,o=!1;if(gn.default.isIdentifier(r.expression)&&gn.default.isIdentifier(r.name)){let l=r.expression;s=r.name,i=e.find(c=>r.name.text===c.functionName&&n.isPotentialReferenceToNamespaceImport(l,c.owningModule))}else if(gn.default.isPropertyAccessExpression(r.expression)&&gn.default.isIdentifier(r.expression.expression)&&gn.default.isIdentifier(r.expression.name)&&r.name.text==="required"){let l=r.expression.name.text,c=r.expression.expression;s=r.expression.name,i=e.find(u=>u.functionName===l&&n.isPotentialReferenceToNamespaceImport(c,u.owningModule)),o=!0}return i===void 0||s===null?null:{api:i,apiReference:s,isRequired:o}}function Pp(t){if(!_p.default.isObjectLiteralExpression(t))throw new tr(re.VALUE_HAS_WRONG_TYPE,t,"Argument needs to be an object literal that is statically analyzable.");let e=Ep(t),n;if(e.has("alias")){let r=e.get("alias");if(!_p.default.isStringLiteralLike(r))throw new tr(re.VALUE_HAS_WRONG_TYPE,r,"Alias needs to be a string that is statically analyzable.");n=r.text}return{alias:n}}var Mp={functionName:"input",owningModule:"@angular/core",allowedAccessLevels:[we.PublicWritable,we.PublicReadonly,we.Protected]};function ty(t,e,n){var r;if(t.value===null)return null;let s=_o([Mp],t.value,e,n);if(s===null)return null;vl(s,t);let i=s.isRequired?s.call.arguments[0]:s.call.arguments[1],o=i!==void 0?Pp(i):null,l=t.name;return{isSignal:!0,classPropertyName:l,bindingPropertyName:(r=o==null?void 0:o.alias)!=null?r:l,required:s.isRequired,transform:null}}var Lp={functionName:"model",owningModule:"@angular/core",allowedAccessLevels:[we.PublicWritable,we.PublicReadonly,we.Protected]};function ny(t,e,n){var r;if(t.value===null)return null;let s=_o([Lp],t.value,e,n);if(s===null)return null;vl(s,t);let i=s.isRequired?s.call.arguments[0]:s.call.arguments[1],o=i!==void 0?Pp(i):null,l=t.name,c=(r=o==null?void 0:o.alias)!=null?r:l;return{call:s.call,input:{isSignal:!0,transform:null,classPropertyName:l,bindingPropertyName:c,required:s.isRequired},output:{isSignal:!1,classPropertyName:l,bindingPropertyName:c+"Change"}}}var qg=[we.PublicWritable,we.PublicReadonly,we.Protected],Op=[{functionName:"output",owningModule:"@angular/core",allowedAccessLevels:qg},{functionName:"outputFromObservable",owningModule:"@angular/core/rxjs-interop",allowedAccessLevels:qg}];function ry(t,e,n){var r;if(t.value===null)return null;let s=_o(Op,t.value,e,n);if(s===null)return null;if(s.isRequired)throw new tr(re.INITIALIZER_API_NO_REQUIRED_FUNCTION,s.call,'Output does not support ".required()".');vl(s,t);let i=s.api.functionName==="output"?s.call.arguments[0]:s.call.arguments[1],o=i!==void 0?Pp(i):null,l=t.name;return{call:s.call,metadata:{isSignal:!1,classPropertyName:l,bindingPropertyName:(r=o==null?void 0:o.alias)!=null?r:l}}}var z0=["viewChild","viewChildren","contentChild","contentChildren"],Fp=z0.map(t=>({functionName:t,owningModule:"@angular/core",allowedAccessLevels:[we.PublicWritable,we.PublicReadonly,we.Protected,we.Private]})),X0=t=>t!=="contentChildren";function sy(t,e,n){if(t.value===null)return null;let r=_o(Fp,t.value,e,n);if(r===null)return null;vl(r,t);let{functionName:s}=r.api,i=s==="viewChild"||s==="contentChild",o=r.call.arguments[0];if(o===void 0)throw new tr(re.VALUE_HAS_WRONG_TYPE,r.call,"No locator specified.");let l=r.call.arguments[1];if(l!==void 0&&!yn.default.isObjectLiteralExpression(l))throw new tr(re.VALUE_HAS_WRONG_TYPE,l,"Argument needs to be an object literal.");let c=l&&Ep(l),u=c!=null&&c.has("read")?iy(c.get("read")):null,p=c!=null&&c.has("descendants")?Q0(c.get("descendants")):X0(s);return{name:s,call:r.call,metadata:{isSignal:!0,propertyName:t.name,static:!1,emitDistinctChangesOnly:!0,predicate:Y0(o,e),first:i,read:u,descendants:p}}}function Y0(t,e){let n=I0(t,e);return n!==null&&(t=n),yn.default.isStringLiteralLike(t)?[t.text]:ls(new kr.WrappedNodeExpr(t),n!==null?2:0)}function iy(t){if(yn.default.isExpressionWithTypeArguments(t)||yn.default.isParenthesizedExpression(t)||yn.default.isAsExpression(t))return iy(t.expression);if(yn.default.isPropertyAccessExpression(t)&&yn.default.isIdentifier(t.expression)||yn.default.isIdentifier(t))return new kr.WrappedNodeExpr(t);throw new tr(re.VALUE_NOT_LITERAL,t,'Query "read" option expected a literal class reference.')}function Q0(t){if(t.kind===yn.default.SyntaxKind.TrueKeyword)return!0;if(t.kind===yn.default.SyntaxKind.FalseKeyword)return!1;throw new tr(re.VALUE_HAS_WRONG_TYPE,t,'Expected "descendants" option to be a boolean literal.')}var Bp=["ViewChild","ViewChildren","ContentChild","ContentChildren"],yF=new Set(Bp);var t_=Symbol("NgOriginalFile"),Hg;(function(t){t[t.Complete=0]="Complete",t[t.Incremental=1]="Incremental"})(Hg||(Hg={}));var wF=Symbol("NgExtension");var TF=Symbol("TemplateSourceFile");var xF=Symbol("ngTemplateId"),CF=Symbol("ngNextTemplateId");var gl;(function(t){t.DIAGNOSTIC="D",t.EXPRESSION_TYPE_IDENTIFIER="T"})(gl||(gl={}));var fs;(function(t){t.DIRECTIVE="DIR",t.COMPONENT_COMPLETION="COMPCOMP",t.EVENT_PARAMETER="EP",t.VARIABLE_AS_EXPRESSION="VAE"})(fs||(fs={}));function ko(t,e){No.default.addSyntheticTrailingComment(t,No.default.SyntaxKind.MultiLineCommentTrivia,`${gl.EXPRESSION_TYPE_IDENTIFIER}:${e}`,!1)}var o_=`${gl.DIAGNOSTIC}:ignore`;function Mr(t){No.default.addSyntheticTrailingComment(t,No.default.SyntaxKind.MultiLineCommentTrivia,o_,!1)}var DF=new mn;var u_=new Set([ie.default.SyntaxKind.ParenthesizedExpression,ie.default.SyntaxKind.Identifier,ie.default.SyntaxKind.CallExpression,ie.default.SyntaxKind.NonNullExpression,ie.default.SyntaxKind.ElementAccessExpression,ie.default.SyntaxKind.PropertyAccessExpression,ie.default.SyntaxKind.ArrayLiteralExpression,ie.default.SyntaxKind.ObjectLiteralExpression,ie.default.SyntaxKind.StringLiteral,ie.default.SyntaxKind.NumericLiteral,ie.default.SyntaxKind.TrueKeyword,ie.default.SyntaxKind.FalseKeyword,ie.default.SyntaxKind.NullKeyword,ie.default.SyntaxKind.UndefinedKeyword]);function nr(t){return u_.has(t.kind)||(t=ie.default.factory.createParenthesizedExpression(t)),ie.default.factory.createParenthesizedExpression(ie.default.factory.createAsExpression(t,ie.default.factory.createKeywordTypeNode(ie.default.SyntaxKind.AnyKeyword)))}function p_(t){let e=ie.default.factory.createPropertyAccessExpression(ie.default.factory.createIdentifier("document"),"createElement");return ie.default.factory.createCallExpression(e,void 0,[ie.default.factory.createStringLiteral(t)])}function bo(t,e){ko(e,fs.VARIABLE_AS_EXPRESSION);let n=ie.default.factory.createAsExpression(ie.default.factory.createNonNullExpression(ie.default.factory.createNull()),e),r=ie.default.factory.createVariableDeclaration(t,void 0,void 0,n);return ie.default.factory.createVariableStatement(void 0,[r])}function h_(t,e){return ie.default.factory.createTypeQueryNode(ie.default.factory.createQualifiedName(t,`ngAcceptInputType_${e}`))}function Pn(t,e,n=null){let r=ie.default.factory.createVariableDeclaration(t,void 0,void 0,e);return ie.default.factory.createVariableStatement(void 0,n===null?[r]:ie.default.factory.createVariableDeclarationList([r],n))}function Gg(t,e,n=[]){let r=ie.default.factory.createPropertyAccessExpression(t,e);return ie.default.factory.createCallExpression(r,void 0,n)}function f_(t){if(t<0){let e=ie.default.factory.createNumericLiteral(Math.abs(t));return ie.default.factory.createPrefixUnaryExpression(ie.default.SyntaxKind.MinusToken,e)}return ie.default.factory.createNumericLiteral(t)}var g_=class{constructor(t,e){a(this,"typeParameters");a(this,"reflector");this.typeParameters=t,this.reflector=e}canEmit(t){return this.typeParameters===void 0?!0:this.typeParameters.every(e=>this.canEmitType(e.constraint,t)&&this.canEmitType(e.default,t))}canEmitType(t,e){return t===void 0?!0:kg(t,n=>{let r=this.resolveTypeReference(n);return r===null?!1:r instanceof us?e(r):!0})}emit(t){if(this.typeParameters===void 0)return;let e=new Rg(n=>this.translateTypeReference(n,t));return this.typeParameters.map(n=>{let r=n.constraint!==void 0?e.emitType(n.constraint):void 0,s=n.default!==void 0?e.emitType(n.default):void 0;return Ao.default.factory.updateTypeParameterDeclaration(n,n.modifiers,n.name,r,s)})}resolveTypeReference(t){let e=Ao.default.isIdentifier(t.typeName)?t.typeName:t.typeName.right,n=this.reflector.getDeclarationOfIdentifier(e);if(n===null||n.node===null)return null;if(this.isLocalTypeParameter(n.node))return t;let r=null;return typeof n.viaModule=="string"&&(r={specifier:n.viaModule,resolutionContext:t.getSourceFile().fileName}),new us(n.node,n.viaModule===cs?cs:r)}translateTypeReference(t,e){let n=this.resolveTypeReference(t);if(!(n instanceof us))return n;let r=e(n);if(r===null)return null;if(!Ao.default.isTypeReferenceNode(r))throw new Error(`Expected TypeReferenceNode for emitted reference, got ${Ao.default.SyntaxKind[r.kind]}.`);return r}isLocalTypeParameter(t){return this.typeParameters.some(e=>e===t)}},PF=[h.InputSignalBrandWriteType],Wg;(function(t){t[t.MustInline=0]="MustInline",t[t.ShouldInlineForGenericBounds=1]="ShouldInlineForGenericBounds",t[t.None=2]="None"})(Wg||(Wg={}));function y_(t,e,n){return new g_(t.typeParameters,e).canEmit(s=>n.canReferenceType(s))}function v_(t,e,n){return!y_(t,e,n)}function ke(t){return Do.default.factory.createParenthesizedExpression(t)}function ps(t){return Do.default.factory.createParenthesizedExpression(t)}function q(t,e){let n;e instanceof et?n=`${e.start},${e.end}`:n=`${e.start.offset},${e.end.offset}`,Do.default.addSyntheticTrailingComment(t,Do.default.SyntaxKind.MultiLineCommentTrivia,n,!1)}var hs=R.default.factory.createAsExpression(R.default.factory.createNumericLiteral("0"),R.default.factory.createKeywordTypeNode(R.default.SyntaxKind.AnyKeyword)),Ap=R.default.factory.createIdentifier("undefined"),w_=new Map([["+",R.default.SyntaxKind.PlusToken],["-",R.default.SyntaxKind.MinusToken]]),T_=new Map([["+",R.default.SyntaxKind.PlusToken],["-",R.default.SyntaxKind.MinusToken],["<",R.default.SyntaxKind.LessThanToken],[">",R.default.SyntaxKind.GreaterThanToken],["<=",R.default.SyntaxKind.LessThanEqualsToken],[">=",R.default.SyntaxKind.GreaterThanEqualsToken],["==",R.default.SyntaxKind.EqualsEqualsToken],["===",R.default.SyntaxKind.EqualsEqualsEqualsToken],["*",R.default.SyntaxKind.AsteriskToken],["/",R.default.SyntaxKind.SlashToken],["%",R.default.SyntaxKind.PercentToken],["!=",R.default.SyntaxKind.ExclamationEqualsToken],["!==",R.default.SyntaxKind.ExclamationEqualsEqualsToken],["||",R.default.SyntaxKind.BarBarToken],["&&",R.default.SyntaxKind.AmpersandAmpersandToken],["&",R.default.SyntaxKind.AmpersandToken],["|",R.default.SyntaxKind.BarToken],["??",R.default.SyntaxKind.QuestionQuestionToken]]);function x_(t,e,n){return new C_(e,n).translate(t)}var C_=class{constructor(t,e){a(this,"maybeResolve");a(this,"config");this.maybeResolve=t,this.config=e}translate(t){if(t instanceof Ce&&(t=t.ast),t instanceof ze){let n=R.default.factory.createIdentifier("undefined");return q(n,t.sourceSpan),n}let e=this.maybeResolve(t);return e!==null?e:t.visit(this)}visitUnary(t){let e=this.translate(t.expr),n=w_.get(t.operator);if(n===void 0)throw new Error(`Unsupported Unary.operator: ${t.operator}`);let r=ke(R.default.factory.createPrefixUnaryExpression(n,e));return q(r,t.sourceSpan),r}visitBinary(t){let e=ke(this.translate(t.left)),n=ke(this.translate(t.right)),r=T_.get(t.operation);if(r===void 0)throw new Error(`Unsupported Binary.operation: ${t.operation}`);let s=R.default.factory.createBinaryExpression(e,r,n);return q(s,t.sourceSpan),s}visitChain(t){let e=t.expressions.map(r=>this.translate(r)),n=ke(R.default.factory.createCommaListExpression(e));return q(n,t.sourceSpan),n}visitConditional(t){let e=this.translate(t.condition),n=this.translate(t.trueExp),r=ps(this.translate(t.falseExp)),s=R.default.factory.createParenthesizedExpression(R.default.factory.createConditionalExpression(e,void 0,n,void 0,r));return q(s,t.sourceSpan),s}visitImplicitReceiver(t){throw new Error("Method not implemented.")}visitThisReceiver(t){throw new Error("Method not implemented.")}visitInterpolation(t){return t.expressions.reduce((e,n)=>R.default.factory.createBinaryExpression(e,R.default.SyntaxKind.PlusToken,ps(this.translate(n))),R.default.factory.createStringLiteral(""))}visitKeyedRead(t){let e=ke(this.translate(t.receiver)),n=this.translate(t.key),r=R.default.factory.createElementAccessExpression(e,n);return q(r,t.sourceSpan),r}visitKeyedWrite(t){let e=ke(this.translate(t.receiver)),n=R.default.factory.createElementAccessExpression(e,this.translate(t.key)),r=ps(this.translate(t.value)),s=ke(R.default.factory.createBinaryExpression(n,R.default.SyntaxKind.EqualsToken,r));return q(s,t.sourceSpan),s}visitLiteralArray(t){let e=t.expressions.map(s=>this.translate(s)),n=R.default.factory.createArrayLiteralExpression(e),r=this.config.strictLiteralTypes?n:nr(n);return q(r,t.sourceSpan),r}visitLiteralMap(t){let e=t.keys.map(({key:s},i)=>{let o=this.translate(t.values[i]);return R.default.factory.createPropertyAssignment(R.default.factory.createStringLiteral(s),o)}),n=R.default.factory.createObjectLiteralExpression(e,!0),r=this.config.strictLiteralTypes?n:nr(n);return q(r,t.sourceSpan),r}visitLiteralPrimitive(t){let e;if(t.value===void 0)e=R.default.factory.createIdentifier("undefined");else if(t.value===null)e=R.default.factory.createNull();else if(typeof t.value=="string")e=R.default.factory.createStringLiteral(t.value);else if(typeof t.value=="number")e=f_(t.value);else if(typeof t.value=="boolean")e=t.value?R.default.factory.createTrue():R.default.factory.createFalse();else throw Error(`Unsupported AST value of type ${typeof t.value}`);return q(e,t.sourceSpan),e}visitNonNullAssert(t){let e=ke(this.translate(t.expression)),n=R.default.factory.createNonNullExpression(e);return q(n,t.sourceSpan),n}visitPipe(t){throw new Error("Method not implemented.")}visitPrefixNot(t){let e=ke(this.translate(t.expression)),n=R.default.factory.createLogicalNot(e);return q(n,t.sourceSpan),n}visitTypeofExpression(t){let e=ke(this.translate(t.expression)),n=R.default.factory.createTypeOfExpression(e);return q(n,t.sourceSpan),n}visitPropertyRead(t){let e=ke(this.translate(t.receiver)),n=R.default.factory.createPropertyAccessExpression(e,t.name);q(n,t.nameSpan);let r=ke(n);return q(r,t.sourceSpan),r}visitPropertyWrite(t){let e=ke(this.translate(t.receiver)),n=R.default.factory.createPropertyAccessExpression(e,t.name);q(n,t.nameSpan);let r=ke(n);q(r,t.sourceSpan);let s=ps(this.translate(t.value)),i=ke(R.default.factory.createBinaryExpression(r,R.default.SyntaxKind.EqualsToken,s));return q(i,t.sourceSpan),i}visitSafePropertyRead(t){let e,n=ke(this.translate(t.receiver));if(this.config.strictSafeNavigationTypes){let r=R.default.factory.createPropertyAccessExpression(R.default.factory.createNonNullExpression(n),t.name);q(r,t.nameSpan),e=R.default.factory.createParenthesizedExpression(R.default.factory.createConditionalExpression(hs,void 0,r,void 0,Ap))}else if(fl.veWillInferAnyFor(t))e=R.default.factory.createPropertyAccessExpression(nr(n),t.name);else{let r=R.default.factory.createPropertyAccessExpression(R.default.factory.createNonNullExpression(n),t.name);q(r,t.nameSpan),e=nr(r)}return q(e,t.sourceSpan),e}visitSafeKeyedRead(t){let e=ke(this.translate(t.receiver)),n=this.translate(t.key),r;if(this.config.strictSafeNavigationTypes){let s=R.default.factory.createElementAccessExpression(R.default.factory.createNonNullExpression(e),n);q(s,t.sourceSpan),r=R.default.factory.createParenthesizedExpression(R.default.factory.createConditionalExpression(hs,void 0,s,void 0,Ap))}else if(fl.veWillInferAnyFor(t))r=R.default.factory.createElementAccessExpression(nr(e),n);else{let s=R.default.factory.createElementAccessExpression(R.default.factory.createNonNullExpression(e),n);q(s,t.sourceSpan),r=nr(s)}return q(r,t.sourceSpan),r}visitCall(t){let e=t.args.map(i=>this.translate(i)),n,r=t.receiver;if(r instanceof Me){let i=this.maybeResolve(r);if(i!==null)n=i;else{let o=ke(this.translate(r.receiver));n=R.default.factory.createPropertyAccessExpression(o,r.name),q(n,r.nameSpan)}}else n=this.translate(r);let s;return t.receiver instanceof yt||t.receiver instanceof wr?s=this.convertToSafeCall(t,n,e):s=R.default.factory.createCallExpression(n,void 0,e),q(s,t.sourceSpan),s}visitSafeCall(t){let e=t.args.map(s=>this.translate(s)),n=ke(this.translate(t.receiver)),r=this.convertToSafeCall(t,n,e);return q(r,t.sourceSpan),r}convertToSafeCall(t,e,n){if(this.config.strictSafeNavigationTypes){let r=R.default.factory.createCallExpression(R.default.factory.createNonNullExpression(e),void 0,n);return R.default.factory.createParenthesizedExpression(R.default.factory.createConditionalExpression(hs,void 0,r,void 0,Ap))}return fl.veWillInferAnyFor(t)?R.default.factory.createCallExpression(nr(e),void 0,n):nr(R.default.factory.createCallExpression(R.default.factory.createNonNullExpression(e),void 0,n))}},$p=class{static veWillInferAnyFor(t){let e=$p.SINGLETON;return t instanceof un?t.visit(e):t.receiver.visit(e)}visitUnary(t){return t.expr.visit(this)}visitBinary(t){return t.left.visit(this)||t.right.visit(this)}visitChain(t){return!1}visitConditional(t){return t.condition.visit(this)||t.trueExp.visit(this)||t.falseExp.visit(this)}visitCall(t){return!0}visitSafeCall(t){return!1}visitImplicitReceiver(t){return!1}visitThisReceiver(t){return!1}visitInterpolation(t){return t.expressions.some(e=>e.visit(this))}visitKeyedRead(t){return!1}visitKeyedWrite(t){return!1}visitLiteralArray(t){return!0}visitLiteralMap(t){return!0}visitLiteralPrimitive(t){return!1}visitPipe(t){return!0}visitPrefixNot(t){return t.expression.visit(this)}visitTypeofExpression(t){return t.expression.visit(this)}visitNonNullAssert(t){return t.expression.visit(this)}visitPropertyRead(t){return!1}visitPropertyWrite(t){return!1}visitSafePropertyRead(t){return!1}visitSafeKeyedRead(t){return!1}},fl=$p;Pl(fl,"SINGLETON",new $p);var jg;(function(t){t[t.UseEmitter=0]="UseEmitter",t[t.CopyClassNodes=1]="CopyClassNodes",t[t.FallbackToAny=2]="FallbackToAny"})(jg||(jg={}));var De=class{circularFallback(){return G_}},A_=class extends De{constructor(e,n,r){super();a(this,"tcb");a(this,"scope");a(this,"element");this.tcb=e,this.scope=n,this.element=r}get optional(){return!0}execute(){let e=this.tcb.allocateId(),n=p_(this.element.name);return q(n,this.element.startSourceSpan||this.element.sourceSpan),this.scope.addStatement(Pn(e,n)),e}},I_=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"scope");a(this,"template");a(this,"variable");this.tcb=e,this.scope=n,this.template=r,this.variable=s}get optional(){return!1}execute(){let e=this.scope.resolve(this.template),n=this.tcb.allocateId(),r=S.default.factory.createPropertyAccessExpression(e,this.variable.value||"$implicit");q(n,this.variable.keySpan);let s;return this.variable.valueSpan!==void 0?(q(r,this.variable.valueSpan),s=Pn(n,ps(r))):s=Pn(n,r),q(s.declarationList.declarations[0],this.variable.sourceSpan),this.scope.addStatement(s),n}},N_=class extends De{constructor(e,n){super();a(this,"tcb");a(this,"scope");a(this,"optional",!0);this.tcb=e,this.scope=n}execute(){let e=this.tcb.allocateId(),n=S.default.factory.createKeywordTypeNode(S.default.SyntaxKind.AnyKeyword);return this.scope.addStatement(bo(e,n)),e}},b_=class extends De{constructor(e,n,r){super();a(this,"tcb");a(this,"scope");a(this,"node");a(this,"optional",!1);this.tcb=e,this.scope=n,this.node=r}execute(){let e=this.tcb.allocateId();q(e,this.node.nameSpan);let n=$t(this.node.value,this.tcb,this.scope),r=Pn(e,ps(n),S.default.NodeFlags.Const);return q(r.declarationList.declarations[0],this.node.sourceSpan),this.scope.addStatement(r),e}},D_=class extends De{constructor(e,n,r){super();a(this,"tcb");a(this,"scope");a(this,"template");this.tcb=e,this.scope=n,this.template=r}get optional(){return!1}execute(){let e=[],n=this.tcb.boundTarget.getDirectivesOfNode(this.template);if(n!==null)for(let l of n){let c=this.scope.resolve(this.template,l),u=this.tcb.env.reference(l.ref);if(l.ngTemplateGuards.forEach(p=>{let d=this.template.inputs.find(m=>m.name===p.inputName)||this.template.templateAttrs.find(m=>m instanceof Ft&&m.name===p.inputName);if(d!==void 0){let m=$t(d.value,this.tcb,this.scope);if(Mr(m),p.type==="binding")e.push(m);else{let g=Gg(u,`ngTemplateGuard_${p.inputName}`,[c,m]);q(g,d.value.sourceSpan),e.push(g)}}}),l.hasNgTemplateContextGuard)if(this.tcb.env.config.applyTemplateContextGuards){let p=this.scope.resolve(this.template),d=Gg(u,"ngTemplateContextGuard",[c,p]);q(d,this.template.sourceSpan),e.push(d)}else this.template.variables.length>0&&this.tcb.env.config.suggestionsForSuboptimalTypeInference&&this.tcb.oobRecorder.suboptimalTypeInference(this.tcb.id,this.template.variables)}let r=null;e.length>0&&(r=e.reduce((l,c)=>S.default.factory.createBinaryExpression(l,S.default.SyntaxKind.AmpersandAmpersandToken,c),e.pop()));let i=pi.forNodes(this.tcb,this.scope,this.template,this.template.children,r).render();if(i.length===0)return null;let o=S.default.factory.createBlock(i);return r!==null&&(o=S.default.factory.createIfStatement(r,o)),this.scope.addStatement(o),null}},Co=class extends De{constructor(e,n,r){super();a(this,"tcb");a(this,"scope");a(this,"expression");this.tcb=e,this.scope=n,this.expression=r}get optional(){return!1}execute(){let e=$t(this.expression,this.tcb,this.scope);return this.scope.addStatement(S.default.factory.createExpressionStatement(e)),null}},oy=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"scope");a(this,"node");a(this,"dir");this.tcb=e,this.scope=n,this.node=r,this.dir=s}get optional(){return!0}execute(){let e=this.dir.ref,n=this.tcb.env.referenceType(this.dir.ref),r;if(this.dir.isGeneric===!1||e.node.typeParameters===void 0)r=n;else{if(!S.default.isTypeReferenceNode(n))throw new Error(`Expected TypeReferenceNode when referencing the type for ${this.dir.ref.debugName}`);let i=e.node.typeParameters.map(()=>S.default.factory.createKeywordTypeNode(S.default.SyntaxKind.AnyKeyword));r=S.default.factory.createTypeReferenceNode(n.typeName,i)}let s=this.tcb.allocateId();return ko(s,fs.DIRECTIVE),q(s,this.node.startSourceSpan||this.node.sourceSpan),this.scope.addStatement(bo(s,r)),s}},__=class extends oy{execute(){let t=this.dir.ref;if(this.dir.isGeneric)throw new Error(`Assertion Error: expected ${t.debugName} not to be generic.`);return super.execute()}},k_=class extends oy{execute(){let t=this.dir.ref;if(t.node.typeParameters===void 0)throw new Error(`Assertion Error: expected typeParameters when creating a declaration for ${t.debugName}`);return super.execute()}},Kg=class extends De{constructor(e,n,r,s,i){super();a(this,"tcb");a(this,"scope");a(this,"node");a(this,"host");a(this,"target");a(this,"optional",!0);this.tcb=e,this.scope=n,this.node=r,this.host=s,this.target=i}execute(){let e=this.tcb.allocateId(),n=this.target instanceof he||this.target instanceof de?this.scope.resolve(this.target):this.scope.resolve(this.host,this.target);return this.target instanceof de&&!this.tcb.env.config.checkTypeOfDomReferences||!this.tcb.env.config.checkTypeOfNonDomReferences?n=S.default.factory.createAsExpression(n,S.default.factory.createKeywordTypeNode(S.default.SyntaxKind.AnyKeyword)):this.target instanceof he&&(n=S.default.factory.createAsExpression(n,S.default.factory.createKeywordTypeNode(S.default.SyntaxKind.AnyKeyword)),n=S.default.factory.createAsExpression(n,this.tcb.env.referenceExternalType("@angular/core","TemplateRef",[_r])),n=S.default.factory.createParenthesizedExpression(n)),q(n,this.node.sourceSpan),q(e,this.node.keySpan),this.scope.addStatement(Pn(e,n)),e}},R_=class extends De{constructor(e,n){super();a(this,"tcb");a(this,"scope");a(this,"optional",!0);this.tcb=e,this.scope=n}execute(){let e=this.tcb.allocateId();return this.scope.addStatement(Pn(e,hs)),e}},P_=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"scope");a(this,"node");a(this,"dir");this.tcb=e,this.scope=n,this.node=r,this.dir=s}get optional(){return!0}execute(){let e=this.tcb.allocateId();ko(e,fs.DIRECTIVE),q(e,this.node.startSourceSpan||this.node.sourceSpan);let n=new Map,r=ly(this.dir,this.node);for(let i of r)if(!(!this.tcb.env.config.checkTypeOfAttributes&&i.attribute instanceof Ot))for(let{fieldName:o,isTwoWayBinding:l}of i.inputs){if(n.has(o))continue;let c=cy(i.attribute,this.tcb,this.scope);n.set(o,{type:"binding",field:o,expression:c,sourceSpan:i.attribute.sourceSpan,isTwoWayBinding:l})}for(let{classPropertyName:i}of this.dir.inputs)n.has(i)||n.set(i,{type:"unset",field:i});let s=W_(this.dir,this.tcb,Array.from(n.values()));return Mr(s),this.scope.addStatement(Pn(e,s)),e}circularFallback(){return new L_(this.tcb,this.scope,this.node,this.dir)}},M_=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"scope");a(this,"node");a(this,"dir");this.tcb=e,this.scope=n,this.node=r,this.dir=s}get optional(){return!1}execute(){let e=null,n=ly(this.dir,this.node),r=new Set;for(let s of n){let i=Vp(cy(s.attribute,this.tcb,this.scope),this.tcb),o=ke(i);for(let{fieldName:l,required:c,transformType:u,isSignal:p,isTwoWayBinding:d}of s.inputs){let m;if(c&&r.add(l),this.dir.coercedInputFields.has(l)){let g;if(u!==null)g=this.tcb.env.referenceTransplantedType(new Ms(u));else{let w=this.tcb.env.referenceType(this.dir.ref);if(!S.default.isTypeReferenceNode(w))throw new Error(`Expected TypeReferenceNode from reference to ${this.dir.ref.debugName}`);g=h_(w.typeName,l)}let E=this.tcb.allocateId();this.scope.addStatement(bo(E,g)),m=E}else{if(this.dir.undeclaredInputFields.has(l))continue;if(!this.tcb.env.config.honorAccessModifiersForInputBindings&&this.dir.restrictedInputFields.has(l)){e===null&&(e=this.scope.resolve(this.node,this.dir));let g=this.tcb.allocateId(),E=this.tcb.env.referenceType(this.dir.ref);if(!S.default.isTypeReferenceNode(E))throw new Error(`Expected TypeReferenceNode from reference to ${this.dir.ref.debugName}`);let w=S.default.factory.createIndexedAccessTypeNode(S.default.factory.createTypeQueryNode(e),S.default.factory.createLiteralTypeNode(S.default.factory.createStringLiteral(l))),x=bo(g,w);this.scope.addStatement(x),m=g}else e===null&&(e=this.scope.resolve(this.node,this.dir)),m=this.dir.stringLiteralInputFields.has(l)?S.default.factory.createElementAccessExpression(e,S.default.factory.createStringLiteral(l)):S.default.factory.createPropertyAccessExpression(e,S.default.factory.createIdentifier(l))}if(p){let g=this.tcb.env.referenceExternalSymbol(h.InputSignalBrandWriteType.moduleName,h.InputSignalBrandWriteType.name);if(!S.default.isIdentifier(g)&&!S.default.isPropertyAccessExpression(g))throw new Error(`Expected identifier or property access for reference to ${h.InputSignalBrandWriteType.name}`);m=S.default.factory.createElementAccessExpression(m,g)}s.attribute.keySpan!==void 0&&q(m,s.attribute.keySpan),d&&this.tcb.env.config.allowSignalsInTwoWayBindings&&(o=qp(o,this.tcb)),o=S.default.factory.createBinaryExpression(m,S.default.SyntaxKind.EqualsToken,o)}q(o,s.attribute.sourceSpan),!this.tcb.env.config.checkTypeOfAttributes&&s.attribute instanceof Ot&&Mr(o),this.scope.addStatement(S.default.factory.createExpressionStatement(o))}return this.checkRequiredInputs(r),null}checkRequiredInputs(e){let n=[];for(let r of this.dir.inputs)r.required&&!e.has(r.classPropertyName)&&n.push(r.bindingPropertyName);n.length>0&&this.tcb.oobRecorder.missingRequiredInputs(this.tcb.id,this.node,this.dir.name,this.dir.isComponent,n)}},L_=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"scope");a(this,"node");a(this,"dir");this.tcb=e,this.scope=n,this.node=r,this.dir=s}get optional(){return!1}execute(){let e=this.tcb.allocateId(),n=this.tcb.env.typeCtorFor(this.dir),r=S.default.factory.createCallExpression(n,void 0,[S.default.factory.createNonNullExpression(S.default.factory.createNull())]);return this.scope.addStatement(Pn(e,r)),e}},Ip=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"element");a(this,"checkElement");a(this,"claimedInputs");this.tcb=e,this.element=n,this.checkElement=r,this.claimedInputs=s}get optional(){return!1}execute(){var e;this.checkElement&&this.tcb.domSchemaChecker.checkElement(this.tcb.id,this.element,this.tcb.schemas,this.tcb.hostIsStandalone);for(let n of this.element.inputs){let r=n.type===J.Property||n.type===J.TwoWay;if(!(r&&this.claimedInputs.has(n.name))&&r&&n.name!=="style"&&n.name!=="class"){let s=(e=ay.get(n.name))!=null?e:n.name;this.tcb.domSchemaChecker.checkProperty(this.tcb.id,this.element,s,n.sourceSpan,this.tcb.schemas,this.tcb.hostIsStandalone)}}return null}},O_=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"element");a(this,"ngContentSelectors");a(this,"componentName");a(this,"category");a(this,"optional",!1);this.tcb=e,this.element=n,this.ngContentSelectors=r,this.componentName=s,this.category=e.env.config.controlFlowPreventingContentProjection==="error"?S.default.DiagnosticCategory.Error:S.default.DiagnosticCategory.Warning}execute(){let e=this.findPotentialControlFlowNodes();if(e.length>0){let n=new gr;for(let r of this.ngContentSelectors)r!=="*"&&n.addSelectables(sn.parse(r),r);for(let r of e)for(let s of r.children)(s instanceof de||s instanceof he)&&n.match($u(s),(i,o)=>{this.tcb.oobRecorder.controlFlowPreventingContentProjection(this.tcb.id,this.category,s,this.componentName,o,r,this.tcb.hostPreserveWhitespaces)})}return null}findPotentialControlFlowNodes(){let e=[];for(let n of this.element.children)if(n instanceof bn)this.shouldCheck(n)&&e.push(n),n.empty!==null&&this.shouldCheck(n.empty)&&e.push(n.empty);else if(n instanceof Zr)for(let r of n.branches)this.shouldCheck(r)&&e.push(r);else if(n instanceof Jr)for(let r of n.cases)this.shouldCheck(r)&&e.push(r);return e}shouldCheck(e){if(e.children.length<2)return!1;let n=!1;for(let r of e.children)if(!(r instanceof nn)||this.tcb.hostPreserveWhitespaces||r.value.trim().length>0){if(n)return!0;n=!0}return!1}},ay=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),zg=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"scope");a(this,"element");a(this,"claimedInputs");this.tcb=e,this.scope=n,this.element=r,this.claimedInputs=s}get optional(){return!1}execute(){var e;let n=null;for(let r of this.element.inputs){let s=r.type===J.Property||r.type===J.TwoWay;if(s&&this.claimedInputs.has(r.name))continue;let i=Vp($t(r.value,this.tcb,this.scope),this.tcb);if(this.tcb.env.config.checkTypeOfDomBindings&&s)if(r.name!=="style"&&r.name!=="class"){n===null&&(n=this.scope.resolve(this.element));let o=(e=ay.get(r.name))!=null?e:r.name,l=S.default.factory.createElementAccessExpression(n,S.default.factory.createStringLiteral(o)),c=S.default.factory.createBinaryExpression(l,S.default.SyntaxKind.EqualsToken,ke(i));q(c,r.sourceSpan),this.scope.addStatement(S.default.factory.createExpressionStatement(c))}else this.scope.addStatement(S.default.factory.createExpressionStatement(i));else this.scope.addStatement(S.default.factory.createExpressionStatement(i))}return null}},F_=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"scope");a(this,"node");a(this,"dir");this.tcb=e,this.scope=n,this.node=r,this.dir=s}get optional(){return!1}execute(){let e=null,n=this.dir.outputs;for(let r of this.node.outputs){if(r.type===Oe.Animation||!n.hasBindingPropertyName(r.name))continue;if(this.tcb.env.config.checkTypeOfOutputEvents&&r.name.endsWith("Change")){let o=r.name.slice(0,-6);uy(o,r,this.node.inputs,this.tcb)}let s=n.getByBindingPropertyName(r.name)[0].classPropertyName;e===null&&(e=this.scope.resolve(this.node,this.dir));let i=S.default.factory.createElementAccessExpression(e,S.default.factory.createStringLiteral(s));if(q(i,r.keySpan),this.tcb.env.config.checkTypeOfOutputEvents){let o=Io(r,this.tcb,this.scope,0),l=S.default.factory.createPropertyAccessExpression(i,"subscribe"),c=S.default.factory.createCallExpression(l,void 0,[o]);q(c,r.sourceSpan),this.scope.addStatement(S.default.factory.createExpressionStatement(c))}else{this.scope.addStatement(S.default.factory.createExpressionStatement(i));let o=Io(r,this.tcb,this.scope,1);this.scope.addStatement(S.default.factory.createExpressionStatement(o))}}return null}},Xg=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"scope");a(this,"element");a(this,"claimedOutputs");this.tcb=e,this.scope=n,this.element=r,this.claimedOutputs=s}get optional(){return!1}execute(){let e=null;for(let n of this.element.outputs)if(!this.claimedOutputs.has(n.name)){if(this.tcb.env.config.checkTypeOfOutputEvents&&n.name.endsWith("Change")){let r=n.name.slice(0,-6);if(uy(r,n,this.element.inputs,this.tcb))continue}if(n.type===Oe.Animation){let r=this.tcb.env.config.checkTypeOfAnimationEvents?this.tcb.env.referenceExternalType("@angular/animations","AnimationEvent"):1,s=Io(n,this.tcb,this.scope,r);this.scope.addStatement(S.default.factory.createExpressionStatement(s))}else if(this.tcb.env.config.checkTypeOfDomEvents){let r=Io(n,this.tcb,this.scope,0);e===null&&(e=this.scope.resolve(this.element));let s=S.default.factory.createPropertyAccessExpression(e,"addEventListener");q(s,n.keySpan);let i=S.default.factory.createCallExpression(s,void 0,[S.default.factory.createStringLiteral(n.name),r]);q(i,n.sourceSpan),this.scope.addStatement(S.default.factory.createExpressionStatement(i))}else{let r=Io(n,this.tcb,this.scope,1);this.scope.addStatement(S.default.factory.createExpressionStatement(r))}}return null}},B_=class extends De{constructor(e){super();a(this,"scope");a(this,"optional",!1);this.scope=e}execute(){let e=S.default.factory.createThis(),n=S.default.factory.createPropertyAccessExpression(e,"");return Mr(n),ko(n,fs.COMPONENT_COMPLETION),this.scope.addStatement(S.default.factory.createExpressionStatement(n)),null}},$_=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"scope");a(this,"initializer");a(this,"variable");this.tcb=e,this.scope=n,this.initializer=r,this.variable=s}get optional(){return!1}execute(){let e=this.tcb.allocateId();q(e,this.variable.keySpan);let n=Pn(e,ps(this.initializer));return q(n.declarationList.declarations[0],this.variable.sourceSpan),this.scope.addStatement(n),e}},U_=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"scope");a(this,"type");a(this,"variable");a(this,"optional",!0);this.tcb=e,this.scope=n,this.type=r,this.variable=s}execute(){let e=this.tcb.allocateId();q(e,this.variable.keySpan);let n=bo(e,this.type);return q(n.declarationList.declarations[0],this.variable.sourceSpan),this.scope.addStatement(n),e}},V_=class extends De{constructor(e,n,r){super();a(this,"tcb");a(this,"scope");a(this,"block");a(this,"expressionScopes",new Map);this.tcb=e,this.scope=n,this.block=r}get optional(){return!1}execute(){let e=this.generateBranch(0);return e&&this.scope.addStatement(e),null}generateBranch(e){let n=this.block.branches[e];if(!n)return;if(n.expression===null){let o=this.getBranchScope(this.scope,n,e);return S.default.factory.createBlock(o.render())}let r=pi.forNodes(this.tcb,this.scope,n,[],null);r.render().forEach(o=>this.scope.addStatement(o)),this.expressionScopes.set(n,r);let s=$t(n.expression,this.tcb,this.scope);n.expressionAlias!==null&&(s=S.default.factory.createBinaryExpression(S.default.factory.createParenthesizedExpression(s),S.default.SyntaxKind.AmpersandAmpersandToken,r.resolve(n.expressionAlias)));let i=this.getBranchScope(r,n,e);return S.default.factory.createIfStatement(s,S.default.factory.createBlock(i.render()),this.generateBranch(e+1))}getBranchScope(e,n,r){let s=this.tcb.env.config.checkControlFlowBodies;return pi.forNodes(this.tcb,e,null,s?n.children:[],s?this.generateBranchGuard(r):null)}generateBranchGuard(e){let n=null;for(let r=0;r<=e;r++){let s=this.block.branches[r];if(s.expression===null)continue;if(!this.expressionScopes.has(s))throw new Error(`Could not determine expression scope of branch at index ${r}`);let i=this.expressionScopes.get(s),o;o=$t(s.expression,this.tcb,i),s.expressionAlias!==null&&(o=S.default.factory.createBinaryExpression(S.default.factory.createParenthesizedExpression(o),S.default.SyntaxKind.AmpersandAmpersandToken,i.resolve(s.expressionAlias))),Mr(o);let l=r===e?o:S.default.factory.createPrefixUnaryExpression(S.default.SyntaxKind.ExclamationToken,S.default.factory.createParenthesizedExpression(o));n=n===null?l:S.default.factory.createBinaryExpression(n,S.default.SyntaxKind.AmpersandAmpersandToken,l)}return n}},q_=class extends De{constructor(e,n,r){super();a(this,"tcb");a(this,"scope");a(this,"block");this.tcb=e,this.scope=n,this.block=r}get optional(){return!1}execute(){let e=$t(this.block.expression,this.tcb,this.scope),n=this.block.cases.map(r=>{let s=this.tcb.env.config.checkControlFlowBodies,i=pi.forNodes(this.tcb,this.scope,null,s?r.children:[],s?this.generateGuard(r,e):null),o=[...i.render(),S.default.factory.createBreakStatement()];return r.expression===null?S.default.factory.createDefaultClause(o):S.default.factory.createCaseClause($t(r.expression,this.tcb,i),o)});return this.scope.addStatement(S.default.factory.createSwitchStatement(e,S.default.factory.createCaseBlock(n))),null}generateGuard(e,n){if(e.expression!==null){let s=$t(e.expression,this.tcb,this.scope);return Mr(s),S.default.factory.createBinaryExpression(n,S.default.SyntaxKind.EqualsEqualsEqualsToken,s)}let r=null;for(let s of this.block.cases){if(s.expression===null)continue;let i=$t(s.expression,this.tcb,this.scope);Mr(i);let o=S.default.factory.createBinaryExpression(n,S.default.SyntaxKind.ExclamationEqualsEqualsToken,i);r===null?r=o:r=S.default.factory.createBinaryExpression(r,S.default.SyntaxKind.AmpersandAmpersandToken,o)}return r}},H_=class extends De{constructor(e,n,r){super();a(this,"tcb");a(this,"scope");a(this,"block");this.tcb=e,this.scope=n,this.block=r}get optional(){return!1}execute(){let e=pi.forNodes(this.tcb,this.scope,this.block,this.tcb.env.config.checkControlFlowBodies?this.block.children:[],null),n=e.resolve(this.block.item);if(!S.default.isIdentifier(n))throw new Error(`Could not resolve for loop variable ${this.block.item.name} to an identifier`);let r=S.default.factory.createVariableDeclarationList([S.default.factory.createVariableDeclaration(n)],S.default.NodeFlags.Const);q(r,this.block.item.keySpan);let s=S.default.factory.createNonNullExpression($t(this.block.expression,this.tcb,this.scope)),o=new z_(this.tcb,e,this.block).translate(this.block.trackBy),l=[...e.render(),S.default.factory.createExpressionStatement(o)];return this.scope.addStatement(S.default.factory.createForOfStatement(void 0,r,s,S.default.factory.createBlock(l))),null}},G_=S.default.factory.createNonNullExpression(S.default.factory.createNull());var dl=class{constructor(t,e=null,n=null){a(this,"tcb");a(this,"parent");a(this,"guard");a(this,"opQueue",[]);a(this,"elementOpMap",new Map);a(this,"directiveOpMap",new Map);a(this,"referenceOpMap",new Map);a(this,"templateCtxOpMap",new Map);a(this,"varMap",new Map);a(this,"letDeclOpMap",new Map);a(this,"statements",[]);this.tcb=t,this.parent=e,this.guard=n}static forNodes(t,e,n,r,s){let i=new dl(t,e,s);if(e===null&&t.env.config.enableTemplateTypeChecker&&i.opQueue.push(new B_(i)),n instanceof he){let o=new Map;for(let l of n.variables){if(!o.has(l.name))o.set(l.name,l);else{let c=o.get(l.name);t.oobRecorder.duplicateTemplateVar(t.id,l,c)}this.registerVariable(i,l,new I_(t,i,n,l))}}else if(n instanceof Un){let{expression:o,expressionAlias:l}=n;o!==null&&l!==null&&this.registerVariable(i,l,new $_(t,i,$t(o,t,i),l))}else if(n instanceof bn){let o=t.allocateId();q(o,n.item.sourceSpan),i.varMap.set(n.item,o);for(let l of n.contextVariables){if(!this.forLoopContextVariableTypes.has(l.value))throw new Error(`Unrecognized for loop context variable ${l.name}`);let c=S.default.factory.createKeywordTypeNode(this.forLoopContextVariableTypes.get(l.value));this.registerVariable(i,l,new U_(t,i,c,l))}}for(let o of r)i.appendNode(o);for(let o of i.varMap.keys())dl.checkConflictingLet(i,o);for(let o of i.referenceOpMap.keys())dl.checkConflictingLet(i,o);return i}static registerVariable(t,e,n){let r=t.opQueue.push(n)-1;t.varMap.set(e,r)}resolve(t,e){let n=this.resolveLocal(t,e);if(n!==null){let r;if(S.default.isIdentifier(n))r=S.default.factory.createIdentifier(n.text);else if(S.default.isNonNullExpression(n))r=S.default.factory.createNonNullExpression(n.expression);else throw new Error(`Could not resolve ${t} to an Identifier or a NonNullExpression`);return S.default.setOriginalNode(r,n),r.parent=r.parent,S.default.setSyntheticTrailingComments(r,[])}else{if(this.parent!==null)return this.parent.resolve(t,e);throw new Error(`Could not resolve ${t} / ${e}`)}}addStatement(t){this.statements.push(t)}render(){for(let t=0;t<this.opQueue.length;t++){let e=!this.tcb.env.config.enableTemplateTypeChecker;this.executeOp(t,e)}return this.statements}guards(){let t=null;return this.parent!==null&&(t=this.parent.guards()),this.guard===null?t:t===null?this.guard:S.default.factory.createBinaryExpression(t,S.default.SyntaxKind.AmpersandAmpersandToken,this.guard)}isLocal(t){return t instanceof vt?this.varMap.has(t):t instanceof it?this.letDeclOpMap.has(t.name):this.referenceOpMap.has(t)}resolveLocal(t,e){if(t instanceof Dn&&this.referenceOpMap.has(t))return this.resolveOp(this.referenceOpMap.get(t));if(t instanceof it&&this.letDeclOpMap.has(t.name))return this.resolveOp(this.letDeclOpMap.get(t.name).opIndex);if(t instanceof vt&&this.varMap.has(t)){let n=this.varMap.get(t);return typeof n=="number"?this.resolveOp(n):n}else{if(t instanceof he&&e===void 0&&this.templateCtxOpMap.has(t))return this.resolveOp(this.templateCtxOpMap.get(t));if((t instanceof de||t instanceof he)&&e!==void 0&&this.directiveOpMap.has(t)){let n=this.directiveOpMap.get(t);return n.has(e)?this.resolveOp(n.get(e)):null}else return t instanceof de&&this.elementOpMap.has(t)?this.resolveOp(this.elementOpMap.get(t)):null}}resolveOp(t){let e=this.executeOp(t,!1);if(e===null)throw new Error("Error resolving operation, got null");return e}executeOp(t,e){let n=this.opQueue[t];if(!(n instanceof De))return n;if(e&&n.optional)return null;this.opQueue[t]=n.circularFallback();let r=n.execute();return this.opQueue[t]=r,r}appendNode(t){if(t instanceof de){let e=this.opQueue.push(new A_(this.tcb,this,t))-1;this.elementOpMap.set(t,e),this.tcb.env.config.controlFlowPreventingContentProjection!=="suppress"&&this.appendContentProjectionCheckOp(t),this.appendDirectivesAndInputsOfNode(t),this.appendOutputsOfNode(t),this.appendChildren(t),this.checkAndAppendReferencesOfNode(t)}else if(t instanceof he){this.appendDirectivesAndInputsOfNode(t),this.appendOutputsOfNode(t);let e=this.opQueue.push(new N_(this.tcb,this))-1;this.templateCtxOpMap.set(t,e),this.tcb.env.config.checkTemplateBodies?this.opQueue.push(new D_(this.tcb,this,t)):this.tcb.env.config.alwaysCheckSchemaInTemplateBodies&&this.appendDeepSchemaChecks(t.children),this.checkAndAppendReferencesOfNode(t)}else if(t instanceof Yn)this.appendDeferredBlock(t);else if(t instanceof Zr)this.opQueue.push(new V_(this.tcb,this,t));else if(t instanceof Jr)this.opQueue.push(new q_(this.tcb,this,t));else if(t instanceof bn)this.opQueue.push(new H_(this.tcb,this,t)),t.empty&&this.tcb.env.config.checkControlFlowBodies&&this.appendChildren(t.empty);else if(t instanceof zn)this.opQueue.push(new Co(this.tcb,this,t.value));else if(t instanceof Ws)this.appendIcuExpressions(t);else if(t instanceof xr)this.appendChildren(t);else if(t instanceof it){let e=this.opQueue.push(new b_(this.tcb,this,t))-1;this.isLocal(t)?this.tcb.oobRecorder.conflictingDeclaration(this.tcb.id,t):this.letDeclOpMap.set(t.name,{opIndex:e,node:t})}}appendChildren(t){for(let e of t.children)this.appendNode(e)}checkAndAppendReferencesOfNode(t){for(let e of t.references){let n=this.tcb.boundTarget.getReferenceTarget(e),r;n===null?(this.tcb.oobRecorder.missingReferenceTarget(this.tcb.id,e),r=this.opQueue.push(new R_(this.tcb,this))-1):n instanceof he||n instanceof de?r=this.opQueue.push(new Kg(this.tcb,this,e,t,n))-1:r=this.opQueue.push(new Kg(this.tcb,this,e,t,n.directive))-1,this.referenceOpMap.set(e,r)}}appendDirectivesAndInputsOfNode(t){let e=new Set,n=this.tcb.boundTarget.getDirectivesOfNode(t);if(n===null||n.length===0){t instanceof de&&(this.opQueue.push(new zg(this.tcb,this,t,e)),this.opQueue.push(new Ip(this.tcb,t,!0,e)));return}else t instanceof de&&!this.tcb.boundTarget.isDeferred(t)&&n.some(i=>i.isExplicitlyDeferred)&&this.tcb.oobRecorder.deferredComponentUsedEagerly(this.tcb.id,t);let r=new Map;for(let s of n){let i,o=this.tcb.env.reflector,l=s.ref;s.isGeneric?!v_(l.node,o,this.tcb.env)||this.tcb.env.config.useInlineTypeConstructors?i=new P_(this.tcb,this,t,s):i=new k_(this.tcb,this,t,s):i=new __(this.tcb,this,t,s);let c=this.opQueue.push(i)-1;r.set(s,c),this.opQueue.push(new M_(this.tcb,this,t,s))}if(this.directiveOpMap.set(t,r),t instanceof de){for(let i of n)for(let o of i.inputs.propertyNames)e.add(o);this.opQueue.push(new zg(this.tcb,this,t,e));let s=n.length===0;this.opQueue.push(new Ip(this.tcb,t,s,e))}}appendOutputsOfNode(t){let e=new Set,n=this.tcb.boundTarget.getDirectivesOfNode(t);if(n===null||n.length===0){t instanceof de&&this.opQueue.push(new Xg(this.tcb,this,t,e));return}for(let r of n)this.opQueue.push(new F_(this.tcb,this,t,r));if(t instanceof de){for(let r of n)for(let s of r.outputs.propertyNames)e.add(s);this.opQueue.push(new Xg(this.tcb,this,t,e))}}appendDeepSchemaChecks(t){for(let e of t)if(e instanceof de||e instanceof he){if(e instanceof de){let n=new Set,r=this.tcb.boundTarget.getDirectivesOfNode(e),s;if(r===null||r.length===0)s=!1;else{s=!0;for(let i of r)for(let o of i.inputs.propertyNames)n.add(o)}this.opQueue.push(new Ip(this.tcb,e,!s,n))}this.appendDeepSchemaChecks(e.children)}}appendIcuExpressions(t){for(let e of Object.values(t.vars))this.opQueue.push(new Co(this.tcb,this,e.value));for(let e of Object.values(t.placeholders))e instanceof zn&&this.opQueue.push(new Co(this.tcb,this,e.value))}appendContentProjectionCheckOp(t){var e;let n=((e=this.tcb.boundTarget.getDirectivesOfNode(t))==null?void 0:e.find(r=>r.isComponent))||null;if(n!==null&&n.ngContentSelectors!==null&&n.ngContentSelectors.length>0){let r=n.ngContentSelectors;(r.length>1||r.length===1&&r[0]!=="*")&&this.opQueue.push(new O_(this.tcb,t,r,n.name))}}appendDeferredBlock(t){this.appendDeferredTriggers(t,t.triggers),this.appendDeferredTriggers(t,t.prefetchTriggers),t.hydrateTriggers.when&&this.opQueue.push(new Co(this.tcb,this,t.hydrateTriggers.when.value)),this.appendChildren(t),t.placeholder!==null&&this.appendChildren(t.placeholder),t.loading!==null&&this.appendChildren(t.loading),t.error!==null&&this.appendChildren(t.error)}appendDeferredTriggers(t,e){e.when!==void 0&&this.opQueue.push(new Co(this.tcb,this,e.when.value)),e.hover!==void 0&&this.appendReferenceBasedDeferredTrigger(t,e.hover),e.interaction!==void 0&&this.appendReferenceBasedDeferredTrigger(t,e.interaction),e.viewport!==void 0&&this.appendReferenceBasedDeferredTrigger(t,e.viewport)}appendReferenceBasedDeferredTrigger(t,e){this.tcb.boundTarget.getDeferredTriggerTarget(t,e)===null&&this.tcb.oobRecorder.inaccessibleDeferredTriggerElement(this.tcb.id,e)}static checkConflictingLet(t,e){t.letDeclOpMap.has(e.name)&&t.tcb.oobRecorder.conflictingDeclaration(t.tcb.id,t.letDeclOpMap.get(e.name).node)}},pi=dl;Pl(pi,"forLoopContextVariableTypes",new Map([["$first",S.default.SyntaxKind.BooleanKeyword],["$last",S.default.SyntaxKind.BooleanKeyword],["$even",S.default.SyntaxKind.BooleanKeyword],["$odd",S.default.SyntaxKind.BooleanKeyword],["$index",S.default.SyntaxKind.NumberKeyword],["$count",S.default.SyntaxKind.NumberKeyword]]));function $t(t,e,n){return new Up(e,n).translate(t)}var Up=class{constructor(t,e){a(this,"tcb");a(this,"scope");this.tcb=t,this.scope=e}translate(t){return x_(t,e=>this.resolve(e),this.tcb.env.config)}resolve(t){if(t instanceof Me&&t.receiver instanceof Re&&!(t.receiver instanceof cn)){let e=this.tcb.boundTarget.getExpressionTarget(t),n=e===null?null:this.getTargetNodeExpression(e,t);return e instanceof it&&!this.isValidLetDeclarationAccess(e,t)&&(this.tcb.oobRecorder.letUsedBeforeDefinition(this.tcb.id,t,e),n!==null)?S.default.factory.createAsExpression(n,S.default.factory.createKeywordTypeNode(S.default.SyntaxKind.AnyKeyword)):n}else if(t instanceof jn&&t.receiver instanceof Re){let e=this.tcb.boundTarget.getExpressionTarget(t);if(e===null)return null;let n=this.getTargetNodeExpression(e,t),r=this.translate(t.value),s=S.default.factory.createParenthesizedExpression(S.default.factory.createBinaryExpression(n,S.default.SyntaxKind.EqualsToken,r));return q(s,t.sourceSpan),e instanceof it&&(Mr(s),this.tcb.oobRecorder.illegalWriteToLetDeclaration(this.tcb.id,t,e)),s}else{if(t instanceof Re)return S.default.factory.createThis();if(t instanceof Qr){let e=this.translate(t.exp),n=this.tcb.getPipeByName(t.name),r;n===null?(this.tcb.oobRecorder.missingPipe(this.tcb.id,t),r=hs):n.isExplicitlyDeferred&&this.tcb.boundTarget.getEagerlyUsedPipes().includes(t.name)?(this.tcb.oobRecorder.deferredPipeUsedEagerly(this.tcb.id,t),r=hs):r=this.tcb.env.pipeInst(n.ref);let s=t.args.map(l=>this.translate(l)),i=S.default.factory.createPropertyAccessExpression(r,"transform");q(i,t.nameSpan),this.tcb.env.config.checkTypeOfPipes||(i=S.default.factory.createAsExpression(i,S.default.factory.createKeywordTypeNode(S.default.SyntaxKind.AnyKeyword)));let o=S.default.factory.createCallExpression(i,void 0,[e,...s]);return q(o,t.sourceSpan),o}else if((t instanceof un||t instanceof In)&&(t.receiver instanceof Me||t.receiver instanceof yt)){if(t.receiver.receiver instanceof Re&&!(t.receiver.receiver instanceof cn)&&t.receiver.name==="$any"&&t.args.length===1){let o=this.translate(t.args[0]),l=S.default.factory.createAsExpression(o,S.default.factory.createKeywordTypeNode(S.default.SyntaxKind.AnyKeyword)),c=S.default.factory.createParenthesizedExpression(l);return q(c,t.sourceSpan),c}let e=this.tcb.boundTarget.getExpressionTarget(t);if(e===null)return null;let n=this.getTargetNodeExpression(e,t),r=ke(n);q(r,t.receiver.nameSpan);let s=t.args.map(o=>this.translate(o)),i=S.default.factory.createCallExpression(r,void 0,s);return q(i,t.sourceSpan),i}else return null}}getTargetNodeExpression(t,e){let n=this.scope.resolve(t);return q(n,e.sourceSpan),n}isValidLetDeclarationAccess(t,e){let n=t.sourceSpan.start.offset,r=t.sourceSpan.end.offset,s=e.sourceSpan.start;return n<s&&s>r||!this.scope.isLocal(t)}};function W_(t,e,n){let r=e.env.typeCtorFor(t),s=n.map(i=>{let o=S.default.factory.createStringLiteral(i.field);if(i.type==="binding"){let l=Vp(i.expression,e);i.isTwoWayBinding&&e.env.config.allowSignalsInTwoWayBindings&&(l=qp(l,e));let c=S.default.factory.createPropertyAssignment(o,ke(l));return q(c,i.sourceSpan),c}else return S.default.factory.createPropertyAssignment(o,hs)});return S.default.factory.createCallExpression(r,void 0,[S.default.factory.createObjectLiteralExpression(s)])}function ly(t,e){let n=[],r=s=>{if(s instanceof Ft&&s.type!==J.Property&&s.type!==J.TwoWay)return;let i=t.inputs.getByBindingPropertyName(s.name);i!==null&&n.push({attribute:s,inputs:i.map(o=>{var l;return{fieldName:o.classPropertyName,required:o.required,transformType:((l=o.transform)==null?void 0:l.type)||null,isSignal:o.isSignal,isTwoWayBinding:s instanceof Ft&&s.type===J.TwoWay}})})};return e.inputs.forEach(r),e.attributes.forEach(r),e instanceof he&&e.templateAttrs.forEach(r),n}function cy(t,e,n){return t instanceof Ft?$t(t.value,e,n):S.default.factory.createStringLiteral(t.value)}function Vp(t,e){return e.env.config.checkTypeOfInputBindings?e.env.config.strictNullInputBindings||S.default.isObjectLiteralExpression(t)||S.default.isArrayLiteralExpression(t)?t:S.default.factory.createNonNullExpression(t):nr(t)}function qp(t,e){let n=e.env.referenceExternalSymbol(h.unwrapWritableSignal.moduleName,h.unwrapWritableSignal.name);return S.default.factory.createCallExpression(n,void 0,[t])}var yl="$event";function Io(t,e,n,r){let s=j_(t.handler,e,n),i=[];if(t.type===Oe.TwoWay&&e.env.config.checkTwoWayBoundEvents){let p=e.allocateId(),d=S.default.factory.createBinaryExpression(p,S.default.SyntaxKind.EqualsToken,S.default.factory.createIdentifier(yl));i.push(Pn(p,e.env.config.allowSignalsInTwoWayBindings?qp(s,e):s),S.default.factory.createExpressionStatement(d))}else i.push(S.default.factory.createExpressionStatement(s));let o;r===0?o=void 0:r===1?o=S.default.factory.createKeywordTypeNode(S.default.SyntaxKind.AnyKeyword):o=r;let l=n.guards(),c=S.default.factory.createBlock(i);l!==null&&(c=S.default.factory.createBlock([S.default.factory.createIfStatement(l,c)]));let u=S.default.factory.createParameterDeclaration(void 0,void 0,yl,void 0,o);return ko(u,fs.EVENT_PARAMETER),S.default.factory.createArrowFunction(void 0,void 0,[u],S.default.factory.createKeywordTypeNode(S.default.SyntaxKind.AnyKeyword),void 0,c)}function j_(t,e,n){return new K_(e,n).translate(t)}function uy(t,e,n,r){let s=n.find(l=>l.name===t);if(s===void 0||s.sourceSpan!==e.sourceSpan)return!1;let i=r.boundTarget.getConsumerOfBinding(s),o=r.boundTarget.getConsumerOfBinding(e);return o===null||i.ref===void 0||o instanceof he?!1:o instanceof de?(r.oobRecorder.splitTwoWayBinding(r.id,s,e,i.ref.node,o),!0):o.ref!==i.ref?(r.oobRecorder.splitTwoWayBinding(r.id,s,e,i.ref.node,o.ref.node),!0):!1}var K_=class extends Up{resolve(t){if(t instanceof Me&&t.receiver instanceof Re&&!(t.receiver instanceof cn)&&t.name===yl){let e=S.default.factory.createIdentifier(yl);return q(e,t.nameSpan),e}return super.resolve(t)}isValidLetDeclarationAccess(){return!0}},z_=class extends Up{constructor(e,n,r){super(e,n);a(this,"block");a(this,"allowedVariables");this.block=r,this.allowedVariables=new Set([r.item]);for(let s of r.contextVariables)s.value==="$index"&&this.allowedVariables.add(s)}resolve(e){if(e instanceof Me&&e.receiver instanceof Re){let n=this.tcb.boundTarget.getExpressionTarget(e);n!==null&&(!(n instanceof vt)||!this.allowedVariables.has(n))&&this.tcb.oobRecorder.illegalForLoopTrackAccess(this.tcb.id,this.block,e)}return super.resolve(e)}};var Yg;(function(t){t[t.InlineOps=0]="InlineOps",t[t.Error=1]="Error"})(Yg||(Yg={}));var UF=new mn;var HF=class extends kr.RecursiveAstVisitor{constructor(){super(...arguments);a(this,"allReads",new Set);a(this,"namespaceReads",new Set);a(this,"addAllTopLevelIdentifiers",e=>{se.default.isIdentifier(e)&&this.isTopLevelIdentifierReference(e)?this.allReads.add(e):se.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(se.default.isParenthesizedExpression(r)&&r.expression===n)for(;r&&se.default.isParenthesizedExpression(r);)n=r,r=r.parent;return se.default.isSourceFile(r)?!0:se.default.isCallExpression(r)?r.expression===n||r.arguments.includes(n):se.default.isExpressionStatement(r)||se.default.isPropertyAccessExpression(r)||se.default.isComputedPropertyName(r)||se.default.isTemplateSpan(r)||se.default.isSpreadAssignment(r)||se.default.isSpreadElement(r)||se.default.isAwaitExpression(r)||se.default.isNonNullExpression(r)||se.default.isIfStatement(r)||se.default.isDoStatement(r)||se.default.isWhileStatement(r)||se.default.isSwitchStatement(r)||se.default.isCaseClause(r)||se.default.isThrowStatement(r)||se.default.isNewExpression(r)?r.expression===n:se.default.isArrayLiteralExpression(r)?r.elements.includes(n):se.default.isPropertyAssignment(r)||se.default.isParameter(r)||se.default.isBindingElement(r)||se.default.isPropertyDeclaration(r)||se.default.isEnumMember(r)?r.initializer===n:se.default.isVariableDeclaration(r)?r.name===n||r.initializer===n:se.default.isClassDeclaration(r)||se.default.isFunctionDeclaration(r)||se.default.isShorthandPropertyAssignment(r)?r.name===n:se.default.isElementAccessExpression(r)?r.expression===n||r.argumentExpression===n:se.default.isBinaryExpression(r)?r.left===n||r.right===n:se.default.isForInStatement(r)||se.default.isForOfStatement(r)?r.expression===n||r.initializer===n:se.default.isForStatement(r)?r.condition===n||r.initializer===n||r.incrementor===n:se.default.isArrowFunction(r)?r.body===n:se.default.isImportSpecifier(r)||se.default.isExportSpecifier(r)?(r.propertyName||r.name)===n:se.default.isConditionalExpression(r)?r.condition===n||r.whenFalse===n||r.whenTrue===n:!1}isTypeScriptNode(e){return!!e&&typeof e.kind=="number"}};var N=I(require("typescript"),1),Lr=I(require("typescript"),1),Sl=I(require("typescript"),1),vy=I(require("typescript"),1);var _2=(0,hy.createRequire)(M);function Hp(t,e){return e||t.import!==null&&t.import.from==="@angular/core"}var fy="!Array<{type: !Function, args: (undefined|!Array<?>)}>";function dy(t,e){let n=[],r=t.expression;switch(r.kind){case N.default.SyntaxKind.Identifier:n.push(N.default.factory.createPropertyAssignment("type",r));break;case N.default.SyntaxKind.CallExpression:let s=r;if(n.push(N.default.factory.createPropertyAssignment("type",s.expression)),s.arguments.length){let i=[];for(let l of s.arguments)i.push(l);let o=N.default.factory.createArrayLiteralExpression(N.default.factory.createNodeArray(i,!0));n.push(N.default.factory.createPropertyAssignment("args",o))}break;default:e.push({file:t.getSourceFile(),start:t.getStart(),length:t.getEnd()-t.getStart(),messageText:`${N.default.SyntaxKind[t.kind]} not implemented in gathering decorator metadata.`,category:N.default.DiagnosticCategory.Error,code:0});break}return N.default.factory.createObjectLiteralExpression(n)}function ek(t,e,n,r){let s=[];for(let l of n){if(!l.type&&l.decorators.length===0){s.push(N.default.factory.createNull());continue}let c=l.type?my(e,l.type):void 0,u=[N.default.factory.createPropertyAssignment("type",c||N.default.factory.createIdentifier("undefined"))],p=[];for(let d of l.decorators)p.push(dy(d,t));p.length&&u.push(N.default.factory.createPropertyAssignment("decorators",N.default.factory.createArrayLiteralExpression(p))),s.push(N.default.factory.createObjectLiteralExpression(u))}let i=N.default.factory.createArrowFunction(void 0,void 0,[],void 0,N.default.factory.createToken(N.default.SyntaxKind.EqualsGreaterThanToken),N.default.factory.createArrayLiteralExpression(s,!0)),o=N.default.factory.createPropertyDeclaration([N.default.factory.createToken(N.default.SyntaxKind.StaticKeyword)],"ctorParameters",void 0,void 0,i);return r&&N.default.setSyntheticLeadingComments(o,[{kind:N.default.SyntaxKind.MultiLineCommentTrivia,text:["*"," * @type {function(): !Array<(null|{"," * type: ?,",` * decorators: (undefined|${fy}),`," * })>}"," * @nocollapse"," "].join(`
|
|
44
|
-
`),pos:-1,end:-1,hasTrailingNewLine:!0}]),o}function my(t,e){let n=e.kind;switch(N.default.isLiteralTypeNode(e)&&(n=e.literal.kind),n){case N.default.SyntaxKind.FunctionType:case N.default.SyntaxKind.ConstructorType:return N.default.factory.createIdentifier("Function");case N.default.SyntaxKind.ArrayType:case N.default.SyntaxKind.TupleType:return N.default.factory.createIdentifier("Array");case N.default.SyntaxKind.TypePredicate:case N.default.SyntaxKind.TrueKeyword:case N.default.SyntaxKind.FalseKeyword:case N.default.SyntaxKind.BooleanKeyword:return N.default.factory.createIdentifier("Boolean");case N.default.SyntaxKind.StringLiteral:case N.default.SyntaxKind.StringKeyword:return N.default.factory.createIdentifier("String");case N.default.SyntaxKind.ObjectKeyword:return N.default.factory.createIdentifier("Object");case N.default.SyntaxKind.NumberKeyword:case N.default.SyntaxKind.NumericLiteral:return N.default.factory.createIdentifier("Number");case N.default.SyntaxKind.TypeReference:return t(e.typeName);case N.default.SyntaxKind.UnionType:let s=e.types.filter(i=>!(N.default.isLiteralTypeNode(i)&&i.literal.kind===N.default.SyntaxKind.NullKeyword));return s.length===1?my(t,s[0]):void 0;default:return}}function tk(t,e){return e.flags&N.default.SymbolFlags.Alias&&(e=t.getAliasedSymbol(e)),(e.flags&N.default.SymbolFlags.Value&N.default.SymbolFlags.ConstEnumExcludes)!==0}function gy(t,e,n,r,s,i){function o(c,u){s&&N.default.setSyntheticLeadingComments(c,[{kind:N.default.SyntaxKind.MultiLineCommentTrivia,text:`* @type {${u}} `,pos:-1,end:-1,hasTrailingNewLine:!0}])}function l(c,u){let p=[];for(let[g,E]of u.entries())p.push(N.default.factory.createPropertyAssignment(g,N.default.factory.createArrayLiteralExpression(E.map(w=>dy(w,c)))));let d=N.default.factory.createObjectLiteralExpression(p,!0),m=N.default.factory.createPropertyDeclaration([N.default.factory.createToken(N.default.SyntaxKind.StaticKeyword)],"propDecorators",void 0,void 0,d);return o(m,`!Object<string, ${fy}>`),m}return c=>{let u=wp(c);function p(w){let x=t.getSymbolAtLocation(w);if(!x||!tk(t,x)||!x.declarations||x.declarations.length===0)return;if(N.default.isQualifiedName(w)){let D=p(w.left);return D===void 0?void 0:N.default.factory.createPropertyAccessExpression(D,w.right)}let _=x.declarations[0];return Tp(_)&&(u.add(_),_.name!==void 0)?N.default.setOriginalNode(N.default.factory.createIdentifier(_.name.text),_.name):N.default.setOriginalNode(N.default.factory.createIdentifier(w.text),w)}function d(w){w=N.default.visitEachChild(w,E,c);let x=[],_=[],D=e.getDecoratorsOfDeclaration(w)||[];for(let ee of D){let ae=ee.node;if(!Hp(ee,r)){x.push(ae);continue}_.push(ae)}if(!_.length)return[void 0,w,[]];if(!w.name||!N.default.isIdentifier(w.name))return n.push({file:w.getSourceFile(),start:w.getStart(),length:w.getEnd()-w.getStart(),messageText:"Cannot process decorators for class element with non-analyzable name.",category:N.default.DiagnosticCategory.Error,code:0}),[void 0,w,[]];let H=N.default.canHaveModifiers(w)?N.default.getModifiers(w):void 0,V;return(x.length||H!=null&&H.length)&&(V=N.default.setTextRange(N.default.factory.createNodeArray([...x,...H||[]]),w.modifiers)),[w.name.text,nk(w,V),_]}function m(w){w=N.default.visitEachChild(w,E,c);let x=[],_=w.parameters,D=[];for(let V of _){let ee=[],ae={decorators:[],type:null},oe=e.getDecoratorsOfDeclaration(V)||[];for(let mi of oe){let gi=mi.node;if(!Hp(mi,r)){ee.push(gi);continue}ae.decorators.push(gi)}V.type&&(ae.type=V.type),D.push(ae);let Be,Vt=N.default.getModifiers(V);(ee.length||Vt!=null&&Vt.length)&&(Be=[...ee,...Vt||[]]);let ms=N.default.factory.updateParameterDeclaration(V,Be,V.dotDotDotToken,V.name,V.questionToken,V.type,V.initializer);x.push(ms)}return[N.default.factory.updateConstructorDeclaration(w,N.default.getModifiers(w),x,w.body),D]}function g(w){let x=[],_=new Map,D=null;for(let ae of w.members){switch(ae.kind){case N.default.SyntaxKind.PropertyDeclaration:case N.default.SyntaxKind.GetAccessor:case N.default.SyntaxKind.SetAccessor:case N.default.SyntaxKind.MethodDeclaration:{let[oe,Be,Vt]=d(ae);x.push(Be),oe&&_.set(oe,Vt);continue}case N.default.SyntaxKind.Constructor:{if(!ae.body)break;let[Be,Vt]=m(ae);D=Vt,x.push(Be);continue}default:break}x.push(N.default.visitEachChild(ae,E,c))}let V=(e.getDecoratorsOfDeclaration(w)||[]).some(ae=>Hp(ae,r));D&&(V||D.some(ae=>!!ae.decorators.length))&&x.push(ek(n,p,D,s)),_.size&&x.push(l(n,_));let ee=N.default.setTextRange(N.default.factory.createNodeArray(x,w.members.hasTrailingComma),w.members);return N.default.factory.updateClassDeclaration(w,w.modifiers,w.name,w.typeParameters,w.heritageClauses,ee)}function E(w){return N.default.isClassDeclaration(w)&&(i===void 0||i(w))?g(w):N.default.visitEachChild(w,E,c)}return w=>N.default.visitEachChild(w,E,c)}}function nk(t,e){let n;if(N.default.isMethodDeclaration(t))n=N.default.factory.createMethodDeclaration(e,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body);else if(N.default.isPropertyDeclaration(t))n=N.default.factory.createPropertyDeclaration(e,t.name,t.questionToken,t.type,t.initializer);else if(N.default.isGetAccessor(t))n=N.default.factory.createGetAccessorDeclaration(e,t.name,t.parameters,t.type,t.body);else if(N.default.isSetAccessor(t))n=N.default.factory.createSetAccessorDeclaration(e,t.name,t.parameters,t.body);else throw new Error(`Unsupported decorated member with kind ${N.default.SyntaxKind[t.kind]}`);return N.default.setOriginalNode(n,t)}function El(t,e,n,r,s){let i=Sl.default.isIdentifier(n.identifier)?n.identifier:n.identifier.expression;return t.createPropertyAccessExpression(e.addImport({exportModuleSpecifier:"@angular/core",exportSymbolName:null,requestedFile:r}),Sl.default.setOriginalNode(t.createIdentifier(s),i))}function yy(t,e){return t.createAsExpression(e,t.createKeywordTypeNode(Sl.default.SyntaxKind.AnyKeyword))}var rk=(t,e,n,r,s,i,o,l)=>{var c,u;if((c=n.getDecoratorsOfDeclaration(t.node))!=null&&c.some(g=>hi(g,"Input",l)))return t.node;let p=ty(t,n,s);if(p===null)return t.node;let d={isSignal:r.createTrue(),alias:r.createStringLiteral(p.bindingPropertyName),required:p.required?r.createTrue():r.createFalse(),transform:r.createIdentifier("undefined")},m=r.createDecorator(r.createCallExpression(El(r,i,o,e,"Input"),void 0,[yy(r,r.createObjectLiteralExpression(Object.entries(d).map(([g,E])=>r.createPropertyAssignment(g,E))))]));return r.updatePropertyDeclaration(t.node,[m,...(u=t.node.modifiers)!=null?u:[]],t.name,t.node.questionToken,t.node.type,t.node.initializer)},sk=(t,e,n,r,s,i,o,l)=>{var c,u;if((c=n.getDecoratorsOfDeclaration(t.node))!=null&&c.some(E=>hi(E,"Input",l)||hi(E,"Output",l)))return t.node;let p=ny(t,n,s);if(p===null)return t.node;let d=r.createObjectLiteralExpression([r.createPropertyAssignment("isSignal",p.input.isSignal?r.createTrue():r.createFalse()),r.createPropertyAssignment("alias",r.createStringLiteral(p.input.bindingPropertyName)),r.createPropertyAssignment("required",p.input.required?r.createTrue():r.createFalse())]),m=py("Input",r.createAsExpression(d,r.createKeywordTypeNode(vy.default.SyntaxKind.AnyKeyword)),o,r,e,i),g=py("Output",r.createStringLiteral(p.output.bindingPropertyName),o,r,e,i);return r.updatePropertyDeclaration(t.node,[m,g,...(u=t.node.modifiers)!=null?u:[]],t.node.name,t.node.questionToken,t.node.type,t.node.initializer)};function py(t,e,n,r,s,i){let o=El(r,i,n,s,t);return r.createDecorator(r.createCallExpression(o,void 0,[e]))}var ik=(t,e,n,r,s,i,o,l)=>{var c,u;if((c=n.getDecoratorsOfDeclaration(t.node))!=null&&c.some(m=>hi(m,"Output",l)))return t.node;let p=ry(t,n,s);if(p===null)return t.node;let d=r.createDecorator(r.createCallExpression(El(r,i,o,e,"Output"),void 0,[r.createStringLiteral(p.metadata.bindingPropertyName)]));return r.updatePropertyDeclaration(t.node,[d,...(u=t.node.modifiers)!=null?u:[]],t.node.name,t.node.questionToken,t.node.type,t.node.initializer)},ok={viewChild:"ViewChild",viewChildren:"ViewChildren",contentChild:"ContentChild",contentChildren:"ContentChildren"},ak=(t,e,n,r,s,i,o,l)=>{var c;let u=n.getDecoratorsOfDeclaration(t.node),p=u&&Zg(u,Bp,l);if(p!==null&&p.length>0)return t.node;let d=sy(t,n,s);if(d===null)return t.node;let m=d.call.arguments,g=r.createDecorator(r.createCallExpression(El(r,i,o,e,ok[d.name]),void 0,[d.call.arguments[0],yy(r,r.createObjectLiteralExpression([...m.length>1?[r.createSpreadAssignment(m[1])]:[],r.createPropertyAssignment("isSignal",r.createTrue())]))]));return r.updatePropertyDeclaration(t.node,[g,...(c=t.node.modifiers)!=null?c:[]],t.node.name,t.node.questionToken,t.node.type,t.node.initializer)},lk=["Directive","Component"],ck=[rk,ik,ak,sk];function Sy(t,e,n,r){return s=>i=>{let o=new Cp;return i=Lr.default.visitNode(i,uk(s,t,o,e,n,r),Lr.default.isSourceFile),o.transformTsFile(s,i)}}function uk(t,e,n,r,s,i){let o=l=>{var c;if(Lr.default.isClassDeclaration(l)&&l.name!==void 0){let u=Lr.default.getOriginalNode(l,Lr.default.isClassDeclaration),p=(c=e.getDecoratorsOfDeclaration(u))==null?void 0:c.find(d=>lk.some(m=>hi(d,m,s)));if(p!==void 0&&(i===void 0||i(l))){let d=!1,m=u.getSourceFile(),g=l.members.map(E=>{if(!Lr.default.isPropertyDeclaration(E))return E;let w=Sp(E);if(w===null)return E;for(let x of ck){let _=x(ye(T({},w),{node:E}),m,e,t.factory,r,n,p,s);if(_!==w.node)return d=!0,_}return E});if(d)return t.factory.updateClassDeclaration(l,l.modifiers,l.name,l.typeParameters,l.heritageClauses,g)}}return Lr.default.visitEachChild(l,o,t)};return o}function Ro(t,e=!1,n){let r=t.getTypeChecker(),s=new vp(r),i=new xp,o=gy(r,s,[],e,!1,n),l=Sy(s,i,e,n);return c=>u=>(u=l(c)(u),u=o(c)(u),u)}var O2=(0,Ey.createRequire)(M),wy={ngDevMode:!1,ngI18nClosureMode:!1},pk=ye(T({},wy),{ngJitMode:!1});C();var xS=require("module");var hM=I(require("typescript"),1),fM=I(require("typescript"),1),dM=I(require("typescript"),1),mM=I(require("typescript"),1),gM=I(require("typescript"),1),yM=I(require("typescript"),1),vM=I(require("typescript"),1),SM=I(require("typescript"),1),EM=I(require("typescript"),1),wM=I(require("typescript"),1),TM=I(require("typescript"),1);var xM=I(require("typescript"),1);var CS=I(require("typescript"),1);var CM=I(require("typescript"),1),AM=I(require("typescript"),1),IM=I(require("typescript"),1),NM=I(require("typescript"),1);var bM=I(require("typescript"),1);var dh=I(require("typescript"),1);var mh=I(require("typescript"),1);var gh=I(require("typescript"),1);var rL=I(require("typescript"),1);var iL=I(require("typescript"),1),oL=I(require("typescript"),1),aL=I(require("typescript"),1),lL=I(hS(),1),cL=I(require("typescript"),1),uL=I(require("typescript"),1),pL=I(require("typescript"),1);var N$=(0,xS.createRequire)(M);var ch;(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"})(ch||(ch={}));var uh;(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"})(uh||(uh={}));var ph;(function(t){t.Property="property",t.Method="method",t.Getter="getter",t.Setter="setter",t.EnumItem="enum_item"})(ph||(ph={}));var hh;(function(t){t.Class="class",t.Member="member",t.Parameter="parameter"})(hh||(hh={}));var fh;(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"})(fh||(fh={}));var L$=CS.default.version;var F$=Symbol("NgCyclicResult");var fS;(function(t){t[t.Fresh=0]="Fresh",t[t.Delta=1]="Delta",t[t.Analyzed=2]="Analyzed"})(fS||(fS={}));var dS;(function(t){t[t.Analysis=0]="Analysis",t[t.TypeCheckAndEmit=1]="TypeCheckAndEmit"})(dS||(dS={}));var B$=Symbol("NgIncrementalState"),mS;(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"})(mS||(mS={}));var DM=".$ngresource$",V$=DM+".ts";var _M=new Set(["WritableSignal","Signal","InputSignal","InputSignalWithTransform","ModelSignal"]);function gS(t){return(t.kind===Ut.Expression||t.kind===Ut.Variable||t.kind===Ut.LetDeclaration)&&(t.tsType.symbol!==void 0&&yS(t.tsType.symbol)||t.tsType.aliasSymbol!==void 0&&yS(t.tsType.aliasSymbol))}function yS(t){let e=t.getDeclarations();return e!==void 0&&e.some(n=>{let r=n.getSourceFile().fileName;return(dh.default.isInterfaceDeclaration(n)||dh.default.isTypeAliasDeclaration(n))&&_M.has(n.name.text)&&(r.includes("@angular/core")||r.includes("angular2/rc/packages/core"))})}var Mn=class{constructor(){a(this,"canVisitStructuralAttributes",!0)}run(t,e,n){return new kM(t,e,this).getDiagnostics(n)}},kM=class extends Tr{constructor(e,n,r){super();a(this,"ctx");a(this,"component");a(this,"check");a(this,"diagnostics",[]);this.ctx=e,this.component=n,this.check=r}visit(e,n){this.diagnostics.push(...this.check.visitNode(this.ctx,this.component,e)),e.visit(this)}visitAllNodes(e){for(let n of e)this.visit(n)}visitAst(e){e instanceof Ce&&(e=e.ast),this.visit(e)}visitElement(e){this.visitAllNodes(e.attributes),this.visitAllNodes(e.inputs),this.visitAllNodes(e.outputs),this.visitAllNodes(e.references),this.visitAllNodes(e.children)}visitTemplate(e){let n=e.tagName==="ng-template";this.visitAllNodes(e.attributes),n&&(this.visitAllNodes(e.inputs),this.visitAllNodes(e.outputs)),(this.check.canVisitStructuralAttributes||n)&&this.visitAllNodes(e.templateAttrs),this.visitAllNodes(e.variables),this.visitAllNodes(e.references),this.visitAllNodes(e.children)}visitContent(e){this.visitAllNodes(e.children)}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitUnknownBlock(e){}visitBoundAttribute(e){this.visitAst(e.value)}visitBoundEvent(e){this.visitAst(e.handler)}visitText(e){}visitBoundText(e){this.visitAst(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 Gs&&this.visitAst(e.value)}visitDeferredBlockPlaceholder(e){this.visitAllNodes(e.children)}visitDeferredBlockError(e){this.visitAllNodes(e.children)}visitDeferredBlockLoading(e){this.visitAllNodes(e.children)}visitSwitchBlock(e){this.visitAst(e.expression),this.visitAllNodes(e.cases)}visitSwitchBlockCase(e){e.expression&&this.visitAst(e.expression),this.visitAllNodes(e.children)}visitForLoopBlock(e){var n;e.item.visit(this),this.visitAllNodes(e.contextVariables),this.visitAst(e.expression),this.visitAllNodes(e.children),(n=e.empty)==null||n.visit(this)}visitForLoopBlockEmpty(e){this.visitAllNodes(e.children)}visitIfBlock(e){this.visitAllNodes(e.branches)}visitIfBlockBranch(e){var n;e.expression&&this.visitAst(e.expression),(n=e.expressionAlias)==null||n.visit(this),this.visitAllNodes(e.children)}visitLetDeclaration(e){this.visitAst(e.value)}getDiagnostics(e){return this.diagnostics=[],this.visitAllNodes(e),this.diagnostics}},RM=new Set(["set","update","asReadonly"]),PM=new Set(["name","length","prototype"]),MM=class extends Mn{constructor(){super(...arguments);a(this,"code",re.INTERPOLATED_SIGNAL_NOT_INVOKED)}visitNode(e,n,r){if(r instanceof Kn)return r.expressions.filter(s=>s instanceof Me).flatMap(s=>vS(e,s,n));if(r instanceof Ft){let s=e.templateTypeChecker.getUsedDirectives(n);if(s!==null&&s.some(i=>i.inputs.getByBindingPropertyName(r.name)!==null))return[];if((r.type===J.Property||r.type===J.Class||r.type===J.Style||r.type===J.Attribute||r.type===J.Animation)&&r.value instanceof Ce&&r.value.ast instanceof Me)return vS(e,r.value.ast,n)}return[]}};function LM(t){return PM.has(t)}function OM(t){return RM.has(t)}function vS(t,e,n){let r=t.templateTypeChecker.getSymbolOfNode(e,n);if(r!==null&&r.kind===Ut.Expression&&gS(r)){let i=t.templateTypeChecker.getTemplateMappingAtTcbLocation(r.tcbLocation),o=`${e.name} is a function and should be invoked: ${e.name}()`;return[t.makeTemplateDiagnostic(i.span,o)]}let s=t.templateTypeChecker.getSymbolOfNode(e.receiver,n);if((LM(e.name)||OM(e.name))&&s!==null&&s.kind===Ut.Expression&&gS(s)){let i=t.templateTypeChecker.getTemplateMappingAtTcbLocation(s.tcbLocation),o=`${e.receiver.name} is a function and should be invoked: ${e.receiver.name}()`;return[t.makeTemplateDiagnostic(i.span,o)]}return[]}var FM={code:re.INTERPOLATED_SIGNAL_NOT_INVOKED,name:St.INTERPOLATED_SIGNAL_NOT_INVOKED,create:()=>new MM},BM=class extends Mn{constructor(){super(...arguments);a(this,"code",re.INVALID_BANANA_IN_BOX)}visitNode(e,n,r){if(!(r instanceof Xn))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,`In the two-way binding syntax the parentheses should be inside the brackets, ex. '${o}'.
|
|
45
|
-
Find more at https://angular.dev/guide/templates/two-way-binding`)]}}
|
|
43
|
+
Please report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.`)}var YL=Symbol("DefaultImportDeclaration");var _p=class{constructor(){a(this,"fileToNamedImports",new WeakMap);a(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 n,r;let s=t.getSourceFile();return this.scanImports(s),(r=(n=this.fileToNamespaceImports.get(s).get(e))==null?void 0:n.has(t.text))!=null?r:!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 e,n;if(this.fileToNamedImports.has(t)&&this.fileToNamespaceImports.has(t))return;let r=new Map,s=new Map;this.fileToNamedImports.set(t,r),this.fileToNamespaceImports.set(t,s);for(let i of t.statements){if(!vl.default.isImportDeclaration(i)||!vl.default.isStringLiteralLike(i.moduleSpecifier)||((e=i.importClause)==null?void 0:e.namedBindings)===void 0)continue;let o=i.moduleSpecifier.text;if(vl.default.isNamespaceImport(i.importClause.namedBindings))s.has(o)||s.set(o,new Set),s.get(o).add(i.importClause.namedBindings.name.text);else for(let l of i.importClause.namedBindings.elements){let c=l.name.text,u=l.propertyName===void 0?c:l.propertyName.text;r.has(o)||r.set(o,new Map);let p=r.get(o);p.has(u)||p.set(u,new Set),(n=p.get(u))==null||n.add(c)}}}};function f0(){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 l=null,c=1;do l=`${s}_${c++}`;while(!o(l));return n(i,l),gp.default.factory.createUniqueName(l,gp.default.GeneratedIdentifierFlags.Optimistic)}}function d0(t,e){return n=>{let{affectedFiles:r,newImports:s,updatedImports:i,reusedOriginalAliasDeclarations:o,deletedImports:l}=t.finalize();if(o.size>0){let u=bp(n);u!==null&&o.forEach(p=>u.add(p))}if(e!==void 0)for(let[u,p]of e.entries())p.length>0&&r.add(u);let c=u=>{if(!tr.default.isImportDeclaration(u))return u;if(l.has(u))return;if(u.importClause===void 0||!tr.default.isImportClause(u.importClause))return u;let p=u.importClause;if(p.namedBindings===void 0||!tr.default.isNamedImports(p.namedBindings)||!i.has(p.namedBindings))return u;let d=n.factory.updateImportClause(p,p.isTypeOnly,p.name,i.get(p.namedBindings)),m=n.factory.updateImportDeclaration(u,u.modifiers,d,u.moduleSpecifier,u.attributes);return tr.default.setOriginalNode(m,{importClause:d,kind:m.kind}),m};return u=>{var p,d;if(!r.has(u.fileName))return u;u=tr.default.visitEachChild(u,c,n);let m=(p=e==null?void 0:e.get(u.fileName))!=null?p:[],g=[],E=[];for(let w of u.statements)m0(w)?g.push(w):E.push(w);return n.factory.updateSourceFile(u,[...g,...(d=s.get(u.fileName))!=null?d:[],...m,...E],u.isDeclarationFile,u.referencedFiles,u.typeReferenceDirectives,u.hasNoDefaultLib,u.libReferenceDirectives)}}}function m0(t){return tr.default.isImportDeclaration(t)||tr.default.isImportEqualsDeclaration(t)||tr.default.isNamespaceImport(t)}function g0(t,e){let n=Og(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,Lg.default.factory.createIdentifier(e.exportSymbolName)]}function Ag(t,e,n){e.directReuseCache.set(Og(t),n),t.exportSymbolName===null&&!Array.isArray(n)&&e.namespaceImportReuseCache.set(t.exportModuleSpecifier,n)}function Og(t){return`${t.requestedFile.fileName}:${t.exportModuleSpecifier}:${t.exportSymbolName}${t.unsafeAliasOverride?":"+t.unsafeAliasOverride:""}`}function y0(t,e,n){let r=null;for(let l=e.statements.length-1;l>=0;l--){let c=e.statements[l];if(!(!Pr.default.isImportDeclaration(c)||!Pr.default.isStringLiteral(c.moduleSpecifier)||!c.importClause||c.importClause.isTypeOnly||c.moduleSpecifier.text!==n.exportModuleSpecifier)&&c.importClause.namedBindings){let p=c.importClause.namedBindings;if(Pr.default.isNamespaceImport(p))return t.reusedAliasDeclarations.add(p),n.exportSymbolName===null?p.name:[p.name,Pr.default.factory.createIdentifier(n.exportSymbolName)];if(Pr.default.isNamedImports(p)&&n.exportSymbolName!==null){let d=p.elements.find(m=>{var g;let E;return n.unsafeAliasOverride?E=((g=m.propertyName)==null?void 0:g.text)===n.exportSymbolName&&m.name.text===n.unsafeAliasOverride:E=m.propertyName?m.propertyName.text===n.exportSymbolName:m.name.text===n.exportSymbolName,!m.isTypeOnly&&E});if(d!==void 0)return t.reusedAliasDeclarations.add(d),d.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 kp=class{constructor(t={}){a(this,"newImports",new Map);a(this,"removedImports",new Map);a(this,"nextUniqueIndex",0);a(this,"config");a(this,"reuseSourceFileImportsTracker");a(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:f0()},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 e,n;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&&((n=(e=this.removedImports.get(t.requestedFile))==null?void 0:e.get(t.exportModuleSpecifier))==null||n.delete(t.exportSymbolName));let r=g0(this.reuseGeneratedImportsTracker,t);if(r!==null)return Ig(!!t.asTypeReference,r);let s=this._generateNewImport(t);return Ag(t,this.reuseGeneratedImportsTracker,s),Ig(!!t.asTypeReference,s)}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 e;let{requestedFile:n}=t,r=this.config.disableOriginalSourceFileReuse,s=this.config.forceGenerateNamespacesForNewImports;if(!r){let d=y0(this.reuseSourceFileImportsTracker,n,t);if(d!==null)return d}let{namedImports:i,namespaceImports:o}=this._getNewImportsTrackerForFile(n);if(t.exportSymbolName===null||s){let d=`${this.config.namespaceImportPrefix}${this.nextUniqueIndex++}`;this.config.rewriter&&(d=this.config.rewriter.rewriteNamespaceImportIdentifier(d,t.exportModuleSpecifier));let m=be.default.factory.createNamespaceImport((e=this.config.generateUniqueIdentifier(n,d))!=null?e:be.default.factory.createIdentifier(d));return o.set(t.exportModuleSpecifier,m),Ag(ye(T({},t),{exportSymbolName:null}),this.reuseGeneratedImportsTracker,m.name),t.exportSymbolName!==null?[m.name,be.default.factory.createIdentifier(t.exportSymbolName)]:m.name}i.has(t.exportModuleSpecifier)||i.set(t.exportModuleSpecifier,[]);let l=be.default.factory.createIdentifier(t.exportSymbolName),c=t.unsafeAliasOverride?null:this.config.generateUniqueIdentifier(n,t.exportSymbolName),u,p;return t.unsafeAliasOverride?(u=!0,p=be.default.factory.createIdentifier(t.unsafeAliasOverride)):c!==null?(u=!0,p=c):(u=!1,p=l),i.get(t.exportModuleSpecifier).push(be.default.factory.createImportSpecifier(!1,u?l:void 0,p)),p}finalize(){let t=new Set,e=new Map,n=new Map,r=new Set,s=new Map,i=(o,l)=>{t.add(o),n.has(o)?n.get(o).push(l):n.set(o,[l])};return this.reuseSourceFileImportsTracker.updatedImports.forEach((o,l)=>{let c=l.getSourceFile(),u=l.importClause.namedBindings,p=l.moduleSpecifier.text,d=u.elements.concat(o.map(({propertyName:m,fileUniqueAlias:g})=>be.default.factory.createImportSpecifier(!1,g!==null?m:void 0,g!=null?g:m))).filter(m=>this._canAddSpecifier(c,p,m));t.add(c.fileName),d.length===0?r.add(l):e.set(u,be.default.factory.updateNamedImports(u,d))}),this.removedImports.forEach((o,l)=>{var c;if(o.size===0)return;let u=s.get(l);u||(u=l.statements.filter(be.default.isImportDeclaration),s.set(l,u));for(let p of u){if(!((c=p.importClause)!=null&&c.namedBindings)||!be.default.isNamedImports(p.importClause.namedBindings)||this.reuseSourceFileImportsTracker.updatedImports.has(p)||r.has(p))continue;let d=p.importClause.namedBindings,m=p.moduleSpecifier.text,g=d.elements.filter(E=>this._canAddSpecifier(l,m,E));g.length===0?(t.add(l.fileName),r.add(p)):g.length!==d.elements.length&&(t.add(l.fileName),e.set(d,be.default.factory.updateNamedImports(d,g)))}}),this.newImports.forEach(({namedImports:o,namespaceImports:l,sideEffectImports:c},u)=>{let p=this.config.shouldUseSingleQuotes(u),d=u.fileName;c.forEach(m=>{i(d,be.default.factory.createImportDeclaration(void 0,void 0,be.default.factory.createStringLiteral(m)))}),l.forEach((m,g)=>{let E=be.default.factory.createImportDeclaration(void 0,be.default.factory.createImportClause(!1,void 0,m),be.default.factory.createStringLiteral(g,p));be.default.setOriginalNode(m.name,E),i(d,E)}),o.forEach((m,g)=>{let E=m.filter(w=>this._canAddSpecifier(u,g,w));if(E.length>0){let w=be.default.factory.createImportDeclaration(void 0,be.default.factory.createImportClause(!1,void 0,be.default.factory.createNamedImports(E)),be.default.factory.createStringLiteral(g,p));i(d,w)}})}),{affectedFiles:t,newImports:n,updatedImports:e,reusedOriginalAliasDeclarations:this.reuseSourceFileImportsTracker.reusedAliasDeclarations,deletedImports:r}}toTsTransform(t){return d0(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 Ig(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 QL=new Map([[An.Minus,"-"],[An.Plus,"+"]]),JL=new Map([[b.And,"&&"],[b.Bigger,">"],[b.BiggerEquals,">="],[b.BitwiseAnd,"&"],[b.BitwiseOr,"|"],[b.Divide,"/"],[b.Equals,"=="],[b.Identical,"==="],[b.Lower,"<"],[b.LowerEquals,"<="],[b.Minus,"-"],[b.Modulo,"%"],[b.Multiply,"*"],[b.NotEquals,"!="],[b.NotIdentical,"!=="],[b.Or,"||"],[b.Plus,"+"],[b.NullishCoalesce,"??"]]);var hp={};function Fg(t,e){return n(t);function n(i){return r(i)!==hp}function r(i){return Ae.default.isImportTypeNode(i)||Ae.default.isTypeReferenceNode(i)&&!s(i)?hp:Ae.default.forEachChild(i,r)}function s(i){return e(i)?i.typeArguments===void 0||i.typeArguments.every(n):!1}}var Bg=class{constructor(t){a(this,"translator");this.translator=t}emitType(t){let e=n=>{let r=s=>{if(Ae.default.isImportTypeNode(s))throw new Error("Unable to emit import type");if(Ae.default.isTypeReferenceNode(s))return this.emitTypeReference(s);if(Ae.default.isLiteralExpression(s)){let i;if(Ae.default.isStringLiteral(s))i=Ae.default.factory.createStringLiteral(s.text);else if(Ae.default.isNumericLiteral(s))i=Ae.default.factory.createNumericLiteral(s.text);else if(Ae.default.isBigIntLiteral(s))i=Ae.default.factory.createBigIntLiteral(s.text);else if(Ae.default.isNoSubstitutionTemplateLiteral(s))i=Ae.default.factory.createNoSubstitutionTemplateLiteral(s.text,s.rawText);else if(Ae.default.isRegularExpressionLiteral(s))i=Ae.default.factory.createRegularExpressionLiteral(s.text);else throw new Error(`Unsupported literal kind ${Ae.default.SyntaxKind[s.kind]}`);return Ae.default.setTextRange(i,{pos:-1,end:-1}),i}else return Ae.default.visitEachChild(s,r,n)};return s=>Ae.default.visitNode(s,r,Ae.default.isTypeNode)};return Ae.default.transform(t,[e]).transformed[0]}emitTypeReference(t){let e=this.translator(t);if(e===null)throw new Error("Unable to emit an unresolved reference");let n;return t.typeArguments!==void 0&&(n=Ae.default.factory.createNodeArray(t.typeArguments.map(r=>this.emitType(r)))),Ae.default.factory.updateTypeReferenceNode(t,e.typeName,n)}};var Ng;(function(t){t.CLOSURE="* @pureOrBreakMyCode ",t.TERSER="@__PURE__"})(Ng||(Ng={}));var ZL={"+":Ie.default.SyntaxKind.PlusToken,"-":Ie.default.SyntaxKind.MinusToken,"!":Ie.default.SyntaxKind.ExclamationToken},eO={"&&":Ie.default.SyntaxKind.AmpersandAmpersandToken,">":Ie.default.SyntaxKind.GreaterThanToken,">=":Ie.default.SyntaxKind.GreaterThanEqualsToken,"&":Ie.default.SyntaxKind.AmpersandToken,"|":Ie.default.SyntaxKind.BarToken,"/":Ie.default.SyntaxKind.SlashToken,"==":Ie.default.SyntaxKind.EqualsEqualsToken,"===":Ie.default.SyntaxKind.EqualsEqualsEqualsToken,"<":Ie.default.SyntaxKind.LessThanToken,"<=":Ie.default.SyntaxKind.LessThanEqualsToken,"-":Ie.default.SyntaxKind.MinusToken,"%":Ie.default.SyntaxKind.PercentToken,"*":Ie.default.SyntaxKind.AsteriskToken,"!=":Ie.default.SyntaxKind.ExclamationEqualsToken,"!==":Ie.default.SyntaxKind.ExclamationEqualsEqualsToken,"||":Ie.default.SyntaxKind.BarBarToken,"+":Ie.default.SyntaxKind.PlusToken,"??":Ie.default.SyntaxKind.QuestionQuestionToken},tO={const:Ie.default.NodeFlags.Const,let:Ie.default.NodeFlags.Let,var:Ie.default.NodeFlags.None};C();var $g=require("module");var pO=(0,$g.createRequire)(M),fi;(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.TtcSymbol=15]="TtcSymbol",t[t.LsReferencesAndRenames=16]="LsReferencesAndRenames",t[t.LsQuickInfo=17]="LsQuickInfo",t[t.LsDefinition=18]="LsDefinition",t[t.LsCompletions=19]="LsCompletions",t[t.LsTcb=20]="LsTcb",t[t.LsDiagnostics=21]="LsDiagnostics",t[t.LsComponentLocations=22]="LsComponentLocations",t[t.LsSignatureHelp=23]="LsSignatureHelp",t[t.OutliningSpans=24]="OutliningSpans",t[t.LAST=25]="LAST",t[t.LsCodeFixes=26]="LsCodeFixes",t[t.LsCodeFixesAll=27]="LsCodeFixesAll",t[t.LSComputeApplicableRefactorings=28]="LSComputeApplicableRefactorings",t[t.LSApplyRefactoring=29]="LSApplyRefactoring"})(fi||(fi={}));var El;(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.TraitAnalyze=7]="TraitAnalyze",t[t.TraitReuseAnalysis=8]="TraitReuseAnalysis",t[t.SourceFilePhysicalChange=9]="SourceFilePhysicalChange",t[t.SourceFileLogicalChange=10]="SourceFileLogicalChange",t[t.SourceFileReuseAnalysis=11]="SourceFileReuseAnalysis",t[t.GenerateTcb=12]="GenerateTcb",t[t.SkipGenerateTcbNoInline=13]="SkipGenerateTcbNoInline",t[t.ReuseTypeCheckFile=14]="ReuseTypeCheckFile",t[t.UpdateTypeCheckProgram=15]="UpdateTypeCheckProgram",t[t.EmitSkipSourceFile=16]="EmitSkipSourceFile",t[t.EmitSourceFile=17]="EmitSourceFile",t[t.LAST=18]="LAST"})(El||(El={}));var wl;(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"})(wl||(wl={}));var E0=class{eventCount(){}memory(){}phase(){return fi.Unaccounted}inPhase(t,e){return e()}reset(){}},hO=new E0;var Pn=I(require("typescript"),1),xe=I(require("typescript"),1),R0=I(require("typescript"),1);var P0=I(require("typescript"),1),M0=I(require("typescript"),1),L0=I(require("typescript"),1),O0=I(require("typescript"),1),F0=I(require("typescript"),1),B0=I(require("typescript"),1),$0=I(require("typescript"),1);var U0=I(require("typescript"),1),V0=I(require("typescript"),1);var q0=I(require("typescript"),1);var H0=I(require("typescript"),1);var G0=I(require("typescript"),1),W0=I(require("typescript"),1);var j0=I(require("typescript"),1);var K0=I(require("typescript"),1);var z0=I(require("typescript"),1);var X0=I(require("typescript"),1),yn=I(require("typescript"),1),Fp=I(require("typescript"),1);var vn=I(require("typescript"),1);var r_=I(require("typescript"),1),s_=I(require("typescript"),1);var i_=I(require("typescript"),1);var a_=I(require("typescript"),1),l_=I(require("typescript"),1),c_=I(require("typescript"),1);var u_=I(require("typescript"),1);var Po=I(require("typescript"),1);C();var Ug="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w0=new Uint8Array(64),T0=new Uint8Array(128);for(let t=0;t<Ug.length;t++){let e=Ug.charCodeAt(t);w0[t]=e,T0[e]=t}var yO=1024*16;var h_=I(require("typescript"),1);var f_=I(require("typescript"),1),d_=I(require("typescript"),1);var ie=I(require("typescript"),1);var S_=I(require("typescript"),1);var E_=I(require("typescript"),1),ko=I(require("typescript"),1);var C_=I(require("typescript"),1),A_=I(require("typescript"),1);var S=I(require("typescript"),1);var Lo=I(require("typescript"),1);var D=I(require("typescript"),1),ek=I(require("typescript"),1);var tk=I(require("typescript"),1);var se=I(require("typescript"),1);var nk=I(require("typescript"),1);var rk=I(require("typescript"),1);var sk=I(require("typescript"),1);var n2=(0,ry.createRequire)(M),D0="@angular/core";function sy(t){return t.import!==null&&t.import.from===D0}function mi(t,e,n){return n?t.name===e:sy(t)?t.import.name===e:!1}function iy(t,e,n){return t.filter(r=>{var s;let i=n?r.name:(s=r.import)==null?void 0:s.name;return i===void 0||!e.includes(i)?!1:n||sy(r)})}function oy(t){for(;Pn.default.isAsExpression(t)||Pn.default.isParenthesizedExpression(t);)t=t.expression;return t}function _0(t){if(t=oy(t),!Pn.default.isArrowFunction(t)&&!Pn.default.isFunctionExpression(t))return null;let e=t.body;if(Pn.default.isBlock(e)){if(e.statements.length!==1)return null;let n=e.statements[0];return!Pn.default.isReturnStatement(n)||n.expression===void 0?null:n.expression}else return e}function k0(t,e){if(t=oy(t),!Pn.default.isCallExpression(t)||t.arguments.length!==1)return null;let n=Pn.default.isPropertyAccessExpression(t.expression)?t.expression.name:t.expression;if(!Pn.default.isIdentifier(n))return null;let r=_0(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}function qe(t){return{op:t,literal:!0}}function Vg(t){return{op:t,literal:!1}}var l2=new Map([[xe.default.SyntaxKind.PlusToken,qe((t,e)=>t+e)],[xe.default.SyntaxKind.MinusToken,qe((t,e)=>t-e)],[xe.default.SyntaxKind.AsteriskToken,qe((t,e)=>t*e)],[xe.default.SyntaxKind.SlashToken,qe((t,e)=>t/e)],[xe.default.SyntaxKind.PercentToken,qe((t,e)=>t%e)],[xe.default.SyntaxKind.AmpersandToken,qe((t,e)=>t&e)],[xe.default.SyntaxKind.BarToken,qe((t,e)=>t|e)],[xe.default.SyntaxKind.CaretToken,qe((t,e)=>t^e)],[xe.default.SyntaxKind.LessThanToken,qe((t,e)=>t<e)],[xe.default.SyntaxKind.LessThanEqualsToken,qe((t,e)=>t<=e)],[xe.default.SyntaxKind.GreaterThanToken,qe((t,e)=>t>e)],[xe.default.SyntaxKind.GreaterThanEqualsToken,qe((t,e)=>t>=e)],[xe.default.SyntaxKind.EqualsEqualsToken,qe((t,e)=>t==e)],[xe.default.SyntaxKind.EqualsEqualsEqualsToken,qe((t,e)=>t===e)],[xe.default.SyntaxKind.ExclamationEqualsToken,qe((t,e)=>t!=e)],[xe.default.SyntaxKind.ExclamationEqualsEqualsToken,qe((t,e)=>t!==e)],[xe.default.SyntaxKind.LessThanLessThanToken,qe((t,e)=>t<<e)],[xe.default.SyntaxKind.GreaterThanGreaterThanToken,qe((t,e)=>t>>e)],[xe.default.SyntaxKind.GreaterThanGreaterThanGreaterThanToken,qe((t,e)=>t>>>e)],[xe.default.SyntaxKind.AsteriskAsteriskToken,qe((t,e)=>Math.pow(t,e))],[xe.default.SyntaxKind.AmpersandAmpersandToken,Vg((t,e)=>t&&e)],[xe.default.SyntaxKind.BarBarToken,Vg((t,e)=>t||e)]]),c2=new Map([[xe.default.SyntaxKind.TildeToken,t=>~t],[xe.default.SyntaxKind.MinusToken,t=>-t],[xe.default.SyntaxKind.PlusToken,t=>+t],[xe.default.SyntaxKind.ExclamationToken,t=>!t]]);var Cl;(function(t){t[t.SingleFile=0]="SingleFile",t[t.WholeProgram=1]="WholeProgram"})(Cl||(Cl={}));var qg;(function(t){t[t.NgModule=0]="NgModule",t[t.Standalone=1]="Standalone"})(qg||(qg={}));var Hg;(function(t){t[t.Normal=0]="Normal",t[t.ForceDirect=1]="ForceDirect"})(Hg||(Hg={}));var Gg;(function(t){t[t.Reference=0]="Reference",t[t.Variable=1]="Variable",t[t.LetDeclaration=2]="LetDeclaration"})(Gg||(Gg={}));var Ut;(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"})(Ut||(Ut={}));var Mp;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(Mp||(Mp={}));var Wg;(function(t){t[t.Selector=0]="Selector",t[t.HostDirective=1]="HostDirective"})(Wg||(Wg={}));var Lp;(function(t){t[t.FULL=0]="FULL",t[t.PARTIAL=1]="PARTIAL",t[t.LOCAL=2]="LOCAL"})(Lp||(Lp={}));var jg;(function(t){t[t.PRIMARY=0]="PRIMARY",t[t.SHARED=1]="SHARED",t[t.WEAK=2]="WEAK"})(jg||(jg={}));var Kg;(function(t){t[t.Pending=0]="Pending",t[t.Analyzed=1]="Analyzed",t[t.Resolved=2]="Resolved",t[t.Skipped=3]="Skipped"})(Kg||(Kg={}));var Op;(function(t){t[t.NgModule=0]="NgModule",t[t.Standalone=1]="Standalone"})(Op||(Op={}));function Nl({api:t,call:e},n){if(!t.allowedAccessLevels.includes(n.accessLevel))throw new nr(Z.INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY,e,Ep(`Cannot use "${t.functionName}" on a class member that is declared as ${Cp(n.accessLevel)}.`,[Ep("Update the class field to be either: "+t.allowedAccessLevels.map(r=>Cp(r)).join(", "))]))}function Oo(t,e,n,r){if(!yn.default.isCallExpression(e))return null;let s=Y0(e,t,r)||Q0(e,t,r)||J0(e,t,r);if(s===null)return null;let{api:i,apiReference:o,isRequired:l}=s,c=n.getImportOfIdentifier(o);return c===null||i.functionName!==c.name||i.owningModule!==c.from?null:{api:i,call:e,isRequired:l}}function Y0(t,e,n){let r=t.expression;if(!yn.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 Q0(t,e,n){let r=t.expression;if(!yn.default.isPropertyAccessExpression(r)||!yn.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 J0(t,e,n){let r=t.expression;if(!yn.default.isPropertyAccessExpression(r))return null;let s=null,i,o=!1;if(yn.default.isIdentifier(r.expression)&&yn.default.isIdentifier(r.name)){let l=r.expression;s=r.name,i=e.find(c=>r.name.text===c.functionName&&n.isPotentialReferenceToNamespaceImport(l,c.owningModule))}else if(yn.default.isPropertyAccessExpression(r.expression)&&yn.default.isIdentifier(r.expression.expression)&&yn.default.isIdentifier(r.expression.name)&&r.name.text==="required"){let l=r.expression.name.text,c=r.expression.expression;s=r.expression.name,i=e.find(u=>u.functionName===l&&n.isPotentialReferenceToNamespaceImport(c,u.owningModule)),o=!0}return i===void 0||s===null?null:{api:i,apiReference:s,isRequired:o}}function Up(t){if(!Fp.default.isObjectLiteralExpression(t))throw new nr(Z.VALUE_HAS_WRONG_TYPE,t,"Argument needs to be an object literal that is statically analyzable.");let e=Np(t),n;if(e.has("alias")){let r=e.get("alias");if(!Fp.default.isStringLiteralLike(r))throw new nr(Z.VALUE_HAS_WRONG_TYPE,r,"Alias needs to be a string that is statically analyzable.");n=r.text}return{alias:n}}var Vp={functionName:"input",owningModule:"@angular/core",allowedAccessLevels:[Te.PublicWritable,Te.PublicReadonly,Te.Protected]};function ay(t,e,n){var r;if(t.value===null)return null;let s=Oo([Vp],t.value,e,n);if(s===null)return null;Nl(s,t);let i=s.isRequired?s.call.arguments[0]:s.call.arguments[1],o=i!==void 0?Up(i):null,l=t.name;return{isSignal:!0,classPropertyName:l,bindingPropertyName:(r=o==null?void 0:o.alias)!=null?r:l,required:s.isRequired,transform:null}}var qp={functionName:"model",owningModule:"@angular/core",allowedAccessLevels:[Te.PublicWritable,Te.PublicReadonly,Te.Protected]};function ly(t,e,n){var r;if(t.value===null)return null;let s=Oo([qp],t.value,e,n);if(s===null)return null;Nl(s,t);let i=s.isRequired?s.call.arguments[0]:s.call.arguments[1],o=i!==void 0?Up(i):null,l=t.name,c=(r=o==null?void 0:o.alias)!=null?r:l;return{call:s.call,input:{isSignal:!0,transform:null,classPropertyName:l,bindingPropertyName:c,required:s.isRequired},output:{isSignal:!1,classPropertyName:l,bindingPropertyName:c+"Change"}}}var zg=[Te.PublicWritable,Te.PublicReadonly,Te.Protected],Hp=[{functionName:"output",owningModule:"@angular/core",allowedAccessLevels:zg},{functionName:"outputFromObservable",owningModule:"@angular/core/rxjs-interop",allowedAccessLevels:zg}];function cy(t,e,n){var r;if(t.value===null)return null;let s=Oo(Hp,t.value,e,n);if(s===null)return null;if(s.isRequired)throw new nr(Z.INITIALIZER_API_NO_REQUIRED_FUNCTION,s.call,'Output does not support ".required()".');Nl(s,t);let i=s.api.functionName==="output"?s.call.arguments[0]:s.call.arguments[1],o=i!==void 0?Up(i):null,l=t.name;return{call:s.call,metadata:{isSignal:!1,classPropertyName:l,bindingPropertyName:(r=o==null?void 0:o.alias)!=null?r:l}}}var Z0=["viewChild","viewChildren","contentChild","contentChildren"],Gp=Z0.map(t=>({functionName:t,owningModule:"@angular/core",allowedAccessLevels:[Te.PublicWritable,Te.PublicReadonly,Te.Protected,Te.Private]})),e_=t=>t!=="contentChildren";function uy(t,e,n){if(t.value===null)return null;let r=Oo(Gp,t.value,e,n);if(r===null)return null;Nl(r,t);let{functionName:s}=r.api,i=s==="viewChild"||s==="contentChild",o=r.call.arguments[0];if(o===void 0)throw new nr(Z.VALUE_HAS_WRONG_TYPE,r.call,"No locator specified.");let l=r.call.arguments[1];if(l!==void 0&&!vn.default.isObjectLiteralExpression(l))throw new nr(Z.VALUE_HAS_WRONG_TYPE,l,"Argument needs to be an object literal.");let c=l&&Np(l),u=c!=null&&c.has("read")?py(c.get("read")):null,p=c!=null&&c.has("descendants")?n_(c.get("descendants")):e_(s);return{name:s,call:r.call,metadata:{isSignal:!0,propertyName:t.name,static:!1,emitDistinctChangesOnly:!0,predicate:t_(o,e),first:i,read:u,descendants:p}}}function t_(t,e){let n=k0(t,e);return n!==null&&(t=n),vn.default.isStringLiteralLike(t)?[t.text]:cs(new Rr.WrappedNodeExpr(t),n!==null?2:0)}function py(t){if(vn.default.isExpressionWithTypeArguments(t)||vn.default.isParenthesizedExpression(t)||vn.default.isAsExpression(t))return py(t.expression);if(vn.default.isPropertyAccessExpression(t)&&vn.default.isIdentifier(t.expression)||vn.default.isIdentifier(t))return new Rr.WrappedNodeExpr(t);throw new nr(Z.VALUE_NOT_LITERAL,t,'Query "read" option expected a literal class reference.')}function n_(t){if(t.kind===vn.default.SyntaxKind.TrueKeyword)return!0;if(t.kind===vn.default.SyntaxKind.FalseKeyword)return!1;throw new nr(Z.VALUE_HAS_WRONG_TYPE,t,'Expected "descendants" option to be a boolean literal.')}var Wp=["ViewChild","ViewChildren","ContentChild","ContentChildren"],A2=new Set(Wp);var o_=Symbol("NgOriginalFile"),Xg;(function(t){t[t.Complete=0]="Complete",t[t.Incremental=1]="Incremental"})(Xg||(Xg={}));var D2=Symbol("NgExtension");var _2=Symbol("TemplateSourceFile");var k2=Symbol("ngTemplateId"),R2=Symbol("ngNextTemplateId");var Al;(function(t){t.DIAGNOSTIC="D",t.EXPRESSION_TYPE_IDENTIFIER="T"})(Al||(Al={}));var ds;(function(t){t.DIRECTIVE="DIR",t.COMPONENT_COMPLETION="COMPCOMP",t.EVENT_PARAMETER="EP",t.VARIABLE_AS_EXPRESSION="VAE"})(ds||(ds={}));function Fo(t,e){Po.default.addSyntheticTrailingComment(t,Po.default.SyntaxKind.MultiLineCommentTrivia,`${Al.EXPRESSION_TYPE_IDENTIFIER}:${e}`,!1)}var p_=`${Al.DIAGNOSTIC}:ignore`;function Lr(t){Po.default.addSyntheticTrailingComment(t,Po.default.SyntaxKind.MultiLineCommentTrivia,p_,!1)}var F2=new gn;var m_=new Set([ie.default.SyntaxKind.ParenthesizedExpression,ie.default.SyntaxKind.Identifier,ie.default.SyntaxKind.CallExpression,ie.default.SyntaxKind.NonNullExpression,ie.default.SyntaxKind.ElementAccessExpression,ie.default.SyntaxKind.PropertyAccessExpression,ie.default.SyntaxKind.ArrayLiteralExpression,ie.default.SyntaxKind.ObjectLiteralExpression,ie.default.SyntaxKind.StringLiteral,ie.default.SyntaxKind.NumericLiteral,ie.default.SyntaxKind.TrueKeyword,ie.default.SyntaxKind.FalseKeyword,ie.default.SyntaxKind.NullKeyword,ie.default.SyntaxKind.UndefinedKeyword]);function rr(t){return m_.has(t.kind)||(t=ie.default.factory.createParenthesizedExpression(t)),ie.default.factory.createParenthesizedExpression(ie.default.factory.createAsExpression(t,ie.default.factory.createKeywordTypeNode(ie.default.SyntaxKind.AnyKeyword)))}function g_(t){let e=ie.default.factory.createPropertyAccessExpression(ie.default.factory.createIdentifier("document"),"createElement");return ie.default.factory.createCallExpression(e,void 0,[ie.default.factory.createStringLiteral(t)])}function Mo(t,e){Fo(e,ds.VARIABLE_AS_EXPRESSION);let n=ie.default.factory.createAsExpression(ie.default.factory.createNonNullExpression(ie.default.factory.createNull()),e),r=ie.default.factory.createVariableDeclaration(t,void 0,void 0,n);return ie.default.factory.createVariableStatement(void 0,[r])}function y_(t,e){return ie.default.factory.createTypeQueryNode(ie.default.factory.createQualifiedName(t,`ngAcceptInputType_${e}`))}function Mn(t,e,n=null){let r=ie.default.factory.createVariableDeclaration(t,void 0,void 0,e);return ie.default.factory.createVariableStatement(void 0,n===null?[r]:ie.default.factory.createVariableDeclarationList([r],n))}function Yg(t,e,n=[]){let r=ie.default.factory.createPropertyAccessExpression(t,e);return ie.default.factory.createCallExpression(r,void 0,n)}function v_(t){if(t<0){let e=ie.default.factory.createNumericLiteral(Math.abs(t));return ie.default.factory.createPrefixUnaryExpression(ie.default.SyntaxKind.MinusToken,e)}return ie.default.factory.createNumericLiteral(t)}var w_=class{constructor(t,e){a(this,"typeParameters");a(this,"reflector");this.typeParameters=t,this.reflector=e}canEmit(t){return this.typeParameters===void 0?!0:this.typeParameters.every(e=>this.canEmitType(e.constraint,t)&&this.canEmitType(e.default,t))}canEmitType(t,e){return t===void 0?!0:Fg(t,n=>{let r=this.resolveTypeReference(n);return r===null?!1:r instanceof ps?e(r):!0})}emit(t){if(this.typeParameters===void 0)return;let e=new Bg(n=>this.translateTypeReference(n,t));return this.typeParameters.map(n=>{let r=n.constraint!==void 0?e.emitType(n.constraint):void 0,s=n.default!==void 0?e.emitType(n.default):void 0;return ko.default.factory.updateTypeParameterDeclaration(n,n.modifiers,n.name,r,s)})}resolveTypeReference(t){let e=ko.default.isIdentifier(t.typeName)?t.typeName:t.typeName.right,n=this.reflector.getDeclarationOfIdentifier(e);if(n===null||n.node===null)return null;if(this.isLocalTypeParameter(n.node))return t;let r=null;return typeof n.viaModule=="string"&&(r={specifier:n.viaModule,resolutionContext:t.getSourceFile().fileName}),new ps(n.node,n.viaModule===us?us:r)}translateTypeReference(t,e){let n=this.resolveTypeReference(t);if(!(n instanceof ps))return n;let r=e(n);if(r===null)return null;if(!ko.default.isTypeReferenceNode(r))throw new Error(`Expected TypeReferenceNode for emitted reference, got ${ko.default.SyntaxKind[r.kind]}.`);return r}isLocalTypeParameter(t){return this.typeParameters.some(e=>e===t)}},V2=[h.InputSignalBrandWriteType],Qg;(function(t){t[t.MustInline=0]="MustInline",t[t.ShouldInlineForGenericBounds=1]="ShouldInlineForGenericBounds",t[t.None=2]="None"})(Qg||(Qg={}));function T_(t,e,n){return new w_(t.typeParameters,e).canEmit(s=>n.canReferenceType(s))}function x_(t,e,n){return!T_(t,e,n)}function ke(t){return Lo.default.factory.createParenthesizedExpression(t)}function hs(t){return Lo.default.factory.createParenthesizedExpression(t)}function q(t,e){let n;e instanceof tt?n=`${e.start},${e.end}`:n=`${e.start.offset},${e.end.offset}`,Lo.default.addSyntheticTrailingComment(t,Lo.default.SyntaxKind.MultiLineCommentTrivia,n,!1)}var fs=D.default.factory.createAsExpression(D.default.factory.createNumericLiteral("0"),D.default.factory.createKeywordTypeNode(D.default.SyntaxKind.AnyKeyword)),Rp=D.default.factory.createIdentifier("undefined"),I_=new Map([["+",D.default.SyntaxKind.PlusToken],["-",D.default.SyntaxKind.MinusToken]]),N_=new Map([["+",D.default.SyntaxKind.PlusToken],["-",D.default.SyntaxKind.MinusToken],["<",D.default.SyntaxKind.LessThanToken],[">",D.default.SyntaxKind.GreaterThanToken],["<=",D.default.SyntaxKind.LessThanEqualsToken],[">=",D.default.SyntaxKind.GreaterThanEqualsToken],["==",D.default.SyntaxKind.EqualsEqualsToken],["===",D.default.SyntaxKind.EqualsEqualsEqualsToken],["*",D.default.SyntaxKind.AsteriskToken],["/",D.default.SyntaxKind.SlashToken],["%",D.default.SyntaxKind.PercentToken],["!=",D.default.SyntaxKind.ExclamationEqualsToken],["!==",D.default.SyntaxKind.ExclamationEqualsEqualsToken],["||",D.default.SyntaxKind.BarBarToken],["&&",D.default.SyntaxKind.AmpersandAmpersandToken],["&",D.default.SyntaxKind.AmpersandToken],["|",D.default.SyntaxKind.BarToken],["??",D.default.SyntaxKind.QuestionQuestionToken]]);function b_(t,e,n){return new D_(e,n).translate(t)}var D_=class{constructor(t,e){a(this,"maybeResolve");a(this,"config");this.maybeResolve=t,this.config=e}translate(t){if(t instanceof Ce&&(t=t.ast),t instanceof je){let n=D.default.factory.createIdentifier("undefined");return q(n,t.sourceSpan),n}let e=this.maybeResolve(t);return e!==null?e:t.visit(this)}visitUnary(t){let e=this.translate(t.expr),n=I_.get(t.operator);if(n===void 0)throw new Error(`Unsupported Unary.operator: ${t.operator}`);let r=ke(D.default.factory.createPrefixUnaryExpression(n,e));return q(r,t.sourceSpan),r}visitBinary(t){let e=ke(this.translate(t.left)),n=ke(this.translate(t.right)),r=N_.get(t.operation);if(r===void 0)throw new Error(`Unsupported Binary.operation: ${t.operation}`);let s=D.default.factory.createBinaryExpression(e,r,n);return q(s,t.sourceSpan),s}visitChain(t){let e=t.expressions.map(r=>this.translate(r)),n=ke(D.default.factory.createCommaListExpression(e));return q(n,t.sourceSpan),n}visitConditional(t){let e=this.translate(t.condition),n=this.translate(t.trueExp),r=hs(this.translate(t.falseExp)),s=D.default.factory.createParenthesizedExpression(D.default.factory.createConditionalExpression(e,void 0,n,void 0,r));return q(s,t.sourceSpan),s}visitImplicitReceiver(t){throw new Error("Method not implemented.")}visitThisReceiver(t){throw new Error("Method not implemented.")}visitInterpolation(t){return t.expressions.reduce((e,n)=>D.default.factory.createBinaryExpression(e,D.default.SyntaxKind.PlusToken,hs(this.translate(n))),D.default.factory.createStringLiteral(""))}visitKeyedRead(t){let e=ke(this.translate(t.receiver)),n=this.translate(t.key),r=D.default.factory.createElementAccessExpression(e,n);return q(r,t.sourceSpan),r}visitKeyedWrite(t){let e=ke(this.translate(t.receiver)),n=D.default.factory.createElementAccessExpression(e,this.translate(t.key)),r=hs(this.translate(t.value)),s=ke(D.default.factory.createBinaryExpression(n,D.default.SyntaxKind.EqualsToken,r));return q(s,t.sourceSpan),s}visitLiteralArray(t){let e=t.expressions.map(s=>this.translate(s)),n=D.default.factory.createArrayLiteralExpression(e),r=this.config.strictLiteralTypes?n:rr(n);return q(r,t.sourceSpan),r}visitLiteralMap(t){let e=t.keys.map(({key:s},i)=>{let o=this.translate(t.values[i]);return D.default.factory.createPropertyAssignment(D.default.factory.createStringLiteral(s),o)}),n=D.default.factory.createObjectLiteralExpression(e,!0),r=this.config.strictLiteralTypes?n:rr(n);return q(r,t.sourceSpan),r}visitLiteralPrimitive(t){let e;if(t.value===void 0)e=D.default.factory.createIdentifier("undefined");else if(t.value===null)e=D.default.factory.createNull();else if(typeof t.value=="string")e=D.default.factory.createStringLiteral(t.value);else if(typeof t.value=="number")e=v_(t.value);else if(typeof t.value=="boolean")e=t.value?D.default.factory.createTrue():D.default.factory.createFalse();else throw Error(`Unsupported AST value of type ${typeof t.value}`);return q(e,t.sourceSpan),e}visitNonNullAssert(t){let e=ke(this.translate(t.expression)),n=D.default.factory.createNonNullExpression(e);return q(n,t.sourceSpan),n}visitPipe(t){throw new Error("Method not implemented.")}visitPrefixNot(t){let e=ke(this.translate(t.expression)),n=D.default.factory.createLogicalNot(e);return q(n,t.sourceSpan),n}visitTypeofExpression(t){let e=ke(this.translate(t.expression)),n=D.default.factory.createTypeOfExpression(e);return q(n,t.sourceSpan),n}visitPropertyRead(t){let e=ke(this.translate(t.receiver)),n=D.default.factory.createPropertyAccessExpression(e,t.name);q(n,t.nameSpan);let r=ke(n);return q(r,t.sourceSpan),r}visitPropertyWrite(t){let e=ke(this.translate(t.receiver)),n=D.default.factory.createPropertyAccessExpression(e,t.name);q(n,t.nameSpan);let r=ke(n);q(r,t.sourceSpan);let s=hs(this.translate(t.value)),i=ke(D.default.factory.createBinaryExpression(r,D.default.SyntaxKind.EqualsToken,s));return q(i,t.sourceSpan),i}visitSafePropertyRead(t){let e,n=ke(this.translate(t.receiver));if(this.config.strictSafeNavigationTypes){let r=D.default.factory.createPropertyAccessExpression(D.default.factory.createNonNullExpression(n),t.name);q(r,t.nameSpan),e=D.default.factory.createParenthesizedExpression(D.default.factory.createConditionalExpression(fs,void 0,r,void 0,Rp))}else if(Tl.veWillInferAnyFor(t))e=D.default.factory.createPropertyAccessExpression(rr(n),t.name);else{let r=D.default.factory.createPropertyAccessExpression(D.default.factory.createNonNullExpression(n),t.name);q(r,t.nameSpan),e=rr(r)}return q(e,t.sourceSpan),e}visitSafeKeyedRead(t){let e=ke(this.translate(t.receiver)),n=this.translate(t.key),r;if(this.config.strictSafeNavigationTypes){let s=D.default.factory.createElementAccessExpression(D.default.factory.createNonNullExpression(e),n);q(s,t.sourceSpan),r=D.default.factory.createParenthesizedExpression(D.default.factory.createConditionalExpression(fs,void 0,s,void 0,Rp))}else if(Tl.veWillInferAnyFor(t))r=D.default.factory.createElementAccessExpression(rr(e),n);else{let s=D.default.factory.createElementAccessExpression(D.default.factory.createNonNullExpression(e),n);q(s,t.sourceSpan),r=rr(s)}return q(r,t.sourceSpan),r}visitCall(t){let e=t.args.map(i=>this.translate(i)),n,r=t.receiver;if(r instanceof Me){let i=this.maybeResolve(r);if(i!==null)n=i;else{let o=ke(this.translate(r.receiver));n=D.default.factory.createPropertyAccessExpression(o,r.name),q(n,r.nameSpan)}}else n=this.translate(r);let s;return t.receiver instanceof vt||t.receiver instanceof Tr?s=this.convertToSafeCall(t,n,e):s=D.default.factory.createCallExpression(n,void 0,e),q(s,t.sourceSpan),s}visitSafeCall(t){let e=t.args.map(s=>this.translate(s)),n=ke(this.translate(t.receiver)),r=this.convertToSafeCall(t,n,e);return q(r,t.sourceSpan),r}visitTemplateLiteral(t){let e=t.elements.length,n=t.elements[0],r;if(e===1)r=D.default.factory.createNoSubstitutionTemplateLiteral(n.text);else{let s=[],i=e-1;for(let c=1;c<i;c++){let u=D.default.factory.createTemplateMiddle(t.elements[c].text);s.push(D.default.factory.createTemplateSpan(this.translate(t.expressions[c-1]),u))}let o=this.translate(t.expressions[i-1]),l=D.default.factory.createTemplateTail(t.elements[i].text);s.push(D.default.factory.createTemplateSpan(o,l)),r=D.default.factory.createTemplateExpression(D.default.factory.createTemplateHead(n.text),s)}return r}visitTemplateLiteralElement(t,e){throw new Error("Method not implemented")}convertToSafeCall(t,e,n){if(this.config.strictSafeNavigationTypes){let r=D.default.factory.createCallExpression(D.default.factory.createNonNullExpression(e),void 0,n);return D.default.factory.createParenthesizedExpression(D.default.factory.createConditionalExpression(fs,void 0,r,void 0,Rp))}return Tl.veWillInferAnyFor(t)?D.default.factory.createCallExpression(rr(e),void 0,n):rr(D.default.factory.createCallExpression(D.default.factory.createNonNullExpression(e),void 0,n))}},jp=class{static veWillInferAnyFor(t){let e=jp.SINGLETON;return t instanceof pn?t.visit(e):t.receiver.visit(e)}visitUnary(t){return t.expr.visit(this)}visitBinary(t){return t.left.visit(this)||t.right.visit(this)}visitChain(t){return!1}visitConditional(t){return t.condition.visit(this)||t.trueExp.visit(this)||t.falseExp.visit(this)}visitCall(t){return!0}visitSafeCall(t){return!1}visitImplicitReceiver(t){return!1}visitThisReceiver(t){return!1}visitInterpolation(t){return t.expressions.some(e=>e.visit(this))}visitKeyedRead(t){return!1}visitKeyedWrite(t){return!1}visitLiteralArray(t){return!0}visitLiteralMap(t){return!0}visitLiteralPrimitive(t){return!1}visitPipe(t){return!0}visitPrefixNot(t){return t.expression.visit(this)}visitTypeofExpression(t){return t.expression.visit(this)}visitNonNullAssert(t){return t.expression.visit(this)}visitPropertyRead(t){return!1}visitPropertyWrite(t){return!1}visitSafePropertyRead(t){return!1}visitSafeKeyedRead(t){return!1}visitTemplateLiteral(t,e){return!1}visitTemplateLiteralElement(t,e){return!1}},Tl=jp;Hl(Tl,"SINGLETON",new jp);var Jg;(function(t){t[t.UseEmitter=0]="UseEmitter",t[t.CopyClassNodes=1]="CopyClassNodes",t[t.FallbackToAny=2]="FallbackToAny"})(Jg||(Jg={}));var De=class{circularFallback(){return X_}},__=class extends De{constructor(e,n,r){super();a(this,"tcb");a(this,"scope");a(this,"element");this.tcb=e,this.scope=n,this.element=r}get optional(){return!0}execute(){let e=this.tcb.allocateId(),n=g_(this.element.name);return q(n,this.element.startSourceSpan||this.element.sourceSpan),this.scope.addStatement(Mn(e,n)),e}},k_=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"scope");a(this,"template");a(this,"variable");this.tcb=e,this.scope=n,this.template=r,this.variable=s}get optional(){return!1}execute(){let e=this.scope.resolve(this.template),n=this.tcb.allocateId(),r=S.default.factory.createPropertyAccessExpression(e,this.variable.value||"$implicit");q(n,this.variable.keySpan);let s;return this.variable.valueSpan!==void 0?(q(r,this.variable.valueSpan),s=Mn(n,hs(r))):s=Mn(n,r),q(s.declarationList.declarations[0],this.variable.sourceSpan),this.scope.addStatement(s),n}},R_=class extends De{constructor(e,n){super();a(this,"tcb");a(this,"scope");a(this,"optional",!0);this.tcb=e,this.scope=n}execute(){let e=this.tcb.allocateId(),n=S.default.factory.createKeywordTypeNode(S.default.SyntaxKind.AnyKeyword);return this.scope.addStatement(Mo(e,n)),e}},P_=class extends De{constructor(e,n,r){super();a(this,"tcb");a(this,"scope");a(this,"node");a(this,"optional",!1);this.tcb=e,this.scope=n,this.node=r}execute(){let e=this.tcb.allocateId();q(e,this.node.nameSpan);let n=$t(this.node.value,this.tcb,this.scope),r=Mn(e,hs(n),S.default.NodeFlags.Const);return q(r.declarationList.declarations[0],this.node.sourceSpan),this.scope.addStatement(r),e}},M_=class extends De{constructor(e,n,r){super();a(this,"tcb");a(this,"scope");a(this,"template");this.tcb=e,this.scope=n,this.template=r}get optional(){return!1}execute(){let e=[],n=this.tcb.boundTarget.getDirectivesOfNode(this.template);if(n!==null)for(let l of n){let c=this.scope.resolve(this.template,l),u=this.tcb.env.reference(l.ref);if(l.ngTemplateGuards.forEach(p=>{let d=this.template.inputs.find(m=>m.name===p.inputName)||this.template.templateAttrs.find(m=>m instanceof Et&&m.name===p.inputName);if(d!==void 0){let m=$t(d.value,this.tcb,this.scope);if(Lr(m),p.type==="binding")e.push(m);else{let g=Yg(u,`ngTemplateGuard_${p.inputName}`,[c,m]);q(g,d.value.sourceSpan),e.push(g)}}}),l.hasNgTemplateContextGuard)if(this.tcb.env.config.applyTemplateContextGuards){let p=this.scope.resolve(this.template),d=Yg(u,"ngTemplateContextGuard",[c,p]);q(d,this.template.sourceSpan),e.push(d)}else this.template.variables.length>0&&this.tcb.env.config.suggestionsForSuboptimalTypeInference&&this.tcb.oobRecorder.suboptimalTypeInference(this.tcb.id,this.template.variables)}let r=null;e.length>0&&(r=e.reduce((l,c)=>S.default.factory.createBinaryExpression(l,S.default.SyntaxKind.AmpersandAmpersandToken,c),e.pop()));let i=di.forNodes(this.tcb,this.scope,this.template,this.template.children,r).render();if(i.length===0)return null;let o=S.default.factory.createBlock(i);return r!==null&&(o=S.default.factory.createIfStatement(r,o)),this.scope.addStatement(o),null}},_o=class extends De{constructor(e,n,r){super();a(this,"tcb");a(this,"scope");a(this,"expression");this.tcb=e,this.scope=n,this.expression=r}get optional(){return!1}execute(){let e=$t(this.expression,this.tcb,this.scope);return this.scope.addStatement(S.default.factory.createExpressionStatement(e)),null}},hy=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"scope");a(this,"node");a(this,"dir");this.tcb=e,this.scope=n,this.node=r,this.dir=s}get optional(){return!0}execute(){let e=this.dir.ref,n=this.tcb.env.referenceType(this.dir.ref),r;if(this.dir.isGeneric===!1||e.node.typeParameters===void 0)r=n;else{if(!S.default.isTypeReferenceNode(n))throw new Error(`Expected TypeReferenceNode when referencing the type for ${this.dir.ref.debugName}`);let i=e.node.typeParameters.map(()=>S.default.factory.createKeywordTypeNode(S.default.SyntaxKind.AnyKeyword));r=S.default.factory.createTypeReferenceNode(n.typeName,i)}let s=this.tcb.allocateId();return Fo(s,ds.DIRECTIVE),q(s,this.node.startSourceSpan||this.node.sourceSpan),this.scope.addStatement(Mo(s,r)),s}},L_=class extends hy{execute(){let t=this.dir.ref;if(this.dir.isGeneric)throw new Error(`Assertion Error: expected ${t.debugName} not to be generic.`);return super.execute()}},O_=class extends hy{execute(){let t=this.dir.ref;if(t.node.typeParameters===void 0)throw new Error(`Assertion Error: expected typeParameters when creating a declaration for ${t.debugName}`);return super.execute()}},Zg=class extends De{constructor(e,n,r,s,i){super();a(this,"tcb");a(this,"scope");a(this,"node");a(this,"host");a(this,"target");a(this,"optional",!0);this.tcb=e,this.scope=n,this.node=r,this.host=s,this.target=i}execute(){let e=this.tcb.allocateId(),n=this.target instanceof he||this.target instanceof de?this.scope.resolve(this.target):this.scope.resolve(this.host,this.target);return this.target instanceof de&&!this.tcb.env.config.checkTypeOfDomReferences||!this.tcb.env.config.checkTypeOfNonDomReferences?n=S.default.factory.createAsExpression(n,S.default.factory.createKeywordTypeNode(S.default.SyntaxKind.AnyKeyword)):this.target instanceof he&&(n=S.default.factory.createAsExpression(n,S.default.factory.createKeywordTypeNode(S.default.SyntaxKind.AnyKeyword)),n=S.default.factory.createAsExpression(n,this.tcb.env.referenceExternalType("@angular/core","TemplateRef",[kr])),n=S.default.factory.createParenthesizedExpression(n)),q(n,this.node.sourceSpan),q(e,this.node.keySpan),this.scope.addStatement(Mn(e,n)),e}},F_=class extends De{constructor(e,n){super();a(this,"tcb");a(this,"scope");a(this,"optional",!0);this.tcb=e,this.scope=n}execute(){let e=this.tcb.allocateId();return this.scope.addStatement(Mn(e,fs)),e}},B_=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"scope");a(this,"node");a(this,"dir");this.tcb=e,this.scope=n,this.node=r,this.dir=s}get optional(){return!0}execute(){let e=this.tcb.allocateId();Fo(e,ds.DIRECTIVE),q(e,this.node.startSourceSpan||this.node.sourceSpan);let n=new Map,r=dy(this.dir,this.node);for(let i of r)if(!(!this.tcb.env.config.checkTypeOfAttributes&&i.attribute instanceof St))for(let{fieldName:o,isTwoWayBinding:l}of i.inputs){if(n.has(o))continue;let c=my(i.attribute,this.tcb,this.scope);n.set(o,{type:"binding",field:o,expression:c,sourceSpan:i.attribute.sourceSpan,isTwoWayBinding:l})}for(let{classPropertyName:i}of this.dir.inputs)n.has(i)||n.set(i,{type:"unset",field:i});let s=Y_(this.dir,this.tcb,Array.from(n.values()));return Lr(s),this.scope.addStatement(Mn(e,s)),e}circularFallback(){return new U_(this.tcb,this.scope,this.node,this.dir)}},$_=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"scope");a(this,"node");a(this,"dir");this.tcb=e,this.scope=n,this.node=r,this.dir=s}get optional(){return!1}execute(){let e=null,n=dy(this.dir,this.node),r=new Set;for(let s of n){let i=zp(my(s.attribute,this.tcb,this.scope),this.tcb),o=ke(i);for(let{fieldName:l,required:c,transformType:u,isSignal:p,isTwoWayBinding:d}of s.inputs){let m;if(c&&r.add(l),this.dir.coercedInputFields.has(l)){let g;if(u!==null)g=this.tcb.env.referenceTransplantedType(new Os(u));else{let w=this.tcb.env.referenceType(this.dir.ref);if(!S.default.isTypeReferenceNode(w))throw new Error(`Expected TypeReferenceNode from reference to ${this.dir.ref.debugName}`);g=y_(w.typeName,l)}let E=this.tcb.allocateId();this.scope.addStatement(Mo(E,g)),m=E}else{if(this.dir.undeclaredInputFields.has(l))continue;if(!this.tcb.env.config.honorAccessModifiersForInputBindings&&this.dir.restrictedInputFields.has(l)){e===null&&(e=this.scope.resolve(this.node,this.dir));let g=this.tcb.allocateId(),E=this.tcb.env.referenceType(this.dir.ref);if(!S.default.isTypeReferenceNode(E))throw new Error(`Expected TypeReferenceNode from reference to ${this.dir.ref.debugName}`);let w=S.default.factory.createIndexedAccessTypeNode(S.default.factory.createTypeQueryNode(e),S.default.factory.createLiteralTypeNode(S.default.factory.createStringLiteral(l))),x=Mo(g,w);this.scope.addStatement(x),m=g}else e===null&&(e=this.scope.resolve(this.node,this.dir)),m=this.dir.stringLiteralInputFields.has(l)?S.default.factory.createElementAccessExpression(e,S.default.factory.createStringLiteral(l)):S.default.factory.createPropertyAccessExpression(e,S.default.factory.createIdentifier(l))}if(p){let g=this.tcb.env.referenceExternalSymbol(h.InputSignalBrandWriteType.moduleName,h.InputSignalBrandWriteType.name);if(!S.default.isIdentifier(g)&&!S.default.isPropertyAccessExpression(g))throw new Error(`Expected identifier or property access for reference to ${h.InputSignalBrandWriteType.name}`);m=S.default.factory.createElementAccessExpression(m,g)}s.attribute.keySpan!==void 0&&q(m,s.attribute.keySpan),d&&this.tcb.env.config.allowSignalsInTwoWayBindings&&(o=Xp(o,this.tcb)),o=S.default.factory.createBinaryExpression(m,S.default.SyntaxKind.EqualsToken,o)}q(o,s.attribute.sourceSpan),!this.tcb.env.config.checkTypeOfAttributes&&s.attribute instanceof St&&Lr(o),this.scope.addStatement(S.default.factory.createExpressionStatement(o))}return this.checkRequiredInputs(r),null}checkRequiredInputs(e){let n=[];for(let r of this.dir.inputs)r.required&&!e.has(r.classPropertyName)&&n.push(r.bindingPropertyName);n.length>0&&this.tcb.oobRecorder.missingRequiredInputs(this.tcb.id,this.node,this.dir.name,this.dir.isComponent,n)}},U_=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"scope");a(this,"node");a(this,"dir");this.tcb=e,this.scope=n,this.node=r,this.dir=s}get optional(){return!1}execute(){let e=this.tcb.allocateId(),n=this.tcb.env.typeCtorFor(this.dir),r=S.default.factory.createCallExpression(n,void 0,[S.default.factory.createNonNullExpression(S.default.factory.createNull())]);return this.scope.addStatement(Mn(e,r)),e}},Pp=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"element");a(this,"checkElement");a(this,"claimedInputs");this.tcb=e,this.element=n,this.checkElement=r,this.claimedInputs=s}get optional(){return!1}execute(){var e;this.checkElement&&this.tcb.domSchemaChecker.checkElement(this.tcb.id,this.element,this.tcb.schemas,this.tcb.hostIsStandalone);for(let n of this.element.inputs){let r=n.type===J.Property||n.type===J.TwoWay;if(!(r&&this.claimedInputs.has(n.name))&&r&&n.name!=="style"&&n.name!=="class"){let s=(e=fy.get(n.name))!=null?e:n.name;this.tcb.domSchemaChecker.checkProperty(this.tcb.id,this.element,s,n.sourceSpan,this.tcb.schemas,this.tcb.hostIsStandalone)}}return null}},V_=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"element");a(this,"ngContentSelectors");a(this,"componentName");a(this,"category");a(this,"optional",!1);this.tcb=e,this.element=n,this.ngContentSelectors=r,this.componentName=s,this.category=e.env.config.controlFlowPreventingContentProjection==="error"?S.default.DiagnosticCategory.Error:S.default.DiagnosticCategory.Warning}execute(){let e=this.findPotentialControlFlowNodes();if(e.length>0){let n=new yr;for(let r of this.ngContentSelectors)r!=="*"&&n.addSelectables(on.parse(r),r);for(let r of e)for(let s of r.children)(s instanceof de||s instanceof he)&&n.match(Ku(s),(i,o)=>{this.tcb.oobRecorder.controlFlowPreventingContentProjection(this.tcb.id,this.category,s,this.componentName,o,r,this.tcb.hostPreserveWhitespaces)})}return null}findPotentialControlFlowNodes(){let e=[];for(let n of this.element.children)if(n instanceof Dn)this.shouldCheck(n)&&e.push(n),n.empty!==null&&this.shouldCheck(n.empty)&&e.push(n.empty);else if(n instanceof es)for(let r of n.branches)this.shouldCheck(r)&&e.push(r);else if(n instanceof Zr)for(let r of n.cases)this.shouldCheck(r)&&e.push(r);return e}shouldCheck(e){if(e.children.length<2)return!1;let n=!1;for(let r of e.children)if(!(r instanceof rn)||this.tcb.hostPreserveWhitespaces||r.value.trim().length>0){if(n)return!0;n=!0}return!1}},fy=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),ey=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"scope");a(this,"element");a(this,"claimedInputs");this.tcb=e,this.scope=n,this.element=r,this.claimedInputs=s}get optional(){return!1}execute(){var e;let n=null;for(let r of this.element.inputs){let s=r.type===J.Property||r.type===J.TwoWay;if(s&&this.claimedInputs.has(r.name))continue;let i=zp($t(r.value,this.tcb,this.scope),this.tcb);if(this.tcb.env.config.checkTypeOfDomBindings&&s)if(r.name!=="style"&&r.name!=="class"){n===null&&(n=this.scope.resolve(this.element));let o=(e=fy.get(r.name))!=null?e:r.name,l=S.default.factory.createElementAccessExpression(n,S.default.factory.createStringLiteral(o)),c=S.default.factory.createBinaryExpression(l,S.default.SyntaxKind.EqualsToken,ke(i));q(c,r.sourceSpan),this.scope.addStatement(S.default.factory.createExpressionStatement(c))}else this.scope.addStatement(S.default.factory.createExpressionStatement(i));else this.scope.addStatement(S.default.factory.createExpressionStatement(i))}return null}},q_=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"scope");a(this,"node");a(this,"dir");this.tcb=e,this.scope=n,this.node=r,this.dir=s}get optional(){return!1}execute(){let e=null,n=this.dir.outputs;for(let r of this.node.outputs){if(r.type===Oe.Animation||!n.hasBindingPropertyName(r.name))continue;if(this.tcb.env.config.checkTypeOfOutputEvents&&r.name.endsWith("Change")){let o=r.name.slice(0,-6);gy(o,r,this.node.inputs,this.tcb)}let s=n.getByBindingPropertyName(r.name)[0].classPropertyName;e===null&&(e=this.scope.resolve(this.node,this.dir));let i=S.default.factory.createElementAccessExpression(e,S.default.factory.createStringLiteral(s));if(q(i,r.keySpan),this.tcb.env.config.checkTypeOfOutputEvents){let o=Ro(r,this.tcb,this.scope,0),l=S.default.factory.createPropertyAccessExpression(i,"subscribe"),c=S.default.factory.createCallExpression(l,void 0,[o]);q(c,r.sourceSpan),this.scope.addStatement(S.default.factory.createExpressionStatement(c))}else{this.scope.addStatement(S.default.factory.createExpressionStatement(i));let o=Ro(r,this.tcb,this.scope,1);this.scope.addStatement(S.default.factory.createExpressionStatement(o))}}return null}},ty=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"scope");a(this,"element");a(this,"claimedOutputs");this.tcb=e,this.scope=n,this.element=r,this.claimedOutputs=s}get optional(){return!1}execute(){let e=null;for(let n of this.element.outputs)if(!this.claimedOutputs.has(n.name)){if(this.tcb.env.config.checkTypeOfOutputEvents&&n.name.endsWith("Change")){let r=n.name.slice(0,-6);if(gy(r,n,this.element.inputs,this.tcb))continue}if(n.type===Oe.Animation){let r=this.tcb.env.config.checkTypeOfAnimationEvents?this.tcb.env.referenceExternalType("@angular/animations","AnimationEvent"):1,s=Ro(n,this.tcb,this.scope,r);this.scope.addStatement(S.default.factory.createExpressionStatement(s))}else if(this.tcb.env.config.checkTypeOfDomEvents){let r=Ro(n,this.tcb,this.scope,0);e===null&&(e=this.scope.resolve(this.element));let s=S.default.factory.createPropertyAccessExpression(e,"addEventListener");q(s,n.keySpan);let i=S.default.factory.createCallExpression(s,void 0,[S.default.factory.createStringLiteral(n.name),r]);q(i,n.sourceSpan),this.scope.addStatement(S.default.factory.createExpressionStatement(i))}else{let r=Ro(n,this.tcb,this.scope,1);this.scope.addStatement(S.default.factory.createExpressionStatement(r))}}return null}},H_=class extends De{constructor(e){super();a(this,"scope");a(this,"optional",!1);this.scope=e}execute(){let e=S.default.factory.createThis(),n=S.default.factory.createPropertyAccessExpression(e,"");return Lr(n),Fo(n,ds.COMPONENT_COMPLETION),this.scope.addStatement(S.default.factory.createExpressionStatement(n)),null}},G_=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"scope");a(this,"initializer");a(this,"variable");this.tcb=e,this.scope=n,this.initializer=r,this.variable=s}get optional(){return!1}execute(){let e=this.tcb.allocateId();q(e,this.variable.keySpan);let n=Mn(e,hs(this.initializer));return q(n.declarationList.declarations[0],this.variable.sourceSpan),this.scope.addStatement(n),e}},W_=class extends De{constructor(e,n,r,s){super();a(this,"tcb");a(this,"scope");a(this,"type");a(this,"variable");a(this,"optional",!0);this.tcb=e,this.scope=n,this.type=r,this.variable=s}execute(){let e=this.tcb.allocateId();q(e,this.variable.keySpan);let n=Mo(e,this.type);return q(n.declarationList.declarations[0],this.variable.sourceSpan),this.scope.addStatement(n),e}},j_=class extends De{constructor(e,n,r){super();a(this,"tcb");a(this,"scope");a(this,"block");a(this,"expressionScopes",new Map);this.tcb=e,this.scope=n,this.block=r}get optional(){return!1}execute(){let e=this.generateBranch(0);return e&&this.scope.addStatement(e),null}generateBranch(e){let n=this.block.branches[e];if(!n)return;if(n.expression===null){let o=this.getBranchScope(this.scope,n,e);return S.default.factory.createBlock(o.render())}let r=di.forNodes(this.tcb,this.scope,n,[],null);r.render().forEach(o=>this.scope.addStatement(o)),this.expressionScopes.set(n,r);let s=$t(n.expression,this.tcb,this.scope);n.expressionAlias!==null&&(s=S.default.factory.createBinaryExpression(S.default.factory.createParenthesizedExpression(s),S.default.SyntaxKind.AmpersandAmpersandToken,r.resolve(n.expressionAlias)));let i=this.getBranchScope(r,n,e);return S.default.factory.createIfStatement(s,S.default.factory.createBlock(i.render()),this.generateBranch(e+1))}getBranchScope(e,n,r){let s=this.tcb.env.config.checkControlFlowBodies;return di.forNodes(this.tcb,e,null,s?n.children:[],s?this.generateBranchGuard(r):null)}generateBranchGuard(e){let n=null;for(let r=0;r<=e;r++){let s=this.block.branches[r];if(s.expression===null)continue;if(!this.expressionScopes.has(s))throw new Error(`Could not determine expression scope of branch at index ${r}`);let i=this.expressionScopes.get(s),o;o=$t(s.expression,this.tcb,i),s.expressionAlias!==null&&(o=S.default.factory.createBinaryExpression(S.default.factory.createParenthesizedExpression(o),S.default.SyntaxKind.AmpersandAmpersandToken,i.resolve(s.expressionAlias))),Lr(o);let l=r===e?o:S.default.factory.createPrefixUnaryExpression(S.default.SyntaxKind.ExclamationToken,S.default.factory.createParenthesizedExpression(o));n=n===null?l:S.default.factory.createBinaryExpression(n,S.default.SyntaxKind.AmpersandAmpersandToken,l)}return n}},K_=class extends De{constructor(e,n,r){super();a(this,"tcb");a(this,"scope");a(this,"block");this.tcb=e,this.scope=n,this.block=r}get optional(){return!1}execute(){let e=$t(this.block.expression,this.tcb,this.scope),n=this.block.cases.map(r=>{let s=this.tcb.env.config.checkControlFlowBodies,i=di.forNodes(this.tcb,this.scope,null,s?r.children:[],s?this.generateGuard(r,e):null),o=[...i.render(),S.default.factory.createBreakStatement()];return r.expression===null?S.default.factory.createDefaultClause(o):S.default.factory.createCaseClause($t(r.expression,this.tcb,i),o)});return this.scope.addStatement(S.default.factory.createSwitchStatement(e,S.default.factory.createCaseBlock(n))),null}generateGuard(e,n){if(e.expression!==null){let s=$t(e.expression,this.tcb,this.scope);return Lr(s),S.default.factory.createBinaryExpression(n,S.default.SyntaxKind.EqualsEqualsEqualsToken,s)}let r=null;for(let s of this.block.cases){if(s.expression===null)continue;let i=$t(s.expression,this.tcb,this.scope);Lr(i);let o=S.default.factory.createBinaryExpression(n,S.default.SyntaxKind.ExclamationEqualsEqualsToken,i);r===null?r=o:r=S.default.factory.createBinaryExpression(r,S.default.SyntaxKind.AmpersandAmpersandToken,o)}return r}},z_=class extends De{constructor(e,n,r){super();a(this,"tcb");a(this,"scope");a(this,"block");this.tcb=e,this.scope=n,this.block=r}get optional(){return!1}execute(){let e=di.forNodes(this.tcb,this.scope,this.block,this.tcb.env.config.checkControlFlowBodies?this.block.children:[],null),n=e.resolve(this.block.item);if(!S.default.isIdentifier(n))throw new Error(`Could not resolve for loop variable ${this.block.item.name} to an identifier`);let r=S.default.factory.createVariableDeclarationList([S.default.factory.createVariableDeclaration(n)],S.default.NodeFlags.Const);q(r,this.block.item.keySpan);let s=S.default.factory.createNonNullExpression($t(this.block.expression,this.tcb,this.scope)),o=new Z_(this.tcb,e,this.block).translate(this.block.trackBy),l=[...e.render(),S.default.factory.createExpressionStatement(o)];return this.scope.addStatement(S.default.factory.createForOfStatement(void 0,r,s,S.default.factory.createBlock(l))),null}},X_=S.default.factory.createNonNullExpression(S.default.factory.createNull());var xl=class{constructor(t,e=null,n=null){a(this,"tcb");a(this,"parent");a(this,"guard");a(this,"opQueue",[]);a(this,"elementOpMap",new Map);a(this,"directiveOpMap",new Map);a(this,"referenceOpMap",new Map);a(this,"templateCtxOpMap",new Map);a(this,"varMap",new Map);a(this,"letDeclOpMap",new Map);a(this,"statements",[]);this.tcb=t,this.parent=e,this.guard=n}static forNodes(t,e,n,r,s){let i=new xl(t,e,s);if(e===null&&t.env.config.enableTemplateTypeChecker&&i.opQueue.push(new H_(i)),n instanceof he){let o=new Map;for(let l of n.variables){if(!o.has(l.name))o.set(l.name,l);else{let c=o.get(l.name);t.oobRecorder.duplicateTemplateVar(t.id,l,c)}this.registerVariable(i,l,new k_(t,i,n,l))}}else if(n instanceof Vn){let{expression:o,expressionAlias:l}=n;o!==null&&l!==null&&this.registerVariable(i,l,new G_(t,i,$t(o,t,i),l))}else if(n instanceof Dn){let o=t.allocateId();q(o,n.item.sourceSpan),i.varMap.set(n.item,o);for(let l of n.contextVariables){if(!this.forLoopContextVariableTypes.has(l.value))throw new Error(`Unrecognized for loop context variable ${l.name}`);let c=S.default.factory.createKeywordTypeNode(this.forLoopContextVariableTypes.get(l.value));this.registerVariable(i,l,new W_(t,i,c,l))}}for(let o of r)i.appendNode(o);for(let o of i.varMap.keys())xl.checkConflictingLet(i,o);for(let o of i.referenceOpMap.keys())xl.checkConflictingLet(i,o);return i}static registerVariable(t,e,n){let r=t.opQueue.push(n)-1;t.varMap.set(e,r)}resolve(t,e){let n=this.resolveLocal(t,e);if(n!==null){let r;if(S.default.isIdentifier(n))r=S.default.factory.createIdentifier(n.text);else if(S.default.isNonNullExpression(n))r=S.default.factory.createNonNullExpression(n.expression);else throw new Error(`Could not resolve ${t} to an Identifier or a NonNullExpression`);return S.default.setOriginalNode(r,n),r.parent=r.parent,S.default.setSyntheticTrailingComments(r,[])}else{if(this.parent!==null)return this.parent.resolve(t,e);throw new Error(`Could not resolve ${t} / ${e}`)}}addStatement(t){this.statements.push(t)}render(){for(let t=0;t<this.opQueue.length;t++){let e=!this.tcb.env.config.enableTemplateTypeChecker;this.executeOp(t,e)}return this.statements}guards(){let t=null;return this.parent!==null&&(t=this.parent.guards()),this.guard===null?t:t===null?this.guard:S.default.factory.createBinaryExpression(t,S.default.SyntaxKind.AmpersandAmpersandToken,this.guard)}isLocal(t){return t instanceof wt?this.varMap.has(t):t instanceof ot?this.letDeclOpMap.has(t.name):this.referenceOpMap.has(t)}resolveLocal(t,e){if(t instanceof _n&&this.referenceOpMap.has(t))return this.resolveOp(this.referenceOpMap.get(t));if(t instanceof ot&&this.letDeclOpMap.has(t.name))return this.resolveOp(this.letDeclOpMap.get(t.name).opIndex);if(t instanceof wt&&this.varMap.has(t)){let n=this.varMap.get(t);return typeof n=="number"?this.resolveOp(n):n}else{if(t instanceof he&&e===void 0&&this.templateCtxOpMap.has(t))return this.resolveOp(this.templateCtxOpMap.get(t));if((t instanceof de||t instanceof he)&&e!==void 0&&this.directiveOpMap.has(t)){let n=this.directiveOpMap.get(t);return n.has(e)?this.resolveOp(n.get(e)):null}else return t instanceof de&&this.elementOpMap.has(t)?this.resolveOp(this.elementOpMap.get(t)):null}}resolveOp(t){let e=this.executeOp(t,!1);if(e===null)throw new Error("Error resolving operation, got null");return e}executeOp(t,e){let n=this.opQueue[t];if(!(n instanceof De))return n;if(e&&n.optional)return null;this.opQueue[t]=n.circularFallback();let r=n.execute();return this.opQueue[t]=r,r}appendNode(t){if(t instanceof de){let e=this.opQueue.push(new __(this.tcb,this,t))-1;this.elementOpMap.set(t,e),this.tcb.env.config.controlFlowPreventingContentProjection!=="suppress"&&this.appendContentProjectionCheckOp(t),this.appendDirectivesAndInputsOfNode(t),this.appendOutputsOfNode(t),this.appendChildren(t),this.checkAndAppendReferencesOfNode(t)}else if(t instanceof he){this.appendDirectivesAndInputsOfNode(t),this.appendOutputsOfNode(t);let e=this.opQueue.push(new R_(this.tcb,this))-1;this.templateCtxOpMap.set(t,e),this.tcb.env.config.checkTemplateBodies?this.opQueue.push(new M_(this.tcb,this,t)):this.tcb.env.config.alwaysCheckSchemaInTemplateBodies&&this.appendDeepSchemaChecks(t.children),this.checkAndAppendReferencesOfNode(t)}else if(t instanceof Qn)this.appendDeferredBlock(t);else if(t instanceof es)this.opQueue.push(new j_(this.tcb,this,t));else if(t instanceof Zr)this.opQueue.push(new K_(this.tcb,this,t));else if(t instanceof Dn)this.opQueue.push(new z_(this.tcb,this,t)),t.empty&&this.tcb.env.config.checkControlFlowBodies&&this.appendChildren(t.empty);else if(t instanceof Xn)this.opQueue.push(new _o(this.tcb,this,t.value));else if(t instanceof zs)this.appendIcuExpressions(t);else if(t instanceof Cr)this.appendChildren(t);else if(t instanceof ot){let e=this.opQueue.push(new P_(this.tcb,this,t))-1;this.isLocal(t)?this.tcb.oobRecorder.conflictingDeclaration(this.tcb.id,t):this.letDeclOpMap.set(t.name,{opIndex:e,node:t})}}appendChildren(t){for(let e of t.children)this.appendNode(e)}checkAndAppendReferencesOfNode(t){for(let e of t.references){let n=this.tcb.boundTarget.getReferenceTarget(e),r;n===null?(this.tcb.oobRecorder.missingReferenceTarget(this.tcb.id,e),r=this.opQueue.push(new F_(this.tcb,this))-1):n instanceof he||n instanceof de?r=this.opQueue.push(new Zg(this.tcb,this,e,t,n))-1:r=this.opQueue.push(new Zg(this.tcb,this,e,t,n.directive))-1,this.referenceOpMap.set(e,r)}}appendDirectivesAndInputsOfNode(t){let e=new Set,n=this.tcb.boundTarget.getDirectivesOfNode(t);if(n===null||n.length===0){t instanceof de&&(this.opQueue.push(new ey(this.tcb,this,t,e)),this.opQueue.push(new Pp(this.tcb,t,!0,e)));return}else t instanceof de&&!this.tcb.boundTarget.isDeferred(t)&&n.some(i=>i.isExplicitlyDeferred)&&this.tcb.oobRecorder.deferredComponentUsedEagerly(this.tcb.id,t);let r=new Map;for(let s of n){let i,o=this.tcb.env.reflector,l=s.ref;s.isGeneric?!x_(l.node,o,this.tcb.env)||this.tcb.env.config.useInlineTypeConstructors?i=new B_(this.tcb,this,t,s):i=new O_(this.tcb,this,t,s):i=new L_(this.tcb,this,t,s);let c=this.opQueue.push(i)-1;r.set(s,c),this.opQueue.push(new $_(this.tcb,this,t,s))}if(this.directiveOpMap.set(t,r),t instanceof de){for(let i of n)for(let o of i.inputs.propertyNames)e.add(o);this.opQueue.push(new ey(this.tcb,this,t,e));let s=n.length===0;this.opQueue.push(new Pp(this.tcb,t,s,e))}}appendOutputsOfNode(t){let e=new Set,n=this.tcb.boundTarget.getDirectivesOfNode(t);if(n===null||n.length===0){t instanceof de&&this.opQueue.push(new ty(this.tcb,this,t,e));return}for(let r of n)this.opQueue.push(new q_(this.tcb,this,t,r));if(t instanceof de){for(let r of n)for(let s of r.outputs.propertyNames)e.add(s);this.opQueue.push(new ty(this.tcb,this,t,e))}}appendDeepSchemaChecks(t){for(let e of t)if(e instanceof de||e instanceof he){if(e instanceof de){let n=new Set,r=this.tcb.boundTarget.getDirectivesOfNode(e),s;if(r===null||r.length===0)s=!1;else{s=!0;for(let i of r)for(let o of i.inputs.propertyNames)n.add(o)}this.opQueue.push(new Pp(this.tcb,e,!s,n))}this.appendDeepSchemaChecks(e.children)}}appendIcuExpressions(t){for(let e of Object.values(t.vars))this.opQueue.push(new _o(this.tcb,this,e.value));for(let e of Object.values(t.placeholders))e instanceof Xn&&this.opQueue.push(new _o(this.tcb,this,e.value))}appendContentProjectionCheckOp(t){var e;let n=((e=this.tcb.boundTarget.getDirectivesOfNode(t))==null?void 0:e.find(r=>r.isComponent))||null;if(n!==null&&n.ngContentSelectors!==null&&n.ngContentSelectors.length>0){let r=n.ngContentSelectors;(r.length>1||r.length===1&&r[0]!=="*")&&this.opQueue.push(new V_(this.tcb,t,r,n.name))}}appendDeferredBlock(t){this.appendDeferredTriggers(t,t.triggers),this.appendDeferredTriggers(t,t.prefetchTriggers),t.hydrateTriggers.when&&this.opQueue.push(new _o(this.tcb,this,t.hydrateTriggers.when.value)),this.appendChildren(t),t.placeholder!==null&&this.appendChildren(t.placeholder),t.loading!==null&&this.appendChildren(t.loading),t.error!==null&&this.appendChildren(t.error)}appendDeferredTriggers(t,e){e.when!==void 0&&this.opQueue.push(new _o(this.tcb,this,e.when.value)),e.hover!==void 0&&this.appendReferenceBasedDeferredTrigger(t,e.hover),e.interaction!==void 0&&this.appendReferenceBasedDeferredTrigger(t,e.interaction),e.viewport!==void 0&&this.appendReferenceBasedDeferredTrigger(t,e.viewport)}appendReferenceBasedDeferredTrigger(t,e){this.tcb.boundTarget.getDeferredTriggerTarget(t,e)===null&&this.tcb.oobRecorder.inaccessibleDeferredTriggerElement(this.tcb.id,e)}static checkConflictingLet(t,e){t.letDeclOpMap.has(e.name)&&t.tcb.oobRecorder.conflictingDeclaration(t.tcb.id,t.letDeclOpMap.get(e.name).node)}},di=xl;Hl(di,"forLoopContextVariableTypes",new Map([["$first",S.default.SyntaxKind.BooleanKeyword],["$last",S.default.SyntaxKind.BooleanKeyword],["$even",S.default.SyntaxKind.BooleanKeyword],["$odd",S.default.SyntaxKind.BooleanKeyword],["$index",S.default.SyntaxKind.NumberKeyword],["$count",S.default.SyntaxKind.NumberKeyword]]));function $t(t,e,n){return new Kp(e,n).translate(t)}var Kp=class{constructor(t,e){a(this,"tcb");a(this,"scope");this.tcb=t,this.scope=e}translate(t){return b_(t,e=>this.resolve(e),this.tcb.env.config)}resolve(t){if(t instanceof Me&&t.receiver instanceof Re&&!(t.receiver instanceof un)){let e=this.tcb.boundTarget.getExpressionTarget(t),n=e===null?null:this.getTargetNodeExpression(e,t);return e instanceof ot&&!this.isValidLetDeclarationAccess(e,t)&&(this.tcb.oobRecorder.letUsedBeforeDefinition(this.tcb.id,t,e),n!==null)?S.default.factory.createAsExpression(n,S.default.factory.createKeywordTypeNode(S.default.SyntaxKind.AnyKeyword)):n}else if(t instanceof Kn&&t.receiver instanceof Re){let e=this.tcb.boundTarget.getExpressionTarget(t);if(e===null)return null;let n=this.getTargetNodeExpression(e,t),r=this.translate(t.value),s=S.default.factory.createParenthesizedExpression(S.default.factory.createBinaryExpression(n,S.default.SyntaxKind.EqualsToken,r));return q(s,t.sourceSpan),e instanceof ot&&(Lr(s),this.tcb.oobRecorder.illegalWriteToLetDeclaration(this.tcb.id,t,e)),s}else{if(t instanceof Re)return S.default.factory.createThis();if(t instanceof Jr){let e=this.translate(t.exp),n=this.tcb.getPipeByName(t.name),r;n===null?(this.tcb.oobRecorder.missingPipe(this.tcb.id,t),r=fs):n.isExplicitlyDeferred&&this.tcb.boundTarget.getEagerlyUsedPipes().includes(t.name)?(this.tcb.oobRecorder.deferredPipeUsedEagerly(this.tcb.id,t),r=fs):r=this.tcb.env.pipeInst(n.ref);let s=t.args.map(l=>this.translate(l)),i=S.default.factory.createPropertyAccessExpression(r,"transform");q(i,t.nameSpan),this.tcb.env.config.checkTypeOfPipes||(i=S.default.factory.createAsExpression(i,S.default.factory.createKeywordTypeNode(S.default.SyntaxKind.AnyKeyword)));let o=S.default.factory.createCallExpression(i,void 0,[e,...s]);return q(o,t.sourceSpan),o}else if((t instanceof pn||t instanceof Nn)&&(t.receiver instanceof Me||t.receiver instanceof vt)){if(t.receiver.receiver instanceof Re&&!(t.receiver.receiver instanceof un)&&t.receiver.name==="$any"&&t.args.length===1){let o=this.translate(t.args[0]),l=S.default.factory.createAsExpression(o,S.default.factory.createKeywordTypeNode(S.default.SyntaxKind.AnyKeyword)),c=S.default.factory.createParenthesizedExpression(l);return q(c,t.sourceSpan),c}let e=this.tcb.boundTarget.getExpressionTarget(t);if(e===null)return null;let n=this.getTargetNodeExpression(e,t),r=ke(n);q(r,t.receiver.nameSpan);let s=t.args.map(o=>this.translate(o)),i=S.default.factory.createCallExpression(r,void 0,s);return q(i,t.sourceSpan),i}else return null}}getTargetNodeExpression(t,e){let n=this.scope.resolve(t);return q(n,e.sourceSpan),n}isValidLetDeclarationAccess(t,e){let n=t.sourceSpan.start.offset,r=t.sourceSpan.end.offset,s=e.sourceSpan.start;return n<s&&s>r||!this.scope.isLocal(t)}};function Y_(t,e,n){let r=e.env.typeCtorFor(t),s=n.map(i=>{let o=S.default.factory.createStringLiteral(i.field);if(i.type==="binding"){let l=zp(i.expression,e);i.isTwoWayBinding&&e.env.config.allowSignalsInTwoWayBindings&&(l=Xp(l,e));let c=S.default.factory.createPropertyAssignment(o,ke(l));return q(c,i.sourceSpan),c}else return S.default.factory.createPropertyAssignment(o,fs)});return S.default.factory.createCallExpression(r,void 0,[S.default.factory.createObjectLiteralExpression(s)])}function dy(t,e){let n=[],r=s=>{if(s instanceof Et&&s.type!==J.Property&&s.type!==J.TwoWay)return;let i=t.inputs.getByBindingPropertyName(s.name);i!==null&&n.push({attribute:s,inputs:i.map(o=>{var l;return{fieldName:o.classPropertyName,required:o.required,transformType:((l=o.transform)==null?void 0:l.type)||null,isSignal:o.isSignal,isTwoWayBinding:s instanceof Et&&s.type===J.TwoWay}})})};return e.inputs.forEach(r),e.attributes.forEach(r),e instanceof he&&e.templateAttrs.forEach(r),n}function my(t,e,n){return t instanceof Et?$t(t.value,e,n):S.default.factory.createStringLiteral(t.value)}function zp(t,e){return e.env.config.checkTypeOfInputBindings?e.env.config.strictNullInputBindings||S.default.isObjectLiteralExpression(t)||S.default.isArrayLiteralExpression(t)?t:S.default.factory.createNonNullExpression(t):rr(t)}function Xp(t,e){let n=e.env.referenceExternalSymbol(h.unwrapWritableSignal.moduleName,h.unwrapWritableSignal.name);return S.default.factory.createCallExpression(n,void 0,[t])}var Il="$event";function Ro(t,e,n,r){let s=Q_(t.handler,e,n),i=[];if(t.type===Oe.TwoWay&&e.env.config.checkTwoWayBoundEvents){let p=e.allocateId(),d=S.default.factory.createBinaryExpression(p,S.default.SyntaxKind.EqualsToken,S.default.factory.createIdentifier(Il));i.push(Mn(p,e.env.config.allowSignalsInTwoWayBindings?Xp(s,e):s),S.default.factory.createExpressionStatement(d))}else i.push(S.default.factory.createExpressionStatement(s));let o;r===0?o=void 0:r===1?o=S.default.factory.createKeywordTypeNode(S.default.SyntaxKind.AnyKeyword):o=r;let l=n.guards(),c=S.default.factory.createBlock(i);l!==null&&(c=S.default.factory.createBlock([S.default.factory.createIfStatement(l,c)]));let u=S.default.factory.createParameterDeclaration(void 0,void 0,Il,void 0,o);return Fo(u,ds.EVENT_PARAMETER),S.default.factory.createArrowFunction(void 0,void 0,[u],S.default.factory.createKeywordTypeNode(S.default.SyntaxKind.AnyKeyword),void 0,c)}function Q_(t,e,n){return new J_(e,n).translate(t)}function gy(t,e,n,r){let s=n.find(l=>l.name===t);if(s===void 0||s.sourceSpan!==e.sourceSpan)return!1;let i=r.boundTarget.getConsumerOfBinding(s),o=r.boundTarget.getConsumerOfBinding(e);return o===null||i.ref===void 0||o instanceof he?!1:o instanceof de?(r.oobRecorder.splitTwoWayBinding(r.id,s,e,i.ref.node,o),!0):o.ref!==i.ref?(r.oobRecorder.splitTwoWayBinding(r.id,s,e,i.ref.node,o.ref.node),!0):!1}var J_=class extends Kp{resolve(t){if(t instanceof Me&&t.receiver instanceof Re&&!(t.receiver instanceof un)&&t.name===Il){let e=S.default.factory.createIdentifier(Il);return q(e,t.nameSpan),e}return super.resolve(t)}isValidLetDeclarationAccess(){return!0}},Z_=class extends Kp{constructor(e,n,r){super(e,n);a(this,"block");a(this,"allowedVariables");this.block=r,this.allowedVariables=new Set([r.item]);for(let s of r.contextVariables)s.value==="$index"&&this.allowedVariables.add(s)}resolve(e){if(e instanceof Me&&e.receiver instanceof Re){let n=this.tcb.boundTarget.getExpressionTarget(e);n!==null&&(!(n instanceof wt)||!this.allowedVariables.has(n))&&this.tcb.oobRecorder.illegalForLoopTrackAccess(this.tcb.id,this.block,e)}return super.resolve(e)}};var ny;(function(t){t[t.InlineOps=0]="InlineOps",t[t.Error=1]="Error"})(ny||(ny={}));var z2=new gn;var Q2=class extends Rr.RecursiveAstVisitor{constructor(){super(...arguments);a(this,"allReads",new Set);a(this,"namespaceReads",new Set);a(this,"addAllTopLevelIdentifiers",e=>{se.default.isIdentifier(e)&&this.isTopLevelIdentifierReference(e)?this.allReads.add(e):se.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(se.default.isParenthesizedExpression(r)&&r.expression===n)for(;r&&se.default.isParenthesizedExpression(r);)n=r,r=r.parent;return se.default.isSourceFile(r)?!0:se.default.isCallExpression(r)?r.expression===n||r.arguments.includes(n):se.default.isExpressionStatement(r)||se.default.isPropertyAccessExpression(r)||se.default.isComputedPropertyName(r)||se.default.isTemplateSpan(r)||se.default.isSpreadAssignment(r)||se.default.isSpreadElement(r)||se.default.isAwaitExpression(r)||se.default.isNonNullExpression(r)||se.default.isIfStatement(r)||se.default.isDoStatement(r)||se.default.isWhileStatement(r)||se.default.isSwitchStatement(r)||se.default.isCaseClause(r)||se.default.isThrowStatement(r)||se.default.isNewExpression(r)?r.expression===n:se.default.isArrayLiteralExpression(r)?r.elements.includes(n):se.default.isPropertyAssignment(r)||se.default.isParameter(r)||se.default.isBindingElement(r)||se.default.isPropertyDeclaration(r)||se.default.isEnumMember(r)?r.initializer===n:se.default.isVariableDeclaration(r)?r.name===n||r.initializer===n:se.default.isClassDeclaration(r)||se.default.isFunctionDeclaration(r)||se.default.isShorthandPropertyAssignment(r)?r.name===n:se.default.isElementAccessExpression(r)?r.expression===n||r.argumentExpression===n:se.default.isBinaryExpression(r)?r.left===n||r.right===n:se.default.isForInStatement(r)||se.default.isForOfStatement(r)?r.expression===n||r.initializer===n:se.default.isForStatement(r)?r.condition===n||r.initializer===n||r.incrementor===n:se.default.isArrowFunction(r)?r.body===n:se.default.isImportSpecifier(r)||se.default.isExportSpecifier(r)?(r.propertyName||r.name)===n:se.default.isConditionalExpression(r)?r.condition===n||r.whenFalse===n||r.whenTrue===n:!1}isTypeScriptNode(e){return!!e&&typeof e.kind=="number"}};var N=I(require("typescript"),1),Or=I(require("typescript"),1),bl=I(require("typescript"),1),Cy=I(require("typescript"),1);var BF=(0,vy.createRequire)(M);function Yp(t,e){return e||t.import!==null&&t.import.from==="@angular/core"}var Sy="!Array<{type: !Function, args: (undefined|!Array<?>)}>";function Ey(t,e){let n=[],r=t.expression;switch(r.kind){case N.default.SyntaxKind.Identifier:n.push(N.default.factory.createPropertyAssignment("type",r));break;case N.default.SyntaxKind.CallExpression:let s=r;if(n.push(N.default.factory.createPropertyAssignment("type",s.expression)),s.arguments.length){let i=[];for(let l of s.arguments)i.push(l);let o=N.default.factory.createArrayLiteralExpression(N.default.factory.createNodeArray(i,!0));n.push(N.default.factory.createPropertyAssignment("args",o))}break;default:e.push({file:t.getSourceFile(),start:t.getStart(),length:t.getEnd()-t.getStart(),messageText:`${N.default.SyntaxKind[t.kind]} not implemented in gathering decorator metadata.`,category:N.default.DiagnosticCategory.Error,code:0});break}return N.default.factory.createObjectLiteralExpression(n)}function ik(t,e,n,r){let s=[];for(let l of n){if(!l.type&&l.decorators.length===0){s.push(N.default.factory.createNull());continue}let c=l.type?wy(e,l.type):void 0,u=[N.default.factory.createPropertyAssignment("type",c||N.default.factory.createIdentifier("undefined"))],p=[];for(let d of l.decorators)p.push(Ey(d,t));p.length&&u.push(N.default.factory.createPropertyAssignment("decorators",N.default.factory.createArrayLiteralExpression(p))),s.push(N.default.factory.createObjectLiteralExpression(u))}let i=N.default.factory.createArrowFunction(void 0,void 0,[],void 0,N.default.factory.createToken(N.default.SyntaxKind.EqualsGreaterThanToken),N.default.factory.createArrayLiteralExpression(s,!0)),o=N.default.factory.createPropertyDeclaration([N.default.factory.createToken(N.default.SyntaxKind.StaticKeyword)],"ctorParameters",void 0,void 0,i);return r&&N.default.setSyntheticLeadingComments(o,[{kind:N.default.SyntaxKind.MultiLineCommentTrivia,text:["*"," * @type {function(): !Array<(null|{"," * type: ?,",` * decorators: (undefined|${Sy}),`," * })>}"," * @nocollapse"," "].join(`
|
|
44
|
+
`),pos:-1,end:-1,hasTrailingNewLine:!0}]),o}function wy(t,e){let n=e.kind;switch(N.default.isLiteralTypeNode(e)&&(n=e.literal.kind),n){case N.default.SyntaxKind.FunctionType:case N.default.SyntaxKind.ConstructorType:return N.default.factory.createIdentifier("Function");case N.default.SyntaxKind.ArrayType:case N.default.SyntaxKind.TupleType:return N.default.factory.createIdentifier("Array");case N.default.SyntaxKind.TypePredicate:case N.default.SyntaxKind.TrueKeyword:case N.default.SyntaxKind.FalseKeyword:case N.default.SyntaxKind.BooleanKeyword:return N.default.factory.createIdentifier("Boolean");case N.default.SyntaxKind.StringLiteral:case N.default.SyntaxKind.StringKeyword:return N.default.factory.createIdentifier("String");case N.default.SyntaxKind.ObjectKeyword:return N.default.factory.createIdentifier("Object");case N.default.SyntaxKind.NumberKeyword:case N.default.SyntaxKind.NumericLiteral:return N.default.factory.createIdentifier("Number");case N.default.SyntaxKind.TypeReference:return t(e.typeName);case N.default.SyntaxKind.UnionType:let s=e.types.filter(i=>!(N.default.isLiteralTypeNode(i)&&i.literal.kind===N.default.SyntaxKind.NullKeyword));return s.length===1?wy(t,s[0]):void 0;default:return}}function ok(t,e){return e.flags&N.default.SymbolFlags.Alias&&(e=t.getAliasedSymbol(e)),(e.flags&N.default.SymbolFlags.Value&N.default.SymbolFlags.ConstEnumExcludes)!==0}function Ty(t,e,n,r,s,i){function o(c,u){s&&N.default.setSyntheticLeadingComments(c,[{kind:N.default.SyntaxKind.MultiLineCommentTrivia,text:`* @type {${u}} `,pos:-1,end:-1,hasTrailingNewLine:!0}])}function l(c,u){let p=[];for(let[g,E]of u.entries())p.push(N.default.factory.createPropertyAssignment(g,N.default.factory.createArrayLiteralExpression(E.map(w=>Ey(w,c)))));let d=N.default.factory.createObjectLiteralExpression(p,!0),m=N.default.factory.createPropertyDeclaration([N.default.factory.createToken(N.default.SyntaxKind.StaticKeyword)],"propDecorators",void 0,void 0,d);return o(m,`!Object<string, ${Sy}>`),m}return c=>{let u=bp(c);function p(w){let x=t.getSymbolAtLocation(w);if(!x||!ok(t,x)||!x.declarations||x.declarations.length===0)return;if(N.default.isQualifiedName(w)){let _=p(w.left);return _===void 0?void 0:N.default.factory.createPropertyAccessExpression(_,w.right)}let k=x.declarations[0];return Dp(k)&&(u==null||u.add(k),k.name!==void 0)?N.default.setOriginalNode(N.default.factory.createIdentifier(k.name.text),k.name):N.default.setOriginalNode(N.default.factory.createIdentifier(w.text),w)}function d(w){w=N.default.visitEachChild(w,E,c);let x=[],k=[],_=e.getDecoratorsOfDeclaration(w)||[];for(let te of _){let ae=te.node;if(!Yp(te,r)){x.push(ae);continue}k.push(ae)}if(!k.length)return[void 0,w,[]];if(!w.name||!N.default.isIdentifier(w.name))return n.push({file:w.getSourceFile(),start:w.getStart(),length:w.getEnd()-w.getStart(),messageText:"Cannot process decorators for class element with non-analyzable name.",category:N.default.DiagnosticCategory.Error,code:0}),[void 0,w,[]];let H=N.default.canHaveModifiers(w)?N.default.getModifiers(w):void 0,V;return(x.length||H!=null&&H.length)&&(V=N.default.setTextRange(N.default.factory.createNodeArray([...x,...H||[]]),w.modifiers)),[w.name.text,ak(w,V),k]}function m(w){w=N.default.visitEachChild(w,E,c);let x=[],k=w.parameters,_=[];for(let V of k){let te=[],ae={decorators:[],type:null},oe=e.getDecoratorsOfDeclaration(V)||[];for(let vi of oe){let Si=vi.node;if(!Yp(vi,r)){te.push(Si);continue}ae.decorators.push(Si)}V.type&&(ae.type=V.type),_.push(ae);let Be,Vt=N.default.getModifiers(V);(te.length||Vt!=null&&Vt.length)&&(Be=[...te,...Vt||[]]);let gs=N.default.factory.updateParameterDeclaration(V,Be,V.dotDotDotToken,V.name,V.questionToken,V.type,V.initializer);x.push(gs)}return[N.default.factory.updateConstructorDeclaration(w,N.default.getModifiers(w),x,w.body),_]}function g(w){let x=[],k=new Map,_=null;for(let ae of w.members){switch(ae.kind){case N.default.SyntaxKind.PropertyDeclaration:case N.default.SyntaxKind.GetAccessor:case N.default.SyntaxKind.SetAccessor:case N.default.SyntaxKind.MethodDeclaration:{let[oe,Be,Vt]=d(ae);x.push(Be),oe&&k.set(oe,Vt);continue}case N.default.SyntaxKind.Constructor:{if(!ae.body)break;let[Be,Vt]=m(ae);_=Vt,x.push(Be);continue}default:break}x.push(N.default.visitEachChild(ae,E,c))}let V=(e.getDecoratorsOfDeclaration(w)||[]).some(ae=>Yp(ae,r));_&&(V||_.some(ae=>!!ae.decorators.length))&&x.push(ik(n,p,_,s)),k.size&&x.push(l(n,k));let te=N.default.setTextRange(N.default.factory.createNodeArray(x,w.members.hasTrailingComma),w.members);return N.default.factory.updateClassDeclaration(w,w.modifiers,w.name,w.typeParameters,w.heritageClauses,te)}function E(w){return N.default.isClassDeclaration(w)&&(i===void 0||i(w))?g(w):N.default.visitEachChild(w,E,c)}return w=>N.default.visitEachChild(w,E,c)}}function ak(t,e){let n;if(N.default.isMethodDeclaration(t))n=N.default.factory.createMethodDeclaration(e,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body);else if(N.default.isPropertyDeclaration(t))n=N.default.factory.createPropertyDeclaration(e,t.name,t.questionToken,t.type,t.initializer);else if(N.default.isGetAccessor(t))n=N.default.factory.createGetAccessorDeclaration(e,t.name,t.parameters,t.type,t.body);else if(N.default.isSetAccessor(t))n=N.default.factory.createSetAccessorDeclaration(e,t.name,t.parameters,t.body);else throw new Error(`Unsupported decorated member with kind ${N.default.SyntaxKind[t.kind]}`);return N.default.setOriginalNode(n,t)}function Dl(t,e,n,r,s){let i=bl.default.isIdentifier(n.identifier)?n.identifier:n.identifier.expression;return t.createPropertyAccessExpression(e.addImport({exportModuleSpecifier:"@angular/core",exportSymbolName:null,requestedFile:r}),bl.default.setOriginalNode(t.createIdentifier(s),i))}function xy(t,e){return t.createAsExpression(e,t.createKeywordTypeNode(bl.default.SyntaxKind.AnyKeyword))}var lk=(t,e,n,r,s,i,o,l)=>{var c,u;if((c=n.getDecoratorsOfDeclaration(t.node))!=null&&c.some(g=>mi(g,"Input",l)))return t.node;let p=ay(t,n,s);if(p===null)return t.node;let d={isSignal:r.createTrue(),alias:r.createStringLiteral(p.bindingPropertyName),required:p.required?r.createTrue():r.createFalse(),transform:r.createIdentifier("undefined")},m=r.createDecorator(r.createCallExpression(Dl(r,i,o,e,"Input"),void 0,[xy(r,r.createObjectLiteralExpression(Object.entries(d).map(([g,E])=>r.createPropertyAssignment(g,E))))]));return r.updatePropertyDeclaration(t.node,[m,...(u=t.node.modifiers)!=null?u:[]],t.name,t.node.questionToken,t.node.type,t.node.initializer)},ck=(t,e,n,r,s,i,o,l)=>{var c,u;if((c=n.getDecoratorsOfDeclaration(t.node))!=null&&c.some(E=>mi(E,"Input",l)||mi(E,"Output",l)))return t.node;let p=ly(t,n,s);if(p===null)return t.node;let d=r.createObjectLiteralExpression([r.createPropertyAssignment("isSignal",p.input.isSignal?r.createTrue():r.createFalse()),r.createPropertyAssignment("alias",r.createStringLiteral(p.input.bindingPropertyName)),r.createPropertyAssignment("required",p.input.required?r.createTrue():r.createFalse())]),m=yy("Input",r.createAsExpression(d,r.createKeywordTypeNode(Cy.default.SyntaxKind.AnyKeyword)),o,r,e,i),g=yy("Output",r.createStringLiteral(p.output.bindingPropertyName),o,r,e,i);return r.updatePropertyDeclaration(t.node,[m,g,...(u=t.node.modifiers)!=null?u:[]],t.node.name,t.node.questionToken,t.node.type,t.node.initializer)};function yy(t,e,n,r,s,i){let o=Dl(r,i,n,s,t);return r.createDecorator(r.createCallExpression(o,void 0,[e]))}var uk=(t,e,n,r,s,i,o,l)=>{var c,u;if((c=n.getDecoratorsOfDeclaration(t.node))!=null&&c.some(m=>mi(m,"Output",l)))return t.node;let p=cy(t,n,s);if(p===null)return t.node;let d=r.createDecorator(r.createCallExpression(Dl(r,i,o,e,"Output"),void 0,[r.createStringLiteral(p.metadata.bindingPropertyName)]));return r.updatePropertyDeclaration(t.node,[d,...(u=t.node.modifiers)!=null?u:[]],t.node.name,t.node.questionToken,t.node.type,t.node.initializer)},pk={viewChild:"ViewChild",viewChildren:"ViewChildren",contentChild:"ContentChild",contentChildren:"ContentChildren"},hk=(t,e,n,r,s,i,o,l)=>{var c;let u=n.getDecoratorsOfDeclaration(t.node),p=u&&iy(u,Wp,l);if(p!==null&&p.length>0)return t.node;let d=uy(t,n,s);if(d===null)return t.node;let m=d.call.arguments,g=r.createDecorator(r.createCallExpression(Dl(r,i,o,e,pk[d.name]),void 0,[d.call.arguments[0],xy(r,r.createObjectLiteralExpression([...m.length>1?[r.createSpreadAssignment(m[1])]:[],r.createPropertyAssignment("isSignal",r.createTrue())]))]));return r.updatePropertyDeclaration(t.node,[g,...(c=t.node.modifiers)!=null?c:[]],t.node.name,t.node.questionToken,t.node.type,t.node.initializer)},fk=["Directive","Component"],dk=[lk,uk,hk,ck];function Ay(t,e,n,r){return s=>i=>{let o=new kp;return i=Or.default.visitNode(i,mk(s,t,o,e,n,r),Or.default.isSourceFile),o.transformTsFile(s,i)}}function mk(t,e,n,r,s,i){let o=l=>{var c;if(Or.default.isClassDeclaration(l)&&l.name!==void 0){let u=Or.default.getOriginalNode(l,Or.default.isClassDeclaration),p=(c=e.getDecoratorsOfDeclaration(u))==null?void 0:c.find(d=>fk.some(m=>mi(d,m,s)));if(p!==void 0&&(i===void 0||i(l))){let d=!1,m=u.getSourceFile(),g=l.members.map(E=>{if(!Or.default.isPropertyDeclaration(E))return E;let w=Ip(E);if(w===null)return E;for(let x of dk){let k=x(ye(T({},w),{node:E}),m,e,t.factory,r,n,p,s);if(k!==w.node)return d=!0,k}return E});if(d)return t.factory.updateClassDeclaration(l,l.modifiers,l.name,l.typeParameters,l.heritageClauses,g)}}return Or.default.visitEachChild(l,o,t)};return o}function Bo(t,e=!1,n){let r=t.getTypeChecker(),s=new Ap(r),i=new _p,o=Ty(r,s,[],e,!1,n),l=Ay(s,i,e,n);return c=>u=>(u=l(c)(u),u=o(c)(u),u)}var GF=(0,Iy.createRequire)(M),Ny={ngDevMode:!1,ngI18nClosureMode:!1},gk=ye(T({},Ny),{ngJitMode:!1});C();var _S=require("module");var vM=I(require("typescript"),1),SM=I(require("typescript"),1),EM=I(require("typescript"),1),wM=I(require("typescript"),1),TM=I(require("typescript"),1),xM=I(require("typescript"),1),CM=I(require("typescript"),1),AM=I(require("typescript"),1),IM=I(require("typescript"),1),NM=I(require("typescript"),1),bM=I(require("typescript"),1);var DM=I(require("typescript"),1);var kS=I(require("typescript"),1);var _M=I(require("typescript"),1),kM=I(require("typescript"),1),RM=I(require("typescript"),1),PM=I(require("typescript"),1);var MM=I(require("typescript"),1);var wh=I(require("typescript"),1);var Th=I(require("typescript"),1);var xh=I(require("typescript"),1);var pL=I(require("typescript"),1);var fL=I(require("typescript"),1),dL=I(require("typescript"),1),mL=I(require("typescript"),1),gL=I(vS(),1),yL=I(require("typescript"),1),vL=I(require("typescript"),1),SL=I(require("typescript"),1);var L$=(0,_S.createRequire)(M);var gh;(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"})(gh||(gh={}));var yh;(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"})(yh||(yh={}));var vh;(function(t){t.Property="property",t.Method="method",t.Getter="getter",t.Setter="setter",t.EnumItem="enum_item"})(vh||(vh={}));var Sh;(function(t){t.Class="class",t.Member="member",t.Parameter="parameter"})(Sh||(Sh={}));var Eh;(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"})(Eh||(Eh={}));var H$=kS.default.version;var W$=Symbol("NgCyclicResult");var SS;(function(t){t[t.Fresh=0]="Fresh",t[t.Delta=1]="Delta",t[t.Analyzed=2]="Analyzed"})(SS||(SS={}));var ES;(function(t){t[t.Analysis=0]="Analysis",t[t.TypeCheckAndEmit=1]="TypeCheckAndEmit"})(ES||(ES={}));var j$=Symbol("NgIncrementalState"),wS;(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"})(wS||(wS={}));var LM=".$ngresource$",X$=LM+".ts";var OM=new Set(["WritableSignal","Signal","InputSignal","InputSignalWithTransform","ModelSignal"]);function TS(t){return(t.kind===Ut.Expression||t.kind===Ut.Variable||t.kind===Ut.LetDeclaration)&&(t.tsType.symbol!==void 0&&xS(t.tsType.symbol)||t.tsType.aliasSymbol!==void 0&&xS(t.tsType.aliasSymbol))}function xS(t){let e=t.getDeclarations();return e!==void 0&&e.some(n=>{let r=n.getSourceFile().fileName;return(wh.default.isInterfaceDeclaration(n)||wh.default.isTypeAliasDeclaration(n))&&OM.has(n.name.text)&&(r.includes("@angular/core")||r.includes("angular2/rc/packages/core"))})}var Sn=class{constructor(){a(this,"canVisitStructuralAttributes",!0)}run(t,e,n){return new FM(t,e,this).getDiagnostics(n)}},FM=class extends xr{constructor(e,n,r){super();a(this,"ctx");a(this,"component");a(this,"check");a(this,"diagnostics",[]);this.ctx=e,this.component=n,this.check=r}visit(e,n){this.diagnostics.push(...this.check.visitNode(this.ctx,this.component,e)),e.visit(this)}visitAllNodes(e){for(let n of e)this.visit(n)}visitAst(e){e instanceof Ce&&(e=e.ast),this.visit(e)}visitElement(e){this.visitAllNodes(e.attributes),this.visitAllNodes(e.inputs),this.visitAllNodes(e.outputs),this.visitAllNodes(e.references),this.visitAllNodes(e.children)}visitTemplate(e){let n=e.tagName==="ng-template";this.visitAllNodes(e.attributes),n&&(this.visitAllNodes(e.inputs),this.visitAllNodes(e.outputs)),(this.check.canVisitStructuralAttributes||n)&&this.visitAllNodes(e.templateAttrs),this.visitAllNodes(e.variables),this.visitAllNodes(e.references),this.visitAllNodes(e.children)}visitContent(e){this.visitAllNodes(e.children)}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitUnknownBlock(e){}visitBoundAttribute(e){this.visitAst(e.value)}visitBoundEvent(e){this.visitAst(e.handler)}visitText(e){}visitBoundText(e){this.visitAst(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 Ks&&this.visitAst(e.value)}visitDeferredBlockPlaceholder(e){this.visitAllNodes(e.children)}visitDeferredBlockError(e){this.visitAllNodes(e.children)}visitDeferredBlockLoading(e){this.visitAllNodes(e.children)}visitSwitchBlock(e){this.visitAst(e.expression),this.visitAllNodes(e.cases)}visitSwitchBlockCase(e){e.expression&&this.visitAst(e.expression),this.visitAllNodes(e.children)}visitForLoopBlock(e){var n;e.item.visit(this),this.visitAllNodes(e.contextVariables),this.visitAst(e.expression),this.visitAllNodes(e.children),(n=e.empty)==null||n.visit(this)}visitForLoopBlockEmpty(e){this.visitAllNodes(e.children)}visitIfBlock(e){this.visitAllNodes(e.branches)}visitIfBlockBranch(e){var n;e.expression&&this.visitAst(e.expression),(n=e.expressionAlias)==null||n.visit(this),this.visitAllNodes(e.children)}visitLetDeclaration(e){this.visitAst(e.value)}getDiagnostics(e){return this.diagnostics=[],this.visitAllNodes(e),this.diagnostics}},BM=new Set(["set","update","asReadonly"]),$M=new Set(["name","length","prototype"]),UM=class extends Sn{constructor(){super(...arguments);a(this,"code",Z.INTERPOLATED_SIGNAL_NOT_INVOKED)}visitNode(e,n,r){if(r instanceof zn)return r.expressions.filter(s=>s instanceof Me).flatMap(s=>CS(e,s,n));if(r instanceof Et){let s=e.templateTypeChecker.getUsedDirectives(n);if(s!==null&&s.some(i=>i.inputs.getByBindingPropertyName(r.name)!==null))return[];if((r.type===J.Property||r.type===J.Class||r.type===J.Style||r.type===J.Attribute||r.type===J.Animation)&&r.value instanceof Ce&&r.value.ast instanceof Me)return CS(e,r.value.ast,n)}return[]}};function VM(t){return $M.has(t)}function qM(t){return BM.has(t)}function CS(t,e,n){let r=t.templateTypeChecker.getSymbolOfNode(e,n);if(r!==null&&r.kind===Ut.Expression&&TS(r)){let i=t.templateTypeChecker.getTemplateMappingAtTcbLocation(r.tcbLocation),o=`${e.name} is a function and should be invoked: ${e.name}()`;return[t.makeTemplateDiagnostic(i.span,o)]}let s=t.templateTypeChecker.getSymbolOfNode(e.receiver,n);if((VM(e.name)||qM(e.name))&&s!==null&&s.kind===Ut.Expression&&TS(s)){let i=t.templateTypeChecker.getTemplateMappingAtTcbLocation(s.tcbLocation),o=`${e.receiver.name} is a function and should be invoked: ${e.receiver.name}()`;return[t.makeTemplateDiagnostic(i.span,o)]}return[]}var HM={code:Z.INTERPOLATED_SIGNAL_NOT_INVOKED,name:ct.INTERPOLATED_SIGNAL_NOT_INVOKED,create:()=>new UM},GM=class extends Sn{constructor(){super(...arguments);a(this,"code",Z.INVALID_BANANA_IN_BOX)}visitNode(e,n,r){if(!(r instanceof Yn))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,`In the two-way binding syntax the parentheses should be inside the brackets, ex. '${o}'.
|
|
45
|
+
Find more at https://angular.dev/guide/templates/two-way-binding`)]}},WM={code:Z.INVALID_BANANA_IN_BOX,name:ct.INVALID_BANANA_IN_BOX,create:()=>new GM},AS=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"}]]),jM=class extends Sn{constructor(){super(...arguments);a(this,"code",Z.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 he))return[];let s=r.templateAttrs.find(p=>AS.has(p.name));if(!s)return[];let i=e.templateTypeChecker.getSymbolOfNode(r,n);if(i===null||i.directives.length>0)return[];let o=s.keySpan||s.sourceSpan,l=AS.get(s.name),c=`The \`*${s.name}\` directive was used in the template, but neither the \`${l==null?void 0:l.directive}\` directive nor the \`CommonModule\` was imported. Use Angular's built-in control flow ${l==null?void 0:l.builtIn} or make sure that either the \`${l==null?void 0:l.directive}\` directive or the \`CommonModule\` is included in the \`@Component.imports\` array of this component.`;return[e.makeTemplateDiagnostic(o,c)]}},KM={code:Z.MISSING_CONTROL_FLOW_DIRECTIVE,name:ct.MISSING_CONTROL_FLOW_DIRECTIVE,create:t=>new jM},zM=class extends Sn{constructor(){super(...arguments);a(this,"code",Z.MISSING_NGFOROF_LET)}visitNode(e,n,r){let s=r instanceof he;if(!(r instanceof he))return[];if(r.templateAttrs.length===0)return[];let i=r.templateAttrs.find(c=>c.name==="ngFor");return i===void 0?[]:r.variables.length>0?[]:[e.makeTemplateDiagnostic(i.sourceSpan,"Your ngFor is missing a value. Did you forget to add the `let` keyword?")]}},XM={code:Z.MISSING_NGFOROF_LET,name:ct.MISSING_NGFOROF_LET,create:()=>new zM},YM=class extends Sn{constructor(){super(...arguments);a(this,"canVisitStructuralAttributes",!1);a(this,"code",Z.NULLISH_COALESCING_NOT_NULLABLE)}visitNode(e,n,r){if(!(r instanceof Rt)||r.operation!=="??")return[];let s=e.templateTypeChecker.getSymbolOfNode(r.left,n);if(s===null||s.kind!==Ut.Expression)return[];let i=s.tsType;if(i.flags&(Th.default.TypeFlags.Any|Th.default.TypeFlags.Unknown))return[];if(i.getNonNullableType()!==i)return[];let o=e.templateTypeChecker.getSymbolOfNode(r,n);if(o.kind!==Ut.Expression)return[];let l=e.templateTypeChecker.getTemplateMappingAtTcbLocation(o.tcbLocation);return l===null?[]:[e.makeTemplateDiagnostic(l.span,"The left side of this nullish coalescing operation does not include 'null' or 'undefined' in its type, therefore the '??' operator can be safely removed.")]}},QM={code:Z.NULLISH_COALESCING_NOT_NULLABLE,name:ct.NULLISH_COALESCING_NOT_NULLABLE,create:t=>(t.strictNullChecks===void 0?!!t.strict:!!t.strictNullChecks)?new YM:null},JM=class extends Sn{constructor(){super(...arguments);a(this,"canVisitStructuralAttributes",!1);a(this,"code",Z.OPTIONAL_CHAIN_NOT_NULLABLE)}visitNode(e,n,r){if(!(r instanceof Nn)&&!(r instanceof vt)&&!(r instanceof Tr))return[];let s=e.templateTypeChecker.getSymbolOfNode(r.receiver,n);if(s===null||s.kind!==Ut.Expression)return[];let i=s.tsType;if(i.flags&(xh.default.TypeFlags.Any|xh.default.TypeFlags.Unknown))return[];if(i.getNonNullableType()!==i)return[];let o=e.templateTypeChecker.getSymbolOfNode(r,n);if(o.kind!==Ut.Expression)return[];let l=e.templateTypeChecker.getTemplateMappingAtTcbLocation(o.tcbLocation);if(l===null)return[];let c=r instanceof vt?"the '?.' operator can be replaced with the '.' operator":"the '?.' operator can be safely removed";return[e.makeTemplateDiagnostic(l.span,`The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore ${c}.`)]}},ZM={code:Z.OPTIONAL_CHAIN_NOT_NULLABLE,name:ct.OPTIONAL_CHAIN_NOT_NULLABLE,create:t=>(t.strictNullChecks===void 0?!!t.strict:!!t.strictNullChecks)?new JM:null},IS=["px","%","em"],eL=class extends Sn{constructor(){super(...arguments);a(this,"code",Z.SUFFIX_NOT_SUPPORTED)}visitNode(e,n,r){return r instanceof Et?!r.keySpan.toString().startsWith("attr.")||!IS.some(i=>r.name.endsWith(`.${i}`))?[]:[e.makeTemplateDiagnostic(r.keySpan,`The ${IS.map(i=>`'.${i}'`).join(", ")} suffixes are only supported on style bindings.`)]:[]}},tL={code:Z.SUFFIX_NOT_SUPPORTED,name:ct.SUFFIX_NOT_SUPPORTED,create:()=>new eL},nL=class extends Sn{constructor(){super(...arguments);a(this,"code",Z.TEXT_ATTRIBUTE_NOT_BINDING)}visitNode(e,n,r){if(!(r instanceof St))return[];let s=r.name;if(!s.startsWith("attr.")&&!s.startsWith("style.")&&!s.startsWith("class."))return[];let i;if(s.startsWith("attr.")){let l=s.replace("attr.","");i="Static attributes should be written without the 'attr.' prefix.",r.value&&(i+=` For example, ${l}="${r.value}".`)}else{let l=`[${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, '${l}="${c}"'.`)}return[e.makeTemplateDiagnostic(r.sourceSpan,i)]}},rL={code:Z.TEXT_ATTRIBUTE_NOT_BINDING,name:ct.TEXT_ATTRIBUTE_NOT_BINDING,create:()=>new nL},sL=class extends Sn{constructor(){super(...arguments);a(this,"code",Z.UNINVOKED_FUNCTION_IN_EVENT_BINDING)}visitNode(e,n,r){if(!(r instanceof Yn))return[];if(r.type!==Oe.Regular&&r.type!==Oe.Animation)return[];if(!(r.handler instanceof Ce))return[];let s=r.handler.source||"";if(r.handler.ast instanceof wr)return r.handler.ast.expressions.flatMap(i=>mh(i,n,r,s,e));if(r.handler.ast instanceof Ws){let{trueExp:i,falseExp:o}=r.handler.ast;return[i,o].flatMap(l=>mh(l,n,r,s,e))}return mh(r.handler.ast,n,r,s,e)}};function mh(t,e,n,r,s){var i;if(t instanceof pn||t instanceof Nn)return[];if(!(t instanceof Me)&&!(t instanceof vt))return[];let o=s.templateTypeChecker.getSymbolOfNode(t,e);if(o!==null&&o.kind===Ut.Expression&&((i=o.tsType.getCallSignatures())==null?void 0:i.length)>0){let c=`Function in event binding should be invoked: ${iL(t,r)}()`;return[s.makeTemplateDiagnostic(n.sourceSpan,c)]}return[]}function iL(t,e){return e.substring(t.span.start,t.span.end)}var oL={code:Z.UNINVOKED_FUNCTION_IN_EVENT_BINDING,name:ct.UNINVOKED_FUNCTION_IN_EVENT_BINDING,create:()=>new sL},aL=class extends Sn{constructor(){super(...arguments);a(this,"code",Z.UNUSED_LET_DECLARATION);a(this,"analysis",new Map)}run(e,n,r){super.run(e,n,r);let s=[],{allLetDeclarations:i,usedLetDeclarations:o}=this.getAnalysis(n);for(let l of i)o.has(l)||s.push(e.makeTemplateDiagnostic(l.sourceSpan,`@let ${l.name} is declared but its value is never read.`));return this.analysis.clear(),s}visitNode(e,n,r){if(r instanceof ot)this.getAnalysis(n).allLetDeclarations.add(r);else if(r instanceof Se){let s=r instanceof Ce?r.ast:r,i=e.templateTypeChecker.getExpressionTarget(s,n);i!==null&&i instanceof ot&&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)}},lL={code:Z.UNUSED_LET_DECLARATION,name:ct.UNUSED_LET_DECLARATION,create:()=>new aL},NS="ngSkipHydration",cL=class extends Sn{constructor(){super(...arguments);a(this,"code",Z.SKIP_HYDRATION_NOT_STATIC)}visitNode(e,n,r){if(r instanceof Et&&r.name===NS)return[e.makeTemplateDiagnostic(r.sourceSpan,"ngSkipHydration should not be used as a binding.")];let s=["true",""];return r instanceof St&&r.name===NS&&!s.includes(r.value)&&r.value!==void 0?[e.makeTemplateDiagnostic(r.sourceSpan,`ngSkipHydration only accepts "true" or "" as value or no value at all. For example 'ngSkipHydration="true"' or 'ngSkipHydration'`)]:[]}},uL={code:Z.SKIP_HYDRATION_NOT_STATIC,name:ct.SKIP_HYDRATION_NOT_STATIC,create:()=>new cL},bS;(function(t){t.Warning="warning",t.Error="error",t.Suppress="suppress"})(bS||(bS={}));var hL=[WM,QM,ZM,KM,rL,XM,tL,HM,oL,lL,uL],lU=new Set([ct.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION,ct.UNUSED_STANDALONE_IMPORTS,...hL.map(t=>t.name)]);var uU=[Vp,qp,...Hp,...Gp];var DS;(function(t){t[t.Fresh=0]="Fresh",t[t.IncrementalTypeScript=1]="IncrementalTypeScript",t[t.IncrementalResource=2]="IncrementalResource"})(DS||(DS={}));C();var RS=require("module");var NU=(0,RS.createRequire)(M),Ch;(function(t){t[t.debug=0]="debug",t[t.info=1]="info",t[t.warn=2]="warn",t[t.error=3]="error"})(Ch||(Ch={}));var Ah="\x1B[0m",EL="\x1B[31m",wL="\x1B[33m",TL="\x1B[36m",bU=`${TL}Debug:${Ah}`,DU=`${wL}Warning:${Ah}`,_U=`${EL}Error:${Ah}`;var c8=(0,PS.createRequire)(M),E8=new ji("19.2.0");Lh(new $h);0&&(module.exports={angularJitApplicationTransform});
|
|
46
46
|
/*! Bundled license information:
|
|
47
47
|
|
|
48
48
|
@angular/compiler-cli/bundles/chunk-STORTTKY.js:
|
|
@@ -56,7 +56,7 @@ Please report an issue on the Angular repositories when this issue surfaces and
|
|
|
56
56
|
|
|
57
57
|
@angular/compiler/fesm2022/compiler.mjs:
|
|
58
58
|
(**
|
|
59
|
-
* @license Angular v19.
|
|
59
|
+
* @license Angular v19.2.0
|
|
60
60
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
61
61
|
* License: MIT
|
|
62
62
|
*)
|
|
@@ -87,7 +87,7 @@ Please report an issue on the Angular repositories when this issue surfaces and
|
|
|
87
87
|
* found in the LICENSE file at https://angular.dev/license
|
|
88
88
|
*)
|
|
89
89
|
|
|
90
|
-
@angular/compiler-cli/bundles/chunk-
|
|
90
|
+
@angular/compiler-cli/bundles/chunk-KOIBHR3X.js:
|
|
91
91
|
(*!
|
|
92
92
|
* @license
|
|
93
93
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -112,7 +112,7 @@ Please report an issue on the Angular repositories when this issue surfaces and
|
|
|
112
112
|
* found in the LICENSE file at https://angular.dev/license
|
|
113
113
|
*)
|
|
114
114
|
|
|
115
|
-
@angular/compiler-cli/bundles/chunk-
|
|
115
|
+
@angular/compiler-cli/bundles/chunk-J43IYRBM.js:
|
|
116
116
|
(*!
|
|
117
117
|
* @license
|
|
118
118
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -128,7 +128,7 @@ Please report an issue on the Angular repositories when this issue surfaces and
|
|
|
128
128
|
* found in the LICENSE file at https://angular.dev/license
|
|
129
129
|
*)
|
|
130
130
|
|
|
131
|
-
@angular/compiler-cli/bundles/chunk-
|
|
131
|
+
@angular/compiler-cli/bundles/chunk-VAZZGFGP.js:
|
|
132
132
|
(**
|
|
133
133
|
* @license
|
|
134
134
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -137,7 +137,7 @@ Please report an issue on the Angular repositories when this issue surfaces and
|
|
|
137
137
|
* found in the LICENSE file at https://angular.dev/license
|
|
138
138
|
*)
|
|
139
139
|
|
|
140
|
-
@angular/compiler-cli/bundles/chunk-
|
|
140
|
+
@angular/compiler-cli/bundles/chunk-TFVEDCQN.js:
|
|
141
141
|
(**
|
|
142
142
|
* @license
|
|
143
143
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -146,7 +146,7 @@ Please report an issue on the Angular repositories when this issue surfaces and
|
|
|
146
146
|
* found in the LICENSE file at https://angular.dev/license
|
|
147
147
|
*)
|
|
148
148
|
|
|
149
|
-
@angular/compiler-cli/bundles/chunk-
|
|
149
|
+
@angular/compiler-cli/bundles/chunk-ZBHF2MOM.js:
|
|
150
150
|
(*!
|
|
151
151
|
* @license
|
|
152
152
|
* Copyright Google LLC All Rights Reserved.
|