jest-preset-angular 16.1.1 → 16.1.3
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/AGENTS.md +97 -0
- package/CHANGELOG.md +19 -0
- package/build/compiler/ng-jest-compiler.d.ts +3 -0
- package/build/compiler/ng-jest-compiler.js +29 -0
- package/build/presets/index.d.ts +2 -2
- package/build/serializers/no-ng-attributes.js +6 -5
- package/build/transformers/jit_transform.js +55 -34
- package/package.json +30 -30
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
"use strict";var bS=Object.create;var _i=Object.defineProperty,_S=Object.defineProperties,kS=Object.getOwnPropertyDescriptor,RS=Object.getOwnPropertyDescriptors,PS=Object.getOwnPropertyNames,ah=Object.getOwnPropertySymbols,LS=Object.getPrototypeOf,lh=Object.prototype.hasOwnProperty,MS=Object.prototype.propertyIsEnumerable;var Ql=(t,e,n)=>e in t?_i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,C=(t,e)=>{for(var n in e||(e={}))lh.call(e,n)&&Ql(t,n,e[n]);if(ah)for(var n of ah(e))MS.call(e,n)&&Ql(t,n,e[n]);return t},me=(t,e)=>_S(t,RS(e));var OS=(t,e)=>()=>(t&&(e=t(t=0)),e);var Y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),FS=(t,e)=>{for(var n in e)_i(t,n,{get:e[n],enumerable:!0})},ch=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of PS(e))!lh.call(t,s)&&s!==n&&_i(t,s,{get:()=>e[s],enumerable:!(r=kS(e,s))||r.enumerable});return t};var x=(t,e,n)=>(n=t!=null?bS(LS(t)):{},ch(e||!t||!t.__esModule?_i(n,"default",{value:t,enumerable:!0}):n,t)),BS=t=>ch(_i({},"__esModule",{value:!0}),t);var a=(t,e,n)=>Ql(t,typeof e!="symbol"?e+"":e,n);var U,A=OS(()=>{"use strict";U=require("url").pathToFileURL(__filename)});var ta=Y((K1,fy)=>{"use strict";A();var jk="2.0.0",Kk=Number.MAX_SAFE_INTEGER||9007199254740991,zk=16,Xk=250,Yk=["major","premajor","minor","preminor","patch","prepatch","prerelease"];fy.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:zk,MAX_SAFE_BUILD_LENGTH:Xk,MAX_SAFE_INTEGER:Kk,RELEASE_TYPES:Yk,SEMVER_SPEC_VERSION:jk,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var na=Y((X1,dy)=>{"use strict";A();var Qk=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};dy.exports=Qk});var Ii=Y((Hn,my)=>{"use strict";A();var{MAX_SAFE_COMPONENT_LENGTH:bp,MAX_SAFE_BUILD_LENGTH:Jk,MAX_LENGTH:Zk}=ta(),eR=na();Hn=my.exports={};var tR=Hn.re=[],nR=Hn.safeRe=[],B=Hn.src=[],rR=Hn.safeSrc=[],$=Hn.t={},sR=0,_p="[a-zA-Z0-9-]",iR=[["\\s",1],["\\d",Zk],[_p,Jk]],oR=t=>{for(let[e,n]of iR)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},ee=(t,e,n)=>{let r=oR(e),s=sR++;eR(t,s,e),$[t]=s,B[s]=e,rR[s]=r,tR[s]=new RegExp(e,n?"g":void 0),nR[s]=new RegExp(r,n?"g":void 0)};ee("NUMERICIDENTIFIER","0|[1-9]\\d*");ee("NUMERICIDENTIFIERLOOSE","\\d+");ee("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${_p}*`);ee("MAINVERSION",`(${B[$.NUMERICIDENTIFIER]})\\.(${B[$.NUMERICIDENTIFIER]})\\.(${B[$.NUMERICIDENTIFIER]})`);ee("MAINVERSIONLOOSE",`(${B[$.NUMERICIDENTIFIERLOOSE]})\\.(${B[$.NUMERICIDENTIFIERLOOSE]})\\.(${B[$.NUMERICIDENTIFIERLOOSE]})`);ee("PRERELEASEIDENTIFIER",`(?:${B[$.NONNUMERICIDENTIFIER]}|${B[$.NUMERICIDENTIFIER]})`);ee("PRERELEASEIDENTIFIERLOOSE",`(?:${B[$.NONNUMERICIDENTIFIER]}|${B[$.NUMERICIDENTIFIERLOOSE]})`);ee("PRERELEASE",`(?:-(${B[$.PRERELEASEIDENTIFIER]}(?:\\.${B[$.PRERELEASEIDENTIFIER]})*))`);ee("PRERELEASELOOSE",`(?:-?(${B[$.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${B[$.PRERELEASEIDENTIFIERLOOSE]})*))`);ee("BUILDIDENTIFIER",`${_p}+`);ee("BUILD",`(?:\\+(${B[$.BUILDIDENTIFIER]}(?:\\.${B[$.BUILDIDENTIFIER]})*))`);ee("FULLPLAIN",`v?${B[$.MAINVERSION]}${B[$.PRERELEASE]}?${B[$.BUILD]}?`);ee("FULL",`^${B[$.FULLPLAIN]}$`);ee("LOOSEPLAIN",`[v=\\s]*${B[$.MAINVERSIONLOOSE]}${B[$.PRERELEASELOOSE]}?${B[$.BUILD]}?`);ee("LOOSE",`^${B[$.LOOSEPLAIN]}$`);ee("GTLT","((?:<|>)?=?)");ee("XRANGEIDENTIFIERLOOSE",`${B[$.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ee("XRANGEIDENTIFIER",`${B[$.NUMERICIDENTIFIER]}|x|X|\\*`);ee("XRANGEPLAIN",`[v=\\s]*(${B[$.XRANGEIDENTIFIER]})(?:\\.(${B[$.XRANGEIDENTIFIER]})(?:\\.(${B[$.XRANGEIDENTIFIER]})(?:${B[$.PRERELEASE]})?${B[$.BUILD]}?)?)?`);ee("XRANGEPLAINLOOSE",`[v=\\s]*(${B[$.XRANGEIDENTIFIERLOOSE]})(?:\\.(${B[$.XRANGEIDENTIFIERLOOSE]})(?:\\.(${B[$.XRANGEIDENTIFIERLOOSE]})(?:${B[$.PRERELEASELOOSE]})?${B[$.BUILD]}?)?)?`);ee("XRANGE",`^${B[$.GTLT]}\\s*${B[$.XRANGEPLAIN]}$`);ee("XRANGELOOSE",`^${B[$.GTLT]}\\s*${B[$.XRANGEPLAINLOOSE]}$`);ee("COERCEPLAIN",`(^|[^\\d])(\\d{1,${bp}})(?:\\.(\\d{1,${bp}}))?(?:\\.(\\d{1,${bp}}))?`);ee("COERCE",`${B[$.COERCEPLAIN]}(?:$|[^\\d])`);ee("COERCEFULL",B[$.COERCEPLAIN]+`(?:${B[$.PRERELEASE]})?(?:${B[$.BUILD]})?(?:$|[^\\d])`);ee("COERCERTL",B[$.COERCE],!0);ee("COERCERTLFULL",B[$.COERCEFULL],!0);ee("LONETILDE","(?:~>?)");ee("TILDETRIM",`(\\s*)${B[$.LONETILDE]}\\s+`,!0);Hn.tildeTrimReplace="$1~";ee("TILDE",`^${B[$.LONETILDE]}${B[$.XRANGEPLAIN]}$`);ee("TILDELOOSE",`^${B[$.LONETILDE]}${B[$.XRANGEPLAINLOOSE]}$`);ee("LONECARET","(?:\\^)");ee("CARETTRIM",`(\\s*)${B[$.LONECARET]}\\s+`,!0);Hn.caretTrimReplace="$1^";ee("CARET",`^${B[$.LONECARET]}${B[$.XRANGEPLAIN]}$`);ee("CARETLOOSE",`^${B[$.LONECARET]}${B[$.XRANGEPLAINLOOSE]}$`);ee("COMPARATORLOOSE",`^${B[$.GTLT]}\\s*(${B[$.LOOSEPLAIN]})$|^$`);ee("COMPARATOR",`^${B[$.GTLT]}\\s*(${B[$.FULLPLAIN]})$|^$`);ee("COMPARATORTRIM",`(\\s*)${B[$.GTLT]}\\s*(${B[$.LOOSEPLAIN]}|${B[$.XRANGEPLAIN]})`,!0);Hn.comparatorTrimReplace="$1$2$3";ee("HYPHENRANGE",`^\\s*(${B[$.XRANGEPLAIN]})\\s+-\\s+(${B[$.XRANGEPLAIN]})\\s*$`);ee("HYPHENRANGELOOSE",`^\\s*(${B[$.XRANGEPLAINLOOSE]})\\s+-\\s+(${B[$.XRANGEPLAINLOOSE]})\\s*$`);ee("STAR","(<|>)?=?\\s*\\*");ee("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ee("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Bl=Y((J1,gy)=>{"use strict";A();var aR=Object.freeze({loose:!0}),lR=Object.freeze({}),cR=t=>t?typeof t!="object"?aR:t:lR;gy.exports=cR});var kp=Y((e2,Sy)=>{"use strict";A();var yy=/^[0-9]+$/,vy=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let n=yy.test(t),r=yy.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:t<e?-1:1},uR=(t,e)=>vy(e,t);Sy.exports={compareIdentifiers:vy,rcompareIdentifiers:uR}});var lt=Y((n2,Ty)=>{"use strict";A();var $l=na(),{MAX_LENGTH:Ey,MAX_SAFE_INTEGER:Ul}=ta(),{safeRe:Vl,t:Gl}=Ii(),pR=Bl(),{compareIdentifiers:Rp}=kp(),Pp=class t{constructor(e,n){if(n=pR(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>Ey)throw new TypeError(`version is longer than ${Ey} characters`);$l("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let r=e.trim().match(n.loose?Vl[Gl.LOOSE]:Vl[Gl.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>Ul||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ul||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ul||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<Ul)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($l("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let n=0;do{let r=this.prerelease[n],s=e.prerelease[n];if($l("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 Rp(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($l("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 Rp(r,s)}while(++n)}inc(e,n,r){if(e.startsWith("pre")){if(!n&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(n){let s=`-${n}`.match(this.options.loose?Vl[Gl.PRERELEASELOOSE]:Vl[Gl.PRERELEASE]);if(!s||s[1]!==n)throw new Error(`invalid identifier: ${n}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,r),this.inc("pre",n,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,r),this.inc("pre",n,r);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(r)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(n){let i=[n,s];r===!1&&(i=[n]),Rp(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}};Ty.exports=Pp});var ks=Y((s2,wy)=>{"use strict";A();var xy=lt(),hR=(t,e,n=!1)=>{if(t instanceof xy)return t;try{return new xy(t,e)}catch(r){if(!n)return null;throw r}};wy.exports=hR});var Ay=Y((o2,Cy)=>{"use strict";A();var fR=ks(),dR=(t,e)=>{let n=fR(t,e);return n?n.version:null};Cy.exports=dR});var Iy=Y((l2,Ny)=>{"use strict";A();var mR=ks(),gR=(t,e)=>{let n=mR(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};Ny.exports=gR});var _y=Y((u2,by)=>{"use strict";A();var Dy=lt(),yR=(t,e,n,r,s)=>{typeof n=="string"&&(s=r,r=n,n=void 0);try{return new Dy(t instanceof Dy?t.version:t,n).inc(e,r,s).version}catch(i){return null}};by.exports=yR});var Py=Y((h2,Ry)=>{"use strict";A();var ky=ks(),vR=(t,e)=>{let n=ky(t,null,!0),r=ky(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 h=c?"pre":"";return n.major!==r.major?h+"major":n.minor!==r.minor?h+"minor":n.patch!==r.patch?h+"patch":"prerelease"};Ry.exports=vR});var My=Y((d2,Ly)=>{"use strict";A();var SR=lt(),ER=(t,e)=>new SR(t,e).major;Ly.exports=ER});var Fy=Y((g2,Oy)=>{"use strict";A();var TR=lt(),xR=(t,e)=>new TR(t,e).minor;Oy.exports=xR});var $y=Y((v2,By)=>{"use strict";A();var wR=lt(),CR=(t,e)=>new wR(t,e).patch;By.exports=CR});var Vy=Y((E2,Uy)=>{"use strict";A();var AR=ks(),NR=(t,e)=>{let n=AR(t,e);return n&&n.prerelease.length?n.prerelease:null};Uy.exports=NR});var an=Y((x2,Hy)=>{"use strict";A();var Gy=lt(),IR=(t,e,n)=>new Gy(t,n).compare(new Gy(e,n));Hy.exports=IR});var Wy=Y((C2,qy)=>{"use strict";A();var DR=an(),bR=(t,e,n)=>DR(e,t,n);qy.exports=bR});var Ky=Y((N2,jy)=>{"use strict";A();var _R=an(),kR=(t,e)=>_R(t,e,!0);jy.exports=kR});var Hl=Y((D2,Xy)=>{"use strict";A();var zy=lt(),RR=(t,e,n)=>{let r=new zy(t,n),s=new zy(e,n);return r.compare(s)||r.compareBuild(s)};Xy.exports=RR});var Qy=Y((_2,Yy)=>{"use strict";A();var PR=Hl(),LR=(t,e)=>t.sort((n,r)=>PR(n,r,e));Yy.exports=LR});var Zy=Y((R2,Jy)=>{"use strict";A();var MR=Hl(),OR=(t,e)=>t.sort((n,r)=>MR(r,n,e));Jy.exports=OR});var ra=Y((L2,ev)=>{"use strict";A();var FR=an(),BR=(t,e,n)=>FR(t,e,n)>0;ev.exports=BR});var ql=Y((O2,tv)=>{"use strict";A();var $R=an(),UR=(t,e,n)=>$R(t,e,n)<0;tv.exports=UR});var Lp=Y((B2,nv)=>{"use strict";A();var VR=an(),GR=(t,e,n)=>VR(t,e,n)===0;nv.exports=GR});var Mp=Y((U2,rv)=>{"use strict";A();var HR=an(),qR=(t,e,n)=>HR(t,e,n)!==0;rv.exports=qR});var Wl=Y((G2,sv)=>{"use strict";A();var WR=an(),jR=(t,e,n)=>WR(t,e,n)>=0;sv.exports=jR});var jl=Y((q2,iv)=>{"use strict";A();var KR=an(),zR=(t,e,n)=>KR(t,e,n)<=0;iv.exports=zR});var Op=Y((j2,ov)=>{"use strict";A();var XR=Lp(),YR=Mp(),QR=ra(),JR=Wl(),ZR=ql(),eP=jl(),tP=(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 XR(t,n,r);case"!=":return YR(t,n,r);case">":return QR(t,n,r);case">=":return JR(t,n,r);case"<":return ZR(t,n,r);case"<=":return eP(t,n,r);default:throw new TypeError(`Invalid operator: ${e}`)}};ov.exports=tP});var lv=Y((z2,av)=>{"use strict";A();var nP=lt(),rP=ks(),{safeRe:Kl,t:zl}=Ii(),sP=(t,e)=>{if(t instanceof nP)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?Kl[zl.COERCEFULL]:Kl[zl.COERCE]);else{let c=e.includePrerelease?Kl[zl.COERCERTLFULL]:Kl[zl.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 rP(`${r}.${s}.${i}${o}${l}`,e)};av.exports=sP});var uv=Y((Y2,cv)=>{"use strict";A();var Fp=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}};cv.exports=Fp});var ln=Y((J2,dv)=>{"use strict";A();var iP=/\s+/g,Bp=class t{constructor(e,n){if(n=aP(n),e instanceof t)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new t(e.raw,n);if(e instanceof $p)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(iP," "),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=>!hv(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&&dP(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&&hP)|(this.options.loose&&fP))+":"+e,s=pv.get(r);if(s)return s;let i=this.options.loose,o=i?At[ct.HYPHENRANGELOOSE]:At[ct.HYPHENRANGE];e=e.replace(o,CP(this.options.includePrerelease)),Te("hyphen replace",e),e=e.replace(At[ct.COMPARATORTRIM],cP),Te("comparator trim",e),e=e.replace(At[ct.TILDETRIM],uP),Te("tilde trim",e),e=e.replace(At[ct.CARETTRIM],pP),Te("caret trim",e);let l=e.split(" ").map(d=>mP(d,this.options)).join(" ").split(/\s+/).map(d=>wP(d,this.options));i&&(l=l.filter(d=>(Te("loose invalid filter",d,this.options),!!d.match(At[ct.COMPARATORLOOSE])))),Te("range list",l);let c=new Map,u=l.map(d=>new $p(d,this.options));for(let d of u){if(hv(d))return[d];c.set(d.value,d)}c.size>1&&c.has("")&&c.delete("");let h=[...c.values()];return pv.set(r,h),h}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(r=>fv(r,n)&&e.set.some(s=>fv(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 lP(e,this.options)}catch(n){return!1}for(let n=0;n<this.set.length;n++)if(AP(this.set[n],e,this.options))return!0;return!1}};dv.exports=Bp;var oP=uv(),pv=new oP,aP=Bl(),$p=sa(),Te=na(),lP=lt(),{safeRe:At,t:ct,comparatorTrimReplace:cP,tildeTrimReplace:uP,caretTrimReplace:pP}=Ii(),{FLAG_INCLUDE_PRERELEASE:hP,FLAG_LOOSE:fP}=ta(),hv=t=>t.value==="<0.0.0-0",dP=t=>t.value==="",fv=(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},mP=(t,e)=>(t=t.replace(At[ct.BUILD],""),Te("comp",t,e),t=vP(t,e),Te("caret",t),t=gP(t,e),Te("tildes",t),t=EP(t,e),Te("xrange",t),t=xP(t,e),Te("stars",t),t),Nt=t=>!t||t.toLowerCase()==="x"||t==="*",gP=(t,e)=>t.trim().split(/\s+/).map(n=>yP(n,e)).join(" "),yP=(t,e)=>{let n=e.loose?At[ct.TILDELOOSE]:At[ct.TILDE];return t.replace(n,(r,s,i,o,l)=>{Te("tilde",t,r,s,i,o,l);let c;return Nt(s)?c="":Nt(i)?c=`>=${s}.0.0 <${+s+1}.0.0-0`:Nt(o)?c=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:l?(Te("replaceTilde pr",l),c=`>=${s}.${i}.${o}-${l} <${s}.${+i+1}.0-0`):c=`>=${s}.${i}.${o} <${s}.${+i+1}.0-0`,Te("tilde return",c),c})},vP=(t,e)=>t.trim().split(/\s+/).map(n=>SP(n,e)).join(" "),SP=(t,e)=>{Te("caret",t,e);let n=e.loose?At[ct.CARETLOOSE]:At[ct.CARET],r=e.includePrerelease?"-0":"";return t.replace(n,(s,i,o,l,c)=>{Te("caret",t,s,i,o,l,c);let u;return Nt(i)?u="":Nt(o)?u=`>=${i}.0.0${r} <${+i+1}.0.0-0`:Nt(l)?i==="0"?u=`>=${i}.${o}.0${r} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.0${r} <${+i+1}.0.0-0`:c?(Te("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`):(Te("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`),Te("caret return",u),u})},EP=(t,e)=>(Te("replaceXRanges",t,e),t.split(/\s+/).map(n=>TP(n,e)).join(" ")),TP=(t,e)=>{t=t.trim();let n=e.loose?At[ct.XRANGELOOSE]:At[ct.XRANGE];return t.replace(n,(r,s,i,o,l,c)=>{Te("xRange",t,r,s,i,o,l,c);let u=Nt(i),h=u||Nt(o),d=h||Nt(l),p=d;return s==="="&&p&&(s=""),c=e.includePrerelease?"-0":"",u?s===">"||s==="<"?r="<0.0.0-0":r="*":s&&p?(h&&(o=0),l=0,s===">"?(s=">=",h?(i=+i+1,o=0,l=0):(o=+o+1,l=0)):s==="<="&&(s="<",h?i=+i+1:o=+o+1),s==="<"&&(c="-0"),r=`${s+i}.${o}.${l}${c}`):h?r=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(r=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),Te("xRange return",r),r})},xP=(t,e)=>(Te("replaceStars",t,e),t.trim().replace(At[ct.STAR],"")),wP=(t,e)=>(Te("replaceGTE0",t,e),t.trim().replace(At[e.includePrerelease?ct.GTE0PRE:ct.GTE0],"")),CP=t=>(e,n,r,s,i,o,l,c,u,h,d,p)=>(Nt(r)?n="":Nt(s)?n=`>=${r}.0.0${t?"-0":""}`:Nt(i)?n=`>=${r}.${s}.0${t?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,Nt(u)?c="":Nt(h)?c=`<${+u+1}.0.0-0`:Nt(d)?c=`<${u}.${+h+1}.0-0`:p?c=`<=${u}.${h}.${d}-${p}`:t?c=`<${u}.${h}.${+d+1}-0`:c=`<=${c}`,`${n} ${c}`.trim()),AP=(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(Te(t[r].semver),t[r].semver!==$p.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 sa=Y((eB,Ev)=>{"use strict";A();var ia=Symbol("SemVer ANY"),Gp=class t{static get ANY(){return ia}constructor(e,n){if(n=mv(n),e instanceof t){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Vp("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===ia?this.value="":this.value=this.operator+this.semver.version,Vp("comp",this)}parse(e){let n=this.options.loose?gv[yv.COMPARATORLOOSE]:gv[yv.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 vv(r[2],this.options.loose):this.semver=ia}toString(){return this.value}test(e){if(Vp("Comparator.test",e,this.options.loose),this.semver===ia||e===ia)return!0;if(typeof e=="string")try{e=new vv(e,this.options)}catch(n){return!1}return Up(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 Sv(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new Sv(this.value,n).test(e.semver):(n=mv(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("=")||Up(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Up(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Ev.exports=Gp;var mv=Bl(),{safeRe:gv,t:yv}=Ii(),Up=Op(),Vp=na(),vv=lt(),Sv=ln()});var oa=Y((nB,Tv)=>{"use strict";A();var NP=ln(),IP=(t,e,n)=>{try{e=new NP(e,n)}catch(r){return!1}return e.test(t)};Tv.exports=IP});var wv=Y((sB,xv)=>{"use strict";A();var DP=ln(),bP=(t,e)=>new DP(t,e).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));xv.exports=bP});var Av=Y((oB,Cv)=>{"use strict";A();var _P=lt(),kP=ln(),RP=(t,e,n)=>{let r=null,s=null,i=null;try{i=new kP(e,n)}catch(o){return null}return t.forEach(o=>{i.test(o)&&(!r||s.compare(o)===-1)&&(r=o,s=new _P(r,n))}),r};Cv.exports=RP});var Iv=Y((lB,Nv)=>{"use strict";A();var PP=lt(),LP=ln(),MP=(t,e,n)=>{let r=null,s=null,i=null;try{i=new LP(e,n)}catch(o){return null}return t.forEach(o=>{i.test(o)&&(!r||s.compare(o)===1)&&(r=o,s=new PP(r,n))}),r};Nv.exports=MP});var _v=Y((uB,bv)=>{"use strict";A();var Hp=lt(),OP=ln(),Dv=ra(),FP=(t,e)=>{t=new OP(t,e);let n=new Hp("0.0.0");if(t.test(n)||(n=new Hp("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 Hp(o.semver.version);switch(o.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!i||Dv(l,i))&&(i=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!n||Dv(n,i))&&(n=i)}return n&&t.test(n)?n:null};bv.exports=FP});var Rv=Y((hB,kv)=>{"use strict";A();var BP=ln(),$P=(t,e)=>{try{return new BP(t,e).range||"*"}catch(n){return null}};kv.exports=$P});var Xl=Y((dB,Ov)=>{"use strict";A();var UP=lt(),Mv=sa(),{ANY:VP}=Mv,GP=ln(),HP=oa(),Pv=ra(),Lv=ql(),qP=jl(),WP=Wl(),jP=(t,e,n,r)=>{t=new UP(t,r),e=new GP(e,r);let s,i,o,l,c;switch(n){case">":s=Pv,i=qP,o=Lv,l=">",c=">=";break;case"<":s=Lv,i=WP,o=Pv,l="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(HP(t,e,r))return!1;for(let u=0;u<e.set.length;++u){let h=e.set[u],d=null,p=null;if(h.forEach(g=>{g.semver===VP&&(g=new Mv(">=0.0.0")),d=d||g,p=p||g,s(g.semver,d.semver,r)?d=g:o(g.semver,p.semver,r)&&(p=g)}),d.operator===l||d.operator===c||(!p.operator||p.operator===l)&&i(t,p.semver))return!1;if(p.operator===c&&o(t,p.semver))return!1}return!0};Ov.exports=jP});var Bv=Y((gB,Fv)=>{"use strict";A();var KP=Xl(),zP=(t,e,n)=>KP(t,e,">",n);Fv.exports=zP});var Uv=Y((vB,$v)=>{"use strict";A();var XP=Xl(),YP=(t,e,n)=>XP(t,e,"<",n);$v.exports=YP});var Hv=Y((EB,Gv)=>{"use strict";A();var Vv=ln(),QP=(t,e,n)=>(t=new Vv(t,n),e=new Vv(e,n),t.intersects(e,n));Gv.exports=QP});var Wv=Y((xB,qv)=>{"use strict";A();var JP=oa(),ZP=an();qv.exports=(t,e,n)=>{let r=[],s=null,i=null,o=t.sort((h,d)=>ZP(h,d,n));for(let h of o)JP(h,e,n)?(i=h,s||(s=h)):(i&&r.push([s,i]),i=null,s=null);s&&r.push([s,null]);let l=[];for(let[h,d]of r)h===d?l.push(h):!d&&h===o[0]?l.push("*"):d?h===o[0]?l.push(`<=${d}`):l.push(`${h} - ${d}`):l.push(`>=${h}`);let c=l.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return c.length<u.length?c:e}});var Qv=Y((CB,Yv)=>{"use strict";A();var jv=ln(),Wp=sa(),{ANY:qp}=Wp,aa=oa(),jp=an(),eL=(t,e,n={})=>{if(t===e)return!0;t=new jv(t,n),e=new jv(e,n);let r=!1;e:for(let s of t.set){for(let i of e.set){let o=nL(s,i,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},tL=[new Wp(">=0.0.0-0")],Kv=[new Wp(">=0.0.0")],nL=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===qp){if(e.length===1&&e[0].semver===qp)return!0;n.includePrerelease?t=tL:t=Kv}if(e.length===1&&e[0].semver===qp){if(n.includePrerelease)return!0;e=Kv}let r=new Set,s,i;for(let g of t)g.operator===">"||g.operator===">="?s=zv(s,g,n):g.operator==="<"||g.operator==="<="?i=Xv(i,g,n):r.add(g.semver);if(r.size>1)return null;let o;if(s&&i){if(o=jp(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&&!aa(g,String(s),n)||i&&!aa(g,String(i),n))return null;for(let v of e)if(!aa(g,String(v),n))return!1;return!0}let l,c,u,h,d=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1,p=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(h=h||g.operator===">"||g.operator===">=",u=u||g.operator==="<"||g.operator==="<=",s){if(p&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===p.major&&g.semver.minor===p.minor&&g.semver.patch===p.patch&&(p=!1),g.operator===">"||g.operator===">="){if(l=zv(s,g,n),l===g&&l!==s)return!1}else if(s.operator===">="&&!aa(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=Xv(i,g,n),c===g&&c!==i)return!1}else if(i.operator==="<="&&!aa(i.semver,String(g),n))return!1}if(!g.operator&&(i||s)&&o!==0)return!1}return!(s&&u&&!i&&o!==0||i&&h&&!s&&o!==0||p||d)},zv=(t,e,n)=>{if(!t)return e;let r=jp(t.semver,e.semver,n);return r>0?t:r<0||e.operator===">"&&t.operator===">="?e:t},Xv=(t,e,n)=>{if(!t)return e;let r=jp(t.semver,e.semver,n);return r<0?t:r>0||e.operator==="<"&&t.operator==="<="?e:t};Yv.exports=eL});var tS=Y((NB,eS)=>{"use strict";A();var Kp=Ii(),Jv=ta(),rL=lt(),Zv=kp(),sL=ks(),iL=Ay(),oL=Iy(),aL=_y(),lL=Py(),cL=My(),uL=Fy(),pL=$y(),hL=Vy(),fL=an(),dL=Wy(),mL=Ky(),gL=Hl(),yL=Qy(),vL=Zy(),SL=ra(),EL=ql(),TL=Lp(),xL=Mp(),wL=Wl(),CL=jl(),AL=Op(),NL=lv(),IL=sa(),DL=ln(),bL=oa(),_L=wv(),kL=Av(),RL=Iv(),PL=_v(),LL=Rv(),ML=Xl(),OL=Bv(),FL=Uv(),BL=Hv(),$L=Wv(),UL=Qv();eS.exports={parse:sL,valid:iL,clean:oL,inc:aL,diff:lL,major:cL,minor:uL,patch:pL,prerelease:hL,compare:fL,rcompare:dL,compareLoose:mL,compareBuild:gL,sort:yL,rsort:vL,gt:SL,lt:EL,eq:TL,neq:xL,gte:wL,lte:CL,cmp:AL,coerce:NL,Comparator:IL,Range:DL,satisfies:bL,toComparators:_L,maxSatisfying:kL,minSatisfying:RL,minVersion:PL,validRange:LL,outside:ML,gtr:OL,ltr:FL,intersects:BL,simplifyRange:$L,subset:UL,SemVer:rL,re:Kp.re,src:Kp.src,tokens:Kp.t,SEMVER_SPEC_VERSION:Jv.SEMVER_SPEC_VERSION,RELEASE_TYPES:Jv.RELEASE_TYPES,compareIdentifiers:Zv.compareIdentifiers,rcompareIdentifiers:Zv.rcompareIdentifiers}});var wO={};FS(wO,{angularJitApplicationTransform:()=>Fl});module.exports=BS(wO);A();A();var IS=require("module");A();var dS=require("module");A();var fS=require("module");A();var Hg=require("module");A();var ug=require("module");A();var uh=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g"),hn=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 h=i[3];h==="#"?o.addAttribute("id",c.slice(1)):h==="."?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}},as=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 Sc(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 Ec(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 h=l.length===0&&u===o.length-1,d=o[u];h?this._addTerminal(s._classMap,d,c):s=this._addPartial(s._classPartialMap,d)}if(l)for(let u=0;u<l.length;u+=2){let h=u===l.length-2,d=l[u],p=l[u+1];if(h){let g=s._attrValueMap,v=g.get(d);v||(v=new Map,g.set(d,v)),this._addTerminal(v,p,c)}else{let g=s._attrValuePartialMap,v=g.get(d);v||(v=new Map,g.set(d,v)),s=this._addPartial(v,p)}}}_addTerminal(e,n,r){let s=e.get(n);s||(s=[],e.set(n,s)),s.push(r)}_addPartial(e,n){let r=e.get(n);return r||(r=new t,e.set(n,r)),r}match(e,n){let r=!1,s=e.element,i=e.classNames,o=e.attrs;for(let 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],h=this._attrValueMap.get(c);u&&(r=this._matchTerminal(h,"",e,n)||r),r=this._matchTerminal(h,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}},Sc=class{constructor(e){a(this,"selectors");a(this,"alreadyMatched",!1);this.selectors=e}},Ec=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=!as.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}},Js=class{constructor(e){a(this,"registry");this.registry=e}match(e){return this.registry.has(e)?this.registry.get(e):[]}};var Cn;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t[t.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom"})(Cn||(Cn={}));var Na;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t[t.Eager=1]="Eager"})(Na||(Na={}));var Vs;(function(t){t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Vs||(Vs={}));var Tc={name:"custom-elements"},xc={name:"no-errors-schema"};var ue;(function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING"})(ue||(ue={}));var ph;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(ph||(ph={}));function $S(t){let e=t.classNames&&t.classNames.length?[8,...t.classNames]:[];return[t.element&&t.element!=="*"?t.element:"",...t.attrs,...e]}function US(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 VS(t){let e=$S(t),n=t.notSelectors&&t.notSelectors.length?t.notSelectors.map(r=>US(r)):[];return e.concat(...n)}function zu(t){return t?hn.parse(t).map(VS):[]}var gt;(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"})(gt||(gt={}));var hh;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(hh||(hh={}));var fh;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t[t.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom"})(fh||(fh={}));var dr;function GS(t){return jS(WS(t.nodes).join("")+`[${t.meaning}]`)}function HS(t){return t.id||Ed(t)}function Ed(t){let e=new wc,n=t.nodes.map(r=>r.visit(e,null));return Td(n.join(""),t.meaning)}var Ia=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}">`}},qS=new Ia;function WS(t){return t.map(e=>e.visit(qS,null))}var wc=class extends Ia{visitIcu(e){let n=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.type}, ${n.join(", ")}}`}};function jS(t){dr!=null||(dr=new TextEncoder);let e=[...dr.encode(t)],n=XS(e,Da.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 h=0;h<n.length;h+=16){let d=i,p=o,g=l,v=c,E=u;for(let N=0;N<80;N++){N<16?s[N]=n[h+N]:s[N]=Jl(s[N-3]^s[N-8]^s[N-14]^s[N-16],1);let D=KS(N,o,l,c),b=D[0],P=D[1],L=[Jl(i,5),b,u,P,s[N]].reduce(Rs);u=c,c=l,l=Jl(o,30),o=i,i=L}i=Rs(i,d),o=Rs(o,p),l=Rs(l,g),c=Rs(c,v),u=Rs(u,E)}return ki(i)+ki(o)+ki(l)+ki(c)+ki(u)}function ki(t){return(t>>>0).toString(16).padStart(8,"0")}function KS(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 dh(t){dr!=null||(dr=new TextEncoder);let e=dr.encode(t),n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=mh(n,e.length,0),s=mh(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 Td(t,e=""){let n=dh(t);return e&&(n=BigInt.asUintN(64,n<<BigInt(1))|n>>BigInt(63)&BigInt(1),n+=dh(e)),BigInt.asUintN(63,n).toString()}function mh(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 Da;(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(Da||(Da={}));function Rs(t,e){return zS(t,e)[1]}function zS(t,e){let n=(t&65535)+(e&65535),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|n&65535]}function Jl(t,e){return t<<e|t>>>32-e}function XS(t,e){let n=t.length+3>>>2,r=[];for(let s=0;s<n;s++)r[s]=YS(t,s*4,e);return r}function yh(t,e){return e>=t.length?0:t[e]}function YS(t,e,n){let r=0;if(n===Da.Big)for(let s=0;s<4;s++)r+=yh(t,e+s)<<24-8*s;else for(let s=0;s<4;s++)r+=yh(t,e+s)<<8*s;return r}var Zi;(function(t){t[t.None=0]="None",t[t.Const=1]="Const"})(Zi||(Zi={}));var Sr=class{constructor(e=Zi.None){a(this,"modifiers");this.modifiers=e}hasModifier(e){return(this.modifiers&e)!==0}},Jt;(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"})(Jt||(Jt={}));var fn=class extends Sr{constructor(n,r){super(r);a(this,"name");this.name=n}visitType(n,r){return n.visitBuiltinType(this,r)}},vt=class extends Sr{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)}},Cc=class extends Sr{constructor(n,r){super(r);a(this,"of");this.of=n}visitType(n,r){return n.visitArrayType(this,r)}},Ac=class extends Sr{constructor(n,r){super(r);a(this,"valueType");this.valueType=n||null}visitType(n,r){return n.visitMapType(this,r)}},eo=class extends Sr{constructor(n,r){super(r);a(this,"type");this.type=n}visitType(n,r){return n.visitTransplantedType(this,r)}},gi=new fn(Jt.Dynamic),Zt=new fn(Jt.Inferred),xd=new fn(Jt.Bool),QS=new fn(Jt.Int),yl=new fn(Jt.Number),vl=new fn(Jt.String),JS=new fn(Jt.Function),dn=new fn(Jt.None),kn;(function(t){t[t.Minus=0]="Minus",t[t.Plus=1]="Plus"})(kn||(kn={}));var T;(function(t){t[t.Equals=0]="Equals",t[t.NotEquals=1]="NotEquals",t[t.Assign=2]="Assign",t[t.Identical=3]="Identical",t[t.NotIdentical=4]="NotIdentical",t[t.Minus=5]="Minus",t[t.Plus=6]="Plus",t[t.Divide=7]="Divide",t[t.Multiply=8]="Multiply",t[t.Modulo=9]="Modulo",t[t.And=10]="And",t[t.Or=11]="Or",t[t.BitwiseOr=12]="BitwiseOr",t[t.BitwiseAnd=13]="BitwiseAnd",t[t.Lower=14]="Lower",t[t.LowerEquals=15]="LowerEquals",t[t.Bigger=16]="Bigger",t[t.BiggerEquals=17]="BiggerEquals",t[t.NullishCoalesce=18]="NullishCoalesce",t[t.Exponentiation=19]="Exponentiation",t[t.In=20]="In",t[t.InstanceOf=21]="InstanceOf",t[t.AdditionAssignment=22]="AdditionAssignment",t[t.SubtractionAssignment=23]="SubtractionAssignment",t[t.MultiplicationAssignment=24]="MultiplicationAssignment",t[t.DivisionAssignment=25]="DivisionAssignment",t[t.RemainderAssignment=26]="RemainderAssignment",t[t.ExponentiationAssignment=27]="ExponentiationAssignment",t[t.AndAssignment=28]="AndAssignment",t[t.OrAssignment=29]="OrAssignment",t[t.NullishCoalesceAssignment=30]="NullishCoalesceAssignment"})(T||(T={}));function wd(t,e){return t==null||e==null?t==e:t.isEquivalent(e)}function Cd(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 Tt(t,e){return Cd(t,e,(n,r)=>n.isEquivalent(r))}var ie=class{constructor(e,n){a(this,"type");a(this,"sourceSpan");this.type=e||null,this.sourceSpan=n||null}prop(e,n){return new xt(this,e,null,n)}key(e,n,r){return new Rn(this,e,n,r)}callFn(e,n,r){return new ot(this,e,null,n,r)}instantiate(e,n,r){return new ei(this,e,n,r)}conditional(e,n=null,r){return new mn(this,e,n,null,r)}equals(e,n){return new re(T.Equals,this,e,null,n)}notEquals(e,n){return new re(T.NotEquals,this,e,null,n)}identical(e,n){return new re(T.Identical,this,e,null,n)}notIdentical(e,n){return new re(T.NotIdentical,this,e,null,n)}minus(e,n){return new re(T.Minus,this,e,null,n)}plus(e,n){return new re(T.Plus,this,e,null,n)}divide(e,n){return new re(T.Divide,this,e,null,n)}multiply(e,n){return new re(T.Multiply,this,e,null,n)}modulo(e,n){return new re(T.Modulo,this,e,null,n)}power(e,n){return new re(T.Exponentiation,this,e,null,n)}and(e,n){return new re(T.And,this,e,null,n)}bitwiseOr(e,n){return new re(T.BitwiseOr,this,e,null,n)}bitwiseAnd(e,n){return new re(T.BitwiseAnd,this,e,null,n)}or(e,n){return new re(T.Or,this,e,null,n)}lower(e,n){return new re(T.Lower,this,e,null,n)}lowerEquals(e,n){return new re(T.LowerEquals,this,e,null,n)}bigger(e,n){return new re(T.Bigger,this,e,null,n)}biggerEquals(e,n){return new re(T.BiggerEquals,this,e,null,n)}isBlank(e){return this.equals(Ad,e)}nullishCoalesce(e,n){return new re(T.NullishCoalesce,this,e,null,n)}toStmt(){return new Qe(this,null)}},en=class t extends ie{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 re(T.Assign,this,n,null,this.sourceSpan)}},ls=class t extends ie{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())}},to=class t extends ie{constructor(n,r,s){super(r,s);a(this,"expr");this.expr=n}visitExpression(n,r){return n.visitVoidExpr(this,r)}isEquivalent(n){return n instanceof t&&n.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}},W=class t extends ie{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)}},ot=class t extends ie{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)&&Tt(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)}},Zs=class t extends ie{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)}},ei=class t extends ie{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)&&Tt(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)}},cs=class t extends ie{constructor(n,r,s){super(null,s);a(this,"body");a(this,"flags");this.body=n,this.flags=r}isEquivalent(n){return n instanceof t&&this.body===n.body&&this.flags===n.flags}isConstant(){return!0}visitExpression(n,r){return n.visitRegularExpressionLiteral(this,r)}clone(){return new t(this.body,this.flags,this.sourceSpan)}},_e=class t extends ie{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)}},ti=class t extends ie{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&&Cd(this.elements,n.elements,(r,s)=>r.text===s.text)&&Tt(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()))}},no=class t extends ie{constructor(n,r,s){super(vl,r);a(this,"text");a(this,"rawText");this.text=n,this.rawText=s!=null?s:Nc(xa(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)}},gr=class{constructor(e,n){a(this,"text");a(this,"sourceSpan");this.text=e,this.sourceSpan=n}},ts=class{constructor(e,n,r){a(this,"text");a(this,"sourceSpan");a(this,"associatedMessage");this.text=e,this.sourceSpan=n,this.associatedMessage=r}},ZS="|",vh="@@",eE="\u241F",ro=class t extends ie{constructor(n,r,s,i,o){super(vl,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}${ZS}${n}`),this.metaBlock.customId&&(n=`${n}${vh}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(r=>{n=`${n}${eE}${r}`}),Sh(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+=`${vh}${Td(r.associatedMessage.messageString,r.associatedMessage.meaning)}`),Sh(i,s.text,this.getMessagePartSourceSpan(n))}},xa=t=>t.replace(/\\/g,"\\\\"),tE=t=>t.replace(/^:/,"\\:"),nE=t=>t.replace(/:/g,"\\:"),Nc=t=>t.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function Sh(t,e,n){return t===""?{cooked:e,raw:Nc(tE(xa(e))),range:n}:{cooked:`:${t}:${e}`,raw:Nc(`:${nE(xa(t))}:${xa(e)}`),range:n}}var Ye=class t extends ie{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)}},so=class{constructor(e,n){a(this,"moduleName");a(this,"name");this.moduleName=e,this.name=n}},mn=class t extends ie{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)&&wd(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)}},Ic=class t extends ie{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)}},ni=class t extends ie{constructor(n,r){super(xd,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)}},Oe=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)}},Dn=class t extends ie{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 ri)&&Tt(this.params,n.params)&&Tt(this.statements,n.statements)}isConstant(){return!1}visitExpression(n,r){return n.visitFunctionExpr(this,r)}toDeclStmt(n,r){return new ri(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)}},Vn=class Dc extends ie{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 Dc)||!Tt(this.params,n.params)?!1:this.body instanceof ie&&n.body instanceof ie?this.body.isEquivalent(n.body):Array.isArray(this.body)&&Array.isArray(n.body)?Tt(this.body,n.body):!1}isConstant(){return!1}visitExpression(n,r){return n.visitArrowFunctionExpr(this,r)}clone(){return new Dc(this.params.map(n=>n.clone()),Array.isArray(this.body)?this.body:this.body.clone(),this.type,this.sourceSpan)}toDeclStmt(n,r){return new Ve(n,this,Zt,r,this.sourceSpan)}},Yn=class t extends ie{constructor(n,r,s,i,o=!0){super(s||yl,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)}},tn=class t extends ie{constructor(n,r,s){super(r,s);a(this,"expr");this.expr=n}visitExpression(n,r){return n.visitParenthesizedExpr(this,r)}isEquivalent(n){return n instanceof t&&n.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}},re=class t extends ie{constructor(n,r,s,i,o){super(i||r.type,o);a(this,"operator");a(this,"rhs");a(this,"lhs");this.operator=n,this.rhs=s,this.lhs=r}isEquivalent(n){return n instanceof t&&this.operator===n.operator&&this.lhs.isEquivalent(n.lhs)&&this.rhs.isEquivalent(n.rhs)}isConstant(){return!1}visitExpression(n,r){return n.visitBinaryOperatorExpr(this,r)}clone(){return new t(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan)}isAssignment(){let n=this.operator;return n===T.Assign||n===T.AdditionAssignment||n===T.SubtractionAssignment||n===T.MultiplicationAssignment||n===T.DivisionAssignment||n===T.RemainderAssignment||n===T.ExponentiationAssignment||n===T.AndAssignment||n===T.OrAssignment||n===T.NullishCoalesceAssignment}},xt=class t extends ie{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 re(T.Assign,this.receiver.prop(this.name),n,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},Rn=class t extends ie{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 re(T.Assign,this.receiver.key(this.index),n,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},_t=class t extends ie{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&&Tt(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)}},Er=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)}isConstant(){return this.value.isConstant()}},gn=class t{constructor(e){a(this,"expression");this.expression=e}isEquivalent(e){return e instanceof t&&this.expression.isEquivalent(e.expression)}clone(){return new t(this.expression.clone())}isConstant(){return this.expression.isConstant()}},nn=class t extends ie{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&&Tt(this.entries,n.entries)}isConstant(){return this.entries.every(n=>n.isConstant())}visitExpression(n,r){return n.visitLiteralMapExpr(this,r)}clone(){let n=this.entries.map(r=>r.clone());return new t(n,this.type,this.sourceSpan)}},bc=class t extends ie{constructor(n,r){super(n[n.length-1].type,r);a(this,"parts");this.parts=n}isEquivalent(n){return n instanceof t&&Tt(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()))}},Tr=class t extends ie{constructor(n,r){super(null,r);a(this,"expression");this.expression=n}isEquivalent(n){return n instanceof t&&this.expression.isEquivalent(n.expression)}isConstant(){return this.expression.isConstant()}visitExpression(n,r){return n.visitSpreadElementExpr(this,r)}clone(){return new t(this.expression.clone(),this.sourceSpan)}},us=new _e(null,null,null),Ad=new _e(null,Zt,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 io=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}},oo=class extends io{constructor(n){super("",!0,!0);a(this,"tags");this.tags=n}toString(){return lE(this.tags)}},xr=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)}},Ve=class t extends xr{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)}},ri=class t extends xr{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&&Tt(this.params,n.params)&&Tt(this.statements,n.statements)}visitStatement(n,r){return n.visitDeclareFunctionStmt(this,r)}},Qe=class t extends xr{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)}},be=class t extends xr{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)}},ao=class t extends xr{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)&&Tt(this.trueCase,n.trueCase)&&Tt(this.falseCase,n.falseCase)}visitStatement(n,r){return n.visitIfStmt(this,r)}},rE=class{visitType(e,n){return e}visitExpression(e,n){return e.type&&e.type.visitType(this,n),e}visitBuiltinType(e,n){return this.visitType(e,n)}visitExpressionType(e,n){return e.value.visitExpression(this,n),e.typeParams!==null&&e.typeParams.forEach(r=>this.visitType(r,n)),this.visitType(e,n)}visitArrayType(e,n){return this.visitType(e,n)}visitMapType(e,n){return this.visitType(e,n)}visitTransplantedType(e,n){return e}visitWrappedNodeExpr(e,n){return e}visitReadVarExpr(e,n){return this.visitExpression(e,n)}visitDynamicImportExpr(e,n){return this.visitExpression(e,n)}visitInvokeFunctionExpr(e,n){return e.fn.visitExpression(this,n),this.visitAllExpressions(e.args,n),this.visitExpression(e,n)}visitTaggedTemplateLiteralExpr(e,n){return e.tag.visitExpression(this,n),e.template.visitExpression(this,n),this.visitExpression(e,n)}visitInstantiateExpr(e,n){return e.classExpr.visitExpression(this,n),this.visitAllExpressions(e.args,n),this.visitExpression(e,n)}visitLiteralExpr(e,n){return this.visitExpression(e,n)}visitRegularExpressionLiteral(e,n){return this.visitExpression(e,n)}visitLocalizedString(e,n){return this.visitExpression(e,n)}visitExternalExpr(e,n){return e.typeParams&&e.typeParams.forEach(r=>r.visitType(this,n)),this.visitExpression(e,n)}visitConditionalExpr(e,n){return e.condition.visitExpression(this,n),e.trueCase.visitExpression(this,n),e.falseCase.visitExpression(this,n),this.visitExpression(e,n)}visitNotExpr(e,n){return e.condition.visitExpression(this,n),this.visitExpression(e,n)}visitFunctionExpr(e,n){return this.visitAllStatements(e.statements,n),this.visitExpression(e,n)}visitArrowFunctionExpr(e,n){return Array.isArray(e.body)?this.visitAllStatements(e.body,n):e.body.visitExpression(this,n),this.visitExpression(e,n)}visitUnaryOperatorExpr(e,n){return e.expr.visitExpression(this,n),this.visitExpression(e,n)}visitTypeofExpr(e,n){return e.expr.visitExpression(this,n),this.visitExpression(e,n)}visitVoidExpr(e,n){return e.expr.visitExpression(this,n),this.visitExpression(e,n)}visitBinaryOperatorExpr(e,n){return e.lhs.visitExpression(this,n),e.rhs.visitExpression(this,n),this.visitExpression(e,n)}visitReadPropExpr(e,n){return e.receiver.visitExpression(this,n),this.visitExpression(e,n)}visitReadKeyExpr(e,n){return e.receiver.visitExpression(this,n),e.index.visitExpression(this,n),this.visitExpression(e,n)}visitLiteralArrayExpr(e,n){return this.visitAllExpressions(e.entries,n),this.visitExpression(e,n)}visitLiteralMapExpr(e,n){return e.entries.forEach(r=>{r instanceof gn?r.expression.visitExpression(this,n):r.value.visitExpression(this,n)}),this.visitExpression(e,n)}visitCommaExpr(e,n){return this.visitAllExpressions(e.parts,n),this.visitExpression(e,n)}visitTemplateLiteralExpr(e,n){return this.visitAllExpressions(e.elements,n),this.visitAllExpressions(e.expressions,n),this.visitExpression(e,n)}visitTemplateLiteralElementExpr(e,n){return this.visitExpression(e,n)}visitParenthesizedExpr(e,n){return e.expr.visitExpression(this,n),this.visitExpression(e,n)}visitSpreadElementExpr(e,n){return e.expression.visitExpression(this,n),this.visitExpression(e,n)}visitAllExpressions(e,n){e.forEach(r=>r.visitExpression(this,n))}visitDeclareVarStmt(e,n){return e.value&&e.value.visitExpression(this,n),e.type&&e.type.visitType(this,n),e}visitDeclareFunctionStmt(e,n){return this.visitAllStatements(e.statements,n),e.type&&e.type.visitType(this,n),e}visitExpressionStmt(e,n){return e.expr.visitExpression(this,n),e}visitReturnStmt(e,n){return e.value.visitExpression(this,n),e}visitIfStmt(e,n){return e.condition.visitExpression(this,n),this.visitAllStatements(e.trueCase,n),this.visitAllStatements(e.falseCase,n),e}visitAllStatements(e,n){e.forEach(r=>r.visitStatement(this,n))}};function Nd(t,e=!1,n=!0){return new io(t,e,n)}function Id(t=[]){return new oo(t)}function J(t,e,n){return new en(t,e,n)}function O(t,e=null,n){return new Ye(t,null,e,n)}function sE(t,e,n){return t!=null?je(O(t,e,null),n):null}function je(t,e,n){return new vt(t,e,n)}function iE(t,e){return new eo(t,e)}function yi(t){return new ls(t)}function ae(t,e,n){return new _t(t,e,n)}function wt(t,e=null){return new nn(t.map(n=>new Er(n.key,n.value,n.quoted)),e,null)}function oE(t,e,n,r){return new Yn(t,e,n,r)}function Dd(t,e){return new ni(t,e)}function Qn(t,e,n,r,s){return new Dn(t,e,n,r,s)}function kt(t,e,n,r){return new Vn(t,e,n,r)}function Ko(t,e,n,r,s){return new ao(t,e,n,r,s)}function bd(t,e,n,r){return new Zs(t,e,n,r)}function S(t,e,n){return new _e(t,e,n)}function _d(t,e,n,r,s){return new ro(t,e,n,r,s)}function aE(t){return t instanceof _e&&t.value===null}function Eh(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 lE(t){if(t.length===0)return"";if(t.length===1&&t[0].tagName&&!t[0].text)return`*${Eh(t[0])} `;let e=`*
|
|
1
|
+
"use strict";var bS=Object.create;var Ri=Object.defineProperty,_S=Object.defineProperties,kS=Object.getOwnPropertyDescriptor,RS=Object.getOwnPropertyDescriptors,PS=Object.getOwnPropertyNames,ah=Object.getOwnPropertySymbols,LS=Object.getPrototypeOf,lh=Object.prototype.hasOwnProperty,MS=Object.prototype.propertyIsEnumerable;var Ql=(t,e,n)=>e in t?Ri(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,x=(t,e)=>{for(var n in e||(e={}))lh.call(e,n)&&Ql(t,n,e[n]);if(ah)for(var n of ah(e))MS.call(e,n)&&Ql(t,n,e[n]);return t},me=(t,e)=>_S(t,RS(e));var OS=(t,e)=>()=>(t&&(e=t(t=0)),e);var Y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),FS=(t,e)=>{for(var n in e)Ri(t,n,{get:e[n],enumerable:!0})},ch=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of PS(e))!lh.call(t,r)&&r!==n&&Ri(t,r,{get:()=>e[r],enumerable:!(s=kS(e,r))||s.enumerable});return t};var C=(t,e,n)=>(n=t!=null?bS(LS(t)):{},ch(e||!t||!t.__esModule?Ri(n,"default",{value:t,enumerable:!0}):n,t)),BS=t=>ch(Ri({},"__esModule",{value:!0}),t);var a=(t,e,n)=>Ql(t,typeof e!="symbol"?e+"":e,n);var U,A=OS(()=>{"use strict";U=require("url").pathToFileURL(__filename)});var ta=Y((N1,fy)=>{"use strict";A();var A0="2.0.0",I0=Number.MAX_SAFE_INTEGER||9007199254740991,N0=16,D0=250,b0=["major","premajor","minor","preminor","patch","prepatch","prerelease"];fy.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:N0,MAX_SAFE_BUILD_LENGTH:D0,MAX_SAFE_INTEGER:I0,RELEASE_TYPES:b0,SEMVER_SPEC_VERSION:A0,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var na=Y((b1,dy)=>{"use strict";A();var _0=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};dy.exports=_0});var bi=Y((qn,my)=>{"use strict";A();var{MAX_SAFE_COMPONENT_LENGTH:bp,MAX_SAFE_BUILD_LENGTH:k0,MAX_LENGTH:R0}=ta(),P0=na();qn=my.exports={};var L0=qn.re=[],M0=qn.safeRe=[],B=qn.src=[],O0=qn.safeSrc=[],$=qn.t={},F0=0,_p="[a-zA-Z0-9-]",B0=[["\\s",1],["\\d",R0],[_p,k0]],$0=t=>{for(let[e,n]of B0)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},ee=(t,e,n)=>{let s=$0(e),r=F0++;P0(t,r,e),$[t]=r,B[r]=e,O0[r]=s,L0[r]=new RegExp(e,n?"g":void 0),M0[r]=new RegExp(s,n?"g":void 0)};ee("NUMERICIDENTIFIER","0|[1-9]\\d*");ee("NUMERICIDENTIFIERLOOSE","\\d+");ee("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${_p}*`);ee("MAINVERSION",`(${B[$.NUMERICIDENTIFIER]})\\.(${B[$.NUMERICIDENTIFIER]})\\.(${B[$.NUMERICIDENTIFIER]})`);ee("MAINVERSIONLOOSE",`(${B[$.NUMERICIDENTIFIERLOOSE]})\\.(${B[$.NUMERICIDENTIFIERLOOSE]})\\.(${B[$.NUMERICIDENTIFIERLOOSE]})`);ee("PRERELEASEIDENTIFIER",`(?:${B[$.NONNUMERICIDENTIFIER]}|${B[$.NUMERICIDENTIFIER]})`);ee("PRERELEASEIDENTIFIERLOOSE",`(?:${B[$.NONNUMERICIDENTIFIER]}|${B[$.NUMERICIDENTIFIERLOOSE]})`);ee("PRERELEASE",`(?:-(${B[$.PRERELEASEIDENTIFIER]}(?:\\.${B[$.PRERELEASEIDENTIFIER]})*))`);ee("PRERELEASELOOSE",`(?:-?(${B[$.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${B[$.PRERELEASEIDENTIFIERLOOSE]})*))`);ee("BUILDIDENTIFIER",`${_p}+`);ee("BUILD",`(?:\\+(${B[$.BUILDIDENTIFIER]}(?:\\.${B[$.BUILDIDENTIFIER]})*))`);ee("FULLPLAIN",`v?${B[$.MAINVERSION]}${B[$.PRERELEASE]}?${B[$.BUILD]}?`);ee("FULL",`^${B[$.FULLPLAIN]}$`);ee("LOOSEPLAIN",`[v=\\s]*${B[$.MAINVERSIONLOOSE]}${B[$.PRERELEASELOOSE]}?${B[$.BUILD]}?`);ee("LOOSE",`^${B[$.LOOSEPLAIN]}$`);ee("GTLT","((?:<|>)?=?)");ee("XRANGEIDENTIFIERLOOSE",`${B[$.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ee("XRANGEIDENTIFIER",`${B[$.NUMERICIDENTIFIER]}|x|X|\\*`);ee("XRANGEPLAIN",`[v=\\s]*(${B[$.XRANGEIDENTIFIER]})(?:\\.(${B[$.XRANGEIDENTIFIER]})(?:\\.(${B[$.XRANGEIDENTIFIER]})(?:${B[$.PRERELEASE]})?${B[$.BUILD]}?)?)?`);ee("XRANGEPLAINLOOSE",`[v=\\s]*(${B[$.XRANGEIDENTIFIERLOOSE]})(?:\\.(${B[$.XRANGEIDENTIFIERLOOSE]})(?:\\.(${B[$.XRANGEIDENTIFIERLOOSE]})(?:${B[$.PRERELEASELOOSE]})?${B[$.BUILD]}?)?)?`);ee("XRANGE",`^${B[$.GTLT]}\\s*${B[$.XRANGEPLAIN]}$`);ee("XRANGELOOSE",`^${B[$.GTLT]}\\s*${B[$.XRANGEPLAINLOOSE]}$`);ee("COERCEPLAIN",`(^|[^\\d])(\\d{1,${bp}})(?:\\.(\\d{1,${bp}}))?(?:\\.(\\d{1,${bp}}))?`);ee("COERCE",`${B[$.COERCEPLAIN]}(?:$|[^\\d])`);ee("COERCEFULL",B[$.COERCEPLAIN]+`(?:${B[$.PRERELEASE]})?(?:${B[$.BUILD]})?(?:$|[^\\d])`);ee("COERCERTL",B[$.COERCE],!0);ee("COERCERTLFULL",B[$.COERCEFULL],!0);ee("LONETILDE","(?:~>?)");ee("TILDETRIM",`(\\s*)${B[$.LONETILDE]}\\s+`,!0);qn.tildeTrimReplace="$1~";ee("TILDE",`^${B[$.LONETILDE]}${B[$.XRANGEPLAIN]}$`);ee("TILDELOOSE",`^${B[$.LONETILDE]}${B[$.XRANGEPLAINLOOSE]}$`);ee("LONECARET","(?:\\^)");ee("CARETTRIM",`(\\s*)${B[$.LONECARET]}\\s+`,!0);qn.caretTrimReplace="$1^";ee("CARET",`^${B[$.LONECARET]}${B[$.XRANGEPLAIN]}$`);ee("CARETLOOSE",`^${B[$.LONECARET]}${B[$.XRANGEPLAINLOOSE]}$`);ee("COMPARATORLOOSE",`^${B[$.GTLT]}\\s*(${B[$.LOOSEPLAIN]})$|^$`);ee("COMPARATOR",`^${B[$.GTLT]}\\s*(${B[$.FULLPLAIN]})$|^$`);ee("COMPARATORTRIM",`(\\s*)${B[$.GTLT]}\\s*(${B[$.LOOSEPLAIN]}|${B[$.XRANGEPLAIN]})`,!0);qn.comparatorTrimReplace="$1$2$3";ee("HYPHENRANGE",`^\\s*(${B[$.XRANGEPLAIN]})\\s+-\\s+(${B[$.XRANGEPLAIN]})\\s*$`);ee("HYPHENRANGELOOSE",`^\\s*(${B[$.XRANGEPLAINLOOSE]})\\s+-\\s+(${B[$.XRANGEPLAINLOOSE]})\\s*$`);ee("STAR","(<|>)?=?\\s*\\*");ee("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ee("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Bl=Y((R1,gy)=>{"use strict";A();var U0=Object.freeze({loose:!0}),V0=Object.freeze({}),G0=t=>t?typeof t!="object"?U0:t:V0;gy.exports=G0});var kp=Y((L1,Sy)=>{"use strict";A();var yy=/^[0-9]+$/,vy=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let n=yy.test(t),s=yy.test(e);return n&&s&&(t=+t,e=+e),t===e?0:n&&!s?-1:s&&!n?1:t<e?-1:1},H0=(t,e)=>vy(e,t);Sy.exports={compareIdentifiers:vy,rcompareIdentifiers:H0}});var lt=Y((O1,Ty)=>{"use strict";A();var $l=na(),{MAX_LENGTH:Ey,MAX_SAFE_INTEGER:Ul}=ta(),{safeRe:Vl,t:Gl}=bi(),q0=Bl(),{compareIdentifiers:Rp}=kp(),Pp=class t{constructor(e,n){if(n=q0(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>Ey)throw new TypeError(`version is longer than ${Ey} characters`);$l("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let s=e.trim().match(n.loose?Vl[Gl.LOOSE]:Vl[Gl.FULL]);if(!s)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>Ul||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ul||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ul||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let i=+r;if(i>=0&&i<Ul)return i}return r}):this.prerelease=[],this.build=s[5]?s[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($l("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let n=0;do{let s=this.prerelease[n],r=e.prerelease[n];if($l("prerelease compare",n,s,r),s===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(s===void 0)return-1;if(s===r)continue;return Rp(s,r)}while(++n)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let n=0;do{let s=this.build[n],r=e.build[n];if($l("build compare",n,s,r),s===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(s===void 0)return-1;if(s===r)continue;return Rp(s,r)}while(++n)}inc(e,n,s){if(e.startsWith("pre")){if(!n&&s===!1)throw new Error("invalid increment argument: identifier is empty");if(n){let r=`-${n}`.match(this.options.loose?Vl[Gl.PRERELEASELOOSE]:Vl[Gl.PRERELEASE]);if(!r||r[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,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,s),this.inc("pre",n,s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,s),this.inc("pre",n,s);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 r=Number(s)?1:0;if(this.prerelease.length===0)this.prerelease=[r];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(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(r)}}if(n){let i=[n,r];s===!1&&(i=[n]),Rp(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}};Ty.exports=Pp});var Pr=Y((B1,xy)=>{"use strict";A();var wy=lt(),W0=(t,e,n=!1)=>{if(t instanceof wy)return t;try{return new wy(t,e)}catch(s){if(!n)return null;throw s}};xy.exports=W0});var Ay=Y((U1,Cy)=>{"use strict";A();var j0=Pr(),z0=(t,e)=>{let n=j0(t,e);return n?n.version:null};Cy.exports=z0});var Ny=Y((G1,Iy)=>{"use strict";A();var K0=Pr(),X0=(t,e)=>{let n=K0(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};Iy.exports=X0});var _y=Y((q1,by)=>{"use strict";A();var Dy=lt(),Y0=(t,e,n,s,r)=>{typeof n=="string"&&(r=s,s=n,n=void 0);try{return new Dy(t instanceof Dy?t.version:t,n).inc(e,s,r).version}catch(i){return null}};by.exports=Y0});var Py=Y((j1,Ry)=>{"use strict";A();var ky=Pr(),Q0=(t,e)=>{let n=ky(t,null,!0),s=ky(e,null,!0),r=n.compare(s);if(r===0)return null;let i=r>0,o=i?n:s,l=i?s: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 h=c?"pre":"";return n.major!==s.major?h+"major":n.minor!==s.minor?h+"minor":n.patch!==s.patch?h+"patch":"prerelease"};Ry.exports=Q0});var My=Y((K1,Ly)=>{"use strict";A();var J0=lt(),Z0=(t,e)=>new J0(t,e).major;Ly.exports=Z0});var Fy=Y((Y1,Oy)=>{"use strict";A();var eR=lt(),tR=(t,e)=>new eR(t,e).minor;Oy.exports=tR});var $y=Y((J1,By)=>{"use strict";A();var nR=lt(),sR=(t,e)=>new nR(t,e).patch;By.exports=sR});var Vy=Y((e2,Uy)=>{"use strict";A();var rR=Pr(),iR=(t,e)=>{let n=rR(t,e);return n&&n.prerelease.length?n.prerelease:null};Uy.exports=iR});var cn=Y((n2,Hy)=>{"use strict";A();var Gy=lt(),oR=(t,e,n)=>new Gy(t,n).compare(new Gy(e,n));Hy.exports=oR});var Wy=Y((r2,qy)=>{"use strict";A();var aR=cn(),lR=(t,e,n)=>aR(e,t,n);qy.exports=lR});var zy=Y((o2,jy)=>{"use strict";A();var cR=cn(),uR=(t,e)=>cR(t,e,!0);jy.exports=uR});var Hl=Y((l2,Xy)=>{"use strict";A();var Ky=lt(),pR=(t,e,n)=>{let s=new Ky(t,n),r=new Ky(e,n);return s.compare(r)||s.compareBuild(r)};Xy.exports=pR});var Qy=Y((u2,Yy)=>{"use strict";A();var hR=Hl(),fR=(t,e)=>t.sort((n,s)=>hR(n,s,e));Yy.exports=fR});var Zy=Y((h2,Jy)=>{"use strict";A();var dR=Hl(),mR=(t,e)=>t.sort((n,s)=>dR(s,n,e));Jy.exports=mR});var sa=Y((d2,ev)=>{"use strict";A();var gR=cn(),yR=(t,e,n)=>gR(t,e,n)>0;ev.exports=yR});var ql=Y((g2,tv)=>{"use strict";A();var vR=cn(),SR=(t,e,n)=>vR(t,e,n)<0;tv.exports=SR});var Lp=Y((v2,nv)=>{"use strict";A();var ER=cn(),TR=(t,e,n)=>ER(t,e,n)===0;nv.exports=TR});var Mp=Y((E2,sv)=>{"use strict";A();var wR=cn(),xR=(t,e,n)=>wR(t,e,n)!==0;sv.exports=xR});var Wl=Y((w2,rv)=>{"use strict";A();var CR=cn(),AR=(t,e,n)=>CR(t,e,n)>=0;rv.exports=AR});var jl=Y((C2,iv)=>{"use strict";A();var IR=cn(),NR=(t,e,n)=>IR(t,e,n)<=0;iv.exports=NR});var Op=Y((I2,ov)=>{"use strict";A();var DR=Lp(),bR=Mp(),_R=sa(),kR=Wl(),RR=ql(),PR=jl(),LR=(t,e,n,s)=>{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,s);case"!=":return bR(t,n,s);case">":return _R(t,n,s);case">=":return kR(t,n,s);case"<":return RR(t,n,s);case"<=":return PR(t,n,s);default:throw new TypeError(`Invalid operator: ${e}`)}};ov.exports=LR});var lv=Y((D2,av)=>{"use strict";A();var MR=lt(),OR=Pr(),{safeRe:zl,t:Kl}=bi(),FR=(t,e)=>{if(t instanceof MR)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?zl[Kl.COERCEFULL]:zl[Kl.COERCE]);else{let c=e.includePrerelease?zl[Kl.COERCERTLFULL]:zl[Kl.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 s=n[2],r=n[3]||"0",i=n[4]||"0",o=e.includePrerelease&&n[5]?`-${n[5]}`:"",l=e.includePrerelease&&n[6]?`+${n[6]}`:"";return OR(`${s}.${r}.${i}${o}${l}`,e)};av.exports=FR});var uv=Y((_2,cv)=>{"use strict";A();var Fp=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 r=this.map.keys().next().value;this.delete(r)}this.map.set(e,n)}return this}};cv.exports=Fp});var un=Y((R2,dv)=>{"use strict";A();var BR=/\s+/g,Bp=class t{constructor(e,n){if(n=UR(n),e instanceof t)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new t(e.raw,n);if(e instanceof $p)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(BR," "),this.set=this.raw.split("||").map(s=>this.parseRange(s.trim())).filter(s=>s.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let s=this.set[0];if(this.set=this.set.filter(r=>!hv(r[0])),this.set.length===0)this.set=[s];else if(this.set.length>1){for(let r of this.set)if(r.length===1&&zR(r[0])){this.set=[r];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 s=0;s<n.length;s++)s>0&&(this.formatted+=" "),this.formatted+=n[s].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let s=((this.options.includePrerelease&&WR)|(this.options.loose&&jR))+":"+e,r=pv.get(s);if(r)return r;let i=this.options.loose,o=i?At[ct.HYPHENRANGELOOSE]:At[ct.HYPHENRANGE];e=e.replace(o,sP(this.options.includePrerelease)),Te("hyphen replace",e),e=e.replace(At[ct.COMPARATORTRIM],GR),Te("comparator trim",e),e=e.replace(At[ct.TILDETRIM],HR),Te("tilde trim",e),e=e.replace(At[ct.CARETTRIM],qR),Te("caret trim",e);let l=e.split(" ").map(d=>KR(d,this.options)).join(" ").split(/\s+/).map(d=>nP(d,this.options));i&&(l=l.filter(d=>(Te("loose invalid filter",d,this.options),!!d.match(At[ct.COMPARATORLOOSE])))),Te("range list",l);let c=new Map,u=l.map(d=>new $p(d,this.options));for(let d of u){if(hv(d))return[d];c.set(d.value,d)}c.size>1&&c.has("")&&c.delete("");let h=[...c.values()];return pv.set(s,h),h}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(s=>fv(s,n)&&e.set.some(r=>fv(r,n)&&s.every(i=>r.every(o=>i.intersects(o,n)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new VR(e,this.options)}catch(n){return!1}for(let n=0;n<this.set.length;n++)if(rP(this.set[n],e,this.options))return!0;return!1}};dv.exports=Bp;var $R=uv(),pv=new $R,UR=Bl(),$p=ra(),Te=na(),VR=lt(),{safeRe:At,t:ct,comparatorTrimReplace:GR,tildeTrimReplace:HR,caretTrimReplace:qR}=bi(),{FLAG_INCLUDE_PRERELEASE:WR,FLAG_LOOSE:jR}=ta(),hv=t=>t.value==="<0.0.0-0",zR=t=>t.value==="",fv=(t,e)=>{let n=!0,s=t.slice(),r=s.pop();for(;n&&s.length;)n=s.every(i=>r.intersects(i,e)),r=s.pop();return n},KR=(t,e)=>(t=t.replace(At[ct.BUILD],""),Te("comp",t,e),t=QR(t,e),Te("caret",t),t=XR(t,e),Te("tildes",t),t=ZR(t,e),Te("xrange",t),t=tP(t,e),Te("stars",t),t),It=t=>!t||t.toLowerCase()==="x"||t==="*",XR=(t,e)=>t.trim().split(/\s+/).map(n=>YR(n,e)).join(" "),YR=(t,e)=>{let n=e.loose?At[ct.TILDELOOSE]:At[ct.TILDE];return t.replace(n,(s,r,i,o,l)=>{Te("tilde",t,s,r,i,o,l);let c;return It(r)?c="":It(i)?c=`>=${r}.0.0 <${+r+1}.0.0-0`:It(o)?c=`>=${r}.${i}.0 <${r}.${+i+1}.0-0`:l?(Te("replaceTilde pr",l),c=`>=${r}.${i}.${o}-${l} <${r}.${+i+1}.0-0`):c=`>=${r}.${i}.${o} <${r}.${+i+1}.0-0`,Te("tilde return",c),c})},QR=(t,e)=>t.trim().split(/\s+/).map(n=>JR(n,e)).join(" "),JR=(t,e)=>{Te("caret",t,e);let n=e.loose?At[ct.CARETLOOSE]:At[ct.CARET],s=e.includePrerelease?"-0":"";return t.replace(n,(r,i,o,l,c)=>{Te("caret",t,r,i,o,l,c);let u;return It(i)?u="":It(o)?u=`>=${i}.0.0${s} <${+i+1}.0.0-0`:It(l)?i==="0"?u=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.0${s} <${+i+1}.0.0-0`:c?(Te("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`):(Te("no pr"),i==="0"?o==="0"?u=`>=${i}.${o}.${l}${s} <${i}.${o}.${+l+1}-0`:u=`>=${i}.${o}.${l}${s} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${l} <${+i+1}.0.0-0`),Te("caret return",u),u})},ZR=(t,e)=>(Te("replaceXRanges",t,e),t.split(/\s+/).map(n=>eP(n,e)).join(" ")),eP=(t,e)=>{t=t.trim();let n=e.loose?At[ct.XRANGELOOSE]:At[ct.XRANGE];return t.replace(n,(s,r,i,o,l,c)=>{Te("xRange",t,s,r,i,o,l,c);let u=It(i),h=u||It(o),d=h||It(l),p=d;return r==="="&&p&&(r=""),c=e.includePrerelease?"-0":"",u?r===">"||r==="<"?s="<0.0.0-0":s="*":r&&p?(h&&(o=0),l=0,r===">"?(r=">=",h?(i=+i+1,o=0,l=0):(o=+o+1,l=0)):r==="<="&&(r="<",h?i=+i+1:o=+o+1),r==="<"&&(c="-0"),s=`${r+i}.${o}.${l}${c}`):h?s=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(s=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),Te("xRange return",s),s})},tP=(t,e)=>(Te("replaceStars",t,e),t.trim().replace(At[ct.STAR],"")),nP=(t,e)=>(Te("replaceGTE0",t,e),t.trim().replace(At[e.includePrerelease?ct.GTE0PRE:ct.GTE0],"")),sP=t=>(e,n,s,r,i,o,l,c,u,h,d,p)=>(It(s)?n="":It(r)?n=`>=${s}.0.0${t?"-0":""}`:It(i)?n=`>=${s}.${r}.0${t?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,It(u)?c="":It(h)?c=`<${+u+1}.0.0-0`:It(d)?c=`<${u}.${+h+1}.0-0`:p?c=`<=${u}.${h}.${d}-${p}`:t?c=`<${u}.${h}.${+d+1}-0`:c=`<=${c}`,`${n} ${c}`.trim()),rP=(t,e,n)=>{for(let s=0;s<t.length;s++)if(!t[s].test(e))return!1;if(e.prerelease.length&&!n.includePrerelease){for(let s=0;s<t.length;s++)if(Te(t[s].semver),t[s].semver!==$p.ANY&&t[s].semver.prerelease.length>0){let r=t[s].semver;if(r.major===e.major&&r.minor===e.minor&&r.patch===e.patch)return!0}return!1}return!0}});var ra=Y((L2,Ev)=>{"use strict";A();var ia=Symbol("SemVer ANY"),Gp=class t{static get ANY(){return ia}constructor(e,n){if(n=mv(n),e instanceof t){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Vp("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===ia?this.value="":this.value=this.operator+this.semver.version,Vp("comp",this)}parse(e){let n=this.options.loose?gv[yv.COMPARATORLOOSE]:gv[yv.COMPARATOR],s=e.match(n);if(!s)throw new TypeError(`Invalid comparator: ${e}`);this.operator=s[1]!==void 0?s[1]:"",this.operator==="="&&(this.operator=""),s[2]?this.semver=new vv(s[2],this.options.loose):this.semver=ia}toString(){return this.value}test(e){if(Vp("Comparator.test",e,this.options.loose),this.semver===ia||e===ia)return!0;if(typeof e=="string")try{e=new vv(e,this.options)}catch(n){return!1}return Up(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 Sv(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new Sv(this.value,n).test(e.semver):(n=mv(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("=")||Up(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Up(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Ev.exports=Gp;var mv=Bl(),{safeRe:gv,t:yv}=bi(),Up=Op(),Vp=na(),vv=lt(),Sv=un()});var oa=Y((O2,Tv)=>{"use strict";A();var iP=un(),oP=(t,e,n)=>{try{e=new iP(e,n)}catch(s){return!1}return e.test(t)};Tv.exports=oP});var xv=Y((B2,wv)=>{"use strict";A();var aP=un(),lP=(t,e)=>new aP(t,e).set.map(n=>n.map(s=>s.value).join(" ").trim().split(" "));wv.exports=lP});var Av=Y((U2,Cv)=>{"use strict";A();var cP=lt(),uP=un(),pP=(t,e,n)=>{let s=null,r=null,i=null;try{i=new uP(e,n)}catch(o){return null}return t.forEach(o=>{i.test(o)&&(!s||r.compare(o)===-1)&&(s=o,r=new cP(s,n))}),s};Cv.exports=pP});var Nv=Y((G2,Iv)=>{"use strict";A();var hP=lt(),fP=un(),dP=(t,e,n)=>{let s=null,r=null,i=null;try{i=new fP(e,n)}catch(o){return null}return t.forEach(o=>{i.test(o)&&(!s||r.compare(o)===1)&&(s=o,r=new hP(s,n))}),s};Iv.exports=dP});var _v=Y((q2,bv)=>{"use strict";A();var Hp=lt(),mP=un(),Dv=sa(),gP=(t,e)=>{t=new mP(t,e);let n=new Hp("0.0.0");if(t.test(n)||(n=new Hp("0.0.0-0"),t.test(n)))return n;n=null;for(let s=0;s<t.set.length;++s){let r=t.set[s],i=null;r.forEach(o=>{let l=new Hp(o.semver.version);switch(o.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!i||Dv(l,i))&&(i=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!n||Dv(n,i))&&(n=i)}return n&&t.test(n)?n:null};bv.exports=gP});var Rv=Y((j2,kv)=>{"use strict";A();var yP=un(),vP=(t,e)=>{try{return new yP(t,e).range||"*"}catch(n){return null}};kv.exports=vP});var Xl=Y((K2,Ov)=>{"use strict";A();var SP=lt(),Mv=ra(),{ANY:EP}=Mv,TP=un(),wP=oa(),Pv=sa(),Lv=ql(),xP=jl(),CP=Wl(),AP=(t,e,n,s)=>{t=new SP(t,s),e=new TP(e,s);let r,i,o,l,c;switch(n){case">":r=Pv,i=xP,o=Lv,l=">",c=">=";break;case"<":r=Lv,i=CP,o=Pv,l="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(wP(t,e,s))return!1;for(let u=0;u<e.set.length;++u){let h=e.set[u],d=null,p=null;if(h.forEach(g=>{g.semver===EP&&(g=new Mv(">=0.0.0")),d=d||g,p=p||g,r(g.semver,d.semver,s)?d=g:o(g.semver,p.semver,s)&&(p=g)}),d.operator===l||d.operator===c||(!p.operator||p.operator===l)&&i(t,p.semver))return!1;if(p.operator===c&&o(t,p.semver))return!1}return!0};Ov.exports=AP});var Bv=Y((Y2,Fv)=>{"use strict";A();var IP=Xl(),NP=(t,e,n)=>IP(t,e,">",n);Fv.exports=NP});var Uv=Y((J2,$v)=>{"use strict";A();var DP=Xl(),bP=(t,e,n)=>DP(t,e,"<",n);$v.exports=bP});var Hv=Y((eB,Gv)=>{"use strict";A();var Vv=un(),_P=(t,e,n)=>(t=new Vv(t,n),e=new Vv(e,n),t.intersects(e,n));Gv.exports=_P});var Wv=Y((nB,qv)=>{"use strict";A();var kP=oa(),RP=cn();qv.exports=(t,e,n)=>{let s=[],r=null,i=null,o=t.sort((h,d)=>RP(h,d,n));for(let h of o)kP(h,e,n)?(i=h,r||(r=h)):(i&&s.push([r,i]),i=null,r=null);r&&s.push([r,null]);let l=[];for(let[h,d]of s)h===d?l.push(h):!d&&h===o[0]?l.push("*"):d?h===o[0]?l.push(`<=${d}`):l.push(`${h} - ${d}`):l.push(`>=${h}`);let c=l.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return c.length<u.length?c:e}});var Qv=Y((rB,Yv)=>{"use strict";A();var jv=un(),Wp=ra(),{ANY:qp}=Wp,aa=oa(),jp=cn(),PP=(t,e,n={})=>{if(t===e)return!0;t=new jv(t,n),e=new jv(e,n);let s=!1;e:for(let r of t.set){for(let i of e.set){let o=MP(r,i,n);if(s=s||o!==null,o)continue e}if(s)return!1}return!0},LP=[new Wp(">=0.0.0-0")],zv=[new Wp(">=0.0.0")],MP=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===qp){if(e.length===1&&e[0].semver===qp)return!0;n.includePrerelease?t=LP:t=zv}if(e.length===1&&e[0].semver===qp){if(n.includePrerelease)return!0;e=zv}let s=new Set,r,i;for(let g of t)g.operator===">"||g.operator===">="?r=Kv(r,g,n):g.operator==="<"||g.operator==="<="?i=Xv(i,g,n):s.add(g.semver);if(s.size>1)return null;let o;if(r&&i){if(o=jp(r.semver,i.semver,n),o>0)return null;if(o===0&&(r.operator!==">="||i.operator!=="<="))return null}for(let g of s){if(r&&!aa(g,String(r),n)||i&&!aa(g,String(i),n))return null;for(let v of e)if(!aa(g,String(v),n))return!1;return!0}let l,c,u,h,d=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1,p=r&&!n.includePrerelease&&r.semver.prerelease.length?r.semver:!1;d&&d.prerelease.length===1&&i.operator==="<"&&d.prerelease[0]===0&&(d=!1);for(let g of e){if(h=h||g.operator===">"||g.operator===">=",u=u||g.operator==="<"||g.operator==="<=",r){if(p&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===p.major&&g.semver.minor===p.minor&&g.semver.patch===p.patch&&(p=!1),g.operator===">"||g.operator===">="){if(l=Kv(r,g,n),l===g&&l!==r)return!1}else if(r.operator===">="&&!aa(r.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=Xv(i,g,n),c===g&&c!==i)return!1}else if(i.operator==="<="&&!aa(i.semver,String(g),n))return!1}if(!g.operator&&(i||r)&&o!==0)return!1}return!(r&&u&&!i&&o!==0||i&&h&&!r&&o!==0||p||d)},Kv=(t,e,n)=>{if(!t)return e;let s=jp(t.semver,e.semver,n);return s>0?t:s<0||e.operator===">"&&t.operator===">="?e:t},Xv=(t,e,n)=>{if(!t)return e;let s=jp(t.semver,e.semver,n);return s<0?t:s>0||e.operator==="<"&&t.operator==="<="?e:t};Yv.exports=PP});var tS=Y((oB,eS)=>{"use strict";A();var zp=bi(),Jv=ta(),OP=lt(),Zv=kp(),FP=Pr(),BP=Ay(),$P=Ny(),UP=_y(),VP=Py(),GP=My(),HP=Fy(),qP=$y(),WP=Vy(),jP=cn(),zP=Wy(),KP=zy(),XP=Hl(),YP=Qy(),QP=Zy(),JP=sa(),ZP=ql(),eL=Lp(),tL=Mp(),nL=Wl(),sL=jl(),rL=Op(),iL=lv(),oL=ra(),aL=un(),lL=oa(),cL=xv(),uL=Av(),pL=Nv(),hL=_v(),fL=Rv(),dL=Xl(),mL=Bv(),gL=Uv(),yL=Hv(),vL=Wv(),SL=Qv();eS.exports={parse:FP,valid:BP,clean:$P,inc:UP,diff:VP,major:GP,minor:HP,patch:qP,prerelease:WP,compare:jP,rcompare:zP,compareLoose:KP,compareBuild:XP,sort:YP,rsort:QP,gt:JP,lt:ZP,eq:eL,neq:tL,gte:nL,lte:sL,cmp:rL,coerce:iL,Comparator:oL,Range:aL,satisfies:lL,toComparators:cL,maxSatisfying:uL,minSatisfying:pL,minVersion:hL,validRange:fL,outside:dL,gtr:mL,ltr:gL,intersects:yL,simplifyRange:vL,subset:SL,SemVer:OP,re:zp.re,src:zp.src,tokens:zp.t,SEMVER_SPEC_VERSION:Jv.SEMVER_SPEC_VERSION,RELEASE_TYPES:Jv.RELEASE_TYPES,compareIdentifiers:Zv.compareIdentifiers,rcompareIdentifiers:Zv.rcompareIdentifiers}});var nO={};FS(nO,{angularJitApplicationTransform:()=>Fl});module.exports=BS(nO);A();A();var NS=require("module");A();var dS=require("module");A();var fS=require("module");A();var Hg=require("module");A();var ug=require("module");A();var uh=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g"),fn=class t{constructor(){a(this,"element",null);a(this,"classNames",[]);a(this,"attrs",[]);a(this,"notSelectors",[])}static parse(e){let n=[],s=(c,u)=>{u.notSelectors.length>0&&!u.element&&u.classNames.length==0&&u.attrs.length==0&&(u.element="*"),c.push(u)},r=new t,i,o=r,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,r.notSelectors.push(o)}let c=i[2];if(c){let h=i[3];h==="#"?o.addAttribute("id",c.slice(1)):h==="."?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=r),i[8]){if(l)throw new Error("Multiple selectors in :not are not supported");s(n,r),r=o=new t}}return s(n,r),n}unescapeAttribute(e){let n="",s=!1;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i==="\\"){s=!0;continue}if(i==="$"&&!s)throw new Error(`Error in attribute selector "${e}". Unescaped "$" is not supported. Please escape with "\\$".`);s=!1,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 s=this.escapeAttribute(this.attrs[n]),r=this.attrs[n+1];e+=`[${s}${r?"="+r:""}]`}return this.notSelectors.forEach(n=>e+=`:not(${n})`),e}},ur=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 s=null;e.length>1&&(s=new Sc(e),this._listContexts.push(s));for(let r=0;r<e.length;r++)this._addSelectable(e[r],n,s)}_addSelectable(e,n,s){let r=this,i=e.element,o=e.classNames,l=e.attrs,c=new Ec(e,n,s);if(i&&(l.length===0&&o.length===0?this._addTerminal(r._elementMap,i,c):r=this._addPartial(r._elementPartialMap,i)),o)for(let u=0;u<o.length;u++){let h=l.length===0&&u===o.length-1,d=o[u];h?this._addTerminal(r._classMap,d,c):r=this._addPartial(r._classPartialMap,d)}if(l)for(let u=0;u<l.length;u+=2){let h=u===l.length-2,d=l[u],p=l[u+1];if(h){let g=r._attrValueMap,v=g.get(d);v||(v=new Map,g.set(d,v)),this._addTerminal(v,p,c)}else{let g=r._attrValuePartialMap,v=g.get(d);v||(v=new Map,g.set(d,v)),r=this._addPartial(v,p)}}}_addTerminal(e,n,s){let r=e.get(n);r||(r=[],e.set(n,r)),r.push(s)}_addPartial(e,n){let s=e.get(n);return s||(s=new t,e.set(n,s)),s}match(e,n){let s=!1,r=e.element,i=e.classNames,o=e.attrs;for(let l=0;l<this._listContexts.length;l++)this._listContexts[l].alreadyMatched=!1;if(s=this._matchTerminal(this._elementMap,r,e,n)||s,s=this._matchPartial(this._elementPartialMap,r,e,n)||s,i)for(let l=0;l<i.length;l++){let c=i[l];s=this._matchTerminal(this._classMap,c,e,n)||s,s=this._matchPartial(this._classPartialMap,c,e,n)||s}if(o)for(let l=0;l<o.length;l+=2){let c=o[l],u=o[l+1],h=this._attrValueMap.get(c);u&&(s=this._matchTerminal(h,"",e,n)||s),s=this._matchTerminal(h,u,e,n)||s;let d=this._attrValuePartialMap.get(c);u&&(s=this._matchPartial(d,"",e,n)||s),s=this._matchPartial(d,u,e,n)||s}return s}_matchTerminal(e,n,s,r){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(s,r)||c;return c}_matchPartial(e,n,s,r){if(!e||typeof n!="string")return!1;let i=e.get(n);return i?i.match(s,r):!1}},Sc=class{constructor(e){a(this,"selectors");a(this,"alreadyMatched",!1);this.selectors=e}},Ec=class{constructor(e,n,s){a(this,"selector");a(this,"cbContext");a(this,"listContext");a(this,"notSelectors");this.selector=e,this.cbContext=n,this.listContext=s,this.notSelectors=e.notSelectors}finalize(e,n){let s=!0;return this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)&&(s=!ur.createNotMatcher(this.notSelectors).match(e,null)),s&&n&&(!this.listContext||!this.listContext.alreadyMatched)&&(this.listContext&&(this.listContext.alreadyMatched=!0),n(this.selector,this.cbContext)),s}},ei=class{constructor(e){a(this,"registry");this.registry=e}match(e){return this.registry.has(e)?this.registry.get(e):[]}};var An;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t[t.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom"})(An||(An={}));var Ia;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t[t.Eager=1]="Eager"})(Ia||(Ia={}));var Hr;(function(t){t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Hr||(Hr={}));var Tc={name:"custom-elements"},wc={name:"no-errors-schema"};var ue;(function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING"})(ue||(ue={}));var ph;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(ph||(ph={}));function $S(t){let e=t.classNames&&t.classNames.length?[8,...t.classNames]:[];return[t.element&&t.element!=="*"?t.element:"",...t.attrs,...e]}function US(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 VS(t){let e=$S(t),n=t.notSelectors&&t.notSelectors.length?t.notSelectors.map(s=>US(s)):[];return e.concat(...n)}function Ku(t){return t?fn.parse(t).map(VS):[]}var gt;(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"})(gt||(gt={}));var hh;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(hh||(hh={}));var fh;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t[t.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom"})(fh||(fh={}));var ms;function GS(t){return jS(WS(t.nodes).join("")+`[${t.meaning}]`)}function HS(t){return t.id||Ed(t)}function Ed(t){let e=new xc,n=t.nodes.map(s=>s.visit(e,null));return Td(n.join(""),t.meaning)}var Na=class{visitText(e,n){return e.value}visitContainer(e,n){return`[${e.children.map(s=>s.visit(this)).join(", ")}]`}visitIcu(e,n){let s=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.expression}, ${e.type}, ${s.join(", ")}}`}visitTagPlaceholder(e,n){return e.isVoid?`<ph tag name="${e.startName}"/>`:`<ph tag name="${e.startName}">${e.children.map(s=>s.visit(this)).join(", ")}</ph name="${e.closeName}">`}visitPlaceholder(e,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(s=>s.visit(this)).join(", ")}</ph name="${e.closeName}">`}},qS=new Na;function WS(t){return t.map(e=>e.visit(qS,null))}var xc=class extends Na{visitIcu(e){let n=Object.keys(e.cases).map(s=>`${s} {${e.cases[s].visit(this)}}`);return`{${e.type}, ${n.join(", ")}}`}};function jS(t){ms!=null||(ms=new TextEncoder);let e=[...ms.encode(t)],n=XS(e,Da.Big),s=e.length*8,r=new Uint32Array(80),i=1732584193,o=4023233417,l=2562383102,c=271733878,u=3285377520;n[s>>5]|=128<<24-s%32,n[(s+64>>9<<4)+15]=s;for(let h=0;h<n.length;h+=16){let d=i,p=o,g=l,v=c,E=u;for(let I=0;I<80;I++){I<16?r[I]=n[h+I]:r[I]=Jl(r[I-3]^r[I-8]^r[I-14]^r[I-16],1);let D=zS(I,o,l,c),b=D[0],P=D[1],L=[Jl(i,5),b,u,P,r[I]].reduce(Lr);u=c,c=l,l=Jl(o,30),o=i,i=L}i=Lr(i,d),o=Lr(o,p),l=Lr(l,g),c=Lr(c,v),u=Lr(u,E)}return Pi(i)+Pi(o)+Pi(l)+Pi(c)+Pi(u)}function Pi(t){return(t>>>0).toString(16).padStart(8,"0")}function zS(t,e,n,s){return t<20?[e&n|~e&s,1518500249]:t<40?[e^n^s,1859775393]:t<60?[e&n|e&s|n&s,2400959708]:[e^n^s,3395469782]}function dh(t){ms!=null||(ms=new TextEncoder);let e=ms.encode(t),n=new DataView(e.buffer,e.byteOffset,e.byteLength),s=mh(n,e.length,0),r=mh(n,e.length,102072);return s==0&&(r==0||r==1)&&(s=s^319790063,r=r^-1801410264),BigInt.asUintN(32,BigInt(s))<<BigInt(32)|BigInt.asUintN(32,BigInt(r))}function Td(t,e=""){let n=dh(t);return e&&(n=BigInt.asUintN(64,n<<BigInt(1))|n>>BigInt(63)&BigInt(1),n+=dh(e)),BigInt.asUintN(63,n).toString()}function mh(t,e,n){let s=2654435769,r=2654435769,i=0,o=e-12;for(;i<=o;i+=12){s+=t.getUint32(i,!0),r+=t.getUint32(i+4,!0),n+=t.getUint32(i+8,!0);let c=gh(s,r,n);s=c[0],r=c[1],n=c[2]}let l=e-i;return n+=e,l>=4?(s+=t.getUint32(i,!0),i+=4,l>=8?(r+=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&&(r+=t.getUint8(i++)),l>=6&&(r+=t.getUint8(i++)<<8),l===7&&(r+=t.getUint8(i++)<<16))):(l>=1&&(s+=t.getUint8(i++)),l>=2&&(s+=t.getUint8(i++)<<8),l===3&&(s+=t.getUint8(i++)<<16)),gh(s,r,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 Da;(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(Da||(Da={}));function Lr(t,e){return KS(t,e)[1]}function KS(t,e){let n=(t&65535)+(e&65535),s=(t>>>16)+(e>>>16)+(n>>>16);return[s>>>16,s<<16|n&65535]}function Jl(t,e){return t<<e|t>>>32-e}function XS(t,e){let n=t.length+3>>>2,s=[];for(let r=0;r<n;r++)s[r]=YS(t,r*4,e);return s}function yh(t,e){return e>=t.length?0:t[e]}function YS(t,e,n){let s=0;if(n===Da.Big)for(let r=0;r<4;r++)s+=yh(t,e+r)<<24-8*r;else for(let r=0;r<4;r++)s+=yh(t,e+r)<<8*r;return s}var ba;(function(t){t[t.None=0]="None",t[t.Const=1]="Const"})(ba||(ba={}));var Es=class{constructor(e=ba.None){a(this,"modifiers");this.modifiers=e}hasModifier(e){return(this.modifiers&e)!==0}},Vt;(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"})(Vt||(Vt={}));var dn=class extends Es{constructor(n,s){super(s);a(this,"name");this.name=n}visitType(n,s){return n.visitBuiltinType(this,s)}},_t=class extends Es{constructor(n,s,r=null){super(s);a(this,"value");a(this,"typeParams");this.value=n,this.typeParams=r}visitType(n,s){return n.visitExpressionType(this,s)}},Cc=class extends Es{constructor(n,s){super(s);a(this,"of");this.of=n}visitType(n,s){return n.visitArrayType(this,s)}},Ac=class extends Es{constructor(n,s){super(s);a(this,"valueType");this.valueType=n||null}visitType(n,s){return n.visitMapType(this,s)}},to=class extends Es{constructor(n,s){super(s);a(this,"type");this.type=n}visitType(n,s){return n.visitTransplantedType(this,s)}},Et=new dn(Vt.Dynamic),tn=new dn(Vt.Inferred),wd=new dn(Vt.Bool),QS=new dn(Vt.Int),Ts=new dn(Vt.Number),vl=new dn(Vt.String),JS=new dn(Vt.Function),mn=new dn(Vt.None),Rn;(function(t){t[t.Minus=0]="Minus",t[t.Plus=1]="Plus"})(Rn||(Rn={}));var T;(function(t){t[t.Equals=0]="Equals",t[t.NotEquals=1]="NotEquals",t[t.Assign=2]="Assign",t[t.Identical=3]="Identical",t[t.NotIdentical=4]="NotIdentical",t[t.Minus=5]="Minus",t[t.Plus=6]="Plus",t[t.Divide=7]="Divide",t[t.Multiply=8]="Multiply",t[t.Modulo=9]="Modulo",t[t.And=10]="And",t[t.Or=11]="Or",t[t.BitwiseOr=12]="BitwiseOr",t[t.BitwiseAnd=13]="BitwiseAnd",t[t.Lower=14]="Lower",t[t.LowerEquals=15]="LowerEquals",t[t.Bigger=16]="Bigger",t[t.BiggerEquals=17]="BiggerEquals",t[t.NullishCoalesce=18]="NullishCoalesce",t[t.Exponentiation=19]="Exponentiation",t[t.In=20]="In",t[t.InstanceOf=21]="InstanceOf",t[t.AdditionAssignment=22]="AdditionAssignment",t[t.SubtractionAssignment=23]="SubtractionAssignment",t[t.MultiplicationAssignment=24]="MultiplicationAssignment",t[t.DivisionAssignment=25]="DivisionAssignment",t[t.RemainderAssignment=26]="RemainderAssignment",t[t.ExponentiationAssignment=27]="ExponentiationAssignment",t[t.AndAssignment=28]="AndAssignment",t[t.OrAssignment=29]="OrAssignment",t[t.NullishCoalesceAssignment=30]="NullishCoalesceAssignment"})(T||(T={}));function xd(t,e){return t==null||e==null?t==e:t.isEquivalent(e)}function Cd(t,e,n){let s=t.length;if(s!==e.length)return!1;for(let r=0;r<s;r++)if(!n(t[r],e[r]))return!1;return!0}function Tt(t,e){return Cd(t,e,(n,s)=>n.isEquivalent(s))}var ie=class{constructor(e,n){a(this,"type");a(this,"sourceSpan");this.type=e||null,this.sourceSpan=n||null}prop(e,n){return new wt(this,e,null,n)}key(e,n,s){return new Pn(this,e,n,s)}callFn(e,n,s){return new ot(this,e,null,n,s)}instantiate(e,n,s){return new ni(this,e,n,s)}conditional(e,n=null,s){return new gn(this,e,n,null,s)}equals(e,n){return new se(T.Equals,this,e,null,n)}notEquals(e,n){return new se(T.NotEquals,this,e,null,n)}identical(e,n){return new se(T.Identical,this,e,null,n)}notIdentical(e,n){return new se(T.NotIdentical,this,e,null,n)}minus(e,n){return new se(T.Minus,this,e,null,n)}plus(e,n){return new se(T.Plus,this,e,null,n)}divide(e,n){return new se(T.Divide,this,e,null,n)}multiply(e,n){return new se(T.Multiply,this,e,null,n)}modulo(e,n){return new se(T.Modulo,this,e,null,n)}power(e,n){return new se(T.Exponentiation,this,e,null,n)}and(e,n){return new se(T.And,this,e,null,n)}bitwiseOr(e,n){return new se(T.BitwiseOr,this,e,null,n)}bitwiseAnd(e,n){return new se(T.BitwiseAnd,this,e,null,n)}or(e,n){return new se(T.Or,this,e,null,n)}lower(e,n){return new se(T.Lower,this,e,null,n)}lowerEquals(e,n){return new se(T.LowerEquals,this,e,null,n)}bigger(e,n){return new se(T.Bigger,this,e,null,n)}biggerEquals(e,n){return new se(T.BiggerEquals,this,e,null,n)}isBlank(e){return this.equals(Ad,e)}nullishCoalesce(e,n){return new se(T.NullishCoalesce,this,e,null,n)}toStmt(){return new Je(this,null)}},nn=class t extends ie{constructor(n,s,r){super(s,r);a(this,"name");this.name=n}isEquivalent(n){return n instanceof t&&this.name===n.name}isConstant(){return!1}visitExpression(n,s){return n.visitReadVarExpr(this,s)}clone(){return new t(this.name,this.type,this.sourceSpan)}set(n){return new se(T.Assign,this,n,null,this.sourceSpan)}},pr=class t extends ie{constructor(n,s,r){super(s,r);a(this,"expr");this.expr=n}visitExpression(n,s){return n.visitTypeofExpr(this,s)}isEquivalent(n){return n instanceof t&&n.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}},no=class t extends ie{constructor(n,s,r){super(s,r);a(this,"expr");this.expr=n}visitExpression(n,s){return n.visitVoidExpr(this,s)}isEquivalent(n){return n instanceof t&&n.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}},W=class t extends ie{constructor(n,s,r){super(s,r);a(this,"node");this.node=n}isEquivalent(n){return n instanceof t&&this.node===n.node}isConstant(){return!1}visitExpression(n,s){return n.visitWrappedNodeExpr(this,s)}clone(){return new t(this.node,this.type,this.sourceSpan)}},ot=class t extends ie{constructor(n,s,r,i,o=!1){super(r,i);a(this,"fn");a(this,"args");a(this,"pure");this.fn=n,this.args=s,this.pure=o}get receiver(){return this.fn}isEquivalent(n){return n instanceof t&&this.fn.isEquivalent(n.fn)&&Tt(this.args,n.args)&&this.pure===n.pure}isConstant(){return!1}visitExpression(n,s){return n.visitInvokeFunctionExpr(this,s)}clone(){return new t(this.fn.clone(),this.args.map(n=>n.clone()),this.type,this.sourceSpan,this.pure)}},ti=class t extends ie{constructor(n,s,r,i){super(r,i);a(this,"tag");a(this,"template");this.tag=n,this.template=s}isEquivalent(n){return n instanceof t&&this.tag.isEquivalent(n.tag)&&this.template.isEquivalent(n.template)}isConstant(){return!1}visitExpression(n,s){return n.visitTaggedTemplateLiteralExpr(this,s)}clone(){return new t(this.tag.clone(),this.template.clone(),this.type,this.sourceSpan)}},ni=class t extends ie{constructor(n,s,r,i){super(r,i);a(this,"classExpr");a(this,"args");this.classExpr=n,this.args=s}isEquivalent(n){return n instanceof t&&this.classExpr.isEquivalent(n.classExpr)&&Tt(this.args,n.args)}isConstant(){return!1}visitExpression(n,s){return n.visitInstantiateExpr(this,s)}clone(){return new t(this.classExpr.clone(),this.args.map(n=>n.clone()),this.type,this.sourceSpan)}},hr=class t extends ie{constructor(n,s,r){super(null,r);a(this,"body");a(this,"flags");this.body=n,this.flags=s}isEquivalent(n){return n instanceof t&&this.body===n.body&&this.flags===n.flags}isConstant(){return!0}visitExpression(n,s){return n.visitRegularExpressionLiteral(this,s)}clone(){return new t(this.body,this.flags,this.sourceSpan)}},_e=class t extends ie{constructor(n,s,r){super(s,r);a(this,"value");this.value=n}isEquivalent(n){return n instanceof t&&this.value===n.value}isConstant(){return!0}visitExpression(n,s){return n.visitLiteralExpr(this,s)}clone(){return new t(this.value,this.type,this.sourceSpan)}},si=class t extends ie{constructor(n,s,r){super(null,r);a(this,"elements");a(this,"expressions");this.elements=n,this.expressions=s}isEquivalent(n){return n instanceof t&&Cd(this.elements,n.elements,(s,r)=>s.text===r.text)&&Tt(this.expressions,n.expressions)}isConstant(){return!1}visitExpression(n,s){return n.visitTemplateLiteralExpr(this,s)}clone(){return new t(this.elements.map(n=>n.clone()),this.expressions.map(n=>n.clone()))}},so=class t extends ie{constructor(n,s,r){super(vl,s);a(this,"text");a(this,"rawText");this.text=n,this.rawText=r!=null?r:Ic(wa(n))}visitExpression(n,s){return n.visitTemplateLiteralElementExpr(this,s)}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)}},ys=class{constructor(e,n){a(this,"text");a(this,"sourceSpan");this.text=e,this.sourceSpan=n}},rr=class{constructor(e,n,s){a(this,"text");a(this,"sourceSpan");a(this,"associatedMessage");this.text=e,this.sourceSpan=n,this.associatedMessage=s}},ZS="|",vh="@@",eE="\u241F",ro=class t extends ie{constructor(n,s,r,i,o){super(vl,o);a(this,"metaBlock");a(this,"messageParts");a(this,"placeHolderNames");a(this,"expressions");this.metaBlock=n,this.messageParts=s,this.placeHolderNames=r,this.expressions=i}isEquivalent(n){return!1}isConstant(){return!1}visitExpression(n,s){return n.visitLocalizedString(this,s)}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}${ZS}${n}`),this.metaBlock.customId&&(n=`${n}${vh}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(s=>{n=`${n}${eE}${s}`}),Sh(n,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}getMessagePartSourceSpan(n){var s,r;return(r=(s=this.messageParts[n])==null?void 0:s.sourceSpan)!=null?r:this.sourceSpan}getPlaceholderSourceSpan(n){var s,r,i,o;return(o=(i=(s=this.placeHolderNames[n])==null?void 0:s.sourceSpan)!=null?i:(r=this.expressions[n])==null?void 0:r.sourceSpan)!=null?o:this.sourceSpan}serializeI18nTemplatePart(n){var o;let s=this.placeHolderNames[n-1],r=this.messageParts[n],i=s.text;return((o=s.associatedMessage)==null?void 0:o.legacyIds.length)===0&&(i+=`${vh}${Td(s.associatedMessage.messageString,s.associatedMessage.meaning)}`),Sh(i,r.text,this.getMessagePartSourceSpan(n))}},wa=t=>t.replace(/\\/g,"\\\\"),tE=t=>t.replace(/^:/,"\\:"),nE=t=>t.replace(/:/g,"\\:"),Ic=t=>t.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function Sh(t,e,n){return t===""?{cooked:e,raw:Ic(tE(wa(e))),range:n}:{cooked:`:${t}:${e}`,raw:Ic(`:${nE(wa(t))}:${wa(e)}`),range:n}}var Qe=class t extends ie{constructor(n,s,r=null,i){super(s,i);a(this,"value");a(this,"typeParams");this.value=n,this.typeParams=r}isEquivalent(n){return n instanceof t&&this.value.name===n.value.name&&this.value.moduleName===n.value.moduleName}isConstant(){return!1}visitExpression(n,s){return n.visitExternalExpr(this,s)}clone(){return new t(this.value,this.type,this.typeParams,this.sourceSpan)}},io=class{constructor(e,n){a(this,"moduleName");a(this,"name");this.moduleName=e,this.name=n}},gn=class t extends ie{constructor(n,s,r=null,i,o){super(i||s.type,o);a(this,"condition");a(this,"falseCase");a(this,"trueCase");this.condition=n,this.falseCase=r,this.trueCase=s}isEquivalent(n){return n instanceof t&&this.condition.isEquivalent(n.condition)&&this.trueCase.isEquivalent(n.trueCase)&&xd(this.falseCase,n.falseCase)}isConstant(){return!1}visitExpression(n,s){return n.visitConditionalExpr(this,s)}clone(){var n;return new t(this.condition.clone(),this.trueCase.clone(),(n=this.falseCase)==null?void 0:n.clone(),this.type,this.sourceSpan)}},Nc=class t extends ie{constructor(n,s,r){super(null,s);a(this,"url");a(this,"urlComment");this.url=n,this.urlComment=r}isEquivalent(n){return n instanceof t&&this.url===n.url&&this.urlComment===n.urlComment}isConstant(){return!1}visitExpression(n,s){return n.visitDynamicImportExpr(this,s)}clone(){return new t(typeof this.url=="string"?this.url:this.url.clone(),this.sourceSpan,this.urlComment)}},ri=class t extends ie{constructor(n,s){super(wd,s);a(this,"condition");this.condition=n}isEquivalent(n){return n instanceof t&&this.condition.isEquivalent(n.condition)}isConstant(){return!1}visitExpression(n,s){return n.visitNotExpr(this,s)}clone(){return new t(this.condition.clone(),this.sourceSpan)}},Oe=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)}},bn=class t extends ie{constructor(n,s,r,i,o){super(r,i);a(this,"params");a(this,"statements");a(this,"name");this.params=n,this.statements=s,this.name=o}isEquivalent(n){return(n instanceof t||n instanceof ii)&&Tt(this.params,n.params)&&Tt(this.statements,n.statements)}isConstant(){return!1}visitExpression(n,s){return n.visitFunctionExpr(this,s)}toDeclStmt(n,s){return new ii(n,this.params,this.statements,this.type,s,this.sourceSpan)}clone(){return new t(this.params.map(n=>n.clone()),this.statements,this.type,this.sourceSpan,this.name)}},Gn=class Dc extends ie{constructor(n,s,r,i){super(r,i);a(this,"params");a(this,"body");this.params=n,this.body=s}isEquivalent(n){return!(n instanceof Dc)||!Tt(this.params,n.params)?!1:this.body instanceof ie&&n.body instanceof ie?this.body.isEquivalent(n.body):Array.isArray(this.body)&&Array.isArray(n.body)?Tt(this.body,n.body):!1}isConstant(){return!1}visitExpression(n,s){return n.visitArrowFunctionExpr(this,s)}clone(){return new Dc(this.params.map(n=>n.clone()),Array.isArray(this.body)?this.body:this.body.clone(),this.type,this.sourceSpan)}toDeclStmt(n,s){return new Ve(n,this,tn,s,this.sourceSpan)}},Qn=class t extends ie{constructor(n,s,r,i,o=!0){super(r||Ts,i);a(this,"operator");a(this,"expr");a(this,"parens");this.operator=n,this.expr=s,this.parens=o}isEquivalent(n){return n instanceof t&&this.operator===n.operator&&this.expr.isEquivalent(n.expr)}isConstant(){return!1}visitExpression(n,s){return n.visitUnaryOperatorExpr(this,s)}clone(){return new t(this.operator,this.expr.clone(),this.type,this.sourceSpan,this.parens)}},sn=class t extends ie{constructor(n,s,r){super(s,r);a(this,"expr");this.expr=n}visitExpression(n,s){return n.visitParenthesizedExpr(this,s)}isEquivalent(n){return n instanceof t&&n.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}},se=class t extends ie{constructor(n,s,r,i,o){super(i||s.type,o);a(this,"operator");a(this,"rhs");a(this,"lhs");this.operator=n,this.rhs=r,this.lhs=s}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,s){return n.visitBinaryOperatorExpr(this,s)}clone(){return new t(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan)}isAssignment(){let n=this.operator;return n===T.Assign||n===T.AdditionAssignment||n===T.SubtractionAssignment||n===T.MultiplicationAssignment||n===T.DivisionAssignment||n===T.RemainderAssignment||n===T.ExponentiationAssignment||n===T.AndAssignment||n===T.OrAssignment||n===T.NullishCoalesceAssignment}},wt=class t extends ie{constructor(n,s,r,i){super(r,i);a(this,"receiver");a(this,"name");this.receiver=n,this.name=s}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,s){return n.visitReadPropExpr(this,s)}set(n){return new se(T.Assign,this.receiver.prop(this.name),n,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},Pn=class t extends ie{constructor(n,s,r,i){super(r,i);a(this,"receiver");a(this,"index");this.receiver=n,this.index=s}isEquivalent(n){return n instanceof t&&this.receiver.isEquivalent(n.receiver)&&this.index.isEquivalent(n.index)}isConstant(){return!1}visitExpression(n,s){return n.visitReadKeyExpr(this,s)}set(n){return new se(T.Assign,this.receiver.key(this.index),n,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},kt=class t extends ie{constructor(n,s,r){super(s,r);a(this,"entries");this.entries=n}isConstant(){return this.entries.every(n=>n.isConstant())}isEquivalent(n){return n instanceof t&&Tt(this.entries,n.entries)}visitExpression(n,s){return n.visitLiteralArrayExpr(this,s)}clone(){return new t(this.entries.map(n=>n.clone()),this.type,this.sourceSpan)}},ws=class t{constructor(e,n,s){a(this,"key");a(this,"value");a(this,"quoted");this.key=e,this.value=n,this.quoted=s}isEquivalent(e){return this.key===e.key&&this.value.isEquivalent(e.value)}clone(){return new t(this.key,this.value.clone(),this.quoted)}isConstant(){return this.value.isConstant()}},yn=class t{constructor(e){a(this,"expression");this.expression=e}isEquivalent(e){return e instanceof t&&this.expression.isEquivalent(e.expression)}clone(){return new t(this.expression.clone())}isConstant(){return this.expression.isConstant()}},rn=class t extends ie{constructor(n,s,r){super(s,r);a(this,"entries");a(this,"valueType",null);this.entries=n,s&&(this.valueType=s.valueType)}isEquivalent(n){return n instanceof t&&Tt(this.entries,n.entries)}isConstant(){return this.entries.every(n=>n.isConstant())}visitExpression(n,s){return n.visitLiteralMapExpr(this,s)}clone(){let n=this.entries.map(s=>s.clone());return new t(n,this.type,this.sourceSpan)}},bc=class t extends ie{constructor(n,s){super(n[n.length-1].type,s);a(this,"parts");this.parts=n}isEquivalent(n){return n instanceof t&&Tt(this.parts,n.parts)}isConstant(){return!1}visitExpression(n,s){return n.visitCommaExpr(this,s)}clone(){return new t(this.parts.map(n=>n.clone()))}},xs=class t extends ie{constructor(n,s){super(null,s);a(this,"expression");this.expression=n}isEquivalent(n){return n instanceof t&&this.expression.isEquivalent(n.expression)}isConstant(){return this.expression.isConstant()}visitExpression(n,s){return n.visitSpreadElementExpr(this,s)}clone(){return new t(this.expression.clone(),this.sourceSpan)}},fr=new _e(null,null,null),Ad=new _e(null,tn,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 oo=class{constructor(e,n,s){a(this,"text");a(this,"multiline");a(this,"trailingNewline");this.text=e,this.multiline=n,this.trailingNewline=s}toString(){return this.multiline?` ${this.text} `:this.text}},ao=class extends oo{constructor(n){super("",!0,!0);a(this,"tags");this.tags=n}toString(){return lE(this.tags)}},Cs=class{constructor(e=Ue.None,n=null,s){a(this,"modifiers");a(this,"sourceSpan");a(this,"leadingComments");this.modifiers=e,this.sourceSpan=n,this.leadingComments=s}hasModifier(e){return(this.modifiers&e)!==0}addLeadingComment(e){var n;this.leadingComments=(n=this.leadingComments)!=null?n:[],this.leadingComments.push(e)}},Ve=class t extends Cs{constructor(n,s,r,i,o,l){super(i,o,l);a(this,"name");a(this,"value");a(this,"type");this.name=n,this.value=s,this.type=r||s&&s.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,s){return n.visitDeclareVarStmt(this,s)}},ii=class t extends Cs{constructor(n,s,r,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=s,this.statements=r,this.type=i||null}isEquivalent(n){return n instanceof t&&Tt(this.params,n.params)&&Tt(this.statements,n.statements)}visitStatement(n,s){return n.visitDeclareFunctionStmt(this,s)}},Je=class t extends Cs{constructor(n,s,r){super(Ue.None,s,r);a(this,"expr");this.expr=n}isEquivalent(n){return n instanceof t&&this.expr.isEquivalent(n.expr)}visitStatement(n,s){return n.visitExpressionStmt(this,s)}},be=class t extends Cs{constructor(n,s=null,r){super(Ue.None,s,r);a(this,"value");this.value=n}isEquivalent(n){return n instanceof t&&this.value.isEquivalent(n.value)}visitStatement(n,s){return n.visitReturnStmt(this,s)}},lo=class t extends Cs{constructor(n,s,r=[],i,o){super(Ue.None,i,o);a(this,"condition");a(this,"trueCase");a(this,"falseCase");this.condition=n,this.trueCase=s,this.falseCase=r}isEquivalent(n){return n instanceof t&&this.condition.isEquivalent(n.condition)&&Tt(this.trueCase,n.trueCase)&&Tt(this.falseCase,n.falseCase)}visitStatement(n,s){return n.visitIfStmt(this,s)}},sE=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(s=>this.visitType(s,n)),this.visitType(e,n)}visitArrayType(e,n){return this.visitType(e,n)}visitMapType(e,n){return this.visitType(e,n)}visitTransplantedType(e,n){return e}visitWrappedNodeExpr(e,n){return e}visitReadVarExpr(e,n){return this.visitExpression(e,n)}visitDynamicImportExpr(e,n){return this.visitExpression(e,n)}visitInvokeFunctionExpr(e,n){return e.fn.visitExpression(this,n),this.visitAllExpressions(e.args,n),this.visitExpression(e,n)}visitTaggedTemplateLiteralExpr(e,n){return e.tag.visitExpression(this,n),e.template.visitExpression(this,n),this.visitExpression(e,n)}visitInstantiateExpr(e,n){return e.classExpr.visitExpression(this,n),this.visitAllExpressions(e.args,n),this.visitExpression(e,n)}visitLiteralExpr(e,n){return this.visitExpression(e,n)}visitRegularExpressionLiteral(e,n){return this.visitExpression(e,n)}visitLocalizedString(e,n){return this.visitExpression(e,n)}visitExternalExpr(e,n){return e.typeParams&&e.typeParams.forEach(s=>s.visitType(this,n)),this.visitExpression(e,n)}visitConditionalExpr(e,n){return e.condition.visitExpression(this,n),e.trueCase.visitExpression(this,n),e.falseCase.visitExpression(this,n),this.visitExpression(e,n)}visitNotExpr(e,n){return e.condition.visitExpression(this,n),this.visitExpression(e,n)}visitFunctionExpr(e,n){return this.visitAllStatements(e.statements,n),this.visitExpression(e,n)}visitArrowFunctionExpr(e,n){return Array.isArray(e.body)?this.visitAllStatements(e.body,n):e.body.visitExpression(this,n),this.visitExpression(e,n)}visitUnaryOperatorExpr(e,n){return e.expr.visitExpression(this,n),this.visitExpression(e,n)}visitTypeofExpr(e,n){return e.expr.visitExpression(this,n),this.visitExpression(e,n)}visitVoidExpr(e,n){return e.expr.visitExpression(this,n),this.visitExpression(e,n)}visitBinaryOperatorExpr(e,n){return e.lhs.visitExpression(this,n),e.rhs.visitExpression(this,n),this.visitExpression(e,n)}visitReadPropExpr(e,n){return e.receiver.visitExpression(this,n),this.visitExpression(e,n)}visitReadKeyExpr(e,n){return e.receiver.visitExpression(this,n),e.index.visitExpression(this,n),this.visitExpression(e,n)}visitLiteralArrayExpr(e,n){return this.visitAllExpressions(e.entries,n),this.visitExpression(e,n)}visitLiteralMapExpr(e,n){return e.entries.forEach(s=>{s instanceof yn?s.expression.visitExpression(this,n):s.value.visitExpression(this,n)}),this.visitExpression(e,n)}visitCommaExpr(e,n){return this.visitAllExpressions(e.parts,n),this.visitExpression(e,n)}visitTemplateLiteralExpr(e,n){return this.visitAllExpressions(e.elements,n),this.visitAllExpressions(e.expressions,n),this.visitExpression(e,n)}visitTemplateLiteralElementExpr(e,n){return this.visitExpression(e,n)}visitParenthesizedExpr(e,n){return e.expr.visitExpression(this,n),this.visitExpression(e,n)}visitSpreadElementExpr(e,n){return e.expression.visitExpression(this,n),this.visitExpression(e,n)}visitAllExpressions(e,n){e.forEach(s=>s.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(s=>s.visitStatement(this,n))}};function Id(t,e=!1,n=!0){return new oo(t,e,n)}function Nd(t=[]){return new ao(t)}function J(t,e,n){return new nn(t,e,n)}function O(t,e=null,n){return new Qe(t,null,e,n)}function rE(t,e,n){return t!=null?je(O(t,e,null),n):null}function je(t,e,n){return new _t(t,e,n)}function iE(t,e){return new to(t,e)}function Si(t){return new pr(t)}function ae(t,e,n){return new kt(t,e,n)}function xt(t,e=null){return new rn(t.map(n=>new ws(n.key,n.value,n.quoted)),e,null)}function oE(t,e,n,s){return new Qn(t,e,n,s)}function Dd(t,e){return new ri(t,e)}function Jn(t,e,n,s,r){return new bn(t,e,n,s,r)}function Rt(t,e,n,s){return new Gn(t,e,n,s)}function zo(t,e,n,s,r){return new lo(t,e,n,s,r)}function bd(t,e,n,s){return new ti(t,e,n,s)}function S(t,e,n){return new _e(t,e,n)}function _d(t,e,n,s,r){return new ro(t,e,n,s,r)}function aE(t){return t instanceof _e&&t.value===null}function Eh(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 lE(t){if(t.length===0)return"";if(t.length===1&&t[0].tagName&&!t[0].text)return`*${Eh(t[0])} `;let e=`*
|
|
2
2
|
`;for(let n of t)e+=" *",e+=Eh(n).replace(/\n/g,`
|
|
3
3
|
* `),e+=`
|
|
4
|
-
`;return e+=" ",e}var Vr=Object.freeze({__proto__:null,ArrayType:Cc,ArrowFunctionExpr:Vn,BOOL_TYPE:xd,get BinaryOperator(){return T},BinaryOperatorExpr:re,BuiltinType:fn,get BuiltinTypeName(){return Jt},CommaExpr:bc,ConditionalExpr:mn,DYNAMIC_TYPE:gi,DeclareFunctionStmt:ri,DeclareVarStmt:Ve,DynamicImportExpr:Ic,Expression:ie,ExpressionStatement:Qe,ExpressionType:vt,ExternalExpr:Ye,ExternalReference:so,FUNCTION_TYPE:JS,FnParam:Oe,FunctionExpr:Dn,INFERRED_TYPE:Zt,INT_TYPE:QS,IfStmt:ao,InstantiateExpr:ei,InvokeFunctionExpr:ot,JSDocComment:oo,LeadingComment:io,LiteralArrayExpr:_t,LiteralExpr:_e,LiteralMapExpr:nn,LiteralMapPropertyAssignment:Er,LiteralMapSpreadAssignment:gn,LiteralPiece:gr,LocalizedString:ro,MapType:Ac,NONE_TYPE:dn,NULL_EXPR:us,NUMBER_TYPE:yl,NotExpr:ni,ParenthesizedExpr:tn,PlaceholderPiece:ts,ReadKeyExpr:Rn,ReadPropExpr:xt,ReadVarExpr:en,RecursiveAstVisitor:rE,RegularExpressionLiteralExpr:cs,ReturnStatement:be,STRING_TYPE:vl,SpreadElementExpr:Tr,Statement:xr,get StmtModifier(){return Ue},TYPED_NULL_EXPR:Ad,TaggedTemplateLiteralExpr:Zs,TemplateLiteralElementExpr:no,TemplateLiteralExpr:ti,TransplantedType:eo,Type:Sr,get TypeModifier(){return Zi},TypeofExpr:ls,get UnaryOperator(){return kn},UnaryOperatorExpr:Yn,VoidExpr:to,WrappedNodeExpr:W,areAllEquivalent:Tt,arrowFn:kt,expressionType:je,fn:Qn,ifStmt:Ko,importExpr:O,importType:sE,isNull:aE,jsDocComment:Id,leadingComment:Nd,literal:S,literalArr:ae,literalMap:wt,localizedString:_d,not:Dd,nullSafeIsEquivalent:wd,taggedTemplate:bd,transplantedType:iE,typeofExpr:yi,unary:oE,variable:J}),cE="_c",uE={},pE=50,ba=class t extends ie{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===uE?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}},si=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 _e&&!Th(e)||e instanceof ba)return e;let r=lo.INSTANCE.keyOf(e),s=this.literals.get(r),i=!1;if(s||(s=new ba(e),this.literals.set(r,s),i=!0),!i&&!s.shared||i&&n){let o=this.freshName(),l,c;this.isClosureCompilerEnabled&&Th(e)?(l=new Dn([],[new be(e)]),c=J(o).callFn([])):(l=e,c=J(o)),this.statements.push(new Ve(o,l,Zt,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,J(s)),this.statements.push(e.toSharedConstantDeclaration(s,n))}return this.sharedConstants.get(r)}getSharedFunctionReference(e,n,r=!0){var o;let s=e instanceof Vn;for(let l of this.statements)if(s&&l instanceof Ve&&((o=l.value)!=null&&o.isEquivalent(e))||!s&&l instanceof ri&&e instanceof Dn&&e.isEquivalent(l))return J(l.name);let i=r?this.uniqueName(n):n;return this.statements.push(e instanceof Dn?e.toDeclStmt(i,Ue.Final):new Ve(i,e,Zt,Ue.Final,e.sourceSpan)),J(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(cE)}},gl=class gl{keyOf(e){var n;if(e instanceof _e&&typeof e.value=="string")return`"${e.value}"`;if(e instanceof _e)return String(e.value);if(e instanceof cs)return`/${e.body}/${(n=e.flags)!=null?n:""}`;if(e instanceof _t){let r=[];for(let s of e.entries)r.push(this.keyOf(s));return`[${r.join(",")}]`}else if(e instanceof nn){let r=[];for(let s of e.entries)if(s instanceof gn)r.push("..."+this.keyOf(s.expression));else{let i=s.key;s.quoted&&(i=`"${i}"`),r.push(i+":"+this.keyOf(s.value))}return`{${r.join(",")}}`}else{if(e instanceof Ye)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof en)return`read(${e.name})`;if(e instanceof ls)return`typeof(${this.keyOf(e.expr)})`;if(e instanceof Tr)return`...${this.keyOf(e.expression)}`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}};a(gl,"INSTANCE",new gl);var lo=gl;function Th(t){return t instanceof _e&&typeof t.value=="string"&&t.value.length>=pE}var y="@angular/core",m=class{};a(m,"core",{name:null,moduleName:y}),a(m,"namespaceHTML",{name:"\u0275\u0275namespaceHTML",moduleName:y}),a(m,"namespaceMathML",{name:"\u0275\u0275namespaceMathML",moduleName:y}),a(m,"namespaceSVG",{name:"\u0275\u0275namespaceSVG",moduleName:y}),a(m,"element",{name:"\u0275\u0275element",moduleName:y}),a(m,"elementStart",{name:"\u0275\u0275elementStart",moduleName:y}),a(m,"elementEnd",{name:"\u0275\u0275elementEnd",moduleName:y}),a(m,"domElement",{name:"\u0275\u0275domElement",moduleName:y}),a(m,"domElementStart",{name:"\u0275\u0275domElementStart",moduleName:y}),a(m,"domElementEnd",{name:"\u0275\u0275domElementEnd",moduleName:y}),a(m,"domElementContainer",{name:"\u0275\u0275domElementContainer",moduleName:y}),a(m,"domElementContainerStart",{name:"\u0275\u0275domElementContainerStart",moduleName:y}),a(m,"domElementContainerEnd",{name:"\u0275\u0275domElementContainerEnd",moduleName:y}),a(m,"domTemplate",{name:"\u0275\u0275domTemplate",moduleName:y}),a(m,"domListener",{name:"\u0275\u0275domListener",moduleName:y}),a(m,"advance",{name:"\u0275\u0275advance",moduleName:y}),a(m,"syntheticHostProperty",{name:"\u0275\u0275syntheticHostProperty",moduleName:y}),a(m,"syntheticHostListener",{name:"\u0275\u0275syntheticHostListener",moduleName:y}),a(m,"attribute",{name:"\u0275\u0275attribute",moduleName:y}),a(m,"classProp",{name:"\u0275\u0275classProp",moduleName:y}),a(m,"elementContainerStart",{name:"\u0275\u0275elementContainerStart",moduleName:y}),a(m,"elementContainerEnd",{name:"\u0275\u0275elementContainerEnd",moduleName:y}),a(m,"elementContainer",{name:"\u0275\u0275elementContainer",moduleName:y}),a(m,"styleMap",{name:"\u0275\u0275styleMap",moduleName:y}),a(m,"classMap",{name:"\u0275\u0275classMap",moduleName:y}),a(m,"styleProp",{name:"\u0275\u0275styleProp",moduleName:y}),a(m,"interpolate",{name:"\u0275\u0275interpolate",moduleName:y}),a(m,"interpolate1",{name:"\u0275\u0275interpolate1",moduleName:y}),a(m,"interpolate2",{name:"\u0275\u0275interpolate2",moduleName:y}),a(m,"interpolate3",{name:"\u0275\u0275interpolate3",moduleName:y}),a(m,"interpolate4",{name:"\u0275\u0275interpolate4",moduleName:y}),a(m,"interpolate5",{name:"\u0275\u0275interpolate5",moduleName:y}),a(m,"interpolate6",{name:"\u0275\u0275interpolate6",moduleName:y}),a(m,"interpolate7",{name:"\u0275\u0275interpolate7",moduleName:y}),a(m,"interpolate8",{name:"\u0275\u0275interpolate8",moduleName:y}),a(m,"interpolateV",{name:"\u0275\u0275interpolateV",moduleName:y}),a(m,"nextContext",{name:"\u0275\u0275nextContext",moduleName:y}),a(m,"resetView",{name:"\u0275\u0275resetView",moduleName:y}),a(m,"templateCreate",{name:"\u0275\u0275template",moduleName:y}),a(m,"defer",{name:"\u0275\u0275defer",moduleName:y}),a(m,"deferWhen",{name:"\u0275\u0275deferWhen",moduleName:y}),a(m,"deferOnIdle",{name:"\u0275\u0275deferOnIdle",moduleName:y}),a(m,"deferOnImmediate",{name:"\u0275\u0275deferOnImmediate",moduleName:y}),a(m,"deferOnTimer",{name:"\u0275\u0275deferOnTimer",moduleName:y}),a(m,"deferOnHover",{name:"\u0275\u0275deferOnHover",moduleName:y}),a(m,"deferOnInteraction",{name:"\u0275\u0275deferOnInteraction",moduleName:y}),a(m,"deferOnViewport",{name:"\u0275\u0275deferOnViewport",moduleName:y}),a(m,"deferPrefetchWhen",{name:"\u0275\u0275deferPrefetchWhen",moduleName:y}),a(m,"deferPrefetchOnIdle",{name:"\u0275\u0275deferPrefetchOnIdle",moduleName:y}),a(m,"deferPrefetchOnImmediate",{name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:y}),a(m,"deferPrefetchOnTimer",{name:"\u0275\u0275deferPrefetchOnTimer",moduleName:y}),a(m,"deferPrefetchOnHover",{name:"\u0275\u0275deferPrefetchOnHover",moduleName:y}),a(m,"deferPrefetchOnInteraction",{name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:y}),a(m,"deferPrefetchOnViewport",{name:"\u0275\u0275deferPrefetchOnViewport",moduleName:y}),a(m,"deferHydrateWhen",{name:"\u0275\u0275deferHydrateWhen",moduleName:y}),a(m,"deferHydrateNever",{name:"\u0275\u0275deferHydrateNever",moduleName:y}),a(m,"deferHydrateOnIdle",{name:"\u0275\u0275deferHydrateOnIdle",moduleName:y}),a(m,"deferHydrateOnImmediate",{name:"\u0275\u0275deferHydrateOnImmediate",moduleName:y}),a(m,"deferHydrateOnTimer",{name:"\u0275\u0275deferHydrateOnTimer",moduleName:y}),a(m,"deferHydrateOnHover",{name:"\u0275\u0275deferHydrateOnHover",moduleName:y}),a(m,"deferHydrateOnInteraction",{name:"\u0275\u0275deferHydrateOnInteraction",moduleName:y}),a(m,"deferHydrateOnViewport",{name:"\u0275\u0275deferHydrateOnViewport",moduleName:y}),a(m,"deferEnableTimerScheduling",{name:"\u0275\u0275deferEnableTimerScheduling",moduleName:y}),a(m,"conditionalCreate",{name:"\u0275\u0275conditionalCreate",moduleName:y}),a(m,"conditionalBranchCreate",{name:"\u0275\u0275conditionalBranchCreate",moduleName:y}),a(m,"conditional",{name:"\u0275\u0275conditional",moduleName:y}),a(m,"repeater",{name:"\u0275\u0275repeater",moduleName:y}),a(m,"repeaterCreate",{name:"\u0275\u0275repeaterCreate",moduleName:y}),a(m,"repeaterTrackByIndex",{name:"\u0275\u0275repeaterTrackByIndex",moduleName:y}),a(m,"repeaterTrackByIdentity",{name:"\u0275\u0275repeaterTrackByIdentity",moduleName:y}),a(m,"componentInstance",{name:"\u0275\u0275componentInstance",moduleName:y}),a(m,"text",{name:"\u0275\u0275text",moduleName:y}),a(m,"enableBindings",{name:"\u0275\u0275enableBindings",moduleName:y}),a(m,"disableBindings",{name:"\u0275\u0275disableBindings",moduleName:y}),a(m,"getCurrentView",{name:"\u0275\u0275getCurrentView",moduleName:y}),a(m,"textInterpolate",{name:"\u0275\u0275textInterpolate",moduleName:y}),a(m,"textInterpolate1",{name:"\u0275\u0275textInterpolate1",moduleName:y}),a(m,"textInterpolate2",{name:"\u0275\u0275textInterpolate2",moduleName:y}),a(m,"textInterpolate3",{name:"\u0275\u0275textInterpolate3",moduleName:y}),a(m,"textInterpolate4",{name:"\u0275\u0275textInterpolate4",moduleName:y}),a(m,"textInterpolate5",{name:"\u0275\u0275textInterpolate5",moduleName:y}),a(m,"textInterpolate6",{name:"\u0275\u0275textInterpolate6",moduleName:y}),a(m,"textInterpolate7",{name:"\u0275\u0275textInterpolate7",moduleName:y}),a(m,"textInterpolate8",{name:"\u0275\u0275textInterpolate8",moduleName:y}),a(m,"textInterpolateV",{name:"\u0275\u0275textInterpolateV",moduleName:y}),a(m,"restoreView",{name:"\u0275\u0275restoreView",moduleName:y}),a(m,"pureFunction0",{name:"\u0275\u0275pureFunction0",moduleName:y}),a(m,"pureFunction1",{name:"\u0275\u0275pureFunction1",moduleName:y}),a(m,"pureFunction2",{name:"\u0275\u0275pureFunction2",moduleName:y}),a(m,"pureFunction3",{name:"\u0275\u0275pureFunction3",moduleName:y}),a(m,"pureFunction4",{name:"\u0275\u0275pureFunction4",moduleName:y}),a(m,"pureFunction5",{name:"\u0275\u0275pureFunction5",moduleName:y}),a(m,"pureFunction6",{name:"\u0275\u0275pureFunction6",moduleName:y}),a(m,"pureFunction7",{name:"\u0275\u0275pureFunction7",moduleName:y}),a(m,"pureFunction8",{name:"\u0275\u0275pureFunction8",moduleName:y}),a(m,"pureFunctionV",{name:"\u0275\u0275pureFunctionV",moduleName:y}),a(m,"pipeBind1",{name:"\u0275\u0275pipeBind1",moduleName:y}),a(m,"pipeBind2",{name:"\u0275\u0275pipeBind2",moduleName:y}),a(m,"pipeBind3",{name:"\u0275\u0275pipeBind3",moduleName:y}),a(m,"pipeBind4",{name:"\u0275\u0275pipeBind4",moduleName:y}),a(m,"pipeBindV",{name:"\u0275\u0275pipeBindV",moduleName:y}),a(m,"domProperty",{name:"\u0275\u0275domProperty",moduleName:y}),a(m,"ariaProperty",{name:"\u0275\u0275ariaProperty",moduleName:y}),a(m,"property",{name:"\u0275\u0275property",moduleName:y}),a(m,"control",{name:"\u0275\u0275control",moduleName:y}),a(m,"controlCreate",{name:"\u0275\u0275controlCreate",moduleName:y}),a(m,"animationEnterListener",{name:"\u0275\u0275animateEnterListener",moduleName:y}),a(m,"animationLeaveListener",{name:"\u0275\u0275animateLeaveListener",moduleName:y}),a(m,"animationEnter",{name:"\u0275\u0275animateEnter",moduleName:y}),a(m,"animationLeave",{name:"\u0275\u0275animateLeave",moduleName:y}),a(m,"i18n",{name:"\u0275\u0275i18n",moduleName:y}),a(m,"i18nAttributes",{name:"\u0275\u0275i18nAttributes",moduleName:y}),a(m,"i18nExp",{name:"\u0275\u0275i18nExp",moduleName:y}),a(m,"i18nStart",{name:"\u0275\u0275i18nStart",moduleName:y}),a(m,"i18nEnd",{name:"\u0275\u0275i18nEnd",moduleName:y}),a(m,"i18nApply",{name:"\u0275\u0275i18nApply",moduleName:y}),a(m,"i18nPostprocess",{name:"\u0275\u0275i18nPostprocess",moduleName:y}),a(m,"pipe",{name:"\u0275\u0275pipe",moduleName:y}),a(m,"projection",{name:"\u0275\u0275projection",moduleName:y}),a(m,"projectionDef",{name:"\u0275\u0275projectionDef",moduleName:y}),a(m,"reference",{name:"\u0275\u0275reference",moduleName:y}),a(m,"inject",{name:"\u0275\u0275inject",moduleName:y}),a(m,"injectAttribute",{name:"\u0275\u0275injectAttribute",moduleName:y}),a(m,"directiveInject",{name:"\u0275\u0275directiveInject",moduleName:y}),a(m,"invalidFactory",{name:"\u0275\u0275invalidFactory",moduleName:y}),a(m,"invalidFactoryDep",{name:"\u0275\u0275invalidFactoryDep",moduleName:y}),a(m,"templateRefExtractor",{name:"\u0275\u0275templateRefExtractor",moduleName:y}),a(m,"forwardRef",{name:"forwardRef",moduleName:y}),a(m,"resolveForwardRef",{name:"resolveForwardRef",moduleName:y}),a(m,"replaceMetadata",{name:"\u0275\u0275replaceMetadata",moduleName:y}),a(m,"getReplaceMetadataURL",{name:"\u0275\u0275getReplaceMetadataURL",moduleName:y}),a(m,"\u0275\u0275defineInjectable",{name:"\u0275\u0275defineInjectable",moduleName:y}),a(m,"declareInjectable",{name:"\u0275\u0275ngDeclareInjectable",moduleName:y}),a(m,"InjectableDeclaration",{name:"\u0275\u0275InjectableDeclaration",moduleName:y}),a(m,"resolveWindow",{name:"\u0275\u0275resolveWindow",moduleName:y}),a(m,"resolveDocument",{name:"\u0275\u0275resolveDocument",moduleName:y}),a(m,"resolveBody",{name:"\u0275\u0275resolveBody",moduleName:y}),a(m,"getComponentDepsFactory",{name:"\u0275\u0275getComponentDepsFactory",moduleName:y}),a(m,"defineComponent",{name:"\u0275\u0275defineComponent",moduleName:y}),a(m,"declareComponent",{name:"\u0275\u0275ngDeclareComponent",moduleName:y}),a(m,"setComponentScope",{name:"\u0275\u0275setComponentScope",moduleName:y}),a(m,"ChangeDetectionStrategy",{name:"ChangeDetectionStrategy",moduleName:y}),a(m,"ViewEncapsulation",{name:"ViewEncapsulation",moduleName:y}),a(m,"ComponentDeclaration",{name:"\u0275\u0275ComponentDeclaration",moduleName:y}),a(m,"FactoryDeclaration",{name:"\u0275\u0275FactoryDeclaration",moduleName:y}),a(m,"declareFactory",{name:"\u0275\u0275ngDeclareFactory",moduleName:y}),a(m,"FactoryTarget",{name:"\u0275\u0275FactoryTarget",moduleName:y}),a(m,"defineDirective",{name:"\u0275\u0275defineDirective",moduleName:y}),a(m,"declareDirective",{name:"\u0275\u0275ngDeclareDirective",moduleName:y}),a(m,"DirectiveDeclaration",{name:"\u0275\u0275DirectiveDeclaration",moduleName:y}),a(m,"InjectorDef",{name:"\u0275\u0275InjectorDef",moduleName:y}),a(m,"InjectorDeclaration",{name:"\u0275\u0275InjectorDeclaration",moduleName:y}),a(m,"defineInjector",{name:"\u0275\u0275defineInjector",moduleName:y}),a(m,"declareInjector",{name:"\u0275\u0275ngDeclareInjector",moduleName:y}),a(m,"NgModuleDeclaration",{name:"\u0275\u0275NgModuleDeclaration",moduleName:y}),a(m,"ModuleWithProviders",{name:"ModuleWithProviders",moduleName:y}),a(m,"defineNgModule",{name:"\u0275\u0275defineNgModule",moduleName:y}),a(m,"declareNgModule",{name:"\u0275\u0275ngDeclareNgModule",moduleName:y}),a(m,"setNgModuleScope",{name:"\u0275\u0275setNgModuleScope",moduleName:y}),a(m,"registerNgModuleType",{name:"\u0275\u0275registerNgModuleType",moduleName:y}),a(m,"PipeDeclaration",{name:"\u0275\u0275PipeDeclaration",moduleName:y}),a(m,"definePipe",{name:"\u0275\u0275definePipe",moduleName:y}),a(m,"declarePipe",{name:"\u0275\u0275ngDeclarePipe",moduleName:y}),a(m,"declareClassMetadata",{name:"\u0275\u0275ngDeclareClassMetadata",moduleName:y}),a(m,"declareClassMetadataAsync",{name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:y}),a(m,"setClassMetadata",{name:"\u0275setClassMetadata",moduleName:y}),a(m,"setClassMetadataAsync",{name:"\u0275setClassMetadataAsync",moduleName:y}),a(m,"setClassDebugInfo",{name:"\u0275setClassDebugInfo",moduleName:y}),a(m,"queryRefresh",{name:"\u0275\u0275queryRefresh",moduleName:y}),a(m,"viewQuery",{name:"\u0275\u0275viewQuery",moduleName:y}),a(m,"loadQuery",{name:"\u0275\u0275loadQuery",moduleName:y}),a(m,"contentQuery",{name:"\u0275\u0275contentQuery",moduleName:y}),a(m,"viewQuerySignal",{name:"\u0275\u0275viewQuerySignal",moduleName:y}),a(m,"contentQuerySignal",{name:"\u0275\u0275contentQuerySignal",moduleName:y}),a(m,"queryAdvance",{name:"\u0275\u0275queryAdvance",moduleName:y}),a(m,"twoWayProperty",{name:"\u0275\u0275twoWayProperty",moduleName:y}),a(m,"twoWayBindingSet",{name:"\u0275\u0275twoWayBindingSet",moduleName:y}),a(m,"twoWayListener",{name:"\u0275\u0275twoWayListener",moduleName:y}),a(m,"declareLet",{name:"\u0275\u0275declareLet",moduleName:y}),a(m,"storeLet",{name:"\u0275\u0275storeLet",moduleName:y}),a(m,"readContextLet",{name:"\u0275\u0275readContextLet",moduleName:y}),a(m,"arrowFunction",{name:"\u0275\u0275arrowFunction",moduleName:y}),a(m,"attachSourceLocations",{name:"\u0275\u0275attachSourceLocations",moduleName:y}),a(m,"NgOnChangesFeature",{name:"\u0275\u0275NgOnChangesFeature",moduleName:y}),a(m,"ControlFeature",{name:"\u0275\u0275ControlFeature",moduleName:y}),a(m,"InheritDefinitionFeature",{name:"\u0275\u0275InheritDefinitionFeature",moduleName:y}),a(m,"ProvidersFeature",{name:"\u0275\u0275ProvidersFeature",moduleName:y}),a(m,"HostDirectivesFeature",{name:"\u0275\u0275HostDirectivesFeature",moduleName:y}),a(m,"ExternalStylesFeature",{name:"\u0275\u0275ExternalStylesFeature",moduleName:y}),a(m,"listener",{name:"\u0275\u0275listener",moduleName:y}),a(m,"getInheritedFactory",{name:"\u0275\u0275getInheritedFactory",moduleName:y}),a(m,"sanitizeHtml",{name:"\u0275\u0275sanitizeHtml",moduleName:y}),a(m,"sanitizeStyle",{name:"\u0275\u0275sanitizeStyle",moduleName:y}),a(m,"validateAttribute",{name:"\u0275\u0275validateAttribute",moduleName:y}),a(m,"sanitizeResourceUrl",{name:"\u0275\u0275sanitizeResourceUrl",moduleName:y}),a(m,"sanitizeScript",{name:"\u0275\u0275sanitizeScript",moduleName:y}),a(m,"sanitizeUrl",{name:"\u0275\u0275sanitizeUrl",moduleName:y}),a(m,"sanitizeUrlOrResourceUrl",{name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:y}),a(m,"trustConstantHtml",{name:"\u0275\u0275trustConstantHtml",moduleName:y}),a(m,"trustConstantResourceUrl",{name:"\u0275\u0275trustConstantResourceUrl",moduleName:y}),a(m,"inputDecorator",{name:"Input",moduleName:y}),a(m,"outputDecorator",{name:"Output",moduleName:y}),a(m,"viewChildDecorator",{name:"ViewChild",moduleName:y}),a(m,"viewChildrenDecorator",{name:"ViewChildren",moduleName:y}),a(m,"contentChildDecorator",{name:"ContentChild",moduleName:y}),a(m,"contentChildrenDecorator",{name:"ContentChildren",moduleName:y}),a(m,"InputSignalBrandWriteType",{name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:y}),a(m,"UnwrapDirectiveSignalInputs",{name:"\u0275UnwrapDirectiveSignalInputs",moduleName:y}),a(m,"unwrapWritableSignal",{name:"\u0275unwrapWritableSignal",moduleName:y}),a(m,"assertType",{name:"\u0275assertType",moduleName:y});var hE=/-+([a-z0-9])/g;function fE(t){return t.replace(hE,(...e)=>e[1].toUpperCase())}function dE(t,e){return kd(t,":",e)}function mE(t,e){return kd(t,".",e)}function kd(t,e,n){let r=t.indexOf(e);return r==-1?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function gE(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 Rd(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Rd).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;if(!t.toString)return"object";let n=t.toString();if(n==null)return""+n;let r=n.indexOf(`
|
|
5
|
-
`);return
|
|
6
|
-
`)}toSourceMapGenerator(e,n=0){let
|
|
7
|
-
`).forEach(
|
|
8
|
-
`?"\\n":i[0]=="\r"?"\\r":`\\${i[0]}`);return n||!wE.test(r)?`'${r}'`:r}function xh(t){let e="";for(let n=0;n<t;n++)e+=kc;return e}function Sl(t,e){if(e===0)return je(t);let n=[];for(let r=0;r<e;r++)n.push(gi);return je(t,void 0,n)}function Ld(t,e){let n=Zr(e,!1,!1);return n!==e?`${t}[${n}]`:`${t}.${e}`}function AE(t){return NE("ngJitMode",t)}function NE(t,e){let n=new Ye({name:t,moduleName:null}),r=new re(T.Identical,new ls(n),S("undefined")),s=new re(T.Or,r,n,void 0,void 0);return new re(T.And,s,e)}function qe(t){let e=new W(t);return{value:e,type:e}}function es(t,e){let n=ae(t.map(r=>r.value));return e?kt([],n):n}function Ds(t,e){return{expression:t,forwardRef:e}}function IE({expression:t,forwardRef:e}){switch(e){case 0:case 1:return t;case 2:return DE(t)}}function DE(t){return O(m.forwardRef).callFn([kt([],t)])}var uo;(function(t){t[t.Class=0]="Class",t[t.Function=1]="Function"})(uo||(uo={}));function hr(t){let e=J("__ngFactoryType__"),n=null,r=Ch(t)?e:new re(T.Or,e,t.type.value),s=null;t.deps!==null?t.deps!=="invalid"&&(s=new ei(r,wh(t.deps,t.target))):(n=J(`\u0275${t.name}_BaseFactory`),s=n.callFn([r]));let i=[],o=null;function l(u){let h=J("__ngConditionalFactory__");i.push(new Ve(h.name,us,Zt));let d=s!==null?h.set(s).toStmt():O(m.invalidFactory).callFn([]).toStmt();return i.push(Ko(e,[d],[h.set(u).toStmt()])),h}if(Ch(t)){let u=wh(t.delegateDeps,t.target),h=new(t.delegateType===uo.Class?ei:ot)(t.delegate,u);o=l(h)}else PE(t)?o=l(t.expression):o=s;if(o===null)i.push(O(m.invalidFactory).callFn([]).toStmt());else if(n!==null){let u=O(m.getInheritedFactory).callFn([t.type.value]),h=new re(T.Or,n,n.set(u));i.push(new be(h.callFn([r])))}else i.push(new be(o));let c=Qn([new Oe(e.name,gi)],i,Zt,void 0,`${t.name}_Factory`);return n!==null&&(c=kt([],[new Ve(n.name),new be(c)]).callFn([],void 0,!0)),{expression:c,statements:[],type:bE(t)}}function bE(t){let e=t.deps!==null&&t.deps!=="invalid"?kE(t.deps):dn;return je(O(m.FactoryDeclaration,[Sl(t.type.type,t.typeArgumentCount),e]))}function wh(t,e){return t.map((n,r)=>_E(n,e,r))}function _E(t,e,n){if(t.token===null)return O(m.invalidFactoryDep).callFn([S(n)]);if(t.attributeNameType===null){let r=0|(t.self?2:0)|(t.skipSelf?4:0)|(t.host?1:0)|(t.optional?8:0)|(e===gt.Pipe?16:0),s=r!==0||t.optional?S(r):null,i=[t.token];s&&i.push(s);let o=LE(e);return O(o).callFn(i)}else return O(m.injectAttribute).callFn([t.token])}function kE(t){let e=!1,n=t.map(r=>{let s=RE(r);return s!==null?(e=!0,s):S(null)});return e?je(ae(n)):dn}function RE(t){let e=[];return t.attributeNameType!==null&&e.push({key:"attribute",value:t.attributeNameType,quoted:!1}),t.optional&&e.push({key:"optional",value:S(!0),quoted:!1}),t.host&&e.push({key:"host",value:S(!0),quoted:!1}),t.self&&e.push({key:"self",value:S(!0),quoted:!1}),t.skipSelf&&e.push({key:"skipSelf",value:S(!0),quoted:!1}),e.length>0?wt(e):null}function Ch(t){return t.delegateType!==void 0}function PE(t){return t.expression!==void 0}function LE(t){switch(t){case gt.Component:case gt.Directive:case gt.Pipe:return m.directiveInject;case gt.NgModule:case gt.Injectable:default:return m.inject}}var wr=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)}},oe=class{constructor(e,n){a(this,"span");a(this,"sourceSpan");this.span=e,this.sourceSpan=n}toString(){return"AST"}},ps=class extends oe{constructor(n,r,s){super(n,r);a(this,"nameSpan");this.nameSpan=s}},et=class extends oe{visit(e,n=null){var r;return(r=e.visitEmptyExpr)==null?void 0:r.call(e,this,n)}},Je=class extends oe{visit(e,n=null){return e.visitImplicitReceiver(this,n)}},rn=class extends oe{visit(e,n=null){var r;return(r=e.visitThisReceiver)==null?void 0:r.call(e,this,n)}},Cr=class extends oe{constructor(n,r,s){super(n,r);a(this,"expressions");this.expressions=s}visit(n,r=null){return n.visitChain(this,r)}},ii=class extends oe{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)}},le=class extends ps{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)}},Ze=class extends ps{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)}},Pn=class extends oe{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)}},Ar=class extends oe{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)}},zs;(function(t){t[t.ReferencedByName=0]="ReferencedByName",t[t.ReferencedDirectly=1]="ReferencedDirectly"})(zs||(zs={}));var hs=class extends ps{constructor(n,r,s,i,o,l,c){super(n,r,c);a(this,"exp");a(this,"name");a(this,"args");a(this,"type");this.exp=s,this.name=i,this.args=o,this.type=l}visit(n,r=null){return n.visitPipe(this,r)}},dt=class extends oe{constructor(n,r,s){super(n,r);a(this,"value");this.value=s}visit(n,r=null){return n.visitLiteralPrimitive(this,r)}},po=class extends oe{constructor(n,r,s){super(n,r);a(this,"expressions");this.expressions=s}visit(n,r=null){return n.visitLiteralArray(this,r)}},ka=class extends oe{constructor(n,r,s){super(n,r);a(this,"expression");this.expression=s}visit(n,r=null){return n.visitSpreadElement(this,r)}},fs=class extends oe{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)}},tr=class extends oe{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)}},xe=class extends oe{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)}static isAssignmentOperation(n){return n==="="||n==="+="||n==="-="||n==="*="||n==="/="||n==="%="||n==="**="||n==="&&="||n==="||="||n==="??="}},Xs=class t extends xe{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 dt(n,r,0),s)}static createPlus(n,r,s){return new t(n,r,"+",s,"-",s,new dt(n,r,0))}visit(n,r=null){return n.visitUnary!==void 0?n.visitUnary(this,r):n.visitBinary(this,r)}},Ln=class extends oe{constructor(n,r,s){super(n,r);a(this,"expression");this.expression=s}visit(n,r=null){return n.visitPrefixNot(this,r)}},ho=class extends oe{constructor(n,r,s){super(n,r);a(this,"expression");this.expression=s}visit(n,r=null){return n.visitTypeofExpression(this,r)}},fo=class extends oe{constructor(n,r,s){super(n,r);a(this,"expression");this.expression=s}visit(n,r=null){return n.visitVoidExpression(this,r)}},mo=class extends oe{constructor(n,r,s){super(n,r);a(this,"expression");this.expression=s}visit(n,r=null){return n.visitNonNullAssert(this,r)}},Ct=class extends oe{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)}},Ut=class extends oe{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)}},go=class extends oe{constructor(n,r,s,i){super(n,r);a(this,"tag");a(this,"template");this.tag=s,this.template=i}visit(n,r){return n.visitTaggedTemplateLiteral(this,r)}},yo=class extends oe{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)}},Ra=class extends oe{constructor(n,r,s){super(n,r);a(this,"text");this.text=s}visit(n,r){return n.visitTemplateLiteralElement(this,r)}},vo=class extends oe{constructor(n,r,s){super(n,r);a(this,"expression");this.expression=s}visit(n,r){return n.visitParenthesizedExpression(this,r)}},Lc=class{constructor(e,n,r){a(this,"name");a(this,"span");a(this,"sourceSpan");this.name=e,this.span=n,this.sourceSpan=r}},oi=class extends oe{constructor(n,r,s,i){super(n,r);a(this,"parameters");a(this,"body");this.parameters=s,this.body=i}visit(n,r){return n.visitArrowFunction(this,r)}},Pa=class extends oe{constructor(n,r,s,i){super(n,r);a(this,"body");a(this,"flags");this.body=s,this.flags=i}visit(n,r){return n.visitRegularExpressionLiteral(this,r)}},tt=class{constructor(e,n){a(this,"start");a(this,"end");this.start=e,this.end=n}},ve=class extends oe{constructor(n,r,s,i,o){super(new wr(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}`}},So=class{constructor(e,n,r){a(this,"sourceSpan");a(this,"key");a(this,"value");this.sourceSpan=e,this.key=n,this.value=r}},Mc=class{constructor(e,n,r){a(this,"sourceSpan");a(this,"key");a(this,"value");this.sourceSpan=e,this.key=n,this.value=r}},Nr=class{visit(e,n){e.visit(this,n)}visitUnary(e,n){this.visit(e.expr,n)}visitBinary(e,n){this.visit(e.left,n),this.visit(e.right,n)}visitChain(e,n){this.visitAll(e.expressions,n)}visitConditional(e,n){this.visit(e.condition,n),this.visit(e.trueExp,n),this.visit(e.falseExp,n)}visitPipe(e,n){this.visit(e.exp,n),this.visitAll(e.args,n)}visitImplicitReceiver(e,n){}visitThisReceiver(e,n){}visitInterpolation(e,n){this.visitAll(e.expressions,n)}visitKeyedRead(e,n){this.visit(e.receiver,n),this.visit(e.key,n)}visitLiteralArray(e,n){this.visitAll(e.expressions,n)}visitLiteralMap(e,n){this.visitAll(e.values,n)}visitLiteralPrimitive(e,n){}visitPrefixNot(e,n){this.visit(e.expression,n)}visitTypeofExpression(e,n){this.visit(e.expression,n)}visitVoidExpression(e,n){this.visit(e.expression,n)}visitNonNullAssert(e,n){this.visit(e.expression,n)}visitPropertyRead(e,n){this.visit(e.receiver,n)}visitSafePropertyRead(e,n){this.visit(e.receiver,n)}visitSafeKeyedRead(e,n){this.visit(e.receiver,n),this.visit(e.key,n)}visitCall(e,n){this.visit(e.receiver,n),this.visitAll(e.args,n)}visitSafeCall(e,n){this.visit(e.receiver,n),this.visitAll(e.args,n)}visitTemplateLiteral(e,n){for(let r=0;r<e.elements.length;r++){this.visit(e.elements[r],n);let s=r<e.expressions.length?e.expressions[r]:null;s!==null&&this.visit(s,n)}}visitTemplateLiteralElement(e,n){}visitTaggedTemplateLiteral(e,n){this.visit(e.tag,n),this.visit(e.template,n)}visitParenthesizedExpression(e,n){this.visit(e.expression,n)}visitArrowFunction(e,n){this.visit(e.body,n)}visitRegularExpressionLiteral(e,n){}visitSpreadElement(e,n){this.visit(e.expression,n)}visitEmptyExpr(e,n){}visitAll(e,n){for(let r of e)this.visit(r,n)}},Gs=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,"isLegacyAnimation");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===cn.LITERAL_ATTR,this.isLegacyAnimation=this.type===cn.LEGACY_ANIMATION,this.isAnimation=this.type===cn.ANIMATION}},cn;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.LITERAL_ATTR=1]="LITERAL_ATTR",t[t.LEGACY_ANIMATION=2]="LEGACY_ANIMATION",t[t.TWO_WAY=3]="TWO_WAY",t[t.ANIMATION=4]="ANIMATION"})(cn||(cn={}));var De;(function(t){t[t.Regular=0]="Regular",t[t.LegacyAnimation=1]="LegacyAnimation",t[t.TwoWay=2]="TwoWay",t[t.Animation=3]="Animation"})(De||(De={}));var La=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}},Oc=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}},K;(function(t){t[t.Property=0]="Property",t[t.Attribute=1]="Attribute",t[t.Class=2]="Class",t[t.Style=3]="Style",t[t.LegacyAnimation=4]="LegacyAnimation",t[t.TwoWay=5]="TwoWay",t[t.Animation=6]="Animation"})(K||(K={}));var Ma=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}},pn;(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"})(pn||(pn={}));function yn(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 Ah(t){return yn(t)[1]==="ng-container"}function Fc(t){return yn(t)[1]==="ng-content"}function ME(t){return yn(t)[1]==="ng-template"}function Bc(t){return t===null?null:yn(t)[0]}function wa(t,e){return t?`:${t}:${e}`:e}var El=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")}},qn=class{constructor(e,n){a(this,"value");a(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e){return e.visitText(this)}},ds=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)}},sn=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)}},Rt=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)}},vn=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===De.Regular?e.targetOrPhase:null,r=e.type===De.LegacyAnimation?e.targetOrPhase:null;if(e.keySpan===void 0)throw new Error(`Unexpected state: keySpan must be defined for bound event but was not for ${e.name}: ${e.sourceSpan}`);return new t(e.name,e.type,e.handler,n,r,e.sourceSpan,e.handlerSpan,e.keySpan)}visit(e){return e.visitBoundEvent(this)}},ke=class{constructor(e,n,r,s,i,o,l,c,u,h,d,p,g){a(this,"name");a(this,"attributes");a(this,"inputs");a(this,"outputs");a(this,"directives");a(this,"children");a(this,"references");a(this,"isSelfClosing");a(this,"sourceSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");a(this,"isVoid");a(this,"i18n");this.name=e,this.attributes=n,this.inputs=r,this.outputs=s,this.directives=i,this.children=o,this.references=l,this.isSelfClosing=c,this.sourceSpan=u,this.startSourceSpan=h,this.endSourceSpan=d,this.isVoid=p,this.i18n=g}visit(e){return e.visitElement(this)}},Mn=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)}},Oa=class extends Mn{constructor(n,r,s,i,o){super(null,r,s,i,o);a(this,"value");this.value=n}},$c=class extends Mn{},Uc=class extends Mn{},ai=class extends Mn{},ms=class extends Mn{constructor(n,r,s,i,o,l){super(r,s,i,o,l);a(this,"reference");this.reference=n}},gs=class extends Mn{constructor(n,r,s,i,o,l){super(r,s,i,o,l);a(this,"delay");this.delay=n}},ys=class extends Mn{constructor(n,r,s,i,o,l){super(r,s,i,o,l);a(this,"reference");this.reference=n}},Ir=class extends Mn{constructor(n,r,s,i,o,l,c){super(s,i,o,l,c);a(this,"reference");a(this,"options");this.reference=n,this.options=r}},Pt=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}},Eo=class extends Pt{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)}},To=class extends Pt{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)}},xo=class extends Pt{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)}},On=class extends Pt{constructor(n,r,s,i,o,l,c,u,h,d,p,g,v){super(u,h,p,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=v,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),Ys(n,this.children);let r=[this.placeholder,this.loading,this.error].filter(s=>s!==null);Ys(n,r)}visitTriggers(n,r,s){Ys(s,n.map(i=>r[i]))}},Dr=class extends Pt{constructor(n,r,s,i,o,l,c,u){super(u,o,l,c);a(this,"expression");a(this,"groups");a(this,"unknownBlocks");a(this,"exhaustiveCheck");this.expression=n,this.groups=r,this.unknownBlocks=s,this.exhaustiveCheck=i}visit(n){return n.visitSwitchBlock(this)}},Vc=class extends Pt{constructor(n,r,s,i,o){super(o,r,s,i);a(this,"expression");this.expression=n}visit(n){return n.visitSwitchBlockCase(this)}},wo=class extends Pt{constructor(n,r,s,i,o,l,c){super(l,s,i,o);a(this,"cases");a(this,"children");a(this,"i18n");this.cases=n,this.children=r,this.i18n=c}visit(n){return n.visitSwitchBlockCaseGroup(this)}},Gc=class extends Pt{constructor(e,n,r,s){super(s,e,n,r)}visit(e){return e.visitSwitchExhaustiveCheck(this)}},Fn=class extends Pt{constructor(n,r,s,i,o,l,c,u,h,d,p,g,v){super(g,u,d,p);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=h,this.i18n=v}visit(n){return n.visitForLoopBlock(this)}},Co=class extends Pt{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)}},br=class extends Pt{constructor(n,r,s,i,o){super(o,r,s,i);a(this,"branches");this.branches=n}visit(n){return n.visitIfBlock(this)}},yr=class extends Pt{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)}},Fa=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)}},En=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)}},bn=class{constructor(e,n,r,s,i,o,l,c,u,h,d,p,g,v){a(this,"componentName");a(this,"tagName");a(this,"fullName");a(this,"attributes");a(this,"inputs");a(this,"outputs");a(this,"directives");a(this,"children");a(this,"references");a(this,"isSelfClosing");a(this,"sourceSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");a(this,"i18n");this.componentName=e,this.tagName=n,this.fullName=r,this.attributes=s,this.inputs=i,this.outputs=o,this.directives=l,this.children=c,this.references=u,this.isSelfClosing=h,this.sourceSpan=d,this.startSourceSpan=p,this.endSourceSpan=g,this.i18n=v}visit(e){return e.visitComponent(this)}},vi=class{constructor(e,n,r,s,i,o,l,c,u){a(this,"name");a(this,"attributes");a(this,"inputs");a(this,"outputs");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.references=i,this.sourceSpan=o,this.startSourceSpan=l,this.endSourceSpan=c,this.i18n=u}visit(e){return e.visitDirective(this)}},de=class{constructor(e,n,r,s,i,o,l,c,u,h,d,p,g,v){a(this,"tagName");a(this,"attributes");a(this,"inputs");a(this,"outputs");a(this,"directives");a(this,"templateAttrs");a(this,"children");a(this,"references");a(this,"variables");a(this,"isSelfClosing");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.directives=i,this.templateAttrs=o,this.children=l,this.references=c,this.variables=u,this.isSelfClosing=h,this.sourceSpan=d,this.startSourceSpan=p,this.endSourceSpan=g,this.i18n=v}visit(e){return e.visitTemplate(this)}},vs=class{constructor(e,n,r,s,i,o,l,c){a(this,"selector");a(this,"attributes");a(this,"children");a(this,"isSelfClosing");a(this,"sourceSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");a(this,"i18n");a(this,"name","ng-content");this.selector=e,this.attributes=n,this.children=r,this.isSelfClosing=s,this.sourceSpan=i,this.startSourceSpan=o,this.endSourceSpan=l,this.i18n=c}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)}},Jn=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)}},Xu=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)}},Bn=class{constructor(e,n,r,s){a(this,"tagNames");a(this,"bindings");a(this,"listeners");a(this,"sourceSpan");if(this.tagNames=e,this.bindings=n,this.listeners=r,this.sourceSpan=s,e.length===0)throw new Error("HostElement must have at least one tag name.")}visit(){throw new Error("HostElement cannot be visited")}};function Ys(t,e){let n=[];if(t.visit)for(let r of e)t.visit(r);else for(let r of e){let s=r.visit(t);s&&n.push(s)}return n}var St=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=OE(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=[]}},Ri=class{constructor(e,n){a(this,"value");a(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e,n){return e.visitText(this,n)}},zn=class{constructor(e,n){a(this,"children");a(this,"sourceSpan");this.children=e,this.sourceSpan=n}visit(e,n){return e.visitContainer(this,n)}},Ba=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)}},_r=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)}},Ao=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)}},li=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)}},kr=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 OE(t){let e=new Hc;return t.map(r=>r.visit(e)).join("")}var Hc=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 FE=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 qs=Object.freeze({__proto__:null,ArrayType:Cc,ArrowFunctionExpr:Gn,BOOL_TYPE:wd,get BinaryOperator(){return T},BinaryOperatorExpr:se,BuiltinType:dn,get BuiltinTypeName(){return Vt},CommaExpr:bc,ConditionalExpr:gn,DYNAMIC_TYPE:Et,DeclareFunctionStmt:ii,DeclareVarStmt:Ve,DynamicImportExpr:Nc,Expression:ie,ExpressionStatement:Je,ExpressionType:_t,ExternalExpr:Qe,ExternalReference:io,FUNCTION_TYPE:JS,FnParam:Oe,FunctionExpr:bn,INFERRED_TYPE:tn,INT_TYPE:QS,IfStmt:lo,InstantiateExpr:ni,InvokeFunctionExpr:ot,JSDocComment:ao,LeadingComment:oo,LiteralArrayExpr:kt,LiteralExpr:_e,LiteralMapExpr:rn,LiteralMapPropertyAssignment:ws,LiteralMapSpreadAssignment:yn,LiteralPiece:ys,LocalizedString:ro,MapType:Ac,NONE_TYPE:mn,NULL_EXPR:fr,NUMBER_TYPE:Ts,NotExpr:ri,ParenthesizedExpr:sn,PlaceholderPiece:rr,ReadKeyExpr:Pn,ReadPropExpr:wt,ReadVarExpr:nn,RecursiveAstVisitor:sE,RegularExpressionLiteralExpr:hr,ReturnStatement:be,STRING_TYPE:vl,SpreadElementExpr:xs,Statement:Cs,get StmtModifier(){return Ue},TYPED_NULL_EXPR:Ad,TaggedTemplateLiteralExpr:ti,TemplateLiteralElementExpr:so,TemplateLiteralExpr:si,TransplantedType:to,Type:Es,get TypeModifier(){return ba},TypeofExpr:pr,get UnaryOperator(){return Rn},UnaryOperatorExpr:Qn,VoidExpr:no,WrappedNodeExpr:W,areAllEquivalent:Tt,arrowFn:Rt,expressionType:je,fn:Jn,ifStmt:zo,importExpr:O,importType:rE,isNull:aE,jsDocComment:Nd,leadingComment:Id,literal:S,literalArr:ae,literalMap:xt,localizedString:_d,not:Dd,nullSafeIsEquivalent:xd,taggedTemplate:bd,transplantedType:iE,typeofExpr:Si,unary:oE,variable:J}),cE="_c",uE={},pE=50,_a=class t extends ie{constructor(n){super(n.type);a(this,"resolved");a(this,"original");a(this,"shared",!1);this.resolved=n,this.original=n}visitExpression(n,s){return s===uE?this.original.visitExpression(n,s):this.resolved.visitExpression(n,s)}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}},oi=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 _e&&!Th(e)||e instanceof _a)return e;let s=co.INSTANCE.keyOf(e),r=this.literals.get(s),i=!1;if(r||(r=new _a(e),this.literals.set(s,r),i=!0),!i&&!r.shared||i&&n){let o=this.freshName(),l,c;this.isClosureCompilerEnabled&&Th(e)?(l=new bn([],[new be(e)]),c=J(o).callFn([])):(l=e,c=J(o)),this.statements.push(new Ve(o,l,tn,Ue.Final)),r.fixup(c)}return r}getSharedConstant(e,n){let s=e.keyOf(n);if(!this.sharedConstants.has(s)){let r=this.freshName();this.sharedConstants.set(s,J(r)),this.statements.push(e.toSharedConstantDeclaration(r,n))}return this.sharedConstants.get(s)}getSharedFunctionReference(e,n,s=!0){var o;let r=e instanceof Gn;for(let l of this.statements)if(r&&l instanceof Ve&&((o=l.value)!=null&&o.isEquivalent(e))||!r&&l instanceof ii&&e instanceof bn&&e.isEquivalent(l))return J(l.name);let i=s?this.uniqueName(n):n;return this.statements.push(e instanceof bn?e.toDeclStmt(i,Ue.Final):new Ve(i,e,tn,Ue.Final,e.sourceSpan)),J(i)}uniqueName(e,n=!0){var i;let s=(i=this._claimedNames.get(e))!=null?i:0,r=s===0&&!n?`${e}`:`${e}${s}`;return this._claimedNames.set(e,s+1),r}freshName(){return this.uniqueName(cE)}},yl=class yl{keyOf(e){var n;if(e instanceof _e&&typeof e.value=="string")return`"${e.value}"`;if(e instanceof _e)return String(e.value);if(e instanceof hr)return`/${e.body}/${(n=e.flags)!=null?n:""}`;if(e instanceof kt){let s=[];for(let r of e.entries)s.push(this.keyOf(r));return`[${s.join(",")}]`}else if(e instanceof rn){let s=[];for(let r of e.entries)if(r instanceof yn)s.push("..."+this.keyOf(r.expression));else{let i=r.key;r.quoted&&(i=`"${i}"`),s.push(i+":"+this.keyOf(r.value))}return`{${s.join(",")}}`}else{if(e instanceof Qe)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof nn)return`read(${e.name})`;if(e instanceof pr)return`typeof(${this.keyOf(e.expr)})`;if(e instanceof xs)return`...${this.keyOf(e.expression)}`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}};a(yl,"INSTANCE",new yl);var co=yl;function Th(t){return t instanceof _e&&typeof t.value=="string"&&t.value.length>=pE}var y="@angular/core",m=class{};a(m,"core",{name:null,moduleName:y}),a(m,"namespaceHTML",{name:"\u0275\u0275namespaceHTML",moduleName:y}),a(m,"namespaceMathML",{name:"\u0275\u0275namespaceMathML",moduleName:y}),a(m,"namespaceSVG",{name:"\u0275\u0275namespaceSVG",moduleName:y}),a(m,"element",{name:"\u0275\u0275element",moduleName:y}),a(m,"elementStart",{name:"\u0275\u0275elementStart",moduleName:y}),a(m,"elementEnd",{name:"\u0275\u0275elementEnd",moduleName:y}),a(m,"domElement",{name:"\u0275\u0275domElement",moduleName:y}),a(m,"domElementStart",{name:"\u0275\u0275domElementStart",moduleName:y}),a(m,"domElementEnd",{name:"\u0275\u0275domElementEnd",moduleName:y}),a(m,"domElementContainer",{name:"\u0275\u0275domElementContainer",moduleName:y}),a(m,"domElementContainerStart",{name:"\u0275\u0275domElementContainerStart",moduleName:y}),a(m,"domElementContainerEnd",{name:"\u0275\u0275domElementContainerEnd",moduleName:y}),a(m,"domTemplate",{name:"\u0275\u0275domTemplate",moduleName:y}),a(m,"domListener",{name:"\u0275\u0275domListener",moduleName:y}),a(m,"advance",{name:"\u0275\u0275advance",moduleName:y}),a(m,"syntheticHostProperty",{name:"\u0275\u0275syntheticHostProperty",moduleName:y}),a(m,"syntheticHostListener",{name:"\u0275\u0275syntheticHostListener",moduleName:y}),a(m,"attribute",{name:"\u0275\u0275attribute",moduleName:y}),a(m,"classProp",{name:"\u0275\u0275classProp",moduleName:y}),a(m,"elementContainerStart",{name:"\u0275\u0275elementContainerStart",moduleName:y}),a(m,"elementContainerEnd",{name:"\u0275\u0275elementContainerEnd",moduleName:y}),a(m,"elementContainer",{name:"\u0275\u0275elementContainer",moduleName:y}),a(m,"styleMap",{name:"\u0275\u0275styleMap",moduleName:y}),a(m,"classMap",{name:"\u0275\u0275classMap",moduleName:y}),a(m,"styleProp",{name:"\u0275\u0275styleProp",moduleName:y}),a(m,"interpolate",{name:"\u0275\u0275interpolate",moduleName:y}),a(m,"interpolate1",{name:"\u0275\u0275interpolate1",moduleName:y}),a(m,"interpolate2",{name:"\u0275\u0275interpolate2",moduleName:y}),a(m,"interpolate3",{name:"\u0275\u0275interpolate3",moduleName:y}),a(m,"interpolate4",{name:"\u0275\u0275interpolate4",moduleName:y}),a(m,"interpolate5",{name:"\u0275\u0275interpolate5",moduleName:y}),a(m,"interpolate6",{name:"\u0275\u0275interpolate6",moduleName:y}),a(m,"interpolate7",{name:"\u0275\u0275interpolate7",moduleName:y}),a(m,"interpolate8",{name:"\u0275\u0275interpolate8",moduleName:y}),a(m,"interpolateV",{name:"\u0275\u0275interpolateV",moduleName:y}),a(m,"nextContext",{name:"\u0275\u0275nextContext",moduleName:y}),a(m,"resetView",{name:"\u0275\u0275resetView",moduleName:y}),a(m,"templateCreate",{name:"\u0275\u0275template",moduleName:y}),a(m,"defer",{name:"\u0275\u0275defer",moduleName:y}),a(m,"deferWhen",{name:"\u0275\u0275deferWhen",moduleName:y}),a(m,"deferOnIdle",{name:"\u0275\u0275deferOnIdle",moduleName:y}),a(m,"deferOnImmediate",{name:"\u0275\u0275deferOnImmediate",moduleName:y}),a(m,"deferOnTimer",{name:"\u0275\u0275deferOnTimer",moduleName:y}),a(m,"deferOnHover",{name:"\u0275\u0275deferOnHover",moduleName:y}),a(m,"deferOnInteraction",{name:"\u0275\u0275deferOnInteraction",moduleName:y}),a(m,"deferOnViewport",{name:"\u0275\u0275deferOnViewport",moduleName:y}),a(m,"deferPrefetchWhen",{name:"\u0275\u0275deferPrefetchWhen",moduleName:y}),a(m,"deferPrefetchOnIdle",{name:"\u0275\u0275deferPrefetchOnIdle",moduleName:y}),a(m,"deferPrefetchOnImmediate",{name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:y}),a(m,"deferPrefetchOnTimer",{name:"\u0275\u0275deferPrefetchOnTimer",moduleName:y}),a(m,"deferPrefetchOnHover",{name:"\u0275\u0275deferPrefetchOnHover",moduleName:y}),a(m,"deferPrefetchOnInteraction",{name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:y}),a(m,"deferPrefetchOnViewport",{name:"\u0275\u0275deferPrefetchOnViewport",moduleName:y}),a(m,"deferHydrateWhen",{name:"\u0275\u0275deferHydrateWhen",moduleName:y}),a(m,"deferHydrateNever",{name:"\u0275\u0275deferHydrateNever",moduleName:y}),a(m,"deferHydrateOnIdle",{name:"\u0275\u0275deferHydrateOnIdle",moduleName:y}),a(m,"deferHydrateOnImmediate",{name:"\u0275\u0275deferHydrateOnImmediate",moduleName:y}),a(m,"deferHydrateOnTimer",{name:"\u0275\u0275deferHydrateOnTimer",moduleName:y}),a(m,"deferHydrateOnHover",{name:"\u0275\u0275deferHydrateOnHover",moduleName:y}),a(m,"deferHydrateOnInteraction",{name:"\u0275\u0275deferHydrateOnInteraction",moduleName:y}),a(m,"deferHydrateOnViewport",{name:"\u0275\u0275deferHydrateOnViewport",moduleName:y}),a(m,"deferEnableTimerScheduling",{name:"\u0275\u0275deferEnableTimerScheduling",moduleName:y}),a(m,"conditionalCreate",{name:"\u0275\u0275conditionalCreate",moduleName:y}),a(m,"conditionalBranchCreate",{name:"\u0275\u0275conditionalBranchCreate",moduleName:y}),a(m,"conditional",{name:"\u0275\u0275conditional",moduleName:y}),a(m,"repeater",{name:"\u0275\u0275repeater",moduleName:y}),a(m,"repeaterCreate",{name:"\u0275\u0275repeaterCreate",moduleName:y}),a(m,"repeaterTrackByIndex",{name:"\u0275\u0275repeaterTrackByIndex",moduleName:y}),a(m,"repeaterTrackByIdentity",{name:"\u0275\u0275repeaterTrackByIdentity",moduleName:y}),a(m,"componentInstance",{name:"\u0275\u0275componentInstance",moduleName:y}),a(m,"text",{name:"\u0275\u0275text",moduleName:y}),a(m,"enableBindings",{name:"\u0275\u0275enableBindings",moduleName:y}),a(m,"disableBindings",{name:"\u0275\u0275disableBindings",moduleName:y}),a(m,"getCurrentView",{name:"\u0275\u0275getCurrentView",moduleName:y}),a(m,"textInterpolate",{name:"\u0275\u0275textInterpolate",moduleName:y}),a(m,"textInterpolate1",{name:"\u0275\u0275textInterpolate1",moduleName:y}),a(m,"textInterpolate2",{name:"\u0275\u0275textInterpolate2",moduleName:y}),a(m,"textInterpolate3",{name:"\u0275\u0275textInterpolate3",moduleName:y}),a(m,"textInterpolate4",{name:"\u0275\u0275textInterpolate4",moduleName:y}),a(m,"textInterpolate5",{name:"\u0275\u0275textInterpolate5",moduleName:y}),a(m,"textInterpolate6",{name:"\u0275\u0275textInterpolate6",moduleName:y}),a(m,"textInterpolate7",{name:"\u0275\u0275textInterpolate7",moduleName:y}),a(m,"textInterpolate8",{name:"\u0275\u0275textInterpolate8",moduleName:y}),a(m,"textInterpolateV",{name:"\u0275\u0275textInterpolateV",moduleName:y}),a(m,"restoreView",{name:"\u0275\u0275restoreView",moduleName:y}),a(m,"pureFunction0",{name:"\u0275\u0275pureFunction0",moduleName:y}),a(m,"pureFunction1",{name:"\u0275\u0275pureFunction1",moduleName:y}),a(m,"pureFunction2",{name:"\u0275\u0275pureFunction2",moduleName:y}),a(m,"pureFunction3",{name:"\u0275\u0275pureFunction3",moduleName:y}),a(m,"pureFunction4",{name:"\u0275\u0275pureFunction4",moduleName:y}),a(m,"pureFunction5",{name:"\u0275\u0275pureFunction5",moduleName:y}),a(m,"pureFunction6",{name:"\u0275\u0275pureFunction6",moduleName:y}),a(m,"pureFunction7",{name:"\u0275\u0275pureFunction7",moduleName:y}),a(m,"pureFunction8",{name:"\u0275\u0275pureFunction8",moduleName:y}),a(m,"pureFunctionV",{name:"\u0275\u0275pureFunctionV",moduleName:y}),a(m,"pipeBind1",{name:"\u0275\u0275pipeBind1",moduleName:y}),a(m,"pipeBind2",{name:"\u0275\u0275pipeBind2",moduleName:y}),a(m,"pipeBind3",{name:"\u0275\u0275pipeBind3",moduleName:y}),a(m,"pipeBind4",{name:"\u0275\u0275pipeBind4",moduleName:y}),a(m,"pipeBindV",{name:"\u0275\u0275pipeBindV",moduleName:y}),a(m,"domProperty",{name:"\u0275\u0275domProperty",moduleName:y}),a(m,"ariaProperty",{name:"\u0275\u0275ariaProperty",moduleName:y}),a(m,"property",{name:"\u0275\u0275property",moduleName:y}),a(m,"control",{name:"\u0275\u0275control",moduleName:y}),a(m,"controlCreate",{name:"\u0275\u0275controlCreate",moduleName:y}),a(m,"animationEnterListener",{name:"\u0275\u0275animateEnterListener",moduleName:y}),a(m,"animationLeaveListener",{name:"\u0275\u0275animateLeaveListener",moduleName:y}),a(m,"animationEnter",{name:"\u0275\u0275animateEnter",moduleName:y}),a(m,"animationLeave",{name:"\u0275\u0275animateLeave",moduleName:y}),a(m,"i18n",{name:"\u0275\u0275i18n",moduleName:y}),a(m,"i18nAttributes",{name:"\u0275\u0275i18nAttributes",moduleName:y}),a(m,"i18nExp",{name:"\u0275\u0275i18nExp",moduleName:y}),a(m,"i18nStart",{name:"\u0275\u0275i18nStart",moduleName:y}),a(m,"i18nEnd",{name:"\u0275\u0275i18nEnd",moduleName:y}),a(m,"i18nApply",{name:"\u0275\u0275i18nApply",moduleName:y}),a(m,"i18nPostprocess",{name:"\u0275\u0275i18nPostprocess",moduleName:y}),a(m,"pipe",{name:"\u0275\u0275pipe",moduleName:y}),a(m,"projection",{name:"\u0275\u0275projection",moduleName:y}),a(m,"projectionDef",{name:"\u0275\u0275projectionDef",moduleName:y}),a(m,"reference",{name:"\u0275\u0275reference",moduleName:y}),a(m,"inject",{name:"\u0275\u0275inject",moduleName:y}),a(m,"injectAttribute",{name:"\u0275\u0275injectAttribute",moduleName:y}),a(m,"directiveInject",{name:"\u0275\u0275directiveInject",moduleName:y}),a(m,"invalidFactory",{name:"\u0275\u0275invalidFactory",moduleName:y}),a(m,"invalidFactoryDep",{name:"\u0275\u0275invalidFactoryDep",moduleName:y}),a(m,"templateRefExtractor",{name:"\u0275\u0275templateRefExtractor",moduleName:y}),a(m,"forwardRef",{name:"forwardRef",moduleName:y}),a(m,"resolveForwardRef",{name:"resolveForwardRef",moduleName:y}),a(m,"replaceMetadata",{name:"\u0275\u0275replaceMetadata",moduleName:y}),a(m,"getReplaceMetadataURL",{name:"\u0275\u0275getReplaceMetadataURL",moduleName:y}),a(m,"\u0275\u0275defineInjectable",{name:"\u0275\u0275defineInjectable",moduleName:y}),a(m,"declareInjectable",{name:"\u0275\u0275ngDeclareInjectable",moduleName:y}),a(m,"InjectableDeclaration",{name:"\u0275\u0275InjectableDeclaration",moduleName:y}),a(m,"resolveWindow",{name:"\u0275\u0275resolveWindow",moduleName:y}),a(m,"resolveDocument",{name:"\u0275\u0275resolveDocument",moduleName:y}),a(m,"resolveBody",{name:"\u0275\u0275resolveBody",moduleName:y}),a(m,"getComponentDepsFactory",{name:"\u0275\u0275getComponentDepsFactory",moduleName:y}),a(m,"defineComponent",{name:"\u0275\u0275defineComponent",moduleName:y}),a(m,"declareComponent",{name:"\u0275\u0275ngDeclareComponent",moduleName:y}),a(m,"setComponentScope",{name:"\u0275\u0275setComponentScope",moduleName:y}),a(m,"ChangeDetectionStrategy",{name:"ChangeDetectionStrategy",moduleName:y}),a(m,"ViewEncapsulation",{name:"ViewEncapsulation",moduleName:y}),a(m,"ComponentDeclaration",{name:"\u0275\u0275ComponentDeclaration",moduleName:y}),a(m,"FactoryDeclaration",{name:"\u0275\u0275FactoryDeclaration",moduleName:y}),a(m,"declareFactory",{name:"\u0275\u0275ngDeclareFactory",moduleName:y}),a(m,"FactoryTarget",{name:"\u0275\u0275FactoryTarget",moduleName:y}),a(m,"defineDirective",{name:"\u0275\u0275defineDirective",moduleName:y}),a(m,"declareDirective",{name:"\u0275\u0275ngDeclareDirective",moduleName:y}),a(m,"DirectiveDeclaration",{name:"\u0275\u0275DirectiveDeclaration",moduleName:y}),a(m,"InjectorDef",{name:"\u0275\u0275InjectorDef",moduleName:y}),a(m,"InjectorDeclaration",{name:"\u0275\u0275InjectorDeclaration",moduleName:y}),a(m,"defineInjector",{name:"\u0275\u0275defineInjector",moduleName:y}),a(m,"declareInjector",{name:"\u0275\u0275ngDeclareInjector",moduleName:y}),a(m,"NgModuleDeclaration",{name:"\u0275\u0275NgModuleDeclaration",moduleName:y}),a(m,"ModuleWithProviders",{name:"ModuleWithProviders",moduleName:y}),a(m,"defineNgModule",{name:"\u0275\u0275defineNgModule",moduleName:y}),a(m,"declareNgModule",{name:"\u0275\u0275ngDeclareNgModule",moduleName:y}),a(m,"setNgModuleScope",{name:"\u0275\u0275setNgModuleScope",moduleName:y}),a(m,"registerNgModuleType",{name:"\u0275\u0275registerNgModuleType",moduleName:y}),a(m,"PipeDeclaration",{name:"\u0275\u0275PipeDeclaration",moduleName:y}),a(m,"definePipe",{name:"\u0275\u0275definePipe",moduleName:y}),a(m,"declarePipe",{name:"\u0275\u0275ngDeclarePipe",moduleName:y}),a(m,"declareClassMetadata",{name:"\u0275\u0275ngDeclareClassMetadata",moduleName:y}),a(m,"declareClassMetadataAsync",{name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:y}),a(m,"setClassMetadata",{name:"\u0275setClassMetadata",moduleName:y}),a(m,"setClassMetadataAsync",{name:"\u0275setClassMetadataAsync",moduleName:y}),a(m,"setClassDebugInfo",{name:"\u0275setClassDebugInfo",moduleName:y}),a(m,"queryRefresh",{name:"\u0275\u0275queryRefresh",moduleName:y}),a(m,"viewQuery",{name:"\u0275\u0275viewQuery",moduleName:y}),a(m,"loadQuery",{name:"\u0275\u0275loadQuery",moduleName:y}),a(m,"contentQuery",{name:"\u0275\u0275contentQuery",moduleName:y}),a(m,"viewQuerySignal",{name:"\u0275\u0275viewQuerySignal",moduleName:y}),a(m,"contentQuerySignal",{name:"\u0275\u0275contentQuerySignal",moduleName:y}),a(m,"queryAdvance",{name:"\u0275\u0275queryAdvance",moduleName:y}),a(m,"twoWayProperty",{name:"\u0275\u0275twoWayProperty",moduleName:y}),a(m,"twoWayBindingSet",{name:"\u0275\u0275twoWayBindingSet",moduleName:y}),a(m,"twoWayListener",{name:"\u0275\u0275twoWayListener",moduleName:y}),a(m,"declareLet",{name:"\u0275\u0275declareLet",moduleName:y}),a(m,"storeLet",{name:"\u0275\u0275storeLet",moduleName:y}),a(m,"readContextLet",{name:"\u0275\u0275readContextLet",moduleName:y}),a(m,"arrowFunction",{name:"\u0275\u0275arrowFunction",moduleName:y}),a(m,"attachSourceLocations",{name:"\u0275\u0275attachSourceLocations",moduleName:y}),a(m,"NgOnChangesFeature",{name:"\u0275\u0275NgOnChangesFeature",moduleName:y}),a(m,"ControlFeature",{name:"\u0275\u0275ControlFeature",moduleName:y}),a(m,"InheritDefinitionFeature",{name:"\u0275\u0275InheritDefinitionFeature",moduleName:y}),a(m,"ProvidersFeature",{name:"\u0275\u0275ProvidersFeature",moduleName:y}),a(m,"HostDirectivesFeature",{name:"\u0275\u0275HostDirectivesFeature",moduleName:y}),a(m,"ExternalStylesFeature",{name:"\u0275\u0275ExternalStylesFeature",moduleName:y}),a(m,"listener",{name:"\u0275\u0275listener",moduleName:y}),a(m,"getInheritedFactory",{name:"\u0275\u0275getInheritedFactory",moduleName:y}),a(m,"sanitizeHtml",{name:"\u0275\u0275sanitizeHtml",moduleName:y}),a(m,"sanitizeStyle",{name:"\u0275\u0275sanitizeStyle",moduleName:y}),a(m,"validateAttribute",{name:"\u0275\u0275validateAttribute",moduleName:y}),a(m,"sanitizeResourceUrl",{name:"\u0275\u0275sanitizeResourceUrl",moduleName:y}),a(m,"sanitizeScript",{name:"\u0275\u0275sanitizeScript",moduleName:y}),a(m,"sanitizeUrl",{name:"\u0275\u0275sanitizeUrl",moduleName:y}),a(m,"sanitizeUrlOrResourceUrl",{name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:y}),a(m,"trustConstantHtml",{name:"\u0275\u0275trustConstantHtml",moduleName:y}),a(m,"trustConstantResourceUrl",{name:"\u0275\u0275trustConstantResourceUrl",moduleName:y}),a(m,"inputDecorator",{name:"Input",moduleName:y}),a(m,"outputDecorator",{name:"Output",moduleName:y}),a(m,"viewChildDecorator",{name:"ViewChild",moduleName:y}),a(m,"viewChildrenDecorator",{name:"ViewChildren",moduleName:y}),a(m,"contentChildDecorator",{name:"ContentChild",moduleName:y}),a(m,"contentChildrenDecorator",{name:"ContentChildren",moduleName:y}),a(m,"InputSignalBrandWriteType",{name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:y}),a(m,"UnwrapDirectiveSignalInputs",{name:"\u0275UnwrapDirectiveSignalInputs",moduleName:y}),a(m,"unwrapWritableSignal",{name:"\u0275unwrapWritableSignal",moduleName:y}),a(m,"assertType",{name:"\u0275assertType",moduleName:y});var hE=/-+([a-z0-9])/g;function fE(t){return t.replace(hE,(...e)=>e[1].toUpperCase())}function dE(t,e){return kd(t,":",e)}function mE(t,e){return kd(t,".",e)}function kd(t,e,n){let s=t.indexOf(e);return s==-1?n:[t.slice(0,s).trim(),t.slice(s+1).trim()]}function gE(t){let e=[];for(let n=0;n<t.length;n++){let s=t.charCodeAt(n);if(s>=55296&&s<=56319&&t.length>n+1){let r=t.charCodeAt(n+1);r>=56320&&r<=57343&&(n++,s=(s-55296<<10)+r-56320+65536)}s<=127?e.push(s):s<=2047?e.push(s>>6&31|192,s&63|128):s<=65535?e.push(s>>12|224,s>>6&63|128,s&63|128):s<=2097151&&e.push(s>>18&7|240,s>>12&63|128,s>>6&63|128,s&63|128)}return e}function Rd(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Rd).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;if(!t.toString)return"object";let n=t.toString();if(n==null)return""+n;let s=n.indexOf(`
|
|
5
|
+
`);return s>=0?n.slice(0,s):n}var uo=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(".")}},zi=globalThis,yE=/^([1-9]|1[0-8])\./;function Pd(t){return t.startsWith("0.")?!0:!yE.test(t)}var vE=3,SE="# sourceMappingURL=data:application/json;base64,",_c=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,s,r){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&&(s==null||r==null))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=e,this.currentLine.push({col0:e,sourceUrl:n,sourceLine0:s,sourceCol0:r}),this}get currentLine(){return this.lines.slice(-1)[0]}toJSON(){if(!this.hasMappings)return null;let e=new Map,n=[],s=[];Array.from(this.sourcesContent.keys()).forEach((u,h)=>{e.set(u,h),n.push(u),s.push(this.sourcesContent.get(u)||null)});let r="",i=0,o=0,l=0,c=0;return this.lines.forEach(u=>{i=0,r+=u.map(h=>{let d=ua(h.col0-i);return i=h.col0,h.sourceUrl!=null&&(d+=ua(e.get(h.sourceUrl)-o),o=e.get(h.sourceUrl),d+=ua(h.sourceLine0-l),l=h.sourceLine0,d+=ua(h.sourceCol0-c),c=h.sourceCol0),d}).join(","),r+=";"}),r=r.slice(0,-1),{file:this.file||"",version:vE,sourceRoot:"",sources:n,sourcesContent:s,mappings:r}}toJsComment(){return this.hasMappings?"//"+SE+EE(JSON.stringify(this,null,0)):""}};function EE(t){let e="",n=gE(t);for(let s=0;s<n.length;){let r=n[s++],i=s<n.length?n[s++]:null,o=s<n.length?n[s++]:null;e+=Hi(r>>2),e+=Hi((r&3)<<4|(i===null?0:i>>4)),e+=i===null?"=":Hi((i&15)<<2|(o===null?0:o>>6)),e+=i===null||o===null?"=":Hi(o&63)}return e}function ua(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+=Hi(n)}while(t>0);return e}var TE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Hi(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return TE[t]}var wE=/'|\\|\n|\r|\$/g,xE=/^[$A-Z_][0-9A-Z_$]*$/i,kc=" ",ka=class{constructor(e){a(this,"indent");a(this,"partsLength",0);a(this,"parts",[]);a(this,"srcSpans",[]);this.indent=e}},CE=new Map([[T.And,"&&"],[T.Bigger,">"],[T.BiggerEquals,">="],[T.BitwiseOr,"|"],[T.BitwiseAnd,"&"],[T.Divide,"/"],[T.Assign,"="],[T.Equals,"=="],[T.Identical,"==="],[T.Lower,"<"],[T.LowerEquals,"<="],[T.Minus,"-"],[T.Modulo,"%"],[T.Exponentiation,"**"],[T.Multiply,"*"],[T.NotEquals,"!="],[T.NotIdentical,"!=="],[T.NullishCoalesce,"??"],[T.Or,"||"],[T.Plus,"+"],[T.In,"in"],[T.InstanceOf,"instanceof"],[T.AdditionAssignment,"+="],[T.SubtractionAssignment,"-="],[T.MultiplicationAssignment,"*="],[T.DivisionAssignment,"/="],[T.RemainderAssignment,"%="],[T.ExponentiationAssignment,"**="],[T.AndAssignment,"&&="],[T.OrAssignment,"||="],[T.NullishCoalesceAssignment,"??="]]),Rc=class t{constructor(e){a(this,"_indent");a(this,"_lines");this._indent=e,this._lines=[new ka(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*kc.length+this._currentLine.partsLength}print(e,n,s=!1){n.length>0&&(this._currentLine.parts.push(n),this._currentLine.partsLength+=n.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),s&&this._lines.push(new ka(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?wh(e.indent)+e.parts.join(""):"").join(`
|
|
6
|
+
`)}toSourceMapGenerator(e,n=0){let s=new _c(e),r=!1,i=()=>{r||(s.addSource(e," ").addMapping(0,e,0,0),r=!0)};for(let o=0;o<n;o++)s.addLine(),i();return this.sourceLines.forEach((o,l)=>{s.addLine();let c=o.srcSpans,u=o.parts,h=o.indent*kc.length,d=0;for(;d<c.length&&!c[d];)h+=u[d].length,d++;for(d<c.length&&l===0&&h===0?r=!0:i();d<c.length;){let p=c[d],g=p.start.file,v=p.start.line,E=p.start.col;for(s.addSource(g.url,g.content).addMapping(h,g.url,v,E),h+=u[d].length,d++;d<c.length&&(p===c[d]||!c[d]);)h+=u[d].length,d++}}),s}spanOf(e,n){let s=this._lines[e];if(s){let r=n-wh(s.indent).length;for(let i=0;i<s.parts.length;i++){let o=s.parts[i];if(o.length>r)return s.srcSpans[i];r-=o.length}}return null}get sourceLines(){return this._lines.length&&this._lines[this._lines.length-1].parts.length===0?this._lines.slice(0,-1):this._lines}},Pc=class{constructor(e){a(this,"_escapeDollarInStrings");a(this,"lastIfCondition",null);this._escapeDollarInStrings=e}printLeadingComments(e,n){if(e.leadingComments!==void 0)for(let s of e.leadingComments)s instanceof ao?n.print(e,`/*${s.toString()}*/`,s.trailingNewline):s.multiline?n.print(e,`/* ${s.text} */`,s.trailingNewline):s.text.split(`
|
|
7
|
+
`).forEach(r=>{n.println(e,`// ${r}`)})}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 ("),this.lastIfCondition=e.condition,e.condition.visitExpression(this,n),this.lastIfCondition=null,n.print(e,") {");let s=e.falseCase!=null&&e.falseCase.length>0;return e.trueCase.length<=1&&!s?(n.print(e," "),this.visitAllStatements(e.trueCase,n),n.removeEmptyLastLine(),n.print(e," ")):(n.println(),n.incIndent(),this.visitAllStatements(e.trueCase,n),n.decIndent(),s&&(n.println(e,"} else {"),n.incIndent(),this.visitAllStatements(e.falseCase,n),n.decIndent())),n.println(e,"}"),null}visitInvokeFunctionExpr(e,n){let s=e.fn instanceof Gn;return s&&n.print(e.fn,"("),e.fn.visitExpression(this,n),s&&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 s=0;s<e.elements.length;s++){e.elements[s].visitExpression(this,n);let r=s<e.expressions.length?e.expressions[s]:null;r!==null&&(n.print(r,"${"),r.visitExpression(this,n),n.print(r,"}"))}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)}visitVoidExpr(e,n){n.print(e,"void "),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 s=e.value;return typeof s=="string"?n.print(e,nr(s,this._escapeDollarInStrings)):n.print(e,`${s}`),null}visitRegularExpressionLiteral(e,n){return n.print(e,`/${e.body}/${e.flags||""}`),null}visitLocalizedString(e,n){let s=e.serializeI18nHead();n.print(e,"$localize `"+s.raw);for(let r=1;r<e.messageParts.length;r++)n.print(e,"${"),e.expressions[r-1].visitExpression(this,n),n.print(e,`}${e.serializeI18nTemplatePart(r).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 s;switch(e.operator){case Rn.Plus:s="+";break;case Rn.Minus:s="-";break;default:throw new Error(`Unknown operator ${e.operator}`)}let r=e!==this.lastIfCondition;return r&&n.print(e,"("),n.print(e,s),e.expr.visitExpression(this,n),r&&n.print(e,")"),null}visitBinaryOperatorExpr(e,n){let s=CE.get(e.operator);if(!s)throw new Error(`Unknown operator ${e.operator}`);let r=e!==this.lastIfCondition;return r&&n.print(e,"("),e.lhs.visitExpression(this,n),n.print(e,` ${s} `),e.rhs.visitExpression(this,n),r&&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(s=>{s instanceof yn?(n.print(e,"..."),s.expression.visitExpression(this,n)):(n.print(e,`${nr(s.key,this._escapeDollarInStrings,s.quoted)}:`),s.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}visitParenthesizedExpr(e,n){e.expr.visitExpression(this,n)}visitSpreadElementExpr(e,n){n.print(e,"..."),e.expression.visitExpression(this,n)}visitAllExpressions(e,n,s){this.visitAllObjects(r=>r.visitExpression(this,n),e,n,s)}visitAllObjects(e,n,s,r){let i=!1;for(let o=0;o<n.length;o++)o>0&&(s.lineLength()>80?(s.print(null,r,!0),i||(s.incIndent(),s.incIndent(),i=!0)):s.print(null,r,!1)),e(n[o]);i&&(s.decIndent(),s.decIndent())}visitAllStatements(e,n){e.forEach(s=>s.visitStatement(this,n))}};function nr(t,e,n=!0){if(t==null)return null;let s=t.replace(wE,(...i)=>i[0]=="$"?e?"\\$":"$":i[0]==`
|
|
8
|
+
`?"\\n":i[0]=="\r"?"\\r":`\\${i[0]}`);return n||!xE.test(s)?`'${s}'`:s}function wh(t){let e="";for(let n=0;n<t;n++)e+=kc;return e}function Sl(t,e){if(e===0)return je(t);let n=[];for(let s=0;s<e;s++)n.push(Et);return je(t,void 0,n)}function Ld(t,e){let n=nr(e,!1,!1);return n!==e?`${t}[${n}]`:`${t}.${e}`}function AE(t){return IE("ngJitMode",t)}function IE(t,e){let n=new Qe({name:t,moduleName:null}),s=new se(T.Identical,new pr(n),S("undefined")),r=new se(T.Or,s,n,void 0,void 0);return new se(T.And,r,e)}function qe(t){let e=new W(t);return{value:e,type:e}}function sr(t,e){let n=ae(t.map(s=>s.value));return e?Rt([],n):n}function _r(t,e){return{expression:t,forwardRef:e}}function NE({expression:t,forwardRef:e}){switch(e){case 0:case 1:return t;case 2:return DE(t)}}function DE(t){return O(m.forwardRef).callFn([Rt([],t)])}var po;(function(t){t[t.Class=0]="Class",t[t.Function=1]="Function"})(po||(po={}));function fs(t){let e=J("__ngFactoryType__"),n=null,s=Ch(t)?e:new se(T.Or,e,t.type.value),r=null;t.deps!==null?t.deps!=="invalid"&&(r=new ni(s,xh(t.deps,t.target))):(n=J(`\u0275${t.name}_BaseFactory`),r=n.callFn([s]));let i=[],o=null;function l(u){let h=J("__ngConditionalFactory__");i.push(new Ve(h.name,fr,tn));let d=r!==null?h.set(r).toStmt():O(m.invalidFactory).callFn([]).toStmt();return i.push(zo(e,[d],[h.set(u).toStmt()])),h}if(Ch(t)){let u=xh(t.delegateDeps,t.target),h=new(t.delegateType===po.Class?ni:ot)(t.delegate,u);o=l(h)}else PE(t)?o=l(t.expression):o=r;if(o===null)i.push(O(m.invalidFactory).callFn([]).toStmt());else if(n!==null){let u=O(m.getInheritedFactory).callFn([t.type.value]),h=new se(T.Or,n,n.set(u));i.push(new be(h.callFn([s])))}else i.push(new be(o));let c=Jn([new Oe(e.name,Et)],i,tn,void 0,`${t.name}_Factory`);return n!==null&&(c=Rt([],[new Ve(n.name),new be(c)]).callFn([],void 0,!0)),{expression:c,statements:[],type:bE(t)}}function bE(t){let e=t.deps!==null&&t.deps!=="invalid"?kE(t.deps):mn;return je(O(m.FactoryDeclaration,[Sl(t.type.type,t.typeArgumentCount),e]))}function xh(t,e){return t.map((n,s)=>_E(n,e,s))}function _E(t,e,n){if(t.token===null)return O(m.invalidFactoryDep).callFn([S(n)]);if(t.attributeNameType===null){let s=0|(t.self?2:0)|(t.skipSelf?4:0)|(t.host?1:0)|(t.optional?8:0)|(e===gt.Pipe?16:0),r=s!==0||t.optional?S(s):null,i=[t.token];r&&i.push(r);let o=LE(e);return O(o).callFn(i)}else return O(m.injectAttribute).callFn([t.token])}function kE(t){let e=!1,n=t.map(s=>{let r=RE(s);return r!==null?(e=!0,r):S(null)});return e?je(ae(n)):mn}function RE(t){let e=[];return t.attributeNameType!==null&&e.push({key:"attribute",value:t.attributeNameType,quoted:!1}),t.optional&&e.push({key:"optional",value:S(!0),quoted:!1}),t.host&&e.push({key:"host",value:S(!0),quoted:!1}),t.self&&e.push({key:"self",value:S(!0),quoted:!1}),t.skipSelf&&e.push({key:"skipSelf",value:S(!0),quoted:!1}),e.length>0?xt(e):null}function Ch(t){return t.delegateType!==void 0}function PE(t){return t.expression!==void 0}function LE(t){switch(t){case gt.Component:case gt.Directive:case gt.Pipe:return m.directiveInject;case gt.NgModule:case gt.Injectable:default:return m.inject}}var As=class{constructor(e,n){a(this,"start");a(this,"end");this.start=e,this.end=n}toAbsolute(e){return new Ye(e+this.start,e+this.end)}},oe=class{constructor(e,n){a(this,"span");a(this,"sourceSpan");this.span=e,this.sourceSpan=n}toString(){return"AST"}},dr=class extends oe{constructor(n,s,r){super(n,s);a(this,"nameSpan");this.nameSpan=r}},tt=class extends oe{visit(e,n=null){var s;return(s=e.visitEmptyExpr)==null?void 0:s.call(e,this,n)}},Ze=class extends oe{visit(e,n=null){return e.visitImplicitReceiver(this,n)}},on=class extends oe{visit(e,n=null){var s;return(s=e.visitThisReceiver)==null?void 0:s.call(e,this,n)}},Is=class extends oe{constructor(n,s,r){super(n,s);a(this,"expressions");this.expressions=r}visit(n,s=null){return n.visitChain(this,s)}},ai=class extends oe{constructor(n,s,r,i,o){super(n,s);a(this,"condition");a(this,"trueExp");a(this,"falseExp");this.condition=r,this.trueExp=i,this.falseExp=o}visit(n,s=null){return n.visitConditional(this,s)}},le=class extends dr{constructor(n,s,r,i,o){super(n,s,r);a(this,"receiver");a(this,"name");this.receiver=i,this.name=o}visit(n,s=null){return n.visitPropertyRead(this,s)}},et=class extends dr{constructor(n,s,r,i,o){super(n,s,r);a(this,"receiver");a(this,"name");this.receiver=i,this.name=o}visit(n,s=null){return n.visitSafePropertyRead(this,s)}},Ln=class extends oe{constructor(n,s,r,i){super(n,s);a(this,"receiver");a(this,"key");this.receiver=r,this.key=i}visit(n,s=null){return n.visitKeyedRead(this,s)}},Ns=class extends oe{constructor(n,s,r,i){super(n,s);a(this,"receiver");a(this,"key");this.receiver=r,this.key=i}visit(n,s=null){return n.visitSafeKeyedRead(this,s)}},Yr;(function(t){t[t.ReferencedByName=0]="ReferencedByName",t[t.ReferencedDirectly=1]="ReferencedDirectly"})(Yr||(Yr={}));var mr=class extends dr{constructor(n,s,r,i,o,l,c){super(n,s,c);a(this,"exp");a(this,"name");a(this,"args");a(this,"type");this.exp=r,this.name=i,this.args=o,this.type=l}visit(n,s=null){return n.visitPipe(this,s)}},dt=class extends oe{constructor(n,s,r){super(n,s);a(this,"value");this.value=r}visit(n,s=null){return n.visitLiteralPrimitive(this,s)}},li=class extends oe{constructor(n,s,r){super(n,s);a(this,"expressions");this.expressions=r}visit(n,s=null){return n.visitLiteralArray(this,s)}},Ra=class extends oe{constructor(n,s,r){super(n,s);a(this,"expression");this.expression=r}visit(n,s=null){return n.visitSpreadElement(this,s)}},Ds=class extends oe{constructor(n,s,r,i){super(n,s);a(this,"keys");a(this,"values");this.keys=r,this.values=i}visit(n,s=null){return n.visitLiteralMap(this,s)}},ns=class extends oe{constructor(n,s,r,i){super(n,s);a(this,"strings");a(this,"expressions");this.strings=r,this.expressions=i}visit(n,s=null){return n.visitInterpolation(this,s)}},we=class extends oe{constructor(n,s,r,i,o){super(n,s);a(this,"operation");a(this,"left");a(this,"right");this.operation=r,this.left=i,this.right=o}visit(n,s=null){return n.visitBinary(this,s)}static isAssignmentOperation(n){return n==="="||n==="+="||n==="-="||n==="*="||n==="/="||n==="%="||n==="**="||n==="&&="||n==="||="||n==="??="}},Qr=class t extends we{constructor(n,s,r,i,o,l,c){super(n,s,o,l,c);a(this,"operator");a(this,"expr");a(this,"left",null);a(this,"right",null);a(this,"operation",null);this.operator=r,this.expr=i}static createMinus(n,s,r){return new t(n,s,"-",r,"-",new dt(n,s,0),r)}static createPlus(n,s,r){return new t(n,s,"+",r,"-",r,new dt(n,s,0))}visit(n,s=null){return n.visitUnary!==void 0?n.visitUnary(this,s):n.visitBinary(this,s)}},Mn=class extends oe{constructor(n,s,r){super(n,s);a(this,"expression");this.expression=r}visit(n,s=null){return n.visitPrefixNot(this,s)}},ho=class extends oe{constructor(n,s,r){super(n,s);a(this,"expression");this.expression=r}visit(n,s=null){return n.visitTypeofExpression(this,s)}},fo=class extends oe{constructor(n,s,r){super(n,s);a(this,"expression");this.expression=r}visit(n,s=null){return n.visitVoidExpression(this,s)}},mo=class extends oe{constructor(n,s,r){super(n,s);a(this,"expression");this.expression=r}visit(n,s=null){return n.visitNonNullAssert(this,s)}},Ct=class extends oe{constructor(n,s,r,i,o){super(n,s);a(this,"receiver");a(this,"args");a(this,"argumentSpan");this.receiver=r,this.args=i,this.argumentSpan=o}visit(n,s=null){return n.visitCall(this,s)}},Gt=class extends oe{constructor(n,s,r,i,o){super(n,s);a(this,"receiver");a(this,"args");a(this,"argumentSpan");this.receiver=r,this.args=i,this.argumentSpan=o}visit(n,s=null){return n.visitSafeCall(this,s)}},go=class extends oe{constructor(n,s,r,i){super(n,s);a(this,"tag");a(this,"template");this.tag=r,this.template=i}visit(n,s){return n.visitTaggedTemplateLiteral(this,s)}},yo=class extends oe{constructor(n,s,r,i){super(n,s);a(this,"elements");a(this,"expressions");this.elements=r,this.expressions=i}visit(n,s){return n.visitTemplateLiteral(this,s)}},Pa=class extends oe{constructor(n,s,r){super(n,s);a(this,"text");this.text=r}visit(n,s){return n.visitTemplateLiteralElement(this,s)}},vo=class extends oe{constructor(n,s,r){super(n,s);a(this,"expression");this.expression=r}visit(n,s){return n.visitParenthesizedExpression(this,s)}},Lc=class{constructor(e,n,s){a(this,"name");a(this,"span");a(this,"sourceSpan");this.name=e,this.span=n,this.sourceSpan=s}},ci=class extends oe{constructor(n,s,r,i){super(n,s);a(this,"parameters");a(this,"body");this.parameters=r,this.body=i}visit(n,s){return n.visitArrowFunction(this,s)}},La=class extends oe{constructor(n,s,r,i){super(n,s);a(this,"body");a(this,"flags");this.body=r,this.flags=i}visit(n,s){return n.visitRegularExpressionLiteral(this,s)}},Ye=class{constructor(e,n){a(this,"start");a(this,"end");this.start=e,this.end=n}},ve=class extends oe{constructor(n,s,r,i,o){super(new As(0,s===null?0:s.length),new Ye(i,s===null?i:i+s.length));a(this,"ast");a(this,"source");a(this,"location");a(this,"errors");this.ast=n,this.source=s,this.location=r,this.errors=o}visit(n,s=null){return n.visitASTWithSource?n.visitASTWithSource(this,s):this.ast.visit(n,s)}toString(){return`${this.source} in ${this.location}`}},So=class{constructor(e,n,s){a(this,"sourceSpan");a(this,"key");a(this,"value");this.sourceSpan=e,this.key=n,this.value=s}},Mc=class{constructor(e,n,s){a(this,"sourceSpan");a(this,"key");a(this,"value");this.sourceSpan=e,this.key=n,this.value=s}},bs=class{visit(e,n){e.visit(this,n)}visitUnary(e,n){this.visit(e.expr,n)}visitBinary(e,n){this.visit(e.left,n),this.visit(e.right,n)}visitChain(e,n){this.visitAll(e.expressions,n)}visitConditional(e,n){this.visit(e.condition,n),this.visit(e.trueExp,n),this.visit(e.falseExp,n)}visitPipe(e,n){this.visit(e.exp,n),this.visitAll(e.args,n)}visitImplicitReceiver(e,n){}visitThisReceiver(e,n){}visitInterpolation(e,n){this.visitAll(e.expressions,n)}visitKeyedRead(e,n){this.visit(e.receiver,n),this.visit(e.key,n)}visitLiteralArray(e,n){this.visitAll(e.expressions,n)}visitLiteralMap(e,n){this.visitAll(e.values,n)}visitLiteralPrimitive(e,n){}visitPrefixNot(e,n){this.visit(e.expression,n)}visitTypeofExpression(e,n){this.visit(e.expression,n)}visitVoidExpression(e,n){this.visit(e.expression,n)}visitNonNullAssert(e,n){this.visit(e.expression,n)}visitPropertyRead(e,n){this.visit(e.receiver,n)}visitSafePropertyRead(e,n){this.visit(e.receiver,n)}visitSafeKeyedRead(e,n){this.visit(e.receiver,n),this.visit(e.key,n)}visitCall(e,n){this.visit(e.receiver,n),this.visitAll(e.args,n)}visitSafeCall(e,n){this.visit(e.receiver,n),this.visitAll(e.args,n)}visitTemplateLiteral(e,n){for(let s=0;s<e.elements.length;s++){this.visit(e.elements[s],n);let r=s<e.expressions.length?e.expressions[s]:null;r!==null&&this.visit(r,n)}}visitTemplateLiteralElement(e,n){}visitTaggedTemplateLiteral(e,n){this.visit(e.tag,n),this.visit(e.template,n)}visitParenthesizedExpression(e,n){this.visit(e.expression,n)}visitArrowFunction(e,n){this.visit(e.body,n)}visitRegularExpressionLiteral(e,n){}visitSpreadElement(e,n){this.visit(e.expression,n)}visitEmptyExpr(e,n){}visitAll(e,n){for(let s of e)this.visit(s,n)}},qr=class{constructor(e,n,s,r,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,"isLegacyAnimation");a(this,"isAnimation");this.name=e,this.expression=n,this.type=s,this.sourceSpan=r,this.keySpan=i,this.valueSpan=o,this.isLiteral=this.type===pn.LITERAL_ATTR,this.isLegacyAnimation=this.type===pn.LEGACY_ANIMATION,this.isAnimation=this.type===pn.ANIMATION}},pn;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.LITERAL_ATTR=1]="LITERAL_ATTR",t[t.LEGACY_ANIMATION=2]="LEGACY_ANIMATION",t[t.TWO_WAY=3]="TWO_WAY",t[t.ANIMATION=4]="ANIMATION"})(pn||(pn={}));var De;(function(t){t[t.Regular=0]="Regular",t[t.LegacyAnimation=1]="LegacyAnimation",t[t.TwoWay=2]="TwoWay",t[t.Animation=3]="Animation"})(De||(De={}));var Ma=class{constructor(e,n,s,r,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=s,this.handler=r,this.sourceSpan=i,this.handlerSpan=o,this.keySpan=l}},Oc=class{constructor(e,n,s,r,i){a(this,"name");a(this,"value");a(this,"sourceSpan");a(this,"keySpan");a(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i}},z;(function(t){t[t.Property=0]="Property",t[t.Attribute=1]="Attribute",t[t.Class=2]="Class",t[t.Style=3]="Style",t[t.LegacyAnimation=4]="LegacyAnimation",t[t.TwoWay=5]="TwoWay",t[t.Animation=6]="Animation"})(z||(z={}));var Oa=class{constructor(e,n,s,r,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=s,this.value=r,this.unit=i,this.sourceSpan=o,this.keySpan=l,this.valueSpan=c}},hn;(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"})(hn||(hn={}));function vn(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 Ah(t){return vn(t)[1]==="ng-container"}function Fc(t){return vn(t)[1]==="ng-content"}function ME(t){return vn(t)[1]==="ng-template"}function Bc(t){return t===null?null:vn(t)[0]}function xa(t,e){return t?`:${t}:${e}`:e}var El=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")}},Wn=class{constructor(e,n){a(this,"value");a(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e){return e.visitText(this)}},gr=class{constructor(e,n,s){a(this,"value");a(this,"sourceSpan");a(this,"i18n");this.value=e,this.sourceSpan=n,this.i18n=s}visit(e){return e.visitBoundText(this)}},an=class{constructor(e,n,s,r,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=s,this.keySpan=r,this.valueSpan=i,this.i18n=o}visit(e){return e.visitTextAttribute(this)}},Pt=class t{constructor(e,n,s,r,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=s,this.value=r,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)}},Sn=class t{constructor(e,n,s,r,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=s,this.target=r,this.phase=i,this.sourceSpan=o,this.handlerSpan=l,this.keySpan=c}static fromParsedEvent(e){let n=e.type===De.Regular?e.targetOrPhase:null,s=e.type===De.LegacyAnimation?e.targetOrPhase:null;if(e.keySpan===void 0)throw new Error(`Unexpected state: keySpan must be defined for bound event but was not for ${e.name}: ${e.sourceSpan}`);return new t(e.name,e.type,e.handler,n,s,e.sourceSpan,e.handlerSpan,e.keySpan)}visit(e){return e.visitBoundEvent(this)}},ke=class{constructor(e,n,s,r,i,o,l,c,u,h,d,p,g){a(this,"name");a(this,"attributes");a(this,"inputs");a(this,"outputs");a(this,"directives");a(this,"children");a(this,"references");a(this,"isSelfClosing");a(this,"sourceSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");a(this,"isVoid");a(this,"i18n");this.name=e,this.attributes=n,this.inputs=s,this.outputs=r,this.directives=i,this.children=o,this.references=l,this.isSelfClosing=c,this.sourceSpan=u,this.startSourceSpan=h,this.endSourceSpan=d,this.isVoid=p,this.i18n=g}visit(e){return e.visitElement(this)}},On=class{constructor(e,n,s,r,i){a(this,"nameSpan");a(this,"sourceSpan");a(this,"prefetchSpan");a(this,"whenOrOnSourceSpan");a(this,"hydrateSpan");this.nameSpan=e,this.sourceSpan=n,this.prefetchSpan=s,this.whenOrOnSourceSpan=r,this.hydrateSpan=i}visit(e){return e.visitDeferredTrigger(this)}},Fa=class extends On{constructor(n,s,r,i,o){super(null,s,r,i,o);a(this,"value");this.value=n}},$c=class extends On{},Uc=class extends On{},ui=class extends On{},yr=class extends On{constructor(n,s,r,i,o,l){super(s,r,i,o,l);a(this,"reference");this.reference=n}},vr=class extends On{constructor(n,s,r,i,o,l){super(s,r,i,o,l);a(this,"delay");this.delay=n}},Sr=class extends On{constructor(n,s,r,i,o,l){super(s,r,i,o,l);a(this,"reference");this.reference=n}},_s=class extends On{constructor(n,s,r,i,o,l,c){super(r,i,o,l,c);a(this,"reference");a(this,"options");this.reference=n,this.options=s}},Lt=class{constructor(e,n,s,r){a(this,"nameSpan");a(this,"sourceSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");this.nameSpan=e,this.sourceSpan=n,this.startSourceSpan=s,this.endSourceSpan=r}},Eo=class extends Lt{constructor(n,s,r,i,o,l,c){super(r,i,o,l);a(this,"children");a(this,"minimumTime");a(this,"i18n");this.children=n,this.minimumTime=s,this.i18n=c}visit(n){return n.visitDeferredBlockPlaceholder(this)}},To=class extends Lt{constructor(n,s,r,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=s,this.minimumTime=r,this.i18n=u}visit(n){return n.visitDeferredBlockLoading(this)}},wo=class extends Lt{constructor(n,s,r,i,o,l){super(s,r,i,o);a(this,"children");a(this,"i18n");this.children=n,this.i18n=l}visit(n){return n.visitDeferredBlockError(this)}},Fn=class extends Lt{constructor(n,s,r,i,o,l,c,u,h,d,p,g,v){super(u,h,p,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=v,this.triggers=s,this.prefetchTriggers=r,this.hydrateTriggers=i,this.definedTriggers=Object.keys(s),this.definedPrefetchTriggers=Object.keys(r),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),Jr(n,this.children);let s=[this.placeholder,this.loading,this.error].filter(r=>r!==null);Jr(n,s)}visitTriggers(n,s,r){Jr(r,n.map(i=>s[i]))}},ks=class extends Lt{constructor(n,s,r,i,o,l,c,u){super(u,o,l,c);a(this,"expression");a(this,"groups");a(this,"unknownBlocks");a(this,"exhaustiveCheck");this.expression=n,this.groups=s,this.unknownBlocks=r,this.exhaustiveCheck=i}visit(n){return n.visitSwitchBlock(this)}},Vc=class extends Lt{constructor(n,s,r,i,o){super(o,s,r,i);a(this,"expression");this.expression=n}visit(n){return n.visitSwitchBlockCase(this)}},xo=class extends Lt{constructor(n,s,r,i,o,l,c){super(l,r,i,o);a(this,"cases");a(this,"children");a(this,"i18n");this.cases=n,this.children=s,this.i18n=c}visit(n){return n.visitSwitchBlockCaseGroup(this)}},Gc=class extends Lt{constructor(e,n,s,r){super(r,e,n,s)}visit(e){return e.visitSwitchExhaustiveCheck(this)}},Bn=class extends Lt{constructor(n,s,r,i,o,l,c,u,h,d,p,g,v){super(g,u,d,p);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=s,this.trackBy=r,this.trackKeywordSpan=i,this.contextVariables=o,this.children=l,this.empty=c,this.mainBlockSpan=h,this.i18n=v}visit(n){return n.visitForLoopBlock(this)}},Co=class extends Lt{constructor(n,s,r,i,o,l){super(o,s,r,i);a(this,"children");a(this,"i18n");this.children=n,this.i18n=l}visit(n){return n.visitForLoopBlockEmpty(this)}},Rs=class extends Lt{constructor(n,s,r,i,o){super(o,s,r,i);a(this,"branches");this.branches=n}visit(n){return n.visitIfBlock(this)}},vs=class extends Lt{constructor(n,s,r,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=s,this.expressionAlias=r,this.i18n=u}visit(n){return n.visitIfBlockBranch(this)}},Ba=class{constructor(e,n,s){a(this,"name");a(this,"sourceSpan");a(this,"nameSpan");this.name=e,this.sourceSpan=n,this.nameSpan=s}visit(e){return e.visitUnknownBlock(this)}},Tn=class{constructor(e,n,s,r,i){a(this,"name");a(this,"value");a(this,"sourceSpan");a(this,"nameSpan");a(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=s,this.nameSpan=r,this.valueSpan=i}visit(e){return e.visitLetDeclaration(this)}},_n=class{constructor(e,n,s,r,i,o,l,c,u,h,d,p,g,v){a(this,"componentName");a(this,"tagName");a(this,"fullName");a(this,"attributes");a(this,"inputs");a(this,"outputs");a(this,"directives");a(this,"children");a(this,"references");a(this,"isSelfClosing");a(this,"sourceSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");a(this,"i18n");this.componentName=e,this.tagName=n,this.fullName=s,this.attributes=r,this.inputs=i,this.outputs=o,this.directives=l,this.children=c,this.references=u,this.isSelfClosing=h,this.sourceSpan=d,this.startSourceSpan=p,this.endSourceSpan=g,this.i18n=v}visit(e){return e.visitComponent(this)}},Ei=class{constructor(e,n,s,r,i,o,l,c,u){a(this,"name");a(this,"attributes");a(this,"inputs");a(this,"outputs");a(this,"references");a(this,"sourceSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");a(this,"i18n");this.name=e,this.attributes=n,this.inputs=s,this.outputs=r,this.references=i,this.sourceSpan=o,this.startSourceSpan=l,this.endSourceSpan=c,this.i18n=u}visit(e){return e.visitDirective(this)}},de=class{constructor(e,n,s,r,i,o,l,c,u,h,d,p,g,v){a(this,"tagName");a(this,"attributes");a(this,"inputs");a(this,"outputs");a(this,"directives");a(this,"templateAttrs");a(this,"children");a(this,"references");a(this,"variables");a(this,"isSelfClosing");a(this,"sourceSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");a(this,"i18n");this.tagName=e,this.attributes=n,this.inputs=s,this.outputs=r,this.directives=i,this.templateAttrs=o,this.children=l,this.references=c,this.variables=u,this.isSelfClosing=h,this.sourceSpan=d,this.startSourceSpan=p,this.endSourceSpan=g,this.i18n=v}visit(e){return e.visitTemplate(this)}},Er=class{constructor(e,n,s,r,i,o,l,c){a(this,"selector");a(this,"attributes");a(this,"children");a(this,"isSelfClosing");a(this,"sourceSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");a(this,"i18n");a(this,"name","ng-content");this.selector=e,this.attributes=n,this.children=s,this.isSelfClosing=r,this.sourceSpan=i,this.startSourceSpan=o,this.endSourceSpan=l,this.i18n=c}visit(e){return e.visitContent(this)}},Ht=class{constructor(e,n,s,r,i){a(this,"name");a(this,"value");a(this,"sourceSpan");a(this,"keySpan");a(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i}visit(e){return e.visitVariable(this)}},Zn=class{constructor(e,n,s,r,i){a(this,"name");a(this,"value");a(this,"sourceSpan");a(this,"keySpan");a(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i}visit(e){return e.visitReference(this)}},Xu=class{constructor(e,n,s,r){a(this,"vars");a(this,"placeholders");a(this,"sourceSpan");a(this,"i18n");this.vars=e,this.placeholders=n,this.sourceSpan=s,this.i18n=r}visit(e){return e.visitIcu(this)}},$n=class{constructor(e,n,s,r){a(this,"tagNames");a(this,"bindings");a(this,"listeners");a(this,"sourceSpan");if(this.tagNames=e,this.bindings=n,this.listeners=s,this.sourceSpan=r,e.length===0)throw new Error("HostElement must have at least one tag name.")}visit(){throw new Error("HostElement cannot be visited")}};function Jr(t,e){let n=[];if(t.visit)for(let s of e)t.visit(s);else for(let s of e){let r=s.visit(t);r&&n.push(r)}return n}var vt=class{constructor(e,n,s,r,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=s,this.meaning=r,this.description=i,this.customId=o,this.id=this.customId,this.messageString=OE(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=[]}},Li=class{constructor(e,n){a(this,"value");a(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e,n){return e.visitText(this,n)}},Xn=class{constructor(e,n){a(this,"children");a(this,"sourceSpan");this.children=e,this.sourceSpan=n}visit(e,n){return e.visitContainer(this,n)}},$a=class{constructor(e,n,s,r,i){a(this,"expression");a(this,"type");a(this,"cases");a(this,"sourceSpan");a(this,"expressionPlaceholder");this.expression=e,this.type=n,this.cases=s,this.sourceSpan=r,this.expressionPlaceholder=i}visit(e,n){return e.visitIcu(this,n)}},Ps=class{constructor(e,n,s,r,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=s,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=l,this.startSourceSpan=c,this.endSourceSpan=u}visit(e,n){return e.visitTagPlaceholder(this,n)}},Ao=class{constructor(e,n,s){a(this,"value");a(this,"name");a(this,"sourceSpan");this.value=e,this.name=n,this.sourceSpan=s}visit(e,n){return e.visitPlaceholder(this,n)}},pi=class{constructor(e,n,s){a(this,"value");a(this,"name");a(this,"sourceSpan");a(this,"previousMessage");this.value=e,this.name=n,this.sourceSpan=s}visit(e,n){return e.visitIcuPlaceholder(this,n)}},Ls=class{constructor(e,n,s,r,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=s,this.closeName=r,this.children=i,this.sourceSpan=o,this.startSourceSpan=l,this.endSourceSpan=c}visit(e,n){return e.visitBlockPlaceholder(this,n)}};function OE(t){let e=new Hc;return t.map(s=>s.visit(e)).join("")}var Hc=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){let n=e.children.map(s=>s.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(s=>s.visit(this)).join("");return`{$${e.startName}}${n}{$${e.closeName}}`}};var FE=class{visitTag(e){let n=this._serializeAttributes(e.attrs);if(e.children.length==0)return`<${e.name}${n}/>`;let s=e.children.map(r=>r.visit(this));return`<${e.name}${n}>${s.join("")}</${e.name}>`}visitText(e){return e.value}visitDeclaration(e){return`<?xml${this._serializeAttributes(e.attrs)} ?>`}_serializeAttributes(e){let n=Object.keys(e).map(s=>`${s}="${e[s]}"`).join(" ");return n.length>0?" "+n:""}visitDoctype(e){return`<!DOCTYPE ${e.rootTag} [
|
|
9
9
|
${e.dtd}
|
|
10
|
-
]>`}},
|
|
11
|
-
`&&++l==n)););for(o=0,l=0;o<e&&i<
|
|
12
|
-
`&&++l==n)););return{before:
|
|
10
|
+
]>`}},yO=new FE;function BE(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var Md="i18n",qc="i18n-",$E="VAR_";function Od(t){return t===Md||t.startsWith(qc)}function UE(t){return t.attrs.some(e=>Od(e.name))}function Fd(t){return t.nodes[0]}function Yu(t={},e){let n={};return t&&Object.keys(t).length&&Object.keys(t).forEach(s=>n[Ko(s,e)]=t[s]),n}function Ko(t,e=!0){let n=BE(t);if(!e)return n;let s=n.split("_");if(s.length===1)return t.toLowerCase();let r;/^\d+$/.test(s[s.length-1])&&(r=s.pop());let i=s.shift().toLowerCase();return s.length&&(i+=s.map(o=>o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join("")),r?`${i}_${r}`:i}var VE=/[-.]/,Qu="_t",qt="ctx",Ti="rf";function Bd(t,e){let n=null;return()=>(n||(t(new Ve(Qu,void 0,Et)),n=J(e)),n)}function Wr(t){return Array.isArray(t)?ae(t.map(Wr)):S(t,tn)}function Ih(t,e){let n=Object.getOwnPropertyNames(t);return n.length===0?null:xt(n.map(s=>{let r=t[s],i,o,l,c;if(typeof r=="string")i=s,l=s,o=r,c=Wr(o);else{l=s,i=r.classPropertyName,o=r.bindingPropertyName;let u=o!==i,h=r.transformFunction!==null,d=Hr.None;if(r.isSignal&&(d|=Hr.SignalBased),h&&(d|=Hr.HasDecoratorInputTransform),e&&(u||h||d!==Hr.None)){let p=[S(d),Wr(o)];(u||h)&&(p.push(Wr(i)),h&&p.push(r.transformFunction)),c=ae(p)}else c=Wr(o)}return{key:l,quoted:VE.test(l),value:c}}))}var Ms=class{constructor(){a(this,"values",[])}set(e,n){if(n){let s=this.values.find(r=>r.key===e);s?s.value=n:this.values.push({key:e,value:n,quoted:!1})}}toLiteralMap(){return xt(this.values)}};function $d(t){let e=t instanceof ke?t.name:"ng-template",n=GE(t),s=new fn,r=vn(e)[1];return s.setElement(r),Object.getOwnPropertyNames(n).forEach(i=>{let o=vn(i)[1],l=n[i];s.addAttribute(o,l),i.toLowerCase()==="class"&&l.trim().split(/\s+/).forEach(u=>s.addClassName(u))}),s}function GE(t){let e={};return t instanceof de&&t.tagName!=="ng-template"?t.templateAttrs.forEach(n=>e[n.name]=""):(t.attributes.forEach(n=>{Od(n.name)||(e[n.name]=n.value)}),t.inputs.forEach(n=>{(n.type===z.Property||n.type===z.TwoWay)&&(e[n.name]="")}),t.outputs.forEach(n=>{e[n.name]=""})),e}function Wc(t,e){let n=null,s={name:t.name,type:t.type,typeArgumentCount:t.typeArgumentCount,deps:[],target:gt.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=fs(me(x({},s),{delegate:t.useClass.expression,delegateDeps:c,delegateType:po.Class})):l?n=fs(s):n={statements:[],expression:Nh(t.type.value,t.useClass.expression,e)}}else t.useFactory!==void 0?t.deps!==void 0?n=fs(me(x({},s),{delegate:t.useFactory,delegateDeps:t.deps||[],delegateType:po.Function})):n={statements:[],expression:Rt([],t.useFactory.callFn([]))}:t.useValue!==void 0?n=fs(me(x({},s),{expression:t.useValue.expression})):t.useExisting!==void 0?n=fs(me(x({},s),{expression:O(m.inject).callFn([t.useExisting.expression])})):n={statements:[],expression:Nh(t.type.value,t.type.value,e)};let r=t.type.value,i=new Ms;return i.set("token",r),i.set("factory",n.expression),t.providedIn.expression.value!==null&&i.set("providedIn",NE(t.providedIn)),{expression:O(m.\u0275\u0275defineInjectable).callFn([i.toLiteralMap()],void 0,!0),type:HE(t),statements:n.statements}}function HE(t){return new _t(O(m.InjectableDeclaration,[Sl(t.type.type,t.typeArgumentCount)]))}function Nh(t,e,n){if(t.node===e.node)return e.prop("\u0275fac");if(!n)return Dh(e);let s=O(m.resolveForwardRef).callFn([e]);return Dh(s)}function Dh(t){let e=new Oe("__ngFactoryType__",Et);return Rt([e],t.prop("\u0275fac").callFn([J(e.name)]))}var Xe=0,qE=8,Ju=9,ir=10,Ud=11,Vd=12,Zu=13,Gd=32,jc=33,Io=34,Hd=35,Tl=36,WE=37,Ua=38,No=39,yt=40,Be=41,bh=42,qd=43,rt=44,Va=45,Zs=46,Xt=47,In=58,Dt=59,Zr=60,ze=61,$t=62,_h=63,ep=48,jE=55,Wd=57,Ws=65,zE=69,KE=70,XE=88,wi=90,kn=91,or=92,jn=93,YE=94,js=95,Tr=97,QE=98,JE=101,tp=102,jd=110,zd=114,Kd=116,Xd=117,Yd=118,Qd=120,Xo=122,Jt=123,kh=124,mt=125,Jd=160,Mr=64,zc=96;function Do(t){return t>=Ju&&t<=Gd||t==Jd}function Yt(t){return ep<=t&&t<=Wd}function Os(t){return t>=Tr&&t<=Xo||t>=Ws&&t<=wi}function ZE(t){return t>=Tr&&t<=tp||t>=Ws&&t<=KE||Yt(t)}function Ga(t){return t===ir||t===Zu}function Rh(t){return ep<=t&&t<=jE}function Ki(t){return t===No||t===Io||t===zc}var wr=class t{constructor(e,n,s,r){a(this,"file");a(this,"offset");a(this,"line");a(this,"col");this.file=e,this.offset=n,this.line=s,this.col=r}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let n=this.file.content,s=n.length,r=this.offset,i=this.line,o=this.col;for(;r>0&&e<0;)if(r--,e++,n.charCodeAt(r)==ir){i--;let c=n.substring(0,r-1).lastIndexOf(String.fromCharCode(ir));o=c>0?r-c:r}else o--;for(;r<s&&e>0;){let l=n.charCodeAt(r);r++,e--,l==ir?(i++,o=0):o++}return new t(this.file,r,i,o)}getContext(e,n){let s=this.file.content,r=this.offset;if(r!=null){r>s.length-1&&(r=s.length-1);let i=r,o=0,l=0;for(;o<e&&r>0&&(r--,o++,!(s[r]==`
|
|
11
|
+
`&&++l==n)););for(o=0,l=0;o<e&&i<s.length-1&&(i++,o++,!(s[i]==`
|
|
12
|
+
`&&++l==n)););return{before:s.substring(r,this.offset),after:s.substring(this.offset,i+1)}}return null}},Fs=class{constructor(e,n){a(this,"content");a(this,"url");this.content=e,this.url=n}},H=class{constructor(e,n,s=e,r=null){a(this,"start");a(this,"end");a(this,"fullStart");a(this,"details");this.start=e,this.end=n,this.fullStart=s,this.details=r}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},zn;(function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"})(zn||(zn={}));var G=class extends Error{constructor(n,s,r=zn.ERROR,i){super(s);a(this,"span");a(this,"msg");a(this,"level");a(this,"relatedError");this.span=n,this.msg=s,this.level=r,this.relatedError=i,Object.setPrototypeOf(this,new.target.prototype)}contextualMessage(){let n=this.span.start.getContext(100,3);return n?`${this.msg} ("${n.before}[${zn[this.level]} ->]${n.after}")`:this.msg}toString(){let n=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${n}`}};function eT(t,e,n){let s=`in ${t} ${e} in ${n}`,r=new Fs("",s);return new H(new wr(r,-1,-1,-1),new wr(r,-1,-1,-1))}var tT=0;function nT(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=Rd(e);return n.indexOf("(")>=0?(n=`anonymous_${tT++}`,e.__anonymousType=n):n=er(n),n}function er(t){return t.replace(/\W/g,"_")}var Ph='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',Kc=class extends Pc{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 s=e.template.elements;return e.tag.visitExpression(this,n),n.print(e,`(${Ph}(`),n.print(e,`[${s.map(r=>nr(r.text,!1)).join(", ")}], `),n.print(e,`[${s.map(r=>nr(r.rawText,!1)).join(", ")}])`),e.template.expressions.forEach(r=>{n.print(e,", "),r.visitExpression(this,n)}),n.print(e,")"),null}visitTemplateLiteralExpr(e,n){n.print(e,"`");for(let s=0;s<e.elements.length;s++){e.elements[s].visitExpression(this,n);let r=s<e.expressions.length?e.expressions[s]:null;r!==null&&(n.print(r,"${"),r.visitExpression(this,n),n.print(r,"}"))}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 s=e.body instanceof rn;s&&n.print(e,"("),e.body.visitExpression(this,n),s&&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(${Ph}(`);let s=[e.serializeI18nHead()];for(let r=1;r<e.messageParts.length;r++)s.push(e.serializeI18nTemplatePart(r));return n.print(e,`[${s.map(r=>nr(r.cooked,!1)).join(", ")}], `),n.print(e,`[${s.map(r=>nr(r.raw,!1)).join(", ")}])`),e.expressions.forEach(r=>{n.print(e,", "),r.visitExpression(this,n)}),n.print(e,")"),null}_visitParams(e,n){this.visitAllObjects(s=>n.print(null,s.name),e,n,",")}},pa;function sT(){if(pa===void 0){let t=zi.trustedTypes;if(pa=null,t)try{pa=t.createPolicy("angular#unsafe-jit",{createScript:e=>e})}catch(e){}}return pa}function rT(t){var e;return((e=sT())==null?void 0:e.createScript(t))||t}function Lh(...t){if(!zi.trustedTypes)return new Function(...t);let e=t.slice(0,-1).join(","),n=t[t.length-1],s=`(function anonymous(${e}
|
|
13
13
|
) { ${n}
|
|
14
|
-
})`,
|
|
15
|
-
//# sourceURL=${e}`,o=[],l=[];for(let u in
|
|
14
|
+
})`,r=zi.eval(rT(s));return r.bind===void 0?new Function(...t):(r.toString=()=>s,r.bind(zi))}var Xc=class{evaluateStatements(e,n,s,r){let i=new Yc(s),o=Rc.createRoot();return n.length>0&&!iT(n[0])&&(n=[S("use strict").toStmt(),...n]),i.visitAllStatements(n,o),i.createReturnStmt(o),this.evaluateCode(e,o,i.getArgs(),r)}evaluateCode(e,n,s,r){let i=`"use strict";${n.toSource()}
|
|
15
|
+
//# sourceURL=${e}`,o=[],l=[];for(let u in s)l.push(s[u]),o.push(u);if(r){let u=Lh(...o.concat("return null;")).toString(),h=u.slice(0,u.indexOf("return null;")).split(`
|
|
16
16
|
`).length-1;i+=`
|
|
17
|
-
${n.toSourceMapGenerator(e,h).toJsComment()}`}let c=Lh(...o.concat(i));return this.executeFunction(c,l)}executeFunction(e,n){return e(...n)}},Yc=class extends
|
|
18
|
-
|
|
19
|
-
`+s,e.trim()}_extractUnscopedRulesFromCssText(e){let n="",r;for(Mh.lastIndex=0;(r=Mh.exec(e))!==null;){let s=r[0].replace(r[2],"").replace(r[1],r[4]);n+=s+`
|
|
17
|
+
${n.toSourceMapGenerator(e,h).toJsComment()}`}let c=Lh(...o.concat(i));return this.executeFunction(c,l)}executeFunction(e,n){return e(...n)}},Yc=class extends Kc{constructor(n){super();a(this,"refResolver");a(this,"_evalArgNames",[]);a(this,"_evalArgValues",[]);a(this,"_evalExportedVars",[]);this.refResolver=n}createReturnStmt(n){new be(new rn(this._evalExportedVars.map(r=>new ws(r,J(r),!1)))).visitStatement(this,n)}getArgs(){let n={};for(let s=0;s<this._evalArgNames.length;s++)n[this._evalArgNames[s]]=this._evalArgValues[s];return n}visitExternalExpr(n,s){return this._emitReferenceToExternal(n,this.refResolver.resolveExternalReference(n.value),s),null}visitWrappedNodeExpr(n,s){return this._emitReferenceToExternal(n,n.node,s),null}visitDeclareVarStmt(n,s){return n.hasModifier(Ue.Exported)&&this._evalExportedVars.push(n.name),super.visitDeclareVarStmt(n,s)}visitDeclareFunctionStmt(n,s){return n.hasModifier(Ue.Exported)&&this._evalExportedVars.push(n.name),super.visitDeclareFunctionStmt(n,s)}_emitReferenceToExternal(n,s,r){let i=this._evalArgValues.indexOf(s);if(i===-1){i=this._evalArgValues.length,this._evalArgValues.push(s);let o=nT({reference:s})||"val";this._evalArgNames.push(`jit_${o}_${i}`)}r.print(n,this._evalArgNames[i])}};function iT(t){return t.isEquivalent(S("use strict").toStmt())}function Qc(t){let e=new Ms;t.providers!==null&&e.set("providers",t.providers),t.imports.length>0&&e.set("imports",ae(t.imports));let n=O(m.defineInjector).callFn([e.toLiteralMap()],void 0,!0),s=oT(t);return{expression:n,type:s,statements:[]}}function oT(t){return new _t(O(m.InjectorDeclaration,[new _t(t.type.type)]))}var Jc=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]}},hi;(function(t){t[t.Inline=0]="Inline",t[t.SideEffect=1]="SideEffect",t[t.Omit=2]="Omit"})(hi||(hi={}));var Dn;(function(t){t[t.Global=0]="Global",t[t.Local=1]="Local"})(Dn||(Dn={}));function Zd(t){let e=[],n=new Ms;if(n.set("type",t.type.value),t.kind===Dn.Global&&t.bootstrap.length>0&&n.set("bootstrap",sr(t.bootstrap,t.containsForwardDecls)),t.selectorScopeMode===hi.Inline)t.declarations.length>0&&n.set("declarations",sr(t.declarations,t.containsForwardDecls)),t.imports.length>0&&n.set("imports",sr(t.imports,t.containsForwardDecls)),t.exports.length>0&&n.set("exports",sr(t.exports,t.containsForwardDecls));else if(t.selectorScopeMode===hi.SideEffect){let i=cT(t);i!==null&&e.push(i)}t.schemas!==null&&t.schemas.length>0&&n.set("schemas",ae(t.schemas.map(i=>i.value))),t.id!==null&&(n.set("id",t.id),e.push(O(m.registerNgModuleType).callFn([t.type.value,t.id]).toStmt()));let s=O(m.defineNgModule).callFn([n.toLiteralMap()],void 0,!0),r=lT(t);return{expression:s,type:r,statements:e}}function aT(t){let e=new Ms;return e.set("type",new W(t.type)),t.bootstrap!==void 0&&e.set("bootstrap",new W(t.bootstrap)),t.declarations!==void 0&&e.set("declarations",new W(t.declarations)),t.imports!==void 0&&e.set("imports",new W(t.imports)),t.exports!==void 0&&e.set("exports",new W(t.exports)),t.schemas!==void 0&&e.set("schemas",new W(t.schemas)),t.id!==void 0&&e.set("id",new W(t.id)),O(m.defineNgModule).callFn([e.toLiteralMap()])}function lT(t){if(t.kind===Dn.Local)return new _t(t.type.value);let{type:e,declarations:n,exports:s,imports:r,includeImportTypes:i,publicDeclarationTypes:o}=t;return new _t(O(m.NgModuleDeclaration,[new _t(e.type),o===null?Zl(n):uT(o),i?Zl(r):mn,Zl(s)]))}function cT(t){let e=new Ms;if(t.kind===Dn.Global?t.declarations.length>0&&e.set("declarations",sr(t.declarations,t.containsForwardDecls)):t.declarationsExpression&&e.set("declarations",t.declarationsExpression),t.kind===Dn.Global?t.imports.length>0&&e.set("imports",sr(t.imports,t.containsForwardDecls)):t.importsExpression&&e.set("imports",t.importsExpression),t.kind===Dn.Global?t.exports.length>0&&e.set("exports",sr(t.exports,t.containsForwardDecls)):t.exportsExpression&&e.set("exports",t.exportsExpression),t.kind===Dn.Local&&t.bootstrapExpression&&e.set("bootstrap",t.bootstrapExpression),Object.keys(e.values).length===0)return null;let n=new ot(O(m.setNgModuleScope),[t.type.value,e.toLiteralMap()]),s=AE(n),r=new bn([],[s.toStmt()]);return new ot(r,[]).toStmt()}function Zl(t){let e=t.map(n=>Si(n.type));return t.length>0?je(ae(e)):mn}function uT(t){let e=t.map(n=>Si(n));return t.length>0?je(ae(e)):mn}function Zc(t){var r;let e=[];e.push({key:"name",value:S((r=t.pipeName)!=null?r:t.name),quoted:!1}),e.push({key:"type",value:t.type.value,quoted:!1}),e.push({key:"pure",value:S(t.pure),quoted:!1}),t.isStandalone===!1&&e.push({key:"standalone",value:S(!1),quoted:!1});let n=O(m.definePipe).callFn([xt(e)],void 0,!0),s=pT(t);return{expression:n,type:s,statements:[]}}function pT(t){return new _t(O(m.PipeDeclaration,[Sl(t.type.type,t.typeArgumentCount),new _t(new _e(t.pipeName)),new _t(new _e(t.isStandalone))]))}var Bs;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(Bs||(Bs={}));var hT=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"]),fT=["@media","@supports","@document","@layer","@container","@scope","@starting-style"],eu=class{constructor(){a(this,"_animationDeclarationKeyframesRe",/(^|\s+|,)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g);a(this,"_safeSelector");a(this,"_shouldScopeIndicator")}shimCssText(e,n,s=""){let r=[];e=e.replace(bT,l=>{var c;if(l.match(_T))r.push(l);else{let u=l.match(DT);r.push((c=u==null?void 0:u.join(""))!=null?c:"")}return sp}),e=this._insertDirectives(e);let i=this._scopeCssText(e,n,s),o=0;return i.replace(kT,()=>r[o++])}_insertDirectives(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)}_scopeKeyframesRelatedCss(e,n){let s=new Set,r=ha(e,i=>this._scopeLocalKeyframeDeclarations(i,n,s));return ha(r,i=>this._scopeAnimationRule(i,n,s))}_scopeLocalKeyframeDeclarations(e,n,s){return me(x({},e),{selector:e.selector.replace(/(^@(?:-webkit-)?keyframes(?:\s+))(['"]?)(.+)\2(\s*)$/,(r,i,o,l,c)=>(s.add(Fh(l,o)),`${i}${o}${n}_${l}${o}${c}`))})}_scopeAnimationKeyframe(e,n,s){return e.replace(/^(\s*)(['"]?)(.+?)\2(\s*)$/,(r,i,o,l,c)=>(l=`${s.has(Fh(l,o))?n+"_":""}${l}`,`${i}${o}${l}${o}${c}`))}_scopeAnimationRule(e,n,s){let r=e.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation\s*:\s*),*([^;]+)/g,(i,o,l)=>o+l.replace(this._animationDeclarationKeyframesRe,(c,u,h="",d,p)=>d?`${u}${this._scopeAnimationKeyframe(`${h}${d}${h}`,n,s)}`:hT.has(p)?c:`${u}${this._scopeAnimationKeyframe(p,n,s)}`));return r=r.replace(/((?:^|\s+|;)(?:-webkit-)?animation-name(?:\s*):(?:\s*))([^;]+)/g,(i,o,l)=>`${o}${l.split(",").map(c=>this._scopeAnimationKeyframe(c,n,s)).join(",")}`),me(x({},e),{content:r})}_insertPolyfillDirectivesInCssText(e){return e.replace(mT,function(...n){return n[2]+"{"})}_insertPolyfillRulesInCssText(e){return e.replace(gT,(...n)=>{let s=n[0].replace(n[1],"").replace(n[2],"");return n[4]+s})}_scopeCssText(e,n,s){let r=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,s)),e=e+`
|
|
18
|
+
`+r,e.trim()}_extractUnscopedRulesFromCssText(e){let n="",s;for(Mh.lastIndex=0;(s=Mh.exec(e))!==null;){let r=s[0].replace(s[2],"").replace(s[1],s[4]);n+=r+`
|
|
20
19
|
|
|
21
|
-
`}return n}_convertColonHost(e){return e.replace(ET,(n,r,s)=>{if(r){let i=[];for(let o of this._splitOnTopLevelCommas(r,!0)){let l=o.trim();if(!l)break;let c=ur+l.replace(Ga,"")+s;i.push(c)}return i.join(",")}else return ur+s})}*_splitOnTopLevelCommas(e,n){let r=e.length,s=0,i=0;for(let o=0;o<r;o++){let l=e.charCodeAt(o);if(l===yt)s++;else if(l===Be){if(s--,s<0&&n){yield e.slice(i,o);return}}else l===st&&s===0&&(yield e.slice(i,o),i=o+1)}yield e.slice(i)}_convertColonHostContext(e){let n=[];for(let r of this._splitOnTopLevelCommas(e,!1))n.push(this._convertColonHostContextInSelectorPart(r));return n.join(",")}_convertColonHostContextInSelectorPart(e){return e.replace(xT,(n,r)=>{let s=[[]],i=n.indexOf($s);for(;i!==-1;){let o=n.substring(i+$s.length);if(!o||o[0]!=="("){n=o,i=n.indexOf($s);continue}let l=[],c=0;for(let h of this._splitOnTopLevelCommas(o.substring(1),!0)){c=c+h.length+1;let d=h.trim();d&&l.push(d)}let u=s.length;GT(s,l.length);for(let h=0;h<l.length;h++)for(let d=0;d<u;d++)s[d+h*u].push(l[h]);n=o.substring(c+1),i=n.indexOf($s)}return s.map(o=>VT(o,n,r)).join(", ")})}_convertShadowDOMSelectors(e){return CT.reduce((n,r)=>n.replace(r," "),e)}_scopeSelectors(e,n,r){return ha(e,s=>{let i=s.selector,o=s.content;return s.selector[0]!=="@"?i=this._scopeSelector({selector:i,scopeSelector:n,hostSelector:r,isParentSelector:!0}):fT.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 bo(i,o)})}_stripScopingSelectors(e){return ha(e,n=>{let r=n.selector.replace(Oh," ").replace(ec," ");return new bo(r,n.content)})}_scopeSelector({selector:e,scopeSelector:n,hostSelector:r,isParentSelector:s=!1}){let i=/ ?,(?!(?:[^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\))) ?/;return e.split(i).map(o=>o.split(Oh)).map(o=>{let[l,...c]=o;return[(h=>this._selectorNeedsScoping(h,n)?this._applySelectorScope({selector:h,scopeSelector:n,hostSelector:r,isParentSelector:s}):h)(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+")"+AT,"m")}_applySimpleSelectorScope(e,n,r){if(qs.lastIndex=0,qs.test(e)){let s=`[${r}]`,i=e;for(;i.match(ec);)i=i.replace(ec,(o,l)=>l.replace(/([^:\)]*)(:*)(.*)/,(c,u,h,d)=>u+s+h+d));return i.replace(qs,s)}return n+" "+e}_applySelectorScope({selector:e,scopeSelector:n,hostSelector:r,isParentSelector:s}){var E;let i=/\[is=([^\]]*)\]/g;n=n.replace(i,(N,...D)=>D[0]);let o=`[${n}]`,l=N=>{let D=N.trim();if(!D)return N;if(N.includes(ur)){if(D=this._applySimpleSelectorScope(N,n,r),!N.match(wT)){let[b,P,L,ne]=D.match(/([^:]*)(:*)([\s\S]*)/);D=P+o+L+ne}}else{let b=N.replace(qs,"");if(b.length>0){let P=b.match(/([^:]*)(:*)([\s\S]*)/);P&&(D=P[1]+o+P[2]+P[3])}}return D},c=N=>{let D="",b=[],P;for(;(P=Pi.exec(N))!==null;){let L=1,ne=Pi.lastIndex;for(;ne<N.length;){let se=N[ne];if(ne++,se==="("){L++;continue}if(se===")"){if(L--,L===0)break;continue}}b.push(`${P[0]}${N.slice(Pi.lastIndex,ne)}`),Pi.lastIndex=ne}return b.join("")===N?D=b.map(L=>{var Ie;let[ne]=(Ie=L.match(Pi))!=null?Ie:[],se=L.slice(ne==null?void 0:ne.length,-1);se.includes(ur)&&(this._shouldScopeIndicator=!0);let Ge=this._scopeSelector({selector:se,scopeSelector:n,hostSelector:r});return`${ne}${Ge})`}).join(""):(this._shouldScopeIndicator=this._shouldScopeIndicator||N.includes(ur),D=this._shouldScopeIndicator?l(N):N),D};s&&(this._safeSelector=new tu(e),e=this._safeSelector.content());let u="",h=0,d,p=/( |>|\+|~(?!=))(?!([^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\)))\s*/g,g=e.includes(ur);for((s||this._shouldScopeIndicator)&&(this._shouldScopeIndicator=!g);(d=p.exec(e))!==null;){let N=d[1],D=e.slice(h,d.index);if(D.match(/__esc-ph-(\d+)__/)&&((E=e[d.index+1])!=null&&E.match(/[a-fA-F\d]/)))continue;let b=c(D);u+=`${b} ${N} `,h=p.lastIndex}let v=e.substring(h);return u+=c(v),this._safeSelector.restore(u)}_insertPolyfillHostInCssText(e){return e.replace(IT,$s).replace(NT,Ga)}},tu=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(ST,(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})}},dT="(:(where|is)\\()?",Pi=/:(where|is)\(/gi,mT=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,gT=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Mh=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Ga="-shadowcsshost",$s="-shadowcsscontext",nu="[^)(]*",yT=String.raw`(?:\(${nu}\)|${nu})+?`,vT=String.raw`(?:\(${yT}\)|${nu})+?`,np=String.raw`(?:\((${vT})\))`,ST=new RegExp(String.raw`(:nth-[-\w]+)`+np,"g"),ET=new RegExp(Ga+np+"?([^,{]*)","gim"),TT=$s+np+"?([^{]*)",xT=new RegExp(`${dT}(${TT})`,"gim"),ur=Ga+"-no-combinator",wT=new RegExp(`${ur}(?![^(]*\\))`,"g"),ec=/-shadowcsshost-no-combinator([^\s,]*)/,CT=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Oh=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,AT="([>\\s~+[.,{:][\\s\\S]*)?$",qs=/-shadowcsshost/gim,NT=/:host/gim,IT=/:host-context/gim,DT=/\r?\n/g,bT=/\/\*[\s\S]*?\*\//g,_T=/\/\*\s*#\s*source(Mapping)?URL=/g,rp="%COMMENT%",kT=new RegExp(rp,"g"),tc="%BLOCK%",RT=new RegExp(`(\\s*(?:${rp}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),PT=new Map([["{","}"]]),em="%COMMA_IN_PLACEHOLDER%",tm="%SEMI_IN_PLACEHOLDER%",nm="%COLON_IN_PLACEHOLDER%",LT=new RegExp(em,"g"),MT=new RegExp(tm,"g"),OT=new RegExp(nm,"g"),bo=class{constructor(e,n){a(this,"selector");a(this,"content");this.selector=e,this.content=n}};function ha(t,e){let n=$T(t),r=FT(n,PT,tc),s=0,i=r.escapedString.replace(RT,(...o)=>{let l=o[2],c="",u=o[4],h="";u&&u.startsWith("{"+tc)&&(c=r.blocks[s++],u=u.substring(tc.length+1),h="{");let d=e(new bo(l,c));return`${o[1]}${d.selector}${o[3]}${h}${d.content}${u}`});return UT(i)}var ru=class{constructor(e,n){a(this,"escapedString");a(this,"blocks");this.escapedString=e,this.blocks=n}};function FT(t,e,n){let r=[],s=[],i=0,o=0,l=-1,c,u;for(let h=0;h<t.length;h++){let d=t[h];d==="\\"?h++:d===u?(i--,i===0&&(s.push(t.substring(l,h)),r.push(n),o=h,l=-1,c=u=void 0)):d===c?i++:i===0&&e.has(d)&&(c=d,u=e.get(d),i=1,l=h+1,r.push(t.substring(o,l)))}return l!==-1?(s.push(t.substring(l)),r.push(n)):r.push(t.substring(o)),new ru(r.join(""),s)}var BT={";":tm,",":em,":":nm};function $T(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=BT[s];i&&(e=`${e.substr(0,r)}${i}${e.substr(r+1)}`,r+=i.length-1)}else(s==="'"||s==='"')&&(n=s)}return e}function UT(t){let e=t.replace(LT,",");return e=e.replace(MT,";"),e=e.replace(OT,":"),e}function Fh(t,e){return e?t.replace(/((?:^|[^\\])(?:\\\\)*)\\(?=['"])/g,"$1"):t}function VT(t,e,n=""){let r=ur;qs.lastIndex=0;let s=qs.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 GT(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.ConditionalCreate=11]="ConditionalCreate",t[t.ConditionalBranchCreate=12]="ConditionalBranchCreate",t[t.Conditional=13]="Conditional",t[t.EnableBindings=14]="EnableBindings",t[t.Text=15]="Text",t[t.Listener=16]="Listener",t[t.InterpolateText=17]="InterpolateText",t[t.Binding=18]="Binding",t[t.Property=19]="Property",t[t.StyleProp=20]="StyleProp",t[t.ClassProp=21]="ClassProp",t[t.StyleMap=22]="StyleMap",t[t.ClassMap=23]="ClassMap",t[t.Advance=24]="Advance",t[t.Pipe=25]="Pipe",t[t.Attribute=26]="Attribute",t[t.ExtractedAttribute=27]="ExtractedAttribute",t[t.Defer=28]="Defer",t[t.DeferOn=29]="DeferOn",t[t.DeferWhen=30]="DeferWhen",t[t.I18nMessage=31]="I18nMessage",t[t.DomProperty=32]="DomProperty",t[t.Namespace=33]="Namespace",t[t.ProjectionDef=34]="ProjectionDef",t[t.Projection=35]="Projection",t[t.RepeaterCreate=36]="RepeaterCreate",t[t.Repeater=37]="Repeater",t[t.TwoWayProperty=38]="TwoWayProperty",t[t.TwoWayListener=39]="TwoWayListener",t[t.DeclareLet=40]="DeclareLet",t[t.StoreLet=41]="StoreLet",t[t.I18nStart=42]="I18nStart",t[t.I18n=43]="I18n",t[t.I18nEnd=44]="I18nEnd",t[t.I18nExpression=45]="I18nExpression",t[t.I18nApply=46]="I18nApply",t[t.IcuStart=47]="IcuStart",t[t.IcuEnd=48]="IcuEnd",t[t.IcuPlaceholder=49]="IcuPlaceholder",t[t.I18nContext=50]="I18nContext",t[t.I18nAttributes=51]="I18nAttributes",t[t.SourceLocation=52]="SourceLocation",t[t.Animation=53]="Animation",t[t.AnimationString=54]="AnimationString",t[t.AnimationBinding=55]="AnimationBinding",t[t.AnimationListener=56]="AnimationListener",t[t.Control=57]="Control",t[t.ControlCreate=58]="ControlCreate"})(f||(f={}));var F;(function(t){t[t.LexicalRead=0]="LexicalRead",t[t.Context=1]="Context",t[t.TrackContext=2]="TrackContext",t[t.ReadVariable=3]="ReadVariable",t[t.NextContext=4]="NextContext",t[t.Reference=5]="Reference",t[t.StoreLet=6]="StoreLet",t[t.ContextLetReference=7]="ContextLetReference",t[t.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",t[t.ArrowFunction=26]="ArrowFunction"})(F||(F={}));var $t;(function(t){t[t.None=0]="None",t[t.AlwaysInline=1]="AlwaysInline"})($t||($t={}));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 M;(function(t){t[t.Attribute=0]="Attribute",t[t.ClassName=1]="ClassName",t[t.StyleProperty=2]="StyleProperty",t[t.Property=3]="Property",t[t.Template=4]="Template",t[t.I18n=5]="I18n",t[t.LegacyAnimation=6]="LegacyAnimation",t[t.TwoWayProperty=7]="TwoWayProperty",t[t.Animation=8]="Animation"})(M||(M={}));var ui;(function(t){t[t.Creation=0]="Creation",t[t.Postproccessing=1]="Postproccessing"})(ui||(ui={}));var Ts;(function(t){t[t.I18nText=0]="I18nText",t[t.I18nAttribute=1]="I18nAttribute"})(Ts||(Ts={}));var he;(function(t){t[t.None=0]="None",t[t.ElementTag=1]="ElementTag",t[t.TemplateTag=2]="TemplateTag",t[t.OpenTag=4]="OpenTag",t[t.CloseTag=8]="CloseTag",t[t.ExpressionIndex=16]="ExpressionIndex"})(he||(he={}));var nt;(function(t){t[t.HTML=0]="HTML",t[t.SVG=1]="SVG",t[t.Math=2]="Math"})(nt||(nt={}));var ce;(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"})(ce||(ce={}));var mr;(function(t){t[t.RootI18n=0]="RootI18n",t[t.Icu=1]="Icu",t[t.Attr=2]="Attr"})(mr||(mr={}));var Et;(function(t){t[t.NgTemplate=0]="NgTemplate",t[t.Structural=1]="Structural",t[t.Block=2]="Block"})(Et||(Et={}));var fe=class fe{constructor(){a(this,"debugListId",fe.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}fe.assertIsNotEnd(e),fe.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)fe.assertIsNotEnd(s),fe.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;){fe.assertIsOwned(e,this.debugListId);let n=e.next;yield e,e=n}}*reversed(){let e=this.tail.prev;for(;e!==this.head;){fe.assertIsOwned(e,this.debugListId);let n=e.prev;yield e,e=n}}static replace(e,n){fe.assertIsNotEnd(e),fe.assertIsNotEnd(n),fe.assertIsOwned(e),fe.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){fe.remove(e);return}fe.assertIsNotEnd(e),fe.assertIsOwned(e);let r=e.debugListId;e.debugListId=null;for(let u of n)fe.assertIsNotEnd(u),fe.assertIsUnowned(u);let{prev:s,next:i}=e;e.prev=null,e.next=null;let o=s;for(let u of n)fe.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){fe.assertIsNotEnd(e),fe.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)fe.insertBefore(r,n);return}if(fe.assertIsOwned(n),n.prev===null)throw new Error("AssertionError: illegal operation on list start");fe.assertIsNotEnd(e),fe.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(fe.assertIsOwned(n),n.next===null)throw new Error("AssertionError: illegal operation on list end");fe.assertIsNotEnd(e),fe.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(fe,"nextListId",0);var w=fe;function Ht(t){return C({kind:f.Statement,statement:t},j)}function fr(t,e,n,r){return C({kind:f.Variable,xref:t,variable:e,initializer:n,flags:r},j)}var j={debugListId:null,prev:null,next:null},rm=Symbol("ConsumesSlot"),sp=Symbol("DependsOnSlotContext"),bs=Symbol("ConsumesVars"),Yo=Symbol("UsesVarOffset"),on={[rm]:!0,numSlotsUsed:1},Lt={[sp]:!0},Mt={[bs]:!0};function Ti(t){return t[rm]===!0}function _o(t){return t[sp]===!0}function nc(t){return t[bs]===!0}function Bh(t){return t[Yo]===!0}function HT(t,e,n){return C(C(C({kind:f.InterpolateText,target:t,interpolation:e,sourceSpan:n},Lt),Mt),j)}var Ae=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 xs(t,e,n,r,s,i,o,l,c,u,h){return C({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:h},j)}function qT(t,e,n,r,s,i,o,l,c,u){return C(C(C({kind:f.Property,target:t,name:e,expression:n,bindingKind:r,securityContext:s,sanitizer:null,isStructuralTemplateAttribute:i,templateKind:o,i18nContext:l,i18nMessage:c,sourceSpan:u},Lt),Mt),j)}function WT(t,e,n,r,s,i,o,l,c){return C(C(C({kind:f.TwoWayProperty,target:t,name:e,expression:n,securityContext:r,sanitizer:null,isStructuralTemplateAttribute:s,templateKind:i,i18nContext:o,i18nMessage:l,sourceSpan:c},Lt),Mt),j)}function jT(t,e,n,r,s){return C(C(C({kind:f.StyleProp,target:t,name:e,expression:n,unit:r,sourceSpan:s},Lt),Mt),j)}function KT(t,e,n,r){return C(C(C({kind:f.ClassProp,target:t,name:e,expression:n,sourceSpan:r},Lt),Mt),j)}function zT(t,e,n){return C(C(C({kind:f.StyleMap,target:t,expression:e,sourceSpan:n},Lt),Mt),j)}function XT(t,e,n){return C(C(C({kind:f.ClassMap,target:t,expression:e,sourceSpan:n},Lt),Mt),j)}function $h(t,e,n,r,s,i,o,l,c,u){return C(C(C({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},Lt),Mt),j)}function YT(t,e){return C({kind:f.Advance,delta:t,sourceSpan:e},j)}function sm(t,e,n,r){return C(C(C({kind:f.Conditional,target:t,test:e,conditions:n,processed:null,sourceSpan:r,contextValue:null},j),Lt),Mt)}function QT(t,e,n,r){return C(C({kind:f.Repeater,target:t,targetSlot:e,collection:n,sourceSpan:r},j),Lt)}function Uh(t,e,n,r,s,i,o){return C({kind:f.AnimationBinding,name:t,target:e,animationKind:n,expression:r,i18nMessage:null,securityContext:s,sanitizer:null,sourceSpan:i,animationBindingKind:o},j)}function JT(t,e,n,r){return C(C(C({kind:f.DeferWhen,target:t,expr:e,modifier:n,sourceSpan:r},j),Lt),Mt)}function im(t,e,n,r,s,i,o,l,c,u,h){return C(C(C({kind:f.I18nExpression,context:t,target:e,i18nOwner:n,handle:r,expression:s,icuPlaceholder:i,i18nPlaceholder:o,resolutionTime:l,usage:c,name:u,sourceSpan:h},j),Mt),Lt)}function ZT(t,e,n){return C({kind:f.I18nApply,owner:t,handle:e,sourceSpan:n},j)}function ex(t,e,n,r){return C(C(C({kind:f.StoreLet,target:t,declaredName:e,value:n,sourceSpan:r},Lt),Mt),j)}function tx(t,e){return C(C({kind:f.Control,sourceSpan:e,target:t},Lt),j)}function $n(t){return t instanceof pe}var pe=class extends ie{constructor(e=null){super(null,e)}},ze=class t extends pe{constructor(n){super();a(this,"name");a(this,"kind",F.LexicalRead);this.name=n}visitExpression(n,r){}isEquivalent(n){return this.name===n.name}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.name)}},Ha=class t extends pe{constructor(n,r,s){super();a(this,"target");a(this,"targetSlot");a(this,"offset");a(this,"kind",F.Reference);this.target=n,this.targetSlot=r,this.offset=s}visitExpression(){}isEquivalent(n){return n instanceof t&&n.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.target,this.targetSlot,this.offset)}},id,od,ad,ko=class t extends(ad=pe,od=bs,id=sp,ad){constructor(n,r,s){super();a(this,"target");a(this,"value");a(this,"sourceSpan");a(this,"kind",F.StoreLet);a(this,od,!0);a(this,id,!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=k(this.value,n,r)}clone(){return new t(this.target,this.value,this.sourceSpan)}},Ro=class t extends pe{constructor(n,r){super();a(this,"target");a(this,"targetSlot");a(this,"kind",F.ContextLetReference);this.target=n,this.targetSlot=r}visitExpression(){}isEquivalent(n){return n instanceof t&&n.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.target,this.targetSlot)}},Or=class t extends pe{constructor(n){super();a(this,"view");a(this,"kind",F.Context);this.view=n}visitExpression(){}isEquivalent(n){return n instanceof t&&n.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.view)}},su=class t extends pe{constructor(n){super();a(this,"view");a(this,"kind",F.TrackContext);this.view=n}visitExpression(){}isEquivalent(n){return n instanceof t&&n.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.view)}},qa=class t extends pe{constructor(){super(...arguments);a(this,"kind",F.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}},iu=class t extends pe{constructor(){super();a(this,"kind",F.GetCurrentView)}visitExpression(){}isEquivalent(n){return n instanceof t}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t}},Po=class t extends pe{constructor(n){super();a(this,"view");a(this,"kind",F.RestoreView);this.view=n}visitExpression(n,r){typeof this.view!="number"&&this.view.visitExpression(n,r)}isEquivalent(n){return!(n instanceof t)||typeof n.view!=typeof this.view?!1:typeof this.view=="number"?this.view===n.view:this.view.isEquivalent(n.view)}isConstant(){return!1}transformInternalExpressions(n,r){typeof this.view!="number"&&(this.view=k(this.view,n,r))}clone(){return new t(this.view instanceof ie?this.view.clone():this.view)}},Wa=class t extends pe{constructor(n){super();a(this,"expr");a(this,"kind",F.ResetView);this.expr=n}visitExpression(n,r){this.expr.visitExpression(n,r)}isEquivalent(n){return n instanceof t&&this.expr.isEquivalent(n.expr)}isConstant(){return!1}transformInternalExpressions(n,r){this.expr=k(this.expr,n,r)}clone(){return new t(this.expr.clone())}},ja=class t extends pe{constructor(n,r){super();a(this,"target");a(this,"value");a(this,"kind",F.TwoWayBindingSet);this.target=n,this.value=r}visitExpression(n,r){this.target.visitExpression(n,r),this.value.visitExpression(n,r)}isEquivalent(n){return this.target.isEquivalent(n.target)&&this.value.isEquivalent(n.value)}isConstant(){return!1}transformInternalExpressions(n,r){this.target=k(this.target,n,r),this.value=k(this.value,n,r)}clone(){return new t(this.target,this.value)}},Xn=class t extends pe{constructor(n){super();a(this,"xref");a(this,"kind",F.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}},ld,cd,ud,ws=class t extends(ud=pe,cd=bs,ld=Yo,ud){constructor(n,r){super();a(this,"kind",F.PureFunctionExpr);a(this,cd,!0);a(this,ld,!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=k(this.body,n,r|Q.InChildOperation):this.fn!==null&&(this.fn=k(this.fn,n,r));for(let s=0;s<this.args.length;s++)this.args[s]=k(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}},Fr=class t extends pe{constructor(n){super();a(this,"index");a(this,"kind",F.PureFunctionParameterExpr);this.index=n}visitExpression(){}isEquivalent(n){return n instanceof t&&n.index===this.index}isConstant(){return!0}transformInternalExpressions(){}clone(){return new t(this.index)}},pd,hd,fd,Cs=class t extends(fd=pe,hd=bs,pd=Yo,fd){constructor(n,r,s,i){super();a(this,"target");a(this,"targetSlot");a(this,"name");a(this,"args");a(this,"kind",F.PipeBinding);a(this,hd,!0);a(this,pd,!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]=k(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,md,gd,Lo=class t extends(gd=pe,md=bs,dd=Yo,gd){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",F.PipeBindingVariadic);a(this,md,!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=k(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}},pi=class t extends pe{constructor(n,r){super();a(this,"receiver");a(this,"name");a(this,"kind",F.SafePropertyRead);this.receiver=n,this.name=r}get index(){return this.name}visitExpression(n,r){this.receiver.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){this.receiver=k(this.receiver,n,r)}clone(){return new t(this.receiver.clone(),this.name)}},hi=class t extends pe{constructor(n,r,s){super(s);a(this,"receiver");a(this,"index");a(this,"kind",F.SafeKeyedRead);this.receiver=n,this.index=r}visitExpression(n,r){this.receiver.visitExpression(n,r),this.index.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){this.receiver=k(this.receiver,n,r),this.index=k(this.index,n,r)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.sourceSpan)}},As=class t extends pe{constructor(n,r){super();a(this,"receiver");a(this,"args");a(this,"kind",F.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=k(this.receiver,n,r);for(let s=0;s<this.args.length;s++)this.args[s]=k(this.args[s],n,r)}clone(){return new t(this.receiver.clone(),this.args.map(n=>n.clone()))}},fi=class t extends pe{constructor(n,r){super();a(this,"guard");a(this,"expr");a(this,"kind",F.SafeTernaryExpr);this.guard=n,this.expr=r}visitExpression(n,r){this.guard.visitExpression(n,r),this.expr.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){this.guard=k(this.guard,n,r),this.expr=k(this.expr,n,r)}clone(){return new t(this.guard.clone(),this.expr.clone())}},Mo=class t extends pe{constructor(){super(...arguments);a(this,"kind",F.EmptyExpr)}visitExpression(n,r){}isEquivalent(n){return n instanceof t}isConstant(){return!0}clone(){return new t}transformInternalExpressions(){}},Un=class t extends pe{constructor(n,r){super();a(this,"expr");a(this,"xref");a(this,"kind",F.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=k(this.expr,n,r)}clone(){let n=new t(this.expr.clone(),this.xref);return n.name=this.name,n}},Br=class t extends pe{constructor(n){super();a(this,"xref");a(this,"kind",F.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}},Ka=class t extends pe{constructor(n){super();a(this,"slot");a(this,"kind",F.SlotLiteralExpr);this.slot=n}visitExpression(n,r){}isEquivalent(n){return n instanceof t&&n.slot===this.slot}isConstant(){return!0}clone(){return new t(this.slot)}transformInternalExpressions(){}},za=class t extends pe{constructor(n,r,s,i=null){super();a(this,"expr");a(this,"target");a(this,"targetSlot");a(this,"alias");a(this,"kind",F.ConditionalCase);this.expr=n,this.target=r,this.targetSlot=s,this.alias=i}visitExpression(n,r){this.expr!==null&&this.expr.visitExpression(n,r)}isEquivalent(n){return n instanceof t&&n.expr===this.expr}isConstant(){return!0}clone(){return new t(this.expr,this.target,this.targetSlot)}transformInternalExpressions(n,r){this.expr!==null&&(this.expr=k(this.expr,n,r))}},Oo=class t extends pe{constructor(n){super();a(this,"expr");a(this,"kind",F.ConstCollected);this.expr=n}transformInternalExpressions(n,r){this.expr=n(this.expr,r)}visitExpression(n,r){this.expr.visitExpression(n,r)}isEquivalent(n){return n instanceof t?this.expr.isEquivalent(n.expr):!1}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr)}},yd,vd,Sd,ou=class t extends(Sd=pe,vd=bs,yd=Yo,Sd){constructor(n,r){super();a(this,"parameters");a(this,"body");a(this,"kind",F.ArrowFunction);a(this,vd,!0);a(this,yd,!0);a(this,"contextName",Gt);a(this,"currentViewName","view");a(this,"varOffset",null);a(this,"ops");this.parameters=n,this.body=r,this.ops=new w,this.ops.push([Ht(new be(r,r.sourceSpan))])}visitExpression(n,r){for(let s of this.ops)Me(s,i=>{i.visitExpression(n,r)})}isEquivalent(n){return n instanceof t&&n.parameters.length===this.parameters.length&&n.parameters.every((r,s)=>r.isEquivalent(this.parameters[s]))&&n.body.isEquivalent(this.body)}isConstant(){return!1}transformInternalExpressions(n,r){for(let s of this.ops)Ne(s,n,r|(Q.InChildOperation|Q.InArrowFunctionOperation))}clone(){let n=new t(this.parameters,this.body);return n.varOffset=this.varOffset,n.ops=this.ops,n}};function Me(t,e){Ne(t,(n,r)=>(e(n,r),n),Q.None)}var Q;(function(t){t[t.None=0]="None",t[t.InChildOperation=1]="InChildOperation",t[t.InArrowFunctionOperation=2]="InArrowFunctionOperation"})(Q||(Q={}));function rc(t,e,n){for(let r=0;r<t.expressions.length;r++)t.expressions[r]=k(t.expressions[r],e,n)}function Ne(t,e,n){switch(t.kind){case f.StyleProp:case f.StyleMap:case f.ClassProp:case f.ClassMap:case f.AnimationString:case f.AnimationBinding:case f.Binding:t.expression instanceof Ae?rc(t.expression,e,n):t.expression=k(t.expression,e,n);break;case f.Property:case f.DomProperty:case f.Attribute:t.expression instanceof Ae?rc(t.expression,e,n):t.expression=k(t.expression,e,n),t.sanitizer=t.sanitizer&&k(t.sanitizer,e,n);break;case f.TwoWayProperty:t.expression=k(t.expression,e,n),t.sanitizer=t.sanitizer&&k(t.sanitizer,e,n);break;case f.I18nExpression:t.expression=k(t.expression,e,n);break;case f.InterpolateText:rc(t.interpolation,e,n);break;case f.Statement:Xa(t.statement,e,n);break;case f.Variable:t.initializer=k(t.initializer,e,n);break;case f.Conditional:for(let r of t.conditions)r.expr!==null&&(r.expr=k(r.expr,e,n));t.processed!==null&&(t.processed=k(t.processed,e,n)),t.contextValue!==null&&(t.contextValue=k(t.contextValue,e,n));break;case f.Animation:case f.AnimationListener:case f.Listener:case f.TwoWayListener:for(let r of t.handlerOps)Ne(r,e,n|Q.InChildOperation);break;case f.ExtractedAttribute:t.expression=t.expression&&k(t.expression,e,n),t.trustedValueFn=t.trustedValueFn&&k(t.trustedValueFn,e,n);break;case f.RepeaterCreate:if(t.trackByOps===null)t.track=k(t.track,e,n);else for(let r of t.trackByOps)Ne(r,e,n|Q.InChildOperation);t.trackByFn!==null&&(t.trackByFn=k(t.trackByFn,e,n));break;case f.Repeater:t.collection=k(t.collection,e,n);break;case f.Defer:t.loadingConfig!==null&&(t.loadingConfig=k(t.loadingConfig,e,n)),t.placeholderConfig!==null&&(t.placeholderConfig=k(t.placeholderConfig,e,n)),t.resolverFn!==null&&(t.resolverFn=k(t.resolverFn,e,n));break;case f.I18nMessage:for(let[r,s]of t.params)t.params.set(r,k(s,e,n));for(let[r,s]of t.postprocessingParams)t.postprocessingParams.set(r,k(s,e,n));break;case f.DeferWhen:t.expr=k(t.expr,e,n);break;case f.StoreLet:t.value=k(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:case f.ConditionalCreate:case f.ConditionalBranchCreate:case f.Control:case f.ControlCreate:break;default:throw new Error(`AssertionError: transformExpressionsInOp doesn't handle ${f[t.kind]}`)}}function k(t,e,n){if(t instanceof pe)t.transformInternalExpressions(e,n);else if(t instanceof re)t.lhs=k(t.lhs,e,n),t.rhs=k(t.rhs,e,n);else if(t instanceof Yn)t.expr=k(t.expr,e,n);else if(t instanceof xt)t.receiver=k(t.receiver,e,n);else if(t instanceof Rn)t.receiver=k(t.receiver,e,n),t.index=k(t.index,e,n);else if(t instanceof ot){t.fn=k(t.fn,e,n);for(let r=0;r<t.args.length;r++)t.args[r]=k(t.args[r],e,n)}else if(t instanceof _t)for(let r=0;r<t.entries.length;r++)t.entries[r]=k(t.entries[r],e,n);else if(t instanceof nn)for(let r of t.entries)r instanceof gn?r.expression=k(r.expression,e,n):r.value=k(r.value,e,n);else if(t instanceof mn)t.condition=k(t.condition,e,n),t.trueCase=k(t.trueCase,e,n),t.falseCase!==null&&(t.falseCase=k(t.falseCase,e,n));else if(t instanceof ls)t.expr=k(t.expr,e,n);else if(t instanceof to)t.expr=k(t.expr,e,n);else if(t instanceof ro)for(let r=0;r<t.expressions.length;r++)t.expressions[r]=k(t.expressions[r],e,n);else if(t instanceof ni)t.condition=k(t.condition,e,n);else if(t instanceof Zs)t.tag=k(t.tag,e,n),t.template.expressions=t.template.expressions.map(r=>k(r,e,n));else if(t instanceof Vn)if(Array.isArray(t.body))for(let r=0;r<t.body.length;r++)Xa(t.body[r],e,n|Q.InChildOperation);else t.body=k(t.body,e,n|Q.InChildOperation);else if(!(t instanceof W)){if(t instanceof ti)for(let r=0;r<t.expressions.length;r++)t.expressions[r]=k(t.expressions[r],e,n);else if(t instanceof tn)t.expr=k(t.expr,e,n);else if(t instanceof Tr)t.expression=k(t.expression,e,n);else if(!(t instanceof en||t instanceof Ye||t instanceof _e||t instanceof cs))throw new Error(`Unhandled expression kind: ${t.constructor.name}`)}return e(t,n)}function Xa(t,e,n){if(t instanceof Qe)t.expr=k(t.expr,e,n);else if(t instanceof be)t.value=k(t.value,e,n);else if(t instanceof Ve)t.value!==void 0&&(t.value=k(t.value,e,n));else if(t instanceof ao){t.condition=k(t.condition,e,n);for(let r of t.trueCase)Xa(r,e,n);for(let r of t.falseCase)Xa(r,e,n)}else throw new Error(`Unhandled statement kind: ${t.constructor.name}`)}function om(t){return t instanceof _e&&typeof t.value=="string"}var rt=class{constructor(){a(this,"slot",null)}},nx=new Set([f.Element,f.ElementStart,f.Container,f.ContainerStart,f.Template,f.RepeaterCreate,f.ConditionalCreate,f.ConditionalBranchCreate]);function $r(t){return nx.has(t.kind)}function rx(t,e,n,r,s,i){return C(C({kind:f.ElementStart,xref:e,tag:t,handle:new rt,attributes:null,localRefs:[],nonBindable:!1,namespace:n,i18nPlaceholder:r,startSourceSpan:s,wholeSourceSpan:i},on),j)}function am(t,e,n,r,s,i,o,l){return C(C({kind:f.Template,xref:t,templateKind:e,attributes:null,tag:n,handle:new rt,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:l},on),j)}function lm(t,e,n,r,s,i,o,l){return C(C({kind:f.ConditionalCreate,xref:t,templateKind:e,attributes:null,tag:n,handle:new rt,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:l},on),j)}function cm(t,e,n,r,s,i,o,l){return C(C({kind:f.ConditionalBranchCreate,xref:t,templateKind:e,attributes:null,tag:n,handle:new rt,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:l},on),j)}function sx(t,e,n,r,s,i,o,l,c,u){return me(C(C(C({kind:f.RepeaterCreate,attributes:null,xref:t,handle:new rt,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},on),j),Mt),{numSlotsUsed:e===null?2:3})}function ix(t,e){return C({kind:f.ElementEnd,xref:t,sourceSpan:e},j)}function ox(t){return C({kind:f.DisableBindings,xref:t},j)}function ax(t){return C({kind:f.EnableBindings,xref:t},j)}function um(t,e,n,r){return C(C({kind:f.Text,xref:t,handle:new rt,initialValue:e,icuPlaceholder:n,sourceSpan:r},on),j)}function lx(t,e,n,r,s,i){return C({kind:f.AnimationString,name:t,target:e,animationKind:n,expression:r,i18nMessage:null,securityContext:s,sanitizer:null,sourceSpan:i},j)}function cx(t,e,n,r,s,i){let o=new w;return o.push(r),C({kind:f.Animation,name:t,target:e,animationKind:n,handlerOps:o,handlerFnName:null,i18nMessage:null,securityContext:s,sanitizer:null,sourceSpan:i},j)}function ip(t,e,n,r,s,i,o,l,c){let u=new w;return u.push(s),C({kind:f.Listener,target:t,targetSlot:e,tag:r,hostListener:l,name:n,handlerOps:u,handlerFnName:null,consumesDollarEvent:!1,isLegacyAnimationListener:i!==null,legacyAnimationPhase:i,eventTarget:o,sourceSpan:c},j)}function pm(t,e,n,r,s,i,o,l,c){let u=new w;return u.push(s),C({kind:f.AnimationListener,target:t,targetSlot:e,tag:r,hostListener:l,name:n,animationKind:i,handlerOps:u,handlerFnName:null,consumesDollarEvent:!1,eventTarget:o,sourceSpan:c},j)}function hm(t,e,n,r,s,i){let o=new w;return o.push(s),C({kind:f.TwoWayListener,target:t,targetSlot:e,tag:r,name:n,handlerOps:o,handlerFnName:null,sourceSpan:i},j)}function ux(t,e,n){return C(C({kind:f.Pipe,xref:t,handle:e,name:n},j),on)}function px(t){return C({kind:f.Namespace,active:t},j)}function hx(t){return C({kind:f.ProjectionDef,def:t},j)}function fx(t,e,n,r,s){return me(C(C({kind:f.Projection,xref:t,handle:new rt,selector:e,i18nPlaceholder:n,fallbackView:r,projectionSlotIndex:0,attributes:null,localRefs:[],sourceSpan:s},j),on),{numSlotsUsed:r===null?1:2})}function Yt(t,e,n,r,s,i,o,l){return C({kind:f.ExtractedAttribute,target:t,bindingKind:e,namespace:n,name:r,expression:s,i18nContext:i,i18nMessage:o,securityContext:l,trustedValueFn:null},j)}function dx(t,e,n,r,s,i){return me(C(C({kind:f.Defer,xref:t,handle:new rt,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},j),on),{numSlotsUsed:2})}function cr(t,e,n,r){return C({kind:f.DeferOn,defer:t,trigger:e,modifier:n,sourceSpan:r},j)}function mx(t,e,n){return C(C({kind:f.DeclareLet,xref:t,declaredName:e,sourceSpan:n,handle:new rt},on),j)}function gx(t,e,n,r,s,i,o,l){return C({kind:f.I18nMessage,xref:t,i18nContext:e,i18nBlock:n,message:r,messagePlaceholder:s,params:i,postprocessingParams:o,needsPostprocessing:l,subMessages:[]},j)}function xl(t,e,n,r){return C(C({kind:f.I18nStart,xref:t,handle:new rt,root:n!=null?n:t,message:e,messageIndex:null,subTemplateIndex:null,context:null,sourceSpan:r},j),on)}function wl(t,e){return C({kind:f.I18nEnd,xref:t,sourceSpan:e},j)}function yx(t,e,n,r){return C({kind:f.IcuStart,xref:t,message:e,messagePlaceholder:n,context:null,sourceSpan:r},j)}function vx(t){return C({kind:f.IcuEnd,xref:t},j)}function Sx(t,e,n){return C({kind:f.IcuPlaceholder,xref:t,name:e,strings:n,expressionPlaceholders:[]},j)}function sc(t,e,n,r,s){if(n===null&&t!==mr.Attr)throw new Error("AssertionError: i18nBlock must be provided for non-attribute contexts.");return C({kind:f.I18nContext,contextKind:t,xref:e,i18nBlock:n,message:r,sourceSpan:s,params:new Map,postprocessingParams:new Map},j)}function fm(t,e,n){return C(C({kind:f.I18nAttributes,xref:t,handle:e,target:n,i18nAttributesConfig:null},j),on)}function Ex(t,e){return C({kind:f.SourceLocation,templatePath:t,locations:e},j)}function Tx(t){return C({kind:f.ControlCreate,sourceSpan:t},j)}function xx(t,e,n,r,s,i){return C(C({kind:f.DomProperty,name:t,expression:e,bindingKind:n,i18nContext:r,securityContext:s,sanitizer:null,sourceSpan:i},Mt),j)}var dm="CTX_REF_MARKER",_;(function(t){t[t.Tmpl=0]="Tmpl",t[t.Host=1]="Host",t[t.Both=2]="Both"})(_||(_={}));var ft;(function(t){t[t.Full=0]="Full",t[t.DomOnly=1]="DomOnly"})(ft||(ft={}));var Ya=class{constructor(e,n,r){a(this,"componentName");a(this,"pool");a(this,"mode");a(this,"kind",_.Both);a(this,"nextXrefId",0);this.componentName=e,this.pool=n,this.mode=r}allocateXrefId(){return this.nextXrefId++}},Fo=class extends Ya{constructor(n,r,s,i,o,l,c,u,h){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",_.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=h,this.root=new Qt(this,this.allocateXrefId(),null),this.views.set(this.root.xref,this.root)}allocateView(n){let r=new Qt(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}},Qa=class{constructor(e){a(this,"xref");a(this,"create",new w);a(this,"update",new w);a(this,"functions",new Set);a(this,"fnName",null);a(this,"vars",null);this.xref=e}*ops(){for(let e of this.functions)for(let n of e.ops)yield n;for(let e of this.create)if(yield e,e.kind===f.Listener||e.kind===f.Animation||e.kind===f.AnimationListener||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}},Qt=class extends Qa{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}},Ja=class extends Ya{constructor(n,r,s){super(n,r,s);a(this,"kind",_.Host);a(this,"fnSuffix","HostBindings");a(this,"root");this.root=new au(this)}get units(){return[this.root]}},au=class extends Qa{constructor(n){super(0);a(this,"job");a(this,"attributes",null);this.job=n}};function wx(t){for(let e of t.units)for(let n of e.ops())Ne(n,Cx,Q.None)}function Cx(t){if(t instanceof ot&&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 Ax(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&&Nx(e,r)&&w.insertAfter(ZT(r.i18nOwner,r.handle,null),r)}function Nx(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 Ix(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,w.insertBefore(o,n);r.length=0,s=null}if(Ti(i))for(s!==null&&(s.lastSlotConsumer=i.xref);n.next!==null;){if(s!==null&&n.kind===f.I18nExpression&&n.usage===Ts.I18nText&&n.i18nOwner===s.blockXref){let l=n;n=n.next,w.remove(l),r.push(l);continue}let o=!1;if(_o(n)&&n.target!==i.xref?o=!0:(n.kind===f.Statement||n.kind===f.Variable)&&Me(n,l=>{!o&&_o(l)&&l.target!==i.xref&&(o=!0)}),o)break;n=n.next}}}}function Dx(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(Ex(t.relativeTemplatePath,n))}}function mm(t){let e=new Map;for(let n of t.create)Ti(n)&&(e.set(n.xref,n),n.kind===f.RepeaterCreate&&n.emptyView!==null&&e.set(n.emptyView,n));return e}function bx(t){for(let e of t.units){let n=mm(e);for(let r of e.ops())switch(r.kind){case f.Attribute:_x(e,r,n);break;case f.Property:if(r.bindingKind!==M.LegacyAnimation&&r.bindingKind!==M.Animation){let s;r.i18nMessage!==null&&r.templateKind===null?s=M.I18n:r.isStructuralTemplateAttribute?s=M.Template:s=M.Property,w.insertBefore(Yt(r.target,s,null,r.name,null,null,null,r.securityContext),Us(n,r.target))}break;case f.TwoWayProperty:w.insertBefore(Yt(r.target,M.TwoWayProperty,null,r.name,null,null,null,r.securityContext),Us(n,r.target));break;case f.StyleProp:case f.ClassProp:r.expression instanceof Mo&&w.insertBefore(Yt(r.target,M.Property,null,r.name,null,null,null,ue.STYLE),Us(n,r.target));break;case f.Listener:if(!r.isLegacyAnimationListener){let s=Yt(r.target,M.Property,null,r.name,null,null,null,ue.NONE);if(t.kind===_.Host)break;w.insertBefore(s,Us(n,r.target))}break;case f.TwoWayListener:if(t.kind!==_.Host){let s=Yt(r.target,M.Property,null,r.name,null,null,null,ue.NONE);w.insertBefore(s,Us(n,r.target))}break}}}function Us(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 _x(t,e,n){if(!(e.expression instanceof Ae)&&e.isTextAttribute){let r=Yt(e.target,e.isStructuralTemplateAttribute?M.Template:M.Attribute,e.namespace,e.name,e.expression,e.i18nContext,e.i18nMessage,e.securityContext);if(t.job.kind===_.Host)t.create.push(r);else{let s=Us(n,e.target);w.insertBefore(r,s)}w.remove(e)}}var Vh="aria-";function gm(t){return t.startsWith(Vh)&&t.length>Vh.length}function kx(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 Rx(t){let e=new Map;for(let n of t.units)for(let r of n.create)$r(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 M.Attribute:if(r.name==="ngNonBindable"){w.remove(r);let s=kx(e,r.target);s.nonBindable=!0}else if(r.name.startsWith("animate."))w.replace(r,Uh(r.name,r.target,r.name==="animate.enter"?"enter":"leave",r.expression,r.securityContext,r.sourceSpan,0));else{let[s,i]=yn(r.name);w.replace(r,$h(r.target,s,i,r.expression,r.securityContext,r.isTextAttribute,r.isStructuralTemplateAttribute,r.templateKind,r.i18nMessage,r.sourceSpan))}break;case M.Animation:w.replace(r,Uh(r.name,r.target,r.name==="animate.enter"?"enter":"leave",r.expression,r.securityContext,r.sourceSpan,1));break;case M.Property:case M.LegacyAnimation:t.mode===ft.DomOnly&&gm(r.name)?w.replace(r,$h(r.target,null,r.name,r.expression,r.securityContext,!1,r.isStructuralTemplateAttribute,r.templateKind,r.i18nMessage,r.sourceSpan)):t.kind===_.Host?w.replace(r,xx(r.name,r.expression,r.bindingKind,r.i18nContext,r.securityContext,r.sourceSpan)):w.replace(r,qT(r.target,r.name,r.expression,r.bindingKind,r.securityContext,r.isStructuralTemplateAttribute,r.templateKind,r.i18nContext,r.i18nMessage,r.sourceSpan));break;case M.TwoWayProperty:if(!(r.expression instanceof ie))throw new Error(`Expected value of two-way property binding "${r.name}" to be an expression`);w.replace(r,WT(r.target,r.name,r.expression,r.securityContext,r.isStructuralTemplateAttribute,r.templateKind,r.i18nContext,r.i18nMessage,r.sourceSpan));break;case M.I18n:case M.ClassName:case M.StyleProperty:throw new Error(`Unhandled binding of kind ${M[r.bindingKind]}`)}}var Gh=new Map([[m.ariaProperty,m.ariaProperty],[m.attribute,m.attribute],[m.classProp,m.classProp],[m.element,m.element],[m.elementContainer,m.elementContainer],[m.elementContainerEnd,m.elementContainerEnd],[m.elementContainerStart,m.elementContainerStart],[m.elementEnd,m.elementEnd],[m.elementStart,m.elementStart],[m.domProperty,m.domProperty],[m.i18nExp,m.i18nExp],[m.listener,m.listener],[m.listener,m.listener],[m.property,m.property],[m.styleProp,m.styleProp],[m.syntheticHostListener,m.syntheticHostListener],[m.syntheticHostProperty,m.syntheticHostProperty],[m.templateCreate,m.templateCreate],[m.twoWayProperty,m.twoWayProperty],[m.twoWayListener,m.twoWayListener],[m.declareLet,m.declareLet],[m.conditionalCreate,m.conditionalBranchCreate],[m.conditionalBranchCreate,m.conditionalBranchCreate],[m.domElement,m.domElement],[m.domElementStart,m.domElementStart],[m.domElementEnd,m.domElementEnd],[m.domElementContainer,m.domElementContainer],[m.domElementContainerStart,m.domElementContainerStart],[m.domElementContainerEnd,m.domElementContainerEnd],[m.domListener,m.domListener],[m.domTemplate,m.domTemplate],[m.animationEnter,m.animationEnter],[m.animationLeave,m.animationLeave],[m.animationEnterListener,m.animationEnterListener],[m.animationLeaveListener,m.animationLeaveListener]]),Px=256;function Lx(t){for(let e of t.units)Hh(e.create),Hh(e.update)}function Hh(t){let e=null;for(let n of t){if(n.kind!==f.Statement||!(n.statement instanceof Qe)){e=null;continue}if(!(n.statement.expr instanceof ot)||!(n.statement.expr.fn instanceof Ye)){e=null;continue}let r=n.statement.expr.fn.value;if(!Gh.has(r)){e=null;continue}if(e!==null&&Gh.get(e.instruction)===r&&e.length<Px){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++,w.remove(n)}else e={op:n,instruction:r,expression:n.statement.expr,length:1}}}function Mx(t){for(let e of t.units)for(let n of e.update)(n.kind===f.Attribute||n.kind===f.StyleProp||n.kind==f.StyleMap||n.kind===f.ClassMap)&&n.expression instanceof Ae&&n.expression.strings.length===2&&n.expression.strings.every(s=>s==="")&&(n.expression=n.expression.expressions[0])}function Ox(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(l=>l.expr===null);if(s>=0){let l=n.conditions.splice(s,1)[0].targetSlot;r=new Ka(l)}else r=S(-1);let i=n.test==null?null:new Un(n.test,t.allocateXrefId()),o=null;for(let l=n.conditions.length-1;l>=0;l--){let c=n.conditions[l];if(c.expr!==null){if(i!==null){let u=l===0?i:new Br(i.xref);c.expr=new re(T.Identical,u,c.expr)}else c.alias!==null&&(o!=null||(o=t.allocateXrefId()),c.expr=new Un(c.expr,o),n.contextValue=new Br(o));r=new mn(c.expr,new Ka(c.targetSlot),r)}}n.processed=r,n.conditions=[]}}var Fx=new Map([["&&",T.And],[">",T.Bigger],[">=",T.BiggerEquals],["|",T.BitwiseOr],["&",T.BitwiseAnd],["/",T.Divide],["=",T.Assign],["==",T.Equals],["===",T.Identical],["<",T.Lower],["<=",T.LowerEquals],["-",T.Minus],["%",T.Modulo],["**",T.Exponentiation],["*",T.Multiply],["!=",T.NotEquals],["!==",T.NotIdentical],["??",T.NullishCoalesce],["||",T.Or],["+",T.Plus],["in",T.In],["instanceof",T.InstanceOf],["+=",T.AdditionAssignment],["-=",T.SubtractionAssignment],["*=",T.MultiplicationAssignment],["/=",T.DivisionAssignment],["%=",T.RemainderAssignment],["**=",T.ExponentiationAssignment],["&&=",T.AndAssignment],["||=",T.OrAssignment],["??=",T.NullishCoalesceAssignment]]);function ym(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 Bx(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 $x(t,e){return e===nt.HTML?t:`:${Bx(e)}:${t}`}function di(t){return Array.isArray(t)?ae(t.map(di)):S(t)}function Ux(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 lu;e.set(r.target,s),s.add(r.bindingKind,r.name,r.expression,r.namespace,r.trustedValueFn),w.remove(r)}if(t instanceof Fo)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=cu(s);i.entries.length>0&&(r.attributes=i)}}else $r(r)&&(r.attributes=qh(t,e,r.xref),r.kind===f.RepeaterCreate&&r.emptyView!==null&&(r.emptyAttributes=qh(t,e,r.emptyView)));else if(t instanceof Ja)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=cu(r);s.entries.length>0&&(t.root.attributes=s)}}function qh(t,e,n){let r=e.get(n);if(r!==void 0){let s=cu(r);if(s.entries.length>0)return t.addConst(s)}return null}var Ls=Object.freeze([]),lu=class{constructor(){a(this,"known",new Map);a(this,"byKind",new Map);a(this,"propertyBindings",null);a(this,"projectAs",null)}get attributes(){var e;return(e=this.byKind.get(M.Attribute))!=null?e:Ls}get classes(){var e;return(e=this.byKind.get(M.ClassName))!=null?e:Ls}get styles(){var e;return(e=this.byKind.get(M.StyleProperty))!=null?e:Ls}get bindings(){var e;return(e=this.propertyBindings)!=null?e:Ls}get template(){var e;return(e=this.byKind.get(M.Template))!=null?e:Ls}get i18n(){var e;return(e=this.byKind.get(M.I18n))!=null?e:Ls}isKnown(e,n){var s;let r=(s=this.known.get(e))!=null?s:new Set;return this.known.set(e,r),r.has(n)?!0:(r.add(n),!1)}add(e,n,r,s,i){var c;if(!(e===M.Attribute||e===M.ClassName||e===M.StyleProperty)&&this.isKnown(e,n))return;if(n==="ngProjectAs"){if(r===null||!(r instanceof _e)||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(...Vx(s,n)),e===M.Attribute||e===M.StyleProperty){if(r===null)throw Error("Attribute, i18n attribute, & style element attributes must have a value");if(i!==null){if(!om(r))throw Error("AssertionError: extracted attribute value should be string literal");l.push(bd(i,new ti([new no(r.value)],[]),void 0,r.sourceSpan))}else l.push(r)}}arrayFor(e){var n;return e===M.Property||e===M.TwoWayProperty?((n=this.propertyBindings)!=null||(this.propertyBindings=[]),this.propertyBindings):(this.byKind.has(e)||this.byKind.set(e,[]),this.byKind.get(e))}};function Vx(t,e){let n=S(e);return t?[S(0),S(t),n]:[n]}function cu({attributes:t,bindings:e,classes:n,i18n:r,projectAs:s,styles:i,template:o}){let l=[...t];if(s!==null){let c=zu(s)[0];l.push(S(5),di(c))}return n.length>0&&l.push(S(1),...n),i.length>0&&l.push(S(2),...i),e.length>0&&l.push(S(3),...e),o.length>0&&l.push(S(4),...o),r.length>0&&l.push(S(6),...r),ae(l)}function Gx(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 Hx(t){let e=new Map;for(let n of t.units)for(let r of n.create)$r(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.ops())if(r.kind===f.AnimationBinding){let s=qx(r);t.kind===_.Host?n.create.push(s):w.insertAfter(s,Gx(e,r.target)),w.remove(r)}}function qx(t){if(t.animationBindingKind===0)return lx(t.name,t.target,t.name==="animate.enter"?"enter":"leave",t.expression,t.securityContext,t.sourceSpan);{let e=t.expression;return cx(t.name,t.target,t.name==="animate.enter"?"enter":"leave",[Ht(new be(e,e.sourceSpan))],t.securityContext,t.sourceSpan)}}function Wx(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 Ae))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(im(r.i18nContext,s.target,s.xref,s.handle,l,null,r.expression.i18nPlaceholders[o],ui.Creation,Ts.I18nAttribute,r.name,r.sourceSpan))}w.replaceWithMany(r,i);break}}}function jx(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=sc(mr.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=sc(mr.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=sc(mr.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=mr.Icu;break}}function Kx(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)&&(r.name==="style"||r.name==="class")&&w.remove(r),s.add(r.name),e.set(r.target,s)}}function zx(t){for(let e of t.units)for(let n of e.create)n.kind===f.Defer&&(n.placeholderMinimumTime!==null&&(n.placeholderConfig=new Oo(di([n.placeholderMinimumTime]))),(n.loadingMinimumTime!==null||n.loadingAfterTime!==null)&&(n.loadingConfig=new Oo(di([n.loadingMinimumTime,n.loadingAfterTime]))))}function Xx(t){let e=new Map;function n(s){if(e.has(s.xref))return e.get(s.xref);let i=new Yx;for(let o of s.create)if(!(!$r(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 ce.Idle:case ce.Never:case ce.Immediate:case ce.Timer:return;case ce.Hover:case ce.Interaction:case ce.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 h of u.create)if(Ti(h)&&($r(h)||h.kind===f.Projection)){i.trigger.targetXref=h.xref,i.trigger.targetView=o,i.trigger.targetSlotViewSteps=-1,i.trigger.targetSlot=h.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:h,slot:d}=u.targets.get(i.trigger.targetName);i.trigger.targetXref=h,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 Yx=class{constructor(){a(this,"targets",new Map)}},Qx=new Map([[f.ElementEnd,[f.ElementStart,f.Element]],[f.ContainerEnd,[f.ContainerStart,f.Container]],[f.I18nEnd,[f.I18nStart,f.I18n]]]),Jx=new Set([f.Pipe]);function Zx(t){for(let e of t.units)for(let n of e.create){let r=Qx.get(n.kind);if(r===void 0)continue;let[s,i]=r,o=n.prev;for(;o!==null&&Jx.has(o.kind);)o=o.prev;o!==null&&o.kind===s&&(o.kind=i,w.remove(n))}}function ew(t){for(let e of t.units)for(let n of e.ops())Ne(n,r=>ow(r,{job:t}),Q.None),Ne(n,aw,Q.None)}function Ft(t){return t instanceof Yn?Ft(t.expr):t instanceof re?Ft(t.lhs)||Ft(t.rhs):t instanceof mn?t.falseCase&&Ft(t.falseCase)?!0:Ft(t.condition)||Ft(t.trueCase):t instanceof ni?Ft(t.condition):t instanceof Un?Ft(t.expr):t instanceof xt?Ft(t.receiver):t instanceof Rn?Ft(t.receiver)||Ft(t.index):t instanceof tn?Ft(t.expr):t instanceof ot||t instanceof _t||t instanceof nn||t instanceof As||t instanceof Cs}function tw(t){let e=new Set;return k(t,n=>(n instanceof Un&&e.add(n.xref),n),Q.None),e}function nw(t,e,n){return k(t,r=>{if(r instanceof Un&&e.has(r.xref)){let s=new Br(r.xref);return new Un(s,s.xref)}return r},Q.None),t}function Ms(t,e,n){let r;if(Ft(t)){let s=n.job.allocateXrefId();r=[new Un(t,s),new Br(s)]}else r=[t,t.clone()],nw(r[1],tw(r[0]));return new fi(r[0],e(r[1]))}function rw(t){return t instanceof pi||t instanceof hi||t instanceof As}function sw(t){return t instanceof xt||t instanceof Rn||t instanceof ot}function vm(t){return rw(t)||sw(t)}function iw(t){if(vm(t)&&t.receiver instanceof fi){let e=t.receiver;for(;e.expr instanceof fi;)e=e.expr;return e}return null}function ow(t,e){if(!vm(t))return t;let n=iw(t);if(n){if(t instanceof ot)return n.expr=n.expr.callFn(t.args),t.receiver;if(t instanceof xt)return n.expr=n.expr.prop(t.name),t.receiver;if(t instanceof Rn)return n.expr=n.expr.key(t.index),t.receiver;if(t instanceof As)return n.expr=Ms(n.expr,r=>r.callFn(t.args),e),t.receiver;if(t instanceof pi)return n.expr=Ms(n.expr,r=>r.prop(t.name),e),t.receiver;if(t instanceof hi)return n.expr=Ms(n.expr,r=>r.key(t.index),e),t.receiver}else{if(t instanceof As)return Ms(t.receiver,r=>r.callFn(t.args),e);if(t instanceof pi)return Ms(t.receiver,r=>r.prop(t.name),e);if(t instanceof hi)return Ms(t.receiver,r=>r.key(t.index),e)}return t}function aw(t){return t instanceof fi?new tn(new mn(new re(T.Equals,t.guard,us),us,t.expr)):t}var Wh="\uFFFD",lw="#",cw="*",uw="/",pw=":",hw="[",fw="]",dw="|";function mw(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=gw(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,w.remove(o);let l=r.get(o.context);if(l.contextKind!==mr.Icu)continue;let c=n.get(l.i18nBlock);if(c.context===l.xref)continue;let u=n.get(c.root),h=e.get(u.context);if(h===void 0)throw Error("AssertionError: ICU sub-message should belong to a root message.");let d=e.get(l.xref);d.messagePlaceholder=o.messagePlaceholder,h.subMessages.push(d.xref);break;case f.IcuEnd:s=null,w.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,S(yw(o))),w.remove(o);break}}function gw(t,e,n){let r=jh(e.params),s=jh(e.postprocessingParams),i=[...e.params.values()].some(o=>o.length>1);return gx(t.allocateXrefId(),e.xref,e.i18nBlock,e.message,null,r,s,i)}function yw(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(Ws);return t.strings.flatMap((n,r)=>[n,e[r]||""]).join("")}function jh(t){let e=new Map;for(let[n,r]of t){let s=vw(r);s!==null&&e.set(n,S(s))}return e}function vw(t){if(t.length===0)return null;let e=t.map(n=>Ws(n));return e.length===1?e[0]:`${hw}${e.join(dw)}${fw}`}function Ws(t){if(t.flags&he.ElementTag&&t.flags&he.TemplateTag){if(typeof t.value!="object")throw Error("AssertionError: Expected i18n param value to have an element and template slot");let s=Ws(me(C({},t),{value:t.value.element,flags:t.flags&~he.TemplateTag})),i=Ws(me(C({},t),{value:t.value.template,flags:t.flags&~he.ElementTag}));return t.flags&he.OpenTag&&t.flags&he.CloseTag?`${i}${s}${i}`:t.flags&he.CloseTag?`${s}${i}`:`${i}${s}`}if(t.flags&he.OpenTag&&t.flags&he.CloseTag)return`${Ws(me(C({},t),{flags:t.flags&~he.CloseTag}))}${Ws(me(C({},t),{flags:t.flags&~he.OpenTag}))}`;if(t.flags===he.None)return`${t.value}`;let e="",n="";t.flags&he.ElementTag?e=lw:t.flags&he.TemplateTag&&(e=cw),e!==""&&(n=t.flags&he.CloseTag?uw:"");let r=t.subTemplateIndex===null?"":`${pw}${t.subTemplateIndex}`;return`${Wh}${n}${e}${t.value}${r}${Wh}`}function Sw(t){for(let e of t.units){let n=new Map;for(let s of e.create){if(Ti(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(_o(s)?i=s:Me(s,l=>{i===null&&_o(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");w.insertBefore(YT(l,i.sourceSpan),s),r=o}}}}function Ew(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};w.replace(n,fr(t.allocateXrefId(),r,new ko(n.target,n.value,n.sourceSpan),$t.None))}}function Tw(t){let 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:zu(o));s=t.pool.getConstLiteral(di(i),!0)}t.contentSelectors=t.pool.getConstLiteral(di(n),!0),t.root.create.prepend([hx(s)])}}function xw(t){Gi(t.root,null)}function Gi(t,e){let n=Kh(t,e);for(let r of t.create)switch(r.kind){case f.ConditionalCreate:case f.ConditionalBranchCreate:case f.Template:Gi(t.job.views.get(r.xref),n);break;case f.Projection:r.fallbackView!==null&&Gi(t.job.views.get(r.fallbackView),n);break;case f.RepeaterCreate:Gi(t.job.views.get(r.xref),n),r.emptyView&&Gi(t.job.views.get(r.emptyView),n),r.trackByOps!==null&&r.trackByOps.prepend(Hi(t,n,!1));break;case f.Animation:case f.AnimationListener:case f.Listener:case f.TwoWayListener:r.handlerOps.prepend(Hi(t,n,!0));break}t.update.prepend(Hi(t,n,!1));for(let r of t.functions)r.ops.prepend(Hi(t,Kh(t,e),!0))}function Kh(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.ConditionalCreate:case f.ConditionalBranchCreate: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 Hi(t,e,n){let r=[];e.view!==t.xref&&r.push(fr(t.job.allocateXrefId(),e.viewContextVariable,new qa,$t.None));let s=t.job.views.get(e.view);for(let[i,o]of s.contextVariables){let l=new Or(e.view),c=o===dm?l:new xt(l,o);r.push(fr(t.job.allocateXrefId(),e.contextVariables.get(i),c,$t.None))}for(let i of s.aliases)r.push(fr(t.job.allocateXrefId(),i,i.expression.clone(),$t.AlwaysInline));for(let i of e.references)r.push(fr(t.job.allocateXrefId(),i.variable,new Ha(i.targetId,i.targetSlot,i.offset),$t.None));if(e.view!==t.xref||n)for(let i of e.letDeclarations)r.push(fr(t.job.allocateXrefId(),i.variable,new Ro(i.targetId,i.targetSlot),$t.None));return e.parent!==null&&r.push(...Hi(t,e.parent,!1)),r}function ww(t){for(let e of t.units)for(let n of e.ops())Ne(n,r=>r instanceof Oo?S(t.addConst(r.expr)):r,Q.None)}var zh="style.",Xh="class.",Cw="style!",Yh="class!",Qh="!important";function Aw(t){for(let e of t.root.update)if(e.kind===f.Binding&&e.bindingKind===M.Property)if(e.name.endsWith(Qh)&&(e.name=e.name.substring(0,e.name.length-Qh.length)),e.name.startsWith(zh)){e.bindingKind=M.StyleProperty,e.name=e.name.substring(zh.length),Nw(e.name)||(e.name=Iw(e.name));let{property:n,suffix:r}=ic(e.name);e.name=n,e.unit=r}else e.name.startsWith(Cw)?(e.bindingKind=M.StyleProperty,e.name="style"):e.name.startsWith(Xh)?(e.bindingKind=M.ClassName,e.name=ic(e.name.substring(Xh.length)).property):e.name.startsWith(Yh)&&(e.bindingKind=M.ClassName,e.name=ic(e.name.substring(Yh.length)).property)}function Nw(t){return t.startsWith("--")}function Iw(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function ic(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 uu(t,e=!1){return wt(Object.keys(t).map(n=>({key:n,quoted:e,value:t[n]})))}var pu=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`{${zo(e,!1)}}`}},Dw=new pu;function Sm(t){return t.visit(Dw)}var Zn=class{constructor(e,n){a(this,"sourceSpan");a(this,"i18n");this.sourceSpan=e,this.i18n=n}},Ns=class extends Zn{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)}},ss=class extends Zn{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)}},Za=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)}},hu=class extends Zn{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)}},jt=class extends Zn{constructor(n,r,s,i,o,l,c,u=null,h,d){super(l,d);a(this,"name");a(this,"attrs");a(this,"directives");a(this,"children");a(this,"isSelfClosing");a(this,"startSourceSpan");a(this,"endSourceSpan");a(this,"isVoid");this.name=n,this.attrs=r,this.directives=s,this.children=i,this.isSelfClosing=o,this.startSourceSpan=c,this.endSourceSpan=u,this.isVoid=h}visit(n,r){return n.visitElement(this,r)}},Bo=class{constructor(e,n){a(this,"value");a(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e,n){return e.visitComment(this,n)}},zt=class extends Zn{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)}},ht=class extends Zn{constructor(n,r,s,i,o,l,c,u,h,d=null,p){super(u,p);a(this,"componentName");a(this,"tagName");a(this,"fullName");a(this,"attrs");a(this,"directives");a(this,"children");a(this,"isSelfClosing");a(this,"startSourceSpan");a(this,"endSourceSpan");this.componentName=n,this.tagName=r,this.fullName=s,this.attrs=i,this.directives=o,this.children=l,this.isSelfClosing=c,this.startSourceSpan=h,this.endSourceSpan=d}visit(n,r){return n.visitComponent(this,r)}},fu=class{constructor(e,n,r,s,i=null){a(this,"name");a(this,"attrs");a(this,"sourceSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");this.name=e,this.attrs=n,this.sourceSpan=r,this.startSourceSpan=s,this.endSourceSpan=i}visit(e,n){return e.visitDirective(this,n)}},el=class{constructor(e,n){a(this,"expression");a(this,"sourceSpan");this.expression=e,this.sourceSpan=n}visit(e,n){return e.visitBlockParameter(this,n)}},tl=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 ge(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 $o={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"},Em="\uE500";$o.ngsp=Em;var du=class{constructor(e,n,r){a(this,"tokens");a(this,"errors");a(this,"nonNormalizedIcuExpressions");this.tokens=e,this.errors=n,this.nonNormalizedIcuExpressions=r}};function bw(t,e,n,r={}){let s=new mu(new Lr(t,e),n,r);return s.tokenize(),new du($w(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}var _w=/\r\n?/g;function Os(t){return`Unexpected character "${t===Xe?"EOF":String.fromCharCode(t)}"`}function Jh(t){return`Unknown entity "${t}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function kw(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var nl;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(nl||(nl={}));var Rw=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"],Li={start:"{{",end:"}}"},mu=class{constructor(e,n,r){a(this,"_getTagDefinition");a(this,"_cursor");a(this,"_tokenizeIcu");a(this,"_leadingTriviaCodePoints");a(this,"_currentTokenStart",null);a(this,"_currentTokenType",null);a(this,"_expansionCaseStack",[]);a(this,"_openDirectiveCount",0);a(this,"_inInterpolation",!1);a(this,"_preserveLineEndings");a(this,"_i18nNormalizeLineEndingsInICUs");a(this,"_tokenizeBlocks");a(this,"_tokenizeLet");a(this,"_selectorlessEnabled");a(this,"tokens",[]);a(this,"errors",[]);a(this,"nonNormalizedIcuExpressions",[]);var i,o,l;this._getTagDefinition=n,this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map(c=>c.codePointAt(0)||0);let s=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new gu(e,s):new rl(e,s),this._preserveLineEndings=r.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=r.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=(i=r.tokenizeBlocks)!=null?i:!0,this._tokenizeLet=(o=r.tokenizeLet)!=null?o:!0,this._selectorlessEnabled=(l=r.selectorlessEnabled)!=null?l:!1;try{this._cursor.init()}catch(c){this.handleError(c)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(_w,`
|
|
23
|
-
`)}tokenize(){for(;this._cursor.peek()!==Xe;){let e=this._cursor.clone();try{this._attemptCharCode(Qs)?this._attemptCharCode(jc)?this._attemptCharCode(_n)?this._consumeCdata(e):this._attemptCharCode(Ua)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(Kt)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeLet&&this._cursor.peek()===Ps&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(mt)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(n){this.handleError(n)}}this._beginToken(41),this._endToken([])}_getBlockName(){let e=!1,n=this._cursor.clone();return this._attemptCharCodeUntilFn(r=>Do(r)?!e:Bw(r)?(e=!0,!1):!0),this._cursor.getChars(n).trim()}_consumeBlockStart(e){this._requireCharCode(Ps),this._beginToken(24,e);let n=this._endToken([this._getBlockName()]);if(n.parts[0]==="default never"&&this._attemptCharCode(Dt)){this._beginToken(25),this._endToken([]),this._beginToken(26),this._endToken([]);return}if(this._cursor.peek()===yt)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Ee),this._attemptCharCode(Be))this._attemptCharCodeUntilFn(Ee);else{n.type=28;return}this._attemptCharCode(Xt)?(this._beginToken(25),this._endToken([])):this._isBlockStart()&&(n.parts[0]==="case"||n.parts[0]==="default")?(this._beginToken(25),this._endToken([]),this._beginToken(26),this._endToken([])):n.type=28}_consumeBlockEnd(e){this._beginToken(26,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(ef);this._cursor.peek()!==Be&&this._cursor.peek()!==Xe;){this._beginToken(27);let e=this._cursor.clone(),n=null,r=0;for(;this._cursor.peek()!==Dt&&this._cursor.peek()!==Xe||n!==null;){let s=this._cursor.peek();if(s===rs)this._cursor.advance();else if(s===n)n=null;else if(n===null&&ji(s))n=s;else if(s===yt&&n===null)r++;else if(s===Be&&n===null){if(r===0)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(ef)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(29,e),Do(this._cursor.peek()))this._attemptCharCodeUntilFn(Ee);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=32;return}let n=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Ee),!this._attemptCharCode(Ke)){n.type=32;return}this._attemptCharCodeUntilFn(s=>Ee(s)&&!Va(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===Dt?(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=>Pr(r)||r===Tl||r===Hr||n&&un(r)?(n=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(30,e);this._cursor.peek()!==Xe;){let n=this._cursor.peek();if(n===Dt)break;ji(n)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(r=>r===rs?(this._cursor.advance(),!1):r===n)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(Ow(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===mt){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 G(this._cursor.getSpan(n),"Programming error - attempted to end a token when there was no start to the token");if(this._currentTokenType===null)throw new G(this._cursor.getSpan(this._currentTokenStart),"Programming error - attempted to end a token which has no token type");let r={type:this._currentTokenType,parts:e,sourceSpan:(n!=null?n:this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r}_createError(e,n){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let r=new G(n,e);return this._currentTokenStart=null,this._currentTokenType=null,r}handleError(e){if(e instanceof Uo&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof G)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return Fw(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let n=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Os(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(Os(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(Os(this._cursor.peek()),this._cursor.getSpan(r))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(){let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_peekStr(e){let n=e.length;if(this._cursor.charsLeft()<n)return!1;let r=this._cursor.clone();for(let s=0;s<n;s++){if(r.peek()!==e.charCodeAt(s))return!1;r.advance()}return!0}_isBlockStart(){return this._cursor.peek()===Ps&&Rw.some(e=>this._peekStr(e))}_isLetStart(){return this._cursor.peek()===Ps&&this._peekStr("@let")}_consumeEntity(e){this._beginToken(9);let n=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(Hd)){let r=this._attemptCharCode(Qd)||this._attemptCharCode(XE),s=this._cursor.clone();if(this._attemptCharCodeUntilFn(Lw),this._cursor.peek()!=Dt){this._cursor.advance();let o=r?nl.HEX:nl.DEC;throw this._createError(kw(o,this._cursor.getChars(n)),this._cursor.getSpan())}let i=this._cursor.getChars(s);this._cursor.advance();try{let o=parseInt(i,r?16:10);this._endToken([String.fromCodePoint(o),this._cursor.getChars(n)])}catch(o){throw this._createError(Jh(this._cursor.getChars(n)),this._cursor.getSpan())}}else{let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(Mw),this._cursor.peek()!=Dt)this._beginToken(e,n),this._cursor=r,this._endToken(["&"]);else{let s=this._cursor.getChars(r);this._cursor.advance();let i=$o.hasOwnProperty(s)&&$o[s];if(!i)throw this._createError(Jh(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()===$a?(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(Ua),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(Bt);let r=this._cursor.getChars(n);this._cursor.advance(),this._endToken([r])}_consumePrefixAndName(e){let n=this._cursor.clone(),r="";for(;this._cursor.peek()!==An&&!Pw(this._cursor.peek());)this._cursor.advance();let s;this._cursor.peek()===An?(r=this._cursor.getChars(n),this._cursor.advance(),s=this._cursor.clone()):s=n,this._requireCharCodeUntilFn(e,r===""?0:1);let i=this._cursor.getChars(s);return[r,i]}_consumeTagOpen(e){let n,r,s,i;try{if(this._selectorlessEnabled&&fa(this._cursor.peek()))i=this._consumeComponentOpenStart(e),[s,r,n]=i.parts,r&&(s+=`:${r}`),n&&(s+=`:${n}`),this._attemptCharCodeUntilFn(Ee);else{if(!Pr(this._cursor.peek()))throw this._createError(Os(this._cursor.peek()),this._cursor.getSpan(e));i=this._consumeTagOpenStart(e),r=i.parts[0],n=s=i.parts[1],this._attemptCharCodeUntilFn(Ee)}for(;!nf(this._cursor.peek());)if(this._selectorlessEnabled&&this._cursor.peek()===Ps){let l=this._cursor.clone(),c=l.clone();c.advance(),fa(c.peek())&&this._consumeDirective(l,c)}else this._consumeAttribute();i.type===33?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(l){if(l instanceof G){i?i.type=i.type===33?37:4:(this._beginToken(5,e),this._endToken(["<"]));return}throw l}let o=this._getTagDefinition(n).getContentType(r);o===pn.RAW_TEXT?this._consumeRawTextWithTagClose(i,s,!1):o===pn.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(i,s,!0)}_consumeRawTextWithTagClose(e,n,r){this._consumeRawText(r,()=>!this._attemptCharCode(Qs)||!this._attemptCharCode(Kt)||(this._attemptCharCodeUntilFn(Ee),!this._attemptStrCaseInsensitive(n))?!1:(this._attemptCharCodeUntilFn(Ee),this._attemptCharCode(Bt))),this._beginToken(e.type===33?36:3),this._requireCharCodeUntilFn(s=>s===Bt,3),this._cursor.advance(),this._endToken(e.parts)}_consumeTagOpenStart(e){this._beginToken(0,e);let n=this._consumePrefixAndName(Xr);return this._endToken(n)}_consumeComponentOpenStart(e){this._beginToken(33,e);let n=this._consumeComponentName();return this._endToken(n)}_consumeComponentName(){let e=this._cursor.clone();for(;tf(this._cursor.peek());)this._cursor.advance();let n=this._cursor.getChars(e),r="",s="";return this._cursor.peek()===An&&(this._cursor.advance(),[r,s]=this._consumePrefixAndName(Xr)),[n,r,s]}_consumeAttribute(){this._consumeAttributeName(),this._attemptCharCodeUntilFn(Ee),this._attemptCharCode(Ke)&&(this._attemptCharCodeUntilFn(Ee),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Ee)}_consumeAttributeName(){let e=this._cursor.peek();if(e===Io||e===No)throw this._createError(Os(e),this._cursor.getSpan());this._beginToken(14);let n;if(this._openDirectiveCount>0){let s=0;n=i=>{if(this._openDirectiveCount>0){if(i===yt)s++;else if(i===Be){if(s===0)return!0;s--}}return Xr(i)}}else if(e===_n){let s=0;n=i=>(i===_n?s++:i===Wn&&s--,s<=0?Xr(i):Va(i))}else n=Xr;let r=this._consumePrefixAndName(n);this._endToken(r)}_consumeAttributeValue(){if(this._cursor.peek()===Io||this._cursor.peek()===No){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=()=>Xr(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(Kt)?2:1;this._beginToken(e),this._requireCharCode(Bt),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(Kt)?35:34;this._beginToken(e),this._requireCharCode(Bt),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let r=e.clone();for(;r.peek()!==Bt&&!fa(r.peek());)r.advance();if(fa(r.peek())){this._beginToken(36,e);let s=this._consumeComponentName();this._attemptCharCodeUntilFn(Ee),this._requireCharCode(Bt),this._endToken(s);return}}this._beginToken(3,e),this._attemptCharCodeUntilFn(Ee);let n=this._consumePrefixAndName(Xr);this._attemptCharCodeUntilFn(Ee),this._requireCharCode(Bt),this._endToken(n)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(Xt),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);let e=this._readUntil(st),n=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([n]);else{let s=this._endToken([e]);n!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(st),this._attemptCharCodeUntilFn(Ee),this._beginToken(7);let r=this._readUntil(st);this._endToken([r]),this._requireCharCode(st),this._attemptCharCodeUntilFn(Ee)}_consumeExpansionCaseStart(){this._beginToken(20);let e=this._readUntil(Xt).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Ee),this._beginToken(21),this._requireCharCode(Xt),this._endToken([]),this._attemptCharCodeUntilFn(Ee),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(mt),this._endToken([]),this._attemptCharCodeUntilFn(Ee),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(mt),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,n,r,s){this._beginToken(e);let i=[];for(;!r();){let o=this._cursor.clone();this._attemptStr(Li.start)?(this._endToken([this._processCarriageReturns(i.join(""))],o),i.length=0,this._consumeInterpolation(n,o,s),this._beginToken(e)):this._cursor.peek()===$a?(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(Li.start);let i=this._cursor.clone(),o=null,l=!1;for(;this._cursor.peek()!==Xe&&(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(Li.end)){s.push(this._getProcessedChars(i,c)),s.push(Li.end),this._endToken(s);return}else this._attemptStr("//")&&(l=!0);let u=this._cursor.peek();this._cursor.advance(),u===rs?this._cursor.advance():u===o?o=null:!l&&o===null&&ji(u)&&(o=u)}s.push(this._getProcessedChars(i,this._cursor)),this._endToken(s)}_consumeDirective(e,n){for(this._requireCharCode(Ps),this._cursor.advance();tf(this._cursor.peek());)this._cursor.advance();this._beginToken(38,e);let r=this._cursor.getChars(n);if(this._endToken([r]),this._attemptCharCodeUntilFn(Ee),this._cursor.peek()===yt){for(this._openDirectiveCount++,this._beginToken(39),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Ee);!nf(this._cursor.peek())&&this._cursor.peek()!==Be;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(Ee),this._openDirectiveCount--,this._cursor.peek()!==Be){if(this._cursor.peek()===Bt||this._cursor.peek()===Kt)return;throw this._createError(Os(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(40),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Ee)}}_getProcessedChars(e,n){return this._processCarriageReturns(n.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===Xe||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===mt&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===mt))}_isTagStart(){if(this._cursor.peek()===Qs){let e=this._cursor.clone();e.advance();let n=e.peek();if(Ss<=n&&n<=Xo||Gr<=n&&n<=Ei||n===Kt||n===jc)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()!==Xt)return!1;let e=this._cursor.clone(),n=this._attemptStr(Li.start);return this._cursor=e,!n}};function Ee(t){return!Do(t)||t===Xe}function Xr(t){return Do(t)||t===Bt||t===Qs||t===Kt||t===Io||t===No||t===Ke||t===Xe}function Pw(t){return(t<Ss||Xo<t)&&(t<Gr||Ei<t)&&(t<ep||t>Wd)}function Lw(t){return t===Dt||t===Xe||!ZE(t)}function Mw(t){return t===Dt||t===Xe||!Pr(t)}function Ow(t){return t!==mt}function Fw(t,e){return Zh(t)===Zh(e)}function Zh(t){return t>=Ss&&t<=Xo?t-Ss+Gr:t}function Bw(t){return Pr(t)||un(t)||t===Hr}function ef(t){return t!==Dt&&Ee(t)}function fa(t){return t===Hr||t>=Gr&&t<=Ei}function tf(t){return Pr(t)||un(t)||t===Hr}function nf(t){return t===Kt||t===Bt||t===Qs||t===Xe}function $w(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 rl=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 H(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 Uo('Unexpected character "EOF"',this);let n=this.charAt(e.offset);n===ns?(e.line++,e.column=0):Va(n)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?Xe:this.charAt(e.offset)}locationFromCursor(e){return new Es(e.file,e.state.offset,e.state.line,e.state.column)}},gu=class t extends rl{constructor(n,r){var e=(...HO)=>(super(...HO),a(this,"internalState"),this);n instanceof t?(e(n),this.internalState=C({},n.internalState)):(e(n,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new t(this)}getChars(n){let r=n.clone(),s="";for(;r.internalState.offset<this.internalState.offset;)s+=String.fromCodePoint(r.peek()),r.advance();return s}processEscapeSequence(){let n=()=>this.internalState.peek;if(n()===rs)if(this.internalState=C({},this.state),this.advanceState(this.internalState),n()===jd)this.state.peek=ns;else if(n()===Kd)this.state.peek=Zu;else if(n()===Yd)this.state.peek=Ud;else if(n()===zd)this.state.peek=Ju;else if(n()===QE)this.state.peek=qE;else if(n()===tp)this.state.peek=Vd;else if(n()===Xd)if(this.advanceState(this.internalState),n()===Xt){this.advanceState(this.internalState);let r=this.clone(),s=0;for(;n()!==mt;)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()===Qd){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(Rh(n())){let r="",s=0,i=this.clone();for(;Rh(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 Va(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 Uo("Invalid hexadecimal escape sequence",n);return i}},Uo=class extends Error{constructor(n,r){super(n);a(this,"msg");a(this,"cursor");this.msg=n,this.cursor=r,Object.setPrototypeOf(this,new.target.prototype)}},Le=class t extends G{constructor(n,r,s){super(r,s);a(this,"elementName");this.elementName=n}static create(n,r,s){return new t(n,r,s)}},sl=class{constructor(e,n){a(this,"rootNodes");a(this,"errors");this.rootNodes=e,this.errors=n}},Uw=class{constructor(e){a(this,"getTagDefinition");this.getTagDefinition=e}parse(e,n,r){let s=bw(e,n,this.getTagDefinition,r),i=new yu(s.tokens,this.getTagDefinition);return i.build(),new sl(i.rootNodes,[...s.errors,...i.errors])}},yu=class t{constructor(e,n){a(this,"tokens");a(this,"tagDefinitionResolver");a(this,"_index",-1);a(this,"_peek");a(this,"_containerStack",[]);a(this,"rootNodes",[]);a(this,"errors",[]);this.tokens=e,this.tagDefinitionResolver=n,this._advance()}build(){for(;this._peek.type!==41;)this._peek.type===0||this._peek.type===4?this._consumeElementStartTag(this._advance()):this._peek.type===3?this._consumeElementEndTag(this._advance()):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===19?this._consumeExpansion(this._advance()):this._peek.type===24?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===26?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===28?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===32?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===33||this._peek.type===37?this._consumeComponentStartTag(this._advance()):this._peek.type===36?this._consumeComponentEndTag(this._advance()):this._advance();for(let e of this._containerStack)e instanceof zt&&this.errors.push(Le.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}_advanceIf(e){return this._peek.type===e?this._advance():null}_consumeCdata(e){this._consumeText(this._advance()),this._advanceIf(13)}_consumeComment(e){let n=this._advanceIf(7),r=this._advanceIf(11),s=n!=null?n.parts[0].trim():null,i=r==null?e.sourceSpan:new H(e.sourceSpan.start,r.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Bo(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(Le.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let i=new H(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new ss(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(Le.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:41,parts:[],sourceSpan:s.sourceSpan});let i=new t(r,this.tagDefinitionResolver);if(i.build(),i.errors.length>0)return this.errors=this.errors.concat(i.errors),null;let o=new H(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart),l=new H(n.sourceSpan.start,s.sourceSpan.end,n.sourceSpan.fullStart);return new Za(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(rf(r,21)){if(r.pop(),r.length===0)return n}else return this.errors.push(Le.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===23)if(rf(r,19))r.pop();else return this.errors.push(Le.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===41)return this.errors.push(Le.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.push(this._advance())}}_consumeText(e){var i;let n=[e],r=e.sourceSpan,s=e.parts[0];if(s.length>0&&s[0]===`
|
|
24
|
-
`){let o=this._getContainer();o!=null&&o.children.length===0&&((i=this._getTagDefinition(o))!=null&&i.ignoreFirstLf)&&(
|
|
25
|
-
\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,Vw=new RegExp(`[^${xm}]`),Gw=new RegExp(`[${xm}]{2,}`,"g");function af(t){return t.some(e=>e.name===Tm)}function wm(t){return t.replace(new RegExp(Em,"g")," ")}var il=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(of.has(e.name)||af(e.attrs)){let o=new jt(e.name,xn(this,e.attrs),xn(this,e.directives),e.children,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n);return(s=this.originalNodeMap)==null||s.set(o,e),o}let r=new jt(e.name,e.attrs,e.directives,xn(this,e.children),e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n);return(i=this.originalNodeMap)==null||i.set(r,e),r}visitAttribute(e,n){return e.name!==Tm?e:null}visitText(e,n){var o;let r=e.value.match(Vw),s=n&&(n.prev instanceof ss||n.next instanceof ss);if(this.icuExpansionDepth>0&&this.preserveSignificantWhitespace)return e;if(r||s){let l=e.tokens.map(d=>d.type===5?jw(d):d);if(!this.preserveSignificantWhitespace&&l.length>0){let d=l[0];l.splice(0,1,Hw(d,n));let p=l[l.length-1];l.splice(l.length-1,1,qw(p,n))}let c=Am(e.value),u=this.preserveSignificantWhitespace?c:Ww(c,n),h=new Ns(u,e.sourceSpan,l,e.i18n);return(o=this.originalNodeMap)==null||o.set(h,e),h}return null}visitComment(e,n){return e}visitExpansion(e,n){var s;this.icuExpansionDepth++;let r;try{r=new ss(e.switchValue,e.type,xn(this,e.cases),e.sourceSpan,e.switchValueSourceSpan,e.i18n)}finally{this.icuExpansionDepth--}return(s=this.originalNodeMap)==null||s.set(r,e),r}visitExpansionCase(e,n){var s;let r=new Za(e.value,xn(this,e.expression),e.sourceSpan,e.valueSourceSpan,e.expSourceSpan);return(s=this.originalNodeMap)==null||s.set(r,e),r}visitBlock(e,n){var s;let r=new zt(e.name,e.parameters,xn(this,e.children),e.sourceSpan,e.nameSpan,e.startSourceSpan,e.endSourceSpan);return(s=this.originalNodeMap)==null||s.set(r,e),r}visitBlockParameter(e,n){return e}visitLetDeclaration(e,n){return e}visitComponent(e,n){var s,i;if(e.tagName&&of.has(e.tagName)||af(e.attrs)){let o=new ht(e.componentName,e.tagName,e.fullName,xn(this,e.attrs),xn(this,e.directives),e.children,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return(s=this.originalNodeMap)==null||s.set(o,e),o}let r=new ht(e.componentName,e.tagName,e.fullName,e.attrs,e.directives,xn(this,e.children),e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return(i=this.originalNodeMap)==null||i.set(r,e),r}visitDirective(e,n){return e}visit(e,n){if(this.requireContext&&!n)throw new Error("WhitespaceVisitor requires context. Visit via `visitAllWithSiblings` to get this context.");return!1}};function Hw(t,e){return t.type!==5||!!(e!=null&&e.prev)?t:Cm(t,r=>r.trimStart())}function qw(t,e){return t.type!==5||!!(e!=null&&e.next)?t:Cm(t,r=>r.trimEnd())}function Ww(t,e){let n=!(e!=null&&e.prev),r=!(e!=null&&e.next),s=n?t.trimStart():t;return r?s.trimEnd():s}function jw({type:t,parts:e,sourceSpan:n}){return{type:t,parts:[Am(e[0])],sourceSpan:n}}function Cm({type:t,parts:e,sourceSpan:n},r){return{type:t,parts:[r(e[0])],sourceSpan:n}}function Am(t){return wm(t).replace(Gw," ")}function xn(t,e){let n=[];return e.forEach((r,s)=>{let i={prev:e[s-1],next:e[s+1]},o=r.visit(t,i);o&&n.push(o)}),n}var q;(function(t){t[t.Character=0]="Character",t[t.Identifier=1]="Identifier",t[t.PrivateIdentifier=2]="PrivateIdentifier",t[t.Keyword=3]="Keyword",t[t.String=4]="String",t[t.Operator=5]="Operator",t[t.Number=6]="Number",t[t.RegExpBody=7]="RegExpBody",t[t.RegExpFlags=8]="RegExpFlags",t[t.Error=9]="Error"})(q||(q={}));var vr;(function(t){t[t.Plain=0]="Plain",t[t.TemplateLiteralPart=1]="TemplateLiteralPart",t[t.TemplateLiteralEnd=2]="TemplateLiteralEnd"})(vr||(vr={}));var Kw=["var","let","as","null","undefined","true","false","if","else","this","typeof","void","in","instanceof"],Vo=class{tokenize(e){return new vu(e).scan()}},qt=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===q.Character&&this.numValue===e}isNumber(){return this.type===q.Number}isString(){return this.type===q.String}isOperator(e){return this.type===q.Operator&&this.strValue===e}isIdentifier(){return this.type===q.Identifier}isPrivateIdentifier(){return this.type===q.PrivateIdentifier}isKeyword(){return this.type===q.Keyword}isKeywordLet(){return this.type===q.Keyword&&this.strValue==="let"}isKeywordAs(){return this.type===q.Keyword&&this.strValue==="as"}isKeywordNull(){return this.type===q.Keyword&&this.strValue==="null"}isKeywordUndefined(){return this.type===q.Keyword&&this.strValue==="undefined"}isKeywordTrue(){return this.type===q.Keyword&&this.strValue==="true"}isKeywordFalse(){return this.type===q.Keyword&&this.strValue==="false"}isKeywordThis(){return this.type===q.Keyword&&this.strValue==="this"}isKeywordTypeof(){return this.type===q.Keyword&&this.strValue==="typeof"}isKeywordVoid(){return this.type===q.Keyword&&this.strValue==="void"}isKeywordIn(){return this.type===q.Keyword&&this.strValue==="in"}isKeywordInstanceOf(){return this.type===q.Keyword&&this.strValue==="instanceof"}isError(){return this.type===q.Error}isRegExpBody(){return this.type===q.RegExpBody}isRegExpFlags(){return this.type===q.RegExpFlags}toNumber(){return this.type===q.Number?this.numValue:-1}isTemplateLiteralPart(){return this.isString()&&this.kind===vr.TemplateLiteralPart}isTemplateLiteralEnd(){return this.isString()&&this.kind===vr.TemplateLiteralEnd}isTemplateLiteralInterpolationStart(){return this.isOperator("${")}toString(){switch(this.type){case q.Character:case q.Identifier:case q.Keyword:case q.Operator:case q.PrivateIdentifier:case q.String:case q.Error:case q.RegExpBody:case q.RegExpFlags:return this.strValue;case q.Number:return this.numValue.toString();default:return null}}},Ki=class extends qt{constructor(n,r,s,i){super(n,r,q.String,0,s);a(this,"kind");this.kind=i}};function Mi(t,e,n){return new qt(t,e,q.Character,n,String.fromCharCode(n))}function zw(t,e,n){return new qt(t,e,q.Identifier,0,n)}function Xw(t,e,n){return new qt(t,e,q.PrivateIdentifier,0,n)}function Yw(t,e,n){return new qt(t,e,q.Keyword,0,n)}function or(t,e,n){return new qt(t,e,q.Operator,0,n)}function Qw(t,e,n){return new qt(t,e,q.Number,n,"")}function Jw(t,e,n){return new qt(t,e,q.Error,0,n)}function Zw(t,e,n){return new qt(t,e,q.RegExpBody,0,n)}function eC(t,e,n){return new qt(t,e,q.RegExpFlags,0,n)}var Oi=new qt(-1,-1,q.Character,0,""),vu=class{constructor(e){a(this,"input");a(this,"tokens",[]);a(this,"length");a(this,"peek",0);a(this,"index",-1);a(this,"braceStack",[]);this.input=e,this.length=e.length,this.advance()}scan(){let e=this.scanToken();for(;e!==null;)this.tokens.push(e),e=this.scanToken();return this.tokens}advance(){this.peek=++this.index>=this.length?Xe:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,n=this.length,r=this.peek,s=this.index;for(;r<=Gd;)if(++s>=n){r=Xe;break}else r=e.charCodeAt(s);if(this.peek=r,this.index=s,s>=n)return null;if(lf(r))return this.scanIdentifier();if(un(r))return this.scanNumber(s);let i=s;switch(r){case Yr:return this.advance(),un(this.peek)?this.scanNumber(i):this.peek!==Yr?Mi(i,this.index,Yr):(this.advance(),this.peek===Yr?(this.advance(),or(i,this.index,"...")):this.error(`Unexpected character [${String.fromCharCode(r)}]`,0));case yt:case Be:case _n:case Wn:case st:case An:case Dt:return this.scanCharacter(i,r);case Xt:return this.scanOpenBrace(i,r);case mt:return this.scanCloseBrace(i,r);case Io:case No:return this.scanString();case Kc:return this.advance(),this.scanTemplateLiteralPart(i);case Hd:return this.scanPrivateIdentifier();case qd:return this.scanComplexOperator(i,"+",Ke,"=");case Ua:return this.scanComplexOperator(i,"-",Ke,"=");case Kt:return this.isStartOfRegex()?this.scanRegex(s):this.scanComplexOperator(i,"/",Ke,"=");case WE:return this.scanComplexOperator(i,"%",Ke,"=");case YE:return this.scanOperator(i,"^");case bh:return this.scanStar(i);case _h:return this.scanQuestion(i);case Qs:case Bt:return this.scanComplexOperator(i,String.fromCharCode(r),Ke,"=");case jc:return this.scanComplexOperator(i,"!",Ke,"=",Ke,"=");case Ke:return this.scanEquals(i);case $a:return this.scanComplexOperator(i,"&",$a,"&",Ke,"=");case kh:return this.scanComplexOperator(i,"|",kh,"|",Ke,"=");case Jd:for(;Do(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(r)}]`,0)}scanCharacter(e,n){return this.advance(),Mi(e,this.index,n)}scanOperator(e,n){return this.advance(),or(e,this.index,n)}scanOpenBrace(e,n){return this.braceStack.push("expression"),this.advance(),Mi(e,this.index,n)}scanCloseBrace(e,n){return this.advance(),this.braceStack.pop()==="interpolation"?(this.tokens.push(Mi(e,this.index,mt)),this.scanTemplateLiteralPart(this.index)):Mi(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),or(e,this.index,l)}scanEquals(e){this.advance();let n="=";if(this.peek===Ke)this.advance(),n+="=";else if(this.peek===Bt)return this.advance(),n+=">",or(e,this.index,n);return this.peek===Ke&&(this.advance(),n+="="),or(e,this.index,n)}scanIdentifier(){let e=this.index;for(this.advance();cf(this.peek);)this.advance();let n=this.input.substring(e,this.index);return Kw.indexOf(n)>-1?Yw(e,this.index,n):zw(e,this.index,n)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!lf(this.peek))return this.error("Invalid character [#]",-1);for(;cf(this.peek);)this.advance();let n=this.input.substring(e,this.index);return Xw(e,this.index,n)}scanNumber(e){let n=this.index===e,r=!1;for(this.advance();;){if(!un(this.peek))if(this.peek===Hr){if(!un(this.input.charCodeAt(this.index-1))||!un(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);r=!0}else if(this.peek===Yr)n=!1;else if(tC(this.peek)){if(this.advance(),nC(this.peek)&&this.advance(),!un(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 Qw(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==rs){let l=this.scanStringBackslash(r,s);if(typeof l!="string")return l;r=l,s=this.index}else{if(this.peek==Xe)return this.error("Unterminated quote",0);this.advance()}let o=i.substring(s,this.index);return this.advance(),new Ki(e,this.index,r+o,vr.Plain)}scanQuestion(e){this.advance();let n="?";return this.peek===_h?(n+="?",this.advance(),this.peek===Ke&&(n+="=",this.advance())):this.peek===Yr&&(n+=".",this.advance()),or(e,this.index,n)}scanTemplateLiteralPart(e){let n="",r=this.index;for(;this.peek!==Kc;)if(this.peek===rs){let i=this.scanStringBackslash(n,r);if(typeof i!="string")return i;n=i,r=this.index}else if(this.peek===Tl){let i=this.index;if(this.advance(),this.peek===Xt)return this.braceStack.push("interpolation"),this.tokens.push(new Ki(e,i,n+this.input.substring(r,i),vr.TemplateLiteralPart)),this.advance(),or(i,this.index,this.input.substring(i,this.index))}else{if(this.peek===Xe)return this.error("Unterminated template literal",0);this.advance()}let s=this.input.substring(r,this.index);return this.advance(),new Ki(e,this.index,n+s,vr.TemplateLiteralEnd)}error(e,n){let r=this.index+n;return Jw(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===Xd){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=rC(this.peek),this.advance();return e+=String.fromCharCode(r),e}scanStar(e){this.advance();let n="*";return this.peek===bh?(n+="*",this.advance(),this.peek===Ke&&(n+="=",this.advance())):this.peek===Ke&&(n+="=",this.advance()),or(e,this.index,n)}isStartOfRegex(){if(this.tokens.length===0)return!0;let e=this.tokens[this.tokens.length-1];if(e.isOperator("!")){let n=this.tokens.length>1?this.tokens[this.tokens.length-2]:null;return n===null||n.type!==q.Identifier&&!n.isCharacter(Be)&&!n.isCharacter(Wn)}return e.type===q.Operator||e.isCharacter(yt)||e.isCharacter(_n)||e.isCharacter(st)||e.isCharacter(An)}scanRegex(e){this.advance();let n=this.index,r=!1,s=!1;for(;;){let c=this.peek;if(c===Xe)return this.error("Unterminated regular expression",0);if(r)r=!1;else if(c===rs)r=!0;else if(c===_n)s=!0;else if(c===Wn)s=!1;else if(c===Kt&&!s)break;this.advance()}let i=this.input.substring(n,this.index);this.advance();let o=Zw(e,this.index,i),l=this.scanRegexFlags(this.index);return l!==null?(this.tokens.push(o),l):o}scanRegexFlags(e){if(!Pr(this.peek))return null;for(;Pr(this.peek);)this.advance();return eC(e,this.index,this.input.substring(e,this.index))}};function lf(t){return Ss<=t&&t<=Xo||Gr<=t&&t<=Ei||t==Hr||t==Tl}function cf(t){return Pr(t)||un(t)||t==Hr||t==Tl}function tC(t){return t==JE||t==KE}function nC(t){return t==Ua||t==qd}function rC(t){switch(t){case jd:return ns;case tp:return Vd;case Kd:return Zu;case zd:return Ju;case Yd:return Ud;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 Su=class{constructor(e,n,r){a(this,"strings");a(this,"expressions");a(this,"offsets");this.strings=e,this.expressions=n,this.offsets=r}},Eu=class{constructor(e,n,r){a(this,"templateBindings");a(this,"warnings");a(this,"errors");this.templateBindings=e,this.warnings=n,this.errors=r}};function pr(t){return t.start.toString()||"(unknown)"}var ol=class{constructor(e,n=!1){a(this,"_lexer");a(this,"_supportsDirectPipeReferences");this._lexer=e,this._supportsDirectPipeReferences=n}parseAction(e,n,r){let s=[];this._checkNoInterpolation(s,e,n);let{stripped:i}=this._stripComments(e),o=this._lexer.tokenize(i),l=new Jr(e,n,r,o,1,s,0,this._supportsDirectPipeReferences).parseChain();return new ve(l,e,pr(n),r,s)}parseBinding(e,n,r){let s=[],i=this._parseBindingAst(e,n,r,s);return new ve(i,e,pr(n),r,s)}checkSimpleExpression(e){let n=new Tu;return e.visit(n),n.errors}parseSimpleBinding(e,n,r){let s=[],i=this._parseBindingAst(e,n,r,s),o=this.checkSimpleExpression(i);return o.length>0&&s.push(Ks(`Host binding expression cannot contain ${o.join(" ")}`,e,"",n)),new ve(i,e,pr(n),r,s)}_parseBindingAst(e,n,r,s){this._checkNoInterpolation(s,e,n);let{stripped:i}=this._stripComments(e),o=this._lexer.tokenize(i);return new Jr(e,n,r,o,0,s,0,this._supportsDirectPipeReferences).parseChain()}parseTemplateBindings(e,n,r,s,i){let o=this._lexer.tokenize(n),l=[];return new Jr(n,r,i,o,0,l,0,this._supportsDirectPipeReferences).parseTemplateBindings({source:e,span:new tt(s,s+e.length)})}parseInterpolation(e,n,r,s){var h;let i=[],{strings:o,expressions:l,offsets:c}=this.splitInterpolation(e,n,i,s);if(l.length===0)return null;let u=[];for(let d=0;d<l.length;++d){let p=(h=s==null?void 0:s[d*2+1])==null?void 0:h.sourceSpan,g=l[d].text,{stripped:v,hasComments:E}=this._stripComments(g),N=this._lexer.tokenize(v);if(E&&v.trim().length===0&&N.length===0){i.push(Ks("Interpolation expression cannot only contain a comment",e,`at column ${l[d].start} in`,n));continue}let D=new Jr(p?g:e,p||n,r,N,0,i,c[d],this._supportsDirectPipeReferences).parseChain();u.push(D)}return this.createInterpolationAst(o.map(d=>d.text),u,e,pr(n),r,i)}parseInterpolationExpression(e,n,r){let{stripped:s}=this._stripComments(e),i=this._lexer.tokenize(s),o=[],l=new Jr(e,n,r,i,0,o,0,this._supportsDirectPipeReferences).parseChain(),c=["",""];return this.createInterpolationAst(c,[l],e,pr(n),r,o)}createInterpolationAst(e,n,r,s,i,o){let l=new wr(0,r.length),c=new tr(l,l.toAbsolute(i),e,n);return new ve(c,r,s,i,o)}splitInterpolation(e,n,r,s){var v;let i=[],o=[],l=[],c=s?iC(s):null,u=0,h=!1,d=!1,p="{{",g="}}";for(;u<e.length;)if(h){let E=u,N=E+p.length,D=this._getInterpolationEndIndex(e,g,N);if(D===-1){h=!1,d=!0;break}let b=D+g.length,P=e.substring(N,D);P.trim().length===0&&r.push(Ks("Blank expressions are not allowed in interpolated strings",e,`at column ${u} in`,n)),o.push({text:P,start:E,end:b});let ne=((v=c==null?void 0:c.get(E))!=null?v:E)+p.length;l.push(ne),u=b,h=!1}else{let E=u;u=e.indexOf(p,u),u===-1&&(u=e.length);let N=e.substring(E,u);i.push({text:N,start:E,end:u}),h=!0}if(!h)if(d){let E=i[i.length-1];E.text+=e.substring(u),E.end=e.length}else i.push({text:e.substring(u),start:u,end:e.length});return new Su(i,o,l)}wrapLiteralPrimitive(e,n,r){let s=new wr(0,e==null?0:e.length);return new ve(new dt(s,s.toAbsolute(r),e),e,typeof n=="string"?n:pr(n),r,[])}_stripComments(e){let n=this._commentStart(e);return n!=null?{stripped:e.substring(0,n),hasComments:!0}:{stripped:e,hasComments:!1}}_commentStart(e){let n=null;for(let r=0;r<e.length-1;r++){let s=e.charCodeAt(r),i=e.charCodeAt(r+1);if(s===Kt&&i==Kt&&n==null)return r;n===s?n=null:n==null&&ji(s)&&(n=s)}return null}_checkNoInterpolation(e,n,r){let s=-1,i=-1;for(let o of this._forEachUnquotedChar(n,0))if(s===-1)n.startsWith("{{")&&(s=o);else if(i=this._getInterpolationEndIndex(n,"}}",o),i>-1)break;s>-1&&i>-1&&e.push(Ks("Got interpolation ({{}}) where expression was expected",n,`at column ${s} in`,r))}_getInterpolationEndIndex(e,n,r){for(let s of this._forEachUnquotedChar(e,r)){if(e.startsWith(n,s))return s;if(e.startsWith("//",s))return e.indexOf(n,s)}return-1}*_forEachUnquotedChar(e,n){let r=null,s=0;for(let i=n;i<e.length;i++){let o=e[i];ji(e.charCodeAt(i))&&(r===null||r===o)&&s%2===0?r=r===null?o:null:r===null&&(yield i),s=o==="\\"?s+1:0}}},js;(function(t){t[t.None=0]="None",t[t.Writable=1]="Writable"})(js||(js={}));var uf=new Set(["d","g","i","m","s","u","v","y"]),Jr=class{constructor(e,n,r,s,i,o,l,c){a(this,"input");a(this,"parseSourceSpan");a(this,"absoluteOffset");a(this,"tokens");a(this,"parseFlags");a(this,"errors");a(this,"offset");a(this,"supportsDirectPipeReferences");a(this,"rparensExpected",0);a(this,"rbracketsExpected",0);a(this,"rbracesExpected",0);a(this,"context",js.None);a(this,"sourceSpanCache",new Map);a(this,"index",0);this.input=e,this.parseSourceSpan=n,this.absoluteOffset=r,this.tokens=s,this.parseFlags=i,this.errors=o,this.offset=l,this.supportsDirectPipeReferences=c}peek(e){let n=this.index+e;return n<this.tokens.length?this.tokens[n]:Oi}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 wr(e,r)}sourceSpan(e,n){let r=`${e}@${this.inputIndex}:${n}`;return this.sourceSpanCache.has(r)||this.sourceSpanCache.set(r,this.span(e,n).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(r)}advance(){this.index++}withContext(e,n){this.context|=e;let r=n();return this.context^=e,r}consumeOptionalCharacter(e){return this.next.isCharacter(e)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return this.next.isOperator(e)?(this.advance(),!0):!1}isAssignmentOperator(e){return e.type===q.Operator&&xe.isAssignmentOperation(e.strValue)}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===Oi?"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(Dt))for(this.parseFlags&1||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(Dt););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 et(this.span(r,s),this.sourceSpan(r,s))}return e.length==1?e[0]:new Cr(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 wr(o,o).toAbsolute(this.absoluteOffset));let l=[];for(;this.consumeOptionalCharacter(An);)l.push(this.parseExpression());let c;if(this.supportsDirectPipeReferences){let u=s.charCodeAt(0);c=u===Hr||u>=Gr&&u<=Ei?zs.ReferencedDirectly:zs.ReferencedByName}else c=zs.ReferencedByName;n=new hs(this.span(e),this.sourceSpan(e,o),n,s,l,c,i)}while(this.consumeOptionalOperator("|"))}return n}parseExpression(){return this.parseConditional()}parseConditional(){let e=this.inputIndex,n=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){let r=this.parsePipe(),s;if(this.consumeOptionalCharacter(An))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 et(this.span(e),this.sourceSpan(e))}return new ii(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 xe(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 xe(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 xe(this.span(e),this.sourceSpan(e),"??",n,r)}return n}parseEquality(){let e=this.inputIndex,n=this.parseRelational();for(;this.next.type==q.Operator;){let r=this.next.strValue;switch(r){case"==":case"===":case"!=":case"!==":this.advance();let s=this.parseRelational();n=new xe(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==q.Operator||this.next.isKeywordIn()||this.next.isKeywordInstanceOf();){let r=this.next.strValue;switch(r){case"<":case">":case"<=":case">=":case"in":case"instanceof":this.advance();let s=this.parseAdditive();n=new xe(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==q.Operator;){let r=this.next.strValue;switch(r){case"+":case"-":this.advance();let s=this.parseMultiplicative();n=new xe(this.span(e),this.sourceSpan(e),r,n,s);continue}break}return n}parseMultiplicative(){let e=this.inputIndex,n=this.parseExponentiation();for(;this.next.type==q.Operator;){let r=this.next.strValue;switch(r){case"*":case"%":case"/":this.advance();let s=this.parseExponentiation();n=new xe(this.span(e),this.sourceSpan(e),r,n,s);continue}break}return n}parseExponentiation(){let e=this.inputIndex,n=this.parsePrefix();for(;this.next.type==q.Operator&&this.next.strValue==="**";){(n instanceof Xs||n instanceof Ln||n instanceof ho||n instanceof fo)&&this.error("Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence"),this.advance();let r=this.parseExponentiation();n=new xe(this.span(e),this.sourceSpan(e),"**",n,r)}return n}parsePrefix(){if(this.next.type==q.Operator){let e=this.inputIndex,n=this.next.strValue,r;switch(n){case"+":return this.advance(),r=this.parsePrefix(),Xs.createPlus(this.span(e),this.sourceSpan(e),r);case"-":return this.advance(),r=this.parsePrefix(),Xs.createMinus(this.span(e),this.sourceSpan(e),r);case"!":return this.advance(),r=this.parsePrefix(),new Ln(this.span(e),this.sourceSpan(e),r)}}else if(this.next.isKeywordTypeof()){let e=this.inputIndex;this.advance();let n=this.parsePrefix();return new ho(this.span(e),this.sourceSpan(e),n)}else if(this.next.isKeywordVoid()){let e=this.inputIndex;this.advance();let n=this.parsePrefix();return new fo(this.span(e),this.sourceSpan(e),n)}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,n=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(Yr))n=this.parseAccessMember(n,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(yt)?n=this.parseCall(n,e,!0):n=this.consumeOptionalCharacter(_n)?this.parseKeyedReadOrWrite(n,e,!0):this.parseAccessMember(n,e,!0);else if(this.consumeOptionalCharacter(_n))n=this.parseKeyedReadOrWrite(n,e,!1);else if(this.consumeOptionalCharacter(yt))n=this.parseCall(n,e,!1);else if(this.consumeOptionalOperator("!"))n=new mo(this.span(e),this.sourceSpan(e),n);else if(this.next.isTemplateLiteralEnd())n=this.parseNoInterpolationTaggedTemplateLiteral(n,e);else if(this.next.isTemplateLiteralPart())n=this.parseTaggedTemplateLiteral(n,e);else return n}parsePrimary(){let e=this.inputIndex;if(this.isArrowFunction())return this.parseArrowFunction(e);if(this.consumeOptionalCharacter(yt)){this.rparensExpected++;let n=this.parsePipe();return this.consumeOptionalCharacter(Be)||(this.error("Missing closing parentheses"),this.consumeOptionalCharacter(Be)),this.rparensExpected--,new vo(this.span(e),this.sourceSpan(e),n)}else{if(this.next.isKeywordNull())return this.advance(),new dt(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new dt(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new dt(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new dt(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordIn())return this.advance(),new dt(this.span(e),this.sourceSpan(e),"in");if(this.next.isKeywordThis())return this.advance(),new rn(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(_n))return this.parseLiteralArray(e);if(this.next.isCharacter(Xt))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new Je(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let n=this.next.toNumber();return this.advance(),new dt(this.span(e),this.sourceSpan(e),n)}else{if(this.next.isTemplateLiteralEnd())return this.parseNoInterpolationTemplateLiteral();if(this.next.isTemplateLiteralPart())return this.parseTemplateLiteral();if(this.next.isString()&&this.next.kind===vr.Plain){let n=this.next.toString();return this.advance(),new dt(this.span(e),this.sourceSpan(e),n)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new et(this.span(e),this.sourceSpan(e))):this.next.isRegExpBody()?this.parseRegularExpressionLiteral():this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new et(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new et(this.span(e),this.sourceSpan(e)))}}}parseLiteralArray(e){this.rbracketsExpected++;let n=[];do if(this.next.isOperator("..."))n.push(this.parseSpreadElement());else if(!this.next.isCharacter(Wn))n.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(st));return this.rbracketsExpected--,this.expectCharacter(Wn),new po(this.span(e),this.sourceSpan(e),n)}parseLiteralMap(){let e=[],n=[],r=this.inputIndex;if(this.expectCharacter(Xt),!this.consumeOptionalCharacter(mt)){this.rbracesExpected++;do{let s=this.inputIndex;if(this.next.isOperator("...")){this.advance(),e.push({kind:"spread",span:this.span(s),sourceSpan:this.sourceSpan(s)}),n.push(this.parsePipe());continue}let i=this.next.isString(),o=this.expectIdentifierOrKeywordOrString(),l=this.span(s),c=this.sourceSpan(s),u={kind:"property",key:o,quoted:i,span:l,sourceSpan:c};e.push(u),i?(this.expectCharacter(An),n.push(this.parsePipe())):this.consumeOptionalCharacter(An)?n.push(this.parsePipe()):(u.isShorthandInitialized=!0,n.push(new le(l,c,c,new Je(l,c),o)))}while(this.consumeOptionalCharacter(st)&&!this.next.isCharacter(mt));this.rbracesExpected--,this.expectCharacter(mt)}return new fs(this.span(r),this.sourceSpan(r),e,n)}parseAccessMember(e,n,r){let s=this.inputIndex,i=this.withContext(js.Writable,()=>{var c;let l=(c=this.expectIdentifierOrKeyword())!=null?c:"";return l.length===0&&this.error("Expected identifier for property access",e.span.end),l}),o=this.sourceSpan(s);if(r)return this.isAssignmentOperator(this.next)?(this.advance(),this.error("The '?.' operator cannot be used in the assignment"),new et(this.span(n),this.sourceSpan(n))):new Ze(this.span(n),this.sourceSpan(n),o,e,i);if(this.isAssignmentOperator(this.next)){let l=this.next.strValue;if(!(this.parseFlags&1))return this.advance(),this.error("Bindings cannot contain assignments"),new et(this.span(n),this.sourceSpan(n));let c=new le(this.span(n),this.sourceSpan(n),o,e,i);this.advance();let u=this.parseConditional();return new xe(this.span(n),this.sourceSpan(n),l,c,u)}else return new le(this.span(n),this.sourceSpan(n),o,e,i)}parseCall(e,n,r){let s=this.inputIndex;this.rparensExpected++;let i=this.parseCallArguments(),o=this.span(s,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(Be),this.rparensExpected--;let l=this.span(n),c=this.sourceSpan(n);return r?new Ut(l,c,e,i,o):new Ct(l,c,e,i,o)}parseCallArguments(){if(this.next.isCharacter(Be))return[];let e=[];do e.push(this.next.isOperator("...")?this.parseSpreadElement():this.parsePipe());while(this.consumeOptionalCharacter(st));return e}parseSpreadElement(){this.next.isOperator("...")||this.error("Spread element must start with '...' operator");let e=this.inputIndex;this.advance();let n=this.parsePipe(),r=this.span(e),s=this.sourceSpan(e);return new ka(r,s,n)}expectTemplateBindingKey(){let e="",n=!1,r=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),n=this.consumeOptionalOperator("-"),n&&(e+="-");while(n);return{source:e,span:new 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 Eu(n,[],this.errors)}parseKeyedReadOrWrite(e,n,r){return this.withContext(js.Writable,()=>{this.rbracketsExpected++;let s=this.parsePipe();if(s instanceof et&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(Wn),this.isAssignmentOperator(this.next)){let i=this.next.strValue;if(r)this.advance(),this.error("The '?.' operator cannot be used in the assignment");else{let o=new Pn(this.span(n),this.sourceSpan(n),e,s);this.advance();let l=this.parseConditional();return new xe(this.span(n),this.sourceSpan(n),i,o,l)}}else return r?new Ar(this.span(n),this.sourceSpan(n),e,s):new Pn(this.span(n),this.sourceSpan(n),e,s);return new et(this.span(n),this.sourceSpan(n))})}parseDirectiveKeywordBindings(e){let n=[];this.consumeOptionalCharacter(An);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 Mc(o,e,r)),i&&n.push(i),n}getDirectiveBoundTarget(){if(this.next===Oi||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:n,end:r}=e.span,s=this.input.substring(n,r);return new ve(e,s,pr(this.parseSourceSpan),this.absoluteOffset+n,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let n=this.expectTemplateBindingKey();this.consumeStatementTerminator();let r=new tt(e.span.start,this.currentAbsoluteOffset);return new So(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 So(s,n,r)}parseNoInterpolationTaggedTemplateLiteral(e,n){let r=this.parseNoInterpolationTemplateLiteral();return new go(this.span(n),this.sourceSpan(n),e,r)}parseNoInterpolationTemplateLiteral(){let e=this.next.strValue,n=this.inputIndex;this.advance();let r=this.span(n),s=this.sourceSpan(n);return new yo(r,s,[new Ra(r,s,e)],[])}parseTaggedTemplateLiteral(e,n){let r=this.parseTemplateLiteral();return new go(this.span(n),this.sourceSpan(n),e,r)}parseTemplateLiteral(){let e=[],n=[],r=this.inputIndex;for(;this.next!==Oi;){let s=this.next;if(s.isTemplateLiteralPart()||s.isTemplateLiteralEnd()){let i=this.inputIndex;if(this.advance(),e.push(new Ra(this.span(i),this.sourceSpan(i),s.strValue)),s.isTemplateLiteralEnd())break}else if(s.isTemplateLiteralInterpolationStart()){this.advance(),this.rbracesExpected++;let i=this.parsePipe();i instanceof et?this.error("Template literal interpolation cannot be empty"):n.push(i),this.rbracesExpected--}else this.advance()}return new yo(this.span(r),this.sourceSpan(r),e,n)}parseRegularExpressionLiteral(){let e=this.next;if(this.advance(),!e.isRegExpBody())return new et(this.span(this.inputIndex),this.sourceSpan(this.inputIndex));let n=null;if(this.next.isRegExpFlags()){n=this.next,this.advance();let i=new Set;for(let o=0;o<n.strValue.length;o++){let l=n.strValue[o];uf.has(l)?i.has(l)?this.error(`Duplicate regular expression flag "${l}"`,n.index+o):i.add(l):this.error(`Unsupported regular expression flag "${l}". The supported flags are: `+Array.from(uf,c=>`"${c}"`).join(", "),n.index+o)}}let r=e.index,s=n?n.end:e.end;return new Pa(this.span(r,s),this.sourceSpan(r,s),e.strValue,n?n.strValue:null)}parseArrowFunction(e){let n;if(this.next.isIdentifier()){let s=this.next;this.advance(),n=[this.getArrowFunctionIdentifierArg(s)]}else this.next.isCharacter(yt)?(this.rparensExpected++,this.advance(),n=this.parseArrowFunctionParameters(),this.rparensExpected--):(n=[],this.error(`Unexpected token ${this.next}`));this.expectOperator("=>");let r;if(this.next.isCharacter(Xt))this.error("Multi-line arrow functions are not supported. If you meant to return an object literal, wrap it with parentheses."),r=new et(this.span(e),this.sourceSpan(e));else{let s=this.parseFlags;this.parseFlags=1,r=this.parseExpression(),this.parseFlags=s}return new oi(this.span(e),this.sourceSpan(e),n,r)}parseArrowFunctionParameters(){let e=[];if(!this.consumeOptionalCharacter(Be))for(;this.next!==Oi;)if(this.next.isIdentifier()){let n=this.next;if(this.advance(),e.push(this.getArrowFunctionIdentifierArg(n)),this.consumeOptionalCharacter(Be))break;this.expectCharacter(st)}else{this.error(`Unexpected token ${this.next}`);break}return e}getArrowFunctionIdentifierArg(e){return new Lc(e.strValue,this.span(e.index),this.sourceSpan(e.index))}isArrowFunction(){let e=this.index,n=this.tokens;if(e>n.length-2)return!1;if(n[e].isIdentifier()&&n[e+1].isOperator("=>"))return!0;if(n[e].isCharacter(yt)){let r=e+1;for(r;r<n.length&&!(!n[r].isIdentifier()&&!n[r].isCharacter(st));r++);return r<n.length-1&&n[r].isCharacter(Be)&&n[r+1].isOperator("=>")}return!1}consumeStatementTerminator(){this.consumeOptionalCharacter(Dt)||this.consumeOptionalCharacter(st)}error(e,n=this.index){this.errors.push(Ks(e,this.input,this.getErrorLocationText(n),this.parseSourceSpan)),this.skip()}getErrorLocationText(e){return e<this.tokens.length?`at column ${this.tokens[e].index+1} in`:"at the end of the expression"}_reportErrorForPrivateIdentifier(e,n){let r=`Private identifiers are not supported. Unexpected private identifier: ${e}`;n!==null&&(r+=`, ${n}`),this.error(r)}skip(){let e=this.next;for(;this.index<this.tokens.length&&!e.isCharacter(Dt)&&!e.isOperator("|")&&(this.rparensExpected<=0||!e.isCharacter(Be))&&(this.rbracesExpected<=0||!e.isCharacter(mt))&&(this.rbracketsExpected<=0||!e.isCharacter(Wn))&&(!(this.context&js.Writable)||!this.isAssignmentOperator(e));)this.next.isError()&&this.errors.push(Ks(this.next.toString(),this.input,this.getErrorLocationText(this.next.index),this.parseSourceSpan)),this.advance(),e=this.next}};function Ks(t,e,n,r){n.length>0&&(n=` ${n} `);let s=pr(r),i=`Parser Error: ${t}${n}[${e}] in ${s}`;return new G(r,i)}var Tu=class extends Nr{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 xu)}var xu=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)}]`}visitLiteralArray(e,n){return`[${e.expressions.map(r=>r.visit(this,n)).join(", ")}]`}visitLiteralMap(e,n){return`{${aC(e.keys.map(r=>r.kind==="spread"?"...":r.quoted?`'${r.key}'`:r.key),e.values.map(r=>r.visit(this,n))).map(([r,s])=>`${r}: ${s}`).join(", ")}}`}visitLiteralPrimitive(e){if(e.value===null)return"null";switch(typeof e.value){case"number":case"boolean":return e.value.toString();case"undefined":return"undefined";case"string":return`'${e.value.replace(/'/g,"\\'")}'`;default:throw new Error(`Unsupported primitive type: ${e.value}`)}}visitPipe(e,n){return`${e.exp.visit(this,n)} | ${e.name}`}visitPrefixNot(e,n){return`!${e.expression.visit(this,n)}`}visitNonNullAssert(e,n){return`${e.expression.visit(this,n)}!`}visitPropertyRead(e,n){return e.receiver instanceof Je||e.receiver instanceof rn?e.name:`${e.receiver.visit(this,n)}.${e.name}`}visitSafePropertyRead(e,n){return`${e.receiver.visit(this,n)}?.${e.name}`}visitSafeKeyedRead(e,n){return`${e.receiver.visit(this,n)}?.[${e.key.visit(this,n)}]`}visitCall(e,n){return`${e.receiver.visit(this,n)}(${e.args.map(r=>r.visit(this,n)).join(", ")})`}visitSafeCall(e,n){return`${e.receiver.visit(this,n)}?.(${e.args.map(r=>r.visit(this,n)).join(", ")})`}visitTypeofExpression(e,n){return`typeof ${e.expression.visit(this,n)}`}visitVoidExpression(e,n){return`void ${e.expression.visit(this,n)}`}visitRegularExpressionLiteral(e,n){return`/${e.body}/${e.flags||""}`}visitArrowFunction(e,n){let r;return e.parameters.length===1?r=e.parameters[0].name:r=`(${e.parameters.map(s=>s.name).join(", ")})`,`${r} => ${e.body.visit(this,n)}`}visitASTWithSource(e,n){return e.ast.visit(this,n)}visitTemplateLiteral(e,n){let r="";for(let s=0;s<e.elements.length;s++){r+=e.elements[s].visit(this,n);let i=s<e.expressions.length?e.expressions[s]:null;i!==null&&(r+="${"+i.visit(this,n)+"}")}return"`"+r+"`"}visitTemplateLiteralElement(e,n){return e.text}visitTaggedTemplateLiteral(e,n){return e.tag.visit(this,n)+e.template.visit(this,n)}visitSpreadElement(e,n){return`...${e.expression.visit(this,n)}`}visitParenthesizedExpression(e,n){return"("+e.expression.visit(this,n)+")"}};function 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 Ca;function pf(){return Ca||(Ca={},Fi(ue.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Fi(ue.STYLE,["*|style"]),Fi(ue.URL,["*|formAction","area|href","a|href","a|xlink:href","form|action","annotation|href","annotation|xlink:href","annotation-xml|href","annotation-xml|xlink:href","maction|href","maction|xlink:href","malignmark|href","malignmark|xlink:href","math|href","math|xlink:href","mroot|href","mroot|xlink:href","msqrt|href","msqrt|xlink:href","merror|href","merror|xlink:href","mfrac|href","mfrac|xlink:href","mglyph|href","mglyph|xlink:href","msub|href","msub|xlink:href","msup|href","msup|xlink:href","msubsup|href","msubsup|xlink:href","mmultiscripts|href","mmultiscripts|xlink:href","mprescripts|href","mprescripts|xlink:href","mi|href","mi|xlink:href","mn|href","mn|xlink:href","mo|href","mo|xlink:href","mpadded|href","mpadded|xlink:href","mphantom|href","mphantom|xlink:href","mrow|href","mrow|xlink:href","ms|href","ms|xlink:href","mspace|href","mspace|xlink:href","mstyle|href","mstyle|xlink:href","mtable|href","mtable|xlink:href","mtd|href","mtd|xlink:href","mtr|href","mtr|xlink:href","mtext|href","mtext|xlink:href","mover|href","mover|xlink:href","munder|href","munder|xlink:href","munderover|href","munderover|xlink:href","semantics|href","semantics|xlink:href","none|href","none|xlink:href","img|src","video|src"]),Fi(ue.RESOURCE_URL,["base|href","embed|src","frame|src","iframe|src","link|href","object|codebase","object|data","script|src","script|href","script|xlink:href"]),Fi(ue.ATTRIBUTE_NO_BINDING,["animate|attributeName","set|attributeName","animateMotion|attributeName","animateTransform|attributeName","unknown|attributeName","iframe|sandbox","iframe|allow","iframe|allowFullscreen","iframe|referrerPolicy","iframe|csp","iframe|fetchPriority","unknown|sandbox","unknown|allow","unknown|allowFullscreen","unknown|referrerPolicy","unknown|csp","unknown|fetchPriority"])),Ca}function Fi(t,e){for(let n of e)Ca[n.toLowerCase()]=t}var wu=class{},cC="boolean",uC="number",pC="string",hC="object",fC=["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","geolocation^[HTMLElement]|accuracymode,!autolocate,*location,*promptaction,*promptdismiss,*validationstatuschange,!watch","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","selectedcontent^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","search^[HTMLELement]|","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],Nm=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex","aria-activedescendant":"ariaActiveDescendantElement","aria-atomic":"ariaAtomic","aria-autocomplete":"ariaAutoComplete","aria-busy":"ariaBusy","aria-checked":"ariaChecked","aria-colcount":"ariaColCount","aria-colindex":"ariaColIndex","aria-colindextext":"ariaColIndexText","aria-colspan":"ariaColSpan","aria-controls":"ariaControlsElements","aria-current":"ariaCurrent","aria-describedby":"ariaDescribedByElements","aria-description":"ariaDescription","aria-details":"ariaDetailsElements","aria-disabled":"ariaDisabled","aria-errormessage":"ariaErrorMessageElements","aria-expanded":"ariaExpanded","aria-flowto":"ariaFlowToElements","aria-haspopup":"ariaHasPopup","aria-hidden":"ariaHidden","aria-invalid":"ariaInvalid","aria-keyshortcuts":"ariaKeyShortcuts","aria-label":"ariaLabel","aria-labelledby":"ariaLabelledByElements","aria-level":"ariaLevel","aria-live":"ariaLive","aria-modal":"ariaModal","aria-multiline":"ariaMultiLine","aria-multiselectable":"ariaMultiSelectable","aria-orientation":"ariaOrientation","aria-owns":"ariaOwnsElements","aria-placeholder":"ariaPlaceholder","aria-posinset":"ariaPosInSet","aria-pressed":"ariaPressed","aria-readonly":"ariaReadOnly","aria-required":"ariaRequired","aria-roledescription":"ariaRoleDescription","aria-rowcount":"ariaRowCount","aria-rowindex":"ariaRowIndex","aria-rowindextext":"ariaRowIndexText","aria-rowspan":"ariaRowSpan","aria-selected":"ariaSelected","aria-setsize":"ariaSetSize","aria-sort":"ariaSort","aria-valuemax":"ariaValueMax","aria-valuemin":"ariaValueMin","aria-valuenow":"ariaValueNow","aria-valuetext":"ariaValueText"})),dC=Array.from(Nm).reduce((t,[e,n])=>(t.set(e,n),t),new Map),Sn=class extends wu{constructor(){super();a(this,"_schema",new Map);a(this,"_eventSchema",new Map);fC.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 h=u&&this._schema.get(u.toLowerCase());if(h){for(let[d,p]of h)r.set(d,p);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),cC);break;case"#":r.set(d.substring(1),uC);break;case"%":r.set(d.substring(1),hC);break;default:r.set(d,pC)}})})}hasProperty(n,r,s){if(s.some(o=>o.name===xc.name))return!0;if(n.indexOf("-")>-1){if(Ah(n)||Fc(n))return!1;if(s.some(o=>o.name===Tc.name))return!0}return(this._schema.get(n.toLowerCase())||this._schema.get("unknown")).has(r)}hasElement(n,r){return r.some(s=>s.name===xc.name)||n.indexOf("-")>-1&&(Ah(n)||Fc(n)||r.some(s=>s.name===Tc.name))?!0:this._schema.has(n.toLowerCase())}securityContext(n,r,s){s&&(r=this.getMappedPropName(r)),n=n.toLowerCase(),r=r.toLowerCase();let i=pf()[n+"|"+r];return i||(i=pf()["*|"+r],i||ue.NONE)}getMappedPropName(n){var r;return(r=Nm.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=dC.get(s))!=null?i:s})}allKnownEventsOfElement(n){var r;return Array.from((r=this._eventSchema.get(n.toLowerCase()))!=null?r:[])}normalizeAnimationStyleProperty(n){return fE(n)}normalizeAnimationStyleValue(n,r,s){let i="",o=s.toString().trim(),l=null;if(mC(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 mC(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 Z=class{constructor({closedByChildren:e,implicitNamespacePrefix:n,contentType:r=pn.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}},hf,Fs;function Cu(t){var e,n;return Fs||(hf=new Z({canSelfClose:!0}),Fs=Object.assign(Object.create(null),{base:new Z({isVoid:!0}),meta:new Z({isVoid:!0}),area:new Z({isVoid:!0}),embed:new Z({isVoid:!0}),link:new Z({isVoid:!0}),img:new Z({isVoid:!0}),input:new Z({isVoid:!0}),param:new Z({isVoid:!0}),hr:new Z({isVoid:!0}),br:new Z({isVoid:!0}),source:new Z({isVoid:!0}),track:new Z({isVoid:!0}),wbr:new Z({isVoid:!0}),p:new Z({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 Z({closedByChildren:["tbody","tfoot"]}),tbody:new Z({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Z({closedByChildren:["tbody"],closedByParent:!0}),tr:new Z({closedByChildren:["tr"],closedByParent:!0}),td:new Z({closedByChildren:["td","th"],closedByParent:!0}),th:new Z({closedByChildren:["td","th"],closedByParent:!0}),col:new Z({isVoid:!0}),svg:new Z({implicitNamespacePrefix:"svg"}),foreignObject:new Z({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new Z({implicitNamespacePrefix:"math"}),li:new Z({closedByChildren:["li"],closedByParent:!0}),dt:new Z({closedByChildren:["dt","dd"]}),dd:new Z({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Z({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Z({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Z({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Z({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Z({closedByChildren:["optgroup"],closedByParent:!0}),option:new Z({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Z({ignoreFirstLf:!0}),listing:new Z({ignoreFirstLf:!0}),style:new Z({contentType:pn.RAW_TEXT}),script:new Z({contentType:pn.RAW_TEXT}),title:new Z({contentType:{default:pn.ESCAPABLE_RAW_TEXT,svg:pn.PARSABLE_DATA}}),textarea:new Z({contentType:pn.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Sn().allKnownElementNames().forEach(r=>{!Fs[r]&&Bc(r)===null&&(Fs[r]=new Z({canSelfClose:!1}))})),(n=(e=Fs[t])!=null?e:Fs[t.toLowerCase()])!=null?n:hf}var ff={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"},Au=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=ff[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=ff[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}`}},gC=new ol(new Vo);function yC(t,e){let n=new Nu(gC,t,e);return(r,s,i,o,l)=>n.toI18nMessage(r,s,i,o,l)}function vC(t,e){return e}var Nu=class{constructor(e,n,r){a(this,"_expressionParser");a(this,"_retainEmptyTokens");a(this,"_preserveExpressionWhitespace");this._expressionParser=e,this._retainEmptyTokens=n,this._preserveExpressionWhitespace=r}toI18nMessage(e,n="",r="",s="",i){let o={isIcu:e.length==1&&e[0]instanceof ss,icuDepth:0,placeholderRegistry:new Au,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:i||vC},l=ge(this,e,o);return new St(l,o.placeholderToContent,o.placeholderToMessage,n,r,s)}visitElement(e,n){return this._visitElementLike(e,n)}visitComponent(e,n){return this._visitElementLike(e,n)}visitDirective(e,n){throw new Error("Unreachable code")}visitAttribute(e,n){let r=e.valueTokens===void 0||e.valueTokens.length===1?new Ri(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 Ri(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 Ba(e.switchValue,e.type,r,e.sourceSpan);if(e.cases.forEach(l=>{r[l.value]=new zn(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 li(s,i,e.sourceSpan);return n.visitNodeFn(e,o)}visitExpansionCase(e,n){throw new Error("Unreachable code")}visitBlock(e,n){var c;let r=ge(this,e.children,n);if(e.name==="switch")return new zn(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 kr(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}_visitElementLike(e,n){var d;let r=ge(this,e.children,n),s={},i=p=>{s[p.name]=p.value},o,l;e instanceof jt?(o=e.name,l=Cu(e.name).isVoid):(o=e.fullName,l=e.tagName?Cu(e.tagName).isVoid:!1),e.attrs.forEach(i),e.directives.forEach(p=>p.attrs.forEach(i));let c=n.placeholderRegistry.getStartTagPlaceholderName(o,s,l);n.placeholderToContent[c]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};let u="";l||(u=n.placeholderRegistry.getCloseTagPlaceholderName(o),n.placeholderToContent[u]={text:`</${o}>`,sourceSpan:(d=e.endSourceSpan)!=null?d:e.sourceSpan});let h=new _r(o,s,c,u,r,l,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return n.visitNodeFn(e,h)}_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,h]=l.parts,d=wC(u)||"INTERPOLATION",p=r.placeholderRegistry.getPlaceholderName(d,u);if(this._preserveExpressionWhitespace)r.placeholderToContent[p]={text:l.parts.join(""),sourceSpan:l.sourceSpan},i.push(new Ao(u,p,l.sourceSpan));else{let g=this.normalizeExpression(l);r.placeholderToContent[p]={text:`${c}${g}${h}`,sourceSpan:l.sourceSpan},i.push(new Ao(g,p,l.sourceSpan))}break;default:if(l.parts[0].length>0||this._retainEmptyTokens){let g=i[i.length-1];g instanceof Ri?(g.value+=l.parts[0],g.sourceSpan=new H(g.sourceSpan.start,l.sourceSpan.end,g.sourceSpan.fullStart,g.sourceSpan.details)):i.push(new Ri(l.parts[0],l.sourceSpan))}else this._retainEmptyTokens&&i.push(new Ri(l.parts[0],l.sourceSpan));break}return o?(SC(i,s),new zn(i,n)):i[0]}normalizeExpression(e){let n=e.parts[1],r=this._expressionParser.parseBinding(n,e.sourceSpan,e.sourceSpan.start.offset);return oC(r)}};function SC(t,e){if(e instanceof St&&(EC(e),e=e.nodes[0]),e instanceof zn){TC(e.children,t);for(let n=0;n<t.length;n++)t[n].sourceSpan=e.children[n].sourceSpan}}function EC(t){let e=t.nodes;if(e.length!==1||!(e[0]instanceof zn))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}function TC(t,e){if(t.length!==e.length)throw new Error(`
|
|
20
|
+
`}return n}_convertColonHost(e){return e.replace(ET,(n,s,r)=>{if(s){let i=[];for(let o of this._splitOnTopLevelCommas(s,!0)){let l=o.trim();if(!l)break;let c=ps+l.replace(Ha,"")+r;i.push(c)}return i.join(",")}else return ps+r})}*_splitOnTopLevelCommas(e,n){let s=e.length,r=0,i=0;for(let o=0;o<s;o++){let l=e.charCodeAt(o);if(l===yt)r++;else if(l===Be){if(r--,r<0&&n){yield e.slice(i,o);return}}else l===rt&&r===0&&(yield e.slice(i,o),i=o+1)}yield e.slice(i)}_convertColonHostContext(e){let n=[];for(let s of this._splitOnTopLevelCommas(e,!1))n.push(this._convertColonHostContextInSelectorPart(s));return n.join(",")}_convertColonHostContextInSelectorPart(e){return e.replace(wT,(n,s)=>{let r=[[]],i=n.indexOf(Vr);for(;i!==-1;){let o=n.substring(i+Vr.length);if(!o||o[0]!=="("){n=o,i=n.indexOf(Vr);continue}let l=[],c=0;for(let h of this._splitOnTopLevelCommas(o.substring(1),!0)){c=c+h.length+1;let d=h.trim();d&&l.push(d)}let u=r.length;GT(r,l.length);for(let h=0;h<l.length;h++)for(let d=0;d<u;d++)r[d+h*u].push(l[h]);n=o.substring(c+1),i=n.indexOf(Vr)}return r.map(o=>VT(o,n,s)).join(", ")})}_convertShadowDOMSelectors(e){return CT.reduce((n,s)=>n.replace(s," "),e)}_scopeSelectors(e,n,s){return ha(e,r=>{let i=r.selector,o=r.content;return r.selector[0]!=="@"?i=this._scopeSelector({selector:i,scopeSelector:n,hostSelector:s,isParentSelector:!0}):fT.some(l=>r.selector.startsWith(l))?o=this._scopeSelectors(r.content,n,s):(r.selector.startsWith("@font-face")||r.selector.startsWith("@page"))&&(o=this._stripScopingSelectors(r.content)),new bo(i,o)})}_stripScopingSelectors(e){return ha(e,n=>{let s=n.selector.replace(Oh," ").replace(ec," ");return new bo(s,n.content)})}_scopeSelector({selector:e,scopeSelector:n,hostSelector:s,isParentSelector:r=!1}){let i=/ ?,(?!(?:[^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\))) ?/;return e.split(i).map(o=>o.split(Oh)).map(o=>{let[l,...c]=o;return[(h=>this._selectorNeedsScoping(h,n)?this._applySelectorScope({selector:h,scopeSelector:n,hostSelector:s,isParentSelector:r}):h)(l),...c].join(" ")}).join(", ")}_selectorNeedsScoping(e,n){return!this._makeScopeMatcher(n).test(e)}_makeScopeMatcher(e){let n=/\[/g,s=/\]/g;return e=e.replace(n,"\\[").replace(s,"\\]"),new RegExp("^("+e+")"+AT,"m")}_applySimpleSelectorScope(e,n,s){if(jr.lastIndex=0,jr.test(e)){let r=`[${s}]`,i=e;for(;i.match(ec);)i=i.replace(ec,(o,l)=>l.replace(/([^:\)]*)(:*)(.*)/,(c,u,h,d)=>u+r+h+d));return i.replace(jr,r)}return n+" "+e}_applySelectorScope({selector:e,scopeSelector:n,hostSelector:s,isParentSelector:r}){var E;let i=/\[is=([^\]]*)\]/g;n=n.replace(i,(I,...D)=>D[0]);let o=`[${n}]`,l=I=>{let D=I.trim();if(!D)return I;if(I.includes(ps)){if(D=this._applySimpleSelectorScope(I,n,s),!I.match(xT)){let[b,P,L,ne]=D.match(/([^:]*)(:*)([\s\S]*)/);D=P+o+L+ne}}else{let b=I.replace(jr,"");if(b.length>0){let P=b.match(/([^:]*)(:*)([\s\S]*)/);P&&(D=P[1]+o+P[2]+P[3])}}return D},c=I=>{let D="",b=[],P;for(;(P=Mi.exec(I))!==null;){let L=1,ne=Mi.lastIndex;for(;ne<I.length;){let re=I[ne];if(ne++,re==="("){L++;continue}if(re===")"){if(L--,L===0)break;continue}}b.push(`${P[0]}${I.slice(Mi.lastIndex,ne)}`),Mi.lastIndex=ne}return b.join("")===I?D=b.map(L=>{var Ne;let[ne]=(Ne=L.match(Mi))!=null?Ne:[],re=L.slice(ne==null?void 0:ne.length,-1);re.includes(ps)&&(this._shouldScopeIndicator=!0);let Ge=this._scopeSelector({selector:re,scopeSelector:n,hostSelector:s});return`${ne}${Ge})`}).join(""):(this._shouldScopeIndicator=this._shouldScopeIndicator||I.includes(ps),D=this._shouldScopeIndicator?l(I):I),D};r&&(this._safeSelector=new tu(e),e=this._safeSelector.content());let u="",h=0,d,p=/( |>|\+|~(?!=))(?!([^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\)))\s*/g,g=e.includes(ps);for((r||this._shouldScopeIndicator)&&(this._shouldScopeIndicator=!g);(d=p.exec(e))!==null;){let I=d[1],D=e.slice(h,d.index);if(D.match(/__esc-ph-(\d+)__/)&&((E=e[d.index+1])!=null&&E.match(/[a-fA-F\d]/)))continue;let b=c(D);u+=`${b} ${I} `,h=p.lastIndex}let v=e.substring(h);return u+=c(v),this._safeSelector.restore(u)}_insertPolyfillHostInCssText(e){return e.replace(NT,Vr).replace(IT,Ha)}},tu=class{constructor(e){a(this,"placeholders",[]);a(this,"index",0);a(this,"_content");e=this._escapeRegexMatches(e,/(\[[^\]]*\])/g),e=e.replace(/(\\.)/g,(n,s)=>{let r=`__esc-ph-${this.index}__`;return this.placeholders.push(s),this.index++,r}),this._content=e.replace(ST,(n,s,r)=>{let i=`__ph-${this.index}__`;return this.placeholders.push(`(${r})`),this.index++,s+i})}restore(e){return e.replace(/__(?:ph|esc-ph)-(\d+)__/g,(n,s)=>this.placeholders[+s])}content(){return this._content}_escapeRegexMatches(e,n){return e.replace(n,(s,r)=>{let i=`__ph-${this.index}__`;return this.placeholders.push(r),this.index++,i})}},dT="(:(where|is)\\()?",Mi=/:(where|is)\(/gi,mT=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,gT=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Mh=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Ha="-shadowcsshost",Vr="-shadowcsscontext",nu="[^)(]*",yT=String.raw`(?:\(${nu}\)|${nu})+?`,vT=String.raw`(?:\(${yT}\)|${nu})+?`,np=String.raw`(?:\((${vT})\))`,ST=new RegExp(String.raw`(:nth-[-\w]+)`+np,"g"),ET=new RegExp(Ha+np+"?([^,{]*)","gim"),TT=Vr+np+"?([^{]*)",wT=new RegExp(`${dT}(${TT})`,"gim"),ps=Ha+"-no-combinator",xT=new RegExp(`${ps}(?![^(]*\\))`,"g"),ec=/-shadowcsshost-no-combinator([^\s,]*)/,CT=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Oh=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,AT="([>\\s~+[.,{:][\\s\\S]*)?$",jr=/-shadowcsshost/gim,IT=/:host/gim,NT=/:host-context/gim,DT=/\r?\n/g,bT=/\/\*[\s\S]*?\*\//g,_T=/\/\*\s*#\s*source(Mapping)?URL=/g,sp="%COMMENT%",kT=new RegExp(sp,"g"),tc="%BLOCK%",RT=new RegExp(`(\\s*(?:${sp}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),PT=new Map([["{","}"]]),em="%COMMA_IN_PLACEHOLDER%",tm="%SEMI_IN_PLACEHOLDER%",nm="%COLON_IN_PLACEHOLDER%",LT=new RegExp(em,"g"),MT=new RegExp(tm,"g"),OT=new RegExp(nm,"g"),bo=class{constructor(e,n){a(this,"selector");a(this,"content");this.selector=e,this.content=n}};function ha(t,e){let n=$T(t),s=FT(n,PT,tc),r=0,i=s.escapedString.replace(RT,(...o)=>{let l=o[2],c="",u=o[4],h="";u&&u.startsWith("{"+tc)&&(c=s.blocks[r++],u=u.substring(tc.length+1),h="{");let d=e(new bo(l,c));return`${o[1]}${d.selector}${o[3]}${h}${d.content}${u}`});return UT(i)}var su=class{constructor(e,n){a(this,"escapedString");a(this,"blocks");this.escapedString=e,this.blocks=n}};function FT(t,e,n){let s=[],r=[],i=0,o=0,l=-1,c,u;for(let h=0;h<t.length;h++){let d=t[h];d==="\\"?h++:d===u?(i--,i===0&&(r.push(t.substring(l,h)),s.push(n),o=h,l=-1,c=u=void 0)):d===c?i++:i===0&&e.has(d)&&(c=d,u=e.get(d),i=1,l=h+1,s.push(t.substring(o,l)))}return l!==-1?(r.push(t.substring(l)),s.push(n)):s.push(t.substring(o)),new su(s.join(""),r)}var BT={";":tm,",":em,":":nm};function $T(t){let e=t,n=null;for(let s=0;s<e.length;s++){let r=e[s];if(r==="\\")s++;else if(n!==null)if(r===n)n=null;else{let i=BT[r];i&&(e=`${e.substr(0,s)}${i}${e.substr(s+1)}`,s+=i.length-1)}else(r==="'"||r==='"')&&(n=r)}return e}function UT(t){let e=t.replace(LT,",");return e=e.replace(MT,";"),e=e.replace(OT,":"),e}function Fh(t,e){return e?t.replace(/((?:^|[^\\])(?:\\\\)*)\\(?=['"])/g,"$1"):t}function VT(t,e,n=""){let s=ps;jr.lastIndex=0;let r=jr.test(e);if(t.length===0)return s+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=>r?`${n}${o}${e}`:`${n}${o}${s}${e}, ${n}${o} ${s}${e}`).join(",")}function GT(t,e){let n=t.length;for(let s=1;s<e;s++)for(let r=0;r<n;r++)t[r+s*n]=t[r].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.ConditionalCreate=11]="ConditionalCreate",t[t.ConditionalBranchCreate=12]="ConditionalBranchCreate",t[t.Conditional=13]="Conditional",t[t.EnableBindings=14]="EnableBindings",t[t.Text=15]="Text",t[t.Listener=16]="Listener",t[t.InterpolateText=17]="InterpolateText",t[t.Binding=18]="Binding",t[t.Property=19]="Property",t[t.StyleProp=20]="StyleProp",t[t.ClassProp=21]="ClassProp",t[t.StyleMap=22]="StyleMap",t[t.ClassMap=23]="ClassMap",t[t.Advance=24]="Advance",t[t.Pipe=25]="Pipe",t[t.Attribute=26]="Attribute",t[t.ExtractedAttribute=27]="ExtractedAttribute",t[t.Defer=28]="Defer",t[t.DeferOn=29]="DeferOn",t[t.DeferWhen=30]="DeferWhen",t[t.I18nMessage=31]="I18nMessage",t[t.DomProperty=32]="DomProperty",t[t.Namespace=33]="Namespace",t[t.ProjectionDef=34]="ProjectionDef",t[t.Projection=35]="Projection",t[t.RepeaterCreate=36]="RepeaterCreate",t[t.Repeater=37]="Repeater",t[t.TwoWayProperty=38]="TwoWayProperty",t[t.TwoWayListener=39]="TwoWayListener",t[t.DeclareLet=40]="DeclareLet",t[t.StoreLet=41]="StoreLet",t[t.I18nStart=42]="I18nStart",t[t.I18n=43]="I18n",t[t.I18nEnd=44]="I18nEnd",t[t.I18nExpression=45]="I18nExpression",t[t.I18nApply=46]="I18nApply",t[t.IcuStart=47]="IcuStart",t[t.IcuEnd=48]="IcuEnd",t[t.IcuPlaceholder=49]="IcuPlaceholder",t[t.I18nContext=50]="I18nContext",t[t.I18nAttributes=51]="I18nAttributes",t[t.SourceLocation=52]="SourceLocation",t[t.Animation=53]="Animation",t[t.AnimationString=54]="AnimationString",t[t.AnimationBinding=55]="AnimationBinding",t[t.AnimationListener=56]="AnimationListener",t[t.Control=57]="Control",t[t.ControlCreate=58]="ControlCreate"})(f||(f={}));var F;(function(t){t[t.LexicalRead=0]="LexicalRead",t[t.Context=1]="Context",t[t.TrackContext=2]="TrackContext",t[t.ReadVariable=3]="ReadVariable",t[t.NextContext=4]="NextContext",t[t.Reference=5]="Reference",t[t.StoreLet=6]="StoreLet",t[t.ContextLetReference=7]="ContextLetReference",t[t.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",t[t.ArrowFunction=26]="ArrowFunction"})(F||(F={}));var Ut;(function(t){t[t.None=0]="None",t[t.AlwaysInline=1]="AlwaysInline"})(Ut||(Ut={}));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 M;(function(t){t[t.Attribute=0]="Attribute",t[t.ClassName=1]="ClassName",t[t.StyleProperty=2]="StyleProperty",t[t.Property=3]="Property",t[t.Template=4]="Template",t[t.I18n=5]="I18n",t[t.LegacyAnimation=6]="LegacyAnimation",t[t.TwoWayProperty=7]="TwoWayProperty",t[t.Animation=8]="Animation"})(M||(M={}));var fi;(function(t){t[t.Creation=0]="Creation",t[t.Postproccessing=1]="Postproccessing"})(fi||(fi={}));var xr;(function(t){t[t.I18nText=0]="I18nText",t[t.I18nAttribute=1]="I18nAttribute"})(xr||(xr={}));var he;(function(t){t[t.None=0]="None",t[t.ElementTag=1]="ElementTag",t[t.TemplateTag=2]="TemplateTag",t[t.OpenTag=4]="OpenTag",t[t.CloseTag=8]="CloseTag",t[t.ExpressionIndex=16]="ExpressionIndex"})(he||(he={}));var nt;(function(t){t[t.HTML=0]="HTML",t[t.SVG=1]="SVG",t[t.Math=2]="Math"})(nt||(nt={}));var ce;(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"})(ce||(ce={}));var gs;(function(t){t[t.RootI18n=0]="RootI18n",t[t.Icu=1]="Icu",t[t.Attr=2]="Attr"})(gs||(gs={}));var St;(function(t){t[t.NgTemplate=0]="NgTemplate",t[t.Structural=1]="Structural",t[t.Block=2]="Block"})(St||(St={}));var fe=class fe{constructor(){a(this,"debugListId",fe.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 s of e)this.push(s);return}fe.assertIsNotEnd(e),fe.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 r of e)fe.assertIsNotEnd(r),fe.assertIsUnowned(r),r.debugListId=this.debugListId;let n=this.head.next,s=this.head;for(let r of e)s.next=r,r.prev=s,s=r;s.next=n,n.prev=s}*[Symbol.iterator](){let e=this.head.next;for(;e!==this.tail;){fe.assertIsOwned(e,this.debugListId);let n=e.next;yield e,e=n}}*reversed(){let e=this.tail.prev;for(;e!==this.head;){fe.assertIsOwned(e,this.debugListId);let n=e.prev;yield e,e=n}}static replace(e,n){fe.assertIsNotEnd(e),fe.assertIsNotEnd(n),fe.assertIsOwned(e),fe.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){fe.remove(e);return}fe.assertIsNotEnd(e),fe.assertIsOwned(e);let s=e.debugListId;e.debugListId=null;for(let u of n)fe.assertIsNotEnd(u),fe.assertIsUnowned(u);let{prev:r,next:i}=e;e.prev=null,e.next=null;let o=r;for(let u of n)fe.assertIsUnowned(u),u.debugListId=s,o.next=u,u.prev=o,u.next=null,o=u;let l=n[0],c=o;r!==null&&(r.next=l,l.prev=r),i!==null&&(i.prev=c,c.next=i)}static remove(e){fe.assertIsNotEnd(e),fe.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 s of e)fe.insertBefore(s,n);return}if(fe.assertIsOwned(n),n.prev===null)throw new Error("AssertionError: illegal operation on list start");fe.assertIsNotEnd(e),fe.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(fe.assertIsOwned(n),n.next===null)throw new Error("AssertionError: illegal operation on list end");fe.assertIsNotEnd(e),fe.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(fe,"nextListId",0);var w=fe;function Wt(t){return x({kind:f.Statement,statement:t},j)}function ds(t,e,n,s){return x({kind:f.Variable,xref:t,variable:e,initializer:n,flags:s},j)}var j={debugListId:null,prev:null,next:null},sm=Symbol("ConsumesSlot"),rp=Symbol("DependsOnSlotContext"),kr=Symbol("ConsumesVars"),Yo=Symbol("UsesVarOffset"),ln={[sm]:!0,numSlotsUsed:1},Mt={[rp]:!0},Ot={[kr]:!0};function xi(t){return t[sm]===!0}function _o(t){return t[rp]===!0}function nc(t){return t[kr]===!0}function Bh(t){return t[Yo]===!0}function HT(t,e,n){return x(x(x({kind:f.InterpolateText,target:t,interpolation:e,sourceSpan:n},Mt),Ot),j)}var Ae=class{constructor(e,n,s){a(this,"strings");a(this,"expressions");a(this,"i18nPlaceholders");if(this.strings=e,this.expressions=n,this.i18nPlaceholders=s,s.length!==0&&s.length!==n.length)throw new Error(`Expected ${n.length} placeholders to match interpolation expression count, but got ${s.length}`)}};function Cr(t,e,n,s,r,i,o,l,c,u,h){return x({kind:f.Binding,bindingKind:e,target:t,name:n,expression:s,unit:r,securityContext:i,isTextAttribute:o,isStructuralTemplateAttribute:l,templateKind:c,i18nContext:null,i18nMessage:u,sourceSpan:h},j)}function qT(t,e,n,s,r,i,o,l,c,u){return x(x(x({kind:f.Property,target:t,name:e,expression:n,bindingKind:s,securityContext:r,sanitizer:null,isStructuralTemplateAttribute:i,templateKind:o,i18nContext:l,i18nMessage:c,sourceSpan:u},Mt),Ot),j)}function WT(t,e,n,s,r,i,o,l,c){return x(x(x({kind:f.TwoWayProperty,target:t,name:e,expression:n,securityContext:s,sanitizer:null,isStructuralTemplateAttribute:r,templateKind:i,i18nContext:o,i18nMessage:l,sourceSpan:c},Mt),Ot),j)}function jT(t,e,n,s,r){return x(x(x({kind:f.StyleProp,target:t,name:e,expression:n,unit:s,sourceSpan:r},Mt),Ot),j)}function zT(t,e,n,s){return x(x(x({kind:f.ClassProp,target:t,name:e,expression:n,sourceSpan:s},Mt),Ot),j)}function KT(t,e,n){return x(x(x({kind:f.StyleMap,target:t,expression:e,sourceSpan:n},Mt),Ot),j)}function XT(t,e,n){return x(x(x({kind:f.ClassMap,target:t,expression:e,sourceSpan:n},Mt),Ot),j)}function $h(t,e,n,s,r,i,o,l,c,u){return x(x(x({kind:f.Attribute,target:t,namespace:e,name:n,expression:s,securityContext:r,sanitizer:null,isTextAttribute:i,isStructuralTemplateAttribute:o,templateKind:l,i18nContext:null,i18nMessage:c,sourceSpan:u},Mt),Ot),j)}function YT(t,e){return x({kind:f.Advance,delta:t,sourceSpan:e},j)}function rm(t,e,n,s){return x(x(x({kind:f.Conditional,target:t,test:e,conditions:n,processed:null,sourceSpan:s,contextValue:null},j),Mt),Ot)}function QT(t,e,n,s){return x(x({kind:f.Repeater,target:t,targetSlot:e,collection:n,sourceSpan:s},j),Mt)}function Uh(t,e,n,s,r,i,o){return x({kind:f.AnimationBinding,name:t,target:e,animationKind:n,expression:s,i18nMessage:null,securityContext:r,sanitizer:null,sourceSpan:i,animationBindingKind:o},j)}function JT(t,e,n,s){return x(x(x({kind:f.DeferWhen,target:t,expr:e,modifier:n,sourceSpan:s},j),Mt),Ot)}function im(t,e,n,s,r,i,o,l,c,u,h){return x(x(x({kind:f.I18nExpression,context:t,target:e,i18nOwner:n,handle:s,expression:r,icuPlaceholder:i,i18nPlaceholder:o,resolutionTime:l,usage:c,name:u,sourceSpan:h},j),Ot),Mt)}function ZT(t,e,n){return x({kind:f.I18nApply,owner:t,handle:e,sourceSpan:n},j)}function ew(t,e,n,s){return x(x(x({kind:f.StoreLet,target:t,declaredName:e,value:n,sourceSpan:s},Mt),Ot),j)}function tw(t,e){return x(x({kind:f.Control,sourceSpan:e,target:t},Mt),j)}function Un(t){return t instanceof pe}var pe=class extends ie{constructor(e=null){super(null,e)}},Ke=class t extends pe{constructor(n){super();a(this,"name");a(this,"kind",F.LexicalRead);this.name=n}visitExpression(n,s){}isEquivalent(n){return this.name===n.name}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.name)}},qa=class t extends pe{constructor(n,s,r){super();a(this,"target");a(this,"targetSlot");a(this,"offset");a(this,"kind",F.Reference);this.target=n,this.targetSlot=s,this.offset=r}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)}},id,od,ad,ko=class t extends(ad=pe,od=kr,id=rp,ad){constructor(n,s,r){super();a(this,"target");a(this,"value");a(this,"sourceSpan");a(this,"kind",F.StoreLet);a(this,od,!0);a(this,id,!0);this.target=n,this.value=s,this.sourceSpan=r}visitExpression(){}isEquivalent(n){return n instanceof t&&n.target===this.target&&n.value.isEquivalent(this.value)}isConstant(){return!1}transformInternalExpressions(n,s){this.value=k(this.value,n,s)}clone(){return new t(this.target,this.value,this.sourceSpan)}},Ro=class t extends pe{constructor(n,s){super();a(this,"target");a(this,"targetSlot");a(this,"kind",F.ContextLetReference);this.target=n,this.targetSlot=s}visitExpression(){}isEquivalent(n){return n instanceof t&&n.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.target,this.targetSlot)}},$s=class t extends pe{constructor(n){super();a(this,"view");a(this,"kind",F.Context);this.view=n}visitExpression(){}isEquivalent(n){return n instanceof t&&n.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.view)}},ru=class t extends pe{constructor(n){super();a(this,"view");a(this,"kind",F.TrackContext);this.view=n}visitExpression(){}isEquivalent(n){return n instanceof t&&n.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.view)}},Wa=class t extends pe{constructor(){super(...arguments);a(this,"kind",F.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}},iu=class t extends pe{constructor(){super();a(this,"kind",F.GetCurrentView)}visitExpression(){}isEquivalent(n){return n instanceof t}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t}},Po=class t extends pe{constructor(n){super();a(this,"view");a(this,"kind",F.RestoreView);this.view=n}visitExpression(n,s){typeof this.view!="number"&&this.view.visitExpression(n,s)}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,s){typeof this.view!="number"&&(this.view=k(this.view,n,s))}clone(){return new t(this.view instanceof ie?this.view.clone():this.view)}},ja=class t extends pe{constructor(n){super();a(this,"expr");a(this,"kind",F.ResetView);this.expr=n}visitExpression(n,s){this.expr.visitExpression(n,s)}isEquivalent(n){return n instanceof t&&this.expr.isEquivalent(n.expr)}isConstant(){return!1}transformInternalExpressions(n,s){this.expr=k(this.expr,n,s)}clone(){return new t(this.expr.clone())}},za=class t extends pe{constructor(n,s){super();a(this,"target");a(this,"value");a(this,"kind",F.TwoWayBindingSet);this.target=n,this.value=s}visitExpression(n,s){this.target.visitExpression(n,s),this.value.visitExpression(n,s)}isEquivalent(n){return this.target.isEquivalent(n.target)&&this.value.isEquivalent(n.value)}isConstant(){return!1}transformInternalExpressions(n,s){this.target=k(this.target,n,s),this.value=k(this.value,n,s)}clone(){return new t(this.target,this.value)}},Yn=class t extends pe{constructor(n){super();a(this,"xref");a(this,"kind",F.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}},ld,cd,ud,Ar=class t extends(ud=pe,cd=kr,ld=Yo,ud){constructor(n,s){super();a(this,"kind",F.PureFunctionExpr);a(this,cd,!0);a(this,ld,!0);a(this,"varOffset",null);a(this,"body");a(this,"args");a(this,"fn",null);this.body=n,this.args=s}visitExpression(n,s){var r;(r=this.body)==null||r.visitExpression(n,s);for(let i of this.args)i.visitExpression(n,s)}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((s,r)=>s.isEquivalent(this.args[r]))}isConstant(){return!1}transformInternalExpressions(n,s){this.body!==null?this.body=k(this.body,n,s|Q.InChildOperation):this.fn!==null&&(this.fn=k(this.fn,n,s));for(let r=0;r<this.args.length;r++)this.args[r]=k(this.args[r],n,s)}clone(){var s,r,i,o;let n=new t((r=(s=this.body)==null?void 0:s.clone())!=null?r: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}},Us=class t extends pe{constructor(n){super();a(this,"index");a(this,"kind",F.PureFunctionParameterExpr);this.index=n}visitExpression(){}isEquivalent(n){return n instanceof t&&n.index===this.index}isConstant(){return!0}transformInternalExpressions(){}clone(){return new t(this.index)}},pd,hd,fd,Ir=class t extends(fd=pe,hd=kr,pd=Yo,fd){constructor(n,s,r,i){super();a(this,"target");a(this,"targetSlot");a(this,"name");a(this,"args");a(this,"kind",F.PipeBinding);a(this,hd,!0);a(this,pd,!0);a(this,"varOffset",null);this.target=n,this.targetSlot=s,this.name=r,this.args=i}visitExpression(n,s){for(let r of this.args)r.visitExpression(n,s)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,s){for(let r=0;r<this.args.length;r++)this.args[r]=k(this.args[r],n,s)}clone(){let n=new t(this.target,this.targetSlot,this.name,this.args.map(s=>s.clone()));return n.varOffset=this.varOffset,n}},dd,md,gd,Lo=class t extends(gd=pe,md=kr,dd=Yo,gd){constructor(n,s,r,i,o){super();a(this,"target");a(this,"targetSlot");a(this,"name");a(this,"args");a(this,"numArgs");a(this,"kind",F.PipeBindingVariadic);a(this,md,!0);a(this,dd,!0);a(this,"varOffset",null);this.target=n,this.targetSlot=s,this.name=r,this.args=i,this.numArgs=o}visitExpression(n,s){this.args.visitExpression(n,s)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,s){this.args=k(this.args,n,s)}clone(){let n=new t(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return n.varOffset=this.varOffset,n}},di=class t extends pe{constructor(n,s){super();a(this,"receiver");a(this,"name");a(this,"kind",F.SafePropertyRead);this.receiver=n,this.name=s}get index(){return this.name}visitExpression(n,s){this.receiver.visitExpression(n,s)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,s){this.receiver=k(this.receiver,n,s)}clone(){return new t(this.receiver.clone(),this.name)}},mi=class t extends pe{constructor(n,s,r){super(r);a(this,"receiver");a(this,"index");a(this,"kind",F.SafeKeyedRead);this.receiver=n,this.index=s}visitExpression(n,s){this.receiver.visitExpression(n,s),this.index.visitExpression(n,s)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,s){this.receiver=k(this.receiver,n,s),this.index=k(this.index,n,s)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.sourceSpan)}},Nr=class t extends pe{constructor(n,s){super();a(this,"receiver");a(this,"args");a(this,"kind",F.SafeInvokeFunction);this.receiver=n,this.args=s}visitExpression(n,s){this.receiver.visitExpression(n,s);for(let r of this.args)r.visitExpression(n,s)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,s){this.receiver=k(this.receiver,n,s);for(let r=0;r<this.args.length;r++)this.args[r]=k(this.args[r],n,s)}clone(){return new t(this.receiver.clone(),this.args.map(n=>n.clone()))}},gi=class t extends pe{constructor(n,s){super();a(this,"guard");a(this,"expr");a(this,"kind",F.SafeTernaryExpr);this.guard=n,this.expr=s}visitExpression(n,s){this.guard.visitExpression(n,s),this.expr.visitExpression(n,s)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,s){this.guard=k(this.guard,n,s),this.expr=k(this.expr,n,s)}clone(){return new t(this.guard.clone(),this.expr.clone())}},Mo=class t extends pe{constructor(){super(...arguments);a(this,"kind",F.EmptyExpr)}visitExpression(n,s){}isEquivalent(n){return n instanceof t}isConstant(){return!0}clone(){return new t}transformInternalExpressions(){}},Vn=class t extends pe{constructor(n,s){super();a(this,"expr");a(this,"xref");a(this,"kind",F.AssignTemporaryExpr);a(this,"name",null);this.expr=n,this.xref=s}visitExpression(n,s){this.expr.visitExpression(n,s)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,s){this.expr=k(this.expr,n,s)}clone(){let n=new t(this.expr.clone(),this.xref);return n.name=this.name,n}},Vs=class t extends pe{constructor(n){super();a(this,"xref");a(this,"kind",F.ReadTemporaryExpr);a(this,"name",null);this.xref=n}visitExpression(n,s){}isEquivalent(){return this.xref===this.xref}isConstant(){return!1}transformInternalExpressions(n,s){}clone(){let n=new t(this.xref);return n.name=this.name,n}},Ka=class t extends pe{constructor(n){super();a(this,"slot");a(this,"kind",F.SlotLiteralExpr);this.slot=n}visitExpression(n,s){}isEquivalent(n){return n instanceof t&&n.slot===this.slot}isConstant(){return!0}clone(){return new t(this.slot)}transformInternalExpressions(){}},Xa=class t extends pe{constructor(n,s,r,i=null){super();a(this,"expr");a(this,"target");a(this,"targetSlot");a(this,"alias");a(this,"kind",F.ConditionalCase);this.expr=n,this.target=s,this.targetSlot=r,this.alias=i}visitExpression(n,s){this.expr!==null&&this.expr.visitExpression(n,s)}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,s){this.expr!==null&&(this.expr=k(this.expr,n,s))}},Oo=class t extends pe{constructor(n){super();a(this,"expr");a(this,"kind",F.ConstCollected);this.expr=n}transformInternalExpressions(n,s){this.expr=n(this.expr,s)}visitExpression(n,s){this.expr.visitExpression(n,s)}isEquivalent(n){return n instanceof t?this.expr.isEquivalent(n.expr):!1}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr)}},yd,vd,Sd,ou=class t extends(Sd=pe,vd=kr,yd=Yo,Sd){constructor(n,s){super();a(this,"parameters");a(this,"body");a(this,"kind",F.ArrowFunction);a(this,vd,!0);a(this,yd,!0);a(this,"contextName",qt);a(this,"currentViewName","view");a(this,"varOffset",null);a(this,"ops");this.parameters=n,this.body=s,this.ops=new w,this.ops.push([Wt(new be(s,s.sourceSpan))])}visitExpression(n,s){for(let r of this.ops)Me(r,i=>{i.visitExpression(n,s)})}isEquivalent(n){return n instanceof t&&n.parameters.length===this.parameters.length&&n.parameters.every((s,r)=>s.isEquivalent(this.parameters[r]))&&n.body.isEquivalent(this.body)}isConstant(){return!1}transformInternalExpressions(n,s){for(let r of this.ops)Ie(r,n,s|(Q.InChildOperation|Q.InArrowFunctionOperation))}clone(){let n=new t(this.parameters,this.body);return n.varOffset=this.varOffset,n.ops=this.ops,n}};function Me(t,e){Ie(t,(n,s)=>(e(n,s),n),Q.None)}var Q;(function(t){t[t.None=0]="None",t[t.InChildOperation=1]="InChildOperation",t[t.InArrowFunctionOperation=2]="InArrowFunctionOperation"})(Q||(Q={}));function sc(t,e,n){for(let s=0;s<t.expressions.length;s++)t.expressions[s]=k(t.expressions[s],e,n)}function Ie(t,e,n){switch(t.kind){case f.StyleProp:case f.StyleMap:case f.ClassProp:case f.ClassMap:case f.AnimationString:case f.AnimationBinding:case f.Binding:t.expression instanceof Ae?sc(t.expression,e,n):t.expression=k(t.expression,e,n);break;case f.Property:case f.DomProperty:case f.Attribute:t.expression instanceof Ae?sc(t.expression,e,n):t.expression=k(t.expression,e,n),t.sanitizer=t.sanitizer&&k(t.sanitizer,e,n);break;case f.TwoWayProperty:t.expression=k(t.expression,e,n),t.sanitizer=t.sanitizer&&k(t.sanitizer,e,n);break;case f.I18nExpression:t.expression=k(t.expression,e,n);break;case f.InterpolateText:sc(t.interpolation,e,n);break;case f.Statement:Ya(t.statement,e,n);break;case f.Variable:t.initializer=k(t.initializer,e,n);break;case f.Conditional:for(let s of t.conditions)s.expr!==null&&(s.expr=k(s.expr,e,n));t.processed!==null&&(t.processed=k(t.processed,e,n)),t.contextValue!==null&&(t.contextValue=k(t.contextValue,e,n));break;case f.Animation:case f.AnimationListener:case f.Listener:case f.TwoWayListener:for(let s of t.handlerOps)Ie(s,e,n|Q.InChildOperation);break;case f.ExtractedAttribute:t.expression=t.expression&&k(t.expression,e,n),t.trustedValueFn=t.trustedValueFn&&k(t.trustedValueFn,e,n);break;case f.RepeaterCreate:if(t.trackByOps===null)t.track=k(t.track,e,n);else for(let s of t.trackByOps)Ie(s,e,n|Q.InChildOperation);t.trackByFn!==null&&(t.trackByFn=k(t.trackByFn,e,n));break;case f.Repeater:t.collection=k(t.collection,e,n);break;case f.Defer:t.loadingConfig!==null&&(t.loadingConfig=k(t.loadingConfig,e,n)),t.placeholderConfig!==null&&(t.placeholderConfig=k(t.placeholderConfig,e,n)),t.resolverFn!==null&&(t.resolverFn=k(t.resolverFn,e,n));break;case f.I18nMessage:for(let[s,r]of t.params)t.params.set(s,k(r,e,n));for(let[s,r]of t.postprocessingParams)t.postprocessingParams.set(s,k(r,e,n));break;case f.DeferWhen:t.expr=k(t.expr,e,n);break;case f.StoreLet:t.value=k(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:case f.ConditionalCreate:case f.ConditionalBranchCreate:case f.Control:case f.ControlCreate:break;default:throw new Error(`AssertionError: transformExpressionsInOp doesn't handle ${f[t.kind]}`)}}function k(t,e,n){if(t instanceof pe)t.transformInternalExpressions(e,n);else if(t instanceof se)t.lhs=k(t.lhs,e,n),t.rhs=k(t.rhs,e,n);else if(t instanceof Qn)t.expr=k(t.expr,e,n);else if(t instanceof wt)t.receiver=k(t.receiver,e,n);else if(t instanceof Pn)t.receiver=k(t.receiver,e,n),t.index=k(t.index,e,n);else if(t instanceof ot){t.fn=k(t.fn,e,n);for(let s=0;s<t.args.length;s++)t.args[s]=k(t.args[s],e,n)}else if(t instanceof kt)for(let s=0;s<t.entries.length;s++)t.entries[s]=k(t.entries[s],e,n);else if(t instanceof rn)for(let s of t.entries)s instanceof yn?s.expression=k(s.expression,e,n):s.value=k(s.value,e,n);else if(t instanceof gn)t.condition=k(t.condition,e,n),t.trueCase=k(t.trueCase,e,n),t.falseCase!==null&&(t.falseCase=k(t.falseCase,e,n));else if(t instanceof pr)t.expr=k(t.expr,e,n);else if(t instanceof no)t.expr=k(t.expr,e,n);else if(t instanceof ro)for(let s=0;s<t.expressions.length;s++)t.expressions[s]=k(t.expressions[s],e,n);else if(t instanceof ri)t.condition=k(t.condition,e,n);else if(t instanceof ti)t.tag=k(t.tag,e,n),t.template.expressions=t.template.expressions.map(s=>k(s,e,n));else if(t instanceof Gn)if(Array.isArray(t.body))for(let s=0;s<t.body.length;s++)Ya(t.body[s],e,n|Q.InChildOperation);else t.body=k(t.body,e,n|Q.InChildOperation);else if(!(t instanceof W)){if(t instanceof si)for(let s=0;s<t.expressions.length;s++)t.expressions[s]=k(t.expressions[s],e,n);else if(t instanceof sn)t.expr=k(t.expr,e,n);else if(t instanceof xs)t.expression=k(t.expression,e,n);else if(!(t instanceof nn||t instanceof Qe||t instanceof _e||t instanceof hr))throw new Error(`Unhandled expression kind: ${t.constructor.name}`)}return e(t,n)}function Ya(t,e,n){if(t instanceof Je)t.expr=k(t.expr,e,n);else if(t instanceof be)t.value=k(t.value,e,n);else if(t instanceof Ve)t.value!==void 0&&(t.value=k(t.value,e,n));else if(t instanceof lo){t.condition=k(t.condition,e,n);for(let s of t.trueCase)Ya(s,e,n);for(let s of t.falseCase)Ya(s,e,n)}else throw new Error(`Unhandled statement kind: ${t.constructor.name}`)}function om(t){return t instanceof _e&&typeof t.value=="string"}var st=class{constructor(){a(this,"slot",null)}},nw=new Set([f.Element,f.ElementStart,f.Container,f.ContainerStart,f.Template,f.RepeaterCreate,f.ConditionalCreate,f.ConditionalBranchCreate]);function Gs(t){return nw.has(t.kind)}function sw(t,e,n,s,r,i){return x(x({kind:f.ElementStart,xref:e,tag:t,handle:new st,attributes:null,localRefs:[],nonBindable:!1,namespace:n,i18nPlaceholder:s,startSourceSpan:r,wholeSourceSpan:i},ln),j)}function am(t,e,n,s,r,i,o,l){return x(x({kind:f.Template,xref:t,templateKind:e,attributes:null,tag:n,handle:new st,functionNameSuffix:s,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:r,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:l},ln),j)}function lm(t,e,n,s,r,i,o,l){return x(x({kind:f.ConditionalCreate,xref:t,templateKind:e,attributes:null,tag:n,handle:new st,functionNameSuffix:s,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:r,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:l},ln),j)}function cm(t,e,n,s,r,i,o,l){return x(x({kind:f.ConditionalBranchCreate,xref:t,templateKind:e,attributes:null,tag:n,handle:new st,functionNameSuffix:s,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:r,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:l},ln),j)}function rw(t,e,n,s,r,i,o,l,c,u){return me(x(x(x({kind:f.RepeaterCreate,attributes:null,xref:t,handle:new st,emptyView:e,track:s,trackByFn:null,trackByOps:null,tag:n,emptyTag:i,emptyAttributes:null,functionNameSuffix:"For",namespace:nt.HTML,nonBindable:!1,localRefs:[],decls:null,vars:null,varNames:r,usesComponentInstance:!1,i18nPlaceholder:o,emptyI18nPlaceholder:l,startSourceSpan:c,wholeSourceSpan:u},ln),j),Ot),{numSlotsUsed:e===null?2:3})}function iw(t,e){return x({kind:f.ElementEnd,xref:t,sourceSpan:e},j)}function ow(t){return x({kind:f.DisableBindings,xref:t},j)}function aw(t){return x({kind:f.EnableBindings,xref:t},j)}function um(t,e,n,s){return x(x({kind:f.Text,xref:t,handle:new st,initialValue:e,icuPlaceholder:n,sourceSpan:s},ln),j)}function lw(t,e,n,s,r,i){return x({kind:f.AnimationString,name:t,target:e,animationKind:n,expression:s,i18nMessage:null,securityContext:r,sanitizer:null,sourceSpan:i},j)}function cw(t,e,n,s,r,i){let o=new w;return o.push(s),x({kind:f.Animation,name:t,target:e,animationKind:n,handlerOps:o,handlerFnName:null,i18nMessage:null,securityContext:r,sanitizer:null,sourceSpan:i},j)}function ip(t,e,n,s,r,i,o,l,c){let u=new w;return u.push(r),x({kind:f.Listener,target:t,targetSlot:e,tag:s,hostListener:l,name:n,handlerOps:u,handlerFnName:null,consumesDollarEvent:!1,isLegacyAnimationListener:i!==null,legacyAnimationPhase:i,eventTarget:o,sourceSpan:c},j)}function pm(t,e,n,s,r,i,o,l,c){let u=new w;return u.push(r),x({kind:f.AnimationListener,target:t,targetSlot:e,tag:s,hostListener:l,name:n,animationKind:i,handlerOps:u,handlerFnName:null,consumesDollarEvent:!1,eventTarget:o,sourceSpan:c},j)}function hm(t,e,n,s,r,i){let o=new w;return o.push(r),x({kind:f.TwoWayListener,target:t,targetSlot:e,tag:s,name:n,handlerOps:o,handlerFnName:null,sourceSpan:i},j)}function uw(t,e,n){return x(x({kind:f.Pipe,xref:t,handle:e,name:n},j),ln)}function pw(t){return x({kind:f.Namespace,active:t},j)}function hw(t){return x({kind:f.ProjectionDef,def:t},j)}function fw(t,e,n,s,r){return me(x(x({kind:f.Projection,xref:t,handle:new st,selector:e,i18nPlaceholder:n,fallbackView:s,projectionSlotIndex:0,attributes:null,localRefs:[],sourceSpan:r},j),ln),{numSlotsUsed:s===null?1:2})}function Zt(t,e,n,s,r,i,o,l){return x({kind:f.ExtractedAttribute,target:t,bindingKind:e,namespace:n,name:s,expression:r,i18nContext:i,i18nMessage:o,securityContext:l,trustedValueFn:null},j)}function dw(t,e,n,s,r,i){return me(x(x({kind:f.Defer,xref:t,handle:new st,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:s,resolverFn:r,flags:null,sourceSpan:i},j),ln),{numSlotsUsed:2})}function us(t,e,n,s){return x({kind:f.DeferOn,defer:t,trigger:e,modifier:n,sourceSpan:s},j)}function mw(t,e,n){return x(x({kind:f.DeclareLet,xref:t,declaredName:e,sourceSpan:n,handle:new st},ln),j)}function gw(t,e,n,s,r,i,o,l){return x({kind:f.I18nMessage,xref:t,i18nContext:e,i18nBlock:n,message:s,messagePlaceholder:r,params:i,postprocessingParams:o,needsPostprocessing:l,subMessages:[]},j)}function wl(t,e,n,s){return x(x({kind:f.I18nStart,xref:t,handle:new st,root:n!=null?n:t,message:e,messageIndex:null,subTemplateIndex:null,context:null,sourceSpan:s},j),ln)}function xl(t,e){return x({kind:f.I18nEnd,xref:t,sourceSpan:e},j)}function yw(t,e,n,s){return x({kind:f.IcuStart,xref:t,message:e,messagePlaceholder:n,context:null,sourceSpan:s},j)}function vw(t){return x({kind:f.IcuEnd,xref:t},j)}function Sw(t,e,n){return x({kind:f.IcuPlaceholder,xref:t,name:e,strings:n,expressionPlaceholders:[]},j)}function rc(t,e,n,s,r){if(n===null&&t!==gs.Attr)throw new Error("AssertionError: i18nBlock must be provided for non-attribute contexts.");return x({kind:f.I18nContext,contextKind:t,xref:e,i18nBlock:n,message:s,sourceSpan:r,params:new Map,postprocessingParams:new Map},j)}function fm(t,e,n){return x(x({kind:f.I18nAttributes,xref:t,handle:e,target:n,i18nAttributesConfig:null},j),ln)}function Ew(t,e){return x({kind:f.SourceLocation,templatePath:t,locations:e},j)}function Tw(t){return x({kind:f.ControlCreate,sourceSpan:t},j)}function ww(t,e,n,s,r,i){return x(x({kind:f.DomProperty,name:t,expression:e,bindingKind:n,i18nContext:s,securityContext:r,sanitizer:null,sourceSpan:i},Ot),j)}var dm="CTX_REF_MARKER",_;(function(t){t[t.Tmpl=0]="Tmpl",t[t.Host=1]="Host",t[t.Both=2]="Both"})(_||(_={}));var ft;(function(t){t[t.Full=0]="Full",t[t.DomOnly=1]="DomOnly"})(ft||(ft={}));var Qa=class{constructor(e,n,s){a(this,"componentName");a(this,"pool");a(this,"mode");a(this,"kind",_.Both);a(this,"nextXrefId",0);this.componentName=e,this.pool=n,this.mode=s}allocateXrefId(){return this.nextXrefId++}},Fo=class extends Qa{constructor(n,s,r,i,o,l,c,u,h){super(n,s,r);a(this,"relativeContextFilePath");a(this,"i18nUseExternalIds");a(this,"deferMeta");a(this,"allDeferrableDepsFn");a(this,"relativeTemplatePath");a(this,"enableDebugLocations");a(this,"kind",_.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=h,this.root=new en(this,this.allocateXrefId(),null),this.views.set(this.root.xref,this.root)}allocateView(n){let s=new en(this,this.allocateXrefId(),n);return this.views.set(s.xref,s),s}get units(){return this.views.values()}addConst(n,s){for(let i=0;i<this.consts.length;i++)if(this.consts[i].isEquivalent(n))return i;let r=this.consts.length;return this.consts.push(n),s&&this.constsInitializers.push(...s),r}},Ja=class{constructor(e){a(this,"xref");a(this,"create",new w);a(this,"update",new w);a(this,"functions",new Set);a(this,"fnName",null);a(this,"vars",null);this.xref=e}*ops(){for(let e of this.functions)for(let n of e.ops)yield n;for(let e of this.create)if(yield e,e.kind===f.Listener||e.kind===f.Animation||e.kind===f.AnimationListener||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}},en=class extends Ja{constructor(n,s,r){super(s);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=r}},Za=class extends Qa{constructor(n,s,r){super(n,s,r);a(this,"kind",_.Host);a(this,"fnSuffix","HostBindings");a(this,"root");this.root=new au(this)}get units(){return[this.root]}},au=class extends Ja{constructor(n){super(0);a(this,"job");a(this,"attributes",null);this.job=n}};function xw(t){for(let e of t.units)for(let n of e.ops())Ie(n,Cw,Q.None)}function Cw(t){if(t instanceof ot&&t.fn instanceof Ke&&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 Aw(t){let e=new Map;for(let n of t.units)for(let s of n.create)s.kind===f.I18nContext&&e.set(s.xref,s);for(let n of t.units)for(let s of n.update)s.kind===f.I18nExpression&&Iw(e,s)&&w.insertAfter(ZT(s.i18nOwner,s.handle,null),s)}function Iw(t,e){var r;if(((r=e.next)==null?void 0:r.kind)!==f.I18nExpression)return!0;let n=t.get(e.context),s=t.get(e.next.context);if(n===void 0)throw new Error("AssertionError: expected an I18nContextOp to exist for the I18nExpressionOp's context");if(s===void 0)throw new Error("AssertionError: expected an I18nContextOp to exist for the next I18nExpressionOp's context");return n.i18nBlock!==null?n.i18nBlock!==s.i18nBlock:e.i18nOwner!==e.next.i18nOwner}function Nw(t){for(let e of t.units){let n=e.update.head,s=[],r=null;for(let i of e.create){if(i.kind===f.I18nStart)r={blockXref:i.xref,lastSlotConsumer:i.xref};else if(i.kind===f.I18nEnd){for(let o of s)o.target=r.lastSlotConsumer,w.insertBefore(o,n);s.length=0,r=null}if(xi(i))for(r!==null&&(r.lastSlotConsumer=i.xref);n.next!==null;){if(r!==null&&n.kind===f.I18nExpression&&n.usage===xr.I18nText&&n.i18nOwner===r.blockXref){let l=n;n=n.next,w.remove(l),s.push(l);continue}let o=!1;if(_o(n)&&n.target!==i.xref?o=!0:(n.kind===f.Statement||n.kind===f.Variable)&&Me(n,l=>{!o&&_o(l)&&l.target!==i.xref&&(o=!0)}),o)break;n=n.next}}}}function Dw(t){if(!(!t.enableDebugLocations||t.relativeTemplatePath===null))for(let e of t.units){let n=[];for(let s of e.create)if(s.kind===f.ElementStart||s.kind===f.Element){let r=s.startSourceSpan.start;n.push({targetSlot:s.handle,offset:r.offset,line:r.line,column:r.col})}n.length>0&&e.create.push(Ew(t.relativeTemplatePath,n))}}function mm(t){let e=new Map;for(let n of t.create)xi(n)&&(e.set(n.xref,n),n.kind===f.RepeaterCreate&&n.emptyView!==null&&e.set(n.emptyView,n));return e}function bw(t){for(let e of t.units){let n=mm(e);for(let s of e.ops())switch(s.kind){case f.Attribute:_w(e,s,n);break;case f.Property:if(s.bindingKind!==M.LegacyAnimation&&s.bindingKind!==M.Animation){let r;s.i18nMessage!==null&&s.templateKind===null?r=M.I18n:s.isStructuralTemplateAttribute?r=M.Template:r=M.Property,w.insertBefore(Zt(s.target,r,null,s.name,null,null,null,s.securityContext),Gr(n,s.target))}break;case f.TwoWayProperty:w.insertBefore(Zt(s.target,M.TwoWayProperty,null,s.name,null,null,null,s.securityContext),Gr(n,s.target));break;case f.StyleProp:case f.ClassProp:s.expression instanceof Mo&&w.insertBefore(Zt(s.target,M.Property,null,s.name,null,null,null,ue.STYLE),Gr(n,s.target));break;case f.Listener:if(!s.isLegacyAnimationListener){let r=Zt(s.target,M.Property,null,s.name,null,null,null,ue.NONE);if(t.kind===_.Host)break;w.insertBefore(r,Gr(n,s.target))}break;case f.TwoWayListener:if(t.kind!==_.Host){let r=Zt(s.target,M.Property,null,s.name,null,null,null,ue.NONE);w.insertBefore(r,Gr(n,s.target))}break}}}function Gr(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 _w(t,e,n){if(!(e.expression instanceof Ae)&&e.isTextAttribute){let s=Zt(e.target,e.isStructuralTemplateAttribute?M.Template:M.Attribute,e.namespace,e.name,e.expression,e.i18nContext,e.i18nMessage,e.securityContext);if(t.job.kind===_.Host)t.create.push(s);else{let r=Gr(n,e.target);w.insertBefore(s,r)}w.remove(e)}}var Vh="aria-";function gm(t){return t.startsWith(Vh)&&t.length>Vh.length}function kw(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 Rw(t){let e=new Map;for(let n of t.units)for(let s of n.create)Gs(s)&&e.set(s.xref,s);for(let n of t.units)for(let s of n.ops())if(s.kind===f.Binding)switch(s.bindingKind){case M.Attribute:if(s.name==="ngNonBindable"){w.remove(s);let r=kw(e,s.target);r.nonBindable=!0}else if(s.name.startsWith("animate."))w.replace(s,Uh(s.name,s.target,s.name==="animate.enter"?"enter":"leave",s.expression,s.securityContext,s.sourceSpan,0));else{let[r,i]=vn(s.name);w.replace(s,$h(s.target,r,i,s.expression,s.securityContext,s.isTextAttribute,s.isStructuralTemplateAttribute,s.templateKind,s.i18nMessage,s.sourceSpan))}break;case M.Animation:w.replace(s,Uh(s.name,s.target,s.name==="animate.enter"?"enter":"leave",s.expression,s.securityContext,s.sourceSpan,1));break;case M.Property:case M.LegacyAnimation:t.mode===ft.DomOnly&&gm(s.name)?w.replace(s,$h(s.target,null,s.name,s.expression,s.securityContext,!1,s.isStructuralTemplateAttribute,s.templateKind,s.i18nMessage,s.sourceSpan)):t.kind===_.Host?w.replace(s,ww(s.name,s.expression,s.bindingKind,s.i18nContext,s.securityContext,s.sourceSpan)):w.replace(s,qT(s.target,s.name,s.expression,s.bindingKind,s.securityContext,s.isStructuralTemplateAttribute,s.templateKind,s.i18nContext,s.i18nMessage,s.sourceSpan));break;case M.TwoWayProperty:if(!(s.expression instanceof ie))throw new Error(`Expected value of two-way property binding "${s.name}" to be an expression`);w.replace(s,WT(s.target,s.name,s.expression,s.securityContext,s.isStructuralTemplateAttribute,s.templateKind,s.i18nContext,s.i18nMessage,s.sourceSpan));break;case M.I18n:case M.ClassName:case M.StyleProperty:throw new Error(`Unhandled binding of kind ${M[s.bindingKind]}`)}}var Gh=new Map([[m.ariaProperty,m.ariaProperty],[m.attribute,m.attribute],[m.classProp,m.classProp],[m.element,m.element],[m.elementContainer,m.elementContainer],[m.elementContainerEnd,m.elementContainerEnd],[m.elementContainerStart,m.elementContainerStart],[m.elementEnd,m.elementEnd],[m.elementStart,m.elementStart],[m.domProperty,m.domProperty],[m.i18nExp,m.i18nExp],[m.listener,m.listener],[m.listener,m.listener],[m.property,m.property],[m.styleProp,m.styleProp],[m.syntheticHostListener,m.syntheticHostListener],[m.syntheticHostProperty,m.syntheticHostProperty],[m.templateCreate,m.templateCreate],[m.twoWayProperty,m.twoWayProperty],[m.twoWayListener,m.twoWayListener],[m.declareLet,m.declareLet],[m.conditionalCreate,m.conditionalBranchCreate],[m.conditionalBranchCreate,m.conditionalBranchCreate],[m.domElement,m.domElement],[m.domElementStart,m.domElementStart],[m.domElementEnd,m.domElementEnd],[m.domElementContainer,m.domElementContainer],[m.domElementContainerStart,m.domElementContainerStart],[m.domElementContainerEnd,m.domElementContainerEnd],[m.domListener,m.domListener],[m.domTemplate,m.domTemplate],[m.animationEnter,m.animationEnter],[m.animationLeave,m.animationLeave],[m.animationEnterListener,m.animationEnterListener],[m.animationLeaveListener,m.animationLeaveListener]]),Pw=256;function Lw(t){for(let e of t.units)Hh(e.create),Hh(e.update)}function Hh(t){let e=null;for(let n of t){if(n.kind!==f.Statement||!(n.statement instanceof Je)){e=null;continue}if(!(n.statement.expr instanceof ot)||!(n.statement.expr.fn instanceof Qe)){e=null;continue}let s=n.statement.expr.fn.value;if(!Gh.has(s)){e=null;continue}if(e!==null&&Gh.get(e.instruction)===s&&e.length<Pw){let r=e.expression.callFn(n.statement.expr.args,n.statement.expr.sourceSpan,n.statement.expr.pure);e.expression=r,e.op.statement=r.toStmt(),e.length++,w.remove(n)}else e={op:n,instruction:s,expression:n.statement.expr,length:1}}}function Mw(t){for(let e of t.units)for(let n of e.update)(n.kind===f.Attribute||n.kind===f.StyleProp||n.kind==f.StyleMap||n.kind===f.ClassMap)&&n.expression instanceof Ae&&n.expression.strings.length===2&&n.expression.strings.every(r=>r==="")&&(n.expression=n.expression.expressions[0])}function Ow(t){for(let e of t.units)for(let n of e.ops()){if(n.kind!==f.Conditional)continue;let s,r=n.conditions.findIndex(l=>l.expr===null);if(r>=0){let l=n.conditions.splice(r,1)[0].targetSlot;s=new Ka(l)}else s=S(-1);let i=n.test==null?null:new Vn(n.test,t.allocateXrefId()),o=null;for(let l=n.conditions.length-1;l>=0;l--){let c=n.conditions[l];if(c.expr!==null){if(i!==null){let u=l===0?i:new Vs(i.xref);c.expr=new se(T.Identical,u,c.expr)}else c.alias!==null&&(o!=null||(o=t.allocateXrefId()),c.expr=new Vn(c.expr,o),n.contextValue=new Vs(o));s=new gn(c.expr,new Ka(c.targetSlot),s)}}n.processed=s,n.conditions=[]}}var Fw=new Map([["&&",T.And],[">",T.Bigger],[">=",T.BiggerEquals],["|",T.BitwiseOr],["&",T.BitwiseAnd],["/",T.Divide],["=",T.Assign],["==",T.Equals],["===",T.Identical],["<",T.Lower],["<=",T.LowerEquals],["-",T.Minus],["%",T.Modulo],["**",T.Exponentiation],["*",T.Multiply],["!=",T.NotEquals],["!==",T.NotIdentical],["??",T.NullishCoalesce],["||",T.Or],["+",T.Plus],["in",T.In],["instanceof",T.InstanceOf],["+=",T.AdditionAssignment],["-=",T.SubtractionAssignment],["*=",T.MultiplicationAssignment],["/=",T.DivisionAssignment],["%=",T.RemainderAssignment],["**=",T.ExponentiationAssignment],["&&=",T.AndAssignment],["||=",T.OrAssignment],["??=",T.NullishCoalesceAssignment]]);function ym(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 Bw(t){let e=new Map([["svg",nt.SVG],["math",nt.Math]]);for(let[n,s]of e.entries())if(s===t)return n;return null}function $w(t,e){return e===nt.HTML?t:`:${Bw(e)}:${t}`}function yi(t){return Array.isArray(t)?ae(t.map(yi)):S(t)}function Uw(t){let e=new Map;for(let n of t.units)for(let s of n.create)if(s.kind===f.ExtractedAttribute){let r=e.get(s.target)||new lu;e.set(s.target,r),r.add(s.bindingKind,s.name,s.expression,s.namespace,s.trustedValueFn),w.remove(s)}if(t instanceof Fo)for(let n of t.units)for(let s of n.create)if(s.kind==f.Projection){let r=e.get(s.xref);if(r!==void 0){let i=cu(r);i.entries.length>0&&(s.attributes=i)}}else Gs(s)&&(s.attributes=qh(t,e,s.xref),s.kind===f.RepeaterCreate&&s.emptyView!==null&&(s.emptyAttributes=qh(t,e,s.emptyView)));else if(t instanceof Za)for(let[n,s]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 r=cu(s);r.entries.length>0&&(t.root.attributes=r)}}function qh(t,e,n){let s=e.get(n);if(s!==void 0){let r=cu(s);if(r.entries.length>0)return t.addConst(r)}return null}var Or=Object.freeze([]),lu=class{constructor(){a(this,"known",new Map);a(this,"byKind",new Map);a(this,"propertyBindings",null);a(this,"projectAs",null)}get attributes(){var e;return(e=this.byKind.get(M.Attribute))!=null?e:Or}get classes(){var e;return(e=this.byKind.get(M.ClassName))!=null?e:Or}get styles(){var e;return(e=this.byKind.get(M.StyleProperty))!=null?e:Or}get bindings(){var e;return(e=this.propertyBindings)!=null?e:Or}get template(){var e;return(e=this.byKind.get(M.Template))!=null?e:Or}get i18n(){var e;return(e=this.byKind.get(M.I18n))!=null?e:Or}isKnown(e,n){var r;let s=(r=this.known.get(e))!=null?r:new Set;return this.known.set(e,s),s.has(n)?!0:(s.add(n),!1)}add(e,n,s,r,i){var c;if(!(e===M.Attribute||e===M.ClassName||e===M.StyleProperty)&&this.isKnown(e,n))return;if(n==="ngProjectAs"){if(s===null||!(s instanceof _e)||s.value==null||typeof((c=s.value)==null?void 0:c.toString())!="string")throw Error("ngProjectAs must have a string literal value");this.projectAs=s.value.toString()}let l=this.arrayFor(e);if(l.push(...Vw(r,n)),e===M.Attribute||e===M.StyleProperty){if(s===null)throw Error("Attribute, i18n attribute, & style element attributes must have a value");if(i!==null){if(!om(s))throw Error("AssertionError: extracted attribute value should be string literal");l.push(bd(i,new si([new so(s.value)],[]),void 0,s.sourceSpan))}else l.push(s)}}arrayFor(e){var n;return e===M.Property||e===M.TwoWayProperty?((n=this.propertyBindings)!=null||(this.propertyBindings=[]),this.propertyBindings):(this.byKind.has(e)||this.byKind.set(e,[]),this.byKind.get(e))}};function Vw(t,e){let n=S(e);return t?[S(0),S(t),n]:[n]}function cu({attributes:t,bindings:e,classes:n,i18n:s,projectAs:r,styles:i,template:o}){let l=[...t];if(r!==null){let c=Ku(r)[0];l.push(S(5),yi(c))}return n.length>0&&l.push(S(1),...n),i.length>0&&l.push(S(2),...i),e.length>0&&l.push(S(3),...e),o.length>0&&l.push(S(4),...o),s.length>0&&l.push(S(6),...s),ae(l)}function Gw(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 Hw(t){let e=new Map;for(let n of t.units)for(let s of n.create)Gs(s)&&e.set(s.xref,s);for(let n of t.units)for(let s of n.ops())if(s.kind===f.AnimationBinding){let r=qw(s);t.kind===_.Host?n.create.push(r):w.insertAfter(r,Gw(e,s.target)),w.remove(s)}}function qw(t){if(t.animationBindingKind===0)return lw(t.name,t.target,t.name==="animate.enter"?"enter":"leave",t.expression,t.securityContext,t.sourceSpan);{let e=t.expression;return cw(t.name,t.target,t.name==="animate.enter"?"enter":"leave",[Wt(new be(e,e.sourceSpan))],t.securityContext,t.sourceSpan)}}function Ww(t){let e=new Map;for(let n of t.units){for(let s of n.create)s.kind===f.I18nAttributes&&e.set(s.target,s);for(let s of n.update)switch(s.kind){case f.Property:case f.Attribute:if(s.i18nContext===null||!(s.expression instanceof Ae))continue;let r=e.get(s.target);if(r===void 0)throw new Error("AssertionError: An i18n attribute binding instruction requires the owning element to have an I18nAttributes create instruction");if(r.target!==s.target)throw new Error("AssertionError: Expected i18nAttributes target element to match binding target element");let i=[];for(let o=0;o<s.expression.expressions.length;o++){let l=s.expression.expressions[o];if(s.expression.i18nPlaceholders.length!==s.expression.expressions.length)throw new Error(`AssertionError: An i18n attribute binding instruction requires the same number of expressions and placeholders, but found ${s.expression.i18nPlaceholders.length} placeholders and ${s.expression.expressions.length} expressions`);i.push(im(s.i18nContext,r.target,r.xref,r.handle,l,null,s.expression.i18nPlaceholders[o],fi.Creation,xr.I18nAttribute,s.name,s.sourceSpan))}w.replaceWithMany(s,i);break}}}function jw(t){let e=new Map;for(let r of t.units)for(let i of r.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=rc(gs.Attr,t.allocateXrefId(),null,i.i18nMessage,null);r.create.push(o),e.set(i.i18nMessage,o.xref)}i.i18nContext=e.get(i.i18nMessage);break}let n=new Map;for(let r of t.units)for(let i of r.create)switch(i.kind){case f.I18nStart:if(i.xref===i.root){let o=rc(gs.RootI18n,t.allocateXrefId(),i.xref,i.message,null);r.create.push(o),i.context=o.xref,n.set(i.xref,o)}break}for(let r of t.units)for(let i of r.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 s=null;for(let r of t.units)for(let i of r.create)switch(i.kind){case f.I18nStart:s=i;break;case f.I18nEnd:s=null;break;case f.IcuStart:if(s===null)throw Error("AssertionError: Unexpected ICU outside of an i18n block.");if(i.message.id!==s.message.id){let o=rc(gs.Icu,t.allocateXrefId(),s.root,i.message,null);r.create.push(o),i.context=o.xref}else i.context=s.context,n.get(s.xref).contextKind=gs.Icu;break}}function zw(t){let e=new Map;for(let n of t.units)for(let s of n.update.reversed())if(s.kind===f.Binding&&s.isTextAttribute){let r=e.get(s.target)||new Set;r.has(s.name)&&(s.name==="style"||s.name==="class")&&w.remove(s),r.add(s.name),e.set(s.target,r)}}function Kw(t){for(let e of t.units)for(let n of e.create)n.kind===f.Defer&&(n.placeholderMinimumTime!==null&&(n.placeholderConfig=new Oo(yi([n.placeholderMinimumTime]))),(n.loadingMinimumTime!==null||n.loadingAfterTime!==null)&&(n.loadingConfig=new Oo(yi([n.loadingMinimumTime,n.loadingAfterTime]))))}function Xw(t){let e=new Map;function n(r){if(e.has(r.xref))return e.get(r.xref);let i=new Yw;for(let o of r.create)if(!(!Gs(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(r.xref,i),i}function s(r,i,o){switch(i.trigger.kind){case ce.Idle:case ce.Never:case ce.Immediate:case ce.Timer:return;case ce.Hover:case ce.Interaction:case ce.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 h of u.create)if(xi(h)&&(Gs(h)||h.kind===f.Projection)){i.trigger.targetXref=h.xref,i.trigger.targetView=o,i.trigger.targetSlotViewSteps=-1,i.trigger.targetSlot=h.handle;return}return}let l=o!==null?t.views.get(o):r,c=o!==null?-1:0;for(;l!==null;){let u=n(l);if(u.targets.has(i.trigger.targetName)){let{xref:h,slot:d}=u.targets.get(i.trigger.targetName);i.trigger.targetXref=h,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 r of t.units){let i=new Map;for(let o of r.create)switch(o.kind){case f.Defer:i.set(o.xref,o);break;case f.DeferOn:let l=i.get(o.defer);s(r,o,o.modifier==="hydrate"?l.mainView:l.placeholderView);break}}}var Yw=class{constructor(){a(this,"targets",new Map)}},Qw=new Map([[f.ElementEnd,[f.ElementStart,f.Element]],[f.ContainerEnd,[f.ContainerStart,f.Container]],[f.I18nEnd,[f.I18nStart,f.I18n]]]),Jw=new Set([f.Pipe]);function Zw(t){for(let e of t.units)for(let n of e.create){let s=Qw.get(n.kind);if(s===void 0)continue;let[r,i]=s,o=n.prev;for(;o!==null&&Jw.has(o.kind);)o=o.prev;o!==null&&o.kind===r&&(o.kind=i,w.remove(n))}}function ex(t){for(let e of t.units)for(let n of e.ops())Ie(n,s=>ox(s,{job:t}),Q.None),Ie(n,ax,Q.None)}function Bt(t){return t instanceof Qn?Bt(t.expr):t instanceof se?Bt(t.lhs)||Bt(t.rhs):t instanceof gn?t.falseCase&&Bt(t.falseCase)?!0:Bt(t.condition)||Bt(t.trueCase):t instanceof ri?Bt(t.condition):t instanceof Vn?Bt(t.expr):t instanceof wt?Bt(t.receiver):t instanceof Pn?Bt(t.receiver)||Bt(t.index):t instanceof sn?Bt(t.expr):t instanceof ot||t instanceof kt||t instanceof rn||t instanceof Nr||t instanceof Ir}function tx(t){let e=new Set;return k(t,n=>(n instanceof Vn&&e.add(n.xref),n),Q.None),e}function nx(t,e,n){return k(t,s=>{if(s instanceof Vn&&e.has(s.xref)){let r=new Vs(s.xref);return new Vn(r,r.xref)}return s},Q.None),t}function Fr(t,e,n){let s;if(Bt(t)){let r=n.job.allocateXrefId();s=[new Vn(t,r),new Vs(r)]}else s=[t,t.clone()],nx(s[1],tx(s[0]));return new gi(s[0],e(s[1]))}function sx(t){return t instanceof di||t instanceof mi||t instanceof Nr}function rx(t){return t instanceof wt||t instanceof Pn||t instanceof ot}function vm(t){return sx(t)||rx(t)}function ix(t){if(vm(t)&&t.receiver instanceof gi){let e=t.receiver;for(;e.expr instanceof gi;)e=e.expr;return e}return null}function ox(t,e){if(!vm(t))return t;let n=ix(t);if(n){if(t instanceof ot)return n.expr=n.expr.callFn(t.args),t.receiver;if(t instanceof wt)return n.expr=n.expr.prop(t.name),t.receiver;if(t instanceof Pn)return n.expr=n.expr.key(t.index),t.receiver;if(t instanceof Nr)return n.expr=Fr(n.expr,s=>s.callFn(t.args),e),t.receiver;if(t instanceof di)return n.expr=Fr(n.expr,s=>s.prop(t.name),e),t.receiver;if(t instanceof mi)return n.expr=Fr(n.expr,s=>s.key(t.index),e),t.receiver}else{if(t instanceof Nr)return Fr(t.receiver,s=>s.callFn(t.args),e);if(t instanceof di)return Fr(t.receiver,s=>s.prop(t.name),e);if(t instanceof mi)return Fr(t.receiver,s=>s.key(t.index),e)}return t}function ax(t){return t instanceof gi?new sn(new gn(new se(T.Equals,t.guard,fr),fr,t.expr)):t}var Wh="\uFFFD",lx="#",cx="*",ux="/",px=":",hx="[",fx="]",dx="|";function mx(t){let e=new Map,n=new Map,s=new Map;for(let i of t.units)for(let o of i.create)switch(o.kind){case f.I18nContext:let l=gx(t,o);i.create.push(l),e.set(o.xref,l),s.set(o.xref,o);break;case f.I18nStart:n.set(o.xref,o);break}let r=null;for(let i of t.units)for(let o of i.create)switch(o.kind){case f.IcuStart:r=o,w.remove(o);let l=s.get(o.context);if(l.contextKind!==gs.Icu)continue;let c=n.get(l.i18nBlock);if(c.context===l.xref)continue;let u=n.get(c.root),h=e.get(u.context);if(h===void 0)throw Error("AssertionError: ICU sub-message should belong to a root message.");let d=e.get(l.xref);d.messagePlaceholder=o.messagePlaceholder,h.subMessages.push(d.xref);break;case f.IcuEnd:r=null,w.remove(o);break;case f.IcuPlaceholder:if(r===null||r.context==null)throw Error("AssertionError: Unexpected ICU placeholder outside of i18n context");e.get(r.context).postprocessingParams.set(o.name,S(yx(o))),w.remove(o);break}}function gx(t,e,n){let s=jh(e.params),r=jh(e.postprocessingParams),i=[...e.params.values()].some(o=>o.length>1);return gw(t.allocateXrefId(),e.xref,e.i18nBlock,e.message,null,s,r,i)}function yx(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(zr);return t.strings.flatMap((n,s)=>[n,e[s]||""]).join("")}function jh(t){let e=new Map;for(let[n,s]of t){let r=vx(s);r!==null&&e.set(n,S(r))}return e}function vx(t){if(t.length===0)return null;let e=t.map(n=>zr(n));return e.length===1?e[0]:`${hx}${e.join(dx)}${fx}`}function zr(t){if(t.flags&he.ElementTag&&t.flags&he.TemplateTag){if(typeof t.value!="object")throw Error("AssertionError: Expected i18n param value to have an element and template slot");let r=zr(me(x({},t),{value:t.value.element,flags:t.flags&~he.TemplateTag})),i=zr(me(x({},t),{value:t.value.template,flags:t.flags&~he.ElementTag}));return t.flags&he.OpenTag&&t.flags&he.CloseTag?`${i}${r}${i}`:t.flags&he.CloseTag?`${r}${i}`:`${i}${r}`}if(t.flags&he.OpenTag&&t.flags&he.CloseTag)return`${zr(me(x({},t),{flags:t.flags&~he.CloseTag}))}${zr(me(x({},t),{flags:t.flags&~he.OpenTag}))}`;if(t.flags===he.None)return`${t.value}`;let e="",n="";t.flags&he.ElementTag?e=lx:t.flags&he.TemplateTag&&(e=cx),e!==""&&(n=t.flags&he.CloseTag?ux:"");let s=t.subTemplateIndex===null?"":`${px}${t.subTemplateIndex}`;return`${Wh}${n}${e}${t.value}${s}${Wh}`}function Sx(t){for(let e of t.units){let n=new Map;for(let r of e.create){if(xi(r)){if(r.handle.slot===null)throw new Error("AssertionError: expected slots to have been allocated before generating advance() calls")}else continue;n.set(r.xref,r.handle.slot)}let s=0;for(let r of e.update){let i=null;if(_o(r)?i=r:Me(r,l=>{i===null&&_o(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(s!==o){let l=o-s;if(l<0)throw new Error("AssertionError: slot counter should never need to move backwards");w.insertBefore(YT(l,i.sourceSpan),r),s=o}}}}function Ex(t){for(let e of t.units)for(let n of e.update){if(n.kind!==f.StoreLet)continue;let s={kind:We.Identifier,name:null,identifier:n.declaredName,local:!0};w.replace(n,ds(t.allocateXrefId(),s,new ko(n.target,n.value,n.sourceSpan),Ut.None))}}function Tx(t){let n=[],s=0;for(let r of t.units)for(let i of r.create)i.kind===f.Projection&&(n.push(i.selector),i.projectionSlotIndex=s++);if(n.length>0){let r=null;if(n.length>1||n[0]!=="*"){let i=n.map(o=>o==="*"?o:Ku(o));r=t.pool.getConstLiteral(yi(i),!0)}t.contentSelectors=t.pool.getConstLiteral(yi(n),!0),t.root.create.prepend([hw(r)])}}function wx(t){qi(t.root,null)}function qi(t,e){let n=zh(t,e);for(let s of t.create)switch(s.kind){case f.ConditionalCreate:case f.ConditionalBranchCreate:case f.Template:qi(t.job.views.get(s.xref),n);break;case f.Projection:s.fallbackView!==null&&qi(t.job.views.get(s.fallbackView),n);break;case f.RepeaterCreate:qi(t.job.views.get(s.xref),n),s.emptyView&&qi(t.job.views.get(s.emptyView),n),s.trackByOps!==null&&s.trackByOps.prepend(Wi(t,n,!1));break;case f.Animation:case f.AnimationListener:case f.Listener:case f.TwoWayListener:s.handlerOps.prepend(Wi(t,n,!0));break}t.update.prepend(Wi(t,n,!1));for(let s of t.functions)s.ops.prepend(Wi(t,zh(t,e),!0))}function zh(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 s of t.contextVariables.keys())n.contextVariables.set(s,{kind:We.Identifier,name:null,identifier:s,local:!1});for(let s of t.create)switch(s.kind){case f.ElementStart:case f.ConditionalCreate:case f.ConditionalBranchCreate:case f.Template:if(!Array.isArray(s.localRefs))throw new Error("AssertionError: expected localRefs to be an array");for(let r=0;r<s.localRefs.length;r++)n.references.push({name:s.localRefs[r].name,targetId:s.xref,targetSlot:s.handle,offset:r,variable:{kind:We.Identifier,name:null,identifier:s.localRefs[r].name,local:!1}});break;case f.DeclareLet:n.letDeclarations.push({targetId:s.xref,targetSlot:s.handle,variable:{kind:We.Identifier,name:null,identifier:s.declaredName,local:!1}});break}return n}function Wi(t,e,n){let s=[];e.view!==t.xref&&s.push(ds(t.job.allocateXrefId(),e.viewContextVariable,new Wa,Ut.None));let r=t.job.views.get(e.view);for(let[i,o]of r.contextVariables){let l=new $s(e.view),c=o===dm?l:new wt(l,o);s.push(ds(t.job.allocateXrefId(),e.contextVariables.get(i),c,Ut.None))}for(let i of r.aliases)s.push(ds(t.job.allocateXrefId(),i,i.expression.clone(),Ut.AlwaysInline));for(let i of e.references)s.push(ds(t.job.allocateXrefId(),i.variable,new qa(i.targetId,i.targetSlot,i.offset),Ut.None));if(e.view!==t.xref||n)for(let i of e.letDeclarations)s.push(ds(t.job.allocateXrefId(),i.variable,new Ro(i.targetId,i.targetSlot),Ut.None));return e.parent!==null&&s.push(...Wi(t,e.parent,!1)),s}function xx(t){for(let e of t.units)for(let n of e.ops())Ie(n,s=>s instanceof Oo?S(t.addConst(s.expr)):s,Q.None)}var Kh="style.",Xh="class.",Cx="style!",Yh="class!",Qh="!important";function Ax(t){for(let e of t.root.update)if(e.kind===f.Binding&&e.bindingKind===M.Property)if(e.name.endsWith(Qh)&&(e.name=e.name.substring(0,e.name.length-Qh.length)),e.name.startsWith(Kh)){e.bindingKind=M.StyleProperty,e.name=e.name.substring(Kh.length),Ix(e.name)||(e.name=Nx(e.name));let{property:n,suffix:s}=ic(e.name);e.name=n,e.unit=s}else e.name.startsWith(Cx)?(e.bindingKind=M.StyleProperty,e.name="style"):e.name.startsWith(Xh)?(e.bindingKind=M.ClassName,e.name=ic(e.name.substring(Xh.length)).property):e.name.startsWith(Yh)&&(e.bindingKind=M.ClassName,e.name=ic(e.name.substring(Yh.length)).property)}function Ix(t){return t.startsWith("--")}function Nx(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function ic(t){let e=t.indexOf("!important");e!==-1&&(t=e>0?t.substring(0,e):"");let n=null,s=t,r=t.lastIndexOf(".");return r>0&&(n=t.slice(r+1),s=t.substring(0,r)),{property:s,suffix:n}}function uu(t,e=!1){return xt(Object.keys(t).map(n=>({key:n,quoted:e,value:t[n]})))}var pu=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){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`{${Ko(e,!1)}}`}},Dx=new pu;function Sm(t){return t.visit(Dx)}var es=class{constructor(e,n){a(this,"sourceSpan");a(this,"i18n");this.sourceSpan=e,this.i18n=n}},Dr=class extends es{constructor(n,s,r,i){super(s,i);a(this,"value");a(this,"tokens");this.value=n,this.tokens=r}visit(n,s){return n.visitText(this,s)}},ar=class extends es{constructor(n,s,r,i,o,l){super(i,l);a(this,"switchValue");a(this,"type");a(this,"cases");a(this,"switchValueSourceSpan");this.switchValue=n,this.type=s,this.cases=r,this.switchValueSourceSpan=o}visit(n,s){return n.visitExpansion(this,s)}},el=class{constructor(e,n,s,r,i){a(this,"value");a(this,"expression");a(this,"sourceSpan");a(this,"valueSourceSpan");a(this,"expSourceSpan");this.value=e,this.expression=n,this.sourceSpan=s,this.valueSourceSpan=r,this.expSourceSpan=i}visit(e,n){return e.visitExpansionCase(this,n)}},hu=class extends es{constructor(n,s,r,i,o,l,c){super(r,c);a(this,"name");a(this,"value");a(this,"keySpan");a(this,"valueSpan");a(this,"valueTokens");this.name=n,this.value=s,this.keySpan=i,this.valueSpan=o,this.valueTokens=l}visit(n,s){return n.visitAttribute(this,s)}},Kt=class extends es{constructor(n,s,r,i,o,l,c,u=null,h,d){super(l,d);a(this,"name");a(this,"attrs");a(this,"directives");a(this,"children");a(this,"isSelfClosing");a(this,"startSourceSpan");a(this,"endSourceSpan");a(this,"isVoid");this.name=n,this.attrs=s,this.directives=r,this.children=i,this.isSelfClosing=o,this.startSourceSpan=c,this.endSourceSpan=u,this.isVoid=h}visit(n,s){return n.visitElement(this,s)}},Bo=class{constructor(e,n){a(this,"value");a(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e,n){return e.visitComment(this,n)}},Qt=class extends es{constructor(n,s,r,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=s,this.children=r,this.nameSpan=o,this.startSourceSpan=l,this.endSourceSpan=c}visit(n,s){return n.visitBlock(this,s)}},ht=class extends es{constructor(n,s,r,i,o,l,c,u,h,d=null,p){super(u,p);a(this,"componentName");a(this,"tagName");a(this,"fullName");a(this,"attrs");a(this,"directives");a(this,"children");a(this,"isSelfClosing");a(this,"startSourceSpan");a(this,"endSourceSpan");this.componentName=n,this.tagName=s,this.fullName=r,this.attrs=i,this.directives=o,this.children=l,this.isSelfClosing=c,this.startSourceSpan=h,this.endSourceSpan=d}visit(n,s){return n.visitComponent(this,s)}},fu=class{constructor(e,n,s,r,i=null){a(this,"name");a(this,"attrs");a(this,"sourceSpan");a(this,"startSourceSpan");a(this,"endSourceSpan");this.name=e,this.attrs=n,this.sourceSpan=s,this.startSourceSpan=r,this.endSourceSpan=i}visit(e,n){return e.visitDirective(this,n)}},tl=class{constructor(e,n){a(this,"expression");a(this,"sourceSpan");this.expression=e,this.sourceSpan=n}visit(e,n){return e.visitBlockParameter(this,n)}},nl=class{constructor(e,n,s,r,i){a(this,"name");a(this,"value");a(this,"sourceSpan");a(this,"nameSpan");a(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=s,this.nameSpan=r,this.valueSpan=i}visit(e,n){return e.visitLetDeclaration(this,n)}};function ge(t,e,n=null){let s=[],r=t.visit?i=>t.visit(i,n)||i.visit(t,n):i=>i.visit(t,n);return e.forEach(i=>{let o=r(i);o&&s.push(o)}),s}var $o={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:`
|
|
21
|
+
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",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"},Em="\uE500";$o.ngsp=Em;var du=class{constructor(e,n,s){a(this,"tokens");a(this,"errors");a(this,"nonNormalizedIcuExpressions");this.tokens=e,this.errors=n,this.nonNormalizedIcuExpressions=s}};function bx(t,e,n,s={}){let r=new mu(new Fs(t,e),n,s);return r.tokenize(),new du($x(r.tokens),r.errors,r.nonNormalizedIcuExpressions)}var _x=/\r\n?/g;function Br(t){return`Unexpected character "${t===Xe?"EOF":String.fromCharCode(t)}"`}function Jh(t){return`Unknown entity "${t}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function kx(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var sl;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(sl||(sl={}));var Rx=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"],Oi={start:"{{",end:"}}"},mu=class{constructor(e,n,s){a(this,"_getTagDefinition");a(this,"_cursor");a(this,"_tokenizeIcu");a(this,"_leadingTriviaCodePoints");a(this,"_currentTokenStart",null);a(this,"_currentTokenType",null);a(this,"_expansionCaseStack",[]);a(this,"_openDirectiveCount",0);a(this,"_inInterpolation",!1);a(this,"_preserveLineEndings");a(this,"_i18nNormalizeLineEndingsInICUs");a(this,"_tokenizeBlocks");a(this,"_tokenizeLet");a(this,"_selectorlessEnabled");a(this,"tokens",[]);a(this,"errors",[]);a(this,"nonNormalizedIcuExpressions",[]);var i,o,l;this._getTagDefinition=n,this._tokenizeIcu=s.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=s.leadingTriviaChars&&s.leadingTriviaChars.map(c=>c.codePointAt(0)||0);let r=s.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=s.escapedString?new gu(e,r):new rl(e,r),this._preserveLineEndings=s.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=s.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=(i=s.tokenizeBlocks)!=null?i:!0,this._tokenizeLet=(o=s.tokenizeLet)!=null?o:!0,this._selectorlessEnabled=(l=s.selectorlessEnabled)!=null?l:!1;try{this._cursor.init()}catch(c){this.handleError(c)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(_x,`
|
|
22
|
+
`)}tokenize(){for(;this._cursor.peek()!==Xe;){let e=this._cursor.clone();try{this._attemptCharCode(Zr)?this._attemptCharCode(jc)?this._attemptCharCode(kn)?this._consumeCdata(e):this._attemptCharCode(Va)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(Xt)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeLet&&this._cursor.peek()===Mr&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(mt)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(n){this.handleError(n)}}this._beginToken(41),this._endToken([])}_getBlockName(){let e=!1,n=this._cursor.clone();return this._attemptCharCodeUntilFn(s=>Do(s)?!e:Bx(s)?(e=!0,!1):!0),this._cursor.getChars(n).trim()}_consumeBlockStart(e){this._requireCharCode(Mr),this._beginToken(24,e);let n=this._endToken([this._getBlockName()]);if(n.parts[0]==="default never"&&this._attemptCharCode(Dt)){this._beginToken(25),this._endToken([]),this._beginToken(26),this._endToken([]);return}if(this._cursor.peek()===yt)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Ee),this._attemptCharCode(Be))this._attemptCharCodeUntilFn(Ee);else{n.type=28;return}this._attemptCharCode(Jt)?(this._beginToken(25),this._endToken([])):this._isBlockStart()&&(n.parts[0]==="case"||n.parts[0]==="default")?(this._beginToken(25),this._endToken([]),this._beginToken(26),this._endToken([])):n.type=28}_consumeBlockEnd(e){this._beginToken(26,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(ef);this._cursor.peek()!==Be&&this._cursor.peek()!==Xe;){this._beginToken(27);let e=this._cursor.clone(),n=null,s=0;for(;this._cursor.peek()!==Dt&&this._cursor.peek()!==Xe||n!==null;){let r=this._cursor.peek();if(r===or)this._cursor.advance();else if(r===n)n=null;else if(n===null&&Ki(r))n=r;else if(r===yt&&n===null)s++;else if(r===Be&&n===null){if(s===0)break;s>0&&s--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(ef)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(29,e),Do(this._cursor.peek()))this._attemptCharCodeUntilFn(Ee);else{let r=this._endToken([this._cursor.getChars(e)]);r.type=32;return}let n=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Ee),!this._attemptCharCode(ze)){n.type=32;return}this._attemptCharCodeUntilFn(r=>Ee(r)&&!Ga(r)),this._consumeLetDeclarationValue(),this._cursor.peek()===Dt?(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(s=>Os(s)||s===Tl||s===js||n&&Yt(s)?(n=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(30,e);this._cursor.peek()!==Xe;){let n=this._cursor.peek();if(n===Dt)break;Ki(n)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(s=>s===or?(this._cursor.advance(),!1):s===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()===mt){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 G(this._cursor.getSpan(n),"Programming error - attempted to end a token when there was no start to the token");if(this._currentTokenType===null)throw new G(this._cursor.getSpan(this._currentTokenStart),"Programming error - attempted to end a token which has no token type");let s={type:this._currentTokenType,parts:e,sourceSpan:(n!=null?n:this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(s),this._currentTokenStart=null,this._currentTokenType=null,s}_createError(e,n){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let s=new G(n,e);return this._currentTokenStart=null,this._currentTokenType=null,s}handleError(e){if(e instanceof Uo&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof G)this.errors.push(e);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(Br(this._cursor.peek()),this._cursor.getSpan(n))}_attemptStr(e){let n=e.length;if(this._cursor.charsLeft()<n)return!1;let s=this._cursor.clone();for(let r=0;r<n;r++)if(!this._attemptCharCode(e.charCodeAt(r)))return this._cursor=s,!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(Br(this._cursor.peek()),this._cursor.getSpan(n))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,n){let s=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(s)<n)throw this._createError(Br(this._cursor.peek()),this._cursor.getSpan(s))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(){let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_peekStr(e){let n=e.length;if(this._cursor.charsLeft()<n)return!1;let s=this._cursor.clone();for(let r=0;r<n;r++){if(s.peek()!==e.charCodeAt(r))return!1;s.advance()}return!0}_isBlockStart(){return this._cursor.peek()===Mr&&Rx.some(e=>this._peekStr(e))}_isLetStart(){return this._cursor.peek()===Mr&&this._peekStr("@let")}_consumeEntity(e){this._beginToken(9);let n=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(Hd)){let s=this._attemptCharCode(Qd)||this._attemptCharCode(XE),r=this._cursor.clone();if(this._attemptCharCodeUntilFn(Lx),this._cursor.peek()!=Dt){this._cursor.advance();let o=s?sl.HEX:sl.DEC;throw this._createError(kx(o,this._cursor.getChars(n)),this._cursor.getSpan())}let i=this._cursor.getChars(r);this._cursor.advance();try{let o=parseInt(i,s?16:10);this._endToken([String.fromCodePoint(o),this._cursor.getChars(n)])}catch(o){throw this._createError(Jh(this._cursor.getChars(n)),this._cursor.getSpan())}}else{let s=this._cursor.clone();if(this._attemptCharCodeUntilFn(Mx),this._cursor.peek()!=Dt)this._beginToken(e,n),this._cursor=s,this._endToken(["&"]);else{let r=this._cursor.getChars(s);this._cursor.advance();let i=$o.hasOwnProperty(r)&&$o[r];if(!i)throw this._createError(Jh(r),this._cursor.getSpan(n));this._endToken([i,`&${r};`])}}}_consumeRawText(e,n){this._beginToken(e?6:7);let s=[];for(;;){let r=this._cursor.clone(),i=n();if(this._cursor=r,i)break;e&&this._cursor.peek()===Ua?(this._endToken([this._processCarriageReturns(s.join(""))]),s.length=0,this._consumeEntity(6),this._beginToken(6)):s.push(this._readChar())}this._endToken([this._processCarriageReturns(s.join(""))])}_consumeComment(e){this._beginToken(10,e),this._requireCharCode(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($t);let s=this._cursor.getChars(n);this._cursor.advance(),this._endToken([s])}_consumePrefixAndName(e){let n=this._cursor.clone(),s="";for(;this._cursor.peek()!==In&&!Px(this._cursor.peek());)this._cursor.advance();let r;this._cursor.peek()===In?(s=this._cursor.getChars(n),this._cursor.advance(),r=this._cursor.clone()):r=n,this._requireCharCodeUntilFn(e,s===""?0:1);let i=this._cursor.getChars(r);return[s,i]}_consumeTagOpen(e){let n,s,r,i;try{if(this._selectorlessEnabled&&fa(this._cursor.peek()))i=this._consumeComponentOpenStart(e),[r,s,n]=i.parts,s&&(r+=`:${s}`),n&&(r+=`:${n}`),this._attemptCharCodeUntilFn(Ee);else{if(!Os(this._cursor.peek()))throw this._createError(Br(this._cursor.peek()),this._cursor.getSpan(e));i=this._consumeTagOpenStart(e),s=i.parts[0],n=r=i.parts[1],this._attemptCharCodeUntilFn(Ee)}for(;!nf(this._cursor.peek());)if(this._selectorlessEnabled&&this._cursor.peek()===Mr){let l=this._cursor.clone(),c=l.clone();c.advance(),fa(c.peek())&&this._consumeDirective(l,c)}else this._consumeAttribute();i.type===33?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(l){if(l instanceof G){i?i.type=i.type===33?37:4:(this._beginToken(5,e),this._endToken(["<"]));return}throw l}let o=this._getTagDefinition(n).getContentType(s);o===hn.RAW_TEXT?this._consumeRawTextWithTagClose(i,r,!1):o===hn.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(i,r,!0)}_consumeRawTextWithTagClose(e,n,s){this._consumeRawText(s,()=>!this._attemptCharCode(Zr)||!this._attemptCharCode(Xt)||(this._attemptCharCodeUntilFn(Ee),!this._attemptStrCaseInsensitive(n))?!1:(this._attemptCharCodeUntilFn(Ee),this._attemptCharCode($t))),this._beginToken(e.type===33?36:3),this._requireCharCodeUntilFn(r=>r===$t,3),this._cursor.advance(),this._endToken(e.parts)}_consumeTagOpenStart(e){this._beginToken(0,e);let n=this._consumePrefixAndName(Js);return this._endToken(n)}_consumeComponentOpenStart(e){this._beginToken(33,e);let n=this._consumeComponentName();return this._endToken(n)}_consumeComponentName(){let e=this._cursor.clone();for(;tf(this._cursor.peek());)this._cursor.advance();let n=this._cursor.getChars(e),s="",r="";return this._cursor.peek()===In&&(this._cursor.advance(),[s,r]=this._consumePrefixAndName(Js)),[n,s,r]}_consumeAttribute(){this._consumeAttributeName(),this._attemptCharCodeUntilFn(Ee),this._attemptCharCode(ze)&&(this._attemptCharCodeUntilFn(Ee),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Ee)}_consumeAttributeName(){let e=this._cursor.peek();if(e===No||e===Io)throw this._createError(Br(e),this._cursor.getSpan());this._beginToken(14);let n;if(this._openDirectiveCount>0){let r=0;n=i=>{if(this._openDirectiveCount>0){if(i===yt)r++;else if(i===Be){if(r===0)return!0;r--}}return Js(i)}}else if(e===kn){let r=0;n=i=>(i===kn?r++:i===jn&&r--,r<=0?Js(i):Ga(i))}else n=Js;let s=this._consumePrefixAndName(n);this._endToken(s)}_consumeAttributeValue(){if(this._cursor.peek()===No||this._cursor.peek()===Io){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=()=>Js(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(Xt)?2:1;this._beginToken(e),this._requireCharCode($t),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(Xt)?35:34;this._beginToken(e),this._requireCharCode($t),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let s=e.clone();for(;s.peek()!==$t&&!fa(s.peek());)s.advance();if(fa(s.peek())){this._beginToken(36,e);let r=this._consumeComponentName();this._attemptCharCodeUntilFn(Ee),this._requireCharCode($t),this._endToken(r);return}}this._beginToken(3,e),this._attemptCharCodeUntilFn(Ee);let n=this._consumePrefixAndName(Js);this._attemptCharCodeUntilFn(Ee),this._requireCharCode($t),this._endToken(n)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(Jt),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);let e=this._readUntil(rt),n=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([n]);else{let r=this._endToken([e]);n!==e&&this.nonNormalizedIcuExpressions.push(r)}this._requireCharCode(rt),this._attemptCharCodeUntilFn(Ee),this._beginToken(7);let s=this._readUntil(rt);this._endToken([s]),this._requireCharCode(rt),this._attemptCharCodeUntilFn(Ee)}_consumeExpansionCaseStart(){this._beginToken(20);let e=this._readUntil(Jt).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Ee),this._beginToken(21),this._requireCharCode(Jt),this._endToken([]),this._attemptCharCodeUntilFn(Ee),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(mt),this._endToken([]),this._attemptCharCodeUntilFn(Ee),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(mt),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,n,s,r){this._beginToken(e);let i=[];for(;!s();){let o=this._cursor.clone();this._attemptStr(Oi.start)?(this._endToken([this._processCarriageReturns(i.join(""))],o),i.length=0,this._consumeInterpolation(n,o,r),this._beginToken(e)):this._cursor.peek()===Ua?(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,s){let r=[];this._beginToken(e,n),r.push(Oi.start);let i=this._cursor.clone(),o=null,l=!1;for(;this._cursor.peek()!==Xe&&(s===null||!s());){let c=this._cursor.clone();if(this._isTagStart()){this._cursor=c,r.push(this._getProcessedChars(i,c)),this._endToken(r);return}if(o===null)if(this._attemptStr(Oi.end)){r.push(this._getProcessedChars(i,c)),r.push(Oi.end),this._endToken(r);return}else this._attemptStr("//")&&(l=!0);let u=this._cursor.peek();this._cursor.advance(),u===or?this._cursor.advance():u===o?o=null:!l&&o===null&&Ki(u)&&(o=u)}r.push(this._getProcessedChars(i,this._cursor)),this._endToken(r)}_consumeDirective(e,n){for(this._requireCharCode(Mr),this._cursor.advance();tf(this._cursor.peek());)this._cursor.advance();this._beginToken(38,e);let s=this._cursor.getChars(n);if(this._endToken([s]),this._attemptCharCodeUntilFn(Ee),this._cursor.peek()===yt){for(this._openDirectiveCount++,this._beginToken(39),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Ee);!nf(this._cursor.peek())&&this._cursor.peek()!==Be;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(Ee),this._openDirectiveCount--,this._cursor.peek()!==Be){if(this._cursor.peek()===$t||this._cursor.peek()===Xt)return;throw this._createError(Br(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(40),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Ee)}}_getProcessedChars(e,n){return this._processCarriageReturns(n.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===Xe||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===mt&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===mt))}_isTagStart(){if(this._cursor.peek()===Zr){let e=this._cursor.clone();e.advance();let n=e.peek();if(Tr<=n&&n<=Xo||Ws<=n&&n<=wi||n===Xt||n===jc)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()!==Jt)return!1;let e=this._cursor.clone(),n=this._attemptStr(Oi.start);return this._cursor=e,!n}};function Ee(t){return!Do(t)||t===Xe}function Js(t){return Do(t)||t===$t||t===Zr||t===Xt||t===No||t===Io||t===ze||t===Xe}function Px(t){return(t<Tr||Xo<t)&&(t<Ws||wi<t)&&(t<ep||t>Wd)}function Lx(t){return t===Dt||t===Xe||!ZE(t)}function Mx(t){return t===Dt||t===Xe||!(Os(t)||Yt(t))}function Ox(t){return t!==mt}function Fx(t,e){return Zh(t)===Zh(e)}function Zh(t){return t>=Tr&&t<=Xo?t-Tr+Ws:t}function Bx(t){return Os(t)||Yt(t)||t===js}function ef(t){return t!==Dt&&Ee(t)}function fa(t){return t===js||t>=Ws&&t<=wi}function tf(t){return Os(t)||Yt(t)||t===js}function nf(t){return t===Xt||t===$t||t===Zr||t===Xe}function $x(t){let e=[],n;for(let s=0;s<t.length;s++){let r=t[s];n&&n.type===5&&r.type===5||n&&n.type===16&&r.type===16?(n.parts[0]+=r.parts[0],n.sourceSpan.end=r.sourceSpan.end):(n=r,e.push(n))}return e}var rl=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 s=e.state;this.state={peek:s.peek,offset:s.offset,line:s.line,column:s.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 s=e;if(n)for(;this.diff(e)>0&&n.indexOf(e.peek())!==-1;)s===e&&(e=e.clone()),e.advance();let r=this.locationFromCursor(e),i=this.locationFromCursor(this),o=s!==e?this.locationFromCursor(s):r;return new H(r,i,o)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new Uo('Unexpected character "EOF"',this);let n=this.charAt(e.offset);n===ir?(e.line++,e.column=0):Ga(n)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?Xe:this.charAt(e.offset)}locationFromCursor(e){return new wr(e.file,e.state.offset,e.state.line,e.state.column)}},gu=class t extends rl{constructor(n,s){var e=(...wO)=>(super(...wO),a(this,"internalState"),this);n instanceof t?(e(n),this.internalState=x({},n.internalState)):(e(n,s),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 s=n.clone(),r="";for(;s.internalState.offset<this.internalState.offset;)r+=String.fromCodePoint(s.peek()),s.advance();return r}processEscapeSequence(){let n=()=>this.internalState.peek;if(n()===or)if(this.internalState=x({},this.state),this.advanceState(this.internalState),n()===jd)this.state.peek=ir;else if(n()===zd)this.state.peek=Zu;else if(n()===Yd)this.state.peek=Ud;else if(n()===Kd)this.state.peek=Ju;else if(n()===QE)this.state.peek=qE;else if(n()===tp)this.state.peek=Vd;else if(n()===Xd)if(this.advanceState(this.internalState),n()===Jt){this.advanceState(this.internalState);let s=this.clone(),r=0;for(;n()!==mt;)this.advanceState(this.internalState),r++;this.state.peek=this.decodeHexDigits(s,r)}else{let s=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(s,4)}else if(n()===Qd){this.advanceState(this.internalState);let s=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(s,2)}else if(Rh(n())){let s="",r=0,i=this.clone();for(;Rh(n())&&r<3;)i=this.clone(),s+=String.fromCodePoint(n()),this.advanceState(this.internalState),r++;this.state.peek=parseInt(s,8),this.internalState=i.internalState}else Ga(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(n,s){let r=this.input.slice(n.internalState.offset,n.internalState.offset+s),i=parseInt(r,16);if(isNaN(i))throw n.state=n.internalState,new Uo("Invalid hexadecimal escape sequence",n);return i}},Uo=class extends Error{constructor(n,s){super(n);a(this,"msg");a(this,"cursor");this.msg=n,this.cursor=s,Object.setPrototypeOf(this,new.target.prototype)}},Le=class t extends G{constructor(n,s,r){super(s,r);a(this,"elementName");this.elementName=n}static create(n,s,r){return new t(n,s,r)}},il=class{constructor(e,n){a(this,"rootNodes");a(this,"errors");this.rootNodes=e,this.errors=n}},Ux=class{constructor(e){a(this,"getTagDefinition");this.getTagDefinition=e}parse(e,n,s){let r=bx(e,n,this.getTagDefinition,s),i=new yu(r.tokens,this.getTagDefinition);return i.build(),new il(i.rootNodes,[...r.errors,...i.errors])}},yu=class t{constructor(e,n){a(this,"tokens");a(this,"tagDefinitionResolver");a(this,"_index",-1);a(this,"_peek");a(this,"_containerStack",[]);a(this,"rootNodes",[]);a(this,"errors",[]);this.tokens=e,this.tagDefinitionResolver=n,this._advance()}build(){for(;this._peek.type!==41;)this._peek.type===0||this._peek.type===4?this._consumeElementStartTag(this._advance()):this._peek.type===3?this._consumeElementEndTag(this._advance()):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===19?this._consumeExpansion(this._advance()):this._peek.type===24?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===26?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===28?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===32?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===33||this._peek.type===37?this._consumeComponentStartTag(this._advance()):this._peek.type===36?this._consumeComponentEndTag(this._advance()):this._advance();for(let e of this._containerStack)e instanceof Qt&&this.errors.push(Le.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}_advanceIf(e){return this._peek.type===e?this._advance():null}_consumeCdata(e){this._consumeText(this._advance()),this._advanceIf(13)}_consumeComment(e){let n=this._advanceIf(7),s=this._advanceIf(11),r=n!=null?n.parts[0].trim():null,i=s==null?e.sourceSpan:new H(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Bo(r,i))}_consumeExpansion(e){let n=this._advance(),s=this._advance(),r=[];for(;this._peek.type===20;){let o=this._parseExpansionCase();if(!o)return;r.push(o)}if(this._peek.type!==23){this.errors.push(Le.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let i=new H(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new ar(n.parts[0],s.parts[0],r,i,n.sourceSpan)),this._advance()}_parseExpansionCase(){let e=this._advance();if(this._peek.type!==21)return this.errors.push(Le.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let n=this._advance(),s=this._collectExpansionExpTokens(n);if(!s)return null;let r=this._advance();s.push({type:41,parts:[],sourceSpan:r.sourceSpan});let i=new t(s,this.tagDefinitionResolver);if(i.build(),i.errors.length>0)return this.errors=this.errors.concat(i.errors),null;let o=new H(e.sourceSpan.start,r.sourceSpan.end,e.sourceSpan.fullStart),l=new H(n.sourceSpan.start,r.sourceSpan.end,n.sourceSpan.fullStart);return new el(e.parts[0],i.rootNodes,o,e.sourceSpan,l)}_collectExpansionExpTokens(e){let n=[],s=[21];for(;;){if((this._peek.type===19||this._peek.type===21)&&s.push(this._peek.type),this._peek.type===22)if(sf(s,21)){if(s.pop(),s.length===0)return n}else return this.errors.push(Le.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===23)if(sf(s,19))s.pop();else return this.errors.push(Le.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===41)return this.errors.push(Le.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.push(this._advance())}}_consumeText(e){var i;let n=[e],s=e.sourceSpan,r=e.parts[0];if(r.length>0&&r[0]===`
|
|
23
|
+
`){let o=this._getContainer();o!=null&&o.children.length===0&&((i=this._getTagDefinition(o))!=null&&i.ignoreFirstLf)&&(r=r.substring(1),n[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[r]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),n.push(e),e.type===8?r+=e.parts.join("").replace(/&([^;]+);/g,rf):e.type===9?r+=e.parts[0]:r+=e.parts.join("");if(r.length>0){let o=e.sourceSpan;this._addToParent(new Dr(r,new H(s.start,o.end,s.fullStart,s.details),n))}}_closeVoidElement(){var n;let e=this._getContainer();e!==null&&((n=this._getTagDefinition(e))!=null&&n.isVoid)&&this._containerStack.pop()}_consumeElementStartTag(e){var g,v;let n=[],s=[];this._consumeAttributesAndDirectives(n,s);let r=this._getElementFullName(e,this._getClosestElementLikeParent()),i=this._getTagDefinition(r),o=!1;this._peek.type===2?(this._advance(),o=!0,i!=null&&i.canSelfClose||Bc(r)!==null||i!=null&&i.isVoid||this.errors.push(Le.create(r,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))):this._peek.type===1&&(this._advance(),o=!1);let l=this._peek.sourceSpan.fullStart,c=new H(e.sourceSpan.start,l,e.sourceSpan.fullStart),u=new H(e.sourceSpan.start,l,e.sourceSpan.fullStart),h=new Kt(r,n,s,[],o,c,u,void 0,(g=i==null?void 0:i.isVoid)!=null?g:!1),d=this._getContainer(),p=d!==null&&!!((v=this._getTagDefinition(d))!=null&&v.isClosedByChild(h.name));this._pushContainer(h,p),o?this._popContainer(r,Kt,c):e.type===4&&(this._popContainer(r,Kt,null),this.errors.push(Le.create(r,c,`Opening tag "${r}" not terminated.`)))}_consumeComponentStartTag(e){var E;let n=e.parts[0],s=[],r=[];this._consumeAttributesAndDirectives(s,r);let i=this._getClosestElementLikeParent(),o=this._getComponentTagName(e,i),l=this._getComponentFullName(e,i),c=this._peek.type===35;this._advance();let u=this._peek.sourceSpan.fullStart,h=new H(e.sourceSpan.start,u,e.sourceSpan.fullStart),d=new H(e.sourceSpan.start,u,e.sourceSpan.fullStart),p=new ht(n,o,l,s,r,[],c,h,d,void 0),g=this._getContainer(),v=g!==null&&p.tagName!==null&&!!((E=this._getTagDefinition(g))!=null&&E.isClosedByChild(p.tagName));this._pushContainer(p,v),c?this._popContainer(l,ht,h):e.type===37&&(this._popContainer(l,ht,null),this.errors.push(Le.create(l,h,`Opening tag "${l}" not terminated.`)))}_consumeAttributesAndDirectives(e,n){for(;this._peek.type===14||this._peek.type===38;)this._peek.type===38?n.push(this._consumeDirective(this._peek)):e.push(this._consumeAttr(this._advance()))}_consumeComponentEndTag(e){let n=this._getComponentFullName(e,this._getClosestElementLikeParent());if(!this._popContainer(n,ht,e.sourceSpan)){let s=this._containerStack[this._containerStack.length-1],r;s instanceof ht&&s.componentName===e.parts[0]?r=`, did you mean "${s.fullName}"?`:r=". It may happen when the tag has already been closed by another tag.";let i=`Unexpected closing tag "${n}"${r}`;this.errors.push(Le.create(n,e.sourceSpan,i))}}_getTagDefinition(e){return typeof e=="string"?this.tagDefinitionResolver(e):e instanceof Kt?this.tagDefinitionResolver(e.name):e instanceof ht&&e.tagName!==null?this.tagDefinitionResolver(e.tagName):null}_pushContainer(e,n){n&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeElementEndTag(e){var s;let n=this._getElementFullName(e,this._getClosestElementLikeParent());if((s=this._getTagDefinition(n))!=null&&s.isVoid)this.errors.push(Le.create(n,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(n,Kt,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(Le.create(n,e.sourceSpan,r))}}_popContainer(e,n,s){var i;let r=!1;for(let o=this._containerStack.length-1;o>=0;o--){let l=this._containerStack[o];if(((l instanceof ht?l.fullName:l.name)===e||e===null)&&l instanceof n)return l.endSourceSpan=s,l.sourceSpan.end=s!==null?s.end:l.sourceSpan.end,this._containerStack.splice(o,this._containerStack.length-o),!r;(l instanceof Qt||!((i=this._getTagDefinition(l))!=null&&i.closedByParent))&&(r=!0)}return!1}_consumeAttr(e){let n=xa(e.parts[0],e.parts[1]),s=e.sourceSpan.end;this._peek.type===15&&this._advance();let r="",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 h=this._advance();i.push(h),h.type===17?r+=h.parts.join("").replace(/&([^;]+);/g,rf):h.type===9?r+=h.parts[0]:r+=h.parts.join(""),l=s=h.sourceSpan.end}this._peek.type===15&&(s=this._advance().sourceSpan.end);let u=o&&l&&new H(o.start,l,o.fullStart);return new hu(n,r,new H(e.sourceSpan.start,s,e.sourceSpan.fullStart),e.sourceSpan,u,i.length>0?i:void 0,void 0)}_consumeDirective(e){let n=[],s=e.sourceSpan.end,r=null;if(this._advance(),this._peek.type===39){for(s=this._peek.sourceSpan.end,this._advance();this._peek.type===14;)n.push(this._consumeAttr(this._advance()));this._peek.type===40?(r=this._peek.sourceSpan,this._advance()):this.errors.push(Le.create(null,e.sourceSpan,"Unterminated directive definition"))}let i=new H(e.sourceSpan.start,s,e.sourceSpan.fullStart),o=new H(i.start,r===null?e.sourceSpan.end:r.end,i.fullStart);return new fu(e.parts[0],n,o,i,r)}_consumeBlockOpen(e){let n=[];for(;this._peek.type===27;){let l=this._advance();n.push(new tl(l.parts[0],l.sourceSpan))}this._peek.type===25&&this._advance();let s=this._peek.sourceSpan.fullStart,r=new H(e.sourceSpan.start,s,e.sourceSpan.fullStart),i=new H(e.sourceSpan.start,s,e.sourceSpan.fullStart),o=new Qt(e.parts[0],n,[],r,e.sourceSpan,i);this._pushContainer(o,!1)}_consumeBlockClose(e){let n=this._containerStack.length,s=this._containerStack[n-1];if(!this._popContainer(null,Qt,e.sourceSpan)){if(this._containerStack.length<n){let r=s instanceof ht?s.fullName:s.name;this.errors.push(Le.create(null,e.sourceSpan,`Unexpected closing block. The block may have been closed earlier. Did you forget to close the <${r}> element? If you meant to write the \`}\` character, you should use the "}" HTML entity instead.`));return}this.errors.push(Le.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the `}` character, you should use the "}" HTML entity instead.'))}}_consumeIncompleteBlock(e){let n=[];for(;this._peek.type===27;){let l=this._advance();n.push(new tl(l.parts[0],l.sourceSpan))}let s=this._peek.sourceSpan.fullStart,r=new H(e.sourceSpan.start,s,e.sourceSpan.fullStart),i=new H(e.sourceSpan.start,s,e.sourceSpan.fullStart),o=new Qt(e.parts[0],n,[],r,e.sourceSpan,i);this._pushContainer(o,!1),this._popContainer(null,Qt,null),this.errors.push(Le.create(e.parts[0],r,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(e){let n=e.parts[0],s,r;if(this._peek.type!==30){this.errors.push(Le.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${n}". Declaration must have a value.`));return}else s=this._advance();if(this._peek.type!==31){this.errors.push(Le.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${n}". Declaration must be terminated with a semicolon.`));return}else r=this._advance();let i=r.sourceSpan.fullStart,o=new H(e.sourceSpan.start,i,e.sourceSpan.fullStart),l=e.sourceSpan.toString().lastIndexOf(n),c=e.sourceSpan.start.moveBy(l),u=new H(c,e.sourceSpan.end),h=new nl(n,s.parts[0],o,u,s.sourceSpan);this._addToParent(h)}_consumeIncompleteLet(e){var r;let n=(r=e.parts[0])!=null?r:"",s=n?` "${n}"`:"";if(n.length>0){let i=e.sourceSpan.toString().lastIndexOf(n),o=e.sourceSpan.start.moveBy(i),l=new H(o,e.sourceSpan.end),c=new H(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),u=new nl(n,"",e.sourceSpan,l,c);this._addToParent(u)}this.errors.push(Le.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${s}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let e=this._containerStack.length-1;e>-1;e--){let n=this._containerStack[e];if(n instanceof Kt||n instanceof ht)return n}return null}_addToParent(e){let n=this._getContainer();n===null?this.rootNodes.push(e):n.children.push(e)}_getElementFullName(e,n){let s=this._getPrefix(e,n);return xa(s,e.parts[1])}_getComponentFullName(e,n){let s=e.parts[0],r=this._getComponentTagName(e,n);return r===null?s:r.startsWith(":")?s+r:`${s}:${r}`}_getComponentTagName(e,n){let s=this._getPrefix(e,n),r=e.parts[2];return!s&&!r?null:!s&&r?r:xa(s,r||"ng-component")}_getPrefix(e,n){var i;let s,r;if(e.type===33||e.type===37||e.type===36?(s=e.parts[1],r=e.parts[2]):(s=e.parts[0],r=e.parts[1]),s=s||((i=this._getTagDefinition(r))==null?void 0:i.implicitNamespacePrefix)||"",!s&&n){let o=n instanceof Kt?n.name:n.tagName;if(o!==null){let l=vn(o)[1],c=this._getTagDefinition(l);c!==null&&!c.preventNamespaceInheritance&&(s=Bc(o))}}return s}};function sf(t,e){return t.length>0&&t[t.length-1]===e}function rf(t,e){return $o[e]!==void 0?$o[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 Tm="ngPreserveWhitespaces",of=new Set(["pre","template","textarea","script","style"]),wm=` \f
|
|
24
|
+
\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,Vx=new RegExp(`[^${wm}]`),Gx=new RegExp(`[${wm}]{2,}`,"g");function af(t){return t.some(e=>e.name===Tm)}function xm(t){return t.replace(new RegExp(Em,"g")," ")}var ol=class{constructor(e,n,s=!0){a(this,"preserveSignificantWhitespace");a(this,"originalNodeMap");a(this,"requireContext");a(this,"icuExpansionDepth",0);this.preserveSignificantWhitespace=e,this.originalNodeMap=n,this.requireContext=s}visitElement(e,n){var r,i;if(of.has(e.name)||af(e.attrs)){let o=new Kt(e.name,xn(this,e.attrs),xn(this,e.directives),e.children,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n);return(r=this.originalNodeMap)==null||r.set(o,e),o}let s=new Kt(e.name,e.attrs,e.directives,xn(this,e.children),e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n);return(i=this.originalNodeMap)==null||i.set(s,e),s}visitAttribute(e,n){return e.name!==Tm?e:null}visitText(e,n){var o;let s=e.value.match(Vx),r=n&&(n.prev instanceof ar||n.next instanceof ar);if(this.icuExpansionDepth>0&&this.preserveSignificantWhitespace)return e;if(s||r){let l=e.tokens.map(d=>d.type===5?jx(d):d);if(!this.preserveSignificantWhitespace&&l.length>0){let d=l[0];l.splice(0,1,Hx(d,n));let p=l[l.length-1];l.splice(l.length-1,1,qx(p,n))}let c=Am(e.value),u=this.preserveSignificantWhitespace?c:Wx(c,n),h=new Dr(u,e.sourceSpan,l,e.i18n);return(o=this.originalNodeMap)==null||o.set(h,e),h}return null}visitComment(e,n){return e}visitExpansion(e,n){var r;this.icuExpansionDepth++;let s;try{s=new ar(e.switchValue,e.type,xn(this,e.cases),e.sourceSpan,e.switchValueSourceSpan,e.i18n)}finally{this.icuExpansionDepth--}return(r=this.originalNodeMap)==null||r.set(s,e),s}visitExpansionCase(e,n){var r;let s=new el(e.value,xn(this,e.expression),e.sourceSpan,e.valueSourceSpan,e.expSourceSpan);return(r=this.originalNodeMap)==null||r.set(s,e),s}visitBlock(e,n){var r;let s=new Qt(e.name,e.parameters,xn(this,e.children),e.sourceSpan,e.nameSpan,e.startSourceSpan,e.endSourceSpan);return(r=this.originalNodeMap)==null||r.set(s,e),s}visitBlockParameter(e,n){return e}visitLetDeclaration(e,n){return e}visitComponent(e,n){var r,i;if(e.tagName&&of.has(e.tagName)||af(e.attrs)){let o=new ht(e.componentName,e.tagName,e.fullName,xn(this,e.attrs),xn(this,e.directives),e.children,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return(r=this.originalNodeMap)==null||r.set(o,e),o}let s=new ht(e.componentName,e.tagName,e.fullName,e.attrs,e.directives,xn(this,e.children),e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return(i=this.originalNodeMap)==null||i.set(s,e),s}visitDirective(e,n){return e}visit(e,n){if(this.requireContext&&!n)throw new Error("WhitespaceVisitor requires context. Visit via `visitAllWithSiblings` to get this context.");return!1}};function Hx(t,e){return t.type!==5||!!(e!=null&&e.prev)?t:Cm(t,s=>s.trimStart())}function qx(t,e){return t.type!==5||!!(e!=null&&e.next)?t:Cm(t,s=>s.trimEnd())}function Wx(t,e){let n=!(e!=null&&e.prev),s=!(e!=null&&e.next),r=n?t.trimStart():t;return s?r.trimEnd():r}function jx({type:t,parts:e,sourceSpan:n}){return{type:t,parts:[Am(e[0])],sourceSpan:n}}function Cm({type:t,parts:e,sourceSpan:n},s){return{type:t,parts:[s(e[0])],sourceSpan:n}}function Am(t){return xm(t).replace(Gx," ")}function xn(t,e){let n=[];return e.forEach((s,r)=>{let i={prev:e[r-1],next:e[r+1]},o=s.visit(t,i);o&&n.push(o)}),n}var q;(function(t){t[t.Character=0]="Character",t[t.Identifier=1]="Identifier",t[t.PrivateIdentifier=2]="PrivateIdentifier",t[t.Keyword=3]="Keyword",t[t.String=4]="String",t[t.Operator=5]="Operator",t[t.Number=6]="Number",t[t.RegExpBody=7]="RegExpBody",t[t.RegExpFlags=8]="RegExpFlags",t[t.Error=9]="Error"})(q||(q={}));var Ss;(function(t){t[t.Plain=0]="Plain",t[t.TemplateLiteralPart=1]="TemplateLiteralPart",t[t.TemplateLiteralEnd=2]="TemplateLiteralEnd"})(Ss||(Ss={}));var zx=["var","let","as","null","undefined","true","false","if","else","this","typeof","void","in","instanceof"],Vo=class{tokenize(e){return new vu(e).scan()}},jt=class{constructor(e,n,s,r,i){a(this,"index");a(this,"end");a(this,"type");a(this,"numValue");a(this,"strValue");this.index=e,this.end=n,this.type=s,this.numValue=r,this.strValue=i}isCharacter(e){return this.type===q.Character&&this.numValue===e}isNumber(){return this.type===q.Number}isString(){return this.type===q.String}isOperator(e){return this.type===q.Operator&&this.strValue===e}isIdentifier(){return this.type===q.Identifier}isPrivateIdentifier(){return this.type===q.PrivateIdentifier}isKeyword(){return this.type===q.Keyword}isKeywordLet(){return this.type===q.Keyword&&this.strValue==="let"}isKeywordAs(){return this.type===q.Keyword&&this.strValue==="as"}isKeywordNull(){return this.type===q.Keyword&&this.strValue==="null"}isKeywordUndefined(){return this.type===q.Keyword&&this.strValue==="undefined"}isKeywordTrue(){return this.type===q.Keyword&&this.strValue==="true"}isKeywordFalse(){return this.type===q.Keyword&&this.strValue==="false"}isKeywordThis(){return this.type===q.Keyword&&this.strValue==="this"}isKeywordTypeof(){return this.type===q.Keyword&&this.strValue==="typeof"}isKeywordVoid(){return this.type===q.Keyword&&this.strValue==="void"}isKeywordIn(){return this.type===q.Keyword&&this.strValue==="in"}isKeywordInstanceOf(){return this.type===q.Keyword&&this.strValue==="instanceof"}isError(){return this.type===q.Error}isRegExpBody(){return this.type===q.RegExpBody}isRegExpFlags(){return this.type===q.RegExpFlags}toNumber(){return this.type===q.Number?this.numValue:-1}isTemplateLiteralPart(){return this.isString()&&this.kind===Ss.TemplateLiteralPart}isTemplateLiteralEnd(){return this.isString()&&this.kind===Ss.TemplateLiteralEnd}isTemplateLiteralInterpolationStart(){return this.isOperator("${")}toString(){switch(this.type){case q.Character:case q.Identifier:case q.Keyword:case q.Operator:case q.PrivateIdentifier:case q.String:case q.Error:case q.RegExpBody:case q.RegExpFlags:return this.strValue;case q.Number:return this.numValue.toString();default:return null}}},Xi=class extends jt{constructor(n,s,r,i){super(n,s,q.String,0,r);a(this,"kind");this.kind=i}};function Fi(t,e,n){return new jt(t,e,q.Character,n,String.fromCharCode(n))}function Kx(t,e,n){return new jt(t,e,q.Identifier,0,n)}function Xx(t,e,n){return new jt(t,e,q.PrivateIdentifier,0,n)}function Yx(t,e,n){return new jt(t,e,q.Keyword,0,n)}function as(t,e,n){return new jt(t,e,q.Operator,0,n)}function Qx(t,e,n){return new jt(t,e,q.Number,n,"")}function Jx(t,e,n){return new jt(t,e,q.Error,0,n)}function Zx(t,e,n){return new jt(t,e,q.RegExpBody,0,n)}function eC(t,e,n){return new jt(t,e,q.RegExpFlags,0,n)}var Bi=new jt(-1,-1,q.Character,0,""),vu=class{constructor(e){a(this,"input");a(this,"tokens",[]);a(this,"length");a(this,"peek",0);a(this,"index",-1);a(this,"braceStack",[]);this.input=e,this.length=e.length,this.advance()}scan(){let e=this.scanToken();for(;e!==null;)this.tokens.push(e),e=this.scanToken();return this.tokens}advance(){this.peek=++this.index>=this.length?Xe:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,n=this.length,s=this.peek,r=this.index;for(;s<=Gd;)if(++r>=n){s=Xe;break}else s=e.charCodeAt(r);if(this.peek=s,this.index=r,r>=n)return null;if(lf(s))return this.scanIdentifier();if(Yt(s))return this.scanNumber(r);let i=r;switch(s){case Zs:return this.advance(),Yt(this.peek)?this.scanNumber(i):this.peek!==Zs?Fi(i,this.index,Zs):(this.advance(),this.peek===Zs?(this.advance(),as(i,this.index,"...")):this.error(`Unexpected character [${String.fromCharCode(s)}]`,0));case yt:case Be:case kn:case jn:case rt:case In:case Dt:return this.scanCharacter(i,s);case Jt:return this.scanOpenBrace(i,s);case mt:return this.scanCloseBrace(i,s);case No:case Io:return this.scanString();case zc:return this.advance(),this.scanTemplateLiteralPart(i);case Hd:return this.scanPrivateIdentifier();case qd:return this.scanComplexOperator(i,"+",ze,"=");case Va:return this.scanComplexOperator(i,"-",ze,"=");case Xt:return this.isStartOfRegex()?this.scanRegex(r):this.scanComplexOperator(i,"/",ze,"=");case WE:return this.scanComplexOperator(i,"%",ze,"=");case YE:return this.scanOperator(i,"^");case bh:return this.scanStar(i);case _h:return this.scanQuestion(i);case Zr:case $t:return this.scanComplexOperator(i,String.fromCharCode(s),ze,"=");case jc:return this.scanComplexOperator(i,"!",ze,"=",ze,"=");case ze:return this.scanEquals(i);case Ua:return this.scanComplexOperator(i,"&",Ua,"&",ze,"=");case kh:return this.scanComplexOperator(i,"|",kh,"|",ze,"=");case Jd:for(;Do(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(s)}]`,0)}scanCharacter(e,n){return this.advance(),Fi(e,this.index,n)}scanOperator(e,n){return this.advance(),as(e,this.index,n)}scanOpenBrace(e,n){return this.braceStack.push("expression"),this.advance(),Fi(e,this.index,n)}scanCloseBrace(e,n){return this.advance(),this.braceStack.pop()==="interpolation"?(this.tokens.push(Fi(e,this.index,mt)),this.scanTemplateLiteralPart(this.index)):Fi(e,this.index,n)}scanComplexOperator(e,n,s,r,i,o){this.advance();let l=n;return this.peek==s&&(this.advance(),l+=r),i!=null&&this.peek==i&&(this.advance(),l+=o),as(e,this.index,l)}scanEquals(e){this.advance();let n="=";if(this.peek===ze)this.advance(),n+="=";else if(this.peek===$t)return this.advance(),n+=">",as(e,this.index,n);return this.peek===ze&&(this.advance(),n+="="),as(e,this.index,n)}scanIdentifier(){let e=this.index;for(this.advance();cf(this.peek);)this.advance();let n=this.input.substring(e,this.index);return zx.indexOf(n)>-1?Yx(e,this.index,n):Kx(e,this.index,n)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!lf(this.peek))return this.error("Invalid character [#]",-1);for(;cf(this.peek);)this.advance();let n=this.input.substring(e,this.index);return Xx(e,this.index,n)}scanNumber(e){let n=this.index===e,s=!1;for(this.advance();;){if(!Yt(this.peek))if(this.peek===js){if(!Yt(this.input.charCodeAt(this.index-1))||!Yt(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);s=!0}else if(this.peek===Zs)n=!1;else if(tC(this.peek)){if(this.advance(),nC(this.peek)&&this.advance(),!Yt(this.peek))return this.error("Invalid exponent",-1);n=!1}else break;this.advance()}let r=this.input.substring(e,this.index);s&&(r=r.replace(/_/g,""));let i=n?rC(r):parseFloat(r);return Qx(e,this.index,i)}scanString(){let e=this.index,n=this.peek;this.advance();let s="",r=this.index,i=this.input;for(;this.peek!=n;)if(this.peek==or){let l=this.scanStringBackslash(s,r);if(typeof l!="string")return l;s=l,r=this.index}else{if(this.peek==Xe)return this.error("Unterminated quote",0);this.advance()}let o=i.substring(r,this.index);return this.advance(),new Xi(e,this.index,s+o,Ss.Plain)}scanQuestion(e){this.advance();let n="?";return this.peek===_h?(n+="?",this.advance(),this.peek===ze&&(n+="=",this.advance())):this.peek===Zs&&(n+=".",this.advance()),as(e,this.index,n)}scanTemplateLiteralPart(e){let n="",s=this.index;for(;this.peek!==zc;)if(this.peek===or){let i=this.scanStringBackslash(n,s);if(typeof i!="string")return i;n=i,s=this.index}else if(this.peek===Tl){let i=this.index;if(this.advance(),this.peek===Jt)return this.braceStack.push("interpolation"),this.tokens.push(new Xi(e,i,n+this.input.substring(s,i),Ss.TemplateLiteralPart)),this.advance(),as(i,this.index,this.input.substring(i,this.index))}else{if(this.peek===Xe)return this.error("Unterminated template literal",0);this.advance()}let r=this.input.substring(s,this.index);return this.advance(),new Xi(e,this.index,n+r,Ss.TemplateLiteralEnd)}error(e,n){let s=this.index+n;return Jx(s,this.index,`Lexer Error: ${e} at column ${s} in expression [${this.input}]`)}scanStringBackslash(e,n){e+=this.input.substring(n,this.index);let s;if(this.advance(),this.peek===Xd){let r=this.input.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(r))s=parseInt(r,16);else return this.error(`Invalid unicode escape [\\u${r}]`,0);for(let i=0;i<5;i++)this.advance()}else s=sC(this.peek),this.advance();return e+=String.fromCharCode(s),e}scanStar(e){this.advance();let n="*";return this.peek===bh?(n+="*",this.advance(),this.peek===ze&&(n+="=",this.advance())):this.peek===ze&&(n+="=",this.advance()),as(e,this.index,n)}isStartOfRegex(){if(this.tokens.length===0)return!0;let e=this.tokens[this.tokens.length-1];if(e.isOperator("!")){let n=this.tokens.length>1?this.tokens[this.tokens.length-2]:null;return n===null||n.type!==q.Identifier&&!n.isCharacter(Be)&&!n.isCharacter(jn)}return e.type===q.Operator||e.isCharacter(yt)||e.isCharacter(kn)||e.isCharacter(rt)||e.isCharacter(In)}scanRegex(e){this.advance();let n=this.index,s=!1,r=!1;for(;;){let c=this.peek;if(c===Xe)return this.error("Unterminated regular expression",0);if(s)s=!1;else if(c===or)s=!0;else if(c===kn)r=!0;else if(c===jn)r=!1;else if(c===Xt&&!r)break;this.advance()}let i=this.input.substring(n,this.index);this.advance();let o=Zx(e,this.index,i),l=this.scanRegexFlags(this.index);return l!==null?(this.tokens.push(o),l):o}scanRegexFlags(e){if(!Os(this.peek))return null;for(;Os(this.peek);)this.advance();return eC(e,this.index,this.input.substring(e,this.index))}};function lf(t){return Tr<=t&&t<=Xo||Ws<=t&&t<=wi||t==js||t==Tl}function cf(t){return Os(t)||Yt(t)||t==js||t==Tl}function tC(t){return t==JE||t==zE}function nC(t){return t==Va||t==qd}function sC(t){switch(t){case jd:return ir;case tp:return Vd;case zd:return Zu;case Kd:return Ju;case Yd:return Ud;default:return t}}function rC(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var Su=class{constructor(e,n,s){a(this,"strings");a(this,"expressions");a(this,"offsets");this.strings=e,this.expressions=n,this.offsets=s}},Eu=class{constructor(e,n,s){a(this,"templateBindings");a(this,"warnings");a(this,"errors");this.templateBindings=e,this.warnings=n,this.errors=s}};function hs(t){return t.start.toString()||"(unknown)"}var al=class{constructor(e,n=!1){a(this,"_lexer");a(this,"_supportsDirectPipeReferences");this._lexer=e,this._supportsDirectPipeReferences=n}parseAction(e,n,s){let r=[];this._checkNoInterpolation(r,e,n);let{stripped:i}=this._stripComments(e),o=this._lexer.tokenize(i),l=new tr(e,n,s,o,1,r,0,this._supportsDirectPipeReferences).parseChain();return new ve(l,e,hs(n),s,r)}parseBinding(e,n,s){let r=[],i=this._parseBindingAst(e,n,s,r);return new ve(i,e,hs(n),s,r)}checkSimpleExpression(e){let n=new Tu;return e.visit(n),n.errors}parseSimpleBinding(e,n,s){let r=[],i=this._parseBindingAst(e,n,s,r),o=this.checkSimpleExpression(i);return o.length>0&&r.push(Xr(`Host binding expression cannot contain ${o.join(" ")}`,e,"",n)),new ve(i,e,hs(n),s,r)}_parseBindingAst(e,n,s,r){this._checkNoInterpolation(r,e,n);let{stripped:i}=this._stripComments(e),o=this._lexer.tokenize(i);return new tr(e,n,s,o,0,r,0,this._supportsDirectPipeReferences).parseChain()}parseTemplateBindings(e,n,s,r,i){let o=this._lexer.tokenize(n),l=[];return new tr(n,s,i,o,0,l,0,this._supportsDirectPipeReferences).parseTemplateBindings({source:e,span:new Ye(r,r+e.length)})}parseInterpolation(e,n,s,r){var h;let i=[],{strings:o,expressions:l,offsets:c}=this.splitInterpolation(e,n,i,r);if(l.length===0)return null;let u=[];for(let d=0;d<l.length;++d){let p=(h=r==null?void 0:r[d*2+1])==null?void 0:h.sourceSpan,g=l[d].text,{stripped:v,hasComments:E}=this._stripComments(g),I=this._lexer.tokenize(v);if(E&&v.trim().length===0&&I.length===0){i.push(Xr("Interpolation expression cannot only contain a comment",e,`at column ${l[d].start} in`,n));continue}let D=new tr(p?g:e,p||n,s,I,0,i,c[d],this._supportsDirectPipeReferences).parseChain();u.push(D)}return this.createInterpolationAst(o.map(d=>d.text),u,e,hs(n),s,i)}parseInterpolationExpression(e,n,s){let{stripped:r}=this._stripComments(e),i=this._lexer.tokenize(r),o=[],l=new tr(e,n,s,i,0,o,0,this._supportsDirectPipeReferences).parseChain(),c=["",""];return this.createInterpolationAst(c,[l],e,hs(n),s,o)}createInterpolationAst(e,n,s,r,i,o){let l=new As(0,s.length),c=new ns(l,l.toAbsolute(i),e,n);return new ve(c,s,r,i,o)}splitInterpolation(e,n,s,r){var v;let i=[],o=[],l=[],c=r?iC(r):null,u=0,h=!1,d=!1,p="{{",g="}}";for(;u<e.length;)if(h){let E=u,I=E+p.length,D=this._getInterpolationEndIndex(e,g,I);if(D===-1){h=!1,d=!0;break}let b=D+g.length,P=e.substring(I,D);P.trim().length===0&&s.push(Xr("Blank expressions are not allowed in interpolated strings",e,`at column ${u} in`,n)),o.push({text:P,start:E,end:b});let ne=((v=c==null?void 0:c.get(E))!=null?v:E)+p.length;l.push(ne),u=b,h=!1}else{let E=u;u=e.indexOf(p,u),u===-1&&(u=e.length);let I=e.substring(E,u);i.push({text:I,start:E,end:u}),h=!0}if(!h)if(d){let E=i[i.length-1];E.text+=e.substring(u),E.end=e.length}else i.push({text:e.substring(u),start:u,end:e.length});return new Su(i,o,l)}wrapLiteralPrimitive(e,n,s){let r=new As(0,e==null?0:e.length);return new ve(new dt(r,r.toAbsolute(s),e),e,typeof n=="string"?n:hs(n),s,[])}_stripComments(e){let n=this._commentStart(e);return n!=null?{stripped:e.substring(0,n),hasComments:!0}:{stripped:e,hasComments:!1}}_commentStart(e){let n=null;for(let s=0;s<e.length-1;s++){let r=e.charCodeAt(s),i=e.charCodeAt(s+1);if(r===Xt&&i==Xt&&n==null)return s;n===r?n=null:n==null&&Ki(r)&&(n=r)}return null}_checkNoInterpolation(e,n,s){let r=-1,i=-1;for(let o of this._forEachUnquotedChar(n,0))if(r===-1)n.startsWith("{{")&&(r=o);else if(i=this._getInterpolationEndIndex(n,"}}",o),i>-1)break;r>-1&&i>-1&&e.push(Xr("Got interpolation ({{}}) where expression was expected",n,`at column ${r} in`,s))}_getInterpolationEndIndex(e,n,s){for(let r of this._forEachUnquotedChar(e,s)){if(e.startsWith(n,r))return r;if(e.startsWith("//",r))return e.indexOf(n,r)}return-1}*_forEachUnquotedChar(e,n){let s=null,r=0;for(let i=n;i<e.length;i++){let o=e[i];Ki(e.charCodeAt(i))&&(s===null||s===o)&&r%2===0?s=s===null?o:null:s===null&&(yield i),r=o==="\\"?r+1:0}}},Kr;(function(t){t[t.None=0]="None",t[t.Writable=1]="Writable"})(Kr||(Kr={}));var uf=new Set(["d","g","i","m","s","u","v","y"]),tr=class{constructor(e,n,s,r,i,o,l,c){a(this,"input");a(this,"parseSourceSpan");a(this,"absoluteOffset");a(this,"tokens");a(this,"parseFlags");a(this,"errors");a(this,"offset");a(this,"supportsDirectPipeReferences");a(this,"rparensExpected",0);a(this,"rbracketsExpected",0);a(this,"rbracesExpected",0);a(this,"context",Kr.None);a(this,"sourceSpanCache",new Map);a(this,"index",0);this.input=e,this.parseSourceSpan=n,this.absoluteOffset=s,this.tokens=r,this.parseFlags=i,this.errors=o,this.offset=l,this.supportsDirectPipeReferences=c}peek(e){let n=this.index+e;return n<this.tokens.length?this.tokens[n]:Bi}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 s=this.currentEndIndex;if(n!==void 0&&n>this.currentEndIndex&&(s=n),e>s){let r=s;s=e,e=r}return new As(e,s)}sourceSpan(e,n){let s=`${e}@${this.inputIndex}:${n}`;return this.sourceSpanCache.has(s)||this.sourceSpanCache.set(s,this.span(e,n).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(s)}advance(){this.index++}withContext(e,n){this.context|=e;let s=n();return this.context^=e,s}consumeOptionalCharacter(e){return this.next.isCharacter(e)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return this.next.isOperator(e)?(this.advance(),!0):!1}isAssignmentOperator(e){return e.type===q.Operator&&we.isAssignmentOperation(e.strValue)}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===Bi?"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 s=this.parsePipe();if(e.push(s),this.consumeOptionalCharacter(Dt))for(this.parseFlags&1||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(Dt););else if(this.index<this.tokens.length){let r=this.index;if(this.error(`Unexpected token '${this.next}'`),this.index===r)break}}if(e.length===0){let s=this.offset,r=this.offset+this.input.length;return new tt(this.span(s,r),this.sourceSpan(s,r))}return e.length==1?e[0]:new Is(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 s=this.inputIndex,r=this.expectIdentifierOrKeyword(),i,o;r!==null?i=this.sourceSpan(s):(r="",o=this.next.index!==-1?this.next.index:this.input.length+this.offset,i=new As(o,o).toAbsolute(this.absoluteOffset));let l=[];for(;this.consumeOptionalCharacter(In);)l.push(this.parseExpression());let c;if(this.supportsDirectPipeReferences){let u=r.charCodeAt(0);c=u===js||u>=Ws&&u<=wi?Yr.ReferencedDirectly:Yr.ReferencedByName}else c=Yr.ReferencedByName;n=new mr(this.span(e),this.sourceSpan(e,o),n,r,l,c,i)}while(this.consumeOptionalOperator("|"))}return n}parseExpression(){return this.parseConditional()}parseConditional(){let e=this.inputIndex,n=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){let s=this.parsePipe(),r;if(this.consumeOptionalCharacter(In))r=this.parsePipe();else{let i=this.inputIndex,o=this.input.substring(e,i);this.error(`Conditional expression ${o} requires all 3 expressions`),r=new tt(this.span(e),this.sourceSpan(e))}return new ai(this.span(e),this.sourceSpan(e),n,s,r)}else return n}parseLogicalOr(){let e=this.inputIndex,n=this.parseLogicalAnd();for(;this.consumeOptionalOperator("||");){let s=this.parseLogicalAnd();n=new we(this.span(e),this.sourceSpan(e),"||",n,s)}return n}parseLogicalAnd(){let e=this.inputIndex,n=this.parseNullishCoalescing();for(;this.consumeOptionalOperator("&&");){let s=this.parseNullishCoalescing();n=new we(this.span(e),this.sourceSpan(e),"&&",n,s)}return n}parseNullishCoalescing(){let e=this.inputIndex,n=this.parseEquality();for(;this.consumeOptionalOperator("??");){let s=this.parseEquality();n=new we(this.span(e),this.sourceSpan(e),"??",n,s)}return n}parseEquality(){let e=this.inputIndex,n=this.parseRelational();for(;this.next.type==q.Operator;){let s=this.next.strValue;switch(s){case"==":case"===":case"!=":case"!==":this.advance();let r=this.parseRelational();n=new we(this.span(e),this.sourceSpan(e),s,n,r);continue}break}return n}parseRelational(){let e=this.inputIndex,n=this.parseAdditive();for(;this.next.type==q.Operator||this.next.isKeywordIn()||this.next.isKeywordInstanceOf();){let s=this.next.strValue;switch(s){case"<":case">":case"<=":case">=":case"in":case"instanceof":this.advance();let r=this.parseAdditive();n=new we(this.span(e),this.sourceSpan(e),s,n,r);continue}break}return n}parseAdditive(){let e=this.inputIndex,n=this.parseMultiplicative();for(;this.next.type==q.Operator;){let s=this.next.strValue;switch(s){case"+":case"-":this.advance();let r=this.parseMultiplicative();n=new we(this.span(e),this.sourceSpan(e),s,n,r);continue}break}return n}parseMultiplicative(){let e=this.inputIndex,n=this.parseExponentiation();for(;this.next.type==q.Operator;){let s=this.next.strValue;switch(s){case"*":case"%":case"/":this.advance();let r=this.parseExponentiation();n=new we(this.span(e),this.sourceSpan(e),s,n,r);continue}break}return n}parseExponentiation(){let e=this.inputIndex,n=this.parsePrefix();for(;this.next.type==q.Operator&&this.next.strValue==="**";){(n instanceof Qr||n instanceof Mn||n instanceof ho||n instanceof fo)&&this.error("Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence"),this.advance();let s=this.parseExponentiation();n=new we(this.span(e),this.sourceSpan(e),"**",n,s)}return n}parsePrefix(){if(this.next.type==q.Operator){let e=this.inputIndex,n=this.next.strValue,s;switch(n){case"+":return this.advance(),s=this.parsePrefix(),Qr.createPlus(this.span(e),this.sourceSpan(e),s);case"-":return this.advance(),s=this.parsePrefix(),Qr.createMinus(this.span(e),this.sourceSpan(e),s);case"!":return this.advance(),s=this.parsePrefix(),new Mn(this.span(e),this.sourceSpan(e),s)}}else if(this.next.isKeywordTypeof()){let e=this.inputIndex;this.advance();let n=this.parsePrefix();return new ho(this.span(e),this.sourceSpan(e),n)}else if(this.next.isKeywordVoid()){let e=this.inputIndex;this.advance();let n=this.parsePrefix();return new fo(this.span(e),this.sourceSpan(e),n)}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,n=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(Zs))n=this.parseAccessMember(n,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(yt)?n=this.parseCall(n,e,!0):n=this.consumeOptionalCharacter(kn)?this.parseKeyedReadOrWrite(n,e,!0):this.parseAccessMember(n,e,!0);else if(this.consumeOptionalCharacter(kn))n=this.parseKeyedReadOrWrite(n,e,!1);else if(this.consumeOptionalCharacter(yt))n=this.parseCall(n,e,!1);else if(this.consumeOptionalOperator("!"))n=new mo(this.span(e),this.sourceSpan(e),n);else if(this.next.isTemplateLiteralEnd())n=this.parseNoInterpolationTaggedTemplateLiteral(n,e);else if(this.next.isTemplateLiteralPart())n=this.parseTaggedTemplateLiteral(n,e);else return n}parsePrimary(){let e=this.inputIndex;if(this.isArrowFunction())return this.parseArrowFunction(e);if(this.consumeOptionalCharacter(yt)){this.rparensExpected++;let n=this.parsePipe();return this.consumeOptionalCharacter(Be)||(this.error("Missing closing parentheses"),this.consumeOptionalCharacter(Be)),this.rparensExpected--,new vo(this.span(e),this.sourceSpan(e),n)}else{if(this.next.isKeywordNull())return this.advance(),new dt(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new dt(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new dt(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new dt(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordIn())return this.advance(),new dt(this.span(e),this.sourceSpan(e),"in");if(this.next.isKeywordThis())return this.advance(),new on(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(kn))return this.parseLiteralArray(e);if(this.next.isCharacter(Jt))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new Ze(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let n=this.next.toNumber();return this.advance(),new dt(this.span(e),this.sourceSpan(e),n)}else{if(this.next.isTemplateLiteralEnd())return this.parseNoInterpolationTemplateLiteral();if(this.next.isTemplateLiteralPart())return this.parseTemplateLiteral();if(this.next.isString()&&this.next.kind===Ss.Plain){let n=this.next.toString();return this.advance(),new dt(this.span(e),this.sourceSpan(e),n)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new tt(this.span(e),this.sourceSpan(e))):this.next.isRegExpBody()?this.parseRegularExpressionLiteral():this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new tt(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new tt(this.span(e),this.sourceSpan(e)))}}}parseLiteralArray(e){this.rbracketsExpected++;let n=[];do if(this.next.isOperator("..."))n.push(this.parseSpreadElement());else if(!this.next.isCharacter(jn))n.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(rt));return this.rbracketsExpected--,this.expectCharacter(jn),new li(this.span(e),this.sourceSpan(e),n)}parseLiteralMap(){let e=[],n=[],s=this.inputIndex;if(this.expectCharacter(Jt),!this.consumeOptionalCharacter(mt)){this.rbracesExpected++;do{let r=this.inputIndex;if(this.next.isOperator("...")){this.advance(),e.push({kind:"spread",span:this.span(r),sourceSpan:this.sourceSpan(r)}),n.push(this.parsePipe());continue}let i=this.next.isString(),o=this.expectIdentifierOrKeywordOrString(),l=this.span(r),c=this.sourceSpan(r),u={kind:"property",key:o,quoted:i,span:l,sourceSpan:c};e.push(u),i?(this.expectCharacter(In),n.push(this.parsePipe())):this.consumeOptionalCharacter(In)?n.push(this.parsePipe()):(u.isShorthandInitialized=!0,n.push(new le(l,c,c,new Ze(l,c),o)))}while(this.consumeOptionalCharacter(rt)&&!this.next.isCharacter(mt));this.rbracesExpected--,this.expectCharacter(mt)}return new Ds(this.span(s),this.sourceSpan(s),e,n)}parseAccessMember(e,n,s){let r=this.inputIndex,i=this.withContext(Kr.Writable,()=>{var c;let l=(c=this.expectIdentifierOrKeyword())!=null?c:"";return l.length===0&&this.error("Expected identifier for property access",e.span.end),l}),o=this.sourceSpan(r);if(s)return this.isAssignmentOperator(this.next)?(this.advance(),this.error("The '?.' operator cannot be used in the assignment"),new tt(this.span(n),this.sourceSpan(n))):new et(this.span(n),this.sourceSpan(n),o,e,i);if(this.isAssignmentOperator(this.next)){let l=this.next.strValue;if(!(this.parseFlags&1))return this.advance(),this.error("Bindings cannot contain assignments"),new tt(this.span(n),this.sourceSpan(n));let c=new le(this.span(n),this.sourceSpan(n),o,e,i);this.advance();let u=this.parseConditional();return new we(this.span(n),this.sourceSpan(n),l,c,u)}else return new le(this.span(n),this.sourceSpan(n),o,e,i)}parseCall(e,n,s){let r=this.inputIndex;this.rparensExpected++;let i=this.parseCallArguments(),o=this.span(r,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(Be),this.rparensExpected--;let l=this.span(n),c=this.sourceSpan(n);return s?new Gt(l,c,e,i,o):new Ct(l,c,e,i,o)}parseCallArguments(){if(this.next.isCharacter(Be))return[];let e=[];do e.push(this.next.isOperator("...")?this.parseSpreadElement():this.parsePipe());while(this.consumeOptionalCharacter(rt));return e}parseSpreadElement(){this.next.isOperator("...")||this.error("Spread element must start with '...' operator");let e=this.inputIndex;this.advance();let n=this.parsePipe(),s=this.span(e),r=this.sourceSpan(e);return new Ra(s,r,n)}expectTemplateBindingKey(){let e="",n=!1,s=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),n=this.consumeOptionalOperator("-"),n&&(e+="-");while(n);return{source:e,span:new Ye(s,s+e.length)}}parseTemplateBindings(e){let n=[];for(n.push(...this.parseDirectiveKeywordBindings(e));this.index<this.tokens.length;){let s=this.parseLetBinding();if(s)n.push(s);else{let r=this.expectTemplateBindingKey(),i=this.parseAsBinding(r);i?n.push(i):(r.source=e.source+r.source.charAt(0).toUpperCase()+r.source.substring(1),n.push(...this.parseDirectiveKeywordBindings(r)))}this.consumeStatementTerminator()}return new Eu(n,[],this.errors)}parseKeyedReadOrWrite(e,n,s){return this.withContext(Kr.Writable,()=>{this.rbracketsExpected++;let r=this.parsePipe();if(r instanceof tt&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(jn),this.isAssignmentOperator(this.next)){let i=this.next.strValue;if(s)this.advance(),this.error("The '?.' operator cannot be used in the assignment");else{let o=new Ln(this.span(n),this.sourceSpan(n),e,r);this.advance();let l=this.parseConditional();return new we(this.span(n),this.sourceSpan(n),i,o,l)}}else return s?new Ns(this.span(n),this.sourceSpan(n),e,r):new Ln(this.span(n),this.sourceSpan(n),e,r);return new tt(this.span(n),this.sourceSpan(n))})}parseDirectiveKeywordBindings(e){let n=[];this.consumeOptionalCharacter(In);let s=this.getDirectiveBoundTarget(),r=this.currentAbsoluteOffset,i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),r=this.currentAbsoluteOffset);let o=new Ye(e.span.start,r);return n.push(new Mc(o,e,s)),i&&n.push(i),n}getDirectiveBoundTarget(){if(this.next===Bi||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:n,end:s}=e.span,r=this.input.substring(n,s);return new ve(e,r,hs(this.parseSourceSpan),this.absoluteOffset+n,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let n=this.expectTemplateBindingKey();this.consumeStatementTerminator();let s=new Ye(e.span.start,this.currentAbsoluteOffset);return new So(s,n,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let n=this.expectTemplateBindingKey(),s=null;this.consumeOptionalOperator("=")&&(s=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let r=new Ye(e,this.currentAbsoluteOffset);return new So(r,n,s)}parseNoInterpolationTaggedTemplateLiteral(e,n){let s=this.parseNoInterpolationTemplateLiteral();return new go(this.span(n),this.sourceSpan(n),e,s)}parseNoInterpolationTemplateLiteral(){let e=this.next.strValue,n=this.inputIndex;this.advance();let s=this.span(n),r=this.sourceSpan(n);return new yo(s,r,[new Pa(s,r,e)],[])}parseTaggedTemplateLiteral(e,n){let s=this.parseTemplateLiteral();return new go(this.span(n),this.sourceSpan(n),e,s)}parseTemplateLiteral(){let e=[],n=[],s=this.inputIndex;for(;this.next!==Bi;){let r=this.next;if(r.isTemplateLiteralPart()||r.isTemplateLiteralEnd()){let i=this.inputIndex;if(this.advance(),e.push(new Pa(this.span(i),this.sourceSpan(i),r.strValue)),r.isTemplateLiteralEnd())break}else if(r.isTemplateLiteralInterpolationStart()){this.advance(),this.rbracesExpected++;let i=this.parsePipe();i instanceof tt?this.error("Template literal interpolation cannot be empty"):n.push(i),this.rbracesExpected--}else this.advance()}return new yo(this.span(s),this.sourceSpan(s),e,n)}parseRegularExpressionLiteral(){let e=this.next;if(this.advance(),!e.isRegExpBody())return new tt(this.span(this.inputIndex),this.sourceSpan(this.inputIndex));let n=null;if(this.next.isRegExpFlags()){n=this.next,this.advance();let i=new Set;for(let o=0;o<n.strValue.length;o++){let l=n.strValue[o];uf.has(l)?i.has(l)?this.error(`Duplicate regular expression flag "${l}"`,n.index+o):i.add(l):this.error(`Unsupported regular expression flag "${l}". The supported flags are: `+Array.from(uf,c=>`"${c}"`).join(", "),n.index+o)}}let s=e.index,r=n?n.end:e.end;return new La(this.span(s,r),this.sourceSpan(s,r),e.strValue,n?n.strValue:null)}parseArrowFunction(e){let n;if(this.next.isIdentifier()){let r=this.next;this.advance(),n=[this.getArrowFunctionIdentifierArg(r)]}else this.next.isCharacter(yt)?(this.rparensExpected++,this.advance(),n=this.parseArrowFunctionParameters(),this.rparensExpected--):(n=[],this.error(`Unexpected token ${this.next}`));this.expectOperator("=>");let s;if(this.next.isCharacter(Jt))this.error("Multi-line arrow functions are not supported. If you meant to return an object literal, wrap it with parentheses."),s=new tt(this.span(e),this.sourceSpan(e));else{let r=this.parseFlags;this.parseFlags=1,s=this.parseExpression(),this.parseFlags=r}return new ci(this.span(e),this.sourceSpan(e),n,s)}parseArrowFunctionParameters(){let e=[];if(!this.consumeOptionalCharacter(Be))for(;this.next!==Bi;)if(this.next.isIdentifier()){let n=this.next;if(this.advance(),e.push(this.getArrowFunctionIdentifierArg(n)),this.consumeOptionalCharacter(Be))break;this.expectCharacter(rt)}else{this.error(`Unexpected token ${this.next}`);break}return e}getArrowFunctionIdentifierArg(e){return new Lc(e.strValue,this.span(e.index),this.sourceSpan(e.index))}isArrowFunction(){let e=this.index,n=this.tokens;if(e>n.length-2)return!1;if(n[e].isIdentifier()&&n[e+1].isOperator("=>"))return!0;if(n[e].isCharacter(yt)){let s=e+1;for(s;s<n.length&&!(!n[s].isIdentifier()&&!n[s].isCharacter(rt));s++);return s<n.length-1&&n[s].isCharacter(Be)&&n[s+1].isOperator("=>")}return!1}consumeStatementTerminator(){this.consumeOptionalCharacter(Dt)||this.consumeOptionalCharacter(rt)}error(e,n=this.index){this.errors.push(Xr(e,this.input,this.getErrorLocationText(n),this.parseSourceSpan)),this.skip()}getErrorLocationText(e){return e<this.tokens.length?`at column ${this.tokens[e].index+1} in`:"at the end of the expression"}_reportErrorForPrivateIdentifier(e,n){let s=`Private identifiers are not supported. Unexpected private identifier: ${e}`;n!==null&&(s+=`, ${n}`),this.error(s)}skip(){let e=this.next;for(;this.index<this.tokens.length&&!e.isCharacter(Dt)&&!e.isOperator("|")&&(this.rparensExpected<=0||!e.isCharacter(Be))&&(this.rbracesExpected<=0||!e.isCharacter(mt))&&(this.rbracketsExpected<=0||!e.isCharacter(jn))&&(!(this.context&Kr.Writable)||!this.isAssignmentOperator(e));)this.next.isError()&&this.errors.push(Xr(this.next.toString(),this.input,this.getErrorLocationText(this.next.index),this.parseSourceSpan)),this.advance(),e=this.next}};function Xr(t,e,n,s){n.length>0&&(n=` ${n} `);let r=hs(s),i=`Parser Error: ${t}${n}[${e}] in ${r}`;return new G(s,i)}var Tu=class extends bs{constructor(){super(...arguments);a(this,"errors",[])}visitPipe(){this.errors.push("pipes")}};function iC(t){let e=new Map,n=0,s=0,r=0;for(;r<t.length;){let i=t[r];if(i.type===9){let[o,l]=i.parts;n+=l.length,s+=o.length}else{let o=i.parts.reduce((l,c)=>l+c.length,0);s+=o,n+=o}e.set(s,n),r++}return e}function oC(t){return t.visit(new wu)}var wu=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(s=>s.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(s=>s.visit(this,n))).join("")}visitKeyedRead(e,n){return`${e.receiver.visit(this,n)}[${e.key.visit(this,n)}]`}visitLiteralArray(e,n){return`[${e.expressions.map(s=>s.visit(this,n)).join(", ")}]`}visitLiteralMap(e,n){return`{${aC(e.keys.map(s=>s.kind==="spread"?"...":s.quoted?`'${s.key}'`:s.key),e.values.map(s=>s.visit(this,n))).map(([s,r])=>`${s}: ${r}`).join(", ")}}`}visitLiteralPrimitive(e){if(e.value===null)return"null";switch(typeof e.value){case"number":case"boolean":return e.value.toString();case"undefined":return"undefined";case"string":return`'${e.value.replace(/'/g,"\\'")}'`;default:throw new Error(`Unsupported primitive type: ${e.value}`)}}visitPipe(e,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 Ze||e.receiver instanceof on?e.name:`${e.receiver.visit(this,n)}.${e.name}`}visitSafePropertyRead(e,n){return`${e.receiver.visit(this,n)}?.${e.name}`}visitSafeKeyedRead(e,n){return`${e.receiver.visit(this,n)}?.[${e.key.visit(this,n)}]`}visitCall(e,n){return`${e.receiver.visit(this,n)}(${e.args.map(s=>s.visit(this,n)).join(", ")})`}visitSafeCall(e,n){return`${e.receiver.visit(this,n)}?.(${e.args.map(s=>s.visit(this,n)).join(", ")})`}visitTypeofExpression(e,n){return`typeof ${e.expression.visit(this,n)}`}visitVoidExpression(e,n){return`void ${e.expression.visit(this,n)}`}visitRegularExpressionLiteral(e,n){return`/${e.body}/${e.flags||""}`}visitArrowFunction(e,n){let s;return e.parameters.length===1?s=e.parameters[0].name:s=`(${e.parameters.map(r=>r.name).join(", ")})`,`${s} => ${e.body.visit(this,n)}`}visitASTWithSource(e,n){return e.ast.visit(this,n)}visitTemplateLiteral(e,n){let s="";for(let r=0;r<e.elements.length;r++){s+=e.elements[r].visit(this,n);let i=r<e.expressions.length?e.expressions[r]:null;i!==null&&(s+="${"+i.visit(this,n)+"}")}return"`"+s+"`"}visitTemplateLiteralElement(e,n){return e.text}visitTaggedTemplateLiteral(e,n){return e.tag.visit(this,n)+e.template.visit(this,n)}visitSpreadElement(e,n){return`...${e.expression.visit(this,n)}`}visitParenthesizedExpression(e,n){return"("+e.expression.visit(this,n)+")"}};function aC(t,e){if(t.length!==e.length)throw new Error("Array lengths must match");return t.map((n,s)=>[n,e[s]])}function lC(t,e){let n=[];for(let s=0;s<Math.max(t.length,e.length);s++)s<t.length&&n.push(t[s]),s<e.length&&n.push(e[s]);return n}var Ca;function pf(){return Ca||(Ca={},$i(ue.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),$i(ue.STYLE,["*|style"]),$i(ue.URL,["*|formAction","area|href","a|href","a|xlink:href","form|action","annotation|href","annotation|xlink:href","annotation-xml|href","annotation-xml|xlink:href","maction|href","maction|xlink:href","malignmark|href","malignmark|xlink:href","math|href","math|xlink:href","mroot|href","mroot|xlink:href","msqrt|href","msqrt|xlink:href","merror|href","merror|xlink:href","mfrac|href","mfrac|xlink:href","mglyph|href","mglyph|xlink:href","msub|href","msub|xlink:href","msup|href","msup|xlink:href","msubsup|href","msubsup|xlink:href","mmultiscripts|href","mmultiscripts|xlink:href","mprescripts|href","mprescripts|xlink:href","mi|href","mi|xlink:href","mn|href","mn|xlink:href","mo|href","mo|xlink:href","mpadded|href","mpadded|xlink:href","mphantom|href","mphantom|xlink:href","mrow|href","mrow|xlink:href","ms|href","ms|xlink:href","mspace|href","mspace|xlink:href","mstyle|href","mstyle|xlink:href","mtable|href","mtable|xlink:href","mtd|href","mtd|xlink:href","mtr|href","mtr|xlink:href","mtext|href","mtext|xlink:href","mover|href","mover|xlink:href","munder|href","munder|xlink:href","munderover|href","munderover|xlink:href","semantics|href","semantics|xlink:href","none|href","none|xlink:href","img|src","video|src"]),$i(ue.RESOURCE_URL,["base|href","embed|src","frame|src","iframe|src","link|href","object|codebase","object|data","script|src","script|href","script|xlink:href"]),$i(ue.ATTRIBUTE_NO_BINDING,["animate|attributeName","animate|values","animate|to","animate|from","set|to","set|attributeName","animateMotion|attributeName","animateTransform|attributeName","unknown|attributeName","unknown|values","unknown|to","unknown|from","iframe|sandbox","iframe|allow","iframe|allowFullscreen","iframe|referrerPolicy","iframe|csp","iframe|fetchPriority","unknown|sandbox","unknown|allow","unknown|allowFullscreen","unknown|referrerPolicy","unknown|csp","unknown|fetchPriority"])),Ca}function $i(t,e){for(let n of e)Ca[n.toLowerCase()]=t}var xu=class{},cC="boolean",uC="number",pC="string",hC="object",fC=["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","geolocation^[HTMLElement]|accuracymode,!autolocate,*location,*promptaction,*promptdismiss,*validationstatuschange,!watch","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","selectedcontent^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","search^[HTMLELement]|","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],Im=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex","aria-activedescendant":"ariaActiveDescendantElement","aria-atomic":"ariaAtomic","aria-autocomplete":"ariaAutoComplete","aria-busy":"ariaBusy","aria-checked":"ariaChecked","aria-colcount":"ariaColCount","aria-colindex":"ariaColIndex","aria-colindextext":"ariaColIndexText","aria-colspan":"ariaColSpan","aria-controls":"ariaControlsElements","aria-current":"ariaCurrent","aria-describedby":"ariaDescribedByElements","aria-description":"ariaDescription","aria-details":"ariaDetailsElements","aria-disabled":"ariaDisabled","aria-errormessage":"ariaErrorMessageElements","aria-expanded":"ariaExpanded","aria-flowto":"ariaFlowToElements","aria-haspopup":"ariaHasPopup","aria-hidden":"ariaHidden","aria-invalid":"ariaInvalid","aria-keyshortcuts":"ariaKeyShortcuts","aria-label":"ariaLabel","aria-labelledby":"ariaLabelledByElements","aria-level":"ariaLevel","aria-live":"ariaLive","aria-modal":"ariaModal","aria-multiline":"ariaMultiLine","aria-multiselectable":"ariaMultiSelectable","aria-orientation":"ariaOrientation","aria-owns":"ariaOwnsElements","aria-placeholder":"ariaPlaceholder","aria-posinset":"ariaPosInSet","aria-pressed":"ariaPressed","aria-readonly":"ariaReadOnly","aria-required":"ariaRequired","aria-roledescription":"ariaRoleDescription","aria-rowcount":"ariaRowCount","aria-rowindex":"ariaRowIndex","aria-rowindextext":"ariaRowIndexText","aria-rowspan":"ariaRowSpan","aria-selected":"ariaSelected","aria-setsize":"ariaSetSize","aria-sort":"ariaSort","aria-valuemax":"ariaValueMax","aria-valuemin":"ariaValueMin","aria-valuenow":"ariaValueNow","aria-valuetext":"ariaValueText"})),dC=Array.from(Im).reduce((t,[e,n])=>(t.set(e,n),t),new Map),En=class extends xu{constructor(){super();a(this,"_schema",new Map);a(this,"_eventSchema",new Map);fC.forEach(n=>{let s=new Map,r=new Set,[i,o]=n.split("|"),l=o.split(","),[c,u]=i.split("^");c.split(",").forEach(d=>{this._schema.set(d.toLowerCase(),s),this._eventSchema.set(d.toLowerCase(),r)});let h=u&&this._schema.get(u.toLowerCase());if(h){for(let[d,p]of h)s.set(d,p);for(let d of this._eventSchema.get(u.toLowerCase()))r.add(d)}l.forEach(d=>{if(d.length>0)switch(d[0]){case"*":r.add(d.substring(1));break;case"!":s.set(d.substring(1),cC);break;case"#":s.set(d.substring(1),uC);break;case"%":s.set(d.substring(1),hC);break;default:s.set(d,pC)}})})}hasProperty(n,s,r){if(r.some(o=>o.name===wc.name))return!0;if(n.indexOf("-")>-1){if(Ah(n)||Fc(n))return!1;if(r.some(o=>o.name===Tc.name))return!0}return(this._schema.get(n.toLowerCase())||this._schema.get("unknown")).has(s)}hasElement(n,s){return s.some(r=>r.name===wc.name)||n.indexOf("-")>-1&&(Ah(n)||Fc(n)||s.some(r=>r.name===Tc.name))?!0:this._schema.has(n.toLowerCase())}securityContext(n,s,r){r&&(s=this.getMappedPropName(s)),n=n.toLowerCase(),s=s.toLowerCase();let i=pf()[n+"|"+s];return i||(i=pf()["*|"+s],i||ue.NONE)}getMappedPropName(n){var s;return(s=Im.get(n))!=null?s: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)})=...
|
|
25
|
+
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 s=this._schema.get(n.toLowerCase())||this._schema.get("unknown");return Array.from(s.keys()).map(r=>{var i;return(i=dC.get(r))!=null?i:r})}allKnownEventsOfElement(n){var s;return Array.from((s=this._eventSchema.get(n.toLowerCase()))!=null?s:[])}normalizeAnimationStyleProperty(n){return fE(n)}normalizeAnimationStyleValue(n,s,r){let i="",o=r.toString().trim(),l=null;if(mC(n)&&r!==0&&r!=="0")if(typeof r=="number")i="px";else{let c=r.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&c[1].length==0&&(l=`Please provide a CSS unit value for ${s}:${r}`)}return{error:l,value:o+i}}};function mC(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 Z=class{constructor({closedByChildren:e,implicitNamespacePrefix:n,contentType:s=hn.PARSABLE_DATA,closedByParent:r=!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=r||i,this.implicitNamespacePrefix=n||null,this.contentType=s,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}},hf,$r;function Cu(t){var e,n;return $r||(hf=new Z({canSelfClose:!0}),$r=Object.assign(Object.create(null),{base:new Z({isVoid:!0}),meta:new Z({isVoid:!0}),area:new Z({isVoid:!0}),embed:new Z({isVoid:!0}),link:new Z({isVoid:!0}),img:new Z({isVoid:!0}),input:new Z({isVoid:!0}),param:new Z({isVoid:!0}),hr:new Z({isVoid:!0}),br:new Z({isVoid:!0}),source:new Z({isVoid:!0}),track:new Z({isVoid:!0}),wbr:new Z({isVoid:!0}),p:new Z({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 Z({closedByChildren:["tbody","tfoot"]}),tbody:new Z({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Z({closedByChildren:["tbody"],closedByParent:!0}),tr:new Z({closedByChildren:["tr"],closedByParent:!0}),td:new Z({closedByChildren:["td","th"],closedByParent:!0}),th:new Z({closedByChildren:["td","th"],closedByParent:!0}),col:new Z({isVoid:!0}),svg:new Z({implicitNamespacePrefix:"svg"}),foreignObject:new Z({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new Z({implicitNamespacePrefix:"math"}),li:new Z({closedByChildren:["li"],closedByParent:!0}),dt:new Z({closedByChildren:["dt","dd"]}),dd:new Z({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Z({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Z({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Z({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Z({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Z({closedByChildren:["optgroup"],closedByParent:!0}),option:new Z({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Z({ignoreFirstLf:!0}),listing:new Z({ignoreFirstLf:!0}),style:new Z({contentType:hn.RAW_TEXT}),script:new Z({contentType:hn.RAW_TEXT}),title:new Z({contentType:{default:hn.ESCAPABLE_RAW_TEXT,svg:hn.PARSABLE_DATA}}),textarea:new Z({contentType:hn.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new En().allKnownElementNames().forEach(s=>{!$r[s]&&Bc(s)===null&&($r[s]=new Z({canSelfClose:!1}))})),(n=(e=$r[t])!=null?e:$r[t.toLowerCase()])!=null?n:hf}var ff={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"},Au=class{constructor(){a(this,"_placeHolderNameCounts",{});a(this,"_signatureToName",{})}getStartTagPlaceholderName(e,n,s){let r=this._hashTag(e,n,s);if(this._signatureToName[r])return this._signatureToName[r];let i=e.toUpperCase(),o=ff[i]||`TAG_${i}`,l=this._generateUniqueName(s?o:`START_${o}`);return this._signatureToName[r]=l,l}getCloseTagPlaceholderName(e){let n=this._hashClosingTag(e);if(this._signatureToName[n])return this._signatureToName[n];let s=e.toUpperCase(),r=ff[s]||`TAG_${s}`,i=this._generateUniqueName(`CLOSE_${r}`);return this._signatureToName[n]=i,i}getPlaceholderName(e,n){let s=e.toUpperCase(),r=`PH: ${s}=${n}`;if(this._signatureToName[r])return this._signatureToName[r];let i=this._generateUniqueName(s);return this._signatureToName[r]=i,i}getUniquePlaceholder(e){return this._generateUniqueName(e.toUpperCase())}getStartBlockPlaceholderName(e,n){let s=this._hashBlock(e,n);if(this._signatureToName[s])return this._signatureToName[s];let r=this._generateUniqueName(`START_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[s]=r,r}getCloseBlockPlaceholderName(e){let n=this._hashClosingBlock(e);if(this._signatureToName[n])return this._signatureToName[n];let s=this._generateUniqueName(`CLOSE_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[n]=s,s}_hashTag(e,n,s){let r=`<${e}`,i=Object.keys(n).sort().map(l=>` ${l}=${n[l]}`).join(""),o=s?"/>":`></${e}>`;return r+i+o}_hashClosingTag(e){return this._hashTag(`/${e}`,{},!1)}_hashBlock(e,n){let s=n.length===0?"":` (${n.sort().join("; ")})`;return`@${e}${s} {}`}_hashClosingBlock(e){return this._hashBlock(`close_${e}`,[])}_toSnakeCase(e){return e.toUpperCase().replace(/[^A-Z0-9]/g,"_")}_generateUniqueName(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;let s=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=s+1,`${e}_${s}`}},gC=new al(new Vo);function yC(t,e){let n=new Iu(gC,t,e);return(s,r,i,o,l)=>n.toI18nMessage(s,r,i,o,l)}function vC(t,e){return e}var Iu=class{constructor(e,n,s){a(this,"_expressionParser");a(this,"_retainEmptyTokens");a(this,"_preserveExpressionWhitespace");this._expressionParser=e,this._retainEmptyTokens=n,this._preserveExpressionWhitespace=s}toI18nMessage(e,n="",s="",r="",i){let o={isIcu:e.length==1&&e[0]instanceof ar,icuDepth:0,placeholderRegistry:new Au,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:i||vC},l=ge(this,e,o);return new vt(l,o.placeholderToContent,o.placeholderToMessage,n,s,r)}visitElement(e,n){return this._visitElementLike(e,n)}visitComponent(e,n){return this._visitElementLike(e,n)}visitDirective(e,n){throw new Error("Unreachable code")}visitAttribute(e,n){let s=e.valueTokens===void 0||e.valueTokens.length===1?new Li(e.value,e.valueSpan||e.sourceSpan):this._visitTextWithInterpolation(e.valueTokens,e.valueSpan||e.sourceSpan,n,e.i18n);return n.visitNodeFn(e,s)}visitText(e,n){let s=e.tokens.length===1?new Li(e.value,e.sourceSpan):this._visitTextWithInterpolation(e.tokens,e.sourceSpan,n,e.i18n);return n.visitNodeFn(e,s)}visitComment(e,n){return null}visitExpansion(e,n){n.icuDepth++;let s={},r=new $a(e.switchValue,e.type,s,e.sourceSpan);if(e.cases.forEach(l=>{s[l.value]=new Xn(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 r.expressionPlaceholder=l,n.placeholderToContent[l]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},n.visitNodeFn(e,r)}let i=n.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());n.placeholderToMessage[i]=this.toI18nMessage([e],"","","",void 0);let o=new pi(r,i,e.sourceSpan);return n.visitNodeFn(e,o)}visitExpansionCase(e,n){throw new Error("Unreachable code")}visitBlock(e,n){var c;let s=ge(this,e.children,n);if(e.name==="switch")return new Xn(s,e.sourceSpan);let r=e.parameters.map(u=>u.expression),i=n.placeholderRegistry.getStartBlockPlaceholderName(e.name,r),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 Ls(e.name,r,i,o,s,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return n.visitNodeFn(e,l)}visitBlockParameter(e,n){throw new Error("Unreachable code")}visitLetDeclaration(e,n){return null}_visitElementLike(e,n){var d;let s=ge(this,e.children,n),r={},i=p=>{r[p.name]=p.value},o,l;e instanceof Kt?(o=e.name,l=Cu(e.name).isVoid):(o=e.fullName,l=e.tagName?Cu(e.tagName).isVoid:!1),e.attrs.forEach(i),e.directives.forEach(p=>p.attrs.forEach(i));let c=n.placeholderRegistry.getStartTagPlaceholderName(o,r,l);n.placeholderToContent[c]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};let u="";l||(u=n.placeholderRegistry.getCloseTagPlaceholderName(o),n.placeholderToContent[u]={text:`</${o}>`,sourceSpan:(d=e.endSourceSpan)!=null?d:e.sourceSpan});let h=new Ps(o,r,c,u,s,l,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return n.visitNodeFn(e,h)}_visitTextWithInterpolation(e,n,s,r){let i=[],o=!1;for(let l of e)switch(l.type){case 8:case 17:o=!0;let[c,u,h]=l.parts,d=xC(u)||"INTERPOLATION",p=s.placeholderRegistry.getPlaceholderName(d,u);if(this._preserveExpressionWhitespace)s.placeholderToContent[p]={text:l.parts.join(""),sourceSpan:l.sourceSpan},i.push(new Ao(u,p,l.sourceSpan));else{let g=this.normalizeExpression(l);s.placeholderToContent[p]={text:`${c}${g}${h}`,sourceSpan:l.sourceSpan},i.push(new Ao(g,p,l.sourceSpan))}break;default:if(l.parts[0].length>0||this._retainEmptyTokens){let g=i[i.length-1];g instanceof Li?(g.value+=l.parts[0],g.sourceSpan=new H(g.sourceSpan.start,l.sourceSpan.end,g.sourceSpan.fullStart,g.sourceSpan.details)):i.push(new Li(l.parts[0],l.sourceSpan))}else this._retainEmptyTokens&&i.push(new Li(l.parts[0],l.sourceSpan));break}return o?(SC(i,r),new Xn(i,n)):i[0]}normalizeExpression(e){let n=e.parts[1],s=this._expressionParser.parseBinding(n,e.sourceSpan,e.sourceSpan.start.offset);return oC(s)}};function SC(t,e){if(e instanceof vt&&(EC(e),e=e.nodes[0]),e instanceof Xn){TC(e.children,t);for(let n=0;n<t.length;n++)t[n].sourceSpan=e.children[n].sourceSpan}}function EC(t){let e=t.nodes;if(e.length!==1||!(e[0]instanceof Xn))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}function TC(t,e){if(t.length!==e.length)throw new Error(`
|
|
27
26
|
The number of i18n message children changed between first and second pass.
|
|
28
27
|
|
|
29
28
|
First pass (${t.length} tokens):
|
|
@@ -33,20 +32,20 @@ ${t.map(n=>`"${n.sourceSpan.toString()}"`).join(`
|
|
|
33
32
|
Second pass (${e.length} tokens):
|
|
34
33
|
${e.map(n=>`"${n.sourceSpan.toString()}"`).join(`
|
|
35
34
|
`)}
|
|
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 xC=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function wC(t){return t.split(xC)[2]}var df=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function mf(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),df.has(t+"|"+e)||df.has("*|"+e)}var CC=t=>(e,n)=>{var s;let r=(s=t.get(e))!=null?s:e;return r instanceof Zn&&(n instanceof li&&r.i18n instanceof St&&(n.previousMessage=r.i18n),r.i18n=n),n},al=class{constructor(e=!1,n=!1,r=!0,s=!r){a(this,"keepI18nAttrs");a(this,"enableI18nLegacyMessageIdFormat");a(this,"preserveSignificantWhitespace");a(this,"retainEmptyTokens");a(this,"hasI18nMeta",!1);a(this,"_errors",[]);this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=n,this.preserveSignificantWhitespace=r,this.retainEmptyTokens=s}_generateI18nMessage(e,n="",r){let{meaning:s,description:i,customId:o}=this._parseMetadata(n),c=yC(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 sl(n,this._errors)}visitElement(e){return this._visitElementLike(e),e}visitComponent(e,n){return this._visitElementLike(e),e}visitExpansion(e,n){let r,s=e.i18n;if(this.hasI18nMeta=!0,s instanceof li){let i=s.name;r=this._generateI18nMessage([e],s);let o=Fd(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 ge(this,e.children,n),e}visitBlockParameter(e,n){return e}visitLetDeclaration(e,n){return e}visitDirective(e,n){return e}_visitElementLike(e){let n;if(UE(e)){this.hasI18nMeta=!0;let r=[],s={};for(let i of e.attrs)if(i.name===Md){let o=e.i18n||i.value,l=new Map,c=this.preserveSignificantWhitespace?e.children:xn(new il(!1,l),e.children);n=this._generateI18nMessage(c,o,CC(l)),n.nodes.length===0&&(n=void 0),e.i18n=n}else if(i.name.startsWith(qc)){let o=i.name.slice(qc.length),l;e instanceof ht?l=e.tagName===null?!1:mf(e.tagName,o):l=mf(e.name,o),l?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)}ge(this,e.children,n)}_parseMetadata(e){return typeof e=="string"?IC(e):e instanceof St?e:{}}_setMessageId(e,n){e.id||(e.id=n instanceof St&&n.id||HS(e))}_setLegacyIds(e,n){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[GS(e),Ed(e)];else if(typeof n!="string"){let r=n instanceof St?n:n instanceof li?n.previousMessage:void 0;e.legacyIds=r?r.legacyIds:[]}}_reportError(e,n){this._errors.push(new G(e.sourceSpan,n))}},AC="|",NC="@@";function IC(t=""){let e,n,r;if(t=t.trim(),t){let s=t.indexOf(NC),i=t.indexOf(AC),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 DC(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}),Id(e)}var bC="goog.getMsg";function _C(t,e,n,r){let s=RC(e),i=[S(s)];Object.keys(r).length&&(i.push(uu(Yu(r,!0),!0)),i.push(uu({original_code:wt(Object.keys(r).map(c=>({key:zo(c),quoted:!0,value:e.placeholders[c]?S(e.placeholders[c].sourceSpan.toString()):S(e.placeholderToMessage[c].nodes.map(u=>u.sourceSpan.toString()).join(""))})))})));let o=new Ve(n.name,J(bC).callFn(i),Zt,Ue.Final);o.addLeadingComment(DC(e));let l=new Qe(t.set(n));return[o,l]}var Iu=class{formatPh(e){return`{$${zo(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(n=>n.visit(this)).join("")}visitIcu(e){return Sm(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)}},kC=new Iu;function RC(t){return t.nodes.map(e=>e.visit(kC,null)).join("")}function PC(t,e,n){let{messageParts:r,placeHolders:s}=LC(e),i=MC(e),o=s.map(u=>n[u.text]),l=_d(e,r,s,o,i),c=t.set(l);return[new Qe(c)]}var Du=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 gr)this.pieces[this.pieces.length-1].text+=e.value;else{let n=new H(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new gr(e.value,n))}}visitContainer(e){e.children.forEach(n=>n.visit(this))}visitIcu(e){this.pieces.push(new gr(Sm(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 ts(zo(e,!1),n,r)}};function LC(t){let e=[],n=new Du(t.placeholderToMessage,e);return t.nodes.forEach(r=>r.visit(n)),OC(e)}function MC(t){let e=t.nodes[0],n=t.nodes[t.nodes.length-1];return new H(e.sourceSpan.fullStart,n.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}function OC(t){let e=[],n=[];t[0]instanceof ts&&e.push(oc(t[0].sourceSpan.start));for(let r=0;r<t.length;r++){let s=t[r];s instanceof gr?e.push(s):(n.push(s),t[r-1]instanceof ts&&e.push(oc(t[r-1].sourceSpan.end)))}return t[t.length-1]instanceof ts&&e.push(oc(t[t.length-1].sourceSpan.end)),{messageParts:e,placeHolders:n}}function oc(t){return new gr("",new H(t,t))}var gf="ngI18nClosureMode",FC="i18n_",BC="I18N_EXP_",yf="\uFFFD",$C="MSG_";function vf(t){return`${$C}${t}`.toUpperCase()}function UC(t){return new Ve(t.name,void 0,Zt,void 0,t.sourceSpan)}function VC(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 h of t.units)for(let d of h.ops())if(d.kind===f.ExtractedAttribute&&d.i18nContext!==null){let p=(c=n.get(d.i18nContext))!=null?c:[];p.push(d),n.set(d.i18nContext,p)}else if(d.kind===f.I18nAttributes)r.set(d.target,d);else if(d.kind===f.I18nExpression&&d.usage===Ts.I18nAttribute){let p=(u=s.get(d.target))!=null?u:[];p.push(d),s.set(d.target,p)}else d.kind===f.I18nMessage&&i.set(d.xref,d);let o=new Map,l=new Map;for(let h of t.units)for(let d of h.create)if(d.kind===f.I18nMessage){if(d.messagePlaceholder===null){let{mainVar:p,statements:g}=Im(t,e,i,d);if(d.i18nBlock!==null){let v=t.addConst(p,g);l.set(d.i18nBlock,v)}else{t.constsInitializers.push(...g),o.set(d.i18nContext,p);let v=n.get(d.i18nContext);if(v!==void 0)for(let E of v)E.expression=p.clone()}}w.remove(d)}for(let h of t.units)for(let d of h.create)if($r(d)){let p=r.get(d.xref);if(p===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 v=new Set;g=g.filter(N=>{let D=v.has(N.name);return v.add(N.name),!D});let E=g.flatMap(N=>{let D=o.get(N.context);if(D===void 0)throw new Error("AssertionError: Could not find i18n expression's value");return[S(N.name),D]});p.i18nAttributesConfig=t.addConst(new _t(E))}for(let h of t.units)for(let d of h.create)if(d.kind===f.I18nStart){let p=l.get(d.root);if(p===void 0)throw new Error("AssertionError: Could not find corresponding i18n block index for an i18n message op; was an i18n message incorrectly assumed to correspond to an attribute?");d.messageIndex=p}}function Im(t,e,n,r){var u;let s=[],i=new Map;for(let h of r.subMessages){let d=n.get(h),{mainVar:p,statements:g}=Im(t,e,n,d);s.push(...g);let v=(u=i.get(d.messagePlaceholder))!=null?u:[];v.push(p),i.set(d.messagePlaceholder,v)}GC(r,i),r.params=new Map([...r.params.entries()].sort());let o=J(t.pool.uniqueName(FC)),l=WC(t.pool,r.message.id,e,t.i18nUseExternalIds),c;if(r.needsPostprocessing||r.postprocessingParams.size>0){let h=Object.fromEntries([...r.postprocessingParams.entries()].sort()),d=Yu(h,!1),p=[];r.postprocessingParams.size>0&&p.push(uu(d,!0)),c=g=>O(m.i18nPostprocess).callFn([g,...p])}return s.push(...HC(r.message,o,l,r.params,c)),{mainVar:o,statements:s}}function GC(t,e){for(let[n,r]of e)r.length===1?t.params.set(n,r[0]):(t.params.set(n,S(`${yf}${BC}${n}${yf}`)),t.postprocessingParams.set(n,ae(r)))}function HC(t,e,n,r,s){let i=Object.fromEntries(r),o=[UC(e),Ko(qC(),_C(e,t,n,i),PC(e,t,Yu(i,!1)))];return s&&o.push(new Qe(e.set(s(e)))),o}function qC(){return yi(J(gf)).notIdentical(S("undefined",vl)).and(J(gf))}function WC(t,e,n,r){let s,i=n;if(r){let o=vf("EXTERNAL_"),l=t.uniqueName(i);s=`${o}${Qr(e)}$$${l}`}else{let o=vf(i);s=t.uniqueName(o)}return J(s)}function jC(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 h of s.create)switch(h.kind){case f.I18nStart:if(h.context===null)throw Error("I18n op should have its context set.");i=h;break;case f.I18nEnd:i=null;break;case f.IcuStart:if(h.context===null)throw Error("Icu op should have its context set.");o=h;break;case f.IcuEnd:o=null;break;case f.Text:if(i!==null)if(l.set(h.xref,i),c.set(h.xref,o),h.icuPlaceholder!==null){let d=Sx(t.allocateXrefId(),h.icuPlaceholder,[h.initialValue]);w.replace(h,d),u.set(h.xref,d)}else w.remove(h);break}for(let h of s.update)switch(h.kind){case f.InterpolateText:if(!l.has(h.target))continue;let d=l.get(h.target),p=c.get(h.target),g=u.get(h.target),v=p?p.context:d.context,E=p?ui.Postproccessing:ui.Creation,N=[];for(let D=0;D<h.interpolation.expressions.length;D++){let b=h.interpolation.expressions[D];N.push(im(v,d.xref,d.xref,d.handle,b,(e=g==null?void 0:g.xref)!=null?e:null,(n=h.interpolation.i18nPlaceholders[D])!=null?n:null,E,Ts.I18nText,"",(r=b.sourceSpan)!=null?r:h.sourceSpan))}w.replaceWithMany(h,N),g!==void 0&&(g.strings=h.interpolation.strings);break}}}function KC(t){for(let e of t.units)for(let n of e.create)switch(n.kind){case f.ElementStart:case f.ConditionalCreate:case f.ConditionalBranchCreate: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=zC(n.localRefs);n.localRefs=t.addConst(r)}else n.localRefs=null;break}}function zC(t){let e=[];for(let n of t)e.push(S(n.name),S(n.target));return ae(e)}function XC(t){for(let e of t.units){let n=nt.HTML;for(let r of e.create)r.kind===f.ElementStart&&r.namespace!==n&&(w.insertBefore(px(r.namespace),r),n=r.namespace)}}function YC(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=Dm(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 Dm(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function QC(t){let e=new Map;for(let n of t.units)for(let r of n.create)$r(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===M.Attribute&&om(r.expression)){let s=e.get(r.target);if(s!==void 0&&(s.kind===f.Template||s.kind===f.ConditionalCreate||s.kind===f.ConditionalBranchCreate)&&s.templateKind===Et.Structural)continue;if(r.name==="style"){let i=YC(r.expression.value);for(let o=0;o<i.length-1;o+=2)w.insertBefore(Yt(r.target,M.StyleProperty,null,i[o],S(i[o+1]),null,null,ue.STYLE),r);w.remove(r)}else if(r.name==="class"){let i=r.expression.value.trim().split(/\s+/g);for(let o of i)w.insertBefore(Yt(r.target,M.ClassName,null,o,null,null,null,ue.NONE),r);w.remove(r)}}}function JC(t){qi(t.root,t.componentName,{index:0})}function qi(t,e,n){t.fnName===null&&(t.fnName=t.job.pool.uniqueName(Qr(`${e}_${t.job.fnSuffix}`),!1));let r=new Map;for(let s of t.ops())switch(s.kind){case f.Property:case f.DomProperty:s.bindingKind===M.LegacyAnimation&&(s.name="@"+s.name);break;case f.Animation:if(s.handlerFnName===null){let u=s.name.replace(".","");s.handlerFnName=`${t.fnName}_${u}_cb`,s.handlerFnName=Qr(s.handlerFnName)}break;case f.AnimationListener:if(s.handlerFnName!==null)break;if(!s.hostListener&&s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let i=s.name.replace(".","");s.hostListener?s.handlerFnName=`${e}_${i}_HostBindingHandler`:s.handlerFnName=`${t.fnName}_${s.tag.replace("-","_")}_${i}_${s.targetSlot.slot}_listener`,s.handlerFnName=Qr(s.handlerFnName);break;case f.Listener:if(s.handlerFnName!==null)break;if(!s.hostListener&&s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let o="";s.isLegacyAnimationListener&&(s.name=`@${s.name}.${s.legacyAnimationPhase}`,o="animation"),s.hostListener?s.handlerFnName=`${e}_${o}${s.name}_HostBindingHandler`:s.handlerFnName=`${t.fnName}_${s.tag.replace("-","_")}_${o}${s.name}_${s.targetSlot.slot}_listener`,s.handlerFnName=Qr(s.handlerFnName);break;case f.TwoWayListener:if(s.handlerFnName!==null)break;if(s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");s.handlerFnName=Qr(`${t.fnName}_${s.tag.replace("-","_")}_${s.name}_${s.targetSlot.slot}_listener`);break;case f.Variable:r.set(s.xref,ZC(s.variable,n));break;case f.RepeaterCreate:if(!(t instanceof Qt))throw new Error("AssertionError: must be compiling a component");if(s.handle.slot===null)throw new Error("Expected slot to be assigned");if(s.emptyView!==null){let u=t.job.views.get(s.emptyView);qi(u,`${e}_${s.functionNameSuffix}Empty_${s.handle.slot+2}`,n)}qi(t.job.views.get(s.xref),`${e}_${s.functionNameSuffix}_${s.handle.slot+1}`,n);break;case f.Projection:if(!(t instanceof Qt))throw new Error("AssertionError: must be compiling a component");if(s.handle.slot===null)throw new Error("Expected slot to be assigned");if(s.fallbackView!==null){let u=t.job.views.get(s.fallbackView);qi(u,`${e}_ProjectionFallback_${s.handle.slot}`,n)}break;case f.ConditionalCreate:case f.ConditionalBranchCreate:case f.Template:if(!(t instanceof Qt))throw new Error("AssertionError: must be compiling a component");let l=t.job.views.get(s.xref);if(s.handle.slot===null)throw new Error("Expected slot to be assigned");let c=s.functionNameSuffix.length===0?"":`_${s.functionNameSuffix}`;qi(l,`${e}${c}_${s.handle.slot}`,n);break;case f.StyleProp:s.name=Sf(eA(s.name));break;case f.ClassProp:s.name=Sf(s.name);break}for(let s of t.ops())Me(s,i=>{if(!(!(i instanceof Xn)||i.name!==null)){if(!r.has(i.xref))throw new Error(`Variable ${i.xref} not yet named`);i.name=r.get(i.xref)}})}function ZC(t,e){if(t.name===null)switch(t.kind){case We.Context:t.name=`ctx_r${e.index++}`;break;case We.Identifier:let n=t.identifier===Gt?"i":"";t.name=`${t.identifier}_${n}r${++e.index}`;break;default:t.name=`_r${++e.index}`;break}return t.name}function eA(t){return t.startsWith("--")?t:Dm(t)}function Sf(t){let e=t.indexOf("!important");return e>-1?t.substring(0,e):t}function tA(t){for(let e of t.units){for(let n of e.functions)ac(n.ops);for(let n of e.create)(n.kind===f.Listener||n.kind===f.Animation||n.kind===f.AnimationListener||n.kind===f.TwoWayListener)&&ac(n.handlerOps);ac(e.update)}}function ac(t){for(let e of t){if(e.kind!==f.Statement||!(e.statement instanceof Qe)||!(e.statement.expr instanceof qa))continue;let n=e.statement.expr.steps,r=!0;for(let s=e.next;s.kind!==f.ListEnd&&r;s=s.next)Me(s,(i,o)=>{if(!$n(i))return i;if(r&&!(o&Q.InChildOperation))switch(i.kind){case F.NextContext:i.steps+=n,w.remove(e),r=!1;break;case F.GetCurrentView:case F.Reference:case F.ContextLetReference:r=!1;break}})}}var nA="ng-container";function rA(t){for(let e of t.units){let n=new Set;for(let r of e.create)r.kind===f.ElementStart&&r.tag===nA&&(r.kind=f.ContainerStart,n.add(r.xref)),r.kind===f.ElementEnd&&n.has(r.xref)&&(r.kind=f.ContainerEnd)}}function sA(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 iA(t){let e=new Map;for(let n of t.units)for(let r of n.create)$r(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&&w.insertAfter(ox(r.xref),r),(r.kind===f.ElementEnd||r.kind===f.ContainerEnd)&&sA(e,r.xref).nonBindable&&w.insertBefore(ax(r.xref),r)}function Nn(t){return e=>e.kind===t}function zi(t,e){return n=>n.kind===t&&e===n.expression instanceof Ae}function oA(t){return t.kind===f.Listener&&!(t.hostListener&&t.isLegacyAnimationListener)||t.kind===f.TwoWayListener||t.kind===f.Animation||t.kind===f.AnimationListener}function aA(t){return(t.kind===f.Property||t.kind===f.TwoWayProperty)&&!(t.expression instanceof Ae)}var lA=[{test:t=>t.kind===f.Listener&&t.hostListener&&t.isLegacyAnimationListener},{test:oA}],cA=[{test:Nn(f.StyleMap),transform:ll},{test:Nn(f.ClassMap),transform:ll},{test:Nn(f.StyleProp)},{test:Nn(f.ClassProp)},{test:zi(f.Attribute,!0)},{test:zi(f.Property,!0)},{test:aA},{test:zi(f.Attribute,!1)},{test:Nn(f.Control)}],uA=[{test:zi(f.DomProperty,!0)},{test:zi(f.DomProperty,!1)},{test:Nn(f.Attribute)},{test:Nn(f.StyleMap),transform:ll},{test:Nn(f.ClassMap),transform:ll},{test:Nn(f.StyleProp)},{test:Nn(f.ClassProp)}],Ef=new Set([f.Listener,f.TwoWayListener,f.AnimationListener,f.StyleMap,f.ClassMap,f.StyleProp,f.ClassProp,f.Property,f.TwoWayProperty,f.DomProperty,f.Attribute,f.Animation,f.Control]);function pA(t){for(let e of t.units){Tf(e.create,lA);let n=e.job.kind===_.Host?uA:cA;Tf(e.update,n)}}function Tf(t,e){let n=[],r=null;for(let s of t){let i=_o(s)?s.target:null;(!Ef.has(s.kind)||i!==r&&r!==null&&i!==null)&&(w.insertBefore(xf(n,e),s),n=[],r=null),Ef.has(s.kind)&&(n.push(s),w.remove(s),r=i!=null?i:r)}t.push(xf(n,e))}function xf(t,e){let n=Array.from(e,()=>new Array);for(let r of t){let s=e.findIndex(i=>i.test(r));n[s].push(r)}return n.flatMap((r,s)=>{let i=e[s].transform;return i?i(r):r})}function ll(t){return t.slice(t.length-1)}function hA(t){for(let e of t.units){let n=mm(e);for(let r of e.ops())if(r.kind===f.Binding){let s=dA(n,r.target);fA(r.name)&&s.kind===f.Projection&&w.remove(r)}}}function fA(t){return t.toLowerCase()==="select"}function dA(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an slottable target.");return n}function mA(t){for(let e of t.units)gA(e)}function gA(t){for(let e of t.update)Me(e,(n,r)=>{if(!$n(n)||n.kind!==F.PipeBinding)return;if(r&Q.InChildOperation)throw new Error("AssertionError: pipe bindings should not appear in child expressions");if(e.target==null)throw new Error("AssertionError: expected slot handle to be assigned for pipe creation");yA(t,e.target,n)})}function yA(t,e,n){for(let r=t.create.head.next;r.kind!==f.ListEnd;r=r.next){if(!Ti(r)||r.xref!==e)continue;for(;r.next.kind===f.Pipe;)r=r.next;let s=ux(n.target,n.targetSlot,n.name);w.insertBefore(s,r.next);return}throw new Error(`AssertionError: unable to find insertion point for pipe ${n.name}`)}function vA(t){for(let e of t.units)for(let n of e.update)Ne(n,r=>!(r instanceof Cs)||r.args.length<=4?r:new Lo(r.target,r.targetSlot,r.name,ae(r.args),r.args.length),Q.None)}function SA(t){bm(t.root,0)}function bm(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.ConditionalCreate:case f.ConditionalBranchCreate:case f.Template:e=da(t.job.views.get(r.xref),n,r.i18nPlaceholder,e);break;case f.RepeaterCreate:let s=t.job.views.get(r.xref);e=da(s,n,r.i18nPlaceholder,e),r.emptyView!==null&&(e=da(t.job.views.get(r.emptyView),n,r.emptyI18nPlaceholder,e));break;case f.Projection:r.fallbackView!==null&&(e=da(t.job.views.get(r.fallbackView),n,r.fallbackViewI18nPlaceholder,e));break}return e}function da(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++,EA(t,e)}return bm(t,r)}function EA(t,e){var n;if(((n=t.create.head.next)==null?void 0:n.kind)!==f.I18nStart){let r=t.job.allocateXrefId();w.insertAfter(xl(r,e.message,e.root,null),t.create.head),w.insertBefore(wl(r,null),t.create.tail)}}function TA(t){for(let e of t.units)for(let n of e.ops())Me(n,r=>{if(!(r instanceof ws)||r.body===null)return;let s=new bu(r.args.length);r.fn=t.pool.getSharedConstant(s,r.body),r.body=null})}var bu=class extends lo{constructor(n){super();a(this,"numArgs");this.numArgs=n}keyOf(n){return n instanceof Fr?`param(${n.index})`:super.keyOf(n)}toSharedConstantDeclaration(n,r){let s=[];for(let o=0;o<this.numArgs;o++)s.push(new Oe("a"+o));let i=k(r,o=>o instanceof Fr?J("a"+o.index):o,Q.None);return new Ve(n,new Vn(s,i),void 0,Ue.Final)}};function xA(t){for(let e of t.units)for(let n of e.update)Ne(n,(r,s)=>s&Q.InChildOperation?r:r instanceof _t?wA(r):r instanceof nn?CA(r):r,Q.None)}function wA(t){let e=[],n=[];for(let r of t.entries){if(r instanceof Tr){if(r.expression.isConstant())e.push(r);else{let s=n.length;n.push(r.expression),e.push(new Tr(new Fr(s)))}continue}if(r.isConstant())e.push(r);else{let s=n.length;n.push(r),e.push(new Fr(s))}}return new ws(ae(e),n)}function CA(t){let e=[],n=[];for(let r of t.entries){if(r instanceof gn){if(r.expression.isConstant())e.push(r);else{let s=n.length;n.push(r.expression),e.push(new gn(new Fr(s)))}continue}if(r.value.isConstant())e.push(r);else{let s=n.length;n.push(r.value),e.push(new Er(r.key,new Fr(s),r.quoted))}}return new ws(new nn(e),n)}function AA(t){for(let e of t.units)for(let n of e.ops())Ne(n,r=>r instanceof cs&&(r.flags===null||!r.flags.includes("g"))?t.pool.getSharedConstant(new _u,r):r,Q.None)}var _u=class extends lo{toSharedConstantDeclaration(e,n){return new Ve(e,n,void 0,Ue.Final)}};function NA(t,e,n,r,s){return qr(m.element,t,e,n,r,s)}function IA(t,e,n,r,s){return qr(m.elementStart,t,e,n,r,s)}function qr(t,e,n,r,s,i){let o=[S(e)];return n!==null&&o.push(S(n)),s!==null?o.push(S(r),S(s)):r!==null&&o.push(S(r)),z(t,o,i)}function _m(t,e,n,r,s,i,o,l,c){let u=[S(e),n,S(r),S(s),S(i),S(o)];for(l!==null&&(u.push(S(l)),u.push(O(m.templateRefExtractor)));u[u.length-1].isEquivalent(us);)u.pop();return z(t,u,c)}function op(t,e,n,r,s){let i=[S(e)];return n instanceof Ae?i.push(xi(n,s)):i.push(n),r!==null&&i.push(r),z(t,i,s)}function DA(t){return z(m.elementEnd,[],t)}function bA(t,e,n,r){return qr(m.elementContainerStart,t,null,e,n,r)}function _A(t,e,n,r){return qr(m.elementContainer,t,null,e,n,r)}function kA(){return z(m.elementContainerEnd,[],null)}function RA(t,e,n,r,s,i,o,l){return _m(m.templateCreate,t,e,n,r,s,i,o,l)}function PA(){return z(m.disableBindings,[],null)}function LA(){return z(m.enableBindings,[],null)}function MA(t,e,n,r,s){let i=[S(t),e];return n!==null&&i.push(O(n)),z(r?m.syntheticHostListener:m.listener,i,s)}function wf(t,e){return O(m.twoWayBindingSet).callFn([t,e])}function OA(t,e,n){return z(m.twoWayListener,[S(t),e],n)}function FA(t,e){return z(m.pipe,[S(t),S(e)],null)}function BA(){return z(m.namespaceHTML,[],null)}function $A(){return z(m.namespaceSVG,[],null)}function UA(){return z(m.namespaceMathML,[],null)}function VA(t,e){return z(m.advance,t>1?[S(t)]:[],e)}function GA(t){return O(m.reference).callFn([S(t)])}function HA(t){return O(m.nextContext).callFn(t===1?[]:[S(t)])}function qA(){return O(m.getCurrentView).callFn([])}function WA(t){return O(m.restoreView).callFn([t])}function jA(t){return O(m.resetView).callFn([t])}function KA(t,e,n){let r=[S(t,null)];return e!==""&&r.push(S(e)),z(m.text,r,n)}function zA(t,e,n,r,s,i,o,l,c,u,h){let d=[S(t),S(e),n!=null?n:S(null),S(r),S(s),S(i),o!=null?o:S(null),l!=null?l:S(null),c?O(m.deferEnableTimerScheduling):S(null),S(h)],p;for(;(p=d[d.length-1])!==null&&p instanceof _e&&p.value===null;)d.pop();return z(m.defer,d,u)}var XA=new Map([[ce.Idle,{none:m.deferOnIdle,prefetch:m.deferPrefetchOnIdle,hydrate:m.deferHydrateOnIdle}],[ce.Immediate,{none:m.deferOnImmediate,prefetch:m.deferPrefetchOnImmediate,hydrate:m.deferHydrateOnImmediate}],[ce.Timer,{none:m.deferOnTimer,prefetch:m.deferPrefetchOnTimer,hydrate:m.deferHydrateOnTimer}],[ce.Hover,{none:m.deferOnHover,prefetch:m.deferPrefetchOnHover,hydrate:m.deferHydrateOnHover}],[ce.Interaction,{none:m.deferOnInteraction,prefetch:m.deferPrefetchOnInteraction,hydrate:m.deferHydrateOnInteraction}],[ce.Viewport,{none:m.deferOnViewport,prefetch:m.deferPrefetchOnViewport,hydrate:m.deferHydrateOnViewport}],[ce.Never,{none:m.deferHydrateNever,prefetch:m.deferHydrateNever,hydrate:m.deferHydrateNever}]]);function YA(t,e,n,r){var i;let s=(i=XA.get(t))==null?void 0:i[n];if(s===void 0)throw new Error(`Unable to determine instruction for trigger ${t}`);return z(s,e,r)}function QA(t){return z(m.projectionDef,t?[t]:[],null)}function JA(t,e,n,r,s,i,o){let l=[S(t)];return(e!==0||n!==null||r!==null)&&(l.push(S(e)),n!==null&&l.push(n),r!==null&&(n===null&&l.push(S(null)),l.push(J(r),S(s),S(i)))),z(m.projection,l,o)}function ZA(t,e,n,r){let s=[S(t),S(e)];return n!==null&&s.push(S(n)),z(m.i18nStart,s,r)}function eN(t,e,n,r,s,i,o,l){let c=[S(t),e,S(n),S(r),S(s),S(i)];for(o!==null&&(c.push(S(o)),c.push(O(m.templateRefExtractor)));c[c.length-1].isEquivalent(us);)c.pop();return z(m.conditionalCreate,c,l)}function tN(t,e,n,r,s,i,o,l){let c=[S(t),e,S(n),S(r),S(s),S(i)];for(o!==null&&(c.push(S(o)),c.push(O(m.templateRefExtractor)));c[c.length-1].isEquivalent(us);)c.pop();return z(m.conditionalBranchCreate,c,l)}function nN(t,e,n,r,s,i,o,l,c,u,h,d,p,g){let v=[S(t),J(e),S(n),S(r),S(s),S(i),o];return(l||c!==null)&&(v.push(S(l)),c!==null&&(v.push(J(c),S(u),S(h)),(d!==null||p!==null)&&v.push(S(d)),p!==null&&v.push(S(p)))),z(m.repeaterCreate,v,g)}function rN(t,e){return z(m.repeater,[t],e)}function sN(t,e,n){return t==="prefetch"?z(m.deferPrefetchWhen,[e],n):t==="hydrate"?z(m.deferHydrateWhen,[e],n):z(m.deferWhen,[e],n)}function iN(t,e){return z(m.declareLet,[S(t)],e)}function oN(t,e){return O(m.storeLet).callFn([t],e)}function aN(t){return O(m.readContextLet).callFn([S(t)])}function lN(t,e,n,r){let s=[S(t),S(e)];return n&&s.push(S(n)),z(m.i18n,s,r)}function cN(t){return z(m.i18nEnd,[],t)}function uN(t,e){let n=[S(t),S(e)];return z(m.i18nAttributes,n,null)}function pN(t,e,n){return op(m.ariaProperty,t,e,null,n)}function hN(t,e,n,r){return op(m.property,t,e,n,r)}function fN(t){return z(m.control,[],t)}function dN(t){return z(m.controlCreate,[],t)}function mN(t,e,n,r){let s=[S(t),e];return n!==null&&s.push(n),z(m.twoWayProperty,s,r)}function gN(t,e,n,r,s){let i=[S(t)];return e instanceof Ae?i.push(xi(e,s)):i.push(e),(n!==null||r!==null)&&i.push(n!=null?n:S(null)),r!==null&&i.push(S(r)),z(m.attribute,i,null)}function yN(t,e,n,r){let s=[S(t)];return e instanceof Ae?s.push(xi(e,r)):s.push(e),n!==null&&s.push(S(n)),z(m.styleProp,s,r)}function vN(t,e,n){return z(m.classProp,[S(t),e],n)}function SN(t,e){let n=t instanceof Ae?xi(t,e):t;return z(m.styleMap,[n],e)}function EN(t,e){let n=t instanceof Ae?xi(t,e):t;return z(m.classMap,[n],e)}function TN(t,e,n,r,s){return qr(m.domElement,t,e,n,r,s)}function xN(t,e,n,r,s){return qr(m.domElementStart,t,e,n,r,s)}function wN(t){return z(m.domElementEnd,[],t)}function CN(t,e,n,r){return qr(m.domElementContainerStart,t,null,e,n,r)}function AN(t,e,n,r){return qr(m.domElementContainer,t,null,e,n,r)}function NN(){return z(m.domElementContainerEnd,[],null)}function IN(t,e,n,r){let s=[S(t),e];return n!==null&&s.push(O(n)),z(m.domListener,s,r)}function DN(t,e,n,r,s,i,o,l){return _m(m.domTemplate,t,e,n,r,s,i,o,l)}var Cf=[m.pipeBind1,m.pipeBind2,m.pipeBind3,m.pipeBind4];function bN(t,e,n){if(n.length<1||n.length>Cf.length)throw new Error("pipeBind() argument count out of bounds");let r=Cf[n.length-1];return O(r).callFn([S(t),S(e),...n])}function _N(t,e,n){return O(m.pipeBindV).callFn([S(t),S(e),n])}function kN(t,e,n){let r=km(t,e);return jN(HN,[],r,n)}function RN(t,e){return z(m.i18nExp,[t],e)}function PN(t,e){return z(m.i18nApply,[S(t)],e)}function LN(t,e,n,r){return op(m.domProperty,t,e,n,r)}function MN(t,e,n,r){let s=[e];n!==null&&s.push(n);let i=t==="enter"?m.animationEnter:m.animationLeave;return z(i,s,r)}function ON(t,e,n,r){let i=[e instanceof Ae?xi(e,r):e];n!==null&&i.push(n);let o=t==="enter"?m.animationEnter:m.animationLeave;return z(o,i,r)}function FN(t,e,n,r){let s=[e],i=t==="enter"?m.animationEnterListener:m.animationLeaveListener;return z(i,s,r)}function BN(t,e,n){return z(m.syntheticHostProperty,[S(t),e],n)}function $N(t,e,n){return ap(WN,[S(t),e],n,null)}function UN(t,e){return z(m.attachSourceLocations,[S(t),e],null)}function VN(t,e,n){return O(m.arrowFunction).callFn([S(t),e,n])}function km(t,e){if(t.length<1||e.length!==t.length-1)throw new Error("AssertionError: expected specific shape of args for strings/expressions in interpolation");let n=[];if(e.length===1&&t[0]===""&&t[1]==="")n.push(e[0]);else{let r;for(r=0;r<e.length;r++)n.push(S(t[r]),e[r]);n.push(S(t[r]))}return n}function xi(t,e){let n=km(t.strings,t.expressions);return ap(qN,[],n,e)}function z(t,e,n){let r=O(t).callFn(e,n);return Ht(new Qe(r,n))}function GN(t,e,n){let r=[t];return e!==null&&r.push(e),z(m.conditional,r,n)}var HN={constant:[m.textInterpolate,m.textInterpolate1,m.textInterpolate2,m.textInterpolate3,m.textInterpolate4,m.textInterpolate5,m.textInterpolate6,m.textInterpolate7,m.textInterpolate8],variable:m.textInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},qN={constant:[m.interpolate,m.interpolate1,m.interpolate2,m.interpolate3,m.interpolate4,m.interpolate5,m.interpolate6,m.interpolate7,m.interpolate8],variable:m.interpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},WN={constant:[m.pureFunction0,m.pureFunction1,m.pureFunction2,m.pureFunction3,m.pureFunction4,m.pureFunction5,m.pureFunction6,m.pureFunction7,m.pureFunction8],variable:m.pureFunctionV,mapping:t=>t};function ap(t,e,n,r){let s=t.mapping(n.length),i=n.at(-1);if(n.length>1&&i instanceof _e&&i.value===""&&n.pop(),s<t.constant.length)return O(t.constant[s]).callFn([...e,...n],r);if(t.variable!==null)return O(t.variable).callFn([...e,ae(n)],r);throw new Error("AssertionError: unable to call variadic function")}function jN(t,e,n,r){return Ht(ap(t,e,n,r).toStmt())}var KN=new Map([["window",m.resolveWindow],["document",m.resolveDocument],["body",m.resolveBody]]),zN=new Map([["class","className"],["for","htmlFor"],["formaction","formAction"],["innerHtml","innerHTML"],["readonly","readOnly"],["tabindex","tabIndex"]]);function XN(t){for(let e of t.units)YN(e,e.create),Cl(e,e.update)}function YN(t,e){var n,r,s,i,o,l,c,u,h,d;for(let p of e)switch(Ne(p,g=>Rm(t,g),Q.None),p.kind){case f.Text:w.replace(p,KA(p.handle.slot,p.initialValue,p.sourceSpan));break;case f.ElementStart:w.replace(p,t.job.mode===ft.DomOnly?xN(p.handle.slot,p.tag,p.attributes,p.localRefs,p.startSourceSpan):IA(p.handle.slot,p.tag,p.attributes,p.localRefs,p.startSourceSpan));break;case f.Element:w.replace(p,t.job.mode===ft.DomOnly?TN(p.handle.slot,p.tag,p.attributes,p.localRefs,p.wholeSourceSpan):NA(p.handle.slot,p.tag,p.attributes,p.localRefs,p.wholeSourceSpan));break;case f.ElementEnd:w.replace(p,t.job.mode===ft.DomOnly?wN(p.sourceSpan):DA(p.sourceSpan));break;case f.ContainerStart:w.replace(p,t.job.mode===ft.DomOnly?CN(p.handle.slot,p.attributes,p.localRefs,p.startSourceSpan):bA(p.handle.slot,p.attributes,p.localRefs,p.startSourceSpan));break;case f.Container:w.replace(p,t.job.mode===ft.DomOnly?AN(p.handle.slot,p.attributes,p.localRefs,p.wholeSourceSpan):_A(p.handle.slot,p.attributes,p.localRefs,p.wholeSourceSpan));break;case f.ContainerEnd:w.replace(p,t.job.mode===ft.DomOnly?NN():kA());break;case f.I18nStart:w.replace(p,ZA(p.handle.slot,p.messageIndex,p.subTemplateIndex,p.sourceSpan));break;case f.I18nEnd:w.replace(p,cN(p.sourceSpan));break;case f.I18n:w.replace(p,lN(p.handle.slot,p.messageIndex,p.subTemplateIndex,p.sourceSpan));break;case f.I18nAttributes:if(p.i18nAttributesConfig===null)throw new Error("AssertionError: i18nAttributesConfig was not set");w.replace(p,uN(p.handle.slot,p.i18nAttributesConfig));break;case f.Template:if(!(t instanceof Qt))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(p.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let g=t.job.views.get(p.xref);w.replace(p,p.templateKind===Et.Block||t.job.mode===ft.DomOnly?DN(p.handle.slot,J(g.fnName),g.decls,g.vars,p.tag,p.attributes,p.localRefs,p.startSourceSpan):RA(p.handle.slot,J(g.fnName),g.decls,g.vars,p.tag,p.attributes,p.localRefs,p.startSourceSpan));break;case f.DisableBindings:w.replace(p,PA());break;case f.EnableBindings:w.replace(p,LA());break;case f.Pipe:w.replace(p,FA(p.handle.slot,p.name));break;case f.DeclareLet:w.replace(p,iN(p.handle.slot,p.sourceSpan));break;case f.AnimationString:w.replace(p,ON(p.animationKind,p.expression,p.sanitizer,p.sourceSpan));break;case f.Animation:let v=ma(t,p.handlerFnName,p.handlerOps,!1);w.replace(p,MN(p.animationKind,v,p.sanitizer,p.sourceSpan));break;case f.AnimationListener:let E=ma(t,p.handlerFnName,p.handlerOps,p.consumesDollarEvent);w.replace(p,FN(p.animationKind,E,null,p.sourceSpan));break;case f.Listener:let N=ma(t,p.handlerFnName,p.handlerOps,p.consumesDollarEvent),D=p.eventTarget?KN.get(p.eventTarget):null;if(D===void 0)throw new Error(`Unexpected global target '${p.eventTarget}' defined for '${p.name}' event. Supported list of global targets: window,document,body.`);w.replace(p,t.job.mode===ft.DomOnly&&!p.hostListener&&!p.isLegacyAnimationListener?IN(p.name,N,D,p.sourceSpan):MA(p.name,N,D,p.hostListener&&p.isLegacyAnimationListener,p.sourceSpan));break;case f.TwoWayListener:w.replace(p,OA(p.name,ma(t,p.handlerFnName,p.handlerOps,!0),p.sourceSpan));break;case f.Variable:if(p.variable.name===null)throw new Error(`AssertionError: unnamed variable ${p.xref}`);w.replace(p,Ht(new Ve(p.variable.name,p.initializer,void 0,Ue.Final)));break;case f.Namespace:switch(p.active){case nt.HTML:w.replace(p,BA());break;case nt.SVG:w.replace(p,$A());break;case nt.Math:w.replace(p,UA());break}break;case f.Defer:let b=!!p.loadingMinimumTime||!!p.loadingAfterTime||!!p.placeholderMinimumTime;w.replace(p,zA(p.handle.slot,p.mainSlot.slot,p.resolverFn,(r=(n=p.loadingSlot)==null?void 0:n.slot)!=null?r:null,(i=(s=p.placeholderSlot)==null?void 0:s.slot)!=null?i:null,(l=(o=p.errorSlot)==null?void 0:o.slot)!=null?l:null,p.loadingConfig,p.placeholderConfig,b,p.sourceSpan,p.flags));break;case f.DeferOn:let P=[];switch(p.trigger.kind){case ce.Never:case ce.Idle:case ce.Immediate:break;case ce.Timer:P=[S(p.trigger.delay)];break;case ce.Viewport:p.modifier==="hydrate"?P=p.trigger.options?[p.trigger.options]:[]:(P=[S((u=(c=p.trigger.targetSlot)==null?void 0:c.slot)!=null?u:null)],p.trigger.targetSlotViewSteps!==0?P.push(S(p.trigger.targetSlotViewSteps)):p.trigger.options&&P.push(S(null)),p.trigger.options&&P.push(p.trigger.options));break;case ce.Interaction:case ce.Hover:p.modifier==="hydrate"?P=[]:(P=[S((d=(h=p.trigger.targetSlot)==null?void 0:h.slot)!=null?d:null)],p.trigger.targetSlotViewSteps!==0&&P.push(S(p.trigger.targetSlotViewSteps)));break;default:throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${p.trigger.kind}`)}w.replace(p,YA(p.trigger.kind,P,p.modifier,p.sourceSpan));break;case f.ProjectionDef:w.replace(p,QA(p.def));break;case f.Projection:if(p.handle.slot===null)throw new Error("No slot was assigned for project instruction");let L=null,ne=null,se=null;if(p.fallbackView!==null){if(!(t instanceof Qt))throw new Error("AssertionError: must be compiling a component");let Pe=t.job.views.get(p.fallbackView);if(Pe===void 0)throw new Error("AssertionError: projection had fallback view xref, but fallback view was not found");if(Pe.fnName===null||Pe.decls===null||Pe.vars===null)throw new Error("AssertionError: expected projection fallback view to have been named and counted");L=Pe.fnName,ne=Pe.decls,se=Pe.vars}w.replace(p,JA(p.handle.slot,p.projectionSlotIndex,p.attributes,L,ne,se,p.sourceSpan));break;case f.ConditionalCreate:if(!(t instanceof Qt))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(p.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let Ge=t.job.views.get(p.xref);w.replace(p,eN(p.handle.slot,J(Ge.fnName),Ge.decls,Ge.vars,p.tag,p.attributes,p.localRefs,p.startSourceSpan));break;case f.ConditionalBranchCreate:if(!(t instanceof Qt))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(p.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let Ie=t.job.views.get(p.xref);w.replace(p,tN(p.handle.slot,J(Ie.fnName),Ie.decls,Ie.vars,p.tag,p.attributes,p.localRefs,p.startSourceSpan));break;case f.RepeaterCreate:if(p.handle.slot===null)throw new Error("No slot was assigned for repeater instruction");if(!(t instanceof Qt))throw new Error("AssertionError: must be compiling a component");let It=t.job.views.get(p.xref);if(It.fnName===null)throw new Error("AssertionError: expected repeater primary view to have been named");let zr=null,sr=null,ir=null;if(p.emptyView!==null){let Pe=t.job.views.get(p.emptyView);if(Pe===void 0)throw new Error("AssertionError: repeater had empty view xref, but empty view was not found");if(Pe.fnName===null||Pe.decls===null||Pe.vars===null)throw new Error("AssertionError: expected repeater empty view to have been named and counted");zr=Pe.fnName,sr=Pe.decls,ir=Pe.vars}w.replace(p,nN(p.handle.slot,It.fnName,p.decls,p.vars,p.tag,p.attributes,ZN(t,p),p.usesComponentInstance,zr,sr,ir,p.emptyTag,p.emptyAttributes,p.wholeSourceSpan));break;case f.SourceLocation:let la=ae(p.locations.map(({targetSlot:Pe,offset:ca,line:bi,column:DS})=>{if(Pe.slot===null)throw new Error("No slot was assigned for source location");return ae([S(Pe.slot),S(ca),S(bi),S(DS)])}));w.replace(p,UN(p.templatePath,la));break;case f.ControlCreate:w.replace(p,dN(p.sourceSpan));break;case f.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${f[p.kind]}`)}}function Cl(t,e){for(let n of e)switch(Ne(n,r=>Rm(t,r),Q.None),n.kind){case f.Advance:w.replace(n,VA(n.delta,n.sourceSpan));break;case f.Property:w.replace(n,t.job.mode===ft.DomOnly&&n.bindingKind!==M.LegacyAnimation&&n.bindingKind!==M.Animation?Af(n):QN(n));break;case f.Control:w.replace(n,JN(n));break;case f.TwoWayProperty:w.replace(n,mN(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case f.StyleProp:w.replace(n,yN(n.name,n.expression,n.unit,n.sourceSpan));break;case f.ClassProp:w.replace(n,vN(n.name,n.expression,n.sourceSpan));break;case f.StyleMap:w.replace(n,SN(n.expression,n.sourceSpan));break;case f.ClassMap:w.replace(n,EN(n.expression,n.sourceSpan));break;case f.I18nExpression:w.replace(n,RN(n.expression,n.sourceSpan));break;case f.I18nApply:w.replace(n,PN(n.handle.slot,n.sourceSpan));break;case f.InterpolateText:w.replace(n,kN(n.interpolation.strings,n.interpolation.expressions,n.sourceSpan));break;case f.Attribute:w.replace(n,gN(n.name,n.expression,n.sanitizer,n.namespace,n.sourceSpan));break;case f.DomProperty:if(n.expression instanceof Ae)throw new Error("not yet handled");n.bindingKind===M.LegacyAnimation||n.bindingKind===M.Animation?w.replace(n,BN(n.name,n.expression,n.sourceSpan)):w.replace(n,Af(n));break;case f.Variable:if(n.variable.name===null)throw new Error(`AssertionError: unnamed variable ${n.xref}`);w.replace(n,Ht(new Ve(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.");w.replace(n,GN(n.processed,n.contextValue,n.sourceSpan));break;case f.Repeater:w.replace(n,rN(n.collection,n.sourceSpan));break;case f.DeferWhen:w.replace(n,sN(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 Af(t){var e;return LN((e=zN.get(t.name))!=null?e:t.name,t.expression,t.sanitizer,t.sourceSpan)}function QN(t){return gm(t.name)?pN(t.name,t.expression,t.sourceSpan):hN(t.name,t.expression,t.sanitizer,t.sourceSpan)}function JN(t){return fN(t.sourceSpan)}function Rm(t,e){if(!$n(e))return e;switch(e.kind){case F.NextContext:return HA(e.steps);case F.Reference:return GA(e.targetSlot.slot+1+e.offset);case F.LexicalRead:throw new Error(`AssertionError: unresolved LexicalRead of ${e.name}`);case F.TwoWayBindingSet:throw new Error("AssertionError: unresolved TwoWayBindingSet");case F.RestoreView:if(typeof e.view=="number")throw new Error("AssertionError: unresolved RestoreView");return WA(e.view);case F.ResetView:return jA(e.expr);case F.GetCurrentView:return qA();case F.ReadVariable:if(e.name===null)throw new Error(`Read of unnamed variable ${e.xref}`);return J(e.name);case F.ReadTemporaryExpr:if(e.name===null)throw new Error(`Read of unnamed temporary ${e.xref}`);return J(e.name);case F.AssignTemporaryExpr:if(e.name===null)throw new Error(`Assign of unnamed temporary ${e.xref}`);return J(e.name).set(e.expr);case F.PureFunctionExpr:if(e.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");return $N(e.varOffset,e.fn,e.args);case F.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case F.PipeBinding:return bN(e.targetSlot.slot,e.varOffset,e.args);case F.PipeBindingVariadic:return _N(e.targetSlot.slot,e.varOffset,e.args);case F.SlotLiteralExpr:return S(e.slot.slot);case F.ContextLetReference:return aN(e.targetSlot.slot);case F.StoreLet:return oN(e.value,e.sourceSpan);case F.TrackContext:return J("this");case F.ArrowFunction:if(e.varOffset===null)throw new Error("AssertionError: variable offset was not assigned to arrow function");return VN(e.varOffset,t.job.pool.getSharedFunctionReference(eI(t,e),"arrowFn"),J(Gt));default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${F[e.kind]}`)}}function ma(t,e,n,r){Cl(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 Oe("$event")),Qn(i,s,void 0,void 0,e)}function ZN(t,e){if(e.trackByFn!==null)return e.trackByFn;let n=[new Oe("$index"),new Oe("$item")],r;if(e.trackByOps===null)r=e.usesComponentInstance?Qn(n,[new be(e.track)]):kt(n,e.track);else{Cl(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 be)?Qn(n,s):kt(n,s[0].value)}return e.trackByFn=t.job.pool.getSharedFunctionReference(r,"_forTrack"),e.trackByFn}function eI(t,e){Cl(t,e.ops);let n=[];for(let s of e.ops){if(s.kind!==f.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${f[s.kind]}`);n.push(s.statement)}let r=n.length===1&&n[0]instanceof be?n[0].value:n;return kt([new Oe(e.contextName),new Oe(e.currentViewName)],kt(e.parameters,r))}function tI(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&&w.remove(n);break}}function nI(t){for(let e of t.units)for(let n of e.create)switch(n.kind){case f.I18nContext:w.remove(n);break;case f.I18nStart:n.context=null;break}}function rI(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 ko))continue;let r=n.variable.identifier,s=n;for(;s&&s.kind!==f.ListEnd;)Ne(s,i=>i instanceof ze&&i.name===r?S(void 0):i,Q.None),s=s.prev}}function sI(t){for(let e of t.units){let n=new Set;for(let r of e.update)r.kind===f.I18nExpression&&n.add(r.i18nOwner);for(let r of e.create)switch(r.kind){case f.I18nAttributes:if(n.has(r.xref))continue;w.remove(r)}}}function iI(t){for(let e of t.units){for(let n of e.functions)Xi(e,n.ops);Xi(e,e.create),Xi(e,e.update)}}function Xi(t,e){let n=new Map;n.set(t.xref,J(Gt));for(let r of e)switch(r.kind){case f.Variable:r.variable.kind===We.Context&&n.set(r.variable.view,new Xn(r.xref));break;case f.Animation:case f.AnimationListener:case f.Listener:case f.TwoWayListener:Xi(t,r.handlerOps);break;case f.RepeaterCreate:r.trackByOps!==null&&Xi(t,r.trackByOps);break}t===t.job.root&&n.set(t.xref,J(Gt));for(let r of e)Ne(r,s=>{if(s instanceof Or){if(!n.has(s.view))throw new Error(`No context found for reference to view ${s.view} from view ${t.xref}`);return n.get(s.view)}else return s},Q.None)}function oI(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 aI(t){for(let e of t.units)Nf(e.create),Nf(e.update)}function Nf(t){for(let e of t)(e.kind===f.Listener||e.kind===f.TwoWayListener||e.kind===f.AnimationListener)&&Ne(e,n=>n instanceof ze&&n.name==="$event"?((e.kind===f.Listener||e.kind===f.AnimationListener)&&(e.consumesDollarEvent=!0),new en(n.name)):n,Q.InChildOperation)}function lI(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}wn(t,t.root,e,n)}function wn(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");If(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");Df(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");If(l,i.i18nContext,i.i18nBlock,s),Df(l,i.i18nContext,i.i18nBlock,s),s=void 0}if(l.fallbackView!==null){let p=t.views.get(l.fallbackView);if(l.fallbackViewI18nPlaceholder===void 0)wn(t,p,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");ga(t,p,l.handle.slot,l.fallbackViewI18nPlaceholder,i.i18nContext,i.i18nBlock,s),wn(t,p,n,r),ya(t,p,l.handle.slot,l.fallbackViewI18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}}break;case f.ConditionalCreate:case f.ConditionalBranchCreate:case f.Template:let u=t.views.get(l.xref);if(l.i18nPlaceholder===void 0)wn(t,u,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");l.templateKind===Et.Structural?wn(t,u,n,r,l):(ga(t,u,l.handle.slot,l.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),wn(t,u,n,r),ya(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 h=l.handle.slot+1,d=t.views.get(l.xref);if(l.i18nPlaceholder===void 0)wn(t,d,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");ga(t,d,h,l.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),wn(t,d,n,r),ya(t,d,h,l.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}if(l.emptyView!==null){let p=l.handle.slot+2,g=t.views.get(l.emptyView);if(l.emptyI18nPlaceholder===void 0)wn(t,g,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");ga(t,g,p,l.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),wn(t,g,n,r),ya(t,g,p,l.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}}break}}function If(t,e,n,r){let{startName:s,closeName:i}=t.i18nPlaceholder,o=he.ElementTag|he.OpenTag,l=t.handle.slot;r!==void 0&&(o|=he.TemplateTag,l={element:l,template:r.handle.slot}),i||(o|=he.CloseTag),mi(e.params,s,l,n.subTemplateIndex,o)}function Df(t,e,n,r){let{closeName:s}=t.i18nPlaceholder;if(s){let i=he.ElementTag|he.CloseTag,o=t.handle.slot;r!==void 0&&(i|=he.TemplateTag,o={element:o,template:r.handle.slot}),mi(e.params,s,o,n.subTemplateIndex,i)}}function ga(t,e,n,r,s,i,o){let{startName:l,closeName:c}=r,u=he.TemplateTag|he.OpenTag;c||(u|=he.CloseTag),o!==void 0&&mi(s.params,l,o.handle.slot,i.subTemplateIndex,u),mi(s.params,l,n,Pm(t,i,e),u)}function ya(t,e,n,r,s,i,o){let{closeName:l}=r,c=he.TemplateTag|he.CloseTag;l&&(mi(s.params,l,n,Pm(t,i,e),c),o!==void 0&&mi(s.params,l,o.handle.slot,i.subTemplateIndex,c))}function Pm(t,e,n){for(let r of n.create)if(r.kind===f.I18nStart)return r.subTemplateIndex;return e.subTemplateIndex}function mi(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 cI(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===Ts.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,h=(o=e.get(c.i18nOwner))!=null?o:null,d={value:u,subTemplateIndex:h,flags:he.ExpressionIndex};uI(c,d,n,r),s.set(i(c),u+1)}}function uI(t,e,n,r){if(t.i18nPlaceholder!==null){let s=n.get(t.context),i=t.resolutionTime===ui.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 pI(t){for(let e of t.units){for(let n of e.functions)Yi(e,n.ops,null);Yi(e,e.create,null),Yi(e,e.update,null)}}function Yi(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.Animation:case f.AnimationListener:case f.Listener:case f.TwoWayListener:Yi(t,i.handlerOps,n);break;case f.RepeaterCreate:i.trackByOps!==null&&Yi(t,i.trackByOps,n);break}for(let i of e)i.kind===f.Listener||i.kind===f.TwoWayListener||i.kind===f.Animation||i.kind===f.AnimationListener||Ne(i,o=>{if(o instanceof ze)return s.has(o.name)?new Xn(s.get(o.name)):r.has(o.name)?new Xn(r.get(o.name)):new xt(new Or(t.job.root.xref),o.name);if(o instanceof Po&&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 Xn(n.variable),o}else return o},Q.None);for(let i of e)Me(i,o=>{if(o instanceof ze)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${o.name}`)})}var hI=new Map([[ue.HTML,m.sanitizeHtml],[ue.RESOURCE_URL,m.sanitizeResourceUrl],[ue.SCRIPT,m.sanitizeScript],[ue.STYLE,m.sanitizeStyle],[ue.URL,m.sanitizeUrl],[ue.ATTRIBUTE_NO_BINDING,m.validateAttribute]]),fI=new Map([[ue.HTML,m.trustConstantHtml],[ue.RESOURCE_URL,m.trustConstantResourceUrl]]);function dI(t){var e,n;for(let r of t.units){if(t.kind!==_.Host){for(let s of r.create)if(s.kind===f.ExtractedAttribute){let i=(e=fI.get(bf(s.securityContext)))!=null?e:null;s.trustedValueFn=i!==null?O(i):null}}for(let s of r.update)switch(s.kind){case f.Property:case f.Attribute:case f.DomProperty:let i=null;Array.isArray(s.securityContext)&&s.securityContext.length===2&&s.securityContext.includes(ue.URL)&&s.securityContext.includes(ue.RESOURCE_URL)?i=m.sanitizeUrlOrResourceUrl:i=(n=hI.get(bf(s.securityContext)))!=null?n:null,s.sanitizer=i!==null?O(i):null;break}}}function bf(t){if(Array.isArray(t)){if(t.length>1)throw Error("AssertionError: Ambiguous security context");return t[0]||ue.NONE}return t}function mI(t){for(let e of t.units){for(let n of e.functions)_f(t,e,n.ops)&&kf(e,n.ops,J(n.currentViewName));e.create.prepend([fr(e.job.allocateXrefId(),{kind:We.SavedView,name:null,view:e.xref},new iu,$t.None)]);for(let n of e.create)(n.kind===f.Listener||n.kind===f.TwoWayListener||n.kind===f.Animation||n.kind===f.AnimationListener)&&_f(t,e,n.handlerOps)&&kf(e,n.handlerOps,e.xref)}}function _f(t,e,n){let r=e!==t.root;if(!r)for(let s of n)Me(s,i=>{(i instanceof Ha||i instanceof Ro)&&(r=!0)});return r}function kf(t,e,n){e.prepend([fr(t.job.allocateXrefId(),{kind:We.Context,name:null,view:t.xref},new Po(n),$t.None)]);for(let r of e)r.kind===f.Statement&&r.statement instanceof be&&(r.statement.value=new Wa(r.statement.value))}function gI(t){let e=new Map;for(let n of t.units){let r=0;for(let s of n.create)Ti(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.ConditionalCreate||r.kind===f.ConditionalBranchCreate||r.kind===f.RepeaterCreate){let s=t.views.get(r.xref);r.decls=s.decls}}function yI(t){let e=new Set,n=new Map;for(let r of t.units)for(let s of r.ops())s.kind===f.DeclareLet&&n.set(s.xref,s),Me(s,i=>{i instanceof Ro&&e.add(i.target)});for(let r of t.units)for(let s of r.update)Ne(s,i=>i instanceof ko&&!e.has(i.target)?(vI(i)||w.remove(n.get(i.target)),i.value):i,Q.None)}function vI(t){let e=!1;return k(t,n=>((n instanceof Cs||n instanceof Lo)&&(e=!0),n),Q.None),e}function SI(t){let e=new Set;for(let n of t.units)for(let r of n.ops())Me(r,s=>{if(s instanceof re)switch(s.operator){case T.Exponentiation:EI(s,e);break;case T.NullishCoalesce:TI(s,e);break;case T.And:case T.Or:xI(s,e)}});for(let n of t.units)for(let r of n.ops())Ne(r,s=>s instanceof tn?e.has(s)?s:s.expr:s,Q.None)}function EI(t,e){t.lhs instanceof tn&&t.lhs.expr instanceof Yn&&e.add(t.lhs)}function TI(t,e){t.lhs instanceof tn&&(Rf(t.lhs.expr)||t.lhs.expr instanceof mn)&&e.add(t.lhs),t.rhs instanceof tn&&(Rf(t.rhs.expr)||t.rhs.expr instanceof mn)&&e.add(t.rhs)}function xI(t,e){t.lhs instanceof tn&&t.lhs.expr instanceof re&&t.lhs.expr.operator===T.NullishCoalesce&&e.add(t.lhs)}function Rf(t){return t instanceof re&&(t.operator===T.And||t.operator===T.Or)}function wI(t){for(let e of t.units)for(let n of e.update)if(n.kind===f.Binding)switch(n.bindingKind){case M.ClassName:if(n.expression instanceof Ae)throw new Error("Unexpected interpolation in ClassName binding");w.replace(n,KT(n.target,n.name,n.expression,n.sourceSpan));break;case M.StyleProperty:w.replace(n,jT(n.target,n.name,n.expression,n.unit,n.sourceSpan));break;case M.Property:case M.Template:n.name==="style"?w.replace(n,zT(n.target,n.expression,n.sourceSpan)):n.name==="class"&&w.replace(n,XT(n.target,n.expression,n.sourceSpan));break}}function CI(t){for(let e of t.units){e.create.prepend(Qi(e.create)),e.update.prepend(Qi(e.update));for(let n of e.functions)n.ops.prepend(Qi(n.ops))}}function Qi(t){let e=0,n=[];for(let r of t){let s=new Map;Me(r,(u,h)=>{h&Q.InChildOperation||u instanceof Br&&s.set(u.xref,u)});let i=0,o=new Set,l=new Set,c=new Map;Me(r,(u,h)=>{h&Q.InChildOperation||(u instanceof Un?(o.has(u.xref)||(o.add(u.xref),c.set(u.xref,`tmp_${e}_${i++}`)),Pf(c,u)):u instanceof Br&&(s.get(u.xref)===u&&(l.add(u.xref),i--),Pf(c,u)))}),n.push(...Array.from(new Set(c.values())).map(u=>Ht(new Ve(u)))),e++,r.kind===f.Listener||r.kind===f.Animation||r.kind===f.AnimationListener||r.kind===f.TwoWayListener?r.handlerOps.prepend(Qi(r.handlerOps)):r.kind===f.RepeaterCreate&&r.trackByOps!==null&&r.trackByOps.prepend(Qi(r.trackByOps))}return n}function Pf(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 AI(t){for(let e of t.units)for(let n of e.create)if(n.kind===f.RepeaterCreate)if(n.track instanceof en&&n.track.name==="$index")n.trackByFn=O(m.repeaterTrackByIndex);else if(n.track instanceof en&&n.track.name==="$item")n.trackByFn=O(m.repeaterTrackByIdentity);else if(NI(t.root.xref,n.track))n.usesComponentInstance=!0,n.track.receiver.receiver.view===e.xref?n.trackByFn=n.track.receiver:(n.trackByFn=O(m.componentInstance).callFn([]).prop(n.track.receiver.name),n.track=n.trackByFn);else{n.track=k(n.track,s=>{if(s instanceof Cs||s instanceof Lo)throw new Error("Illegal State: Pipes are not allowed in this context");return s instanceof Or?(n.usesComponentInstance=!0,new su(s.view)):s},Q.None);let r=new w;r.push(Ht(new be(n.track,n.track.sourceSpan))),n.trackByOps=r}}function NI(t,e){if(!(e instanceof ot)||e.args.length===0||e.args.length>2||!(e.receiver instanceof xt&&e.receiver.receiver instanceof Or)||e.receiver.receiver.view!==t)return!1;let[n,r]=e.args;return!(n instanceof en)||n.name!=="$index"?!1:e.args.length===1?!0:!(!(r instanceof en)||r.name!=="$item")}function II(t){for(let e of t.units)for(let n of e.create)n.kind===f.RepeaterCreate&&(n.track=k(n.track,r=>{if(r instanceof ze){if(n.varNames.$index.has(r.name))return J("$index");if(r.name===n.varNames.$implicit)return J("$item")}return r},Q.None))}function DI(t){for(let e of t.units)for(let n of e.create)n.kind===f.TwoWayListener&&Ne(n,r=>{if(!(r instanceof ja))return r;let{target:s,value:i}=r;if(s instanceof xt||s instanceof Rn)return wf(s,i).or(s.set(i));if(s instanceof Xn)return wf(s,i);throw new Error("Unsupported expression in two-way action binding.")},Q.InChildOperation)}function bI(t){for(let e of t.units){let n=0;for(let i of e.ops())nc(i)&&(n+=_I(i));let r=i=>{$n(i)&&(i instanceof ws||(Bh(i)&&(i.varOffset=n),nc(i)&&(n+=Lf(i))))},s=i=>{!$n(i)||!(i instanceof ws)||(Bh(i)&&(i.varOffset=n),nc(i)&&(n+=Lf(i)))};for(let i of e.create)Me(i,r);for(let i of e.update)Me(i,r);for(let i of e.create)Me(i,s);for(let i of e.update)Me(i,s);e.vars=n}if(t instanceof Fo)for(let e of t.units)for(let n of e.create){if(n.kind!==f.Template&&n.kind!==f.RepeaterCreate&&n.kind!==f.ConditionalCreate&&n.kind!==f.ConditionalBranchCreate)continue;let r=t.views.get(n.xref);n.vars=r.vars}}function _I(t){let e;switch(t.kind){case f.Attribute:return e=1,t.expression instanceof Ae&&!kI(t.expression)&&(e+=t.expression.expressions.length),e;case f.Property:case f.DomProperty:return e=1,t.expression instanceof Ae&&(e+=t.expression.expressions.length),e;case f.Control:return 2;case f.TwoWayProperty:return 1;case f.StyleProp:case f.ClassProp:case f.StyleMap:case f.ClassMap:return e=2,t.expression instanceof Ae&&(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 Lf(t){switch(t.kind){case F.PureFunctionExpr:return 1+t.args.length;case F.PipeBinding:return 1+t.args.length;case F.PipeBindingVariadic:return 1+t.numArgs;case F.StoreLet:case F.ArrowFunction:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${t.constructor.name}`)}}function kI(t){return!(t.expressions.length!==1||t.strings.length!==2||t.strings[0]!==""||t.strings[1]!=="")}function RI(t){for(let e of t.units){for(let n of e.functions)Bi(n.ops);Bi(e.create),Bi(e.update);for(let n of e.create)n.kind===f.Listener||n.kind===f.Animation||n.kind===f.AnimationListener||n.kind===f.TwoWayListener?Bi(n.handlerOps):n.kind===f.RepeaterCreate&&n.trackByOps!==null&&Bi(n.trackByOps);for(let n of e.functions)$i(n.ops,null),Mf(n.ops);for(let n of e.create)n.kind===f.Listener||n.kind===f.Animation||n.kind===f.AnimationListener||n.kind===f.TwoWayListener?($i(n.handlerOps,va),Mf(n.handlerOps)):n.kind===f.RepeaterCreate&&n.trackByOps!==null&&$i(n.trackByOps,va);$i(e.create,va),$i(e.update,va)}}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 va(t){return!(t&Q.InArrowFunctionOperation)}function Bi(t){let e=new Map;for(let n of t)n.kind===f.Variable&&n.flags&$t.AlwaysInline&&(Me(n,r=>{if($n(r)&&lp(r)!==$e.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(n.xref,n)),Ne(n,r=>r instanceof Xn&&e.has(r.xref)?e.get(r.xref).initializer.clone():r,Q.None);for(let n of e.values())w.remove(n)}function $i(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,PI(u,e)),LI(u,r,s,e)}let o=!1;for(let u of t.reversed()){let h=i.get(u);if(u.kind===f.Variable&&r.get(u.xref)===0){if(o&&h.fences&$e.ViewContextWrite||h.fences&$e.SideEffectful){let d=Ht(u.initializer.toStmt());i.set(d,h),w.replace(u,d)}else MI(u,r),w.remove(u);i.delete(u),n.delete(u.xref),r.delete(u.xref);continue}h.fences&$e.ViewContextRead&&(o=!0)}let l=[];for(let[u,h]of r){let p=!!(n.get(u).flags&$t.AlwaysInline);h!==1||p||s.has(u)||l.push(u)}let c;for(;c=l.pop();){let u=n.get(c),h=i.get(u);if(!!(u.flags&$t.AlwaysInline))throw new Error("AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.");for(let p=u.next;p.kind!==f.ListEnd;p=p.next){let g=i.get(p);if(g.variablesUsed.has(c)){if(!FI(u,p))break;if(OI(c,u.initializer,p,h.fences)){g.variablesUsed.delete(c);for(let v of h.variablesUsed)g.variablesUsed.add(v);g.fences|=h.fences,n.delete(c),r.delete(c),i.delete(u),w.remove(u)}break}if(!Lm(g.fences,h.fences))break}}}function lp(t){switch(t.kind){case F.NextContext:return $e.ViewContextRead|$e.ViewContextWrite;case F.RestoreView:return $e.ViewContextRead|$e.ViewContextWrite|$e.SideEffectful;case F.StoreLet:return $e.SideEffectful;case F.Reference:case F.ContextLetReference:return $e.ViewContextRead;default:return $e.None}}function PI(t,e){let n=$e.None,r=new Set;return Me(t,(s,i)=>{!$n(s)||e!==null&&!e(i)||(s.kind===F.ReadVariable?r.add(s.xref):n|=lp(s))}),{fences:n,variablesUsed:r}}function LI(t,e,n,r){Me(t,(s,i)=>{if(!$n(s)||r!==null&&!r(i)||s.kind!==F.ReadVariable)return;let o=e.get(s.xref);o!==void 0&&(e.set(s.xref,o+1),i&Q.InChildOperation&&n.add(s.xref))})}function MI(t,e){Me(t,n=>{if(!$n(n)||n.kind!==F.ReadVariable)return;let r=e.get(n.xref);if(r!==void 0){if(r===0)throw new Error(`Inaccurate variable count: ${n.xref} - found another read but count is already 0`);e.set(n.xref,r-1)}})}function Lm(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 OI(t,e,n,r){let s=!1,i=!0;return Ne(n,(o,l)=>{if(!$n(o)||s||!i)return o;if(l&Q.InChildOperation&&r&$e.ViewContextRead)return o;switch(o.kind){case F.ReadVariable:if(o.xref===t)return s=!0,e;break;default:let c=lp(o);i=i&&Lm(c,r);break}return o},Q.None),s}function FI(t,e){switch(t.variable.kind){case We.Identifier:return t.initializer instanceof en&&t.initializer.name===Gt;case We.Context:return e.kind===f.Variable;default:return!0}}function Mf(t){let e=t.head.next,n=t.tail.prev;e!==null&&n!==null&&e.next===n&&e.kind===f.Statement&&e.statement instanceof Qe&&e.statement.expr instanceof Po&&n.kind===f.Statement&&n.statement instanceof be&&n.statement.value instanceof Wa&&(w.remove(e),n.statement.value=n.statement.value.expr)}function BI(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(),w.insertBefore(xl(r,s.message,void 0,null),s));break;case f.IcuEnd:r!==null&&(w.insertAfter(wl(r,null),s),r=null);break}}}function $I(t){for(let e of t.units){for(let n of e.create)n.kind!==f.Animation&&n.kind!==f.AnimationListener&&n.kind!==f.Listener&&n.kind!==f.TwoWayListener&&Of(e,n);for(let n of e.update)Of(e,n)}}function Of(t,e){Ne(e,(n,r)=>{if(!(n instanceof Vn)||r&Q.InChildOperation)return n;if(Array.isArray(n.body))throw new Error("AssertionError: unexpected multi-line arrow function");let s=new ou(n.params,n.body);return t.functions.add(s),s},Q.None)}var UI=new Set(["formField"]);function VI(t){for(let e of t.units)GI(e)}function GI(t){for(let e of t.update)e.kind===f.Property&&UI.has(e.name)&&jI(t,e)}var HI=new Set([f.Container,f.ContainerStart,f.ContainerEnd,f.Element,f.ElementStart,f.ElementEnd,f.Template]);function qI(t){return HI.has(t.kind)}function WI(t,e){let n=null;for(let r of t.create)!qI(r)||r.xref!==e||(n=r);return n}function jI(t,e){let n=WI(t,e.target);if(n===null)throw new Error(`No create instruction found for control target ${e.target}`);let r=Tx(e.sourceSpan);w.insertAfter(r,n),w.insertAfter(tx(e.target,e.sourceSpan),e)}var KI=[{kind:_.Tmpl,fn:hA},{kind:_.Both,fn:AA},{kind:_.Host,fn:Aw},{kind:_.Tmpl,fn:XC},{kind:_.Tmpl,fn:SA},{kind:_.Tmpl,fn:BI},{kind:_.Both,fn:Kx},{kind:_.Both,fn:wI},{kind:_.Both,fn:Rx},{kind:_.Tmpl,fn:VI},{kind:_.Both,fn:Hx},{kind:_.Both,fn:bx},{kind:_.Tmpl,fn:jx},{kind:_.Both,fn:QC},{kind:_.Tmpl,fn:tI},{kind:_.Both,fn:Mx},{kind:_.Both,fn:pA},{kind:_.Tmpl,fn:Ox},{kind:_.Tmpl,fn:mA},{kind:_.Tmpl,fn:zx},{kind:_.Tmpl,fn:vA},{kind:_.Both,fn:$I},{kind:_.Both,fn:xA},{kind:_.Tmpl,fn:Tw},{kind:_.Tmpl,fn:Ew},{kind:_.Tmpl,fn:xw},{kind:_.Tmpl,fn:mI},{kind:_.Both,fn:wx},{kind:_.Both,fn:aI},{kind:_.Tmpl,fn:II},{kind:_.Tmpl,fn:rI},{kind:_.Both,fn:pI},{kind:_.Tmpl,fn:Xx},{kind:_.Tmpl,fn:DI},{kind:_.Tmpl,fn:AI},{kind:_.Both,fn:iI},{kind:_.Both,fn:dI},{kind:_.Tmpl,fn:KC},{kind:_.Both,fn:ew},{kind:_.Both,fn:SI},{kind:_.Both,fn:CI},{kind:_.Both,fn:RI},{kind:_.Both,fn:yI},{kind:_.Tmpl,fn:jC},{kind:_.Tmpl,fn:Wx},{kind:_.Tmpl,fn:sI},{kind:_.Tmpl,fn:Ix},{kind:_.Tmpl,fn:Ax},{kind:_.Tmpl,fn:gI},{kind:_.Tmpl,fn:lI},{kind:_.Tmpl,fn:cI},{kind:_.Tmpl,fn:mw},{kind:_.Tmpl,fn:VC},{kind:_.Tmpl,fn:ww},{kind:_.Both,fn:Ux},{kind:_.Tmpl,fn:nI},{kind:_.Both,fn:bI},{kind:_.Tmpl,fn:Sw},{kind:_.Both,fn:JC},{kind:_.Tmpl,fn:oI},{kind:_.Tmpl,fn:tA},{kind:_.Tmpl,fn:rA},{kind:_.Tmpl,fn:Zx},{kind:_.Tmpl,fn:Dx},{kind:_.Tmpl,fn:iA},{kind:_.Both,fn:TA},{kind:_.Both,fn:XN},{kind:_.Both,fn:Lx}];function Mm(t,e){for(let n of KI)(n.kind===e||n.kind===_.Both)&&n.fn(t)}function zI(t,e){let n=Fm(t.root);return Om(t.root,e),n}function Om(t,e){for(let n of t.job.units){if(n.parent!==t.xref)continue;Om(n,e);let r=Fm(n);e.statements.push(r.toDeclStmt(r.name))}}function Fm(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=cl(1,e),s=cl(2,n);return Qn([new Oe(Si),new Oe(Gt)],[...r,...s],void 0,void 0,t.fnName)}function cl(t,e){return e.length===0?[]:[Ko(new re(T.BitwiseAnd,J(Si),S(t)),e)]}function XI(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=cl(1,e),s=cl(2,n);return Qn([new Oe(Si),new Oe(Gt)],[...r,...s],void 0,void 0,t.root.fnName)}var is=new Sn,os="ng-template",YI="animate.";function Aa(t){return t instanceof St}function QI(t){return Aa(t)&&t.nodes.length===1&&t.nodes[0]instanceof Ba}function JI(t,e,n,r,s,i,o,l,c,u){let h=new Fo(t,n,r,s,i,o,l,c,u);return er(h.root,e),h}function ZI(t,e,n){var s,i,o;let r=new Ja(t.componentName,n,ft.DomOnly);for(let l of(s=t.properties)!=null?s:[]){let c=M.Property;l.name.startsWith("attr.")&&(l.name=l.name.substring(5),c=M.Attribute),l.isLegacyAnimation&&(c=M.LegacyAnimation),l.isAnimation&&(c=M.Animation);let u=e.calcPossibleSecurityContexts(t.componentSelector,l.name,c===M.Attribute).filter(h=>h!==ue.NONE);eD(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(h=>h!==ue.NONE);tD(r,l,c,u)}for(let l of(o=t.events)!=null?o:[])nD(r,l);return r}function eD(t,e,n,r){let s,i=e.expression.ast;i instanceof tr?s=new Ae(i.strings,i.expressions.map(o=>X(o,t,e.sourceSpan)),[]):s=X(i,t,e.sourceSpan),t.root.update.push(xs(t.root.xref,n,e.name,s,null,r,!1,!1,null,null,e.sourceSpan))}function tD(t,e,n,r){let s=xs(t.root.xref,M.Attribute,e,n,null,r,!0,!1,null,null,n.sourceSpan);t.root.update.push(s)}function nD(t,e){let n;if(e.type===De.Animation)n=pm(t.root.xref,new rt,e.name,null,Go(t.root,e.handler,e.handlerSpan),e.name.endsWith("enter")?"enter":"leave",e.targetOrPhase,!0,e.sourceSpan);else{let[r,s]=e.type!==De.LegacyAnimation?[null,e.targetOrPhase]:[e.targetOrPhase,null];n=ip(t.root.xref,new rt,e.name,null,Go(t.root,e.handler,e.handlerSpan),r,s,!0,e.sourceSpan)}t.root.create.push(n)}function er(t,e){for(let n of e)if(n instanceof ke)rD(t,n);else if(n instanceof de)sD(t,n);else if(n instanceof vs)iD(t,n);else if(n instanceof qn)Bm(t,n,null);else if(n instanceof ds)$m(t,n,null);else if(n instanceof br)oD(t,n);else if(n instanceof Dr)aD(t,n);else if(n instanceof On)lD(t,n);else if(n instanceof Xu)uD(t,n);else if(n instanceof Fn)pD(t,n);else if(n instanceof En)fD(t,n);else if(!(n instanceof bn))throw new Error(`Unsupported template node: ${n.constructor.name}`)}function rD(t,e){var c,u;if(e.i18n!==void 0&&!(e.i18n instanceof St||e.i18n instanceof _r))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=t.job.allocateXrefId(),[r,s]=yn(e.name),i=rx(s,n,ym(r),e.i18n instanceof _r?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);t.create.push(i),mD(t,i,e),Gm(i,e);let o=null;e.i18n instanceof St&&(o=t.job.allocateXrefId(),t.create.push(xl(o,e.i18n,void 0,e.startSourceSpan))),er(t,e.children);let l=ix(n,(c=e.endSourceSpan)!=null?c:e.startSourceSpan);t.create.push(l),o!==null&&w.insertBefore(wl(o,(u=e.endSourceSpan)!=null?u:e.startSourceSpan),l)}function sD(t,e){var h;if(e.i18n!==void 0&&!(e.i18n instanceof St||e.i18n instanceof _r))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]=yn(e.tagName));let i=e.i18n instanceof _r?e.i18n:void 0,o=ym(s),l=r===null?"":$x(r,o),c=dD(e)?Et.NgTemplate:Et.Structural,u=am(n.xref,c,r,l,o,i,e.startSourceSpan,e.sourceSpan);t.create.push(u),gD(t,u,e,c),Gm(u,e),er(n,e.children);for(let{name:d,value:p}of e.variables)n.contextVariables.set(d,p!==""?p:"$implicit");if(c===Et.NgTemplate&&e.i18n instanceof St){let d=t.job.allocateXrefId();w.insertAfter(xl(d,e.i18n,void 0,e.startSourceSpan),n.create.head),w.insertBefore(wl(d,(h=e.endSourceSpan)!=null?h:e.startSourceSpan),n.create.tail)}}function iD(t,e){var i;if(e.i18n!==void 0&&!(e.i18n instanceof _r))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=null;e.children.some(o=>!(o instanceof El)&&(!(o instanceof qn)||o.value.trim().length>0))&&(n=t.job.allocateView(t.xref),er(n,e.children));let r=t.job.allocateXrefId(),s=fx(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=is.securityContext(e.name,o.name,!0);t.update.push(xs(s.xref,M.Attribute,o.name,S(o.value),null,l,!0,!1,null,Kn(o.i18n),o.sourceSpan))}t.create.push(s)}function Bm(t,e,n){t.create.push(um(t.job.allocateXrefId(),e.value,n,e.sourceSpan))}function $m(t,e,n){var o;let r=e.value;if(r instanceof ve&&(r=r.ast),!(r instanceof tr))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${r.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof zn))throw Error(`Unhandled i18n metadata type for text interpolation: ${(o=e.i18n)==null?void 0:o.constructor.name}`);let s=e.i18n instanceof zn?e.i18n.children.filter(l=>l instanceof Ao).map(l=>l.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(um(i,"",n,e.sourceSpan)),t.update.push(HT(i,new Ae(r.strings,r.expressions.map(l=>X(l,t.job,null)),s),e.sourceSpan))}function oD(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=ul(t,l.xref,o);o.expressionAlias!==null&&l.contextVariables.set(o.expressionAlias.name,dm);let u;if(o.i18n!==void 0){if(!(o.i18n instanceof kr))throw Error(`Unhandled i18n metadata type for if block: ${(s=o.i18n)==null?void 0:s.constructor.name}`);u=o.i18n}let d=(i===0?lm:cm)(l.xref,Et.Block,c,"Conditional",nt.HTML,u,o.startSourceSpan,o.sourceSpan);t.create.push(d),n===null&&(n=l.xref);let p=o.expression?X(o.expression,t.job,null):null,g=new za(p,d.xref,d.handle,o.expressionAlias);r.push(g),er(l,o.children)}t.update.push(sm(n,null,r,e.sourceSpan))}function aD(t,e){var s;if(e.groups.length===0)return;let n=null,r=[];for(let i=0;i<e.groups.length;i++){let o=e.groups[i],l=t.job.allocateView(t.xref),c=ul(t,l.xref,o),u;if(o.i18n!==void 0){if(!(o.i18n instanceof kr))throw Error(`Unhandled i18n metadata type for switch block: ${(s=o.i18n)==null?void 0:s.constructor.name}`);u=o.i18n}let d=(i===0?lm:cm)(l.xref,Et.Block,c,"Case",nt.HTML,u,o.startSourceSpan,o.sourceSpan);t.create.push(d),n===null&&(n=l.xref);for(let p of o.cases){let g=p.expression?X(p.expression,t.job,e.startSourceSpan):null,v=new za(g,d.xref,d.handle);r.push(v)}er(l,o.children)}t.update.push(sm(n,X(e.expression,t.job,null),r,e.sourceSpan))}function Sa(t,e,n,r,s){if(n!==void 0&&!(n instanceof kr))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=am(i.xref,Et.Block,null,`Defer${e}`,nt.HTML,n,s,s);return t.create.push(o),o}function lD(t,e){var p,g,v,E,N,D,b,P,L,ne,se,Ge,Ie,It,zr,sr,ir,la,Pe,ca;let n=null;if(t.job.deferMeta.mode===0){if(!t.job.deferMeta.blocks.has(e))throw new Error("AssertionError: unable to find a dependency function for this deferred block");n=(p=t.job.deferMeta.blocks.get(e))!=null?p:null}let r=Sa(t,"",e.i18n,e.children,e.sourceSpan),s=Sa(t,"Loading",(g=e.loading)==null?void 0:g.i18n,(v=e.loading)==null?void 0:v.children,(E=e.loading)==null?void 0:E.sourceSpan),i=Sa(t,"Placeholder",(N=e.placeholder)==null?void 0:N.i18n,(D=e.placeholder)==null?void 0:D.children,(b=e.placeholder)==null?void 0:b.sourceSpan),o=Sa(t,"Error",(P=e.error)==null?void 0:P.i18n,(L=e.error)==null?void 0:L.children,(ne=e.error)==null?void 0:ne.sourceSpan),l=t.job.allocateXrefId(),c=dx(l,r.xref,r.handle,n,t.job.allDeferrableDepsFn,e.sourceSpan);c.placeholderView=(se=i==null?void 0:i.xref)!=null?se:null,c.placeholderSlot=(Ge=i==null?void 0:i.handle)!=null?Ge:null,c.loadingSlot=(Ie=s==null?void 0:s.handle)!=null?Ie:null,c.errorSlot=(It=o==null?void 0:o.handle)!=null?It:null,c.placeholderMinimumTime=(sr=(zr=e.placeholder)==null?void 0:zr.minimumTime)!=null?sr:null,c.loadingMinimumTime=(la=(ir=e.loading)==null?void 0:ir.minimumTime)!=null?la:null,c.loadingAfterTime=(ca=(Pe=e.loading)==null?void 0:Pe.afterTime)!=null?ca:null,c.flags=cD(e),t.create.push(c);let u=[],h=[];lc("hydrate",e.hydrateTriggers,u,h,t,l),lc("none",e.triggers,u,h,t,l),lc("prefetch",e.prefetchTriggers,u,h,t,l),u.some(bi=>bi.modifier==="none")||h.some(bi=>bi.modifier==="none")||u.push(cr(l,{kind:ce.Idle},"none",null)),t.create.push(u),t.update.push(h)}function cD(t){return Object.keys(t.hydrateTriggers).length>0?1:null}function lc(t,e,n,r,s,i){if(e.idle!==void 0){let o=cr(i,{kind:ce.Idle},t,e.idle.sourceSpan);n.push(o)}if(e.immediate!==void 0){let o=cr(i,{kind:ce.Immediate},t,e.immediate.sourceSpan);n.push(o)}if(e.timer!==void 0){let o=cr(i,{kind:ce.Timer,delay:e.timer.delay},t,e.timer.sourceSpan);n.push(o)}if(e.hover!==void 0){let o=cr(i,{kind:ce.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=cr(i,{kind:ce.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=cr(i,{kind:ce.Viewport,targetName:e.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null,options:e.viewport.options?X(e.viewport.options,s.job,e.viewport.sourceSpan):null},t,e.viewport.sourceSpan);n.push(o)}if(e.never!==void 0){let o=cr(i,{kind:ce.Never},t,e.never.sourceSpan);n.push(o)}if(e.when!==void 0){if(e.when.value instanceof tr)throw new Error("Unexpected interpolation in defer block when trigger");let o=JT(i,X(e.when.value,s.job,e.when.sourceSpan),t,e.when.sourceSpan);r.push(o)}}function uD(t,e){var n;if(e.i18n instanceof St&&QI(e.i18n)){let r=t.job.allocateXrefId();t.create.push(yx(r,e.i18n,Fd(e.i18n).name,null));for(let[s,i]of Object.entries(C(C({},e.vars),e.placeholders)))i instanceof ds?$m(t,i,s):Bm(t,i,s);t.create.push(vx(r))}else throw Error(`Unhandled i18n metadata type for ICU: ${(n=e.i18n)==null?void 0:n.constructor.name}`)}function pD(t,e){var D,b,P;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 L of e.contextVariables)L.value==="$index"&&i.add(L.name),L.name==="$index"?n.contextVariables.set("$index",L.value).set(r,L.value):L.name==="$count"?n.contextVariables.set("$count",L.value).set(s,L.value):n.aliases.add({kind:We.Alias,name:null,identifier:L.name,expression:hD(L,r,s)});let o=He(e.trackBy.span,e.sourceSpan),l=X(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=ul(t,c.xref,e.empty));let h={$index:i,$implicit:e.item.name};if(e.i18n!==void 0&&!(e.i18n instanceof kr))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(((D=e.empty)==null?void 0:D.i18n)!==void 0&&!(e.empty.i18n instanceof kr))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let d=e.i18n,p=(b=e.empty)==null?void 0:b.i18n,g=ul(t,n.xref,e),v=sx(n.xref,(P=c==null?void 0:c.xref)!=null?P:null,g,l,h,u,d,p,e.startSourceSpan,e.sourceSpan);t.create.push(v);let E=X(e.expression,t.job,He(e.expression.span,e.sourceSpan)),N=QT(v.xref,v.handle,E,e.sourceSpan);t.update.push(N)}function hD(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(S(0));case"$last":return new ze(e).identical(new ze(n).minus(S(1)));case"$even":return new ze(e).modulo(S(2)).identical(S(0));case"$odd":return new ze(e).modulo(S(2)).notIdentical(S(0));default:throw new Error(`AssertionError: unknown @for loop variable ${t.value}`)}}function fD(t,e){let n=t.job.allocateXrefId();t.create.push(mx(n,e.name,e.sourceSpan)),t.update.push(ex(n,e.name,X(e.value,t.job,e.valueSpan),e.sourceSpan))}function X(t,e,n){if(t instanceof ve)return X(t.ast,e,n);if(t instanceof le)return t.receiver instanceof Je?new ze(t.name):new xt(X(t.receiver,e,n),t.name,null,He(t.span,n));if(t instanceof Ct){if(t.receiver instanceof Je)throw new Error("Unexpected ImplicitReceiver");return new ot(X(t.receiver,e,n),t.args.map(r=>X(r,e,n)),void 0,He(t.span,n))}else{if(t instanceof dt)return S(t.value,void 0,He(t.span,n));if(t instanceof Xs)switch(t.operator){case"+":return new Yn(kn.Plus,X(t.expr,e,n),void 0,He(t.span,n));case"-":return new Yn(kn.Minus,X(t.expr,e,n),void 0,He(t.span,n));default:throw new Error(`AssertionError: unknown unary operator ${t.operator}`)}else if(t instanceof xe){let r=Fx.get(t.operation);if(r===void 0)throw new Error(`AssertionError: unknown binary operator ${t.operation}`);return new re(r,X(t.left,e,n),X(t.right,e,n),void 0,He(t.span,n))}else{if(t instanceof rn)return new Or(e.root.xref);if(t instanceof Pn)return new Rn(X(t.receiver,e,n),X(t.key,e,n),void 0,He(t.span,n));if(t instanceof Cr)throw new Error("AssertionError: Chain in unknown context");if(t instanceof fs){let r=t.keys.map((s,i)=>{let o=X(t.values[i],e,n);return s.kind==="spread"?new gn(o):new Er(s.key,o,s.quoted)});return new nn(r,void 0,He(t.span,n))}else{if(t instanceof po)return new _t(t.expressions.map(r=>X(r,e,n)));if(t instanceof ii)return new mn(X(t.condition,e,n),X(t.trueExp,e,n),X(t.falseExp,e,n),void 0,He(t.span,n));if(t instanceof mo)return X(t.expression,e,n);if(t instanceof hs)return new Cs(e.allocateXrefId(),new rt,t.name,[X(t.exp,e,n),...t.args.map(r=>X(r,e,n))]);if(t instanceof Ar)return new hi(X(t.receiver,e,n),X(t.key,e,n),He(t.span,n));if(t instanceof Ze)return new pi(X(t.receiver,e,n),t.name);if(t instanceof Ut)return new As(X(t.receiver,e,n),t.args.map(r=>X(r,e,n)));if(t instanceof et)return new Mo(He(t.span,n));if(t instanceof Ln)return Dd(X(t.expression,e,n),He(t.span,n));if(t instanceof ho)return yi(X(t.expression,e,n));if(t instanceof fo)return new to(X(t.expression,e,n),void 0,He(t.span,n));if(t instanceof yo)return Ff(t,e,n);if(t instanceof go)return new Zs(X(t.tag,e,n),Ff(t.template,e,n),void 0,He(t.span,n));if(t instanceof vo)return new tn(X(t.expression,e,n),void 0,He(t.span,n));if(t instanceof Pa)return new cs(t.body,t.flags,n);if(t instanceof ka)return new Tr(X(t.expression,e,n));if(t instanceof oi)return vD(kt(t.parameters.map(r=>new Oe(r.name)),X(t.body,e,n)));throw new Error(`Unhandled expression type "${t.constructor.name}" in file "${n==null?void 0:n.start.file.url}"`)}}}}function Ff(t,e,n){return new ti(t.elements.map(r=>new no(r.text,He(r.span,n))),t.expressions.map(r=>X(r,e,n)),He(t.span,n))}function ku(t,e,n,r){var i,o;let s;return e instanceof tr?s=new Ae(e.strings,e.expressions.map(l=>X(l,t,null)),Object.keys((o=(i=Kn(n))==null?void 0:i.placeholders)!=null?o:{})):e instanceof oe?s=X(e,t,null):s=S(e),s}var Um=new Map([[K.Property,M.Property],[K.TwoWay,M.TwoWayProperty],[K.Attribute,M.Attribute],[K.Class,M.ClassName],[K.Style,M.StyleProperty],[K.LegacyAnimation,M.LegacyAnimation],[K.Animation,M.Animation]]);function dD(t){var e;return yn((e=t.tagName)!=null?e:"")[1]===os}function Kn(t){if(t==null)return null;if(!(t instanceof St))throw Error(`Expected i18n meta to be a Message, but got: ${t.constructor.name}`);return t}function mD(t,e,n){var i;let r=new Array,s=new Set;for(let o of n.attributes){let l=is.securityContext(n.name,o.name,!0);r.push(xs(e.xref,M.Attribute,o.name,ku(t.job,o.value,o.i18n),null,l,!0,!1,null,Kn(o.i18n),o.sourceSpan)),o.i18n&&s.add(o.name)}for(let o of n.inputs)s.has(o.name)&&console.error(`On component ${t.job.componentName}, the binding ${o.name} is both an i18n attribute and a property. You may want to remove the property binding. This will become a compilation error in future versions of Angular.`),r.push(xs(e.xref,Um.get(o.type),o.name,ku(t.job,Ho(o.value),o.i18n),o.unit,o.securityContext,!1,!1,null,(i=Kn(o.i18n))!=null?i:null,o.sourceSpan));t.create.push(r.filter(o=>(o==null?void 0:o.kind)===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===De.LegacyAnimation&&o.phase===null)throw Error("Animation listener should have a phase");o.type===De.TwoWay?t.create.push(hm(e.xref,e.handle,o.name,e.tag,Vm(t,o.handler,o.handlerSpan),o.sourceSpan)):o.type===De.Animation?t.create.push(pm(e.xref,e.handle,o.name,e.tag,Go(t,o.handler,o.handlerSpan),o.name.endsWith("enter")?"enter":"leave",o.target,!1,o.sourceSpan)):t.create.push(ip(e.xref,e.handle,o.name,e.tag,Go(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(fm(t.job.allocateXrefId(),new rt,e.xref))}function gD(t,e,n,r){let s=new Array;for(let i of n.templateAttrs)if(i instanceof sn){let o=is.securityContext(os,i.name,!0);s.push(Ea(t,e.xref,K.Attribute,i.name,i.value,null,o,!0,r,Kn(i.i18n),i.sourceSpan))}else s.push(Ea(t,e.xref,i.type,i.name,Ho(i.value),i.unit,i.securityContext,!0,r,Kn(i.i18n),i.sourceSpan));for(let i of n.attributes){let o=is.securityContext(os,i.name,!0);s.push(Ea(t,e.xref,K.Attribute,i.name,i.value,null,o,!1,r,Kn(i.i18n),i.sourceSpan))}for(let i of n.inputs)s.push(Ea(t,e.xref,i.type,i.name,Ho(i.value),i.unit,i.securityContext,!1,r,Kn(i.i18n),i.sourceSpan));t.create.push(s.filter(i=>(i==null?void 0:i.kind)===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===De.LegacyAnimation&&i.phase===null)throw Error("Animation listener should have a phase");if(r===Et.NgTemplate&&(i.type===De.TwoWay?t.create.push(hm(e.xref,e.handle,i.name,e.tag,Vm(t,i.handler,i.handlerSpan),i.sourceSpan)):t.create.push(ip(e.xref,e.handle,i.name,e.tag,Go(t,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))),r===Et.Structural&&i.type!==De.LegacyAnimation){let o=is.securityContext(os,i.name,!1);t.create.push(Yt(e.xref,M.Property,null,i.name,null,null,null,o))}}s.some(i=>i==null?void 0:i.i18nMessage)!==null&&t.create.push(fm(t.job.allocateXrefId(),new rt,e.xref))}function Ea(t,e,n,r,s,i,o,l,c,u,h){let d=typeof s=="string";if(c===Et.Structural){if(!l)switch(n){case K.Property:case K.Class:case K.Style:return Yt(e,M.Property,null,r,null,null,u,o);case K.TwoWay:return Yt(e,M.TwoWayProperty,null,r,null,null,u,o)}if(!d&&(n===K.Attribute||n===K.LegacyAnimation||n===K.Animation))return null}let p=Um.get(n);return c===Et.NgTemplate&&(n===K.Class||n===K.Style||n===K.Attribute&&!d)&&(p=M.Property),xs(e,p,r,ku(t.job,s,u),i,o,d,l,c,u,h)}function Go(t,e,n){e=Ho(e);let r=new Array,s=e instanceof Cr?e.expressions:[e];if(s.length===0)throw new Error("Expected listener to have non-empty expression list.");let i=s.map(l=>X(l,t.job,n)),o=i.pop();return r.push(...i.map(l=>Ht(new Qe(l,l.sourceSpan)))),r.push(Ht(new be(o,o.sourceSpan))),r}function Vm(t,e,n){e=Ho(e);let r=new Array;if(e instanceof Cr)if(e.expressions.length===1)e=e.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let s=X(e,t.job,n),i=new ze("$event"),o=new ja(s,i);return r.push(Ht(new Qe(o))),r.push(Ht(new be(i))),r}function Ho(t){return t instanceof ve?t.ast:t}function Gm(t,e){yD(t.localRefs);for(let{name:n,value:r}of e.references)t.localRefs.push({name:n,target:r})}function yD(t){if(!Array.isArray(t))throw new Error("AssertionError: expected an array")}function He(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 H(n,r,s)}function ul(t,e,n){let r=null;for(let s of n.children)if(!(s instanceof El||s instanceof En)){if(r!==null)return null;if(s instanceof ke||s instanceof de&&s.tagName!==null)r=s;else return null}if(r!==null){for(let i of r.attributes)if(!i.name.startsWith(YI)){let o=is.securityContext(os,i.name,!0);t.update.push(xs(e,M.Attribute,i.name,S(i.value),null,o,!0,!1,null,Kn(i.i18n),i.sourceSpan))}for(let i of r.inputs)if(i.type!==K.LegacyAnimation&&i.type!==K.Animation&&i.type!==K.Attribute){let o=is.securityContext(os,i.name,!0);t.create.push(Yt(e,M.Property,null,i.name,null,null,null,o))}let s=r instanceof ke?r.name:r.tagName;return s===os?null:s}return null}function vD(t){let e=new Set(t.params.map(n=>n.name));return k(t,n=>{if(n instanceof Vn)for(let r of n.params)e.add(r.name);else if(n instanceof ze&&e.has(n.name))return J(n.name);return n},Q.None)}var SD=!1;function ED(){return SD}function pl(t,e){return Ko(J(Si).bitwiseAnd(S(t),null),e)}function TD(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function xD(t,e){if(Array.isArray(t.predicate)){let n=[];return t.predicate.forEach(r=>{let s=r.split(",").map(i=>S(i.trim()));n.push(...s)}),e.getConstLiteral(ae(n),!0)}else switch(t.predicate.forwardRef){case 0:case 2:return t.predicate.expression;case 1:return O(m.resolveForwardRef).callFn([t.predicate.expression])}}function Hm(t,e,n){let r=[];return n!==void 0&&r.push(...n),t.isSignal&&r.push(new xt(J(Gt),t.propertyName)),r.push(xD(t,e),S(TD(t))),t.read&&r.push(t.read),r}var cp=Symbol("queryAdvancePlaceholder");function qm(t){let e=[],n=0,r=()=>{n>0&&(e.unshift(O(m.queryAdvance).callFn(n===1?[]:[S(n)]).toStmt()),n=0)};for(let s=t.length-1;s>=0;s--){let i=t[s];i===cp?n++:(r(),e.unshift(i))}return r(),e}function wD(t,e,n){let r=[],s=[],i=Bd(u=>s.push(u),Qu),o=null,l=null;t.forEach(u=>{let h=Hm(u,e);if(u.isSignal?(o!=null||(o=O(m.viewQuerySignal)),o=o.callFn(h)):(l!=null||(l=O(m.viewQuery)),l=l.callFn(h)),u.isSignal){s.push(cp);return}let d=i(),p=O(m.loadQuery).callFn([]),g=O(m.queryRefresh).callFn([d.set(p)]),v=J(Gt).prop(u.propertyName).set(u.first?d.prop("first"):d);s.push(g.and(v).toStmt())}),o!==null&&r.push(new Qe(o)),l!==null&&r.push(new Qe(l));let c=n?`${n}_Query`:null;return Qn([new Oe(Si,yl),new Oe(Gt,null)],[pl(1,r),pl(2,qm(s))],Zt,null,c)}function CD(t,e,n){let r=[],s=[],i=Bd(u=>s.push(u),Qu),o=null,l=null;for(let u of t){let h=Hm(u,e,[J("dirIndex")]);if(u.isSignal?(o!=null||(o=O(m.contentQuerySignal)),o=o.callFn(h)):(l!=null||(l=O(m.contentQuery)),l=l.callFn(h)),u.isSignal){s.push(cp);continue}let d=i(),p=O(m.loadQuery).callFn([]),g=O(m.queryRefresh).callFn([d.set(p)]),v=J(Gt).prop(u.propertyName).set(u.first?d.prop("first"):d);s.push(g.and(v).toStmt())}o!==null&&r.push(new Qe(o)),l!==null&&r.push(new Qe(l));let c=n?`${n}_ContentQueries`:null;return Qn([new Oe(Si,yl),new Oe(Gt,null),new Oe("dirIndex",null)],[pl(1,r),pl(2,qm(s))],Zt,null,c)}var hl=class extends Uw{constructor(){super(Cu)}parse(e,n,r){return super.parse(e,n,r)}},Ta=".",AD="attr",cc="animate",ND="class",ID="style",DD="*",uc="animate-",Ru=class{constructor(e,n,r){a(this,"_exprParser");a(this,"_schemaRegistry");a(this,"errors");this._exprParser=e,this._schemaRegistry=n,this.errors=r}createBoundHostProperties(e,n){let r=[];for(let s of Object.keys(e)){let i=e[s];typeof i=="string"?this.parsePropertyBinding(s,i,!0,!1,n,n.start.offset,void 0,[],r,n):this._reportError(`Value of the host property binding "${s}" needs to be a string representing an expression but got "${i}" (${typeof i})`,n)}return r}createDirectiveHostEventAsts(e,n){let r=[];for(let s of Object.keys(e)){let i=e[s];typeof i=="string"?this.parseEvent(s,i,!1,n,n,[],r,n):this._reportError(`Value of the host listener "${s}" needs to be a string representing an expression but got "${i}" (${typeof i})`,n)}return r}parseInterpolation(e,n,r){let s=n.fullStart.offset;try{let i=this._exprParser.parseInterpolation(e,n,s,r);return i&&this.errors.push(...i.errors),i}catch(i){return this._reportError(`${i}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,s)}}parseInterpolationExpression(e,n){let r=n.start.offset;try{let s=this._exprParser.parseInterpolationExpression(e,n,r);return s&&this.errors.push(...s.errors),s}catch(s){return this._reportError(`${s}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)}}parseInlineTemplateBinding(e,n,r,s,i,o,l,c){let u=r.start.offset+DD.length,h=this._parseTemplateBindings(e,n,r,u,s);for(let d of h){let p=ar(r,d.sourceSpan),g=d.key.source,v=ar(r,d.key.span);if(d instanceof So){let E=d.value?d.value.source:"$implicit",N=d.value?ar(r,d.value.span):void 0;l.push(new Oc(g,E,p,v,N))}else if(d.value){let E=c?p:r,N=ar(r,d.value.ast.sourceSpan);this._parsePropertyAst(g,d.value,!1,E,v,N,i,o)}else i.push([g,""]),this.parseLiteralAttr(g,null,v,s,void 0,i,o,v)}}_parseTemplateBindings(e,n,r,s,i){try{let o=this._exprParser.parseTemplateBindings(e,n,r,s,i);return o.errors.forEach(l=>this.errors.push(l)),o.warnings.forEach(l=>{this._reportError(l,r,jn.WARNING)}),o.templateBindings}catch(o){return this._reportError(`${o}`,r),[]}}parseLiteralAttr(e,n,r,s,i,o,l,c){pc(e)?(e=e.substring(1),c!==void 0&&(c=ar(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,jn.ERROR),this._parseLegacyAnimation(e,n,r,s,c,i,o,l)):l.push(new Gs(e,this._exprParser.wrapLiteralPrimitive(n,"",s),cn.LITERAL_ATTR,r,c,i))}parsePropertyBinding(e,n,r,s,i,o,l,c,u,h){e.length===0&&this._reportError("Property name is missing in binding",i);let d=!1;e.startsWith(uc)?(d=!0,e=e.substring(uc.length),h!==void 0&&(h=ar(h,new tt(h.start.offset+uc.length,h.end.offset)))):pc(e)&&(d=!0,e=e.substring(1),h!==void 0&&(h=ar(h,new tt(h.start.offset+1,h.end.offset)))),d?this._parseLegacyAnimation(e,n,i,o,h,l,c,u):e.startsWith(`${cc}${Ta}`)?this._parseAnimation(e,this.parseBinding(n,r,l||i,o),i,h,l,c,u):this._parsePropertyAst(e,this.parseBinding(n,r,l||i,o),s,i,h,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 Gs(e,n,r?cn.TWO_WAY:cn.DEFAULT,s,i,o))}_parseAnimation(e,n,r,s,i,o,l){o.push([e,n.source]),l.push(new Gs(e,n,cn.ANIMATION,r,s,i))}_parseLegacyAnimation(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 Gs(e,u,cn.LEGACY_ANIMATION,r,i,o))}parseBinding(e,n,r,s){try{let i=n?this._exprParser.parseSimpleBinding(e,r,s):this._exprParser.parseBinding(e,r,s);return i&&this.errors.push(...i.errors),i}catch(i){return this._reportError(`${i}`,r),this._exprParser.wrapLiteralPrimitive("ERROR",r,s)}}createBoundElementProperty(e,n,r=!1,s=!0){if(n.isLegacyAnimation)return new Ma(n.name,K.LegacyAnimation,ue.NONE,n.expression,null,n.sourceSpan,n.keySpan,n.valueSpan);let i=null,o,l=null,c=n.name.split(Ta),u;if(c.length>1)if(c[0]==AD){l=c.slice(1).join(Ta),r||this._validatePropertyOrAttributeName(l,n.sourceSpan,!0),u=hc(this._schemaRegistry,e,l,!0);let h=l.indexOf(":");if(h>-1){let d=l.substring(0,h),p=l.substring(h+1);l=wa(d,p)}o=K.Attribute}else c[0]==ND?(l=c[1],o=K.Class,u=[ue.NONE]):c[0]==ID?(i=c.length>2?c[2]:null,l=c[1],o=K.Style,u=[ue.STYLE]):c[0]==cc&&(l=n.name,o=K.Animation,u=[ue.NONE]);if(l===null){let h=this._schemaRegistry.getMappedPropName(n.name);l=s?h:n.name,u=hc(this._schemaRegistry,e,h,!1),o=n.type===cn.TWO_WAY?K.TwoWay:K.Property,r||this._validatePropertyOrAttributeName(h,n.sourceSpan,!1)}return new Ma(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),pc(e)?(e=e.slice(1),c!==void 0&&(c=ar(c,new tt(c.start.offset+1,c.end.offset))),this._parseLegacyAnimationEvent(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 hc(this._schemaRegistry,e,s,r)}parseEventListenerName(e){let[n,r]=dE(e,[null,e]);return{eventName:r,target:n}}parseLegacyAnimationEventName(e){let n=mE(e,[e,null]);return{eventName:n[0],phase:n[1]===null?null:n[1].toLowerCase()}}_parseLegacyAnimationEvent(e,n,r,s,i,o){let{eventName:l,phase:c}=this.parseLegacyAnimationEventName(e),u=this._parseAction(n,s);i.push(new La(l,c,De.LegacyAnimation,u,r,s,o)),l.length===0&&this._reportError("Animation event name is missing in binding",r),c?c!=="start"&&c!=="done"&&this._reportError(`The provided animation output phase value "${c}" for "@${l}" is not supported (use start or done)`,r):this._reportError(`The animation trigger output event (@${l}) is missing its phase value name (start or done are currently supported)`,r)}_parseRegularEvent(e,n,r,s,i,o,l,c){let{eventName:u,target:h}=this.parseEventListenerName(e),d=this.errors.length,p=this._parseAction(n,i),g=this.errors.length===d;o.push([e,p.source]),r&&g&&!this._isAllowedAssignmentEvent(p)&&this._reportError("Unsupported expression in a two-way binding",s);let v=De.Regular;r&&(v=De.TwoWay),e.startsWith(`${cc}${Ta}`)&&(v=De.Animation),l.push(new La(u,h,v,p,s,i,c))}_parseAction(e,n){let r=n&&n.start?n.start.offset:0;try{let s=this._exprParser.parseAction(e,n,r);return s&&this.errors.push(...s.errors),!s||s.ast instanceof et?(this._reportError("Empty expressions are not allowed",n),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)):s}catch(s){return this._reportError(`${s}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)}}_reportError(e,n,r=jn.ERROR){this.errors.push(new G(n,e,r))}_validatePropertyOrAttributeName(e,n,r){let s=r?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);s.error&&this._reportError(s.msg,n,jn.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof ve?this._isAllowedAssignmentEvent(e.ast):e instanceof mo?this._isAllowedAssignmentEvent(e.expression):e instanceof Ct&&e.args.length===1&&e.receiver instanceof le&&e.receiver.name==="$any"&&e.receiver.receiver instanceof Je?this._isAllowedAssignmentEvent(e.args[0]):(e instanceof le||e instanceof Pn)&&!Pu(e)}};function Pu(t){return t instanceof Ze||t instanceof Ar?!0:t instanceof vo?Pu(t.expression):t instanceof le||t instanceof Pn||t instanceof Ct?Pu(t.receiver):!1}function pc(t){return t[0]=="@"}function hc(t,e,n,r){let s,i=o=>t.securityContext(o,n,r);return e===null?s=t.allKnownElementNames().map(i):(s=[],hn.parse(e).forEach(o=>{let l=o.element?[o.element]:t.allKnownElementNames(),c=new Set(o.notSelectors.filter(h=>h.isElementSelector()).map(h=>h.element)),u=l.filter(h=>!c.has(h));s.push(...u.map(i))})),s.length===0?[ue.NONE]:Array.from(new Set(s)).sort()}function ar(t,e){let n=e.start-t.start.offset,r=e.end-t.end.offset;return new H(t.start.moveBy(n),t.end.moveBy(r),t.fullStart.moveBy(n),t.details)}function bD(t){if(t==null||t.length===0||t[0]=="/")return!1;let e=t.match(_D);return e===null||e[1]=="package"||e[1]=="asset"}var _D=/^([^:/?#]+):/,kD="select",RD="link",PD="rel",LD="href",MD="stylesheet",OD="style",FD="script",BD="ngNonBindable",$D="ngProjectAs";function Wm(t){let e=null,n=null,r=null,s=!1,i="";t.attrs.forEach(c=>{let u=c.name.toLowerCase();u==kD?e=c.value:u==LD?n=c.value:u==PD?r=c.value:c.name==BD?s=!0:c.name==$D&&c.value.length>0&&(i=c.value)}),e=UD(e);let o=t.name.toLowerCase(),l=bt.OTHER;return Fc(o)?l=bt.NG_CONTENT:o==OD?l=bt.STYLE:o==FD?l=bt.SCRIPT:o==RD&&r==MD&&(l=bt.STYLESHEET),new Lu(l,e,n,s,i)}var bt;(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"})(bt||(bt={}));var Lu=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 UD(t){return t===null||t.length===0?"*":t}var VD=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,GD=/^track\s+([\S\s]*)/,HD=/^(as\s+)(.*)/,Al=/^else[^\S\r\n]+if/,qD=/^let\s+([\S\s]*)/,WD=/^[$A-Z_][0-9A-Z_$]*$/i,Bf=/(\s*)(\S+)(\s*)/,Ji=new Set(["$index","$first","$last","$even","$odd","$count"]);function $f(t){return t==="empty"}function Uf(t){return t==="else"||Al.test(t)}function jD(t,e,n,r){let s=JD(e),i=[],o=Vf(t,s,r);o!==null&&i.push(new yr(o.expression,ge(n,t.children,t.children),o.expressionAlias,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan,t.i18n));for(let d of e)if(Al.test(d.name)){let p=Vf(d,s,r);if(p!==null){let g=ge(n,d.children,d.children);i.push(new yr(p.expression,g,p.expressionAlias,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}}else if(d.name==="else"){let p=ge(n,d.children,d.children);i.push(new yr(null,p,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,h=i[i.length-1];return h!==void 0&&(u=new H(l.start,h.sourceSpan.end)),{node:new br(i,u,t.startSourceSpan,c,t.nameSpan),errors:s}}function KD(t,e,n,r){var c,u;let s=[],i=XD(t,s,r),o=null,l=null;for(let h of e)h.name==="empty"?l!==null?s.push(new G(h.sourceSpan,"@for loop can only have one @empty block")):h.parameters.length>0?s.push(new G(h.sourceSpan,"@empty block cannot have parameters")):l=new Co(ge(n,h.children,h.children),h.sourceSpan,h.startSourceSpan,h.endSourceSpan,h.nameSpan,h.i18n):s.push(new G(h.sourceSpan,`Unrecognized @for loop block "${h.name}"`));if(i!==null)if(i.trackBy===null)s.push(new G(t.startSourceSpan,'@for loop must have a "track" expression'));else{let h=(c=l==null?void 0:l.endSourceSpan)!=null?c:t.endSourceSpan,d=new H(t.sourceSpan.start,(u=h==null?void 0:h.end)!=null?u:t.sourceSpan.end);YD(i.trackBy.expression,i.trackBy.keywordSpan,s),o=new Fn(i.itemName,i.expression,i.trackBy.expression,i.trackBy.keywordSpan,i.context,ge(n,t.children,t.children),l,d,t.sourceSpan,t.startSourceSpan,h,t.nameSpan,t.i18n)}return{node:o,errors:s}}function zD(t,e,n){let r=ZD(t),s=t.parameters.length>0?qo(t.parameters[0],n):n.parseBinding("",!1,t.sourceSpan,0),i=[],o=[],l=[],c=null,u=null;for(let d of t.children){if(!(d instanceof zt))continue;if((d.name!=="case"||d.parameters.length===0)&&d.name!=="default"&&d.name!=="default never"){o.push(new Fa(d.name,d.sourceSpan,d.nameSpan));continue}u!==null&&r.push(new G(d.sourceSpan,'@default block with "never" parameter must be the last case in a switch'));let p=d.name==="case",g=null;if(p)g=qo(d.parameters[0],n);else if(d.name==="default never"){(d.children.length>0||d.endSourceSpan!==null&&d.endSourceSpan.start.offset!==d.endSourceSpan.end.offset)&&r.push(new G(d.sourceSpan,'@default block with "never" parameter cannot have a body')),l.length>0&&r.push(new G(d.sourceSpan,'A @case block with no body cannot be followed by a @default block with "never" parameter')),u=new Gc(d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan);continue}let v=new Vc(g,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan);if(l.push(v),d.children.length===0&&d.endSourceSpan!==null&&d.endSourceSpan.start.offset===d.endSourceSpan.end.offset){c===null&&(c=d.sourceSpan);continue}let N=d.sourceSpan,D=d.startSourceSpan;c!==null&&(N=new H(c.start,d.sourceSpan.end),D=new H(c.start,d.startSourceSpan.end),c=null);let b=new wo(l,ge(e,d.children,d.children),N,D,d.endSourceSpan,d.nameSpan,d.i18n);i.push(b),l=[]}return{node:new Dr(s,i,o,u,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan),errors:r}}function XD(t,e,n){var d;if(t.parameters.length===0)return e.push(new G(t.startSourceSpan,"@for loop does not have an expression")),null;let[r,...s]=t.parameters,i=(d=eb(r,e))==null?void 0:d.match(VD);if(!i||i[2].trim().length===0)return e.push(new G(r.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;let[,o,l]=i;Ji.has(o)&&e.push(new G(r.sourceSpan,`@for loop item name cannot be one of ${Array.from(Ji).join(", ")}.`));let c=r.expression.split(" ")[0],u=new H(r.sourceSpan.start,r.sourceSpan.start.moveBy(c.length)),h={itemName:new Vt(o,"$implicit",u,u),trackBy:null,expression:qo(r,n,l),context:Array.from(Ji,p=>{let g=new H(t.startSourceSpan.end,t.startSourceSpan.end);return new Vt(p,p,g,g)})};for(let p of s){let g=p.expression.match(qD);if(g!==null){let E=new H(p.sourceSpan.start.moveBy(g[0].length-g[1].length),p.sourceSpan.end);QD(p.sourceSpan,g[1],E,o,h.context,e);continue}let v=p.expression.match(GD);if(v!==null){if(h.trackBy!==null)e.push(new G(p.sourceSpan,'@for loop can only have one "track" expression'));else{let E=qo(p,n,v[1]);E.ast instanceof et&&e.push(new G(t.startSourceSpan,'@for loop must have a "track" expression'));let N=new H(p.sourceSpan.start,p.sourceSpan.start.moveBy(5));h.trackBy={expression:E,keywordSpan:N}}continue}e.push(new G(p.sourceSpan,`Unrecognized @for loop parameter "${p.expression}"`))}return h}function YD(t,e,n){let r=new Mu;t.ast.visit(r),r.hasPipe&&n.push(new G(e,"Cannot use pipes in track expressions"))}function QD(t,e,n,r,s,i){var c,u,h;let o=e.split(","),l=n.start;for(let d of o){let p=d.split("="),g=p.length===2?p[0].trim():"",v=p.length===2?p[1].trim():"";if(g.length===0||v.length===0)i.push(new G(t,'Invalid @for loop "let" parameter. Parameter should match the pattern "<name> = <variable name>"'));else if(!Ji.has(v))i.push(new G(t,`Unknown "let" parameter variable "${v}". The allowed variables are: ${Array.from(Ji).join(", ")}`));else if(g===r)i.push(new G(t,`Invalid @for loop "let" parameter. Variable cannot be called "${r}"`));else if(s.some(E=>E.name===g))i.push(new G(t,`Duplicate "let" parameter variable "${v}"`));else{let[,E,N]=(c=p[0].match(Bf))!=null?c:[],D=E!==void 0&&p.length===2?new H(l.moveBy(E.length),l.moveBy(E.length+N.length)):n,b;if(p.length===2){let[,L,ne]=(u=p[1].match(Bf))!=null?u:[];b=L!==void 0?new H(l.moveBy(p[0].length+1+L.length),l.moveBy(p[0].length+1+L.length+ne.length)):void 0}let P=new H(D.start,(h=b==null?void 0:b.end)!=null?h:D.end);s.push(new Vt(g,v,P,D,b))}l=l.moveBy(d.length+1)}}function JD(t){let e=[],n=!1;for(let r=0;r<t.length;r++){let s=t[r];s.name==="else"?(n?e.push(new G(s.startSourceSpan,"Conditional can only have one @else block")):t.length>1&&r<t.length-1?e.push(new G(s.startSourceSpan,"@else block must be last inside the conditional")):s.parameters.length>0&&e.push(new G(s.startSourceSpan,"@else block cannot have parameters")),n=!0):Al.test(s.name)||e.push(new G(s.startSourceSpan,`Unrecognized conditional block @${s.name}`))}return e}function ZD(t){let e=[],n=!1;if(t.parameters.length!==1)return e.push(new G(t.startSourceSpan,"@switch block must have exactly one parameter")),e;for(let r of t.children)if(!(r instanceof Bo||r instanceof Ns&&r.value.trim().length===0)){if(!(r instanceof zt)||r.name!=="case"&&r.name!=="default"&&r.name!=="default never"){e.push(new G(r.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}r.name==="default never"?(n&&e.push(new G(r.startSourceSpan,"@switch block can only have one @default block")),n=!0):r.name==="default"?(n?e.push(new G(r.startSourceSpan,"@switch block can only have one @default block")):r.parameters.length>0&&e.push(new G(r.startSourceSpan,"@default block cannot have parameters")),n=!0):r.name==="case"&&r.parameters.length!==1&&e.push(new G(r.startSourceSpan,"@case block must have exactly one parameter"))}return e}function qo(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 Vf(t,e,n){if(t.parameters.length===0)return e.push(new G(t.startSourceSpan,"Conditional block does not have an expression")),null;let r=qo(t.parameters[0],n),s=null;for(let i=1;i<t.parameters.length;i++){let o=t.parameters[i],l=o.expression.match(HD);if(l===null)e.push(new G(o.sourceSpan,`Unrecognized conditional parameter "${o.expression}"`));else if(t.name!=="if"&&!Al.test(t.name))e.push(new G(o.sourceSpan,'"as" expression is only allowed on `@if` and `@else if` blocks'));else if(s!==null)e.push(new G(o.sourceSpan,'Conditional can only have one "as" expression'));else{let c=l[2].trim();if(WD.test(c)){let u=o.sourceSpan.start.moveBy(l[1].length),h=new H(u,u.moveBy(c.length));s=new Vt(c,c,h,h)}else e.push(new G(o.sourceSpan,'"as" expression must be a valid JavaScript identifier'))}}return{expression:r,expressionAlias:s}}function eb(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 G(t.sourceSpan,"Unclosed parentheses in expression")),null):n.slice(i,o)}var Mu=class extends Nr{constructor(){super(...arguments);a(this,"hasPipe",!1)}visitPipe(){this.hasPipe=!0}},tb=/^\d+\.?\d*(ms|s)?$/,nb=/^\s$/,Gf=new Map([[Xt,mt],[_n,Wn],[yt,Be]]),it;(function(t){t.IDLE="idle",t.TIMER="timer",t.INTERACTION="interaction",t.IMMEDIATE="immediate",t.HOVER="hover",t.VIEWPORT="viewport",t.NEVER="never"})(it||(it={}));function rb({expression:t,sourceSpan:e},n,r){let s=t.indexOf("never"),i=new H(e.start.moveBy(s),e.start.moveBy(s+5)),o=up(t,e),l=pp(t,e);s===-1?r.push(new G(e,'Could not find "never" keyword in expression')):hp("never",n,r,new $c(i,e,o,null,l))}function fc({expression:t,sourceSpan:e},n,r,s){let i=t.indexOf("when"),o=new H(e.start.moveBy(i),e.start.moveBy(i+4)),l=up(t,e),c=pp(t,e);if(i===-1)s.push(new G(e,'Could not find "when" keyword in expression'));else{let u=Wo(t,i+1),h=n.parseBinding(t.slice(u),!1,e,e.start.offset+u);hp("when",r,s,new Oa(h,e,l,o,c))}}function dc({expression:t,sourceSpan:e},n,r,s,i){let o=t.indexOf("on"),l=new H(e.start.moveBy(o),e.start.moveBy(o+2)),c=up(t,e),u=pp(t,e);if(o===-1)s.push(new G(e,'Could not find "on" keyword in expression'));else{let h=Wo(t,o+1),d=t.startsWith("hydrate");new Ou(t,n,h,e,r,s,d?pb:ub,d,c,l,u).parse()}}function up(t,e){return t.startsWith("prefetch")?new H(e.start,e.start.moveBy(8)):null}function pp(t,e){return t.startsWith("hydrate")?new H(e.start,e.start.moveBy(7)):null}var Ou=class{constructor(e,n,r,s,i,o,l,c,u,h,d){a(this,"expression");a(this,"bindingParser");a(this,"start");a(this,"span");a(this,"triggers");a(this,"errors");a(this,"validator");a(this,"isHydrationTrigger");a(this,"prefetchSpan");a(this,"onSourceSpan");a(this,"hydrateSpan");a(this,"index",0);a(this,"tokens");this.expression=e,this.bindingParser=n,this.start=r,this.span=s,this.triggers=i,this.errors=o,this.validator=l,this.isHydrationTrigger=c,this.prefetchSpan=u,this.onSourceSpan=h,this.hydrateSpan=d,this.tokens=new Vo().tokenize(e.slice(r))}parse(){for(;this.tokens.length>0&&this.index<this.tokens.length;){let e=this.token();if(!e.isIdentifier()){this.unexpectedToken(e);break}if(this.isFollowedByOrLast(st))this.consumeTrigger(e,[]),this.advance();else if(this.isFollowedByOrLast(yt)){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 H(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,h=new H(o?this.span.start:r,i);try{switch(e.toString()){case it.IDLE:this.trackTrigger("idle",sb(n,s,h,c,l,u));break;case it.TIMER:this.trackTrigger("timer",ib(n,s,h,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case it.INTERACTION:this.trackTrigger("interaction",lb(n,s,h,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case it.IMMEDIATE:this.trackTrigger("immediate",ob(n,s,h,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case it.HOVER:this.trackTrigger("hover",ab(n,s,h,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case it.VIEWPORT:this.trackTrigger("viewport",cb(this.start,this.isHydrationTrigger,this.bindingParser,n,s,h,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,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(yt))return this.unexpectedToken(this.token()),e;this.advance();let n=[],r=[];for(;this.index<this.tokens.length;){let s=this.token();if(s.isCharacter(Be)&&n.length===0){r.length&&e.push({expression:this.tokenRangeText(r),start:r[0].index});break}if(s.type===q.Character&&Gf.has(s.numValue)&&n.push(Gf.get(s.numValue)),n.length>0&&s.isCharacter(n[n.length-1])&&n.pop(),n.length===0&&s.isCharacter(st)&&r.length>0){e.push({expression:this.tokenRangeText(r),start:r[0].index}),this.advance(),r=[];continue}r.push(s),this.advance()}return(!this.token().isCharacter(Be)||n.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(st)&&this.unexpectedToken(this.tokens[this.index+1]),e}tokenRangeText(e){return e.length===0?"":this.expression.slice(this.start+e[0].index,this.start+e[e.length-1].end)}trackTrigger(e,n){hp(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 G(new H(r,s),n))}unexpectedToken(e){this.error(e,`Unexpected token "${e}"`)}};function hp(t,e,n,r){e[t]?n.push(new G(r.sourceSpan,`Duplicate "${t}" trigger is not allowed`)):e[t]=r}function sb(t,e,n,r,s,i){if(t.length>0)throw new Error(`"${it.IDLE}" trigger cannot have parameters`);return new Uc(e,n,r,s,i)}function ib(t,e,n,r,s,i){if(t.length!==1)throw new Error(`"${it.TIMER}" trigger must have exactly one parameter`);let o=fl(t[0].expression);if(o===null)throw new Error(`Could not parse time value of trigger "${it.TIMER}"`);return new gs(o,e,n,r,s,i)}function ob(t,e,n,r,s,i){if(t.length>0)throw new Error(`"${it.IMMEDIATE}" trigger cannot have parameters`);return new ai(e,n,r,s,i)}function ab(t,e,n,r,s,i,o){var l,c;return o(it.HOVER,t),new ms((c=(l=t[0])==null?void 0:l.expression)!=null?c:null,e,n,r,s,i)}function lb(t,e,n,r,s,i,o){var l,c;return o(it.INTERACTION,t),new ys((c=(l=t[0])==null?void 0:l.expression)!=null?c:null,e,n,r,s,i)}function cb(t,e,n,r,s,i,o,l,c,u){u(it.VIEWPORT,r);let h,d;if(r.length===0)h=d=null;else if(!r[0].expression.startsWith("{"))h=r[0].expression,d=null;else{let p=n.parseBinding(r[0].expression,!1,i,i.start.offset+t+r[0].start);if(p.ast instanceof fs){if(p.ast.keys.some(v=>v.kind==="spread"))throw new Error("Spread operator are not allowed in this context");if(p.ast.keys.some(v=>v.kind==="property"&&v.key==="root"))throw new Error('The "root" option is not supported in the options parameter of the "viewport" trigger')}else throw new Error('Options parameter of the "viewport" trigger must be an object literal');let g=p.ast.keys.findIndex(v=>v.kind==="property"&&v.key==="trigger");if(g===-1)h=null,d=p.ast;else{let v=p.ast.values[g],E=(N,D)=>D!==g;if(!(v instanceof le)||!(v.receiver instanceof Je))throw new Error('"trigger" option of the "viewport" trigger must be an identifier');h=v.name,d=new fs(p.ast.span,p.ast.sourceSpan,p.ast.keys.filter(E),p.ast.values.filter(E))}}if(e&&h!==null)throw new Error('"viewport" hydration trigger cannot have a "trigger"');if(d){let p=Fu.findDynamicNode(d);if(p!==null)throw new Error(`Options of the "viewport" trigger must be an object literal containing only literal values, but "${p.constructor.name}" was found`)}return new Ir(h,d,s,i,o,l,c)}function ub(t,e){if(e.length>1)throw new Error(`"${t}" trigger can only have zero or one parameters`)}function pb(t,e){if(t===it.VIEWPORT){if(e.length>1)throw new Error(`Hydration trigger "${t}" cannot have more than one parameter`);return}if(e.length>0)throw new Error(`Hydration trigger "${t}" cannot have parameters`)}function Wo(t,e=0){let n=!1;for(let r=e;r<t.length;r++)if(nb.test(t[r]))n=!0;else if(n)return r;return-1}function fl(t){let e=t.match(tb);if(!e)return null;let[n,r]=e;return parseFloat(n)*(r==="s"?1e3:1)}var Fu=class t extends Nr{constructor(){super(...arguments);a(this,"dynamicNode",null)}static findDynamicNode(n){let r=new t;return r.visit(n),r.dynamicNode}visit(n){!(n instanceof ve)&&!(n instanceof dt)&&!(n instanceof po)&&!(n instanceof fs)?this.dynamicNode=n:super.visit(n)}},hb=/^prefetch\s+when\s/,fb=/^prefetch\s+on\s/,db=/^hydrate\s+when\s/,mb=/^hydrate\s+on\s/,gb=/^hydrate\s+never(\s*)$/,jm=/^minimum\s/,yb=/^after\s/,vb=/^when\s/,Sb=/^on\s/;function Bu(t){return t==="placeholder"||t==="loading"||t==="error"}function Eb(t,e,n,r){let s=[],{placeholder:i,loading:o,error:l}=Tb(e,s,n),{triggers:c,prefetchTriggers:u,hydrateTriggers:h}=Ab(t,r,s),d=t.endSourceSpan,p=t.sourceSpan.end;if(e.length>0){let E=e[e.length-1];d=E.endSourceSpan,p=E.sourceSpan.end}let g=new H(t.sourceSpan.start,p);return{node:new On(ge(n,t.children,t.children),c,u,h,i,o,l,t.nameSpan,g,t.sourceSpan,t.startSourceSpan,d,t.i18n),errors:s}}function Tb(t,e,n){let r=null,s=null,i=null;for(let o of t)try{if(!Bu(o.name)){e.push(new G(o.startSourceSpan,`Unrecognized block "@${o.name}"`));break}switch(o.name){case"placeholder":r!==null?e.push(new G(o.startSourceSpan,"@defer block can only have one @placeholder block")):r=xb(o,n);break;case"loading":s!==null?e.push(new G(o.startSourceSpan,"@defer block can only have one @loading block")):s=wb(o,n);break;case"error":i!==null?e.push(new G(o.startSourceSpan,"@defer block can only have one @error block")):i=Cb(o,n);break}}catch(l){e.push(new G(o.startSourceSpan,l.message))}return{placeholder:r,loading:s,error:i}}function xb(t,e){let n=null;for(let r of t.parameters)if(jm.test(r.expression)){if(n!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let s=fl(r.expression.slice(Wo(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 Eo(ge(e,t.children,t.children),n,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function wb(t,e){let n=null,r=null;for(let s of t.parameters)if(yb.test(s.expression)){if(n!=null)throw new Error('@loading block can only have one "after" parameter');let i=fl(s.expression.slice(Wo(s.expression)));if(i===null)throw new Error('Could not parse time value of parameter "after"');n=i}else if(jm.test(s.expression)){if(r!=null)throw new Error('@loading block can only have one "minimum" parameter');let i=fl(s.expression.slice(Wo(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 To(ge(e,t.children,t.children),n,r,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Cb(t,e){if(t.parameters.length>0)throw new Error("@error block cannot have parameters");return new xo(ge(e,t.children,t.children),t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Ab(t,e,n,r){let s={},i={},o={};for(let l of t.parameters)vb.test(l.expression)?fc(l,e,s,n):Sb.test(l.expression)?dc(l,e,s,n):hb.test(l.expression)?fc(l,e,i,n):fb.test(l.expression)?dc(l,e,i,n):db.test(l.expression)?fc(l,e,o,n):mb.test(l.expression)?dc(l,e,o,n):gb.test(l.expression)?rb(l,o,n):n.push(new G(l.sourceSpan,"Unrecognized trigger"));return o.never&&Object.keys(o).length>1&&n.push(new G(t.startSourceSpan,"Cannot specify additional `hydrate` triggers if `hydrate never` is present")),{triggers:s,prefetchTriggers:i,hydrateTriggers:o}}var Nb=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,Hf=1,qf=2,Wf=3,jf=4,Kf=5,Ib=6,Ui=7,lr={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},mc="*",Db=new Set(["link","style","script","ng-template","ng-container","ng-content"]),bb=new Set(["ngProjectAs","ngNonBindable"]);function _b(t,e,n){let r=new $u(e,n),s=ge(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 $u=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=Aa(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=Wm(e);if(r.type===bt.SCRIPT)return null;if(r.type===bt.STYLE){let D=kb(e);return D!==null&&this.styles.push(D),null}else if(r.type===bt.STYLESHEET&&bD(r.hrefAttr))return this.styleUrls.push(r.hrefAttr),null;let s=ME(e.name),{attributes:i,boundEvents:o,references:l,variables:c,templateVariables:u,elementHasInlineTemplate:h,parsedProperties:d,templateParsedProperties:p,i18nAttrsMeta:g}=this.prepareAttributes(e.attrs,s),v=this.extractDirectives(e),E;r.nonBindable?E=ge(zf,e.children).flat(1/0):E=ge(this,e.children,e.children);let N;if(r.type===bt.NG_CONTENT){let D=r.selectAttr,b=e.attrs.map(P=>this.visitAttribute(P));N=new vs(D,b,E,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n),this.ngContentSelectors.push(D)}else if(s){let D=this.categorizePropertyAttributes(e.name,d,g);N=new de(e.name,i,D.bound,o,v,[],E,l,c,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{let D=this.categorizePropertyAttributes(e.name,d,g);if(e.name==="ng-container")for(let b of D.bound)b.type===K.Attribute&&this.reportError("Attribute bindings are not supported on ng-container. Use property bindings instead.",b.sourceSpan);N=new ke(e.name,i,D.bound,o,v,E,l,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n)}return h&&(N=this.wrapInTemplate(N,p,u,g,s,n)),n&&(this.inI18nBlock=!1),N}visitAttribute(e){return new sn(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(!Aa(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($E)){let l=i.trim(),c=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);r[l]=new ds(c,o.sourceSpan)}else s[i]=this._visitTextWithInterpolation(o.text,o.sourceSpan,null)}),new Xu(r,s,e.sourceSpan,n)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new El(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 et&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new En(e.name,r,e.sourceSpan,e.nameSpan,e.valueSpan)}visitComponent(e){let n=Aa(e.i18n);if(n&&(this.inI18nBlock&&this.reportError("Cannot mark a component as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0),e.tagName!==null&&Db.has(e.tagName))return this.reportError(`Tag name "${e.tagName}" cannot be used as a component tag`,e.startSourceSpan),null;let{attributes:r,boundEvents:s,references:i,templateVariables:o,elementHasInlineTemplate:l,parsedProperties:c,templateParsedProperties:u,i18nAttrsMeta:h}=this.prepareAttributes(e.attrs,!1);this.validateSelectorlessReferences(i);let d=this.extractDirectives(e),p;e.attrs.find(E=>E.name==="ngNonBindable")?p=ge(zf,e.children).flat(1/0):p=ge(this,e.children,e.children);let g=this.categorizePropertyAttributes(e.tagName,c,h),v=new bn(e.componentName,e.tagName,e.fullName,r,g.bound,s,d,p,i,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return l&&(v=this.wrapInTemplate(v,u,o,h,!1,n)),n&&(this.inI18nBlock=!1),v}visitDirective(){return null}visitBlockParameter(){return null}visitBlock(e,n){let r=Array.isArray(n)?n.indexOf(e):-1;if(r===-1)throw new Error("Visitor invoked incorrectly. Expecting visitBlock to be invoked siblings array as its context");if(this.processedNodes.has(e))return null;let s=null;switch(e.name){case"defer":s=Eb(e,this.findConnectedBlocks(r,n,Bu),this,this.bindingParser);break;case"switch":s=zD(e,this,this.bindingParser);break;case"for":s=KD(e,this.findConnectedBlocks(r,n,$f),this,this.bindingParser);break;case"if":s=jD(e,this.findConnectedBlocks(r,n,Uf),this,this.bindingParser);break;default:let i;Bu(e.name)?(i=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):$f(e.name)?(i=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):Uf(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 Fa(e.name,e.sourceSpan,e.nameSpan),errors:[new G(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 Bo)){if(o instanceof Ns&&o.value.trim().length===0){this.processedNodes.add(o);continue}if(!(o instanceof zt)||!r(o.name))break;s.push(o),this.processedNodes.add(o)}}return s}categorizePropertyAttributes(e,n,r){let s=[],i=[];return n.forEach(o=>{let l=r[o.name];if(o.isLiteral)i.push(new sn(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,l));else{let c=this.bindingParser.createBoundElementProperty(e,o,!0,!1);s.push(Rt.fromBoundElementProperty(c,l))}}),{bound:s,literal:i}}prepareAttributes(e,n){let r=[],s=[],i=[],o=[],l=[],c={},u=[],h=[],d=!1;for(let p of e){let g=!1,v=Xf(p.name),E=!1;if(p.i18n&&(c[p.name]=p.i18n),v.startsWith(mc)){d&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",p.sourceSpan),E=!0,d=!0;let N=p.value,D=v.substring(mc.length),b=[],P=p.valueSpan?p.valueSpan.fullStart.offset:p.sourceSpan.fullStart.offset+p.name.length;this.bindingParser.parseInlineTemplateBinding(D,N,p.sourceSpan,P,[],u,b,!0),h.push(...b.map(L=>new Vt(L.name,L.value,L.sourceSpan,L.keySpan,L.valueSpan)))}else g=this.parseAttribute(n,p,[],r,s,i,o);!g&&!E&&l.push(this.visitAttribute(p))}return{attributes:l,boundEvents:s,references:o,variables:i,templateVariables:h,elementHasInlineTemplate:d,parsedProperties:r,templateParsedProperties:u,i18nAttrsMeta:c}}parseAttribute(e,n,r,s,i,o,l){var D;let c=Xf(n.name),u=n.value,h=n.sourceSpan,d=n.valueSpan?n.valueSpan.fullStart.offset:h.fullStart.offset;function p(b,P,L){let ne=n.name.length-c.length,se=b.start.moveBy(P.length+ne),Ge=se.moveBy(L.length);return new H(se,Ge,se,L)}let g=c.match(Nb);if(g){if(g[Hf]!=null){let b=g[Ui],P=p(h,g[Hf],b);this.bindingParser.parsePropertyBinding(b,u,!1,!1,h,d,n.valueSpan,r,s,P)}else if(g[qf])if(e){let b=g[Ui],P=p(h,g[qf],b);this.parseVariable(b,u,h,P,n.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',h);else if(g[Wf]){let b=g[Ui],P=p(h,g[Wf],b);this.parseReference(b,u,h,P,n.valueSpan,l)}else if(g[jf]){let b=[],P=g[Ui],L=p(h,g[jf],P);this.bindingParser.parseEvent(P,u,!1,h,n.valueSpan||h,r,b,L),gc(b,i)}else if(g[Kf]){let b=g[Ui],P=p(h,g[Kf],b);this.bindingParser.parsePropertyBinding(b,u,!1,!0,h,d,n.valueSpan,r,s,P),this.parseAssignmentEvent(b,u,h,n.valueSpan,r,i,P,d)}else if(g[Ib]){let b=p(h,"",c);this.bindingParser.parseLiteralAttr(c,u,h,d,n.valueSpan,r,s,b)}return!0}let v=null;if(c.startsWith(lr.BANANA_BOX.start)?v=lr.BANANA_BOX:c.startsWith(lr.PROPERTY.start)?v=lr.PROPERTY:c.startsWith(lr.EVENT.start)&&(v=lr.EVENT),v!==null&&c.endsWith(v.end)&&c.length>v.start.length+v.end.length){let b=c.substring(v.start.length,c.length-v.end.length),P=p(h,v.start,b);if(v.start===lr.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(b,u,!1,!0,h,d,n.valueSpan,r,s,P),this.parseAssignmentEvent(b,u,h,n.valueSpan,r,i,P,d);else if(v.start===lr.PROPERTY.start)this.bindingParser.parsePropertyBinding(b,u,!1,!1,h,d,n.valueSpan,r,s,P);else{let L=[];this.bindingParser.parseEvent(b,u,!1,h,n.valueSpan||h,r,L,P),gc(L,i)}return!0}let E=p(h,"",c);return this.bindingParser.parsePropertyInterpolation(c,u,h,n.valueSpan,r,s,E,(D=n.valueTokens)!=null?D:null)}extractDirectives(e){let n=e instanceof ht?e.tagName:e.name,r=[],s=new Set;for(let i of e.directives){let o=!1;for(let g of i.attrs)g.name.startsWith(mc)?(o=!0,this.reportError(`Shorthand template syntax "${g.name}" is not supported inside a directive context`,g.sourceSpan)):bb.has(g.name)&&(o=!0,this.reportError(`Attribute "${g.name}" is not supported in a directive context`,g.sourceSpan));if(!o&&s.has(i.name)&&(o=!0,this.reportError(`Cannot apply directive "${i.name}" multiple times on the same element`,i.sourceSpan)),o)continue;let{attributes:l,parsedProperties:c,boundEvents:u,references:h,i18nAttrsMeta:d}=this.prepareAttributes(i.attrs,!1);this.validateSelectorlessReferences(h);let{bound:p}=this.categorizePropertyAttributes(n,c,d);for(let g of p)g.type!==K.Property&&g.type!==K.TwoWay&&(o=!0,this.reportError("Binding is not supported in a directive context",g.sourceSpan));o||(s.add(i.name),r.push(new vi(i.name,l,p,u,h,i.sourceSpan,i.startSourceSpan,i.endSourceSpan,void 0)))}return r}filterAnimationAttributes(e){return e.filter(n=>!n.name.startsWith("animate."))}filterAnimationInputs(e){return e.filter(n=>n.type!==K.Animation)}wrapInTemplate(e,n,r,s,i,o){let l=this.categorizePropertyAttributes("ng-template",n,s),c=[];l.literal.forEach(p=>c.push(p)),l.bound.forEach(p=>c.push(p));let u={attributes:[],inputs:[],outputs:[]};(e instanceof ke||e instanceof bn)&&(u.attributes.push(...this.filterAnimationAttributes(e.attributes)),u.inputs.push(...this.filterAnimationInputs(e.inputs)),u.outputs.push(...e.outputs));let h=i&&o?void 0:e.i18n,d;return e instanceof bn?d=e.tagName:e instanceof de?d=null:d=e.name,new de(d,u.attributes,u.inputs,u.outputs,[],c,[e],[],r,!1,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,h)}_visitTextWithInterpolation(e,n,r,s){let i=wm(e),o=this.bindingParser.parseInterpolation(i,n,r);return o?new ds(o,n,s):new qn(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 Jn(e,n,r,s,i))}parseAssignmentEvent(e,n,r,s,i,o,l,c){let u=[];this.bindingParser.parseEvent(`${e}Change`,n,!0,r,s||r,i,u,l),gc(u,o)}validateSelectorlessReferences(e){if(e.length===0)return;let n=new Set;for(let r of e)r.value.length>0?this.reportError("Cannot specify a value for a local reference in this context",r.valueSpan||r.sourceSpan):n.has(r.name)?this.reportError("Duplicate reference names are not allowed",r.sourceSpan):n.add(r.name)}reportError(e,n,r=jn.ERROR){this.errors.push(new G(n,e,r))}},Uu=class{visitElement(e){let n=Wm(e);if(n.type===bt.SCRIPT||n.type===bt.STYLE||n.type===bt.STYLESHEET)return null;let r=ge(this,e.children,null);return new ke(e.name,ge(this,e.attrs),[],[],[],r,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid)}visitComment(e){return null}visitAttribute(e){return new sn(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new qn(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,n){let r=[new qn(e.startSourceSpan.toString(),e.startSourceSpan),...ge(this,e.children)];return e.endSourceSpan!==null&&r.push(new qn(e.endSourceSpan.toString(),e.endSourceSpan)),r}visitBlockParameter(e,n){return null}visitLetDeclaration(e,n){return new qn(`@let ${e.name} = ${e.value};`,e.sourceSpan)}visitComponent(e,n){let r=ge(this,e.children,null);return new ke(e.fullName,ge(this,e.attrs),[],[],[],r,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,!1)}visitDirective(e,n){return null}},zf=new Uu;function Xf(t){return/^data-/i.test(t)?t.substring(5):t}function gc(t,e){e.push(...t.map(n=>vn.fromParsedEvent(n)))}function kb(t){return t.children.length!==1||!(t.children[0]instanceof Ns)?null:t.children[0].value}var Rb=[" ",`
|
|
37
|
-
`,"\r"," "];function Km(t,e,n={}){var L,ne,se,Ge;let{preserveWhitespaces:r,enableI18nLegacyMessageIdFormat:s}=n,i=(L=n.enableSelectorless)!=null?L:!1,o=Is(i),c=new hl().parse(t,e,me(C({leadingTriviaChars:Rb},n),{tokenizeExpansionForms:!0,tokenizeBlocks:(ne=n.enableBlockSyntax)!=null?ne:!0,tokenizeLet:(se=n.enableLetSyntax)!=null?se:!0,selectorlessEnabled:i}));if(!n.alwaysAttemptHtmlToR3AstConversion&&c.errors&&c.errors.length>0){let Ie={preserveWhitespaces:r,errors:c.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(Ie.commentNodes=[]),Ie}let u=c.rootNodes,h=!((Ge=n.preserveSignificantWhitespace)==null||Ge),d=new al(!r,s,n.preserveSignificantWhitespace,h),p=d.visitAllWithErrors(u);if(!n.alwaysAttemptHtmlToR3AstConversion&&p.errors&&p.errors.length>0){let Ie={preserveWhitespaces:r,errors:p.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(Ie.commentNodes=[]),Ie}u=p.rootNodes,r||(u=ge(new il(!0,void 0,!1),u),d.hasI18nMeta&&(u=ge(new al(!1,void 0,!0,h),u)));let{nodes:g,errors:v,styleUrls:E,styles:N,ngContentSelectors:D,commentNodes:b}=_b(u,o,{collectCommentNodes:!!n.collectCommentNodes});v.push(...c.errors,...p.errors);let P={preserveWhitespaces:r,errors:v.length>0?v:null,nodes:g,styleUrls:E,styles:N,ngContentSelectors:D};return n.collectCommentNodes&&(P.commentNodes=b),P}var Pb=new Sn;function Is(t=!1){return new Ru(new ol(new Vo,t),Pb,[])}var zm="%COMP%",Lb=`_nghost-${zm}`,Mb=`_ngcontent-${zm}`;function Xm(t,e,n){let r=new Rr,s=zu(t.selector);return r.set("type",t.type.value),s.length>0&&r.set("selectors",Hs(s)),t.queries.length>0&&r.set("contentQueries",CD(t.queries,e,t.name)),t.viewQueries.length&&r.set("viewQuery",wD(t.viewQueries,e,t.name)),r.set("hostBindings",Vb(t.host,t.typeSourceSpan,n,e,t.selector||"",t.name,r)),r.set("inputs",Nh(t.inputs,!0)),r.set("outputs",Nh(t.outputs)),t.exportAs!==null&&r.set("exportAs",ae(t.exportAs.map(i=>S(i)))),t.isStandalone===!1&&r.set("standalone",S(!1)),t.isSignal&&r.set("signals",S(!0)),r}function Ym(t,e){var i,o;let n=[],r=e.providers,s=e.viewProviders;if(r||s){let l=[r||new _t([])];s&&l.push(s),n.push(O(m.ProvidersFeature).callFn(l))}if((i=e.hostDirectives)!=null&&i.length&&n.push(O(m.HostDirectivesFeature).callFn([qb(e.hostDirectives)])),e.usesInheritance&&n.push(O(m.InheritDefinitionFeature)),e.lifecycle.usesOnChanges&&n.push(O(m.NgOnChangesFeature)),e.controlCreate!==null&&n.push(O(m.ControlFeature).callFn([S(e.controlCreate.passThroughInput)])),"externalStyles"in e&&((o=e.externalStyles)!=null&&o.length)){let l=e.externalStyles.map(c=>S(c));n.push(O(m.ExternalStylesFeature).callFn([ae(l)]))}n.length&&t.set("features",ae(n))}function Qm(t,e,n){let r=Xm(t,e,n);Ym(r,t);let s=O(m.defineDirective).callFn([r.toLiteralMap()],void 0,!0),i=Ub(t);return{expression:s,type:i,statements:[]}}function Jm(t,e,n){var v;let r=Xm(t,e,n);Ym(r,t);let s=t.selector&&hn.parse(t.selector),i=s&&s[0];if(i){let E=i.getAttrs();E.length&&r.set("attrs",e.getConstLiteral(ae(E.map(N=>N!=null?S(N):S(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 Ve(E,t.defer.dependenciesFn,void 0,Ue.Final)),l=J(E)}let c=t.isStandalone&&!t.hasDirectiveDependencies?ft.DomOnly:ft.Full,u=JI(t.name,t.template.nodes,e,c,t.relativeContextFilePath,t.i18nUseExternalIds,t.defer,l,t.relativeTemplatePath,ED());Mm(u,_.Tmpl);let h=zI(u,e);if(u.contentSelectors!==null&&r.set("ngContentSelectors",u.contentSelectors),r.set("decls",S(u.root.decls)),r.set("vars",S(u.root.vars)),u.consts.length>0&&(u.constsInitializers.length>0?r.set("consts",kt([],[...u.constsInitializers,new be(ae(u.consts))])):r.set("consts",ae(u.consts))),r.set("template",h),t.declarationListEmitMode!==3&&t.declarations.length>0)r.set("dependencies",Fb(ae(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",O(m.getComponentDepsFactory).callFn(E))}t.encapsulation===null&&(t.encapsulation=Cn.Emulated);let d=!!((v=t.externalStyles)!=null&&v.length);if(t.styles&&t.styles.length){let N=(t.encapsulation==Cn.Emulated?Hb(t.styles,Mb,Lb):t.styles).reduce((D,b)=>(b.trim().length>0&&D.push(e.getConstLiteral(S(b))),D),[]);N.length>0&&(d=!0,r.set("styles",ae(N)))}!d&&t.encapsulation===Cn.Emulated&&(t.encapsulation=Cn.None),t.encapsulation!==Cn.Emulated&&r.set("encapsulation",S(t.encapsulation)),t.animations!==null&&r.set("data",wt([{key:"animation",value:t.animations,quoted:!1}])),t.changeDetection!==null&&(typeof t.changeDetection=="number"&&t.changeDetection!==Na.Default?r.set("changeDetection",S(t.changeDetection)):typeof t.changeDetection=="object"&&r.set("changeDetection",t.changeDetection));let p=O(m.defineComponent).callFn([r.toLiteralMap()],void 0,!0),g=Ob(t);return{expression:p,type:g,statements:[]}}function Ob(t){let e=Zm(t);return e.push(Gu(t.template.ngContentSelectors)),e.push(je(S(t.isStandalone))),e.push(ng(t)),t.isSignal&&e.push(je(S(t.isSignal))),je(O(m.ComponentDeclaration,e))}function Fb(t,e){switch(e){case 0:return t;case 1:return kt([],t);case 2:let n=t.prop("map").callFn([O(m.resolveForwardRef)]);return kt([],n);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function Bb(t){return je(S(t))}function Vu(t){let e=Object.keys(t).map(n=>{let r=Array.isArray(t[n])?t[n][0]:t[n];return{key:n,value:S(r),quoted:!0}});return wt(e)}function Gu(t){return t.length>0?je(ae(t.map(e=>S(e)))):dn}function Zm(t){let e=t.selector!==null?t.selector.replace(/\n/g,""):null;return[Sl(t.type.type,t.typeArgumentCount),e!==null?Bb(e):dn,t.exportAs!==null?Gu(t.exportAs):dn,je($b(t)),je(Vu(t.outputs)),Gu(t.queries.map(n=>n.propertyName))]}function $b(t){return wt(Object.keys(t.inputs).map(e=>{let n=t.inputs[e],r=[{key:"alias",value:S(n.bindingPropertyName),quoted:!0},{key:"required",value:S(n.required),quoted:!0}];return n.isSignal&&r.push({key:"isSignal",value:S(n.isSignal),quoted:!0}),{key:e,value:wt(r),quoted:!0}}))}function Ub(t){let e=Zm(t);return e.push(dn),e.push(je(S(t.isStandalone))),e.push(ng(t)),t.isSignal&&e.push(je(S(t.isSignal))),je(O(m.DirectiveDeclaration,e))}function Vb(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=S(t.specialAttributes.styleAttr)),t.specialAttributes.classAttr&&(t.attributes.class=S(t.specialAttributes.classAttr));let u=ZI({componentName:i,componentSelector:s,properties:l,events:c,attributes:t.attributes},n,r);Mm(u,_.Host),o.set("hostAttrs",u.root.attributes);let h=u.root.vars;return h!==null&&h>0&&o.set("hostVars",S(h)),XI(u)}var Gb=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function eg(t){let e={},n={},r={},s={};for(let i of Object.keys(t)){let o=t[i],l=i.match(Gb);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]=S(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 tg(t,e){let n=Is();return n.createDirectiveHostEventAsts(t.listeners,e),n.createBoundHostProperties(t.properties,e),n.errors}function Hb(t,e,n){let r=new eu;return t.map(s=>r.shimCssText(s,e,n))}function ng(t){var e;return(e=t.hostDirectives)!=null&&e.length?je(ae(t.hostDirectives.map(n=>wt([{key:"directive",value:yi(n.directive.type),quoted:!1},{key:"inputs",value:Vu(n.inputs||{}),quoted:!1},{key:"outputs",value:Vu(n.outputs||{}),quoted:!1}])))):dn}function qb(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=Yf(r.inputs);i&&s.push({key:"inputs",value:i,quoted:!1})}if(r.outputs){let i=Yf(r.outputs);i&&s.push({key:"outputs",value:i,quoted:!1})}e.push(wt(s))}r.isForwardReference&&(n=!0)}return n?new Dn([],[new be(ae(e))]):ae(e)}function Yf(t){let e=[];for(let n in t)t.hasOwnProperty(n)&&e.push(S(n),S(t[n]));return e.length>0?ae(e):null}var Ur=class extends Nr{visit(e){e instanceof ve?this.visit(e.ast):e.visit(this)}visitElement(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitTemplate(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.templateAttrs),this.visitAllTemplateNodes(e.variables),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitContent(e){this.visitAllTemplateNodes(e.children)}visitBoundAttribute(e){this.visit(e.value)}visitBoundEvent(e){this.visit(e.handler)}visitBoundText(e){this.visit(e.value)}visitIcu(e){Object.keys(e.vars).forEach(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 Oa?this.visit(e.value):e instanceof Ir&&e.options!==null&&this.visit(e.options)}visitDeferredBlockPlaceholder(e){this.visitAllTemplateNodes(e.children)}visitDeferredBlockError(e){this.visitAllTemplateNodes(e.children)}visitDeferredBlockLoading(e){this.visitAllTemplateNodes(e.children)}visitSwitchBlock(e){this.visit(e.expression),this.visitAllTemplateNodes(e.groups)}visitSwitchBlockCase(e){e.expression&&this.visit(e.expression)}visitSwitchBlockCaseGroup(e){this.visitAllTemplateNodes(e.cases),this.visitAllTemplateNodes(e.children)}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){var n;e.item.visit(this),this.visitAllTemplateNodes(e.contextVariables),this.visit(e.expression),this.visitAllTemplateNodes(e.children),(n=e.empty)==null||n.visit(this)}visitForLoopBlockEmpty(e){this.visitAllTemplateNodes(e.children)}visitIfBlock(e){this.visitAllTemplateNodes(e.branches)}visitIfBlockBranch(e){var n;e.expression&&this.visit(e.expression),(n=e.expressionAlias)==null||n.visit(this),this.visitAllTemplateNodes(e.children)}visitLetDeclaration(e){this.visit(e.value)}visitComponent(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitDirective(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.references)}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitText(e){}visitUnknownBlock(e){}visitAllTemplateNodes(e){for(let n of e)this.visit(n)}};var jo=class{constructor(e){a(this,"directiveMatcher");this.directiveMatcher=e}bind(e){if(!e.template&&!e.host)throw new Error("Empty bound targets are not supported");let n=new Map,r=[],s=new Set,i=new Map,o=new Map,l=new Map,c=new Map,u=new Map,h=new Map,d=new Set,p=new Set,g=[];if(e.template){let v=dl.apply(e.template);Wb(v,l),Hu.apply(e.template,this.directiveMatcher,n,r,s,i,o),ml.applyWithScope(e.template,v,c,u,h,d,p,g)}return e.host&&(n.set(e.host.node,e.host.directives),ml.applyWithScope(e.host.node,dl.apply(e.host.node),c,u,h,d,p,g)),new qu(e,n,r,s,i,o,c,u,h,l,d,p,g)}},dl=class t{constructor(e,n){a(this,"parentScope");a(this,"rootNode");a(this,"namedEntities",new Map);a(this,"elementLikeInScope",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 On}static newRootScope(){return new t(null,null)}static apply(e){let n=t.newRootScope();return n.ingest(e),n}ingest(e){e instanceof de?(e.variables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof yr?(e.expressionAlias!==null&&this.visitVariable(e.expressionAlias),e.children.forEach(n=>n.visit(this))):e instanceof Fn?(this.visitVariable(e.item),e.contextVariables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof wo||e instanceof Co||e instanceof On||e instanceof xo||e instanceof Eo||e instanceof To||e instanceof vs?e.children.forEach(n=>n.visit(this)):e instanceof Bn||e.forEach(n=>n.visit(this))}visitElement(e){this.visitElementLike(e)}visitTemplate(e){e.directives.forEach(n=>n.visit(this)),e.references.forEach(n=>this.visitReference(n)),this.ingestScopedNode(e)}visitVariable(e){this.maybeDeclare(e)}visitReference(e){this.maybeDeclare(e)}visitDeferredBlock(e){var n,r,s;this.ingestScopedNode(e),(n=e.placeholder)==null||n.visit(this),(r=e.loading)==null||r.visit(this),(s=e.error)==null||s.visit(this)}visitDeferredBlockPlaceholder(e){this.ingestScopedNode(e)}visitDeferredBlockError(e){this.ingestScopedNode(e)}visitDeferredBlockLoading(e){this.ingestScopedNode(e)}visitSwitchBlock(e){e.groups.forEach(n=>n.visit(this))}visitSwitchBlockCase(e){}visitSwitchBlockCaseGroup(e){this.ingestScopedNode(e)}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){var n;this.ingestScopedNode(e),(n=e.empty)==null||n.visit(this)}visitForLoopBlockEmpty(e){this.ingestScopedNode(e)}visitIfBlock(e){e.branches.forEach(n=>n.visit(this))}visitIfBlockBranch(e){this.ingestScopedNode(e)}visitContent(e){this.ingestScopedNode(e)}visitLetDeclaration(e){this.maybeDeclare(e)}visitComponent(e){this.visitElementLike(e)}visitDirective(e){e.references.forEach(n=>this.visitReference(n))}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundText(e){}visitText(e){}visitTextAttribute(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}visitElementLike(e){e.directives.forEach(n=>n.visit(this)),e.references.forEach(n=>this.visitReference(n)),e.children.forEach(n=>n.visit(this)),this.elementLikeInScope.add(e)}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)}},Hu=class t{constructor(e,n,r,s,i,o){a(this,"directiveMatcher");a(this,"directives");a(this,"eagerDirectives");a(this,"missingDirectives");a(this,"bindings");a(this,"references");a(this,"isInDeferBlock",!1);this.directiveMatcher=e,this.directives=n,this.eagerDirectives=r,this.missingDirectives=s,this.bindings=i,this.references=o}static apply(e,n,r,s,i,o,l){new t(n,r,s,i,o,l).ingest(e)}ingest(e){e.forEach(n=>n.visit(this))}visitElement(e){this.visitElementOrTemplate(e)}visitTemplate(e){this.visitElementOrTemplate(e)}visitDeferredBlock(e){var r,s,i;let n=this.isInDeferBlock;this.isInDeferBlock=!0,e.children.forEach(o=>o.visit(this)),this.isInDeferBlock=n,(r=e.placeholder)==null||r.visit(this),(s=e.loading)==null||s.visit(this),(i=e.error)==null||i.visit(this)}visitDeferredBlockPlaceholder(e){e.children.forEach(n=>n.visit(this))}visitDeferredBlockError(e){e.children.forEach(n=>n.visit(this))}visitDeferredBlockLoading(e){e.children.forEach(n=>n.visit(this))}visitSwitchBlock(e){e.groups.forEach(n=>n.visit(this))}visitSwitchBlockCase(e){}visitSwitchBlockCaseGroup(e){e.children.forEach(n=>n.visit(this))}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){var n;e.item.visit(this),e.contextVariables.forEach(r=>r.visit(this)),e.children.forEach(r=>r.visit(this)),(n=e.empty)==null||n.visit(this)}visitForLoopBlockEmpty(e){e.children.forEach(n=>n.visit(this))}visitIfBlock(e){e.branches.forEach(n=>n.visit(this))}visitIfBlockBranch(e){var n;(n=e.expressionAlias)==null||n.visit(this),e.children.forEach(r=>r.visit(this))}visitContent(e){e.children.forEach(n=>n.visit(this))}visitComponent(e){if(this.directiveMatcher instanceof Js){let n=this.directiveMatcher.match(e.componentName);n.length>0?this.trackSelectorlessMatchesAndDirectives(e,n):this.missingDirectives.add(e.componentName)}e.directives.forEach(n=>n.visit(this)),e.children.forEach(n=>n.visit(this))}visitDirective(e){if(this.directiveMatcher instanceof Js){let n=this.directiveMatcher.match(e.name);n.length>0?this.trackSelectorlessMatchesAndDirectives(e,n):this.missingDirectives.add(e.name)}}visitElementOrTemplate(e){if(this.directiveMatcher instanceof as){let n=[],r=$d(e);this.directiveMatcher.match(r,(s,i)=>n.push(...i)),this.trackSelectorBasedBindingsAndDirectives(e,n)}else e.references.forEach(n=>{n.value.trim()===""&&this.references.set(n,e)});e.directives.forEach(n=>n.visit(this)),e.children.forEach(n=>n.visit(this))}trackMatchedDirectives(e,n){n.length>0&&(this.directives.set(e,n),this.isInDeferBlock||this.eagerDirectives.push(...n))}trackSelectorlessMatchesAndDirectives(e,n){if(n.length===0)return;this.trackMatchedDirectives(e,n);let r=(s,i,o)=>{s[o].hasBindingPropertyName(i.name)&&this.bindings.set(i,s)};for(let s of n)e.inputs.forEach(i=>r(s,i,"inputs")),e.attributes.forEach(i=>r(s,i,"inputs")),e.outputs.forEach(i=>r(s,i,"outputs"));e.references.forEach(s=>this.references.set(s,{directive:n[0],node:e}))}trackSelectorBasedBindingsAndDirectives(e,n){this.trackMatchedDirectives(e,n),e.references.forEach(s=>{let i=null;if(s.value.trim()==="")i=n.find(o=>o.isComponent)||null;else if(i=n.find(o=>o.exportAs!==null&&o.exportAs.some(l=>l===s.value))||null,i===null)return;i!==null?this.references.set(s,{directive:i,node:e}):this.references.set(s,e)});let r=(s,i)=>{let o=n.find(c=>c[i].hasBindingPropertyName(s.name)),l=o!==void 0?o:e;this.bindings.set(s,l)};e.inputs.forEach(s=>r(s,"inputs")),e.attributes.forEach(s=>r(s,"inputs")),e instanceof de&&e.templateAttrs.forEach(s=>r(s,"inputs")),e.outputs.forEach(s=>r(s,"outputs"))}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundAttributeOrEvent(e){}visitText(e){}visitBoundText(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}visitLetDeclaration(e){}},ml=class t extends Ur{constructor(n,r,s,i,o,l,c,u,h){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",n=>n.visit(this));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=h}static applyWithScope(n,r,s,i,o,l,c,u){let h=n instanceof de?n:null;new t(s,i,l,c,u,o,r,h,0).ingest(n)}ingest(n){if(n instanceof de)n.variables.forEach(this.visitNode),n.children.forEach(this.visitNode),this.nestingLevel.set(n,this.level);else if(n instanceof yr)n.expressionAlias!==null&&this.visitNode(n.expressionAlias),n.children.forEach(this.visitNode),this.nestingLevel.set(n,this.level);else if(n instanceof Fn)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 On){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 wo||n instanceof Co||n instanceof xo||n instanceof Eo||n instanceof To||n instanceof vs?(n.children.forEach(r=>r.visit(this)),this.nestingLevel.set(n,this.level)):n instanceof Bn?this.nestingLevel.set(n,0):n.forEach(this.visitNode)}visitTemplate(n){n.inputs.forEach(this.visitNode),n.outputs.forEach(this.visitNode),n.directives.forEach(this.visitNode),n.templateAttrs.forEach(this.visitNode),n.references.forEach(this.visitNode),this.ingestScopedNode(n)}visitVariable(n){this.rootNode!==null&&this.symbols.set(n,this.rootNode)}visitReference(n){this.rootNode!==null&&this.symbols.set(n,this.rootNode)}visitDeferredBlock(n){var r,s,i,o;this.ingestScopedNode(n),(r=n.triggers.when)==null||r.value.visit(this),(s=n.prefetchTriggers.when)==null||s.value.visit(this),(i=n.hydrateTriggers.when)==null||i.value.visit(this),(o=n.hydrateTriggers.never)==null||o.visit(this),n.placeholder&&this.visitNode(n.placeholder),n.loading&&this.visitNode(n.loading),n.error&&this.visitNode(n.error)}visitDeferredBlockPlaceholder(n){this.ingestScopedNode(n)}visitDeferredBlockError(n){this.ingestScopedNode(n)}visitDeferredBlockLoading(n){this.ingestScopedNode(n)}visitSwitchBlockCase(n){var r;(r=n.expression)==null||r.visit(this)}visitSwitchBlockCaseGroup(n){n.cases.forEach(r=>r.visit(this)),this.ingestScopedNode(n)}visitSwitchExhaustiveCheck(n){}visitForLoopBlock(n){var r;n.expression.visit(this),this.ingestScopedNode(n),(r=n.empty)==null||r.visit(this)}visitForLoopBlockEmpty(n){this.ingestScopedNode(n)}visitIfBlockBranch(n){var r;(r=n.expression)==null||r.visit(this),this.ingestScopedNode(n)}visitContent(n){this.ingestScopedNode(n)}visitLetDeclaration(n){super.visitLetDeclaration(n),this.rootNode!==null&&this.symbols.set(n,this.rootNode)}visitPipe(n,r){return this.usedPipes.add(n.name),this.scope.isDeferred||this.eagerPipes.add(n.name),super.visitPipe(n,r)}visitPropertyRead(n,r){return this.maybeMap(n,n.name),super.visitPropertyRead(n,r)}visitSafePropertyRead(n,r){return this.maybeMap(n,n.name),super.visitSafePropertyRead(n,r)}ingestScopedNode(n){let r=this.scope.getChildScope(n);new t(this.bindings,this.symbols,this.usedPipes,this.eagerPipes,this.deferBlocks,this.nestingLevel,r,n,this.level+1).ingest(n)}maybeMap(n,r){if(!(n.receiver instanceof Je))return;let s=this.scope.lookup(r);s!==null&&this.bindings.set(n,s)}},qu=class{constructor(e,n,r,s,i,o,l,c,u,h,d,p,g){a(this,"target");a(this,"directives");a(this,"eagerDirectives");a(this,"missingDirectives");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.missingDirectives=s,this.bindings=i,this.references=o,this.exprTargets=l,this.symbols=c,this.nestingLevel=u,this.scopedNodeEntities=h,this.usedPipes=d,this.eagerPipes=p,this.deferredBlocks=g.map(v=>v[0]),this.deferredScopes=new Map(g)}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 ys)&&!(n instanceof Ir)&&!(n instanceof ms))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 El)){if(i!==null)return null;o instanceof ke&&(i=o)}}return i}let s=this.findEntityInScope(e,r);if(s instanceof Jn&&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 Jn?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.elementLikeInScope.has(e))return!0;r.push(...s.childScopes.values())}}return!1}referencedDirectiveExists(e){return!this.missingDirectives.has(e)}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 ke?e:e instanceof de||e.node instanceof bn||e.node instanceof vi||e.node instanceof Bn?null:this.referenceTargetToElement(e.node)}};function Wb(t,e){let n=new Map;function r(i){if(n.has(i.rootNode))return n.get(i.rootNode);let o=i.namedEntities,l;return i.parentScope!==null?l=new Map([...r(i.parentScope),...o]):l=new Map(o),n.set(i.rootNode,l),l}let s=[t];for(;s.length>0;){let i=s.pop();for(let o of i.childScopes.values())s.push(o);r(i)}for(let[i,o]of n)e.set(i,new Set(o.values()))}var Wu=class{},ju=class{constructor(e=new Xc){a(this,"jitEvaluator");a(this,"FactoryTarget",gt);a(this,"ResourceLoader",Wu);a(this,"elementSchemaRegistry",new Sn);this.jitEvaluator=e}compilePipe(e,n,r){let s={name:r.name,type:qe(r.type),typeArgumentCount:0,deps:null,pipeName:r.pipeName,pure:r.pure,isStandalone:r.isStandalone},i=Zc(s);return this.jitExpression(i.expression,e,n,[])}compilePipeDeclaration(e,n,r){let s=l0(r),i=Zc(s);return this.jitExpression(i.expression,e,n,[])}compileInjectable(e,n,r){var o;let{expression:s,statements:i}=Wc({name:r.name,type:qe(r.type),typeArgumentCount:r.typeArgumentCount,providedIn:nd(r.providedIn),useClass:Bs(r,"useClass"),useFactory:td(r,"useFactory"),useValue:Bs(r,"useValue"),useExisting:Bs(r,"useExisting"),deps:(o=r.deps)==null?void 0:o.map(og)},!0);return this.jitExpression(s,e,n,i)}compileInjectableDeclaration(e,n,r){var o;let{expression:s,statements:i}=Wc({name:r.type.name,type:qe(r.type),typeArgumentCount:0,providedIn:nd(r.providedIn),useClass:Bs(r,"useClass"),useFactory:td(r,"useFactory"),useValue:Bs(r,"useValue"),useExisting:Bs(r,"useExisting"),deps:(o=r.deps)==null?void 0:o.map(rd)},!0);return this.jitExpression(s,e,n,i)}compileInjector(e,n,r){let s={name:r.name,type:qe(r.type),providers:r.providers&&r.providers.length>0?new W(r.providers):null,imports:r.imports.map(o=>new W(o))},i=Qc(s);return this.jitExpression(i.expression,e,n,[])}compileInjectorDeclaration(e,n,r){let s=c0(r),i=Qc(s);return this.jitExpression(i.expression,e,n,[])}compileNgModule(e,n,r){let s={kind:In.Global,type:qe(r.type),bootstrap:r.bootstrap.map(qe),declarations:r.declarations.map(qe),publicDeclarationTypes:null,imports:r.imports.map(qe),includeImportTypes:!0,exports:r.exports.map(qe),selectorScopeMode:ci.Inline,containsForwardDecls:!1,schemas:r.schemas?r.schemas.map(qe):null,id:r.id?new W(r.id):null},i=Zd(s);return this.jitExpression(i.expression,e,n,[])}compileNgModuleDeclaration(e,n,r){let s=aT(r);return this.jitExpression(s,e,n,[])}compileDirective(e,n,r){let s=Zf(r);return this.compileDirectiveFromMeta(e,n,s)}compileDirectiveDeclaration(e,n,r){let s=this.createParseSourceSpan("Directive",r.type.name,n),i=sg(r,s);return this.compileDirectiveFromMeta(e,n,i)}compileDirectiveFromMeta(e,n,r){let s=new si,i=Is(),o=Qm(r,s,i);return this.jitExpression(o.expression,e,n,s.statements)}compileComponent(e,n,r){var c;let{template:s,defer:i}=ig(r.template,r.name,n,r.preserveWhitespaces,void 0),o=me(C(C({},r),Zf(r)),{selector:r.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,declarations:r.declarations.map(Xb),declarationListEmitMode:0,defer:i,styles:[...r.styles,...s.styles],encapsulation:r.encapsulation,changeDetection:(c=r.changeDetection)!=null?c:null,animations:r.animations!=null?new W(r.animations):null,viewProviders:r.viewProviders!=null?new W(r.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null}),l=`ng:///${r.name}.js`;return this.compileComponentFromMeta(e,l,o)}compileComponentDeclaration(e,n,r){let s=this.createParseSourceSpan("Component",r.type.name,n),i=zb(r,s,n);return this.compileComponentFromMeta(e,n,i)}compileComponentFromMeta(e,n,r){let s=new si,i=Is(),o=Jm(r,s,i);return this.jitExpression(o.expression,e,n,s.statements)}compileFactory(e,n,r){let s=hr({name:r.name,type:qe(r.type),typeArgumentCount:r.typeArgumentCount,deps:Jb(r.deps),target:r.target});return this.jitExpression(s.expression,e,n,s.statements)}compileFactoryDeclaration(e,n,r){let s=hr({name:r.type.name,type:qe(r.type),typeArgumentCount:0,deps:Array.isArray(r.deps)?r.deps.map(rd):r.deps,target:r.target});return this.jitExpression(s.expression,e,n,s.statements)}createParseSourceSpan(e,n,r){return eT(e,n,r)}jitExpression(e,n,r,s){let i=[...s,new Ve("$def",e,void 0,Ue.Exported)];return this.jitEvaluator.evaluateStatements(r,i,new Jc(n),!0).$def}};function Qf(t){return me(C({},t),{isSignal:t.isSignal,predicate:rg(t.predicate),read:t.read?new W(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly})}function Jf(t){var e,n,r,s;return{propertyName:t.propertyName,first:(e=t.first)!=null?e:!1,predicate:rg(t.predicate),descendants:(n=t.descendants)!=null?n:!1,read:t.read?new W(t.read):null,static:(r=t.static)!=null?r:!1,emitDistinctChangesOnly:(s=t.emitDistinctChangesOnly)!=null?s:!0,isSignal:!!t.isSignal}}function rg(t){return Array.isArray(t)?t:Ds(new W(t),1)}function Zf(t){var l;let e=a0(t.inputs||[]),n=vc(t.outputs||[]),r=t.propMetadata,s={},i={};for(let c in r)r.hasOwnProperty(c)&&r[c].forEach(u=>{r0(u)?s[c]={bindingPropertyName:u.alias||c,classPropertyName:c,required:u.required||!1,isSignal:!!u.isSignal,transformFunction:u.transform!=null?new W(u.transform):null}:s0(u)&&(i[c]=u.alias||c)});let o=(l=t.hostDirectives)!=null&&l.length?t.hostDirectives.map(c=>typeof c=="function"?{directive:qe(c),inputs:null,outputs:null,isForwardReference:!1}:{directive:qe(c.directive),isForwardReference:!1,inputs:c.inputs?vc(c.inputs):null,outputs:c.outputs?vc(c.outputs):null}):null;return me(C({},t),{typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:qe(t.type),deps:null,host:C({},e0(t.propMetadata,t.typeSourceSpan,t.host)),inputs:C(C({},e),s),outputs:C(C({},n),i),queries:t.queries.map(Qf),providers:t.providers!=null?new W(t.providers):null,viewQueries:t.viewQueries.map(Qf),hostDirectives:o})}function sg(t,e){var r,s,i,o,l,c,u,h,d,p,g;let n=(r=t.hostDirectives)!=null&&r.length?t.hostDirectives.map(v=>({directive:qe(v.directive),isForwardReference:!1,inputs:v.inputs?ed(v.inputs):null,outputs:v.outputs?ed(v.outputs):null})):null;return{name:t.type.name,type:qe(t.type),typeSourceSpan:e,selector:(s=t.selector)!=null?s:null,inputs:t.inputs?i0(t.inputs):{},outputs:(i=t.outputs)!=null?i:{},host:jb(t.host),queries:((o=t.queries)!=null?o:[]).map(Jf),viewQueries:((l=t.viewQueries)!=null?l:[]).map(Jf),providers:t.providers!==void 0?new W(t.providers):null,exportAs:(c=t.exportAs)!=null?c:null,usesInheritance:(u=t.usesInheritance)!=null?u:!1,controlCreate:(h=t.controlCreate)!=null?h:null,lifecycle:{usesOnChanges:(d=t.usesOnChanges)!=null?d:!1},deps:null,typeArgumentCount:0,isStandalone:(p=t.isStandalone)!=null?p:Pd(t.version),isSignal:(g=t.isSignal)!=null?g:!1,hostDirectives:n}}function jb(t={}){var e,n,r;return{attributes:Kb((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 ed(t){let e=null;for(let n=1;n<t.length;n+=2)e=e||{},e[t[n-1]]=t[n];return e}function Kb(t){let e={};for(let n of Object.keys(t))e[n]=new W(t[n]);return e}function zb(t,e,n){var l,c,u,h;let{template:r,defer:s}=ig(t.template,t.type.name,n,(l=t.preserveWhitespaces)!=null?l:!1,t.deferBlockDependencies),i=[];if(t.dependencies)for(let d of t.dependencies)switch(d.kind){case"directive":case"component":i.push(yc(d));break;case"pipe":i.push(Qb(d));break}else(t.components||t.directives||t.pipes)&&(t.components&&i.push(...t.components.map(d=>yc(d,!0))),t.directives&&i.push(...t.directives.map(d=>yc(d))),t.pipes&&i.push(...Yb(t.pipes)));let o=i.some(({kind:d})=>d===Mr.Directive||d===Mr.NgModule);return me(C({},sg(t,e)),{template:r,styles:(c=t.styles)!=null?c:[],declarations:i,viewProviders:t.viewProviders!==void 0?new W(t.viewProviders):null,animations:t.animations!==void 0?new W(t.animations):null,defer:s,changeDetection:(u=t.changeDetection)!=null?u:Na.Default,encapsulation:(h=t.encapsulation)!=null?h:Cn.Emulated,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null,hasDirectiveDependencies:o})}function Xb(t){return me(C({},t),{type:new W(t.type)})}function yc(t,e=null){var n,r,s;return{kind:Mr.Directive,isComponent:e||t.kind==="component",selector:t.selector,type:new W(t.type),inputs:(n=t.inputs)!=null?n:[],outputs:(r=t.outputs)!=null?r:[],exportAs:(s=t.exportAs)!=null?s:null}}function Yb(t){return t?Object.keys(t).map(e=>({kind:Mr.Pipe,name:e,type:new W(t[e])})):[]}function Qb(t){return{kind:Mr.Pipe,name:t.name,type:new W(t.type)}}function ig(t,e,n,r,s){let i=Km(t,n,{preserveWhitespaces:r});if(i.errors!==null){let c=i.errors.map(u=>u.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${c}`)}let l=new jo(null).bind({template:i.nodes});return{template:i,defer:Zb(l,s)}}function Bs(t,e){if(t.hasOwnProperty(e))return Ds(new W(t[e]),0)}function td(t,e){if(t.hasOwnProperty(e))return new W(t[e])}function nd(t){let e=typeof t=="function"?new W(t):new _e(t!=null?t:null);return Ds(e,0)}function Jb(t){return t==null?null:t.map(og)}function og(t){let e=t.attribute!=null,n=t.token===null?null:new W(t.token),r=e?new W(t.attribute):n;return ag(r,e,t.host,t.optional,t.self,t.skipSelf)}function rd(t){var r,s,i,o,l;let e=(r=t.attribute)!=null?r:!1,n=t.token===null?null:new W(t.token);return ag(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 ag(t,e,n,r,s,i){let o=e?S("unknown"):null;return{token:t,attributeNameType:o,host:n,optional:r,self:s,skipSelf:i}}function Zb(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 W(i):null)}return{mode:0,blocks:r}}function e0(t,e,n){let r=eg(n||{}),s=tg(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=>{t0(o)?r.properties[o.hostPropertyName||i]=Ld("this",i):n0(o)&&(r.listeners[o.eventName||i]=`${i}(${(o.args||[]).join(",")})`)});return r}function t0(t){return t.ngMetadataName==="HostBinding"}function n0(t){return t.ngMetadataName==="HostListener"}function r0(t){return t.ngMetadataName==="Input"}function s0(t){return t.ngMetadataName==="Output"}function i0(t){return Object.keys(t).reduce((e,n)=>{let r=t[n];return typeof r=="string"||Array.isArray(r)?e[n]=o0(r):e[n]={bindingPropertyName:r.publicName,classPropertyName:n,transformFunction:r.transformFunction!==null?new W(r.transformFunction):null,required:r.isRequired,isSignal:r.isSignal},e},{})}function o0(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 W(t[2]):null,required:!1,isSignal:!1}}function a0(t){return t.reduce((e,n)=>{if(typeof n=="string"){let[r,s]=lg(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 W(n.transform):null};return e},{})}function vc(t){return t.reduce((e,n)=>{let[r,s]=lg(n);return e[s]=r,e},{})}function lg(t){let[e,n]=t.split(":",2).map(r=>r.trim());return[n!=null?n:e,e]}function l0(t){var e,n;return{name:t.type.name,type:qe(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:(e=t.pure)!=null?e:!0,isStandalone:(n=t.isStandalone)!=null?n:Pd(t.version)}}function c0(t){return{name:t.type.name,type:qe(t.type),providers:t.providers!==void 0&&t.providers.length>0?new W(t.providers):null,imports:t.imports!==void 0?t.imports.map(e=>new W(e)):[]}}function u0(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new ju}var sd;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(sd||(sd={}));var Ku=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 pn.PARSABLE_DATA}},VO=new Ku;var wi=new co("21.2.0");u0(Wi);var WO=(0,ug.createRequire)(U);var jO=new Map([[kn.Minus,"-"],[kn.Plus,"+"]]),KO=new Map([[T.And,"&&"],[T.Bigger,">"],[T.BiggerEquals,">="],[T.BitwiseAnd,"&"],[T.BitwiseOr,"|"],[T.Divide,"/"],[T.Equals,"=="],[T.Identical,"==="],[T.Lower,"<"],[T.LowerEquals,"<="],[T.Minus,"-"],[T.Modulo,"%"],[T.Multiply,"*"],[T.NotEquals,"!="],[T.NotIdentical,"!=="],[T.Or,"||"],[T.Plus,"+"],[T.NullishCoalesce,"??"],[T.Exponentiation,"**"],[T.In,"in"],[T.InstanceOf,"instanceof"],[T.Assign,"="],[T.AdditionAssignment,"+="],[T.SubtractionAssignment,"-="],[T.MultiplicationAssignment,"*="],[T.DivisionAssignment,"/="],[T.RemainderAssignment,"%="],[T.ExponentiationAssignment,"**="],[T.AndAssignment,"&&="],[T.OrAssignment,"||="],[T.NullishCoalesceAssignment,"??="]]);A();var pg=require("module");var h0=x(require("typescript"),1),f0=x(require("typescript"),1);var QO=(0,pg.createRequire)(U),hg=class{exists(t){throw ye()}readFile(t){throw ye()}readFileBuffer(t){throw ye()}writeFile(t,e,n){throw ye()}removeFile(t){throw ye()}symlink(t,e){throw ye()}readdir(t){throw ye()}lstat(t){throw ye()}stat(t){throw ye()}pwd(){throw ye()}chdir(t){throw ye()}extname(t){throw ye()}copyFile(t,e){throw ye()}moveFile(t,e){throw ye()}ensureDir(t){throw ye()}removeDeep(t){throw ye()}isCaseSensitive(){throw ye()}resolve(...t){throw ye()}dirname(t){throw ye()}join(t,...e){throw ye()}isRoot(t){throw ye()}isRooted(t){throw ye()}relative(t,e){throw ye()}basename(t,e){throw ye()}realpath(t){throw ye()}getDefaultLibLocation(){throw ye()}normalize(t){throw ye()}};function ye(){return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.")}var p0=new hg;function fg(t){p0=t}var Ci=x(require("typescript"),1);var w0=x(require("typescript"),1);var C0=x(require("typescript"),1),V=x(require("typescript"),1),Jo=x(require("typescript"),1),Ce=x(require("typescript"),1),Np=x(require("typescript"),1),Il=x(require("typescript"),1);var Dl=x(require("typescript"),1),H0=x(require("typescript"),1),q0=x(require("typescript"),1),I=x(require("typescript"),1);var Gn=x(require("typescript"),1),J0=x(require("typescript"),1),Z0=x(require("typescript"),1),e_=x(require("typescript"),1),t_=x(require("typescript"),1),we=x(require("typescript"),1),yp=x(require("typescript"),1),rr=x(require("typescript"),1),oy=x(require("typescript"),1),nr=x(require("typescript"),1),l_=x(require("typescript"),1);var c_=x(require("typescript"),1),u_=x(require("typescript"),1),p_=x(require("typescript"),1),h_=x(require("typescript"),1),f_=x(require("typescript"),1),m_=x(require("typescript"),1);var g_=x(require("typescript"),1),y_=x(require("typescript"),1),v_=x(require("typescript"),1);var S_=x(require("typescript"),1);var E_=x(require("typescript"),1),T_=x(require("typescript"),1);var x_=x(require("typescript"),1);var w_=x(require("typescript"),1);var Wt=x(require("typescript"),1),vp=x(require("typescript"),1);var Tn=x(require("typescript"),1),M_=x(require("typescript"),1);var O_=x(require("typescript"),1);var F_=x(require("typescript"),1),B_=x(require("typescript"),1);var $_=x(require("typescript"),1);var U_=x(require("typescript"),1),V_=x(require("typescript"),1);var G_=x(require("typescript"),1);var H_=x(require("typescript"),1);var q_=x(require("typescript"),1),W_=x(require("typescript"),1),j_=x(require("typescript"),1),K_=x(require("typescript"),1);var z_=x(require("typescript"),1);A();var dg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d0=new Uint8Array(64),m0=new Uint8Array(128);for(let t=0;t<dg.length;t++){let e=dg.charCodeAt(t);d0[t]=e,m0[e]=t}var nF=1024*16;var Y_=x(require("typescript"),1);var Q_=x(require("typescript"),1),J_=x(require("typescript"),1);var Z_=x(require("typescript"),1);var ek=x(require("typescript"),1),tk=x(require("typescript"),1);var nk=x(require("typescript"),1);var rk=x(require("typescript"),1),sk=x(require("typescript"),1),ik=x(require("typescript"),1);var ok=x(require("typescript"),1),ak=x(require("typescript"),1);var lk=x(require("typescript"),1),ck=x(require("typescript"),1);var uk=x(require("typescript"),1);var pk=x(require("typescript"),1);var hk=x(require("typescript"),1),fk=x(require("typescript"),1),dk=x(require("typescript"),1);var mk=x(require("typescript"),1),gk=x(require("typescript"),1),yk=x(require("typescript"),1);var vk=x(require("typescript"),1),Sk=x(require("typescript"),1);var Ek=x(require("typescript"),1);var Tk=x(require("typescript"),1);var wk=x(require("typescript"),1);var Ck=x(require("typescript"),1);var Ak=x(require("typescript"),1);var Nk=x(require("typescript"),1);var Ik=x(require("typescript"),1),Dk=x(require("typescript"),1),bk=x(require("typescript"),1);var _k=x(require("typescript"),1);var kk=x(require("typescript"),1),Rk=x(require("typescript"),1),Pk=x(require("typescript"),1);var te=x(require("typescript"),1),Lk=x(require("typescript"),1);var Mk=x(require("typescript"),1);var Ok=x(require("typescript"),1);var Fk=x(require("typescript"),1),Wr=x(require("typescript"),1),kl=x(require("typescript"),1),py=x(require("typescript"),1);var wF=(0,Hg.createRequire)(U),R;(function(t){t[t.DECORATOR_ARG_NOT_LITERAL=1001]="DECORATOR_ARG_NOT_LITERAL",t[t.DECORATOR_ARITY_WRONG=1002]="DECORATOR_ARITY_WRONG",t[t.DECORATOR_NOT_CALLED=1003]="DECORATOR_NOT_CALLED",t[t.DECORATOR_UNEXPECTED=1005]="DECORATOR_UNEXPECTED",t[t.DECORATOR_COLLISION=1006]="DECORATOR_COLLISION",t[t.VALUE_HAS_WRONG_TYPE=1010]="VALUE_HAS_WRONG_TYPE",t[t.VALUE_NOT_LITERAL=1011]="VALUE_NOT_LITERAL",t[t.DUPLICATE_DECORATED_PROPERTIES=1012]="DUPLICATE_DECORATED_PROPERTIES",t[t.INITIALIZER_API_WITH_DISALLOWED_DECORATOR=1050]="INITIALIZER_API_WITH_DISALLOWED_DECORATOR",t[t.INITIALIZER_API_DECORATOR_METADATA_COLLISION=1051]="INITIALIZER_API_DECORATOR_METADATA_COLLISION",t[t.INITIALIZER_API_NO_REQUIRED_FUNCTION=1052]="INITIALIZER_API_NO_REQUIRED_FUNCTION",t[t.INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY=1053]="INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY",t[t.INCORRECTLY_DECLARED_ON_STATIC_MEMBER=1100]="INCORRECTLY_DECLARED_ON_STATIC_MEMBER",t[t.COMPONENT_MISSING_TEMPLATE=2001]="COMPONENT_MISSING_TEMPLATE",t[t.PIPE_MISSING_NAME=2002]="PIPE_MISSING_NAME",t[t.PARAM_MISSING_TOKEN=2003]="PARAM_MISSING_TOKEN",t[t.DIRECTIVE_MISSING_SELECTOR=2004]="DIRECTIVE_MISSING_SELECTOR",t[t.UNDECORATED_PROVIDER=2005]="UNDECORATED_PROVIDER",t[t.DIRECTIVE_INHERITS_UNDECORATED_CTOR=2006]="DIRECTIVE_INHERITS_UNDECORATED_CTOR",t[t.UNDECORATED_CLASS_USING_ANGULAR_FEATURES=2007]="UNDECORATED_CLASS_USING_ANGULAR_FEATURES",t[t.COMPONENT_RESOURCE_NOT_FOUND=2008]="COMPONENT_RESOURCE_NOT_FOUND",t[t.COMPONENT_INVALID_SHADOW_DOM_SELECTOR=2009]="COMPONENT_INVALID_SHADOW_DOM_SELECTOR",t[t.COMPONENT_NOT_STANDALONE=2010]="COMPONENT_NOT_STANDALONE",t[t.COMPONENT_IMPORT_NOT_STANDALONE=2011]="COMPONENT_IMPORT_NOT_STANDALONE",t[t.COMPONENT_UNKNOWN_IMPORT=2012]="COMPONENT_UNKNOWN_IMPORT",t[t.HOST_DIRECTIVE_INVALID=2013]="HOST_DIRECTIVE_INVALID",t[t.HOST_DIRECTIVE_NOT_STANDALONE=2014]="HOST_DIRECTIVE_NOT_STANDALONE",t[t.HOST_DIRECTIVE_COMPONENT=2015]="HOST_DIRECTIVE_COMPONENT",t[t.INJECTABLE_INHERITS_INVALID_CONSTRUCTOR=2016]="INJECTABLE_INHERITS_INVALID_CONSTRUCTOR",t[t.HOST_DIRECTIVE_UNDEFINED_BINDING=2017]="HOST_DIRECTIVE_UNDEFINED_BINDING",t[t.HOST_DIRECTIVE_CONFLICTING_ALIAS=2018]="HOST_DIRECTIVE_CONFLICTING_ALIAS",t[t.HOST_DIRECTIVE_MISSING_REQUIRED_BINDING=2019]="HOST_DIRECTIVE_MISSING_REQUIRED_BINDING",t[t.CONFLICTING_INPUT_TRANSFORM=2020]="CONFLICTING_INPUT_TRANSFORM",t[t.COMPONENT_INVALID_STYLE_URLS=2021]="COMPONENT_INVALID_STYLE_URLS",t[t.COMPONENT_UNKNOWN_DEFERRED_IMPORT=2022]="COMPONENT_UNKNOWN_DEFERRED_IMPORT",t[t.NON_STANDALONE_NOT_ALLOWED=2023]="NON_STANDALONE_NOT_ALLOWED",t[t.MISSING_NAMED_TEMPLATE_DEPENDENCY=2024]="MISSING_NAMED_TEMPLATE_DEPENDENCY",t[t.INCORRECT_NAMED_TEMPLATE_DEPENDENCY_TYPE=2025]="INCORRECT_NAMED_TEMPLATE_DEPENDENCY_TYPE",t[t.UNSUPPORTED_SELECTORLESS_COMPONENT_FIELD=2026]="UNSUPPORTED_SELECTORLESS_COMPONENT_FIELD",t[t.COMPONENT_ANIMATIONS_CONFLICT=2027]="COMPONENT_ANIMATIONS_CONFLICT",t[t.SYMBOL_NOT_EXPORTED=3001]="SYMBOL_NOT_EXPORTED",t[t.IMPORT_CYCLE_DETECTED=3003]="IMPORT_CYCLE_DETECTED",t[t.IMPORT_GENERATION_FAILURE=3004]="IMPORT_GENERATION_FAILURE",t[t.CONFIG_FLAT_MODULE_NO_INDEX=4001]="CONFIG_FLAT_MODULE_NO_INDEX",t[t.CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK=4002]="CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK",t[t.CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES=4003]="CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES",t[t.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL=4004]="CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL",t[t.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK=4005]="CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK",t[t.CONFIG_EMIT_DECLARATION_ONLY_UNSUPPORTED=4006]="CONFIG_EMIT_DECLARATION_ONLY_UNSUPPORTED",t[t.HOST_BINDING_PARSE_ERROR=5001]="HOST_BINDING_PARSE_ERROR",t[t.TEMPLATE_PARSE_ERROR=5002]="TEMPLATE_PARSE_ERROR",t[t.NGMODULE_INVALID_DECLARATION=6001]="NGMODULE_INVALID_DECLARATION",t[t.NGMODULE_INVALID_IMPORT=6002]="NGMODULE_INVALID_IMPORT",t[t.NGMODULE_INVALID_EXPORT=6003]="NGMODULE_INVALID_EXPORT",t[t.NGMODULE_INVALID_REEXPORT=6004]="NGMODULE_INVALID_REEXPORT",t[t.NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC=6005]="NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC",t[t.NGMODULE_REEXPORT_NAME_COLLISION=6006]="NGMODULE_REEXPORT_NAME_COLLISION",t[t.NGMODULE_DECLARATION_NOT_UNIQUE=6007]="NGMODULE_DECLARATION_NOT_UNIQUE",t[t.NGMODULE_DECLARATION_IS_STANDALONE=6008]="NGMODULE_DECLARATION_IS_STANDALONE",t[t.NGMODULE_BOOTSTRAP_IS_STANDALONE=6009]="NGMODULE_BOOTSTRAP_IS_STANDALONE",t[t.WARN_NGMODULE_ID_UNNECESSARY=6100]="WARN_NGMODULE_ID_UNNECESSARY",t[t.SCHEMA_INVALID_ELEMENT=8001]="SCHEMA_INVALID_ELEMENT",t[t.SCHEMA_INVALID_ATTRIBUTE=8002]="SCHEMA_INVALID_ATTRIBUTE",t[t.MISSING_REFERENCE_TARGET=8003]="MISSING_REFERENCE_TARGET",t[t.MISSING_PIPE=8004]="MISSING_PIPE",t[t.WRITE_TO_READ_ONLY_VARIABLE=8005]="WRITE_TO_READ_ONLY_VARIABLE",t[t.DUPLICATE_VARIABLE_DECLARATION=8006]="DUPLICATE_VARIABLE_DECLARATION",t[t.SPLIT_TWO_WAY_BINDING=8007]="SPLIT_TWO_WAY_BINDING",t[t.MISSING_REQUIRED_INPUTS=8008]="MISSING_REQUIRED_INPUTS",t[t.ILLEGAL_FOR_LOOP_TRACK_ACCESS=8009]="ILLEGAL_FOR_LOOP_TRACK_ACCESS",t[t.INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT=8010]="INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT",t[t.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION=8011]="CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION",t[t.DEFERRED_PIPE_USED_EAGERLY=8012]="DEFERRED_PIPE_USED_EAGERLY",t[t.DEFERRED_DIRECTIVE_USED_EAGERLY=8013]="DEFERRED_DIRECTIVE_USED_EAGERLY",t[t.DEFERRED_DEPENDENCY_IMPORTED_EAGERLY=8014]="DEFERRED_DEPENDENCY_IMPORTED_EAGERLY",t[t.ILLEGAL_LET_WRITE=8015]="ILLEGAL_LET_WRITE",t[t.LET_USED_BEFORE_DEFINITION=8016]="LET_USED_BEFORE_DEFINITION",t[t.CONFLICTING_LET_DECLARATION=8017]="CONFLICTING_LET_DECLARATION",t[t.UNCLAIMED_DIRECTIVE_BINDING=8018]="UNCLAIMED_DIRECTIVE_BINDING",t[t.DEFER_IMPLICIT_TRIGGER_MISSING_PLACEHOLDER=8019]="DEFER_IMPLICIT_TRIGGER_MISSING_PLACEHOLDER",t[t.DEFER_IMPLICIT_TRIGGER_INVALID_PLACEHOLDER=8020]="DEFER_IMPLICIT_TRIGGER_INVALID_PLACEHOLDER",t[t.DEFER_TRIGGER_MISCONFIGURATION=8021]="DEFER_TRIGGER_MISCONFIGURATION",t[t.FORM_FIELD_UNSUPPORTED_BINDING=8022]="FORM_FIELD_UNSUPPORTED_BINDING",t[t.INVALID_BANANA_IN_BOX=8101]="INVALID_BANANA_IN_BOX",t[t.NULLISH_COALESCING_NOT_NULLABLE=8102]="NULLISH_COALESCING_NOT_NULLABLE",t[t.MISSING_CONTROL_FLOW_DIRECTIVE=8103]="MISSING_CONTROL_FLOW_DIRECTIVE",t[t.TEXT_ATTRIBUTE_NOT_BINDING=8104]="TEXT_ATTRIBUTE_NOT_BINDING",t[t.MISSING_NGFOROF_LET=8105]="MISSING_NGFOROF_LET",t[t.SUFFIX_NOT_SUPPORTED=8106]="SUFFIX_NOT_SUPPORTED",t[t.OPTIONAL_CHAIN_NOT_NULLABLE=8107]="OPTIONAL_CHAIN_NOT_NULLABLE",t[t.SKIP_HYDRATION_NOT_STATIC=8108]="SKIP_HYDRATION_NOT_STATIC",t[t.INTERPOLATED_SIGNAL_NOT_INVOKED=8109]="INTERPOLATED_SIGNAL_NOT_INVOKED",t[t.UNSUPPORTED_INITIALIZER_API_USAGE=8110]="UNSUPPORTED_INITIALIZER_API_USAGE",t[t.UNINVOKED_FUNCTION_IN_EVENT_BINDING=8111]="UNINVOKED_FUNCTION_IN_EVENT_BINDING",t[t.UNUSED_LET_DECLARATION=8112]="UNUSED_LET_DECLARATION",t[t.UNUSED_STANDALONE_IMPORTS=8113]="UNUSED_STANDALONE_IMPORTS",t[t.UNPARENTHESIZED_NULLISH_COALESCING=8114]="UNPARENTHESIZED_NULLISH_COALESCING",t[t.UNINVOKED_TRACK_FUNCTION=8115]="UNINVOKED_TRACK_FUNCTION",t[t.MISSING_STRUCTURAL_DIRECTIVE=8116]="MISSING_STRUCTURAL_DIRECTIVE",t[t.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION=8117]="UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION",t[t.FORBIDDEN_REQUIRED_INITIALIZER_INVOCATION=8118]="FORBIDDEN_REQUIRED_INITIALIZER_INVOCATION",t[t.INLINE_TCB_REQUIRED=8900]="INLINE_TCB_REQUIRED",t[t.INLINE_TYPE_CTOR_REQUIRED=8901]="INLINE_TYPE_CTOR_REQUIRED",t[t.INJECTABLE_DUPLICATE_PROV=9001]="INJECTABLE_DUPLICATE_PROV",t[t.SUGGEST_STRICT_TEMPLATES=10001]="SUGGEST_STRICT_TEMPLATES",t[t.SUGGEST_SUBOPTIMAL_TYPE_INFERENCE=10002]="SUGGEST_SUBOPTIMAL_TYPE_INFERENCE",t[t.LOCAL_COMPILATION_UNRESOLVED_CONST=11001]="LOCAL_COMPILATION_UNRESOLVED_CONST",t[t.LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION=11003]="LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION"})(R||(R={}));function Ap(t){return parseInt("-99"+t)}var Kr=class extends Error{constructor(e,n,r,s){super(`FatalDiagnosticError: Code: ${e}, Message: ${Ci.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 qg(this.code,this.node,this.diagnosticMessage,this.relatedInformation)}};function qg(t,e,n,r,s=Ci.default.DiagnosticCategory.Error){return e=Ci.default.getOriginalNode(e),{category:s,code:Ap(t),file:Ci.default.getOriginalNode(e).getSourceFile(),start:e.getStart(void 0,!1),length:e.getWidth(),messageText:n,relatedInformation:r}}function mg(t,e){return{category:Ci.default.DiagnosticCategory.Message,code:0,messageText:t,next:e}}var T0=new Set([R.DECORATOR_ARG_NOT_LITERAL,R.IMPORT_CYCLE_DETECTED,R.PARAM_MISSING_TOKEN,R.SCHEMA_INVALID_ELEMENT,R.SCHEMA_INVALID_ATTRIBUTE,R.MISSING_REFERENCE_TARGET,R.COMPONENT_INVALID_SHADOW_DOM_SELECTOR,R.WARN_NGMODULE_ID_UNNECESSARY]),Wg=(()=>{let t=wi.full;return`https://${t.includes("-next")||t.includes("-rc")||t==="21.2.0"?"next":`v${wi.major}`}.angular.dev`})(),x0=`${Wg}/errors`,Fe;(function(t){t.INVALID_BANANA_IN_BOX="invalidBananaInBox",t.NULLISH_COALESCING_NOT_NULLABLE="nullishCoalescingNotNullable",t.OPTIONAL_CHAIN_NOT_NULLABLE="optionalChainNotNullable",t.MISSING_CONTROL_FLOW_DIRECTIVE="missingControlFlowDirective",t.MISSING_STRUCTURAL_DIRECTIVE="missingStructuralDirective",t.TEXT_ATTRIBUTE_NOT_BINDING="textAttributeNotBinding",t.UNINVOKED_FUNCTION_IN_EVENT_BINDING="uninvokedFunctionInEventBinding",t.MISSING_NGFOROF_LET="missingNgForOfLet",t.SUFFIX_NOT_SUPPORTED="suffixNotSupported",t.SKIP_HYDRATION_NOT_STATIC="skipHydrationNotStatic",t.INTERPOLATED_SIGNAL_NOT_INVOKED="interpolatedSignalNotInvoked",t.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION="controlFlowPreventingContentProjection",t.UNUSED_LET_DECLARATION="unusedLetDeclaration",t.UNINVOKED_TRACK_FUNCTION="uninvokedTrackFunction",t.UNUSED_STANDALONE_IMPORTS="unusedStandaloneImports",t.UNPARENTHESIZED_NULLISH_COALESCING="unparenthesizedNullishCoalescing",t.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION="uninvokedFunctionInTextInterpolation",t.DEFER_TRIGGER_MISCONFIGURATION="deferTriggerMisconfiguration"})(Fe||(Fe={}));var gg;(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"})(gg||(gg={}));var yg;(function(t){t[t.Success=0]="Success",t[t.Failed=1]="Failed"})(yg||(yg={}));function A0(t){return Jo.default.isIdentifier(t)||Jo.default.isPropertyAccessExpression(t)&&Jo.default.isIdentifier(t.expression)&&Jo.default.isIdentifier(t.name)}var _s;(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"})(_s||(_s={}));var Se;(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"})(Se||(Se={}));var N0={};function I0(t,e,n){var c,u;if(t===null)return k0();if(!Ce.default.isTypeReferenceNode(t))return Qo(t);let r=P0(t,e);if(r===null)return b0(t);let{local:s,decl:i}=r;if(i.valueDeclaration===void 0||i.flags&Ce.default.SymbolFlags.ConstEnum){let h=null;if(i.declarations!==void 0&&i.declarations.length>0&&(h=i.declarations[0]),!n||h&&[Ce.default.SyntaxKind.TypeParameter,Ce.default.SyntaxKind.TypeAliasDeclaration,Ce.default.SyntaxKind.InterfaceDeclaration].includes(h.kind))return D0(t,h)}let o=s.declarations&&s.declarations[0];if(o!==void 0){if(Ce.default.isImportClause(o)&&o.name!==void 0)return o.phaseModifier===Ce.default.SyntaxKind.TypeKeyword?Nl(t,o):Ce.default.isImportDeclaration(o.parent)?{kind:0,expression:o.name,defaultImportStatement:o.parent}:Qo(t);if(Ce.default.isImportSpecifier(o)){if(o.isTypeOnly)return Nl(t,o);if(o.parent.parent.phaseModifier===Ce.default.SyntaxKind.TypeKeyword)return Nl(t,o.parent.parent);let h=(o.propertyName||o.name).text,[d,...p]=r.symbolNames,g=o.parent.parent.parent;if(!Ce.default.isImportDeclaration(g))return Qo(t);let v=vg(g);return{kind:1,valueDeclaration:(c=i.valueDeclaration)!=null?c:null,moduleName:v,importedName:h,nestedPath:p}}else if(Ce.default.isNamespaceImport(o)){if(o.parent.phaseModifier===Ce.default.SyntaxKind.TypeKeyword)return Nl(t,o.parent);if(r.symbolNames.length===1)return _0(t,o.parent);let[h,d,...p]=r.symbolNames,g=o.parent.parent;if(!Ce.default.isImportDeclaration(g))return Qo(t);let v=vg(g);return{kind:1,valueDeclaration:(u=i.valueDeclaration)!=null?u:null,moduleName:v,importedName:d,nestedPath:p}}}let l=R0(t);return l!==null?{kind:0,expression:l,defaultImportStatement:null}:Qo(t)}function Qo(t){return{kind:2,reason:{kind:5,typeNode:t}}}function D0(t,e){return{kind:2,reason:{kind:1,typeNode:t,decl:e}}}function Nl(t,e){return{kind:2,reason:{kind:2,typeNode:t,node:e}}}function b0(t){return{kind:2,reason:{kind:3,typeNode:t}}}function _0(t,e){return{kind:2,reason:{kind:4,typeNode:t,importClause:e}}}function k0(){return{kind:2,reason:{kind:0}}}function R0(t){return Ce.default.isTypeReferenceNode(t)?jg(t.typeName):null}function P0(t,e){let n=t.typeName,r=e.getSymbolAtLocation(n);if(r===void 0)return null;let s=r,i=n,o=[];for(;Ce.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&Ce.default.SymbolFlags.Alias&&(l=e.getAliasedSymbol(r)),{local:s,decl:l,symbolNames:o}}function jg(t){if(Ce.default.isQualifiedName(t)){let e=jg(t.left);return e!==null?Ce.default.factory.createPropertyAccessExpression(e,t.right):null}else if(Ce.default.isIdentifier(t)){let e=Ce.default.setOriginalNode(Ce.default.factory.createIdentifier(t.text),t);return e.parent=t.parent,e}else return null}function vg(t){if(!Ce.default.isStringLiteral(t.moduleSpecifier))throw new Error("not a module specifier");return t.moduleSpecifier.text}function Kg(t){return Np.default.isClassDeclaration(t)&&L0(t.name)}function L0(t){return t!==void 0&&Np.default.isIdentifier(t)}function Sg(t){switch(t){case Se.EcmaScriptPrivate:return"ES private";case Se.Private:return"private";case Se.Protected:return"protected";case Se.PublicReadonly:return"public readonly";case Se.PublicWritable:default:return"public"}}var zg=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=V.default.canHaveDecorators(t)?V.default.getDecorators(t):void 0;return e!==void 0&&e.length?e.map(n=>this._reflectDecorator(n)).filter(n=>n!==null):null}getMembersOfClass(t){return Eg(t).members.map(n=>{let r=Xg(n);return r===null?null:me(C({},r),{decorators:this.getDecoratorsOfDeclaration(n)})}).filter(n=>n!==null)}getConstructorParameters(t){let e=Eg(t),n=e.getSourceFile().isDeclarationFile,r=e.members.find(s=>V.default.isConstructorDeclaration(s)&&(n||s.body!==void 0));return r===void 0?null:r.parameters.map(s=>{let i=Tg(s.name),o=this.getDecoratorsOfDeclaration(s),l=s.type||null,c=l;if(c&&V.default.isUnionTypeNode(c)){let h=c.types.filter(d=>!(V.default.isLiteralTypeNode(d)&&d.literal.kind===V.default.SyntaxKind.NullKeyword));h.length===1&&(c=h[0])}let u=I0(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:V.default.isQualifiedName(t.parent)&&t.parent.right===t?this.getImportOfNamespacedIdentifier(t,B0(t.parent)):V.default.isPropertyAccessExpression(t.parent)&&t.parent.name===t?this.getImportOfNamespacedIdentifier(t,$0(t.parent)):null}getExportsOfModule(t){if(!V.default.isSourceFile(t))throw new Error("getExportsOfModule() called on non-SourceFile in TS code");let e=this.checker.getSymbolAtLocation(t);if(e===void 0)return null;let n=new Map;return this.checker.getExportsOfModule(e).forEach(r=>{let s=this.getDeclarationOfSymbol(r,null);s!==null&&n.set(r.name,s)}),n}isClass(t){return Kg(t)}hasBaseClass(t){return this.getBaseClassExpression(t)!==null}getBaseClassExpression(t){if(!(V.default.isClassDeclaration(t)||V.default.isClassExpression(t))||t.heritageClauses===void 0)return null;let e=t.heritageClauses.find(r=>r.token===V.default.SyntaxKind.ExtendsKeyword);if(e===void 0)return null;let n=e.types[0];return n===void 0?null:n.expression}getDeclarationOfIdentifier(t){let e=this.checker.getSymbolAtLocation(t);return e===void 0?null:this.getDeclarationOfSymbol(e,t)}getDefinitionOfFunction(t){if(!V.default.isFunctionDeclaration(t)&&!V.default.isMethodDeclaration(t)&&!V.default.isFunctionExpression(t)&&!V.default.isArrowFunction(t))return null;let e=null;t.body!==void 0&&(e=V.default.isBlock(t.body)?Array.from(t.body.statements):[V.default.factory.createReturnStatement(t.body)]);let n=this.checker.getTypeAtLocation(t),r=this.checker.getSignaturesOfType(n,V.default.SignatureKind.Call);return{node:t,body:e,signatureCount:r.length,typeParameters:t.typeParameters===void 0?null:Array.from(t.typeParameters),parameters:t.parameters.map(s=>{let i=Tg(s.name),o=s.initializer||null;return{name:i,node:s,initializer:o,type:s.type||null}})}}getGenericArityOfClass(t){return V.default.isClassDeclaration(t)?t.typeParameters!==void 0?t.typeParameters.length:0:null}getVariableValue(t){return t.initializer||null}isStaticallyExported(t){let e=t;V.default.isVariableDeclaration(t)&&V.default.isVariableDeclarationList(t.parent)&&(e=t.parent.parent);let n=V.default.canHaveModifiers(e)?V.default.getModifiers(e):void 0;return n!==void 0&&n.some(s=>s.kind===V.default.SyntaxKind.ExportKeyword)?!0:e.parent===void 0||!V.default.isSourceFile(e.parent)?!1:this.getLocalExportedDeclarationsOfSourceFile(t.getSourceFile()).has(t)}getDirectImportOfIdentifier(t){let e=this.checker.getSymbolAtLocation(t);if(e===void 0||e.declarations===void 0||e.declarations.length!==1)return null;let n=e.declarations[0],r=U0(n);return r===null||!V.default.isStringLiteral(r.moduleSpecifier)?null:{from:r.moduleSpecifier.text,name:V0(n,t),node:r}}getImportOfNamespacedIdentifier(t,e){if(e===null)return null;let n=this.checker.getSymbolAtLocation(e);if(!n||n.declarations===void 0)return null;let r=n.declarations.length===1?n.declarations[0]:null;if(!r)return null;let s=V.default.isNamespaceImport(r)?r:null;if(!s)return null;let i=s.parent.parent;return!V.default.isImportDeclaration(i)||!V.default.isStringLiteral(i.moduleSpecifier)?null:{from:i.moduleSpecifier.text,name:t.text,node:i}}getDeclarationOfSymbol(t,e){let n;if(t.valueDeclaration!==void 0?n=t.valueDeclaration:t.declarations!==void 0&&t.declarations.length>0&&(n=t.declarations[0]),n!==void 0&&V.default.isShorthandPropertyAssignment(n)){let s=this.checker.getShorthandAssignmentValueSymbol(n);return s===void 0?null:this.getDeclarationOfSymbol(s,e)}else if(n!==void 0&&V.default.isExportSpecifier(n)){let s=this.checker.getExportSpecifierLocalTargetSymbol(n);return s===void 0?null:this.getDeclarationOfSymbol(s,e)}let r=e&&this.getImportOfIdentifier(e);for(;t.flags&V.default.SymbolFlags.Alias;)t=this.checker.getAliasedSymbol(t);return t.valueDeclaration!==void 0&&(!this.skipPrivateValueDeclarationTypes||!F0(this.checker,t))?{node:t.valueDeclaration,viaModule:this._viaModule(t.valueDeclaration,e,r)}:t.declarations!==void 0&&t.declarations.length>0?{node:t.declarations[0],viaModule:this._viaModule(t.declarations[0],e,r)}:null}_reflectDecorator(t){let e=t.expression,n=null;if(V.default.isCallExpression(e)&&(n=Array.from(e.arguments),e=e.expression),!A0(e))return null;let r=V.default.isIdentifier(e)?e:e.name,s=this.getImportOfIdentifier(r);return{name:r.text,identifier:e,import:s,node:t,args:n}}getLocalExportedDeclarationsOfSourceFile(t){let e=t;if(e[fp]!==void 0)return e[fp];let n=new Set;e[fp]=n;let r=this.checker.getSymbolAtLocation(e);if(r===void 0||r.exports===void 0)return n;let s=r.exports.values(),i=s.next();for(;i.done!==!0;){let o=i.value;o.flags&V.default.SymbolFlags.Alias&&(o=this.checker.getAliasedSymbol(o)),o.valueDeclaration!==void 0&&o.valueDeclaration.getSourceFile()===t&&n.add(o.valueDeclaration),i=s.next()}return n}_viaModule(t,e,n){return n===null&&e!==null&&t.getSourceFile()!==e.getSourceFile()?N0:n!==null&&n.from!==null&&!n.from.startsWith(".")?n.from:null}};function M0(t){let e=V.default.getModifiers(t),n=!1,r=!1,s=Se.PublicWritable;if(e!==void 0)for(let i of e)switch(i.kind){case V.default.SyntaxKind.StaticKeyword:n=!0;break;case V.default.SyntaxKind.PrivateKeyword:s=Se.Private;break;case V.default.SyntaxKind.ProtectedKeyword:s=Se.Protected;break;case V.default.SyntaxKind.ReadonlyKeyword:r=!0;break}return r&&s===Se.PublicWritable&&(s=Se.PublicReadonly),t.name!==void 0&&V.default.isPrivateIdentifier(t.name)&&(s=Se.EcmaScriptPrivate),{accessLevel:s,isStatic:n}}function Xg(t){let e=null,n=null,r=null,s=null;if(V.default.isPropertyDeclaration(t))e=_s.Property,n=t.initializer||null;else if(V.default.isGetAccessorDeclaration(t))e=_s.Getter;else if(V.default.isSetAccessorDeclaration(t))e=_s.Setter;else if(V.default.isMethodDeclaration(t))e=_s.Method;else if(V.default.isConstructorDeclaration(t))e=_s.Constructor;else return null;if(V.default.isConstructorDeclaration(t))r="constructor";else if(V.default.isIdentifier(t.name))r=t.name.text,s=t.name;else if(V.default.isStringLiteral(t.name))r=t.name.text,s=t.name;else if(V.default.isPrivateIdentifier(t.name))r=t.name.text,s=t.name;else return null;let{accessLevel:i,isStatic:o}=M0(t);return{node:t,implementation:t,kind:e,type:t.type||null,accessLevel:i,name:r,nameNode:s,value:n,isStatic:o}}function Yg(t){let e=new Map;return t.properties.forEach(n=>{if(V.default.isPropertyAssignment(n)){let r=O0(n.name);if(r===null)return;e.set(r,n.initializer)}else if(V.default.isShorthandPropertyAssignment(n))e.set(n.name.text,n.name);else return}),e}function Eg(t){if(!V.default.isClassDeclaration(t))throw new Error(`Reflecting on a ${V.default.SyntaxKind[t.kind]} instead of a ClassDeclaration.`);return t}function Tg(t){return V.default.isIdentifier(t)?t.text:null}function O0(t){return V.default.isIdentifier(t)||V.default.isStringLiteral(t)||V.default.isNumericLiteral(t)?t.text:null}function F0(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 B0(t){for(;V.default.isQualifiedName(t.left);)t=t.left;return V.default.isIdentifier(t.left)?t.left:null}function $0(t){for(;V.default.isPropertyAccessExpression(t.expression);)t=t.expression;return V.default.isIdentifier(t.expression)?t.expression:null}function U0(t){let e=t.parent;for(;e&&!V.default.isSourceFile(e);){if(V.default.isImportDeclaration(e))return e;e=e.parent}return null}function V0(t,e){return V.default.isImportSpecifier(t)?(t.propertyName!==void 0?t.propertyName:t.name).text:e.text}var fp=Symbol("LocalExportedDeclarations"),Qg=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 s,i;let n=t.getSourceFile();return this.scanImports(n),(i=(s=this.fileToNamespaceImports.get(n).get(e))==null?void 0:s.has(t.text))!=null?i:!1}hasNamedImport(t,e,n){this.scanImports(t);let s=this.fileToNamedImports.get(t).get(n);return s!==void 0&&s.has(e)}hasNamespaceImport(t,e){return this.scanImports(t),this.fileToNamespaceImports.get(t).has(e)}scanImports(t){var r,s;if(this.fileToNamedImports.has(t)&&this.fileToNamespaceImports.has(t))return;let e=new Map,n=new Map;this.fileToNamedImports.set(t,e),this.fileToNamespaceImports.set(t,n);for(let i of t.statements){if(!Il.default.isImportDeclaration(i)||!Il.default.isStringLiteralLike(i.moduleSpecifier)||((r=i.importClause)==null?void 0:r.namedBindings)===void 0)continue;let o=i.moduleSpecifier.text;if(Il.default.isNamespaceImport(i.importClause.namedBindings))n.has(o)||n.set(o,new Set),n.get(o).add(i.importClause.namedBindings.name.text);else for(let l of i.importClause.namedBindings.elements){let c=l.name.text,u=l.propertyName===void 0?c:l.propertyName.text;e.has(o)||e.set(o,new Map);let h=e.get(o);h.has(u)||h.set(u,new Set),(s=h.get(u))==null||s.add(c)}}}};var xg=Symbol("patchedReferencedAliases");function Jg(t){G0(t)||wg();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&&wg();let s=new Set;return e.isReferencedAliasDeclaration=function(i,...o){return Zg(i)&&s.has(i)?!0:r.call(e,i,...o)},e[xg]=s}function Zg(t){return Dl.default.isImportSpecifier(t)||Dl.default.isNamespaceImport(t)||Dl.default.isImportClause(t)}function G0(t){return t.getEmitResolver!==void 0}function wg(){throw Error(`Angular compiler is incompatible with this version of the TypeScript compiler.
|
|
35
|
+
`.trim());if(t.some((n,s)=>e[s].constructor!==n.constructor))throw new Error("The types of the i18n message children changed between first and second pass.")}var wC=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function xC(t){return t.split(wC)[2]}var df=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","iframe|src","object|codebase","object|data"]);function mf(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),df.has(t+"|"+e)||df.has("*|"+e)}var CC=t=>(e,n)=>{var r;let s=(r=t.get(e))!=null?r:e;return s instanceof es&&(n instanceof pi&&s.i18n instanceof vt&&(n.previousMessage=s.i18n),s.i18n=n),n},ll=class{constructor(e=!1,n=!1,s=!0,r=!s){a(this,"keepI18nAttrs");a(this,"enableI18nLegacyMessageIdFormat");a(this,"preserveSignificantWhitespace");a(this,"retainEmptyTokens");a(this,"hasI18nMeta",!1);a(this,"_errors",[]);this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=n,this.preserveSignificantWhitespace=s,this.retainEmptyTokens=r}_generateI18nMessage(e,n="",s){let{meaning:r,description:i,customId:o}=this._parseMetadata(n),c=yC(this.retainEmptyTokens,this.preserveSignificantWhitespace)(e,r,i,o,s);return this._setMessageId(c,n),this._setLegacyIds(c,n),c}visitAllWithErrors(e){let n=e.map(s=>s.visit(this,null));return new il(n,this._errors)}visitElement(e){return this._visitElementLike(e),e}visitComponent(e,n){return this._visitElementLike(e),e}visitExpansion(e,n){let s,r=e.i18n;if(this.hasI18nMeta=!0,r instanceof pi){let i=r.name;s=this._generateI18nMessage([e],r);let o=Fd(s);o.name=i,n!==null&&(n.placeholderToMessage[i]=s)}else s=this._generateI18nMessage([e],n||r);return e.i18n=s,e}visitText(e){return e}visitAttribute(e){return e}visitComment(e){return e}visitExpansionCase(e){return e}visitBlock(e,n){return ge(this,e.children,n),e}visitBlockParameter(e,n){return e}visitLetDeclaration(e,n){return e}visitDirective(e,n){return e}_visitElementLike(e){let n;if(UE(e)){this.hasI18nMeta=!0;let s=[],r={};for(let i of e.attrs)if(i.name===Md){let o=e.i18n||i.value,l=new Map,c=this.preserveSignificantWhitespace?e.children:xn(new ol(!1,l),e.children);n=this._generateI18nMessage(c,o,CC(l)),n.nodes.length===0&&(n=void 0),e.i18n=n}else if(i.name.startsWith(qc)){let o=i.name.slice(qc.length),l;e instanceof ht?l=e.tagName===null?!1:mf(e.tagName,o):l=mf(e.name,o),l?this._reportError(i,`Translating attribute '${o}' is disallowed for security reasons.`):r[o]=i.value}else s.push(i);if(Object.keys(r).length)for(let i of s){let o=r[i.name];o!==void 0&&i.value&&(i.i18n=this._generateI18nMessage([i],i.i18n||o))}this.keepI18nAttrs||(e.attrs=s)}ge(this,e.children,n)}_parseMetadata(e){return typeof e=="string"?NC(e):e instanceof vt?e:{}}_setMessageId(e,n){e.id||(e.id=n instanceof vt&&n.id||HS(e))}_setLegacyIds(e,n){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[GS(e),Ed(e)];else if(typeof n!="string"){let s=n instanceof vt?n:n instanceof pi?n.previousMessage:void 0;e.legacyIds=s?s.legacyIds:[]}}_reportError(e,n){this._errors.push(new G(e.sourceSpan,n))}},AC="|",IC="@@";function NC(t=""){let e,n,s;if(t=t.trim(),t){let r=t.indexOf(IC),i=t.indexOf(AC),o;[o,e]=r>-1?[t.slice(0,r),t.slice(r+2)]:[t,""],[n,s]=i>-1?[o.slice(0,i),o.slice(i+1)]:["",o]}return{customId:e,meaning:n,description:s}}function DC(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}),Nd(e)}var bC="goog.getMsg";function _C(t,e,n,s){let r=RC(e),i=[S(r)];Object.keys(s).length&&(i.push(uu(Yu(s,!0),!0)),i.push(uu({original_code:xt(Object.keys(s).map(c=>({key:Ko(c),quoted:!0,value:e.placeholders[c]?S(e.placeholders[c].sourceSpan.toString()):S(e.placeholderToMessage[c].nodes.map(u=>u.sourceSpan.toString()).join(""))})))})));let o=new Ve(n.name,J(bC).callFn(i),tn,Ue.Final);o.addLeadingComment(DC(e));let l=new Je(t.set(n));return[o,l]}var Nu=class{formatPh(e){return`{$${Ko(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(n=>n.visit(this)).join("")}visitIcu(e){return Sm(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)}},kC=new Nu;function RC(t){return t.nodes.map(e=>e.visit(kC,null)).join("")}function PC(t,e,n){let{messageParts:s,placeHolders:r}=LC(e),i=MC(e),o=r.map(u=>n[u.text]),l=_d(e,s,r,o,i),c=t.set(l);return[new Je(c)]}var Du=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 ys)this.pieces[this.pieces.length-1].text+=e.value;else{let n=new H(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new ys(e.value,n))}}visitContainer(e){e.children.forEach(n=>n.visit(this))}visitIcu(e){this.pieces.push(new ys(Sm(e),e.sourceSpan))}visitTagPlaceholder(e){var n,s;this.pieces.push(this.createPlaceholderPiece(e.startName,(n=e.startSourceSpan)!=null?n:e.sourceSpan)),e.isVoid||(e.children.forEach(r=>r.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,(s=e.endSourceSpan)!=null?s:e.sourceSpan)))}visitPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan))}visitBlockPlaceholder(e){var n,s;this.pieces.push(this.createPlaceholderPiece(e.startName,(n=e.startSourceSpan)!=null?n:e.sourceSpan)),e.children.forEach(r=>r.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,(s=e.endSourceSpan)!=null?s:e.sourceSpan))}visitIcuPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan,this.placeholderToMessage[e.name]))}createPlaceholderPiece(e,n,s){return new rr(Ko(e,!1),n,s)}};function LC(t){let e=[],n=new Du(t.placeholderToMessage,e);return t.nodes.forEach(s=>s.visit(n)),OC(e)}function MC(t){let e=t.nodes[0],n=t.nodes[t.nodes.length-1];return new H(e.sourceSpan.fullStart,n.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}function OC(t){let e=[],n=[];t[0]instanceof rr&&e.push(oc(t[0].sourceSpan.start));for(let s=0;s<t.length;s++){let r=t[s];r instanceof ys?e.push(r):(n.push(r),t[s-1]instanceof rr&&e.push(oc(t[s-1].sourceSpan.end)))}return t[t.length-1]instanceof rr&&e.push(oc(t[t.length-1].sourceSpan.end)),{messageParts:e,placeHolders:n}}function oc(t){return new ys("",new H(t,t))}var gf="ngI18nClosureMode",FC="i18n_",BC="I18N_EXP_",yf="\uFFFD",$C="MSG_";function vf(t){return`${$C}${t}`.toUpperCase()}function UC(t){return new Ve(t.name,void 0,tn,void 0,t.sourceSpan)}function VC(t){var c,u;let e=t.relativeContextFilePath.replace(/[^A-Za-z0-9]/g,"_").toUpperCase()+"_",n=new Map,s=new Map,r=new Map,i=new Map;for(let h of t.units)for(let d of h.ops())if(d.kind===f.ExtractedAttribute&&d.i18nContext!==null){let p=(c=n.get(d.i18nContext))!=null?c:[];p.push(d),n.set(d.i18nContext,p)}else if(d.kind===f.I18nAttributes)s.set(d.target,d);else if(d.kind===f.I18nExpression&&d.usage===xr.I18nAttribute){let p=(u=r.get(d.target))!=null?u:[];p.push(d),r.set(d.target,p)}else d.kind===f.I18nMessage&&i.set(d.xref,d);let o=new Map,l=new Map;for(let h of t.units)for(let d of h.create)if(d.kind===f.I18nMessage){if(d.messagePlaceholder===null){let{mainVar:p,statements:g}=Nm(t,e,i,d);if(d.i18nBlock!==null){let v=t.addConst(p,g);l.set(d.i18nBlock,v)}else{t.constsInitializers.push(...g),o.set(d.i18nContext,p);let v=n.get(d.i18nContext);if(v!==void 0)for(let E of v)E.expression=p.clone()}}w.remove(d)}for(let h of t.units)for(let d of h.create)if(Gs(d)){let p=s.get(d.xref);if(p===void 0)continue;let g=r.get(d.xref);if(g===void 0)throw new Error("AssertionError: Could not find any i18n expressions associated with an I18nAttributes instruction");let v=new Set;g=g.filter(I=>{let D=v.has(I.name);return v.add(I.name),!D});let E=g.flatMap(I=>{let D=o.get(I.context);if(D===void 0)throw new Error("AssertionError: Could not find i18n expression's value");return[S(I.name),D]});p.i18nAttributesConfig=t.addConst(new kt(E))}for(let h of t.units)for(let d of h.create)if(d.kind===f.I18nStart){let p=l.get(d.root);if(p===void 0)throw new Error("AssertionError: Could not find corresponding i18n block index for an i18n message op; was an i18n message incorrectly assumed to correspond to an attribute?");d.messageIndex=p}}function Nm(t,e,n,s){var u;let r=[],i=new Map;for(let h of s.subMessages){let d=n.get(h),{mainVar:p,statements:g}=Nm(t,e,n,d);r.push(...g);let v=(u=i.get(d.messagePlaceholder))!=null?u:[];v.push(p),i.set(d.messagePlaceholder,v)}GC(s,i),s.params=new Map([...s.params.entries()].sort());let o=J(t.pool.uniqueName(FC)),l=WC(t.pool,s.message.id,e,t.i18nUseExternalIds),c;if(s.needsPostprocessing||s.postprocessingParams.size>0){let h=Object.fromEntries([...s.postprocessingParams.entries()].sort()),d=Yu(h,!1),p=[];s.postprocessingParams.size>0&&p.push(uu(d,!0)),c=g=>O(m.i18nPostprocess).callFn([g,...p])}return r.push(...HC(s.message,o,l,s.params,c)),{mainVar:o,statements:r}}function GC(t,e){for(let[n,s]of e)s.length===1?t.params.set(n,s[0]):(t.params.set(n,S(`${yf}${BC}${n}${yf}`)),t.postprocessingParams.set(n,ae(s)))}function HC(t,e,n,s,r){let i=Object.fromEntries(s),o=[UC(e),zo(qC(),_C(e,t,n,i),PC(e,t,Yu(i,!1)))];return r&&o.push(new Je(e.set(r(e)))),o}function qC(){return Si(J(gf)).notIdentical(S("undefined",vl)).and(J(gf))}function WC(t,e,n,s){let r,i=n;if(s){let o=vf("EXTERNAL_"),l=t.uniqueName(i);r=`${o}${er(e)}$$${l}`}else{let o=vf(i);r=t.uniqueName(o)}return J(r)}function jC(t){var e,n,s;for(let r of t.units){let i=null,o=null,l=new Map,c=new Map,u=new Map;for(let h of r.create)switch(h.kind){case f.I18nStart:if(h.context===null)throw Error("I18n op should have its context set.");i=h;break;case f.I18nEnd:i=null;break;case f.IcuStart:if(h.context===null)throw Error("Icu op should have its context set.");o=h;break;case f.IcuEnd:o=null;break;case f.Text:if(i!==null)if(l.set(h.xref,i),c.set(h.xref,o),h.icuPlaceholder!==null){let d=Sw(t.allocateXrefId(),h.icuPlaceholder,[h.initialValue]);w.replace(h,d),u.set(h.xref,d)}else w.remove(h);break}for(let h of r.update)switch(h.kind){case f.InterpolateText:if(!l.has(h.target))continue;let d=l.get(h.target),p=c.get(h.target),g=u.get(h.target),v=p?p.context:d.context,E=p?fi.Postproccessing:fi.Creation,I=[];for(let D=0;D<h.interpolation.expressions.length;D++){let b=h.interpolation.expressions[D];I.push(im(v,d.xref,d.xref,d.handle,b,(e=g==null?void 0:g.xref)!=null?e:null,(n=h.interpolation.i18nPlaceholders[D])!=null?n:null,E,xr.I18nText,"",(s=b.sourceSpan)!=null?s:h.sourceSpan))}w.replaceWithMany(h,I),g!==void 0&&(g.strings=h.interpolation.strings);break}}}function zC(t){for(let e of t.units)for(let n of e.create)switch(n.kind){case f.ElementStart:case f.ConditionalCreate:case f.ConditionalBranchCreate: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 s=KC(n.localRefs);n.localRefs=t.addConst(s)}else n.localRefs=null;break}}function KC(t){let e=[];for(let n of t)e.push(S(n.name),S(n.target));return ae(e)}function XC(t){for(let e of t.units){let n=nt.HTML;for(let s of e.create)s.kind===f.ElementStart&&s.namespace!==n&&(w.insertBefore(pw(s.namespace),s),n=s.namespace)}}function YC(t){let e=[],n=0,s=0,r=0,i=0,o=0,l=null;for(;n<t.length;)switch(t.charCodeAt(n++)){case 40:s++;break;case 41:s--;break;case 39:r===0?r=39:r===39&&t.charCodeAt(n-1)!==92&&(r=0);break;case 34:r===0?r=34:r===34&&t.charCodeAt(n-1)!==92&&(r=0);break;case 58:!l&&s===0&&r===0&&(l=Dm(t.substring(o,n-1).trim()),i=n);break;case 59:if(l&&i>0&&s===0&&r===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 Dm(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function QC(t){let e=new Map;for(let n of t.units)for(let s of n.create)Gs(s)&&e.set(s.xref,s);for(let n of t.units)for(let s of n.create)if(s.kind===f.ExtractedAttribute&&s.bindingKind===M.Attribute&&om(s.expression)){let r=e.get(s.target);if(r!==void 0&&(r.kind===f.Template||r.kind===f.ConditionalCreate||r.kind===f.ConditionalBranchCreate)&&r.templateKind===St.Structural)continue;if(s.name==="style"){let i=YC(s.expression.value);for(let o=0;o<i.length-1;o+=2)w.insertBefore(Zt(s.target,M.StyleProperty,null,i[o],S(i[o+1]),null,null,ue.STYLE),s);w.remove(s)}else if(s.name==="class"){let i=s.expression.value.trim().split(/\s+/g);for(let o of i)w.insertBefore(Zt(s.target,M.ClassName,null,o,null,null,null,ue.NONE),s);w.remove(s)}}}function JC(t){ji(t.root,t.componentName,{index:0})}function ji(t,e,n){t.fnName===null&&(t.fnName=t.job.pool.uniqueName(er(`${e}_${t.job.fnSuffix}`),!1));let s=new Map;for(let r of t.ops())switch(r.kind){case f.Property:case f.DomProperty:r.bindingKind===M.LegacyAnimation&&(r.name="@"+r.name);break;case f.Animation:if(r.handlerFnName===null){let u=r.name.replace(".","");r.handlerFnName=`${t.fnName}_${u}_cb`,r.handlerFnName=er(r.handlerFnName)}break;case f.AnimationListener:if(r.handlerFnName!==null)break;if(!r.hostListener&&r.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let i=r.name.replace(".","");r.hostListener?r.handlerFnName=`${e}_${i}_HostBindingHandler`:r.handlerFnName=`${t.fnName}_${r.tag.replace("-","_")}_${i}_${r.targetSlot.slot}_listener`,r.handlerFnName=er(r.handlerFnName);break;case f.Listener:if(r.handlerFnName!==null)break;if(!r.hostListener&&r.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let o="";r.isLegacyAnimationListener&&(r.name=`@${r.name}.${r.legacyAnimationPhase}`,o="animation"),r.hostListener?r.handlerFnName=`${e}_${o}${r.name}_HostBindingHandler`:r.handlerFnName=`${t.fnName}_${r.tag.replace("-","_")}_${o}${r.name}_${r.targetSlot.slot}_listener`,r.handlerFnName=er(r.handlerFnName);break;case f.TwoWayListener:if(r.handlerFnName!==null)break;if(r.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");r.handlerFnName=er(`${t.fnName}_${r.tag.replace("-","_")}_${r.name}_${r.targetSlot.slot}_listener`);break;case f.Variable:s.set(r.xref,ZC(r.variable,n));break;case f.RepeaterCreate:if(!(t instanceof en))throw new Error("AssertionError: must be compiling a component");if(r.handle.slot===null)throw new Error("Expected slot to be assigned");if(r.emptyView!==null){let u=t.job.views.get(r.emptyView);ji(u,`${e}_${r.functionNameSuffix}Empty_${r.handle.slot+2}`,n)}ji(t.job.views.get(r.xref),`${e}_${r.functionNameSuffix}_${r.handle.slot+1}`,n);break;case f.Projection:if(!(t instanceof en))throw new Error("AssertionError: must be compiling a component");if(r.handle.slot===null)throw new Error("Expected slot to be assigned");if(r.fallbackView!==null){let u=t.job.views.get(r.fallbackView);ji(u,`${e}_ProjectionFallback_${r.handle.slot}`,n)}break;case f.ConditionalCreate:case f.ConditionalBranchCreate:case f.Template:if(!(t instanceof en))throw new Error("AssertionError: must be compiling a component");let l=t.job.views.get(r.xref);if(r.handle.slot===null)throw new Error("Expected slot to be assigned");let c=r.functionNameSuffix.length===0?"":`_${r.functionNameSuffix}`;ji(l,`${e}${c}_${r.handle.slot}`,n);break;case f.StyleProp:r.name=Sf(eA(r.name));break;case f.ClassProp:r.name=Sf(r.name);break}for(let r of t.ops())Me(r,i=>{if(!(!(i instanceof Yn)||i.name!==null)){if(!s.has(i.xref))throw new Error(`Variable ${i.xref} not yet named`);i.name=s.get(i.xref)}})}function ZC(t,e){if(t.name===null)switch(t.kind){case We.Context:t.name=`ctx_r${e.index++}`;break;case We.Identifier:let n=t.identifier===qt?"i":"";t.name=`${t.identifier}_${n}r${++e.index}`;break;default:t.name=`_r${++e.index}`;break}return t.name}function eA(t){return t.startsWith("--")?t:Dm(t)}function Sf(t){let e=t.indexOf("!important");return e>-1?t.substring(0,e):t}function tA(t){for(let e of t.units){for(let n of e.functions)ac(n.ops);for(let n of e.create)(n.kind===f.Listener||n.kind===f.Animation||n.kind===f.AnimationListener||n.kind===f.TwoWayListener)&&ac(n.handlerOps);ac(e.update)}}function ac(t){for(let e of t){if(e.kind!==f.Statement||!(e.statement instanceof Je)||!(e.statement.expr instanceof Wa))continue;let n=e.statement.expr.steps,s=!0;for(let r=e.next;r.kind!==f.ListEnd&&s;r=r.next)Me(r,(i,o)=>{if(!Un(i))return i;if(s&&!(o&Q.InChildOperation))switch(i.kind){case F.NextContext:i.steps+=n,w.remove(e),s=!1;break;case F.GetCurrentView:case F.Reference:case F.ContextLetReference:s=!1;break}})}}var nA="ng-container";function sA(t){for(let e of t.units){let n=new Set;for(let s of e.create)s.kind===f.ElementStart&&s.tag===nA&&(s.kind=f.ContainerStart,n.add(s.xref)),s.kind===f.ElementEnd&&n.has(s.xref)&&(s.kind=f.ContainerEnd)}}function rA(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 iA(t){let e=new Map;for(let n of t.units)for(let s of n.create)Gs(s)&&e.set(s.xref,s);for(let n of t.units)for(let s of n.create)(s.kind===f.ElementStart||s.kind===f.ContainerStart)&&s.nonBindable&&w.insertAfter(ow(s.xref),s),(s.kind===f.ElementEnd||s.kind===f.ContainerEnd)&&rA(e,s.xref).nonBindable&&w.insertBefore(aw(s.xref),s)}function Nn(t){return e=>e.kind===t}function Yi(t,e){return n=>n.kind===t&&e===n.expression instanceof Ae}function oA(t){return t.kind===f.Listener&&!(t.hostListener&&t.isLegacyAnimationListener)||t.kind===f.TwoWayListener||t.kind===f.Animation||t.kind===f.AnimationListener}function aA(t){return(t.kind===f.Property||t.kind===f.TwoWayProperty)&&!(t.expression instanceof Ae)}var lA=[{test:t=>t.kind===f.Listener&&t.hostListener&&t.isLegacyAnimationListener},{test:oA}],cA=[{test:Nn(f.StyleMap),transform:cl},{test:Nn(f.ClassMap),transform:cl},{test:Nn(f.StyleProp)},{test:Nn(f.ClassProp)},{test:Yi(f.Attribute,!0)},{test:Yi(f.Property,!0)},{test:aA},{test:Yi(f.Attribute,!1)},{test:Nn(f.Control)}],uA=[{test:Yi(f.DomProperty,!0)},{test:Yi(f.DomProperty,!1)},{test:Nn(f.Attribute)},{test:Nn(f.StyleMap),transform:cl},{test:Nn(f.ClassMap),transform:cl},{test:Nn(f.StyleProp)},{test:Nn(f.ClassProp)}],Ef=new Set([f.Listener,f.TwoWayListener,f.AnimationListener,f.StyleMap,f.ClassMap,f.StyleProp,f.ClassProp,f.Property,f.TwoWayProperty,f.DomProperty,f.Attribute,f.Animation,f.Control]);function pA(t){for(let e of t.units){Tf(e.create,lA);let n=e.job.kind===_.Host?uA:cA;Tf(e.update,n)}}function Tf(t,e){let n=[],s=null;for(let r of t){let i=_o(r)?r.target:null;(!Ef.has(r.kind)||i!==s&&s!==null&&i!==null)&&(w.insertBefore(wf(n,e),r),n=[],s=null),Ef.has(r.kind)&&(n.push(r),w.remove(r),s=i!=null?i:s)}t.push(wf(n,e))}function wf(t,e){let n=Array.from(e,()=>new Array);for(let s of t){let r=e.findIndex(i=>i.test(s));n[r].push(s)}return n.flatMap((s,r)=>{let i=e[r].transform;return i?i(s):s})}function cl(t){return t.slice(t.length-1)}function hA(t){for(let e of t.units){let n=mm(e);for(let s of e.ops())if(s.kind===f.Binding){let r=dA(n,s.target);fA(s.name)&&r.kind===f.Projection&&w.remove(s)}}}function fA(t){return t.toLowerCase()==="select"}function dA(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an slottable target.");return n}function mA(t){for(let e of t.units)gA(e)}function gA(t){for(let e of t.update)Me(e,(n,s)=>{if(!Un(n)||n.kind!==F.PipeBinding)return;if(s&Q.InChildOperation)throw new Error("AssertionError: pipe bindings should not appear in child expressions");if(e.target==null)throw new Error("AssertionError: expected slot handle to be assigned for pipe creation");yA(t,e.target,n)})}function yA(t,e,n){for(let s=t.create.head.next;s.kind!==f.ListEnd;s=s.next){if(!xi(s)||s.xref!==e)continue;for(;s.next.kind===f.Pipe;)s=s.next;let r=uw(n.target,n.targetSlot,n.name);w.insertBefore(r,s.next);return}throw new Error(`AssertionError: unable to find insertion point for pipe ${n.name}`)}function vA(t){for(let e of t.units)for(let n of e.update)Ie(n,s=>!(s instanceof Ir)||s.args.length<=4?s:new Lo(s.target,s.targetSlot,s.name,ae(s.args),s.args.length),Q.None)}function SA(t){bm(t.root,0)}function bm(t,e){let n=null;for(let s of t.create)switch(s.kind){case f.I18nStart:s.subTemplateIndex=e===0?null:e,n=s;break;case f.I18nEnd:n.subTemplateIndex===null&&(e=0),n=null;break;case f.ConditionalCreate:case f.ConditionalBranchCreate:case f.Template:e=da(t.job.views.get(s.xref),n,s.i18nPlaceholder,e);break;case f.RepeaterCreate:let r=t.job.views.get(s.xref);e=da(r,n,s.i18nPlaceholder,e),s.emptyView!==null&&(e=da(t.job.views.get(s.emptyView),n,s.emptyI18nPlaceholder,e));break;case f.Projection:s.fallbackView!==null&&(e=da(t.job.views.get(s.fallbackView),n,s.fallbackViewI18nPlaceholder,e));break}return e}function da(t,e,n,s){if(n!==void 0){if(e===null)throw Error("Expected template with i18n placeholder to be in an i18n block.");s++,EA(t,e)}return bm(t,s)}function EA(t,e){var n;if(((n=t.create.head.next)==null?void 0:n.kind)!==f.I18nStart){let s=t.job.allocateXrefId();w.insertAfter(wl(s,e.message,e.root,null),t.create.head),w.insertBefore(xl(s,null),t.create.tail)}}function TA(t){for(let e of t.units)for(let n of e.ops())Me(n,s=>{if(!(s instanceof Ar)||s.body===null)return;let r=new bu(s.args.length);s.fn=t.pool.getSharedConstant(r,s.body),s.body=null})}var bu=class extends co{constructor(n){super();a(this,"numArgs");this.numArgs=n}keyOf(n){return n instanceof Us?`param(${n.index})`:super.keyOf(n)}toSharedConstantDeclaration(n,s){let r=[];for(let o=0;o<this.numArgs;o++)r.push(new Oe("a"+o,Et));let i=k(s,o=>o instanceof Us?J("a"+o.index):o,Q.None);return new Ve(n,new Gn(r,i),void 0,Ue.Final)}};function wA(t){for(let e of t.units)for(let n of e.update)Ie(n,(s,r)=>r&Q.InChildOperation?s:s instanceof kt?xA(s):s instanceof rn?CA(s):s,Q.None)}function xA(t){let e=[],n=[];for(let s of t.entries){if(s instanceof xs){if(s.expression.isConstant())e.push(s);else{let r=n.length;n.push(s.expression),e.push(new xs(new Us(r)))}continue}if(s.isConstant())e.push(s);else{let r=n.length;n.push(s),e.push(new Us(r))}}return new Ar(ae(e),n)}function CA(t){let e=[],n=[];for(let s of t.entries){if(s instanceof yn){if(s.expression.isConstant())e.push(s);else{let r=n.length;n.push(s.expression),e.push(new yn(new Us(r)))}continue}if(s.value.isConstant())e.push(s);else{let r=n.length;n.push(s.value),e.push(new ws(s.key,new Us(r),s.quoted))}}return new Ar(new rn(e),n)}function AA(t){for(let e of t.units)for(let n of e.ops())Ie(n,s=>s instanceof hr&&(s.flags===null||!s.flags.includes("g"))?t.pool.getSharedConstant(new _u,s):s,Q.None)}var _u=class extends co{toSharedConstantDeclaration(e,n){return new Ve(e,n,void 0,Ue.Final)}};function IA(t,e,n,s,r){return zs(m.element,t,e,n,s,r)}function NA(t,e,n,s,r){return zs(m.elementStart,t,e,n,s,r)}function zs(t,e,n,s,r,i){let o=[S(e)];return n!==null&&o.push(S(n)),r!==null?o.push(S(s),S(r)):s!==null&&o.push(S(s)),K(t,o,i)}function _m(t,e,n,s,r,i,o,l,c){let u=[S(e),n,S(s),S(r),S(i),S(o)];for(l!==null&&(u.push(S(l)),u.push(O(m.templateRefExtractor)));u[u.length-1].isEquivalent(fr);)u.pop();return K(t,u,c)}function op(t,e,n,s,r){let i=[S(e)];return n instanceof Ae?i.push(Ci(n,r)):i.push(n),s!==null&&i.push(s),K(t,i,r)}function DA(t){return K(m.elementEnd,[],t)}function bA(t,e,n,s){return zs(m.elementContainerStart,t,null,e,n,s)}function _A(t,e,n,s){return zs(m.elementContainer,t,null,e,n,s)}function kA(){return K(m.elementContainerEnd,[],null)}function RA(t,e,n,s,r,i,o,l){return _m(m.templateCreate,t,e,n,s,r,i,o,l)}function PA(){return K(m.disableBindings,[],null)}function LA(){return K(m.enableBindings,[],null)}function MA(t,e,n,s,r){let i=[S(t),e];return n!==null&&i.push(O(n)),K(s?m.syntheticHostListener:m.listener,i,r)}function xf(t,e){return O(m.twoWayBindingSet).callFn([t,e])}function OA(t,e,n){return K(m.twoWayListener,[S(t),e],n)}function FA(t,e){return K(m.pipe,[S(t),S(e)],null)}function BA(){return K(m.namespaceHTML,[],null)}function $A(){return K(m.namespaceSVG,[],null)}function UA(){return K(m.namespaceMathML,[],null)}function VA(t,e){return K(m.advance,t>1?[S(t)]:[],e)}function GA(t){return O(m.reference).callFn([S(t)])}function HA(t){return O(m.nextContext).callFn(t===1?[]:[S(t)])}function qA(){return O(m.getCurrentView).callFn([])}function WA(t){return O(m.restoreView).callFn([t])}function jA(t){return O(m.resetView).callFn([t])}function zA(t,e,n){let s=[S(t,null)];return e!==""&&s.push(S(e)),K(m.text,s,n)}function KA(t,e,n,s,r,i,o,l,c,u,h){let d=[S(t),S(e),n!=null?n:S(null),S(s),S(r),S(i),o!=null?o:S(null),l!=null?l:S(null),c?O(m.deferEnableTimerScheduling):S(null),S(h)],p;for(;(p=d[d.length-1])!==null&&p instanceof _e&&p.value===null;)d.pop();return K(m.defer,d,u)}var XA=new Map([[ce.Idle,{none:m.deferOnIdle,prefetch:m.deferPrefetchOnIdle,hydrate:m.deferHydrateOnIdle}],[ce.Immediate,{none:m.deferOnImmediate,prefetch:m.deferPrefetchOnImmediate,hydrate:m.deferHydrateOnImmediate}],[ce.Timer,{none:m.deferOnTimer,prefetch:m.deferPrefetchOnTimer,hydrate:m.deferHydrateOnTimer}],[ce.Hover,{none:m.deferOnHover,prefetch:m.deferPrefetchOnHover,hydrate:m.deferHydrateOnHover}],[ce.Interaction,{none:m.deferOnInteraction,prefetch:m.deferPrefetchOnInteraction,hydrate:m.deferHydrateOnInteraction}],[ce.Viewport,{none:m.deferOnViewport,prefetch:m.deferPrefetchOnViewport,hydrate:m.deferHydrateOnViewport}],[ce.Never,{none:m.deferHydrateNever,prefetch:m.deferHydrateNever,hydrate:m.deferHydrateNever}]]);function YA(t,e,n,s){var i;let r=(i=XA.get(t))==null?void 0:i[n];if(r===void 0)throw new Error(`Unable to determine instruction for trigger ${t}`);return K(r,e,s)}function QA(t){return K(m.projectionDef,t?[t]:[],null)}function JA(t,e,n,s,r,i,o){let l=[S(t)];return(e!==0||n!==null||s!==null)&&(l.push(S(e)),n!==null&&l.push(n),s!==null&&(n===null&&l.push(S(null)),l.push(J(s),S(r),S(i)))),K(m.projection,l,o)}function ZA(t,e,n,s){let r=[S(t),S(e)];return n!==null&&r.push(S(n)),K(m.i18nStart,r,s)}function eI(t,e,n,s,r,i,o,l){let c=[S(t),e,S(n),S(s),S(r),S(i)];for(o!==null&&(c.push(S(o)),c.push(O(m.templateRefExtractor)));c[c.length-1].isEquivalent(fr);)c.pop();return K(m.conditionalCreate,c,l)}function tI(t,e,n,s,r,i,o,l){let c=[S(t),e,S(n),S(s),S(r),S(i)];for(o!==null&&(c.push(S(o)),c.push(O(m.templateRefExtractor)));c[c.length-1].isEquivalent(fr);)c.pop();return K(m.conditionalBranchCreate,c,l)}function nI(t,e,n,s,r,i,o,l,c,u,h,d,p,g){let v=[S(t),J(e),S(n),S(s),S(r),S(i),o];return(l||c!==null)&&(v.push(S(l)),c!==null&&(v.push(J(c),S(u),S(h)),(d!==null||p!==null)&&v.push(S(d)),p!==null&&v.push(S(p)))),K(m.repeaterCreate,v,g)}function sI(t,e){return K(m.repeater,[t],e)}function rI(t,e,n){return t==="prefetch"?K(m.deferPrefetchWhen,[e],n):t==="hydrate"?K(m.deferHydrateWhen,[e],n):K(m.deferWhen,[e],n)}function iI(t,e){return K(m.declareLet,[S(t)],e)}function oI(t,e){return O(m.storeLet).callFn([t],e)}function aI(t){return O(m.readContextLet).callFn([S(t)])}function lI(t,e,n,s){let r=[S(t),S(e)];return n&&r.push(S(n)),K(m.i18n,r,s)}function cI(t){return K(m.i18nEnd,[],t)}function uI(t,e){let n=[S(t),S(e)];return K(m.i18nAttributes,n,null)}function pI(t,e,n){return op(m.ariaProperty,t,e,null,n)}function hI(t,e,n,s){return op(m.property,t,e,n,s)}function fI(t){return K(m.control,[],t)}function dI(t){return K(m.controlCreate,[],t)}function mI(t,e,n,s){let r=[S(t),e];return n!==null&&r.push(n),K(m.twoWayProperty,r,s)}function gI(t,e,n,s,r){let i=[S(t)];return e instanceof Ae?i.push(Ci(e,r)):i.push(e),(n!==null||s!==null)&&i.push(n!=null?n:S(null)),s!==null&&i.push(S(s)),K(m.attribute,i,null)}function yI(t,e,n,s){let r=[S(t)];return e instanceof Ae?r.push(Ci(e,s)):r.push(e),n!==null&&r.push(S(n)),K(m.styleProp,r,s)}function vI(t,e,n){return K(m.classProp,[S(t),e],n)}function SI(t,e){let n=t instanceof Ae?Ci(t,e):t;return K(m.styleMap,[n],e)}function EI(t,e){let n=t instanceof Ae?Ci(t,e):t;return K(m.classMap,[n],e)}function TI(t,e,n,s,r){return zs(m.domElement,t,e,n,s,r)}function wI(t,e,n,s,r){return zs(m.domElementStart,t,e,n,s,r)}function xI(t){return K(m.domElementEnd,[],t)}function CI(t,e,n,s){return zs(m.domElementContainerStart,t,null,e,n,s)}function AI(t,e,n,s){return zs(m.domElementContainer,t,null,e,n,s)}function II(){return K(m.domElementContainerEnd,[],null)}function NI(t,e,n,s){let r=[S(t),e];return n!==null&&r.push(O(n)),K(m.domListener,r,s)}function DI(t,e,n,s,r,i,o,l){return _m(m.domTemplate,t,e,n,s,r,i,o,l)}var Cf=[m.pipeBind1,m.pipeBind2,m.pipeBind3,m.pipeBind4];function bI(t,e,n){if(n.length<1||n.length>Cf.length)throw new Error("pipeBind() argument count out of bounds");let s=Cf[n.length-1];return O(s).callFn([S(t),S(e),...n])}function _I(t,e,n){return O(m.pipeBindV).callFn([S(t),S(e),n])}function kI(t,e,n){let s=km(t,e);return jI(HI,[],s,n)}function RI(t,e){return K(m.i18nExp,[t],e)}function PI(t,e){return K(m.i18nApply,[S(t)],e)}function LI(t,e,n,s){return op(m.domProperty,t,e,n,s)}function MI(t,e,n,s){let r=[e];n!==null&&r.push(n);let i=t==="enter"?m.animationEnter:m.animationLeave;return K(i,r,s)}function OI(t,e,n,s){let i=[e instanceof Ae?Ci(e,s):e];n!==null&&i.push(n);let o=t==="enter"?m.animationEnter:m.animationLeave;return K(o,i,s)}function FI(t,e,n,s){let r=[e],i=t==="enter"?m.animationEnterListener:m.animationLeaveListener;return K(i,r,s)}function BI(t,e,n){return K(m.syntheticHostProperty,[S(t),e],n)}function $I(t,e,n){return ap(WI,[S(t),e],n,null)}function UI(t,e){return K(m.attachSourceLocations,[S(t),e],null)}function VI(t,e,n){return O(m.arrowFunction).callFn([S(t),e,n])}function km(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 s;for(s=0;s<e.length;s++)n.push(S(t[s]),e[s]);n.push(S(t[s]))}return n}function Ci(t,e){let n=km(t.strings,t.expressions);return ap(qI,[],n,e)}function K(t,e,n){let s=O(t).callFn(e,n);return Wt(new Je(s,n))}function GI(t,e,n){let s=[t];return e!==null&&s.push(e),K(m.conditional,s,n)}var HI={constant:[m.textInterpolate,m.textInterpolate1,m.textInterpolate2,m.textInterpolate3,m.textInterpolate4,m.textInterpolate5,m.textInterpolate6,m.textInterpolate7,m.textInterpolate8],variable:m.textInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},qI={constant:[m.interpolate,m.interpolate1,m.interpolate2,m.interpolate3,m.interpolate4,m.interpolate5,m.interpolate6,m.interpolate7,m.interpolate8],variable:m.interpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},WI={constant:[m.pureFunction0,m.pureFunction1,m.pureFunction2,m.pureFunction3,m.pureFunction4,m.pureFunction5,m.pureFunction6,m.pureFunction7,m.pureFunction8],variable:m.pureFunctionV,mapping:t=>t};function ap(t,e,n,s){let r=t.mapping(n.length),i=n.at(-1);if(n.length>1&&i instanceof _e&&i.value===""&&n.pop(),r<t.constant.length)return O(t.constant[r]).callFn([...e,...n],s);if(t.variable!==null)return O(t.variable).callFn([...e,ae(n)],s);throw new Error("AssertionError: unable to call variadic function")}function jI(t,e,n,s){return Wt(ap(t,e,n,s).toStmt())}var zI=new Map([["window",m.resolveWindow],["document",m.resolveDocument],["body",m.resolveBody]]),KI=new Map([["class","className"],["for","htmlFor"],["formaction","formAction"],["innerHtml","innerHTML"],["readonly","readOnly"],["tabindex","tabIndex"]]);function XI(t){for(let e of t.units)YI(e,e.create),Cl(e,e.update)}function YI(t,e){var n,s,r,i,o,l,c,u,h,d;for(let p of e)switch(Ie(p,g=>Rm(t,g),Q.None),p.kind){case f.Text:w.replace(p,zA(p.handle.slot,p.initialValue,p.sourceSpan));break;case f.ElementStart:w.replace(p,t.job.mode===ft.DomOnly?wI(p.handle.slot,p.tag,p.attributes,p.localRefs,p.startSourceSpan):NA(p.handle.slot,p.tag,p.attributes,p.localRefs,p.startSourceSpan));break;case f.Element:w.replace(p,t.job.mode===ft.DomOnly?TI(p.handle.slot,p.tag,p.attributes,p.localRefs,p.wholeSourceSpan):IA(p.handle.slot,p.tag,p.attributes,p.localRefs,p.wholeSourceSpan));break;case f.ElementEnd:w.replace(p,t.job.mode===ft.DomOnly?xI(p.sourceSpan):DA(p.sourceSpan));break;case f.ContainerStart:w.replace(p,t.job.mode===ft.DomOnly?CI(p.handle.slot,p.attributes,p.localRefs,p.startSourceSpan):bA(p.handle.slot,p.attributes,p.localRefs,p.startSourceSpan));break;case f.Container:w.replace(p,t.job.mode===ft.DomOnly?AI(p.handle.slot,p.attributes,p.localRefs,p.wholeSourceSpan):_A(p.handle.slot,p.attributes,p.localRefs,p.wholeSourceSpan));break;case f.ContainerEnd:w.replace(p,t.job.mode===ft.DomOnly?II():kA());break;case f.I18nStart:w.replace(p,ZA(p.handle.slot,p.messageIndex,p.subTemplateIndex,p.sourceSpan));break;case f.I18nEnd:w.replace(p,cI(p.sourceSpan));break;case f.I18n:w.replace(p,lI(p.handle.slot,p.messageIndex,p.subTemplateIndex,p.sourceSpan));break;case f.I18nAttributes:if(p.i18nAttributesConfig===null)throw new Error("AssertionError: i18nAttributesConfig was not set");w.replace(p,uI(p.handle.slot,p.i18nAttributesConfig));break;case f.Template:if(!(t instanceof en))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(p.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let g=t.job.views.get(p.xref);w.replace(p,p.templateKind===St.Block||t.job.mode===ft.DomOnly?DI(p.handle.slot,J(g.fnName),g.decls,g.vars,p.tag,p.attributes,p.localRefs,p.startSourceSpan):RA(p.handle.slot,J(g.fnName),g.decls,g.vars,p.tag,p.attributes,p.localRefs,p.startSourceSpan));break;case f.DisableBindings:w.replace(p,PA());break;case f.EnableBindings:w.replace(p,LA());break;case f.Pipe:w.replace(p,FA(p.handle.slot,p.name));break;case f.DeclareLet:w.replace(p,iI(p.handle.slot,p.sourceSpan));break;case f.AnimationString:w.replace(p,OI(p.animationKind,p.expression,p.sanitizer,p.sourceSpan));break;case f.Animation:let v=ma(t,p.handlerFnName,p.handlerOps,!1);w.replace(p,MI(p.animationKind,v,p.sanitizer,p.sourceSpan));break;case f.AnimationListener:let E=ma(t,p.handlerFnName,p.handlerOps,p.consumesDollarEvent);w.replace(p,FI(p.animationKind,E,null,p.sourceSpan));break;case f.Listener:let I=ma(t,p.handlerFnName,p.handlerOps,p.consumesDollarEvent),D=p.eventTarget?zI.get(p.eventTarget):null;if(D===void 0)throw new Error(`Unexpected global target '${p.eventTarget}' defined for '${p.name}' event. Supported list of global targets: window,document,body.`);w.replace(p,t.job.mode===ft.DomOnly&&!p.hostListener&&!p.isLegacyAnimationListener?NI(p.name,I,D,p.sourceSpan):MA(p.name,I,D,p.hostListener&&p.isLegacyAnimationListener,p.sourceSpan));break;case f.TwoWayListener:w.replace(p,OA(p.name,ma(t,p.handlerFnName,p.handlerOps,!0),p.sourceSpan));break;case f.Variable:if(p.variable.name===null)throw new Error(`AssertionError: unnamed variable ${p.xref}`);w.replace(p,Wt(new Ve(p.variable.name,p.initializer,void 0,Ue.Final)));break;case f.Namespace:switch(p.active){case nt.HTML:w.replace(p,BA());break;case nt.SVG:w.replace(p,$A());break;case nt.Math:w.replace(p,UA());break}break;case f.Defer:let b=!!p.loadingMinimumTime||!!p.loadingAfterTime||!!p.placeholderMinimumTime;w.replace(p,KA(p.handle.slot,p.mainSlot.slot,p.resolverFn,(s=(n=p.loadingSlot)==null?void 0:n.slot)!=null?s:null,(i=(r=p.placeholderSlot)==null?void 0:r.slot)!=null?i:null,(l=(o=p.errorSlot)==null?void 0:o.slot)!=null?l:null,p.loadingConfig,p.placeholderConfig,b,p.sourceSpan,p.flags));break;case f.DeferOn:let P=[];switch(p.trigger.kind){case ce.Never:case ce.Idle:case ce.Immediate:break;case ce.Timer:P=[S(p.trigger.delay)];break;case ce.Viewport:p.modifier==="hydrate"?P=p.trigger.options?[p.trigger.options]:[]:(P=[S((u=(c=p.trigger.targetSlot)==null?void 0:c.slot)!=null?u:null)],p.trigger.targetSlotViewSteps!==0?P.push(S(p.trigger.targetSlotViewSteps)):p.trigger.options&&P.push(S(null)),p.trigger.options&&P.push(p.trigger.options));break;case ce.Interaction:case ce.Hover:p.modifier==="hydrate"?P=[]:(P=[S((d=(h=p.trigger.targetSlot)==null?void 0:h.slot)!=null?d:null)],p.trigger.targetSlotViewSteps!==0&&P.push(S(p.trigger.targetSlotViewSteps)));break;default:throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${p.trigger.kind}`)}w.replace(p,YA(p.trigger.kind,P,p.modifier,p.sourceSpan));break;case f.ProjectionDef:w.replace(p,QA(p.def));break;case f.Projection:if(p.handle.slot===null)throw new Error("No slot was assigned for project instruction");let L=null,ne=null,re=null;if(p.fallbackView!==null){if(!(t instanceof en))throw new Error("AssertionError: must be compiling a component");let Pe=t.job.views.get(p.fallbackView);if(Pe===void 0)throw new Error("AssertionError: projection had fallback view xref, but fallback view was not found");if(Pe.fnName===null||Pe.decls===null||Pe.vars===null)throw new Error("AssertionError: expected projection fallback view to have been named and counted");L=Pe.fnName,ne=Pe.decls,re=Pe.vars}w.replace(p,JA(p.handle.slot,p.projectionSlotIndex,p.attributes,L,ne,re,p.sourceSpan));break;case f.ConditionalCreate:if(!(t instanceof en))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(p.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let Ge=t.job.views.get(p.xref);w.replace(p,eI(p.handle.slot,J(Ge.fnName),Ge.decls,Ge.vars,p.tag,p.attributes,p.localRefs,p.startSourceSpan));break;case f.ConditionalBranchCreate:if(!(t instanceof en))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(p.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let Ne=t.job.views.get(p.xref);w.replace(p,tI(p.handle.slot,J(Ne.fnName),Ne.decls,Ne.vars,p.tag,p.attributes,p.localRefs,p.startSourceSpan));break;case f.RepeaterCreate:if(p.handle.slot===null)throw new Error("No slot was assigned for repeater instruction");if(!(t instanceof en))throw new Error("AssertionError: must be compiling a component");let Nt=t.job.views.get(p.xref);if(Nt.fnName===null)throw new Error("AssertionError: expected repeater primary view to have been named");let Qs=null,is=null,os=null;if(p.emptyView!==null){let Pe=t.job.views.get(p.emptyView);if(Pe===void 0)throw new Error("AssertionError: repeater had empty view xref, but empty view was not found");if(Pe.fnName===null||Pe.decls===null||Pe.vars===null)throw new Error("AssertionError: expected repeater empty view to have been named and counted");Qs=Pe.fnName,is=Pe.decls,os=Pe.vars}w.replace(p,nI(p.handle.slot,Nt.fnName,p.decls,p.vars,p.tag,p.attributes,ZI(t,p),p.usesComponentInstance,Qs,is,os,p.emptyTag,p.emptyAttributes,p.wholeSourceSpan));break;case f.SourceLocation:let la=ae(p.locations.map(({targetSlot:Pe,offset:ca,line:ki,column:DS})=>{if(Pe.slot===null)throw new Error("No slot was assigned for source location");return ae([S(Pe.slot),S(ca),S(ki),S(DS)])}));w.replace(p,UI(p.templatePath,la));break;case f.ControlCreate:w.replace(p,dI(p.sourceSpan));break;case f.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${f[p.kind]}`)}}function Cl(t,e){for(let n of e)switch(Ie(n,s=>Rm(t,s),Q.None),n.kind){case f.Advance:w.replace(n,VA(n.delta,n.sourceSpan));break;case f.Property:w.replace(n,t.job.mode===ft.DomOnly&&n.bindingKind!==M.LegacyAnimation&&n.bindingKind!==M.Animation?Af(n):QI(n));break;case f.Control:w.replace(n,JI(n));break;case f.TwoWayProperty:w.replace(n,mI(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case f.StyleProp:w.replace(n,yI(n.name,n.expression,n.unit,n.sourceSpan));break;case f.ClassProp:w.replace(n,vI(n.name,n.expression,n.sourceSpan));break;case f.StyleMap:w.replace(n,SI(n.expression,n.sourceSpan));break;case f.ClassMap:w.replace(n,EI(n.expression,n.sourceSpan));break;case f.I18nExpression:w.replace(n,RI(n.expression,n.sourceSpan));break;case f.I18nApply:w.replace(n,PI(n.handle.slot,n.sourceSpan));break;case f.InterpolateText:w.replace(n,kI(n.interpolation.strings,n.interpolation.expressions,n.sourceSpan));break;case f.Attribute:w.replace(n,gI(n.name,n.expression,n.sanitizer,n.namespace,n.sourceSpan));break;case f.DomProperty:if(n.expression instanceof Ae)throw new Error("not yet handled");n.bindingKind===M.LegacyAnimation||n.bindingKind===M.Animation?w.replace(n,BI(n.name,n.expression,n.sourceSpan)):w.replace(n,Af(n));break;case f.Variable:if(n.variable.name===null)throw new Error(`AssertionError: unnamed variable ${n.xref}`);w.replace(n,Wt(new Ve(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.");w.replace(n,GI(n.processed,n.contextValue,n.sourceSpan));break;case f.Repeater:w.replace(n,sI(n.collection,n.sourceSpan));break;case f.DeferWhen:w.replace(n,rI(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 Af(t){var e;return LI((e=KI.get(t.name))!=null?e:t.name,t.expression,t.sanitizer,t.sourceSpan)}function QI(t){return gm(t.name)?pI(t.name,t.expression,t.sourceSpan):hI(t.name,t.expression,t.sanitizer,t.sourceSpan)}function JI(t){return fI(t.sourceSpan)}function Rm(t,e){if(!Un(e))return e;switch(e.kind){case F.NextContext:return HA(e.steps);case F.Reference:return GA(e.targetSlot.slot+1+e.offset);case F.LexicalRead:throw new Error(`AssertionError: unresolved LexicalRead of ${e.name}`);case F.TwoWayBindingSet:throw new Error("AssertionError: unresolved TwoWayBindingSet");case F.RestoreView:if(typeof e.view=="number")throw new Error("AssertionError: unresolved RestoreView");return WA(e.view);case F.ResetView:return jA(e.expr);case F.GetCurrentView:return qA();case F.ReadVariable:if(e.name===null)throw new Error(`Read of unnamed variable ${e.xref}`);return J(e.name);case F.ReadTemporaryExpr:if(e.name===null)throw new Error(`Read of unnamed temporary ${e.xref}`);return J(e.name);case F.AssignTemporaryExpr:if(e.name===null)throw new Error(`Assign of unnamed temporary ${e.xref}`);return J(e.name).set(e.expr);case F.PureFunctionExpr:if(e.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");return $I(e.varOffset,e.fn,e.args);case F.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case F.PipeBinding:return bI(e.targetSlot.slot,e.varOffset,e.args);case F.PipeBindingVariadic:return _I(e.targetSlot.slot,e.varOffset,e.args);case F.SlotLiteralExpr:return S(e.slot.slot);case F.ContextLetReference:return aI(e.targetSlot.slot);case F.StoreLet:return oI(e.value,e.sourceSpan);case F.TrackContext:return J("this");case F.ArrowFunction:if(e.varOffset===null)throw new Error("AssertionError: variable offset was not assigned to arrow function");return VI(e.varOffset,t.job.pool.getSharedFunctionReference(eN(t,e),"arrowFn"),J(qt));default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${F[e.kind]}`)}}function ma(t,e,n,s){Cl(t,n);let r=[];for(let o of n){if(o.kind!==f.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${f[o.kind]}`);r.push(o.statement)}let i=[];return s&&i.push(new Oe("$event",Et)),Jn(i,r,void 0,void 0,e)}function ZI(t,e){if(e.trackByFn!==null)return e.trackByFn;let n=[new Oe("$index",Ts),new Oe("$item",Et)],s;if(e.trackByOps===null)s=e.usesComponentInstance?Jn(n,[new be(e.track)]):Rt(n,e.track);else{Cl(t,e.trackByOps);let r=[];for(let i of e.trackByOps){if(i.kind!==f.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${f[i.kind]}`);r.push(i.statement)}s=e.usesComponentInstance||r.length!==1||!(r[0]instanceof be)?Jn(n,r):Rt(n,r[0].value)}return e.trackByFn=t.job.pool.getSharedFunctionReference(s,"_forTrack"),e.trackByFn}function eN(t,e){Cl(t,e.ops);let n=[];for(let r of e.ops){if(r.kind!==f.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${f[r.kind]}`);n.push(r.statement)}let s=n.length===1&&n[0]instanceof be?n[0].value:n;return Rt([new Oe(e.contextName,Et),new Oe(e.currentViewName,Et)],Rt(e.parameters,s))}function tN(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&&w.remove(n);break}}function nN(t){for(let e of t.units)for(let n of e.create)switch(n.kind){case f.I18nContext:w.remove(n);break;case f.I18nStart:n.context=null;break}}function sN(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 ko))continue;let s=n.variable.identifier,r=n;for(;r&&r.kind!==f.ListEnd;)Ie(r,i=>i instanceof Ke&&i.name===s?S(void 0):i,Q.None),r=r.prev}}function rN(t){for(let e of t.units){let n=new Set;for(let s of e.update)s.kind===f.I18nExpression&&n.add(s.i18nOwner);for(let s of e.create)switch(s.kind){case f.I18nAttributes:if(n.has(s.xref))continue;w.remove(s)}}}function iN(t){for(let e of t.units){for(let n of e.functions)Qi(e,n.ops);Qi(e,e.create),Qi(e,e.update)}}function Qi(t,e){let n=new Map;n.set(t.xref,J(qt));for(let s of e)switch(s.kind){case f.Variable:s.variable.kind===We.Context&&n.set(s.variable.view,new Yn(s.xref));break;case f.Animation:case f.AnimationListener:case f.Listener:case f.TwoWayListener:Qi(t,s.handlerOps);break;case f.RepeaterCreate:s.trackByOps!==null&&Qi(t,s.trackByOps);break}t===t.job.root&&n.set(t.xref,J(qt));for(let s of e)Ie(s,r=>{if(r instanceof $s){if(!n.has(r.view))throw new Error(`No context found for reference to view ${r.view} from view ${t.xref}`);return n.get(r.view)}else return r},Q.None)}function oN(t){var e;for(let n of t.units)for(let s of n.create)if(s.kind===f.Defer){if(s.resolverFn!==null)continue;if(s.ownResolverFn!==null){if(s.handle.slot===null)throw new Error("AssertionError: slot must be assigned before extracting defer deps functions");let r=(e=n.fnName)==null?void 0:e.replace("_Template","");s.resolverFn=t.pool.getSharedFunctionReference(s.ownResolverFn,`${r}_Defer_${s.handle.slot}_DepsFn`,!1)}}}function aN(t){for(let e of t.units)If(e.create),If(e.update)}function If(t){for(let e of t)(e.kind===f.Listener||e.kind===f.TwoWayListener||e.kind===f.AnimationListener)&&Ie(e,n=>n instanceof Ke&&n.name==="$event"?((e.kind===f.Listener||e.kind===f.AnimationListener)&&(e.consumesDollarEvent=!0),new nn(n.name)):n,Q.InChildOperation)}function lN(t){let e=new Map,n=new Map;for(let s of t.units)for(let r of s.create)switch(r.kind){case f.I18nContext:e.set(r.xref,r);break;case f.ElementStart:n.set(r.xref,r);break}Cn(t,t.root,e,n)}function Cn(t,e,n,s,r){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");Nf(l,i.i18nContext,i.i18nBlock,r),r&&l.i18nPlaceholder.closeName&&o.set(l.xref,r),r=void 0}break;case f.ElementEnd:let c=s.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");Df(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");Nf(l,i.i18nContext,i.i18nBlock,r),Df(l,i.i18nContext,i.i18nBlock,r),r=void 0}if(l.fallbackView!==null){let p=t.views.get(l.fallbackView);if(l.fallbackViewI18nPlaceholder===void 0)Cn(t,p,n,s);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");ga(t,p,l.handle.slot,l.fallbackViewI18nPlaceholder,i.i18nContext,i.i18nBlock,r),Cn(t,p,n,s),ya(t,p,l.handle.slot,l.fallbackViewI18nPlaceholder,i.i18nContext,i.i18nBlock,r),r=void 0}}break;case f.ConditionalCreate:case f.ConditionalBranchCreate:case f.Template:let u=t.views.get(l.xref);if(l.i18nPlaceholder===void 0)Cn(t,u,n,s);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");l.templateKind===St.Structural?Cn(t,u,n,s,l):(ga(t,u,l.handle.slot,l.i18nPlaceholder,i.i18nContext,i.i18nBlock,r),Cn(t,u,n,s),ya(t,u,l.handle.slot,l.i18nPlaceholder,i.i18nContext,i.i18nBlock,r),r=void 0)}break;case f.RepeaterCreate:if(r!==void 0)throw Error("AssertionError: Unexpected structural directive associated with @for block");let h=l.handle.slot+1,d=t.views.get(l.xref);if(l.i18nPlaceholder===void 0)Cn(t,d,n,s);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");ga(t,d,h,l.i18nPlaceholder,i.i18nContext,i.i18nBlock,r),Cn(t,d,n,s),ya(t,d,h,l.i18nPlaceholder,i.i18nContext,i.i18nBlock,r),r=void 0}if(l.emptyView!==null){let p=l.handle.slot+2,g=t.views.get(l.emptyView);if(l.emptyI18nPlaceholder===void 0)Cn(t,g,n,s);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");ga(t,g,p,l.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,r),Cn(t,g,n,s),ya(t,g,p,l.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,r),r=void 0}}break}}function Nf(t,e,n,s){let{startName:r,closeName:i}=t.i18nPlaceholder,o=he.ElementTag|he.OpenTag,l=t.handle.slot;s!==void 0&&(o|=he.TemplateTag,l={element:l,template:s.handle.slot}),i||(o|=he.CloseTag),vi(e.params,r,l,n.subTemplateIndex,o)}function Df(t,e,n,s){let{closeName:r}=t.i18nPlaceholder;if(r){let i=he.ElementTag|he.CloseTag,o=t.handle.slot;s!==void 0&&(i|=he.TemplateTag,o={element:o,template:s.handle.slot}),vi(e.params,r,o,n.subTemplateIndex,i)}}function ga(t,e,n,s,r,i,o){let{startName:l,closeName:c}=s,u=he.TemplateTag|he.OpenTag;c||(u|=he.CloseTag),o!==void 0&&vi(r.params,l,o.handle.slot,i.subTemplateIndex,u),vi(r.params,l,n,Pm(t,i,e),u)}function ya(t,e,n,s,r,i,o){let{closeName:l}=s,c=he.TemplateTag|he.CloseTag;l&&(vi(r.params,l,n,Pm(t,i,e),c),o!==void 0&&vi(r.params,l,o.handle.slot,i.subTemplateIndex,c))}function Pm(t,e,n){for(let s of n.create)if(s.kind===f.I18nStart)return s.subTemplateIndex;return e.subTemplateIndex}function vi(t,e,n,s,r){var o;let i=(o=t.get(e))!=null?o:[];i.push({value:n,subTemplateIndex:s,flags:r}),t.set(e,i)}function cN(t){var o;let e=new Map,n=new Map,s=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:s.set(c.xref,c);break}let r=new Map,i=l=>l.usage===xr.I18nText?l.i18nOwner:l.context;for(let l of t.units)for(let c of l.update)if(c.kind===f.I18nExpression){let u=r.get(i(c))||0,h=(o=e.get(c.i18nOwner))!=null?o:null,d={value:u,subTemplateIndex:h,flags:he.ExpressionIndex};uN(c,d,n,s),r.set(i(c),u+1)}}function uN(t,e,n,s){if(t.i18nPlaceholder!==null){let r=n.get(t.context),i=t.resolutionTime===fi.Creation?r.params:r.postprocessingParams,o=i.get(t.i18nPlaceholder)||[];o.push(e),i.set(t.i18nPlaceholder,o)}if(t.icuPlaceholder!==null){let r=s.get(t.icuPlaceholder);r==null||r.expressionPlaceholders.push(e)}}function pN(t){for(let e of t.units){for(let n of e.functions)Ji(e,n.ops,null);Ji(e,e.create,null),Ji(e,e.update,null)}}function Ji(t,e,n){let s=new Map,r=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(r.has(i.variable.identifier))continue;r.set(i.variable.identifier,i.xref)}else if(s.has(i.variable.identifier))continue;s.set(i.variable.identifier,i.xref);break;case We.Alias:if(s.has(i.variable.identifier))continue;s.set(i.variable.identifier,i.xref);break;case We.SavedView:n={view:i.variable.view,variable:i.xref};break}break;case f.Animation:case f.AnimationListener:case f.Listener:case f.TwoWayListener:Ji(t,i.handlerOps,n);break;case f.RepeaterCreate:i.trackByOps!==null&&Ji(t,i.trackByOps,n);break}for(let i of e)i.kind===f.Listener||i.kind===f.TwoWayListener||i.kind===f.Animation||i.kind===f.AnimationListener||Ie(i,o=>{if(o instanceof Ke)return r.has(o.name)?new Yn(r.get(o.name)):s.has(o.name)?new Yn(s.get(o.name)):new wt(new $s(t.job.root.xref),o.name);if(o instanceof Po&&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 Yn(n.variable),o}else return o},Q.None);for(let i of e)Me(i,o=>{if(o instanceof Ke)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${o.name}`)})}var hN=new Map([[ue.HTML,m.sanitizeHtml],[ue.RESOURCE_URL,m.sanitizeResourceUrl],[ue.SCRIPT,m.sanitizeScript],[ue.STYLE,m.sanitizeStyle],[ue.URL,m.sanitizeUrl],[ue.ATTRIBUTE_NO_BINDING,m.validateAttribute]]),fN=new Map([[ue.HTML,m.trustConstantHtml],[ue.RESOURCE_URL,m.trustConstantResourceUrl]]);function dN(t){var e,n;for(let s of t.units){if(t.kind!==_.Host){for(let r of s.create)if(r.kind===f.ExtractedAttribute){let i=(e=fN.get(bf(r.securityContext)))!=null?e:null;r.trustedValueFn=i!==null?O(i):null}}for(let r of s.update)switch(r.kind){case f.Property:case f.Attribute:case f.DomProperty:let i=null;Array.isArray(r.securityContext)&&r.securityContext.length===2&&r.securityContext.includes(ue.URL)&&r.securityContext.includes(ue.RESOURCE_URL)?i=m.sanitizeUrlOrResourceUrl:i=(n=hN.get(bf(r.securityContext)))!=null?n:null,r.sanitizer=i!==null?O(i):null;break}}}function bf(t){if(Array.isArray(t)){if(t.length>1)throw Error("AssertionError: Ambiguous security context");return t[0]||ue.NONE}return t}function mN(t){for(let e of t.units){for(let n of e.functions)_f(t,e,n.ops)&&kf(e,n.ops,J(n.currentViewName));e.create.prepend([ds(e.job.allocateXrefId(),{kind:We.SavedView,name:null,view:e.xref},new iu,Ut.None)]);for(let n of e.create)(n.kind===f.Listener||n.kind===f.TwoWayListener||n.kind===f.Animation||n.kind===f.AnimationListener)&&_f(t,e,n.handlerOps)&&kf(e,n.handlerOps,e.xref)}}function _f(t,e,n){let s=e!==t.root;if(!s)for(let r of n)Me(r,i=>{(i instanceof qa||i instanceof Ro)&&(s=!0)});return s}function kf(t,e,n){e.prepend([ds(t.job.allocateXrefId(),{kind:We.Context,name:null,view:t.xref},new Po(n),Ut.None)]);for(let s of e)s.kind===f.Statement&&s.statement instanceof be&&(s.statement.value=new ja(s.statement.value))}function gN(t){let e=new Map;for(let n of t.units){let s=0;for(let r of n.create)xi(r)&&(r.handle.slot=s,e.set(r.xref,r.handle.slot),s+=r.numSlotsUsed);n.decls=s}for(let n of t.units)for(let s of n.ops())if(s.kind===f.Template||s.kind===f.ConditionalCreate||s.kind===f.ConditionalBranchCreate||s.kind===f.RepeaterCreate){let r=t.views.get(s.xref);s.decls=r.decls}}function yN(t){let e=new Set,n=new Map;for(let s of t.units)for(let r of s.ops())r.kind===f.DeclareLet&&n.set(r.xref,r),Me(r,i=>{i instanceof Ro&&e.add(i.target)});for(let s of t.units)for(let r of s.update)Ie(r,i=>i instanceof ko&&!e.has(i.target)?(vN(i)||w.remove(n.get(i.target)),i.value):i,Q.None)}function vN(t){let e=!1;return k(t,n=>((n instanceof Ir||n instanceof Lo)&&(e=!0),n),Q.None),e}function SN(t){let e=new Set;for(let n of t.units)for(let s of n.ops())Me(s,r=>{if(r instanceof se)switch(r.operator){case T.Exponentiation:EN(r,e);break;case T.NullishCoalesce:TN(r,e);break;case T.And:case T.Or:wN(r,e)}});for(let n of t.units)for(let s of n.ops())Ie(s,r=>r instanceof sn?e.has(r)?r:r.expr:r,Q.None)}function EN(t,e){t.lhs instanceof sn&&t.lhs.expr instanceof Qn&&e.add(t.lhs)}function TN(t,e){t.lhs instanceof sn&&(Rf(t.lhs.expr)||t.lhs.expr instanceof gn)&&e.add(t.lhs),t.rhs instanceof sn&&(Rf(t.rhs.expr)||t.rhs.expr instanceof gn)&&e.add(t.rhs)}function wN(t,e){t.lhs instanceof sn&&t.lhs.expr instanceof se&&t.lhs.expr.operator===T.NullishCoalesce&&e.add(t.lhs)}function Rf(t){return t instanceof se&&(t.operator===T.And||t.operator===T.Or)}function xN(t){for(let e of t.units)for(let n of e.update)if(n.kind===f.Binding)switch(n.bindingKind){case M.ClassName:if(n.expression instanceof Ae)throw new Error("Unexpected interpolation in ClassName binding");w.replace(n,zT(n.target,n.name,n.expression,n.sourceSpan));break;case M.StyleProperty:w.replace(n,jT(n.target,n.name,n.expression,n.unit,n.sourceSpan));break;case M.Property:case M.Template:n.name==="style"?w.replace(n,KT(n.target,n.expression,n.sourceSpan)):n.name==="class"&&w.replace(n,XT(n.target,n.expression,n.sourceSpan));break}}function CN(t){for(let e of t.units){e.create.prepend(Zi(e.create)),e.update.prepend(Zi(e.update));for(let n of e.functions)n.ops.prepend(Zi(n.ops))}}function Zi(t){let e=0,n=[];for(let s of t){let r=new Map;Me(s,(u,h)=>{h&Q.InChildOperation||u instanceof Vs&&r.set(u.xref,u)});let i=0,o=new Set,l=new Set,c=new Map;Me(s,(u,h)=>{h&Q.InChildOperation||(u instanceof Vn?(o.has(u.xref)||(o.add(u.xref),c.set(u.xref,`tmp_${e}_${i++}`)),Pf(c,u)):u instanceof Vs&&(r.get(u.xref)===u&&(l.add(u.xref),i--),Pf(c,u)))}),n.push(...Array.from(new Set(c.values())).map(u=>Wt(new Ve(u)))),e++,s.kind===f.Listener||s.kind===f.Animation||s.kind===f.AnimationListener||s.kind===f.TwoWayListener?s.handlerOps.prepend(Zi(s.handlerOps)):s.kind===f.RepeaterCreate&&s.trackByOps!==null&&s.trackByOps.prepend(Zi(s.trackByOps))}return n}function Pf(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 AN(t){for(let e of t.units)for(let n of e.create)if(n.kind===f.RepeaterCreate)if(n.track instanceof nn&&n.track.name==="$index")n.trackByFn=O(m.repeaterTrackByIndex);else if(n.track instanceof nn&&n.track.name==="$item")n.trackByFn=O(m.repeaterTrackByIdentity);else if(IN(t.root.xref,n.track))n.usesComponentInstance=!0,n.track.receiver.receiver.view===e.xref?n.trackByFn=n.track.receiver:(n.trackByFn=O(m.componentInstance).callFn([]).prop(n.track.receiver.name),n.track=n.trackByFn);else{n.track=k(n.track,r=>{if(r instanceof Ir||r instanceof Lo)throw new Error("Illegal State: Pipes are not allowed in this context");return r instanceof $s?(n.usesComponentInstance=!0,new ru(r.view)):r},Q.None);let s=new w;s.push(Wt(new be(n.track,n.track.sourceSpan))),n.trackByOps=s}}function IN(t,e){if(!(e instanceof ot)||e.args.length===0||e.args.length>2||!(e.receiver instanceof wt&&e.receiver.receiver instanceof $s)||e.receiver.receiver.view!==t)return!1;let[n,s]=e.args;return!(n instanceof nn)||n.name!=="$index"?!1:e.args.length===1?!0:!(!(s instanceof nn)||s.name!=="$item")}function NN(t){for(let e of t.units)for(let n of e.create)n.kind===f.RepeaterCreate&&(n.track=k(n.track,s=>{if(s instanceof Ke){if(n.varNames.$index.has(s.name))return J("$index");if(s.name===n.varNames.$implicit)return J("$item")}return s},Q.None))}function DN(t){for(let e of t.units)for(let n of e.create)n.kind===f.TwoWayListener&&Ie(n,s=>{if(!(s instanceof za))return s;let{target:r,value:i}=s;if(r instanceof wt||r instanceof Pn)return xf(r,i).or(r.set(i));if(r instanceof Yn)return xf(r,i);throw new Error("Unsupported expression in two-way action binding.")},Q.InChildOperation)}function bN(t){for(let e of t.units){let n=0;for(let i of e.ops())nc(i)&&(n+=_N(i));let s=i=>{Un(i)&&(i instanceof Ar||(Bh(i)&&(i.varOffset=n),nc(i)&&(n+=Lf(i))))},r=i=>{!Un(i)||!(i instanceof Ar)||(Bh(i)&&(i.varOffset=n),nc(i)&&(n+=Lf(i)))};for(let i of e.create)Me(i,s);for(let i of e.update)Me(i,s);for(let i of e.create)Me(i,r);for(let i of e.update)Me(i,r);e.vars=n}if(t instanceof Fo)for(let e of t.units)for(let n of e.create){if(n.kind!==f.Template&&n.kind!==f.RepeaterCreate&&n.kind!==f.ConditionalCreate&&n.kind!==f.ConditionalBranchCreate)continue;let s=t.views.get(n.xref);n.vars=s.vars}}function _N(t){let e;switch(t.kind){case f.Attribute:return e=1,t.expression instanceof Ae&&!kN(t.expression)&&(e+=t.expression.expressions.length),e;case f.Property:case f.DomProperty:return e=1,t.expression instanceof Ae&&(e+=t.expression.expressions.length),e;case f.Control:return 2;case f.TwoWayProperty:return 1;case f.StyleProp:case f.ClassProp:case f.StyleMap:case f.ClassMap:return e=2,t.expression instanceof Ae&&(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 Lf(t){switch(t.kind){case F.PureFunctionExpr:return 1+t.args.length;case F.PipeBinding:return 1+t.args.length;case F.PipeBindingVariadic:return 1+t.numArgs;case F.StoreLet:case F.ArrowFunction:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${t.constructor.name}`)}}function kN(t){return!(t.expressions.length!==1||t.strings.length!==2||t.strings[0]!==""||t.strings[1]!=="")}function RN(t){for(let e of t.units){for(let n of e.functions)Ui(n.ops);Ui(e.create),Ui(e.update);for(let n of e.create)n.kind===f.Listener||n.kind===f.Animation||n.kind===f.AnimationListener||n.kind===f.TwoWayListener?Ui(n.handlerOps):n.kind===f.RepeaterCreate&&n.trackByOps!==null&&Ui(n.trackByOps);for(let n of e.functions)Vi(n.ops,null),Mf(n.ops);for(let n of e.create)n.kind===f.Listener||n.kind===f.Animation||n.kind===f.AnimationListener||n.kind===f.TwoWayListener?(Vi(n.handlerOps,va),Mf(n.handlerOps)):n.kind===f.RepeaterCreate&&n.trackByOps!==null&&Vi(n.trackByOps,va);Vi(e.create,va),Vi(e.update,va)}}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 va(t){return!(t&Q.InArrowFunctionOperation)}function Ui(t){let e=new Map;for(let n of t)n.kind===f.Variable&&n.flags&Ut.AlwaysInline&&(Me(n,s=>{if(Un(s)&&lp(s)!==$e.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(n.xref,n)),Ie(n,s=>s instanceof Yn&&e.has(s.xref)?e.get(s.xref).initializer.clone():s,Q.None);for(let n of e.values())w.remove(n)}function Vi(t,e){let n=new Map,s=new Map,r=new Set,i=new Map;for(let u of t){if(u.kind===f.Variable){if(n.has(u.xref)||s.has(u.xref))throw new Error(`Should not see two declarations of the same variable: ${u.xref}`);n.set(u.xref,u),s.set(u.xref,0)}i.set(u,PN(u,e)),LN(u,s,r,e)}let o=!1;for(let u of t.reversed()){let h=i.get(u);if(u.kind===f.Variable&&s.get(u.xref)===0){if(o&&h.fences&$e.ViewContextWrite||h.fences&$e.SideEffectful){let d=Wt(u.initializer.toStmt());i.set(d,h),w.replace(u,d)}else MN(u,s),w.remove(u);i.delete(u),n.delete(u.xref),s.delete(u.xref);continue}h.fences&$e.ViewContextRead&&(o=!0)}let l=[];for(let[u,h]of s){let p=!!(n.get(u).flags&Ut.AlwaysInline);h!==1||p||r.has(u)||l.push(u)}let c;for(;c=l.pop();){let u=n.get(c),h=i.get(u);if(!!(u.flags&Ut.AlwaysInline))throw new Error("AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.");for(let p=u.next;p.kind!==f.ListEnd;p=p.next){let g=i.get(p);if(g.variablesUsed.has(c)){if(!FN(u,p))break;if(ON(c,u.initializer,p,h.fences)){g.variablesUsed.delete(c);for(let v of h.variablesUsed)g.variablesUsed.add(v);g.fences|=h.fences,n.delete(c),s.delete(c),i.delete(u),w.remove(u)}break}if(!Lm(g.fences,h.fences))break}}}function lp(t){switch(t.kind){case F.NextContext:return $e.ViewContextRead|$e.ViewContextWrite;case F.RestoreView:return $e.ViewContextRead|$e.ViewContextWrite|$e.SideEffectful;case F.StoreLet:return $e.SideEffectful;case F.Reference:case F.ContextLetReference:return $e.ViewContextRead;default:return $e.None}}function PN(t,e){let n=$e.None,s=new Set;return Me(t,(r,i)=>{!Un(r)||e!==null&&!e(i)||(r.kind===F.ReadVariable?s.add(r.xref):n|=lp(r))}),{fences:n,variablesUsed:s}}function LN(t,e,n,s){Me(t,(r,i)=>{if(!Un(r)||s!==null&&!s(i)||r.kind!==F.ReadVariable)return;let o=e.get(r.xref);o!==void 0&&(e.set(r.xref,o+1),i&Q.InChildOperation&&n.add(r.xref))})}function MN(t,e){Me(t,n=>{if(!Un(n)||n.kind!==F.ReadVariable)return;let s=e.get(n.xref);if(s!==void 0){if(s===0)throw new Error(`Inaccurate variable count: ${n.xref} - found another read but count is already 0`);e.set(n.xref,s-1)}})}function Lm(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 ON(t,e,n,s){let r=!1,i=!0;return Ie(n,(o,l)=>{if(!Un(o)||r||!i)return o;if(l&Q.InChildOperation&&s&$e.ViewContextRead)return o;switch(o.kind){case F.ReadVariable:if(o.xref===t)return r=!0,e;break;default:let c=lp(o);i=i&&Lm(c,s);break}return o},Q.None),r}function FN(t,e){switch(t.variable.kind){case We.Identifier:return t.initializer instanceof nn&&t.initializer.name===qt;case We.Context:return e.kind===f.Variable;default:return!0}}function Mf(t){let e=t.head.next,n=t.tail.prev;e!==null&&n!==null&&e.next===n&&e.kind===f.Statement&&e.statement instanceof Je&&e.statement.expr instanceof Po&&n.kind===f.Statement&&n.statement instanceof be&&n.statement.value instanceof ja&&(w.remove(e),n.statement.value=n.statement.value.expr)}function BN(t){for(let e of t.units){let n=null,s=null;for(let r of e.create)switch(r.kind){case f.I18nStart:n=r;break;case f.I18nEnd:n=null;break;case f.IcuStart:n===null&&(s=t.allocateXrefId(),w.insertBefore(wl(s,r.message,void 0,null),r));break;case f.IcuEnd:s!==null&&(w.insertAfter(xl(s,null),r),s=null);break}}}function $N(t){for(let e of t.units){for(let n of e.create)n.kind!==f.Animation&&n.kind!==f.AnimationListener&&n.kind!==f.Listener&&n.kind!==f.TwoWayListener&&Of(e,n);for(let n of e.update)Of(e,n)}}function Of(t,e){Ie(e,(n,s)=>{if(!(n instanceof Gn)||s&Q.InChildOperation)return n;if(Array.isArray(n.body))throw new Error("AssertionError: unexpected multi-line arrow function");let r=new ou(n.params,n.body);return t.functions.add(r),r},Q.None)}var UN=new Set(["formField"]);function VN(t){for(let e of t.units)GN(e)}function GN(t){for(let e of t.update)e.kind===f.Property&&UN.has(e.name)&&jN(t,e)}var HN=new Set([f.Container,f.ContainerStart,f.ContainerEnd,f.Element,f.ElementStart,f.ElementEnd,f.Template]);function qN(t){return HN.has(t.kind)}function WN(t,e){let n=null;for(let s of t.create)!qN(s)||s.xref!==e||(n=s);return n}function jN(t,e){let n=WN(t,e.target);if(n===null)throw new Error(`No create instruction found for control target ${e.target}`);let s=Tw(e.sourceSpan);w.insertAfter(s,n),w.insertAfter(tw(e.target,e.sourceSpan),e)}var zN=[{kind:_.Tmpl,fn:hA},{kind:_.Both,fn:AA},{kind:_.Host,fn:Ax},{kind:_.Tmpl,fn:XC},{kind:_.Tmpl,fn:SA},{kind:_.Tmpl,fn:BN},{kind:_.Both,fn:zw},{kind:_.Both,fn:xN},{kind:_.Both,fn:Rw},{kind:_.Tmpl,fn:VN},{kind:_.Both,fn:Hw},{kind:_.Both,fn:bw},{kind:_.Tmpl,fn:jw},{kind:_.Both,fn:QC},{kind:_.Tmpl,fn:tN},{kind:_.Both,fn:Mw},{kind:_.Both,fn:pA},{kind:_.Tmpl,fn:Ow},{kind:_.Tmpl,fn:mA},{kind:_.Tmpl,fn:Kw},{kind:_.Tmpl,fn:vA},{kind:_.Both,fn:$N},{kind:_.Both,fn:wA},{kind:_.Tmpl,fn:Tx},{kind:_.Tmpl,fn:Ex},{kind:_.Tmpl,fn:wx},{kind:_.Tmpl,fn:mN},{kind:_.Both,fn:xw},{kind:_.Both,fn:aN},{kind:_.Tmpl,fn:NN},{kind:_.Tmpl,fn:sN},{kind:_.Both,fn:pN},{kind:_.Tmpl,fn:Xw},{kind:_.Tmpl,fn:DN},{kind:_.Tmpl,fn:AN},{kind:_.Both,fn:iN},{kind:_.Both,fn:dN},{kind:_.Tmpl,fn:zC},{kind:_.Both,fn:ex},{kind:_.Both,fn:SN},{kind:_.Both,fn:CN},{kind:_.Both,fn:RN},{kind:_.Both,fn:yN},{kind:_.Tmpl,fn:jC},{kind:_.Tmpl,fn:Ww},{kind:_.Tmpl,fn:rN},{kind:_.Tmpl,fn:Nw},{kind:_.Tmpl,fn:Aw},{kind:_.Tmpl,fn:gN},{kind:_.Tmpl,fn:lN},{kind:_.Tmpl,fn:cN},{kind:_.Tmpl,fn:mx},{kind:_.Tmpl,fn:VC},{kind:_.Tmpl,fn:xx},{kind:_.Both,fn:Uw},{kind:_.Tmpl,fn:nN},{kind:_.Both,fn:bN},{kind:_.Tmpl,fn:Sx},{kind:_.Both,fn:JC},{kind:_.Tmpl,fn:oN},{kind:_.Tmpl,fn:tA},{kind:_.Tmpl,fn:sA},{kind:_.Tmpl,fn:Zw},{kind:_.Tmpl,fn:Dw},{kind:_.Tmpl,fn:iA},{kind:_.Both,fn:TA},{kind:_.Both,fn:XI},{kind:_.Both,fn:Lw}];function Mm(t,e){for(let n of zN)(n.kind===e||n.kind===_.Both)&&n.fn(t)}function KN(t,e){let n=Fm(t.root);return Om(t.root,e),n}function Om(t,e){for(let n of t.job.units){if(n.parent!==t.xref)continue;Om(n,e);let s=Fm(n);e.statements.push(s.toDeclStmt(s.name))}}function Fm(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 s=ul(1,e),r=ul(2,n);return Jn([new Oe(Ti,Ts),new Oe(qt,Et)],[...s,...r],void 0,void 0,t.fnName)}function ul(t,e){return e.length===0?[]:[zo(new se(T.BitwiseAnd,J(Ti),S(t)),e)]}function XN(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 s=ul(1,e),r=ul(2,n);return Jn([new Oe(Ti,Ts),new Oe(qt,Et)],[...s,...r],void 0,void 0,t.root.fnName)}var lr=new En,cr="ng-template",YN="animate.";function Aa(t){return t instanceof vt}function QN(t){return Aa(t)&&t.nodes.length===1&&t.nodes[0]instanceof $a}function JN(t,e,n,s,r,i,o,l,c,u){let h=new Fo(t,n,s,r,i,o,l,c,u);return ts(h.root,e),h}function ZN(t,e,n){var r,i,o;let s=new Za(t.componentName,n,ft.DomOnly);for(let l of(r=t.properties)!=null?r:[]){let c=M.Property;l.name.startsWith("attr.")&&(l.name=l.name.substring(5),c=M.Attribute),l.isLegacyAnimation&&(c=M.LegacyAnimation),l.isAnimation&&(c=M.Animation);let u=e.calcPossibleSecurityContexts(t.componentSelector,l.name,c===M.Attribute).filter(h=>h!==ue.NONE);eD(s,l,c,u)}for(let[l,c]of(i=Object.entries(t.attributes))!=null?i:[]){let u=e.calcPossibleSecurityContexts(t.componentSelector,l,!0).filter(h=>h!==ue.NONE);tD(s,l,c,u)}for(let l of(o=t.events)!=null?o:[])nD(s,l);return s}function eD(t,e,n,s){let r,i=e.expression.ast;i instanceof ns?r=new Ae(i.strings,i.expressions.map(o=>X(o,t,e.sourceSpan)),[]):r=X(i,t,e.sourceSpan),t.root.update.push(Cr(t.root.xref,n,e.name,r,null,s,!1,!1,null,null,e.sourceSpan))}function tD(t,e,n,s){let r=Cr(t.root.xref,M.Attribute,e,n,null,s,!0,!1,null,null,n.sourceSpan);t.root.update.push(r)}function nD(t,e){let n;if(e.type===De.Animation)n=pm(t.root.xref,new st,e.name,null,Go(t.root,e.handler,e.handlerSpan),e.name.endsWith("enter")?"enter":"leave",e.targetOrPhase,!0,e.sourceSpan);else{let[s,r]=e.type!==De.LegacyAnimation?[null,e.targetOrPhase]:[e.targetOrPhase,null];n=ip(t.root.xref,new st,e.name,null,Go(t.root,e.handler,e.handlerSpan),s,r,!0,e.sourceSpan)}t.root.create.push(n)}function ts(t,e){for(let n of e)if(n instanceof ke)sD(t,n);else if(n instanceof de)rD(t,n);else if(n instanceof Er)iD(t,n);else if(n instanceof Wn)Bm(t,n,null);else if(n instanceof gr)$m(t,n,null);else if(n instanceof Rs)oD(t,n);else if(n instanceof ks)aD(t,n);else if(n instanceof Fn)lD(t,n);else if(n instanceof Xu)uD(t,n);else if(n instanceof Bn)pD(t,n);else if(n instanceof Tn)fD(t,n);else if(!(n instanceof _n))throw new Error(`Unsupported template node: ${n.constructor.name}`)}function sD(t,e){var c,u;if(e.i18n!==void 0&&!(e.i18n instanceof vt||e.i18n instanceof Ps))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=t.job.allocateXrefId(),[s,r]=vn(e.name),i=sw(r,n,ym(s),e.i18n instanceof Ps?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);t.create.push(i),mD(t,i,e),Gm(i,e);let o=null;e.i18n instanceof vt&&(o=t.job.allocateXrefId(),t.create.push(wl(o,e.i18n,void 0,e.startSourceSpan))),ts(t,e.children);let l=iw(n,(c=e.endSourceSpan)!=null?c:e.startSourceSpan);t.create.push(l),o!==null&&w.insertBefore(xl(o,(u=e.endSourceSpan)!=null?u:e.startSourceSpan),l)}function rD(t,e){var h;if(e.i18n!==void 0&&!(e.i18n instanceof vt||e.i18n instanceof Ps))throw Error(`Unhandled i18n metadata type for template: ${e.i18n.constructor.name}`);let n=t.job.allocateView(t.xref),s=e.tagName,r="";e.tagName&&([r,s]=vn(e.tagName));let i=e.i18n instanceof Ps?e.i18n:void 0,o=ym(r),l=s===null?"":$w(s,o),c=dD(e)?St.NgTemplate:St.Structural,u=am(n.xref,c,s,l,o,i,e.startSourceSpan,e.sourceSpan);t.create.push(u),gD(t,u,e,c),Gm(u,e),ts(n,e.children);for(let{name:d,value:p}of e.variables)n.contextVariables.set(d,p!==""?p:"$implicit");if(c===St.NgTemplate&&e.i18n instanceof vt){let d=t.job.allocateXrefId();w.insertAfter(wl(d,e.i18n,void 0,e.startSourceSpan),n.create.head),w.insertBefore(xl(d,(h=e.endSourceSpan)!=null?h:e.startSourceSpan),n.create.tail)}}function iD(t,e){var i;if(e.i18n!==void 0&&!(e.i18n instanceof Ps))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=null;e.children.some(o=>!(o instanceof El)&&(!(o instanceof Wn)||o.value.trim().length>0))&&(n=t.job.allocateView(t.xref),ts(n,e.children));let s=t.job.allocateXrefId(),r=fw(s,e.selector,e.i18n,(i=n==null?void 0:n.xref)!=null?i:null,e.sourceSpan);for(let o of e.attributes){let l=lr.securityContext(e.name,o.name,!0);t.update.push(Cr(r.xref,M.Attribute,o.name,S(o.value),null,l,!0,!1,null,Kn(o.i18n),o.sourceSpan))}t.create.push(r)}function Bm(t,e,n){t.create.push(um(t.job.allocateXrefId(),e.value,n,e.sourceSpan))}function $m(t,e,n){var o;let s=e.value;if(s instanceof ve&&(s=s.ast),!(s instanceof ns))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${s.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof Xn))throw Error(`Unhandled i18n metadata type for text interpolation: ${(o=e.i18n)==null?void 0:o.constructor.name}`);let r=e.i18n instanceof Xn?e.i18n.children.filter(l=>l instanceof Ao).map(l=>l.name):[];if(r.length>0&&r.length!==s.expressions.length)throw Error(`Unexpected number of i18n placeholders (${s.expressions.length}) for BoundText with ${s.expressions.length} expressions`);let i=t.job.allocateXrefId();t.create.push(um(i,"",n,e.sourceSpan)),t.update.push(HT(i,new Ae(s.strings,s.expressions.map(l=>X(l,t.job,null)),r),e.sourceSpan))}function oD(t,e){var r;let n=null,s=[];for(let i=0;i<e.branches.length;i++){let o=e.branches[i],l=t.job.allocateView(t.xref),c=pl(t,l.xref,o);o.expressionAlias!==null&&l.contextVariables.set(o.expressionAlias.name,dm);let u;if(o.i18n!==void 0){if(!(o.i18n instanceof Ls))throw Error(`Unhandled i18n metadata type for if block: ${(r=o.i18n)==null?void 0:r.constructor.name}`);u=o.i18n}let d=(i===0?lm:cm)(l.xref,St.Block,c,"Conditional",nt.HTML,u,o.startSourceSpan,o.sourceSpan);t.create.push(d),n===null&&(n=l.xref);let p=o.expression?X(o.expression,t.job,null):null,g=new Xa(p,d.xref,d.handle,o.expressionAlias);s.push(g),ts(l,o.children)}t.update.push(rm(n,null,s,e.sourceSpan))}function aD(t,e){var r;if(e.groups.length===0)return;let n=null,s=[];for(let i=0;i<e.groups.length;i++){let o=e.groups[i],l=t.job.allocateView(t.xref),c=pl(t,l.xref,o),u;if(o.i18n!==void 0){if(!(o.i18n instanceof Ls))throw Error(`Unhandled i18n metadata type for switch block: ${(r=o.i18n)==null?void 0:r.constructor.name}`);u=o.i18n}let d=(i===0?lm:cm)(l.xref,St.Block,c,"Case",nt.HTML,u,o.startSourceSpan,o.sourceSpan);t.create.push(d),n===null&&(n=l.xref);for(let p of o.cases){let g=p.expression?X(p.expression,t.job,e.startSourceSpan):null,v=new Xa(g,d.xref,d.handle);s.push(v)}ts(l,o.children)}t.update.push(rm(n,X(e.expression,t.job,null),s,e.sourceSpan))}function Sa(t,e,n,s,r){if(n!==void 0&&!(n instanceof Ls))throw Error("Unhandled i18n metadata type for defer block");if(s===void 0)return null;let i=t.job.allocateView(t.xref);ts(i,s);let o=am(i.xref,St.Block,null,`Defer${e}`,nt.HTML,n,r,r);return t.create.push(o),o}function lD(t,e){var p,g,v,E,I,D,b,P,L,ne,re,Ge,Ne,Nt,Qs,is,os,la,Pe,ca;let n=null;if(t.job.deferMeta.mode===0){if(!t.job.deferMeta.blocks.has(e))throw new Error("AssertionError: unable to find a dependency function for this deferred block");n=(p=t.job.deferMeta.blocks.get(e))!=null?p:null}let s=Sa(t,"",e.i18n,e.children,e.sourceSpan),r=Sa(t,"Loading",(g=e.loading)==null?void 0:g.i18n,(v=e.loading)==null?void 0:v.children,(E=e.loading)==null?void 0:E.sourceSpan),i=Sa(t,"Placeholder",(I=e.placeholder)==null?void 0:I.i18n,(D=e.placeholder)==null?void 0:D.children,(b=e.placeholder)==null?void 0:b.sourceSpan),o=Sa(t,"Error",(P=e.error)==null?void 0:P.i18n,(L=e.error)==null?void 0:L.children,(ne=e.error)==null?void 0:ne.sourceSpan),l=t.job.allocateXrefId(),c=dw(l,s.xref,s.handle,n,t.job.allDeferrableDepsFn,e.sourceSpan);c.placeholderView=(re=i==null?void 0:i.xref)!=null?re:null,c.placeholderSlot=(Ge=i==null?void 0:i.handle)!=null?Ge:null,c.loadingSlot=(Ne=r==null?void 0:r.handle)!=null?Ne:null,c.errorSlot=(Nt=o==null?void 0:o.handle)!=null?Nt:null,c.placeholderMinimumTime=(is=(Qs=e.placeholder)==null?void 0:Qs.minimumTime)!=null?is:null,c.loadingMinimumTime=(la=(os=e.loading)==null?void 0:os.minimumTime)!=null?la:null,c.loadingAfterTime=(ca=(Pe=e.loading)==null?void 0:Pe.afterTime)!=null?ca:null,c.flags=cD(e),t.create.push(c);let u=[],h=[];lc("hydrate",e.hydrateTriggers,u,h,t,l),lc("none",e.triggers,u,h,t,l),lc("prefetch",e.prefetchTriggers,u,h,t,l),u.some(ki=>ki.modifier==="none")||h.some(ki=>ki.modifier==="none")||u.push(us(l,{kind:ce.Idle},"none",null)),t.create.push(u),t.update.push(h)}function cD(t){return Object.keys(t.hydrateTriggers).length>0?1:null}function lc(t,e,n,s,r,i){if(e.idle!==void 0){let o=us(i,{kind:ce.Idle},t,e.idle.sourceSpan);n.push(o)}if(e.immediate!==void 0){let o=us(i,{kind:ce.Immediate},t,e.immediate.sourceSpan);n.push(o)}if(e.timer!==void 0){let o=us(i,{kind:ce.Timer,delay:e.timer.delay},t,e.timer.sourceSpan);n.push(o)}if(e.hover!==void 0){let o=us(i,{kind:ce.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=us(i,{kind:ce.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=us(i,{kind:ce.Viewport,targetName:e.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null,options:e.viewport.options?X(e.viewport.options,r.job,e.viewport.sourceSpan):null},t,e.viewport.sourceSpan);n.push(o)}if(e.never!==void 0){let o=us(i,{kind:ce.Never},t,e.never.sourceSpan);n.push(o)}if(e.when!==void 0){if(e.when.value instanceof ns)throw new Error("Unexpected interpolation in defer block when trigger");let o=JT(i,X(e.when.value,r.job,e.when.sourceSpan),t,e.when.sourceSpan);s.push(o)}}function uD(t,e){var n;if(e.i18n instanceof vt&&QN(e.i18n)){let s=t.job.allocateXrefId();t.create.push(yw(s,e.i18n,Fd(e.i18n).name,null));for(let[r,i]of Object.entries(x(x({},e.vars),e.placeholders)))i instanceof gr?$m(t,i,r):Bm(t,i,r);t.create.push(vw(s))}else throw Error(`Unhandled i18n metadata type for ICU: ${(n=e.i18n)==null?void 0:n.constructor.name}`)}function pD(t,e){var D,b,P;let n=t.job.allocateView(t.xref),s=`\u0275$index_${n.xref}`,r=`\u0275$count_${n.xref}`,i=new Set;n.contextVariables.set(e.item.name,e.item.value);for(let L of e.contextVariables)L.value==="$index"&&i.add(L.name),L.name==="$index"?n.contextVariables.set("$index",L.value).set(s,L.value):L.name==="$count"?n.contextVariables.set("$count",L.value).set(r,L.value):n.aliases.add({kind:We.Alias,name:null,identifier:L.name,expression:hD(L,s,r)});let o=He(e.trackBy.span,e.sourceSpan),l=X(e.trackBy,t.job,o);ts(n,e.children);let c=null,u=null;e.empty!==null&&(c=t.job.allocateView(t.xref),ts(c,e.empty.children),u=pl(t,c.xref,e.empty));let h={$index:i,$implicit:e.item.name};if(e.i18n!==void 0&&!(e.i18n instanceof Ls))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(((D=e.empty)==null?void 0:D.i18n)!==void 0&&!(e.empty.i18n instanceof Ls))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let d=e.i18n,p=(b=e.empty)==null?void 0:b.i18n,g=pl(t,n.xref,e),v=rw(n.xref,(P=c==null?void 0:c.xref)!=null?P:null,g,l,h,u,d,p,e.startSourceSpan,e.sourceSpan);t.create.push(v);let E=X(e.expression,t.job,He(e.expression.span,e.sourceSpan)),I=QT(v.xref,v.handle,E,e.sourceSpan);t.update.push(I)}function hD(t,e,n){switch(t.value){case"$index":return new Ke(e);case"$count":return new Ke(n);case"$first":return new Ke(e).identical(S(0));case"$last":return new Ke(e).identical(new Ke(n).minus(S(1)));case"$even":return new Ke(e).modulo(S(2)).identical(S(0));case"$odd":return new Ke(e).modulo(S(2)).notIdentical(S(0));default:throw new Error(`AssertionError: unknown @for loop variable ${t.value}`)}}function fD(t,e){let n=t.job.allocateXrefId();t.create.push(mw(n,e.name,e.sourceSpan)),t.update.push(ew(n,e.name,X(e.value,t.job,e.valueSpan),e.sourceSpan))}function X(t,e,n){if(t instanceof ve)return X(t.ast,e,n);if(t instanceof le)return t.receiver instanceof Ze?new Ke(t.name):new wt(X(t.receiver,e,n),t.name,null,He(t.span,n));if(t instanceof Ct){if(t.receiver instanceof Ze)throw new Error("Unexpected ImplicitReceiver");return new ot(X(t.receiver,e,n),t.args.map(s=>X(s,e,n)),void 0,He(t.span,n))}else{if(t instanceof dt)return S(t.value,void 0,He(t.span,n));if(t instanceof Qr)switch(t.operator){case"+":return new Qn(Rn.Plus,X(t.expr,e,n),void 0,He(t.span,n));case"-":return new Qn(Rn.Minus,X(t.expr,e,n),void 0,He(t.span,n));default:throw new Error(`AssertionError: unknown unary operator ${t.operator}`)}else if(t instanceof we){let s=Fw.get(t.operation);if(s===void 0)throw new Error(`AssertionError: unknown binary operator ${t.operation}`);return new se(s,X(t.left,e,n),X(t.right,e,n),void 0,He(t.span,n))}else{if(t instanceof on)return new $s(e.root.xref);if(t instanceof Ln)return new Pn(X(t.receiver,e,n),X(t.key,e,n),void 0,He(t.span,n));if(t instanceof Is)throw new Error("AssertionError: Chain in unknown context");if(t instanceof Ds){let s=t.keys.map((r,i)=>{let o=X(t.values[i],e,n);return r.kind==="spread"?new yn(o):new ws(r.key,o,r.quoted)});return new rn(s,void 0,He(t.span,n))}else{if(t instanceof li)return new kt(t.expressions.map(s=>X(s,e,n)));if(t instanceof ai)return new gn(X(t.condition,e,n),X(t.trueExp,e,n),X(t.falseExp,e,n),void 0,He(t.span,n));if(t instanceof mo)return X(t.expression,e,n);if(t instanceof mr)return new Ir(e.allocateXrefId(),new st,t.name,[X(t.exp,e,n),...t.args.map(s=>X(s,e,n))]);if(t instanceof Ns)return new mi(X(t.receiver,e,n),X(t.key,e,n),He(t.span,n));if(t instanceof et)return new di(X(t.receiver,e,n),t.name);if(t instanceof Gt)return new Nr(X(t.receiver,e,n),t.args.map(s=>X(s,e,n)));if(t instanceof tt)return new Mo(He(t.span,n));if(t instanceof Mn)return Dd(X(t.expression,e,n),He(t.span,n));if(t instanceof ho)return Si(X(t.expression,e,n));if(t instanceof fo)return new no(X(t.expression,e,n),void 0,He(t.span,n));if(t instanceof yo)return Ff(t,e,n);if(t instanceof go)return new ti(X(t.tag,e,n),Ff(t.template,e,n),void 0,He(t.span,n));if(t instanceof vo)return new sn(X(t.expression,e,n),void 0,He(t.span,n));if(t instanceof La)return new hr(t.body,t.flags,n);if(t instanceof Ra)return new xs(X(t.expression,e,n));if(t instanceof ci)return vD(Rt(t.parameters.map(s=>new Oe(s.name,Et)),X(t.body,e,n)));throw new Error(`Unhandled expression type "${t.constructor.name}" in file "${n==null?void 0:n.start.file.url}"`)}}}}function Ff(t,e,n){return new si(t.elements.map(s=>new so(s.text,He(s.span,n))),t.expressions.map(s=>X(s,e,n)),He(t.span,n))}function ku(t,e,n,s){var i,o;let r;return e instanceof ns?r=new Ae(e.strings,e.expressions.map(l=>X(l,t,null)),Object.keys((o=(i=Kn(n))==null?void 0:i.placeholders)!=null?o:{})):e instanceof oe?r=X(e,t,null):r=S(e),r}var Um=new Map([[z.Property,M.Property],[z.TwoWay,M.TwoWayProperty],[z.Attribute,M.Attribute],[z.Class,M.ClassName],[z.Style,M.StyleProperty],[z.LegacyAnimation,M.LegacyAnimation],[z.Animation,M.Animation]]);function dD(t){var e;return vn((e=t.tagName)!=null?e:"")[1]===cr}function Kn(t){if(t==null)return null;if(!(t instanceof vt))throw Error(`Expected i18n meta to be a Message, but got: ${t.constructor.name}`);return t}function mD(t,e,n){var i;let s=new Array,r=new Set;for(let o of n.attributes){let l=lr.securityContext(n.name,o.name,!0);s.push(Cr(e.xref,M.Attribute,o.name,ku(t.job,o.value,o.i18n),null,l,!0,!1,null,Kn(o.i18n),o.sourceSpan)),o.i18n&&r.add(o.name)}for(let o of n.inputs)r.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.`),s.push(Cr(e.xref,Um.get(o.type),o.name,ku(t.job,Ho(o.value),o.i18n),o.unit,o.securityContext,!1,!1,null,(i=Kn(o.i18n))!=null?i:null,o.sourceSpan));t.create.push(s.filter(o=>(o==null?void 0:o.kind)===f.ExtractedAttribute)),t.update.push(s.filter(o=>(o==null?void 0:o.kind)===f.Binding));for(let o of n.outputs){if(o.type===De.LegacyAnimation&&o.phase===null)throw Error("Animation listener should have a phase");o.type===De.TwoWay?t.create.push(hm(e.xref,e.handle,o.name,e.tag,Vm(t,o.handler,o.handlerSpan),o.sourceSpan)):o.type===De.Animation?t.create.push(pm(e.xref,e.handle,o.name,e.tag,Go(t,o.handler,o.handlerSpan),o.name.endsWith("enter")?"enter":"leave",o.target,!1,o.sourceSpan)):t.create.push(ip(e.xref,e.handle,o.name,e.tag,Go(t,o.handler,o.handlerSpan),o.phase,o.target,!1,o.sourceSpan))}s.some(o=>o==null?void 0:o.i18nMessage)!==null&&t.create.push(fm(t.job.allocateXrefId(),new st,e.xref))}function gD(t,e,n,s){let r=new Array;for(let i of n.templateAttrs)if(i instanceof an){let o=lr.securityContext(cr,i.name,!0);r.push(Ea(t,e.xref,z.Attribute,i.name,i.value,null,o,!0,s,Kn(i.i18n),i.sourceSpan))}else r.push(Ea(t,e.xref,i.type,i.name,Ho(i.value),i.unit,i.securityContext,!0,s,Kn(i.i18n),i.sourceSpan));for(let i of n.attributes){let o=lr.securityContext(cr,i.name,!0);r.push(Ea(t,e.xref,z.Attribute,i.name,i.value,null,o,!1,s,Kn(i.i18n),i.sourceSpan))}for(let i of n.inputs)r.push(Ea(t,e.xref,i.type,i.name,Ho(i.value),i.unit,i.securityContext,!1,s,Kn(i.i18n),i.sourceSpan));t.create.push(r.filter(i=>(i==null?void 0:i.kind)===f.ExtractedAttribute)),t.update.push(r.filter(i=>(i==null?void 0:i.kind)===f.Binding));for(let i of n.outputs){if(i.type===De.LegacyAnimation&&i.phase===null)throw Error("Animation listener should have a phase");if(s===St.NgTemplate&&(i.type===De.TwoWay?t.create.push(hm(e.xref,e.handle,i.name,e.tag,Vm(t,i.handler,i.handlerSpan),i.sourceSpan)):t.create.push(ip(e.xref,e.handle,i.name,e.tag,Go(t,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))),s===St.Structural&&i.type!==De.LegacyAnimation){let o=lr.securityContext(cr,i.name,!1);t.create.push(Zt(e.xref,M.Property,null,i.name,null,null,null,o))}}r.some(i=>i==null?void 0:i.i18nMessage)!==null&&t.create.push(fm(t.job.allocateXrefId(),new st,e.xref))}function Ea(t,e,n,s,r,i,o,l,c,u,h){let d=typeof r=="string";if(c===St.Structural){if(!l)switch(n){case z.Property:case z.Class:case z.Style:return Zt(e,M.Property,null,s,null,null,u,o);case z.TwoWay:return Zt(e,M.TwoWayProperty,null,s,null,null,u,o)}if(!d&&(n===z.Attribute||n===z.LegacyAnimation||n===z.Animation))return null}let p=Um.get(n);return c===St.NgTemplate&&(n===z.Class||n===z.Style||n===z.Attribute&&!d)&&(p=M.Property),Cr(e,p,s,ku(t.job,r,u),i,o,d,l,c,u,h)}function Go(t,e,n){e=Ho(e);let s=new Array,r=e instanceof Is?e.expressions:[e];if(r.length===0)throw new Error("Expected listener to have non-empty expression list.");let i=r.map(l=>X(l,t.job,n)),o=i.pop();return s.push(...i.map(l=>Wt(new Je(l,l.sourceSpan)))),s.push(Wt(new be(o,o.sourceSpan))),s}function Vm(t,e,n){e=Ho(e);let s=new Array;if(e instanceof Is)if(e.expressions.length===1)e=e.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let r=X(e,t.job,n),i=new Ke("$event"),o=new za(r,i);return s.push(Wt(new Je(o))),s.push(Wt(new be(i))),s}function Ho(t){return t instanceof ve?t.ast:t}function Gm(t,e){yD(t.localRefs);for(let{name:n,value:s}of e.references)t.localRefs.push({name:n,target:s})}function yD(t){if(!Array.isArray(t))throw new Error("AssertionError: expected an array")}function He(t,e){if(e===null)return null;let n=e.start.moveBy(t.start),s=e.start.moveBy(t.end),r=e.fullStart.moveBy(t.start);return new H(n,s,r)}function pl(t,e,n){let s=null;for(let r of n.children)if(!(r instanceof El||r instanceof Tn)){if(s!==null)return null;if(r instanceof ke||r instanceof de&&r.tagName!==null)s=r;else return null}if(s!==null){for(let i of s.attributes)if(!i.name.startsWith(YN)){let o=lr.securityContext(cr,i.name,!0);t.update.push(Cr(e,M.Attribute,i.name,S(i.value),null,o,!0,!1,null,Kn(i.i18n),i.sourceSpan))}for(let i of s.inputs)if(i.type!==z.LegacyAnimation&&i.type!==z.Animation&&i.type!==z.Attribute){let o=lr.securityContext(cr,i.name,!0);t.create.push(Zt(e,M.Property,null,i.name,null,null,null,o))}let r=s instanceof ke?s.name:s.tagName;return r===cr?null:r}return null}function vD(t){let e=new Set(t.params.map(n=>n.name));return k(t,n=>{if(n instanceof Gn)for(let s of n.params)e.add(s.name);else if(n instanceof Ke&&e.has(n.name))return J(n.name);return n},Q.None)}var SD=!1;function ED(){return SD}function hl(t,e){return zo(J(Ti).bitwiseAnd(S(t),null),e)}function TD(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function wD(t,e){if(Array.isArray(t.predicate)){let n=[];return t.predicate.forEach(s=>{let r=s.split(",").map(i=>S(i.trim()));n.push(...r)}),e.getConstLiteral(ae(n),!0)}else switch(t.predicate.forwardRef){case 0:case 2:return t.predicate.expression;case 1:return O(m.resolveForwardRef).callFn([t.predicate.expression])}}function Hm(t,e,n){let s=[];return n!==void 0&&s.push(...n),t.isSignal&&s.push(new wt(J(qt),t.propertyName)),s.push(wD(t,e),S(TD(t))),t.read&&s.push(t.read),s}var cp=Symbol("queryAdvancePlaceholder");function qm(t){let e=[],n=0,s=()=>{n>0&&(e.unshift(O(m.queryAdvance).callFn(n===1?[]:[S(n)]).toStmt()),n=0)};for(let r=t.length-1;r>=0;r--){let i=t[r];i===cp?n++:(s(),e.unshift(i))}return s(),e}function xD(t,e,n){let s=[],r=[],i=Bd(u=>r.push(u),Qu),o=null,l=null;t.forEach(u=>{let h=Hm(u,e);if(u.isSignal?(o!=null||(o=O(m.viewQuerySignal)),o=o.callFn(h)):(l!=null||(l=O(m.viewQuery)),l=l.callFn(h)),u.isSignal){r.push(cp);return}let d=i(),p=O(m.loadQuery).callFn([]),g=O(m.queryRefresh).callFn([d.set(p)]),v=J(qt).prop(u.propertyName).set(u.first?d.prop("first"):d);r.push(g.and(v).toStmt())}),o!==null&&s.push(new Je(o)),l!==null&&s.push(new Je(l));let c=n?`${n}_Query`:null;return Jn([new Oe(Ti,Ts),new Oe(qt,Et)],[hl(1,s),hl(2,qm(r))],tn,null,c)}function CD(t,e,n){let s=[],r=[],i=Bd(u=>r.push(u),Qu),o=null,l=null;for(let u of t){let h=Hm(u,e,[J("dirIndex")]);if(u.isSignal?(o!=null||(o=O(m.contentQuerySignal)),o=o.callFn(h)):(l!=null||(l=O(m.contentQuery)),l=l.callFn(h)),u.isSignal){r.push(cp);continue}let d=i(),p=O(m.loadQuery).callFn([]),g=O(m.queryRefresh).callFn([d.set(p)]),v=J(qt).prop(u.propertyName).set(u.first?d.prop("first"):d);r.push(g.and(v).toStmt())}o!==null&&s.push(new Je(o)),l!==null&&s.push(new Je(l));let c=n?`${n}_ContentQueries`:null;return Jn([new Oe(Ti,Ts),new Oe(qt,Et),new Oe("dirIndex",Ts)],[hl(1,s),hl(2,qm(r))],tn,null,c)}var fl=class extends Ux{constructor(){super(Cu)}parse(e,n,s){return super.parse(e,n,s)}},Ta=".",AD="attr",cc="animate",ID="class",ND="style",DD="*",uc="animate-",Ru=class{constructor(e,n,s){a(this,"_exprParser");a(this,"_schemaRegistry");a(this,"errors");this._exprParser=e,this._schemaRegistry=n,this.errors=s}createBoundHostProperties(e,n){let s=[];for(let r of Object.keys(e)){let i=e[r];typeof i=="string"?this.parsePropertyBinding(r,i,!0,!1,n,n.start.offset,void 0,[],s,n):this._reportError(`Value of the host property binding "${r}" needs to be a string representing an expression but got "${i}" (${typeof i})`,n)}return s}createDirectiveHostEventAsts(e,n){let s=[];for(let r of Object.keys(e)){let i=e[r];typeof i=="string"?this.parseEvent(r,i,!1,n,n,[],s,n):this._reportError(`Value of the host listener "${r}" needs to be a string representing an expression but got "${i}" (${typeof i})`,n)}return s}parseInterpolation(e,n,s){let r=n.fullStart.offset;try{let i=this._exprParser.parseInterpolation(e,n,r,s);return i&&this.errors.push(...i.errors),i}catch(i){return this._reportError(`${i}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)}}parseInterpolationExpression(e,n){let s=n.start.offset;try{let r=this._exprParser.parseInterpolationExpression(e,n,s);return r&&this.errors.push(...r.errors),r}catch(r){return this._reportError(`${r}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,s)}}parseInlineTemplateBinding(e,n,s,r,i,o,l,c){let u=s.start.offset+DD.length,h=this._parseTemplateBindings(e,n,s,u,r);for(let d of h){let p=ls(s,d.sourceSpan),g=d.key.source,v=ls(s,d.key.span);if(d instanceof So){let E=d.value?d.value.source:"$implicit",I=d.value?ls(s,d.value.span):void 0;l.push(new Oc(g,E,p,v,I))}else if(d.value){let E=c?p:s,I=ls(s,d.value.ast.sourceSpan);this._parsePropertyAst(g,d.value,!1,E,v,I,i,o)}else i.push([g,""]),this.parseLiteralAttr(g,null,v,r,void 0,i,o,v)}}_parseTemplateBindings(e,n,s,r,i){try{let o=this._exprParser.parseTemplateBindings(e,n,s,r,i);return o.errors.forEach(l=>this.errors.push(l)),o.warnings.forEach(l=>{this._reportError(l,s,zn.WARNING)}),o.templateBindings}catch(o){return this._reportError(`${o}`,s),[]}}parseLiteralAttr(e,n,s,r,i,o,l,c){pc(e)?(e=e.substring(1),c!==void 0&&(c=ls(c,new Ye(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.',s,zn.ERROR),this._parseLegacyAnimation(e,n,s,r,c,i,o,l)):l.push(new qr(e,this._exprParser.wrapLiteralPrimitive(n,"",r),pn.LITERAL_ATTR,s,c,i))}parsePropertyBinding(e,n,s,r,i,o,l,c,u,h){e.length===0&&this._reportError("Property name is missing in binding",i);let d=!1;e.startsWith(uc)?(d=!0,e=e.substring(uc.length),h!==void 0&&(h=ls(h,new Ye(h.start.offset+uc.length,h.end.offset)))):pc(e)&&(d=!0,e=e.substring(1),h!==void 0&&(h=ls(h,new Ye(h.start.offset+1,h.end.offset)))),d?this._parseLegacyAnimation(e,n,i,o,h,l,c,u):e.startsWith(`${cc}${Ta}`)?this._parseAnimation(e,this.parseBinding(n,s,l||i,o),i,h,l,c,u):this._parsePropertyAst(e,this.parseBinding(n,s,l||i,o),r,i,h,l,c,u)}parsePropertyInterpolation(e,n,s,r,i,o,l,c){let u=this.parseInterpolation(n,r||s,c);return u?(this._parsePropertyAst(e,u,!1,s,l,r,i,o),!0):!1}_parsePropertyAst(e,n,s,r,i,o,l,c){l.push([e,n.source]),c.push(new qr(e,n,s?pn.TWO_WAY:pn.DEFAULT,r,i,o))}_parseAnimation(e,n,s,r,i,o,l){o.push([e,n.source]),l.push(new qr(e,n,pn.ANIMATION,s,r,i))}_parseLegacyAnimation(e,n,s,r,i,o,l,c){e.length===0&&this._reportError("Animation trigger is missing",s);let u=this.parseBinding(n||"undefined",!1,o||s,r);l.push([e,u.source]),c.push(new qr(e,u,pn.LEGACY_ANIMATION,s,i,o))}parseBinding(e,n,s,r){try{let i=n?this._exprParser.parseSimpleBinding(e,s,r):this._exprParser.parseBinding(e,s,r);return i&&this.errors.push(...i.errors),i}catch(i){return this._reportError(`${i}`,s),this._exprParser.wrapLiteralPrimitive("ERROR",s,r)}}createBoundElementProperty(e,n,s=!1,r=!0){if(n.isLegacyAnimation)return new Oa(n.name,z.LegacyAnimation,ue.NONE,n.expression,null,n.sourceSpan,n.keySpan,n.valueSpan);let i=null,o,l=null,c=n.name.split(Ta),u;if(c.length>1)if(c[0]==AD){l=c.slice(1).join(Ta),s||this._validatePropertyOrAttributeName(l,n.sourceSpan,!0),u=hc(this._schemaRegistry,e,l,!0);let h=l.indexOf(":");if(h>-1){let d=l.substring(0,h),p=l.substring(h+1);l=xa(d,p)}o=z.Attribute}else c[0]==ID?(l=c[1],o=z.Class,u=[ue.NONE]):c[0]==ND?(i=c.length>2?c[2]:null,l=c[1],o=z.Style,u=[ue.STYLE]):c[0]==cc&&(l=n.name,o=z.Animation,u=[ue.NONE]);if(l===null){let h=this._schemaRegistry.getMappedPropName(n.name);l=r?h:n.name,u=hc(this._schemaRegistry,e,h,!1),o=n.type===pn.TWO_WAY?z.TwoWay:z.Property,s||this._validatePropertyOrAttributeName(h,n.sourceSpan,!1)}return new Oa(l,o,u[0],n.expression,i,n.sourceSpan,n.keySpan,n.valueSpan)}parseEvent(e,n,s,r,i,o,l,c){e.length===0&&this._reportError("Event name is missing in binding",r),pc(e)?(e=e.slice(1),c!==void 0&&(c=ls(c,new Ye(c.start.offset+1,c.end.offset))),this._parseLegacyAnimationEvent(e,n,r,i,l,c)):this._parseRegularEvent(e,n,s,r,i,o,l,c)}calcPossibleSecurityContexts(e,n,s){let r=this._schemaRegistry.getMappedPropName(n);return hc(this._schemaRegistry,e,r,s)}parseEventListenerName(e){let[n,s]=dE(e,[null,e]);return{eventName:s,target:n}}parseLegacyAnimationEventName(e){let n=mE(e,[e,null]);return{eventName:n[0],phase:n[1]===null?null:n[1].toLowerCase()}}_parseLegacyAnimationEvent(e,n,s,r,i,o){let{eventName:l,phase:c}=this.parseLegacyAnimationEventName(e),u=this._parseAction(n,r);i.push(new Ma(l,c,De.LegacyAnimation,u,s,r,o)),l.length===0&&this._reportError("Animation event name is missing in binding",s),c?c!=="start"&&c!=="done"&&this._reportError(`The provided animation output phase value "${c}" for "@${l}" is not supported (use start or done)`,s):this._reportError(`The animation trigger output event (@${l}) is missing its phase value name (start or done are currently supported)`,s)}_parseRegularEvent(e,n,s,r,i,o,l,c){let{eventName:u,target:h}=this.parseEventListenerName(e),d=this.errors.length,p=this._parseAction(n,i),g=this.errors.length===d;o.push([e,p.source]),s&&g&&!this._isAllowedAssignmentEvent(p)&&this._reportError("Unsupported expression in a two-way binding",r);let v=De.Regular;s&&(v=De.TwoWay),e.startsWith(`${cc}${Ta}`)&&(v=De.Animation),l.push(new Ma(u,h,v,p,r,i,c))}_parseAction(e,n){let s=n&&n.start?n.start.offset:0;try{let r=this._exprParser.parseAction(e,n,s);return r&&this.errors.push(...r.errors),!r||r.ast instanceof tt?(this._reportError("Empty expressions are not allowed",n),this._exprParser.wrapLiteralPrimitive("ERROR",n,s)):r}catch(r){return this._reportError(`${r}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,s)}}_reportError(e,n,s=zn.ERROR){this.errors.push(new G(n,e,s))}_validatePropertyOrAttributeName(e,n,s){let r=s?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);r.error&&this._reportError(r.msg,n,zn.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof ve?this._isAllowedAssignmentEvent(e.ast):e instanceof mo?this._isAllowedAssignmentEvent(e.expression):e instanceof Ct&&e.args.length===1&&e.receiver instanceof le&&e.receiver.name==="$any"&&e.receiver.receiver instanceof Ze?this._isAllowedAssignmentEvent(e.args[0]):(e instanceof le||e instanceof Ln)&&!Pu(e)}};function Pu(t){return t instanceof et||t instanceof Ns?!0:t instanceof vo?Pu(t.expression):t instanceof le||t instanceof Ln||t instanceof Ct?Pu(t.receiver):!1}function pc(t){return t[0]=="@"}function hc(t,e,n,s){let r,i=o=>t.securityContext(o,n,s);return e===null?r=t.allKnownElementNames().map(i):(r=[],fn.parse(e).forEach(o=>{let l=o.element?[o.element]:t.allKnownElementNames(),c=new Set(o.notSelectors.filter(h=>h.isElementSelector()).map(h=>h.element)),u=l.filter(h=>!c.has(h));r.push(...u.map(i))})),r.length===0?[ue.NONE]:Array.from(new Set(r)).sort()}function ls(t,e){let n=e.start-t.start.offset,s=e.end-t.end.offset;return new H(t.start.moveBy(n),t.end.moveBy(s),t.fullStart.moveBy(n),t.details)}function bD(t){if(t==null||t.length===0||t[0]=="/")return!1;let e=t.match(_D);return e===null||e[1]=="package"||e[1]=="asset"}var _D=/^([^:/?#]+):/,kD="select",RD="link",PD="rel",LD="href",MD="stylesheet",OD="style",FD="script",BD="ngNonBindable",$D="ngProjectAs";function Wm(t){let e=null,n=null,s=null,r=!1,i="";t.attrs.forEach(c=>{let u=c.name.toLowerCase();u==kD?e=c.value:u==LD?n=c.value:u==PD?s=c.value:c.name==BD?r=!0:c.name==$D&&c.value.length>0&&(i=c.value)}),e=UD(e);let o=t.name.toLowerCase(),l=bt.OTHER;return Fc(o)?l=bt.NG_CONTENT:o==OD?l=bt.STYLE:o==FD?l=bt.SCRIPT:o==RD&&s==MD&&(l=bt.STYLESHEET),new Lu(l,e,n,r,i)}var bt;(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"})(bt||(bt={}));var Lu=class{constructor(e,n,s,r,i){a(this,"type");a(this,"selectAttr");a(this,"hrefAttr");a(this,"nonBindable");a(this,"projectAs");this.type=e,this.selectAttr=n,this.hrefAttr=s,this.nonBindable=r,this.projectAs=i}};function UD(t){return t===null||t.length===0?"*":t}var VD=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,GD=/^track\s+([\S\s]*)/,HD=/^(as\s+)(.*)/,Al=/^else[^\S\r\n]+if/,qD=/^let\s+([\S\s]*)/,WD=/^[$A-Z_][0-9A-Z_$]*$/i,Bf=/(\s*)(\S+)(\s*)/,eo=new Set(["$index","$first","$last","$even","$odd","$count"]);function $f(t){return t==="empty"}function Uf(t){return t==="else"||Al.test(t)}function jD(t,e,n,s){let r=JD(e),i=[],o=Vf(t,r,s);o!==null&&i.push(new vs(o.expression,ge(n,t.children,t.children),o.expressionAlias,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan,t.i18n));for(let d of e)if(Al.test(d.name)){let p=Vf(d,r,s);if(p!==null){let g=ge(n,d.children,d.children);i.push(new vs(p.expression,g,p.expressionAlias,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}}else if(d.name==="else"){let p=ge(n,d.children,d.children);i.push(new vs(null,p,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,h=i[i.length-1];return h!==void 0&&(u=new H(l.start,h.sourceSpan.end)),{node:new Rs(i,u,t.startSourceSpan,c,t.nameSpan),errors:r}}function zD(t,e,n,s){var c,u;let r=[],i=XD(t,r,s),o=null,l=null;for(let h of e)h.name==="empty"?l!==null?r.push(new G(h.sourceSpan,"@for loop can only have one @empty block")):h.parameters.length>0?r.push(new G(h.sourceSpan,"@empty block cannot have parameters")):l=new Co(ge(n,h.children,h.children),h.sourceSpan,h.startSourceSpan,h.endSourceSpan,h.nameSpan,h.i18n):r.push(new G(h.sourceSpan,`Unrecognized @for loop block "${h.name}"`));if(i!==null)if(i.trackBy===null)r.push(new G(t.startSourceSpan,'@for loop must have a "track" expression'));else{let h=(c=l==null?void 0:l.endSourceSpan)!=null?c:t.endSourceSpan,d=new H(t.sourceSpan.start,(u=h==null?void 0:h.end)!=null?u:t.sourceSpan.end);YD(i.trackBy.expression,i.trackBy.keywordSpan,r),o=new Bn(i.itemName,i.expression,i.trackBy.expression,i.trackBy.keywordSpan,i.context,ge(n,t.children,t.children),l,d,t.sourceSpan,t.startSourceSpan,h,t.nameSpan,t.i18n)}return{node:o,errors:r}}function KD(t,e,n){let s=ZD(t),r=t.parameters.length>0?qo(t.parameters[0],n):n.parseBinding("",!1,t.sourceSpan,0),i=[],o=[],l=[],c=null,u=null;for(let d of t.children){if(!(d instanceof Qt))continue;if((d.name!=="case"||d.parameters.length===0)&&d.name!=="default"&&d.name!=="default never"){o.push(new Ba(d.name,d.sourceSpan,d.nameSpan));continue}u!==null&&s.push(new G(d.sourceSpan,'@default block with "never" parameter must be the last case in a switch'));let p=d.name==="case",g=null;if(p)g=qo(d.parameters[0],n);else if(d.name==="default never"){(d.children.length>0||d.endSourceSpan!==null&&d.endSourceSpan.start.offset!==d.endSourceSpan.end.offset)&&s.push(new G(d.sourceSpan,'@default block with "never" parameter cannot have a body')),l.length>0&&s.push(new G(d.sourceSpan,'A @case block with no body cannot be followed by a @default block with "never" parameter')),u=new Gc(d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan);continue}let v=new Vc(g,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan);if(l.push(v),d.children.length===0&&d.endSourceSpan!==null&&d.endSourceSpan.start.offset===d.endSourceSpan.end.offset){c===null&&(c=d.sourceSpan);continue}let I=d.sourceSpan,D=d.startSourceSpan;c!==null&&(I=new H(c.start,d.sourceSpan.end),D=new H(c.start,d.startSourceSpan.end),c=null);let b=new xo(l,ge(e,d.children,d.children),I,D,d.endSourceSpan,d.nameSpan,d.i18n);i.push(b),l=[]}return{node:new ks(r,i,o,u,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan),errors:s}}function XD(t,e,n){var d;if(t.parameters.length===0)return e.push(new G(t.startSourceSpan,"@for loop does not have an expression")),null;let[s,...r]=t.parameters,i=(d=eb(s,e))==null?void 0:d.match(VD);if(!i||i[2].trim().length===0)return e.push(new G(s.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;let[,o,l]=i;eo.has(o)&&e.push(new G(s.sourceSpan,`@for loop item name cannot be one of ${Array.from(eo).join(", ")}.`));let c=s.expression.split(" ")[0],u=new H(s.sourceSpan.start,s.sourceSpan.start.moveBy(c.length)),h={itemName:new Ht(o,"$implicit",u,u),trackBy:null,expression:qo(s,n,l),context:Array.from(eo,p=>{let g=new H(t.startSourceSpan.end,t.startSourceSpan.end);return new Ht(p,p,g,g)})};for(let p of r){let g=p.expression.match(qD);if(g!==null){let E=new H(p.sourceSpan.start.moveBy(g[0].length-g[1].length),p.sourceSpan.end);QD(p.sourceSpan,g[1],E,o,h.context,e);continue}let v=p.expression.match(GD);if(v!==null){if(h.trackBy!==null)e.push(new G(p.sourceSpan,'@for loop can only have one "track" expression'));else{let E=qo(p,n,v[1]);E.ast instanceof tt&&e.push(new G(t.startSourceSpan,'@for loop must have a "track" expression'));let I=new H(p.sourceSpan.start,p.sourceSpan.start.moveBy(5));h.trackBy={expression:E,keywordSpan:I}}continue}e.push(new G(p.sourceSpan,`Unrecognized @for loop parameter "${p.expression}"`))}return h}function YD(t,e,n){let s=new Mu;t.ast.visit(s),s.hasPipe&&n.push(new G(e,"Cannot use pipes in track expressions"))}function QD(t,e,n,s,r,i){var c,u,h;let o=e.split(","),l=n.start;for(let d of o){let p=d.split("="),g=p.length===2?p[0].trim():"",v=p.length===2?p[1].trim():"";if(g.length===0||v.length===0)i.push(new G(t,'Invalid @for loop "let" parameter. Parameter should match the pattern "<name> = <variable name>"'));else if(!eo.has(v))i.push(new G(t,`Unknown "let" parameter variable "${v}". The allowed variables are: ${Array.from(eo).join(", ")}`));else if(g===s)i.push(new G(t,`Invalid @for loop "let" parameter. Variable cannot be called "${s}"`));else if(r.some(E=>E.name===g))i.push(new G(t,`Duplicate "let" parameter variable "${v}"`));else{let[,E,I]=(c=p[0].match(Bf))!=null?c:[],D=E!==void 0&&p.length===2?new H(l.moveBy(E.length),l.moveBy(E.length+I.length)):n,b;if(p.length===2){let[,L,ne]=(u=p[1].match(Bf))!=null?u:[];b=L!==void 0?new H(l.moveBy(p[0].length+1+L.length),l.moveBy(p[0].length+1+L.length+ne.length)):void 0}let P=new H(D.start,(h=b==null?void 0:b.end)!=null?h:D.end);r.push(new Ht(g,v,P,D,b))}l=l.moveBy(d.length+1)}}function JD(t){let e=[],n=!1;for(let s=0;s<t.length;s++){let r=t[s];r.name==="else"?(n?e.push(new G(r.startSourceSpan,"Conditional can only have one @else block")):t.length>1&&s<t.length-1?e.push(new G(r.startSourceSpan,"@else block must be last inside the conditional")):r.parameters.length>0&&e.push(new G(r.startSourceSpan,"@else block cannot have parameters")),n=!0):Al.test(r.name)||e.push(new G(r.startSourceSpan,`Unrecognized conditional block @${r.name}`))}return e}function ZD(t){let e=[],n=!1;if(t.parameters.length!==1)return e.push(new G(t.startSourceSpan,"@switch block must have exactly one parameter")),e;for(let s of t.children)if(!(s instanceof Bo||s instanceof Dr&&s.value.trim().length===0)){if(!(s instanceof Qt)||s.name!=="case"&&s.name!=="default"&&s.name!=="default never"){e.push(new G(s.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}s.name==="default never"?(n&&e.push(new G(s.startSourceSpan,"@switch block can only have one @default block")),n=!0):s.name==="default"?(n?e.push(new G(s.startSourceSpan,"@switch block can only have one @default block")):s.parameters.length>0&&e.push(new G(s.startSourceSpan,"@default block cannot have parameters")),n=!0):s.name==="case"&&s.parameters.length!==1&&e.push(new G(s.startSourceSpan,"@case block must have exactly one parameter"))}return e}function qo(t,e,n){let s,r;return typeof n=="string"?(s=Math.max(0,t.expression.lastIndexOf(n)),r=s+n.length):(s=0,r=t.expression.length),e.parseBinding(t.expression.slice(s,r),!1,t.sourceSpan,t.sourceSpan.start.offset+s)}function Vf(t,e,n){if(t.parameters.length===0)return e.push(new G(t.startSourceSpan,"Conditional block does not have an expression")),null;let s=qo(t.parameters[0],n),r=null;for(let i=1;i<t.parameters.length;i++){let o=t.parameters[i],l=o.expression.match(HD);if(l===null)e.push(new G(o.sourceSpan,`Unrecognized conditional parameter "${o.expression}"`));else if(t.name!=="if"&&!Al.test(t.name))e.push(new G(o.sourceSpan,'"as" expression is only allowed on `@if` and `@else if` blocks'));else if(r!==null)e.push(new G(o.sourceSpan,'Conditional can only have one "as" expression'));else{let c=l[2].trim();if(WD.test(c)){let u=o.sourceSpan.start.moveBy(l[1].length),h=new H(u,u.moveBy(c.length));r=new Ht(c,c,h,h)}else e.push(new G(o.sourceSpan,'"as" expression must be a valid JavaScript identifier'))}}return{expression:s,expressionAlias:r}}function eb(t,e){let n=t.expression,s=/^\s$/,r=0,i=0,o=n.length-1;for(let l=0;l<n.length;l++){let c=n[l];if(c==="(")i=l+1,r++;else{if(s.test(c))continue;break}}if(r===0)return n;for(let l=n.length-1;l>-1;l--){let c=n[l];if(c===")"){if(o=l,r--,r===0)break}else{if(s.test(c))continue;break}}return r!==0?(e.push(new G(t.sourceSpan,"Unclosed parentheses in expression")),null):n.slice(i,o)}var Mu=class extends bs{constructor(){super(...arguments);a(this,"hasPipe",!1)}visitPipe(){this.hasPipe=!0}},tb=/^\d+\.?\d*(ms|s)?$/,nb=/^\s$/,Gf=new Map([[Jt,mt],[kn,jn],[yt,Be]]),it;(function(t){t.IDLE="idle",t.TIMER="timer",t.INTERACTION="interaction",t.IMMEDIATE="immediate",t.HOVER="hover",t.VIEWPORT="viewport",t.NEVER="never"})(it||(it={}));function sb({expression:t,sourceSpan:e},n,s){let r=t.indexOf("never"),i=new H(e.start.moveBy(r),e.start.moveBy(r+5)),o=up(t,e),l=pp(t,e);r===-1?s.push(new G(e,'Could not find "never" keyword in expression')):hp("never",n,s,new $c(i,e,o,null,l))}function fc({expression:t,sourceSpan:e},n,s,r){let i=t.indexOf("when"),o=new H(e.start.moveBy(i),e.start.moveBy(i+4)),l=up(t,e),c=pp(t,e);if(i===-1)r.push(new G(e,'Could not find "when" keyword in expression'));else{let u=Wo(t,i+1),h=n.parseBinding(t.slice(u),!1,e,e.start.offset+u);hp("when",s,r,new Fa(h,e,l,o,c))}}function dc({expression:t,sourceSpan:e},n,s,r,i){let o=t.indexOf("on"),l=new H(e.start.moveBy(o),e.start.moveBy(o+2)),c=up(t,e),u=pp(t,e);if(o===-1)r.push(new G(e,'Could not find "on" keyword in expression'));else{let h=Wo(t,o+1),d=t.startsWith("hydrate");new Ou(t,n,h,e,s,r,d?pb:ub,d,c,l,u).parse()}}function up(t,e){return t.startsWith("prefetch")?new H(e.start,e.start.moveBy(8)):null}function pp(t,e){return t.startsWith("hydrate")?new H(e.start,e.start.moveBy(7)):null}var Ou=class{constructor(e,n,s,r,i,o,l,c,u,h,d){a(this,"expression");a(this,"bindingParser");a(this,"start");a(this,"span");a(this,"triggers");a(this,"errors");a(this,"validator");a(this,"isHydrationTrigger");a(this,"prefetchSpan");a(this,"onSourceSpan");a(this,"hydrateSpan");a(this,"index",0);a(this,"tokens");this.expression=e,this.bindingParser=n,this.start=s,this.span=r,this.triggers=i,this.errors=o,this.validator=l,this.isHydrationTrigger=c,this.prefetchSpan=u,this.onSourceSpan=h,this.hydrateSpan=d,this.tokens=new Vo().tokenize(e.slice(s))}parse(){for(;this.tokens.length>0&&this.index<this.tokens.length;){let e=this.token();if(!e.isIdentifier()){this.unexpectedToken(e);break}if(this.isFollowedByOrLast(rt))this.consumeTrigger(e,[]),this.advance();else if(this.isFollowedByOrLast(yt)){this.advance();let n=this.errors.length,s=this.consumeParameters();if(this.errors.length!==n)break;this.consumeTrigger(e,s),this.advance()}else this.index<this.tokens.length-1&&this.unexpectedToken(this.tokens[this.index+1]);this.advance()}}advance(){this.index++}isFollowedByOrLast(e){return this.index===this.tokens.length-1?!0:this.tokens[this.index+1].isCharacter(e)}token(){return this.tokens[Math.min(this.index,this.tokens.length-1)]}consumeTrigger(e,n){let s=this.span.start.moveBy(this.start+e.index-this.tokens[0].index),r=new H(s,s.moveBy(e.strValue.length)),i=s.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,h=new H(o?this.span.start:s,i);try{switch(e.toString()){case it.IDLE:this.trackTrigger("idle",rb(n,r,h,c,l,u));break;case it.TIMER:this.trackTrigger("timer",ib(n,r,h,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case it.INTERACTION:this.trackTrigger("interaction",lb(n,r,h,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case it.IMMEDIATE:this.trackTrigger("immediate",ob(n,r,h,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case it.HOVER:this.trackTrigger("hover",ab(n,r,h,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case it.VIEWPORT:this.trackTrigger("viewport",cb(this.start,this.isHydrationTrigger,this.bindingParser,n,r,h,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,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(yt))return this.unexpectedToken(this.token()),e;this.advance();let n=[],s=[];for(;this.index<this.tokens.length;){let r=this.token();if(r.isCharacter(Be)&&n.length===0){s.length&&e.push({expression:this.tokenRangeText(s),start:s[0].index});break}if(r.type===q.Character&&Gf.has(r.numValue)&&n.push(Gf.get(r.numValue)),n.length>0&&r.isCharacter(n[n.length-1])&&n.pop(),n.length===0&&r.isCharacter(rt)&&s.length>0){e.push({expression:this.tokenRangeText(s),start:s[0].index}),this.advance(),s=[];continue}s.push(r),this.advance()}return(!this.token().isCharacter(Be)||n.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(rt)&&this.unexpectedToken(this.tokens[this.index+1]),e}tokenRangeText(e){return e.length===0?"":this.expression.slice(this.start+e[0].index,this.start+e[e.length-1].end)}trackTrigger(e,n){hp(e,this.triggers,this.errors,n)}error(e,n){let s=this.span.start.moveBy(this.start+e.index),r=s.moveBy(e.end-e.index);this.errors.push(new G(new H(s,r),n))}unexpectedToken(e){this.error(e,`Unexpected token "${e}"`)}};function hp(t,e,n,s){e[t]?n.push(new G(s.sourceSpan,`Duplicate "${t}" trigger is not allowed`)):e[t]=s}function rb(t,e,n,s,r,i){if(t.length>0)throw new Error(`"${it.IDLE}" trigger cannot have parameters`);return new Uc(e,n,s,r,i)}function ib(t,e,n,s,r,i){if(t.length!==1)throw new Error(`"${it.TIMER}" trigger must have exactly one parameter`);let o=dl(t[0].expression);if(o===null)throw new Error(`Could not parse time value of trigger "${it.TIMER}"`);return new vr(o,e,n,s,r,i)}function ob(t,e,n,s,r,i){if(t.length>0)throw new Error(`"${it.IMMEDIATE}" trigger cannot have parameters`);return new ui(e,n,s,r,i)}function ab(t,e,n,s,r,i,o){var l,c;return o(it.HOVER,t),new yr((c=(l=t[0])==null?void 0:l.expression)!=null?c:null,e,n,s,r,i)}function lb(t,e,n,s,r,i,o){var l,c;return o(it.INTERACTION,t),new Sr((c=(l=t[0])==null?void 0:l.expression)!=null?c:null,e,n,s,r,i)}function cb(t,e,n,s,r,i,o,l,c,u){u(it.VIEWPORT,s);let h,d;if(s.length===0)h=d=null;else if(!s[0].expression.startsWith("{"))h=s[0].expression,d=null;else{let p=n.parseBinding(s[0].expression,!1,i,i.start.offset+t+s[0].start);if(p.ast instanceof Ds){if(p.ast.keys.some(v=>v.kind==="spread"))throw new Error("Spread operator are not allowed in this context");if(p.ast.keys.some(v=>v.kind==="property"&&v.key==="root"))throw new Error('The "root" option is not supported in the options parameter of the "viewport" trigger')}else throw new Error('Options parameter of the "viewport" trigger must be an object literal');let g=p.ast.keys.findIndex(v=>v.kind==="property"&&v.key==="trigger");if(g===-1)h=null,d=p.ast;else{let v=p.ast.values[g],E=(I,D)=>D!==g;if(!(v instanceof le)||!(v.receiver instanceof Ze))throw new Error('"trigger" option of the "viewport" trigger must be an identifier');h=v.name,d=new Ds(p.ast.span,p.ast.sourceSpan,p.ast.keys.filter(E),p.ast.values.filter(E))}}if(e&&h!==null)throw new Error('"viewport" hydration trigger cannot have a "trigger"');if(d){let p=Fu.findDynamicNode(d);if(p!==null)throw new Error(`Options of the "viewport" trigger must be an object literal containing only literal values, but "${p.constructor.name}" was found`)}return new _s(h,d,r,i,o,l,c)}function ub(t,e){if(e.length>1)throw new Error(`"${t}" trigger can only have zero or one parameters`)}function pb(t,e){if(t===it.VIEWPORT){if(e.length>1)throw new Error(`Hydration trigger "${t}" cannot have more than one parameter`);return}if(e.length>0)throw new Error(`Hydration trigger "${t}" cannot have parameters`)}function Wo(t,e=0){let n=!1;for(let s=e;s<t.length;s++)if(nb.test(t[s]))n=!0;else if(n)return s;return-1}function dl(t){let e=t.match(tb);if(!e)return null;let[n,s]=e;return parseFloat(n)*(s==="s"?1e3:1)}var Fu=class t extends bs{constructor(){super(...arguments);a(this,"dynamicNode",null)}static findDynamicNode(n){let s=new t;return s.visit(n),s.dynamicNode}visit(n){!(n instanceof ve)&&!(n instanceof dt)&&!(n instanceof li)&&!(n instanceof Ds)?this.dynamicNode=n:super.visit(n)}},hb=/^prefetch\s+when\s/,fb=/^prefetch\s+on\s/,db=/^hydrate\s+when\s/,mb=/^hydrate\s+on\s/,gb=/^hydrate\s+never(\s*)$/,jm=/^minimum\s/,yb=/^after\s/,vb=/^when\s/,Sb=/^on\s/;function Bu(t){return t==="placeholder"||t==="loading"||t==="error"}function Eb(t,e,n,s){let r=[],{placeholder:i,loading:o,error:l}=Tb(e,r,n),{triggers:c,prefetchTriggers:u,hydrateTriggers:h}=Ab(t,s,r),d=t.endSourceSpan,p=t.sourceSpan.end;if(e.length>0){let E=e[e.length-1];d=E.endSourceSpan,p=E.sourceSpan.end}let g=new H(t.sourceSpan.start,p);return{node:new Fn(ge(n,t.children,t.children),c,u,h,i,o,l,t.nameSpan,g,t.sourceSpan,t.startSourceSpan,d,t.i18n),errors:r}}function Tb(t,e,n){let s=null,r=null,i=null;for(let o of t)try{if(!Bu(o.name)){e.push(new G(o.startSourceSpan,`Unrecognized block "@${o.name}"`));break}switch(o.name){case"placeholder":s!==null?e.push(new G(o.startSourceSpan,"@defer block can only have one @placeholder block")):s=wb(o,n);break;case"loading":r!==null?e.push(new G(o.startSourceSpan,"@defer block can only have one @loading block")):r=xb(o,n);break;case"error":i!==null?e.push(new G(o.startSourceSpan,"@defer block can only have one @error block")):i=Cb(o,n);break}}catch(l){e.push(new G(o.startSourceSpan,l.message))}return{placeholder:s,loading:r,error:i}}function wb(t,e){let n=null;for(let s of t.parameters)if(jm.test(s.expression)){if(n!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let r=dl(s.expression.slice(Wo(s.expression)));if(r===null)throw new Error('Could not parse time value of parameter "minimum"');n=r}else throw new Error(`Unrecognized parameter in @placeholder block: "${s.expression}"`);return new Eo(ge(e,t.children,t.children),n,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function xb(t,e){let n=null,s=null;for(let r of t.parameters)if(yb.test(r.expression)){if(n!=null)throw new Error('@loading block can only have one "after" parameter');let i=dl(r.expression.slice(Wo(r.expression)));if(i===null)throw new Error('Could not parse time value of parameter "after"');n=i}else if(jm.test(r.expression)){if(s!=null)throw new Error('@loading block can only have one "minimum" parameter');let i=dl(r.expression.slice(Wo(r.expression)));if(i===null)throw new Error('Could not parse time value of parameter "minimum"');s=i}else throw new Error(`Unrecognized parameter in @loading block: "${r.expression}"`);return new To(ge(e,t.children,t.children),n,s,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Cb(t,e){if(t.parameters.length>0)throw new Error("@error block cannot have parameters");return new wo(ge(e,t.children,t.children),t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Ab(t,e,n,s){let r={},i={},o={};for(let l of t.parameters)vb.test(l.expression)?fc(l,e,r,n):Sb.test(l.expression)?dc(l,e,r,n):hb.test(l.expression)?fc(l,e,i,n):fb.test(l.expression)?dc(l,e,i,n):db.test(l.expression)?fc(l,e,o,n):mb.test(l.expression)?dc(l,e,o,n):gb.test(l.expression)?sb(l,o,n):n.push(new G(l.sourceSpan,"Unrecognized trigger"));return o.never&&Object.keys(o).length>1&&n.push(new G(t.startSourceSpan,"Cannot specify additional `hydrate` triggers if `hydrate never` is present")),{triggers:r,prefetchTriggers:i,hydrateTriggers:o}}var Ib=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,Hf=1,qf=2,Wf=3,jf=4,zf=5,Nb=6,Gi=7,cs={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},mc="*",Db=new Set(["link","style","script","ng-template","ng-container","ng-content"]),bb=new Set(["ngProjectAs","ngNonBindable"]);function _b(t,e,n){let s=new $u(e,n),r=ge(s,t,t),i=e.errors.concat(s.errors),o={nodes:r,errors:i,styleUrls:s.styleUrls,styles:s.styles,ngContentSelectors:s.ngContentSelectors};return n.collectCommentNodes&&(o.commentNodes=s.commentNodes),o}var $u=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=Aa(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 s=Wm(e);if(s.type===bt.SCRIPT)return null;if(s.type===bt.STYLE){let D=kb(e);return D!==null&&this.styles.push(D),null}else if(s.type===bt.STYLESHEET&&bD(s.hrefAttr))return this.styleUrls.push(s.hrefAttr),null;let r=ME(e.name),{attributes:i,boundEvents:o,references:l,variables:c,templateVariables:u,elementHasInlineTemplate:h,parsedProperties:d,templateParsedProperties:p,i18nAttrsMeta:g}=this.prepareAttributes(e.attrs,r),v=this.extractDirectives(e),E;s.nonBindable?E=ge(Kf,e.children).flat(1/0):E=ge(this,e.children,e.children);let I;if(s.type===bt.NG_CONTENT){let D=s.selectAttr,b=e.attrs.map(P=>this.visitAttribute(P));I=new Er(D,b,E,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n),this.ngContentSelectors.push(D)}else if(r){let D=this.categorizePropertyAttributes(e.name,d,g);I=new de(e.name,i,D.bound,o,v,[],E,l,c,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{let D=this.categorizePropertyAttributes(e.name,d,g);if(e.name==="ng-container")for(let b of D.bound)b.type===z.Attribute&&this.reportError("Attribute bindings are not supported on ng-container. Use property bindings instead.",b.sourceSpan);I=new ke(e.name,i,D.bound,o,v,E,l,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n)}return h&&(I=this.wrapInTemplate(I,p,u,g,r,n)),n&&(this.inI18nBlock=!1),I}visitAttribute(e){return new an(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(!Aa(e.i18n))throw new Error(`Invalid type "${e.i18n.constructor}" for "i18n" property of ${e.sourceSpan.toString()}. Expected a "Message"`);let n=e.i18n,s={},r={};return Object.keys(n.placeholders).forEach(i=>{let o=n.placeholders[i];if(i.startsWith($E)){let l=i.trim(),c=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);s[l]=new gr(c,o.sourceSpan)}else r[i]=this._visitTextWithInterpolation(o.text,o.sourceSpan,null)}),new Xu(s,r,e.sourceSpan,n)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new El(e.value||"",e.sourceSpan)),null}visitLetDeclaration(e,n){let s=this.bindingParser.parseBinding(e.value,!1,e.valueSpan,e.valueSpan.start.offset);return s.errors.length===0&&s.ast instanceof tt&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new Tn(e.name,s,e.sourceSpan,e.nameSpan,e.valueSpan)}visitComponent(e){let n=Aa(e.i18n);if(n&&(this.inI18nBlock&&this.reportError("Cannot mark a component as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0),e.tagName!==null&&Db.has(e.tagName))return this.reportError(`Tag name "${e.tagName}" cannot be used as a component tag`,e.startSourceSpan),null;let{attributes:s,boundEvents:r,references:i,templateVariables:o,elementHasInlineTemplate:l,parsedProperties:c,templateParsedProperties:u,i18nAttrsMeta:h}=this.prepareAttributes(e.attrs,!1);this.validateSelectorlessReferences(i);let d=this.extractDirectives(e),p;e.attrs.find(E=>E.name==="ngNonBindable")?p=ge(Kf,e.children).flat(1/0):p=ge(this,e.children,e.children);let g=this.categorizePropertyAttributes(e.tagName,c,h),v=new _n(e.componentName,e.tagName,e.fullName,s,g.bound,r,d,p,i,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return l&&(v=this.wrapInTemplate(v,u,o,h,!1,n)),n&&(this.inI18nBlock=!1),v}visitDirective(){return null}visitBlockParameter(){return null}visitBlock(e,n){let s=Array.isArray(n)?n.indexOf(e):-1;if(s===-1)throw new Error("Visitor invoked incorrectly. Expecting visitBlock to be invoked siblings array as its context");if(this.processedNodes.has(e))return null;let r=null;switch(e.name){case"defer":r=Eb(e,this.findConnectedBlocks(s,n,Bu),this,this.bindingParser);break;case"switch":r=KD(e,this,this.bindingParser);break;case"for":r=zD(e,this.findConnectedBlocks(s,n,$f),this,this.bindingParser);break;case"if":r=jD(e,this.findConnectedBlocks(s,n,Uf),this,this.bindingParser);break;default:let i;Bu(e.name)?(i=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):$f(e.name)?(i=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):Uf(e.name)?(i=`@${e.name} block can only be used after an @if or @else if block.`,this.processedNodes.add(e)):i=`Unrecognized block @${e.name}.`,r={node:new Ba(e.name,e.sourceSpan,e.nameSpan),errors:[new G(e.sourceSpan,i)]};break}return this.errors.push(...r.errors),r.node}findConnectedBlocks(e,n,s){let r=[];for(let i=e+1;i<n.length;i++){let o=n[i];if(!(o instanceof Bo)){if(o instanceof Dr&&o.value.trim().length===0){this.processedNodes.add(o);continue}if(!(o instanceof Qt)||!s(o.name))break;r.push(o),this.processedNodes.add(o)}}return r}categorizePropertyAttributes(e,n,s){let r=[],i=[];return n.forEach(o=>{let l=s[o.name];if(o.isLiteral)i.push(new an(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,l));else{let c=this.bindingParser.createBoundElementProperty(e,o,!0,!1);r.push(Pt.fromBoundElementProperty(c,l))}}),{bound:r,literal:i}}prepareAttributes(e,n){let s=[],r=[],i=[],o=[],l=[],c={},u=[],h=[],d=!1;for(let p of e){let g=!1,v=Xf(p.name),E=!1;if(p.i18n&&(c[p.name]=p.i18n),v.startsWith(mc)){d&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",p.sourceSpan),E=!0,d=!0;let I=p.value,D=v.substring(mc.length),b=[],P=p.valueSpan?p.valueSpan.fullStart.offset:p.sourceSpan.fullStart.offset+p.name.length;this.bindingParser.parseInlineTemplateBinding(D,I,p.sourceSpan,P,[],u,b,!0),h.push(...b.map(L=>new Ht(L.name,L.value,L.sourceSpan,L.keySpan,L.valueSpan)))}else g=this.parseAttribute(n,p,[],s,r,i,o);!g&&!E&&l.push(this.visitAttribute(p))}return{attributes:l,boundEvents:r,references:o,variables:i,templateVariables:h,elementHasInlineTemplate:d,parsedProperties:s,templateParsedProperties:u,i18nAttrsMeta:c}}parseAttribute(e,n,s,r,i,o,l){var D;let c=Xf(n.name),u=n.value,h=n.sourceSpan,d=n.valueSpan?n.valueSpan.fullStart.offset:h.fullStart.offset;function p(b,P,L){let ne=n.name.length-c.length,re=b.start.moveBy(P.length+ne),Ge=re.moveBy(L.length);return new H(re,Ge,re,L)}let g=c.match(Ib);if(g){if(g[Hf]!=null){let b=g[Gi],P=p(h,g[Hf],b);this.bindingParser.parsePropertyBinding(b,u,!1,!1,h,d,n.valueSpan,s,r,P)}else if(g[qf])if(e){let b=g[Gi],P=p(h,g[qf],b);this.parseVariable(b,u,h,P,n.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',h);else if(g[Wf]){let b=g[Gi],P=p(h,g[Wf],b);this.parseReference(b,u,h,P,n.valueSpan,l)}else if(g[jf]){let b=[],P=g[Gi],L=p(h,g[jf],P);this.bindingParser.parseEvent(P,u,!1,h,n.valueSpan||h,s,b,L),gc(b,i)}else if(g[zf]){let b=g[Gi],P=p(h,g[zf],b);this.bindingParser.parsePropertyBinding(b,u,!1,!0,h,d,n.valueSpan,s,r,P),this.parseAssignmentEvent(b,u,h,n.valueSpan,s,i,P,d)}else if(g[Nb]){let b=p(h,"",c);this.bindingParser.parseLiteralAttr(c,u,h,d,n.valueSpan,s,r,b)}return!0}let v=null;if(c.startsWith(cs.BANANA_BOX.start)?v=cs.BANANA_BOX:c.startsWith(cs.PROPERTY.start)?v=cs.PROPERTY:c.startsWith(cs.EVENT.start)&&(v=cs.EVENT),v!==null&&c.endsWith(v.end)&&c.length>v.start.length+v.end.length){let b=c.substring(v.start.length,c.length-v.end.length),P=p(h,v.start,b);if(v.start===cs.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(b,u,!1,!0,h,d,n.valueSpan,s,r,P),this.parseAssignmentEvent(b,u,h,n.valueSpan,s,i,P,d);else if(v.start===cs.PROPERTY.start)this.bindingParser.parsePropertyBinding(b,u,!1,!1,h,d,n.valueSpan,s,r,P);else{let L=[];this.bindingParser.parseEvent(b,u,!1,h,n.valueSpan||h,s,L,P),gc(L,i)}return!0}let E=p(h,"",c);return this.bindingParser.parsePropertyInterpolation(c,u,h,n.valueSpan,s,r,E,(D=n.valueTokens)!=null?D:null)}extractDirectives(e){let n=e instanceof ht?e.tagName:e.name,s=[],r=new Set;for(let i of e.directives){let o=!1;for(let g of i.attrs)g.name.startsWith(mc)?(o=!0,this.reportError(`Shorthand template syntax "${g.name}" is not supported inside a directive context`,g.sourceSpan)):bb.has(g.name)&&(o=!0,this.reportError(`Attribute "${g.name}" is not supported in a directive context`,g.sourceSpan));if(!o&&r.has(i.name)&&(o=!0,this.reportError(`Cannot apply directive "${i.name}" multiple times on the same element`,i.sourceSpan)),o)continue;let{attributes:l,parsedProperties:c,boundEvents:u,references:h,i18nAttrsMeta:d}=this.prepareAttributes(i.attrs,!1);this.validateSelectorlessReferences(h);let{bound:p}=this.categorizePropertyAttributes(n,c,d);for(let g of p)g.type!==z.Property&&g.type!==z.TwoWay&&(o=!0,this.reportError("Binding is not supported in a directive context",g.sourceSpan));o||(r.add(i.name),s.push(new Ei(i.name,l,p,u,h,i.sourceSpan,i.startSourceSpan,i.endSourceSpan,void 0)))}return s}filterAnimationAttributes(e){return e.filter(n=>!n.name.startsWith("animate."))}filterAnimationInputs(e){return e.filter(n=>n.type!==z.Animation)}wrapInTemplate(e,n,s,r,i,o){let l=this.categorizePropertyAttributes("ng-template",n,r),c=[];l.literal.forEach(p=>c.push(p)),l.bound.forEach(p=>c.push(p));let u={attributes:[],inputs:[],outputs:[]};(e instanceof ke||e instanceof _n)&&(u.attributes.push(...this.filterAnimationAttributes(e.attributes)),u.inputs.push(...this.filterAnimationInputs(e.inputs)),u.outputs.push(...e.outputs));let h=i&&o?void 0:e.i18n,d;return e instanceof _n?d=e.tagName:e instanceof de?d=null:d=e.name,new de(d,u.attributes,u.inputs,u.outputs,[],c,[e],[],s,!1,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,h)}_visitTextWithInterpolation(e,n,s,r){let i=xm(e),o=this.bindingParser.parseInterpolation(i,n,s);return o?new gr(o,n,r):new Wn(i,n)}parseVariable(e,n,s,r,i,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',s):e.length===0&&this.reportError("Variable does not have a name",s),o.push(new Ht(e,n,s,r,i))}parseReference(e,n,s,r,i,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',s):e.length===0?this.reportError("Reference does not have a name",s):o.some(l=>l.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,s),o.push(new Zn(e,n,s,r,i))}parseAssignmentEvent(e,n,s,r,i,o,l,c){let u=[];this.bindingParser.parseEvent(`${e}Change`,n,!0,s,r||s,i,u,l),gc(u,o)}validateSelectorlessReferences(e){if(e.length===0)return;let n=new Set;for(let s of e)s.value.length>0?this.reportError("Cannot specify a value for a local reference in this context",s.valueSpan||s.sourceSpan):n.has(s.name)?this.reportError("Duplicate reference names are not allowed",s.sourceSpan):n.add(s.name)}reportError(e,n,s=zn.ERROR){this.errors.push(new G(n,e,s))}},Uu=class{visitElement(e){let n=Wm(e);if(n.type===bt.SCRIPT||n.type===bt.STYLE||n.type===bt.STYLESHEET)return null;let s=ge(this,e.children,null);return new ke(e.name,ge(this,e.attrs),[],[],[],s,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid)}visitComment(e){return null}visitAttribute(e){return new an(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new Wn(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,n){let s=[new Wn(e.startSourceSpan.toString(),e.startSourceSpan),...ge(this,e.children)];return e.endSourceSpan!==null&&s.push(new Wn(e.endSourceSpan.toString(),e.endSourceSpan)),s}visitBlockParameter(e,n){return null}visitLetDeclaration(e,n){return new Wn(`@let ${e.name} = ${e.value};`,e.sourceSpan)}visitComponent(e,n){let s=ge(this,e.children,null);return new ke(e.fullName,ge(this,e.attrs),[],[],[],s,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,!1)}visitDirective(e,n){return null}},Kf=new Uu;function Xf(t){return/^data-/i.test(t)?t.substring(5):t}function gc(t,e){e.push(...t.map(n=>Sn.fromParsedEvent(n)))}function kb(t){return t.children.length!==1||!(t.children[0]instanceof Dr)?null:t.children[0].value}var Rb=[" ",`
|
|
36
|
+
`,"\r"," "];function zm(t,e,n={}){var L,ne,re,Ge;let{preserveWhitespaces:s,enableI18nLegacyMessageIdFormat:r}=n,i=(L=n.enableSelectorless)!=null?L:!1,o=br(i),c=new fl().parse(t,e,me(x({leadingTriviaChars:Rb},n),{tokenizeExpansionForms:!0,tokenizeBlocks:(ne=n.enableBlockSyntax)!=null?ne:!0,tokenizeLet:(re=n.enableLetSyntax)!=null?re:!0,selectorlessEnabled:i}));if(!n.alwaysAttemptHtmlToR3AstConversion&&c.errors&&c.errors.length>0){let Ne={preserveWhitespaces:s,errors:c.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(Ne.commentNodes=[]),Ne}let u=c.rootNodes,h=!((Ge=n.preserveSignificantWhitespace)==null||Ge),d=new ll(!s,r,n.preserveSignificantWhitespace,h),p=d.visitAllWithErrors(u);if(!n.alwaysAttemptHtmlToR3AstConversion&&p.errors&&p.errors.length>0){let Ne={preserveWhitespaces:s,errors:p.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(Ne.commentNodes=[]),Ne}u=p.rootNodes,s||(u=ge(new ol(!0,void 0,!1),u),d.hasI18nMeta&&(u=ge(new ll(!1,void 0,!0,h),u)));let{nodes:g,errors:v,styleUrls:E,styles:I,ngContentSelectors:D,commentNodes:b}=_b(u,o,{collectCommentNodes:!!n.collectCommentNodes});v.push(...c.errors,...p.errors);let P={preserveWhitespaces:s,errors:v.length>0?v:null,nodes:g,styleUrls:E,styles:I,ngContentSelectors:D};return n.collectCommentNodes&&(P.commentNodes=b),P}var Pb=new En;function br(t=!1){return new Ru(new al(new Vo,t),Pb,[])}var Km="%COMP%",Lb=`_nghost-${Km}`,Mb=`_ngcontent-${Km}`;function Xm(t,e,n){let s=new Ms,r=Ku(t.selector);return s.set("type",t.type.value),r.length>0&&s.set("selectors",Wr(r)),t.queries.length>0&&s.set("contentQueries",CD(t.queries,e,t.name)),t.viewQueries.length&&s.set("viewQuery",xD(t.viewQueries,e,t.name)),s.set("hostBindings",Vb(t.host,t.typeSourceSpan,n,e,t.selector||"",t.name,s)),s.set("inputs",Ih(t.inputs,!0)),s.set("outputs",Ih(t.outputs)),t.exportAs!==null&&s.set("exportAs",ae(t.exportAs.map(i=>S(i)))),t.isStandalone===!1&&s.set("standalone",S(!1)),t.isSignal&&s.set("signals",S(!0)),s}function Ym(t,e){var i,o;let n=[],s=e.providers,r=e.viewProviders;if(s||r){let l=[s||new kt([])];r&&l.push(r),n.push(O(m.ProvidersFeature).callFn(l))}if((i=e.hostDirectives)!=null&&i.length&&n.push(O(m.HostDirectivesFeature).callFn([qb(e.hostDirectives)])),e.usesInheritance&&n.push(O(m.InheritDefinitionFeature)),e.lifecycle.usesOnChanges&&n.push(O(m.NgOnChangesFeature)),e.controlCreate!==null&&n.push(O(m.ControlFeature).callFn([S(e.controlCreate.passThroughInput)])),"externalStyles"in e&&((o=e.externalStyles)!=null&&o.length)){let l=e.externalStyles.map(c=>S(c));n.push(O(m.ExternalStylesFeature).callFn([ae(l)]))}n.length&&t.set("features",ae(n))}function Qm(t,e,n){let s=Xm(t,e,n);Ym(s,t);let r=O(m.defineDirective).callFn([s.toLiteralMap()],void 0,!0),i=Ub(t);return{expression:r,type:i,statements:[]}}function Jm(t,e,n){var v;let s=Xm(t,e,n);Ym(s,t);let r=t.selector&&fn.parse(t.selector),i=r&&r[0];if(i){let E=i.getAttrs();E.length&&s.set("attrs",e.getConstLiteral(ae(E.map(I=>I!=null?S(I):S(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 Ve(E,t.defer.dependenciesFn,void 0,Ue.Final)),l=J(E)}let c=t.isStandalone&&!t.hasDirectiveDependencies?ft.DomOnly:ft.Full,u=JN(t.name,t.template.nodes,e,c,t.relativeContextFilePath,t.i18nUseExternalIds,t.defer,l,t.relativeTemplatePath,ED());Mm(u,_.Tmpl);let h=KN(u,e);if(u.contentSelectors!==null&&s.set("ngContentSelectors",u.contentSelectors),s.set("decls",S(u.root.decls)),s.set("vars",S(u.root.vars)),u.consts.length>0&&(u.constsInitializers.length>0?s.set("consts",Rt([],[...u.constsInitializers,new be(ae(u.consts))])):s.set("consts",ae(u.consts))),s.set("template",h),t.declarationListEmitMode!==3&&t.declarations.length>0)s.set("dependencies",Fb(ae(t.declarations.map(E=>E.type)),t.declarationListEmitMode));else if(t.declarationListEmitMode===3){let E=[t.type.value];t.rawImports&&E.push(t.rawImports),s.set("dependencies",O(m.getComponentDepsFactory).callFn(E))}t.encapsulation===null&&(t.encapsulation=An.Emulated);let d=!!((v=t.externalStyles)!=null&&v.length);if(t.styles&&t.styles.length){let I=(t.encapsulation==An.Emulated?Hb(t.styles,Mb,Lb):t.styles).reduce((D,b)=>(b.trim().length>0&&D.push(e.getConstLiteral(S(b))),D),[]);I.length>0&&(d=!0,s.set("styles",ae(I)))}!d&&t.encapsulation===An.Emulated&&(t.encapsulation=An.None),t.encapsulation!==An.Emulated&&s.set("encapsulation",S(t.encapsulation)),t.animations!==null&&s.set("data",xt([{key:"animation",value:t.animations,quoted:!1}])),t.changeDetection!==null&&(typeof t.changeDetection=="number"&&t.changeDetection!==Ia.Default?s.set("changeDetection",S(t.changeDetection)):typeof t.changeDetection=="object"&&s.set("changeDetection",t.changeDetection));let p=O(m.defineComponent).callFn([s.toLiteralMap()],void 0,!0),g=Ob(t);return{expression:p,type:g,statements:[]}}function Ob(t){let e=Zm(t);return e.push(Gu(t.template.ngContentSelectors)),e.push(je(S(t.isStandalone))),e.push(ng(t)),t.isSignal&&e.push(je(S(t.isSignal))),je(O(m.ComponentDeclaration,e))}function Fb(t,e){switch(e){case 0:return t;case 1:return Rt([],t);case 2:let n=t.prop("map").callFn([O(m.resolveForwardRef)]);return Rt([],n);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function Bb(t){return je(S(t))}function Vu(t){let e=Object.keys(t).map(n=>{let s=Array.isArray(t[n])?t[n][0]:t[n];return{key:n,value:S(s),quoted:!0}});return xt(e)}function Gu(t){return t.length>0?je(ae(t.map(e=>S(e)))):mn}function Zm(t){let e=t.selector!==null?t.selector.replace(/\n/g,""):null;return[Sl(t.type.type,t.typeArgumentCount),e!==null?Bb(e):mn,t.exportAs!==null?Gu(t.exportAs):mn,je($b(t)),je(Vu(t.outputs)),Gu(t.queries.map(n=>n.propertyName))]}function $b(t){return xt(Object.keys(t.inputs).map(e=>{let n=t.inputs[e],s=[{key:"alias",value:S(n.bindingPropertyName),quoted:!0},{key:"required",value:S(n.required),quoted:!0}];return n.isSignal&&s.push({key:"isSignal",value:S(n.isSignal),quoted:!0}),{key:e,value:xt(s),quoted:!0}}))}function Ub(t){let e=Zm(t);return e.push(mn),e.push(je(S(t.isStandalone))),e.push(ng(t)),t.isSignal&&e.push(je(S(t.isSignal))),je(O(m.DirectiveDeclaration,e))}function Vb(t,e,n,s,r,i,o){let l=n.createBoundHostProperties(t.properties,e),c=n.createDirectiveHostEventAsts(t.listeners,e);t.specialAttributes.styleAttr&&(t.attributes.style=S(t.specialAttributes.styleAttr)),t.specialAttributes.classAttr&&(t.attributes.class=S(t.specialAttributes.classAttr));let u=ZN({componentName:i,componentSelector:r,properties:l,events:c,attributes:t.attributes},n,s);Mm(u,_.Host),o.set("hostAttrs",u.root.attributes);let h=u.root.vars;return h!==null&&h>0&&o.set("hostVars",S(h)),XN(u)}var Gb=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function eg(t){let e={},n={},s={},r={};for(let i of Object.keys(t)){let o=t[i],l=i.match(Gb);if(l===null)switch(i){case"class":if(typeof o!="string")throw new Error("Class binding must be string");r.classAttr=o;break;case"style":if(typeof o!="string")throw new Error("Style binding must be string");r.styleAttr=o;break;default:typeof o=="string"?e[i]=S(o):e[i]=o}else if(l[1]!=null){if(typeof o!="string")throw new Error("Property binding must be string");s[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:s,specialAttributes:r}}function tg(t,e){let n=br();return n.createDirectiveHostEventAsts(t.listeners,e),n.createBoundHostProperties(t.properties,e),n.errors}function Hb(t,e,n){let s=new eu;return t.map(r=>s.shimCssText(r,e,n))}function ng(t){var e;return(e=t.hostDirectives)!=null&&e.length?je(ae(t.hostDirectives.map(n=>xt([{key:"directive",value:Si(n.directive.type),quoted:!1},{key:"inputs",value:Vu(n.inputs||{}),quoted:!1},{key:"outputs",value:Vu(n.outputs||{}),quoted:!1}])))):mn}function qb(t){let e=[],n=!1;for(let s of t){if(!s.inputs&&!s.outputs)e.push(s.directive.type);else{let r=[{key:"directive",value:s.directive.type,quoted:!1}];if(s.inputs){let i=Yf(s.inputs);i&&r.push({key:"inputs",value:i,quoted:!1})}if(s.outputs){let i=Yf(s.outputs);i&&r.push({key:"outputs",value:i,quoted:!1})}e.push(xt(r))}s.isForwardReference&&(n=!0)}return n?new bn([],[new be(ae(e))]):ae(e)}function Yf(t){let e=[];for(let n in t)t.hasOwnProperty(n)&&e.push(S(n),S(t[n]));return e.length>0?ae(e):null}var Hs=class extends bs{visit(e){e instanceof ve?this.visit(e.ast):e.visit(this)}visitElement(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitTemplate(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.templateAttrs),this.visitAllTemplateNodes(e.variables),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitContent(e){this.visitAllTemplateNodes(e.children)}visitBoundAttribute(e){this.visit(e.value)}visitBoundEvent(e){this.visit(e.handler)}visitBoundText(e){this.visit(e.value)}visitIcu(e){Object.keys(e.vars).forEach(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 Fa?this.visit(e.value):e instanceof _s&&e.options!==null&&this.visit(e.options)}visitDeferredBlockPlaceholder(e){this.visitAllTemplateNodes(e.children)}visitDeferredBlockError(e){this.visitAllTemplateNodes(e.children)}visitDeferredBlockLoading(e){this.visitAllTemplateNodes(e.children)}visitSwitchBlock(e){this.visit(e.expression),this.visitAllTemplateNodes(e.groups)}visitSwitchBlockCase(e){e.expression&&this.visit(e.expression)}visitSwitchBlockCaseGroup(e){this.visitAllTemplateNodes(e.cases),this.visitAllTemplateNodes(e.children)}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){var n;e.item.visit(this),this.visitAllTemplateNodes(e.contextVariables),this.visit(e.expression),this.visitAllTemplateNodes(e.children),(n=e.empty)==null||n.visit(this)}visitForLoopBlockEmpty(e){this.visitAllTemplateNodes(e.children)}visitIfBlock(e){this.visitAllTemplateNodes(e.branches)}visitIfBlockBranch(e){var n;e.expression&&this.visit(e.expression),(n=e.expressionAlias)==null||n.visit(this),this.visitAllTemplateNodes(e.children)}visitLetDeclaration(e){this.visit(e.value)}visitComponent(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitDirective(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.references)}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitText(e){}visitUnknownBlock(e){}visitAllTemplateNodes(e){for(let n of e)this.visit(n)}};var jo=class{constructor(e){a(this,"directiveMatcher");this.directiveMatcher=e}bind(e){if(!e.template&&!e.host)throw new Error("Empty bound targets are not supported");let n=new Map,s=[],r=new Set,i=new Map,o=new Map,l=new Map,c=new Map,u=new Map,h=new Map,d=new Set,p=new Set,g=[];if(e.template){let v=ml.apply(e.template);Wb(v,l),Hu.apply(e.template,this.directiveMatcher,n,s,r,i,o),gl.applyWithScope(e.template,v,c,u,h,d,p,g)}return e.host&&(n.set(e.host.node,e.host.directives),gl.applyWithScope(e.host.node,ml.apply(e.host.node),c,u,h,d,p,g)),new qu(e,n,s,r,i,o,c,u,h,l,d,p,g)}},ml=class t{constructor(e,n){a(this,"parentScope");a(this,"rootNode");a(this,"namedEntities",new Map);a(this,"elementLikeInScope",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 Fn}static newRootScope(){return new t(null,null)}static apply(e){let n=t.newRootScope();return n.ingest(e),n}ingest(e){e instanceof de?(e.variables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof vs?(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 xo||e instanceof Co||e instanceof Fn||e instanceof wo||e instanceof Eo||e instanceof To||e instanceof Er?e.children.forEach(n=>n.visit(this)):e instanceof $n||e.forEach(n=>n.visit(this))}visitElement(e){this.visitElementLike(e)}visitTemplate(e){e.directives.forEach(n=>n.visit(this)),e.references.forEach(n=>this.visitReference(n)),this.ingestScopedNode(e)}visitVariable(e){this.maybeDeclare(e)}visitReference(e){this.maybeDeclare(e)}visitDeferredBlock(e){var n,s,r;this.ingestScopedNode(e),(n=e.placeholder)==null||n.visit(this),(s=e.loading)==null||s.visit(this),(r=e.error)==null||r.visit(this)}visitDeferredBlockPlaceholder(e){this.ingestScopedNode(e)}visitDeferredBlockError(e){this.ingestScopedNode(e)}visitDeferredBlockLoading(e){this.ingestScopedNode(e)}visitSwitchBlock(e){e.groups.forEach(n=>n.visit(this))}visitSwitchBlockCase(e){}visitSwitchBlockCaseGroup(e){this.ingestScopedNode(e)}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){var n;this.ingestScopedNode(e),(n=e.empty)==null||n.visit(this)}visitForLoopBlockEmpty(e){this.ingestScopedNode(e)}visitIfBlock(e){e.branches.forEach(n=>n.visit(this))}visitIfBlockBranch(e){this.ingestScopedNode(e)}visitContent(e){this.ingestScopedNode(e)}visitLetDeclaration(e){this.maybeDeclare(e)}visitComponent(e){this.visitElementLike(e)}visitDirective(e){e.references.forEach(n=>this.visitReference(n))}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundText(e){}visitText(e){}visitTextAttribute(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}visitElementLike(e){e.directives.forEach(n=>n.visit(this)),e.references.forEach(n=>this.visitReference(n)),e.children.forEach(n=>n.visit(this)),this.elementLikeInScope.add(e)}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)}},Hu=class t{constructor(e,n,s,r,i,o){a(this,"directiveMatcher");a(this,"directives");a(this,"eagerDirectives");a(this,"missingDirectives");a(this,"bindings");a(this,"references");a(this,"isInDeferBlock",!1);this.directiveMatcher=e,this.directives=n,this.eagerDirectives=s,this.missingDirectives=r,this.bindings=i,this.references=o}static apply(e,n,s,r,i,o,l){new t(n,s,r,i,o,l).ingest(e)}ingest(e){e.forEach(n=>n.visit(this))}visitElement(e){this.visitElementOrTemplate(e)}visitTemplate(e){this.visitElementOrTemplate(e)}visitDeferredBlock(e){var s,r,i;let n=this.isInDeferBlock;this.isInDeferBlock=!0,e.children.forEach(o=>o.visit(this)),this.isInDeferBlock=n,(s=e.placeholder)==null||s.visit(this),(r=e.loading)==null||r.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.groups.forEach(n=>n.visit(this))}visitSwitchBlockCase(e){}visitSwitchBlockCaseGroup(e){e.children.forEach(n=>n.visit(this))}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){var n;e.item.visit(this),e.contextVariables.forEach(s=>s.visit(this)),e.children.forEach(s=>s.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(s=>s.visit(this))}visitContent(e){e.children.forEach(n=>n.visit(this))}visitComponent(e){if(this.directiveMatcher instanceof ei){let n=this.directiveMatcher.match(e.componentName);n.length>0?this.trackSelectorlessMatchesAndDirectives(e,n):this.missingDirectives.add(e.componentName)}e.directives.forEach(n=>n.visit(this)),e.children.forEach(n=>n.visit(this))}visitDirective(e){if(this.directiveMatcher instanceof ei){let n=this.directiveMatcher.match(e.name);n.length>0?this.trackSelectorlessMatchesAndDirectives(e,n):this.missingDirectives.add(e.name)}}visitElementOrTemplate(e){if(this.directiveMatcher instanceof ur){let n=[],s=$d(e);this.directiveMatcher.match(s,(r,i)=>n.push(...i)),this.trackSelectorBasedBindingsAndDirectives(e,n)}else e.references.forEach(n=>{n.value.trim()===""&&this.references.set(n,e)});e.directives.forEach(n=>n.visit(this)),e.children.forEach(n=>n.visit(this))}trackMatchedDirectives(e,n){n.length>0&&(this.directives.set(e,n),this.isInDeferBlock||this.eagerDirectives.push(...n))}trackSelectorlessMatchesAndDirectives(e,n){if(n.length===0)return;this.trackMatchedDirectives(e,n);let s=(r,i,o)=>{r[o].hasBindingPropertyName(i.name)&&this.bindings.set(i,r)};for(let r of n)e.inputs.forEach(i=>s(r,i,"inputs")),e.attributes.forEach(i=>s(r,i,"inputs")),e.outputs.forEach(i=>s(r,i,"outputs"));e.references.forEach(r=>this.references.set(r,{directive:n[0],node:e}))}trackSelectorBasedBindingsAndDirectives(e,n){this.trackMatchedDirectives(e,n),e.references.forEach(r=>{let i=null;if(r.value.trim()==="")i=n.find(o=>o.isComponent)||null;else if(i=n.find(o=>o.exportAs!==null&&o.exportAs.some(l=>l===r.value))||null,i===null)return;i!==null?this.references.set(r,{directive:i,node:e}):this.references.set(r,e)});let s=(r,i)=>{let o=n.find(c=>c[i].hasBindingPropertyName(r.name)),l=o!==void 0?o:e;this.bindings.set(r,l)};e.inputs.forEach(r=>s(r,"inputs")),e.attributes.forEach(r=>s(r,"inputs")),e instanceof de&&e.templateAttrs.forEach(r=>s(r,"inputs")),e.outputs.forEach(r=>s(r,"outputs"))}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundAttributeOrEvent(e){}visitText(e){}visitBoundText(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}visitLetDeclaration(e){}},gl=class t extends Hs{constructor(n,s,r,i,o,l,c,u,h){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",n=>n.visit(this));this.bindings=n,this.symbols=s,this.usedPipes=r,this.eagerPipes=i,this.deferBlocks=o,this.nestingLevel=l,this.scope=c,this.rootNode=u,this.level=h}static applyWithScope(n,s,r,i,o,l,c,u){let h=n instanceof de?n:null;new t(r,i,l,c,u,o,s,h,0).ingest(n)}ingest(n){if(n instanceof de)n.variables.forEach(this.visitNode),n.children.forEach(this.visitNode),this.nestingLevel.set(n,this.level);else if(n instanceof vs)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(s=>this.visitNode(s)),n.trackBy.visit(this),n.children.forEach(this.visitNode),this.nestingLevel.set(n,this.level);else if(n instanceof Fn){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(s=>s.visit(this)),this.nestingLevel.set(n,this.level)}else n instanceof xo||n instanceof Co||n instanceof wo||n instanceof Eo||n instanceof To||n instanceof Er?(n.children.forEach(s=>s.visit(this)),this.nestingLevel.set(n,this.level)):n instanceof $n?this.nestingLevel.set(n,0):n.forEach(this.visitNode)}visitTemplate(n){n.inputs.forEach(this.visitNode),n.outputs.forEach(this.visitNode),n.directives.forEach(this.visitNode),n.templateAttrs.forEach(this.visitNode),n.references.forEach(this.visitNode),this.ingestScopedNode(n)}visitVariable(n){this.rootNode!==null&&this.symbols.set(n,this.rootNode)}visitReference(n){this.rootNode!==null&&this.symbols.set(n,this.rootNode)}visitDeferredBlock(n){var s,r,i,o;this.ingestScopedNode(n),(s=n.triggers.when)==null||s.value.visit(this),(r=n.prefetchTriggers.when)==null||r.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)}visitSwitchBlockCase(n){var s;(s=n.expression)==null||s.visit(this)}visitSwitchBlockCaseGroup(n){n.cases.forEach(s=>s.visit(this)),this.ingestScopedNode(n)}visitSwitchExhaustiveCheck(n){}visitForLoopBlock(n){var s;n.expression.visit(this),this.ingestScopedNode(n),(s=n.empty)==null||s.visit(this)}visitForLoopBlockEmpty(n){this.ingestScopedNode(n)}visitIfBlockBranch(n){var s;(s=n.expression)==null||s.visit(this),this.ingestScopedNode(n)}visitContent(n){this.ingestScopedNode(n)}visitLetDeclaration(n){super.visitLetDeclaration(n),this.rootNode!==null&&this.symbols.set(n,this.rootNode)}visitPipe(n,s){return this.usedPipes.add(n.name),this.scope.isDeferred||this.eagerPipes.add(n.name),super.visitPipe(n,s)}visitPropertyRead(n,s){return this.maybeMap(n,n.name),super.visitPropertyRead(n,s)}visitSafePropertyRead(n,s){return this.maybeMap(n,n.name),super.visitSafePropertyRead(n,s)}ingestScopedNode(n){let s=this.scope.getChildScope(n);new t(this.bindings,this.symbols,this.usedPipes,this.eagerPipes,this.deferBlocks,this.nestingLevel,s,n,this.level+1).ingest(n)}maybeMap(n,s){if(!(n.receiver instanceof Ze))return;let r=this.scope.lookup(s);r!==null&&this.bindings.set(n,r)}},qu=class{constructor(e,n,s,r,i,o,l,c,u,h,d,p,g){a(this,"target");a(this,"directives");a(this,"eagerDirectives");a(this,"missingDirectives");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=s,this.missingDirectives=r,this.bindings=i,this.references=o,this.exprTargets=l,this.symbols=c,this.nestingLevel=u,this.scopedNodeEntities=h,this.usedPipes=d,this.eagerPipes=p,this.deferredBlocks=g.map(v=>v[0]),this.deferredScopes=new Map(g)}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(s=>e.add(s))),Array.from(e.values())}getEagerlyUsedDirectives(){let e=new Set(this.eagerDirectives);return Array.from(e.values())}getUsedPipes(){return Array.from(this.usedPipes)}getEagerlyUsedPipes(){return Array.from(this.eagerPipes)}getDeferBlocks(){return this.deferredBlocks}getDeferredTriggerTarget(e,n){if(!(n instanceof Sr)&&!(n instanceof _s)&&!(n instanceof yr))return null;let s=n.reference;if(s===null){let i=null;if(e.placeholder!==null){for(let o of e.placeholder.children)if(!(o instanceof El)){if(i!==null)return null;o instanceof ke&&(i=o)}}return i}let r=this.findEntityInScope(e,s);if(r instanceof Zn&&this.getDefinitionNodeOfSymbol(r)!==e){let i=this.getReferenceTarget(r);if(i!==null)return this.referenceTargetToElement(i)}if(e.placeholder!==null){let i=this.findEntityInScope(e.placeholder,s),o=i instanceof Zn?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 s=[this.deferredScopes.get(n)];for(;s.length>0;){let r=s.pop();if(r.elementLikeInScope.has(e))return!0;s.push(...r.childScopes.values())}}return!1}referencedDirectiveExists(e){return!this.missingDirectives.has(e)}findEntityInScope(e,n){let s=this.getEntitiesInScope(e);for(let r of s)if(r.name===n)return r;return null}referenceTargetToElement(e){return e instanceof ke?e:e instanceof de||e.node instanceof _n||e.node instanceof Ei||e.node instanceof $n?null:this.referenceTargetToElement(e.node)}};function Wb(t,e){let n=new Map;function s(i){if(n.has(i.rootNode))return n.get(i.rootNode);let o=i.namedEntities,l;return i.parentScope!==null?l=new Map([...s(i.parentScope),...o]):l=new Map(o),n.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);s(i)}for(let[i,o]of n)e.set(i,new Set(o.values()))}var Wu=class{},ju=class{constructor(e=new Xc){a(this,"jitEvaluator");a(this,"FactoryTarget",gt);a(this,"ResourceLoader",Wu);a(this,"elementSchemaRegistry",new En);this.jitEvaluator=e}compilePipe(e,n,s){let r={name:s.name,type:qe(s.type),typeArgumentCount:0,pipeName:s.pipeName,pure:s.pure,isStandalone:s.isStandalone},i=Zc(r);return this.jitExpression(i.expression,e,n,[])}compilePipeDeclaration(e,n,s){let r=l_(s),i=Zc(r);return this.jitExpression(i.expression,e,n,[])}compileInjectable(e,n,s){var o;let{expression:r,statements:i}=Wc({name:s.name,type:qe(s.type),typeArgumentCount:s.typeArgumentCount,providedIn:nd(s.providedIn),useClass:Ur(s,"useClass"),useFactory:td(s,"useFactory"),useValue:Ur(s,"useValue"),useExisting:Ur(s,"useExisting"),deps:(o=s.deps)==null?void 0:o.map(og)},!0);return this.jitExpression(r,e,n,i)}compileInjectableDeclaration(e,n,s){var o;let{expression:r,statements:i}=Wc({name:s.type.name,type:qe(s.type),typeArgumentCount:0,providedIn:nd(s.providedIn),useClass:Ur(s,"useClass"),useFactory:td(s,"useFactory"),useValue:Ur(s,"useValue"),useExisting:Ur(s,"useExisting"),deps:(o=s.deps)==null?void 0:o.map(sd)},!0);return this.jitExpression(r,e,n,i)}compileInjector(e,n,s){let r={type:qe(s.type),providers:s.providers&&s.providers.length>0?new W(s.providers):null,imports:s.imports.map(o=>new W(o))},i=Qc(r);return this.jitExpression(i.expression,e,n,[])}compileInjectorDeclaration(e,n,s){let r=c_(s),i=Qc(r);return this.jitExpression(i.expression,e,n,[])}compileNgModule(e,n,s){let r={kind:Dn.Global,type:qe(s.type),bootstrap:s.bootstrap.map(qe),declarations:s.declarations.map(qe),publicDeclarationTypes:null,imports:s.imports.map(qe),includeImportTypes:!0,exports:s.exports.map(qe),selectorScopeMode:hi.Inline,containsForwardDecls:!1,schemas:s.schemas?s.schemas.map(qe):null,id:s.id?new W(s.id):null},i=Zd(r);return this.jitExpression(i.expression,e,n,[])}compileNgModuleDeclaration(e,n,s){let r=aT(s);return this.jitExpression(r,e,n,[])}compileDirective(e,n,s){let r=Zf(s);return this.compileDirectiveFromMeta(e,n,r)}compileDirectiveDeclaration(e,n,s){let r=this.createParseSourceSpan("Directive",s.type.name,n),i=rg(s,r);return this.compileDirectiveFromMeta(e,n,i)}compileDirectiveFromMeta(e,n,s){let r=new oi,i=br(),o=Qm(s,r,i);return this.jitExpression(o.expression,e,n,r.statements)}compileComponent(e,n,s){var c;let{template:r,defer:i}=ig(s.template,s.name,n,s.preserveWhitespaces,void 0),o=me(x(x({},s),Zf(s)),{selector:s.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:r,declarations:s.declarations.map(Xb),declarationListEmitMode:0,defer:i,styles:[...s.styles,...r.styles],encapsulation:s.encapsulation,changeDetection:(c=s.changeDetection)!=null?c:null,animations:s.animations!=null?new W(s.animations):null,viewProviders:s.viewProviders!=null?new W(s.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null}),l=`ng:///${s.name}.js`;return this.compileComponentFromMeta(e,l,o)}compileComponentDeclaration(e,n,s){let r=this.createParseSourceSpan("Component",s.type.name,n),i=Kb(s,r,n);return this.compileComponentFromMeta(e,n,i)}compileComponentFromMeta(e,n,s){let r=new oi,i=br(),o=Jm(s,r,i);return this.jitExpression(o.expression,e,n,r.statements)}compileFactory(e,n,s){let r=fs({name:s.name,type:qe(s.type),typeArgumentCount:s.typeArgumentCount,deps:Jb(s.deps),target:s.target});return this.jitExpression(r.expression,e,n,r.statements)}compileFactoryDeclaration(e,n,s){let r=fs({name:s.type.name,type:qe(s.type),typeArgumentCount:0,deps:Array.isArray(s.deps)?s.deps.map(sd):s.deps,target:s.target});return this.jitExpression(r.expression,e,n,r.statements)}createParseSourceSpan(e,n,s){return eT(e,n,s)}jitExpression(e,n,s,r){let i=[...r,new Ve("$def",e,void 0,Ue.Exported)];return this.jitEvaluator.evaluateStatements(s,i,new Jc(n),!0).$def}};function Qf(t){return me(x({},t),{isSignal:t.isSignal,predicate:sg(t.predicate),read:t.read?new W(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly})}function Jf(t){var e,n,s,r;return{propertyName:t.propertyName,first:(e=t.first)!=null?e:!1,predicate:sg(t.predicate),descendants:(n=t.descendants)!=null?n:!1,read:t.read?new W(t.read):null,static:(s=t.static)!=null?s:!1,emitDistinctChangesOnly:(r=t.emitDistinctChangesOnly)!=null?r:!0,isSignal:!!t.isSignal}}function sg(t){return Array.isArray(t)?t:_r(new W(t),1)}function Zf(t){var l;let e=a_(t.inputs||[]),n=vc(t.outputs||[]),s=t.propMetadata,r={},i={};for(let c in s)s.hasOwnProperty(c)&&s[c].forEach(u=>{s_(u)?r[c]={bindingPropertyName:u.alias||c,classPropertyName:c,required:u.required||!1,isSignal:!!u.isSignal,transformFunction:u.transform!=null?new W(u.transform):null}:r_(u)&&(i[c]=u.alias||c)});let o=(l=t.hostDirectives)!=null&&l.length?t.hostDirectives.map(c=>typeof c=="function"?{directive:qe(c),inputs:null,outputs:null,isForwardReference:!1}:{directive:qe(c.directive),isForwardReference:!1,inputs:c.inputs?vc(c.inputs):null,outputs:c.outputs?vc(c.outputs):null}):null;return me(x({},t),{typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:qe(t.type),deps:null,host:x({},e_(t.propMetadata,t.typeSourceSpan,t.host)),inputs:x(x({},e),r),outputs:x(x({},n),i),queries:t.queries.map(Qf),providers:t.providers!=null?new W(t.providers):null,viewQueries:t.viewQueries.map(Qf),hostDirectives:o})}function rg(t,e){var s,r,i,o,l,c,u,h,d,p,g;let n=(s=t.hostDirectives)!=null&&s.length?t.hostDirectives.map(v=>({directive:qe(v.directive),isForwardReference:!1,inputs:v.inputs?ed(v.inputs):null,outputs:v.outputs?ed(v.outputs):null})):null;return{name:t.type.name,type:qe(t.type),typeSourceSpan:e,selector:(r=t.selector)!=null?r:null,inputs:t.inputs?i_(t.inputs):{},outputs:(i=t.outputs)!=null?i:{},host:jb(t.host),queries:((o=t.queries)!=null?o:[]).map(Jf),viewQueries:((l=t.viewQueries)!=null?l:[]).map(Jf),providers:t.providers!==void 0?new W(t.providers):null,exportAs:(c=t.exportAs)!=null?c:null,usesInheritance:(u=t.usesInheritance)!=null?u:!1,controlCreate:(h=t.controlCreate)!=null?h:null,lifecycle:{usesOnChanges:(d=t.usesOnChanges)!=null?d:!1},deps:null,typeArgumentCount:0,isStandalone:(p=t.isStandalone)!=null?p:Pd(t.version),isSignal:(g=t.isSignal)!=null?g:!1,hostDirectives:n}}function jb(t={}){var e,n,s;return{attributes:zb((e=t.attributes)!=null?e:{}),listeners:(n=t.listeners)!=null?n:{},properties:(s=t.properties)!=null?s:{},specialAttributes:{classAttr:t.classAttribute,styleAttr:t.styleAttribute}}}function ed(t){let e=null;for(let n=1;n<t.length;n+=2)e=e||{},e[t[n-1]]=t[n];return e}function zb(t){let e={};for(let n of Object.keys(t))e[n]=new W(t[n]);return e}function Kb(t,e,n){var l,c,u,h;let{template:s,defer:r}=ig(t.template,t.type.name,n,(l=t.preserveWhitespaces)!=null?l:!1,t.deferBlockDependencies),i=[];if(t.dependencies)for(let d of t.dependencies)switch(d.kind){case"directive":case"component":i.push(yc(d));break;case"pipe":i.push(Qb(d));break}else(t.components||t.directives||t.pipes)&&(t.components&&i.push(...t.components.map(d=>yc(d,!0))),t.directives&&i.push(...t.directives.map(d=>yc(d))),t.pipes&&i.push(...Yb(t.pipes)));let o=i.some(({kind:d})=>d===Bs.Directive||d===Bs.NgModule);return me(x({},rg(t,e)),{template:s,styles:(c=t.styles)!=null?c:[],declarations:i,viewProviders:t.viewProviders!==void 0?new W(t.viewProviders):null,animations:t.animations!==void 0?new W(t.animations):null,defer:r,changeDetection:(u=t.changeDetection)!=null?u:Ia.Default,encapsulation:(h=t.encapsulation)!=null?h:An.Emulated,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null,hasDirectiveDependencies:o})}function Xb(t){return me(x({},t),{type:new W(t.type)})}function yc(t,e=null){var n,s,r;return{kind:Bs.Directive,isComponent:e||t.kind==="component",selector:t.selector,type:new W(t.type),inputs:(n=t.inputs)!=null?n:[],outputs:(s=t.outputs)!=null?s:[],exportAs:(r=t.exportAs)!=null?r:null}}function Yb(t){return t?Object.keys(t).map(e=>({kind:Bs.Pipe,name:e,type:new W(t[e])})):[]}function Qb(t){return{kind:Bs.Pipe,name:t.name,type:new W(t.type)}}function ig(t,e,n,s,r){let i=zm(t,n,{preserveWhitespaces:s});if(i.errors!==null){let c=i.errors.map(u=>u.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${c}`)}let l=new jo(null).bind({template:i.nodes});return{template:i,defer:Zb(l,r)}}function Ur(t,e){if(t.hasOwnProperty(e))return _r(new W(t[e]),0)}function td(t,e){if(t.hasOwnProperty(e))return new W(t[e])}function nd(t){let e=typeof t=="function"?new W(t):new _e(t!=null?t:null);return _r(e,0)}function Jb(t){return t==null?null:t.map(og)}function og(t){let e=t.attribute!=null,n=t.token===null?null:new W(t.token),s=e?new W(t.attribute):n;return ag(s,e,t.host,t.optional,t.self,t.skipSelf)}function sd(t){var s,r,i,o,l;let e=(s=t.attribute)!=null?s:!1,n=t.token===null?null:new W(t.token);return ag(n,e,(r=t.host)!=null?r:!1,(i=t.optional)!=null?i:!1,(o=t.self)!=null?o:!1,(l=t.skipSelf)!=null?l:!1)}function ag(t,e,n,s,r,i){let o=e?S("unknown"):null;return{token:t,attributeNameType:o,host:n,optional:s,self:r,skipSelf:i}}function Zb(t,e){let n=t.getDeferBlocks(),s=new Map;for(let r=0;r<n.length;r++){let i=e==null?void 0:e[r];s.set(n[r],i?new W(i):null)}return{mode:0,blocks:s}}function e_(t,e,n){let s=eg(n||{}),r=tg(s,e);if(r.length)throw new Error(r.map(i=>i.msg).join(`
|
|
37
|
+
`));for(let i in t)t.hasOwnProperty(i)&&t[i].forEach(o=>{t_(o)?s.properties[o.hostPropertyName||i]=Ld("this",i):n_(o)&&(s.listeners[o.eventName||i]=`${i}(${(o.args||[]).join(",")})`)});return s}function t_(t){return t.ngMetadataName==="HostBinding"}function n_(t){return t.ngMetadataName==="HostListener"}function s_(t){return t.ngMetadataName==="Input"}function r_(t){return t.ngMetadataName==="Output"}function i_(t){return Object.keys(t).reduce((e,n)=>{let s=t[n];return typeof s=="string"||Array.isArray(s)?e[n]=o_(s):e[n]={bindingPropertyName:s.publicName,classPropertyName:n,transformFunction:s.transformFunction!==null?new W(s.transformFunction):null,required:s.isRequired,isSignal:s.isSignal},e},{})}function o_(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 W(t[2]):null,required:!1,isSignal:!1}}function a_(t){return t.reduce((e,n)=>{if(typeof n=="string"){let[s,r]=lg(n);e[r]={bindingPropertyName:s,classPropertyName:r,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 W(n.transform):null};return e},{})}function vc(t){return t.reduce((e,n)=>{let[s,r]=lg(n);return e[r]=s,e},{})}function lg(t){let[e,n]=t.split(":",2).map(s=>s.trim());return[n!=null?n:e,e]}function l_(t){var e,n;return{name:t.type.name,type:qe(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:(e=t.pure)!=null?e:!0,isStandalone:(n=t.isStandalone)!=null?n:Pd(t.version)}}function c_(t){return{name:t.type.name,type:qe(t.type),providers:t.providers!==void 0&&t.providers.length>0?new W(t.providers):null,imports:t.imports!==void 0?t.imports.map(e=>new W(e)):[]}}function u_(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new ju}var rd;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(rd||(rd={}));var zu=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 hn.PARSABLE_DATA}},EO=new zu;var Ai=new uo("21.2.7");u_(zi);var CO=(0,ug.createRequire)(U);var AO=new Map([[Rn.Minus,"-"],[Rn.Plus,"+"]]),IO=new Map([[T.And,"&&"],[T.Bigger,">"],[T.BiggerEquals,">="],[T.BitwiseAnd,"&"],[T.BitwiseOr,"|"],[T.Divide,"/"],[T.Equals,"=="],[T.Identical,"==="],[T.Lower,"<"],[T.LowerEquals,"<="],[T.Minus,"-"],[T.Modulo,"%"],[T.Multiply,"*"],[T.NotEquals,"!="],[T.NotIdentical,"!=="],[T.Or,"||"],[T.Plus,"+"],[T.NullishCoalesce,"??"],[T.Exponentiation,"**"],[T.In,"in"],[T.InstanceOf,"instanceof"],[T.Assign,"="],[T.AdditionAssignment,"+="],[T.SubtractionAssignment,"-="],[T.MultiplicationAssignment,"*="],[T.DivisionAssignment,"/="],[T.RemainderAssignment,"%="],[T.ExponentiationAssignment,"**="],[T.AndAssignment,"&&="],[T.OrAssignment,"||="],[T.NullishCoalesceAssignment,"??="]]);A();var pg=require("module");var h_=C(require("typescript"),1),f_=C(require("typescript"),1);var _O=(0,pg.createRequire)(U),hg=class{exists(t){throw ye()}readFile(t){throw ye()}readFileBuffer(t){throw ye()}writeFile(t,e,n){throw ye()}removeFile(t){throw ye()}symlink(t,e){throw ye()}readdir(t){throw ye()}lstat(t){throw ye()}stat(t){throw ye()}pwd(){throw ye()}chdir(t){throw ye()}extname(t){throw ye()}copyFile(t,e){throw ye()}moveFile(t,e){throw ye()}ensureDir(t){throw ye()}removeDeep(t){throw ye()}isCaseSensitive(){throw ye()}resolve(...t){throw ye()}dirname(t){throw ye()}join(t,...e){throw ye()}isRoot(t){throw ye()}isRooted(t){throw ye()}relative(t,e){throw ye()}basename(t,e){throw ye()}realpath(t){throw ye()}getDefaultLibLocation(){throw ye()}normalize(t){throw ye()}};function ye(){return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.")}var p_=new hg;function fg(t){p_=t}var Ii=C(require("typescript"),1);var x_=C(require("typescript"),1);var C_=C(require("typescript"),1),V=C(require("typescript"),1),Jo=C(require("typescript"),1),Ce=C(require("typescript"),1),Ip=C(require("typescript"),1),Nl=C(require("typescript"),1);var Dl=C(require("typescript"),1),H_=C(require("typescript"),1),q_=C(require("typescript"),1),N=C(require("typescript"),1);var Hn=C(require("typescript"),1),J_=C(require("typescript"),1),Z_=C(require("typescript"),1),ek=C(require("typescript"),1),tk=C(require("typescript"),1),xe=C(require("typescript"),1),yp=C(require("typescript"),1),rs=C(require("typescript"),1),oy=C(require("typescript"),1),ss=C(require("typescript"),1),lk=C(require("typescript"),1);var ck=C(require("typescript"),1),uk=C(require("typescript"),1),pk=C(require("typescript"),1),hk=C(require("typescript"),1),fk=C(require("typescript"),1),mk=C(require("typescript"),1);var gk=C(require("typescript"),1),yk=C(require("typescript"),1),vk=C(require("typescript"),1);var Sk=C(require("typescript"),1);var Ek=C(require("typescript"),1),Tk=C(require("typescript"),1);var wk=C(require("typescript"),1);var xk=C(require("typescript"),1);var zt=C(require("typescript"),1),vp=C(require("typescript"),1);var wn=C(require("typescript"),1),Mk=C(require("typescript"),1);var Ok=C(require("typescript"),1);var Fk=C(require("typescript"),1),Bk=C(require("typescript"),1);var $k=C(require("typescript"),1);var Uk=C(require("typescript"),1),Vk=C(require("typescript"),1);var Gk=C(require("typescript"),1);var Hk=C(require("typescript"),1);var qk=C(require("typescript"),1),Wk=C(require("typescript"),1),jk=C(require("typescript"),1),zk=C(require("typescript"),1);var Kk=C(require("typescript"),1);A();var dg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d_=new Uint8Array(64),m_=new Uint8Array(128);for(let t=0;t<dg.length;t++){let e=dg.charCodeAt(t);d_[t]=e,m_[e]=t}var MO=1024*16;var Yk=C(require("typescript"),1);var Qk=C(require("typescript"),1),Jk=C(require("typescript"),1);var Zk=C(require("typescript"),1);var e0=C(require("typescript"),1),t0=C(require("typescript"),1);var n0=C(require("typescript"),1);var s0=C(require("typescript"),1);var r0=C(require("typescript"),1),i0=C(require("typescript"),1);var a0=C(require("typescript"),1),l0=C(require("typescript"),1);var c0=C(require("typescript"),1);var u0=C(require("typescript"),1),p0=C(require("typescript"),1),h0=C(require("typescript"),1);var te=C(require("typescript"),1),f0=C(require("typescript"),1);var d0=C(require("typescript"),1);var m0=C(require("typescript"),1);var g0=C(require("typescript"),1),Ks=C(require("typescript"),1),kl=C(require("typescript"),1),py=C(require("typescript"),1);var nF=(0,Hg.createRequire)(U),R;(function(t){t[t.DECORATOR_ARG_NOT_LITERAL=1001]="DECORATOR_ARG_NOT_LITERAL",t[t.DECORATOR_ARITY_WRONG=1002]="DECORATOR_ARITY_WRONG",t[t.DECORATOR_NOT_CALLED=1003]="DECORATOR_NOT_CALLED",t[t.DECORATOR_UNEXPECTED=1005]="DECORATOR_UNEXPECTED",t[t.DECORATOR_COLLISION=1006]="DECORATOR_COLLISION",t[t.VALUE_HAS_WRONG_TYPE=1010]="VALUE_HAS_WRONG_TYPE",t[t.VALUE_NOT_LITERAL=1011]="VALUE_NOT_LITERAL",t[t.DUPLICATE_DECORATED_PROPERTIES=1012]="DUPLICATE_DECORATED_PROPERTIES",t[t.INITIALIZER_API_WITH_DISALLOWED_DECORATOR=1050]="INITIALIZER_API_WITH_DISALLOWED_DECORATOR",t[t.INITIALIZER_API_DECORATOR_METADATA_COLLISION=1051]="INITIALIZER_API_DECORATOR_METADATA_COLLISION",t[t.INITIALIZER_API_NO_REQUIRED_FUNCTION=1052]="INITIALIZER_API_NO_REQUIRED_FUNCTION",t[t.INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY=1053]="INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY",t[t.INCORRECTLY_DECLARED_ON_STATIC_MEMBER=1100]="INCORRECTLY_DECLARED_ON_STATIC_MEMBER",t[t.COMPONENT_MISSING_TEMPLATE=2001]="COMPONENT_MISSING_TEMPLATE",t[t.PIPE_MISSING_NAME=2002]="PIPE_MISSING_NAME",t[t.PARAM_MISSING_TOKEN=2003]="PARAM_MISSING_TOKEN",t[t.DIRECTIVE_MISSING_SELECTOR=2004]="DIRECTIVE_MISSING_SELECTOR",t[t.UNDECORATED_PROVIDER=2005]="UNDECORATED_PROVIDER",t[t.DIRECTIVE_INHERITS_UNDECORATED_CTOR=2006]="DIRECTIVE_INHERITS_UNDECORATED_CTOR",t[t.UNDECORATED_CLASS_USING_ANGULAR_FEATURES=2007]="UNDECORATED_CLASS_USING_ANGULAR_FEATURES",t[t.COMPONENT_RESOURCE_NOT_FOUND=2008]="COMPONENT_RESOURCE_NOT_FOUND",t[t.COMPONENT_INVALID_SHADOW_DOM_SELECTOR=2009]="COMPONENT_INVALID_SHADOW_DOM_SELECTOR",t[t.COMPONENT_NOT_STANDALONE=2010]="COMPONENT_NOT_STANDALONE",t[t.COMPONENT_IMPORT_NOT_STANDALONE=2011]="COMPONENT_IMPORT_NOT_STANDALONE",t[t.COMPONENT_UNKNOWN_IMPORT=2012]="COMPONENT_UNKNOWN_IMPORT",t[t.HOST_DIRECTIVE_INVALID=2013]="HOST_DIRECTIVE_INVALID",t[t.HOST_DIRECTIVE_NOT_STANDALONE=2014]="HOST_DIRECTIVE_NOT_STANDALONE",t[t.HOST_DIRECTIVE_COMPONENT=2015]="HOST_DIRECTIVE_COMPONENT",t[t.INJECTABLE_INHERITS_INVALID_CONSTRUCTOR=2016]="INJECTABLE_INHERITS_INVALID_CONSTRUCTOR",t[t.HOST_DIRECTIVE_UNDEFINED_BINDING=2017]="HOST_DIRECTIVE_UNDEFINED_BINDING",t[t.HOST_DIRECTIVE_CONFLICTING_ALIAS=2018]="HOST_DIRECTIVE_CONFLICTING_ALIAS",t[t.HOST_DIRECTIVE_MISSING_REQUIRED_BINDING=2019]="HOST_DIRECTIVE_MISSING_REQUIRED_BINDING",t[t.CONFLICTING_INPUT_TRANSFORM=2020]="CONFLICTING_INPUT_TRANSFORM",t[t.COMPONENT_INVALID_STYLE_URLS=2021]="COMPONENT_INVALID_STYLE_URLS",t[t.COMPONENT_UNKNOWN_DEFERRED_IMPORT=2022]="COMPONENT_UNKNOWN_DEFERRED_IMPORT",t[t.NON_STANDALONE_NOT_ALLOWED=2023]="NON_STANDALONE_NOT_ALLOWED",t[t.MISSING_NAMED_TEMPLATE_DEPENDENCY=2024]="MISSING_NAMED_TEMPLATE_DEPENDENCY",t[t.INCORRECT_NAMED_TEMPLATE_DEPENDENCY_TYPE=2025]="INCORRECT_NAMED_TEMPLATE_DEPENDENCY_TYPE",t[t.UNSUPPORTED_SELECTORLESS_COMPONENT_FIELD=2026]="UNSUPPORTED_SELECTORLESS_COMPONENT_FIELD",t[t.COMPONENT_ANIMATIONS_CONFLICT=2027]="COMPONENT_ANIMATIONS_CONFLICT",t[t.SYMBOL_NOT_EXPORTED=3001]="SYMBOL_NOT_EXPORTED",t[t.IMPORT_CYCLE_DETECTED=3003]="IMPORT_CYCLE_DETECTED",t[t.IMPORT_GENERATION_FAILURE=3004]="IMPORT_GENERATION_FAILURE",t[t.CONFIG_FLAT_MODULE_NO_INDEX=4001]="CONFIG_FLAT_MODULE_NO_INDEX",t[t.CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK=4002]="CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK",t[t.CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES=4003]="CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES",t[t.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL=4004]="CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL",t[t.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK=4005]="CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK",t[t.CONFIG_EMIT_DECLARATION_ONLY_UNSUPPORTED=4006]="CONFIG_EMIT_DECLARATION_ONLY_UNSUPPORTED",t[t.HOST_BINDING_PARSE_ERROR=5001]="HOST_BINDING_PARSE_ERROR",t[t.TEMPLATE_PARSE_ERROR=5002]="TEMPLATE_PARSE_ERROR",t[t.NGMODULE_INVALID_DECLARATION=6001]="NGMODULE_INVALID_DECLARATION",t[t.NGMODULE_INVALID_IMPORT=6002]="NGMODULE_INVALID_IMPORT",t[t.NGMODULE_INVALID_EXPORT=6003]="NGMODULE_INVALID_EXPORT",t[t.NGMODULE_INVALID_REEXPORT=6004]="NGMODULE_INVALID_REEXPORT",t[t.NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC=6005]="NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC",t[t.NGMODULE_REEXPORT_NAME_COLLISION=6006]="NGMODULE_REEXPORT_NAME_COLLISION",t[t.NGMODULE_DECLARATION_NOT_UNIQUE=6007]="NGMODULE_DECLARATION_NOT_UNIQUE",t[t.NGMODULE_DECLARATION_IS_STANDALONE=6008]="NGMODULE_DECLARATION_IS_STANDALONE",t[t.NGMODULE_BOOTSTRAP_IS_STANDALONE=6009]="NGMODULE_BOOTSTRAP_IS_STANDALONE",t[t.WARN_NGMODULE_ID_UNNECESSARY=6100]="WARN_NGMODULE_ID_UNNECESSARY",t[t.SCHEMA_INVALID_ELEMENT=8001]="SCHEMA_INVALID_ELEMENT",t[t.SCHEMA_INVALID_ATTRIBUTE=8002]="SCHEMA_INVALID_ATTRIBUTE",t[t.MISSING_REFERENCE_TARGET=8003]="MISSING_REFERENCE_TARGET",t[t.MISSING_PIPE=8004]="MISSING_PIPE",t[t.WRITE_TO_READ_ONLY_VARIABLE=8005]="WRITE_TO_READ_ONLY_VARIABLE",t[t.DUPLICATE_VARIABLE_DECLARATION=8006]="DUPLICATE_VARIABLE_DECLARATION",t[t.SPLIT_TWO_WAY_BINDING=8007]="SPLIT_TWO_WAY_BINDING",t[t.MISSING_REQUIRED_INPUTS=8008]="MISSING_REQUIRED_INPUTS",t[t.ILLEGAL_FOR_LOOP_TRACK_ACCESS=8009]="ILLEGAL_FOR_LOOP_TRACK_ACCESS",t[t.INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT=8010]="INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT",t[t.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION=8011]="CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION",t[t.DEFERRED_PIPE_USED_EAGERLY=8012]="DEFERRED_PIPE_USED_EAGERLY",t[t.DEFERRED_DIRECTIVE_USED_EAGERLY=8013]="DEFERRED_DIRECTIVE_USED_EAGERLY",t[t.DEFERRED_DEPENDENCY_IMPORTED_EAGERLY=8014]="DEFERRED_DEPENDENCY_IMPORTED_EAGERLY",t[t.ILLEGAL_LET_WRITE=8015]="ILLEGAL_LET_WRITE",t[t.LET_USED_BEFORE_DEFINITION=8016]="LET_USED_BEFORE_DEFINITION",t[t.CONFLICTING_LET_DECLARATION=8017]="CONFLICTING_LET_DECLARATION",t[t.UNCLAIMED_DIRECTIVE_BINDING=8018]="UNCLAIMED_DIRECTIVE_BINDING",t[t.DEFER_IMPLICIT_TRIGGER_MISSING_PLACEHOLDER=8019]="DEFER_IMPLICIT_TRIGGER_MISSING_PLACEHOLDER",t[t.DEFER_IMPLICIT_TRIGGER_INVALID_PLACEHOLDER=8020]="DEFER_IMPLICIT_TRIGGER_INVALID_PLACEHOLDER",t[t.DEFER_TRIGGER_MISCONFIGURATION=8021]="DEFER_TRIGGER_MISCONFIGURATION",t[t.FORM_FIELD_UNSUPPORTED_BINDING=8022]="FORM_FIELD_UNSUPPORTED_BINDING",t[t.INVALID_BANANA_IN_BOX=8101]="INVALID_BANANA_IN_BOX",t[t.NULLISH_COALESCING_NOT_NULLABLE=8102]="NULLISH_COALESCING_NOT_NULLABLE",t[t.MISSING_CONTROL_FLOW_DIRECTIVE=8103]="MISSING_CONTROL_FLOW_DIRECTIVE",t[t.TEXT_ATTRIBUTE_NOT_BINDING=8104]="TEXT_ATTRIBUTE_NOT_BINDING",t[t.MISSING_NGFOROF_LET=8105]="MISSING_NGFOROF_LET",t[t.SUFFIX_NOT_SUPPORTED=8106]="SUFFIX_NOT_SUPPORTED",t[t.OPTIONAL_CHAIN_NOT_NULLABLE=8107]="OPTIONAL_CHAIN_NOT_NULLABLE",t[t.SKIP_HYDRATION_NOT_STATIC=8108]="SKIP_HYDRATION_NOT_STATIC",t[t.INTERPOLATED_SIGNAL_NOT_INVOKED=8109]="INTERPOLATED_SIGNAL_NOT_INVOKED",t[t.UNSUPPORTED_INITIALIZER_API_USAGE=8110]="UNSUPPORTED_INITIALIZER_API_USAGE",t[t.UNINVOKED_FUNCTION_IN_EVENT_BINDING=8111]="UNINVOKED_FUNCTION_IN_EVENT_BINDING",t[t.UNUSED_LET_DECLARATION=8112]="UNUSED_LET_DECLARATION",t[t.UNUSED_STANDALONE_IMPORTS=8113]="UNUSED_STANDALONE_IMPORTS",t[t.UNPARENTHESIZED_NULLISH_COALESCING=8114]="UNPARENTHESIZED_NULLISH_COALESCING",t[t.UNINVOKED_TRACK_FUNCTION=8115]="UNINVOKED_TRACK_FUNCTION",t[t.MISSING_STRUCTURAL_DIRECTIVE=8116]="MISSING_STRUCTURAL_DIRECTIVE",t[t.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION=8117]="UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION",t[t.FORBIDDEN_REQUIRED_INITIALIZER_INVOCATION=8118]="FORBIDDEN_REQUIRED_INITIALIZER_INVOCATION",t[t.INLINE_TCB_REQUIRED=8900]="INLINE_TCB_REQUIRED",t[t.INLINE_TYPE_CTOR_REQUIRED=8901]="INLINE_TYPE_CTOR_REQUIRED",t[t.INJECTABLE_DUPLICATE_PROV=9001]="INJECTABLE_DUPLICATE_PROV",t[t.SUGGEST_STRICT_TEMPLATES=10001]="SUGGEST_STRICT_TEMPLATES",t[t.SUGGEST_SUBOPTIMAL_TYPE_INFERENCE=10002]="SUGGEST_SUBOPTIMAL_TYPE_INFERENCE",t[t.LOCAL_COMPILATION_UNRESOLVED_CONST=11001]="LOCAL_COMPILATION_UNRESOLVED_CONST",t[t.LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION=11003]="LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION"})(R||(R={}));function Ap(t){return parseInt("-99"+t)}var Ys=class extends Error{constructor(e,n,s,r){super(`FatalDiagnosticError: Code: ${e}, Message: ${Ii.default.flattenDiagnosticMessageText(s,`
|
|
38
|
+
`)}`);a(this,"code");a(this,"node");a(this,"diagnosticMessage");a(this,"relatedInformation");a(this,"_isFatalDiagnosticError",!0);this.code=e,this.node=n,this.diagnosticMessage=s,this.relatedInformation=r,Object.setPrototypeOf(this,new.target.prototype)}toDiagnostic(){return qg(this.code,this.node,this.diagnosticMessage,this.relatedInformation)}};function qg(t,e,n,s,r=Ii.default.DiagnosticCategory.Error){return e=Ii.default.getOriginalNode(e),{category:r,code:Ap(t),file:Ii.default.getOriginalNode(e).getSourceFile(),start:e.getStart(void 0,!1),length:e.getWidth(),messageText:n,relatedInformation:s}}function mg(t,e){return{category:Ii.default.DiagnosticCategory.Message,code:0,messageText:t,next:e}}var T_=new Set([R.DECORATOR_ARG_NOT_LITERAL,R.IMPORT_CYCLE_DETECTED,R.PARAM_MISSING_TOKEN,R.SCHEMA_INVALID_ELEMENT,R.SCHEMA_INVALID_ATTRIBUTE,R.MISSING_REFERENCE_TARGET,R.COMPONENT_INVALID_SHADOW_DOM_SELECTOR,R.WARN_NGMODULE_ID_UNNECESSARY]),Wg=(()=>{let t=Ai.full;return`https://${t.includes("-next")||t.includes("-rc")||t==="21.2.7"?"next":`v${Ai.major}`}.angular.dev`})(),w_=`${Wg}/errors`,Fe;(function(t){t.INVALID_BANANA_IN_BOX="invalidBananaInBox",t.NULLISH_COALESCING_NOT_NULLABLE="nullishCoalescingNotNullable",t.OPTIONAL_CHAIN_NOT_NULLABLE="optionalChainNotNullable",t.MISSING_CONTROL_FLOW_DIRECTIVE="missingControlFlowDirective",t.MISSING_STRUCTURAL_DIRECTIVE="missingStructuralDirective",t.TEXT_ATTRIBUTE_NOT_BINDING="textAttributeNotBinding",t.UNINVOKED_FUNCTION_IN_EVENT_BINDING="uninvokedFunctionInEventBinding",t.MISSING_NGFOROF_LET="missingNgForOfLet",t.SUFFIX_NOT_SUPPORTED="suffixNotSupported",t.SKIP_HYDRATION_NOT_STATIC="skipHydrationNotStatic",t.INTERPOLATED_SIGNAL_NOT_INVOKED="interpolatedSignalNotInvoked",t.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION="controlFlowPreventingContentProjection",t.UNUSED_LET_DECLARATION="unusedLetDeclaration",t.UNINVOKED_TRACK_FUNCTION="uninvokedTrackFunction",t.UNUSED_STANDALONE_IMPORTS="unusedStandaloneImports",t.UNPARENTHESIZED_NULLISH_COALESCING="unparenthesizedNullishCoalescing",t.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION="uninvokedFunctionInTextInterpolation",t.DEFER_TRIGGER_MISCONFIGURATION="deferTriggerMisconfiguration"})(Fe||(Fe={}));var gg;(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"})(gg||(gg={}));var yg;(function(t){t[t.Success=0]="Success",t[t.Failed=1]="Failed"})(yg||(yg={}));function A_(t){return Jo.default.isIdentifier(t)||Jo.default.isPropertyAccessExpression(t)&&Jo.default.isIdentifier(t.expression)&&Jo.default.isIdentifier(t.name)}var Rr;(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"})(Rr||(Rr={}));var Se;(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"})(Se||(Se={}));var I_={};function N_(t,e,n){var c,u;if(t===null)return k_();if(!Ce.default.isTypeReferenceNode(t))return Qo(t);let s=P_(t,e);if(s===null)return b_(t);let{local:r,decl:i}=s;if(i.valueDeclaration===void 0||i.flags&Ce.default.SymbolFlags.ConstEnum){let h=null;if(i.declarations!==void 0&&i.declarations.length>0&&(h=i.declarations[0]),!n||h&&[Ce.default.SyntaxKind.TypeParameter,Ce.default.SyntaxKind.TypeAliasDeclaration,Ce.default.SyntaxKind.InterfaceDeclaration].includes(h.kind))return D_(t,h)}let o=r.declarations&&r.declarations[0];if(o!==void 0){if(Ce.default.isImportClause(o)&&o.name!==void 0)return o.phaseModifier===Ce.default.SyntaxKind.TypeKeyword?Il(t,o):Ce.default.isImportDeclaration(o.parent)?{kind:0,expression:o.name,defaultImportStatement:o.parent}:Qo(t);if(Ce.default.isImportSpecifier(o)){if(o.isTypeOnly)return Il(t,o);if(o.parent.parent.phaseModifier===Ce.default.SyntaxKind.TypeKeyword)return Il(t,o.parent.parent);let h=(o.propertyName||o.name).text,[d,...p]=s.symbolNames,g=o.parent.parent.parent;if(!Ce.default.isImportDeclaration(g))return Qo(t);let v=vg(g);return{kind:1,valueDeclaration:(c=i.valueDeclaration)!=null?c:null,moduleName:v,importedName:h,nestedPath:p}}else if(Ce.default.isNamespaceImport(o)){if(o.parent.phaseModifier===Ce.default.SyntaxKind.TypeKeyword)return Il(t,o.parent);if(s.symbolNames.length===1)return __(t,o.parent);let[h,d,...p]=s.symbolNames,g=o.parent.parent;if(!Ce.default.isImportDeclaration(g))return Qo(t);let v=vg(g);return{kind:1,valueDeclaration:(u=i.valueDeclaration)!=null?u:null,moduleName:v,importedName:d,nestedPath:p}}}let l=R_(t);return l!==null?{kind:0,expression:l,defaultImportStatement:null}:Qo(t)}function Qo(t){return{kind:2,reason:{kind:5,typeNode:t}}}function D_(t,e){return{kind:2,reason:{kind:1,typeNode:t,decl:e}}}function Il(t,e){return{kind:2,reason:{kind:2,typeNode:t,node:e}}}function b_(t){return{kind:2,reason:{kind:3,typeNode:t}}}function __(t,e){return{kind:2,reason:{kind:4,typeNode:t,importClause:e}}}function k_(){return{kind:2,reason:{kind:0}}}function R_(t){return Ce.default.isTypeReferenceNode(t)?jg(t.typeName):null}function P_(t,e){let n=t.typeName,s=e.getSymbolAtLocation(n);if(s===void 0)return null;let r=s,i=n,o=[];for(;Ce.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&&(r=c)}let l=s;return s.flags&Ce.default.SymbolFlags.Alias&&(l=e.getAliasedSymbol(s)),{local:r,decl:l,symbolNames:o}}function jg(t){if(Ce.default.isQualifiedName(t)){let e=jg(t.left);return e!==null?Ce.default.factory.createPropertyAccessExpression(e,t.right):null}else if(Ce.default.isIdentifier(t)){let e=Ce.default.setOriginalNode(Ce.default.factory.createIdentifier(t.text),t);return e.parent=t.parent,e}else return null}function vg(t){if(!Ce.default.isStringLiteral(t.moduleSpecifier))throw new Error("not a module specifier");return t.moduleSpecifier.text}function zg(t){return Ip.default.isClassDeclaration(t)&&L_(t.name)}function L_(t){return t!==void 0&&Ip.default.isIdentifier(t)}function Sg(t){switch(t){case Se.EcmaScriptPrivate:return"ES private";case Se.Private:return"private";case Se.Protected:return"protected";case Se.PublicReadonly:return"public readonly";case Se.PublicWritable:default:return"public"}}var Kg=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=V.default.canHaveDecorators(t)?V.default.getDecorators(t):void 0;return e!==void 0&&e.length?e.map(n=>this._reflectDecorator(n)).filter(n=>n!==null):null}getMembersOfClass(t){return Eg(t).members.map(n=>{let s=Xg(n);return s===null?null:me(x({},s),{decorators:this.getDecoratorsOfDeclaration(n)})}).filter(n=>n!==null)}getConstructorParameters(t){let e=Eg(t),n=e.getSourceFile().isDeclarationFile,s=e.members.find(r=>V.default.isConstructorDeclaration(r)&&(n||r.body!==void 0));return s===void 0?null:s.parameters.map(r=>{let i=Tg(r.name),o=this.getDecoratorsOfDeclaration(r),l=r.type||null,c=l;if(c&&V.default.isUnionTypeNode(c)){let h=c.types.filter(d=>!(V.default.isLiteralTypeNode(d)&&d.literal.kind===V.default.SyntaxKind.NullKeyword));h.length===1&&(c=h[0])}let u=N_(c,this.checker,this.isLocalCompilation);return{name:i,nameNode:r.name,typeValueReference:u,typeNode:l,decorators:o}})}getImportOfIdentifier(t){let e=this.getDirectImportOfIdentifier(t);return e!==null?e:V.default.isQualifiedName(t.parent)&&t.parent.right===t?this.getImportOfNamespacedIdentifier(t,B_(t.parent)):V.default.isPropertyAccessExpression(t.parent)&&t.parent.name===t?this.getImportOfNamespacedIdentifier(t,$_(t.parent)):null}getExportsOfModule(t){if(!V.default.isSourceFile(t))throw new Error("getExportsOfModule() called on non-SourceFile in TS code");let e=this.checker.getSymbolAtLocation(t);if(e===void 0)return null;let n=new Map;return this.checker.getExportsOfModule(e).forEach(s=>{let r=this.getDeclarationOfSymbol(s,null);r!==null&&n.set(s.name,r)}),n}isClass(t){return zg(t)}hasBaseClass(t){return this.getBaseClassExpression(t)!==null}getBaseClassExpression(t){if(!(V.default.isClassDeclaration(t)||V.default.isClassExpression(t))||t.heritageClauses===void 0)return null;let e=t.heritageClauses.find(s=>s.token===V.default.SyntaxKind.ExtendsKeyword);if(e===void 0)return null;let n=e.types[0];return n===void 0?null:n.expression}getDeclarationOfIdentifier(t){let e=this.checker.getSymbolAtLocation(t);return e===void 0?null:this.getDeclarationOfSymbol(e,t)}getDefinitionOfFunction(t){if(!V.default.isFunctionDeclaration(t)&&!V.default.isMethodDeclaration(t)&&!V.default.isFunctionExpression(t)&&!V.default.isArrowFunction(t))return null;let e=null;t.body!==void 0&&(e=V.default.isBlock(t.body)?Array.from(t.body.statements):[V.default.factory.createReturnStatement(t.body)]);let n=this.checker.getTypeAtLocation(t),s=this.checker.getSignaturesOfType(n,V.default.SignatureKind.Call);return{node:t,body:e,signatureCount:s.length,typeParameters:t.typeParameters===void 0?null:Array.from(t.typeParameters),parameters:t.parameters.map(r=>{let i=Tg(r.name),o=r.initializer||null;return{name:i,node:r,initializer:o,type:r.type||null}})}}getGenericArityOfClass(t){return V.default.isClassDeclaration(t)?t.typeParameters!==void 0?t.typeParameters.length:0:null}getVariableValue(t){return t.initializer||null}isStaticallyExported(t){let e=t;V.default.isVariableDeclaration(t)&&V.default.isVariableDeclarationList(t.parent)&&(e=t.parent.parent);let n=V.default.canHaveModifiers(e)?V.default.getModifiers(e):void 0;return n!==void 0&&n.some(r=>r.kind===V.default.SyntaxKind.ExportKeyword)?!0:e.parent===void 0||!V.default.isSourceFile(e.parent)?!1:this.getLocalExportedDeclarationsOfSourceFile(t.getSourceFile()).has(t)}getDirectImportOfIdentifier(t){let e=this.checker.getSymbolAtLocation(t);if(e===void 0||e.declarations===void 0||e.declarations.length!==1)return null;let n=e.declarations[0],s=U_(n);return s===null||!V.default.isStringLiteral(s.moduleSpecifier)?null:{from:s.moduleSpecifier.text,name:V_(n,t),node:s}}getImportOfNamespacedIdentifier(t,e){if(e===null)return null;let n=this.checker.getSymbolAtLocation(e);if(!n||n.declarations===void 0)return null;let s=n.declarations.length===1?n.declarations[0]:null;if(!s)return null;let r=V.default.isNamespaceImport(s)?s:null;if(!r)return null;let i=r.parent.parent;return!V.default.isImportDeclaration(i)||!V.default.isStringLiteral(i.moduleSpecifier)?null:{from:i.moduleSpecifier.text,name:t.text,node:i}}getDeclarationOfSymbol(t,e){let n;if(t.valueDeclaration!==void 0?n=t.valueDeclaration:t.declarations!==void 0&&t.declarations.length>0&&(n=t.declarations[0]),n!==void 0&&V.default.isShorthandPropertyAssignment(n)){let r=this.checker.getShorthandAssignmentValueSymbol(n);return r===void 0?null:this.getDeclarationOfSymbol(r,e)}else if(n!==void 0&&V.default.isExportSpecifier(n)){let r=this.checker.getExportSpecifierLocalTargetSymbol(n);return r===void 0?null:this.getDeclarationOfSymbol(r,e)}let s=e&&this.getImportOfIdentifier(e);for(;t.flags&V.default.SymbolFlags.Alias;)t=this.checker.getAliasedSymbol(t);return t.valueDeclaration!==void 0&&(!this.skipPrivateValueDeclarationTypes||!F_(this.checker,t))?{node:t.valueDeclaration,viaModule:this._viaModule(t.valueDeclaration,e,s)}:t.declarations!==void 0&&t.declarations.length>0?{node:t.declarations[0],viaModule:this._viaModule(t.declarations[0],e,s)}:null}_reflectDecorator(t){let e=t.expression,n=null;if(V.default.isCallExpression(e)&&(n=Array.from(e.arguments),e=e.expression),!A_(e))return null;let s=V.default.isIdentifier(e)?e:e.name,r=this.getImportOfIdentifier(s);return{name:s.text,identifier:e,import:r,node:t,args:n}}getLocalExportedDeclarationsOfSourceFile(t){let e=t;if(e[fp]!==void 0)return e[fp];let n=new Set;e[fp]=n;let s=this.checker.getSymbolAtLocation(e);if(s===void 0||s.exports===void 0)return n;let r=s.exports.values(),i=r.next();for(;i.done!==!0;){let o=i.value;o.flags&V.default.SymbolFlags.Alias&&(o=this.checker.getAliasedSymbol(o)),o.valueDeclaration!==void 0&&o.valueDeclaration.getSourceFile()===t&&n.add(o.valueDeclaration),i=r.next()}return n}_viaModule(t,e,n){return n===null&&e!==null&&t.getSourceFile()!==e.getSourceFile()?I_:n!==null&&n.from!==null&&!n.from.startsWith(".")?n.from:null}};function M_(t){let e=V.default.getModifiers(t),n=!1,s=!1,r=Se.PublicWritable;if(e!==void 0)for(let i of e)switch(i.kind){case V.default.SyntaxKind.StaticKeyword:n=!0;break;case V.default.SyntaxKind.PrivateKeyword:r=Se.Private;break;case V.default.SyntaxKind.ProtectedKeyword:r=Se.Protected;break;case V.default.SyntaxKind.ReadonlyKeyword:s=!0;break}return s&&r===Se.PublicWritable&&(r=Se.PublicReadonly),t.name!==void 0&&V.default.isPrivateIdentifier(t.name)&&(r=Se.EcmaScriptPrivate),{accessLevel:r,isStatic:n}}function Xg(t){let e=null,n=null,s=null,r=null;if(V.default.isPropertyDeclaration(t))e=Rr.Property,n=t.initializer||null;else if(V.default.isGetAccessorDeclaration(t))e=Rr.Getter;else if(V.default.isSetAccessorDeclaration(t))e=Rr.Setter;else if(V.default.isMethodDeclaration(t))e=Rr.Method;else if(V.default.isConstructorDeclaration(t))e=Rr.Constructor;else return null;if(V.default.isConstructorDeclaration(t))s="constructor";else if(V.default.isIdentifier(t.name))s=t.name.text,r=t.name;else if(V.default.isStringLiteral(t.name))s=t.name.text,r=t.name;else if(V.default.isPrivateIdentifier(t.name))s=t.name.text,r=t.name;else return null;let{accessLevel:i,isStatic:o}=M_(t);return{node:t,implementation:t,kind:e,type:t.type||null,accessLevel:i,name:s,nameNode:r,value:n,isStatic:o}}function Yg(t){let e=new Map;return t.properties.forEach(n=>{if(V.default.isPropertyAssignment(n)){let s=O_(n.name);if(s===null)return;e.set(s,n.initializer)}else if(V.default.isShorthandPropertyAssignment(n))e.set(n.name.text,n.name);else return}),e}function Eg(t){if(!V.default.isClassDeclaration(t))throw new Error(`Reflecting on a ${V.default.SyntaxKind[t.kind]} instead of a ClassDeclaration.`);return t}function Tg(t){return V.default.isIdentifier(t)?t.text:null}function O_(t){return V.default.isIdentifier(t)||V.default.isStringLiteral(t)||V.default.isNumericLiteral(t)?t.text:null}function F_(t,e){var n;if(e.valueDeclaration!==void 0){let s=t.getTypeOfSymbolAtLocation(e,e.valueDeclaration);return((n=s==null?void 0:s.symbol)==null?void 0:n.name.startsWith("\u0275"))===!0}return!1}function B_(t){for(;V.default.isQualifiedName(t.left);)t=t.left;return V.default.isIdentifier(t.left)?t.left:null}function $_(t){for(;V.default.isPropertyAccessExpression(t.expression);)t=t.expression;return V.default.isIdentifier(t.expression)?t.expression:null}function U_(t){let e=t.parent;for(;e&&!V.default.isSourceFile(e);){if(V.default.isImportDeclaration(e))return e;e=e.parent}return null}function V_(t,e){return V.default.isImportSpecifier(t)?(t.propertyName!==void 0?t.propertyName:t.name).text:e.text}var fp=Symbol("LocalExportedDeclarations"),Qg=class{constructor(){a(this,"fileToNamedImports",new WeakMap);a(this,"fileToNamespaceImports",new WeakMap)}isPotentialReferenceToNamedImport(t,e,n){let s=t.getSourceFile();this.scanImports(s);let i=this.fileToNamedImports.get(s).get(n),o=i==null?void 0:i.get(e);return o!==void 0&&o.has(t.text)}isPotentialReferenceToNamespaceImport(t,e){var r,i;let n=t.getSourceFile();return this.scanImports(n),(i=(r=this.fileToNamespaceImports.get(n).get(e))==null?void 0:r.has(t.text))!=null?i:!1}hasNamedImport(t,e,n){this.scanImports(t);let r=this.fileToNamedImports.get(t).get(n);return r!==void 0&&r.has(e)}hasNamespaceImport(t,e){return this.scanImports(t),this.fileToNamespaceImports.get(t).has(e)}scanImports(t){var s,r;if(this.fileToNamedImports.has(t)&&this.fileToNamespaceImports.has(t))return;let e=new Map,n=new Map;this.fileToNamedImports.set(t,e),this.fileToNamespaceImports.set(t,n);for(let i of t.statements){if(!Nl.default.isImportDeclaration(i)||!Nl.default.isStringLiteralLike(i.moduleSpecifier)||((s=i.importClause)==null?void 0:s.namedBindings)===void 0)continue;let o=i.moduleSpecifier.text;if(Nl.default.isNamespaceImport(i.importClause.namedBindings))n.has(o)||n.set(o,new Set),n.get(o).add(i.importClause.namedBindings.name.text);else for(let l of i.importClause.namedBindings.elements){let c=l.name.text,u=l.propertyName===void 0?c:l.propertyName.text;e.has(o)||e.set(o,new Map);let h=e.get(o);h.has(u)||h.set(u,new Set),(r=h.get(u))==null||r.add(c)}}}};var wg=Symbol("patchedReferencedAliases");function Jg(t){G_(t)||xg();let e=t.getEmitResolver();if(e===void 0)return null;let n=e[wg];if(n!==void 0)return n;let s=e.isReferencedAliasDeclaration;s===void 0&&xg();let r=new Set;return e.isReferencedAliasDeclaration=function(i,...o){return Zg(i)&&r.has(i)?!0:s.call(e,i,...o)},e[wg]=r}function Zg(t){return Dl.default.isImportSpecifier(t)||Dl.default.isNamespaceImport(t)||Dl.default.isImportClause(t)}function G_(t){return t.getEmitResolver!==void 0}function xg(){throw Error(`Angular compiler is incompatible with this version of the TypeScript compiler.
|
|
40
39
|
|
|
41
40
|
If you recently updated TypeScript and this issue surfaces now, consider downgrading.
|
|
42
41
|
|
|
43
|
-
Please report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.`)}function dp(t,e){return e||t.import!==null&&t.import.from==="@angular/core"}var ey="!Array<{type: !Function, args: (undefined|!Array<?>)}>";function ty(t,e){let n=[],
|
|
44
|
-
`),pos:-1,end:-1,hasTrailingNewLine:!0}]),o}function ny(t,e){let n=e.kind;switch(I.default.isLiteralTypeNode(e)&&(n=e.literal.kind),n){case I.default.SyntaxKind.FunctionType:case I.default.SyntaxKind.ConstructorType:return I.default.factory.createIdentifier("Function");case I.default.SyntaxKind.ArrayType:case I.default.SyntaxKind.TupleType:return I.default.factory.createIdentifier("Array");case I.default.SyntaxKind.TypePredicate:case I.default.SyntaxKind.TrueKeyword:case I.default.SyntaxKind.FalseKeyword:case I.default.SyntaxKind.BooleanKeyword:return I.default.factory.createIdentifier("Boolean");case I.default.SyntaxKind.StringLiteral:case I.default.SyntaxKind.StringKeyword:return I.default.factory.createIdentifier("String");case I.default.SyntaxKind.ObjectKeyword:return I.default.factory.createIdentifier("Object");case I.default.SyntaxKind.NumberKeyword:case I.default.SyntaxKind.NumericLiteral:return I.default.factory.createIdentifier("Number");case I.default.SyntaxKind.TypeReference:return t(e.typeName);case I.default.SyntaxKind.UnionType:let s=e.types.filter(i=>!(I.default.isLiteralTypeNode(i)&&i.literal.kind===I.default.SyntaxKind.NullKeyword));return s.length===1?ny(t,s[0]):void 0;default:return}}function j0(t,e){return e.flags&I.default.SymbolFlags.Alias&&(e=t.getAliasedSymbol(e)),(e.flags&I.default.SymbolFlags.Value&I.default.SymbolFlags.ConstEnumExcludes)!==0}function ry(t,e,n,r,s,i){function o(c,u){s&&I.default.setSyntheticLeadingComments(c,[{kind:I.default.SyntaxKind.MultiLineCommentTrivia,text:`* @type {${u}} `,pos:-1,end:-1,hasTrailingNewLine:!0}])}function l(c,u){let h=[];for(let[g,v]of u.entries())h.push(I.default.factory.createPropertyAssignment(g,I.default.factory.createArrayLiteralExpression(v.map(E=>ty(E,c)))));let d=I.default.factory.createObjectLiteralExpression(h,!0),p=I.default.factory.createPropertyDeclaration([I.default.factory.createToken(I.default.SyntaxKind.StaticKeyword)],"propDecorators",void 0,void 0,d);return o(p,`!Object<string, ${ey}>`),p}return c=>{let u=Jg(c);function h(E){let N=t.getSymbolAtLocation(E);if(!N||!j0(t,N)||!N.declarations||N.declarations.length===0)return;if(I.default.isQualifiedName(E)){let b=h(E.left);return b===void 0?void 0:I.default.factory.createPropertyAccessExpression(b,E.right)}let D=N.declarations[0];return Zg(D)&&(u==null||u.add(D),D.name!==void 0)?I.default.setOriginalNode(I.default.factory.createIdentifier(D.name.text),D.name):I.default.setOriginalNode(I.default.factory.createIdentifier(E.text),E)}function d(E){E=I.default.visitEachChild(E,v,c);let N=[],D=[],b=e.getDecoratorsOfDeclaration(E)||[];for(let ne of b){let se=ne.node;if(!dp(ne,r)){N.push(se);continue}D.push(se)}if(!D.length)return[void 0,E,[]];if(!E.name||!I.default.isIdentifier(E.name))return n.push({file:E.getSourceFile(),start:E.getStart(),length:E.getEnd()-E.getStart(),messageText:"Cannot process decorators for class element with non-analyzable name.",category:I.default.DiagnosticCategory.Error,code:0}),[void 0,E,[]];let P=I.default.canHaveModifiers(E)?I.default.getModifiers(E):void 0,L;return(N.length||P!=null&&P.length)&&(L=I.default.setTextRange(I.default.factory.createNodeArray([...N,...P||[]]),E.modifiers)),[E.name.text,K0(E,L),D]}function p(E){E=I.default.visitEachChild(E,v,c);let N=[],D=E.parameters,b=[];for(let L of D){let ne=[],se={decorators:[],type:null},Ge=e.getDecoratorsOfDeclaration(L)||[];for(let sr of Ge){let ir=sr.node;if(!dp(sr,r)){ne.push(ir);continue}se.decorators.push(ir)}L.type&&(se.type=L.type),b.push(se);let Ie,It=I.default.getModifiers(L);(ne.length||It!=null&&It.length)&&(Ie=[...ne,...It||[]]);let zr=I.default.factory.updateParameterDeclaration(L,Ie,L.dotDotDotToken,L.name,L.questionToken,L.type,L.initializer);N.push(zr)}return[I.default.factory.updateConstructorDeclaration(E,I.default.getModifiers(E),N,E.body),b]}function g(E){let N=[],D=new Map,b=null;for(let se of E.members){switch(se.kind){case I.default.SyntaxKind.PropertyDeclaration:case I.default.SyntaxKind.GetAccessor:case I.default.SyntaxKind.SetAccessor:case I.default.SyntaxKind.MethodDeclaration:{let[Ge,Ie,It]=d(se);N.push(Ie),Ge&&D.set(Ge,It);continue}case I.default.SyntaxKind.Constructor:{if(!se.body)break;let[Ie,It]=p(se);b=It,N.push(Ie);continue}default:break}N.push(I.default.visitEachChild(se,v,c))}let L=(e.getDecoratorsOfDeclaration(E)||[]).some(se=>dp(se,r));b&&(L||b.some(se=>!!se.decorators.length))&&N.push(W0(n,h,b,s)),D.size&&N.push(l(n,D));let ne=I.default.setTextRange(I.default.factory.createNodeArray(N,E.members.hasTrailingComma),E.members);return I.default.factory.updateClassDeclaration(E,E.modifiers,E.name,E.typeParameters,E.heritageClauses,ne)}function v(E){return I.default.isClassDeclaration(E)&&(i===void 0||i(E))?g(E):I.default.visitEachChild(E,v,c)}return E=>I.default.visitEachChild(E,v,c)}}function K0(t,e){let n;if(I.default.isMethodDeclaration(t))n=I.default.factory.createMethodDeclaration(e,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body);else if(I.default.isPropertyDeclaration(t))n=I.default.factory.createPropertyDeclaration(e,t.name,t.questionToken,t.type,t.initializer);else if(I.default.isGetAccessor(t))n=I.default.factory.createGetAccessorDeclaration(e,t.name,t.parameters,t.type,t.body);else if(I.default.isSetAccessor(t))n=I.default.factory.createSetAccessorDeclaration(e,t.name,t.parameters,t.body);else throw new Error(`Unsupported decorated member with kind ${I.default.SyntaxKind[t.kind]}`);return I.default.setOriginalNode(n,t)}var z0="@angular/core";function sy(t){return t.import!==null&&t.import.from===z0}function Zo(t,e,n){return n?t.name===e:sy(t)?t.import.name===e:!1}function X0(t,e,n){return t.filter(r=>{var i;let s=n?r.name:(i=r.import)==null?void 0:i.name;return s===void 0||!e.includes(s)?!1:n||sy(r)})}function iy(t){for(;Gn.default.isAsExpression(t)||Gn.default.isParenthesizedExpression(t);)t=t.expression;return t}function Y0(t){if(t=iy(t),!Gn.default.isArrowFunction(t)&&!Gn.default.isFunctionExpression(t))return null;let e=t.body;if(Gn.default.isBlock(e)){if(e.statements.length!==1)return null;let n=e.statements[0];return!Gn.default.isReturnStatement(n)||n.expression===void 0?null:n.expression}else return e}function Q0(t,e){if(t=iy(t),!Gn.default.isCallExpression(t)||t.arguments.length!==1)return null;let n=Gn.default.isPropertyAccessExpression(t.expression)?t.expression.name:t.expression;if(!Gn.default.isIdentifier(n))return null;let r=Y0(t.arguments[0]);if(r===null)return null;let s=e.getImportOfIdentifier(n);return s===null||s.from!=="@angular/core"||s.name!=="forwardRef"?null:r}var mp;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(mp||(mp={}));var Cg;(function(t){t[t.Selector=0]="Selector",t[t.HostDirective=1]="HostDirective"})(Cg||(Cg={}));var gp;(function(t){t[t.FULL=0]="FULL",t[t.PARTIAL=1]="PARTIAL",t[t.LOCAL=2]="LOCAL"})(gp||(gp={}));var Ag;(function(t){t[t.PRIMARY=0]="PRIMARY",t[t.SHARED=1]="SHARED",t[t.WEAK=2]="WEAK"})(Ag||(Ag={}));function n_(){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),yp.default.factory.createUniqueName(l,yp.default.GeneratedIdentifierFlags.Optimistic)}}function r_(t,e){return n=>{let{affectedFiles:r,newImports:s,updatedImports:i,reusedOriginalAliasDeclarations:o,deletedImports:l}=t.finalize();if(o.size>0){let u=Jg(n);u!==null&&o.forEach(h=>u.add(h))}if(e!==void 0)for(let[u,h]of e.entries())h.length>0&&r.add(u);let c=u=>{if(!rr.default.isImportDeclaration(u))return u;if(l.has(u))return;if(u.importClause===void 0||!rr.default.isImportClause(u.importClause))return u;let h=u.importClause;if(h.namedBindings===void 0||!rr.default.isNamedImports(h.namedBindings)||!i.has(h.namedBindings))return u;let d=n.factory.updateImportClause(h,h.phaseModifier,h.name,i.get(h.namedBindings)),p=n.factory.updateImportDeclaration(u,u.modifiers,d,u.moduleSpecifier,u.attributes);return rr.default.setOriginalNode(p,{importClause:d,kind:p.kind}),p};return u=>{var g,v;if(!r.has(u.fileName))return u;u=rr.default.visitEachChild(u,c,n);let h=(g=e==null?void 0:e.get(u.fileName))!=null?g:[],d=[],p=[];for(let E of u.statements)s_(E)?d.push(E):p.push(E);return n.factory.updateSourceFile(u,[...d,...(v=s.get(u.fileName))!=null?v:[],...h,...p],u.isDeclarationFile,u.referencedFiles,u.typeReferenceDirectives,u.hasNoDefaultLib,u.libReferenceDirectives)}}}function s_(t){return rr.default.isImportDeclaration(t)||rr.default.isImportEqualsDeclaration(t)||rr.default.isNamespaceImport(t)}function i_(t,e){let n=ay(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,oy.default.factory.createIdentifier(e.exportSymbolName)]}function Ng(t,e,n){e.directReuseCache.set(ay(t),n),t.exportSymbolName===null&&!Array.isArray(n)&&e.namespaceImportReuseCache.set(t.exportModuleSpecifier,n)}function ay(t){return`${t.requestedFile.fileName}:${t.exportModuleSpecifier}:${t.exportSymbolName}${t.unsafeAliasOverride?":"+t.unsafeAliasOverride:""}`}function o_(t,e,n){let r=null;for(let l=e.statements.length-1;l>=0;l--){let c=e.statements[l];if(!(!nr.default.isImportDeclaration(c)||!nr.default.isStringLiteral(c.moduleSpecifier)||!c.importClause||c.importClause.phaseModifier===nr.default.SyntaxKind.TypeKeyword||c.moduleSpecifier.text!==n.exportModuleSpecifier)&&c.importClause.namedBindings){let h=c.importClause.namedBindings;if(nr.default.isNamespaceImport(h))return t.reusedAliasDeclarations.add(h),n.exportSymbolName===null?h.name:[h.name,nr.default.factory.createIdentifier(n.exportSymbolName)];if(nr.default.isNamedImports(h)&&n.exportSymbolName!==null){let d=h.elements.find(p=>{var v;let g;return n.unsafeAliasOverride?g=((v=p.propertyName)==null?void 0:v.text)===n.exportSymbolName&&p.name.text===n.unsafeAliasOverride:g=p.propertyName?p.propertyName.text===n.exportSymbolName:p.name.text===n.exportSymbolName,!p.isTypeOnly&&g});if(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=nr.default.factory.createIdentifier(n.exportSymbolName),o=n.unsafeAliasOverride?nr.default.factory.createIdentifier(n.unsafeAliasOverride):t.generateUniqueIdentifier(e,n.exportSymbolName);return s.push({propertyName:i,fileUniqueAlias:o}),o!=null?o:i}var a_=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:n_()},this.reuseSourceFileImportsTracker={generateUniqueIdentifier:this.config.generateUniqueIdentifier,reusedAliasDeclarations:new Set,updatedImports:new Map}}addSideEffectImport(t,e){this.config.rewriter!==null&&(e=this.config.rewriter.rewriteSpecifier(e,t.fileName)),this._getNewImportsTrackerForFile(t).sideEffectImports.add(e)}addImport(t){var r,s;this.config.rewriter!==null&&(t.exportSymbolName!==null&&(t.exportSymbolName=this.config.rewriter.rewriteSymbol(t.exportSymbolName,t.exportModuleSpecifier)),t.exportModuleSpecifier=this.config.rewriter.rewriteSpecifier(t.exportModuleSpecifier,t.requestedFile.fileName)),t.exportSymbolName!==null&&!t.asTypeReference&&((s=(r=this.removedImports.get(t.requestedFile))==null?void 0:r.get(t.exportModuleSpecifier))==null||s.delete(t.exportSymbolName));let e=i_(this.reuseGeneratedImportsTracker,t);if(e!==null)return Ig(!!t.asTypeReference,e);let n=this._generateNewImport(t);return Ng(t,this.reuseGeneratedImportsTracker,n),Ig(!!t.asTypeReference,n)}removeImport(t,e,n){let r=this.removedImports.get(t);r||(r=new Map,this.removedImports.set(t,r));let s=r.get(n);s||(s=new Set,r.set(n,s)),s.add(e)}_generateNewImport(t){var h;let{requestedFile:e}=t,n=this.config.disableOriginalSourceFileReuse,r=this.config.forceGenerateNamespacesForNewImports;if(!n){let d=o_(this.reuseSourceFileImportsTracker,e,t);if(d!==null)return d}let{namedImports:s,namespaceImports:i}=this._getNewImportsTrackerForFile(e);if(t.exportSymbolName===null||r){let d=`${this.config.namespaceImportPrefix}${this.nextUniqueIndex++}`;this.config.rewriter&&(d=this.config.rewriter.rewriteNamespaceImportIdentifier(d,t.exportModuleSpecifier));let p=we.default.factory.createNamespaceImport((h=this.config.generateUniqueIdentifier(e,d))!=null?h:we.default.factory.createIdentifier(d));return i.set(t.exportModuleSpecifier,p),Ng(me(C({},t),{exportSymbolName:null}),this.reuseGeneratedImportsTracker,p.name),t.exportSymbolName!==null?[p.name,we.default.factory.createIdentifier(t.exportSymbolName)]:p.name}s.has(t.exportModuleSpecifier)||s.set(t.exportModuleSpecifier,[]);let o=we.default.factory.createIdentifier(t.exportSymbolName),l=t.unsafeAliasOverride?null:this.config.generateUniqueIdentifier(e,t.exportSymbolName),c,u;return t.unsafeAliasOverride?(c=!0,u=we.default.factory.createIdentifier(t.unsafeAliasOverride)):l!==null?(c=!0,u=l):(c=!1,u=o),s.get(t.exportModuleSpecifier).push(we.default.factory.createImportSpecifier(!1,c?o:void 0,u)),u}finalize(){let t=new Set,e=new Map,n=new Map,r=new Set,s=new Map,i=(o,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,h=l.moduleSpecifier.text,d=u.elements.concat(o.map(({propertyName:p,fileUniqueAlias:g})=>we.default.factory.createImportSpecifier(!1,g!==null?p:void 0,g!=null?g:p))).filter(p=>this._canAddSpecifier(c,h,p));t.add(c.fileName),d.length===0?r.add(l):e.set(u,we.default.factory.updateNamedImports(u,d))}),this.removedImports.forEach((o,l)=>{var u;if(o.size===0)return;let c=s.get(l);c||(c=l.statements.filter(we.default.isImportDeclaration),s.set(l,c));for(let h of c){if(!((u=h.importClause)!=null&&u.namedBindings)||!we.default.isNamedImports(h.importClause.namedBindings)||this.reuseSourceFileImportsTracker.updatedImports.has(h)||r.has(h))continue;let d=h.importClause.namedBindings,p=h.moduleSpecifier.text,g=d.elements.filter(v=>this._canAddSpecifier(l,p,v));g.length===0?(t.add(l.fileName),r.add(h)):g.length!==d.elements.length&&(t.add(l.fileName),e.set(d,we.default.factory.updateNamedImports(d,g)))}}),this.newImports.forEach(({namedImports:o,namespaceImports:l,sideEffectImports:c},u)=>{let h=this.config.shouldUseSingleQuotes(u),d=u.fileName;c.forEach(p=>{i(d,we.default.factory.createImportDeclaration(void 0,void 0,we.default.factory.createStringLiteral(p)))}),l.forEach((p,g)=>{let v=we.default.factory.createImportDeclaration(void 0,we.default.factory.createImportClause(void 0,void 0,p),we.default.factory.createStringLiteral(g,h));we.default.setOriginalNode(p.name,v),i(d,v)}),o.forEach((p,g)=>{let v=p.filter(E=>this._canAddSpecifier(u,g,E));if(v.length>0){let E=we.default.factory.createImportDeclaration(void 0,we.default.factory.createImportClause(void 0,void 0,we.default.factory.createNamedImports(v)),we.default.factory.createStringLiteral(g,h));i(d,E)}})}),{affectedFiles:t,newImports:n,updatedImports:e,reusedOriginalAliasDeclarations:this.reuseSourceFileImportsTracker.reusedAliasDeclarations,deletedImports:r}}toTsTransform(t){return r_(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)?we.default.factory.createQualifiedName(e[0],e[1]):e:Array.isArray(e)?we.default.factory.createPropertyAccessExpression(e[0],e[1]):e}var Dg;(function(t){t.CLOSURE="* @pureOrBreakMyCode ",t.TERSER="@__PURE__"})(Dg||(Dg={}));var Ai;(function(t){t[t.Unaccounted=0]="Unaccounted",t[t.Setup=1]="Setup",t[t.TypeScriptProgramCreate=2]="TypeScriptProgramCreate",t[t.Reconciliation=3]="Reconciliation",t[t.ResourceUpdate=4]="ResourceUpdate",t[t.TypeScriptDiagnostics=5]="TypeScriptDiagnostics",t[t.Analysis=6]="Analysis",t[t.Resolve=7]="Resolve",t[t.CycleDetection=8]="CycleDetection",t[t.TcbGeneration=9]="TcbGeneration",t[t.TcbUpdateProgram=10]="TcbUpdateProgram",t[t.TypeScriptEmit=11]="TypeScriptEmit",t[t.Compile=12]="Compile",t[t.TtcAutocompletion=13]="TtcAutocompletion",t[t.TtcDiagnostics=14]="TtcDiagnostics",t[t.TtcSuggestionDiagnostics=15]="TtcSuggestionDiagnostics",t[t.TtcSymbol=16]="TtcSymbol",t[t.LsReferencesAndRenames=17]="LsReferencesAndRenames",t[t.LsQuickInfo=18]="LsQuickInfo",t[t.LsDefinition=19]="LsDefinition",t[t.LsCompletions=20]="LsCompletions",t[t.LsTcb=21]="LsTcb",t[t.LsDiagnostics=22]="LsDiagnostics",t[t.LsSuggestionDiagnostics=23]="LsSuggestionDiagnostics",t[t.LsComponentLocations=24]="LsComponentLocations",t[t.LsSignatureHelp=25]="LsSignatureHelp",t[t.OutliningSpans=26]="OutliningSpans",t[t.LsCodeFixes=27]="LsCodeFixes",t[t.LsCodeFixesAll=28]="LsCodeFixesAll",t[t.LSComputeApplicableRefactorings=29]="LSComputeApplicableRefactorings",t[t.LSApplyRefactoring=30]="LSApplyRefactoring",t[t.LSSemanticClassification=31]="LSSemanticClassification",t[t.LAST=32]="LAST"})(Ai||(Ai={}));var bl;(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"})(bl||(bl={}));var _l;(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"})(_l||(_l={}));var d_=class{eventCount(){}memory(){}phase(){return Ai.Unaccounted}inPhase(t,e){return e()}reset(){}},_F=new d_;var bg;(function(t){t[t.Pending=0]="Pending",t[t.Analyzed=1]="Analyzed",t[t.Resolved=2]="Resolved",t[t.Skipped=3]="Skipped"})(bg||(bg={}));function Rl({api:t,call:e},n){if(!t.allowedAccessLevels.includes(n.accessLevel))throw new Kr(R.INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY,e,mg(`Cannot use "${t.functionName}" on a class member that is declared as ${Sg(n.accessLevel)}.`,[mg("Update the class field to be either: "+t.allowedAccessLevels.map(r=>Sg(r)).join(", "))]))}function Ni(t,e,n,r){if(Wt.default.isAsExpression(e)||Wt.default.isParenthesizedExpression(e))return Ni(t,e.expression,n,r);if(!Wt.default.isCallExpression(e))return null;let s=C_(e,t,r)||A_(e,t,r)||N_(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 C_(t,e,n){let r=t.expression;if(!Wt.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 A_(t,e,n){let r=t.expression;if(!Wt.default.isPropertyAccessExpression(r)||!Wt.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 N_(t,e,n){let r=t.expression;if(!Wt.default.isPropertyAccessExpression(r))return null;let s=null,i,o=!1;if(Wt.default.isIdentifier(r.expression)&&Wt.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(Wt.default.isPropertyAccessExpression(r.expression)&&Wt.default.isIdentifier(r.expression.expression)&&Wt.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 Ip(t){if(!vp.default.isObjectLiteralExpression(t))throw new Kr(R.VALUE_HAS_WRONG_TYPE,t,"Argument needs to be an object literal that is statically analyzable.");let e=Yg(t),n;if(e.has("alias")){let r=e.get("alias");if(!vp.default.isStringLiteralLike(r))throw new Kr(R.VALUE_HAS_WRONG_TYPE,r,"Alias needs to be a string that is statically analyzable.");n=r.text}return{alias:n}}var Pl={functionName:"input",owningModule:"@angular/core",allowedAccessLevels:[Se.PublicWritable,Se.PublicReadonly,Se.Protected]};function I_(t,e,n){var l;if(t.value===null)return null;let r=Ni([Pl],t.value,e,n);if(r===null)return null;Rl(r,t);let s=r.isRequired?r.call.arguments[0]:r.call.arguments[1],i=s!==void 0?Ip(s):null,o=t.name;return{isSignal:!0,classPropertyName:o,bindingPropertyName:(l=i==null?void 0:i.alias)!=null?l:o,required:r.isRequired,transform:null}}var Ll={functionName:"model",owningModule:"@angular/core",allowedAccessLevels:[Se.PublicWritable,Se.PublicReadonly,Se.Protected]};function D_(t,e,n){var c;if(t.value===null)return null;let r=Ni([Ll],t.value,e,n);if(r===null)return null;Rl(r,t);let s=r.isRequired?r.call.arguments[0]:r.call.arguments[1],i=s!==void 0?Ip(s):null,o=t.name,l=(c=i==null?void 0:i.alias)!=null?c:o;return{call:r.call,input:{isSignal:!0,transform:null,classPropertyName:o,bindingPropertyName:l,required:r.isRequired},output:{isSignal:!1,classPropertyName:o,bindingPropertyName:l+"Change"}}}var _g=[Se.PublicWritable,Se.PublicReadonly,Se.Protected],Dp=[{functionName:"output",owningModule:"@angular/core",allowedAccessLevels:_g},{functionName:"outputFromObservable",owningModule:"@angular/core/rxjs-interop",allowedAccessLevels:_g}];function b_(t,e,n){var l;if(t.value===null)return null;let r=Ni(Dp,t.value,e,n);if(r===null)return null;if(r.isRequired)throw new Kr(R.INITIALIZER_API_NO_REQUIRED_FUNCTION,r.call,'Output does not support ".required()".');Rl(r,t);let s=r.api.functionName==="output"?r.call.arguments[0]:r.call.arguments[1],i=s!==void 0?Ip(s):null,o=t.name;return{call:r.call,metadata:{isSignal:!1,classPropertyName:o,bindingPropertyName:(l=i==null?void 0:i.alias)!=null?l:o}}}var __=["viewChild","viewChildren","contentChild","contentChildren"],Ml=__.map(t=>({functionName:t,owningModule:"@angular/core",allowedAccessLevels:[Se.PublicWritable,Se.PublicReadonly,Se.Protected,Se.Private]})),k_=t=>t!=="contentChildren";function R_(t,e,n){if(t.value===null)return null;let r=Ni(Ml,t.value,e,n);if(r===null)return null;Rl(r,t);let{functionName:s}=r.api,i=s==="viewChild"||s==="contentChild",o=r.call.arguments[0];if(o===void 0)throw new Kr(R.VALUE_HAS_WRONG_TYPE,r.call,"No locator specified.");let l=r.call.arguments[1];if(l!==void 0&&!Tn.default.isObjectLiteralExpression(l))throw new Kr(R.VALUE_HAS_WRONG_TYPE,l,"Argument needs to be an object literal.");let c=l&&Yg(l),u=c!=null&&c.has("read")?ly(c.get("read")):null,h=c!=null&&c.has("descendants")?L_(c.get("descendants")):k_(s);return{name:s,call:r.call,metadata:{isSignal:!0,propertyName:t.name,static:!1,emitDistinctChangesOnly:!0,predicate:P_(o,e),first:i,read:u,descendants:h}}}function P_(t,e){let n=Q0(t,e);return n!==null&&(t=n),Tn.default.isStringLiteralLike(t)?[t.text]:Ds(new Vr.WrappedNodeExpr(t),n!==null?2:0)}function ly(t){if(Tn.default.isExpressionWithTypeArguments(t)||Tn.default.isParenthesizedExpression(t)||Tn.default.isAsExpression(t))return ly(t.expression);if(Tn.default.isPropertyAccessExpression(t)&&Tn.default.isIdentifier(t.expression)||Tn.default.isIdentifier(t))return new Vr.WrappedNodeExpr(t);throw new Kr(R.VALUE_NOT_LITERAL,t,'Query "read" option expected a literal class reference.')}function L_(t){if(t.kind===Tn.default.SyntaxKind.TrueKeyword)return!0;if(t.kind===Tn.default.SyntaxKind.FalseKeyword)return!1;throw new Kr(R.VALUE_HAS_WRONG_TYPE,t,'Expected "descendants" option to be a boolean literal.')}var cy=["ViewChild","ViewChildren","ContentChild","ContentChildren"],VF=new Set(cy);var ea;(function(t){t[t.SingleFile=0]="SingleFile",t[t.WholeProgram=1]="WholeProgram"})(ea||(ea={}));var kg;(function(t){t[t.NgModule=0]="NgModule",t[t.Standalone=1]="Standalone"})(kg||(kg={}));var Rg;(function(t){t[t.Normal=0]="Normal",t[t.ForceDirect=1]="ForceDirect"})(Rg||(Rg={}));var at;(function(t){t[t.Input=0]="Input",t[t.Output=1]="Output",t[t.Binding=2]="Binding",t[t.Reference=3]="Reference",t[t.Variable=4]="Variable",t[t.Directive=5]="Directive",t[t.Element=6]="Element",t[t.Template=7]="Template",t[t.Expression=8]="Expression",t[t.DomBinding=9]="DomBinding",t[t.Pipe=10]="Pipe",t[t.LetDeclaration=11]="LetDeclaration",t[t.SelectorlessComponent=12]="SelectorlessComponent",t[t.SelectorlessDirective=13]="SelectorlessDirective"})(at||(at={}));var Pg;(function(t){t[t.Reference=0]="Reference",t[t.Variable=1]="Variable",t[t.LetDeclaration=2]="LetDeclaration"})(Pg||(Pg={}));var Sp;(function(t){t[t.NgModule=0]="NgModule",t[t.Standalone=1]="Standalone",t[t.Selectorless=2]="Selectorless"})(Sp||(Sp={}));var Ep;(function(t){t.DIAGNOSTIC="D",t.EXPRESSION_TYPE_IDENTIFIER="T"})(Ep||(Ep={}));var Lg;(function(t){t.DIRECTIVE="DIR",t.COMPONENT_COMPLETION="COMPCOMP",t.EVENT_PARAMETER="EP",t.VARIABLE_AS_EXPRESSION="VAE"})(Lg||(Lg={}));var YF=`${Ep.DIAGNOSTIC}:ignore`;var Mg;(function(t){t[t.Complete=0]="Complete",t[t.Incremental=1]="Incremental"})(Mg||(Mg={}));function X_(){return typeof globalThis!="undefined"&&typeof globalThis.btoa=="function"?t=>globalThis.btoa(unescape(encodeURIComponent(t))):typeof Buffer=="function"?t=>Buffer.from(t,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var e1=X_();var n1=new Sn;var a1=[m.InputSignalBrandWriteType],Og;(function(t){t[t.MustInline=0]="MustInline",t[t.ShouldInlineForGenericBounds=1]="ShouldInlineForGenericBounds",t[t.None=2]="None"})(Og||(Og={}));var Fg;(function(t){t[t.UseEmitter=0]="UseEmitter",t[t.CopyClassNodes=1]="CopyClassNodes",t[t.FallbackToAny=2]="FallbackToAny"})(Fg||(Fg={}));var jr,d1=(jr=class{static veWillInferAnyFor(e){let n=jr.SINGLETON;return e instanceof Ct?e.visit(n):e.receiver.visit(n)}visitUnary(e){return e.expr.visit(this)}visitBinary(e){return e.left.visit(this)||e.right.visit(this)}visitChain(){return!1}visitConditional(e){return e.condition.visit(this)||e.trueExp.visit(this)||e.falseExp.visit(this)}visitCall(){return!0}visitSafeCall(){return!1}visitImplicitReceiver(){return!1}visitThisReceiver(){return!1}visitInterpolation(e){return e.expressions.some(n=>n.visit(this))}visitKeyedRead(){return!1}visitLiteralArray(){return!0}visitLiteralMap(){return!0}visitLiteralPrimitive(){return!1}visitPipe(){return!0}visitPrefixNot(e){return e.expression.visit(this)}visitTypeofExpression(e){return e.expression.visit(this)}visitVoidExpression(e){return e.expression.visit(this)}visitNonNullAssert(e){return e.expression.visit(this)}visitPropertyRead(){return!1}visitSafePropertyRead(){return!1}visitSafeKeyedRead(){return!1}visitTemplateLiteral(){return!1}visitTemplateLiteralElement(){return!1}visitTaggedTemplateLiteral(){return!1}visitParenthesizedExpression(e){return e.expression.visit(this)}visitRegularExpressionLiteral(){return!1}visitSpreadElement(e){return e.expression.visit(this)}visitArrowFunction(e,n){return!1}},a(jr,"SINGLETON",new jr),jr);var xk=["errors","dirty","disabled","disabledReasons","hidden","invalid","name","pending","readonly","touched","max","maxLength","min","minLength","pattern","required"],S1=new Set([...xk,"value","checked"]);var Bg;(function(t){t[t.InlineOps=0]="InlineOps",t[t.Error=1]="Error"})(Bg||(Bg={}));var D1=new Sn;var R1=class extends Vr.RecursiveAstVisitor{constructor(){super(...arguments);a(this,"allReads",new Set);a(this,"namespaceReads",new Set);a(this,"addAllTopLevelIdentifiers",e=>{te.default.isIdentifier(e)&&this.isTopLevelIdentifierReference(e)?this.allReads.add(e):te.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(te.default.isParenthesizedExpression(r)&&r.expression===n)for(;r&&te.default.isParenthesizedExpression(r);)n=r,r=r.parent;return te.default.isSourceFile(r)?!0:te.default.isCallExpression(r)?r.expression===n||r.arguments.includes(n):te.default.isExpressionStatement(r)||te.default.isPropertyAccessExpression(r)||te.default.isComputedPropertyName(r)||te.default.isTemplateSpan(r)||te.default.isSpreadAssignment(r)||te.default.isSpreadElement(r)||te.default.isAwaitExpression(r)||te.default.isNonNullExpression(r)||te.default.isIfStatement(r)||te.default.isDoStatement(r)||te.default.isWhileStatement(r)||te.default.isSwitchStatement(r)||te.default.isCaseClause(r)||te.default.isThrowStatement(r)||te.default.isNewExpression(r)||te.default.isExpressionWithTypeArguments(r)?r.expression===n:te.default.isArrayLiteralExpression(r)?r.elements.includes(n):te.default.isPropertyAssignment(r)||te.default.isParameter(r)||te.default.isBindingElement(r)||te.default.isPropertyDeclaration(r)||te.default.isEnumMember(r)?r.initializer===n:te.default.isVariableDeclaration(r)?r.name===n||r.initializer===n:te.default.isClassDeclaration(r)||te.default.isFunctionDeclaration(r)||te.default.isShorthandPropertyAssignment(r)?r.name===n:te.default.isElementAccessExpression(r)?r.expression===n||r.argumentExpression===n:te.default.isBinaryExpression(r)?r.left===n||r.right===n:te.default.isForInStatement(r)||te.default.isForOfStatement(r)?r.expression===n||r.initializer===n:te.default.isForStatement(r)?r.condition===n||r.initializer===n||r.incrementor===n:te.default.isArrowFunction(r)?r.body===n:te.default.isImportSpecifier(r)||te.default.isExportSpecifier(r)?(r.propertyName||r.name)===n:te.default.isConditionalExpression(r)?r.condition===n||r.whenFalse===n||r.whenTrue===n:!1}isTypeScriptNode(e){return!!e&&typeof e.kind=="number"}};function Ol(t,e,n,r,s){let i=kl.default.isIdentifier(n.identifier)?n.identifier:n.identifier.expression;return t.createPropertyAccessExpression(e.addImport({exportModuleSpecifier:"@angular/core",exportSymbolName:null,requestedFile:r}),kl.default.setOriginalNode(t.createIdentifier(s),i))}function uy(t,e){return t.createAsExpression(e,t.createKeywordTypeNode(kl.default.SyntaxKind.AnyKeyword))}var Bk=(t,e,n,r,s,i,o,l)=>{var d,p;if((d=n.getDecoratorsOfDeclaration(t.node))!=null&&d.some(g=>Zo(g,"Input",l)))return t.node;let c=I_(t,n,s);if(c===null)return t.node;let u={isSignal:r.createTrue(),alias:r.createStringLiteral(c.bindingPropertyName),required:c.required?r.createTrue():r.createFalse(),transform:r.createIdentifier("undefined")},h=r.createDecorator(r.createCallExpression(Ol(r,i,o,e,"Input"),void 0,[uy(r,r.createObjectLiteralExpression(Object.entries(u).map(([g,v])=>r.createPropertyAssignment(g,v))))]));return r.updatePropertyDeclaration(t.node,[h,...(p=t.node.modifiers)!=null?p:[]],t.name,t.node.questionToken,t.node.type,t.node.initializer)},$k=(t,e,n,r,s,i,o,l)=>{var p,g;if((p=n.getDecoratorsOfDeclaration(t.node))!=null&&p.some(v=>Zo(v,"Input",l)||Zo(v,"Output",l)))return t.node;let c=D_(t,n,s);if(c===null)return t.node;let u=r.createObjectLiteralExpression([r.createPropertyAssignment("isSignal",c.input.isSignal?r.createTrue():r.createFalse()),r.createPropertyAssignment("alias",r.createStringLiteral(c.input.bindingPropertyName)),r.createPropertyAssignment("required",c.input.required?r.createTrue():r.createFalse())]),h=$g("Input",r.createAsExpression(u,r.createKeywordTypeNode(py.default.SyntaxKind.AnyKeyword)),o,r,e,i),d=$g("Output",r.createStringLiteral(c.output.bindingPropertyName),o,r,e,i);return r.updatePropertyDeclaration(t.node,[h,d,...(g=t.node.modifiers)!=null?g:[]],t.node.name,t.node.questionToken,t.node.type,t.node.initializer)};function $g(t,e,n,r,s,i){let o=Ol(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 h,d;if((h=n.getDecoratorsOfDeclaration(t.node))!=null&&h.some(p=>Zo(p,"Output",l)))return t.node;let c=b_(t,n,s);if(c===null)return t.node;let u=r.createDecorator(r.createCallExpression(Ol(r,i,o,e,"Output"),void 0,[r.createStringLiteral(c.metadata.bindingPropertyName)]));return r.updatePropertyDeclaration(t.node,[u,...(d=t.node.modifiers)!=null?d:[]],t.node.name,t.node.questionToken,t.node.type,t.node.initializer)},Vk={viewChild:"ViewChild",viewChildren:"ViewChildren",contentChild:"ContentChild",contentChildren:"ContentChildren"},Gk=(t,e,n,r,s,i,o,l)=>{var g;let c=n.getDecoratorsOfDeclaration(t.node),u=c&&X0(c,cy,l);if(u!==null&&u.length>0)return t.node;let h=R_(t,n,s);if(h===null)return t.node;let d=h.call.arguments,p=r.createDecorator(r.createCallExpression(Ol(r,i,o,e,Vk[h.name]),void 0,[h.call.arguments[0],uy(r,r.createObjectLiteralExpression([...d.length>1?[r.createSpreadAssignment(d[1])]:[],r.createPropertyAssignment("isSignal",r.createTrue())]))]));return r.updatePropertyDeclaration(t.node,[p,...(g=t.node.modifiers)!=null?g:[]],t.node.name,t.node.questionToken,t.node.type,t.node.initializer)},Hk=["Directive","Component"],qk=[Bk,Uk,Gk,$k];function hy(t,e,n,r){return s=>i=>{let o=new a_;return i=Wr.default.visitNode(i,Wk(s,t,o,e,n,r),Wr.default.isSourceFile),o.transformTsFile(s,i)}}function Wk(t,e,n,r,s,i){let o=l=>{var c;if(Wr.default.isClassDeclaration(l)&&l.name!==void 0){let u=Wr.default.getOriginalNode(l,Wr.default.isClassDeclaration),h=(c=e.getDecoratorsOfDeclaration(u))==null?void 0:c.find(d=>Hk.some(p=>Zo(d,p,s)));if(h!==void 0&&(i===void 0||i(l))){let d=!1,p=u.getSourceFile(),g=l.members.map(v=>{if(!Wr.default.isPropertyDeclaration(v))return v;let E=Xg(v);if(E===null)return v;for(let N of qk){let D=N(me(C({},E),{node:v}),p,e,t.factory,r,n,h,s);if(D!==E.node)return d=!0,D}return v});if(d)return t.factory.updateClassDeclaration(l,l.modifiers,l.name,l.typeParameters,l.heritageClauses,g)}}return Wr.default.visitEachChild(l,o,t)};return o}function Fl(t,e=!1,n){let r=t.getTypeChecker(),s=new zg(r),i=new Qg,o=ry(r,s,[],e,!1,n),l=hy(s,i,e,n);return c=>u=>(u=l(c)(u),u=o(c)(u),u)}var HL=x(require("typescript"),1),qL=x(require("typescript"),1),WL=x(require("typescript"),1),jL=x(require("typescript"),1),KL=x(require("typescript"),1),zL=x(require("typescript"),1),XL=x(require("typescript"),1),YL=x(require("typescript"),1),QL=x(require("typescript"),1),JL=x(require("typescript"),1),ZL=x(require("typescript"),1),eM=x(require("typescript"),1),tM=x(require("typescript"),1),nM=x(require("typescript"),1),rM=x(require("typescript"),1),sM=x(require("typescript"),1),iM=x(require("typescript"),1),oM=x(require("typescript"),1);var aM=x(require("typescript"),1);var eh=x(require("typescript"),1);var th=x(require("typescript"),1);var nh=x(require("typescript"),1);var ZM=x(require("typescript"),1);var tO=x(require("typescript"),1),nO=x(require("typescript"),1),rO=x(require("typescript"),1),sO=x(require("typescript"),1),iO=x(tS(),1),oO=x(require("typescript"),1);var M$=(0,fS.createRequire)(U),Yp;(function(t){t.Block="block",t.Component="component",t.Constant="constant",t.Decorator="decorator",t.Directive="directive",t.Element="element",t.Enum="enum",t.Function="function",t.Interface="interface",t.NgModule="ng_module",t.Pipe="pipe",t.TypeAlias="type_alias",t.UndecoratedClass="undecorated_class",t.InitializerApiFunction="initializer_api_function",t.Namespace="namespace"})(Yp||(Yp={}));var Qp;(function(t){t.Property="property",t.Method="method",t.Getter="getter",t.Setter="setter",t.EnumItem="enum_item",t.Interface="interface",t.TypeAlias="type_alias"})(Qp||(Qp={}));var Jp;(function(t){t.Class="class",t.Member="member",t.Parameter="parameter"})(Jp||(Jp={}));var Zp;(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"})(Zp||(Zp={}));var nS;(function(t){t.Warning="warning",t.Error="error",t.Suppress="suppress"})(nS||(nS={}));var rS;(function(t){t[t.Fresh=0]="Fresh",t[t.Delta=1]="Delta",t[t.Analyzed=2]="Analyzed"})(rS||(rS={}));var sS;(function(t){t[t.Analysis=0]="Analysis",t[t.TypeCheckAndEmit=1]="TypeCheckAndEmit"})(sS||(sS={}));var iS;(function(t){t[t.Property=0]="Property",t[t.Method=1]="Method",t[t.Element=2]="Element",t[t.Template=3]="Template",t[t.Attribute=4]="Attribute",t[t.Reference=5]="Reference",t[t.Variable=6]="Variable",t[t.LetDeclaration=7]="LetDeclaration",t[t.Component=8]="Component",t[t.Directive=9]="Directive"})(iS||(iS={}));var lM=".$ngresource$",U$=lM+".ts";var cM=new Set(["WritableSignal","Signal","InputSignal","InputSignalWithTransform","ModelSignal"]);function oS(t){return(t.kind===at.Expression||t.kind===at.Variable||t.kind===at.LetDeclaration)&&(t.tsType.symbol!==void 0&&aS(t.tsType.symbol)||t.tsType.aliasSymbol!==void 0&&aS(t.tsType.aliasSymbol))}function aS(t){let e=t.getDeclarations();return e!==void 0&&e.some(n=>{let r=n.getSourceFile().fileName;return(eh.default.isInterfaceDeclaration(n)||eh.default.isTypeAliasDeclaration(n))&&cM.has(n.name.text)&&(r.includes("@angular/core")||r.includes("angular2/rc/packages/core")||r.includes("bin/packages/core"))})}var ut=class{run(t,e,n){return new uM(t,e,this).getDiagnostics(n)}},uM=class extends Ur{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){this.diagnostics.push(...this.check.visitNode(this.ctx,this.component,e)),super.visit(e)}visitTemplate(e){let n=e.tagName==="ng-template";this.visitAllTemplateNodes(e.attributes),n&&(this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs)),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.templateAttrs),this.visitAllTemplateNodes(e.variables),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}getDiagnostics(e){return this.diagnostics=[],this.visitAllTemplateNodes(e),this.diagnostics}},pM=`https://${wi.major!=="0"?`v${wi.major}.`:""}angular.dev/extended-diagnostics`;function Re(t,e){let n=`NG${Math.abs(t)}`,r=`${n}${e?": "+e:""}`,i=!r.match(/[.,;!?\n]$/)?".":"";return`${r}${i} Find more at ${pM}/${n}`}var hM=new Set(["set","update","asReadonly"]),fM=new Set(["name","length","prototype"]),dM=class extends ut{constructor(){super(...arguments);a(this,"code",R.INTERPOLATED_SIGNAL_NOT_INVOKED)}visitNode(e,n,r){if(r instanceof tr)return r.expressions.map(s=>s instanceof Ln?s.expression:s).filter(s=>s instanceof le).flatMap(s=>Yl(e,s,n));if(r instanceof ke&&r.inputs.length>0){let s=e.templateTypeChecker.getDirectivesOfNode(n,r);return r.inputs.flatMap(i=>zp(e,n,s,i))}else if(r instanceof de&&r.tagName==="ng-template"){let s=e.templateTypeChecker.getDirectivesOfNode(n,r),i=r.inputs.flatMap(l=>zp(e,n,s,l)),o=r.templateAttrs.flatMap(l=>l instanceof Rt?zp(e,n,s,l):[]);return i.concat(o)}else{if(r instanceof br)return r.branches.map(s=>s.expression).filter(s=>s instanceof ve).map(s=>{let i=s.ast;return i instanceof Ln?i.expression:i}).filter(s=>s instanceof le).flatMap(s=>Yl(e,s,n));if(r instanceof Dr&&r.expression instanceof ve){let s=r.expression.ast instanceof Ln?r.expression.ast.expression:r.expression.ast;if(s instanceof le)return Yl(e,s,n)}}return[]}};function zp(t,e,n,r){if(n!==null&&n.some(i=>i.inputs.getByBindingPropertyName(r.name)!==null))return[];let s=mM(r);return(r.type===K.Property||r.type===K.Class||r.type===K.Style||r.type===K.Attribute||r.type===K.Animation||r.type===K.LegacyAnimation)&&s?Yl(t,s,e):[]}function mM(t){if(t.value instanceof ve){if(t.value.ast instanceof Ln&&t.value.ast.expression instanceof le)return t.value.ast.expression;if(t.value.ast instanceof le)return t.value.ast}}function gM(t){return fM.has(t)}function yM(t){return hM.has(t)}function Yl(t,e,n){let r=t.templateTypeChecker.getSymbolOfNode(e,n);if(r!==null&&r.kind===at.Expression&&oS(r)){let i=t.templateTypeChecker.getSourceMappingAtTcbLocation(r.tcbLocation),o=Re(R.INTERPOLATED_SIGNAL_NOT_INVOKED,`${e.name} is a function and should be invoked: ${e.name}()}`);return[t.makeTemplateDiagnostic(i.span,o)]}if(!gM(e.name)&&!yM(e.name))return[];let s=t.templateTypeChecker.getSymbolOfNode(e.receiver,n);if(s!==null&&s.kind===at.Expression&&oS(s)){let i=t.templateTypeChecker.getSourceMappingAtTcbLocation(s.tcbLocation),o=Re(R.INTERPOLATED_SIGNAL_NOT_INVOKED,`${e.receiver.name} is a function and should be invoked: ${e.receiver.name}()`);return[t.makeTemplateDiagnostic(i.span,o)]}return[]}var vM={code:R.INTERPOLATED_SIGNAL_NOT_INVOKED,name:Fe.INTERPOLATED_SIGNAL_NOT_INVOKED,create:()=>new dM},SM=class extends ut{constructor(){super(...arguments);a(this,"code",R.INVALID_BANANA_IN_BOX)}visitNode(e,n,r){if(!(r instanceof vn))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,Re(R.INVALID_BANANA_IN_BOX,`In the two-way binding syntax the parentheses should be inside the brackets, ex. '${o}'`))]}},EM={code:R.INVALID_BANANA_IN_BOX,name:Fe.INVALID_BANANA_IN_BOX,create:()=>new SM},lS=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"}]]),TM=class extends ut{constructor(){super(...arguments);a(this,"code",R.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 de))return[];let s=r.templateAttrs.find(h=>lS.has(h.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=lS.get(s.name),c=Re(R.MISSING_CONTROL_FLOW_DIRECTIVE,`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)]}},xM={code:R.MISSING_CONTROL_FLOW_DIRECTIVE,name:Fe.MISSING_CONTROL_FLOW_DIRECTIVE,create:t=>new TM},wM=class extends ut{constructor(){super(...arguments);a(this,"code",R.MISSING_NGFOROF_LET)}visitNode(e,n,r){let s=r instanceof de;if(!(r instanceof de))return[];if(r.templateAttrs.length===0)return[];let i=r.templateAttrs.find(c=>c.name==="ngFor");if(i===void 0)return[];if(r.variables.length>0)return[];let o=Re(R.MISSING_NGFOROF_LET,"Your ngFor is missing a value. Did you forget to add the `let` keyword?");return[e.makeTemplateDiagnostic(i.sourceSpan,o)]}},CM={code:R.MISSING_NGFOROF_LET,name:Fe.MISSING_NGFOROF_LET,create:()=>new wM},AM=new Set(["ngIf","ngFor","ngForOf","ngForTrackBy","ngSwitchCase","ngSwitchDefault","ngIfThen","ngIfElse"]),NM=class extends ut{constructor(){super(...arguments);a(this,"code",R.MISSING_STRUCTURAL_DIRECTIVE)}run(e,n,r){let s=e.templateTypeChecker.getDirectiveMetadata(n);return!s||!s.isStandalone?[]:super.run(e,n,r)}visitNode(e,n,r){if(!(r instanceof de))return[];let s=r.templateAttrs.find(u=>!AM.has(u.name));if(!s)return[];let i=e.templateTypeChecker.getSymbolOfNode(r,n);if(i==null?void 0:i.directives.some(u=>{var h;return(h=u.selector)==null?void 0:h.includes(`[${s.name}]`)}))return[];let l=s.keySpan||s.sourceSpan,c=Re(R.MISSING_STRUCTURAL_DIRECTIVE,`A structural directive \`${s.name}\` was used in the template without a corresponding import in the component. Make sure that the directive is included in the \`@Component.imports\` array of this component.`);return[e.makeTemplateDiagnostic(l,c)]}},IM={code:R.MISSING_STRUCTURAL_DIRECTIVE,name:Fe.MISSING_STRUCTURAL_DIRECTIVE,create:()=>new NM},DM=class extends ut{constructor(){super(...arguments);a(this,"code",R.NULLISH_COALESCING_NOT_NULLABLE)}visitNode(e,n,r){if(!(r instanceof xe)||r.operation!=="??")return[];let s=e.templateTypeChecker.getSymbolOfNode(r.left,n);if(s===null||s.kind!==at.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!==at.Expression)return[];let l=e.templateTypeChecker.getSourceMappingAtTcbLocation(o.tcbLocation);return l===null?[]:[e.makeTemplateDiagnostic(l.span,Re(R.NULLISH_COALESCING_NOT_NULLABLE,"The left side of this nullish coalescing operation does not include 'null' or 'undefined' in its type, therefore the '??' operator can be safely removed."))]}},bM={code:R.NULLISH_COALESCING_NOT_NULLABLE,name:Fe.NULLISH_COALESCING_NOT_NULLABLE,create:t=>(t.strictNullChecks===void 0?!!t.strict:!!t.strictNullChecks)?new DM:null},_M=class extends ut{constructor(e){super();a(this,"noUncheckedIndexedAccess");a(this,"code",R.OPTIONAL_CHAIN_NOT_NULLABLE);this.noUncheckedIndexedAccess=e}visitNode(e,n,r){if(!(r instanceof Ut)&&!(r instanceof Ze)&&!(r instanceof Ar))return[];if(r.receiver instanceof Pn&&!this.noUncheckedIndexedAccess)return[];let s=e.templateTypeChecker.getSymbolOfNode(r.receiver,n);if(s===null||s.kind!==at.Expression)return[];let i=s.tsType;if(i.flags&(nh.default.TypeFlags.Any|nh.default.TypeFlags.Unknown))return[];if(i.getNonNullableType()!==i)return[];let o=e.templateTypeChecker.getSymbolOfNode(r,n);if(o.kind!==at.Expression)return[];let l=e.templateTypeChecker.getSourceMappingAtTcbLocation(o.tcbLocation);if(l===null)return[];let c=r instanceof Ze?"the '?.' operator can be replaced with the '.' operator":"the '?.' operator can be safely removed";return[e.makeTemplateDiagnostic(l.span,Re(R.OPTIONAL_CHAIN_NOT_NULLABLE,`The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore ${c}`))]}},kM={code:R.OPTIONAL_CHAIN_NOT_NULLABLE,name:Fe.OPTIONAL_CHAIN_NOT_NULLABLE,create:t=>{if(!(t.strictNullChecks===void 0?!!t.strict:!!t.strictNullChecks))return null;let n=!!t.noUncheckedIndexedAccess;return new _M(n)}},cS="ngSkipHydration",RM=class extends ut{constructor(){super(...arguments);a(this,"code",R.SKIP_HYDRATION_NOT_STATIC)}visitNode(e,n,r){if(r instanceof Rt&&r.name===cS){let i=Re(R.SKIP_HYDRATION_NOT_STATIC,"ngSkipHydration should not be used as a binding");return[e.makeTemplateDiagnostic(r.sourceSpan,i)]}let s=["true",""];if(r instanceof sn&&r.name===cS&&!s.includes(r.value)&&r.value!==void 0){let i=Re(R.SKIP_HYDRATION_NOT_STATIC,`ngSkipHydration only accepts "true" or "" as value or no value at all. For example 'ngSkipHydration="true"' or 'ngSkipHydration'`);return[e.makeTemplateDiagnostic(r.sourceSpan,i)]}return[]}},PM={code:R.SKIP_HYDRATION_NOT_STATIC,name:Fe.SKIP_HYDRATION_NOT_STATIC,create:()=>new RM},uS=["px","%","em"],LM=class extends ut{constructor(){super(...arguments);a(this,"code",R.SUFFIX_NOT_SUPPORTED)}visitNode(e,n,r){return r instanceof Rt?!r.keySpan.toString().startsWith("attr.")||!uS.some(i=>r.name.endsWith(`.${i}`))?[]:[e.makeTemplateDiagnostic(r.keySpan,Re(R.SUFFIX_NOT_SUPPORTED,`The ${uS.map(i=>`'.${i}'`).join(", ")} suffixes are only supported on style bindings`))]:[]}},MM={code:R.SUFFIX_NOT_SUPPORTED,name:Fe.SUFFIX_NOT_SUPPORTED,create:()=>new LM},OM=class extends ut{constructor(){super(...arguments);a(this,"code",R.TEXT_ATTRIBUTE_NOT_BINDING)}visitNode(e,n,r){if(!(r instanceof sn))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}"'.`),i=Re(R.TEXT_ATTRIBUTE_NOT_BINDING,i)}return[e.makeTemplateDiagnostic(r.sourceSpan,i)]}},FM={code:R.TEXT_ATTRIBUTE_NOT_BINDING,name:Fe.TEXT_ATTRIBUTE_NOT_BINDING,create:()=>new OM},BM=class extends ut{constructor(){super(...arguments);a(this,"code",R.UNINVOKED_FUNCTION_IN_EVENT_BINDING)}visitNode(e,n,r){if(!(r instanceof vn))return[];if(r.type!==De.Regular&&r.type!==De.LegacyAnimation)return[];if(!(r.handler instanceof ve))return[];let s=r.handler.source||"";if(r.handler.ast instanceof Cr)return r.handler.ast.expressions.flatMap(i=>Xp(i,n,r,s,e));if(r.handler.ast instanceof ii){let{trueExp:i,falseExp:o}=r.handler.ast;return[i,o].flatMap(l=>Xp(l,n,r,s,e))}return Xp(r.handler.ast,n,r,s,e)}};function Xp(t,e,n,r,s){var o;if(t instanceof Ct||t instanceof Ut)return[];if(t instanceof oi)return[s.makeTemplateDiagnostic(n.sourceSpan,"Arrow function will not be invoked in this event listener. Did you intend to call a method?")];if(!(t instanceof le)&&!(t instanceof Ze))return[];let i=s.templateTypeChecker.getSymbolOfNode(t,e);if(i!==null&&i.kind===at.Expression&&((o=i.tsType.getCallSignatures())==null?void 0:o.length)>0){let l=$M(t,r),c=Re(R.UNINVOKED_FUNCTION_IN_EVENT_BINDING,`Function in event binding should be invoked: ${l}()`);return[s.makeTemplateDiagnostic(n.sourceSpan,c)]}return[]}function $M(t,e){return e.substring(t.span.start,t.span.end)}var UM={code:R.UNINVOKED_FUNCTION_IN_EVENT_BINDING,name:Fe.UNINVOKED_FUNCTION_IN_EVENT_BINDING,create:()=>new BM},VM=class extends ut{constructor(){super(...arguments);a(this,"code",R.UNPARENTHESIZED_NULLISH_COALESCING)}visitNode(e,n,r){if(r instanceof xe&&(r.operation==="&&"||r.operation==="||")&&(r.left instanceof xe&&r.left.operation==="??"||r.right instanceof xe&&r.right.operation==="??")){let s=e.templateTypeChecker.getSymbolOfNode(r,n);if((s==null?void 0:s.kind)!==at.Expression)return[];let i=e.templateTypeChecker.getSourceMappingAtTcbLocation(s.tcbLocation);return i===null?[]:[e.makeTemplateDiagnostic(i.span,Re(R.UNPARENTHESIZED_NULLISH_COALESCING,"Parentheses are required to disambiguate precedence when mixing '??' with '&&' and '||'"))]}return[]}},GM={code:R.UNPARENTHESIZED_NULLISH_COALESCING,name:Fe.UNPARENTHESIZED_NULLISH_COALESCING,create:()=>new VM},HM=class extends ut{constructor(){super(...arguments);a(this,"code",R.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,Re(R.UNUSED_LET_DECLARATION,`@let ${l.name} is declared but its value is never read.`)));return this.analysis.clear(),s}visitNode(e,n,r){if(r instanceof En)this.getAnalysis(n).allLetDeclarations.add(r);else if(r instanceof oe){let s=r instanceof ve?r.ast:r,i=e.templateTypeChecker.getExpressionTarget(s,n);i!==null&&i instanceof En&&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)}},qM={code:R.UNUSED_LET_DECLARATION,name:Fe.UNUSED_LET_DECLARATION,create:()=>new HM},WM=class extends ut{constructor(){super(...arguments);a(this,"code",R.UNINVOKED_TRACK_FUNCTION)}visitNode(e,n,r){var i;if(!(r instanceof Fn)||!r.trackBy)return[];if(r.trackBy.ast instanceof Ct||r.trackBy.ast instanceof Ut)return[];if(!(r.trackBy.ast instanceof le)&&!(r.trackBy.ast instanceof Ze))return[];let s=e.templateTypeChecker.getSymbolOfNode(r.trackBy.ast,n);if(s!==null&&s.kind===at.Expression&&((i=s.tsType.getCallSignatures())==null?void 0:i.length)>0){let o=jM(r.trackBy.ast,r.trackBy.source||""),l=Re(R.UNINVOKED_TRACK_FUNCTION,`The track function in the @for block should be invoked: ${o}(/* arguments */)`);return[e.makeTemplateDiagnostic(r.sourceSpan,l)]}return[]}};function jM(t,e){return e.substring(t.span.start,t.span.end)}var KM={code:R.UNINVOKED_TRACK_FUNCTION,name:Fe.UNINVOKED_TRACK_FUNCTION,create:()=>new WM},zM=class extends ut{constructor(){super(...arguments);a(this,"code",R.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION)}visitNode(e,n,r){return r instanceof tr?r.expressions.flatMap(s=>XM(s,n,e)):[]}};function XM(t,e,n){var s;if(!(t instanceof le)&&!(t instanceof Ze))return[];let r=n.templateTypeChecker.getSymbolOfNode(t,e);if(r!==null&&r.kind===at.Expression&&((s=r.tsType.getCallSignatures())==null?void 0:s.length)>0){let i=Re(R.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION,`Function in text interpolation should be invoked: ${t.name}()`),o=n.templateTypeChecker.getSourceMappingAtTcbLocation(r.tcbLocation);return[n.makeTemplateDiagnostic(o.span,i)]}return[]}var YM={code:R.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION,name:Fe.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION,create:()=>new zM},QM=class extends ut{constructor(){super(...arguments);a(this,"code",R.DEFER_TRIGGER_MISCONFIGURATION)}visitNode(e,n,r){var h,d,p;if(!(r instanceof On))return[];let s=Object.keys(r.triggers),i=Object.keys(r.prefetchTriggers),o=s.map(g=>r.triggers[g]).filter(g=>g!=null),l=i.map(g=>r.prefetchTriggers[g]).filter(g=>g!=null),c=[];if(o.some(g=>g instanceof ai)&&(o.length>1&&c.push(e.makeTemplateDiagnostic(r.sourceSpan,Re(R.DEFER_TRIGGER_MISCONFIGURATION,"The 'immediate' trigger makes additional triggers redundant."))),l.length>0&&c.push(e.makeTemplateDiagnostic(r.sourceSpan,Re(R.DEFER_TRIGGER_MISCONFIGURATION,"Prefetch triggers have no effect because 'immediate' executes earlier.")))),o.length===1&&l.length>0){let g=o[0];for(let v of l){if(g instanceof gs&&v instanceof gs){let P=g.delay,L=v.delay;if(L>=P){let ne=`The Prefetch 'timer(${L}ms)' is not scheduled before the main 'timer(${P}ms)', so it won\u2019t run prior to rendering. Lower the prefetch delay or remove it.`;c.push(e.makeTemplateDiagnostic((h=v.sourceSpan)!=null?h:r.sourceSpan,Re(R.DEFER_TRIGGER_MISCONFIGURATION,ne)))}}let N=g instanceof ms&&v instanceof ms,D=g instanceof ys&&v instanceof ys,b=g instanceof Ir&&v instanceof Ir;if(N||D||b){let P=g.reference,L=v.reference;if(P&&L&&P===L){let se=`Prefetch '${g.constructor.name.replace("DeferredTrigger","").toLowerCase()}' matches the main trigger and provides no benefit. Remove the prefetch modifier.`;c.push(e.makeTemplateDiagnostic((d=v.sourceSpan)!=null?d:r.sourceSpan,Re(R.DEFER_TRIGGER_MISCONFIGURATION,se)))}continue}if(g.constructor===v.constructor&&!(g instanceof gs)){let L=`Prefetch '${g instanceof ai?"immediate":g.constructor.name.replace("DeferredTrigger","").toLowerCase()}' matches the main trigger and provides no benefit. Remove the prefetch modifier.`;c.push(e.makeTemplateDiagnostic((p=v.sourceSpan)!=null?p:r.sourceSpan,Re(R.DEFER_TRIGGER_MISCONFIGURATION,L)))}}}return c}},JM={code:R.DEFER_TRIGGER_MISCONFIGURATION,name:Fe.DEFER_TRIGGER_MISCONFIGURATION,create:()=>new QM};var eO=[EM,bM,kM,xM,FM,CM,IM,MM,vM,UM,qM,PM,GM,KM,YM,JM],iU=new Set([Fe.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION,Fe.UNUSED_STANDALONE_IMPORTS,...eO.map(t=>t.name)]);var aU=[Pl,Ll,...Dp,...Ml];var lU=[Pl,Ll,...Ml];var pS;(function(t){t[t.Fresh=0]="Fresh",t[t.IncrementalTypeScript=1]="IncrementalTypeScript",t[t.IncrementalResource=2]="IncrementalResource"})(pS||(pS={}));var hO=x(require("typescript"),1);var fO=x(require("typescript"),1);var mS=x(require("typescript"),1),dO=x(require("typescript"),1),mO=x(require("typescript"),1);var BU=(0,dS.createRequire)(U);var rh;(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"})(rh||(rh={}));var qU=mS.default.version;A();var gS=require("module");var zU=(0,gS.createRequire)(U),sh;(function(t){t[t.debug=0]="debug",t[t.info=1]="info",t[t.warn=2]="warn",t[t.error=3]="error"})(sh||(sh={}));var ih="\x1B[0m",gO="\x1B[31m",yO="\x1B[33m",vO="\x1B[36m",XU=`${vO}Debug:${ih}`,YU=`${yO}Warning:${ih}`,QU=`${gO}Error:${ih}`;A();var xS=require("module");A();var yS=require("module"),Di=(0,yS.createRequire)(U),vS=(t=>typeof Di!="undefined"?Di:typeof Proxy!="undefined"?new Proxy(t,{get:(e,n)=>(typeof Di!="undefined"?Di:e)[n]}):t)(function(t){if(typeof Di!="undefined")return Di.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var pt=x(require("fs"),1),wS=require("module"),Ot=x(require("path"),1),CS=x(require("url"),1);var r8=(0,xS.createRequire)(U),SO=class{pwd(){return this.normalize(process.cwd())}chdir(t){process.chdir(t)}resolve(...t){return this.normalize(Ot.resolve(...t))}dirname(t){return this.normalize(Ot.dirname(t))}join(t,...e){return this.normalize(Ot.join(t,...e))}isRoot(t){return this.dirname(t)===this.normalize(t)}isRooted(t){return Ot.isAbsolute(t)}relative(t,e){return this.normalize(Ot.relative(t,e))}basename(t,e){return Ot.basename(t,e)}extname(t){return Ot.extname(t)}normalize(t){return t.replace(/\\/g,"/")}},oh=typeof __filename!="undefined",AS=oh?null:U,ES,TS,SS=oh?__filename:(TS=(ES=CS.fileURLToPath)==null?void 0:ES(AS))!=null?TS:null,EO=class extends SO{constructor(){super(...arguments);a(this,"_caseSensitive")}isCaseSensitive(){return this._caseSensitive===void 0&&(this._caseSensitive=SS!==null?!pt.default.existsSync(this.normalize(TO(SS))):!0),this._caseSensitive}exists(e){return pt.default.existsSync(e)}readFile(e){return pt.default.readFileSync(e,"utf8")}readFileBuffer(e){return pt.default.readFileSync(e)}readdir(e){return pt.default.readdirSync(e)}lstat(e){return pt.default.lstatSync(e)}stat(e){return pt.default.statSync(e)}realpath(e){return this.resolve(pt.default.realpathSync(e))}getDefaultLibLocation(){let e=oh?vS:(0,wS.createRequire)(AS);return this.resolve(e.resolve("typescript"),"..")}},NS=class extends EO{writeFile(t,e,n=!1){pt.default.writeFileSync(t,e,n?{flag:"wx"}:void 0)}removeFile(t){pt.default.unlinkSync(t)}symlink(t,e){pt.default.symlinkSync(t,e)}copyFile(t,e){pt.default.copyFileSync(t,e)}moveFile(t,e){pt.default.renameSync(t,e)}ensureDir(t){pt.default.mkdirSync(t,{recursive:!0})}removeDeep(t){pt.default.rmdirSync(t,{recursive:!0})}};function TO(t){return t.replace(/\w/g,e=>e.toUpperCase()===e?e.toLowerCase():e.toUpperCase())}var O8=(0,IS.createRequire)(U),j8=new co("21.2.0"),xO={ngDevMode:!1,ngI18nClosureMode:!1},K8=me(C({},xO),{ngJitMode:!1});fg(new NS);0&&(module.exports={angularJitApplicationTransform});
|
|
42
|
+
Please report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.`)}function dp(t,e){return e||t.import!==null&&t.import.from==="@angular/core"}var ey="!Array<{type: !Function, args: (undefined|!Array<?>)}>";function ty(t,e){let n=[],s=t.expression;switch(s.kind){case N.default.SyntaxKind.Identifier:n.push(N.default.factory.createPropertyAssignment("type",s));break;case N.default.SyntaxKind.CallExpression:let r=s;if(n.push(N.default.factory.createPropertyAssignment("type",r.expression)),r.arguments.length){let i=[];for(let l of r.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 W_(t,e,n,s){let r=[];for(let l of n){if(!l.type&&l.decorators.length===0){r.push(N.default.factory.createNull());continue}let c=l.type?ny(e,l.type):void 0,u=[N.default.factory.createPropertyAssignment("type",c||N.default.factory.createIdentifier("undefined"))],h=[];for(let d of l.decorators)h.push(ty(d,t));h.length&&u.push(N.default.factory.createPropertyAssignment("decorators",N.default.factory.createArrayLiteralExpression(h))),r.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(r,!0)),o=N.default.factory.createPropertyDeclaration([N.default.factory.createToken(N.default.SyntaxKind.StaticKeyword)],"ctorParameters",void 0,void 0,i);return s&&N.default.setSyntheticLeadingComments(o,[{kind:N.default.SyntaxKind.MultiLineCommentTrivia,text:["*"," * @type {function(): !Array<(null|{"," * type: ?,",` * decorators: (undefined|${ey}),`," * })>}"," * @nocollapse"," "].join(`
|
|
43
|
+
`),pos:-1,end:-1,hasTrailingNewLine:!0}]),o}function ny(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 r=e.types.filter(i=>!(N.default.isLiteralTypeNode(i)&&i.literal.kind===N.default.SyntaxKind.NullKeyword));return r.length===1?ny(t,r[0]):void 0;default:return}}function j_(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 sy(t,e,n,s,r,i){function o(c,u){r&&N.default.setSyntheticLeadingComments(c,[{kind:N.default.SyntaxKind.MultiLineCommentTrivia,text:`* @type {${u}} `,pos:-1,end:-1,hasTrailingNewLine:!0}])}function l(c,u){let h=[];for(let[g,v]of u.entries())h.push(N.default.factory.createPropertyAssignment(g,N.default.factory.createArrayLiteralExpression(v.map(E=>ty(E,c)))));let d=N.default.factory.createObjectLiteralExpression(h,!0),p=N.default.factory.createPropertyDeclaration([N.default.factory.createToken(N.default.SyntaxKind.StaticKeyword)],"propDecorators",void 0,void 0,d);return o(p,`!Object<string, ${ey}>`),p}return c=>{let u=Jg(c);function h(E){let I=t.getSymbolAtLocation(E);if(!I||!j_(t,I)||!I.declarations||I.declarations.length===0)return;if(N.default.isQualifiedName(E)){let b=h(E.left);return b===void 0?void 0:N.default.factory.createPropertyAccessExpression(b,E.right)}let D=I.declarations[0];return Zg(D)&&(u==null||u.add(D),D.name!==void 0)?N.default.setOriginalNode(N.default.factory.createIdentifier(D.name.text),D.name):N.default.setOriginalNode(N.default.factory.createIdentifier(E.text),E)}function d(E){E=N.default.visitEachChild(E,v,c);let I=[],D=[],b=e.getDecoratorsOfDeclaration(E)||[];for(let ne of b){let re=ne.node;if(!dp(ne,s)){I.push(re);continue}D.push(re)}if(!D.length)return[void 0,E,[]];if(!E.name||!N.default.isIdentifier(E.name))return n.push({file:E.getSourceFile(),start:E.getStart(),length:E.getEnd()-E.getStart(),messageText:"Cannot process decorators for class element with non-analyzable name.",category:N.default.DiagnosticCategory.Error,code:0}),[void 0,E,[]];let P=N.default.canHaveModifiers(E)?N.default.getModifiers(E):void 0,L;return(I.length||P!=null&&P.length)&&(L=N.default.setTextRange(N.default.factory.createNodeArray([...I,...P||[]]),E.modifiers)),[E.name.text,z_(E,L),D]}function p(E){E=N.default.visitEachChild(E,v,c);let I=[],D=E.parameters,b=[];for(let L of D){let ne=[],re={decorators:[],type:null},Ge=e.getDecoratorsOfDeclaration(L)||[];for(let is of Ge){let os=is.node;if(!dp(is,s)){ne.push(os);continue}re.decorators.push(os)}L.type&&(re.type=L.type),b.push(re);let Ne,Nt=N.default.getModifiers(L);(ne.length||Nt!=null&&Nt.length)&&(Ne=[...ne,...Nt||[]]);let Qs=N.default.factory.updateParameterDeclaration(L,Ne,L.dotDotDotToken,L.name,L.questionToken,L.type,L.initializer);I.push(Qs)}return[N.default.factory.updateConstructorDeclaration(E,N.default.getModifiers(E),I,E.body),b]}function g(E){let I=[],D=new Map,b=null;for(let re of E.members){switch(re.kind){case N.default.SyntaxKind.PropertyDeclaration:case N.default.SyntaxKind.GetAccessor:case N.default.SyntaxKind.SetAccessor:case N.default.SyntaxKind.MethodDeclaration:{let[Ge,Ne,Nt]=d(re);I.push(Ne),Ge&&D.set(Ge,Nt);continue}case N.default.SyntaxKind.Constructor:{if(!re.body)break;let[Ne,Nt]=p(re);b=Nt,I.push(Ne);continue}default:break}I.push(N.default.visitEachChild(re,v,c))}let L=(e.getDecoratorsOfDeclaration(E)||[]).some(re=>dp(re,s));b&&(L||b.some(re=>!!re.decorators.length))&&I.push(W_(n,h,b,r)),D.size&&I.push(l(n,D));let ne=N.default.setTextRange(N.default.factory.createNodeArray(I,E.members.hasTrailingComma),E.members);return N.default.factory.updateClassDeclaration(E,E.modifiers,E.name,E.typeParameters,E.heritageClauses,ne)}function v(E){return N.default.isClassDeclaration(E)&&(i===void 0||i(E))?g(E):N.default.visitEachChild(E,v,c)}return E=>N.default.visitEachChild(E,v,c)}}function z_(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)}var K_="@angular/core";function ry(t){return t.import!==null&&t.import.from===K_}function Zo(t,e,n){return n?t.name===e:ry(t)?t.import.name===e:!1}function X_(t,e,n){return t.filter(s=>{var i;let r=n?s.name:(i=s.import)==null?void 0:i.name;return r===void 0||!e.includes(r)?!1:n||ry(s)})}function iy(t){for(;Hn.default.isAsExpression(t)||Hn.default.isParenthesizedExpression(t);)t=t.expression;return t}function Y_(t){if(t=iy(t),!Hn.default.isArrowFunction(t)&&!Hn.default.isFunctionExpression(t))return null;let e=t.body;if(Hn.default.isBlock(e)){if(e.statements.length!==1)return null;let n=e.statements[0];return!Hn.default.isReturnStatement(n)||n.expression===void 0?null:n.expression}else return e}function Q_(t,e){if(t=iy(t),!Hn.default.isCallExpression(t)||t.arguments.length!==1)return null;let n=Hn.default.isPropertyAccessExpression(t.expression)?t.expression.name:t.expression;if(!Hn.default.isIdentifier(n))return null;let s=Y_(t.arguments[0]);if(s===null)return null;let r=e.getImportOfIdentifier(n);return r===null||r.from!=="@angular/core"||r.name!=="forwardRef"?null:s}var mp;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(mp||(mp={}));var Cg;(function(t){t[t.Selector=0]="Selector",t[t.HostDirective=1]="HostDirective"})(Cg||(Cg={}));var gp;(function(t){t[t.FULL=0]="FULL",t[t.PARTIAL=1]="PARTIAL",t[t.LOCAL=2]="LOCAL"})(gp||(gp={}));var Ag;(function(t){t[t.PRIMARY=0]="PRIMARY",t[t.SHARED=1]="SHARED",t[t.WEAK=2]="WEAK"})(Ag||(Ag={}));function nk(){let t=new Set,e=(s,r)=>t.has(`${s.fileName}@@${r}`),n=(s,r)=>t.add(`${s.fileName}@@${r}`);return(s,r)=>{let i=s;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(r))return n(i,r),null;let l=null,c=1;do l=`${r}_${c++}`;while(!o(l));return n(i,l),yp.default.factory.createUniqueName(l,yp.default.GeneratedIdentifierFlags.Optimistic)}}function sk(t,e){return n=>{let{affectedFiles:s,newImports:r,updatedImports:i,reusedOriginalAliasDeclarations:o,deletedImports:l}=t.finalize();if(o.size>0){let u=Jg(n);u!==null&&o.forEach(h=>u.add(h))}if(e!==void 0)for(let[u,h]of e.entries())h.length>0&&s.add(u);let c=u=>{if(!rs.default.isImportDeclaration(u))return u;if(l.has(u))return;if(u.importClause===void 0||!rs.default.isImportClause(u.importClause))return u;let h=u.importClause;if(h.namedBindings===void 0||!rs.default.isNamedImports(h.namedBindings)||!i.has(h.namedBindings))return u;let d=n.factory.updateImportClause(h,h.phaseModifier,h.name,i.get(h.namedBindings)),p=n.factory.updateImportDeclaration(u,u.modifiers,d,u.moduleSpecifier,u.attributes);return rs.default.setOriginalNode(p,{importClause:d,kind:p.kind}),p};return u=>{var g,v;if(!s.has(u.fileName))return u;u=rs.default.visitEachChild(u,c,n);let h=(g=e==null?void 0:e.get(u.fileName))!=null?g:[],d=[],p=[];for(let E of u.statements)rk(E)?d.push(E):p.push(E);return n.factory.updateSourceFile(u,[...d,...(v=r.get(u.fileName))!=null?v:[],...h,...p],u.isDeclarationFile,u.referencedFiles,u.typeReferenceDirectives,u.hasNoDefaultLib,u.libReferenceDirectives)}}}function rk(t){return rs.default.isImportDeclaration(t)||rs.default.isImportEqualsDeclaration(t)||rs.default.isNamespaceImport(t)}function ik(t,e){let n=ay(e),s=t.directReuseCache.get(n);if(s!==void 0)return s;let r=t.namespaceImportReuseCache.get(e.exportModuleSpecifier);return r===void 0?null:e.exportSymbolName===null?r:[r,oy.default.factory.createIdentifier(e.exportSymbolName)]}function Ig(t,e,n){e.directReuseCache.set(ay(t),n),t.exportSymbolName===null&&!Array.isArray(n)&&e.namespaceImportReuseCache.set(t.exportModuleSpecifier,n)}function ay(t){return`${t.requestedFile.fileName}:${t.exportModuleSpecifier}:${t.exportSymbolName}${t.unsafeAliasOverride?":"+t.unsafeAliasOverride:""}`}function ok(t,e,n){let s=null;for(let l=e.statements.length-1;l>=0;l--){let c=e.statements[l];if(!(!ss.default.isImportDeclaration(c)||!ss.default.isStringLiteral(c.moduleSpecifier)||!c.importClause||c.importClause.phaseModifier===ss.default.SyntaxKind.TypeKeyword||c.moduleSpecifier.text!==n.exportModuleSpecifier)&&c.importClause.namedBindings){let h=c.importClause.namedBindings;if(ss.default.isNamespaceImport(h))return t.reusedAliasDeclarations.add(h),n.exportSymbolName===null?h.name:[h.name,ss.default.factory.createIdentifier(n.exportSymbolName)];if(ss.default.isNamedImports(h)&&n.exportSymbolName!==null){let d=h.elements.find(p=>{var v;let g;return n.unsafeAliasOverride?g=((v=p.propertyName)==null?void 0:v.text)===n.exportSymbolName&&p.name.text===n.unsafeAliasOverride:g=p.propertyName?p.propertyName.text===n.exportSymbolName:p.name.text===n.exportSymbolName,!p.isTypeOnly&&g});if(d!==void 0)return t.reusedAliasDeclarations.add(d),d.name;s=c}}}if(s===null||n.exportSymbolName===null)return null;t.updatedImports.has(s)||t.updatedImports.set(s,[]);let r=t.updatedImports.get(s),i=ss.default.factory.createIdentifier(n.exportSymbolName),o=n.unsafeAliasOverride?ss.default.factory.createIdentifier(n.unsafeAliasOverride):t.generateUniqueIdentifier(e,n.exportSymbolName);return r.push({propertyName:i,fileUniqueAlias:o}),o!=null?o:i}var ak=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,s,r,i,o;this.config={shouldUseSingleQuotes:(e=t.shouldUseSingleQuotes)!=null?e:(()=>!1),rewriter:(n=t.rewriter)!=null?n:null,disableOriginalSourceFileReuse:(s=t.disableOriginalSourceFileReuse)!=null?s:!1,forceGenerateNamespacesForNewImports:(r=t.forceGenerateNamespacesForNewImports)!=null?r:!1,namespaceImportPrefix:(i=t.namespaceImportPrefix)!=null?i:"i",generateUniqueIdentifier:(o=t.generateUniqueIdentifier)!=null?o:nk()},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 s,r;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&&((r=(s=this.removedImports.get(t.requestedFile))==null?void 0:s.get(t.exportModuleSpecifier))==null||r.delete(t.exportSymbolName));let e=ik(this.reuseGeneratedImportsTracker,t);if(e!==null)return Ng(!!t.asTypeReference,e);let n=this._generateNewImport(t);return Ig(t,this.reuseGeneratedImportsTracker,n),Ng(!!t.asTypeReference,n)}removeImport(t,e,n){let s=this.removedImports.get(t);s||(s=new Map,this.removedImports.set(t,s));let r=s.get(n);r||(r=new Set,s.set(n,r)),r.add(e)}_generateNewImport(t){var h;let{requestedFile:e}=t,n=this.config.disableOriginalSourceFileReuse,s=this.config.forceGenerateNamespacesForNewImports;if(!n){let d=ok(this.reuseSourceFileImportsTracker,e,t);if(d!==null)return d}let{namedImports:r,namespaceImports:i}=this._getNewImportsTrackerForFile(e);if(t.exportSymbolName===null||s){let d=`${this.config.namespaceImportPrefix}${this.nextUniqueIndex++}`;this.config.rewriter&&(d=this.config.rewriter.rewriteNamespaceImportIdentifier(d,t.exportModuleSpecifier));let p=xe.default.factory.createNamespaceImport((h=this.config.generateUniqueIdentifier(e,d))!=null?h:xe.default.factory.createIdentifier(d));return i.set(t.exportModuleSpecifier,p),Ig(me(x({},t),{exportSymbolName:null}),this.reuseGeneratedImportsTracker,p.name),t.exportSymbolName!==null?[p.name,xe.default.factory.createIdentifier(t.exportSymbolName)]:p.name}r.has(t.exportModuleSpecifier)||r.set(t.exportModuleSpecifier,[]);let o=xe.default.factory.createIdentifier(t.exportSymbolName),l=t.unsafeAliasOverride?null:this.config.generateUniqueIdentifier(e,t.exportSymbolName),c,u;return t.unsafeAliasOverride?(c=!0,u=xe.default.factory.createIdentifier(t.unsafeAliasOverride)):l!==null?(c=!0,u=l):(c=!1,u=o),r.get(t.exportModuleSpecifier).push(xe.default.factory.createImportSpecifier(!1,c?o:void 0,u)),u}finalize(){let t=new Set,e=new Map,n=new Map,s=new Set,r=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,h=l.moduleSpecifier.text,d=u.elements.concat(o.map(({propertyName:p,fileUniqueAlias:g})=>xe.default.factory.createImportSpecifier(!1,g!==null?p:void 0,g!=null?g:p))).filter(p=>this._canAddSpecifier(c,h,p));t.add(c.fileName),d.length===0?s.add(l):e.set(u,xe.default.factory.updateNamedImports(u,d))}),this.removedImports.forEach((o,l)=>{var u;if(o.size===0)return;let c=r.get(l);c||(c=l.statements.filter(xe.default.isImportDeclaration),r.set(l,c));for(let h of c){if(!((u=h.importClause)!=null&&u.namedBindings)||!xe.default.isNamedImports(h.importClause.namedBindings)||this.reuseSourceFileImportsTracker.updatedImports.has(h)||s.has(h))continue;let d=h.importClause.namedBindings,p=h.moduleSpecifier.text,g=d.elements.filter(v=>this._canAddSpecifier(l,p,v));g.length===0?(t.add(l.fileName),s.add(h)):g.length!==d.elements.length&&(t.add(l.fileName),e.set(d,xe.default.factory.updateNamedImports(d,g)))}}),this.newImports.forEach(({namedImports:o,namespaceImports:l,sideEffectImports:c},u)=>{let h=this.config.shouldUseSingleQuotes(u),d=u.fileName;c.forEach(p=>{i(d,xe.default.factory.createImportDeclaration(void 0,void 0,xe.default.factory.createStringLiteral(p)))}),l.forEach((p,g)=>{let v=xe.default.factory.createImportDeclaration(void 0,xe.default.factory.createImportClause(void 0,void 0,p),xe.default.factory.createStringLiteral(g,h));xe.default.setOriginalNode(p.name,v),i(d,v)}),o.forEach((p,g)=>{let v=p.filter(E=>this._canAddSpecifier(u,g,E));if(v.length>0){let E=xe.default.factory.createImportDeclaration(void 0,xe.default.factory.createImportClause(void 0,void 0,xe.default.factory.createNamedImports(v)),xe.default.factory.createStringLiteral(g,h));i(d,E)}})}),{affectedFiles:t,newImports:n,updatedImports:e,reusedOriginalAliasDeclarations:this.reuseSourceFileImportsTracker.reusedAliasDeclarations,deletedImports:s}}toTsTransform(t){return sk(this,t)}transformTsFile(t,e,n){let s=n?new Map([[e.fileName,n]]):void 0;return this.toTsTransform(s)(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 s,r;return!((r=(s=this.removedImports.get(t))==null?void 0:s.get(e))!=null&&r.has((n.propertyName||n.name).text))}};function Ng(t,e){return t?Array.isArray(e)?xe.default.factory.createQualifiedName(e[0],e[1]):e:Array.isArray(e)?xe.default.factory.createPropertyAccessExpression(e[0],e[1]):e}var Dg;(function(t){t.CLOSURE="* @pureOrBreakMyCode ",t.TERSER="@__PURE__"})(Dg||(Dg={}));var Ni;(function(t){t[t.Unaccounted=0]="Unaccounted",t[t.Setup=1]="Setup",t[t.TypeScriptProgramCreate=2]="TypeScriptProgramCreate",t[t.Reconciliation=3]="Reconciliation",t[t.ResourceUpdate=4]="ResourceUpdate",t[t.TypeScriptDiagnostics=5]="TypeScriptDiagnostics",t[t.Analysis=6]="Analysis",t[t.Resolve=7]="Resolve",t[t.CycleDetection=8]="CycleDetection",t[t.TcbGeneration=9]="TcbGeneration",t[t.TcbUpdateProgram=10]="TcbUpdateProgram",t[t.TypeScriptEmit=11]="TypeScriptEmit",t[t.Compile=12]="Compile",t[t.TtcAutocompletion=13]="TtcAutocompletion",t[t.TtcDiagnostics=14]="TtcDiagnostics",t[t.TtcSuggestionDiagnostics=15]="TtcSuggestionDiagnostics",t[t.TtcSymbol=16]="TtcSymbol",t[t.LsReferencesAndRenames=17]="LsReferencesAndRenames",t[t.LsQuickInfo=18]="LsQuickInfo",t[t.LsDefinition=19]="LsDefinition",t[t.LsCompletions=20]="LsCompletions",t[t.LsTcb=21]="LsTcb",t[t.LsDiagnostics=22]="LsDiagnostics",t[t.LsSuggestionDiagnostics=23]="LsSuggestionDiagnostics",t[t.LsComponentLocations=24]="LsComponentLocations",t[t.LsSignatureHelp=25]="LsSignatureHelp",t[t.OutliningSpans=26]="OutliningSpans",t[t.LsCodeFixes=27]="LsCodeFixes",t[t.LsCodeFixesAll=28]="LsCodeFixesAll",t[t.LSComputeApplicableRefactorings=29]="LSComputeApplicableRefactorings",t[t.LSApplyRefactoring=30]="LSApplyRefactoring",t[t.LSSemanticClassification=31]="LSSemanticClassification",t[t.LAST=32]="LAST"})(Ni||(Ni={}));var bl;(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"})(bl||(bl={}));var _l;(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"})(_l||(_l={}));var dk=class{eventCount(){}memory(){}phase(){return Ni.Unaccounted}inPhase(t,e){return e()}reset(){}},cF=new dk;var bg;(function(t){t[t.Pending=0]="Pending",t[t.Analyzed=1]="Analyzed",t[t.Resolved=2]="Resolved",t[t.Skipped=3]="Skipped"})(bg||(bg={}));function Rl({api:t,call:e},n){if(!t.allowedAccessLevels.includes(n.accessLevel))throw new Ys(R.INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY,e,mg(`Cannot use "${t.functionName}" on a class member that is declared as ${Sg(n.accessLevel)}.`,[mg("Update the class field to be either: "+t.allowedAccessLevels.map(s=>Sg(s)).join(", "))]))}function Di(t,e,n,s){if(zt.default.isAsExpression(e)||zt.default.isParenthesizedExpression(e))return Di(t,e.expression,n,s);if(!zt.default.isCallExpression(e))return null;let r=Ck(e,t,s)||Ak(e,t,s)||Ik(e,t,s);if(r===null)return null;let{api:i,apiReference:o,isRequired:l}=r,c=n.getImportOfIdentifier(o);return c===null||i.functionName!==c.name||i.owningModule!==c.from?null:{api:i,call:e,isRequired:l}}function Ck(t,e,n){let s=t.expression;if(!zt.default.isIdentifier(s))return null;let r=e.find(i=>n.isPotentialReferenceToNamedImport(s,i.functionName,i.owningModule));return r===void 0?null:{api:r,apiReference:s,isRequired:!1}}function Ak(t,e,n){let s=t.expression;if(!zt.default.isPropertyAccessExpression(s)||!zt.default.isIdentifier(s.expression)||s.name.text!=="required")return null;let r=s.expression,i=e.find(o=>n.isPotentialReferenceToNamedImport(r,o.functionName,o.owningModule));return i===void 0?null:{api:i,apiReference:r,isRequired:!0}}function Ik(t,e,n){let s=t.expression;if(!zt.default.isPropertyAccessExpression(s))return null;let r=null,i,o=!1;if(zt.default.isIdentifier(s.expression)&&zt.default.isIdentifier(s.name)){let l=s.expression;r=s.name,i=e.find(c=>s.name.text===c.functionName&&n.isPotentialReferenceToNamespaceImport(l,c.owningModule))}else if(zt.default.isPropertyAccessExpression(s.expression)&&zt.default.isIdentifier(s.expression.expression)&&zt.default.isIdentifier(s.expression.name)&&s.name.text==="required"){let l=s.expression.name.text,c=s.expression.expression;r=s.expression.name,i=e.find(u=>u.functionName===l&&n.isPotentialReferenceToNamespaceImport(c,u.owningModule)),o=!0}return i===void 0||r===null?null:{api:i,apiReference:r,isRequired:o}}function Np(t){if(!vp.default.isObjectLiteralExpression(t))throw new Ys(R.VALUE_HAS_WRONG_TYPE,t,"Argument needs to be an object literal that is statically analyzable.");let e=Yg(t),n;if(e.has("alias")){let s=e.get("alias");if(!vp.default.isStringLiteralLike(s))throw new Ys(R.VALUE_HAS_WRONG_TYPE,s,"Alias needs to be a string that is statically analyzable.");n=s.text}return{alias:n}}var Pl={functionName:"input",owningModule:"@angular/core",allowedAccessLevels:[Se.PublicWritable,Se.PublicReadonly,Se.Protected]};function Nk(t,e,n){var l;if(t.value===null)return null;let s=Di([Pl],t.value,e,n);if(s===null)return null;Rl(s,t);let r=s.isRequired?s.call.arguments[0]:s.call.arguments[1],i=r!==void 0?Np(r):null,o=t.name;return{isSignal:!0,classPropertyName:o,bindingPropertyName:(l=i==null?void 0:i.alias)!=null?l:o,required:s.isRequired,transform:null}}var Ll={functionName:"model",owningModule:"@angular/core",allowedAccessLevels:[Se.PublicWritable,Se.PublicReadonly,Se.Protected]};function Dk(t,e,n){var c;if(t.value===null)return null;let s=Di([Ll],t.value,e,n);if(s===null)return null;Rl(s,t);let r=s.isRequired?s.call.arguments[0]:s.call.arguments[1],i=r!==void 0?Np(r):null,o=t.name,l=(c=i==null?void 0:i.alias)!=null?c:o;return{call:s.call,input:{isSignal:!0,transform:null,classPropertyName:o,bindingPropertyName:l,required:s.isRequired},output:{isSignal:!1,classPropertyName:o,bindingPropertyName:l+"Change"}}}var _g=[Se.PublicWritable,Se.PublicReadonly,Se.Protected],Dp=[{functionName:"output",owningModule:"@angular/core",allowedAccessLevels:_g},{functionName:"outputFromObservable",owningModule:"@angular/core/rxjs-interop",allowedAccessLevels:_g}];function bk(t,e,n){var l;if(t.value===null)return null;let s=Di(Dp,t.value,e,n);if(s===null)return null;if(s.isRequired)throw new Ys(R.INITIALIZER_API_NO_REQUIRED_FUNCTION,s.call,'Output does not support ".required()".');Rl(s,t);let r=s.api.functionName==="output"?s.call.arguments[0]:s.call.arguments[1],i=r!==void 0?Np(r):null,o=t.name;return{call:s.call,metadata:{isSignal:!1,classPropertyName:o,bindingPropertyName:(l=i==null?void 0:i.alias)!=null?l:o}}}var _k=["viewChild","viewChildren","contentChild","contentChildren"],Ml=_k.map(t=>({functionName:t,owningModule:"@angular/core",allowedAccessLevels:[Se.PublicWritable,Se.PublicReadonly,Se.Protected,Se.Private]})),kk=t=>t!=="contentChildren";function Rk(t,e,n){if(t.value===null)return null;let s=Di(Ml,t.value,e,n);if(s===null)return null;Rl(s,t);let{functionName:r}=s.api,i=r==="viewChild"||r==="contentChild",o=s.call.arguments[0];if(o===void 0)throw new Ys(R.VALUE_HAS_WRONG_TYPE,s.call,"No locator specified.");let l=s.call.arguments[1];if(l!==void 0&&!wn.default.isObjectLiteralExpression(l))throw new Ys(R.VALUE_HAS_WRONG_TYPE,l,"Argument needs to be an object literal.");let c=l&&Yg(l),u=c!=null&&c.has("read")?ly(c.get("read")):null,h=c!=null&&c.has("descendants")?Lk(c.get("descendants")):kk(r);return{name:r,call:s.call,metadata:{isSignal:!0,propertyName:t.name,static:!1,emitDistinctChangesOnly:!0,predicate:Pk(o,e),first:i,read:u,descendants:h}}}function Pk(t,e){let n=Q_(t,e);return n!==null&&(t=n),wn.default.isStringLiteralLike(t)?[t.text]:_r(new qs.WrappedNodeExpr(t),n!==null?2:0)}function ly(t){if(wn.default.isExpressionWithTypeArguments(t)||wn.default.isParenthesizedExpression(t)||wn.default.isAsExpression(t))return ly(t.expression);if(wn.default.isPropertyAccessExpression(t)&&wn.default.isIdentifier(t.expression)||wn.default.isIdentifier(t))return new qs.WrappedNodeExpr(t);throw new Ys(R.VALUE_NOT_LITERAL,t,'Query "read" option expected a literal class reference.')}function Lk(t){if(t.kind===wn.default.SyntaxKind.TrueKeyword)return!0;if(t.kind===wn.default.SyntaxKind.FalseKeyword)return!1;throw new Ys(R.VALUE_HAS_WRONG_TYPE,t,'Expected "descendants" option to be a boolean literal.')}var cy=["ViewChild","ViewChildren","ContentChild","ContentChildren"],EF=new Set(cy);var ea;(function(t){t[t.SingleFile=0]="SingleFile",t[t.WholeProgram=1]="WholeProgram"})(ea||(ea={}));var kg;(function(t){t[t.NgModule=0]="NgModule",t[t.Standalone=1]="Standalone"})(kg||(kg={}));var Rg;(function(t){t[t.Normal=0]="Normal",t[t.ForceDirect=1]="ForceDirect"})(Rg||(Rg={}));var at;(function(t){t[t.Input=0]="Input",t[t.Output=1]="Output",t[t.Binding=2]="Binding",t[t.Reference=3]="Reference",t[t.Variable=4]="Variable",t[t.Directive=5]="Directive",t[t.Element=6]="Element",t[t.Template=7]="Template",t[t.Expression=8]="Expression",t[t.DomBinding=9]="DomBinding",t[t.Pipe=10]="Pipe",t[t.LetDeclaration=11]="LetDeclaration",t[t.SelectorlessComponent=12]="SelectorlessComponent",t[t.SelectorlessDirective=13]="SelectorlessDirective"})(at||(at={}));var Pg;(function(t){t[t.Reference=0]="Reference",t[t.Variable=1]="Variable",t[t.LetDeclaration=2]="LetDeclaration"})(Pg||(Pg={}));var Sp;(function(t){t[t.NgModule=0]="NgModule",t[t.Standalone=1]="Standalone",t[t.Selectorless=2]="Selectorless"})(Sp||(Sp={}));var Ep;(function(t){t.DIAGNOSTIC="D",t.EXPRESSION_TYPE_IDENTIFIER="T"})(Ep||(Ep={}));var Lg;(function(t){t.DIRECTIVE="DIR",t.COMPONENT_COMPLETION="COMPCOMP",t.EVENT_PARAMETER="EP",t.VARIABLE_AS_EXPRESSION="VAE"})(Lg||(Lg={}));var bF=`${Ep.DIAGNOSTIC}:ignore`;var Mg;(function(t){t[t.Complete=0]="Complete",t[t.Incremental=1]="Incremental"})(Mg||(Mg={}));function Xk(){return typeof globalThis!="undefined"&&typeof globalThis.btoa=="function"?t=>globalThis.btoa(unescape(encodeURIComponent(t))):typeof Buffer=="function"?t=>Buffer.from(t,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var PF=Xk();var $F=[m.InputSignalBrandWriteType],Og;(function(t){t[t.MustInline=0]="MustInline",t[t.ShouldInlineForGenericBounds=1]="ShouldInlineForGenericBounds",t[t.None=2]="None"})(Og||(Og={}));var Fg;(function(t){t[t.UseEmitter=0]="UseEmitter",t[t.CopyClassNodes=1]="CopyClassNodes",t[t.FallbackToAny=2]="FallbackToAny"})(Fg||(Fg={}));var VF=new En;var Xs,KF=(Xs=class{static veWillInferAnyFor(e){let n=Xs.SINGLETON;return e instanceof Ct?e.visit(n):e.receiver.visit(n)}visitUnary(e){return e.expr.visit(this)}visitBinary(e){return e.left.visit(this)||e.right.visit(this)}visitChain(){return!1}visitConditional(e){return e.condition.visit(this)||e.trueExp.visit(this)||e.falseExp.visit(this)}visitCall(){return!0}visitSafeCall(){return!1}visitImplicitReceiver(){return!1}visitThisReceiver(){return!1}visitInterpolation(e){return e.expressions.some(n=>n.visit(this))}visitKeyedRead(){return!1}visitLiteralArray(){return!0}visitLiteralMap(){return!0}visitLiteralPrimitive(){return!1}visitPipe(){return!0}visitPrefixNot(e){return e.expression.visit(this)}visitTypeofExpression(e){return e.expression.visit(this)}visitVoidExpression(e){return e.expression.visit(this)}visitNonNullAssert(e){return e.expression.visit(this)}visitPropertyRead(){return!1}visitSafePropertyRead(){return!1}visitSafeKeyedRead(){return!1}visitTemplateLiteral(){return!1}visitTemplateLiteralElement(){return!1}visitTaggedTemplateLiteral(){return!1}visitParenthesizedExpression(e){return e.expression.visit(this)}visitRegularExpressionLiteral(){return!1}visitSpreadElement(e){return e.expression.visit(this)}visitArrowFunction(e,n){return!1}},a(Xs,"SINGLETON",new Xs),Xs);var o0=["errors","dirty","disabled","disabledReasons","hidden","invalid","name","pending","readonly","touched","max","maxLength","min","minLength","pattern","required"],ZF=new Set([...o0,"value","checked"]);var Bg;(function(t){t[t.InlineOps=0]="InlineOps",t[t.Error=1]="Error"})(Bg||(Bg={}));var l1=new En;var h1=class extends qs.RecursiveAstVisitor{constructor(){super(...arguments);a(this,"allReads",new Set);a(this,"namespaceReads",new Set);a(this,"addAllTopLevelIdentifiers",e=>{te.default.isIdentifier(e)&&this.isTopLevelIdentifierReference(e)?this.allReads.add(e):te.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,s=n.parent;if(!s)return!1;if(te.default.isParenthesizedExpression(s)&&s.expression===n)for(;s&&te.default.isParenthesizedExpression(s);)n=s,s=s.parent;return te.default.isSourceFile(s)?!0:te.default.isCallExpression(s)?s.expression===n||s.arguments.includes(n):te.default.isExpressionStatement(s)||te.default.isPropertyAccessExpression(s)||te.default.isComputedPropertyName(s)||te.default.isTemplateSpan(s)||te.default.isSpreadAssignment(s)||te.default.isSpreadElement(s)||te.default.isAwaitExpression(s)||te.default.isNonNullExpression(s)||te.default.isIfStatement(s)||te.default.isDoStatement(s)||te.default.isWhileStatement(s)||te.default.isSwitchStatement(s)||te.default.isCaseClause(s)||te.default.isThrowStatement(s)||te.default.isNewExpression(s)||te.default.isExpressionWithTypeArguments(s)?s.expression===n:te.default.isArrayLiteralExpression(s)?s.elements.includes(n):te.default.isPropertyAssignment(s)||te.default.isParameter(s)||te.default.isBindingElement(s)||te.default.isPropertyDeclaration(s)||te.default.isEnumMember(s)?s.initializer===n:te.default.isVariableDeclaration(s)?s.name===n||s.initializer===n:te.default.isClassDeclaration(s)||te.default.isFunctionDeclaration(s)||te.default.isShorthandPropertyAssignment(s)?s.name===n:te.default.isElementAccessExpression(s)?s.expression===n||s.argumentExpression===n:te.default.isBinaryExpression(s)?s.left===n||s.right===n:te.default.isForInStatement(s)||te.default.isForOfStatement(s)?s.expression===n||s.initializer===n:te.default.isForStatement(s)?s.condition===n||s.initializer===n||s.incrementor===n:te.default.isArrowFunction(s)?s.body===n:te.default.isImportSpecifier(s)||te.default.isExportSpecifier(s)?(s.propertyName||s.name)===n:te.default.isConditionalExpression(s)?s.condition===n||s.whenFalse===n||s.whenTrue===n:!1}isTypeScriptNode(e){return!!e&&typeof e.kind=="number"}};function Ol(t,e,n,s,r){let i=kl.default.isIdentifier(n.identifier)?n.identifier:n.identifier.expression;return t.createPropertyAccessExpression(e.addImport({exportModuleSpecifier:"@angular/core",exportSymbolName:null,requestedFile:s}),kl.default.setOriginalNode(t.createIdentifier(r),i))}function uy(t,e){return t.createAsExpression(e,t.createKeywordTypeNode(kl.default.SyntaxKind.AnyKeyword))}var y0=(t,e,n,s,r,i,o,l)=>{var d,p;if((d=n.getDecoratorsOfDeclaration(t.node))!=null&&d.some(g=>Zo(g,"Input",l)))return t.node;let c=Nk(t,n,r);if(c===null)return t.node;let u={isSignal:s.createTrue(),alias:s.createStringLiteral(c.bindingPropertyName),required:c.required?s.createTrue():s.createFalse(),transform:s.createIdentifier("undefined")},h=s.createDecorator(s.createCallExpression(Ol(s,i,o,e,"Input"),void 0,[uy(s,s.createObjectLiteralExpression(Object.entries(u).map(([g,v])=>s.createPropertyAssignment(g,v))))]));return s.updatePropertyDeclaration(t.node,[h,...(p=t.node.modifiers)!=null?p:[]],t.name,t.node.questionToken,t.node.type,t.node.initializer)},v0=(t,e,n,s,r,i,o,l)=>{var p,g;if((p=n.getDecoratorsOfDeclaration(t.node))!=null&&p.some(v=>Zo(v,"Input",l)||Zo(v,"Output",l)))return t.node;let c=Dk(t,n,r);if(c===null)return t.node;let u=s.createObjectLiteralExpression([s.createPropertyAssignment("isSignal",c.input.isSignal?s.createTrue():s.createFalse()),s.createPropertyAssignment("alias",s.createStringLiteral(c.input.bindingPropertyName)),s.createPropertyAssignment("required",c.input.required?s.createTrue():s.createFalse())]),h=$g("Input",s.createAsExpression(u,s.createKeywordTypeNode(py.default.SyntaxKind.AnyKeyword)),o,s,e,i),d=$g("Output",s.createStringLiteral(c.output.bindingPropertyName),o,s,e,i);return s.updatePropertyDeclaration(t.node,[h,d,...(g=t.node.modifiers)!=null?g:[]],t.node.name,t.node.questionToken,t.node.type,t.node.initializer)};function $g(t,e,n,s,r,i){let o=Ol(s,i,n,r,t);return s.createDecorator(s.createCallExpression(o,void 0,[e]))}var S0=(t,e,n,s,r,i,o,l)=>{var h,d;if((h=n.getDecoratorsOfDeclaration(t.node))!=null&&h.some(p=>Zo(p,"Output",l)))return t.node;let c=bk(t,n,r);if(c===null)return t.node;let u=s.createDecorator(s.createCallExpression(Ol(s,i,o,e,"Output"),void 0,[s.createStringLiteral(c.metadata.bindingPropertyName)]));return s.updatePropertyDeclaration(t.node,[u,...(d=t.node.modifiers)!=null?d:[]],t.node.name,t.node.questionToken,t.node.type,t.node.initializer)},E0={viewChild:"ViewChild",viewChildren:"ViewChildren",contentChild:"ContentChild",contentChildren:"ContentChildren"},T0=(t,e,n,s,r,i,o,l)=>{var g;let c=n.getDecoratorsOfDeclaration(t.node),u=c&&X_(c,cy,l);if(u!==null&&u.length>0)return t.node;let h=Rk(t,n,r);if(h===null)return t.node;let d=h.call.arguments,p=s.createDecorator(s.createCallExpression(Ol(s,i,o,e,E0[h.name]),void 0,[h.call.arguments[0],uy(s,s.createObjectLiteralExpression([...d.length>1?[s.createSpreadAssignment(d[1])]:[],s.createPropertyAssignment("isSignal",s.createTrue())]))]));return s.updatePropertyDeclaration(t.node,[p,...(g=t.node.modifiers)!=null?g:[]],t.node.name,t.node.questionToken,t.node.type,t.node.initializer)},w0=["Directive","Component"],x0=[y0,S0,T0,v0];function hy(t,e,n,s){return r=>i=>{let o=new ak;return i=Ks.default.visitNode(i,C0(r,t,o,e,n,s),Ks.default.isSourceFile),o.transformTsFile(r,i)}}function C0(t,e,n,s,r,i){let o=l=>{var c;if(Ks.default.isClassDeclaration(l)&&l.name!==void 0){let u=Ks.default.getOriginalNode(l,Ks.default.isClassDeclaration),h=(c=e.getDecoratorsOfDeclaration(u))==null?void 0:c.find(d=>w0.some(p=>Zo(d,p,r)));if(h!==void 0&&(i===void 0||i(l))){let d=!1,p=u.getSourceFile(),g=l.members.map(v=>{if(!Ks.default.isPropertyDeclaration(v))return v;let E=Xg(v);if(E===null)return v;for(let I of x0){let D=I(me(x({},E),{node:v}),p,e,t.factory,s,n,h,r);if(D!==E.node)return d=!0,D}return v});if(d)return t.factory.updateClassDeclaration(l,l.modifiers,l.name,l.typeParameters,l.heritageClauses,g)}}return Ks.default.visitEachChild(l,o,t)};return o}function Fl(t,e=!1,n){let s=t.getTypeChecker(),r=new Kg(s),i=new Qg,o=sy(s,r,[],e,!1,n),l=hy(r,i,e,n);return c=>u=>(u=l(c)(u),u=o(c)(u),u)}var wL=C(require("typescript"),1),xL=C(require("typescript"),1),CL=C(require("typescript"),1),AL=C(require("typescript"),1),IL=C(require("typescript"),1),NL=C(require("typescript"),1),DL=C(require("typescript"),1),bL=C(require("typescript"),1),_L=C(require("typescript"),1),kL=C(require("typescript"),1),RL=C(require("typescript"),1),PL=C(require("typescript"),1),LL=C(require("typescript"),1),ML=C(require("typescript"),1),OL=C(require("typescript"),1),FL=C(require("typescript"),1),BL=C(require("typescript"),1),$L=C(require("typescript"),1);var UL=C(require("typescript"),1);var eh=C(require("typescript"),1);var th=C(require("typescript"),1);var nh=C(require("typescript"),1);var RM=C(require("typescript"),1);var LM=C(require("typescript"),1),MM=C(require("typescript"),1),OM=C(require("typescript"),1),FM=C(require("typescript"),1),BM=C(tS(),1),$M=C(require("typescript"),1);var m$=(0,fS.createRequire)(U),Yp;(function(t){t.Block="block",t.Component="component",t.Constant="constant",t.Decorator="decorator",t.Directive="directive",t.Element="element",t.Enum="enum",t.Function="function",t.Interface="interface",t.NgModule="ng_module",t.Pipe="pipe",t.TypeAlias="type_alias",t.UndecoratedClass="undecorated_class",t.InitializerApiFunction="initializer_api_function",t.Namespace="namespace"})(Yp||(Yp={}));var Qp;(function(t){t.Property="property",t.Method="method",t.Getter="getter",t.Setter="setter",t.EnumItem="enum_item",t.Interface="interface",t.TypeAlias="type_alias"})(Qp||(Qp={}));var Jp;(function(t){t.Class="class",t.Member="member",t.Parameter="parameter"})(Jp||(Jp={}));var Zp;(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"})(Zp||(Zp={}));var nS;(function(t){t.Warning="warning",t.Error="error",t.Suppress="suppress"})(nS||(nS={}));var sS;(function(t){t[t.Fresh=0]="Fresh",t[t.Delta=1]="Delta",t[t.Analyzed=2]="Analyzed"})(sS||(sS={}));var rS;(function(t){t[t.Analysis=0]="Analysis",t[t.TypeCheckAndEmit=1]="TypeCheckAndEmit"})(rS||(rS={}));var iS;(function(t){t[t.Property=0]="Property",t[t.Method=1]="Method",t[t.Element=2]="Element",t[t.Template=3]="Template",t[t.Attribute=4]="Attribute",t[t.Reference=5]="Reference",t[t.Variable=6]="Variable",t[t.LetDeclaration=7]="LetDeclaration",t[t.Component=8]="Component",t[t.Directive=9]="Directive"})(iS||(iS={}));var VL=".$ngresource$",E$=VL+".ts";var GL=new Set(["WritableSignal","Signal","InputSignal","InputSignalWithTransform","ModelSignal"]);function oS(t){return(t.kind===at.Expression||t.kind===at.Variable||t.kind===at.LetDeclaration)&&(t.tsType.symbol!==void 0&&aS(t.tsType.symbol)||t.tsType.aliasSymbol!==void 0&&aS(t.tsType.aliasSymbol))}function aS(t){let e=t.getDeclarations();return e!==void 0&&e.some(n=>{let s=n.getSourceFile().fileName;return(eh.default.isInterfaceDeclaration(n)||eh.default.isTypeAliasDeclaration(n))&&GL.has(n.name.text)&&(s.includes("@angular/core")||s.includes("angular2/rc/packages/core")||s.includes("bin/packages/core"))})}var ut=class{run(t,e,n){return new HL(t,e,this).getDiagnostics(n)}},HL=class extends Hs{constructor(e,n,s){super();a(this,"ctx");a(this,"component");a(this,"check");a(this,"diagnostics",[]);this.ctx=e,this.component=n,this.check=s}visit(e){this.diagnostics.push(...this.check.visitNode(this.ctx,this.component,e)),super.visit(e)}visitTemplate(e){let n=e.tagName==="ng-template";this.visitAllTemplateNodes(e.attributes),n&&(this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs)),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.templateAttrs),this.visitAllTemplateNodes(e.variables),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}getDiagnostics(e){return this.diagnostics=[],this.visitAllTemplateNodes(e),this.diagnostics}},qL=`https://${Ai.major!=="0"?`v${Ai.major}.`:""}angular.dev/extended-diagnostics`;function Re(t,e){let n=`NG${Math.abs(t)}`,s=`${n}${e?": "+e:""}`,i=!s.match(/[.,;!?\n]$/)?".":"";return`${s}${i} Find more at ${qL}/${n}`}var WL=new Set(["set","update","asReadonly"]),jL=new Set(["name","length","prototype"]),zL=class extends ut{constructor(){super(...arguments);a(this,"code",R.INTERPOLATED_SIGNAL_NOT_INVOKED)}visitNode(e,n,s){if(s instanceof ns)return s.expressions.map(r=>r instanceof Mn?r.expression:r).filter(r=>r instanceof le).flatMap(r=>Yl(e,r,n));if(s instanceof ke&&s.inputs.length>0){let r=e.templateTypeChecker.getDirectivesOfNode(n,s);return s.inputs.flatMap(i=>Kp(e,n,r,i))}else if(s instanceof de&&s.tagName==="ng-template"){let r=e.templateTypeChecker.getDirectivesOfNode(n,s),i=s.inputs.flatMap(l=>Kp(e,n,r,l)),o=s.templateAttrs.flatMap(l=>l instanceof Pt?Kp(e,n,r,l):[]);return i.concat(o)}else{if(s instanceof Rs)return s.branches.map(r=>r.expression).filter(r=>r instanceof ve).map(r=>{let i=r.ast;return i instanceof Mn?i.expression:i}).filter(r=>r instanceof le).flatMap(r=>Yl(e,r,n));if(s instanceof ks&&s.expression instanceof ve){let r=s.expression.ast instanceof Mn?s.expression.ast.expression:s.expression.ast;if(r instanceof le)return Yl(e,r,n)}}return[]}};function Kp(t,e,n,s){if(n!==null&&n.some(i=>i.inputs.getByBindingPropertyName(s.name)!==null))return[];let r=KL(s);return(s.type===z.Property||s.type===z.Class||s.type===z.Style||s.type===z.Attribute||s.type===z.Animation||s.type===z.LegacyAnimation)&&r?Yl(t,r,e):[]}function KL(t){if(t.value instanceof ve){if(t.value.ast instanceof Mn&&t.value.ast.expression instanceof le)return t.value.ast.expression;if(t.value.ast instanceof le)return t.value.ast}}function XL(t){return jL.has(t)}function YL(t){return WL.has(t)}function Yl(t,e,n){let s=t.templateTypeChecker.getSymbolOfNode(e,n);if(s!==null&&s.kind===at.Expression&&oS(s)){let i=t.templateTypeChecker.getSourceMappingAtTcbLocation(s.tcbLocation),o=Re(R.INTERPOLATED_SIGNAL_NOT_INVOKED,`${e.name} is a function and should be invoked: ${e.name}()}`);return[t.makeTemplateDiagnostic(i.span,o)]}if(!XL(e.name)&&!YL(e.name))return[];let r=t.templateTypeChecker.getSymbolOfNode(e.receiver,n);if(r!==null&&r.kind===at.Expression&&oS(r)){let i=t.templateTypeChecker.getSourceMappingAtTcbLocation(r.tcbLocation),o=Re(R.INTERPOLATED_SIGNAL_NOT_INVOKED,`${e.receiver.name} is a function and should be invoked: ${e.receiver.name}()`);return[t.makeTemplateDiagnostic(i.span,o)]}return[]}var QL={code:R.INTERPOLATED_SIGNAL_NOT_INVOKED,name:Fe.INTERPOLATED_SIGNAL_NOT_INVOKED,create:()=>new zL},JL=class extends ut{constructor(){super(...arguments);a(this,"code",R.INVALID_BANANA_IN_BOX)}visitNode(e,n,s){if(!(s instanceof Sn))return[];let r=s.name;if(!r.startsWith("[")||!r.endsWith("]"))return[];let o=s.sourceSpan.toString().replace(`(${r})`,`[(${r.slice(1,-1)})]`);return[e.makeTemplateDiagnostic(s.sourceSpan,Re(R.INVALID_BANANA_IN_BOX,`In the two-way binding syntax the parentheses should be inside the brackets, ex. '${o}'`))]}},ZL={code:R.INVALID_BANANA_IN_BOX,name:Fe.INVALID_BANANA_IN_BOX,create:()=>new JL},lS=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"}]]),eM=class extends ut{constructor(){super(...arguments);a(this,"code",R.MISSING_CONTROL_FLOW_DIRECTIVE)}run(e,n,s){let r=e.templateTypeChecker.getDirectiveMetadata(n);return!r||!r.isStandalone?[]:super.run(e,n,s)}visitNode(e,n,s){if(!(s instanceof de))return[];let r=s.templateAttrs.find(h=>lS.has(h.name));if(!r)return[];let i=e.templateTypeChecker.getSymbolOfNode(s,n);if(i===null||i.directives.length>0)return[];let o=r.keySpan||r.sourceSpan,l=lS.get(r.name),c=Re(R.MISSING_CONTROL_FLOW_DIRECTIVE,`The \`*${r.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)]}},tM={code:R.MISSING_CONTROL_FLOW_DIRECTIVE,name:Fe.MISSING_CONTROL_FLOW_DIRECTIVE,create:t=>new eM},nM=class extends ut{constructor(){super(...arguments);a(this,"code",R.MISSING_NGFOROF_LET)}visitNode(e,n,s){let r=s instanceof de;if(!(s instanceof de))return[];if(s.templateAttrs.length===0)return[];let i=s.templateAttrs.find(c=>c.name==="ngFor");if(i===void 0)return[];if(s.variables.length>0)return[];let o=Re(R.MISSING_NGFOROF_LET,"Your ngFor is missing a value. Did you forget to add the `let` keyword?");return[e.makeTemplateDiagnostic(i.sourceSpan,o)]}},sM={code:R.MISSING_NGFOROF_LET,name:Fe.MISSING_NGFOROF_LET,create:()=>new nM},rM=new Set(["ngIf","ngFor","ngForOf","ngForTrackBy","ngSwitchCase","ngSwitchDefault","ngIfThen","ngIfElse"]),iM=class extends ut{constructor(){super(...arguments);a(this,"code",R.MISSING_STRUCTURAL_DIRECTIVE)}run(e,n,s){let r=e.templateTypeChecker.getDirectiveMetadata(n);return!r||!r.isStandalone?[]:super.run(e,n,s)}visitNode(e,n,s){if(!(s instanceof de))return[];let r=s.templateAttrs.find(u=>!rM.has(u.name));if(!r)return[];let i=e.templateTypeChecker.getSymbolOfNode(s,n);if(i==null?void 0:i.directives.some(u=>{var h;return(h=u.selector)==null?void 0:h.includes(`[${r.name}]`)}))return[];let l=r.keySpan||r.sourceSpan,c=Re(R.MISSING_STRUCTURAL_DIRECTIVE,`A structural directive \`${r.name}\` was used in the template without a corresponding import in the component. Make sure that the directive is included in the \`@Component.imports\` array of this component.`);return[e.makeTemplateDiagnostic(l,c)]}},oM={code:R.MISSING_STRUCTURAL_DIRECTIVE,name:Fe.MISSING_STRUCTURAL_DIRECTIVE,create:()=>new iM},aM=class extends ut{constructor(){super(...arguments);a(this,"code",R.NULLISH_COALESCING_NOT_NULLABLE)}visitNode(e,n,s){if(!(s instanceof we)||s.operation!=="??")return[];let r=e.templateTypeChecker.getSymbolOfNode(s.left,n);if(r===null||r.kind!==at.Expression)return[];let i=r.tsType;if(i.flags&(th.default.TypeFlags.Any|th.default.TypeFlags.Unknown))return[];if(i.getNonNullableType()!==i)return[];let o=e.templateTypeChecker.getSymbolOfNode(s,n);if(o.kind!==at.Expression)return[];let l=e.templateTypeChecker.getSourceMappingAtTcbLocation(o.tcbLocation);return l===null?[]:[e.makeTemplateDiagnostic(l.span,Re(R.NULLISH_COALESCING_NOT_NULLABLE,"The left side of this nullish coalescing operation does not include 'null' or 'undefined' in its type, therefore the '??' operator can be safely removed."))]}},lM={code:R.NULLISH_COALESCING_NOT_NULLABLE,name:Fe.NULLISH_COALESCING_NOT_NULLABLE,create:t=>(t.strictNullChecks===void 0?!!t.strict:!!t.strictNullChecks)?new aM:null},cM=class extends ut{constructor(e){super();a(this,"noUncheckedIndexedAccess");a(this,"code",R.OPTIONAL_CHAIN_NOT_NULLABLE);this.noUncheckedIndexedAccess=e}visitNode(e,n,s){if(!(s instanceof Gt)&&!(s instanceof et)&&!(s instanceof Ns))return[];if(s.receiver instanceof Ln&&!this.noUncheckedIndexedAccess)return[];let r=e.templateTypeChecker.getSymbolOfNode(s.receiver,n);if(r===null||r.kind!==at.Expression)return[];let i=r.tsType;if(i.flags&(nh.default.TypeFlags.Any|nh.default.TypeFlags.Unknown))return[];if(i.getNonNullableType()!==i)return[];let o=e.templateTypeChecker.getSymbolOfNode(s,n);if(o.kind!==at.Expression)return[];let l=e.templateTypeChecker.getSourceMappingAtTcbLocation(o.tcbLocation);if(l===null)return[];let c=s instanceof et?"the '?.' operator can be replaced with the '.' operator":"the '?.' operator can be safely removed";return[e.makeTemplateDiagnostic(l.span,Re(R.OPTIONAL_CHAIN_NOT_NULLABLE,`The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore ${c}`))]}},uM={code:R.OPTIONAL_CHAIN_NOT_NULLABLE,name:Fe.OPTIONAL_CHAIN_NOT_NULLABLE,create:t=>{if(!(t.strictNullChecks===void 0?!!t.strict:!!t.strictNullChecks))return null;let n=!!t.noUncheckedIndexedAccess;return new cM(n)}},cS="ngSkipHydration",pM=class extends ut{constructor(){super(...arguments);a(this,"code",R.SKIP_HYDRATION_NOT_STATIC)}visitNode(e,n,s){if(s instanceof Pt&&s.name===cS){let i=Re(R.SKIP_HYDRATION_NOT_STATIC,"ngSkipHydration should not be used as a binding");return[e.makeTemplateDiagnostic(s.sourceSpan,i)]}let r=["true",""];if(s instanceof an&&s.name===cS&&!r.includes(s.value)&&s.value!==void 0){let i=Re(R.SKIP_HYDRATION_NOT_STATIC,`ngSkipHydration only accepts "true" or "" as value or no value at all. For example 'ngSkipHydration="true"' or 'ngSkipHydration'`);return[e.makeTemplateDiagnostic(s.sourceSpan,i)]}return[]}},hM={code:R.SKIP_HYDRATION_NOT_STATIC,name:Fe.SKIP_HYDRATION_NOT_STATIC,create:()=>new pM},uS=["px","%","em"],fM=class extends ut{constructor(){super(...arguments);a(this,"code",R.SUFFIX_NOT_SUPPORTED)}visitNode(e,n,s){return s instanceof Pt?!s.keySpan.toString().startsWith("attr.")||!uS.some(i=>s.name.endsWith(`.${i}`))?[]:[e.makeTemplateDiagnostic(s.keySpan,Re(R.SUFFIX_NOT_SUPPORTED,`The ${uS.map(i=>`'.${i}'`).join(", ")} suffixes are only supported on style bindings`))]:[]}},dM={code:R.SUFFIX_NOT_SUPPORTED,name:Fe.SUFFIX_NOT_SUPPORTED,create:()=>new fM},mM=class extends ut{constructor(){super(...arguments);a(this,"code",R.TEXT_ATTRIBUTE_NOT_BINDING)}visitNode(e,n,s){if(!(s instanceof an))return[];let r=s.name;if(!r.startsWith("attr.")&&!r.startsWith("style.")&&!r.startsWith("class."))return[];let i;if(r.startsWith("attr.")){let l=r.replace("attr.","");i="Static attributes should be written without the 'attr.' prefix.",s.value&&(i+=` For example, ${l}="${s.value}".`)}else{let l=`[${r}]`,c=s.value==="true"||s.value==="false"?s.value:`'${s.value}'`;i="Attribute, style, and class bindings should be enclosed with square braces.",s.value&&(i+=` For example, '${l}="${c}"'.`),i=Re(R.TEXT_ATTRIBUTE_NOT_BINDING,i)}return[e.makeTemplateDiagnostic(s.sourceSpan,i)]}},gM={code:R.TEXT_ATTRIBUTE_NOT_BINDING,name:Fe.TEXT_ATTRIBUTE_NOT_BINDING,create:()=>new mM},yM=class extends ut{constructor(){super(...arguments);a(this,"code",R.UNINVOKED_FUNCTION_IN_EVENT_BINDING)}visitNode(e,n,s){if(!(s instanceof Sn))return[];if(s.type!==De.Regular&&s.type!==De.LegacyAnimation)return[];if(!(s.handler instanceof ve))return[];let r=s.handler.source||"";if(s.handler.ast instanceof Is)return s.handler.ast.expressions.flatMap(i=>Xp(i,n,s,r,e));if(s.handler.ast instanceof ai){let{trueExp:i,falseExp:o}=s.handler.ast;return[i,o].flatMap(l=>Xp(l,n,s,r,e))}return Xp(s.handler.ast,n,s,r,e)}};function Xp(t,e,n,s,r){var o;if(t instanceof Ct||t instanceof Gt)return[];if(t instanceof ci)return[r.makeTemplateDiagnostic(n.sourceSpan,"Arrow function will not be invoked in this event listener. Did you intend to call a method?")];if(!(t instanceof le)&&!(t instanceof et))return[];let i=r.templateTypeChecker.getSymbolOfNode(t,e);if(i!==null&&i.kind===at.Expression&&((o=i.tsType.getCallSignatures())==null?void 0:o.length)>0){let l=vM(t,s),c=Re(R.UNINVOKED_FUNCTION_IN_EVENT_BINDING,`Function in event binding should be invoked: ${l}()`);return[r.makeTemplateDiagnostic(n.sourceSpan,c)]}return[]}function vM(t,e){return e.substring(t.span.start,t.span.end)}var SM={code:R.UNINVOKED_FUNCTION_IN_EVENT_BINDING,name:Fe.UNINVOKED_FUNCTION_IN_EVENT_BINDING,create:()=>new yM},EM=class extends ut{constructor(){super(...arguments);a(this,"code",R.UNPARENTHESIZED_NULLISH_COALESCING)}visitNode(e,n,s){if(s instanceof we&&(s.operation==="&&"||s.operation==="||")&&(s.left instanceof we&&s.left.operation==="??"||s.right instanceof we&&s.right.operation==="??")){let r=e.templateTypeChecker.getSymbolOfNode(s,n);if((r==null?void 0:r.kind)!==at.Expression)return[];let i=e.templateTypeChecker.getSourceMappingAtTcbLocation(r.tcbLocation);return i===null?[]:[e.makeTemplateDiagnostic(i.span,Re(R.UNPARENTHESIZED_NULLISH_COALESCING,"Parentheses are required to disambiguate precedence when mixing '??' with '&&' and '||'"))]}return[]}},TM={code:R.UNPARENTHESIZED_NULLISH_COALESCING,name:Fe.UNPARENTHESIZED_NULLISH_COALESCING,create:()=>new EM},wM=class extends ut{constructor(){super(...arguments);a(this,"code",R.UNUSED_LET_DECLARATION);a(this,"analysis",new Map)}run(e,n,s){super.run(e,n,s);let r=[],{allLetDeclarations:i,usedLetDeclarations:o}=this.getAnalysis(n);for(let l of i)o.has(l)||r.push(e.makeTemplateDiagnostic(l.sourceSpan,Re(R.UNUSED_LET_DECLARATION,`@let ${l.name} is declared but its value is never read.`)));return this.analysis.clear(),r}visitNode(e,n,s){if(s instanceof Tn)this.getAnalysis(n).allLetDeclarations.add(s);else if(s instanceof oe){let r=s instanceof ve?s.ast:s,i=e.templateTypeChecker.getExpressionTarget(r,n);i!==null&&i instanceof Tn&&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)}},xM={code:R.UNUSED_LET_DECLARATION,name:Fe.UNUSED_LET_DECLARATION,create:()=>new wM},CM=class extends ut{constructor(){super(...arguments);a(this,"code",R.UNINVOKED_TRACK_FUNCTION)}visitNode(e,n,s){var i;if(!(s instanceof Bn)||!s.trackBy)return[];if(s.trackBy.ast instanceof Ct||s.trackBy.ast instanceof Gt)return[];if(!(s.trackBy.ast instanceof le)&&!(s.trackBy.ast instanceof et))return[];let r=e.templateTypeChecker.getSymbolOfNode(s.trackBy.ast,n);if(r!==null&&r.kind===at.Expression&&((i=r.tsType.getCallSignatures())==null?void 0:i.length)>0){let o=AM(s.trackBy.ast,s.trackBy.source||""),l=Re(R.UNINVOKED_TRACK_FUNCTION,`The track function in the @for block should be invoked: ${o}(/* arguments */)`);return[e.makeTemplateDiagnostic(s.sourceSpan,l)]}return[]}};function AM(t,e){return e.substring(t.span.start,t.span.end)}var IM={code:R.UNINVOKED_TRACK_FUNCTION,name:Fe.UNINVOKED_TRACK_FUNCTION,create:()=>new CM},NM=class extends ut{constructor(){super(...arguments);a(this,"code",R.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION)}visitNode(e,n,s){return s instanceof ns?s.expressions.flatMap(r=>DM(r,n,e)):[]}};function DM(t,e,n){var r;if(!(t instanceof le)&&!(t instanceof et))return[];let s=n.templateTypeChecker.getSymbolOfNode(t,e);if(s!==null&&s.kind===at.Expression&&((r=s.tsType.getCallSignatures())==null?void 0:r.length)>0){let i=Re(R.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION,`Function in text interpolation should be invoked: ${t.name}()`),o=n.templateTypeChecker.getSourceMappingAtTcbLocation(s.tcbLocation);return[n.makeTemplateDiagnostic(o.span,i)]}return[]}var bM={code:R.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION,name:Fe.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION,create:()=>new NM},_M=class extends ut{constructor(){super(...arguments);a(this,"code",R.DEFER_TRIGGER_MISCONFIGURATION)}visitNode(e,n,s){var h,d,p;if(!(s instanceof Fn))return[];let r=Object.keys(s.triggers),i=Object.keys(s.prefetchTriggers),o=r.map(g=>s.triggers[g]).filter(g=>g!=null),l=i.map(g=>s.prefetchTriggers[g]).filter(g=>g!=null),c=[];if(o.some(g=>g instanceof ui)&&(o.length>1&&c.push(e.makeTemplateDiagnostic(s.sourceSpan,Re(R.DEFER_TRIGGER_MISCONFIGURATION,"The 'immediate' trigger makes additional triggers redundant."))),l.length>0&&c.push(e.makeTemplateDiagnostic(s.sourceSpan,Re(R.DEFER_TRIGGER_MISCONFIGURATION,"Prefetch triggers have no effect because 'immediate' executes earlier.")))),o.length===1&&l.length>0){let g=o[0];for(let v of l){if(g instanceof vr&&v instanceof vr){let P=g.delay,L=v.delay;if(L>=P){let ne=`The Prefetch 'timer(${L}ms)' is not scheduled before the main 'timer(${P}ms)', so it won\u2019t run prior to rendering. Lower the prefetch delay or remove it.`;c.push(e.makeTemplateDiagnostic((h=v.sourceSpan)!=null?h:s.sourceSpan,Re(R.DEFER_TRIGGER_MISCONFIGURATION,ne)))}}let I=g instanceof yr&&v instanceof yr,D=g instanceof Sr&&v instanceof Sr,b=g instanceof _s&&v instanceof _s;if(I||D||b){let P=g.reference,L=v.reference;if(P&&L&&P===L){let re=`Prefetch '${g.constructor.name.replace("DeferredTrigger","").toLowerCase()}' matches the main trigger and provides no benefit. Remove the prefetch modifier.`;c.push(e.makeTemplateDiagnostic((d=v.sourceSpan)!=null?d:s.sourceSpan,Re(R.DEFER_TRIGGER_MISCONFIGURATION,re)))}continue}if(g.constructor===v.constructor&&!(g instanceof vr)){let L=`Prefetch '${g instanceof ui?"immediate":g.constructor.name.replace("DeferredTrigger","").toLowerCase()}' matches the main trigger and provides no benefit. Remove the prefetch modifier.`;c.push(e.makeTemplateDiagnostic((p=v.sourceSpan)!=null?p:s.sourceSpan,Re(R.DEFER_TRIGGER_MISCONFIGURATION,L)))}}}return c}},kM={code:R.DEFER_TRIGGER_MISCONFIGURATION,name:Fe.DEFER_TRIGGER_MISCONFIGURATION,create:()=>new _M};var PM=[ZL,lM,uM,tM,gM,sM,oM,dM,QL,SM,xM,hM,TM,IM,bM,kM],$$=new Set([Fe.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION,Fe.UNUSED_STANDALONE_IMPORTS,...PM.map(t=>t.name)]);var V$=[Pl,Ll,...Dp,...Ml];var G$=[Pl,Ll,...Ml];var pS;(function(t){t[t.Fresh=0]="Fresh",t[t.IncrementalTypeScript=1]="IncrementalTypeScript",t[t.IncrementalResource=2]="IncrementalResource"})(pS||(pS={}));var WM=C(require("typescript"),1);var jM=C(require("typescript"),1);var mS=C(require("typescript"),1),zM=C(require("typescript"),1),KM=C(require("typescript"),1);var vU=(0,dS.createRequire)(U);var sh;(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"})(sh||(sh={}));var CU=mS.default.version;A();var gS=require("module");var DU=(0,gS.createRequire)(U),rh;(function(t){t[t.debug=0]="debug",t[t.info=1]="info",t[t.warn=2]="warn",t[t.error=3]="error"})(rh||(rh={}));var ih="\x1B[0m",XM="\x1B[31m",YM="\x1B[33m",QM="\x1B[36m",bU=`${QM}Debug:${ih}`,_U=`${YM}Warning:${ih}`,kU=`${XM}Error:${ih}`;A();var wS=require("module");A();var yS=require("module"),_i=(0,yS.createRequire)(U),vS=(t=>typeof _i!="undefined"?_i:typeof Proxy!="undefined"?new Proxy(t,{get:(e,n)=>(typeof _i!="undefined"?_i:e)[n]}):t)(function(t){if(typeof _i!="undefined")return _i.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var pt=C(require("fs"),1),xS=require("module"),Ft=C(require("path"),1),CS=C(require("url"),1);var FU=(0,wS.createRequire)(U),JM=class{pwd(){return this.normalize(process.cwd())}chdir(t){process.chdir(t)}resolve(...t){return this.normalize(Ft.resolve(...t))}dirname(t){return this.normalize(Ft.dirname(t))}join(t,...e){return this.normalize(Ft.join(t,...e))}isRoot(t){return this.dirname(t)===this.normalize(t)}isRooted(t){return Ft.isAbsolute(t)}relative(t,e){return this.normalize(Ft.relative(t,e))}basename(t,e){return Ft.basename(t,e)}extname(t){return Ft.extname(t)}normalize(t){return t.replace(/\\/g,"/")}},oh=typeof __filename!="undefined",AS=oh?null:U,ES,TS,SS=oh?__filename:(TS=(ES=CS.fileURLToPath)==null?void 0:ES(AS))!=null?TS:null,ZM=class extends JM{constructor(){super(...arguments);a(this,"_caseSensitive")}isCaseSensitive(){return this._caseSensitive===void 0&&(this._caseSensitive=SS!==null?!pt.default.existsSync(this.normalize(eO(SS))):!0),this._caseSensitive}exists(e){return pt.default.existsSync(e)}readFile(e){return pt.default.readFileSync(e,"utf8")}readFileBuffer(e){return pt.default.readFileSync(e)}readdir(e){return pt.default.readdirSync(e)}lstat(e){return pt.default.lstatSync(e)}stat(e){return pt.default.statSync(e)}realpath(e){return this.resolve(pt.default.realpathSync(e))}getDefaultLibLocation(){let e=oh?vS:(0,xS.createRequire)(AS);return this.resolve(e.resolve("typescript"),"..")}},IS=class extends ZM{writeFile(t,e,n=!1){pt.default.writeFileSync(t,e,n?{flag:"wx"}:void 0)}removeFile(t){pt.default.unlinkSync(t)}symlink(t,e){pt.default.symlinkSync(t,e)}copyFile(t,e){pt.default.copyFileSync(t,e)}moveFile(t,e){pt.default.renameSync(t,e)}ensureDir(t){pt.default.mkdirSync(t,{recursive:!0})}removeDeep(t){pt.default.rmdirSync(t,{recursive:!0})}};function eO(t){return t.replace(/\w/g,e=>e.toUpperCase()===e?e.toLowerCase():e.toUpperCase())}var g8=(0,NS.createRequire)(U),I8=new uo("21.2.7"),tO={ngDevMode:!1,ngI18nClosureMode:!1},N8=me(x({},tO),{ngJitMode:!1});fg(new IS);0&&(module.exports={angularJitApplicationTransform});
|
|
45
44
|
/*! Bundled license information:
|
|
46
45
|
|
|
47
46
|
@angular/compiler/fesm2022/compiler.mjs:
|
|
48
47
|
(**
|
|
49
|
-
* @license Angular v21.2.
|
|
48
|
+
* @license Angular v21.2.7
|
|
50
49
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
51
50
|
* License: MIT
|
|
52
51
|
*)
|
|
@@ -61,11 +60,11 @@ Please report an issue on the Angular repositories when this issue surfaces and
|
|
|
61
60
|
* found in the LICENSE file at https://angular.dev/license
|
|
62
61
|
*)
|
|
63
62
|
|
|
64
|
-
@angular/compiler-cli/bundles/chunk-
|
|
65
|
-
@angular/compiler-cli/bundles/chunk-
|
|
66
|
-
@angular/compiler-cli/bundles/chunk-
|
|
67
|
-
@angular/compiler-cli/bundles/chunk-
|
|
68
|
-
@angular/compiler-cli/bundles/chunk-
|
|
63
|
+
@angular/compiler-cli/bundles/chunk-SOKUOCYN.js:
|
|
64
|
+
@angular/compiler-cli/bundles/chunk-UTWH365F.js:
|
|
65
|
+
@angular/compiler-cli/bundles/chunk-4P5I33BF.js:
|
|
66
|
+
@angular/compiler-cli/bundles/chunk-SEJGUMO2.js:
|
|
67
|
+
@angular/compiler-cli/bundles/chunk-KWAGEHJJ.js:
|
|
69
68
|
@angular/compiler-cli/bundles/index.js:
|
|
70
69
|
(**
|
|
71
70
|
* @license
|
|
@@ -75,8 +74,30 @@ Please report an issue on the Angular repositories when this issue surfaces and
|
|
|
75
74
|
* found in the LICENSE file at https://angular.dev/license
|
|
76
75
|
*)
|
|
77
76
|
|
|
78
|
-
@angular/compiler-cli/bundles/chunk-
|
|
79
|
-
|
|
77
|
+
@angular/compiler-cli/bundles/chunk-RSMQFEWS.js:
|
|
78
|
+
(**
|
|
79
|
+
* @license
|
|
80
|
+
* Copyright Google LLC All Rights Reserved.
|
|
81
|
+
*
|
|
82
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
83
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
84
|
+
*)
|
|
85
|
+
(*!
|
|
86
|
+
* @license
|
|
87
|
+
* Copyright Google LLC All Rights Reserved.
|
|
88
|
+
*
|
|
89
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
90
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
91
|
+
*)
|
|
92
|
+
(**
|
|
93
|
+
* @license
|
|
94
|
+
* Copyright Google LLC All Rights Reserved.
|
|
95
|
+
*
|
|
96
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
97
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
98
|
+
*)
|
|
99
|
+
|
|
100
|
+
@angular/compiler-cli/bundles/chunk-6OP6WOUI.js:
|
|
80
101
|
(**
|
|
81
102
|
* @license
|
|
82
103
|
* Copyright Google LLC All Rights Reserved.
|